|
|
(self.webpackChunk=self.webpackChunk||[]).push([[7852,43428,4977,42739,77381],{680:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var i=t(5891),a=t(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},s=t(22589),r=function(e,n){return a.createElement(s.Z,(0,i.Z)({},e,{ref:n,icon:o}))};var l=a.forwardRef(r)},45532:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var i=t(5891),a=t(59301),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},s=t(22589),r=function(e,n){return a.createElement(s.Z,(0,i.Z)({},e,{ref:n,icon:o}))};var l=a.forwardRef(r)},22975: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,o=!1,s=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:s=u;break;case"object":void 0!==u.is3D?i=u:t=u;break;case"boolean":a=u,o=!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||o||(a=!0)),null!==s&&void 0===t.id&&(t.id=s);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 j(){try{return window.self!==window.top}catch(e){return!0}}function k(){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,M(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",o=t.id,s=!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:o=arguments[l]:"boolean"==typeof c?s=c:c instanceof HTMLElement&&(i=c)}function d(){if(r){a=I(a);var l=i||document.getElementById(o);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)T(l,t);else{var c=!1;t.hasOwnProperty("playButton")&&t.playButton||t.hasOwnProperty("clickToLoad")&&t.clickToLoad?c=!0:t.hasOwnProperty("playButtonAutoDecide")&&t.playButtonAutoDecide&&(c=(!j()||n())&&k()),c?(h="screenshot",L(l,t,s,a)):N(l,t,s)}else console.log("possibly bug on ajax loading? ")}else setTimeout(d,200)}d()},e.getViews=function(){return i},e.isJavaInstalled=function(){return!1};var _=function(n){var a=function(){t.onError&&t.onError(),O("Error: Fetching material (id "+t.material_id+") failed.",t)},o=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",s="/materials/"+t.material_id+"?scope=basic";C("https://"+o+"/api/proxy.php?path="+encodeURIComponent(s),(function(o){var s=JSON.parse(o),r=s.elements?s.elements.filter((function(e){return"G"==e.type||"E"==e.type}))[0]:s;if(r&&r.url){t.fileName=r.url,A(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 A(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 C(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 o=e.childNodes[i],s=o.className;"applet_screenshot"===s?n?(o.style.display="block",h="screenshot"):o.style.display="none":"applet_scaler prerender"!==s&&(e.removeChild(o),a=s&&-1!=s.indexOf("appletParameters")?o.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 S=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 o=document.createElement("div");o.classList.add("appletParameters","notranslate");var s=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)S(t.showToolBar)&&(t.height-=7),S(t.showAlgebraInput)&&(t.height-=37),t.width<605&&S(t.showToolBar)&&(t.width=605,s=605);else{var d=100;(S(t.showToolBar)||S(t.showMenuBar))&&(t.hasOwnProperty("customToolBar")&&(t.customToolbar=t.customToolBar),d=S(t.showMenuBar)?245:155),s<d&&(t.width=d,s=d)}for(var u in o.style.border="none",o.style.display="inline-block",t)t.hasOwnProperty(u)&&"appletOnLoad"!==u&&o.setAttribute("data-param-"+u,t[u]);w&&o.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(o),n.appendChild(h),t.appletOnLoad=function(n){e.resize(),p(n)}}else{t.hasOwnProperty("showSplash")||o.setAttribute("data-param-showSplash","false");var v=n.querySelector(".applet_scaler.prerender"),y=null!==v;if(y)j=v.querySelector(".ggb_preview");else{var j=P(s,r,t.borderColor,!1);(v=document.createElement("div")).className="applet_scaler",v.style.position="relative",v.style.display="block",v.style.width=s+"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(j)):o.appendChild(j),v.appendChild(o),y||n.appendChild(v),setTimeout((function(){e.resize()}),1)}function k(e,n){n&&"function"==typeof n.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,n.appletOnLoad):renderGGBElement(e),O("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",n)}function _(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){k(e.article,e.params)})),html5AppletsToProcess=null)},b(f)<5&&(e.className+=" geogebraweb")):k(e,n)}if(a){scriptLoadStarted=!0;for(var A=0;A<o.childNodes.length;A++){"TABLE"===o.childNodes[A].tagName&&(o.removeChild(o.childNodes[A]),A--)}if(null!==ggbHTML5LoadedScript){var C=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=C&&C.parentNode.removeChild(C)}var N=document.createElement("script"),T=function(){_(o,t)};N.src=m+g,ggbHTML5LoadedCodebaseIsWebSimple=x,ggbHTML5LoadedCodebaseVersion=f,ggbHTML5LoadedScript=N.src,O("GeoGebra HTML5 codebase loaded: '"+m+"'.",t),c||l&&"5.0"!=l?m.requirejs?__webpack_require__.e(51495).then(function(){var e=[__webpack_require__(51495)];T.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(N.onload=T,n.appendChild(N)):(x?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),T())}else _(o,t);t.height=r,t.width=s},T=function(n,t,i){var a=P(t.width,t.height,t.borderColor,i),o=document.createElement("div");o.style.position="relative",o.style.display="block",o.style.width=t.width+"px",o.style.height=t.height+"px",o.className="applet_screenshot applet_scaler"+(i?" applet_screenshot_play":""),o.appendChild(a);var s=GGBAppletUtils.getScale(t,n,i);i?(n.appendChild(B()),window.GGBT_wsf_view||(n.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(o,"66%"),n.appendChild(o),1===s||isNaN(s)||(GGBAppletUtils.scaleElement(o,s),o.style.width=t.width+"px",o.style.height=t.height+"px",o.parentNode.style.width=t.width*s+"px",o.parentNode.style.height=t.height*s+"px"),e.resize=function(){Z(n,a,o,i)},window.addEventListener("resize",(function(n){e.resize()})),e.resize()};function Z(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 o=GGBAppletUtils.getScale(t,e,a);null!==i.parentNode&&(isNaN(o)||1===o?(GGBAppletUtils.scaleElement(i,1),i.parentNode.style.width=t.width+"px",i.parentNode.style.height=t.height+"px"):(GGBAppletUtils.scaleElement(i,o),i.parentNode.style.width=t.width*o+"px",i.parentNode.style.height=t.height*o+"px")),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(e),"object"===_typeof(window.GGBT_ws_header_footer)&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}e.onExitFullscreen=function(e,n){n.appendChild(e)};var L=function(e,n,t,i){T(e,n,!0);for(var a=function(){var t=[];for(s=0;s<e.childNodes.length;s++)t.push(e.childNodes[s]);if(window.GGBT_wsf_view){var a=window.GGBT_wsf_view.renderFullScreen(e,n.id),o=document.getElementById("fullscreencontainer"),r=jQuery(e).find(".fullscreencontent");r.length>0?(a.remove(),r.attr("id","fullscreencontent").show(),jQuery(o).append(r),window.dispatchEvent(new Event("resize"))):N(a,n,!1),window.GGBT_wsf_view.launchFullScreen(o)}else h=i,N(e,n,!1);if(!window.GGBT_wsf_view)for(s=0;s<t.length;s++)e.removeChild(t[s])},o=e.getElementsByClassName("ggb_preview_play"),s=0;s<o.length;s++)o[s].addEventListener("click",a,!1),o[s].addEventListener("ontouchstart",a,!1);"function"==typeof window.ggbAppletPlayerOnload&&window.ggbAppletPlayerOnload(e),k()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},B=function(){var e=document.createElement("div");if(e.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var n='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',t=document.createElement("style");t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),document.getElementsByTagName("head")[0].appendChild(t)}return e},P=function(e,n,t,i){var 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 o="lightgrey";void 0!==t&&(o="none"===t?"transparent":t),a.style.border="1px solid "+o;var s,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){(s=document.createElement("img")).style.position="absolute",s.style.zIndex="1001",s.style.opacity=1,c.style.opacity=.3,(r=360)>e/4*3&&(r=e/4*3),l=r/5.8,s.setAttribute("src",y),s.setAttribute("width",r),s.setAttribute("height",l);var d=(e-r)/2,u=(n-l)/2;s.style.left=d+"px",s.style.top=u+"px",a.appendChild(s)}return a.appendChild(c),a},I=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},E=["web","webSimple","web3d","tablet","tablet3d","phone"],M=function(e,n){if(f=e,n)D(f,!0);else{var o,s,r=!a;if(r){var l=b(f);!isNaN(l)&&l<4.4&&(r=!1)}o="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=f.indexOf("//");for(var d in s=c>0?f:0===c?o+f:"https://www.geogebra.org/apps/5.2.814.0/",E)if(f.slice(-1*E[d].length)===E[d]||f.slice(-1*(E[d].length+1))===E[d]+"/")return void D(s,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!r||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||S(t.showToolBar)||S(t.showMenuBar)||S(t.showAlgebraInput)||S(t.enableRightClick)||t.appName&&"classic"!=t.appName?s+="web3d/":s+="webSimple/",D(s,!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]?E.indexOf(t[t.length-2])>=0&&(g=t[t.length-2]+".nocache.js"):(g="webSimple.nocache.js",x=!0)),t=e.split("/"),"test"===(f=t[t.length-3]).substr(0,4)?f=f.substr(4,1)+"."+f.substr(5,1):"war"!==f.substr(0,3)&&"beta"!==f.substr(0,4)||(f="5.0");var i=parseFloat(f);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),M("5.0",n))}},O=function(e,n){window.console&&window.console.log&&(!n||void 0===n.showLogging||n.showLogging&&"false"!==n.showLogging)&&console.log(e)};function z(){var e=n;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),M(e,!1),null!==c&&D(c,p),r=!0}return void 0!==t.material_id?_(z):z(),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 o,s=void 0!==i&&i,r=null!=e.noScaleMargin&&e.noScaleMargin,l=(o=e.autoHeight)&&"false"!==o,c=function(e,n,t,i,a,o){var s=null;if(null!=o&&""!=o)for(var r=e.parentNode;null!=r;){if((" "+r.className+" ").indexOf(" "+o+" ")>-1){s=r;break}r=r.parentNode}var l=0,c=0,d=0,u=0,m=0,p=0,h=0;if(s)l=s.offsetWidth,c=Math.max(i?s.offsetWidth:0,s.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),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,s&&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=s?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,o=1,s=!1;return e.hasOwnProperty("allowUpscale")&&(s=e.allowUpscale),e.hasOwnProperty("scale")&&(o=parseFloat(e.scale),(isNaN(o)||null===o||0===o)&&(o=1),o>1&&(s=!0)),n&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(s=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?o:(a=t(e,n,s,i,e.scaleContainerClass),!s||e.hasOwnProperty("scale")&&1!==o?Math.min(o,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,o=(t-i.height)/2;o<0&&(o=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=a<40?"40px":a+"px",e.style.top=o+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=o<40?"40px":o+"px",e.style.left=a+"px")}return{responsiveResize:function(t,o){var s=t.querySelector(".appletParameters");if(s){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(o.id!==s.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(t)}if(s.parentElement&&/fullscreen/.test(s.parentElement.className))return;var r=i(o,t);e()&&s.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!==o.id?o.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=o.width+"px",l.parentNode.style.height=o.height+"px"):(l.parentNode.style.width=o.width*r+"px",l.parentNode.style.height=o.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($(s).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 o(e){var n=a[e](),t=i[e];if(n in t)return n;var o=[];for(var s in t)o[t[s]]=s;throw r&&r(e,o,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]=o(n));return e},webModule.__computePropValue=o,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(e=Cb).indexOf(Db);-1!=s&&(t=parseInt(e.substring(s+P),$),e=e.substring(O,s))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var n=s[L].bindings;s[L].bindings=function(){for(var t=n?n():{},i=e[webModule.__softPermutationId],a=O;a<i.length;a++){var o=i[a];t[o[O]]=o[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")})()},43961: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],o=n?"".concat(n,"/").concat(a.name):"".concat(a.name);t.push({title:a.name,type:a.type,isLeaf:"tree"!==a.type,key:o})}return t}function o(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&&o(a.children,n,t)}return e}function s(e,n,t){var i;return function(){var a=this,o=arguments,s=function(){i=null,t||e.apply(a,o)},r=t&&!i;clearTimeout(i),i=setTimeout(s,n),r&&e.apply(a,o)}}t.d(n,{Ax:function(){return o},Ds:function(){return s},KI:function(){return r},SI:function(){return a},f1:function(){return i}});var r=t(70005).Z.API_SERVER},68480:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});t(7557),t(41498);var i=t(82100),a=t.n(i),o=t(29186),s=t.n(o),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(92832),v="codeBox___WpkVl",y=t(92310),w=t.n(y),b=t(37712),j=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 s()(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),o=10;t>0&&(o=10+t*a);var s=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);i>40&&(s=40);var r=this.randomNum(-10,10);e.translate(o,s),e.rotate(r*Math.PI/180),e.fillText(n,0,0),e.rotate(-r*Math.PI/180),e.translate(-o,-s)}},{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),k=j},68423:function(e,n,t){"use strict";t.d(n,{Z:function(){return C}});var i=t(7557),a=t.n(i),o=t(41498),s=t.n(o),r=t(79800),l=t.n(r),c=t(59301),d=t(78241),u=t(8591),m=t(43418),p=t(57930),h=t(92832),f=t(61998),g=t(95237),x=t(43604),v=t(61186),y=t.n(v),w=t(13023),b=t(33423),j={tips:"tips___e8J4O",homeworkType:"homeworkType___ZjN2X",antdTable:"antdTable___amDdp",modalWrapper:"modalWrapper___XPojI"},k=t(24630),_=t(58978),A=t(37712),C=(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),o=void 0===i?function(){}:i,r=e.visible,v=e.homeworkIds,b=e.courseId,C=e.isBatch,S=(e.shixunHomeworks,d.Z.useForm()),N=l()(S,1)[0],T=(0,c.useState)(!1),Z=l()(T,2),L=Z[0],B=Z[1],P=(0,c.useState)(!1),I=l()(P,2),E=I[0],M=I[1],D=(0,c.useState)(!1),O=l()(D,2),z=O[0],R=O[1],G=(0,c.useState)([]),F=l()(G,2),H=F[0],V=F[1],W=(0,c.useState)([]),Y=l()(W,2),K=Y[0],U=Y[1],q=(0,c.useState)([]),J=l()(q,2),Q=J[0],X=J[1],$=(0,c.useState)([]),ee=l()($,2),ne=ee[0],te=ee[1],ie=(0,c.useState)([]),ae=l()(ie,2),oe=ae[0],se=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],je=we[1];(0,c.useEffect)((function(){r?ke():Ae()}),[r]);var ke=function(){var e=s()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B(!0),e.next=3,(0,k.oR)(v[0],{course_id:b});case 3:n=e.sent,R(n.no_group),C?(he(n.all_course_groups),ve(n.all_course_groups)):(te(n.late_course_groups),se(n.late_course_groups),V(n.submit_course_groups),U(n.submit_course_groups)),B(!1),N.setFieldsValue({end_time:y()()});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_e=function(){var e=s()(a()().mark((function e(){var t,i,s;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"),!(C?0===be.length:0===Q.length&&0===ce.length)||z){e.next=6;break}return u.ZP.warning("请选择需要操作的班级"),e.abrupt("return");case 6:return M(!0),e.next=9,(0,k.Mc)(b,{no_group:z,homework_ids:v,group_ids:C?be:Q,end_time:i,late_group_ids:C?be:ce});case 9:s=e.sent,M(!1),0===s.status&&(Ae(),u.ZP.success("操作成功"),o(),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}));case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ae=function(){X([]),de([]),U([]),se([])};return(0,A.jsxs)(m.Z,{centered:!0,title:"立即截止",className:j.modalWrapper,width:C||z?520:760,open:r,confirmLoading:E,destroyOnClose:!0,okText:"截止",cancelText:"取消",onOk:function(){return _e()},onCancel:function(){Ae(),n({type:"classroomList/setActionTabs",payload:{}})},children:[(0,A.jsxs)("div",{className:j.tips,children:[(0,A.jsx)("div",{children:"1、截止后学生不能再提交作业。"}),(0,A.jsx)("div",{children:"2、本操作只对“提交中”、“补交中”的作业有效。"})]}),(0,A.jsx)(d.Z,{form:N,layout:"vertical",children:(0,A.jsx)(d.Z.Item,{name:"end_time",label:"截止时间",children:(0,A.jsx)(p.default,{style:{width:"100%"},disabledDate:function(e){return(0,_.Q8)(e,t)},disabledTime:function(e){return(0,_.d0)(e)},placeholder:"请选择结束时间",showTime:{format:"HH:mm",defaultValue:y()((0,w.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),!z&&(0,A.jsx)(A.Fragment,{children:C?(0,A.jsxs)("div",{children:[(0,A.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){ve(pe.filter((function(n){return n.name.indexOf(e.target.value)>-1})))}}),(0,A.jsx)(f.Z,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){je(e)}},rowKey:"id",pagination:!1,dataSource:xe,loading:L,columns:[{title:"班级",dataIndex:"name"}]})]}):(0,A.jsxs)(g.Z,{gutter:24,children:[(0,A.jsxs)(x.Z,{span:14,children:[(0,A.jsx)("div",{className:j.homeworkType,children:"作业截止"}),(0,A.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){U(H.filter((function(n){return n.name.indexOf(e.target.value)>-1})))}}),(0,A.jsx)("div",{className:j.tableWrapper,children:(0,A.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){X(e)}},rowKey:"id",pagination:!1,dataSource:K,loading:L,columns:[{title:"班级",dataIndex:"name",ellipsis:!0},{title:"发布时间",dataIndex:"publish_time"},{title:"截止时间",dataIndex:"end_time"}]})})]}),(0,A.jsxs)(x.Z,{flex:10,style:{maxWidth:"280px"},children:[(0,A.jsx)("div",{className:j.homeworkType,children:"补交截止"}),(0,A.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){se(ne.filter((function(n){return n.name.indexOf(e.target.value)>-1})))}}),(0,A.jsx)("div",{className:j.tableWrapper,children:(0,A.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){de(e)}},rowKey:"id",pagination:!1,loading:L,dataSource:oe,columns:[{title:"班级",dataIndex:"name",ellipsis:!0,width:120},{title:"截止时间",dataIndex:"late_time"}]})})]})]})})]})}))},6771:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var i=t(79800),a=t.n(i),o=t(78241),s=t(92832),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=o.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)(o.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)(o.Z.Item,{label:"实践项目名称",name:"keyword",initialValue:"",children:(0,d.jsx)(s.Z,{style:{width:280,height:40}})}),(0,d.jsx)(o.Z.Item,{label:"学校/单位",name:"schools",initialValue:"",style:{margin:"0 40px"},children:(0,d.jsx)(s.Z,{style:{width:280,height:40}})}),(0,d.jsx)(o.Z.Item,{label:"创建者/合作者",name:"creator",initialValue:"",children:(0,d.jsx)(s.Z,{style:{width:200,height:40}})}),(0,d.jsx)(r.ZP,{className:c.btn,type:"primary",htmlType:"submit",children:"搜索"})]})})}},5366:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var i=t(7557),a=t.n(i),o=t(41498),s=t.n(o),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(7262),v=t(13023),y=t(37712),w=function(e){var n=e.data,t=e.className,i=e.fullWidth,o=e.style,r=void 0===o?{}:o,p=e.onClose,w=e.onOk,b=e.showFullTools,j=e.noAssociationId,k=(0,c.useRef)(null),_=(0,c.useRef)(null),A=(0,c.useRef)(null),C=(0,c.useRef)(null),S=(0,c.useState)(!1),N=l()(S,2),T=N[0],Z=N[1],L=(0,c.useState)("正在加载中"),B=l()(L,2),P=B[0],I=B[1];(0,c.useEffect)((function(){A.current||(A.current=document.createElement("style"),document.head.appendChild(A.current)),null!=n&&n.visible?(document.body.setAttribute("data-custom","y-hidden"),A.current.innerHTML=" html { overflow-y: hidden; }",null!=n&&n.src&&E()):(document.body.removeAttribute("data-custom"),A.current&&(document.head.removeChild(A.current),A.current=null))}),[null==n?void 0:n.visible]);var E=function(){var e=s()(a()().mark((function e(){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(!0),I("正在加载中"),e.next=4,(0,v.ZJ)(null==n?void 0:n.src);case 4:t=e.sent,k.current.src="",k.current.src=t,k.current.onload=function(){D()},Z(!1),I("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=function(){var e=s()(a()().mark((function e(t){var i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(!0),I("正在保存中"),e.next=4,(0,x.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:n.title,file:t.dataUrl}});case 4:if(null==(i=e.sent)||!i.id||j){e.next=12;break}return e.next=8,(0,x.ZP)("/api/attachments/".concat(n.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==i?void 0:i.id,settings:JSON.stringify(t.state)}});case 8:0===e.sent.status&&w(),e.next=13;break;case 12:null!=i&&i.id&&w(i);case 13:Z(!1),I("");case 15:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),D=function(){_.current=new g.hP(k.current),_.current.targetRoot=C.current,_.current.addEventListener("render",M),_.current.addEventListener("beforeclose",p),b&&(_.current.availableMarkerTypes=_.current.ALL_MARKER_TYPES,_.current.uiStyleSettings.redoButtonVisible=!0,_.current.uiStyleSettings.notesButtonVisible=!0,_.current.uiStyleSettings.zoomButtonVisible=!0,_.current.uiStyleSettings.zoomOutButtonVisible=!0,_.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=_.current.uiStyleSettings,_.current.show(),null!=n&&n.snapshotData&&_.current.restoreState(n.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var n=document.querySelector(e.name);n&&n.setAttribute("title",e.title)}))}),300)};return(0,y.jsx)(c.Fragment,{children:(null==n?void 0:n.visible)&&(0,y.jsx)(f.Z,{spinning:T,tip:P,style:{position:"absolute"},children:(0,y.jsx)("div",{ref:C,className:h()(d,t,i?m:""),style:r,children:(0,y.jsx)("img",{className:u,ref:k})})})})}},21446:function(e,n,t){"use strict";t.d(n,{Z:function(){return E},P:function(){return P}});var i=t(37205),a=t.n(i),o=t(39647),s=t.n(o),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(92832),w=t(61998),b="brief___LOzpE",j="contentTitle___xkdcN",k="content___Vtri0",_="antdTable___s8T2N",A="tableCell___kN9Fw",C="antdModal___WVBk3",S="orangeColor___ryB2u",N=t(14683),T=t(37712),Z=["isImportMultipleCourse"],L=function(e){var n=e.studentNames,t=e.total;return t>3?(0,T.jsxs)(T.Fragment,{children:["课堂内有",(0,T.jsx)("span",{className:S,children:null==n?void 0:n.join("、")}),"等",(0,T.jsx)("span",{className:S,children:t}),"名学生"]}):(0,T.jsxs)(T.Fragment,{children:["课堂内有",(0,T.jsx)("span",{className:S,children:null==n?void 0:n.join("、")}),["","一","两","三"][t],"名学生"]})},B=function(e){var n=e.onCancel,t=e.onOk,i=e.visible,a=(e.inPaper,e.renderData),o=(e.type,e.isMultipleCourse),s=void 0!==o&&o,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),j=h()(b,2),_=j[0],A=j[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]),Z=(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,T.jsx)(T.Fragment,{children:N?(0,T.jsxs)(x.Z,{centered:!0,closable:!0,open:i,destroyOnClose:!0,title:"提示",className:C,width:682,confirmLoading:_,onCancel:n,onOk:m()(l()().mark((function e(){var n,i,o;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(!0),n=y,s&&(o=d()({},c.getFieldsValue()),n=null==a||null===(i=a.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==o[e.id]?d()(d()({},e),{},{is_copy:o[e.id]}):e}))),e.next=5,t(n);case 5:A(!1);case 6:case"end":return e.stop()}}),e)}))),children:[(0,T.jsx)("div",{className:k,style:{marginBottom:20},children:s?"检测到以下课堂已在教学课堂中使用,请问是否复制成新的实训发送至教学课堂中?":(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(L,{studentNames:null==a?void 0:a.student_names,total:null==a?void 0:a.student_count}),"学习过该实践项目。该项目支持复制,请选择是否将该项目复制为新项目发送至课堂中?"]})}),s?(0,T.jsx)(g.Z,{form:c,preserve:!1,children:null==Z?void 0:Z.map((function(e){return(0,T.jsxs)(f.Fragment,{children:[(0,T.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,T.jsx)(g.Z.Item,{name:e.id,initialValue:1,children:(0,T.jsxs)(v.ZP.Group,{className:k,children:[(0,T.jsx)(v.ZP,{value:1,style:{color:"#464f66"},children:"复制实训"}),(0,T.jsx)(v.ZP,{value:0,style:{color:"#464f66"},children:"不复制实训"})]})})]},e.id)}))}):(0,T.jsxs)(v.ZP.Group,{value:y,onChange:function(e){return w(e.target.value)},className:k,style:{marginBottom:30},children:[(0,T.jsx)(v.ZP,{value:1,style:{color:"#464f66"},children:"复制"}),(0,T.jsx)(v.ZP,{value:0,style:{color:"#464f66"},children:"不复制"})]}),(0,T.jsxs)("div",{children:[(0,T.jsx)("div",{className:k,style:{marginBottom:10},children:"* 说明:"}),(0,T.jsx)("div",{className:k,style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,T.jsx)("div",{className:"".concat(k," ").concat(S),children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]})]}):(0,T.jsx)(x.Z,{centered:!0,closable:!0,destroyOnClose:!0,open:i,confirmLoading:_,title:"提示",width:682,onCancel:n,onOk:m()(l()().mark((function e(){var n,i,o;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(!0),n=0,s&&(o=d()({},c.getFieldsValue()),n=null==a||null===(i=a.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==o[e.id]?d()(d()({},e),{},{is_use:o[e.id]}):e}))),e.next=5,t(n);case 5:A(!1);case 6:case"end":return e.stop()}}),e)}))),children:(0,T.jsxs)("div",{className:k,children:[(0,T.jsx)(L,{studentNames:null==a?void 0:a.student_names,total:null==a?void 0:a.student_count}),"学习过该实践项目。",s?(0,T.jsxs)(g.Z,{form:c,preserve:!1,children:[(0,T.jsx)("h3",{children:"当前实训不可复制,已经检测到以下课堂存在该实训,同一实训在课堂中重复使用时,会导致成绩互相影响,请确认是否继续使用"}),null==Z?void 0:Z.map((function(e){return(0,T.jsxs)(f.Fragment,{children:[(0,T.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,T.jsx)(g.Z.Item,{name:e.id,initialValue:1,children:(0,T.jsxs)(v.ZP.Group,{className:k,children:[(0,T.jsx)(v.ZP,{value:1,style:{color:"#464f66"},children:"继续使用"}),(0,T.jsx)(v.ZP,{value:0,style:{color:"#464f66"},children:"不使用"})]})})]},e.id)}))]}):(0,T.jsxs)("div",{children:["该项目不支持复制,若确认继续发送,",(0,T.jsx)("span",{className:S,children:"当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"}),"(如果不想清空学生之前的挑战记录,建议参照该实践项目的内容自行创建一个新的项目,或者尝试联系项目创建人开放本项目的复制权限)。"]})]})})})},P=function(){var e=(0,f.useState)(!1),n=h()(e,2),t=n[0],i=n[1],a=(0,f.useState)(),o=h()(a,2),r=o[0],c=o[1],d=function(){var e=m()(l()().mark((function e(n){var t,a,o,r,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.isImportMultipleCourse,a=void 0!==t&&t,o=s()(n,Z),console.log(n),e.t0=null==n?void 0:n.result,e.t0){e.next=7;break}return e.next=6,(0,N.Tr)(o);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),o=h()(i,2),s=o[0],r=o[1],c=e.onCancel,d=e.onOk,u=e.visible,p=e.inPaper,k=void 0!==p&&p,N=e.renderData,Z=e.type,B=e.isMultipleCourse,P=void 0!==B&&B,I=e.position,E=(0,f.useMemo)((function(){return k?[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:A,render:function(e,n){return(0,T.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,n){return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(g.Z.Item,{name:["".concat("subject"===Z?n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],initialValue:1,children:(0,T.jsxs)(v.ZP.Group,{children:[(0,T.jsx)(v.ZP,{value:1,children:"是"}),(0,T.jsx)(v.ZP,{value:0,children:"否"})]})}),(0,T.jsx)(g.Z.Item,{name:["".concat("subject"===Z?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],hidden:!0,initialValue:1,children:(0,T.jsx)(y.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:A,render:function(e,n){return(0,T.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,n){return(0,T.jsx)(g.Z.Item,{name:["".concat("subject"===Z?n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],initialValue:1,children:(0,T.jsxs)(v.ZP.Group,{children:[(0,T.jsx)(v.ZP,{value:1,children:"是"}),(0,T.jsx)(v.ZP,{value:0,children:"否"})]})})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,n){return(0,T.jsx)(g.Z.Item,{name:["".concat("subject"===Z?n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],initialValue:1,children:(0,T.jsxs)(v.ZP.Group,{children:[(0,T.jsx)(v.ZP,{value:1,children:"是"}),(0,T.jsx)(v.ZP,{value:0,children:"否"})]})})}}]}),[k]),M=(0,f.useMemo)((function(){return k?[{title:"实践项目名称",dataIndex:"name",width:424,className:A,align:"center",ellipsis:!0,render:function(e,n){return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e}),(0,T.jsx)(g.Z.Item,{name:["".concat("subject"===Z?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],hidden:!0,initialValue:0,children:(0,T.jsx)(y.Z,{type:"hidden"})}),(0,T.jsx)(g.Z.Item,{name:["".concat("subject"===Z?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],hidden:!0,initialValue:1,children:(0,T.jsx)(y.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,className:A,ellipsis:!0,align:"center",render:function(e,n){return(0,T.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,n){return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(g.Z.Item,{name:["".concat("subject"===Z?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],initialValue:0,children:(0,T.jsxs)(v.ZP.Group,{children:[(0,T.jsx)(v.ZP,{value:1,children:"是"}),(0,T.jsx)(v.ZP,{value:0,children:"否"})]})}),(0,T.jsx)(g.Z.Item,{name:["".concat("subject"===Z?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],hidden:!0,initialValue:0,children:(0,T.jsx)(y.Z,{type:"hidden"})})]})}}]}),[k]);if(P){var D={title:"课堂名称",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:A,render:function(e,n){return(0,T.jsx)("a",{href:"/classrooms/".concat(n.course_id),children:e})}};E=[D].concat(a()(E)),M=[D].concat(a()(M))}var O=(0,f.useMemo)((function(){return function(e){var n=e.used,t=e.copy,i=e.canNotCopy,a=e.studentNames,o=e.studentCount,s=e.inPaper,r=e.is_random,l=void 0!==r&&r,c=e.position,d=(void 0===c?"":c)||(s?"试卷":"课程");return(0,T.jsxs)("span",{children:[(0,T.jsx)(L,{studentNames:a,total:o}),"学习过",d,"中的",(0,T.jsx)("span",{className:S,children:n}),"个项目,",t>0&&i>0?(0,T.jsxs)(T.Fragment,{children:["其中",(0,T.jsx)("span",{className:S,children:t}),"个项目支持复制,",(0,T.jsx)("span",{className:S,children:i}),"个项目不支持复制"]}):t>0&&0===i?(0,T.jsxs)(T.Fragment,{children:["其中",(0,T.jsx)("span",{className:S,children:t}),"个项目支持复制"]}):0===t&&i>0?(0,T.jsxs)(T.Fragment,{children:["其中",(0,T.jsx)("span",{className:S,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:k,position:I})}),[N,k,I]);return(0,T.jsx)(x.Z,{title:"提示",centered:!0,open:u,confirmLoading:s,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:C,destroyOnClose:!0,children:(0,T.jsxs)(g.Z,{form:t,preserve:!1,children:[(0,T.jsx)("div",{className:b,children:O}),(0,T.jsxs)("div",{style:{marginBottom:30},children:[(0,T.jsx)("div",{style:{marginBottom:20},children:"* 说明"}),(0,T.jsx)("div",{style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,T.jsx)("div",{className:S,children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]}),(null==N?void 0:N.can_copy_num)>0&&(0,T.jsxs)("div",{children:[(0,T.jsx)("div",{className:j,children:"支持复制的项目"}),(0,T.jsx)(w.Z,{columns:E,className:_,dataSource:null==N?void 0:N.can_copy_list,rowKey:"subject"===Z?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})]}),(null==N?void 0:N.no_copy_num)>0&&(0,T.jsxs)("div",{children:[(0,T.jsx)("div",{className:j,children:"不支持复制的项目"}),(0,T.jsx)(w.Z,{columns:M,className:_,dataSource:null==N?void 0:N.no_copy_list,rowKey:"subject"===Z?"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,T.jsxs)("div",{children:[(0,T.jsx)(g.Z.Item,{name:["".concat("subject"===Z?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],hidden:!0,initialValue:0,children:(0,T.jsx)(y.Z,{type:"hidden"})}),(0,T.jsx)(g.Z.Item,{name:["".concat("subject"===Z?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],hidden:!0,initialValue:1,children:(0,T.jsx)(y.Z,{type:"hidden"})})]},"subject"===Z?e.stage_shixun_id:e.shixun_course_id||e.id)})))]})})},E=function(e){return"multiple"===e.modalType?(0,T.jsx)(I,d()({},e)):(0,T.jsx)(B,d()({},e))}},91666: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,o=void 0===t||t,s=e.children;return(0,a.jsx)(a.Fragment,{children:o?(0,a.jsx)(i.Z,{placement:"topLeft",title:{"未发布":"作业尚未发布","未开始":"作业已发布,尚未到达开始作业时间","提交中":"作业进行中,所有考生可提交作业","补交中":"作业进行中,所有学生可补交作业","进行中":"作业进行中,部分班级正在作业提交中/补交中","已截止":"到达作业截止时间,作业已结束","已结束":"课堂已结束"}[n],children:(0,a.jsx)("span",{children:s})}):s})}},81694:function(e,n,t){"use strict";t.d(n,{h:function(){return x}});var i=t(82242),a=t.n(i),o=t(79800),s=t.n(o),r=t(59301),l=t(57809),c=t(78241),d=t(3113),u=t(89780),m=t.n(u),p=(t(10197),t(40055),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,o=e.options,l=void 0===o?{}:o,c=(0,r.useRef)(),d=(0,r.useState)(),u=s()(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"),o=s()(i,2),u=o[0],m=o[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:"取消"})]})]}))}},53442:function(e,n,t){"use strict";t.d(n,{Z:function(){return be}});var i=t(91232),a=t.n(i),o=t(79800),s=t.n(o),r=t(85573),l=t.n(r),c=t(59301),d=t(89780),u=t.n(d),m=t(76374),p=(t(10197),t(6313),t(25717),t(99498),t(25419),t(67549),t(76913)),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,o=e.className,s=void 0===o?"":o,r=e.children;return(0,h.jsxs)("a",{title:t,className:s,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,o=e.fullScreen,s=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,s&&(0,h.jsx)("li",{children:(0,h.jsx)(y,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(s),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(o?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:o?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:a})})]})},b=t(44028),j=t(78241),k=t(92832),_=t(3113),A={labelCol:{span:4},wrapperCol:{span:20}},C=function(e){var n=e.callback,t=e.onCancel;return(0,h.jsxs)(j.Z,x()(x()({},A),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},style:{width:500},children:[(0,h.jsx)(j.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(j.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(_.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(_.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))},S=t(81694),N=t(83113),T=t(95237),Z=t(5366),L=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 o=i.toDataURL("image/png");return(0,h.jsx)(T.Z,{style:{height:"100vh"},children:(0,h.jsx)(Z.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:o,visible:!0,title:String(Date.now())},onOk:function(e){n({src:e.url})},onClose:t})})},B=t(7557),P=t.n(B),I=t(41498),E=t.n(I),M=t(37205),D=t.n(M),O=t(12378);function z(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(z,go.CommandHandler),z.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},z.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")},z.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")},z.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")},z.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")},z.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")}},z.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")}},z.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],o=a.actualBounds.y+a.actualBounds.height+e;t[i+1].move(new go.Point(a.actualBounds.x,o))}n.commitTransaction("align Column")},z.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],o=a.actualBounds.x+a.actualBounds.width+e;t[i+1].move(new go.Point(o,a.actualBounds.y))}n.commitTransaction("align Row")},z.prototype.canRotate=function(e){var n=this.diagram;return null!==n&&!n.isReadOnly&&!n.isModelReadOnly&&!(n.selection.count<1)},z.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())},z.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){z._assignZOrder(e,n.get(e.layer)+1)})),e.commitTransaction("pullToFront")},z.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){z._assignZOrder(e,n.get(e.layer)-1-z._findGroupDepth(e))})),e.commitTransaction("pushToBack")},z._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){z._assignZOrder(e,n+1,t)}))},z._findGroupDepth=function(e){if(e instanceof go.Group){var n=0;return e.memberParts.each((function(e){n=Math.max(n,z._findGroupDepth(e))})),n+1}return 0},z.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)}},z.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},z.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")},z.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))},z.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,o=n,s=0;s<i.length;s++){var r=i[s];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,o=r)}}}return o},z.prototype._angleCloseness=function(e,n){return Math.min(Math.abs(n-e),Math.min(Math.abs(n+360-e),Math.abs(n-360-e)))},z.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!==(o=n.findTreeParentNode())&&e.select(o)}else if("Up"===t.key){if(null!==(o=n.findTreeParentNode()))if((r=(s=this._sortTreeChildrenByY(o)).indexOf(n))>0){for(var i=s.elt(r-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(o)}else if("Down"===t.key){var a;if(n.isTreeExpanded&&!n.isTreeLeaf)null!==(a=this._sortTreeChildrenByY(n).first())&&e.select(a);else for(;null!==n;){var o,s,r;if(null===(o=n.findTreeParentNode()))break;if((r=(s=this._sortTreeChildrenByY(o)).indexOf(n))<s.length-1){e.select(s.elt(r+1));break}n=o}}var l=e.selection.first();null!==l&&e.scrollToRect(l.actualBounds)}},z.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},z.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},z.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(z.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(z.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var R=z,G=(t(71524),t(85160)),F=t(43418),H=t(43604),V=t(7262),W="myPaletteDiv___Xjz2I",Y="maxH60___Pd4Re";window.go=O;var K=function(e){var n=e.onCancel,t=e.callback,i=(0,c.useRef)(),a=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(!1),l=(0,c.useRef)(!1),d=(0,c.useState)(0),u=s()(d,2),m=u[0],p=u[1],f=function(){var e=E()(P()().mark((function e(){var n,a;return P()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.current.makeImage(),e.next=3,(0,V.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(Y," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(F.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)(T.Z,{children:[(0,h.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(H.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:W,ref:o})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(G.FI,{initDiagram:function(){var e=O.GraphObject.make,n="#ff3333",t="#3358ff",s="#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,o=(new O.Point).setRectSpot(a.actualBounds,n);o.subtract(a.location),o.scale(2,2),o.x+=130*Math.sign(o.x),o.y+=130*Math.sign(o.y),o.add(a.location),o.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var s=i.copyNodeData(a.data);i.setGroupKeyForNodeData(s,i.getGroupKeyForNodeData(a.data)),i.addNodeData(s);var r={from:a.key,to:i.getKeyForNodeData(s)};i.addLinkData(r);var l=e.diagram.findNodeForData(s);l.location=o,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(O.Shape,{figure:t,alignment:n,alignmentFocus:n.opposite(),width:n.equals(O.Spot.Top)||n.equals(O.Spot.Bottom)?25:18,height:n.equals(O.Spot.Top)||n.equals(O.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(O.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 j(n,t){return t||(t="color"),e(O.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 k(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",j(d,"fill"),j(m,"fill"),j(p,"fill"),j(h,"fill"))),e("ContextMenuButton",e(O.Panel,"Horizontal",j(g,"fill"),j(x,"fill"),j(f,"fill"),j(v,"fill")))]}function _(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",j(u),j(s),j(t),j(n))),e("ContextMenuButton",e(O.Panel,"Horizontal",j(d),j(r),j(l),j(c)))]}function A(n,t){return t||(t="thickness"),e(O.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 C(n,t){return t||(t="dash"),e(O.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 S(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",A(1),A(2),A(3),A(4))),e("ContextMenuButton",e(O.Panel,"Horizontal",C(null),C([2,4]),C([4,4])))]}function N(n,t){return t||(t="figure"),e(O.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 T(n){return e(O.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(n+4).toString()+" H3"})}function Z(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(O.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 L(n){var t=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",O.Spot.stringify(O.Spot.AllSides)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(O.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 B(n,t){var i=0,a=O.Spot.RightSide;n.equals(O.Spot.Top)?(i=270,a=O.Spot.TopSide):n.equals(O.Spot.Left)?(i=180,a=O.Spot.LeftSide):n.equals(O.Spot.Bottom)&&(i=90,a=O.Spot.BottomSide),t||(i-=180);var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",O.Spot.stringify(a)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(O.Shape,{alignment:n,alignmentFocus:n.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:o,contextClick:o})}return i.current=new O.Diagram(a.current,{padding:20,grid:e(O.Panel,"Grid",e(O.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(O.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(R),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var n=e.subject;n.location=n.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var n=e.subject;e.diagram.toolManager.linkingTool.isForwards?n.toNode.invalidateConnectedLinks():n.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(O.Node,"Auto",{locationSpot:O.Spot.Center,locationObjectName:"SHAPE",desiredSize:new O.Size(120,60),minSize:new O.Size(40,40),resizable:!0,resizeCellSize:new O.Size(10,10),rotatable:!0},new O.Binding("location","loc",O.Point.parse).makeTwoWay(O.Point.stringify),new O.Binding("desiredSize","size",O.Size.parse).makeTwoWay(O.Size.stringify),e(O.Shape,{name:"SHAPE",fill:d,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:O.Spot.AllSides,toSpot:O.Spot.AllSides},new O.Binding("figure"),new O.Binding("fill"),new O.Binding("stroke","borderColor"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(O.TextBlock,{margin:1,textAlign:"center",overflow:O.TextBlock.OverflowEllipsis,editable:!0},new O.Binding("text").makeTwoWay(),new O.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(O.Panel,"Vertical",{maxSize:new O.Size(200,NaN)},e(O.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new O.Binding("text")),e(O.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new O.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(O.Adornment,"Spot",e(O.Placeholder,{padding:10}),y(O.Spot.Top,"TriangleUp"),y(O.Spot.Left,"TriangleLeft"),y(O.Spot.Right,"TriangleRight"),y(O.Spot.Bottom,"TriangleDown"),w({alignment:new O.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(O.Panel,"Horizontal",N("Rectangle"),N("RoundedRectangle"),N("Ellipse"),N("Diamond"))),e("ContextMenuButton",e(O.Panel,"Horizontal",N("Parallelogram2"),N("ManualOperation"),N("Procedure"),N("Cylinder1"))),e("ContextMenuButton",e(O.Panel,"Horizontal",N("Terminator"),N("CreateRequest"),N("Document"),N("TriangleDown"))),k(),_(),S()),i.current.groupTemplate=e(O.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:O.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 O.Binding("location","loc",O.Point.parse).makeTwoWay(O.Point.stringify),e(O.Panel,"Auto",{name:"BODY"},e(O.Shape,{parameter1:10,fill:d,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:O.Spot.AllSides,toSpot:O.Spot.AllSides},new O.Binding("fill"),new O.Binding("stroke","color"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Placeholder,{background:"transparent",margin:20})),e(O.TextBlock,{alignment:O.Spot.Top,alignmentFocus:O.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new O.Binding("text"),new O.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(O.Adornment,"Spot",e(O.Panel,"Auto",e(O.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(O.Placeholder,{margin:1.5})),w({alignment:O.Spot.TopRight,alignmentFocus:O.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",k(),_(),S()),i.current.linkTemplate=e(O.Link,{layerName:"Foreground",routing:O.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new O.Binding("fromSpot","fromSpot",O.Spot.parse),new O.Binding("toSpot","toSpot",O.Spot.parse),new O.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new O.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new O.Binding("points").makeTwoWay(),e(O.Shape,{strokeWidth:2},new O.Binding("stroke","color"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Shape,{segmentIndex:0,segmentOffset:new O.Point(15,0),segmentOrientation:O.Link.OrientAlong,alignmentFocus:O.Spot.Right,figure:"circle",width:10,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return 1===e}))),e(O.Shape,{segmentIndex:-1,segmentOffset:new O.Point(-10,6),segmentOrientation:O.Link.OrientPlus90,alignmentFocus:O.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return e>=1})),new O.Binding("width","thickness",(function(e){return 7+3*e})),new O.Binding("height","thickness",(function(e){return 7+3*e})),new O.Binding("segmentOffset","thickness",(function(e){return new O.Point(-15,4+1.5*e)}))),e(O.Shape,{segmentIndex:0,segmentOffset:new O.Point(15,-6),segmentOrientation:O.Link.OrientMinus90,alignmentFocus:O.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return 2===e})),new O.Binding("width","thickness",(function(e){return 7+3*e})),new O.Binding("height","thickness",(function(e){return 7+3*e})),new O.Binding("segmentOffset","thickness",(function(e){return new O.Point(-15,4+1.5*e)}))),e(O.TextBlock,{alignmentFocus:new O.Spot(0,1,-4,0),editable:!0},new O.Binding("text").makeTwoWay(),new O.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(O.Adornment,e(O.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:T(2)},new O.Binding("pathPattern","thickness",T)),w({alignmentFocus:new O.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",_(),S(),e("ContextMenuButton",e(O.Panel,"Horizontal",Z(0),Z(1),Z(2))),e("ContextMenuButton",e(O.Panel,"Horizontal",e(O.Panel,"Spot",L(!1),B(O.Spot.Top,!1),B(O.Spot.Left,!1),B(O.Spot.Right,!1),B(O.Spot.Bottom,!1)),e(O.Panel,"Spot",{margin:new O.Margin(0,0,0,2)},L(!0),B(O.Spot.Top,!0),B(O.Spot.Left,!0),B(O.Spot.Right,!0),B(O.Spot.Bottom,!0))))),new O.Palette(o.current,{maxSelectionCount:1,linkTemplate:e(O.Link,{locationSpot:O.Spot.Center,selectionAdornmentTemplate:e(O.Adornment,"Link",{locationSpot:O.Spot.Center},e(O.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(O.Shape,{toArrow:"Standard",stroke:null}))},{routing:O.Link.AvoidsNodes,curve:O.Link.JumpOver,corner:5,toShortLength:4},new O.Binding("points"),e(O.Shape,{isPanelMain:!0,strokeWidth:2}),e(O.Shape,{toArrow:"Standard",stroke:null})),model:new O.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(D()(O.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(O.Node,"Auto",{locationSpot:O.Spot.Center},new O.Binding("location","location",O.Point.parse).makeTwoWay(O.Point.stringify),e(O.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 O.Binding("stroke").makeTwoWay(),new O.Binding("fill").makeTwoWay(),new O.Binding("figure")),e(O.TextBlock,{margin:new O.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new O.Size(16,16),maxSize:new O.Size(10,NaN),textAlign:"center",editable:!0},new O.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(O.Panel,"Grid",e(O.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(O.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)(_.ZP,{size:"large",onClick:f,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},U=t(5112),q=t(94001),J=U.ZP.Group,Q={margin:"0 8px"},X=function(e){var n=e.callback,t=e.onCancel;return(0,h.jsxs)(j.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){n(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"单元格数:"}),(0,h.jsx)("span",{style:Q,children:"行数"}),(0,h.jsx)(j.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(q.Z,{})}),(0,h.jsx)("span",{style:Q,children:"列数"}),(0,h.jsx)(j.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(q.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"对齐方式:"}),(0,h.jsx)(j.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(U.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(U.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(U.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(U.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)(_.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(_.ZP,{type:"ghost",onClick:t,children:"取消"})]})]})},$=t(78673),ee=t(22975),ne=t.n(ee),te=(0,c.forwardRef)((function(e,n){var t=e.use3d,i=e.width,a=e.height,o=e.callback,r=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),d=(0,c.useState)(!1),u=s()(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(ne())(f.current,!0),window.onload=function(){l.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return o&&o(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)(T.Z,{align:"middle",children:[(0,h.jsx)(H.Z,{flex:1,children:(0,h.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:m,onChange:function(e){return p(e)}})}),(0,h.jsx)(H.Z,{children:(0,h.jsx)(_.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=t(48053),ae=t(70005),oe=t(8591),se="link",re="upload-image",le="add-flowchart",ce="draw-image",de="code-block",ue="add-table",me="------------",pe={default:me,left:":".concat(me),center:":".concat(me,":"),right:"".concat(me,":")},he=t(1160);var fe="@▁▁@",ge=["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 xe(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ve=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ye=l()(l()({},ve+"-B","bold"),ve+"-I","italic"),we=l()(l()(l()(l()(l()(l()(l()(l()({},se,"添加链接"),de,"添加代码块"),re,"添加图片"),ce,"添加画图"),le,"插入流程图"),ue,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),be=function(e){var n=e.defaultValue,t=void 0===n?"":n,i=e.onChange,o=e.width,r=void 0===o?"100%":o,d=e.height,g=void 0===d?400:d,x=e.miniToolbar,v=void 0!==x&&x,y=e.isFocus,j=void 0!==y&&y,k=e.watch,_=e.insertTemp,A=e.mode,T=void 0===A?"markdown":A,Z=e.id,B=void 0===Z?"markdown-editor-id":Z,P=e.showResizeBar,I=void 0!==P&&P,E=e.noStorage,M=void 0!==E&&E,D=e.showNullButton,O=void 0!==D&&D,z=e.showNullProgramButton,R=void 0!==z&&z,G=e.hidetoolBar,H=void 0!==G&&G,V=e.fullScreen,W=void 0!==V&&V,Y=e.onBlur,U=e.onCMBeforeChange,q=e.onFullScreen,J=e.className,Q=void 0===J?"":J,$=e.disablePaste,ee=void 0!==$&&$,ne=e.disabled,me=void 0!==ne&&ne,ve=e.disabledFill,be=void 0!==ve&&ve,je=e.placeholder,ke=void 0===je?"":je,_e=e.values,Ae=void 0===_e?"":_e,Ce=e.extraUse,Se=(0,c.useState)(null),Ne=s()(Se,2),Te=Ne[0],Ze=Ne[1],Le=(0,c.useState)(t),Be=s()(Le,2),Pe=Be[0],Ie=Be[1],Ee=(0,c.useState)(k),Me=s()(Ee,2),De=Me[0],Oe=Me[1],ze=(0,c.useState)(W),Re=s()(ze,2),Ge=Re[0],Fe=Re[1],He=(0,c.useState)(""),Ve=s()(He,2),We=Ve[0],Ye=Ve[1],Ke=(0,c.useState)(0),Ue=s()(Ke,2),qe=Ue[0],Je=Ue[1],Qe=(0,c.useState)(g),Xe=s()(Qe,2),$e=Xe[0],en=Xe[1],nn=(0,c.useState)(!1),tn=s()(nn,2),an=(tn[0],tn[1]),on=(0,c.useState)(0),sn=s()(on,2),rn=sn[0],ln=sn[1],cn=(0,c.useState)(0),dn=s()(cn,2),un=dn[0],mn=dn[1],pn=(0,c.useRef)(),hn=(0,c.useRef)(),fn=(0,c.useRef)(),gn=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ie(Ae),null==Te||Te.setValue(Ae),window.scrollTo(0,e)}),[Ae]),(0,c.useEffect)((function(){null==q||q(Ge)}),[Ge]),(0,c.useEffect)((function(){if(pn.current){var e=function(e,t){if(!ee){var i=t.clipboardData;if(i){var a=i.types.toString(),o=i.items;if("Files"===a||i.types.indexOf("Files")>-1){if(t.preventDefault(),"stex"==T)return;try{var s,r=o[1];"file"===(null===(s=o[0])||void 0===s?void 0:s.kind)&&(r=o[0]);var l=r.getAsFile(),c=l.name.split(".").pop();(0,N.I)(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(".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(ae.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(ae.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(l.type,'&disposition=inline" target="_blank">').concat(l.name,"</a>")):ge.includes(c)?n.replaceSelection('<a href="'.concat(ae.Z.API_SERVER,"/api/attachments/").concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(l.name,"</a>")):n.replaceSelection("[".concat(l.name,"](").concat(ae.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){oe.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}t.preventDefault()},n=u().fromTextArea(pn.current,{mode:T,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",ke):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),o=a.charAt(i.ch-1),s=a.lastIndexOf("@▁@",i.ch),r=a.lastIndexOf("@▁▁@",i.ch),l=s>r?s:r,c=s>r?3:4;if(-1===fe.indexOf(o))return null;if(console.log("change1:",n,e,a,i,l,s,r,o),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()}})),j&&n.focus(),n.on("paste",e),me&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Ze(n),function(){n.off("paste",e)}}}),[]);var xn=(0,c.useCallback)((function(){hn.current}),[$e,hn,Ge]);(0,c.useEffect)((function(){if(Te){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)&&(xn(),Te.setSize("100%","100%"),Te.refresh())}}catch(e){t.e(e)}finally{t.f()}}));return e.observe(pn.current.parentElement),e}();return function(){var n,t;null!==(n=pn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(t=pn.current)||void 0===t?void 0:t.parentElement)}}}),[Te,xn]),(0,c.useEffect)((function(){if(Te){for(var e=[],n=function(){var n=s()(i[t],2),a=n[0],o=n[1],r=l()({},a,(function(){vn(o)}));e.push(r),Te.addKeyMap(r)},t=0,i=Object.entries(ye);t<i.length;t++)n();return function(){for(var n=0,t=e;n<t.length;n++){var i=t[n];Te.removeKeyMap(i)}}}}),[Te]),(0,c.useEffect)((function(){W!==Ge&&Fe(W)}),[W]),(0,he.Z)((function(){if(!M&&qe>0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(B);e>=qe+1e4&&(!n||n!==Pe)&&(window.sessionStorage.setItem(B,Pe),an(!0))}}),1e4),(0,c.useEffect)((function(){Oe(k)}),[Te,k]),(0,c.useEffect)((function(){Te&&j&&Te.focus()}),[Te,j]),(0,c.useEffect)((function(){if(De&&Te){var e=function(e){var n=e.target;if(gn.current){var t=n.scrollTop/n.scrollHeight;gn.current.scrollTop=gn.current.scrollHeight*t}},n=Te.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[Te,De]),(0,c.useEffect)((function(){if(Te&&U){var e=function(e,n){U(e,n)};return Te.on("beforeChange",e),function(){Te.off("beforeChange",e)}}}),[Te,U]),(0,c.useEffect)((function(){if(Te&&Y){var e=function(){Y(Te.getValue())};return Te.on("blur",e),function(){Te.off("blur",e)}}}),[Te,Y]),(0,c.useEffect)((function(){if(Te){var e=function(e,n){var t=e.getValue();Ie(t),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(R?i(t,kn(t)):i(t))};return Te.on("change",e),function(){Te.off("change",e)}}}),[Te,i]),(0,c.useEffect)((function(){if(Te)if(null==t)Te.setValue(""),Ie("");else{var e=window.scrollY||window.pageYOffset;t!==Te.getValue()&&(Te.setValue(t),Ie(t),Te.setCursor(me?1:Te.lineCount(),0),window.scrollTo(0,e))}}),[Te,t]);var vn=(0,c.useCallback)((function(e){var n=Te.getCursor(),t=Te.getSelection(),i=t.split("\n");switch(e){case"bold":return Te.replaceSelection("**"+t+"**"),""===t&&Te.setCursor(n.line,n.ch+2),Te.focus();case"italic":return Te.replaceSelection("*"+t+"*"),""===t&&Te.setCursor(n.line,n.ch+1),Te.focus();case"code":return Te.replaceSelection("`"+t+"`"),""===t&&Te.setCursor(n.line,n.ch+1),Te.focus();case"inline-latex":return Ye("inline-latex"),Te.focus();case"latex":return Te.replaceSelection("```latex\n"+t+"\n```"),Te.setCursor(n.line+1,t.length+1),Te.focus();case"line-break":return Te.replaceSelection("<br/>\n"),Te.focus();case"list-ul":return""===t?Te.replaceSelection("- "+t):Te.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Te.focus();case"list-ol":return""===t?Te.replaceSelection("1. "+t):Te.replaceSelection(i.map((function(e,n){return""===e?"":"".concat(n+1,". ").concat(e)})).join("\n")),Te.focus();case"add-null-ch":return""===t&&Te.setCursor(n.line,n.ch),Te.replaceSelection("▁"),Te.focus();case"add-signal":return""===t&&Te.setCursor(n.line,n.ch),Te.replaceSelection("@▁@"),Te.focus();case"add-multiple":return""===t&&Te.setCursor(n.line,n.ch),Te.replaceSelection(fe),Te.focus();case"inster-template-1":return""===t&&Te.setCursor(n.line,n.ch),Te.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Te.focus();case"eraser":return Te.setValue(""),Te.focus();case"trigger-watch":return Oe(!De),Te.focus();case"trigger-full-screen":return Fe(!Ge),Te.focus();case se:return void Ye(se);case de:return void Ye(de);case re:return void Ye(re);case ce:return void Ye(ce);case"maths-latex":return void Ye("maths-latex");case le:return void Ye(le);case ue:return void Ye(ue);default:throw new Error}}),[Te,De,Ge]),yn=(0,c.useCallback)((function(e,n){var t,i,a,o,s;switch(Ye(""),We){case se:var r=e.title,l=e.link;return Te.replaceSelection("[".concat(r,"](").concat(l,")")),Te.focus();case de:var c=e.language,d=e.content;return Te.replaceSelection(["```"+c,d,"```"].join("\n")),Te.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);var h=new Blob([m],{type:"image/png"});(0,N.I)(h,(function(e){e.id?Te.replaceSelection(".concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":Te.replaceSelection("`$$"+e+"$$`");break;case re:case ce:case"add-flowchart":var f=e.src,g=e.alt,x=n,v=null==x||null===(t=x.name)||void 0===t||null===(t=t.split("."))||void 0===t||null===(i=t.pop)||void 0===i?void 0:i.call(t);return(null==x||null===(a=x.type)||void 0===a?void 0:a.indexOf("image"))>-1||null==x||!x.type?g?Te.replaceSelection(".concat(f,' "').concat(g,'" )')):Te.replaceSelection("")):(null==x||null===(o=x.type)||void 0===o?void 0:o.indexOf("video"))>-1?Te.replaceSelection('<video width="100%" controls src="'.concat(ae.Z.API_SERVER).concat(f,'"></video>')):(null==x||null===(s=x.type)||void 0===s?void 0:s.indexOf("pdf"))>-1?Te.replaceSelection('<a href="'.concat(ae.Z.API_SERVER).concat(f,"?type=").concat(x.type,'&disposition=inline" target="_blank">').concat(x.name,"</a>")):ge.includes(v)?Te.replaceSelection('<a href="'.concat(ae.Z.API_SERVER).concat(f,'?type=office&disposition=inline" target="_blank">').concat(x.name,"</a>")):Te.replaceSelection("[".concat(x.name,"](").concat(ae.Z.API_SERVER).concat(f,")")),Te.focus();case ue:for(var y=e.row,w=e.col,b=e.align,j="\n",k=0;k<y;k++){for(var _=[],A=[],C=0;C<w;C++)1===k&&A.push(pe[b]),_.push(" ");1===k&&(j+="| ".concat(A.join(" | ")," |\n")),j+="| ".concat(_.join(1===w?"":" | ")," |\n")}return Te.replaceSelection(j+"\n"),Te.focus();default:throw new Error}}),[Te,We]),wn=(0,c.useMemo)((function(){switch(We){case se:return(0,h.jsx)(C,{callback:yn,onCancel:bn});case de:return(0,h.jsx)(S.Z,{callback:yn,onCancel:bn});case re:return(0,h.jsx)(N.Z,{callback:yn,onCancel:bn});case le:return(0,h.jsx)(K,{callback:yn,onCancel:bn});case ue:return(0,h.jsx)(X,{callback:yn,onCancel:bn});case"maths-latex":return(0,h.jsx)(te,{showSaveButton:!0,callback:yn});case"inline-latex":return(0,h.jsx)(ie.Z,{showSaveButton:!0,callback:yn});default:return null}}),[We]);function bn(){Ye("")}(0,c.useEffect)((function(){if(fn.current){var e=function(e){a=!0,o=e.pageY},n=function(){a=!1},t=function(e){if(a){var n=e.pageY-o;n<0&&(n=0),n>300&&(n=300),en(g+n+"px")}},i=fn.current,a=!1,o=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",t),document.addEventListener("mouseup",n),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)}}}),[Te,fn]),(0,c.useEffect)((function(){en(g)}),[g]);var jn={width:xe(r),height:xe($e)},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(R){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,t,i){n.push({multiLine:!("@▁@"===e)})}))}return n});(0,c.useEffect)((function(){we[We]&&We!==ce&&We!==le&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;ln(n),mn(t)}),0)}),[We]);var _n=function(e,n,t,i){var a=document.body.clientHeight,o=document.body.clientWidth;return!(e<20&&t>e||e>o-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:hn,children:(0,h.jsxs)("div",{className:"markdown-editor-container ".concat(Q," ").concat(De?"on-preview":""," ").concat(v?"mini":""," ").concat(Ge?"full-screen":""),style:jn,children:[(0,h.jsx)(w,{insertTemp:_,watch:De,fullScreen:Ge,showNullButton:O,showNullProgramButton:R,onActionCallback:vn,hidetoolBar:H,extraUse:Ce}),(0,h.jsxs)("div",{className:"markdown-editor-body",children:[(0,h.jsx)("div",{className:"codemirror-container",children:(0,h.jsx)("textarea",{ref:pn,placeholder:ke})}),De?(0,h.jsxs)("div",{ref:gn,className:"preview-container",children:["stex"===T&&(0,h.jsx)(f,{value:Pe}),"stex"!==T&&(0,h.jsx)(p.Z,{disabledFill:be,showProgramFill:R,value:Pe})]}):null]})]})}),I?(0,h.jsx)("a",{ref:fn,className:"editor-resize"}):null,We===ce&&(0,h.jsx)(L,{callback:yn,onCancel:bn}),We===le&&(0,h.jsx)(K,{callback:yn,onCancel:bn}),(0,h.jsx)(b.Z,{children:we[We]&&We!==ce&&We!==le?(0,h.jsx)(F.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:rn,top:un},title:(0,h.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var n=e.clientX-rn,t=e.clientY-un;document.body.onmousemove=function(e){var i=e.clientX-n,a=e.clientY-t,o=document.getElementsByClassName("markdown-popup-form")[0],s=window.innerWidth-o.offsetWidth,r=window.innerHeight-o.offsetHeight;i=Math.max(0,Math.min(i,s)),a=Math.max(0,Math.min(a,r)),_n(e.clientX,e.clientY,n,t)&&(ln(i),mn(a))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:we[We]}),open:!0,onCancel:bn,footer:null,destroyOnClose:!0,width:We===le?"1200px":null,height:We===le?"80vh":null,className:"markdown-popup-form",children:wn}):null})]})}},83113:function(e,n,t){"use strict";t.d(n,{Z:function(){return x},I:function(){return y}});var i=t(82242),a=t.n(i),o=t(79800),s=t.n(o),r=t(78241),l=t(8591),c=t(92832),d=t(3113),u=t(43961),m=t(59301),p=t(37712),h=r.Z.useForm,f={width:280,marginRight:10},g={labelCol:{span:5},wrapperCol:{span:19}},x=function(e){var n=e.callback,t=e.onCancel,i=h(),o=s()(i,1)[0],u=(0,m.useRef)();function x(e,n){-1!==e.status?o.setFieldsValue({src:"/api/attachments/".concat(e.id),type:n.type}):l.ZP.error(e.message)}return(0,p.jsxs)(r.Z,a()(a()({form:o},g),{},{className:"upload-image-panel",onFinish:function(e){n(e,u.current)},style:{width:470,overflow:"hidden"},children:[(0,p.jsx)(r.Z.Item,{label:"图片地址",required:!0,children:(0,p.jsxs)("div",{className:"flex-container",children:[(0,p.jsx)(r.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,p.jsx)(c.Z,{style:f})}),(0,p.jsx)(v,{onFileChange:function(e){var n=e.target.files[0];u.current=n,y(n,x)}})]})}),(0,p.jsx)(r.Z.Item,{label:"图片描述",name:"alt",children:(0,p.jsx)(c.Z,{style:{width:264}})}),(0,p.jsxs)(r.Z.Item,{style:{textAlign:"right"},children:[(0,p.jsx)(d.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(d.ZP,{type:"default",onClick:t,children:"取消"})]})]}))};function v(e){var n=e.onFileChange;return(0,p.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,p.jsx)("input",{type:"file",onChange:n})]})}function y(e,n){if(!e)throw new String("没有文件");var t=new FormData;t.append("editormd-image-file",e),t.append("file_param_name","editormd-image-file"),t.append("byxhr","true");var i=new window.XMLHttpRequest;i.withCredentials=!0,i.addEventListener("load",(function(t){n(JSON.parse(t.target.responseText),e)}),!1),i.addEventListener("error",(function(e){console.error(e)}),!1),i.open("POST","".concat(u.KI,"/api/attachments.json")),i.send(t)}},44028:function(e,n,t){"use strict";t.d(n,{Z:function(){return p}});var i=t(82100),a=t.n(i),o=t(29186),s=t.n(o),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 o=window.document;return i.node=o.createElement("div"),o.body.appendChild(i.node),i}return s()(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)},1160: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])}},40574:function(e,n,t){"use strict";var i=t(82242),a=t.n(i),o=t(85573),s=t.n(o),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(59028),f=t(78241),g=t(43418),x=t(8591),v=t(61998),y=t(33423),w=t(70005),b=t(10228),j=t(7262),k=t(61186),_=t.n(k),A=t(13023),C=t(37712),S=h.Z.Dragger;n.Z=(0,y.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var n,t=e.classroomList,i=e.dispatch,o=e.onOk,r=((0,y.useParams)(),f.Z.useForm()),c=m()(r,1)[0],u=(0,p.useState)(),h=m()(u,2),k=h[0],N=h[1],T=(0,p.useState)(!1),Z=m()(T,2),L=Z[0],B=Z[1],P={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(s()(s()({},"publish_time",_()(_()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",_()(_()(new Date((0,A.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),[]),(0,C.jsx)(g.Z,{centered:!0,title:"补充成绩",open:"补充成绩"===t.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:L},onOk:d()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){c.resetFields(),i({type:"classroomList/setActionTabs",payload:{}})},children:(0,C.jsxs)(f.Z,{form:c,onFinish:function(){var e=d()(l()().mark((function e(n){var a,s,r,d,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=k&&k.size){e.next=3;break}return x.ZP.info("请上传文件"),e.abrupt("return");case 3:return B(!0),(a=new FormData).append("type",t.actionTabs.type),a.append("file",k),s=window.location.href.indexOf("exercise")>-1?"/api/exercises/".concat(t.actionTabs.id,"/supplement_score.json"):"/api/homework_commons/".concat(t.actionTabs.id,"/supplement_score.json"),e.next=10,(0,j.ZP)(s,{method:"post",body:a},!0);case 10:r=e.sent,B(!1),0===(null==r?void 0:r.status)&&(o(),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,C.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,A.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,C.jsx)(f.Z.Item,{label:"作业名称",labelCol:{span:3},name:"name",children:t.actionTabs.name}),(0,C.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,C.jsxs)("div",{children:[(0,C.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,C.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,C.jsxs)("div",{children:[(0,C.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,C.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,C.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,C.jsxs)(S,a()(a()({},P),{},{children:[(0,C.jsx)("a",{className:b.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,C.jsx)("br",{}),(0,C.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},58067:function(e,n,t){"use strict";var i=t(82242),a=t.n(i),o=t(85573),s=t.n(o),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(59028),f=t(78241),g=t(43418),x=t(8591),v=t(61998),y=t(92832),w=t(95237),b=t(43604),j=t(94001),k=t(57930),_=t(33423),A=t(53442),C=t(70005),S=t(10228),N=t(7262),T=t(58978),Z=t(61186),L=t.n(Z),B=t(13023),P=t(37712),I=h.Z.Dragger;n.Z=(0,_.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var n,t=e.classroomList,i=e.dispatch,o=e.onOk,r=(0,_.useParams)(),c=f.Z.useForm(),u=m()(c,1)[0],h=(0,p.useState)(),Z=m()(h,2),E=Z[0],M=Z[1],D=(0,p.useState)(!1),O=m()(D,2),z=O[0],R=O[1],G={height:100,onRemove:function(){M("")},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 M(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(s()(s()({},"publish_time",L()(L()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",L()(L()(new Date((0,B.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),["导入外部成绩"===t.actionTabs.key]),(0,P.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:u.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){u.resetFields(),i({type:"classroomList/setActionTabs",payload:{}})},children:(0,P.jsxs)(f.Z,{form:u,colon:!1,onFinish:function(){var e=d()(l()().mark((function e(n){var a,s,c,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=E&&E.size){e.next=3;break}return x.ZP.info("请上传文件"),e.abrupt("return");case 3:return R(!0),(a=new FormData).append("name",n.name),a.append("type",t.actionTabs.type),a.append("category_id",(null==r?void 0:r.categoryId)||null),"exercise"===t.actionTabs.type?(a.append("time",n.time||""),a.append("total_score",n.total_score)):a.append("description",n.description||""),a.append("publish_time",L()(n.publish_time).format("YYYY-MM-DD HH:mm")),a.append("end_time",L()(n.end_time).format("YYYY-MM-DD HH:mm")),a.append("file",E),e.next=14,(0,N.ZP)("/api/courses/".concat(r.coursesId,"/export_external_score_homework.json"),{method:"post",body:a},!0);case 14:s=e.sent,R(!1),0===(null==s?void 0:s.status)&&(u.resetFields(),i({type:"classroomList/setActionTabs",payload:{}}),o(),(null==s||null===(c=s.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,P.jsx)(v.Z,{pagination:!1,dataSource:null==s||null===(d=s.data)||void 0===d?void 0:d.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,B.FH)("",C.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(t.actionTabs.type))}}));case 17:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,P.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,P.jsx)(y.Z,{showCount:!0,placeholder:"请输入".concat("exercise"!==t.actionTabs.type?"作业":"试卷","名称"),maxLength:60})}),"exercise"!==t.actionTabs.type&&(0,P.jsx)(f.Z.Item,{label:"作业描述",labelCol:{span:3},name:"description",children:(0,P.jsx)(A.Z,{watch:!0})}),"exercise"===t.actionTabs.type&&(0,P.jsxs)(w.Z,{style:{marginLeft:6},children:[(0,P.jsx)(b.Z,{span:12,children:(0,P.jsx)(f.Z.Item,{label:"试卷总分",name:"total_score",rules:[{required:!0,message:"请填写试卷总分"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"试卷总分必须为正数"}],children:(0,P.jsx)(y.Z,{placeholder:"请输入试卷总分",style:{width:256},addonAfter:"分"})})}),(0,P.jsx)(b.Z,{span:12,children:(0,P.jsx)(f.Z.Item,{label:"答题时长",labelCol:{span:6},name:"time",children:(0,P.jsx)(j.Z,{style:{width:"100%"},addonAfter:"分钟",placeholder:"请输入答题时长"})})})]}),(0,P.jsxs)(w.Z,{style:{marginLeft:6,marginBottom:12},children:[(0,P.jsx)(b.Z,{span:12,children:(0,P.jsx)(f.Z.Item,{label:"开始时间",name:"publish_time",rules:[{required:!0,message:"请选择开始时间"}],children:(0,P.jsx)(k.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:256},disabledDate:function(e){return(0,T.Q8)(e)},disabledTime:function(e){return(0,T.d0)(e)},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})}),(0,P.jsx)(b.Z,{span:12,children:(0,P.jsx)(f.Z.Item,{label:"结束时间",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"请选择结束时间"}],children:(0,P.jsx)(k.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:function(e){return(0,T.Q8)(e,"",u.getFieldValue("publish_time"))},disabledTime:function(e){return(0,T.d0)(e,u.getFieldValue("publish_time"))},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})})]}),(0,P.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,P.jsxs)("div",{children:[(0,P.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,P.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,P.jsxs)("div",{children:[(0,P.jsx)("a",{download:"模版.xlsx",className:S.Z.downloadbutton,href:C.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(t.actionTabs.type),children:"下载模版表格"}),(0,P.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,P.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,P.jsxs)(I,a()(a()({},G),{},{children:[(0,P.jsx)("a",{className:S.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},45567:function(e,n,t){"use strict";var i=t(7557),a=t.n(i),o=t(85573),s=t.n(o),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(57930),j=t(5112),k=t(24905),_=t(61186),A=t.n(_),C=t(7262),S=t(13023),N=t(33423),T=t(35868),Z=t(24630),L=t(21915),B=t(58978),P=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,o=(0,N.useParams)(),r=g.Z.useForm(),c=h()(r,1)[0],u=(0,f.useState)(1),p=h()(u,2),_=p[0],I=p[1],E=(0,f.useState)([]),M=h()(E,2),D=M[0],O=M[1],z=(0,f.useState)(0),R=h()(z,2),G=(R[0],R[1]),F=(0,f.useState)(20),H=h()(F,2),V=(H[0],H[1],(0,f.useState)(!0)),W=h()(V,2),Y=(W[0],W[1]),K=(0,f.useState)([]),U=h()(K,2),q=U[0],J=U[1],Q=(0,f.useState)(!0),X=h()(Q,2),$=X[0],ee=X[1];o.id=o.coursesId,(0,f.useEffect)((function(){if("立即发布"===n.actionTabs.key)if(ie(),ne(),2===n.actionTabs.type){var e=n.actionTabs.selectArrsAll[0];ee(e.unified_setting)}else ee(!1)}),[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 Y(!0),e.next=3,(0,Z.c_)(d()(d()({},o),{},{page:t||_,limit:2e4,homework_id:1===n.actionTabs.type?"":n.actionTabs.selectArrs[0]}));case 3:null==(i=e.sent)||i.course_groups.map((function(e,n){e.key=e.id,e.title=e.name,e.disabled=e.is_published})),i&&(O(l()(null==i?void 0:i.course_groups)),G(null==i?void 0:i.course_groups_count),Y(!1),t||c.setFieldsValue(s()(s()({},"publish_time",A()(A()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",A()(A()(new Date((0,S.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,s,r,u;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,T.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==q?void 0:q.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:q.length>0?q.map((function(e){return e.id})):null===(s=n.detailShixunsList)||void 0===s?void 0:s.course_groups,end_time:A()(r.end_time).format("YYYY-MM-DD HH:mm"),publish_time:A()(r.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!q.length},re(!0),e.next=17,(0,C.ZP)("/api/courses/".concat(o.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:d()({},u)});case 17:0===e.sent.status?(re(!1),ie(),(0,S.L9)(["教学课堂","课程实验","立即发布"]),x.ZP.success("发布成功"),t({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,T.GJ)()?n.actionTabs.detail?(t({type:"shixunHomeworks/setActionTabs",payload:{}}),t({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:d()({},o)}),t({type:"shixunHomeworks/getWorkSetting",payload:d()({},o)})):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,P.jsx)("div",{children:"最后,咱们给教学课堂添加一名学生~点击“添加学生”,在弹窗页面中输入并搜索学生姓名,点击“确定”就可以为您的课堂添加第一位学生啦~"})}})):re(!1);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ie=function(){I(1),O([]),J([])},ae=(n.detailShixunsList,(0,f.useState)(!1)),oe=h()(ae,2),se=oe[0],re=oe[1];return(0,P.jsxs)(v.Z,{width:600,centered:!0,confirmLoading:se,title:"发布作业",open:"立即发布"===n.actionTabs.key,okText:"发布作业",cancelText:"暂不发布",onOk:function(){return te()},onCancel:function(){ie(),t({type:"classroomList/setActionTabs",payload:{}})},children:[(0,P.jsxs)("p",{className:"tc",children:["学生将立即收到作业",(0,P.jsx)("br",{}),'本操作只对"未发布"的作业有效']}),(0,P.jsxs)(g.Z,{form:c,children:[(0,P.jsxs)("div",{style:{paddingLeft:0},children:[(0,P.jsxs)(y.Z,{className:"mt30",align:"middle",children:[(0,P.jsx)(w.Z,{children:(0,P.jsx)(g.Z.Item,{name:"publish_time",label:"发布时间",children:(0,P.jsx)(b.default,{style:{width:170,marginRight:"25px"},disabledDate:function(e){return(0,B.Q8)(e,i)},disabledTime:function(e){return(0,B.d0)(e)},placeholder:"请选择发布时间",showTime:{format:"HH:mm",defaultValue:A()((0,S.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),(0,P.jsx)(w.Z,{className:"ml20",children:(0,P.jsx)(g.Z.Item,{name:"end_time",label:"截止时间:",children:(0,P.jsx)(b.default,{style:{width:170},placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:A()((0,S.U6)(),"HH:mm")},disabledDate:function(e){return(0,B.Q8)(e,i,c.getFieldValue("publish_time"))},disabledTime:function(e){return(0,B.d0)(e,c.getFieldValue("publish_time"))},format:"YYYY-MM-DD HH:mm",allowClear:!1})})})]}),2===n.actionTabs.type&&(0,P.jsxs)(y.Z,{style:{marginBottom:"10px"},children:[(0,P.jsx)("span",{className:"mr5",children:"发布设置:"}),(0,P.jsxs)(j.ZP.Group,{value:$,onChange:function(e){ee(e.target.value),J([])},children:[(0,P.jsx)(j.ZP,{value:!0,disabled:!n.actionTabs.manage_all_group,children:"统一发布"}),(0,P.jsx)(j.ZP,{className:"ml20",disabled:D.length<=0,value:!1,children:"分班发布"})]})]}),D.length<=0&&2===n.actionTabs.type&&(0,P.jsx)("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"},children:'课堂无分班,仅支持选择“统一发布"'})]}),(1===n.actionTabs.type||!$)&&D.length>0&&(0,P.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"},children:[(0,P.jsx)("span",{style:{flex:1},children:(0,P.jsx)(k.Z,{checked:q.length===D.length,onChange:function(e){q.length===D.length?J([]):J(D)},children:"全选"})}),(0,P.jsx)("span",{style:{width:16}}),(0,P.jsxs)("span",{style:{flex:1},children:["已选择",q.length||0,"个分班"]})]}),(1===n.actionTabs.type||!$)&&D.length>0&&(0,P.jsx)(L.Z,{data:D,selectedRowKeys:q,setSelectedRowKeys:J})]})]})}))},21915:function(e,n,t){"use strict";t.d(n,{Z:function(){return y}});var i=t(7557),a=t.n(i),o=t(41498),s=t.n(o),r=t(79800),l=t.n(r),c=t(59301),d=t(92832),u=t(24905),m=t(95237),p="leftdiv___aBzsX",h="listClass___bxIEW",f="spantitle___v_Vc4",g="rightdiv___xWu4M",x=t(68335),v=t(37712),y=function(e){var n=e.data,t=(e.value,e.handleChangePage,e.setSelectedRowKeys),i=e.selectedRowKeys,o=(e.onChange,(0,c.useState)([])),r=l()(o,2),y=r[0],w=r[1],b=(0,c.useState)([]),j=l()(b,2),k=j[0],_=j[1],A=(0,c.useState)([]),C=l()(A,2),S=C[0],N=C[1],T=(0,c.useState)(1),Z=l()(T,2),L=(Z[0],Z[1],(0,c.useState)()),B=l()(L,2);B[0],B[1];return(0,c.useEffect)((function(){w(n),_([]),N([])}),[n]),(0,c.useEffect)((function(){t&&(_(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=s()(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:k.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(k.filter((function(n){return n.name.includes(e.target.value)})))},size:"middle",placeholder:"可输入班级名称查询"}),0===S.length&&(0,v.jsx)(x.Z,{styles:{margin:"70px auto"},customText:"暂未选择分班"}),S.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:S.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(k.filter((function(n){return"".concat(n.id)!="".concat(e.id)})))}})]},e.id)}))})})]})]})}},21932:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return We}});var i=t(37205),a=t.n(i),o=t(7557),s=t.n(o),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(7262),x=t(33423),v=t(20834),y=t(8591),w=t(92832),b=t(95237),j=t(43604),k=t(38854),_=t(6848),A=t(81327),C=t(96865),S=t(27092),N=t(24905),T=t(3113),Z=t(43418),L=t(5112),B=t(35868),P=t(78386),I=t(13023),E=t(68480),M=t(37712),D=["classroomList","dispatch","match","location","user"],O=(0,x.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var n,t,i=e.classroomList,o=e.dispatch,r=(e.match,e.location,e.user),c=(h()(e,D),(0,x.useParams)()),u=(0,f.useState)(!1),p=m()(u,2),v=p[0],w=p[1],b=(0,f.useState)(!1),j=m()(b,2),k=j[0],_=j[1],A=(0,f.useRef)(null);(0,f.useEffect)((function(){if("删除"===i.actionTabs.key){if((0,B.j5)())return void _(!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?Z.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(){C()}}):_(!0)}else _(!1)}),[i.actionTabs.key]);var C=function(){o({type:"classroomList/setActionTabs",payload:{}})};return(0,M.jsx)(Z.Z,{centered:!0,title:"提示",open:k,okText:"确定",cancelText:"取消",destroyOnClose:!0,confirmLoading:v,onOk:l()(s()().mark((function e(){var n,t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(n=A.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,I.L9)(["教学课堂","课程实验","删除"]),y.ZP.success("删除成功"),o({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,B.GJ)()?o({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},i.actionTabs.params),{},{type:4})}):o({type:"classroomList/getClassroomShixunsList",payload:d()({},i.actionTabs.params)}),o({type:"classroomList/getClassroomLeftMenus",payload:{id:c.coursesId}}));case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){C()},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)(E.Z,{ref:function(e){return A.current=e}})]})})})),z=t(45567),R=t(68423),G=(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)(Z.Z,{centered:!0,title:"提示",open:"设为公开"===n.actionTabs.key,okText:"确定",cancelText:"取消",onOk:l()(s()().mark((function e(){return s()().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,I.L9)(["教学课堂","课程实验","设为公开"]),y.ZP.success("操作成功"),t({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,B.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",{}),"是否确认设为公开?"]})})})),F=t(78241),H=t(61186),V=t.n(H),W=(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),o=((0,x.useParams)(),(0,f.useState)(!1)),r=m()(o,2),c=r[0],u=r[1],p=i.actionTabs,h=F.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)(Z.Z,{centered:!0,title:"重命名",confirmLoading:c,open:"重命名"===i.actionTabs.key,okText:"确定",cancelText:"取消",destroyOnClose:!0,onOk:l()(s()().mark((function e(){var n,t,o,r;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,B.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),o="/api/homework_commons/".concat(i.actionTabs.selectArrs.homework_id,"/alter_name.json"),e.next=8,(0,g.ZP)(o,{method:"post",body:d()({},t)});case 8:r=e.sent,u(!1),0===r.status&&(y.ZP.success("修改成功"),a({type:"classroomList/setActionTabs",payload:{}}),(0,B.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)(F.Z,{form:v,children:[(0,M.jsxs)(b.Z,{className:"mt10 c-grey-999",children:[(0,M.jsx)(j.Z,{children:"本实训初始名称:"}),(0,M.jsx)(j.Z,{flex:"1",children:null===(n=p.selectArrs)||void 0===n?void 0:n.shixun_name})]}),(0,M.jsx)(F.Z.Item,{name:"name",children:(0,M.jsxs)(b.Z,{className:"mt10",align:"middle",children:[(0,M.jsx)(j.Z,{className:"font14",children:"作业名称:"}),(0,M.jsx)(j.Z,{flex:"1",children:(0,M.jsx)(w.Z,{defaultValue:null===(t=p.selectArrs)||void 0===t?void 0:t.name})})]})})]})})})),Y=t(43428),K=t(71418),U=t(28103),q=t(68335),J="drawer___QqugY",Q="menu___uKpxi",X="actived___hCeHj",$="actived2___aIAeg",ee="subTag___S0zfl",ne="listItem___Ulw3D",te="listItem2___J8GtN",ie="info___gY955",ae="title___hyfzM",oe="titleLeft___eH38u",se="search___GnrcF",re="filter___jwVvV",le="description___ynLaI",ce="menuCourse___HRXxE",de="authorname___qn85G",ue="tooltip-content___A6uPo",me=t(20330),pe=t(6771),he=t(21446),fe=t(70955),ge=(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"}]}]),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,o=(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)([]),k=m()(w,2),A=k[0],C=k[1],Z=(0,f.useState)({}),L=m()(Z,2),P=L[0],E=L[1],D=(0,f.useState)([]),O=m()(D,2),z=O[0],R=O[1],G=(0,f.useState)(!1),F=m()(G,2),H=F[0],V=F[1],W=[{name:"最新",id:"created_at"},{name:"最热",id:"myshixuns_count"}].filter((function(e){return!!e})),te=(0,f.useState)({page:1,type:"mine",diff:"",status:"published",order:"desc",limit:20,sort:"myshixuns_count",no_jupyter:1,group_id:null,shixun_homework:!0}),se=m()(te,2),xe=se[0],ve=se[1];(0,f.useEffect)((function(){ye()}),[p.coursesId,xe]),(0,f.useEffect)((function(){"选用实践项目"===i.actionTabs.key&&C([]),o({type:"shixunsList/getMenus",payload:{}})}),[i.actionTabs.key]),(0,f.useEffect)((function(){(null!=h&&h.shixun_list||null!=v&&v.shixun_list)&&E("recommend"===xe.sort?v:h)}),[h,v]);var ye=function(){var e=l()(s()().mark((function e(){var n,t,i;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(E([]),V(!0),n=d()({},xe),"recommend"===xe.sort&&(n.sort="myshixuns_count"),"recommend"!==xe.sort){e.next=9;break}return e.next=7,o({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,o({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)||[]))),C([]),V(!1);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if("选用实践课程"!==i.actionTabs.key){var we=(0,he.P)(),be=m()(we,4),je=be[0],ke=be[1],_e=be[2],Ae=be[3],Ce=function(){var e=l()(s()().mark((function e(n){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o({type:"classroomList/createShixunHomework",payload:{category_id:(null==p?void 0:p.categoryId)||null,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,I.L9)(["教学课堂","课程实验","选用实践项目"]),y.ZP.success("操作成功"),o({type:"classroomList/setActionTabs",payload:{}}),(0,B.GJ)()?o({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},i.actionTabs.params),{},{type:4})}):o({type:"classroomList/getClassroomShixunsList",payload:d()({},i.actionTabs.params)}),o({type:"classroomList/getClassroomLeftMenus",payload:{id:p.coursesId}}),"0"===localStorage.getItem("Noviceguide")||o({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)}}(),Se=(0,f.useState)(!1),Ne=m()(Se,2),Te=Ne[0],Ze=Ne[1];return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(Y.Z,{placement:"bottom",height:"100%",closable:!0,open:"选用实践项目"===i.actionTabs.key,rootClassName:J,onClose:function(){o({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)(T.ZP,{size:"middle",onClick:function(){o({type:"classroomList/setActionTabs",payload:{}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},children:"取消"}),(0,M.jsx)(T.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",onClick:l()(s()().mark((function e(){var n,t,a;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Ze(!0),e.next=3,Ae({id:A,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 A.includes(e.identifier)})).map((function(e){return{id:e.id,is_copy:0,is_use:1}})),e.next=8,Ce(a);case 8:Ze(!1);case 9:case"end":return e.stop()}}),e)}))),type:"primary",loading:Te,children:"确定"})]}),children:[(0,M.jsx)("section",{className:"tc",children:(0,M.jsx)(pe.Z,{onChange:function(e){null!=e&&e.keyword&&(0,fe.tk)({name:null==e?void 0:e.keyword,copywriting:null==e?void 0:e.keyword,position:"Shixun"}),ve(d()(d()(d()({},xe),e),{},{page:1}))}})}),(0,M.jsx)("section",{className:"edu-container",children:(0,M.jsx)(K.Z,{spinning:H,children:(0,M.jsxs)("aside",{children:[ge.map((function(e,n){var t;return 0!==n?null:(0,M.jsxs)("ul",{className:Q,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?X:"",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:Q,children:[(0,M.jsx)("li",{children:"方向"}),(0,M.jsx)("li",{className:null!=xe&&xe.discipline_id?"":X,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?X:"",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($," ").concat(ee):ee,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?$:"",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:Q,children:[(0,M.jsx)("li",{children:"目录"}),null==z?void 0:z.map((function(e,n){return(0,M.jsx)("li",{className:xe.group_id==e.id?X:"",onClick:function(){xe.group_id=e.id,xe.page=1,ve(d()({},xe))},children:(0,M.jsx)("strong",{children:e.name})},e.name)}))]}),ge.map((function(e,n){var t;return 1!==n?null:(0,M.jsxs)("ul",{className:Q,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?X:"",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)(j.Z,{flex:"1",className:re,children:W.map((function(e,n){return(0,M.jsx)(T.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)(j.Z,{className:"c-grey-999",children:(0,M.jsx)("div",{className:ce,children:(0,M.jsxs)("ul",{children:[(0,M.jsxs)("li",{children:["已选",(0,M.jsx)("span",{className:"c-blue",children:A.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)(q.Z,{}),(0,M.jsx)(N.Z.Group,{style:{display:"block"},value:A,onChange:function(e){C(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:ne,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:ie,children:[(0,M.jsx)("div",{className:ae,children:(0,M.jsxs)("div",{className:oe,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,me.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10",children:"需授权"}),(0,B.Ny)()&&1===(null==e?void 0:e.mark_status)&&(0,M.jsx)(_.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,B.Ny)()&&2===(null==e?void 0:e.mark_status)&&(0,M.jsx)(_.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,B.Ny)()&&3===(null==e?void 0:e.mark_status)&&(0,M.jsx)(_.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)(_.Z,{zIndex:1e4,title:"实训需发布后才能发送到教学课堂,点击名称可前往实训详情",children:(0,M.jsx)("span",{style:{marginRight:"auto",background:"#999"},className:"tag-style current ml10",children:"未发布"})})]}),(0,M.jsx)(T.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:le,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)(U.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)(_.Z,{overlayClassName:ue,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:de,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)(S.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)(he.Z,{visible:je,onCancel:ke,renderData:_e,inPaper:!1,onOk:Ce,modalType:"multiple",type:"shixun",position:"选中实训"})]})}})),ve=w.Z.Search,ye=(0,x.connect)((function(e){return{classroomList:e.classroomList,shixunsList:e.shixunsList,loading:e.loading.effects}}))((function(e){var n,t,i=e.classroomList,o=(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],j=(0,f.useState)(!1),k=m()(j,2),A=k[0],C=k[1],Z=(0,f.useState)({page:1,limit:20,search:null}),L=m()(Z,2),P=L[0],I=L[1];(0,f.useEffect)((function(){E()}),[u.coursesId,P]),(0,f.useEffect)((function(){"从课堂实验添加"===i.actionTabs.key&&b([])}),[i.actionTabs.key]);var E=function(){var e=l()(s()().mark((function e(){var n,t;return s()().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,o({type:"classroomList/getExperimentLists",payload:t});case 3:C(!1);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if("选用实践课程"!==i.actionTabs.key)return(0,M.jsxs)(Y.Z,{placement:"bottom",height:"100%",closable:!0,style:{zIndex:9999},open:"从课堂实验添加"===i.actionTabs.key,rootClassName:J,onClose:function(){o({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)(T.ZP,{size:"middle",onClick:function(){o({type:"classroomList/setActionTabs",payload:{key:""}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},children:"取消"}),(0,M.jsx)(T.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",onClick:l()(s()().mark((function e(){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o({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("操作成功"),o({type:"classroomList/setActionTabs",payload:{}}),(0,B.GJ)()?o({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},i.actionTabs.params),{},{type:4})}):o({type:"classroomList/getClassroomShixunsList",payload:d()({},i.actionTabs.params)}),o({type:"classroomList/getClassroomLeftMenus",payload:{id:u.coursesId}}),"0"===localStorage.getItem("Noviceguide")||o({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)(ve,{placeholder:"请输入课堂实验名称进行查询",enterButton:"搜索",size:"middle",className:se,onSearch:function(e){P.search=e,I(d()({},P))}})}),(0,M.jsx)("section",{className:"edu-container",children:(0,M.jsx)(K.Z,{spinning:A,children:(0,M.jsxs)("aside",{children:[0===(null==h||null===(n=h.homeworks)||void 0===n?void 0:n.length)&&(0,M.jsx)(q.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:ne,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:ie,children:[(0,M.jsx)("div",{className:ae,children:(0,M.jsxs)("div",{className:oe,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,me.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10",children:"需授权"}),(0,B.Ny)()&&1===(null==e?void 0:e.mark_status)&&(0,M.jsx)(_.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,B.Ny)()&&2===(null==e?void 0:e.mark_status)&&(0,M.jsx)(_.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,B.Ny)()&&3===(null==e?void 0:e.mark_status)&&(0,M.jsx)(_.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)(T.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:le,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)(U.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)(S.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,I(d()({},P))}})})]},"bottom")})),we=(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,o=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,F.Z.useForm()),g=(m()(h,1)[0],i.shixunAiRecommendLists),v=(0,f.useState)([]),w=m()(v,2),b=w[0],j=w[1],k=(0,f.useState)({page:1,course_id:p.coursesId,limit:20,no_jupyter:1}),_=m()(k,2),A=_[0],C=_[1];return(0,f.useEffect)((function(){}),[p.coursesId,A]),(0,f.useEffect)((function(){"智能推荐"===i.actionTabs.key&&(j([]),r({type:"classroomList/getShixunAiRecommendLists",payload:d()({},A)}))}),[i.actionTabs.key]),"智能推荐"!==i.actionTabs.key?null:(0,M.jsxs)(Z.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()(s()().mark((function e(){return s()().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,I.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)(K.Z,{spinning:o["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)(q.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:te,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?j(b.filter((function(n){return n!==e.id}))):j(b.concat(e.id))}}),(0,M.jsxs)("div",{className:ie,children:[(0,M.jsx)("div",{className:ae,children:(0,M.jsxs)("div",{className:oe,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,me.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10",children:"需授权"}),(0,M.jsx)(T.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:le,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)(U.Z,{dashed:!0})]})]},n)}))]})})}),(0,M.jsx)("div",{className:"tc mt20 hide",children:(0,M.jsx)(S.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:A.page||1,showQuickJumper:!0,total:null==g?void 0:g.shixuns_count,onChange:function(e){A.page=e,C(d()({},A))}})})]},"bottom")}))),be=w.Z.Search,je=(0,x.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading.effects}}))((function(e){var n,t,i=e.classroomList,a=e.loading,o=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,F.Z.useForm()),h=(m()(p,1)[0],i.coursesLists),g=(0,f.useState)([]),v=m()(g,2),w=v[0],b=v[1],j=(0,f.useState)({page:1,type:"mine",order:"desc",limit:20,sort:"myshixuns_count",shixun_homework:!0}),k=m()(j,2),A=k[0],C=k[1];(0,f.useEffect)((function(){"选用实践课程"===i.actionTabs.key&&(o({type:"classroomList/getCoursesLists",payload:d()({},A)}),b([]))}),[i.actionTabs.key,u.categoryId,A]);var N=(0,he.P)(),Z=m()(N,4),P=Z[0],E=Z[1],D=Z[2],O=Z[3],z=function(){var e=l()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o({type:"classroomList/createCoursesHomework",payload:{coursesId:u.coursesId,category_id:(null==u?void 0:u.categoryId)||null,subjects_info:[{subject_id:null===(t=w[0])||void 0===t?void 0:t.id,stage_shixuns:n.map((function(e){return{stage_shixun_id:e.id,is_use:e.is_use,is_copy:e.is_copy}}))}]}});case 2:e.sent.status||((0,I.L9)(["教学课堂","课程实验","选用实践课程"]),y.ZP.success("操作成功"),o({type:"classroomList/setActionTabs",payload:{}}),(0,B.GJ)()?o({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},i.actionTabs.params),{},{type:4})}):o({type:"classroomList/getClassroomShixunsList",payload:d()({},i.actionTabs.params)}),o({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)(Y.Z,{placement:"bottom",height:"100%",closable:!0,onClose:function(){o({type:"classroomList/setActionTabs",payload:{key:""}})},open:"选用实践课程"===i.actionTabs.key,rootClassName:J,footer:(0,M.jsxs)("div",{className:"tc",style:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,M.jsx)(T.ZP,{size:"middle",onClick:function(){o({type:"classroomList/setActionTabs",payload:{key:""}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},children:"取消"}),(0,M.jsx)(T.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",loading:a["classroomList/createCoursesHomework"],onClick:l()(s()().mark((function e(){var n,t;return s()().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,O({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||z([]);case 7:case"end":return e.stop()}}),e)}))),type:"primary",children:"确定"})]}),children:[(0,M.jsx)("section",{className:"tc",children:(0,M.jsx)(be,{placeholder:"课程名称/课程标识/合作者",enterButton:"搜索",size:"middle",className:se,onSearch:function(e){A.keyword=e,e&&(0,fe.tk)({name:e,copywriting:e,position:"Subject"}),C(d()({},A))}})}),(0,M.jsx)("section",{className:"edu-container",children:(0,M.jsx)(K.Z,{spinning:a["classroomList/getCoursesLists"],children:(0,M.jsxs)("aside",{children:[(0,M.jsx)("div",{className:ce,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(){A.order="asc"===A.order?"desc":"asc",A.sort="shixuns_count",C(d()({},A))},children:["实训数",(0,M.jsxs)("p",{className:"edu-sorter current ".concat("shixuns_count"===A.sort&&A.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(){A.order="asc"===A.order?"desc":"asc",A.sort="myshixuns_count",C(d()({},A))},children:["学习人数",(0,M.jsxs)("p",{className:"edu-sorter current ".concat("myshixuns_count"===A.sort&&A.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"===A.type&&"c-blue"," current"),onClick:function(){A.type="all",C(d()({},A))},children:"全部课程"}),(0,M.jsx)("li",{className:"".concat("mine"===A.type&&"c-blue"," current"),onClick:function(){A.type="mine",C(d()({},A))},children:"我的课程"})]})}),0===(null==h||null===(n=h.subject_list)||void 0===n?void 0:n.length)&&(0,M.jsx)(q.Z,{}),null==h||null===(t=h.subject_list)||void 0===t?void 0:t.map((function(e,n){var t,i,a,o,s,r;return(0,M.jsxs)("div",{className:ne,style:{cursor:"auto"},children:[(0,M.jsx)(L.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:ie,children:[(0,M.jsx)("div",{className:ae,children:(0,M.jsxs)("div",{className:oe,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,me.rX)(!1,"该课程中包含实训需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。")},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10",children:"需授权"}),"未发布"==(null==e?void 0:e.shixun_tag_num_name)&&(0,M.jsx)(_.Z,{zIndex:1e4,title:"实践课程需发布后才能发送到教学课堂,点击名称可前往课程详情",children:(0,M.jsx)("span",{style:{marginRight:"auto",background:"#999"},className:"tag-style current ml10",children:"未发布"})})]}),(0,M.jsx)(_.Z,{zIndex:1e4,title:"前往选用是进入实践课程的页面后,点击“发送”按钮,将所需实践项目发送至当前课堂",children:(0,M.jsx)(T.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:le,dangerouslySetInnerHTML:{__html:e.description}})}),(0,M.jsx)(U.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)(_.Z,{overlayClassName:ue,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:de,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)(_.Z,{title:(0,M.jsx)("div",{children:(0,M.jsx)("span",{children:e.member_user_names})}),children:(0,M.jsx)("span",{className:de,children:e.member_user_names})}),null!=e&&null!==(o=e.content)&&void 0!==o&&o.author_school_name?(0,M.jsx)(_.Z,{overlayClassName:ue,title:(0,M.jsx)("div",{children:(0,M.jsx)("span",{dangerouslySetInnerHTML:{__html:null==e||null===(s=e.content)||void 0===s?void 0:s.author_school_name}})}),children:(0,M.jsx)("span",{className:de,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)(_.Z,{title:(0,M.jsx)("div",{children:(0,M.jsx)("span",{children:e.author_school_name})}),children:(0,M.jsx)("span",{className:de,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)(S.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,current:A.page||1,showQuickJumper:!0,total:null==h?void 0:h.subjects_count,onChange:function(e){A.page=e,o({type:"classroomList/getCoursesLists",payload:d()({},A)})}})}),(0,M.jsx)(he.Z,{visible:P,inPaper:!1,onOk:z,onCancel:E,renderData:D,modalType:"multiple",type:"subject"})]},"bottom")})),ke=t(16046),_e=function(e){var n,t=e.styles,i=void 0===t?{}:t,a=e.params,o=e.setisshowmodal,s=e.user;return(0,M.jsxs)("section",{className:"tc animated fadeIn",style:d()(d()({},{color:"#999",margin:"200px auto"}),i),children:[(0,M.jsx)("img",{src:ke.z3}),(0,M.jsx)("p",{className:"mt20 font14",children:"该".concat(a.category?"分组":"课程","无课程实验,可以下方按钮或右上方“选用实验”按钮创建作业")}),(0,M.jsxs)("div",{style:{marginTop:"30px"},children:[(0,M.jsx)(T.ZP,{disabled:2===(null==s||null===(n=s.userInfo)||void 0===n?void 0:n.user_status),onClick:function(){o(!0)},type:"primary",style:{width:"128px",height:"40px",borderRadius:"4px",marginRight:"20px"},children:"选用实验"}),(0,M.jsx)(T.ZP,{onClick:function(){(0,I.xg)("https://www.educoder.net/forums/4909")},type:"primary",style:{width:"128px",height:"40px",borderRadius:"4px"},children:"新建作业指引"})]})]})},Ae={flex_box_center:"flex_box_center___i0kQ7",flex_space_between:"flex_space_between___st8Nm",flex_box_vertical_center:"flex_box_vertical_center___cGman",flex_box_center_end:"flex_box_center_end___xCqb1",flex_box_column:"flex_box_column___90t8q",bg:"bg___yvvvB",containerDesc:"containerDesc___McNkA",tablestyle:"tablestyle____NWqR",listItem:"listItem___Kb3j3",info:"info___QEKlY",title:"title___IjCCo",titleLeft:"titleLeft___iZ9Qh",titleRight:"titleRight___QK1TN",moveCategory:"moveCategory___ydIP9",name:"name___CCaOX",categoryName:"categoryName___cyGX3",schedule:"schedule___Dx5uk",fnSign:"fnSign___oPdpV",spanSize:"spanSize___LVOA3",classromediv:"classromediv___LNulU",glow:"glow___KEPta",action:"action___WEeMi",btn:"btn___anrwi",btnSort:"btnSort___iBwPq",tips:"tips___ezxph",fixedBottom:"fixedBottom___RTnOi",left:"left___aDYtw",right:"right___txYei",acitons:"acitons___iwBUY",actionBtns:"actionBtns___wvnKM",cancel:"cancel___VgzVn",selectBtn:"selectBtn___mMh11",selectBtn1:"selectBtn1___DNQsU",infoIcon:"infoIcon___fxDKp",infoStuIcon:"infoStuIcon___eoBo6",flexBox:"flexBox____AlDk",iconH:"iconH___Hmjwy",iconV:"iconV___VhZ00",actionIcon:"actionIcon___MWxMa",dro:"dro___bzbDZ",progressInfo:"progressInfo___bQbcf"},Ce=t(61998),Se=t(13544),Ne=t(91666),Te=t(19661),Ze=t(98816),Le=function(e){var n,t,i,a,o,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),j=e.selectshow,A=e.batchState,C=e.pageSize,S=e.page,T=e.manageAllGroup,L=e.user,P=(0,x.useParams)(),E=(0,f.useState)([]),D=m()(E,2),O=D[0],z=D[1],R=(0,f.useState)(!1),G=m()(R,2),F=G[0],H=G[1],V=(0,f.useState)(!1),W=m()(V,2),Y=W[0],K=W[1],U=(0,f.useState)(!0),q=m()(U,2),J=q[0],Q=q[1],X=(0,f.useRef)();function $(){return ee.apply(this,arguments)}function ee(){return(ee=l()(s()().mark((function e(){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.ZP)("/api/homework_commons/".concat(r.homework_id,"/group_settings_statistics.json"),{method:"get",params:d()({},P)});case 2:n=e.sent,z(n.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}P.category=P.categoryId,P.id=P.coursesId,P.page=S,P.limit=C,(0,f.useEffect)((function(){var e;z([]),H(!1),new Date(null==r?void 0:r.student_passed_time).getTime()>new Date(null==r?void 0:r.end_time_s).getTime()&&null!=r&&null!==(e=r.status)&&void 0!==e&&e.includes("已截止")&&(null==r?void 0:r.challenge_count)-(null==r?void 0:r.finished_challenge_count)==0?(K(!1),Q(!1)):((null==r?void 0:r.challenge_count)-(null==r?void 0:r.finished_challenge_count)==0&&new Date(null==r?void 0:r.student_passed_time).getTime()<new Date(null==r?void 0:r.end_time_s).getTime()||(null==r?void 0:r.challenge_count)-(null==r?void 0:r.finished_challenge_count)==0&&new Date(null==r?void 0:r.student_passed_time).getTime()<new Date(null==r?void 0:r.late_time).getTime())&&(K(!0),Q(!1))}),[j]);var ne=[{title:"班级",dataIndex:"course_group_name",key:"course_group_name"},{title:"状态",dataIndex:"status",key:"status",width:80,filters:[{text:"未开始",value:"未开始"},{text:"提交中",value:"提交中"},{text:"补交中",value:"补交中"},{text:"已截止",value:"已截止"},{text:"未发布",value:"未发布"}],onFilter:function(e,n){return 0===n.status.indexOf(e)}},{title:"提交情况",dataIndex:"statistics",key:"statistics",width:80,render:function(e){var n,t;return"--"===e?e:(0,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}):"--"}}],te=function(e){var n;(0,me.tJ)(b,!0)&&(e.can_view_details?(0,I.xg)("/shixuns/".concat(e.shixun_identifier,"/challenges")):e.redo?Z.Z.confirm({width:530,title:"提示",centered:!0,okText:"确定",cancelText:"再想想",content:(0,M.jsx)("div",{className:"tc font16",children:"您之前已经挑战过该实训,需要重新挑战"}),onOk:(n=l()(s()().mark((function n(){var t;return s()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Te.$Q)({id:e.myshixun_identifier,url:e.url});case 2:(t=n.sent)&&(0,Ze.Z)({is_jupyter:!1,is_jupyter_lab:!1,shixunId:t.shixun_identifier,homework_common_id:e.homework_id,courseId:P.coursesId});case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})}):(0,Ze.Z)({is_jupyter:!1,is_jupyter_lab:!1,shixunId:e.shixun_identifier,homework_common_id:e.homework_id,courseId:P.coursesId}))};return(0,M.jsxs)("div",{className:Ae.listItem,onClick:function(e){e.stopPropagation(),(!(0,B.GJ)()||!A||(0,B.GJ)()&&A&&X.current&&!X.current.contains(e.target))&&(0,I.xg)("/classrooms/".concat(P.coursesId,"/shixun_homework/").concat(r.homework_id,"/detail?tabs=0"))},children:[(0,B.GJ)()&&A&&(0,M.jsx)("span",{ref:X,children:(0,M.jsx)(N.Z,{style:{padding:"10px"},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:Ae.info,children:[(0,M.jsxs)("div",{className:Ae.title,children:[(0,M.jsxs)("div",{className:Ae.titleLeft,style:(0,B.dE)()?{paddingRight:(null==r?void 0:r.challenge_count)-(null==r?void 0:r.finished_challenge_count)?60:140}:{},children:[(0,B.GJ)()&&(0,M.jsx)(Ne.Z,{value:r.status,children:(0,M.jsx)(I.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:[r.status]})}),(0,B.dE)()&&(0,M.jsx)(I.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:r.status}),(0,M.jsx)("span",{className:Ae.name,children:r.name}),!(null===(n=r.schools)||void 0===n||!n.length)&&(0,M.jsx)(_.Z,{title:"该课程实验面向指定单位开放",children:(0,M.jsx)("i",{className:"iconfont icon-zhidinggongkai1 ml10 mr10 c-orange"})})]}),(0,M.jsxs)("div",{className:Ae.titleRight,children:[(0,B.GJ)()&&0===(null==r?void 0:r.status.indexOf("未发布"))&&(0,M.jsx)(x.Link,{target:"_blank",to:"/",onClick:function(){var e=l()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.stopPropagation(),n.preventDefault(),2!==(null==L||null===(t=L.userInfo)||void 0===t?void 0:t.user_status)){e.next=5;break}return(0,me.Rd)(),e.abrupt("return");case 5:b({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==r?void 0:r.homework_id],selectArrsAll:[r],params:P,type:2,manage_all_group:T}});case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:(0,M.jsxs)("aside",{className:Ae.flexBox,children:[(0,M.jsx)("i",{className:"iconfont icon-yishezhifabushijian1"}),(0,M.jsx)("div",{children:"发布"})]})}),(0,B.dE)()&&(0,M.jsxs)("div",{className:Ae.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()(s()().mark((function e(n){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.stopPropagation(),te(r);case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),className:Ae.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===(o=r.status)||void 0===o?void 0:o.includes("导入")))&&(0,M.jsxs)("aside",{onClick:function(){var e=l()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=r.status)||void 0===t||!t.includes("导入")){e.next=2;break}return e.abrupt("return");case 2:n.stopPropagation(),n.preventDefault(),(0,I.xg)("/classrooms/".concat(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:Ae.flexBox,style:{marginRight:10},children:[(0,M.jsx)("i",{className:"iconfont icon-chakanzuoye font14"}),(0,M.jsx)("div",{children:"查看作品"})]})]}),(0,B.GJ)()&&(0,M.jsx)(k.Z,{placement:"bottomCenter",overlayClassName:Ae.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()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.stopPropagation(),n.preventDefault(),2!==(null==L||null===(t=L.userInfo)||void 0===t?void 0:t.user_status)){e.next=5;break}return(0,me.Rd)(),e.abrupt("return");case 5:b({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==r?void 0:r.homework_id],selectArrsAll:[r],params:P,type:2}});case 6: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()(s()().mark((function e(n){return s()().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()(s()().mark((function e(n){return s()().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()(s()().mark((function e(n){return s()().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()(s()().mark((function e(n){var t;return s()().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,Se.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()(s()().mark((function e(n){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.stopPropagation(),n.preventDefault(),te(r);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:"进入实训"})},23),(0,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:Ae.flexBox,style:{cursor:"default"},children:[(0,M.jsx)("i",{className:"iconfont icon-gengduo4"}),(0,M.jsx)("div",{children:"更多"})]})})]})]}),(0,B.GJ)()&&(0,M.jsxs)("p",{className:Ae.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:Ae.iconV,onClick:function(){var e=l()(s()().mark((function e(n){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.stopPropagation(),n.preventDefault(),F||$(),H(!F);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(F?"shouqi":"xiala2")})," "]})]}),(0,B.dE)()&&(0,M.jsxs)("span",{className:Ae.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,B.GJ)()&&!r.status.includes("未发布")&&F&&O.length>5&&(0,M.jsx)(Ce.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:O,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"),$()},columns:ne}),(0,B.GJ)()&&!r.status.includes("未发布")&&F&&O.length<6&&O.length>0&&(0,M.jsx)(Ce.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:O,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"),$()},columns:ne})]})]},c)},Be=t(58067),Pe=t(40574),Ie=t(625),Ee=t(57809),Me=t(57930),De=t(33656),Oe=t.n(De),ze=t(24630),Re=t(37145),Ge=["classroomList","dispatch","user","getData"];V().extend(Oe());var Fe=function(e){var n,t,i,a,o=e.data,s=e.value,r=e.onChange,l=(0,f.useState)({leftSearch:"",rigthSearch:""}),c=m()(l,2),u=c[0],p=c[1],h=(0,f.useState)([]),g=m()(h,2),x=g[0],v=g[1];return(0,f.useEffect)((function(){v((null==s?void 0:s.length)>0?null==o?void 0:o.filter((function(e){return null==s?void 0:s.includes(null==e?void 0:e.id)})):[])}),[s]),(0,M.jsxs)("div",{style:{display:"flex",flexWrap:"nowrap",gap:"20px",height:"400px"},children:[(0,M.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,M.jsx)(N.Z,{indeterminate:(null==x?void 0:x.length)>0&&(null==x?void 0:x.length)<(null==o?void 0:o.length),checked:(null==x?void 0:x.length)==(null==o?void 0:o.length),onChange:function(e){r(e.target.checked?null==o?void 0:o.map((function(e){return null==e?void 0:e.id})):[])},children:"全选"}),(0,M.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,M.jsx)(w.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:u.leftSearch,onChange:function(e){p(d()(d()({},u),{},{leftSearch:e.target.value}))}}),(0,M.jsx)("div",{className:"mt20 ml20 mb20",style:{overflow:"auto"},children:0!==(null===(n=u.leftSearch?null==o?void 0:o.filter((function(e){var n;return null==e||null===(n=e.name)||void 0===n?void 0:n.includes(u.leftSearch)})):o)||void 0===n?void 0:n.length)?(0,M.jsx)(N.Z.Group,{value:s,onChange:function(e){r(e)},children:(0,M.jsx)(A.Z,{direction:"vertical",children:null===(t=u.leftSearch?null==o?void 0:o.filter((function(e){var n;return null==e||null===(n=e.name)||void 0===n?void 0:n.includes(u.leftSearch)})):o)||void 0===t?void 0:t.map((function(e,n){return(0,M.jsx)(N.Z,{value:e.id,children:null==e?void 0:e.name},n)}))})}):(0,M.jsx)(q.Z,{styles:{margin:"0 auto"}})})]})]}),(0,M.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,M.jsxs)("div",{children:["已选择",(null==x?void 0:x.length)||0,"个分班"]}),(0,M.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,M.jsx)(w.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:u.rigthSearch,onChange:function(e){p(d()(d()({},u),{},{rigthSearch:e.target.value}))}}),(0,M.jsx)("div",{className:"mt20 ml20 mb20 pr20",style:{display:"flex",flexDirection:"column",gap:"10px",overflow:"auto"},children:0!==(null===(i=u.rigthSearch?null==x?void 0:x.filter((function(e){var n;return null==e||null===(n=e.name)||void 0===n?void 0:n.includes(u.rigthSearch)})):x)||void 0===i?void 0:i.length)?null===(a=u.rigthSearch?null==x?void 0:x.filter((function(e){var n;return null==e||null===(n=e.name)||void 0===n?void 0:n.includes(u.rigthSearch)})):x)||void 0===a?void 0:a.map((function(e,n){return(0,M.jsxs)(b.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,M.jsx)(j.Z,{children:null==e?void 0:e.name}),(0,M.jsx)(j.Z,{children:(0,M.jsx)("i",{className:"iconfont icon-piliangshanchu2 font16 current",style:{color:"#3061D0"},onClick:function(){r(null==s?void 0:s.filter((function(n){return n!==(null==e?void 0:e.id)})))}})})]},n)})):(0,M.jsx)(q.Z,{styles:{margin:"0 auto"}})})]})]})]})},He=(0,x.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var n,t,i,a,o,r,c=e.classroomList,u=e.dispatch,p=(e.user,e.getData),g=(h()(e,Ge),(0,x.useParams)()),v=F.Z.useForm(),k=m()(v,1)[0],_=F.Z.useWatch("penalty_type",k),A="批量补交"===(null==c||null===(n=c.actionTabs)||void 0===n?void 0:n.key),C=(0,Re.U)(ze.c_,d()(d()({},g),null==c||null===(t=c.actionTabs)||void 0===t?void 0:t.params)),S=m()(C,4),N=S[1],T=S[2],L=S[3],B=(0,Re.U)(ze.nP,{course_id:null==g?void 0:g.coursesId,homework_ids:null==c||null===(i=c.actionTabs)||void 0===i?void 0:i.selectArrs}),P=m()(B,4),E=P[2],D=P[3],O=(0,Re.U)(ze.sm,{course_id:null==g?void 0:g.coursesId,homework_ids:null==c||null===(a=c.actionTabs)||void 0===a?void 0:a.selectArrs}),z=m()(O,3),R=z[1],G=z[2],H=function(){var e=l()(s()().mark((function e(){var n=arguments;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.length>0&&void 0!==n[0]?n[0]:{},E({}),e.next=4,T({page:1,limit:2e4,homework_id:1===c.actionTabs.type?"":c.actionTabs.selectArrs[0]});case 4:e.sent;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,f.useEffect)((function(){A&&H()}),[A]),(0,M.jsxs)(Z.Z,{centered:!0,title:null==c||null===(o=c.actionTabs)||void 0===o?void 0:o.key,width:800,open:A,cancelText:"暂不补交",okText:"开启补交",onCancel:function(){u({type:"classroomList/setActionTabs",payload:{}})},destroyOnClose:!0,confirmLoading:R,onOk:l()(s()().mark((function e(){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:k.submit();case 1:case"end":return e.stop()}}),e)}))),children:[(0,M.jsx)("div",{className:"p10 pl20 pr20 c-orange-ff7 mb20",style:{background:"#F6F7F9"},children:"规则说明:补交截止时间必须晚于作业截止时间;当班级阶段进入“补交中”则不可变更作业截止时间、不可关闭补交;当作业状态为未发布或者作业已开启统一补交时,新批量补交规则不生效。"}),(0,M.jsxs)(F.Z,{form:k,colon:!1,size:"large",initialValues:{unified_late:!1,penalty_type:2,late_penalty:20},onFinish:function(){var e=l()(s()().mark((function e(n){var t,i,a,o;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,G((null==L||null===(t=L.course_groups)||void 0===t?void 0:t.length)>0?{unified_late:(null==L||null===(i=L.course_groups)||void 0===i?void 0:i.length)<=0,allow_late_settings:[d()({},n)]}:d()({unified_late:(null==L||null===(a=L.course_groups)||void 0===a?void 0:a.length)<=0},n));case 2:0==(null==(o=e.sent)?void 0:o.status)&&(y.ZP.success("补交设置成功"),u({type:"classroomList/setActionTabs",payload:{}}),p&&p());case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,M.jsxs)(b.Z,{wrap:!1,gutter:20,children:[(0,M.jsx)(j.Z,{flex:1,children:(0,M.jsx)(F.Z.Item,{label:"补交扣分",name:"late_penalty",rules:[{required:!0,validator:function(e,n,t){return 2===_&&n>100?Promise.reject((0,M.jsx)("span",{style:{marginLeft:100},children:"请重新输入,范围0-100"})):Promise.resolve()}},{required:!0,message:(0,M.jsx)("span",{style:{marginLeft:100},children:"请输入补交扣分"})}],children:(0,M.jsx)(w.Z,{placeholder:"请输入补交扣分",min:0,type:"number",suffix:1==_?"分":"%",max:1===_?Number.MAX_SAFE_INTEGER:100,addonBefore:(0,M.jsx)(F.Z.Item,{name:"penalty_type",noStyle:!0,normalize:function(e){return k.setFieldsValue({late_penalty:2==e?20:5}),e},children:(0,M.jsx)(Ee.default,{style:{width:100},options:[{value:2,label:"百分比"},{value:1,label:"分值"}]})})})})}),(0,M.jsx)(j.Z,{flex:"390px",children:(0,M.jsx)(F.Z.Item,{label:"补交截止时间",name:"late_time",rules:[{required:!0,validator:function(e,n,t){return n&&V()(n).startOf("minute")<=V()().startOf("minute")?Promise.reject("作业补交截止时间必须晚于此刻"):n&&V()(n).startOf("minute")<=V()(null==D?void 0:D.max_late_time).startOf("minute")?(y.ZP.warning("补交截止时间不能小于选中作业中最晚作业截止时间:".concat(null==D?void 0:D.max_late_time)),Promise.reject("")):Promise.resolve()}},{required:!0,message:"请先设置补交截止时间"}],children:(0,M.jsx)(Me.default,{placeholder:"请选择截止时间",style:{width:"100%"},disabledDate:function(e){return(0,I.BO)(e,{startTime:null==D?void 0:D.max_late_time})},disabledTime:function(e){return(0,I.hv)(e,{compared:null==D?void 0:D.max_late_time})},format:"YYYY-MM-DD HH:mm",showTime:{showSecond:!1,defaultValue:V()("00:00:00","HH:mm:ss")}})})})]}),(null==L||null===(r=L.course_groups)||void 0===r?void 0:r.length)>0&&(0,M.jsx)(K.Z,{spinning:N,children:(0,M.jsx)(F.Z.Item,{name:"group_id",rules:[{required:!0,message:"请先选择班级"}],children:(0,M.jsx)(Fe,{data:(null==L?void 0:L.course_groups)||[],onChange:function(e){E({group_ids:e})}})})})]})]})})),Ve=["classroomList","globalSetting","shixunHomeworks","user","loading","dispatch","match"],We=(0,x.connect)((function(e){var n=e.classroomList,t=e.loading,i=e.globalSetting,a=e.shixunHomeworks,o=e.user;return{classroomList:n,globalSetting:i,loading:t.effects,shixunHomeworks:a,user:o}}))((function(e){var n,t,i,o,r,c,u,p,E=e.classroomList,D=(e.globalSetting,e.shixunHomeworks,e.user),F=e.loading,H=e.dispatch,V=e.match,Y=(h()(e,Ve),(0,x.useLocation)()),K=(0,x.useParams)(),U=(0,x.useSearchParams)(),J=m()(U,1)[0],Q=K.categoryId,X=(0,f.useState)([]),$=m()(X,2),ee=$[0],ne=$[1],te=(0,f.useState)([]),ie=m()(te,2),ae=ie[0],oe=ie[1],se=E.detailShixunsList,re=E.detailLeftMenus,le=E.detailTopBanner,ce=E.taskList,de=(0,f.useState)(""),ue=m()(de,2),pe=ue[0],he=ue[1],fe=(0,f.useState)(!1),ge=m()(fe,2),ve=(ge[0],ge[1]),be=(0,f.useState)({limit:20,status:Number(J.get("tabs"))?String(parseInt(J.get("tabs"))):"0"}),ke=m()(be,2),Ce=ke[0],Se=ke[1],Ne=(0,f.useState)("默认排序"),Te=m()(Ne,2),Ze=Te[0],Ee=Te[1],Me=(0,f.useState)(!1),De=m()(Me,2),Oe=De[0],ze=De[1],Re=(0,f.useState)(!1),Ge=m()(Re,2),Fe=(Ge[0],Ge[1]),We=(0,f.useState)("fixed"),Ye=m()(We,2),Ke=Ye[0],Ue=Ye[1],qe=(0,f.useState)(document.getElementById("footer")),Je=m()(qe,1)[0],Qe=(0,f.useState)(1),Xe=m()(Qe,2),$e=Xe[0],en=Xe[1],nn=(0,f.useState)(!1),tn=m()(nn,2),an=tn[0];tn[1];Ce.id=K.coursesId,Ce.type=4,K.categoryId?Ce.category=K.categoryId:delete Ce.category,(0,f.useEffect)((function(){"清除选择数据"===E.actionTabs.key&&(ne([]),oe([])),"目录重命名成功"===E.actionTabs.key&&rn()}),[E.actionTabs.key]),(0,f.useEffect)((function(){"0"===J.get("tabs")&&(Ce.status="0",Ce.page=1,Se(d()({},Ce)))}),[J.get("tabs")]),(0,f.useEffect)((function(){var e,n;if(null!=D&&null!==(e=D.userInfo)&&void 0!==e&&e.login){var t,i=I.cX.getItem("".concat(null==D||null===(t=D.userInfo)||void 0===t?void 0:t.login).concat((0,B.GJ)()?"Teacher":"Student"),"ShixunHomeworks");i&&(Ce.sort_by=null==i?void 0:i.type,Ce.sort_direction=null==i?void 0:i.direction,Ee(null==i?void 0:i.name)),rn(),(0,B.Rm)()&&sn()}else null!=D&&null!==(n=D.userInfo)&&void 0!==n&&n.username&&rn()}),[null==D||null===(n=D.userInfo)||void 0===n?void 0:n.login,null==Y?void 0:Y.pathname]),(0,f.useEffect)((function(){window.addEventListener("scroll",on)}),[]);var on=function(){document.scrollingElement.scrollTop+window.innerHeight+(null==Je?void 0:Je.clientHeight)+150>document.body.clientHeight?Ue("absolute"):Ue("fixed")},sn=function(){H({type:"classroomList/getAssistantPermissions",payload:{course_id:Ce.id}})},rn=function(){ne([]),oe([]),Se(d()({},Ce)),(0,B.GJ)()?H({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},Ce),{},{type:4})}):H({type:"classroomList/getClassroomShixunsList",payload:d()(d()({},Ce),{},{order:Ce.status})})};function ln(){return(ln=l()(s()().mark((function e(n){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,H({type:"classroomList/updateTaskPosition",payload:{category_id:Q,courseId:Ce.id,task_ids:n,container_type:"shixun_homework"}});case 2:rn();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var cn=(0,f.useMemo)((function(){var e=[];return ce.length>0&&(e=ce.map((function(e){return{user_name:e.user_name,task_name:e.task_name,task_id:e.task_id,category:e.category,status:e.status}}))),e}),[ce]),dn=(0,B.GJ)()?[{name:"默认排序",type:"position",direction:"desc"},{name:"创建时间升序",type:"created_at",direction:"asc"},{name:"创建时间降序",type:"created_at",direction:"desc"},{name:"更新时间升序",type:"updated_at",direction:"asc"},{name:"更新时间降序",type:"updated_at",direction:"desc"},{name:"实验名称升序",type:"name_pinyin",direction:"asc"},{name:"实验名称降序",type:"name_pinyin",direction:"desc"}]:[{name:"默认排序",type:null,direction:null},{name:"按发布时间升序",type:"created_at",direction:"asc"},{name:"按发布时间降序",type:"created_at",direction:"desc"},{name:"按截止时间升序",type:"updated_at",direction:"asc"},{name:"按截止时间降序",type:"updated_at",direction:"desc"},{name:"实验名称升序",type:"name_pinyin",direction:"asc"},{name:"实验名称降序",type:"name_pinyin",direction:"desc"}];re.course_modules&&(p=E.detailLeftMenus.course_modules.filter((function(e){return"shixun_homework"===e.type}))[0]);var un=(0,M.jsx)("div",{className:Ae.moveCategory,onMouseLeave:function(e){return ve(!1)},children:(0,M.jsxs)(v.Z,{onClick:function(){var e=l()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.item,t=n.key,n.keyPath,n.domEvent,""!=ee){e.next=4;break}return y.ZP.error("请选择你要操作的任务"),e.abrupt("return",null);case 4:return e.next=6,(0,g.ZP)("/api/courses/".concat(Ce.id,"/homework_commons/move_to_category.json"),{method:"post",body:{homework_ids:ee,new_category_id:t}});case 6:0===e.sent.status&&(y.ZP.success("操作成功"),rn(),Fe(!1),H({type:"classroomList/getClassroomLeftMenus",payload:{id:K.coursesId}}));case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),style:{maxHeight:300,width:240,overflow:"auto"},children:[(0,M.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",children:(0,M.jsx)(w.Z,{onChange:function(e){he(e.target.value)}})}),p&&p.second_category.filter((function(e){return"未分配目录"!==e.category_name})).map((function(e,n){var t;if(!(""!==pe&&e.category_name.indexOf(pe)<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(),H({type:"classroomList/setActionTabs",payload:{key:"添加目录",params:Ce,selectArrs:{category_id:null==se?void 0:se.main_category_id,type:"shixun_homework"}}})},children:"新建子目录..."})]})}),mn=null===(t=[{key:"1",label:"批量发布",icon:(0,M.jsx)("i",{className:"iconfont icon-fabu5"}),isShow:!0},{key:"2",label:"批量截止",icon:(0,M.jsx)("i",{className:"iconfont icon-piliangjiezhi2"}),isShow:!0},{key:"5",label:"批量补交",icon:(0,M.jsx)("i",{className:"iconfont icon-buka"}),isShow:!0},{key:"3",label:"批量删除",icon:(0,M.jsx)("i",{className:"iconfont icon-piliangshanchu2"}),isShow:(0,B.GJ)()||(0,B.Rm)()},{key:"4",label:"设为公开",icon:(0,M.jsx)("i",{className:"iconfont icon-sheweigongkai2"}),isShow:le.is_public}].filter((function(e){return null==e?void 0:e.isShow})))||void 0===t?void 0:t.map((function(e){return delete e.isShow,e})),pn="默认排序"===Ze,hn=(0,f.useMemo)((function(){var e=!(0,B.GJ)()&&!(0,B.Jd)(),n=null==le?void 0:le.excellent;return e&&n}),[D,E]),fn=(0,f.useMemo)((function(){return(null==se?void 0:se.min_finished_game)>0}),[E]),gn=(0,f.useMemo)((function(){var e=(null==se?void 0:se.min_finished_game)-(null==se?void 0:se.finished_challenge_count);return e>0?e:0}),[E]);return(0,M.jsxs)("section",{children:[(0,M.jsx)("aside",{className:Ae.bg,children:(0,M.jsxs)(b.Z,{align:"middle",children:[(0,M.jsx)(j.Z,{flex:"1",children:!!se.main_category_id&&(0,M.jsxs)(v.Z,{mode:"horizontal",onSelect:function(e){var n=e.key;Ce.status=n,Ce.page=1,x.history.replace("".concat(Y.pathname,"?tabs=").concat(n)),rn()},selectedKeys:[Ce.status],children:[!(0,B.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,B.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,B.GJ)()&&(0,M.jsx)("span",{className:"c-grey-999",children:null==se?void 0:se.all_count}),1===n&&(0,B.GJ)()&&(0,M.jsx)("span",{className:"c-grey-999",children:null==se?void 0:se.unpublished_count}),2===n&&(0,B.GJ)()&&(0,M.jsx)("span",{className:"c-grey-999",children:null==se?void 0:se.not_start_count}),3===n&&(0,B.GJ)()&&(0,M.jsx)("span",{className:"c-grey-999",children:null==se?void 0:se.in_progress_count}),4===n&&(0,B.GJ)()&&(0,M.jsx)("span",{className:"c-grey-999",children:null==se?void 0:se.overed_count})]},null==e?void 0:e.id)}))]})}),(0,M.jsx)(j.Z,{className:"mr20 gutter-row",children:(0,M.jsx)("div",{className:Ae.containerTitle,children:(0,B.GJ)()&&"未分配目录"!==(0,I.Oo)(null==re?void 0:re.course_modules,Q)&&(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:6},children:[(0,M.jsx)(k.Z,{className:"ml10",placement:"bottom",arrow:!0,dropdownRender:function(){return(0,M.jsxs)(v.Z,{children:[(0,M.jsx)(v.Z.Item,{onClick:function(){H({type:"classroomList/setActionTabs",payload:{key:"导出成绩",type:null==se?void 0:se.main_category_name,exportType:"practice",category_id:Ce.category}})},children:"学生成绩"},1),(0,M.jsx)(v.Z.Item,{onClick:function(){x.history.push("/classrooms/".concat(null==K?void 0:K.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){H({type:"classroomList/setActionTabs",payload:{key:K.categoryId?"目录重命名":"添加目录",params:Ce,selectArrs:{category_name:null==se?void 0:se.category_name,category_id:(null==se?void 0:se.category_id)||(null==se?void 0:se.main_category_id),type:"shixun_homework"},cb:function(){rn()}}})},children:(0,M.jsx)(_.Z,{title:K.categoryId?"目录重命名":"新建子目录",children:(0,M.jsx)("span",{className:K.categoryId?"".concat(Ae.iconH," iconfont icon-zhongmingmingmulu"):"".concat(Ae.iconH," iconfont icon-xinjianmulu1")})})}),(0,M.jsx)(k.Z,{className:"ml10",disabled:2===(null==D||null===(i=D.userInfo)||void 0===i?void 0:i.user_status),dropdownRender:function(){return(0,M.jsxs)(v.Z,{children:[(0,M.jsx)(v.Z.Item,{onClick:function(){var e;!(0,B.Rm)()||null!==(e=E.AssistantObject)&&void 0!==e&&null!==(e=e.practice)&&void 0!==e&&e.can_create?H({type:"classroomList/setActionTabs",payload:{key:"选用实践项目",params:Ce}}):y.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"从实践项目添加"},1),(0,M.jsx)(v.Z.Item,{onClick:function(){var e;!(0,B.Rm)()||null!==(e=E.AssistantObject)&&void 0!==e&&null!==(e=e.practice)&&void 0!==e&&e.can_create?H({type:"classroomList/setActionTabs",payload:{key:"选用实践课程",params:Ce}}):y.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"从实践课程添加"},2),(0,M.jsx)(v.Z.Item,{onClick:function(){var e;!(0,B.Rm)()||null!==(e=E.AssistantObject)&&void 0!==e&&null!==(e=e.practice)&&void 0!==e&&e.can_create?H({type:"classroomList/setActionTabs",payload:{key:"导入外部成绩",type:"practice"}}):y.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"导入外部成绩"},3)]})},children:(0,M.jsxs)("span",{className:2===(null==D||null===(o=D.userInfo)||void 0===o?void 0:o.user_status)?Ae.selectBtn1:Ae.selectBtn,children:[(0,M.jsx)("span",{children:(0,M.jsx)("i",{className:"iconfont icon-tianjiadaohang"})}),(0,M.jsx)(_.Z,{title:2===(null==D||null===(r=D.userInfo)||void 0===r?void 0:r.user_status)&&"教学课堂试用期已结束,平台已暂停提供课堂实验创建功能",children:(0,M.jsx)("span",{children:"选用实验"})})]})})]})})})]})}),(0,M.jsxs)("div",{className:Ae.action,children:[(0,M.jsx)("div",{children:(0,M.jsx)(k.Z,{dropdownRender:function(){return(0,M.jsx)(v.Z,{selectedKeys:[Ze],children:null==dn?void 0:dn.map((function(e,n){return(0,M.jsx)(v.Z.Item,{onClick:function(){var n;Ce.sort_by=e.type,Ce.sort_direction=e.direction,Ce.page=1,Ee(e.name),I.cX.setItem("".concat(null==D||null===(n=D.userInfo)||void 0===n?void 0:n.login).concat((0,B.GJ)()?"Teacher":"Student"),e,"ShixunHomeworks"),(0,B.GJ)()?H({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},Ce),{},{type:4})}):H({type:"classroomList/getClassroomShixunsList",payload:d()({},Ce)})},children:e.name},e.name)}))})},children:(0,M.jsxs)("span",{className:"".concat(Ae.btn," ").concat(pn?Ae.btnSort:""),onMouseEnter:function(e){return ve(!1)},children:[(0,M.jsx)("i",{className:"iconfont icon-paixu font14 mr5"}),Ze]})})}),pn&&(0,M.jsx)(_.Z,{title:"优先按照调整排序结果展示,未设置排序时,按照".concat((0,B.GJ)()?"创建时间降序":5==Ce.status?"截止时间降序":"截止时间升序","排列"),children:(0,M.jsx)("span",{className:Ae.tips,children:(0,M.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2"})})}),(0,M.jsx)(w.Z.Search,{allowClear:!0,placeholder:"请输入实验名称",onSearch:function(e){Ce.search=e.trim(),Ce.page=1,rn()},style:{width:220,marginLeft:"auto"}})]}),hn&&(0,M.jsxs)(b.Z,{justify:"space-between",className:Ae.progressInfo,children:[(0,M.jsx)(j.Z,{children:(0,M.jsxs)(A.Z,{size:"middle",children:[(0,M.jsxs)("span",{children:["实训作业进度:",null==se?void 0:se.finished_task_count,"/",null==se?void 0:se.shixun_total_count]}),(0,M.jsxs)("span",{children:["任务关卡进度:",null==se?void 0:se.finished_challenge_count,"/",null==se?void 0:se.challenge_count]})]})}),fn&&(0,M.jsxs)(j.Z,{children:["通过",null==se?void 0:se.min_finished_game,"关获得满分,距离MOOC实训作业满分还差",gn,"关"]})]}),(0,M.jsxs)("aside",{className:"minH500 skt-loading relative pb40 mb30",children:[(0,M.jsxs)(C.Z,{loading:F[(0,B.GJ)()?"classroomList/getClassroomTeacherShixunsList":"classroomList/getClassroomShixunsList"],active:!0,paragraph:{rows:5},className:"mt30",children:[0===(null==se?void 0:se.all_count)&&(0,B.GJ)()?(0,M.jsx)(_e,{params:Ce,user:D,setisshowmodal:ze,dispatch:H}):0===(null==se?void 0:se.task_count)&&(0,M.jsx)(q.Z,{}),(0,M.jsxs)("aside",{className:"animated fadeIn",children:[se.homeworks&&se.homeworks.map((function(e,n){return(0,M.jsx)(Le,{batchState:!0,v:e,k:n,match:V,selectArrs:ee,setSelectArrs:ne,setSelectArrsAll:oe,selectArrsAll:ae,classroomList:E,dispatch:H,params:Ce,user:D,page:K.page||1,pageSize:Ce.limit||20,selectshow:an,manageAllGroup:se.manage_all_group},e.homework_id)})),se.query_total_count>0&&(0,M.jsx)("aside",{className:"tc mb50 mt30",children:(0,M.jsx)(S.Z,{showSizeChanger:!0,current:Ce.page||1,pageSize:Ce.limit||20,onChange:function(e,n){Ce.page=e,Ce.limit=n,rn()},total:se.query_total_count})})]})]}),(0,M.jsxs)("div",{className:Ae.fixedBottom,style:{bottom:ee.length?0:-60,position:ee.length?Ke:"fixed",left:"fixed"===Ke?"50%":"317px"},children:[(0,M.jsx)("div",{className:Ae.left}),(0,M.jsx)("div",{className:Ae.right,children:(0,B.GJ)()&&(null==se?void 0:se.all_count)>0&&(0,M.jsxs)("aside",{className:[Ae.acitons].join(" "),children:[(0,M.jsx)("div",{style:{width:130},children:(0,B.GJ)()&&(0,M.jsx)(N.Z,{checked:(null===(c=se.homeworks)||void 0===c?void 0:c.length)===(null==ee?void 0:ee.length),onChange:function(e){e.target.checked?(ne(se.homeworks.map((function(e){return e.homework_id}))),oe(a()(se.homeworks))):(ne([]),oe([]))},children:(0,M.jsxs)("span",{className:"fo",children:["全选本页",(0,M.jsxs)("span",{style:{marginLeft:5},children:["(",ee.length,")"]})," "]})})}),(0,M.jsxs)("div",{style:{flex:1},children:[" ",(0,M.jsxs)(b.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,M.jsx)(j.Z,{flex:1,children:(0,M.jsxs)(b.Z,{wrap:!1,align:"middle",gutter:8,children:[(0,M.jsx)(j.Z,{children:(0,M.jsx)(k.Z,{placement:"top",menu:{items:mn,onClick:function(e){var n,t,i,a=e.key;"1"!==a&&"2"!==a||!(0,B.Rm)()||null!==(n=E.AssistantObject)&&void 0!==n&&null!==(n=n.practice)&&void 0!==n&&n.can_publish?2!==(null==D||null===(t=D.userInfo)||void 0===t?void 0:t.user_status)||"1"!==a?""!=ee?H({type:"classroomList/setActionTabs",payload:{key:"1"===a?"立即发布":"2"===a?"立即截止":"3"===a?"删除":"5"===a?"批量补交":null===(i=mn[Number(a)-1])||void 0===i?void 0:i.label,selectArrs:ee,selectArrsAll:ae,type:"1"===a||"2"===a?1:"",params:Ce}}):y.ZP.error("请选择你要操作的任务"):(0,me.Rd)():y.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}},children:(0,M.jsx)(T.ZP,{type:"primary",icon:(0,M.jsx)("i",{className:"iconfont icon-piliangcaozuo3"}),children:"批量操作"})})}),(0,M.jsx)(j.Z,{children:(0,M.jsx)(T.ZP,{type:"primary",icon:(0,M.jsx)("i",{className:"iconfont icon-tiaozhengpaixu2"}),onClick:function(){var e={courseId:Ce.id,container_type:"shixun_homework"};Q&&(e.category_id=Q),H({type:"classroomList/getAllTaskList",payload:e}),H({type:"classroomList/setActionTabs",payload:{key:"调整排序"}})},children:"调整排序"})}),(0,M.jsx)(j.Z,{children:(0,M.jsx)(k.Z,{placement:"topLeft",dropdownRender:function(){return un},getPopupContainer:function(e){return null==e?void 0:e.parentNode},children:(0,M.jsxs)(T.ZP,{type:"primary",icon:(0,M.jsx)("i",{className:"iconfont icon-yidongmulu"}),children:["移动到目录 ",(0,M.jsx)(P.Z,{})]})})})]})}),(0,M.jsx)(j.Z,{children:(0,M.jsx)(T.ZP,{type:"primary",ghost:!0,onClick:function(){ne&&ne([]),Fe(!1)},children:"取消操作"})})]})]})]})})]})]}),"批量补交"===(null==E||null===(u=E.actionTabs)||void 0===u?void 0:u.key)&&(0,M.jsx)(He,{getData:rn}),"选用实践课程"===E.actionTabs.key?(0,M.jsx)(je,{}):null,(0,M.jsx)(Be.Z,{onOk:function(){rn()}}),(0,M.jsx)(Pe.Z,{onOk:function(){}}),"选用实践项目"===E.actionTabs.key?(0,M.jsx)(xe,{}):null,"从课堂实验添加"===E.actionTabs.key?(0,M.jsx)(ye,{}):null,(0,M.jsx)(W,{}),(0,M.jsx)(O,{}),(0,M.jsx)(z.Z,{courseEndTime:null==se?void 0:se.course_end_time}),(0,M.jsx)(R.Z,{visible:"立即截止"===E.actionTabs.key,courseEndTime:null==se?void 0:se.course_end_time,courseId:K.coursesId,homeworkIds:E.actionTabs.selectArrs,isBatch:2!==E.actionTabs.type,successCallback:function(){(0,B.GJ)()?H({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},E.actionTabs.params),{},{type:4})}):H({type:"classroomList/getClassroomShixunsList",payload:d()({},E.actionTabs.params)})}}),(0,M.jsx)(G,{}),(0,M.jsx)(we,{}),(0,M.jsx)(Ie.Z,{visible:"调整排序"===E.actionTabs.key,callback:function(e){return ln.apply(this,arguments)},data:cn,onCancel:function(){H({type:"classroomList/setActionTabs",payload:{key:""}})}}),(0,M.jsx)(Z.Z,{title:"选用实验",open:Oe,centered:!0,onCancel:function(){return ze(!1)},onOk:function(){var e,n;!(0,B.Rm)()||null!==(e=E.AssistantObject.practice)&&void 0!==e&&e.can_create?2!==(null===(n=D.userInfo)||void 0===n?void 0:n.user_status)?(H(1===$e?{type:"classroomList/setActionTabs",payload:{key:"选用实践项目",params:Ce}}:{type:"classroomList/setActionTabs",payload:{key:"选用实践课程",params:Ce}}),ze(!1)):(0,me.Rd)():y.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:(0,M.jsx)("div",{children:(0,M.jsxs)(L.ZP.Group,{onChange:function(e){en(e.target.value)},value:$e,children:[(0,M.jsx)(L.ZP,{style:{marginTop:"15px"},value:1,children:"从实践项目添加(可选择多个实践项目加入作业)"}),(0,M.jsx)(L.ZP,{style:{marginTop:"15px"},value:2,children:"从实践课程添加(将实践课程中全部的实践项目都加入作业)"})]})})})]})}))},625:function(e,n,t){"use strict";t.d(n,{Z:function(){return C}});var i=t(7557),a=t.n(i),o=t(41498),s=t.n(o),r=t(82242),l=t.n(r),c=t(79800),d=t.n(c),u=t(59301),m=t(43418),p=t(96865),h=t(95237),f=t(6848),g="wrap___KDoq2",x="tip___WEJuX",v="listWrap___IJDX4",y="li___r5con",w="nameWrap___PUyEz",b="name___xuUMY",j="tag___l5CW2",k=t(78018),_=t(33423),A=t(37712),C=function(e){var n,t,i=e.type,o=void 0===i?1:i,r=e.data,c=e.visible,C=e.callback,S=e.onCancel,N=(0,u.useState)([]),T=d()(N,2),Z=T[0],L=T[1],B=(0,_.useSelector)((function(e){return e.loading}));(0,u.useEffect)((function(){L(r)}),[JSON.stringify(r)]);var P=function(e){var n={};if(1===o){n={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"未开始":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"提交中":{background:"rgba(0,177,135,0.2)",color:"#00B187"},"已截止":{background:"rgba(229,51,51,0.2)",color:"#E53333"}}[e]}if(2===o){n={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"预发布":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"已发布":{background:"rgba(0,177,135,0.2)",color:"#00B187"}}[e]}return(0,A.jsx)("div",{className:j,style:l()({},n),children:e})},I=function(){var e=s()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:C(Z.map((function(e){return e.task_id})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,A.jsx)(m.Z,{centered:!0,destroyOnClose:!0,open:c,onCancel:S,onOk:I,confirmLoading:null==B||null===(n=B.effects)||void 0===n?void 0:n["classroomList/updateTaskPosition"],okText:"保存",title:"调整排序",width:850,children:(0,A.jsxs)("div",{className:g,children:[(0,A.jsxs)("div",{className:x,children:[(0,A.jsx)("i",{className:"iconfont icon-tishi9 font14 mr10"}),(0,A.jsx)("span",{children:"提示:请在列表中长按鼠标左键,进行拖放排序。完成排序后请点击“保存”"})]}),(0,A.jsx)(p.Z,{loading:null==B||null===(t=B.effects)||void 0===t?void 0:t["classroomList/getAllTaskList"],active:!0,className:"mt20",paragraph:{rows:5},children:(0,A.jsx)(k.Z5,{onDragEnd:function(e){return function(e,n){if(e.destination){var t=function(e,n,t){var i=Array.from(e),a=i.splice(n,1),o=d()(a,1)[0];return i.splice(t,0,o),i}(n,e.source.index,e.destination.index);L(t)}}(e,Z)},children:(0,A.jsx)(k.bK,{droppableId:"droppable",children:function(e,n){return(0,A.jsxs)("div",l()(l()({ref:e.innerRef},e.droppableProps),{},{className:v,children:[Z.map((function(e,n){return(0,A.jsx)(k._l,{draggableId:e.task_id.toString(),index:n,children:function(n,t){return(0,A.jsxs)("div",l()(l()(l()({ref:n.innerRef},n.draggableProps),n.dragHandleProps),{},{className:y,children:[(0,A.jsxs)(h.Z,{align:"middle",children:[(0,A.jsx)("div",{className:w,children:(0,A.jsx)(f.Z,{title:null==e?void 0:e.task_name,children:(0,A.jsx)("div",{className:b,children:null==e?void 0:e.task_name})})}),P(null==e?void 0:e.status)]}),(0,A.jsx)(h.Z,{align:"middle",className:"font12 mt10",children:(0,A.jsxs)("span",{className:"mr30 c-grey-666",children:["管理员",(0,A.jsx)("span",{className:"ml5 c-black",children:(null==e?void 0:e.user_name)||"--"})]})})]}))}},e.task_id)})),e.placeholder]}))}})})})]})})}},37145:function(e,n,t){"use strict";t.d(n,{U:function(){return m}});var i=t(7557),a=t.n(i),o=t(82242),s=t.n(o),r=t(41498),l=t.n(r),c=t(79800),d=t.n(c),u=t(59301);function m(e,n){var t=(0,u.useState)(n),i=d()(t,2),o=i[0],r=i[1],c=(0,u.useState)(!1),m=d()(c,2),p=m[0],h=m[1],f=(0,u.useState)(),g=d()(f,2),x=g[0],v=g[1],y=function(){var t=l()(a()().mark((function t(i){var l,c,d,u=arguments;return a()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l=u.length>1&&void 0!==u[1]&&u[1],c=l?n:s()(s()({},o),i),h(!0),r(c),t.next=6,e(c);case 6:return d=t.sent,h(!1),v(d),t.abrupt("return",d);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return[o,p,y,x]}},98816:function(e,n,t){"use strict";t.d(n,{_:function(){return g}});var i=t(7557),a=t.n(i),o=t(41498),s=t.n(o),r=t(14683),l=t(43418),c=t(8591),d=t(61998),u=t(13023),m=(t(59301),t(37712)),p=function(){var e=s()(a()().mark((function e(n){var t,i,o,s,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,o=n.shixunId,s=n.homework_common_id,l=n.courseId,!t&&!i){e.next=7;break}return e.next=4,(0,r.BK)({id:o});case 4:return null!=(c=e.sent)&&c.identifier&&(0,u.xg)("/tasks/".concat(c.identifier,"/jupyter?homework_common_id=").concat(s)),e.abrupt("return");case 7:return e.next=9,(0,r.Ir)({id:o,homework_common_id:s});case 9:if(null==(d=e.sent)||!d.game_identifier){e.next=13;break}return(0,u.xg)("/tasks/".concat(l,"/").concat(s,"/").concat(d.game_identifier)),e.abrupt("return");case 13:2===(null==d?void 0:d.status)?h(null==d?void 0:d.message,s,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 o,d;n=null!==(o=n)&&void 0!==o&&o.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=s()(a()().mark((function o(){var s,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(s=a.sent){a.next=5;break}return a.abrupt("return");case 5:return c.ZP.success("重置成功,正在进入实践项目!"),a.next=8,(0,r.Ir)({id:s.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()}}),o)}))),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=s()(a()().mark((function e(n,t){var i,o,s,c,u,h,f;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.is_jupyter,o=t.is_jupyter_lab,e.next=3,(0,r.WT)(n);case 3:if(!((s=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:["你当前有",s.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,s=n.shixun_identifier;return(0,m.jsx)("div",{style:{cursor:"pointer",color:"#165dff"},onClick:function(){p({is_jupyter:i,is_jupyter_lab:o,shixunId:s,homework_common_id:a,courseId:t})},children:"前往挑战"})}}],dataSource:s,rowKey:"id"})]})}),e.abrupt("return",!0);case 7:if(1!==s.length){e.next=11;break}return c=s[0],u=c.shixun_identifier,h=c.id,f=c.course_identifier,p({is_jupyter:i,is_jupyter_lab:o,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},20330:function(e,n,t){"use strict";t.d(n,{rX:function(){return A},pW:function(){return C},gy:function(){return S},xY:function(){return _},O5:function(){return k},tJ:function(){return v},o1:function(){return y},Rd:function(){return j}});var i=t(7557),a=t.n(i),o=t(41498),s=t.n(o),r=t(33423),l=t(43418),c=t(28103),d=t(8591),u=t(35868),m=t(13023),p=t(680),h=t(25510),f=t.p+"static/newqrcode.a8740efb.png",g=t(32637),x=t(37712),v=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!y(e)||!w(n))},y=function(e){return!!(0,u.bg)()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},w=function(){var e,n=(0,r.getDvaApp)()._store.getState(),t=n.user;return!(null===(e=t.userInfo)||void 0===e||!e.profile_completed)||(l.Z.confirm({title:"提示",width:530,centered:!0,content:"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,m.xg)("/account/profile/edit"),b()}}),!1)},b=function(){l.Z.success({title:"提示",width:430,closable:!0,centered:!0,content:"已完善个人资料?请刷新页面",okText:"立即刷新",icon:null,onOk:function(){location.reload()}})},j=function(){l.Z.warning({title:"提示",icon:null,width:400,content:(0,x.jsxs)("div",{style:{textAlign:"center"},children:[(0,x.jsx)("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"},children:"老师您好,您的课堂试用期已结束,相关功能被限制。 如需继续使用,请尽快对接人工支持!"}),(0,x.jsx)("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:g}),(0,x.jsx)("div",{style:{color:"#666666",fontSize:14,marginTop:15},children:"添加客服人员微信,获得更多支持"})]})})},k=function(){var e;return!(null===(e=(0,r.getDvaApp)()._store.getState().user.userInfo)||void 0===e||!e.professional_certification)||(l.Z.confirm({title:"提示",centered:!0,content:(0,x.jsx)("div",{className:"tc",children:"您需要去完成您的职业认证,才能使用此功能"}),okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,m.xg)("/account/certification")}}),!1)},_=function(){return!!(0,u.V9)()||(l.Z.warning({centered:!0,width:530,title:"提示",content:(0,x.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,x.jsx)("p",{children:"扫码加头歌助教,申请操作权限"}),(0,x.jsx)("img",{src:f,width:200})]}),okText:"我知道了",maskClosable:!0}),!1)},A=function(e,n){return!!e||(l.Z.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:(0,x.jsxs)("div",{children:[(0,x.jsx)("p",{children:n||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。"}),(0,x.jsxs)("div",{style:{marginLeft:"110px"},children:[(0,x.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2sCoqKqqqqqzuajgctnoTACMWoV8xTgkBgAwEFgCQgcACADIQWABABgILAMgwe5cwJ5O3jVtaWgp+z8KKW+bOPvjuwq1bMaTD+OLG2+ks2/aSSS78FTMcYQEAIQgsACADgQUAZCCwAIAMBBYAkIHAAgAyLBnW4CxnS/fb9k4r7nk7W8LBClZUQbBiYIEVI2ycnXjFIjjCAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQ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4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",width:200}),(0,x.jsxs)("div",{style:{marginLeft:"35px"},children:["群号:","714336072"]})]})]}),okText:"立即联系",cancelText:"取消",onOk:function(){(0,m.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},C=function(e){l.Z.info({title:"联系平台运营",icon:null,width:615,centered:!0,content:(0,x.jsxs)("div",{children:[(0,x.jsxs)("div",{children:[(0,x.jsx)("p",{style:{color:"#191919",fontWeight:400,fontSize:14},children:"“保存实验临时数据”功能为付费功能,请联系平台运营进行开通。"}),(0,x.jsx)(c.Z,{}),(0,x.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,x.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"1"})," 因平台的实验数据储存容量和成本消耗较大,实践项目默认保存实验环境中临时数据 ",(0,x.jsx)("a",{children:e}),"天。"]}),(0,x.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,x.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"2"}),"若您需要个性化的数据保存周期服务,我们可以提供相关技术支持,并根据您的需求收取定制费用。"]})]}),(0,x.jsx)("div",{style:{textAlign:"center",marginTop:30},children:(0,x.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:h,alt:"二维码",width:160})})]})})},S=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(0,r.getDvaApp)()._store.getState(),i=t.shixunsDetail.detail;if(2===(null==i?void 0:i.public)||1===(null==i?void 0:i.public)||3===(null==i?void 0:i.shixun_status)){var o="";return 2===(null==i?void 0:i.public)&&(o="已公开"),1===(null==i?void 0:i.public)&&(o="待审核"),3===(null==i?void 0:i.shixun_status)&&(o="已关闭"),l.Z.info({centered:!0,icon:(0,x.jsx)(p.Z,{style:{color:"#faad14"}}),width:460,title:"提示",content:(0,x.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,x.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"},children:[(0,x.jsxs)("span",{children:["该实践项目的状态为",o,",",n,"。"]}),(0,x.jsx)("p",{children:"如有需要,请联系平台管理员进行技术支持。"})]}),(0,x.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:h,alt:"二维码",width:160})]}),okText:"我知道了"}),!0}return 2===(null==i?void 0:i.shixun_status)&&(l.Z.confirm({centered:!0,icon:(0,x.jsx)(p.Z,{}),title:"提示",content:(0,x.jsxs)("div",{children:[(0,x.jsxs)("span",{children:["该实践项目已发布,",n,"。"]}),(0,x.jsx)("br",{}),(0,x.jsx)("span",{children:"如有需要,您可以撤销发布后,再进行操作。"})]}),okText:"撤销发布",cancelText:"取消",onOk:function(){var n;l.Z.confirm({width:440,centered:!0,icon:(0,x.jsx)(p.Z,{style:{color:"#faad14"}}),title:"提示",content:"撤销发布后,学员将无法进行练习。是否确认撤销发布?",okText:"确定撤销发布",cancelText:"取消",onOk:(n=s()(a()().mark((function n(){return a()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e({type:"shixunsDetail/cancelRelease",payload:{id:null==i?void 0:i.identifier}});case 2:401!==n.sent.status&&(d.ZP.success("撤销发布成功。实训回到未发布的状态。"),e({type:"shixunsDetail/getShixunsDetail",payload:{id:null==i?void 0:i.identifier}}),e({type:"practiceSetting/getCommonData",payload:{id:null==i?void 0:i.identifier}}));case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})}}),!0)}},10228: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"}},28103:function(e,n,t){"use strict";t.d(n,{Z:function(){return p}});var i=t(92310),a=t.n(i),o=t(59301),s=t(36355),r=t(17313),l=t(83116),c=t(37613);const d=e=>{const{componentCls:n,sizePaddingEdgeHorizontal:t,colorSplit:i,lineWidth:a,textPaddingInline:o,orientationMargin:s,verticalMarginInline:l}=e;return{[n]:Object.assign(Object.assign({},(0,r.Wf)(e)),{borderBlockStart:`${a}px solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${a}px solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${n}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${a}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${n}-with-text-left`]:{"&::before":{width:100*s+"%"},"&::after":{width:100-100*s+"%"}},[`&-horizontal${n}-with-text-right`]:{"&::before":{width:100-100*s+"%"},"&::after":{width:100*s+"%"}},[`${n}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${a}px 0 0`},[`&-horizontal${n}-with-text${n}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${n}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${n}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${n}-with-text-left${n}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${n}-inner-text`]:{paddingInlineStart:t}},[`&-horizontal${n}-with-text-right${n}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${n}-inner-text`]:{paddingInlineEnd:t}}})}};var u=(0,l.Z)("Divider",(e=>{const n=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(n)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),m=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(t[i[a]]=e[i[a]])}return t};var p=e=>{const{getPrefixCls:n,direction:t,divider:i}=o.useContext(s.E_),{prefixCls:r,type:l="horizontal",orientation:c="center",orientationMargin:d,className:p,rootClassName:h,children:f,dashed:g,plain:x,style:v}=e,y=m(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),w=n("divider",r),[b,j]=u(w),k=c.length>0?`-${c}`:c,_=!!f,A="left"===c&&null!=d,C="right"===c&&null!=d,S=a()(w,null==i?void 0:i.className,j,`${w}-${l}`,{[`${w}-with-text`]:_,[`${w}-with-text${k}`]:_,[`${w}-dashed`]:!!g,[`${w}-plain`]:!!x,[`${w}-rtl`]:"rtl"===t,[`${w}-no-default-orientation-margin-left`]:A,[`${w}-no-default-orientation-margin-right`]:C},p,h),N=o.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),T=Object.assign(Object.assign({},A&&{marginLeft:N}),C&&{marginRight:N});return b(o.createElement("div",Object.assign({className:S,style:Object.assign(Object.assign({},null==i?void 0:i.style),v)},y,{role:"separator"}),f&&"vertical"!==l&&o.createElement("span",{className:`${w}-inner-text`,style:T},f)))}},43428:function(e,n,t){"use strict";t.d(n,{Z:function(){return G}});var i=t(92310),a=t.n(i),o=t(57259),s=t(29043),r=t(43403),l=t(19171),c=t(59301),d=c.createContext(null),u=c.createContext({}),m=d,p=t(80962),h=t(5891),f=t(43167),g=t(20287),x=t(47413),v=t(83794);var y=function(e){var n=e.prefixCls,t=e.className,i=e.style,s=e.children,r=e.containerRef,l=e.id,d={onMouseEnter:e.onMouseEnter,onMouseOver:e.onMouseOver,onMouseLeave:e.onMouseLeave,onClick:e.onClick,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp},m=c.useContext(u).panel,p=(0,v.useComposeRef)(m,r);return c.createElement(c.Fragment,null,c.createElement("div",(0,h.Z)({id:l,className:a()("".concat(n,"-content"),t),style:(0,o.Z)({},i),"aria-modal":"true",role:"dialog",ref:p},d),s))},w=t(85870);function b(e){return"string"==typeof e&&String(Number(e))===e?((0,w.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var j={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function k(e,n){var t,i,r,l,d=e.prefixCls,u=e.open,v=e.placement,w=e.inline,k=e.push,_=e.forceRender,A=e.autoFocus,C=e.keyboard,S=e.rootClassName,N=e.rootStyle,T=e.zIndex,Z=e.className,L=e.id,B=e.style,P=e.motion,I=e.width,E=e.height,M=e.children,D=e.contentWrapperStyle,O=e.mask,z=e.maskClosable,R=e.maskMotion,G=e.maskClassName,F=e.maskStyle,H=e.afterOpenChange,V=e.onClose,W=e.onMouseEnter,Y=e.onMouseOver,K=e.onMouseLeave,U=e.onClick,q=e.onKeyDown,J=e.onKeyUp,Q=c.useRef(),X=c.useRef(),$=c.useRef();c.useImperativeHandle(n,(function(){return Q.current}));c.useEffect((function(){var e;u&&A&&(null===(e=Q.current)||void 0===e||e.focus({preventScroll:!0}))}),[u]);var ee=c.useState(!1),ne=(0,s.Z)(ee,2),te=ne[0],ie=ne[1],ae=c.useContext(m),oe=null!==(t=null!==(i=null===(r=!1===k?{distance:0}:!0===k?{}:k||{})||void 0===r?void 0:r.distance)&&void 0!==i?i:null==ae?void 0:ae.pushDistance)&&void 0!==t?t:180,se=c.useMemo((function(){return{pushDistance:oe,push:function(){ie(!0)},pull:function(){ie(!1)}}}),[oe]);c.useEffect((function(){var e,n;u?null==ae||null===(e=ae.push)||void 0===e||e.call(ae):null==ae||null===(n=ae.pull)||void 0===n||n.call(ae)}),[u]),c.useEffect((function(){return function(){var e;null==ae||null===(e=ae.pull)||void 0===e||e.call(ae)}}),[]);var re=O&&c.createElement(f.default,(0,h.Z)({key:"mask"},R,{visible:u}),(function(e,n){var t=e.className,i=e.style;return c.createElement("div",{className:a()("".concat(d,"-mask"),t,G),style:(0,o.Z)((0,o.Z)({},i),F),onClick:z&&u?V:void 0,ref:n})})),le="function"==typeof P?P(v):P,ce={};if(te&&oe)switch(v){case"top":ce.transform="translateY(".concat(oe,"px)");break;case"bottom":ce.transform="translateY(".concat(-oe,"px)");break;case"left":ce.transform="translateX(".concat(oe,"px)");break;default:ce.transform="translateX(".concat(-oe,"px)")}"left"===v||"right"===v?ce.width=b(I):ce.height=b(E);var de={onMouseEnter:W,onMouseOver:Y,onMouseLeave:K,onClick:U,onKeyDown:q,onKeyUp:J},ue=c.createElement(f.default,(0,h.Z)({key:"panel"},le,{visible:u,forceRender:_,onVisibleChanged:function(e){null==H||H(e)},removeOnLeave:!1,leavedClassName:"".concat(d,"-content-wrapper-hidden")}),(function(n,t){var i=n.className,s=n.style;return c.createElement("div",(0,h.Z)({className:a()("".concat(d,"-content-wrapper"),i),style:(0,o.Z)((0,o.Z)((0,o.Z)({},ce),s),D)},(0,x.Z)(e,{data:!0})),c.createElement(y,(0,h.Z)({id:L,containerRef:t,prefixCls:d,className:Z,style:B},de),M))})),me=(0,o.Z)({},N);return T&&(me.zIndex=T),c.createElement(m.Provider,{value:se},c.createElement("div",{className:a()(d,"".concat(d,"-").concat(v),S,(l={},(0,p.Z)(l,"".concat(d,"-open"),u),(0,p.Z)(l,"".concat(d,"-inline"),w),l)),style:me,tabIndex:-1,ref:Q,onKeyDown:function(e){var n=e.keyCode,t=e.shiftKey;switch(n){case g.Z.TAB:var i;if(n===g.Z.TAB)if(t||document.activeElement!==$.current){if(t&&document.activeElement===X.current){var a;null===(a=$.current)||void 0===a||a.focus({preventScroll:!0})}}else null===(i=X.current)||void 0===i||i.focus({preventScroll:!0});break;case g.Z.ESC:V&&C&&(e.stopPropagation(),V(e))}}},re,c.createElement("div",{tabIndex:0,ref:X,style:j,"aria-hidden":"true","data-sentinel":"start"}),ue,c.createElement("div",{tabIndex:0,ref:$,style:j,"aria-hidden":"true","data-sentinel":"end"})))}var _=c.forwardRef(k);var A=function(e){var n=e.open,t=void 0!==n&&n,i=e.prefixCls,a=void 0===i?"rc-drawer":i,d=e.placement,m=void 0===d?"right":d,p=e.autoFocus,h=void 0===p||p,f=e.keyboard,g=void 0===f||f,x=e.width,v=void 0===x?378:x,y=e.mask,w=void 0===y||y,b=e.maskClosable,j=void 0===b||b,k=e.getContainer,A=e.forceRender,C=e.afterOpenChange,S=e.destroyOnClose,N=e.onMouseEnter,T=e.onMouseOver,Z=e.onMouseLeave,L=e.onClick,B=e.onKeyDown,P=e.onKeyUp,I=e.panelRef,E=c.useState(!1),M=(0,s.Z)(E,2),D=M[0],O=M[1];var z=c.useState(!1),R=(0,s.Z)(z,2),G=R[0],F=R[1];(0,l.Z)((function(){F(!0)}),[]);var H=!!G&&t,V=c.useRef(),W=c.useRef();(0,l.Z)((function(){H&&(W.current=document.activeElement)}),[H]);var Y=c.useMemo((function(){return{panel:I}}),[I]);if(!A&&!D&&!H&&S)return null;var K={onMouseEnter:N,onMouseOver:T,onMouseLeave:Z,onClick:L,onKeyDown:B,onKeyUp:P},U=(0,o.Z)((0,o.Z)({},e),{},{open:H,prefixCls:a,placement:m,autoFocus:h,keyboard:g,width:v,mask:w,maskClosable:j,inline:!1===k,afterOpenChange:function(e){var n,t;(O(e),null==C||C(e),e||!W.current||null!==(n=V.current)&&void 0!==n&&n.contains(W.current))||(null===(t=W.current)||void 0===t||t.focus({preventScroll:!0}))},ref:V},K);return c.createElement(u.Provider,{value:Y},c.createElement(r.Z,{open:H||A||D,autoDestroy:!1,getContainer:k,autoLock:w&&(H||D)},c.createElement(_,U)))},C=t(62892),S=t(36355),N=t(32441),T=t(47729);var Z=e=>{const{prefixCls:n,title:t,footer:i,extra:o,closeIcon:s,closable:r,onClose:l,headerStyle:d,drawerStyle:u,bodyStyle:m,footerStyle:p,children:h}=e,f=c.useCallback((e=>c.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${n}-close`},e)),[l]),[g,x]=(0,T.Z)(r,s,f,void 0,!0),v=c.useMemo((()=>t||g?c.createElement("div",{style:d,className:a()(`${n}-header`,{[`${n}-header-close-only`]:g&&!t&&!o})},c.createElement("div",{className:`${n}-header-title`},x,t&&c.createElement("div",{className:`${n}-title`},t)),o&&c.createElement("div",{className:`${n}-extra`},o)):null),[g,x,o,d,n,t]),y=c.useMemo((()=>{if(!i)return null;const e=`${n}-footer`;return c.createElement("div",{className:e,style:p},i)}),[i,p,n]);return c.createElement("div",{className:`${n}-wrapper-body`,style:u},v,c.createElement("div",{className:`${n}-body`,style:m},h),y)},L=t(33234),B=t(83116),P=t(37613);var I=e=>{const{componentCls:n,motionDurationSlow:t}=e,i={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}};return{[n]:{[`${n}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${t}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${n}-panel-motion`]:{"&-left":[i,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[i,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[i,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[i,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const E=e=>{const{componentCls:n,zIndexPopup:t,colorBgMask:i,colorBgElevated:a,motionDurationSlow:o,motionDurationMid:s,padding:r,paddingLG:l,fontSizeLG:c,lineHeightLG:d,lineWidth:u,lineType:m,colorSplit:p,marginSM:h,colorIcon:f,colorIconHover:g,colorText:x,fontWeightStrong:v,footerPaddingBlock:y,footerPaddingInline:w}=e,b=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:t,pointerEvents:"none","&-pure":{position:"relative",background:a,[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:t,background:i,pointerEvents:"auto"},[b]:{position:"absolute",zIndex:t,maxWidth:"100vw",transition:`all ${o}`,"&-hidden":{display:"none"}},[`&-left > ${b}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${b}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${b}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${b}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"},[`${n}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${r}px ${l}px`,fontSize:c,lineHeight:d,borderBottom:`${u}px ${m} ${p}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:{display:"inline-block",marginInlineEnd:h,color:f,fontWeight:v,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${s}`,textRendering:"auto","&:focus, &:hover":{color:g,textDecoration:"none"}},[`${n}-title`]:{flex:1,margin:0,color:x,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:d},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:l,overflow:"auto"},[`${n}-footer`]:{flexShrink:0,padding:`${y}px ${w}px`,borderTop:`${u}px ${m} ${p}`},"&-rtl":{direction:"rtl"}}}};var M=(0,B.Z)("Drawer",(e=>{const n=(0,P.TS)(e,{});return[E(n),I(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}))),D=t(11575),O=function(e,n){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(t[i[a]]=e[i[a]])}return t};const z={distance:180},R=e=>{const{rootClassName:n,width:t,height:i,size:o="default",mask:s=!0,push:r=z,open:l,afterOpenChange:d,onClose:u,prefixCls:m,getContainer:p,style:h,className:f,visible:g,afterVisibleChange:x}=e,v=O(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:y,getPrefixCls:w,direction:b,drawer:j}=c.useContext(S.E_),k=w("drawer",m),[_,T]=M(k),B=void 0===p&&y?()=>y(document.body):p,P=a()({"no-mask":!s,[`${k}-rtl`]:"rtl"===b},n,T);const I=c.useMemo((()=>null!=t?t:"large"===o?736:378),[t,o]),E=c.useMemo((()=>null!=i?i:"large"===o?736:378),[i,o]),R={motionName:(0,C.m)(k,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},G=(0,D.H)();return _(c.createElement(L.BR,null,c.createElement(N.Ux,{status:!0,override:!0},c.createElement(A,Object.assign({prefixCls:k,onClose:u,maskMotion:R,motion:e=>({motionName:(0,C.m)(k,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},v,{open:null!=l?l:g,mask:s,push:r,width:I,height:E,style:Object.assign(Object.assign({},null==j?void 0:j.style),h),className:a()(null==j?void 0:j.className,f),rootClassName:P,getContainer:B,afterOpenChange:null!=d?d:x,panelRef:G}),c.createElement(Z,Object.assign({prefixCls:k},v,{onClose:u}))))))};R._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:n,style:t,className:i,placement:o="right"}=e,s=O(e,["prefixCls","style","className","placement"]),{getPrefixCls:r}=c.useContext(S.E_),l=r("drawer",n),[d,u]=M(l),m=a()(l,`${l}-pure`,`${l}-${o}`,u,i);return d(c.createElement("div",{className:m,style:t},c.createElement(Z,Object.assign({prefixCls:l},s))))};var G=R},32637:function(e,n,t){"use strict";e.exports=t.p+"static/AssistantCode3.a8740efb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