You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Classrooms__Lists__Progr...

1 line
277 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[3951,4977,66011,39752],{66455: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,o=!1,r=!1,a=null,s=!1,l=null,c=null,u=0;u<arguments.length;u++){var d=arguments[u];if(null!==d)switch(_typeof(d)){case"number":n=d.toFixed(1);break;case"string":d.match(new RegExp("^[0-9]\\.[0-9]+$"))?n=d:a=d;break;case"object":void 0!==d.is3D?i=d:t=d;break;case"boolean":o=d,r=!0}}null===i&&(i={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},void 0===t.material_id||r||(o=!0)),null!==a&&void 0===t.id&&(t.id=a);var p="",m=!1,h=null,f=null,g=null,x=!1,v=null,w=null,y=null;void 0!==t.height&&(t.height=Math.round(t.height)),void 0!==t.width&&(t.width=Math.round(t.width));var _=function(e){return parseFloat(e)>4?parseFloat(e):5};function j(){try{return window.self!==window.top}catch(e){return!0}}function b(){return(!t.hasOwnProperty("screenshotGenerator")||!t.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,n){c=e,B(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,D(e,n))},e.getHTML5CodebaseVersion=function(){return f},e.getParameters=function(){return t},e.setFontsCSSURL=function(e){y=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,o="auto",r=t.id,a=!1,l=0;l<arguments.length;l++){var c=arguments[l];"string"==typeof c?(c=c.toLowerCase()).match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?o=c:r=arguments[l]:"boolean"==typeof c?a=c:c instanceof HTMLElement&&(i=c)}function u(){if(s){o=I(o);var l=i||document.getElementById(r);if(l)if(e.removeExistingApplet(l,!1),void 0===t.width&&l.clientWidth&&(t.width=l.clientWidth),void 0===t.height&&l.clientHeight&&(t.height=l.clientHeight),t.width&&t.height||"html5"!==o||(delete t.width,delete t.height),h=o,"screenshot"===o)A(l,t);else{var c=!1;t.hasOwnProperty("playButton")&&t.playButton||t.hasOwnProperty("clickToLoad")&&t.clickToLoad?c=!0:t.hasOwnProperty("playButtonAutoDecide")&&t.playButtonAutoDecide&&(c=(!j()||n())&&b()),c?(h="screenshot",L(l,t,a,o)):T(l,t,a)}else console.log("possibly bug on ajax loading? ")}else setTimeout(u,200)}u()},e.getViews=function(){return i},e.isJavaInstalled=function(){return!1};var k=function(n){var o=function(){t.onError&&t.onError(),O("Error: Fetching material (id "+t.material_id+") failed.",t)},r=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",a="/materials/"+t.material_id+"?scope=basic";Z("https://"+r+"/api/proxy.php?path="+encodeURIComponent(a),(function(r){var a=JSON.parse(r),s=a.elements?a.elements.filter((function(e){return"G"==e.type||"E"==e.type}))[0]:a;if(s&&s.url){t.fileName=s.url,S(s.settings||{}),i.is3D=!0;var l="https://www.geogebra.org/images/";e.setPreviewImage(v||s.previewUrl,l+"GeoGebra_loading.png",l+"applet_play.png"),n()}else o()}),o)};function S(e){["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach((function(n){e[n]=!!e[n]})),["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"].forEach((function(n){void 0===t[n]&&void 0!==e[n]&&(t[n]=e[n])})),void 0===t.showToolBarHelp&&(t.showToolBarHelp=t.showToolBar)}function Z(e,n,t){var i=new XMLHttpRequest;i.open("GET",e),i.onload=function(){n(i.responseText)},i.onerror=t,i.send()}e.isHTML5Installed=function(){return!0},e.getLoadedAppletType=function(){return h},e.setPreviewImage=function(e,n,t){v=e,w=n,t},e.removeExistingApplet=function(e,n){var i;"string"==typeof e&&(e=document.getElementById(e)),h=null;var o=null;for(i=0;i<e.childNodes.length;i++){var r=e.childNodes[i],a=r.className;"applet_screenshot"===a?n?(r.style.display="block",h="screenshot"):r.style.display="none":"applet_scaler prerender"!==a&&(e.removeChild(r),o=a&&-1!=a.indexOf("appletParameters")?r.id:null,i--)}var s=void 0!==t.id?t.id:o,l=window[s];l&&"function"==typeof l.getBase64&&(l.remove(),window[s]=null)},e.refreshHitPoints=function(){if(_(ggbHTML5LoadedCodebaseVersion)>=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 C=function(e){return e&&"false"!==e},T=function(n,t,i){_(f)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==f||ggbHTML5LoadedCodebaseIsWebSimple&&!x)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=t.width,s=t.height;if(t.disableAutoScale=void 0===t.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():t.disableAutoScale,void 0!==t.width)if(_(f)<=4.4)C(t.showToolBar)&&(t.height-=7),C(t.showAlgebraInput)&&(t.height-=37),t.width<605&&C(t.showToolBar)&&(t.width=605,a=605);else{var u=100;(C(t.showToolBar)||C(t.showMenuBar))&&(t.hasOwnProperty("customToolBar")&&(t.customToolbar=t.customToolBar),u=C(t.showMenuBar)?245:155),a<u&&(t.width=u,a=u)}for(var d in r.style.border="none",r.style.display="inline-block",t)t.hasOwnProperty(d)&&"appletOnLoad"!==d&&r.setAttribute("data-param-"+d,t[d]);y&&r.setAttribute("data-param-fontscssurl",y),e.resize=function(){GGBAppletUtils.responsiveResize(n,t)},window.addEventListener("resize",(function(n){e.resize()}));var m="function"==typeof t.appletOnLoad?t.appletOnLoad:function(){};if(i||void 0===t.width){var h=document.createElement("div");h.className="applet_scaler",h.style.position="relative",h.style.display="block",h.appendChild(r),n.appendChild(h),t.appletOnLoad=function(n){e.resize(),m(n)}}else{t.hasOwnProperty("showSplash")||r.setAttribute("data-param-showSplash","false");var v=n.querySelector(".applet_scaler.prerender"),w=null!==v;if(w)j=v.querySelector(".ggb_preview");else{var j=P(a,s,t.borderColor,!1);(v=document.createElement("div")).className="applet_scaler",v.style.position="relative",v.style.display="block",v.style.width=a+"px",v.style.height=s+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(v,"66%"),_(f)>=5?(t.appletOnLoad=function(e){var t=n.querySelector(".ggb_preview");t&&t.parentNode.removeChild(t),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||n.appendChild(v),setTimeout((function(){e.resize()}),1)}function b(e,n){n&&"function"==typeof n.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,n.appletOnLoad):renderGGBElement(e),O("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){b(e.article,e.params)})),html5AppletsToProcess=null)},_(f)<5&&(e.className+=" geogebraweb")):b(e,n)}if(o){scriptLoadStarted=!0;for(var S=0;S<r.childNodes.length;S++){"TABLE"===r.childNodes[S].tagName&&(r.removeChild(r.childNodes[S]),S--)}if(null!==ggbHTML5LoadedScript){var Z=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=Z&&Z.parentNode.removeChild(Z)}var T=document.createElement("script"),A=function(){k(r,t)};T.src=p+g,ggbHTML5LoadedCodebaseIsWebSimple=x,ggbHTML5LoadedCodebaseVersion=f,ggbHTML5LoadedScript=T.src,O("GeoGebra HTML5 codebase loaded: '"+p+"'.",t),c||l&&"5.0"!=l?p.requirejs?__webpack_require__.e(5783).then(function(){var e=[__webpack_require__(5783)];A.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(T.onload=A,n.appendChild(T)):(x?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),A())}else k(r,t);t.height=s,t.width=a},A=function(n,t,i){var o=P(t.width,t.height,t.borderColor,i),r=document.createElement("div");r.style.position="relative",r.style.display="block",r.style.width=t.width+"px",r.style.height=t.height+"px",r.className="applet_screenshot applet_scaler"+(i?" applet_screenshot_play":""),r.appendChild(o);var a=GGBAppletUtils.getScale(t,n,i);i?(n.appendChild(M()),window.GGBT_wsf_view||(n.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(r,"66%"),n.appendChild(r),1===a||isNaN(a)||(GGBAppletUtils.scaleElement(r,a),r.style.width=t.width+"px",r.style.height=t.height+"px",r.parentNode.style.width=t.width*a+"px",r.parentNode.style.height=t.height*a+"px"),e.resize=function(){N(n,o,r,i)},window.addEventListener("resize",(function(n){e.resize()})),e.resize()};function N(e,n,i,o){if(e.contains(n)){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if("fullscreencontent"!==e.id)return;window.GGBT_wsf_view.setCloseBtnPosition(e)}var r=GGBAppletUtils.getScale(t,e,o);null!==i.parentNode&&(isNaN(r)||1===r?(GGBAppletUtils.scaleElement(i,1),i.parentNode.style.width=t.width+"px",i.parentNode.style.height=t.height+"px"):(GGBAppletUtils.scaleElement(i,r),i.parentNode.style.width=t.width*r+"px",i.parentNode.style.height=t.height*r+"px")),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(e),"object"===_typeof(window.GGBT_ws_header_footer)&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}e.onExitFullscreen=function(e,n){n.appendChild(e)};var L=function(e,n,t,i){A(e,n,!0);for(var o=function(){var t=[];for(a=0;a<e.childNodes.length;a++)t.push(e.childNodes[a]);if(window.GGBT_wsf_view){var o=window.GGBT_wsf_view.renderFullScreen(e,n.id),r=document.getElementById("fullscreencontainer"),s=jQuery(e).find(".fullscreencontent");s.length>0?(o.remove(),s.attr("id","fullscreencontent").show(),jQuery(r).append(s),window.dispatchEvent(new Event("resize"))):T(o,n,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=i,T(e,n,!1);if(!window.GGBT_wsf_view)for(a=0;a<t.length;a++)e.removeChild(t[a])},r=e.getElementsByClassName("ggb_preview_play"),a=0;a<r.length;a++)r[a].addEventListener("click",o,!1),r[a].addEventListener("ontouchstart",o,!1);"function"==typeof window.ggbAppletPlayerOnload&&window.ggbAppletPlayerOnload(e),b()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},M=function(){var e=document.createElement("div");if(e.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var n='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',t=document.createElement("style");t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),document.getElementsByTagName("head")[0].appendChild(t)}return e},P=function(e,n,t,i){var o=document.createElement("div");o.className="ggb_preview",o.style.position="absolute",o.style.zIndex="90",o.style.width=e-2+"px",o.style.height=n-2+"px",o.style.top="0px",o.style.left="0px",o.style.overflow="hidden",o.style.backgroundColor="white";var r="lightgrey";void 0!==t&&(r="none"===t?"transparent":t),o.style.border="1px solid "+r;var a,s,l,c=document.createElement("img");if((c.style.position="relative",c.style.zIndex="1000",c.style.top="-1px",c.style.left="-1px",null!==v&&c.setAttribute("src",v),c.style.opacity=.7,null!==w)&&!i){(a=document.createElement("img")).style.position="absolute",a.style.zIndex="1001",a.style.opacity=1,c.style.opacity=.3,(s=360)>e/4*3&&(s=e/4*3),l=s/5.8,a.setAttribute("src",w),a.setAttribute("width",s),a.setAttribute("height",l);var u=(e-s)/2,d=(n-l)/2;a.style.left=u+"px",a.style.top=d+"px",o.appendChild(a)}return o.appendChild(c),o},I=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},E=["web","webSimple","web3d","tablet","tablet3d","phone"],D=function(e,n){if(f=e,n)B(f,!0);else{var r,a,s=!o;if(s){var l=_(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 u in a=c>0?f:0===c?r+f:"https://www.geogebra.org/apps/5.2.814.0/",E)if(f.slice(-1*E[u].length)===E[u]||f.slice(-1*(E[u].length+1))===E[u]+"/")return void B(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||C(t.showToolBar)||C(t.showMenuBar)||C(t.showAlgebraInput)||C(t.enableRightClick)||t.appName&&"classic"!=t.appName?a+="web3d/":a+="webSimple/",B(a,!1)}},B=function(e,n){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===n&&(n=-1===e.indexOf("http")),m=n,g="web.nocache.js",x=!1;var t=p.split("/");t.length>1&&(n||"webSimple"!==t[t.length-2]?E.indexOf(t[t.length-2])>=0&&(g=t[t.length-2]+".nocache.js"):(g="webSimple.nocache.js",x=!0)),t=e.split("/"),"test"===(f=t[t.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 i=parseFloat(f);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),D("5.0",n))}},O=function(e,n){window.console&&window.console.log&&(!n||void 0===n.showLogging||n.showLogging&&"false"!==n.showLogging)&&console.log(e)};function H(){var e=n;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),D(e,!1),null!==c&&B(c,m),s=!0}return void 0!==t.material_id?k(H):H(),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,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,s=null!=e.noScaleMargin&&e.noScaleMargin,l=(r=e.autoHeight)&&"false"!==r,c=function(e,n,t,i,o,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,u=0,d=0,p=0,m=0,h=0;if(a)l=a.offsetWidth,c=Math.max(i?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),u=l):(l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var f=e.getBoundingClientRect();f.left>0&&f.left<=l&&(void 0===o||!o)&&("rtl"===document.dir?(p=l-f.width-f.left,m=u<=480?10:30):(m=f.left,p=u<=480?10:30),d=m+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===t||!t)&&n>0&&n+d<l?l=n:l-=d,"object"!==_typeof(window.GGBT_wsf_view)||!window.GGBT_wsf_view.isFullscreen()||void 0!==t&&t||(c-=h)),{width:l,height:c}}(n,e.width,t,l,a&&window.GGBT_wsf_view||s,o),u=parseInt(c.width),d=e.width,p=e.height;if(void 0===d){var m=n.querySelector(".appletParameters");m&&(d=m.offsetWidth,p=m.offsetHeight)}var h=u/d,f=a?1:c.height/p;return void 0===t||t||(h=Math.min(1,h),f=Math.min(1,f)),Math.min(h,f)}function i(e,n,i){var o,r=1,a=!1;return e.hasOwnProperty("allowUpscale")&&(a=e.allowUpscale),e.hasOwnProperty("scale")&&(r=parseFloat(e.scale),(isNaN(r)||null===r||0===r)&&(r=1),r>1&&(a=!0)),n&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=t(e,n,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var n=Math.min(window.innerWidth,document.documentElement.clientWidth),t=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(n-i.width)/2,r=(t-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(t,r){var a=t.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(t)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var s=i(r,t);e()&&a.setAttribute("data-param-scale",s);for(var l=null,c=0;c<t.childNodes.length;c++)if(void 0!==t.childNodes[c].className&&t.childNodes[c].className.match(/^applet_scaler/)){l=t.childNodes[c];break}if(null!==l&&null!==l.querySelector(".noscale"))return;var u=void 0!==r.id?r.id:"ggbApplet",d=window[u];null!=d&&d.recalculateEnvironments||null===l||l.className.match(/fullscreen/)||(l.parentNode.style.transform="",isNaN(s)||1===s?(n(l,1),l.parentNode.style.width=r.width+"px",l.parentNode.style.height=r.height+"px"):(l.parentNode.style.width=r.width*s+"px",l.parentNode.style.height=r.height*s+"px",n(l,s))),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&o(t),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(a).parents(".content-added-content"))}},isFlexibleWorksheetEditor:e,positionCenter:o,getScale:i,scaleElement:n}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var e=n.location.search;return-1!=e.indexOf(J)||-1!=e.indexOf(K)}function q(e,n){}q(H,I),webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{},t;function u(){return v(),t}function v(){if(!t){var e=o.createElement(Q);if(e.id=L,e.style.cssText=R+S,e.tabIndex=-1,o.body.appendChild(e),t=e.contentWindow.document,-1==navigator.userAgent.indexOf(T)){t.open();var n=document.compatMode==U?V:W;t.write(n+X),t.close()}}}function w(e){q(cb,eb),function(e){function n(){return _typeof(o.readyState)==Y?_typeof(o.body)!=Y&&null!=o.body:/loaded|complete/.test(o.readyState)}var t=n();if(t)e();else{o.addEventListener&&o.addEventListener(Z,r,!1);var i=setInterval((function(){r()}),$)}function r(){if(!t){if(!n())return;t=!0,e(),o.removeEventListener&&o.removeEventListener(Z,r,!1),i&&clearInterval(i)}}}((function(){var n,t,i,o;n=e,t=u(),i=t.body,(o=t.createElement(_)).language=ab,o.crossOrigin=W,o.src=n,webModule.__errFn&&(o.onerror=function(){webModule.__errFn(L,new Error(bb+n))}),i.appendChild(o),q(cb,db)}))}function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=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;t<n.length;++t)if(-1!=n[t].src.indexOf(xb))return e(n[t].src);return W}()),t==W&&(t=function(){var e=o.getElementsByTagName(yb);return e.length>O?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 a(e){var n=o[e](),t=i[e];if(n in t)return n;var a=[];for(var s in t)a[t[s]]=s;throw r&&r(e,a,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]=a(n));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 n=s[L].bindings;s[L].bindings=function(){for(var t=n?n():{},i=e[webModule.__softPermutationId],o=O;o<i.length;o++){var r=i[o];t[r[O]]=r[P]}return t}},webModule.__startLoadingFragment=function(e){return C(e)},webModule.__installRunAsyncCode=function(e){var n=u(),t=n.body,i=n.createElement(_);i.language=ab,i.text=e,t.appendChild(i),t.removeChild(i)},A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},"function"!=typeof window.web3d&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),"function"!=typeof window.webSimple&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet}else console.warn("deployggb.js was loaded twice")})()},55087:function(e,n,t){"use strict";function i(e){var n=!0;if(e.length>0){for(var t=0;t<e.length;t++)if(0==e[t].compile_success||!e[t].compile_success){n=!1;break}}else n=!1;return n}function o(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=[],i=0;i<e.length;i++){var o=e[i],r=n?"".concat(n,"/").concat(o.name):"".concat(o.name);t.push({title:o.name,type:o.type,isLeaf:"tree"!==o.type,key:r})}return t}function r(e,n,t){for(var i=0;i<e.length;i++){var o=e[i];if(o.key===n){o.children=t;break}o.children&&r(o.children,n,t)}return e}function a(e,n,t){var i;return function(){var o=this,r=arguments,a=function(){i=null,t||e.apply(o,r)},s=t&&!i;clearTimeout(i),i=setTimeout(a,n),s&&e.apply(o,r)}}t.d(n,{Ax:function(){return r},Ds:function(){return a},KI:function(){return s},SI:function(){return o},f1:function(){return i}});var s=t(27065).Z.API_SERVER},58325:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var i=t(7557),o=t.n(i),r=t(41498),a=t.n(r),s=t(79800),l=t.n(s),c=t(59301),u=t(78241),d=t(8591),p=t(43418),m=t(22744),h=t(8772),f=t(52306),g=t(95237),x=t(43604),v=t(99232),w=t.n(v),y=t(6457),_=t(7880),j={tips:"tips___e8J4O",homeworkType:"homeworkType___ZjN2X",antdTable:"antdTable___amDdp",modalWrapper:"modalWrapper___XPojI"},b=t(69363),k=t(47762),S=t(37712),Z=(0,_.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,classroomList:e.classroomList}}))((function(e){var n=e.dispatch,t=e.courseEndTime,i=(e.classroomList,e.successCallback),r=void 0===i?function(){}:i,s=e.visible,v=e.homeworkIds,_=e.courseId,Z=e.isBatch,C=(e.shixunHomeworks,u.Z.useForm()),T=l()(C,1)[0],A=(0,c.useState)(!1),N=l()(A,2),L=N[0],M=N[1],P=(0,c.useState)(!1),I=l()(P,2),E=I[0],D=I[1],B=(0,c.useState)(!1),O=l()(B,2),H=O[0],R=O[1],z=(0,c.useState)([]),Y=l()(z,2),G=Y[0],F=Y[1],V=(0,c.useState)([]),W=l()(V,2),U=W[0],q=W[1],K=(0,c.useState)([]),J=l()(K,2),Q=J[0],X=J[1],$=(0,c.useState)([]),ee=l()($,2),ne=ee[0],te=ee[1],ie=(0,c.useState)([]),oe=l()(ie,2),re=oe[0],ae=oe[1],se=(0,c.useState)([]),le=l()(se,2),ce=le[0],ue=le[1],de=(0,c.useState)([]),pe=l()(de,2),me=pe[0],he=pe[1],fe=(0,c.useState)([]),ge=l()(fe,2),xe=ge[0],ve=ge[1],we=(0,c.useState)([]),ye=l()(we,2),_e=ye[0],je=ye[1];(0,c.useEffect)((function(){s?be():Se()}),[s]);var be=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return M(!0),e.next=3,(0,b.oR)(v[0],{course_id:_});case 3:n=e.sent,R(n.no_group),Z?(he(n.all_course_groups),ve(n.all_course_groups)):(te(n.late_course_groups),ae(n.late_course_groups),F(n.submit_course_groups),q(n.submit_course_groups)),M(!1),T.setFieldsValue({end_time:w()()});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ke=function(){var e=a()(o()().mark((function e(){var t,i,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=T.getFieldsValue(),i=w()(t.end_time).format("YYYY-MM-DD HH:mm"),!(Z?0===_e.length:0===Q.length&&0===ce.length)||H){e.next=6;break}return d.ZP.warning("请选择需要操作的班级"),e.abrupt("return");case 6:return D(!0),e.next=9,(0,b.Mc)(_,{no_group:H,homework_ids:v,group_ids:Z?_e:Q,end_time:i,late_group_ids:Z?_e:ce});case 9:a=e.sent,D(!1),0===a.status&&(Se(),d.ZP.success("操作成功"),r(),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}));case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Se=function(){X([]),ue([]),q([]),ae([])};return(0,S.jsxs)(p.Z,{centered:!0,title:"立即截止",className:j.modalWrapper,width:Z||H?520:760,open:s,confirmLoading:E,destroyOnClose:!0,okText:"截止",cancelText:"取消",onOk:function(){return ke()},onCancel:function(){Se(),n({type:"classroomList/setActionTabs",payload:{}})},children:[(0,S.jsxs)("div",{className:j.tips,children:[(0,S.jsx)("div",{children:"1、截止后学生不能再提交作业。"}),(0,S.jsx)("div",{children:"2、本操作只对“提交中”、“补交中”的作业有效。"})]}),(0,S.jsx)(u.Z,{form:T,layout:"vertical",children:(0,S.jsx)(u.Z.Item,{name:"end_time",label:"截止时间",children:(0,S.jsx)(m.default,{style:{width:"100%"},disabledDate:function(e){return(0,k.Q8)(e,t)},disabledTime:function(e){return(0,k.d0)(e)},placeholder:"请选择结束时间",showTime:{format:"HH:mm",defaultValue:w()((0,y.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),!H&&(0,S.jsx)(S.Fragment,{children:Z?(0,S.jsxs)("div",{children:[(0,S.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){ve(me.filter((function(n){return n.name.indexOf(e.target.value)>-1})))}}),(0,S.jsx)(f.Z,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){je(e)}},rowKey:"id",pagination:!1,dataSource:xe,loading:L,columns:[{title:"班级",dataIndex:"name"}]})]}):(0,S.jsxs)(g.Z,{gutter:24,children:[(0,S.jsxs)(x.Z,{span:14,children:[(0,S.jsx)("div",{className:j.homeworkType,children:"作业截止"}),(0,S.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){q(G.filter((function(n){return n.name.indexOf(e.target.value)>-1})))}}),(0,S.jsx)("div",{className:j.tableWrapper,children:(0,S.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){X(e)}},rowKey:"id",pagination:!1,dataSource:U,loading:L,columns:[{title:"班级",dataIndex:"name",ellipsis:!0},{title:"发布时间",dataIndex:"publish_time"},{title:"截止时间",dataIndex:"end_time"}]})})]}),(0,S.jsxs)(x.Z,{flex:10,style:{maxWidth:"280px"},children:[(0,S.jsx)("div",{className:j.homeworkType,children:"补交截止"}),(0,S.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){ae(ne.filter((function(n){return n.name.indexOf(e.target.value)>-1})))}}),(0,S.jsx)("div",{className:j.tableWrapper,children:(0,S.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){ue(e)}},rowKey:"id",pagination:!1,loading:L,dataSource:re,columns:[{title:"班级",dataIndex:"name",ellipsis:!0,width:120},{title:"截止时间",dataIndex:"late_time"}]})})]})]})})]})}))},74908:function(e,n,t){"use strict";t.d(n,{Z:function(){return y}});var i=t(7557),o=t.n(i),r=t(41498),a=t.n(r),s=t(79800),l=t.n(s),c=t(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",m=t(92310),h=t.n(m),f=t(71418),g=t(2859),x=t(51136),v=t(6457),w=t(37712),y=function(e){var n=e.data,t=e.className,i=e.fullWidth,r=e.style,s=void 0===r?{}:r,m=e.onClose,y=e.onOk,_=e.showFullTools,j=e.noAssociationId,b=(0,c.useRef)(null),k=(0,c.useRef)(null),S=(0,c.useState)(!1),Z=l()(S,2),C=Z[0],T=Z[1],A=(0,c.useState)("正在加载中"),N=l()(A,2),L=N[0],M=N[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&&P()}),[null==n?void 0:n.visible]);var P=function(){var e=a()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(!0),M("正在加载中"),e.next=4,(0,v.ZJ)(null==n?void 0:n.src);case 4:t=e.sent,b.current.src="",b.current.src=t,b.current.onload=function(){E()},T(!1),M("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=a()(o()().mark((function e(t){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(!0),M("正在保存中"),e.next=4,(0,x.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||j){e.next=12;break}return e.next=8,(0,x.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&&y(),e.next=13;break;case 12:null!=i&&i.id&&y(i);case 13:T(!1),M("");case 15:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),E=function(){k.current=new g.hP(b.current),k.current.addEventListener("render",I),k.current.addEventListener("beforeclose",m),_&&(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,w.jsx)(c.Fragment,{children:(null==n?void 0:n.visible)&&(0,w.jsxs)("div",{className:h()(u,t,i?p:""),style:s,children:[(0,w.jsx)(f.Z,{spinning:C,tip:L,style:{position:"absolute"}}),(0,w.jsx)("img",{className:d,ref:b})]})})}},37507:function(e,n,t){"use strict";t.d(n,{h:function(){return x}});var i=t(82242),o=t.n(i),r=t(79800),a=t.n(r),s=t(59301),l=t(57809),c=t(78241),u=t(3113),d=t(89780),p=t.n(d),m=(t(81974),t(3693),t(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 n=e.value,t=e.onChange,i=e.mode,r=e.options,l=void 0===r?{}:r,c=(0,s.useRef)(),u=(0,s.useState)(),d=a()(u,2),h=d[0],f=d[1];return(0,s.useEffect)((function(){if(h){var e=function(e){var n=e.getValue();t&&t(n)};return h.on("change",e),function(){h.off("change",e)}}}),[h,t]),(0,s.useEffect)((function(){h&&h.setOption("mode",i)}),[h,i]),(0,s.useEffect)((function(){h&&(n===h.getValue()&&""!==n||setTimeout((function(){h.setValue(n||"")}),300))}),[h,n]),(0,s.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,o()({mode:i,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})})}n.Z=function(e){var n=e.callback,t=e.onCancel,i=(0,s.useState)("python"),r=a()(i,2),d=r[0],p=r[1];return(0,m.jsxs)(c.Z,o()(o()({},f),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){n(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:d})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(u.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))}},11094:function(e,n,t){"use strict";t.d(n,{Z:function(){return Ce}});var i=t(91232),o=t.n(i),r=t(79800),a=t.n(r),s=t(85573),l=t.n(s),c=t(59301),u=t(89780),d=t.n(u),p=t(76374),m=(t(81974),t(6313),t(25717),t(99498),t(25419),t(67549),t(42783)),h=t(37712),f=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,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=t(82242),x=t.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 n=e.onActionCallback,t=e.title,i=e.icon,o=e.actionName,r=e.className,a=void 0===r?"":r,s=e.children;return(0,h.jsxs)("a",{title:t,className:a,onClick:function(){n(o)},children:[(0,h.jsx)("i",{className:"".concat(i)}),s]})}var y=function(e){var n=e.watch,t=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,s=e.hidetoolBar,l=e.extraUse,c=[].concat(v,[{title:"".concat(n?"关闭实时预览":"开启实时预览"),icon:"".concat(n?"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,n){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(w,x()(x()({},e),{},{onActionCallback:o})):(0,h.jsx)("span",{className:"v-line"})},n)})),t?(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:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(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:o,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:o,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:o,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:o})})]})},_=t(27308),j=t(78241),b=t(8772),k=t(3113),S={labelCol:{span:4},wrapperCol:{span:20}},Z=function(e){var n=e.callback,t=e.onCancel;return(0,h.jsxs)(j.Z,x()(x()({},S),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},style:{width:500},children:[(0,h.jsx)(j.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(b.Z,{})}),(0,h.jsx)(j.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(b.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(k.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))},C=t(37507),T=t(8591),A=t(55087),N=j.Z.useForm,L={width:280,marginRight:10},M={labelCol:{span:5},wrapperCol:{span:19}},P=function(e){var n=e.callback,t=e.onCancel,i=N(),o=a()(i,1)[0],r=(0,c.useRef)();function s(e,n){-1!==e.status?o.setFieldsValue({src:"/api/attachments/".concat(e.id),type:n.type}):T.ZP.error(e.message)}return(0,h.jsxs)(j.Z,x()(x()({form:o},M),{},{className:"upload-image-panel",onFinish:function(e){n(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)(b.Z,{style:L})}),(0,h.jsx)(I,{onFileChange:function(e){var n=e.target.files[0];r.current=n,E(n,s)}})]})}),(0,h.jsx)(j.Z.Item,{label:"图片描述",name:"alt",children:(0,h.jsx)(b.Z,{style:{width:264}})}),(0,h.jsxs)(j.Z.Item,{style:{textAlign:"right"},children:[(0,h.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(k.ZP,{type:"default",onClick:t,children:"取消"})]})]}))};function I(e){var n=e.onFileChange;return(0,h.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,h.jsx)("input",{type:"file",onChange:n})]})}function E(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(A.KI,"/api/attachments.json")),i.send(t)}var D=t(95237),B=t(74908),O=function(e){var n=e.callback,t=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,h.jsx)(D.Z,{style:{height:"100vh"},children:(0,h.jsx)(B.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){n({src:e.url})},onClose:t})})},H=t(7557),R=t.n(H),z=t(41498),Y=t.n(z),G=t(37205),F=t.n(G),V=t(12378);function W(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(W,go.CommandHandler),W.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},W.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")},W.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")},W.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")},W.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")},W.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")}},W.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")}},W.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;i<t.length-1;i++){var o=t[i],r=o.actualBounds.y+o.actualBounds.height+e;t[i+1].move(new go.Point(o.actualBounds.x,r))}n.commitTransaction("align Column")},W.prototype.alignRow=function(e){void 0===e&&(e=0),e=parseFloat(e);var n=this.diagram;n.startTransaction("align Row");var t=new Array;n.selection.each((function(e){e instanceof go.Link||t.push(e)}));for(var i=0;i<t.length-1;i++){var o=t[i],r=o.actualBounds.x+o.actualBounds.width+e;t[i+1].move(new go.Point(r,o.actualBounds.y))}n.commitTransaction("align Row")},W.prototype.canRotate=function(e){var n=this.diagram;return null!==n&&!n.isReadOnly&&!n.isModelReadOnly&&!(n.selection.count<1)},W.prototype.rotate=function(e){var n;void 0===e&&(e=90),(n=this.diagram).startTransaction("rotate "+e.toString()),(n=this.diagram).selection.each((function(n){n instanceof go.Link||n instanceof go.Group||(n.angle+=e)})),n.commitTransaction("rotate "+e.toString())},W.prototype.pullToFront=function(){var e=this.diagram;e.startTransaction("pullToFront");var n=new go.Map;e.selection.each((function(e){n.set(e.layer,0)})),n.iteratorKeys.each((function(e){var t=0;e.parts.each((function(e){if(!e.isSelected){var n=e.zOrder;isNaN(n)?e.zOrder=0:t=Math.max(t,n)}})),n.set(e,t)})),e.selection.each((function(e){W._assignZOrder(e,n.get(e.layer)+1)})),e.commitTransaction("pullToFront")},W.prototype.pushToBack=function(){var e=this.diagram;e.startTransaction("pushToBack");var n=new go.Map;e.selection.each((function(e){n.set(e.layer,0)})),n.iteratorKeys.each((function(e){var t=0;e.parts.each((function(e){if(!e.isSelected){var n=e.zOrder;isNaN(n)?e.zOrder=0:t=Math.min(t,n)}})),n.set(e,t)})),e.selection.each((function(e){W._assignZOrder(e,n.get(e.layer)-1-W._findGroupDepth(e))})),e.commitTransaction("pushToBack")},W._assignZOrder=function(e,n,t){void 0===t&&(t=e),e.layer===t.layer&&(e.zOrder=n),e instanceof go.Group&&e.memberParts.each((function(e){W._assignZOrder(e,n+1,t)}))},W._findGroupDepth=function(e){if(e instanceof go.Group){var n=0;return e.memberParts.each((function(e){n=Math.max(n,W._findGroupDepth(e))})),n+1}return 0},W.prototype.doKeyDown=function(){var e=this.diagram;if(null!==e){var n=e.lastInput;if("Up"===n.key||"Down"===n.key||"Left"===n.key||"Right"===n.key){var t=this.arrowKeyBehavior;if("none"===t)return;if("select"===t)return void this._arrowKeySelect();if("move"===t)return void this._arrowKeyMove();if("tree"===t)return void this._arrowKeyTree()}go.CommandHandler.prototype.doKeyDown.call(this)}},W.prototype._getAllParts=function(){var e=new Array;return this.diagram.nodes.each((function(n){e.push(n)})),this.diagram.parts.each((function(n){e.push(n)})),e},W.prototype._arrowKeyMove=function(){var e=this.diagram,n=e.lastInput,t=0,i=0;if(n.control||n.meta)t=1,i=1;else if(null!==e.grid){var o=e.grid.gridCellSize;i=o.width,t=o.height}e.startTransaction("arrowKeyMove"),e.selection.each((function(e){"Up"===n.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y-t)):"Down"===n.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y+t)):"Left"===n.key?e.move(new go.Point(e.actualBounds.x-i,e.actualBounds.y)):"Right"===n.key&&e.move(new go.Point(e.actualBounds.x+i,e.actualBounds.y))})),e.commitTransaction("arrowKeyMove")},W.prototype._arrowKeySelect=function(){var e=this.diagram,n=e.lastInput,t=null;"Up"===n.key?t=this._findNearestPartTowards(270):"Down"===n.key?t=this._findNearestPartTowards(90):"Left"===n.key?t=this._findNearestPartTowards(180):"Right"===n.key&&(t=this._findNearestPartTowards(0)),null!==t&&(n.shift?t.isSelected=!0:n.control||n.meta?t.isSelected=!t.isSelected:e.select(t))},W.prototype._findNearestPartTowards=function(e){var n=this.diagram.selection.first();if(null===n)return null;for(var t=n.actualBounds.center,i=this._getAllParts(),o=1/0,r=n,a=0;a<i.length;a++){var s=i[a];if(s!==n&&s.canSelect()){var l=s.actualBounds.center,c=t.directionPoint(l),u=this._angleCloseness(c,e);if(u<=45){var d=t.distanceSquaredPoint(l);(d*=1+Math.sin(u*Math.PI/180))<o&&(o=d,r=s)}}}return r},W.prototype._angleCloseness=function(e,n){return Math.min(Math.abs(n-e),Math.min(Math.abs(n+360-e),Math.abs(n-360-e)))},W.prototype._arrowKeyTree=function(){var e=this.diagram,n=e.selection.first();if(n instanceof go.Node){var t=e.lastInput;if("Right"===t.key)if(n.isTreeLeaf);else if(n.isTreeExpanded){null!==(o=this._sortTreeChildrenByY(n).first())&&e.select(o)}else e.commandHandler.canExpandTree(n)&&e.commandHandler.expandTree(n);else if("Left"===t.key){if(!n.isTreeLeaf&&n.isTreeExpanded)e.commandHandler.canCollapseTree(n)&&e.commandHandler.collapseTree(n);else null!==(r=n.findTreeParentNode())&&e.select(r)}else if("Up"===t.key){if(null!==(r=n.findTreeParentNode()))if((s=(a=this._sortTreeChildrenByY(r)).indexOf(n))>0){for(var i=a.elt(s-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===t.key){var o;if(n.isTreeExpanded&&!n.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(n).first())&&e.select(o);else for(;null!==n;){var r,a,s;if(null===(r=n.findTreeParentNode()))break;if((s=(a=this._sortTreeChildrenByY(r)).indexOf(n))<a.length-1){e.select(a.elt(s+1));break}n=r}}var l=e.selection.first();null!==l&&e.scrollToRect(l.actualBounds)}},W.prototype._sortTreeChildrenByY=function(e){var n=(new go.List).addAll(e.findTreeChildrenNodes());return n.sort((function(e,n){var t=e.location,i=n.location;return t.y<i.y?-1:t.y>i.y?1:t.x<i.x?-1:t.x>i.x?1:0})),n},W.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},W.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(W.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(W.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 U=W,q=(t(31270),t(85160)),K=t(43418),J=t(43604),Q=t(51136),X="myPaletteDiv___Xjz2I",$="maxH60___Pd4Re";window.go=V;var ee=function(e){var n=e.onCancel,t=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),s=(0,c.useRef)(!1),l=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],m=d[1],f=function(){var e=Y()(R()().mark((function e(){var n,o;return R()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.current.makeImage(),e.next=3,(0,Q.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:n.src}});case 3:o=e.sent,t({src:o.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)(K.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)(J.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(J.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:n,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)(q.FI,{initDiagram:function(){var e=V.GraphObject.make,n="#ff3333",t="#3358ff",a="#25ad23",s="#d533ff",l="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",m="#d5ebff",h="#f2dfe0",f="#a5d2fa",g="#cccccc",x="#b3e6b3",v="#fcbbbd";function w(n,t){var i=function(e,t){e.handled=!0,e.diagram.model.commit((function(i){var o=t.part.adornedPart,r=(new V.Point).setRectSpot(o.actualBounds,n);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var s={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(s);var l=e.diagram.findNodeForData(a);l.location=r,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(V.Shape,{figure:t,alignment:n,alignmentFocus:n.opposite(),width:n.equals(V.Spot.Top)||n.equals(V.Spot.Bottom)?25:18,height:n.equals(V.Spot.Top)||n.equals(V.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 y(n){return e(V.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 _(e,n){return function(t,i){t.handled=!0,t.diagram.model.commit((function(t){t.set(i.part.adornedPart.data,e,n)}))}}function j(n,t){return t||(t="color"),e(V.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:_(t,n),contextClick:_(t,n)})}function b(){return[e("ContextMenuButton",e(V.Panel,"Horizontal",j(u,"fill"),j(p,"fill"),j(m,"fill"),j(h,"fill"))),e("ContextMenuButton",e(V.Panel,"Horizontal",j(g,"fill"),j(x,"fill"),j(f,"fill"),j(v,"fill")))]}function k(){return[e("ContextMenuButton",e(V.Panel,"Horizontal",j(d),j(a),j(t),j(n))),e("ContextMenuButton",e(V.Panel,"Horizontal",j(u),j(s),j(l),j(c)))]}function S(n,t){return t||(t="thickness"),e(V.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:_(t,n),contextClick:_(t,n)})}function Z(n,t){return t||(t="dash"),e(V.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:_(t,n),contextClick:_(t,n)})}function C(){return[e("ContextMenuButton",e(V.Panel,"Horizontal",S(1),S(2),S(3),S(4))),e("ContextMenuButton",e(V.Panel,"Horizontal",Z(null),Z([2,4]),Z([4,4])))]}function T(n,t){return t||(t="figure"),e(V.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:_(t,n),contextClick:_(t,n)})}function A(n){return e(V.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(n+4).toString()+" H3"})}function N(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(V.Shape,{geometryString:t,margin:2,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:_("dir",n),contextClick:_("dir",n)})}function L(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",V.Spot.stringify(V.Spot.AllSides)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(V.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 M(n,t){var i=0,o=V.Spot.RightSide;n.equals(V.Spot.Top)?(i=270,o=V.Spot.TopSide):n.equals(V.Spot.Left)?(i=180,o=V.Spot.LeftSide):n.equals(V.Spot.Bottom)&&(i=90,o=V.Spot.BottomSide),t||(i-=180);var r=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",V.Spot.stringify(o)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(V.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:r,contextClick:r})}return i.current=new V.Diagram(o.current,{padding:20,grid:e(V.Panel,"Grid",e(V.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(V.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(U),"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(V.Node,"Auto",{locationSpot:V.Spot.Center,locationObjectName:"SHAPE",desiredSize:new V.Size(120,60),minSize:new V.Size(40,40),resizable:!0,resizeCellSize:new V.Size(10,10),rotatable:!0},new V.Binding("location","loc",V.Point.parse).makeTwoWay(V.Point.stringify),new V.Binding("desiredSize","size",V.Size.parse).makeTwoWay(V.Size.stringify),e(V.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:V.Spot.AllSides,toSpot:V.Spot.AllSides},new V.Binding("figure"),new V.Binding("fill"),new V.Binding("stroke","borderColor"),new V.Binding("strokeWidth","thickness"),new V.Binding("strokeDashArray","dash")),e(V.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(V.TextBlock,{margin:1,textAlign:"center",overflow:V.TextBlock.OverflowEllipsis,editable:!0},new V.Binding("text").makeTwoWay(),new V.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(V.Panel,"Vertical",{maxSize:new V.Size(200,NaN)},e(V.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new V.Binding("text")),e(V.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new V.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(V.Adornment,"Spot",e(V.Placeholder,{padding:10}),w(V.Spot.Top,"TriangleUp"),w(V.Spot.Left,"TriangleLeft"),w(V.Spot.Right,"TriangleRight"),w(V.Spot.Bottom,"TriangleDown"),y({alignment:new V.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(V.Panel,"Horizontal",T("Rectangle"),T("RoundedRectangle"),T("Ellipse"),T("Diamond"))),e("ContextMenuButton",e(V.Panel,"Horizontal",T("Parallelogram2"),T("ManualOperation"),T("Procedure"),T("Cylinder1"))),e("ContextMenuButton",e(V.Panel,"Horizontal",T("Terminator"),T("CreateRequest"),T("Document"),T("TriangleDown"))),b(),k(),C()),i.current.groupTemplate=e(V.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:V.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 V.Binding("location","loc",V.Point.parse).makeTwoWay(V.Point.stringify),e(V.Panel,"Auto",{name:"BODY"},e(V.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:V.Spot.AllSides,toSpot:V.Spot.AllSides},new V.Binding("fill"),new V.Binding("stroke","color"),new V.Binding("strokeWidth","thickness"),new V.Binding("strokeDashArray","dash")),e(V.Placeholder,{background:"transparent",margin:20})),e(V.TextBlock,{alignment:V.Spot.Top,alignmentFocus:V.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new V.Binding("text"),new V.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(V.Adornment,"Spot",e(V.Panel,"Auto",e(V.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(V.Placeholder,{margin:1.5})),y({alignment:V.Spot.TopRight,alignmentFocus:V.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",b(),k(),C()),i.current.linkTemplate=e(V.Link,{layerName:"Foreground",routing:V.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new V.Binding("fromSpot","fromSpot",V.Spot.parse),new V.Binding("toSpot","toSpot",V.Spot.parse),new V.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new V.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new V.Binding("points").makeTwoWay(),e(V.Shape,{strokeWidth:2},new V.Binding("stroke","color"),new V.Binding("strokeWidth","thickness"),new V.Binding("strokeDashArray","dash")),e(V.Shape,{segmentIndex:0,segmentOffset:new V.Point(15,0),segmentOrientation:V.Link.OrientAlong,alignmentFocus:V.Spot.Right,figure:"circle",width:10,strokeWidth:0},new V.Binding("fill","color"),new V.Binding("visible","dir",(function(e){return 1===e}))),e(V.Shape,{segmentIndex:-1,segmentOffset:new V.Point(-10,6),segmentOrientation:V.Link.OrientPlus90,alignmentFocus:V.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new V.Binding("fill","color"),new V.Binding("visible","dir",(function(e){return e>=1})),new V.Binding("width","thickness",(function(e){return 7+3*e})),new V.Binding("height","thickness",(function(e){return 7+3*e})),new V.Binding("segmentOffset","thickness",(function(e){return new V.Point(-15,4+1.5*e)}))),e(V.Shape,{segmentIndex:0,segmentOffset:new V.Point(15,-6),segmentOrientation:V.Link.OrientMinus90,alignmentFocus:V.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new V.Binding("fill","color"),new V.Binding("visible","dir",(function(e){return 2===e})),new V.Binding("width","thickness",(function(e){return 7+3*e})),new V.Binding("height","thickness",(function(e){return 7+3*e})),new V.Binding("segmentOffset","thickness",(function(e){return new V.Point(-15,4+1.5*e)}))),e(V.TextBlock,{alignmentFocus:new V.Spot(0,1,-4,0),editable:!0},new V.Binding("text").makeTwoWay(),new V.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(V.Adornment,e(V.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:A(2)},new V.Binding("pathPattern","thickness",A)),y({alignmentFocus:new V.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",k(),C(),e("ContextMenuButton",e(V.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(V.Panel,"Horizontal",e(V.Panel,"Spot",L(!1),M(V.Spot.Top,!1),M(V.Spot.Left,!1),M(V.Spot.Right,!1),M(V.Spot.Bottom,!1)),e(V.Panel,"Spot",{margin:new V.Margin(0,0,0,2)},L(!0),M(V.Spot.Top,!0),M(V.Spot.Left,!0),M(V.Spot.Right,!0),M(V.Spot.Bottom,!0))))),new V.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(V.Link,{locationSpot:V.Spot.Center,selectionAdornmentTemplate:e(V.Adornment,"Link",{locationSpot:V.Spot.Center},e(V.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(V.Shape,{toArrow:"Standard",stroke:null}))},{routing:V.Link.AvoidsNodes,curve:V.Link.JumpOver,corner:5,toShortLength:4},new V.Binding("points"),e(V.Shape,{isPanelMain:!0,strokeWidth:2}),e(V.Shape,{toArrow:"Standard",stroke:null})),model:new V.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(F()(V.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(V.Node,"Auto",{locationSpot:V.Spot.Center},new V.Binding("location","location",V.Point.parse).makeTwoWay(V.Point.stringify),e(V.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 V.Binding("stroke").makeTwoWay(),new V.Binding("fill").makeTwoWay(),new V.Binding("figure")),e(V.TextBlock,{margin:new V.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new V.Size(16,16),maxSize:new V.Size(10,NaN),textAlign:"center",editable:!0},new V.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(V.Panel,"Grid",e(V.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(V.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,h.jsx)("div",{ref:o})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(k.ZP,{size:"large",onClick:f,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},ne=t(5112),te=t(97913),ie=ne.ZP.Group,oe={margin:"0 8px"},re=function(e){var n=e.callback,t=e.onCancel;return(0,h.jsxs)(j.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){n(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:oe,children:"单元格数:"}),(0,h.jsx)("span",{style:oe,children:"行数"}),(0,h.jsx)(j.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(te.Z,{})}),(0,h.jsx)("span",{style:oe,children:"列数"}),(0,h.jsx)(j.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(te.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:oe,children:"对齐方式:"}),(0,h.jsx)(j.Z.Item,{name:"align",children:(0,h.jsxs)(ie,{children:[(0,h.jsx)(ne.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(ne.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(ne.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(ne.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)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(k.ZP,{type:"ghost",onClick:t,children:"取消"})]})]})},ae=t(78673),se=t(66455),le=t.n(se),ce=(0,c.forwardRef)((function(e,n){var t=e.use3d,i=e.width,o=e.height,r=e.callback,s=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],m=d[1],f=(0,c.useRef)({id:s,appName:"graphing",width:i||1e3,height:o||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(t)}),[t]),(0,c.useImperativeHandle)(n,(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)(J.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)(J.Z,{children:(0,h.jsx)(k.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ue=t(33773),de=t(27065),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=t(56266);var _e="@▁▁@",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 be(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"),Ze=l()(l()(l()(l()(l()(l()(l()(l()({},pe,"添加链接"),ge,"添加代码块"),me,"添加图片"),fe,"添加画图"),he,"插入流程图"),xe,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Ce=function(e){var n=e.defaultValue,t=void 0===n?"":n,i=e.onChange,r=e.width,s=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,x=e.miniToolbar,v=void 0!==x&&x,w=e.isFocus,j=void 0!==w&&w,b=e.watch,k=e.insertTemp,S=e.mode,A=void 0===S?"markdown":S,N=e.id,L=void 0===N?"markdown-editor-id":N,M=e.showResizeBar,I=void 0!==M&&M,D=e.noStorage,B=void 0!==D&&D,H=e.showNullButton,R=void 0!==H&&H,z=e.showNullProgramButton,Y=void 0!==z&&z,G=e.hidetoolBar,F=void 0!==G&&G,V=e.fullScreen,W=void 0!==V&&V,U=e.onBlur,q=e.onCMBeforeChange,J=e.onFullScreen,Q=e.className,X=void 0===Q?"":Q,$=e.disablePaste,ne=void 0!==$&&$,te=e.disabled,ie=void 0!==te&&te,oe=e.disabledFill,ae=void 0!==oe&&oe,se=e.placeholder,le=void 0===se?"":se,ve=e.values,ke=void 0===ve?"":ve,Ce=e.extraUse,Te=(0,c.useState)(null),Ae=a()(Te,2),Ne=Ae[0],Le=Ae[1],Me=(0,c.useState)(t),Pe=a()(Me,2),Ie=Pe[0],Ee=Pe[1],De=(0,c.useState)(b),Be=a()(De,2),Oe=Be[0],He=Be[1],Re=(0,c.useState)(W),ze=a()(Re,2),Ye=ze[0],Ge=ze[1],Fe=(0,c.useState)(""),Ve=a()(Fe,2),We=Ve[0],Ue=Ve[1],qe=(0,c.useState)(0),Ke=a()(qe,2),Je=Ke[0],Qe=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),en=$e[0],nn=$e[1],tn=(0,c.useState)(!1),on=a()(tn,2),rn=(on[0],on[1]),an=(0,c.useState)(0),sn=a()(an,2),ln=sn[0],cn=sn[1],un=(0,c.useState)(0),dn=a()(un,2),pn=dn[0],mn=dn[1],hn=(0,c.useRef)(),fn=(0,c.useRef)(),gn=(0,c.useRef)(),xn=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ee(ke),null==Ne||Ne.setValue(ke),window.scrollTo(0,e)}),[ke]),(0,c.useEffect)((function(){null==J||J(Ye)}),[Ye]),(0,c.useEffect)((function(){if(hn.current){var e=function(e,t){if(!ne){var i=t.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(t.preventDefault(),"stex"==A)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 t,i,o;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('<video width="100%" controls src="'.concat(de.Z.API_SERVER,"/api/attachments/").concat(e.id,'"></video>')):(null==l||null===(o=l.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?n.replaceSelection('<a href="'.concat(de.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(l.type,'&disposition=inline" target="_blank">').concat(l.name,"</a>")):je.includes(c)?n.replaceSelection('<a href="'.concat(de.Z.API_SERVER,"/api/attachments/").concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(l.name,"</a>")):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){T.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}t.preventDefault()},n=d().fromTextArea(hn.current,{mode:A,lineNumbers:!v,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(),o=t.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),s=o.lastIndexOf("@▁▁@",i.ch),l=a>s?a:s,c=a>s?3:4;if(-1===_e.indexOf(r))return null;if(console.log("change1:",n,e,o,i,l,a,s,r),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()}})),j&&n.focus(),n.on("paste",e),ie&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Le(n),function(){n.off("paste",e)}}}),[]);var vn=(0,c.useCallback)((function(){fn.current}),[en,fn,Ye]);(0,c.useEffect)((function(){if(Ne){var e=function(){var e=new p.Z((function(e){var n,t=o()(e);try{for(t.s();!(n=t.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(vn(),Ne.setSize("100%","100%"),Ne.refresh())}}catch(e){t.e(e)}finally{t.f()}}));return e.observe(hn.current.parentElement),e}();return function(){var n,t;null!==(n=hn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(t=hn.current)||void 0===t?void 0:t.parentElement)}}}),[Ne,vn]),(0,c.useEffect)((function(){if(Ne){for(var e=[],n=function(){var n=a()(i[t],2),o=n[0],r=n[1],s=l()({},o,(function(){wn(r)}));e.push(s),Ne.addKeyMap(s)},t=0,i=Object.entries(Se);t<i.length;t++)n();return function(){for(var n=0,t=e;n<t.length;n++){var i=t[n];Ne.removeKeyMap(i)}}}}),[Ne]),(0,c.useEffect)((function(){W!==Ye&&Ge(W)}),[W]),(0,ye.Z)((function(){if(!B&&Je>0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(L);e>=Je+1e4&&(!n||n!==Ie)&&(window.sessionStorage.setItem(L,Ie),rn(!0))}}),1e4),(0,c.useEffect)((function(){He(b)}),[Ne,b]),(0,c.useEffect)((function(){Ne&&j&&Ne.focus()}),[Ne,j]),(0,c.useEffect)((function(){if(Oe&&Ne){var e=function(e){var n=e.target;if(xn.current){var t=n.scrollTop/n.scrollHeight;xn.current.scrollTop=xn.current.scrollHeight*t}},n=Ne.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[Ne,Oe]),(0,c.useEffect)((function(){if(Ne&&q){var e=function(e,n){q(e,n)};return Ne.on("beforeChange",e),function(){Ne.off("beforeChange",e)}}}),[Ne,q]),(0,c.useEffect)((function(){if(Ne&&U){var e=function(){U(Ne.getValue())};return Ne.on("blur",e),function(){Ne.off("blur",e)}}}),[Ne,U]),(0,c.useEffect)((function(){if(Ne){var e=function(e,n){var t=e.getValue();Ee(t),Qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(Y?i(t,kn(t)):i(t))};return Ne.on("change",e),function(){Ne.off("change",e)}}}),[Ne,i]),(0,c.useEffect)((function(){if(Ne)if(null==t)Ne.setValue(""),Ee("");else{var e=window.scrollY||window.pageYOffset;t!==Ne.getValue()&&(Ne.setValue(t),Ee(t),Ne.setCursor(ie?1:Ne.lineCount(),0),window.scrollTo(0,e))}}),[Ne,t]);var wn=(0,c.useCallback)((function(e){var n=Ne.getCursor(),t=Ne.getSelection(),i=t.split("\n");switch(e){case"bold":return Ne.replaceSelection("**"+t+"**"),""===t&&Ne.setCursor(n.line,n.ch+2),Ne.focus();case"italic":return Ne.replaceSelection("*"+t+"*"),""===t&&Ne.setCursor(n.line,n.ch+1),Ne.focus();case"code":return Ne.replaceSelection("`"+t+"`"),""===t&&Ne.setCursor(n.line,n.ch+1),Ne.focus();case"inline-latex":return Ue("inline-latex"),Ne.focus();case"latex":return Ne.replaceSelection("```latex\n"+t+"\n```"),Ne.setCursor(n.line+1,t.length+1),Ne.focus();case"line-break":return Ne.replaceSelection("<br/>\n"),Ne.focus();case"list-ul":return""===t?Ne.replaceSelection("- "+t):Ne.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ne.focus();case"list-ol":return""===t?Ne.replaceSelection("1. "+t):Ne.replaceSelection(i.map((function(e,n){return""===e?"":"".concat(n+1,". ").concat(e)})).join("\n")),Ne.focus();case"add-null-ch":return""===t&&Ne.setCursor(n.line,n.ch),Ne.replaceSelection("▁"),Ne.focus();case"add-signal":return""===t&&Ne.setCursor(n.line,n.ch),Ne.replaceSelection("@▁@"),Ne.focus();case"add-multiple":return""===t&&Ne.setCursor(n.line,n.ch),Ne.replaceSelection(_e),Ne.focus();case"inster-template-1":return""===t&&Ne.setCursor(n.line,n.ch),Ne.replaceSelection("\n**模板标题**\n模板正文内容可输入文本内容和粘贴图片等操作"),Ne.focus();case"eraser":return Ne.setValue(""),Ne.focus();case"trigger-watch":return He(!Oe),Ne.focus();case"trigger-full-screen":return Ge(!Ye),Ne.focus();case pe:return void Ue(pe);case ge:return void Ue(ge);case me:return void Ue(me);case fe:return void Ue(fe);case"maths-latex":return void Ue("maths-latex");case he:return void Ue(he);case xe:return void Ue(xe);default:throw new Error}}),[Ne,Oe,Ye]),yn=(0,c.useCallback)((function(e,n){var t,i,o,r,a;switch(Ue(""),We){case pe:var s=e.title,l=e.link;return Ne.replaceSelection("[".concat(s,"](").concat(l,")")),Ne.focus();case ge:var c=e.language,u=e.content;return Ne.replaceSelection(["```"+c,u,"```"].join("\n")),Ne.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),m=0;m<d.length;m++)p[m]=d.charCodeAt(m);E(new Blob([p],{type:"image/png"}),(function(e){e.id?Ne.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":Ne.replaceSelection("`$$"+e+"$$`");break;case me:case fe:case"add-flowchart":var h=e.src,f=e.alt,g=n,x=null==g||null===(t=g.name)||void 0===t||null===(t=t.split("."))||void 0===t||null===(i=t.pop)||void 0===i?void 0:i.call(t);return(null==g||null===(o=g.type)||void 0===o?void 0:o.indexOf("image"))>-1||null==g||!g.type?f?Ne.replaceSelection("![ ".concat(f," ]( ").concat(h,' "').concat(f,'" )')):Ne.replaceSelection("![,](".concat(h,")")):(null==g||null===(r=g.type)||void 0===r?void 0:r.indexOf("video"))>-1?Ne.replaceSelection('<video width="100%" controls src="'.concat(de.Z.API_SERVER).concat(h,'"></video>')):(null==g||null===(a=g.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Ne.replaceSelection('<a href="'.concat(de.Z.API_SERVER).concat(h,"?type=").concat(g.type,'&disposition=inline" target="_blank">').concat(g.name,"</a>")):je.includes(x)?Ne.replaceSelection('<a href="'.concat(de.Z.API_SERVER).concat(h,'?type=office&disposition=inline" target="_blank">').concat(g.name,"</a>")):Ne.replaceSelection("[".concat(g.name,"](").concat(de.Z.API_SERVER).concat(h,")")),Ne.focus();case xe:for(var v=e.row,w=e.col,y=e.align,_="\n",j=0;j<v;j++){for(var b=[],k=[],S=0;S<w;S++)1===j&&k.push(we[y]),b.push(" ");1===j&&(_+="| ".concat(k.join(" | ")," |\n")),_+="| ".concat(b.join(1===w?"":" | ")," |\n")}return Ne.replaceSelection(_+"\n"),Ne.focus();default:throw new Error}}),[Ne,We]),_n=(0,c.useMemo)((function(){switch(We){case pe:return(0,h.jsx)(Z,{callback:yn,onCancel:jn});case ge:return(0,h.jsx)(C.Z,{callback:yn,onCancel:jn});case me:return(0,h.jsx)(P,{callback:yn,onCancel:jn});case he:return(0,h.jsx)(ee,{callback:yn,onCancel:jn});case xe:return(0,h.jsx)(re,{callback:yn,onCancel:jn});case"maths-latex":return(0,h.jsx)(ce,{showSaveButton:!0,callback:yn});case"inline-latex":return(0,h.jsx)(ue.Z,{showSaveButton:!0,callback:yn});default:return null}}),[We]);function jn(){Ue("")}(0,c.useEffect)((function(){if(gn.current){var e=function(e){o=!0,r=e.pageY},n=function(){o=!1},t=function(e){if(o){var n=e.pageY-r;n<0&&(n=0),n>300&&(n=300),nn(g+n+"px")}},i=gn.current,o=!1,r=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)}}}),[Ne,gn]),(0,c.useEffect)((function(){nn(g)}),[g]);var bn={width:be(s),height:be(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(Y){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,t,i){n.push({multiLine:!("@▁@"===e)})}))}return n});(0,c.useEffect)((function(){if(Ze[We]&&We!==fe&&We!==he){var e=document.getElementsByClassName("ant-modal")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;cn(n),mn(t)}}),[We]);var Sn=function(e,n,t,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&t>e||e>r-20&&t<e||n<20&&i>n||n>o-20&&i<n)||(document.body.onmousemove=null,document.body.onmouseup=null,!1)};return(0,h.jsxs)(c.Fragment,{children:[(0,h.jsx)("div",{className:"markdown-editor-wrapper",ref:fn,children:(0,h.jsxs)("div",{className:"markdown-editor-container ".concat(X," ").concat(Oe?"on-preview":""," ").concat(v?"mini":""," ").concat(Ye?"full-screen":""),style:bn,children:[(0,h.jsx)(y,{insertTemp:k,watch:Oe,fullScreen:Ye,showNullButton:R,showNullProgramButton:Y,onActionCallback:wn,hidetoolBar:F,extraUse:Ce}),(0,h.jsxs)("div",{className:"markdown-editor-body",children:[(0,h.jsx)("div",{className:"codemirror-container",children:(0,h.jsx)("textarea",{ref:hn,placeholder:le})}),Oe?(0,h.jsxs)("div",{ref:xn,className:"preview-container",children:["stex"===A&&(0,h.jsx)(f,{value:Ie}),"stex"!==A&&(0,h.jsx)(m.Z,{disabledFill:ae,showProgramFill:Y,value:Ie})]}):null]})]})}),I?(0,h.jsx)("a",{ref:gn,className:"editor-resize"}):null,We===fe&&(0,h.jsx)(O,{callback:yn,onCancel:jn}),We===he&&(0,h.jsx)(ee,{callback:yn,onCancel:jn}),(0,h.jsx)(_.Z,{children:Ze[We]&&We!==fe&&We!==he?(0,h.jsx)(K.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ln,top:pn},title:(0,h.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var n=e.clientX-ln,t=e.clientY-pn;document.body.onmousemove=function(e){var i=e.clientX-n,o=e.clientY-t,r=document.getElementsByClassName("ant-modal")[0],a=window.innerWidth-r.offsetWidth,s=window.innerHeight-r.offsetHeight;i=Math.max(0,Math.min(i,a)),o=Math.max(0,Math.min(o,s)),Sn(e.clientX,e.clientY,n,t)&&(cn(i),mn(o))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:Ze[We]}),open:!0,onCancel:jn,footer:null,destroyOnClose:!0,width:We===he?"1200px":null,height:We===he?"80vh":null,className:"markdown-popup-form",children:_n}):null})]})}},27308:function(e,n,t){"use strict";t.d(n,{Z:function(){return m}});var i=t(82100),o=t.n(i),r=t(29186),a=t.n(r),s=t(80619),l=t.n(s),c=t(47074),u=t.n(c),d=t(59301),p=t(4676),m=function(e){l()(t,e);var n=u()(t);function t(e){var i;o()(this,t),i=n.call(this,e);var r=window.document;return i.node=r.createElement("div"),r.body.appendChild(i.node),i}return a()(t,[{key:"render",value:function(){var e=this.props.children;return(0,p.createPortal)(e,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),t}(d.Component)},56266:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var i=t(59301);function o(e,n){var t=(0,i.useRef)();(0,i.useEffect)((function(){t.current=e})),(0,i.useEffect)((function(){if(null!==n){var e=setInterval((function(){t.current()}),n);return function(){return clearInterval(e)}}}),[n])}},69962:function(e,n,t){"use strict";t.d(n,{Z:function(){return M}});var i=t(7557),o=t.n(i),r=t(41498),a=t.n(r),s=t(79800),l=t.n(s),c=t(82242),u=t.n(c),d=t(59301),p=t(5112),m=t(3113),h=t(8591),f=t(43418),g=t(97913),x=t(95237),v=t(43604),w=t(28103),y=t(94049),_="title___dVHM9",j=t(89918),b=t(24334),k=t(51136),S=t(7880),Z=t(42783),C=t(3479),T=t(23717),A=t(7892),N=t(37712),L={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,enableSplitViewResizing:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1};var M=function(e){var n=e.language,t=e.dispatch,i=e.shixunWorkReport,r=e.v,s=e.languages,c=e.classroomList,M=e.autoHeight,P=(e.diff_code_count,e.data,(0,d.useState)(null==s?void 0:s[0])),I=l()(P,2),E=I[0],D=I[1],B=(0,S.useParams)();return(0,d.useEffect)((function(){D(null==s?void 0:s[0])}),[]),(0,d.useEffect)((function(){var e;D(null==s||null===(e=s.filter((function(e){return e.language===(null==E?void 0:E.language)})))||void 0===e?void 0:e[0])}),[s]),(0,N.jsxs)(N.Fragment,{children:[(0,N.jsxs)("h2",{children:[" ",(0,N.jsxs)("span",{children:[r.is_finish?(0,N.jsxs)("span",{children:["最后通关代码",(0,N.jsx)("span",{className:"ml5 font12 c-grey-999",children:"通过了本题,在作业时间内最后一次提交的通关代码"})]}):(0,N.jsxs)("span",{children:["最新代码",(0,N.jsx)("span",{className:"ml5 font12 c-grey-999",children:"未通过本题,展示最新编写的代码详情"})]}),(null==s?void 0:s.length)>1&&(0,N.jsx)(p.ZP.Group,{defaultValue:n,style:{marginLeft:10},onChange:function(e){var n;r.language=e.target.value,D(null==s||null===(n=s.filter((function(n){return n.language===e.target.value})))||void 0===n?void 0:n[0])},children:null==s?void 0:s.map((function(e){return(0,N.jsx)(p.ZP,{value:null==e?void 0:e.language,children:null==e?void 0:e.language})}))})]}),(0,j.GJ)()&&"shixunWorkReport"!=i&&(0,N.jsxs)("span",{children:[(0,N.jsxs)("span",{children:["得分 ",null==E?void 0:E.score,"/",null==E?void 0:E.total_score]}),(0,N.jsx)(m.ZP,{style:{margin:"0px 10px"},onClick:function(){var e;if(null!==(e=c.AssistantObject)&&void 0!==e&&null!==(e=e.hack)&&void 0!==e&&e.can_appraise||!(0,j.Rm)()){var n,i=null==E?void 0:E.score;f.Z.confirm({title:"调分",content:(0,N.jsxs)("div",{children:[(0,N.jsxs)("p",{children:["得分:",null==E?void 0:E.score,"/",null==E?void 0:E.total_score]}),(0,N.jsxs)("p",{children:["调分:",(0,N.jsx)(g.Z,{min:0,max:null==E?void 0:E.total_score,defaultValue:null==E?void 0:E.score,onChange:function(e){i=e}})]})]}),okText:"确认",onOk:(n=a()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,k.ZP)("/api/courses/".concat(null==B?void 0:B.coursesId,"/homework_commons/update_hack_score"),{method:"put",body:{course_id:null==B?void 0:B.coursesId,hack_user_code_id:null==E?void 0:E.hack_user_id,score:i}});case 2:0===e.sent.status&&(h.ZP.success("调分成功"),t({type:"shixunHomeworks/setActionTabs",payload:{}}),t({type:"shixunHomeworks/getShixunWorkReports",payload:u()({},B)}));case 4:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)}),cancelText:"取消"})}else h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},type:"primary",children:"调分"}),(0,j.GJ)()&&"shixunWorkReport"!=i&&(0,N.jsx)(m.ZP,{onClick:function(){var e;null!==(e=c.AssistantObject.hack)&&void 0!==e&&e.can_appraise||!(0,j.Rm)()?t({type:"shixunHomeworks/setActionTabs",payload:{key:"更改点评",selectArrs:{myshixun_identifier:i.user_id,type:"1",language:null==E?void 0:E.language,v:r,data:u()({},i)}}}):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"点评代码"})]})]}),(0,N.jsx)(y.ZP,{height:300,language:null==E?void 0:E.language,value:b.Base64.decode(null==E?void 0:E.code),autoHeight:M,theme:"default",options:L}),((null==E?void 0:E.comment)||(null==E?void 0:E.hidden_comment))&&(0,N.jsxs)("div",{children:[(0,N.jsxs)(x.Z,{align:"middle",style:{borderTop:"1px solid #eee"},children:[(0,N.jsx)(v.Z,{flex:1,children:(0,N.jsx)("h1",{className:_,children:"点评内容"})}),(0,N.jsx)(v.Z,{className:"pr30",children:(0,j.GJ)()&&(0,N.jsxs)(m.ZP,{onClick:a()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:f.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",icon:(0,N.jsx)(T.Z,{}),content:"是否确认删除?",onOk:function(){return a()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,C.gZ)({comment_id:null==E?void 0:E.comment_id,homeworkId:B.homeworkId,type:"hack"});case 2:0===e.sent.status&&(h.ZP.success("删除成功"),t({type:"shixunHomeworks/getShixunWorkReports",payload:u()({},B)}));case 4:case"end":return e.stop()}}),e)})))()}});case 1:case"end":return e.stop()}}),e)}))),children:[(0,N.jsx)(A.Z,{}),"删除"]})})]}),(0,N.jsx)(w.Z,{style:{margin:0}}),(null==E?void 0:E.comment)&&(0,N.jsxs)("aside",{className:"pl30 pr30 mt20",children:[(0,N.jsx)("span",{className:"c-light-black font12",children:"# 学生和课堂老师可见"}),(0,N.jsx)("br",{}),(0,N.jsx)(Z.Z,{value:null==E?void 0:E.comment})]}),(null==E?void 0:E.hidden_comment)&&(0,N.jsxs)("aside",{className:"pl30 pr30 mt20",children:[(0,N.jsx)("span",{className:"c-light-black font12",children:"# 仅课堂老师可见"}),(0,N.jsx)("br",{}),(0,N.jsx)(Z.Z,{value:null==E?void 0:E.hidden_comment})]})]})]})}},20994:function(e,n,t){"use strict";var i=t(7557),o=t.n(i),r=t(82242),a=t.n(r),s=t(41498),l=t.n(s),c=t(39647),u=t.n(c),d=(t(59301),t(43418)),p=t(8591),m=t(51136),h=t(7880),f=t(37712),g=["shixunHomeworks","dispatch"];n.Z=(0,h.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){var n=e.shixunHomeworks,t=e.dispatch,i=(u()(e,g),(0,h.useParams)());return(0,f.jsxs)(d.Z,{centered:!0,title:"提示",open:"打回重做"===n.actionTabs.key,okText:"确定",cancelText:"取消",onOk:l()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,m.ZP)("/api/myshixuns/".concat(n.actionTabs.selectArrs.myshixun_identifier,"/reset_my_game.json"),{method:"GET",params:{course_id:i.coursesId}});case 2:e.sent.shixun_identifier&&(p.ZP.success("操作成功"),t({type:"shixunHomeworks/setActionTabs",payload:{}}),t({type:"shixunHomeworks/getWorkList",payload:a()({},n.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){t({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,f.jsx)("p",{children:"该作业将被打回重做,学生实训记录将被清空!"}),(0,f.jsx)("p",{children:"确定打回?"})]})}))},57850:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return sn}});var i=t(82242),o=t.n(i),r=t(7557),a=t.n(r),s=t(41498),l=t.n(s),c=t(79800),u=t.n(c),d=t(59301),p=t(51136),m=t(7880),h=t(8591),f=t(43418),g=t(3113),x=t(66104),v=t(6848),w=t(99313),y=t(52306),_=t(5105),j=t(6457),b=t(42783),k=t(37712),S=(0,m.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){var n=e.shixunHomeworks,t=e.dispatch;(0,m.useParams)();return(0,k.jsx)(f.Z,{centered:!0,title:"提示",open:"删除"===n.actionTabs.key,okText:"确定",cancelText:"取消",onOk:l()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({type:"shixunHomeworks/deleteReply",payload:{object_id:n.actionTabs.selectArr.id,object_type:"journals_for_message"}});case 2:0===e.sent.status&&(h.ZP.success("删除成功"),t({type:"shixunHomeworks/setActionTabs",payload:{}}),t({type:"shixunHomeworks/getReplyList",payload:o()({},n.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){t({type:"shixunHomeworks/setActionTabs",payload:{}})},children:(0,k.jsx)("p",{children:"确定要删除该条回复吗?"})})})),Z=t(99232),C=t.n(Z),T=t(71418),A=t(88590),N={flex_box_center:"flex_box_center___zN9Rd",flex_space_between:"flex_space_between___OHt3Z",flex_box_vertical_center:"flex_box_vertical_center___xzO8Q",flex_box_center_end:"flex_box_center_end___LuRwh",flex_box_column:"flex_box_column___rEgTS",top:"top___vNhKr",desc:"desc___IlwMy",liked:"liked___gFxXM",likedActive:"likedActive___bEcK_",reply:"reply___q4nj7",replyList:"replyList___qxCAX",comment:"comment___gIcRF"},L=t(89918),M=t(7406);C().locale("ZH-cn");var P=["","简单","中等","困难"],I=(0,m.connect)((function(e){var n=e.shixunHomeworks,t=e.classroomList,i=e.loading,o=e.user;return{shixunHomeworks:n,globalSetting:e.globalSetting,classroomList:t,user:o,loading:i.effects}}))((function(e){var n,t,i=e.shixunHomeworks,r=e.classroomList,s=(e.globalSetting,e.user,e.loading,e.dispatch,(0,d.useState)(o()(o()({},(0,m.useParams)()),{},{per_page:10}))),c=u()(s,2),x=c[0],v=c[1],_=(0,d.useState)([]),j=u()(_,2),Z=j[0],C=j[1],I=(0,d.useState)(-1),E=u()(I,2),D=(E[0],E[1],(0,d.useState)("")),B=u()(D,2),O=(B[0],B[1],(0,d.useState)("")),H=u()(O,2),R=(H[0],H[1],r.detailLeftMenus,(0,m.useLocation)(),(0,d.useState)({})),z=u()(R,2),Y=(z[0],z[1],i.workDetail,i.workList),G=(0,d.useState)("1"),F=u()(G,2),V=F[0],W=F[1],U=(0,d.useState)(!1),q=u()(U,2),K=q[0],J=q[1];function Q(){return X.apply(this,arguments)}function X(){return(X=l()(a()().mark((function e(){var n,t,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return J(!0),e.next=3,(0,p.ZP)("/api/courses/".concat(x.coursesId,"/homework_commons/edit_hack_homework.json"),{method:"get",params:o()(o()({},x),{},{id:x.categoryId})});case 3:if(t=e.sent,C(t),J(!1),x.defaultExpandedRowKeys=["".concat(null==t||null===(n=t.data)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.identifier)],"2"==V){e.next=11;break}if(null===(i=Y.homework_status)||void 0===i||!i.includes("导入")){e.next=10;break}return e.abrupt("return");case 10:W(null!=t&&t.description?"1":"2");case 11:v(o()({},x));case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,d.useEffect)((function(){Y.homework_status&&Q()}),[Y]),(0,k.jsxs)("section",{className:N.bg,children:[(0,k.jsx)(T.Z,{spinning:K,children:(0,k.jsxs)(w.Z,{onChange:function(e){W(e)},activeKey:V,children:[(0,k.jsx)(w.Z.TabPane,{tab:"说明",children:(0,k.jsxs)("section",{className:" edu-container",style:{padding:"20px 20px",background:"#fff"},children:[!(null!=Z&&Z.description)&&(0,k.jsx)(M.Z,{customText:"暂无说明"}),(0,k.jsx)(b.Z,{value:(null==Z?void 0:Z.description)||""})]})},1),!(null!==(n=Y.homework_status)&&void 0!==n&&n.includes("导入"))&&(0,k.jsx)(w.Z.TabPane,{tab:"题目列表",children:(0,k.jsxs)("div",{children:[(0,k.jsx)("section",{className:" edu-container",style:{padding:"20px 20px",background:"#fff"},children:x.defaultExpandedRowKeys&&(0,k.jsx)(y.Z,{dataSource:null==Z?void 0:Z.data,rowKey:function(e){return null==e?void 0:e.identifier},pagination:!1,expandable:{expandedRowRender:function(e){var n,t;return(0,k.jsxs)("div",{style:{padding:"10px 48px",borderRadius:2},children:[(0,k.jsxs)("p",{children:["题目:",null==e?void 0:e.name]}),(0,k.jsxs)("p",{children:["描述:",null==e?void 0:e.description]}),!(0,L.dE)()&&(0,k.jsxs)("p",{children:["题目解析:",(0,k.jsx)(b.Z,{style:{fontSize:"14px"},value:(null==e?void 0:e.analysis)||"暂无解析"})]}),(0,k.jsxs)("div",{style:{width:"100%",textAlign:"end"},children:[(0,L.GJ)()&&(null==Z||null===(n=Z.homework_status)||void 0===n?void 0:n.includes("未发布"))&&(0,k.jsx)(g.ZP,{type:"primary",ghost:!0,onClick:function(){window.open("/problems/".concat(null==e?void 0:e.identifier,"/edit?type=1")),localStorage.setItem("program_homework",[x.coursesId,x.categoryId])},children:"编辑"}),(0,L.GJ)()&&(null==Z||null===(t=Z.homework_status)||void 0===t?void 0:t.includes("未发布"))&&(0,k.jsx)(g.ZP,{type:"primary",style:{marginLeft:20},ghost:!0,onClick:function(){var n;f.Z.confirm({title:"提示",content:"是否确认删除",okText:"确认",cancelText:"取消",onOk:(n=l()(a()().mark((function n(){var t;return a()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,p.ZP)("/api/problems/".concat(null==e?void 0:e.identifier,".json"),{method:"delete"});case 2:0===(null==(t=n.sent)?void 0:t.status)&&(h.ZP.info("删除成功"),x.page=1,Q());case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})},children:"删除"})]})]})},defaultExpandedRowKeys:x.defaultExpandedRowKeys},columns:[{title:"题目",dataIndex:"name",ellipsis:!0,width:"20%",key:"name"},{title:"难度",dataIndex:"difficult",key:"difficult",render:function(e,n,t){return(0,k.jsx)("div",{children:P[e]})}},{title:"通过率",dataIndex:"pass_rate",key:"pass_rate"},{title:"通过人数",dataIndex:"submit_info",key:"submit_info"},{title:"知识点",dataIndex:"tag_discipline",ellipsis:!0,width:"10%",key:"tag_discipline"},{title:"操作",dataIndex:"identifier",key:"identifier",render:function(e,n,t){return(0,k.jsxs)("div",{children:[(0,k.jsx)("a",{onClick:function(){var n;!(0,L.Rm)()||null!==(n=r.AssistantObject.hack)&&void 0!==n&&n.can_question_eaderboard?window.open("/classrooms/".concat(x.coursesId,"/program_homework/").concat(x.categoryId,"/").concat(e,"/ranking")):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"排行"}),(0,k.jsx)("a",{onClick:l()(a()().mark((function e(){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.ZP)("/api/problems/".concat(null==n?void 0:n.identifier,"/start.json"),{method:"get"});case 2:(t=e.sent)&&(window.open("/myproblems/".concat(null==t?void 0:t.identifier,"?type=1")),localStorage.setItem("program_homework",[x.coursesId,x.categoryId]));case 4:case"end":return e.stop()}}),e)}))),style:{margin:"0px 20px"},children:(0,L.GJ)()?"体验":"进入答题"})]})}}]})}),console.log("---",["".concat(null==Z||null===(t=Z.data)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.identifier)]),(0,k.jsx)("aside",{className:"tc mt30 pb30",children:(0,k.jsx)(A.Z,{defaultCurrent:1,total:null==Z?void 0:Z.count,hideOnSinglePage:!0,showTotal:function(e){return(0,k.jsxs)("span",{children:["共",e,"条"]})},current:x.page||1,pageSize:x.per_page||10,onChange:function(e,n){x.page=e,x.per_page=n,v(o()({},x)),Q()}})})]})},2)]})}),(0,k.jsx)(S,{})]})})),E=t(37205),D=t.n(E),B=t(85573),O=t.n(B),H=t(78241),R=t(20834),z=t(24905),Y=t(95237),G=t(43604),F=t(8772),V=t(38854),W=t(5112),U=t(97913),q=t(8876),K=t(17352),J=t(93690),Q=t(12078),X=t(20994),$=t(39647),ee=t.n($),ne=t(92149),te=["shixunHomeworks","dispatch"],ie=(0,m.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){var n=e.shixunHomeworks,t=e.dispatch,i=(ee()(e,te),(0,m.useParams)()),r=(0,d.useState)(!0),s=u()(r,2),c=s[0],g=s[1],x=(0,d.useState)(!1),v=u()(x,2),w=v[0],y=v[1],_=H.Z.useForm(),j=u()(_,1)[0],b=function(){var e=l()(a()().mark((function e(){var r;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=j.getFieldValue(),e.next=3,(0,p.ZP)("/api/homework_commons/".concat(i.categoryId,"/batch_comment.json"),{method:"post",body:{student_work_ids:D()(n.actionTabs.selectArrs),cover_all:c,hidden_comment:r.hidden_comment,comment:r.comment}});case 3:0===e.sent.status&&(h.ZP.success("评阅成功"),j.resetFields(),t({type:"shixunHomeworks/setActionTabs",payload:{}}),t({type:"shixunHomeworks/getWorkList",payload:o()({},n.actionTabs.params)}));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(f.Z,{centered:!0,title:"一键点评",open:"一键点评"===n.actionTabs.key,okText:"确定",cancelText:"取消",onOk:l()(a()().mark((function e(){var i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=j.getFieldValue(),"{}"===JSON.stringify(i)||""===i.hidden_comment&&""===i.comment?y(!0):n.workList.partial_comment?t({type:"shixunHomeworks/setActionTabs",payload:{key:"一键点评确认",selectArrs:n.actionTabs.selectArrs,params:n.actionTabs.params}}):b();case 2:case"end":return e.stop()}}),e)}))),onCancel:function(){t({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,k.jsxs)(H.Z,{form:j,onChange:function(){w&&y(!1)},children:[(0,k.jsx)("p",{children:"学生和课堂老师可见"}),(0,k.jsx)(H.Z.Item,{name:"comment",children:(0,k.jsx)(F.Z.TextArea,{placeholder:"请输入评阅内容",rows:8})}),(0,k.jsx)("p",{children:"仅课堂老师可见"}),(0,k.jsx)(H.Z.Item,{name:"hidden_comment",children:(0,k.jsx)(F.Z.TextArea,{placeholder:"请输入评阅内容",rows:8})})]}),w&&(0,k.jsx)("p",{className:"c-red",children:"评阅内容至少有一个不为空"})]}),(0,k.jsx)(f.Z,{centered:!0,title:(0,k.jsxs)("span",{children:[(0,k.jsx)(ne.Z,{className:"c-orange mr20"}),"提示"]}),open:"一键点评确认"===n.actionTabs.key,okText:"确定点评",cancelText:"放弃点评",onOk:function(){b()},onCancel:function(){t({type:"shixunHomeworks/setActionTabs",payload:{}})},width:400,children:(0,k.jsxs)("div",{className:"tc",children:[(0,k.jsx)("p",{children:"部分学生已有点评内容,是否覆盖已有点评内容?"}),(0,k.jsx)("p",{children:(0,k.jsxs)(W.ZP.Group,{onChange:function(e){g(e.target.value)},value:c,children:[(0,k.jsx)(W.ZP,{value:!0,children:"覆盖已有点评"}),(0,k.jsx)(W.ZP,{value:!1,children:"跳过已有点评"})]})})]})})]})})),oe=t(3479),re="wrap___altfw",ae="MdEditor___OuyKH",se="tr1___nwwbX",le=["shixunHomeworks","dispatch"],ce=(0,m.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){var n,t,i=e.shixunHomeworks,o=e.dispatch,r=(ee()(e,le),(0,m.useParams)()),s=(0,d.useState)(!1),c=u()(s,2),g=c[0],x=c[1],v=(0,d.useState)(null===(n=i.actionTabs.selectArrs)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.name),w=u()(v,2),y=w[0],_=w[1],j=H.Z.useForm(),b=u()(j,1)[0];(0,d.useEffect)((function(){var e,n,t;"更改点评"===i.actionTabs.key&&b.setFieldsValue({comment:null===(e=i.actionTabs.selectArrs)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.work_comment,hidden_comment:null===(n=i.actionTabs.selectArrs)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.work_comment_hidden}),_(null===(t=i.actionTabs.selectArrs)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.name)}),[i.actionTabs.key]);var S=function(){var e=l()(a()().mark((function e(){var n,t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=b.getFieldValue(),e.next=3,(0,p.ZP)("/api/student_works/".concat(null===(n=i.actionTabs.selectArrs)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.homeworkId,"/shixun_work_comment.json"),{method:"post",body:{hidden_comment:t.hidden_comment,comment:t.comment}});case 3:if(0!==e.sent.status){e.next=9;break}return h.ZP.success("评阅成功"),b.resetFields(),o({type:"shixunHomeworks/setActionTabs",payload:{}}),e.abrupt("return",o({type:"shixunHomeworks/getWorkList",payload:r}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)(f.Z,{centered:!0,title:null!==(t=i.actionTabs.selectArrs)&&void 0!==t&&null!==(t=t.data)&&void 0!==t&&t.work_comment_hidden?"更改"+y+"点评":y+"点评",open:"更改点评"===i.actionTabs.key,okText:"确定",cancelText:"取消",onOk:l()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=b.getFieldValue(),"{}"===JSON.stringify(n)||""===n.hidden_comment&&""===n.comment?x(!0):S();case 2:case"end":return e.stop()}}),e)}))),onCancel:function(){o({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,k.jsxs)(H.Z,{form:b,onChange:function(){g&&x(!1)},children:[(0,k.jsx)("p",{children:"学生和课堂老师可见"}),(0,k.jsx)(H.Z.Item,{name:"comment",children:(0,k.jsx)(F.Z.TextArea,{placeholder:"请输入评阅内容",rows:8})}),(0,k.jsx)("p",{children:"仅课堂老师可见"}),(0,k.jsx)(H.Z.Item,{name:"hidden_comment",children:(0,k.jsx)(F.Z.TextArea,{placeholder:"请输入评阅内容",rows:8})})]}),g&&(0,k.jsx)("p",{className:"c-red",children:"评阅内容至少有一个不为空"})]})})})),ue=["shixunHomeworks","dispatch"],de=(0,m.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){var n=e.shixunHomeworks,t=e.dispatch,i=(ee()(e,ue),(0,m.useParams)()),o=(0,d.useState)([]),r=u()(o,2),s=r[0],c=r[1],h=(0,d.useState)([]),g=u()(h,2),x=g[0],v=g[1];function w(){return(w=l()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.ZP)("/api/homework_commons/".concat(i.categoryId,"/code_quality_analyses/group_list.json"),{method:"GET",params:{page:1,limit:200}});case 2:n=e.sent,c(n);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,d.useEffect)((function(){"质量检测"===n.actionTabs.key&&function(){w.apply(this,arguments)}()}),[n.actionTabs.key]);return(0,k.jsx)(k.Fragment,{children:(0,k.jsx)(f.Z,{centered:!0,title:"代码质量评分",open:"质量检测"===n.actionTabs.key,width:700,okText:"确定",cancelText:"取消",onOk:l()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.ZP)("/api/homework_commons/".concat(i.categoryId,"/code_quality_analyses.json"),{method:"POST",body:{group_ids:x}});case 2:0===(null==(n=e.sent)?void 0:n.status)&&(m.history.replace("/classrooms/".concat(i.coursesId,"/shixun_homework/").concat(i.categoryId,"/detail?tabs=4")),window.location.reload(),t({type:"shixunHomeworks/setActionTabs",payload:{}}),v([]));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){v([]),t({type:"shixunHomeworks/setActionTabs",payload:{}})},children:(0,k.jsx)(y.Z,{rowSelection:{type:"checkbox",onChange:function(e,n){v(D()(e))},selectedRowKeys:x,getCheckboxProps:function(e){return{disabled:"进行中"===e.status||0===e.works_count}}},rowKey:function(e){return e.key||e.id},scroll:{y:300},pagination:!1,columns:[{title:"分班情况",dataIndex:"name"},{title:"有效作品数",dataIndex:"works_count"},{title:"检测进度",dataIndex:"status"},{title:"上次评分时间",dataIndex:"last_analysis_time"}],dataSource:null==s?void 0:s.group_list})})})})),pe=t(11094),me=t(84717),he=t(54506),fe=(0,m.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){e.shixunHomeworks,e.dispatch;var n=e.isShow,t=e.setIsShow,i=e.item,r=(e.coursesId,e.categoryId,(0,d.useState)({page:1,limit:10})),s=u()(r,2),c=s[0],m=s[1],h=(0,d.useState)([]),g=u()(h,2),x=g[0],v=g[1],w=(0,d.useState)(!1),_=u()(w,2),j=_[0],b=_[1];function S(){return Z.apply(this,arguments)}function Z(){return(Z=l()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(!0),e.next=3,(0,p.ZP)("/api/student_works/".concat(i.id,"/game_details.json"),{method:"get",params:o()({},c)});case 3:n=e.sent,b(!1),0===n.status&&v(null==n?void 0:n.data);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,d.useEffect)((function(){n&&S()}),[n]);var C=[{title:"序号",dataIndex:"number",width:50,fixed:"left",ellipsis:!0,render:function(e,n,t){return(0,k.jsx)("span",{style:{color:"#000"},children:c.limit*(c.page-1)+t+1})}},{title:"任务名称",dataIndex:"name",key:"name",ellipsis:!0,render:function(e,n,t){return(0,k.jsx)("span",{style:{color:"#000"},children:e})}},{title:"通关详情",dataIndex:"complete_status",key:"complete_status",ellipsis:!0,width:100,render:function(e,n,t){return(0,k.jsx)("span",{children:0==e?"未通关":4==e?"截止后通关":"已通关"})}},{title:"评测次数",dataIndex:"evaluate_count",key:"evaluate_count",width:100,ellipsis:!0,render:function(e,n,t){return(0,k.jsx)("span",{style:{color:"#333"},children:e})}},{title:"实训耗时",dataIndex:"time_consuming",key:"time_consuming",width:120,ellipsis:!0,render:function(e,n,t){return(0,k.jsx)("span",{style:{color:"#333"},children:e})}}];return(0,k.jsx)(k.Fragment,{children:(0,k.jsxs)(f.Z,{centered:!0,title:"通关情况",open:n,width:700,footer:null,maskClosable:!1,onCancel:function(){c.page=1,c.limit=10,m(o()({},c)),t(!1)},children:[(0,k.jsxs)("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"20px"},children:[(0,k.jsxs)("div",{style:{maxWidth:"200px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1},children:[(0,k.jsx)("span",{style:{color:"#666",marginRight:"10px"},children:"学生姓名"}),(0,k.jsx)("span",{title:null==i?void 0:i.user_name,style:{color:"#232B40"},children:null==i?void 0:i.user_name})]}),(0,k.jsxs)("div",{style:{marginLeft:"50px",marginRight:"50px",maxWidth:"180px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1},children:[(0,k.jsx)("span",{style:{color:"#666",marginRight:"10px"},children:"学号"}),(0,k.jsx)("span",{title:null==i?void 0:i.student_id,style:{color:"#232B40"},children:(null==i?void 0:i.student_id)||"--"})]}),(0,k.jsxs)("div",{style:{maxWidth:"200px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",WebkitLineClamp:1},children:[(0,k.jsx)("span",{style:{color:"#666",marginRight:"10px"},children:"班级"}),(0,k.jsx)("span",{title:null==i?void 0:i.group_name,style:{color:"#232B40"},children:(null==i?void 0:i.group_name)||"--"})]})]}),(0,k.jsx)(y.Z,{scroll:{y:380},columns:C,loading:j,style:{marginBottom:c.limit>(null==x?void 0:x.count)?"16px":"0"},dataSource:x.games,pagination:{size:"default",showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],hideOnSinglePage:!0,pageSize:c.limit,current:c.page,position:["bottomRight"],onChange:function(e,n){c.page=e,c.limit=n,m(o()({},c)),S()},total:null==x?void 0:x.count,showTotal:function(e,n){return(0,k.jsxs)("span",{children:["共",(0,k.jsxs)("span",{style:{color:"#165DFF"},children:[" ",e," "]}),"条数据"]})}}})]})})})),ge=(0,m.connect)((function(e){var n=e.shixunHomeworks,t=e.classroomList,i=e.loading,o=e.user;return{shixunHomeworks:n,classroomList:t,loading:i.effects,user:o}}))((function(e){var n,t,i,r,s,c,x,w,_,b,S,Z,C=e.shixunHomeworks,T=e.classroomList,N=e.loading,P=e.dispatch,I=e.setExportParams,E=e.user,B=(0,m.useParams)(),$=(0,d.useState)(o()(o()({},{page:1,limit:20,order:"work_score",b_order:"desc"}),B)),ee=u()($,2),ne=ee[0],te=(ee[1],H.Z.useForm()),le=u()(te,1)[0],ue=(0,d.useState)(),ge=u()(ue,2),xe=ge[0],ve=(ge[1],(0,d.useState)({})),we=u()(ve,2),ye=we[0],_e=we[1],je=(0,d.useState)([]),be=u()(je,2),ke=(be[0],be[1]),Se=(0,d.useState)(!1),Ze=u()(Se,2),Ce=Ze[0],Te=Ze[1],Ae=(0,d.useState)([]),Ne=u()(Ae,2),Le=Ne[0],Me=Ne[1],Pe=(0,d.useState)(!1),Ie=u()(Pe,2),Ee=Ie[0],De=Ie[1],Be=(0,d.useState)(),Oe=u()(Be,2),He=Oe[0],Re=Oe[1],ze=(0,d.useState)(1),Ye=u()(ze,2),Ge=Ye[0],Fe=Ye[1],Ve=(0,d.useState)(),We=u()(Ve,2),Ue=(We[0],We[1]),qe=(0,d.useState)(),Ke=u()(qe,2),Je=Ke[0],Qe=Ke[1],Xe=(0,d.useState)(),$e=u()(Xe,2),en=$e[0],nn=$e[1],tn=(0,d.useState)(),on=u()(tn,2),rn=on[0],an=on[1],sn=(0,d.useState)(),ln=u()(sn,2),cn=ln[0],un=ln[1],dn=(0,d.useState)(!1),pn=u()(dn,2),mn=pn[0],hn=pn[1],fn=(0,d.useState)(!1),gn=u()(fn,2),xn=gn[0],vn=gn[1],wn=(0,d.useState)(),yn=u()(wn,2),_n=yn[0],jn=yn[1];(0,m.useLocation)();(0,d.useEffect)((function(){return bn(),function(){_e([]),ke([])}}),[ne.coursesId]),(0,d.useEffect)((function(){var e,n=JSON.parse(JSON.stringify(C.workList));null!=n&&null!==(e=n.student_works)&&void 0!==e&&e.length||null==n||!n.id?(null!=n&&n.id&&ke([o()(o()({},n),{number:"我"})]),_e(o()({},n))):(n.student_works=[o()({},n)],_e(n))}),[C.workList]);var bn=function(e){return I(o()({},ne)),P({type:"shixunHomeworks/getWorkList",payload:ne})};(0,d.useEffect)((function(){}),[]);var kn=function(){var e=l()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"成绩计算中,请稍候..."}}),e.next=3,(0,oe.Vs)({categoryId:B.categoryId});case 3:n=e.sent,P({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),0===(null==n?void 0:n.status)&&(h.ZP.success(null==n?void 0:n.message),bn());case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,d.useEffect)((function(){document.getElementById("divhe")&&(document.getElementById("divhe").scrollHeight>47&&(un(47),hn(!0)))}),[document.getElementById("divhe")]);function Sn(){Fe(1),Ue(""),Qe(""),nn(""),an(""),Me([])}var Zn=[{title:"序号",dataIndex:"number",align:"center",fixed:"left",ellipsis:{showTitle:!1},render:function(e,n,t){return ne.limit*(ne.page-1)+t+1}},{title:"姓名",dataIndex:"user_name",align:"center",fixed:"left",ellipsis:{showTitle:!1},render:function(e){return(0,k.jsx)(v.Z,{placement:"bottomLeft",title:e,children:(0,k.jsx)("span",{className:"current",children:e})})}},!(0,L.Jd)()&&{title:"学号",dataIndex:"student_id",align:"center",sorter:!0,fixed:"left",showSorterTooltip:!1,ellipsis:{showTitle:!1},sortOrder:"student_id"===ne.order?"desc"===ne.b_order?"descend":"ascend":null,render:function(e){return(0,k.jsx)(v.Z,{placement:"bottomLeft",title:e||"--",children:(0,k.jsx)("span",{className:"current",children:e||"--"})})}},{title:"分班",dataIndex:"group_name",align:"center",fixed:"left",ellipsis:{showTitle:!1},render:function(e,n){return e?(0,k.jsx)(v.Z,{placement:"bottom",title:e,children:(0,k.jsx)("span",{className:"current",children:e})}):"--"}},{title:"作业状态",dataIndex:"work_status",align:"center",fixed:"left",sorter:!0,ellipsis:{showTitle:!1},showSorterTooltip:!1,sortOrder:"work_status"===ne.order?"desc"===ne.b_order?"descend":"ascend":null,render:function(e){return(0,k.jsx)(j.lC,{status:e})}},{title:"完成时间",align:"center",dataIndex:"achieve_time",ellipsis:{showTitle:!1},render:function(e,n){return(0,k.jsx)(v.Z,{placement:"bottomLeft",title:e,children:(0,k.jsx)("span",{className:"current",children:e})})}},{title:"通过情况",align:"center",dataIndex:"achieve_info",ellipsis:{showTitle:!1},render:function(e,n){return(0,k.jsx)("span",{onClick:function(e){var t;e.stopPropagation(),null!==(t=ye.homework_status)&&void 0!==t&&t.includes("导入")&&(jn(n),vn(!0))},children:e||"- -"})}},{title:"最终成绩",align:"center",dataIndex:"score",ellipsis:{showTitle:!1},render:function(e,n){return(0,k.jsx)("span",{children:e||"- -"})}},{title:"完成时长",dataIndex:"achieve_time_long",align:"center",render:function(e,n){return e&&"--"!=e?(0,k.jsx)(v.Z,{placement:"bottom",title:e,children:(0,k.jsx)("span",{className:"current",children:e})}):"--"}},(null===(n=ye.homework_status)||void 0===n?void 0:n.includes("导入"))&&{title:"评测次数",dataIndex:"sum_evaluate_count",align:"center"},!(null!==(t=ye.homework_status)&&void 0!==t&&t.includes("导入"))&&{title:(0,k.jsx)("span",{children:"评阅状态"}),align:"center",dataIndex:"has_comment",fixed:"right",ellipsis:!0,render:function(e){return e?"已评阅":"未评阅"}},{title:"操作",dataInex:"action",align:"center",fixed:"right",ellipsis:!0,className:"workListTable",render:function(e,n){var t;return null!==(t=ye.homework_status)&&void 0!==t&&t.includes("导入")?(0,L.GJ)()?(0,k.jsx)("a",{onClick:function(e){e.stopPropagation(),P({type:"classroomList/setActionTabs",payload:{key:"修改成绩",id:null==n?void 0:n.id,type:"normal"}})},children:"修改成绩"}):(0,k.jsx)("a",{onClick:function(e){e.stopPropagation(),jn(n),vn(!0)},children:"查看"}):(0,L.dE)()?(0,k.jsx)("div",{children:"未开启"===(0,j.JL)(null==n?void 0:n.work_status)?(0,k.jsx)("span",{children:"--"}):(0,k.jsx)("a",{onClick:function(e){var t;e.stopPropagation(),!(0,L.Rm)()||null!==(t=T.AssistantObject.hack)&&void 0!==t&&t.can_view?window.open("/classrooms/".concat(ne.coursesId,"/program_homework/").concat(ne.categoryId,"/").concat(n.id,"/").concat(n.user_id,"/comment"),"_blank"):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"查看"})}):(0,k.jsx)("a",{target:"_blank",onClick:function(e){var t,i;if(!(0,L.Rm)()||null!==(t=T.AssistantObject.hack)&&void 0!==t&&t.can_view){if(e.stopPropagation(),null===(i=E.userInfo)||void 0===i||!i.professional_certification)return f.Z.confirm({title:"提示",centered:!0,content:(0,k.jsx)("div",{className:"tc",children:"您需要去完成您的职业认证,才能使用此功能"}),okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,j.xg)("/account/certification")}}),!1;window.open("/classrooms/".concat(ne.coursesId,"/program_homework/").concat(ne.categoryId,"/").concat(n.id,"/").concat(n.user_id,"/comment"),"_blank")}else h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"查看作业"})}}].filter((function(e){return!!e}));return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("section",{className:"".concat(re," minH500 bg-white pl30 pr30 pt30"),children:[(null===(i=ye.homework_status)||void 0===i?void 0:i.includes("未发布"))&&(0,k.jsx)(M.Z,{}),!(null!==(r=ye.homework_status)&&void 0!==r&&r.includes("未发布"))&&(0,k.jsxs)("aside",{children:[!(0,L.GJ)()&&(0,k.jsxs)("div",{className:"c-light-black font12",children:[(0,k.jsxs)("span",{children:["发布时间 ",null==ye?void 0:ye.publish_time]}),(0,k.jsxs)("span",{className:"ml5",children:["截止时间 ",null==ye?void 0:ye.end_time]}),(0,k.jsxs)("span",{className:"ml5",children:["补交时间 ",(null==ye?void 0:ye.late_time)||"- -"]})]}),(0,L.GJ)()&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(H.Z,{form:le,onChange:function(){ne.page=1;var e=Object.assign({},le.getFieldsValue());delete ne.course_group,delete ne.teacher_comment,Object.keys(e).map((function(n){switch(n){case"task_status":e[n].includes("all")||!e[n].length?(delete ne.work_status,le.setFieldsValue(O()({},"task_status","all"))):(ne.work_status=e[n],le.setFieldsValue(O()({},"task_status",ne.work_status)));break;case"course_group_info":e[n].includes("all")||!e[n].length?(delete ne.course_group,le.setFieldsValue(O()({},"course_group_info","all"))):(ne.course_group=e[n],le.setFieldsValue(O()({},"course_group_info",ne.course_group)));break;case"teacher_comment":var t;if(e[n].includes("all")||!e[n].length)delete ne.teacher_comment,le.setFieldsValue(O()({},"teacher_comment","all"));else ne.teacher_comment=1===(null===(t=e[n])||void 0===t?void 0:t.length)?Number(e[n][0]):"",le.setFieldsValue(O()({},"teacher_comment",e[n]))}})),bn()},initialValues:O()(O()(O()({},"task_status","all"),"course_group_info","all"),"teacher_comment","all"),children:[(null===(s=ye.task_status)||void 0===s?void 0:s.length)>0&&(0,k.jsx)(H.Z.Item,{name:"task_status",children:(0,k.jsx)(z.Z.Group,{value:[],style:{width:"100%"},children:(0,k.jsxs)(Y.Z,{children:[(0,k.jsx)(G.Z,{className:"font14",flex:"80px",children:"作业状态:"}),(0,k.jsx)(G.Z,{flex:"80px",children:(0,k.jsx)(z.Z,{value:"all",children:"全部"})}),(0,k.jsx)(G.Z,{flex:"1",children:ye.task_status&&ye.task_status.map((function(e,n){return(0,k.jsxs)(z.Z,{name:"task_status",value:e.id,children:[e.name,"(",e.count,")"]})}))})]})})}),(null===(c=ye.course_group_info)||void 0===c?void 0:c.length)>0&&(0,k.jsx)(H.Z.Item,{name:"course_group_info",children:(0,k.jsx)(z.Z.Group,{style:{width:"100%"},children:(0,k.jsxs)(Y.Z,{children:[(0,k.jsx)(G.Z,{className:"font14",flex:"80px",children:"分班情况:"}),(0,k.jsx)(G.Z,{flex:"80px",children:(0,k.jsx)(z.Z,{value:"all",children:"全部"})}),(0,k.jsx)(G.Z,{flex:"1",id:"divhe",style:{height:cn+"px",overflow:"hidden"},children:null===(x=ye.course_group_info)||void 0===x?void 0:x.map((function(e,n){return(0,k.jsxs)(z.Z,{value:e.course_group_id,children:[e.group_group_name,"(",e.count,")"]})}))}),mn&&(0,k.jsxs)("span",{onClick:function(){var e=document.getElementById("divhe").scrollHeight;un(cn>47?47:e)},style:{color:"rgb(76, 172, 255)",cursor:"pointer",alignItems:"flex-end",display:"flex"},children:[47===cn?"展开":"收起",47===cn?(0,k.jsx)(q.Z,{style:{marginBottom:"3px",marginLeft:"2px"}}):(0,k.jsx)(K.Z,{style:{marginBottom:"3px",marginLeft:"2px"}})]})]})})}),(null===(w=ye.teacher_comment)||void 0===w?void 0:w.length)>0&&(0,k.jsx)(H.Z.Item,{name:"teacher_comment",children:(0,k.jsx)(z.Z.Group,{style:{width:"100%"},children:(0,k.jsxs)(Y.Z,{children:[(0,k.jsx)(G.Z,{className:"font14",flex:"80px",children:"追加点评:"}),(0,k.jsx)(G.Z,{flex:"80px",children:(0,k.jsx)(z.Z,{value:"all",children:"全部"})}),(0,k.jsx)(G.Z,{flex:"1",children:ye.teacher_comment&&ye.teacher_comment.map((function(e,n){return(0,k.jsxs)(z.Z,{value:String(e.id),children:[e.name,"(",e.count,")"]})}))})]})})})]}),(0,k.jsxs)(Y.Z,{align:"middle",children:[(0,k.jsx)(G.Z,{flex:"1",children:(0,k.jsxs)(Y.Z,{align:"middle",children:[(0,k.jsx)(G.Z,{children:(0,k.jsx)(F.Z.Search,{allowClear:!0,placeholder:"请输入姓名或者学号搜索",onSearch:function(e){ne.search=e.trim(),ne.page=1,bn()},style:{width:240}})}),(0,k.jsx)(G.Z,{children:(0,k.jsxs)("span",{className:"ml5",children:[(0,k.jsx)("span",{className:"c-red",children:ye.work_count}),"个检索结果(",ye.work_count,"个学生)"]})})]})}),(0,k.jsxs)(G.Z,{children:[(0,L.GJ)()&&!(null!==(_=ye.homework_status)&&void 0!==_&&_.includes("导入"))&&(0,k.jsxs)(g.ZP,{className:"ml10",onClick:function(){P({type:"shixunHomeworks/setActionTabs",payload:{key:"代码查重",selectArrs:ye.student_works.map((function(e){return e.id})),params:ne}})},children:[(0,k.jsx)("span",{className:"".concat(se," iconfont icon-daimachazhong")}),"代码查重"]}),(0,L.GJ)()&&!(null!==(b=ye.homework_status)&&void 0!==b&&b.includes("导入"))&&(0,k.jsxs)(g.ZP,{className:"ml10",onClick:kn,children:[(0,k.jsx)("i",{className:"iconfont icon-gengxinchengji font14 pr5"}),"更新成绩"]}),(0,L.GJ)()&&(0,k.jsx)(V.Z,{dropdownRender:function(){return(0,k.jsxs)(R.Z,{children:[(0,k.jsx)(R.Z.Item,{onClick:function(){(0,me.Iy)(JSON.parse(sessionStorage.all_student_works_params),"hack_work_list")},children:"学生成绩"},"1"),(0,k.jsx)(R.Z.Item,{children:(0,k.jsx)(m.Link,{to:"/classrooms/".concat(ne.coursesId,"/exportlist/hack_work_list"),children:"历史导出"})},"2")]})},className:"ml10",children:(0,k.jsxs)(g.ZP,{children:[(0,k.jsx)(J.Z,{}),"导出",(0,k.jsx)(Q.Z,{})]})})]})]})]}),(0,k.jsx)(Y.Z,{style:{justifyContent:"end",marginTop:"5px"},children:(0,L.GJ)()&&xe&&(0,k.jsxs)("span",{children:[(0,k.jsx)("span",{style:{color:"red"},children:"*"}),"列表中作业记录存在差异,请点击“更新成绩”按钮"]})}),(0,k.jsx)(y.Z,{className:"mt30",loading:N["shixunHomeworks/getWorkList"],pagination:!1,style:{cursor:"pointer"},onRow:function(e){return{onClick:function(n){var t,i;null!==(t=ye.homework_status)&&void 0!==t&&t.includes("导入")||(!(0,L.Rm)()||null!==(i=T.AssistantObject.hack)&&void 0!==i&&i.can_view?(0,he.O5)()&&window.open("/classrooms/".concat(ne.coursesId,"/program_homework/").concat(ne.categoryId,"/").concat(e.id,"/").concat(e.user_id,"/comment"),"_blank"):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"))}}},scroll:{x:"max-content"},dataSource:ye.student_works,columns:Zn,onChange:function(e,n,t){t.field&&(ne.order=t.field),t.order||(ne.b_order="asc"),"ascend"===t.order&&(ne.b_order="asc"),"descend"===t.order&&(ne.b_order="desc"),t.order||(ne.b_order="asc"),bn()}}),(0,k.jsx)(ie,{}),(0,k.jsx)(ce,{}),(0,k.jsx)(X.Z,{})]}),(0,k.jsx)(f.Z,{title:"一键打回重做",open:Ce,centered:!0,destroyOnClose:!0,forceRender:!0,width:700,onOk:l()(a()().mark((function e(){var n,t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(2!==Ge){e.next=13;break}if(!(Le.length<=0)){e.next=4;break}return h.ZP.info("请选择作业状态"),e.abrupt("return");case 4:if(rn){e.next=7;break}return h.ZP.info("评语不能为空"),e.abrupt("return");case 7:return e.next=9,(0,p.ZP)("/api/homework_commons/".concat(ne.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:ne.categoryId,comment:rn,status:Le}});case 9:0===(n=e.sent).status&&(Re(n),Te(!1),De(!0)),e.next=32;break;case 13:if(0!==en&&0!==Je){e.next=16;break}e.next=22;break;case 16:if(en){e.next=19;break}return h.ZP.info("最低分不能为空"),e.abrupt("return");case 19:if(Je){e.next=22;break}return h.ZP.info("最高分不能为空"),e.abrupt("return");case 22:if(!(en>Je)){e.next=25;break}return h.ZP.info("最高分不能大于最低分"),e.abrupt("return");case 25:if(rn){e.next=28;break}return h.ZP.info("评语不能为空"),e.abrupt("return");case 28:return e.next=30,(0,p.ZP)("/api/homework_commons/".concat(ne.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:ne.categoryId,comment:rn,min_score:en,max_score:Je}});case 30:0===(t=e.sent).status&&(Re(t),Te(!1),De(!0));case 32:case"end":return e.stop()}}),e)}))),onCancel:function(){Te(!1),Sn()},children:(0,k.jsx)("div",{style:{padding:"32px"},children:(0,k.jsxs)("div",{children:[(0,k.jsxs)("div",{children:[(0,k.jsx)("span",{style:{width:"80px"},children:"打回方式:"}),(0,k.jsxs)(W.ZP.Group,{value:Ge,onChange:function(e){Fe(e.target.value)},children:[(0,k.jsx)(W.ZP,{value:1,children:"按成绩打回"}),(0,k.jsx)(W.ZP,{value:2,children:"按作业状态打回"})]})]}),1===Ge&&(0,k.jsxs)("div",{style:{display:"flex",marginTop:"20px"},children:[(0,k.jsxs)("span",{style:{width:"70px",textAlign:"end"},children:[(0,k.jsx)("span",{style:{color:"red"},children:"*"}),"最低分:"]}),(0,k.jsx)(U.Z,{min:0,max:100,value:en,onChange:function(e){return nn(e)},style:{width:"100px"}}),(0,k.jsxs)("span",{style:{width:"80px",textAlign:"end"},children:[(0,k.jsx)("span",{style:{color:"red"},children:"*"}),"最高分:"]}),(0,k.jsx)(U.Z,{min:0,max:100,value:Je,onChange:function(e){return Qe(e)},style:{width:"100px"}})]}),2===Ge&&(0,k.jsxs)("div",{style:{display:"flex",marginTop:"20px"},children:[(0,k.jsx)("span",{style:{width:"80px"},children:"作业状态:"}),(0,k.jsx)(z.Z.Group,{onChange:function(e){Me(D()(e))},style:{width:"100%"},children:null===(S=ye.task_status)||void 0===S?void 0:S.map((function(e,n){return(0,k.jsxs)(z.Z,{name:"task_status",value:e.id,children:[e.name,"(",e.count,")"]})}))})]}),(0,k.jsxs)("div",{style:{display:"flex",marginTop:"20px"},children:[(0,k.jsxs)("span",{style:{width:"70px",textAlign:"end"},children:[(0,k.jsx)("span",{style:{color:"red"},children:"*"})," 评语:"]}),(0,k.jsx)(pe.Z,{className:ae,onChange:function(e){return an(e)},placeholder:"请填写评语"})]})]})})}),(0,k.jsx)(f.Z,{open:Ee,title:"打回确认",onOk:l()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(2!==Ge){e.next=7;break}return e.next=3,(0,p.ZP)("/api/homework_commons/".concat(ne.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:ne.categoryId,comment:rn,status:Le}});case 3:0===e.sent.status&&(h.ZP.info("打回成功"),Sn(),bn(),De(!1)),e.next=11;break;case 7:return e.next=9,(0,p.ZP)("/api/homework_commons/".concat(ne.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:ne.categoryId,comment:rn,min_score:en,max_score:Je}});case 9:0===e.sent.status&&(h.ZP.info("打回成功"),Sn(),bn(),De(!1));case 11:case"end":return e.stop()}}),e)}))),onCancel:function(){Sn(),De(!1)},children:(0,k.jsxs)("div",{style:{padding:"32px"},children:[1===Ge&&(0,k.jsxs)("span",{children:["确认将成绩在",en,"-",Je,"的学生进行打回重做吗?"]}),2===Ge&&(0,k.jsxs)("span",{children:["确认将作业状态为",(null===(Z=ye.task_status)||void 0===Z?void 0:Z.filter((function(e){return null==Le?void 0:Le.includes(e.id)})).map((function(e){return e.name})).toString())+",","的学生进行作业打回重做吗?"]}),(0,k.jsx)("br",{}),(0,k.jsxs)("span",{children:["该条件下共有",null==He?void 0:He.count,"名学生"]})]})})]}),(0,k.jsx)(de,{}),(0,k.jsx)(fe,{isShow:xn,setIsShow:vn,item:_n,coursesId:ne.coursesId,categoryId:ne.categoryId}),(0,k.jsx)("aside",{className:"tc mb50 mt30",children:(0,k.jsx)(A.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,onChange:function(e,n){ne.page=e,ne.limit=20,bn()},current:ne.page||1,defaultPageSize:20,total:ye.work_count})})]})})),xe=t(46400),ve=(0,m.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,classroomList:e.classroomList,loading:e.loading.effects}}))((function(e){var n,t=e.shixunHomeworks,i=e.loading,r=e.dispatch,s=e.classroomList,c=(0,m.useParams)(),p=(0,d.useState)(o()(o()({},{page:1,limit:20,group_ids:[]}),c)),f=u()(p,2),x=f[0],v=f[1],w=((0,m.useLocation)(),t.codeReview),_=(0,d.useState)({}),j=u()(_,2),b=(j[0],j[1],H.Z.useForm());u()(b,1)[0];x.order="code_rate",x.sort="desc",x.category=x.categoryId,(0,d.useEffect)((function(){S(),console.log("params",x)}),[x]),(0,d.useEffect)((function(){"执行代码查重"===t.actionTabs.key&&S()}),[t.actionTabs.key]);var S=function(){var e=l()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"shixunHomeworks/getCodeReview",payload:o()({},x)});case 2:-2===e.sent.status&&setTimeout((function(){return S()}),1500);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Z=[{title:"序号",dataIndex:"number",render:function(e,n,t){return x.limit*(x.page-1)+t+1}},{title:"姓名",dataIndex:"username"},{title:"学号",dataIndex:"student_id"},{title:"相似度",dataIndex:"code_rate",render:function(e){return(0,k.jsx)("span",{className:"c-orange",children:e})}},{title:"操作",dataInex:"action",render:function(e,n){return(0,k.jsxs)("div",{children:[(0,k.jsx)("a",{onClick:function(){var e;!(0,L.Rm)()||null!==(e=s.AssistantObject.hack)&&void 0!==e&&e.can_view?window.open("/classrooms/".concat(x.coursesId,"/program_homework/").concat(x.categoryId,"/review_detail/").concat(n.user_id)):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"查看"}),(0,k.jsx)("br",{})]})}}];return(0,k.jsxs)("section",{className:"minH500 bg-white pl30 pr30 pt10",children:[-2===(null==w?void 0:w.status)&&(0,k.jsx)(xe.Z,{message:"查重进行中,请稍候……",className:"mb10 font14",type:"error"}),(0,k.jsxs)(Y.Z,{children:[(0,k.jsx)(G.Z,{flex:"1",children:(0,k.jsxs)("p",{className:"mt10",children:["查重时间:",w.last_review_time,(0,k.jsx)(g.ZP,{ghost:!0,danger:!0,style:{color:"#29BD8B",borderColor:"#29BD8B",marginLeft:10},onClick:function(){r({type:"shixunHomeworks/setActionTabs",payload:{key:"代码查重",params:x}})},children:"代码查重"})]})}),(0,k.jsxs)(G.Z,{children:[(0,k.jsx)(F.Z.Search,{allowClear:!0,placeholder:"请输入姓名或者学号搜索",onSearch:function(e){x.search=e,r({type:"shixunHomeworks/getCodeReview",payload:x})},style:{width:200}}),(0,k.jsx)("span",{className:"ml5 c-red"})]})]}),(null===(n=w.group_info)||void 0===n?void 0:n.length)>0&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(Y.Z,{children:[(0,k.jsx)(G.Z,{flex:"80px",className:"font14",children:"分班情况:"}),(0,k.jsx)(G.Z,{flex:"80px",children:(0,k.jsx)(z.Z,{checked:""==x.group_ids,value:"all",onChange:function(e){delete x.group_ids,x.group_ids=[],x.page=1,v(o()({},x))},children:"全部"})}),(0,k.jsx)(G.Z,{flex:"1",children:w.group_info&&w.group_info.map((function(e,n){return(0,k.jsxs)(z.Z,{style:{marginLeft:0},value:e.id,checked:x.group_ids.includes(e.id),onChange:function(n){n.target.checked?x.group_ids.push(e.id):x.group_ids.splice(x.group_ids.indexOf(e.id),1),x.page=1,v(o()({},x))},children:[e.name,"(",e.members_count,")"]})}))})]}),(0,k.jsx)(Y.Z,{className:"font14 c-red mt5",children:(0,k.jsx)(G.Z,{children:"本页仅显示全部已查重分班"})})]}),(0,k.jsxs)("p",{className:"mt10",children:[(0,k.jsx)("span",{className:"c-red",children:w.copy_reviews_count}),"个疑似抄袭作品(",w.all_reviews_count,"作品)"]}),(0,k.jsx)(y.Z,{className:"mt30",loading:i["shixunHomeworks/getCodeReview"],pagination:!1,dataSource:w.users_reviews,columns:Z,onChange:function(e,n,t){"ascend"===t.order&&(x.b_order="asc"),"descend"===t.order&&(x.b_order="desc"),t.order||delete x.b_order,r({type:"shixunHomeworks/getCodeReview",payload:o()({},x)})}}),(0,k.jsx)("aside",{className:"tc mb50 mt30",children:(0,k.jsx)(A.Z,{showSizeChanger:!1,onChange:function(e,n){x.page=e,x.limit=20,r({type:"shixunHomeworks/getCodeReview",payload:o()({},x)})},defaultCurrent:x.page||1,current:x.page||1,defaultPageSize:20,hideOnSinglePage:!0,total:w.copy_reviews_count})})]})})),we=t(22744),ye=t(57809),_e=t(7892),je=t(88996),be=t(64259),ke=t(89392),Se="form___dWO2F",Ze="hackList___nh6e9",Ce="title___tyrHF",Te=t(31938),Ae=t(47762),Ne=we.default.RangePicker,Le=ye.default.Option,Me=(0,m.connect)((function(e){var n=e.shixunHomeworks,t=e.classroomList;return{shixunHomeworks:n,loading:e.loading.effects,classroomList:t}}))((function(e){var n,t,i,r,s,c,x,w,y,_,b,S,Z,T=e.shixunHomeworks,A=(e.loading,e.classroomList),N=e.dispatch,M=(0,m.useParams)(),P=T.workSetting,I=T.workList,E=T.changeData,B=(0,d.useState)(!0),O=u()(B,2),H=O[0],R=O[1],F=(0,d.useState)(!1),V=u()(F,2),q=V[0],K=V[1],J=(0,d.useState)([]),Q=u()(J,2),X=Q[0],$=Q[1],ee=(0,d.useState)([]),ne=u()(ee,2),te=ne[0],ie=ne[1],oe=(0,d.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_minus_score:0,penalty_type:Te.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,send_type:void 0,difficult_count:[],difficult_settings:[],late_penalty:0}),re=u()(oe,2),ae=re[0],se=re[1];(0,d.useEffect)((function(){return le(),function(){$([].concat())}}),[]);var le=function(){N({type:"shixunHomeworks/getWorkSetting",payload:o()({},M)})};(0,d.useEffect)((function(){var e;null!=P&&P.course_id&&(Object.keys(ae).map((function(e){ae[e]=P[e]})),ae.allow_late&&ae.unified_late||(ae.late_minus_score=20,ae.penalty_type=Te.Q.Percent),ae.unified_setting||(ae.unified_late=!1,ae.unified_anonymous_comment=!1,ae.unified_anonymous_appeal=!1),X=JSON.parse(JSON.stringify(P.group_settings.map((function(e){return o()(o()({},e),{},{group_name:[e.group_name]})})).filter((function(e){return null!==e.publish_time})))),te=JSON.parse(JSON.stringify(P.allow_late_settings.map((function(e){return o()(o()({},e),{},{group_name:[e.group_name]})})).filter((function(e){return null!==e.late_time})))),0===ae.difficult_settings.length&&(ae.difficult_settings=[0,0,0]),se(o()({},ae)),$(X.length?D()(X):[{}]),(null===(e=te)||void 0===e?void 0:e.length)<=0?ie([{late_minus_score:20}]):ie(D()(te)))}),[P]);var ce=function(e){var n;if(null!==e.total_score)if(null!=e&&e.work_efficiency&&null===e.eff_score)h.ZP.warning("效率分不能为空");else{var t={shixun_evaluation:e.shixun_evaluation,challenge_settings:e.challenge_settings},i=function(){var n=l()(a()().mark((function n(){return a()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return K(!0),n.next=3,(0,p.ZP)("/api/homework_commons/".concat(M.categoryId,"/publish_setting.json"),{method:"post",body:o()({},e)});case 3:0===n.sent.status&&(h.ZP.success("更新成功"),R(!0),le(),N({type:"shixunHomeworks/getWorkList",payload:o()({},M)})),K(!1);case 6:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();(0,ke.isEqual)(E,t)||null!=I&&null!==(n=I.homework_status)&&void 0!==n&&n.includes("未发布")?i():f.Z.confirm({title:"更新成绩",content:"您改动了本次作业的关卡得分设置,这可能导致已完成作业的学生的成绩产生错误。点击“确定”按钮将保存最新设置并按最新设置更新全班成绩。",okText:"确认",cancelText:"取消",onOk:i})}else h.ZP.warning("总分值不能为空")},ue=function(e,n){var t,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"group_id";return n?n.find((function(n){return n[i]===e})):null==P||null===(t=P.group_settings)||void 0===t?void 0:t.find((function(n){return n.group_id[0]===e}))},de=((null==P?void 0:P.allow_late)||(null==P||P.anonymous_comment),function(e){var n,t,i=ue(e,null==P?void 0:P.allow_late_settings,"id"),o=ue(e,null==P?void 0:P.anonymous_comment_settings),r=ue(e);return(null==P?void 0:P.allow_late)&&i&&C()(null==i?void 0:i.late_time)<=C()()||(null==P?void 0:P.anonymous_comment)&&o&&null!==(null==o?void 0:o.evaluation_start)||null!=(null===(n=(C()(null==r?void 0:r.end_time)<=C()()&&(null==P||null===(t=P.allow_late_settings)||void 0===t?void 0:t.filter((function(n){return n.group_id.includes(e)}))))[0])||void 0===n?void 0:n.late_time)}),pe=null==P?void 0:P.anonymous_comment,me=function(e){if(!e)return!1;var n=ue(e,null==P?void 0:P.anonymous_comment_settings);return(null==P?void 0:P.anonymous_comment)&&n&&null!==(null==n?void 0:n.evaluation_start)};return(0,k.jsxs)("section",{className:Se,children:[(0,k.jsxs)(Y.Z,{align:"middle",children:[(0,k.jsx)(G.Z,{flex:"1",children:(0,k.jsx)("div",{className:Ce,children:"试题发布"})}),(0,k.jsxs)(G.Z,{children:[(0,L.GJ)()&&H&&(0,k.jsx)(g.ZP,{type:"primary",size:"middle",ghost:!0,onClick:function(){var e,n;!(0,L.Rm)()||null!==(e=A.AssistantObject.hack)&&void 0!==e&&e.can_late||null!==(n=A.AssistantObject.hack)&&void 0!==n&&n.can_publish?R(!1):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"编辑设置"}),!H&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(g.ZP,{type:"primary",loading:q,onClick:function(){return function(){var e,n=JSON.parse(JSON.stringify(ae));if(n.categoryId=M.categoryId,ae.unified_setting||(X=null===(e=X)||void 0===e?void 0:e.map((function(e){var n;if(!e.publish_time||!e.end_time)throw h.ZP.error("请把发布时间填写完整"),new String("请把发布时间填写完整");if(!e.group_name)throw h.ZP.error("请选择分班名称"),new String("请选择分班名称");return e.group_name="string"==typeof(null==e?void 0:e.group_name)?[null==e?void 0:e.group_name]:null==e?void 0:e.group_name,e.group_id=null===(n=P.group_settings)||void 0===n?void 0:n.filter((function(n){var t;return null==e||null===(t=e.group_name)||void 0===t?void 0:t.includes(n.group_name)})).map((function(e){return e.group_id||e.id})).toString().split(","),e}))),n.group_settings=X,ae.allow_late)if(ae.unified_late){if(null===ae.late_minus_score||void 0===ae.late_minus_score||ae.late_minus_score<0||ae.late_minus_score>100)throw h.ZP.error("迟交扣分填写区间为0~100"),new String("迟交扣分填写区间为0~100");if(!ae.late_time)throw h.ZP.error("请把截止时间填写完整"),new String("请把截止时间填写完整")}else{var t;te=null===(t=te)||void 0===t?void 0:t.map((function(e){var n;if(null===e.late_minus_score||void 0===e.late_minus_score||e.late_minus_score<0||e.late_minus_score>100)throw h.ZP.error("迟交扣分填写区间为0~100"),new String("迟交扣分填写区间为0~100");if(!e.late_time)throw h.ZP.error("请把截止时间填写完整"),new String("请把截止时间填写完整");if(!e.group_name)throw h.ZP.error("请选择分班名称"),new String("请选择分班名称");return e.group_name="string"==typeof(null==e?void 0:e.group_name)?[null==e?void 0:e.group_name]:null==e?void 0:e.group_name,e.group_id=null==e||null===(n=e.group_name)||void 0===n||null===(n=n.map((function(e){var n,t=null===(n=P.group_settings)||void 0===n||null===(n=n.filter((function(n){return(null==n?void 0:n.group_name)===e})))||void 0===n?void 0:n[0];return null==t?void 0:t.group_id})))||void 0===n?void 0:n.toString().split(","),e})),n.allow_late_settings=te}1===n.send_type&&(n.difficult_settings=n.difficult_settings.map((function(e){return e||0}))),ce(n)}()},children:"提交"}),(0,k.jsx)(g.ZP,{type:"primary",ghost:!0,className:"ml20",onClick:function(){R(!0),le()},children:"取消"})]})]})]}),(0,k.jsxs)("div",{className:"mt10",children:[(0,k.jsx)("label",{className:"mr20",children:"发布方式"})," ",(0,k.jsxs)(W.ZP.Group,{disabled:H||!(null!=I&&null!==(n=I.homework_status)&&void 0!==n&&n.includes("未发布"))||!(null!==(t=A.AssistantObject.hack)&&void 0!==t&&t.can_publish)&&(0,L.Rm)(),value:ae.send_type,onChange:function(e){ae.send_type=e.target.value,se(Object.assign({},ae))},children:[(0,k.jsx)(W.ZP,{value:0,children:"全部固定试题"}),(0,k.jsx)(W.ZP,{className:"ml20",value:1,children:"随机抽题"})]}),1===ae.send_type&&(0,k.jsxs)(Y.Z,{className:"mt20",style:{marginLeft:94},children:[(0,k.jsxs)(G.Z,{children:["简单题数",(0,k.jsx)(U.Z,{precision:0,disabled:H||!(null!=I&&null!==(i=I.homework_status)&&void 0!==i&&i.includes("未发布")),placeholder:"最大".concat(ae.difficult_count[0]||0),min:0,max:ae.difficult_count[0]||0,value:ae.difficult_settings[0],onChange:function(e){ae.difficult_settings[0]=e,se(Object.assign({},ae))},className:"ml10 mr20"})]}),(0,k.jsxs)(G.Z,{children:["适中题数",(0,k.jsx)(U.Z,{precision:0,disabled:H||!(null!=I&&null!==(r=I.homework_status)&&void 0!==r&&r.includes("未发布")),placeholder:"最大".concat(ae.difficult_count[1]||0),min:0,max:ae.difficult_count[1]||0,value:ae.difficult_settings[1],onChange:function(e){ae.difficult_settings[1]=e,se(Object.assign({},ae))},className:"ml10 mr20"})]}),(0,k.jsxs)(G.Z,{children:["困难题数",(0,k.jsx)(U.Z,{precision:0,disabled:H||!(null!=I&&null!==(s=I.homework_status)&&void 0!==s&&s.includes("未发布")),placeholder:"最大".concat(ae.difficult_count[2]||0),min:0,max:ae.difficult_count[2]||0,value:ae.difficult_settings[2],onChange:function(e){ae.difficult_settings[2]=e,se(Object.assign({},ae))},className:"ml10 mr20"})]})]})]}),(0,k.jsxs)("div",{className:"mt30",children:[(0,k.jsx)("h1",{className:"mb10",children:"发布设置"}),(0,k.jsx)("label",{className:"mr20",children:"发布方式"})," ",(0,k.jsxs)(W.ZP.Group,{disabled:H||!(null!=I&&null!==(c=I.homework_status)&&void 0!==c&&c.includes("未发布"))||!(null!==(x=A.AssistantObject.hack)&&void 0!==x&&x.can_publish)&&(0,L.Rm)(),value:ae.unified_setting,onChange:function(e){var n;null!=I&&null!==(n=I.homework_status)&&void 0!==n&&n.includes("未发布")?(ae.unified_setting=!ae.unified_setting,ae.unified_setting||(ae.unified_late=!1),se(Object.assign({},ae)),!1!==ae.unified_setting||""!=X?ae.unified_setting&&($([]),ie([{late_minus_score:5}])):$(X.concat({}))):h.ZP.error("已发布,不能再修改统一设置")},children:[(0,k.jsx)(W.ZP,{value:!0,disabled:!(null!=P&&P.manage_all_group),children:"统一发布"}),(0,k.jsx)(W.ZP,{className:"ml20",disabled:0===(null==P||null===(w=P.group_settings)||void 0===w?void 0:w.length),value:!1,children:"分班发布"})]}),0===(null==P||null===(y=P.group_settings)||void 0===y?void 0:y.length)&&(0,k.jsx)("p",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"},children:"(本课堂无分班,仅支持选择“统一发布“)"})]}),ae.unified_setting&&(0,k.jsxs)("div",{style:{marginLeft:50},children:[(0,k.jsxs)(Y.Z,{align:"middle",className:"mt25 pl30",children:[(0,k.jsx)(G.Z,{children:"发布时间"}),(0,k.jsx)(G.Z,{className:"ml10",children:(0,k.jsx)(we.default,{style:{width:170},placeholder:"请选择发布时间",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:function(e){return(0,Ae.Q8)(e,null==P?void 0:P.course_end_date)},disabledTime:function(e){return(0,Ae.d0)(e)},disabled:H||C()()>=C()(null==P?void 0:P.publish_time)||!(null!==(_=A.AssistantObject.hack)&&void 0!==_&&_.can_publish)&&(0,L.Rm)(),value:ae.publish_time?C()(ae.publish_time):"",onChange:function(e,n){ae.publish_time=n,""!=ae.end_time&&ae.end_time||!ae.unified_setting||(ae.end_time=C()(e).add(1,"month").format("YYYY-MM-DD HH:mm:ss")),se(Object.assign({},ae))}})}),(0,k.jsx)(G.Z,{children:(0,k.jsx)("span",{className:"c-grey-c ml10",children:"(学生收到作业的时间)"})})]}),(0,k.jsxs)(Y.Z,{align:"middle",className:"mt25 pl30",children:[(0,k.jsx)(G.Z,{children:"截止时间"}),(0,k.jsx)(G.Z,{className:"ml10",children:(0,k.jsx)(we.default,{style:{width:170},allowClear:!1,placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:C()((0,j.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(null==P?void 0:P.allow_late)&&(null==P?void 0:P.homework_status.includes("已截止"))||H||(null==P?void 0:P.allow_late)&&C()()>=C()(null==P?void 0:P.end_time)||!(null!==(b=A.AssistantObject.hack)&&void 0!==b&&b.can_publish)&&(0,L.Rm)(),disabledDate:function(e){return(0,Ae.Q8)(e,null==P?void 0:P.course_end_date,ae.publish_time)},disabledTime:function(e){return(0,Ae.d0)(e,ae.publish_time)},value:ae.end_time?C()(ae.end_time):"",onChange:function(e,n){ae.end_time=n,se(Object.assign({},ae))}})}),(0,k.jsx)(G.Z,{children:(0,k.jsx)("span",{className:"c-grey-c ml10",children:"(学生“按时”提交作品的时间截点)"})})]})]}),!ae.unified_setting&&(null===(S=X)||void 0===S?void 0:S.length)>0&&(0,k.jsxs)(Y.Z,{style:{marginTop:30,paddingTop:20,marginLeft:80,borderTop:"1px solid #eee"},children:[(0,k.jsx)(G.Z,{span:24,children:(0,k.jsxs)(Y.Z,{children:[(0,k.jsx)(G.Z,{span:10}),(0,k.jsx)(G.Z,{span:10,children:(0,k.jsxs)(Y.Z,{className:"c-grey-c ml30",children:[(0,k.jsx)(G.Z,{flex:"1",children:"(学生收到作业时间)"}),(0,k.jsx)(G.Z,{flex:"1",children:"(学生“按时”提交作品时间截点)"})]})}),(0,k.jsx)(G.Z,{span:4})]})}),X&&X.map((function(e,n){var t,i,r,a;return console.log(null===(t=ue(e.id))||void 0===t?void 0:t.publish_time,"发布时间"),console.log(de(e.id),"截止时间"),(0,k.jsx)(G.Z,{span:24,children:(0,k.jsxs)(Y.Z,{gutter:[8,16],children:[(0,k.jsx)(G.Z,{span:10,children:(0,k.jsxs)(Y.Z,{gutter:[8,16],children:[(0,k.jsxs)(G.Z,{children:["发布规则 ",n+1]}),(0,k.jsx)(G.Z,{flex:"1",style:{maxWidth:300},children:(0,k.jsx)(ye.default,{disabled:H||!(null!=P&&null!==(i=P.homework_status)&&void 0!==i&&i.includes("未发布")&&e.id||C()()<C()(null==e?void 0:e.publish_time))&&!(null==e||!e.publish_time),className:"ml20",mode:"multiple",style:{width:"100%"},value:e.group_name,placeholder:"请选择分班名称",onChange:function(t){var i;if(null!==(i=A.AssistantObject.hack)&&void 0!==i&&i.can_publish||!(0,L.Rm)()){X[n].group_name=t,X[n].group_id=e.group_id;var r=(0,ke.flattenDeep)(X.map((function(e){return e.group_name}))),a=te.map((function(e){var n=(null==e?void 0:e.group_name)||[];return o()(o()({},e),{},{group_name:(0,ke.remove)(n,(function(e){return r.includes(e)}))})}));ie(a),$(X.slice())}else h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:P.group_settings&&P.group_settings.map((function(e){if(!X.map((function(e){return e.group_name})).toString().split(",").includes(String(e.group_name)))return(0,k.jsx)(Le,{value:e.group_name,children:e.group_name},e.id)}))})})]})}),(0,k.jsx)(G.Z,{span:10,children:(0,k.jsx)("div",{className:"ml30",children:(0,k.jsx)(Ne,{allowClear:!1,ranges:{"此刻":[e.publish_time?C()(e.publish_time):C()(),C()()]},disabled:H||!(C()()<=C()(null===(r=ue(e.id))||void 0===r?void 0:r.publish_time))&&[!0,de(e.id)],style:{width:400},placeholder:["请选择发布时间","请选择截止时间"],disabledDate:function(e){return(0,Ae.Q8)(e,null==P?void 0:P.course_end_date)},disabledTime:function(e){return(0,Ae.d0)(e)},showTime:{format:"HH:mm",defaultValue:[C()((0,j.U6)(),"HH:mm"),C()((0,j.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:e.publish_time&&[C()(e.publish_time),e.end_time?C()(e.end_time):void 0],onChange:function(e,t){var i;null!==(i=A.AssistantObject.hack)&&void 0!==i&&i.can_publish||!(0,L.Rm)()?(X[n].publish_time=t[0],X[n].end_time=t[1],$(D()(X))):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}})})}),!H&&(0,k.jsxs)(G.Z,{span:4,children:[((null==e?void 0:e.publish_time)&&C()()<C()(null==e?void 0:e.publish_time)||!(null!=e&&e.publish_time))&&0!=n&&(0,k.jsx)(_e.Z,{onClick:function(){var e;if(null!==(e=A.AssistantObject.hack)&&void 0!==e&&e.can_publish||!(0,L.Rm)()){var t=(0,ke.cloneDeep)(te);t.forEach((function(e,t){e.group_name&&(e.group_name=e.group_name.filter((function(e){var t;return!(null!==(t=X[n].group_name)&&void 0!==t&&t.includes(e))})))})),ie(t),X=X.filter((function(e,t){return n!==t})),$(X.slice()),setTimeout((function(){return $(X.slice())}),10)}else h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),X.length<(null==P||null===(a=P.group_settings)||void 0===a?void 0:a.length)&&(0,k.jsx)(je.Z,{className:"c-green ml20",onClick:function(){$(X.concat({}))}})]})]})},n)}))]}),(0,k.jsxs)(Y.Z,{className:"mt30",children:[(0,k.jsx)(G.Z,{children:(0,k.jsx)(Y.Z,{align:"middle",children:(0,k.jsx)("h1",{style:{marginBottom:0},children:"补交设置"})})}),(0,k.jsxs)(G.Z,{span:24,className:"mt10",children:[(0,k.jsx)(z.Z,{checked:ae.allow_late,disabled:H||(null==P?void 0:P.allow_late),onChange:function(e){var n;null!==(n=A.AssistantObject.hack)&&void 0!==n&&n.can_late||!(0,L.Rm)()?(e.target.checked&&f.Z.warning({title:"开启补交提示",width:480,centered:!0,content:(0,k.jsxs)("div",{style:{padding:10,background:"#f5f6f9"},children:[(0,k.jsx)("div",{children:"1.开启补交后不可关闭,补交方式提交保存后不可修改;"}),(0,k.jsx)("div",{children:"2.补交截止时间必须晚于作业截止时间;"}),(0,k.jsx)("div",{children:"3.班级阶段进入“补交中”则不可变更作业截止时间。"})]})}),ae.allow_late=!ae.allow_late,""==te&&ie([{late_minus_score:5}]),se(Object.assign({},ae))):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:(0,k.jsx)("span",{style:{fontSize:"14px"},children:"开启补交"})}),(0,k.jsx)(v.Z,{overlayStyle:{width:380,maxWidth:380},title:(0,k.jsxs)("div",{style:{display:"flex",flexFlow:"column"},children:[(0,k.jsx)("span",{children:"补交规则说明"}),(0,k.jsx)("span",{children:"开启补交,学生只在补交时间内才通关则扣除分值,未通关不扣分;"}),(0,k.jsx)("span",{children:"学生在正常作业规定时间内通关,在补交阶段再次通关不扣分。"})]}),children:(0,k.jsx)(be.Z,{})})]})]}),(null==ae?void 0:ae.allow_late)&&(0,k.jsxs)("div",{style:{marginLeft:50},children:[(0,k.jsxs)("div",{className:"ml30 mt20",style:{marginLeft:50},children:[(0,k.jsx)("span",{children:"补交方式:"}),(0,k.jsxs)(W.ZP.Group,{disabled:H||(null==P?void 0:P.anonymous_comment)||(null==P?void 0:P.allow_late),value:ae.unified_late,onChange:function(e){var n;!(0,L.Rm)()||null!==(n=A.AssistantObject.hack)&&void 0!==n&&n.can_late?(ae.unified_late=e.target.value,""!=te||e.target.value||ie([{late_minus_score:5}]),se(o()({},ae))):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:[(null==ae?void 0:ae.unified_setting)&&(0,k.jsx)(W.ZP,{value:!0,disabled:!(null!=P&&P.manage_all_group),children:" 统一补交 "}),(null==P||null===(Z=P.group_settings)||void 0===Z?void 0:Z.length)&&(0,k.jsx)(W.ZP,{value:!1,children:" 分班补交 "})]})]}),null!=ae&&ae.unified_late?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(Y.Z,{align:"middle",className:"mt25 pl30",children:[(0,k.jsx)(G.Z,{children:"补交扣分:"}),(0,k.jsx)(G.Z,{className:"ml5",children:(0,k.jsx)(Te.Z,{disabled:H||pe,value:{type:ae.penalty_type,inputValue:ae.late_minus_score},onChange:function(e){var n;!(0,L.Rm)()||null!==(n=A.AssistantObject.hack)&&void 0!==n&&n.can_late?se(o()(o()({},ae),{},{late_minus_score:e.inputValue,penalty_type:e.type})):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}})}),(0,k.jsx)(G.Z,{flex:"1",className:"ml5",children:(0,k.jsx)("span",{className:"c-grey-c ml10",children:ae.penalty_type===Te.Q.Number?"(补交时按照学生总成绩扣分)":"(学生成绩将扣除补交关卡分值的百分比)"})})]}),(0,k.jsxs)(Y.Z,{align:"middle",className:"mt25 pl30",children:[(0,k.jsx)(G.Z,{children:"补交截止时间:"}),(0,k.jsx)(G.Z,{className:"ml5",children:(0,k.jsx)(we.default,{allowClear:!1,style:{width:170},placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:C()((0,j.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:H||pe,value:ae.late_time?C()(ae.late_time):"",disabledDate:function(e){return(0,Ae.Q8)(e,null==P?void 0:P.course_end_date)},disabledTime:function(e){return(0,Ae.d0)(e)},onChange:function(e,n){var t;!(0,L.Rm)()||null!==(t=A.AssistantObject.hack)&&void 0!==t&&t.can_late?(ae.late_time=n,se(Object.assign({},ae))):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}})}),(0,k.jsx)(G.Z,{children:(0,k.jsx)("span",{className:"c-grey-c ml10",children:"(学生“延时”提交作品的时间截点)"})})]})]}):te.map((function(e,n){var t;return(0,k.jsx)(G.Z,{span:24,children:(0,k.jsxs)(Y.Z,{className:"mt25",children:[(0,k.jsxs)(G.Z,{style:{marginLeft:30},children:[(0,k.jsxs)("span",{children:["补交规则",n+1,""]}),(0,k.jsx)(ye.default,{disabled:H||!(null!=I&&null!==(t=I.homework_status)&&void 0!==t&&t.includes("未发布"))&&e.id||(null==P?void 0:P.anonymous_comment),mode:"multiple",style:{width:306},value:"string"==typeof e.group_name?[e.group_name]:e.group_name,placeholder:"请选择分班名称",onChange:function(t){var i;!(0,L.Rm)()||null!==(i=A.AssistantObject.hack)&&void 0!==i&&i.can_late?(te[n].group_name=t,te[n].group_id=e.group_id,ie(te.slice())):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:P.group_settings&&P.group_settings.map((function(e){return null!=ae&&ae.unified_setting&&!te.map((function(e){return e.group_name})).toString().split(",").includes(String(e.group_name))||X.map((function(e){return e.group_name})).toString().split(",").includes(String(e.group_name))&&!te.map((function(e){return e.group_name})).toString().split(",").includes(String(e.group_name))?(0,k.jsx)(Le,{value:e.group_name,children:e.group_name},e.id):void 0}))})]}),(0,k.jsxs)(G.Z,{className:"ml20",children:[(0,k.jsx)("span",{children:"补交扣分:"}),(0,k.jsx)(Te.Z,{disabled:H||me(e.id),value:{type:e.penalty_type,inputValue:e.late_minus_score},onChange:function(e){var t;!(0,L.Rm)()||null!==(t=A.AssistantObject.hack)&&void 0!==t&&t.can_late?(te[n].late_minus_score=e.inputValue,te[n].penalty_type=e.type,ie(D()(te))):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}})]}),(0,k.jsxs)(G.Z,{className:"ml20",children:[(0,k.jsx)("span",{children:"补交截止时间:"}),(0,k.jsx)(we.default,{disabled:H||me(e.id),style:{width:200},showTime:{format:"HH:mm",defaultValue:C()((0,j.U6)(),"HH:mm")},placeholder:"请选择截止时间",disabledDate:function(e){return(0,Ae.Q8)(e,null==P?void 0:P.course_end_date)},disabledTime:function(e){return(0,Ae.d0)(e)},format:"YYYY-MM-DD HH:mm",value:null!=e&&e.late_time?C()(e.late_time):void 0,onChange:function(e,t){var i;!(0,L.Rm)()||null!==(i=A.AssistantObject.hack)&&void 0!==i&&i.can_late?(te[n].late_time=t,ie(D()(te))):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}})]}),!H&&(0,k.jsxs)(G.Z,{className:"ml20",children:[n>0&&!e.id&&(0,k.jsx)(_e.Z,{onClick:function(){te=te.filter((function(e,t){return n!==t})),ie(te.slice()),setTimeout((function(){return ie(te.slice())}),10)}}),(0,k.jsx)(je.Z,{className:"c-green ml20",onClick:function(){var e;!(0,L.Rm)()||null!==(e=A.AssistantObject.hack)&&void 0!==e&&e.can_late?ie(te.concat({penalty_type:Te.Q.Percent,late_minus_score:20})):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}})]})]})},n)}))]})]})}));function Pe(e,n){for(var t=[],i=e;i<n;i++)t.push(i);return t}var Ie=function(e){var n=new Date,t=C()(e).format("HH");if(C()(e).isSame(C()(n),"day")){var i=C()(n).format("HH"),o=C()(n).format("mm");return{disabledHours:function(){return Pe(0,24).splice(1,1*i-1)},disabledMinutes:function(){return console.log("禁止时间:",t,i),C()(e).isSame(C()(n),"hour")&&t<=i?Pe(0,60).splice(0,o):Pe(60,60)}}}if(C()(e).isSame(C()(),"day")){var r=C()().format("HH"),a=C()().format("mm");return{disabledHours:function(){return Pe(0,24).splice(0,r)},disabledMinutes:function(){return t<=r?Pe(0,a):Pe(60,60)}}}},Ee=we.default.RangePicker,De=ye.default.Option,Be=(0,m.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,loading:e.loading.effects}}))((function(e){var n,t=e.shixunHomeworks,i=(e.loading,e.dispatch),r=(0,m.useParams)(),s=((0,m.useLocation)(),t.workSetting),c=t.workList,f=(t.changeData,(0,d.useState)(!0)),x=u()(f,2),v=x[0],w=x[1],y=(0,d.useState)({}),_=u()(y,2),b=(_[0],_[1],(0,d.useState)(!1)),S=u()(b,2),Z=S[0],T=S[1],A=H.Z.useForm(),N=(u()(A,1)[0],(0,d.useState)([])),L=u()(N,2),M=L[0],P=L[1],I=(0,d.useState)([]),E=u()(I,2),B=E[0],O=E[1],R=(0,d.useState)([]),F=u()(R,2),V=(F[0],F[1],(0,d.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,open_code:!1,rank_forbidden:!1,open_code_type:void 0,comment_public:!0,total_score:"",eff_score:0,rank_forbidden_start:"",rank_forbidden_end:""})),U=u()(V,2),q=U[0],K=U[1];(0,d.useEffect)((function(){return J(),function(){P([].concat())}}),[]);var J=function(){i({type:"shixunHomeworks/getWorkSetting",payload:o()({},r)})},Q=function(e){return e&&e<C()().startOf("day")};(0,d.useEffect)((function(){var e;null!=s&&s.course_id&&(Object.keys(q).map((function(e){q[e]=s[e]})),q.allow_late&&q.unified_late||(q.late_penalty=5),M=JSON.parse(JSON.stringify(s.group_settings.map((function(e){return o()(o()({},e),{},{group_name:[e.group_name]})})).filter((function(e){return null!==e.publish_time})))),B=JSON.parse(JSON.stringify(s.allow_late_settings.map((function(e){return o()(o()({},e),{},{group_name:[e.group_name]})})).filter((function(e){return null!==e.rank_forbidden_start})))),K(o()({},q)),P(D()(M)),(null===(e=B)||void 0===e?void 0:e.length)<=0?O([{}]):O(D()(B)))}),[s]),console.log(q,"data");var X=function(e){if(console.log(e.total_score,e.eff_score),null!==e.total_score)if(null!=e&&e.work_efficiency&&null===e.eff_score)h.ZP.warning("效率分不能为空");else{e.shixun_evaluation;var n=function(){var n=l()(a()().mark((function n(){return a()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return T(!0),n.next=3,(0,p.ZP)("/api/homework_commons/".concat(r.categoryId,"/public_setting.json"),{method:"post",body:o()({},e)});case 3:0===n.sent.status&&(h.ZP.success("更新成功"),w(!0),J(),i({type:"shixunHomeworks/getWorkList",payload:o()({},r)})),T(!1);case 6:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();n()}else h.ZP.warning("总分值不能为空")};return(0,k.jsxs)("section",{className:Se,children:[(0,k.jsxs)(Y.Z,{align:"middle",children:[(0,k.jsx)(G.Z,{flex:"1",children:(0,k.jsx)("div",{className:Ce,children:"公开设置"})}),(0,k.jsxs)(G.Z,{children:[(null==s?void 0:s.can_edit)&&v&&(0,k.jsx)(g.ZP,{type:"primary",size:"middle",ghost:!0,onClick:function(){return w(!1)},children:"编辑设置"}),!v&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(g.ZP,{type:"primary",loading:Z,onClick:function(){return function(){var e,n=JSON.parse(JSON.stringify(q));if(n.categoryId=r.categoryId,q.unified_setting||(M=null===(e=M)||void 0===e?void 0:e.map((function(e){var n;if(!e.publish_time||!e.end_time)throw h.ZP.error("请把开始时间填写完整"),new String("请把开始时间填写完整");if(!e.group_name)throw h.ZP.error("请选择分班名称"),new String("请选择分班名称");return e.group_name="string"==typeof(null==e?void 0:e.group_name)?[null==e?void 0:e.group_name]:null==e?void 0:e.group_name,e.group_id=null===(n=s.group_settings)||void 0===n?void 0:n.filter((function(n){var t;return null==e||null===(t=e.group_name)||void 0===t?void 0:t.includes(n.group_name)})).map((function(e){return e.group_id||e.id})).toString().split(","),e}))),n.group_settings=M,q.rank_forbidden)if(q.unified_setting){if(!q.rank_forbidden_start)throw h.ZP.error("请把开始时间填写完整"),new String("请把开始时间填写完整");if(!q.rank_forbidden_end)throw h.ZP.error("请把截止时间填写完整"),new String("请把截止时间填写完整");if(C()(q.rank_forbidden_end)<C()(q.rank_forbidden_start))throw h.ZP.error("截止时间不能早于开始时间"),new String("截止时间不能早于开始时间")}else{var t;B=null===(t=B)||void 0===t?void 0:t.map((function(e){var n;if(!e.rank_forbidden_start)throw h.ZP.error("请把开始时间填写完整"),new String("请把开始时间填写完整");if(!e.rank_forbidden_end)throw h.ZP.error("请把截止时间填写完整"),new String("请把截止时间填写完整");if(!e.group_name)throw h.ZP.error("请选择分班名称"),new String("请选择分班名称");return e.group_name="string"==typeof(null==e?void 0:e.group_name)?[null==e?void 0:e.group_name]:null==e?void 0:e.group_name,e.group_id=null==e||null===(n=e.group_name)||void 0===n||null===(n=n.map((function(e){var n,t=null===(n=s.group_settings)||void 0===n||null===(n=n.filter((function(n){return(null==n?void 0:n.group_name)===e})))||void 0===n?void 0:n[0];return null==t?void 0:t.group_id})))||void 0===n?void 0:n.toString().split(","),e})),n.group_settingss=B}X(n)}()},children:"提交"}),(0,k.jsx)(g.ZP,{type:"primary",ghost:!0,className:"ml20",onClick:function(){w(!0),J()},children:"取消"})]})]})]}),(0,k.jsxs)(Y.Z,{children:[(0,k.jsxs)(G.Z,{span:24,className:"mt15 mt20",children:[(0,k.jsx)(z.Z,{checked:q.score_open,disabled:v,onChange:function(e){q.score_open=e.target.checked,K(Object.assign({},q))},children:(0,k.jsx)("span",{className:"font14",children:"公开成绩"})}),(0,k.jsx)("span",{className:"c-grey-c font12",children:"(选中,则在作业截止/补交结束时间之后,已提交作品的学生可以查看其它学生的成绩,否则只能查看自己的成绩)"})]}),(0,k.jsxs)(G.Z,{span:24,className:"mt15",children:[(0,k.jsx)(z.Z,{checked:q.open_code,disabled:v,onChange:function(e){q.open_code=e.target.checked,K(Object.assign({},q))},children:(0,k.jsx)("span",{className:"font14",children:"公开代码"})}),(0,k.jsx)("span",{className:"c-grey-c font12",children:"(选中,学生可以查看其他学生的代码详情)"})]}),!!q.open_code&&(0,k.jsx)(G.Z,{span:24,className:"mt10 ml25",children:(0,k.jsxs)(W.ZP.Group,{disabled:v,value:q.open_code_type,onChange:function(e){q.open_code_type=e.target.value,K(Object.assign({},q))},children:[(0,k.jsx)(W.ZP,{value:0,children:"任意时间查看"}),(0,k.jsx)(W.ZP,{style:{marginLeft:60},value:1,children:"练习时间结束后"})]})}),(0,k.jsxs)(G.Z,{span:24,className:"mt15 mt20",children:[(0,k.jsx)(z.Z,{checked:q.rank_forbidden,disabled:v,onChange:function(e){q.rank_forbidden=e.target.checked,K(Object.assign({},q))},children:(0,k.jsx)("span",{className:"font14",children:"开启封榜"})}),(0,k.jsx)("span",{className:"c-grey-c font12",children:"(选中则在设置的这段时间内,学生看不到排行榜信息,其他时间可以查看)"})]}),!!q.rank_forbidden&&q.unified_setting&&(0,k.jsx)(G.Z,{span:24,className:"mt10 ",children:(0,k.jsxs)("div",{style:{marginLeft:50},children:[(0,k.jsxs)(Y.Z,{align:"middle",className:"mt25 ",children:[(0,k.jsx)(G.Z,{children:"开始时间"}),(0,k.jsx)(G.Z,{className:"ml10",children:(0,k.jsx)(we.default,{style:{width:170},placeholder:"请选择开始时间",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:Q,disabledTime:Ie,disabled:v||C()()>C()(s.rank_forbidden_start),value:q.rank_forbidden_start?C()(q.rank_forbidden_start):"",onChange:function(e,n){q.rank_forbidden_start=n,""!=q.end_time&&q.end_time||!q.unified_setting||(q.end_time=C()(e).add(1,"month").format("YYYY-MM-DD HH:mm:ss")),K(Object.assign({},q))}})}),(0,k.jsx)(G.Z,{children:(0,k.jsx)("span",{className:"c-grey-c ml10",children:"(学生看不到排行榜的开始时间)"})})]}),(0,k.jsxs)(Y.Z,{align:"middle",className:"mt25",children:[(0,k.jsx)(G.Z,{children:"截止时间"}),(0,k.jsx)(G.Z,{className:"ml10",children:(0,k.jsx)(we.default,{style:{width:170},allowClear:!1,placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:C()((0,j.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:v,disabledDate:Q,value:q.rank_forbidden_end?C()(q.rank_forbidden_end):"",onChange:function(e,n){q.rank_forbidden_end=n,K(Object.assign({},q))}})}),(0,k.jsx)(G.Z,{children:(0,k.jsx)("span",{className:"c-grey-c ml10",children:"(学生看不到排行榜的结束时间)"})})]})]})}),!q.unified_setting&&(null===(n=M)||void 0===n?void 0:n.length)>0&&!!q.rank_forbidden&&(0,k.jsxs)(Y.Z,{style:{marginTop:30,paddingTop:20,marginLeft:80,borderTop:"1px solid #eee"},children:[(0,k.jsx)(G.Z,{span:24,children:(0,k.jsxs)(Y.Z,{children:[(0,k.jsx)(G.Z,{span:10}),(0,k.jsx)(G.Z,{span:10,children:(0,k.jsxs)(Y.Z,{className:"c-grey-c ml30",children:[(0,k.jsx)(G.Z,{flex:"1",children:"(学生看不到排行榜的开始时间)"}),(0,k.jsx)(G.Z,{flex:"1",children:"(学生看不到排行榜的结束时间)"})]})}),(0,k.jsx)(G.Z,{span:4})]})}),B.map((function(e,n){var t,i,o;return(0,k.jsx)(G.Z,{span:24,children:(0,k.jsxs)(Y.Z,{className:"mt25",children:[(0,k.jsxs)(G.Z,{style:{marginLeft:30},children:[(0,k.jsxs)("span",{children:["封榜规则",n+1,""]}),(0,k.jsx)(ye.default,{disabled:v||!(null!=c&&null!==(t=c.homework_status)&&void 0!==t&&t.includes("未发布"))&&e.id,mode:"multiple",style:{width:306},value:"string"==typeof e.group_name?[e.group_name]:e.group_name,placeholder:"请选择分班名称",onChange:function(t){B[n].group_name=t,B[n].group_id=e.group_id,O(B.slice())},children:s.group_settings&&s.group_settings.map((function(e){return null!=q&&q.unified_setting&&!B.map((function(e){return e.group_name})).toString().split(",").includes(String(e.group_name))||M.map((function(e){return e.group_name})).toString().split(",").includes(String(e.group_name))&&!B.map((function(e){return e.group_name})).toString().split(",").includes(String(e.group_name))?(0,k.jsx)(De,{value:e.group_name,children:e.group_name},e.id):void 0}))})]}),(0,k.jsx)(G.Z,{span:10,children:(0,k.jsx)("div",{className:"ml30",children:(0,k.jsx)(Ee,{allowClear:!1,disabled:v||!(null==s||null===(i=s.group_settings)||void 0===i||null===(i=i.filter((function(n){return n.id===e.id})))||void 0===i||null===(i=i[0])||void 0===i||!i.rank_forbidden_start)&&(!(C()()<C()(null==s||null===(o=s.group_settings)||void 0===o||null===(o=o.filter((function(n){return n.id===e.id})))||void 0===o||null===(o=o[0])||void 0===o?void 0:o.rank_forbidden_start))&&[!0,!1]),style:{width:400},placeholder:["请选择开始时间","请选择结束时间"],disabledDate:Q,disabledTime:Ie,showTime:{format:"HH:mm",defaultValue:[C()((0,j.U6)(),"HH:mm"),C()((0,j.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:e.rank_forbidden_start&&[C()(e.rank_forbidden_start),e.rank_forbidden_end?C()(e.rank_forbidden_end):void 0],onChange:function(e,t){B[n].rank_forbidden_start=t[0],B[n].rank_forbidden_end=t[1],O(D()(B))}})})}),!v&&(0,k.jsxs)(G.Z,{className:"ml20",children:[n>0&&!e.id&&(0,k.jsx)(_e.Z,{onClick:function(){B=B.filter((function(e,t){return n!==t})),O(B.slice()),setTimeout((function(){return O(B.slice())}),10)}}),(0,k.jsx)(je.Z,{className:"c-green ml20",onClick:function(){O(B.concat({}))}})]})]})},n)}))]})]})]})})),Oe=(0,m.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,loading:e.loading.effects}}))((function(e){var n,t=e.shixunHomeworks,i=(e.loading,e.dispatch),r=(0,m.useParams)(),s=t.workSetting,c=t.workList,x=(t.changeData,(0,d.useState)(!0)),v=u()(x,2),w=v[0],y=v[1],_=(0,d.useState)(!1),j=u()(_,2),b=j[0],S=j[1],Z=(0,d.useState)(!1),C=u()(Z,2),T=(C[0],C[1],H.Z.useForm()),A=(u()(T,1)[0],(0,d.useState)([])),N=u()(A,2),L=N[0],M=N[1],P=(0,d.useState)([]),I=u()(P,2),E=I[0],B=I[1],O=!(null!=c&&null!==(n=c.homework_status)&&void 0!==n&&n.includes("未发布")),R=(0,d.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,is_onpage_time:!0,training_time_rules:1,hack_settings:[],punish_time:void 0,hack_score_settings:void 0}),z=u()(R,2),F=z[0],V=z[1];(0,d.useEffect)((function(){return q(),function(){M([].concat())}}),[]);var q=function(){i({type:"shixunHomeworks/getWorkSetting",payload:o()({},r)})};(0,d.useEffect)((function(){null!=s&&s.course_id&&(Object.keys(F).map((function(e){F[e]=s[e]})),F.allow_late&&F.unified_late||(F.late_penalty=5),L=JSON.parse(JSON.stringify(s.group_settings.map((function(e){return o()(o()({},e),{},{group_name:[e.group_name]})})).filter((function(e){return null!==e.publish_time})))),E=JSON.parse(JSON.stringify(s.allow_late_settings.map((function(e){return o()(o()({},e),{},{group_name:[e.group_name]})})).filter((function(e){return null!==e.late_time})))),J(),V(o()({},F)),M(D()(L)),B(D()(E)))}),[s]);var K=function(e){if(console.log(e.total_score,e.eff_score),null!==e.total_score){var n=function(){var n=l()(a()().mark((function n(){return a()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return S(!0),n.next=3,(0,p.ZP)("/api/homework_commons/".concat(r.categoryId,"/hack_score_setting.json"),{method:"post",body:o()({},e)});case 3:0===n.sent.status&&(h.ZP.success("更新成功"),y(!0),q(),i({type:"shixunHomeworks/getWorkList",payload:o()({},r)})),S(!1);case 6:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();(null==F?void 0:F.hack_score_settings)!==(null==s?void 0:s.hack_score_settings)&&O?f.Z.confirm({title:"更新成绩",content:"您改动了本次作业的得分设置,这可能导致已完成作业的学生的成绩产生错误。点击“确定”按钮将保存最新设置并按最新设置更新全班成绩。",okText:"确认",cancelText:"取消",onOk:n}):n()}else h.ZP.warning("总分值不能为空")},J=function(){var e,n,t=F.total_score,i=null===(e=F.hack_settings)||void 0===e?void 0:e.length,o=0;switch(F.hack_score_settings){case 0:var r=(t/i).toFixed(2);F.hack_settings.map((function(e,n){o=n,e.hack_score=r>0?r:0})),n=(t-r*(i-1)).toFixed(2),F.hack_settings[o].hack_score=n>0?n:0;break;case 1:var a=[0,1,3,6],s=0,l=t/(F.hack_settings.filter((function(e){return 1===e.difficult})).length*a[1]+F.hack_settings.filter((function(e){return 2===e.difficult})).length*a[2]+F.hack_settings.filter((function(e){return 3===e.difficult})).length*a[3]);console.log(l,2222),F.hack_settings.map((function(e,n){o=n,e.hack_score=(a[e.difficult]*l).toFixed(2),s+=Number(e.hack_score)}));var c=F.hack_settings[o].hack_score;n=(t-s+Number(c)).toFixed(2),F.hack_settings[o].hack_score=n>0?n:0}};return(0,k.jsxs)("section",{className:Se,children:[(0,k.jsxs)(Y.Z,{align:"middle",children:[(0,k.jsx)(G.Z,{flex:"1"}),(0,k.jsxs)(G.Z,{children:[(null==s?void 0:s.can_edit)&&w&&(0,k.jsx)(g.ZP,{type:"primary",size:"middle",ghost:!0,onClick:function(){return y(!1)},children:"编辑设置"}),!w&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(g.ZP,{type:"primary",loading:b,onClick:function(){return e=JSON.parse(JSON.stringify(F)),void K(e);var e},children:"提交"}),(0,k.jsx)(g.ZP,{type:"primary",ghost:!0,className:"ml20",onClick:function(){y(!0),q()},children:"取消"})]})]})]}),(0,k.jsxs)(Y.Z,{align:"middle",children:[(0,k.jsxs)(G.Z,{children:[(0,k.jsx)("span",{children:"总分值"}),(0,k.jsx)(U.Z,{min:0,className:"ml10 mr10",style:{width:160},value:F.total_score,disabled:w||O,onChange:function(e){F.total_score=e,V(Object.assign({},F)),J()}})," 分"]}),(0,k.jsxs)(G.Z,{style:{marginLeft:100},children:[(0,k.jsx)("span",{children:"测评单次报错增加时长"}),(0,k.jsx)(U.Z,{className:"ml10 mr10",style:{width:160},min:0,value:F.punish_time,precision:0,disabled:w,onChange:function(e){F.punish_time=e,V(Object.assign({},F)),J()}})," 分钟"]})]}),(0,k.jsxs)(Y.Z,{align:"middle",style:{marginTop:20},children:[(0,k.jsx)(G.Z,{children:(0,k.jsx)("span",{children:"试题分值设置规则"})}),(0,k.jsx)(G.Z,{flex:"1",children:(0,k.jsx)(H.Z.Item,{className:"ml20",children:(0,k.jsxs)(W.ZP.Group,{disabled:w||O,value:F.hack_score_settings,onChange:function(e){F.hack_score_settings=e.target.value,V(Object.assign({},F)),J()},children:[(0,k.jsx)(W.ZP,{value:0,children:"均分比例"}),(0,k.jsx)(W.ZP,{className:"ml20 mr20",value:1,children:"难易度"}),(0,k.jsx)(W.ZP,{value:2,children:"自定义分值"})]})})})]}),(0,k.jsx)("div",{className:Ze,children:F.hack_settings&&F.hack_settings.map((function(e,n){return(0,k.jsxs)(Y.Z,{align:"middle",style:{marginTop:20},children:[(0,k.jsx)(G.Z,{flex:"1",className:"pr10",children:(0,k.jsx)("strong",{children:e.hack_name})}),(0,k.jsxs)(G.Z,{flex:"150px",children:[(0,k.jsx)(U.Z,{min:0,step:.1,value:e.hack_score,disabled:w||2!==F.hack_score_settings||O,onChange:function(e){F.hack_settings[n].hack_score=e;var t=F.hack_settings.reduce((function(e,n){return e+Number(n.hack_score)}),0);F.total_score=t.toFixed(2),V(o()({},F))}}),(0,k.jsx)("span",{className:"ml10",children:"分"})]}),(0,k.jsxs)(G.Z,{style:{lineHeight:"20px"},children:[1===e.difficult&&(0,k.jsx)("span",{className:"tag-style-border-small bg-green c-white mr10",children:"简单"}),2===e.difficult&&(0,k.jsx)("span",{className:"tag-style-border-small bg-blue c-white mr10",children:"适中"}),3===e.difficult&&(0,k.jsx)("span",{className:"tag-style-border-small bg-orange c-white mr10",children:"困难"})]})]},n)}))}),(0,k.jsx)("div",{style:{height:100}})]})})),He=(0,m.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,loading:e.loading.effects}}))((function(e){e.shixunHomeworks,e.loading,e.dispatch;var n,t,i=(0,d.useState)(!0),o=u()(i,2),r=o[0],s=o[1],c=(0,d.useState)(!1),x=u()(c,2),v=x[0],w=x[1],_=(0,d.useState)([]),j=u()(_,2),b=j[0],S=j[1],Z=(0,d.useState)([]),C=u()(Z,2),T=C[0],A=C[1],N=(0,d.useState)([]),L=u()(N,2),P=L[0],I=L[1],E=(0,d.useState)([]),D=u()(E,2),B=D[0],O=D[1],H=(0,m.useParams)();function R(){return z.apply(this,arguments)}function z(){return(z=l()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.ZP)("/api/homework_commons/".concat(H.categoryId,"/homework_common_collaborators.json"),{method:"get"});case 2:n=e.sent,A(n);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function V(){return W.apply(this,arguments)}function W(){return(W=l()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.ZP)("/api/courses/".concat(null==H?void 0:H.coursesId,"/teachers"),{method:"get",params:{homework_id:H.categoryId,limit:1e3}});case 2:null==(n=e.sent)||n.teacher_list.map((function(e){e.key=e.user_id})),I(null==n?void 0:n.teacher_list),O(null==n?void 0:n.teacher_list);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,d.useEffect)((function(){R(),V()}),[H]);return(0,k.jsxs)("section",{className:Se,children:[(0,k.jsx)(Y.Z,{children:(0,k.jsxs)(G.Z,{flex:"1",children:[(0,k.jsx)("span",{style:{fontSize:"16px"},children:"协作设置"}),(null==T?void 0:T.can_edit)&&(0,k.jsx)("span",{style:{cursor:"pointer",color:"#0152d9",marginLeft:"10px"},onClick:function(){w(!0)},children:"+添加协作者"})]})}),(0,k.jsxs)(Y.Z,{style:{marginTop:"20px",marginBottom:"20px"},children:[(null==T||null===(n=T.data)||void 0===n?void 0:n.length)<=0&&(0,k.jsx)(M.Z,{customText:"该作业暂无协作者"}),null==T||null===(t=T.data)||void 0===t?void 0:t.map((function(e){return(0,k.jsxs)("span",{style:{display:"inline-flex",height:"40px",borderRadius:"4px",border:"1px solid #44D7B6",padding:"7px 20px",color:"#44D7B6",marginRight:"40px"},children:[(0,k.jsx)("span",{style:{flex:"1"},children:null==e?void 0:e.real_name}),(null==T?void 0:T.can_edit)&&(0,k.jsx)("span",{style:{cursor:"pointer",marginLeft:"10px"},onClick:l()(a()().mark((function n(){return a()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,p.ZP)("/api/homework_commons/".concat(H.categoryId,"/homework_common_collaborators/delete.json"),{method:"delete",body:{user_id:e.id}});case 2:0===n.sent.status&&(h.ZP.info("删除成功"),R(),V());case 4:case"end":return n.stop()}}),n)}))),children:"X"})]})}))]}),(0,k.jsx)(Y.Z,{children:!r&&(0,k.jsxs)(G.Z,{className:"mb50",children:[(0,k.jsx)(g.ZP,{type:"primary",size:"middle",onClick:function(){},children:"提交"}),(0,k.jsx)(g.ZP,{type:"primary",size:"middle",ghost:!0,className:"ml20",onClick:function(){s(!0)},children:"取消"})]})}),(0,k.jsx)(f.Z,{title:"添加协作者",open:v,onCancel:function(){return w(!1)},onOk:l()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==b.length){e.next=3;break}return h.ZP.info("请选择协作老师"),e.abrupt("return");case 3:return e.next=5,(0,p.ZP)("/api/homework_commons/".concat(H.categoryId,"/homework_common_collaborators.json"),{method:"post",body:{user_ids:b}});case 5:0===e.sent.status&&(h.ZP.info("添加成功"),S([]),R(),V(),w(!1));case 7:case"end":return e.stop()}}),e)}))),children:(0,k.jsxs)("div",{children:[(0,k.jsxs)("div",{style:{display:"flex"},children:[(0,k.jsx)("label",{style:{width:"50px"},children:"姓名:"})," ",(0,k.jsx)(F.Z.Search,{onChange:function(e){I(B.filter((function(n){return n.name.indexOf(e.target.value)>-1})))}})]}),(0,k.jsx)(y.Z,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(e,n){S(e)},selectedRowKeys:b,getCheckboxProps:function(e){return{disabled:e.is_collaborator}}},pagination:!1,dataSource:P,columns:[{title:"姓名",dataIndex:"name",key:"name"},{title:"角色",dataIndex:"role",key:"role"}]})]})})]})})),Re=function(){return(0,k.jsx)("section",{className:"bg-white pl30 pr30 pt10 mb10",children:(0,k.jsxs)(w.Z,{destroyInactiveTabPane:!0,children:[(0,k.jsx)(w.Z.TabPane,{tab:"发布设置",children:(0,k.jsx)(Me,{})},1),(0,k.jsx)(w.Z.TabPane,{tab:"评分设置",children:(0,k.jsx)(Oe,{})},2),(0,k.jsx)(w.Z.TabPane,{tab:"公开设置",children:(0,k.jsx)(Be,{})},3),(0,k.jsx)(w.Z.TabPane,{tab:"协作设置",children:(0,k.jsx)(He,{})},4)]})})},ze=t(26724),Ye=t.n(ze),Ge=(0,m.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,loading:e.loading}}))((function(e){var n=e.shixunHomeworks,t=e.loading,i=e.dispatch,r=(0,m.useParams)(),s=((0,m.useLocation)(),(0,d.useState)([])),c=u()(s,2),g=c[0],x=c[1],v=(0,d.useState)([]),w=u()(v,2),_=(w[0],w[1],(0,d.useState)(!0)),j=u()(_,2),b=j[0],S=j[1],Z=(0,d.useState)(!1),T=u()(Z,2),A=T[0],N=T[1],L=(0,d.useState)(1),M=u()(L,2),P=M[0],I=M[1],E=(0,d.useState)([]),B=u()(E,2),R=(B[0],B[1]),F=(0,d.useState)(!1),V=u()(F,2),W=V[0],U=V[1],q=(0,d.useState)(!1),K=u()(q,2),J=K[0],Q=K[1];(0,d.useEffect)((function(){"代码查重"===n.actionTabs.key?($.resetFields(),x([]),U(!0),ee()):U(!1)}),[n.actionTabs.key]);var X=H.Z.useForm(),$=u()(X,1)[0],ee=function(){var e=l()(a()().mark((function e(){var n,t,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!b||A){e.next=11;break}return N(!0),I(P+1),e.next=5,(0,oe.JG)(o()(o()({},r),{},{page:P}));case 5:t=e.sent,i=D()(t.group_list),null!=t&&t.ungroup_list&&i.push({id:null==t?void 0:t.ungroup_list.id,name:null==t?void 0:t.ungroup_list.name,works_count:null==t?void 0:t.ungroup_list.work_count,last_review_time:null==t?void 0:t.ungroup_list.last_review_time}),x([].concat(D()(g),D()(i))),N(!1),(null===(n=t.group_list)||void 0===n?void 0:n.length)<10&&S(!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ne=function(){i({type:"shixunHomeworks/setActionTabs",payload:{}}),Q(!1),S(!0),N(!1),I(1),x([]),$.resetFields()},te=[{title:"",dataIndex:"id",width:280,render:function(e,n){return(0,k.jsx)(z.Z,{disabled:!(n.works_count>1),value:String(n.id),children:n.name})}},{title:"有效作品数",dataIndex:"works_count"},{title:"上次查重时间",dataIndex:"last_review_time",width:130}];return(0,k.jsxs)(f.Z,{centered:!0,title:"代码查重",keyboard:!1,maskClosable:!1,open:W,okText:"确认",cancelText:"取消",width:820,bodyStyle:{minHeight:200},onOk:l()(a()().mark((function e(){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=$.getFieldValue(),e.next=3,(0,p.ZP)("/api/homework_commons/".concat(r.categoryId,"/hack_homework_code_repeat.json"),{method:"post",body:{group_ids:D()(t.group_ids)}});case 3:if(0!==e.sent.status){e.next=11;break}return ne(),h.ZP.success("操作成功"),e.next=9,i({type:"shixunHomeworks/getWorkList",payload:n.actionTabs.params});case 9:m.history.push("/classrooms/".concat(r.coursesId,"/program_homework/").concat(r.categoryId,"/detail?tabs=2")),i({type:"shixunHomeworks/setActionTabs",payload:{key:"执行代码查重"}});case 11:case"end":return e.stop()}}),e)}))),onCancel:ne,children:[n.codeReviewCourse&&(0,k.jsxs)(H.Z,{form:$,onChange:function(e){R(o()({},$.getFieldValue()))},initialValues:O()(O()({},"group_ids",[]),"end_time",C()(C()().add(7,"days").format("YYYY-MM-DD HH:mm"))),children:[(0,k.jsx)("div",{className:"flexd-table-header mt20",children:(0,k.jsx)(y.Z,{pagination:!1,dataSource:[],columns:te})}),(0,k.jsx)(H.Z.Item,{name:"group_ids",children:(0,k.jsx)(z.Z.Group,{className:"w100",children:(0,k.jsx)("div",{style:{width:"100%",maxHeight:260,overflow:"auto"},children:(0,k.jsx)(Ye(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(e){ee()},hasMore:b,useWindow:!1,children:(0,k.jsx)(y.Z,{loading:t.effects["shixunHomeworks/getCodeReviewCourse"],showHeader:!1,columns:te,dataSource:g,pagination:!1})})})})})]}),(0,k.jsx)(Y.Z,{children:(0,k.jsx)(G.Z,{className:"ml10",children:(0,k.jsx)(z.Z,{checked:J,onChange:function(e){Q(e.target.checked);var n=[];e.target.checked&&(n=g.filter((function(e){return e.works_count>1})).map((function(e){return e.id+""}))),$.setFieldsValue(O()({},"group_ids",n))},children:"全选"})})})]})})),Fe=t(58325),Ve=t(62672),We=t(15056),Ue=t(85062),qe=t(27065),Ke=t(77878),Je=t(96648),Qe=t(41013),Xe=t(69962),$e=[Ke.Z,Je.Z,Qe.Z],en=(0,m.connect)((function(e){return{user:e.user,classroomList:e.classroomList}}))((function(e){var n,t,i=e.user,r=e.classroomList,s=(0,d.useState)(o()(o()({},(0,m.useParams)()),{},{page:1,per_page:10,rank_type:2,course_group:(0,L.dE)()?[i.userInfo.course.course_group_id]:[]},(0,m.useParams)())),c=u()(s,2),x=c[0],w=c[1],_=(0,d.useState)([]),j=u()(_,2),b=j[0],S=j[1],Z=(0,d.useState)([]),C=u()(Z,2),N=C[0],P=C[1],I=(0,d.useState)([]),E=u()(I,2),B=E[0],O=E[1],H=(0,d.useState)(!1),R=u()(H,2),Y=R[0],G=R[1],F=(0,d.useState)([{title:"排行",dataIndex:"rank",width:100,fixed:"left",render:function(e,n,t){return e<4?(0,k.jsx)("img",{src:$e[e-1]}):e}},{title:"用户",dataIndex:"user_name",width:150,fixed:"left",key:"user_name",render:function(e,n,t){return(0,k.jsxs)("div",{children:[(0,k.jsx)("img",{style:{width:30,height:30,borderRadius:"50%",marginRight:10},src:qe.Z.IMG_SERVER+"/images/"+(null==n?void 0:n.image_url)}),e]})}},{title:"分班",dataIndex:"course_group",key:"course_group",ellipsis:!0,width:150,fixed:"left"},{title:"学号",dataIndex:"student_id",key:"student_id",width:150,ellipsis:!0,fixed:"left",render:function(e){return e||"- -"}},{title:"通过",dataIndex:"passed_count",width:100,fixed:"left",key:"passed_count"},{title:"得分",dataIndex:"score",width:100,fixed:"left",key:"score"}]),V=u()(F,2),U=V[0],q=V[1];function K(e){return J.apply(this,arguments)}function J(){return(J=l()(a()().mark((function e(n){var t,s,c,u,d,m;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return G(!0),e.next=3,(0,p.ZP)("/api/courses/rank_list.json",{method:"get",params:o()(o()({},x),{},{id:x.coursesId,rank_type:2,homework_common_id:x.categoryId})});case 3:if(t=e.sent,S(t),G(!1),-1==t.status){e.next=19;break}if((0,L.dE)()?(1===n&&P([null==t||null===(s=t.course_group)||void 0===s||null===(s=s[0])||void 0===s?void 0:s.id]),null!=t&&t.my_rank?O([null==t?void 0:t.my_rank].concat(D()(null==t?void 0:t.rank_list))):O(D()(null==t?void 0:t.rank_list))):O(D()(null==t?void 0:t.rank_list)),1!==n){e.next=19;break}c={title:(0,k.jsxs)(v.Z,{title:"总耗时时为做题通过时长和罚时时长的总和,\n 罚时时长=评测出错次数X设置的罚时当前为".concat(null==t?void 0:t.punish_time,"分)"),children:[(0,k.jsx)("span",{style:{marginRight:3},children:"总耗时"})," ",(0,k.jsx)("span",{style:{fontSize:"14px"},className:"iconfont icon-tishixiaowenhao c-blue"})]}),dataIndex:"finish_time",width:150,ellipsis:!0,fixed:"left",key:"finish_time"},U.push(c),u=a()().mark((function e(n){var s,c,u;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(u={}).title=null!=t&&t.sent_type?(0,k.jsx)("span",{children:"题目"+(n+1)+"".concat(null==t||null===(s=t.question_data)||void 0===s||null===(s=s[n])||void 0===s?void 0:s.question_score,"")}):(0,k.jsx)("a",{onClick:l()(a()().mark((function e(){var i,o;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.ZP)("/api/problems/".concat(null==t||null===(i=t.question_data)||void 0===i||null===(i=i[n])||void 0===i?void 0:i.identifier,"/start.json"),{method:"get"});case 2:(o=e.sent)&&(window.open("/myproblems/".concat(null==o?void 0:o.identifier,"?type=1")),localStorage.setItem("program_homework",[x.coursesId,x.categoryId]));case 4:case"end":return e.stop()}}),e)}))),children:"题目"+(n+1)+"".concat(null==t||null===(c=t.question_data)||void 0===c||null===(c=c[n])||void 0===c?void 0:c.question_score,"")}),u.dataIndex="question_data",u.width=250,u.render=function(e,t){var s,c,u,d,m;return(0,k.jsx)("div",{children:(null==e||null===(s=e[n])||void 0===s?void 0:s.answer_question_time)&&(0,k.jsxs)("div",{children:[(0,k.jsx)("span",{style:{cursor:"pointer"},className:"iconfont icon-shixun4 c-blue",onClick:l()(a()().mark((function t(){var s,l,c,u,d,m,g,v,w;return a()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(0,L.Rm)()||null!==(s=r.AssistantObject.hack)&&void 0!==s&&s.can_view){t.next=3;break}return h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),t.abrupt("return");case 3:if(null!=e&&null!==(l=e[n])&&void 0!==l&&l.open_code){t.next=6;break}return h.ZP.info("暂不允许查看代码"),t.abrupt("return");case 6:return t.next=8,(0,p.ZP)("/api/courses/view_code.json",{method:"get",params:o()(o()({},x),{},{id:x.coursesId,homework_common_id:x.categoryId,hack_user_code_id:null==e||null===(c=e[n])||void 0===c?void 0:c.hack_user_code_id})});case 8:w=t.sent,f.Z.warning({icon:null,width:800,title:(0,k.jsxs)("div",{children:[(0,k.jsx)("span",{children:"代码"}),(0,k.jsxs)("span",{children:["使用语言:",null==e||null===(u=e[n])||void 0===u?void 0:u.current_language]}),(0,k.jsxs)("span",{children:["运行内存:",null==e||null===(d=e[n])||void 0===d?void 0:d.memory,"KB"]}),(0,k.jsxs)("span",{children:["运行时长:",null==e||null===(m=e[n])||void 0===m?void 0:m.run_time,"ms"]}),(0,k.jsxs)("span",{children:["得分:",null==e||null===(g=e[n])||void 0===g?void 0:g.score]})]}),content:(0,k.jsx)(Xe.Z,{classroomList:r,user:i,languages:[{language:null==e||null===(v=e[n])||void 0===v?void 0:v.language,code:null==w?void 0:w.code}],v:e,shixunWorkReport:"shixunWorkReport",dispatch:"dispatch",autoHeight:!1,language:e.language,game_id:e.id,diff_code_count:e.diff_code_count})});case 10:case"end":return t.stop()}}),t)})))}),(0,k.jsx)("span",{style:{margin:"0px 10px"},children:(null==e||null===(c=e[n])||void 0===c?void 0:c.answer_question_time)||"- -"}),null!=e&&null!==(u=e[n])&&void 0!==u&&u.submit_count?(0,k.jsxs)(v.Z,{title:"".concat((null==e||null===(d=e[n])||void 0===d?void 0:d.submit_count)||0,"次尝试出错"),children:[(0,k.jsx)("span",{style:{color:"red",marginRight:5},className:"iconfont icon-Bug"}),(null==e||null===(m=e[n])||void 0===m?void 0:m.submit_count)||0]}):null]})})},U.push(u);case 6:case"end":return e.stop()}}),e)})),d=0;case 13:if(!(d<(null==t||null===(m=t.question_data)||void 0===m?void 0:m.length))){e.next=18;break}return e.delegateYield(u(d),"t0",15);case 15:d++,e.next=13;break;case 18:q(D()(U));case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,d.useEffect)((function(){U.splice(7);for(var e=function(e){var n,t,s={};s.title=null!=b&&b.sent_type?(0,k.jsx)("span",{children:"题目"+(e+1)+"".concat(null==b||null===(n=b.question_data)||void 0===n||null===(n=n[e])||void 0===n?void 0:n.question_score,"")}):(0,k.jsx)("a",{onClick:l()(a()().mark((function n(){var t,i;return a()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,p.ZP)("/api/problems/".concat(null==b||null===(t=b.question_data)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.identifier,"/start.json"),{method:"get"});case 2:(i=n.sent)&&(window.open("/myproblems/".concat(null==i?void 0:i.identifier,"?type=1")),localStorage.setItem("program_homework",[x.coursesId,x.categoryId]));case 4:case"end":return n.stop()}}),n)}))),children:"题目"+(e+1)+"".concat(null==b||null===(t=b.question_data)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.question_score,"")}),s.dataIndex="question_data",s.width=250,s.render=function(n,t){var s,c,u,d,m;return(0,k.jsx)("div",{children:(null==n||null===(s=n[e])||void 0===s?void 0:s.answer_question_time)&&(0,k.jsxs)("div",{children:[(0,k.jsx)("span",{style:{cursor:"pointer"},className:"iconfont icon-shixun4 c-blue",onClick:l()(a()().mark((function t(){var s,l,c,u,d,m,g,v,w;return a()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(0,L.Rm)()||null!==(s=r.AssistantObject.hack)&&void 0!==s&&s.can_appraise){t.next=3;break}return h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),t.abrupt("return");case 3:if(null!=n&&null!==(l=n[e])&&void 0!==l&&l.open_code){t.next=6;break}return h.ZP.info("暂不允许查看代码"),t.abrupt("return");case 6:return t.next=8,(0,p.ZP)("/api/courses/view_code.json",{method:"get",params:o()(o()({},x),{},{id:x.coursesId,homework_common_id:x.categoryId,hack_user_code_id:null==n||null===(c=n[e])||void 0===c?void 0:c.hack_user_code_id})});case 8:w=t.sent,f.Z.warning({icon:null,width:800,title:(0,k.jsxs)("div",{children:[(0,k.jsx)("span",{children:"代码"}),(0,k.jsxs)("span",{children:["使用语言:",null==n||null===(u=n[e])||void 0===u?void 0:u.current_language]}),(0,k.jsxs)("span",{children:["运行内存:",null==n||null===(d=n[e])||void 0===d?void 0:d.memory,"KB"]}),(0,k.jsxs)("span",{children:["运行时长:",null==n||null===(m=n[e])||void 0===m?void 0:m.run_time,"ms"]}),(0,k.jsxs)("span",{children:["得分:",null==n||null===(g=n[e])||void 0===g?void 0:g.score]})]}),content:(0,k.jsx)(Xe.Z,{classroomList:r,user:i,languages:[{language:null==n||null===(v=n[e])||void 0===v?void 0:v.language,code:null==w?void 0:w.code}],v:n,shixunWorkReport:"shixunWorkReport",dispatch:"dispatch",autoHeight:!1,language:n.language,game_id:n.id,diff_code_count:n.diff_code_count})});case 10:case"end":return t.stop()}}),t)})))}),(0,k.jsx)("span",{style:{margin:"0px 10px"},children:(null==n||null===(c=n[e])||void 0===c?void 0:c.answer_question_time)||"- -"}),null!=n&&null!==(u=n[e])&&void 0!==u&&u.submit_count?(0,k.jsxs)(v.Z,{title:"".concat((null==n||null===(d=n[e])||void 0===d?void 0:d.submit_count)||0,"次尝试出错"),children:[(0,k.jsx)("span",{style:{color:"red",marginRight:5},className:"iconfont icon-Bug"}),(null==n||null===(m=n[e])||void 0===m?void 0:m.submit_count)||0]}):null]})})},U.push(s)},n=0;n<(null==b||null===(t=b.question_data)||void 0===t?void 0:t.length);n++){var t;e(n)}q(D()(U))}),[null==b?void 0:b.question_data]),(0,d.useEffect)((function(){var e;null!=i&&null!==(e=i.userInfo)&&void 0!==e&&e.course&&((0,L.dE)()&&(x.course_group=(0,L.dE)()?[i.userInfo.course.course_group_id]:[],w(o()({},x))),K(1))}),[null==i?void 0:i.userInfo]),console.log("----",U),(0,k.jsx)("div",{style:{width:1200,margin:"0px auto"},children:"封榜中"===(null==b?void 0:b.message)?(0,k.jsx)(M.Z,{customText:"答题时间进入倒计时,暂时封榜,请加速竞技通关答题"}):(0,k.jsxs)("div",{style:{background:"#fff",padding:20},children:[(0,k.jsxs)("div",{style:{display:"inline-flex"},children:[(0,k.jsx)("label",{children:"分班情况:"}),(0,L.GJ)()&&(0,k.jsx)("div",{style:{flex:1},children:(0,k.jsxs)(z.Z.Group,{className:We.Z.checkboxgroup,value:N,onChange:function(e){if(1===x.type)P([]),x.course_group=[],x.page=1,w(o()({},x)),K();else if(2===x.type){var n;P(["全部"].concat()),x.course_group=null==b||null===(n=b.course_group)||void 0===n?void 0:n.map((function(e){return e.id})),x.page=1,w(o()({},x)),K()}else P(D()(e.filter((function(e){return"全部"!=e})))),x.course_group=e.filter((function(e){return"全部"!=e})),x.page=1,w(o()({},x)),K()},children:[(0,k.jsx)(z.Z,{value:"全部",onChange:function(e){e.target.checked?x.type=2:x.type=1},children:"全部分班"}),null==b||null===(n=b.course_group)||void 0===n?void 0:n.map((function(e,n){return(0,k.jsx)(z.Z,{onChange:function(e){x.type=3},value:e.id,children:null==e?void 0:e.name})}))]})}),(0,L.dE)()&&(0,k.jsxs)(W.ZP.Group,{onChange:function(e){"全部"===e.target.value?(x.course_group=[],x.page=1,w(o()({},x)),K()):(x.course_group=[e.target.value],x.page=1,w(o()({},x)),K())},defaultValue:i.userInfo.course.course_group_id,children:[(0,k.jsx)(W.ZP,{value:"全部",children:"全部分班"}),null==b||null===(t=b.course_group)||void 0===t?void 0:t.map((function(e,n){return(0,k.jsx)(W.ZP,{value:e.id,children:e.name})}))]})]}),(0,L.GJ)()&&(0,k.jsxs)("div",{style:{width:"100%",display:"flex",justifyContent:"space-between",marginTop:10},children:[(0,k.jsxs)("span",{style:{fontSize:14,color:"#B1BACD"},children:["排行规则:时间结束后正式封榜,时间段之外的提交不计入排行。 ",(0,k.jsx)("a",{onClick:function(){f.Z.warning({title:"计分规则",width:500,content:(0,k.jsxs)("div",{children:[(0,k.jsx)("p",{children:"排名规则经典ACM规则"}),(0,k.jsx)("p",{children:"AC通过题目越多排名越靠前。"}),(0,k.jsx)("p",{children:"AC相同总用时越少排名越靠前。"}),(0,k.jsx)("p",{children:"总用时=∑(每一个题目的用时)"}),(0,k.jsx)("p",{children:"每一个题目的用时=比赛开始到提交被通过的时间+罚时"}),(0,k.jsx)("p",{children:"罚时=(通过前)错误代码提交次数*每次罚时"}),(0,k.jsx)("p",{children:"不算罚时的情况:没有通过的题目、(系统)内部错误、编译错误"})]})})},children:"点击查看计分规则"})]}),(0,k.jsx)(g.ZP,{onClick:function(){(0,me.VY)(o()(o()({},x),{},{id:x.coursesId,rank_type:2,homework_common_id:x.categoryId}))},children:"导出"})]}),(0,k.jsx)(T.Z,{spinning:Y,children:(0,k.jsx)(y.Z,{style:{marginTop:10},pagination:!1,scroll:{x:1200},rowClassName:function(e,n){return 0===n&&(0,L.dE)()&&We.Z.tables},dataSource:B,columns:U})}),(0,k.jsx)("div",{style:{width:"100%",textAlign:"center",marginTop:10},children:(0,k.jsx)(A.Z,{current:x.page,pageSize:x.per_page,total:null==b?void 0:b.count,hideOnSinglePage:!0,onChange:function(e,n){x.page=e,x.per_page=n,w(o()({},x)),K()}})})]})})})),nn=t(31954),tn=t(92074),on=t(28345),rn=t(17635),an=[{live:"A",gz:"0个错误",ld:"0个漏洞",gf:"0 - 5%"},{live:"B",gz:"至少1个次要错误",ld:"至少1个次要漏洞",gf:"6% - 10%"},{live:"C",gz:"至少1个主要错误",ld:"至少1个主要漏洞",gf:"11% - 20%"},{live:"D",gz:"至少1个严重错误",ld:"至少1个严重漏洞",gf:"21% - 50%"},{live:"E",gz:"至少1个崩溃错误",ld:"至少1个崩溃漏洞",gf:"超过50%"}],sn=(0,m.connect)((function(e){var n=e.shixunHomeworks,t=e.classroomList,i=e.loading,o=e.user;return{classroomList:t,shixunHomeworks:n,globalSetting:e.globalSetting,user:o,loading:i.effects}}))((function(e){var n,t,i,r,s=e.shixunHomeworks,c=e.classroomList,b=(e.globalSetting,e.user,e.loading,e.dispatch),S=(0,m.useParams)(),Z=(0,m.useSearchParams)(),C=u()(Z,1)[0],T=(0,d.useState)(C.get("tabs")||"0"),A=u()(T,2),N=A[0],M=A[1],P=(0,d.useState)({}),E=u()(P,2),D=E[0],B=E[1],O=s.workList,H=s.workSetting,R=(0,d.useState)(!1),z=u()(R,2),Y=z[0],G=z[1];S.category=C.get("category_id"),S.order="work_score",S.b_order="desc",(0,d.useEffect)((function(){b({type:"classroomList/getAssistantPermissions",payload:{course_id:S.coursesId}})}),[(0,L.bg)()]);var F,V,W,U,q,K,J,Q,X=function(){var e;f.Z.confirm({centered:!0,width:530,title:"提示",okText:"确定",cancelText:"取消",content:(0,k.jsxs)("div",{className:"tc font16",children:["你在该实训的学习记录将被清空,无法恢复",(0,k.jsx)("br",{}),"是否确认重做?"]}),onOk:(e=l()(a()().mark((function e(){var n,t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=null===(n=s.workList)||void 0===n?void 0:n.myshixun_identifier,e.next=3,(0,oe.Fr)({id:t});case 3:e.sent&&(h.ZP.info("已清空本实训的学习记录\n\n请点击“开启挑战”重做课程实验"),b({type:"shixunHomeworks/getWorkList",payload:D}));case 5:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},$=function e(n){var t,i;n=null!==(t=n)&&void 0!==t&&t.includes(".json")?n:"".concat(n,".json"),f.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,k.jsx)("div",{className:"tc font16",children:"实训已经更新了,正在为您重置!"}),onOk:(i=l()(a()().mark((function t(){var i,o;return a()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Ue.$Q)({url:n});case 2:if(i=t.sent){t.next=5;break}return t.abrupt("return");case 5:return h.ZP.success("重置成功,正在进入实践项目!"),t.next=8,(0,Ue.Ir)({id:i.shixun_identifier});case 8:if(null==(o=t.sent)||!o.game_identifier){t.next=12;break}return(0,j.xg)("/tasks/".concat(o.game_identifier,"?coursesId=").concat(S.coursesId)),t.abrupt("return");case 12:2===(null==o?void 0:o.status)?e(null==o?void 0:o.message):3===(null==o?void 0:o.status)&&ee(null==o?void 0:o.message);case 13:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})})},ee=function(e){f.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,k.jsxs)("div",{className:"tc font16",children:["目前该实践项目尚在内测中,将于",e,"之后开放,谢谢!"]})})},ne=function(){var e=l()(a()().mark((function e(n){var t,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=null!==(t=n)&&void 0!==t&&t.includes(".json")?n:"".concat(n,".json"),e.next=3,(0,Ue.$Q)({url:n});case 3:if(i=e.sent,console.log(i,"execRes"),null==i||!i.game_identifier){e.next=8;break}return(0,j.xg)("/tasks/".concat(i.game_identifier,"?coursesId=").concat(S.coursesId)),e.abrupt("return");case 8:-3===(null==i?void 0:i.status)?(0,j.eF)():2===(null==i?void 0:i.status)?$(null==i?void 0:i.message):3===(null==i?void 0:i.status)&&ee(null==i?void 0:i.message);case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),te=[{name:"作业列表",id:"0",compontent:(0,k.jsx)(ge,{setExportParams:B}),forceRender:!0},{name:"作业详情",id:"1",compontent:(0,k.jsx)(I,{})},{name:"排行榜",id:"5",compontent:(0,k.jsx)(en,{})},{name:"代码查重",id:"2",compontent:(0,k.jsx)(ve,{})},{name:"重做记录",id:"9",compontent:(0,k.jsx)(rn.Z,{})},{name:(0,L.GJ)()?"高级设置":"得分规则",id:"3",compontent:null!==(n=O.homework_status)&&void 0!==n&&n.includes("导入")?(0,k.jsx)(on.Z,{}):(0,k.jsx)(Re,{}),forceRender:!0},{name:(0,k.jsx)("a",{style:{color:"#b9b8b8"},href:"/classrooms/".concat(S.coursesId,"/program_homework/").concat(S.categoryId,"/answer"),children:"解答&讨论"}),id:"6",compontent:!1}].filter((function(e){var n,t;return(0,L.dE)()?"代码查重"!==e.name&&"重做记录"!==e.name:(0,L.dE)()||"已截止"!==(null==O||null===(n=O.homework_status)||void 0===n?void 0:n[0])?"质量检测"!==e.name:!O.code_review&&"未发布"!==(null==O||null===(t=O.homework_status)||void 0===t?void 0:t[0])||"代码查重"!==e.name})).filter((function(e){return!!O.open_code_quality_analysis||"质量检测"!==e.name})).filter((function(e){var n;return null===(n=O.homework_status)||void 0===n||!n.includes("导入")||((0,L.dE)()?["0","1"].includes(e.id):["0","1","3"].includes(e.id))}));return(0,k.jsxs)("section",{children:[(0,k.jsxs)("div",{className:"edu-container",children:[O.homework_name&&(0,k.jsxs)("section",{className:"animated fadeIn",children:[(0,k.jsx)("aside",{className:"mt10",children:O.category&&(0,k.jsxs)(x.Z,{separator:">",children:[(0,k.jsx)(x.Z.Item,{children:(0,k.jsx)(m.Link,{to:"/classrooms/".concat(O.course_id,"/program_homework"),children:O.course_name})}),(0,k.jsx)(x.Z.Item,{children:(0,k.jsx)(m.Link,{to:"/classrooms/".concat(O.course_id,"/program_homework/").concat(O.category.main?"":O.category.category_id),children:O.category.category_name})}),(0,k.jsx)(x.Z.Item,{children:"作业详情"})]})}),(0,k.jsxs)("aside",{className:[We.Z.title,"mt20"].join(" "),children:[(0,k.jsx)(m.Link,{to:"/classrooms/".concat(O.course_id,"/program_homework/").concat(O.category.main?"":O.category.category_id),children:(0,k.jsx)(_.Z,{className:"font16 c-black"})}),(0,k.jsx)(v.Z,{title:O.homework_name,placement:"bottom",children:(0,k.jsx)("strong",{className:"font20 ml5",children:O.homework_name})}),(0,k.jsx)(j.VV,{temporary:!0,status:O.homework_status}),(0,L.dE)()&&!(null!==(t=O.homework_status)&&void 0!==t&&t.includes("导入"))&&(0,k.jsx)("span",{style:{fontWeight:800,color:"#0152d9",textAlign:"end",flex:1,cursor:"pointer"},children:(0,k.jsxs)(g.ZP,{onClick:l()(a()().mark((function e(){var n,t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.ZP)("/api/problems/".concat(null===(n=s.workList)||void 0===n?void 0:n.start_identifier,"/start.json"),{method:"get"});case 2:(t=e.sent)&&(window.open("/myproblems/".concat(null==t?void 0:t.identifier,"?type=1")),localStorage.setItem("program_homework",[S.coursesId,S.categoryId]));case 4:case"end":return e.stop()}}),e)}))),type:"primary",children:[null!==(i=O.homework_status)&&void 0!==i&&i.includes("已截止")?"查看作业":"进入练习"," "]})})]})]}),(0,k.jsx)("aside",{className:"mt30 relative ".concat(We.Z.workListTabWrap),children:(0,k.jsx)(w.Z,{type:"card",defaultActiveKey:N,activeKey:N,tabBarExtraContent:null!==(r=O.homework_status)&&void 0!==r&&r.includes("导入")&&(0,L.GJ)()?(0,k.jsx)(g.ZP,{icon:(0,k.jsx)("span",{className:"iconfont icon-shixun3 translateY1"}),onClick:function(){b({type:"classroomList/setActionTabs",payload:{key:"补充成绩",name:null==O?void 0:O.homework_name,id:null==O?void 0:O.homework_id,type:"hack"}})},type:"primary",children:"补充成绩"}):(0,k.jsxs)("aside",{className:We.Z.workListTabButton,children:[(0,L.dE)()&&(null===(F=s.workList)||void 0===F?void 0:F.redo_work)&&(0,k.jsx)(g.ZP,{onClick:X,type:"primary",icon:(0,k.jsx)("i",{className:"iconfont icon-dahuizhongzuo3x"}),children:"重做"}),(null===(V=s.workList)||void 0===V?void 0:V.shixun_status)>1&&(null===(W=s.workList)||void 0===W?void 0:W.time_status)<5&&(0,L.dE)()&&(0,k.jsx)(g.ZP,{type:"primary",icon:(0,k.jsx)("i",{className:"iconfont icon-kaiqizhong"}),onClick:function(){var e,n,t;(0,he.tJ)(b,!0)&&(null!==(e=s.workList)&&void 0!==e&&null!==(e=e.task_operation)&&void 0!==e&&null!==(e=e[1])&&void 0!==e&&e.includes("/")?ne(null===(n=s.workList)||void 0===n||null===(n=n.task_operation)||void 0===n?void 0:n[1]):(0,j.xg)("/tasks/".concat(null===(t=s.workList)||void 0===t||null===(t=t.task_operation)||void 0===t?void 0:t[1])))},children:null===(U=s.workList)||void 0===U||null===(U=U.task_operation)||void 0===U?void 0:U[0]}),(null===(q=s.workList)||void 0===q?void 0:q.commit_des)&&(null===(K=s.workList)||void 0===K?void 0:K.commit_des)&&(0,k.jsx)(g.ZP,{type:"primary",icon:(0,k.jsx)("i",{className:"iconfont icon-tijiaozongjie"}),onClick:function(){var e;(0,j.xg)("/classrooms/".concat(S.coursesId,"/shixun_homework/").concat(S.categoryId,"/").concat(null===(e=s.workList)||void 0===e?void 0:e.id,"/commitsummary"))},children:null===(J=s.workList)||void 0===J?void 0:J.commit_des}),(0,L.GJ)()&&"未发布"===(null==O||null===(Q=O.homework_status)||void 0===Q?void 0:Q[0])&&(0,k.jsx)(g.ZP,{type:"primary",icon:(0,k.jsx)("i",{className:"iconfont icon-bianji2"}),onClick:function(){var e;null!==(e=c.AssistantObject.hack)&&void 0!==e&&e.can_create||!(0,L.Rm)()?m.history.push("/classrooms/".concat(S.coursesId,"/program_homework/").concat(S.categoryId,"/edit")):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"编辑作业"}),(0,L.GJ)()&&O.publish_immediately&&(0,k.jsx)(g.ZP,{type:"primary",icon:(0,k.jsx)("i",{className:"iconfont icon-yishezhifabushijian1"}),onClick:function(){var e;null!==(e=c.AssistantObject.hack)&&void 0!==e&&e.can_publish||!(0,L.Rm)()?b({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[S.categoryId],selectArrsAll:[O],params:S,detail:!0,type:2,manage_all_group:null==H?void 0:H.manage_all_group}}):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"立即发布"}),(0,L.GJ)()&&O.end_immediately&&(0,k.jsx)(g.ZP,{style:{background:"#0152d9",color:"#fff"},type:"primary",icon:(0,k.jsx)("i",{className:"iconfont icon-jiezhishiyan"}),onClick:function(){var e;null!==(e=c.AssistantObject.hack)&&void 0!==e&&e.can_stop||!(0,L.Rm)()?b({type:"classroomList/setActionTabs",payload:{key:"立即截止",params:S,type:2,detail:!0,selectArrs:[S.categoryId]}}):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"立即截止"})]}),onChange:function(e){var n;"5"!==e||null!==(n=c.AssistantObject.hack)&&void 0!==n&&n.can_exam_leaderboard||!(0,L.Rm)()?(M(e),"0"===e&&b({type:"shixunHomeworks/getWorkList",payload:S})):h.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:te.map((function(e,n){return(0,k.jsx)(w.Z.TabPane,{tab:e.name,forceRender:e.forceRender,children:e.compontent},e.id)}))})})]}),(0,k.jsx)(Ge,{}),(0,k.jsx)(Fe.Z,{courseEndTime:null==O?void 0:O.course_end_date,successCallback:function(){b({type:"shixunHomeworks/getWorkList",payload:o()({},S)})},visible:"立即截止"===c.actionTabs.key,homeworkIds:[S.categoryId],courseId:S.coursesId,isBatch:!1}),(0,k.jsx)(Ve.Z,{courseEndTime:null==O?void 0:O.course_end_date}),(0,k.jsx)(nn.Z,{onOk:function(){b({type:"shixunHomeworks/getWorkList",payload:o()({},S)})}}),(0,k.jsx)(tn.Z,{onOk:function(){b({type:"shixunHomeworks/getWorkList",payload:o()({},S)})}}),(0,k.jsxs)(f.Z,{open:Y,title:"规则说明",width:800,footer:null,onCancel:function(){G(!1)},children:[(0,k.jsx)("p",{children:"一、等级规则"}),(0,k.jsx)("p",{style:{marginLeft:"10px"},children:"1. 缺陷等级"}),(0,k.jsx)("p",{style:{marginLeft:"10px"},children:(0,k.jsx)(y.Z,{dataSource:an,columns:[{title:"等级",dataIndex:"live"},{title:"缺陷评估规则",dataIndex:"gz"},{title:"漏洞评估规则",dataIndex:"ld"},{title:"代码规范评估规则",dataIndex:"gf"}],pagination:!1})}),(0,k.jsx)("p",{style:{marginLeft:"10px"},children:"注代码规范评估规则中数值来源为计算技术债务时间占开发所有代码所需要的时间的比例Technical Debt Ratio"}),(0,k.jsx)("p",{style:{marginLeft:"20px"},children:"Technical Debt Ratio = 技术债务时间 / 开发时间"}),(0,k.jsx)("p",{style:{marginLeft:"20px"},children:"技术债务时间为修复所有问题所需要的时间。"}),(0,k.jsx)("p",{children:"二、复杂度规则"}),(0,k.jsx)("p",{style:{marginLeft:"10px"},children:"根据代码路径数计算的数值,每当一个函数的控制流分叉时,复杂度计数器就会自增一。"}),(0,k.jsx)("p",{style:{marginLeft:"10px"},children:"每个程序语言的关键字对应的复杂度数据不同但每个函数的最小复杂度为1。特定语言的详细数据略"}),(0,k.jsx)("p",{children:"三、代码质量分规则"}),(0,k.jsx)("p",{style:{marginLeft:"10px"},children:"代码质量分 = 0.5*缺陷分数 + 0.3*漏洞分数 + 0.2*代码规范性分数"}),(0,k.jsx)("p",{style:{marginLeft:"10px"},children:"其中:"}),(0,k.jsx)("p",{style:{marginLeft:"10px"},children:"缺陷/漏洞/代码规范性分数计算规则为100 - 100 *((100*崩溃数 + 5*严重数 + 3*主要数 + 1*次数)/ 代码行数)"}),(0,k.jsx)("p",{style:{marginLeft:"10px"},children:"注:分数为空的代表不支持的文件格式。"})]})]})}))},62672:function(e,n,t){"use strict";var i=t(7557),o=t.n(i),r=t(85573),a=t.n(r),s=t(41498),l=t.n(s),c=t(82242),u=t.n(c),d=t(37205),p=t.n(d),m=t(79800),h=t.n(m),f=t(39647),g=t.n(f),x=t(59301),v=t(78241),w=t(8591),y=t(43418),_=t(95237),j=t(5112),b=t(97913),k=t(43604),S=t(22744),Z=t(24905),C=t(99232),T=t.n(C),A=t(51136),N=t(89918),L=t(6457),M=t(7880),P=t(15766),I=t(69363),E=t(47762),D=t(37712),B=["classroomList","dispatch","courseEndTime"];n.Z=(0,M.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var n,t,i,r,s,c,d,m,f,C,O,H=e.classroomList,R=e.dispatch,z=e.courseEndTime,Y=g()(e,B),G=(0,M.useParams)(),F=v.Z.useForm(),V=h()(F,1)[0],W=(0,x.useState)(1),U=h()(W,2),q=U[0],K=U[1],J=(0,x.useState)([]),Q=h()(J,2),X=Q[0],$=Q[1],ee=(0,x.useState)(0),ne=h()(ee,2),te=(ne[0],ne[1]),ie=(0,x.useState)(2e3),oe=h()(ie,2),re=(oe[0],oe[1],(0,x.useState)(!0)),ae=h()(re,2),se=(ae[0],ae[1]),le=(0,x.useState)(!1),ce=h()(le,2),ue=ce[0],de=(ce[1],(0,x.useState)(!1)),pe=h()(de,2),me=pe[0],he=(pe[1],(0,x.useState)([])),fe=h()(he,2),ge=fe[0],xe=fe[1],ve=(0,x.useState)(!0),we=h()(ve,2),ye=we[0],_e=we[1],je=(0,x.useState)(!(null!==(n=H.actionTabs)&&void 0!==n&&null!==(n=n.selectArrsAll)&&void 0!==n&&null!==(n=n[0])&&void 0!==n&&n.send_type)),be=h()(je,2),ke=be[0],Se=be[1],Ze=(0,x.useState)([0,0,0]),Ce=h()(Ze,2),Te=Ce[0],Ae=Ce[1];(0,x.useEffect)((function(){if("立即发布"===H.actionTabs.key){var e,n,t,i;if(Pe(),null!==(e=H.actionTabs)&&void 0!==e&&null!==(e=e.selectArrsAll)&&void 0!==e&&null!==(e=e[0])&&void 0!==e&&e.can_publish)Ae(p()(null===(t=H.actionTabs)||void 0===t||null===(t=t.selectArrsAll)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.difficult_count));else Ae(p()(null===(i=H.actionTabs)||void 0===i||null===(i=i.selectArrsAll)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.difficult_settings));if(Se(!(null!==(n=H.actionTabs)&&void 0!==n&&null!==(n=n.selectArrsAll)&&void 0!==n&&null!==(n=n[0])&&void 0!==n&&n.send_type)),Ne(),2===H.actionTabs.type){var o,r=null===(o=H.actionTabs.selectArrsAll)||void 0===o?void 0:o[0];_e(r.unified_setting)}}}),[H.actionTabs]),(0,x.useEffect)((function(){if(ue){if(me)return;R({type:"classroomList/setActionTabs",payload:{}}),(0,N.GJ)()?(R({type:"classroomList/getClassroomTeacherCommonList",payload:u()(u()({},H.actionTabs.params),{},{type:1})}),R({type:"shixunHomeworks/getWorkList",payload:u()({},G)})):R({type:"classroomList/getClassroomCommonList",payload:u()({},H.actionTabs.params)})}}),[ue]);var Ne=function(){var e=l()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return se(!0),e.next=3,(0,I.c_)(u()(u()({},G),{},{page:n||q,limit:2e4,homework_id:1===H.actionTabs.type?"":H.actionTabs.selectArrs[0]}));case 3:null==(t=e.sent)||t.course_groups.map((function(e,n){e.key=e.id,e.title=e.name,e.disabled=e.is_published})),t&&($(p()(null==t?void 0:t.course_groups)),te(null==t?void 0:t.course_groups_count),se(!1),n||V.setFieldsValue(a()(a()({},"publish_time",T()(T()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",T()(T()(new Date((0,L.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm")))));case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Le=function(){(0,N.GJ)()?H.actionTabs.detail?(R({type:"shixunHomeworks/setActionTabs",payload:{}}),R({type:"shixunHomeworks/getWorkList",payload:u()({},G)}),R({type:"shixunHomeworks/getWorkSetting",payload:u()({},G)})):R({type:"classroomList/getClassroomTeacherCommonList",payload:u()(u()({},H.actionTabs.params),{},{type:5,category:H.actionTabs.params.categoryId})}):R({type:"classroomList/getClassroomCommonList",payload:u()({},H.actionTabs.params)})},Me=function(){var e=l()(o()().mark((function e(){var n,t,i,r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,N.Rm)()||null!==(n=H.AssistantObject.hack)&&void 0!==n&&n.can_publish){e.next=4;break}return w.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),Be(!1),e.abrupt("return");case 4:if(!((i=u()({},V.getFieldsValue())).end_time<=i.publish_time)){e.next=9;break}return w.ZP.info("截止时间不能大于或等于发布时间"),Be(!1),e.abrupt("return");case 9:if(!((null==ge?void 0:ge.length)<=0&&!ye&&X.length>0)){e.next=13;break}return w.ZP.info("发布班级不能为空"),Be(!1),e.abrupt("return");case 13:if(0!==Te.reduce((function(e,n){return e+n}))||ke){e.next=17;break}return w.ZP.info("简单适中困难题数相加不能为0"),Be(!1),e.abrupt("return");case 17:return r={homework_ids:p()(H.actionTabs.selectArrs),group_ids:ge.length>0?ge.map((function(e){return e.id})):null===(t=H.detailCommonHomeworksList)||void 0===t?void 0:t.course_groups,end_time:T()(i.end_time).format("YYYY-MM-DD HH:mm"),publish_time:T()(i.publish_time).format("YYYY-MM-DD HH:mm"),difficult_settings:null==Te?void 0:Te.map((function(e){return e})),send_type:ke?"0":"1",unified_setting:!ge.length},Be(!0),e.next=21,(0,A.ZP)("/api/courses/".concat(G.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:u()({},r)});case 21:0===e.sent.status?(Be(!1),(0,L.L9)(["教学课堂","图文作业","立即发布"]),w.ZP.success("发布成功"),R({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),Y.onCallback&&Y.onCallback(),Le(),"0"===localStorage.getItem("Noviceguide")||R({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:13,text:(0,D.jsx)("div",{children:"最后,咱们给教学课堂添加一名学生~点击“添加学生”,在弹窗页面中输入并搜索学生姓名,点击“确定”就可以为您的课堂添加第一位学生啦~"})}})):Be(!1);case 23:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Pe=function(){K(1),$([]),xe([])},Ie=(0,x.useState)(!1),Ee=h()(Ie,2),De=Ee[0],Be=Ee[1];return(0,D.jsxs)(y.Z,{width:600,confirmLoading:De,centered:!0,title:"发布作业",open:"立即发布"===H.actionTabs.key,okText:"发布作业",cancelText:"暂不发布",onOk:Me,onCancel:function(){Pe(),Le(),R({type:"classroomList/setActionTabs",payload:{}})},children:[(0,D.jsxs)("p",{className:"tc",children:["学生将立即收到作业",(0,D.jsx)("br",{}),'本操作只对"未发布"的作业有效']}),X&&(0,D.jsxs)(v.Z,{form:V,children:[(0,D.jsxs)("div",{style:{paddingLeft:0},children:[2===H.actionTabs.type&&(0,D.jsxs)(_.Z,{style:{marginBottom:"10px"},children:[(0,D.jsx)("span",{className:"mr5",children:"试题发送:"}),(0,D.jsxs)(j.ZP.Group,{value:ke,disabled:!(null!==(t=H.actionTabs)&&void 0!==t&&null!==(t=t.selectArrsAll)&&void 0!==t&&null!==(t=t[0])&&void 0!==t&&t.can_publish),onChange:function(e){Se(e.target.value)},children:[(0,D.jsx)(j.ZP,{value:!0,children:"全部固定试题"}),(0,D.jsx)(j.ZP,{className:"ml20",value:!1,children:"随机抽取"})]})]}),!ke&&(0,D.jsxs)(_.Z,{style:{marginBottom:"10px"},children:[(0,D.jsx)("span",{style:{marginRight:65}}),(0,D.jsxs)("span",{children:["简单题数 ",(0,D.jsx)(b.Z,{value:Te[0],onChange:function(e){Te[0]=e,Ae(p()(Te))},min:0,disabled:!(null!==(i=H.actionTabs)&&void 0!==i&&null!==(i=i.selectArrsAll)&&void 0!==i&&null!==(i=i[0])&&void 0!==i&&i.can_publish),placeholder:"最大".concat(null===(r=H.actionTabs)||void 0===r||null===(r=r.selectArrsAll)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.difficult_count)||void 0===r?void 0:r[0]),max:null===(s=H.actionTabs)||void 0===s||null===(s=s.selectArrsAll)||void 0===s||null===(s=s[0])||void 0===s||null===(s=s.difficult_count)||void 0===s?void 0:s[0],style:{width:60}})]}),(0,D.jsxs)("span",{style:{margin:"0px 40px"},children:["适中题数 ",(0,D.jsx)(b.Z,{value:Te[1],onChange:function(e){Te[1]=e,Ae(p()(Te))},min:0,disabled:!(null!==(c=H.actionTabs)&&void 0!==c&&null!==(c=c.selectArrsAll)&&void 0!==c&&null!==(c=c[0])&&void 0!==c&&c.can_publish),max:null===(d=H.actionTabs)||void 0===d||null===(d=d.selectArrsAll)||void 0===d||null===(d=d[0])||void 0===d||null===(d=d.difficult_count)||void 0===d?void 0:d[1],placeholder:"最大".concat(null===(m=H.actionTabs)||void 0===m||null===(m=m.selectArrsAll)||void 0===m||null===(m=m[0])||void 0===m||null===(m=m.difficult_count)||void 0===m?void 0:m[1]),style:{width:60}})]}),(0,D.jsxs)("span",{children:["困难题数 ",(0,D.jsx)(b.Z,{value:Te[2],onChange:function(e){Te[2]=e,Ae(p()(Te))},min:0,disabled:!(null!==(f=H.actionTabs)&&void 0!==f&&null!==(f=f.selectArrsAll)&&void 0!==f&&null!==(f=f[0])&&void 0!==f&&f.can_publish),placeholder:"最大".concat(null===(C=H.actionTabs)||void 0===C||null===(C=C.selectArrsAll)||void 0===C||null===(C=C[0])||void 0===C||null===(C=C.difficult_count)||void 0===C?void 0:C[2]),max:null===(O=H.actionTabs)||void 0===O||null===(O=O.selectArrsAll)||void 0===O||null===(O=O[0])||void 0===O||null===(O=O.difficult_count)||void 0===O?void 0:O[2],style:{width:60}})]})]}),(0,D.jsxs)(_.Z,{className:"mt30",align:"middle",children:[(0,D.jsx)(k.Z,{children:(0,D.jsx)(v.Z.Item,{name:"publish_time",label:"发布时间",children:(0,D.jsx)(S.default,{style:{width:170,marginRight:"25px"},disabledDate:function(e){return(0,E.Q8)(e,z)},disabledTime:function(e){return(0,E.d0)(e)},placeholder:"请选择发布时间",showTime:{format:"HH:mm",defaultValue:T()((0,L.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),(0,D.jsx)(k.Z,{className:"ml20",children:(0,D.jsx)(v.Z.Item,{name:"end_time",label:"截止时间",children:(0,D.jsx)(S.default,{style:{width:170},placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:T()((0,L.U6)(),"HH:mm")},disabledDate:function(e){return(0,E.Q8)(e,z,V.getFieldValue("publish_time"))},disabledTime:function(e){return(0,E.d0)(e,V.getFieldValue("publish_time"))},format:"YYYY-MM-DD HH:mm",allowClear:!1})})})]}),2===H.actionTabs.type&&(0,D.jsxs)(_.Z,{style:{marginBottom:"10px"},children:[(0,D.jsx)("span",{className:"mr5",children:"发布设置:"}),(0,D.jsxs)(j.ZP.Group,{value:ye,onChange:function(e){_e(e.target.value),xe([])},children:[(0,D.jsx)(j.ZP,{value:!0,disabled:!H.actionTabs.manage_all_group,children:"统一发布"}),(0,D.jsx)(j.ZP,{className:"ml20",disabled:X.length<=0,value:!1,children:"分班发布"})]})]}),X.length<=0&&2===H.actionTabs.type&&(0,D.jsx)("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"},children:'课堂无分班,仅支持选择“统一发布"'})]}),(1===H.actionTabs.type||!ye)&&X.length>0&&(0,D.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"},children:[(0,D.jsxs)("span",{style:{flex:1},children:[(0,D.jsx)(Z.Z,{checked:ge.length===X.length,onChange:function(e){ge.length===X.length?xe([]):xe(X.filter((function(e){return!e.is_published})))},children:"全选"})," "]}),(0,D.jsx)("span",{style:{width:16}}),(0,D.jsxs)("span",{style:{flex:1},children:["已选择",ge.length||0,"个分班"]})]}),(1===H.actionTabs.type||!ye)&&X.length>0&&(0,D.jsx)(P.Z,{data:X,selectedRowKeys:ge,setSelectedRowKeys:xe})]})]})}))},31954:function(e,n,t){"use strict";var i=t(82242),o=t.n(i),r=t(85573),a=t.n(r),s=t(7557),l=t.n(s),c=t(41498),u=t.n(c),d=t(79800),p=t.n(d),m=t(59301),h=t(21068),f=t(78241),g=t(43418),x=t(8591),v=t(52306),w=t(7880),y=t(27065),_=t(83547),j=t(51136),b=t(99232),k=t.n(b),S=t(6457),Z=t(37712),C=h.Z.Dragger;n.Z=(0,w.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var n,t=e.classroomList,i=e.dispatch,r=e.onOk,s=((0,w.useParams)(),f.Z.useForm()),c=p()(s,1)[0],d=(0,m.useState)(),h=p()(d,2),b=h[0],T=h[1],A=(0,m.useState)(!1),N=p()(A,2),L=N[0],M=N[1],P={height:100,onRemove:function(){T("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:(n=u()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(n),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})};return(0,m.useEffect)((function(){c.setFieldsValue(a()(a()({},"publish_time",k()(k()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",k()(k()(new Date((0,S.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),[]),(0,Z.jsx)(g.Z,{centered:!0,title:"补充成绩",open:"补充成绩"===t.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:L},onOk:u()(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(),i({type:"classroomList/setActionTabs",payload:{}})},children:(0,Z.jsxs)(f.Z,{form:c,onFinish:function(){var e=u()(l()().mark((function e(n){var o,a,s,u,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=b&&b.size){e.next=3;break}return x.ZP.info("请上传文件"),e.abrupt("return");case 3:return M(!0),(o=new FormData).append("type",t.actionTabs.type),o.append("file",b),a=window.location.href.indexOf("exercise")>-1?"/api/exercises/".concat(t.actionTabs.id,"/supplement_score.json"):"/api/homework_commons/".concat(t.actionTabs.id,"/supplement_score.json"),e.next=10,(0,j.ZP)(a,{method:"post",body:o},!0);case 10:s=e.sent,M(!1),0===(null==s?void 0:s.status)&&(r(),c.resetFields(),i({type:"classroomList/setActionTabs",payload:{}}),(null==s||null===(u=s.data)||void 0===u||null===(u=u.fail)||void 0===u?void 0:u.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,Z.jsx)(v.Z,{pagination:!1,dataSource:null==s||null===(d=s.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,S.FH)("",y.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(t.actionTabs.type))}}));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,Z.jsx)(f.Z.Item,{label:"作业名称",labelCol:{span:3},name:"name",children:t.actionTabs.name}),(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:_.Z.downloadbutton,href:y.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(t.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)(C,o()(o()({},P),{},{children:[(0,Z.jsx)("a",{className:_.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,Z.jsx)("br",{}),(0,Z.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},17635:function(e,n,t){"use strict";var i=t(7557),o=t.n(i),r=t(41498),a=t.n(r),s=t(79800),l=t.n(s),c=t(70236),u=t.n(c),d=t(59301),p=t(21068),m=t(78241),h=t(99313),f=t(52306),g=t(88590),x=t(7880),v=t(51136),w=t(99232),y=t.n(w),_=t(37712);p.Z.Dragger;n.Z=(0,x.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){u()(e);var n=(0,x.useParams)(),t=m.Z.useForm(),i=(l()(t,1)[0],(0,d.useState)(!0)),r=l()(i,2),s=r[0],c=r[1],p=(0,d.useState)(!1),w=l()(p,2),j=w[0],b=w[1],k=(0,d.useState)({type:window.location.href.indexOf("program_homework")>-1?2:1,limit:10,page:1}),S=l()(k,2),Z=S[0],C=S[1],T=[{name:"全部",value:"",question_type:0},{name:"单选题",value:"SINGLE",question_type:0},{name:"多选题",value:"MULTIPLE",question_type:1},{name:"判断题",value:"JUDGMENT",question_type:2},{name:"填空题",value:"COMPLETION",question_type:3},{name:"简答题",value:"SUBJECTIVE",question_type:4},{name:"实训题",value:"SHIXUN",question_type:5},{name:"编程题",value:"PROGRAM",question_type:6},{name:"组合题",value:"COMBINATION",question_type:7},{name:"程序填空题",value:"BPROGRAM",question_type:8}];function A(){return N.apply(this,arguments)}function N(){return(N=a()(o()().mark((function e(){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return b(!0),t=window.location.href.indexOf("exercise")>-1?"/api/exercises/".concat(null==n?void 0:n.categoryId,"/redo_logs.json"):"/api/homework_commons/".concat(null==n?void 0:n.categoryId,"/redo_logs.json"),e.next=4,(0,v.ZP)(t,{method:"get",params:Z});case 4:i=e.sent,b(!1),0===(null==i?void 0:i.status)&&c(null==i?void 0:i.data);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,d.useEffect)((function(){A()}),[]);var L=[{title:"姓名",dataIndex:"user_name"},{title:"学号",dataIndex:"student_id"},{title:"班级",dataIndex:"course_group_name"},window.location.href.indexOf("exercise")>-1&&{title:"题型",dataIndex:"question_type",render:function(e,n,t){var i;return null===(i=T.find((function(n){return n.question_type===e})))||void 0===i?void 0:i.name}},window.location.href.indexOf("exercise")>-1&&{title:"试题名称",dataIndex:"question_name"},window.location.href.indexOf("exercise")>-1&&{title:"关卡名称",dataIndex:"challenge_name"},window.location.href.indexOf("exercise")<=-1&&{title:"任务名称",dataIndex:"task_name",width:"40%"},{title:"操作",dataIndex:"redo_type",render:function(e,n,t){var i;return null===(i=[{id:1,name:"打回重做"},{id:2,name:"恢复初始代码"},{id:3,name:"重置代码仓库"}].find((function(n){return n.id===e})))||void 0===i?void 0:i.name}},{title:"恢复初始代码时间",dataIndex:"created_at",render:function(e,n,t){return y()(e).format("YYYY-MM-DD HH:mm:ss")}}].filter((function(e){return!!e}));return(0,_.jsxs)("div",{style:{padding:"0px 30px",background:"#fff",paddingBottom:30},children:[(0,_.jsx)(h.Z,{destroyInactiveTabPane:!0,onChange:function(e){Z.type=e,Z.page=1,Z.limit=10,C(Z),A()},items:[window.location.href.indexOf("program_homework")<=-1&&{key:"1",label:"打回重做",children:(0,_.jsx)(f.Z,{loading:j,columns:[{title:"姓名",dataIndex:"user_name"},{title:"学号",dataIndex:"student_id"},{title:"班级",dataIndex:"course_group_name"},{title:"打回重做时间",dataIndex:"created_at",render:function(e,n,t){return y()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"操作人",dataIndex:"operator"}],dataSource:null==s?void 0:s.list,pagination:!1})},{key:"2",label:"重置代码",children:(0,_.jsx)(f.Z,{loading:j,columns:L,dataSource:null==s?void 0:s.list,pagination:!1})}].filter((function(e){return!!e}))}),(0,_.jsx)(g.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:function(e,n){Z.page=e,Z.limit=n,C(Z),A()},current:Z.page,total:s.count,pageSize:Z.limit,style:{marginTop:20}})]})}))},92074:function(e,n,t){"use strict";var i=t(82242),o=t.n(i),r=t(85573),a=t.n(r),s=t(7557),l=t.n(s),c=t(41498),u=t.n(c),d=t(79800),p=t.n(d),m=t(59301),h=t(21068),f=t(78241),g=t(43418),x=t(97913),v=t(7880),w=t(51136),y=t(99232),_=t.n(y),j=t(6457),b=t(37712);h.Z.Dragger;n.Z=(0,v.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var n,t=e.classroomList,i=e.dispatch,r=e.onOk,s=(0,v.useParams)(),c=f.Z.useForm(),d=p()(c,1)[0],h=(0,m.useState)(),y=p()(h,2),k=(y[0],y[1]),S=(0,m.useState)(!1),Z=p()(S,2),C=Z[0],T=Z[1];n=u()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(n),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)})));return(0,m.useEffect)((function(){d.setFieldsValue(a()(a()({},"publish_time",_()(_()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",_()(_()(new Date((0,j.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),[]),(0,b.jsx)(g.Z,{centered:!0,title:"修改成绩",open:"修改成绩"===t.actionTabs.key,okText:"确定",width:600,cancelText:"取消",okButtonProps:{loading:C},onOk:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:d.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){d.resetFields(),i({type:"classroomList/setActionTabs",payload:{}})},children:(0,b.jsx)(f.Z,{form:d,onFinish:function(){var e=u()(l()().mark((function e(n){var a,c,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("---",t.actionTabs,n,s),u="exercise"===(null==t||null===(a=t.actionTabs)||void 0===a?void 0:a.type)?"/api/exercises/".concat(null==s?void 0:s.category,"/exercise_user/edit_score.json"):"/api/student_works/".concat(t.actionTabs.id,"/edit_score.json"),T(!0),e.next=5,(0,w.ZP)(u,{method:"post",body:o()(o()({},n),{},{exercise_user_id:"exercise"===(null==t||null===(c=t.actionTabs)||void 0===c?void 0:c.type)?t.actionTabs.id:""})});case 5:e.sent,T(!1),d.resetFields(),i({type:"classroomList/setActionTabs",payload:{}}),r();case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:(0,b.jsx)(f.Z.Item,{label:"最终成绩",style:{marginBottom:0},name:"score",rules:[{required:!0,message:"请输入最终成绩"}],children:(0,b.jsx)(x.Z,{min:0,style:{width:"100%"}})})})})}))},28345:function(e,n,t){"use strict";var i=t(85573),o=t.n(i),r=t(7557),a=t.n(r),s=t(41498),l=t.n(s),c=t(79800),u=t.n(c),d=t(70236),p=t.n(d),m=t(59301),h=t(21068),f=t(78241),g=t(3113),x=t(95237),v=t(81327),w=t(22744),y=t(7880),_=t(99232),j=t.n(_),b=t(47762),k=t(51136),S=t(37712);h.Z.Dragger;n.Z=(0,y.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){p()(e);var n=(0,y.useParams)(),t=f.Z.useForm(),i=u()(t,1)[0],r=(0,m.useState)(!0),s=u()(r,2),c=s[0],d=s[1],h=(0,m.useState)(!1),_=u()(h,2),Z=_[0],C=_[1];function T(){return(T=l()(a()().mark((function e(){var t,r,s,l;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=window.location.href.indexOf("exercise")>-1?"/api/exercises/".concat(null==n?void 0:n.categoryId,"/get_time_setting.json"):"/api/homework_commons/".concat(null==n?void 0:n.categoryId,"/get_time_setting.json"),e.next=3,(0,k.ZP)(t,{method:"get"});case 3:0===(null==(r=e.sent)?void 0:r.status)&&i.setFieldsValue(o()(o()({},"publish_time",j()(j()(null==r||null===(s=r.data)||void 0===s?void 0:s.publish_time).format("YYYY-MM-DD HH:mm"))),"end_time",j()(j()(null==r||null===(l=r.data)||void 0===l?void 0:l.end_time).format("YYYY-MM-DD HH:mm"))));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return console.log("----",n),(0,m.useEffect)((function(){!function(){T.apply(this,arguments)}()}),[]),(0,S.jsxs)("div",{style:{padding:"50px 30px",background:"#fff"},children:[(0,S.jsxs)("div",{style:{textAlign:"end"},children:[c&&(0,S.jsx)(g.ZP,{onClick:function(){d(!1)},children:"编辑设置"}),!c&&(0,S.jsxs)("div",{children:[(0,S.jsx)(g.ZP,{type:"primary",loading:Z,onClick:function(){i.submit()},children:"提交"}),(0,S.jsx)(g.ZP,{style:{marginLeft:20},onClick:function(){d(!0)},children:"取消"})]})]}),(0,S.jsxs)(f.Z,{form:i,disabled:c,onFinish:function(){var e=l()(a()().mark((function e(t){var i,o;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),console.log("---",window.location.href),i=window.location.href.indexOf("exercise")>-1?"/api/exercises/".concat(null==n?void 0:n.categoryId,"/time_setting.json"):"/api/homework_commons/".concat(null==n?void 0:n.categoryId,"/time_setting.json"),e.next=5,(0,k.ZP)(i,{method:"post",body:{publish_time:j()(t.publish_time).format("YYYY-MM-DD HH:mm"),end_time:j()(t.end_time).format("YYYY-MM-DD HH:mm")}});case 5:o=e.sent,C(!1),0===(null==o?void 0:o.status)&&d(!0);case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,S.jsx)(x.Z,{children:(0,S.jsxs)(v.Z,{children:[(0,S.jsx)(f.Z.Item,{label:"开始时间",name:"publish_time",rules:[{required:!0,message:"请选择开始时间"}],children:(0,S.jsx)(w.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:260},size:"large",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,S.jsx)("span",{style:{color:"#999999",fontSize:"14px",height:40,marginBottom:8,display:"block"},children:"(学生收到作业的时间)"})]})}),(0,S.jsx)(x.Z,{children:(0,S.jsxs)(v.Z,{children:[(0,S.jsx)(f.Z.Item,{label:"结束时间",name:"end_time",rules:[{required:!0,message:"请选择结束时间"}],children:(0,S.jsx)(w.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:260},size:"large",disabledDate:function(e){return(0,b.Q8)(e,"",i.getFieldValue("publish_time"))},disabledTime:function(e){return(0,b.d0)(e,i.getFieldValue("publish_time"))},allowClear:!1,format:"YYYY-MM-DD HH:mm"})}),(0,S.jsx)("span",{style:{color:"#999999",fontSize:"14px",height:40,marginBottom:8,display:"block"},children:"(学生“按时”提交作品的时间截点)"})]})})]})]})}))},15766:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var i=t(7557),o=t.n(i),r=t(41498),a=t.n(r),s=t(79800),l=t.n(s),c=t(59301),u=t(8772),d=t(24905),p=t(95237),m="leftdiv___aBzsX",h="listClass___bxIEW",f="spantitle___v_Vc4",g="rightdiv___xWu4M",x=t(7406),v=t(37712),w=function(e){var n=e.data,t=(e.value,e.handleChangePage,e.setSelectedRowKeys),i=e.selectedRowKeys,r=(e.onChange,(0,c.useState)([])),s=l()(r,2),w=s[0],y=s[1],_=(0,c.useState)([]),j=l()(_,2),b=j[0],k=j[1],S=(0,c.useState)([]),Z=l()(S,2),C=Z[0],T=Z[1],A=(0,c.useState)(1),N=l()(A,2),L=(N[0],N[1],(0,c.useState)()),M=l()(L,2);M[0],M[1];return(0,c.useEffect)((function(){y(n),k([]),T([])}),[n]),(0,c.useEffect)((function(){t&&(k(i),T(i))}),[i]),(0,v.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,v.jsxs)("div",{className:m,children:[(0,v.jsx)(u.Z.Search,{size:"middle",onChange:function(){var e=a()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y(n.filter((function(e){var n;return null==e||null===(n=e.name)||void 0===n?void 0:n.includes(t.target.value)})));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),placeholder:"可输入班级名称查询"}),0===w.length&&(0,v.jsx)(x.Z,{styles:{margin:"70px auto"},customText:"暂无分班"}),(0,v.jsx)("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"},children:(0,v.jsx)(d.Z.Group,{value:b.map((function(e){return"".concat(e.id)})),onChange:function(e){t(w.filter((function(n){return e.includes("".concat(n.id))})))},style:{marginTop:"10px",flexDirection:"column"},children:w.map((function(e,n){return(0,v.jsx)(p.Z,{style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200},children:(0,v.jsx)(d.Z,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:e.is_published,value:"".concat(e.id),children:(0,v.jsxs)("div",{className:h,children:[(0,v.jsx)("span",{className:f,style:{width:e.is_published?"108px":"170px"},children:e.name}),e.is_published&&(0,v.jsx)("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"},children:"已发布"})]})})},e.id)}))})})]}),(0,v.jsxs)("div",{className:g,children:[(0,v.jsx)(u.Z.Search,{onChange:function(e){T(b.filter((function(n){return n.name.includes(e.target.value)})))},size:"middle",placeholder:"可输入班级名称查询"}),0===C.length&&(0,v.jsx)(x.Z,{styles:{margin:"70px auto"},customText:"暂未选择分班"}),C.length>0&&(0,v.jsx)("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"},children:(0,v.jsx)("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0},children:C.map((function(e,n){return(0,v.jsxs)(p.Z,{justify:"space-between",style:{marginTop:"10px"},children:[(0,v.jsx)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"},children:e.name}),(0,v.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){t(b.filter((function(n){return"".concat(n.id)!="".concat(e.id)})))}})]},e.id)}))})})]})]})}},84717:function(e,n,t){"use strict";t.d(n,{AD:function(){return M},D9:function(){return O},Hp:function(){return k},IM:function(){return R},Iy:function(){return Z},KM:function(){return J},MJ:function(){return S},Ne:function(){return H},ON:function(){return V},Uj:function(){return q},VY:function(){return G},YO:function(){return U},YX:function(){return W},Zn:function(){return g},_g:function(){return _},_k:function(){return D},c6:function(){return N},cr:function(){return x},eV:function(){return L},fi:function(){return v},gh:function(){return T},hS:function(){return z},iA:function(){return w},j6:function(){return j},je:function(){return E},jj:function(){return b},kS:function(){return F},o6:function(){return A},pO:function(){return K},rQ:function(){return P},sA:function(){return C},xm:function(){return B},xo:function(){return Y},y8:function(){return I},yd:function(){return y}});var i=t(7557),o=t.n(i),r=t(82242),a=t.n(r),s=t(41498),l=t.n(s),c=t(69363),u=t(7880),d=t(6457),p=t(8591),m=t(27065),h=function(){(0,u.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"正在生成文件,请稍后..."}})},f=function(){(0,u.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},g=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(),e.next=3,(0,c.YR)(a()({},n));case 3:if(0!==e.sent.status){e.next=7;break}return e.next=7,(0,d.QH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/courses/".concat(n.coursesId,"/export_couser_info.json"),query:n}));case 7:f();case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),x=function(){var e=l()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.yS)(a()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_member_act_score")),e.next=13;break;case 8:if(-2!==t.status){e.next=12;break}return e.abrupt("return",t);case 12:-3===t.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),v=function(){var e=l()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.W0)(a()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_total_score")),e.next=13;break;case 8:if(-4!==t.status){e.next=12;break}return e.abrupt("return",t);case 12:-3===t.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_total_score")));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),w=function(){var e=l()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.Nl)(a()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_total_exercise_and_other")),e.next=13;break;case 8:if(-4!==t.status){e.next=12;break}return e.abrupt("return",t);case 12:-3===t.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),y=function(){var e=l()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.IU)(a()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/export_star_user")),e.next=13;break;case 8:if(-4!==t.status){e.next=12;break}return e.abrupt("return",t);case 12:-3===t.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/export_star_user")));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),_=function(){var e=l()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.td)(a()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_total_exercise_and_other")),e.next=19;break;case 8:if(-2!==t.status){e.next=12;break}return e.abrupt("return",t);case 12:if(-3!==t.status){e.next=17;break}(0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_total_exercise_and_other")),e.next=19;break;case 17:if(-4!==t.status){e.next=19;break}return e.abrupt("return",t);case 19:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),j=function(){var e=l()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.QX)(a()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_total_homework")),e.next=13;break;case 8:if(-4!==t.status){e.next=12;break}return e.abrupt("return",t);case 12:-3===t.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),b=function(){var e=l()(o()().mark((function e(n,t){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.o_)(a()({},n));case 2:0===(i=e.sent).status?(p.ZP.info("导出任务生成成功导出后文件保存时间为7天请及时下载"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t))):-3===i.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t)));case 4:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),k=function(){var e=l()(o()().mark((function e(n,t){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.ZL)(a()({},n));case 2:0===(i=e.sent).status?(p.ZP.info("导出任务生成成功导出后文件保存时间为7天请及时下载"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t))):-3===i.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t)));case 4:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),S=function(){var e=l()(o()().mark((function e(n,t){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.vV)(a()({},n));case 2:0===(i=e.sent).status?(p.ZP.info("导出任务生成成功导出后文件保存时间为7天请及时下载"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t))):-3===i.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t)));case 4:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),Z=function(){var e=l()(o()().mark((function e(n,t){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.aP)(a()({},n));case 2:0===(i=e.sent).status?(p.ZP.info("导出任务生成成功"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t))):-3===i.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t)));case 4:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),C=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(),e.next=3,(0,c.MJ)(a()({},n));case 3:if(0!==e.sent.status){e.next=7;break}return e.next=7,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/polls/".concat(n.categoryId,"/commit_result.xlsx"),query:n}));case 7:f();case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),T=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/courses/".concat(n.coursesId,"/attendances/export_xlsx_data.xlsx"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),A=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/courses/".concat(n.coursesId,"/video_study_statics.xlsx"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),N=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/courses/".concat(n.coursesId,"/export_video_study.xlsx"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),L=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/courses/".concat(n.coursesId,"/export_course_students_info.xlsx"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),M=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/school_manages/students.xlsx",query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),P=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/item_banks/export.xlsx",query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),I=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),E=function(){var e=l()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.Uy)(a()({},n));case 2:0===(t=e.sent).status?(p.ZP.info("导出任务生成成功"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/exercise_score"))):-3===t.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/exercise_score")));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),D=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("----------","调用下载"),e.next=3,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/export_records/".concat(n.id,".xlsx"),query:n}));case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),B=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),O=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/courses/".concat(null==n?void 0:n.coursesId,"/").concat(n.menuKey,"_statistic.xlsx?").concat(n.checkedList.map((function(e){return"course_group_id[]=".concat(e)})).join("&")),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),H=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/ec_years/".concat(null==n?void 0:n.ec_year_id,"/ec_training_objectives.xlsx"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),R=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)(null==n?void 0:n.name,(0,d.NY)({url:m.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),z=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/ec_years/".concat(null==n?void 0:n.ec_year_id,"/ec_courses.xlsx"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Y=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/ec_years/".concat(null==n?void 0:n.ec_year_id,"/ec_graduation_requirements.xlsx"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),G=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),F=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),V=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/examination_banks/".concat(n.id,".json"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),W=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/exercises/".concat(n.categoryId,".json"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),U=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/polls/".concat(null==n?void 0:n.id,"/commit_result.json"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),q=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/paths/get_task_pass.json",query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),K=function(){var e=l()(o()().mark((function e(n,t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)(t||"",(0,d.NY)({url:m.Z.API_SERVER+"/api/exercises/".concat(null==n?void 0:n.exercise_id,"/consult_exercise.json"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),J=function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:m.Z.API_SERVER+"/api/competitions/".concat(null==n?void 0:n.identifier,"/competition_commit_records/member_works.xlsx"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()},77878:function(e,n,t){"use strict";t(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;n.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0Y3QjUwMCIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptMSAzSDYuMzk1YTMuNTAxIDMuNTAxIDAgMCAxLS44NTcgMS4yNDVjLS4zMi4yOTQtLjc1Mi41NTEtMS4yOTcuNzcyTDQgOS4xMDlWMTAuOWMuNDQ4LS4xNTQuODItLjMxNSAxLjExNy0uNDgzLjIyMi0uMTI2LjQ1LS4yODIuNjg1LS40NjZsLjIzNi0uMTk0VjE1SDhWN1pNNC44MTIgMGMuMTc1IDAgLjM1LjE2LjQzOC4zMThsMS4zMTMgMi4zMDlzLTIuOC4xNi00LjQ2MyAxLjY3MkwuMDg4LjcxNkMwIC42MzYgMCAuNTU3IDAgLjQ3OCAwIC4xNTkuMjYzIDAgLjUyNSAwWm04LjY2MyAwYy4yNjMgMCAuNTI1LjIzOS41MjUuNDc4IDAgLjA4IDAgLjE1OS0uMDg4LjIzOEwxMS45IDQuMjJjLTEuNjYyLTEuNDMzLTQuNDYzLTEuNTkyLTQuNDYzLTEuNTkyTDguNzUuMzE4QzguNzUuMTYgOC45MjUgMCA5LjE4OCAwWiIvPjwvc3ZnPg=="},96648:function(e,n,t){"use strict";t(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;n.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0I5QzRDRiIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptLjA1IDNjLS42NzUgMC0xLjIwMy4wOTItMS41ODQuMjc2YTIuMDU2IDIuMDU2IDAgMCAwLS44ODcuNzk0Yy0uMTguMjk2LS4zMS42OTEtLjM5NCAxLjE4NmwtLjAzOC4yNTUgMi4wMDQuMTc3Yy4wNTUtLjQ0My4xNjQtLjc1My4zMjYtLjkyOGEuODE0LjgxNCAwIDAgMSAuNjI2LS4yNjMuODEuODEgMCAwIDEgLjYxMS4yNTVjLjE2Mi4xNy4yNDMuMzc1LjI0My42MTQgMCAuMjIyLS4wODEuNDU2LS4yNDUuNzAzLS4xNjQuMjQ3LS41MzkuNjA4LTEuMTI0IDEuMDg0LS45Ni43NzYtMS42MTMgMS40NS0xLjk2MiAyLjAyYTQuMzYzIDQuMzYzIDAgMCAwLS41ODggMS41NTJMNCAxNWg2di0xLjc4MUg2Ljg3N2MuMTg0LS4xOTcuMzQzLS4zNTYuNDc5LS40NzguMTM2LS4xMjIuNDA1LS4zMzQuODA4LS42MzguNjc3LS41MjMgMS4xNDUtMS4wMDIgMS40MDEtMS40MzguMjU3LS40MzcuMzg2LS44OTUuMzg2LTEuMzc0IDAtLjQ1LS4xMTItLjg1OC0uMzM2LTEuMjJhMi4wNDMgMi4wNDMgMCAwIDAtLjkyNC0uODA4QzguMzAxIDcuMDg4IDcuNzUzIDcgNy4wNSA3Wk00LjgxMiAwYy4xNzUgMCAuMzUuMTYuNDM3LjMxOGwxLjMxMyAyLjMwOXMtMi44LjE2LTQuNDYzIDEuNjcyTC4wODguNzE2QzAgLjYzNiAwIC41NTcgMCAuNDc4IDAgLjE1OS4yNjMgMCAuNTI1IDBabTguNjYyIDBjLjI2MyAwIC41MjUuMjM5LjUyNS40NzggMCAuMDggMCAuMTU5LS4wODguMjM4TDExLjkgNC4yMmMtMS42NjItMS40MzMtNC40NjMtMS41OTItNC40NjMtMS41OTJMOC43NS4zMThDOC43NS4xNiA4LjkyNSAwIDkuMTg4IDBaIi8+PC9zdmc+"},41013:function(e,n,t){"use strict";t(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;n.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0QwOUYxOCIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptLS4wNjIgM2MtLjgyNiAwLTEuNDY0LjE3Mi0xLjkxNS41MTctLjQuMzA3LS42ODYuNzMzLS44NTYgMS4yNzhsLS4wNTguMjEgMS45MDguMzY0Yy4wNTItLjM4My4xNTMtLjY1MS4zMDItLjgwNGEuNzcyLjc3MiAwIDAgMSAuNTgtLjIzYy4yMyAwIC40MTIuMDcuNTQ0LjIxMS4xMzMuMTQuMTk5LjMzLjE5OS41NjVhLjg4Ljg4IDAgMCAxLS4yNjUuNjM4Ljg5Ljg5IDAgMCAxLS42NjIuMjcgMS4zNSAxLjM1IDAgMCAxLS4xNTgtLjAxMmwtLjEwNC0uMDE1LS4xMDUgMS41MzZjLjI3OC0uMDg1LjQ5Ni0uMTI3LjY1NC0uMTI3LjI5OCAwIC41MzMuMDk5LjcwNy4yOTYuMTczLjE5Ny4yNi40NzUuMjYuODMzIDAgLjM1Mi0uMDkuNjM0LS4yNy44NDVhLjg1Mi44NTIgMCAwIDEtLjY3Ny4zMTYuODYyLjg2MiAwIDAgMS0uNjM2LS4yNWMtLjE0My0uMTQ0LS4yNTQtLjM4NC0uMzMzLS43MjNsLS4wMzYtLjE3N0w0IDEyLjgyNmMuMTMyLjQ4Mi4zMjEuODgyLjU2NyAxLjIuMjQ2LjMxOS41Ni41Ni45NDIuNzI2LjM4MS4xNjUuOTAyLjI0OCAxLjU2My4yNDguNjc3IDAgMS4yMjQtLjExMiAxLjY0LS4zMzUuNDE2LS4yMjMuNzM1LS41NDIuOTU2LS45NTUuMjIxLS40MTQuMzMyLS44NDUuMzMyLTEuMjk2IDAtLjM1OS0uMDY3LS42NjctLjItLjkyNmExLjYzMyAxLjYzMyAwIDAgMC0uNTYzLS42MjVjLS4xNDktLjA5OS0uMzYzLS4xODUtLjY0NC0uMjU5LjM0Ny0uMjA0LjYwNi0uNDQxLjc3OC0uNzEyYTEuNjYgMS42NiAwIDAgMCAuMjU3LS45MDggMS44MiAxLjgyIDAgMCAwLS42MzQtMS40MkM4LjU3MSA3LjE4OSA3Ljg4NiA3IDYuOTM4IDdaTTQuODEzIDBjLjE3NSAwIC4zNS4xNy40MzcuMzM4bDEuMzEzIDIuNDUzcy0yLjguMTctNC40NjMgMS43NzZMLjA4OC43NjFDMCAuNjc3IDAgLjU5MiAwIC41MDcgMCAuMTcuMjYzIDAgLjUyNSAwWm04LjY2MiAwYy4yNjMgMCAuNTI1LjI1NC41MjUuNTA3IDAgLjA4NSAwIC4xNy0uMDg4LjI1NEwxMS45IDQuNDgzQzEwLjIzOCAyLjk2IDcuNDM3IDIuNzkgNy40MzcgMi43OUw4Ljc1LjMzOEM4Ljc1LjE3IDguOTI1IDAgOS4xODggMFoiLz48L3N2Zz4="},15056:function(e,n){"use strict";n.Z={flex_box_center:"flex_box_center___eQ57b",flex_space_between:"flex_space_between___PVjBV",flex_box_vertical_center:"flex_box_vertical_center___ghTL_",flex_box_center_end:"flex_box_center_end___z8oKm",flex_box_column:"flex_box_column___JQV5n",title:"title___w80Ja",workListTabWrap:"workListTabWrap___YRwm7",workListTabButton:"workListTabButton___ebGCB",tables:"tables___AYvHM",checkboxgroup:"checkboxgroup___fZHgL"}},83547:function(e,n){"use strict";n.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"}},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9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