|
|
(self.webpackChunk=self.webpackChunk||[]).push([[7852,4977,76200],{29920: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,s=!1,a=!1,o=null,r=!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:o=d;break;case"object":void 0!==d.is3D?i=d:t=d;break;case"boolean":s=d,a=!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||a||(s=!0)),null!==o&&void 0===t.id&&(t.id=o);var m="",h=!1,p=null,f=null,g=null,x=!1,v=null,y=null,w=null;void 0!==t.height&&(t.height=Math.round(t.height)),void 0!==t.width&&(t.width=Math.round(t.width));var b=function(e){return parseFloat(e)>4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function j(){return(!t.hasOwnProperty("screenshotGenerator")||!t.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,n){c=e,D(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,E(e,n))},e.getHTML5CodebaseVersion=function(){return f},e.getParameters=function(){return t},e.setFontsCSSURL=function(e){w=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function n(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,s="auto",a=t.id,o=!1,l=0;l<arguments.length;l++){var c=arguments[l];"string"==typeof c?(c=c.toLowerCase()).match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?s=c:a=arguments[l]:"boolean"==typeof c?o=c:c instanceof HTMLElement&&(i=c)}function u(){if(r){s=I(s);var l=i||document.getElementById(a);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"!==s||(delete t.width,delete t.height),p=s,"screenshot"===s)L(l,t);else{var c=!1;t.hasOwnProperty("playButton")&&t.playButton||t.hasOwnProperty("clickToLoad")&&t.clickToLoad?c=!0:t.hasOwnProperty("playButtonAutoDecide")&&t.playButtonAutoDecide&&(c=(!_()||n())&&j()),c?(p="screenshot",Z(l,t,o,s)):N(l,t,o)}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 s=function(){t.onError&&t.onError(),G("Error: Fetching material (id "+t.material_id+") failed.",t)},a=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",o="/materials/"+t.material_id+"?scope=basic";S("https://"+a+"/api/proxy.php?path="+encodeURIComponent(o),(function(a){var o=JSON.parse(a),r=o.elements?o.elements.filter((function(e){return"G"==e.type||"E"==e.type}))[0]:o;if(r&&r.url){t.fileName=r.url,C(r.settings||{}),i.is3D=!0;var l="https://www.geogebra.org/images/";e.setPreviewImage(v||r.previewUrl,l+"GeoGebra_loading.png",l+"applet_play.png"),n()}else s()}),s)};function C(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 S(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 p},e.setPreviewImage=function(e,n,t){v=e,y=n,t},e.removeExistingApplet=function(e,n){var i;"string"==typeof e&&(e=document.getElementById(e)),p=null;var s=null;for(i=0;i<e.childNodes.length;i++){var a=e.childNodes[i],o=a.className;"applet_screenshot"===o?n?(a.style.display="block",p="screenshot"):a.style.display="none":"applet_scaler prerender"!==o&&(e.removeChild(a),s=o&&-1!=o.indexOf("appletParameters")?a.id:null,i--)}var r=void 0!==t.id?t.id:s,l=window[r];l&&"function"==typeof l.getBase64&&(l.remove(),window[r]=null)},e.refreshHitPoints=function(){if(b(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 T=function(e){return e&&"false"!==e},N=function(n,t,i){b(f)<=4.2&&(i=!0);var s=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==f||ggbHTML5LoadedCodebaseIsWebSimple&&!x)&&(s=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var a=document.createElement("div");a.classList.add("appletParameters","notranslate");var o=t.width,r=t.height;if(t.disableAutoScale=void 0===t.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():t.disableAutoScale,void 0!==t.width)if(b(f)<=4.4)T(t.showToolBar)&&(t.height-=7),T(t.showAlgebraInput)&&(t.height-=37),t.width<605&&T(t.showToolBar)&&(t.width=605,o=605);else{var u=100;(T(t.showToolBar)||T(t.showMenuBar))&&(t.hasOwnProperty("customToolBar")&&(t.customToolbar=t.customToolBar),u=T(t.showMenuBar)?245:155),o<u&&(t.width=u,o=u)}for(var d in a.style.border="none",a.style.display="inline-block",t)t.hasOwnProperty(d)&&"appletOnLoad"!==d&&a.setAttribute("data-param-"+d,t[d]);w&&a.setAttribute("data-param-fontscssurl",w),e.resize=function(){GGBAppletUtils.responsiveResize(n,t)},window.addEventListener("resize",(function(n){e.resize()}));var h="function"==typeof t.appletOnLoad?t.appletOnLoad:function(){};if(i||void 0===t.width){var p=document.createElement("div");p.className="applet_scaler",p.style.position="relative",p.style.display="block",p.appendChild(a),n.appendChild(p),t.appletOnLoad=function(n){e.resize(),h(n)}}else{t.hasOwnProperty("showSplash")||a.setAttribute("data-param-showSplash","false");var v=n.querySelector(".applet_scaler.prerender"),y=null!==v;if(y)_=v.querySelector(".ggb_preview");else{var _=B(o,r,t.borderColor,!1);(v=document.createElement("div")).className="applet_scaler",v.style.position="relative",v.style.display="block",v.style.width=o+"px",v.style.height=r+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(v,"66%"),b(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"),h(e)},y||v.appendChild(_)):a.appendChild(_),v.appendChild(a),y||n.appendChild(v),setTimeout((function(){e.resize()}),1)}function j(e,n){n&&"function"==typeof n.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,n.appletOnLoad):renderGGBElement(e),G("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",n)}function k(e,n){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:n}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){j(e.article,e.params)})),html5AppletsToProcess=null)},b(f)<5&&(e.className+=" geogebraweb")):j(e,n)}if(s){scriptLoadStarted=!0;for(var C=0;C<a.childNodes.length;C++){"TABLE"===a.childNodes[C].tagName&&(a.removeChild(a.childNodes[C]),C--)}if(null!==ggbHTML5LoadedScript){var S=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=S&&S.parentNode.removeChild(S)}var N=document.createElement("script"),L=function(){k(a,t)};N.src=m+g,ggbHTML5LoadedCodebaseIsWebSimple=x,ggbHTML5LoadedCodebaseVersion=f,ggbHTML5LoadedScript=N.src,G("GeoGebra HTML5 codebase loaded: '"+m+"'.",t),c||l&&"5.0"!=l?m.requirejs?__webpack_require__.e(89861).then(function(){var e=[__webpack_require__(89861)];L.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(N.onload=L,n.appendChild(N)):(x?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),L())}else k(a,t);t.height=r,t.width=o},L=function(n,t,i){var s=B(t.width,t.height,t.borderColor,i),a=document.createElement("div");a.style.position="relative",a.style.display="block",a.style.width=t.width+"px",a.style.height=t.height+"px",a.className="applet_screenshot applet_scaler"+(i?" applet_screenshot_play":""),a.appendChild(s);var o=GGBAppletUtils.getScale(t,n,i);i?(n.appendChild(P()),window.GGBT_wsf_view||(n.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(a,"66%"),n.appendChild(a),1===o||isNaN(o)||(GGBAppletUtils.scaleElement(a,o),a.style.width=t.width+"px",a.style.height=t.height+"px",a.parentNode.style.width=t.width*o+"px",a.parentNode.style.height=t.height*o+"px"),e.resize=function(){A(n,s,a,i)},window.addEventListener("resize",(function(n){e.resize()})),e.resize()};function A(e,n,i,s){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 a=GGBAppletUtils.getScale(t,e,s);null!==i.parentNode&&(isNaN(a)||1===a?(GGBAppletUtils.scaleElement(i,1),i.parentNode.style.width=t.width+"px",i.parentNode.style.height=t.height+"px"):(GGBAppletUtils.scaleElement(i,a),i.parentNode.style.width=t.width*a+"px",i.parentNode.style.height=t.height*a+"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 Z=function(e,n,t,i){L(e,n,!0);for(var s=function(){var t=[];for(o=0;o<e.childNodes.length;o++)t.push(e.childNodes[o]);if(window.GGBT_wsf_view){var s=window.GGBT_wsf_view.renderFullScreen(e,n.id),a=document.getElementById("fullscreencontainer"),r=jQuery(e).find(".fullscreencontent");r.length>0?(s.remove(),r.attr("id","fullscreencontent").show(),jQuery(a).append(r),window.dispatchEvent(new Event("resize"))):N(s,n,!1),window.GGBT_wsf_view.launchFullScreen(a)}else p=i,N(e,n,!1);if(!window.GGBT_wsf_view)for(o=0;o<t.length;o++)e.removeChild(t[o])},a=e.getElementsByClassName("ggb_preview_play"),o=0;o<a.length;o++)a[o].addEventListener("click",s,!1),a[o].addEventListener("ontouchstart",s,!1);"function"==typeof window.ggbAppletPlayerOnload&&window.ggbAppletPlayerOnload(e),j()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},P=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},B=function(e,n,t,i){var s=document.createElement("div");s.className="ggb_preview",s.style.position="absolute",s.style.zIndex="90",s.style.width=e-2+"px",s.style.height=n-2+"px",s.style.top="0px",s.style.left="0px",s.style.overflow="hidden",s.style.backgroundColor="white";var a="lightgrey";void 0!==t&&(a="none"===t?"transparent":t),s.style.border="1px solid "+a;var o,r,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!==y)&&!i){(o=document.createElement("img")).style.position="absolute",o.style.zIndex="1001",o.style.opacity=1,c.style.opacity=.3,(r=360)>e/4*3&&(r=e/4*3),l=r/5.8,o.setAttribute("src",y),o.setAttribute("width",r),o.setAttribute("height",l);var u=(e-r)/2,d=(n-l)/2;o.style.left=u+"px",o.style.top=d+"px",s.appendChild(o)}return s.appendChild(c),s},I=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},M=["web","webSimple","web3d","tablet","tablet3d","phone"],E=function(e,n){if(f=e,n)D(f,!0);else{var a,o,r=!s;if(r){var l=b(f);!isNaN(l)&&l<4.4&&(r=!1)}a="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=f.indexOf("//");for(var u in o=c>0?f:0===c?a+f:"https://www.geogebra.org/apps/5.2.814.0/",M)if(f.slice(-1*M[u].length)===M[u]||f.slice(-1*(M[u].length+1))===M[u]+"/")return void D(o,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!r||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||T(t.showToolBar)||T(t.showMenuBar)||T(t.showAlgebraInput)||T(t.enableRightClick)||t.appName&&"classic"!=t.appName?o+="web3d/":o+="webSimple/",D(o,!1)}},D=function(e,n){if(e.requirejs)m=e;else{"/"!==e.slice(-1)&&(e+="/"),m=e,null===n&&(n=-1===e.indexOf("http")),h=n,g="web.nocache.js",x=!1;var t=m.split("/");t.length>1&&(n||"webSimple"!==t[t.length-2]?M.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."),E("5.0",n))}},G=function(e,n){window.console&&window.console.log&&(!n||void 0===n.showLogging||n.showLogging&&"false"!==n.showLogging)&&console.log(e)};function O(){var e=n;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),E(e,!1),null!==c&&D(c,h),r=!0}return void 0!==t.material_id?k(O):O(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function n(e,n){1!=n?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+n+","+n+")",e.style.webkitTransform="scale("+n+","+n+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function t(e,n,t,i,s){if(e.isScreenshoGenerator)return 1;var a,o=void 0!==i&&i,r=null!=e.noScaleMargin&&e.noScaleMargin,l=(a=e.autoHeight)&&"false"!==a,c=function(e,n,t,i,s,a){var o=null;if(null!=a&&""!=a)for(var r=e.parentNode;null!=r;){if((" "+r.className+" ").indexOf(" "+a+" ")>-1){o=r;break}r=r.parentNode}var l=0,c=0,u=0,d=0,m=0,h=0,p=0;if(o)l=o.offsetWidth,c=Math.max(i?o.offsetWidth:0,o.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===s||!s)&&("rtl"===document.dir?(m=l-f.width-f.left,h=u<=480?10:30):(h=f.left,m=u<=480?10:30),d=h+m)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,p=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,p=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-=p)),{width:l,height:c}}(n,e.width,t,l,o&&window.GGBT_wsf_view||r,s),u=parseInt(c.width),d=e.width,m=e.height;if(void 0===d){var h=n.querySelector(".appletParameters");h&&(d=h.offsetWidth,m=h.offsetHeight)}var p=u/d,f=o?1:c.height/m;return void 0===t||t||(p=Math.min(1,p),f=Math.min(1,f)),Math.min(p,f)}function i(e,n,i){var s,a=1,o=!1;return e.hasOwnProperty("allowUpscale")&&(o=e.allowUpscale),e.hasOwnProperty("scale")&&(a=parseFloat(e.scale),(isNaN(a)||null===a||0===a)&&(a=1),a>1&&(o=!0)),n&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(o=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?a:(s=t(e,n,o,i,e.scaleContainerClass),!o||e.hasOwnProperty("scale")&&1!==a?Math.min(a,s):s)}function s(e){var n=Math.min(window.innerWidth,document.documentElement.clientWidth),t=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),s=(n-i.width)/2,a=(t-i.height)/2;a<0&&(a=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=s<40?"40px":s+"px",e.style.top=a+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=a<40?"40px":a+"px",e.style.left=s+"px")}return{responsiveResize:function(t,a){var o=t.querySelector(".appletParameters");if(o){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(a.id!==o.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(t)}if(o.parentElement&&/fullscreen/.test(o.parentElement.className))return;var r=i(a,t);e()&&o.setAttribute("data-param-scale",r);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!==a.id?a.id:"ggbApplet",d=window[u];null!=d&&d.recalculateEnvironments||null===l||l.className.match(/fullscreen/)||(l.parentNode.style.transform="",isNaN(r)||1===r?(n(l,1),l.parentNode.style.width=a.width+"px",l.parentNode.style.height=a.height+"px"):(l.parentNode.style.width=a.width*r+"px",l.parentNode.style.height=a.height*r+"px",n(l,r))),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&s(t),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(o).parents(".content-added-content"))}},isFlexibleWorksheetEditor:e,positionCenter:s,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,s,!1);var i=setInterval((function(){s()}),$)}function s(){if(!t){if(!n())return;t=!0,e(),o.removeEventListener&&o.removeEventListener(Z,s,!1),i&&clearInterval(i)}}}((function(){var n,t,i,s;n=e,t=u(),i=t.body,(s=t.createElement(_)).language=ab,s.crossOrigin=W,s.src=n,webModule.__errFn&&(s.onerror=function(){webModule.__errFn(L,new Error(bb+n))}),i.appendChild(s),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=[],s=[];function a(e){var n=s[e](),t=i[e];if(n in t)return n;var a=[];for(var o in t)a[t[o]]=o;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 o=(e=Cb).indexOf(Db);-1!=o&&(t=parseInt(e.substring(o+P),$),e=e.substring(O,o))}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],s=O;s<i.length;s++){var a=i[s];t[a[O]]=a[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")})()},41474: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 s(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=[],i=0;i<e.length;i++){var s=e[i],a=n?"".concat(n,"/").concat(s.name):"".concat(s.name);t.push({title:s.name,type:s.type,isLeaf:"tree"!==s.type,key:a})}return t}function a(e,n,t){for(var i=0;i<e.length;i++){var s=e[i];if(s.key===n){s.children=t;break}s.children&&a(s.children,n,t)}return e}function o(e,n,t){var i;return function(){var s=this,a=arguments,o=function(){i=null,t||e.apply(s,a)},r=t&&!i;clearTimeout(i),i=setTimeout(o,n),r&&e.apply(s,a)}}t.d(n,{Ax:function(){return a},Ds:function(){return o},KI:function(){return r},SI:function(){return s},f1:function(){return i}});var r=t(4023).Z.API_SERVER},82278:function(e,n,t){"use strict";t.d(n,{Z:function(){return j}});t(7557),t(41498);var i=t(82100),s=t.n(i),a=t(29186),o=t.n(a),r=t(13720),l=t.n(r),c=t(80619),u=t.n(c),d=t(47074),m=t.n(d),h=t(85573),p=t.n(h),f=t(59301),g=t(8591),x=t(92832),v="codeBox___WpkVl",y=t(92310),w=t.n(y),b=t(37712),_=function(e){u()(t,e);var n=m()(t);function t(e){var i;return s()(this,t),i=n.call(this,e),p()(l()(i),"canvas",void 0),p()(l()(i),"randomNum",(function(e,n){return Math.floor(Math.random()*(n-e)+e)})),p()(l()(i),"drawPic",(function(){i.randomCode()})),p()(l()(i),"reloadPic",(function(){i.drawPic()})),p()(l()(i),"changeCode",(function(e){console.log(e.target.value,222),i.setState({value:e.target.value,showError:!1})})),p()(l()(i),"onVerify",(function(){var e;return""!==i.state.value.toLowerCase()&&i.state.value.toLowerCase()!==i.state.code.toLowerCase()?(e=!0,g.ZP.error("请输入正确的验证码"),i.reloadPic()):""===i.state.value.toLowerCase()?(e=!0,g.ZP.error("请输入验证码")):i.state.value.toLowerCase()===i.state.code.toLowerCase()&&(e=!1),i.setState({showError:e}),e})),i.canvas=f.createRef(),i.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1},i}return o()(t,[{key:"componentDidMount",value:function(){this.drawPic()}},{key:"randomColor",value:function(e,n){var t=this.randomNum(e,n),i=this.randomNum(e,n),s=this.randomNum(e,n);return"rgb(".concat(t,", ").concat(i,", ").concat(s,")")}},{key:"drawText",value:function(e,n,t){e.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);var i=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);e.font=i+"px SimHei";var s=(this.state.contentWidth-40)/(this.state.code.length-1),a=10;t>0&&(a=10+t*s);var o=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);i>40&&(o=40);var r=this.randomNum(-10,10);e.translate(a,o),e.rotate(r*Math.PI/180),e.fillText(n,0,0),e.rotate(-r*Math.PI/180),e.translate(-a,-o)}},{key:"drawLine",value:function(e){for(var n=0;n<1;n++)e.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),e.beginPath(),e.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.stroke()}},{key:"drawDot",value:function(e){for(var n=0;n<100;n++)e.fillStyle=this.randomColor(0,255),e.beginPath(),e.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),e.fill()}},{key:"randomCode",value:function(){for(var e=this,n="",t=0;t<this.state.codeLength;t++){n+="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890"[Math.floor(57*Math.random())]}this.setState({code:n},(function(){var n=e.canvas.current.getContext("2d");n.textBaseline="bottom",n.fillStyle=e.randomColor(e.state.backgroundColorMin,e.state.backgroundColorMax),n.fillRect(0,0,e.state.contentWidth,e.state.contentHeight);for(var t=0;t<e.state.code.length;t++)e.drawText(n,e.state.code[t],t);e.drawLine(n),e.drawDot(n)}))}},{key:"render",value:function(){var e=this.props,n=e.className,t=e.width,i=void 0===t?300:t;return(0,b.jsxs)("div",{className:w()(v,n),style:{width:i},children:[(0,b.jsx)("aside",{children:(0,b.jsx)(x.Z,{value:this.state.value,onChange:this.changeCode,placeholder:"请输入图片中的验证码"})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),(0,b.jsx)("div",{className:"current",onClick:this.reloadPic,children:"看不清?换一张"})]})]})}}]),t}(f.Component),j=_},20388:function(e,n,t){"use strict";t.d(n,{Z:function(){return S}});var i=t(7557),s=t.n(i),a=t(41498),o=t.n(a),r=t(79800),l=t.n(r),c=t(59301),u=t(78241),d=t(8591),m=t(43418),h=t(78550),p=t(92832),f=t(2595),g=t(95237),x=t(43604),v=t(61186),y=t.n(v),w=t(34458),b=t(18196),_={tips:"tips___e8J4O",homeworkType:"homeworkType___ZjN2X",antdTable:"antdTable___amDdp",modalWrapper:"modalWrapper___XPojI"},j=t(33215),k=t(50661),C=t(37712),S=(0,b.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,classroomList:e.classroomList}}))((function(e){var n=e.dispatch,t=e.courseEndTime,i=(e.classroomList,e.successCallback),a=void 0===i?function(){}:i,r=e.visible,v=e.homeworkIds,b=e.courseId,S=e.isBatch,T=(e.shixunHomeworks,u.Z.useForm()),N=l()(T,1)[0],L=(0,c.useState)(!1),A=l()(L,2),Z=A[0],P=A[1],B=(0,c.useState)(!1),I=l()(B,2),M=I[0],E=I[1],D=(0,c.useState)(!1),G=l()(D,2),O=G[0],R=G[1],H=(0,c.useState)([]),z=l()(H,2),F=z[0],Y=z[1],V=(0,c.useState)([]),W=l()(V,2),K=W[0],U=W[1],J=(0,c.useState)([]),q=l()(J,2),Q=q[0],X=q[1],$=(0,c.useState)([]),ee=l()($,2),ne=ee[0],te=ee[1],ie=(0,c.useState)([]),se=l()(ie,2),ae=se[0],oe=se[1],re=(0,c.useState)([]),le=l()(re,2),ce=le[0],ue=le[1],de=(0,c.useState)([]),me=l()(de,2),he=me[0],pe=me[1],fe=(0,c.useState)([]),ge=l()(fe,2),xe=ge[0],ve=ge[1],ye=(0,c.useState)([]),we=l()(ye,2),be=we[0],_e=we[1];(0,c.useEffect)((function(){r?je():Ce()}),[r]);var je=function(){var e=o()(s()().mark((function e(){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P(!0),e.next=3,(0,j.oR)(v[0],{course_id:b});case 3:n=e.sent,R(n.no_group),S?(pe(n.all_course_groups),ve(n.all_course_groups)):(te(n.late_course_groups),oe(n.late_course_groups),Y(n.submit_course_groups),U(n.submit_course_groups)),P(!1),N.setFieldsValue({end_time:y()()});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ke=function(){var e=o()(s()().mark((function e(){var t,i,o;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=N.getFieldsValue(),i=y()(t.end_time).format("YYYY-MM-DD HH:mm"),!(S?0===be.length:0===Q.length&&0===ce.length)||O){e.next=6;break}return d.ZP.warning("请选择需要操作的班级"),e.abrupt("return");case 6:return E(!0),e.next=9,(0,j.Mc)(b,{no_group:O,homework_ids:v,group_ids:S?be:Q,end_time:i,late_group_ids:S?be:ce});case 9:o=e.sent,E(!1),0===o.status&&(Ce(),d.ZP.success("操作成功"),a(),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}));case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ce=function(){X([]),ue([]),U([]),oe([])};return(0,C.jsxs)(m.Z,{centered:!0,title:"立即截止",className:_.modalWrapper,width:S||O?520:760,open:r,confirmLoading:M,destroyOnClose:!0,okText:"截止",cancelText:"取消",onOk:function(){return ke()},onCancel:function(){Ce(),n({type:"classroomList/setActionTabs",payload:{}})},children:[(0,C.jsxs)("div",{className:_.tips,children:[(0,C.jsx)("div",{children:"1、截止后学生不能再提交作业。"}),(0,C.jsx)("div",{children:"2、本操作只对“提交中”、“补交中”的作业有效。"})]}),(0,C.jsx)(u.Z,{form:N,layout:"vertical",children:(0,C.jsx)(u.Z.Item,{name:"end_time",label:"截止时间",children:(0,C.jsx)(h.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:y()((0,w.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),!O&&(0,C.jsx)(C.Fragment,{children:S?(0,C.jsxs)("div",{children:[(0,C.jsx)(p.Z,{placeholder:"搜索班级",onChange:function(e){ve(he.filter((function(n){return n.name.indexOf(e.target.value)>-1})))}}),(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:_.antdTable,rowSelection:{type:"checkbox",onChange:function(e){_e(e)}},rowKey:"id",pagination:!1,dataSource:xe,loading:Z,columns:[{title:"班级",dataIndex:"name"}]})]}):(0,C.jsxs)(g.Z,{gutter:24,children:[(0,C.jsxs)(x.Z,{span:14,children:[(0,C.jsx)("div",{className:_.homeworkType,children:"作业截止"}),(0,C.jsx)(p.Z,{placeholder:"搜索班级",onChange:function(e){U(F.filter((function(n){return n.name.indexOf(e.target.value)>-1})))}}),(0,C.jsx)("div",{className:_.tableWrapper,children:(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:_.antdTable,rowSelection:{type:"checkbox",onChange:function(e){X(e)}},rowKey:"id",pagination:!1,dataSource:K,loading:Z,columns:[{title:"班级",dataIndex:"name",ellipsis:!0},{title:"发布时间",dataIndex:"publish_time"},{title:"截止时间",dataIndex:"end_time"}]})})]}),(0,C.jsxs)(x.Z,{flex:10,style:{maxWidth:"280px"},children:[(0,C.jsx)("div",{className:_.homeworkType,children:"补交截止"}),(0,C.jsx)(p.Z,{placeholder:"搜索班级",onChange:function(e){oe(ne.filter((function(n){return n.name.indexOf(e.target.value)>-1})))}}),(0,C.jsx)("div",{className:_.tableWrapper,children:(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:_.antdTable,rowSelection:{type:"checkbox",onChange:function(e){ue(e)}},rowKey:"id",pagination:!1,loading:Z,dataSource:ae,columns:[{title:"班级",dataIndex:"name",ellipsis:!0,width:120},{title:"截止时间",dataIndex:"late_time"}]})})]})]})})]})}))},25012:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var i=t(79800),s=t.n(i),a=t(78241),o=t(92832),r=t(3113),l=t(59301),c={search:"search___JA0r9",btn:"btn___GGtZC"},u=t(37712),d=function(e){var n=e.value,t=e.onChange,i=a.Z.useForm(),d=s()(i,1)[0],m=(0,l.useRef)(!1);(0,l.useEffect)((function(){n&&d.setFieldsValue(n)}),n);return(0,u.jsx)("div",{className:c.search,children:(0,u.jsxs)(a.Z,{className:c.formWrap,colon:!1,form:d,size:"large",layout:"inline",onFinish:function(e){m.current||function(e){m.current||t(e),m.current=!0,setTimeout((function(){m.current=!1}),2e3)}(e)},children:[(0,u.jsx)(a.Z.Item,{label:"实践项目名称",name:"keyword",initialValue:"",children:(0,u.jsx)(o.Z,{style:{width:280,height:40}})}),(0,u.jsx)(a.Z.Item,{label:"学校/单位",name:"schools",initialValue:"",style:{margin:"0 40px"},children:(0,u.jsx)(o.Z,{style:{width:280,height:40}})}),(0,u.jsx)(a.Z.Item,{label:"创建者/合作者",name:"creator",initialValue:"",children:(0,u.jsx)(o.Z,{style:{width:200,height:40}})}),(0,u.jsx)(r.ZP,{className:c.btn,type:"primary",htmlType:"submit",children:"搜索"})]})})}},71034:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var i=t(60324),s="text___FxbAX",a="wrap___UlBQ1",o="contact____pUDq",r="img___BapAv",l=t(32637),c=t(37712),u=function(e){var n=e.type,t=e.style,u=(0,c.jsxs)("div",{className:a,onClick:function(e){e.preventDefault(),e.stopPropagation()},children:[(0,c.jsxs)("p",{children:["shixun"===n||"paths"===n?"当前实践项目是高消耗类型的实验。":"当前试卷包含高消耗类型的实验。",(0,c.jsx)("br",{}),"根据平台使用规则,需要授权才能使用。","paths"===n?"发送到课堂":"发布","使用之前,请先联系平台管理员获取授权码。"]}),(0,c.jsxs)("div",{className:o,children:[(0,c.jsx)("div",{className:r,children:(0,c.jsx)("img",{src:l,width:"124px",height:"124px"})}),(0,c.jsx)("div",{className:"tc font14 mt10",style:{color:"#777A93"},children:"扫一扫,获取授权码"})]})]});return(0,c.jsx)(i.Z,{content:u,children:(0,c.jsx)("span",{className:s,style:t,children:"高消耗"})})}},60408:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var i=t(7557),s=t.n(i),a=t(41498),o=t.n(a),r=t(79800),l=t.n(r),c=t(59301),u="imageDimensions___a7crR",d="img___Kroat",m="fullWidth___c492T",h=t(92310),p=t.n(h),f=t(71418),g=t(2859),x=t(93969),v=t(34458),y=t(37712),w=function(e){var n=e.data,t=e.className,i=e.fullWidth,a=e.style,r=void 0===a?{}:a,h=e.onClose,w=e.onOk,b=e.showFullTools,_=e.noAssociationId,j=(0,c.useRef)(null),k=(0,c.useRef)(null),C=(0,c.useRef)(null),S=(0,c.useRef)(null),T=(0,c.useState)(!1),N=l()(T,2),L=N[0],A=N[1],Z=(0,c.useState)("正在加载中"),P=l()(Z,2),B=P[0],I=P[1];(0,c.useEffect)((function(){C.current||(C.current=document.createElement("style"),document.head.appendChild(C.current)),null!=n&&n.visible?(document.body.setAttribute("data-custom","y-hidden"),C.current.innerHTML=" html { overflow-y: hidden; }",null!=n&&n.src&&M()):(document.body.removeAttribute("data-custom"),C.current&&(document.head.removeChild(C.current),C.current=null))}),[null==n?void 0:n.visible]);var M=function(){var e=o()(s()().mark((function e(){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(!0),I("正在加载中"),e.next=4,(0,v.ZJ)(null==n?void 0:n.src);case 4:t=e.sent,j.current.src="",j.current.src=t,j.current.onload=function(){D()},A(!1),I("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),E=function(){var e=o()(s()().mark((function e(t){var i;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(!0),I("正在保存中"),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||_){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&&w(),e.next=13;break;case 12:null!=i&&i.id&&w(i);case 13:A(!1),I("");case 15:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),D=function(){k.current=new g.hP(j.current),k.current.targetRoot=S.current,k.current.addEventListener("render",E),k.current.addEventListener("beforeclose",h),b&&(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;window.scrollTo(0,0),(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,y.jsx)(c.Fragment,{children:(null==n?void 0:n.visible)&&(0,y.jsx)(f.Z,{spinning:L,tip:B,style:{position:"absolute"},children:(0,y.jsx)("div",{ref:S,className:p()(u,t,i?m:""),style:r,children:(0,y.jsx)("img",{className:d,ref:j})})})})}},24238:function(e,n,t){"use strict";t.d(n,{Z:function(){return M},P:function(){return B}});var i=t(37205),s=t.n(i),a=t(39647),o=t.n(a),r=t(7557),l=t.n(r),c=t(82242),u=t.n(c),d=t(41498),m=t.n(d),h=t(79800),p=t.n(h),f=t(59301),g=t(78241),x=t(43418),v=t(5112),y=t(92832),w=t(2595),b="brief___LOzpE",_="contentTitle___xkdcN",j="content___Vtri0",k="antdTable___s8T2N",C="tableCell___kN9Fw",S="antdModal___WVBk3",T="orangeColor___ryB2u",N=t(71930),L=t(37712),A=["isImportMultipleCourse"],Z=function(e){var n=e.studentNames,t=e.total;return t>3?(0,L.jsxs)(L.Fragment,{children:["课堂内有",(0,L.jsx)("span",{className:T,children:null==n?void 0:n.join("、")}),"等",(0,L.jsx)("span",{className:T,children:t}),"名学生"]}):(0,L.jsxs)(L.Fragment,{children:["课堂内有",(0,L.jsx)("span",{className:T,children:null==n?void 0:n.join("、")}),["","一","两","三"][t],"名学生"]})},P=function(e){var n=e.onCancel,t=e.onOk,i=e.visible,s=(e.inPaper,e.renderData),a=(e.type,e.isMultipleCourse),o=void 0!==a&&a,r=g.Z.useForm(),c=p()(r,1)[0],d=(0,f.useState)(1),h=p()(d,2),y=h[0],w=h[1],b=(0,f.useState)(!1),_=p()(b,2),k=_[0],C=_[1],N=(0,f.useMemo)((function(){return 1===(null==s?void 0:s.total_num)&&1===(null==s?void 0:s.can_copy_num)}),[s]),A=(0,f.useMemo)((function(){var e;return null==s||null===(e=s.course_data_list)||void 0===e?void 0:e.filter((function(e){return e.is_show}))}),[s]);return(0,L.jsx)(L.Fragment,{children:N?(0,L.jsxs)(x.Z,{centered:!0,closable:!0,open:i,destroyOnClose:!0,title:"提示",className:S,width:682,confirmLoading:k,onCancel:n,onOk:m()(l()().mark((function e(){var n,i,a;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),n=y,o&&(a=u()({},c.getFieldsValue()),n=null==s||null===(i=s.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==a[e.id]?u()(u()({},e),{},{is_copy:a[e.id]}):e}))),e.next=5,t(n);case 5:C(!1);case 6:case"end":return e.stop()}}),e)}))),children:[(0,L.jsx)("div",{className:j,style:{marginBottom:20},children:o?"检测到以下课堂已在教学课堂中使用,请问是否复制成新的实训发送至教学课堂中?":(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Z,{studentNames:null==s?void 0:s.student_names,total:null==s?void 0:s.student_count}),"学习过该实践项目。该项目支持复制,请选择是否将该项目复制为新项目发送至课堂中?"]})}),o?(0,L.jsx)(g.Z,{form:c,preserve:!1,children:null==A?void 0:A.map((function(e){return(0,L.jsxs)(f.Fragment,{children:[(0,L.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,L.jsx)(g.Z.Item,{name:e.id,initialValue:1,children:(0,L.jsxs)(v.ZP.Group,{className:j,children:[(0,L.jsx)(v.ZP,{value:1,style:{color:"#464f66"},children:"复制实训"}),(0,L.jsx)(v.ZP,{value:0,style:{color:"#464f66"},children:"不复制实训"})]})})]},e.id)}))}):(0,L.jsxs)(v.ZP.Group,{value:y,onChange:function(e){return w(e.target.value)},className:j,style:{marginBottom:30},children:[(0,L.jsx)(v.ZP,{value:1,style:{color:"#464f66"},children:"复制"}),(0,L.jsx)(v.ZP,{value:0,style:{color:"#464f66"},children:"不复制"})]}),(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{className:j,style:{marginBottom:10},children:"* 说明:"}),(0,L.jsx)("div",{className:j,style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,L.jsx)("div",{className:"".concat(j," ").concat(T),children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]})]}):(0,L.jsx)(x.Z,{centered:!0,closable:!0,destroyOnClose:!0,open:i,confirmLoading:k,title:"提示",width:682,onCancel:n,onOk:m()(l()().mark((function e(){var n,i,a;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),n=0,o&&(a=u()({},c.getFieldsValue()),n=null==s||null===(i=s.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==a[e.id]?u()(u()({},e),{},{is_use:a[e.id]}):e}))),e.next=5,t(n);case 5:C(!1);case 6:case"end":return e.stop()}}),e)}))),children:(0,L.jsxs)("div",{className:j,children:[(0,L.jsx)(Z,{studentNames:null==s?void 0:s.student_names,total:null==s?void 0:s.student_count}),"学习过该实践项目。",o?(0,L.jsxs)(g.Z,{form:c,preserve:!1,children:[(0,L.jsx)("h3",{children:"当前实训不可复制,已经检测到以下课堂存在该实训,同一实训在课堂中重复使用时,会导致成绩互相影响,请确认是否继续使用"}),null==A?void 0:A.map((function(e){return(0,L.jsxs)(f.Fragment,{children:[(0,L.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,L.jsx)(g.Z.Item,{name:e.id,initialValue:1,children:(0,L.jsxs)(v.ZP.Group,{className:j,children:[(0,L.jsx)(v.ZP,{value:1,style:{color:"#464f66"},children:"继续使用"}),(0,L.jsx)(v.ZP,{value:0,style:{color:"#464f66"},children:"不使用"})]})})]},e.id)}))]}):(0,L.jsxs)("div",{children:["该项目不支持复制,若确认继续发送,",(0,L.jsx)("span",{className:T,children:"当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"}),"(如果不想清空学生之前的挑战记录,建议参照该实践项目的内容自行创建一个新的项目,或者尝试联系项目创建人开放本项目的复制权限)。"]})]})})})},B=function(){var e=(0,f.useState)(!1),n=p()(e,2),t=n[0],i=n[1],s=(0,f.useState)(),a=p()(s,2),r=a[0],c=a[1],u=function(){var e=m()(l()().mark((function e(n){var t,s,a,r,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.isImportMultipleCourse,s=void 0!==t&&t,a=o()(n,A),console.log(n),e.t0=null==n?void 0:n.result,e.t0){e.next=7;break}return e.next=6,(0,N.Tr)(a);case 6:e.t0=e.sent;case 7:if(!("status"in(r=e.t0))){e.next=10;break}return e.abrupt("return",!1);case 10:if(!s){e.next=17;break}if(!(null==r||null===(u=r.course_data_list)||void 0===u?void 0:u.some((function(e){return e.is_show})))){e.next=16;break}return c(r),i(!0),e.abrupt("return",!0);case 16:return e.abrupt("return",r.course_data_list||[]);case 17:if(0!==r.student_count){e.next=19;break}return e.abrupt("return",!1);case 19:return c(r),i(!0),e.abrupt("return",!0);case 22:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return[t,function(){return i(!1)},r,u]},I=function(e){var n=g.Z.useForm(),t=p()(n,1)[0],i=(0,f.useState)(!1),a=p()(i,2),o=a[0],r=a[1],c=e.onCancel,u=e.onOk,d=e.visible,h=e.inPaper,j=void 0!==h&&h,N=e.renderData,A=e.type,P=e.isMultipleCourse,B=void 0!==P&&P,I=e.position,M=(0,f.useMemo)((function(){return j?[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:C,render:function(e,n){return(0,L.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,n){return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(g.Z.Item,{name:["".concat("subject"===A?n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],initialValue:1,children:(0,L.jsxs)(v.ZP.Group,{children:[(0,L.jsx)(v.ZP,{value:1,children:"是"}),(0,L.jsx)(v.ZP,{value:0,children:"否"})]})}),(0,L.jsx)(g.Z.Item,{name:["".concat("subject"===A?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],hidden:!0,initialValue:1,children:(0,L.jsx)(y.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:C,render:function(e,n){return(0,L.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,n){return(0,L.jsx)(g.Z.Item,{name:["".concat("subject"===A?n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],initialValue:1,children:(0,L.jsxs)(v.ZP.Group,{children:[(0,L.jsx)(v.ZP,{value:1,children:"是"}),(0,L.jsx)(v.ZP,{value:0,children:"否"})]})})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,n){return(0,L.jsx)(g.Z.Item,{name:["".concat("subject"===A?n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],initialValue:1,children:(0,L.jsxs)(v.ZP.Group,{children:[(0,L.jsx)(v.ZP,{value:1,children:"是"}),(0,L.jsx)(v.ZP,{value:0,children:"否"})]})})}}]}),[j]),E=(0,f.useMemo)((function(){return j?[{title:"实践项目名称",dataIndex:"name",width:424,className:C,align:"center",ellipsis:!0,render:function(e,n){return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e}),(0,L.jsx)(g.Z.Item,{name:["".concat("subject"===A?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],hidden:!0,initialValue:0,children:(0,L.jsx)(y.Z,{type:"hidden"})}),(0,L.jsx)(g.Z.Item,{name:["".concat("subject"===A?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],hidden:!0,initialValue:1,children:(0,L.jsx)(y.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,className:C,ellipsis:!0,align:"center",render:function(e,n){return(0,L.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,n){return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(g.Z.Item,{name:["".concat("subject"===A?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],initialValue:0,children:(0,L.jsxs)(v.ZP.Group,{children:[(0,L.jsx)(v.ZP,{value:1,children:"是"}),(0,L.jsx)(v.ZP,{value:0,children:"否"})]})}),(0,L.jsx)(g.Z.Item,{name:["".concat("subject"===A?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],hidden:!0,initialValue:0,children:(0,L.jsx)(y.Z,{type:"hidden"})})]})}}]}),[j]);if(B){var D={title:"课堂名称",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:C,render:function(e,n){return(0,L.jsx)("a",{href:"/classrooms/".concat(n.course_id),children:e})}};M=[D].concat(s()(M)),E=[D].concat(s()(E))}var G=(0,f.useMemo)((function(){return function(e){var n=e.used,t=e.copy,i=e.canNotCopy,s=e.studentNames,a=e.studentCount,o=e.inPaper,r=e.is_random,l=void 0!==r&&r,c=e.position,u=(void 0===c?"":c)||(o?"试卷":"课程");return(0,L.jsxs)("span",{children:[(0,L.jsx)(Z,{studentNames:s,total:a}),"学习过",u,"中的",(0,L.jsx)("span",{className:T,children:n}),"个项目,",t>0&&i>0?(0,L.jsxs)(L.Fragment,{children:["其中",(0,L.jsx)("span",{className:T,children:t}),"个项目支持复制,",(0,L.jsx)("span",{className:T,children:i}),"个项目不支持复制"]}):t>0&&0===i?(0,L.jsxs)(L.Fragment,{children:["其中",(0,L.jsx)("span",{className:T,children:t}),"个项目支持复制"]}):0===t&&i>0?(0,L.jsxs)(L.Fragment,{children:["其中",(0,L.jsx)("span",{className:T,children:i}),"个项目不支持复制"]}):void 0,"。请选择",l?"":"是否继续使用和","是否复制为新项目发送至课堂中?"]})}({used:null==N?void 0:N.repeat_shixun_num,copy:null==N?void 0:N.can_copy_num,canNotCopy:null==N?void 0:N.no_copy_num,studentNames:null==N?void 0:N.student_names,studentCount:null==N?void 0:N.student_count,is_random:null==N?void 0:N.is_random,inPaper:j,position:I})}),[N,j,I]);return(0,L.jsx)(x.Z,{title:"提示",centered:!0,open:d,confirmLoading:o,onOk:m()(l()().mark((function e(){var n,i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),n=t.getFieldsValue(),i=Object.keys(n).map((function(e){return{id:parseInt(e.split("_")[0]),course_id:parseInt(e.split("_")[1]),is_use:n[e].is_use,is_copy:n[e].is_copy}})),e.next=5,u(i);case 5:r(!1);case 6:case"end":return e.stop()}}),e)}))),onCancel:c,width:880,okText:"确认",className:S,destroyOnClose:!0,children:(0,L.jsxs)(g.Z,{form:t,preserve:!1,children:[(0,L.jsx)("div",{className:b,children:G}),(0,L.jsxs)("div",{style:{marginBottom:30},children:[(0,L.jsx)("div",{style:{marginBottom:20},children:"* 说明"}),(0,L.jsx)("div",{style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,L.jsx)("div",{className:T,children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]}),(null==N?void 0:N.can_copy_num)>0&&(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{className:_,children:"支持复制的项目"}),(0,L.jsx)(w.Z,{columns:M,className:k,dataSource:null==N?void 0:N.can_copy_list,rowKey:"subject"===A?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})]}),(null==N?void 0:N.no_copy_num)>0&&(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{className:_,children:"不支持复制的项目"}),(0,L.jsx)(w.Z,{columns:E,className:k,dataSource:null==N?void 0:N.no_copy_list,rowKey:"subject"===A?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})]}),(null==N?void 0:N.no_use_list.length)>0&&(null==N?void 0:N.no_use_list.map((function(e){return(0,L.jsxs)("div",{children:[(0,L.jsx)(g.Z.Item,{name:["".concat("subject"===A?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],hidden:!0,initialValue:0,children:(0,L.jsx)(y.Z,{type:"hidden"})}),(0,L.jsx)(g.Z.Item,{name:["".concat("subject"===A?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],hidden:!0,initialValue:1,children:(0,L.jsx)(y.Z,{type:"hidden"})})]},"subject"===A?e.stage_shixun_id:e.shixun_course_id||e.id)})))]})})},M=function(e){return"multiple"===e.modalType?(0,L.jsx)(I,u()({},e)):(0,L.jsx)(P,u()({},e))}},93050:function(e,n,t){"use strict";t(59301);var i=t(6848),s=t(37712);n.Z=function(e){var n=e.value,t=e.visible,a=void 0===t||t,o=e.children;return(0,s.jsx)(s.Fragment,{children:a?(0,s.jsx)(i.Z,{placement:"topLeft",title:{"未发布":"作业尚未发布","未开始":"作业已发布,尚未到达开始作业时间","提交中":"作业进行中,所有考生可提交作业","补交中":"作业进行中,所有学生可补交作业","进行中":"作业进行中,部分班级正在作业提交中/补交中","已截止":"到达作业截止时间,作业已结束","已结束":"课堂已结束"}[n],children:(0,s.jsx)("span",{children:o})}):o})}},42580:function(e,n,t){"use strict";t.d(n,{h:function(){return x}});var i=t(82242),s=t.n(i),a=t(79800),o=t.n(a),r=t(59301),l=t(57809),c=t(78241),u=t(3113),d=t(89780),m=t.n(d),h=(t(62025),t(64275),t(37712)),p=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,a=e.options,l=void 0===a?{}:a,c=(0,r.useRef)(),u=(0,r.useState)(),d=o()(u,2),p=d[0],f=d[1];return(0,r.useEffect)((function(){if(p){var e=function(e){var n=e.getValue();t&&t(n)};return p.on("change",e),function(){p.off("change",e)}}}),[p,t]),(0,r.useEffect)((function(){p&&p.setOption("mode",i)}),[p,i]),(0,r.useEffect)((function(){p&&(n===p.getValue()&&""!==n||setTimeout((function(){p.setValue(n||"")}),300))}),[p,n]),(0,r.useEffect)((function(){if(c.current&&!p){var e=m().fromTextArea(c.current,s()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));f(e)}}),[c.current,p]),(0,h.jsx)("div",{className:"my-codemirror-container",children:(0,h.jsx)("textarea",{ref:c})})}n.Z=function(e){var n=e.callback,t=e.onCancel,i=(0,r.useState)("python"),a=o()(i,2),d=a[0],m=a[1];return(0,h.jsxs)(c.Z,s()(s()({},f),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){n(e)},style:{width:500},children:[(0,h.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,h.jsx)(l.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){m(g[e][1])},children:Object.keys(g).map((function(e){return(0,h.jsx)(p,{value:e,children:g[e][0]},e)}))})}),(0,h.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,h.jsx)(x,{mode:d})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(u.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))}},88330:function(e,n,t){"use strict";t.d(n,{Z:function(){return ye}});var i=t(91232),s=t.n(i),a=t(79800),o=t.n(a),r=t(85573),l=t.n(r),c=t(59301),u=t(89780),d=t.n(u),m=t(76374),h=(t(62025),t(6313),t(25717),t(99498),t(25419),t(67549),t(5822)),p=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,p.jsx)(p.Fragment,{children:(0,p.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 y(e){var n=e.onActionCallback,t=e.title,i=e.icon,s=e.actionName,a=e.className,o=void 0===a?"":a,r=e.children;return(0,p.jsxs)("a",{title:t,className:o,onClick:function(){n(s)},children:[(0,p.jsx)("i",{className:"".concat(i)}),r]})}var w=function(e){var n=e.watch,t=e.showNullButton,i=e.showNullProgramButton,s=e.onActionCallback,a=e.fullScreen,o=e.insertTemp,r=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,p.jsxs)("ul",{className:"markdown-toolbar-container",children:[!r&&c.map((function(e,n){return(0,p.jsx)("li",{children:e.actionName?(0,p.jsx)(y,x()(x()({},e),{},{onActionCallback:s})):(0,p.jsx)("span",{className:"v-line"})},n)})),t?(0,p.jsx)("li",{children:(0,p.jsx)(y,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:s,children:(0,p.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("li",{children:(0,p.jsx)(y,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:s,children:(0,p.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,p.jsx)("li",{children:(0,p.jsx)(y,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:s,children:(0,p.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,o&&(0,p.jsx)("li",{children:(0,p.jsx)(y,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(o),onActionCallback:s,children:(0,p.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,p.jsx)("li",{children:l}),(0,p.jsx)("li",{className:"btn-full-screen",children:(0,p.jsx)(y,{icon:"".concat(a?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:a?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:s})})]})},b=t(20129),_=t(78241),j=t(92832),k=t(3113),C={labelCol:{span:4},wrapperCol:{span:20}},S=function(e){var n=e.callback,t=e.onCancel;return(0,p.jsxs)(_.Z,x()(x()({},C),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},style:{width:500},children:[(0,p.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,p.jsx)(j.Z,{})}),(0,p.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,p.jsx)(j.Z,{})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(k.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))},T=t(42580),N=t(95885),L=t(95237),A=t(60408),Z=function(e){var n=e.callback,t=e.onCancel,i=document.createElement("canvas"),s=i.getContext("2d");i.width=1e3,i.height=800,s.fillStyle="#ffffff",s.fillRect(0,0,i.width,i.height);var a=i.toDataURL("image/png");return(0,p.jsx)(L.Z,{style:{height:"100vh"},children:(0,p.jsx)(A.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:a,visible:!0,title:String(Date.now())},onOk:function(e){n({src:e.url})},onClose:t})})},P=t(7557),B=t.n(P),I=t(41498),M=t.n(I),E=t(37205),D=t.n(E),G=t(12378);function O(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(O,go.CommandHandler),O.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},O.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")},O.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")},O.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")},O.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")},O.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")}},O.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")}},O.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 s=t[i],a=s.actualBounds.y+s.actualBounds.height+e;t[i+1].move(new go.Point(s.actualBounds.x,a))}n.commitTransaction("align Column")},O.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 s=t[i],a=s.actualBounds.x+s.actualBounds.width+e;t[i+1].move(new go.Point(a,s.actualBounds.y))}n.commitTransaction("align Row")},O.prototype.canRotate=function(e){var n=this.diagram;return null!==n&&!n.isReadOnly&&!n.isModelReadOnly&&!(n.selection.count<1)},O.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())},O.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){O._assignZOrder(e,n.get(e.layer)+1)})),e.commitTransaction("pullToFront")},O.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){O._assignZOrder(e,n.get(e.layer)-1-O._findGroupDepth(e))})),e.commitTransaction("pushToBack")},O._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){O._assignZOrder(e,n+1,t)}))},O._findGroupDepth=function(e){if(e instanceof go.Group){var n=0;return e.memberParts.each((function(e){n=Math.max(n,O._findGroupDepth(e))})),n+1}return 0},O.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)}},O.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},O.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 s=e.grid.gridCellSize;i=s.width,t=s.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")},O.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))},O.prototype._findNearestPartTowards=function(e){var n=this.diagram.selection.first();if(null===n)return null;for(var t=n.actualBounds.center,i=this._getAllParts(),s=1/0,a=n,o=0;o<i.length;o++){var r=i[o];if(r!==n&&r.canSelect()){var l=r.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))<s&&(s=d,a=r)}}}return a},O.prototype._angleCloseness=function(e,n){return Math.min(Math.abs(n-e),Math.min(Math.abs(n+360-e),Math.abs(n-360-e)))},O.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!==(s=this._sortTreeChildrenByY(n).first())&&e.select(s)}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!==(a=n.findTreeParentNode())&&e.select(a)}else if("Up"===t.key){if(null!==(a=n.findTreeParentNode()))if((r=(o=this._sortTreeChildrenByY(a)).indexOf(n))>0){for(var i=o.elt(r-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(a)}else if("Down"===t.key){var s;if(n.isTreeExpanded&&!n.isTreeLeaf)null!==(s=this._sortTreeChildrenByY(n).first())&&e.select(s);else for(;null!==n;){var a,o,r;if(null===(a=n.findTreeParentNode()))break;if((r=(o=this._sortTreeChildrenByY(a)).indexOf(n))<o.length-1){e.select(o.elt(r+1));break}n=a}}var l=e.selection.first();null!==l&&e.scrollToRect(l.actualBounds)}},O.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},O.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},O.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(O.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(O.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 R=O,H=(t(36678),t(43418)),z=t(43604),F=t(93969),Y="myPaletteDiv___Xjz2I",V="maxH60___Pd4Re";var W=function(e){var n=e.onCancel,t=e.callback,i=(0,c.useRef)(),s=(0,c.useRef)(),a=(0,c.useRef)(),r=(0,c.useRef)(!1),l=(0,c.useRef)(!1),u=(0,c.useState)(0),d=o()(u,2),m=d[0],h=d[1],f=function(){var e=M()(B()().mark((function e(){var n,s;return B()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.current.makeImage(),e.next=3,(0,F.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:n.src}});case 3:s=e.sent,t({src:s.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){return setTimeout((function(){!function(){var e=G.GraphObject.make,n="#ff3333",t="#3358ff",o="#25ad23",r="#d533ff",l="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",m="#fffcd5",h="#d5ebff",p="#f2dfe0",f="#a5d2fa",g="#cccccc",x="#b3e6b3",v="#fcbbbd";function y(n,t){var i=function(e,t){e.handled=!0,e.diagram.model.commit((function(i){var s=t.part.adornedPart,a=(new G.Point).setRectSpot(s.actualBounds,n);a.subtract(s.location),a.scale(2,2),a.x+=130*Math.sign(a.x),a.y+=130*Math.sign(a.y),a.add(s.location),a.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var o=i.copyNodeData(s.data);i.setGroupKeyForNodeData(o,i.getGroupKeyForNodeData(s.data)),i.addNodeData(o);var r={from:s.key,to:i.getKeyForNodeData(o)};i.addLinkData(r);var l=e.diagram.findNodeForData(o);l.location=a,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(G.Shape,{figure:t,alignment:n,alignmentFocus:n.opposite(),width:n.equals(G.Spot.Top)||n.equals(G.Spot.Bottom)?25:18,height:n.equals(G.Spot.Top)||n.equals(G.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="orange"},isActionable:!0,click:i,contextClick:i})}function w(n){return e(G.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 b(e,n){return function(t,i){t.handled=!0,t.diagram.model.commit((function(t){t.set(i.part.adornedPart.data,e,n)}))}}function _(n,t){return t||(t="color"),e(G.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:b(t,n),contextClick:b(t,n)})}function j(){return[e("ContextMenuButton",e(G.Panel,"Horizontal",_(u,"fill"),_(m,"fill"),_(h,"fill"),_(p,"fill"))),e("ContextMenuButton",e(G.Panel,"Horizontal",_(g,"fill"),_(x,"fill"),_(f,"fill"),_(v,"fill")))]}function k(){return[e("ContextMenuButton",e(G.Panel,"Horizontal",_(d),_(o),_(t),_(n))),e("ContextMenuButton",e(G.Panel,"Horizontal",_(u),_(r),_(l),_(c)))]}function C(n,t){return t||(t="thickness"),e(G.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:b(t,n),contextClick:b(t,n)})}function S(n,t){return t||(t="dash"),e(G.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:b(t,n),contextClick:b(t,n)})}function T(){return[e("ContextMenuButton",e(G.Panel,"Horizontal",C(1),C(2),C(3),C(4))),e("ContextMenuButton",e(G.Panel,"Horizontal",S(null),S([2,4]),S([4,4])))]}function N(n,t){return t||(t="figure"),e(G.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:b(t,n),contextClick:b(t,n)})}function L(n){return e(G.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(n+4).toString()+" H3"})}function A(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(G.Shape,{geometryString:t,margin:2,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:b("dir",n),contextClick:b("dir",n)})}function Z(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",G.Spot.stringify(G.Spot.AllSides)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(G.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:t,contextClick:t})}function P(n,t){var i=0,s=G.Spot.RightSide;n.equals(G.Spot.Top)?(i=270,s=G.Spot.TopSide):n.equals(G.Spot.Left)?(i=180,s=G.Spot.LeftSide):n.equals(G.Spot.Bottom)&&(i=90,s=G.Spot.BottomSide),t||(i-=180);var a=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",G.Spot.stringify(s)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(G.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:a,contextClick:a})}i.current=new G.Diagram(s.current,{padding:20,grid:e(G.Panel,"Grid",e(G.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(G.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(R),"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(G.Node,"Auto",{locationSpot:G.Spot.Center,locationObjectName:"SHAPE",desiredSize:new G.Size(120,60),minSize:new G.Size(40,40),resizable:!0,resizeCellSize:new G.Size(10,10),rotatable:!0},new G.Binding("location","loc",G.Point.parse).makeTwoWay(G.Point.stringify),new G.Binding("desiredSize","size",G.Size.parse).makeTwoWay(G.Size.stringify),e(G.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:G.Spot.AllSides,toSpot:G.Spot.AllSides},new G.Binding("figure"),new G.Binding("fill"),new G.Binding("stroke","borderColor"),new G.Binding("strokeWidth","thickness"),new G.Binding("strokeDashArray","dash")),e(G.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(G.TextBlock,{margin:1,textAlign:"center",overflow:G.TextBlock.OverflowEllipsis,editable:!0},new G.Binding("text").makeTwoWay(),new G.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(G.Panel,"Vertical",{maxSize:new G.Size(200,NaN)},e(G.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new G.Binding("text")),e(G.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new G.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(G.Adornment,"Spot",e(G.Placeholder,{padding:10}),y(G.Spot.Top,"TriangleUp"),y(G.Spot.Left,"TriangleLeft"),y(G.Spot.Right,"TriangleRight"),y(G.Spot.Bottom,"TriangleDown"),w({alignment:new G.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(G.Panel,"Horizontal",N("Rectangle"),N("RoundedRectangle"),N("Ellipse"),N("Diamond"))),e("ContextMenuButton",e(G.Panel,"Horizontal",N("Parallelogram2"),N("ManualOperation"),N("Procedure"),N("Cylinder1"))),e("ContextMenuButton",e(G.Panel,"Horizontal",N("Terminator"),N("CreateRequest"),N("Document"),N("TriangleDown"))),j(),k(),T()),i.current.groupTemplate=e(G.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:G.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 G.Binding("location","loc",G.Point.parse).makeTwoWay(G.Point.stringify),e(G.Panel,"Auto",{name:"BODY"},e(G.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:G.Spot.AllSides,toSpot:G.Spot.AllSides},new G.Binding("fill"),new G.Binding("stroke","color"),new G.Binding("strokeWidth","thickness"),new G.Binding("strokeDashArray","dash")),e(G.Placeholder,{background:"transparent",margin:20})),e(G.TextBlock,{alignment:G.Spot.Top,alignmentFocus:G.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new G.Binding("text"),new G.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(G.Adornment,"Spot",e(G.Panel,"Auto",e(G.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(G.Placeholder,{margin:1.5})),w({alignment:G.Spot.TopRight,alignmentFocus:G.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",j(),k(),T()),i.current.linkTemplate=e(G.Link,{layerName:"Foreground",routing:G.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new G.Binding("fromSpot","fromSpot",G.Spot.parse),new G.Binding("toSpot","toSpot",G.Spot.parse),new G.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new G.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new G.Binding("points").makeTwoWay(),e(G.Shape,{strokeWidth:2},new G.Binding("stroke","color"),new G.Binding("strokeWidth","thickness"),new G.Binding("strokeDashArray","dash")),e(G.Shape,{segmentIndex:0,segmentOffset:new G.Point(15,0),segmentOrientation:G.Link.OrientAlong,alignmentFocus:G.Spot.Right,figure:"circle",width:10,strokeWidth:0},new G.Binding("fill","color"),new G.Binding("visible","dir",(function(e){return 1===e}))),e(G.Shape,{segmentIndex:-1,segmentOffset:new G.Point(-10,6),segmentOrientation:G.Link.OrientPlus90,alignmentFocus:G.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new G.Binding("fill","color"),new G.Binding("visible","dir",(function(e){return e>=1})),new G.Binding("width","thickness",(function(e){return 7+3*e})),new G.Binding("height","thickness",(function(e){return 7+3*e})),new G.Binding("segmentOffset","thickness",(function(e){return new G.Point(-15,4+1.5*e)}))),e(G.Shape,{segmentIndex:0,segmentOffset:new G.Point(15,-6),segmentOrientation:G.Link.OrientMinus90,alignmentFocus:G.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new G.Binding("fill","color"),new G.Binding("visible","dir",(function(e){return 2===e})),new G.Binding("width","thickness",(function(e){return 7+3*e})),new G.Binding("height","thickness",(function(e){return 7+3*e})),new G.Binding("segmentOffset","thickness",(function(e){return new G.Point(-15,4+1.5*e)}))),e(G.TextBlock,{alignmentFocus:new G.Spot(0,1,-4,0),editable:!0},new G.Binding("text").makeTwoWay(),new G.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(G.Adornment,e(G.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:L(2)},new G.Binding("pathPattern","thickness",L)),w({alignmentFocus:new G.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",k(),T(),e("ContextMenuButton",e(G.Panel,"Horizontal",A(0),A(1),A(2))),e("ContextMenuButton",e(G.Panel,"Horizontal",e(G.Panel,"Spot",Z(!1),P(G.Spot.Top,!1),P(G.Spot.Left,!1),P(G.Spot.Right,!1),P(G.Spot.Bottom,!1)),e(G.Panel,"Spot",{margin:new G.Margin(0,0,0,2)},Z(!0),P(G.Spot.Top,!0),P(G.Spot.Left,!0),P(G.Spot.Right,!0),P(G.Spot.Bottom,!0))))),new G.Palette(a.current,{maxSelectionCount:1,linkTemplate:e(G.Link,{locationSpot:G.Spot.Center,selectionAdornmentTemplate:e(G.Adornment,"Link",{locationSpot:G.Spot.Center},e(G.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(G.Shape,{toArrow:"Standard",stroke:null}))},{routing:G.Link.AvoidsNodes,curve:G.Link.JumpOver,corner:5,toShortLength:4},new G.Binding("points"),e(G.Shape,{isPanelMain:!0,strokeWidth:2}),e(G.Shape,{toArrow:"Standard",stroke:null})),model:new G.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(D()(G.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(G.Node,"Auto",{locationSpot:G.Spot.Center},new G.Binding("location","location",G.Point.parse).makeTwoWay(G.Point.stringify),e(G.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 G.Binding("stroke").makeTwoWay(),new G.Binding("fill").makeTwoWay(),new G.Binding("figure")),e(G.TextBlock,{margin:new G.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new G.Size(16,16),maxSize:new G.Size(10,NaN),textAlign:"center",editable:!0},new G.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(G.Panel,"Grid",e(G.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(G.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}()}),500),h(m+1),function(){i.current=null}}),[]),(0,p.jsx)("div",{ref:l,className:r.current?"".concat(V," body-overflow-initial"):"body-overflow-initial",children:(0,p.jsx)(H.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!m,destroyOnClose:!0,maskClosable:!1,getContainer:l.current,rootClassName:"zIndex-9999",title:(0,p.jsxs)(L.Z,{children:[(0,p.jsx)(z.Z,{flex:1,children:"插入流程图"}),(0,p.jsx)(z.Z,{onClick:function(){r.current=!r.current,h(m+1)},children:(0,p.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:n,children:(0,p.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,p.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,p.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,p.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,p.jsx)("div",{style:{height:"calc(100% - 50px)"},className:Y,ref:a})]}),(0,p.jsx)("div",{style:{flex:1,position:"relative"},children:(0,p.jsx)("div",{ref:s,style:{height:"80vh"}})})]}),(0,p.jsx)("div",{className:"tr",children:(0,p.jsx)(k.ZP,{size:"large",onClick:f,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=t(5112),U=t(400),J=K.ZP.Group,q={margin:"0 8px"},Q=function(e){var n=e.callback,t=e.onCancel;return(0,p.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){n(e)},children:[(0,p.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,p.jsx)("span",{style:q,children:"单元格数:"}),(0,p.jsx)("span",{style:q,children:"行数"}),(0,p.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,p.jsx)(U.Z,{})}),(0,p.jsx)("span",{style:q,children:"列数"}),(0,p.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,p.jsx)(U.Z,{})})]}),(0,p.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,p.jsx)("span",{style:q,children:"对齐方式:"}),(0,p.jsx)(_.Z.Item,{name:"align",children:(0,p.jsxs)(J,{children:[(0,p.jsx)(K.ZP,{value:"default",children:(0,p.jsx)("i",{className:"fa fa-align-justify"})}),(0,p.jsx)(K.ZP,{value:"left",children:(0,p.jsx)("i",{className:"fa fa-align-left"})}),(0,p.jsx)(K.ZP,{value:"center",children:(0,p.jsx)("i",{className:"fa fa-align-center"})}),(0,p.jsx)(K.ZP,{value:"right",children:(0,p.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(k.ZP,{type:"ghost",onClick:t,children:"取消"})]})]})},X=t(78673),$=t(29920),ee=t.n($),ne=(0,c.forwardRef)((function(e,n){var t=e.use3d,i=e.width,s=e.height,a=e.callback,r=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),u=(0,c.useState)(!1),d=o()(u,2),m=d[0],h=d[1],f=(0,c.useRef)({id:r,appName:"graphing",width:i||1e3,height:s||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(ee())(f.current,!0),window.onload=function(){l.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return a&&a(e),e};return(0,c.useEffect)((function(){f.current.appName=m?"3D":"graphing",l.current.inject("applet_container")}),[m]),(0,c.useEffect)((function(){h(t)}),[t]),(0,c.useImperativeHandle)(n,(function(){return{getImgData:g}})),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:r}),(0,p.jsxs)(L.Z,{align:"middle",children:[(0,p.jsx)(z.Z,{flex:1,children:(0,p.jsx)(X.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:m,onChange:function(e){return h(e)}})}),(0,p.jsx)(z.Z,{children:(0,p.jsx)(k.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),te=t(11494),ie=t(8591),se="link",ae="upload-image",oe="add-flowchart",re="draw-image",le="code-block",ce="add-table",ue="------------",de={default:ue,left:":".concat(ue),center:":".concat(ue,":"),right:"".concat(ue,":")},me=t(41428);var he="@▁▁@",pe=["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 fe(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ge=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",xe=l()(l()({},ge+"-B","bold"),ge+"-I","italic"),ve=l()(l()(l()(l()(l()(l()(l()(l()({},se,"添加链接"),le,"添加代码块"),ae,"添加图片"),re,"添加画图"),oe,"插入流程图"),ce,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),ye=function(e){var n=e.defaultValue,t=void 0===n?"":n,i=e.onChange,a=e.width,r=void 0===a?"100%":a,u=e.height,g=void 0===u?400:u,x=e.miniToolbar,v=void 0!==x&&x,y=e.isFocus,_=void 0!==y&&y,j=e.watch,k=e.insertTemp,C=e.mode,L=void 0===C?"markdown":C,A=e.id,P=void 0===A?"markdown-editor-id":A,B=e.showResizeBar,I=void 0!==B&&B,M=e.noStorage,E=void 0!==M&&M,D=e.showNullButton,G=void 0!==D&&D,O=e.showNullProgramButton,R=void 0!==O&&O,z=e.hidetoolBar,F=void 0!==z&&z,Y=e.fullScreen,V=void 0!==Y&&Y,K=e.onBlur,U=e.onCMBeforeChange,J=e.onFullScreen,q=e.className,X=void 0===q?"":q,$=e.disablePaste,ee=void 0!==$&&$,ue=e.disabled,ge=void 0!==ue&&ue,ye=e.disabledFill,we=void 0!==ye&&ye,be=e.placeholder,_e=void 0===be?"":be,je=e.values,ke=void 0===je?"":je,Ce=e.extraUse,Se=(0,c.useState)(null),Te=o()(Se,2),Ne=Te[0],Le=Te[1],Ae=(0,c.useState)(t),Ze=o()(Ae,2),Pe=Ze[0],Be=Ze[1],Ie=(0,c.useState)(j),Me=o()(Ie,2),Ee=Me[0],De=Me[1],Ge=(0,c.useState)(V),Oe=o()(Ge,2),Re=Oe[0],He=Oe[1],ze=(0,c.useState)(""),Fe=o()(ze,2),Ye=Fe[0],Ve=Fe[1],We=(0,c.useState)(0),Ke=o()(We,2),Ue=Ke[0],Je=Ke[1],qe=(0,c.useState)(g),Qe=o()(qe,2),Xe=Qe[0],$e=Qe[1],en=(0,c.useState)(!1),nn=o()(en,2),tn=(nn[0],nn[1]),sn=(0,c.useState)(0),an=o()(sn,2),on=an[0],rn=an[1],ln=(0,c.useState)(0),cn=o()(ln,2),un=cn[0],dn=cn[1],mn=(0,c.useRef)(),hn=(0,c.useRef)(),pn=(0,c.useRef)(),fn=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Be(ke),null==Ne||Ne.setValue(ke),window.scrollTo(0,e)}),[ke]),(0,c.useEffect)((function(){null==J||J(Re)}),[Re]),(0,c.useEffect)((function(){if(mn.current){var e=function(e,t){if(!ee){var i=t.clipboardData;if(i){var s=i.types.toString(),a=i.items;if("Files"===s||i.types.indexOf("Files")>-1){if(t.preventDefault(),"stex"==L)return;try{var o,r=a[1];"file"===(null===(o=a[0])||void 0===o?void 0:o.kind)&&(r=a[0]);var l=r.getAsFile(),c=l.name.split(".").pop();(0,N.I)(l,(function(e){var t,i,s;e.id?(null==l||null===(t=l.type)||void 0===t?void 0:t.indexOf("image"))>-1?n.replaceSelection(".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="/api/attachments/'.concat(e.id,'"></video>')):(null==l||null===(s=l.type)||void 0===s?void 0:s.indexOf("pdf"))>-1?n.replaceSelection('<a href="/api/attachments/'.concat(e.id,"?type=").concat(l.type,'&disposition=inline" target="_blank">').concat(l.name,"</a>")):pe.includes(c)?n.replaceSelection('<a href="/api/attachments/'.concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(l.name,"</a>")):n.replaceSelection("[".concat(l.name,"](/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(t){ie.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}t.preventDefault()},n=d().fromTextArea(mn.current,{mode:L,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",_e):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(),s=t.getLine(i.line),a=s.charAt(i.ch-1),o=s.lastIndexOf("@▁@",i.ch),r=s.lastIndexOf("@▁▁@",i.ch),l=o>r?o:r,c=o>r?3:4;if(-1===he.indexOf(a))return null;if(console.log("change1:",n,e,s,i,l,o,r,a),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()}})),_&&n.focus(),n.on("paste",e),ge&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Le(n),function(){n.off("paste",e)}}}),[]);var gn=(0,c.useCallback)((function(){hn.current}),[Xe,hn,Re]);(0,c.useEffect)((function(){if(Ne){var e=function(){var e=new m.Z((function(e){var n,t=s()(e);try{for(t.s();!(n=t.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gn(),Ne.setSize("100%","100%"),Ne.refresh())}}catch(e){t.e(e)}finally{t.f()}}));return e.observe(mn.current.parentElement),e}();return function(){var n,t;null!==(n=mn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(t=mn.current)||void 0===t?void 0:t.parentElement)}}}),[Ne,gn]),(0,c.useEffect)((function(){if(Ne){for(var e=[],n=function(){var n=o()(i[t],2),s=n[0],a=n[1],r=l()({},s,(function(){xn(a)}));e.push(r),Ne.addKeyMap(r)},t=0,i=Object.entries(xe);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(){V!==Re&&He(V)}),[V]),(0,me.Z)((function(){if(!E&&Ue>0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(P);e>=Ue+1e4&&(!n||n!==Pe)&&(window.sessionStorage.setItem(P,Pe),tn(!0))}}),1e4),(0,c.useEffect)((function(){De(j)}),[Ne,j]),(0,c.useEffect)((function(){Ne&&_&&Ne.focus()}),[Ne,_]),(0,c.useEffect)((function(){if(Ee&&Ne){var e=function(e){var n=e.target;if(fn.current){var t=n.scrollTop/n.scrollHeight;fn.current.scrollTop=fn.current.scrollHeight*t}},n=Ne.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[Ne,Ee]),(0,c.useEffect)((function(){if(Ne&&U){var e=function(e,n){U(e,n)};return Ne.on("beforeChange",e),function(){Ne.off("beforeChange",e)}}}),[Ne,U]),(0,c.useEffect)((function(){if(Ne&&K){var e=function(){K(Ne.getValue())};return Ne.on("blur",e),function(){Ne.off("blur",e)}}}),[Ne,K]),(0,c.useEffect)((function(){if(Ne){var e=function(e,n){var t=e.getValue();Be(t),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(R?i(t,_n(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(""),Be("");else{var e=window.scrollY||window.pageYOffset;t!==Ne.getValue()&&(Ne.setValue(t),Be(t),Ne.setCursor(ge?1:Ne.lineCount(),0),window.scrollTo(0,e))}}),[Ne,t]);var xn=(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 Ve("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(he),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 De(!Ee),Ne.focus();case"trigger-full-screen":return He(!Re),Ne.focus();case se:return void Ve(se);case le:return void Ve(le);case ae:return void Ve(ae);case re:return void Ve(re);case"maths-latex":return void Ve("maths-latex");case oe:return void Ve(oe);case ce:return void Ve(ce);default:throw new Error}}),[Ne,Ee,Re]),vn=(0,c.useCallback)((function(e,n){var t,i,s,a,o;switch(Ve(""),Ye){case se:var r=e.title,l=e.link;return Ne.replaceSelection("[".concat(r,"](").concat(l,")")),Ne.focus();case le:var c=e.language,u=e.content;return Ne.replaceSelection(["```"+c,u,"```"].join("\n")),Ne.focus();case"maths-latex":for(var d=atob(e),m=new Uint8Array(d.length),h=0;h<d.length;h++)m[h]=d.charCodeAt(h);var p=new Blob([m],{type:"image/png"});(0,N.I)(p,(function(e){e.id?Ne.replaceSelection(".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 ae:case re:case"add-flowchart":var f=e.src,g=e.alt,x=n,v=null==x||null===(t=x.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==x||null===(s=x.type)||void 0===s?void 0:s.indexOf("image"))>-1||null==x||!x.type?g?Ne.replaceSelection(".concat(f,' "').concat(g,'" )')):Ne.replaceSelection("")):(null==x||null===(a=x.type)||void 0===a?void 0:a.indexOf("video"))>-1?Ne.replaceSelection('<video width="100%" controls src="'.concat(f,'"></video>')):(null==x||null===(o=x.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?Ne.replaceSelection('<a href="'.concat(f,"?type=").concat(x.type,'&disposition=inline" target="_blank">').concat(x.name,"</a>")):pe.includes(v)?Ne.replaceSelection('<a href="'.concat(f,'?type=office&disposition=inline" target="_blank">').concat(x.name,"</a>")):Ne.replaceSelection("[".concat(x.name,"](").concat(f,")")),Ne.focus();case ce:for(var y=e.row,w=e.col,b=e.align,_="\n",j=0;j<y;j++){for(var k=[],C=[],S=0;S<w;S++)1===j&&C.push(de[b]),k.push(" ");1===j&&(_+="| ".concat(C.join(" | ")," |\n")),_+="| ".concat(k.join(1===w?"":" | ")," |\n")}return Ne.replaceSelection(_+"\n"),Ne.focus();default:throw new Error}}),[Ne,Ye]),yn=(0,c.useMemo)((function(){switch(Ye){case se:return(0,p.jsx)(S,{callback:vn,onCancel:wn});case le:return(0,p.jsx)(T.Z,{callback:vn,onCancel:wn});case ae:return(0,p.jsx)(N.Z,{callback:vn,onCancel:wn});case oe:return(0,p.jsx)(W,{callback:vn,onCancel:wn});case ce:return(0,p.jsx)(Q,{callback:vn,onCancel:wn});case"maths-latex":return(0,p.jsx)(ne,{showSaveButton:!0,callback:vn});case"inline-latex":return(0,p.jsx)(te.Z,{showSaveButton:!0,callback:vn});default:return null}}),[Ye]);function wn(){Ve("")}(0,c.useEffect)((function(){if(pn.current){var e=function(e){s=!0,a=e.pageY},n=function(){s=!1},t=function(e){if(s){var n=e.pageY-a;n<0&&(n=0),n>300&&(n=300),$e(g+n+"px")}},i=pn.current,s=!1,a=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,pn]),(0,c.useEffect)((function(){$e(g)}),[g]);var bn={width:fe(r),height:fe(Xe)},_n=((0,c.useMemo)((function(){if(Ue){var e=new Date(Ue),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}),[Ue]),function(e){var n=[];if(R){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,t,i){n.push({multiLine:!("@▁@"===e)})}))}return n});(0,c.useEffect)((function(){ve[Ye]&&Ye!==re&&Ye!==oe&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;rn(n),dn(t)}),0)}),[Ye]);var jn=function(e,n,t,i){var s=document.body.clientHeight,a=document.body.clientWidth;return!(e<20&&t>e||e>a-20&&t<e||n<20&&i>n||n>s-20&&i<n)||(document.body.onmousemove=null,document.body.onmouseup=null,!1)};return(0,p.jsxs)(c.Fragment,{children:[(0,p.jsx)("div",{className:"markdown-editor-wrapper",ref:hn,children:(0,p.jsxs)("div",{className:"markdown-editor-container ".concat(X," ").concat(Ee?"on-preview":""," ").concat(v?"mini":""," ").concat(Re?"full-screen":""),style:bn,children:[(0,p.jsx)(w,{insertTemp:k,watch:Ee,fullScreen:Re,showNullButton:G,showNullProgramButton:R,onActionCallback:xn,hidetoolBar:F,extraUse:Ce}),(0,p.jsxs)("div",{className:"markdown-editor-body",children:[(0,p.jsx)("div",{className:"codemirror-container",children:(0,p.jsx)("textarea",{ref:mn,placeholder:_e})}),Ee?(0,p.jsxs)("div",{ref:fn,className:"preview-container",children:["stex"===L&&(0,p.jsx)(f,{value:Pe}),"stex"!==L&&(0,p.jsx)(h.Z,{disabledFill:we,showProgramFill:R,value:Pe})]}):null]})]})}),I?(0,p.jsx)("a",{ref:pn,className:"editor-resize"}):null,Ye===re&&(0,p.jsx)(Z,{callback:vn,onCancel:wn}),Ye===oe&&(0,p.jsx)(W,{callback:vn,onCancel:wn}),(0,p.jsx)(b.Z,{children:ve[Ye]&&Ye!==re&&Ye!==oe?(0,p.jsx)(H.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:on,top:un},title:(0,p.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var n=e.clientX-on,t=e.clientY-un;document.body.onmousemove=function(e){var i=e.clientX-n,s=e.clientY-t,a=document.getElementsByClassName("markdown-popup-form")[0],o=window.innerWidth-a.offsetWidth,r=window.innerHeight-a.offsetHeight;i=Math.max(0,Math.min(i,o)),s=Math.max(0,Math.min(s,r)),jn(e.clientX,e.clientY,n,t)&&(rn(i),dn(s))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:ve[Ye]}),open:!0,onCancel:wn,footer:null,destroyOnClose:!0,width:Ye===oe?"1200px":null,height:Ye===oe?"80vh":null,className:"markdown-popup-form",children:yn}):null})]})}},95885:function(e,n,t){"use strict";t.d(n,{Z:function(){return x},I:function(){return y}});var i=t(82242),s=t.n(i),a=t(79800),o=t.n(a),r=t(78241),l=t(8591),c=t(92832),u=t(3113),d=t(41474),m=t(59301),h=t(37712),p=r.Z.useForm,f={width:280,marginRight:10},g={labelCol:{span:5},wrapperCol:{span:19}},x=function(e){var n=e.callback,t=e.onCancel,i=p(),a=o()(i,1)[0],d=(0,m.useRef)();function x(e,n){-1!==e.status?a.setFieldsValue({src:"/api/attachments/".concat(e.id),type:n.type}):l.ZP.error(e.message)}return(0,h.jsxs)(r.Z,s()(s()({form:a},g),{},{className:"upload-image-panel",onFinish:function(e){n(e,d.current)},style:{width:470,overflow:"hidden"},children:[(0,h.jsx)(r.Z.Item,{label:"图片地址",required:!0,children:(0,h.jsxs)("div",{className:"flex-container",children:[(0,h.jsx)(r.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,h.jsx)(c.Z,{style:f})}),(0,h.jsx)(v,{onFileChange:function(e){var n=e.target.files[0];d.current=n,y(n,x)}})]})}),(0,h.jsx)(r.Z.Item,{label:"图片描述",name:"alt",children:(0,h.jsx)(c.Z,{style:{width:264}})}),(0,h.jsxs)(r.Z.Item,{style:{textAlign:"right"},children:[(0,h.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(u.ZP,{type:"default",onClick:t,children:"取消"})]})]}))};function v(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 y(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(d.KI,"/api/attachments.json")),i.send(t)}},20129:function(e,n,t){"use strict";t.d(n,{Z:function(){return h}});var i=t(82100),s=t.n(i),a=t(29186),o=t.n(a),r=t(80619),l=t.n(r),c=t(47074),u=t.n(c),d=t(59301),m=t(4676),h=function(e){l()(t,e);var n=u()(t);function t(e){var i;s()(this,t),i=n.call(this,e);var a=window.document;return i.node=a.createElement("div"),a.body.appendChild(i.node),i}return o()(t,[{key:"render",value:function(){var e=this.props.children;return(0,m.createPortal)(e,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),t}(d.Component)},41428:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var i=t(59301);function s(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])}},90321:function(e,n,t){"use strict";var i=t(82242),s=t.n(i),a=t(85573),o=t.n(a),r=t(7557),l=t.n(r),c=t(41498),u=t.n(c),d=t(79800),m=t.n(d),h=t(59301),p=t(24645),f=t(78241),g=t(43418),x=t(8591),v=t(2595),y=t(18196),w=t(4023),b=t(23899),_=t(93969),j=t(61186),k=t.n(j),C=t(34458),S=t(37712),T=p.Z.Dragger;n.Z=(0,y.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var n,t=e.classroomList,i=e.dispatch,a=e.onOk,r=((0,y.useParams)(),f.Z.useForm()),c=m()(r,1)[0],d=(0,h.useState)(),p=m()(d,2),j=p[0],N=p[1],L=(0,h.useState)(!1),A=m()(L,2),Z=A[0],P=A[1],B={height:100,onRemove:function(){N("")},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 N(n),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})};return(0,h.useEffect)((function(){c.setFieldsValue(o()(o()({},"publish_time",k()(k()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",k()(k()(new Date((0,C.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),[]),(0,S.jsx)(g.Z,{centered:!0,title:"补充成绩",open:"补充成绩"===t.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:Z},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,S.jsxs)(f.Z,{form:c,onFinish:function(){var e=u()(l()().mark((function e(n){var s,o,r,u,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=j&&j.size){e.next=3;break}return x.ZP.info("请上传文件"),e.abrupt("return");case 3:return P(!0),(s=new FormData).append("type",t.actionTabs.type),s.append("file",j),o=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,_.ZP)(o,{method:"post",body:s},!0);case 10:r=e.sent,P(!1),0===(null==r?void 0:r.status)&&(a(),c.resetFields(),i({type:"classroomList/setActionTabs",payload:{}}),(null==r||null===(u=r.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,S.jsx)(v.Z,{pagination:!1,dataSource:null==r||null===(d=r.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,C.FH)("",w.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,S.jsx)(f.Z.Item,{label:"作业名称",labelCol:{span:3},name:"name",children:t.actionTabs.name}),(0,S.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,S.jsxs)("div",{children:[(0,S.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,S.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,S.jsxs)("div",{children:[(0,S.jsx)("a",{download:"模版.xlsx",className:b.Z.downloadbutton,href:w.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(t.actionTabs.type),children:"下载模版表格"}),(0,S.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,S.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,S.jsxs)(T,s()(s()({},B),{},{children:[(0,S.jsx)("a",{className:b.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,S.jsx)("br",{}),(0,S.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},11493:function(e,n,t){"use strict";var i=t(82242),s=t.n(i),a=t(85573),o=t.n(a),r=t(7557),l=t.n(r),c=t(41498),u=t.n(c),d=t(79800),m=t.n(d),h=t(59301),p=t(24645),f=t(78241),g=t(43418),x=t(8591),v=t(2595),y=t(92832),w=t(95237),b=t(43604),_=t(400),j=t(78550),k=t(18196),C=t(88330),S=t(4023),T=t(23899),N=t(93969),L=t(50661),A=t(61186),Z=t.n(A),P=t(34458),B=t(37712),I=p.Z.Dragger;n.Z=(0,k.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var n,t=e.classroomList,i=e.dispatch,a=e.onOk,r=(0,k.useParams)(),c=f.Z.useForm(),d=m()(c,1)[0],p=(0,h.useState)(),A=m()(p,2),M=A[0],E=A[1],D=(0,h.useState)(!1),G=m()(D,2),O=G[0],R=G[1],H={height:100,onRemove:function(){E("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:(n=u()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return E(n),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})};return(0,h.useEffect)((function(){d.setFieldsValue(o()(o()({},"publish_time",Z()(Z()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",Z()(Z()(new Date((0,P.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),["导入外部成绩"===t.actionTabs.key]),(0,B.jsx)(g.Z,{centered:!0,title:"导入外部成绩",open:"导入外部成绩"===t.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:O},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.jsxs)(f.Z,{form:d,colon:!1,onFinish:function(){var e=u()(l()().mark((function e(n){var s,o,c,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=M&&M.size){e.next=3;break}return x.ZP.info("请上传文件"),e.abrupt("return");case 3:return R(!0),(s=new FormData).append("name",n.name),s.append("type",t.actionTabs.type),s.append("category_id",(null==r?void 0:r.categoryId)||null),"exercise"===t.actionTabs.type?(s.append("time",n.time||""),s.append("total_score",n.total_score)):s.append("description",n.description||""),s.append("publish_time",Z()(n.publish_time).format("YYYY-MM-DD HH:mm")),s.append("end_time",Z()(n.end_time).format("YYYY-MM-DD HH:mm")),s.append("file",M),e.next=14,(0,N.ZP)("/api/courses/".concat(r.coursesId,"/export_external_score_homework.json"),{method:"post",body:s},!0);case 14:o=e.sent,R(!1),0===(null==o?void 0:o.status)&&(d.resetFields(),i({type:"classroomList/setActionTabs",payload:{}}),a(),(null==o||null===(c=o.data)||void 0===c||null===(c=c.fail)||void 0===c?void 0:c.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,B.jsx)(v.Z,{pagination:!1,dataSource:null==o||null===(u=o.data)||void 0===u?void 0:u.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,P.FH)("",S.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(t.actionTabs.type))}}));case 17:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,B.jsx)(f.Z.Item,{label:"exercise"!==t.actionTabs.type?"作业":"试卷名称",labelCol:{span:3},name:"name",rules:[{required:!0,message:"请输入".concat("exercise"!==t.actionTabs.type?"作业":"试卷","名称")}],children:(0,B.jsx)(y.Z,{showCount:!0,placeholder:"请输入".concat("exercise"!==t.actionTabs.type?"作业":"试卷","名称"),maxLength:60})}),"exercise"!==t.actionTabs.type&&(0,B.jsx)(f.Z.Item,{label:"作业描述",labelCol:{span:3},name:"description",children:(0,B.jsx)(C.Z,{watch:!0})}),"exercise"===t.actionTabs.type&&(0,B.jsxs)(w.Z,{style:{marginLeft:6},children:[(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"试卷总分",name:"total_score",rules:[{required:!0,message:"请填写试卷总分"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"试卷总分必须为正数"}],children:(0,B.jsx)(y.Z,{placeholder:"请输入试卷总分",style:{width:256},addonAfter:"分"})})}),(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"答题时长",labelCol:{span:6},name:"time",children:(0,B.jsx)(_.Z,{style:{width:"100%"},addonAfter:"分钟",placeholder:"请输入答题时长"})})})]}),(0,B.jsxs)(w.Z,{style:{marginLeft:6,marginBottom:12},children:[(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"开始时间",name:"publish_time",rules:[{required:!0,message:"请选择开始时间"}],children:(0,B.jsx)(j.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:256},disabledDate:function(e){return(0,L.Q8)(e)},disabledTime:function(e){return(0,L.d0)(e)},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})}),(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"结束时间",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"请选择结束时间"}],children:(0,B.jsx)(j.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:function(e){return(0,L.Q8)(e,"",d.getFieldValue("publish_time"))},disabledTime:function(e){return(0,L.d0)(e,d.getFieldValue("publish_time"))},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})})]}),(0,B.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,B.jsxs)("div",{children:[(0,B.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,B.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,B.jsxs)("div",{children:[(0,B.jsx)("a",{download:"模版.xlsx",className:T.Z.downloadbutton,href:S.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(t.actionTabs.type),children:"下载模版表格"}),(0,B.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,B.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,B.jsxs)(I,s()(s()({},H),{},{children:[(0,B.jsx)("a",{className:T.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,B.jsx)("br",{}),(0,B.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},10638:function(e,n,t){"use strict";t.d(n,{Z:function(){return M}});var i=t(7557),s=t.n(i),a=t(85573),o=t.n(a),r=t(37205),l=t.n(r),c=t(82242),u=t.n(c),d=t(41498),m=t.n(d),h=t(79800),p=t.n(h),f=t(59301),g=t(78241),x=t(43418),v=t(8591),y=t(95237),w=t(43604),b=t(78550),_=t(5112),j=t(24905),k=t(61186),C=t.n(k),S=t(93969),T=t(34458),N=t(18196),L=t(67275),A=t(33215),Z=t(71590),P=t(50661),B={failedList:"failedList___KGsCg",name:"name___bbsWC",publish:"publish___mai8J"},I=t(37712),M=(0,N.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var n=e.classroomList,t=e.dispatch,i=e.courseEndTime,a=(0,N.useParams)(),r=g.Z.useForm(),c=p()(r,1)[0],d=(0,f.useState)(1),h=p()(d,2),k=h[0],M=h[1],E=(0,f.useState)([]),D=p()(E,2),G=D[0],O=D[1],R=(0,f.useState)(0),H=p()(R,2),z=(H[0],H[1]),F=(0,f.useState)(20),Y=p()(F,2),V=(Y[0],Y[1],(0,f.useState)(!0)),W=p()(V,2),K=(W[0],W[1]),U=(0,f.useState)([]),J=p()(U,2),q=J[0],Q=J[1],X=(0,f.useState)(!0),$=p()(X,2),ee=$[0],ne=$[1];a.id=a.coursesId,(0,f.useEffect)((function(){if("立即发布"===n.actionTabs.key)if(ae(),te(),2===n.actionTabs.type){var e=n.actionTabs.selectArrsAll[0];ne(e.unified_setting)}else ne(!1)}),[n.actionTabs]);var te=function(){var e=m()(s()().mark((function e(t){var i;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return K(!0),e.next=3,(0,A.c_)(u()(u()({},a),{},{page:t||k,limit:2e4,homework_id:1===n.actionTabs.type?"":n.actionTabs.selectArrs[0]}));case 3:null==(i=e.sent)||i.course_groups.map((function(e,n){e.key=e.id,e.title=e.name,e.disabled=e.is_published})),i&&(O(l()(null==i?void 0:i.course_groups)),z(null==i?void 0:i.course_groups_count),K(!1),t||c.setFieldsValue(o()(o()({},"publish_time",C()(C()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",C()(C()(new Date((0,T.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)}}(),ie=function(){var e,t=l()(null===(e=n.actionTabs.selectArrsAll)||void 0===e?void 0:e.filter((function(e){return e.high_resources_consume&&!e.high_resources_consume_permission})));(null==t?void 0:t.length)>0&&1===n.actionTabs.type&&x.Z.confirm({centered:!0,icon:null,footer:null,width:560,title:"提示",closable:!0,content:(0,I.jsx)("div",{children:(0,I.jsxs)("div",{className:B.tipcontent,children:[(0,I.jsxs)("div",{style:{color:"#191919"},children:["您有 ",(0,I.jsx)("span",{style:{color:"#f06b14"},children:null==t?void 0:t.length})," 个高消耗类型的实验发布失败,请单独进行发布。"]}),(0,I.jsx)("div",{className:"mt20 mb20",children:null==t?void 0:t.map((function(e){return(0,I.jsxs)("div",{className:B.failedList,children:[(0,I.jsx)("div",{className:B.name,children:null==e?void 0:e.name}),(0,I.jsx)("div",{className:B.publish,onClick:function(){(0,T.xg)("/classrooms/".concat(a.coursesId,"/shixun_homework/").concat(e.homework_id,"/detail?tabs=0"))},children:"发布"})]},e.homework_id)}))})]})})})},se=function(){var e=m()(s()().mark((function e(){var i,o,r,d,m,h,p,f;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,L.Rm)()||null!==(i=n.AssistantObject)&&void 0!==i&&null!==(i=i.practice)&&void 0!==i&&i.can_publish){e.next=4;break}return v.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能"),ce(!1),e.abrupt("return");case 4:if(!((m=u()({},c.getFieldsValue())).end_time<=m.publish_time)){e.next=9;break}return v.ZP.info("截止时间不能大于或等于发布时间"),ce(!1),e.abrupt("return");case 9:if(!((null==q?void 0:q.length)<=0&&!ee&&G.length>0)){e.next=13;break}return v.ZP.info("发布班级不能为空"),ce(!1),e.abrupt("return");case 13:if(h={homework_ids:l()(n.actionTabs.selectArrs),group_ids:q.length>0?q.map((function(e){return e.id})):null===(o=n.detailShixunsList)||void 0===o?void 0:o.course_groups,end_time:C()(m.end_time).format("YYYY-MM-DD HH:mm"),publish_time:C()(m.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!q.length},(null==(p=l()(null===(r=n.actionTabs.selectArrsAll)||void 0===r?void 0:r.filter((function(e){return e.high_resources_consume&&!e.high_resources_consume_permission}))))?void 0:p.length)!=n.actionTabs.selectArrsAll.length||1!=n.actionTabs.type){e.next=19;break}return t({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),ie(),e.abrupt("return");case 19:return(null===(d=n.actionTabs.selectArrsAll)||void 0===d?void 0:d.length)>0&&1===n.actionTabs.type&&(h.homework_ids=l()((null===(f=n.actionTabs.selectArrsAll)||void 0===f||null===(f=f.filter((function(e){return!e.high_resources_consume||e.high_resources_consume_permission})))||void 0===f?void 0:f.map((function(e){return Number(null==e?void 0:e.homework_id)})))||[])),ce(!0),e.next=23,(0,S.ZP)("/api/courses/".concat(a.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:u()({},h)});case 23:0===e.sent.status?(ce(!1),ae(),(0,T.L9)(["教学课堂","课程实验","立即发布"]),v.ZP.success("发布成功"),t({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),ie(),(0,L.GJ)()?n.actionTabs.detail?(t({type:"shixunHomeworks/setActionTabs",payload:{}}),t({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:u()({},a)}),t({type:"shixunHomeworks/getWorkSetting",payload:u()({},a)})):t({type:"classroomList/getClassroomTeacherShixunsList",payload:u()(u()({},n.actionTabs.params),{},{type:4})}):t({type:"classroomList/getClassroomShixunsList",payload:u()({},n.actionTabs.params)}),"0"===localStorage.getItem("Noviceguide")||t({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:13,text:(0,I.jsx)("div",{children:"最后,咱们给教学课堂添加一名学生~点击“添加学生”,在弹窗页面中输入并搜索学生姓名,点击“确定”就可以为您的课堂添加第一位学生啦~"})}})):ce(!1);case 25:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ae=function(){M(1),O([]),Q([])},oe=(n.detailShixunsList,(0,f.useState)(!1)),re=p()(oe,2),le=re[0],ce=re[1];return(0,I.jsxs)(x.Z,{width:600,centered:!0,confirmLoading:le,title:"发布作业",open:"立即发布"===n.actionTabs.key,okText:"发布作业",cancelText:"暂不发布",onOk:function(){return se()},onCancel:function(){ae(),t({type:"classroomList/setActionTabs",payload:{}})},children:[(0,I.jsxs)("p",{className:"tc",children:["学生将立即收到作业",(0,I.jsx)("br",{}),'本操作只对"未发布"的作业有效']}),(0,I.jsxs)(g.Z,{form:c,children:[(0,I.jsxs)("div",{style:{paddingLeft:0},children:[(0,I.jsxs)(y.Z,{className:"mt30",align:"middle",children:[(0,I.jsx)(w.Z,{children:(0,I.jsx)(g.Z.Item,{name:"publish_time",label:"发布时间",children:(0,I.jsx)(b.default,{style:{width:170,marginRight:"25px"},disabledDate:function(e){return(0,P.Q8)(e,i)},disabledTime:function(e){return(0,P.d0)(e)},placeholder:"请选择发布时间",showTime:{format:"HH:mm",defaultValue:C()((0,T.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),(0,I.jsx)(w.Z,{className:"ml20",children:(0,I.jsx)(g.Z.Item,{name:"end_time",label:"截止时间:",children:(0,I.jsx)(b.default,{style:{width:170},placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:C()((0,T.U6)(),"HH:mm")},disabledDate:function(e){return(0,P.Q8)(e,i,c.getFieldValue("publish_time"))},disabledTime:function(e){return(0,P.d0)(e,c.getFieldValue("publish_time"))},format:"YYYY-MM-DD HH:mm",allowClear:!1})})})]}),2===n.actionTabs.type&&(0,I.jsxs)(y.Z,{style:{marginBottom:"10px"},children:[(0,I.jsx)("span",{className:"mr5",children:"发布设置:"}),(0,I.jsxs)(_.ZP.Group,{value:ee,onChange:function(e){ne(e.target.value),Q([])},children:[(0,I.jsx)(_.ZP,{value:!0,disabled:!n.actionTabs.manage_all_group,children:"统一发布"}),(0,I.jsx)(_.ZP,{className:"ml20",disabled:G.length<=0,value:!1,children:"分班发布"})]})]}),G.length<=0&&2===n.actionTabs.type&&(0,I.jsx)("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"},children:'课堂无分班,仅支持选择“统一发布"'})]}),(1===n.actionTabs.type||!ee)&&G.length>0&&(0,I.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"},children:[(0,I.jsx)("span",{style:{flex:1},children:(0,I.jsx)(j.Z,{checked:q.length===G.length,onChange:function(e){q.length===G.length?Q([]):Q(G)},children:"全选"})}),(0,I.jsx)("span",{style:{width:16}}),(0,I.jsxs)("span",{style:{flex:1},children:["已选择",q.length||0,"个分班"]})]}),(1===n.actionTabs.type||!ee)&&G.length>0&&(0,I.jsx)(Z.Z,{data:G,selectedRowKeys:q,setSelectedRowKeys:Q})]})]})}))},71590:function(e,n,t){"use strict";t.d(n,{Z:function(){return y}});var i=t(7557),s=t.n(i),a=t(41498),o=t.n(a),r=t(79800),l=t.n(r),c=t(59301),u=t(92832),d=t(24905),m=t(95237),h="leftdiv___aBzsX",p="listClass___bxIEW",f="spantitle___v_Vc4",g="rightdiv___xWu4M",x=t(12677),v=t(37712),y=function(e){var n=e.data,t=(e.value,e.handleChangePage,e.setSelectedRowKeys),i=e.selectedRowKeys,a=(e.onChange,(0,c.useState)([])),r=l()(a,2),y=r[0],w=r[1],b=(0,c.useState)([]),_=l()(b,2),j=_[0],k=_[1],C=(0,c.useState)([]),S=l()(C,2),T=S[0],N=S[1],L=(0,c.useState)(1),A=l()(L,2),Z=(A[0],A[1],(0,c.useState)()),P=l()(Z,2);P[0],P[1];return(0,c.useEffect)((function(){w(n),k([]),N([])}),[n]),(0,c.useEffect)((function(){t&&(k(i),N(i))}),[i]),(0,v.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,v.jsxs)("div",{className:h,children:[(0,v.jsx)(u.Z.Search,{size:"middle",onChange:function(){var e=o()(s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:w(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===y.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:j.map((function(e){return"".concat(e.id)})),onChange:function(e){t(y.filter((function(n){return e.includes("".concat(n.id))})))},style:{marginTop:"10px",flexDirection:"column"},children:y.map((function(e,n){return(0,v.jsx)(m.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:p,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){N(j.filter((function(n){return n.name.includes(e.target.value)})))},size:"middle",placeholder:"可输入班级名称查询"}),0===T.length&&(0,v.jsx)(x.Z,{styles:{margin:"70px auto"},customText:"暂未选择分班"}),T.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:T.map((function(e,n){return(0,v.jsxs)(m.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(j.filter((function(n){return"".concat(n.id)!="".concat(e.id)})))}})]},e.id)}))})})]})]})}},33632:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return We}});var i=t(37205),s=t.n(i),a=t(7557),o=t.n(a),r=t(41498),l=t.n(r),c=t(82242),u=t.n(c),d=t(79800),m=t.n(d),h=t(39647),p=t.n(h),f=t(59301),g=t(93969),x=t(18196),v=t(20834),y=t(8591),w=t(92832),b=t(95237),_=t(43604),j=t(38854),k=t(6848),C=t(81327),S=t(78485),T=t(25700),N=t(24905),L=t(3113),A=t(43418),Z=t(5112),P=t(67275),B=t(18290),I=t(34458),M=t(82278),E=t(37712),D=["classroomList","dispatch","match","location","user"],G=(0,x.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var n,t,i=e.classroomList,a=e.dispatch,r=(e.match,e.location,e.user),c=(p()(e,D),(0,x.useParams)()),d=(0,f.useState)(!1),h=m()(d,2),v=h[0],w=h[1],b=(0,f.useState)(!1),_=m()(b,2),j=_[0],k=_[1],C=(0,f.useRef)(null);(0,f.useEffect)((function(){if("删除"===i.actionTabs.key){if((0,P.j5)())return void k(!0);var e={hasNum:0,noHasNum:0};i.actionTabs.selectArrsAll.map((function(n){var t;n.author_login===(null===(t=r.userInfo)||void 0===t?void 0:t.login)?++e.hasNum:++e.noHasNum})),e.noHasNum>0?A.Z.info({title:"权限提示",className:"custom-modal-divider ",icon:null,content:(0,E.jsxs)("div",{children:["当前选中资源中:",(0,E.jsx)("span",{className:"c-blue",children:e.hasNum}),"个由您本人发布,",(0,E.jsx)("span",{className:"c-red",children:e.noHasNum})," 个由其他老师发布。",(0,E.jsx)("br",{}),"课堂内只能删除本人发布的资源,请取消选中其他老师发布的资源。"]}),onOk:function(){S()}}):k(!0)}else k(!1)}),[i.actionTabs.key]);var S=function(){a({type:"classroomList/setActionTabs",payload:{}})};return(0,E.jsx)(A.Z,{centered:!0,title:"提示",open:j,okText:"确定",cancelText:"取消",destroyOnClose:!0,confirmLoading:v,onOk:l()(o()().mark((function e(){var n,t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(n=C.current)||void 0===n||!n.onVerify()){e.next=2;break}return e.abrupt("return");case 2:return w(!0),e.next=5,(0,g.ZP)("/api/courses/".concat(c.coursesId,"/homework_commons/multi_destroy.json"),{method:"post",body:{homework_ids:s()(i.actionTabs.selectArrs)}});case 5:t=e.sent,w(!1),0===t.status&&((0,I.L9)(["教学课堂","课程实验","删除"]),y.ZP.success("删除成功"),a({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,P.GJ)()?a({type:"classroomList/getClassroomTeacherShixunsList",payload:u()(u()({},i.actionTabs.params),{},{type:4})}):a({type:"classroomList/getClassroomShixunsList",payload:u()({},i.actionTabs.params)}),a({type:"classroomList/getClassroomLeftMenus",payload:{id:c.coursesId}}));case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){S()},children:null!=i&&null!==(n=i.actionTabs)&&void 0!==n&&n.status&&["未发布"].includes(null==i||null===(t=i.actionTabs)||void 0===t?void 0:t.status)?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("p",{children:"提交作品将全部被删除,不可恢复"}),(0,E.jsx)("p",{children:"是否确认删除?"})]}):(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)("p",{style:{color:"#DD0000"},children:"删除实训则会清除学生所有的答题数据,且数据不可恢复,如确定删除,请输入下方验证码"}),(0,E.jsx)(M.Z,{ref:function(e){return C.current=e}})]})})})),O=t(10638),R=t(20388),H=(0,x.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var n=e.classroomList,t=e.dispatch,i=(0,x.useParams)();return(0,E.jsx)(A.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,g.ZP)("/api/courses/".concat(i.coursesId,"/homework_commons/set_public.json"),{method:"post",body:{homework_ids:s()(n.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,I.L9)(["教学课堂","课程实验","设为公开"]),y.ZP.success("操作成功"),t({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,P.GJ)()?t({type:"classroomList/getClassroomTeacherShixunsList",payload:u()(u()({},n.actionTabs.params),{},{type:4})}):t({type:"classroomList/getClassroomShixunsList",payload:u()({},n.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){t({type:"classroomList/setActionTabs",payload:{}})},children:(0,E.jsxs)("p",{children:["设为公开后,非课堂成员也可以访问查看",(0,E.jsx)("br",{}),"是否确认设为公开?"]})})})),z=t(78241),F=t(61186),Y=t.n(F),V=(0,x.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var n,t,i=e.classroomList,s=(e.loading,e.dispatch),a=((0,x.useParams)(),(0,f.useState)(!1)),r=m()(a,2),c=r[0],d=r[1],h=i.actionTabs,p=z.Z.useForm(),v=m()(p,1)[0];return(0,f.useEffect)((function(){var e;"重命名"===i.actionTabs.key&&v.setFieldsValue({name:null===(e=h.selectArrs)||void 0===e?void 0:e.name})}),[i.actionTabs.key]),(0,E.jsx)(A.Z,{centered:!0,title:"重命名",confirmLoading:c,open:"重命名"===i.actionTabs.key,okText:"确定",cancelText:"取消",destroyOnClose:!0,onOk:l()(o()().mark((function e(){var n,t,a,r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,P.Rm)()||null!==(n=i.AssistantObject)&&void 0!==n&&null!==(n=n.practice)&&void 0!==n&&n.can_create){e.next=3;break}return y.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能"),e.abrupt("return");case 3:return t=v.getFieldValue(),d(!0),a="/api/homework_commons/".concat(i.actionTabs.selectArrs.homework_id,"/alter_name.json"),e.next=8,(0,g.ZP)(a,{method:"post",body:u()({},t)});case 8:r=e.sent,d(!1),0===r.status&&(y.ZP.success("修改成功"),s({type:"classroomList/setActionTabs",payload:{}}),(0,P.GJ)()?s({type:"classroomList/getClassroomTeacherShixunsList",payload:u()(u()({},i.actionTabs.params),{},{type:4})}):s({type:"classroomList/getClassroomShixunsList",payload:u()({},i.actionTabs.params)}));case 11:case"end":return e.stop()}}),e)}))),onCancel:function(){d(!1),s({type:"classroomList/setActionTabs",payload:{}})},children:(0,E.jsxs)(z.Z,{form:v,children:[(0,E.jsxs)(b.Z,{className:"mt10 c-grey-999",children:[(0,E.jsx)(_.Z,{children:"本实训初始名称:"}),(0,E.jsx)(_.Z,{flex:"1",children:null===(n=h.selectArrs)||void 0===n?void 0:n.shixun_name})]}),(0,E.jsx)(z.Z.Item,{name:"name",children:(0,E.jsxs)(b.Z,{className:"mt10",align:"middle",children:[(0,E.jsx)(_.Z,{className:"font14",children:"作业名称:"}),(0,E.jsx)(_.Z,{flex:"1",children:(0,E.jsx)(w.Z,{defaultValue:null===(t=h.selectArrs)||void 0===t?void 0:t.name})})]})})]})})})),W=t(43428),K=t(71418),U=t(28103),J=t(12677),q="drawer___QqugY",Q="menu___uKpxi",X="actived___hCeHj",$="actived2___aIAeg",ee="subTag___S0zfl",ne="listItem___Ulw3D",te="listItem2___J8GtN",ie="info___gY955",se="title___hyfzM",ae="titleLeft___eH38u",oe="search___GnrcF",re="filter___jwVvV",le="description___ynLaI",ce="menuCourse___HRXxE",ue="authorname___qn85G",de="tooltip-content___A6uPo",me=t(58695),he=t(25012),pe=t(24238),fe=t(7138),ge=t(71034),xe=(w.Z.Search,[{id:"type",name:"来源",children:[{name:"全部",id:"all",type:"type"},{name:"我的",id:"mine",type:"type"}]},{id:"diff",name:"难度",children:[{name:"全部",id:"",type:"diff"},{name:"初级",id:1,type:"diff"},{name:"中级",id:2,type:"diff"},{name:"中高级",id:3,type:"diff"},{name:"高级",id:4,type:"diff"}]}]),ve=(0,x.connect)((function(e){return{classroomList:e.classroomList,shixunsList:e.shixunsList,loading:e.loading.effects}}))((function(e){var n,t,i=e.classroomList,a=(e.loading,e.dispatch),r=e.shixunsList,c=(0,f.useState)(u()({},(0,x.useParams)())),d=m()(c,2),h=d[0],p=(d[1],i.shixunLists),v=i.shixunAiRecommendLists,w=(0,f.useState)([]),j=m()(w,2),C=j[0],S=j[1],A=(0,f.useState)({}),Z=m()(A,2),B=Z[0],M=Z[1],D=(0,f.useState)([]),G=m()(D,2),O=G[0],R=G[1],H=(0,f.useState)(!1),z=m()(H,2),F=z[0],Y=z[1],V=[{name:"最新",id:"created_at"},{name:"最热",id:"myshixuns_count"}].filter((function(e){return!!e})),te=(0,f.useState)({page:1,type:"mine",diff:"",status:"published",order:"desc",limit:20,sort:"myshixuns_count",no_jupyter:1,group_id:null,shixun_homework:!0}),oe=m()(te,2),ve=oe[0],ye=oe[1];(0,f.useEffect)((function(){we()}),[h.coursesId,ve]),(0,f.useEffect)((function(){"选用实践项目"===i.actionTabs.key&&S([]),a({type:"shixunsList/getMenus",payload:{}})}),[i.actionTabs.key]),(0,f.useEffect)((function(){(null!=p&&p.shixun_list||null!=v&&v.shixun_list)&&M("recommend"===ve.sort?v:p)}),[p,v]);var we=function(){var e=l()(o()().mark((function e(){var n,t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(M([]),Y(!0),n=u()({},ve),"recommend"===ve.sort&&(n.sort="myshixuns_count"),"recommend"!==ve.sort){e.next=9;break}return e.next=7,a({type:"classroomList/getShixunAiRecommendLists",payload:u()(u()({},n),{},{course_id:h.coursesId})});case 7:e.next=12;break;case 9:return t=u()({},n),e.next=12,a({type:"classroomList/getShixunLists",payload:t});case 12:return e.next=14,(0,g.ZP)("/api/users/user_setting_groups.json",{method:"get",params:{type:"Shixun"}});case 14:i=e.sent,R([{id:null,name:"全部"},{id:-1,name:"未加入目录"}].concat(s()((null==i?void 0:i.groups)||[]))),S([]),Y(!1);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if("选用实践课程"!==i.actionTabs.key){var be=(0,pe.P)(),_e=m()(be,4),je=_e[0],ke=_e[1],Ce=_e[2],Se=_e[3],Te=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,a({type:"classroomList/createShixunHomework",payload:{category_id:(null==h?void 0:h.categoryId)||null,coursesId:h.coursesId,shixuns_info:n.map((function(e){return{shixun_id:e.id,is_copy:e.is_copy,is_use:e.is_use}}))}});case 2:e.sent.status||((0,I.L9)(["教学课堂","课程实验","选用实践项目"]),y.ZP.success("操作成功"),a({type:"classroomList/setActionTabs",payload:{}}),(0,P.GJ)()?a({type:"classroomList/getClassroomTeacherShixunsList",payload:u()(u()({},i.actionTabs.params),{},{type:4})}):a({type:"classroomList/getClassroomShixunsList",payload:u()({},i.actionTabs.params)}),a({type:"classroomList/getClassroomLeftMenus",payload:{id:h.coursesId}}),"0"===localStorage.getItem("Noviceguide")||a({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:12,text:(0,E.jsx)("div",{children:"接下来,咱们给教学课堂添加一个“课程实验”~点击“选用实践项目”,选择一个作业,然后点击“立即发布”就给实践课堂添加了一个课程实验。"})}}));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ne=(0,f.useState)(!1),Le=m()(Ne,2),Ae=Le[0],Ze=Le[1];return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsxs)(W.Z,{placement:"bottom",height:"100%",closable:!0,open:"选用实践项目"===i.actionTabs.key,rootClassName:q,onClose:function(){a({type:"classroomList/setActionTabs",payload:{key:""}})},footer:(0,E.jsxs)("div",{className:"tc",style:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,E.jsx)(L.ZP,{size:"middle",onClick:function(){a({type:"classroomList/setActionTabs",payload:{}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},children:"取消"}),(0,E.jsx)(L.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",onClick:l()(o()().mark((function e(){var n,t,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Ze(!0),e.next=3,Se({id:C,type:"shixun",course_id:null===(n=i.detailTopBanner)||void 0===n?void 0:n.course_id});case 3:if(e.sent){e.next=8;break}return s=null==B||null===(t=B.shixun_list)||void 0===t?void 0:t.filter((function(e){return C.includes(e.identifier)})).map((function(e){return{id:e.id,is_copy:0,is_use:1}})),e.next=8,Te(s);case 8:Ze(!1);case 9:case"end":return e.stop()}}),e)}))),type:"primary",loading:Ae,children:"确定"})]}),children:[(0,E.jsx)("section",{className:"tc",children:(0,E.jsx)(he.Z,{onChange:function(e){null!=e&&e.keyword&&(0,fe.tk)({name:null==e?void 0:e.keyword,copywriting:null==e?void 0:e.keyword,position:"Shixun"}),ye(u()(u()(u()({},ve),e),{},{page:1}))}})}),(0,E.jsx)("section",{className:"edu-container",children:(0,E.jsx)(K.Z,{spinning:F,children:(0,E.jsxs)("aside",{children:[xe.map((function(e,n){var t;return 0!==n?null:(0,E.jsxs)("ul",{className:Q,children:[(0,E.jsx)("li",{children:e.name}),null==e||null===(t=e.children)||void 0===t?void 0:t.map((function(n,t){return(0,E.jsx)("li",{className:ve[e.id]==n.id?X:"",onClick:function(){ve[e.id]=n.id,ve.page=1,ye(u()({},ve))},children:(0,E.jsx)("strong",{children:n.name})})}))]},n)})),(0,E.jsxs)("ul",{className:Q,children:[(0,E.jsx)("li",{children:"方向"}),(0,E.jsx)("li",{className:null!=ve&&ve.discipline_id?"":X,onClick:function(){delete ve.tag_level,delete ve.sub_discipline_id,delete ve.discipline_id,ve.page=1,ye(u()({},ve))},children:(0,E.jsx)("strong",{children:"全部"})}),r.menus&&r.menus.map((function(e,n){return(0,E.jsxs)("li",{className:(null==ve?void 0:ve.discipline_id)==e.id?X:"",children:[(0,E.jsx)("strong",{onClick:function(){ve.tag_level=1,ve.discipline_id=e.id,delete ve.sub_discipline_id,ve.page=1,ye(u()({},ve))},children:e.name}),(0,E.jsx)("div",{children:e.sub_repertoires.map((function(n,t){return(0,E.jsxs)("div",{className:"mt5",children:[(0,E.jsx)("div",{className:(null==ve?void 0:ve.sub_discipline_id)==n.id&&2===ve.tag_level?"".concat($," ").concat(ee):ee,onClick:function(){ve.tag_level=2,ve.discipline_id=e.id,ve.sub_discipline_id=n.id,ye(u()({},ve))},children:n.name}),(0,E.jsx)("ul",{className:"mt5",children:n.tags&&n.tags.map((function(n,t){return(0,E.jsx)("li",{className:ve.sub_discipline_id==n.id&&3===ve.tag_level?$:"",onClick:function(){ve.tag_level=3,ve.discipline_id=e.id,ve.sub_discipline_id=n.id,ye(u()({},ve))},children:n.name},t)}))})]},t)}))})]},n)}))]}),"mine"===ve.type&&(0,E.jsxs)("ul",{className:Q,children:[(0,E.jsx)("li",{children:"目录"}),null==O?void 0:O.map((function(e,n){return(0,E.jsx)("li",{className:ve.group_id==e.id?X:"",onClick:function(){ve.group_id=e.id,ve.page=1,ye(u()({},ve))},children:(0,E.jsx)("strong",{children:e.name})},e.name)}))]}),xe.map((function(e,n){var t;return 1!==n?null:(0,E.jsxs)("ul",{className:Q,children:[(0,E.jsx)("li",{children:e.name}),null==e||null===(t=e.children)||void 0===t?void 0:t.map((function(n,t){return(0,E.jsx)("li",{className:ve[e.id]==n.id?X:"",onClick:function(){ve[e.id]=n.id,ye(u()({},ve))},children:(0,E.jsx)("strong",{children:n.name})})}))]},n)})),(0,E.jsxs)(b.Z,{align:"middle",children:[(0,E.jsx)(_.Z,{flex:"1",className:re,children:V.map((function(e,n){return(0,E.jsx)(L.ZP,{className:"mr20",type:ve.sort===e.id?"primary":"default",onClick:function(){ve.sort=e.id,ye(u()({},ve))},children:e.name},n)}))}),(0,E.jsx)(_.Z,{className:"c-grey-999",children:(0,E.jsx)("div",{className:ce,children:(0,E.jsxs)("ul",{children:[(0,E.jsxs)("li",{children:["已选",(0,E.jsx)("span",{className:"c-blue",children:C.length}),"个"]}),(0,E.jsxs)("li",{children:["共",(0,E.jsx)("span",{className:"c-blue",children:B.shixuns_count}),"个"]}),(0,E.jsxs)("li",{className:"current",onClick:function(){ve.order="asc"===ve.order?"desc":"asc",ye(u()({},ve))},children:["学习人数",(0,E.jsxs)("p",{className:"edu-sorter current ".concat(ve.order),children:[(0,E.jsx)("span",{className:"iconfont icon-sanjiaoxing-up"}),(0,E.jsx)("span",{className:"iconfont icon-sanjiaoxing-down"})]})]})]})})})]}),0===(null==B||null===(n=B.shixun_list)||void 0===n?void 0:n.length)&&(0,E.jsx)(J.Z,{}),(0,E.jsx)(N.Z.Group,{style:{display:"block"},value:C,onChange:function(e){S(e)},children:null==B||null===(t=B.shixun_list)||void 0===t?void 0:t.map((function(e,n){return(0,E.jsxs)("div",{className:ne,style:{cursor:"auto"},children:[(0,E.jsx)(N.Z,{value:null==e?void 0:e.identifier,style:{marginTop:"3px"},disabled:(null==e?void 0:e.need_authorize)||"未发布"==(null==e?void 0:e.shixun_tag_num_name)}),(0,E.jsxs)("div",{className:ie,children:[(0,E.jsx)("div",{className:se,children:(0,E.jsxs)("div",{className:ae,children:[(0,E.jsxs)("div",{children:[(0,E.jsx)(x.Link,{to:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:(0,E.jsx)("strong",{className:"font16",dangerouslySetInnerHTML:{__html:e.title}})}),(null==e?void 0:e.high_resources_consume)&&(0,E.jsx)("span",{className:"tag-style current",children:(0,E.jsx)(ge.Z,{type:"shixun",style:{marginLeft:0}})}),(null==e?void 0:e.need_authorize)&&(0,E.jsx)("span",{onClick:function(){(0,me.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10",children:"需授权"}),(0,P.Ny)()&&1===(null==e?void 0:e.mark_status)&&(0,E.jsx)(k.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,E.jsx)("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10",children:"正常"})}),(0,P.Ny)()&&2===(null==e?void 0:e.mark_status)&&(0,E.jsx)(k.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,E.jsx)("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10",children:"需完善"})}),(0,P.Ny)()&&3===(null==e?void 0:e.mark_status)&&(0,E.jsx)(k.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,E.jsx)("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10",children:"无法使用"})}),"未发布"==(null==e?void 0:e.shixun_tag_num_name)&&(0,E.jsx)(k.Z,{zIndex:1e4,title:"实训需发布后才能发送到教学课堂,点击名称可前往实训详情",children:(0,E.jsx)("span",{style:{marginRight:"auto",background:"#999"},className:"tag-style current ml10",children:"未发布"})})]}),(0,E.jsx)(L.ZP,{ghost:!0,href:"/shixuns/".concat(e.identifier,"/challenges"),type:"primary",target:"_blank",style:{borderRadius:"50px"},children:"体验实训"})]})}),(0,E.jsx)("div",{className:"flex-wrp mt10 font14 c-light-black",children:(0,E.jsx)("span",{className:le,dangerouslySetInnerHTML:{__html:e.description}})}),(0,E.jsx)("div",{className:" mt15",children:e.challenge_names.map((function(e,n){return(0,E.jsxs)("span",{className:"mr30",children:["第",n+1,"关 ",e," "]},n)}))}),(0,E.jsx)(U.Z,{dashed:!0}),(0,E.jsxs)("div",{className:"c-light-black mt20",style:{display:"flex",justifyContent:"space-between"},children:[(0,E.jsxs)("div",{children:[(0,E.jsx)(k.Z,{overlayClassName:de,title:(0,E.jsx)("div",{children:(0,E.jsx)("span",{dangerouslySetInnerHTML:{__html:null==e?void 0:e.member_user_names}})}),children:(0,E.jsx)("span",{className:ue,dangerouslySetInnerHTML:{__html:null==e?void 0:e.member_user_names}})}),e.author_school_name&&(0,E.jsx)(f.Fragment,{children:(0,E.jsx)("span",{dangerouslySetInnerHTML:{__html:e.author_school_name}})})]}),(0,E.jsxs)("div",{children:[(0,E.jsxs)("span",{className:"mr30",children:["难度系数 ",e.level]}),(0,E.jsxs)("span",{children:["学习人数 ",e.study_count]})]})]})]})]},null==e?void 0:e.identifier)}))})]})})}),(0,E.jsx)("div",{className:"tc mt20",children:(0,E.jsx)(T.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:ve.page||1,showQuickJumper:!0,total:null==B?void 0:B.shixuns_count,onChange:function(e){ve.page=e,ye(u()({},ve))}})})]},"bottom"),(0,E.jsx)(pe.Z,{visible:je,onCancel:ke,renderData:Ce,inPaper:!1,onOk:Te,modalType:"multiple",type:"shixun",position:"选中实训"})]})}})),ye=w.Z.Search,we=(0,x.connect)((function(e){return{classroomList:e.classroomList,shixunsList:e.shixunsList,loading:e.loading.effects}}))((function(e){var n,t,i=e.classroomList,a=(e.loading,e.dispatch),r=(0,f.useState)(u()({},(0,x.useParams)())),c=m()(r,2),d=c[0],h=(c[1],i.actionTabs),p=i.shixunLists,g=(0,f.useState)([]),v=m()(g,2),w=v[0],b=v[1],_=(0,f.useState)(!1),j=m()(_,2),C=j[0],S=j[1],A=(0,f.useState)({page:1,limit:20,search:null}),Z=m()(A,2),B=Z[0],I=Z[1];(0,f.useEffect)((function(){M()}),[d.coursesId,B]),(0,f.useEffect)((function(){"从课堂实验添加"===i.actionTabs.key&&b([])}),[i.actionTabs.key]);var M=function(){var e=l()(o()().mark((function e(){var n,t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=u()(u()({},B),{},{course_id:null==h||null===(n=h.params)||void 0===n?void 0:n.course_id}),e.next=3,a({type:"classroomList/getExperimentLists",payload:t});case 3:S(!1);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if("选用实践课程"!==i.actionTabs.key)return(0,E.jsxs)(W.Z,{placement:"bottom",height:"100%",closable:!0,style:{zIndex:9999},open:"从课堂实验添加"===i.actionTabs.key,rootClassName:q,onClose:function(){a({type:"classroomList/setActionTabs",payload:{key:""}})},footer:(0,E.jsxs)("div",{className:"tc",style:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,E.jsx)(L.ZP,{size:"middle",onClick:function(){a({type:"classroomList/setActionTabs",payload:{key:""}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},children:"取消"}),(0,E.jsx)(L.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",onClick:l()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"classroomList/createExperiment",payload:{homework_common_ids:s()(w),category_id:d.categoryId,course_id:null==h||null===(n=h.params)||void 0===n?void 0:n.course_id}});case 2:e.sent.status||(y.ZP.success("操作成功"),a({type:"classroomList/setActionTabs",payload:{}}),(0,P.GJ)()?a({type:"classroomList/getClassroomTeacherShixunsList",payload:u()(u()({},i.actionTabs.params),{},{type:4})}):a({type:"classroomList/getClassroomShixunsList",payload:u()({},i.actionTabs.params)}),a({type:"classroomList/getClassroomLeftMenus",payload:{id:d.coursesId}}),"0"===localStorage.getItem("Noviceguide")||a({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:12,text:(0,E.jsx)("div",{children:"接下来,咱们给教学课堂添加一个“课程实验”~点击“选用实践项目”,选择一个作业,然后点击“立即发布”就给实践课堂添加了一个课程实验。"})}}));case 4:case"end":return e.stop()}}),e)}))),type:"primary",children:"确定"})]}),children:[(0,E.jsx)("section",{className:"tc",children:(0,E.jsx)(ye,{placeholder:"请输入课堂实验名称进行查询",enterButton:"搜索",size:"middle",className:oe,onSearch:function(e){B.search=e,I(u()({},B))}})}),(0,E.jsx)("section",{className:"edu-container",children:(0,E.jsx)(K.Z,{spinning:C,children:(0,E.jsxs)("aside",{children:[0===(null==p||null===(n=p.homeworks)||void 0===n?void 0:n.length)&&(0,E.jsx)(J.Z,{}),null==p||null===(t=p.homeworks)||void 0===t?void 0:t.map((function(e,n){var t,i,s;return(0,E.jsxs)("div",{className:ne,style:{cursor:"auto"},children:[(0,E.jsx)(N.Z,{checked:w.includes(e.id),value:e.id,style:{marginTop:"3px"},disabled:null==e?void 0:e.need_authorize,onChange:function(n){w.indexOf(e.id);w.indexOf(e.id)>-1?b(w.filter((function(n){return n!==e.id}))):b(w.concat(e.id))}}),(0,E.jsxs)("div",{className:ie,children:[(0,E.jsx)("div",{className:se,children:(0,E.jsxs)("div",{className:ae,children:[(0,E.jsx)(x.Link,{to:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:(0,E.jsx)("strong",{className:"font16",dangerouslySetInnerHTML:{__html:null==e?void 0:e.name}})}),(null==e?void 0:e.need_authorize)&&(0,E.jsx)("span",{onClick:function(){(0,me.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10",children:"需授权"}),(0,P.Ny)()&&1===(null==e?void 0:e.mark_status)&&(0,E.jsx)(k.Z,{title:null==e?void 0:e.mark_content,children:(0,E.jsx)("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10",children:"正常"})}),(0,P.Ny)()&&2===(null==e?void 0:e.mark_status)&&(0,E.jsx)(k.Z,{title:null==e?void 0:e.mark_content,children:(0,E.jsx)("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10",children:"需完善"})}),(0,P.Ny)()&&3===(null==e?void 0:e.mark_status)&&(0,E.jsx)(k.Z,{title:null==e?void 0:e.mark_content,children:(0,E.jsx)("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10",children:"无法使用"})}),(0,E.jsx)(L.ZP,{ghost:!0,href:"/shixuns/".concat(e.shixun_identifier,"/challenges"),type:"primary",target:"_blank",style:{borderRadius:"50px"},children:"查看实验"})]})}),(0,E.jsx)("div",{className:"flex-wrp mt10 font14 c-light-black",children:(0,E.jsx)("span",{className:le,dangerouslySetInnerHTML:{__html:null==e?void 0:e.description}})}),(0,E.jsx)("div",{className:" mt15",children:null==e||null===(t=e.challenges)||void 0===t?void 0:t.map((function(e,n){return(0,E.jsxs)("span",{className:"mr30",children:["第",n+1,"关 ",null==e?void 0:e.subject," "]},n)}))}),(0,E.jsx)(U.Z,{dashed:!0}),(0,E.jsxs)("div",{className:"c-light-black mt20",children:[(null==e||null===(i=e.user)||void 0===i?void 0:i.name)&&(0,E.jsxs)(f.Fragment,{children:[(0,E.jsx)("span",{children:null==e||null===(s=e.user)||void 0===s?void 0:s.name}),(0,E.jsx)("span",{className:"ml15 mr15",children:"|"})]}),(0,E.jsx)("span",{children:"创建时间: "}),(0,E.jsx)("span",{children:null==e?void 0:e.created_at})]})]})]},n)}))]})})}),(0,E.jsx)("div",{className:"tc mt20",children:(0,E.jsx)(T.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:B.page||1,showQuickJumper:!0,total:null==p?void 0:p.total_count,onChange:function(e){B.page=e,I(u()({},B))}})})]},"bottom")})),be=(w.Z.Search,(0,x.connect)((function(e){return{classroomList:e.classroomList,shixunsList:e.shixunsList,loading:e.loading.effects}}))((function(e){var n,t,i=e.classroomList,a=e.loading,r=e.dispatch,c=(e.shixunsList,(0,f.useState)(u()({},(0,x.useParams)()))),d=m()(c,2),h=d[0],p=(d[1],(0,x.useLocation)(),i.actionTabs,z.Z.useForm()),g=(m()(p,1)[0],i.shixunAiRecommendLists),v=(0,f.useState)([]),w=m()(v,2),b=w[0],_=w[1],j=(0,f.useState)({page:1,course_id:h.coursesId,limit:20,no_jupyter:1}),k=m()(j,2),C=k[0],S=k[1];return(0,f.useEffect)((function(){}),[h.coursesId,C]),(0,f.useEffect)((function(){"智能推荐"===i.actionTabs.key&&(_([]),r({type:"classroomList/getShixunAiRecommendLists",payload:u()({},C)}))}),[i.actionTabs.key]),"智能推荐"!==i.actionTabs.key?null:(0,E.jsxs)(A.Z,{title:"智能推荐",placement:"bottom",centered:!0,height:"60%",width:1e3,closable:!0,style:{zIndex:9999},okText:"确定",cancelText:"取消",open:"智能推荐"===i.actionTabs.key,onCancel:function(){r({type:"classroomList/setActionTabs",payload:{key:""}})},onOk:l()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"classroomList/createShixunHomework",payload:u()({shixun_ids:s()(b),category_id:h.categoryId},h)});case 2:e.sent.status||((0,I.L9)(["教学课堂","课程实验","智能推荐选用"]),sessionStorage.aiRecommentHide=!0,y.ZP.success("操作成功"),r({type:"classroomList/setActionTabs",payload:{}}),r({type:"classroomList/getClassroomShixunsList",payload:u()({},i.actionTabs.params)}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:h.coursesId}}));case 4:case"end":return e.stop()}}),e)}))),children:[(0,E.jsx)("section",{className:"",style:{maxHeight:500,minHeight:150,overflow:"auto"},children:(0,E.jsx)(K.Z,{spinning:a["classroomList/getShixunAiRecommendLists"],children:(0,E.jsxs)("aside",{style:{minHeight:150},children:[0===(null==g||null===(n=g.shixun_list)||void 0===n?void 0:n.length)&&(0,E.jsx)(J.Z,{}),null==g||null===(t=g.shixun_list)||void 0===t?void 0:t.map((function(e,n){var t,i;return(0,E.jsxs)("div",{className:te,style:{cursor:"auto"},children:[(0,E.jsx)(N.Z,{checked:b.includes(e.id),value:e.id,style:{marginTop:"3px"},disabled:null==e?void 0:e.need_authorize,onChange:function(n){b.indexOf(e.id);b.indexOf(e.id)>-1?_(b.filter((function(n){return n!==e.id}))):_(b.concat(e.id))}}),(0,E.jsxs)("div",{className:ie,children:[(0,E.jsx)("div",{className:se,children:(0,E.jsxs)("div",{className:ae,children:[(0,E.jsx)(x.Link,{to:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:(0,E.jsx)("strong",{className:"font16",dangerouslySetInnerHTML:{__html:e.title}})}),(null==e?void 0:e.need_authorize)&&(0,E.jsx)("span",{onClick:function(){(0,me.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10",children:"需授权"}),(0,E.jsx)(L.ZP,{ghost:!0,href:"/shixuns/".concat(e.identifier,"/challenges"),type:"primary",target:"_blank",style:{borderRadius:"50px"},children:"体验实训"})]})}),(0,E.jsx)("div",{className:"flex-wrp mt10 font14 c-light-black",children:(0,E.jsx)("span",{className:le,dangerouslySetInnerHTML:{__html:e.description}})}),(0,E.jsx)("div",{className:" mt10",children:e.challenge_names.map((function(e,n){return(0,E.jsxs)("span",{className:"mr30",children:["第",n+1,"关 ",e," "]},n)}))}),(0,E.jsxs)("div",{className:"c-light-black mt10",children:[null!=e&&null!==(t=e.content)&&void 0!==t&&t.author_name?(0,E.jsx)("span",{dangerouslySetInnerHTML:{__html:null==e||null===(i=e.content)||void 0===i||null===(i=i.author_name)||void 0===i?void 0:i[0]}}):(0,E.jsx)("span",{children:e.author_name}),(0,E.jsx)("span",{className:"ml15 mr15",children:"|"}),e.author_school_name&&(0,E.jsxs)(f.Fragment,{children:[(0,E.jsx)("span",{children:e.author_school_name}),(0,E.jsx)("span",{className:"ml15 mr15",children:"|"})]}),(0,E.jsxs)("span",{children:["难度系数 ",e.level]}),(0,E.jsx)("span",{className:"ml15 mr15",children:"|"}),(0,E.jsx)("span",{children:"学习人数 "}),(0,E.jsx)("span",{children:e.study_count})]}),(0,E.jsx)(U.Z,{dashed:!0})]})]},n)}))]})})}),(0,E.jsx)("div",{className:"tc mt20 hide",children:(0,E.jsx)(T.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:C.page||1,showQuickJumper:!0,total:null==g?void 0:g.shixuns_count,onChange:function(e){C.page=e,S(u()({},C))}})})]},"bottom")}))),_e=w.Z.Search,je=(0,x.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading.effects}}))((function(e){var n,t,i=e.classroomList,s=e.loading,a=e.dispatch,r=(0,f.useState)(u()({},(0,x.useParams)())),c=m()(r,2),d=c[0],h=(c[1],(0,x.useLocation)(),i.actionTabs,z.Z.useForm()),p=(m()(h,1)[0],i.coursesLists),g=(0,f.useState)([]),v=m()(g,2),w=v[0],b=v[1],_=(0,f.useState)({page:1,type:"mine",order:"desc",limit:20,sort:"myshixuns_count",shixun_homework:!0}),j=m()(_,2),C=j[0],S=j[1];(0,f.useEffect)((function(){"选用实践课程"===i.actionTabs.key&&(a({type:"classroomList/getCoursesLists",payload:u()({},C)}),b([]))}),[i.actionTabs.key,d.categoryId,C]);var N=(0,pe.P)(),A=m()(N,4),B=A[0],M=A[1],D=A[2],G=A[3],O=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,a({type:"classroomList/createCoursesHomework",payload:{coursesId:d.coursesId,category_id:(null==d?void 0:d.categoryId)||null,subjects_info:[{subject_id:null===(t=w[0])||void 0===t?void 0:t.id,stage_shixuns:n.map((function(e){return{stage_shixun_id:e.id,is_use:e.is_use,is_copy:e.is_copy}}))}]}});case 2:e.sent.status||((0,I.L9)(["教学课堂","课程实验","选用实践课程"]),y.ZP.success("操作成功"),a({type:"classroomList/setActionTabs",payload:{}}),(0,P.GJ)()?a({type:"classroomList/getClassroomTeacherShixunsList",payload:u()(u()({},i.actionTabs.params),{},{type:4})}):a({type:"classroomList/getClassroomShixunsList",payload:u()({},i.actionTabs.params)}),a({type:"classroomList/getClassroomLeftMenus",payload:{id:d.coursesId}}));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return"选用实践课程"!==i.actionTabs.key?null:(0,E.jsxs)(W.Z,{placement:"bottom",height:"100%",closable:!0,onClose:function(){a({type:"classroomList/setActionTabs",payload:{key:""}})},open:"选用实践课程"===i.actionTabs.key,rootClassName:q,footer:(0,E.jsxs)("div",{className:"tc",style:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,E.jsx)(L.ZP,{size:"middle",onClick:function(){a({type:"classroomList/setActionTabs",payload:{key:""}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},children:"取消"}),(0,E.jsx)(L.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",loading:s["classroomList/createCoursesHomework"],onClick:l()(o()().mark((function e(){var n,t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==(null==w?void 0:w.length)){e.next=3;break}return y.ZP.error("请选择一个实践课程"),e.abrupt("return",!1);case 3:return e.next=5,G({id:null===(n=w[0])||void 0===n?void 0:n.identifier,type:"subject",stage_item_id:[],sync_catelog:1,course_id:null===(t=i.detailTopBanner)||void 0===t?void 0:t.course_id});case 5:e.sent||O([]);case 7:case"end":return e.stop()}}),e)}))),type:"primary",children:"确定"})]}),children:[(0,E.jsx)("section",{className:"tc",children:(0,E.jsx)(_e,{placeholder:"课程名称/课程标识/合作者",enterButton:"搜索",size:"middle",className:oe,onSearch:function(e){C.keyword=e,e&&(0,fe.tk)({name:e,copywriting:e,position:"Subject"}),S(u()({},C))}})}),(0,E.jsx)("section",{className:"edu-container",children:(0,E.jsx)(K.Z,{spinning:s["classroomList/getCoursesLists"],children:(0,E.jsxs)("aside",{children:[(0,E.jsx)("div",{className:ce,children:(0,E.jsxs)("ul",{children:[(0,E.jsxs)("li",{children:["已选",(0,E.jsx)("span",{className:"c-blue",children:w.length}),"课程"]}),(0,E.jsxs)("li",{children:["共",(0,E.jsx)("span",{className:"c-blue",children:p.subjects_count}),"个课程"]}),(0,E.jsxs)("li",{className:"current",onClick:function(){C.order="asc"===C.order?"desc":"asc",C.sort="shixuns_count",S(u()({},C))},children:["实训数",(0,E.jsxs)("p",{className:"edu-sorter current ".concat("shixuns_count"===C.sort&&C.order),children:[(0,E.jsx)("span",{className:"iconfont icon-sanjiaoxing-up"}),(0,E.jsx)("span",{className:"iconfont icon-sanjiaoxing-down"})]})]}),(0,E.jsxs)("li",{className:"current",onClick:function(){C.order="asc"===C.order?"desc":"asc",C.sort="myshixuns_count",S(u()({},C))},children:["学习人数",(0,E.jsxs)("p",{className:"edu-sorter current ".concat("myshixuns_count"===C.sort&&C.order),children:[(0,E.jsx)("span",{className:"iconfont icon-sanjiaoxing-up"}),(0,E.jsx)("span",{className:"iconfont icon-sanjiaoxing-down"})]})]}),(0,E.jsx)("li",{className:"".concat("all"===C.type&&"c-blue"," current"),onClick:function(){C.type="all",S(u()({},C))},children:"全部课程"}),(0,E.jsx)("li",{className:"".concat("mine"===C.type&&"c-blue"," current"),onClick:function(){C.type="mine",S(u()({},C))},children:"我的课程"})]})}),0===(null==p||null===(n=p.subject_list)||void 0===n?void 0:n.length)&&(0,E.jsx)(J.Z,{}),null==p||null===(t=p.subject_list)||void 0===t?void 0:t.map((function(e,n){var t,i,s,a,o,r;return(0,E.jsxs)("div",{className:ne,style:{cursor:"auto"},children:[(0,E.jsx)(Z.ZP,{checked:w.map((function(e){return e.id})).includes(e.id),value:e.id,style:{marginTop:"1px"},disabled:(null==e?void 0:e.need_authorize)||"未发布"==(null==e?void 0:e.shixun_tag_num_name),onChange:function(n){b([{id:e.id,identifier:e.identifier}])}}),(0,E.jsxs)("div",{className:ie,children:[(0,E.jsx)("div",{className:se,children:(0,E.jsxs)("div",{className:ae,children:[(0,E.jsxs)("div",{children:[(0,E.jsx)(x.Link,{to:"/paths/".concat(e.id),target:"_blank",children:(0,E.jsx)("strong",{className:"font16",dangerouslySetInnerHTML:{__html:e.title}})}),(null==e?void 0:e.need_authorize)&&(0,E.jsx)("span",{onClick:function(){(0,me.rX)(!1,"该课程中包含实训需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。")},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10",children:"需授权"}),"未发布"==(null==e?void 0:e.shixun_tag_num_name)&&(0,E.jsx)(k.Z,{zIndex:1e4,title:"实践课程需发布后才能发送到教学课堂,点击名称可前往课程详情",children:(0,E.jsx)("span",{style:{marginRight:"auto",background:"#999"},className:"tag-style current ml10",children:"未发布"})})]}),(0,E.jsx)(k.Z,{zIndex:1e4,title:"前往选用是进入实践课程的页面后,点击“发送”按钮,将所需实践项目发送至当前课堂",children:(0,E.jsx)(L.ZP,{ghost:!0,href:"/paths/".concat(e.id),type:"primary",target:"_blank",style:{borderRadius:"50px"},children:"前往选用"})})]})}),(0,E.jsx)("div",{className:"flex-wrp mt10 font14 c-light-black",children:(0,E.jsx)("span",{className:le,dangerouslySetInnerHTML:{__html:e.description}})}),(0,E.jsx)(U.Z,{dashed:!0}),(0,E.jsxs)("div",{className:"c-light-black mt20",style:{display:"flex",justifyContent:"space-between"},children:[(0,E.jsxs)("div",{children:[null!=e&&null!==(t=e.content)&&void 0!==t&&t.member_user_names?(0,E.jsx)(k.Z,{overlayClassName:de,title:(0,E.jsx)("div",{children:(0,E.jsx)("span",{dangerouslySetInnerHTML:{__html:null==e||null===(i=e.content)||void 0===i?void 0:i.member_user_names}})}),children:(0,E.jsx)("span",{className:ue,dangerouslySetInnerHTML:{__html:null==e||null===(s=e.content)||void 0===s?void 0:s.member_user_names}})}):(null==e?void 0:e.member_user_names)&&(0,E.jsx)(k.Z,{title:(0,E.jsx)("div",{children:(0,E.jsx)("span",{children:e.member_user_names})}),children:(0,E.jsx)("span",{className:ue,children:e.member_user_names})}),null!=e&&null!==(a=e.content)&&void 0!==a&&a.author_school_name?(0,E.jsx)(k.Z,{overlayClassName:de,title:(0,E.jsx)("div",{children:(0,E.jsx)("span",{dangerouslySetInnerHTML:{__html:null==e||null===(o=e.content)||void 0===o?void 0:o.author_school_name}})}),children:(0,E.jsx)("span",{className:ue,dangerouslySetInnerHTML:{__html:null==e||null===(r=e.content)||void 0===r?void 0:r.author_school_name}})}):(null==e?void 0:e.author_school_name)&&(0,E.jsx)(k.Z,{title:(0,E.jsx)("div",{children:(0,E.jsx)("span",{children:e.author_school_name})}),children:(0,E.jsx)("span",{className:ue,children:e.author_school_name})})]}),(0,E.jsxs)("div",{children:[(0,E.jsxs)("span",{className:"mr30",children:["章节 ",e.stage_count]}),(0,E.jsxs)("span",{className:"mr30",children:["实训 ",e.shixuns_count]}),(0,E.jsxs)("span",{children:["学习人数 ",e.myshixuns_count]})]})]})]})]},e.id)}))]})})}),(0,E.jsx)("div",{className:"tc mt20",children:(0,E.jsx)(T.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,current:C.page||1,showQuickJumper:!0,total:null==p?void 0:p.subjects_count,onChange:function(e){C.page=e,a({type:"classroomList/getCoursesLists",payload:u()({},C)})}})}),(0,E.jsx)(pe.Z,{visible:B,inPaper:!1,onOk:O,onCancel:M,renderData:D,modalType:"multiple",type:"subject"})]},"bottom")})),ke=t(19673),Ce=function(e){var n,t=e.styles,i=void 0===t?{}:t,s=e.params,a=e.setisshowmodal,o=e.user;return(0,E.jsxs)("section",{className:"tc animated fadeIn",style:u()(u()({},{color:"#999",margin:"200px auto"}),i),children:[(0,E.jsx)("img",{src:ke.z3}),(0,E.jsx)("p",{className:"mt20 font14",children:"该".concat(s.category?"分组":"课程","无课程实验,可以下方按钮或右上方“选用实验”按钮创建作业")}),(0,E.jsxs)("div",{style:{marginTop:"30px"},children:[(0,E.jsx)(L.ZP,{disabled:2===(null==o||null===(n=o.userInfo)||void 0===n?void 0:n.user_status),onClick:function(){a(!0)},type:"primary",style:{width:"128px",height:"40px",borderRadius:"4px",marginRight:"20px"},children:"选用实验"}),(0,E.jsx)(L.ZP,{onClick:function(){(0,I.xg)("https://www.educoder.net/forums/4909")},type:"primary",style:{width:"128px",height:"40px",borderRadius:"4px"},children:"新建作业指引"})]})]})},Se={flex_box_center:"flex_box_center___i0kQ7",flex_space_between:"flex_space_between___st8Nm",flex_box_vertical_center:"flex_box_vertical_center___cGman",flex_box_center_end:"flex_box_center_end___xCqb1",flex_box_column:"flex_box_column___90t8q",bg:"bg___yvvvB",containerDesc:"containerDesc___McNkA",tablestyle:"tablestyle____NWqR",listItem:"listItem___Kb3j3",info:"info___QEKlY",title:"title___IjCCo",titleLeft:"titleLeft___iZ9Qh",titleRight:"titleRight___QK1TN",moveCategory:"moveCategory___ydIP9",name:"name___CCaOX",categoryName:"categoryName___cyGX3",schedule:"schedule___Dx5uk",fnSign:"fnSign___oPdpV",spanSize:"spanSize___LVOA3",classromediv:"classromediv___LNulU",glow:"glow___KEPta",action:"action___WEeMi",btn:"btn___anrwi",btnSort:"btnSort___iBwPq",tips:"tips___ezxph",fixedBottom:"fixedBottom___RTnOi",left:"left___aDYtw",right:"right___txYei",acitons:"acitons___iwBUY",actionBtns:"actionBtns___wvnKM",cancel:"cancel___VgzVn",selectBtn:"selectBtn___mMh11",selectBtn1:"selectBtn1___DNQsU",infoIcon:"infoIcon___fxDKp",infoStuIcon:"infoStuIcon___eoBo6",flexBox:"flexBox____AlDk",iconH:"iconH___Hmjwy",iconV:"iconV___VhZ00",actionIcon:"actionIcon___MWxMa",dro:"dro___bzbDZ",progressInfo:"progressInfo___bQbcf",authorized:"authorized___ZUIgn"},Te=t(2595),Ne=t(22647),Le=t(93050),Ae=t(72582),Ze=t(2302),Pe=function(e){var n,t,i,s,a,r=e.v,c=e.k,d=(e.match,e.selectArrs),h=e.setSelectArrs,p=e.setSelectArrsAll,w=e.selectArrsAll,b=(e.classroomList,e.dispatch),_=e.selectshow,C=e.batchState,S=e.pageSize,T=e.page,L=e.manageAllGroup,Z=e.user,B=(0,x.useParams)(),M=(0,f.useState)([]),D=m()(M,2),G=D[0],O=D[1],R=(0,f.useState)(!1),H=m()(R,2),z=H[0],F=H[1],Y=(0,f.useState)(!1),V=m()(Y,2),W=V[0],K=V[1],U=(0,f.useState)(!0),J=m()(U,2),q=J[0],Q=J[1],X=(0,f.useRef)();function $(){return ee.apply(this,arguments)}function ee(){return(ee=l()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.ZP)("/api/homework_commons/".concat(r.homework_id,"/group_settings_statistics.json"),{method:"get",params:u()({},B)});case 2:n=e.sent,O(n.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}B.category=B.categoryId,B.id=B.coursesId,B.page=T,B.limit=S,(0,f.useEffect)((function(){var e;O([]),F(!1),new Date(null==r?void 0:r.student_passed_time).getTime()>new Date(null==r?void 0:r.end_time_s).getTime()&&null!=r&&null!==(e=r.status)&&void 0!==e&&e.includes("已截止")&&(null==r?void 0:r.challenge_count)-(null==r?void 0:r.finished_challenge_count)==0?(K(!1),Q(!1)):((null==r?void 0:r.challenge_count)-(null==r?void 0:r.finished_challenge_count)==0&&new Date(null==r?void 0:r.student_passed_time).getTime()<new Date(null==r?void 0:r.end_time_s).getTime()||(null==r?void 0:r.challenge_count)-(null==r?void 0:r.finished_challenge_count)==0&&new Date(null==r?void 0:r.student_passed_time).getTime()<new Date(null==r?void 0:r.late_time).getTime())&&(K(!0),Q(!1))}),[_]);var ne=[{title:"班级",dataIndex:"course_group_name",key:"course_group_name"},{title:"状态",dataIndex:"status",key:"status",width:80,filters:[{text:"未开始",value:"未开始"},{text:"提交中",value:"提交中"},{text:"补交中",value:"补交中"},{text:"已截止",value:"已截止"},{text:"未发布",value:"未发布"}],onFilter:function(e,n){return 0===n.status.indexOf(e)}},{title:"提交情况",dataIndex:"statistics",key:"statistics",width:80,render:function(e){var n,t;return"--"===e?e:(0,E.jsxs)("span",{children:[(0,E.jsx)("span",{children:null==e||null===(n=e.split("/"))||void 0===n?void 0:n[0]})," / ",(0,E.jsx)("span",{children:null==e||null===(t=e.split("/"))||void 0===t?void 0:t[1]})]})}},{title:"截止时间",dataIndex:"end_time",key:"end_time",sorter:!0,showSorterTooltip:!1,sortOrder:"end_time"===B.order_by?"desc"===B.sort_direction?"descend":"ascend":null},{title:"补交时间",dataIndex:"late_time",key:"late_time",sorter:!0,showSorterTooltip:!1,sortOrder:"late_time"===B.order_by?"desc"===B.sort_direction?"descend":"ascend":null},{title:"分班老师",dataIndex:"teachers",key:"teachers",width:150,ellipsis:{showTitle:!1},render:function(e){return"--"!==e&&e?(0,E.jsx)("span",{title:e,children:e}):"--"}}],te=function(e){var n;(0,me.tJ)(b,!0)&&(e.can_view_details?(0,I.xg)("/shixuns/".concat(e.shixun_identifier,"/challenges")):e.redo?A.Z.confirm({width:530,title:"提示",centered:!0,okText:"确定",cancelText:"再想想",content:(0,E.jsx)("div",{className:"tc font16",children:"您之前已经挑战过该实训,需要重新挑战"}),onOk:(n=l()(o()().mark((function n(){var t;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Ae.L8)({id:e.myshixun_identifier,url:e.url});case 2:(t=n.sent)&&(0,Ze.Z)({is_jupyter:!1,is_jupyter_lab:!1,shixunId:t.shixun_identifier,homework_common_id:e.homework_id,courseId:B.coursesId});case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})}):(0,Ze.Z)({is_jupyter:!1,is_jupyter_lab:!1,shixunId:e.shixun_identifier,homework_common_id:e.homework_id,courseId:B.coursesId}))};return(0,E.jsxs)("div",{className:Se.listItem,onClick:function(e){e.stopPropagation(),(!(0,P.GJ)()||!C||(0,P.GJ)()&&C&&X.current&&!X.current.contains(e.target))&&(0,I.xg)("/classrooms/".concat(B.coursesId,"/shixun_homework/").concat(r.homework_id,"/detail?tabs=0"))},children:[(0,P.GJ)()&&C&&(0,E.jsx)("span",{ref:X,children:(0,E.jsx)(N.Z,{style:{padding:"10px"},checked:d.includes(r.homework_id),value:r.homework_id,onClick:function(e){e.stopPropagation()},onChange:function(e){d.indexOf(r.homework_id);d.indexOf(r.homework_id)>-1?(h(d.filter((function(e){return e!==r.homework_id}))),p(w.filter((function(e){return e.homework_id!==r.homework_id})))):(p(w.concat(r)),h(d.concat(r.homework_id)))}})}),(0,E.jsxs)("div",{className:Se.info,children:[(0,E.jsxs)("div",{className:Se.title,children:[(0,E.jsxs)("div",{className:Se.titleLeft,style:(0,P.dE)()?{paddingRight:(null==r?void 0:r.challenge_count)-(null==r?void 0:r.finished_challenge_count)?60:140}:{},children:[(0,P.GJ)()&&(0,E.jsx)(Le.Z,{value:r.status,children:(0,E.jsx)(I.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:[r.status]})}),(0,P.dE)()&&(0,E.jsx)(I.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:r.status}),(0,E.jsx)("span",{className:Se.name,children:r.name}),!(null===(n=r.schools)||void 0===n||!n.length)&&(0,E.jsx)(k.Z,{title:"该课程实验面向指定单位开放",children:(0,E.jsx)("i",{className:"iconfont icon-zhidinggongkai1 ml10 mr10 c-orange"})}),(null==r?void 0:r.high_resources_consume)&&!(null!=r&&r.high_resources_consume_permission)&&(0,E.jsx)(ge.Z,{type:"shixun",style:{marginLeft:10}}),(null==r?void 0:r.high_resources_consume)&&(null==r?void 0:r.high_resources_consume_permission)&&(0,E.jsx)("span",{className:Se.authorized,children:"已授权"})]}),(0,E.jsxs)("div",{className:Se.titleRight,children:[(0,P.GJ)()&&0===(null==r?void 0:r.status.indexOf("未发布"))&&(0,E.jsx)(x.Link,{target:"_blank",to:"/",onClick:function(){var e=l()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.stopPropagation(),n.preventDefault(),2!==(null==Z||null===(t=Z.userInfo)||void 0===t?void 0:t.user_status)){e.next=5;break}return(0,me.Rd)(),e.abrupt("return");case 5:i=function(){b({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==r?void 0:r.homework_id],selectArrsAll:[r],params:B,type:2,manage_all_group:L}})},null==r||!r.high_resources_consume||null!=r&&r.high_resources_consume_permission?i():b({type:"classroomList/setActionTabs",payload:{key:"授权使用",id:B.coursesId,type:"shixun",type_id:r.homework_id,name:r.name,fn:function(){b({type:"classroomList/getClassroomTeacherShixunsList",payload:u()(u()({},B),{},{type:4})}),i()}}});case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:(0,E.jsxs)("aside",{className:Se.flexBox,children:[(0,E.jsx)("i",{className:"iconfont icon-yishezhifabushijian1"}),(0,E.jsx)("div",{children:"发布"})]})}),(0,P.dE)()&&(0,E.jsxs)("div",{className:Se.actionIcon,children:[W?(0,E.jsx)("i",{className:"iconfont icon-yiwancheng1"}):q?"":(0,E.jsx)("i",{className:"iconfont icon-jiezhihoutongguan"}),!(null!==(t=r.status)&&void 0!==t&&t.includes("已截止"))&&!(null!==(i=r.status)&&void 0!==i&&i.includes("导入"))&&(0,E.jsxs)("aside",{onClick:function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.stopPropagation(),te(r);case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),className:Se.flexBox,style:{marginRight:10},children:[(0,E.jsx)("i",{className:"iconfont icon-kaishixuexi font14"}),(0,E.jsx)("div",{children:"开始学习"})]}),((null===(s=r.status)||void 0===s?void 0:s.includes("已截止"))||(null===(a=r.status)||void 0===a?void 0:a.includes("导入")))&&(0,E.jsxs)("aside",{onClick:function(){var e=l()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=r.status)||void 0===t||!t.includes("导入")){e.next=2;break}return e.abrupt("return");case 2:n.stopPropagation(),n.preventDefault(),(0,I.xg)("/classrooms/".concat(B.coursesId,"/shixun_homework/").concat(r.homework_id,"/").concat(r.student_work_id,"/comment"));case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),className:Se.flexBox,style:{marginRight:10},children:[(0,E.jsx)("i",{className:"iconfont icon-chakanzuoye font14"}),(0,E.jsx)("div",{children:"查看作品"})]})]}),(0,P.GJ)()&&(0,E.jsx)(j.Z,{placement:"bottomCenter",overlayClassName:Se.dro,dropdownRender:function(){return(0,E.jsxs)(v.Z,{children:["导入"!==r.status&&(0,E.jsx)(v.Z.Item,{style:{textAlign:"center"},children:(0,E.jsx)("a",{onClick:function(){var e=l()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.stopPropagation(),n.preventDefault(),2!==(null==Z||null===(t=Z.userInfo)||void 0===t?void 0:t.user_status)){e.next=5;break}return(0,me.Rd)(),e.abrupt("return");case 5:i=function(){b({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==r?void 0:r.homework_id],selectArrsAll:[r],params:B,type:2,manage_all_group:L}})},null==r||!r.high_resources_consume||null!=r&&r.high_resources_consume_permission?i():b({type:"classroomList/setActionTabs",payload:{key:"授权使用",id:B.coursesId,type:"shixun",type_id:r.homework_id,name:r.name,fn:function(){b({type:"classroomList/getClassroomTeacherShixunsList",payload:u()(u()({},B),{},{type:4})}),i()}}});case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:"立即发布"})},1),"导入"!==r.status&&(0,E.jsx)(v.Z.Item,{style:{textAlign:"center"},children:(0,E.jsx)("a",{onClick:function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.stopPropagation(),n.preventDefault(),b({type:"classroomList/setActionTabs",payload:{key:"立即截止",selectArrs:[null==r?void 0:r.homework_id],selectArrsAll:[r],params:B,type:2}});case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:"立即截止"})},2),"导入"===r.status&&(0,E.jsx)(v.Z.Item,{style:{textAlign:"center"},children:(0,E.jsx)(x.Link,{target:"_blank",to:"/",onClick:function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.stopPropagation(),n.preventDefault(),b({type:"classroomList/setActionTabs",payload:{key:"补充成绩",name:null==r?void 0:r.name,id:null==r?void 0:r.homework_id,type:"practice"}});case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:"补充成绩"})},23),(0,E.jsx)(v.Z.Item,{style:{textAlign:"center"},children:(0,E.jsx)(x.Link,{target:"_blank",to:"/",onClick:function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.stopPropagation(),n.preventDefault(),b({type:"classroomList/setActionTabs",payload:{key:"删除",selectArrs:[null==r?void 0:r.homework_id],selectArrsAll:w,params:B,status:null==r?void 0:r.status}});case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:"立即删除"})},22),"导入"!==r.status&&(null==r?void 0:r.status.indexOf("未发布"))<0&&(0,E.jsx)(v.Z.Item,{style:{textAlign:"center"},children:(0,E.jsx)(x.Link,{target:"_blank",to:"/",onClick: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 n.stopPropagation(),n.preventDefault(),b({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"成绩计算中,请稍候..."}}),e.next=5,(0,Ne.Vs)({categoryId:r.homework_id});case 5:t=e.sent,b({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),0===(null==t?void 0:t.status)&&y.ZP.success(null==t?void 0:t.message);case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:"更新成绩"})},3),"导入"!==r.status&&(0,E.jsx)(v.Z.Item,{style:{textAlign:"center"},children:(0,E.jsx)(x.Link,{target:"_blank",to:"/",onClick:function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.stopPropagation(),n.preventDefault(),te(r);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:"进入实训"})},23),(0,E.jsx)(v.Z.Item,{style:{textAlign:"center"},children:(0,E.jsx)("a",{onClick:function(e){e.stopPropagation(),e.preventDefault(),b({type:"classroomList/setActionTabs",payload:{key:"重命名",selectArrs:r,params:B}})},children:"重新命名"})},5),"导入"!==r.status&&(0,E.jsx)(v.Z.Item,{style:{textAlign:"center"},children:(0,E.jsx)(x.Link,{target:"_blank",onClick:function(e){e.stopPropagation()},to:"/classrooms/".concat(B.coursesId,"/shixun_homework/").concat(r.homework_id,"/detail?tabs=3"),children:"高级设置"})},6)]})},children:(0,E.jsxs)("aside",{onClick:function(e){return e.stopPropagation()},className:Se.flexBox,style:{cursor:"default"},children:[(0,E.jsx)("i",{className:"iconfont icon-gengduo4"}),(0,E.jsx)("div",{children:"更多"})]})})]})]}),(0,P.GJ)()&&(0,E.jsxs)("p",{className:Se.infoIcon,children:[(0,E.jsx)("span",{className:"c-grey-333 mr20",children:r.author}),["未开始","进行中","已截止","提交中","补交中"].includes(r.status)&&!!r.uncommit_count&&(0,E.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,E.jsx)("span",{className:"mr5",children:"未做题"}),r.uncommit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束"].includes(r.status)&&!!r.commit_count&&(0,E.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,E.jsx)("span",{className:"mr5",children:"已做题"}),r.commit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束"].includes(r.status)&&!!r.compelete_count&&(0,E.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,E.jsx)("span",{className:"mr5",children:"已完成"}),r.compelete_count,"人"]}),["未开始"].includes(r.status)&&(0,E.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,E.jsx)("span",{className:"mr5",children:"开始时间"}),r.publish_time]}),["未开始","进行中","已截止","提交中","补交中"].includes(r.status)&&(0,E.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,E.jsx)("span",{className:"mr5",children:"截止时间"}),r.end_time]}),["已结束"].includes(r.status)&&(0,E.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,E.jsx)("span",{className:"mr5",children:"结束时间"}),r.status_time]}),!(null==r||!r.late_time)&&"--"!==(null==r?void 0:r.late_time)&&(0,E.jsxs)("span",{className:"c-grey-999",children:[(0,E.jsx)("span",{className:"mr5",children:"补交截止时间"}),null==r?void 0:r.late_time]}),["未开始","进行中","已截止","提交中","补交中","已结束"].includes(r.status)&&(0,E.jsxs)("span",{className:Se.iconV,onClick:function(){var e=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.stopPropagation(),n.preventDefault(),z||$(),F(!z);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,E.jsx)("i",{className:"iconfont icon-".concat(z?"shouqi":"xiala2")})," "]})]}),(0,P.dE)()&&(0,E.jsxs)("span",{className:Se.infoStuIcon,children:[(0,E.jsx)("span",{className:"c-grey-333",children:r.author}),(0,E.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,E.jsx)("i",{className:"iconfont icon-wanchengjindu font12 mr5"}),(0,E.jsxs)("span",{children:[(0,E.jsx)("span",{className:"c-light-primary",children:null==r?void 0:r.finished_challenge_count}),"/",null==r?void 0:r.challenge_count]})]}),r.status.includes("已截止")&&!(null==r||!r.status_time)&&(0,E.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,E.jsx)("i",{className:"iconfont icon-shengyushijian font12 mr5"})," ",null==r?void 0:r.status_time]}),(0,E.jsxs)("span",{className:"ml20 c-grey-999",children:[(0,E.jsx)("i",{className:"iconfont icon-shijian1 font12 mr5"}),null==r?void 0:r.publish_time," 至 ",null==r?void 0:r.end_time," "]}),!(null==r||!r.late_time)&&"--"!==(null==r?void 0:r.late_time)&&(0,E.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,E.jsx)("span",{className:"mr5",children:"补交截止时间:"}),null==r?void 0:r.late_time]})]}),(0,P.GJ)()&&!r.status.includes("未发布")&&z&&G.length>5&&(0,E.jsx)(Te.Z,{rowKey:"shixun_identifier",scroll:{y:240},onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,n){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:G,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,n,t){t.field&&(B.order_by=t.field),t.order||(B.sort_direction="asc"),"ascend"===t.order&&(B.sort_direction="asc"),"descend"===t.order&&(B.sort_direction="desc"),t.order||(B.sort_direction="asc"),$()},columns:ne}),(0,P.GJ)()&&!r.status.includes("未发布")&&z&&G.length<6&&G.length>0&&(0,E.jsx)(Te.Z,{rowKey:"shixun_identifier",onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,n){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:G,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,n,t){t.field&&(B.order_by=t.field),t.order||(B.sort_direction="asc"),"ascend"===t.order&&(B.sort_direction="asc"),"descend"===t.order&&(B.sort_direction="desc"),t.order||(B.sort_direction="asc"),$()},columns:ne})]})]},c)},Be=t(11493),Ie=t(90321),Me=t(58111),Ee=t(57809),De=t(78550),Ge=t(33656),Oe=t.n(Ge),Re=t(33215),He=t(42315),ze=["classroomList","dispatch","user","getData"];Y().extend(Oe());var Fe=function(e){var n,t,i,s,a=e.data,o=e.value,r=e.onChange,l=(0,f.useState)({leftSearch:"",rigthSearch:""}),c=m()(l,2),d=c[0],h=c[1],p=(0,f.useState)([]),g=m()(p,2),x=g[0],v=g[1];return(0,f.useEffect)((function(){v((null==o?void 0:o.length)>0?null==a?void 0:a.filter((function(e){return null==o?void 0:o.includes(null==e?void 0:e.id)})):[])}),[o]),(0,E.jsxs)("div",{style:{display:"flex",flexWrap:"nowrap",gap:"20px",height:"400px"},children:[(0,E.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,E.jsx)(N.Z,{indeterminate:(null==x?void 0:x.length)>0&&(null==x?void 0:x.length)<(null==a?void 0:a.length),checked:(null==x?void 0:x.length)==(null==a?void 0:a.length),onChange:function(e){r(e.target.checked?null==a?void 0:a.map((function(e){return null==e?void 0:e.id})):[])},children:"全选"}),(0,E.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,E.jsx)(w.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:d.leftSearch,onChange:function(e){h(u()(u()({},d),{},{leftSearch:e.target.value}))}}),(0,E.jsx)("div",{className:"mt20 ml20 mb20",style:{overflow:"auto"},children:0!==(null===(n=d.leftSearch?null==a?void 0:a.filter((function(e){var n;return null==e||null===(n=e.name)||void 0===n?void 0:n.includes(d.leftSearch)})):a)||void 0===n?void 0:n.length)?(0,E.jsx)(N.Z.Group,{value:o,onChange:function(e){r(e)},children:(0,E.jsx)(C.Z,{direction:"vertical",children:null===(t=d.leftSearch?null==a?void 0:a.filter((function(e){var n;return null==e||null===(n=e.name)||void 0===n?void 0:n.includes(d.leftSearch)})):a)||void 0===t?void 0:t.map((function(e,n){return(0,E.jsx)(N.Z,{value:e.id,children:null==e?void 0:e.name},n)}))})}):(0,E.jsx)(J.Z,{styles:{margin:"0 auto"}})})]})]}),(0,E.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,E.jsxs)("div",{children:["已选择",(null==x?void 0:x.length)||0,"个分班"]}),(0,E.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,E.jsx)(w.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:d.rigthSearch,onChange:function(e){h(u()(u()({},d),{},{rigthSearch:e.target.value}))}}),(0,E.jsx)("div",{className:"mt20 ml20 mb20 pr20",style:{display:"flex",flexDirection:"column",gap:"10px",overflow:"auto"},children:0!==(null===(i=d.rigthSearch?null==x?void 0:x.filter((function(e){var n;return null==e||null===(n=e.name)||void 0===n?void 0:n.includes(d.rigthSearch)})):x)||void 0===i?void 0:i.length)?null===(s=d.rigthSearch?null==x?void 0:x.filter((function(e){var n;return null==e||null===(n=e.name)||void 0===n?void 0:n.includes(d.rigthSearch)})):x)||void 0===s?void 0:s.map((function(e,n){return(0,E.jsxs)(b.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,E.jsx)(_.Z,{children:null==e?void 0:e.name}),(0,E.jsx)(_.Z,{children:(0,E.jsx)("i",{className:"iconfont icon-piliangshanchu2 font16 current",style:{color:"#3061D0"},onClick:function(){r(null==o?void 0:o.filter((function(n){return n!==(null==e?void 0:e.id)})))}})})]},n)})):(0,E.jsx)(J.Z,{styles:{margin:"0 auto"}})})]})]})]})},Ye=(0,x.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var n,t,i,s,a,r,c=e.classroomList,d=e.dispatch,h=(e.user,e.getData),g=(p()(e,ze),(0,x.useParams)()),v=z.Z.useForm(),j=m()(v,1)[0],k=z.Z.useWatch("penalty_type",j),C="批量补交"===(null==c||null===(n=c.actionTabs)||void 0===n?void 0:n.key),S=(0,He.U)(Re.c_,u()(u()({},g),null==c||null===(t=c.actionTabs)||void 0===t?void 0:t.params)),T=m()(S,4),N=T[1],L=T[2],Z=T[3],P=(0,He.U)(Re.nP,{course_id:null==g?void 0:g.coursesId,homework_ids:null==c||null===(i=c.actionTabs)||void 0===i?void 0:i.selectArrs}),B=m()(P,4),M=B[2],D=B[3],G=(0,He.U)(Re.sm,{course_id:null==g?void 0:g.coursesId,homework_ids:null==c||null===(s=c.actionTabs)||void 0===s?void 0:s.selectArrs}),O=m()(G,3),R=O[1],H=O[2],F=function(){var e=l()(o()().mark((function e(){var n=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.length>0&&void 0!==n[0]?n[0]:{},M({}),e.next=4,L({page:1,limit:2e4,homework_id:1===c.actionTabs.type?"":c.actionTabs.selectArrs[0]});case 4:e.sent;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,f.useEffect)((function(){C&&F()}),[C]),(0,E.jsxs)(A.Z,{centered:!0,title:null==c||null===(a=c.actionTabs)||void 0===a?void 0:a.key,width:800,open:C,cancelText:"暂不补交",okText:"开启补交",onCancel:function(){d({type:"classroomList/setActionTabs",payload:{}})},destroyOnClose:!0,confirmLoading:R,onOk:l()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:j.submit();case 1:case"end":return e.stop()}}),e)}))),children:[(0,E.jsx)("div",{className:"p10 pl20 pr20 c-orange-ff7 mb20",style:{background:"#F6F7F9"},children:"规则说明:补交截止时间必须晚于作业截止时间;当班级阶段进入“补交中”则不可变更作业截止时间、不可关闭补交;当作业状态为未发布或者作业已开启统一补交时,新批量补交规则不生效。"}),(0,E.jsxs)(z.Z,{form:j,colon:!1,size:"large",initialValues:{unified_late:!1,penalty_type:2,late_penalty:20},onFinish:function(){var e=l()(o()().mark((function e(n){var t,i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,H((null==Z||null===(t=Z.course_groups)||void 0===t?void 0:t.length)>0?{unified_late:(null==Z||null===(i=Z.course_groups)||void 0===i?void 0:i.length)<=0,allow_late_settings:[u()({},n)]}:u()({unified_late:(null==Z||null===(s=Z.course_groups)||void 0===s?void 0:s.length)<=0},n));case 2:0==(null==(a=e.sent)?void 0:a.status)&&(y.ZP.success("补交设置成功"),d({type:"classroomList/setActionTabs",payload:{}}),h&&h());case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,E.jsxs)(b.Z,{wrap:!1,gutter:20,children:[(0,E.jsx)(_.Z,{flex:1,children:(0,E.jsx)(z.Z.Item,{label:"补交扣分",name:"late_penalty",rules:[{required:!0,validator:function(e,n,t){return 2===k&&n>100?Promise.reject((0,E.jsx)("span",{style:{marginLeft:100},children:"请重新输入,范围0-100"})):Promise.resolve()}},{required:!0,message:(0,E.jsx)("span",{style:{marginLeft:100},children:"请输入补交扣分"})}],children:(0,E.jsx)(w.Z,{placeholder:"请输入补交扣分",min:0,type:"number",suffix:1==k?"分":"%",max:1===k?Number.MAX_SAFE_INTEGER:100,addonBefore:(0,E.jsx)(z.Z.Item,{name:"penalty_type",noStyle:!0,normalize:function(e){return j.setFieldsValue({late_penalty:2==e?20:5}),e},children:(0,E.jsx)(Ee.default,{style:{width:100},options:[{value:2,label:"百分比"},{value:1,label:"分值"}]})})})})}),(0,E.jsx)(_.Z,{flex:"390px",children:(0,E.jsx)(z.Z.Item,{label:"补交截止时间",name:"late_time",rules:[{required:!0,validator:function(e,n,t){return n&&Y()(n).startOf("minute")<=Y()().startOf("minute")?Promise.reject("作业补交截止时间必须晚于此刻"):n&&Y()(n).startOf("minute")<=Y()(null==D?void 0:D.max_late_time).startOf("minute")?(y.ZP.warning("补交截止时间不能小于选中作业中最晚作业截止时间:".concat(null==D?void 0:D.max_late_time)),Promise.reject("")):Promise.resolve()}},{required:!0,message:"请先设置补交截止时间"}],children:(0,E.jsx)(De.default,{placeholder:"请选择截止时间",style:{width:"100%"},disabledDate:function(e){return(0,I.BO)(e,{startTime:null==D?void 0:D.max_late_time})},disabledTime:function(e){return(0,I.hv)(e,{compared:null==D?void 0:D.max_late_time})},format:"YYYY-MM-DD HH:mm",showTime:{showSecond:!1,defaultValue:Y()("00:00:00","HH:mm:ss")}})})})]}),(null==Z||null===(r=Z.course_groups)||void 0===r?void 0:r.length)>0&&(0,E.jsx)(K.Z,{spinning:N,children:(0,E.jsx)(z.Z.Item,{name:"group_id",rules:[{required:!0,message:"请先选择班级"}],children:(0,E.jsx)(Fe,{data:(null==Z?void 0:Z.course_groups)||[],onChange:function(e){M({group_ids:e})}})})})]})]})})),Ve=["classroomList","globalSetting","shixunHomeworks","user","loading","dispatch","match"],We=(0,x.connect)((function(e){var n=e.classroomList,t=e.loading,i=e.globalSetting,s=e.shixunHomeworks,a=e.user;return{classroomList:n,globalSetting:i,loading:t.effects,shixunHomeworks:s,user:a}}))((function(e){var n,t,i,a,r,c,d,h,M=e.classroomList,D=(e.globalSetting,e.shixunHomeworks,e.user),z=e.loading,F=e.dispatch,Y=e.match,W=(p()(e,Ve),(0,x.useLocation)()),K=(0,x.useParams)(),U=(0,x.useSearchParams)(),q=m()(U,1)[0],Q=K.categoryId,X=(0,f.useState)([]),$=m()(X,2),ee=$[0],ne=$[1],te=(0,f.useState)([]),ie=m()(te,2),se=ie[0],ae=ie[1],oe=M.detailShixunsList,re=M.detailLeftMenus,le=M.detailTopBanner,ce=M.taskList,ue=(0,f.useState)(""),de=m()(ue,2),he=de[0],pe=de[1],fe=(0,f.useState)(!1),ge=m()(fe,2),xe=(ge[0],ge[1]),ye=(0,f.useState)({limit:20,status:Number(q.get("tabs"))?String(parseInt(q.get("tabs"))):"0"}),_e=m()(ye,2),ke=_e[0],Te=_e[1],Ne=(0,f.useState)("默认排序"),Le=m()(Ne,2),Ae=Le[0],Ze=Le[1],Ee=(0,f.useState)(!1),De=m()(Ee,2),Ge=De[0],Oe=De[1],Re=(0,f.useState)(!1),He=m()(Re,2),ze=(He[0],He[1]),Fe=(0,f.useState)("fixed"),We=m()(Fe,2),Ke=We[0],Ue=We[1],Je=(0,f.useState)(document.getElementById("footer")),qe=m()(Je,1)[0],Qe=(0,f.useState)(1),Xe=m()(Qe,2),$e=Xe[0],en=Xe[1],nn=(0,f.useState)(!1),tn=m()(nn,2),sn=tn[0];tn[1];ke.id=K.coursesId,ke.type=4,K.categoryId?ke.category=K.categoryId:delete ke.category,(0,f.useEffect)((function(){"清除选择数据"===M.actionTabs.key&&(ne([]),ae([])),"目录重命名成功"===M.actionTabs.key&&rn()}),[M.actionTabs.key]),(0,f.useEffect)((function(){"0"===q.get("tabs")&&(ke.status="0",ke.page=1,Te(u()({},ke)))}),[q.get("tabs")]),(0,f.useEffect)((function(){var e,n;if(null!=D&&null!==(e=D.userInfo)&&void 0!==e&&e.login){var t,i=I.cX.getItem("".concat(null==D||null===(t=D.userInfo)||void 0===t?void 0:t.login).concat((0,P.GJ)()?"Teacher":"Student"),"ShixunHomeworks");i&&(ke.sort_by=null==i?void 0:i.type,ke.sort_direction=null==i?void 0:i.direction,Ze(null==i?void 0:i.name)),rn(),(0,P.Rm)()&&on()}else null!=D&&null!==(n=D.userInfo)&&void 0!==n&&n.username&&rn()}),[null==D||null===(n=D.userInfo)||void 0===n?void 0:n.login,null==W?void 0:W.pathname]),(0,f.useEffect)((function(){window.addEventListener("scroll",an)}),[]);var an=function(){document.scrollingElement.scrollTop+window.innerHeight+(null==qe?void 0:qe.clientHeight)+150>document.body.clientHeight?Ue("absolute"):Ue("fixed")},on=function(){F({type:"classroomList/getAssistantPermissions",payload:{course_id:ke.id}})},rn=function(){ne([]),ae([]),Te(u()({},ke)),(0,P.GJ)()?F({type:"classroomList/getClassroomTeacherShixunsList",payload:u()(u()({},ke),{},{type:4})}):F({type:"classroomList/getClassroomShixunsList",payload:u()(u()({},ke),{},{order:ke.status})})};function ln(){return(ln=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F({type:"classroomList/updateTaskPosition",payload:{category_id:Q,courseId:ke.id,task_ids:n,container_type:"shixun_homework"}});case 2:rn();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var cn=(0,f.useMemo)((function(){var e=[];return ce.length>0&&(e=ce.map((function(e){return{user_name:e.user_name,task_name:e.task_name,task_id:e.task_id,category:e.category,status:e.status}}))),e}),[ce]),un=(0,P.GJ)()?[{name:"默认排序",type:"position",direction:"desc"},{name:"创建时间升序",type:"created_at",direction:"asc"},{name:"创建时间降序",type:"created_at",direction:"desc"},{name:"更新时间升序",type:"updated_at",direction:"asc"},{name:"更新时间降序",type:"updated_at",direction:"desc"},{name:"实验名称升序",type:"name_pinyin",direction:"asc"},{name:"实验名称降序",type:"name_pinyin",direction:"desc"}]:[{name:"默认排序",type:null,direction:null},{name:"按发布时间升序",type:"created_at",direction:"asc"},{name:"按发布时间降序",type:"created_at",direction:"desc"},{name:"按截止时间升序",type:"updated_at",direction:"asc"},{name:"按截止时间降序",type:"updated_at",direction:"desc"},{name:"实验名称升序",type:"name_pinyin",direction:"asc"},{name:"实验名称降序",type:"name_pinyin",direction:"desc"}];re.course_modules&&(h=M.detailLeftMenus.course_modules.filter((function(e){return"shixun_homework"===e.type}))[0]);var dn=(0,E.jsx)("div",{className:Se.moveCategory,onMouseLeave:function(e){return xe(!1)},children:(0,E.jsxs)(v.Z,{onClick:function(){var e=l()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.item,t=n.key,n.keyPath,n.domEvent,""!=ee){e.next=4;break}return y.ZP.error("请选择你要操作的任务"),e.abrupt("return",null);case 4:return e.next=6,(0,g.ZP)("/api/courses/".concat(ke.id,"/homework_commons/move_to_category.json"),{method:"post",body:{homework_ids:ee,new_category_id:t}});case 6:0===e.sent.status&&(y.ZP.success("操作成功"),rn(),ze(!1),F({type:"classroomList/getClassroomLeftMenus",payload:{id:K.coursesId}}));case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),style:{maxHeight:300,width:240,overflow:"auto"},children:[(0,E.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",children:(0,E.jsx)(w.Z,{onChange:function(e){pe(e.target.value)}})}),h&&h.second_category.filter((function(e){return"未分配目录"!==e.category_name})).map((function(e,n){var t;if(!(""!==he&&e.category_name.indexOf(he)<0))return(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(v.Z.Item,{className:"multi-llipsis1e",children:e.category_name},e.category_id),null==e||null===(t=e.third_category)||void 0===t?void 0:t.map((function(e){return(0,E.jsx)(v.Z.Item,{style:{marginLeft:20},className:"multi-llipsis1e",children:e.category_name},e.category_id)}))]})})),(0,E.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:function(e){e.preventDefault(),F({type:"classroomList/setActionTabs",payload:{key:"添加目录",params:ke,selectArrs:{category_id:null==oe?void 0:oe.main_category_id,type:"shixun_homework"}}})},children:"新建子目录..."})]})}),mn=null===(t=[{key:"1",label:"批量发布",icon:(0,E.jsx)("i",{className:"iconfont icon-fabu5"}),isShow:!0},{key:"2",label:"批量截止",icon:(0,E.jsx)("i",{className:"iconfont icon-piliangjiezhi2"}),isShow:!0},{key:"5",label:"批量补交",icon:(0,E.jsx)("i",{className:"iconfont icon-buka"}),isShow:!0},{key:"3",label:"批量删除",icon:(0,E.jsx)("i",{className:"iconfont icon-piliangshanchu2"}),isShow:(0,P.GJ)()||(0,P.Rm)()},{key:"4",label:"设为公开",icon:(0,E.jsx)("i",{className:"iconfont icon-sheweigongkai2"}),isShow:le.is_public}].filter((function(e){return null==e?void 0:e.isShow})))||void 0===t?void 0:t.map((function(e){return delete e.isShow,e})),hn="默认排序"===Ae,pn=(0,f.useMemo)((function(){var e=!(0,P.GJ)()&&!(0,P.Jd)(),n=null==le?void 0:le.excellent;return e&&n}),[D,M]),fn=(0,f.useMemo)((function(){return(null==oe?void 0:oe.min_finished_game)>0}),[M]),gn=(0,f.useMemo)((function(){var e=(null==oe?void 0:oe.min_finished_game)-(null==oe?void 0:oe.finished_challenge_count);return e>0?e:0}),[M]);return(0,E.jsxs)("section",{children:[(0,E.jsx)("aside",{className:Se.bg,children:(0,E.jsxs)(b.Z,{align:"middle",children:[(0,E.jsx)(_.Z,{flex:"1",children:!!oe.main_category_id&&(0,E.jsxs)(v.Z,{mode:"horizontal",onSelect:function(e){var n=e.key;ke.status=n,ke.page=1,x.history.replace("".concat(W.pathname,"?tabs=").concat(n)),rn()},selectedKeys:[ke.status],children:[!(0,P.GJ)()&&[{name:"全部",id:0},{name:"提交中",id:1},{name:"补交中",id:2},{name:"已截止",id:5}].map((function(e,n){return(0,E.jsx)(v.Z.Item,{children:e.name},null==e?void 0:e.id)})),(0,P.GJ)()&&[{name:"全部",id:0},{name:"未发布",id:1},{name:"未开始",id:4},{name:"进行中",id:2},{name:"已截止",id:3}].map((function(e,n){return(0,E.jsxs)(v.Z.Item,{children:[(0,E.jsx)("span",{className:"c-grey-666 mr20",children:e.name}),0===n&&(0,P.GJ)()&&(0,E.jsx)("span",{className:"c-grey-999",children:null==oe?void 0:oe.all_count}),1===n&&(0,P.GJ)()&&(0,E.jsx)("span",{className:"c-grey-999",children:null==oe?void 0:oe.unpublished_count}),2===n&&(0,P.GJ)()&&(0,E.jsx)("span",{className:"c-grey-999",children:null==oe?void 0:oe.not_start_count}),3===n&&(0,P.GJ)()&&(0,E.jsx)("span",{className:"c-grey-999",children:null==oe?void 0:oe.in_progress_count}),4===n&&(0,P.GJ)()&&(0,E.jsx)("span",{className:"c-grey-999",children:null==oe?void 0:oe.overed_count})]},null==e?void 0:e.id)}))]})}),(0,E.jsx)(_.Z,{className:"mr20 gutter-row",children:(0,E.jsx)("div",{className:Se.containerTitle,children:(0,P.GJ)()&&"未分配目录"!==(0,I.Oo)(null==re?void 0:re.course_modules,Q)&&(0,E.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:6},children:[(0,E.jsx)(j.Z,{className:"ml10",placement:"bottom",arrow:!0,dropdownRender:function(){return(0,E.jsxs)(v.Z,{children:[(0,E.jsx)(v.Z.Item,{onClick:function(){var e;!(0,P.Rm)()||null!==(e=M.AssistantObject.practice)&&void 0!==e&&e.can_download?F({type:"classroomList/setActionTabs",payload:{key:"导出成绩",type:null==oe?void 0:oe.main_category_name,exportType:"practice",category_id:ke.category}}):y.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")},children:"学生成绩"},1),(0,E.jsx)(v.Z.Item,{onClick:function(){var e;!(0,P.Rm)()||null!==(e=M.AssistantObject.practice)&&void 0!==e&&e.can_download?x.history.push("/classrooms/".concat(null==K?void 0:K.coursesId,"/exportlist/shixun_work_list,shixun_report")):y.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")},children:"历史导出"},3)]})},children:(0,E.jsx)("span",{style:{color:"#666666",cursor:"pointer"},children:(0,E.jsx)("i",{className:"iconfont icon-xiazai6"})})}),(0,E.jsx)("span",{className:"c-blue font16 ml20 current",style:{marginTop:2},onClick:function(e){F({type:"classroomList/setActionTabs",payload:{key:K.categoryId?"目录重命名":"添加目录",params:ke,selectArrs:{category_name:null==oe?void 0:oe.category_name,category_id:(null==oe?void 0:oe.category_id)||(null==oe?void 0:oe.main_category_id),type:"shixun_homework"},cb:function(){rn()}}})},children:(0,E.jsx)(k.Z,{title:K.categoryId?"目录重命名":"新建子目录",children:(0,E.jsx)("span",{className:K.categoryId?"".concat(Se.iconH," iconfont icon-zhongmingmingmulu"):"".concat(Se.iconH," iconfont icon-xinjianmulu1")})})}),(0,E.jsx)(j.Z,{className:"ml10",disabled:2===(null==D||null===(i=D.userInfo)||void 0===i?void 0:i.user_status),dropdownRender:function(){return(0,E.jsxs)(v.Z,{children:[(0,E.jsx)(v.Z.Item,{onClick:function(){var e;!(0,P.Rm)()||null!==(e=M.AssistantObject)&&void 0!==e&&null!==(e=e.practice)&&void 0!==e&&e.can_create?F({type:"classroomList/setActionTabs",payload:{key:"选用实践项目",params:ke}}):y.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")},children:"从实践项目添加"},1),(0,E.jsx)(v.Z.Item,{onClick:function(){var e;!(0,P.Rm)()||null!==(e=M.AssistantObject)&&void 0!==e&&null!==(e=e.practice)&&void 0!==e&&e.can_create?F({type:"classroomList/setActionTabs",payload:{key:"选用实践课程",params:ke}}):y.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")},children:"从实践课程添加"},2),(0,E.jsx)(v.Z.Item,{onClick:function(){var e;!(0,P.Rm)()||null!==(e=M.AssistantObject)&&void 0!==e&&null!==(e=e.practice)&&void 0!==e&&e.can_create?F({type:"classroomList/setActionTabs",payload:{key:"导入外部成绩",type:"practice"}}):y.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")},children:"导入外部成绩"},3)]})},children:(0,E.jsxs)("span",{className:2===(null==D||null===(a=D.userInfo)||void 0===a?void 0:a.user_status)?Se.selectBtn1:Se.selectBtn,children:[(0,E.jsx)("span",{children:(0,E.jsx)("i",{className:"iconfont icon-tianjiadaohang"})}),(0,E.jsx)(k.Z,{title:2===(null==D||null===(r=D.userInfo)||void 0===r?void 0:r.user_status)&&"教学课堂试用期已结束,平台已暂停提供课堂实验创建功能",children:(0,E.jsx)("span",{children:"选用实验"})})]})})]})})})]})}),(0,E.jsxs)("div",{className:Se.action,children:[(0,E.jsx)("div",{children:(0,E.jsx)(j.Z,{dropdownRender:function(){return(0,E.jsx)(v.Z,{selectedKeys:[Ae],children:null==un?void 0:un.map((function(e,n){return(0,E.jsx)(v.Z.Item,{onClick:function(){var n;ke.sort_by=e.type,ke.sort_direction=e.direction,ke.page=1,Ze(e.name),I.cX.setItem("".concat(null==D||null===(n=D.userInfo)||void 0===n?void 0:n.login).concat((0,P.GJ)()?"Teacher":"Student"),e,"ShixunHomeworks"),(0,P.GJ)()?F({type:"classroomList/getClassroomTeacherShixunsList",payload:u()(u()({},ke),{},{type:4})}):F({type:"classroomList/getClassroomShixunsList",payload:u()({},ke)})},children:e.name},e.name)}))})},children:(0,E.jsxs)("span",{className:"".concat(Se.btn," ").concat(hn?Se.btnSort:""),onMouseEnter:function(e){return xe(!1)},children:[(0,E.jsx)("i",{className:"iconfont icon-paixu font14 mr5"}),Ae]})})}),hn&&(0,E.jsx)(k.Z,{title:"优先按照调整排序结果展示,未设置排序时,按照".concat((0,P.GJ)()?"创建时间降序":5==ke.status?"截止时间降序":"截止时间升序","排列"),children:(0,E.jsx)("span",{className:Se.tips,children:(0,E.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2"})})}),(0,E.jsx)(w.Z.Search,{allowClear:!0,placeholder:"请输入实验名称",onSearch:function(e){ke.search=e.trim(),ke.page=1,rn()},style:{width:220,marginLeft:"auto"}})]}),pn&&(0,E.jsxs)(b.Z,{justify:"space-between",className:Se.progressInfo,children:[(0,E.jsx)(_.Z,{children:(0,E.jsxs)(C.Z,{size:"middle",children:[(0,E.jsxs)("span",{children:["实训作业进度:",null==oe?void 0:oe.finished_task_count,"/",null==oe?void 0:oe.shixun_total_count]}),(0,E.jsxs)("span",{children:["任务关卡进度:",null==oe?void 0:oe.finished_challenge_count,"/",null==oe?void 0:oe.challenge_count]})]})}),fn&&(0,E.jsxs)(_.Z,{children:["通过",null==oe?void 0:oe.min_finished_game,"关获得满分,距离MOOC实训作业满分还差",gn,"关"]})]}),(0,E.jsxs)("aside",{className:"minH500 skt-loading relative pb40 mb30",children:[(0,E.jsxs)(S.Z,{loading:z[(0,P.GJ)()?"classroomList/getClassroomTeacherShixunsList":"classroomList/getClassroomShixunsList"],active:!0,paragraph:{rows:5},className:"mt30",children:[0===(null==oe?void 0:oe.all_count)&&(0,P.GJ)()?(0,E.jsx)(Ce,{params:ke,user:D,setisshowmodal:Oe,dispatch:F}):0===(null==oe?void 0:oe.task_count)&&(0,E.jsx)(J.Z,{}),(0,E.jsxs)("aside",{className:"animated fadeIn",children:[oe.homeworks&&oe.homeworks.map((function(e,n){return(0,E.jsx)(Pe,{batchState:!0,v:e,k:n,match:Y,selectArrs:ee,setSelectArrs:ne,setSelectArrsAll:ae,selectArrsAll:se,classroomList:M,dispatch:F,params:ke,user:D,page:K.page||1,pageSize:ke.limit||20,selectshow:sn,manageAllGroup:oe.manage_all_group},e.homework_id)})),oe.query_total_count>0&&(0,E.jsx)("aside",{className:"tc mb50 mt30",children:(0,E.jsx)(T.Z,{showSizeChanger:!0,current:ke.page||1,pageSize:ke.limit||20,onChange:function(e,n){ke.page=e,ke.limit=n,rn()},total:oe.query_total_count})})]})]}),(0,E.jsxs)("div",{className:Se.fixedBottom,style:{bottom:ee.length?0:-60,position:ee.length?Ke:"fixed",left:"fixed"===Ke?"50%":"317px"},children:[(0,E.jsx)("div",{className:Se.left}),(0,E.jsx)("div",{className:Se.right,children:(0,P.GJ)()&&(null==oe?void 0:oe.all_count)>0&&(0,E.jsxs)("aside",{className:[Se.acitons].join(" "),children:[(0,E.jsx)("div",{style:{width:130},children:(0,P.GJ)()&&(0,E.jsx)(N.Z,{checked:(null===(c=oe.homeworks)||void 0===c?void 0:c.length)===(null==ee?void 0:ee.length),onChange:function(e){e.target.checked?(ne(oe.homeworks.map((function(e){return e.homework_id}))),ae(s()(oe.homeworks))):(ne([]),ae([]))},children:(0,E.jsxs)("span",{className:"fo",children:["全选本页",(0,E.jsxs)("span",{style:{marginLeft:5},children:["(",ee.length,")"]})," "]})})}),(0,E.jsxs)("div",{style:{flex:1},children:[" ",(0,E.jsxs)(b.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,E.jsx)(_.Z,{flex:1,children:(0,E.jsxs)(b.Z,{wrap:!1,align:"middle",gutter:8,children:[(0,E.jsx)(_.Z,{children:(0,E.jsx)(j.Z,{placement:"top",menu:{items:mn,onClick:function(e){var n,t,i,s=e.key;"1"!==s&&"2"!==s||!(0,P.Rm)()||null!==(n=M.AssistantObject)&&void 0!==n&&null!==(n=n.practice)&&void 0!==n&&n.can_publish?2!==(null==D||null===(t=D.userInfo)||void 0===t?void 0:t.user_status)||"1"!==s?""!=ee?F({type:"classroomList/setActionTabs",payload:{key:"1"===s?"立即发布":"2"===s?"立即截止":"3"===s?"删除":"5"===s?"批量补交":null===(i=mn[Number(s)-1])||void 0===i?void 0:i.label,selectArrs:ee,selectArrsAll:se,type:"1"===s||"2"===s?1:"",params:ke}}):y.ZP.error("请选择你要操作的任务"):(0,me.Rd)():y.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")}},children:(0,E.jsx)(L.ZP,{type:"primary",icon:(0,E.jsx)("i",{className:"iconfont icon-piliangcaozuo3"}),children:"批量操作"})})}),(0,E.jsx)(_.Z,{children:(0,E.jsx)(L.ZP,{type:"primary",icon:(0,E.jsx)("i",{className:"iconfont icon-tiaozhengpaixu2"}),onClick:function(){var e={courseId:ke.id,container_type:"shixun_homework"};Q&&(e.category_id=Q),F({type:"classroomList/getAllTaskList",payload:e}),F({type:"classroomList/setActionTabs",payload:{key:"调整排序"}})},children:"调整排序"})}),(0,E.jsx)(_.Z,{children:(0,E.jsx)(j.Z,{placement:"topLeft",dropdownRender:function(){return dn},getPopupContainer:function(e){return null==e?void 0:e.parentNode},children:(0,E.jsxs)(L.ZP,{type:"primary",icon:(0,E.jsx)("i",{className:"iconfont icon-yidongmulu"}),children:["移动到目录 ",(0,E.jsx)(B.Z,{})]})})})]})}),(0,E.jsx)(_.Z,{children:(0,E.jsx)(L.ZP,{type:"primary",ghost:!0,onClick:function(){ne&&ne([]),ze(!1)},children:"取消操作"})})]})]})]})})]})]}),"批量补交"===(null==M||null===(d=M.actionTabs)||void 0===d?void 0:d.key)&&(0,E.jsx)(Ye,{getData:rn}),"选用实践课程"===M.actionTabs.key?(0,E.jsx)(je,{}):null,(0,E.jsx)(Be.Z,{onOk:function(){rn()}}),(0,E.jsx)(Ie.Z,{onOk:function(){}}),"选用实践项目"===M.actionTabs.key?(0,E.jsx)(ve,{}):null,"从课堂实验添加"===M.actionTabs.key?(0,E.jsx)(we,{}):null,(0,E.jsx)(V,{}),(0,E.jsx)(G,{}),(0,E.jsx)(O.Z,{courseEndTime:null==oe?void 0:oe.course_end_time}),(0,E.jsx)(R.Z,{visible:"立即截止"===M.actionTabs.key,courseEndTime:null==oe?void 0:oe.course_end_time,courseId:K.coursesId,homeworkIds:M.actionTabs.selectArrs,isBatch:2!==M.actionTabs.type,successCallback:function(){(0,P.GJ)()?F({type:"classroomList/getClassroomTeacherShixunsList",payload:u()(u()({},M.actionTabs.params),{},{type:4})}):F({type:"classroomList/getClassroomShixunsList",payload:u()({},M.actionTabs.params)})}}),(0,E.jsx)(H,{}),(0,E.jsx)(be,{}),(0,E.jsx)(Me.Z,{visible:"调整排序"===M.actionTabs.key,callback:function(e){return ln.apply(this,arguments)},data:cn,onCancel:function(){F({type:"classroomList/setActionTabs",payload:{key:""}})}}),(0,E.jsx)(A.Z,{title:"选用实验",open:Ge,centered:!0,onCancel:function(){return Oe(!1)},onOk:function(){var e,n;!(0,P.Rm)()||null!==(e=M.AssistantObject.practice)&&void 0!==e&&e.can_create?2!==(null===(n=D.userInfo)||void 0===n?void 0:n.user_status)?(F(1===$e?{type:"classroomList/setActionTabs",payload:{key:"选用实践项目",params:ke}}:{type:"classroomList/setActionTabs",payload:{key:"选用实践课程",params:ke}}),Oe(!1)):(0,me.Rd)():y.ZP.warning("您未获取此权限,需向课堂管理员申请权限才能使用此功能")},children:(0,E.jsx)("div",{children:(0,E.jsxs)(Z.ZP.Group,{onChange:function(e){en(e.target.value)},value:$e,children:[(0,E.jsx)(Z.ZP,{style:{marginTop:"15px"},value:1,children:"从实践项目添加(可选择多个实践项目加入作业)"}),(0,E.jsx)(Z.ZP,{style:{marginTop:"15px"},value:2,children:"从实践课程添加(将实践课程中全部的实践项目都加入作业)"})]})})})]})}))},58111:function(e,n,t){"use strict";t.d(n,{Z:function(){return S}});var i=t(7557),s=t.n(i),a=t(41498),o=t.n(a),r=t(82242),l=t.n(r),c=t(79800),u=t.n(c),d=t(59301),m=t(43418),h=t(78485),p=t(95237),f=t(6848),g="wrap___KDoq2",x="tip___WEJuX",v="listWrap___IJDX4",y="li___r5con",w="nameWrap___PUyEz",b="name___xuUMY",_="tag___l5CW2",j=t(78018),k=t(18196),C=t(37712),S=function(e){var n,t,i=e.type,a=void 0===i?1:i,r=e.data,c=e.visible,S=e.callback,T=e.onCancel,N=(0,d.useState)([]),L=u()(N,2),A=L[0],Z=L[1],P=(0,k.useSelector)((function(e){return e.loading}));(0,d.useEffect)((function(){Z(r)}),[JSON.stringify(r)]);var B=function(e){var n={};if(1===a){n={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"未开始":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"提交中":{background:"rgba(0,177,135,0.2)",color:"#00B187"},"已截止":{background:"rgba(229,51,51,0.2)",color:"#E53333"}}[e]}if(2===a){n={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"预发布":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"已发布":{background:"rgba(0,177,135,0.2)",color:"#00B187"}}[e]}return(0,C.jsx)("div",{className:_,style:l()({},n),children:e})},I=function(){var e=o()(s()().mark((function e(){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:S(A.map((function(e){return e.task_id})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,C.jsx)(m.Z,{centered:!0,destroyOnClose:!0,open:c,onCancel:T,onOk:I,confirmLoading:null==P||null===(n=P.effects)||void 0===n?void 0:n["classroomList/updateTaskPosition"],okText:"保存",title:"调整排序",width:850,children:(0,C.jsxs)("div",{className:g,children:[(0,C.jsxs)("div",{className:x,children:[(0,C.jsx)("i",{className:"iconfont icon-tishi9 font14 mr10"}),(0,C.jsx)("span",{children:"提示:请在列表中长按鼠标左键,进行拖放排序。完成排序后请点击“保存”"})]}),(0,C.jsx)(h.Z,{loading:null==P||null===(t=P.effects)||void 0===t?void 0:t["classroomList/getAllTaskList"],active:!0,className:"mt20",paragraph:{rows:5},children:(0,C.jsx)(j.Z5,{onDragEnd:function(e){return function(e,n){if(e.destination){var t=function(e,n,t){var i=Array.from(e),s=i.splice(n,1),a=u()(s,1)[0];return i.splice(t,0,a),i}(n,e.source.index,e.destination.index);Z(t)}}(e,A)},children:(0,C.jsx)(j.bK,{droppableId:"droppable",children:function(e,n){return(0,C.jsxs)("div",l()(l()({ref:e.innerRef},e.droppableProps),{},{className:v,children:[A.map((function(e,n){return(0,C.jsx)(j._l,{draggableId:e.task_id.toString(),index:n,children:function(n,t){return(0,C.jsxs)("div",l()(l()(l()({ref:n.innerRef},n.draggableProps),n.dragHandleProps),{},{className:y,children:[(0,C.jsxs)(p.Z,{align:"middle",children:[(0,C.jsx)("div",{className:w,children:(0,C.jsx)(f.Z,{title:null==e?void 0:e.task_name,children:(0,C.jsx)("div",{className:b,children:null==e?void 0:e.task_name})})}),B(null==e?void 0:e.status)]}),(0,C.jsx)(p.Z,{align:"middle",className:"font12 mt10",children:(0,C.jsxs)("span",{className:"mr30 c-grey-666",children:["管理员",(0,C.jsx)("span",{className:"ml5 c-black",children:(null==e?void 0:e.user_name)||"--"})]})})]}))}},e.task_id)})),e.placeholder]}))}})})})]})})}},42315:function(e,n,t){"use strict";t.d(n,{U:function(){return m}});var i=t(7557),s=t.n(i),a=t(82242),o=t.n(a),r=t(41498),l=t.n(r),c=t(79800),u=t.n(c),d=t(59301);function m(e,n){var t=(0,d.useState)(n),i=u()(t,2),a=i[0],r=i[1],c=(0,d.useState)(!1),m=u()(c,2),h=m[0],p=m[1],f=(0,d.useState)(),g=u()(f,2),x=g[0],v=g[1],y=function(){var t=l()(s()().mark((function t(i){var l,c,u,d=arguments;return s()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l=d.length>1&&void 0!==d[1]&&d[1],c=l?n:o()(o()({},a),i),p(!0),r(c),t.next=6,e(c);case 6:return u=t.sent,p(!1),v(u),t.abrupt("return",u);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return[a,h,y,x]}},2302:function(e,n,t){"use strict";t.d(n,{_:function(){return g}});var i=t(7557),s=t.n(i),a=t(41498),o=t.n(a),r=t(71930),l=t(43418),c=t(8591),u=t(2595),d=t(34458),m=(t(59301),t(37712)),h=function(){var e=o()(s()().mark((function e(n){var t,i,a,o,l,c,u;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.is_jupyter,i=n.is_jupyter_lab,a=n.shixunId,o=n.homework_common_id,l=n.courseId,!t&&!i){e.next=7;break}return e.next=4,(0,r.BK)({id:a});case 4:return null!=(c=e.sent)&&c.identifier&&(0,d.xg)("/tasks/".concat(c.identifier,"/jupyter?homework_common_id=").concat(o)),e.abrupt("return");case 7:return e.next=9,(0,r.Ir)({id:a,homework_common_id:o});case 9:if(null==(u=e.sent)||!u.game_identifier){e.next=13;break}return(0,d.xg)("/tasks/".concat(l,"/").concat(o,"/").concat(u.game_identifier)),e.abrupt("return");case 13:2===(null==u?void 0:u.status)?p(null==u?void 0:u.message,o,l):3===(null==u?void 0:u.status)?f(null==u?void 0:u.message):-3==(null==u?void 0:u.status)&&(0,d.eF)();case 14:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),p=function e(n,t,i){var a,u;n=null!==(a=n)&&void 0!==a&&a.includes(".json")?n:"".concat(n,".json"),l.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,m.jsx)("div",{className:"tc font16",children:" 实训已经更新了,正在为您重置!"}),onOk:(u=o()(s()().mark((function a(){var o,l;return s()().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,(0,r.$Q)({url:n});case 2:if(o=s.sent){s.next=5;break}return s.abrupt("return");case 5:return c.ZP.success("重置成功,正在进入实践项目!"),s.next=8,(0,r.Ir)({id:o.shixun_identifier,homework_common_id:t});case 8:if(null==(l=s.sent)||!l.game_identifier){s.next=12;break}return(0,d.xg)("/tasks/".concat(i,"/").concat(t,"/").concat(l.game_identifier)),s.abrupt("return");case 12:2===(null==l?void 0:l.status)?e(null==l?void 0:l.message,t,i):3===(null==l?void 0:l.status)&&f(null==l?void 0:l.message);case 13:case"end":return s.stop()}}),a)}))),function(){return u.apply(this,arguments)})})},f=function(e){l.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,m.jsxs)("div",{className:"tc font16",children:[" 目前该实践项目尚在内测中,将于",e,"之后开放,谢谢!"]})})},g=function(){var e=o()(s()().mark((function e(n,t){var i,a,o,c,d,p,f;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.is_jupyter,a=t.is_jupyter_lab,e.next=3,(0,r.WT)(n);case 3:if(!((o=e.sent).length>1)){e.next=7;break}return l.Z.info({icon:null,closable:!0,maskClosable:!0,centered:!0,width:820,okButtonProps:{style:{display:"none"}},title:"提示",content:(0,m.jsxs)("div",{children:[(0,m.jsxs)("div",{children:["你当前有",o.length,"个进行中的实训作业使用该实践项目,请在下方点击实训作业名称进入实训挑战页面:"]}),(0,m.jsx)(u.Z,{pagination:!1,columns:[{title:"课堂名称",dataIndex:"course_name",ellipsis:!0,width:180,align:"center"},{title:"作业名称",dataIndex:"name",ellipsis:!0,width:240,align:"center",render:function(e,n){var t=n||{},i=t.course_identifier,s=t.id;return(0,m.jsx)("a",{target:"_blank",href:"/classrooms/".concat(i,"/shixun_homework/").concat(s,"/detail"),children:e})}},{title:"作业截止时间",dataIndex:"end_time",align:"center"},{title:"操作",align:"center",render:function(e,n){var t=n.course_identifier,s=n.id,o=n.shixun_identifier;return(0,m.jsx)("div",{style:{cursor:"pointer",color:"#165dff"},onClick:function(){h({is_jupyter:i,is_jupyter_lab:a,shixunId:o,homework_common_id:s,courseId:t})},children:"前往挑战"})}}],dataSource:o,rowKey:"id"})]})}),e.abrupt("return",!0);case 7:if(1!==o.length){e.next=11;break}return c=o[0],d=c.shixun_identifier,p=c.id,f=c.course_identifier,h({is_jupyter:i,is_jupyter_lab:a,shixunId:d,homework_common_id:p,courseId:f}),e.abrupt("return",!0);case 11:return e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}();n.Z=h},23899: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/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9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