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

1 line
224 KiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

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

(self.webpackChunk=self.webpackChunk||[]).push([[7852,4977,39752],{23717:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var i=t(1565),a=t(59301),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},o=t(99194),r=function(e,n){return a.createElement(o.Z,(0,i.Z)({},e,{ref:n,icon:s}))};var l=a.forwardRef(r)},66455:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},n="5.0",t={},i=null,a=!1,s=!1,o=null,r=!1,l=null,c=null,d=0;d<arguments.length;d++){var u=arguments[d];if(null!==u)switch(_typeof(u)){case"number":n=u.toFixed(1);break;case"string":u.match(new RegExp("^[0-9]\\.[0-9]+$"))?n=u:o=u;break;case"object":void 0!==u.is3D?i=u:t=u;break;case"boolean":a=u,s=!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||s||(a=!0)),null!==o&&void 0===t.id&&(t.id=o);var m="",p=!1,h=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,a="auto",s=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)$/)?a=c:s=arguments[l]:"boolean"==typeof c?o=c:c instanceof HTMLElement&&(i=c)}function d(){if(r){a=I(a);var l=i||document.getElementById(s);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"!==a||(delete t.width,delete t.height),h=a,"screenshot"===a)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?(h="screenshot",Z(l,t,o,a)):N(l,t,o)}else console.log("possibly bug on ajax loading? ")}else setTimeout(d,200)}d()},e.getViews=function(){return i},e.isJavaInstalled=function(){return!1};var k=function(n){var a=function(){t.onError&&t.onError(),G("Error: Fetching material (id "+t.material_id+") failed.",t)},s=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://"+s+"/api/proxy.php?path="+encodeURIComponent(o),(function(s){var o=JSON.parse(s),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 a()}),a)};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 h},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)),h=null;var a=null;for(i=0;i<e.childNodes.length;i++){var s=e.childNodes[i],o=s.className;"applet_screenshot"===o?n?(s.style.display="block",h="screenshot"):s.style.display="none":"applet_scaler prerender"!==o&&(e.removeChild(s),a=o&&-1!=o.indexOf("appletParameters")?s.id:null,i--)}var r=void 0!==t.id?t.id:a,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 a=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==f||ggbHTML5LoadedCodebaseIsWebSimple&&!x)&&(a=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var s=document.createElement("div");s.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 d=100;(T(t.showToolBar)||T(t.showMenuBar))&&(t.hasOwnProperty("customToolBar")&&(t.customToolbar=t.customToolBar),d=T(t.showMenuBar)?245:155),o<d&&(t.width=d,o=d)}for(var u in s.style.border="none",s.style.display="inline-block",t)t.hasOwnProperty(u)&&"appletOnLoad"!==u&&s.setAttribute("data-param-"+u,t[u]);w&&s.setAttribute("data-param-fontscssurl",w),e.resize=function(){GGBAppletUtils.responsiveResize(n,t)},window.addEventListener("resize",(function(n){e.resize()}));var p="function"==typeof t.appletOnLoad?t.appletOnLoad:function(){};if(i||void 0===t.width){var h=document.createElement("div");h.className="applet_scaler",h.style.position="relative",h.style.display="block",h.appendChild(s),n.appendChild(h),t.appletOnLoad=function(n){e.resize(),p(n)}}else{t.hasOwnProperty("showSplash")||s.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"),p(e)},y||v.appendChild(_)):s.appendChild(_),v.appendChild(s),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(a){scriptLoadStarted=!0;for(var C=0;C<s.childNodes.length;C++){"TABLE"===s.childNodes[C].tagName&&(s.removeChild(s.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(s,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(5783).then(function(){var e=[__webpack_require__(5783)];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(s,t);t.height=r,t.width=o},L=function(n,t,i){var a=B(t.width,t.height,t.borderColor,i),s=document.createElement("div");s.style.position="relative",s.style.display="block",s.style.width=t.width+"px",s.style.height=t.height+"px",s.className="applet_screenshot applet_scaler"+(i?" applet_screenshot_play":""),s.appendChild(a);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(s,"66%"),n.appendChild(s),1===o||isNaN(o)||(GGBAppletUtils.scaleElement(s,o),s.style.width=t.width+"px",s.style.height=t.height+"px",s.parentNode.style.width=t.width*o+"px",s.parentNode.style.height=t.height*o+"px"),e.resize=function(){A(n,a,s,i)},window.addEventListener("resize",(function(n){e.resize()})),e.resize()};function A(e,n,i,a){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 s=GGBAppletUtils.getScale(t,e,a);null!==i.parentNode&&(isNaN(s)||1===s?(GGBAppletUtils.scaleElement(i,1),i.parentNode.style.width=t.width+"px",i.parentNode.style.height=t.height+"px"):(GGBAppletUtils.scaleElement(i,s),i.parentNode.style.width=t.width*s+"px",i.parentNode.style.height=t.height*s+"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 a=function(){var t=[];for(o=0;o<e.childNodes.length;o++)t.push(e.childNodes[o]);if(window.GGBT_wsf_view){var a=window.GGBT_wsf_view.renderFullScreen(e,n.id),s=document.getElementById("fullscreencontainer"),r=jQuery(e).find(".fullscreencontent");r.length>0?(a.remove(),r.attr("id","fullscreencontent").show(),jQuery(s).append(r),window.dispatchEvent(new Event("resize"))):N(a,n,!1),window.GGBT_wsf_view.launchFullScreen(s)}else h=i,N(e,n,!1);if(!window.GGBT_wsf_view)for(o=0;o<t.length;o++)e.removeChild(t[o])},s=e.getElementsByClassName("ggb_preview_play"),o=0;o<s.length;o++)s[o].addEventListener("click",a,!1),s[o].addEventListener("ontouchstart",a,!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 a=document.createElement("div");a.className="ggb_preview",a.style.position="absolute",a.style.zIndex="90",a.style.width=e-2+"px",a.style.height=n-2+"px",a.style.top="0px",a.style.left="0px",a.style.overflow="hidden",a.style.backgroundColor="white";var s="lightgrey";void 0!==t&&(s="none"===t?"transparent":t),a.style.border="1px solid "+s;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 d=(e-r)/2,u=(n-l)/2;o.style.left=d+"px",o.style.top=u+"px",a.appendChild(o)}return a.appendChild(c),a},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 s,o,r=!a;if(r){var l=b(f);!isNaN(l)&&l<4.4&&(r=!1)}s="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=f.indexOf("//");for(var d in o=c>0?f:0===c?s+f:"https://www.geogebra.org/apps/5.2.814.0/",M)if(f.slice(-1*M[d].length)===M[d]||f.slice(-1*(M[d].length+1))===M[d]+"/")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")),p=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 R(){var e=n;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),E(e,!1),null!==c&&D(c,p),r=!0}return void 0!==t.material_id?k(R):R(),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,a){if(e.isScreenshoGenerator)return 1;var s,o=void 0!==i&&i,r=null!=e.noScaleMargin&&e.noScaleMargin,l=(s=e.autoHeight)&&"false"!==s,c=function(e,n,t,i,a,s){var o=null;if(null!=s&&""!=s)for(var r=e.parentNode;null!=r;){if((" "+r.className+" ").indexOf(" "+s+" ")>-1){o=r;break}r=r.parentNode}var l=0,c=0,d=0,u=0,m=0,p=0,h=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),d=l):(l=window.innerWidth,c=window.innerHeight,d=window.innerWidth),e){var f=e.getBoundingClientRect();f.left>0&&f.left<=l&&(void 0===a||!a)&&("rtl"===document.dir?(m=l-f.width-f.left,p=d<=480?10:30):(p=f.left,m=d<=480?10:30),u=p+m)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(u=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(u=0,h=40))}return e&&((void 0===t||!t)&&n>0&&n+u<l?l=n:l-=u,"object"!==_typeof(window.GGBT_wsf_view)||!window.GGBT_wsf_view.isFullscreen()||void 0!==t&&t||(c-=h)),{width:l,height:c}}(n,e.width,t,l,o&&window.GGBT_wsf_view||r,a),d=parseInt(c.width),u=e.width,m=e.height;if(void 0===u){var p=n.querySelector(".appletParameters");p&&(u=p.offsetWidth,m=p.offsetHeight)}var h=d/u,f=o?1:c.height/m;return void 0===t||t||(h=Math.min(1,h),f=Math.min(1,f)),Math.min(h,f)}function i(e,n,i){var a,s=1,o=!1;return e.hasOwnProperty("allowUpscale")&&(o=e.allowUpscale),e.hasOwnProperty("scale")&&(s=parseFloat(e.scale),(isNaN(s)||null===s||0===s)&&(s=1),s>1&&(o=!0)),n&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(o=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?s:(a=t(e,n,o,i,e.scaleContainerClass),!o||e.hasOwnProperty("scale")&&1!==s?Math.min(s,a):a)}function a(e){var n=Math.min(window.innerWidth,document.documentElement.clientWidth),t=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),a=(n-i.width)/2,s=(t-i.height)/2;s<0&&(s=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=a<40?"40px":a+"px",e.style.top=s+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=s<40?"40px":s+"px",e.style.left=a+"px")}return{responsiveResize:function(t,s){var o=t.querySelector(".appletParameters");if(o){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(s.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(s,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 d=void 0!==s.id?s.id:"ggbApplet",u=window[d];null!=u&&u.recalculateEnvironments||null===l||l.className.match(/fullscreen/)||(l.parentNode.style.transform="",isNaN(r)||1===r?(n(l,1),l.parentNode.style.width=s.width+"px",l.parentNode.style.height=s.height+"px"):(l.parentNode.style.width=s.width*r+"px",l.parentNode.style.height=s.height*r+"px",n(l,r))),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&a(t),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(o).parents(".content-added-content"))}},isFlexibleWorksheetEditor:e,positionCenter:a,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,a,!1);var i=setInterval((function(){a()}),$)}function a(){if(!t){if(!n())return;t=!0,e(),o.removeEventListener&&o.removeEventListener(Z,a,!1),i&&clearInterval(i)}}}((function(){var n,t,i,a;n=e,t=u(),i=t.body,(a=t.createElement(_)).language=ab,a.crossOrigin=W,a.src=n,webModule.__errFn&&(a.onerror=function(){webModule.__errFn(L,new Error(bb+n))}),i.appendChild(a),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=[],a=[];function s(e){var n=a[e](),t=i[e];if(n in t)return n;var s=[];for(var o in t)s[t[o]]=o;throw r&&r(e,s,n),null}if(__gwt_isKnownPropertyValue=function(e,n){return n in i[e]},webModule.__getPropMap=function(){var e={};for(var n in i)i.hasOwnProperty(n)&&(e[n]=s(n));return e},webModule.__computePropValue=s,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var 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],a=O;a<i.length;a++){var s=i[a];t[s[O]]=s[P]}return t}},webModule.__startLoadingFragment=function(e){return C(e)},webModule.__installRunAsyncCode=function(e){var n=u(),t=n.body,i=n.createElement(_);i.language=ab,i.text=e,t.appendChild(i),t.removeChild(i)},A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},"function"!=typeof window.web3d&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),"function"!=typeof window.webSimple&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet}else console.warn("deployggb.js was loaded twice")})()},55087:function(e,n,t){"use strict";function i(e){var n=!0;if(e.length>0){for(var t=0;t<e.length;t++)if(0==e[t].compile_success||!e[t].compile_success){n=!1;break}}else n=!1;return n}function a(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=[],i=0;i<e.length;i++){var a=e[i],s=n?"".concat(n,"/").concat(a.name):"".concat(a.name);t.push({title:a.name,type:a.type,isLeaf:"tree"!==a.type,key:s})}return t}function s(e,n,t){for(var i=0;i<e.length;i++){var a=e[i];if(a.key===n){a.children=t;break}a.children&&s(a.children,n,t)}return e}function o(e,n,t){var i;return function(){var a=this,s=arguments,o=function(){i=null,t||e.apply(a,s)},r=t&&!i;clearTimeout(i),i=setTimeout(o,n),r&&e.apply(a,s)}}t.d(n,{Ax:function(){return s},Ds:function(){return o},KI:function(){return r},SI:function(){return a},f1:function(){return i}});var r=t(27065).Z.API_SERVER},6309:function(e,n,t){"use strict";t.d(n,{Z:function(){return j}});t(7557),t(41498);var i=t(82100),a=t.n(i),s=t(29186),o=t.n(s),r=t(13720),l=t.n(r),c=t(80619),d=t.n(c),u=t(47074),m=t.n(u),p=t(85573),h=t.n(p),f=t(59301),g=t(8591),x=t(8772),v="codeBox___WpkVl",y=t(92310),w=t.n(y),b=t(37712),_=function(e){d()(t,e);var n=m()(t);function t(e){var i;return a()(this,t),i=n.call(this,e),h()(l()(i),"canvas",void 0),h()(l()(i),"randomNum",(function(e,n){return Math.floor(Math.random()*(n-e)+e)})),h()(l()(i),"drawPic",(function(){i.randomCode()})),h()(l()(i),"reloadPic",(function(){i.drawPic()})),h()(l()(i),"changeCode",(function(e){console.log(e.target.value,222),i.setState({value:e.target.value,showError:!1})})),h()(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),a=this.randomNum(e,n);return"rgb(".concat(t,", ").concat(i,", ").concat(a,")")}},{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 a=(this.state.contentWidth-40)/(this.state.code.length-1),s=10;t>0&&(s=10+t*a);var o=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);i>40&&(o=40);var r=this.randomNum(-10,10);e.translate(s,o),e.rotate(r*Math.PI/180),e.fillText(n,0,0),e.rotate(-r*Math.PI/180),e.translate(-s,-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=_},58325:function(e,n,t){"use strict";t.d(n,{Z:function(){return S}});var i=t(7557),a=t.n(i),s=t(41498),o=t.n(s),r=t(79800),l=t.n(r),c=t(59301),d=t(78241),u=t(8591),m=t(43418),p=t(22744),h=t(8772),f=t(52306),g=t(95237),x=t(43604),v=t(99232),y=t.n(v),w=t(6457),b=t(7880),_={tips:"tips___e8J4O",homeworkType:"homeworkType___ZjN2X",antdTable:"antdTable___amDdp",modalWrapper:"modalWrapper___XPojI"},j=t(69363),k=t(47762),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),s=void 0===i?function(){}:i,r=e.visible,v=e.homeworkIds,b=e.courseId,S=e.isBatch,T=(e.shixunHomeworks,d.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),R=G[0],O=G[1],H=(0,c.useState)([]),z=l()(H,2),F=z[0],V=z[1],Y=(0,c.useState)([]),W=l()(Y,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)([]),ae=l()(ie,2),se=ae[0],oe=ae[1],re=(0,c.useState)([]),le=l()(re,2),ce=le[0],de=le[1],ue=(0,c.useState)([]),me=l()(ue,2),pe=me[0],he=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()(a()().mark((function e(){var n;return a()().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,O(n.no_group),S?(he(n.all_course_groups),ve(n.all_course_groups)):(te(n.late_course_groups),oe(n.late_course_groups),V(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()(a()().mark((function e(){var t,i,o;return a()().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)||R){e.next=6;break}return u.ZP.warning("请选择需要操作的班级"),e.abrupt("return");case 6:return E(!0),e.next=9,(0,j.Mc)(b,{no_group:R,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(),u.ZP.success("操作成功"),s(),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}));case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ce=function(){X([]),de([]),U([]),oe([])};return(0,C.jsxs)(m.Z,{centered:!0,title:"立即截止",className:_.modalWrapper,width:S||R?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)(d.Z,{form:N,layout:"vertical",children:(0,C.jsx)(d.Z.Item,{name:"end_time",label:"截止时间",children:(0,C.jsx)(p.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})})}),!R&&(0,C.jsx)(C.Fragment,{children:S?(0,C.jsxs)("div",{children:[(0,C.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){ve(pe.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)(h.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)(h.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){de(e)}},rowKey:"id",pagination:!1,loading:Z,dataSource:se,columns:[{title:"班级",dataIndex:"name",ellipsis:!0,width:120},{title:"截止时间",dataIndex:"late_time"}]})})]})]})})]})}))},60643:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var i=t(79800),a=t.n(i),s=t(78241),o=t(8772),r=t(3113),l=t(59301),c={search:"search___JA0r9",btn:"btn___GGtZC"},d=t(37712),u=function(e){var n=e.value,t=e.onChange,i=s.Z.useForm(),u=a()(i,1)[0],m=(0,l.useRef)(!1);(0,l.useEffect)((function(){n&&u.setFieldsValue(n)}),n);return(0,d.jsx)("div",{className:c.search,children:(0,d.jsxs)(s.Z,{className:c.formWrap,colon:!1,form:u,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,d.jsx)(s.Z.Item,{label:"实践项目名称",name:"keyword",initialValue:"",children:(0,d.jsx)(o.Z,{style:{width:280,height:40}})}),(0,d.jsx)(s.Z.Item,{label:"学校/单位",name:"schools",initialValue:"",style:{margin:"0 40px"},children:(0,d.jsx)(o.Z,{style:{width:280,height:40}})}),(0,d.jsx)(s.Z.Item,{label:"创建者/合作者",name:"creator",initialValue:"",children:(0,d.jsx)(o.Z,{style:{width:200,height:40}})}),(0,d.jsx)(r.ZP,{className:c.btn,type:"primary",htmlType:"submit",children:"搜索"})]})})}},74908:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var i=t(7557),a=t.n(i),s=t(41498),o=t.n(s),r=t(79800),l=t.n(r),c=t(59301),d="imageDimensions___a7crR",u="img___Kroat",m="fullWidth___c492T",p=t(92310),h=t.n(p),f=t(71418),g=t(2859),x=t(51136),v=t(6457),y=t(37712),w=function(e){var n=e.data,t=e.className,i=e.fullWidth,s=e.style,r=void 0===s?{}:s,p=e.onClose,w=e.onOk,b=e.showFullTools,_=e.noAssociationId,j=(0,c.useRef)(null),k=(0,c.useRef)(null),C=(0,c.useState)(!1),S=l()(C,2),T=S[0],N=S[1],L=(0,c.useState)("正在加载中"),A=l()(L,2),Z=A[0],P=A[1];(0,c.useEffect)((function(){null!=n&&n.visible?document.body.setAttribute("data-custom","y-hidden"):document.body.removeAttribute("data-custom"),null!=n&&n.src&&B()}),[null==n?void 0:n.visible]);var B=function(){var e=o()(a()().mark((function e(){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),P("正在加载中"),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(){M()},N(!1),P("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=o()(a()().mark((function e(t){var i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),P("正在保存中"),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:N(!1),P("");case 15:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),M=function(){k.current=new g.hP(j.current),k.current.addEventListener("render",I),k.current.addEventListener("beforeclose",p),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;(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.jsxs)("div",{className:h()(d,t,i?m:""),style:r,children:[(0,y.jsx)(f.Z,{spinning:T,tip:Z,style:{position:"absolute"}}),(0,y.jsx)("img",{className:u,ref:j})]})})}},30941:function(e,n,t){"use strict";t.d(n,{Z:function(){return M},P:function(){return B}});var i=t(37205),a=t.n(i),s=t(39647),o=t.n(s),r=t(7557),l=t.n(r),c=t(82242),d=t.n(c),u=t(41498),m=t.n(u),p=t(79800),h=t.n(p),f=t(59301),g=t(78241),x=t(43418),v=t(5112),y=t(8772),w=t(52306),b="brief___LOzpE",_="contentTitle___xkdcN",j="content___Vtri0",k="antdTable___s8T2N",C="tableCell___kN9Fw",S="antdModal___WVBk3",T="orangeColor___ryB2u",N=t(85062),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,a=(e.inPaper,e.renderData),s=(e.type,e.isMultipleCourse),o=void 0!==s&&s,r=g.Z.useForm(),c=h()(r,1)[0],u=(0,f.useState)(1),p=h()(u,2),y=p[0],w=p[1],b=(0,f.useState)(!1),_=h()(b,2),k=_[0],C=_[1],N=(0,f.useMemo)((function(){return 1===(null==a?void 0:a.total_num)&&1===(null==a?void 0:a.can_copy_num)}),[a]),A=(0,f.useMemo)((function(){var e;return null==a||null===(e=a.course_data_list)||void 0===e?void 0:e.filter((function(e){return e.is_show}))}),[a]);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,s;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),n=y,o&&(s=d()({},c.getFieldsValue()),n=null==a||null===(i=a.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==s[e.id]?d()(d()({},e),{},{is_copy:s[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==a?void 0:a.student_names,total:null==a?void 0:a.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,s;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),n=0,o&&(s=d()({},c.getFieldsValue()),n=null==a||null===(i=a.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==s[e.id]?d()(d()({},e),{},{is_use:s[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==a?void 0:a.student_names,total:null==a?void 0:a.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=h()(e,2),t=n[0],i=n[1],a=(0,f.useState)(),s=h()(a,2),r=s[0],c=s[1],d=function(){var e=m()(l()().mark((function e(n){var t,a,s,r,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.isImportMultipleCourse,a=void 0!==t&&t,s=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)(s);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(!a){e.next=17;break}if(!(null==r||null===(d=r.course_data_list)||void 0===d?void 0:d.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,d]},I=function(e){var n=g.Z.useForm(),t=h()(n,1)[0],i=(0,f.useState)(!1),s=h()(i,2),o=s[0],r=s[1],c=e.onCancel,d=e.onOk,u=e.visible,p=e.inPaper,j=void 0!==p&&p,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(a()(M)),E=[D].concat(a()(E))}var G=(0,f.useMemo)((function(){return function(e){var n=e.used,t=e.copy,i=e.canNotCopy,a=e.studentNames,s=e.studentCount,o=e.inPaper,r=e.is_random,l=void 0!==r&&r,c=e.position,d=(void 0===c?"":c)||(o?"试卷":"课程");return(0,L.jsxs)("span",{children:[(0,L.jsx)(Z,{studentNames:a,total:s}),"学习过",d,"中的",(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:u,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,d(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,d()({},e)):(0,L.jsx)(P,d()({},e))}},5829:function(e,n,t){"use strict";t(59301);var i=t(6848),a=t(37712);n.Z=function(e){var n=e.value,t=e.visible,s=void 0===t||t,o=e.children;return(0,a.jsx)(a.Fragment,{children:s?(0,a.jsx)(i.Z,{placement:"topLeft",title:{"未发布":"作业尚未发布","未开始":"作业已发布,尚未到达开始作业时间","提交中":"作业进行中,所有考生可提交作业","补交中":"作业进行中,所有学生可补交作业","进行中":"作业进行中,部分班级正在作业提交中/补交中","已截止":"到达作业截止时间,作业已结束","已结束":"课堂已结束"}[n],children:(0,a.jsx)("span",{children:o})}):o})}},37507:function(e,n,t){"use strict";t.d(n,{h:function(){return x}});var i=t(82242),a=t.n(i),s=t(79800),o=t.n(s),r=t(59301),l=t(57809),c=t(78241),d=t(3113),u=t(89780),m=t.n(u),p=(t(81974),t(3693),t(37712)),h=l.default.Option,f={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function x(e){var n=e.value,t=e.onChange,i=e.mode,s=e.options,l=void 0===s?{}:s,c=(0,r.useRef)(),d=(0,r.useState)(),u=o()(d,2),h=u[0],f=u[1];return(0,r.useEffect)((function(){if(h){var e=function(e){var n=e.getValue();t&&t(n)};return h.on("change",e),function(){h.off("change",e)}}}),[h,t]),(0,r.useEffect)((function(){h&&h.setOption("mode",i)}),[h,i]),(0,r.useEffect)((function(){h&&(n===h.getValue()&&""!==n||setTimeout((function(){h.setValue(n||"")}),300))}),[h,n]),(0,r.useEffect)((function(){if(c.current&&!h){var e=m().fromTextArea(c.current,a()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));f(e)}}),[c.current,h]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}n.Z=function(e){var n=e.callback,t=e.onCancel,i=(0,r.useState)("python"),s=o()(i,2),u=s[0],m=s[1];return(0,p.jsxs)(c.Z,a()(a()({},f),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){n(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.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,p.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(x,{mode:u})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(d.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(d.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))}},11094:function(e,n,t){"use strict";t.d(n,{Z:function(){return Te}});var i=t(91232),a=t.n(i),s=t(79800),o=t.n(s),r=t(85573),l=t.n(r),c=t(59301),d=t(89780),u=t.n(d),m=t(76374),p=(t(81974),t(6313),t(25717),t(99498),t(25419),t(67549),t(42783)),h=t(37712),f=function(e){var n=e.value,t=void 0===n?"":n,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[t]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=t(82242),x=t.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function y(e){var n=e.onActionCallback,t=e.title,i=e.icon,a=e.actionName,s=e.className,o=void 0===s?"":s,r=e.children;return(0,h.jsxs)("a",{title:t,className:o,onClick:function(){n(a)},children:[(0,h.jsx)("i",{className:"".concat(i)}),r]})}var w=function(e){var n=e.watch,t=e.showNullButton,i=e.showNullProgramButton,a=e.onActionCallback,s=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,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!r&&c.map((function(e,n){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(y,x()(x()({},e),{},{onActionCallback:a})):(0,h.jsx)("span",{className:"v-line"})},n)})),t?(0,h.jsx)("li",{children:(0,h.jsx)(y,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:a,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(y,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:a,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(y,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:a,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,o&&(0,h.jsx)("li",{children:(0,h.jsx)(y,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(o),onActionCallback:a,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,h.jsx)("li",{children:l}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(y,{icon:"".concat(s?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:s?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:a})})]})},b=t(27308),_=t(78241),j=t(8772),k=t(3113),C={labelCol:{span:4},wrapperCol:{span:20}},S=function(e){var n=e.callback,t=e.onCancel;return(0,h.jsxs)(_.Z,x()(x()({},C),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},style:{width:500},children:[(0,h.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(j.Z,{})}),(0,h.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(j.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(k.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))},T=t(37507),N=t(8591),L=t(55087),A=_.Z.useForm,Z={width:280,marginRight:10},P={labelCol:{span:5},wrapperCol:{span:19}},B=function(e){var n=e.callback,t=e.onCancel,i=A(),a=o()(i,1)[0],s=(0,c.useRef)();function r(e,n){-1!==e.status?a.setFieldsValue({src:"/api/attachments/".concat(e.id),type:n.type}):N.ZP.error(e.message)}return(0,h.jsxs)(_.Z,x()(x()({form:a},P),{},{className:"upload-image-panel",onFinish:function(e){n(e,s.current)},style:{width:470,overflow:"hidden"},children:[(0,h.jsx)(_.Z.Item,{label:"图片地址",required:!0,children:(0,h.jsxs)("div",{className:"flex-container",children:[(0,h.jsx)(_.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,h.jsx)(j.Z,{style:Z})}),(0,h.jsx)(I,{onFileChange:function(e){var n=e.target.files[0];s.current=n,M(n,r)}})]})}),(0,h.jsx)(_.Z.Item,{label:"图片描述",name:"alt",children:(0,h.jsx)(j.Z,{style:{width:264}})}),(0,h.jsxs)(_.Z.Item,{style:{textAlign:"right"},children:[(0,h.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(k.ZP,{type:"default",onClick:t,children:"取消"})]})]}))};function I(e){var n=e.onFileChange;return(0,h.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,h.jsx)("input",{type:"file",onChange:n})]})}function M(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(L.KI,"/api/attachments.json")),i.send(t)}var E=t(95237),D=t(74908),G=function(e){var n=e.callback,t=e.onCancel,i=document.createElement("canvas"),a=i.getContext("2d");i.width=1e3,i.height=800,a.fillStyle="#ffffff",a.fillRect(0,0,i.width,i.height);var s=i.toDataURL("image/png");return(0,h.jsx)(E.Z,{style:{height:"100vh"},children:(0,h.jsx)(D.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:s,visible:!0,title:String(Date.now())},onOk:function(e){n({src:e.url})},onClose:t})})},R=t(7557),O=t.n(R),H=t(41498),z=t.n(H),F=t(37205),V=t.n(F),Y=t(12378);function W(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(W,go.CommandHandler),W.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},W.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var n=1/0;e.selection.each((function(e){e instanceof go.Link||(n=Math.min(e.position.x,n))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n,e.position.y))})),e.commitTransaction("aligning left")},W.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var n=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var t=e.actualBounds.x+e.actualBounds.width;n=Math.max(t,n)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},W.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var n=1/0;e.selection.each((function(e){e instanceof go.Link||(n=Math.min(e.position.y,n))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,n))})),e.commitTransaction("alignTop")},W.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var n=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var t=e.actualBounds.y+e.actualBounds.height;n=Math.max(t,n)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},W.prototype.alignCenterX=function(){var e=this.diagram,n=e.selection.first();if(n){e.startTransaction("aligning Center X");var t=n.actualBounds.x+n.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},W.prototype.alignCenterY=function(){var e=this.diagram,n=e.selection.first();if(n){e.startTransaction("aligning Center Y");var t=n.actualBounds.y+n.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},W.prototype.alignColumn=function(e){var n=this.diagram;n.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var t=new Array;n.selection.each((function(e){e instanceof go.Link||t.push(e)}));for(var i=0;i<t.length-1;i++){var a=t[i],s=a.actualBounds.y+a.actualBounds.height+e;t[i+1].move(new go.Point(a.actualBounds.x,s))}n.commitTransaction("align Column")},W.prototype.alignRow=function(e){void 0===e&&(e=0),e=parseFloat(e);var n=this.diagram;n.startTransaction("align Row");var t=new Array;n.selection.each((function(e){e instanceof go.Link||t.push(e)}));for(var i=0;i<t.length-1;i++){var a=t[i],s=a.actualBounds.x+a.actualBounds.width+e;t[i+1].move(new go.Point(s,a.actualBounds.y))}n.commitTransaction("align Row")},W.prototype.canRotate=function(e){var n=this.diagram;return null!==n&&!n.isReadOnly&&!n.isModelReadOnly&&!(n.selection.count<1)},W.prototype.rotate=function(e){var n;void 0===e&&(e=90),(n=this.diagram).startTransaction("rotate "+e.toString()),(n=this.diagram).selection.each((function(n){n instanceof go.Link||n instanceof go.Group||(n.angle+=e)})),n.commitTransaction("rotate "+e.toString())},W.prototype.pullToFront=function(){var e=this.diagram;e.startTransaction("pullToFront");var n=new go.Map;e.selection.each((function(e){n.set(e.layer,0)})),n.iteratorKeys.each((function(e){var t=0;e.parts.each((function(e){if(!e.isSelected){var n=e.zOrder;isNaN(n)?e.zOrder=0:t=Math.max(t,n)}})),n.set(e,t)})),e.selection.each((function(e){W._assignZOrder(e,n.get(e.layer)+1)})),e.commitTransaction("pullToFront")},W.prototype.pushToBack=function(){var e=this.diagram;e.startTransaction("pushToBack");var n=new go.Map;e.selection.each((function(e){n.set(e.layer,0)})),n.iteratorKeys.each((function(e){var t=0;e.parts.each((function(e){if(!e.isSelected){var n=e.zOrder;isNaN(n)?e.zOrder=0:t=Math.min(t,n)}})),n.set(e,t)})),e.selection.each((function(e){W._assignZOrder(e,n.get(e.layer)-1-W._findGroupDepth(e))})),e.commitTransaction("pushToBack")},W._assignZOrder=function(e,n,t){void 0===t&&(t=e),e.layer===t.layer&&(e.zOrder=n),e instanceof go.Group&&e.memberParts.each((function(e){W._assignZOrder(e,n+1,t)}))},W._findGroupDepth=function(e){if(e instanceof go.Group){var n=0;return e.memberParts.each((function(e){n=Math.max(n,W._findGroupDepth(e))})),n+1}return 0},W.prototype.doKeyDown=function(){var e=this.diagram;if(null!==e){var n=e.lastInput;if("Up"===n.key||"Down"===n.key||"Left"===n.key||"Right"===n.key){var t=this.arrowKeyBehavior;if("none"===t)return;if("select"===t)return void this._arrowKeySelect();if("move"===t)return void this._arrowKeyMove();if("tree"===t)return void this._arrowKeyTree()}go.CommandHandler.prototype.doKeyDown.call(this)}},W.prototype._getAllParts=function(){var e=new Array;return this.diagram.nodes.each((function(n){e.push(n)})),this.diagram.parts.each((function(n){e.push(n)})),e},W.prototype._arrowKeyMove=function(){var e=this.diagram,n=e.lastInput,t=0,i=0;if(n.control||n.meta)t=1,i=1;else if(null!==e.grid){var a=e.grid.gridCellSize;i=a.width,t=a.height}e.startTransaction("arrowKeyMove"),e.selection.each((function(e){"Up"===n.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y-t)):"Down"===n.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y+t)):"Left"===n.key?e.move(new go.Point(e.actualBounds.x-i,e.actualBounds.y)):"Right"===n.key&&e.move(new go.Point(e.actualBounds.x+i,e.actualBounds.y))})),e.commitTransaction("arrowKeyMove")},W.prototype._arrowKeySelect=function(){var e=this.diagram,n=e.lastInput,t=null;"Up"===n.key?t=this._findNearestPartTowards(270):"Down"===n.key?t=this._findNearestPartTowards(90):"Left"===n.key?t=this._findNearestPartTowards(180):"Right"===n.key&&(t=this._findNearestPartTowards(0)),null!==t&&(n.shift?t.isSelected=!0:n.control||n.meta?t.isSelected=!t.isSelected:e.select(t))},W.prototype._findNearestPartTowards=function(e){var n=this.diagram.selection.first();if(null===n)return null;for(var t=n.actualBounds.center,i=this._getAllParts(),a=1/0,s=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),d=this._angleCloseness(c,e);if(d<=45){var u=t.distanceSquaredPoint(l);(u*=1+Math.sin(d*Math.PI/180))<a&&(a=u,s=r)}}}return s},W.prototype._angleCloseness=function(e,n){return Math.min(Math.abs(n-e),Math.min(Math.abs(n+360-e),Math.abs(n-360-e)))},W.prototype._arrowKeyTree=function(){var e=this.diagram,n=e.selection.first();if(n instanceof go.Node){var t=e.lastInput;if("Right"===t.key)if(n.isTreeLeaf);else if(n.isTreeExpanded){null!==(a=this._sortTreeChildrenByY(n).first())&&e.select(a)}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!==(s=n.findTreeParentNode())&&e.select(s)}else if("Up"===t.key){if(null!==(s=n.findTreeParentNode()))if((r=(o=this._sortTreeChildrenByY(s)).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(s)}else if("Down"===t.key){var a;if(n.isTreeExpanded&&!n.isTreeLeaf)null!==(a=this._sortTreeChildrenByY(n).first())&&e.select(a);else for(;null!==n;){var s,o,r;if(null===(s=n.findTreeParentNode()))break;if((r=(o=this._sortTreeChildrenByY(s)).indexOf(n))<o.length-1){e.select(o.elt(r+1));break}n=s}}var l=e.selection.first();null!==l&&e.scrollToRect(l.actualBounds)}},W.prototype._sortTreeChildrenByY=function(e){var n=(new go.List).addAll(e.findTreeChildrenNodes());return n.sort((function(e,n){var t=e.location,i=n.location;return t.y<i.y?-1:t.y>i.y?1:t.x<i.x?-1:t.x>i.x?1:0})),n},W.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},W.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(W.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(W.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var K=W,U=(t(31270),t(85160)),J=t(43418),q=t(43604),Q=t(51136),X="myPaletteDiv___Xjz2I",$="maxH60___Pd4Re";window.go=Y;var ee=function(e){var n=e.onCancel,t=e.callback,i=(0,c.useRef)(),a=(0,c.useRef)(),s=(0,c.useRef)(),r=(0,c.useRef)(!1),l=(0,c.useRef)(!1),d=(0,c.useState)(0),u=o()(d,2),m=u[0],p=u[1],f=function(){var e=z()(O()().mark((function e(){var n,a;return O()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.current.makeImage(),e.next=3,(0,Q.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:n.src}});case 3:a=e.sent,t({src:a.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(m+1)}),[]),(0,h.jsx)("div",{ref:l,className:r.current?"".concat($," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(J.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!m,destroyOnClose:!0,maskClosable:!1,getContainer:l.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(E.Z,{children:[(0,h.jsx)(q.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(q.Z,{onClick:function(){r.current=!r.current,p(m+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:n,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:X,ref:s})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(U.FI,{initDiagram:function(){var e=Y.GraphObject.make,n="#ff3333",t="#3358ff",o="#25ad23",r="#d533ff",l="#7d33ff",c="#ff6233",d="#ffffff",u="#000000",m="#fffcd5",p="#d5ebff",h="#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 a=t.part.adornedPart,s=(new Y.Point).setRectSpot(a.actualBounds,n);s.subtract(a.location),s.scale(2,2),s.x+=130*Math.sign(s.x),s.y+=130*Math.sign(s.y),s.add(a.location),s.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var o=i.copyNodeData(a.data);i.setGroupKeyForNodeData(o,i.getGroupKeyForNodeData(a.data)),i.addNodeData(o);var r={from:a.key,to:i.getKeyForNodeData(o)};i.addLinkData(r);var l=e.diagram.findNodeForData(o);l.location=s,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(Y.Shape,{figure:t,alignment:n,alignmentFocus:n.opposite(),width:n.equals(Y.Spot.Top)||n.equals(Y.Spot.Bottom)?25:18,height:n.equals(Y.Spot.Top)||n.equals(Y.Spot.Bottom)?18:25,fill:"orange",stroke:d,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(Y.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(Y.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(Y.Panel,"Horizontal",_(d,"fill"),_(m,"fill"),_(p,"fill"),_(h,"fill"))),e("ContextMenuButton",e(Y.Panel,"Horizontal",_(g,"fill"),_(x,"fill"),_(f,"fill"),_(v,"fill")))]}function k(){return[e("ContextMenuButton",e(Y.Panel,"Horizontal",_(u),_(o),_(t),_(n))),e("ContextMenuButton",e(Y.Panel,"Horizontal",_(d),_(r),_(l),_(c)))]}function C(n,t){return t||(t="thickness"),e(Y.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(Y.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(Y.Panel,"Horizontal",C(1),C(2),C(3),C(4))),e("ContextMenuButton",e(Y.Panel,"Horizontal",S(null),S([2,4]),S([4,4])))]}function N(n,t){return t||(t="figure"),e(Y.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(Y.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(Y.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",Y.Spot.stringify(Y.Spot.AllSides)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(Y.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,a=Y.Spot.RightSide;n.equals(Y.Spot.Top)?(i=270,a=Y.Spot.TopSide):n.equals(Y.Spot.Left)?(i=180,a=Y.Spot.LeftSide):n.equals(Y.Spot.Bottom)&&(i=90,a=Y.Spot.BottomSide),t||(i-=180);var s=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",Y.Spot.stringify(a)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(Y.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:s,contextClick:s})}return i.current=new Y.Diagram(a.current,{padding:20,grid:e(Y.Panel,"Grid",e(Y.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(Y.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(K),"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(Y.Node,"Auto",{locationSpot:Y.Spot.Center,locationObjectName:"SHAPE",desiredSize:new Y.Size(120,60),minSize:new Y.Size(40,40),resizable:!0,resizeCellSize:new Y.Size(10,10),rotatable:!0},new Y.Binding("location","loc",Y.Point.parse).makeTwoWay(Y.Point.stringify),new Y.Binding("desiredSize","size",Y.Size.parse).makeTwoWay(Y.Size.stringify),e(Y.Shape,{name:"SHAPE",fill:d,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Y.Spot.AllSides,toSpot:Y.Spot.AllSides},new Y.Binding("figure"),new Y.Binding("fill"),new Y.Binding("stroke","borderColor"),new Y.Binding("strokeWidth","thickness"),new Y.Binding("strokeDashArray","dash")),e(Y.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(Y.TextBlock,{margin:1,textAlign:"center",overflow:Y.TextBlock.OverflowEllipsis,editable:!0},new Y.Binding("text").makeTwoWay(),new Y.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(Y.Panel,"Vertical",{maxSize:new Y.Size(200,NaN)},e(Y.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new Y.Binding("text")),e(Y.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new Y.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(Y.Adornment,"Spot",e(Y.Placeholder,{padding:10}),y(Y.Spot.Top,"TriangleUp"),y(Y.Spot.Left,"TriangleLeft"),y(Y.Spot.Right,"TriangleRight"),y(Y.Spot.Bottom,"TriangleDown"),w({alignment:new Y.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(Y.Panel,"Horizontal",N("Rectangle"),N("RoundedRectangle"),N("Ellipse"),N("Diamond"))),e("ContextMenuButton",e(Y.Panel,"Horizontal",N("Parallelogram2"),N("ManualOperation"),N("Procedure"),N("Cylinder1"))),e("ContextMenuButton",e(Y.Panel,"Horizontal",N("Terminator"),N("CreateRequest"),N("Document"),N("TriangleDown"))),j(),k(),T()),i.current.groupTemplate=e(Y.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Y.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 Y.Binding("location","loc",Y.Point.parse).makeTwoWay(Y.Point.stringify),e(Y.Panel,"Auto",{name:"BODY"},e(Y.Shape,{parameter1:10,fill:d,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Y.Spot.AllSides,toSpot:Y.Spot.AllSides},new Y.Binding("fill"),new Y.Binding("stroke","color"),new Y.Binding("strokeWidth","thickness"),new Y.Binding("strokeDashArray","dash")),e(Y.Placeholder,{background:"transparent",margin:20})),e(Y.TextBlock,{alignment:Y.Spot.Top,alignmentFocus:Y.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new Y.Binding("text"),new Y.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(Y.Adornment,"Spot",e(Y.Panel,"Auto",e(Y.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(Y.Placeholder,{margin:1.5})),w({alignment:Y.Spot.TopRight,alignmentFocus:Y.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",j(),k(),T()),i.current.linkTemplate=e(Y.Link,{layerName:"Foreground",routing:Y.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Y.Binding("fromSpot","fromSpot",Y.Spot.parse),new Y.Binding("toSpot","toSpot",Y.Spot.parse),new Y.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new Y.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new Y.Binding("points").makeTwoWay(),e(Y.Shape,{strokeWidth:2},new Y.Binding("stroke","color"),new Y.Binding("strokeWidth","thickness"),new Y.Binding("strokeDashArray","dash")),e(Y.Shape,{segmentIndex:0,segmentOffset:new Y.Point(15,0),segmentOrientation:Y.Link.OrientAlong,alignmentFocus:Y.Spot.Right,figure:"circle",width:10,strokeWidth:0},new Y.Binding("fill","color"),new Y.Binding("visible","dir",(function(e){return 1===e}))),e(Y.Shape,{segmentIndex:-1,segmentOffset:new Y.Point(-10,6),segmentOrientation:Y.Link.OrientPlus90,alignmentFocus:Y.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Y.Binding("fill","color"),new Y.Binding("visible","dir",(function(e){return e>=1})),new Y.Binding("width","thickness",(function(e){return 7+3*e})),new Y.Binding("height","thickness",(function(e){return 7+3*e})),new Y.Binding("segmentOffset","thickness",(function(e){return new Y.Point(-15,4+1.5*e)}))),e(Y.Shape,{segmentIndex:0,segmentOffset:new Y.Point(15,-6),segmentOrientation:Y.Link.OrientMinus90,alignmentFocus:Y.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Y.Binding("fill","color"),new Y.Binding("visible","dir",(function(e){return 2===e})),new Y.Binding("width","thickness",(function(e){return 7+3*e})),new Y.Binding("height","thickness",(function(e){return 7+3*e})),new Y.Binding("segmentOffset","thickness",(function(e){return new Y.Point(-15,4+1.5*e)}))),e(Y.TextBlock,{alignmentFocus:new Y.Spot(0,1,-4,0),editable:!0},new Y.Binding("text").makeTwoWay(),new Y.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(Y.Adornment,e(Y.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:L(2)},new Y.Binding("pathPattern","thickness",L)),w({alignmentFocus:new Y.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",k(),T(),e("ContextMenuButton",e(Y.Panel,"Horizontal",A(0),A(1),A(2))),e("ContextMenuButton",e(Y.Panel,"Horizontal",e(Y.Panel,"Spot",Z(!1),P(Y.Spot.Top,!1),P(Y.Spot.Left,!1),P(Y.Spot.Right,!1),P(Y.Spot.Bottom,!1)),e(Y.Panel,"Spot",{margin:new Y.Margin(0,0,0,2)},Z(!0),P(Y.Spot.Top,!0),P(Y.Spot.Left,!0),P(Y.Spot.Right,!0),P(Y.Spot.Bottom,!0))))),new Y.Palette(s.current,{maxSelectionCount:1,linkTemplate:e(Y.Link,{locationSpot:Y.Spot.Center,selectionAdornmentTemplate:e(Y.Adornment,"Link",{locationSpot:Y.Spot.Center},e(Y.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(Y.Shape,{toArrow:"Standard",stroke:null}))},{routing:Y.Link.AvoidsNodes,curve:Y.Link.JumpOver,corner:5,toShortLength:4},new Y.Binding("points"),e(Y.Shape,{isPanelMain:!0,strokeWidth:2}),e(Y.Shape,{toArrow:"Standard",stroke:null})),model:new Y.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(V()(Y.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(Y.Node,"Auto",{locationSpot:Y.Spot.Center},new Y.Binding("location","location",Y.Point.parse).makeTwoWay(Y.Point.stringify),e(Y.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 Y.Binding("stroke").makeTwoWay(),new Y.Binding("fill").makeTwoWay(),new Y.Binding("figure")),e(Y.TextBlock,{margin:new Y.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new Y.Size(16,16),maxSize:new Y.Size(10,NaN),textAlign:"center",editable:!0},new Y.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(Y.Panel,"Grid",e(Y.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(Y.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),i.current.grid.visible=!0,i.current.grid.gridCellStroke="darkgray",i.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=i.current,i.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:a})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(k.ZP,{size:"large",onClick:f,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},ne=t(5112),te=t(97913),ie=ne.ZP.Group,ae={margin:"0 8px"},se=function(e){var n=e.callback,t=e.onCancel;return(0,h.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){n(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:ae,children:"单元格数:"}),(0,h.jsx)("span",{style:ae,children:"行数"}),(0,h.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(te.Z,{})}),(0,h.jsx)("span",{style:ae,children:"列数"}),(0,h.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(te.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:ae,children:"对齐方式:"}),(0,h.jsx)(_.Z.Item,{name:"align",children:(0,h.jsxs)(ie,{children:[(0,h.jsx)(ne.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(ne.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(ne.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(ne.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(k.ZP,{type:"ghost",onClick:t,children:"取消"})]})]})},oe=t(78673),re=t(66455),le=t.n(re),ce=(0,c.forwardRef)((function(e,n){var t=e.use3d,i=e.width,a=e.height,s=e.callback,r=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),d=(0,c.useState)(!1),u=o()(d,2),m=u[0],p=u[1],f=(0,c.useRef)({id:r,appName:"graphing",width:i||1e3,height:a||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){l.current=new(le())(f.current,!0),window.onload=function(){l.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return s&&s(e),e};return(0,c.useEffect)((function(){f.current.appName=m?"3D":"graphing",l.current.inject("applet_container")}),[m]),(0,c.useEffect)((function(){p(t)}),[t]),(0,c.useImperativeHandle)(n,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:r}),(0,h.jsxs)(E.Z,{align:"middle",children:[(0,h.jsx)(q.Z,{flex:1,children:(0,h.jsx)(oe.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:m,onChange:function(e){return p(e)}})}),(0,h.jsx)(q.Z,{children:(0,h.jsx)(k.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),de=t(33773),ue=t(27065),me="link",pe="upload-image",he="add-flowchart",fe="draw-image",ge="code-block",xe="add-table",ve="------------",ye={default:ve,left:":".concat(ve),center:":".concat(ve,":"),right:"".concat(ve,":")},we=t(56266);var be="@▁▁@",_e=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function je(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ke=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ce=l()(l()({},ke+"-B","bold"),ke+"-I","italic"),Se=l()(l()(l()(l()(l()(l()(l()(l()({},me,"添加链接"),ge,"添加代码块"),pe,"添加图片"),fe,"添加画图"),he,"插入流程图"),xe,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Te=function(e){var n=e.defaultValue,t=void 0===n?"":n,i=e.onChange,s=e.width,r=void 0===s?"100%":s,d=e.height,g=void 0===d?400:d,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,Z=void 0===A?"markdown-editor-id":A,P=e.showResizeBar,I=void 0!==P&&P,E=e.noStorage,D=void 0!==E&&E,R=e.showNullButton,O=void 0!==R&&R,H=e.showNullProgramButton,z=void 0!==H&&H,F=e.hidetoolBar,V=void 0!==F&&F,Y=e.fullScreen,W=void 0!==Y&&Y,K=e.onBlur,U=e.onCMBeforeChange,q=e.onFullScreen,Q=e.className,X=void 0===Q?"":Q,$=e.disablePaste,ne=void 0!==$&&$,te=e.disabled,ie=void 0!==te&&te,ae=e.disabledFill,oe=void 0!==ae&&ae,re=e.placeholder,le=void 0===re?"":re,ve=e.values,ke=void 0===ve?"":ve,Te=e.extraUse,Ne=(0,c.useState)(null),Le=o()(Ne,2),Ae=Le[0],Ze=Le[1],Pe=(0,c.useState)(t),Be=o()(Pe,2),Ie=Be[0],Me=Be[1],Ee=(0,c.useState)(j),De=o()(Ee,2),Ge=De[0],Re=De[1],Oe=(0,c.useState)(W),He=o()(Oe,2),ze=He[0],Fe=He[1],Ve=(0,c.useState)(""),Ye=o()(Ve,2),We=Ye[0],Ke=Ye[1],Ue=(0,c.useState)(0),Je=o()(Ue,2),qe=Je[0],Qe=Je[1],Xe=(0,c.useState)(g),$e=o()(Xe,2),en=$e[0],nn=$e[1],tn=(0,c.useState)(!1),an=o()(tn,2),sn=(an[0],an[1]),on=(0,c.useState)(0),rn=o()(on,2),ln=rn[0],cn=rn[1],dn=(0,c.useState)(0),un=o()(dn,2),mn=un[0],pn=un[1],hn=(0,c.useRef)(),fn=(0,c.useRef)(),gn=(0,c.useRef)(),xn=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Me(ke),null==Ae||Ae.setValue(ke),window.scrollTo(0,e)}),[ke]),(0,c.useEffect)((function(){null==q||q(ze)}),[ze]),(0,c.useEffect)((function(){if(hn.current){var e=function(e,t){if(!ne){var i=t.clipboardData;if(i){var a=i.types.toString(),s=i.items;if("Files"===a||i.types.indexOf("Files")>-1){if(t.preventDefault(),"stex"==L)return;try{var o,r=s[1];"file"===(null===(o=s[0])||void 0===o?void 0:o.kind)&&(r=s[0]);var l=r.getAsFile(),c=l.name.split(".").pop();M(l,(function(e){var t,i,a;e.id?(null==l||null===(t=l.type)||void 0===t?void 0:t.indexOf("image"))>-1?n.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("video"))>-1?n.replaceSelection('<video width="100%" controls src="'.concat(ue.Z.API_SERVER,"/api/attachments/").concat(e.id,'"></video>')):(null==l||null===(a=l.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?n.replaceSelection('<a href="'.concat(ue.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(l.type,'&disposition=inline" target="_blank">').concat(l.name,"</a>")):_e.includes(c)?n.replaceSelection('<a href="'.concat(ue.Z.API_SERVER,"/api/attachments/").concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(l.name,"</a>")):n.replaceSelection("[".concat(l.name,"](").concat(ue.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(t){N.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}t.preventDefault()},n=u().fromTextArea(hn.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",le):n.setOption("placeholder",null))})),n.on("keydown",(function(e,n){if(8===n.keyCode){var t=function(e,n){var t=e.getDoc(),i=t.getCursor(),a=t.getLine(i.line),s=a.charAt(i.ch-1),o=a.lastIndexOf("@▁@",i.ch),r=a.lastIndexOf("@▁▁@",i.ch),l=o>r?o:r,c=o>r?3:4;if(-1===be.indexOf(s))return null;if(console.log("change1:",n,e,a,i,l,o,r,s),l>=0&&i.ch-l<5){var d=l+c;return t.replaceRange("",{line:i.line,ch:l},{line:i.line,ch:d}),{line:i.line,ch:d}}return null}(e);t&&n.preventDefault()}})),_&&n.focus(),n.on("paste",e),ie&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Ze(n),function(){n.off("paste",e)}}}),[]);var vn=(0,c.useCallback)((function(){fn.current}),[en,fn,ze]);(0,c.useEffect)((function(){if(Ae){var e=function(){var e=new m.Z((function(e){var n,t=a()(e);try{for(t.s();!(n=t.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(vn(),Ae.setSize("100%","100%"),Ae.refresh())}}catch(e){t.e(e)}finally{t.f()}}));return e.observe(hn.current.parentElement),e}();return function(){var n,t;null!==(n=hn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(t=hn.current)||void 0===t?void 0:t.parentElement)}}}),[Ae,vn]),(0,c.useEffect)((function(){if(Ae){for(var e=[],n=function(){var n=o()(i[t],2),a=n[0],s=n[1],r=l()({},a,(function(){yn(s)}));e.push(r),Ae.addKeyMap(r)},t=0,i=Object.entries(Ce);t<i.length;t++)n();return function(){for(var n=0,t=e;n<t.length;n++){var i=t[n];Ae.removeKeyMap(i)}}}}),[Ae]),(0,c.useEffect)((function(){W!==ze&&Fe(W)}),[W]),(0,we.Z)((function(){if(!D&&qe>0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(Z);e>=qe+1e4&&(!n||n!==Ie)&&(window.sessionStorage.setItem(Z,Ie),sn(!0))}}),1e4),(0,c.useEffect)((function(){Re(j)}),[Ae,j]),(0,c.useEffect)((function(){Ae&&_&&Ae.focus()}),[Ae,_]),(0,c.useEffect)((function(){if(Ge&&Ae){var e=function(e){var n=e.target;if(xn.current){var t=n.scrollTop/n.scrollHeight;xn.current.scrollTop=xn.current.scrollHeight*t}},n=Ae.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[Ae,Ge]),(0,c.useEffect)((function(){if(Ae&&U){var e=function(e,n){U(e,n)};return Ae.on("beforeChange",e),function(){Ae.off("beforeChange",e)}}}),[Ae,U]),(0,c.useEffect)((function(){if(Ae&&K){var e=function(){K(Ae.getValue())};return Ae.on("blur",e),function(){Ae.off("blur",e)}}}),[Ae,K]),(0,c.useEffect)((function(){if(Ae){var e=function(e,n){var t=e.getValue();Me(t),Qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(z?i(t,kn(t)):i(t))};return Ae.on("change",e),function(){Ae.off("change",e)}}}),[Ae,i]),(0,c.useEffect)((function(){if(Ae)if(null==t)Ae.setValue(""),Me("");else{var e=window.scrollY||window.pageYOffset;t!==Ae.getValue()&&(Ae.setValue(t),Me(t),Ae.setCursor(ie?1:Ae.lineCount(),0),window.scrollTo(0,e))}}),[Ae,t]);var yn=(0,c.useCallback)((function(e){var n=Ae.getCursor(),t=Ae.getSelection(),i=t.split("\n");switch(e){case"bold":return Ae.replaceSelection("**"+t+"**"),""===t&&Ae.setCursor(n.line,n.ch+2),Ae.focus();case"italic":return Ae.replaceSelection("*"+t+"*"),""===t&&Ae.setCursor(n.line,n.ch+1),Ae.focus();case"code":return Ae.replaceSelection("`"+t+"`"),""===t&&Ae.setCursor(n.line,n.ch+1),Ae.focus();case"inline-latex":return Ke("inline-latex"),Ae.focus();case"latex":return Ae.replaceSelection("```latex\n"+t+"\n```"),Ae.setCursor(n.line+1,t.length+1),Ae.focus();case"line-break":return Ae.replaceSelection("<br/>\n"),Ae.focus();case"list-ul":return""===t?Ae.replaceSelection("- "+t):Ae.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ae.focus();case"list-ol":return""===t?Ae.replaceSelection("1. "+t):Ae.replaceSelection(i.map((function(e,n){return""===e?"":"".concat(n+1,". ").concat(e)})).join("\n")),Ae.focus();case"add-null-ch":return""===t&&Ae.setCursor(n.line,n.ch),Ae.replaceSelection("▁"),Ae.focus();case"add-signal":return""===t&&Ae.setCursor(n.line,n.ch),Ae.replaceSelection("@▁@"),Ae.focus();case"add-multiple":return""===t&&Ae.setCursor(n.line,n.ch),Ae.replaceSelection(be),Ae.focus();case"inster-template-1":return""===t&&Ae.setCursor(n.line,n.ch),Ae.replaceSelection("\n**模板标题**\n模板正文内容可输入文本内容和粘贴图片等操作"),Ae.focus();case"eraser":return Ae.setValue(""),Ae.focus();case"trigger-watch":return Re(!Ge),Ae.focus();case"trigger-full-screen":return Fe(!ze),Ae.focus();case me:return void Ke(me);case ge:return void Ke(ge);case pe:return void Ke(pe);case fe:return void Ke(fe);case"maths-latex":return void Ke("maths-latex");case he:return void Ke(he);case xe:return void Ke(xe);default:throw new Error}}),[Ae,Ge,ze]),wn=(0,c.useCallback)((function(e,n){var t,i,a,s,o;switch(Ke(""),We){case me:var r=e.title,l=e.link;return Ae.replaceSelection("[".concat(r,"](").concat(l,")")),Ae.focus();case ge:var c=e.language,d=e.content;return Ae.replaceSelection(["```"+c,d,"```"].join("\n")),Ae.focus();case"maths-latex":for(var u=atob(e),m=new Uint8Array(u.length),p=0;p<u.length;p++)m[p]=u.charCodeAt(p);M(new Blob([m],{type:"image/png"}),(function(e){e.id?Ae.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":Ae.replaceSelection("`$$"+e+"$$`");break;case pe:case fe:case"add-flowchart":var h=e.src,f=e.alt,g=n,x=null==g||null===(t=g.name)||void 0===t||null===(t=t.split("."))||void 0===t||null===(i=t.pop)||void 0===i?void 0:i.call(t);return(null==g||null===(a=g.type)||void 0===a?void 0:a.indexOf("image"))>-1||null==g||!g.type?f?Ae.replaceSelection("![ ".concat(f," ]( ").concat(h,' "').concat(f,'" )')):Ae.replaceSelection("![,](".concat(h,")")):(null==g||null===(s=g.type)||void 0===s?void 0:s.indexOf("video"))>-1?Ae.replaceSelection('<video width="100%" controls src="'.concat(ue.Z.API_SERVER).concat(h,'"></video>')):(null==g||null===(o=g.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?Ae.replaceSelection('<a href="'.concat(ue.Z.API_SERVER).concat(h,"?type=").concat(g.type,'&disposition=inline" target="_blank">').concat(g.name,"</a>")):_e.includes(x)?Ae.replaceSelection('<a href="'.concat(ue.Z.API_SERVER).concat(h,'?type=office&disposition=inline" target="_blank">').concat(g.name,"</a>")):Ae.replaceSelection("[".concat(g.name,"](").concat(ue.Z.API_SERVER).concat(h,")")),Ae.focus();case xe:for(var v=e.row,y=e.col,w=e.align,b="\n",_=0;_<v;_++){for(var j=[],k=[],C=0;C<y;C++)1===_&&k.push(ye[w]),j.push(" ");1===_&&(b+="| ".concat(k.join(" | ")," |\n")),b+="| ".concat(j.join(1===y?"":" | ")," |\n")}return Ae.replaceSelection(b+"\n"),Ae.focus();default:throw new Error}}),[Ae,We]),bn=(0,c.useMemo)((function(){switch(We){case me:return(0,h.jsx)(S,{callback:wn,onCancel:_n});case ge:return(0,h.jsx)(T.Z,{callback:wn,onCancel:_n});case pe:return(0,h.jsx)(B,{callback:wn,onCancel:_n});case he:return(0,h.jsx)(ee,{callback:wn,onCancel:_n});case xe:return(0,h.jsx)(se,{callback:wn,onCancel:_n});case"maths-latex":return(0,h.jsx)(ce,{showSaveButton:!0,callback:wn});case"inline-latex":return(0,h.jsx)(de.Z,{showSaveButton:!0,callback:wn});default:return null}}),[We]);function _n(){Ke("")}(0,c.useEffect)((function(){if(gn.current){var e=function(e){a=!0,s=e.pageY},n=function(){a=!1},t=function(e){if(a){var n=e.pageY-s;n<0&&(n=0),n>300&&(n=300),nn(g+n+"px")}},i=gn.current,a=!1,s=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)}}}),[Ae,gn]),(0,c.useEffect)((function(){nn(g)}),[g]);var jn={width:je(r),height:je(en)},kn=((0,c.useMemo)((function(){if(qe){var e=new Date(qe),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}),[qe]),function(e){var n=[];if(z){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,t,i){n.push({multiLine:!("@▁@"===e)})}))}return n});(0,c.useEffect)((function(){if(Se[We]&&We!==fe&&We!==he){var e=document.getElementsByClassName("ant-modal")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;cn(n),pn(t)}}),[We]);var Cn=function(e,n,t,i){var a=document.body.clientHeight,s=document.body.clientWidth;return!(e<20&&t>e||e>s-20&&t<e||n<20&&i>n||n>a-20&&i<n)||(document.body.onmousemove=null,document.body.onmouseup=null,!1)};return(0,h.jsxs)(c.Fragment,{children:[(0,h.jsx)("div",{className:"markdown-editor-wrapper",ref:fn,children:(0,h.jsxs)("div",{className:"markdown-editor-container ".concat(X," ").concat(Ge?"on-preview":""," ").concat(v?"mini":""," ").concat(ze?"full-screen":""),style:jn,children:[(0,h.jsx)(w,{insertTemp:k,watch:Ge,fullScreen:ze,showNullButton:O,showNullProgramButton:z,onActionCallback:yn,hidetoolBar:V,extraUse:Te}),(0,h.jsxs)("div",{className:"markdown-editor-body",children:[(0,h.jsx)("div",{className:"codemirror-container",children:(0,h.jsx)("textarea",{ref:hn,placeholder:le})}),Ge?(0,h.jsxs)("div",{ref:xn,className:"preview-container",children:["stex"===L&&(0,h.jsx)(f,{value:Ie}),"stex"!==L&&(0,h.jsx)(p.Z,{disabledFill:oe,showProgramFill:z,value:Ie})]}):null]})]})}),I?(0,h.jsx)("a",{ref:gn,className:"editor-resize"}):null,We===fe&&(0,h.jsx)(G,{callback:wn,onCancel:_n}),We===he&&(0,h.jsx)(ee,{callback:wn,onCancel:_n}),(0,h.jsx)(b.Z,{children:Se[We]&&We!==fe&&We!==he?(0,h.jsx)(J.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ln,top:mn},title:(0,h.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var n=e.clientX-ln,t=e.clientY-mn;document.body.onmousemove=function(e){var i=e.clientX-n,a=e.clientY-t,s=document.getElementsByClassName("ant-modal")[0],o=window.innerWidth-s.offsetWidth,r=window.innerHeight-s.offsetHeight;i=Math.max(0,Math.min(i,o)),a=Math.max(0,Math.min(a,r)),Cn(e.clientX,e.clientY,n,t)&&(cn(i),pn(a))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:Se[We]}),open:!0,onCancel:_n,footer:null,destroyOnClose:!0,width:We===he?"1200px":null,height:We===he?"80vh":null,className:"markdown-popup-form",children:bn}):null})]})}},27308:function(e,n,t){"use strict";t.d(n,{Z:function(){return p}});var i=t(82100),a=t.n(i),s=t(29186),o=t.n(s),r=t(80619),l=t.n(r),c=t(47074),d=t.n(c),u=t(59301),m=t(4676),p=function(e){l()(t,e);var n=d()(t);function t(e){var i;a()(this,t),i=n.call(this,e);var s=window.document;return i.node=s.createElement("div"),s.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}(u.Component)},56266:function(e,n,t){"use strict";t.d(n,{Z:function(){return a}});var i=t(59301);function a(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])}},31954:function(e,n,t){"use strict";var i=t(82242),a=t.n(i),s=t(85573),o=t.n(s),r=t(7557),l=t.n(r),c=t(41498),d=t.n(c),u=t(79800),m=t.n(u),p=t(59301),h=t(21068),f=t(78241),g=t(43418),x=t(8591),v=t(52306),y=t(7880),w=t(27065),b=t(83547),_=t(51136),j=t(99232),k=t.n(j),C=t(6457),S=t(37712),T=h.Z.Dragger;n.Z=(0,y.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var n,t=e.classroomList,i=e.dispatch,s=e.onOk,r=((0,y.useParams)(),f.Z.useForm()),c=m()(r,1)[0],u=(0,p.useState)(),h=m()(u,2),j=h[0],N=h[1],L=(0,p.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=d()(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,p.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:d()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){c.resetFields(),i({type:"classroomList/setActionTabs",payload:{}})},children:(0,S.jsxs)(f.Z,{form:c,onFinish:function(){var e=d()(l()().mark((function e(n){var a,o,r,d,u;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),(a=new FormData).append("type",t.actionTabs.type),a.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:a},!0);case 10:r=e.sent,P(!1),0===(null==r?void 0:r.status)&&(s(),c.resetFields(),i({type:"classroomList/setActionTabs",payload:{}}),(null==r||null===(d=r.data)||void 0===d||null===(d=d.fail)||void 0===d?void 0:d.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,S.jsx)(v.Z,{pagination:!1,dataSource:null==r||null===(u=r.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,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,a()(a()({},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"})]}))})]})]})})}))},48071:function(e,n,t){"use strict";var i=t(82242),a=t.n(i),s=t(85573),o=t.n(s),r=t(7557),l=t.n(r),c=t(41498),d=t.n(c),u=t(79800),m=t.n(u),p=t(59301),h=t(21068),f=t(78241),g=t(43418),x=t(8591),v=t(52306),y=t(8772),w=t(97913),b=t(95237),_=t(43604),j=t(22744),k=t(7880),C=t(11094),S=t(27065),T=t(83547),N=t(51136),L=t(47762),A=t(99232),Z=t.n(A),P=t(6457),B=t(37712),I=h.Z.Dragger;n.Z=(0,k.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var n,t=e.classroomList,i=e.dispatch,s=e.onOk,r=(0,k.useParams)(),c=f.Z.useForm(),u=m()(c,1)[0],h=(0,p.useState)(),A=m()(h,2),M=A[0],E=A[1],D=(0,p.useState)(!1),G=m()(D,2),R=G[0],O=G[1],H={height:100,onRemove:function(){E("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:(n=d()(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,p.useEffect)((function(){u.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:R},onOk:d()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){u.resetFields(),i({type:"classroomList/setActionTabs",payload:{}})},children:(0,B.jsxs)(f.Z,{form:u,colon:!1,onFinish:function(){var e=d()(l()().mark((function e(n){var a,o,c,d;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 O(!0),(a=new FormData).append("name",n.name),a.append("type",t.actionTabs.type),"exercise"===t.actionTabs.type?a.append("time",n.time||""):a.append("description",n.description||""),a.append("publish_time",Z()(n.publish_time).format("YYYY-MM-DD HH:mm")),a.append("end_time",Z()(n.end_time).format("YYYY-MM-DD HH:mm")),a.append("file",M),e.next=13,(0,N.ZP)("/api/courses/".concat(r.coursesId,"/export_external_score_homework.json"),{method:"post",body:a},!0);case 13:o=e.sent,O(!1),0===(null==o?void 0:o.status)&&(u.resetFields(),i({type:"classroomList/setActionTabs",payload:{}}),s(),(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===(d=o.data)||void 0===d?void 0:d.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,P.FH)("",S.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(t.actionTabs.type))}}));case 16: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.jsx)(f.Z.Item,{label:"答题时长",labelCol:{span:3},name:"time",children:(0,B.jsx)(w.Z,{style:{width:"100%"},addonAfter:"分钟",placeholder:"请输入答题时长"})}),(0,B.jsxs)(b.Z,{style:{marginLeft:6,marginBottom:12},children:[(0,B.jsx)(_.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)(_.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"结束时间",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,"",u.getFieldValue("publish_time"))},disabledTime:function(e){return(0,L.d0)(e,u.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,a()(a()({},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"})]}))})]})]})})}))},41107:function(e,n,t){"use strict";var i=t(7557),a=t.n(i),s=t(85573),o=t.n(s),r=t(37205),l=t.n(r),c=t(82242),d=t.n(c),u=t(41498),m=t.n(u),p=t(79800),h=t.n(p),f=t(59301),g=t(78241),x=t(8591),v=t(43418),y=t(95237),w=t(43604),b=t(22744),_=t(5112),j=t(24905),k=t(99232),C=t.n(k),S=t(51136),T=t(6457),N=t(7880),L=t(89918),A=t(69363),Z=t(15766),P=t(47762),B=t(37712);n.Z=(0,N.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var n=e.classroomList,t=e.dispatch,i=e.courseEndTime,s=(0,N.useParams)(),r=g.Z.useForm(),c=h()(r,1)[0],u=(0,f.useState)(1),p=h()(u,2),k=p[0],I=p[1],M=(0,f.useState)([]),E=h()(M,2),D=E[0],G=E[1],R=(0,f.useState)(0),O=h()(R,2),H=(O[0],O[1]),z=(0,f.useState)(20),F=h()(z,2),V=(F[0],F[1],(0,f.useState)(!0)),Y=h()(V,2),W=(Y[0],Y[1]),K=(0,f.useState)([]),U=h()(K,2),J=U[0],q=U[1],Q=(0,f.useState)(!0),X=h()(Q,2),$=X[0],ee=X[1];s.id=s.coursesId,(0,f.useEffect)((function(){if("立即发布"===n.actionTabs.key&&(ie(),ne(),2===n.actionTabs.type)){var e=n.actionTabs.selectArrsAll[0];ee(e.unified_setting)}}),[n.actionTabs]);var ne=function(){var e=m()(a()().mark((function e(t){var i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return W(!0),e.next=3,(0,A.c_)(d()(d()({},s),{},{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&&(G(l()(null==i?void 0:i.course_groups)),H(null==i?void 0:i.course_groups_count),W(!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)}}(),te=function(){var e=m()(a()().mark((function e(){var i,o,r,u;return a()().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 x.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),re(!1),e.abrupt("return");case 4:if(!((r=d()({},c.getFieldsValue())).end_time<=r.publish_time)){e.next=9;break}return x.ZP.info("截止时间不能大于或等于发布时间"),re(!1),e.abrupt("return");case 9:if(!((null==J?void 0:J.length)<=0&&!$&&D.length>0)){e.next=13;break}return x.ZP.info("发布班级不能为空"),re(!1),e.abrupt("return");case 13:return u={homework_ids:l()(n.actionTabs.selectArrs),group_ids:J.length>0?J.map((function(e){return e.id})):null===(o=n.detailShixunsList)||void 0===o?void 0:o.course_groups,end_time:C()(r.end_time).format("YYYY-MM-DD HH:mm"),publish_time:C()(r.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!J.length},re(!0),e.next=17,(0,S.ZP)("/api/courses/".concat(s.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:d()({},u)});case 17:0===e.sent.status?(re(!1),ie(),(0,T.L9)(["教学课堂","课程实验","立即发布"]),x.ZP.success("发布成功"),t({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,L.GJ)()?n.actionTabs.detail?(t({type:"shixunHomeworks/setActionTabs",payload:{}}),t({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:d()({},s)}),t({type:"shixunHomeworks/getWorkSetting",payload:d()({},s)})):t({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},n.actionTabs.params),{},{type:4})}):t({type:"classroomList/getClassroomShixunsList",payload:d()({},n.actionTabs.params)}),"0"===localStorage.getItem("Noviceguide")||t({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:13,text:(0,B.jsx)("div",{children:"最后,咱们给教学课堂添加一名学生~点击“添加学生”,在弹窗页面中输入并搜索学生姓名,点击“确定”就可以为您的课堂添加第一位学生啦~"})}})):re(!1);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ie=function(){I(1),G([]),q([])},ae=(n.detailShixunsList,(0,f.useState)(!1)),se=h()(ae,2),oe=se[0],re=se[1];return(0,B.jsxs)(v.Z,{width:600,centered:!0,confirmLoading:oe,title:"发布作业",open:"立即发布"===n.actionTabs.key,okText:"发布作业",cancelText:"暂不发布",onOk:function(){return te()},onCancel:function(){ie(),t({type:"classroomList/setActionTabs",payload:{}})},children:[(0,B.jsxs)("p",{className:"tc",children:["学生将立即收到作业",(0,B.jsx)("br",{}),'本操作只对"未发布"的作业有效']}),(0,B.jsxs)(g.Z,{form:c,children:[(0,B.jsxs)("div",{style:{paddingLeft:0},children:[(0,B.jsxs)(y.Z,{className:"mt30",align:"middle",children:[(0,B.jsx)(w.Z,{children:(0,B.jsx)(g.Z.Item,{name:"publish_time",label:"发布时间",children:(0,B.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,B.jsx)(w.Z,{className:"ml20",children:(0,B.jsx)(g.Z.Item,{name:"end_time",label:"截止时间:",children:(0,B.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,B.jsxs)(y.Z,{style:{marginBottom:"10px"},children:[(0,B.jsx)("span",{className:"mr5",children:"发布设置:"}),(0,B.jsxs)(_.ZP.Group,{value:$,onChange:function(e){ee(e.target.value),q([])},children:[(0,B.jsx)(_.ZP,{value:!0,disabled:!n.actionTabs.manage_all_group,children:"统一发布"}),(0,B.jsx)(_.ZP,{className:"ml20",disabled:D.length<=0,value:!1,children:"分班发布"})]})]}),D.length<=0&&2===n.actionTabs.type&&(0,B.jsx)("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"},children:'课堂无分班,仅支持选择“统一发布"'})]}),(1===n.actionTabs.type||!$)&&D.length>0&&(0,B.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"},children:[(0,B.jsx)("span",{style:{flex:1},children:(0,B.jsx)(j.Z,{checked:J.length===D.length,onChange:function(e){J.length===D.length?q([]):q(D)},children:"全选"})}),(0,B.jsx)("span",{style:{width:16}}),(0,B.jsxs)("span",{style:{flex:1},children:["已选择",J.length||0,"个分班"]})]}),(1===n.actionTabs.type||!$)&&D.length>0&&(0,B.jsx)(Z.Z,{data:D,selectedRowKeys:J,setSelectedRowKeys:q})]})]})}))},15766:function(e,n,t){"use strict";t.d(n,{Z:function(){return y}});var i=t(7557),a=t.n(i),s=t(41498),o=t.n(s),r=t(79800),l=t.n(r),c=t(59301),d=t(8772),u=t(24905),m=t(95237),p="leftdiv___aBzsX",h="listClass___bxIEW",f="spantitle___v_Vc4",g="rightdiv___xWu4M",x=t(7406),v=t(37712),y=function(e){var n=e.data,t=(e.value,e.handleChangePage,e.setSelectedRowKeys),i=e.selectedRowKeys,s=(e.onChange,(0,c.useState)([])),r=l()(s,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:p,children:[(0,v.jsx)(d.Z.Search,{size:"middle",onChange:function(){var e=o()(a()().mark((function e(t){return a()().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)(u.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)(u.Z,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:e.is_published,value:"".concat(e.id),children:(0,v.jsxs)("div",{className:h,children:[(0,v.jsx)("span",{className:f,style:{width:e.is_published?"108px":"170px"},children:e.name}),e.is_published&&(0,v.jsx)("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"},children:"已发布"})]})})},e.id)}))})})]}),(0,v.jsxs)("div",{className:g,children:[(0,v.jsx)(d.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)}))})})]})]})}},33150:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Re}});var i=t(37205),a=t.n(i),s=t(7557),o=t.n(s),r=t(41498),l=t.n(r),c=t(82242),d=t.n(c),u=t(79800),m=t.n(u),p=t(39647),h=t.n(p),f=t(59301),g=t(51136),x=t(7880),v=t(20834),y=t(8591),w=t(8772),b=t(95237),_=t(43604),j=t(38854),k=t(6848),C=t(81327),S=t(87876),T=t(88590),N=t(24905),L=t(43418),A=t(5112),Z=t(89918),P=t(8876),B=t(6457),I=t(6309),M=t(37712),E=["classroomList","dispatch","match","location","user"],D=(0,x.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var n,t,i=e.classroomList,s=e.dispatch,r=(e.match,e.location,e.user),c=(h()(e,E),(0,x.useParams)()),u=(0,f.useState)(!1),p=m()(u,2),v=p[0],w=p[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,Z.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?L.Z.info({title:"权限提示",className:"custom-modal-divider ",icon:null,content:(0,M.jsxs)("div",{children:["当前选中资源中:",(0,M.jsx)("span",{className:"c-blue",children:e.hasNum}),"个由您本人发布,",(0,M.jsx)("span",{className:"c-red",children:e.noHasNum})," 个由其他老师发布。",(0,M.jsx)("br",{}),"课堂内只能删除本人发布的资源,请取消选中其他老师发布的资源。"]}),onOk:function(){S()}}):k(!0)}else k(!1)}),[i.actionTabs.key]);var S=function(){s({type:"classroomList/setActionTabs",payload:{}})};return(0,M.jsx)(L.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:a()(i.actionTabs.selectArrs)}});case 5:t=e.sent,w(!1),0===t.status&&((0,B.L9)(["教学课堂","课程实验","删除"]),y.ZP.success("删除成功"),s({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,Z.GJ)()?s({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},i.actionTabs.params),{},{type:4})}):s({type:"classroomList/getClassroomShixunsList",payload:d()({},i.actionTabs.params)}),s({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,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("p",{children:"提交作品将全部被删除,不可恢复"}),(0,M.jsx)("p",{children:"是否确认删除?"})]}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("p",{style:{color:"#DD0000"},children:"删除实训则会清除学生所有的答题数据,且数据不可恢复,如确定删除,请输入下方验证码"}),(0,M.jsx)(I.Z,{ref:function(e){return C.current=e}})]})})})),G=t(41107),R=t(58325),O=(0,x.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var n=e.classroomList,t=e.dispatch,i=(0,x.useParams)();return(0,M.jsx)(L.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:a()(n.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,B.L9)(["教学课堂","课程实验","设为公开"]),y.ZP.success("操作成功"),t({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,Z.GJ)()?t({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},n.actionTabs.params),{},{type:4})}):t({type:"classroomList/getClassroomShixunsList",payload:d()({},n.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){t({type:"classroomList/setActionTabs",payload:{}})},children:(0,M.jsxs)("p",{children:["设为公开后,非课堂成员也可以访问查看",(0,M.jsx)("br",{}),"是否确认设为公开?"]})})})),H=t(78241),z=(t(99232),(0,x.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var n,t,i=e.classroomList,a=(e.loading,e.dispatch),s=((0,x.useParams)(),(0,f.useState)(!1)),r=m()(s,2),c=r[0],u=r[1],p=i.actionTabs,h=H.Z.useForm(),v=m()(h,1)[0];return(0,f.useEffect)((function(){var e;"重命名"===i.actionTabs.key&&v.setFieldsValue({name:null===(e=p.selectArrs)||void 0===e?void 0:e.name})}),[i.actionTabs.key]),(0,M.jsx)(L.Z,{centered:!0,title:"重命名",confirmLoading:c,open:"重命名"===i.actionTabs.key,okText:"确定",cancelText:"取消",destroyOnClose:!0,onOk:l()(o()().mark((function e(){var n,t,s,r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,Z.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(),u(!0),s="/api/homework_commons/".concat(i.actionTabs.selectArrs.homework_id,"/alter_name.json"),e.next=8,(0,g.ZP)(s,{method:"post",body:d()({},t)});case 8:r=e.sent,u(!1),0===r.status&&(y.ZP.success("修改成功"),a({type:"classroomList/setActionTabs",payload:{}}),(0,Z.GJ)()?a({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},i.actionTabs.params),{},{type:4})}):a({type:"classroomList/getClassroomShixunsList",payload:d()({},i.actionTabs.params)}));case 11:case"end":return e.stop()}}),e)}))),onCancel:function(){u(!1),a({type:"classroomList/setActionTabs",payload:{}})},children:(0,M.jsxs)(H.Z,{form:v,children:[(0,M.jsxs)(b.Z,{className:"mt10 c-grey-999",children:[(0,M.jsx)(_.Z,{children:"本实训初始名称:"}),(0,M.jsx)(_.Z,{flex:"1",children:null===(n=p.selectArrs)||void 0===n?void 0:n.shixun_name})]}),(0,M.jsx)(H.Z.Item,{name:"name",children:(0,M.jsxs)(b.Z,{className:"mt10",align:"middle",children:[(0,M.jsx)(_.Z,{className:"font14",children:"作业名称:"}),(0,M.jsx)(_.Z,{flex:"1",children:(0,M.jsx)(w.Z,{defaultValue:null===(t=p.selectArrs)||void 0===t?void 0:t.name})})]})})]})})}))),F=t(43428),V=t(3113),Y=t(71418),W=t(28103),K=t(7406),U="drawer___QqugY",J="menu___uKpxi",q="actived___hCeHj",Q="actived2___aIAeg",X="subTag___S0zfl",$="listItem___Ulw3D",ee="listItem2___J8GtN",ne="info___gY955",te="title___hyfzM",ie="titleLeft___eH38u",ae="search___GnrcF",se="filter___jwVvV",oe="description___ynLaI",re="menuCourse___HRXxE",le="authorname___qn85G",ce="tooltip-content___A6uPo",de=t(54506),ue=t(60643),me=t(30941),pe=t(94433),he=(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"}]}]),fe=(0,x.connect)((function(e){return{classroomList:e.classroomList,shixunsList:e.shixunsList,loading:e.loading.effects}}))((function(e){var n,t,i=e.classroomList,s=(e.loading,e.dispatch),r=e.shixunsList,c=(0,f.useState)(d()({},(0,x.useParams)())),u=m()(c,2),p=u[0],h=(u[1],i.shixunLists),v=i.shixunAiRecommendLists,w=(0,f.useState)([]),j=m()(w,2),C=j[0],S=j[1],L=(0,f.useState)({}),A=m()(L,2),P=A[0],I=A[1],E=(0,f.useState)([]),D=m()(E,2),G=D[0],R=D[1],O=(0,f.useState)(!1),H=m()(O,2),z=H[0],ee=H[1],ae=[{name:"最新",id:"created_at"},{name:"最热",id:"myshixuns_count"}].filter((function(e){return!!e})),fe=(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}),ge=m()(fe,2),xe=ge[0],ve=ge[1];(0,f.useEffect)((function(){ye()}),[p.coursesId,xe]),(0,f.useEffect)((function(){"选用实践项目"===i.actionTabs.key&&S([]),s({type:"shixunsList/getMenus",payload:{}})}),[i.actionTabs.key]),(0,f.useEffect)((function(){(null!=h&&h.shixun_list||null!=v&&v.shixun_list)&&I("recommend"===xe.sort?v:h)}),[h,v]);var ye=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(I([]),ee(!0),n=d()({},xe),"recommend"===xe.sort&&(n.sort="myshixuns_count"),"recommend"!==xe.sort){e.next=9;break}return e.next=7,s({type:"classroomList/getShixunAiRecommendLists",payload:d()(d()({},n),{},{course_id:p.coursesId})});case 7:e.next=12;break;case 9:return t=d()({},n),e.next=12,s({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(a()((null==i?void 0:i.groups)||[]))),S([]),ee(!1);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if("选用实践课程"!==i.actionTabs.key){var we=(0,me.P)(),be=m()(we,4),_e=be[0],je=be[1],ke=be[2],Ce=be[3],Se=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,s({type:"classroomList/createShixunHomework",payload:{coursesId:p.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,B.L9)(["教学课堂","课程实验","选用实践项目"]),y.ZP.success("操作成功"),s({type:"classroomList/setActionTabs",payload:{}}),(0,Z.GJ)()?s({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},i.actionTabs.params),{},{type:4})}):s({type:"classroomList/getClassroomShixunsList",payload:d()({},i.actionTabs.params)}),s({type:"classroomList/getClassroomLeftMenus",payload:{id:p.coursesId}}),"0"===localStorage.getItem("Noviceguide")||s({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:12,text:(0,M.jsx)("div",{children:"接下来,咱们给教学课堂添加一个“课程实验”~点击“选用实践项目”,选择一个作业,然后点击“立即发布”就给实践课堂添加了一个课程实验。"})}}));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Te=(0,f.useState)(!1),Ne=m()(Te,2),Le=Ne[0],Ae=Ne[1];return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(F.Z,{placement:"bottom",height:"100%",closable:!0,open:"选用实践项目"===i.actionTabs.key,rootClassName:U,onClose:function(){s({type:"classroomList/setActionTabs",payload:{key:""}})},footer:(0,M.jsxs)("div",{className:"tc",style:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,M.jsx)(V.ZP,{size:"middle",onClick:function(){s({type:"classroomList/setActionTabs",payload:{}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},children:"取消"}),(0,M.jsx)(V.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",onClick:l()(o()().mark((function e(){var n,t,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Ae(!0),e.next=3,Ce({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 a=null==P||null===(t=P.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,Se(a);case 8:Ae(!1);case 9:case"end":return e.stop()}}),e)}))),type:"primary",loading:Le,children:"确定"})]}),children:[(0,M.jsx)("section",{className:"tc",children:(0,M.jsx)(ue.Z,{onChange:function(e){null!=e&&e.keyword&&(0,pe.tk)({name:null==e?void 0:e.keyword,copywriting:null==e?void 0:e.keyword,position:"Shixun"}),ve(d()(d()(d()({},xe),e),{},{page:1}))}})}),(0,M.jsx)("section",{className:"edu-container",children:(0,M.jsx)(Y.Z,{spinning:z,children:(0,M.jsxs)("aside",{children:[he.map((function(e,n){var t;return 0!==n?null:(0,M.jsxs)("ul",{className:J,children:[(0,M.jsx)("li",{children:e.name}),null==e||null===(t=e.children)||void 0===t?void 0:t.map((function(n,t){return(0,M.jsx)("li",{className:xe[e.id]==n.id?q:"",onClick:function(){xe[e.id]=n.id,xe.page=1,ve(d()({},xe))},children:(0,M.jsx)("strong",{children:n.name})})}))]},n)})),(0,M.jsxs)("ul",{className:J,children:[(0,M.jsx)("li",{children:"方向"}),(0,M.jsx)("li",{className:null!=xe&&xe.discipline_id?"":q,onClick:function(){delete xe.tag_level,delete xe.sub_discipline_id,delete xe.discipline_id,xe.page=1,ve(d()({},xe))},children:(0,M.jsx)("strong",{children:"全部"})}),r.menus&&r.menus.map((function(e,n){return(0,M.jsxs)("li",{className:(null==xe?void 0:xe.discipline_id)==e.id?q:"",children:[(0,M.jsx)("strong",{onClick:function(){xe.tag_level=1,xe.discipline_id=e.id,delete xe.sub_discipline_id,xe.page=1,ve(d()({},xe))},children:e.name}),(0,M.jsx)("div",{children:e.sub_repertoires.map((function(n,t){return(0,M.jsxs)("div",{className:"mt5",children:[(0,M.jsx)("div",{className:(null==xe?void 0:xe.sub_discipline_id)==n.id&&2===xe.tag_level?"".concat(Q," ").concat(X):X,onClick:function(){xe.tag_level=2,xe.discipline_id=e.id,xe.sub_discipline_id=n.id,ve(d()({},xe))},children:n.name}),(0,M.jsx)("ul",{className:"mt5",children:n.tags&&n.tags.map((function(n,t){return(0,M.jsx)("li",{className:xe.sub_discipline_id==n.id&&3===xe.tag_level?Q:"",onClick:function(){xe.tag_level=3,xe.discipline_id=e.id,xe.sub_discipline_id=n.id,ve(d()({},xe))},children:n.name},t)}))})]},t)}))})]},n)}))]}),"mine"===xe.type&&(0,M.jsxs)("ul",{className:J,children:[(0,M.jsx)("li",{children:"目录"}),null==G?void 0:G.map((function(e,n){return(0,M.jsx)("li",{className:xe.group_id==e.id?q:"",onClick:function(){xe.group_id=e.id,xe.page=1,ve(d()({},xe))},children:(0,M.jsx)("strong",{children:e.name})},e.name)}))]}),he.map((function(e,n){var t;return 1!==n?null:(0,M.jsxs)("ul",{className:J,children:[(0,M.jsx)("li",{children:e.name}),null==e||null===(t=e.children)||void 0===t?void 0:t.map((function(n,t){return(0,M.jsx)("li",{className:xe[e.id]==n.id?q:"",onClick:function(){xe[e.id]=n.id,ve(d()({},xe))},children:(0,M.jsx)("strong",{children:n.name})})}))]},n)})),(0,M.jsxs)(b.Z,{align:"middle",children:[(0,M.jsx)(_.Z,{flex:"1",className:se,children:ae.map((function(e,n){return(0,M.jsx)(V.ZP,{className:"mr20",type:xe.sort===e.id?"primary":"default",onClick:function(){xe.sort=e.id,ve(d()({},xe))},children:e.name},n)}))}),(0,M.jsx)(_.Z,{className:"c-grey-999",children:(0,M.jsx)("div",{className:re,children:(0,M.jsxs)("ul",{children:[(0,M.jsxs)("li",{children:["已选",(0,M.jsx)("span",{className:"c-blue",children:C.length}),"个"]}),(0,M.jsxs)("li",{children:["共",(0,M.jsx)("span",{className:"c-blue",children:P.shixuns_count}),"个"]}),(0,M.jsxs)("li",{className:"current",onClick:function(){xe.order="asc"===xe.order?"desc":"asc",ve(d()({},xe))},children:["学习人数",(0,M.jsxs)("p",{className:"edu-sorter current ".concat(xe.order),children:[(0,M.jsx)("span",{className:"iconfont icon-sanjiaoxing-up"}),(0,M.jsx)("span",{className:"iconfont icon-sanjiaoxing-down"})]})]})]})})})]}),0===(null==P||null===(n=P.shixun_list)||void 0===n?void 0:n.length)&&(0,M.jsx)(K.Z,{}),(0,M.jsx)(N.Z.Group,{style:{display:"block"},value:C,onChange:function(e){S(e)},children:null==P||null===(t=P.shixun_list)||void 0===t?void 0:t.map((function(e,n){return(0,M.jsxs)("div",{className:$,style:{cursor:"auto"},children:[(0,M.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,M.jsxs)("div",{className:ne,children:[(0,M.jsx)("div",{className:te,children:(0,M.jsxs)("div",{className:ie,children:[(0,M.jsxs)("div",{children:[(0,M.jsx)(x.Link,{to:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:(0,M.jsx)("strong",{className:"font16",dangerouslySetInnerHTML:{__html:e.title}})}),(null==e?void 0:e.need_authorize)&&(0,M.jsx)("span",{onClick:function(){(0,de.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10",children:"需授权"}),(0,Z.Ny)()&&1===(null==e?void 0:e.mark_status)&&(0,M.jsx)(k.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,M.jsx)("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10",children:"正常"})}),(0,Z.Ny)()&&2===(null==e?void 0:e.mark_status)&&(0,M.jsx)(k.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,M.jsx)("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10",children:"需完善"})}),(0,Z.Ny)()&&3===(null==e?void 0:e.mark_status)&&(0,M.jsx)(k.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,M.jsx)("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10",children:"无法使用"})}),"未发布"==(null==e?void 0:e.shixun_tag_num_name)&&(0,M.jsx)(k.Z,{zIndex:1e4,title:"实训需发布后才能发送到教学课堂,点击名称可前往实训详情",children:(0,M.jsx)("span",{style:{marginRight:"auto",background:"#999"},className:"tag-style current ml10",children:"未发布"})})]}),(0,M.jsx)(V.ZP,{ghost:!0,href:"/shixuns/".concat(e.identifier,"/challenges"),type:"primary",target:"_blank",style:{borderRadius:"50px"},children:"体验实训"})]})}),(0,M.jsx)("div",{className:"flex-wrp mt10 font14 c-light-black",children:(0,M.jsx)("span",{className:oe,dangerouslySetInnerHTML:{__html:e.description}})}),(0,M.jsx)("div",{className:" mt15",children:e.challenge_names.map((function(e,n){return(0,M.jsxs)("span",{className:"mr30",children:["第",n+1,"关 ",e," "]},n)}))}),(0,M.jsx)(W.Z,{dashed:!0}),(0,M.jsxs)("div",{className:"c-light-black mt20",style:{display:"flex",justifyContent:"space-between"},children:[(0,M.jsxs)("div",{children:[(0,M.jsx)(k.Z,{overlayClassName:ce,title:(0,M.jsx)("div",{children:(0,M.jsx)("span",{dangerouslySetInnerHTML:{__html:null==e?void 0:e.member_user_names}})}),children:(0,M.jsx)("span",{className:le,dangerouslySetInnerHTML:{__html:null==e?void 0:e.member_user_names}})}),e.author_school_name&&(0,M.jsx)(f.Fragment,{children:(0,M.jsx)("span",{dangerouslySetInnerHTML:{__html:e.author_school_name}})})]}),(0,M.jsxs)("div",{children:[(0,M.jsxs)("span",{className:"mr30",children:["难度系数  ",e.level]}),(0,M.jsxs)("span",{children:["学习人数  ",e.study_count]})]})]})]})]},null==e?void 0:e.identifier)}))})]})})}),(0,M.jsx)("div",{className:"tc mt20",children:(0,M.jsx)(T.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:xe.page||1,showQuickJumper:!0,total:null==P?void 0:P.shixuns_count,onChange:function(e){xe.page=e,ve(d()({},xe))}})})]},"bottom"),(0,M.jsx)(me.Z,{visible:_e,onCancel:je,renderData:ke,inPaper:!1,onOk:Se,modalType:"multiple",type:"shixun",position:"选中实训"})]})}})),ge=w.Z.Search,xe=(0,x.connect)((function(e){return{classroomList:e.classroomList,shixunsList:e.shixunsList,loading:e.loading.effects}}))((function(e){var n,t,i=e.classroomList,s=(e.loading,e.dispatch),r=(0,f.useState)(d()({},(0,x.useParams)())),c=m()(r,2),u=c[0],p=(c[1],i.actionTabs),h=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],L=(0,f.useState)({page:1,limit:20,search:null}),A=m()(L,2),P=A[0],B=A[1];(0,f.useEffect)((function(){I()}),[u.coursesId,P]),(0,f.useEffect)((function(){"从课堂实验添加"===i.actionTabs.key&&b([])}),[i.actionTabs.key]);var I=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=d()(d()({},P),{},{course_id:null==p||null===(n=p.params)||void 0===n?void 0:n.course_id}),e.next=3,s({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,M.jsxs)(F.Z,{placement:"bottom",height:"100%",closable:!0,style:{zIndex:9999},open:"从课堂实验添加"===i.actionTabs.key,rootClassName:U,onClose:function(){s({type:"classroomList/setActionTabs",payload:{key:""}})},footer:(0,M.jsxs)("div",{className:"tc",style:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,M.jsx)(V.ZP,{size:"middle",onClick:function(){s({type:"classroomList/setActionTabs",payload:{key:""}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},children:"取消"}),(0,M.jsx)(V.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,s({type:"classroomList/createExperiment",payload:{homework_common_ids:a()(w),category_id:u.categoryId,course_id:null==p||null===(n=p.params)||void 0===n?void 0:n.course_id}});case 2:e.sent.status||(y.ZP.success("操作成功"),s({type:"classroomList/setActionTabs",payload:{}}),(0,Z.GJ)()?s({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},i.actionTabs.params),{},{type:4})}):s({type:"classroomList/getClassroomShixunsList",payload:d()({},i.actionTabs.params)}),s({type:"classroomList/getClassroomLeftMenus",payload:{id:u.coursesId}}),"0"===localStorage.getItem("Noviceguide")||s({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:12,text:(0,M.jsx)("div",{children:"接下来,咱们给教学课堂添加一个“课程实验”~点击“选用实践项目”,选择一个作业,然后点击“立即发布”就给实践课堂添加了一个课程实验。"})}}));case 4:case"end":return e.stop()}}),e)}))),type:"primary",children:"确定"})]}),children:[(0,M.jsx)("section",{className:"tc",children:(0,M.jsx)(ge,{placeholder:"请输入课堂实验名称进行查询",enterButton:"搜索",size:"middle",className:ae,onSearch:function(e){P.search=e,B(d()({},P))}})}),(0,M.jsx)("section",{className:"edu-container",children:(0,M.jsx)(Y.Z,{spinning:C,children:(0,M.jsxs)("aside",{children:[0===(null==h||null===(n=h.homeworks)||void 0===n?void 0:n.length)&&(0,M.jsx)(K.Z,{}),null==h||null===(t=h.homeworks)||void 0===t?void 0:t.map((function(e,n){var t,i,a;return(0,M.jsxs)("div",{className:$,style:{cursor:"auto"},children:[(0,M.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,M.jsxs)("div",{className:ne,children:[(0,M.jsx)("div",{className:te,children:(0,M.jsxs)("div",{className:ie,children:[(0,M.jsx)(x.Link,{to:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:(0,M.jsx)("strong",{className:"font16",dangerouslySetInnerHTML:{__html:null==e?void 0:e.name}})}),(null==e?void 0:e.need_authorize)&&(0,M.jsx)("span",{onClick:function(){(0,de.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10",children:"需授权"}),(0,Z.Ny)()&&1===(null==e?void 0:e.mark_status)&&(0,M.jsx)(k.Z,{title:null==e?void 0:e.mark_content,children:(0,M.jsx)("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10",children:"正常"})}),(0,Z.Ny)()&&2===(null==e?void 0:e.mark_status)&&(0,M.jsx)(k.Z,{title:null==e?void 0:e.mark_content,children:(0,M.jsx)("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10",children:"需完善"})}),(0,Z.Ny)()&&3===(null==e?void 0:e.mark_status)&&(0,M.jsx)(k.Z,{title:null==e?void 0:e.mark_content,children:(0,M.jsx)("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10",children:"无法使用"})}),(0,M.jsx)(V.ZP,{ghost:!0,href:"/shixuns/".concat(e.shixun_identifier,"/challenges"),type:"primary",target:"_blank",style:{borderRadius:"50px"},children:"查看实验"})]})}),(0,M.jsx)("div",{className:"flex-wrp mt10 font14 c-light-black",children:(0,M.jsx)("span",{className:oe,dangerouslySetInnerHTML:{__html:null==e?void 0:e.description}})}),(0,M.jsx)("div",{className:" mt15",children:null==e||null===(t=e.challenges)||void 0===t?void 0:t.map((function(e,n){return(0,M.jsxs)("span",{className:"mr30",children:["第",n+1,"关 ",null==e?void 0:e.subject," "]},n)}))}),(0,M.jsx)(W.Z,{dashed:!0}),(0,M.jsxs)("div",{className:"c-light-black mt20",children:[(null==e||null===(i=e.user)||void 0===i?void 0:i.name)&&(0,M.jsxs)(f.Fragment,{children:[(0,M.jsx)("span",{children:null==e||null===(a=e.user)||void 0===a?void 0:a.name}),(0,M.jsx)("span",{className:"ml15 mr15",children:"|"})]}),(0,M.jsx)("span",{children:"创建时间: "}),(0,M.jsx)("span",{children:null==e?void 0:e.created_at})]})]})]},n)}))]})})}),(0,M.jsx)("div",{className:"tc mt20",children:(0,M.jsx)(T.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:P.page||1,showQuickJumper:!0,total:null==h?void 0:h.total_count,onChange:function(e){P.page=e,B(d()({},P))}})})]},"bottom")})),ve=(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,s=e.loading,r=e.dispatch,c=(e.shixunsList,(0,f.useState)(d()({},(0,x.useParams)()))),u=m()(c,2),p=u[0],h=(u[1],(0,x.useLocation)(),i.actionTabs,H.Z.useForm()),g=(m()(h,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:p.coursesId,limit:20,no_jupyter:1}),k=m()(j,2),C=k[0],S=k[1];return(0,f.useEffect)((function(){}),[p.coursesId,C]),(0,f.useEffect)((function(){"智能推荐"===i.actionTabs.key&&(_([]),r({type:"classroomList/getShixunAiRecommendLists",payload:d()({},C)}))}),[i.actionTabs.key]),"智能推荐"!==i.actionTabs.key?null:(0,M.jsxs)(L.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:d()({shixun_ids:a()(b),category_id:p.categoryId},p)});case 2:e.sent.status||((0,B.L9)(["教学课堂","课程实验","智能推荐选用"]),sessionStorage.aiRecommentHide=!0,y.ZP.success("操作成功"),r({type:"classroomList/setActionTabs",payload:{}}),r({type:"classroomList/getClassroomShixunsList",payload:d()({},i.actionTabs.params)}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:p.coursesId}}));case 4:case"end":return e.stop()}}),e)}))),children:[(0,M.jsx)("section",{className:"",style:{maxHeight:500,minHeight:150,overflow:"auto"},children:(0,M.jsx)(Y.Z,{spinning:s["classroomList/getShixunAiRecommendLists"],children:(0,M.jsxs)("aside",{style:{minHeight:150},children:[0===(null==g||null===(n=g.shixun_list)||void 0===n?void 0:n.length)&&(0,M.jsx)(K.Z,{}),null==g||null===(t=g.shixun_list)||void 0===t?void 0:t.map((function(e,n){var t,i;return(0,M.jsxs)("div",{className:ee,style:{cursor:"auto"},children:[(0,M.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,M.jsxs)("div",{className:ne,children:[(0,M.jsx)("div",{className:te,children:(0,M.jsxs)("div",{className:ie,children:[(0,M.jsx)(x.Link,{to:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:(0,M.jsx)("strong",{className:"font16",dangerouslySetInnerHTML:{__html:e.title}})}),(null==e?void 0:e.need_authorize)&&(0,M.jsx)("span",{onClick:function(){(0,de.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10",children:"需授权"}),(0,M.jsx)(V.ZP,{ghost:!0,href:"/shixuns/".concat(e.identifier,"/challenges"),type:"primary",target:"_blank",style:{borderRadius:"50px"},children:"体验实训"})]})}),(0,M.jsx)("div",{className:"flex-wrp mt10 font14 c-light-black",children:(0,M.jsx)("span",{className:oe,dangerouslySetInnerHTML:{__html:e.description}})}),(0,M.jsx)("div",{className:" mt10",children:e.challenge_names.map((function(e,n){return(0,M.jsxs)("span",{className:"mr30",children:["第",n+1,"关 ",e," "]},n)}))}),(0,M.jsxs)("div",{className:"c-light-black mt10",children:[null!=e&&null!==(t=e.content)&&void 0!==t&&t.author_name?(0,M.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,M.jsx)("span",{children:e.author_name}),(0,M.jsx)("span",{className:"ml15 mr15",children:"|"}),e.author_school_name&&(0,M.jsxs)(f.Fragment,{children:[(0,M.jsx)("span",{children:e.author_school_name}),(0,M.jsx)("span",{className:"ml15 mr15",children:"|"})]}),(0,M.jsxs)("span",{children:["难度系数 ",e.level]}),(0,M.jsx)("span",{className:"ml15 mr15",children:"|"}),(0,M.jsx)("span",{children:"学习人数 "}),(0,M.jsx)("span",{children:e.study_count})]}),(0,M.jsx)(W.Z,{dashed:!0})]})]},n)}))]})})}),(0,M.jsx)("div",{className:"tc mt20 hide",children:(0,M.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(d()({},C))}})})]},"bottom")}))),ye=w.Z.Search,we=(0,x.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading.effects}}))((function(e){var n,t,i=e.classroomList,a=e.loading,s=e.dispatch,r=(0,f.useState)(d()({},(0,x.useParams)())),c=m()(r,2),u=c[0],p=(c[1],(0,x.useLocation)(),i.actionTabs,H.Z.useForm()),h=(m()(p,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&&(s({type:"classroomList/getCoursesLists",payload:d()({},C)}),b([]))}),[i.actionTabs.key,u.categoryId,C]);var N=(0,me.P)(),L=m()(N,4),P=L[0],I=L[1],E=L[2],D=L[3],G=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,s({type:"classroomList/createCoursesHomework",payload:{coursesId:u.coursesId,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,B.L9)(["教学课堂","课程实验","选用实践课程"]),y.ZP.success("操作成功"),s({type:"classroomList/setActionTabs",payload:{}}),(0,Z.GJ)()?s({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},i.actionTabs.params),{},{type:4})}):s({type:"classroomList/getClassroomShixunsList",payload:d()({},i.actionTabs.params)}),s({type:"classroomList/getClassroomLeftMenus",payload:{id:u.coursesId}}));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return"选用实践课程"!==i.actionTabs.key?null:(0,M.jsxs)(F.Z,{placement:"bottom",height:"100%",closable:!0,onClose:function(){s({type:"classroomList/setActionTabs",payload:{key:""}})},open:"选用实践课程"===i.actionTabs.key,rootClassName:U,footer:(0,M.jsxs)("div",{className:"tc",style:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,M.jsx)(V.ZP,{size:"middle",onClick:function(){s({type:"classroomList/setActionTabs",payload:{key:""}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},children:"取消"}),(0,M.jsx)(V.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",loading:a["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,D({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||G([]);case 7:case"end":return e.stop()}}),e)}))),type:"primary",children:"确定"})]}),children:[(0,M.jsx)("section",{className:"tc",children:(0,M.jsx)(ye,{placeholder:"课程名称/课程标识/合作者",enterButton:"搜索",size:"middle",className:ae,onSearch:function(e){C.keyword=e,e&&(0,pe.tk)({name:e,copywriting:e,position:"Subject"}),S(d()({},C))}})}),(0,M.jsx)("section",{className:"edu-container",children:(0,M.jsx)(Y.Z,{spinning:a["classroomList/getCoursesLists"],children:(0,M.jsxs)("aside",{children:[(0,M.jsx)("div",{className:re,children:(0,M.jsxs)("ul",{children:[(0,M.jsxs)("li",{children:["已选",(0,M.jsx)("span",{className:"c-blue",children:w.length}),"课程"]}),(0,M.jsxs)("li",{children:["共",(0,M.jsx)("span",{className:"c-blue",children:h.subjects_count}),"个课程"]}),(0,M.jsxs)("li",{className:"current",onClick:function(){C.order="asc"===C.order?"desc":"asc",C.sort="shixuns_count",S(d()({},C))},children:["实训数",(0,M.jsxs)("p",{className:"edu-sorter current ".concat("shixuns_count"===C.sort&&C.order),children:[(0,M.jsx)("span",{className:"iconfont icon-sanjiaoxing-up"}),(0,M.jsx)("span",{className:"iconfont icon-sanjiaoxing-down"})]})]}),(0,M.jsxs)("li",{className:"current",onClick:function(){C.order="asc"===C.order?"desc":"asc",C.sort="myshixuns_count",S(d()({},C))},children:["学习人数",(0,M.jsxs)("p",{className:"edu-sorter current ".concat("myshixuns_count"===C.sort&&C.order),children:[(0,M.jsx)("span",{className:"iconfont icon-sanjiaoxing-up"}),(0,M.jsx)("span",{className:"iconfont icon-sanjiaoxing-down"})]})]}),(0,M.jsx)("li",{className:"".concat("all"===C.type&&"c-blue"," current"),onClick:function(){C.type="all",S(d()({},C))},children:"全部课程"}),(0,M.jsx)("li",{className:"".concat("mine"===C.type&&"c-blue"," current"),onClick:function(){C.type="mine",S(d()({},C))},children:"我的课程"})]})}),0===(null==h||null===(n=h.subject_list)||void 0===n?void 0:n.length)&&(0,M.jsx)(K.Z,{}),null==h||null===(t=h.subject_list)||void 0===t?void 0:t.map((function(e,n){var t,i,a,s,o,r;return(0,M.jsxs)("div",{className:$,style:{cursor:"auto"},children:[(0,M.jsx)(A.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,M.jsxs)("div",{className:ne,children:[(0,M.jsx)("div",{className:te,children:(0,M.jsxs)("div",{className:ie,children:[(0,M.jsxs)("div",{children:[(0,M.jsx)(x.Link,{to:"/paths/".concat(e.id),target:"_blank",children:(0,M.jsx)("strong",{className:"font16",dangerouslySetInnerHTML:{__html:e.title}})}),(null==e?void 0:e.need_authorize)&&(0,M.jsx)("span",{onClick:function(){(0,de.rX)(!1,"该课程中包含实训需授权后才可使用。 您可以在QQ服务群向管理员申请获得继续操作的权限。")},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10",children:"需授权"}),"未发布"==(null==e?void 0:e.shixun_tag_num_name)&&(0,M.jsx)(k.Z,{zIndex:1e4,title:"实践课程需发布后才能发送到教学课堂,点击名称可前往课程详情",children:(0,M.jsx)("span",{style:{marginRight:"auto",background:"#999"},className:"tag-style current ml10",children:"未发布"})})]}),(0,M.jsx)(k.Z,{zIndex:1e4,title:"前往选用是进入实践课程的页面后,点击“发送”按钮,将所需实践项目发送至当前课堂",children:(0,M.jsx)(V.ZP,{ghost:!0,href:"/paths/".concat(e.id),type:"primary",target:"_blank",style:{borderRadius:"50px"},children:"前往选用"})})]})}),(0,M.jsx)("div",{className:"flex-wrp mt10 font14 c-light-black",children:(0,M.jsx)("span",{className:oe,dangerouslySetInnerHTML:{__html:e.description}})}),(0,M.jsx)(W.Z,{dashed:!0}),(0,M.jsxs)("div",{className:"c-light-black mt20",style:{display:"flex",justifyContent:"space-between"},children:[(0,M.jsxs)("div",{children:[null!=e&&null!==(t=e.content)&&void 0!==t&&t.member_user_names?(0,M.jsx)(k.Z,{overlayClassName:ce,title:(0,M.jsx)("div",{children:(0,M.jsx)("span",{dangerouslySetInnerHTML:{__html:null==e||null===(i=e.content)||void 0===i?void 0:i.member_user_names}})}),children:(0,M.jsx)("span",{className:le,dangerouslySetInnerHTML:{__html:null==e||null===(a=e.content)||void 0===a?void 0:a.member_user_names}})}):(null==e?void 0:e.member_user_names)&&(0,M.jsx)(k.Z,{title:(0,M.jsx)("div",{children:(0,M.jsx)("span",{children:e.member_user_names})}),children:(0,M.jsx)("span",{className:le,children:e.member_user_names})}),null!=e&&null!==(s=e.content)&&void 0!==s&&s.author_school_name?(0,M.jsx)(k.Z,{overlayClassName:ce,title:(0,M.jsx)("div",{children:(0,M.jsx)("span",{dangerouslySetInnerHTML:{__html:null==e||null===(o=e.content)||void 0===o?void 0:o.author_school_name}})}),children:(0,M.jsx)("span",{className:le,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,M.jsx)(k.Z,{title:(0,M.jsx)("div",{children:(0,M.jsx)("span",{children:e.author_school_name})}),children:(0,M.jsx)("span",{className:le,children:e.author_school_name})})]}),(0,M.jsxs)("div",{children:[(0,M.jsxs)("span",{className:"mr30",children:["章节  ",e.stage_count]}),(0,M.jsxs)("span",{className:"mr30",children:["实训  ",e.shixuns_count]}),(0,M.jsxs)("span",{children:["学习人数  ",e.myshixuns_count]})]})]})]})]},e.id)}))]})})}),(0,M.jsx)("div",{className:"tc mt20",children:(0,M.jsx)(T.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,current:C.page||1,showQuickJumper:!0,total:null==h?void 0:h.subjects_count,onChange:function(e){C.page=e,s({type:"classroomList/getCoursesLists",payload:d()({},C)})}})}),(0,M.jsx)(me.Z,{visible:P,inPaper:!1,onOk:G,onCancel:I,renderData:E,modalType:"multiple",type:"subject"})]},"bottom")})),be=t(14386),_e=function(e){var n=e.styles,t=void 0===n?{}:n,i=e.params,a=e.setisshowmodal;return(0,M.jsxs)("section",{className:"tc animated fadeIn",style:d()(d()({},{color:"#999",margin:"200px auto"}),t),children:[(0,M.jsx)("img",{src:be.z3}),(0,M.jsx)("p",{className:"mt20 font14",children:"该".concat(i.category?"分组":"课程","无课程实验,可以下方按钮或右上方“选用实验”按钮创建作业")}),(0,M.jsxs)("div",{style:{marginTop:"30px"},children:[(0,M.jsx)(V.ZP,{onClick:function(){a(!0)},type:"primary",style:{width:"128px",height:"40px",borderRadius:"4px",marginRight:"20px"},children:"选用实验"}),(0,M.jsx)(V.ZP,{onClick:function(){(0,B.xg)("https://www.educoder.net/forums/4909")},type:"primary",style:{width:"128px",height:"40px",borderRadius:"4px"},children:"新建作业指引"})]})]})},je={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",infoIcon:"infoIcon___fxDKp",infoStuIcon:"infoStuIcon___eoBo6",flexBox:"flexBox____AlDk",iconH:"iconH___Hmjwy",iconV:"iconV___VhZ00",actionIcon:"actionIcon___MWxMa",dro:"dro___bzbDZ",progressInfo:"progressInfo___bQbcf"},ke=t(44589),Ce=t(39180),Se=t.n(Ce),Te=(0,ke.W8)((function(e){var n=e.item;return(0,M.jsxs)("li",{children:[(0,M.jsx)("h3",{children:n.task_name}),(0,M.jsxs)("p",{children:[n.user_name,(0,M.jsx)("span",{style:{marginLeft:"20px"},children:n.category})]})]})})),Ne=(0,ke.JN)((function(e){var n=e.items;return(0,M.jsx)("ul",{className:"task-list-container",children:n.map((function(e,n){return(0,M.jsx)(Te,{index:n,item:e},"".concat(e.task_id))}))})})),Le=function(e){var n=e.data,t=e.callback,i=e.onCancel,a=e.visible,s=void 0!==a&&a,o=(0,f.useState)(n),r=m()(o,2),l=r[0],c=r[1];return(0,f.useEffect)((function(){c(n)}),[JSON.stringify(n)]),(0,M.jsxs)(F.Z,{placement:"bottom",height:"100%",closable:!0,onClose:i,style:{zIndex:9999},open:s,rootClassName:"sort-list-panel",children:[(0,M.jsxs)("p",{className:"sort-list-tip",children:[(0,M.jsx)("span",{children:"温馨提示:请在列表中长按鼠标左键,进行拖放排序。完成排序后请点击“保存”"}),(0,M.jsx)(V.ZP,{type:"ghost",onClick:i,style:{marginRight:10},children:"取消"}),(0,M.jsx)(V.ZP,{disabled:0===l.length,type:"primary",onClick:function(){t(l.map((function(e){return e.task_id})))},children:"保存"})]}),(0,M.jsx)(Ne,{axis:"xy",helperClass:"dragging-li",items:l,onSortEnd:function(e){var n=e.newIndex,t=e.oldIndex;c(Se()(l,t,n))}})]})},Ae=t(52306),Ze=t(3479),Pe=t(5829),Be=t(83),Ie=t(28622),Me=function(e){var n,t,i,a,s,r=e.v,c=e.k,u=(e.match,e.selectArrs),p=e.setSelectArrs,h=e.setSelectArrsAll,w=e.selectArrsAll,b=(e.classroomList,e.dispatch),_=e.selectshow,C=e.batchState,S=e.pageSize,T=e.page,A=e.manageAllGroup,P=(0,x.useParams)(),I=(0,f.useState)([]),E=m()(I,2),D=E[0],G=E[1],R=(0,f.useState)(!1),O=m()(R,2),H=O[0],z=O[1],F=(0,f.useState)(!1),V=m()(F,2),Y=V[0],W=V[1],K=(0,f.useState)(!0),U=m()(K,2),J=U[0],q=U[1];function Q(){return X.apply(this,arguments)}function X(){return(X=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:d()({},P)});case 2:n=e.sent,G(n.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}P.category=P.categoryId,P.id=P.coursesId,P.page=T,P.limit=S,(0,f.useEffect)((function(){var e;G([]),z(!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?(W(!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())&&(W(!0),q(!1))}),[_]);var $=[{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,M.jsxs)("span",{children:[(0,M.jsx)("span",{children:null==e||null===(n=e.split("/"))||void 0===n?void 0:n[0]})," / ",(0,M.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"===P.order_by?"desc"===P.sort_direction?"descend":"ascend":null},{title:"补交时间",dataIndex:"late_time",key:"late_time",sorter:!0,showSorterTooltip:!1,sortOrder:"late_time"===P.order_by?"desc"===P.sort_direction?"descend":"ascend":null},{title:"分班老师",dataIndex:"teachers",key:"teachers",width:150,ellipsis:{showTitle:!1},render:function(e){return"--"!==e&&e?(0,M.jsx)("span",{title:e,children:e}):"--"}}],ee=function(e){var n;(0,de.tJ)(b,!0)&&(e.can_view_details?(0,B.xg)("/shixuns/".concat(e.shixun_identifier,"/challenges")):e.redo?L.Z.info({width:530,title:"提示",centered:!0,okText:"确定",content:(0,M.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,Be.$Q)({id:e.myshixun_identifier,url:e.url});case 2:(t=n.sent)&&(0,Ie.Z)({is_jupyter:!1,is_jupyter_lab:!1,shixunId:t.shixun_identifier,homework_common_id:e.homework_id,courseId:P.coursesId});case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})}):(0,Ie.Z)({is_jupyter:!1,is_jupyter_lab:!1,shixunId:e.shixun_identifier,homework_common_id:e.homework_id,courseId:P.coursesId}))};return(0,M.jsxs)("div",{className:je.listItem,onClick:function(e){e.stopPropagation(),null!=r&&r.is_enter_shixun&&(0,B.xg)("/classrooms/".concat(P.coursesId,"/shixun_homework/").concat(r.homework_id,"/detail?tabs=0"))},children:[(0,Z.GJ)()&&C&&(0,M.jsx)(N.Z,{style:{marginTop:11,marginLeft:10},checked:u.includes(r.homework_id),value:r.homework_id,onClick:function(e){e.stopPropagation()},onChange:function(e){u.indexOf(r.homework_id);u.indexOf(r.homework_id)>-1?(p(u.filter((function(e){return e!==r.homework_id}))),h(w.filter((function(e){return e.homework_id!==r.homework_id})))):(h(w.concat(r)),p(u.concat(r.homework_id)))}}),(0,M.jsxs)("div",{className:je.info,children:[(0,M.jsxs)("div",{className:je.title,children:[(0,M.jsxs)("div",{className:je.titleLeft,style:(0,Z.dE)()?{paddingRight:(null==r?void 0:r.challenge_count)-(null==r?void 0:r.finished_challenge_count)?60:140}:{},children:[(0,Z.GJ)()&&(0,M.jsx)(Pe.Z,{value:r.status,children:(0,M.jsx)(B.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:[r.status]})}),(0,Z.dE)()&&(0,M.jsx)(B.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:r.status}),(0,M.jsx)("span",{className:je.name,children:r.name}),!(null===(n=r.schools)||void 0===n||!n.length)&&(0,M.jsx)(k.Z,{title:"该课程实验面向指定单位开放",children:(0,M.jsx)("i",{className:"iconfont icon-zhidinggongkai1 ml10 mr10 c-orange"})})]}),(0,M.jsxs)("div",{className:je.titleRight,children:[(0,Z.GJ)()&&0===(null==r?void 0:r.status.indexOf("未发布"))&&(0,M.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:[r],params:P,type:2,manage_all_group:A}});case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:(0,M.jsxs)("aside",{className:je.flexBox,children:[(0,M.jsx)("i",{className:"iconfont icon-yishezhifabushijian1"}),(0,M.jsx)("div",{children:"发布"})]})}),(0,Z.dE)()&&(0,M.jsxs)("div",{className:je.actionIcon,children:[Y?(0,M.jsx)("i",{className:"iconfont icon-yiwancheng1"}):J?"":(0,M.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,M.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(),ee(r);case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),className:je.flexBox,style:{marginRight:10},children:[(0,M.jsx)("i",{className:"iconfont icon-kaishixuexi font14"}),(0,M.jsx)("div",{children:"开始学习"})]}),((null===(a=r.status)||void 0===a?void 0:a.includes("已截止"))||(null===(s=r.status)||void 0===s?void 0:s.includes("导入")))&&(0,M.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,B.xg)("/classrooms/".concat(P.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:je.flexBox,style:{marginRight:10},children:[(0,M.jsx)("i",{className:"iconfont icon-chakanzuoye font14"}),(0,M.jsx)("div",{children:"查看作品"})]})]}),(0,Z.GJ)()&&(0,M.jsx)(j.Z,{placement:"bottomCenter",overlayClassName:je.dro,dropdownRender:function(){return(0,M.jsxs)(v.Z,{children:["导入"!==r.status&&(0,M.jsx)(v.Z.Item,{style:{textAlign:"center"},children:(0,M.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:P,type:2}});case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:"立即发布"})},1),"导入"!==r.status&&(0,M.jsx)(v.Z.Item,{style:{textAlign:"center"},children:(0,M.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:P,type:2}});case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:"立即截止"})},2),"导入"===r.status&&(0,M.jsx)(v.Z.Item,{style:{textAlign:"center"},children:(0,M.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,M.jsx)(v.Z.Item,{style:{textAlign:"center"},children:(0,M.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:P,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,M.jsx)(v.Z.Item,{style:{textAlign:"center"},children:(0,M.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,Ze.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,M.jsx)(v.Z.Item,{style:{textAlign:"center"},children:(0,M.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(),ee(r);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:"进入实训"})},23),(0,M.jsx)(v.Z.Item,{style:{textAlign:"center"},children:(0,M.jsx)("a",{onClick:function(e){e.stopPropagation(),e.preventDefault(),b({type:"classroomList/setActionTabs",payload:{key:"重命名",selectArrs:r,params:P}})},children:"重新命名"})},5),"导入"!==r.status&&(0,M.jsx)(v.Z.Item,{style:{textAlign:"center"},children:(0,M.jsx)(x.Link,{target:"_blank",onClick:function(e){e.stopPropagation()},to:"/classrooms/".concat(P.coursesId,"/shixun_homework/").concat(r.homework_id,"/detail?tabs=3"),children:"高级设置"})},6)]})},children:(0,M.jsxs)("aside",{onClick:function(e){return e.stopPropagation()},className:je.flexBox,style:{marginRight:6,cursor:"default"},children:[(0,M.jsx)("i",{className:"iconfont icon-gengduo4"}),(0,M.jsx)("div",{children:"更多"})]})})]})]}),(0,Z.GJ)()&&(0,M.jsxs)("p",{className:je.infoIcon,children:[(0,M.jsx)("span",{className:"c-grey-333 mr20",children:r.author}),["未开始","进行中","已截止","提交中","补交中"].includes(r.status)&&!!r.uncommit_count&&(0,M.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,M.jsx)("span",{className:"mr5",children:"未做题"}),r.uncommit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束"].includes(r.status)&&!!r.commit_count&&(0,M.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,M.jsx)("span",{className:"mr5",children:"已做题"}),r.commit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束"].includes(r.status)&&!!r.compelete_count&&(0,M.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,M.jsx)("span",{className:"mr5",children:"已完成"}),r.compelete_count,"人"]}),["未开始"].includes(r.status)&&(0,M.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,M.jsx)("span",{className:"mr5",children:"开始时间"}),r.publish_time]}),["未开始","进行中","已截止","提交中","补交中"].includes(r.status)&&(0,M.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,M.jsx)("span",{className:"mr5",children:"截止时间"}),r.end_time]}),["已结束"].includes(r.status)&&(0,M.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,M.jsx)("span",{className:"mr5",children:"结束时间"}),r.status_time]}),!(null==r||!r.late_time)&&"--"!==(null==r?void 0:r.late_time)&&(0,M.jsxs)("span",{className:"c-grey-999",children:[(0,M.jsx)("span",{className:"mr5",children:"补交截止时间"}),null==r?void 0:r.late_time]}),["未开始","进行中","已截止","提交中","补交中","已结束"].includes(r.status)&&(0,M.jsxs)("span",{className:je.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(),H||Q(),z(!H);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,M.jsx)("i",{className:"iconfont icon-".concat(H?"shouqi":"xiala2")})," "]})]}),(0,Z.dE)()&&(0,M.jsxs)("span",{className:je.infoStuIcon,children:[(0,M.jsx)("span",{className:"c-grey-333",children:r.author}),(0,M.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,M.jsx)("i",{className:"iconfont icon-wanchengjindu font12 mr5"}),(0,M.jsxs)("span",{children:[(0,M.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,M.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,M.jsx)("i",{className:"iconfont icon-shengyushijian font12 mr5"})," ",null==r?void 0:r.status_time]}),(0,M.jsxs)("span",{className:"ml20 c-grey-999",children:[(0,M.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,M.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,M.jsx)("span",{className:"mr5",children:"补交截止时间:"}),null==r?void 0:r.late_time]})]}),(0,Z.GJ)()&&!r.status.includes("未发布")&&H&&D.length>5&&(0,M.jsx)(Ae.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:D,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,n,t){t.field&&(P.order_by=t.field),t.order||(P.sort_direction="asc"),"ascend"===t.order&&(P.sort_direction="asc"),"descend"===t.order&&(P.sort_direction="desc"),t.order||(P.sort_direction="asc"),Q()},columns:$}),(0,Z.GJ)()&&!r.status.includes("未发布")&&H&&D.length<6&&D.length>0&&(0,M.jsx)(Ae.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:D,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,n,t){t.field&&(P.order_by=t.field),t.order||(P.sort_direction="asc"),"ascend"===t.order&&(P.sort_direction="asc"),"descend"===t.order&&(P.sort_direction="desc"),t.order||(P.sort_direction="asc"),Q()},columns:$})]})]},c)},Ee=t(48071),De=t(31954),Ge=["classroomList","globalSetting","shixunHomeworks","user","loading","dispatch","match"],Re=(0,x.connect)((function(e){var n=e.classroomList,t=e.loading,i=e.globalSetting,a=e.shixunHomeworks,s=e.user;return{classroomList:n,globalSetting:i,loading:t.effects,shixunHomeworks:a,user:s}}))((function(e){var n,t,i,s=e.classroomList,r=(e.globalSetting,e.shixunHomeworks,e.user),c=e.loading,u=e.dispatch,p=e.match,I=(h()(e,Ge),(0,x.useLocation)()),E=(0,x.useParams)(),H=(0,x.useSearchParams)(),F=m()(H,1)[0],V=E.categoryId,Y=(0,f.useState)([]),W=m()(Y,2),U=W[0],J=W[1],q=(0,f.useState)([]),Q=m()(q,2),X=Q[0],$=Q[1],ee=s.detailShixunsList,ne=s.detailLeftMenus,te=s.detailTopBanner,ie=s.taskList,ae=(0,f.useState)(""),se=m()(ae,2),oe=se[0],re=se[1],le=(0,f.useState)(!1),ce=m()(le,2),de=ce[0],ue=ce[1],me=(0,f.useState)({limit:20,status:Number(F.get("tabs"))?String(parseInt(F.get("tabs"))):"0"}),pe=m()(me,2),he=pe[0],ge=pe[1],ye=(0,f.useState)("默认排序"),be=m()(ye,2),ke=be[0],Ce=be[1],Se=(0,f.useState)(!1),Te=m()(Se,2),Ne=Te[0],Ae=Te[1],Ze=(0,f.useState)(!1),Pe=m()(Ze,2),Be=(Pe[0],Pe[1]),Ie=(0,f.useState)("fixed"),Re=m()(Ie,2),Oe=Re[0],He=Re[1],ze=(0,f.useState)(document.getElementById("footer")),Fe=m()(ze,1)[0],Ve=(0,f.useState)(1),Ye=m()(Ve,2),We=Ye[0],Ke=Ye[1],Ue=(0,f.useState)(!1),Je=m()(Ue,2),qe=Je[0];Je[1];he.id=E.coursesId,he.type=4,E.categoryId?he.category=E.categoryId:delete he.category,(0,f.useEffect)((function(){"清除选择数据"===s.actionTabs.key&&(J([]),$([])),"目录重命名成功"===s.actionTabs.key&&$e()}),[s.actionTabs.key]),(0,f.useEffect)((function(){"0"===F.get("tabs")&&(he.status="0",he.page=1,ge(d()({},he)))}),[F.get("tabs")]),(0,f.useEffect)((function(){var e,n;if(null!=r&&null!==(e=r.userInfo)&&void 0!==e&&e.login){var t,i=B.cX.getItem("".concat(null==r||null===(t=r.userInfo)||void 0===t?void 0:t.login).concat((0,Z.GJ)()?"Teacher":"Student"),"ShixunHomeworks");i&&(he.sort_by=null==i?void 0:i.type,he.sort_direction=null==i?void 0:i.direction,Ce(null==i?void 0:i.name)),$e(),(0,Z.Rm)()&&Xe()}else null!=r&&null!==(n=r.userInfo)&&void 0!==n&&n.username&&$e()}),[null==r||null===(n=r.userInfo)||void 0===n?void 0:n.login,null==I?void 0:I.pathname]),(0,f.useEffect)((function(){window.addEventListener("scroll",Qe)}),[]);var Qe=function(){document.scrollingElement.scrollTop+window.innerHeight+(null==Fe?void 0:Fe.clientHeight)+150>document.body.clientHeight?He("absolute"):He("fixed")},Xe=function(){u({type:"classroomList/getAssistantPermissions",payload:{course_id:he.id}})},$e=function(){J([]),$([]),ge(d()({},he)),(0,Z.GJ)()?u({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},he),{},{type:4})}):u({type:"classroomList/getClassroomShixunsList",payload:d()(d()({},he),{},{order:he.status})})};function en(){return(en=l()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u({type:"classroomList/updateTaskPosition",payload:{category_id:V,courseId:he.id,task_ids:n,container_type:"shixun_homework"}});case 2:$e();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var nn=(0,f.useMemo)((function(){var e=[];return ie.length>0&&(e=ie.map((function(e){return{user_name:e.user_name,task_name:e.task_name,task_id:e.task_id,category:e.category}}))),e}),[ie]),tn=(0,Z.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"}];ne.course_modules&&(i=s.detailLeftMenus.course_modules.filter((function(e){return"shixun_homework"===e.type}))[0]);var an=(0,M.jsx)("div",{className:je.moveCategory,onMouseLeave:function(e){return ue(!1)},children:(0,M.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,""!=U){e.next=4;break}return y.ZP.error("请选择你要操作的任务"),e.abrupt("return",null);case 4:return e.next=6,(0,g.ZP)("/api/courses/".concat(he.id,"/homework_commons/move_to_category.json"),{method:"post",body:{homework_ids:U,new_category_id:t}});case 6:0===e.sent.status&&(y.ZP.success("操作成功"),$e(),Be(!1),u({type:"classroomList/getClassroomLeftMenus",payload:{id:E.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,M.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",children:(0,M.jsx)(w.Z,{onChange:function(e){re(e.target.value)}})}),i&&i.second_category.filter((function(e){return"未分配目录"!==e.category_name})).map((function(e,n){var t;if(!(""!==oe&&e.category_name.indexOf(oe)<0))return(0,M.jsxs)(M.Fragment,{children:[(0,M.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,M.jsx)(v.Z.Item,{style:{marginLeft:20},className:"multi-llipsis1e",children:e.category_name},e.category_id)}))]})})),(0,M.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:function(e){e.preventDefault(),u({type:"classroomList/setActionTabs",payload:{key:"添加目录",params:he,selectArrs:{category_id:null==ee?void 0:ee.main_category_id,type:"shixun_homework"}}})},children:"新建子目录..."})]})}),sn=[{name:"批量发布",icon:(0,M.jsx)("i",{className:"iconfont icon-fabu5"})},{name:"批量截止",icon:(0,M.jsx)("i",{className:"iconfont icon-piliangjiezhi2"})},{name:"批量删除",icon:(0,M.jsx)("i",{className:"iconfont icon-piliangshanchu2"})},{name:"设为公开",icon:(0,M.jsx)("i",{className:"iconfont icon-sheweigongkai2"})}].filter((function(e){return!(!(0,Z.GJ)()&&!(0,Z.Rm)())||"批量删除"!==e.name})).filter((function(e){return!!te.is_public||"设为公开"!==e.name})),on="默认排序"===ke,rn=(0,f.useMemo)((function(){var e=!(0,Z.GJ)()&&!(0,Z.Jd)(),n=null==te?void 0:te.excellent;return e&&n}),[r,s]),ln=(0,f.useMemo)((function(){return(null==ee?void 0:ee.min_finished_game)>0}),[s]),cn=(0,f.useMemo)((function(){var e=(null==ee?void 0:ee.min_finished_game)-(null==ee?void 0:ee.finished_challenge_count);return e>0?e:0}),[s]);return(0,M.jsxs)("section",{children:[(0,M.jsx)("aside",{className:je.bg,children:(0,M.jsxs)(b.Z,{align:"middle",children:[(0,M.jsx)(_.Z,{flex:"1",children:!!ee.main_category_id&&(0,M.jsxs)(v.Z,{mode:"horizontal",onSelect:function(e){var n=e.key;he.status=n,he.page=1,x.history.replace("".concat(I.pathname,"?tabs=").concat(n)),$e()},selectedKeys:[he.status],children:[!(0,Z.GJ)()&&[{name:"全部",id:0},{name:"提交中",id:1},{name:"补交中",id:2},{name:"已截止",id:5}].map((function(e,n){return(0,M.jsx)(v.Z.Item,{children:e.name},null==e?void 0:e.id)})),(0,Z.GJ)()&&[{name:"全部",id:0},{name:"未发布",id:1},{name:"未开始",id:4},{name:"进行中",id:2},{name:"已截止",id:3}].map((function(e,n){return(0,M.jsxs)(v.Z.Item,{children:[(0,M.jsx)("span",{className:"c-grey-666 mr20",children:e.name}),0===n&&(0,Z.GJ)()&&(0,M.jsx)("span",{className:"c-grey-999",children:null==ee?void 0:ee.all_count}),1===n&&(0,Z.GJ)()&&(0,M.jsx)("span",{className:"c-grey-999",children:null==ee?void 0:ee.unpublished_count}),2===n&&(0,Z.GJ)()&&(0,M.jsx)("span",{className:"c-grey-999",children:null==ee?void 0:ee.not_start_count}),3===n&&(0,Z.GJ)()&&(0,M.jsx)("span",{className:"c-grey-999",children:null==ee?void 0:ee.in_progress_count}),4===n&&(0,Z.GJ)()&&(0,M.jsx)("span",{className:"c-grey-999",children:null==ee?void 0:ee.overed_count})]},null==e?void 0:e.id)}))]})}),(0,M.jsx)(_.Z,{className:"mr20 gutter-row",children:(0,M.jsx)("div",{className:je.containerTitle,children:(0,Z.GJ)()&&"未分配目录"!==(0,B.Oo)(null==ne?void 0:ne.course_modules,V)&&(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:6},children:[(0,M.jsx)(j.Z,{className:"ml10",placement:"bottom",arrow:!0,dropdownRender:function(){return(0,M.jsxs)(v.Z,{children:[(0,M.jsx)(v.Z.Item,{onClick:function(){u({type:"classroomList/setActionTabs",payload:{key:"导出成绩",type:null==ee?void 0:ee.main_category_name,exportType:"practice",category_id:he.category}})},children:"学生成绩"},1),(0,M.jsx)(v.Z.Item,{onClick:function(){x.history.push("/classrooms/".concat(null==E?void 0:E.coursesId,"/exportlist/shixun_work_list,shixun_report"))},children:"历史导出"},3)]})},children:(0,M.jsx)("span",{style:{color:"#666666",cursor:"pointer"},children:(0,M.jsx)("i",{className:"iconfont icon-xiazai6"})})}),(0,M.jsx)("span",{className:"c-blue font16 ml20 current",style:{marginTop:2},onClick:function(e){u({type:"classroomList/setActionTabs",payload:{key:E.categoryId?"目录重命名":"添加目录",params:he,selectArrs:{category_name:null==ee?void 0:ee.category_name,category_id:(null==ee?void 0:ee.category_id)||(null==ee?void 0:ee.main_category_id),type:"shixun_homework"},cb:function(){$e()}}})},children:(0,M.jsx)(k.Z,{title:E.categoryId?"目录重命名":"新建子目录",children:(0,M.jsx)("span",{className:E.categoryId?"".concat(je.iconH," iconfont icon-zhongmingmingmulu"):"".concat(je.iconH," iconfont icon-xinjianmulu1")})})}),(0,M.jsx)(j.Z,{className:"ml10",dropdownRender:function(){return(0,M.jsxs)(v.Z,{children:[(0,M.jsx)(v.Z.Item,{onClick:function(){var e;!(0,Z.Rm)()||null!==(e=s.AssistantObject)&&void 0!==e&&null!==(e=e.practice)&&void 0!==e&&e.can_create?u({type:"classroomList/setActionTabs",payload:{key:"选用实践项目",params:he}}):y.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"从实践项目添加"},1),(0,M.jsx)(v.Z.Item,{onClick:function(){var e;!(0,Z.Rm)()||null!==(e=s.AssistantObject)&&void 0!==e&&null!==(e=e.practice)&&void 0!==e&&e.can_create?u({type:"classroomList/setActionTabs",payload:{key:"选用实践课程",params:he}}):y.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"从实践课程添加"},2),(0,M.jsx)(v.Z.Item,{onClick:function(){var e;!(0,Z.Rm)()||null!==(e=s.AssistantObject)&&void 0!==e&&null!==(e=e.practice)&&void 0!==e&&e.can_create?u({type:"classroomList/setActionTabs",payload:{key:"导入外部成绩",type:"practice"}}):y.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"导入外部成绩"},3)]})},children:(0,M.jsxs)("span",{className:je.selectBtn,children:[(0,M.jsx)("span",{children:(0,M.jsx)("i",{className:"iconfont icon-tianjiadaohang"})}),(0,M.jsx)("span",{children:"选用实验"})]})})]})})})]})}),(0,M.jsxs)("div",{className:je.action,children:[(0,M.jsx)("div",{children:(0,M.jsx)(j.Z,{dropdownRender:function(){return(0,M.jsx)(v.Z,{selectedKeys:[ke],children:null==tn?void 0:tn.map((function(e,n){return(0,M.jsx)(v.Z.Item,{onClick:function(){var n;he.sort_by=e.type,he.sort_direction=e.direction,he.page=1,Ce(e.name),B.cX.setItem("".concat(null==r||null===(n=r.userInfo)||void 0===n?void 0:n.login).concat((0,Z.GJ)()?"Teacher":"Student"),e,"ShixunHomeworks"),(0,Z.GJ)()?u({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},he),{},{type:4})}):u({type:"classroomList/getClassroomShixunsList",payload:d()({},he)})},children:e.name},e.name)}))})},children:(0,M.jsxs)("span",{className:"".concat(je.btn," ").concat(on?je.btnSort:""),onMouseEnter:function(e){return ue(!1)},children:[(0,M.jsx)("i",{className:"iconfont icon-paixu font14 mr5"}),ke]})})}),on&&(0,M.jsx)(k.Z,{title:"优先按照调整排序结果展示,未设置排序时,按照".concat((0,Z.GJ)()?"创建时间降序":5==he.status?"截止时间降序":"截止时间升序","排列"),children:(0,M.jsx)("span",{className:je.tips,children:(0,M.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2"})})}),(0,M.jsx)(w.Z.Search,{allowClear:!0,placeholder:"请输入实验名称",onSearch:function(e){he.search=e.trim(),he.page=1,$e()},style:{width:220,marginLeft:"auto"}})]}),rn&&(0,M.jsxs)(b.Z,{justify:"space-between",className:je.progressInfo,children:[(0,M.jsx)(_.Z,{children:(0,M.jsxs)(C.Z,{size:"middle",children:[(0,M.jsxs)("span",{children:["实训作业进度:",null==ee?void 0:ee.finished_task_count,"/",null==ee?void 0:ee.shixun_total_count]}),(0,M.jsxs)("span",{children:["任务关卡进度:",null==ee?void 0:ee.finished_challenge_count,"/",null==ee?void 0:ee.challenge_count]})]})}),ln&&(0,M.jsxs)(_.Z,{children:["通过",null==ee?void 0:ee.min_finished_game,"关获得满分距离MOOC实训作业满分还差",cn,"关"]})]}),(0,M.jsxs)("aside",{className:"minH500 skt-loading relative pb40 mb30",children:[(0,M.jsxs)(S.Z,{loading:c[(0,Z.GJ)()?"classroomList/getClassroomTeacherShixunsList":"classroomList/getClassroomShixunsList"],active:!0,paragraph:{rows:5},className:"mt30",children:[0===(null==ee?void 0:ee.all_count)&&(0,Z.GJ)()?(0,M.jsx)(_e,{params:he,setisshowmodal:Ae,dispatch:u}):0===(null==ee?void 0:ee.task_count)&&(0,M.jsx)(K.Z,{}),(0,M.jsxs)("aside",{className:"animated fadeIn",children:[ee.homeworks&&ee.homeworks.map((function(e,n){return(0,M.jsx)(Me,{batchState:!0,v:e,k:n,match:p,selectArrs:U,setSelectArrs:J,setSelectArrsAll:$,selectArrsAll:X,classroomList:s,dispatch:u,params:he,page:E.page||1,pageSize:he.limit||20,selectshow:qe,manageAllGroup:ee.manage_all_group},e.homework_id)})),ee.query_total_count>0&&(0,M.jsx)("aside",{className:"tc mb50 mt30",children:(0,M.jsx)(T.Z,{showSizeChanger:!0,current:he.page||1,pageSize:he.limit||20,onChange:function(e,n){he.page=e,he.limit=n,$e()},total:ee.query_total_count})})]})]}),(0,M.jsxs)("div",{className:je.fixedBottom,style:{bottom:U.length?0:-60,position:U.length?Oe:"fixed",left:"fixed"===Oe?"50%":"317px"},children:[(0,M.jsx)("div",{className:je.left}),(0,M.jsx)("div",{className:je.right,children:(0,Z.GJ)()&&(null==ee?void 0:ee.all_count)>0&&(0,M.jsxs)("aside",{className:[je.acitons].join(" "),children:[(0,M.jsx)("div",{style:{width:130},children:(0,Z.GJ)()&&(0,M.jsx)(N.Z,{checked:(null===(t=ee.homeworks)||void 0===t?void 0:t.length)===(null==U?void 0:U.length),onChange:function(e){e.target.checked?(J(ee.homeworks.map((function(e){return e.homework_id}))),$(a()(ee.homeworks))):(J([]),$([]))},children:(0,M.jsxs)("span",{className:"fo",children:["全选本页",(0,M.jsxs)("span",{style:{marginLeft:5},children:["(",U.length,")"]})," "]})})}),(0,M.jsxs)("div",{className:je.actionBtns,children:[(0,Z.GJ)()&&sn.map((function(e,n){return(0,M.jsxs)("p",{onClick:function(){var n;"批量发布"!==e.name&&"批量截止"!==e.name||!(0,Z.Rm)()||null!==(n=s.AssistantObject)&&void 0!==n&&null!==(n=n.practice)&&void 0!==n&&n.can_publish?""==U?y.ZP.error("请选择你要操作的任务"):u({type:"classroomList/setActionTabs",payload:{key:"批量发布"===e.name?"立即发布":"批量截止"===e.name?"立即截止":"批量删除"===e.name?"删除":e.name,selectArrs:U,selectArrsAll:X,type:"批量发布"===e.name||"批量截止"===e.name?1:"",params:he}}):y.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:[null==e?void 0:e.icon,(0,M.jsx)("span",{children:e.name})]},n)})),(0,M.jsxs)("p",{onClick:function(){var e={courseId:he.id,container_type:"shixun_homework"};V&&(e.category_id=V),u({type:"classroomList/getAllTaskList",payload:e}),u({type:"classroomList/setActionTabs",payload:{key:"调整排序"}})},children:[(0,M.jsx)("i",{className:"iconfont icon-tiaozhengpaixu2"}),(0,M.jsx)("span",{children:"调整排序"})]}),(0,Z.GJ)()&&(0,M.jsx)("p",{children:(0,M.jsx)(j.Z,{open:de,placement:"topLeft",dropdownRender:function(){return an},getPopupContainer:function(e){return null==e?void 0:e.parentNode},children:(0,M.jsxs)("span",{className:"ant-dropdown-link",style:{position:"relative",zIndex:1003},onMouseEnter:function(e){return ue(!0)},children:[(0,M.jsx)("i",{className:"iconfont icon-yidongmulu"})," 移动到目录",(0,M.jsx)(P.Z,{})]})})}),(0,M.jsx)("div",{className:je.cancel,onClick:function(){J&&J([]),Be(!1)},children:"取消操作"})]})]})})]})]}),"选用实践课程"===s.actionTabs.key?(0,M.jsx)(we,{}):null,(0,M.jsx)(Ee.Z,{onOk:function(){$e()}}),(0,M.jsx)(De.Z,{onOk:function(){}}),"选用实践项目"===s.actionTabs.key?(0,M.jsx)(fe,{}):null,"从课堂实验添加"===s.actionTabs.key?(0,M.jsx)(xe,{}):null,(0,M.jsx)(z,{}),(0,M.jsx)(D,{}),(0,M.jsx)(G.Z,{courseEndTime:null==ee?void 0:ee.course_end_time}),(0,M.jsx)(R.Z,{visible:"立即截止"===s.actionTabs.key,courseEndTime:null==ee?void 0:ee.course_end_time,courseId:E.coursesId,homeworkIds:s.actionTabs.selectArrs,isBatch:2!==s.actionTabs.type,successCallback:function(){(0,Z.GJ)()?u({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},s.actionTabs.params),{},{type:4})}):u({type:"classroomList/getClassroomShixunsList",payload:d()({},s.actionTabs.params)})}}),(0,M.jsx)(O,{}),(0,M.jsx)(ve,{}),(0,M.jsx)(Le,{visible:"调整排序"===s.actionTabs.key,callback:function(e){return en.apply(this,arguments)},data:nn,onCancel:function(){u({type:"classroomList/setActionTabs",payload:{key:""}})}}),(0,M.jsx)(L.Z,{title:"选用实验",open:Ne,centered:!0,onCancel:function(){return Ae(!1)},onOk:function(){var e;!(0,Z.Rm)()||null!==(e=s.AssistantObject.practice)&&void 0!==e&&e.can_create?(u(1===We?{type:"classroomList/setActionTabs",payload:{key:"选用实践项目",params:he}}:{type:"classroomList/setActionTabs",payload:{key:"选用实践课程",params:he}}),Ae(!1)):y.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:(0,M.jsx)("div",{children:(0,M.jsxs)(A.ZP.Group,{onChange:function(e){Ke(e.target.value)},value:We,children:[(0,M.jsx)(A.ZP,{style:{marginTop:"15px"},value:1,children:"从实践项目添加(可选择多个实践项目加入作业)"}),(0,M.jsx)(A.ZP,{style:{marginTop:"15px"},value:2,children:"从实践课程添加(将实践课程中全部的实践项目都加入作业)"})]})})})]})}))},28622:function(e,n,t){"use strict";t.d(n,{_:function(){return g}});var i=t(7557),a=t.n(i),s=t(41498),o=t.n(s),r=t(85062),l=t(43418),c=t(8591),d=t(52306),u=t(6457),m=(t(59301),t(37712)),p=function(){var e=o()(a()().mark((function e(n){var t,i,s,o,l,c,d;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.is_jupyter,i=n.is_jupyter_lab,s=n.shixunId,o=n.homework_common_id,l=n.courseId,!t&&!i){e.next=7;break}return e.next=4,(0,r.BK)({id:s});case 4:return null!=(c=e.sent)&&c.identifier&&(0,u.xg)("/tasks/".concat(c.identifier,"/jupyter?homework_common_id=").concat(o)),e.abrupt("return");case 7:return e.next=9,(0,r.Ir)({id:s,homework_common_id:o});case 9:if(null==(d=e.sent)||!d.game_identifier){e.next=13;break}return(0,u.xg)("/tasks/".concat(l,"/").concat(o,"/").concat(d.game_identifier)),e.abrupt("return");case 13:2===(null==d?void 0:d.status)?h(null==d?void 0:d.message,o,l):3===(null==d?void 0:d.status)?f(null==d?void 0:d.message):-3==(null==d?void 0:d.status)&&(0,u.eF)();case 14:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),h=function e(n,t,i){var s,d;n=null!==(s=n)&&void 0!==s&&s.includes(".json")?n:"".concat(n,".json"),l.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,m.jsx)("div",{className:"tc font16",children:" 实训已经更新了,正在为您重置!"}),onOk:(d=o()(a()().mark((function s(){var o,l;return a()().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,r.$Q)({url:n});case 2:if(o=a.sent){a.next=5;break}return a.abrupt("return");case 5:return c.ZP.success("重置成功,正在进入实践项目!"),a.next=8,(0,r.Ir)({id:o.shixun_identifier,homework_common_id:t});case 8:if(null==(l=a.sent)||!l.game_identifier){a.next=12;break}return(0,u.xg)("/tasks/".concat(i,"/").concat(t,"/").concat(l.game_identifier)),a.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 a.stop()}}),s)}))),function(){return d.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()(a()().mark((function e(n,t){var i,s,o,c,u,h,f;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.is_jupyter,s=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)(d.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,a=t.id;return(0,m.jsx)("a",{target:"_blank",href:"/classrooms/".concat(i,"/shixun_homework/").concat(a,"/detail"),children:e})}},{title:"作业截止时间",dataIndex:"end_time",align:"center"},{title:"操作",align:"center",render:function(e,n){var t=n.course_identifier,a=n.id,o=n.shixun_identifier;return(0,m.jsx)("div",{style:{cursor:"pointer",color:"#165dff"},onClick:function(){p({is_jupyter:i,is_jupyter_lab:s,shixunId:o,homework_common_id:a,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],u=c.shixun_identifier,h=c.id,f=c.course_identifier,p({is_jupyter:i,is_jupyter_lab:s,shixunId:u,homework_common_id:h,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=p},83547:function(e,n){"use strict";n.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5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