|
|
(self.webpackChunk=self.webpackChunk||[]).push([[7852,43428,4977,98772],{3148:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(33614),a=n(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=n(1393),r=function(e,t){return a.createElement(s.Z,(0,i.Z)({},e,{ref:t,icon:o}))};var l=a.forwardRef(r)},65547:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(33614),a=n(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=n(1393),r=function(e,t){return a.createElement(s.Z,(0,i.Z)({},e,{ref:t,icon:o}))};var l=a.forwardRef(r)},38229:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},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":t=u.toFixed(1);break;case"string":u.match(new RegExp("^[0-9]\\.[0-9]+$"))?t=u:s=u;break;case"object":void 0!==u.is3D?i=u:n=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===n.material_id||o||(a=!0)),null!==s&&void 0===n.id&&(n.id=s);var m="",p=!1,h=null,f=null,g=null,x=!1,v=null,y=null,w=null;void 0!==n.height&&(n.height=Math.round(n.height)),void 0!==n.width&&(n.width=Math.round(n.width));var b=function(e){return parseFloat(e)>4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function j(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,D(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(l=e,M(e,t))},e.getHTML5CodebaseVersion=function(){return f},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){w=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,a="auto",o=n.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=E(a);var l=i||document.getElementById(o);if(l)if(e.removeExistingApplet(l,!1),void 0===n.width&&l.clientWidth&&(n.width=l.clientWidth),void 0===n.height&&l.clientHeight&&(n.height=l.clientHeight),n.width&&n.height||"html5"!==a||(delete n.width,delete n.height),h=a,"screenshot"===a)Z(l,n);else{var c=!1;n.hasOwnProperty("playButton")&&n.playButton||n.hasOwnProperty("clickToLoad")&&n.clickToLoad?c=!0:n.hasOwnProperty("playButtonAutoDecide")&&n.playButtonAutoDecide&&(c=(!_()||t())&&j()),c?(h="screenshot",A(l,n,s,a)):T(l,n,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 k=function(t){var a=function(){n.onError&&n.onError(),O("Error: Fetching material (id "+n.material_id+") failed.",n)},o=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",s="/materials/"+n.material_id+"?scope=basic";S("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){n.fileName=r.url,C(r.settings||{}),i.is3D=!0;var l="https://www.geogebra.org/images/";e.setPreviewImage(v||r.previewUrl,l+"GeoGebra_loading.png",l+"applet_play.png"),t()}else a()}),a)};function C(e){["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach((function(t){e[t]=!!e[t]})),["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"].forEach((function(t){void 0===n[t]&&void 0!==e[t]&&(n[t]=e[t])})),void 0===n.showToolBarHelp&&(n.showToolBarHelp=n.showToolBar)}function S(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.onload=function(){t(i.responseText)},i.onerror=n,i.send()}e.isHTML5Installed=function(){return!0},e.getLoadedAppletType=function(){return h},e.setPreviewImage=function(e,t,n){v=e,y=t,n},e.removeExistingApplet=function(e,t){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?t?(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!==n.id?n.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 t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var N=function(e){return e&&"false"!==e},T=function(t,n,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=n.width,r=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(b(f)<=4.4)N(n.showToolBar)&&(n.height-=7),N(n.showAlgebraInput)&&(n.height-=37),n.width<605&&N(n.showToolBar)&&(n.width=605,s=605);else{var d=100;(N(n.showToolBar)||N(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),d=N(n.showMenuBar)?245:155),s<d&&(n.width=d,s=d)}for(var u in o.style.border="none",o.style.display="inline-block",n)n.hasOwnProperty(u)&&"appletOnLoad"!==u&&o.setAttribute("data-param-"+u,n[u]);w&&o.setAttribute("data-param-fontscssurl",w),e.resize=function(){GGBAppletUtils.responsiveResize(t,n)},window.addEventListener("resize",(function(t){e.resize()}));var p="function"==typeof n.appletOnLoad?n.appletOnLoad:function(){};if(i||void 0===n.width){var h=document.createElement("div");h.className="applet_scaler",h.style.position="relative",h.style.display="block",h.appendChild(o),t.appendChild(h),n.appletOnLoad=function(t){e.resize(),p(t)}}else{n.hasOwnProperty("showSplash")||o.setAttribute("data-param-showSplash","false");var v=t.querySelector(".applet_scaler.prerender"),y=null!==v;if(y)_=v.querySelector(".ggb_preview");else{var _=B(s,r,n.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?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},y||v.appendChild(_)):o.appendChild(_),v.appendChild(o),y||t.appendChild(v),setTimeout((function(){e.resize()}),1)}function j(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),O("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function k(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){j(e.article,e.params)})),html5AppletsToProcess=null)},b(f)<5&&(e.className+=" geogebraweb")):j(e,t)}if(a){scriptLoadStarted=!0;for(var C=0;C<o.childNodes.length;C++){"TABLE"===o.childNodes[C].tagName&&(o.removeChild(o.childNodes[C]),C--)}if(null!==ggbHTML5LoadedScript){var S=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=S&&S.parentNode.removeChild(S)}var T=document.createElement("script"),Z=function(){k(o,n)};T.src=m+g,ggbHTML5LoadedCodebaseIsWebSimple=x,ggbHTML5LoadedCodebaseVersion=f,ggbHTML5LoadedScript=T.src,O("GeoGebra HTML5 codebase loaded: '"+m+"'.",n),c||l&&"5.0"!=l?m.requirejs?__webpack_require__.e(43547).then(function(){var e=[__webpack_require__(43547)];Z.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(T.onload=Z,t.appendChild(T)):(x?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Z())}else k(o,n);n.height=r,n.width=s},Z=function(t,n,i){var a=B(n.width,n.height,n.borderColor,i),o=document.createElement("div");o.style.position="relative",o.style.display="block",o.style.width=n.width+"px",o.style.height=n.height+"px",o.className="applet_screenshot applet_scaler"+(i?" applet_screenshot_play":""),o.appendChild(a);var s=GGBAppletUtils.getScale(n,t,i);i?(t.appendChild(P()),window.GGBT_wsf_view||(t.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(o,"66%"),t.appendChild(o),1===s||isNaN(s)||(GGBAppletUtils.scaleElement(o,s),o.style.width=n.width+"px",o.style.height=n.height+"px",o.parentNode.style.width=n.width*s+"px",o.parentNode.style.height=n.height*s+"px"),e.resize=function(){L(t,a,o,i)},window.addEventListener("resize",(function(t){e.resize()})),e.resize()};function L(e,t,i,a){if(e.contains(t)){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(n,e,a);null!==i.parentNode&&(isNaN(o)||1===o?(GGBAppletUtils.scaleElement(i,1),i.parentNode.style.width=n.width+"px",i.parentNode.style.height=n.height+"px"):(GGBAppletUtils.scaleElement(i,o),i.parentNode.style.width=n.width*o+"px",i.parentNode.style.height=n.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,t){t.appendChild(e)};var A=function(e,t,n,i){Z(e,t,!0);for(var a=function(){var n=[];for(s=0;s<e.childNodes.length;s++)n.push(e.childNodes[s]);if(window.GGBT_wsf_view){var a=window.GGBT_wsf_view.renderFullScreen(e,t.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"))):T(a,t,!1),window.GGBT_wsf_view.launchFullScreen(o)}else h=i,T(e,t,!1);if(!window.GGBT_wsf_view)for(s=0;s<n.length;s++)e.removeChild(n[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),j()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},P=function(){var e=document.createElement("div");if(e.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var t='.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");}',n=document.createElement("style");n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t)),document.getElementsByTagName("head")[0].appendChild(n)}return e},B=function(e,t,n,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=t-2+"px",a.style.top="0px",a.style.left="0px",a.style.overflow="hidden",a.style.backgroundColor="white";var o="lightgrey";void 0!==n&&(o="none"===n?"transparent":n),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=(t-l)/2;s.style.left=d+"px",s.style.top=u+"px",a.appendChild(s)}return a.appendChild(c),a},E=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},I=["web","webSimple","web3d","tablet","tablet3d","phone"],M=function(e,t){if(f=e,t)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/",I)if(f.slice(-1*I[d].length)===I[d]||f.slice(-1*(I[d].length+1))===I[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||N(n.showToolBar)||N(n.showMenuBar)||N(n.showAlgebraInput)||N(n.enableRightClick)||n.appName&&"classic"!=n.appName?s+="web3d/":s+="webSimple/",D(s,!1)}},D=function(e,t){if(e.requirejs)m=e;else{"/"!==e.slice(-1)&&(e+="/"),m=e,null===t&&(t=-1===e.indexOf("http")),p=t,g="web.nocache.js",x=!1;var n=m.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?I.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",x=!0)),n=e.split("/"),"test"===(f=n[n.length-3]).substr(0,4)?f=f.substr(4,1)+"."+f.substr(5,1):"war"!==f.substr(0,3)&&"beta"!==f.substr(0,4)||(f="5.0");var 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",t))}},O=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),M(e,!1),null!==c&&D(c,p),r=!0}return void 0!==n.material_id?k(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,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,t,n,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===n||!n)&&t>0&&t+u<l?l=t:l-=u,"object"!==_typeof(window.GGBT_wsf_view)||!window.GGBT_wsf_view.isFullscreen()||void 0!==n&&n||(c-=h)),{width:l,height:c}}(t,e.width,n,l,s&&window.GGBT_wsf_view||r,a),d=parseInt(c.width),u=e.width,m=e.height;if(void 0===u){var p=t.querySelector(".appletParameters");p&&(u=p.offsetWidth,m=p.offsetHeight)}var h=d/u,f=s?1:c.height/m;return void 0===n||n||(h=Math.min(1,h),f=Math.min(1,f)),Math.min(h,f)}function i(e,t,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)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(s=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?o:(a=n(e,t,s,i,e.scaleContainerClass),!s||e.hasOwnProperty("scale")&&1!==o?Math.min(o,a):a)}function a(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),a=(t-i.width)/2,o=(n-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(n,o){var s=n.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(n)}if(s.parentElement&&/fullscreen/.test(s.parentElement.className))return;var r=i(o,n);e()&&s.setAttribute("data-param-scale",r);for(var l=null,c=0;c<n.childNodes.length;c++)if(void 0!==n.childNodes[c].className&&n.childNodes[c].className.match(/^applet_scaler/)){l=n.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?(t(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",t(l,r))),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&a(n),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:t}}();__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,t){}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 t(){return _typeof(o.readyState)==Y?_typeof(o.body)!=Y&&null!=o.body:/loaded|complete/.test(o.readyState)}var n=t();if(n)e();else{o.addEventListener&&o.addEventListener(Z,a,!1);var i=setInterval((function(){a()}),$)}function a(){if(!n){if(!t())return;n=!0,e(),o.removeEventListener&&o.removeEventListener(Z,a,!1),i&&clearInterval(i)}}}((function(){var t,n,i,a;t=e,n=u(),i=n.body,(a=n.createElement(_)).language=ab,a.crossOrigin=W,a.src=t,webModule.__errFn&&(a.onerror=function(){webModule.__errFn(L,new Error(bb+t))}),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 t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;n<t.length;++n)if(-1!=t[n].src.indexOf(xb))return e(t[n].src);return W}()),n==W&&(n=function(){var e=o.getElementsByTagName(yb);return e.length>O?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],a=[];function o(e){var t=a[e](),n=i[e];if(t in n)return t;var o=[];for(var s in n)o[n[s]]=s;throw r&&r(e,o,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=o(t));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 t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],a=O;a<i.length;a++){var o=i[a];n[o[O]]=o[P]}return n}},webModule.__startLoadingFragment=function(e){return C(e)},webModule.__installRunAsyncCode=function(e){var t=u(),n=t.body,i=t.createElement(_);i.language=ab,i.text=e,n.appendChild(i),n.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")})()},44177:function(e,t,n){"use strict";function i(e){var t=!0;if(e.length>0){for(var n=0;n<e.length;n++)if(0==e[n].compile_success||!e[n].compile_success){t=!1;break}}else t=!1;return t}function a(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i<e.length;i++){var a=e[i],o=t?"".concat(t,"/").concat(a.name):"".concat(a.name);n.push({title:a.name,type:a.type,isLeaf:"tree"!==a.type,key:o})}return n}function o(e,t,n){for(var i=0;i<e.length;i++){var a=e[i];if(a.key===t){a.children=n;break}a.children&&o(a.children,t,n)}return e}function s(e,t,n){var i;return function(){var a=this,o=arguments,s=function(){i=null,n||e.apply(a,o)},r=n&&!i;clearTimeout(i),i=setTimeout(s,t),r&&e.apply(a,o)}}n.d(t,{Ax:function(){return o},Ds:function(){return s},KI:function(){return r},SI:function(){return a},f1:function(){return i}});var r=n(20817).Z.API_SERVER},44618:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});n(7557),n(41498);var i=n(82100),a=n.n(i),o=n(29186),s=n.n(o),r=n(13720),l=n.n(r),c=n(80619),d=n.n(c),u=n(47074),m=n.n(u),p=n(85573),h=n.n(p),f=n(59301),g=n(8591),x=n(92832),v="codeBox___WpkVl",y=n(92310),w=n.n(y),b=n(37712),_=function(e){d()(n,e);var t=m()(n);function n(e){var i;return a()(this,n),i=t.call(this,e),h()(l()(i),"canvas",void 0),h()(l()(i),"randomNum",(function(e,t){return Math.floor(Math.random()*(t-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()(n,[{key:"componentDidMount",value:function(){this.drawPic()}},{key:"randomColor",value:function(e,t){var n=this.randomNum(e,t),i=this.randomNum(e,t),a=this.randomNum(e,t);return"rgb(".concat(n,", ").concat(i,", ").concat(a,")")}},{key:"drawText",value:function(e,t,n){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;n>0&&(o=10+n*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(t,0,0),e.rotate(-r*Math.PI/180),e.translate(-o,-s)}},{key:"drawLine",value:function(e){for(var t=0;t<1;t++)e.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),e.beginPath(),e.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.stroke()}},{key:"drawDot",value:function(e){for(var t=0;t<100;t++)e.fillStyle=this.randomColor(0,255),e.beginPath(),e.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),e.fill()}},{key:"randomCode",value:function(){for(var e=this,t="",n=0;n<this.state.codeLength;n++){t+="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890"[Math.floor(57*Math.random())]}this.setState({code:t},(function(){var t=e.canvas.current.getContext("2d");t.textBaseline="bottom",t.fillStyle=e.randomColor(e.state.backgroundColorMin,e.state.backgroundColorMax),t.fillRect(0,0,e.state.contentWidth,e.state.contentHeight);for(var n=0;n<e.state.code.length;n++)e.drawText(t,e.state.code[n],n);e.drawLine(t),e.drawDot(t)}))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.width,i=void 0===n?300:n;return(0,b.jsxs)("div",{className:w()(v,t),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:"看不清?换一张"})]})]})}}]),n}(f.Component),j=_},14720:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var i=n(7557),a=n.n(i),o=n(41498),s=n.n(o),r=n(79800),l=n.n(r),c=n(59301),d=n(78241),u=n(8591),m=n(43418),p=n(30518),h=n(92832),f=n(51945),g=n(95237),x=n(43604),v=n(61186),y=n.n(v),w=n(66621),b=n(32007),_={tips:"tips___e8J4O",homeworkType:"homeworkType___ZjN2X",antdTable:"antdTable___amDdp",modalWrapper:"modalWrapper___XPojI"},j=n(96631),k=n(94051),C=n(37712),S=(0,b.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,classroomList:e.classroomList}}))((function(e){var t=e.dispatch,n=e.courseEndTime,i=(e.classroomList,e.successCallback),o=void 0===i?function(){}:i,r=e.visible,v=e.homeworkIds,b=e.courseId,S=e.isBatch,N=(e.shixunHomeworks,d.Z.useForm()),T=l()(N,1)[0],Z=(0,c.useState)(!1),L=l()(Z,2),A=L[0],P=L[1],B=(0,c.useState)(!1),E=l()(B,2),I=E[0],M=E[1],D=(0,c.useState)(!1),O=l()(D,2),R=O[0],G=O[1],z=(0,c.useState)([]),H=l()(z,2),F=H[0],Y=H[1],V=(0,c.useState)([]),W=l()(V,2),K=W[0],U=W[1],J=(0,c.useState)([]),q=l()(J,2),Q=q[0],X=q[1],$=(0,c.useState)([]),ee=l()($,2),te=ee[0],ne=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],_e=we[1];(0,c.useEffect)((function(){r?je():Ce()}),[r]);var je=function(){var e=s()(a()().mark((function e(){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P(!0),e.next=3,(0,j.oR)(v[0],{course_id:b});case 3:t=e.sent,G(t.no_group),S?(he(t.all_course_groups),ve(t.all_course_groups)):(ne(t.late_course_groups),se(t.late_course_groups),Y(t.submit_course_groups),U(t.submit_course_groups)),P(!1),T.setFieldsValue({end_time:y()()});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ke=function(){var e=s()(a()().mark((function e(){var n,i,s;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=T.getFieldsValue(),i=y()(n.end_time).format("YYYY-MM-DD HH:mm"),!(S?0===be.length:0===Q.length&&0===ce.length)||R){e.next=6;break}return u.ZP.warning("请选择需要操作的班级"),e.abrupt("return");case 6:return M(!0),e.next=9,(0,j.Mc)(b,{no_group:R,homework_ids:v,group_ids:S?be:Q,end_time:i,late_group_ids:S?be:ce});case 9:s=e.sent,M(!1),0===s.status&&(Ce(),u.ZP.success("操作成功"),o(),t({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}));case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ce=function(){X([]),de([]),U([]),se([])};return(0,C.jsxs)(m.Z,{centered:!0,title:"立即截止",className:_.modalWrapper,width:S||R?520:760,open:r,confirmLoading:I,destroyOnClose:!0,okText:"截止",cancelText:"取消",onOk:function(){return ke()},onCancel:function(){Ce(),t({type:"classroomList/setActionTabs",payload:{}})},children:[(0,C.jsxs)("div",{className:_.tips,children:[(0,C.jsx)("div",{children:"1、截止后学生不能再提交作业。"}),(0,C.jsx)("div",{children:"2、本操作只对“提交中”、“补交中”的作业有效。"})]}),(0,C.jsx)(d.Z,{form:T,layout:"vertical",children:(0,C.jsx)(d.Z.Item,{name:"end_time",label:"截止时间",children:(0,C.jsx)(p.default,{style:{width:"100%"},disabledDate:function(e){return(0,k.Q8)(e,n)},disabledTime:function(e){return(0,k.d0)(e)},placeholder:"请选择结束时间",showTime:{format:"HH:mm",defaultValue:y()((0,w.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),!R&&(0,C.jsx)(C.Fragment,{children:S?(0,C.jsxs)("div",{children:[(0,C.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){ve(pe.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:_.antdTable,rowSelection:{type:"checkbox",onChange:function(e){_e(e)}},rowKey:"id",pagination:!1,dataSource:xe,loading:A,columns:[{title:"班级",dataIndex:"name"}]})]}):(0,C.jsxs)(g.Z,{gutter:24,children:[(0,C.jsxs)(x.Z,{span:14,children:[(0,C.jsx)("div",{className:_.homeworkType,children:"作业截止"}),(0,C.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){U(F.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,C.jsx)("div",{className:_.tableWrapper,children:(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:_.antdTable,rowSelection:{type:"checkbox",onChange:function(e){X(e)}},rowKey:"id",pagination:!1,dataSource:K,loading:A,columns:[{title:"班级",dataIndex:"name",ellipsis:!0},{title:"发布时间",dataIndex:"publish_time"},{title:"截止时间",dataIndex:"end_time"}]})})]}),(0,C.jsxs)(x.Z,{flex:10,style:{maxWidth:"280px"},children:[(0,C.jsx)("div",{className:_.homeworkType,children:"补交截止"}),(0,C.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){se(te.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,C.jsx)("div",{className:_.tableWrapper,children:(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:_.antdTable,rowSelection:{type:"checkbox",onChange:function(e){de(e)}},rowKey:"id",pagination:!1,loading:A,dataSource:oe,columns:[{title:"班级",dataIndex:"name",ellipsis:!0,width:120},{title:"截止时间",dataIndex:"late_time"}]})})]})]})})]})}))},13452:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var i=n(79800),a=n.n(i),o=n(78241),s=n(92832),r=n(3113),l=n(59301),c={search:"search___JA0r9",btn:"btn___GGtZC"},d=n(37712),u=function(e){var t=e.value,n=e.onChange,i=o.Z.useForm(),u=a()(i,1)[0],m=(0,l.useRef)(!1);(0,l.useEffect)((function(){t&&u.setFieldsValue(t)}),t);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||n(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:"搜索"})]})})}},18433:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var i=n(7557),a=n.n(i),o=n(41498),s=n.n(o),r=n(79800),l=n.n(r),c=n(59301),d="imageDimensions___a7crR",u="img___Kroat",m="fullWidth___c492T",p=n(92310),h=n.n(p),f=n(71418),g=n(2859),x=n(85750),v=n(66621),y=n(37712),w=function(e){var t=e.data,n=e.className,i=e.fullWidth,o=e.style,r=void 0===o?{}:o,p=e.onClose,w=e.onOk,b=e.showFullTools,_=e.noAssociationId,j=(0,c.useRef)(null),k=(0,c.useRef)(null),C=(0,c.useRef)(null),S=(0,c.useRef)(null),N=(0,c.useState)(!1),T=l()(N,2),Z=T[0],L=T[1],A=(0,c.useState)("正在加载中"),P=l()(A,2),B=P[0],E=P[1];(0,c.useEffect)((function(){C.current||(C.current=document.createElement("style"),document.head.appendChild(C.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),C.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&I()):(document.body.removeAttribute("data-custom"),C.current&&(document.head.removeChild(C.current),C.current=null))}),[null==t?void 0:t.visible]);var I=function(){var e=s()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(!0),E("正在加载中"),e.next=4,(0,v.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,j.current.src="",j.current.src=n,j.current.onload=function(){D()},L(!1),E("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=function(){var e=s()(a()().mark((function e(n){var i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(!0),E("正在保存中"),e.next=4,(0,x.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(i=e.sent)||!i.id||_){e.next=12;break}return e.next=8,(0,x.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==i?void 0:i.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&w(),e.next=13;break;case 12:null!=i&&i.id&&w(i);case 13:L(!1),E("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),D=function(){k.current=new g.hP(j.current),k.current.targetRoot=S.current,k.current.addEventListener("render",M),k.current.addEventListener("beforeclose",p),b&&(k.current.availableMarkerTypes=k.current.ALL_MARKER_TYPES,k.current.uiStyleSettings.redoButtonVisible=!0,k.current.uiStyleSettings.notesButtonVisible=!0,k.current.uiStyleSettings.zoomButtonVisible=!0,k.current.uiStyleSettings.zoomOutButtonVisible=!0,k.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=k.current.uiStyleSettings,k.current.show(),null!=t&&t.snapshotData&&k.current.restoreState(t.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 t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,y.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,y.jsx)(f.Z,{spinning:Z,tip:B,style:{position:"absolute"},children:(0,y.jsx)("div",{ref:S,className:h()(d,n,i?m:""),style:r,children:(0,y.jsx)("img",{className:u,ref:j})})})})}},25925:function(e,t,n){"use strict";n.d(t,{Z:function(){return I},P:function(){return B}});var i=n(37205),a=n.n(i),o=n(39647),s=n.n(o),r=n(7557),l=n.n(r),c=n(82242),d=n.n(c),u=n(41498),m=n.n(u),p=n(79800),h=n.n(p),f=n(59301),g=n(78241),x=n(43418),v=n(5112),y=n(92832),w=n(51945),b="brief___LOzpE",_="contentTitle___xkdcN",j="content___Vtri0",k="antdTable___s8T2N",C="tableCell___kN9Fw",S="antdModal___WVBk3",N="orangeColor___ryB2u",T=n(16896),Z=n(37712),L=["isImportMultipleCourse"],A=function(e){var t=e.studentNames,n=e.total;return n>3?(0,Z.jsxs)(Z.Fragment,{children:["课堂内有",(0,Z.jsx)("span",{className:N,children:null==t?void 0:t.join("、")}),"等",(0,Z.jsx)("span",{className:N,children:n}),"名学生"]}):(0,Z.jsxs)(Z.Fragment,{children:["课堂内有",(0,Z.jsx)("span",{className:N,children:null==t?void 0:t.join("、")}),["","一","两","三"][n],"名学生"]})},P=function(e){var t=e.onCancel,n=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),_=h()(b,2),k=_[0],C=_[1],T=(0,f.useMemo)((function(){return 1===(null==a?void 0:a.total_num)&&1===(null==a?void 0:a.can_copy_num)}),[a]),L=(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,Z.jsx)(Z.Fragment,{children:T?(0,Z.jsxs)(x.Z,{centered:!0,closable:!0,open:i,destroyOnClose:!0,title:"提示",className:S,width:682,confirmLoading:k,onCancel:t,onOk:m()(l()().mark((function e(){var t,i,o;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),t=y,s&&(o=d()({},c.getFieldsValue()),t=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,n(t);case 5:C(!1);case 6:case"end":return e.stop()}}),e)}))),children:[(0,Z.jsx)("div",{className:j,style:{marginBottom:20},children:s?"检测到以下课堂已在教学课堂中使用,请问是否复制成新的实训发送至教学课堂中?":(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(A,{studentNames:null==a?void 0:a.student_names,total:null==a?void 0:a.student_count}),"学习过该实践项目。该项目支持复制,请选择是否将该项目复制为新项目发送至课堂中?"]})}),s?(0,Z.jsx)(g.Z,{form:c,preserve:!1,children:null==L?void 0:L.map((function(e){return(0,Z.jsxs)(f.Fragment,{children:[(0,Z.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,Z.jsx)(g.Z.Item,{name:e.id,initialValue:1,children:(0,Z.jsxs)(v.ZP.Group,{className:j,children:[(0,Z.jsx)(v.ZP,{value:1,style:{color:"#464f66"},children:"复制实训"}),(0,Z.jsx)(v.ZP,{value:0,style:{color:"#464f66"},children:"不复制实训"})]})})]},e.id)}))}):(0,Z.jsxs)(v.ZP.Group,{value:y,onChange:function(e){return w(e.target.value)},className:j,style:{marginBottom:30},children:[(0,Z.jsx)(v.ZP,{value:1,style:{color:"#464f66"},children:"复制"}),(0,Z.jsx)(v.ZP,{value:0,style:{color:"#464f66"},children:"不复制"})]}),(0,Z.jsxs)("div",{children:[(0,Z.jsx)("div",{className:j,style:{marginBottom:10},children:"* 说明:"}),(0,Z.jsx)("div",{className:j,style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,Z.jsx)("div",{className:"".concat(j," ").concat(N),children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]})]}):(0,Z.jsx)(x.Z,{centered:!0,closable:!0,destroyOnClose:!0,open:i,confirmLoading:k,title:"提示",width:682,onCancel:t,onOk:m()(l()().mark((function e(){var t,i,o;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),t=0,s&&(o=d()({},c.getFieldsValue()),t=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,n(t);case 5:C(!1);case 6:case"end":return e.stop()}}),e)}))),children:(0,Z.jsxs)("div",{className:j,children:[(0,Z.jsx)(A,{studentNames:null==a?void 0:a.student_names,total:null==a?void 0:a.student_count}),"学习过该实践项目。",s?(0,Z.jsxs)(g.Z,{form:c,preserve:!1,children:[(0,Z.jsx)("h3",{children:"当前实训不可复制,已经检测到以下课堂存在该实训,同一实训在课堂中重复使用时,会导致成绩互相影响,请确认是否继续使用"}),null==L?void 0:L.map((function(e){return(0,Z.jsxs)(f.Fragment,{children:[(0,Z.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,Z.jsx)(g.Z.Item,{name:e.id,initialValue:1,children:(0,Z.jsxs)(v.ZP.Group,{className:j,children:[(0,Z.jsx)(v.ZP,{value:1,style:{color:"#464f66"},children:"继续使用"}),(0,Z.jsx)(v.ZP,{value:0,style:{color:"#464f66"},children:"不使用"})]})})]},e.id)}))]}):(0,Z.jsxs)("div",{children:["该项目不支持复制,若确认继续发送,",(0,Z.jsx)("span",{className:N,children:"当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"}),"(如果不想清空学生之前的挑战记录,建议参照该实践项目的内容自行创建一个新的项目,或者尝试联系项目创建人开放本项目的复制权限)。"]})]})})})},B=function(){var e=(0,f.useState)(!1),t=h()(e,2),n=t[0],i=t[1],a=(0,f.useState)(),o=h()(a,2),r=o[0],c=o[1],d=function(){var e=m()(l()().mark((function e(t){var n,a,o,r,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.isImportMultipleCourse,a=void 0!==n&&n,o=s()(t,L),console.log(t),e.t0=null==t?void 0:t.result,e.t0){e.next=7;break}return e.next=6,(0,T.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(t){return e.apply(this,arguments)}}();return[n,function(){return i(!1)},r,d]},E=function(e){var t=g.Z.useForm(),n=h()(t,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,j=void 0!==p&&p,T=e.renderData,L=e.type,P=e.isMultipleCourse,B=void 0!==P&&P,E=e.position,I=(0,f.useMemo)((function(){return j?[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:C,render:function(e,t){return(0,Z.jsx)("a",{href:"/shixuns/".concat(t.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,t){return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(g.Z.Item,{name:["".concat("subject"===L?t.stage_shixun_id:t.shixun_course_id||t.id),"is_copy"],initialValue:1,children:(0,Z.jsxs)(v.ZP.Group,{children:[(0,Z.jsx)(v.ZP,{value:1,children:"是"}),(0,Z.jsx)(v.ZP,{value:0,children:"否"})]})}),(0,Z.jsx)(g.Z.Item,{name:["".concat("subject"===L?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_use"],hidden:!0,initialValue:1,children:(0,Z.jsx)(y.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:C,render:function(e,t){return(0,Z.jsx)("a",{href:"/shixuns/".concat(t.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,t){return(0,Z.jsx)(g.Z.Item,{name:["".concat("subject"===L?t.stage_shixun_id:t.shixun_course_id||t.id),"is_use"],initialValue:1,children:(0,Z.jsxs)(v.ZP.Group,{children:[(0,Z.jsx)(v.ZP,{value:1,children:"是"}),(0,Z.jsx)(v.ZP,{value:0,children:"否"})]})})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,t){return(0,Z.jsx)(g.Z.Item,{name:["".concat("subject"===L?t.stage_shixun_id:t.shixun_course_id||t.id),"is_copy"],initialValue:1,children:(0,Z.jsxs)(v.ZP.Group,{children:[(0,Z.jsx)(v.ZP,{value:1,children:"是"}),(0,Z.jsx)(v.ZP,{value:0,children:"否"})]})})}}]}),[j]),M=(0,f.useMemo)((function(){return j?[{title:"实践项目名称",dataIndex:"name",width:424,className:C,align:"center",ellipsis:!0,render:function(e,t){return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)("a",{href:"/shixuns/".concat(t.identifier,"/challenges"),target:"_blank",children:e}),(0,Z.jsx)(g.Z.Item,{name:["".concat("subject"===L?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_copy"],hidden:!0,initialValue:0,children:(0,Z.jsx)(y.Z,{type:"hidden"})}),(0,Z.jsx)(g.Z.Item,{name:["".concat("subject"===L?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_use"],hidden:!0,initialValue:1,children:(0,Z.jsx)(y.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,className:C,ellipsis:!0,align:"center",render:function(e,t){return(0,Z.jsx)("a",{href:"/shixuns/".concat(t.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,t){return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(g.Z.Item,{name:["".concat("subject"===L?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_use"],initialValue:0,children:(0,Z.jsxs)(v.ZP.Group,{children:[(0,Z.jsx)(v.ZP,{value:1,children:"是"}),(0,Z.jsx)(v.ZP,{value:0,children:"否"})]})}),(0,Z.jsx)(g.Z.Item,{name:["".concat("subject"===L?null==t?void 0:t.stage_shixun_id:t.shixun_course_id||t.id),"is_copy"],hidden:!0,initialValue:0,children:(0,Z.jsx)(y.Z,{type:"hidden"})})]})}}]}),[j]);if(B){var D={title:"课堂名称",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:C,render:function(e,t){return(0,Z.jsx)("a",{href:"/classrooms/".concat(t.course_id),children:e})}};I=[D].concat(a()(I)),M=[D].concat(a()(M))}var O=(0,f.useMemo)((function(){return function(e){var t=e.used,n=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,Z.jsxs)("span",{children:[(0,Z.jsx)(A,{studentNames:a,total:o}),"学习过",d,"中的",(0,Z.jsx)("span",{className:N,children:t}),"个项目,",n>0&&i>0?(0,Z.jsxs)(Z.Fragment,{children:["其中",(0,Z.jsx)("span",{className:N,children:n}),"个项目支持复制,",(0,Z.jsx)("span",{className:N,children:i}),"个项目不支持复制"]}):n>0&&0===i?(0,Z.jsxs)(Z.Fragment,{children:["其中",(0,Z.jsx)("span",{className:N,children:n}),"个项目支持复制"]}):0===n&&i>0?(0,Z.jsxs)(Z.Fragment,{children:["其中",(0,Z.jsx)("span",{className:N,children:i}),"个项目不支持复制"]}):void 0,"。请选择",l?"":"是否继续使用和","是否复制为新项目发送至课堂中?"]})}({used:null==T?void 0:T.repeat_shixun_num,copy:null==T?void 0:T.can_copy_num,canNotCopy:null==T?void 0:T.no_copy_num,studentNames:null==T?void 0:T.student_names,studentCount:null==T?void 0:T.student_count,is_random:null==T?void 0:T.is_random,inPaper:j,position:E})}),[T,j,E]);return(0,Z.jsx)(x.Z,{title:"提示",centered:!0,open:u,confirmLoading:s,onOk:m()(l()().mark((function e(){var t,i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),t=n.getFieldsValue(),i=Object.keys(t).map((function(e){return{id:parseInt(e.split("_")[0]),course_id:parseInt(e.split("_")[1]),is_use:t[e].is_use,is_copy:t[e].is_copy}})),e.next=5,d(i);case 5:r(!1);case 6:case"end":return e.stop()}}),e)}))),onCancel:c,width:880,okText:"确认",className:S,destroyOnClose:!0,children:(0,Z.jsxs)(g.Z,{form:n,preserve:!1,children:[(0,Z.jsx)("div",{className:b,children:O}),(0,Z.jsxs)("div",{style:{marginBottom:30},children:[(0,Z.jsx)("div",{style:{marginBottom:20},children:"* 说明"}),(0,Z.jsx)("div",{style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,Z.jsx)("div",{className:N,children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]}),(null==T?void 0:T.can_copy_num)>0&&(0,Z.jsxs)("div",{children:[(0,Z.jsx)("div",{className:_,children:"支持复制的项目"}),(0,Z.jsx)(w.Z,{columns:I,className:k,dataSource:null==T?void 0:T.can_copy_list,rowKey:"subject"===L?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})]}),(null==T?void 0:T.no_copy_num)>0&&(0,Z.jsxs)("div",{children:[(0,Z.jsx)("div",{className:_,children:"不支持复制的项目"}),(0,Z.jsx)(w.Z,{columns:M,className:k,dataSource:null==T?void 0:T.no_copy_list,rowKey:"subject"===L?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})]}),(null==T?void 0:T.no_use_list.length)>0&&(null==T?void 0:T.no_use_list.map((function(e){return(0,Z.jsxs)("div",{children:[(0,Z.jsx)(g.Z.Item,{name:["".concat("subject"===L?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],hidden:!0,initialValue:0,children:(0,Z.jsx)(y.Z,{type:"hidden"})}),(0,Z.jsx)(g.Z.Item,{name:["".concat("subject"===L?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],hidden:!0,initialValue:1,children:(0,Z.jsx)(y.Z,{type:"hidden"})})]},"subject"===L?e.stage_shixun_id:e.shixun_course_id||e.id)})))]})})},I=function(e){return"multiple"===e.modalType?(0,Z.jsx)(E,d()({},e)):(0,Z.jsx)(P,d()({},e))}},99238:function(e,t,n){"use strict";n(59301);var i=n(6848),a=n(37712);t.Z=function(e){var t=e.value,n=e.visible,o=void 0===n||n,s=e.children;return(0,a.jsx)(a.Fragment,{children:o?(0,a.jsx)(i.Z,{placement:"topLeft",title:{"未发布":"作业尚未发布","未开始":"作业已发布,尚未到达开始作业时间","提交中":"作业进行中,所有考生可提交作业","补交中":"作业进行中,所有学生可补交作业","进行中":"作业进行中,部分班级正在作业提交中/补交中","已截止":"到达作业截止时间,作业已结束","已结束":"课堂已结束"}[t],children:(0,a.jsx)("span",{children:s})}):s})}},4469:function(e,t,n){"use strict";n.d(t,{h:function(){return x}});var i=n(82242),a=n.n(i),o=n(79800),s=n.n(o),r=n(59301),l=n(57809),c=n(78241),d=n(3113),u=n(89780),m=n.n(u),p=(n(24147),n(74794),n(37712)),h=l.default.Option,f={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function x(e){var t=e.value,n=e.onChange,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 t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,r.useEffect)((function(){h&&h.setOption("mode",i)}),[h,i]),(0,r.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(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})})}t.Z=function(e){var t=e.callback,n=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){t(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:n,children:"取消"})]})]}))}},95992:function(e,t,n){"use strict";n.d(t,{Z:function(){return be}});var i=n(91232),a=n.n(i),o=n(79800),s=n.n(o),r=n(85573),l=n.n(r),c=n(59301),d=n(89780),u=n.n(d),m=n(76374),p=(n(24147),n(6313),n(25717),n(99498),n(25419),n(67549),n(51150)),h=n(37712),f=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),x=n.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function y(e){var t=e.onActionCallback,n=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:n,className:s,onClick:function(){t(a)},children:[(0,h.jsx)("i",{className:"".concat(i)}),r]})}var w=function(e){var t=e.watch,n=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(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!r&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(y,x()(x()({},e),{},{onActionCallback:a})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(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=n(81074),_=n(78241),j=n(92832),k=n(3113),C={labelCol:{span:4},wrapperCol:{span:20}},S=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,x()(x()({},C),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(j.Z,{})}),(0,h.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(j.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(k.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},N=n(4469),T=n(72952),Z=n(95237),L=n(18433),A=function(e){var t=e.callback,n=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)(Z.Z,{style:{height:"100vh"},children:(0,h.jsx)(L.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:o,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},P=n(7557),B=n.n(P),E=n(41498),I=n.n(E),M=n(37205),D=n.n(M),O=n(12378);function R(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(R,go.CommandHandler),R.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},R.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},R.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},R.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},R.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},R.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},R.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},R.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i<n.length-1;i++){var a=n[i],o=a.actualBounds.y+a.actualBounds.height+e;n[i+1].move(new go.Point(a.actualBounds.x,o))}t.commitTransaction("align Column")},R.prototype.alignRow=function(e){void 0===e&&(e=0),e=parseFloat(e);var t=this.diagram;t.startTransaction("align Row");var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i<n.length-1;i++){var a=n[i],o=a.actualBounds.x+a.actualBounds.width+e;n[i+1].move(new go.Point(o,a.actualBounds.y))}t.commitTransaction("align Row")},R.prototype.canRotate=function(e){var t=this.diagram;return null!==t&&!t.isReadOnly&&!t.isModelReadOnly&&!(t.selection.count<1)},R.prototype.rotate=function(e){var t;void 0===e&&(e=90),(t=this.diagram).startTransaction("rotate "+e.toString()),(t=this.diagram).selection.each((function(t){t instanceof go.Link||t instanceof go.Group||(t.angle+=e)})),t.commitTransaction("rotate "+e.toString())},R.prototype.pullToFront=function(){var e=this.diagram;e.startTransaction("pullToFront");var t=new go.Map;e.selection.each((function(e){t.set(e.layer,0)})),t.iteratorKeys.each((function(e){var n=0;e.parts.each((function(e){if(!e.isSelected){var t=e.zOrder;isNaN(t)?e.zOrder=0:n=Math.max(n,t)}})),t.set(e,n)})),e.selection.each((function(e){R._assignZOrder(e,t.get(e.layer)+1)})),e.commitTransaction("pullToFront")},R.prototype.pushToBack=function(){var e=this.diagram;e.startTransaction("pushToBack");var t=new go.Map;e.selection.each((function(e){t.set(e.layer,0)})),t.iteratorKeys.each((function(e){var n=0;e.parts.each((function(e){if(!e.isSelected){var t=e.zOrder;isNaN(t)?e.zOrder=0:n=Math.min(n,t)}})),t.set(e,n)})),e.selection.each((function(e){R._assignZOrder(e,t.get(e.layer)-1-R._findGroupDepth(e))})),e.commitTransaction("pushToBack")},R._assignZOrder=function(e,t,n){void 0===n&&(n=e),e.layer===n.layer&&(e.zOrder=t),e instanceof go.Group&&e.memberParts.each((function(e){R._assignZOrder(e,t+1,n)}))},R._findGroupDepth=function(e){if(e instanceof go.Group){var t=0;return e.memberParts.each((function(e){t=Math.max(t,R._findGroupDepth(e))})),t+1}return 0},R.prototype.doKeyDown=function(){var e=this.diagram;if(null!==e){var t=e.lastInput;if("Up"===t.key||"Down"===t.key||"Left"===t.key||"Right"===t.key){var n=this.arrowKeyBehavior;if("none"===n)return;if("select"===n)return void this._arrowKeySelect();if("move"===n)return void this._arrowKeyMove();if("tree"===n)return void this._arrowKeyTree()}go.CommandHandler.prototype.doKeyDown.call(this)}},R.prototype._getAllParts=function(){var e=new Array;return this.diagram.nodes.each((function(t){e.push(t)})),this.diagram.parts.each((function(t){e.push(t)})),e},R.prototype._arrowKeyMove=function(){var e=this.diagram,t=e.lastInput,n=0,i=0;if(t.control||t.meta)n=1,i=1;else if(null!==e.grid){var a=e.grid.gridCellSize;i=a.width,n=a.height}e.startTransaction("arrowKeyMove"),e.selection.each((function(e){"Up"===t.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y-n)):"Down"===t.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y+n)):"Left"===t.key?e.move(new go.Point(e.actualBounds.x-i,e.actualBounds.y)):"Right"===t.key&&e.move(new go.Point(e.actualBounds.x+i,e.actualBounds.y))})),e.commitTransaction("arrowKeyMove")},R.prototype._arrowKeySelect=function(){var e=this.diagram,t=e.lastInput,n=null;"Up"===t.key?n=this._findNearestPartTowards(270):"Down"===t.key?n=this._findNearestPartTowards(90):"Left"===t.key?n=this._findNearestPartTowards(180):"Right"===t.key&&(n=this._findNearestPartTowards(0)),null!==n&&(t.shift?n.isSelected=!0:t.control||t.meta?n.isSelected=!n.isSelected:e.select(n))},R.prototype._findNearestPartTowards=function(e){var t=this.diagram.selection.first();if(null===t)return null;for(var n=t.actualBounds.center,i=this._getAllParts(),a=1/0,o=t,s=0;s<i.length;s++){var r=i[s];if(r!==t&&r.canSelect()){var l=r.actualBounds.center,c=n.directionPoint(l),d=this._angleCloseness(c,e);if(d<=45){var u=n.distanceSquaredPoint(l);(u*=1+Math.sin(d*Math.PI/180))<a&&(a=u,o=r)}}}return o},R.prototype._angleCloseness=function(e,t){return Math.min(Math.abs(t-e),Math.min(Math.abs(t+360-e),Math.abs(t-360-e)))},R.prototype._arrowKeyTree=function(){var e=this.diagram,t=e.selection.first();if(t instanceof go.Node){var n=e.lastInput;if("Right"===n.key)if(t.isTreeLeaf);else if(t.isTreeExpanded){null!==(a=this._sortTreeChildrenByY(t).first())&&e.select(a)}else e.commandHandler.canExpandTree(t)&&e.commandHandler.expandTree(t);else if("Left"===n.key){if(!t.isTreeLeaf&&t.isTreeExpanded)e.commandHandler.canCollapseTree(t)&&e.commandHandler.collapseTree(t);else null!==(o=t.findTreeParentNode())&&e.select(o)}else if("Up"===n.key){if(null!==(o=t.findTreeParentNode()))if((r=(s=this._sortTreeChildrenByY(o)).indexOf(t))>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"===n.key){var a;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(a=this._sortTreeChildrenByY(t).first())&&e.select(a);else for(;null!==t;){var o,s,r;if(null===(o=t.findTreeParentNode()))break;if((r=(s=this._sortTreeChildrenByY(o)).indexOf(t))<s.length-1){e.select(s.elt(r+1));break}t=o}}var l=e.selection.first();null!==l&&e.scrollToRect(l.actualBounds)}},R.prototype._sortTreeChildrenByY=function(e){var t=(new go.List).addAll(e.findTreeChildrenNodes());return t.sort((function(e,t){var n=e.location,i=t.location;return n.y<i.y?-1:n.y>i.y?1:n.x<i.x?-1:n.x>i.x?1:0})),t},R.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},R.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(R.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(R.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 G=R,z=(n(57193),n(85160)),H=n(43418),F=n(43604),Y=n(85750),V="myPaletteDiv___Xjz2I",W="maxH60___Pd4Re";window.go=O;var K=function(e){var t=e.onCancel,n=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=I()(B()().mark((function e(){var t,a;return B()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,Y.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:a=e.sent,n({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(W," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(H.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!m,destroyOnClose:!0,maskClosable:!1,getContainer:l.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(Z.Z,{children:[(0,h.jsx)(F.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(F.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:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:o})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(z.FI,{initDiagram:function(){var e=O.GraphObject.make,t="#ff3333",n="#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(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var a=n.part.adornedPart,o=(new O.Point).setRectSpot(a.actualBounds,t);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:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(O.Spot.Top)||t.equals(O.Spot.Bottom)?25:18,height:t.equals(O.Spot.Top)||t.equals(O.Spot.Bottom)?18:25,fill:"orange",stroke:d,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function w(t){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,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function b(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(O.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:b(n,t),contextClick:b(n,t)})}function j(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",_(d,"fill"),_(m,"fill"),_(p,"fill"),_(h,"fill"))),e("ContextMenuButton",e(O.Panel,"Horizontal",_(g,"fill"),_(x,"fill"),_(f,"fill"),_(v,"fill")))]}function k(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",_(u),_(s),_(n),_(t))),e("ContextMenuButton",e(O.Panel,"Horizontal",_(d),_(r),_(l),_(c)))]}function C(t,n){return n||(n="thickness"),e(O.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function S(t,n){return n||(n="dash"),e(O.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function N(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",C(1),C(2),C(3),C(4))),e("ContextMenuButton",e(O.Panel,"Horizontal",S(null),S([2,4]),S([4,4])))]}function T(t,n){return n||(n="figure"),e(O.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:b(n,t),contextClick:b(n,t)})}function Z(t){return e(O.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function L(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(O.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b("dir",t),contextClick:b("dir",t)})}function A(t){var n=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(O.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(O.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function P(t,n){var i=0,a=O.Spot.RightSide;t.equals(O.Spot.Top)?(i=270,a=O.Spot.TopSide):t.equals(O.Spot.Left)?(i=180,a=O.Spot.LeftSide):t.equals(O.Spot.Bottom)&&(i=90,a=O.Spot.BottomSide),n||(i-=180);var o=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(a)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(O.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.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(G),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),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",T("Rectangle"),T("RoundedRectangle"),T("Ellipse"),T("Diamond"))),e("ContextMenuButton",e(O.Panel,"Horizontal",T("Parallelogram2"),T("ManualOperation"),T("Procedure"),T("Cylinder1"))),e("ContextMenuButton",e(O.Panel,"Horizontal",T("Terminator"),T("CreateRequest"),T("Document"),T("TriangleDown"))),j(),k(),N()),i.current.groupTemplate=e(O.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:O.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new 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",j(),k(),N()),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:Z(2)},new O.Binding("pathPattern","thickness",Z)),w({alignmentFocus:new O.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",k(),N(),e("ContextMenuButton",e(O.Panel,"Horizontal",L(0),L(1),L(2))),e("ContextMenuButton",e(O.Panel,"Horizontal",e(O.Panel,"Spot",A(!1),P(O.Spot.Top,!1),P(O.Spot.Left,!1),P(O.Spot.Right,!1),P(O.Spot.Bottom,!1)),e(O.Panel,"Spot",{margin:new O.Margin(0,0,0,2)},A(!0),P(O.Spot.Top,!0),P(O.Spot.Left,!0),P(O.Spot.Right,!0),P(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)(k.ZP,{size:"large",onClick:f,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},U=n(5112),J=n(94001),q=U.ZP.Group,Q={margin:"0 8px"},X=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"单元格数:"}),(0,h.jsx)("span",{style:Q,children:"行数"}),(0,h.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(J.Z,{})}),(0,h.jsx)("span",{style:Q,children:"列数"}),(0,h.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(J.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"对齐方式:"}),(0,h.jsx)(_.Z.Item,{name:"align",children:(0,h.jsxs)(q,{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)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(k.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(38229),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=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(te())(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(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:r}),(0,h.jsxs)(Z.Z,{align:"middle",children:[(0,h.jsx)(F.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)(F.Z,{children:(0,h.jsx)(k.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(97488),ae=n(20817),oe=n(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=n(12066);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 t=e.defaultValue,n=void 0===t?"":t,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,_=void 0!==y&&y,j=e.watch,k=e.insertTemp,C=e.mode,Z=void 0===C?"markdown":C,L=e.id,P=void 0===L?"markdown-editor-id":L,B=e.showResizeBar,E=void 0!==B&&B,I=e.noStorage,M=void 0!==I&&I,D=e.showNullButton,O=void 0!==D&&D,R=e.showNullProgramButton,G=void 0!==R&&R,z=e.hidetoolBar,F=void 0!==z&&z,Y=e.fullScreen,V=void 0!==Y&&Y,W=e.onBlur,U=e.onCMBeforeChange,J=e.onFullScreen,q=e.className,Q=void 0===q?"":q,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,me=void 0!==te&&te,ve=e.disabledFill,be=void 0!==ve&&ve,_e=e.placeholder,je=void 0===_e?"":_e,ke=e.values,Ce=void 0===ke?"":ke,Se=e.extraUse,Ne=(0,c.useState)(null),Te=s()(Ne,2),Ze=Te[0],Le=Te[1],Ae=(0,c.useState)(n),Pe=s()(Ae,2),Be=Pe[0],Ee=Pe[1],Ie=(0,c.useState)(j),Me=s()(Ie,2),De=Me[0],Oe=Me[1],Re=(0,c.useState)(V),Ge=s()(Re,2),ze=Ge[0],He=Ge[1],Fe=(0,c.useState)(""),Ye=s()(Fe,2),Ve=Ye[0],We=Ye[1],Ke=(0,c.useState)(0),Ue=s()(Ke,2),Je=Ue[0],qe=Ue[1],Qe=(0,c.useState)(g),Xe=s()(Qe,2),$e=Xe[0],et=Xe[1],tt=(0,c.useState)(!1),nt=s()(tt,2),it=(nt[0],nt[1]),at=(0,c.useState)(0),ot=s()(at,2),st=ot[0],rt=ot[1],lt=(0,c.useState)(0),ct=s()(lt,2),dt=ct[0],ut=ct[1],mt=(0,c.useRef)(),pt=(0,c.useRef)(),ht=(0,c.useRef)(),ft=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ee(Ce),null==Ze||Ze.setValue(Ce),window.scrollTo(0,e)}),[Ce]),(0,c.useEffect)((function(){null==J||J(ze)}),[ze]),(0,c.useEffect)((function(){if(mt.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var a=i.types.toString(),o=i.items;if("Files"===a||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==Z)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,T.I)(l,(function(e){var n,i,a;e.id?(null==l||null===(n=l.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection(".concat(e.content_type,")")):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.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?t.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)?t.replaceSelection('<a href="'.concat(ae.Z.API_SERVER,"/api/attachments/").concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(l.name,"</a>")):t.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(n){oe.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=u().fromTextArea(mt.current,{mode:Z,lineNumbers:!v,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",je):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),a=n.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:",t,e,a,i,l,s,r,o),l>=0&&i.ch-l<5){var d=l+c;return n.replaceRange("",{line:i.line,ch:l},{line:i.line,ch:d}),{line:i.line,ch:d}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),me&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Le(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){pt.current}),[$e,pt,ze]);(0,c.useEffect)((function(){if(Ze){var e=function(){var e=new m.Z((function(e){var t,n=a()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Ze.setSize("100%","100%"),Ze.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(mt.current.parentElement),e}();return function(){var t,n;null!==(t=mt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=mt.current)||void 0===n?void 0:n.parentElement)}}}),[Ze,gt]),(0,c.useEffect)((function(){if(Ze){for(var e=[],t=function(){var t=s()(i[n],2),a=t[0],o=t[1],r=l()({},a,(function(){xt(o)}));e.push(r),Ze.addKeyMap(r)},n=0,i=Object.entries(ye);n<i.length;n++)t();return function(){for(var t=0,n=e;t<n.length;t++){var i=n[t];Ze.removeKeyMap(i)}}}}),[Ze]),(0,c.useEffect)((function(){V!==ze&&He(V)}),[V]),(0,he.Z)((function(){if(!M&&Je>0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(P);e>=Je+1e4&&(!t||t!==Be)&&(window.sessionStorage.setItem(P,Be),it(!0))}}),1e4),(0,c.useEffect)((function(){Oe(j)}),[Ze,j]),(0,c.useEffect)((function(){Ze&&_&&Ze.focus()}),[Ze,_]),(0,c.useEffect)((function(){if(De&&Ze){var e=function(e){var t=e.target;if(ft.current){var n=t.scrollTop/t.scrollHeight;ft.current.scrollTop=ft.current.scrollHeight*n}},t=Ze.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Ze,De]),(0,c.useEffect)((function(){if(Ze&&U){var e=function(e,t){U(e,t)};return Ze.on("beforeChange",e),function(){Ze.off("beforeChange",e)}}}),[Ze,U]),(0,c.useEffect)((function(){if(Ze&&W){var e=function(){W(Ze.getValue())};return Ze.on("blur",e),function(){Ze.off("blur",e)}}}),[Ze,W]),(0,c.useEffect)((function(){if(Ze){var e=function(e,t){var n=e.getValue();Ee(n),qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(G?i(n,_t(n)):i(n))};return Ze.on("change",e),function(){Ze.off("change",e)}}}),[Ze,i]),(0,c.useEffect)((function(){if(Ze)if(null==n)Ze.setValue(""),Ee("");else{var e=window.scrollY||window.pageYOffset;n!==Ze.getValue()&&(Ze.setValue(n),Ee(n),Ze.setCursor(me?1:Ze.lineCount(),0),window.scrollTo(0,e))}}),[Ze,n]);var xt=(0,c.useCallback)((function(e){var t=Ze.getCursor(),n=Ze.getSelection(),i=n.split("\n");switch(e){case"bold":return Ze.replaceSelection("**"+n+"**"),""===n&&Ze.setCursor(t.line,t.ch+2),Ze.focus();case"italic":return Ze.replaceSelection("*"+n+"*"),""===n&&Ze.setCursor(t.line,t.ch+1),Ze.focus();case"code":return Ze.replaceSelection("`"+n+"`"),""===n&&Ze.setCursor(t.line,t.ch+1),Ze.focus();case"inline-latex":return We("inline-latex"),Ze.focus();case"latex":return Ze.replaceSelection("```latex\n"+n+"\n```"),Ze.setCursor(t.line+1,n.length+1),Ze.focus();case"line-break":return Ze.replaceSelection("<br/>\n"),Ze.focus();case"list-ul":return""===n?Ze.replaceSelection("- "+n):Ze.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ze.focus();case"list-ol":return""===n?Ze.replaceSelection("1. "+n):Ze.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Ze.focus();case"add-null-ch":return""===n&&Ze.setCursor(t.line,t.ch),Ze.replaceSelection("▁"),Ze.focus();case"add-signal":return""===n&&Ze.setCursor(t.line,t.ch),Ze.replaceSelection("@▁@"),Ze.focus();case"add-multiple":return""===n&&Ze.setCursor(t.line,t.ch),Ze.replaceSelection(fe),Ze.focus();case"inster-template-1":return""===n&&Ze.setCursor(t.line,t.ch),Ze.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ze.focus();case"eraser":return Ze.setValue(""),Ze.focus();case"trigger-watch":return Oe(!De),Ze.focus();case"trigger-full-screen":return He(!ze),Ze.focus();case se:return void We(se);case de:return void We(de);case re:return void We(re);case ce:return void We(ce);case"maths-latex":return void We("maths-latex");case le:return void We(le);case ue:return void We(ue);default:throw new Error}}),[Ze,De,ze]),vt=(0,c.useCallback)((function(e,t){var n,i,a,o,s;switch(We(""),Ve){case se:var r=e.title,l=e.link;return Ze.replaceSelection("[".concat(r,"](").concat(l,")")),Ze.focus();case de:var c=e.language,d=e.content;return Ze.replaceSelection(["```"+c,d,"```"].join("\n")),Ze.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,T.I)(h,(function(e){e.id?Ze.replaceSelection(".concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":Ze.replaceSelection("`$$"+e+"$$`");break;case re:case ce:case"add-flowchart":var f=e.src,g=e.alt,x=t,v=null==x||null===(n=x.name)||void 0===n||null===(n=n.split("."))||void 0===n||null===(i=n.pop)||void 0===i?void 0:i.call(n);return(null==x||null===(a=x.type)||void 0===a?void 0:a.indexOf("image"))>-1||null==x||!x.type?g?Ze.replaceSelection(".concat(f,' "').concat(g,'" )')):Ze.replaceSelection("")):(null==x||null===(o=x.type)||void 0===o?void 0:o.indexOf("video"))>-1?Ze.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?Ze.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)?Ze.replaceSelection('<a href="'.concat(ae.Z.API_SERVER).concat(f,'?type=office&disposition=inline" target="_blank">').concat(x.name,"</a>")):Ze.replaceSelection("[".concat(x.name,"](").concat(ae.Z.API_SERVER).concat(f,")")),Ze.focus();case ue:for(var y=e.row,w=e.col,b=e.align,_="\n",j=0;j<y;j++){for(var k=[],C=[],S=0;S<w;S++)1===j&&C.push(pe[b]),k.push(" ");1===j&&(_+="| ".concat(C.join(" | ")," |\n")),_+="| ".concat(k.join(1===w?"":" | ")," |\n")}return Ze.replaceSelection(_+"\n"),Ze.focus();default:throw new Error}}),[Ze,Ve]),yt=(0,c.useMemo)((function(){switch(Ve){case se:return(0,h.jsx)(S,{callback:vt,onCancel:wt});case de:return(0,h.jsx)(N.Z,{callback:vt,onCancel:wt});case re:return(0,h.jsx)(T.Z,{callback:vt,onCancel:wt});case le:return(0,h.jsx)(K,{callback:vt,onCancel:wt});case ue:return(0,h.jsx)(X,{callback:vt,onCancel:wt});case"maths-latex":return(0,h.jsx)(ne,{showSaveButton:!0,callback:vt});case"inline-latex":return(0,h.jsx)(ie.Z,{showSaveButton:!0,callback:vt});default:return null}}),[Ve]);function wt(){We("")}(0,c.useEffect)((function(){if(ht.current){var e=function(e){a=!0,o=e.pageY},t=function(){a=!1},n=function(e){if(a){var t=e.pageY-o;t<0&&(t=0),t>300&&(t=300),et(g+t+"px")}},i=ht.current,a=!1,o=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Ze,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var bt={width:xe(r),height:xe($e)},_t=((0,c.useMemo)((function(){if(Je){var e=new Date(Je),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Je]),function(e){var t=[];if(G){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){we[Ve]&&Ve!==ce&&Ve!==le&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;rt(t),ut(n)}),0)}),[Ve]);var jt=function(e,t,n,i){var a=document.body.clientHeight,o=document.body.clientWidth;return!(e<20&&n>e||e>o-20&&n<e||t<20&&i>t||t>a-20&&i<t)||(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:pt,children:(0,h.jsxs)("div",{className:"markdown-editor-container ".concat(Q," ").concat(De?"on-preview":""," ").concat(v?"mini":""," ").concat(ze?"full-screen":""),style:bt,children:[(0,h.jsx)(w,{insertTemp:k,watch:De,fullScreen:ze,showNullButton:O,showNullProgramButton:G,onActionCallback:xt,hidetoolBar:F,extraUse:Se}),(0,h.jsxs)("div",{className:"markdown-editor-body",children:[(0,h.jsx)("div",{className:"codemirror-container",children:(0,h.jsx)("textarea",{ref:mt,placeholder:je})}),De?(0,h.jsxs)("div",{ref:ft,className:"preview-container",children:["stex"===Z&&(0,h.jsx)(f,{value:Be}),"stex"!==Z&&(0,h.jsx)(p.Z,{disabledFill:be,showProgramFill:G,value:Be})]}):null]})]})}),E?(0,h.jsx)("a",{ref:ht,className:"editor-resize"}):null,Ve===ce&&(0,h.jsx)(A,{callback:vt,onCancel:wt}),Ve===le&&(0,h.jsx)(K,{callback:vt,onCancel:wt}),(0,h.jsx)(b.Z,{children:we[Ve]&&Ve!==ce&&Ve!==le?(0,h.jsx)(H.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:st,top:dt},title:(0,h.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var t=e.clientX-st,n=e.clientY-dt;document.body.onmousemove=function(e){var i=e.clientX-t,a=e.clientY-n,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)),jt(e.clientX,e.clientY,t,n)&&(rt(i),ut(a))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:we[Ve]}),open:!0,onCancel:wt,footer:null,destroyOnClose:!0,width:Ve===le?"1200px":null,height:Ve===le?"80vh":null,className:"markdown-popup-form",children:yt}):null})]})}},72952:function(e,t,n){"use strict";n.d(t,{Z:function(){return x},I:function(){return y}});var i=n(82242),a=n.n(i),o=n(79800),s=n.n(o),r=n(78241),l=n(8591),c=n(92832),d=n(3113),u=n(44177),m=n(59301),p=n(37712),h=r.Z.useForm,f={width:280,marginRight:10},g={labelCol:{span:5},wrapperCol:{span:19}},x=function(e){var t=e.callback,n=e.onCancel,i=h(),o=s()(i,1)[0],u=(0,m.useRef)();function x(e,t){-1!==e.status?o.setFieldsValue({src:"/api/attachments/".concat(e.id),type:t.type}):l.ZP.error(e.message)}return(0,p.jsxs)(r.Z,a()(a()({form:o},g),{},{className:"upload-image-panel",onFinish:function(e){t(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 t=e.target.files[0];u.current=t,y(t,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:n,children:"取消"})]})]}))};function v(e){var t=e.onFileChange;return(0,p.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,p.jsx)("input",{type:"file",onChange:t})]})}function y(e,t){if(!e)throw new String("没有文件");var n=new FormData;n.append("editormd-image-file",e),n.append("file_param_name","editormd-image-file"),n.append("byxhr","true");var i=new window.XMLHttpRequest;i.withCredentials=!0,i.addEventListener("load",(function(n){t(JSON.parse(n.target.responseText),e)}),!1),i.addEventListener("error",(function(e){console.error(e)}),!1),i.open("POST","".concat(u.KI,"/api/attachments.json")),i.send(n)}},81074:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(82100),a=n.n(i),o=n(29186),s=n.n(o),r=n(80619),l=n.n(r),c=n(47074),d=n.n(c),u=n(59301),m=n(4676),p=function(e){l()(n,e);var t=d()(n);function n(e){var i;a()(this,n),i=t.call(this,e);var o=window.document;return i.node=o.createElement("div"),o.body.appendChild(i.node),i}return s()(n,[{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)}}]),n}(u.Component)},12066:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(59301);function a(e,t){var n=(0,i.useRef)();(0,i.useEffect)((function(){n.current=e})),(0,i.useEffect)((function(){if(null!==t){var e=setInterval((function(){n.current()}),t);return function(){return clearInterval(e)}}}),[t])}},31295:function(e,t,n){"use strict";var i=n(82242),a=n.n(i),o=n(85573),s=n.n(o),r=n(7557),l=n.n(r),c=n(41498),d=n.n(c),u=n(79800),m=n.n(u),p=n(59301),h=n(53326),f=n(78241),g=n(43418),x=n(8591),v=n(51945),y=n(32007),w=n(20817),b=n(92051),_=n(85750),j=n(61186),k=n.n(j),C=n(66621),S=n(37712),N=h.Z.Dragger;t.Z=(0,y.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=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),j=h[0],T=h[1],Z=(0,p.useState)(!1),L=m()(Z,2),A=L[0],P=L[1],B={height:100,onRemove:function(){T("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:(t=d()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,p.useEffect)((function(){c.setFieldsValue(s()(s()({},"publish_time",k()(k()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",k()(k()(new Date((0,C.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),[]),(0,S.jsx)(g.Z,{centered:!0,title:"补充成绩",open:"补充成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:A},onOk:d()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){c.resetFields(),i({type:"classroomList/setActionTabs",payload:{}})},children:(0,S.jsxs)(f.Z,{form:c,onFinish:function(){var e=d()(l()().mark((function e(t){var a,s,r,d,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=j&&j.size){e.next=3;break}return x.ZP.info("请上传文件"),e.abrupt("return");case 3:return P(!0),(a=new FormData).append("type",n.actionTabs.type),a.append("file",j),s=window.location.href.indexOf("exercise")>-1?"/api/exercises/".concat(n.actionTabs.id,"/supplement_score.json"):"/api/homework_commons/".concat(n.actionTabs.id,"/supplement_score.json"),e.next=10,(0,_.ZP)(s,{method:"post",body:a},!0);case 10:r=e.sent,P(!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,S.jsx)(v.Z,{pagination:!1,dataSource:null==r||null===(u=r.data)||void 0===u?void 0:u.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,C.FH)("",w.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,S.jsx)(f.Z.Item,{label:"作业名称",labelCol:{span:3},name:"name",children:n.actionTabs.name}),(0,S.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,S.jsxs)("div",{children:[(0,S.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,S.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,S.jsxs)("div",{children:[(0,S.jsx)("a",{download:"模版.xlsx",className:b.Z.downloadbutton,href:w.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,S.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,S.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,S.jsxs)(N,a()(a()({},B),{},{children:[(0,S.jsx)("a",{className:b.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,S.jsx)("br",{}),(0,S.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},66479:function(e,t,n){"use strict";var i=n(82242),a=n.n(i),o=n(85573),s=n.n(o),r=n(7557),l=n.n(r),c=n(41498),d=n.n(c),u=n(79800),m=n.n(u),p=n(59301),h=n(53326),f=n(78241),g=n(43418),x=n(8591),v=n(51945),y=n(92832),w=n(95237),b=n(43604),_=n(94001),j=n(30518),k=n(32007),C=n(95992),S=n(20817),N=n(92051),T=n(85750),Z=n(94051),L=n(61186),A=n.n(L),P=n(66621),B=n(37712),E=h.Z.Dragger;t.Z=(0,k.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,i=e.dispatch,o=e.onOk,r=(0,k.useParams)(),c=f.Z.useForm(),u=m()(c,1)[0],h=(0,p.useState)(),L=m()(h,2),I=L[0],M=L[1],D=(0,p.useState)(!1),O=m()(D,2),R=O[0],G=O[1],z={height:100,onRemove:function(){M("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:(t=d()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return M(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,p.useEffect)((function(){u.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,P.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),["导入外部成绩"===n.actionTabs.key]),(0,B.jsx)(g.Z,{centered:!0,title:"导入外部成绩",open:"导入外部成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:R},onOk:d()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){u.resetFields(),i({type:"classroomList/setActionTabs",payload:{}})},children:(0,B.jsxs)(f.Z,{form:u,colon:!1,onFinish:function(){var e=d()(l()().mark((function e(t){var a,s,c,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=I&&I.size){e.next=3;break}return x.ZP.info("请上传文件"),e.abrupt("return");case 3:return G(!0),(a=new FormData).append("name",t.name),a.append("type",n.actionTabs.type),a.append("category_id",(null==r?void 0:r.categoryId)||null),"exercise"===n.actionTabs.type?(a.append("time",t.time||""),a.append("total_score",t.total_score)):a.append("description",t.description||""),a.append("publish_time",A()(t.publish_time).format("YYYY-MM-DD HH:mm")),a.append("end_time",A()(t.end_time).format("YYYY-MM-DD HH:mm")),a.append("file",I),e.next=14,(0,T.ZP)("/api/courses/".concat(r.coursesId,"/export_external_score_homework.json"),{method:"post",body:a},!0);case 14:s=e.sent,G(!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,B.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,P.FH)("",S.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,B.jsx)(f.Z.Item,{label:"exercise"!==n.actionTabs.type?"作业":"试卷名称",labelCol:{span:3},name:"name",rules:[{required:!0,message:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称")}],children:(0,B.jsx)(y.Z,{showCount:!0,placeholder:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称"),maxLength:60})}),"exercise"!==n.actionTabs.type&&(0,B.jsx)(f.Z.Item,{label:"作业描述",labelCol:{span:3},name:"description",children:(0,B.jsx)(C.Z,{watch:!0})}),"exercise"===n.actionTabs.type&&(0,B.jsxs)(w.Z,{style:{marginLeft:6},children:[(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"试卷总分",name:"total_score",rules:[{required:!0,message:"请填写试卷总分"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"试卷总分必须为正数"}],children:(0,B.jsx)(y.Z,{placeholder:"请输入试卷总分",style:{width:256},addonAfter:"分"})})}),(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"答题时长",labelCol:{span:6},name:"time",children:(0,B.jsx)(_.Z,{style:{width:"100%"},addonAfter:"分钟",placeholder:"请输入答题时长"})})})]}),(0,B.jsxs)(w.Z,{style:{marginLeft:6,marginBottom:12},children:[(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"开始时间",name:"publish_time",rules:[{required:!0,message:"请选择开始时间"}],children:(0,B.jsx)(j.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:256},disabledDate:function(e){return(0,Z.Q8)(e)},disabledTime:function(e){return(0,Z.d0)(e)},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})}),(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"结束时间",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"请选择结束时间"}],children:(0,B.jsx)(j.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:function(e){return(0,Z.Q8)(e,"",u.getFieldValue("publish_time"))},disabledTime:function(e){return(0,Z.d0)(e,u.getFieldValue("publish_time"))},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})})]}),(0,B.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,B.jsxs)("div",{children:[(0,B.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,B.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,B.jsxs)("div",{children:[(0,B.jsx)("a",{download:"模版.xlsx",className:N.Z.downloadbutton,href:S.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,B.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,B.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,B.jsxs)(E,a()(a()({},z),{},{children:[(0,B.jsx)("a",{className:N.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,B.jsx)("br",{}),(0,B.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},58724:function(e,t,n){"use strict";var i=n(7557),a=n.n(i),o=n(85573),s=n.n(o),r=n(37205),l=n.n(r),c=n(82242),d=n.n(c),u=n(41498),m=n.n(u),p=n(79800),h=n.n(p),f=n(59301),g=n(78241),x=n(8591),v=n(43418),y=n(95237),w=n(43604),b=n(30518),_=n(5112),j=n(24905),k=n(61186),C=n.n(k),S=n(85750),N=n(66621),T=n(32007),Z=n(89260),L=n(96631),A=n(16862),P=n(94051),B=n(37712);t.Z=(0,T.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,i=e.courseEndTime,o=(0,T.useParams)(),r=g.Z.useForm(),c=h()(r,1)[0],u=(0,f.useState)(1),p=h()(u,2),k=p[0],E=p[1],I=(0,f.useState)([]),M=h()(I,2),D=M[0],O=M[1],R=(0,f.useState)(0),G=h()(R,2),z=(G[0],G[1]),H=(0,f.useState)(20),F=h()(H,2),Y=(F[0],F[1],(0,f.useState)(!0)),V=h()(Y,2),W=(V[0],V[1]),K=(0,f.useState)([]),U=h()(K,2),J=U[0],q=U[1],Q=(0,f.useState)(!0),X=h()(Q,2),$=X[0],ee=X[1];o.id=o.coursesId,(0,f.useEffect)((function(){if("立即发布"===t.actionTabs.key&&(ie(),te(),2===t.actionTabs.type)){var e=t.actionTabs.selectArrsAll[0];ee(e.unified_setting)}}),[t.actionTabs]);var te=function(){var e=m()(a()().mark((function e(n){var i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return W(!0),e.next=3,(0,L.c_)(d()(d()({},o),{},{page:n||k,limit:2e4,homework_id:1===t.actionTabs.type?"":t.actionTabs.selectArrs[0]}));case 3:null==(i=e.sent)||i.course_groups.map((function(e,t){e.key=e.id,e.title=e.name,e.disabled=e.is_published})),i&&(O(l()(null==i?void 0:i.course_groups)),z(null==i?void 0:i.course_groups_count),W(!1),n||c.setFieldsValue(s()(s()({},"publish_time",C()(C()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",C()(C()(new Date((0,N.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm")))));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ne=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,Z.Rm)()||null!==(i=t.AssistantObject)&&void 0!==i&&null!==(i=i.practice)&&void 0!==i&&i.can_publish){e.next=4;break}return x.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),re(!1),e.abrupt("return");case 4:if(!((r=d()({},c.getFieldsValue())).end_time<=r.publish_time)){e.next=9;break}return x.ZP.info("截止时间不能大于或等于发布时间"),re(!1),e.abrupt("return");case 9:if(!((null==J?void 0:J.length)<=0&&!$&&D.length>0)){e.next=13;break}return x.ZP.info("发布班级不能为空"),re(!1),e.abrupt("return");case 13:return u={homework_ids:l()(t.actionTabs.selectArrs),group_ids:J.length>0?J.map((function(e){return e.id})):null===(s=t.detailShixunsList)||void 0===s?void 0:s.course_groups,end_time:C()(r.end_time).format("YYYY-MM-DD HH:mm"),publish_time:C()(r.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!J.length},re(!0),e.next=17,(0,S.ZP)("/api/courses/".concat(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,N.L9)(["教学课堂","课程实验","立即发布"]),x.ZP.success("发布成功"),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,Z.GJ)()?t.actionTabs.detail?(n({type:"shixunHomeworks/setActionTabs",payload:{}}),n({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:d()({},o)}),n({type:"shixunHomeworks/getWorkSetting",payload:d()({},o)})):n({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},t.actionTabs.params),{},{type:4})}):n({type:"classroomList/getClassroomShixunsList",payload:d()({},t.actionTabs.params)}),"0"===localStorage.getItem("Noviceguide")||n({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:13,text:(0,B.jsx)("div",{children:"最后,咱们给教学课堂添加一名学生~点击“添加学生”,在弹窗页面中输入并搜索学生姓名,点击“确定”就可以为您的课堂添加第一位学生啦~"})}})):re(!1);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ie=function(){E(1),O([]),q([])},ae=(t.detailShixunsList,(0,f.useState)(!1)),oe=h()(ae,2),se=oe[0],re=oe[1];return(0,B.jsxs)(v.Z,{width:600,centered:!0,confirmLoading:se,title:"发布作业",open:"立即发布"===t.actionTabs.key,okText:"发布作业",cancelText:"暂不发布",onOk:function(){return ne()},onCancel:function(){ie(),n({type:"classroomList/setActionTabs",payload:{}})},children:[(0,B.jsxs)("p",{className:"tc",children:["学生将立即收到作业",(0,B.jsx)("br",{}),'本操作只对"未发布"的作业有效']}),(0,B.jsxs)(g.Z,{form:c,children:[(0,B.jsxs)("div",{style:{paddingLeft:0},children:[(0,B.jsxs)(y.Z,{className:"mt30",align:"middle",children:[(0,B.jsx)(w.Z,{children:(0,B.jsx)(g.Z.Item,{name:"publish_time",label:"发布时间",children:(0,B.jsx)(b.default,{style:{width:170,marginRight:"25px"},disabledDate:function(e){return(0,P.Q8)(e,i)},disabledTime:function(e){return(0,P.d0)(e)},placeholder:"请选择发布时间",showTime:{format:"HH:mm",defaultValue:C()((0,N.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),(0,B.jsx)(w.Z,{className:"ml20",children:(0,B.jsx)(g.Z.Item,{name:"end_time",label:"截止时间:",children:(0,B.jsx)(b.default,{style:{width:170},placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:C()((0,N.U6)(),"HH:mm")},disabledDate:function(e){return(0,P.Q8)(e,i,c.getFieldValue("publish_time"))},disabledTime:function(e){return(0,P.d0)(e,c.getFieldValue("publish_time"))},format:"YYYY-MM-DD HH:mm",allowClear:!1})})})]}),2===t.actionTabs.type&&(0,B.jsxs)(y.Z,{style:{marginBottom:"10px"},children:[(0,B.jsx)("span",{className:"mr5",children:"发布设置:"}),(0,B.jsxs)(_.ZP.Group,{value:$,onChange:function(e){ee(e.target.value),q([])},children:[(0,B.jsx)(_.ZP,{value:!0,disabled:!t.actionTabs.manage_all_group,children:"统一发布"}),(0,B.jsx)(_.ZP,{className:"ml20",disabled:D.length<=0,value:!1,children:"分班发布"})]})]}),D.length<=0&&2===t.actionTabs.type&&(0,B.jsx)("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"},children:'课堂无分班,仅支持选择“统一发布"'})]}),(1===t.actionTabs.type||!$)&&D.length>0&&(0,B.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"},children:[(0,B.jsx)("span",{style:{flex:1},children:(0,B.jsx)(j.Z,{checked:J.length===D.length,onChange:function(e){J.length===D.length?q([]):q(D)},children:"全选"})}),(0,B.jsx)("span",{style:{width:16}}),(0,B.jsxs)("span",{style:{flex:1},children:["已选择",J.length||0,"个分班"]})]}),(1===t.actionTabs.type||!$)&&D.length>0&&(0,B.jsx)(A.Z,{data:D,selectedRowKeys:J,setSelectedRowKeys:q})]})]})}))},16862:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var i=n(7557),a=n.n(i),o=n(41498),s=n.n(o),r=n(79800),l=n.n(r),c=n(59301),d=n(92832),u=n(24905),m=n(95237),p="leftdiv___aBzsX",h="listClass___bxIEW",f="spantitle___v_Vc4",g="rightdiv___xWu4M",x=n(50883),v=n(37712),y=function(e){var t=e.data,n=(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)([]),_=l()(b,2),j=_[0],k=_[1],C=(0,c.useState)([]),S=l()(C,2),N=S[0],T=S[1],Z=(0,c.useState)(1),L=l()(Z,2),A=(L[0],L[1],(0,c.useState)()),P=l()(A,2);P[0],P[1];return(0,c.useEffect)((function(){w(t),k([]),T([])}),[t]),(0,c.useEffect)((function(){n&&(k(i),T(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(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:w(t.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(n.target.value)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),placeholder:"可输入班级名称查询"}),0===y.length&&(0,v.jsx)(x.Z,{styles:{margin:"70px auto"},customText:"暂无分班"}),(0,v.jsx)("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"},children:(0,v.jsx)(u.Z.Group,{value:j.map((function(e){return"".concat(e.id)})),onChange:function(e){n(y.filter((function(t){return e.includes("".concat(t.id))})))},style:{marginTop:"10px",flexDirection:"column"},children:y.map((function(e,t){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){T(j.filter((function(t){return t.name.includes(e.target.value)})))},size:"middle",placeholder:"可输入班级名称查询"}),0===N.length&&(0,v.jsx)(x.Z,{styles:{margin:"70px auto"},customText:"暂未选择分班"}),N.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:N.map((function(e,t){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(){n(j.filter((function(t){return"".concat(t.id)!="".concat(e.id)})))}})]},e.id)}))})})]})]})}},76979:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Ve}});var i=n(37205),a=n.n(i),o=n(7557),s=n.n(o),r=n(41498),l=n.n(r),c=n(82242),d=n.n(c),u=n(79800),m=n.n(u),p=n(39647),h=n.n(p),f=n(59301),g=n(85750),x=n(32007),v=n(20834),y=n(8591),w=n(92832),b=n(95237),_=n(43604),j=n(38854),k=n(6848),C=n(81327),S=n(66999),N=n(86859),T=n(24905),Z=n(3113),L=n(43418),A=n(5112),P=n(89260),B=n(46952),E=n(66621),I=n(44618),M=n(37712),D=["classroomList","dispatch","match","location","user"],O=(0,x.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,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),_=m()(b,2),j=_[0],k=_[1],C=(0,f.useRef)(null);(0,f.useEffect)((function(){if("删除"===i.actionTabs.key){if((0,P.j5)())return void k(!0);var e={hasNum:0,noHasNum:0};i.actionTabs.selectArrsAll.map((function(t){var n;t.author_login===(null===(n=r.userInfo)||void 0===n?void 0:n.login)?++e.hasNum:++e.noHasNum})),e.noHasNum>0?L.Z.info({title:"权限提示",className:"custom-modal-divider ",icon:null,content:(0,M.jsxs)("div",{children:["当前选中资源中:",(0,M.jsx)("span",{className:"c-blue",children:e.hasNum}),"个由您本人发布,",(0,M.jsx)("span",{className:"c-red",children:e.noHasNum})," 个由其他老师发布。",(0,M.jsx)("br",{}),"课堂内只能删除本人发布的资源,请取消选中其他老师发布的资源。"]}),onOk:function(){S()}}):k(!0)}else k(!1)}),[i.actionTabs.key]);var S=function(){o({type:"classroomList/setActionTabs",payload:{}})};return(0,M.jsx)(L.Z,{centered:!0,title:"提示",open:j,okText:"确定",cancelText:"取消",destroyOnClose:!0,confirmLoading:v,onOk:l()(s()().mark((function e(){var t,n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=C.current)||void 0===t||!t.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:n=e.sent,w(!1),0===n.status&&((0,E.L9)(["教学课堂","课程实验","删除"]),y.ZP.success("删除成功"),o({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,P.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(){S()},children:null!=i&&null!==(t=i.actionTabs)&&void 0!==t&&t.status&&["未发布"].includes(null==i||null===(n=i.actionTabs)||void 0===n?void 0:n.status)?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("p",{children:"提交作品将全部被删除,不可恢复"}),(0,M.jsx)("p",{children:"是否确认删除?"})]}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("p",{style:{color:"#DD0000"},children:"删除实训则会清除学生所有的答题数据,且数据不可恢复,如确定删除,请输入下方验证码"}),(0,M.jsx)(I.Z,{ref:function(e){return C.current=e}})]})})})),R=n(58724),G=n(14720),z=(0,x.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,i=(0,x.useParams)();return(0,M.jsx)(L.Z,{centered:!0,title:"提示",open:"设为公开"===t.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()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,E.L9)(["教学课堂","课程实验","设为公开"]),y.ZP.success("操作成功"),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,P.GJ)()?n({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},t.actionTabs.params),{},{type:4})}):n({type:"classroomList/getClassroomShixunsList",payload:d()({},t.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:(0,M.jsxs)("p",{children:["设为公开后,非课堂成员也可以访问查看",(0,M.jsx)("br",{}),"是否确认设为公开?"]})})})),H=n(78241),F=n(61186),Y=n.n(F),V=(0,x.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t,n,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=H.Z.useForm(),v=m()(h,1)[0];return(0,f.useEffect)((function(){var e;"重命名"===i.actionTabs.key&&v.setFieldsValue({name:null===(e=p.selectArrs)||void 0===e?void 0:e.name})}),[i.actionTabs.key]),(0,M.jsx)(L.Z,{centered:!0,title:"重命名",confirmLoading:c,open:"重命名"===i.actionTabs.key,okText:"确定",cancelText:"取消",destroyOnClose:!0,onOk:l()(s()().mark((function e(){var t,n,o,r;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,P.Rm)()||null!==(t=i.AssistantObject)&&void 0!==t&&null!==(t=t.practice)&&void 0!==t&&t.can_create){e.next=3;break}return y.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),e.abrupt("return");case 3:return n=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()({},n)});case 8:r=e.sent,u(!1),0===r.status&&(y.ZP.success("修改成功"),a({type:"classroomList/setActionTabs",payload:{}}),(0,P.GJ)()?a({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},i.actionTabs.params),{},{type:4})}):a({type:"classroomList/getClassroomShixunsList",payload:d()({},i.actionTabs.params)}));case 11:case"end":return e.stop()}}),e)}))),onCancel:function(){u(!1),a({type:"classroomList/setActionTabs",payload:{}})},children:(0,M.jsxs)(H.Z,{form:v,children:[(0,M.jsxs)(b.Z,{className:"mt10 c-grey-999",children:[(0,M.jsx)(_.Z,{children:"本实训初始名称:"}),(0,M.jsx)(_.Z,{flex:"1",children:null===(t=p.selectArrs)||void 0===t?void 0:t.shixun_name})]}),(0,M.jsx)(H.Z.Item,{name:"name",children:(0,M.jsxs)(b.Z,{className:"mt10",align:"middle",children:[(0,M.jsx)(_.Z,{className:"font14",children:"作业名称:"}),(0,M.jsx)(_.Z,{flex:"1",children:(0,M.jsx)(w.Z,{defaultValue:null===(n=p.selectArrs)||void 0===n?void 0:n.name})})]})})]})})})),W=n(43428),K=n(71418),U=n(28103),J=n(50883),q="drawer___QqugY",Q="menu___uKpxi",X="actived___hCeHj",$="actived2___aIAeg",ee="subTag___S0zfl",te="listItem___Ulw3D",ne="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=n(95341),pe=n(13452),he=n(25925),fe=n(87466),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 t,n,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)([]),j=m()(w,2),C=j[0],S=j[1],L=(0,f.useState)({}),A=m()(L,2),B=A[0],I=A[1],D=(0,f.useState)([]),O=m()(D,2),R=O[0],G=O[1],z=(0,f.useState)(!1),H=m()(z,2),F=H[0],Y=H[1],V=[{name:"最新",id:"created_at"},{name:"最热",id:"myshixuns_count"}].filter((function(e){return!!e})),ne=(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()(ne,2),xe=se[0],ve=se[1];(0,f.useEffect)((function(){ye()}),[p.coursesId,xe]),(0,f.useEffect)((function(){"选用实践项目"===i.actionTabs.key&&S([]),o({type:"shixunsList/getMenus",payload:{}})}),[i.actionTabs.key]),(0,f.useEffect)((function(){(null!=h&&h.shixun_list||null!=v&&v.shixun_list)&&I("recommend"===xe.sort?v:h)}),[h,v]);var ye=function(){var e=l()(s()().mark((function e(){var t,n,i;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(I([]),Y(!0),t=d()({},xe),"recommend"===xe.sort&&(t.sort="myshixuns_count"),"recommend"!==xe.sort){e.next=9;break}return e.next=7,o({type:"classroomList/getShixunAiRecommendLists",payload:d()(d()({},t),{},{course_id:p.coursesId})});case 7:e.next=12;break;case 9:return n=d()({},t),e.next=12,o({type:"classroomList/getShixunLists",payload:n});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,G([{id:null,name:"全部"},{id:-1,name:"未加入目录"}].concat(a()((null==i?void 0:i.groups)||[]))),S([]),Y(!1);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if("选用实践课程"!==i.actionTabs.key){var we=(0,he.P)(),be=m()(we,4),_e=be[0],je=be[1],ke=be[2],Ce=be[3],Se=function(){var e=l()(s()().mark((function e(t){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:t.map((function(e){return{shixun_id:e.id,is_copy:e.is_copy,is_use:e.is_use}}))}});case 2:e.sent.status||((0,E.L9)(["教学课堂","课程实验","选用实践项目"]),y.ZP.success("操作成功"),o({type:"classroomList/setActionTabs",payload:{}}),(0,P.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(t){return e.apply(this,arguments)}}(),Ne=(0,f.useState)(!1),Te=m()(Ne,2),Ze=Te[0],Le=Te[1];return(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)(W.Z,{placement:"bottom",height:"100%",closable:!0,open:"选用实践项目"===i.actionTabs.key,rootClassName:q,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)(Z.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)(Z.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",onClick:l()(s()().mark((function e(){var t,n,a;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Le(!0),e.next=3,Ce({id:C,type:"shixun",course_id:null===(t=i.detailTopBanner)||void 0===t?void 0:t.course_id});case 3:if(e.sent){e.next=8;break}return a=null==B||null===(n=B.shixun_list)||void 0===n?void 0:n.filter((function(e){return C.includes(e.identifier)})).map((function(e){return{id:e.id,is_copy:0,is_use:1}})),e.next=8,Se(a);case 8:Le(!1);case 9:case"end":return e.stop()}}),e)}))),type:"primary",loading:Ze,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:F,children:(0,M.jsxs)("aside",{children:[ge.map((function(e,t){var n;return 0!==t?null:(0,M.jsxs)("ul",{className:Q,children:[(0,M.jsx)("li",{children:e.name}),null==e||null===(n=e.children)||void 0===n?void 0:n.map((function(t,n){return(0,M.jsx)("li",{className:xe[e.id]==t.id?X:"",onClick:function(){xe[e.id]=t.id,xe.page=1,ve(d()({},xe))},children:(0,M.jsx)("strong",{children:t.name})})}))]},t)})),(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,t){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(t,n){return(0,M.jsxs)("div",{className:"mt5",children:[(0,M.jsx)("div",{className:(null==xe?void 0:xe.sub_discipline_id)==t.id&&2===xe.tag_level?"".concat($," ").concat(ee):ee,onClick:function(){xe.tag_level=2,xe.discipline_id=e.id,xe.sub_discipline_id=t.id,ve(d()({},xe))},children:t.name}),(0,M.jsx)("ul",{className:"mt5",children:t.tags&&t.tags.map((function(t,n){return(0,M.jsx)("li",{className:xe.sub_discipline_id==t.id&&3===xe.tag_level?$:"",onClick:function(){xe.tag_level=3,xe.discipline_id=e.id,xe.sub_discipline_id=t.id,ve(d()({},xe))},children:t.name},n)}))})]},n)}))})]},t)}))]}),"mine"===xe.type&&(0,M.jsxs)("ul",{className:Q,children:[(0,M.jsx)("li",{children:"目录"}),null==R?void 0:R.map((function(e,t){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,t){var n;return 1!==t?null:(0,M.jsxs)("ul",{className:Q,children:[(0,M.jsx)("li",{children:e.name}),null==e||null===(n=e.children)||void 0===n?void 0:n.map((function(t,n){return(0,M.jsx)("li",{className:xe[e.id]==t.id?X:"",onClick:function(){xe[e.id]=t.id,ve(d()({},xe))},children:(0,M.jsx)("strong",{children:t.name})})}))]},t)})),(0,M.jsxs)(b.Z,{align:"middle",children:[(0,M.jsx)(_.Z,{flex:"1",className:re,children:V.map((function(e,t){return(0,M.jsx)(Z.ZP,{className:"mr20",type:xe.sort===e.id?"primary":"default",onClick:function(){xe.sort=e.id,ve(d()({},xe))},children:e.name},t)}))}),(0,M.jsx)(_.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:C.length}),"个"]}),(0,M.jsxs)("li",{children:["共",(0,M.jsx)("span",{className:"c-blue",children:B.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==B||null===(t=B.shixun_list)||void 0===t?void 0:t.length)&&(0,M.jsx)(J.Z,{}),(0,M.jsx)(T.Z.Group,{style:{display:"block"},value:C,onChange:function(e){S(e)},children:null==B||null===(n=B.shixun_list)||void 0===n?void 0:n.map((function(e,t){return(0,M.jsxs)("div",{className:te,style:{cursor:"auto"},children:[(0,M.jsx)(T.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,P.Ny)()&&1===(null==e?void 0:e.mark_status)&&(0,M.jsx)(k.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,M.jsx)("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10",children:"正常"})}),(0,P.Ny)()&&2===(null==e?void 0:e.mark_status)&&(0,M.jsx)(k.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,M.jsx)("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10",children:"需完善"})}),(0,P.Ny)()&&3===(null==e?void 0:e.mark_status)&&(0,M.jsx)(k.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,M.jsx)("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10",children:"无法使用"})}),"未发布"==(null==e?void 0:e.shixun_tag_num_name)&&(0,M.jsx)(k.Z,{zIndex:1e4,title:"实训需发布后才能发送到教学课堂,点击名称可前往实训详情",children:(0,M.jsx)("span",{style:{marginRight:"auto",background:"#999"},className:"tag-style current ml10",children:"未发布"})})]}),(0,M.jsx)(Z.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,t){return(0,M.jsxs)("span",{className:"mr30",children:["第",t+1,"关 ",e," "]},t)}))}),(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)(k.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)(N.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:xe.page||1,showQuickJumper:!0,total:null==B?void 0:B.shixuns_count,onChange:function(e){xe.page=e,ve(d()({},xe))}})})]},"bottom"),(0,M.jsx)(he.Z,{visible:_e,onCancel:je,renderData:ke,inPaper:!1,onOk:Se,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 t,n,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],_=(0,f.useState)(!1),j=m()(_,2),C=j[0],S=j[1],L=(0,f.useState)({page:1,limit:20,search:null}),A=m()(L,2),B=A[0],E=A[1];(0,f.useEffect)((function(){I()}),[u.coursesId,B]),(0,f.useEffect)((function(){"从课堂实验添加"===i.actionTabs.key&&b([])}),[i.actionTabs.key]);var I=function(){var e=l()(s()().mark((function e(){var t,n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=d()(d()({},B),{},{course_id:null==p||null===(t=p.params)||void 0===t?void 0:t.course_id}),e.next=3,o({type:"classroomList/getExperimentLists",payload:n});case 3:S(!1);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if("选用实践课程"!==i.actionTabs.key)return(0,M.jsxs)(W.Z,{placement:"bottom",height:"100%",closable:!0,style:{zIndex:9999},open:"从课堂实验添加"===i.actionTabs.key,rootClassName:q,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)(Z.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)(Z.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",onClick:l()(s()().mark((function e(){var t;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===(t=p.params)||void 0===t?void 0:t.course_id}});case 2:e.sent.status||(y.ZP.success("操作成功"),o({type:"classroomList/setActionTabs",payload:{}}),(0,P.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){B.search=e,E(d()({},B))}})}),(0,M.jsx)("section",{className:"edu-container",children:(0,M.jsx)(K.Z,{spinning:C,children:(0,M.jsxs)("aside",{children:[0===(null==h||null===(t=h.homeworks)||void 0===t?void 0:t.length)&&(0,M.jsx)(J.Z,{}),null==h||null===(n=h.homeworks)||void 0===n?void 0:n.map((function(e,t){var n,i,a;return(0,M.jsxs)("div",{className:te,style:{cursor:"auto"},children:[(0,M.jsx)(T.Z,{checked:w.includes(e.id),value:e.id,style:{marginTop:"3px"},disabled:null==e?void 0:e.need_authorize,onChange:function(t){w.indexOf(e.id);w.indexOf(e.id)>-1?b(w.filter((function(t){return t!==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,P.Ny)()&&1===(null==e?void 0:e.mark_status)&&(0,M.jsx)(k.Z,{title:null==e?void 0:e.mark_content,children:(0,M.jsx)("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10",children:"正常"})}),(0,P.Ny)()&&2===(null==e?void 0:e.mark_status)&&(0,M.jsx)(k.Z,{title:null==e?void 0:e.mark_content,children:(0,M.jsx)("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10",children:"需完善"})}),(0,P.Ny)()&&3===(null==e?void 0:e.mark_status)&&(0,M.jsx)(k.Z,{title:null==e?void 0:e.mark_content,children:(0,M.jsx)("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10",children:"无法使用"})}),(0,M.jsx)(Z.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===(n=e.challenges)||void 0===n?void 0:n.map((function(e,t){return(0,M.jsxs)("span",{className:"mr30",children:["第",t+1,"关 ",null==e?void 0:e.subject," "]},t)}))}),(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})]})]})]},t)}))]})})}),(0,M.jsx)("div",{className:"tc mt20",children:(0,M.jsx)(N.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:B.page||1,showQuickJumper:!0,total:null==h?void 0:h.total_count,onChange:function(e){B.page=e,E(d()({},B))}})})]},"bottom")})),we=(w.Z.Search,(0,x.connect)((function(e){return{classroomList:e.classroomList,shixunsList:e.shixunsList,loading:e.loading.effects}}))((function(e){var t,n,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,H.Z.useForm()),g=(m()(h,1)[0],i.shixunAiRecommendLists),v=(0,f.useState)([]),w=m()(v,2),b=w[0],_=w[1],j=(0,f.useState)({page:1,course_id:p.coursesId,limit:20,no_jupyter:1}),k=m()(j,2),C=k[0],S=k[1];return(0,f.useEffect)((function(){}),[p.coursesId,C]),(0,f.useEffect)((function(){"智能推荐"===i.actionTabs.key&&(_([]),r({type:"classroomList/getShixunAiRecommendLists",payload:d()({},C)}))}),[i.actionTabs.key]),"智能推荐"!==i.actionTabs.key?null:(0,M.jsxs)(L.Z,{title:"智能推荐",placement:"bottom",centered:!0,height:"60%",width:1e3,closable:!0,style:{zIndex:9999},okText:"确定",cancelText:"取消",open:"智能推荐"===i.actionTabs.key,onCancel:function(){r({type:"classroomList/setActionTabs",payload:{key:""}})},onOk:l()(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,E.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===(t=g.shixun_list)||void 0===t?void 0:t.length)&&(0,M.jsx)(J.Z,{}),null==g||null===(n=g.shixun_list)||void 0===n?void 0:n.map((function(e,t){var n,i;return(0,M.jsxs)("div",{className:ne,style:{cursor:"auto"},children:[(0,M.jsx)(T.Z,{checked:b.includes(e.id),value:e.id,style:{marginTop:"3px"},disabled:null==e?void 0:e.need_authorize,onChange:function(t){b.indexOf(e.id);b.indexOf(e.id)>-1?_(b.filter((function(t){return t!==e.id}))):_(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)(Z.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,t){return(0,M.jsxs)("span",{className:"mr30",children:["第",t+1,"关 ",e," "]},t)}))}),(0,M.jsxs)("div",{className:"c-light-black mt10",children:[null!=e&&null!==(n=e.content)&&void 0!==n&&n.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})]})]},t)}))]})})}),(0,M.jsx)("div",{className:"tc mt20 hide",children:(0,M.jsx)(N.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:C.page||1,showQuickJumper:!0,total:null==g?void 0:g.shixuns_count,onChange:function(e){C.page=e,S(d()({},C))}})})]},"bottom")}))),be=w.Z.Search,_e=(0,x.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading.effects}}))((function(e){var t,n,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,H.Z.useForm()),h=(m()(p,1)[0],i.coursesLists),g=(0,f.useState)([]),v=m()(g,2),w=v[0],b=v[1],_=(0,f.useState)({page:1,type:"mine",order:"desc",limit:20,sort:"myshixuns_count",shixun_homework:!0}),j=m()(_,2),C=j[0],S=j[1];(0,f.useEffect)((function(){"选用实践课程"===i.actionTabs.key&&(o({type:"classroomList/getCoursesLists",payload:d()({},C)}),b([]))}),[i.actionTabs.key,u.categoryId,C]);var T=(0,he.P)(),L=m()(T,4),B=L[0],I=L[1],D=L[2],O=L[3],R=function(){var e=l()(s()().mark((function e(t){var n;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===(n=w[0])||void 0===n?void 0:n.id,stage_shixuns:t.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,E.L9)(["教学课堂","课程实验","选用实践课程"]),y.ZP.success("操作成功"),o({type:"classroomList/setActionTabs",payload:{}}),(0,P.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(t){return e.apply(this,arguments)}}();return"选用实践课程"!==i.actionTabs.key?null:(0,M.jsxs)(W.Z,{placement:"bottom",height:"100%",closable:!0,onClose:function(){o({type:"classroomList/setActionTabs",payload:{key:""}})},open:"选用实践课程"===i.actionTabs.key,rootClassName:q,footer:(0,M.jsxs)("div",{className:"tc",style:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,M.jsx)(Z.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)(Z.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",loading:a["classroomList/createCoursesHomework"],onClick:l()(s()().mark((function e(){var t,n;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===(t=w[0])||void 0===t?void 0:t.identifier,type:"subject",stage_item_id:[],sync_catelog:1,course_id:null===(n=i.detailTopBanner)||void 0===n?void 0:n.course_id});case 5:e.sent||R([]);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){C.keyword=e,e&&(0,fe.tk)({name:e,copywriting:e,position:"Subject"}),S(d()({},C))}})}),(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(){C.order="asc"===C.order?"desc":"asc",C.sort="shixuns_count",S(d()({},C))},children:["实训数",(0,M.jsxs)("p",{className:"edu-sorter current ".concat("shixuns_count"===C.sort&&C.order),children:[(0,M.jsx)("span",{className:"iconfont icon-sanjiaoxing-up"}),(0,M.jsx)("span",{className:"iconfont icon-sanjiaoxing-down"})]})]}),(0,M.jsxs)("li",{className:"current",onClick:function(){C.order="asc"===C.order?"desc":"asc",C.sort="myshixuns_count",S(d()({},C))},children:["学习人数",(0,M.jsxs)("p",{className:"edu-sorter current ".concat("myshixuns_count"===C.sort&&C.order),children:[(0,M.jsx)("span",{className:"iconfont icon-sanjiaoxing-up"}),(0,M.jsx)("span",{className:"iconfont icon-sanjiaoxing-down"})]})]}),(0,M.jsx)("li",{className:"".concat("all"===C.type&&"c-blue"," current"),onClick:function(){C.type="all",S(d()({},C))},children:"全部课程"}),(0,M.jsx)("li",{className:"".concat("mine"===C.type&&"c-blue"," current"),onClick:function(){C.type="mine",S(d()({},C))},children:"我的课程"})]})}),0===(null==h||null===(t=h.subject_list)||void 0===t?void 0:t.length)&&(0,M.jsx)(J.Z,{}),null==h||null===(n=h.subject_list)||void 0===n?void 0:n.map((function(e,t){var n,i,a,o,s,r;return(0,M.jsxs)("div",{className:te,style:{cursor:"auto"},children:[(0,M.jsx)(A.ZP,{checked:w.map((function(e){return e.id})).includes(e.id),value:e.id,style:{marginTop:"1px"},disabled:(null==e?void 0:e.need_authorize)||"未发布"==(null==e?void 0:e.shixun_tag_num_name),onChange:function(t){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)(k.Z,{zIndex:1e4,title:"实践课程需发布后才能发送到教学课堂,点击名称可前往课程详情",children:(0,M.jsx)("span",{style:{marginRight:"auto",background:"#999"},className:"tag-style current ml10",children:"未发布"})})]}),(0,M.jsx)(k.Z,{zIndex:1e4,title:"前往选用是进入实践课程的页面后,点击“发送”按钮,将所需实践项目发送至当前课堂",children:(0,M.jsx)(Z.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!==(n=e.content)&&void 0!==n&&n.member_user_names?(0,M.jsx)(k.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)(k.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)(k.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)(k.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)(N.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,current:C.page||1,showQuickJumper:!0,total:null==h?void 0:h.subjects_count,onChange:function(e){C.page=e,o({type:"classroomList/getCoursesLists",payload:d()({},C)})}})}),(0,M.jsx)(he.Z,{visible:B,inPaper:!1,onOk:R,onCancel:I,renderData:D,modalType:"multiple",type:"subject"})]},"bottom")})),je=n(81841),ke=function(e){var t,n=e.styles,i=void 0===n?{}:n,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:je.z3}),(0,M.jsx)("p",{className:"mt20 font14",children:"该".concat(a.category?"分组":"课程","无课程实验,可以下方按钮或右上方“选用实验”按钮创建作业")}),(0,M.jsxs)("div",{style:{marginTop:"30px"},children:[(0,M.jsx)(Z.ZP,{disabled:2===(null==s||null===(t=s.userInfo)||void 0===t?void 0:t.user_status),onClick:function(){o(!0)},type:"primary",style:{width:"128px",height:"40px",borderRadius:"4px",marginRight:"20px"},children:"选用实验"}),(0,M.jsx)(Z.ZP,{onClick:function(){(0,E.xg)("https://www.educoder.net/forums/4909")},type:"primary",style:{width:"128px",height:"40px",borderRadius:"4px"},children:"新建作业指引"})]})]})},Ce={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"},Se=n(51945),Ne=n(94408),Te=n(99238),Ze=n(33571),Le=n(41216),Ae=function(e){var t,n,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),_=e.selectshow,C=e.batchState,S=e.pageSize,N=e.page,Z=e.manageAllGroup,A=e.user,B=(0,x.useParams)(),I=(0,f.useState)([]),D=m()(I,2),O=D[0],R=D[1],G=(0,f.useState)(!1),z=m()(G,2),H=z[0],F=z[1],Y=(0,f.useState)(!1),V=m()(Y,2),W=V[0],K=V[1],U=(0,f.useState)(!0),J=m()(U,2),q=J[0],Q=J[1],X=(0,f.useRef)();function $(){return ee.apply(this,arguments)}function ee(){return(ee=l()(s()().mark((function e(){var t;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()({},B)});case 2:t=e.sent,R(t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}B.category=B.categoryId,B.id=B.coursesId,B.page=N,B.limit=S,(0,f.useEffect)((function(){var e;R([]),F(!1),new Date(null==r?void 0:r.student_passed_time).getTime()>new Date(null==r?void 0:r.end_time_s).getTime()&&null!=r&&null!==(e=r.status)&&void 0!==e&&e.includes("已截止")&&(null==r?void 0:r.challenge_count)-(null==r?void 0:r.finished_challenge_count)==0?(K(!1),Q(!1)):((null==r?void 0:r.challenge_count)-(null==r?void 0:r.finished_challenge_count)==0&&new Date(null==r?void 0:r.student_passed_time).getTime()<new Date(null==r?void 0:r.end_time_s).getTime()||(null==r?void 0:r.challenge_count)-(null==r?void 0:r.finished_challenge_count)==0&&new Date(null==r?void 0:r.student_passed_time).getTime()<new Date(null==r?void 0:r.late_time).getTime())&&(K(!0),Q(!1))}),[_]);var te=[{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,t){return 0===t.status.indexOf(e)}},{title:"提交情况",dataIndex:"statistics",key:"statistics",width:80,render:function(e){var t,n;return"--"===e?e:(0,M.jsxs)("span",{children:[(0,M.jsx)("span",{children:null==e||null===(t=e.split("/"))||void 0===t?void 0:t[0]})," / ",(0,M.jsx)("span",{children:null==e||null===(n=e.split("/"))||void 0===n?void 0:n[1]})]})}},{title:"截止时间",dataIndex:"end_time",key:"end_time",sorter:!0,showSorterTooltip:!1,sortOrder:"end_time"===B.order_by?"desc"===B.sort_direction?"descend":"ascend":null},{title:"补交时间",dataIndex:"late_time",key:"late_time",sorter:!0,showSorterTooltip:!1,sortOrder:"late_time"===B.order_by?"desc"===B.sort_direction?"descend":"ascend":null},{title:"分班老师",dataIndex:"teachers",key:"teachers",width:150,ellipsis:{showTitle:!1},render:function(e){return"--"!==e&&e?(0,M.jsx)("span",{title:e,children:e}):"--"}}],ne=function(e){var t;(0,me.tJ)(b,!0)&&(e.can_view_details?(0,E.xg)("/shixuns/".concat(e.shixun_identifier,"/challenges")):e.redo?L.Z.confirm({width:530,title:"提示",centered:!0,okText:"确定",cancelText:"再想想",content:(0,M.jsx)("div",{className:"tc font16",children:"您之前已经挑战过该实训,需要重新挑战"}),onOk:(t=l()(s()().mark((function t(){var n;return s()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,Ze.$Q)({id:e.myshixun_identifier,url:e.url});case 2:(n=t.sent)&&(0,Le.Z)({is_jupyter:!1,is_jupyter_lab:!1,shixunId:n.shixun_identifier,homework_common_id:e.homework_id,courseId:B.coursesId});case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})}):(0,Le.Z)({is_jupyter:!1,is_jupyter_lab:!1,shixunId:e.shixun_identifier,homework_common_id:e.homework_id,courseId:B.coursesId}))};return(0,M.jsxs)("div",{className:Ce.listItem,onClick:function(e){e.stopPropagation(),(!(0,P.GJ)()||!C||(0,P.GJ)()&&C&&X.current&&!X.current.contains(e.target))&&(0,E.xg)("/classrooms/".concat(B.coursesId,"/shixun_homework/").concat(r.homework_id,"/detail?tabs=0"))},children:[(0,P.GJ)()&&C&&(0,M.jsx)("span",{ref:X,children:(0,M.jsx)(T.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:Ce.info,children:[(0,M.jsxs)("div",{className:Ce.title,children:[(0,M.jsxs)("div",{className:Ce.titleLeft,style:(0,P.dE)()?{paddingRight:(null==r?void 0:r.challenge_count)-(null==r?void 0:r.finished_challenge_count)?60:140}:{},children:[(0,P.GJ)()&&(0,M.jsx)(Te.Z,{value:r.status,children:(0,M.jsx)(E.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:[r.status]})}),(0,P.dE)()&&(0,M.jsx)(E.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:r.status}),(0,M.jsx)("span",{className:Ce.name,children:r.name}),!(null===(t=r.schools)||void 0===t||!t.length)&&(0,M.jsx)(k.Z,{title:"该课程实验面向指定单位开放",children:(0,M.jsx)("i",{className:"iconfont icon-zhidinggongkai1 ml10 mr10 c-orange"})})]}),(0,M.jsxs)("div",{className:Ce.titleRight,children:[(0,P.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(t){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.stopPropagation(),t.preventDefault(),2!==(null==A||null===(n=A.userInfo)||void 0===n?void 0:n.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:B,type:2,manage_all_group:Z}});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:(0,M.jsxs)("aside",{className:Ce.flexBox,children:[(0,M.jsx)("i",{className:"iconfont icon-yishezhifabushijian1"}),(0,M.jsx)("div",{children:"发布"})]})}),(0,P.dE)()&&(0,M.jsxs)("div",{className:Ce.actionIcon,children:[W?(0,M.jsx)("i",{className:"iconfont icon-yiwancheng1"}):q?"":(0,M.jsx)("i",{className:"iconfont icon-jiezhihoutongguan"}),!(null!==(n=r.status)&&void 0!==n&&n.includes("已截止"))&&!(null!==(i=r.status)&&void 0!==i&&i.includes("导入"))&&(0,M.jsxs)("aside",{onClick:function(){var e=l()(s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),ne(r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),className:Ce.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(t){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(n=r.status)||void 0===n||!n.includes("导入")){e.next=2;break}return e.abrupt("return");case 2:t.stopPropagation(),t.preventDefault(),(0,E.xg)("/classrooms/".concat(B.coursesId,"/shixun_homework/").concat(r.homework_id,"/").concat(r.student_work_id,"/comment"));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),className:Ce.flexBox,style:{marginRight:10},children:[(0,M.jsx)("i",{className:"iconfont icon-chakanzuoye font14"}),(0,M.jsx)("div",{children:"查看作品"})]})]}),(0,P.GJ)()&&(0,M.jsx)(j.Z,{placement:"bottomCenter",overlayClassName:Ce.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(t){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.stopPropagation(),t.preventDefault(),2!==(null==A||null===(n=A.userInfo)||void 0===n?void 0:n.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:B,type:2}});case 6:case"end":return e.stop()}}),e)})));return function(t){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(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),b({type:"classroomList/setActionTabs",payload:{key:"立即截止",selectArrs:[null==r?void 0:r.homework_id],selectArrsAll:[r],params:B,type:2}});case 3:case"end":return e.stop()}}),e)})));return function(t){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(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.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(t){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(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),b({type:"classroomList/setActionTabs",payload:{key:"删除",selectArrs:[null==r?void 0:r.homework_id],selectArrsAll:w,params:B,status:null==r?void 0:r.status}});case 3:case"end":return e.stop()}}),e)})));return function(t){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(t){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.stopPropagation(),t.preventDefault(),b({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"成绩计算中,请稍候..."}}),e.next=5,(0,Ne.Vs)({categoryId:r.homework_id});case 5:n=e.sent,b({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),0===(null==n?void 0:n.status)&&y.ZP.success(null==n?void 0:n.message);case 8:case"end":return e.stop()}}),e)})));return function(t){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(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),ne(r);case 3:case"end":return e.stop()}}),e)})));return function(t){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:B}})},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(B.coursesId,"/shixun_homework/").concat(r.homework_id,"/detail?tabs=3"),children:"高级设置"})},6)]})},children:(0,M.jsxs)("aside",{onClick:function(e){return e.stopPropagation()},className:Ce.flexBox,style:{marginRight:6,cursor:"default"},children:[(0,M.jsx)("i",{className:"iconfont icon-gengduo4"}),(0,M.jsx)("div",{children:"更多"})]})})]})]}),(0,P.GJ)()&&(0,M.jsxs)("p",{className:Ce.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:Ce.iconV,onClick:function(){var e=l()(s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),H||$(),F(!H);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,M.jsx)("i",{className:"iconfont icon-".concat(H?"shouqi":"xiala2")})," "]})]}),(0,P.dE)()&&(0,M.jsxs)("span",{className:Ce.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,P.GJ)()&&!r.status.includes("未发布")&&H&&O.length>5&&(0,M.jsx)(Se.Z,{rowKey:"shixun_identifier",scroll:{y:240},onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:O,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(B.order_by=n.field),n.order||(B.sort_direction="asc"),"ascend"===n.order&&(B.sort_direction="asc"),"descend"===n.order&&(B.sort_direction="desc"),n.order||(B.sort_direction="asc"),$()},columns:te}),(0,P.GJ)()&&!r.status.includes("未发布")&&H&&O.length<6&&O.length>0&&(0,M.jsx)(Se.Z,{rowKey:"shixun_identifier",onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:O,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(B.order_by=n.field),n.order||(B.sort_direction="asc"),"ascend"===n.order&&(B.sort_direction="asc"),"descend"===n.order&&(B.sort_direction="desc"),n.order||(B.sort_direction="asc"),$()},columns:te})]})]},c)},Pe=n(66479),Be=n(31295),Ee=n(18695),Ie=n(57809),Me=n(30518),De=n(33656),Oe=n.n(De),Re=n(96631),Ge=n(92208),ze=["classroomList","dispatch","user","getData"];Y().extend(Oe());var He=function(e){var t,n,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)(T.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===(t=u.leftSearch?null==o?void 0:o.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(u.leftSearch)})):o)||void 0===t?void 0:t.length)?(0,M.jsx)(T.Z.Group,{value:s,onChange:function(e){r(e)},children:(0,M.jsx)(C.Z,{direction:"vertical",children:null===(n=u.leftSearch?null==o?void 0:o.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(u.leftSearch)})):o)||void 0===n?void 0:n.map((function(e,t){return(0,M.jsx)(T.Z,{value:e.id,children:null==e?void 0:e.name},t)}))})}):(0,M.jsx)(J.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 t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(u.rigthSearch)})):x)||void 0===i?void 0:i.length)?null===(a=u.rigthSearch?null==x?void 0:x.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(u.rigthSearch)})):x)||void 0===a?void 0:a.map((function(e,t){return(0,M.jsxs)(b.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,M.jsx)(_.Z,{children:null==e?void 0:e.name}),(0,M.jsx)(_.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(t){return t!==(null==e?void 0:e.id)})))}})})]},t)})):(0,M.jsx)(J.Z,{styles:{margin:"0 auto"}})})]})]})]})},Fe=(0,x.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,i,a,o,r,c=e.classroomList,u=e.dispatch,p=(e.user,e.getData),g=(h()(e,ze),(0,x.useParams)()),v=H.Z.useForm(),j=m()(v,1)[0],k=H.Z.useWatch("penalty_type",j),C="批量补交"===(null==c||null===(t=c.actionTabs)||void 0===t?void 0:t.key),S=(0,Ge.U)(Re.c_,d()(d()({},g),null==c||null===(n=c.actionTabs)||void 0===n?void 0:n.params)),N=m()(S,4),T=N[1],Z=N[2],A=N[3],P=(0,Ge.U)(Re.nP,{course_id:null==g?void 0:g.coursesId,homework_ids:null==c||null===(i=c.actionTabs)||void 0===i?void 0:i.selectArrs}),B=m()(P,4),I=B[2],D=B[3],O=(0,Ge.U)(Re.sm,{course_id:null==g?void 0:g.coursesId,homework_ids:null==c||null===(a=c.actionTabs)||void 0===a?void 0:a.selectArrs}),R=m()(O,3),G=R[1],z=R[2],F=function(){var e=l()(s()().mark((function e(){var t=arguments;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:{},I({}),e.next=4,Z({page:1,limit:2e4,homework_id:1===c.actionTabs.type?"":c.actionTabs.selectArrs[0]});case 4:e.sent;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,f.useEffect)((function(){C&&F()}),[C]),(0,M.jsxs)(L.Z,{centered:!0,title:null==c||null===(o=c.actionTabs)||void 0===o?void 0:o.key,width:800,open:C,cancelText:"暂不补交",okText:"开启补交",onCancel:function(){u({type:"classroomList/setActionTabs",payload:{}})},destroyOnClose:!0,confirmLoading:G,onOk:l()(s()().mark((function e(){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:j.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)(H.Z,{form:j,colon:!1,size:"large",initialValues:{unified_late:!1,penalty_type:2,late_penalty:20},onFinish:function(){var e=l()(s()().mark((function e(t){var n,i,a,o;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,z((null==A||null===(n=A.course_groups)||void 0===n?void 0:n.length)>0?{unified_late:(null==A||null===(i=A.course_groups)||void 0===i?void 0:i.length)<=0,allow_late_settings:[d()({},t)]}:d()({unified_late:(null==A||null===(a=A.course_groups)||void 0===a?void 0:a.length)<=0},t));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(t){return e.apply(this,arguments)}}(),children:[(0,M.jsxs)(b.Z,{wrap:!1,gutter:20,children:[(0,M.jsx)(_.Z,{flex:1,children:(0,M.jsx)(H.Z.Item,{label:"补交扣分",name:"late_penalty",rules:[{required:!0,validator:function(e,t,n){return 2===k&&t>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==k?"分":"%",max:1===k?Number.MAX_SAFE_INTEGER:100,addonBefore:(0,M.jsx)(H.Z.Item,{name:"penalty_type",noStyle:!0,normalize:function(e){return j.setFieldsValue({late_penalty:2==e?20:5}),e},children:(0,M.jsx)(Ie.default,{style:{width:100},options:[{value:2,label:"百分比"},{value:1,label:"分值"}]})})})})}),(0,M.jsx)(_.Z,{flex:"390px",children:(0,M.jsx)(H.Z.Item,{label:"补交截止时间",name:"late_time",rules:[{required:!0,validator:function(e,t,n){return t&&Y()(t).startOf("minute")<=Y()().startOf("minute")?Promise.reject("作业补交截止时间必须晚于此刻"):t&&Y()(t).startOf("minute")<=Y()(null==D?void 0:D.max_late_time).startOf("minute")?(y.ZP.warning("补交截止时间不能小于选中作业中最晚作业截止时间:".concat(null==D?void 0:D.max_late_time)),Promise.reject("")):Promise.resolve()}},{required:!0,message:"请先设置补交截止时间"}],children:(0,M.jsx)(Me.default,{placeholder:"请选择截止时间",style:{width:"100%"},disabledDate:function(e){return(0,E.BO)(e,{startTime:null==D?void 0:D.max_late_time})},disabledTime:function(e){return(0,E.hv)(e,{compared:null==D?void 0:D.max_late_time})},format:"YYYY-MM-DD HH:mm",showTime:{showSecond:!1,defaultValue:Y()("00:00:00","HH:mm:ss")}})})})]}),(null==A||null===(r=A.course_groups)||void 0===r?void 0:r.length)>0&&(0,M.jsx)(K.Z,{spinning:T,children:(0,M.jsx)(H.Z.Item,{name:"group_id",rules:[{required:!0,message:"请先选择班级"}],children:(0,M.jsx)(He,{data:(null==A?void 0:A.course_groups)||[]})})})]})]})})),Ye=["classroomList","globalSetting","shixunHomeworks","user","loading","dispatch","match"],Ve=(0,x.connect)((function(e){var t=e.classroomList,n=e.loading,i=e.globalSetting,a=e.shixunHomeworks,o=e.user;return{classroomList:t,globalSetting:i,loading:n.effects,shixunHomeworks:a,user:o}}))((function(e){var t,n,i,o,r,c,u,p,I=e.classroomList,D=(e.globalSetting,e.shixunHomeworks,e.user),H=e.loading,F=e.dispatch,Y=e.match,W=(h()(e,Ye),(0,x.useLocation)()),K=(0,x.useParams)(),U=(0,x.useSearchParams)(),q=m()(U,1)[0],Q=K.categoryId,X=(0,f.useState)([]),$=m()(X,2),ee=$[0],te=$[1],ne=(0,f.useState)([]),ie=m()(ne,2),ae=ie[0],oe=ie[1],se=I.detailShixunsList,re=I.detailLeftMenus,le=I.detailTopBanner,ce=I.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(q.get("tabs"))?String(parseInt(q.get("tabs"))):"0"}),je=m()(be,2),Se=je[0],Ne=je[1],Te=(0,f.useState)("默认排序"),Ze=m()(Te,2),Le=Ze[0],Ie=Ze[1],Me=(0,f.useState)(!1),De=m()(Me,2),Oe=De[0],Re=De[1],Ge=(0,f.useState)(!1),ze=m()(Ge,2),He=(ze[0],ze[1]),Ve=(0,f.useState)("fixed"),We=m()(Ve,2),Ke=We[0],Ue=We[1],Je=(0,f.useState)(document.getElementById("footer")),qe=m()(Je,1)[0],Qe=(0,f.useState)(1),Xe=m()(Qe,2),$e=Xe[0],et=Xe[1],tt=(0,f.useState)(!1),nt=m()(tt,2),it=nt[0];nt[1];Se.id=K.coursesId,Se.type=4,K.categoryId?Se.category=K.categoryId:delete Se.category,(0,f.useEffect)((function(){"清除选择数据"===I.actionTabs.key&&(te([]),oe([])),"目录重命名成功"===I.actionTabs.key&&st()}),[I.actionTabs.key]),(0,f.useEffect)((function(){"0"===q.get("tabs")&&(Se.status="0",Se.page=1,Ne(d()({},Se)))}),[q.get("tabs")]),(0,f.useEffect)((function(){var e,t;if(null!=D&&null!==(e=D.userInfo)&&void 0!==e&&e.login){var n,i=E.cX.getItem("".concat(null==D||null===(n=D.userInfo)||void 0===n?void 0:n.login).concat((0,P.GJ)()?"Teacher":"Student"),"ShixunHomeworks");i&&(Se.sort_by=null==i?void 0:i.type,Se.sort_direction=null==i?void 0:i.direction,Ie(null==i?void 0:i.name)),st(),(0,P.Rm)()&&ot()}else null!=D&&null!==(t=D.userInfo)&&void 0!==t&&t.username&&st()}),[null==D||null===(t=D.userInfo)||void 0===t?void 0:t.login,null==W?void 0:W.pathname]),(0,f.useEffect)((function(){window.addEventListener("scroll",at)}),[]);var at=function(){document.scrollingElement.scrollTop+window.innerHeight+(null==qe?void 0:qe.clientHeight)+150>document.body.clientHeight?Ue("absolute"):Ue("fixed")},ot=function(){F({type:"classroomList/getAssistantPermissions",payload:{course_id:Se.id}})},st=function(){te([]),oe([]),Ne(d()({},Se)),(0,P.GJ)()?F({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},Se),{},{type:4})}):F({type:"classroomList/getClassroomShixunsList",payload:d()(d()({},Se),{},{order:Se.status})})};function rt(){return(rt=l()(s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F({type:"classroomList/updateTaskPosition",payload:{category_id:Q,courseId:Se.id,task_ids:t,container_type:"shixun_homework"}});case 2:st();case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var lt=(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]),ct=(0,P.GJ)()?[{name:"默认排序",type:"position",direction:"desc"},{name:"创建时间升序",type:"created_at",direction:"asc"},{name:"创建时间降序",type:"created_at",direction:"desc"},{name:"更新时间升序",type:"updated_at",direction:"asc"},{name:"更新时间降序",type:"updated_at",direction:"desc"},{name:"实验名称升序",type:"name_pinyin",direction:"asc"},{name:"实验名称降序",type:"name_pinyin",direction:"desc"}]:[{name:"默认排序",type:null,direction:null},{name:"按发布时间升序",type:"created_at",direction:"asc"},{name:"按发布时间降序",type:"created_at",direction:"desc"},{name:"按截止时间升序",type:"updated_at",direction:"asc"},{name:"按截止时间降序",type:"updated_at",direction:"desc"},{name:"实验名称升序",type:"name_pinyin",direction:"asc"},{name:"实验名称降序",type:"name_pinyin",direction:"desc"}];re.course_modules&&(p=I.detailLeftMenus.course_modules.filter((function(e){return"shixun_homework"===e.type}))[0]);var dt=(0,M.jsx)("div",{className:Ce.moveCategory,onMouseLeave:function(e){return ve(!1)},children:(0,M.jsxs)(v.Z,{onClick:function(){var e=l()(s()().mark((function e(t){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.item,n=t.key,t.keyPath,t.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(Se.id,"/homework_commons/move_to_category.json"),{method:"post",body:{homework_ids:ee,new_category_id:n}});case 6:0===e.sent.status&&(y.ZP.success("操作成功"),st(),He(!1),F({type:"classroomList/getClassroomLeftMenus",payload:{id:K.coursesId}}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),style:{maxHeight:300,width:240,overflow:"auto"},children:[(0,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,t){var n;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===(n=e.third_category)||void 0===n?void 0:n.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(),F({type:"classroomList/setActionTabs",payload:{key:"添加目录",params:Se,selectArrs:{category_id:null==se?void 0:se.main_category_id,type:"shixun_homework"}}})},children:"新建子目录..."})]})}),ut=null===(n=[{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,P.GJ)()||(0,P.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===n?void 0:n.map((function(e){return delete e.isShow,e})),mt="默认排序"===Le,pt=(0,f.useMemo)((function(){var e=!(0,P.GJ)()&&!(0,P.Jd)(),t=null==le?void 0:le.excellent;return e&&t}),[D,I]),ht=(0,f.useMemo)((function(){return(null==se?void 0:se.min_finished_game)>0}),[I]),ft=(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}),[I]);return(0,M.jsxs)("section",{children:[(0,M.jsx)("aside",{className:Ce.bg,children:(0,M.jsxs)(b.Z,{align:"middle",children:[(0,M.jsx)(_.Z,{flex:"1",children:!!se.main_category_id&&(0,M.jsxs)(v.Z,{mode:"horizontal",onSelect:function(e){var t=e.key;Se.status=t,Se.page=1,x.history.replace("".concat(W.pathname,"?tabs=").concat(t)),st()},selectedKeys:[Se.status],children:[!(0,P.GJ)()&&[{name:"全部",id:0},{name:"提交中",id:1},{name:"补交中",id:2},{name:"已截止",id:5}].map((function(e,t){return(0,M.jsx)(v.Z.Item,{children:e.name},null==e?void 0:e.id)})),(0,P.GJ)()&&[{name:"全部",id:0},{name:"未发布",id:1},{name:"未开始",id:4},{name:"进行中",id:2},{name:"已截止",id:3}].map((function(e,t){return(0,M.jsxs)(v.Z.Item,{children:[(0,M.jsx)("span",{className:"c-grey-666 mr20",children:e.name}),0===t&&(0,P.GJ)()&&(0,M.jsx)("span",{className:"c-grey-999",children:null==se?void 0:se.all_count}),1===t&&(0,P.GJ)()&&(0,M.jsx)("span",{className:"c-grey-999",children:null==se?void 0:se.unpublished_count}),2===t&&(0,P.GJ)()&&(0,M.jsx)("span",{className:"c-grey-999",children:null==se?void 0:se.not_start_count}),3===t&&(0,P.GJ)()&&(0,M.jsx)("span",{className:"c-grey-999",children:null==se?void 0:se.in_progress_count}),4===t&&(0,P.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)(_.Z,{className:"mr20 gutter-row",children:(0,M.jsx)("div",{className:Ce.containerTitle,children:(0,P.GJ)()&&"未分配目录"!==(0,E.Oo)(null==re?void 0:re.course_modules,Q)&&(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:6},children:[(0,M.jsx)(j.Z,{className:"ml10",placement:"bottom",arrow:!0,dropdownRender:function(){return(0,M.jsxs)(v.Z,{children:[(0,M.jsx)(v.Z.Item,{onClick:function(){F({type:"classroomList/setActionTabs",payload:{key:"导出成绩",type:null==se?void 0:se.main_category_name,exportType:"practice",category_id:Se.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){F({type:"classroomList/setActionTabs",payload:{key:K.categoryId?"目录重命名":"添加目录",params:Se,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(){st()}}})},children:(0,M.jsx)(k.Z,{title:K.categoryId?"目录重命名":"新建子目录",children:(0,M.jsx)("span",{className:K.categoryId?"".concat(Ce.iconH," iconfont icon-zhongmingmingmulu"):"".concat(Ce.iconH," iconfont icon-xinjianmulu1")})})}),(0,M.jsx)(j.Z,{className:"ml10",disabled:2===(null==D||null===(i=D.userInfo)||void 0===i?void 0:i.user_status),dropdownRender:function(){return(0,M.jsxs)(v.Z,{children:[(0,M.jsx)(v.Z.Item,{onClick:function(){var e;!(0,P.Rm)()||null!==(e=I.AssistantObject)&&void 0!==e&&null!==(e=e.practice)&&void 0!==e&&e.can_create?F({type:"classroomList/setActionTabs",payload:{key:"选用实践项目",params:Se}}):y.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"从实践项目添加"},1),(0,M.jsx)(v.Z.Item,{onClick:function(){var e;!(0,P.Rm)()||null!==(e=I.AssistantObject)&&void 0!==e&&null!==(e=e.practice)&&void 0!==e&&e.can_create?F({type:"classroomList/setActionTabs",payload:{key:"选用实践课程",params:Se}}):y.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"从实践课程添加"},2),(0,M.jsx)(v.Z.Item,{onClick:function(){var e;!(0,P.Rm)()||null!==(e=I.AssistantObject)&&void 0!==e&&null!==(e=e.practice)&&void 0!==e&&e.can_create?F({type:"classroomList/setActionTabs",payload:{key:"导入外部成绩",type:"practice"}}):y.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:"导入外部成绩"},3)]})},children:(0,M.jsxs)("span",{className:2===(null==D||null===(o=D.userInfo)||void 0===o?void 0:o.user_status)?Ce.selectBtn1:Ce.selectBtn,children:[(0,M.jsx)("span",{children:(0,M.jsx)("i",{className:"iconfont icon-tianjiadaohang"})}),(0,M.jsx)(k.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:Ce.action,children:[(0,M.jsx)("div",{children:(0,M.jsx)(j.Z,{dropdownRender:function(){return(0,M.jsx)(v.Z,{selectedKeys:[Le],children:null==ct?void 0:ct.map((function(e,t){return(0,M.jsx)(v.Z.Item,{onClick:function(){var t;Se.sort_by=e.type,Se.sort_direction=e.direction,Se.page=1,Ie(e.name),E.cX.setItem("".concat(null==D||null===(t=D.userInfo)||void 0===t?void 0:t.login).concat((0,P.GJ)()?"Teacher":"Student"),e,"ShixunHomeworks"),(0,P.GJ)()?F({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},Se),{},{type:4})}):F({type:"classroomList/getClassroomShixunsList",payload:d()({},Se)})},children:e.name},e.name)}))})},children:(0,M.jsxs)("span",{className:"".concat(Ce.btn," ").concat(mt?Ce.btnSort:""),onMouseEnter:function(e){return ve(!1)},children:[(0,M.jsx)("i",{className:"iconfont icon-paixu font14 mr5"}),Le]})})}),mt&&(0,M.jsx)(k.Z,{title:"优先按照调整排序结果展示,未设置排序时,按照".concat((0,P.GJ)()?"创建时间降序":5==Se.status?"截止时间降序":"截止时间升序","排列"),children:(0,M.jsx)("span",{className:Ce.tips,children:(0,M.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2"})})}),(0,M.jsx)(w.Z.Search,{allowClear:!0,placeholder:"请输入实验名称",onSearch:function(e){Se.search=e.trim(),Se.page=1,st()},style:{width:220,marginLeft:"auto"}})]}),pt&&(0,M.jsxs)(b.Z,{justify:"space-between",className:Ce.progressInfo,children:[(0,M.jsx)(_.Z,{children:(0,M.jsxs)(C.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]})]})}),ht&&(0,M.jsxs)(_.Z,{children:["通过",null==se?void 0:se.min_finished_game,"关获得满分,距离MOOC实训作业满分还差",ft,"关"]})]}),(0,M.jsxs)("aside",{className:"minH500 skt-loading relative pb40 mb30",children:[(0,M.jsxs)(S.Z,{loading:H[(0,P.GJ)()?"classroomList/getClassroomTeacherShixunsList":"classroomList/getClassroomShixunsList"],active:!0,paragraph:{rows:5},className:"mt30",children:[0===(null==se?void 0:se.all_count)&&(0,P.GJ)()?(0,M.jsx)(ke,{params:Se,user:D,setisshowmodal:Re,dispatch:F}):0===(null==se?void 0:se.task_count)&&(0,M.jsx)(J.Z,{}),(0,M.jsxs)("aside",{className:"animated fadeIn",children:[se.homeworks&&se.homeworks.map((function(e,t){return(0,M.jsx)(Ae,{batchState:!0,v:e,k:t,match:Y,selectArrs:ee,setSelectArrs:te,setSelectArrsAll:oe,selectArrsAll:ae,classroomList:I,dispatch:F,params:Se,user:D,page:K.page||1,pageSize:Se.limit||20,selectshow:it,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)(N.Z,{showSizeChanger:!0,current:Se.page||1,pageSize:Se.limit||20,onChange:function(e,t){Se.page=e,Se.limit=t,st()},total:se.query_total_count})})]})]}),(0,M.jsxs)("div",{className:Ce.fixedBottom,style:{bottom:ee.length?0:-60,position:ee.length?Ke:"fixed",left:"fixed"===Ke?"50%":"317px"},children:[(0,M.jsx)("div",{className:Ce.left}),(0,M.jsx)("div",{className:Ce.right,children:(0,P.GJ)()&&(null==se?void 0:se.all_count)>0&&(0,M.jsxs)("aside",{className:[Ce.acitons].join(" "),children:[(0,M.jsx)("div",{style:{width:130},children:(0,P.GJ)()&&(0,M.jsx)(T.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?(te(se.homeworks.map((function(e){return e.homework_id}))),oe(a()(se.homeworks))):(te([]),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)(_.Z,{flex:1,children:(0,M.jsxs)(b.Z,{wrap:!1,align:"middle",gutter:8,children:[(0,M.jsx)(_.Z,{children:(0,M.jsx)(j.Z,{placement:"top",menu:{items:ut,onClick:function(e){var t,n,i,a=e.key;"1"!==a&&"2"!==a||!(0,P.Rm)()||null!==(t=I.AssistantObject)&&void 0!==t&&null!==(t=t.practice)&&void 0!==t&&t.can_publish?2!==(null==D||null===(n=D.userInfo)||void 0===n?void 0:n.user_status)||"1"!==a?""!=ee?F({type:"classroomList/setActionTabs",payload:{key:"1"===a?"立即发布":"2"===a?"立即截止":"3"===a?"删除":"5"===a?"批量补交":null===(i=ut[Number(a)-1])||void 0===i?void 0:i.label,selectArrs:ee,selectArrsAll:ae,type:"1"===a||"2"===a?1:"",params:Se}}):y.ZP.error("请选择你要操作的任务"):(0,me.Rd)():y.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}},children:(0,M.jsx)(Z.ZP,{type:"primary",icon:(0,M.jsx)("i",{className:"iconfont icon-piliangcaozuo3"}),children:"批量操作"})})}),(0,M.jsx)(_.Z,{children:(0,M.jsx)(Z.ZP,{type:"primary",icon:(0,M.jsx)("i",{className:"iconfont icon-tiaozhengpaixu2"}),onClick:function(){var e={courseId:Se.id,container_type:"shixun_homework"};Q&&(e.category_id=Q),F({type:"classroomList/getAllTaskList",payload:e}),F({type:"classroomList/setActionTabs",payload:{key:"调整排序"}})},children:"调整排序"})}),(0,M.jsx)(_.Z,{children:(0,M.jsx)(j.Z,{placement:"topLeft",dropdownRender:function(){return dt},getPopupContainer:function(e){return null==e?void 0:e.parentNode},children:(0,M.jsxs)(Z.ZP,{type:"primary",icon:(0,M.jsx)("i",{className:"iconfont icon-yidongmulu"}),children:["移动到目录 ",(0,M.jsx)(B.Z,{})]})})})]})}),(0,M.jsx)(_.Z,{children:(0,M.jsx)(Z.ZP,{type:"primary",ghost:!0,onClick:function(){te&&te([]),He(!1)},children:"取消操作"})})]})]})]})})]})]}),"批量补交"===(null==I||null===(u=I.actionTabs)||void 0===u?void 0:u.key)&&(0,M.jsx)(Fe,{getData:st}),"选用实践课程"===I.actionTabs.key?(0,M.jsx)(_e,{}):null,(0,M.jsx)(Pe.Z,{onOk:function(){st()}}),(0,M.jsx)(Be.Z,{onOk:function(){}}),"选用实践项目"===I.actionTabs.key?(0,M.jsx)(xe,{}):null,"从课堂实验添加"===I.actionTabs.key?(0,M.jsx)(ye,{}):null,(0,M.jsx)(V,{}),(0,M.jsx)(O,{}),(0,M.jsx)(R.Z,{courseEndTime:null==se?void 0:se.course_end_time}),(0,M.jsx)(G.Z,{visible:"立即截止"===I.actionTabs.key,courseEndTime:null==se?void 0:se.course_end_time,courseId:K.coursesId,homeworkIds:I.actionTabs.selectArrs,isBatch:2!==I.actionTabs.type,successCallback:function(){(0,P.GJ)()?F({type:"classroomList/getClassroomTeacherShixunsList",payload:d()(d()({},I.actionTabs.params),{},{type:4})}):F({type:"classroomList/getClassroomShixunsList",payload:d()({},I.actionTabs.params)})}}),(0,M.jsx)(z,{}),(0,M.jsx)(we,{}),(0,M.jsx)(Ee.Z,{visible:"调整排序"===I.actionTabs.key,callback:function(e){return rt.apply(this,arguments)},data:lt,onCancel:function(){F({type:"classroomList/setActionTabs",payload:{key:""}})}}),(0,M.jsx)(L.Z,{title:"选用实验",open:Oe,centered:!0,onCancel:function(){return Re(!1)},onOk:function(){var e,t;!(0,P.Rm)()||null!==(e=I.AssistantObject.practice)&&void 0!==e&&e.can_create?2!==(null===(t=D.userInfo)||void 0===t?void 0:t.user_status)?(F(1===$e?{type:"classroomList/setActionTabs",payload:{key:"选用实践项目",params:Se}}:{type:"classroomList/setActionTabs",payload:{key:"选用实践课程",params:Se}}),Re(!1)):(0,me.Rd)():y.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:(0,M.jsx)("div",{children:(0,M.jsxs)(A.ZP.Group,{onChange:function(e){et(e.target.value)},value:$e,children:[(0,M.jsx)(A.ZP,{style:{marginTop:"15px"},value:1,children:"从实践项目添加(可选择多个实践项目加入作业)"}),(0,M.jsx)(A.ZP,{style:{marginTop:"15px"},value:2,children:"从实践课程添加(将实践课程中全部的实践项目都加入作业)"})]})})})]})}))},18695:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var i=n(7557),a=n.n(i),o=n(41498),s=n.n(o),r=n(82242),l=n.n(r),c=n(79800),d=n.n(c),u=n(59301),m=n(43418),p=n(66999),h=n(95237),f=n(6848),g="wrap___KDoq2",x="tip___WEJuX",v="listWrap___IJDX4",y="li___r5con",w="nameWrap___PUyEz",b="name___xuUMY",_="tag___l5CW2",j=n(29747),k=n(32007),C=n(37712),S=function(e){var t,n,i=e.type,o=void 0===i?1:i,r=e.data,c=e.visible,S=e.callback,N=e.onCancel,T=(0,u.useState)([]),Z=d()(T,2),L=Z[0],A=Z[1],P=(0,k.useSelector)((function(e){return e.loading}));(0,u.useEffect)((function(){A(r)}),[JSON.stringify(r)]);var B=function(e){var t={};if(1===o){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"未开始":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"提交中":{background:"rgba(0,177,135,0.2)",color:"#00B187"},"已截止":{background:"rgba(229,51,51,0.2)",color:"#E53333"}}[e]}if(2===o){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"预发布":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"已发布":{background:"rgba(0,177,135,0.2)",color:"#00B187"}}[e]}return(0,C.jsx)("div",{className:_,style:l()({},t),children:e})},E=function(){var e=s()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:S(L.map((function(e){return e.task_id})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,C.jsx)(m.Z,{centered:!0,destroyOnClose:!0,open:c,onCancel:N,onOk:E,confirmLoading:null==P||null===(t=P.effects)||void 0===t?void 0:t["classroomList/updateTaskPosition"],okText:"保存",title:"调整排序",width:850,children:(0,C.jsxs)("div",{className:g,children:[(0,C.jsxs)("div",{className:x,children:[(0,C.jsx)("i",{className:"iconfont icon-tishi9 font14 mr10"}),(0,C.jsx)("span",{children:"提示:请在列表中长按鼠标左键,进行拖放排序。完成排序后请点击“保存”"})]}),(0,C.jsx)(p.Z,{loading:null==P||null===(n=P.effects)||void 0===n?void 0:n["classroomList/getAllTaskList"],active:!0,className:"mt20",paragraph:{rows:5},children:(0,C.jsx)(j.Z5,{onDragEnd:function(e){return function(e,t){if(e.destination){var n=function(e,t,n){var i=Array.from(e),a=i.splice(t,1),o=d()(a,1)[0];return i.splice(n,0,o),i}(t,e.source.index,e.destination.index);A(n)}}(e,L)},children:(0,C.jsx)(j.bK,{droppableId:"droppable",children:function(e,t){return(0,C.jsxs)("div",l()(l()({ref:e.innerRef},e.droppableProps),{},{className:v,children:[L.map((function(e,t){return(0,C.jsx)(j._l,{draggableId:e.task_id.toString(),index:t,children:function(t,n){return(0,C.jsxs)("div",l()(l()(l()({ref:t.innerRef},t.draggableProps),t.dragHandleProps),{},{className:y,children:[(0,C.jsxs)(h.Z,{align:"middle",children:[(0,C.jsx)("div",{className:w,children:(0,C.jsx)(f.Z,{title:null==e?void 0:e.task_name,children:(0,C.jsx)("div",{className:b,children:null==e?void 0:e.task_name})})}),B(null==e?void 0:e.status)]}),(0,C.jsx)(h.Z,{align:"middle",className:"font12 mt10",children:(0,C.jsxs)("span",{className:"mr30 c-grey-666",children:["管理员",(0,C.jsx)("span",{className:"ml5 c-black",children:(null==e?void 0:e.user_name)||"--"})]})})]}))}},e.task_id)})),e.placeholder]}))}})})})]})})}},92208:function(e,t,n){"use strict";n.d(t,{U:function(){return m}});var i=n(7557),a=n.n(i),o=n(82242),s=n.n(o),r=n(41498),l=n.n(r),c=n(79800),d=n.n(c),u=n(59301);function m(e,t){var n=(0,u.useState)(t),i=d()(n,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 n=l()(a()().mark((function n(i){var l,c,d,u=arguments;return a()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return l=u.length>1&&void 0!==u[1]&&u[1],c=l?t:s()(s()({},o),i),h(!0),r(c),n.next=6,e(c);case 6:return d=n.sent,h(!1),v(d),n.abrupt("return",d);case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return[o,p,y,x]}},41216:function(e,t,n){"use strict";n.d(t,{_:function(){return g}});var i=n(7557),a=n.n(i),o=n(41498),s=n.n(o),r=n(16896),l=n(43418),c=n(8591),d=n(51945),u=n(66621),m=(n(59301),n(37712)),p=function(){var e=s()(a()().mark((function e(t){var n,i,o,s,l,c,d;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.is_jupyter,i=t.is_jupyter_lab,o=t.shixunId,s=t.homework_common_id,l=t.courseId,!n&&!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(t){return e.apply(this,arguments)}}(),h=function e(t,n,i){var o,d;t=null!==(o=t)&&void 0!==o&&o.includes(".json")?t:"".concat(t,".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:t});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:n});case 8:if(null==(l=a.sent)||!l.game_identifier){a.next=12;break}return(0,u.xg)("/tasks/".concat(i,"/").concat(n,"/").concat(l.game_identifier)),a.abrupt("return");case 12:2===(null==l?void 0:l.status)?e(null==l?void 0:l.message,n,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(t,n){var i,o,s,c,u,h,f;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.is_jupyter,o=n.is_jupyter_lab,e.next=3,(0,r.WT)(t);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,t){var n=t||{},i=n.course_identifier,a=n.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,t){var n=t.course_identifier,a=t.id,s=t.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:n})},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(t,n){return e.apply(this,arguments)}}();t.Z=p},92051:function(e,t){"use strict";t.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(92310),a=n.n(i),o=n(59301),s=n(36355),r=n(17313),l=n(83116),c=n(37613);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:a,textPaddingInline:o,orientationMargin:s,verticalMarginInline:l}=e;return{[t]: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${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${a}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*s+"%"},"&::after":{width:100-100*s+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*s+"%"},"&::after":{width:100*s+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${a}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var u=(0,l.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]])}return n};var p=e=>{const{getPrefixCls:t,direction:n,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=t("divider",r),[b,_]=u(w),j=c.length>0?`-${c}`:c,k=!!f,C="left"===c&&null!=d,S="right"===c&&null!=d,N=a()(w,null==i?void 0:i.className,_,`${w}-${l}`,{[`${w}-with-text`]:k,[`${w}-with-text${j}`]:k,[`${w}-dashed`]:!!g,[`${w}-plain`]:!!x,[`${w}-rtl`]:"rtl"===n,[`${w}-no-default-orientation-margin-left`]:C,[`${w}-no-default-orientation-margin-right`]:S},p,h),T=o.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),Z=Object.assign(Object.assign({},C&&{marginLeft:T}),S&&{marginRight:T});return b(o.createElement("div",Object.assign({className:N,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:Z},f)))}},43428:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});var i=n(92310),a=n.n(i),o=n(81162),s=n(54099),r=n(43403),l=n(19171),c=n(59301),d=c.createContext(null),u=c.createContext({}),m=d,p=n(24018),h=n(33614),f=n(16934),g=n(20287),x=n(47413),v=n(83794);var y=function(e){var t=e.prefixCls,n=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(t,"-content"),n),style:(0,o.Z)({},i),"aria-modal":"true",role:"dialog",ref:p},d),s))},w=n(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 _={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function j(e,t){var n,i,r,l,d=e.prefixCls,u=e.open,v=e.placement,w=e.inline,j=e.push,k=e.forceRender,C=e.autoFocus,S=e.keyboard,N=e.rootClassName,T=e.rootStyle,Z=e.zIndex,L=e.className,A=e.id,P=e.style,B=e.motion,E=e.width,I=e.height,M=e.children,D=e.contentWrapperStyle,O=e.mask,R=e.maskClosable,G=e.maskMotion,z=e.maskClassName,H=e.maskStyle,F=e.afterOpenChange,Y=e.onClose,V=e.onMouseEnter,W=e.onMouseOver,K=e.onMouseLeave,U=e.onClick,J=e.onKeyDown,q=e.onKeyUp,Q=c.useRef(),X=c.useRef(),$=c.useRef();c.useImperativeHandle(t,(function(){return Q.current}));c.useEffect((function(){var e;u&&C&&(null===(e=Q.current)||void 0===e||e.focus({preventScroll:!0}))}),[u]);var ee=c.useState(!1),te=(0,s.Z)(ee,2),ne=te[0],ie=te[1],ae=c.useContext(m),oe=null!==(n=null!==(i=null===(r=!1===j?{distance:0}:!0===j?{}:j||{})||void 0===r?void 0:r.distance)&&void 0!==i?i:null==ae?void 0:ae.pushDistance)&&void 0!==n?n:180,se=c.useMemo((function(){return{pushDistance:oe,push:function(){ie(!0)},pull:function(){ie(!1)}}}),[oe]);c.useEffect((function(){var e,t;u?null==ae||null===(e=ae.push)||void 0===e||e.call(ae):null==ae||null===(t=ae.pull)||void 0===t||t.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"},G,{visible:u}),(function(e,t){var n=e.className,i=e.style;return c.createElement("div",{className:a()("".concat(d,"-mask"),n,z),style:(0,o.Z)((0,o.Z)({},i),H),onClick:R&&u?Y:void 0,ref:t})})),le="function"==typeof B?B(v):B,ce={};if(ne&&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(E):ce.height=b(I);var de={onMouseEnter:V,onMouseOver:W,onMouseLeave:K,onClick:U,onKeyDown:J,onKeyUp:q},ue=c.createElement(f.default,(0,h.Z)({key:"panel"},le,{visible:u,forceRender:k,onVisibleChanged:function(e){null==F||F(e)},removeOnLeave:!1,leavedClassName:"".concat(d,"-content-wrapper-hidden")}),(function(t,n){var i=t.className,s=t.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:A,containerRef:n,prefixCls:d,className:L,style:P},de),M))})),me=(0,o.Z)({},T);return Z&&(me.zIndex=Z),c.createElement(m.Provider,{value:se},c.createElement("div",{className:a()(d,"".concat(d,"-").concat(v),N,(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 t=e.keyCode,n=e.shiftKey;switch(t){case g.Z.TAB:var i;if(t===g.Z.TAB)if(n||document.activeElement!==$.current){if(n&&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:Y&&S&&(e.stopPropagation(),Y(e))}}},re,c.createElement("div",{tabIndex:0,ref:X,style:_,"aria-hidden":"true","data-sentinel":"start"}),ue,c.createElement("div",{tabIndex:0,ref:$,style:_,"aria-hidden":"true","data-sentinel":"end"})))}var k=c.forwardRef(j);var C=function(e){var t=e.open,n=void 0!==t&&t,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,_=void 0===b||b,j=e.getContainer,C=e.forceRender,S=e.afterOpenChange,N=e.destroyOnClose,T=e.onMouseEnter,Z=e.onMouseOver,L=e.onMouseLeave,A=e.onClick,P=e.onKeyDown,B=e.onKeyUp,E=e.panelRef,I=c.useState(!1),M=(0,s.Z)(I,2),D=M[0],O=M[1];var R=c.useState(!1),G=(0,s.Z)(R,2),z=G[0],H=G[1];(0,l.Z)((function(){H(!0)}),[]);var F=!!z&&n,Y=c.useRef(),V=c.useRef();(0,l.Z)((function(){F&&(V.current=document.activeElement)}),[F]);var W=c.useMemo((function(){return{panel:E}}),[E]);if(!C&&!D&&!F&&N)return null;var K={onMouseEnter:T,onMouseOver:Z,onMouseLeave:L,onClick:A,onKeyDown:P,onKeyUp:B},U=(0,o.Z)((0,o.Z)({},e),{},{open:F,prefixCls:a,placement:m,autoFocus:h,keyboard:g,width:v,mask:w,maskClosable:_,inline:!1===j,afterOpenChange:function(e){var t,n;(O(e),null==S||S(e),e||!V.current||null!==(t=Y.current)&&void 0!==t&&t.contains(V.current))||(null===(n=V.current)||void 0===n||n.focus({preventScroll:!0}))},ref:Y},K);return c.createElement(u.Provider,{value:W},c.createElement(r.Z,{open:F||C||D,autoDestroy:!1,getContainer:j,autoLock:w&&(F||D)},c.createElement(k,U)))},S=n(62892),N=n(36355),T=n(32441),Z=n(47729);var L=e=>{const{prefixCls:t,title:n,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:`${t}-close`},e)),[l]),[g,x]=(0,Z.Z)(r,s,f,void 0,!0),v=c.useMemo((()=>n||g?c.createElement("div",{style:d,className:a()(`${t}-header`,{[`${t}-header-close-only`]:g&&!n&&!o})},c.createElement("div",{className:`${t}-header-title`},x,n&&c.createElement("div",{className:`${t}-title`},n)),o&&c.createElement("div",{className:`${t}-extra`},o)):null),[g,x,o,d,t,n]),y=c.useMemo((()=>{if(!i)return null;const e=`${t}-footer`;return c.createElement("div",{className:e,style:p},i)}),[i,p,t]);return c.createElement("div",{className:`${t}-wrapper-body`,style:u},v,c.createElement("div",{className:`${t}-body`,style:m},h),y)},A=n(33234),P=n(83116),B=n(37613);var E=e=>{const{componentCls:t,motionDurationSlow:n}=e,i={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-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 I=e=>{const{componentCls:t,zIndexPopup:n,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=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:a,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:i,pointerEvents:"auto"},[b]:{position:"absolute",zIndex:n,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},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:a,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-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}},[`${t}-extra`]:{flex:"none"},[`${t}-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"}},[`${t}-title`]:{flex:1,margin:0,color:x,fontWeight:e.fontWeightStrong,fontSize:c,lineHeight:d},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:l,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${y}px ${w}px`,borderTop:`${u}px ${m} ${p}`},"&-rtl":{direction:"rtl"}}}};var M=(0,P.Z)("Drawer",(e=>{const t=(0,B.TS)(e,{});return[I(t),E(t)]}),(e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}))),D=n(11575),O=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]])}return n};const R={distance:180},G=e=>{const{rootClassName:t,width:n,height:i,size:o="default",mask:s=!0,push:r=R,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:_}=c.useContext(N.E_),j=w("drawer",m),[k,Z]=M(j),P=void 0===p&&y?()=>y(document.body):p,B=a()({"no-mask":!s,[`${j}-rtl`]:"rtl"===b},t,Z);const E=c.useMemo((()=>null!=n?n:"large"===o?736:378),[n,o]),I=c.useMemo((()=>null!=i?i:"large"===o?736:378),[i,o]),G={motionName:(0,S.m)(j,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},z=(0,D.H)();return k(c.createElement(A.BR,null,c.createElement(T.Ux,{status:!0,override:!0},c.createElement(C,Object.assign({prefixCls:j,onClose:u,maskMotion:G,motion:e=>({motionName:(0,S.m)(j,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},v,{open:null!=l?l:g,mask:s,push:r,width:E,height:I,style:Object.assign(Object.assign({},null==_?void 0:_.style),h),className:a()(null==_?void 0:_.className,f),rootClassName:B,getContainer:P,afterOpenChange:null!=d?d:x,panelRef:z}),c.createElement(L,Object.assign({prefixCls:j},v,{onClose:u}))))))};G._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:i,placement:o="right"}=e,s=O(e,["prefixCls","style","className","placement"]),{getPrefixCls:r}=c.useContext(N.E_),l=r("drawer",t),[d,u]=M(l),m=a()(l,`${l}-pure`,`${l}-${o}`,u,i);return d(c.createElement("div",{className:m,style:n},c.createElement(L,Object.assign({prefixCls:l},s))))};var z=G},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tX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