diff --git a/p__Classrooms__Lists__CommonHomework__index.async.js b/p__Classrooms__Lists__CommonHomework__index.async.js index 0011cebd72..a15ca9bb57 100644 --- a/p__Classrooms__Lists__CommonHomework__index.async.js +++ b/p__Classrooms__Lists__CommonHomework__index.async.js @@ -1 +1 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[49890,13488,63527,4977,30632,32443],{88289:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(4751),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=n(68475),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},93737:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(4751),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=n(68475),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},57703:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(4751),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},a=n(68475),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},84462:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},o=null,i=!1,r=!1,a=null,s=!1,l=null,c=null,d=0;d4?parseFloat(e):5};function j(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,O(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(l=e,D(e,t))},e.getHTML5CodebaseVersion=function(){return f},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var o,i="auto",r=n.id,a=!1,l=0;l=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var S=function(e){return e&&"false"!==e},N=function(t,n,o){b(f)<=4.2&&(o=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==f||ggbHTML5LoadedCodebaseIsWebSimple&&!x)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,s=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(b(f)<=4.4)S(n.showToolBar)&&(n.height-=7),S(n.showAlgebraInput)&&(n.height-=37),n.width<605&&S(n.showToolBar)&&(n.width=605,a=605);else{var d=100;(S(n.showToolBar)||S(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),d=S(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),m(e)},w||v.appendChild(j)):r.appendChild(j),v.appendChild(r),w||t.appendChild(v),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),R("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function C(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},b(f)<5&&(e.className+=" geogebraweb")):k(e,t)}if(i){scriptLoadStarted=!0;for(var A=0;A0?(i.remove(),s.attr("id","fullscreencontent").show(),jQuery(r).append(s),window.dispatchEvent(new Event("resize"))):N(i,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=o,N(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(s=e/4*3),l=s/5.8,a.setAttribute("src",w),a.setAttribute("width",s),a.setAttribute("height",l);var d=(e-s)/2,u=(t-l)/2;a.style.left=d+"px",a.style.top=u+"px",i.appendChild(a)}return i.appendChild(c),i},M=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},E=["web","webSimple","web3d","tablet","tablet3d","phone"],D=function(e,t){if(f=e,t)O(f,!0);else{var r,a,s=!i;if(s){var l=b(f);!isNaN(l)&&l<4.4&&(s=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=f.indexOf("//");for(var d in a=c>0?f:0===c?r+f:"https://www.geogebra.org/apps/5.2.814.0/",E)if(f.slice(-1*E[d].length)===E[d]||f.slice(-1*(E[d].length+1))===E[d]+"/")return void O(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||o.is3D||o.AV||o.SV||o.CV||o.EV2||o.CP||o.PC||o.DA||o.FI||o.PV||S(n.showToolBar)||S(n.showMenuBar)||S(n.showAlgebraInput)||S(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",O(a,!1)}},O=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),m=t,g="web.nocache.js",x=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?E.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",x=!0)),n=e.split("/"),"test"===(f=n[n.length-3]).substr(0,4)?f=f.substr(4,1)+"."+f.substr(5,1):"war"!==f.substr(0,3)&&"beta"!==f.substr(0,4)||(f="5.0");var o=parseFloat(f);NaN!==o&&o<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+o+" is deprecated. Using version latest instead."),D("5.0",t))}},R=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function I(){var e=t;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),D(e,!1),null!==c&&O(c,m),s=!0}return void 0!==n.material_id?C(I):I(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,o,i){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==o&&o,s=null!=e.noScaleMargin&&e.noScaleMargin,l=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,o,i,r){var a=null;if(null!=r&&""!=r)for(var s=e.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+r+" ")>-1){a=s;break}s=s.parentNode}var l=0,c=0,d=0,u=0,p=0,m=0,h=0;if(a)l=a.offsetWidth,c=Math.max(o?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),d=l):(l=window.innerWidth,c=window.innerHeight,d=window.innerWidth),e){var f=e.getBoundingClientRect();f.left>0&&f.left<=l&&(void 0===i||!i)&&("rtl"===document.dir?(p=l-f.width-f.left,m=d<=480?10:30):(m=f.left,p=d<=480?10:30),u=m+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(u=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(u=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+u1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(i=n(e,t,a,o,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=e.getBoundingClientRect(),i=(t-o.width)/2,r=(n-o.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=i+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var s=o(r,n);e()&&a.setAttribute("data-param-scale",s);for(var l=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var o=e.lastIndexOf(tb,Math.min(n,t));return o>=O?e.substring(O,o+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,o=[],i=[];function a(e){var t=i[e](),n=o[e];if(t in n)return t;var a=[];for(var s in n)a[n[s]]=s;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in o[e]},webModule.__getPropMap=function(){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(e=Cb).indexOf(Db);-1!=s&&(t=parseInt(e.substring(s+P),$),e=e.substring(O,s))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},o=e[webModule.__softPermutationId],i=O;i0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],o=0;o0&&(r=10+n*i);var a=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);o>40&&(a=40);var s=this.randomNum(-10,10);e.translate(r,a),e.rotate(s*Math.PI/180),e.fillText(t,0,0),e.rotate(-s*Math.PI/180),e.translate(-r,-a)}},{key:"drawLine",value:function(e){for(var t=0;t<1;t++)e.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),e.beginPath(),e.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.stroke()}},{key:"drawDot",value:function(e){for(var t=0;t<100;t++)e.fillStyle=this.randomColor(0,255),e.beginPath(),e.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),e.fill()}},{key:"randomCode",value:function(){for(var e=this,t="",n=0;n0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+b+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var S=function(e){var t=e.value,n=e.onChange,o=e.action,r=e.data,s=e.className,c=e.maxSize,u=void 0===c?150:c,_=e.title,S=void 0===_?"上传附件":_,N=e.showRemoveModal,B=void 0!==N&&N,T=e.accept,L=void 0===T?"":T,P=e.additionalText,Z=e.isDragger,M=e.number,E=void 0===M?1e3:M,D=e.aloneClear,O=void 0!==D&&D,R=e.realTimeRemove,I=void 0===R||R,H=(0,m.useState)(!1),z=p()(H,2),G=z[0],F=z[1],W=(0,m.useState)(t||[]),U=p()(W,2),J=U[0],V=U[1],K=(0,m.useState)(1),q=p()(K,2),Y=q[0],Q=q[1];(0,m.useEffect)((function(){t&&(1===Y&&V(d()(t)),Q(2),E===(null==t?void 0:t.length)&&F(!0))}),[t]);var X,$=function(){setTimeout((function(){J.pop(),V(d()(J))}),500)},ee={multiple:!0,disabled:G,accept:L,withCredentials:!0,fileList:J,beforeUpload:function(e,t){var n=e.size/1024/1024;return J.concat(t).length>E?(J.pop(),V(d()(J)),f.ZP.error("最多只能上传".concat(E,"个文件")),O?Promise.reject():($(),!1)):n=E?F(!0):F(!1),V(d()(J)),J=J.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(b)&&(e.name="".concat(e.name).concat(b).concat(j(e.size))),l()({},e)})),console.log("info:",e,J),n(J)):f.ZP.error(null===(o=e.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message)},onRemove:(X=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(I){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,w.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!B){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var o;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(o=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,f.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return X.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(s||""),children:[Z&&(0,y.jsxs)(A,l()(l()({},ee),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",u,"MB)"," "]}),P]})),!Z&&(0,y.jsxs)(h.Z,l()(l()({},ee),{},{children:[(0,y.jsxs)(x.ZP,{disabled:G,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),S]}),(0,y.jsxs)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:["(单个文件最大",u,"MB)"," "]})]}))]})}},12500:function(e,t,n){"use strict";n(59301);var o=n(6848),i=n(37712);t.Z=function(e){var t=e.value,n=e.visible,r=void 0===n||n,a=e.children;return(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(o.Z,{placement:"topLeft",title:{"未发布":"作业尚未发布","未开始":"作业已发布,尚未到达开始作业时间","提交中":"作业进行中,所有考生可提交作业","补交中":"作业进行中,所有学生可补交作业","进行中":"作业进行中,部分班级正在作业提交中/补交中","已截止":"到达作业截止时间,作业已结束","已结束":"课堂已结束"}[t],children:(0,i.jsx)("span",{children:a})}):a})}},36267:function(e,t,n){"use strict";n.d(t,{h:function(){return x}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),s=n(59301),l=n(57809),c=n(78241),d=n(3113),u=n(89780),p=n.n(u),m=(n(2185),n(94087),n(37712)),h=l.default.Option,f={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function x(e){var t=e.value,n=e.onChange,o=e.mode,r=e.options,l=void 0===r?{}:r,c=(0,s.useRef)(),d=(0,s.useState)(),u=a()(d,2),h=u[0],f=u[1];return(0,s.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,s.useEffect)((function(){h&&h.setOption("mode",o)}),[h,o]),(0,s.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,s.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,i()({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));f(e)}}),[c.current,h]),(0,m.jsx)("div",{className:"my-codemirror-container",children:(0,m.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,o=(0,s.useState)("python"),r=a()(o,2),u=r[0],p=r[1];return(0,m.jsxs)(c.Z,i()(i()({},f),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,m.jsx)(l.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,m.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,m.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,m.jsx)(x,{mode:u})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(d.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(d.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},97206:function(e,t,n){"use strict";n.d(t,{Z:function(){return Se}});var o=n(91232),i=n.n(o),r=n(79800),a=n.n(r),s=n(85573),l=n.n(s),c=n(59301),d=n(89780),u=n.n(d),p=n(76374),m=(n(2185),n(6313),n(25717),n(99498),n(25419),n(67549),n(3162)),h=n(37712),f=function(e){var t=e.value,n=void 0===t?"":t,o=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})})},g=n(82242),x=n.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function w(e){var t=e.onActionCallback,n=e.title,o=e.icon,i=e.actionName,r=e.className,a=void 0===r?"":r,s=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(i)},children:[(0,h.jsx)("i",{className:"".concat(o)}),s]})}var y=function(e){var t=e.watch,n=e.showNullButton,o=e.showNullProgramButton,i=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,s=e.hidetoolBar,l=e.extraUse,c=[].concat(v,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(w,x()(x()({},e),{},{onActionCallback:i})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,h.jsx)("li",{children:l}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(w,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},b=n(10668),j=n(78241),k=n(98135),C=n(3113),A={labelCol:{span:4},wrapperCol:{span:20}},_=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(j.Z,x()(x()({},A),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(j.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(j.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(C.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},S=n(36267),N=n(8591),B=n(58865),T=j.Z.useForm,L={width:280,marginRight:10},P={labelCol:{span:5},wrapperCol:{span:19}},Z=function(e){var t=e.callback,n=e.onCancel,o=T(),i=a()(o,1)[0],r=(0,c.useRef)();function s(e,t){-1!==e.status?i.setFieldsValue({src:"/api/attachments/".concat(e.id),type:t.type}):N.ZP.error(e.message)}return(0,h.jsxs)(j.Z,x()(x()({form:i},P),{},{className:"upload-image-panel",onFinish:function(e){t(e,r.current)},style:{width:470,overflow:"hidden"},children:[(0,h.jsx)(j.Z.Item,{label:"图片地址",required:!0,children:(0,h.jsxs)("div",{className:"flex-container",children:[(0,h.jsx)(j.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,h.jsx)(k.Z,{style:L})}),(0,h.jsx)(M,{onFileChange:function(e){var t=e.target.files[0];r.current=t,E(t,s)}})]})}),(0,h.jsx)(j.Z.Item,{label:"图片描述",name:"alt",children:(0,h.jsx)(k.Z,{style:{width:264}})}),(0,h.jsxs)(j.Z.Item,{style:{textAlign:"right"},children:[(0,h.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(C.ZP,{type:"default",onClick:n,children:"取消"})]})]}))};function M(e){var t=e.onFileChange;return(0,h.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,h.jsx)("input",{type:"file",onChange:t})]})}function E(e,t){if(!e)throw new String("没有文件");var n=new FormData;n.append("editormd-image-file",e),n.append("file_param_name","editormd-image-file"),n.append("byxhr","true");var o=new window.XMLHttpRequest;o.withCredentials=!0,o.addEventListener("load",(function(n){t(JSON.parse(n.target.responseText),e)}),!1),o.addEventListener("error",(function(e){console.error(e)}),!1),o.open("POST","".concat(B.KI,"/api/attachments.json")),o.send(n)}var D=n(95237),O=n(18719),R=function(e){var t=e.callback,n=e.onCancel,o=document.createElement("canvas"),i=o.getContext("2d");o.width=1e3,o.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,o.width,o.height);var r=o.toDataURL("image/png");return(0,h.jsx)(D.Z,{style:{height:"100vh"},children:(0,h.jsx)(O.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},I=n(7557),H=n.n(I),z=n(41498),G=n.n(z),F=n(37205),W=n.n(F),U=n(12378);function J(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(J,go.CommandHandler),J.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},J.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},J.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},J.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},J.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},J.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},J.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},J.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o0){for(var o=a.elt(s-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(r)}else if("Down"===n.key){var i;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i);else for(;null!==t;){var r,a,s;if(null===(r=t.findTreeParentNode()))break;if((s=(a=this._sortTreeChildrenByY(r)).indexOf(t))o.y?1:n.xo.x?1:0})),t},J.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},J.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(J.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(J.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var V=J,K=(n(91017),n(85160)),q=n(43418),Y=n(43604),Q=n(51836),X="myPaletteDiv___Xjz2I",$="maxH60___Pd4Re";window.go=U;var ee=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(),s=(0,c.useRef)(!1),l=(0,c.useRef)(!1),d=(0,c.useState)(0),u=a()(d,2),p=u[0],m=u[1],f=function(){var e=G()(H()().mark((function e(){var t,i;return H()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.current.makeImage(),e.next=3,(0,Q.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:i=e.sent,n({src:i.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){m(p+1)}),[]),(0,h.jsx)("div",{ref:l,className:s.current?"".concat($," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(q.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:l.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(D.Z,{children:[(0,h.jsx)(Y.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(Y.Z,{onClick:function(){s.current=!s.current,m(p+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:X,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(K.FI,{initDiagram:function(){var e=U.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",s="#d533ff",l="#7d33ff",c="#ff6233",d="#ffffff",u="#000000",p="#fffcd5",m="#d5ebff",h="#f2dfe0",f="#a5d2fa",g="#cccccc",x="#b3e6b3",v="#fcbbbd";function w(t,n){var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(o){var i=n.part.adornedPart,r=(new U.Point).setRectSpot(i.actualBounds,t);r.subtract(i.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(i.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=o.copyNodeData(i.data);o.setGroupKeyForNodeData(a,o.getGroupKeyForNodeData(i.data)),o.addNodeData(a);var s={from:i.key,to:o.getKeyForNodeData(a)};o.addLinkData(s);var l=e.diagram.findNodeForData(a);l.location=r,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(U.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(U.Spot.Top)||t.equals(U.Spot.Bottom)?25:18,height:t.equals(U.Spot.Top)||t.equals(U.Spot.Bottom)?18:25,fill:"orange",stroke:d,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:o,contextClick:o})}function y(t){return e(U.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function b(e,t){return function(n,o){n.handled=!0,n.diagram.model.commit((function(n){n.set(o.part.adornedPart.data,e,t)}))}}function j(t,n){return n||(n="color"),e(U.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:b(n,t),contextClick:b(n,t)})}function k(){return[e("ContextMenuButton",e(U.Panel,"Horizontal",j(d,"fill"),j(p,"fill"),j(m,"fill"),j(h,"fill"))),e("ContextMenuButton",e(U.Panel,"Horizontal",j(g,"fill"),j(x,"fill"),j(f,"fill"),j(v,"fill")))]}function C(){return[e("ContextMenuButton",e(U.Panel,"Horizontal",j(u),j(a),j(n),j(t))),e("ContextMenuButton",e(U.Panel,"Horizontal",j(d),j(s),j(l),j(c)))]}function A(t,n){return n||(n="thickness"),e(U.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function _(t,n){return n||(n="dash"),e(U.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function S(){return[e("ContextMenuButton",e(U.Panel,"Horizontal",A(1),A(2),A(3),A(4))),e("ContextMenuButton",e(U.Panel,"Horizontal",_(null),_([2,4]),_([4,4])))]}function N(t,n){return n||(n="figure"),e(U.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:b(n,t),contextClick:b(n,t)})}function B(t){return e(U.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function T(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(U.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b("dir",t),contextClick:b("dir",t)})}function L(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var o=n.part.adornedPart;e.set(o.data,t?"toSpot":"fromSpot",U.Spot.stringify(U.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(U.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function P(t,n){var o=0,i=U.Spot.RightSide;t.equals(U.Spot.Top)?(o=270,i=U.Spot.TopSide):t.equals(U.Spot.Left)?(o=180,i=U.Spot.LeftSide):t.equals(U.Spot.Bottom)&&(o=90,i=U.Spot.BottomSide),n||(o-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",U.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(U.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:o,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return o.current=new U.Diagram(i.current,{padding:20,grid:e(U.Panel,"Grid",e(U.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(U.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(V),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),o.current.nodeTemplate=e(U.Node,"Auto",{locationSpot:U.Spot.Center,locationObjectName:"SHAPE",desiredSize:new U.Size(120,60),minSize:new U.Size(40,40),resizable:!0,resizeCellSize:new U.Size(10,10),rotatable:!0},new U.Binding("location","loc",U.Point.parse).makeTwoWay(U.Point.stringify),new U.Binding("desiredSize","size",U.Size.parse).makeTwoWay(U.Size.stringify),e(U.Shape,{name:"SHAPE",fill:d,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:U.Spot.AllSides,toSpot:U.Spot.AllSides},new U.Binding("figure"),new U.Binding("fill"),new U.Binding("stroke","borderColor"),new U.Binding("strokeWidth","thickness"),new U.Binding("strokeDashArray","dash")),e(U.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(U.TextBlock,{margin:1,textAlign:"center",overflow:U.TextBlock.OverflowEllipsis,editable:!0},new U.Binding("text").makeTwoWay(),new U.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(U.Panel,"Vertical",{maxSize:new U.Size(200,NaN)},e(U.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new U.Binding("text")),e(U.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new U.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(U.Adornment,"Spot",e(U.Placeholder,{padding:10}),w(U.Spot.Top,"TriangleUp"),w(U.Spot.Left,"TriangleLeft"),w(U.Spot.Right,"TriangleRight"),w(U.Spot.Bottom,"TriangleDown"),y({alignment:new U.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(U.Panel,"Horizontal",N("Rectangle"),N("RoundedRectangle"),N("Ellipse"),N("Diamond"))),e("ContextMenuButton",e(U.Panel,"Horizontal",N("Parallelogram2"),N("ManualOperation"),N("Procedure"),N("Cylinder1"))),e("ContextMenuButton",e(U.Panel,"Horizontal",N("Terminator"),N("CreateRequest"),N("Document"),N("TriangleDown"))),k(),C(),S()),o.current.groupTemplate=e(U.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:U.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new U.Binding("location","loc",U.Point.parse).makeTwoWay(U.Point.stringify),e(U.Panel,"Auto",{name:"BODY"},e(U.Shape,{parameter1:10,fill:d,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:U.Spot.AllSides,toSpot:U.Spot.AllSides},new U.Binding("fill"),new U.Binding("stroke","color"),new U.Binding("strokeWidth","thickness"),new U.Binding("strokeDashArray","dash")),e(U.Placeholder,{background:"transparent",margin:20})),e(U.TextBlock,{alignment:U.Spot.Top,alignmentFocus:U.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new U.Binding("text"),new U.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(U.Adornment,"Spot",e(U.Panel,"Auto",e(U.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(U.Placeholder,{margin:1.5})),y({alignment:U.Spot.TopRight,alignmentFocus:U.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",k(),C(),S()),o.current.linkTemplate=e(U.Link,{layerName:"Foreground",routing:U.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new U.Binding("fromSpot","fromSpot",U.Spot.parse),new U.Binding("toSpot","toSpot",U.Spot.parse),new U.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new U.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new U.Binding("points").makeTwoWay(),e(U.Shape,{strokeWidth:2},new U.Binding("stroke","color"),new U.Binding("strokeWidth","thickness"),new U.Binding("strokeDashArray","dash")),e(U.Shape,{segmentIndex:0,segmentOffset:new U.Point(15,0),segmentOrientation:U.Link.OrientAlong,alignmentFocus:U.Spot.Right,figure:"circle",width:10,strokeWidth:0},new U.Binding("fill","color"),new U.Binding("visible","dir",(function(e){return 1===e}))),e(U.Shape,{segmentIndex:-1,segmentOffset:new U.Point(-10,6),segmentOrientation:U.Link.OrientPlus90,alignmentFocus:U.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new U.Binding("fill","color"),new U.Binding("visible","dir",(function(e){return e>=1})),new U.Binding("width","thickness",(function(e){return 7+3*e})),new U.Binding("height","thickness",(function(e){return 7+3*e})),new U.Binding("segmentOffset","thickness",(function(e){return new U.Point(-15,4+1.5*e)}))),e(U.Shape,{segmentIndex:0,segmentOffset:new U.Point(15,-6),segmentOrientation:U.Link.OrientMinus90,alignmentFocus:U.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new U.Binding("fill","color"),new U.Binding("visible","dir",(function(e){return 2===e})),new U.Binding("width","thickness",(function(e){return 7+3*e})),new U.Binding("height","thickness",(function(e){return 7+3*e})),new U.Binding("segmentOffset","thickness",(function(e){return new U.Point(-15,4+1.5*e)}))),e(U.TextBlock,{alignmentFocus:new U.Spot(0,1,-4,0),editable:!0},new U.Binding("text").makeTwoWay(),new U.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(U.Adornment,e(U.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:B(2)},new U.Binding("pathPattern","thickness",B)),y({alignmentFocus:new U.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",C(),S(),e("ContextMenuButton",e(U.Panel,"Horizontal",T(0),T(1),T(2))),e("ContextMenuButton",e(U.Panel,"Horizontal",e(U.Panel,"Spot",L(!1),P(U.Spot.Top,!1),P(U.Spot.Left,!1),P(U.Spot.Right,!1),P(U.Spot.Bottom,!1)),e(U.Panel,"Spot",{margin:new U.Margin(0,0,0,2)},L(!0),P(U.Spot.Top,!0),P(U.Spot.Left,!0),P(U.Spot.Right,!0),P(U.Spot.Bottom,!0))))),new U.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(U.Link,{locationSpot:U.Spot.Center,selectionAdornmentTemplate:e(U.Adornment,"Link",{locationSpot:U.Spot.Center},e(U.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(U.Shape,{toArrow:"Standard",stroke:null}))},{routing:U.Link.AvoidsNodes,curve:U.Link.JumpOver,corner:5,toShortLength:4},new U.Binding("points"),e(U.Shape,{isPanelMain:!0,strokeWidth:2}),e(U.Shape,{toArrow:"Standard",stroke:null})),model:new U.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(W()(U.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(U.Node,"Auto",{locationSpot:U.Spot.Center},new U.Binding("location","location",U.Point.parse).makeTwoWay(U.Point.stringify),e(U.Shape,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new U.Binding("stroke").makeTwoWay(),new U.Binding("fill").makeTwoWay(),new U.Binding("figure")),e(U.TextBlock,{margin:new U.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new U.Size(16,16),maxSize:new U.Size(10,NaN),textAlign:"center",editable:!0},new U.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(U.Panel,"Grid",e(U.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(U.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),o.current.grid.visible=!0,o.current.grid.gridCellStroke="darkgray",o.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=o.current,o.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:i})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(C.ZP,{size:"large",onClick:f,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},te=n(5112),ne=n(26415),oe=te.ZP.Group,ie={margin:"0 8px"},re=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(j.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:ie,children:"单元格数:"}),(0,h.jsx)("span",{style:ie,children:"行数"}),(0,h.jsx)(j.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(ne.Z,{})}),(0,h.jsx)("span",{style:ie,children:"列数"}),(0,h.jsx)(j.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(ne.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:ie,children:"对齐方式:"}),(0,h.jsx)(j.Z.Item,{name:"align",children:(0,h.jsxs)(oe,{children:[(0,h.jsx)(te.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(te.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(te.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(te.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(C.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},ae=n(78673),se=n(84462),le=n.n(se),ce=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,r=e.callback,s=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),d=(0,c.useState)(!1),u=a()(d,2),p=u[0],m=u[1],f=(0,c.useRef)({id:s,appName:"graphing",width:o||1e3,height:i||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){l.current=new(le())(f.current,!0),window.onload=function(){l.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){f.current.appName=p?"3D":"graphing",l.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){m(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:s}),(0,h.jsxs)(D.Z,{align:"middle",children:[(0,h.jsx)(Y.Z,{flex:1,children:(0,h.jsx)(ae.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return m(e)}})}),(0,h.jsx)(Y.Z,{children:(0,h.jsx)(C.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),de=n(23180),ue=n(68339),pe="link",me="upload-image",he="add-flowchart",fe="draw-image",ge="code-block",xe="add-table",ve="------------",we={default:ve,left:":".concat(ve),center:":".concat(ve,":"),right:"".concat(ve,":")},ye=n(88080);var be="@▁▁@",je=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ke(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var Ce=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ae=l()(l()({},Ce+"-B","bold"),Ce+"-I","italic"),_e=l()(l()(l()(l()(l()(l()(l()(l()({},pe,"添加链接"),ge,"添加代码块"),me,"添加图片"),fe,"添加画图"),he,"插入流程图"),xe,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Se=function(e){var t=e.defaultValue,n=void 0===t?"":t,o=e.onChange,r=e.width,s=void 0===r?"100%":r,d=e.height,g=void 0===d?400:d,x=e.miniToolbar,v=void 0!==x&&x,w=e.isFocus,j=void 0!==w&&w,k=e.watch,C=e.insertTemp,A=e.mode,B=void 0===A?"markdown":A,T=e.id,L=void 0===T?"markdown-editor-id":T,P=e.showResizeBar,M=void 0!==P&&P,D=e.noStorage,O=void 0!==D&&D,I=e.showNullButton,H=void 0!==I&&I,z=e.showNullProgramButton,G=void 0!==z&&z,F=e.hidetoolBar,W=void 0!==F&&F,U=e.fullScreen,J=void 0!==U&&U,V=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,Q=e.className,X=void 0===Q?"":Q,$=e.disablePaste,te=void 0!==$&&$,ne=e.disabled,oe=void 0!==ne&&ne,ie=e.disabledFill,ae=void 0!==ie&&ie,se=e.placeholder,le=void 0===se?"":se,ve=e.values,Ce=void 0===ve?"":ve,Se=e.extraUse,Ne=(0,c.useState)(null),Be=a()(Ne,2),Te=Be[0],Le=Be[1],Pe=(0,c.useState)(n),Ze=a()(Pe,2),Me=Ze[0],Ee=Ze[1],De=(0,c.useState)(k),Oe=a()(De,2),Re=Oe[0],Ie=Oe[1],He=(0,c.useState)(J),ze=a()(He,2),Ge=ze[0],Fe=ze[1],We=(0,c.useState)(""),Ue=a()(We,2),Je=Ue[0],Ve=Ue[1],Ke=(0,c.useState)(0),qe=a()(Ke,2),Ye=qe[0],Qe=qe[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),et=$e[0],tt=$e[1],nt=(0,c.useState)(!1),ot=a()(nt,2),it=(ot[0],ot[1]),rt=(0,c.useState)(0),at=a()(rt,2),st=at[0],lt=at[1],ct=(0,c.useState)(0),dt=a()(ct,2),ut=dt[0],pt=dt[1],mt=(0,c.useRef)(),ht=(0,c.useRef)(),ft=(0,c.useRef)(),gt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ee(Ce),null==Te||Te.setValue(Ce),window.scrollTo(0,e)}),[Ce]),(0,c.useEffect)((function(){null==Y||Y(Ge)}),[Ge]),(0,c.useEffect)((function(){if(mt.current){var e=function(e,n){if(!te){var o=n.clipboardData;if(o){var i=o.types.toString(),r=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==B)return;try{var a,s=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(s=r[0]);var l=s.getAsFile(),c=l.name.split(".").pop();E(l,(function(e){var n,o,i;e.id?(null==l||null===(n=l.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==l||null===(o=l.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('')):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?t.replaceSelection('').concat(l.name,"")):je.includes(c)?t.replaceSelection('').concat(l.name,"")):t.replaceSelection("[".concat(l.name,"](").concat(ue.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){N.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=u().fromTextArea(mt.current,{mode:B,lineNumbers:!v,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",le):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),o=n.getCursor(),i=n.getLine(o.line),r=i.charAt(o.ch-1),a=i.lastIndexOf("@▁@",o.ch),s=i.lastIndexOf("@▁▁@",o.ch),l=a>s?a:s,c=a>s?3:4;if(-1===be.indexOf(r))return null;if(console.log("change1:",t,e,i,o,l,a,s,r),l>=0&&o.ch-l<5){var d=l+c;return n.replaceRange("",{line:o.line,ch:l},{line:o.line,ch:d}),{line:o.line,ch:d}}return null}(e);n&&t.preventDefault()}})),j&&t.focus(),t.on("paste",e),oe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Le(t),function(){t.off("paste",e)}}}),[]);var xt=(0,c.useCallback)((function(){ht.current}),[et,ht,Ge]);(0,c.useEffect)((function(){if(Te){var e=function(){var e=new p.Z((function(e){var t,n=i()(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;(o.target.offsetHeight>0||o.target.offsetWidth>0)&&(xt(),Te.setSize("100%","100%"),Te.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(mt.current.parentElement),e}();return function(){var t,n;null!==(t=mt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=mt.current)||void 0===n?void 0:n.parentElement)}}}),[Te,xt]),(0,c.useEffect)((function(){if(Te){for(var e=[],t=function(){var t=a()(o[n],2),i=t[0],r=t[1],s=l()({},i,(function(){vt(r)}));e.push(s),Te.addKeyMap(s)},n=0,o=Object.entries(Ae);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(L);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(L,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Ie(k)}),[Te,k]),(0,c.useEffect)((function(){Te&&j&&Te.focus()}),[Te,j]),(0,c.useEffect)((function(){if(Re&&Te){var e=function(e){var t=e.target;if(gt.current){var n=t.scrollTop/t.scrollHeight;gt.current.scrollTop=gt.current.scrollHeight*n}},t=Te.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Te,Re]),(0,c.useEffect)((function(){if(Te&&K){var e=function(e,t){K(e,t)};return Te.on("beforeChange",e),function(){Te.off("beforeChange",e)}}}),[Te,K]),(0,c.useEffect)((function(){if(Te&&V){var e=function(){V(Te.getValue())};return Te.on("blur",e),function(){Te.off("blur",e)}}}),[Te,V]),(0,c.useEffect)((function(){if(Te){var e=function(e,t){var n=e.getValue();Ee(n),Qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(G?o(n,kt(n)):o(n))};return Te.on("change",e),function(){Te.off("change",e)}}}),[Te,o]),(0,c.useEffect)((function(){if(Te)if(null==n)Te.setValue(""),Ee("");else{var e=window.scrollY||window.pageYOffset;n!==Te.getValue()&&(Te.setValue(n),Ee(n),Te.setCursor(oe?1:Te.lineCount(),0),window.scrollTo(0,e))}}),[Te,n]);var vt=(0,c.useCallback)((function(e){var t=Te.getCursor(),n=Te.getSelection(),o=n.split("\n");switch(e){case"bold":return Te.replaceSelection("**"+n+"**"),""===n&&Te.setCursor(t.line,t.ch+2),Te.focus();case"italic":return Te.replaceSelection("*"+n+"*"),""===n&&Te.setCursor(t.line,t.ch+1),Te.focus();case"code":return Te.replaceSelection("`"+n+"`"),""===n&&Te.setCursor(t.line,t.ch+1),Te.focus();case"inline-latex":return Ve("inline-latex"),Te.focus();case"latex":return Te.replaceSelection("```latex\n"+n+"\n```"),Te.setCursor(t.line+1,n.length+1),Te.focus();case"line-break":return Te.replaceSelection("
\n"),Te.focus();case"list-ul":return""===n?Te.replaceSelection("- "+n):Te.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Te.focus();case"list-ol":return""===n?Te.replaceSelection("1. "+n):Te.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Te.focus();case"add-null-ch":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection("▁"),Te.focus();case"add-signal":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection("@▁@"),Te.focus();case"add-multiple":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection(be),Te.focus();case"inster-template-1":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Te.focus();case"eraser":return Te.setValue(""),Te.focus();case"trigger-watch":return Ie(!Re),Te.focus();case"trigger-full-screen":return Fe(!Ge),Te.focus();case pe:return void Ve(pe);case ge:return void Ve(ge);case me:return void Ve(me);case fe:return void Ve(fe);case"maths-latex":return void Ve("maths-latex");case he:return void Ve(he);case xe:return void Ve(xe);default:throw new Error}}),[Te,Re,Ge]),wt=(0,c.useCallback)((function(e,t){var n,o,i,r,a;switch(Ve(""),Je){case pe:var s=e.title,l=e.link;return Te.replaceSelection("[".concat(s,"](").concat(l,")")),Te.focus();case ge:var c=e.language,d=e.content;return Te.replaceSelection(["```"+c,d,"```"].join("\n")),Te.focus();case"maths-latex":for(var u=atob(e),p=new Uint8Array(u.length),m=0;m-1||null==g||!g.type?f?Te.replaceSelection("![ ".concat(f," ]( ").concat(h,' "').concat(f,'" )')):Te.replaceSelection("![,](".concat(h,")")):(null==g||null===(r=g.type)||void 0===r?void 0:r.indexOf("video"))>-1?Te.replaceSelection('')):(null==g||null===(a=g.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Te.replaceSelection('').concat(g.name,"")):je.includes(x)?Te.replaceSelection('').concat(g.name,"")):Te.replaceSelection("[".concat(g.name,"](").concat(ue.Z.API_SERVER).concat(h,")")),Te.focus();case xe:for(var v=e.row,w=e.col,y=e.align,b="\n",j=0;j300&&(t=300),tt(g+t+"px")}},o=ft.current,i=!1,r=0;return o.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){o.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Te,ft]),(0,c.useEffect)((function(){tt(g)}),[g]);var jt={width:ke(s),height:ke(et)},kt=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(o)}return 0}),[Ye]),function(e){var t=[];if(G){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){_e[Je]&&Je!==fe&&Je!==he&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),pt(n)}),0)}),[Je]);var Ct=function(e,t,n,o){var i=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>i-20&&o0&&(0,s.jsx)("div",{className:a,children:n.map((function(e,t){return(0,s.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,s.jsx)("img",{src:"data:image/png;base64,iVBORw0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PEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},t)}))}),p]}),o&&(0,s.jsx)("img",{style:{marginTop:33,marginRight:38},src:o,width:c})]})})},c=n(79800),d=n.n(c),u="row___aXJjm",p="title___HUKL0",m="tagsWrap___XB2W3",h="action___VdHb1",f="bar___t1kKC",g="tag___V7Eft",x="name___Hk1Ip",v="num___xQpcH",w="active___XryTX",y="tagsBorderWrap___OMxjs",b=n(92310),j=n.n(b),k=n(89392),C=function(e){var t=e.dataSource,n=void 0===t?[]:t,i=e.value,r=e.onChange,a=e.onTitleChange,l=e.className,c=e.title,b=e.titleWidth,C=void 0===b?41:b,A=e.style,_=void 0===A?{}:A,S=e.fontColor,N=void 0===S?"#6A7283":S,B=e.showCount,T=(0,o.useState)(0),L=d()(T,2),P=L[0],Z=L[1],M=(0,o.useState)(!1),E=d()(M,2),D=E[0],O=E[1],R=(0,o.useRef)(null),I=(0,o.useRef)(null);return(0,o.useEffect)((function(){var e;0!==n.length&&((null==R||null===(e=R.current)||void 0===e?void 0:e.clientHeight)>97?Z(1):Z(0));0===n.length&&Z(0),O(!1)}),[n]),(0,s.jsxs)("div",{className:j()(u,l),style:_,children:[(0,s.jsx)("div",{onClick:(0,k.throttle)((function(){return null==a?void 0:a()}),2e3),style:{width:C,marginTop:D?12:4},className:"".concat(p," ").concat(a?"current":""),children:c}),(0,s.jsxs)("div",{className:D?"".concat(m," ").concat(y):m,children:[(0,s.jsx)("div",{className:f,ref:I,style:P>0?{height:1===P?97:"auto",overflow:1===P?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,s.jsx)("div",{className:g,ref:R,children:null==n?void 0:n.map((function(e){return(0,s.jsxs)("span",{onClick:function(){return r(e.id)},style:{color:N},className:i===e.id?w:"",children:[(0,s.jsx)("span",{title:e.name,className:x,children:e.name}),!!B&&(0,s.jsx)("span",{className:v,children:e.count})]},e.id)}))})}),!!P&&(0,s.jsx)(o.Fragment,{children:1===P?(0,s.jsxs)("div",{onClick:function(){var e;Z(2),(null==R||null===(e=R.current)||void 0===e?void 0:e.clientHeight)>245?O(!0):O(!1)},className:h,children:["展开",(0,s.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,s.jsxs)("div",{onClick:function(){I.current.scrollTop=0,Z(1),O(!1)},className:h,children:["收起",(0,s.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},A="tabs___GTqPV",_="active___F26E8",S=function(e){var t=e.dataSource,n=void 0===t?[]:t,o=e.value,i=e.onChange,r=e.className,a=e.style,l=void 0===a?{}:a;return(0,s.jsx)("div",{style:l,className:j()(A,r),children:n.map((function(e){return(0,s.jsx)("span",{onClick:function(){return i(e.id)},className:o===e.id?_:"",children:e.name},e.id)}))})},N="input___PW2zI",B="dropdown___vSy8B",T="menu___NiyBu",L="text___Grueu",P="b1___ZKryM",Z="b2___aKyGa",M=n(98135),E=function(e){var t,n=e.dataSource,i=void 0===n?[]:n,r=e.value,a=void 0===r?"":r,l=e.onChange,c=e.onInputChange,u=void 0===c?function(){}:c,p=e.className,m=e.style,h=void 0===m?{}:m,f=e.placeholder,g=(e.allowClear,(0,o.useState)("")),x=d()(g,2),v=x[0],w=x[1],y=(0,o.useState)(""),b=d()(y,2),k=b[0],C=b[1];(0,o.useEffect)((function(){var e,t=a;null!==(e=JSON.stringify(a))&&void 0!==e&&e.includes("{")&&(w(a.id),t=a.value||"");try{C(decodeURIComponent(t||""))}catch(e){C(decodeURIComponent(t||""))}}),[a]);var A=function(){l(encodeURIComponent(k),v||null)};return(0,s.jsxs)("div",{className:j()(N,p),style:h,children:[!!i.length&&(0,s.jsxs)("div",{className:B,children:[(0,s.jsxs)("div",{className:L,children:[null===(t=i.find((function(e){return e.id===v})))||void 0===t?void 0:t.name,(0,s.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,s.jsx)("b",{className:P}),(0,s.jsx)("b",{className:Z})]}),(0,s.jsx)("div",{className:T,children:i.map((function(e,t){return(0,s.jsx)("div",{onClick:function(){var t;(t=e.id)!==v&&(w(t),l(encodeURIComponent(k),t))},children:e.name},t)}))})]}),(0,s.jsx)(M.Z,{onPressEnter:A,value:k,onChange:function(e){C(e.target.value),u(encodeURIComponent(e.target.value),v||null)},bordered:!1,placeholder:f}),(0,s.jsx)("i",{onClick:A,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},D="quickPager___GM30J",O="disabled___Ozc8I",R=function(e){var t=e.value,n=e.onChange,o=e.className,i=e.total,r=e.pageSize,a=e.style,l=void 0===a?{}:a,c=t<2,d=t>=Math.ceil(i/r);return i<=r?(0,s.jsx)(s.Fragment,{}):(0,s.jsxs)("div",{className:j()(D,o),style:l,children:[(0,s.jsx)("div",{onClick:function(){c||n(t-1,"prev")},className:c?O:"",children:"上一页"}),(0,s.jsx)("div",{onClick:function(){d||n(t+1,"next")},className:d?O:"",children:"下一页"})]})},I="list___oOsiS",H="wrap___G6T7F",z="lockWrap___Rl79E",G="li___oZZ7l",F="cover___b2bYW",W="img___IQX7w",U="sign___HkT6C",J="name___SsJx8",V="e___TMqq0",K="tags___bcjyo",q="rate___YACg7",Y=n(71418),Q=n(6848),X=n(97022),$=n(68339),ee=n(76279),te=n(96908),ne=n(57177),oe=n(81378),ie=n(22845),re=function(e){var t=e.className,n=e.dataSource,o=void 0===n?[]:n,i=e.col,r=void 0===i?4:i,a=e.right,l=e.bottom,c=void 0===l?23:l,d=e.precision,u=void 0===d?0:d,p=e.wrapWidth,m=void 0===p?1200:p,h=e.trackEventItems,f=e.loading,g=Math.floor((m-(r-1)*a)/r);return(0,s.jsx)(Y.Z,{spinning:f,children:(0,s.jsxs)("div",{className:j()(I,t),children:[!!o.length&&o.map((function(e,t){var n=e.name,o=e.id,i=e.identifier,l=e.power,d=(e.cover_image_id,e.pic);return(0,s.jsxs)("div",{className:H,style:{width:g,marginRight:(1+t)%r==0?0:a+u,marginBottom:c},children:[(0,s.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(i,"/challenges"),className:G,onClick:function(e){e.preventDefault(),h&&(0,ee.L9)([h]),l&&(0,ee.xg)("/shixuns/".concat(i,"/challenges"))},children:[(0,s.jsxs)("div",{className:W,children:[(0,s.jsx)("img",{className:F,src:"".concat(d)}),e.is_jupyter&&(0,s.jsx)("img",{className:U,src:te}),e.is_jupyter_lab&&(0,s.jsx)("img",{className:U,src:ne}),e.is_unity_3d&&(0,s.jsx)("img",{className:U,src:oe})]}),(0,s.jsx)("div",{className:J,children:(0,s.jsx)(Q.Z,{title:n||"实践项目名称-未填写",children:(0,s.jsx)("span",{className:V,children:n||"实践项目名称-未填写"})})}),(0,s.jsxs)("div",{className:K,children:[(0,s.jsx)(Q.Z,{placement:"bottom",title:"关卡数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,s.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,s.jsx)(Q.Z,{placement:"bottom",title:"学习人数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,s.jsx)("span",{children:e.myshixuns_count})]})}),(0,s.jsx)(Q.Z,{placement:"bottom",title:"难度等级",children:(0,s.jsx)("span",{children:(0,s.jsx)("span",{children:e.level})})}),(0,s.jsxs)("div",{className:q,children:[(0,s.jsx)(X.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,s.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!l&&(0,s.jsxs)("div",{className:z,children:[(0,s.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,s.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},o)})),!o.length&&(0,s.jsx)(ie.Z,{})]})})},ae="list___jb2Ay",se="wrap___VsQDr",le="li___IxCLC",ce="cover___Mu8wr",de="img___IpFLA",ue="bq___Bil0T",pe="sign___DXJ4d",me="name___l7FoJ",he="e___pXQUG",fe="unit___wCIFR",ge="tags___w_Mil",xe=function(e){var t=e.className,n=e.dataSource,o=void 0===n?[]:n,i=e.col,r=void 0===i?4:i,a=e.right,l=e.bottom,c=void 0===l?23:l,d=e.precision,u=void 0===d?0:d,p=e.wrapWidth,m=void 0===p?1200:p,h=e.trackEventItems,f=e.loading,g=Math.floor((m-(r-1)*a)/r),x=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,s.jsx)(Y.Z,{spinning:f,children:(0,s.jsxs)("div",{className:j()(ae,t),children:[!(null==o||!o.length)&&(null==o?void 0:o.map((function(e,t){var n,o=e.name,i=e.id,l=e.identifier,d=(e.featured,e.school_name),p=e.image_url;e.excellent,e.is_plan;return(0,s.jsx)("div",{className:se,style:{width:g,marginRight:(1+t)%r==0?0:a+u,marginBottom:c},children:(0,s.jsxs)("a",{target:"_blank",href:"/paths/".concat(l),className:le,onClick:function(e){e.preventDefault(),h&&(0,ee.L9)([h]),(0,ee.xg)("/paths/".concat(l))},children:[(0,s.jsxs)("div",{className:de,children:[(0,s.jsx)("img",{className:ce,src:"".concat(p)}),null==e||null===(n=e.subject_tags)||void 0===n?void 0:n.map((function(e,t){var n;if(0===t){var o,i=null===(o=x.find((function(t){return t.name==e})))||void 0===o?void 0:o.swimg;return(0,s.jsx)("img",{className:pe,src:i,style:{left:"-4px"}})}var r=null===(n=x.find((function(t){return t.name==e})))||void 0===n?void 0:n.ptimg;return(0,s.jsx)("img",{className:pe,src:r,style:{left:"".concat(48+52*(t-1)+2*t,"px")}})})),(0,s.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,s.jsx)("div",{className:ue,children:"开放课程"})})]}),(0,s.jsx)("div",{className:me,children:(0,s.jsx)(Q.Z,{title:o,children:(0,s.jsx)("span",{className:he,children:o})})}),(0,s.jsx)(Q.Z,{title:"发布单位:".concat(d),children:(0,s.jsxs)("div",{className:fe,children:[(0,s.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),d]})}),(0,s.jsx)("div",{className:ge,children:(0,s.jsxs)("div",{children:[(0,s.jsx)(Q.Z,{placement:"bottom",title:"章节数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,s.jsx)("span",{children:e.stages_count})]})}),(0,s.jsx)(Q.Z,{placement:"bottom",title:"学习人数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,s.jsx)("span",{children:e.members_count})]})})]})})]})},i)}))),!o.length&&(0,s.jsx)(ie.Z,{})]})})},ve={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},we=function(e){var t=e.className,n=e.dataSource,o=void 0===n?[]:n,i=e.col,r=void 0===i?4:i,a=e.right,l=e.bottom,c=void 0===l?23:l,d=e.precision,u=void 0===d?0:d,p=e.wrapWidth,m=void 0===p?1200:p,h=e.trackEventItems,f=e.loading,g=Math.floor((m-(r-1)*a)/r);return(0,s.jsx)(Y.Z,{spinning:f,children:(0,s.jsxs)("div",{className:j()(ve.list,t),children:[!!o.length&&o.map((function(e,t){var n=e.subject_identifier,o=e.id,i=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,s.jsxs)("div",{className:ve.wrap,style:{width:g,marginRight:(1+t)%r==0?0:a+u,marginBottom:c},children:[(0,s.jsxs)("a",{className:ve.li,onClick:function(t){t.preventDefault(),h&&(0,ee.L9)([h]),(0,ee.xg)(e.first_category_url)},children:[(0,s.jsxs)("div",{className:ve.top,children:[(0,s.jsx)(Q.Z,{title:e.name,children:(0,s.jsx)("div",{className:ve.name,children:e.name})}),(0,s.jsx)("img",{className:ve.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,s.jsx)("div",{className:ve.text,title:e.creator,children:e.creator}),n&&(0,s.jsxs)("div",{className:ve.btns,children:[(0,s.jsx)("div",{children:"开放课程"}),(0,s.jsx)("aside",{children:"开放课堂"})]}),i&&(0,s.jsx)("div",{className:ve.sign,children:"公开"})]}),(0,s.jsxs)("div",{className:ve.bottom,children:[e.visits>0&&(0,s.jsx)(Q.Z,{title:"访问量",placement:"bottom",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,s.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,s.jsx)(Q.Z,{title:"成员",placement:"bottom",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,s.jsx)(Q.Z,{title:"作业",placement:"bottom",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,s.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,s.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,s.jsxs)("div",{className:ve.lockWrap,children:[(0,s.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,s.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},o)})),!o.length&&(0,s.jsx)(ie.Z,{})]})})},ye={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},be=n(76252),je=function(e){var t=e.dataSource,n=void 0===t?[]:t,o=e.value,i=e.onChange,r=e.className,a=e.style,l=void 0===a?{}:a,c=e.tabBarExtraContent;return(0,s.jsxs)("div",{className:j()(ye.tabs,r),style:l,children:[(0,s.jsx)("div",{className:ye.tabsWrap,children:n.map((function(e,t){return(0,s.jsxs)("aside",{className:ye.tab,onClick:function(){i(e.id),e.link&&be.history.push(e.link)},children:[(0,s.jsx)("div",{className:o===e.id?ye.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,s.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,s.jsx)(Q.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,s.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,s.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,s.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},t)}))}),(0,s.jsx)("div",{className:ye.tabBar,children:c})]})},ke=function(e){var t=e.className,n=e.style,o=void 0===n?{}:n,i=e.children;return(0,s.jsx)("div",{className:j()(t),style:o,children:i})},Ce="orderWrap___ZfyGX",Ae="orderIconWrap___XTB_O",_e="orderAsc___KWHmA",Se="orderDesc___rHdbB",Ne="active___a7eSP",Be="cursorPointer___gs9kL",Te="orderTextWrap___teAKn",Le=n(38854),Pe=n(20834),Ze=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Me=function(e){var t,n=e.sortValue,o=e.dropValue,i=e.className,r=e.onSort,a=e.onDrop,l=e.dataSource,c=void 0===l?Ze:l;return(0,s.jsxs)("div",{className:j()(Ce,i),children:[(0,s.jsx)(Le.Z,{dropdownRender:function(){return(0,s.jsx)(Pe.Z,{children:c.map((function(e,t){return(0,s.jsx)(Pe.Z.Item,{onClick:function(){return a(e.id)},children:e.name},t)}))})},children:(0,s.jsx)("span",{className:Te,children:null===(t=c.find((function(e){return o===e.id})))||void 0===t?void 0:t.name})}),(0,s.jsxs)("span",{className:Ae,children:[(0,s.jsx)("span",{className:_e,children:(0,s.jsx)("i",{className:"asc"===n?"iconfont icon-sanjiaoxing-up font12 ".concat(Be," ").concat(Ne):"iconfont icon-sanjiaoxing-up font12 ".concat(Be),onClick:function(){return r("asc"===n?"desc":"asc")}})}),(0,s.jsx)("span",{className:Se,children:(0,s.jsx)("i",{className:"desc"===n?"iconfont icon-sanjiaoxing-down font12 ".concat(Be," ").concat(Ne):"iconfont icon-sanjiaoxing-down font12 ".concat(Be),onClick:function(){return r("asc"===n?"desc":"asc")}})})]})]})},Ee=n(82242),De=n.n(Ee),Oe=n(7557),Re=n.n(Oe),Ie=n(41498),He=n.n(Ie),ze=n(39647),Ge=n.n(ze),Fe={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},We=n(3113),Ue=["className","style","children","loading","openLoading","onClick","size","shape"],Je=function(e){var t=e.className,n=e.style,i=e.children,r=e.loading,a=void 0!==r&&r,l=e.openLoading,c=e.onClick,u=void 0===c?function(){}:c,p=e.size,m=void 0===p?"middle":p,h=e.shape,f=void 0===h?"round":h,g=Ge()(e,Ue),x=(0,o.useState)(!1),v=d()(x,2),w=v[0],y=v[1];return(0,s.jsx)(We.ZP,De()(De()({onClick:(0,k.throttle)(function(){var e=He()(Re()().mark((function e(t){return Re()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l&&y(!0),e.prev=1,e.next=4,u(t);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:l&&y(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:j()(Fe.btn,Fe["".concat(m,"-").concat(f)],t),style:n,size:m,shape:f,loading:w||a},g),{},{children:i}))},Ve="head___ghH72",Ke="node___mjPEy",qe=function(e){var t=e.className,n=e.style,o=e.children,i=void 0===o?null:o,r=e.onClick,a=e.title;return(0,s.jsxs)("div",{className:j()(Ve,t),style:n,children:[(0,s.jsxs)("span",{className:"primary-hover",onClick:r,children:[(0,s.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,s.jsx)("b",{title:a,children:a}),(0,s.jsx)("div",{className:Ke,children:i})]})},Ye="btns___sNgTb",Qe="confirm___Ozirl",Xe="cancel___aiq1I",$e=function(e){var t=e.confirmShow,n=void 0===t||t,o=e.confirmTitle,i=e.confirmClick,r=e.cancelShow,a=void 0===r||r,l=e.cancelTitle,c=e.cancelClick,d=e.className,u=e.style,p=e.confirmLoading,m=void 0!==p&&p;return(0,s.jsxs)("div",{className:j()(Ye,d),style:u,children:[n&&(0,s.jsx)(We.ZP,{loading:m,onClick:i,type:"primary",className:Qe,children:o}),a&&(0,s.jsx)(We.ZP,{onClick:c,className:Xe,children:l})]})},et={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},tt=function(e){var t=e.className,n=e.style,o=void 0===n?{}:n,i=e.LeftContent,r=e.children,a=e.RightContent;return(0,s.jsx)("div",{className:j()(et.fixedBottom,t),style:o,children:(0,s.jsxs)("div",{className:et.wrap,children:[(0,s.jsx)("div",{className:et.left,children:i}),(0,s.jsx)("div",{className:et.center,children:r}),(0,s.jsx)("div",{className:et.right,children:a})]})})},nt="crumbs___V41Oe",ot="hover___bEIVd",it=function(e){var t=e.className,n=e.style,i=void 0===n?{}:n,r=e.dataSource,a=void 0===r?[]:r;return(0,s.jsx)("div",{className:j()(nt,t),style:i,children:a.map((function(e,t){return t"," "]})]},t):(0,s.jsx)("span",{style:{color:"#5F6368"},children:e.name},t)}))})},rt=n(31797),at=["onChange"],st=rt.Z.Countdown,lt=function(e){var t=e.onChange,n=Ge()(e,at),i=(0,o.useState)(null),r=d()(i,2),a=r[0],l=r[1];(0,o.useEffect)((function(){"number"==typeof a&&a>=0&&t(a)}),[a]);return(0,s.jsx)(st,De()(De()({},n),{},{onChange:function(e){var t=Math.floor(e/1e3);l(t)}}))}},88080:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(59301);function i(e,t){var n=(0,o.useRef)();(0,o.useEffect)((function(){n.current=e})),(0,o.useEffect)((function(){if(null!==t){var e=setInterval((function(){n.current()}),t);return function(){return clearInterval(e)}}}),[t])}},3502:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});n(59301);var o=n(38854),i=n(20834),r=n(6848),a=n(98135),s="searchSortControllerContainer___AAq4n",l="btn___bMc0x",c="btnSort___vBpNG",d="tips___egWVQ",u=n(37712),p=function(e){var t=e.isAdmin,n=(e.dataSource,e.batchStatus,e.SortMenuName),p=e.setSortMenuName,m=e.onSearch,h=e.onSort,f=(e.onBatch,t?[{name:"默认排序",type:"position",direction:"desc"},{name:"创建时间升序",type:"created_at",direction:"asc"},{name:"创建时间降序",type:"created_at",direction:"desc"},{name:"更新时间升序",type:"updated_at",direction:"asc"},{name:"更新时间降序",type:"updated_at",direction:"desc"},{name:"作业名称升序",type:"name_pinyin",direction:"asc"},{name:"作业名称降序",type:"name_pinyin",direction:"desc"}]:[{name:"默认排序",type:"position",direction:"desc"},{name:"按发布时间升序",type:"created_at",direction:"asc"},{name:"按发布时间降序",type:"created_at",direction:"desc"},{name:"按截止时间升序",type:"updated_at",direction:"asc"},{name:"按截止时间降序",type:"updated_at",direction:"desc"},{name:"作业名称升序",type:"name_pinyin",direction:"asc"},{name:"作业名称降序",type:"name_pinyin",direction:"desc"}]),g="默认排序"===n;return(0,u.jsxs)("div",{className:s,children:[(0,u.jsx)("div",{children:(0,u.jsx)(o.Z,{dropdownRender:function(){return(0,u.jsx)(i.Z,{selectedKeys:[n],children:f.map((function(e){return(0,u.jsx)(i.Z.Item,{onClick:function(){return p((t=e).name),void h(t);var t},children:e.name},e.name)}))})},children:(0,u.jsx)("div",{children:(0,u.jsxs)("span",{className:"".concat(l," ").concat(g?c:""),children:[(0,u.jsx)("i",{className:"iconfont icon-paixu font14 mr5"}),n]})})})}),g&&(0,u.jsx)(r.Z,{title:"优先按照调整排序结果展示,未设置排序时,按照创建时间降序排列",children:(0,u.jsx)("span",{className:d,children:(0,u.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2"})})}),(0,u.jsx)(a.Z.Search,{allowClear:!0,placeholder:"请输入名称进行搜索",onSearch:function(e){return m(e.trim())},style:{width:220,marginLeft:"auto"}})]})}},45971:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});n(59301);var o=n(20834),i=n(95237),r=n(43604),a=n(38854),s=n(6848),l="tabMenuContainer___xbZhu",c="control___tg7XY",d="iconH___CDXCm",u="selectBtn___Da4jv",p=n(76252),m=n(22961),h=n(37712),f=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.isLoading,f=e.addText,g=e.tabDataSource,x=e.isAdmin,v=e.dispatch,w=e.type,y=e.exportType,b=e.TooltipTitle,j=e.categoryId,k=e.dropdownMenu,C=e.isShowRightControl,A=e.defaultSelectedKeys,_=e.classroomList,S=e.onTabMenuClick,N=e.onTooltipTitleClick,B=e.onDropdownMenuClick,T=e.onsetClick,L=(0,p.useParams)();return(0,h.jsx)("div",{className:l,children:(0,h.jsxs)(i.Z,{children:[(0,h.jsx)(r.Z,{flex:"1",children:(0,h.jsx)(o.Z,{mode:"horizontal",selectedKeys:A,children:g.map((function(e){return(0,h.jsxs)(o.Z.Item,{onClick:function(){return n?{}:S(e)},children:[(0,h.jsx)("span",{className:"c-grey-666 ".concat(x?"mr20":""),children:e.name}),void 0!==e.total&&(0,h.jsx)("span",{className:"c-grey-999",children:e.total||0})]},e.id)}))})}),x&&C&&(0,h.jsxs)(r.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3},children:[(0,h.jsx)(a.Z,{className:"mr10",placement:"bottom",arrow:!0,dropdownRender:function(){return(0,h.jsxs)(o.Z,{children:[(0,h.jsx)(o.Z.Item,{onClick:function(){v({type:"classroomList/setActionTabs",payload:{key:"导出成绩",type:w,exportType:y,category_id:L.categoryId}})},children:"学生成绩"},1),(0,h.jsx)(o.Z.Item,{onClick:function(){p.history.push("/classrooms/".concat(null==L?void 0:L.coursesId,"/exportlist/").concat("group"===y?"group_work_list":"normal_work_list"))},children:"历史导出"},3)]})},children:(0,h.jsx)("div",{className:"c-blue font16 ml20 current",style:{marginTop:2},children:(0,h.jsx)("span",{style:{color:"#666666",cursor:"pointer"},children:(0,h.jsx)("i",{className:"iconfont icon-xiazai6"})})})}),!(0,m.Rm)()||null!==(t=_.AssistantObject.normal)&&void 0!==t&&t.can_create?(0,h.jsx)("span",{className:"c-grey-666",style:{marginLeft:8,cursor:"pointer",marginTop:"3px"},onClick:T,children:(0,h.jsx)("i",{className:"iconfont icon-shezhi6 font16 mr5"})}):"",(0,h.jsxs)("div",{className:c,children:[(0,h.jsx)("div",{className:"c-blue font16 ml20 current",style:{marginTop:2},onClick:N,children:(0,h.jsx)(s.Z,{title:b,children:(0,h.jsx)("span",{className:"".concat(d,j?" iconfont icon-zhongmingmingmulu":" iconfont icon-xinjianmulu1")})})}),(0,h.jsx)(a.Z,{className:"ml10",dropdownRender:function(){return(0,h.jsx)(o.Z,{onClick:function(e){var t=e.key;B(t)},children:k.map((function(e){return(0,h.jsx)(o.Z.Item,{children:e.name},e.id)}))})},children:(0,h.jsxs)("span",{className:u,children:[(0,h.jsx)("span",{children:(0,h.jsx)("i",{className:"iconfont icon-tianjiadaohang"})}),(0,h.jsx)("span",{children:f||"新建作业"})]})})]})]})]})})}))},69125:function(e,t,n){"use strict";n.r(t),n.d(t,{CommonHomeworkContext:function(){return Fe},default:function(){return We}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),d=n.n(c),u=n(59301),p=n(76252),m=n(8591),h=n(53864),f=n(81228),g=n(43418),x=n(95237),v=n(43604),w=n(5112),y=n(60324),b=n(26415),j=n(24905),k=n(85699),C=n(76279),A=n(22961),_=n(37205),S=n.n(_),N=n(39647),B=n.n(N),T=n(51836),L=n(7472),P=n(37712),Z=["classroomList","dispatch","match","location","user","onCallback"],M=(0,p.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,o=e.classroomList,r=e.dispatch,s=(e.match,e.location,e.user),c=e.onCallback,h=(B()(e,Z),(0,p.useParams)()),f=(0,u.useState)(!1),x=d()(f,2),v=x[0],w=x[1],y=(0,u.useState)(!1),b=d()(y,2),j=b[0],k=b[1],_=(0,u.useRef)(null);(0,u.useEffect)((function(){if("删除"===o.actionTabs.key){if((0,A.j5)())return void k(!0);var e={hasNum:0,noHasNum:0};o.actionTabs.selectArrsAll.map((function(t){var n;t.author_login===(null===(n=s.userInfo)||void 0===n?void 0:n.login)?++e.hasNum:++e.noHasNum})),e.noHasNum>0?g.Z.info({title:"权限提示",className:"custom-modal-divider ",icon:null,content:(0,P.jsxs)("div",{children:["当前选中资源中:",(0,P.jsx)("span",{className:"c-blue",children:e.hasNum}),"个由您本人发布,",(0,P.jsx)("span",{className:"c-red",children:e.noHasNum})," ","个由其他老师发布。",(0,P.jsx)("br",{}),"课堂内只能删除本人发布的资源,请取消选中其他老师发布的资源。"]}),onOk:function(){N()}}):k(!0)}else k(!1)}),[o.actionTabs.key]);var N=function(){r({type:"classroomList/setActionTabs",payload:{}})};return(0,P.jsx)(g.Z,{centered:!0,title:"提示",open:j,okText:"确定",cancelText:"取消",confirmLoading:v,destroyOnClose:!0,onOk:a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=_.current)||void 0===t||!t.onVerify()){e.next=2;break}return e.abrupt("return");case 2:return w(!0),e.next=5,(0,T.ZP)("/api/courses/".concat(h.coursesId,"/homework_commons/multi_destroy.json"),{method:"post",body:{homework_ids:S()(o.actionTabs.selectArrs)}});case 5:n=e.sent,w(!1),0===n.status&&((0,C.L9)(["教学课堂","图文作业","删除"]),m.ZP.success("删除成功"),r({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),c&&c(),(0,A.GJ)()?r({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},o.actionTabs.params),{},{type:1})}):r({type:"classroomList/getClassroomCommonList",payload:l()({},o.actionTabs.params)}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:h.coursesId}}));case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){N()},children:null!=o&&null!==(t=o.actionTabs)&&void 0!==t&&t.status&&["未发布"].includes(null==o||null===(n=o.actionTabs)||void 0===n?void 0:n.status)?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("p",{children:"提交作品将全部被删除,不可恢复"}),(0,P.jsx)("p",{children:"是否确认删除?"})]}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("p",{style:{color:"#DD0000"},children:"删除作业则会清除学生所有的答题数据,且数据不可恢复,如确定删除,请输入下方验证码"}),(0,P.jsx)(L.Z,{ref:function(e){return _.current=e}})]})})})),E=n(61054),D=n(99351),O=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=(0,p.useParams)();return(0,P.jsx)(g.Z,{centered:!0,title:"提示",open:"设为公开"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.ZP)("/api/courses/".concat(o.coursesId,"/homework_commons/set_public.json"),{method:"post",body:{homework_ids:S()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,C.L9)(["教学课堂","图文作业","设为公开"]),m.ZP.success("操作成功"),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,A.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:1})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:(0,P.jsxs)("p",{children:["设为公开后,非课堂成员也可以访问查看",(0,P.jsx)("br",{}),"是否确认设为公开?"]})})})),R=["classroomList","dispatch","onCallback"],I=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=e.onCallback,r=(B()(e,R),(0,p.useParams)());return r.id=r.coursesId,(0,P.jsx)(g.Z,{centered:!0,title:"提示",open:"收藏"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.ZP)("/api/courses/".concat(r.id,"/homework_commons/add_to_homework_bank.json"),{method:"post",body:{all_check:0,homework_ids:S()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,C.L9)(["教学课堂","图文作业","收藏"]),m.ZP.success("收藏成功,请前往【个人主页/课堂资源】查看"),n({type:"classroomList/setActionTabs",payload:{}}),o&&o(),(0,A.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:1})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)}),n({type:"classroomList/setActionTabs",payload:{}}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:"确认收藏?"})})),H=n(85573),z=n.n(H),G=n(78241),F=n(98135),W=(n(99232),(0,p.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t,n,o=e.classroomList,r=(e.loading,e.dispatch),s=e.onCallback,c=(0,p.useParams)(),u=(0,p.useLocation)(),h=o.actionTabs,f=G.Z.useForm(),w=d()(f,1)[0];return(0,P.jsxs)(g.Z,{centered:!0,title:"新建目录",open:"新建目录"===o.actionTabs.key,okText:"确定",cancelText:"取消",bodyStyle:{minHeight:200},onOk:a()(i()().mark((function e(){var t,n,a,d,h,f,g,x;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=w.getFieldValue(),n="/api/course_modules/".concat(o.detailCommonHomeworksList.main_category_id,"/add_second_category.json"),e.next=4,(0,T.ZP)(n,{method:"post",body:l()({},t)});case 4:0===(a=e.sent).status&&(m.ZP.success("添加成功"),s&&s(),r({type:"classroomList/setActionTabs",payload:{}}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:c.coursesId}}),h=o.actionTabs.selectArrs.type,f=(null==a?void 0:a.category_id)||0,(g=null===(d=u.pathname)||void 0===d?void 0:d.split("/"))[4]=f,g[3]=h||g[3],x=null==g?void 0:g.join("/"),p.history.push(x));case 6:case"end":return e.stop()}}),e)}))),onCancel:function(){r({type:"classroomList/setActionTabs",payload:{}})},children:[(0,P.jsx)("p",{className:"tc",children:(0,P.jsx)("br",{})}),o.courseGroups.course_groups&&(0,P.jsx)(G.Z,{form:w,initialValues:z()({},"name",""),children:(0,P.jsx)(G.Z.Item,{name:"name",children:(0,P.jsxs)(x.Z,{className:"mt30",children:[(0,P.jsx)(v.Z,{children:"目录名称:"}),(0,P.jsx)(v.Z,{flex:"1",children:(0,P.jsx)(F.Z,{defaultValue:(null===(t=h.selectArrs)||void 0===t?void 0:t.category_name)||(null===(n=h.selectArrs)||void 0===n?void 0:n.name)})})]})})})]})}))),U=n(99313),J=n(3113),V=n(26724),K=n.n(V),q=n(71796),Y=n(28103),Q=n(81327),X=n(71418),$=n(11314),ee={shixunItemWrapper:"shixunItemWrapper___cgnhs",checkboxWrapper:"checkboxWrapper___Z7zZt",contentWrapper:"contentWrapper___TO4hm",title:"title___P8Su0",desc:"desc___j_4ZZ",info:"info___rg8e4",scrollWrap:"scrollWrap___EjY1R",loading:"loading___iNP0r"},te=n(30632),ne=q.Z.Paragraph,oe=function(e,t){var n=e.createShixunParams,o=(0,u.useState)("0"),r=d()(o,2),s=r[0],c=r[1],p=(0,u.useState)("hot"),m=d()(p,2),h=m[0],f=m[1],g=(0,u.useState)([]),w=d()(g,2),y=w[0],b=w[1],k=(0,u.useState)(!0),C=d()(k,2),A=C[0],_=C[1],N=(0,u.useState)(1),B=d()(N,2),T=B[0],L=B[1],Z=(0,u.useRef)(null),M=(0,u.useRef)(null),E=(0,u.useRef)({page:1,order:"hot",keyword:"",shixun_type:"jupyter",diff:"0",limit:10,mine:"",status:""}),D=function(){var e=a()(i()().mark((function e(t,n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:_(!0),clearTimeout(Z.current),Z.current=setTimeout(a()(i()().mark((function e(){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(t,"params2"),e.next=3,(0,$.he)(t);case 3:if((o=e.sent).status){e.next=15;break}if(!n){e.next=10;break}return 0===o.shixuns.length&&W(!1),b((function(e){return[].concat(S()(e),S()(o.shixuns))})),_(!1),e.abrupt("return");case 10:M.current.scrollTop=0,W(!0),L(T+1),_(!1),b(o.shixuns);case 15:case"end":return e.stop()}}),e)}))),1e3);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();(0,u.useImperativeHandle)(t,(function(){return{search:function(e){return D(l()(l()({},E.current),{},{keyword:e}))},changeKeyWord:function(e){return E.current.keyword=e}}})),(0,u.useEffect)((function(){D(E.current)}),[]);var O=(0,u.useState)([]),R=d()(O,2),I=R[0],H=R[1],z=(0,u.useState)(!0),G=d()(z,2),F=G[0],W=G[1];return(0,P.jsxs)("div",{className:"mt20",children:[(0,P.jsxs)(x.Z,{justify:"space-between",style:{marginBottom:8},children:[(0,P.jsx)(v.Z,{children:[{name:"全部",id:"0"},{name:"初级",id:"1"},{name:"中级",id:"2"},{name:"中高级",id:"3"},{name:"高级",id:"4"}].map((function(e,t){return(0,P.jsx)("span",{style:{border:"none",marginRight:20,color:s===e.id?"#3061D0":"rgba(0, 0, 0, 0.85)"},onClick:function(){c(e.id),E.current.diff=e.id,D(E.current)},children:e.name},t)}))}),(0,P.jsx)(v.Z,{children:(0,P.jsx)(te.tp,{dataSource:[{name:"最新",id:"new"},{name:"最热",id:"hot"},{name:"我的",id:"mine"}],value:h,onChange:function(e){f(e),E.current.order=e,"mine"===e?(E.current.mine="true",E.current.status="2"):(E.current.mine="",E.current.status=""),D(E.current)}})})]}),(0,P.jsxs)("div",{className:ee.scrollWrap,children:[(0,P.jsx)("div",{ref:M,style:{maxHeight:260,overflow:"hidden auto"},children:(0,P.jsx)(K(),{initialLoad:!1,pageStart:1,threshold:100,loadMore:function(e){D(l()(l()({},E.current),{},{page:e}),!0)},hasMore:F&&!A,useWindow:!1,children:(0,P.jsx)(j.Z.Group,{onChange:function(e){H(e),n.current.shixuns_info=e.map((function(e){return{shixun_id:e,is_copy:0,is_use:1}}))},value:I,children:y.map((function(e){var t=e||{},n=t.name,o=t.id,i=t.description,r=t.challenge_names,a=t.author_name,s=t.author_school_name,l=t.level,c=t.total_stu_num;return(0,P.jsxs)("div",{className:ee.shixunItemWrapper,children:[(0,P.jsxs)(x.Z,{align:"middle",className:ee.checkboxWrapper,gutter:14,style:{padding:"20px 20px 0 20px",background:"transparent",marginBottom:"0px"},children:[(0,P.jsx)(j.Z,{value:o,style:{paddingRight:"10px"}}),(0,P.jsx)("div",{className:ee.title,style:{fontWeight:"600"},children:n})]}),(0,P.jsxs)("div",{className:ee.contentWrapper,children:[(0,P.jsx)(ne,{ellipsis:{rows:2},className:ee.desc,style:{color:"#8e8888",fontSize:"12px",margin:"5px 0px"},children:i}),(0,P.jsx)(x.Z,{children:r.map((function(e,t){return(0,P.jsxs)("span",{className:ee.mission,style:{fontSize:"14px",fontWeight:"600",color:"#4f4f4b"},children:[(0,P.jsxs)("span",{style:{paddingRight:"5px"},children:["第",t+1,"关"]})," ",e]},t)}))}),(0,P.jsx)(Y.Z,{dashed:!0,style:{margin:"8px 0"}}),(0,P.jsx)(x.Z,{className:ee.info,children:(0,P.jsxs)(Q.Z,{children:[(0,P.jsx)("span",{style:{fontWeight:"600",color:"black"},children:a}),(0,P.jsx)("span",{children:"|"}),(0,P.jsx)("span",{children:s}),(0,P.jsx)("span",{children:"|"}),(0,P.jsxs)("span",{children:["难度系数 ",(0,P.jsx)("span",{style:{fontWeight:"400",color:"#000000"},children:l})]}),(0,P.jsx)("span",{children:"|"}),(0,P.jsxs)("span",{children:["学习人数  ",(0,P.jsx)("span",{style:{fontWeight:"600",color:"black"},children:c})]})]})})]})]},o)}))})},T)}),A&&(0,P.jsx)("div",{className:ee.loading,children:(0,P.jsx)(X.Z,{spinning:!0})})]})]})},ie=(0,u.forwardRef)(oe),re={flex_box_center:"flex_box_center___c_im6",flex_space_between:"flex_space_between___bYk0F",flex_box_vertical_center:"flex_box_vertical_center___umg07",flex_box_center_end:"flex_box_center_end___gNLdg",flex_box_column:"flex_box_column___i84TM",line1:"line1___xbMUH",form:"form___hugHb",small_search:"small_search___x0fZd",border:"border___rjNxX"},ae=n(22845),se=n(39324),le=n(6048),ce=(U.Z.TabPane,(0,p.connect)((function(e){var t=e.shixunHomeworks,n=e.classroomList;return{shixunHomeworks:t,loading:e.loading,classroomList:n}}))((function(e){var t,n=e.shixunHomeworks,o=(e.loading,e.classroomList),r=e.dispatch,s=e.refreshList,c=(0,p.useParams)(),m=((0,p.useLocation)(),G.Z.useForm()),h=d()(m,1)[0],f=(n.brankList,(0,u.useState)(!1)),w=d()(f,2),y=(w[0],w[1]),b=(0,u.useState)(!0),k=d()(b,2),_=k[0],N=k[1],B=(0,u.useState)(!1),T=d()(B,2),L=T[0],Z=T[1],M=(0,u.useState)("myself"),E=d()(M,2),D=E[0],O=E[1],R=(0,u.useState)([]),I=d()(R,2),H=I[0],W=I[1],U=(0,u.useState)(),V=d()(U,2),q=V[0],Y=V[1],Q=(0,u.useState)({page:0,limit:20,object_type:"normal",search:"",filter:"myself"}),X=d()(Q,2),$=X[0];X[1];(0,u.useEffect)((function(){"题库选用"===n.actionTabs.key&&te()}),[n.actionTabs.key]);var ee=[],te=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_){e.next=11;break}return y(!1),++$.page,e.next=5,r({type:"shixunHomeworks/getBrankList",payload:l()({},$)});case 5:n=e.sent,H=S()(H.concat(n.object_list)),Y(n.is_teacher),(null===(t=n.object_list)||void 0===t?void 0:t.length)<$.limit?N(!1):N(!0),W(S()(H)),""==n.object_list&&1===$.page&&y(!0);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ne=(0,u.useRef)({identifier:c.coursesId,shixuns_info:[],type:"normal",coursesId:c.coursesId}),oe=function(){var e=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(!0),e.next=3,(0,se.aQ)(t);case 3:n=e.sent,Z(!1),n.status||(s(),r({type:"shixunHomeworks/setActionTabs",payload:{}}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ce=(0,u.useRef)(),de=o.detailCommonHomeworksList;return(0,P.jsxs)(g.Z,{className:re.border,centered:!0,title:(0,P.jsx)("span",{style:{fontWeight:"600"},children:"选用课堂资源"}),destroyOnClose:!0,open:"题库选用"===n.actionTabs.key,okText:"确定",cancelText:"取消",width:800,bodyStyle:{minHeight:200},okButtonProps:{loading:L},onOk:a()(i()().mark((function e(){var t,o,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("jupyter"!==D){e.next=3;break}return oe(ne.current),e.abrupt("return");case 3:return Z(!0),t=h.getFieldsValue(),e.next=7,r({type:"shixunHomeworks/saveBanks",payload:{course_id:c.coursesId,object_type:"normal",category:c.categoryId,bank_id:t.group_ids}});case 7:0===(null==(o=e.sent)?void 0:o.status)&&((0,C.L9)(["教学课堂","图文作业","选用课堂资源"]),r({type:"classroomList/getClassroomLeftMenus",payload:{id:c.coursesId}}),r({type:"shixunHomeworks/setActionTabs",payload:{}}),r({type:"classroomList/setActionTabs",payload:{key:"立即发布",type:1,selectArrs:o.object_ids,params:null===(a=n.actionTabs)||void 0===a?void 0:a.params,manage_all_group:null==de?void 0:de.manage_all_group}})),Z(!1);case 10:case"end":return e.stop()}}),e)}))),onCancel:function(){r({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,P.jsxs)(x.Z,{style:{borderBottom:"0.5px solid gainsboro",paddingBottom:"15px"},children:[(0,P.jsx)(v.Z,{span:12,children:[{name:"我的资源",id:"myself"},{name:"公共资源",id:"public"},{name:"jupyter实训",id:"jupyter"}].map((function(e,t){return(0,P.jsx)(J.ZP,{shape:"round",style:D===e.id?{background:"#e8efff",border:"none",color:"#6f9fe6"}:{background:"#f6f6f6",border:"none"},type:D===e.id?"ghost":"default",className:"mr10",onClick:function(){var t=a()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("jupyter"!==e.id){t.next=3;break}return O(e.id),t.abrupt("return");case 3:H=[],_=!0,$.page=0,$.search="",$.filter=e.id,te(),O(e.id);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),children:e.name},t)}))}),(0,P.jsx)(v.Z,{span:12,className:"tr",children:(0,P.jsx)(F.Z.Search,{className:re.small_search,placeholder:"输入标题进行搜索",onChange:function(e){var t;"jupyter"===D&&(null===(t=ce.current)||void 0===t||t.changeKeyWord(e.target.value))},suffix:(0,P.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(re.searchIcon)}),onSearch:function(e){var t;(e&&(0,le.tk)({name:e,copywriting:e,position:"HomeworkCommon"}),"jupyter"!==D)?(_=!0,$.search=e,$.page=0,H=[],te()):null===(t=ce.current)||void 0===t||t.search(e)},style:{width:260}})})]}),"myself"===D&&(0,P.jsxs)("p",{className:"tc mt10",children:["选用对象:你在课堂图文作业列表中已",(0,P.jsx)("span",{className:"c-orange",children:"收藏"}),"的图文作业"]}),"public"===D&&(0,P.jsx)("p",{className:"tc mt10",children:"选用对象:题库中已设置成公共属性的所有图文作业"}),"jupyter"===D?(0,P.jsx)(ie,{createShixunParams:ne,ref:ce}):(0,P.jsxs)("div",{style:{background:"#F4FAFF",maxHeight:200,overflow:"auto",padding:"20px 10px"},children:[!q&&"public"===D&&(0,P.jsxs)("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"},children:[(0,P.jsx)("span",{children:"通过职业认证的教师才能访问公共课程资源库"}),(0,P.jsx)("p",{style:{cursor:"pointer",background:"#ff6800",height:"30px",textAlign:"center",marginTop:"5px",padding:"5px 0px",color:"#fff",width:"80px"},onClick:function(){window.open("/account/certification")},children:"立即认证"})]}),(0,P.jsx)(K(),{initialLoad:!1,pageStart:0,threshold:700,loadMore:function(){N(!1),te()},hasMore:_,useWindow:!1,children:(0,P.jsxs)(G.Z,{form:h,initialValues:z()({},"group_ids",ee),className:re.form,onChange:function(e){var t=h.getFieldValue();ee=t},children:[""==H&&(0,P.jsx)(ae.Z,{styles:{margin:"10px auto"}}),(0,P.jsx)(G.Z.Item,{name:"group_ids",children:(0,P.jsx)(j.Z.Group,{style:{width:"100%",flexDirection:"column"},className:"font14",children:null===(t=H)||void 0===t?void 0:t.map((function(e,t){return(0,P.jsxs)(x.Z,{children:[(0,P.jsx)(v.Z,{flex:"2",children:(0,P.jsx)(j.Z,{onChange:function(e){},value:String(e.id),defaultChecked:!0,children:(0,P.jsx)("span",{className:["c-black",re.line1].join(" "),children:e.name})},t)}),(0,P.jsx)(v.Z,{flex:"1",className:"c-black",children:(0,P.jsx)("span",{className:re.line1,children:null==e?void 0:e.course_list_name})}),(0,P.jsx)(v.Z,{flex:"50px",className:"c-black",children:"public"===D&&(0,A.Ny)()||"myself"===D?(0,P.jsx)("span",{className:"c-blue current",onClick:function(){window.open("/users/innov/topics/".concat(e.id,"/personal/normal/edit"))},children:"编辑"}):null==e?void 0:e.username})]},t)}))})})]})})]})]})}))),de=n(50414),ue=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.styles,n=void 0===t?{}:t,o=e.onSelect,i=e.params,r=e.classroomList,a=(0,u.useState)(!1),s=d()(a,2),c=s[0],h=s[1],f=(0,u.useState)(""),x=d()(f,2),v=x[0],y=x[1];(0,u.useEffect)((function(){h(!1),y("")}),[]);return(0,P.jsxs)("section",{className:"tc animated fadeIn",style:l()(l()({},{color:"#999",margin:"200px auto"}),n),children:[(0,P.jsx)("img",{src:de.z3}),(0,P.jsx)("p",{className:"mt20 font14",children:"该课程无图文作业,可以下方按钮或右上方“新建作业”按钮创建作业"}),(0,P.jsxs)("div",{style:{marginTop:"30px"},children:[(0,P.jsx)(J.ZP,{onClick:function(){return h(!0)},type:"primary",style:{width:"128px",height:"40px",marginRight:"20px",borderRadius:"4px"},children:"新建作业"}),(0,P.jsx)(J.ZP,{onClick:function(){(0,C.xg)("https://www.educoder.net/forums/4910")},type:"primary",style:{width:"128px",height:"40px",marginLeft:"20px",borderRadius:"4px"},children:"新建作业指引"})]}),c&&(0,P.jsx)(g.Z,{open:!0,centered:!0,title:"新建作业",onCancel:function(){return h(!1)},onOk:function(){var e;!(0,A.Rm)()||null!=r&&null!==(e=r.AssistantObject)&&void 0!==e&&null!==(e=e.normal)&&void 0!==e&&e.can_create?("1"===v&&p.history.push("/classrooms/".concat(i.coursesId,"/common_homework/").concat(i.categoryId,"/add")),"2"===v&&(o(),h(!1),y(""))):m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:(0,P.jsxs)("div",{children:[(0,P.jsx)("div",{children:(0,P.jsx)(w.ZP,{value:"1",style:{marginTop:"15px"},checked:"1"===v,onClick:function(){return y("1")},children:"新建图文作业"})}),(0,P.jsx)("div",{children:(0,P.jsx)(w.ZP,{value:"2",style:{marginTop:"15px"},checked:"2"===v,onClick:function(){return y("2")},children:"选用资源"})})]})})]})})),pe=n(82746),me=n(45971),he=n(3502),fe=n(20834),ge=n(38854),xe="bottomControlContainer___t5WWD",ve="buttonWrap___HfupJ",we="moveCategory___MrmA6",ye=n(43501),be=function(e){var t,n=e.buttonDataSource,o=e.onClick,r=(0,u.useContext)(Fe),s=r.allSelect,l=r.setAllSelect,c=r.setSelectArrs,p=r.dataSource,h=r.selectArrs,f=r.useBatchStatus,g=r.dispatch,x=r.params,v=r.getData,w=r.detailLeftMenus,y=r.main_category_id,b=r.setSelectArrsAll,k=(0,u.useState)(!1),C=d()(k,2),_=C[0],N=C[1],B=(0,u.useState)(""),L=d()(B,2),Z=L[0],M=L[1];w.course_modules&&(t=w.course_modules.filter((function(e){return"common_homework"===e.type}))[0]);var E=(0,P.jsx)("div",{className:we,onMouseLeave:function(e){return N(!1)},children:(0,P.jsxs)(fe.Z,{onClick:function(){var e=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.item,n=t.key,t.keyPath,t.domEvent,""!=h){e.next=4;break}return m.ZP.error("请选择你要操作的任务"),e.abrupt("return",null);case 4:return e.next=6,(0,T.ZP)("/api/courses/".concat(x.id,"/homework_commons/move_to_category.json"),{method:"post",body:{homework_ids:h,new_category_id:n}});case 6:0===e.sent.status&&(m.ZP.success("操作成功"),f(!1),v(),g({type:"classroomList/getClassroomLeftMenus",payload:{id:x.coursesId}}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),style:{maxHeight:300,width:240,overflow:"auto"},children:[(0,P.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",children:(0,P.jsx)(F.Z,{onChange:function(e){M(e.target.value)}})}),t&&t.second_category.filter((function(e){return"未分配目录"!==e.category_name})).map((function(e,t){var n;if(!(""!==Z&&e.category_name.indexOf(Z)<0))return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(fe.Z.Item,{className:"multi-llipsis1e",children:e.category_name},e.category_id),null==e||null===(n=e.third_category)||void 0===n?void 0:n.map((function(e){return(0,P.jsx)(fe.Z.Item,{style:{marginLeft:20},className:"multi-llipsis1e",children:e.category_name},e.category_id)}))]})})),(0,P.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:function(e){e.preventDefault(),g({type:"classroomList/setActionTabs",payload:{key:"添加目录",params:x,selectArrs:{category_id:y,type:"common_homework"}}})},children:"新建子目录..."})]})});return(0,P.jsxs)("div",{className:xe,children:[(0,P.jsxs)("div",{children:[(0,P.jsx)("div",{children:(0,P.jsxs)(j.Z,{checked:s,onChange:function(e){l(e.target.checked),c(e.target.checked?p.map((function(e){return e.homework_id})):[]),e.target.checked?b(S()(p)):b([])},children:["全选本页(",h.length,")"]})}),(0,A.GJ)()&&n.map((function(e){return(0,P.jsx)("div",{children:(0,P.jsx)(J.ZP,{type:"primary",icon:e.icon,className:ve,onClick:function(){return o(e)},children:e.name})},e.key)})),(0,P.jsx)("div",{children:(0,P.jsx)(J.ZP,{type:"primary",onClick:function(){var e={courseId:x.id,container_type:"common_homework"};x.categoryId&&(e.category_id=x.categoryId),g({type:"classroomList/getAllTaskList",payload:e}),g({type:"classroomList/setActionTabs",payload:{key:"调整排序"}})},icon:(0,P.jsx)("i",{className:"iconfont icon-tiaozhengpaixu2"}),className:ve,children:"调整排序"})}),(0,A.GJ)()&&(0,P.jsx)("div",{children:(0,P.jsx)(ge.Z,{open:_,placement:"topLeft",dropdownRender:function(){return E},getPopupContainer:function(e){return e.parentNode},children:(0,P.jsx)("span",{className:"ant-dropdown-link",onMouseEnter:function(e){return N(!0)},children:(0,P.jsx)(J.ZP,{type:"primary",className:ve,icon:(0,P.jsx)("i",{className:"iconfont icon-yidongmulu"}),children:(0,P.jsxs)("span",{children:["移动到目录 ",(0,P.jsx)(ye.Z,{})]})})})})}),(0,A.GJ)()&&(0,P.jsx)("div",{children:(0,P.jsx)(J.ZP,{type:"primary",onClick:function(){return o({key:"collection",name:"收藏",icon:(0,P.jsx)("i",{className:"iconfont icon-shoucang1"})})},icon:(0,P.jsx)("i",{className:"iconfont icon-shoucang1"}),className:ve,children:"收藏"})})]}),(0,P.jsx)("div",{children:(0,P.jsx)(J.ZP,{type:"primary",ghost:!0,onClick:function(){c([]),f(!1)},children:"取消操作"})})]})},je=n(6848),ke=n(14491),Ce={listContainer:"listContainer___ZW4HW",info:"info___FuRA_",title:"title___nxXeU",left:"left___oBZYX",right:"right___TePEU",flexBox:"flexBox___kp4Xl",detail:"detail___x1A55",iconV:"iconV___HcC2c",shixunTag:"shixunTag___NZAsm",pingceTag:"pingceTag___Pqi7y",pingceTags:"pingceTags___JQb2l"},Ae=n(12500),_e=n(14630),Se=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n,o,r,s,c=e.dataSource,m=e.params,h=(e.classroomList,e.manageAllGroup),f=(0,u.useContext)(Fe),g=(f.batchStatus,f.selectArrs),x=f.setSelectArrs,v=f.selectArrsAll,w=f.setSelectArrsAll,y=f.dispatch,b=(0,p.useParams)(),k=(0,u.useState)(!1),_=d()(k,2),N=_[0],B=_[1],L=(0,u.useState)([]),Z=d()(L,2),M=Z[0],E=Z[1];b=l()(l()(l()({},m),b),{},{category:null===(t=b)||void 0===t?void 0:t.categoryId}),(0,u.useEffect)((function(){E([]),B(!1)}),[]);var D=[{title:"班级",dataIndex:"course_group_name",key:"course_group_name"},{title:"状态",dataIndex:"status",key:"status",width:80,filters:[{text:"未开始",value:"未开始"},{text:"提交中",value:"提交中"},{text:"补交中",value:"补交中"},{text:"已截止",value:"已截止"},{text:"未发布",value:"未发布"},{text:"匿评中",value:"匿评中"}],onFilter:function(e,t){return 0===t.status.indexOf(e)}},{title:"提交情况",dataIndex:"statistics",key:"statistics",width:80,render:function(e){var t,n;return"--"===e?e:(0,P.jsxs)("span",{children:[(0,P.jsx)("span",{children:null==e||null===(t=e.split("/"))||void 0===t?void 0:t[0]})," / ",(0,P.jsx)("span",{children:null==e||null===(n=e.split("/"))||void 0===n?void 0:n[1]})]})}},{title:"发布时间",dataIndex:"publish_time",key:"publish_time",sorter:!0,showSorterTooltip:!1,sortOrder:"publish_time"===b.sort_by?"desc"===b.sort_direction?"descend":"ascend":null},{title:"截止时间",dataIndex:"end_time",key:"end_time",sorter:!0,showSorterTooltip:!1,sortOrder:"end_time"===b.sort_by?"desc"===b.sort_direction?"descend":"ascend":null},{title:"补交时间",dataIndex:"late_time",key:"late_time",sorter:!0,showSorterTooltip:!1,sortOrder:"late_time"===b.sort_by?"desc"===b.sort_direction?"descend":"ascend":null},{title:"分班老师",dataIndex:"teachers",key:"teachers",width:150,ellipsis:{showTitle:!1},render:function(e){return"--"!==e&&e?(0,P.jsx)("span",{title:e,children:e}):"--"}}];function O(){return R.apply(this,arguments)}function R(){return(R=a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.ZP)("/api/homework_commons/".concat(c.homework_id,"/group_settings_statistics.json"),{method:"get",params:l()({},b)});case 2:t=e.sent,E(t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,P.jsxs)("div",{className:Ce.listContainer,onClick:function(e){e.stopPropagation(),(0,C.xg)("/classrooms/".concat(b.coursesId,"/common_homework/").concat(c.homework_id,"/detail"))},children:[(0,A.GJ)()&&(0,P.jsx)(j.Z,{onClick:function(e){e.stopPropagation()},style:{margin:"11px 0 0 10px"},checked:g.includes(c.homework_id),onChange:function(){return e=c.homework_id,void(g.includes(e)?(x(g.filter((function(t){return t!==e}))),w(v.filter((function(t){return t.homework_id!==e})))):(x([].concat(S()(g),[e])),w([].concat(S()(v),[c]))));var e}}),(0,P.jsxs)("div",{className:Ce.info,children:[(0,P.jsxs)("div",{className:Ce.title,children:[(0,P.jsxs)("div",{className:Ce.left,style:(0,A.dE)()?{paddingRight:(null==c?void 0:c.challenge_count)-(null==c?void 0:c.finished_challenge_count)?60:140}:{},children:[(0,A.GJ)()&&(0,P.jsx)(Ae.Z,{value:c.status,children:(0,P.jsx)(C.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:[c.status]})}),(0,A.dE)()&&(0,P.jsx)(C.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:c.status}),(0,P.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/classrooms/".concat(b.coursesId,"/common_homework/").concat(c.homework_id,"/detail").concat((0,A.dE)()?"?tabs=0":""),children:c.name})}),c.is_shixun&&(0,P.jsx)("span",{className:Ce.shixunTag,children:"实训"}),c.open_evaluate&&(0,P.jsx)(je.Z,{title:"该实践项目已启用评测功能,学生完成评测后系统将自动判分",children:(0,P.jsx)("span",{className:Ce.pingceTag,children:"评测"})}),(null==c?void 0:c.is_shixun)&&!c.open_evaluate&&(0,P.jsx)(je.Z,{title:"该实践项目未启用评测功能,学生提交作品后需教师手动评分",children:(0,P.jsx)("span",{className:Ce.pingceTags,children:"评测"})})]}),(0,P.jsxs)("div",{className:Ce.right,children:[(0,A.GJ)()&&"未发布"===c.status&&(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:[c],params:l()({},b),type:2,manage_all_group:h}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:(0,P.jsxs)("aside",{className:Ce.flexBox,children:[(0,P.jsx)("i",{className:"iconfont icon-yishezhifabushijian1"}),(0,P.jsx)("div",{children:"发布"})]})}),(0,A.dE)()&&(0,P.jsxs)("div",{className:Ce.actionIcon,children:[(null==c?void 0:c.challenge_count)-(null==c?void 0:c.finished_challenge_count)==0&&(0,P.jsx)("i",{className:"iconfont icon-yiwancheng1"}),!(null!==(n=c.status)&&void 0!==n&&n.includes("已截止"))&&!(null!==(o=c.status)&&void 0!==o&&o.includes("导入"))&&(0,P.jsxs)("aside",{onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log(c),t.stopPropagation(),c.is_jupyter||c.is_jupyter_lab?(0,_e.Z)({is_jupyter:c.is_jupyter,is_jupyter_lab:c.is_jupyter_lab,shixunId:c.shixun_identifier,homework_common_id:c.homework_id}):(0,C.xg)("/classrooms/".concat(b.coursesId,"/common_homework/").concat(c.homework_id,"/detail").concat((0,A.dE)()?"?tabs=1":""));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),className:Ce.flexBox,style:{marginRight:10},children:[(0,P.jsx)("i",{className:"iconfont icon-kaishixuexi font14"}),(0,P.jsx)("div",{children:"开始学习"})]}),((null===(r=c.status)||void 0===r?void 0:r.includes("已截止"))||(null===(s=c.status)||void 0===s?void 0:s.includes("导入")))&&(0,P.jsxs)("aside",{className:Ce.flexBox,style:{marginRight:10},children:[(0,P.jsx)("i",{className:"iconfont icon-chakanzuoye font14"}),(0,P.jsx)("div",{children:"查看作品"})]})]}),(0,A.GJ)()&&(0,P.jsx)(ge.Z,{placement:"bottomCenter",overlayClassName:Ce.dro,dropdownRender:function(){return(0,P.jsxs)(fe.Z,{children:["导入"!==c.status&&(0,P.jsx)(fe.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:[c],params:l()({},b),type:2,manage_all_group:h}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即发布"})},1),"导入"===c.status&&(0,P.jsx)(fe.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"补充成绩",name:null==c?void 0:c.name,id:null==c?void 0:c.homework_id,type:"normal"}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"补充成绩"})},23),"导入"!==c.status&&(0,P.jsx)(fe.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"立即截止",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:[c],params:l()({},b),type:2}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即截止"})},2),(0,P.jsx)(fe.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"删除",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:v,params:b,status:null==c?void 0:c.status}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即删除"})},22),"导入"!==c.status&&(0,P.jsx)(fe.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",onClick:function(e){e.stopPropagation()},to:"/classrooms/".concat(b.coursesId,"/common_homework/").concat(c.homework_id,"/detail?tabs=3"),children:"高级设置"})},6)]})},children:(0,P.jsxs)("aside",{onClick:function(e){return e.stopPropagation()},className:Ce.flexBox,style:{marginRight:6,cursor:"default"},children:[(0,P.jsx)("i",{className:"iconfont icon-gengduo4"}),(0,P.jsx)("div",{children:"更多"})]})})]})]}),(0,P.jsx)("div",{className:Ce.detail,children:(0,A.GJ)()&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("span",{className:"c-grey-333 mr20",children:c.author}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.uncommit_count&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"未做题"}),c.uncommit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.commit_count&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"已做题"}),c.commit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.compelete_count&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"已完成"}),c.compelete_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(c.status)&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"发布时间"}),c.publish_time]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(c.status)&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"截止时间"}),c.end_time]}),["已结束"].includes(c.status)&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"结束时间"}),c.status_time]}),!(null==c||!c.late_time)&&"--"!==(null==c?void 0:c.late_time)&&(0,P.jsxs)("span",{className:"c-grey-999",children:[(0,P.jsx)("span",{className:"mr5",children:"补交截止时间"}),null==c?void 0:c.late_time]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(c.status)&&(0,P.jsxs)("span",{className:Ce.iconV,onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),N||O(),B(!N);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,P.jsx)("i",{className:"iconfont icon-".concat(N?"shouqi":"xiala2")})," "]})]})}),(0,P.jsxs)("div",{className:Ce.content,children:[(0,A.dE)()&&(0,P.jsxs)("span",{className:Ce.infoStuIcon,children:[(0,P.jsx)("span",{className:"c-grey-333",children:c.author}),"已截止"===c.status&&!(null==c||!c.status_time)&&(0,P.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,P.jsx)("i",{className:"iconfont icon-shengyushijian font12 mr5"})," ",null==c?void 0:c.status_time]}),(0,P.jsxs)("span",{className:"ml20 c-grey-999",children:[(0,P.jsx)("i",{className:"iconfont icon-shijian1 font12 mr5"}),null==c?void 0:c.publish_time," 至 ",null==c?void 0:c.end_time," "]}),!(null==c||!c.late_time)&&"--"!==(null==c?void 0:c.late_time)&&(0,P.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,P.jsx)("span",{className:"mr5",children:"补交截止时间:"}),null==c?void 0:c.late_time]})]}),(0,A.GJ)()&&"未发布"!==c.status&&N&&M.length>5&&(0,P.jsx)(ke.Z,{scroll:{y:240},onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:M,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(b.sort_by=n.field),n.order||(b.sort_direction="asc"),"ascend"===n.order&&(b.sort_direction="asc"),"descend"===n.order&&(b.sort_direction="desc"),n.order||(b.sort_direction="asc"),O()},columns:D}),(0,A.GJ)()&&"未发布"!==c.status&&N&&M.length<6&&M.length>0&&(0,P.jsx)(ke.Z,{onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:M,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(b.sort_by=n.field),n.order||(b.sort_direction="asc"),"ascend"===n.order&&(b.sort_direction="asc"),"descend"===n.order&&(b.sort_direction="desc"),n.order||(b.sort_direction="asc"),O()},columns:D})]})]})]})})),Ne="bg___Ujhcv",Be=n(61132),Te="otherHomeworkWrap___cHqzM",Le="otherHomeworkContainer___k2TlQ",Pe="flex___N5oyJ",Ze="search___tWMHN",Me="content___wyNNo",Ee="listItem___mdegu",De="info___SwRt1",Oe="title___lilvJ",Re="describe___meICG",Ie="footer___irMwG",He=function(e){var t=e.courseId,n=e.type,o=e.onCancel,r=(0,p.useParams)(),s=(0,u.useState)({targerData:[],originData:[]}),c=d()(s,2),h=c[0],f=c[1],g=(0,u.useState)([]),x=d()(g,2),v=x[0],w=x[1],y=(0,u.useState)(!1),b=d()(y,2),k=b[0],A=b[1],_=function(){var e=a()(i()().mark((function e(){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(!0),e.next=3,(0,T.ZP)("/api/courses/".concat(t,"/homework_commons/impersonal_list.json"),{method:"get",params:{type:n}});case 3:o=e.sent,A(!1),f({targerData:o.homeworks,originData:o.homeworks});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,u.useEffect)((function(){_()}),[]);var N=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(!0),t={homework_common_ids:v},r.categoryId&&(t=l()(l()({},t),{},{category_id:r.categoryId})),e.next=5,(0,T.ZP)("/api/courses/".concat(r.coursesId,"/homework_commons/create_collaborators.json"),{method:"POST",body:t});case 5:(n=e.sent)&&n.homework_ids.length>0&&(m.ZP.success("提交成功"),o()),A(!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,P.jsx)("div",{className:"animated fadeInUp fast ".concat(Te),children:(0,P.jsxs)("div",{className:Le,children:[(0,P.jsx)("div",{className:Ze,children:(0,P.jsx)(F.Z.Search,{size:"middle",enterButton:"搜索",onSearch:function(e){var t=h.originData.filter((function(t){return t.name.indexOf(e)>-1}));f(l()(l()({},h),{},{targerData:t}))},placeholder:"请输入图文作业名称进行查询"})}),(0,P.jsx)("div",{className:Me,children:h.targerData.map((function(e){return(0,P.jsxs)("div",{className:"".concat(Ee," mb10"),children:[(0,P.jsx)(j.Z,{checked:v.includes(e.id),onChange:function(t){return function(e,t){e.target.checked?w([].concat(S()(v),[t])):w(v.filter((function(e){return e!==t})))}(t,e.id)}}),(0,P.jsxs)("div",{className:De,children:[(0,P.jsxs)("div",{className:"".concat(Pe," mb10"),style:{justifyContent:"space-between"},children:[(0,P.jsx)("div",{className:Oe,children:e.name}),(0,P.jsx)("div",{children:(0,P.jsx)(J.ZP,{type:"primary",ghost:!0,onClick:function(){return(0,C.xg)("/classrooms/".concat(r.coursesId,"/common_homework/").concat(e.id,"/detail"))},children:"查看作业"})})]}),(0,P.jsx)("div",{className:"mb20 font14 c-grey-999 ".concat(Re),children:e.description}),(0,P.jsxs)("div",{className:"font12",children:[(0,P.jsx)("span",{className:"c-grey-333 mr20",children:e.user.name}),(0,P.jsxs)("span",{className:"c-grey-999",children:["创建时间:",e.created_at]})]})]})]},e.id)}))}),(0,P.jsxs)("div",{className:Ie,children:[(0,P.jsx)(J.ZP,{type:"primary",ghost:!0,onClick:o,children:"取消"}),(0,P.jsx)(J.ZP,{type:"primary",disabled:0===v.length||k,onClick:function(){N()},children:"确定"})]})]})})},ze=n(48811),Ge=n(60614),Fe=(0,u.createContext)({selectArrs:[]}),We=(0,p.connect)((function(e){var t=e.classroomList,n=e.loading,o=e.user;return{classroomList:t,globalSetting:e.globalSetting,user:o,loading:n.effects}}))((function(e){var t,n,o=e.classroomList,r=e.loading,s=e.dispatch,c=e.user,_=(0,p.useSearchParams)(),S=d()(_,2),N=S[0],B=(S[1],(0,p.useLocation)()),L=(0,p.useParams)(),Z=(0,u.useState)(l()(l()({},L),{},{id:L.coursesId,limit:20})),R=d()(Z,2),H=R[0],z=R[1],G=(0,u.useState)(!1),F=d()(G,2),U=F[0],J=F[1],V=(0,u.useState)({ta_mode:1,final_mode:!1,st_proportion:0,ta_proportion:30,te_proportion:70,is_repeat_minus:!1,repeat_setting_score:"",repeat_limit:""}),K=d()(V,2),q=K[0],Y=K[1],Q=(0,u.useState)([]),X=d()(Q,2),$=X[0],ee=X[1],te=(0,u.useState)(!1),ne=d()(te,2),oe=ne[0],ie=ne[1],re=(0,u.useState)(!1),se=d()(re,2),le=se[0],de=se[1],fe=(0,u.useState)([]),ge=d()(fe,2),xe=ge[0],ve=ge[1],we=(0,u.useState)(!1),ye=d()(we,2),je=ye[0],ke=ye[1],Ce=(0,u.useState)("默认排序"),Ae=d()(Ce,2),_e=Ae[0],Te=Ae[1],Le=o.detailCommonHomeworksList,Pe=o.detailLeftMenus,Ze=o.detailTopBanner,Me=o.taskList;H.type=1,H.categoryId?H.category=H.categoryId:delete H.category,(0,u.useEffect)((function(){var e=N.get("tabs");e&&void 0!==e&&((0,A.GJ)()?H.status=e:H.order=e)}),[B.search]),(0,u.useEffect)((function(){"0"===N.get("tabs")&&(H.status="0",H.page=1)}),[N.get("tabs")]),(0,u.useEffect)((function(){var e,t;if(null!=c&&null!==(e=c.userInfo)&&void 0!==e&&e.login){var n,o=C.cX.getItem("".concat(null==c||null===(n=c.userInfo)||void 0===n?void 0:n.login).concat((0,A.GJ)()?"Teacher":"Student"),"CommonHomework");o&&(H.sort_by=null==o?void 0:o.type,H.sort_direction=null==o?void 0:o.direction,Te(null==o?void 0:o.name));var i=N.get("tabs"),r=void 0===L.categoryId?{}:{categoryId:L.categoryId,category:L.categoryId};i&&void 0!==i&&((0,A.GJ)()?H.status=i:H.order=i),Ee(r)}else if(null!=c&&null!==(t=c.userInfo)&&void 0!==t&&t.username){var a=N.get("tabs"),s=void 0===L.categoryId?{}:{categoryId:L.categoryId,category:L.categoryId};a&&void 0!==a&&((0,A.GJ)()?H.status=a:H.order=a),Ee(s)}}),[null==c||null===(t=c.userInfo)||void 0===t?void 0:t.login,null==B?void 0:B.pathname]),(0,u.useEffect)((function(){z(l()(l()({},H),L))}),[null==L?void 0:L.categoryId]),(0,u.useEffect)((function(){"清除选择数据"===o.actionTabs.key&&(ee([]),ve([])),"目录重命名成功"===o.actionTabs.key&&Ee()}),[o.actionTabs.key]),(0,u.useEffect)((function(){ee([])}),[Le]),(0,u.useEffect)((function(){de(!1)}),[H.categoryId]),(0,u.useEffect)((function(){s({type:"classroomList/getAssistantPermissions",payload:{course_id:H.id}})}),[]),(0,u.useEffect)((function(){Le&&Le.homeworks&&($.length===Le.homeworks.length&&$.length>0?ie(!0):$.length!==Le.homeworks.length&&ie(!1))}),[$]);var Ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ee([]),ve([]),(0,A.GJ)()?s({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()(l()({},H),e),{},{type:1})}):s({type:"classroomList/getClassroomCommonList",payload:l()(l()({},H),e)})},De=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.ZP)("/api/courses/".concat(H.coursesId,"/homework_commons/get_default_score_setting.json"),{method:"get",params:{homework_type:1}});case 2:null!=(t=e.sent)&&t.data&&(n=t.data.score_settings,Object.keys(n).map((function(e){e.indexOf("proportion")>-1&&(n[e]=(100*n[e]).toFixed(0))})),console.log(n),Y(l()({},n)));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Oe=function(){s({type:"shixunHomeworks/setActionTabs",payload:{key:"题库选用",params:H}})},Re=function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s({type:"classroomList/updateTaskPosition",payload:{category_id:H.categoryId,courseId:H.id,task_ids:t,container_type:"common_homework"}});case 2:Ee();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ie=(0,u.useMemo)((function(){var e=[];return Me.length>0&&(e=Me.map((function(e){return{user_name:e.user_name,task_name:e.task_name,task_id:e.task_id,category:e.category,status:e.status}}))),e}),[Me]),We=(0,P.jsxs)("div",{className:"mask-tips",children:["计算说明:",(0,P.jsx)("br",{}),"教师评分 * 其百分比 + 助教评分 * 其百分比 + 学生匿评平均分 * 其百分比 - (",(0,P.jsx)("br",{}),"迟交扣分 + 缺评扣分 * 缺评数 + 违规匿评扣分 * 违规匿评数 )",(0,P.jsx)("br",{}),(0,P.jsx)("br",{}),"注意",(0,P.jsx)("br",{}),"非零百分比的评分选项,若评分记录为空,则其百分比将自动平摊到其它非零",(0,P.jsx)("br",{}),"评分选项上。",(0,P.jsx)("br",{}),"例:教师评分40% + 助教评分35% + 学生匿评25%,学生A没有教师评分记",(0,P.jsx)("br",{}),"录,则其最终成绩按照助教评分55% + 学生匿评45%进行计算"]}),Ue=(0,P.jsxs)("div",{className:"mask-tips",children:["计算说明:",(0,P.jsx)("br",{}),"优先顺序排前的非零评分 * 100% -",(0,P.jsx)("br",{}),"( 迟交扣分 + 缺评扣分 * 缺评数 + 违规匿评扣分 * 违规匿评数 )",(0,P.jsx)("br",{}),"例:有教师评分则教师评分100%,否则教辅评分100%,依次类推"]});return(0,P.jsx)(Fe.Provider,{value:{params:H,batchStatus:le,selectArrs:$,setSelectArrs:ee,allSelect:oe,dataSource:Le.homeworks||[],detailLeftMenus:Pe,main_category_id:Le.main_category_id||"",selectArrsAll:xe,setAllSelect:ie,useBatchStatus:de,dispatch:s,getData:Ee,setSelectArrsAll:ve},children:(0,P.jsxs)("section",{children:[(0,P.jsxs)("aside",{className:Ne,children:[(0,P.jsx)(me.Z,{isLoading:r[(0,A.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"],tabDataSource:(0,A.GJ)()?[{name:"全部",id:0,total:Le.all_count||0},{name:"未发布",id:1,total:Le.unpublished_count||0},{name:"未开始",id:4,total:Le.not_start_count||0},{name:"进行中",id:2,total:Le.in_progress_count||0},{name:"已截止",id:3,total:Le.overed_count||0}]:[{name:"全部",id:0},{name:"提交中",id:1},{name:"补交中",id:2},{name:"匿评中",id:3},{name:"申诉中",id:4},{name:"已截止",id:5}],isAdmin:(0,A.GJ)(),dispatch:s,type:null==Le?void 0:Le.main_category_name,exportType:"normal",TooltipTitle:H.categoryId?"目录重命名":"新建子目录",categoryId:H.categoryId,dropdownMenu:[{name:"新建图文作业",id:"1"},{name:"选用资源",id:"2"},{name:"导入外部成绩",id:"3"}],showControlButton:(0,A.GJ)(),isShowRightControl:"未分配目录"!==(0,C.Oo)(null==Pe?void 0:Pe.course_modules,H.categoryId),onTabMenuClick:function(e){void 0!==e.id&&((0,A.GJ)()?H.status=e.id:H.order=e.id),de(!1),H.page=1,p.history.replace("".concat(B.pathname,"?tabs=").concat(e.id)),Ee(H)},defaultSelectedKeys:[N.get("tabs")?N.get("tabs"):"0"],onsetClick:function(){De(),J(!0)},onTooltipTitleClick:function(){s({type:"classroomList/setActionTabs",payload:{key:H.categoryId?"目录重命名":"添加目录",params:H,selectArrs:{category_name:null==Le?void 0:Le.category_name,category_id:(null==Le?void 0:Le.category_id)||(null==Le?void 0:Le.main_category_id)},cb:function(){Ee()}}})},onDropdownMenuClick:function(e){var t;!(0,A.Rm)()||null!==(t=o.AssistantObject.normal)&&void 0!==t&&t.can_create?"1"===e?p.history.push("/classrooms/".concat(H.coursesId,"/common_homework/").concat(H.categoryId,"/add")):"2"===e?Oe():"3"===e&&s({type:"classroomList/setActionTabs",payload:{key:"导入外部成绩",type:"normal"}}):m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),(0,P.jsx)(he.Z,{dataSource:Le.homeworks||[],isAdmin:(0,A.GJ)(),batchStatus:!0,SortMenuName:_e,setSortMenuName:Te,onSearch:function(e){H.search=e,H.page=1,Ee()},onSort:function(e){var t;H.sort_by=e.type,H.sort_direction=e.direction,H.page=1,C.cX.setItem("".concat(null==c||null===(t=c.userInfo)||void 0===t?void 0:t.login).concat((0,A.GJ)()?"Teacher":"Student"),e,"CommonHomework"),Ee(H)},onBatch:function(e){return de(e)}})]}),0===(null==Le?void 0:Le.all_count)&&(0,A.GJ)()?!r[(0,A.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,P.jsx)(ue,{params:H,dispatch:s,onSelect:Oe}):(null==Le?void 0:Le.homeworks)&&0===Le.homeworks.length&&!r[(0,A.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,P.jsx)(ae.Z,{}),(0,P.jsx)("aside",{className:"minH500 skt-loading relative pb40 mb30",children:!r[(0,A.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("aside",{className:"animated fadeIn",children:[null==Le||null===(n=Le.homeworks)||void 0===n?void 0:n.map((function(e,t){return(0,P.jsx)(Se,{dataSource:e,params:H,manageAllGroup:null==Le?void 0:Le.manage_all_group},t)})),!r[(0,A.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,P.jsx)("aside",{className:"tc mb50 mt30",children:(null==Le?void 0:Le.query_total_count)>10&&(0,P.jsx)(h.Z,{showSizeChanger:!0,onChange:function(e,t){H.page=e,H.limit=t,Ee()},defaultCurrent:1,current:H.page||1,pageSize:H.limit||20,total:Le.query_total_count})})]}),$.length>0&&(0,A.GJ)()&&(0,P.jsx)(f.Z,{offsetBottom:0,children:(0,P.jsx)(be,{buttonDataSource:[{key:"publish",name:"批量发布",icon:(0,P.jsx)("i",{className:"iconfont icon-fabu5"})},{key:"deadline",name:"批量截止",icon:(0,P.jsx)("i",{className:"iconfont icon-piliangjiezhi2"})},{key:"delete",name:"批量删除",icon:(0,P.jsx)("i",{className:"iconfont icon-piliangshanchu2"})},{key:"public",name:"设为公开",icon:(0,P.jsx)("i",{className:"iconfont icon-sheweigongkai2"})}].filter((function(e){return!(!(0,A.GJ)()&&!(0,A.Rm)())||"批量删除"!==e.name})).filter((function(e){return!!Ze.is_public||"设为公开"!==e.name})),onClick:function(e){var t,n;if(0===$.length)return m.ZP.error("请选择你要操作的任务"),!1;var i=e.name,r={key:i,selectArrs:$,selectArrsAll:xe,type:["publish","deadline"].includes(e.key)?1:"",params:H};switch(e.key){case"publish":if((0,A.Rm)()&&(null==o||null===(t=o.AssistantObject)||void 0===t||null===(t=t.normal)||void 0===t||!t.can_publish))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");i="立即发布";break;case"deadline":if((0,A.Rm)()&&(null==o||null===(n=o.AssistantObject)||void 0===n||null===(n=n.normal)||void 0===n||!n.can_stop))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");i="立即截止";break;case"delete":i="删除";break;case"collection":i="收藏"}s({type:"classroomList/setActionTabs",payload:l()(l()({},r),{},{key:i})})}})})]})}),(0,P.jsx)(M,{onCallback:function(){return de(!1)}}),(0,P.jsx)(ze.Z,{onOk:function(){Ee()}}),(0,P.jsx)(Ge.Z,{onOk:function(){}}),(0,P.jsx)(E.Z,{onCallback:function(){return de(!1)},courseEndTime:null==Le?void 0:Le.course_end_time}),(0,P.jsx)(D.Z,{courseEndTime:null==Le?void 0:Le.course_end_time,visible:"立即截止"===o.actionTabs.key,homeworkIds:o.actionTabs.selectArrs,courseId:L.coursesId,isBatch:2!==o.actionTabs.type,successCallback:function(){de(!1),Ee()}}),(0,P.jsx)(O,{}),(0,P.jsx)(I,{onCallback:function(){return de(!1)}}),(0,P.jsx)(W,{onCallback:function(){return de(!1)}}),(0,P.jsx)(ce,{refreshList:Ee}),(0,P.jsx)(pe.Z,{}),(0,P.jsx)(Be.Z,{visible:"调整排序"===o.actionTabs.key,callback:Re,data:Ie,onCancel:function(){s({type:"classroomList/setActionTabs",payload:{key:""}})}}),je&&(0,P.jsx)(He,{courseId:H.coursesId,type:"1",onCancel:function(){return ke(!1)}}),(0,P.jsx)(g.Z,{open:U,title:"默认评分设置",centered:!0,onCancel:function(){J(!1)},onOk:a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=JSON.parse(JSON.stringify(q)),Object.keys(t).map((function(e){e.indexOf("proportion")>-1&&(t[e]=t[e]/100)})),e.next=4,(0,T.ZP)("/api/courses/".concat(H.coursesId,"/homework_commons/set_default_score_setting.json"),{method:"post",body:{homework_type:1,score_settings:t}});case 4:0===e.sent.status&&(m.ZP.success("设置成功"),J(!1));case 6:case"end":return e.stop()}}),e)}))),width:800,children:(0,P.jsxs)("div",{children:[(0,P.jsx)(x.Z,{children:(0,P.jsx)(v.Z,{span:24,children:(0,P.jsx)(x.Z,{align:"middle",children:(0,P.jsx)(v.Z,{span:24,children:(0,P.jsx)("div",{className:"mt15",children:"该默认规则将被应用于你后续新建的图文作业,且不会影响你已创建的作业以及其他老师新建作业的评分规则。"})})})})}),(0,P.jsxs)(x.Z,{className:"mt25",children:[(0,P.jsx)(v.Z,{children:(0,P.jsx)("strong",{children:"助教评分"})}),(0,P.jsx)(v.Z,{span:24,className:"pl30 mt10"})]}),(0,P.jsx)(x.Z,{children:(0,P.jsxs)(w.ZP.Group,{value:null==q?void 0:q.ta_mode,onChange:function(e){q.ta_mode=e.target.value,Y(l()({},q))},children:[(0,P.jsxs)(w.ZP,{value:1,style:{marginTop:15},children:[(0,P.jsx)("strong",{children:"普通模式"}),(0,P.jsx)("span",{className:"c-grey-c",children:"(选中,则取各助教最终评分的平均分)"})]}),(0,P.jsx)("br",{}),(0,P.jsxs)(w.ZP,{value:0,style:{marginTop:15},children:[(0,P.jsx)("strong",{children:"复审模式"}),(0,P.jsx)("span",{className:"c-grey-c",children:"(选中,则只取最新的助教评分)"})]})]})}),(0,P.jsxs)(x.Z,{className:"mt25",children:[(0,P.jsx)(v.Z,{children:(0,P.jsx)("strong",{children:"最终成绩组成"})}),(0,P.jsx)(v.Z,{span:24,className:"pl30 mt10"})]}),(0,P.jsxs)(x.Z,{children:[(0,P.jsxs)(w.ZP.Group,{value:q.final_mode,onChange:function(e){q.final_mode=e.target.value,Y(l()({},q))},children:[(0,P.jsxs)(w.ZP,{value:!1,style:{marginTop:15},children:[(0,P.jsx)("strong",{children:"多项评分配比"}),(0,P.jsxs)("span",{className:"c-grey-c",children:["(选中,则按照比例计算最终成绩)",(0,P.jsx)(y.Z,{placement:"bottomLeft",content:We,trigger:"click",children:(0,P.jsx)(k.Z,{className:"ml20 current"})})]})]}),(0,P.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,P.jsx)(v.Z,{children:"教师评分:"}),(0,P.jsxs)(v.Z,{className:"ml5",children:[(0,P.jsx)(b.Z,{min:0,max:100,value:q.te_proportion,onChange:function(e){q.te_proportion=e,Y(Object.assign({},q))}}),(0,P.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,P.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,P.jsx)(v.Z,{children:"助教评分:"}),(0,P.jsxs)(v.Z,{className:"ml5",children:[(0,P.jsx)(b.Z,{min:0,max:100,value:q.ta_proportion,onChange:function(e){q.ta_proportion=e,Y(Object.assign({},q))}}),(0,P.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,P.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,P.jsx)(v.Z,{children:"学生匿评:"}),(0,P.jsxs)(v.Z,{className:"ml5",children:[(0,P.jsx)(b.Z,{min:0,max:100,value:q.st_proportion,onChange:function(e){q.st_proportion=e,Y(Object.assign({},q))}}),(0,P.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,P.jsx)("br",{}),(0,P.jsxs)(w.ZP,{value:!0,style:{marginTop:15},children:[(0,P.jsx)("strong",{children:"单项评分优先"}),(0,P.jsxs)("span",{className:"c-grey-c",children:["(选中,则按照优先顺序计算最终成绩)",(0,P.jsx)(y.Z,{placement:"bottomLeft",content:Ue,trigger:"click",children:(0,P.jsx)(k.Z,{className:"ml20 current"})})]})]})]}),(0,P.jsx)("br",{})]}),(0,P.jsx)("div",{style:{paddingLeft:77},children:"(教师评分 → 教辅评分 → 学生匿评评分)"}),(0,P.jsxs)(x.Z,{className:"mt25",children:[(0,P.jsx)(v.Z,{children:(0,P.jsxs)("strong",{children:[(0,P.jsx)(j.Z,{checked:q.is_repeat_minus,style:{fontSize:"16px"},onChange:function(e){q.is_repeat_minus=e.target.checked,Y(Object.assign({},q))},children:"文档查重扣分"})," ",(0,P.jsx)("span",{style:{fontSize:"14px"},className:"c-grey-c",children:"(修改后需要进行“文档查重”,扣分规则才生效)"})]})}),(0,P.jsx)(v.Z,{span:24,className:"pl30 mt10"})]}),(null==q?void 0:q.is_repeat_minus)&&(0,P.jsxs)("div",{style:{paddingLeft:35},children:[(0,P.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,P.jsx)(v.Z,{children:"查重扣分:"}),(0,P.jsx)(v.Z,{className:"ml5",children:(0,P.jsx)(b.Z,{min:0,max:100,value:q.repeat_setting_score,onChange:function(e){q.repeat_setting_score=e,Y(Object.assign({},q))}})})]}),(0,P.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,P.jsx)(v.Z,{children:"扣分阀值:"}),(0,P.jsxs)(v.Z,{className:"ml5",children:[(0,P.jsx)(b.Z,{min:0,max:100,value:q.repeat_limit,onChange:function(e){q.repeat_limit=e,Y(Object.assign({},q))}}),(0,P.jsx)("span",{className:"ml10",children:"%"})]})]})]})]})})]})})}))},60614:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),d=n.n(c),u=n(79800),p=n.n(u),m=n(59301),h=n(46651),f=n(78241),g=n(43418),x=n(8591),v=n(14491),w=n(76252),y=n(68339),b=n(32609),j=n(51836),k=n(99232),C=n.n(k),A=n(76279),_=n(37712),S=h.Z.Dragger;t.Z=(0,w.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,o=e.dispatch,r=e.onOk,s=((0,w.useParams)(),f.Z.useForm()),c=p()(s,1)[0],u=(0,m.useState)(),h=p()(u,2),k=h[0],N=h[1],B=(0,m.useState)(!1),T=p()(B,2),L=T[0],P=T[1],Z={height:100,onRemove:function(){N("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:(t=d()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,m.useEffect)((function(){c.setFieldsValue(a()(a()({},"publish_time",C()(C()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",C()(C()(new Date((0,A.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),[]),(0,_.jsx)(g.Z,{centered:!0,title:"补充成绩",open:"补充成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:L},onOk:d()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){c.resetFields(),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,_.jsxs)(f.Z,{form:c,onFinish:function(){var e=d()(l()().mark((function e(t){var i,a,s,d,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=k&&k.size){e.next=3;break}return x.ZP.info("请上传文件"),e.abrupt("return");case 3:return P(!0),(i=new FormData).append("type",n.actionTabs.type),i.append("file",k),a=window.location.href.indexOf("exercise")>-1?"/api/exercises/".concat(n.actionTabs.id,"/supplement_score.json"):"/api/homework_commons/".concat(n.actionTabs.id,"/supplement_score.json"),e.next=10,(0,j.ZP)(a,{method:"post",body:i},!0);case 10:s=e.sent,P(!1),0===(null==s?void 0:s.status)&&(r(),c.resetFields(),o({type:"classroomList/setActionTabs",payload:{}}),(null==s||null===(d=s.data)||void 0===d||null===(d=d.fail)||void 0===d?void 0:d.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,_.jsx)(v.Z,{pagination:!1,dataSource:null==s||null===(u=s.data)||void 0===u?void 0:u.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,A.FH)("",y.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,_.jsx)(f.Z.Item,{label:"作业名称",labelCol:{span:3},name:"name",children:n.actionTabs.name}),(0,_.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,_.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,_.jsxs)("div",{children:[(0,_.jsx)("a",{download:"模版.xlsx",className:b.Z.downloadbutton,href:y.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,_.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,_.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,_.jsxs)(S,i()(i()({},Z),{},{children:[(0,_.jsx)("a",{className:b.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,_.jsx)("br",{}),(0,_.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},48811:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),d=n.n(c),u=n(79800),p=n.n(u),m=n(59301),h=n(46651),f=n(78241),g=n(43418),x=n(8591),v=n(14491),w=n(98135),y=n(95237),b=n(43604),j=n(26415),k=n(84291),C=n(76252),A=n(97206),_=n(68339),S=n(32609),N=n(51836),B=n(1518),T=n(99232),L=n.n(T),P=n(76279),Z=n(37712),M=h.Z.Dragger;t.Z=(0,C.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,o=e.dispatch,r=e.onOk,s=(0,C.useParams)(),c=f.Z.useForm(),u=p()(c,1)[0],h=(0,m.useState)(),T=p()(h,2),E=T[0],D=T[1],O=(0,m.useState)(!1),R=p()(O,2),I=R[0],H=R[1],z={height:100,onRemove:function(){D("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:(t=d()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return D(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,m.useEffect)((function(){u.setFieldsValue(a()(a()({},"publish_time",L()(L()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",L()(L()(new Date((0,P.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),["导入外部成绩"===n.actionTabs.key]),(0,Z.jsx)(g.Z,{centered:!0,title:"导入外部成绩",open:"导入外部成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:I},onOk:d()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){u.resetFields(),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,Z.jsxs)(f.Z,{form:u,colon:!1,onFinish:function(){var e=d()(l()().mark((function e(t){var i,a,c,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=E&&E.size){e.next=3;break}return x.ZP.info("请上传文件"),e.abrupt("return");case 3:return H(!0),(i=new FormData).append("name",t.name),i.append("type",n.actionTabs.type),i.append("category_id",(null==s?void 0:s.categoryId)||null),"exercise"===n.actionTabs.type?(i.append("time",t.time||""),i.append("total_score",t.total_score)):i.append("description",t.description||""),i.append("publish_time",L()(t.publish_time).format("YYYY-MM-DD HH:mm")),i.append("end_time",L()(t.end_time).format("YYYY-MM-DD HH:mm")),i.append("file",E),e.next=14,(0,N.ZP)("/api/courses/".concat(s.coursesId,"/export_external_score_homework.json"),{method:"post",body:i},!0);case 14:a=e.sent,H(!1),0===(null==a?void 0:a.status)&&(u.resetFields(),o({type:"classroomList/setActionTabs",payload:{}}),r(),(null==a||null===(c=a.data)||void 0===c||null===(c=c.fail)||void 0===c?void 0:c.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,Z.jsx)(v.Z,{pagination:!1,dataSource:null==a||null===(d=a.data)||void 0===d?void 0:d.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,P.FH)("",_.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,Z.jsx)(f.Z.Item,{label:"exercise"!==n.actionTabs.type?"作业":"试卷名称",labelCol:{span:3},name:"name",rules:[{required:!0,message:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称")}],children:(0,Z.jsx)(w.Z,{showCount:!0,placeholder:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称"),maxLength:60})}),"exercise"!==n.actionTabs.type&&(0,Z.jsx)(f.Z.Item,{label:"作业描述",labelCol:{span:3},name:"description",children:(0,Z.jsx)(A.Z,{watch:!0})}),"exercise"===n.actionTabs.type&&(0,Z.jsxs)(y.Z,{style:{marginLeft:6},children:[(0,Z.jsx)(b.Z,{span:12,children:(0,Z.jsx)(f.Z.Item,{label:"试卷总分",name:"total_score",rules:[{required:!0,message:"请填写试卷总分"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"试卷总分必须为正数"}],children:(0,Z.jsx)(w.Z,{placeholder:"请输入试卷总分",style:{width:256},addonAfter:"分"})})}),(0,Z.jsx)(b.Z,{span:12,children:(0,Z.jsx)(f.Z.Item,{label:"答题时长",labelCol:{span:6},name:"time",children:(0,Z.jsx)(j.Z,{style:{width:"100%"},addonAfter:"分钟",placeholder:"请输入答题时长"})})})]}),(0,Z.jsxs)(y.Z,{style:{marginLeft:6,marginBottom:12},children:[(0,Z.jsx)(b.Z,{span:12,children:(0,Z.jsx)(f.Z.Item,{label:"开始时间",name:"publish_time",rules:[{required:!0,message:"请选择开始时间"}],children:(0,Z.jsx)(k.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:256},disabledDate:function(e){return(0,B.Q8)(e)},disabledTime:function(e){return(0,B.d0)(e)},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})}),(0,Z.jsx)(b.Z,{span:12,children:(0,Z.jsx)(f.Z.Item,{label:"结束时间",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"请选择结束时间"}],children:(0,Z.jsx)(k.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:function(e){return(0,B.Q8)(e,"",u.getFieldValue("publish_time"))},disabledTime:function(e){return(0,B.d0)(e,u.getFieldValue("publish_time"))},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})})]}),(0,Z.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,Z.jsxs)("div",{children:[(0,Z.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,Z.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,Z.jsxs)("div",{children:[(0,Z.jsx)("a",{download:"模版.xlsx",className:S.Z.downloadbutton,href:_.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,Z.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,Z.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,Z.jsxs)(M,i()(i()({},z),{},{children:[(0,Z.jsx)("a",{className:S.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,Z.jsx)("br",{}),(0,Z.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},61132:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),d=n.n(c),u=n(59301),p=n(43418),m=n(56511),h=n(95237),f=n(6848),g="wrap___KDoq2",x="tip___WEJuX",v="listWrap___IJDX4",w="li___r5con",y="nameWrap___PUyEz",b="name___xuUMY",j="tag___l5CW2",k=n(89831),C=n(76252),A=n(37712),_=function(e){var t,n,o=e.type,r=void 0===o?1:o,s=e.data,c=e.visible,_=e.callback,S=e.onCancel,N=(0,u.useState)([]),B=d()(N,2),T=B[0],L=B[1],P=(0,C.useSelector)((function(e){return e.loading}));(0,u.useEffect)((function(){L(s)}),[JSON.stringify(s)]);var Z=function(e){var t={};if(1===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"未开始":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"提交中":{background:"rgba(0,177,135,0.2)",color:"#00B187"},"已截止":{background:"rgba(229,51,51,0.2)",color:"#E53333"}}[e]}if(2===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"预发布":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"已发布":{background:"rgba(0,177,135,0.2)",color:"#00B187"}}[e]}return(0,A.jsx)("div",{className:j,style:l()({},t),children:e})},M=function(){var e=a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:_(T.map((function(e){return e.task_id})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,A.jsx)(p.Z,{centered:!0,destroyOnClose:!0,open:c,onCancel:S,onOk:M,confirmLoading:null==P||null===(t=P.effects)||void 0===t?void 0:t["classroomList/updateTaskPosition"],okText:"保存",title:"调整排序",width:850,children:(0,A.jsxs)("div",{className:g,children:[(0,A.jsxs)("div",{className:x,children:[(0,A.jsx)("i",{className:"iconfont icon-tishi9 font14 mr10"}),(0,A.jsx)("span",{children:"提示:请在列表中长按鼠标左键,进行拖放排序。完成排序后请点击“保存”"})]}),(0,A.jsx)(m.Z,{loading:null==P||null===(n=P.effects)||void 0===n?void 0:n["classroomList/getAllTaskList"],active:!0,className:"mt20",paragraph:{rows:5},children:(0,A.jsx)(k.Z5,{onDragEnd:function(e){return function(e,t){if(e.destination){var n=function(e,t,n){var o=Array.from(e),i=o.splice(t,1),r=d()(i,1)[0];return o.splice(n,0,r),o}(t,e.source.index,e.destination.index);L(n)}}(e,T)},children:(0,A.jsx)(k.bK,{droppableId:"droppable",children:function(e,t){return(0,A.jsxs)("div",l()(l()({ref:e.innerRef},e.droppableProps),{},{className:v,children:[T.map((function(e,t){return(0,A.jsx)(k._l,{draggableId:e.task_id.toString(),index:t,children:function(t,n){return(0,A.jsxs)("div",l()(l()(l()({ref:t.innerRef},t.draggableProps),t.dragHandleProps),{},{className:w,children:[(0,A.jsxs)(h.Z,{align:"middle",children:[(0,A.jsx)("div",{className:y,children:(0,A.jsx)(f.Z,{title:null==e?void 0:e.task_name,children:(0,A.jsx)("div",{className:b,children:null==e?void 0:e.task_name})})}),Z(null==e?void 0:e.status)]}),(0,A.jsx)(h.Z,{align:"middle",className:"font12 mt10",children:(0,A.jsxs)("span",{className:"mr30 c-grey-666",children:["管理员",(0,A.jsx)("span",{className:"ml5 c-black",children:(null==e?void 0:e.user_name)||"--"})]})})]}))}},e.task_id)})),e.placeholder]}))}})})})]})})}},57672:function(e,t,n){"use strict";n.d(t,{$J:function(){return l},JZ:function(){return d},bN:function(){return m},jP:function(){return p},rO:function(){return c}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(51836);function l(e){return(0,s.U2)("libraries/".concat(e,".json"))}function c(){return(0,s.U2)("library_tags.json")}function d(e){return u.apply(this,arguments)}function u(){return(u=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,s.v_)("libraries.json",e)}function m(e,t){return(0,s.gz)("libraries/".concat(e,".json"),t)}},32609:function(e,t){"use strict";t.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},77578:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});const o=e=>e?"function"==typeof e?e():e:null},27666:function(e,t,n){"use strict";var o=n(43527),i=n(79640);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},r=function(){if(null==t){for(var e=arguments.length,o=new Array(e),r=0;r{i.Z.cancel(t),t=null},r}},81228:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var o=n(40419),i=n(38467),r=n(46840),a=n(60317),s=n(59301),l=n(92310),c=n.n(l),d=n(28647),u=n(54798),p=n(27666),m=n(36355),h=n(83116),f=n(37613);const g=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var x=(0,h.Z)("Affix",(e=>{const t=(0,f.TS)(e,{zIndexPopup:e.zIndexBase+10});return[g(t)]}));function v(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function w(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function y(e,t,n){if(void 0!==n&&t.bottom{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:o}=e.state;o!==n&&(b.forEach((t=>{null==o||o.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),o=null==n?void 0:n();b.forEach((n=>{null==o||o.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:o}=e.props,i=e.getTargetFunc();if(t!==k.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!i)return;const r=e.getOffsetTop(),a=e.getOffsetBottom(),s=i();if(s){const t={status:k.None},i=v(e.placeholderNodeRef.current);if(0===i.top&&0===i.left&&0===i.width&&0===i.height)return;const l=v(s),c=w(i,l,r),d=y(i,l,a);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}):void 0!==d&&(t.affixStyle={position:"fixed",bottom:d,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}),t.lastAffix=!!t.affixStyle,o&&n!==t.lastAffix&&o(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:k.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,p.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,p.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const o=e.getOffsetTop(),i=e.getOffsetBottom(),r=t();if(r&&e.placeholderNodeRef.current){const t=v(r),a=v(e.placeholderNodeRef.current),s=w(a,t,o),l=y(a,t,i);if(void 0!==s&&n.top===s||void 0!==l&&n.bottom===l)return}}e.prepareMeasure()})),e}return(0,i.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:j}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:o,children:i}=this.props,r=c()(e&&o,{[n]:!!e});let a=(0,u.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return s.createElement(d.Z,{onResize:this.updatePosition},s.createElement("div",Object.assign({},a,{ref:this.placeholderNodeRef}),e&&s.createElement("div",{style:t,"aria-hidden":"true"}),s.createElement("div",{className:r,ref:this.fixedNodeRef,style:e},s.createElement(d.Z,{onResize:this.updatePosition},i))))}}]),n}(s.Component);C.contextType=m.E_;var A=(0,s.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:o}=e,{getPrefixCls:i}=(0,s.useContext)(m.E_),r=i("affix",n),[a,l]=x(r),d=Object.assign(Object.assign({},e),{affixPrefixCls:r,rootClassName:c()(o,l)});return a(s.createElement(C,Object.assign({},d,{ref:t})))}))},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var o=n(92310),i=n.n(o),r=n(59301),a=n(36355),s=n(17313),l=n(83116),c=n(37613);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:i,textPaddingInline:r,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},(0,s.Wf)(e)),{borderBlockStart:`${i}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:r},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var u=(0,l.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n,divider:o}=r.useContext(a.E_),{prefixCls:s,type:l="horizontal",orientation:c="center",orientationMargin:d,className:m,rootClassName:h,children:f,dashed:g,plain:x,style:v}=e,w=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),y=t("divider",s),[b,j]=u(y),k=c.length>0?`-${c}`:c,C=!!f,A="left"===c&&null!=d,_="right"===c&&null!=d,S=i()(y,null==o?void 0:o.className,j,`${y}-${l}`,{[`${y}-with-text`]:C,[`${y}-with-text${k}`]:C,[`${y}-dashed`]:!!g,[`${y}-plain`]:!!x,[`${y}-rtl`]:"rtl"===n,[`${y}-no-default-orientation-margin-left`]:A,[`${y}-no-default-orientation-margin-right`]:_},m,h),N=r.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),B=Object.assign(Object.assign({},A&&{marginLeft:N}),_&&{marginRight:N});return b(r.createElement("div",Object.assign({className:S,style:Object.assign(Object.assign({},null==o?void 0:o.style),v)},w,{role:"separator"}),f&&"vertical"!==l&&r.createElement("span",{className:`${y}-inner-text`,style:B},f)))}},39722:function(e,t,n){"use strict";n.d(t,{t5:function(){return u}});var o=n(92310),i=n.n(o),r=n(55477),a=n(59301),s=n(36355),l=n(77578),c=n(17356),d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i{const{hashId:t,prefixCls:n,className:o,style:s,placement:c="top",title:d,content:u,children:p}=e;return a.createElement("div",{className:i()(t,n,`${n}-pure`,`${n}-placement-${c}`,o),style:s},a.createElement("div",{className:`${n}-arrow`}),a.createElement(r.G,Object.assign({},e,{className:t,prefixCls:n}),p||((e,t,n)=>{if(t||n)return a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${e}-title`},(0,l.Z)(t)),a.createElement("div",{className:`${e}-inner-content`},(0,l.Z)(n)))})(n,d,u)))};t.ZP=e=>{const{prefixCls:t}=e,n=d(e,["prefixCls"]),{getPrefixCls:o}=a.useContext(s.E_),i=o("popover",t),[r,l]=(0,c.Z)(i);return r(a.createElement(u,Object.assign({},n,{prefixCls:i,hashId:l})))}},60324:function(e,t,n){"use strict";var o=n(92310),i=n.n(o),r=n(59301),a=n(77578),s=n(62892),l=n(36355),c=n(6848),d=n(39722),u=n(17356),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i{let{title:t,content:n,prefixCls:o}=e;return r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${o}-title`},(0,a.Z)(t)),r.createElement("div",{className:`${o}-inner-content`},(0,a.Z)(n)))},h=r.forwardRef(((e,t)=>{const{prefixCls:n,title:o,content:a,overlayClassName:d,placement:h="top",trigger:f="hover",mouseEnterDelay:g=.1,mouseLeaveDelay:x=.1,overlayStyle:v={}}=e,w=p(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:y}=r.useContext(l.E_),b=y("popover",n),[j,k]=(0,u.Z)(b),C=y(),A=i()(d,k);return j(r.createElement(c.Z,Object.assign({placement:h,trigger:f,mouseEnterDelay:g,mouseLeaveDelay:x,overlayStyle:v},w,{prefixCls:b,overlayClassName:A,ref:t,overlay:o||a?r.createElement(m,{prefixCls:b,title:o,content:a}):null,transitionName:(0,s.m)(C,"zoom-big",w.transitionName),"data-popover-inject":!0})))}));h._InternalPanelDoNotUseOrYouWillBeFired=d.ZP,t.Z=h},17356:function(e,t,n){"use strict";var o=n(17313),i=n(29878),r=n(19447),a=n(33166),s=n(83116),l=n(37613);const c=e=>{const{componentCls:t,popoverColor:n,minWidth:i,fontWeightStrong:a,popoverPadding:s,boxShadowSecondary:l,colorTextHeading:c,borderRadiusLG:d,zIndexPopup:u,marginXS:p,colorBgElevated:m,popoverBg:h}=e;return[{[t]:Object.assign(Object.assign({},(0,o.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":m,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:d,boxShadow:l,padding:s},[`${t}-title`]:{minWidth:i,marginBottom:p,color:c,fontWeight:a},[`${t}-inner-content`]:{color:n}})},(0,r.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},d=e=>{const{componentCls:t}=e;return{[t]:a.i.map((n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}},u=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:i,paddingSM:r,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,d=a-Math.round(s*l);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d/2}px ${c}px ${d/2-n}px`,borderBottom:`${n}px ${o} ${i}`},[`${t}-inner-content`]:{padding:`${r}px ${c}px`}}}};t.Z=(0,s.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,r=(0,l.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[c(r),d(r),o&&u(r),(0,i._y)(r,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},51581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var d=[n];return i&&(s?a?d.unshift(s):d.push(s):this.defaultLoader&&(a?d.unshift(this.defaultLoader):d.push(this.defaultLoader))),r.default.createElement(o,c,d)}}]),t}(i.Component);l.propTypes={children:a.default.node.isRequired,element:a.default.node,hasMore:a.default.bool,initialLoad:a.default.bool,isReverse:a.default.bool,loader:a.default.node,loadMore:a.default.func.isRequired,pageStart:a.default.number,ref:a.default.func,getScrollParent:a.default.func,threshold:a.default.number,useCapture:a.default.bool,useWindow:a.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},26724:function(e,t,n){e.exports=n(51581)},93314:function(e){"use strict";e.exports="data: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z8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="}}]); \ No newline at end of file +(self.webpackChunk=self.webpackChunk||[]).push([[49890,13488,63527,4977,30632,32443],{88289:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(4751),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=n(68475),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},93737:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(4751),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=n(68475),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},57703:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(4751),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},a=n(68475),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},84462:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},o=null,i=!1,r=!1,a=null,s=!1,l=null,c=null,d=0;d4?parseFloat(e):5};function j(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,O(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(l=e,D(e,t))},e.getHTML5CodebaseVersion=function(){return f},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var o,i="auto",r=n.id,a=!1,l=0;l=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var S=function(e){return e&&"false"!==e},N=function(t,n,o){b(f)<=4.2&&(o=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==f||ggbHTML5LoadedCodebaseIsWebSimple&&!x)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,s=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(b(f)<=4.4)S(n.showToolBar)&&(n.height-=7),S(n.showAlgebraInput)&&(n.height-=37),n.width<605&&S(n.showToolBar)&&(n.width=605,a=605);else{var d=100;(S(n.showToolBar)||S(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),d=S(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),m(e)},w||v.appendChild(j)):r.appendChild(j),v.appendChild(r),w||t.appendChild(v),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),R("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function C(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},b(f)<5&&(e.className+=" geogebraweb")):k(e,t)}if(i){scriptLoadStarted=!0;for(var A=0;A0?(i.remove(),s.attr("id","fullscreencontent").show(),jQuery(r).append(s),window.dispatchEvent(new Event("resize"))):N(i,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=o,N(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(s=e/4*3),l=s/5.8,a.setAttribute("src",w),a.setAttribute("width",s),a.setAttribute("height",l);var d=(e-s)/2,u=(t-l)/2;a.style.left=d+"px",a.style.top=u+"px",i.appendChild(a)}return i.appendChild(c),i},M=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},E=["web","webSimple","web3d","tablet","tablet3d","phone"],D=function(e,t){if(f=e,t)O(f,!0);else{var r,a,s=!i;if(s){var l=b(f);!isNaN(l)&&l<4.4&&(s=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=f.indexOf("//");for(var d in a=c>0?f:0===c?r+f:"https://www.geogebra.org/apps/5.2.814.0/",E)if(f.slice(-1*E[d].length)===E[d]||f.slice(-1*(E[d].length+1))===E[d]+"/")return void O(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||o.is3D||o.AV||o.SV||o.CV||o.EV2||o.CP||o.PC||o.DA||o.FI||o.PV||S(n.showToolBar)||S(n.showMenuBar)||S(n.showAlgebraInput)||S(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",O(a,!1)}},O=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),m=t,g="web.nocache.js",x=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?E.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",x=!0)),n=e.split("/"),"test"===(f=n[n.length-3]).substr(0,4)?f=f.substr(4,1)+"."+f.substr(5,1):"war"!==f.substr(0,3)&&"beta"!==f.substr(0,4)||(f="5.0");var o=parseFloat(f);NaN!==o&&o<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+o+" is deprecated. Using version latest instead."),D("5.0",t))}},R=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function I(){var e=t;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),D(e,!1),null!==c&&O(c,m),s=!0}return void 0!==n.material_id?C(I):I(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,o,i){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==o&&o,s=null!=e.noScaleMargin&&e.noScaleMargin,l=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,o,i,r){var a=null;if(null!=r&&""!=r)for(var s=e.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+r+" ")>-1){a=s;break}s=s.parentNode}var l=0,c=0,d=0,u=0,p=0,m=0,h=0;if(a)l=a.offsetWidth,c=Math.max(o?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),d=l):(l=window.innerWidth,c=window.innerHeight,d=window.innerWidth),e){var f=e.getBoundingClientRect();f.left>0&&f.left<=l&&(void 0===i||!i)&&("rtl"===document.dir?(p=l-f.width-f.left,m=d<=480?10:30):(m=f.left,p=d<=480?10:30),u=m+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(u=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(u=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+u1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(i=n(e,t,a,o,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=e.getBoundingClientRect(),i=(t-o.width)/2,r=(n-o.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=i+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var s=o(r,n);e()&&a.setAttribute("data-param-scale",s);for(var l=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var o=e.lastIndexOf(tb,Math.min(n,t));return o>=O?e.substring(O,o+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,o=[],i=[];function a(e){var t=i[e](),n=o[e];if(t in n)return t;var a=[];for(var s in n)a[n[s]]=s;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in o[e]},webModule.__getPropMap=function(){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(e=Cb).indexOf(Db);-1!=s&&(t=parseInt(e.substring(s+P),$),e=e.substring(O,s))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},o=e[webModule.__softPermutationId],i=O;i0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],o=0;o0&&(r=10+n*i);var a=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);o>40&&(a=40);var s=this.randomNum(-10,10);e.translate(r,a),e.rotate(s*Math.PI/180),e.fillText(t,0,0),e.rotate(-s*Math.PI/180),e.translate(-r,-a)}},{key:"drawLine",value:function(e){for(var t=0;t<1;t++)e.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),e.beginPath(),e.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.stroke()}},{key:"drawDot",value:function(e){for(var t=0;t<100;t++)e.fillStyle=this.randomColor(0,255),e.beginPath(),e.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),e.fill()}},{key:"randomCode",value:function(){for(var e=this,t="",n=0;n0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+b+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var S=function(e){var t=e.value,n=e.onChange,o=e.action,r=e.data,s=e.className,c=e.maxSize,u=void 0===c?150:c,_=e.title,S=void 0===_?"上传附件":_,N=e.showRemoveModal,B=void 0!==N&&N,T=e.accept,L=void 0===T?"":T,P=e.additionalText,Z=e.isDragger,M=e.number,E=void 0===M?1e3:M,D=e.aloneClear,O=void 0!==D&&D,R=e.realTimeRemove,I=void 0===R||R,H=(0,m.useState)(!1),z=p()(H,2),G=z[0],F=z[1],W=(0,m.useState)(t||[]),U=p()(W,2),J=U[0],V=U[1],K=(0,m.useState)(1),q=p()(K,2),Y=q[0],Q=q[1];(0,m.useEffect)((function(){t&&(1===Y&&V(d()(t)),Q(2),E===(null==t?void 0:t.length)&&F(!0))}),[t]);var X,$=function(){setTimeout((function(){J.pop(),V(d()(J))}),500)},ee={multiple:!0,disabled:G,accept:L,withCredentials:!0,fileList:J,beforeUpload:function(e,t){var n=e.size/1024/1024;return J.concat(t).length>E?(J.pop(),V(d()(J)),f.ZP.error("最多只能上传".concat(E,"个文件")),O?Promise.reject():($(),!1)):n=E?F(!0):F(!1),V(d()(J)),J=J.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(b)&&(e.name="".concat(e.name).concat(b).concat(j(e.size))),l()({},e)})),console.log("info:",e,J),n(J)):f.ZP.error(null===(o=e.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message)},onRemove:(X=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(I){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,w.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!B){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var o;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(o=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,f.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return X.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(s||""),children:[Z&&(0,y.jsxs)(A,l()(l()({},ee),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",u,"MB)"," "]}),P]})),!Z&&(0,y.jsxs)(h.Z,l()(l()({},ee),{},{children:[(0,y.jsxs)(x.ZP,{disabled:G,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),S]}),(0,y.jsxs)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:["(单个文件最大",u,"MB)"," "]})]}))]})}},12500:function(e,t,n){"use strict";n(59301);var o=n(6848),i=n(37712);t.Z=function(e){var t=e.value,n=e.visible,r=void 0===n||n,a=e.children;return(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(o.Z,{placement:"topLeft",title:{"未发布":"作业尚未发布","未开始":"作业已发布,尚未到达开始作业时间","提交中":"作业进行中,所有考生可提交作业","补交中":"作业进行中,所有学生可补交作业","进行中":"作业进行中,部分班级正在作业提交中/补交中","已截止":"到达作业截止时间,作业已结束","已结束":"课堂已结束"}[t],children:(0,i.jsx)("span",{children:a})}):a})}},36267:function(e,t,n){"use strict";n.d(t,{h:function(){return x}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),s=n(59301),l=n(57809),c=n(78241),d=n(3113),u=n(89780),p=n.n(u),m=(n(2185),n(94087),n(37712)),h=l.default.Option,f={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function x(e){var t=e.value,n=e.onChange,o=e.mode,r=e.options,l=void 0===r?{}:r,c=(0,s.useRef)(),d=(0,s.useState)(),u=a()(d,2),h=u[0],f=u[1];return(0,s.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,s.useEffect)((function(){h&&h.setOption("mode",o)}),[h,o]),(0,s.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,s.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,i()({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));f(e)}}),[c.current,h]),(0,m.jsx)("div",{className:"my-codemirror-container",children:(0,m.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,o=(0,s.useState)("python"),r=a()(o,2),u=r[0],p=r[1];return(0,m.jsxs)(c.Z,i()(i()({},f),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,m.jsx)(l.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,m.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,m.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,m.jsx)(x,{mode:u})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(d.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(d.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},97206:function(e,t,n){"use strict";n.d(t,{Z:function(){return Se}});var o=n(91232),i=n.n(o),r=n(79800),a=n.n(r),s=n(85573),l=n.n(s),c=n(59301),d=n(89780),u=n.n(d),p=n(76374),m=(n(2185),n(6313),n(25717),n(99498),n(25419),n(67549),n(3162)),h=n(37712),f=function(e){var t=e.value,n=void 0===t?"":t,o=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})})},g=n(82242),x=n.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function w(e){var t=e.onActionCallback,n=e.title,o=e.icon,i=e.actionName,r=e.className,a=void 0===r?"":r,s=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(i)},children:[(0,h.jsx)("i",{className:"".concat(o)}),s]})}var y=function(e){var t=e.watch,n=e.showNullButton,o=e.showNullProgramButton,i=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,s=e.hidetoolBar,l=e.extraUse,c=[].concat(v,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(w,x()(x()({},e),{},{onActionCallback:i})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,h.jsx)("li",{children:l}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(w,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},b=n(10668),j=n(78241),k=n(98135),C=n(3113),A={labelCol:{span:4},wrapperCol:{span:20}},_=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(j.Z,x()(x()({},A),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(j.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(j.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(C.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},S=n(36267),N=n(8591),B=n(58865),T=j.Z.useForm,L={width:280,marginRight:10},P={labelCol:{span:5},wrapperCol:{span:19}},Z=function(e){var t=e.callback,n=e.onCancel,o=T(),i=a()(o,1)[0],r=(0,c.useRef)();function s(e,t){-1!==e.status?i.setFieldsValue({src:"/api/attachments/".concat(e.id),type:t.type}):N.ZP.error(e.message)}return(0,h.jsxs)(j.Z,x()(x()({form:i},P),{},{className:"upload-image-panel",onFinish:function(e){t(e,r.current)},style:{width:470,overflow:"hidden"},children:[(0,h.jsx)(j.Z.Item,{label:"图片地址",required:!0,children:(0,h.jsxs)("div",{className:"flex-container",children:[(0,h.jsx)(j.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,h.jsx)(k.Z,{style:L})}),(0,h.jsx)(M,{onFileChange:function(e){var t=e.target.files[0];r.current=t,E(t,s)}})]})}),(0,h.jsx)(j.Z.Item,{label:"图片描述",name:"alt",children:(0,h.jsx)(k.Z,{style:{width:264}})}),(0,h.jsxs)(j.Z.Item,{style:{textAlign:"right"},children:[(0,h.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(C.ZP,{type:"default",onClick:n,children:"取消"})]})]}))};function M(e){var t=e.onFileChange;return(0,h.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,h.jsx)("input",{type:"file",onChange:t})]})}function E(e,t){if(!e)throw new String("没有文件");var n=new FormData;n.append("editormd-image-file",e),n.append("file_param_name","editormd-image-file"),n.append("byxhr","true");var o=new window.XMLHttpRequest;o.withCredentials=!0,o.addEventListener("load",(function(n){t(JSON.parse(n.target.responseText),e)}),!1),o.addEventListener("error",(function(e){console.error(e)}),!1),o.open("POST","".concat(B.KI,"/api/attachments.json")),o.send(n)}var D=n(95237),O=n(18719),R=function(e){var t=e.callback,n=e.onCancel,o=document.createElement("canvas"),i=o.getContext("2d");o.width=1e3,o.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,o.width,o.height);var r=o.toDataURL("image/png");return(0,h.jsx)(D.Z,{style:{height:"100vh"},children:(0,h.jsx)(O.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},I=n(7557),H=n.n(I),z=n(41498),G=n.n(z),F=n(37205),W=n.n(F),U=n(12378);function J(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(J,go.CommandHandler),J.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},J.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},J.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},J.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},J.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},J.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},J.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},J.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o0){for(var o=a.elt(s-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(r)}else if("Down"===n.key){var i;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i);else for(;null!==t;){var r,a,s;if(null===(r=t.findTreeParentNode()))break;if((s=(a=this._sortTreeChildrenByY(r)).indexOf(t))o.y?1:n.xo.x?1:0})),t},J.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},J.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(J.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(J.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var V=J,K=(n(91017),n(85160)),q=n(43418),Y=n(43604),Q=n(51836),X="myPaletteDiv___Xjz2I",$="maxH60___Pd4Re";window.go=U;var ee=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(),s=(0,c.useRef)(!1),l=(0,c.useRef)(!1),d=(0,c.useState)(0),u=a()(d,2),p=u[0],m=u[1],f=function(){var e=G()(H()().mark((function e(){var t,i;return H()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.current.makeImage(),e.next=3,(0,Q.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:i=e.sent,n({src:i.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){m(p+1)}),[]),(0,h.jsx)("div",{ref:l,className:s.current?"".concat($," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(q.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:l.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(D.Z,{children:[(0,h.jsx)(Y.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(Y.Z,{onClick:function(){s.current=!s.current,m(p+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:X,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(K.FI,{initDiagram:function(){var e=U.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",s="#d533ff",l="#7d33ff",c="#ff6233",d="#ffffff",u="#000000",p="#fffcd5",m="#d5ebff",h="#f2dfe0",f="#a5d2fa",g="#cccccc",x="#b3e6b3",v="#fcbbbd";function w(t,n){var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(o){var i=n.part.adornedPart,r=(new U.Point).setRectSpot(i.actualBounds,t);r.subtract(i.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(i.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=o.copyNodeData(i.data);o.setGroupKeyForNodeData(a,o.getGroupKeyForNodeData(i.data)),o.addNodeData(a);var s={from:i.key,to:o.getKeyForNodeData(a)};o.addLinkData(s);var l=e.diagram.findNodeForData(a);l.location=r,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(U.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(U.Spot.Top)||t.equals(U.Spot.Bottom)?25:18,height:t.equals(U.Spot.Top)||t.equals(U.Spot.Bottom)?18:25,fill:"orange",stroke:d,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:o,contextClick:o})}function y(t){return e(U.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function b(e,t){return function(n,o){n.handled=!0,n.diagram.model.commit((function(n){n.set(o.part.adornedPart.data,e,t)}))}}function j(t,n){return n||(n="color"),e(U.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:b(n,t),contextClick:b(n,t)})}function k(){return[e("ContextMenuButton",e(U.Panel,"Horizontal",j(d,"fill"),j(p,"fill"),j(m,"fill"),j(h,"fill"))),e("ContextMenuButton",e(U.Panel,"Horizontal",j(g,"fill"),j(x,"fill"),j(f,"fill"),j(v,"fill")))]}function C(){return[e("ContextMenuButton",e(U.Panel,"Horizontal",j(u),j(a),j(n),j(t))),e("ContextMenuButton",e(U.Panel,"Horizontal",j(d),j(s),j(l),j(c)))]}function A(t,n){return n||(n="thickness"),e(U.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function _(t,n){return n||(n="dash"),e(U.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function S(){return[e("ContextMenuButton",e(U.Panel,"Horizontal",A(1),A(2),A(3),A(4))),e("ContextMenuButton",e(U.Panel,"Horizontal",_(null),_([2,4]),_([4,4])))]}function N(t,n){return n||(n="figure"),e(U.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:b(n,t),contextClick:b(n,t)})}function B(t){return e(U.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function T(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(U.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b("dir",t),contextClick:b("dir",t)})}function L(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var o=n.part.adornedPart;e.set(o.data,t?"toSpot":"fromSpot",U.Spot.stringify(U.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(U.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function P(t,n){var o=0,i=U.Spot.RightSide;t.equals(U.Spot.Top)?(o=270,i=U.Spot.TopSide):t.equals(U.Spot.Left)?(o=180,i=U.Spot.LeftSide):t.equals(U.Spot.Bottom)&&(o=90,i=U.Spot.BottomSide),n||(o-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",U.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(U.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:o,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return o.current=new U.Diagram(i.current,{padding:20,grid:e(U.Panel,"Grid",e(U.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(U.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(V),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),o.current.nodeTemplate=e(U.Node,"Auto",{locationSpot:U.Spot.Center,locationObjectName:"SHAPE",desiredSize:new U.Size(120,60),minSize:new U.Size(40,40),resizable:!0,resizeCellSize:new U.Size(10,10),rotatable:!0},new U.Binding("location","loc",U.Point.parse).makeTwoWay(U.Point.stringify),new U.Binding("desiredSize","size",U.Size.parse).makeTwoWay(U.Size.stringify),e(U.Shape,{name:"SHAPE",fill:d,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:U.Spot.AllSides,toSpot:U.Spot.AllSides},new U.Binding("figure"),new U.Binding("fill"),new U.Binding("stroke","borderColor"),new U.Binding("strokeWidth","thickness"),new U.Binding("strokeDashArray","dash")),e(U.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(U.TextBlock,{margin:1,textAlign:"center",overflow:U.TextBlock.OverflowEllipsis,editable:!0},new U.Binding("text").makeTwoWay(),new U.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(U.Panel,"Vertical",{maxSize:new U.Size(200,NaN)},e(U.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new U.Binding("text")),e(U.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new U.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(U.Adornment,"Spot",e(U.Placeholder,{padding:10}),w(U.Spot.Top,"TriangleUp"),w(U.Spot.Left,"TriangleLeft"),w(U.Spot.Right,"TriangleRight"),w(U.Spot.Bottom,"TriangleDown"),y({alignment:new U.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(U.Panel,"Horizontal",N("Rectangle"),N("RoundedRectangle"),N("Ellipse"),N("Diamond"))),e("ContextMenuButton",e(U.Panel,"Horizontal",N("Parallelogram2"),N("ManualOperation"),N("Procedure"),N("Cylinder1"))),e("ContextMenuButton",e(U.Panel,"Horizontal",N("Terminator"),N("CreateRequest"),N("Document"),N("TriangleDown"))),k(),C(),S()),o.current.groupTemplate=e(U.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:U.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new U.Binding("location","loc",U.Point.parse).makeTwoWay(U.Point.stringify),e(U.Panel,"Auto",{name:"BODY"},e(U.Shape,{parameter1:10,fill:d,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:U.Spot.AllSides,toSpot:U.Spot.AllSides},new U.Binding("fill"),new U.Binding("stroke","color"),new U.Binding("strokeWidth","thickness"),new U.Binding("strokeDashArray","dash")),e(U.Placeholder,{background:"transparent",margin:20})),e(U.TextBlock,{alignment:U.Spot.Top,alignmentFocus:U.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new U.Binding("text"),new U.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(U.Adornment,"Spot",e(U.Panel,"Auto",e(U.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(U.Placeholder,{margin:1.5})),y({alignment:U.Spot.TopRight,alignmentFocus:U.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",k(),C(),S()),o.current.linkTemplate=e(U.Link,{layerName:"Foreground",routing:U.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new U.Binding("fromSpot","fromSpot",U.Spot.parse),new U.Binding("toSpot","toSpot",U.Spot.parse),new U.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new U.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new U.Binding("points").makeTwoWay(),e(U.Shape,{strokeWidth:2},new U.Binding("stroke","color"),new U.Binding("strokeWidth","thickness"),new U.Binding("strokeDashArray","dash")),e(U.Shape,{segmentIndex:0,segmentOffset:new U.Point(15,0),segmentOrientation:U.Link.OrientAlong,alignmentFocus:U.Spot.Right,figure:"circle",width:10,strokeWidth:0},new U.Binding("fill","color"),new U.Binding("visible","dir",(function(e){return 1===e}))),e(U.Shape,{segmentIndex:-1,segmentOffset:new U.Point(-10,6),segmentOrientation:U.Link.OrientPlus90,alignmentFocus:U.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new U.Binding("fill","color"),new U.Binding("visible","dir",(function(e){return e>=1})),new U.Binding("width","thickness",(function(e){return 7+3*e})),new U.Binding("height","thickness",(function(e){return 7+3*e})),new U.Binding("segmentOffset","thickness",(function(e){return new U.Point(-15,4+1.5*e)}))),e(U.Shape,{segmentIndex:0,segmentOffset:new U.Point(15,-6),segmentOrientation:U.Link.OrientMinus90,alignmentFocus:U.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new U.Binding("fill","color"),new U.Binding("visible","dir",(function(e){return 2===e})),new U.Binding("width","thickness",(function(e){return 7+3*e})),new U.Binding("height","thickness",(function(e){return 7+3*e})),new U.Binding("segmentOffset","thickness",(function(e){return new U.Point(-15,4+1.5*e)}))),e(U.TextBlock,{alignmentFocus:new U.Spot(0,1,-4,0),editable:!0},new U.Binding("text").makeTwoWay(),new U.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(U.Adornment,e(U.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:B(2)},new U.Binding("pathPattern","thickness",B)),y({alignmentFocus:new U.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",C(),S(),e("ContextMenuButton",e(U.Panel,"Horizontal",T(0),T(1),T(2))),e("ContextMenuButton",e(U.Panel,"Horizontal",e(U.Panel,"Spot",L(!1),P(U.Spot.Top,!1),P(U.Spot.Left,!1),P(U.Spot.Right,!1),P(U.Spot.Bottom,!1)),e(U.Panel,"Spot",{margin:new U.Margin(0,0,0,2)},L(!0),P(U.Spot.Top,!0),P(U.Spot.Left,!0),P(U.Spot.Right,!0),P(U.Spot.Bottom,!0))))),new U.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(U.Link,{locationSpot:U.Spot.Center,selectionAdornmentTemplate:e(U.Adornment,"Link",{locationSpot:U.Spot.Center},e(U.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(U.Shape,{toArrow:"Standard",stroke:null}))},{routing:U.Link.AvoidsNodes,curve:U.Link.JumpOver,corner:5,toShortLength:4},new U.Binding("points"),e(U.Shape,{isPanelMain:!0,strokeWidth:2}),e(U.Shape,{toArrow:"Standard",stroke:null})),model:new U.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(W()(U.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(U.Node,"Auto",{locationSpot:U.Spot.Center},new U.Binding("location","location",U.Point.parse).makeTwoWay(U.Point.stringify),e(U.Shape,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new U.Binding("stroke").makeTwoWay(),new U.Binding("fill").makeTwoWay(),new U.Binding("figure")),e(U.TextBlock,{margin:new U.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new U.Size(16,16),maxSize:new U.Size(10,NaN),textAlign:"center",editable:!0},new U.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(U.Panel,"Grid",e(U.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(U.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),o.current.grid.visible=!0,o.current.grid.gridCellStroke="darkgray",o.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=o.current,o.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:i})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(C.ZP,{size:"large",onClick:f,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},te=n(5112),ne=n(26415),oe=te.ZP.Group,ie={margin:"0 8px"},re=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(j.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:ie,children:"单元格数:"}),(0,h.jsx)("span",{style:ie,children:"行数"}),(0,h.jsx)(j.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(ne.Z,{})}),(0,h.jsx)("span",{style:ie,children:"列数"}),(0,h.jsx)(j.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(ne.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:ie,children:"对齐方式:"}),(0,h.jsx)(j.Z.Item,{name:"align",children:(0,h.jsxs)(oe,{children:[(0,h.jsx)(te.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(te.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(te.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(te.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(C.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},ae=n(78673),se=n(84462),le=n.n(se),ce=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,r=e.callback,s=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),d=(0,c.useState)(!1),u=a()(d,2),p=u[0],m=u[1],f=(0,c.useRef)({id:s,appName:"graphing",width:o||1e3,height:i||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){l.current=new(le())(f.current,!0),window.onload=function(){l.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){f.current.appName=p?"3D":"graphing",l.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){m(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:s}),(0,h.jsxs)(D.Z,{align:"middle",children:[(0,h.jsx)(Y.Z,{flex:1,children:(0,h.jsx)(ae.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return m(e)}})}),(0,h.jsx)(Y.Z,{children:(0,h.jsx)(C.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),de=n(23180),ue=n(68339),pe="link",me="upload-image",he="add-flowchart",fe="draw-image",ge="code-block",xe="add-table",ve="------------",we={default:ve,left:":".concat(ve),center:":".concat(ve,":"),right:"".concat(ve,":")},ye=n(88080);var be="@▁▁@",je=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ke(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var Ce=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ae=l()(l()({},Ce+"-B","bold"),Ce+"-I","italic"),_e=l()(l()(l()(l()(l()(l()(l()(l()({},pe,"添加链接"),ge,"添加代码块"),me,"添加图片"),fe,"添加画图"),he,"插入流程图"),xe,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Se=function(e){var t=e.defaultValue,n=void 0===t?"":t,o=e.onChange,r=e.width,s=void 0===r?"100%":r,d=e.height,g=void 0===d?400:d,x=e.miniToolbar,v=void 0!==x&&x,w=e.isFocus,j=void 0!==w&&w,k=e.watch,C=e.insertTemp,A=e.mode,B=void 0===A?"markdown":A,T=e.id,L=void 0===T?"markdown-editor-id":T,P=e.showResizeBar,M=void 0!==P&&P,D=e.noStorage,O=void 0!==D&&D,I=e.showNullButton,H=void 0!==I&&I,z=e.showNullProgramButton,G=void 0!==z&&z,F=e.hidetoolBar,W=void 0!==F&&F,U=e.fullScreen,J=void 0!==U&&U,V=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,Q=e.className,X=void 0===Q?"":Q,$=e.disablePaste,te=void 0!==$&&$,ne=e.disabled,oe=void 0!==ne&&ne,ie=e.disabledFill,ae=void 0!==ie&&ie,se=e.placeholder,le=void 0===se?"":se,ve=e.values,Ce=void 0===ve?"":ve,Se=e.extraUse,Ne=(0,c.useState)(null),Be=a()(Ne,2),Te=Be[0],Le=Be[1],Pe=(0,c.useState)(n),Ze=a()(Pe,2),Me=Ze[0],Ee=Ze[1],De=(0,c.useState)(k),Oe=a()(De,2),Re=Oe[0],Ie=Oe[1],He=(0,c.useState)(J),ze=a()(He,2),Ge=ze[0],Fe=ze[1],We=(0,c.useState)(""),Ue=a()(We,2),Je=Ue[0],Ve=Ue[1],Ke=(0,c.useState)(0),qe=a()(Ke,2),Ye=qe[0],Qe=qe[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),et=$e[0],tt=$e[1],nt=(0,c.useState)(!1),ot=a()(nt,2),it=(ot[0],ot[1]),rt=(0,c.useState)(0),at=a()(rt,2),st=at[0],lt=at[1],ct=(0,c.useState)(0),dt=a()(ct,2),ut=dt[0],pt=dt[1],mt=(0,c.useRef)(),ht=(0,c.useRef)(),ft=(0,c.useRef)(),gt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ee(Ce),null==Te||Te.setValue(Ce),window.scrollTo(0,e)}),[Ce]),(0,c.useEffect)((function(){null==Y||Y(Ge)}),[Ge]),(0,c.useEffect)((function(){if(mt.current){var e=function(e,n){if(!te){var o=n.clipboardData;if(o){var i=o.types.toString(),r=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==B)return;try{var a,s=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(s=r[0]);var l=s.getAsFile(),c=l.name.split(".").pop();E(l,(function(e){var n,o,i;e.id?(null==l||null===(n=l.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==l||null===(o=l.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('')):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?t.replaceSelection('').concat(l.name,"")):je.includes(c)?t.replaceSelection('').concat(l.name,"")):t.replaceSelection("[".concat(l.name,"](").concat(ue.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){N.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=u().fromTextArea(mt.current,{mode:B,lineNumbers:!v,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",le):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),o=n.getCursor(),i=n.getLine(o.line),r=i.charAt(o.ch-1),a=i.lastIndexOf("@▁@",o.ch),s=i.lastIndexOf("@▁▁@",o.ch),l=a>s?a:s,c=a>s?3:4;if(-1===be.indexOf(r))return null;if(console.log("change1:",t,e,i,o,l,a,s,r),l>=0&&o.ch-l<5){var d=l+c;return n.replaceRange("",{line:o.line,ch:l},{line:o.line,ch:d}),{line:o.line,ch:d}}return null}(e);n&&t.preventDefault()}})),j&&t.focus(),t.on("paste",e),oe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Le(t),function(){t.off("paste",e)}}}),[]);var xt=(0,c.useCallback)((function(){ht.current}),[et,ht,Ge]);(0,c.useEffect)((function(){if(Te){var e=function(){var e=new p.Z((function(e){var t,n=i()(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;(o.target.offsetHeight>0||o.target.offsetWidth>0)&&(xt(),Te.setSize("100%","100%"),Te.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(mt.current.parentElement),e}();return function(){var t,n;null!==(t=mt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=mt.current)||void 0===n?void 0:n.parentElement)}}}),[Te,xt]),(0,c.useEffect)((function(){if(Te){for(var e=[],t=function(){var t=a()(o[n],2),i=t[0],r=t[1],s=l()({},i,(function(){vt(r)}));e.push(s),Te.addKeyMap(s)},n=0,o=Object.entries(Ae);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(L);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(L,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Ie(k)}),[Te,k]),(0,c.useEffect)((function(){Te&&j&&Te.focus()}),[Te,j]),(0,c.useEffect)((function(){if(Re&&Te){var e=function(e){var t=e.target;if(gt.current){var n=t.scrollTop/t.scrollHeight;gt.current.scrollTop=gt.current.scrollHeight*n}},t=Te.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Te,Re]),(0,c.useEffect)((function(){if(Te&&K){var e=function(e,t){K(e,t)};return Te.on("beforeChange",e),function(){Te.off("beforeChange",e)}}}),[Te,K]),(0,c.useEffect)((function(){if(Te&&V){var e=function(){V(Te.getValue())};return Te.on("blur",e),function(){Te.off("blur",e)}}}),[Te,V]),(0,c.useEffect)((function(){if(Te){var e=function(e,t){var n=e.getValue();Ee(n),Qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(G?o(n,kt(n)):o(n))};return Te.on("change",e),function(){Te.off("change",e)}}}),[Te,o]),(0,c.useEffect)((function(){if(Te)if(null==n)Te.setValue(""),Ee("");else{var e=window.scrollY||window.pageYOffset;n!==Te.getValue()&&(Te.setValue(n),Ee(n),Te.setCursor(oe?1:Te.lineCount(),0),window.scrollTo(0,e))}}),[Te,n]);var vt=(0,c.useCallback)((function(e){var t=Te.getCursor(),n=Te.getSelection(),o=n.split("\n");switch(e){case"bold":return Te.replaceSelection("**"+n+"**"),""===n&&Te.setCursor(t.line,t.ch+2),Te.focus();case"italic":return Te.replaceSelection("*"+n+"*"),""===n&&Te.setCursor(t.line,t.ch+1),Te.focus();case"code":return Te.replaceSelection("`"+n+"`"),""===n&&Te.setCursor(t.line,t.ch+1),Te.focus();case"inline-latex":return Ve("inline-latex"),Te.focus();case"latex":return Te.replaceSelection("```latex\n"+n+"\n```"),Te.setCursor(t.line+1,n.length+1),Te.focus();case"line-break":return Te.replaceSelection("
\n"),Te.focus();case"list-ul":return""===n?Te.replaceSelection("- "+n):Te.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Te.focus();case"list-ol":return""===n?Te.replaceSelection("1. "+n):Te.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Te.focus();case"add-null-ch":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection("▁"),Te.focus();case"add-signal":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection("@▁@"),Te.focus();case"add-multiple":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection(be),Te.focus();case"inster-template-1":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Te.focus();case"eraser":return Te.setValue(""),Te.focus();case"trigger-watch":return Ie(!Re),Te.focus();case"trigger-full-screen":return Fe(!Ge),Te.focus();case pe:return void Ve(pe);case ge:return void Ve(ge);case me:return void Ve(me);case fe:return void Ve(fe);case"maths-latex":return void Ve("maths-latex");case he:return void Ve(he);case xe:return void Ve(xe);default:throw new Error}}),[Te,Re,Ge]),wt=(0,c.useCallback)((function(e,t){var n,o,i,r,a;switch(Ve(""),Je){case pe:var s=e.title,l=e.link;return Te.replaceSelection("[".concat(s,"](").concat(l,")")),Te.focus();case ge:var c=e.language,d=e.content;return Te.replaceSelection(["```"+c,d,"```"].join("\n")),Te.focus();case"maths-latex":for(var u=atob(e),p=new Uint8Array(u.length),m=0;m-1||null==g||!g.type?f?Te.replaceSelection("![ ".concat(f," ]( ").concat(h,' "').concat(f,'" )')):Te.replaceSelection("![,](".concat(h,")")):(null==g||null===(r=g.type)||void 0===r?void 0:r.indexOf("video"))>-1?Te.replaceSelection('')):(null==g||null===(a=g.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Te.replaceSelection('').concat(g.name,"")):je.includes(x)?Te.replaceSelection('').concat(g.name,"")):Te.replaceSelection("[".concat(g.name,"](").concat(ue.Z.API_SERVER).concat(h,")")),Te.focus();case xe:for(var v=e.row,w=e.col,y=e.align,b="\n",j=0;j300&&(t=300),tt(g+t+"px")}},o=ft.current,i=!1,r=0;return o.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){o.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Te,ft]),(0,c.useEffect)((function(){tt(g)}),[g]);var jt={width:ke(s),height:ke(et)},kt=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(o)}return 0}),[Ye]),function(e){var t=[];if(G){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){_e[Je]&&Je!==fe&&Je!==he&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),pt(n)}),0)}),[Je]);var Ct=function(e,t,n,o){var i=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>i-20&&o0&&(0,s.jsx)("div",{className:a,children:n.map((function(e,t){return(0,s.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,s.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJ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vUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},t)}))}),p]}),o&&(0,s.jsx)("img",{style:{marginTop:33,marginRight:38},src:o,width:c})]})})},c=n(79800),d=n.n(c),u="row___aXJjm",p="title___HUKL0",m="tagsWrap___XB2W3",h="action___VdHb1",f="bar___t1kKC",g="tag___V7Eft",x="name___Hk1Ip",v="num___xQpcH",w="active___XryTX",y="tagsBorderWrap___OMxjs",b=n(92310),j=n.n(b),k=n(89392),C=function(e){var t=e.dataSource,n=void 0===t?[]:t,i=e.value,r=e.onChange,a=e.onTitleChange,l=e.className,c=e.title,b=e.titleWidth,C=void 0===b?41:b,A=e.style,_=void 0===A?{}:A,S=e.fontColor,N=void 0===S?"#6A7283":S,B=e.showCount,T=(0,o.useState)(0),L=d()(T,2),P=L[0],Z=L[1],M=(0,o.useState)(!1),E=d()(M,2),D=E[0],O=E[1],R=(0,o.useRef)(null),I=(0,o.useRef)(null);return(0,o.useEffect)((function(){var e;0!==n.length&&((null==R||null===(e=R.current)||void 0===e?void 0:e.clientHeight)>97?Z(1):Z(0));0===n.length&&Z(0),O(!1)}),[n]),(0,s.jsxs)("div",{className:j()(u,l),style:_,children:[(0,s.jsx)("div",{onClick:(0,k.throttle)((function(){return null==a?void 0:a()}),2e3),style:{width:C,marginTop:D?12:4},className:"".concat(p," ").concat(a?"current":""),children:c}),(0,s.jsxs)("div",{className:D?"".concat(m," ").concat(y):m,children:[(0,s.jsx)("div",{className:f,ref:I,style:P>0?{height:1===P?97:"auto",overflow:1===P?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,s.jsx)("div",{className:g,ref:R,children:null==n?void 0:n.map((function(e){return(0,s.jsxs)("span",{onClick:function(){return r(e.id)},style:{color:N},className:i===e.id?w:"",children:[(0,s.jsx)("span",{title:e.name,className:x,children:e.name}),!!B&&(0,s.jsx)("span",{className:v,children:e.count})]},e.id)}))})}),!!P&&(0,s.jsx)(o.Fragment,{children:1===P?(0,s.jsxs)("div",{onClick:function(){var e;Z(2),(null==R||null===(e=R.current)||void 0===e?void 0:e.clientHeight)>245?O(!0):O(!1)},className:h,children:["展开",(0,s.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,s.jsxs)("div",{onClick:function(){I.current.scrollTop=0,Z(1),O(!1)},className:h,children:["收起",(0,s.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},A="tabs___GTqPV",_="active___F26E8",S=function(e){var t=e.dataSource,n=void 0===t?[]:t,o=e.value,i=e.onChange,r=e.className,a=e.style,l=void 0===a?{}:a;return(0,s.jsx)("div",{style:l,className:j()(A,r),children:n.map((function(e){return(0,s.jsx)("span",{onClick:function(){return i(e.id)},className:o===e.id?_:"",children:e.name},e.id)}))})},N="input___PW2zI",B="dropdown___vSy8B",T="menu___NiyBu",L="text___Grueu",P="b1___ZKryM",Z="b2___aKyGa",M=n(98135),E=function(e){var t,n=e.dataSource,i=void 0===n?[]:n,r=e.value,a=void 0===r?"":r,l=e.onChange,c=e.onInputChange,u=void 0===c?function(){}:c,p=e.className,m=e.style,h=void 0===m?{}:m,f=e.placeholder,g=(e.allowClear,(0,o.useState)("")),x=d()(g,2),v=x[0],w=x[1],y=(0,o.useState)(""),b=d()(y,2),k=b[0],C=b[1];(0,o.useEffect)((function(){var e,t=a;null!==(e=JSON.stringify(a))&&void 0!==e&&e.includes("{")&&(w(a.id),t=a.value||"");try{C(decodeURIComponent(t||""))}catch(e){C(decodeURIComponent(t||""))}}),[a]);var A=function(){l(encodeURIComponent(k),v||null)};return(0,s.jsxs)("div",{className:j()(N,p),style:h,children:[!!i.length&&(0,s.jsxs)("div",{className:B,children:[(0,s.jsxs)("div",{className:L,children:[null===(t=i.find((function(e){return e.id===v})))||void 0===t?void 0:t.name,(0,s.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,s.jsx)("b",{className:P}),(0,s.jsx)("b",{className:Z})]}),(0,s.jsx)("div",{className:T,children:i.map((function(e,t){return(0,s.jsx)("div",{onClick:function(){var t;(t=e.id)!==v&&(w(t),l(encodeURIComponent(k),t))},children:e.name},t)}))})]}),(0,s.jsx)(M.Z,{onPressEnter:A,value:k,onChange:function(e){C(e.target.value),u(encodeURIComponent(e.target.value),v||null)},bordered:!1,placeholder:f}),(0,s.jsx)("i",{onClick:A,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},D="quickPager___GM30J",O="disabled___Ozc8I",R=function(e){var t=e.value,n=e.onChange,o=e.className,i=e.total,r=e.pageSize,a=e.style,l=void 0===a?{}:a,c=t<2,d=t>=Math.ceil(i/r);return i<=r?(0,s.jsx)(s.Fragment,{}):(0,s.jsxs)("div",{className:j()(D,o),style:l,children:[(0,s.jsx)("div",{onClick:function(){c||n(t-1,"prev")},className:c?O:"",children:"上一页"}),(0,s.jsx)("div",{onClick:function(){d||n(t+1,"next")},className:d?O:"",children:"下一页"})]})},I="list___oOsiS",H="wrap___G6T7F",z="lockWrap___Rl79E",G="li___oZZ7l",F="cover___b2bYW",W="img___IQX7w",U="sign___HkT6C",J="name___SsJx8",V="e___TMqq0",K="tags___bcjyo",q="rate___YACg7",Y=n(71418),Q=n(6848),X=n(97022),$=n(68339),ee=n(76279),te=n(96908),ne=n(57177),oe=n(81378),ie=n(22845),re=function(e){var t=e.className,n=e.dataSource,o=void 0===n?[]:n,i=e.col,r=void 0===i?4:i,a=e.right,l=e.bottom,c=void 0===l?23:l,d=e.precision,u=void 0===d?0:d,p=e.wrapWidth,m=void 0===p?1200:p,h=e.trackEventItems,f=e.loading,g=Math.floor((m-(r-1)*a)/r);return(0,s.jsx)(Y.Z,{spinning:f,children:(0,s.jsxs)("div",{className:j()(I,t),children:[!!o.length&&o.map((function(e,t){var n=e.name,o=e.id,i=e.identifier,l=e.power,d=(e.cover_image_id,e.pic);return(0,s.jsxs)("div",{className:H,style:{width:g,marginRight:(1+t)%r==0?0:a+u,marginBottom:c},children:[(0,s.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(i,"/challenges"),className:G,onClick:function(e){e.preventDefault(),h&&(0,ee.L9)([h]),l&&(0,ee.xg)("/shixuns/".concat(i,"/challenges"))},children:[(0,s.jsxs)("div",{className:W,children:[(0,s.jsx)("img",{className:F,src:"".concat(d)}),e.is_jupyter&&(0,s.jsx)("img",{className:U,src:te}),e.is_jupyter_lab&&(0,s.jsx)("img",{className:U,src:ne}),e.is_unity_3d&&(0,s.jsx)("img",{className:U,src:oe})]}),(0,s.jsx)("div",{className:J,children:(0,s.jsx)(Q.Z,{title:n||"实践项目名称-未填写",children:(0,s.jsx)("span",{className:V,children:n||"实践项目名称-未填写"})})}),(0,s.jsxs)("div",{className:K,children:[(0,s.jsx)(Q.Z,{placement:"bottom",title:"关卡数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,s.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,s.jsx)(Q.Z,{placement:"bottom",title:"学习人数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,s.jsx)("span",{children:e.myshixuns_count})]})}),(0,s.jsx)(Q.Z,{placement:"bottom",title:"难度等级",children:(0,s.jsx)("span",{children:(0,s.jsx)("span",{children:e.level})})}),(0,s.jsxs)("div",{className:q,children:[(0,s.jsx)(X.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,s.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!l&&(0,s.jsxs)("div",{className:z,children:[(0,s.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,s.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},o)})),!o.length&&(0,s.jsx)(ie.Z,{})]})})},ae="list___jb2Ay",se="wrap___VsQDr",le="li___IxCLC",ce="cover___Mu8wr",de="img___IpFLA",ue="bq___Bil0T",pe="sign___DXJ4d",me="name___l7FoJ",he="e___pXQUG",fe="unit___wCIFR",ge="tags___w_Mil",xe=function(e){var t=e.className,n=e.dataSource,o=void 0===n?[]:n,i=e.col,r=void 0===i?4:i,a=e.right,l=e.bottom,c=void 0===l?23:l,d=e.precision,u=void 0===d?0:d,p=e.wrapWidth,m=void 0===p?1200:p,h=e.trackEventItems,f=e.loading,g=Math.floor((m-(r-1)*a)/r),x=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,s.jsx)(Y.Z,{spinning:f,children:(0,s.jsxs)("div",{className:j()(ae,t),children:[!(null==o||!o.length)&&(null==o?void 0:o.map((function(e,t){var n,o=e.name,i=e.id,l=e.identifier,d=(e.featured,e.school_name),p=e.image_url;e.excellent,e.is_plan;return(0,s.jsx)("div",{className:se,style:{width:g,marginRight:(1+t)%r==0?0:a+u,marginBottom:c},children:(0,s.jsxs)("a",{target:"_blank",href:"/paths/".concat(l),className:le,onClick:function(e){e.preventDefault(),h&&(0,ee.L9)([h]),(0,ee.xg)("/paths/".concat(l))},children:[(0,s.jsxs)("div",{className:de,children:[(0,s.jsx)("img",{className:ce,src:"".concat(p)}),null==e||null===(n=e.subject_tags)||void 0===n?void 0:n.map((function(e,t){var n;if(0===t){var o,i=null===(o=x.find((function(t){return t.name==e})))||void 0===o?void 0:o.swimg;return(0,s.jsx)("img",{className:pe,src:i,style:{left:"-4px"}})}var r=null===(n=x.find((function(t){return t.name==e})))||void 0===n?void 0:n.ptimg;return(0,s.jsx)("img",{className:pe,src:r,style:{left:"".concat(48+52*(t-1)+2*t,"px")}})})),(0,s.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,s.jsx)("div",{className:ue,children:"开放课程"})})]}),(0,s.jsx)("div",{className:me,children:(0,s.jsx)(Q.Z,{title:o,children:(0,s.jsx)("span",{className:he,children:o})})}),(0,s.jsx)(Q.Z,{title:"发布单位:".concat(d),children:(0,s.jsxs)("div",{className:fe,children:[(0,s.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),d]})}),(0,s.jsx)("div",{className:ge,children:(0,s.jsxs)("div",{children:[(0,s.jsx)(Q.Z,{placement:"bottom",title:"章节数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,s.jsx)("span",{children:e.stages_count})]})}),(0,s.jsx)(Q.Z,{placement:"bottom",title:"学习人数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,s.jsx)("span",{children:e.members_count})]})})]})})]})},i)}))),!o.length&&(0,s.jsx)(ie.Z,{})]})})},ve={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},we=function(e){var t=e.className,n=e.dataSource,o=void 0===n?[]:n,i=e.col,r=void 0===i?4:i,a=e.right,l=e.bottom,c=void 0===l?23:l,d=e.precision,u=void 0===d?0:d,p=e.wrapWidth,m=void 0===p?1200:p,h=e.trackEventItems,f=e.loading,g=Math.floor((m-(r-1)*a)/r);return(0,s.jsx)(Y.Z,{spinning:f,children:(0,s.jsxs)("div",{className:j()(ve.list,t),children:[!!o.length&&o.map((function(e,t){var n=e.subject_identifier,o=e.id,i=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,s.jsxs)("div",{className:ve.wrap,style:{width:g,marginRight:(1+t)%r==0?0:a+u,marginBottom:c},children:[(0,s.jsxs)("a",{className:ve.li,onClick:function(t){t.preventDefault(),h&&(0,ee.L9)([h]),(0,ee.xg)(e.first_category_url)},children:[(0,s.jsxs)("div",{className:ve.top,children:[(0,s.jsx)(Q.Z,{title:e.name,children:(0,s.jsx)("div",{className:ve.name,children:e.name})}),(0,s.jsx)("img",{className:ve.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,s.jsx)("div",{className:ve.text,title:e.creator,children:e.creator}),n&&(0,s.jsxs)("div",{className:ve.btns,children:[(0,s.jsx)("div",{children:"开放课程"}),(0,s.jsx)("aside",{children:"开放课堂"})]}),i&&(0,s.jsx)("div",{className:ve.sign,children:"公开"})]}),(0,s.jsxs)("div",{className:ve.bottom,children:[e.visits>0&&(0,s.jsx)(Q.Z,{title:"访问量",placement:"bottom",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,s.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,s.jsx)(Q.Z,{title:"成员",placement:"bottom",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,s.jsx)(Q.Z,{title:"作业",placement:"bottom",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,s.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,s.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,s.jsxs)("div",{className:ve.lockWrap,children:[(0,s.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,s.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},o)})),!o.length&&(0,s.jsx)(ie.Z,{})]})})},ye={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},be=n(76252),je=function(e){var t=e.dataSource,n=void 0===t?[]:t,o=e.value,i=e.onChange,r=e.className,a=e.style,l=void 0===a?{}:a,c=e.tabBarExtraContent;return(0,s.jsxs)("div",{className:j()(ye.tabs,r),style:l,children:[(0,s.jsx)("div",{className:ye.tabsWrap,children:n.map((function(e,t){return(0,s.jsxs)("aside",{className:ye.tab,onClick:function(){i(e.id),e.link&&be.history.push(e.link)},children:[(0,s.jsx)("div",{className:o===e.id?ye.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,s.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,s.jsx)(Q.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,s.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,s.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,s.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},t)}))}),(0,s.jsx)("div",{className:ye.tabBar,children:c})]})},ke=function(e){var t=e.className,n=e.style,o=void 0===n?{}:n,i=e.children;return(0,s.jsx)("div",{className:j()(t),style:o,children:i})},Ce="orderWrap___ZfyGX",Ae="orderIconWrap___XTB_O",_e="orderAsc___KWHmA",Se="orderDesc___rHdbB",Ne="active___a7eSP",Be="cursorPointer___gs9kL",Te="orderTextWrap___teAKn",Le=n(38854),Pe=n(20834),Ze=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Me=function(e){var t,n=e.sortValue,o=e.dropValue,i=e.className,r=e.onSort,a=e.onDrop,l=e.dataSource,c=void 0===l?Ze:l;return(0,s.jsxs)("div",{className:j()(Ce,i),children:[(0,s.jsx)(Le.Z,{dropdownRender:function(){return(0,s.jsx)(Pe.Z,{children:c.map((function(e,t){return(0,s.jsx)(Pe.Z.Item,{onClick:function(){return a(e.id)},children:e.name},t)}))})},children:(0,s.jsx)("span",{className:Te,children:null===(t=c.find((function(e){return o===e.id})))||void 0===t?void 0:t.name})}),(0,s.jsxs)("span",{className:Ae,children:[(0,s.jsx)("span",{className:_e,children:(0,s.jsx)("i",{className:"asc"===n?"iconfont icon-sanjiaoxing-up font12 ".concat(Be," ").concat(Ne):"iconfont icon-sanjiaoxing-up font12 ".concat(Be),onClick:function(){return r("asc"===n?"desc":"asc")}})}),(0,s.jsx)("span",{className:Se,children:(0,s.jsx)("i",{className:"desc"===n?"iconfont icon-sanjiaoxing-down font12 ".concat(Be," ").concat(Ne):"iconfont icon-sanjiaoxing-down font12 ".concat(Be),onClick:function(){return r("asc"===n?"desc":"asc")}})})]})]})},Ee=n(82242),De=n.n(Ee),Oe=n(7557),Re=n.n(Oe),Ie=n(41498),He=n.n(Ie),ze=n(39647),Ge=n.n(ze),Fe={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},We=n(3113),Ue=["className","style","children","loading","openLoading","onClick","size","shape"],Je=function(e){var t=e.className,n=e.style,i=e.children,r=e.loading,a=void 0!==r&&r,l=e.openLoading,c=e.onClick,u=void 0===c?function(){}:c,p=e.size,m=void 0===p?"middle":p,h=e.shape,f=void 0===h?"round":h,g=Ge()(e,Ue),x=(0,o.useState)(!1),v=d()(x,2),w=v[0],y=v[1];return(0,s.jsx)(We.ZP,De()(De()({onClick:(0,k.throttle)(function(){var e=He()(Re()().mark((function e(t){return Re()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l&&y(!0),e.prev=1,e.next=4,u(t);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:l&&y(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:j()(Fe.btn,Fe["".concat(m,"-").concat(f)],t),style:n,size:m,shape:f,loading:w||a},g),{},{children:i}))},Ve="head___ghH72",Ke="node___mjPEy",qe=function(e){var t=e.className,n=e.style,o=e.children,i=void 0===o?null:o,r=e.onClick,a=e.title;return(0,s.jsxs)("div",{className:j()(Ve,t),style:n,children:[(0,s.jsxs)("span",{className:"primary-hover",onClick:r,children:[(0,s.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,s.jsx)("b",{title:a,children:a}),(0,s.jsx)("div",{className:Ke,children:i})]})},Ye="btns___sNgTb",Qe="confirm___Ozirl",Xe="cancel___aiq1I",$e=function(e){var t=e.confirmShow,n=void 0===t||t,o=e.confirmTitle,i=e.confirmClick,r=e.cancelShow,a=void 0===r||r,l=e.cancelTitle,c=e.cancelClick,d=e.className,u=e.style,p=e.confirmLoading,m=void 0!==p&&p;return(0,s.jsxs)("div",{className:j()(Ye,d),style:u,children:[n&&(0,s.jsx)(We.ZP,{loading:m,onClick:i,type:"primary",className:Qe,children:o}),a&&(0,s.jsx)(We.ZP,{onClick:c,className:Xe,children:l})]})},et={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},tt=function(e){var t=e.className,n=e.style,o=void 0===n?{}:n,i=e.LeftContent,r=e.children,a=e.RightContent;return(0,s.jsx)("div",{className:j()(et.fixedBottom,t),style:o,children:(0,s.jsxs)("div",{className:et.wrap,children:[(0,s.jsx)("div",{className:et.left,children:i}),(0,s.jsx)("div",{className:et.center,children:r}),(0,s.jsx)("div",{className:et.right,children:a})]})})},nt="crumbs___V41Oe",ot="hover___bEIVd",it=function(e){var t=e.className,n=e.style,i=void 0===n?{}:n,r=e.dataSource,a=void 0===r?[]:r;return(0,s.jsx)("div",{className:j()(nt,t),style:i,children:a.map((function(e,t){return t"," "]})]},t):(0,s.jsx)("span",{style:{color:"#5F6368"},children:e.name},t)}))})},rt=n(31797),at=["onChange"],st=rt.Z.Countdown,lt=function(e){var t=e.onChange,n=Ge()(e,at),i=(0,o.useState)(null),r=d()(i,2),a=r[0],l=r[1];(0,o.useEffect)((function(){"number"==typeof a&&a>=0&&t(a)}),[a]);return(0,s.jsx)(st,De()(De()({},n),{},{onChange:function(e){var t=Math.floor(e/1e3);l(t)}}))}},88080:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(59301);function i(e,t){var n=(0,o.useRef)();(0,o.useEffect)((function(){n.current=e})),(0,o.useEffect)((function(){if(null!==t){var e=setInterval((function(){n.current()}),t);return function(){return clearInterval(e)}}}),[t])}},3502:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});n(59301);var o=n(38854),i=n(20834),r=n(6848),a=n(98135),s="searchSortControllerContainer___AAq4n",l="btn___bMc0x",c="btnSort___vBpNG",d="tips___egWVQ",u=n(37712),p=function(e){var t=e.isAdmin,n=(e.dataSource,e.batchStatus,e.SortMenuName),p=e.setSortMenuName,m=e.onSearch,h=e.onSort,f=(e.onBatch,t?[{name:"默认排序",type:"position",direction:"desc"},{name:"创建时间升序",type:"created_at",direction:"asc"},{name:"创建时间降序",type:"created_at",direction:"desc"},{name:"更新时间升序",type:"updated_at",direction:"asc"},{name:"更新时间降序",type:"updated_at",direction:"desc"},{name:"作业名称升序",type:"name_pinyin",direction:"asc"},{name:"作业名称降序",type:"name_pinyin",direction:"desc"}]:[{name:"默认排序",type:"position",direction:"desc"},{name:"按发布时间升序",type:"created_at",direction:"asc"},{name:"按发布时间降序",type:"created_at",direction:"desc"},{name:"按截止时间升序",type:"updated_at",direction:"asc"},{name:"按截止时间降序",type:"updated_at",direction:"desc"},{name:"作业名称升序",type:"name_pinyin",direction:"asc"},{name:"作业名称降序",type:"name_pinyin",direction:"desc"}]),g="默认排序"===n;return(0,u.jsxs)("div",{className:s,children:[(0,u.jsx)("div",{children:(0,u.jsx)(o.Z,{dropdownRender:function(){return(0,u.jsx)(i.Z,{selectedKeys:[n],children:f.map((function(e){return(0,u.jsx)(i.Z.Item,{onClick:function(){return p((t=e).name),void h(t);var t},children:e.name},e.name)}))})},children:(0,u.jsx)("div",{children:(0,u.jsxs)("span",{className:"".concat(l," ").concat(g?c:""),children:[(0,u.jsx)("i",{className:"iconfont icon-paixu font14 mr5"}),n]})})})}),g&&(0,u.jsx)(r.Z,{title:"优先按照调整排序结果展示,未设置排序时,按照创建时间降序排列",children:(0,u.jsx)("span",{className:d,children:(0,u.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2"})})}),(0,u.jsx)(a.Z.Search,{allowClear:!0,placeholder:"请输入名称进行搜索",onSearch:function(e){return m(e.trim())},style:{width:220,marginLeft:"auto"}})]})}},45971:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});n(59301);var o=n(20834),i=n(95237),r=n(43604),a=n(38854),s=n(6848),l="tabMenuContainer___xbZhu",c="control___tg7XY",d="iconH___CDXCm",u="selectBtn___Da4jv",p=n(76252),m=n(22961),h=n(37712),f=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.isLoading,f=e.addText,g=e.tabDataSource,x=e.isAdmin,v=e.dispatch,w=e.type,y=e.exportType,b=e.TooltipTitle,j=e.categoryId,k=e.dropdownMenu,C=e.isShowRightControl,A=e.defaultSelectedKeys,_=e.classroomList,S=e.onTabMenuClick,N=e.onTooltipTitleClick,B=e.onDropdownMenuClick,T=e.onsetClick,L=(0,p.useParams)();return(0,h.jsx)("div",{className:l,children:(0,h.jsxs)(i.Z,{children:[(0,h.jsx)(r.Z,{flex:"1",children:(0,h.jsx)(o.Z,{mode:"horizontal",selectedKeys:A,children:g.map((function(e){return(0,h.jsxs)(o.Z.Item,{onClick:function(){return n?{}:S(e)},children:[(0,h.jsx)("span",{className:"c-grey-666 ".concat(x?"mr20":""),children:e.name}),void 0!==e.total&&(0,h.jsx)("span",{className:"c-grey-999",children:e.total||0})]},e.id)}))})}),x&&C&&(0,h.jsxs)(r.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3},children:[(0,h.jsx)(a.Z,{className:"mr10",placement:"bottom",arrow:!0,dropdownRender:function(){return(0,h.jsxs)(o.Z,{children:[(0,h.jsx)(o.Z.Item,{onClick:function(){v({type:"classroomList/setActionTabs",payload:{key:"导出成绩",type:w,exportType:y,category_id:L.categoryId}})},children:"学生成绩"},1),(0,h.jsx)(o.Z.Item,{onClick:function(){p.history.push("/classrooms/".concat(null==L?void 0:L.coursesId,"/exportlist/").concat("group"===y?"group_work_list":"normal_work_list"))},children:"历史导出"},3)]})},children:(0,h.jsx)("div",{className:"c-blue font16 ml20 current",style:{marginTop:2},children:(0,h.jsx)("span",{style:{color:"#666666",cursor:"pointer"},children:(0,h.jsx)("i",{className:"iconfont icon-xiazai6"})})})}),!(0,m.Rm)()||null!==(t=_.AssistantObject.normal)&&void 0!==t&&t.can_create?(0,h.jsx)("span",{className:"c-grey-666",style:{marginLeft:8,cursor:"pointer",marginTop:"3px"},onClick:T,children:(0,h.jsx)("i",{className:"iconfont icon-shezhi6 font16 mr5"})}):"",(0,h.jsxs)("div",{className:c,children:[(0,h.jsx)("div",{className:"c-blue font16 ml20 current",style:{marginTop:2},onClick:N,children:(0,h.jsx)(s.Z,{title:b,children:(0,h.jsx)("span",{className:"".concat(d,j?" iconfont icon-zhongmingmingmulu":" iconfont icon-xinjianmulu1")})})}),(0,h.jsx)(a.Z,{className:"ml10",dropdownRender:function(){return(0,h.jsx)(o.Z,{onClick:function(e){var t=e.key;B(t)},children:k.map((function(e){return(0,h.jsx)(o.Z.Item,{children:e.name},e.id)}))})},children:(0,h.jsxs)("span",{className:u,children:[(0,h.jsx)("span",{children:(0,h.jsx)("i",{className:"iconfont icon-tianjiadaohang"})}),(0,h.jsx)("span",{children:f||"新建作业"})]})})]})]})]})})}))},69125:function(e,t,n){"use strict";n.r(t),n.d(t,{CommonHomeworkContext:function(){return Fe},default:function(){return We}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),d=n.n(c),u=n(59301),p=n(76252),m=n(8591),h=n(53864),f=n(81228),g=n(43418),x=n(95237),v=n(43604),w=n(5112),y=n(60324),b=n(26415),j=n(24905),k=n(85699),C=n(76279),A=n(22961),_=n(37205),S=n.n(_),N=n(39647),B=n.n(N),T=n(51836),L=n(7472),P=n(37712),Z=["classroomList","dispatch","match","location","user","onCallback"],M=(0,p.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,o=e.classroomList,r=e.dispatch,s=(e.match,e.location,e.user),c=e.onCallback,h=(B()(e,Z),(0,p.useParams)()),f=(0,u.useState)(!1),x=d()(f,2),v=x[0],w=x[1],y=(0,u.useState)(!1),b=d()(y,2),j=b[0],k=b[1],_=(0,u.useRef)(null);(0,u.useEffect)((function(){if("删除"===o.actionTabs.key){if((0,A.j5)())return void k(!0);var e={hasNum:0,noHasNum:0};o.actionTabs.selectArrsAll.map((function(t){var n;t.author_login===(null===(n=s.userInfo)||void 0===n?void 0:n.login)?++e.hasNum:++e.noHasNum})),e.noHasNum>0?g.Z.info({title:"权限提示",className:"custom-modal-divider ",icon:null,content:(0,P.jsxs)("div",{children:["当前选中资源中:",(0,P.jsx)("span",{className:"c-blue",children:e.hasNum}),"个由您本人发布,",(0,P.jsx)("span",{className:"c-red",children:e.noHasNum})," ","个由其他老师发布。",(0,P.jsx)("br",{}),"课堂内只能删除本人发布的资源,请取消选中其他老师发布的资源。"]}),onOk:function(){N()}}):k(!0)}else k(!1)}),[o.actionTabs.key]);var N=function(){r({type:"classroomList/setActionTabs",payload:{}})};return(0,P.jsx)(g.Z,{centered:!0,title:"提示",open:j,okText:"确定",cancelText:"取消",confirmLoading:v,destroyOnClose:!0,onOk:a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=_.current)||void 0===t||!t.onVerify()){e.next=2;break}return e.abrupt("return");case 2:return w(!0),e.next=5,(0,T.ZP)("/api/courses/".concat(h.coursesId,"/homework_commons/multi_destroy.json"),{method:"post",body:{homework_ids:S()(o.actionTabs.selectArrs)}});case 5:n=e.sent,w(!1),0===n.status&&((0,C.L9)(["教学课堂","图文作业","删除"]),m.ZP.success("删除成功"),r({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),c&&c(),(0,A.GJ)()?r({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},o.actionTabs.params),{},{type:1})}):r({type:"classroomList/getClassroomCommonList",payload:l()({},o.actionTabs.params)}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:h.coursesId}}));case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){N()},children:null!=o&&null!==(t=o.actionTabs)&&void 0!==t&&t.status&&["未发布"].includes(null==o||null===(n=o.actionTabs)||void 0===n?void 0:n.status)?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("p",{children:"提交作品将全部被删除,不可恢复"}),(0,P.jsx)("p",{children:"是否确认删除?"})]}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("p",{style:{color:"#DD0000"},children:"删除作业则会清除学生所有的答题数据,且数据不可恢复,如确定删除,请输入下方验证码"}),(0,P.jsx)(L.Z,{ref:function(e){return _.current=e}})]})})})),E=n(61054),D=n(99351),O=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=(0,p.useParams)();return(0,P.jsx)(g.Z,{centered:!0,title:"提示",open:"设为公开"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.ZP)("/api/courses/".concat(o.coursesId,"/homework_commons/set_public.json"),{method:"post",body:{homework_ids:S()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,C.L9)(["教学课堂","图文作业","设为公开"]),m.ZP.success("操作成功"),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,A.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:1})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:(0,P.jsxs)("p",{children:["设为公开后,非课堂成员也可以访问查看",(0,P.jsx)("br",{}),"是否确认设为公开?"]})})})),R=["classroomList","dispatch","onCallback"],I=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=e.onCallback,r=(B()(e,R),(0,p.useParams)());return r.id=r.coursesId,(0,P.jsx)(g.Z,{centered:!0,title:"提示",open:"收藏"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.ZP)("/api/courses/".concat(r.id,"/homework_commons/add_to_homework_bank.json"),{method:"post",body:{all_check:0,homework_ids:S()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,C.L9)(["教学课堂","图文作业","收藏"]),m.ZP.success("收藏成功,请前往【个人主页/课堂资源】查看"),n({type:"classroomList/setActionTabs",payload:{}}),o&&o(),(0,A.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:1})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)}),n({type:"classroomList/setActionTabs",payload:{}}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:"确认收藏?"})})),H=n(85573),z=n.n(H),G=n(78241),F=n(98135),W=(n(99232),(0,p.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t,n,o=e.classroomList,r=(e.loading,e.dispatch),s=e.onCallback,c=(0,p.useParams)(),u=(0,p.useLocation)(),h=o.actionTabs,f=G.Z.useForm(),w=d()(f,1)[0];return(0,P.jsxs)(g.Z,{centered:!0,title:"新建目录",open:"新建目录"===o.actionTabs.key,okText:"确定",cancelText:"取消",bodyStyle:{minHeight:200},onOk:a()(i()().mark((function e(){var t,n,a,d,h,f,g,x;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=w.getFieldValue(),n="/api/course_modules/".concat(o.detailCommonHomeworksList.main_category_id,"/add_second_category.json"),e.next=4,(0,T.ZP)(n,{method:"post",body:l()({},t)});case 4:0===(a=e.sent).status&&(m.ZP.success("添加成功"),s&&s(),r({type:"classroomList/setActionTabs",payload:{}}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:c.coursesId}}),h=o.actionTabs.selectArrs.type,f=(null==a?void 0:a.category_id)||0,(g=null===(d=u.pathname)||void 0===d?void 0:d.split("/"))[4]=f,g[3]=h||g[3],x=null==g?void 0:g.join("/"),p.history.push(x));case 6:case"end":return e.stop()}}),e)}))),onCancel:function(){r({type:"classroomList/setActionTabs",payload:{}})},children:[(0,P.jsx)("p",{className:"tc",children:(0,P.jsx)("br",{})}),o.courseGroups.course_groups&&(0,P.jsx)(G.Z,{form:w,initialValues:z()({},"name",""),children:(0,P.jsx)(G.Z.Item,{name:"name",children:(0,P.jsxs)(x.Z,{className:"mt30",children:[(0,P.jsx)(v.Z,{children:"目录名称:"}),(0,P.jsx)(v.Z,{flex:"1",children:(0,P.jsx)(F.Z,{defaultValue:(null===(t=h.selectArrs)||void 0===t?void 0:t.category_name)||(null===(n=h.selectArrs)||void 0===n?void 0:n.name)})})]})})})]})}))),U=n(99313),J=n(3113),V=n(26724),K=n.n(V),q=n(71796),Y=n(28103),Q=n(81327),X=n(71418),$=n(11314),ee={shixunItemWrapper:"shixunItemWrapper___cgnhs",checkboxWrapper:"checkboxWrapper___Z7zZt",contentWrapper:"contentWrapper___TO4hm",title:"title___P8Su0",desc:"desc___j_4ZZ",info:"info___rg8e4",scrollWrap:"scrollWrap___EjY1R",loading:"loading___iNP0r"},te=n(30632),ne=q.Z.Paragraph,oe=function(e,t){var n=e.createShixunParams,o=(0,u.useState)("0"),r=d()(o,2),s=r[0],c=r[1],p=(0,u.useState)("hot"),m=d()(p,2),h=m[0],f=m[1],g=(0,u.useState)([]),w=d()(g,2),y=w[0],b=w[1],k=(0,u.useState)(!0),C=d()(k,2),A=C[0],_=C[1],N=(0,u.useState)(1),B=d()(N,2),T=B[0],L=B[1],Z=(0,u.useRef)(null),M=(0,u.useRef)(null),E=(0,u.useRef)({page:1,order:"hot",keyword:"",shixun_type:"jupyter",diff:"0",limit:10,mine:"",status:""}),D=function(){var e=a()(i()().mark((function e(t,n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:_(!0),clearTimeout(Z.current),Z.current=setTimeout(a()(i()().mark((function e(){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(t,"params2"),e.next=3,(0,$.he)(t);case 3:if((o=e.sent).status){e.next=15;break}if(!n){e.next=10;break}return 0===o.shixuns.length&&W(!1),b((function(e){return[].concat(S()(e),S()(o.shixuns))})),_(!1),e.abrupt("return");case 10:M.current.scrollTop=0,W(!0),L(T+1),_(!1),b(o.shixuns);case 15:case"end":return e.stop()}}),e)}))),1e3);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();(0,u.useImperativeHandle)(t,(function(){return{search:function(e){return D(l()(l()({},E.current),{},{keyword:e}))},changeKeyWord:function(e){return E.current.keyword=e}}})),(0,u.useEffect)((function(){D(E.current)}),[]);var O=(0,u.useState)([]),R=d()(O,2),I=R[0],H=R[1],z=(0,u.useState)(!0),G=d()(z,2),F=G[0],W=G[1];return(0,P.jsxs)("div",{className:"mt20",children:[(0,P.jsxs)(x.Z,{justify:"space-between",style:{marginBottom:8},children:[(0,P.jsx)(v.Z,{children:[{name:"全部",id:"0"},{name:"初级",id:"1"},{name:"中级",id:"2"},{name:"中高级",id:"3"},{name:"高级",id:"4"}].map((function(e,t){return(0,P.jsx)("span",{style:{border:"none",marginRight:20,color:s===e.id?"#3061D0":"rgba(0, 0, 0, 0.85)"},onClick:function(){c(e.id),E.current.diff=e.id,D(E.current)},children:e.name},t)}))}),(0,P.jsx)(v.Z,{children:(0,P.jsx)(te.tp,{dataSource:[{name:"最新",id:"new"},{name:"最热",id:"hot"},{name:"我的",id:"mine"}],value:h,onChange:function(e){f(e),E.current.order=e,"mine"===e?(E.current.mine="true",E.current.status="2"):(E.current.mine="",E.current.status=""),D(E.current)}})})]}),(0,P.jsxs)("div",{className:ee.scrollWrap,children:[(0,P.jsx)("div",{ref:M,style:{maxHeight:260,overflow:"hidden auto"},children:(0,P.jsx)(K(),{initialLoad:!1,pageStart:1,threshold:100,loadMore:function(e){D(l()(l()({},E.current),{},{page:e}),!0)},hasMore:F&&!A,useWindow:!1,children:(0,P.jsx)(j.Z.Group,{onChange:function(e){H(e),n.current.shixuns_info=e.map((function(e){return{shixun_id:e,is_copy:0,is_use:1}}))},value:I,children:y.map((function(e){var t=e||{},n=t.name,o=t.id,i=t.description,r=t.challenge_names,a=t.author_name,s=t.author_school_name,l=t.level,c=t.total_stu_num;return(0,P.jsxs)("div",{className:ee.shixunItemWrapper,children:[(0,P.jsxs)(x.Z,{align:"middle",className:ee.checkboxWrapper,gutter:14,style:{padding:"20px 20px 0 20px",background:"transparent",marginBottom:"0px"},children:[(0,P.jsx)(j.Z,{value:o,style:{paddingRight:"10px"}}),(0,P.jsx)("div",{className:ee.title,style:{fontWeight:"600"},children:n})]}),(0,P.jsxs)("div",{className:ee.contentWrapper,children:[(0,P.jsx)(ne,{ellipsis:{rows:2},className:ee.desc,style:{color:"#8e8888",fontSize:"12px",margin:"5px 0px"},children:i}),(0,P.jsx)(x.Z,{children:r.map((function(e,t){return(0,P.jsxs)("span",{className:ee.mission,style:{fontSize:"14px",fontWeight:"600",color:"#4f4f4b"},children:[(0,P.jsxs)("span",{style:{paddingRight:"5px"},children:["第",t+1,"关"]})," ",e]},t)}))}),(0,P.jsx)(Y.Z,{dashed:!0,style:{margin:"8px 0"}}),(0,P.jsx)(x.Z,{className:ee.info,children:(0,P.jsxs)(Q.Z,{children:[(0,P.jsx)("span",{style:{fontWeight:"600",color:"black"},children:a}),(0,P.jsx)("span",{children:"|"}),(0,P.jsx)("span",{children:s}),(0,P.jsx)("span",{children:"|"}),(0,P.jsxs)("span",{children:["难度系数 ",(0,P.jsx)("span",{style:{fontWeight:"400",color:"#000000"},children:l})]}),(0,P.jsx)("span",{children:"|"}),(0,P.jsxs)("span",{children:["学习人数  ",(0,P.jsx)("span",{style:{fontWeight:"600",color:"black"},children:c})]})]})})]})]},o)}))})},T)}),A&&(0,P.jsx)("div",{className:ee.loading,children:(0,P.jsx)(X.Z,{spinning:!0})})]})]})},ie=(0,u.forwardRef)(oe),re={flex_box_center:"flex_box_center___c_im6",flex_space_between:"flex_space_between___bYk0F",flex_box_vertical_center:"flex_box_vertical_center___umg07",flex_box_center_end:"flex_box_center_end___gNLdg",flex_box_column:"flex_box_column___i84TM",line1:"line1___xbMUH",form:"form___hugHb",small_search:"small_search___x0fZd",border:"border___rjNxX"},ae=n(22845),se=n(39324),le=n(6048),ce=(U.Z.TabPane,(0,p.connect)((function(e){var t=e.shixunHomeworks,n=e.classroomList;return{shixunHomeworks:t,loading:e.loading,classroomList:n}}))((function(e){var t,n=e.shixunHomeworks,o=(e.loading,e.classroomList),r=e.dispatch,s=e.refreshList,c=(0,p.useParams)(),m=((0,p.useLocation)(),G.Z.useForm()),h=d()(m,1)[0],f=(n.brankList,(0,u.useState)(!1)),w=d()(f,2),y=(w[0],w[1]),b=(0,u.useState)(!0),k=d()(b,2),_=k[0],N=k[1],B=(0,u.useState)(!1),T=d()(B,2),L=T[0],Z=T[1],M=(0,u.useState)("myself"),E=d()(M,2),D=E[0],O=E[1],R=(0,u.useState)([]),I=d()(R,2),H=I[0],W=I[1],U=(0,u.useState)(),V=d()(U,2),q=V[0],Y=V[1],Q=(0,u.useState)({page:0,limit:20,object_type:"normal",search:"",filter:"myself"}),X=d()(Q,2),$=X[0];X[1];(0,u.useEffect)((function(){"题库选用"===n.actionTabs.key&&te()}),[n.actionTabs.key]);var ee=[],te=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_){e.next=11;break}return y(!1),++$.page,e.next=5,r({type:"shixunHomeworks/getBrankList",payload:l()({},$)});case 5:n=e.sent,H=S()(H.concat(n.object_list)),Y(n.is_teacher),(null===(t=n.object_list)||void 0===t?void 0:t.length)<$.limit?N(!1):N(!0),W(S()(H)),""==n.object_list&&1===$.page&&y(!0);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ne=(0,u.useRef)({identifier:c.coursesId,shixuns_info:[],type:"normal",coursesId:c.coursesId,category_id:c.categoryId}),oe=function(){var e=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(!0),e.next=3,(0,se.aQ)(t);case 3:n=e.sent,Z(!1),n.status||(s(),r({type:"shixunHomeworks/setActionTabs",payload:{}}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ce=(0,u.useRef)(),de=o.detailCommonHomeworksList;return(0,P.jsxs)(g.Z,{className:re.border,centered:!0,title:(0,P.jsx)("span",{style:{fontWeight:"600"},children:"选用课堂资源"}),destroyOnClose:!0,open:"题库选用"===n.actionTabs.key,okText:"确定",cancelText:"取消",width:800,bodyStyle:{minHeight:200},okButtonProps:{loading:L},onOk:a()(i()().mark((function e(){var t,o,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("jupyter"!==D){e.next=3;break}return oe(ne.current),e.abrupt("return");case 3:return Z(!0),t=h.getFieldsValue(),e.next=7,r({type:"shixunHomeworks/saveBanks",payload:{course_id:c.coursesId,object_type:"normal",category:c.categoryId,bank_id:t.group_ids}});case 7:0===(null==(o=e.sent)?void 0:o.status)&&((0,C.L9)(["教学课堂","图文作业","选用课堂资源"]),r({type:"classroomList/getClassroomLeftMenus",payload:{id:c.coursesId}}),r({type:"shixunHomeworks/setActionTabs",payload:{}}),r({type:"classroomList/setActionTabs",payload:{key:"立即发布",type:1,selectArrs:o.object_ids,params:null===(a=n.actionTabs)||void 0===a?void 0:a.params,manage_all_group:null==de?void 0:de.manage_all_group}})),Z(!1);case 10:case"end":return e.stop()}}),e)}))),onCancel:function(){r({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,P.jsxs)(x.Z,{style:{borderBottom:"0.5px solid gainsboro",paddingBottom:"15px"},children:[(0,P.jsx)(v.Z,{span:12,children:[{name:"我的资源",id:"myself"},{name:"公共资源",id:"public"},{name:"jupyter实训",id:"jupyter"}].map((function(e,t){return(0,P.jsx)(J.ZP,{shape:"round",style:D===e.id?{background:"#e8efff",border:"none",color:"#6f9fe6"}:{background:"#f6f6f6",border:"none"},type:D===e.id?"ghost":"default",className:"mr10",onClick:function(){var t=a()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("jupyter"!==e.id){t.next=3;break}return O(e.id),t.abrupt("return");case 3:H=[],_=!0,$.page=0,$.search="",$.filter=e.id,te(),O(e.id);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),children:e.name},t)}))}),(0,P.jsx)(v.Z,{span:12,className:"tr",children:(0,P.jsx)(F.Z.Search,{className:re.small_search,placeholder:"输入标题进行搜索",onChange:function(e){var t;"jupyter"===D&&(null===(t=ce.current)||void 0===t||t.changeKeyWord(e.target.value))},suffix:(0,P.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(re.searchIcon)}),onSearch:function(e){var t;(e&&(0,le.tk)({name:e,copywriting:e,position:"HomeworkCommon"}),"jupyter"!==D)?(_=!0,$.search=e,$.page=0,H=[],te()):null===(t=ce.current)||void 0===t||t.search(e)},style:{width:260}})})]}),"myself"===D&&(0,P.jsxs)("p",{className:"tc mt10",children:["选用对象:你在课堂图文作业列表中已",(0,P.jsx)("span",{className:"c-orange",children:"收藏"}),"的图文作业"]}),"public"===D&&(0,P.jsx)("p",{className:"tc mt10",children:"选用对象:题库中已设置成公共属性的所有图文作业"}),"jupyter"===D?(0,P.jsx)(ie,{createShixunParams:ne,ref:ce}):(0,P.jsxs)("div",{style:{background:"#F4FAFF",maxHeight:200,overflow:"auto",padding:"20px 10px"},children:[!q&&"public"===D&&(0,P.jsxs)("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"},children:[(0,P.jsx)("span",{children:"通过职业认证的教师才能访问公共课程资源库"}),(0,P.jsx)("p",{style:{cursor:"pointer",background:"#ff6800",height:"30px",textAlign:"center",marginTop:"5px",padding:"5px 0px",color:"#fff",width:"80px"},onClick:function(){window.open("/account/certification")},children:"立即认证"})]}),(0,P.jsx)(K(),{initialLoad:!1,pageStart:0,threshold:700,loadMore:function(){N(!1),te()},hasMore:_,useWindow:!1,children:(0,P.jsxs)(G.Z,{form:h,initialValues:z()({},"group_ids",ee),className:re.form,onChange:function(e){var t=h.getFieldValue();ee=t},children:[""==H&&(0,P.jsx)(ae.Z,{styles:{margin:"10px auto"}}),(0,P.jsx)(G.Z.Item,{name:"group_ids",children:(0,P.jsx)(j.Z.Group,{style:{width:"100%",flexDirection:"column"},className:"font14",children:null===(t=H)||void 0===t?void 0:t.map((function(e,t){return(0,P.jsxs)(x.Z,{children:[(0,P.jsx)(v.Z,{flex:"2",children:(0,P.jsx)(j.Z,{onChange:function(e){},value:String(e.id),defaultChecked:!0,children:(0,P.jsx)("span",{className:["c-black",re.line1].join(" "),children:e.name})},t)}),(0,P.jsx)(v.Z,{flex:"1",className:"c-black",children:(0,P.jsx)("span",{className:re.line1,children:null==e?void 0:e.course_list_name})}),(0,P.jsx)(v.Z,{flex:"50px",className:"c-black",children:"public"===D&&(0,A.Ny)()||"myself"===D?(0,P.jsx)("span",{className:"c-blue current",onClick:function(){window.open("/users/innov/topics/".concat(e.id,"/personal/normal/edit"))},children:"编辑"}):null==e?void 0:e.username})]},t)}))})})]})})]})]})}))),de=n(50414),ue=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.styles,n=void 0===t?{}:t,o=e.onSelect,i=e.params,r=e.classroomList,a=(0,u.useState)(!1),s=d()(a,2),c=s[0],h=s[1],f=(0,u.useState)(""),x=d()(f,2),v=x[0],y=x[1];(0,u.useEffect)((function(){h(!1),y("")}),[]);return(0,P.jsxs)("section",{className:"tc animated fadeIn",style:l()(l()({},{color:"#999",margin:"200px auto"}),n),children:[(0,P.jsx)("img",{src:de.z3}),(0,P.jsx)("p",{className:"mt20 font14",children:"该课程无图文作业,可以下方按钮或右上方“新建作业”按钮创建作业"}),(0,P.jsxs)("div",{style:{marginTop:"30px"},children:[(0,P.jsx)(J.ZP,{onClick:function(){return h(!0)},type:"primary",style:{width:"128px",height:"40px",marginRight:"20px",borderRadius:"4px"},children:"新建作业"}),(0,P.jsx)(J.ZP,{onClick:function(){(0,C.xg)("https://www.educoder.net/forums/4910")},type:"primary",style:{width:"128px",height:"40px",marginLeft:"20px",borderRadius:"4px"},children:"新建作业指引"})]}),c&&(0,P.jsx)(g.Z,{open:!0,centered:!0,title:"新建作业",onCancel:function(){return h(!1)},onOk:function(){var e;!(0,A.Rm)()||null!=r&&null!==(e=r.AssistantObject)&&void 0!==e&&null!==(e=e.normal)&&void 0!==e&&e.can_create?("1"===v&&p.history.push("/classrooms/".concat(i.coursesId,"/common_homework/").concat(i.categoryId,"/add")),"2"===v&&(o(),h(!1),y(""))):m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:(0,P.jsxs)("div",{children:[(0,P.jsx)("div",{children:(0,P.jsx)(w.ZP,{value:"1",style:{marginTop:"15px"},checked:"1"===v,onClick:function(){return y("1")},children:"新建图文作业"})}),(0,P.jsx)("div",{children:(0,P.jsx)(w.ZP,{value:"2",style:{marginTop:"15px"},checked:"2"===v,onClick:function(){return y("2")},children:"选用资源"})})]})})]})})),pe=n(82746),me=n(45971),he=n(3502),fe=n(20834),ge=n(38854),xe="bottomControlContainer___t5WWD",ve="buttonWrap___HfupJ",we="moveCategory___MrmA6",ye=n(43501),be=function(e){var t,n=e.buttonDataSource,o=e.onClick,r=(0,u.useContext)(Fe),s=r.allSelect,l=r.setAllSelect,c=r.setSelectArrs,p=r.dataSource,h=r.selectArrs,f=r.useBatchStatus,g=r.dispatch,x=r.params,v=r.getData,w=r.detailLeftMenus,y=r.main_category_id,b=r.setSelectArrsAll,k=(0,u.useState)(!1),C=d()(k,2),_=C[0],N=C[1],B=(0,u.useState)(""),L=d()(B,2),Z=L[0],M=L[1];w.course_modules&&(t=w.course_modules.filter((function(e){return"common_homework"===e.type}))[0]);var E=(0,P.jsx)("div",{className:we,onMouseLeave:function(e){return N(!1)},children:(0,P.jsxs)(fe.Z,{onClick:function(){var e=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.item,n=t.key,t.keyPath,t.domEvent,""!=h){e.next=4;break}return m.ZP.error("请选择你要操作的任务"),e.abrupt("return",null);case 4:return e.next=6,(0,T.ZP)("/api/courses/".concat(x.id,"/homework_commons/move_to_category.json"),{method:"post",body:{homework_ids:h,new_category_id:n}});case 6:0===e.sent.status&&(m.ZP.success("操作成功"),f(!1),v(),g({type:"classroomList/getClassroomLeftMenus",payload:{id:x.coursesId}}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),style:{maxHeight:300,width:240,overflow:"auto"},children:[(0,P.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",children:(0,P.jsx)(F.Z,{onChange:function(e){M(e.target.value)}})}),t&&t.second_category.filter((function(e){return"未分配目录"!==e.category_name})).map((function(e,t){var n;if(!(""!==Z&&e.category_name.indexOf(Z)<0))return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(fe.Z.Item,{className:"multi-llipsis1e",children:e.category_name},e.category_id),null==e||null===(n=e.third_category)||void 0===n?void 0:n.map((function(e){return(0,P.jsx)(fe.Z.Item,{style:{marginLeft:20},className:"multi-llipsis1e",children:e.category_name},e.category_id)}))]})})),(0,P.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:function(e){e.preventDefault(),g({type:"classroomList/setActionTabs",payload:{key:"添加目录",params:x,selectArrs:{category_id:y,type:"common_homework"}}})},children:"新建子目录..."})]})});return(0,P.jsxs)("div",{className:xe,children:[(0,P.jsxs)("div",{children:[(0,P.jsx)("div",{children:(0,P.jsxs)(j.Z,{checked:s,onChange:function(e){l(e.target.checked),c(e.target.checked?p.map((function(e){return e.homework_id})):[]),e.target.checked?b(S()(p)):b([])},children:["全选本页(",h.length,")"]})}),(0,A.GJ)()&&n.map((function(e){return(0,P.jsx)("div",{children:(0,P.jsx)(J.ZP,{type:"primary",icon:e.icon,className:ve,onClick:function(){return o(e)},children:e.name})},e.key)})),(0,P.jsx)("div",{children:(0,P.jsx)(J.ZP,{type:"primary",onClick:function(){var e={courseId:x.id,container_type:"common_homework"};x.categoryId&&(e.category_id=x.categoryId),g({type:"classroomList/getAllTaskList",payload:e}),g({type:"classroomList/setActionTabs",payload:{key:"调整排序"}})},icon:(0,P.jsx)("i",{className:"iconfont icon-tiaozhengpaixu2"}),className:ve,children:"调整排序"})}),(0,A.GJ)()&&(0,P.jsx)("div",{children:(0,P.jsx)(ge.Z,{open:_,placement:"topLeft",dropdownRender:function(){return E},getPopupContainer:function(e){return e.parentNode},children:(0,P.jsx)("span",{className:"ant-dropdown-link",onMouseEnter:function(e){return N(!0)},children:(0,P.jsx)(J.ZP,{type:"primary",className:ve,icon:(0,P.jsx)("i",{className:"iconfont icon-yidongmulu"}),children:(0,P.jsxs)("span",{children:["移动到目录 ",(0,P.jsx)(ye.Z,{})]})})})})}),(0,A.GJ)()&&(0,P.jsx)("div",{children:(0,P.jsx)(J.ZP,{type:"primary",onClick:function(){return o({key:"collection",name:"收藏",icon:(0,P.jsx)("i",{className:"iconfont icon-shoucang1"})})},icon:(0,P.jsx)("i",{className:"iconfont icon-shoucang1"}),className:ve,children:"收藏"})})]}),(0,P.jsx)("div",{children:(0,P.jsx)(J.ZP,{type:"primary",ghost:!0,onClick:function(){c([]),f(!1)},children:"取消操作"})})]})},je=n(6848),ke=n(14491),Ce={listContainer:"listContainer___ZW4HW",info:"info___FuRA_",title:"title___nxXeU",left:"left___oBZYX",right:"right___TePEU",flexBox:"flexBox___kp4Xl",detail:"detail___x1A55",iconV:"iconV___HcC2c",shixunTag:"shixunTag___NZAsm",pingceTag:"pingceTag___Pqi7y",pingceTags:"pingceTags___JQb2l"},Ae=n(12500),_e=n(14630),Se=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n,o,r,s,c=e.dataSource,m=e.params,h=(e.classroomList,e.manageAllGroup),f=(0,u.useContext)(Fe),g=(f.batchStatus,f.selectArrs),x=f.setSelectArrs,v=f.selectArrsAll,w=f.setSelectArrsAll,y=f.dispatch,b=(0,p.useParams)(),k=(0,u.useState)(!1),_=d()(k,2),N=_[0],B=_[1],L=(0,u.useState)([]),Z=d()(L,2),M=Z[0],E=Z[1];b=l()(l()(l()({},m),b),{},{category:null===(t=b)||void 0===t?void 0:t.categoryId}),(0,u.useEffect)((function(){E([]),B(!1)}),[]);var D=[{title:"班级",dataIndex:"course_group_name",key:"course_group_name"},{title:"状态",dataIndex:"status",key:"status",width:80,filters:[{text:"未开始",value:"未开始"},{text:"提交中",value:"提交中"},{text:"补交中",value:"补交中"},{text:"已截止",value:"已截止"},{text:"未发布",value:"未发布"},{text:"匿评中",value:"匿评中"}],onFilter:function(e,t){return 0===t.status.indexOf(e)}},{title:"提交情况",dataIndex:"statistics",key:"statistics",width:80,render:function(e){var t,n;return"--"===e?e:(0,P.jsxs)("span",{children:[(0,P.jsx)("span",{children:null==e||null===(t=e.split("/"))||void 0===t?void 0:t[0]})," / ",(0,P.jsx)("span",{children:null==e||null===(n=e.split("/"))||void 0===n?void 0:n[1]})]})}},{title:"发布时间",dataIndex:"publish_time",key:"publish_time",sorter:!0,showSorterTooltip:!1,sortOrder:"publish_time"===b.sort_by?"desc"===b.sort_direction?"descend":"ascend":null},{title:"截止时间",dataIndex:"end_time",key:"end_time",sorter:!0,showSorterTooltip:!1,sortOrder:"end_time"===b.sort_by?"desc"===b.sort_direction?"descend":"ascend":null},{title:"补交时间",dataIndex:"late_time",key:"late_time",sorter:!0,showSorterTooltip:!1,sortOrder:"late_time"===b.sort_by?"desc"===b.sort_direction?"descend":"ascend":null},{title:"分班老师",dataIndex:"teachers",key:"teachers",width:150,ellipsis:{showTitle:!1},render:function(e){return"--"!==e&&e?(0,P.jsx)("span",{title:e,children:e}):"--"}}];function O(){return R.apply(this,arguments)}function R(){return(R=a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.ZP)("/api/homework_commons/".concat(c.homework_id,"/group_settings_statistics.json"),{method:"get",params:l()({},b)});case 2:t=e.sent,E(t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,P.jsxs)("div",{className:Ce.listContainer,onClick:function(e){e.stopPropagation(),(0,C.xg)("/classrooms/".concat(b.coursesId,"/common_homework/").concat(c.homework_id,"/detail"))},children:[(0,A.GJ)()&&(0,P.jsx)(j.Z,{onClick:function(e){e.stopPropagation()},style:{margin:"11px 0 0 10px"},checked:g.includes(c.homework_id),onChange:function(){return e=c.homework_id,void(g.includes(e)?(x(g.filter((function(t){return t!==e}))),w(v.filter((function(t){return t.homework_id!==e})))):(x([].concat(S()(g),[e])),w([].concat(S()(v),[c]))));var e}}),(0,P.jsxs)("div",{className:Ce.info,children:[(0,P.jsxs)("div",{className:Ce.title,children:[(0,P.jsxs)("div",{className:Ce.left,style:(0,A.dE)()?{paddingRight:(null==c?void 0:c.challenge_count)-(null==c?void 0:c.finished_challenge_count)?60:140}:{},children:[(0,A.GJ)()&&(0,P.jsx)(Ae.Z,{value:c.status,children:(0,P.jsx)(C.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:[c.status]})}),(0,A.dE)()&&(0,P.jsx)(C.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:c.status}),(0,P.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/classrooms/".concat(b.coursesId,"/common_homework/").concat(c.homework_id,"/detail").concat((0,A.dE)()?"?tabs=0":""),children:c.name})}),c.is_shixun&&(0,P.jsx)("span",{className:Ce.shixunTag,children:"实训"}),c.open_evaluate&&(0,P.jsx)(je.Z,{title:"该实践项目已启用评测功能,学生完成评测后系统将自动判分",children:(0,P.jsx)("span",{className:Ce.pingceTag,children:"评测"})}),(null==c?void 0:c.is_shixun)&&!c.open_evaluate&&(0,P.jsx)(je.Z,{title:"该实践项目未启用评测功能,学生提交作品后需教师手动评分",children:(0,P.jsx)("span",{className:Ce.pingceTags,children:"评测"})})]}),(0,P.jsxs)("div",{className:Ce.right,children:[(0,A.GJ)()&&"未发布"===c.status&&(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:[c],params:l()({},b),type:2,manage_all_group:h}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:(0,P.jsxs)("aside",{className:Ce.flexBox,children:[(0,P.jsx)("i",{className:"iconfont icon-yishezhifabushijian1"}),(0,P.jsx)("div",{children:"发布"})]})}),(0,A.dE)()&&(0,P.jsxs)("div",{className:Ce.actionIcon,children:[(null==c?void 0:c.challenge_count)-(null==c?void 0:c.finished_challenge_count)==0&&(0,P.jsx)("i",{className:"iconfont icon-yiwancheng1"}),!(null!==(n=c.status)&&void 0!==n&&n.includes("已截止"))&&!(null!==(o=c.status)&&void 0!==o&&o.includes("导入"))&&(0,P.jsxs)("aside",{onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log(c),t.stopPropagation(),c.is_jupyter||c.is_jupyter_lab?(0,_e.Z)({is_jupyter:c.is_jupyter,is_jupyter_lab:c.is_jupyter_lab,shixunId:c.shixun_identifier,homework_common_id:c.homework_id}):(0,C.xg)("/classrooms/".concat(b.coursesId,"/common_homework/").concat(c.homework_id,"/detail").concat((0,A.dE)()?"?tabs=1":""));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),className:Ce.flexBox,style:{marginRight:10},children:[(0,P.jsx)("i",{className:"iconfont icon-kaishixuexi font14"}),(0,P.jsx)("div",{children:"开始学习"})]}),((null===(r=c.status)||void 0===r?void 0:r.includes("已截止"))||(null===(s=c.status)||void 0===s?void 0:s.includes("导入")))&&(0,P.jsxs)("aside",{className:Ce.flexBox,style:{marginRight:10},children:[(0,P.jsx)("i",{className:"iconfont icon-chakanzuoye font14"}),(0,P.jsx)("div",{children:"查看作品"})]})]}),(0,A.GJ)()&&(0,P.jsx)(ge.Z,{placement:"bottomCenter",overlayClassName:Ce.dro,dropdownRender:function(){return(0,P.jsxs)(fe.Z,{children:["导入"!==c.status&&(0,P.jsx)(fe.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:[c],params:l()({},b),type:2,manage_all_group:h}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即发布"})},1),"导入"===c.status&&(0,P.jsx)(fe.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"补充成绩",name:null==c?void 0:c.name,id:null==c?void 0:c.homework_id,type:"normal"}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"补充成绩"})},23),"导入"!==c.status&&(0,P.jsx)(fe.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"立即截止",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:[c],params:l()({},b),type:2}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即截止"})},2),(0,P.jsx)(fe.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"删除",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:v,params:b,status:null==c?void 0:c.status}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即删除"})},22),"导入"!==c.status&&(0,P.jsx)(fe.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",onClick:function(e){e.stopPropagation()},to:"/classrooms/".concat(b.coursesId,"/common_homework/").concat(c.homework_id,"/detail?tabs=3"),children:"高级设置"})},6)]})},children:(0,P.jsxs)("aside",{onClick:function(e){return e.stopPropagation()},className:Ce.flexBox,style:{marginRight:6,cursor:"default"},children:[(0,P.jsx)("i",{className:"iconfont icon-gengduo4"}),(0,P.jsx)("div",{children:"更多"})]})})]})]}),(0,P.jsx)("div",{className:Ce.detail,children:(0,A.GJ)()&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("span",{className:"c-grey-333 mr20",children:c.author}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.uncommit_count&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"未做题"}),c.uncommit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.commit_count&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"已做题"}),c.commit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.compelete_count&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"已完成"}),c.compelete_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(c.status)&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"发布时间"}),c.publish_time]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(c.status)&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"截止时间"}),c.end_time]}),["已结束"].includes(c.status)&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"结束时间"}),c.status_time]}),!(null==c||!c.late_time)&&"--"!==(null==c?void 0:c.late_time)&&(0,P.jsxs)("span",{className:"c-grey-999",children:[(0,P.jsx)("span",{className:"mr5",children:"补交截止时间"}),null==c?void 0:c.late_time]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(c.status)&&(0,P.jsxs)("span",{className:Ce.iconV,onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),N||O(),B(!N);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,P.jsx)("i",{className:"iconfont icon-".concat(N?"shouqi":"xiala2")})," "]})]})}),(0,P.jsxs)("div",{className:Ce.content,children:[(0,A.dE)()&&(0,P.jsxs)("span",{className:Ce.infoStuIcon,children:[(0,P.jsx)("span",{className:"c-grey-333",children:c.author}),"已截止"===c.status&&!(null==c||!c.status_time)&&(0,P.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,P.jsx)("i",{className:"iconfont icon-shengyushijian font12 mr5"})," ",null==c?void 0:c.status_time]}),(0,P.jsxs)("span",{className:"ml20 c-grey-999",children:[(0,P.jsx)("i",{className:"iconfont icon-shijian1 font12 mr5"}),null==c?void 0:c.publish_time," 至 ",null==c?void 0:c.end_time," "]}),!(null==c||!c.late_time)&&"--"!==(null==c?void 0:c.late_time)&&(0,P.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,P.jsx)("span",{className:"mr5",children:"补交截止时间:"}),null==c?void 0:c.late_time]})]}),(0,A.GJ)()&&"未发布"!==c.status&&N&&M.length>5&&(0,P.jsx)(ke.Z,{scroll:{y:240},onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:M,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(b.sort_by=n.field),n.order||(b.sort_direction="asc"),"ascend"===n.order&&(b.sort_direction="asc"),"descend"===n.order&&(b.sort_direction="desc"),n.order||(b.sort_direction="asc"),O()},columns:D}),(0,A.GJ)()&&"未发布"!==c.status&&N&&M.length<6&&M.length>0&&(0,P.jsx)(ke.Z,{onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:M,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(b.sort_by=n.field),n.order||(b.sort_direction="asc"),"ascend"===n.order&&(b.sort_direction="asc"),"descend"===n.order&&(b.sort_direction="desc"),n.order||(b.sort_direction="asc"),O()},columns:D})]})]})]})})),Ne="bg___Ujhcv",Be=n(61132),Te="otherHomeworkWrap___cHqzM",Le="otherHomeworkContainer___k2TlQ",Pe="flex___N5oyJ",Ze="search___tWMHN",Me="content___wyNNo",Ee="listItem___mdegu",De="info___SwRt1",Oe="title___lilvJ",Re="describe___meICG",Ie="footer___irMwG",He=function(e){var t=e.courseId,n=e.type,o=e.onCancel,r=(0,p.useParams)(),s=(0,u.useState)({targerData:[],originData:[]}),c=d()(s,2),h=c[0],f=c[1],g=(0,u.useState)([]),x=d()(g,2),v=x[0],w=x[1],y=(0,u.useState)(!1),b=d()(y,2),k=b[0],A=b[1],_=function(){var e=a()(i()().mark((function e(){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(!0),e.next=3,(0,T.ZP)("/api/courses/".concat(t,"/homework_commons/impersonal_list.json"),{method:"get",params:{type:n}});case 3:o=e.sent,A(!1),f({targerData:o.homeworks,originData:o.homeworks});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,u.useEffect)((function(){_()}),[]);var N=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(!0),t={homework_common_ids:v},r.categoryId&&(t=l()(l()({},t),{},{category_id:r.categoryId})),e.next=5,(0,T.ZP)("/api/courses/".concat(r.coursesId,"/homework_commons/create_collaborators.json"),{method:"POST",body:t});case 5:(n=e.sent)&&n.homework_ids.length>0&&(m.ZP.success("提交成功"),o()),A(!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,P.jsx)("div",{className:"animated fadeInUp fast ".concat(Te),children:(0,P.jsxs)("div",{className:Le,children:[(0,P.jsx)("div",{className:Ze,children:(0,P.jsx)(F.Z.Search,{size:"middle",enterButton:"搜索",onSearch:function(e){var t=h.originData.filter((function(t){return t.name.indexOf(e)>-1}));f(l()(l()({},h),{},{targerData:t}))},placeholder:"请输入图文作业名称进行查询"})}),(0,P.jsx)("div",{className:Me,children:h.targerData.map((function(e){return(0,P.jsxs)("div",{className:"".concat(Ee," mb10"),children:[(0,P.jsx)(j.Z,{checked:v.includes(e.id),onChange:function(t){return function(e,t){e.target.checked?w([].concat(S()(v),[t])):w(v.filter((function(e){return e!==t})))}(t,e.id)}}),(0,P.jsxs)("div",{className:De,children:[(0,P.jsxs)("div",{className:"".concat(Pe," mb10"),style:{justifyContent:"space-between"},children:[(0,P.jsx)("div",{className:Oe,children:e.name}),(0,P.jsx)("div",{children:(0,P.jsx)(J.ZP,{type:"primary",ghost:!0,onClick:function(){return(0,C.xg)("/classrooms/".concat(r.coursesId,"/common_homework/").concat(e.id,"/detail"))},children:"查看作业"})})]}),(0,P.jsx)("div",{className:"mb20 font14 c-grey-999 ".concat(Re),children:e.description}),(0,P.jsxs)("div",{className:"font12",children:[(0,P.jsx)("span",{className:"c-grey-333 mr20",children:e.user.name}),(0,P.jsxs)("span",{className:"c-grey-999",children:["创建时间:",e.created_at]})]})]})]},e.id)}))}),(0,P.jsxs)("div",{className:Ie,children:[(0,P.jsx)(J.ZP,{type:"primary",ghost:!0,onClick:o,children:"取消"}),(0,P.jsx)(J.ZP,{type:"primary",disabled:0===v.length||k,onClick:function(){N()},children:"确定"})]})]})})},ze=n(48811),Ge=n(60614),Fe=(0,u.createContext)({selectArrs:[]}),We=(0,p.connect)((function(e){var t=e.classroomList,n=e.loading,o=e.user;return{classroomList:t,globalSetting:e.globalSetting,user:o,loading:n.effects}}))((function(e){var t,n,o=e.classroomList,r=e.loading,s=e.dispatch,c=e.user,_=(0,p.useSearchParams)(),S=d()(_,2),N=S[0],B=(S[1],(0,p.useLocation)()),L=(0,p.useParams)(),Z=(0,u.useState)(l()(l()({},L),{},{id:L.coursesId,limit:20})),R=d()(Z,2),H=R[0],z=R[1],G=(0,u.useState)(!1),F=d()(G,2),U=F[0],J=F[1],V=(0,u.useState)({ta_mode:1,final_mode:!1,st_proportion:0,ta_proportion:30,te_proportion:70,is_repeat_minus:!1,repeat_setting_score:"",repeat_limit:""}),K=d()(V,2),q=K[0],Y=K[1],Q=(0,u.useState)([]),X=d()(Q,2),$=X[0],ee=X[1],te=(0,u.useState)(!1),ne=d()(te,2),oe=ne[0],ie=ne[1],re=(0,u.useState)(!1),se=d()(re,2),le=se[0],de=se[1],fe=(0,u.useState)([]),ge=d()(fe,2),xe=ge[0],ve=ge[1],we=(0,u.useState)(!1),ye=d()(we,2),je=ye[0],ke=ye[1],Ce=(0,u.useState)("默认排序"),Ae=d()(Ce,2),_e=Ae[0],Te=Ae[1],Le=o.detailCommonHomeworksList,Pe=o.detailLeftMenus,Ze=o.detailTopBanner,Me=o.taskList;H.type=1,H.categoryId?H.category=H.categoryId:delete H.category,(0,u.useEffect)((function(){var e=N.get("tabs");e&&void 0!==e&&((0,A.GJ)()?H.status=e:H.order=e)}),[B.search]),(0,u.useEffect)((function(){"0"===N.get("tabs")&&(H.status="0",H.page=1)}),[N.get("tabs")]),(0,u.useEffect)((function(){var e,t;if(null!=c&&null!==(e=c.userInfo)&&void 0!==e&&e.login){var n,o=C.cX.getItem("".concat(null==c||null===(n=c.userInfo)||void 0===n?void 0:n.login).concat((0,A.GJ)()?"Teacher":"Student"),"CommonHomework");o&&(H.sort_by=null==o?void 0:o.type,H.sort_direction=null==o?void 0:o.direction,Te(null==o?void 0:o.name));var i=N.get("tabs"),r=void 0===L.categoryId?{}:{categoryId:L.categoryId,category:L.categoryId};i&&void 0!==i&&((0,A.GJ)()?H.status=i:H.order=i),Ee(r)}else if(null!=c&&null!==(t=c.userInfo)&&void 0!==t&&t.username){var a=N.get("tabs"),s=void 0===L.categoryId?{}:{categoryId:L.categoryId,category:L.categoryId};a&&void 0!==a&&((0,A.GJ)()?H.status=a:H.order=a),Ee(s)}}),[null==c||null===(t=c.userInfo)||void 0===t?void 0:t.login,null==B?void 0:B.pathname]),(0,u.useEffect)((function(){z(l()(l()({},H),L))}),[null==L?void 0:L.categoryId]),(0,u.useEffect)((function(){"清除选择数据"===o.actionTabs.key&&(ee([]),ve([])),"目录重命名成功"===o.actionTabs.key&&Ee()}),[o.actionTabs.key]),(0,u.useEffect)((function(){ee([])}),[Le]),(0,u.useEffect)((function(){de(!1)}),[H.categoryId]),(0,u.useEffect)((function(){s({type:"classroomList/getAssistantPermissions",payload:{course_id:H.id}})}),[]),(0,u.useEffect)((function(){Le&&Le.homeworks&&($.length===Le.homeworks.length&&$.length>0?ie(!0):$.length!==Le.homeworks.length&&ie(!1))}),[$]);var Ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ee([]),ve([]),(0,A.GJ)()?s({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()(l()({},H),e),{},{type:1})}):s({type:"classroomList/getClassroomCommonList",payload:l()(l()({},H),e)})},De=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.ZP)("/api/courses/".concat(H.coursesId,"/homework_commons/get_default_score_setting.json"),{method:"get",params:{homework_type:1}});case 2:null!=(t=e.sent)&&t.data&&(n=t.data.score_settings,Object.keys(n).map((function(e){e.indexOf("proportion")>-1&&(n[e]=(100*n[e]).toFixed(0))})),console.log(n),Y(l()({},n)));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Oe=function(){s({type:"shixunHomeworks/setActionTabs",payload:{key:"题库选用",params:H}})},Re=function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s({type:"classroomList/updateTaskPosition",payload:{category_id:H.categoryId,courseId:H.id,task_ids:t,container_type:"common_homework"}});case 2:Ee();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ie=(0,u.useMemo)((function(){var e=[];return Me.length>0&&(e=Me.map((function(e){return{user_name:e.user_name,task_name:e.task_name,task_id:e.task_id,category:e.category,status:e.status}}))),e}),[Me]),We=(0,P.jsxs)("div",{className:"mask-tips",children:["计算说明:",(0,P.jsx)("br",{}),"教师评分 * 其百分比 + 助教评分 * 其百分比 + 学生匿评平均分 * 其百分比 - (",(0,P.jsx)("br",{}),"迟交扣分 + 缺评扣分 * 缺评数 + 违规匿评扣分 * 违规匿评数 )",(0,P.jsx)("br",{}),(0,P.jsx)("br",{}),"注意",(0,P.jsx)("br",{}),"非零百分比的评分选项,若评分记录为空,则其百分比将自动平摊到其它非零",(0,P.jsx)("br",{}),"评分选项上。",(0,P.jsx)("br",{}),"例:教师评分40% + 助教评分35% + 学生匿评25%,学生A没有教师评分记",(0,P.jsx)("br",{}),"录,则其最终成绩按照助教评分55% + 学生匿评45%进行计算"]}),Ue=(0,P.jsxs)("div",{className:"mask-tips",children:["计算说明:",(0,P.jsx)("br",{}),"优先顺序排前的非零评分 * 100% -",(0,P.jsx)("br",{}),"( 迟交扣分 + 缺评扣分 * 缺评数 + 违规匿评扣分 * 违规匿评数 )",(0,P.jsx)("br",{}),"例:有教师评分则教师评分100%,否则教辅评分100%,依次类推"]});return(0,P.jsx)(Fe.Provider,{value:{params:H,batchStatus:le,selectArrs:$,setSelectArrs:ee,allSelect:oe,dataSource:Le.homeworks||[],detailLeftMenus:Pe,main_category_id:Le.main_category_id||"",selectArrsAll:xe,setAllSelect:ie,useBatchStatus:de,dispatch:s,getData:Ee,setSelectArrsAll:ve},children:(0,P.jsxs)("section",{children:[(0,P.jsxs)("aside",{className:Ne,children:[(0,P.jsx)(me.Z,{isLoading:r[(0,A.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"],tabDataSource:(0,A.GJ)()?[{name:"全部",id:0,total:Le.all_count||0},{name:"未发布",id:1,total:Le.unpublished_count||0},{name:"未开始",id:4,total:Le.not_start_count||0},{name:"进行中",id:2,total:Le.in_progress_count||0},{name:"已截止",id:3,total:Le.overed_count||0}]:[{name:"全部",id:0},{name:"提交中",id:1},{name:"补交中",id:2},{name:"匿评中",id:3},{name:"申诉中",id:4},{name:"已截止",id:5}],isAdmin:(0,A.GJ)(),dispatch:s,type:null==Le?void 0:Le.main_category_name,exportType:"normal",TooltipTitle:H.categoryId?"目录重命名":"新建子目录",categoryId:H.categoryId,dropdownMenu:[{name:"新建图文作业",id:"1"},{name:"选用资源",id:"2"},{name:"导入外部成绩",id:"3"}],showControlButton:(0,A.GJ)(),isShowRightControl:"未分配目录"!==(0,C.Oo)(null==Pe?void 0:Pe.course_modules,H.categoryId),onTabMenuClick:function(e){void 0!==e.id&&((0,A.GJ)()?H.status=e.id:H.order=e.id),de(!1),H.page=1,p.history.replace("".concat(B.pathname,"?tabs=").concat(e.id)),Ee(H)},defaultSelectedKeys:[N.get("tabs")?N.get("tabs"):"0"],onsetClick:function(){De(),J(!0)},onTooltipTitleClick:function(){s({type:"classroomList/setActionTabs",payload:{key:H.categoryId?"目录重命名":"添加目录",params:H,selectArrs:{category_name:null==Le?void 0:Le.category_name,category_id:(null==Le?void 0:Le.category_id)||(null==Le?void 0:Le.main_category_id)},cb:function(){Ee()}}})},onDropdownMenuClick:function(e){var t;!(0,A.Rm)()||null!==(t=o.AssistantObject.normal)&&void 0!==t&&t.can_create?"1"===e?p.history.push("/classrooms/".concat(H.coursesId,"/common_homework/").concat(H.categoryId,"/add")):"2"===e?Oe():"3"===e&&s({type:"classroomList/setActionTabs",payload:{key:"导入外部成绩",type:"normal"}}):m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),(0,P.jsx)(he.Z,{dataSource:Le.homeworks||[],isAdmin:(0,A.GJ)(),batchStatus:!0,SortMenuName:_e,setSortMenuName:Te,onSearch:function(e){H.search=e,H.page=1,Ee()},onSort:function(e){var t;H.sort_by=e.type,H.sort_direction=e.direction,H.page=1,C.cX.setItem("".concat(null==c||null===(t=c.userInfo)||void 0===t?void 0:t.login).concat((0,A.GJ)()?"Teacher":"Student"),e,"CommonHomework"),Ee(H)},onBatch:function(e){return de(e)}})]}),0===(null==Le?void 0:Le.all_count)&&(0,A.GJ)()?!r[(0,A.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,P.jsx)(ue,{params:H,dispatch:s,onSelect:Oe}):(null==Le?void 0:Le.homeworks)&&0===Le.homeworks.length&&!r[(0,A.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,P.jsx)(ae.Z,{}),(0,P.jsx)("aside",{className:"minH500 skt-loading relative pb40 mb30",children:!r[(0,A.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("aside",{className:"animated fadeIn",children:[null==Le||null===(n=Le.homeworks)||void 0===n?void 0:n.map((function(e,t){return(0,P.jsx)(Se,{dataSource:e,params:H,manageAllGroup:null==Le?void 0:Le.manage_all_group},t)})),!r[(0,A.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,P.jsx)("aside",{className:"tc mb50 mt30",children:(null==Le?void 0:Le.query_total_count)>10&&(0,P.jsx)(h.Z,{showSizeChanger:!0,onChange:function(e,t){H.page=e,H.limit=t,Ee()},defaultCurrent:1,current:H.page||1,pageSize:H.limit||20,total:Le.query_total_count})})]}),$.length>0&&(0,A.GJ)()&&(0,P.jsx)(f.Z,{offsetBottom:0,children:(0,P.jsx)(be,{buttonDataSource:[{key:"publish",name:"批量发布",icon:(0,P.jsx)("i",{className:"iconfont icon-fabu5"})},{key:"deadline",name:"批量截止",icon:(0,P.jsx)("i",{className:"iconfont icon-piliangjiezhi2"})},{key:"delete",name:"批量删除",icon:(0,P.jsx)("i",{className:"iconfont icon-piliangshanchu2"})},{key:"public",name:"设为公开",icon:(0,P.jsx)("i",{className:"iconfont icon-sheweigongkai2"})}].filter((function(e){return!(!(0,A.GJ)()&&!(0,A.Rm)())||"批量删除"!==e.name})).filter((function(e){return!!Ze.is_public||"设为公开"!==e.name})),onClick:function(e){var t,n;if(0===$.length)return m.ZP.error("请选择你要操作的任务"),!1;var i=e.name,r={key:i,selectArrs:$,selectArrsAll:xe,type:["publish","deadline"].includes(e.key)?1:"",params:H};switch(e.key){case"publish":if((0,A.Rm)()&&(null==o||null===(t=o.AssistantObject)||void 0===t||null===(t=t.normal)||void 0===t||!t.can_publish))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");i="立即发布";break;case"deadline":if((0,A.Rm)()&&(null==o||null===(n=o.AssistantObject)||void 0===n||null===(n=n.normal)||void 0===n||!n.can_stop))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");i="立即截止";break;case"delete":i="删除";break;case"collection":i="收藏"}s({type:"classroomList/setActionTabs",payload:l()(l()({},r),{},{key:i})})}})})]})}),(0,P.jsx)(M,{onCallback:function(){return de(!1)}}),(0,P.jsx)(ze.Z,{onOk:function(){Ee()}}),(0,P.jsx)(Ge.Z,{onOk:function(){}}),(0,P.jsx)(E.Z,{onCallback:function(){return de(!1)},courseEndTime:null==Le?void 0:Le.course_end_time}),(0,P.jsx)(D.Z,{courseEndTime:null==Le?void 0:Le.course_end_time,visible:"立即截止"===o.actionTabs.key,homeworkIds:o.actionTabs.selectArrs,courseId:L.coursesId,isBatch:2!==o.actionTabs.type,successCallback:function(){de(!1),Ee()}}),(0,P.jsx)(O,{}),(0,P.jsx)(I,{onCallback:function(){return de(!1)}}),(0,P.jsx)(W,{onCallback:function(){return de(!1)}}),(0,P.jsx)(ce,{refreshList:Ee}),(0,P.jsx)(pe.Z,{}),(0,P.jsx)(Be.Z,{visible:"调整排序"===o.actionTabs.key,callback:Re,data:Ie,onCancel:function(){s({type:"classroomList/setActionTabs",payload:{key:""}})}}),je&&(0,P.jsx)(He,{courseId:H.coursesId,type:"1",onCancel:function(){return ke(!1)}}),(0,P.jsx)(g.Z,{open:U,title:"默认评分设置",centered:!0,onCancel:function(){J(!1)},onOk:a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=JSON.parse(JSON.stringify(q)),Object.keys(t).map((function(e){e.indexOf("proportion")>-1&&(t[e]=t[e]/100)})),e.next=4,(0,T.ZP)("/api/courses/".concat(H.coursesId,"/homework_commons/set_default_score_setting.json"),{method:"post",body:{homework_type:1,score_settings:t}});case 4:0===e.sent.status&&(m.ZP.success("设置成功"),J(!1));case 6:case"end":return e.stop()}}),e)}))),width:800,children:(0,P.jsxs)("div",{children:[(0,P.jsx)(x.Z,{children:(0,P.jsx)(v.Z,{span:24,children:(0,P.jsx)(x.Z,{align:"middle",children:(0,P.jsx)(v.Z,{span:24,children:(0,P.jsx)("div",{className:"mt15",children:"该默认规则将被应用于你后续新建的图文作业,且不会影响你已创建的作业以及其他老师新建作业的评分规则。"})})})})}),(0,P.jsxs)(x.Z,{className:"mt25",children:[(0,P.jsx)(v.Z,{children:(0,P.jsx)("strong",{children:"助教评分"})}),(0,P.jsx)(v.Z,{span:24,className:"pl30 mt10"})]}),(0,P.jsx)(x.Z,{children:(0,P.jsxs)(w.ZP.Group,{value:null==q?void 0:q.ta_mode,onChange:function(e){q.ta_mode=e.target.value,Y(l()({},q))},children:[(0,P.jsxs)(w.ZP,{value:1,style:{marginTop:15},children:[(0,P.jsx)("strong",{children:"普通模式"}),(0,P.jsx)("span",{className:"c-grey-c",children:"(选中,则取各助教最终评分的平均分)"})]}),(0,P.jsx)("br",{}),(0,P.jsxs)(w.ZP,{value:0,style:{marginTop:15},children:[(0,P.jsx)("strong",{children:"复审模式"}),(0,P.jsx)("span",{className:"c-grey-c",children:"(选中,则只取最新的助教评分)"})]})]})}),(0,P.jsxs)(x.Z,{className:"mt25",children:[(0,P.jsx)(v.Z,{children:(0,P.jsx)("strong",{children:"最终成绩组成"})}),(0,P.jsx)(v.Z,{span:24,className:"pl30 mt10"})]}),(0,P.jsxs)(x.Z,{children:[(0,P.jsxs)(w.ZP.Group,{value:q.final_mode,onChange:function(e){q.final_mode=e.target.value,Y(l()({},q))},children:[(0,P.jsxs)(w.ZP,{value:!1,style:{marginTop:15},children:[(0,P.jsx)("strong",{children:"多项评分配比"}),(0,P.jsxs)("span",{className:"c-grey-c",children:["(选中,则按照比例计算最终成绩)",(0,P.jsx)(y.Z,{placement:"bottomLeft",content:We,trigger:"click",children:(0,P.jsx)(k.Z,{className:"ml20 current"})})]})]}),(0,P.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,P.jsx)(v.Z,{children:"教师评分:"}),(0,P.jsxs)(v.Z,{className:"ml5",children:[(0,P.jsx)(b.Z,{min:0,max:100,value:q.te_proportion,onChange:function(e){q.te_proportion=e,Y(Object.assign({},q))}}),(0,P.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,P.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,P.jsx)(v.Z,{children:"助教评分:"}),(0,P.jsxs)(v.Z,{className:"ml5",children:[(0,P.jsx)(b.Z,{min:0,max:100,value:q.ta_proportion,onChange:function(e){q.ta_proportion=e,Y(Object.assign({},q))}}),(0,P.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,P.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,P.jsx)(v.Z,{children:"学生匿评:"}),(0,P.jsxs)(v.Z,{className:"ml5",children:[(0,P.jsx)(b.Z,{min:0,max:100,value:q.st_proportion,onChange:function(e){q.st_proportion=e,Y(Object.assign({},q))}}),(0,P.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,P.jsx)("br",{}),(0,P.jsxs)(w.ZP,{value:!0,style:{marginTop:15},children:[(0,P.jsx)("strong",{children:"单项评分优先"}),(0,P.jsxs)("span",{className:"c-grey-c",children:["(选中,则按照优先顺序计算最终成绩)",(0,P.jsx)(y.Z,{placement:"bottomLeft",content:Ue,trigger:"click",children:(0,P.jsx)(k.Z,{className:"ml20 current"})})]})]})]}),(0,P.jsx)("br",{})]}),(0,P.jsx)("div",{style:{paddingLeft:77},children:"(教师评分 → 教辅评分 → 学生匿评评分)"}),(0,P.jsxs)(x.Z,{className:"mt25",children:[(0,P.jsx)(v.Z,{children:(0,P.jsxs)("strong",{children:[(0,P.jsx)(j.Z,{checked:q.is_repeat_minus,style:{fontSize:"16px"},onChange:function(e){q.is_repeat_minus=e.target.checked,Y(Object.assign({},q))},children:"文档查重扣分"})," ",(0,P.jsx)("span",{style:{fontSize:"14px"},className:"c-grey-c",children:"(修改后需要进行“文档查重”,扣分规则才生效)"})]})}),(0,P.jsx)(v.Z,{span:24,className:"pl30 mt10"})]}),(null==q?void 0:q.is_repeat_minus)&&(0,P.jsxs)("div",{style:{paddingLeft:35},children:[(0,P.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,P.jsx)(v.Z,{children:"查重扣分:"}),(0,P.jsx)(v.Z,{className:"ml5",children:(0,P.jsx)(b.Z,{min:0,max:100,value:q.repeat_setting_score,onChange:function(e){q.repeat_setting_score=e,Y(Object.assign({},q))}})})]}),(0,P.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,P.jsx)(v.Z,{children:"扣分阀值:"}),(0,P.jsxs)(v.Z,{className:"ml5",children:[(0,P.jsx)(b.Z,{min:0,max:100,value:q.repeat_limit,onChange:function(e){q.repeat_limit=e,Y(Object.assign({},q))}}),(0,P.jsx)("span",{className:"ml10",children:"%"})]})]})]})]})})]})})}))},60614:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),d=n.n(c),u=n(79800),p=n.n(u),m=n(59301),h=n(46651),f=n(78241),g=n(43418),x=n(8591),v=n(14491),w=n(76252),y=n(68339),b=n(32609),j=n(51836),k=n(99232),C=n.n(k),A=n(76279),_=n(37712),S=h.Z.Dragger;t.Z=(0,w.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,o=e.dispatch,r=e.onOk,s=((0,w.useParams)(),f.Z.useForm()),c=p()(s,1)[0],u=(0,m.useState)(),h=p()(u,2),k=h[0],N=h[1],B=(0,m.useState)(!1),T=p()(B,2),L=T[0],P=T[1],Z={height:100,onRemove:function(){N("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:(t=d()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,m.useEffect)((function(){c.setFieldsValue(a()(a()({},"publish_time",C()(C()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",C()(C()(new Date((0,A.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),[]),(0,_.jsx)(g.Z,{centered:!0,title:"补充成绩",open:"补充成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:L},onOk:d()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){c.resetFields(),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,_.jsxs)(f.Z,{form:c,onFinish:function(){var e=d()(l()().mark((function e(t){var i,a,s,d,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=k&&k.size){e.next=3;break}return x.ZP.info("请上传文件"),e.abrupt("return");case 3:return P(!0),(i=new FormData).append("type",n.actionTabs.type),i.append("file",k),a=window.location.href.indexOf("exercise")>-1?"/api/exercises/".concat(n.actionTabs.id,"/supplement_score.json"):"/api/homework_commons/".concat(n.actionTabs.id,"/supplement_score.json"),e.next=10,(0,j.ZP)(a,{method:"post",body:i},!0);case 10:s=e.sent,P(!1),0===(null==s?void 0:s.status)&&(r(),c.resetFields(),o({type:"classroomList/setActionTabs",payload:{}}),(null==s||null===(d=s.data)||void 0===d||null===(d=d.fail)||void 0===d?void 0:d.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,_.jsx)(v.Z,{pagination:!1,dataSource:null==s||null===(u=s.data)||void 0===u?void 0:u.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,A.FH)("",y.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,_.jsx)(f.Z.Item,{label:"作业名称",labelCol:{span:3},name:"name",children:n.actionTabs.name}),(0,_.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,_.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,_.jsxs)("div",{children:[(0,_.jsx)("a",{download:"模版.xlsx",className:b.Z.downloadbutton,href:y.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,_.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,_.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,_.jsxs)(S,i()(i()({},Z),{},{children:[(0,_.jsx)("a",{className:b.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,_.jsx)("br",{}),(0,_.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},48811:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),d=n.n(c),u=n(79800),p=n.n(u),m=n(59301),h=n(46651),f=n(78241),g=n(43418),x=n(8591),v=n(14491),w=n(98135),y=n(95237),b=n(43604),j=n(26415),k=n(84291),C=n(76252),A=n(97206),_=n(68339),S=n(32609),N=n(51836),B=n(1518),T=n(99232),L=n.n(T),P=n(76279),Z=n(37712),M=h.Z.Dragger;t.Z=(0,C.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,o=e.dispatch,r=e.onOk,s=(0,C.useParams)(),c=f.Z.useForm(),u=p()(c,1)[0],h=(0,m.useState)(),T=p()(h,2),E=T[0],D=T[1],O=(0,m.useState)(!1),R=p()(O,2),I=R[0],H=R[1],z={height:100,onRemove:function(){D("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:(t=d()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return D(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,m.useEffect)((function(){u.setFieldsValue(a()(a()({},"publish_time",L()(L()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",L()(L()(new Date((0,P.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),["导入外部成绩"===n.actionTabs.key]),(0,Z.jsx)(g.Z,{centered:!0,title:"导入外部成绩",open:"导入外部成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:I},onOk:d()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){u.resetFields(),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,Z.jsxs)(f.Z,{form:u,colon:!1,onFinish:function(){var e=d()(l()().mark((function e(t){var i,a,c,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=E&&E.size){e.next=3;break}return x.ZP.info("请上传文件"),e.abrupt("return");case 3:return H(!0),(i=new FormData).append("name",t.name),i.append("type",n.actionTabs.type),i.append("category_id",(null==s?void 0:s.categoryId)||null),"exercise"===n.actionTabs.type?(i.append("time",t.time||""),i.append("total_score",t.total_score)):i.append("description",t.description||""),i.append("publish_time",L()(t.publish_time).format("YYYY-MM-DD HH:mm")),i.append("end_time",L()(t.end_time).format("YYYY-MM-DD HH:mm")),i.append("file",E),e.next=14,(0,N.ZP)("/api/courses/".concat(s.coursesId,"/export_external_score_homework.json"),{method:"post",body:i},!0);case 14:a=e.sent,H(!1),0===(null==a?void 0:a.status)&&(u.resetFields(),o({type:"classroomList/setActionTabs",payload:{}}),r(),(null==a||null===(c=a.data)||void 0===c||null===(c=c.fail)||void 0===c?void 0:c.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,Z.jsx)(v.Z,{pagination:!1,dataSource:null==a||null===(d=a.data)||void 0===d?void 0:d.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,P.FH)("",_.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,Z.jsx)(f.Z.Item,{label:"exercise"!==n.actionTabs.type?"作业":"试卷名称",labelCol:{span:3},name:"name",rules:[{required:!0,message:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称")}],children:(0,Z.jsx)(w.Z,{showCount:!0,placeholder:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称"),maxLength:60})}),"exercise"!==n.actionTabs.type&&(0,Z.jsx)(f.Z.Item,{label:"作业描述",labelCol:{span:3},name:"description",children:(0,Z.jsx)(A.Z,{watch:!0})}),"exercise"===n.actionTabs.type&&(0,Z.jsxs)(y.Z,{style:{marginLeft:6},children:[(0,Z.jsx)(b.Z,{span:12,children:(0,Z.jsx)(f.Z.Item,{label:"试卷总分",name:"total_score",rules:[{required:!0,message:"请填写试卷总分"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"试卷总分必须为正数"}],children:(0,Z.jsx)(w.Z,{placeholder:"请输入试卷总分",style:{width:256},addonAfter:"分"})})}),(0,Z.jsx)(b.Z,{span:12,children:(0,Z.jsx)(f.Z.Item,{label:"答题时长",labelCol:{span:6},name:"time",children:(0,Z.jsx)(j.Z,{style:{width:"100%"},addonAfter:"分钟",placeholder:"请输入答题时长"})})})]}),(0,Z.jsxs)(y.Z,{style:{marginLeft:6,marginBottom:12},children:[(0,Z.jsx)(b.Z,{span:12,children:(0,Z.jsx)(f.Z.Item,{label:"开始时间",name:"publish_time",rules:[{required:!0,message:"请选择开始时间"}],children:(0,Z.jsx)(k.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:256},disabledDate:function(e){return(0,B.Q8)(e)},disabledTime:function(e){return(0,B.d0)(e)},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})}),(0,Z.jsx)(b.Z,{span:12,children:(0,Z.jsx)(f.Z.Item,{label:"结束时间",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"请选择结束时间"}],children:(0,Z.jsx)(k.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:function(e){return(0,B.Q8)(e,"",u.getFieldValue("publish_time"))},disabledTime:function(e){return(0,B.d0)(e,u.getFieldValue("publish_time"))},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})})]}),(0,Z.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,Z.jsxs)("div",{children:[(0,Z.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,Z.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,Z.jsxs)("div",{children:[(0,Z.jsx)("a",{download:"模版.xlsx",className:S.Z.downloadbutton,href:_.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,Z.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,Z.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,Z.jsxs)(M,i()(i()({},z),{},{children:[(0,Z.jsx)("a",{className:S.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,Z.jsx)("br",{}),(0,Z.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},61132:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),d=n.n(c),u=n(59301),p=n(43418),m=n(56511),h=n(95237),f=n(6848),g="wrap___KDoq2",x="tip___WEJuX",v="listWrap___IJDX4",w="li___r5con",y="nameWrap___PUyEz",b="name___xuUMY",j="tag___l5CW2",k=n(89831),C=n(76252),A=n(37712),_=function(e){var t,n,o=e.type,r=void 0===o?1:o,s=e.data,c=e.visible,_=e.callback,S=e.onCancel,N=(0,u.useState)([]),B=d()(N,2),T=B[0],L=B[1],P=(0,C.useSelector)((function(e){return e.loading}));(0,u.useEffect)((function(){L(s)}),[JSON.stringify(s)]);var Z=function(e){var t={};if(1===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"未开始":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"提交中":{background:"rgba(0,177,135,0.2)",color:"#00B187"},"已截止":{background:"rgba(229,51,51,0.2)",color:"#E53333"}}[e]}if(2===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"预发布":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"已发布":{background:"rgba(0,177,135,0.2)",color:"#00B187"}}[e]}return(0,A.jsx)("div",{className:j,style:l()({},t),children:e})},M=function(){var e=a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:_(T.map((function(e){return e.task_id})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,A.jsx)(p.Z,{centered:!0,destroyOnClose:!0,open:c,onCancel:S,onOk:M,confirmLoading:null==P||null===(t=P.effects)||void 0===t?void 0:t["classroomList/updateTaskPosition"],okText:"保存",title:"调整排序",width:850,children:(0,A.jsxs)("div",{className:g,children:[(0,A.jsxs)("div",{className:x,children:[(0,A.jsx)("i",{className:"iconfont icon-tishi9 font14 mr10"}),(0,A.jsx)("span",{children:"提示:请在列表中长按鼠标左键,进行拖放排序。完成排序后请点击“保存”"})]}),(0,A.jsx)(m.Z,{loading:null==P||null===(n=P.effects)||void 0===n?void 0:n["classroomList/getAllTaskList"],active:!0,className:"mt20",paragraph:{rows:5},children:(0,A.jsx)(k.Z5,{onDragEnd:function(e){return function(e,t){if(e.destination){var n=function(e,t,n){var o=Array.from(e),i=o.splice(t,1),r=d()(i,1)[0];return o.splice(n,0,r),o}(t,e.source.index,e.destination.index);L(n)}}(e,T)},children:(0,A.jsx)(k.bK,{droppableId:"droppable",children:function(e,t){return(0,A.jsxs)("div",l()(l()({ref:e.innerRef},e.droppableProps),{},{className:v,children:[T.map((function(e,t){return(0,A.jsx)(k._l,{draggableId:e.task_id.toString(),index:t,children:function(t,n){return(0,A.jsxs)("div",l()(l()(l()({ref:t.innerRef},t.draggableProps),t.dragHandleProps),{},{className:w,children:[(0,A.jsxs)(h.Z,{align:"middle",children:[(0,A.jsx)("div",{className:y,children:(0,A.jsx)(f.Z,{title:null==e?void 0:e.task_name,children:(0,A.jsx)("div",{className:b,children:null==e?void 0:e.task_name})})}),Z(null==e?void 0:e.status)]}),(0,A.jsx)(h.Z,{align:"middle",className:"font12 mt10",children:(0,A.jsxs)("span",{className:"mr30 c-grey-666",children:["管理员",(0,A.jsx)("span",{className:"ml5 c-black",children:(null==e?void 0:e.user_name)||"--"})]})})]}))}},e.task_id)})),e.placeholder]}))}})})})]})})}},57672:function(e,t,n){"use strict";n.d(t,{$J:function(){return l},JZ:function(){return d},bN:function(){return m},jP:function(){return p},rO:function(){return c}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(51836);function l(e){return(0,s.U2)("libraries/".concat(e,".json"))}function c(){return(0,s.U2)("library_tags.json")}function d(e){return u.apply(this,arguments)}function u(){return(u=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,s.v_)("libraries.json",e)}function m(e,t){return(0,s.gz)("libraries/".concat(e,".json"),t)}},32609:function(e,t){"use strict";t.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},77578:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});const o=e=>e?"function"==typeof e?e():e:null},27666:function(e,t,n){"use strict";var o=n(43527),i=n(79640);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},r=function(){if(null==t){for(var e=arguments.length,o=new Array(e),r=0;r{i.Z.cancel(t),t=null},r}},81228:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var o=n(40419),i=n(38467),r=n(46840),a=n(60317),s=n(59301),l=n(92310),c=n.n(l),d=n(28647),u=n(54798),p=n(27666),m=n(36355),h=n(83116),f=n(37613);const g=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var x=(0,h.Z)("Affix",(e=>{const t=(0,f.TS)(e,{zIndexPopup:e.zIndexBase+10});return[g(t)]}));function v(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function w(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function y(e,t,n){if(void 0!==n&&t.bottom{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:o}=e.state;o!==n&&(b.forEach((t=>{null==o||o.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),o=null==n?void 0:n();b.forEach((n=>{null==o||o.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:o}=e.props,i=e.getTargetFunc();if(t!==k.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!i)return;const r=e.getOffsetTop(),a=e.getOffsetBottom(),s=i();if(s){const t={status:k.None},i=v(e.placeholderNodeRef.current);if(0===i.top&&0===i.left&&0===i.width&&0===i.height)return;const l=v(s),c=w(i,l,r),d=y(i,l,a);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}):void 0!==d&&(t.affixStyle={position:"fixed",bottom:d,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}),t.lastAffix=!!t.affixStyle,o&&n!==t.lastAffix&&o(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:k.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,p.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,p.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const o=e.getOffsetTop(),i=e.getOffsetBottom(),r=t();if(r&&e.placeholderNodeRef.current){const t=v(r),a=v(e.placeholderNodeRef.current),s=w(a,t,o),l=y(a,t,i);if(void 0!==s&&n.top===s||void 0!==l&&n.bottom===l)return}}e.prepareMeasure()})),e}return(0,i.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:j}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:o,children:i}=this.props,r=c()(e&&o,{[n]:!!e});let a=(0,u.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return s.createElement(d.Z,{onResize:this.updatePosition},s.createElement("div",Object.assign({},a,{ref:this.placeholderNodeRef}),e&&s.createElement("div",{style:t,"aria-hidden":"true"}),s.createElement("div",{className:r,ref:this.fixedNodeRef,style:e},s.createElement(d.Z,{onResize:this.updatePosition},i))))}}]),n}(s.Component);C.contextType=m.E_;var A=(0,s.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:o}=e,{getPrefixCls:i}=(0,s.useContext)(m.E_),r=i("affix",n),[a,l]=x(r),d=Object.assign(Object.assign({},e),{affixPrefixCls:r,rootClassName:c()(o,l)});return a(s.createElement(C,Object.assign({},d,{ref:t})))}))},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var o=n(92310),i=n.n(o),r=n(59301),a=n(36355),s=n(17313),l=n(83116),c=n(37613);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:i,textPaddingInline:r,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},(0,s.Wf)(e)),{borderBlockStart:`${i}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:r},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var u=(0,l.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n,divider:o}=r.useContext(a.E_),{prefixCls:s,type:l="horizontal",orientation:c="center",orientationMargin:d,className:m,rootClassName:h,children:f,dashed:g,plain:x,style:v}=e,w=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),y=t("divider",s),[b,j]=u(y),k=c.length>0?`-${c}`:c,C=!!f,A="left"===c&&null!=d,_="right"===c&&null!=d,S=i()(y,null==o?void 0:o.className,j,`${y}-${l}`,{[`${y}-with-text`]:C,[`${y}-with-text${k}`]:C,[`${y}-dashed`]:!!g,[`${y}-plain`]:!!x,[`${y}-rtl`]:"rtl"===n,[`${y}-no-default-orientation-margin-left`]:A,[`${y}-no-default-orientation-margin-right`]:_},m,h),N=r.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),B=Object.assign(Object.assign({},A&&{marginLeft:N}),_&&{marginRight:N});return b(r.createElement("div",Object.assign({className:S,style:Object.assign(Object.assign({},null==o?void 0:o.style),v)},w,{role:"separator"}),f&&"vertical"!==l&&r.createElement("span",{className:`${y}-inner-text`,style:B},f)))}},39722:function(e,t,n){"use strict";n.d(t,{t5:function(){return u}});var o=n(92310),i=n.n(o),r=n(55477),a=n(59301),s=n(36355),l=n(77578),c=n(17356),d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i{const{hashId:t,prefixCls:n,className:o,style:s,placement:c="top",title:d,content:u,children:p}=e;return a.createElement("div",{className:i()(t,n,`${n}-pure`,`${n}-placement-${c}`,o),style:s},a.createElement("div",{className:`${n}-arrow`}),a.createElement(r.G,Object.assign({},e,{className:t,prefixCls:n}),p||((e,t,n)=>{if(t||n)return a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${e}-title`},(0,l.Z)(t)),a.createElement("div",{className:`${e}-inner-content`},(0,l.Z)(n)))})(n,d,u)))};t.ZP=e=>{const{prefixCls:t}=e,n=d(e,["prefixCls"]),{getPrefixCls:o}=a.useContext(s.E_),i=o("popover",t),[r,l]=(0,c.Z)(i);return r(a.createElement(u,Object.assign({},n,{prefixCls:i,hashId:l})))}},60324:function(e,t,n){"use strict";var o=n(92310),i=n.n(o),r=n(59301),a=n(77578),s=n(62892),l=n(36355),c=n(6848),d=n(39722),u=n(17356),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i{let{title:t,content:n,prefixCls:o}=e;return r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${o}-title`},(0,a.Z)(t)),r.createElement("div",{className:`${o}-inner-content`},(0,a.Z)(n)))},h=r.forwardRef(((e,t)=>{const{prefixCls:n,title:o,content:a,overlayClassName:d,placement:h="top",trigger:f="hover",mouseEnterDelay:g=.1,mouseLeaveDelay:x=.1,overlayStyle:v={}}=e,w=p(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:y}=r.useContext(l.E_),b=y("popover",n),[j,k]=(0,u.Z)(b),C=y(),A=i()(d,k);return j(r.createElement(c.Z,Object.assign({placement:h,trigger:f,mouseEnterDelay:g,mouseLeaveDelay:x,overlayStyle:v},w,{prefixCls:b,overlayClassName:A,ref:t,overlay:o||a?r.createElement(m,{prefixCls:b,title:o,content:a}):null,transitionName:(0,s.m)(C,"zoom-big",w.transitionName),"data-popover-inject":!0})))}));h._InternalPanelDoNotUseOrYouWillBeFired=d.ZP,t.Z=h},17356:function(e,t,n){"use strict";var o=n(17313),i=n(29878),r=n(19447),a=n(33166),s=n(83116),l=n(37613);const c=e=>{const{componentCls:t,popoverColor:n,minWidth:i,fontWeightStrong:a,popoverPadding:s,boxShadowSecondary:l,colorTextHeading:c,borderRadiusLG:d,zIndexPopup:u,marginXS:p,colorBgElevated:m,popoverBg:h}=e;return[{[t]:Object.assign(Object.assign({},(0,o.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":m,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:d,boxShadow:l,padding:s},[`${t}-title`]:{minWidth:i,marginBottom:p,color:c,fontWeight:a},[`${t}-inner-content`]:{color:n}})},(0,r.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},d=e=>{const{componentCls:t}=e;return{[t]:a.i.map((n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}},u=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:i,paddingSM:r,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,d=a-Math.round(s*l);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d/2}px ${c}px ${d/2-n}px`,borderBottom:`${n}px ${o} ${i}`},[`${t}-inner-content`]:{padding:`${r}px ${c}px`}}}};t.Z=(0,s.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,r=(0,l.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[c(r),d(r),o&&u(r),(0,i._y)(r,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},51581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var d=[n];return i&&(s?a?d.unshift(s):d.push(s):this.defaultLoader&&(a?d.unshift(this.defaultLoader):d.push(this.defaultLoader))),r.default.createElement(o,c,d)}}]),t}(i.Component);l.propTypes={children:a.default.node.isRequired,element:a.default.node,hasMore:a.default.bool,initialLoad:a.default.bool,isReverse:a.default.bool,loader:a.default.node,loadMore:a.default.func.isRequired,pageStart:a.default.number,ref:a.default.func,getScrollParent:a.default.func,threshold:a.default.number,useCapture:a.default.bool,useWindow:a.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},26724:function(e,t,n){e.exports=n(51581)},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwh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kChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__Exercise__Answer__index.async.js b/p__Classrooms__Lists__Exercise__Answer__index.async.js index 7bb8823039..20f1fd6234 100644 --- a/p__Classrooms__Lists__Exercise__Answer__index.async.js +++ b/p__Classrooms__Lists__Exercise__Answer__index.async.js @@ -1 +1 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[14105,79817,4977],{88289:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var i=t(4751),r=t(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},s=t(68475),a=function(e,n){return r.createElement(s.Z,(0,i.Z)({},e,{ref:n,icon:o}))};var l=r.forwardRef(a)},84462:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},n="5.0",t={},i=null,r=!1,o=!1,s=null,a=!1,l=null,c=null,u=0;u4?parseFloat(e):5};function b(){try{return window.self!==window.top}catch(e){return!0}}function j(){return(!t.hasOwnProperty("screenshotGenerator")||!t.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,n){c=e,M(e,n)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,n){var t=parseFloat(e);NaN!==t&&t<5?console.log("The GeoGebra HTML5 codebase version "+t+" is deprecated. Using version latest instead."):(l=e,q(e,n))},e.getHTML5CodebaseVersion=function(){return h},e.getParameters=function(){return t},e.setFontsCSSURL=function(e){w=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function n(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,r="auto",o=t.id,s=!1,l=0;l=5)return!0;var n=e.getAppletObject();return!(!n||"function"!=typeof n.recalculateEnvironments)&&(n.recalculateEnvironments(),!0)},e.startAnimation=function(){var n=e.getAppletObject();return!(!n||"function"!=typeof n.startAnimation)&&(n.startAnimation(),!0)},e.stopAnimation=function(){var n=e.getAppletObject();return!(!n||"function"!=typeof n.stopAnimation)&&(n.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==t.id?t.id:"ggbApplet";return window[e]},e.resize=function(){};var N=function(e){return e&&"false"!==e},B=function(n,t,i){y(h)<=4.2&&(i=!0);var r=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==h||ggbHTML5LoadedCodebaseIsWebSimple&&!g)&&(r=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var o=document.createElement("div");o.classList.add("appletParameters","notranslate");var s=t.width,a=t.height;if(t.disableAutoScale=void 0===t.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():t.disableAutoScale,void 0!==t.width)if(y(h)<=4.4)N(t.showToolBar)&&(t.height-=7),N(t.showAlgebraInput)&&(t.height-=37),t.width<605&&N(t.showToolBar)&&(t.width=605,s=605);else{var u=100;(N(t.showToolBar)||N(t.showMenuBar))&&(t.hasOwnProperty("customToolBar")&&(t.customToolbar=t.customToolBar),u=N(t.showMenuBar)?245:155),s=5?(t.appletOnLoad=function(e){var t=n.querySelector(".ggb_preview");t&&t.parentNode.removeChild(t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(x),window.GGBT_wsf_view&&$(window).trigger("resize"),f(e)},_||x.appendChild(b)):o.appendChild(b),x.appendChild(o),_||n.appendChild(x),setTimeout((function(){e.resize()}),1)}function j(e,n){n&&"function"==typeof n.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,n.appletOnLoad):renderGGBElement(e),R("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",n)}function k(e,n){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:n}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){j(e.article,e.params)})),html5AppletsToProcess=null)},y(h)<5&&(e.className+=" geogebraweb")):j(e,n)}if(r){scriptLoadStarted=!0;for(var S=0;S0?(r.remove(),a.attr("id","fullscreencontent").show(),jQuery(o).append(a),window.dispatchEvent(new Event("resize"))):B(r,n,!1),window.GGBT_wsf_view.launchFullScreen(o)}else m=i,B(e,n,!1);if(!window.GGBT_wsf_view)for(s=0;se/4*3&&(a=e/4*3),l=a/5.8,s.setAttribute("src",_),s.setAttribute("width",a),s.setAttribute("height",l);var u=(e-a)/2,d=(n-l)/2;s.style.left=u+"px",s.style.top=d+"px",r.appendChild(s)}return r.appendChild(c),r},I=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},L=["web","webSimple","web3d","tablet","tablet3d","phone"],q=function(e,n){if(h=e,n)M(h,!0);else{var o,s,a=!r;if(a){var l=y(h);!isNaN(l)&&l<4.4&&(a=!1)}o="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=h.indexOf("//");for(var u in s=c>0?h:0===c?o+h:"https://www.geogebra.org/apps/5.2.814.0/",L)if(h.slice(-1*L[u].length)===L[u]||h.slice(-1*(L[u].length+1))===L[u]+"/")return void M(s,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!a||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||N(t.showToolBar)||N(t.showMenuBar)||N(t.showAlgebraInput)||N(t.enableRightClick)||t.appName&&"classic"!=t.appName?s+="web3d/":s+="webSimple/",M(s,!1)}},M=function(e,n){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===n&&(n=-1===e.indexOf("http")),f=n,v="web.nocache.js",g=!1;var t=p.split("/");t.length>1&&(n||"webSimple"!==t[t.length-2]?L.indexOf(t[t.length-2])>=0&&(v=t[t.length-2]+".nocache.js"):(v="webSimple.nocache.js",g=!0)),t=e.split("/"),"test"===(h=t[t.length-3]).substr(0,4)?h=h.substr(4,1)+"."+h.substr(5,1):"war"!==h.substr(0,3)&&"beta"!==h.substr(0,4)||(h="5.0");var i=parseFloat(h);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),q("5.0",n))}},R=function(e,n){window.console&&window.console.log&&(!n||void 0===n.showLogging||n.showLogging&&"false"!==n.showLogging)&&console.log(e)};function O(){var e=n;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),q(e,!1),null!==c&&M(c,f),a=!0}return void 0!==t.material_id?k(O):O(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function n(e,n){1!=n?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+n+","+n+")",e.style.webkitTransform="scale("+n+","+n+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function t(e,n,t,i,r){if(e.isScreenshoGenerator)return 1;var o,s=void 0!==i&&i,a=null!=e.noScaleMargin&&e.noScaleMargin,l=(o=e.autoHeight)&&"false"!==o,c=function(e,n,t,i,r,o){var s=null;if(null!=o&&""!=o)for(var a=e.parentNode;null!=a;){if((" "+a.className+" ").indexOf(" "+o+" ")>-1){s=a;break}a=a.parentNode}var l=0,c=0,u=0,d=0,p=0,f=0,m=0;if(s)l=s.offsetWidth,c=Math.max(i?s.offsetWidth:0,s.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=l):(l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var h=e.getBoundingClientRect();h.left>0&&h.left<=l&&(void 0===r||!r)&&("rtl"===document.dir?(p=l-h.width-h.left,f=u<=480?10:30):(f=h.left,p=u<=480?10:30),d=f+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,m=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,m=40))}return e&&((void 0===t||!t)&&n>0&&n+d1&&(s=!0)),n&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(s=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?o:(r=t(e,n,s,i,e.scaleContainerClass),!s||e.hasOwnProperty("scale")&&1!==o?Math.min(o,r):r)}function r(e){var n=Math.min(window.innerWidth,document.documentElement.clientWidth),t=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),r=(n-i.width)/2,o=(t-i.height)/2;o<0&&(o=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=r<40?"40px":r+"px",e.style.top=o+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=o<40?"40px":o+"px",e.style.left=r+"px")}return{responsiveResize:function(t,o){var s=t.querySelector(".appletParameters");if(s){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(o.id!==s.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(t)}if(s.parentElement&&/fullscreen/.test(s.parentElement.className))return;var a=i(o,t);e()&&s.setAttribute("data-param-scale",a);for(var l=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var n=c[e];return null==n?null:n},r=d,webModule.__errFn=e}function B(){function e(e){var n=e.lastIndexOf(rb);-1==n&&(n=e.length);var t=e.indexOf(sb);-1==t&&(t=e.length);var i=e.lastIndexOf(tb,Math.min(t,n));return i>=O?e.substring(O,i+P):W}var n,t=null!=(n=__gwt_getMetaProperty(wb))?n:W;return t==W&&(t=function(){for(var n=o.getElementsByTagName(_),t=O;tO?e[e.length-P].href:W}()),t==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(t=e(o.location.href)),t=function(n){if(n.match(/^\w+:\/\//));else{var t=o.createElement(ub);t.src=n+vb,n=e(t.src)}return n}(t),t}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function s(e){var n=o[e](),t=i[e];if(n in t)return n;var s=[];for(var a in t)s[t[a]]=a;throw r&&r(e,s,n),null}if(__gwt_isKnownPropertyValue=function(e,n){return n in i[e]},webModule.__getPropMap=function(){var e={};for(var n in i)i.hasOwnProperty(n)&&(e[n]=s(n));return e},webModule.__computePropValue=s,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var a=(e=Cb).indexOf(Db);-1!=a&&(t=parseInt(e.substring(a+P),$),e=e.substring(O,a))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var n=s[L].bindings;s[L].bindings=function(){for(var t=n?n():{},i=e[webModule.__softPermutationId],r=O;r0){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",t=[],i=0;i0&&(K(),H(1))}),[t]),(0,c.useEffect)((function(){if(0!==z){if(2===z)clearInterval(O);else{var e=0,n=setInterval((function(){B.includes(e)&&J(),e++}),1e3);D(n)}return function(){return clearInterval(O)}}}),[z]),(0,c.useImperativeHandle)(n,(function(){return{handlePhoto:J,handleTakePhoto:X}}));var V=function(){H(2)},K=function(){var e=t/i,n=[];function r(e,n){return parseInt(Math.floor(Math.random()*(n-e+1))+e)}new Array(i).fill(0).map((function(t,i){a?n.push(r(e*i,e*(i+1))):0==i?n.push(0):n.push(r(e*i,e*(i+1)))})),B=n,T([].concat(n)),console.log(n)},Y=function(){void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(e){var n=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return n?new Promise((function(t,i){n.call(navigator,e,t,i)})):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:640,height:480}}).then((function(e){Q.current=e,o&&o(2),Z(2),"srcObject"in j.current?j.current.srcObject=e:j.current.src=window.URL.createObjectURL(e),j.current.onloadedmetadata=function(e){j.current.play(),b&&b()},j.current.addEventListener("ended",(function(){console.log("播放结束"),V(),y&&d.ZP.error({content:"您已经关闭了摄像头,请在10秒钟内恢复摄像头,否则将推出考试",duration:10,key:9998})}),!1)})).catch((function(e){Z(1),o&&o(1),"Permission denied"===e.message||"NotAllowedError"===e.name?d.ZP.error("您已拒绝了获取摄像头"):d.ZP.error("摄像头获取失败,或您已拒绝了获取摄像头"),console.log("errname: "+e.name),console.log("err: "+e.message)}))},J=function(){try{k.current.width=j.current.videoWidth,k.current.height=j.current.videoHeight,k.current.getContext("2d").drawImage(j.current,0,0,k.current.width,k.current.height),q(k.current.toDataURL("image/png")),U(k.current.toDataURL("image/png")),ee(k.current.toDataURL("image/png"))}catch(e){}},X=function(){try{return k.current.width=j.current.videoWidth,k.current.height=j.current.videoHeight,k.current.getContext("2d").drawImage(j.current,0,0,k.current.width,k.current.height),k.current.toDataURL("image/png")}catch(e){}},Q=(0,c.useRef)(),$=function(){try{Q.current.getTracks().forEach((function(e){e.stop()})),j.current.srcObject=null}catch(e){}},ee=function(){var e=s()(r()().mark((function e(n){var t,i,o,s,a,l,c,u,d,h,g;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.ZP)("/api/buckets/get_upload_token.json",{method:"get"});case 2:(u=e.sent).data=JSON.parse((0,m.pe)(u.data)),d=(0,f.Z)(),h=new(v())({endpoint:null==u||null===(t=u.data)||void 0===t?void 0:t.end_point,region:null==u||null===(i=u.data)||void 0===i?void 0:i.region,accessKeyId:null==u||null===(o=u.data)||void 0===o?void 0:o.access_key_id,accessKeySecret:null==u||null===(s=u.data)||void 0===s?void 0:s.access_key_secret,bucket:null==u||null===(a=u.data)||void 0===a?void 0:a.bucket,stsToken:null==u||null===(l=u.data)||void 0===l?void 0:l.security_token}),g=w(n),h.multipartUpload("".concat(d,".png"),g,{timeout:1e4,partSize:10485760,callback:{url:null==u||null===(c=u.data)||void 0===c?void 0:c.callback_url,host:null==u?void 0:u.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&login="+S.login+"&container_id="+S.categoryId+"&container_type=Exercise"}}).then((function(e){console.log("result:",e)})).catch((function(e){console.log("err:",e)}));case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,_.jsx)(_.Fragment,{children:3!==P&&(0,_.jsxs)("aside",{className:g,id:"screenshot",children:[0===P&&(0,_.jsx)("span",{children:"正在开启摄像头..."}),1===P&&(0,_.jsx)("span",{children:"摄像头开启失败"}),2===P&&(0,_.jsxs)("div",{children:[(0,_.jsx)("video",{width:"288",ref:j,autoPlay:!0}),(0,_.jsx)("canvas",{style:{display:"none"},ref:k})]})]})})})),b=y},55357:function(e,n,t){"use strict";t.d(n,{y:function(){return r}});var i=t(59301),r=function(e){(0,i.useEffect)((function(){if(e){var n=function(e){"F12"===e.key&&(e.preventDefault(),console.log("F12被禁用"))},t=function(e){e.preventDefault()};return document.addEventListener("keydown",n),document.addEventListener("contextmenu",t),function(){document.removeEventListener("keydown",n),document.removeEventListener("contextmenu",t)}}}),[e])}},18719:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var i=t(7557),r=t.n(i),o=t(41498),s=t.n(o),a=t(79800),l=t.n(a),c=t(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",f=t(92310),m=t.n(f),h=t(71418),v=t(2859),g=t(51836),x=t(76279),_=t(37712),w=function(e){var n=e.data,t=e.className,i=e.fullWidth,o=e.style,a=void 0===o?{}:o,f=e.onClose,w=e.onOk,y=e.showFullTools,b=e.noAssociationId,j=(0,c.useRef)(null),k=(0,c.useRef)(null),S=(0,c.useState)(!1),C=l()(S,2),N=C[0],B=C[1],T=(0,c.useState)("正在加载中"),E=l()(T,2),A=E[0],P=E[1];(0,c.useEffect)((function(){null!=n&&n.visible?document.body.setAttribute("data-custom","y-hidden"):document.body.removeAttribute("data-custom"),null!=n&&n.src&&Z()}),[null==n?void 0:n.visible]);var Z=function(){var e=s()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B(!0),P("正在加载中"),e.next=4,(0,x.ZJ)(null==n?void 0:n.src);case 4:t=e.sent,j.current.src="",j.current.src=t,j.current.onload=function(){L()},B(!1),P("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=s()(r()().mark((function e(t){var i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B(!0),P("正在保存中"),e.next=4,(0,g.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:n.title,file:t.dataUrl}});case 4:if(null==(i=e.sent)||!i.id||b){e.next=12;break}return e.next=8,(0,g.ZP)("/api/attachments/".concat(n.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==i?void 0:i.id,settings:JSON.stringify(t.state)}});case 8:0===e.sent.status&&w(),e.next=13;break;case 12:null!=i&&i.id&&w(i);case 13:B(!1),P("");case 15:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),L=function(){k.current=new v.hP(j.current),k.current.addEventListener("render",I),k.current.addEventListener("beforeclose",f),y&&(k.current.availableMarkerTypes=k.current.ALL_MARKER_TYPES,k.current.uiStyleSettings.redoButtonVisible=!0,k.current.uiStyleSettings.notesButtonVisible=!0,k.current.uiStyleSettings.zoomButtonVisible=!0,k.current.uiStyleSettings.zoomOutButtonVisible=!0,k.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=k.current.uiStyleSettings,k.current.show(),null!=n&&n.snapshotData&&k.current.restoreState(n.snapshotData),setTimeout((function(){var e;(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var n=document.querySelector(e.name);n&&n.setAttribute("title",e.title)}))}),300)};return(0,_.jsx)(c.Fragment,{children:(null==n?void 0:n.visible)&&(0,_.jsxs)("div",{className:m()(u,t,i?p:""),style:a,children:[(0,_.jsx)(h.Z,{spinning:N,tip:A,style:{position:"absolute"}}),(0,_.jsx)("img",{className:d,ref:j})]})})}},99267:function(e,n,t){"use strict";var i=t(79800),r=t.n(i),o=t(59301),s=t(44270),a=(t(48136),t(23180)),l=t(43418),c=t(37712),u=(0,o.forwardRef)((function(e,n){var t=e.callback,i=e.width,u=e.onChange,d=e.disabled,p=e.readOnly,f=e.type,m=void 0===f?"":f,h=e.value,v=void 0===h?"":h,g=e.style,x=void 0===g?{}:g,_=(0,o.useRef)(),w=(0,o.useRef)(),y=(0,o.useState)(0),b=r()(y,2),j=b[0],k=b[1],S=(0,o.useState)(0),C=r()(S,2),N=C[0],B=C[1],T=(0,o.useState)(!1),E=r()(T,2),A=E[0],P=E[1],Z=function(){var e=document.createElement("div");e.innerHTML=_.current.getValue();var n=e.innerText;return t&&t(n),n};(0,o.useImperativeHandle)(n,(function(){return{getData:Z}}));var I=function(e,n,t,i){var r=document.body.clientHeight,o=document.body.clientWidth;return!(e<20&&t>e||e>o-20&&tn||n>r-20&&i0&&(null===(r=l.filter((function(e){return!e.answer_text})))||void 0===r?void 0:r.length)>0)){e.next=11;break}return f.ZP.info("填空项不能为空!"),e.abrupt("return");case 11:return c=a.code,l.length>0&&(null==l||l.map((function(e){c=e.multi_line?c.substring(0,c.indexOf("@▁▁@"))+e.answer_text+c.substring(c.indexOf("@▁▁@")+4):c.substring(0,c.indexOf("@▁@"))+e.answer_text+c.substring(c.indexOf("@▁@")+3)}))),e.next=15,(0,x.n4)(t,n||{code:v.Base64.encode(c),language:a.language,answers:null==l?void 0:l.map((function(e){return e.answer_text}))});case 15:return u=e.sent,e.abrupt("return",u);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e,n){return G.apply(this,arguments)}function G(){return(G=l()(s()().mark((function e(n,t){var i,r,o;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=j.userAnswer,r=v.Base64.decode(j.code),i.length>0&&(null==i||i.map((function(e){r=e.multi_line?r.substring(0,r.indexOf("@▁▁@"))+e.value+r.substring(r.indexOf("@▁▁@")+4):r.substring(0,r.indexOf("@▁@"))+e.value+r.substring(r.indexOf("@▁@")+3)}))),e.next=5,(0,x.n4)(t,n||{code:v.Base64.encode(r),language:j.language,answers:null==i?void 0:i.map((function(e){return e.value}))});case 5:return o=e.sent,e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function z(){return(new Date).getTime()}return(0,p.useEffect)((function(){(R||c)&&P(c||Z.id)}),[Z]),(0,p.useEffect)((function(){return function(){sessionStorage.removeItem("projectFill")}}),[]),(0,b.jsxs)("div",{children:[(0,b.jsx)(m.ZP,r()(r()({loading:N},n),{},{onClick:l()(s()().mark((function e(){var n,o,a,c,u,d,p,m,_,w,y,b,S,C;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("----",111),"提交代码"!==t){e.next=22;break}if(B(!0),!N){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,(0,g.ZP)("/api/problems/".concat(A,"/start.json"),{method:"get"});case 7:return n=e.sent,e.next=10,F(null,null==n?void 0:n.identifier);case 10:if(0!==(null==(o=e.sent)?void 0:o.status)){e.next=19;break}return a=function(){var e=l()(s()().mark((function e(){var t,i,r,o,l,u;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,x.rX)(null==n?void 0:n.identifier,"submit");case 2:if(i=e.sent,r=i.status,i.message,o=i.data,l=z(),u=l-c>1e4*(null==j||null===(t=j.userAnswer)||void 0===t?void 0:t.length),0===r||u||setTimeout(a,1e3),!u){e.next=13;break}return h.Z.error({centered:!0,okText:"知道啦",title:"调试代码超时",content:"请检查程序代码是否存在死循环"}),B(!1),e.abrupt("return");case 13:0===r&&(B(!1),M(o),2===o.status&&(B(!1),h.Z.error({centered:!0,okText:"知道啦",title:"调试代码超时"})));case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),c=z(),e.next=16,(0,x.bM)(null==n?void 0:n.identifier,{});case 16:a(),e.next=20;break;case 19:B(!1);case 20:return k&&k(!0),e.abrupt("return");case 22:return u=!0,e.next=25,i.validateFields().then((function(){u=!1}),(function(e){var n,t;e.errorFields[0].name.includes("standard_answers")?f.ZP.error("填空项答案不能为空"):f.ZP.error(e.errorFields[0].errors[0]),0===(null===(n=e.errorFields)||void 0===n?void 0:n.length)&&(u=!1),i.scrollToField(null==e||null===(t=e.errorFields)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.name,{behavior:"smooth",block:"center"}),u=!0}));case 25:if(!u){e.next=27;break}return e.abrupt("return");case 27:if(B(!0),!N){e.next=30;break}return e.abrupt("return");case 30:if(d="",p=i.getFieldsValue(),A){e.next=41;break}return e.next=35,(0,g.ZP)("/api/problems.json",{method:"post",body:r()(r()({},p),{},{hack:r()(r()({},null==p?void 0:p.hack),{},{sub_discipline_id:null==p||null===(m=p.hack)||void 0===m||null===(m=m.sub_discipline_id)||void 0===m?void 0:m[1],difficult:p.difficulty,item_banks_group_id:p.item_banks_group_id}),hack_codes:r()(r()({},p.hack_codes),{},{code:v.Base64.encode(p.hack_codes.code)}),hack_sets:[r()({},p.hack_sets)],is_blank:!0})});case 35:d=e.sent,A=null===(_=d)||void 0===_?void 0:_.identifier,sessionStorage.projectFill=A,P(A),e.next=44;break;case 41:return e.next=43,(0,g.ZP)("/api/problems/".concat(A,".json"),{method:"put",body:r()(r()({},p),{},{hack:r()(r()({},null==p?void 0:p.hack),{},{sub_discipline_id:null==p||null===(w=p.hack)||void 0===w||null===(w=w.sub_discipline_id)||void 0===w?void 0:w[1],difficult:p.difficulty,item_banks_group_id:p.item_banks_group_id}),hack_codes:r()(r()({},p.hack_codes),{},{code:v.Base64.encode(p.hack_codes.code)}),update_hack_sets:[r()({},p.hack_sets)],is_blank:!0})});case 43:d=e.sent;case 44:return e.next=46,(0,g.ZP)("/api/problems/".concat(A,"/start.json"),{method:"get"});case 46:return y=e.sent,e.next=49,O(null,null==y?void 0:y.identifier);case 49:if(0!==(null==(b=e.sent)?void 0:b.status)){e.next=58;break}return S=function(){var e=l()(s()().mark((function e(){var n,t,i,r,o,a;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,x.rX)(null==y?void 0:y.identifier,"submit");case 2:if(t=e.sent,i=t.status,t.message,r=t.data,o=z(),a=o-C>1e3*(p.hack.time_limit+3)*(null==p||null===(n=p.standard_answers)||void 0===n?void 0:n.length),0===i||a||setTimeout(S,1e3),!a){e.next=13;break}return h.Z.error({centered:!0,okText:"知道啦",title:"调试代码超时"}),B(!1),e.abrupt("return");case 13:0===i&&(B(!1),M(r),2===r.status&&(B(!1),h.Z.error({centered:!0,okText:"知道啦",title:"调试代码超时"})));case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C=z(),e.next=55,(0,x.bM)(null==y?void 0:y.identifier,{});case 55:S(),e.next=59;break;case 58:B(!1);case 59:case"end":return e.stop()}}),e)}))),children:t})),(null==q?void 0:q.id)&&2!==q.status&&(0,b.jsx)(h.Z,{open:(null==q?void 0:q.id)&&2!==q.status,title:"运行结果",width:1100,footer:!1,onOk:function(){M({})},onCancel:function(){M({})},children:(0,b.jsxs)("div",{style:{maxHeight:600,overflow:"auto",marginBottom:15},children:[(0,b.jsxs)("div",{style:{marginBottom:20,display:"flex",justifyContent:"space-between",fontSize:14},children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{style:{color:"#666666"},children:"状态"}),(0,b.jsx)("span",{style:{marginLeft:12,color:0!==q.status&&"#E30000"},children:_.Im[q.status]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{style:{color:"#666666"},children:"提交时间"}),(0,b.jsx)("span",{style:{marginLeft:12},children:y()(q.created_at).format("YYYY-MM-DD HH:mm:ss")})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{style:{color:"#666666"},children:"语言"}),(0,b.jsx)("span",{style:{marginLeft:12},children:q.language})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{style:{color:"#666666"},children:"执行用时"}),(0,b.jsxs)("span",{style:{marginLeft:12},children:[q.execute_time,"ms"]})]})]}),(0,b.jsx)(_.Y4,r()({},q))]})})]})}},57849:function(e,n,t){"use strict";t.d(n,{Z:function(){return p}});t(59301);var i="result___gu5zt",r="title___xrnx2",o="left___IAxp9",s="leftNode___HL8fG",a="right___ZXYmw",l="rightNode___jYL5_",c=t(92310),u=t.n(c),d=t(37712),p=function(e){var n=e.className,t=e.style,c=void 0===t?{}:t,p=e.leftNode,f=e.leftTitle,m=void 0===f?"自测输入":f,h=e.rightNode,v=e.rightTitle,g=void 0===v?"运行结果":v;return(0,d.jsxs)("div",{className:u()(i,n),style:c,children:[(0,d.jsxs)("div",{className:o,children:[(0,d.jsxs)("div",{className:r,children:[(0,d.jsx)("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),(0,d.jsx)("span",{children:m})]}),(0,d.jsx)("div",{className:s,children:p})]}),(0,d.jsxs)("div",{className:a,children:[(0,d.jsxs)("div",{className:r,children:[(0,d.jsx)("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),(0,d.jsx)("span",{children:g})]}),(0,d.jsx)("div",{className:l,children:h})]})]})}},89657:function(e,n,t){"use strict";t.d(n,{cT:function(){return T},pe:function(){return B}});var i=t(37205),r=t.n(i),o=t(79800),s=t.n(o),a=t(39647),l=t.n(a),c=t(82242),u=t.n(c),d=t(7557),p=t.n(d),f=t(41498),m=t.n(f),h=t(59301),v=t(46651),g=t(8591),x=t(51836),_=t(28209),w=t.n(_),y=t(1012),b=t(76252),j=t(47257),k=t.n(j),S=t(37712),C=["user","cancelUpload"],N=v.Z.Dragger,B=function(e){var n=w().enc.Utf8.parse("bf3c199c2470cb477d907b1e0917c17b"),t=w().enc.Utf8.parse("5183666c72eec9e4"),i=w().AES.decrypt(e,n,{iv:t,mode:w().mode.CBC});return i.toString(w().enc.Utf8)},T=function(){var e=m()(p()().mark((function e(n,t,i){var r,o,s,a,l,c,d,f,m,h;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.file_name=n.name,e.next=3,(0,x.ZP)("/api/buckets/get_upload_token.json",{method:"get"});case 3:return d=e.sent,console.log("decrypt(res.data):",B(d.data)),d.data=JSON.parse(B(d.data)),(f=n.name.split(".")).pop(),m=t.realFileName?f.join(""):(0,y.Z)(),h=new(k())({endpoint:null==d||null===(r=d.data)||void 0===r?void 0:r.end_point,region:null==d||null===(o=d.data)||void 0===o?void 0:o.region,accessKeyId:null==d||null===(s=d.data)||void 0===s?void 0:s.access_key_id,accessKeySecret:null==d||null===(a=d.data)||void 0===a?void 0:a.access_key_secret,bucket:null==d||null===(l=d.data)||void 0===l?void 0:l.bucket,stsToken:null==d||null===(c=d.data)||void 0===c?void 0:c.security_token}),e.abrupt("return",new Promise((function(e,r){var o;h.multipartUpload("".concat(m),new Blob([n],{type:n.type}),u()(u()({timeout:2e5,partSize:102400},i),{},{callback:{url:null==d||null===(o=d.data)||void 0===o?void 0:o.callback_url,host:null==d?void 0:d.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,x.rz)(t)}})).then((function(t){var i;n.response=null===(i=t.data)||void 0===i?void 0:i.data,e(null==t?void 0:t.data)})).catch((function(e){r(e),console.log("err:",e)}))})));case 11:case"end":return e.stop()}}),e)})));return function(n,t,i){return e.apply(this,arguments)}}();n.ZP=(0,b.connect)((function(e){var n=e.loading,t=e.globalSetting,i=e.user;return{globalSetting:t,loading:n.models.competitions,user:i}}))((function(e){var n,t=e.user,i=e.cancelUpload,o=l()(e,C),a=(0,h.useState)([]),c=s()(a,2),d=c[0],f=c[1],v=(0,h.useState)(),_=s()(v,2),w=_[0],b=_[1],j={onRemove:function(e){f(r()(d.filter((function(n){return n.name!==e.name})))),o.onChange(d.filter((function(n){return n.name!==e.name})))},disabled:o.disabled,multiple:!0,fileList:null==d?void 0:d.map((function(e){return e.file})),customRequest:function(){},beforeUpload:(n=m()(p()().mark((function e(n){var t;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.maxSize||1073741824,!d.filter((function(e){return e.name===n.name})).length){e.next=4;break}return g.ZP.info("".concat(n.name,"已存在,请重新选择")),e.abrupt("return");case 4:if(!((null==n?void 0:n.size)>t)){e.next=7;break}return g.ZP.info("文件超过".concat(t/1024/1024/1024,"GB,不符合上传要求")),e.abrupt("return",!1);case 7:return d.push({name:n.name,file:n}),f(r()(d)),o.onChange(d),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},T=function(){var e=m()(p()().mark((function e(n,t){var i,s,a,l,c,u,m,h,v,_;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.file_name=n.name,m=n.name,e.next=4,(0,x.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if((h=e.sent).data=JSON.parse(B(h.data)),0===(null==h?void 0:h.status)){e.next=12;break}return d[d.findIndex((function(e){return e.name===m}))].status="error",d[d.findIndex((function(e){return e.name===m}))].file.status="error",o.onChange(d),g.ZP.warning("上传失败,请重新尝试"),e.abrupt("return");case 12:return w=new(k())({endpoint:null==h||null===(i=h.data)||void 0===i?void 0:i.end_point,region:null==h||null===(s=h.data)||void 0===s?void 0:s.region,accessKeyId:null==h||null===(a=h.data)||void 0===a?void 0:a.access_key_id,accessKeySecret:null==h||null===(l=h.data)||void 0===l?void 0:l.access_key_secret,bucket:null==h||null===(c=h.data)||void 0===c?void 0:c.bucket,stsToken:null==h||null===(u=h.data)||void 0===u?void 0:u.security_token}),console.log(n,"file"),b(w),(v=n.name.split(".")).pop(),_=t.realFileName?v.join("."):(0,y.Z)(),e.abrupt("return",new Promise((function(e,i){try{var s;w.multipartUpload("".concat(o.identifier,"/").concat(_).concat(m.indexOf(".")>-1?"."+m.split(".").pop():""),new Blob([n.file],{type:n.file.type}),{timeout:36e5,partSize:1002400,progress:function(e,n,t){try{console.log("进度",e,n,t);var i=d.findIndex((function(e){return e.name===m}));d[i].file.percent=100*e,d[i].tempCheckpoint=n,f(r()(d))}catch(e){}},checkpoint:d[d.findIndex((function(e){return e.name===m}))].tempCheckpoint,callback:{customValue:{id:m+""},url:null==h||null===(s=h.data)||void 0===s?void 0:s.callback_url,host:null==h?void 0:h.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,x.rz)(t)}}).then((function(t){var i,r=d.findIndex((function(e){return e.name===m})),s="done";if(0===(null===(i=t.data)||void 0===i?void 0:i.status)){var a;n.response=null===(a=t.data)||void 0===a?void 0:a.data;var l=d.findIndex((function(e){return e.name===m}));d[l].status="done",d[l].file.status="done"}else{var c;g.ZP.warning(null===(c=t.data)||void 0===c?void 0:c.message),s="error"}d[r].status=s,d[r].file.status=s,o.onChange(d),e(null==t?void 0:t.data)})).catch((function(e){d[d.findIndex((function(e){return e.name===m}))].status="error",d[d.findIndex((function(e){return e.name===m}))].file.status="error",g.ZP.warning("上传失败,请重新尝试"),f(r()(d)),o.onChange(d),i(e),console.log("err:",e)}))}catch(e){}})));case 19:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}();return(0,h.useEffect)((function(){d.every((function(e){return"done"===e||"error"===e}))&&o.onComplete(d)}),[d]),(0,h.useEffect)((function(){var e;i&&(null===(e=w)||void 0===e||e.cancel())}),[i]),(0,h.useEffect)((function(){o.uploading&&d.map(function(){var e=m()(p()().mark((function e(n){var r;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.status&&"error"!==n.status||i){e.next=6;break}return n.status="uploading",n.file.status="uploading",e.next=5,T(n,{login:null==t||null===(r=t.userInfo)||void 0===r?void 0:r.login,container_type:o.container_type,container_id:o.container_id,description:o.description,realFileName:o.realFileName});case 5:e.sent;case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())}),[o.uploading]),(0,S.jsx)(N,u()(u()({},j),{},{height:o.height,className:o.className,children:(0,S.jsx)("p",{className:"ant-upload-hint",children:o.text||"拖拽文件或者点击上传"})}))}))},36267:function(e,n,t){"use strict";t.d(n,{h:function(){return g}});var i=t(82242),r=t.n(i),o=t(79800),s=t.n(o),a=t(59301),l=t(57809),c=t(78241),u=t(3113),d=t(89780),p=t.n(d),f=(t(2185),t(94087),t(37712)),m=l.default.Option,h={labelCol:{span:4},wrapperCol:{span:20}},v={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function g(e){var n=e.value,t=e.onChange,i=e.mode,o=e.options,l=void 0===o?{}:o,c=(0,a.useRef)(),u=(0,a.useState)(),d=s()(u,2),m=d[0],h=d[1];return(0,a.useEffect)((function(){if(m){var e=function(e){var n=e.getValue();t&&t(n)};return m.on("change",e),function(){m.off("change",e)}}}),[m,t]),(0,a.useEffect)((function(){m&&m.setOption("mode",i)}),[m,i]),(0,a.useEffect)((function(){m&&(n===m.getValue()&&""!==n||setTimeout((function(){m.setValue(n||"")}),300))}),[m,n]),(0,a.useEffect)((function(){if(c.current&&!m){var e=p().fromTextArea(c.current,r()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));h(e)}}),[c.current,m]),(0,f.jsx)("div",{className:"my-codemirror-container",children:(0,f.jsx)("textarea",{ref:c})})}n.Z=function(e){var n=e.callback,t=e.onCancel,i=(0,a.useState)("python"),o=s()(i,2),d=o[0],p=o[1];return(0,f.jsxs)(c.Z,r()(r()({},h),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){n(e)},style:{width:500},children:[(0,f.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,f.jsx)(l.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(v[e][1])},children:Object.keys(v).map((function(e){return(0,f.jsx)(m,{value:e,children:v[e][0]},e)}))})}),(0,f.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,f.jsx)(g,{mode:d})}),(0,f.jsxs)("div",{className:"flex-container flex-end",children:[(0,f.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,f.jsx)(u.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))}},97206:function(e,n,t){"use strict";t.d(n,{Z:function(){return Ne}});var i=t(91232),r=t.n(i),o=t(79800),s=t.n(o),a=t(85573),l=t.n(a),c=t(59301),u=t(89780),d=t.n(u),p=t(76374),f=(t(2185),t(6313),t(25717),t(99498),t(25419),t(67549),t(3162)),m=t(37712),h=function(e){var n=e.value,t=void 0===n?"":n,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[t]));return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},v=t(82242),g=t.n(v),x=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function _(e){var n=e.onActionCallback,t=e.title,i=e.icon,r=e.actionName,o=e.className,s=void 0===o?"":o,a=e.children;return(0,m.jsxs)("a",{title:t,className:s,onClick:function(){n(r)},children:[(0,m.jsx)("i",{className:"".concat(i)}),a]})}var w=function(e){var n=e.watch,t=e.showNullButton,i=e.showNullProgramButton,r=e.onActionCallback,o=e.fullScreen,s=e.insertTemp,a=e.hidetoolBar,l=e.extraUse,c=[].concat(x,[{title:"".concat(n?"关闭实时预览":"开启实时预览"),icon:"".concat(n?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,m.jsxs)("ul",{className:"markdown-toolbar-container",children:[!a&&c.map((function(e,n){return(0,m.jsx)("li",{children:e.actionName?(0,m.jsx)(_,g()(g()({},e),{},{onActionCallback:r})):(0,m.jsx)("span",{className:"v-line"})},n)})),t?(0,m.jsx)("li",{children:(0,m.jsx)(_,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("li",{children:(0,m.jsx)(_,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,m.jsx)("li",{children:(0,m.jsx)(_,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,s&&(0,m.jsx)("li",{children:(0,m.jsx)(_,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(s),onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,m.jsx)("li",{children:l}),(0,m.jsx)("li",{className:"btn-full-screen",children:(0,m.jsx)(_,{icon:"".concat(o?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:o?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:r})})]})},y=t(10668),b=t(78241),j=t(98135),k=t(3113),S={labelCol:{span:4},wrapperCol:{span:20}},C=function(e){var n=e.callback,t=e.onCancel;return(0,m.jsxs)(b.Z,g()(g()({},S),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},style:{width:500},children:[(0,m.jsx)(b.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,m.jsx)(j.Z,{})}),(0,m.jsx)(b.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,m.jsx)(j.Z,{})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(k.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))},N=t(36267),B=t(8591),T=t(58865),E=b.Z.useForm,A={width:280,marginRight:10},P={labelCol:{span:5},wrapperCol:{span:19}},Z=function(e){var n=e.callback,t=e.onCancel,i=E(),r=s()(i,1)[0],o=(0,c.useRef)();function a(e,n){-1!==e.status?r.setFieldsValue({src:"/api/attachments/".concat(e.id),type:n.type}):B.ZP.error(e.message)}return(0,m.jsxs)(b.Z,g()(g()({form:r},P),{},{className:"upload-image-panel",onFinish:function(e){n(e,o.current)},style:{width:470,overflow:"hidden"},children:[(0,m.jsx)(b.Z.Item,{label:"图片地址",required:!0,children:(0,m.jsxs)("div",{className:"flex-container",children:[(0,m.jsx)(b.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,m.jsx)(j.Z,{style:A})}),(0,m.jsx)(I,{onFileChange:function(e){var n=e.target.files[0];o.current=n,L(n,a)}})]})}),(0,m.jsx)(b.Z.Item,{label:"图片描述",name:"alt",children:(0,m.jsx)(j.Z,{style:{width:264}})}),(0,m.jsxs)(b.Z.Item,{style:{textAlign:"right"},children:[(0,m.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(k.ZP,{type:"default",onClick:t,children:"取消"})]})]}))};function I(e){var n=e.onFileChange;return(0,m.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,m.jsx)("input",{type:"file",onChange:n})]})}function L(e,n){if(!e)throw new String("没有文件");var t=new FormData;t.append("editormd-image-file",e),t.append("file_param_name","editormd-image-file"),t.append("byxhr","true");var i=new window.XMLHttpRequest;i.withCredentials=!0,i.addEventListener("load",(function(t){n(JSON.parse(t.target.responseText),e)}),!1),i.addEventListener("error",(function(e){console.error(e)}),!1),i.open("POST","".concat(T.KI,"/api/attachments.json")),i.send(t)}var q=t(95237),M=t(18719),R=function(e){var n=e.callback,t=e.onCancel,i=document.createElement("canvas"),r=i.getContext("2d");i.width=1e3,i.height=800,r.fillStyle="#ffffff",r.fillRect(0,0,i.width,i.height);var o=i.toDataURL("image/png");return(0,m.jsx)(q.Z,{style:{height:"100vh"},children:(0,m.jsx)(M.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:o,visible:!0,title:String(Date.now())},onOk:function(e){n({src:e.url})},onClose:t})})},O=t(7557),D=t.n(O),F=t(41498),G=t.n(F),z=t(37205),H=t.n(z),W=t(12378);function U(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(U,go.CommandHandler),U.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},U.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var n=1/0;e.selection.each((function(e){e instanceof go.Link||(n=Math.min(e.position.x,n))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n,e.position.y))})),e.commitTransaction("aligning left")},U.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var n=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var t=e.actualBounds.x+e.actualBounds.width;n=Math.max(t,n)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},U.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var n=1/0;e.selection.each((function(e){e instanceof go.Link||(n=Math.min(e.position.y,n))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,n))})),e.commitTransaction("alignTop")},U.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var n=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var t=e.actualBounds.y+e.actualBounds.height;n=Math.max(t,n)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},U.prototype.alignCenterX=function(){var e=this.diagram,n=e.selection.first();if(n){e.startTransaction("aligning Center X");var t=n.actualBounds.x+n.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},U.prototype.alignCenterY=function(){var e=this.diagram,n=e.selection.first();if(n){e.startTransaction("aligning Center Y");var t=n.actualBounds.y+n.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},U.prototype.alignColumn=function(e){var n=this.diagram;n.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var t=new Array;n.selection.each((function(e){e instanceof go.Link||t.push(e)}));for(var i=0;i0){for(var i=s.elt(a-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(o)}else if("Down"===t.key){var r;if(n.isTreeExpanded&&!n.isTreeLeaf)null!==(r=this._sortTreeChildrenByY(n).first())&&e.select(r);else for(;null!==n;){var o,s,a;if(null===(o=n.findTreeParentNode()))break;if((a=(s=this._sortTreeChildrenByY(o)).indexOf(n))i.y?1:t.xi.x?1:0})),n},U.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},U.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(U.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(U.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var V=U,K=(t(91017),t(85160)),Y=t(43418),J=t(43604),X=t(51836),Q="myPaletteDiv___Xjz2I",$="maxH60___Pd4Re";window.go=W;var ee=function(e){var n=e.onCancel,t=e.callback,i=(0,c.useRef)(),r=(0,c.useRef)(),o=(0,c.useRef)(),a=(0,c.useRef)(!1),l=(0,c.useRef)(!1),u=(0,c.useState)(0),d=s()(u,2),p=d[0],f=d[1],h=function(){var e=G()(D()().mark((function e(){var n,r;return D()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.current.makeImage(),e.next=3,(0,X.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:n.src}});case 3:r=e.sent,t({src:r.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){f(p+1)}),[]),(0,m.jsx)("div",{ref:l,className:a.current?"".concat($," body-overflow-initial"):"body-overflow-initial",children:(0,m.jsx)(Y.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:l.current,rootClassName:"zIndex-9999",title:(0,m.jsxs)(q.Z,{children:[(0,m.jsx)(J.Z,{flex:1,children:"插入流程图"}),(0,m.jsx)(J.Z,{onClick:function(){a.current=!a.current,f(p+1)},children:(0,m.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:n,children:(0,m.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,m.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,m.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,m.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,m.jsx)("div",{style:{height:"calc(100% - 50px)"},className:Q,ref:o})]}),(0,m.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,m.jsx)(K.FI,{initDiagram:function(){var e=W.GraphObject.make,n="#ff3333",t="#3358ff",s="#25ad23",a="#d533ff",l="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",f="#d5ebff",m="#f2dfe0",h="#a5d2fa",v="#cccccc",g="#b3e6b3",x="#fcbbbd";function _(n,t){var i=function(e,t){e.handled=!0,e.diagram.model.commit((function(i){var r=t.part.adornedPart,o=(new W.Point).setRectSpot(r.actualBounds,n);o.subtract(r.location),o.scale(2,2),o.x+=130*Math.sign(o.x),o.y+=130*Math.sign(o.y),o.add(r.location),o.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var s=i.copyNodeData(r.data);i.setGroupKeyForNodeData(s,i.getGroupKeyForNodeData(r.data)),i.addNodeData(s);var a={from:r.key,to:i.getKeyForNodeData(s)};i.addLinkData(a);var l=e.diagram.findNodeForData(s);l.location=o,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(W.Shape,{figure:t,alignment:n,alignmentFocus:n.opposite(),width:n.equals(W.Spot.Top)||n.equals(W.Spot.Bottom)?25:18,height:n.equals(W.Spot.Top)||n.equals(W.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="orange"},isActionable:!0,click:i,contextClick:i})}function w(n){return e(W.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="orange"},click:function(e,n){e.diagram.commandHandler.showContextMenu(n.part.adornedPart)}},n||{})}function y(e,n){return function(t,i){t.handled=!0,t.diagram.model.commit((function(t){t.set(i.part.adornedPart.data,e,n)}))}}function b(n,t){return t||(t="color"),e(W.Shape,{width:16,height:16,stroke:"lightgray",fill:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.stroke="dodgerblue"},mouseLeave:function(e,n){return n.stroke="lightgray"},click:y(t,n),contextClick:y(t,n)})}function j(){return[e("ContextMenuButton",e(W.Panel,"Horizontal",b(u,"fill"),b(p,"fill"),b(f,"fill"),b(m,"fill"))),e("ContextMenuButton",e(W.Panel,"Horizontal",b(v,"fill"),b(g,"fill"),b(h,"fill"),b(x,"fill")))]}function k(){return[e("ContextMenuButton",e(W.Panel,"Horizontal",b(d),b(s),b(t),b(n))),e("ContextMenuButton",e(W.Panel,"Horizontal",b(u),b(a),b(l),b(c)))]}function S(n,t){return t||(t="thickness"),e(W.Shape,"LineH",{width:16,height:16,strokeWidth:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:y(t,n),contextClick:y(t,n)})}function C(n,t){return t||(t="dash"),e(W.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:y(t,n),contextClick:y(t,n)})}function N(){return[e("ContextMenuButton",e(W.Panel,"Horizontal",S(1),S(2),S(3),S(4))),e("ContextMenuButton",e(W.Panel,"Horizontal",C(null),C([2,4]),C([4,4])))]}function B(n,t){return t||(t="figure"),e(W.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="lightgray"},click:y(t,n),contextClick:y(t,n)})}function T(n){return e(W.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(n+4).toString()+" H3"})}function E(n){var t="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===n?t="M0 0 M16 16 M0 8 L16 8":2===n&&(t="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(W.Shape,{geometryString:t,margin:2,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:y("dir",n),contextClick:y("dir",n)})}function A(n){var t=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",W.Spot.stringify(W.Spot.AllSides)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(W.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:t,contextClick:t})}function P(n,t){var i=0,r=W.Spot.RightSide;n.equals(W.Spot.Top)?(i=270,r=W.Spot.TopSide):n.equals(W.Spot.Left)?(i=180,r=W.Spot.LeftSide):n.equals(W.Spot.Bottom)&&(i=90,r=W.Spot.BottomSide),t||(i-=180);var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",W.Spot.stringify(r)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(W.Shape,{alignment:n,alignmentFocus:n.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:o,contextClick:o})}return i.current=new W.Diagram(r.current,{padding:20,grid:e(W.Panel,"Grid",e(W.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(W.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(V),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var n=e.subject;n.location=n.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var n=e.subject;e.diagram.toolManager.linkingTool.isForwards?n.toNode.invalidateConnectedLinks():n.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(W.Node,"Auto",{locationSpot:W.Spot.Center,locationObjectName:"SHAPE",desiredSize:new W.Size(120,60),minSize:new W.Size(40,40),resizable:!0,resizeCellSize:new W.Size(10,10),rotatable:!0},new W.Binding("location","loc",W.Point.parse).makeTwoWay(W.Point.stringify),new W.Binding("desiredSize","size",W.Size.parse).makeTwoWay(W.Size.stringify),e(W.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:W.Spot.AllSides,toSpot:W.Spot.AllSides},new W.Binding("figure"),new W.Binding("fill"),new W.Binding("stroke","borderColor"),new W.Binding("strokeWidth","thickness"),new W.Binding("strokeDashArray","dash")),e(W.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(W.TextBlock,{margin:1,textAlign:"center",overflow:W.TextBlock.OverflowEllipsis,editable:!0},new W.Binding("text").makeTwoWay(),new W.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(W.Panel,"Vertical",{maxSize:new W.Size(200,NaN)},e(W.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new W.Binding("text")),e(W.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new W.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(W.Adornment,"Spot",e(W.Placeholder,{padding:10}),_(W.Spot.Top,"TriangleUp"),_(W.Spot.Left,"TriangleLeft"),_(W.Spot.Right,"TriangleRight"),_(W.Spot.Bottom,"TriangleDown"),w({alignment:new W.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(W.Panel,"Horizontal",B("Rectangle"),B("RoundedRectangle"),B("Ellipse"),B("Diamond"))),e("ContextMenuButton",e(W.Panel,"Horizontal",B("Parallelogram2"),B("ManualOperation"),B("Procedure"),B("Cylinder1"))),e("ContextMenuButton",e(W.Panel,"Horizontal",B("Terminator"),B("CreateRequest"),B("Document"),B("TriangleDown"))),j(),k(),N()),i.current.groupTemplate=e(W.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:W.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,n){n.addMembers(n.diagram.selection,!0)||n.diagram.currentTool.doCancel()},avoidable:!1},new W.Binding("location","loc",W.Point.parse).makeTwoWay(W.Point.stringify),e(W.Panel,"Auto",{name:"BODY"},e(W.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:W.Spot.AllSides,toSpot:W.Spot.AllSides},new W.Binding("fill"),new W.Binding("stroke","color"),new W.Binding("strokeWidth","thickness"),new W.Binding("strokeDashArray","dash")),e(W.Placeholder,{background:"transparent",margin:20})),e(W.TextBlock,{alignment:W.Spot.Top,alignmentFocus:W.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new W.Binding("text"),new W.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(W.Adornment,"Spot",e(W.Panel,"Auto",e(W.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(W.Placeholder,{margin:1.5})),w({alignment:W.Spot.TopRight,alignmentFocus:W.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",j(),k(),N()),i.current.linkTemplate=e(W.Link,{layerName:"Foreground",routing:W.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new W.Binding("fromSpot","fromSpot",W.Spot.parse),new W.Binding("toSpot","toSpot",W.Spot.parse),new W.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new W.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new W.Binding("points").makeTwoWay(),e(W.Shape,{strokeWidth:2},new W.Binding("stroke","color"),new W.Binding("strokeWidth","thickness"),new W.Binding("strokeDashArray","dash")),e(W.Shape,{segmentIndex:0,segmentOffset:new W.Point(15,0),segmentOrientation:W.Link.OrientAlong,alignmentFocus:W.Spot.Right,figure:"circle",width:10,strokeWidth:0},new W.Binding("fill","color"),new W.Binding("visible","dir",(function(e){return 1===e}))),e(W.Shape,{segmentIndex:-1,segmentOffset:new W.Point(-10,6),segmentOrientation:W.Link.OrientPlus90,alignmentFocus:W.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new W.Binding("fill","color"),new W.Binding("visible","dir",(function(e){return e>=1})),new W.Binding("width","thickness",(function(e){return 7+3*e})),new W.Binding("height","thickness",(function(e){return 7+3*e})),new W.Binding("segmentOffset","thickness",(function(e){return new W.Point(-15,4+1.5*e)}))),e(W.Shape,{segmentIndex:0,segmentOffset:new W.Point(15,-6),segmentOrientation:W.Link.OrientMinus90,alignmentFocus:W.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new W.Binding("fill","color"),new W.Binding("visible","dir",(function(e){return 2===e})),new W.Binding("width","thickness",(function(e){return 7+3*e})),new W.Binding("height","thickness",(function(e){return 7+3*e})),new W.Binding("segmentOffset","thickness",(function(e){return new W.Point(-15,4+1.5*e)}))),e(W.TextBlock,{alignmentFocus:new W.Spot(0,1,-4,0),editable:!0},new W.Binding("text").makeTwoWay(),new W.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(W.Adornment,e(W.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:T(2)},new W.Binding("pathPattern","thickness",T)),w({alignmentFocus:new W.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",k(),N(),e("ContextMenuButton",e(W.Panel,"Horizontal",E(0),E(1),E(2))),e("ContextMenuButton",e(W.Panel,"Horizontal",e(W.Panel,"Spot",A(!1),P(W.Spot.Top,!1),P(W.Spot.Left,!1),P(W.Spot.Right,!1),P(W.Spot.Bottom,!1)),e(W.Panel,"Spot",{margin:new W.Margin(0,0,0,2)},A(!0),P(W.Spot.Top,!0),P(W.Spot.Left,!0),P(W.Spot.Right,!0),P(W.Spot.Bottom,!0))))),new W.Palette(o.current,{maxSelectionCount:1,linkTemplate:e(W.Link,{locationSpot:W.Spot.Center,selectionAdornmentTemplate:e(W.Adornment,"Link",{locationSpot:W.Spot.Center},e(W.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(W.Shape,{toArrow:"Standard",stroke:null}))},{routing:W.Link.AvoidsNodes,curve:W.Link.JumpOver,corner:5,toShortLength:4},new W.Binding("points"),e(W.Shape,{isPanelMain:!0,strokeWidth:2}),e(W.Shape,{toArrow:"Standard",stroke:null})),model:new W.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(H()(W.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(W.Node,"Auto",{locationSpot:W.Spot.Center},new W.Binding("location","location",W.Point.parse).makeTwoWay(W.Point.stringify),e(W.Shape,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new W.Binding("stroke").makeTwoWay(),new W.Binding("fill").makeTwoWay(),new W.Binding("figure")),e(W.TextBlock,{margin:new W.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new W.Size(16,16),maxSize:new W.Size(10,NaN),textAlign:"center",editable:!0},new W.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(W.Panel,"Grid",e(W.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(W.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),i.current.grid.visible=!0,i.current.grid.gridCellStroke="darkgray",i.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=i.current,i.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,m.jsx)("div",{ref:r})]})]}),(0,m.jsx)("div",{className:"tr",children:(0,m.jsx)(k.ZP,{size:"large",onClick:h,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},ne=t(5112),te=t(26415),ie=ne.ZP.Group,re={margin:"0 8px"},oe=function(e){var n=e.callback,t=e.onCancel;return(0,m.jsxs)(b.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){n(e)},children:[(0,m.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,m.jsx)("span",{style:re,children:"单元格数:"}),(0,m.jsx)("span",{style:re,children:"行数"}),(0,m.jsx)(b.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,m.jsx)(te.Z,{})}),(0,m.jsx)("span",{style:re,children:"列数"}),(0,m.jsx)(b.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,m.jsx)(te.Z,{})})]}),(0,m.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,m.jsx)("span",{style:re,children:"对齐方式:"}),(0,m.jsx)(b.Z.Item,{name:"align",children:(0,m.jsxs)(ie,{children:[(0,m.jsx)(ne.ZP,{value:"default",children:(0,m.jsx)("i",{className:"fa fa-align-justify"})}),(0,m.jsx)(ne.ZP,{value:"left",children:(0,m.jsx)("i",{className:"fa fa-align-left"})}),(0,m.jsx)(ne.ZP,{value:"center",children:(0,m.jsx)("i",{className:"fa fa-align-center"})}),(0,m.jsx)(ne.ZP,{value:"right",children:(0,m.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(k.ZP,{type:"ghost",onClick:t,children:"取消"})]})]})},se=t(78673),ae=t(84462),le=t.n(ae),ce=(0,c.forwardRef)((function(e,n){var t=e.use3d,i=e.width,r=e.height,o=e.callback,a=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),u=(0,c.useState)(!1),d=s()(u,2),p=d[0],f=d[1],h=(0,c.useRef)({id:a,appName:"graphing",width:i||1e3,height:r||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){l.current=new(le())(h.current,!0),window.onload=function(){l.current.inject("applet_container")}}),[]);var v=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return o&&o(e),e};return(0,c.useEffect)((function(){h.current.appName=p?"3D":"graphing",l.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){f(t)}),[t]),(0,c.useImperativeHandle)(n,(function(){return{getImgData:v}})),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:a}),(0,m.jsxs)(q.Z,{align:"middle",children:[(0,m.jsx)(J.Z,{flex:1,children:(0,m.jsx)(se.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return f(e)}})}),(0,m.jsx)(J.Z,{children:(0,m.jsx)(k.ZP,{size:"large",onClick:v,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ue=t(23180),de=t(68339),pe="link",fe="upload-image",me="add-flowchart",he="draw-image",ve="code-block",ge="add-table",xe="------------",_e={default:xe,left:":".concat(xe),center:":".concat(xe,":"),right:"".concat(xe,":")},we=t(88080);var ye="@▁▁@",be=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function je(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ke=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Se=l()(l()({},ke+"-B","bold"),ke+"-I","italic"),Ce=l()(l()(l()(l()(l()(l()(l()(l()({},pe,"添加链接"),ve,"添加代码块"),fe,"添加图片"),he,"添加画图"),me,"插入流程图"),ge,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Ne=function(e){var n=e.defaultValue,t=void 0===n?"":n,i=e.onChange,o=e.width,a=void 0===o?"100%":o,u=e.height,v=void 0===u?400:u,g=e.miniToolbar,x=void 0!==g&&g,_=e.isFocus,b=void 0!==_&&_,j=e.watch,k=e.insertTemp,S=e.mode,T=void 0===S?"markdown":S,E=e.id,A=void 0===E?"markdown-editor-id":E,P=e.showResizeBar,I=void 0!==P&&P,q=e.noStorage,M=void 0!==q&&q,O=e.showNullButton,D=void 0!==O&&O,F=e.showNullProgramButton,G=void 0!==F&&F,z=e.hidetoolBar,H=void 0!==z&&z,W=e.fullScreen,U=void 0!==W&&W,V=e.onBlur,K=e.onCMBeforeChange,J=e.onFullScreen,X=e.className,Q=void 0===X?"":X,$=e.disablePaste,ne=void 0!==$&&$,te=e.disabled,ie=void 0!==te&&te,re=e.disabledFill,se=void 0!==re&&re,ae=e.placeholder,le=void 0===ae?"":ae,xe=e.values,ke=void 0===xe?"":xe,Ne=e.extraUse,Be=(0,c.useState)(null),Te=s()(Be,2),Ee=Te[0],Ae=Te[1],Pe=(0,c.useState)(t),Ze=s()(Pe,2),Ie=Ze[0],Le=Ze[1],qe=(0,c.useState)(j),Me=s()(qe,2),Re=Me[0],Oe=Me[1],De=(0,c.useState)(U),Fe=s()(De,2),Ge=Fe[0],ze=Fe[1],He=(0,c.useState)(""),We=s()(He,2),Ue=We[0],Ve=We[1],Ke=(0,c.useState)(0),Ye=s()(Ke,2),Je=Ye[0],Xe=Ye[1],Qe=(0,c.useState)(v),$e=s()(Qe,2),en=$e[0],nn=$e[1],tn=(0,c.useState)(!1),rn=s()(tn,2),on=(rn[0],rn[1]),sn=(0,c.useState)(0),an=s()(sn,2),ln=an[0],cn=an[1],un=(0,c.useState)(0),dn=s()(un,2),pn=dn[0],fn=dn[1],mn=(0,c.useRef)(),hn=(0,c.useRef)(),vn=(0,c.useRef)(),gn=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Le(ke),null==Ee||Ee.setValue(ke),window.scrollTo(0,e)}),[ke]),(0,c.useEffect)((function(){null==J||J(Ge)}),[Ge]),(0,c.useEffect)((function(){if(mn.current){var e=function(e,t){if(!ne){var i=t.clipboardData;if(i){var r=i.types.toString(),o=i.items;if("Files"===r||i.types.indexOf("Files")>-1){if(t.preventDefault(),"stex"==T)return;try{var s,a=o[1];"file"===(null===(s=o[0])||void 0===s?void 0:s.kind)&&(a=o[0]);var l=a.getAsFile(),c=l.name.split(".").pop();L(l,(function(e){var t,i,r;e.id?(null==l||null===(t=l.type)||void 0===t?void 0:t.indexOf("image"))>-1?n.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("video"))>-1?n.replaceSelection('')):(null==l||null===(r=l.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?n.replaceSelection('').concat(l.name,"")):be.includes(c)?n.replaceSelection('').concat(l.name,"")):n.replaceSelection("[".concat(l.name,"](").concat(de.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(t){B.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}t.preventDefault()},n=d().fromTextArea(mn.current,{mode:T,lineNumbers:!x,lineWrapping:!0,value:t,autoCloseTags:!0,autoCloseBrackets:!0});return n.on("keyup",(function(e,t){8===t.keyCode&&(""==e.getValue()?n.setOption("placeholder",le):n.setOption("placeholder",null))})),n.on("keydown",(function(e,n){if(8===n.keyCode){var t=function(e,n){var t=e.getDoc(),i=t.getCursor(),r=t.getLine(i.line),o=r.charAt(i.ch-1),s=r.lastIndexOf("@▁@",i.ch),a=r.lastIndexOf("@▁▁@",i.ch),l=s>a?s:a,c=s>a?3:4;if(-1===ye.indexOf(o))return null;if(console.log("change1:",n,e,r,i,l,s,a,o),l>=0&&i.ch-l<5){var u=l+c;return t.replaceRange("",{line:i.line,ch:l},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);t&&n.preventDefault()}})),b&&n.focus(),n.on("paste",e),ie&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Ae(n),function(){n.off("paste",e)}}}),[]);var xn=(0,c.useCallback)((function(){hn.current}),[en,hn,Ge]);(0,c.useEffect)((function(){if(Ee){var e=function(){var e=new p.Z((function(e){var n,t=r()(e);try{for(t.s();!(n=t.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(xn(),Ee.setSize("100%","100%"),Ee.refresh())}}catch(e){t.e(e)}finally{t.f()}}));return e.observe(mn.current.parentElement),e}();return function(){var n,t;null!==(n=mn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(t=mn.current)||void 0===t?void 0:t.parentElement)}}}),[Ee,xn]),(0,c.useEffect)((function(){if(Ee){for(var e=[],n=function(){var n=s()(i[t],2),r=n[0],o=n[1],a=l()({},r,(function(){_n(o)}));e.push(a),Ee.addKeyMap(a)},t=0,i=Object.entries(Se);t0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(A);e>=Je+1e4&&(!n||n!==Ie)&&(window.sessionStorage.setItem(A,Ie),on(!0))}}),1e4),(0,c.useEffect)((function(){Oe(j)}),[Ee,j]),(0,c.useEffect)((function(){Ee&&b&&Ee.focus()}),[Ee,b]),(0,c.useEffect)((function(){if(Re&&Ee){var e=function(e){var n=e.target;if(gn.current){var t=n.scrollTop/n.scrollHeight;gn.current.scrollTop=gn.current.scrollHeight*t}},n=Ee.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[Ee,Re]),(0,c.useEffect)((function(){if(Ee&&K){var e=function(e,n){K(e,n)};return Ee.on("beforeChange",e),function(){Ee.off("beforeChange",e)}}}),[Ee,K]),(0,c.useEffect)((function(){if(Ee&&V){var e=function(){V(Ee.getValue())};return Ee.on("blur",e),function(){Ee.off("blur",e)}}}),[Ee,V]),(0,c.useEffect)((function(){if(Ee){var e=function(e,n){var t=e.getValue();Le(t),Xe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(G?i(t,kn(t)):i(t))};return Ee.on("change",e),function(){Ee.off("change",e)}}}),[Ee,i]),(0,c.useEffect)((function(){if(Ee)if(null==t)Ee.setValue(""),Le("");else{var e=window.scrollY||window.pageYOffset;t!==Ee.getValue()&&(Ee.setValue(t),Le(t),Ee.setCursor(ie?1:Ee.lineCount(),0),window.scrollTo(0,e))}}),[Ee,t]);var _n=(0,c.useCallback)((function(e){var n=Ee.getCursor(),t=Ee.getSelection(),i=t.split("\n");switch(e){case"bold":return Ee.replaceSelection("**"+t+"**"),""===t&&Ee.setCursor(n.line,n.ch+2),Ee.focus();case"italic":return Ee.replaceSelection("*"+t+"*"),""===t&&Ee.setCursor(n.line,n.ch+1),Ee.focus();case"code":return Ee.replaceSelection("`"+t+"`"),""===t&&Ee.setCursor(n.line,n.ch+1),Ee.focus();case"inline-latex":return Ve("inline-latex"),Ee.focus();case"latex":return Ee.replaceSelection("```latex\n"+t+"\n```"),Ee.setCursor(n.line+1,t.length+1),Ee.focus();case"line-break":return Ee.replaceSelection("
\n"),Ee.focus();case"list-ul":return""===t?Ee.replaceSelection("- "+t):Ee.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ee.focus();case"list-ol":return""===t?Ee.replaceSelection("1. "+t):Ee.replaceSelection(i.map((function(e,n){return""===e?"":"".concat(n+1,". ").concat(e)})).join("\n")),Ee.focus();case"add-null-ch":return""===t&&Ee.setCursor(n.line,n.ch),Ee.replaceSelection("▁"),Ee.focus();case"add-signal":return""===t&&Ee.setCursor(n.line,n.ch),Ee.replaceSelection("@▁@"),Ee.focus();case"add-multiple":return""===t&&Ee.setCursor(n.line,n.ch),Ee.replaceSelection(ye),Ee.focus();case"inster-template-1":return""===t&&Ee.setCursor(n.line,n.ch),Ee.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ee.focus();case"eraser":return Ee.setValue(""),Ee.focus();case"trigger-watch":return Oe(!Re),Ee.focus();case"trigger-full-screen":return ze(!Ge),Ee.focus();case pe:return void Ve(pe);case ve:return void Ve(ve);case fe:return void Ve(fe);case he:return void Ve(he);case"maths-latex":return void Ve("maths-latex");case me:return void Ve(me);case ge:return void Ve(ge);default:throw new Error}}),[Ee,Re,Ge]),wn=(0,c.useCallback)((function(e,n){var t,i,r,o,s;switch(Ve(""),Ue){case pe:var a=e.title,l=e.link;return Ee.replaceSelection("[".concat(a,"](").concat(l,")")),Ee.focus();case ve:var c=e.language,u=e.content;return Ee.replaceSelection(["```"+c,u,"```"].join("\n")),Ee.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),f=0;f-1||null==v||!v.type?h?Ee.replaceSelection("![ ".concat(h," ]( ").concat(m,' "').concat(h,'" )')):Ee.replaceSelection("![,](".concat(m,")")):(null==v||null===(o=v.type)||void 0===o?void 0:o.indexOf("video"))>-1?Ee.replaceSelection('')):(null==v||null===(s=v.type)||void 0===s?void 0:s.indexOf("pdf"))>-1?Ee.replaceSelection('').concat(v.name,"")):be.includes(g)?Ee.replaceSelection('').concat(v.name,"")):Ee.replaceSelection("[".concat(v.name,"](").concat(de.Z.API_SERVER).concat(m,")")),Ee.focus();case ge:for(var x=e.row,_=e.col,w=e.align,y="\n",b=0;b300&&(n=300),nn(v+n+"px")}},i=vn.current,r=!1,o=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",t),document.addEventListener("mouseup",n),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)}}}),[Ee,vn]),(0,c.useEffect)((function(){nn(v)}),[v]);var jn={width:je(a),height:je(en)},kn=((0,c.useMemo)((function(){if(Je){var e=new Date(Je),n=e.getHours(),t=e.getMinutes(),i=e.getSeconds();return t=t<10?"0"+t:t,i=i<10?"0"+i:i,"".concat(n=n<10?"0"+n:n,":").concat(t,":").concat(i)}return 0}),[Je]),function(e){var n=[];if(G){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,t,i){n.push({multiLine:!("@▁@"===e)})}))}return n});(0,c.useEffect)((function(){Ce[Ue]&&Ue!==he&&Ue!==me&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;cn(n),fn(t)}),0)}),[Ue]);var Sn=function(e,n,t,i){var r=document.body.clientHeight,o=document.body.clientWidth;return!(e<20&&t>e||e>o-20&&tn||n>r-20&&i0&&void 0!==t[0]?t[0]:"未共享整个屏幕,禁止作答!",j.ZP.warning(n),setTimeout((function(){o()}),1e3);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),S=function(){var e=u()(l()().mark((function e(){var n,t,i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,M.i7)()){e.next=3;break}return k("请使用谷歌浏览器答题"),e.abrupt("return");case 3:if(!d.current){e.next=6;break}return j.ZP.warning("正在录制中"),e.abrupt("return");case 6:if(g.current=!0,e.prev=7,!(0,M.WX)()){e.next=14;break}return e.next=11,navigator.mediaDevices.getUserMedia({audio:{mandatory:{chromeMediaSource:"desktop"}},video:{mandatory:{chromeMediaSource:"desktop"}}});case 11:t=e.sent,e.next=22;break;case 14:return e.next=16,navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"monitor"}});case 16:if(t=e.sent,"monitor"===(null===(i=t)||void 0===i||null===(i=i.getVideoTracks())||void 0===i||null===(i=i[0])||void 0===i||null===(i=i.getSettings())||void 0===i?void 0:i.displaySurface)){e.next=22;break}return C(),k(),e.abrupt("return");case 22:return d.current=t,"srcObject"in f.current?f.current.srcObject=d.current:f.current.src=URL.createObjectURL(d.current),e.next=26,new Promise((function(e){f.current.addEventListener("loadedmetadata",(function(){e()}))}));case 26:null===(n=d.current)||void 0===n||null===(n=n.getVideoTracks())||void 0===n||null===(n=n[0])||void 0===n||n.addEventListener("ended",(function(){g.current&&k()})),f.current.play(),s(),e.next=34;break;case 31:e.prev=31,e.t0=e.catch(7),k("屏幕录制功能错误,请检查后再共享整个屏幕,否则无法作答");case 34:case"end":return e.stop()}}),e,null,[[7,31]])})));return function(){return e.apply(this,arguments)}}(),C=function(){var e;g.current=!1;var n=null===(e=d.current)||void 0===e?void 0:e.getTracks();null==n||n.forEach((function(e){e.stop()})),d.current=null},N=function(e){var n=e.split(",")[1],t=e.split(",")[0].split(":")[1].split(";")[0],i=r()(atob(n)),o=new Uint8Array(i.map((function(e){return e.charCodeAt(0)})));return new Blob([o],{type:t})},B=function(){var e=u()(l()().mark((function e(){var t,i,r,o,s,a,c,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=m.current.getContext("2d"),m.current.width=f.current.videoWidth,m.current.height=f.current.videoHeight,t.drawImage(f.current,0,0,m.current.width,m.current.height),i=m.current.toDataURL("image/jpeg"),r=N(i),o=new File([r],"canvas_image.jpg",{type:"image/jpeg"}),(s=new FormData).append("file",o),e.next=11,(0,R.ZP)("/api/exercises/".concat(n,"/exercise_user_screens/check.json"),{method:"get"});case 11:if(0!==(null==(a=e.sent)?void 0:a.status)){e.next=21;break}return e.next=15,(0,R.ZP)("/api/attachments.json",{method:"post",body:s},!0);case 15:if(null==(c=e.sent)||!c.id){e.next=21;break}return e.next=19,(0,R.ZP)("/api/exercises/".concat(n,"/exercise_user_screens.json"),{method:"post",body:{attachment_id:null==c?void 0:c.id,exercise_abnormity_id:x.current}});case 19:0===(u=e.sent).status&&(x.current=u.exercise_abnormity_id);case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("video",{ref:f,muted:!0,className:"hide"}),(0,O.jsx)("canvas",{id:"canvas",ref:m,className:"hide"})]})},F=t(99232),G=t.n(F),z={flex_box_center:"flex_box_center___ariLt",flex_space_between:"flex_space_between___MC6sH",flex_box_vertical_center:"flex_box_vertical_center___tJHfy",flex_box_center_end:"flex_box_center_end___AfB_t",flex_box_column:"flex_box_column___xX4Fj",bg:"bg___nHBEZ",wrapper:"wrapper___TZKl8",exerciseAlert:"exerciseAlert___QUMwm",title:"title___rj6Q0",content:"content___Te7Wz",baseMargin:"baseMargin___BRmsh",noWrap:"noWrap___X6AS3",singleItem:"singleItem___GkaDR",questionIcons:"questionIcons___XoGYC",green:"green___iIYnV",orange:"orange___EIhiL",greenTip:"greenTip___WwiUh",redTip:"redTip___aWSt4",orangeTip:"orangeTip___j5g_H",pollDesc:"pollDesc___yDT2Q",answered:"answered___d2hE7",unanswer:"unanswer___AdOhE",anchor:"anchor___z3CaP",answerFlag:"answerFlag___wwTKa",flagActive:"flagActive___piG3D",flagHalf:"flagHalf___E29dd",answerStudentFlag:"answerStudentFlag___HRVt8",answerStudentActive:"answerStudentActive___kM6r4",questionItem:"questionItem___q6Hgu",questionScore:"questionScore___RW5tm",itemType:"itemType___pPqzT",itemFlag:"itemFlag___j5TSr",answerWrap:"answerWrap___G9dnn",answerSubjective:"answerSubjective___LRVKJ",otherInput:"otherInput___SxNAw",submitButton:"submitButton___zPo7H",randomFlag:"randomFlag___TOZ2H",answerTrue:"answerTrue___fgIW0",answerFalse:"answerFalse___gAQD8",answerHalf:"answerHalf___h40sX",renderHtml:"renderHtml___UerV1",simpleText:"simpleText___ZKx7o",answerYes:"answerYes___AA0oM",answerNo:"answerNo___gMGLy",answerInfo:"answerInfo___tB4Wz",answerProgress:"answerProgress___CbmXy",answerSheetWrap:"answerSheetWrap___aPipx",answerSheetQuestionTitle:"answerSheetQuestionTitle___P18Ss",answerSheet:"answerSheet___yhxK1",answerSheetItem:"answerSheetItem___DIH2V",qindex:"qindex___XuKA8",markIcon:"markIcon___ZTkqb",active:"active___WSsrt",yes:"yes___knuOK",no:"no___gv_cs",bf:"bf___pJfi5",partialActive:"partialActive___K6lsa",selected:"selected___grFyM",countDown:"countDown___OzcWL",cnText:"cnText___TvFjV",red:"red___Mge1h",refreshBtn:"refreshBtn___lK1MX",fold:"fold___id0EJ",cardList:"cardList___xKhMX",withQrcode:"withQrcode___qphZK",iframe:"iframe___pMMQx",eduTip:"eduTip___hXWhK",eduQrcode:"eduQrcode____qxcx",eduVideo:"eduVideo___mufWJ",eduUsername:"eduUsername___tiufh",startAnswer:"startAnswer___AA7n5",eduSubmit:"eduSubmit___UPIsJ",eduTitle:"eduTitle___jCJrO",wrpAnswer:"wrpAnswer___AVK1Y",simpleMd:"simpleMd___ZGbXj",videomodal:"videomodal___bYarH",mainPart:"mainPart___Fqvw7",userInfoText:"userInfoText___nqL8p",answerSheetBottom:"answerSheetBottom___yXf5u",tooltipWrap:"tooltipWrap___AxG9B",leftPart:"leftPart___P4Ook",rightPart:"rightPart___De4P3",questionPart:"questionPart___GTq66",questionTypeTitle:"questionTypeTitle___r6Fo9",questionTypeInfo:"questionTypeInfo___JfpWv",toIframeBtn:"toIframeBtn___gRKtn",bottom:"bottom___coSlv",markBtn:"markBtn___ZCLGF",changeButton:"changeButton___sBTjl",prevBtn:"prevBtn___lgCPG",analysisWrap:"analysisWrap___JoCnb",greyBg:"greyBg___vgesc",fixHeader:"fixHeader___RoNxE",exerciseTitle:"exerciseTitle___Dtp56",commitModal:"commitModal___zqvNA",commitItem:"commitItem___mjYF6",commitInfoLabel:"commitInfoLabel___KtIjW",commitInfoValue:"commitInfoValue___DCyRn",cameraHeader:"cameraHeader___Pqhwb",dottedLineWrapper:"dottedLineWrapper___ONO9c",leftHalfCircle:"leftHalfCircle___RNJN7",dottedLine:"dottedLine___qWy4W",rightHalfCircle:"rightHalfCircle___s3_hr",orangeNum:"orangeNum___IYnup",teachAnalysis:"teachAnalysis___FH6fk",teachAnalysisModal:"teachAnalysisModal___RcKVp"},H=t(5746),W=t(22961),U=t(60578),V=t(77884),K=t(11314),Y=t(3162),J=t(97206),X={0:"c-red-ee4",1:"c-green"},Q=function(e){var n,t,i,r,o,s,a=e.item,l=e.answerData,c=e.isEducation,u=e.sign,d=e.onBlur,f=void 0===d?function(){}:d,m=(0,h.useRef)(""),v=(0,h.useState)(),g=p()(v,2),x=(g[0],g[1]),_=(0,h.useState)(!1),w=p()(_,2),y=w[0],b=w[1],k=(0,h.useState)(c||!1),N=p()(k,2),B=N[0],T=N[1],E=(0,h.useRef)();return(0,h.useEffect)((function(){console.log("isFocus:",y),y&&(clearInterval(E.current),E.current=setInterval((function(){y&&f(m.current,!0)}),1e4))}),[y]),(0,h.useEffect)((function(){x(null==a?void 0:a.a_flag)}),[null==a?void 0:a.a_flag]),(0,h.useEffect)((function(){return function(){clearInterval(E.current)}}),[]),(0,O.jsxs)("div",{children:[1===(null==l||null===(n=l.exercise)||void 0===n?void 0:n.user_exercise_status)?(0,O.jsxs)("div",{className:"mb20",children:[(0,O.jsxs)(S.Z,{justify:"space-between",children:[(0,O.jsx)(C.Z,{children:"我的答案"}),((0,W.GJ)()||(0,W.dE)()&&(null==l||null===(t=l.exercise)||void 0===t?void 0:t.user_exercise_status)>0&&(null==l||null===(i=l.exercise)||void 0===i?void 0:i.open_score))&&(0,O.jsx)(C.Z,{children:(0,O.jsxs)(S.Z,{justify:"end",className:"mb20",align:"middle",children:[(0,O.jsx)("span",{className:"font14",style:{color:"#6A7283"},children:"得分"}),(0,O.jsxs)("span",{className:"font14 ml10",children:[(null==a?void 0:a.user_score)&&(0,O.jsxs)("span",{children:[(0,O.jsx)("span",{className:X[Number(null==a?void 0:a.answer_status)]||"c-orange-ff9",children:null==a?void 0:a.user_score}),(0,O.jsx)("span",{style:{marginLeft:5,color:"#6A7283"},children:"分"})]}),!(null!=a&&a.user_score)&&(0,O.jsx)("span",{className:"c-red",children:"未评"})]})]})})]}),(0,O.jsx)("div",{className:z.simpleText,children:(0,O.jsx)(Y.Z,{value:null==a||null===(r=a.user_answer)||void 0===r?void 0:r[0]})})]}):(0,O.jsx)("div",{className:a.user_score&&(a.user_score===a.question_score?"c-green":"c-red"),children:B?(0,O.jsx)(J.Z,{watch:!0,isFocus:!0,defaultValue:null==a||null===(o=a.user_answer)||void 0===o?void 0:o[0],id:null==a?void 0:a.question_id,className:"mt20",onChange:function(e){m.current=e,b(!0)},onBlur:function(){setTimeout((function(){f(m.current)}),200),clearInterval(E.current),b(!1)}}):(0,O.jsx)("div",{onClick:function(){var e;!a.repeat_answer&&(null==a||null===(e=a.user_answer)||void 0===e?void 0:e.length)>0&&0!==a.ques_status?j.ZP.warning("该题不允许再修改答案"):(u.current=!0,T(!0))},className:z.startAnswer,children:(0,O.jsx)("div",{className:"c-blue",children:"点击开始作答"})})}),(0,W.dE)()&&(null==a?void 0:a.standard_answer)&&(0,O.jsx)("div",{className:z.analysisWrap,children:(0,O.jsxs)("div",{className:z.greyBg,children:[(0,O.jsxs)(S.Z,{className:"mb20",align:"middle",children:[(0,O.jsx)(C.Z,{className:"font14 mr10",style:{color:"#6A7283"},children:"【答案】"}),(0,O.jsx)(C.Z,{children:(0,O.jsx)(Y.Z,{value:null==a||null===(s=a.standard_answer)||void 0===s?void 0:s[0]})})]}),(0,O.jsxs)(S.Z,{children:[(0,O.jsx)("span",{className:"font14 mr10",style:{color:"#6A7283"},children:"【解析】"}),(0,O.jsx)(Y.Z,{className:z.renderHtml,value:null==a?void 0:a.analysis})]})]})})]})},$=t(57809),ee=function(e){var n,t,i,r,o=e.item,s=e.answerData,a=e.isEducation,l=e.onBlur,c=void 0===l?function(){}:l,u=(0,h.useRef)(""),d=(0,h.useState)(),f=p()(d,2),m=(f[0],f[1]),v=(0,h.useState)(!1),g=p()(v,2),x=g[0],_=g[1],w=(0,h.useState)(!1),y=p()(w,2),j=y[0],k=y[1],S=(0,h.useState)(a||!1),C=p()(S,2),N=C[0],B=C[1],T=(0,h.useState)(0),E=p()(T,2),A=E[0],P=E[1],Z=(0,h.useRef)(o.kp_content||""),I=(0,h.useRef)(o.kp_clazz),L=(0,h.useRef)(),q=(0,h.useMemo)((function(){var e;return null===(e=u.current)||void 0===e||null===(e=e.replace(/[\n|\r|\t]/g,""))||void 0===e?void 0:e.length}),[u.current]);return(0,h.useEffect)((function(){console.log("isFocus:",j),clearInterval(L.current),L.current=setInterval((function(){j&&c(u.current,Z.current,I.current)}),3e4)}),[j]),(0,h.useEffect)((function(){m(null==o?void 0:o.a_flag)}),[null==o?void 0:o.a_flag]),(0,h.useEffect)((function(){return function(){clearInterval(L.current)}}),[]),(0,O.jsxs)("div",{children:[1===(null==s||null===(n=s.exercise)||void 0===n?void 0:n.user_exercise_status)?(0,O.jsxs)("div",{children:[(0,O.jsxs)("div",{className:"mt30",children:[(0,O.jsx)("strong",{children:"作文题目:"}),(0,O.jsx)("br",{}),(0,O.jsx)(b.Z,{disabled:!0,className:"mt10",value:Z.current,onChange:function(e){Z.current=e.target.value,P(A+1)},onBlur:function(){c(u.current,Z.current,I.current),k(!1)}})]}),(0,O.jsxs)("div",{className:"mt30",children:[(0,O.jsx)("strong",{children:"作品类型:"}),(0,O.jsx)("br",{}),(0,O.jsxs)($.default,{disabled:!0,className:"mt10 w100",placeholder:"请选择作品类型",value:I.current,onChange:function(e){I.current=e,P(A+1)},onBlur:function(){c(u.current,Z.current,I.current),k(!1)},children:[(0,O.jsx)($.default.Option,{value:"科普",children:"科普"},1),(0,O.jsx)($.default.Option,{value:"科幻",children:"科幻"},2)]})]}),(0,O.jsx)("p",{className:"mt10 mb0",children:"作品内容:"}),(0,O.jsx)("div",{className:z.simpleText,children:(0,O.jsx)(Y.Z,{value:null==o||null===(t=o.user_answer)||void 0===t?void 0:t[0]})})]}):(0,O.jsxs)("div",{children:[(0,O.jsxs)("div",{className:"mt30",children:[(0,O.jsx)("strong",{children:"作文题目:"}),(0,O.jsx)("br",{}),(0,O.jsx)(b.Z,{className:"mt10",maxLength:60,onBlur:function(){return c(u.current,Z.current,I.current)},placeholder:"请输入作文题目(最多60个字)",value:Z.current,onChange:function(e){Z.current=e.target.value,P(A+1)}})]}),(0,O.jsxs)("div",{className:"mt30",children:[(0,O.jsx)("strong",{children:"作文类型:"}),(0,O.jsx)("br",{}),(0,O.jsxs)($.default,{className:"mt10 w100",placeholder:"请选择作品类型",value:I.current,onChange:function(e){I.current=e,c(e.current,Z.current,I.current),P(A+1)},children:[(0,O.jsx)($.default.Option,{value:"科普",children:"科普"},1),(0,O.jsx)($.default.Option,{value:"科幻",children:"科幻"},2)]})]}),(0,O.jsx)("div",{className:"mt30 mb20",children:(0,O.jsxs)("div",{className:o.user_score&&(o.user_score===o.question_score?"c-green":"c-red"),children:[(0,O.jsx)("strong",{children:"作文内容:"}),(0,O.jsx)("br",{}),(0,O.jsxs)("div",{className:"mt10 relative",children:[(0,O.jsxs)("span",{className:"c-blue",style:{position:x?"fixed":"absolute",top:x?61:4,left:10,zIndex:106},children:["已输入",q,"字"]}),N?(0,O.jsx)(J.Z,{className:z.simpleMd,disablePaste:!0,hidetoolBar:a,height:a?"60vh":150,isFocus:!0,defaultValue:null==o||null===(i=o.user_answer)||void 0===i?void 0:i[0],id:null==o?void 0:o.question_id,onFullScreen:function(e){return _(e)},onChange:function(e){u.current=e,k(!0),P(A+1)},onBlur:function(){c(u.current,Z.current,I.current),k(!1)}}):(0,O.jsx)("div",{onClick:function(){return B(!0)},className:z.startAnswer,children:(0,O.jsx)("div",{className:"c-blue",children:"点击开始作答"})})]})]})})]}),(0,W.dE)()&&(null==o?void 0:o.standard_answer)&&(0,O.jsxs)("div",{children:[(0,O.jsx)("p",{className:"mt10 mb0",children:"参考答案:"}),(0,O.jsx)("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5},children:(0,O.jsx)(Y.Z,{value:null==o||null===(r=o.standard_answer)||void 0===r?void 0:r[0]})})]})]})},ne=t(79817),te=t(14491),ie=t(80404),re="score___mcGn7",oe="wrap___h11sQ",se=function(e){var n=e.score;return n?(0,O.jsxs)("span",{className:oe,children:["得分",(0,O.jsx)("span",{className:"".concat(re," ml10 mr5"),children:n}),"分"]}):(0,O.jsx)("span",{className:"c-red",children:"未评"})},ae={flex_box_center:"flex_box_center___xK64P",flex_space_between:"flex_space_between___BNBCA",flex_box_vertical_center:"flex_box_vertical_center___ConJK",flex_box_center_end:"flex_box_center_end___L08sz",flex_box_column:"flex_box_column___hvk0E",shixunWrp:"shixunWrp___FTFC6",fill:"fill___H_Qd6",index:"index___PaSVJ",success:"success___fz_F7",fail:"fail___ftXSv",fillInput:"fillInput___q_sSb",shixunWrapper:"shixunWrapper___toGqF",score:"score___AsYGZ",name:"name___hawfX",programWrapper:"programWrapper___zVQPT",desc:"desc___MFIu5",content:"content___QuE41",analysisWrap:"analysisWrap___qGPzJ",greyBg:"greyBg___FIDIB"},le=function(e){var n,t,i,r,o,a=e.item,l=e.answerData,c=e.exerciseId,u=e.coursesId,d=(0,h.useState)([]),f=p()(d,2),m=f[0],g=f[1],x=(0,h.useState)([]),_=p()(x,2),w=_[0],y=_[1];(0,h.useEffect)((function(){var e;if(null!=a&&null!==(e=a.shixun_details)&&void 0!==e&&e.length){for(var n=[],t=[],i=function(){for(var e,i=0;i<(null==a?void 0:a.shixun_details[r].stage_list.length);i++){var o,l=null==a?void 0:a.shixun_details[r].stage_list[i];n.push(s()(s()({},l),{operation:null==a||null===(o=a.shixun_details)||void 0===o||null===(o=o[r])||void 0===o||null===(o=o.shixun_detail)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.game_identifier,is_jupyter:null==a?void 0:a.is_jupyter,is_jupyter_lab:null==a?void 0:a.is_jupyter_lab}))}if(null!=a&&null!==(e=a.shixun_details)&&void 0!==e&&null!==(e=e[r])&&void 0!==e&&e.shixun_detail){var c,u,d=null==a||null===(c=a.shixun_details)||void 0===c||null===(c=c[r])||void 0===c||null===(c=c.shixun_detail)||void 0===c?void 0:c[0],p=null==a||null===(u=a.shixun_details[r].stage_list)||void 0===u||null===(u=u.find((function(e){return(null==e?void 0:e.game_identifier)===(null==d?void 0:d.game_identifier)})))||void 0===u?void 0:u.user_score;t.push(s()(s()({},d),{},{user_score:p}))}},r=0;r<(null==a||null===(o=a.shixun_details)||void 0===o?void 0:o.length);r++){var o;i()}y(t),g(n)}}),[null==a?void 0:a.shixun_details]);var b=[{title:"关卡",dataIndex:"position",key:"position",align:"center"},{title:"任务名称",dataIndex:"name",key:"name",align:"center",render:function(e){return(0,O.jsx)("span",{className:"overflowHidden1",style:{maxWidth:"400px"},title:e&&e.length>25?e:"",children:e})}},{title:"评测次数",dataIndex:"evaluate_count",key:"evaluate_count",align:"center",render:function(e,n){return(0,O.jsx)("span",{children:n.evaluate_count?n.evaluate_count:(0,O.jsx)("span",{className:"color-grey-9",children:"--"})})}},{title:"完成时间",key:"endTime",dataIndex:"endTime",align:"center",render:function(e,n){var t=!1;return n.finished_time&&null!=l&&l.exercise&&null!=l&&l.exercise_answer_user&&(t=-1===(null==l?void 0:l.exercise.time)?G()(null==l?void 0:l.exercise.end_time).isBefore(n.finished_time):G()(null==l?void 0:l.exercise_answer_user.start_at).add(null==l?void 0:l.exercise.time,"m").isBefore(n.finished_time)),(0,O.jsxs)("span",{children:[n.finished_time||(0,O.jsx)("span",{className:"c-grey-999",children:"--"}),(0,O.jsx)("span",{className:"c-orange-ff9 ",children:t?"(已超时)":""})]})}},{title:"耗时",dataIndex:"time_consuming",key:"time_consuming",align:"center",render:function(e,n){return(0,O.jsx)("span",{children:n.time_consuming||(0,O.jsx)("span",{className:"color-grey-9",children:"--"})})}},{title:"查看答案",dataIndex:"view_answer",key:"view_answer",align:"center",render:function(e,n){return(0,O.jsx)("span",{children:n.view_answer?"已查看":"未查看"})}},{title:"得分",dataIndex:"user_score",key:"user_score",align:"center",render:function(e){return(0,O.jsxs)("span",{style:{color:"#FA6400"},children:[e,"分"]})}},{title:"操作",dataIndex:"operation",key:"operation",align:"center",render:function(e,n,t){return!e||n.is_jupyter||n.is_jupyter_lab?(0,O.jsx)("span",{className:"c-grey-999",children:"--"}):(0,O.jsx)(ne.Z,{affix:!1,className:"mt10",children:(0,O.jsx)(ne.Z.Link,{href:"#challenge_".concat(null==a?void 0:a.question_id).concat(t),title:(0,O.jsx)("span",{style:{color:"#0152d9",fontSize:14},children:"查看"})})})}}];console.log(w);var j={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return(0,O.jsxs)("div",{children:[(null==a||null===(n=a.shixun)||void 0===n?void 0:n.length)>0&&(0,O.jsx)("div",{className:ae.shixunWrapper,children:null==a||null===(t=a.shixun)||void 0===t?void 0:t.map((function(e,n){return(0,O.jsxs)(S.Z,{className:"mb20",justify:"space-between",children:[(0,O.jsxs)(C.Z,{flex:"1",children:[(0,O.jsxs)("span",{className:ae.score,children:["(",e.challenge_score,"分)"]}),(0,O.jsxs)("span",{className:ae.name,children:[e.challenge_name," "]})]}),(0,O.jsxs)(C.Z,{children:[!e.answer_status&&(0,O.jsx)("span",{className:"font14",style:{color:"#FA6400"},children:"未完成"}),!!e.answer_status&&(0,O.jsx)("span",{className:"font14",style:{color:"#37AD83"},children:"已完成"})]})]})}))}),0!==(null==l||null===(i=l.exercise)||void 0===i?void 0:i.student_commit_status)||0!==(null==l||null===(r=l.exercise)||void 0===r?void 0:r.user_exercise_status)?(0,O.jsxs)(O.Fragment,{children:[!(null==m||!m.length)&&(0,O.jsxs)("div",{children:[(0,O.jsxs)(S.Z,{justify:"space-between",className:"mb10",align:"middle",children:[(0,O.jsx)(C.Z,{className:"font14 c-grey-666",children:"阶段成绩"}),(0,O.jsx)(C.Z,{children:(0,O.jsx)(se,{score:null==a?void 0:a.user_score})})]}),(0,O.jsx)(te.Z,{columns:b,dataSource:m,pagination:!1})]}),!(null==w||!w.length)&&(0,O.jsxs)("div",{children:[(0,O.jsx)("p",{className:"font16 c-grey-666 mt10",children:"实训详情"}),null==w?void 0:w.map((function(e,n){return(0,O.jsxs)("div",{id:"challenge_".concat(null==a?void 0:a.question_id).concat(n),className:"mt5",children:[(0,O.jsxs)(S.Z,{children:[(0,O.jsxs)("span",{className:"font14 mr15",children:[" 第",e.position,"关"]}),(0,O.jsx)(v.Link,{className:"current c-black font14",target:"_blank",to:"/tasks/".concat(u,"/").concat(c,"/").concat(e.game_identifier,"/exercise"),children:e.name}),(0,O.jsx)(C.Z,{style:{marginLeft:"auto"},children:(0,O.jsx)(se,{score:e.user_score})})]}),0===(null==e?void 0:e.st)&&e.passed_code&&(0,O.jsxs)("aside",{className:ae.shixunWrp,children:[(0,O.jsxs)("h2",{children:["第一次通关的代码(未通关则为最后一次提交评测的代码)",(0,O.jsx)("span",{className:"c-light-black",children:e.path})]}),(0,O.jsx)(ie.ZP,{height:300,language:"python",theme:"default",value:e.passed_code,options:j})]})]})}))]})]}):(0,O.jsxs)(O.Fragment,{children:[(0,W.dE)()&&(0,O.jsx)(Y.Z,{className:"c-grey-999 mt20 mb20",value:null==a?void 0:a.question_title}),null==a||null===(o=a.shixun)||void 0===o?void 0:o.map((function(e,n){return(0,O.jsxs)("p",{className:"font16 c-grey-666 mb5",children:[(0,O.jsxs)("span",{className:"mr20",children:["第",null==e?void 0:e.challenge_position,"关 ",null==e?void 0:e.challenge_name]}),(0,O.jsxs)("span",{children:[null==e?void 0:e.challenge_score,"分"]})]},n)}))]})]})},ce=t(24334),ue=function(e){var n,t,i,r=e.item,o=e.answerData,s=(0,h.useState)([]),a=p()(s,2),l=(a[0],a[1]);(0,h.useEffect)((function(){var e,n;(null==r||null===(e=r.evaluate_codes)||void 0===e?void 0:e.length)>0?l(null==r||null===(n=r.evaluate_codes)||void 0===n?void 0:n.map((function(e,n){return{key:n+1,error_msg:null!=e&&e.error_msg?ce.Base64.decode(null==e?void 0:e.error_msg):""}}))):l([{key:"--",error_msg:"--"}])}),[null==r?void 0:r.evaluate_codes]);return(0,O.jsxs)("div",{className:"".concat(ae.programWrapper),children:[(0,O.jsx)("div",{className:ae.desc,children:"题目描述"}),(0,O.jsx)("div",{className:ae.content,children:(0,O.jsx)(Y.Z,{value:null==r?void 0:r.description})}),1===(null==o||null===(n=o.exercise)||void 0===n?void 0:n.user_exercise_status)&&(0,O.jsx)(S.Z,{justify:"end",className:"mt40",children:(0,O.jsx)(C.Z,{children:(0,O.jsx)(se,{score:null==r?void 0:r.user_score})})}),(null==r?void 0:r.passed_code)&&(0,O.jsxs)("aside",{className:ae.shixunWrp,children:[(0,O.jsx)("h3",{children:"第一次评测通过的代码(未通关则为最后一次提交评测的代码)"}),(0,O.jsx)(ie.ZP,{style:{border:"1px solid #ccc"},height:300,language:"python",theme:"vs-light",value:null!=r&&r.passed_code?ce.Base64.decode(null==r?void 0:r.passed_code):"",options:{selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1}})]}),1===(null==o||null===(t=o.exercise)||void 0===t?void 0:t.user_exercise_status)&&(null==o||null===(i=o.exercise)||void 0===i?void 0:i.answer_open)&&(0,O.jsxs)("div",{style:{background:"#F6F7F9"},className:"mt30 p20",children:[(0,O.jsxs)("div",{style:{marginBottom:"20px",fontSize:"16px",display:"flex"},children:[(0,O.jsx)("span",{style:{whiteSpace:"nowrap"},children:"【答案】"}),(0,O.jsx)(Y.Z,{value:(null==r?void 0:r.standard_answer)||""})]}),(0,O.jsxs)("div",{style:{fontSize:"16px",display:"flex"},children:[(0,O.jsx)("span",{style:{whiteSpace:"nowrap"},children:"【解析】"}),(0,O.jsx)(Y.Z,{value:(null==r?void 0:r.analysis)||"暂无解析"})]})]})]})},de=t(99267),pe=(b.Z.TextArea,{0:"c-red-ee4",1:"c-green"}),fe=function(e){var n,t,i,o,a=e.sign,c=e.item,d=e.answerData,f=e.onBlur,m=void 0===f?function(){}:f,g=(0,h.useState)([]),x=p()(g,2),_=x[0],w=x[1],y=(0,h.useState)([]),j=p()(y,2),k=j[0],N=j[1],B=(0,h.useRef)(),T=(0,h.useRef)(),E=(0,v.useSearchParams)(),A=p()(E,1)[0];return(0,h.useEffect)((function(){if(A.get("check")){var e,n;n=null==c||null===(e=c.standard_answer)||void 0===e?void 0:e.map((function(e){var n;return s()(s()({},e),{},{choice_id:e.position,answer_text:(null==c||null===(n=c.user_answer)||void 0===n||null===(n=n.find((function(n){return n.choice_id===e.choice_id})))||void 0===n?void 0:n.answer_text)||""})})),B.current=n,w(n)}else{var t,i;i=null==c||null===(t=c.standard_answers)||void 0===t?void 0:t.map((function(e){var n;return s()(s()({},e),{},{choice_id:e.position,answer_text:(null==c||null===(n=c.user_answer)||void 0===n||null===(n=n.find((function(n){return n.choice_id===e.position})))||void 0===n?void 0:n.answer_text)||""})})),B.current=i,w(i)}}),[null==c?void 0:c.user_answer]),(0,O.jsxs)("div",{children:[null==_?void 0:_.map((function(e,n){var t,i,o,s,p;return(0,O.jsxs)(S.Z,{className:"".concat(ae.baseMargin," ").concat(ae.fill),align:"middle",children:[(0,O.jsxs)(C.Z,{className:ae.index,children:["填空项",n+1]}),(0,O.jsx)(C.Z,{flex:"430px",className:"ml20 mr20",children:1===(null==e?void 0:e.model)?(0,O.jsx)(b.Z,{placeholder:"请输入答案",disabled:!c.repeat_answer&&(null==c||null===(t=c.user_answer)||void 0===t?void 0:t.length)>0&&0!==c.ques_status||!(null==d||!d.exercise.commit_status),value:null==e?void 0:e.answer_text,onChange:function(e){_[n].answer_text=e.target.value,w(r()(_))},onFocus:function(){a.current=!0},onBlur:function(t){setTimeout(u()(l()().mark((function t(){var i,r,o;return l()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m(null==e?void 0:e.answer_text,n+1,_);case 2:(i=t.sent).status?((o=k.slice())[n]={status:"fail",errorText:i.message},T.current=o,N(o)):((r=k.slice())[n]={status:"success",errorText:""},T.current=r,N(r));case 4:case"end":return t.stop()}}),t)}))),200)},className:"".concat(c.user_score&&(c.user_score===c.question_score?"c-green":"c-red")," ").concat(ae.fillInput)}):(0,O.jsx)(de.Z,{value:null==e?void 0:e.answer_text,disabled:!c.repeat_answer&&(null==c||null===(i=c.user_answer)||void 0===i?void 0:i.length)>0&&0!==c.ques_status||!(null==d||!d.exercise.commit_status),onChange:function(){var t=u()(l()().mark((function t(i){var o,s,a,c,u;return l()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return _[n].answer_text=i,w(r()(_)),t.next=4,m(null==e?void 0:e.answer_text,n+1,_);case 4:(o=t.sent).status?((u=(null==T||null===(c=T.current)||void 0===c?void 0:c.slice())||[].slice())[n]={status:"fail",errorText:o.message},T.current=u,N(u)):((a=(null==T||null===(s=T.current)||void 0===s?void 0:s.slice())||[].slice())[n]={status:"success",errorText:""},T.current=a,N(a));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})}),"success"===(null===(o=k[n])||void 0===o?void 0:o.status)&&(0,O.jsx)(C.Z,{children:(0,O.jsxs)(S.Z,{align:"middle",children:[(0,O.jsx)("i",{style:{marginRight:8},className:"iconfont icon-chenggong1 ".concat(ae.success)}),(0,O.jsx)("span",{className:ae.success,children:"保存成功"})]})}),"fail"===(null===(s=k[n])||void 0===s?void 0:s.status)&&(0,O.jsx)(C.Z,{children:(0,O.jsxs)(S.Z,{align:"middle",children:[(0,O.jsx)("i",{style:{marginRight:8},className:"iconfont icon-tishi7 ".concat(ae.fail)}),(0,O.jsx)("span",{className:ae.fail,children:null===(p=k[n])||void 0===p?void 0:p.errorText})]})})]},n)})),((0,W.GJ)()||(0,W.dE)()&&(null==d||null===(n=d.exercise)||void 0===n?void 0:n.user_exercise_status)>0&&(null==d||null===(t=d.exercise)||void 0===t?void 0:t.open_score))&&(0,O.jsxs)(S.Z,{justify:"end",className:"mb20",align:"middle",children:[(0,O.jsx)("span",{className:"font14",style:{color:"#6A7283"},children:"得分"}),(0,O.jsxs)("span",{className:"font14 ml10",children:[(null==c?void 0:c.user_score)&&(0,O.jsxs)("span",{children:[(0,O.jsx)("span",{className:pe[Number(null==c?void 0:c.answer_status)]||"c-orange-ff9",children:null==c?void 0:c.user_score}),(0,O.jsx)("span",{style:{marginLeft:5,color:"#6A7283"},children:"分"})]}),!(null!=c&&c.user_score)&&(0,O.jsx)("span",{className:"c-red",children:"未评"})]})]}),(null==d||null===(i=d.exercise)||void 0===i?void 0:i.answer_open)&&(0,O.jsx)("div",{className:ae.analysisWrap,children:(0,O.jsxs)("div",{className:ae.greyBg,children:[(0,O.jsxs)(S.Z,{className:"mb20",align:"middle",children:[(0,O.jsx)(C.Z,{className:"font14 mr10",style:{color:"#6A7283"},children:"【答案】"}),null==c||null===(o=c.standard_answer)||void 0===o?void 0:o.map((function(e,n){var t;return(0,O.jsx)(C.Z,{className:"mr40",children:(0,O.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,O.jsxs)("div",{style:{width:"100px"},children:["填空项",n+1]}),(0,O.jsx)(de.Z,{value:null==e||null===(t=e.answer_text)||void 0===t?void 0:t[0],disabled:!0})]})},n)}))]}),(0,O.jsxs)(S.Z,{children:[(0,O.jsx)("span",{className:"font14 mr10",style:{color:"#6A7283"},children:"【解析】"}),(0,O.jsx)(Y.Z,{className:ae.renderHtml,value:null==c?void 0:c.analysis})]})]})})]})},me=t(87838),he=t(88289),ve=(b.Z.TextArea,function(e){var n,t,i,r=e.item,o=e.answerData,a=e.onBlur,c=void 0===a?function(){}:a,d=(e.onDebug,e.setIsSubmitCode),f=(0,h.useState)([]),m=p()(f,2),g=m[0],x=m[1],_=(0,v.useSearchParams)(),w=p()(_,1)[0];return(0,h.useEffect)((function(){var e,n=null==r||null===(e=r.standard_answer_with_score)||void 0===e?void 0:e.map((function(e,n){var t;return s()(s()({},e),{},{value:(null==r||null===(t=r.user_answer)||void 0===t||null===(t=t.find((function(e){return parseInt(e.choice_id)===n+1})))||void 0===t?void 0:t.answer_text)||""})}));x(n)}),[null==r?void 0:r.standard_answer_with_score]),console.log(g,"userAnswer"),(0,O.jsxs)("div",{children:[(0,O.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:10},children:[(0,O.jsxs)("div",{style:{fontSize:14,color:"#FF0000"},children:[(0,O.jsx)(he.Z,{}),(0,O.jsx)("span",{style:{marginLeft:5},children:"注意:填写答案之后,必须提交代码进行评测,否则无法得分"})]}),!w.get("check")&&(0,O.jsx)(me.Z,{setIsSubmitCode:d,ButtonProps:{type:"primary"},ButtonText:"提交代码",items:s()(s()({},r),{},{userAnswer:g}),hackidentifier:null==r?void 0:r.hack_identifier})]}),(null==r?void 0:r.code)&&(0,O.jsx)("div",{style:{border:"1px solid #CCCCCC",padding:"10px",marginBottom:20},children:(0,O.jsx)(Y.Z,{disabledFill:!r.repeat_answer&&(null==r||null===(n=r.user_answer)||void 0===n?void 0:n.length)>0&&0!==r.ques_status||!(null==o||!o.exercise.commit_status),onFillBlur:function(){var e=u()(l()().mark((function e(n,t){var i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c(null==n||null===(i=n[parseInt(t)])||void 0===i?void 0:i.value,parseInt(t)+1,g);case 2:0===e.sent.status?(g[parseInt(t)].type="success",x(g)):(g[parseInt(t)].type="warning",x(g));case 4:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),className:ae.content,programFillValue:g,showProgramFill:!0,value:ce.Base64.decode((null==r?void 0:r.code)||"")})}),!(null==r||null===(t=r.standard_answer)||void 0===t||!t.length)&&(0,O.jsx)("div",{className:ae.analysisWrap,children:(0,O.jsxs)("div",{className:ae.greyBg,children:[(0,O.jsxs)(S.Z,{className:"mb20",align:"middle",children:[(0,O.jsx)(C.Z,{className:"font14 mr10",style:{color:"#6A7283"},children:"【答案】"}),null==r||null===(i=r.standard_answer)||void 0===i?void 0:i.map((function(e,n){return(0,O.jsxs)(C.Z,{className:"mr40",children:["填空项",n+1,":",null==e?void 0:e.answer_text]},n)}))]}),(0,O.jsxs)(S.Z,{children:[(0,O.jsx)("span",{className:"font14 mr10",style:{color:"#6A7283"},children:"【解析】"}),(0,O.jsx)(Y.Z,{className:ae.renderHtml,value:(null==r?void 0:r.analysis)||"暂无解析"})]})]})})]})}),ge=t(50414),xe=(b.Z.TextArea,function(e){var n=e.data;return(0,O.jsxs)("div",{className:"tc mt80 pb30",children:[(0,O.jsx)("img",{width:"486",src:ge.BV})," ",(0,O.jsx)("br",{}),-1===n.status&&(0,O.jsx)("div",{className:"c-grey-999 mt60",children:"您的IP不在考试允许的范围内!"}),-2===n.status&&(0,O.jsxs)("div",{className:" c-grey-999 mt60",children:["您已绑定当前考试IP地址:",(0,O.jsx)("span",{className:"c-red",children:n.ip}),"请使用该IP地址进入考试。"]}),(0,O.jsx)(A.ZP,{className:"mt40 pl20 pr20",type:"primary",children:(0,O.jsx)("a",{href:"/",children:"回到首页"})})]})}),_e=t(68339),we=t(89392),ye="comments___ZkLeS",be="greyText___ow9J6",je="commentText___Uklcs",ke="wrapper___XTdhL",Se="header___pq5DQ",Ce="updateTime___WYYjt",Ne="text___FmQY7",Be="date___DiXg4",Te=function(e){var n=e.list,t=e.hideScore,i=void 0!==t&&t;return(0,O.jsx)("div",{children:null==n?void 0:n.map((function(e){var n,t,r,o,s;return(0,O.jsxs)("div",{className:"mt20 ".concat(ke),children:[(0,O.jsxs)(S.Z,{align:"middle",className:Se,children:[(0,O.jsx)("img",{src:_e.Z.API_SERVER+"/images/"+(null===(t=e.user)||void 0===t?void 0:t.image_url)}),(0,O.jsx)("span",{className:"ml10 font16",children:null===(r=e.user)||void 0===r?void 0:r.name}),(0,O.jsxs)(C.Z,{className:Ce,children:[(0,O.jsx)("span",{className:Ne,children:"评阅时间"}),(0,O.jsx)("span",{className:Be,children:G()(null===(o=e.comments)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.updated_at).format("YYYY-MM-DD HH:mm")})]})]}),(0,O.jsx)("div",{className:ye,children:null==e||null===(s=e.comments)||void 0===s?void 0:s.map((function(n,t){var r;return(0,O.jsxs)("div",{children:[(0,O.jsxs)(S.Z,{align:"middle",justify:"space-between",children:[!!n.shixun_chanllge_position&&(0,O.jsxs)("div",{style:{flexShrink:0,marginRight:10},children:["第",n.shixun_chanllge_position,"关"]}),!i&&(0,O.jsxs)("div",{style:{flex:1},children:["原始得分",null==n?void 0:n.origin_score,"分,修正为",(0,O.jsx)("span",{className:"c-light-primary",children:null==n?void 0:n.score}),"分"]})]}),!!n.comment&&(0,O.jsxs)("div",{children:[" ",(0,O.jsx)("span",{className:"".concat(be," mr10"),children:"评语"}),(0,O.jsx)("span",{className:je,children:n.comment})]})]},(null==e||null===(r=e.user)||void 0===r?void 0:r.user_id)+"-"+t)}))})]},null==e||null===(n=e.user)||void 0===n?void 0:n.user_id)}))})},Ee=t(16279),Ae=t(12911),Pe=t.n(Ae),Ze=t(4751),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},Le=t(68475),qe=function(e,n){return h.createElement(Le.Z,(0,Ze.Z)({},e,{ref:n,icon:Ie}))};var Me=h.forwardRef(qe),Re=t(22415),Oe=t(86574),De=t(55357),Fe="codeInput___xSFAu",Ge=t(92310),ze=t.n(Ge),He=function(e){var n=e.className,t=e.style,i=e.onOk,o=(0,h.useState)(["","","","","",""]),s=p()(o,2),a=s[0],l=s[1],c=(0,h.useState)(0),u=p()(c,2),d=u[0],f=u[1],m=(0,h.useRef)([]);(0,h.useEffect)((function(){var e=a.findIndex((function(e){return!e}));-1===e&&i(a),f(e)}),[a]),(0,h.useEffect)((function(){var e;null===(e=m.current[d])||void 0===e||e.focus()}),[d]);return(0,O.jsx)("div",{className:ze()(Fe,n),style:t,children:a.map((function(e,n){return(0,O.jsx)("input",{type:"text",disabled:d!==n,maxLength:1,value:""===e?"":"*",onChange:function(e){return function(e,n){var t=e.target.value;if(/^\d*$/.test(t)){var i=r()(a);i[n]=t||"",l(i)}}(e,n)},onKeyDown:function(e){return function(e,n){if("Backspace"===e.key&&n>0){e.preventDefault();var t=r()(a);t[n-1]="",l(t)}}(e,n)},ref:function(e){m.current[n]=e}},n)}))})},We=t(95135),Ue=t(5610),Ve=["globalSetting","loading","user","exercise","dispatch"],Ke=_.Z.Countdown,Ye=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Je={0:"c-red-ee4",1:"c-green"},Xe=(0,v.connect)((function(e){var n=e.loading,t=e.user,i=e.exercise;return{globalSetting:e.globalSetting,user:t,exercise:i,loading:n.effects}}))((function(e){e.globalSetting,e.loading;var n,t,i,r,o,a,c,d,f,g,_,F,J,X,$,ne,te,ie,re,oe,se,ae,ce,de,pe,me,he,ge,ye,be,je,ke,Se,Ce,Ne,Be,Ae,Ze,Ie,Le,qe,Fe,Ge,ze,Xe,Qe=e.user,$e=e.exercise,en=e.dispatch,nn=(m()(e,Ve),(0,v.useLocation)()),tn=(0,v.useSearchParams)(),rn=p()(tn,1)[0],on=(0,v.useParams)(),sn=(0,h.useState)({}),an=p()(sn,2),ln=an[0],cn=an[1],un=(0,h.useState)({}),dn=p()(un,2),pn=dn[0],fn=dn[1],mn=(0,h.useState)({}),hn=p()(mn,2),vn=hn[0],gn=hn[1],xn=(0,h.useState)(!1),_n=p()(xn,2),wn=_n[0],yn=_n[1],bn=(0,h.useState)(!0),jn=p()(bn,2),kn=jn[0],Sn=jn[1],Cn=(0,h.useState)(!1),Nn=p()(Cn,2),Bn=Nn[0],Tn=Nn[1],En=(0,h.useState)(!1),An=p()(En,2),Pn=An[0],Zn=An[1],In=(0,h.useState)(!1),Ln=p()(In,2),qn=Ln[0],Mn=Ln[1],Rn=(0,h.useState)(!1),On=p()(Rn,2),Dn=On[0],Fn=On[1],Gn=(0,h.useState)(),zn=p()(Gn,2),Hn=zn[0],Wn=zn[1],Un=(0,h.useState)(""),Vn=p()(Un,2),Kn=Vn[0],Yn=Vn[1],Jn=(0,h.useState)("none"),Xn=p()(Jn,2),Qn=Xn[0],$n=Xn[1],et=(0,h.useState)(""),nt=p()(et,2),tt=nt[0],it=nt[1],rt=(0,h.useState)({status:0}),ot=p()(rt,2),st=ot[0],at=ot[1],lt=(0,h.useState)(!1),ct=p()(lt,2),ut=ct[0],dt=ct[1],pt=(0,h.useState)("kepukehuan.educoder.net"===window.document.domain),ft=p()(pt,2),mt=ft[0],ht=(ft[1],(0,h.useState)(!0)),vt=p()(ht,2),gt=vt[0],xt=vt[1],_t=(0,h.useState)(!1),wt=p()(_t,2),yt=wt[0],bt=wt[1],jt=(0,h.useState)(null),kt=p()(jt,2),St=kt[0],Ct=kt[1],Nt=(0,h.useState)(!1),Bt=p()(Nt,2),Tt=Bt[0],Et=Bt[1],At=(0,h.useState)(0),Pt=p()(At,2),Zt=Pt[0],It=Pt[1],Lt=(0,h.useRef)(),qt=(0,h.useRef)(),Mt=(0,h.useRef)(!1),Rt=(0,h.useRef)(),Ot=(0,h.useRef)(),Dt=(0,h.useRef)(),Ft=(0,h.useRef)(),Gt=w.Z.useForm(),zt=p()(Gt,1)[0],Ht=(0,h.useMemo)((function(){return new WebSocket("ws://localhost:8082")}),[]),Wt=(0,h.useState)(0),Ut=p()(Wt,2),Vt=Ut[0],Kt=Ut[1],Yt=(0,h.useState)(0),Jt=p()(Yt,2),Xt=Jt[0],Qt=Jt[1],$t=(0,h.useState)(!1),ei=p()($t,2),ni=ei[0],ti=ei[1],ii=(0,h.useState)(!1),ri=p()(ii,2),oi=ri[0],si=ri[1],ai=(0,h.useState)(!1),li=p()(ai,2),ci=li[0],ui=li[1],di=["/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/detail"),"/classrooms/".concat(on.coursesId,"/exercise"),"/classrooms/".concat(on.coursesId,"/exercise/"),"/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/users/").concat(null===(n=Qe.userInfo)||void 0===n?void 0:n.login,"/check"),"/classrooms/".concat(on.coursesId,"/exercisenotice/").concat(on.categoryId,"/users/").concat(null===(t=Qe.userInfo)||void 0===t?void 0:t.login),"/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/users/").concat(null===(i=Qe.userInfo)||void 0===i?void 0:i.login)],pi=(0,h.useState)(!1),fi=p()(pi,2),mi=fi[0],hi=fi[1],vi=(0,h.useState)({left:0,top:0,bottom:0,right:0}),gi=p()(vi,2),xi=gi[0],_i=gi[1],wi=(0,h.useRef)(null),yi=(0,h.useState)(!0),bi=p()(yi,2),ji=bi[0],ki=bi[1],Si=(0,h.useRef)(),Ci=(0,h.useState)(!1),Ni=p()(Ci,2),Bi=Ni[0],Ti=Ni[1];(0,De.y)((0,W.dE)());var Ei=(0,We._)(ln);(0,h.useEffect)((function(){return document.body.setAttribute("data-custom","auto"),function(){document.body.removeAttribute("data-custom")}}),[]),(0,h.useEffect)((function(){var e,n;if(document.body.scrollIntoView(),"游客"!==(null===(e=Qe.userInfo)||void 0===e?void 0:e.real_name))return null!==(n=Qe.userInfo)&&void 0!==n&&n.user_id&&((0,W.GJ)()?Di():Qe.userInfo.login&&Ii()),window.addEventListener("message",Pi),function(){window.removeEventListener("message",Pi),nn.pathname.indexOf("/detail")>-1&&(0,U.BU)()};window.location.href="/classrooms/".concat(on.coursesId,"/exercise")}),[on.categoryId,Qe.userInfo.login]),(0,h.useEffect)((function(){return window.addEventListener("beforeunload",Ai),function(){Ei(),window.removeEventListener("beforeunload",Ai)}}),[]),(0,h.useEffect)((function(){return en({type:"globalSetting/headerFooterToggle",payload:!1}),function(){en({type:"globalSetting/headerFooterToggle",payload:!0})}}),[]),(0,h.useEffect)((function(){var e,n;null!=ln&&null!==(e=ln.question_status)&&void 0!==e&&e.every((function(e){return!!e.ques_status&&ut&&(null==pn?void 0:pn.used_screen_num)<(null==pn?void 0:pn.screen_num)}))&&setTimeout((function(){var e;null===(e=qt.current)||void 0===e||e.handlePhoto()}),1300),Ct(null==ln||null===(n=ln.exercise_question_types)||void 0===n||null===(n=n[Vt])||void 0===n||null===(n=n.items)||void 0===n?void 0:n[Xt])}),[ln]);var Ai=function(e){var n;null!=pn&&pn.is_commit||!(0,W.dE)()||(0,M.RG)(" ",!0),localStorage.setItem("Refresh","1"),null!==(n=$e.exerciseUserInfo)&&void 0!==n&&n.screen_open&&window.navigator.sendBeacon("".concat(_e.Z.API_SERVER,"/api/exercises/").concat(on.categoryId,"/commit_screen_at.json"),{})},Pi=function(e){"backExercise"===e.data&&((0,M.RG)(" ",!0),Zi())},Zi=function(){$n("none"),Yn(""),Di()},Ii=function(){var e=u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:qi();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Li=function(){var e=u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:xt(!1),y.Z.info({title:"开考密码",width:500,centered:!0,closable:!1,keyboard:!1,maskClosable:!1,maskStyle:{background:"#000"},okText:"进入考试",onOk:function(){return new Promise(function(){var e=u()(l()().mark((function e(n,t){var i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,zt.validateFields();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),t();case 8:return e.t1=V.pL,e.t2=s(),e.t3={exercise_user_id:null==pn?void 0:pn.exercise_user_id,categoryId:on.categoryId},e.next=13,zt.validateFields();case 13:return e.t4=e.sent,e.t5=(0,e.t2)(e.t3,e.t4),e.next=17,(0,e.t1)(e.t5);case 17:0===(null==(i=e.sent)?void 0:i.status)?(xt(!0),Mi(),n(i)):(zt.setFields([{name:"start_password",errors:[null==i?void 0:i.message]}]),t());case 19:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(n,t){return e.apply(this,arguments)}}())},content:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("p",{className:"",children:"请输入监考老师宣布本场考试的开考密码后进入考试"}),(0,O.jsx)(w.Z,{form:zt,autoComplete:"off",children:(0,O.jsx)(w.Z.Item,{name:"start_password",label:"开考密码",rules:[{required:!0,message:"请输入开考密码"}],children:(0,O.jsx)(b.Z.Password,{autoComplete:"off"})})})]})});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),qi=function(){var e=u()(l()().mark((function e(){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,en({type:"exercise/getExerciseUserInfo",payload:s()({},on)});case 2:n=e.sent,Ft.current=s()(s()({},n.data),{},{status:null==n?void 0:n.status}),fn(s()(s()({},n.data),{},{status:null==n?void 0:n.status}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,h.useEffect)((function(){if(null!=pn&&pn.exercise_user_id){if(null!=pn&&pn.is_commit||(0,M.RG)(" ",!0),null!=pn&&pn.is_commit||!("inner"===(null==pn?void 0:pn.ip_limit)||null!=pn&&pn.ip_bind_type)||(Dt.current="&ip_limit=".concat(null==pn?void 0:pn.ip_limit,"&ip_bind=").concat(null==pn?void 0:pn.ip_bind,"&ip_bind_type=").concat(null==pn?void 0:pn.ip_bind_type)),null!=pn&&pn.is_commit){if(!pn.answered_open)return void y.Z.info({width:500,centered:!0,icon:null,title:"提示",content:"老师已设置本试卷在交卷后不可查看",onOk:function(){window.location.href="/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/detail")}})}else{if((0,M.RG)(" ",!0),null==pn||!pn.can_start)return void(window.location.href="/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/users/").concat(on.login,"/check"));if(null!=pn&&pn.is_locked&&pn.ip_error)return void en({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:s()(s()({},pn),{},{id:on.categoryId})}});if((null==pn||!pn.is_locked)&&pn.ip_error,""===document.referrer||2===performance.navigation.type||!di.includes(new URL(document.referrer).pathname))return sessionStorage.setItem("illegalEntry","illegalEntry"),void v.history.push("/classrooms/".concat(on.coursesId,"/exercise/"));if(null!=pn&&pn.start_locked&&(null==pn||!pn.user_is_enter))return void Li();if(null!=pn&&pn.is_locked&&1===performance.navigation.type&&!sessionStorage.getItem("studentunlock"))return void en({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:s()(s()({},pn),{},{id:on.categoryId})}});if((0,R.ZP)("/api/exercises/".concat(null==on?void 0:on.categoryId,"/close_pop.json"),{method:"post"}),null!=pn&&pn.is_locked&&0===performance.navigation.type&&null!=pn&&pn.user_is_enter&&(null==pn||!pn.is_commit)&&null!=pn&&pn.show_pop)return void en({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:s()(s()({},pn),{},{id:on.categoryId})}})}Mi()}return function(){null!=pn&&pn.is_commit||!(0,W.dE)()||(0,M.RG)(" ",!0)}}),[pn]);var Mi=function(){var e=u()(l()().mark((function e(){var n,t,i,r,o,s,a,c,u,d,p,f,m,h,v,g,x;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(sessionStorage.setItem("studentunlock","studentunlock"),!("no"!==(null==(a={data:pn,status:pn.status})||null===(n=a.data)||void 0===n?void 0:n.ip_limit)||null!=a&&null!==(t=a.data)&&void 0!==t&&t.ip_bind_type)){e.next=6;break}return e.next=5,(0,H.y)({ip_limit:null==a||null===(i=a.data)||void 0===i?void 0:i.ip_limit,ip_bind:null==a||null===(r=a.data)||void 0===r?void 0:r.ip_bind_type});case 5:Rt.current=e.sent;case 6:if(!("no"!==(null==a||null===(o=a.data)||void 0===o?void 0:o.ip_limit)||null!=a&&null!==(s=a.data)&&void 0!==s&&s.ip_bind)){e.next=14;break}if(!("inner"===(null==a||null===(c=a.data)||void 0===c?void 0:c.ip_limit)||null!=a&&null!==(u=a.data)&&void 0!==u&&u.ip_bind_type)){e.next=14;break}return e.next=10,(0,M.oi)({exerciseId:on.categoryId,ip:Rt.current,errmsgHide:!0,ip_limit:(null==a||null===(d=a.data)||void 0===d?void 0:d.ip_limit)||"no",ip_bind:null==a||null===(p=a.data)||void 0===p?void 0:p.ip_bind,ip_bind_type:null==a||null===(f=a.data)||void 0===f?void 0:f.ip_bind_type});case 10:if(0===(null==(m=e.sent)?void 0:m.status)){e.next=14;break}return at(m),e.abrupt("return");case 14:if(0!=(null==a?void 0:a.status)){e.next=26;break}if(!((null==a||null===(h=a.data)||void 0===h?void 0:h.used_screen_num)>(null==a||null===(v=a.data)||void 0===v?void 0:v.screen_num)&&null!=a&&null!==(g=a.data)&&void 0!==g&&g.screen_open)){e.next=19;break}return ui(!0),er(),e.abrupt("return",!1);case 19:if(Tn(null==a?void 0:a.data.check_camera),null!=a&&a.data.check_camera){e.next=26;break}if(null==a||!a.data.screen_shot_open){e.next=24;break}return Mn(null==pn?void 0:pn.screen_shot_open),e.abrupt("return");case 24:Zn(null==a||null===(x=a.data)||void 0===x?void 0:x.screen_open),Di();case 26:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ri=function(){var e=u()(l()().mark((function e(){var n,t=arguments;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.length>0&&void 0!==t[0]?t[0]:St,rn.get("check")){e.next=4;break}return e.next=4,(0,R.ZP)("/api/exercise_questions/".concat(null==n?void 0:n.question_id,"/exercise_answers/save_hack_evaluate.json"),{});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Oi=function(){var e=u()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(1!==(null==n?void 0:n.type)){e.next=3;break}return y.Z.info({centered:!0,width:470,okText:"确定",cancelText:"取消",title:"提示",icon:null,keyboard:!1,onOk:function(){v.history.replace("/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/detail"))},content:(0,O.jsx)("div",{children:(null==n?void 0:n.message)||""})}),e.abrupt("return",Promise.reject());case 3:if(2!==(null==n?void 0:n.type)){e.next=7;break}return t=function(){v.history.replace("/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/centralizeReview/").concat(null==n?void 0:n.login))},y.Z.confirm({centered:!0,width:470,okText:"确定",cancelText:"取消",title:"提示",icon:null,keyboard:!1,onOk:t,onCancel:function(){v.history.replace("/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/detail"))},content:(0,O.jsxs)("div",{children:[(0,O.jsxs)("div",{children:["您已成为指定阅卷教师,是否现在前往",(0,O.jsx)("span",{onClick:t,className:"ml5 mr5 c-light-primary current",children:"集中阅卷"}),"继续评阅?"]}),(0,O.jsx)("div",{className:"c-grey-999",children:"(阅卷结束后恢复学生个人评阅功能,并展示学生成绩)"})]})}),e.abrupt("return",Promise.reject());case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Di=function(){var e=u()(l()().mark((function e(){var n,t,i,r,o,a,c,u,d,p,f,m,h,v,g,x,_,w,y,b,k,S,C,N,B,T,E,A,P,Z,I,L;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(document.body.scrollIntoView(),yn(!0),i=null===(n=Qe.userInfo)||void 0===n?void 0:n.user_id,!(0,W.GJ)()){e.next=11;break}return e.next=6,(0,V.BJ)({exerciseId:on.categoryId,login:on.login}).catch((function(){return yn(!1)}));case 6:t=e.sent,(null===(r=t)||void 0===r?void 0:r.exercise)&&(t.exercise.user_exercise_status=1),i=null===(o=t)||void 0===o||null===(o=o.exercise_answer_user)||void 0===o?void 0:o.user_id,e.next=44;break;case 11:if(!rn.get("check")){e.next=18;break}return e.next=14,(0,V.BJ)(s()(s()({},on),{},{exerciseId:on.categoryId,login:on.login})).catch((function(){return yn(!1)}));case 14:t=e.sent,i=null===(m=t)||void 0===m||null===(m=m.exercise)||void 0===m?void 0:m.user_id,e.next=38;break;case 18:if(!("no"!==(null===(h=Ft.current)||void 0===h?void 0:h.ip_limit)||null!==(v=Ft.current)&&void 0!==v&&v.ip_bind_type)){e.next=22;break}return e.next=21,(0,H.y)({ip_limit:null===(g=Ft.current)||void 0===g?void 0:g.ip_limit,ip_bind:null===(x=Ft.current)||void 0===x?void 0:x.ip_bind_type});case 21:Rt.current=e.sent;case 22:return e.next=24,(0,V.CD)(s()(s()({},on),{},{ip:Rt.current})).catch((function(){return yn(!1)}));case 24:if(-1!==(t=e.sent).status){e.next=28;break}return Gi(),e.abrupt("return");case 28:if(null===(_=t)||void 0===_||null===(_=_.exercise)||void 0===_||!_.only_on_client||(0,M.WX)()){e.next=32;break}return j.ZP.warning("请用客户端作答"),Gi(),e.abrupt("return");case 32:if(-5!==(null===(w=t)||void 0===w?void 0:w.status)){e.next=35;break}return en({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:s()(s()({},Ft.current),{},{id:on.categoryId,errorMessage:null===(S=t)||void 0===S?void 0:S.message})}}),e.abrupt("return");case 35:(null===(y=t)||void 0===y?void 0:y.exercise)&&(t.exercise.user_exercise_status=0),(null===(b=t)||void 0===b?void 0:b.exercise)&&(t.exercise.exercise_status=2),null===(k=t)||void 0===k||null===(k=k.exercise_question_types)||void 0===k||k.map((function(e){var n;(null==e?void 0:e.question_type)<3&&(null==e||null===(n=e.items)||void 0===n||n.map((function(e){e.user_answer=e.question_choices.filter((function(e){return e.user_answer_boolean})).map((function(e){return e.choice_id}))})))}));case 38:if(null!==(a=t)&&void 0!==a&&null!==(a=a.exercise)&&void 0!==a&&a.can_start||null===(c=t)||void 0===c||!c.exercise){e.next=41;break}return window.location.href="/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/users/").concat(on.login,"/check"),e.abrupt("return");case 41:0!==(null===(u=t.exercise)||void 0===u?void 0:u.commit_status)||Ot.current||(Ot.current=!0,(0,M.G5)(Ht,null===(C=t)||void 0===C?void 0:C.exercise)),null!==(d=t)&&void 0!==d&&null!==(d=d.exercise)&&void 0!==d&&d.left_time&&setTimeout((function(){it(z.red)}),1e3*((null===(N=t)||void 0===N||null===(N=N.exercise)||void 0===N?void 0:N.left_time)-300>0?(null===(B=t)||void 0===B||null===(B=B.exercise)||void 0===B?void 0:B.left_time)-300:0)),null===(p=t)||void 0===p||null===(p=p.exercise)||void 0===p||p.take_photo,null===(f=t)||void 0===f||null===(f=f.exercise)||void 0===f||f.photo_count;case 44:return yn(!1),e.next=47,Oi(t);case 47:return t&&((null!==(T=t)&&void 0!==T&&null!==(T=T.exercise)&&void 0!==T&&T.question_random||null!==(E=t)&&void 0!==E&&null!==(E=E.exercise)&&void 0!==E&&E.choice_random)&&(L=1,t.exercise.question_random=null===(I=t)||void 0===I||null===(I=I.exercise_question_types)||void 0===I?void 0:I.map((function(e){var n,r;return null!==(n=t)&&void 0!==n&&null!==(n=n.exercise)&&void 0!==n&&n.choice_random&&(0!==e.question_type&&1!==e.question_type||e.items.map((function(e){return e.question_choices=(0,M.M2)(e.question_choices,i),e})),7===e.question_type&&e.items.forEach((function(e){e.sub_exercise_questions.forEach((function(e){e.question_choices&&(e.question_choices=(0,M.M2)(e.question_choices,i))}))}))),null!==(r=t)&&void 0!==r&&null!==(r=r.exercise)&&void 0!==r&&r.question_random&&(e.items=(0,M.M2)(e.items,i)),e.items.map((function(e){return e.question_num=L,L++,e})),e}))),t.exercise_types=(null===(A=t)||void 0===A?void 0:A.exercise_types)||(null===(P=t)||void 0===P||null===(P=P.exercise_scores)||void 0===P?void 0:P.exercise_types),t.question_status=t.question_status||Fi((null===(Z=t)||void 0===Z?void 0:Z.exercise_question_types)||[]),cn(t)),e.abrupt("return",t);case 49:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Fi=function(e){var n=[];return e.forEach((function(e){n=n.concat(e.items)})),n=n.map((function(e){return{ques_status:null==e?void 0:e.ques_status,score_status:null==e?void 0:e.score_status,question_num:null==e?void 0:e.question_num,ques_id:null==e?void 0:e.question_id}}))};(0,h.useEffect)((function(){var e,n,t;0===(null===(e=ln.exercise)||void 0===e?void 0:e.left_time)&&er(),(null===(n=ln.exercise)||void 0===n?void 0:n.left_time)&&Wn(Date.now()+1e3*(null==ln||null===(t=ln.exercise)||void 0===t?void 0:t.left_time))}),[null===(r=ln.exercise)||void 0===r?void 0:r.left_time]);var Gi=function(){(0,M.G5)(Ht),(0,M.WX)()?window.location.href=(0,M.Ll)()?"/":"/classrooms/examList":window.location.href=(0,M.Ll)()?"/":"/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/detail")},zi=function(){var e=u()(l()().mark((function e(){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.PT)(s()({},on));case 2:if(null==(n=e.sent)||!n.has_time){e.next=9;break}return Wn(Date.now()+1e3*(null==n?void 0:n.left_time)),cn((function(e){return s()(s()({},e),{},{exercise:s()(s()({},e.exercise),{},{left_time:null==n?void 0:n.left_time})})})),e.abrupt("return",!0);case 9:return Hi(),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Hi=function(){var e=u()(l()().mark((function e(){var n,t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Mt.current){e.next=2;break}return e.abrupt("return");case 2:return Mt.current=!0,e.next=5,(0,V.VL)({categoryId:on.categoryId,commit_method:2});case 5:n=e.sent,Zn(!1),Mn(!1),0===(null==n?void 0:n.status)&&(y.Z.info({width:530,title:"提示",centered:!0,okText:"确定",content:(0,O.jsxs)("div",{children:["答题结束了,系统已自动提交试卷",(0,O.jsx)("br",{}),"不能再修改答题"]}),onOk:function(){var e=u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Gi();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),j.ZP.info(null==n?void 0:n.message)),-3===(null==n?void 0:n.status)&&(Mt.current=!1,t=parseInt(null==n?void 0:n.message),ln.exercise.left_time=t,cn(s()({},ln)));case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Wi=function(){var e=u()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(n.is_jupyter||n.is_jupyter_lab?K.BK:K.Ir)({id:n.shixun_identifier});case 2:(null!=(t=e.sent)&&t.game_identifier||null!=t&&t.identifier)&&(n.is_jupyter_lab||n.is_jupyter?Yn("/tasks/".concat(t.identifier,"/jupyter?type=exercises&exercisesId=").concat(on.categoryId,"&coursesId=").concat(on.coursesId,"&login=").concat(on.login,"&questionId=").concat(n.question_id,"&isFullScreen=").concat((0,U.vp)()).concat(Dt.current||"","&ip_limit=").concat(null==pn?void 0:pn.ip_limit,"&ip_bind=").concat(null==pn?void 0:pn.ip_bind,"&ip_bind_type=").concat(null==pn?void 0:pn.ip_bind_type)):Yn("/tasks/".concat(t.game_identifier,"?type=exercises&exercisesId=").concat(on.categoryId,"&coursesId=").concat(on.coursesId,"&login=").concat(on.login,"&questionId=").concat(n.question_id,"&isFullScreen=").concat((0,U.vp)()).concat(Dt.current||"","&ip_limit=").concat(null==pn?void 0:pn.ip_limit,"&ip_bind=").concat(null==pn?void 0:pn.ip_bind,"&ip_bind_type=").concat(null==pn?void 0:pn.ip_bind_type)),$n("block")),-3===(null==t?void 0:t.status)?(0,M.eF)():2===(null==t?void 0:t.status)?Ui(null==t?void 0:t.message,n.question_id,n.is_jupyter_lab,n.is_jupyter):3===(null==t?void 0:t.status)&&Vi(null==t?void 0:t.message);case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ui=function e(n,t,i,r){var o,s;n=null!==(o=n)&&void 0!==o&&o.includes(".json")?n:"".concat(n,".json"),y.Z.confirm({centered:!0,title:"提示",icon:null,okText:"确定",cancelText:"取消",content:(0,O.jsx)("div",{children:"实训已经更新了,正在为您重置!"}),onOk:(s=u()(l()().mark((function o(){var s,a;return l()().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,V.$Q)({url:n});case 2:if(s=o.sent){o.next=5;break}return o.abrupt("return");case 5:return j.ZP.success("重置成功,正在进入实践项目!"),o.next=8,(0,K.Ir)({id:s.shixun_identifier});case 8:if(null==(a=o.sent)||!a.game_identifier){o.next=12;break}return Wi({shixun_identifier:null==a?void 0:a.game_identifier,question_id:t,is_jupyter_lab:i,is_jupyter:r}),o.abrupt("return");case 12:2===(null==a?void 0:a.status)?e(null==a?void 0:a.message,t,i,r):3===(null==a?void 0:a.status)&&Vi(null==a?void 0:a.message);case 13:case"end":return o.stop()}}),o)}))),function(){return s.apply(this,arguments)})})},Vi=function(e){y.Z.confirm({centered:!0,title:"提示",icon:null,okText:"确定",cancelText:"取消",content:(0,O.jsxs)("div",{children:["目前该实践项目尚在内测中,将于",e,"之后开放,谢谢!"]})})},Ki=function(){var e=u()(l()().mark((function e(n){var t,i,r;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.o3)({exercise_user_id:null===(t=$e.exerciseUserInfo)||void 0===t?void 0:t.exercise_user_id,shixun_id:n.shixun_id});case 2:null!=(i=e.sent)&&i.redo?r=y.Z.confirm({width:530,title:"提示",icon:null,centered:!0,okText:"确定",cancelText:"再想想",content:(0,O.jsx)("div",{children:"您之前已经挑战过该实训,考试过程中需要重新挑战"}),onCancel:function(){r.destroy()},onOk:function(){var e=u()(l()().mark((function e(){var t,r,o,a;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$Q)({id:null==i?void 0:i.myshixun_identifier,url:null==i?void 0:i.url});case 2:(t=e.sent)&&(Ei(),r=(0,we.cloneDeep)(null==ln?void 0:ln.exercise_question_types),o=null==r?void 0:r.findIndex((function(e){return 5===e.question_type})),r[o].items.find((function(e){return e.question_id===n.question_id})).redo=!1,r[o].items.find((function(e){return e.question_id===n.question_id})).shixun_identifier=t.shixun_identifier,ln.exercise_question_types=r,cn(ln),a=s()(s()({},n),{},{shixun_identifier:t.shixun_identifier}),Wi(a));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}):(Ei(),Wi(n));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Yi=function(){var e=u()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.hack_identifier){e.next=5;break}return e.next=3,(0,V.nF)({id:n.hack_identifier});case 3:0===(null==(t=e.sent)?void 0:t.status)&&(Ei(),Yn("/myproblems/".concat(t.identifier,"?type=exercises&exercisesId=").concat(on.categoryId,"&coursesId=").concat(on.coursesId,"&login=").concat(on.login,"&questionId=").concat(n.question_id).concat(Dt.current||"")),$n("block"));case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ji=function(){var e=u()(l()().mark((function e(n,t,i,r,o,a,c){var u,d,p,f,m;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(bt(!1),c||yn(!0),p={questionId:n,exercise_choice_id:t,answer_text:i},"inner"!==(null==pn?void 0:pn.ip_limit)&&!pn.ip_bind_type){e.next=7;break}return e.next=6,(0,H.y)({ip_limit:null==pn?void 0:pn.ip_limit,ip_bind:null==pn?void 0:pn.ip_bind_type});case 6:d=e.sent;case 7:if(o&&(p.kp_content=o),o&&(p.kp_clazz=a),n){e.next=12;break}return console.error("handleSave no questionId params"),e.abrupt("return");case 12:return p.ip=d,e.next=15,(0,V.oX)(p);case 15:return null!=(f=e.sent)&&null!==(u=f.alert)&&void 0!==u&&u.length&&(null==f||null===(m=f.alert)||void 0===m||m.map((function(e){y.Z.warn({title:"提示",autoFocusButton:null,content:e})}))),0===(null==f?void 0:f.status)?(r&&r(),Er()):-1===(null==f?void 0:f.status)?setTimeout((function(){Gi()}),1e3):-2===(null==f?void 0:f.status)?at(f):-3===(null==f?void 0:f.status)?(f.status=-1,at(f)):-4===(null==f?void 0:f.status)?Er():-5===(null==f?void 0:f.status)?en({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:s()(s()({},pn),{},{id:on.categoryId,errorMessage:null==f?void 0:f.message})}}):j.ZP.warning(f.message||"试卷已截止,已自动交卷"),yn(!1),e.abrupt("return",f);case 20:case"end":return e.stop()}}),e)})));return function(n,t,i,r,o,s,a){return e.apply(this,arguments)}}(),Xi=function(){var e=u()(l()().mark((function e(n){var t,i,r,o,a,c,d,p,f;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.PT)(s()({},on));case 2:if(-4!==(null==(t=e.sent)?void 0:t.status)){e.next=6;break}return y.Z.info({width:500,centered:!0,icon:null,title:"提示",content:null==t?void 0:t.message,okText:"我知道了"}),e.abrupt("return");case 6:if(i=null!=t&&t.left_time?Date.now()+1e3*(null==t?void 0:t.left_time):null,8!=(null==St?void 0:St.question_type)||yt){e.next=11;break}return e.next=10,Ri();case 10:bt(!0);case 11:return e.next=13,(0,V.Vj)({id:on.categoryId});case 13:if(r=e.sent){e.next=16;break}return e.abrupt("return");case 16:y.Z.destroyAll(),console.log("res===",r,St,yt),0!==r.question_undo||0!==r.oj_undo?(r.question_undo>0&&(a=(0,O.jsxs)("span",{children:["有",(0,O.jsx)("span",{className:z.orangeNum,children:r.question_undo}),"题未完成"]}),(r.oj_undo>0||r.shixun_undo>0)&&(p=[{type:(null==ln||null===(c=ln.exercise_question_types)||void 0===c||null===(c=c.find((function(e){return 6==e.question_type})))||void 0===c?void 0:c.name)||"编程题",num:r.oj_undo},{type:(null==ln||null===(d=ln.exercise_question_types)||void 0===d||null===(d=d.find((function(e){return 5==e.question_type})))||void 0===d?void 0:d.name)||"实训题",num:r.shixun_undo}],f=p.filter((function(e){return e.num>0})),o=(0,O.jsxs)("div",{children:[a,"(其中有",f.map((function(e,n){return(0,O.jsxs)("span",{children:[(0,O.jsx)("span",{className:z.orangeNum,children:null==e?void 0:e.num}),"个",null==e?void 0:e.type,n!==(null==f?void 0:f.length)-1?"、":""]})})),")"]}))),y.Z.confirm({width:530,title:"提示",icon:null,closable:!0,centered:!0,okText:n?"知道了":"确认交卷",cancelText:"取消",okButtonProps:{loading:ci},content:(0,O.jsxs)("div",{children:[o,n?"在".concat(G()(r.end_time).format("YYYY-MM-DD HH:mm"),"之前,允许修改答题"):i?"你本场考试剩余时间还有".concat((0,M.li)((i-(new Date).getTime())/1e3)," ,确认提前交卷吗?"):"提交后无法再修改答题,是否确认提交?"]}),onOk:function(){var e=u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Zn(!1),Mn(!1),n?null!=pn&&pn.screen_open?j.ZP.success("保存成功"):Gi():(ui(!0),er());case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()})):y.Z.confirm({width:530,title:"提示",icon:null,centered:!0,okText:n?"知道了":"确认交卷",cancelText:"取消",okButtonProps:{loading:ci},content:(0,O.jsx)("div",{children:n?"在".concat(G()(r.end_time).format("YYYY-MM-DD HH:mm"),"之前,允许修改答题"):i?"你本场考试剩余时间还有".concat((0,M.li)((i-(new Date).getTime())/1e3)," ,确认提前交卷吗?"):"提交后无法再修改答题,是否确认提交?"}),onOk:function(){var e=u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Zn(!1),Mn(!1),n?null!=pn&&pn.screen_open?j.ZP.success("保存成功"):Gi():(ui(!0),er());case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 19:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Qi=function(e){return(0,O.jsxs)("div",{children:[(0,O.jsx)(k.Z,{strokeColor:{from:"#3061D0",to:"#63E0FB"},status:"active",percent:e}),(0,O.jsx)("div",{className:"c-grey-c tc mt10 mb20",children:"正在判分中…"})]})},$i=function(){var e=0,n=y.Z.info({title:"交卷中",icon:null,className:"modal-footer-none",content:Qi(e)}),t=setInterval((function(){e<=100?(e+=2,n.update({content:Qi(e)})):(n.destroy(),clearInterval(t))}),50)},er=function(){var e=u()(l()().mark((function e(){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ci){e.next=2;break}return e.abrupt("return");case 2:if(!Mt.current){e.next=4;break}return e.abrupt("return");case 4:return Mt.current=!0,e.next=7,(0,V.VL)({categoryId:on.categoryId,commit_method:1});case 7:return n=e.sent,e.next=10,en({type:"exercise/setActionTabs",payload:s()({},{removeEventListenerExitScreen:!0})});case 10:ui(!1),0===(null==n?void 0:n.status)&&($i(),j.ZP.success(null==n?void 0:n.message),Tn(!1),setTimeout((function(){var e,t,i,r,o;y.Z.info({centered:!0,title:"交卷成功",className:"".concat(z.commitModal),width:520,icon:null,content:(0,O.jsxs)("div",{children:[(0,O.jsxs)(S.Z,{className:"mb20",gutter:20,children:[(0,O.jsxs)(C.Z,{span:12,className:z.commitItem,children:[(0,O.jsx)("span",{className:z.commitInfoLabel,children:"姓名"}),(0,O.jsx)("span",{className:z.commitInfoValue,title:null==ln||null===(e=ln.exercise)||void 0===e?void 0:e.user_name,children:(null==ln||null===(t=ln.exercise)||void 0===t?void 0:t.user_name)||"- -"})]}),(0,O.jsxs)(C.Z,{span:12,className:z.commitItem,children:[(0,O.jsx)("span",{className:z.commitInfoLabel,children:"作答时长"}),(0,O.jsx)("span",{className:z.commitInfoValue,children:null==n||null===(i=n.data)||void 0===i?void 0:i.user_exercise_time})]})]}),(0,O.jsxs)(S.Z,{gutter:20,children:[(0,O.jsxs)(C.Z,{span:12,className:z.commitItem,children:[(0,O.jsx)("span",{className:z.commitInfoLabel,children:"学号"}),(0,O.jsx)("span",{className:z.commitInfoValue,children:(null==ln||null===(r=ln.exercise)||void 0===r?void 0:r.student_id)||"- -"})]}),(0,O.jsxs)(C.Z,{span:12,className:z.commitItem,children:[(0,O.jsx)("span",{className:z.commitInfoLabel,children:"交卷时间"}),(0,O.jsx)("span",{className:z.commitInfoValue,children:null==n||null===(o=n.data)||void 0===o?void 0:o.commit_time})]})]})]}),okText:"确定",maskClosable:!1,keyboard:!1,onOk:function(){(0,U.BU)(),Gi()}})}),3e3));case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),nr=function(){var e=u()(l()().mark((function e(n,t,i,r,o){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ji(t,n,null,(function(){if(r.user_answer=[],r.user_answer.push(n),null!=o&&o.question_id){var e,i,a,l,c=null==o||null===(e=o.sub_exercise_questions)||void 0===e?void 0:e.filter((function(e){var n;return 0===(null===(n=e.user_answer)||void 0===n?void 0:n.length)})),u=null==o||null===(i=o.sub_exercise_questions)||void 0===i?void 0:i.filter((function(e){return 3==e.question_type})),d=u.length>0?u.every((function(e){var n;return(null==e?void 0:e.multi_count)==(null==e||null===(n=e.user_answer)||void 0===n?void 0:n.length)}))?1:u.some((function(e){var n;return(null==e?void 0:e.multi_count)>(null==e||null===(n=e.user_answer)||void 0===n?void 0:n.length)}))?2:0:1;ln.question_status.find((function(e){return e.ques_id===(null==o?void 0:o.question_id)})).ques_status=(null==c?void 0:c.length)===(null==o||null===(a=o.sub_exercise_questions)||void 0===a?void 0:a.length)?0:(null==c?void 0:c.length)>0&&(null==c?void 0:c.length)<(null==o||null===(l=o.sub_exercise_questions)||void 0===l?void 0:l.length)?2:d}else ln.question_status.find((function(e){return e.ques_id===t})).ques_status=n?1:0;cn(s()({},ln))}));case 1:case"end":return e.stop()}}),e)})));return function(n,t,i,r,o){return e.apply(this,arguments)}}(),tr=function(){var e=u()(l()().mark((function e(n,t,i,r,o,a){var c;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.replaceAll(" ","")){e.next=3;break}return Er(),e.abrupt("return",{status:-4,message:"答案不能为空"});case 3:return e.next=5,Ji(i,t,n,(function(){var e={choice_id:t,answer_text:n};if(o.user_answer.filter((function(e){return e.choice_id!=t}))?o.user_answer.splice(t-1,1,e):o.user_answer.push(e),null!=a&&a.question_id){var l,c,u,d,p=null==a||null===(l=a.sub_exercise_questions)||void 0===l?void 0:l.filter((function(e){var n;return 0===(null===(n=e.user_answer)||void 0===n?void 0:n.length)})),f=null==a||null===(c=a.sub_exercise_questions)||void 0===c?void 0:c.filter((function(e){return 3==e.question_type})),m=f.length>0?f.every((function(e){var n;return(null==e?void 0:e.multi_count)==(null==e||null===(n=e.user_answer)||void 0===n?void 0:n.length)}))?1:f.some((function(e){var n;return(null==e?void 0:e.multi_count)>(null==e||null===(n=e.user_answer)||void 0===n?void 0:n.length)}))?2:0:1;ln.question_status.find((function(e){return e.ques_id===(null==a?void 0:a.question_id)})).ques_status=(null==p?void 0:p.length)===(null==a||null===(u=a.sub_exercise_questions)||void 0===u?void 0:u.length)?0:(null==p?void 0:p.length)>0&&(null==p?void 0:p.length)<(null==a||null===(d=a.sub_exercise_questions)||void 0===d?void 0:d.length)?2:m}else ln.question_status.find((function(e){return e.ques_id===i})).ques_status=r.every((function(e){return!!e.answer_text}))?1:ln.question_status.find((function(e){return e.ques_id===i})).ques_status=r.some((function(e){return!!e.answer_text}))?2:0;cn(s()({},ln))}));case 5:return c=e.sent,e.abrupt("return",c);case 7:case"end":return e.stop()}}),e)})));return function(n,t,i,r,o,s){return e.apply(this,arguments)}}(),ir=function(){var e=u()(l()().mark((function e(n,t,i,r,o){var a;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ji(i,t,n,(function(){ln.question_status.find((function(e){return e.ques_id===i})).ques_status=r.every((function(e){return!!e.value}))?1:ln.question_status.find((function(e){return e.ques_id===i})).ques_status=r.some((function(e){return!!e.value}))?2:0;var e={choice_id:t,answer_text:n};o.user_answer.filter((function(e){return e.choice_id!=t}))?o.user_answer.splice(t-1,1,e):o.user_answer.push(e),o.repeat_answer||(o.israp=!0),cn(s()({},ln))}),void 0,void 0,!0);case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e)})));return function(n,t,i,r,o){return e.apply(this,arguments)}}(),rr=function(e,n,t){var i,r,o,s,a,l,c,u="",d=0===(null==e?void 0:e.question_type)||1===(null==e?void 0:e.question_type);d&&(null==e||null===(c=e.question_choices)||void 0===c||c.forEach((function(e,n){e.standard_boolean&&(u+=Ye[n])})));var p=1===(null==ln||null===(i=ln.exercise)||void 0===i?void 0:i.user_exercise_status)||!e.repeat_answer&&(null==e||null===(r=e.user_answer)||void 0===r?void 0:r.length)>0&&0!==e.ques_status;return(0,O.jsxs)("div",{children:[(0,O.jsx)("div",{className:z.baseMargin,children:(0,O.jsx)(N.ZP.Group,{disabled:p,defaultValue:null==e||null===(o=e.user_answer)||void 0===o?void 0:o[0],onChange:function(i){return nr(i.target.value,null==e?void 0:e.question_id,n,e,t)},className:e.user_score&&"edu-radio-".concat(e.user_score===e.question_score?"green":"red"),children:null==e||null===(s=e.question_choices)||void 0===s?void 0:s.map((function(n,t){var i=2==e.question_type?"":"".concat(Ye[t],".");return(0,O.jsx)("div",{className:z.answerWrap,children:(0,O.jsx)(N.ZP,{className:z.noWrap,value:null==n?void 0:n.choice_id,children:(0,O.jsxs)(S.Z,{wrap:!1,align:"middle",children:[(0,O.jsx)(C.Z,{children:(0,O.jsx)("span",{style:{color:"#333333"},className:"font16 mr3",children:i})}),(0,O.jsx)(C.Z,{children:(0,O.jsx)(Y.Z,{className:z.renderHtml,value:null==n?void 0:n.choice_text})})]})})},t)}))})}),((0,W.GJ)()||(0,W.dE)()&&(null==ln||null===(a=ln.exercise)||void 0===a?void 0:a.user_exercise_status)>0&&(null==ln||null===(l=ln.exercise)||void 0===l?void 0:l.open_score))&&(0,O.jsxs)(S.Z,{justify:"end",className:"mb20",align:"middle",children:[(0,O.jsx)("span",{className:"font14",style:{color:"#6A7283"},children:"得分"}),(0,O.jsxs)("span",{className:"font14 ml10",children:[(null==e?void 0:e.user_score)&&(0,O.jsxs)("span",{children:[(0,O.jsx)("span",{className:Je[Number(null==e?void 0:e.answer_status)]||"c-orange-ff9",children:null==e?void 0:e.user_score}),(0,O.jsx)("span",{style:{marginLeft:5,color:"#6A7283"},children:"分"})]}),!(null!=e&&e.user_score)&&(0,O.jsx)("span",{className:"c-red",children:"未评"})]})]}),(null==e?void 0:e.standard_answer_show)&&(0,O.jsx)("div",{className:z.analysisWrap,children:(0,O.jsxs)("div",{className:z.greyBg,children:[(0,O.jsxs)(S.Z,{className:"mb20",children:[(0,O.jsx)(C.Z,{className:"font14 mr10",style:{color:"#6A7283"},children:"【答案】"}),(0,O.jsx)(C.Z,{children:d?u:null==e?void 0:e.standard_answer_show})]}),(0,O.jsxs)(S.Z,{children:[(0,O.jsx)("span",{className:"font14 mr10",style:{color:"#6A7283"},children:"【解析】"}),(0,O.jsx)(Y.Z,{className:z.renderHtml,value:null==e?void 0:e.analysis})]})]})})]})},or=function(e,n,t){var i,r;1===(null==ln||null===(i=ln.exercise)||void 0===i?void 0:i.user_exercise_status)||!e.repeat_answer&&e.ques_status;return(0,O.jsx)("div",{children:null==e||null===(r=e.sub_exercise_questions)||void 0===r?void 0:r.map((function(n,i){var r;return null==n||null===(r=n.question_choices)||void 0===r||r.forEach((function(e,n){e.standard_boolean&&Ye[n]})),(0,O.jsxs)("div",{className:"".concat(z.baseMargin," ").concat(z.singleItem," mb20"),children:[(0,O.jsxs)("div",{style:{display:"flex",alignItems:"baseline",userSelect:"none",marginBottom:40},children:[(0,O.jsxs)("span",{style:{flexShrink:0,color:"#999999"},className:"font14",children:["(",null==n?void 0:n.question_score,"分)"]}),(0,O.jsx)("span",{style:{flexShrink:0,marginRight:6},className:"font16",children:t+1+"."+(i+1)}),(0,O.jsx)(Y.Z,{value:null==n?void 0:n.question_title})]}),(0==(null==n?void 0:n.question_type)||2==(null==n?void 0:n.question_type))&&rr(n,null==n?void 0:n.question_type,e),1==(null==n?void 0:n.question_type)&&fr(n,null==n?void 0:n.question_type,e),3==(null==n?void 0:n.question_type)&&mr(n,null==n?void 0:n.question_type,e),4==(null==n?void 0:n.question_type)&&hr(n,null==n?void 0:n.question_type,e)]},i)}))})};console.log("----",ln);var sr,ar,lr,cr,ur,dr,pr,fr=function(e,n,t){var i,r,o,a,l,c,u="",d=0===(null==e?void 0:e.question_type)||1===(null==e?void 0:e.question_type);d&&(null==e||null===(c=e.question_choices)||void 0===c||c.forEach((function(e,n){e.standard_boolean&&(u+=Ye[n])})));var p=1===(null==ln||null===(i=ln.exercise)||void 0===i?void 0:i.user_exercise_status)||!e.repeat_answer&&(null==e||null===(r=e.user_answer)||void 0===r?void 0:r.length)>0&&0!==e.ques_status;return(0,O.jsxs)("div",{children:[(0,O.jsx)("div",{className:z.baseMargin,children:(0,O.jsx)(B.Z.Group,{disabled:p,defaultValue:null==e?void 0:e.user_answer,style:{flexDirection:"column"},onChange:function(n){return function(e,n,t,i){null!=e&&e.length&&Ji(n,e,null,(function(){if(t.user_answer=e,null!=i&&i.question_id){var r,o,a,l,c=null==i||null===(r=i.sub_exercise_questions)||void 0===r?void 0:r.filter((function(e){var n;return 0===(null===(n=e.user_answer)||void 0===n?void 0:n.length)})),u=null==i||null===(o=i.sub_exercise_questions)||void 0===o?void 0:o.filter((function(e){return 3==e.question_type})),d=u.length>0?u.every((function(e){var n;return(null==e?void 0:e.multi_count)==(null==e||null===(n=e.user_answer)||void 0===n?void 0:n.length)}))?1:u.some((function(e){var n;return(null==e?void 0:e.multi_count)>(null==e||null===(n=e.user_answer)||void 0===n?void 0:n.length)}))?2:0:1;ln.question_status.find((function(e){return e.ques_id===(null==i?void 0:i.question_id)})).ques_status=(null==c?void 0:c.length)===(null==i||null===(a=i.sub_exercise_questions)||void 0===a?void 0:a.length)?0:(null==c?void 0:c.length)>0&&(null==c?void 0:c.length)<(null==i||null===(l=i.sub_exercise_questions)||void 0===l?void 0:l.length)?2:d}else ln.question_status.find((function(e){return e.ques_id===n})).ques_status=null!=e&&e.length?1:0;cn(s()({},ln))}))}(n,null==e?void 0:e.question_id,e,t)},className:e.user_score&&"edu-checkbox-".concat(e.user_score===e.question_score?"green":"red"),children:null==e||null===(o=e.question_choices)||void 0===o?void 0:o.map((function(e,n){var t="".concat(Ye[n],".");return(0,O.jsx)("div",{className:z.answerWrap,children:(0,O.jsx)(B.Z,{value:null==e?void 0:e.choice_id,children:(0,O.jsxs)(S.Z,{wrap:!1,align:"middle",children:[(0,O.jsx)(C.Z,{children:(0,O.jsx)("span",{style:{color:"#333333",whiteSpace:"nowrap"},className:"font16 mr3",children:t})}),(0,O.jsx)(C.Z,{children:(0,O.jsx)(Y.Z,{className:z.renderHtml,value:null==e?void 0:e.choice_text})})]})})})}))})}),((0,W.GJ)()||(0,W.dE)()&&(null==ln||null===(a=ln.exercise)||void 0===a?void 0:a.user_exercise_status)>0&&(null==ln||null===(l=ln.exercise)||void 0===l?void 0:l.open_score))&&(0,O.jsxs)(S.Z,{justify:"end",className:"mb20",align:"middle",children:[(0,O.jsx)("span",{className:"font14",style:{color:"#6A7283"},children:"得分"}),(0,O.jsxs)("span",{className:"font14 ml10",children:[(null==e?void 0:e.user_score)&&(0,O.jsxs)("span",{children:[(0,O.jsx)("span",{className:Je[Number(null==e?void 0:e.answer_status)]||"c-orange-ff9",children:null==e?void 0:e.user_score}),(0,O.jsx)("span",{style:{marginLeft:5,color:"#6A7283"},children:"分"})]}),!(null!=e&&e.user_score)&&(0,O.jsx)("span",{className:"c-red",children:"未评"})]})]}),(null==e?void 0:e.standard_answer_show)&&(0,O.jsx)("div",{className:z.analysisWrap,children:(0,O.jsxs)("div",{className:z.greyBg,children:[(0,O.jsxs)(S.Z,{className:"mb20",children:[(0,O.jsx)(C.Z,{className:"font14 mr10",style:{color:"#6A7283"},children:"【答案】"}),(0,O.jsx)(C.Z,{children:d?u:null==e?void 0:e.standard_answer_show})]}),(0,O.jsxs)(S.Z,{children:[(0,O.jsx)("span",{className:"font14 mr10",style:{color:"#6A7283"},children:"【解析】"}),(0,O.jsx)(Y.Z,{className:z.renderHtml,value:null==e?void 0:e.analysis})]})]})})]})},mr=function(e,n,t){return(0,O.jsx)(fe,{item:e,sign:br,answerData:ln,onBlur:function(){var n=u()(l()().mark((function n(i,r,o){return l()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,tr(i,r,null==e?void 0:e.question_id,o,e,t);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})));return function(e,t,i){return n.apply(this,arguments)}}()})},hr=function(e,n,t){return mt?(0,O.jsx)(ee,{item:e,answerData:ln,onBlur:function(n,t,i){return Ji(null==e?void 0:e.question_id,null,n,void 0,t,i)},isEducation:mt}):(0,O.jsx)(Q,{item:e,answerData:ln,onBlur:function(n,i){return function(e,n,t,i,r){e.replaceAll(" ","")?Ji(n,null,e,(function(){if(t.user_answer=[],t.user_answer.push(e),null!=r&&r.question_id){var i,o,a,l,c=null==r||null===(i=r.sub_exercise_questions)||void 0===i?void 0:i.filter((function(e){var n;return 0===(null===(n=e.user_answer)||void 0===n?void 0:n.length)})),u=null==r||null===(o=r.sub_exercise_questions)||void 0===o?void 0:o.filter((function(e){return 3==e.question_type})),d=u.length>0?u.every((function(e){var n;return(null==e?void 0:e.multi_count)==(null==e||null===(n=e.user_answer)||void 0===n?void 0:n.length)}))?1:u.some((function(e){var n;return(null==e?void 0:e.multi_count)>(null==e||null===(n=e.user_answer)||void 0===n?void 0:n.length)}))?2:0:1;ln.question_status.find((function(e){return e.ques_id===(null==r?void 0:r.question_id)})).ques_status=(null==c?void 0:c.length)===(null==r||null===(a=r.sub_exercise_questions)||void 0===a?void 0:a.length)?0:(null==c?void 0:c.length)>0&&(null==c?void 0:c.length)<(null==r||null===(l=r.sub_exercise_questions)||void 0===l?void 0:l.length)?2:d}else ln.question_status.find((function(e){return e.ques_id===n})).ques_status=e?1:0;cn(s()({},ln))}),void 0,void 0,i):Er()}(n,null==e?void 0:e.question_id,e,i,t)},isEducation:mt,sign:br})},vr=function(e,n){return(0,O.jsx)(le,{item:e,answerData:ln,exerciseId:on.categoryId,coursesId:on.coursesId})},gr=function(e,n){return(0,O.jsx)(ue,{item:e,answerData:ln})},xr=function(e,n){return(0,O.jsx)(ve,{setIsSubmitCode:bt,item:e,answerData:ln,onBlur:function(){var n=u()(l()().mark((function n(t,i,r){return l()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ir(t,i,null==e?void 0:e.question_id,r,e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})));return function(e,t,i){return n.apply(this,arguments)}}()})},_r=function(e,n,t){var i,r,o=null==ln||null===(i=ln.exercise_question_types)||void 0===i?void 0:i.find((function(e){return e.question_type===n}));return(0,O.jsxs)("div",{className:z.answerSheetWrap,children:[(0,O.jsxs)("div",{className:z.answerSheetQuestionTitle,onClick:function(){vn[n]=!vn[n],gn(s()({},vn))},children:[!vn[n]&&(0,O.jsx)(Z.Z,{}),vn[n]&&(0,O.jsx)(I.Z,{}),(0,O.jsx)("span",{className:"ml5 c-grey-666",children:e})]}),!vn[n]&&(0,O.jsx)(S.Z,{className:z.answerSheet,gutter:[20,20],children:null==o||null===(r=o.items)||void 0===r?void 0:r.map((function(e,i){var r,o,s,a,l,c;if(e.question_type===n)return(0,O.jsx)(C.Z,{children:(0,O.jsxs)("div",{onClick:function(){if(t!==Vt||i!==Xt)return br.current?(br.current="appoint",void(jr.current={oneindex:t,twoindex:i})):void Br({oneindex:t,twoindex:i})},className:"\n ".concat(z.answerSheetItem,"\n ").concat(null!=ln&&null!==(r=ln.question_status)&&void 0!==r&&r.some((function(n){var t,i;return n.ques_id===e.question_id&&1===(null==n?void 0:n.ques_status)&&3!==(null==ln||null===(t=ln.exercise)||void 0===t?void 0:t.exercise_status)&&!(null!=ln&&null!==(i=ln.exercise)&&void 0!==i&&i.open_score_commited)}))?z.active:"","\n ").concat(null!=ln&&null!==(o=ln.question_status)&&void 0!==o&&o.some((function(n){var t,i;return n.ques_id===e.question_id&&2===(null==n?void 0:n.ques_status)&&3!==(null==ln||null===(t=ln.exercise)||void 0===t?void 0:t.exercise_status)&&!(null!=ln&&null!==(i=ln.exercise)&&void 0!==i&&i.open_score_commited)}))?z.partialActive:"","\n ").concat(null!=ln&&null!==(s=ln.question_status)&&void 0!==s&&s.some((function(n){var t,i;return n.ques_id===e.question_id&&1===(null==n?void 0:n.score_status)&&(3===(null==ln||null===(t=ln.exercise)||void 0===t?void 0:t.exercise_status)||(null==ln||null===(i=ln.exercise)||void 0===i?void 0:i.open_score_commited))}))?z.yes:"","\n ").concat(null!=ln&&null!==(a=ln.question_status)&&void 0!==a&&a.some((function(n){var t,i;return n.ques_id===e.question_id&&2===(null==n?void 0:n.score_status)&&(3===(null==ln||null===(t=ln.exercise)||void 0===t?void 0:t.exercise_status)||(null==ln||null===(i=ln.exercise)||void 0===i?void 0:i.open_score_commited))}))?z.no:"","\n ").concat(null!=ln&&null!==(l=ln.question_status)&&void 0!==l&&l.some((function(n){var t,i;return n.ques_id===e.question_id&&3===(null==n?void 0:n.score_status)&&(3===(null==ln||null===(t=ln.exercise)||void 0===t?void 0:t.exercise_status)||(null==ln||null===(i=ln.exercise)||void 0===i?void 0:i.open_score_commited))}))?z.bf:"","\n\n ").concat(t===Vt&&i===Xt?z.selected:"","\n "),children:[(0,O.jsx)("span",{className:z.qindex,children:i+1}),(null==ln||null===(c=ln.question_status)||void 0===c?void 0:c.some((function(n){var t;return n.ques_id===e.question_id&&2===(null==n?void 0:n.ques_status)&&3!==(null==ln||null===(t=ln.exercise)||void 0===t?void 0:t.exercise_status)})))&&(0,O.jsx)("div",{style:{height:12,background:"rgba(22,93,255,0.4)",position:"absolute",width:"100%",bottom:0}}),e.is_marked&&(0,O.jsx)("i",{className:"iconfont icon-biaoji1 ".concat(z.markIcon)})]},i)})}))},n)]})},wr=function(e,n){var t,i,r,o;0!==(null==e?void 0:e.question_type)&&1!==(null==e?void 0:e.question_type)||(null==e||null===(o=e.question_choices)||void 0===o||o.forEach((function(e,n){e.standard_boolean&&Ye[n]})));return(0,O.jsxs)("div",{className:z.questionItem,id:"Anchor_".concat(null==e?void 0:e.question_type,"_").concat(n),children:[(0,O.jsxs)("div",{style:{display:"flex",alignItems:"baseline",marginBottom:40,userSelect:"none"},children:[(0,O.jsxs)("span",{className:"".concat(z.questionScore," mr10"),children:[null==e?void 0:e.question_score,"分"]}),(0,O.jsxs)("span",{className:"font16 ".concat(z.noWrap),children:[n+1,"、"]}),(0,O.jsx)(Y.Z,{value:8===(null==e?void 0:e.question_type)?null==e?void 0:e.description:null==e?void 0:e.question_title}),!(null==e||null===(t=e.schools)||void 0===t||!t.length)&&(0,O.jsx)(T.Z,{title:"该实训题面向指定单位开放",children:(0,O.jsx)("i",{className:"iconfont icon-zhidinggongkai1 line24 font18 c-orange"})})]}),0==(null==e?void 0:e.question_type)&&rr(e,null==e?void 0:e.question_type),2==(null==e?void 0:e.question_type)&&rr(e,null==e?void 0:e.question_type),1==(null==e?void 0:e.question_type)&&fr(e,null==e?void 0:e.question_type),3==(null==e?void 0:e.question_type)&&mr(e,null==e?void 0:e.question_type),4==(null==e?void 0:e.question_type)&&hr(e,null==e?void 0:e.question_type),5==(null==e?void 0:e.question_type)&&vr(e,null==e||e.question_type),6==(null==e?void 0:e.question_type)&&gr(e,null==e||e.question_type),7==(null==e?void 0:e.question_type)&&or(e,null==e||e.question_type,n),8==(null==e?void 0:e.question_type)&&xr(e,null==e||e.question_type),(null==e?void 0:e.answer_comments)&&(0,O.jsx)(Te,{hideScore:!0,list:null==e?void 0:e.answer_comments}),5==(null==e?void 0:e.question_type)&&0===(null==ln||null===(i=ln.exercise)||void 0===i?void 0:i.user_exercise_status)&&3!=(null==e?void 0:e.answer_status)&&(0,O.jsx)(S.Z,{justify:"end",className:"mt20",children:(0,O.jsx)(Oe.Z,{type:"primary",className:z.toIframeBtn,onClick:u()(l()().mark((function n(){return l()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Ki(e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)}))),children:"进入答题"})}),(0,W.dE)()&&0===(null==ln||null===(r=ln.exercise)||void 0===r?void 0:r.user_exercise_status)&&6==(null==e?void 0:e.question_type)&&(0,O.jsx)(S.Z,{justify:"end",className:"mt20",children:(0,O.jsx)(Oe.Z,{type:"primary",className:z.toIframeBtn,onClick:function(){return Yi(e)},children:"进入答题"})})]})},yr=function(e,n){return(0,O.jsx)(h.Fragment,{children:_r((null==e?void 0:e.name)||Ue.f[e.question_type].name,e.question_type,n)})},br=(0,h.useRef)(!1),jr=(0,h.useRef)({}),kr=(0,h.useRef)(),Sr=(0,h.useRef)({}),Cr=function(){var e,n,t,i;window.blur();var r,o=null===(e=ln.exercise_question_types)||void 0===e||null===(e=e[Vt])||void 0===e||null===(e=e.items)||void 0===e?void 0:e[Xt];if(!oi&&0===(null==ln||null===(n=ln.exercise)||void 0===n?void 0:n.user_exercise_status)&&(0,W.dE)()&&((null==o||!o.repeat_answer)&&(null==o||null===(r=o.user_answer)||void 0===r?void 0:r.length)>0&&0===(null==o?void 0:o.ques_status)))return kr.current="prev",void ti(!0);(null==o||!o.repeat_answer)&&(null==o||null===(t=o.user_answer)||void 0===t?void 0:t.length)>0&&(o.ques_status=1),Si.current.scrollTo({top:0,left:0,behavior:"smooth"}),0===Xt?(Vt-=1,Xt=ln.exercise_question_types[Vt].items.length-1):Xt-=1,8!=(null==o?void 0:o.question_type)||yt||setTimeout((function(){Ri(o)}),500),Ct(null==ln||null===(i=ln.exercise_question_types)||void 0===i||null===(i=i[Vt])||void 0===i||null===(i=i.items)||void 0===i?void 0:i[Xt]),bt(!1),Kt(Vt),Qt(Xt)},Nr=function(){var e,n,t,i;window.blur();var r,o=null===(e=ln.exercise_question_types)||void 0===e||null===(e=e[Vt])||void 0===e||null===(e=e.items)||void 0===e?void 0:e[Xt];if(!oi&&0===(null==ln||null===(n=ln.exercise)||void 0===n?void 0:n.user_exercise_status)&&(0,W.dE)()&&((null==o||!o.repeat_answer)&&(null==o||null===(r=o.user_answer)||void 0===r?void 0:r.length)>0&&0===(null==o?void 0:o.ques_status)))return kr.current="next",void ti(!0);(null==o||!o.repeat_answer)&&(null==o||null===(t=o.user_answer)||void 0===t?void 0:t.length)>0&&(o.ques_status=1),Si.current.scrollTo({top:0,left:0,behavior:"smooth"}),ln.exercise_question_types[Vt].items.length-1===Xt?(Vt+=1,Xt=0):Xt+=1,8!=(null==o?void 0:o.question_type)||yt||setTimeout((function(){Ri(o)}),500),Ct(null==ln||null===(i=ln.exercise_question_types)||void 0===i||null===(i=i[Vt])||void 0===i||null===(i=i.items)||void 0===i?void 0:i[Xt]),bt(!1),Kt(Vt),Qt(Xt)},Br=function(e){var n,t,i,r,o,s=e||jr.current,a=null===(n=ln.exercise_question_types)||void 0===n||null===(n=n[Vt])||void 0===n||null===(n=n.items)||void 0===n?void 0:n[Xt];if(!oi&&0===(null==ln||null===(t=ln.exercise)||void 0===t?void 0:t.user_exercise_status)&&(0,W.dE)()&&((null==a||!a.repeat_answer)&&(null==a||null===(o=a.user_answer)||void 0===o?void 0:o.length)>0&&0===(null==a?void 0:a.ques_status)))return kr.current="appoint",Sr.current=s,void ti(!0);(null==a||!a.repeat_answer)&&(null==a||null===(i=a.user_answer)||void 0===i?void 0:i.length)>0&&(a.ques_status=1),8!=(null==a?void 0:a.question_type)||yt||setTimeout((function(){Ri(a)}),500),Ct(null==ln||null===(r=ln.exercise_question_types)||void 0===r||null===(r=r[null==s?void 0:s.oneindex])||void 0===r||null===(r=r.items)||void 0===r?void 0:r[null==s?void 0:s.twoindex]),bt(!1),Kt(null==s?void 0:s.oneindex),Qt(null==s?void 0:s.twoindex),Si.current.scrollTo({top:0,left:0,behavior:"smooth"})},Tr=function(){var e=u()(l()().mark((function e(){var n,t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!br.current){e.next=3;break}return br.current="refresh",e.abrupt("return");case 3:return e.next=5,Di();case 5:if(t=e.sent,null==ln||null===(n=ln.exercise)||void 0===n||!n.left_time){e.next=9;break}return e.next=9,zi();case 9:null!=t&&t.status||j.ZP.success("更新成功");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Er=function(){var e;switch(br.current){case"prev":Cr();break;case"next":Nr();break;case"appoint":Br();break;case"submit":Xi(!1);break;case"refresh":Tr()}"textarea"===(null===(e=document.activeElement)||void 0===e?void 0:e.localName)?br.current=!0:br.current=!1,jr.current={}};return(0,O.jsxs)(E.Z,{size:"middle",spinning:wn,children:[Pn&&0===(null==ln||null===(o=ln.exercise)||void 0===o?void 0:o.user_exercise_status)&&(0,O.jsx)(q.Z,{exerciseUserInfo:$e.exerciseUserInfo,iframe:Lt,handleToDetail:Gi,socket:Ht,onStartScreenshot:function(){null!=pn&&pn.screen_shot_open&&Fn(!0)},onCloseScreenshot:function(){null!=pn&&pn.screen_shot_open&&Fn(!1)}}),(0,O.jsx)(D,{id:on.categoryId,startRecording:qn,startScreenshot:Dn,onSuccuss:function(){Zn(null==pn?void 0:pn.screen_open),Di()},onBack:Gi}),(0,O.jsx)("iframe",{style:{display:Qn},id:"iframeShixuns",className:z.iframe,src:Kn,ref:Lt,frameBorder:"0"}),-2!==st.status&&-1!==st.status&&(0,O.jsx)("div",{className:z.fixHeader,children:(0,O.jsxs)(S.Z,{wrap:!1,align:"middle",className:"edu-container",children:[(0,O.jsx)(C.Z,{children:(0,M.vB)(null==ln||null===(a=ln.exercise)||void 0===a?void 0:a.exercise_status)}),(0,O.jsx)(C.Z,{className:"".concat(z.exerciseTitle," ml10"),title:null==ln||null===(c=ln.exercise)||void 0===c?void 0:c.exercise_name,children:null==ln||null===(d=ln.exercise)||void 0===d?void 0:d.exercise_name}),(0,O.jsx)(C.Z,{style:{marginLeft:"auto"},children:!((0,W.GJ)()||(0,W.dE)()&&1==(null==ln||null===(f=ln.exercise)||void 0===f?void 0:f.user_exercise_status))&&!(null==ln||null===(g=ln.exercise)||void 0===g||!g.left_time)&&(0,O.jsxs)("aside",{className:"".concat(z.countDown," ").concat(tt),children:[(0,O.jsx)("i",{className:"iconfont icon-daojishi",style:{marginRight:6}}),(0,O.jsx)("span",{className:z.cnText,children:"剩余答题时长"}),(0,O.jsx)(Ke,{value:Hn,onFinish:zi})]})}),(0,O.jsx)(C.Z,{children:!((0,W.GJ)()||(0,W.dE)()&&1==(null==ln||null===(_=ln.exercise)||void 0===_?void 0:_.user_exercise_status))&&"student-unlock"!==$e.actionTabs.key&>&&(0,O.jsxs)(Oe.Z,{className:"".concat(z.refreshBtn," ml30"),onClick:Tr,children:[(0,O.jsx)("span",{className:"iconfont icon-shuaxin2 mr5"}),"刷新"]})}),(0,O.jsx)(C.Z,{children:(0,W.dE)()&&0===(null==ln||null===(F=ln.exercise)||void 0===F?void 0:F.user_exercise_status)&&(0,O.jsx)(Oe.Z,{className:"".concat(z.submitButton," ml10"),type:"primary",onClick:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!br.current){e.next=3;break}return br.current="submit",e.abrupt("return");case 3:return e.next=5,Xi(!1);case 5:case"end":return e.stop()}}),e)}))),children:"交卷"})}),(0,O.jsx)(C.Z,{children:(null==ln||null===(J=ln.exercise)||void 0===J?void 0:J.forbid_screen)&&(0,O.jsx)(A.ZP,{className:"".concat(z.submitButton," ml10"),type:"primary",onClick:function(){Et(!0)},children:"解锁切屏"})}),(0,O.jsx)(C.Z,{children:(1==(null==ln||null===(X=ln.exercise)||void 0===X?void 0:X.commit_status)||3==(null==ln||null===($=ln.exercise)||void 0===$?void 0:$.exercise_status))&&(null==ln||null===(ne=ln.exercise_answer_user)||void 0===ne?void 0:ne.analysis)&&(0,O.jsxs)("span",{className:z.teachAnalysis,onClick:function(){return Ti(!0)},children:[(0,O.jsx)("i",{className:"iconfont icon-jiaoshipingjia"}),(0,O.jsx)("span",{className:"ml5",children:"教师评价"})]})})]})}),(0,O.jsxs)("section",{className:"edu-container ".concat(z.wrapper," ").concat(mt&&z.wrpAnswer),children:[(null==ln||null===(te=ln.exercise)||void 0===te||null===(te=te.exercise_description)||void 0===te?void 0:te.length)>0&&(0,O.jsx)(P.Z,{className:z.exerciseAlert,description:(0,O.jsxs)(S.Z,{wrap:!1,gutter:10,align:"top",children:[(0,O.jsx)(C.Z,{className:z.title,children:"考试须知"}),(0,O.jsx)(C.Z,{className:z.content,children:null==ln||null===(ie=ln.exercise)||void 0===ie?void 0:ie.exercise_description})]}),closable:!0}),0===st.status&&(0,O.jsxs)(S.Z,{className:"".concat(mt?"mt70":""," ").concat(z.mainPart),wrap:!1,children:[(0,O.jsx)(C.Z,{flex:kn?"280px":"0px",className:mt?"mb100":"",children:(0,O.jsxs)("div",{className:z.leftPart,children:[(0,O.jsxs)("section",{children:[kn&&(0,O.jsxs)(C.Z,{flex:"1",style:{background:"#fff",marginBottom:"10px",padding:"20px"},children:[(0,O.jsxs)("div",{style:{marginBottom:15},children:[(0,O.jsx)("span",{style:{color:"#5F6368"},children:"姓名"}),(0,O.jsx)("span",{className:"ml10 ".concat(z.userInfoText),children:(null==ln||null===(re=ln.exercise)||void 0===re?void 0:re.user_name)||"- -"})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("span",{style:{color:"#5F6368"},children:"学号"}),(0,O.jsx)("span",{className:"ml10 ".concat(z.userInfoText),children:(null==ln||null===(oe=ln.exercise)||void 0===oe?void 0:oe.student_id)||"- -"})]})]}),kn&&(0,W.dE)()&&0===(null===(se=ln.exercise)||void 0===se?void 0:se.user_exercise_status)&&(null===(ae=ln.exercise)||void 0===ae?void 0:ae.open_phone_video_recording)&&(0,O.jsxs)(S.Z,{className:z.eduQrcode,style:{marginTop:10},align:"middle",children:[(0,O.jsx)(C.Z,{children:(0,O.jsx)(x(),{value:"https://".concat(document.domain,"/live-push.html?id=").concat(on.categoryId,"&login=").concat(on.login,"&cookie=").concat((0,M.ej)("_educoder_session"))})}),(0,O.jsxs)(C.Z,{className:"ml15",children:["打开微信扫一扫",(0,O.jsx)("br",{}),"开启手机视频录制"]})]}),kn&&(0,O.jsxs)("aside",{className:"bg-white",children:[(0,O.jsxs)("aside",{className:z.answerInfo,children:[(0,O.jsxs)(S.Z,{justify:"space-between",children:[(0,O.jsx)(C.Z,{children:"答题进度"}),(0,O.jsxs)(C.Z,{className:z.answerProgress,children:[(0,O.jsx)("span",{style:{color:"#165DFF"},children:null==ln||null===(ce=ln.question_status)||void 0===ce||null===(ce=ce.filter((function(e){return 1===e.ques_status})))||void 0===ce?void 0:ce.length}),(0,O.jsxs)("span",{style:{color:"#999999"},children:["/",null==ln||null===(de=ln.exercise_types)||void 0===de?void 0:de.q_counts]})]})]}),(0,O.jsx)(S.Z,{children:(0,O.jsx)(k.Z,{strokeColor:"#165dffa6",trailColor:"#0000000d",percent:(null==ln||null===(pe=ln.question_status)||void 0===pe||null===(pe=pe.filter((function(e){return 1===e.ques_status})))||void 0===pe?void 0:pe.length)/(null==ln||null===(me=ln.exercise_types)||void 0===me?void 0:me.q_counts)*100,showInfo:!1})}),(0,O.jsx)(S.Z,{children:(0,O.jsxs)(C.Z,{children:[(0,O.jsxs)("span",{className:"c-grey-333",children:["共 ",(0,O.jsx)("span",{style:{color:"#165DFF"},children:(null==ln||null===(he=ln.exercise_types)||void 0===he?void 0:he.q_counts)||(null==ln||null===(ge=ln.exercise_scores)||void 0===ge||null===(ge=ge.exercise_types)||void 0===ge?void 0:ge.q_counts)})," 题:"]}),(0,O.jsxs)("span",{className:"c-grey-333",children:["满分 ",(0,O.jsx)("span",{style:{color:"#FA6400"},children:(null==ln||null===(ye=ln.exercise_types)||void 0===ye?void 0:ye.q_scores)||(null==ln||null===(be=ln.exercise_scores)||void 0===be||null===(be=be.exercise_types)||void 0===be?void 0:be.q_scores)})," 分"]})]})})]}),(0,O.jsxs)(S.Z,{className:z.dottedLineWrapper,align:"middle",children:[(0,O.jsx)(C.Z,{className:z.leftHalfCircle}),(0,O.jsx)(C.Z,{flex:1,className:z.dottedLine}),(0,O.jsx)(C.Z,{className:z.rightHalfCircle})]}),(0,O.jsx)(S.Z,{children:(0,O.jsx)(C.Z,{flex:"1",children:(0,O.jsx)("aside",{className:"".concat(z.cardList," ").concat(null!==(je=ln.exercise)&&void 0!==je&&je.open_phone_video_recording?z.withQrcode:""),children:null==ln||null===(ke=ln.exercise_question_types)||void 0===ke?void 0:ke.map((function(e,n){return(0,O.jsx)(h.Fragment,{children:yr(e,n)},e.question_type)}))})})})]})]}),(0,W.dE)()&&3!==(null==ln||null===(Se=ln.exercise)||void 0===Se?void 0:Se.exercise_status)&&!(null!=ln&&null!==(Ce=ln.exercise)&&void 0!==Ce&&Ce.open_score_commited)&&(0,O.jsxs)(S.Z,{justify:"space-around",align:"middle",className:z.answerSheetBottom,children:[(0,O.jsxs)(C.Z,{className:z.tooltipWrap,children:[(0,O.jsx)("span",{className:z.answerYes}),"已答"]}),(0,O.jsxs)(C.Z,{className:z.tooltipWrap,children:[(0,O.jsx)("span",{className:"".concat(z.answerNo," ml10"),children:(0,O.jsx)("div",{style:{height:"50%",width:"100%",background:"rgba(22,93,255,0.4)"}})}),"部分答题"]}),(0,O.jsxs)(C.Z,{className:z.tooltipWrap,children:[(0,O.jsx)("span",{className:"".concat(z.answerNo," ml10")}),"未答"]}),(0,O.jsxs)(C.Z,{className:z.tooltipWrap,children:[(0,O.jsx)("i",{className:"iconfont icon-biaoji1",style:{marginRight:4,color:"#FFB538"}}),"标记"]})]}),(0,W.dE)()&&(3===(null==ln||null===(Ne=ln.exercise)||void 0===Ne?void 0:Ne.exercise_status)||(null==ln||null===(Be=ln.exercise)||void 0===Be?void 0:Be.open_score_commited))&&(0,O.jsxs)(S.Z,{justify:"space-around",align:"middle",className:z.answerSheetBottom,children:[(0,O.jsxs)(C.Z,{className:z.tooltipWrap,children:[(0,O.jsx)("span",{className:z.answerYes,style:{background:"#028D01",height:8,width:8,borderRadius:"50%"}}),"正确"]}),(0,O.jsxs)(C.Z,{className:z.tooltipWrap,children:[(0,O.jsx)("span",{style:{background:"#FB3226",height:8,width:8,borderRadius:"50%"},className:"".concat(z.answerNo," ml10")}),"错误"]}),(0,O.jsxs)(C.Z,{className:z.tooltipWrap,children:[(0,O.jsx)("span",{style:{background:"#E77400",height:8,width:8,borderRadius:"50%"},className:"".concat(z.answerNo," ml10")}),"部分得分"]}),(0,O.jsxs)(C.Z,{className:z.tooltipWrap,children:[(0,O.jsx)("i",{className:"iconfont icon-biaoji1",style:{marginRight:4,color:"#FFB538"}}),"标记"]})]})]})}),(0,O.jsx)(C.Z,{children:(0,O.jsxs)("div",{className:z.fold,onClick:function(){return Sn(!kn)},children:[kn&&(0,O.jsx)(T.Z,{title:"收起答题卡",children:(0,O.jsx)("span",{className:"icon-zuojiantou iconfont c-grey-c"})}),!kn&&(0,O.jsxs)(T.Z,{title:"展开",children:[" ",(0,O.jsx)("span",{className:"icon-youjiantou iconfont c-grey-c"})]})]})}),(0,O.jsx)(C.Z,{flex:"1",children:(0,O.jsxs)("section",{className:[z.rightPart,"ml20"].join(" "),children:[(0,O.jsx)("div",{className:"".concat(z.questionPart," pl30 pr30"),ref:Si,children:(pr=null==ln||null===(sr=ln.exercise_question_types)||void 0===sr||null===(sr=sr[Vt].items)||void 0===sr?void 0:sr[Xt],(0,O.jsxs)(h.Fragment,{children:[(0,O.jsxs)("div",{className:"pt20 mb20",children:[(0,O.jsxs)("span",{className:z.questionTypeTitle,children:[(0,M.EM)(Vt+1),"、",null==ln||null===(ar=ln.exercise_question_types)||void 0===ar||null===(ar=ar[Vt])||void 0===ar?void 0:ar.name]}),(0,O.jsxs)("span",{className:z.questionTypeInfo,children:["(共",null==ln||null===(lr=ln.exercise_question_types)||void 0===lr||null===(lr=lr[Vt])||void 0===lr?void 0:lr.count,"题;",7===(null==ln||null===(cr=ln.exercise_question_types)||void 0===cr||null===(cr=cr[Vt])||void 0===cr?void 0:cr.question_type)?"包含".concat(null==ln||null===(ur=ln.exercise_question_types)||void 0===ur||null===(ur=ur[Vt])||void 0===ur?void 0:ur.sub_questions_count,"小题"):""," 共",null==ln||null===(dr=ln.exercise_question_types)||void 0===dr||null===(dr=dr[Vt])||void 0===dr?void 0:dr.score,"分)"]}),!(null!=pr&&pr.repeat_answer)&&(0,O.jsx)("span",{style:{color:"#E30000",marginLeft:20,fontSize:14},children:"注意:该题作答之后不允许修改答案。"})]}),(0,O.jsx)(h.Fragment,{children:wr(pr,Xt)},Xt)]},Vt))}),(0,O.jsxs)(S.Z,{className:z.bottom,align:"middle",justify:"space-between",children:[(0,O.jsx)(C.Z,{children:(0,O.jsx)(Oe.Z,{icon:(0,O.jsx)("i",{className:"iconfont ".concat(null!==(Ae=ln.exercise_question_types)&&void 0!==Ae&&null!==(Ae=Ae[Vt].items[Xt])&&void 0!==Ae&&Ae.is_marked?"icon-biaoji1":"icon-biaojigaiti"),style:{color:"#FFB538",marginRight:6}}),className:z.markBtn,onClick:u()(l()().mark((function e(){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.sS)(on.categoryId,{exercise_question_id:null===(n=ln.exercise_question_types[Vt].items[Xt])||void 0===n?void 0:n.question_id});case 2:0===e.sent.status&&Di();case 4:case"end":return e.stop()}}),e)}))),children:null!==(Ze=ln.exercise_question_types)&&void 0!==Ze&&null!==(Ze=Ze[Vt].items[Xt])&&void 0!==Ze&&Ze.is_marked?"取消标记":"标记该题"})}),(0,O.jsxs)(C.Z,{children:[(0!=Vt||0!=Xt)&&(0,O.jsx)(A.ZP,{className:"".concat(z.changeButton," ").concat(z.prevBtn," mr20"),type:"default",onClick:function(){br.current?br.current="prev":Cr()},children:"上一题"}),!(Vt===(null==ln||null===(Ie=ln.exercise_question_types)||void 0===Ie?void 0:Ie.length)-1&&Xt===(null==ln||null===(Le=ln.exercise_question_types)||void 0===Le||null===(Le=Le[Vt])||void 0===Le||null===(Le=Le.items)||void 0===Le?void 0:Le.length)-1)&&(0,O.jsx)(A.ZP,{className:z.changeButton,type:"primary",onClick:function(){br.current?br.current="next":Nr()},children:"下一题"})]})]})]})})]}),0!==st.status&&(0,O.jsx)(xe,{data:st}),(0,O.jsx)(y.Z,{title:"注意",open:ni,closable:!1,footer:!1,children:(0,O.jsxs)("div",{children:[(0,O.jsx)("p",{style:{marginBottom:0},children:"离开该题后不允许再次修改答案,确认离开吗?"}),(0,O.jsxs)("div",{style:{marginTop:60,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,O.jsx)(B.Z,{checked:oi,onChange:function(e){si(e.target.checked)},children:"下次不再显示"}),(0,O.jsxs)("div",{children:[(0,O.jsx)(A.ZP,{onClick:function(){ti(!1),si(!1)},children:"我再想想"}),(0,O.jsx)(A.ZP,{onClick:function(){ln.exercise_question_types[Vt].items[Xt].ques_status=1,cn(s()({},ln)),"prev"===kr.current?(0===Xt?(Vt-=1,Xt=ln.exercise_question_types[Vt].items.length-1):Xt-=1,Kt(Vt),Qt(Xt)):"next"===kr.current?(ln.exercise_question_types[Vt].items.length-1===Xt?(Vt+=1,Xt=0):Xt+=1,Kt(Vt),Qt(Xt)):(Kt(Sr.current.oneindex),Qt(Sr.current.twoindex)),ti(!1)},type:"primary",style:{marginLeft:30},children:"确认"})]})]})]})}),(0,O.jsx)(Ee.Z,{successCb:Mi})]}),Bn&&(0,O.jsx)(Pe(),{disabled:mi,bounds:xi,onStart:function(e,n){return function(e,n){var t,i=window.document.documentElement,r=i.clientWidth,o=i.clientHeight,s=null===(t=wi.current)||void 0===t?void 0:t.getBoundingClientRect();_i({left:-s.left+n.x,right:r-(s.right-n.x),top:-s.top+n.y,bottom:o-(s.bottom-n.y)-70})}(0,n)},children:(0,O.jsx)("div",{ref:wi,style:{position:"absolute",left:40,top:200,zIndex:101},children:(0,O.jsxs)("div",{onMouseOver:function(){mi&&hi(!1)},onMouseOut:function(){hi(!0)},children:[(0,O.jsxs)(S.Z,{className:z.cameraHeader,align:"middle",justify:"space-between",children:[(0,O.jsxs)(C.Z,{children:[(0,O.jsx)("i",{className:"iconfont icon-kaiqishexiangtou"}),(0,O.jsx)("span",{children:"已开启摄像头"})]}),ji?(0,O.jsx)(Me,{onClick:function(){ki(!1)}}):(0,O.jsx)(Re.Z,{onClick:function(){ki(!0)}})]}),(0,O.jsx)("div",{style:{display:ji?"flex":"none"},children:(0,O.jsx)(L.Z,{number:(null==ln||null===(qe=ln.exercise)||void 0===qe?void 0:qe.photo_count)-(null==ln||null===(Fe=ln.exercise)||void 0===Fe?void 0:Fe.take_photo),take_photo:null==ln||null===(Ge=ln.exercise)||void 0===Ge?void 0:Ge.take_photo,ref:qt,time:null===(ze=ln.exercise)||void 0===ze?void 0:ze.left_time,update:Di,supportCamera:function(e){2===e?(dt(!0),Mn(null==pn?void 0:pn.screen_shot_open),null!=pn&&pn.screen_shot_open||(Zn(null==pn?void 0:pn.screen_open),Di())):1===e&&setTimeout((function(){return v.history.push("/")}),3e3)}})})]})})}),(0,O.jsx)(y.Z,{destroyOnClose:!0,closable:!1,centered:!0,className:z.teachAnalysisModal,title:(0,O.jsxs)(S.Z,{align:"middle",justify:"space-between",children:[(0,O.jsx)(C.Z,{style:{color:"rgba(0,0,0,0.9)",fontSize:"16px"},children:"教师评价"}),(0,O.jsx)(C.Z,{children:(0,O.jsx)("i",{className:"iconfont icon-guanbi7",style:{fontSize:"15px",cursor:"pointer"},onClick:function(){return Ti(!1)}})})]}),open:Bi,footer:!1,onCancel:function(){return Ti(!1)},children:null==ln||null===(Xe=ln.exercise_answer_user)||void 0===Xe?void 0:Xe.analysis}),(0,O.jsx)(y.Z,{destroyOnClose:!0,centered:!0,width:555,title:(0,O.jsxs)(S.Z,{align:"middle",children:[(0,O.jsx)("div",{className:"c-black font16 mr8",children:"请输入解锁切屏码"}),(0,O.jsx)("div",{className:"c-grey-666",children:"(位置:规则设置-防作弊设置-高级防作弊模式)"})]}),open:Tt,footer:!1,onCancel:function(){return Et(!1)},children:(0,O.jsxs)("div",{children:[(0,O.jsx)("div",{className:"mb20 c-black",children:"输入解锁码后将退出考试,退出后在考试时间内可继续考试答题"}),(0,O.jsx)(He,{onOk:function(e){var n;console.log(e,444),e.join("")===(null==ln||null===(n=ln.exercise)||void 0===n?void 0:n.screen_key)?Gi():(j.ZP.warning("解锁切屏码输入有误"),It((function(e){return e+1})))}},Zt)]})})]})}))},16279:function(e,n,t){"use strict";var i=t(31468),r=t.n(i),o=t(7557),s=t.n(o),a=t(41498),l=t.n(a),c=t(79800),u=t.n(c),d=t(59301),p=t(31797),f=t(78241),m=t(43418),h=t(14491),v=t(98135),g=t(95237),x=t(43604),_=t(3113),w=t(77884),y=t(99232),b=t.n(y),j=t(76252),k=t(76279),S=t(5746),C=t(22961),N=t(37712);p.Z.Countdown;n.Z=(0,j.connect)((function(e){return{exercise:e.exercise}}))((function(e){var n,t,i,o,a=e.exercise,c=e.successCb,p=e.dispatch,y=(0,j.useParams)(),B=f.Z.useForm(),T=u()(B,1)[0],E=(0,d.useState)(!1),A=u()(E,2),P=A[0],Z=A[1],I=(0,d.useRef)(),L=a.actionTabs;(0,d.useEffect)((function(){"student-unlock"===a.actionTabs.key&&(Z(!1),T.resetFields())}),[a.actionTabs.key]);var q=function(){var e=l()(s()().mark((function e(){var n,t,i,r,o,a,u,d,f,m;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T.validateFields();case 2:if(o=T.getFieldsValue(),Z(!0),!("no"!==(null==L||null===(n=L.exerciseParams)||void 0===n?void 0:n.ip_limit)||null!=L&&null!==(t=L.exerciseParams)&&void 0!==t&&t.ip_bind_type)){e.next=7;break}return e.next=7,new Promise(function(){var e=l()(s()().mark((function e(n){var t,i;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.y)({ip_limit:null==L||null===(t=L.exerciseParams)||void 0===t?void 0:t.ip_limit,ip_bind:null==L||null===(i=L.exerciseParams)||void 0===i?void 0:i.ip_bind_type});case 2:return I.current=e.sent,e.abrupt("return",n());case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}());case 7:return e.next=9,(0,w.ZD)(null==L||null===(i=L.exerciseParams)||void 0===i?void 0:i.id,{exercise_user_id:null==L||null===(r=L.exerciseParams)||void 0===r?void 0:r.exercise_user_id,unlock_key:o.unlock_key,ip:I.current});case 9:if(0!==e.sent.status){e.next=22;break}if(!c){e.next=15;break}return p({type:"exercise/setActionTabs",payload:{}}),c(),e.abrupt("return");case 15:if(!o.time){e.next=19;break}return f={time:b()(o.time).format("YYYY-MM-DD HH:mm"),exercise_user_id:null==L||null===(u=L.exerciseParams)||void 0===u?void 0:u.exercise_user_id,id:null==L||null===(d=L.exerciseParams)||void 0===d?void 0:d.id},e.next=19,(0,w.qz)(f);case 19:m=null==L?void 0:L.exerciseParams,(0,k.nr)({inner_ip:m.inner_ip,public_ip:m.public_ip,open_camera:m.open_camera,ip_limit:m.ip_limit,ip_bind:m.ip_bind,ip_bind_type:m.ip_bind_type,exercise_tips:m.exercise_tips,exerciseId:m.id,screen_open:m.screen_open,screen_num:m.screen_num,screen_sec:m.screen_sec,coursesId:y.coursesId,login:null===(a=(0,C.eY)())||void 0===a?void 0:a.login,history:history,identity_verify:m.identity_verify,open_phone_video_recording:m.open_phone_video_recording,current_status:m.current_status}),p({type:"exercise/setActionTabs",payload:{}});case 22:Z(!1);case 23:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=[{title:"IP地址",dataIndex:"ip",key:"ip",render:function(e){return(0,N.jsx)("span",{className:e.indexOf("异常")>-1?"c-red":"c-green",children:e})}},{title:"浏览器",dataIndex:"browser",key:"browser",render:function(e){return(0,N.jsx)("span",{className:e.indexOf("异常")>-1?"c-red":"c-green",children:e})}},{title:"上次登录时间",dataIndex:"last_login_time",key:"last_login_time"}],R=(null==L||null===(n=L.exerciseParams)||void 0===n?void 0:n.errorMessage)&&"object"===r()(null==L||null===(t=L.exerciseParams)||void 0===t?void 0:t.errorMessage);return(0,N.jsx)(N.Fragment,{children:(0,N.jsxs)(m.Z,{width:514,centered:!0,closable:!(null==L||null===(i=L.exerciseParams)||void 0===i||!i.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"提示",open:"student-unlock"===a.actionTabs.key,footer:null,onCancel:function(){p({type:"exercise/setActionTabs",payload:{}})},children:[R&&(0,N.jsx)("div",{style:{marginBottom:16},children:"该账号已经存在异常情况,若非本人操作,请联系监考老师说明情况。 "}),!R&&(0,N.jsx)("div",{style:{marginBottom:16},children:"系统检测到您在考试时中途退出,现已将考试锁定。如需继续进行考试, 请尽快联系课堂老师进行解锁!"}),R&&(0,N.jsx)(h.Z,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[(null==L||null===(o=L.exerciseParams)||void 0===o?void 0:o.errorMessage)||{}],columns:M}),(0,N.jsx)("div",{className:"",children:(0,N.jsx)(f.Z,{form:T,layout:"vertical",autoComplete:"off",children:(0,N.jsx)(f.Z.Item,{label:"考试解锁码",name:"unlock_key",rules:[{required:!0,message:"请输入考试解锁码"}],children:(0,N.jsx)(v.Z.Password,{autoComplete:"off",placeholder:"请输入考试解锁码",visibilityToggle:!1})})})}),(0,N.jsxs)(g.Z,{justify:"space-between",align:"middle",children:[(0,N.jsx)(x.Z,{}),(0,N.jsx)(x.Z,{children:(0,N.jsx)(_.ZP,{loading:P,onClick:q,children:"进入考试"})})]})]})})}))},37842:function(e,n,t){"use strict";t.d(n,{Y4:function(){return Z},Im:function(){return E},ZP:function(){return L}});var i=t(79800),r=t.n(i),o=t(7557),s=t.n(o),a=t(41498),l=t.n(a),c=t(82242),u=t.n(c),d=t(85573),p=t.n(d),f=t(59301),m=t(98135),h=t(3113),v=t(43501),g=t(53547),x=t(6595),_=t(24334),w=t(57226),y=t(3162),b=t(76279),j=t(34376),k=t(51836),S=t(76252),C=t(57849),N=t(37712),B=m.Z.TextArea,T={visible:!1,tabIndex:"0"},E=p()(p()(p()(p()(p()(p()({},x.h.NOMATCH,"测试用例结果不匹配"),x.h.OK,"调试通过"),2,"调试超时"),3,"调试pod失败"),4,"编译失败"),5,"执行失败"),A=function(e){return e[e.SET_VISIBLE=0]="SET_VISIBLE",e[e.SET_TABINDEX=1]="SET_TABINDEX",e}(A||{});function P(e,n){switch(n.type){case A.SET_VISIBLE:return u()(u()({},e),{},{visible:n.payload});case A.SET_TABINDEX:return u()(u()({},e),{},{tabIndex:n.payload});default:throw new Error}}function Z(e){var n=e.status,t=e.error_msg,i=e.output,r=e.input,o=e.expected_output,a=e.is_file,c=e.input_file_url,u=e.output_file_url,d=e.expected_output_file_url,p=e.setMonacoValue,m=e.setData,h=(0,f.useRef)(),v=(0,f.useRef)(),g=(0,f.useRef)(),w=null,S={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch((0,f.useEffect)((function(){if(i&&!a&&h.current){var e=new j.Terminal({fontSize:14,letterSpacing:1,cols:83,rows:10});e.open(h.current);var n=(0,b.pp)(_.Base64.decode(i));e.write(n),e.setOption("theme",{background:"#1e1e1e"})}if(r&&!a&&v.current){var t=new j.Terminal({fontSize:14,letterSpacing:1,cols:83,rows:10});t.open(v.current),t.write((0,b.pp)(r)),t.setOption("theme",{background:"#1e1e1e"})}if(o&&!a&&g.current){var s=new j.Terminal({fontSize:14,letterSpacing:1,cols:83,rows:10});s.open(g.current),s.write((0,b.pp)(_.Base64.decode(o))),s.setOption("theme",{background:"#1e1e1e"})}}),[i]),n){case x.h.NOMATCH:w=(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("p",{className:"c-red",children:"实际输出:"}),!a&&(0,N.jsx)("div",{ref:h}),a&&(0,N.jsx)("div",{style:S,children:(0,N.jsx)("a",{style:{fontSize:"16px"},onClick:l()(s()().mark((function e(){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,k.ZP)(u,{method:"Get",headers:{"Content-Type":"application/xml",Accept:"*/*"}});case 2:n=e.sent,p(n),setTimeout((function(){m(u)}),200);case 5:case"end":return e.stop()}}),e)}))),children:i})}),(0,N.jsx)("p",{className:"c-red",children:"预期输出:"}),!a&&(0,N.jsx)("div",{ref:g}),a&&(0,N.jsx)("div",{style:S,children:(0,N.jsx)("a",{style:{fontSize:"16px"},onClick:l()(s()().mark((function e(){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(d,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});case 2:return n=e.sent,e.t0=p,e.next=6,n.text();case 6:e.t1=e.sent,(0,e.t0)(e.t1),setTimeout((function(){m(d)}),200);case 9:case"end":return e.stop()}}),e)}))),children:o})})]});break;case x.h.EXECUTEFAILURE:w=(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("div",{style:{border:"1px #F6F7F9 solid"},children:[(0,N.jsx)("p",{style:{width:"100%",height:40,background:"#F6F7F9",lineHeight:"40px",color:"#666666",paddingLeft:"12px"},children:"最后执行的输入:"}),!a&&(0,N.jsx)(y.Z,{value:r,style:S}),a&&(0,N.jsx)("div",{style:S,children:(0,N.jsx)("a",{onClick:function(){return(0,b.LR)(c,r)},children:r})})]}),(0,N.jsxs)("div",{style:{border:"1px #F6F7F9 solid",marginTop:"10px"},children:[(0,N.jsx)("p",{style:{width:"100%",height:40,background:"#F6F7F9",lineHeight:"40px",color:"#666666",paddingLeft:"12px"},children:"执行出错信息:"}),(0,N.jsxs)("pre",{className:"error",style:{color:"#E30000",padding:"0 10px"},children:[_.Base64.decode(t),"111"]})]})]});break;case x.h.COMPILEFAILURE:w=(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("p",{children:"执行出错信息:"}),(0,N.jsx)("pre",{className:"error",children:_.Base64.decode(t)})]});break;case x.h.PODFAILURE:w=(0,N.jsx)("p",{children:"创建pod失败,请稍后重试"});break;case x.h.TIMEOUT:w=(0,N.jsx)("p",{children:"评测超时,请稍后重试"})}return(0,N.jsxs)(N.Fragment,{children:[" ",w," "]})}function I(e){var n=e.status,t=e.error_msg,i=e.execute_time,r=e.output,o=e.input,s=e.expected_output,a=(e.is_file,e.input_file_url,e.output_file_url,e.expected_output_file_url,null);switch(n){case x.h.OK:a=(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("p",{children:["执行用时:",i/1e3,"秒"]}),(0,N.jsx)("p",{children:"执行结果:"}),(0,N.jsx)("pre",{children:_.Base64.decode(r)})]});break;case x.h.NOMATCH:a=(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("p",{children:["输入:",(0,N.jsx)("pre",{children:o})]}),(0,N.jsxs)("p",{children:["输出:",r&&_.Base64.decode(r)]}),(0,N.jsxs)("p",{children:["预期输出:",s&&_.Base64.decode(s)]})]});break;case x.h.EXECUTEFAILURE:case x.h.COMPILEFAILURE:a=(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("p",{children:["最后执行的输入:",(0,N.jsx)("pre",{children:o})]}),(0,N.jsx)("p",{children:"执行出错信息:"}),(0,N.jsx)("pre",{className:"error",children:_.Base64.decode(t)})]});break;case x.h.PODFAILURE:a=(0,N.jsx)("p",{children:"创建pod失败,请稍后重试"});break;case x.h.TIMEOUT:a=(0,N.jsx)("p",{children:"评测超时,请稍后重试"})}return(0,N.jsxs)(N.Fragment,{children:[" ",a," "]})}var L=function(e){var n=e.input,t=e.is_file,i=e.debuging,o=e.submitting,a=(e.executingMessage,e.debugResult),c=e.onChangeInput,u=e.onDebugCode,d=e.onSubmitCode,p=e.hack,m=e.user,x=(0,f.useReducer)(P,T),_=r()(x,2),y=_[0],b=_[1],j=y.visible,E=(y.tabIndex,(0,S.useSearchParams)()),Z=r()(E,1)[0];var L=(0,f.useMemo)((function(){if(a){a.status;return(0,N.jsx)(N.Fragment,{children:I(a)})}return null}),[a]);var q=function(){var e=l()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,k.ZP)("/api/problems/".concat(n,"/start.json"),{method:"get",params:{hack_user_id:null==m?void 0:m.user_id}});case 2:(t=e.sent)&&(window.location.href="/myproblems/".concat(null==t?void 0:t.identifier,"?type=1"));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,N.jsxs)("div",{className:"test-case-panel",children:[(0,N.jsxs)("div",{className:"test-case-panel-body ".concat(j?"active":""),children:[(0,N.jsx)("ul",{className:"s-navs",children:(0,N.jsx)("li",{children:(0,N.jsx)("a",{className:"active",children:"调试代码结果"})})}),(0,N.jsx)(C.Z,{leftTitle:"自定义测试用例",rightTitle:"代码执行结果",style:{height:240},leftNode:(0,N.jsx)(B,{placeholder:"请输入自测用例(如果未填写,自测运行时,系统会自动填充第一个非隐藏的文本类型的测试用例)",value:t?"":n,onChange:c}),rightNode:i?(0,N.jsx)(w.Z,{message:"代码执行中..."}):a?L:(0,N.jsx)("p",{style:{color:"#536879"},children:"请填写测试用例的输入值,点击“调试代码”"})})]}),(0,N.jsx)("a",{className:"btn-collapse ".concat(j?"up":""),onClick:function(){b({type:A.SET_VISIBLE,payload:!j})},children:j?(0,N.jsx)(v.Z,{}):(0,N.jsx)(g.Z,{})}),(0,N.jsxs)("footer",{className:"footer",children:[(0,N.jsx)("span",{children:"控制台"}),(0,N.jsxs)("div",{className:"flex-container",children:[(null==p?void 0:p.is_program)&&(null==p?void 0:p.above_question)&&(0,N.jsx)(h.ZP,{onClick:function(){return q(null==p?void 0:p.above_question)},id:"oj-prev",className:"btn-blue",type:"ghost",children:"上一题"}),(null==p?void 0:p.is_program)&&(null==p?void 0:p.under_question)&&(0,N.jsx)(h.ZP,{onClick:function(){return q(null==p?void 0:p.under_question)},id:"oj-next",className:"btn-blue",type:"ghost",children:"下一题"}),(0,N.jsx)(h.ZP,{className:"btn-green",type:"ghost",loading:i,onClick:function(){b({type:A.SET_VISIBLE,payload:!0}),b({type:A.SET_TABINDEX,payload:"1"}),u()},children:"调试代码"}),"8"!==Z.get("qtype")&&(0,N.jsx)(h.ZP,{type:"primary",className:"custom-ant-disabled",loading:o,disabled:o,onClick:function(){b({type:A.SET_VISIBLE,payload:!1}),d()},children:"评测并提交"})]})]})]})}},6595:function(e,n,t){"use strict";t.d(n,{h:function(){return i}});var i=function(e){return e[e.NOMATCH=-1]="NOMATCH",e[e.OK=0]="OK",e[e.TIMEOUT=2]="TIMEOUT",e[e.PODFAILURE=3]="PODFAILURE",e[e.COMPILEFAILURE=4]="COMPILEFAILURE",e[e.EXECUTEFAILURE=5]="EXECUTEFAILURE",e}({})},58513:function(e,n,t){"use strict";t.d(n,{H7:function(){return f},MK:function(){return p},MU:function(){return l},X6:function(){return u},bM:function(){return a},fi:function(){return m},fu:function(){return s},n4:function(){return h},rX:function(){return d},vl:function(){return v},zO:function(){return c}});var i=t(82242),r=t.n(i),o=t(51836);function s(e,n){return(0,o.U2)("myproblems/".concat(e,".json"),r()({hidePopLogin:!0},n||{}))}function a(e,n){return(0,o.v_)("myproblems/".concat(e,"/code_submit.json"),n)}function l(e,n){return(0,o.v_)("myproblems/".concat(e,"/code_debug.json"),n)}function c(e,n){return n.language&&(n.language=encodeURIComponent(n.language)),(0,o.U2)("myproblems/".concat(e,"/submit_records.json"),n)}function u(e){return(0,o.U2)("myproblems/record_detail.json",{id:e})}function d(e,n){return(0,o.U2)("myproblems/".concat(e,"/result.json"),{mode:n})}function p(e,n){return(0,o.v_)("myproblems/".concat(e,"/add_notes.json"),n)}function f(e,n){return(0,o.v_)("myproblems/".concat(e,"/restore_initial_code.json"),n)}function m(e){return(0,o.v_)("myproblems/".concat(e,"/sync_code.json"))}function h(e,n){return(0,o.v_)("myproblems/".concat(e,"/update_code.json"),n)}function v(e,n){return(0,o.v_)("discusses/".concat(e,"/plus.json"),n)}},95135:function(e,n,t){"use strict";t.d(n,{_:function(){return a}});var i=t(91232),r=t.n(i),o=t(59301),s=t(43418),a=function(e){var n,t,i=(0,o.useRef)([]),a=function(){var e,n=r()(i.current);try{for(n.s();!(e=n.n()).done;){var t=e.value;clearTimeout(t)}}catch(e){n.e(e)}finally{n.f()}i.current=[]};return(0,o.useEffect)((function(){var n,t;if(a(),null!=e&&null!==(n=e.exercise)&&void 0!==n&&n.left_time&&(null==e||null===(t=e.exercise)||void 0===t||null===(t=t.exercise_events)||void 0===t?void 0:t.length)>0){var o,l,c=r()(null==e||null===(o=e.exercise)||void 0===o?void 0:o.exercise_events);try{var u=function(){var n,t=l.value;if((null==e||null===(n=e.exercise)||void 0===n?void 0:n.left_time)>60*(null==t?void 0:t.reminder_time)){var r,o=setTimeout((function(){s.Z.info({content:"".concat(null==t?void 0:t.reminder_content),icon:null,title:"提示",centered:!0,okText:"知道了"})}),1e3*((null==e||null===(r=e.exercise)||void 0===r?void 0:r.left_time)-60*(null==t?void 0:t.reminder_time)));i.current.push(o)}};for(c.s();!(l=c.n()).done;)u()}catch(e){c.e(e)}finally{c.f()}}}),[null==e||null===(n=e.exercise)||void 0===n?void 0:n.left_time,null==e||null===(t=e.exercise)||void 0===t?void 0:t.exercise_events]),a}},27666:function(e,n,t){"use strict";var i=t(43527),r=t(79640);n.Z=function(e){let n;const t=t=>()=>{n=null,e.apply(void 0,(0,i.Z)(t))},o=function(){if(null==n){for(var e=arguments.length,i=new Array(e),o=0;o{r.Z.cancel(n),n=null},o}},81228:function(e,n,t){"use strict";t.d(n,{Z:function(){return S}});var i=t(40419),r=t(38467),o=t(46840),s=t(60317),a=t(59301),l=t(92310),c=t.n(l),u=t(28647),d=t(54798),p=t(27666),f=t(36355),m=t(83116),h=t(37613);const v=e=>{const{componentCls:n}=e;return{[n]:{position:"fixed",zIndex:e.zIndexPopup}}};var g=(0,m.Z)("Affix",(e=>{const n=(0,h.TS)(e,{zIndexPopup:e.zIndexBase+10});return[v(n)]}));function x(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function _(e,n,t){if(void 0!==t&&n.top>e.top-t)return t+n.top}function w(e,n,t){if(void 0!==t&&n.bottom{const n=e.getTargetFunc(),t=null==n?void 0:n(),{prevTarget:i}=e.state;i!==t&&(y.forEach((n=>{null==i||i.removeEventListener(n,e.lazyUpdatePosition),null==t||t.addEventListener(n,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:t}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:n}=e.state,t=e.getTargetFunc(),i=null==t?void 0:t();y.forEach((t=>{null==i||i.removeEventListener(t,e.lazyUpdatePosition),null==n||n.removeEventListener(t,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:n,offsetTop:t}=e.props;return void 0===n&&void 0===t?0:t},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:n,lastAffix:t}=e.state,{onChange:i}=e.props,r=e.getTargetFunc();if(n!==j.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!r)return;const o=e.getOffsetTop(),s=e.getOffsetBottom(),a=r();if(a){const n={status:j.None},r=x(e.placeholderNodeRef.current);if(0===r.top&&0===r.left&&0===r.width&&0===r.height)return;const l=x(a),c=_(r,l,o),u=w(r,l,s);void 0!==c?(n.affixStyle={position:"fixed",top:c,width:r.width,height:r.height},n.placeholderStyle={width:r.width,height:r.height}):void 0!==u&&(n.affixStyle={position:"fixed",bottom:u,width:r.width,height:r.height},n.placeholderStyle={width:r.width,height:r.height}),n.lastAffix=!!n.affixStyle,i&&t!==n.lastAffix&&i(n.lastAffix),e.setState(n)}},e.prepareMeasure=()=>{e.setState({status:j.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,p.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,p.Z)((()=>{const n=e.getTargetFunc(),{affixStyle:t}=e.state;if(n&&t){const i=e.getOffsetTop(),r=e.getOffsetBottom(),o=n();if(o&&e.placeholderNodeRef.current){const n=x(o),s=x(e.placeholderNodeRef.current),a=_(s,n,i),l=w(s,n,r);if(void 0!==a&&t.top===a||void 0!==l&&t.bottom===l)return}}e.prepareMeasure()})),e}return(0,r.Z)(t,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:n}=this.props;return void 0!==n?n:null!=e?e:b}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:n}=this.state,{affixPrefixCls:t,rootClassName:i,children:r}=this.props,o=c()(e&&i,{[t]:!!e});let s=(0,d.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return a.createElement(u.Z,{onResize:this.updatePosition},a.createElement("div",Object.assign({},s,{ref:this.placeholderNodeRef}),e&&a.createElement("div",{style:n,"aria-hidden":"true"}),a.createElement("div",{className:o,ref:this.fixedNodeRef,style:e},a.createElement(u.Z,{onResize:this.updatePosition},r))))}}]),t}(a.Component);k.contextType=f.E_;var S=(0,a.forwardRef)(((e,n)=>{const{prefixCls:t,rootClassName:i}=e,{getPrefixCls:r}=(0,a.useContext)(f.E_),o=r("affix",t),[s,l]=g(o),u=Object.assign(Object.assign({},e),{affixPrefixCls:o,rootClassName:c()(i,l)});return s(a.createElement(k,Object.assign({},u,{ref:n})))}))},46400:function(e,n,t){"use strict";t.d(n,{Z:function(){return L}});var i=t(2720),r=t(97650),o=t(14834),s=t(38081),a=t(53183),l=t(92310),c=t.n(l),u=t(19090),d=t(19155),p=t(59301),f=t(92343),m=t(36355),h=t(17313),v=t(83116);const g=(e,n,t,i,r)=>({backgroundColor:e,border:`${i.lineWidth}px ${i.lineType} ${n}`,[`${r}-icon`]:{color:t}}),x=e=>{const{componentCls:n,motionDurationSlow:t,marginXS:i,marginSM:r,fontSize:o,fontSizeLG:s,lineHeight:a,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:p,withDescriptionPadding:f,defaultPadding:m}=e;return{[n]:Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:l,[`&${n}-rtl`]:{direction:"rtl"},[`${n}-content`]:{flex:1,minWidth:0},[`${n}-icon`]:{marginInlineEnd:i,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:a},"&-message":{color:p},[`&${n}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${t} ${c}, opacity ${t} ${c},\n padding-top ${t} ${c}, padding-bottom ${t} ${c},\n margin-bottom ${t} ${c}`},[`&${n}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${n}-with-description`]:{alignItems:"flex-start",padding:f,[`${n}-icon`]:{marginInlineEnd:r,fontSize:u,lineHeight:0},[`${n}-message`]:{display:"block",marginBottom:i,color:p,fontSize:s},[`${n}-description`]:{display:"block",color:d}},[`${n}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},_=e=>{const{componentCls:n,colorSuccess:t,colorSuccessBorder:i,colorSuccessBg:r,colorWarning:o,colorWarningBorder:s,colorWarningBg:a,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:p,colorInfoBg:f}=e;return{[n]:{"&-success":g(r,i,t,e,n),"&-info":g(f,p,d,e,n),"&-warning":g(a,s,o,e,n),"&-error":Object.assign(Object.assign({},g(u,c,l,e,n)),{[`${n}-description > pre`]:{margin:0,padding:0}})}}},w=e=>{const{componentCls:n,iconCls:t,motionDurationMid:i,marginXS:r,fontSizeIcon:o,colorIcon:s,colorIconHover:a}=e;return{[n]:{"&-action":{marginInlineStart:r},[`${n}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:o,lineHeight:`${o}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${t}-close`]:{color:s,transition:`color ${i}`,"&:hover":{color:a}}},"&-close-text":{color:s,transition:`color ${i}`,"&:hover":{color:a}}}}},y=e=>[x(e),_(e),w(e)];var b=(0,v.Z)("Alert",(e=>[y(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}))),j=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{icon:n,prefixCls:t,type:i}=e,r=k[i]||null;return n?(0,f.wm)(n,p.createElement("span",{className:`${t}-icon`},n),(()=>({className:c()(`${t}-icon`,{[n.props.className]:n.props.className})}))):p.createElement(r,{className:`${t}-icon`})},C=e=>{const{isClosable:n,prefixCls:t,closeIcon:i,handleClose:r}=e,s=!0===i||void 0===i?p.createElement(o.Z,null):i;return n?p.createElement("button",{type:"button",onClick:r,className:`${t}-close-icon`,tabIndex:0},s):null};var N=e=>{const{description:n,prefixCls:t,message:i,banner:r,className:o,rootClassName:s,style:a,onMouseEnter:l,onMouseLeave:f,onClick:h,afterClose:v,showIcon:g,closable:x,closeText:_,closeIcon:w,action:y}=e,k=j(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[N,B]=p.useState(!1);const T=p.useRef(null),{getPrefixCls:E,direction:A,alert:P}=p.useContext(m.E_),Z=E("alert",t),[I,L]=b(Z),q=n=>{var t;B(!0),null===(t=e.onClose)||void 0===t||t.call(e,n)},M=p.useMemo((()=>void 0!==e.type?e.type:r?"warning":"info"),[e.type,r]),R=p.useMemo((()=>!!_||("boolean"==typeof x?x:!1!==w&&null!=w)),[_,w,x]),O=!(!r||void 0!==g)||g,D=c()(Z,`${Z}-${M}`,{[`${Z}-with-description`]:!!n,[`${Z}-no-icon`]:!O,[`${Z}-banner`]:!!r,[`${Z}-rtl`]:"rtl"===A},null==P?void 0:P.className,o,s,L),F=(0,d.Z)(k,{aria:!0,data:!0});return I(p.createElement(u.default,{visible:!N,motionName:`${Z}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:v},(t=>{let{className:r,style:o}=t;return p.createElement("div",Object.assign({ref:T,"data-show":!N,className:c()(D,r),style:Object.assign(Object.assign(Object.assign({},null==P?void 0:P.style),a),o),onMouseEnter:l,onMouseLeave:f,onClick:h,role:"alert"},F),O?p.createElement(S,{description:n,icon:e.icon,prefixCls:Z,type:M}):null,p.createElement("div",{className:`${Z}-content`},i?p.createElement("div",{className:`${Z}-message`},i):null,n?p.createElement("div",{className:`${Z}-description`},n):null),y?p.createElement("div",{className:`${Z}-action`},y):null,p.createElement(C,{isClosable:R,prefixCls:Z,closeIcon:_||w,handleClose:q}))})))},B=t(40419),T=t(38467),E=t(46840),A=t(60317);let P=function(e){(0,E.Z)(t,e);var n=(0,A.Z)(t);function t(){var e;return(0,B.Z)(this,t),(e=n.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return(0,T.Z)(t,[{key:"componentDidCatch",value:function(e,n){this.setState({error:e,info:n})}},{key:"render",value:function(){const{message:e,description:n,children:t}=this.props,{error:i,info:r}=this.state,o=r&&r.componentStack?r.componentStack:null,s=void 0===e?(i||"").toString():e,a=void 0===n?o:n;return i?p.createElement(N,{type:"error",message:s,description:p.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},a)}):t}}]),t}(p.Component);var Z=P;const I=N;I.ErrorBoundary=Z;var L=I},79817:function(e,n,t){"use strict";t.d(n,{Z:function(){return C}});var i=t(43527),r=t(92310),o=t.n(r),s=t(6164),a=t(59301),l=t(6774),c=t(13845),u=t(68031),d=t(81228),p=t(36355);var f=a.createContext(void 0);var m=e=>{const{href:n,title:t,prefixCls:i,children:r,className:s,target:l,replace:c}=e,u=a.useContext(f),{registerLink:d,unregisterLink:m,scrollTo:h,onClick:v,activeLink:g,direction:x}=u||{};a.useEffect((()=>(null==d||d(n),()=>{null==m||m(n)})),[n]);const{getPrefixCls:_}=a.useContext(p.E_),w=_("anchor",i),y=g===n,b=o()(`${w}-link`,s,{[`${w}-link-active`]:y}),j=o()(`${w}-link-title`,{[`${w}-link-title-active`]:y});return a.createElement("div",{className:b},a.createElement("a",{className:j,href:n,title:"string"==typeof t?t:"",target:l,onClick:e=>{c&&(e.preventDefault(),window.location.replace(n)),null==v||v(e,{title:t,href:n}),null==h||h(n)}},t),"horizontal"!==x?r:null)},h=t(17313),v=t(83116),g=t(37613);const x=e=>{const{componentCls:n,holderOffsetBlock:t,motionDurationSlow:i,lineWidthBold:r,colorPrimary:o,lineType:s,colorSplit:a}=e;return{[`${n}-wrapper`]:{marginBlockStart:-t,paddingBlockStart:t,[n]:Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"relative",paddingInlineStart:r,[`${n}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${e.linkPaddingInlineStart}px 0`,"&-title":Object.assign(Object.assign({},h.vS),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${n}-link-title`]:{color:e.colorPrimary},[`${n}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${n}-wrapper-horizontal)`]:{[n]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${r}px ${s} ${a}`,content:'" "'},[`${n}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${i} ease-in-out`,width:r,backgroundColor:o,[`&${n}-ink-visible`]:{display:"inline-block"}}}},[`${n}-fixed ${n}-ink ${n}-ink`]:{display:"none"}}}},_=e=>{const{componentCls:n,motionDurationSlow:t,lineWidthBold:i,colorPrimary:r}=e;return{[`${n}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[n]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${n}-link:first-of-type`]:{paddingInline:0},[`${n}-ink`]:{position:"absolute",bottom:0,transition:`left ${t} ease-in-out, width ${t} ease-in-out`,height:i,backgroundColor:r}}}}};var w=(0,v.Z)("Anchor",(e=>{const{fontSize:n,fontSizeLG:t,paddingXXS:i}=e,r=(0,g.TS)(e,{holderOffsetBlock:i,anchorPaddingBlockSecondary:i/2,anchorTitleBlock:n/14*3,anchorBallSize:t/2});return[x(r),_(r)]}),(e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding})));function y(){return window}function b(e,n){if(!e.getClientRects().length)return 0;const t=e.getBoundingClientRect();return t.width||t.height?n===window?(n=e.ownerDocument.documentElement,t.top-n.clientTop):t.top-n.getBoundingClientRect().top:t.top}const j=/#([\S ]+)$/,k=e=>{var n;const{rootClassName:t,anchorPrefixCls:r,className:h,style:v,offsetTop:g,affix:x=!0,showInkInFixed:_=!1,children:w,items:k,direction:S="vertical",bounds:C,targetOffset:N,onClick:B,onChange:T,getContainer:E,getCurrentAnchor:A,replace:P}=e;const[Z,I]=a.useState([]),[L,q]=a.useState(null),M=a.useRef(L),R=a.useRef(null),O=a.useRef(null),D=a.useRef(!1),{direction:F,getTargetContainer:G,anchor:z}=a.useContext(p.E_),H=null!==(n=null!=E?E:G)&&void 0!==n?n:y,W=JSON.stringify(Z),U=(0,s.useEvent)((e=>{Z.includes(e)||I((n=>[].concat((0,i.Z)(n),[e])))})),V=(0,s.useEvent)((e=>{Z.includes(e)&&I((n=>n.filter((n=>n!==e))))})),K=(0,s.useEvent)((e=>{if(M.current===e)return;const n="function"==typeof A?A(e):e;q(n),M.current=n,null==T||T(e)})),Y=a.useCallback((()=>{if(D.current)return;const e=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const i=[],r=H();if(e.forEach((e=>{const o=j.exec(null==e?void 0:e.toString());if(!o)return;const s=document.getElementById(o[1]);if(s){const o=b(s,r);on.top>e.top?n:e)).link;return""}(Z,void 0!==N?N:g||0,C);K(e)}),[W,N,g]),J=a.useCallback((e=>{K(e);const n=j.exec(e);if(!n)return;const t=document.getElementById(n[1]);if(!t)return;const i=H();let r=(0,c.Z)(i,!0)+b(t,i);r-=void 0!==N?N:g||0,D.current=!0,(0,u.Z)(r,{getContainer:H,callback(){D.current=!1}})}),[N,g]),X=o()(t,`${r}-wrapper`,{[`${r}-wrapper-horizontal`]:"horizontal"===S,[`${r}-rtl`]:"rtl"===F},h,null==z?void 0:z.className),Q=o()(r,{[`${r}-fixed`]:!x&&!_}),$=o()(`${r}-ink`,{[`${r}-ink-visible`]:L}),ee=Object.assign(Object.assign({maxHeight:g?`calc(100vh - ${g}px)`:"100vh"},null==z?void 0:z.style),v),ne=e=>Array.isArray(e)?e.map((e=>a.createElement(m,Object.assign({replace:P},e,{key:e.key}),"vertical"===S&&ne(e.children)))):null,te=a.createElement("div",{ref:R,className:X,style:ee},a.createElement("div",{className:Q},a.createElement("span",{className:$,ref:O}),"items"in e?ne(k):w));a.useEffect((()=>{const e=H();return Y(),null==e||e.addEventListener("scroll",Y),()=>{null==e||e.removeEventListener("scroll",Y)}}),[W]),a.useEffect((()=>{"function"==typeof A&&K(A(M.current||""))}),[A]),a.useEffect((()=>{(()=>{var e;const n=null===(e=R.current)||void 0===e?void 0:e.querySelector(`.${r}-link-title-active`);if(n&&O.current){const{style:e}=O.current,t="horizontal"===S;e.top=t?"":`${n.offsetTop+n.clientHeight/2}px`,e.height=t?"":`${n.clientHeight}px`,e.left=t?`${n.offsetLeft}px`:"",e.width=t?`${n.clientWidth}px`:"",t&&(0,l.Z)(n,{scrollMode:"if-needed",block:"nearest"})}})()}),[S,A,W,L]);const ie=a.useMemo((()=>({registerLink:U,unregisterLink:V,scrollTo:J,activeLink:L,onClick:B,direction:S})),[L,B,J,S]);return a.createElement(f.Provider,{value:ie},x?a.createElement(d.Z,{offsetTop:g,target:H},te):te)};const S=e=>{const{prefixCls:n,rootClassName:t}=e,{getPrefixCls:i}=a.useContext(p.E_),r=i("anchor",n),[s,l]=w(r);return s(a.createElement(k,Object.assign({},e,{rootClassName:o()(l,t),anchorPrefixCls:r})))};S.Link=m;var C=S},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigC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bpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="}}]); \ No newline at end of file +(self.webpackChunk=self.webpackChunk||[]).push([[14105,79817,4977],{88289:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var i=t(4751),r=t(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},s=t(68475),a=function(e,n){return r.createElement(s.Z,(0,i.Z)({},e,{ref:n,icon:o}))};var l=r.forwardRef(a)},84462:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},n="5.0",t={},i=null,r=!1,o=!1,s=null,a=!1,l=null,c=null,u=0;u4?parseFloat(e):5};function b(){try{return window.self!==window.top}catch(e){return!0}}function j(){return(!t.hasOwnProperty("screenshotGenerator")||!t.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,n){c=e,M(e,n)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,n){var t=parseFloat(e);NaN!==t&&t<5?console.log("The GeoGebra HTML5 codebase version "+t+" is deprecated. Using version latest instead."):(l=e,q(e,n))},e.getHTML5CodebaseVersion=function(){return h},e.getParameters=function(){return t},e.setFontsCSSURL=function(e){w=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function n(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,r="auto",o=t.id,s=!1,l=0;l=5)return!0;var n=e.getAppletObject();return!(!n||"function"!=typeof n.recalculateEnvironments)&&(n.recalculateEnvironments(),!0)},e.startAnimation=function(){var n=e.getAppletObject();return!(!n||"function"!=typeof n.startAnimation)&&(n.startAnimation(),!0)},e.stopAnimation=function(){var n=e.getAppletObject();return!(!n||"function"!=typeof n.stopAnimation)&&(n.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==t.id?t.id:"ggbApplet";return window[e]},e.resize=function(){};var N=function(e){return e&&"false"!==e},B=function(n,t,i){y(h)<=4.2&&(i=!0);var r=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==h||ggbHTML5LoadedCodebaseIsWebSimple&&!g)&&(r=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var o=document.createElement("div");o.classList.add("appletParameters","notranslate");var s=t.width,a=t.height;if(t.disableAutoScale=void 0===t.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():t.disableAutoScale,void 0!==t.width)if(y(h)<=4.4)N(t.showToolBar)&&(t.height-=7),N(t.showAlgebraInput)&&(t.height-=37),t.width<605&&N(t.showToolBar)&&(t.width=605,s=605);else{var u=100;(N(t.showToolBar)||N(t.showMenuBar))&&(t.hasOwnProperty("customToolBar")&&(t.customToolbar=t.customToolBar),u=N(t.showMenuBar)?245:155),s=5?(t.appletOnLoad=function(e){var t=n.querySelector(".ggb_preview");t&&t.parentNode.removeChild(t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(x),window.GGBT_wsf_view&&$(window).trigger("resize"),f(e)},_||x.appendChild(b)):o.appendChild(b),x.appendChild(o),_||n.appendChild(x),setTimeout((function(){e.resize()}),1)}function j(e,n){n&&"function"==typeof n.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,n.appletOnLoad):renderGGBElement(e),R("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",n)}function k(e,n){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:n}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){j(e.article,e.params)})),html5AppletsToProcess=null)},y(h)<5&&(e.className+=" geogebraweb")):j(e,n)}if(r){scriptLoadStarted=!0;for(var S=0;S0?(r.remove(),a.attr("id","fullscreencontent").show(),jQuery(o).append(a),window.dispatchEvent(new Event("resize"))):B(r,n,!1),window.GGBT_wsf_view.launchFullScreen(o)}else m=i,B(e,n,!1);if(!window.GGBT_wsf_view)for(s=0;se/4*3&&(a=e/4*3),l=a/5.8,s.setAttribute("src",_),s.setAttribute("width",a),s.setAttribute("height",l);var u=(e-a)/2,d=(n-l)/2;s.style.left=u+"px",s.style.top=d+"px",r.appendChild(s)}return r.appendChild(c),r},I=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},L=["web","webSimple","web3d","tablet","tablet3d","phone"],q=function(e,n){if(h=e,n)M(h,!0);else{var o,s,a=!r;if(a){var l=y(h);!isNaN(l)&&l<4.4&&(a=!1)}o="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=h.indexOf("//");for(var u in s=c>0?h:0===c?o+h:"https://www.geogebra.org/apps/5.2.814.0/",L)if(h.slice(-1*L[u].length)===L[u]||h.slice(-1*(L[u].length+1))===L[u]+"/")return void M(s,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!a||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||N(t.showToolBar)||N(t.showMenuBar)||N(t.showAlgebraInput)||N(t.enableRightClick)||t.appName&&"classic"!=t.appName?s+="web3d/":s+="webSimple/",M(s,!1)}},M=function(e,n){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===n&&(n=-1===e.indexOf("http")),f=n,v="web.nocache.js",g=!1;var t=p.split("/");t.length>1&&(n||"webSimple"!==t[t.length-2]?L.indexOf(t[t.length-2])>=0&&(v=t[t.length-2]+".nocache.js"):(v="webSimple.nocache.js",g=!0)),t=e.split("/"),"test"===(h=t[t.length-3]).substr(0,4)?h=h.substr(4,1)+"."+h.substr(5,1):"war"!==h.substr(0,3)&&"beta"!==h.substr(0,4)||(h="5.0");var i=parseFloat(h);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),q("5.0",n))}},R=function(e,n){window.console&&window.console.log&&(!n||void 0===n.showLogging||n.showLogging&&"false"!==n.showLogging)&&console.log(e)};function O(){var e=n;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),q(e,!1),null!==c&&M(c,f),a=!0}return void 0!==t.material_id?k(O):O(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function n(e,n){1!=n?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+n+","+n+")",e.style.webkitTransform="scale("+n+","+n+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function t(e,n,t,i,r){if(e.isScreenshoGenerator)return 1;var o,s=void 0!==i&&i,a=null!=e.noScaleMargin&&e.noScaleMargin,l=(o=e.autoHeight)&&"false"!==o,c=function(e,n,t,i,r,o){var s=null;if(null!=o&&""!=o)for(var a=e.parentNode;null!=a;){if((" "+a.className+" ").indexOf(" "+o+" ")>-1){s=a;break}a=a.parentNode}var l=0,c=0,u=0,d=0,p=0,f=0,m=0;if(s)l=s.offsetWidth,c=Math.max(i?s.offsetWidth:0,s.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=l):(l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var h=e.getBoundingClientRect();h.left>0&&h.left<=l&&(void 0===r||!r)&&("rtl"===document.dir?(p=l-h.width-h.left,f=u<=480?10:30):(f=h.left,p=u<=480?10:30),d=f+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,m=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,m=40))}return e&&((void 0===t||!t)&&n>0&&n+d1&&(s=!0)),n&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(s=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?o:(r=t(e,n,s,i,e.scaleContainerClass),!s||e.hasOwnProperty("scale")&&1!==o?Math.min(o,r):r)}function r(e){var n=Math.min(window.innerWidth,document.documentElement.clientWidth),t=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),r=(n-i.width)/2,o=(t-i.height)/2;o<0&&(o=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=r<40?"40px":r+"px",e.style.top=o+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=o<40?"40px":o+"px",e.style.left=r+"px")}return{responsiveResize:function(t,o){var s=t.querySelector(".appletParameters");if(s){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(o.id!==s.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(t)}if(s.parentElement&&/fullscreen/.test(s.parentElement.className))return;var a=i(o,t);e()&&s.setAttribute("data-param-scale",a);for(var l=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var n=c[e];return null==n?null:n},r=d,webModule.__errFn=e}function B(){function e(e){var n=e.lastIndexOf(rb);-1==n&&(n=e.length);var t=e.indexOf(sb);-1==t&&(t=e.length);var i=e.lastIndexOf(tb,Math.min(t,n));return i>=O?e.substring(O,i+P):W}var n,t=null!=(n=__gwt_getMetaProperty(wb))?n:W;return t==W&&(t=function(){for(var n=o.getElementsByTagName(_),t=O;tO?e[e.length-P].href:W}()),t==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(t=e(o.location.href)),t=function(n){if(n.match(/^\w+:\/\//));else{var t=o.createElement(ub);t.src=n+vb,n=e(t.src)}return n}(t),t}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function s(e){var n=o[e](),t=i[e];if(n in t)return n;var s=[];for(var a in t)s[t[a]]=a;throw r&&r(e,s,n),null}if(__gwt_isKnownPropertyValue=function(e,n){return n in i[e]},webModule.__getPropMap=function(){var e={};for(var n in i)i.hasOwnProperty(n)&&(e[n]=s(n));return e},webModule.__computePropValue=s,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var a=(e=Cb).indexOf(Db);-1!=a&&(t=parseInt(e.substring(a+P),$),e=e.substring(O,a))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var n=s[L].bindings;s[L].bindings=function(){for(var t=n?n():{},i=e[webModule.__softPermutationId],r=O;r0){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",t=[],i=0;i0&&(K(),H(1))}),[t]),(0,c.useEffect)((function(){if(0!==z){if(2===z)clearInterval(O);else{var e=0,n=setInterval((function(){B.includes(e)&&J(),e++}),1e3);D(n)}return function(){return clearInterval(O)}}}),[z]),(0,c.useImperativeHandle)(n,(function(){return{handlePhoto:J,handleTakePhoto:X}}));var V=function(){H(2)},K=function(){var e=t/i,n=[];function r(e,n){return parseInt(Math.floor(Math.random()*(n-e+1))+e)}new Array(i).fill(0).map((function(t,i){a?n.push(r(e*i,e*(i+1))):0==i?n.push(0):n.push(r(e*i,e*(i+1)))})),B=n,T([].concat(n)),console.log(n)},Y=function(){void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(e){var n=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return n?new Promise((function(t,i){n.call(navigator,e,t,i)})):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:640,height:480}}).then((function(e){Q.current=e,o&&o(2),Z(2),"srcObject"in j.current?j.current.srcObject=e:j.current.src=window.URL.createObjectURL(e),j.current.onloadedmetadata=function(e){j.current.play(),b&&b()},j.current.addEventListener("ended",(function(){console.log("播放结束"),V(),y&&d.ZP.error({content:"您已经关闭了摄像头,请在10秒钟内恢复摄像头,否则将推出考试",duration:10,key:9998})}),!1)})).catch((function(e){Z(1),o&&o(1),"Permission denied"===e.message||"NotAllowedError"===e.name?d.ZP.error("您已拒绝了获取摄像头"):d.ZP.error("摄像头获取失败,或您已拒绝了获取摄像头"),console.log("errname: "+e.name),console.log("err: "+e.message)}))},J=function(){try{k.current.width=j.current.videoWidth,k.current.height=j.current.videoHeight,k.current.getContext("2d").drawImage(j.current,0,0,k.current.width,k.current.height),q(k.current.toDataURL("image/png")),U(k.current.toDataURL("image/png")),ee(k.current.toDataURL("image/png"))}catch(e){}},X=function(){try{return k.current.width=j.current.videoWidth,k.current.height=j.current.videoHeight,k.current.getContext("2d").drawImage(j.current,0,0,k.current.width,k.current.height),k.current.toDataURL("image/png")}catch(e){}},Q=(0,c.useRef)(),$=function(){try{Q.current.getTracks().forEach((function(e){e.stop()})),j.current.srcObject=null}catch(e){}},ee=function(){var e=s()(r()().mark((function e(n){var t,i,o,s,a,l,c,u,d,h,g;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.ZP)("/api/buckets/get_upload_token.json",{method:"get"});case 2:(u=e.sent).data=JSON.parse((0,m.pe)(u.data)),d=(0,f.Z)(),h=new(v())({endpoint:null==u||null===(t=u.data)||void 0===t?void 0:t.end_point,region:null==u||null===(i=u.data)||void 0===i?void 0:i.region,accessKeyId:null==u||null===(o=u.data)||void 0===o?void 0:o.access_key_id,accessKeySecret:null==u||null===(s=u.data)||void 0===s?void 0:s.access_key_secret,bucket:null==u||null===(a=u.data)||void 0===a?void 0:a.bucket,stsToken:null==u||null===(l=u.data)||void 0===l?void 0:l.security_token}),g=w(n),h.multipartUpload("".concat(d,".png"),g,{timeout:1e4,partSize:10485760,callback:{url:null==u||null===(c=u.data)||void 0===c?void 0:c.callback_url,host:null==u?void 0:u.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&login="+S.login+"&container_id="+S.categoryId+"&container_type=Exercise"}}).then((function(e){console.log("result:",e)})).catch((function(e){console.log("err:",e)}));case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,_.jsx)(_.Fragment,{children:3!==P&&(0,_.jsxs)("aside",{className:g,id:"screenshot",children:[0===P&&(0,_.jsx)("span",{children:"正在开启摄像头..."}),1===P&&(0,_.jsx)("span",{children:"摄像头开启失败"}),2===P&&(0,_.jsxs)("div",{children:[(0,_.jsx)("video",{width:"288",ref:j,autoPlay:!0}),(0,_.jsx)("canvas",{style:{display:"none"},ref:k})]})]})})})),b=y},55357:function(e,n,t){"use strict";t.d(n,{y:function(){return r}});var i=t(59301),r=function(e){(0,i.useEffect)((function(){if(e){var n=function(e){"F12"===e.key&&(e.preventDefault(),console.log("F12被禁用"))},t=function(e){e.preventDefault()};return document.addEventListener("keydown",n),document.addEventListener("contextmenu",t),function(){document.removeEventListener("keydown",n),document.removeEventListener("contextmenu",t)}}}),[e])}},18719:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var i=t(7557),r=t.n(i),o=t(41498),s=t.n(o),a=t(79800),l=t.n(a),c=t(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",f=t(92310),m=t.n(f),h=t(71418),v=t(2859),g=t(51836),x=t(76279),_=t(37712),w=function(e){var n=e.data,t=e.className,i=e.fullWidth,o=e.style,a=void 0===o?{}:o,f=e.onClose,w=e.onOk,y=e.showFullTools,b=e.noAssociationId,j=(0,c.useRef)(null),k=(0,c.useRef)(null),S=(0,c.useState)(!1),C=l()(S,2),N=C[0],B=C[1],T=(0,c.useState)("正在加载中"),E=l()(T,2),A=E[0],P=E[1];(0,c.useEffect)((function(){null!=n&&n.visible?document.body.setAttribute("data-custom","y-hidden"):document.body.removeAttribute("data-custom"),null!=n&&n.src&&Z()}),[null==n?void 0:n.visible]);var Z=function(){var e=s()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B(!0),P("正在加载中"),e.next=4,(0,x.ZJ)(null==n?void 0:n.src);case 4:t=e.sent,j.current.src="",j.current.src=t,j.current.onload=function(){L()},B(!1),P("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=s()(r()().mark((function e(t){var i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B(!0),P("正在保存中"),e.next=4,(0,g.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:n.title,file:t.dataUrl}});case 4:if(null==(i=e.sent)||!i.id||b){e.next=12;break}return e.next=8,(0,g.ZP)("/api/attachments/".concat(n.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==i?void 0:i.id,settings:JSON.stringify(t.state)}});case 8:0===e.sent.status&&w(),e.next=13;break;case 12:null!=i&&i.id&&w(i);case 13:B(!1),P("");case 15:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),L=function(){k.current=new v.hP(j.current),k.current.addEventListener("render",I),k.current.addEventListener("beforeclose",f),y&&(k.current.availableMarkerTypes=k.current.ALL_MARKER_TYPES,k.current.uiStyleSettings.redoButtonVisible=!0,k.current.uiStyleSettings.notesButtonVisible=!0,k.current.uiStyleSettings.zoomButtonVisible=!0,k.current.uiStyleSettings.zoomOutButtonVisible=!0,k.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=k.current.uiStyleSettings,k.current.show(),null!=n&&n.snapshotData&&k.current.restoreState(n.snapshotData),setTimeout((function(){var e;(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var n=document.querySelector(e.name);n&&n.setAttribute("title",e.title)}))}),300)};return(0,_.jsx)(c.Fragment,{children:(null==n?void 0:n.visible)&&(0,_.jsxs)("div",{className:m()(u,t,i?p:""),style:a,children:[(0,_.jsx)(h.Z,{spinning:N,tip:A,style:{position:"absolute"}}),(0,_.jsx)("img",{className:d,ref:j})]})})}},99267:function(e,n,t){"use strict";var i=t(79800),r=t.n(i),o=t(59301),s=t(44270),a=(t(48136),t(23180)),l=t(43418),c=t(37712),u=(0,o.forwardRef)((function(e,n){var t=e.callback,i=e.width,u=e.onChange,d=e.disabled,p=e.readOnly,f=e.type,m=void 0===f?"":f,h=e.value,v=void 0===h?"":h,g=e.style,x=void 0===g?{}:g,_=(0,o.useRef)(),w=(0,o.useRef)(),y=(0,o.useState)(0),b=r()(y,2),j=b[0],k=b[1],S=(0,o.useState)(0),C=r()(S,2),N=C[0],B=C[1],T=(0,o.useState)(!1),E=r()(T,2),A=E[0],P=E[1],Z=function(){var e=document.createElement("div");e.innerHTML=_.current.getValue();var n=e.innerText;return t&&t(n),n};(0,o.useImperativeHandle)(n,(function(){return{getData:Z}}));var I=function(e,n,t,i){var r=document.body.clientHeight,o=document.body.clientWidth;return!(e<20&&t>e||e>o-20&&tn||n>r-20&&i0&&(null===(r=l.filter((function(e){return!e.answer_text})))||void 0===r?void 0:r.length)>0)){e.next=11;break}return f.ZP.info("填空项不能为空!"),e.abrupt("return");case 11:return c=a.code,l.length>0&&(null==l||l.map((function(e){c=e.multi_line?c.substring(0,c.indexOf("@▁▁@"))+e.answer_text+c.substring(c.indexOf("@▁▁@")+4):c.substring(0,c.indexOf("@▁@"))+e.answer_text+c.substring(c.indexOf("@▁@")+3)}))),e.next=15,(0,x.n4)(t,n||{code:v.Base64.encode(c),language:a.language,answers:null==l?void 0:l.map((function(e){return e.answer_text}))});case 15:return u=e.sent,e.abrupt("return",u);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e,n){return G.apply(this,arguments)}function G(){return(G=l()(s()().mark((function e(n,t){var i,r,o;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=j.userAnswer,r=v.Base64.decode(j.code),i.length>0&&(null==i||i.map((function(e){r=e.multi_line?r.substring(0,r.indexOf("@▁▁@"))+e.value+r.substring(r.indexOf("@▁▁@")+4):r.substring(0,r.indexOf("@▁@"))+e.value+r.substring(r.indexOf("@▁@")+3)}))),e.next=5,(0,x.n4)(t,n||{code:v.Base64.encode(r),language:j.language,answers:null==i?void 0:i.map((function(e){return e.value}))});case 5:return o=e.sent,e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function z(){return(new Date).getTime()}return(0,p.useEffect)((function(){(R||c)&&P(c||Z.id)}),[Z]),(0,p.useEffect)((function(){return function(){sessionStorage.removeItem("projectFill")}}),[]),(0,b.jsxs)("div",{children:[(0,b.jsx)(m.ZP,r()(r()({loading:N},n),{},{onClick:l()(s()().mark((function e(){var n,o,a,c,u,d,p,m,_,w,y,b,S,C;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("----",111),"提交代码"!==t){e.next=22;break}if(B(!0),!N){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,(0,g.ZP)("/api/problems/".concat(A,"/start.json"),{method:"get"});case 7:return n=e.sent,e.next=10,F(null,null==n?void 0:n.identifier);case 10:if(0!==(null==(o=e.sent)?void 0:o.status)){e.next=19;break}return a=function(){var e=l()(s()().mark((function e(){var t,i,r,o,l,u;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,x.rX)(null==n?void 0:n.identifier,"submit");case 2:if(i=e.sent,r=i.status,i.message,o=i.data,l=z(),u=l-c>1e4*(null==j||null===(t=j.userAnswer)||void 0===t?void 0:t.length),0===r||u||setTimeout(a,1e3),!u){e.next=13;break}return h.Z.error({centered:!0,okText:"知道啦",title:"调试代码超时",content:"请检查程序代码是否存在死循环"}),B(!1),e.abrupt("return");case 13:0===r&&(B(!1),M(o),2===o.status&&(B(!1),h.Z.error({centered:!0,okText:"知道啦",title:"调试代码超时"})));case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),c=z(),e.next=16,(0,x.bM)(null==n?void 0:n.identifier,{});case 16:a(),e.next=20;break;case 19:B(!1);case 20:return k&&k(!0),e.abrupt("return");case 22:return u=!0,e.next=25,i.validateFields().then((function(){u=!1}),(function(e){var n,t;e.errorFields[0].name.includes("standard_answers")?f.ZP.error("填空项答案不能为空"):f.ZP.error(e.errorFields[0].errors[0]),0===(null===(n=e.errorFields)||void 0===n?void 0:n.length)&&(u=!1),i.scrollToField(null==e||null===(t=e.errorFields)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.name,{behavior:"smooth",block:"center"}),u=!0}));case 25:if(!u){e.next=27;break}return e.abrupt("return");case 27:if(B(!0),!N){e.next=30;break}return e.abrupt("return");case 30:if(d="",p=i.getFieldsValue(),A){e.next=41;break}return e.next=35,(0,g.ZP)("/api/problems.json",{method:"post",body:r()(r()({},p),{},{hack:r()(r()({},null==p?void 0:p.hack),{},{sub_discipline_id:null==p||null===(m=p.hack)||void 0===m||null===(m=m.sub_discipline_id)||void 0===m?void 0:m[1],difficult:p.difficulty,item_banks_group_id:p.item_banks_group_id}),hack_codes:r()(r()({},p.hack_codes),{},{code:v.Base64.encode(p.hack_codes.code)}),hack_sets:[r()({},p.hack_sets)],is_blank:!0})});case 35:d=e.sent,A=null===(_=d)||void 0===_?void 0:_.identifier,sessionStorage.projectFill=A,P(A),e.next=44;break;case 41:return e.next=43,(0,g.ZP)("/api/problems/".concat(A,".json"),{method:"put",body:r()(r()({},p),{},{hack:r()(r()({},null==p?void 0:p.hack),{},{sub_discipline_id:null==p||null===(w=p.hack)||void 0===w||null===(w=w.sub_discipline_id)||void 0===w?void 0:w[1],difficult:p.difficulty,item_banks_group_id:p.item_banks_group_id}),hack_codes:r()(r()({},p.hack_codes),{},{code:v.Base64.encode(p.hack_codes.code)}),update_hack_sets:[r()({},p.hack_sets)],is_blank:!0})});case 43:d=e.sent;case 44:return e.next=46,(0,g.ZP)("/api/problems/".concat(A,"/start.json"),{method:"get"});case 46:return y=e.sent,e.next=49,O(null,null==y?void 0:y.identifier);case 49:if(0!==(null==(b=e.sent)?void 0:b.status)){e.next=58;break}return S=function(){var e=l()(s()().mark((function e(){var n,t,i,r,o,a;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,x.rX)(null==y?void 0:y.identifier,"submit");case 2:if(t=e.sent,i=t.status,t.message,r=t.data,o=z(),a=o-C>1e3*(p.hack.time_limit+3)*(null==p||null===(n=p.standard_answers)||void 0===n?void 0:n.length),0===i||a||setTimeout(S,1e3),!a){e.next=13;break}return h.Z.error({centered:!0,okText:"知道啦",title:"调试代码超时"}),B(!1),e.abrupt("return");case 13:0===i&&(B(!1),M(r),2===r.status&&(B(!1),h.Z.error({centered:!0,okText:"知道啦",title:"调试代码超时"})));case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),C=z(),e.next=55,(0,x.bM)(null==y?void 0:y.identifier,{});case 55:S(),e.next=59;break;case 58:B(!1);case 59:case"end":return e.stop()}}),e)}))),children:t})),(null==q?void 0:q.id)&&2!==q.status&&(0,b.jsx)(h.Z,{open:(null==q?void 0:q.id)&&2!==q.status,title:"运行结果",width:1100,footer:!1,onOk:function(){M({})},onCancel:function(){M({})},children:(0,b.jsxs)("div",{style:{maxHeight:600,overflow:"auto",marginBottom:15},children:[(0,b.jsxs)("div",{style:{marginBottom:20,display:"flex",justifyContent:"space-between",fontSize:14},children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{style:{color:"#666666"},children:"状态"}),(0,b.jsx)("span",{style:{marginLeft:12,color:0!==q.status&&"#E30000"},children:_.Im[q.status]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{style:{color:"#666666"},children:"提交时间"}),(0,b.jsx)("span",{style:{marginLeft:12},children:y()(q.created_at).format("YYYY-MM-DD HH:mm:ss")})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{style:{color:"#666666"},children:"语言"}),(0,b.jsx)("span",{style:{marginLeft:12},children:q.language})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{style:{color:"#666666"},children:"执行用时"}),(0,b.jsxs)("span",{style:{marginLeft:12},children:[q.execute_time,"ms"]})]})]}),(0,b.jsx)(_.Y4,r()({},q))]})})]})}},57849:function(e,n,t){"use strict";t.d(n,{Z:function(){return p}});t(59301);var i="result___gu5zt",r="title___xrnx2",o="left___IAxp9",s="leftNode___HL8fG",a="right___ZXYmw",l="rightNode___jYL5_",c=t(92310),u=t.n(c),d=t(37712),p=function(e){var n=e.className,t=e.style,c=void 0===t?{}:t,p=e.leftNode,f=e.leftTitle,m=void 0===f?"自测输入":f,h=e.rightNode,v=e.rightTitle,g=void 0===v?"运行结果":v;return(0,d.jsxs)("div",{className:u()(i,n),style:c,children:[(0,d.jsxs)("div",{className:o,children:[(0,d.jsxs)("div",{className:r,children:[(0,d.jsx)("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),(0,d.jsx)("span",{children:m})]}),(0,d.jsx)("div",{className:s,children:p})]}),(0,d.jsxs)("div",{className:a,children:[(0,d.jsxs)("div",{className:r,children:[(0,d.jsx)("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),(0,d.jsx)("span",{children:g})]}),(0,d.jsx)("div",{className:l,children:h})]})]})}},89657:function(e,n,t){"use strict";t.d(n,{cT:function(){return T},pe:function(){return B}});var i=t(37205),r=t.n(i),o=t(79800),s=t.n(o),a=t(39647),l=t.n(a),c=t(82242),u=t.n(c),d=t(7557),p=t.n(d),f=t(41498),m=t.n(f),h=t(59301),v=t(46651),g=t(8591),x=t(51836),_=t(28209),w=t.n(_),y=t(1012),b=t(76252),j=t(47257),k=t.n(j),S=t(37712),C=["user","cancelUpload"],N=v.Z.Dragger,B=function(e){var n=w().enc.Utf8.parse("bf3c199c2470cb477d907b1e0917c17b"),t=w().enc.Utf8.parse("5183666c72eec9e4"),i=w().AES.decrypt(e,n,{iv:t,mode:w().mode.CBC});return i.toString(w().enc.Utf8)},T=function(){var e=m()(p()().mark((function e(n,t,i){var r,o,s,a,l,c,d,f,m,h;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.file_name=n.name,e.next=3,(0,x.ZP)("/api/buckets/get_upload_token.json",{method:"get"});case 3:return d=e.sent,console.log("decrypt(res.data):",B(d.data)),d.data=JSON.parse(B(d.data)),(f=n.name.split(".")).pop(),m=t.realFileName?f.join(""):(0,y.Z)(),h=new(k())({endpoint:null==d||null===(r=d.data)||void 0===r?void 0:r.end_point,region:null==d||null===(o=d.data)||void 0===o?void 0:o.region,accessKeyId:null==d||null===(s=d.data)||void 0===s?void 0:s.access_key_id,accessKeySecret:null==d||null===(a=d.data)||void 0===a?void 0:a.access_key_secret,bucket:null==d||null===(l=d.data)||void 0===l?void 0:l.bucket,stsToken:null==d||null===(c=d.data)||void 0===c?void 0:c.security_token}),e.abrupt("return",new Promise((function(e,r){var o;h.multipartUpload("".concat(m),new Blob([n],{type:n.type}),u()(u()({timeout:2e5,partSize:102400},i),{},{callback:{url:null==d||null===(o=d.data)||void 0===o?void 0:o.callback_url,host:null==d?void 0:d.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,x.rz)(t)}})).then((function(t){var i;n.response=null===(i=t.data)||void 0===i?void 0:i.data,e(null==t?void 0:t.data)})).catch((function(e){r(e),console.log("err:",e)}))})));case 11:case"end":return e.stop()}}),e)})));return function(n,t,i){return e.apply(this,arguments)}}();n.ZP=(0,b.connect)((function(e){var n=e.loading,t=e.globalSetting,i=e.user;return{globalSetting:t,loading:n.models.competitions,user:i}}))((function(e){var n,t=e.user,i=e.cancelUpload,o=l()(e,C),a=(0,h.useState)([]),c=s()(a,2),d=c[0],f=c[1],v=(0,h.useState)(),_=s()(v,2),w=_[0],b=_[1],j={onRemove:function(e){f(r()(d.filter((function(n){return n.name!==e.name})))),o.onChange(d.filter((function(n){return n.name!==e.name})))},disabled:o.disabled,multiple:!0,fileList:null==d?void 0:d.map((function(e){return e.file})),customRequest:function(){},beforeUpload:(n=m()(p()().mark((function e(n){var t;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.maxSize||1073741824,!d.filter((function(e){return e.name===n.name})).length){e.next=4;break}return g.ZP.info("".concat(n.name,"已存在,请重新选择")),e.abrupt("return");case 4:if(!((null==n?void 0:n.size)>t)){e.next=7;break}return g.ZP.info("文件超过".concat(t/1024/1024/1024,"GB,不符合上传要求")),e.abrupt("return",!1);case 7:return d.push({name:n.name,file:n}),f(r()(d)),o.onChange(d),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},T=function(){var e=m()(p()().mark((function e(n,t){var i,s,a,l,c,u,m,h,v,_;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.file_name=n.name,m=n.name,e.next=4,(0,x.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if((h=e.sent).data=JSON.parse(B(h.data)),0===(null==h?void 0:h.status)){e.next=12;break}return d[d.findIndex((function(e){return e.name===m}))].status="error",d[d.findIndex((function(e){return e.name===m}))].file.status="error",o.onChange(d),g.ZP.warning("上传失败,请重新尝试"),e.abrupt("return");case 12:return w=new(k())({endpoint:null==h||null===(i=h.data)||void 0===i?void 0:i.end_point,region:null==h||null===(s=h.data)||void 0===s?void 0:s.region,accessKeyId:null==h||null===(a=h.data)||void 0===a?void 0:a.access_key_id,accessKeySecret:null==h||null===(l=h.data)||void 0===l?void 0:l.access_key_secret,bucket:null==h||null===(c=h.data)||void 0===c?void 0:c.bucket,stsToken:null==h||null===(u=h.data)||void 0===u?void 0:u.security_token}),console.log(n,"file"),b(w),(v=n.name.split(".")).pop(),_=t.realFileName?v.join("."):(0,y.Z)(),e.abrupt("return",new Promise((function(e,i){try{var s;w.multipartUpload("".concat(o.identifier,"/").concat(_).concat(m.indexOf(".")>-1?"."+m.split(".").pop():""),new Blob([n.file],{type:n.file.type}),{timeout:36e5,partSize:1002400,progress:function(e,n,t){try{console.log("进度",e,n,t);var i=d.findIndex((function(e){return e.name===m}));d[i].file.percent=100*e,d[i].tempCheckpoint=n,f(r()(d))}catch(e){}},checkpoint:d[d.findIndex((function(e){return e.name===m}))].tempCheckpoint,callback:{customValue:{id:m+""},url:null==h||null===(s=h.data)||void 0===s?void 0:s.callback_url,host:null==h?void 0:h.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,x.rz)(t)}}).then((function(t){var i,r=d.findIndex((function(e){return e.name===m})),s="done";if(0===(null===(i=t.data)||void 0===i?void 0:i.status)){var a;n.response=null===(a=t.data)||void 0===a?void 0:a.data;var l=d.findIndex((function(e){return e.name===m}));d[l].status="done",d[l].file.status="done"}else{var c;g.ZP.warning(null===(c=t.data)||void 0===c?void 0:c.message),s="error"}d[r].status=s,d[r].file.status=s,o.onChange(d),e(null==t?void 0:t.data)})).catch((function(e){d[d.findIndex((function(e){return e.name===m}))].status="error",d[d.findIndex((function(e){return e.name===m}))].file.status="error",g.ZP.warning("上传失败,请重新尝试"),f(r()(d)),o.onChange(d),i(e),console.log("err:",e)}))}catch(e){}})));case 19:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}();return(0,h.useEffect)((function(){d.every((function(e){return"done"===e||"error"===e}))&&o.onComplete(d)}),[d]),(0,h.useEffect)((function(){var e;i&&(null===(e=w)||void 0===e||e.cancel())}),[i]),(0,h.useEffect)((function(){o.uploading&&d.map(function(){var e=m()(p()().mark((function e(n){var r;return p()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.status&&"error"!==n.status||i){e.next=6;break}return n.status="uploading",n.file.status="uploading",e.next=5,T(n,{login:null==t||null===(r=t.userInfo)||void 0===r?void 0:r.login,container_type:o.container_type,container_id:o.container_id,description:o.description,realFileName:o.realFileName});case 5:e.sent;case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())}),[o.uploading]),(0,S.jsx)(N,u()(u()({},j),{},{height:o.height,className:o.className,children:(0,S.jsx)("p",{className:"ant-upload-hint",children:o.text||"拖拽文件或者点击上传"})}))}))},36267:function(e,n,t){"use strict";t.d(n,{h:function(){return g}});var i=t(82242),r=t.n(i),o=t(79800),s=t.n(o),a=t(59301),l=t(57809),c=t(78241),u=t(3113),d=t(89780),p=t.n(d),f=(t(2185),t(94087),t(37712)),m=l.default.Option,h={labelCol:{span:4},wrapperCol:{span:20}},v={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function g(e){var n=e.value,t=e.onChange,i=e.mode,o=e.options,l=void 0===o?{}:o,c=(0,a.useRef)(),u=(0,a.useState)(),d=s()(u,2),m=d[0],h=d[1];return(0,a.useEffect)((function(){if(m){var e=function(e){var n=e.getValue();t&&t(n)};return m.on("change",e),function(){m.off("change",e)}}}),[m,t]),(0,a.useEffect)((function(){m&&m.setOption("mode",i)}),[m,i]),(0,a.useEffect)((function(){m&&(n===m.getValue()&&""!==n||setTimeout((function(){m.setValue(n||"")}),300))}),[m,n]),(0,a.useEffect)((function(){if(c.current&&!m){var e=p().fromTextArea(c.current,r()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));h(e)}}),[c.current,m]),(0,f.jsx)("div",{className:"my-codemirror-container",children:(0,f.jsx)("textarea",{ref:c})})}n.Z=function(e){var n=e.callback,t=e.onCancel,i=(0,a.useState)("python"),o=s()(i,2),d=o[0],p=o[1];return(0,f.jsxs)(c.Z,r()(r()({},h),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){n(e)},style:{width:500},children:[(0,f.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,f.jsx)(l.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(v[e][1])},children:Object.keys(v).map((function(e){return(0,f.jsx)(m,{value:e,children:v[e][0]},e)}))})}),(0,f.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,f.jsx)(g,{mode:d})}),(0,f.jsxs)("div",{className:"flex-container flex-end",children:[(0,f.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,f.jsx)(u.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))}},97206:function(e,n,t){"use strict";t.d(n,{Z:function(){return Ne}});var i=t(91232),r=t.n(i),o=t(79800),s=t.n(o),a=t(85573),l=t.n(a),c=t(59301),u=t(89780),d=t.n(u),p=t(76374),f=(t(2185),t(6313),t(25717),t(99498),t(25419),t(67549),t(3162)),m=t(37712),h=function(e){var n=e.value,t=void 0===n?"":n,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[t]));return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},v=t(82242),g=t.n(v),x=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function _(e){var n=e.onActionCallback,t=e.title,i=e.icon,r=e.actionName,o=e.className,s=void 0===o?"":o,a=e.children;return(0,m.jsxs)("a",{title:t,className:s,onClick:function(){n(r)},children:[(0,m.jsx)("i",{className:"".concat(i)}),a]})}var w=function(e){var n=e.watch,t=e.showNullButton,i=e.showNullProgramButton,r=e.onActionCallback,o=e.fullScreen,s=e.insertTemp,a=e.hidetoolBar,l=e.extraUse,c=[].concat(x,[{title:"".concat(n?"关闭实时预览":"开启实时预览"),icon:"".concat(n?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,m.jsxs)("ul",{className:"markdown-toolbar-container",children:[!a&&c.map((function(e,n){return(0,m.jsx)("li",{children:e.actionName?(0,m.jsx)(_,g()(g()({},e),{},{onActionCallback:r})):(0,m.jsx)("span",{className:"v-line"})},n)})),t?(0,m.jsx)("li",{children:(0,m.jsx)(_,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("li",{children:(0,m.jsx)(_,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,m.jsx)("li",{children:(0,m.jsx)(_,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,s&&(0,m.jsx)("li",{children:(0,m.jsx)(_,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(s),onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,m.jsx)("li",{children:l}),(0,m.jsx)("li",{className:"btn-full-screen",children:(0,m.jsx)(_,{icon:"".concat(o?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:o?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:r})})]})},y=t(10668),b=t(78241),j=t(98135),k=t(3113),S={labelCol:{span:4},wrapperCol:{span:20}},C=function(e){var n=e.callback,t=e.onCancel;return(0,m.jsxs)(b.Z,g()(g()({},S),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},style:{width:500},children:[(0,m.jsx)(b.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,m.jsx)(j.Z,{})}),(0,m.jsx)(b.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,m.jsx)(j.Z,{})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(k.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))},N=t(36267),B=t(8591),T=t(58865),E=b.Z.useForm,A={width:280,marginRight:10},P={labelCol:{span:5},wrapperCol:{span:19}},Z=function(e){var n=e.callback,t=e.onCancel,i=E(),r=s()(i,1)[0],o=(0,c.useRef)();function a(e,n){-1!==e.status?r.setFieldsValue({src:"/api/attachments/".concat(e.id),type:n.type}):B.ZP.error(e.message)}return(0,m.jsxs)(b.Z,g()(g()({form:r},P),{},{className:"upload-image-panel",onFinish:function(e){n(e,o.current)},style:{width:470,overflow:"hidden"},children:[(0,m.jsx)(b.Z.Item,{label:"图片地址",required:!0,children:(0,m.jsxs)("div",{className:"flex-container",children:[(0,m.jsx)(b.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,m.jsx)(j.Z,{style:A})}),(0,m.jsx)(I,{onFileChange:function(e){var n=e.target.files[0];o.current=n,L(n,a)}})]})}),(0,m.jsx)(b.Z.Item,{label:"图片描述",name:"alt",children:(0,m.jsx)(j.Z,{style:{width:264}})}),(0,m.jsxs)(b.Z.Item,{style:{textAlign:"right"},children:[(0,m.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(k.ZP,{type:"default",onClick:t,children:"取消"})]})]}))};function I(e){var n=e.onFileChange;return(0,m.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,m.jsx)("input",{type:"file",onChange:n})]})}function L(e,n){if(!e)throw new String("没有文件");var t=new FormData;t.append("editormd-image-file",e),t.append("file_param_name","editormd-image-file"),t.append("byxhr","true");var i=new window.XMLHttpRequest;i.withCredentials=!0,i.addEventListener("load",(function(t){n(JSON.parse(t.target.responseText),e)}),!1),i.addEventListener("error",(function(e){console.error(e)}),!1),i.open("POST","".concat(T.KI,"/api/attachments.json")),i.send(t)}var q=t(95237),M=t(18719),R=function(e){var n=e.callback,t=e.onCancel,i=document.createElement("canvas"),r=i.getContext("2d");i.width=1e3,i.height=800,r.fillStyle="#ffffff",r.fillRect(0,0,i.width,i.height);var o=i.toDataURL("image/png");return(0,m.jsx)(q.Z,{style:{height:"100vh"},children:(0,m.jsx)(M.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:o,visible:!0,title:String(Date.now())},onOk:function(e){n({src:e.url})},onClose:t})})},O=t(7557),D=t.n(O),F=t(41498),G=t.n(F),z=t(37205),H=t.n(z),W=t(12378);function U(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(U,go.CommandHandler),U.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},U.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var n=1/0;e.selection.each((function(e){e instanceof go.Link||(n=Math.min(e.position.x,n))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n,e.position.y))})),e.commitTransaction("aligning left")},U.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var n=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var t=e.actualBounds.x+e.actualBounds.width;n=Math.max(t,n)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},U.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var n=1/0;e.selection.each((function(e){e instanceof go.Link||(n=Math.min(e.position.y,n))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,n))})),e.commitTransaction("alignTop")},U.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var n=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var t=e.actualBounds.y+e.actualBounds.height;n=Math.max(t,n)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},U.prototype.alignCenterX=function(){var e=this.diagram,n=e.selection.first();if(n){e.startTransaction("aligning Center X");var t=n.actualBounds.x+n.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},U.prototype.alignCenterY=function(){var e=this.diagram,n=e.selection.first();if(n){e.startTransaction("aligning Center Y");var t=n.actualBounds.y+n.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},U.prototype.alignColumn=function(e){var n=this.diagram;n.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var t=new Array;n.selection.each((function(e){e instanceof go.Link||t.push(e)}));for(var i=0;i0){for(var i=s.elt(a-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(o)}else if("Down"===t.key){var r;if(n.isTreeExpanded&&!n.isTreeLeaf)null!==(r=this._sortTreeChildrenByY(n).first())&&e.select(r);else for(;null!==n;){var o,s,a;if(null===(o=n.findTreeParentNode()))break;if((a=(s=this._sortTreeChildrenByY(o)).indexOf(n))i.y?1:t.xi.x?1:0})),n},U.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},U.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(U.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(U.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var V=U,K=(t(91017),t(85160)),Y=t(43418),J=t(43604),X=t(51836),Q="myPaletteDiv___Xjz2I",$="maxH60___Pd4Re";window.go=W;var ee=function(e){var n=e.onCancel,t=e.callback,i=(0,c.useRef)(),r=(0,c.useRef)(),o=(0,c.useRef)(),a=(0,c.useRef)(!1),l=(0,c.useRef)(!1),u=(0,c.useState)(0),d=s()(u,2),p=d[0],f=d[1],h=function(){var e=G()(D()().mark((function e(){var n,r;return D()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.current.makeImage(),e.next=3,(0,X.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:n.src}});case 3:r=e.sent,t({src:r.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){f(p+1)}),[]),(0,m.jsx)("div",{ref:l,className:a.current?"".concat($," body-overflow-initial"):"body-overflow-initial",children:(0,m.jsx)(Y.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:l.current,rootClassName:"zIndex-9999",title:(0,m.jsxs)(q.Z,{children:[(0,m.jsx)(J.Z,{flex:1,children:"插入流程图"}),(0,m.jsx)(J.Z,{onClick:function(){a.current=!a.current,f(p+1)},children:(0,m.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:n,children:(0,m.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,m.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,m.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,m.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,m.jsx)("div",{style:{height:"calc(100% - 50px)"},className:Q,ref:o})]}),(0,m.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,m.jsx)(K.FI,{initDiagram:function(){var e=W.GraphObject.make,n="#ff3333",t="#3358ff",s="#25ad23",a="#d533ff",l="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",f="#d5ebff",m="#f2dfe0",h="#a5d2fa",v="#cccccc",g="#b3e6b3",x="#fcbbbd";function _(n,t){var i=function(e,t){e.handled=!0,e.diagram.model.commit((function(i){var r=t.part.adornedPart,o=(new W.Point).setRectSpot(r.actualBounds,n);o.subtract(r.location),o.scale(2,2),o.x+=130*Math.sign(o.x),o.y+=130*Math.sign(o.y),o.add(r.location),o.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var s=i.copyNodeData(r.data);i.setGroupKeyForNodeData(s,i.getGroupKeyForNodeData(r.data)),i.addNodeData(s);var a={from:r.key,to:i.getKeyForNodeData(s)};i.addLinkData(a);var l=e.diagram.findNodeForData(s);l.location=o,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(W.Shape,{figure:t,alignment:n,alignmentFocus:n.opposite(),width:n.equals(W.Spot.Top)||n.equals(W.Spot.Bottom)?25:18,height:n.equals(W.Spot.Top)||n.equals(W.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="orange"},isActionable:!0,click:i,contextClick:i})}function w(n){return e(W.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="orange"},click:function(e,n){e.diagram.commandHandler.showContextMenu(n.part.adornedPart)}},n||{})}function y(e,n){return function(t,i){t.handled=!0,t.diagram.model.commit((function(t){t.set(i.part.adornedPart.data,e,n)}))}}function b(n,t){return t||(t="color"),e(W.Shape,{width:16,height:16,stroke:"lightgray",fill:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.stroke="dodgerblue"},mouseLeave:function(e,n){return n.stroke="lightgray"},click:y(t,n),contextClick:y(t,n)})}function j(){return[e("ContextMenuButton",e(W.Panel,"Horizontal",b(u,"fill"),b(p,"fill"),b(f,"fill"),b(m,"fill"))),e("ContextMenuButton",e(W.Panel,"Horizontal",b(v,"fill"),b(g,"fill"),b(h,"fill"),b(x,"fill")))]}function k(){return[e("ContextMenuButton",e(W.Panel,"Horizontal",b(d),b(s),b(t),b(n))),e("ContextMenuButton",e(W.Panel,"Horizontal",b(u),b(a),b(l),b(c)))]}function S(n,t){return t||(t="thickness"),e(W.Shape,"LineH",{width:16,height:16,strokeWidth:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:y(t,n),contextClick:y(t,n)})}function C(n,t){return t||(t="dash"),e(W.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:y(t,n),contextClick:y(t,n)})}function N(){return[e("ContextMenuButton",e(W.Panel,"Horizontal",S(1),S(2),S(3),S(4))),e("ContextMenuButton",e(W.Panel,"Horizontal",C(null),C([2,4]),C([4,4])))]}function B(n,t){return t||(t="figure"),e(W.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="lightgray"},click:y(t,n),contextClick:y(t,n)})}function T(n){return e(W.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(n+4).toString()+" H3"})}function E(n){var t="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===n?t="M0 0 M16 16 M0 8 L16 8":2===n&&(t="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(W.Shape,{geometryString:t,margin:2,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:y("dir",n),contextClick:y("dir",n)})}function A(n){var t=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",W.Spot.stringify(W.Spot.AllSides)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(W.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:t,contextClick:t})}function P(n,t){var i=0,r=W.Spot.RightSide;n.equals(W.Spot.Top)?(i=270,r=W.Spot.TopSide):n.equals(W.Spot.Left)?(i=180,r=W.Spot.LeftSide):n.equals(W.Spot.Bottom)&&(i=90,r=W.Spot.BottomSide),t||(i-=180);var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",W.Spot.stringify(r)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(W.Shape,{alignment:n,alignmentFocus:n.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:o,contextClick:o})}return i.current=new W.Diagram(r.current,{padding:20,grid:e(W.Panel,"Grid",e(W.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(W.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(V),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var n=e.subject;n.location=n.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var n=e.subject;e.diagram.toolManager.linkingTool.isForwards?n.toNode.invalidateConnectedLinks():n.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(W.Node,"Auto",{locationSpot:W.Spot.Center,locationObjectName:"SHAPE",desiredSize:new W.Size(120,60),minSize:new W.Size(40,40),resizable:!0,resizeCellSize:new W.Size(10,10),rotatable:!0},new W.Binding("location","loc",W.Point.parse).makeTwoWay(W.Point.stringify),new W.Binding("desiredSize","size",W.Size.parse).makeTwoWay(W.Size.stringify),e(W.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:W.Spot.AllSides,toSpot:W.Spot.AllSides},new W.Binding("figure"),new W.Binding("fill"),new W.Binding("stroke","borderColor"),new W.Binding("strokeWidth","thickness"),new W.Binding("strokeDashArray","dash")),e(W.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(W.TextBlock,{margin:1,textAlign:"center",overflow:W.TextBlock.OverflowEllipsis,editable:!0},new W.Binding("text").makeTwoWay(),new W.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(W.Panel,"Vertical",{maxSize:new W.Size(200,NaN)},e(W.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new W.Binding("text")),e(W.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new W.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(W.Adornment,"Spot",e(W.Placeholder,{padding:10}),_(W.Spot.Top,"TriangleUp"),_(W.Spot.Left,"TriangleLeft"),_(W.Spot.Right,"TriangleRight"),_(W.Spot.Bottom,"TriangleDown"),w({alignment:new W.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(W.Panel,"Horizontal",B("Rectangle"),B("RoundedRectangle"),B("Ellipse"),B("Diamond"))),e("ContextMenuButton",e(W.Panel,"Horizontal",B("Parallelogram2"),B("ManualOperation"),B("Procedure"),B("Cylinder1"))),e("ContextMenuButton",e(W.Panel,"Horizontal",B("Terminator"),B("CreateRequest"),B("Document"),B("TriangleDown"))),j(),k(),N()),i.current.groupTemplate=e(W.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:W.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,n){n.addMembers(n.diagram.selection,!0)||n.diagram.currentTool.doCancel()},avoidable:!1},new W.Binding("location","loc",W.Point.parse).makeTwoWay(W.Point.stringify),e(W.Panel,"Auto",{name:"BODY"},e(W.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:W.Spot.AllSides,toSpot:W.Spot.AllSides},new W.Binding("fill"),new W.Binding("stroke","color"),new W.Binding("strokeWidth","thickness"),new W.Binding("strokeDashArray","dash")),e(W.Placeholder,{background:"transparent",margin:20})),e(W.TextBlock,{alignment:W.Spot.Top,alignmentFocus:W.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new W.Binding("text"),new W.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(W.Adornment,"Spot",e(W.Panel,"Auto",e(W.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(W.Placeholder,{margin:1.5})),w({alignment:W.Spot.TopRight,alignmentFocus:W.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",j(),k(),N()),i.current.linkTemplate=e(W.Link,{layerName:"Foreground",routing:W.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new W.Binding("fromSpot","fromSpot",W.Spot.parse),new W.Binding("toSpot","toSpot",W.Spot.parse),new W.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new W.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new W.Binding("points").makeTwoWay(),e(W.Shape,{strokeWidth:2},new W.Binding("stroke","color"),new W.Binding("strokeWidth","thickness"),new W.Binding("strokeDashArray","dash")),e(W.Shape,{segmentIndex:0,segmentOffset:new W.Point(15,0),segmentOrientation:W.Link.OrientAlong,alignmentFocus:W.Spot.Right,figure:"circle",width:10,strokeWidth:0},new W.Binding("fill","color"),new W.Binding("visible","dir",(function(e){return 1===e}))),e(W.Shape,{segmentIndex:-1,segmentOffset:new W.Point(-10,6),segmentOrientation:W.Link.OrientPlus90,alignmentFocus:W.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new W.Binding("fill","color"),new W.Binding("visible","dir",(function(e){return e>=1})),new W.Binding("width","thickness",(function(e){return 7+3*e})),new W.Binding("height","thickness",(function(e){return 7+3*e})),new W.Binding("segmentOffset","thickness",(function(e){return new W.Point(-15,4+1.5*e)}))),e(W.Shape,{segmentIndex:0,segmentOffset:new W.Point(15,-6),segmentOrientation:W.Link.OrientMinus90,alignmentFocus:W.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new W.Binding("fill","color"),new W.Binding("visible","dir",(function(e){return 2===e})),new W.Binding("width","thickness",(function(e){return 7+3*e})),new W.Binding("height","thickness",(function(e){return 7+3*e})),new W.Binding("segmentOffset","thickness",(function(e){return new W.Point(-15,4+1.5*e)}))),e(W.TextBlock,{alignmentFocus:new W.Spot(0,1,-4,0),editable:!0},new W.Binding("text").makeTwoWay(),new W.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(W.Adornment,e(W.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:T(2)},new W.Binding("pathPattern","thickness",T)),w({alignmentFocus:new W.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",k(),N(),e("ContextMenuButton",e(W.Panel,"Horizontal",E(0),E(1),E(2))),e("ContextMenuButton",e(W.Panel,"Horizontal",e(W.Panel,"Spot",A(!1),P(W.Spot.Top,!1),P(W.Spot.Left,!1),P(W.Spot.Right,!1),P(W.Spot.Bottom,!1)),e(W.Panel,"Spot",{margin:new W.Margin(0,0,0,2)},A(!0),P(W.Spot.Top,!0),P(W.Spot.Left,!0),P(W.Spot.Right,!0),P(W.Spot.Bottom,!0))))),new W.Palette(o.current,{maxSelectionCount:1,linkTemplate:e(W.Link,{locationSpot:W.Spot.Center,selectionAdornmentTemplate:e(W.Adornment,"Link",{locationSpot:W.Spot.Center},e(W.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(W.Shape,{toArrow:"Standard",stroke:null}))},{routing:W.Link.AvoidsNodes,curve:W.Link.JumpOver,corner:5,toShortLength:4},new W.Binding("points"),e(W.Shape,{isPanelMain:!0,strokeWidth:2}),e(W.Shape,{toArrow:"Standard",stroke:null})),model:new W.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(H()(W.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(W.Node,"Auto",{locationSpot:W.Spot.Center},new W.Binding("location","location",W.Point.parse).makeTwoWay(W.Point.stringify),e(W.Shape,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new W.Binding("stroke").makeTwoWay(),new W.Binding("fill").makeTwoWay(),new W.Binding("figure")),e(W.TextBlock,{margin:new W.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new W.Size(16,16),maxSize:new W.Size(10,NaN),textAlign:"center",editable:!0},new W.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(W.Panel,"Grid",e(W.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(W.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),i.current.grid.visible=!0,i.current.grid.gridCellStroke="darkgray",i.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=i.current,i.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,m.jsx)("div",{ref:r})]})]}),(0,m.jsx)("div",{className:"tr",children:(0,m.jsx)(k.ZP,{size:"large",onClick:h,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},ne=t(5112),te=t(26415),ie=ne.ZP.Group,re={margin:"0 8px"},oe=function(e){var n=e.callback,t=e.onCancel;return(0,m.jsxs)(b.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){n(e)},children:[(0,m.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,m.jsx)("span",{style:re,children:"单元格数:"}),(0,m.jsx)("span",{style:re,children:"行数"}),(0,m.jsx)(b.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,m.jsx)(te.Z,{})}),(0,m.jsx)("span",{style:re,children:"列数"}),(0,m.jsx)(b.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,m.jsx)(te.Z,{})})]}),(0,m.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,m.jsx)("span",{style:re,children:"对齐方式:"}),(0,m.jsx)(b.Z.Item,{name:"align",children:(0,m.jsxs)(ie,{children:[(0,m.jsx)(ne.ZP,{value:"default",children:(0,m.jsx)("i",{className:"fa fa-align-justify"})}),(0,m.jsx)(ne.ZP,{value:"left",children:(0,m.jsx)("i",{className:"fa fa-align-left"})}),(0,m.jsx)(ne.ZP,{value:"center",children:(0,m.jsx)("i",{className:"fa fa-align-center"})}),(0,m.jsx)(ne.ZP,{value:"right",children:(0,m.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(k.ZP,{type:"ghost",onClick:t,children:"取消"})]})]})},se=t(78673),ae=t(84462),le=t.n(ae),ce=(0,c.forwardRef)((function(e,n){var t=e.use3d,i=e.width,r=e.height,o=e.callback,a=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),u=(0,c.useState)(!1),d=s()(u,2),p=d[0],f=d[1],h=(0,c.useRef)({id:a,appName:"graphing",width:i||1e3,height:r||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){l.current=new(le())(h.current,!0),window.onload=function(){l.current.inject("applet_container")}}),[]);var v=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return o&&o(e),e};return(0,c.useEffect)((function(){h.current.appName=p?"3D":"graphing",l.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){f(t)}),[t]),(0,c.useImperativeHandle)(n,(function(){return{getImgData:v}})),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:a}),(0,m.jsxs)(q.Z,{align:"middle",children:[(0,m.jsx)(J.Z,{flex:1,children:(0,m.jsx)(se.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return f(e)}})}),(0,m.jsx)(J.Z,{children:(0,m.jsx)(k.ZP,{size:"large",onClick:v,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ue=t(23180),de=t(68339),pe="link",fe="upload-image",me="add-flowchart",he="draw-image",ve="code-block",ge="add-table",xe="------------",_e={default:xe,left:":".concat(xe),center:":".concat(xe,":"),right:"".concat(xe,":")},we=t(88080);var ye="@▁▁@",be=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function je(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ke=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Se=l()(l()({},ke+"-B","bold"),ke+"-I","italic"),Ce=l()(l()(l()(l()(l()(l()(l()(l()({},pe,"添加链接"),ve,"添加代码块"),fe,"添加图片"),he,"添加画图"),me,"插入流程图"),ge,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Ne=function(e){var n=e.defaultValue,t=void 0===n?"":n,i=e.onChange,o=e.width,a=void 0===o?"100%":o,u=e.height,v=void 0===u?400:u,g=e.miniToolbar,x=void 0!==g&&g,_=e.isFocus,b=void 0!==_&&_,j=e.watch,k=e.insertTemp,S=e.mode,T=void 0===S?"markdown":S,E=e.id,A=void 0===E?"markdown-editor-id":E,P=e.showResizeBar,I=void 0!==P&&P,q=e.noStorage,M=void 0!==q&&q,O=e.showNullButton,D=void 0!==O&&O,F=e.showNullProgramButton,G=void 0!==F&&F,z=e.hidetoolBar,H=void 0!==z&&z,W=e.fullScreen,U=void 0!==W&&W,V=e.onBlur,K=e.onCMBeforeChange,J=e.onFullScreen,X=e.className,Q=void 0===X?"":X,$=e.disablePaste,ne=void 0!==$&&$,te=e.disabled,ie=void 0!==te&&te,re=e.disabledFill,se=void 0!==re&&re,ae=e.placeholder,le=void 0===ae?"":ae,xe=e.values,ke=void 0===xe?"":xe,Ne=e.extraUse,Be=(0,c.useState)(null),Te=s()(Be,2),Ee=Te[0],Ae=Te[1],Pe=(0,c.useState)(t),Ze=s()(Pe,2),Ie=Ze[0],Le=Ze[1],qe=(0,c.useState)(j),Me=s()(qe,2),Re=Me[0],Oe=Me[1],De=(0,c.useState)(U),Fe=s()(De,2),Ge=Fe[0],ze=Fe[1],He=(0,c.useState)(""),We=s()(He,2),Ue=We[0],Ve=We[1],Ke=(0,c.useState)(0),Ye=s()(Ke,2),Je=Ye[0],Xe=Ye[1],Qe=(0,c.useState)(v),$e=s()(Qe,2),en=$e[0],nn=$e[1],tn=(0,c.useState)(!1),rn=s()(tn,2),on=(rn[0],rn[1]),sn=(0,c.useState)(0),an=s()(sn,2),ln=an[0],cn=an[1],un=(0,c.useState)(0),dn=s()(un,2),pn=dn[0],fn=dn[1],mn=(0,c.useRef)(),hn=(0,c.useRef)(),vn=(0,c.useRef)(),gn=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Le(ke),null==Ee||Ee.setValue(ke),window.scrollTo(0,e)}),[ke]),(0,c.useEffect)((function(){null==J||J(Ge)}),[Ge]),(0,c.useEffect)((function(){if(mn.current){var e=function(e,t){if(!ne){var i=t.clipboardData;if(i){var r=i.types.toString(),o=i.items;if("Files"===r||i.types.indexOf("Files")>-1){if(t.preventDefault(),"stex"==T)return;try{var s,a=o[1];"file"===(null===(s=o[0])||void 0===s?void 0:s.kind)&&(a=o[0]);var l=a.getAsFile(),c=l.name.split(".").pop();L(l,(function(e){var t,i,r;e.id?(null==l||null===(t=l.type)||void 0===t?void 0:t.indexOf("image"))>-1?n.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("video"))>-1?n.replaceSelection('')):(null==l||null===(r=l.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?n.replaceSelection('').concat(l.name,"")):be.includes(c)?n.replaceSelection('').concat(l.name,"")):n.replaceSelection("[".concat(l.name,"](").concat(de.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(t){B.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}t.preventDefault()},n=d().fromTextArea(mn.current,{mode:T,lineNumbers:!x,lineWrapping:!0,value:t,autoCloseTags:!0,autoCloseBrackets:!0});return n.on("keyup",(function(e,t){8===t.keyCode&&(""==e.getValue()?n.setOption("placeholder",le):n.setOption("placeholder",null))})),n.on("keydown",(function(e,n){if(8===n.keyCode){var t=function(e,n){var t=e.getDoc(),i=t.getCursor(),r=t.getLine(i.line),o=r.charAt(i.ch-1),s=r.lastIndexOf("@▁@",i.ch),a=r.lastIndexOf("@▁▁@",i.ch),l=s>a?s:a,c=s>a?3:4;if(-1===ye.indexOf(o))return null;if(console.log("change1:",n,e,r,i,l,s,a,o),l>=0&&i.ch-l<5){var u=l+c;return t.replaceRange("",{line:i.line,ch:l},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);t&&n.preventDefault()}})),b&&n.focus(),n.on("paste",e),ie&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Ae(n),function(){n.off("paste",e)}}}),[]);var xn=(0,c.useCallback)((function(){hn.current}),[en,hn,Ge]);(0,c.useEffect)((function(){if(Ee){var e=function(){var e=new p.Z((function(e){var n,t=r()(e);try{for(t.s();!(n=t.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(xn(),Ee.setSize("100%","100%"),Ee.refresh())}}catch(e){t.e(e)}finally{t.f()}}));return e.observe(mn.current.parentElement),e}();return function(){var n,t;null!==(n=mn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(t=mn.current)||void 0===t?void 0:t.parentElement)}}}),[Ee,xn]),(0,c.useEffect)((function(){if(Ee){for(var e=[],n=function(){var n=s()(i[t],2),r=n[0],o=n[1],a=l()({},r,(function(){_n(o)}));e.push(a),Ee.addKeyMap(a)},t=0,i=Object.entries(Se);t0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(A);e>=Je+1e4&&(!n||n!==Ie)&&(window.sessionStorage.setItem(A,Ie),on(!0))}}),1e4),(0,c.useEffect)((function(){Oe(j)}),[Ee,j]),(0,c.useEffect)((function(){Ee&&b&&Ee.focus()}),[Ee,b]),(0,c.useEffect)((function(){if(Re&&Ee){var e=function(e){var n=e.target;if(gn.current){var t=n.scrollTop/n.scrollHeight;gn.current.scrollTop=gn.current.scrollHeight*t}},n=Ee.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[Ee,Re]),(0,c.useEffect)((function(){if(Ee&&K){var e=function(e,n){K(e,n)};return Ee.on("beforeChange",e),function(){Ee.off("beforeChange",e)}}}),[Ee,K]),(0,c.useEffect)((function(){if(Ee&&V){var e=function(){V(Ee.getValue())};return Ee.on("blur",e),function(){Ee.off("blur",e)}}}),[Ee,V]),(0,c.useEffect)((function(){if(Ee){var e=function(e,n){var t=e.getValue();Le(t),Xe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(G?i(t,kn(t)):i(t))};return Ee.on("change",e),function(){Ee.off("change",e)}}}),[Ee,i]),(0,c.useEffect)((function(){if(Ee)if(null==t)Ee.setValue(""),Le("");else{var e=window.scrollY||window.pageYOffset;t!==Ee.getValue()&&(Ee.setValue(t),Le(t),Ee.setCursor(ie?1:Ee.lineCount(),0),window.scrollTo(0,e))}}),[Ee,t]);var _n=(0,c.useCallback)((function(e){var n=Ee.getCursor(),t=Ee.getSelection(),i=t.split("\n");switch(e){case"bold":return Ee.replaceSelection("**"+t+"**"),""===t&&Ee.setCursor(n.line,n.ch+2),Ee.focus();case"italic":return Ee.replaceSelection("*"+t+"*"),""===t&&Ee.setCursor(n.line,n.ch+1),Ee.focus();case"code":return Ee.replaceSelection("`"+t+"`"),""===t&&Ee.setCursor(n.line,n.ch+1),Ee.focus();case"inline-latex":return Ve("inline-latex"),Ee.focus();case"latex":return Ee.replaceSelection("```latex\n"+t+"\n```"),Ee.setCursor(n.line+1,t.length+1),Ee.focus();case"line-break":return Ee.replaceSelection("
\n"),Ee.focus();case"list-ul":return""===t?Ee.replaceSelection("- "+t):Ee.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ee.focus();case"list-ol":return""===t?Ee.replaceSelection("1. "+t):Ee.replaceSelection(i.map((function(e,n){return""===e?"":"".concat(n+1,". ").concat(e)})).join("\n")),Ee.focus();case"add-null-ch":return""===t&&Ee.setCursor(n.line,n.ch),Ee.replaceSelection("▁"),Ee.focus();case"add-signal":return""===t&&Ee.setCursor(n.line,n.ch),Ee.replaceSelection("@▁@"),Ee.focus();case"add-multiple":return""===t&&Ee.setCursor(n.line,n.ch),Ee.replaceSelection(ye),Ee.focus();case"inster-template-1":return""===t&&Ee.setCursor(n.line,n.ch),Ee.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ee.focus();case"eraser":return Ee.setValue(""),Ee.focus();case"trigger-watch":return Oe(!Re),Ee.focus();case"trigger-full-screen":return ze(!Ge),Ee.focus();case pe:return void Ve(pe);case ve:return void Ve(ve);case fe:return void Ve(fe);case he:return void Ve(he);case"maths-latex":return void Ve("maths-latex");case me:return void Ve(me);case ge:return void Ve(ge);default:throw new Error}}),[Ee,Re,Ge]),wn=(0,c.useCallback)((function(e,n){var t,i,r,o,s;switch(Ve(""),Ue){case pe:var a=e.title,l=e.link;return Ee.replaceSelection("[".concat(a,"](").concat(l,")")),Ee.focus();case ve:var c=e.language,u=e.content;return Ee.replaceSelection(["```"+c,u,"```"].join("\n")),Ee.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),f=0;f-1||null==v||!v.type?h?Ee.replaceSelection("![ ".concat(h," ]( ").concat(m,' "').concat(h,'" )')):Ee.replaceSelection("![,](".concat(m,")")):(null==v||null===(o=v.type)||void 0===o?void 0:o.indexOf("video"))>-1?Ee.replaceSelection('')):(null==v||null===(s=v.type)||void 0===s?void 0:s.indexOf("pdf"))>-1?Ee.replaceSelection('').concat(v.name,"")):be.includes(g)?Ee.replaceSelection('').concat(v.name,"")):Ee.replaceSelection("[".concat(v.name,"](").concat(de.Z.API_SERVER).concat(m,")")),Ee.focus();case ge:for(var x=e.row,_=e.col,w=e.align,y="\n",b=0;b300&&(n=300),nn(v+n+"px")}},i=vn.current,r=!1,o=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",t),document.addEventListener("mouseup",n),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)}}}),[Ee,vn]),(0,c.useEffect)((function(){nn(v)}),[v]);var jn={width:je(a),height:je(en)},kn=((0,c.useMemo)((function(){if(Je){var e=new Date(Je),n=e.getHours(),t=e.getMinutes(),i=e.getSeconds();return t=t<10?"0"+t:t,i=i<10?"0"+i:i,"".concat(n=n<10?"0"+n:n,":").concat(t,":").concat(i)}return 0}),[Je]),function(e){var n=[];if(G){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,t,i){n.push({multiLine:!("@▁@"===e)})}))}return n});(0,c.useEffect)((function(){Ce[Ue]&&Ue!==he&&Ue!==me&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;cn(n),fn(t)}),0)}),[Ue]);var Sn=function(e,n,t,i){var r=document.body.clientHeight,o=document.body.clientWidth;return!(e<20&&t>e||e>o-20&&tn||n>r-20&&i0&&void 0!==t[0]?t[0]:"未共享整个屏幕,禁止作答!",j.ZP.warning(n),setTimeout((function(){o()}),1e3);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),S=function(){var e=u()(l()().mark((function e(){var n,t,i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,M.i7)()){e.next=3;break}return k("请使用谷歌浏览器答题"),e.abrupt("return");case 3:if(!d.current){e.next=6;break}return j.ZP.warning("正在录制中"),e.abrupt("return");case 6:if(g.current=!0,e.prev=7,!(0,M.WX)()){e.next=14;break}return e.next=11,navigator.mediaDevices.getUserMedia({audio:{mandatory:{chromeMediaSource:"desktop"}},video:{mandatory:{chromeMediaSource:"desktop"}}});case 11:t=e.sent,e.next=22;break;case 14:return e.next=16,navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"monitor"}});case 16:if(t=e.sent,"monitor"===(null===(i=t)||void 0===i||null===(i=i.getVideoTracks())||void 0===i||null===(i=i[0])||void 0===i||null===(i=i.getSettings())||void 0===i?void 0:i.displaySurface)){e.next=22;break}return C(),k(),e.abrupt("return");case 22:return d.current=t,"srcObject"in f.current?f.current.srcObject=d.current:f.current.src=URL.createObjectURL(d.current),e.next=26,new Promise((function(e){f.current.addEventListener("loadedmetadata",(function(){e()}))}));case 26:null===(n=d.current)||void 0===n||null===(n=n.getVideoTracks())||void 0===n||null===(n=n[0])||void 0===n||n.addEventListener("ended",(function(){g.current&&k()})),f.current.play(),s(),e.next=34;break;case 31:e.prev=31,e.t0=e.catch(7),k("屏幕录制功能错误,请检查后再共享整个屏幕,否则无法作答");case 34:case"end":return e.stop()}}),e,null,[[7,31]])})));return function(){return e.apply(this,arguments)}}(),C=function(){var e;g.current=!1;var n=null===(e=d.current)||void 0===e?void 0:e.getTracks();null==n||n.forEach((function(e){e.stop()})),d.current=null},N=function(e){var n=e.split(",")[1],t=e.split(",")[0].split(":")[1].split(";")[0],i=r()(atob(n)),o=new Uint8Array(i.map((function(e){return e.charCodeAt(0)})));return new Blob([o],{type:t})},B=function(){var e=u()(l()().mark((function e(){var t,i,r,o,s,a,c,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=m.current.getContext("2d"),m.current.width=f.current.videoWidth,m.current.height=f.current.videoHeight,t.drawImage(f.current,0,0,m.current.width,m.current.height),i=m.current.toDataURL("image/jpeg"),r=N(i),o=new File([r],"canvas_image.jpg",{type:"image/jpeg"}),(s=new FormData).append("file",o),e.next=11,(0,R.ZP)("/api/exercises/".concat(n,"/exercise_user_screens/check.json"),{method:"get"});case 11:if(0!==(null==(a=e.sent)?void 0:a.status)){e.next=21;break}return e.next=15,(0,R.ZP)("/api/attachments.json",{method:"post",body:s},!0);case 15:if(null==(c=e.sent)||!c.id){e.next=21;break}return e.next=19,(0,R.ZP)("/api/exercises/".concat(n,"/exercise_user_screens.json"),{method:"post",body:{attachment_id:null==c?void 0:c.id,exercise_abnormity_id:x.current}});case 19:0===(u=e.sent).status&&(x.current=u.exercise_abnormity_id);case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("video",{ref:f,muted:!0,className:"hide"}),(0,O.jsx)("canvas",{id:"canvas",ref:m,className:"hide"})]})},F=t(99232),G=t.n(F),z={flex_box_center:"flex_box_center___ariLt",flex_space_between:"flex_space_between___MC6sH",flex_box_vertical_center:"flex_box_vertical_center___tJHfy",flex_box_center_end:"flex_box_center_end___AfB_t",flex_box_column:"flex_box_column___xX4Fj",bg:"bg___nHBEZ",wrapper:"wrapper___TZKl8",exerciseAlert:"exerciseAlert___QUMwm",title:"title___rj6Q0",content:"content___Te7Wz",baseMargin:"baseMargin___BRmsh",noWrap:"noWrap___X6AS3",singleItem:"singleItem___GkaDR",questionIcons:"questionIcons___XoGYC",green:"green___iIYnV",orange:"orange___EIhiL",greenTip:"greenTip___WwiUh",redTip:"redTip___aWSt4",orangeTip:"orangeTip___j5g_H",pollDesc:"pollDesc___yDT2Q",answered:"answered___d2hE7",unanswer:"unanswer___AdOhE",anchor:"anchor___z3CaP",answerFlag:"answerFlag___wwTKa",flagActive:"flagActive___piG3D",flagHalf:"flagHalf___E29dd",answerStudentFlag:"answerStudentFlag___HRVt8",answerStudentActive:"answerStudentActive___kM6r4",questionItem:"questionItem___q6Hgu",questionScore:"questionScore___RW5tm",itemType:"itemType___pPqzT",itemFlag:"itemFlag___j5TSr",answerWrap:"answerWrap___G9dnn",answerSubjective:"answerSubjective___LRVKJ",otherInput:"otherInput___SxNAw",submitButton:"submitButton___zPo7H",randomFlag:"randomFlag___TOZ2H",answerTrue:"answerTrue___fgIW0",answerFalse:"answerFalse___gAQD8",answerHalf:"answerHalf___h40sX",renderHtml:"renderHtml___UerV1",simpleText:"simpleText___ZKx7o",answerYes:"answerYes___AA0oM",answerNo:"answerNo___gMGLy",answerInfo:"answerInfo___tB4Wz",answerProgress:"answerProgress___CbmXy",answerSheetWrap:"answerSheetWrap___aPipx",answerSheetQuestionTitle:"answerSheetQuestionTitle___P18Ss",answerSheet:"answerSheet___yhxK1",answerSheetItem:"answerSheetItem___DIH2V",qindex:"qindex___XuKA8",markIcon:"markIcon___ZTkqb",active:"active___WSsrt",yes:"yes___knuOK",no:"no___gv_cs",bf:"bf___pJfi5",partialActive:"partialActive___K6lsa",selected:"selected___grFyM",countDown:"countDown___OzcWL",cnText:"cnText___TvFjV",red:"red___Mge1h",refreshBtn:"refreshBtn___lK1MX",fold:"fold___id0EJ",cardList:"cardList___xKhMX",withQrcode:"withQrcode___qphZK",iframe:"iframe___pMMQx",eduTip:"eduTip___hXWhK",eduQrcode:"eduQrcode____qxcx",eduVideo:"eduVideo___mufWJ",eduUsername:"eduUsername___tiufh",startAnswer:"startAnswer___AA7n5",eduSubmit:"eduSubmit___UPIsJ",eduTitle:"eduTitle___jCJrO",wrpAnswer:"wrpAnswer___AVK1Y",simpleMd:"simpleMd___ZGbXj",videomodal:"videomodal___bYarH",mainPart:"mainPart___Fqvw7",userInfoText:"userInfoText___nqL8p",answerSheetBottom:"answerSheetBottom___yXf5u",tooltipWrap:"tooltipWrap___AxG9B",leftPart:"leftPart___P4Ook",rightPart:"rightPart___De4P3",questionPart:"questionPart___GTq66",questionTypeTitle:"questionTypeTitle___r6Fo9",questionTypeInfo:"questionTypeInfo___JfpWv",toIframeBtn:"toIframeBtn___gRKtn",bottom:"bottom___coSlv",markBtn:"markBtn___ZCLGF",changeButton:"changeButton___sBTjl",prevBtn:"prevBtn___lgCPG",analysisWrap:"analysisWrap___JoCnb",greyBg:"greyBg___vgesc",fixHeader:"fixHeader___RoNxE",exerciseTitle:"exerciseTitle___Dtp56",commitModal:"commitModal___zqvNA",commitItem:"commitItem___mjYF6",commitInfoLabel:"commitInfoLabel___KtIjW",commitInfoValue:"commitInfoValue___DCyRn",cameraHeader:"cameraHeader___Pqhwb",dottedLineWrapper:"dottedLineWrapper___ONO9c",leftHalfCircle:"leftHalfCircle___RNJN7",dottedLine:"dottedLine___qWy4W",rightHalfCircle:"rightHalfCircle___s3_hr",orangeNum:"orangeNum___IYnup",teachAnalysis:"teachAnalysis___FH6fk",teachAnalysisModal:"teachAnalysisModal___RcKVp"},H=t(5746),W=t(22961),U=t(60578),V=t(77884),K=t(11314),Y=t(3162),J=t(97206),X={0:"c-red-ee4",1:"c-green"},Q=function(e){var n,t,i,r,o,s,a=e.item,l=e.answerData,c=e.isEducation,u=e.sign,d=e.onBlur,f=void 0===d?function(){}:d,m=(0,h.useRef)(""),v=(0,h.useState)(),g=p()(v,2),x=(g[0],g[1]),_=(0,h.useState)(!1),w=p()(_,2),y=w[0],b=w[1],k=(0,h.useState)(c||!1),N=p()(k,2),B=N[0],T=N[1],E=(0,h.useRef)();return(0,h.useEffect)((function(){console.log("isFocus:",y),y&&(clearInterval(E.current),E.current=setInterval((function(){y&&f(m.current,!0)}),1e4))}),[y]),(0,h.useEffect)((function(){x(null==a?void 0:a.a_flag)}),[null==a?void 0:a.a_flag]),(0,h.useEffect)((function(){return function(){clearInterval(E.current)}}),[]),(0,O.jsxs)("div",{children:[1===(null==l||null===(n=l.exercise)||void 0===n?void 0:n.user_exercise_status)?(0,O.jsxs)("div",{className:"mb20",children:[(0,O.jsxs)(S.Z,{justify:"space-between",children:[(0,O.jsx)(C.Z,{children:"我的答案"}),((0,W.GJ)()||(0,W.dE)()&&(null==l||null===(t=l.exercise)||void 0===t?void 0:t.user_exercise_status)>0&&(null==l||null===(i=l.exercise)||void 0===i?void 0:i.open_score))&&(0,O.jsx)(C.Z,{children:(0,O.jsxs)(S.Z,{justify:"end",className:"mb20",align:"middle",children:[(0,O.jsx)("span",{className:"font14",style:{color:"#6A7283"},children:"得分"}),(0,O.jsxs)("span",{className:"font14 ml10",children:[(null==a?void 0:a.user_score)&&(0,O.jsxs)("span",{children:[(0,O.jsx)("span",{className:X[Number(null==a?void 0:a.answer_status)]||"c-orange-ff9",children:null==a?void 0:a.user_score}),(0,O.jsx)("span",{style:{marginLeft:5,color:"#6A7283"},children:"分"})]}),!(null!=a&&a.user_score)&&(0,O.jsx)("span",{className:"c-red",children:"未评"})]})]})})]}),(0,O.jsx)("div",{className:z.simpleText,children:(0,O.jsx)(Y.Z,{value:null==a||null===(r=a.user_answer)||void 0===r?void 0:r[0]})})]}):(0,O.jsx)("div",{className:a.user_score&&(a.user_score===a.question_score?"c-green":"c-red"),children:B?(0,O.jsx)(J.Z,{watch:!0,isFocus:!0,defaultValue:null==a||null===(o=a.user_answer)||void 0===o?void 0:o[0],id:null==a?void 0:a.question_id,className:"mt20",onChange:function(e){m.current=e,b(!0)},onBlur:function(){setTimeout((function(){f(m.current)}),200),clearInterval(E.current),b(!1)}}):(0,O.jsx)("div",{onClick:function(){var e;!a.repeat_answer&&(null==a||null===(e=a.user_answer)||void 0===e?void 0:e.length)>0&&0!==a.ques_status?j.ZP.warning("该题不允许再修改答案"):(u.current=!0,T(!0))},className:z.startAnswer,children:(0,O.jsx)("div",{className:"c-blue",children:"点击开始作答"})})}),(0,W.dE)()&&(null==a?void 0:a.standard_answer)&&(0,O.jsx)("div",{className:z.analysisWrap,children:(0,O.jsxs)("div",{className:z.greyBg,children:[(0,O.jsxs)(S.Z,{className:"mb20",align:"middle",children:[(0,O.jsx)(C.Z,{className:"font14 mr10",style:{color:"#6A7283"},children:"【答案】"}),(0,O.jsx)(C.Z,{children:(0,O.jsx)(Y.Z,{value:null==a||null===(s=a.standard_answer)||void 0===s?void 0:s[0]})})]}),(0,O.jsxs)(S.Z,{children:[(0,O.jsx)("span",{className:"font14 mr10",style:{color:"#6A7283"},children:"【解析】"}),(0,O.jsx)(Y.Z,{className:z.renderHtml,value:null==a?void 0:a.analysis})]})]})})]})},$=t(57809),ee=function(e){var n,t,i,r,o=e.item,s=e.answerData,a=e.isEducation,l=e.onBlur,c=void 0===l?function(){}:l,u=(0,h.useRef)(""),d=(0,h.useState)(),f=p()(d,2),m=(f[0],f[1]),v=(0,h.useState)(!1),g=p()(v,2),x=g[0],_=g[1],w=(0,h.useState)(!1),y=p()(w,2),j=y[0],k=y[1],S=(0,h.useState)(a||!1),C=p()(S,2),N=C[0],B=C[1],T=(0,h.useState)(0),E=p()(T,2),A=E[0],P=E[1],Z=(0,h.useRef)(o.kp_content||""),I=(0,h.useRef)(o.kp_clazz),L=(0,h.useRef)(),q=(0,h.useMemo)((function(){var e;return null===(e=u.current)||void 0===e||null===(e=e.replace(/[\n|\r|\t]/g,""))||void 0===e?void 0:e.length}),[u.current]);return(0,h.useEffect)((function(){console.log("isFocus:",j),clearInterval(L.current),L.current=setInterval((function(){j&&c(u.current,Z.current,I.current)}),3e4)}),[j]),(0,h.useEffect)((function(){m(null==o?void 0:o.a_flag)}),[null==o?void 0:o.a_flag]),(0,h.useEffect)((function(){return function(){clearInterval(L.current)}}),[]),(0,O.jsxs)("div",{children:[1===(null==s||null===(n=s.exercise)||void 0===n?void 0:n.user_exercise_status)?(0,O.jsxs)("div",{children:[(0,O.jsxs)("div",{className:"mt30",children:[(0,O.jsx)("strong",{children:"作文题目:"}),(0,O.jsx)("br",{}),(0,O.jsx)(b.Z,{disabled:!0,className:"mt10",value:Z.current,onChange:function(e){Z.current=e.target.value,P(A+1)},onBlur:function(){c(u.current,Z.current,I.current),k(!1)}})]}),(0,O.jsxs)("div",{className:"mt30",children:[(0,O.jsx)("strong",{children:"作品类型:"}),(0,O.jsx)("br",{}),(0,O.jsxs)($.default,{disabled:!0,className:"mt10 w100",placeholder:"请选择作品类型",value:I.current,onChange:function(e){I.current=e,P(A+1)},onBlur:function(){c(u.current,Z.current,I.current),k(!1)},children:[(0,O.jsx)($.default.Option,{value:"科普",children:"科普"},1),(0,O.jsx)($.default.Option,{value:"科幻",children:"科幻"},2)]})]}),(0,O.jsx)("p",{className:"mt10 mb0",children:"作品内容:"}),(0,O.jsx)("div",{className:z.simpleText,children:(0,O.jsx)(Y.Z,{value:null==o||null===(t=o.user_answer)||void 0===t?void 0:t[0]})})]}):(0,O.jsxs)("div",{children:[(0,O.jsxs)("div",{className:"mt30",children:[(0,O.jsx)("strong",{children:"作文题目:"}),(0,O.jsx)("br",{}),(0,O.jsx)(b.Z,{className:"mt10",maxLength:60,onBlur:function(){return c(u.current,Z.current,I.current)},placeholder:"请输入作文题目(最多60个字)",value:Z.current,onChange:function(e){Z.current=e.target.value,P(A+1)}})]}),(0,O.jsxs)("div",{className:"mt30",children:[(0,O.jsx)("strong",{children:"作文类型:"}),(0,O.jsx)("br",{}),(0,O.jsxs)($.default,{className:"mt10 w100",placeholder:"请选择作品类型",value:I.current,onChange:function(e){I.current=e,c(e.current,Z.current,I.current),P(A+1)},children:[(0,O.jsx)($.default.Option,{value:"科普",children:"科普"},1),(0,O.jsx)($.default.Option,{value:"科幻",children:"科幻"},2)]})]}),(0,O.jsx)("div",{className:"mt30 mb20",children:(0,O.jsxs)("div",{className:o.user_score&&(o.user_score===o.question_score?"c-green":"c-red"),children:[(0,O.jsx)("strong",{children:"作文内容:"}),(0,O.jsx)("br",{}),(0,O.jsxs)("div",{className:"mt10 relative",children:[(0,O.jsxs)("span",{className:"c-blue",style:{position:x?"fixed":"absolute",top:x?61:4,left:10,zIndex:106},children:["已输入",q,"字"]}),N?(0,O.jsx)(J.Z,{className:z.simpleMd,disablePaste:!0,hidetoolBar:a,height:a?"60vh":150,isFocus:!0,defaultValue:null==o||null===(i=o.user_answer)||void 0===i?void 0:i[0],id:null==o?void 0:o.question_id,onFullScreen:function(e){return _(e)},onChange:function(e){u.current=e,k(!0),P(A+1)},onBlur:function(){c(u.current,Z.current,I.current),k(!1)}}):(0,O.jsx)("div",{onClick:function(){return B(!0)},className:z.startAnswer,children:(0,O.jsx)("div",{className:"c-blue",children:"点击开始作答"})})]})]})})]}),(0,W.dE)()&&(null==o?void 0:o.standard_answer)&&(0,O.jsxs)("div",{children:[(0,O.jsx)("p",{className:"mt10 mb0",children:"参考答案:"}),(0,O.jsx)("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5},children:(0,O.jsx)(Y.Z,{value:null==o||null===(r=o.standard_answer)||void 0===r?void 0:r[0]})})]})]})},ne=t(79817),te=t(14491),ie=t(80404),re="score___mcGn7",oe="wrap___h11sQ",se=function(e){var n=e.score;return n?(0,O.jsxs)("span",{className:oe,children:["得分",(0,O.jsx)("span",{className:"".concat(re," ml10 mr5"),children:n}),"分"]}):(0,O.jsx)("span",{className:"c-red",children:"未评"})},ae={flex_box_center:"flex_box_center___xK64P",flex_space_between:"flex_space_between___BNBCA",flex_box_vertical_center:"flex_box_vertical_center___ConJK",flex_box_center_end:"flex_box_center_end___L08sz",flex_box_column:"flex_box_column___hvk0E",shixunWrp:"shixunWrp___FTFC6",fill:"fill___H_Qd6",index:"index___PaSVJ",success:"success___fz_F7",fail:"fail___ftXSv",fillInput:"fillInput___q_sSb",shixunWrapper:"shixunWrapper___toGqF",score:"score___AsYGZ",name:"name___hawfX",programWrapper:"programWrapper___zVQPT",desc:"desc___MFIu5",content:"content___QuE41",analysisWrap:"analysisWrap___qGPzJ",greyBg:"greyBg___FIDIB"},le=function(e){var n,t,i,r,o,a=e.item,l=e.answerData,c=e.exerciseId,u=e.coursesId,d=(0,h.useState)([]),f=p()(d,2),m=f[0],g=f[1],x=(0,h.useState)([]),_=p()(x,2),w=_[0],y=_[1];(0,h.useEffect)((function(){var e;if(null!=a&&null!==(e=a.shixun_details)&&void 0!==e&&e.length){for(var n=[],t=[],i=function(){for(var e,i=0;i<(null==a?void 0:a.shixun_details[r].stage_list.length);i++){var o,l=null==a?void 0:a.shixun_details[r].stage_list[i];n.push(s()(s()({},l),{operation:null==a||null===(o=a.shixun_details)||void 0===o||null===(o=o[r])||void 0===o||null===(o=o.shixun_detail)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.game_identifier,is_jupyter:null==a?void 0:a.is_jupyter,is_jupyter_lab:null==a?void 0:a.is_jupyter_lab}))}if(null!=a&&null!==(e=a.shixun_details)&&void 0!==e&&null!==(e=e[r])&&void 0!==e&&e.shixun_detail){var c,u,d=null==a||null===(c=a.shixun_details)||void 0===c||null===(c=c[r])||void 0===c||null===(c=c.shixun_detail)||void 0===c?void 0:c[0],p=null==a||null===(u=a.shixun_details[r].stage_list)||void 0===u||null===(u=u.find((function(e){return(null==e?void 0:e.game_identifier)===(null==d?void 0:d.game_identifier)})))||void 0===u?void 0:u.user_score;t.push(s()(s()({},d),{},{user_score:p}))}},r=0;r<(null==a||null===(o=a.shixun_details)||void 0===o?void 0:o.length);r++){var o;i()}y(t),g(n)}}),[null==a?void 0:a.shixun_details]);var b=[{title:"关卡",dataIndex:"position",key:"position",align:"center"},{title:"任务名称",dataIndex:"name",key:"name",align:"center",render:function(e){return(0,O.jsx)("span",{className:"overflowHidden1",style:{maxWidth:"400px"},title:e&&e.length>25?e:"",children:e})}},{title:"评测次数",dataIndex:"evaluate_count",key:"evaluate_count",align:"center",render:function(e,n){return(0,O.jsx)("span",{children:n.evaluate_count?n.evaluate_count:(0,O.jsx)("span",{className:"color-grey-9",children:"--"})})}},{title:"完成时间",key:"endTime",dataIndex:"endTime",align:"center",render:function(e,n){var t=!1;return n.finished_time&&null!=l&&l.exercise&&null!=l&&l.exercise_answer_user&&(t=-1===(null==l?void 0:l.exercise.time)?G()(null==l?void 0:l.exercise.end_time).isBefore(n.finished_time):G()(null==l?void 0:l.exercise_answer_user.start_at).add(null==l?void 0:l.exercise.time,"m").isBefore(n.finished_time)),(0,O.jsxs)("span",{children:[n.finished_time||(0,O.jsx)("span",{className:"c-grey-999",children:"--"}),(0,O.jsx)("span",{className:"c-orange-ff9 ",children:t?"(已超时)":""})]})}},{title:"耗时",dataIndex:"time_consuming",key:"time_consuming",align:"center",render:function(e,n){return(0,O.jsx)("span",{children:n.time_consuming||(0,O.jsx)("span",{className:"color-grey-9",children:"--"})})}},{title:"查看答案",dataIndex:"view_answer",key:"view_answer",align:"center",render:function(e,n){return(0,O.jsx)("span",{children:n.view_answer?"已查看":"未查看"})}},{title:"得分",dataIndex:"user_score",key:"user_score",align:"center",render:function(e){return(0,O.jsxs)("span",{style:{color:"#FA6400"},children:[e,"分"]})}},{title:"操作",dataIndex:"operation",key:"operation",align:"center",render:function(e,n,t){return!e||n.is_jupyter||n.is_jupyter_lab?(0,O.jsx)("span",{className:"c-grey-999",children:"--"}):(0,O.jsx)(ne.Z,{affix:!1,className:"mt10",children:(0,O.jsx)(ne.Z.Link,{href:"#challenge_".concat(null==a?void 0:a.question_id).concat(t),title:(0,O.jsx)("span",{style:{color:"#0152d9",fontSize:14},children:"查看"})})})}}];console.log(w);var j={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return(0,O.jsxs)("div",{children:[(null==a||null===(n=a.shixun)||void 0===n?void 0:n.length)>0&&(0,O.jsx)("div",{className:ae.shixunWrapper,children:null==a||null===(t=a.shixun)||void 0===t?void 0:t.map((function(e,n){return(0,O.jsxs)(S.Z,{className:"mb20",justify:"space-between",children:[(0,O.jsxs)(C.Z,{flex:"1",children:[(0,O.jsxs)("span",{className:ae.score,children:["(",e.challenge_score,"分)"]}),(0,O.jsxs)("span",{className:ae.name,children:[e.challenge_name," "]})]}),(0,O.jsxs)(C.Z,{children:[!e.answer_status&&(0,O.jsx)("span",{className:"font14",style:{color:"#FA6400"},children:"未完成"}),!!e.answer_status&&(0,O.jsx)("span",{className:"font14",style:{color:"#37AD83"},children:"已完成"})]})]})}))}),0!==(null==l||null===(i=l.exercise)||void 0===i?void 0:i.student_commit_status)||0!==(null==l||null===(r=l.exercise)||void 0===r?void 0:r.user_exercise_status)?(0,O.jsxs)(O.Fragment,{children:[!(null==m||!m.length)&&(0,O.jsxs)("div",{children:[(0,O.jsxs)(S.Z,{justify:"space-between",className:"mb10",align:"middle",children:[(0,O.jsx)(C.Z,{className:"font14 c-grey-666",children:"阶段成绩"}),(0,O.jsx)(C.Z,{children:(0,O.jsx)(se,{score:null==a?void 0:a.user_score})})]}),(0,O.jsx)(te.Z,{columns:b,dataSource:m,pagination:!1})]}),!(null==w||!w.length)&&(0,O.jsxs)("div",{children:[(0,O.jsx)("p",{className:"font16 c-grey-666 mt10",children:"实训详情"}),null==w?void 0:w.map((function(e,n){return(0,O.jsxs)("div",{id:"challenge_".concat(null==a?void 0:a.question_id).concat(n),className:"mt5",children:[(0,O.jsxs)(S.Z,{children:[(0,O.jsxs)("span",{className:"font14 mr15",children:[" 第",e.position,"关"]}),(0,O.jsx)(v.Link,{className:"current c-black font14",target:"_blank",to:"/tasks/".concat(u,"/").concat(c,"/").concat(e.game_identifier,"/exercise"),children:e.name}),(0,O.jsx)(C.Z,{style:{marginLeft:"auto"},children:(0,O.jsx)(se,{score:e.user_score})})]}),0===(null==e?void 0:e.st)&&e.passed_code&&(0,O.jsxs)("aside",{className:ae.shixunWrp,children:[(0,O.jsxs)("h2",{children:["第一次通关的代码(未通关则为最后一次提交评测的代码)",(0,O.jsx)("span",{className:"c-light-black",children:e.path})]}),(0,O.jsx)(ie.ZP,{height:300,language:"python",theme:"default",value:e.passed_code,options:j})]})]})}))]})]}):(0,O.jsxs)(O.Fragment,{children:[(0,W.dE)()&&(0,O.jsx)(Y.Z,{className:"c-grey-999 mt20 mb20",value:null==a?void 0:a.question_title}),null==a||null===(o=a.shixun)||void 0===o?void 0:o.map((function(e,n){return(0,O.jsxs)("p",{className:"font16 c-grey-666 mb5",children:[(0,O.jsxs)("span",{className:"mr20",children:["第",null==e?void 0:e.challenge_position,"关 ",null==e?void 0:e.challenge_name]}),(0,O.jsxs)("span",{children:[null==e?void 0:e.challenge_score,"分"]})]},n)}))]})]})},ce=t(24334),ue=function(e){var n,t,i,r=e.item,o=e.answerData,s=(0,h.useState)([]),a=p()(s,2),l=(a[0],a[1]);(0,h.useEffect)((function(){var e,n;(null==r||null===(e=r.evaluate_codes)||void 0===e?void 0:e.length)>0?l(null==r||null===(n=r.evaluate_codes)||void 0===n?void 0:n.map((function(e,n){return{key:n+1,error_msg:null!=e&&e.error_msg?ce.Base64.decode(null==e?void 0:e.error_msg):""}}))):l([{key:"--",error_msg:"--"}])}),[null==r?void 0:r.evaluate_codes]);return(0,O.jsxs)("div",{className:"".concat(ae.programWrapper),children:[(0,O.jsx)("div",{className:ae.desc,children:"题目描述"}),(0,O.jsx)("div",{className:ae.content,children:(0,O.jsx)(Y.Z,{value:null==r?void 0:r.description})}),1===(null==o||null===(n=o.exercise)||void 0===n?void 0:n.user_exercise_status)&&(0,O.jsx)(S.Z,{justify:"end",className:"mt40",children:(0,O.jsx)(C.Z,{children:(0,O.jsx)(se,{score:null==r?void 0:r.user_score})})}),(null==r?void 0:r.passed_code)&&(0,O.jsxs)("aside",{className:ae.shixunWrp,children:[(0,O.jsx)("h3",{children:"第一次评测通过的代码(未通关则为最后一次提交评测的代码)"}),(0,O.jsx)(ie.ZP,{style:{border:"1px solid #ccc"},height:300,language:"python",theme:"vs-light",value:null!=r&&r.passed_code?ce.Base64.decode(null==r?void 0:r.passed_code):"",options:{selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1}})]}),1===(null==o||null===(t=o.exercise)||void 0===t?void 0:t.user_exercise_status)&&(null==o||null===(i=o.exercise)||void 0===i?void 0:i.answer_open)&&(0,O.jsxs)("div",{style:{background:"#F6F7F9"},className:"mt30 p20",children:[(0,O.jsxs)("div",{style:{marginBottom:"20px",fontSize:"16px",display:"flex"},children:[(0,O.jsx)("span",{style:{whiteSpace:"nowrap"},children:"【答案】"}),(0,O.jsx)(Y.Z,{value:(null==r?void 0:r.standard_answer)||""})]}),(0,O.jsxs)("div",{style:{fontSize:"16px",display:"flex"},children:[(0,O.jsx)("span",{style:{whiteSpace:"nowrap"},children:"【解析】"}),(0,O.jsx)(Y.Z,{value:(null==r?void 0:r.analysis)||"暂无解析"})]})]})]})},de=t(99267),pe=(b.Z.TextArea,{0:"c-red-ee4",1:"c-green"}),fe=function(e){var n,t,i,o,a=e.sign,c=e.item,d=e.answerData,f=e.onBlur,m=void 0===f?function(){}:f,g=(0,h.useState)([]),x=p()(g,2),_=x[0],w=x[1],y=(0,h.useState)([]),j=p()(y,2),k=j[0],N=j[1],B=(0,h.useRef)(),T=(0,h.useRef)(),E=(0,v.useSearchParams)(),A=p()(E,1)[0];return(0,h.useEffect)((function(){if(A.get("check")){var e,n;n=null==c||null===(e=c.standard_answer)||void 0===e?void 0:e.map((function(e){var n;return s()(s()({},e),{},{choice_id:e.position,answer_text:(null==c||null===(n=c.user_answer)||void 0===n||null===(n=n.find((function(n){return n.choice_id===e.choice_id})))||void 0===n?void 0:n.answer_text)||""})})),B.current=n,w(n)}else{var t,i;i=null==c||null===(t=c.standard_answers)||void 0===t?void 0:t.map((function(e){var n;return s()(s()({},e),{},{choice_id:e.position,answer_text:(null==c||null===(n=c.user_answer)||void 0===n||null===(n=n.find((function(n){return n.choice_id===e.position})))||void 0===n?void 0:n.answer_text)||""})})),B.current=i,w(i)}}),[null==c?void 0:c.user_answer]),(0,O.jsxs)("div",{children:[null==_?void 0:_.map((function(e,n){var t,i,o,s,p;return(0,O.jsxs)(S.Z,{className:"".concat(ae.baseMargin," ").concat(ae.fill),align:"middle",children:[(0,O.jsxs)(C.Z,{className:ae.index,children:["填空项",n+1]}),(0,O.jsx)(C.Z,{flex:"430px",className:"ml20 mr20",children:1===(null==e?void 0:e.model)?(0,O.jsx)(b.Z,{placeholder:"请输入答案",disabled:!c.repeat_answer&&(null==c||null===(t=c.user_answer)||void 0===t?void 0:t.length)>0&&0!==c.ques_status||!(null==d||!d.exercise.commit_status),value:null==e?void 0:e.answer_text,onChange:function(e){_[n].answer_text=e.target.value,w(r()(_))},onFocus:function(){a.current=!0},onBlur:function(t){setTimeout(u()(l()().mark((function t(){var i,r,o;return l()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,m(null==e?void 0:e.answer_text,n+1,_);case 2:(i=t.sent).status?((o=k.slice())[n]={status:"fail",errorText:i.message},T.current=o,N(o)):((r=k.slice())[n]={status:"success",errorText:""},T.current=r,N(r));case 4:case"end":return t.stop()}}),t)}))),200)},className:"".concat(c.user_score&&(c.user_score===c.question_score?"c-green":"c-red")," ").concat(ae.fillInput)}):(0,O.jsx)(de.Z,{value:null==e?void 0:e.answer_text,disabled:!c.repeat_answer&&(null==c||null===(i=c.user_answer)||void 0===i?void 0:i.length)>0&&0!==c.ques_status||!(null==d||!d.exercise.commit_status),onChange:function(){var t=u()(l()().mark((function t(i){var o,s,a,c,u;return l()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return _[n].answer_text=i,w(r()(_)),t.next=4,m(null==e?void 0:e.answer_text,n+1,_);case 4:(o=t.sent).status?((u=(null==T||null===(c=T.current)||void 0===c?void 0:c.slice())||[].slice())[n]={status:"fail",errorText:o.message},T.current=u,N(u)):((a=(null==T||null===(s=T.current)||void 0===s?void 0:s.slice())||[].slice())[n]={status:"success",errorText:""},T.current=a,N(a));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})}),"success"===(null===(o=k[n])||void 0===o?void 0:o.status)&&(0,O.jsx)(C.Z,{children:(0,O.jsxs)(S.Z,{align:"middle",children:[(0,O.jsx)("i",{style:{marginRight:8},className:"iconfont icon-chenggong1 ".concat(ae.success)}),(0,O.jsx)("span",{className:ae.success,children:"保存成功"})]})}),"fail"===(null===(s=k[n])||void 0===s?void 0:s.status)&&(0,O.jsx)(C.Z,{children:(0,O.jsxs)(S.Z,{align:"middle",children:[(0,O.jsx)("i",{style:{marginRight:8},className:"iconfont icon-tishi7 ".concat(ae.fail)}),(0,O.jsx)("span",{className:ae.fail,children:null===(p=k[n])||void 0===p?void 0:p.errorText})]})})]},n)})),((0,W.GJ)()||(0,W.dE)()&&(null==d||null===(n=d.exercise)||void 0===n?void 0:n.user_exercise_status)>0&&(null==d||null===(t=d.exercise)||void 0===t?void 0:t.open_score))&&(0,O.jsxs)(S.Z,{justify:"end",className:"mb20",align:"middle",children:[(0,O.jsx)("span",{className:"font14",style:{color:"#6A7283"},children:"得分"}),(0,O.jsxs)("span",{className:"font14 ml10",children:[(null==c?void 0:c.user_score)&&(0,O.jsxs)("span",{children:[(0,O.jsx)("span",{className:pe[Number(null==c?void 0:c.answer_status)]||"c-orange-ff9",children:null==c?void 0:c.user_score}),(0,O.jsx)("span",{style:{marginLeft:5,color:"#6A7283"},children:"分"})]}),!(null!=c&&c.user_score)&&(0,O.jsx)("span",{className:"c-red",children:"未评"})]})]}),(null==d||null===(i=d.exercise)||void 0===i?void 0:i.answer_open)&&(0,O.jsx)("div",{className:ae.analysisWrap,children:(0,O.jsxs)("div",{className:ae.greyBg,children:[(0,O.jsxs)(S.Z,{className:"mb20",align:"middle",children:[(0,O.jsx)(C.Z,{className:"font14 mr10",style:{color:"#6A7283"},children:"【答案】"}),null==c||null===(o=c.standard_answer)||void 0===o?void 0:o.map((function(e,n){var t;return(0,O.jsx)(C.Z,{className:"mr40",children:(0,O.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,O.jsxs)("div",{style:{width:"100px"},children:["填空项",n+1]}),(0,O.jsx)(de.Z,{value:null==e||null===(t=e.answer_text)||void 0===t?void 0:t[0],disabled:!0})]})},n)}))]}),(0,O.jsxs)(S.Z,{children:[(0,O.jsx)("span",{className:"font14 mr10",style:{color:"#6A7283"},children:"【解析】"}),(0,O.jsx)(Y.Z,{className:ae.renderHtml,value:null==c?void 0:c.analysis})]})]})})]})},me=t(87838),he=t(88289),ve=(b.Z.TextArea,function(e){var n,t,i,r=e.item,o=e.answerData,a=e.onBlur,c=void 0===a?function(){}:a,d=(e.onDebug,e.setIsSubmitCode),f=(0,h.useState)([]),m=p()(f,2),g=m[0],x=m[1],_=(0,v.useSearchParams)(),w=p()(_,1)[0];return(0,h.useEffect)((function(){var e,n=null==r||null===(e=r.standard_answer_with_score)||void 0===e?void 0:e.map((function(e,n){var t;return s()(s()({},e),{},{value:(null==r||null===(t=r.user_answer)||void 0===t||null===(t=t.find((function(e){return parseInt(e.choice_id)===n+1})))||void 0===t?void 0:t.answer_text)||""})}));x(n)}),[null==r?void 0:r.standard_answer_with_score]),console.log(g,"userAnswer"),(0,O.jsxs)("div",{children:[(0,O.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:10},children:[(0,O.jsxs)("div",{style:{fontSize:14,color:"#FF0000"},children:[(0,O.jsx)(he.Z,{}),(0,O.jsx)("span",{style:{marginLeft:5},children:"注意:填写答案之后,必须提交代码进行评测,否则无法得分"})]}),!w.get("check")&&(0,O.jsx)(me.Z,{setIsSubmitCode:d,ButtonProps:{type:"primary"},ButtonText:"提交代码",items:s()(s()({},r),{},{userAnswer:g}),hackidentifier:null==r?void 0:r.hack_identifier})]}),(null==r?void 0:r.code)&&(0,O.jsx)("div",{style:{border:"1px solid #CCCCCC",padding:"10px",marginBottom:20},children:(0,O.jsx)(Y.Z,{disabledFill:!r.repeat_answer&&(null==r||null===(n=r.user_answer)||void 0===n?void 0:n.length)>0&&0!==r.ques_status||!(null==o||!o.exercise.commit_status),onFillBlur:function(){var e=u()(l()().mark((function e(n,t){var i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c(null==n||null===(i=n[parseInt(t)])||void 0===i?void 0:i.value,parseInt(t)+1,g);case 2:0===e.sent.status?(g[parseInt(t)].type="success",x(g)):(g[parseInt(t)].type="warning",x(g));case 4:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),className:ae.content,programFillValue:g,showProgramFill:!0,value:ce.Base64.decode((null==r?void 0:r.code)||"")})}),!(null==r||null===(t=r.standard_answer)||void 0===t||!t.length)&&(0,O.jsx)("div",{className:ae.analysisWrap,children:(0,O.jsxs)("div",{className:ae.greyBg,children:[(0,O.jsxs)(S.Z,{className:"mb20",align:"middle",children:[(0,O.jsx)(C.Z,{className:"font14 mr10",style:{color:"#6A7283"},children:"【答案】"}),null==r||null===(i=r.standard_answer)||void 0===i?void 0:i.map((function(e,n){return(0,O.jsxs)(C.Z,{className:"mr40",children:["填空项",n+1,":",null==e?void 0:e.answer_text]},n)}))]}),(0,O.jsxs)(S.Z,{children:[(0,O.jsx)("span",{className:"font14 mr10",style:{color:"#6A7283"},children:"【解析】"}),(0,O.jsx)(Y.Z,{className:ae.renderHtml,value:(null==r?void 0:r.analysis)||"暂无解析"})]})]})})]})}),ge=t(50414),xe=(b.Z.TextArea,function(e){var n=e.data;return(0,O.jsxs)("div",{className:"tc mt80 pb30",children:[(0,O.jsx)("img",{width:"486",src:ge.BV})," ",(0,O.jsx)("br",{}),-1===n.status&&(0,O.jsx)("div",{className:"c-grey-999 mt60",children:"您的IP不在考试允许的范围内!"}),-2===n.status&&(0,O.jsxs)("div",{className:" c-grey-999 mt60",children:["您已绑定当前考试IP地址:",(0,O.jsx)("span",{className:"c-red",children:n.ip}),"请使用该IP地址进入考试。"]}),(0,O.jsx)(A.ZP,{className:"mt40 pl20 pr20",type:"primary",children:(0,O.jsx)("a",{href:"/",children:"回到首页"})})]})}),_e=t(68339),we=t(89392),ye="comments___ZkLeS",be="greyText___ow9J6",je="commentText___Uklcs",ke="wrapper___XTdhL",Se="header___pq5DQ",Ce="updateTime___WYYjt",Ne="text___FmQY7",Be="date___DiXg4",Te=function(e){var n=e.list,t=e.hideScore,i=void 0!==t&&t;return(0,O.jsx)("div",{children:null==n?void 0:n.map((function(e){var n,t,r,o,s;return(0,O.jsxs)("div",{className:"mt20 ".concat(ke),children:[(0,O.jsxs)(S.Z,{align:"middle",className:Se,children:[(0,O.jsx)("img",{src:_e.Z.API_SERVER+"/images/"+(null===(t=e.user)||void 0===t?void 0:t.image_url)}),(0,O.jsx)("span",{className:"ml10 font16",children:null===(r=e.user)||void 0===r?void 0:r.name}),(0,O.jsxs)(C.Z,{className:Ce,children:[(0,O.jsx)("span",{className:Ne,children:"评阅时间"}),(0,O.jsx)("span",{className:Be,children:G()(null===(o=e.comments)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.updated_at).format("YYYY-MM-DD HH:mm")})]})]}),(0,O.jsx)("div",{className:ye,children:null==e||null===(s=e.comments)||void 0===s?void 0:s.map((function(n,t){var r;return(0,O.jsxs)("div",{children:[(0,O.jsxs)(S.Z,{align:"middle",justify:"space-between",children:[!!n.shixun_chanllge_position&&(0,O.jsxs)("div",{style:{flexShrink:0,marginRight:10},children:["第",n.shixun_chanllge_position,"关"]}),!i&&(0,O.jsxs)("div",{style:{flex:1},children:["原始得分",null==n?void 0:n.origin_score,"分,修正为",(0,O.jsx)("span",{className:"c-light-primary",children:null==n?void 0:n.score}),"分"]})]}),!!n.comment&&(0,O.jsxs)("div",{children:[" ",(0,O.jsx)("span",{className:"".concat(be," mr10"),children:"评语"}),(0,O.jsx)("span",{className:je,children:n.comment})]})]},(null==e||null===(r=e.user)||void 0===r?void 0:r.user_id)+"-"+t)}))})]},null==e||null===(n=e.user)||void 0===n?void 0:n.user_id)}))})},Ee=t(16279),Ae=t(12911),Pe=t.n(Ae),Ze=t(4751),Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},Le=t(68475),qe=function(e,n){return h.createElement(Le.Z,(0,Ze.Z)({},e,{ref:n,icon:Ie}))};var Me=h.forwardRef(qe),Re=t(22415),Oe=t(86574),De=t(55357),Fe="codeInput___xSFAu",Ge=t(92310),ze=t.n(Ge),He=function(e){var n=e.className,t=e.style,i=e.onOk,o=(0,h.useState)(["","","","","",""]),s=p()(o,2),a=s[0],l=s[1],c=(0,h.useState)(0),u=p()(c,2),d=u[0],f=u[1],m=(0,h.useRef)([]);(0,h.useEffect)((function(){var e=a.findIndex((function(e){return!e}));-1===e&&i(a),f(e)}),[a]),(0,h.useEffect)((function(){var e;null===(e=m.current[d])||void 0===e||e.focus()}),[d]);return(0,O.jsx)("div",{className:ze()(Fe,n),style:t,children:a.map((function(e,n){return(0,O.jsx)("input",{type:"text",disabled:d!==n,maxLength:1,value:""===e?"":"*",onChange:function(e){return function(e,n){var t=e.target.value;if(/^\d*$/.test(t)){var i=r()(a);i[n]=t||"",l(i)}}(e,n)},onKeyDown:function(e){return function(e,n){if("Backspace"===e.key&&n>0){e.preventDefault();var t=r()(a);t[n-1]="",l(t)}}(e,n)},ref:function(e){m.current[n]=e}},n)}))})},We=t(95135),Ue=t(5610),Ve=["globalSetting","loading","user","exercise","dispatch"],Ke=_.Z.Countdown,Ye=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Je={0:"c-red-ee4",1:"c-green"},Xe=(0,v.connect)((function(e){var n=e.loading,t=e.user,i=e.exercise;return{globalSetting:e.globalSetting,user:t,exercise:i,loading:n.effects}}))((function(e){e.globalSetting,e.loading;var n,t,i,r,o,a,c,d,f,g,_,F,J,X,$,ne,te,ie,re,oe,se,ae,ce,de,pe,me,he,ge,ye,be,je,ke,Se,Ce,Ne,Be,Ae,Ze,Ie,Le,qe,Fe,Ge,ze,Xe,Qe=e.user,$e=e.exercise,en=e.dispatch,nn=(m()(e,Ve),(0,v.useLocation)()),tn=(0,v.useSearchParams)(),rn=p()(tn,1)[0],on=(0,v.useParams)(),sn=(0,h.useState)({}),an=p()(sn,2),ln=an[0],cn=an[1],un=(0,h.useState)({}),dn=p()(un,2),pn=dn[0],fn=dn[1],mn=(0,h.useState)({}),hn=p()(mn,2),vn=hn[0],gn=hn[1],xn=(0,h.useState)(!1),_n=p()(xn,2),wn=_n[0],yn=_n[1],bn=(0,h.useState)(!0),jn=p()(bn,2),kn=jn[0],Sn=jn[1],Cn=(0,h.useState)(!1),Nn=p()(Cn,2),Bn=Nn[0],Tn=Nn[1],En=(0,h.useState)(!1),An=p()(En,2),Pn=An[0],Zn=An[1],In=(0,h.useState)(!1),Ln=p()(In,2),qn=Ln[0],Mn=Ln[1],Rn=(0,h.useState)(!1),On=p()(Rn,2),Dn=On[0],Fn=On[1],Gn=(0,h.useState)(),zn=p()(Gn,2),Hn=zn[0],Wn=zn[1],Un=(0,h.useState)(""),Vn=p()(Un,2),Kn=Vn[0],Yn=Vn[1],Jn=(0,h.useState)("none"),Xn=p()(Jn,2),Qn=Xn[0],$n=Xn[1],et=(0,h.useState)(""),nt=p()(et,2),tt=nt[0],it=nt[1],rt=(0,h.useState)({status:0}),ot=p()(rt,2),st=ot[0],at=ot[1],lt=(0,h.useState)(!1),ct=p()(lt,2),ut=ct[0],dt=ct[1],pt=(0,h.useState)("kepukehuan.educoder.net"===window.document.domain),ft=p()(pt,2),mt=ft[0],ht=(ft[1],(0,h.useState)(!0)),vt=p()(ht,2),gt=vt[0],xt=vt[1],_t=(0,h.useState)(!1),wt=p()(_t,2),yt=wt[0],bt=wt[1],jt=(0,h.useState)(null),kt=p()(jt,2),St=kt[0],Ct=kt[1],Nt=(0,h.useState)(!1),Bt=p()(Nt,2),Tt=Bt[0],Et=Bt[1],At=(0,h.useState)(0),Pt=p()(At,2),Zt=Pt[0],It=Pt[1],Lt=(0,h.useRef)(),qt=(0,h.useRef)(),Mt=(0,h.useRef)(!1),Rt=(0,h.useRef)(),Ot=(0,h.useRef)(),Dt=(0,h.useRef)(),Ft=(0,h.useRef)(),Gt=w.Z.useForm(),zt=p()(Gt,1)[0],Ht=(0,h.useMemo)((function(){return new WebSocket("ws://localhost:8082")}),[]),Wt=(0,h.useState)(0),Ut=p()(Wt,2),Vt=Ut[0],Kt=Ut[1],Yt=(0,h.useState)(0),Jt=p()(Yt,2),Xt=Jt[0],Qt=Jt[1],$t=(0,h.useState)(!1),ei=p()($t,2),ni=ei[0],ti=ei[1],ii=(0,h.useState)(!1),ri=p()(ii,2),oi=ri[0],si=ri[1],ai=(0,h.useState)(!1),li=p()(ai,2),ci=li[0],ui=li[1],di=["/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/detail"),"/classrooms/".concat(on.coursesId,"/exercise"),"/classrooms/".concat(on.coursesId,"/exercise/"),"/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/users/").concat(null===(n=Qe.userInfo)||void 0===n?void 0:n.login,"/check"),"/classrooms/".concat(on.coursesId,"/exercisenotice/").concat(on.categoryId,"/users/").concat(null===(t=Qe.userInfo)||void 0===t?void 0:t.login),"/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/users/").concat(null===(i=Qe.userInfo)||void 0===i?void 0:i.login)],pi=(0,h.useState)(!1),fi=p()(pi,2),mi=fi[0],hi=fi[1],vi=(0,h.useState)({left:0,top:0,bottom:0,right:0}),gi=p()(vi,2),xi=gi[0],_i=gi[1],wi=(0,h.useRef)(null),yi=(0,h.useState)(!0),bi=p()(yi,2),ji=bi[0],ki=bi[1],Si=(0,h.useRef)(),Ci=(0,h.useState)(!1),Ni=p()(Ci,2),Bi=Ni[0],Ti=Ni[1];(0,De.y)((0,W.dE)());var Ei=(0,We._)(ln);(0,h.useEffect)((function(){return document.body.setAttribute("data-custom","auto"),function(){document.body.removeAttribute("data-custom")}}),[]),(0,h.useEffect)((function(){var e,n;if(document.body.scrollIntoView(),"游客"!==(null===(e=Qe.userInfo)||void 0===e?void 0:e.real_name))return null!==(n=Qe.userInfo)&&void 0!==n&&n.user_id&&((0,W.GJ)()?Di():Qe.userInfo.login&&Ii()),window.addEventListener("message",Pi),function(){window.removeEventListener("message",Pi),nn.pathname.indexOf("/detail")>-1&&(0,U.BU)()};window.location.href="/classrooms/".concat(on.coursesId,"/exercise")}),[on.categoryId,Qe.userInfo.login]),(0,h.useEffect)((function(){return window.addEventListener("beforeunload",Ai),function(){Ei(),window.removeEventListener("beforeunload",Ai)}}),[]),(0,h.useEffect)((function(){return en({type:"globalSetting/headerFooterToggle",payload:!1}),function(){en({type:"globalSetting/headerFooterToggle",payload:!0})}}),[]),(0,h.useEffect)((function(){var e,n;null!=ln&&null!==(e=ln.question_status)&&void 0!==e&&e.every((function(e){return!!e.ques_status&&ut&&(null==pn?void 0:pn.used_screen_num)<(null==pn?void 0:pn.screen_num)}))&&setTimeout((function(){var e;null===(e=qt.current)||void 0===e||e.handlePhoto()}),1300),Ct(null==ln||null===(n=ln.exercise_question_types)||void 0===n||null===(n=n[Vt])||void 0===n||null===(n=n.items)||void 0===n?void 0:n[Xt])}),[ln]);var Ai=function(e){var n;null!=pn&&pn.is_commit||!(0,W.dE)()||(0,M.RG)(" ",!0),localStorage.setItem("Refresh","1"),null!==(n=$e.exerciseUserInfo)&&void 0!==n&&n.screen_open&&window.navigator.sendBeacon("".concat(_e.Z.API_SERVER,"/api/exercises/").concat(on.categoryId,"/commit_screen_at.json"),{})},Pi=function(e){"backExercise"===e.data&&((0,M.RG)(" ",!0),Zi())},Zi=function(){$n("none"),Yn(""),Di()},Ii=function(){var e=u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:qi();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Li=function(){var e=u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:xt(!1),y.Z.info({title:"开考密码",width:500,centered:!0,closable:!1,keyboard:!1,maskClosable:!1,maskStyle:{background:"#000"},okText:"进入考试",onOk:function(){return new Promise(function(){var e=u()(l()().mark((function e(n,t){var i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,zt.validateFields();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),t();case 8:return e.t1=V.pL,e.t2=s(),e.t3={exercise_user_id:null==pn?void 0:pn.exercise_user_id,categoryId:on.categoryId},e.next=13,zt.validateFields();case 13:return e.t4=e.sent,e.t5=(0,e.t2)(e.t3,e.t4),e.next=17,(0,e.t1)(e.t5);case 17:0===(null==(i=e.sent)?void 0:i.status)?(xt(!0),Mi(),n(i)):(zt.setFields([{name:"start_password",errors:[null==i?void 0:i.message]}]),t());case 19:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(n,t){return e.apply(this,arguments)}}())},content:(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("p",{className:"",children:"请输入监考老师宣布本场考试的开考密码后进入考试"}),(0,O.jsx)(w.Z,{form:zt,autoComplete:"off",children:(0,O.jsx)(w.Z.Item,{name:"start_password",label:"开考密码",rules:[{required:!0,message:"请输入开考密码"}],children:(0,O.jsx)(b.Z.Password,{autoComplete:"off"})})})]})});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),qi=function(){var e=u()(l()().mark((function e(){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,en({type:"exercise/getExerciseUserInfo",payload:s()({},on)});case 2:n=e.sent,Ft.current=s()(s()({},n.data),{},{status:null==n?void 0:n.status}),fn(s()(s()({},n.data),{},{status:null==n?void 0:n.status}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,h.useEffect)((function(){if(null!=pn&&pn.exercise_user_id){if(null!=pn&&pn.is_commit||(0,M.RG)(" ",!0),null!=pn&&pn.is_commit||!("inner"===(null==pn?void 0:pn.ip_limit)||null!=pn&&pn.ip_bind_type)||(Dt.current="&ip_limit=".concat(null==pn?void 0:pn.ip_limit,"&ip_bind=").concat(null==pn?void 0:pn.ip_bind,"&ip_bind_type=").concat(null==pn?void 0:pn.ip_bind_type)),null!=pn&&pn.is_commit){if(!pn.answered_open)return void y.Z.info({width:500,centered:!0,icon:null,title:"提示",content:"老师已设置本试卷在交卷后不可查看",onOk:function(){window.location.href="/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/detail")}})}else{if((0,M.RG)(" ",!0),null==pn||!pn.can_start)return void(window.location.href="/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/users/").concat(on.login,"/check"));if(null!=pn&&pn.is_locked&&pn.ip_error)return void en({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:s()(s()({},pn),{},{id:on.categoryId})}});if((null==pn||!pn.is_locked)&&pn.ip_error,""===document.referrer||2===performance.navigation.type||!di.includes(new URL(document.referrer).pathname))return sessionStorage.setItem("illegalEntry","illegalEntry"),void v.history.push("/classrooms/".concat(on.coursesId,"/exercise/"));if(null!=pn&&pn.start_locked&&(null==pn||!pn.user_is_enter))return void Li();if(null!=pn&&pn.is_locked&&1===performance.navigation.type&&!sessionStorage.getItem("studentunlock"))return void en({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:s()(s()({},pn),{},{id:on.categoryId})}});if((0,R.ZP)("/api/exercises/".concat(null==on?void 0:on.categoryId,"/close_pop.json"),{method:"post"}),null!=pn&&pn.is_locked&&0===performance.navigation.type&&null!=pn&&pn.user_is_enter&&(null==pn||!pn.is_commit)&&null!=pn&&pn.show_pop)return void en({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:s()(s()({},pn),{},{id:on.categoryId})}})}Mi()}return function(){null!=pn&&pn.is_commit||!(0,W.dE)()||(0,M.RG)(" ",!0)}}),[pn]);var Mi=function(){var e=u()(l()().mark((function e(){var n,t,i,r,o,s,a,c,u,d,p,f,m,h,v,g,x;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(sessionStorage.setItem("studentunlock","studentunlock"),!("no"!==(null==(a={data:pn,status:pn.status})||null===(n=a.data)||void 0===n?void 0:n.ip_limit)||null!=a&&null!==(t=a.data)&&void 0!==t&&t.ip_bind_type)){e.next=6;break}return e.next=5,(0,H.y)({ip_limit:null==a||null===(i=a.data)||void 0===i?void 0:i.ip_limit,ip_bind:null==a||null===(r=a.data)||void 0===r?void 0:r.ip_bind_type});case 5:Rt.current=e.sent;case 6:if(!("no"!==(null==a||null===(o=a.data)||void 0===o?void 0:o.ip_limit)||null!=a&&null!==(s=a.data)&&void 0!==s&&s.ip_bind)){e.next=14;break}if(!("inner"===(null==a||null===(c=a.data)||void 0===c?void 0:c.ip_limit)||null!=a&&null!==(u=a.data)&&void 0!==u&&u.ip_bind_type)){e.next=14;break}return e.next=10,(0,M.oi)({exerciseId:on.categoryId,ip:Rt.current,errmsgHide:!0,ip_limit:(null==a||null===(d=a.data)||void 0===d?void 0:d.ip_limit)||"no",ip_bind:null==a||null===(p=a.data)||void 0===p?void 0:p.ip_bind,ip_bind_type:null==a||null===(f=a.data)||void 0===f?void 0:f.ip_bind_type});case 10:if(0===(null==(m=e.sent)?void 0:m.status)){e.next=14;break}return at(m),e.abrupt("return");case 14:if(0!=(null==a?void 0:a.status)){e.next=26;break}if(!((null==a||null===(h=a.data)||void 0===h?void 0:h.used_screen_num)>(null==a||null===(v=a.data)||void 0===v?void 0:v.screen_num)&&null!=a&&null!==(g=a.data)&&void 0!==g&&g.screen_open)){e.next=19;break}return ui(!0),er(),e.abrupt("return",!1);case 19:if(Tn(null==a?void 0:a.data.check_camera),null!=a&&a.data.check_camera){e.next=26;break}if(null==a||!a.data.screen_shot_open){e.next=24;break}return Mn(null==pn?void 0:pn.screen_shot_open),e.abrupt("return");case 24:Zn(null==a||null===(x=a.data)||void 0===x?void 0:x.screen_open),Di();case 26:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ri=function(){var e=u()(l()().mark((function e(){var n,t=arguments;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.length>0&&void 0!==t[0]?t[0]:St,rn.get("check")){e.next=4;break}return e.next=4,(0,R.ZP)("/api/exercise_questions/".concat(null==n?void 0:n.question_id,"/exercise_answers/save_hack_evaluate.json"),{});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Oi=function(){var e=u()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(1!==(null==n?void 0:n.type)){e.next=3;break}return y.Z.info({centered:!0,width:470,okText:"确定",cancelText:"取消",title:"提示",icon:null,keyboard:!1,onOk:function(){v.history.replace("/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/detail"))},content:(0,O.jsx)("div",{children:(null==n?void 0:n.message)||""})}),e.abrupt("return",Promise.reject());case 3:if(2!==(null==n?void 0:n.type)){e.next=7;break}return t=function(){v.history.replace("/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/centralizeReview/").concat(null==n?void 0:n.login))},y.Z.confirm({centered:!0,width:470,okText:"确定",cancelText:"取消",title:"提示",icon:null,keyboard:!1,onOk:t,onCancel:function(){v.history.replace("/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/detail"))},content:(0,O.jsxs)("div",{children:[(0,O.jsxs)("div",{children:["您已成为指定阅卷教师,是否现在前往",(0,O.jsx)("span",{onClick:t,className:"ml5 mr5 c-light-primary current",children:"集中阅卷"}),"继续评阅?"]}),(0,O.jsx)("div",{className:"c-grey-999",children:"(阅卷结束后恢复学生个人评阅功能,并展示学生成绩)"})]})}),e.abrupt("return",Promise.reject());case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Di=function(){var e=u()(l()().mark((function e(){var n,t,i,r,o,a,c,u,d,p,f,m,h,v,g,x,_,w,y,b,k,S,C,N,B,T,E,A,P,Z,I,L;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(document.body.scrollIntoView(),yn(!0),i=null===(n=Qe.userInfo)||void 0===n?void 0:n.user_id,!(0,W.GJ)()){e.next=11;break}return e.next=6,(0,V.BJ)({exerciseId:on.categoryId,login:on.login}).catch((function(){return yn(!1)}));case 6:t=e.sent,(null===(r=t)||void 0===r?void 0:r.exercise)&&(t.exercise.user_exercise_status=1),i=null===(o=t)||void 0===o||null===(o=o.exercise_answer_user)||void 0===o?void 0:o.user_id,e.next=44;break;case 11:if(!rn.get("check")){e.next=18;break}return e.next=14,(0,V.BJ)(s()(s()({},on),{},{exerciseId:on.categoryId,login:on.login})).catch((function(){return yn(!1)}));case 14:t=e.sent,i=null===(m=t)||void 0===m||null===(m=m.exercise)||void 0===m?void 0:m.user_id,e.next=38;break;case 18:if(!("no"!==(null===(h=Ft.current)||void 0===h?void 0:h.ip_limit)||null!==(v=Ft.current)&&void 0!==v&&v.ip_bind_type)){e.next=22;break}return e.next=21,(0,H.y)({ip_limit:null===(g=Ft.current)||void 0===g?void 0:g.ip_limit,ip_bind:null===(x=Ft.current)||void 0===x?void 0:x.ip_bind_type});case 21:Rt.current=e.sent;case 22:return e.next=24,(0,V.CD)(s()(s()({},on),{},{ip:Rt.current})).catch((function(){return yn(!1)}));case 24:if(-1!==(t=e.sent).status){e.next=28;break}return Gi(),e.abrupt("return");case 28:if(null===(_=t)||void 0===_||null===(_=_.exercise)||void 0===_||!_.only_on_client||(0,M.WX)()){e.next=32;break}return j.ZP.warning("请用客户端作答"),Gi(),e.abrupt("return");case 32:if(-5!==(null===(w=t)||void 0===w?void 0:w.status)){e.next=35;break}return en({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:s()(s()({},Ft.current),{},{id:on.categoryId,errorMessage:null===(S=t)||void 0===S?void 0:S.message})}}),e.abrupt("return");case 35:(null===(y=t)||void 0===y?void 0:y.exercise)&&(t.exercise.user_exercise_status=0),(null===(b=t)||void 0===b?void 0:b.exercise)&&(t.exercise.exercise_status=2),null===(k=t)||void 0===k||null===(k=k.exercise_question_types)||void 0===k||k.map((function(e){var n;(null==e?void 0:e.question_type)<3&&(null==e||null===(n=e.items)||void 0===n||n.map((function(e){e.user_answer=e.question_choices.filter((function(e){return e.user_answer_boolean})).map((function(e){return e.choice_id}))})))}));case 38:if(null!==(a=t)&&void 0!==a&&null!==(a=a.exercise)&&void 0!==a&&a.can_start||null===(c=t)||void 0===c||!c.exercise){e.next=41;break}return window.location.href="/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/users/").concat(on.login,"/check"),e.abrupt("return");case 41:0!==(null===(u=t.exercise)||void 0===u?void 0:u.commit_status)||Ot.current||(Ot.current=!0,(0,M.G5)(Ht,null===(C=t)||void 0===C?void 0:C.exercise)),null!==(d=t)&&void 0!==d&&null!==(d=d.exercise)&&void 0!==d&&d.left_time&&setTimeout((function(){it(z.red)}),1e3*((null===(N=t)||void 0===N||null===(N=N.exercise)||void 0===N?void 0:N.left_time)-300>0?(null===(B=t)||void 0===B||null===(B=B.exercise)||void 0===B?void 0:B.left_time)-300:0)),null===(p=t)||void 0===p||null===(p=p.exercise)||void 0===p||p.take_photo,null===(f=t)||void 0===f||null===(f=f.exercise)||void 0===f||f.photo_count;case 44:return yn(!1),e.next=47,Oi(t);case 47:return t&&((null!==(T=t)&&void 0!==T&&null!==(T=T.exercise)&&void 0!==T&&T.question_random||null!==(E=t)&&void 0!==E&&null!==(E=E.exercise)&&void 0!==E&&E.choice_random)&&(L=1,t.exercise.question_random=null===(I=t)||void 0===I||null===(I=I.exercise_question_types)||void 0===I?void 0:I.map((function(e){var n,r;return null!==(n=t)&&void 0!==n&&null!==(n=n.exercise)&&void 0!==n&&n.choice_random&&(0!==e.question_type&&1!==e.question_type||e.items.map((function(e){return e.question_choices=(0,M.M2)(e.question_choices,i),e})),7===e.question_type&&e.items.forEach((function(e){e.sub_exercise_questions.forEach((function(e){e.question_choices&&(e.question_choices=(0,M.M2)(e.question_choices,i))}))}))),null!==(r=t)&&void 0!==r&&null!==(r=r.exercise)&&void 0!==r&&r.question_random&&(e.items=(0,M.M2)(e.items,i)),e.items.map((function(e){return e.question_num=L,L++,e})),e}))),t.exercise_types=(null===(A=t)||void 0===A?void 0:A.exercise_types)||(null===(P=t)||void 0===P||null===(P=P.exercise_scores)||void 0===P?void 0:P.exercise_types),t.question_status=t.question_status||Fi((null===(Z=t)||void 0===Z?void 0:Z.exercise_question_types)||[]),cn(t)),e.abrupt("return",t);case 49:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Fi=function(e){var n=[];return e.forEach((function(e){n=n.concat(e.items)})),n=n.map((function(e){return{ques_status:null==e?void 0:e.ques_status,score_status:null==e?void 0:e.score_status,question_num:null==e?void 0:e.question_num,ques_id:null==e?void 0:e.question_id}}))};(0,h.useEffect)((function(){var e,n,t;0===(null===(e=ln.exercise)||void 0===e?void 0:e.left_time)&&er(),(null===(n=ln.exercise)||void 0===n?void 0:n.left_time)&&Wn(Date.now()+1e3*(null==ln||null===(t=ln.exercise)||void 0===t?void 0:t.left_time))}),[null===(r=ln.exercise)||void 0===r?void 0:r.left_time]);var Gi=function(){(0,M.G5)(Ht),(0,M.WX)()?window.location.href=(0,M.Ll)()?"/":"/classrooms/examList":window.location.href=(0,M.Ll)()?"/":"/classrooms/".concat(on.coursesId,"/exercise/").concat(on.categoryId,"/detail")},zi=function(){var e=u()(l()().mark((function e(){var n,t,i=arguments;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>0&&void 0!==i[0]&&i[0],e.next=3,(0,V.PT)(s()(s()({},on),{},{refresh:n}));case 3:if(null==(t=e.sent)||!t.has_time){e.next=10;break}return Wn(Date.now()+1e3*(null==t?void 0:t.left_time)),cn((function(e){return s()(s()({},e),{},{exercise:s()(s()({},e.exercise),{},{left_time:null==t?void 0:t.left_time})})})),e.abrupt("return",!0);case 10:return Hi(),e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Hi=function(){var e=u()(l()().mark((function e(){var n,t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Mt.current){e.next=2;break}return e.abrupt("return");case 2:return Mt.current=!0,e.next=5,(0,V.VL)({categoryId:on.categoryId,commit_method:2});case 5:n=e.sent,Zn(!1),Mn(!1),0===(null==n?void 0:n.status)&&(y.Z.info({width:530,title:"提示",centered:!0,okText:"确定",content:(0,O.jsxs)("div",{children:["答题结束了,系统已自动提交试卷",(0,O.jsx)("br",{}),"不能再修改答题"]}),onOk:function(){var e=u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Gi();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),j.ZP.info(null==n?void 0:n.message)),-3===(null==n?void 0:n.status)&&(Mt.current=!1,t=parseInt(null==n?void 0:n.message),ln.exercise.left_time=t,cn(s()({},ln)));case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Wi=function(){var e=u()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(n.is_jupyter||n.is_jupyter_lab?K.BK:K.Ir)({id:n.shixun_identifier});case 2:(null!=(t=e.sent)&&t.game_identifier||null!=t&&t.identifier)&&(n.is_jupyter_lab||n.is_jupyter?Yn("/tasks/".concat(t.identifier,"/jupyter?type=exercises&exercisesId=").concat(on.categoryId,"&coursesId=").concat(on.coursesId,"&login=").concat(on.login,"&questionId=").concat(n.question_id,"&isFullScreen=").concat((0,U.vp)()).concat(Dt.current||"","&ip_limit=").concat(null==pn?void 0:pn.ip_limit,"&ip_bind=").concat(null==pn?void 0:pn.ip_bind,"&ip_bind_type=").concat(null==pn?void 0:pn.ip_bind_type)):Yn("/tasks/".concat(t.game_identifier,"?type=exercises&exercisesId=").concat(on.categoryId,"&coursesId=").concat(on.coursesId,"&login=").concat(on.login,"&questionId=").concat(n.question_id,"&isFullScreen=").concat((0,U.vp)()).concat(Dt.current||"","&ip_limit=").concat(null==pn?void 0:pn.ip_limit,"&ip_bind=").concat(null==pn?void 0:pn.ip_bind,"&ip_bind_type=").concat(null==pn?void 0:pn.ip_bind_type)),$n("block")),-3===(null==t?void 0:t.status)?(0,M.eF)():2===(null==t?void 0:t.status)?Ui(null==t?void 0:t.message,n.question_id,n.is_jupyter_lab,n.is_jupyter):3===(null==t?void 0:t.status)&&Vi(null==t?void 0:t.message);case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ui=function e(n,t,i,r){var o,s;n=null!==(o=n)&&void 0!==o&&o.includes(".json")?n:"".concat(n,".json"),y.Z.confirm({centered:!0,title:"提示",icon:null,okText:"确定",cancelText:"取消",content:(0,O.jsx)("div",{children:"实训已经更新了,正在为您重置!"}),onOk:(s=u()(l()().mark((function o(){var s,a;return l()().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,V.$Q)({url:n});case 2:if(s=o.sent){o.next=5;break}return o.abrupt("return");case 5:return j.ZP.success("重置成功,正在进入实践项目!"),o.next=8,(0,K.Ir)({id:s.shixun_identifier});case 8:if(null==(a=o.sent)||!a.game_identifier){o.next=12;break}return Wi({shixun_identifier:null==a?void 0:a.game_identifier,question_id:t,is_jupyter_lab:i,is_jupyter:r}),o.abrupt("return");case 12:2===(null==a?void 0:a.status)?e(null==a?void 0:a.message,t,i,r):3===(null==a?void 0:a.status)&&Vi(null==a?void 0:a.message);case 13:case"end":return o.stop()}}),o)}))),function(){return s.apply(this,arguments)})})},Vi=function(e){y.Z.confirm({centered:!0,title:"提示",icon:null,okText:"确定",cancelText:"取消",content:(0,O.jsxs)("div",{children:["目前该实践项目尚在内测中,将于",e,"之后开放,谢谢!"]})})},Ki=function(){var e=u()(l()().mark((function e(n){var t,i,r;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.o3)({exercise_user_id:null===(t=$e.exerciseUserInfo)||void 0===t?void 0:t.exercise_user_id,shixun_id:n.shixun_id});case 2:null!=(i=e.sent)&&i.redo?r=y.Z.confirm({width:530,title:"提示",icon:null,centered:!0,okText:"确定",cancelText:"再想想",content:(0,O.jsx)("div",{children:"您之前已经挑战过该实训,考试过程中需要重新挑战"}),onCancel:function(){r.destroy()},onOk:function(){var e=u()(l()().mark((function e(){var t,r,o,a;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.$Q)({id:null==i?void 0:i.myshixun_identifier,url:null==i?void 0:i.url});case 2:(t=e.sent)&&(Ei(),r=(0,we.cloneDeep)(null==ln?void 0:ln.exercise_question_types),o=null==r?void 0:r.findIndex((function(e){return 5===e.question_type})),r[o].items.find((function(e){return e.question_id===n.question_id})).redo=!1,r[o].items.find((function(e){return e.question_id===n.question_id})).shixun_identifier=t.shixun_identifier,ln.exercise_question_types=r,cn(ln),a=s()(s()({},n),{},{shixun_identifier:t.shixun_identifier}),Wi(a));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}):(Ei(),Wi(n));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Yi=function(){var e=u()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.hack_identifier){e.next=5;break}return e.next=3,(0,V.nF)({id:n.hack_identifier});case 3:0===(null==(t=e.sent)?void 0:t.status)&&(Ei(),Yn("/myproblems/".concat(t.identifier,"?type=exercises&exercisesId=").concat(on.categoryId,"&coursesId=").concat(on.coursesId,"&login=").concat(on.login,"&questionId=").concat(n.question_id).concat(Dt.current||"")),$n("block"));case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ji=function(){var e=u()(l()().mark((function e(n,t,i,r,o,a,c){var u,d,p,f,m;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(bt(!1),c||yn(!0),p={questionId:n,exercise_choice_id:t,answer_text:i},"inner"!==(null==pn?void 0:pn.ip_limit)&&!pn.ip_bind_type){e.next=7;break}return e.next=6,(0,H.y)({ip_limit:null==pn?void 0:pn.ip_limit,ip_bind:null==pn?void 0:pn.ip_bind_type});case 6:d=e.sent;case 7:if(o&&(p.kp_content=o),o&&(p.kp_clazz=a),n){e.next=12;break}return console.error("handleSave no questionId params"),e.abrupt("return");case 12:return p.ip=d,e.next=15,(0,V.oX)(p);case 15:return null!=(f=e.sent)&&null!==(u=f.alert)&&void 0!==u&&u.length&&(null==f||null===(m=f.alert)||void 0===m||m.map((function(e){y.Z.warn({title:"提示",autoFocusButton:null,content:e})}))),0===(null==f?void 0:f.status)?(r&&r(),Er()):-1===(null==f?void 0:f.status)?setTimeout((function(){Gi()}),1e3):-2===(null==f?void 0:f.status)?at(f):-3===(null==f?void 0:f.status)?(f.status=-1,at(f)):-4===(null==f?void 0:f.status)?Er():-5===(null==f?void 0:f.status)?en({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:s()(s()({},pn),{},{id:on.categoryId,errorMessage:null==f?void 0:f.message})}}):j.ZP.warning(f.message||"试卷已截止,已自动交卷"),yn(!1),e.abrupt("return",f);case 20:case"end":return e.stop()}}),e)})));return function(n,t,i,r,o,s,a){return e.apply(this,arguments)}}(),Xi=function(){var e=u()(l()().mark((function e(n){var t,i,r,o,a,c,d,p,f;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.PT)(s()({},on));case 2:if(-4!==(null==(t=e.sent)?void 0:t.status)){e.next=6;break}return y.Z.info({width:500,centered:!0,icon:null,title:"提示",content:null==t?void 0:t.message,okText:"我知道了"}),e.abrupt("return");case 6:if(i=null!=t&&t.left_time?Date.now()+1e3*(null==t?void 0:t.left_time):null,8!=(null==St?void 0:St.question_type)||yt){e.next=11;break}return e.next=10,Ri();case 10:bt(!0);case 11:return e.next=13,(0,V.Vj)({id:on.categoryId});case 13:if(r=e.sent){e.next=16;break}return e.abrupt("return");case 16:y.Z.destroyAll(),console.log("res===",r,St,yt),0!==r.question_undo||0!==r.oj_undo?(r.question_undo>0&&(a=(0,O.jsxs)("span",{children:["有",(0,O.jsx)("span",{className:z.orangeNum,children:r.question_undo}),"题未完成"]}),(r.oj_undo>0||r.shixun_undo>0)&&(p=[{type:(null==ln||null===(c=ln.exercise_question_types)||void 0===c||null===(c=c.find((function(e){return 6==e.question_type})))||void 0===c?void 0:c.name)||"编程题",num:r.oj_undo},{type:(null==ln||null===(d=ln.exercise_question_types)||void 0===d||null===(d=d.find((function(e){return 5==e.question_type})))||void 0===d?void 0:d.name)||"实训题",num:r.shixun_undo}],f=p.filter((function(e){return e.num>0})),o=(0,O.jsxs)("div",{children:[a,"(其中有",f.map((function(e,n){return(0,O.jsxs)("span",{children:[(0,O.jsx)("span",{className:z.orangeNum,children:null==e?void 0:e.num}),"个",null==e?void 0:e.type,n!==(null==f?void 0:f.length)-1?"、":""]})})),")"]}))),y.Z.confirm({width:530,title:"提示",icon:null,closable:!0,centered:!0,okText:n?"知道了":"确认交卷",cancelText:"取消",okButtonProps:{loading:ci},content:(0,O.jsxs)("div",{children:[o,n?"在".concat(G()(r.end_time).format("YYYY-MM-DD HH:mm"),"之前,允许修改答题"):i?"你本场考试剩余时间还有".concat((0,M.li)((i-(new Date).getTime())/1e3)," ,确认提前交卷吗?"):"提交后无法再修改答题,是否确认提交?"]}),onOk:function(){var e=u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Zn(!1),Mn(!1),n?null!=pn&&pn.screen_open?j.ZP.success("保存成功"):Gi():(ui(!0),er());case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()})):y.Z.confirm({width:530,title:"提示",icon:null,centered:!0,okText:n?"知道了":"确认交卷",cancelText:"取消",okButtonProps:{loading:ci},content:(0,O.jsx)("div",{children:n?"在".concat(G()(r.end_time).format("YYYY-MM-DD HH:mm"),"之前,允许修改答题"):i?"你本场考试剩余时间还有".concat((0,M.li)((i-(new Date).getTime())/1e3)," ,确认提前交卷吗?"):"提交后无法再修改答题,是否确认提交?"}),onOk:function(){var e=u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Zn(!1),Mn(!1),n?null!=pn&&pn.screen_open?j.ZP.success("保存成功"):Gi():(ui(!0),er());case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 19:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Qi=function(e){return(0,O.jsxs)("div",{children:[(0,O.jsx)(k.Z,{strokeColor:{from:"#3061D0",to:"#63E0FB"},status:"active",percent:e}),(0,O.jsx)("div",{className:"c-grey-c tc mt10 mb20",children:"正在判分中…"})]})},$i=function(){var e=0,n=y.Z.info({title:"交卷中",icon:null,className:"modal-footer-none",content:Qi(e)}),t=setInterval((function(){e<=100?(e+=2,n.update({content:Qi(e)})):(n.destroy(),clearInterval(t))}),50)},er=function(){var e=u()(l()().mark((function e(){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ci){e.next=2;break}return e.abrupt("return");case 2:if(!Mt.current){e.next=4;break}return e.abrupt("return");case 4:return Mt.current=!0,e.next=7,(0,V.VL)({categoryId:on.categoryId,commit_method:1});case 7:return n=e.sent,e.next=10,en({type:"exercise/setActionTabs",payload:s()({},{removeEventListenerExitScreen:!0})});case 10:ui(!1),0===(null==n?void 0:n.status)&&($i(),j.ZP.success(null==n?void 0:n.message),Tn(!1),setTimeout((function(){var e,t,i,r,o;y.Z.info({centered:!0,title:"交卷成功",className:"".concat(z.commitModal),width:520,icon:null,content:(0,O.jsxs)("div",{children:[(0,O.jsxs)(S.Z,{className:"mb20",gutter:20,children:[(0,O.jsxs)(C.Z,{span:12,className:z.commitItem,children:[(0,O.jsx)("span",{className:z.commitInfoLabel,children:"姓名"}),(0,O.jsx)("span",{className:z.commitInfoValue,title:null==ln||null===(e=ln.exercise)||void 0===e?void 0:e.user_name,children:(null==ln||null===(t=ln.exercise)||void 0===t?void 0:t.user_name)||"- -"})]}),(0,O.jsxs)(C.Z,{span:12,className:z.commitItem,children:[(0,O.jsx)("span",{className:z.commitInfoLabel,children:"作答时长"}),(0,O.jsx)("span",{className:z.commitInfoValue,children:null==n||null===(i=n.data)||void 0===i?void 0:i.user_exercise_time})]})]}),(0,O.jsxs)(S.Z,{gutter:20,children:[(0,O.jsxs)(C.Z,{span:12,className:z.commitItem,children:[(0,O.jsx)("span",{className:z.commitInfoLabel,children:"学号"}),(0,O.jsx)("span",{className:z.commitInfoValue,children:(null==ln||null===(r=ln.exercise)||void 0===r?void 0:r.student_id)||"- -"})]}),(0,O.jsxs)(C.Z,{span:12,className:z.commitItem,children:[(0,O.jsx)("span",{className:z.commitInfoLabel,children:"交卷时间"}),(0,O.jsx)("span",{className:z.commitInfoValue,children:null==n||null===(o=n.data)||void 0===o?void 0:o.commit_time})]})]})]}),okText:"确定",maskClosable:!1,keyboard:!1,onOk:function(){(0,U.BU)(),Gi()}})}),3e3));case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),nr=function(){var e=u()(l()().mark((function e(n,t,i,r,o){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ji(t,n,null,(function(){if(r.user_answer=[],r.user_answer.push(n),null!=o&&o.question_id){var e,i,a,l,c=null==o||null===(e=o.sub_exercise_questions)||void 0===e?void 0:e.filter((function(e){var n;return 0===(null===(n=e.user_answer)||void 0===n?void 0:n.length)})),u=null==o||null===(i=o.sub_exercise_questions)||void 0===i?void 0:i.filter((function(e){return 3==e.question_type})),d=u.length>0?u.every((function(e){var n;return(null==e?void 0:e.multi_count)==(null==e||null===(n=e.user_answer)||void 0===n?void 0:n.length)}))?1:u.some((function(e){var n;return(null==e?void 0:e.multi_count)>(null==e||null===(n=e.user_answer)||void 0===n?void 0:n.length)}))?2:0:1;ln.question_status.find((function(e){return e.ques_id===(null==o?void 0:o.question_id)})).ques_status=(null==c?void 0:c.length)===(null==o||null===(a=o.sub_exercise_questions)||void 0===a?void 0:a.length)?0:(null==c?void 0:c.length)>0&&(null==c?void 0:c.length)<(null==o||null===(l=o.sub_exercise_questions)||void 0===l?void 0:l.length)?2:d}else ln.question_status.find((function(e){return e.ques_id===t})).ques_status=n?1:0;cn(s()({},ln))}));case 1:case"end":return e.stop()}}),e)})));return function(n,t,i,r,o){return e.apply(this,arguments)}}(),tr=function(){var e=u()(l()().mark((function e(n,t,i,r,o,a){var c;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.replaceAll(" ","")){e.next=3;break}return Er(),e.abrupt("return",{status:-4,message:"答案不能为空"});case 3:return e.next=5,Ji(i,t,n,(function(){var e={choice_id:t,answer_text:n};if(o.user_answer.filter((function(e){return e.choice_id!=t}))?o.user_answer.splice(t-1,1,e):o.user_answer.push(e),null!=a&&a.question_id){var l,c,u,d,p=null==a||null===(l=a.sub_exercise_questions)||void 0===l?void 0:l.filter((function(e){var n;return 0===(null===(n=e.user_answer)||void 0===n?void 0:n.length)})),f=null==a||null===(c=a.sub_exercise_questions)||void 0===c?void 0:c.filter((function(e){return 3==e.question_type})),m=f.length>0?f.every((function(e){var n;return(null==e?void 0:e.multi_count)==(null==e||null===(n=e.user_answer)||void 0===n?void 0:n.length)}))?1:f.some((function(e){var n;return(null==e?void 0:e.multi_count)>(null==e||null===(n=e.user_answer)||void 0===n?void 0:n.length)}))?2:0:1;ln.question_status.find((function(e){return e.ques_id===(null==a?void 0:a.question_id)})).ques_status=(null==p?void 0:p.length)===(null==a||null===(u=a.sub_exercise_questions)||void 0===u?void 0:u.length)?0:(null==p?void 0:p.length)>0&&(null==p?void 0:p.length)<(null==a||null===(d=a.sub_exercise_questions)||void 0===d?void 0:d.length)?2:m}else ln.question_status.find((function(e){return e.ques_id===i})).ques_status=r.every((function(e){return!!e.answer_text}))?1:ln.question_status.find((function(e){return e.ques_id===i})).ques_status=r.some((function(e){return!!e.answer_text}))?2:0;cn(s()({},ln))}));case 5:return c=e.sent,e.abrupt("return",c);case 7:case"end":return e.stop()}}),e)})));return function(n,t,i,r,o,s){return e.apply(this,arguments)}}(),ir=function(){var e=u()(l()().mark((function e(n,t,i,r,o){var a;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ji(i,t,n,(function(){ln.question_status.find((function(e){return e.ques_id===i})).ques_status=r.every((function(e){return!!e.value}))?1:ln.question_status.find((function(e){return e.ques_id===i})).ques_status=r.some((function(e){return!!e.value}))?2:0;var e={choice_id:t,answer_text:n};o.user_answer.filter((function(e){return e.choice_id!=t}))?o.user_answer.splice(t-1,1,e):o.user_answer.push(e),o.repeat_answer||(o.israp=!0),cn(s()({},ln))}),void 0,void 0,!0);case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e)})));return function(n,t,i,r,o){return e.apply(this,arguments)}}(),rr=function(e,n,t){var i,r,o,s,a,l,c,u="",d=0===(null==e?void 0:e.question_type)||1===(null==e?void 0:e.question_type);d&&(null==e||null===(c=e.question_choices)||void 0===c||c.forEach((function(e,n){e.standard_boolean&&(u+=Ye[n])})));var p=1===(null==ln||null===(i=ln.exercise)||void 0===i?void 0:i.user_exercise_status)||!e.repeat_answer&&(null==e||null===(r=e.user_answer)||void 0===r?void 0:r.length)>0&&0!==e.ques_status;return(0,O.jsxs)("div",{children:[(0,O.jsx)("div",{className:z.baseMargin,children:(0,O.jsx)(N.ZP.Group,{disabled:p,defaultValue:null==e||null===(o=e.user_answer)||void 0===o?void 0:o[0],onChange:function(i){return nr(i.target.value,null==e?void 0:e.question_id,n,e,t)},className:e.user_score&&"edu-radio-".concat(e.user_score===e.question_score?"green":"red"),children:null==e||null===(s=e.question_choices)||void 0===s?void 0:s.map((function(n,t){var i=2==e.question_type?"":"".concat(Ye[t],".");return(0,O.jsx)("div",{className:z.answerWrap,children:(0,O.jsx)(N.ZP,{className:z.noWrap,value:null==n?void 0:n.choice_id,children:(0,O.jsxs)(S.Z,{wrap:!1,align:"middle",children:[(0,O.jsx)(C.Z,{children:(0,O.jsx)("span",{style:{color:"#333333"},className:"font16 mr3",children:i})}),(0,O.jsx)(C.Z,{children:(0,O.jsx)(Y.Z,{className:z.renderHtml,value:null==n?void 0:n.choice_text})})]})})},t)}))})}),((0,W.GJ)()||(0,W.dE)()&&(null==ln||null===(a=ln.exercise)||void 0===a?void 0:a.user_exercise_status)>0&&(null==ln||null===(l=ln.exercise)||void 0===l?void 0:l.open_score))&&(0,O.jsxs)(S.Z,{justify:"end",className:"mb20",align:"middle",children:[(0,O.jsx)("span",{className:"font14",style:{color:"#6A7283"},children:"得分"}),(0,O.jsxs)("span",{className:"font14 ml10",children:[(null==e?void 0:e.user_score)&&(0,O.jsxs)("span",{children:[(0,O.jsx)("span",{className:Je[Number(null==e?void 0:e.answer_status)]||"c-orange-ff9",children:null==e?void 0:e.user_score}),(0,O.jsx)("span",{style:{marginLeft:5,color:"#6A7283"},children:"分"})]}),!(null!=e&&e.user_score)&&(0,O.jsx)("span",{className:"c-red",children:"未评"})]})]}),(null==e?void 0:e.standard_answer_show)&&(0,O.jsx)("div",{className:z.analysisWrap,children:(0,O.jsxs)("div",{className:z.greyBg,children:[(0,O.jsxs)(S.Z,{className:"mb20",children:[(0,O.jsx)(C.Z,{className:"font14 mr10",style:{color:"#6A7283"},children:"【答案】"}),(0,O.jsx)(C.Z,{children:d?u:null==e?void 0:e.standard_answer_show})]}),(0,O.jsxs)(S.Z,{children:[(0,O.jsx)("span",{className:"font14 mr10",style:{color:"#6A7283"},children:"【解析】"}),(0,O.jsx)(Y.Z,{className:z.renderHtml,value:null==e?void 0:e.analysis})]})]})})]})},or=function(e,n,t){var i,r;1===(null==ln||null===(i=ln.exercise)||void 0===i?void 0:i.user_exercise_status)||!e.repeat_answer&&e.ques_status;return(0,O.jsx)("div",{children:null==e||null===(r=e.sub_exercise_questions)||void 0===r?void 0:r.map((function(n,i){var r;return null==n||null===(r=n.question_choices)||void 0===r||r.forEach((function(e,n){e.standard_boolean&&Ye[n]})),(0,O.jsxs)("div",{className:"".concat(z.baseMargin," ").concat(z.singleItem," mb20"),children:[(0,O.jsxs)("div",{style:{display:"flex",alignItems:"baseline",userSelect:"none",marginBottom:40},children:[(0,O.jsxs)("span",{style:{flexShrink:0,color:"#999999"},className:"font14",children:["(",null==n?void 0:n.question_score,"分)"]}),(0,O.jsx)("span",{style:{flexShrink:0,marginRight:6},className:"font16",children:t+1+"."+(i+1)}),(0,O.jsx)(Y.Z,{value:null==n?void 0:n.question_title})]}),(0==(null==n?void 0:n.question_type)||2==(null==n?void 0:n.question_type))&&rr(n,null==n?void 0:n.question_type,e),1==(null==n?void 0:n.question_type)&&fr(n,null==n?void 0:n.question_type,e),3==(null==n?void 0:n.question_type)&&mr(n,null==n?void 0:n.question_type,e),4==(null==n?void 0:n.question_type)&&hr(n,null==n?void 0:n.question_type,e)]},i)}))})};console.log("----",ln);var sr,ar,lr,cr,ur,dr,pr,fr=function(e,n,t){var i,r,o,a,l,c,u="",d=0===(null==e?void 0:e.question_type)||1===(null==e?void 0:e.question_type);d&&(null==e||null===(c=e.question_choices)||void 0===c||c.forEach((function(e,n){e.standard_boolean&&(u+=Ye[n])})));var p=1===(null==ln||null===(i=ln.exercise)||void 0===i?void 0:i.user_exercise_status)||!e.repeat_answer&&(null==e||null===(r=e.user_answer)||void 0===r?void 0:r.length)>0&&0!==e.ques_status;return(0,O.jsxs)("div",{children:[(0,O.jsx)("div",{className:z.baseMargin,children:(0,O.jsx)(B.Z.Group,{disabled:p,defaultValue:null==e?void 0:e.user_answer,style:{flexDirection:"column"},onChange:function(n){return function(e,n,t,i){null!=e&&e.length&&Ji(n,e,null,(function(){if(t.user_answer=e,null!=i&&i.question_id){var r,o,a,l,c=null==i||null===(r=i.sub_exercise_questions)||void 0===r?void 0:r.filter((function(e){var n;return 0===(null===(n=e.user_answer)||void 0===n?void 0:n.length)})),u=null==i||null===(o=i.sub_exercise_questions)||void 0===o?void 0:o.filter((function(e){return 3==e.question_type})),d=u.length>0?u.every((function(e){var n;return(null==e?void 0:e.multi_count)==(null==e||null===(n=e.user_answer)||void 0===n?void 0:n.length)}))?1:u.some((function(e){var n;return(null==e?void 0:e.multi_count)>(null==e||null===(n=e.user_answer)||void 0===n?void 0:n.length)}))?2:0:1;ln.question_status.find((function(e){return e.ques_id===(null==i?void 0:i.question_id)})).ques_status=(null==c?void 0:c.length)===(null==i||null===(a=i.sub_exercise_questions)||void 0===a?void 0:a.length)?0:(null==c?void 0:c.length)>0&&(null==c?void 0:c.length)<(null==i||null===(l=i.sub_exercise_questions)||void 0===l?void 0:l.length)?2:d}else ln.question_status.find((function(e){return e.ques_id===n})).ques_status=null!=e&&e.length?1:0;cn(s()({},ln))}))}(n,null==e?void 0:e.question_id,e,t)},className:e.user_score&&"edu-checkbox-".concat(e.user_score===e.question_score?"green":"red"),children:null==e||null===(o=e.question_choices)||void 0===o?void 0:o.map((function(e,n){var t="".concat(Ye[n],".");return(0,O.jsx)("div",{className:z.answerWrap,children:(0,O.jsx)(B.Z,{value:null==e?void 0:e.choice_id,children:(0,O.jsxs)(S.Z,{wrap:!1,align:"middle",children:[(0,O.jsx)(C.Z,{children:(0,O.jsx)("span",{style:{color:"#333333",whiteSpace:"nowrap"},className:"font16 mr3",children:t})}),(0,O.jsx)(C.Z,{children:(0,O.jsx)(Y.Z,{className:z.renderHtml,value:null==e?void 0:e.choice_text})})]})})})}))})}),((0,W.GJ)()||(0,W.dE)()&&(null==ln||null===(a=ln.exercise)||void 0===a?void 0:a.user_exercise_status)>0&&(null==ln||null===(l=ln.exercise)||void 0===l?void 0:l.open_score))&&(0,O.jsxs)(S.Z,{justify:"end",className:"mb20",align:"middle",children:[(0,O.jsx)("span",{className:"font14",style:{color:"#6A7283"},children:"得分"}),(0,O.jsxs)("span",{className:"font14 ml10",children:[(null==e?void 0:e.user_score)&&(0,O.jsxs)("span",{children:[(0,O.jsx)("span",{className:Je[Number(null==e?void 0:e.answer_status)]||"c-orange-ff9",children:null==e?void 0:e.user_score}),(0,O.jsx)("span",{style:{marginLeft:5,color:"#6A7283"},children:"分"})]}),!(null!=e&&e.user_score)&&(0,O.jsx)("span",{className:"c-red",children:"未评"})]})]}),(null==e?void 0:e.standard_answer_show)&&(0,O.jsx)("div",{className:z.analysisWrap,children:(0,O.jsxs)("div",{className:z.greyBg,children:[(0,O.jsxs)(S.Z,{className:"mb20",children:[(0,O.jsx)(C.Z,{className:"font14 mr10",style:{color:"#6A7283"},children:"【答案】"}),(0,O.jsx)(C.Z,{children:d?u:null==e?void 0:e.standard_answer_show})]}),(0,O.jsxs)(S.Z,{children:[(0,O.jsx)("span",{className:"font14 mr10",style:{color:"#6A7283"},children:"【解析】"}),(0,O.jsx)(Y.Z,{className:z.renderHtml,value:null==e?void 0:e.analysis})]})]})})]})},mr=function(e,n,t){return(0,O.jsx)(fe,{item:e,sign:br,answerData:ln,onBlur:function(){var n=u()(l()().mark((function n(i,r,o){return l()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,tr(i,r,null==e?void 0:e.question_id,o,e,t);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})));return function(e,t,i){return n.apply(this,arguments)}}()})},hr=function(e,n,t){return mt?(0,O.jsx)(ee,{item:e,answerData:ln,onBlur:function(n,t,i){return Ji(null==e?void 0:e.question_id,null,n,void 0,t,i)},isEducation:mt}):(0,O.jsx)(Q,{item:e,answerData:ln,onBlur:function(n,i){return function(e,n,t,i,r){e.replaceAll(" ","")?Ji(n,null,e,(function(){if(t.user_answer=[],t.user_answer.push(e),null!=r&&r.question_id){var i,o,a,l,c=null==r||null===(i=r.sub_exercise_questions)||void 0===i?void 0:i.filter((function(e){var n;return 0===(null===(n=e.user_answer)||void 0===n?void 0:n.length)})),u=null==r||null===(o=r.sub_exercise_questions)||void 0===o?void 0:o.filter((function(e){return 3==e.question_type})),d=u.length>0?u.every((function(e){var n;return(null==e?void 0:e.multi_count)==(null==e||null===(n=e.user_answer)||void 0===n?void 0:n.length)}))?1:u.some((function(e){var n;return(null==e?void 0:e.multi_count)>(null==e||null===(n=e.user_answer)||void 0===n?void 0:n.length)}))?2:0:1;ln.question_status.find((function(e){return e.ques_id===(null==r?void 0:r.question_id)})).ques_status=(null==c?void 0:c.length)===(null==r||null===(a=r.sub_exercise_questions)||void 0===a?void 0:a.length)?0:(null==c?void 0:c.length)>0&&(null==c?void 0:c.length)<(null==r||null===(l=r.sub_exercise_questions)||void 0===l?void 0:l.length)?2:d}else ln.question_status.find((function(e){return e.ques_id===n})).ques_status=e?1:0;cn(s()({},ln))}),void 0,void 0,i):Er()}(n,null==e?void 0:e.question_id,e,i,t)},isEducation:mt,sign:br})},vr=function(e,n){return(0,O.jsx)(le,{item:e,answerData:ln,exerciseId:on.categoryId,coursesId:on.coursesId})},gr=function(e,n){return(0,O.jsx)(ue,{item:e,answerData:ln})},xr=function(e,n){return(0,O.jsx)(ve,{setIsSubmitCode:bt,item:e,answerData:ln,onBlur:function(){var n=u()(l()().mark((function n(t,i,r){return l()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,ir(t,i,null==e?void 0:e.question_id,r,e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})));return function(e,t,i){return n.apply(this,arguments)}}()})},_r=function(e,n,t){var i,r,o=null==ln||null===(i=ln.exercise_question_types)||void 0===i?void 0:i.find((function(e){return e.question_type===n}));return(0,O.jsxs)("div",{className:z.answerSheetWrap,children:[(0,O.jsxs)("div",{className:z.answerSheetQuestionTitle,onClick:function(){vn[n]=!vn[n],gn(s()({},vn))},children:[!vn[n]&&(0,O.jsx)(Z.Z,{}),vn[n]&&(0,O.jsx)(I.Z,{}),(0,O.jsx)("span",{className:"ml5 c-grey-666",children:e})]}),!vn[n]&&(0,O.jsx)(S.Z,{className:z.answerSheet,gutter:[20,20],children:null==o||null===(r=o.items)||void 0===r?void 0:r.map((function(e,i){var r,o,s,a,l,c;if(e.question_type===n)return(0,O.jsx)(C.Z,{children:(0,O.jsxs)("div",{onClick:function(){if(t!==Vt||i!==Xt)return br.current?(br.current="appoint",void(jr.current={oneindex:t,twoindex:i})):void Br({oneindex:t,twoindex:i})},className:"\n ".concat(z.answerSheetItem,"\n ").concat(null!=ln&&null!==(r=ln.question_status)&&void 0!==r&&r.some((function(n){var t,i;return n.ques_id===e.question_id&&1===(null==n?void 0:n.ques_status)&&3!==(null==ln||null===(t=ln.exercise)||void 0===t?void 0:t.exercise_status)&&!(null!=ln&&null!==(i=ln.exercise)&&void 0!==i&&i.open_score_commited)}))?z.active:"","\n ").concat(null!=ln&&null!==(o=ln.question_status)&&void 0!==o&&o.some((function(n){var t,i;return n.ques_id===e.question_id&&2===(null==n?void 0:n.ques_status)&&3!==(null==ln||null===(t=ln.exercise)||void 0===t?void 0:t.exercise_status)&&!(null!=ln&&null!==(i=ln.exercise)&&void 0!==i&&i.open_score_commited)}))?z.partialActive:"","\n ").concat(null!=ln&&null!==(s=ln.question_status)&&void 0!==s&&s.some((function(n){var t,i;return n.ques_id===e.question_id&&1===(null==n?void 0:n.score_status)&&(3===(null==ln||null===(t=ln.exercise)||void 0===t?void 0:t.exercise_status)||(null==ln||null===(i=ln.exercise)||void 0===i?void 0:i.open_score_commited))}))?z.yes:"","\n ").concat(null!=ln&&null!==(a=ln.question_status)&&void 0!==a&&a.some((function(n){var t,i;return n.ques_id===e.question_id&&2===(null==n?void 0:n.score_status)&&(3===(null==ln||null===(t=ln.exercise)||void 0===t?void 0:t.exercise_status)||(null==ln||null===(i=ln.exercise)||void 0===i?void 0:i.open_score_commited))}))?z.no:"","\n ").concat(null!=ln&&null!==(l=ln.question_status)&&void 0!==l&&l.some((function(n){var t,i;return n.ques_id===e.question_id&&3===(null==n?void 0:n.score_status)&&(3===(null==ln||null===(t=ln.exercise)||void 0===t?void 0:t.exercise_status)||(null==ln||null===(i=ln.exercise)||void 0===i?void 0:i.open_score_commited))}))?z.bf:"","\n\n ").concat(t===Vt&&i===Xt?z.selected:"","\n "),children:[(0,O.jsx)("span",{className:z.qindex,children:i+1}),(null==ln||null===(c=ln.question_status)||void 0===c?void 0:c.some((function(n){var t;return n.ques_id===e.question_id&&2===(null==n?void 0:n.ques_status)&&3!==(null==ln||null===(t=ln.exercise)||void 0===t?void 0:t.exercise_status)})))&&(0,O.jsx)("div",{style:{height:12,background:"rgba(22,93,255,0.4)",position:"absolute",width:"100%",bottom:0}}),e.is_marked&&(0,O.jsx)("i",{className:"iconfont icon-biaoji1 ".concat(z.markIcon)})]},i)})}))},n)]})},wr=function(e,n){var t,i,r,o;0!==(null==e?void 0:e.question_type)&&1!==(null==e?void 0:e.question_type)||(null==e||null===(o=e.question_choices)||void 0===o||o.forEach((function(e,n){e.standard_boolean&&Ye[n]})));return(0,O.jsxs)("div",{className:z.questionItem,id:"Anchor_".concat(null==e?void 0:e.question_type,"_").concat(n),children:[(0,O.jsxs)("div",{style:{display:"flex",alignItems:"baseline",marginBottom:40,userSelect:"none"},children:[(0,O.jsxs)("span",{className:"".concat(z.questionScore," mr10"),children:[null==e?void 0:e.question_score,"分"]}),(0,O.jsxs)("span",{className:"font16 ".concat(z.noWrap),children:[n+1,"、"]}),(0,O.jsx)(Y.Z,{value:8===(null==e?void 0:e.question_type)?null==e?void 0:e.description:null==e?void 0:e.question_title}),!(null==e||null===(t=e.schools)||void 0===t||!t.length)&&(0,O.jsx)(T.Z,{title:"该实训题面向指定单位开放",children:(0,O.jsx)("i",{className:"iconfont icon-zhidinggongkai1 line24 font18 c-orange"})})]}),0==(null==e?void 0:e.question_type)&&rr(e,null==e?void 0:e.question_type),2==(null==e?void 0:e.question_type)&&rr(e,null==e?void 0:e.question_type),1==(null==e?void 0:e.question_type)&&fr(e,null==e?void 0:e.question_type),3==(null==e?void 0:e.question_type)&&mr(e,null==e?void 0:e.question_type),4==(null==e?void 0:e.question_type)&&hr(e,null==e?void 0:e.question_type),5==(null==e?void 0:e.question_type)&&vr(e,null==e||e.question_type),6==(null==e?void 0:e.question_type)&&gr(e,null==e||e.question_type),7==(null==e?void 0:e.question_type)&&or(e,null==e||e.question_type,n),8==(null==e?void 0:e.question_type)&&xr(e,null==e||e.question_type),(null==e?void 0:e.answer_comments)&&(0,O.jsx)(Te,{hideScore:!0,list:null==e?void 0:e.answer_comments}),5==(null==e?void 0:e.question_type)&&0===(null==ln||null===(i=ln.exercise)||void 0===i?void 0:i.user_exercise_status)&&3!=(null==e?void 0:e.answer_status)&&(0,O.jsx)(S.Z,{justify:"end",className:"mt20",children:(0,O.jsx)(Oe.Z,{type:"primary",className:z.toIframeBtn,onClick:u()(l()().mark((function n(){return l()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Ki(e);case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)}))),children:"进入答题"})}),(0,W.dE)()&&0===(null==ln||null===(r=ln.exercise)||void 0===r?void 0:r.user_exercise_status)&&6==(null==e?void 0:e.question_type)&&(0,O.jsx)(S.Z,{justify:"end",className:"mt20",children:(0,O.jsx)(Oe.Z,{type:"primary",className:z.toIframeBtn,onClick:function(){return Yi(e)},children:"进入答题"})})]})},yr=function(e,n){return(0,O.jsx)(h.Fragment,{children:_r((null==e?void 0:e.name)||Ue.f[e.question_type].name,e.question_type,n)})},br=(0,h.useRef)(!1),jr=(0,h.useRef)({}),kr=(0,h.useRef)(),Sr=(0,h.useRef)({}),Cr=function(){var e,n,t,i;window.blur();var r,o=null===(e=ln.exercise_question_types)||void 0===e||null===(e=e[Vt])||void 0===e||null===(e=e.items)||void 0===e?void 0:e[Xt];if(!oi&&0===(null==ln||null===(n=ln.exercise)||void 0===n?void 0:n.user_exercise_status)&&(0,W.dE)()&&((null==o||!o.repeat_answer)&&(null==o||null===(r=o.user_answer)||void 0===r?void 0:r.length)>0&&0===(null==o?void 0:o.ques_status)))return kr.current="prev",void ti(!0);(null==o||!o.repeat_answer)&&(null==o||null===(t=o.user_answer)||void 0===t?void 0:t.length)>0&&(o.ques_status=1),Si.current.scrollTo({top:0,left:0,behavior:"smooth"}),0===Xt?(Vt-=1,Xt=ln.exercise_question_types[Vt].items.length-1):Xt-=1,8!=(null==o?void 0:o.question_type)||yt||setTimeout((function(){Ri(o)}),500),Ct(null==ln||null===(i=ln.exercise_question_types)||void 0===i||null===(i=i[Vt])||void 0===i||null===(i=i.items)||void 0===i?void 0:i[Xt]),bt(!1),Kt(Vt),Qt(Xt)},Nr=function(){var e,n,t,i;window.blur();var r,o=null===(e=ln.exercise_question_types)||void 0===e||null===(e=e[Vt])||void 0===e||null===(e=e.items)||void 0===e?void 0:e[Xt];if(!oi&&0===(null==ln||null===(n=ln.exercise)||void 0===n?void 0:n.user_exercise_status)&&(0,W.dE)()&&((null==o||!o.repeat_answer)&&(null==o||null===(r=o.user_answer)||void 0===r?void 0:r.length)>0&&0===(null==o?void 0:o.ques_status)))return kr.current="next",void ti(!0);(null==o||!o.repeat_answer)&&(null==o||null===(t=o.user_answer)||void 0===t?void 0:t.length)>0&&(o.ques_status=1),Si.current.scrollTo({top:0,left:0,behavior:"smooth"}),ln.exercise_question_types[Vt].items.length-1===Xt?(Vt+=1,Xt=0):Xt+=1,8!=(null==o?void 0:o.question_type)||yt||setTimeout((function(){Ri(o)}),500),Ct(null==ln||null===(i=ln.exercise_question_types)||void 0===i||null===(i=i[Vt])||void 0===i||null===(i=i.items)||void 0===i?void 0:i[Xt]),bt(!1),Kt(Vt),Qt(Xt)},Br=function(e){var n,t,i,r,o,s=e||jr.current,a=null===(n=ln.exercise_question_types)||void 0===n||null===(n=n[Vt])||void 0===n||null===(n=n.items)||void 0===n?void 0:n[Xt];if(!oi&&0===(null==ln||null===(t=ln.exercise)||void 0===t?void 0:t.user_exercise_status)&&(0,W.dE)()&&((null==a||!a.repeat_answer)&&(null==a||null===(o=a.user_answer)||void 0===o?void 0:o.length)>0&&0===(null==a?void 0:a.ques_status)))return kr.current="appoint",Sr.current=s,void ti(!0);(null==a||!a.repeat_answer)&&(null==a||null===(i=a.user_answer)||void 0===i?void 0:i.length)>0&&(a.ques_status=1),8!=(null==a?void 0:a.question_type)||yt||setTimeout((function(){Ri(a)}),500),Ct(null==ln||null===(r=ln.exercise_question_types)||void 0===r||null===(r=r[null==s?void 0:s.oneindex])||void 0===r||null===(r=r.items)||void 0===r?void 0:r[null==s?void 0:s.twoindex]),bt(!1),Kt(null==s?void 0:s.oneindex),Qt(null==s?void 0:s.twoindex),Si.current.scrollTo({top:0,left:0,behavior:"smooth"})},Tr=function(){var e=u()(l()().mark((function e(){var n,t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!br.current){e.next=3;break}return br.current="refresh",e.abrupt("return");case 3:return e.next=5,Di();case 5:if(t=e.sent,null==ln||null===(n=ln.exercise)||void 0===n||!n.left_time){e.next=9;break}return e.next=9,zi(!0);case 9:null!=t&&t.status||j.ZP.success("更新成功");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Er=function(){var e;switch(br.current){case"prev":Cr();break;case"next":Nr();break;case"appoint":Br();break;case"submit":Xi(!1);break;case"refresh":Tr()}"textarea"===(null===(e=document.activeElement)||void 0===e?void 0:e.localName)?br.current=!0:br.current=!1,jr.current={}};return(0,O.jsxs)(E.Z,{size:"middle",spinning:wn,children:[Pn&&0===(null==ln||null===(o=ln.exercise)||void 0===o?void 0:o.user_exercise_status)&&(0,O.jsx)(q.Z,{exerciseUserInfo:$e.exerciseUserInfo,iframe:Lt,handleToDetail:Gi,socket:Ht,onStartScreenshot:function(){null!=pn&&pn.screen_shot_open&&Fn(!0)},onCloseScreenshot:function(){null!=pn&&pn.screen_shot_open&&Fn(!1)}}),(0,O.jsx)(D,{id:on.categoryId,startRecording:qn,startScreenshot:Dn,onSuccuss:function(){Zn(null==pn?void 0:pn.screen_open),Di()},onBack:Gi}),(0,O.jsx)("iframe",{style:{display:Qn},id:"iframeShixuns",className:z.iframe,src:Kn,ref:Lt,frameBorder:"0"}),-2!==st.status&&-1!==st.status&&(0,O.jsx)("div",{className:z.fixHeader,children:(0,O.jsxs)(S.Z,{wrap:!1,align:"middle",className:"edu-container",children:[(0,O.jsx)(C.Z,{children:(0,M.vB)(null==ln||null===(a=ln.exercise)||void 0===a?void 0:a.exercise_status)}),(0,O.jsx)(C.Z,{className:"".concat(z.exerciseTitle," ml10"),title:null==ln||null===(c=ln.exercise)||void 0===c?void 0:c.exercise_name,children:null==ln||null===(d=ln.exercise)||void 0===d?void 0:d.exercise_name}),(0,O.jsx)(C.Z,{style:{marginLeft:"auto"},children:!((0,W.GJ)()||(0,W.dE)()&&1==(null==ln||null===(f=ln.exercise)||void 0===f?void 0:f.user_exercise_status))&&!(null==ln||null===(g=ln.exercise)||void 0===g||!g.left_time)&&(0,O.jsxs)("aside",{className:"".concat(z.countDown," ").concat(tt),children:[(0,O.jsx)("i",{className:"iconfont icon-daojishi",style:{marginRight:6}}),(0,O.jsx)("span",{className:z.cnText,children:"剩余答题时长"}),(0,O.jsx)(Ke,{value:Hn,onFinish:function(){return zi()}})]})}),(0,O.jsx)(C.Z,{children:!((0,W.GJ)()||(0,W.dE)()&&1==(null==ln||null===(_=ln.exercise)||void 0===_?void 0:_.user_exercise_status))&&"student-unlock"!==$e.actionTabs.key&>&&(0,O.jsxs)(Oe.Z,{className:"".concat(z.refreshBtn," ml30"),onClick:Tr,children:[(0,O.jsx)("span",{className:"iconfont icon-shuaxin2 mr5"}),"刷新"]})}),(0,O.jsx)(C.Z,{children:(0,W.dE)()&&0===(null==ln||null===(F=ln.exercise)||void 0===F?void 0:F.user_exercise_status)&&(0,O.jsx)(Oe.Z,{className:"".concat(z.submitButton," ml10"),type:"primary",onClick:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!br.current){e.next=3;break}return br.current="submit",e.abrupt("return");case 3:return e.next=5,Xi(!1);case 5:case"end":return e.stop()}}),e)}))),children:"交卷"})}),(0,O.jsx)(C.Z,{children:(null==ln||null===(J=ln.exercise)||void 0===J?void 0:J.forbid_screen)&&(0,O.jsx)(A.ZP,{className:"".concat(z.submitButton," ml10"),type:"primary",onClick:function(){Et(!0)},children:"解锁切屏"})}),(0,O.jsx)(C.Z,{children:(1==(null==ln||null===(X=ln.exercise)||void 0===X?void 0:X.commit_status)||3==(null==ln||null===($=ln.exercise)||void 0===$?void 0:$.exercise_status))&&(null==ln||null===(ne=ln.exercise_answer_user)||void 0===ne?void 0:ne.analysis)&&(0,O.jsxs)("span",{className:z.teachAnalysis,onClick:function(){return Ti(!0)},children:[(0,O.jsx)("i",{className:"iconfont icon-jiaoshipingjia"}),(0,O.jsx)("span",{className:"ml5",children:"教师评价"})]})})]})}),(0,O.jsxs)("section",{className:"edu-container ".concat(z.wrapper," ").concat(mt&&z.wrpAnswer),children:[(null==ln||null===(te=ln.exercise)||void 0===te||null===(te=te.exercise_description)||void 0===te?void 0:te.length)>0&&(0,O.jsx)(P.Z,{className:z.exerciseAlert,description:(0,O.jsxs)(S.Z,{wrap:!1,gutter:10,align:"top",children:[(0,O.jsx)(C.Z,{className:z.title,children:"考试须知"}),(0,O.jsx)(C.Z,{className:z.content,children:null==ln||null===(ie=ln.exercise)||void 0===ie?void 0:ie.exercise_description})]}),closable:!0}),0===st.status&&(0,O.jsxs)(S.Z,{className:"".concat(mt?"mt70":""," ").concat(z.mainPart),wrap:!1,children:[(0,O.jsx)(C.Z,{flex:kn?"280px":"0px",className:mt?"mb100":"",children:(0,O.jsxs)("div",{className:z.leftPart,children:[(0,O.jsxs)("section",{children:[kn&&(0,O.jsxs)(C.Z,{flex:"1",style:{background:"#fff",marginBottom:"10px",padding:"20px"},children:[(0,O.jsxs)("div",{style:{marginBottom:15},children:[(0,O.jsx)("span",{style:{color:"#5F6368"},children:"姓名"}),(0,O.jsx)("span",{className:"ml10 ".concat(z.userInfoText),children:(null==ln||null===(re=ln.exercise)||void 0===re?void 0:re.user_name)||"- -"})]}),(0,O.jsxs)("div",{children:[(0,O.jsx)("span",{style:{color:"#5F6368"},children:"学号"}),(0,O.jsx)("span",{className:"ml10 ".concat(z.userInfoText),children:(null==ln||null===(oe=ln.exercise)||void 0===oe?void 0:oe.student_id)||"- -"})]})]}),kn&&(0,W.dE)()&&0===(null===(se=ln.exercise)||void 0===se?void 0:se.user_exercise_status)&&(null===(ae=ln.exercise)||void 0===ae?void 0:ae.open_phone_video_recording)&&(0,O.jsxs)(S.Z,{className:z.eduQrcode,style:{marginTop:10},align:"middle",children:[(0,O.jsx)(C.Z,{children:(0,O.jsx)(x(),{value:"https://".concat(document.domain,"/live-push.html?id=").concat(on.categoryId,"&login=").concat(on.login,"&cookie=").concat((0,M.ej)("_educoder_session"))})}),(0,O.jsxs)(C.Z,{className:"ml15",children:["打开微信扫一扫",(0,O.jsx)("br",{}),"开启手机视频录制"]})]}),kn&&(0,O.jsxs)("aside",{className:"bg-white",children:[(0,O.jsxs)("aside",{className:z.answerInfo,children:[(0,O.jsxs)(S.Z,{justify:"space-between",children:[(0,O.jsx)(C.Z,{children:"答题进度"}),(0,O.jsxs)(C.Z,{className:z.answerProgress,children:[(0,O.jsx)("span",{style:{color:"#165DFF"},children:null==ln||null===(ce=ln.question_status)||void 0===ce||null===(ce=ce.filter((function(e){return 1===e.ques_status})))||void 0===ce?void 0:ce.length}),(0,O.jsxs)("span",{style:{color:"#999999"},children:["/",null==ln||null===(de=ln.exercise_types)||void 0===de?void 0:de.q_counts]})]})]}),(0,O.jsx)(S.Z,{children:(0,O.jsx)(k.Z,{strokeColor:"#165dffa6",trailColor:"#0000000d",percent:(null==ln||null===(pe=ln.question_status)||void 0===pe||null===(pe=pe.filter((function(e){return 1===e.ques_status})))||void 0===pe?void 0:pe.length)/(null==ln||null===(me=ln.exercise_types)||void 0===me?void 0:me.q_counts)*100,showInfo:!1})}),(0,O.jsx)(S.Z,{children:(0,O.jsxs)(C.Z,{children:[(0,O.jsxs)("span",{className:"c-grey-333",children:["共 ",(0,O.jsx)("span",{style:{color:"#165DFF"},children:(null==ln||null===(he=ln.exercise_types)||void 0===he?void 0:he.q_counts)||(null==ln||null===(ge=ln.exercise_scores)||void 0===ge||null===(ge=ge.exercise_types)||void 0===ge?void 0:ge.q_counts)})," 题:"]}),(0,O.jsxs)("span",{className:"c-grey-333",children:["满分 ",(0,O.jsx)("span",{style:{color:"#FA6400"},children:(null==ln||null===(ye=ln.exercise_types)||void 0===ye?void 0:ye.q_scores)||(null==ln||null===(be=ln.exercise_scores)||void 0===be||null===(be=be.exercise_types)||void 0===be?void 0:be.q_scores)})," 分"]})]})})]}),(0,O.jsxs)(S.Z,{className:z.dottedLineWrapper,align:"middle",children:[(0,O.jsx)(C.Z,{className:z.leftHalfCircle}),(0,O.jsx)(C.Z,{flex:1,className:z.dottedLine}),(0,O.jsx)(C.Z,{className:z.rightHalfCircle})]}),(0,O.jsx)(S.Z,{children:(0,O.jsx)(C.Z,{flex:"1",children:(0,O.jsx)("aside",{className:"".concat(z.cardList," ").concat(null!==(je=ln.exercise)&&void 0!==je&&je.open_phone_video_recording?z.withQrcode:""),children:null==ln||null===(ke=ln.exercise_question_types)||void 0===ke?void 0:ke.map((function(e,n){return(0,O.jsx)(h.Fragment,{children:yr(e,n)},e.question_type)}))})})})]})]}),(0,W.dE)()&&3!==(null==ln||null===(Se=ln.exercise)||void 0===Se?void 0:Se.exercise_status)&&!(null!=ln&&null!==(Ce=ln.exercise)&&void 0!==Ce&&Ce.open_score_commited)&&(0,O.jsxs)(S.Z,{justify:"space-around",align:"middle",className:z.answerSheetBottom,children:[(0,O.jsxs)(C.Z,{className:z.tooltipWrap,children:[(0,O.jsx)("span",{className:z.answerYes}),"已答"]}),(0,O.jsxs)(C.Z,{className:z.tooltipWrap,children:[(0,O.jsx)("span",{className:"".concat(z.answerNo," ml10"),children:(0,O.jsx)("div",{style:{height:"50%",width:"100%",background:"rgba(22,93,255,0.4)"}})}),"部分答题"]}),(0,O.jsxs)(C.Z,{className:z.tooltipWrap,children:[(0,O.jsx)("span",{className:"".concat(z.answerNo," ml10")}),"未答"]}),(0,O.jsxs)(C.Z,{className:z.tooltipWrap,children:[(0,O.jsx)("i",{className:"iconfont icon-biaoji1",style:{marginRight:4,color:"#FFB538"}}),"标记"]})]}),(0,W.dE)()&&(3===(null==ln||null===(Ne=ln.exercise)||void 0===Ne?void 0:Ne.exercise_status)||(null==ln||null===(Be=ln.exercise)||void 0===Be?void 0:Be.open_score_commited))&&(0,O.jsxs)(S.Z,{justify:"space-around",align:"middle",className:z.answerSheetBottom,children:[(0,O.jsxs)(C.Z,{className:z.tooltipWrap,children:[(0,O.jsx)("span",{className:z.answerYes,style:{background:"#028D01",height:8,width:8,borderRadius:"50%"}}),"正确"]}),(0,O.jsxs)(C.Z,{className:z.tooltipWrap,children:[(0,O.jsx)("span",{style:{background:"#FB3226",height:8,width:8,borderRadius:"50%"},className:"".concat(z.answerNo," ml10")}),"错误"]}),(0,O.jsxs)(C.Z,{className:z.tooltipWrap,children:[(0,O.jsx)("span",{style:{background:"#E77400",height:8,width:8,borderRadius:"50%"},className:"".concat(z.answerNo," ml10")}),"部分得分"]}),(0,O.jsxs)(C.Z,{className:z.tooltipWrap,children:[(0,O.jsx)("i",{className:"iconfont icon-biaoji1",style:{marginRight:4,color:"#FFB538"}}),"标记"]})]})]})}),(0,O.jsx)(C.Z,{children:(0,O.jsxs)("div",{className:z.fold,onClick:function(){return Sn(!kn)},children:[kn&&(0,O.jsx)(T.Z,{title:"收起答题卡",children:(0,O.jsx)("span",{className:"icon-zuojiantou iconfont c-grey-c"})}),!kn&&(0,O.jsxs)(T.Z,{title:"展开",children:[" ",(0,O.jsx)("span",{className:"icon-youjiantou iconfont c-grey-c"})]})]})}),(0,O.jsx)(C.Z,{flex:"1",children:(0,O.jsxs)("section",{className:[z.rightPart,"ml20"].join(" "),children:[(0,O.jsx)("div",{className:"".concat(z.questionPart," pl30 pr30"),ref:Si,children:(pr=null==ln||null===(sr=ln.exercise_question_types)||void 0===sr||null===(sr=sr[Vt].items)||void 0===sr?void 0:sr[Xt],(0,O.jsxs)(h.Fragment,{children:[(0,O.jsxs)("div",{className:"pt20 mb20",children:[(0,O.jsxs)("span",{className:z.questionTypeTitle,children:[(0,M.EM)(Vt+1),"、",null==ln||null===(ar=ln.exercise_question_types)||void 0===ar||null===(ar=ar[Vt])||void 0===ar?void 0:ar.name]}),(0,O.jsxs)("span",{className:z.questionTypeInfo,children:["(共",null==ln||null===(lr=ln.exercise_question_types)||void 0===lr||null===(lr=lr[Vt])||void 0===lr?void 0:lr.count,"题;",7===(null==ln||null===(cr=ln.exercise_question_types)||void 0===cr||null===(cr=cr[Vt])||void 0===cr?void 0:cr.question_type)?"包含".concat(null==ln||null===(ur=ln.exercise_question_types)||void 0===ur||null===(ur=ur[Vt])||void 0===ur?void 0:ur.sub_questions_count,"小题"):""," 共",null==ln||null===(dr=ln.exercise_question_types)||void 0===dr||null===(dr=dr[Vt])||void 0===dr?void 0:dr.score,"分)"]}),!(null!=pr&&pr.repeat_answer)&&(0,O.jsx)("span",{style:{color:"#E30000",marginLeft:20,fontSize:14},children:"注意:该题作答之后不允许修改答案。"})]}),(0,O.jsx)(h.Fragment,{children:wr(pr,Xt)},Xt)]},Vt))}),(0,O.jsxs)(S.Z,{className:z.bottom,align:"middle",justify:"space-between",children:[(0,O.jsx)(C.Z,{children:(0,O.jsx)(Oe.Z,{icon:(0,O.jsx)("i",{className:"iconfont ".concat(null!==(Ae=ln.exercise_question_types)&&void 0!==Ae&&null!==(Ae=Ae[Vt].items[Xt])&&void 0!==Ae&&Ae.is_marked?"icon-biaoji1":"icon-biaojigaiti"),style:{color:"#FFB538",marginRight:6}}),className:z.markBtn,onClick:u()(l()().mark((function e(){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,V.sS)(on.categoryId,{exercise_question_id:null===(n=ln.exercise_question_types[Vt].items[Xt])||void 0===n?void 0:n.question_id});case 2:0===e.sent.status&&Di();case 4:case"end":return e.stop()}}),e)}))),children:null!==(Ze=ln.exercise_question_types)&&void 0!==Ze&&null!==(Ze=Ze[Vt].items[Xt])&&void 0!==Ze&&Ze.is_marked?"取消标记":"标记该题"})}),(0,O.jsxs)(C.Z,{children:[(0!=Vt||0!=Xt)&&(0,O.jsx)(A.ZP,{className:"".concat(z.changeButton," ").concat(z.prevBtn," mr20"),type:"default",onClick:function(){br.current?br.current="prev":Cr()},children:"上一题"}),!(Vt===(null==ln||null===(Ie=ln.exercise_question_types)||void 0===Ie?void 0:Ie.length)-1&&Xt===(null==ln||null===(Le=ln.exercise_question_types)||void 0===Le||null===(Le=Le[Vt])||void 0===Le||null===(Le=Le.items)||void 0===Le?void 0:Le.length)-1)&&(0,O.jsx)(A.ZP,{className:z.changeButton,type:"primary",onClick:function(){br.current?br.current="next":Nr()},children:"下一题"})]})]})]})})]}),0!==st.status&&(0,O.jsx)(xe,{data:st}),(0,O.jsx)(y.Z,{title:"注意",open:ni,closable:!1,footer:!1,children:(0,O.jsxs)("div",{children:[(0,O.jsx)("p",{style:{marginBottom:0},children:"离开该题后不允许再次修改答案,确认离开吗?"}),(0,O.jsxs)("div",{style:{marginTop:60,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,O.jsx)(B.Z,{checked:oi,onChange:function(e){si(e.target.checked)},children:"下次不再显示"}),(0,O.jsxs)("div",{children:[(0,O.jsx)(A.ZP,{onClick:function(){ti(!1),si(!1)},children:"我再想想"}),(0,O.jsx)(A.ZP,{onClick:function(){ln.exercise_question_types[Vt].items[Xt].ques_status=1,cn(s()({},ln)),"prev"===kr.current?(0===Xt?(Vt-=1,Xt=ln.exercise_question_types[Vt].items.length-1):Xt-=1,Kt(Vt),Qt(Xt)):"next"===kr.current?(ln.exercise_question_types[Vt].items.length-1===Xt?(Vt+=1,Xt=0):Xt+=1,Kt(Vt),Qt(Xt)):(Kt(Sr.current.oneindex),Qt(Sr.current.twoindex)),ti(!1)},type:"primary",style:{marginLeft:30},children:"确认"})]})]})]})}),(0,O.jsx)(Ee.Z,{successCb:Mi})]}),Bn&&(0,O.jsx)(Pe(),{disabled:mi,bounds:xi,onStart:function(e,n){return function(e,n){var t,i=window.document.documentElement,r=i.clientWidth,o=i.clientHeight,s=null===(t=wi.current)||void 0===t?void 0:t.getBoundingClientRect();_i({left:-s.left+n.x,right:r-(s.right-n.x),top:-s.top+n.y,bottom:o-(s.bottom-n.y)-70})}(0,n)},children:(0,O.jsx)("div",{ref:wi,style:{position:"absolute",left:40,top:200,zIndex:101},children:(0,O.jsxs)("div",{onMouseOver:function(){mi&&hi(!1)},onMouseOut:function(){hi(!0)},children:[(0,O.jsxs)(S.Z,{className:z.cameraHeader,align:"middle",justify:"space-between",children:[(0,O.jsxs)(C.Z,{children:[(0,O.jsx)("i",{className:"iconfont icon-kaiqishexiangtou"}),(0,O.jsx)("span",{children:"已开启摄像头"})]}),ji?(0,O.jsx)(Me,{onClick:function(){ki(!1)}}):(0,O.jsx)(Re.Z,{onClick:function(){ki(!0)}})]}),(0,O.jsx)("div",{style:{display:ji?"flex":"none"},children:(0,O.jsx)(L.Z,{number:(null==ln||null===(qe=ln.exercise)||void 0===qe?void 0:qe.photo_count)-(null==ln||null===(Fe=ln.exercise)||void 0===Fe?void 0:Fe.take_photo),take_photo:null==ln||null===(Ge=ln.exercise)||void 0===Ge?void 0:Ge.take_photo,ref:qt,time:null===(ze=ln.exercise)||void 0===ze?void 0:ze.left_time,update:Di,supportCamera:function(e){2===e?(dt(!0),Mn(null==pn?void 0:pn.screen_shot_open),null!=pn&&pn.screen_shot_open||(Zn(null==pn?void 0:pn.screen_open),Di())):1===e&&setTimeout((function(){return v.history.push("/")}),3e3)}})})]})})}),(0,O.jsx)(y.Z,{destroyOnClose:!0,closable:!1,centered:!0,className:z.teachAnalysisModal,title:(0,O.jsxs)(S.Z,{align:"middle",justify:"space-between",children:[(0,O.jsx)(C.Z,{style:{color:"rgba(0,0,0,0.9)",fontSize:"16px"},children:"教师评价"}),(0,O.jsx)(C.Z,{children:(0,O.jsx)("i",{className:"iconfont icon-guanbi7",style:{fontSize:"15px",cursor:"pointer"},onClick:function(){return Ti(!1)}})})]}),open:Bi,footer:!1,onCancel:function(){return Ti(!1)},children:null==ln||null===(Xe=ln.exercise_answer_user)||void 0===Xe?void 0:Xe.analysis}),(0,O.jsx)(y.Z,{destroyOnClose:!0,centered:!0,width:555,title:(0,O.jsxs)(S.Z,{align:"middle",children:[(0,O.jsx)("div",{className:"c-black font16 mr8",children:"请输入解锁切屏码"}),(0,O.jsx)("div",{className:"c-grey-666",children:"(位置:规则设置-防作弊设置-高级防作弊模式)"})]}),open:Tt,footer:!1,onCancel:function(){return Et(!1)},children:(0,O.jsxs)("div",{children:[(0,O.jsx)("div",{className:"mb20 c-black",children:"输入解锁码后将退出考试,退出后在考试时间内可继续考试答题"}),(0,O.jsx)(He,{onOk:function(e){var n;console.log(e,444),e.join("")===(null==ln||null===(n=ln.exercise)||void 0===n?void 0:n.screen_key)?Gi():(j.ZP.warning("解锁切屏码输入有误"),It((function(e){return e+1})))}},Zt)]})})]})}))},16279:function(e,n,t){"use strict";var i=t(31468),r=t.n(i),o=t(7557),s=t.n(o),a=t(41498),l=t.n(a),c=t(79800),u=t.n(c),d=t(59301),p=t(31797),f=t(78241),m=t(43418),h=t(14491),v=t(98135),g=t(95237),x=t(43604),_=t(3113),w=t(77884),y=t(99232),b=t.n(y),j=t(76252),k=t(76279),S=t(5746),C=t(22961),N=t(37712);p.Z.Countdown;n.Z=(0,j.connect)((function(e){return{exercise:e.exercise}}))((function(e){var n,t,i,o,a=e.exercise,c=e.successCb,p=e.dispatch,y=(0,j.useParams)(),B=f.Z.useForm(),T=u()(B,1)[0],E=(0,d.useState)(!1),A=u()(E,2),P=A[0],Z=A[1],I=(0,d.useRef)(),L=a.actionTabs;(0,d.useEffect)((function(){"student-unlock"===a.actionTabs.key&&(Z(!1),T.resetFields())}),[a.actionTabs.key]);var q=function(){var e=l()(s()().mark((function e(){var n,t,i,r,o,a,u,d,f,m;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T.validateFields();case 2:if(o=T.getFieldsValue(),Z(!0),!("no"!==(null==L||null===(n=L.exerciseParams)||void 0===n?void 0:n.ip_limit)||null!=L&&null!==(t=L.exerciseParams)&&void 0!==t&&t.ip_bind_type)){e.next=7;break}return e.next=7,new Promise(function(){var e=l()(s()().mark((function e(n){var t,i;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.y)({ip_limit:null==L||null===(t=L.exerciseParams)||void 0===t?void 0:t.ip_limit,ip_bind:null==L||null===(i=L.exerciseParams)||void 0===i?void 0:i.ip_bind_type});case 2:return I.current=e.sent,e.abrupt("return",n());case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}());case 7:return e.next=9,(0,w.ZD)(null==L||null===(i=L.exerciseParams)||void 0===i?void 0:i.id,{exercise_user_id:null==L||null===(r=L.exerciseParams)||void 0===r?void 0:r.exercise_user_id,unlock_key:o.unlock_key,ip:I.current});case 9:if(0!==e.sent.status){e.next=22;break}if(!c){e.next=15;break}return p({type:"exercise/setActionTabs",payload:{}}),c(),e.abrupt("return");case 15:if(!o.time){e.next=19;break}return f={time:b()(o.time).format("YYYY-MM-DD HH:mm"),exercise_user_id:null==L||null===(u=L.exerciseParams)||void 0===u?void 0:u.exercise_user_id,id:null==L||null===(d=L.exerciseParams)||void 0===d?void 0:d.id},e.next=19,(0,w.qz)(f);case 19:m=null==L?void 0:L.exerciseParams,(0,k.nr)({inner_ip:m.inner_ip,public_ip:m.public_ip,open_camera:m.open_camera,ip_limit:m.ip_limit,ip_bind:m.ip_bind,ip_bind_type:m.ip_bind_type,exercise_tips:m.exercise_tips,exerciseId:m.id,screen_open:m.screen_open,screen_num:m.screen_num,screen_sec:m.screen_sec,coursesId:y.coursesId,login:null===(a=(0,C.eY)())||void 0===a?void 0:a.login,history:history,identity_verify:m.identity_verify,open_phone_video_recording:m.open_phone_video_recording,current_status:m.current_status}),p({type:"exercise/setActionTabs",payload:{}});case 22:Z(!1);case 23:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=[{title:"IP地址",dataIndex:"ip",key:"ip",render:function(e){return(0,N.jsx)("span",{className:e.indexOf("异常")>-1?"c-red":"c-green",children:e})}},{title:"浏览器",dataIndex:"browser",key:"browser",render:function(e){return(0,N.jsx)("span",{className:e.indexOf("异常")>-1?"c-red":"c-green",children:e})}},{title:"上次登录时间",dataIndex:"last_login_time",key:"last_login_time"}],R=(null==L||null===(n=L.exerciseParams)||void 0===n?void 0:n.errorMessage)&&"object"===r()(null==L||null===(t=L.exerciseParams)||void 0===t?void 0:t.errorMessage);return(0,N.jsx)(N.Fragment,{children:(0,N.jsxs)(m.Z,{width:514,centered:!0,closable:!(null==L||null===(i=L.exerciseParams)||void 0===i||!i.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"提示",open:"student-unlock"===a.actionTabs.key,footer:null,onCancel:function(){p({type:"exercise/setActionTabs",payload:{}})},children:[R&&(0,N.jsx)("div",{style:{marginBottom:16},children:"该账号已经存在异常情况,若非本人操作,请联系监考老师说明情况。 "}),!R&&(0,N.jsx)("div",{style:{marginBottom:16},children:"系统检测到您在考试时中途退出,现已将考试锁定。如需继续进行考试, 请尽快联系课堂老师进行解锁!"}),R&&(0,N.jsx)(h.Z,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[(null==L||null===(o=L.exerciseParams)||void 0===o?void 0:o.errorMessage)||{}],columns:M}),(0,N.jsx)("div",{className:"",children:(0,N.jsx)(f.Z,{form:T,layout:"vertical",autoComplete:"off",children:(0,N.jsx)(f.Z.Item,{label:"考试解锁码",name:"unlock_key",rules:[{required:!0,message:"请输入考试解锁码"}],children:(0,N.jsx)(v.Z.Password,{autoComplete:"off",placeholder:"请输入考试解锁码",visibilityToggle:!1})})})}),(0,N.jsxs)(g.Z,{justify:"space-between",align:"middle",children:[(0,N.jsx)(x.Z,{}),(0,N.jsx)(x.Z,{children:(0,N.jsx)(_.ZP,{loading:P,onClick:q,children:"进入考试"})})]})]})})}))},37842:function(e,n,t){"use strict";t.d(n,{Y4:function(){return Z},Im:function(){return E},ZP:function(){return L}});var i=t(79800),r=t.n(i),o=t(7557),s=t.n(o),a=t(41498),l=t.n(a),c=t(82242),u=t.n(c),d=t(85573),p=t.n(d),f=t(59301),m=t(98135),h=t(3113),v=t(43501),g=t(53547),x=t(6595),_=t(24334),w=t(57226),y=t(3162),b=t(76279),j=t(34376),k=t(51836),S=t(76252),C=t(57849),N=t(37712),B=m.Z.TextArea,T={visible:!1,tabIndex:"0"},E=p()(p()(p()(p()(p()(p()({},x.h.NOMATCH,"测试用例结果不匹配"),x.h.OK,"调试通过"),2,"调试超时"),3,"调试pod失败"),4,"编译失败"),5,"执行失败"),A=function(e){return e[e.SET_VISIBLE=0]="SET_VISIBLE",e[e.SET_TABINDEX=1]="SET_TABINDEX",e}(A||{});function P(e,n){switch(n.type){case A.SET_VISIBLE:return u()(u()({},e),{},{visible:n.payload});case A.SET_TABINDEX:return u()(u()({},e),{},{tabIndex:n.payload});default:throw new Error}}function Z(e){var n=e.status,t=e.error_msg,i=e.output,r=e.input,o=e.expected_output,a=e.is_file,c=e.input_file_url,u=e.output_file_url,d=e.expected_output_file_url,p=e.setMonacoValue,m=e.setData,h=(0,f.useRef)(),v=(0,f.useRef)(),g=(0,f.useRef)(),w=null,S={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch((0,f.useEffect)((function(){if(i&&!a&&h.current){var e=new j.Terminal({fontSize:14,letterSpacing:1,cols:83,rows:10});e.open(h.current);var n=(0,b.pp)(_.Base64.decode(i));e.write(n),e.setOption("theme",{background:"#1e1e1e"})}if(r&&!a&&v.current){var t=new j.Terminal({fontSize:14,letterSpacing:1,cols:83,rows:10});t.open(v.current),t.write((0,b.pp)(r)),t.setOption("theme",{background:"#1e1e1e"})}if(o&&!a&&g.current){var s=new j.Terminal({fontSize:14,letterSpacing:1,cols:83,rows:10});s.open(g.current),s.write((0,b.pp)(_.Base64.decode(o))),s.setOption("theme",{background:"#1e1e1e"})}}),[i]),n){case x.h.NOMATCH:w=(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("p",{className:"c-red",children:"实际输出:"}),!a&&(0,N.jsx)("div",{ref:h}),a&&(0,N.jsx)("div",{style:S,children:(0,N.jsx)("a",{style:{fontSize:"16px"},onClick:l()(s()().mark((function e(){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,k.ZP)(u,{method:"Get",headers:{"Content-Type":"application/xml",Accept:"*/*"}});case 2:n=e.sent,p(n),setTimeout((function(){m(u)}),200);case 5:case"end":return e.stop()}}),e)}))),children:i})}),(0,N.jsx)("p",{className:"c-red",children:"预期输出:"}),!a&&(0,N.jsx)("div",{ref:g}),a&&(0,N.jsx)("div",{style:S,children:(0,N.jsx)("a",{style:{fontSize:"16px"},onClick:l()(s()().mark((function e(){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(d,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});case 2:return n=e.sent,e.t0=p,e.next=6,n.text();case 6:e.t1=e.sent,(0,e.t0)(e.t1),setTimeout((function(){m(d)}),200);case 9:case"end":return e.stop()}}),e)}))),children:o})})]});break;case x.h.EXECUTEFAILURE:w=(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("div",{style:{border:"1px #F6F7F9 solid"},children:[(0,N.jsx)("p",{style:{width:"100%",height:40,background:"#F6F7F9",lineHeight:"40px",color:"#666666",paddingLeft:"12px"},children:"最后执行的输入:"}),!a&&(0,N.jsx)(y.Z,{value:r,style:S}),a&&(0,N.jsx)("div",{style:S,children:(0,N.jsx)("a",{onClick:function(){return(0,b.LR)(c,r)},children:r})})]}),(0,N.jsxs)("div",{style:{border:"1px #F6F7F9 solid",marginTop:"10px"},children:[(0,N.jsx)("p",{style:{width:"100%",height:40,background:"#F6F7F9",lineHeight:"40px",color:"#666666",paddingLeft:"12px"},children:"执行出错信息:"}),(0,N.jsxs)("pre",{className:"error",style:{color:"#E30000",padding:"0 10px"},children:[_.Base64.decode(t),"111"]})]})]});break;case x.h.COMPILEFAILURE:w=(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("p",{children:"执行出错信息:"}),(0,N.jsx)("pre",{className:"error",children:_.Base64.decode(t)})]});break;case x.h.PODFAILURE:w=(0,N.jsx)("p",{children:"创建pod失败,请稍后重试"});break;case x.h.TIMEOUT:w=(0,N.jsx)("p",{children:"评测超时,请稍后重试"})}return(0,N.jsxs)(N.Fragment,{children:[" ",w," "]})}function I(e){var n=e.status,t=e.error_msg,i=e.execute_time,r=e.output,o=e.input,s=e.expected_output,a=(e.is_file,e.input_file_url,e.output_file_url,e.expected_output_file_url,null);switch(n){case x.h.OK:a=(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("p",{children:["执行用时:",i/1e3,"秒"]}),(0,N.jsx)("p",{children:"执行结果:"}),(0,N.jsx)("pre",{children:_.Base64.decode(r)})]});break;case x.h.NOMATCH:a=(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("p",{children:["输入:",(0,N.jsx)("pre",{children:o})]}),(0,N.jsxs)("p",{children:["输出:",r&&_.Base64.decode(r)]}),(0,N.jsxs)("p",{children:["预期输出:",s&&_.Base64.decode(s)]})]});break;case x.h.EXECUTEFAILURE:case x.h.COMPILEFAILURE:a=(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("p",{children:["最后执行的输入:",(0,N.jsx)("pre",{children:o})]}),(0,N.jsx)("p",{children:"执行出错信息:"}),(0,N.jsx)("pre",{className:"error",children:_.Base64.decode(t)})]});break;case x.h.PODFAILURE:a=(0,N.jsx)("p",{children:"创建pod失败,请稍后重试"});break;case x.h.TIMEOUT:a=(0,N.jsx)("p",{children:"评测超时,请稍后重试"})}return(0,N.jsxs)(N.Fragment,{children:[" ",a," "]})}var L=function(e){var n=e.input,t=e.is_file,i=e.debuging,o=e.submitting,a=(e.executingMessage,e.debugResult),c=e.onChangeInput,u=e.onDebugCode,d=e.onSubmitCode,p=e.hack,m=e.user,x=(0,f.useReducer)(P,T),_=r()(x,2),y=_[0],b=_[1],j=y.visible,E=(y.tabIndex,(0,S.useSearchParams)()),Z=r()(E,1)[0];var L=(0,f.useMemo)((function(){if(a){a.status;return(0,N.jsx)(N.Fragment,{children:I(a)})}return null}),[a]);var q=function(){var e=l()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,k.ZP)("/api/problems/".concat(n,"/start.json"),{method:"get",params:{hack_user_id:null==m?void 0:m.user_id}});case 2:(t=e.sent)&&(window.location.href="/myproblems/".concat(null==t?void 0:t.identifier,"?type=1"));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,N.jsxs)("div",{className:"test-case-panel",children:[(0,N.jsxs)("div",{className:"test-case-panel-body ".concat(j?"active":""),children:[(0,N.jsx)("ul",{className:"s-navs",children:(0,N.jsx)("li",{children:(0,N.jsx)("a",{className:"active",children:"调试代码结果"})})}),(0,N.jsx)(C.Z,{leftTitle:"自定义测试用例",rightTitle:"代码执行结果",style:{height:240},leftNode:(0,N.jsx)(B,{placeholder:"请输入自测用例(如果未填写,自测运行时,系统会自动填充第一个非隐藏的文本类型的测试用例)",value:t?"":n,onChange:c}),rightNode:i?(0,N.jsx)(w.Z,{message:"代码执行中..."}):a?L:(0,N.jsx)("p",{style:{color:"#536879"},children:"请填写测试用例的输入值,点击“调试代码”"})})]}),(0,N.jsx)("a",{className:"btn-collapse ".concat(j?"up":""),onClick:function(){b({type:A.SET_VISIBLE,payload:!j})},children:j?(0,N.jsx)(v.Z,{}):(0,N.jsx)(g.Z,{})}),(0,N.jsxs)("footer",{className:"footer",children:[(0,N.jsx)("span",{children:"控制台"}),(0,N.jsxs)("div",{className:"flex-container",children:[(null==p?void 0:p.is_program)&&(null==p?void 0:p.above_question)&&(0,N.jsx)(h.ZP,{onClick:function(){return q(null==p?void 0:p.above_question)},id:"oj-prev",className:"btn-blue",type:"ghost",children:"上一题"}),(null==p?void 0:p.is_program)&&(null==p?void 0:p.under_question)&&(0,N.jsx)(h.ZP,{onClick:function(){return q(null==p?void 0:p.under_question)},id:"oj-next",className:"btn-blue",type:"ghost",children:"下一题"}),(0,N.jsx)(h.ZP,{className:"btn-green",type:"ghost",loading:i,onClick:function(){b({type:A.SET_VISIBLE,payload:!0}),b({type:A.SET_TABINDEX,payload:"1"}),u()},children:"调试代码"}),"8"!==Z.get("qtype")&&(0,N.jsx)(h.ZP,{type:"primary",className:"custom-ant-disabled",loading:o,disabled:o,onClick:function(){b({type:A.SET_VISIBLE,payload:!1}),d()},children:"评测并提交"})]})]})]})}},6595:function(e,n,t){"use strict";t.d(n,{h:function(){return i}});var i=function(e){return e[e.NOMATCH=-1]="NOMATCH",e[e.OK=0]="OK",e[e.TIMEOUT=2]="TIMEOUT",e[e.PODFAILURE=3]="PODFAILURE",e[e.COMPILEFAILURE=4]="COMPILEFAILURE",e[e.EXECUTEFAILURE=5]="EXECUTEFAILURE",e}({})},58513:function(e,n,t){"use strict";t.d(n,{H7:function(){return f},MK:function(){return p},MU:function(){return l},X6:function(){return u},bM:function(){return a},fi:function(){return m},fu:function(){return s},n4:function(){return h},rX:function(){return d},vl:function(){return v},zO:function(){return c}});var i=t(82242),r=t.n(i),o=t(51836);function s(e,n){return(0,o.U2)("myproblems/".concat(e,".json"),r()({hidePopLogin:!0},n||{}))}function a(e,n){return(0,o.v_)("myproblems/".concat(e,"/code_submit.json"),n)}function l(e,n){return(0,o.v_)("myproblems/".concat(e,"/code_debug.json"),n)}function c(e,n){return n.language&&(n.language=encodeURIComponent(n.language)),(0,o.U2)("myproblems/".concat(e,"/submit_records.json"),n)}function u(e){return(0,o.U2)("myproblems/record_detail.json",{id:e})}function d(e,n){return(0,o.U2)("myproblems/".concat(e,"/result.json"),{mode:n})}function p(e,n){return(0,o.v_)("myproblems/".concat(e,"/add_notes.json"),n)}function f(e,n){return(0,o.v_)("myproblems/".concat(e,"/restore_initial_code.json"),n)}function m(e){return(0,o.v_)("myproblems/".concat(e,"/sync_code.json"))}function h(e,n){return(0,o.v_)("myproblems/".concat(e,"/update_code.json"),n)}function v(e,n){return(0,o.v_)("discusses/".concat(e,"/plus.json"),n)}},95135:function(e,n,t){"use strict";t.d(n,{_:function(){return a}});var i=t(91232),r=t.n(i),o=t(59301),s=t(43418),a=function(e){var n,t,i=(0,o.useRef)([]),a=function(){var e,n=r()(i.current);try{for(n.s();!(e=n.n()).done;){var t=e.value;clearTimeout(t)}}catch(e){n.e(e)}finally{n.f()}i.current=[]};return(0,o.useEffect)((function(){var n,t;if(a(),null!=e&&null!==(n=e.exercise)&&void 0!==n&&n.left_time&&(null==e||null===(t=e.exercise)||void 0===t||null===(t=t.exercise_events)||void 0===t?void 0:t.length)>0){var o,l,c=r()(null==e||null===(o=e.exercise)||void 0===o?void 0:o.exercise_events);try{var u=function(){var n,t=l.value;if((null==e||null===(n=e.exercise)||void 0===n?void 0:n.left_time)>60*(null==t?void 0:t.reminder_time)){var r,o=setTimeout((function(){s.Z.info({content:"".concat(null==t?void 0:t.reminder_content),icon:null,title:"提示",centered:!0,okText:"知道了"})}),1e3*((null==e||null===(r=e.exercise)||void 0===r?void 0:r.left_time)-60*(null==t?void 0:t.reminder_time)));i.current.push(o)}};for(c.s();!(l=c.n()).done;)u()}catch(e){c.e(e)}finally{c.f()}}}),[null==e||null===(n=e.exercise)||void 0===n?void 0:n.left_time,null==e||null===(t=e.exercise)||void 0===t?void 0:t.exercise_events]),a}},27666:function(e,n,t){"use strict";var i=t(43527),r=t(79640);n.Z=function(e){let n;const t=t=>()=>{n=null,e.apply(void 0,(0,i.Z)(t))},o=function(){if(null==n){for(var e=arguments.length,i=new Array(e),o=0;o{r.Z.cancel(n),n=null},o}},81228:function(e,n,t){"use strict";t.d(n,{Z:function(){return S}});var i=t(40419),r=t(38467),o=t(46840),s=t(60317),a=t(59301),l=t(92310),c=t.n(l),u=t(28647),d=t(54798),p=t(27666),f=t(36355),m=t(83116),h=t(37613);const v=e=>{const{componentCls:n}=e;return{[n]:{position:"fixed",zIndex:e.zIndexPopup}}};var g=(0,m.Z)("Affix",(e=>{const n=(0,h.TS)(e,{zIndexPopup:e.zIndexBase+10});return[v(n)]}));function x(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function _(e,n,t){if(void 0!==t&&n.top>e.top-t)return t+n.top}function w(e,n,t){if(void 0!==t&&n.bottom{const n=e.getTargetFunc(),t=null==n?void 0:n(),{prevTarget:i}=e.state;i!==t&&(y.forEach((n=>{null==i||i.removeEventListener(n,e.lazyUpdatePosition),null==t||t.addEventListener(n,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:t}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:n}=e.state,t=e.getTargetFunc(),i=null==t?void 0:t();y.forEach((t=>{null==i||i.removeEventListener(t,e.lazyUpdatePosition),null==n||n.removeEventListener(t,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:n,offsetTop:t}=e.props;return void 0===n&&void 0===t?0:t},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:n,lastAffix:t}=e.state,{onChange:i}=e.props,r=e.getTargetFunc();if(n!==j.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!r)return;const o=e.getOffsetTop(),s=e.getOffsetBottom(),a=r();if(a){const n={status:j.None},r=x(e.placeholderNodeRef.current);if(0===r.top&&0===r.left&&0===r.width&&0===r.height)return;const l=x(a),c=_(r,l,o),u=w(r,l,s);void 0!==c?(n.affixStyle={position:"fixed",top:c,width:r.width,height:r.height},n.placeholderStyle={width:r.width,height:r.height}):void 0!==u&&(n.affixStyle={position:"fixed",bottom:u,width:r.width,height:r.height},n.placeholderStyle={width:r.width,height:r.height}),n.lastAffix=!!n.affixStyle,i&&t!==n.lastAffix&&i(n.lastAffix),e.setState(n)}},e.prepareMeasure=()=>{e.setState({status:j.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,p.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,p.Z)((()=>{const n=e.getTargetFunc(),{affixStyle:t}=e.state;if(n&&t){const i=e.getOffsetTop(),r=e.getOffsetBottom(),o=n();if(o&&e.placeholderNodeRef.current){const n=x(o),s=x(e.placeholderNodeRef.current),a=_(s,n,i),l=w(s,n,r);if(void 0!==a&&t.top===a||void 0!==l&&t.bottom===l)return}}e.prepareMeasure()})),e}return(0,r.Z)(t,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:n}=this.props;return void 0!==n?n:null!=e?e:b}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:n}=this.state,{affixPrefixCls:t,rootClassName:i,children:r}=this.props,o=c()(e&&i,{[t]:!!e});let s=(0,d.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return a.createElement(u.Z,{onResize:this.updatePosition},a.createElement("div",Object.assign({},s,{ref:this.placeholderNodeRef}),e&&a.createElement("div",{style:n,"aria-hidden":"true"}),a.createElement("div",{className:o,ref:this.fixedNodeRef,style:e},a.createElement(u.Z,{onResize:this.updatePosition},r))))}}]),t}(a.Component);k.contextType=f.E_;var S=(0,a.forwardRef)(((e,n)=>{const{prefixCls:t,rootClassName:i}=e,{getPrefixCls:r}=(0,a.useContext)(f.E_),o=r("affix",t),[s,l]=g(o),u=Object.assign(Object.assign({},e),{affixPrefixCls:o,rootClassName:c()(i,l)});return s(a.createElement(k,Object.assign({},u,{ref:n})))}))},46400:function(e,n,t){"use strict";t.d(n,{Z:function(){return L}});var i=t(2720),r=t(97650),o=t(14834),s=t(38081),a=t(53183),l=t(92310),c=t.n(l),u=t(19090),d=t(19155),p=t(59301),f=t(92343),m=t(36355),h=t(17313),v=t(83116);const g=(e,n,t,i,r)=>({backgroundColor:e,border:`${i.lineWidth}px ${i.lineType} ${n}`,[`${r}-icon`]:{color:t}}),x=e=>{const{componentCls:n,motionDurationSlow:t,marginXS:i,marginSM:r,fontSize:o,fontSizeLG:s,lineHeight:a,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:p,withDescriptionPadding:f,defaultPadding:m}=e;return{[n]:Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:l,[`&${n}-rtl`]:{direction:"rtl"},[`${n}-content`]:{flex:1,minWidth:0},[`${n}-icon`]:{marginInlineEnd:i,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:a},"&-message":{color:p},[`&${n}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${t} ${c}, opacity ${t} ${c},\n padding-top ${t} ${c}, padding-bottom ${t} ${c},\n margin-bottom ${t} ${c}`},[`&${n}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${n}-with-description`]:{alignItems:"flex-start",padding:f,[`${n}-icon`]:{marginInlineEnd:r,fontSize:u,lineHeight:0},[`${n}-message`]:{display:"block",marginBottom:i,color:p,fontSize:s},[`${n}-description`]:{display:"block",color:d}},[`${n}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},_=e=>{const{componentCls:n,colorSuccess:t,colorSuccessBorder:i,colorSuccessBg:r,colorWarning:o,colorWarningBorder:s,colorWarningBg:a,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:p,colorInfoBg:f}=e;return{[n]:{"&-success":g(r,i,t,e,n),"&-info":g(f,p,d,e,n),"&-warning":g(a,s,o,e,n),"&-error":Object.assign(Object.assign({},g(u,c,l,e,n)),{[`${n}-description > pre`]:{margin:0,padding:0}})}}},w=e=>{const{componentCls:n,iconCls:t,motionDurationMid:i,marginXS:r,fontSizeIcon:o,colorIcon:s,colorIconHover:a}=e;return{[n]:{"&-action":{marginInlineStart:r},[`${n}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:o,lineHeight:`${o}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${t}-close`]:{color:s,transition:`color ${i}`,"&:hover":{color:a}}},"&-close-text":{color:s,transition:`color ${i}`,"&:hover":{color:a}}}}},y=e=>[x(e),_(e),w(e)];var b=(0,v.Z)("Alert",(e=>[y(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}))),j=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{icon:n,prefixCls:t,type:i}=e,r=k[i]||null;return n?(0,f.wm)(n,p.createElement("span",{className:`${t}-icon`},n),(()=>({className:c()(`${t}-icon`,{[n.props.className]:n.props.className})}))):p.createElement(r,{className:`${t}-icon`})},C=e=>{const{isClosable:n,prefixCls:t,closeIcon:i,handleClose:r}=e,s=!0===i||void 0===i?p.createElement(o.Z,null):i;return n?p.createElement("button",{type:"button",onClick:r,className:`${t}-close-icon`,tabIndex:0},s):null};var N=e=>{const{description:n,prefixCls:t,message:i,banner:r,className:o,rootClassName:s,style:a,onMouseEnter:l,onMouseLeave:f,onClick:h,afterClose:v,showIcon:g,closable:x,closeText:_,closeIcon:w,action:y}=e,k=j(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),[N,B]=p.useState(!1);const T=p.useRef(null),{getPrefixCls:E,direction:A,alert:P}=p.useContext(m.E_),Z=E("alert",t),[I,L]=b(Z),q=n=>{var t;B(!0),null===(t=e.onClose)||void 0===t||t.call(e,n)},M=p.useMemo((()=>void 0!==e.type?e.type:r?"warning":"info"),[e.type,r]),R=p.useMemo((()=>!!_||("boolean"==typeof x?x:!1!==w&&null!=w)),[_,w,x]),O=!(!r||void 0!==g)||g,D=c()(Z,`${Z}-${M}`,{[`${Z}-with-description`]:!!n,[`${Z}-no-icon`]:!O,[`${Z}-banner`]:!!r,[`${Z}-rtl`]:"rtl"===A},null==P?void 0:P.className,o,s,L),F=(0,d.Z)(k,{aria:!0,data:!0});return I(p.createElement(u.default,{visible:!N,motionName:`${Z}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:v},(t=>{let{className:r,style:o}=t;return p.createElement("div",Object.assign({ref:T,"data-show":!N,className:c()(D,r),style:Object.assign(Object.assign(Object.assign({},null==P?void 0:P.style),a),o),onMouseEnter:l,onMouseLeave:f,onClick:h,role:"alert"},F),O?p.createElement(S,{description:n,icon:e.icon,prefixCls:Z,type:M}):null,p.createElement("div",{className:`${Z}-content`},i?p.createElement("div",{className:`${Z}-message`},i):null,n?p.createElement("div",{className:`${Z}-description`},n):null),y?p.createElement("div",{className:`${Z}-action`},y):null,p.createElement(C,{isClosable:R,prefixCls:Z,closeIcon:_||w,handleClose:q}))})))},B=t(40419),T=t(38467),E=t(46840),A=t(60317);let P=function(e){(0,E.Z)(t,e);var n=(0,A.Z)(t);function t(){var e;return(0,B.Z)(this,t),(e=n.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return(0,T.Z)(t,[{key:"componentDidCatch",value:function(e,n){this.setState({error:e,info:n})}},{key:"render",value:function(){const{message:e,description:n,children:t}=this.props,{error:i,info:r}=this.state,o=r&&r.componentStack?r.componentStack:null,s=void 0===e?(i||"").toString():e,a=void 0===n?o:n;return i?p.createElement(N,{type:"error",message:s,description:p.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},a)}):t}}]),t}(p.Component);var Z=P;const I=N;I.ErrorBoundary=Z;var L=I},79817:function(e,n,t){"use strict";t.d(n,{Z:function(){return C}});var i=t(43527),r=t(92310),o=t.n(r),s=t(6164),a=t(59301),l=t(6774),c=t(13845),u=t(68031),d=t(81228),p=t(36355);var f=a.createContext(void 0);var m=e=>{const{href:n,title:t,prefixCls:i,children:r,className:s,target:l,replace:c}=e,u=a.useContext(f),{registerLink:d,unregisterLink:m,scrollTo:h,onClick:v,activeLink:g,direction:x}=u||{};a.useEffect((()=>(null==d||d(n),()=>{null==m||m(n)})),[n]);const{getPrefixCls:_}=a.useContext(p.E_),w=_("anchor",i),y=g===n,b=o()(`${w}-link`,s,{[`${w}-link-active`]:y}),j=o()(`${w}-link-title`,{[`${w}-link-title-active`]:y});return a.createElement("div",{className:b},a.createElement("a",{className:j,href:n,title:"string"==typeof t?t:"",target:l,onClick:e=>{c&&(e.preventDefault(),window.location.replace(n)),null==v||v(e,{title:t,href:n}),null==h||h(n)}},t),"horizontal"!==x?r:null)},h=t(17313),v=t(83116),g=t(37613);const x=e=>{const{componentCls:n,holderOffsetBlock:t,motionDurationSlow:i,lineWidthBold:r,colorPrimary:o,lineType:s,colorSplit:a}=e;return{[`${n}-wrapper`]:{marginBlockStart:-t,paddingBlockStart:t,[n]:Object.assign(Object.assign({},(0,h.Wf)(e)),{position:"relative",paddingInlineStart:r,[`${n}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${e.linkPaddingInlineStart}px 0`,"&-title":Object.assign(Object.assign({},h.vS),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${n}-link-title`]:{color:e.colorPrimary},[`${n}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${n}-wrapper-horizontal)`]:{[n]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${r}px ${s} ${a}`,content:'" "'},[`${n}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${i} ease-in-out`,width:r,backgroundColor:o,[`&${n}-ink-visible`]:{display:"inline-block"}}}},[`${n}-fixed ${n}-ink ${n}-ink`]:{display:"none"}}}},_=e=>{const{componentCls:n,motionDurationSlow:t,lineWidthBold:i,colorPrimary:r}=e;return{[`${n}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[n]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${n}-link:first-of-type`]:{paddingInline:0},[`${n}-ink`]:{position:"absolute",bottom:0,transition:`left ${t} ease-in-out, width ${t} ease-in-out`,height:i,backgroundColor:r}}}}};var w=(0,v.Z)("Anchor",(e=>{const{fontSize:n,fontSizeLG:t,paddingXXS:i}=e,r=(0,g.TS)(e,{holderOffsetBlock:i,anchorPaddingBlockSecondary:i/2,anchorTitleBlock:n/14*3,anchorBallSize:t/2});return[x(r),_(r)]}),(e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding})));function y(){return window}function b(e,n){if(!e.getClientRects().length)return 0;const t=e.getBoundingClientRect();return t.width||t.height?n===window?(n=e.ownerDocument.documentElement,t.top-n.clientTop):t.top-n.getBoundingClientRect().top:t.top}const j=/#([\S ]+)$/,k=e=>{var n;const{rootClassName:t,anchorPrefixCls:r,className:h,style:v,offsetTop:g,affix:x=!0,showInkInFixed:_=!1,children:w,items:k,direction:S="vertical",bounds:C,targetOffset:N,onClick:B,onChange:T,getContainer:E,getCurrentAnchor:A,replace:P}=e;const[Z,I]=a.useState([]),[L,q]=a.useState(null),M=a.useRef(L),R=a.useRef(null),O=a.useRef(null),D=a.useRef(!1),{direction:F,getTargetContainer:G,anchor:z}=a.useContext(p.E_),H=null!==(n=null!=E?E:G)&&void 0!==n?n:y,W=JSON.stringify(Z),U=(0,s.useEvent)((e=>{Z.includes(e)||I((n=>[].concat((0,i.Z)(n),[e])))})),V=(0,s.useEvent)((e=>{Z.includes(e)&&I((n=>n.filter((n=>n!==e))))})),K=(0,s.useEvent)((e=>{if(M.current===e)return;const n="function"==typeof A?A(e):e;q(n),M.current=n,null==T||T(e)})),Y=a.useCallback((()=>{if(D.current)return;const e=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const i=[],r=H();if(e.forEach((e=>{const o=j.exec(null==e?void 0:e.toString());if(!o)return;const s=document.getElementById(o[1]);if(s){const o=b(s,r);on.top>e.top?n:e)).link;return""}(Z,void 0!==N?N:g||0,C);K(e)}),[W,N,g]),J=a.useCallback((e=>{K(e);const n=j.exec(e);if(!n)return;const t=document.getElementById(n[1]);if(!t)return;const i=H();let r=(0,c.Z)(i,!0)+b(t,i);r-=void 0!==N?N:g||0,D.current=!0,(0,u.Z)(r,{getContainer:H,callback(){D.current=!1}})}),[N,g]),X=o()(t,`${r}-wrapper`,{[`${r}-wrapper-horizontal`]:"horizontal"===S,[`${r}-rtl`]:"rtl"===F},h,null==z?void 0:z.className),Q=o()(r,{[`${r}-fixed`]:!x&&!_}),$=o()(`${r}-ink`,{[`${r}-ink-visible`]:L}),ee=Object.assign(Object.assign({maxHeight:g?`calc(100vh - ${g}px)`:"100vh"},null==z?void 0:z.style),v),ne=e=>Array.isArray(e)?e.map((e=>a.createElement(m,Object.assign({replace:P},e,{key:e.key}),"vertical"===S&&ne(e.children)))):null,te=a.createElement("div",{ref:R,className:X,style:ee},a.createElement("div",{className:Q},a.createElement("span",{className:$,ref:O}),"items"in e?ne(k):w));a.useEffect((()=>{const e=H();return Y(),null==e||e.addEventListener("scroll",Y),()=>{null==e||e.removeEventListener("scroll",Y)}}),[W]),a.useEffect((()=>{"function"==typeof A&&K(A(M.current||""))}),[A]),a.useEffect((()=>{(()=>{var e;const n=null===(e=R.current)||void 0===e?void 0:e.querySelector(`.${r}-link-title-active`);if(n&&O.current){const{style:e}=O.current,t="horizontal"===S;e.top=t?"":`${n.offsetTop+n.clientHeight/2}px`,e.height=t?"":`${n.clientHeight}px`,e.left=t?`${n.offsetLeft}px`:"",e.width=t?`${n.clientWidth}px`:"",t&&(0,l.Z)(n,{scrollMode:"if-needed",block:"nearest"})}})()}),[S,A,W,L]);const ie=a.useMemo((()=>({registerLink:U,unregisterLink:V,scrollTo:J,activeLink:L,onClick:B,direction:S})),[L,B,J,S]);return a.createElement(f.Provider,{value:ie},x?a.createElement(d.Z,{offsetTop:g,target:H},te):te)};const S=e=>{const{prefixCls:n,rootClassName:t}=e,{getPrefixCls:i}=a.useContext(p.E_),r=i("anchor",n),[s,l]=w(r);return s(a.createElement(k,Object.assign({},e,{rootClassName:o()(l,t),anchorPrefixCls:r})))};S.Link=m;var C=S},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKC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