|
|
(self.webpackChunk=self.webpackChunk||[]).push([[83935,13488,63527,4977,4725],{3148:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(81978),i=n(59301),r={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"},a=n(1393),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},25032:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(81978),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=n(1393),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},65547:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(81978),i=n(59301),r={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"},a=n(1393),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},8324: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={},o=null,i=!1,r=!1,a=null,s=!1,l=null,c=null,u=0;u<arguments.length;u++){var d=arguments[u];if(null!==d)switch(_typeof(d)){case"number":t=d.toFixed(1);break;case"string":d.match(new RegExp("^[0-9]\\.[0-9]+$"))?t=d:a=d;break;case"object":void 0!==d.is3D?o=d:n=d;break;case"boolean":i=d,r=!0}}null===o&&(o={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||r||(i=!0)),null!==a&&void 0===n.id&&(n.id=a);var p="",m=!1,h=null,f=null,g=null,v=!1,x=null,w=null,y=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 j(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,O(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,I(e,t))},e.getHTML5CodebaseVersion=function(){return f},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=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 o,i="auto",r=n.id,a=!1,l=0;l<arguments.length;l++){var c=arguments[l];"string"==typeof c?(c=c.toLowerCase()).match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?i=c:r=arguments[l]:"boolean"==typeof c?a=c:c instanceof HTMLElement&&(o=c)}function u(){if(s){i=E(i);var l=o||document.getElementById(r);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"!==i||(delete n.width,delete n.height),h=i,"screenshot"===i)L(l,n);else{var c=!1;n.hasOwnProperty("playButton")&&n.playButton||n.hasOwnProperty("clickToLoad")&&n.clickToLoad?c=!0:n.hasOwnProperty("playButtonAutoDecide")&&n.playButtonAutoDecide&&(c=(!j()||t())&&k()),c?(h="screenshot",A(l,n,a,i)):Z(l,n,a)}else console.log("possibly bug on ajax loading? ")}else setTimeout(u,200)}u()},e.getViews=function(){return o},e.isJavaInstalled=function(){return!1};var C=function(t){var i=function(){n.onError&&n.onError(),D("Error: Fetching material (id "+n.material_id+") failed.",n)},r=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",a="/materials/"+n.material_id+"?scope=basic";S("https://"+r+"/api/proxy.php?path="+encodeURIComponent(a),(function(r){var a=JSON.parse(r),s=a.elements?a.elements.filter((function(e){return"G"==e.type||"E"==e.type}))[0]:a;if(s&&s.url){n.fileName=s.url,_(s.settings||{}),o.is3D=!0;var l="https://www.geogebra.org/images/";e.setPreviewImage(x||s.previewUrl,l+"GeoGebra_loading.png",l+"applet_play.png"),t()}else i()}),i)};function _(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 o=new XMLHttpRequest;o.open("GET",e),o.onload=function(){t(o.responseText)},o.onerror=n,o.send()}e.isHTML5Installed=function(){return!0},e.getLoadedAppletType=function(){return h},e.setPreviewImage=function(e,t,n){x=e,w=t,n},e.removeExistingApplet=function(e,t){var o;"string"==typeof e&&(e=document.getElementById(e)),h=null;var i=null;for(o=0;o<e.childNodes.length;o++){var r=e.childNodes[o],a=r.className;"applet_screenshot"===a?t?(r.style.display="block",h="screenshot"):r.style.display="none":"applet_scaler prerender"!==a&&(e.removeChild(r),i=a&&-1!=a.indexOf("appletParameters")?r.id:null,o--)}var s=void 0!==n.id?n.id:i,l=window[s];l&&"function"==typeof l.getBase64&&(l.remove(),window[s]=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 T=function(e){return e&&"false"!==e},Z=function(t,n,o){b(f)<=4.2&&(o=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==f||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,s=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(b(f)<=4.4)T(n.showToolBar)&&(n.height-=7),T(n.showAlgebraInput)&&(n.height-=37),n.width<605&&T(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(T(n.showToolBar)||T(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=T(n.showMenuBar)?245:155),a<u&&(n.width=u,a=u)}for(var d in r.style.border="none",r.style.display="inline-block",n)n.hasOwnProperty(d)&&"appletOnLoad"!==d&&r.setAttribute("data-param-"+d,n[d]);y&&r.setAttribute("data-param-fontscssurl",y),e.resize=function(){GGBAppletUtils.responsiveResize(t,n)},window.addEventListener("resize",(function(t){e.resize()}));var m="function"==typeof n.appletOnLoad?n.appletOnLoad:function(){};if(o||void 0===n.width){var h=document.createElement("div");h.className="applet_scaler",h.style.position="relative",h.style.display="block",h.appendChild(r),t.appendChild(h),n.appletOnLoad=function(t){e.resize(),m(t)}}else{n.hasOwnProperty("showSplash")||r.setAttribute("data-param-showSplash","false");var x=t.querySelector(".applet_scaler.prerender"),w=null!==x;if(w)j=x.querySelector(".ggb_preview");else{var j=B(a,s,n.borderColor,!1);(x=document.createElement("div")).className="applet_scaler",x.style.position="relative",x.style.display="block",x.style.width=a+"px",x.style.height=s+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(x,"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(x),window.GGBT_wsf_view&&$(window).trigger("resize"),m(e)},w||x.appendChild(j)):r.appendChild(j),x.appendChild(r),w||t.appendChild(x),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),D("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function C(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){k(e.article,e.params)})),html5AppletsToProcess=null)},b(f)<5&&(e.className+=" geogebraweb")):k(e,t)}if(i){scriptLoadStarted=!0;for(var _=0;_<r.childNodes.length;_++){"TABLE"===r.childNodes[_].tagName&&(r.removeChild(r.childNodes[_]),_--)}if(null!==ggbHTML5LoadedScript){var S=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=S&&S.parentNode.removeChild(S)}var Z=document.createElement("script"),L=function(){C(r,n)};Z.src=p+g,ggbHTML5LoadedCodebaseIsWebSimple=v,ggbHTML5LoadedCodebaseVersion=f,ggbHTML5LoadedScript=Z.src,D("GeoGebra HTML5 codebase loaded: '"+p+"'.",n),c||l&&"5.0"!=l?p.requirejs?__webpack_require__.e(78373).then(function(){var e=[__webpack_require__(78373)];L.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(Z.onload=L,t.appendChild(Z)):(v?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),L())}else C(r,n);n.height=s,n.width=a},L=function(t,n,o){var i=B(n.width,n.height,n.borderColor,o),r=document.createElement("div");r.style.position="relative",r.style.display="block",r.style.width=n.width+"px",r.style.height=n.height+"px",r.className="applet_screenshot applet_scaler"+(o?" applet_screenshot_play":""),r.appendChild(i);var a=GGBAppletUtils.getScale(n,t,o);o?(t.appendChild(P()),window.GGBT_wsf_view||(t.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(r,"66%"),t.appendChild(r),1===a||isNaN(a)||(GGBAppletUtils.scaleElement(r,a),r.style.width=n.width+"px",r.style.height=n.height+"px",r.parentNode.style.width=n.width*a+"px",r.parentNode.style.height=n.height*a+"px"),e.resize=function(){N(t,i,r,o)},window.addEventListener("resize",(function(t){e.resize()})),e.resize()};function N(e,t,o,i){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 r=GGBAppletUtils.getScale(n,e,i);null!==o.parentNode&&(isNaN(r)||1===r?(GGBAppletUtils.scaleElement(o,1),o.parentNode.style.width=n.width+"px",o.parentNode.style.height=n.height+"px"):(GGBAppletUtils.scaleElement(o,r),o.parentNode.style.width=n.width*r+"px",o.parentNode.style.height=n.height*r+"px")),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(e),"object"===_typeof(window.GGBT_ws_header_footer)&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}e.onExitFullscreen=function(e,t){t.appendChild(e)};var A=function(e,t,n,o){L(e,t,!0);for(var i=function(){var n=[];for(a=0;a<e.childNodes.length;a++)n.push(e.childNodes[a]);if(window.GGBT_wsf_view){var i=window.GGBT_wsf_view.renderFullScreen(e,t.id),r=document.getElementById("fullscreencontainer"),s=jQuery(e).find(".fullscreencontent");s.length>0?(i.remove(),s.attr("id","fullscreencontent").show(),jQuery(r).append(s),window.dispatchEvent(new Event("resize"))):Z(i,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=o,Z(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;a<n.length;a++)e.removeChild(n[a])},r=e.getElementsByClassName("ggb_preview_play"),a=0;a<r.length;a++)r[a].addEventListener("click",i,!1),r[a].addEventListener("ontouchstart",i,!1);"function"==typeof window.ggbAppletPlayerOnload&&window.ggbAppletPlayerOnload(e),k()&&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,o){var i=document.createElement("div");i.className="ggb_preview",i.style.position="absolute",i.style.zIndex="90",i.style.width=e-2+"px",i.style.height=t-2+"px",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.backgroundColor="white";var r="lightgrey";void 0!==n&&(r="none"===n?"transparent":n),i.style.border="1px solid "+r;var a,s,l,c=document.createElement("img");if((c.style.position="relative",c.style.zIndex="1000",c.style.top="-1px",c.style.left="-1px",null!==x&&c.setAttribute("src",x),c.style.opacity=.7,null!==w)&&!o){(a=document.createElement("img")).style.position="absolute",a.style.zIndex="1001",a.style.opacity=1,c.style.opacity=.3,(s=360)>e/4*3&&(s=e/4*3),l=s/5.8,a.setAttribute("src",w),a.setAttribute("width",s),a.setAttribute("height",l);var u=(e-s)/2,d=(t-l)/2;a.style.left=u+"px",a.style.top=d+"px",i.appendChild(a)}return i.appendChild(c),i},E=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},M=["web","webSimple","web3d","tablet","tablet3d","phone"],I=function(e,t){if(f=e,t)O(f,!0);else{var r,a,s=!i;if(s){var l=b(f);!isNaN(l)&&l<4.4&&(s=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=f.indexOf("//");for(var u in a=c>0?f:0===c?r+f:"https://www.geogebra.org/apps/5.2.814.0/",M)if(f.slice(-1*M[u].length)===M[u]||f.slice(-1*(M[u].length+1))===M[u]+"/")return void O(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||o.is3D||o.AV||o.SV||o.CV||o.EV2||o.CP||o.PC||o.DA||o.FI||o.PV||T(n.showToolBar)||T(n.showMenuBar)||T(n.showAlgebraInput)||T(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",O(a,!1)}},O=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),m=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?M.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!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 o=parseFloat(f);NaN!==o&&o<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+o+" is deprecated. Using version latest instead."),I("5.0",t))}},D=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function G(){var e=t;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),I(e,!1),null!==c&&O(c,m),s=!0}return void 0!==n.material_id?C(G):G(),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,o,i){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==o&&o,s=null!=e.noScaleMargin&&e.noScaleMargin,l=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,o,i,r){var a=null;if(null!=r&&""!=r)for(var s=e.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+r+" ")>-1){a=s;break}s=s.parentNode}var l=0,c=0,u=0,d=0,p=0,m=0,h=0;if(a)l=a.offsetWidth,c=Math.max(o?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=l):(l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var f=e.getBoundingClientRect();f.left>0&&f.left<=l&&(void 0===i||!i)&&("rtl"===document.dir?(p=l-f.width-f.left,m=u<=480?10:30):(m=f.left,p=u<=480?10:30),d=m+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d<l?l=t:l-=d,"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,a&&window.GGBT_wsf_view||s,i),u=parseInt(c.width),d=e.width,p=e.height;if(void 0===d){var m=t.querySelector(".appletParameters");m&&(d=m.offsetWidth,p=m.offsetHeight)}var h=u/d,f=a?1:c.height/p;return void 0===n||n||(h=Math.min(1,h),f=Math.min(1,f)),Math.min(h,f)}function o(e,t,o){var i,r=1,a=!1;return e.hasOwnProperty("allowUpscale")&&(a=e.allowUpscale),e.hasOwnProperty("scale")&&(r=parseFloat(e.scale),(isNaN(r)||null===r||0===r)&&(r=1),r>1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(i=n(e,t,a,o,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=e.getBoundingClientRect(),i=(t-o.width)/2,r=(n-o.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=i+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var s=o(r,n);e()&&a.setAttribute("data-param-scale",s);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 u=void 0!==r.id?r.id:"ggbApplet",d=window[u];null!=d&&d.recalculateEnvironments||null===l||l.className.match(/fullscreen/)||(l.parentNode.style.transform="",isNaN(s)||1===s?(t(l,1),l.parentNode.style.width=r.width+"px",l.parentNode.style.height=r.height+"px"):(l.parentNode.style.width=r.width*s+"px",l.parentNode.style.height=r.height*s+"px",t(l,s))),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&i(n),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(a).parents(".content-added-content"))}},isFlexibleWorksheetEditor:e,positionCenter:i,getScale:o,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,r,!1);var i=setInterval((function(){r()}),$)}function r(){if(!n){if(!t())return;n=!0,e(),o.removeEventListener&&o.removeEventListener(Z,r,!1),i&&clearInterval(i)}}}((function(){var t,n,o,i;t=e,n=u(),o=n.body,(i=n.createElement(_)).language=ab,i.crossOrigin=W,i.src=t,webModule.__errFn&&(i.onerror=function(){webModule.__errFn(L,new Error(bb+t))}),o.appendChild(i),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 o=e.lastIndexOf(tb,Math.min(n,t));return o>=O?e.substring(O,o+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,o=[],i=[];function a(e){var t=i[e](),n=o[e];if(t in n)return t;var a=[];for(var s in n)a[n[s]]=s;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in o[e]},webModule.__getPropMap=function(){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(e=Cb).indexOf(Db);-1!=s&&(t=parseInt(e.substring(s+P),$),e=e.substring(O,s))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},o=e[webModule.__softPermutationId],i=O;i<o.length;i++){var r=o[i];n[r[O]]=r[P]}return n}},webModule.__startLoadingFragment=function(e){return C(e)},webModule.__installRunAsyncCode=function(e){var t=u(),n=t.body,o=t.createElement(_);o.language=ab,o.text=e,n.appendChild(o),n.removeChild(o)},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")})()},6660:function(e,t,n){"use strict";function o(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 i(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],o=0;o<e.length;o++){var i=e[o],r=t?"".concat(t,"/").concat(i.name):"".concat(i.name);n.push({title:i.name,type:i.type,isLeaf:"tree"!==i.type,key:r})}return n}function r(e,t,n){for(var o=0;o<e.length;o++){var i=e[o];if(i.key===t){i.children=n;break}i.children&&r(i.children,t,n)}return e}function a(e,t,n){var o;return function(){var i=this,r=arguments,a=function(){o=null,n||e.apply(i,r)},s=n&&!o;clearTimeout(o),o=setTimeout(a,t),s&&e.apply(i,r)}}n.d(t,{Ax:function(){return r},Ds:function(){return a},KI:function(){return s},SI:function(){return i},f1:function(){return o}});var s=n(98571).Z.API_SERVER},21989:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});n(7557),n(41498);var o=n(82100),i=n.n(o),r=n(29186),a=n.n(r),s=n(13720),l=n.n(s),c=n(80619),u=n.n(c),d=n(47074),p=n.n(d),m=n(85573),h=n.n(m),f=n(59301),g=n(8591),v=n(92832),x="codeBox___WpkVl",w=n(92310),y=n.n(w),b=n(37712),j=function(e){u()(n,e);var t=p()(n);function n(e){var o;return i()(this,n),o=t.call(this,e),h()(l()(o),"canvas",void 0),h()(l()(o),"randomNum",(function(e,t){return Math.floor(Math.random()*(t-e)+e)})),h()(l()(o),"drawPic",(function(){o.randomCode()})),h()(l()(o),"reloadPic",(function(){o.drawPic()})),h()(l()(o),"changeCode",(function(e){console.log(e.target.value,222),o.setState({value:e.target.value,showError:!1})})),h()(l()(o),"onVerify",(function(){var e;return""!==o.state.value.toLowerCase()&&o.state.value.toLowerCase()!==o.state.code.toLowerCase()?(e=!0,g.ZP.error("请输入正确的验证码"),o.reloadPic()):""===o.state.value.toLowerCase()?(e=!0,g.ZP.error("请输入验证码")):o.state.value.toLowerCase()===o.state.code.toLowerCase()&&(e=!1),o.setState({showError:e}),e})),o.canvas=f.createRef(),o.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},o}return a()(n,[{key:"componentDidMount",value:function(){this.drawPic()}},{key:"randomColor",value:function(e,t){var n=this.randomNum(e,t),o=this.randomNum(e,t),i=this.randomNum(e,t);return"rgb(".concat(n,", ").concat(o,", ").concat(i,")")}},{key:"drawText",value:function(e,t,n){e.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);var o=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);e.font=o+"px SimHei";var i=(this.state.contentWidth-40)/(this.state.code.length-1),r=10;n>0&&(r=10+n*i);var a=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);o>40&&(a=40);var s=this.randomNum(-10,10);e.translate(r,a),e.rotate(s*Math.PI/180),e.fillText(t,0,0),e.rotate(-s*Math.PI/180),e.translate(-r,-a)}},{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,o=void 0===n?300:n;return(0,b.jsxs)("div",{className:y()(x,t),style:{width:o},children:[(0,b.jsx)("aside",{children:(0,b.jsx)(v.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),k=j},5606:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),u=n(78241),d=n(8591),p=n(43418),m=n(30518),h=n(92832),f=n(51945),g=n(95237),v=n(43604),x=n(17810),w=n.n(x),y=n(26790),b=n(59822),j={tips:"tips___e8J4O",homeworkType:"homeworkType___ZjN2X",antdTable:"antdTable___amDdp",modalWrapper:"modalWrapper___XPojI"},k=n(89527),C=n(57538),_=n(37712),S=(0,b.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,classroomList:e.classroomList}}))((function(e){var t=e.dispatch,n=e.courseEndTime,o=(e.classroomList,e.successCallback),r=void 0===o?function(){}:o,s=e.visible,x=e.homeworkIds,b=e.courseId,S=e.isBatch,T=(e.shixunHomeworks,u.Z.useForm()),Z=l()(T,1)[0],L=(0,c.useState)(!1),N=l()(L,2),A=N[0],P=N[1],B=(0,c.useState)(!1),E=l()(B,2),M=E[0],I=E[1],O=(0,c.useState)(!1),D=l()(O,2),G=D[0],H=D[1],R=(0,c.useState)([]),z=l()(R,2),F=z[0],W=z[1],Y=(0,c.useState)([]),V=l()(Y,2),U=V[0],K=V[1],q=(0,c.useState)([]),J=l()(q,2),Q=J[0],X=J[1],$=(0,c.useState)([]),ee=l()($,2),te=ee[0],ne=ee[1],oe=(0,c.useState)([]),ie=l()(oe,2),re=ie[0],ae=ie[1],se=(0,c.useState)([]),le=l()(se,2),ce=le[0],ue=le[1],de=(0,c.useState)([]),pe=l()(de,2),me=pe[0],he=pe[1],fe=(0,c.useState)([]),ge=l()(fe,2),ve=ge[0],xe=ge[1],we=(0,c.useState)([]),ye=l()(we,2),be=ye[0],je=ye[1];(0,c.useEffect)((function(){s?ke():_e()}),[s]);var ke=function(){var e=a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P(!0),e.next=3,(0,k.oR)(x[0],{course_id:b});case 3:t=e.sent,H(t.no_group),S?(he(t.all_course_groups),xe(t.all_course_groups)):(ne(t.late_course_groups),ae(t.late_course_groups),W(t.submit_course_groups),K(t.submit_course_groups)),P(!1),Z.setFieldsValue({end_time:w()()});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ce=function(){var e=a()(i()().mark((function e(){var n,o,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Z.getFieldsValue(),o=w()(n.end_time).format("YYYY-MM-DD HH:mm"),!(S?0===be.length:0===Q.length&&0===ce.length)||G){e.next=6;break}return d.ZP.warning("请选择需要操作的班级"),e.abrupt("return");case 6:return I(!0),e.next=9,(0,k.Mc)(b,{no_group:G,homework_ids:x,group_ids:S?be:Q,end_time:o,late_group_ids:S?be:ce});case 9:a=e.sent,I(!1),0===a.status&&(_e(),d.ZP.success("操作成功"),r(),t({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}));case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_e=function(){X([]),ue([]),K([]),ae([])};return(0,_.jsxs)(p.Z,{centered:!0,title:"立即截止",className:j.modalWrapper,width:S||G?520:760,open:s,confirmLoading:M,destroyOnClose:!0,okText:"截止",cancelText:"取消",onOk:function(){return Ce()},onCancel:function(){_e(),t({type:"classroomList/setActionTabs",payload:{}})},children:[(0,_.jsxs)("div",{className:j.tips,children:[(0,_.jsx)("div",{children:"1、截止后学生不能再提交作业。"}),(0,_.jsx)("div",{children:"2、本操作只对“提交中”、“补交中”的作业有效。"})]}),(0,_.jsx)(u.Z,{form:Z,layout:"vertical",children:(0,_.jsx)(u.Z.Item,{name:"end_time",label:"截止时间",children:(0,_.jsx)(m.default,{style:{width:"100%"},disabledDate:function(e){return(0,C.Q8)(e,n)},disabledTime:function(e){return(0,C.d0)(e)},placeholder:"请选择结束时间",showTime:{format:"HH:mm",defaultValue:w()((0,y.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),!G&&(0,_.jsx)(_.Fragment,{children:S?(0,_.jsxs)("div",{children:[(0,_.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){xe(me.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,_.jsx)(f.Z,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){je(e)}},rowKey:"id",pagination:!1,dataSource:ve,loading:A,columns:[{title:"班级",dataIndex:"name"}]})]}):(0,_.jsxs)(g.Z,{gutter:24,children:[(0,_.jsxs)(v.Z,{span:14,children:[(0,_.jsx)("div",{className:j.homeworkType,children:"作业截止"}),(0,_.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){K(F.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,_.jsx)("div",{className:j.tableWrapper,children:(0,_.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){X(e)}},rowKey:"id",pagination:!1,dataSource:U,loading:A,columns:[{title:"班级",dataIndex:"name",ellipsis:!0},{title:"发布时间",dataIndex:"publish_time"},{title:"截止时间",dataIndex:"end_time"}]})})]}),(0,_.jsxs)(v.Z,{flex:10,style:{maxWidth:"280px"},children:[(0,_.jsx)("div",{className:j.homeworkType,children:"补交截止"}),(0,_.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){ae(te.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,_.jsx)("div",{className:j.tableWrapper,children:(0,_.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){ue(e)}},rowKey:"id",pagination:!1,loading:A,dataSource:re,columns:[{title:"班级",dataIndex:"name",ellipsis:!0,width:120},{title:"截止时间",dataIndex:"late_time"}]})})]})]})})]})}))},71871:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",m=n(92310),h=n.n(m),f=n(71418),g=n(2859),v=n(84112),x=n(26790),w=n(37712),y=function(e){var t=e.data,n=e.className,o=e.fullWidth,r=e.style,s=void 0===r?{}:r,m=e.onClose,y=e.onOk,b=e.showFullTools,j=e.noAssociationId,k=(0,c.useRef)(null),C=(0,c.useRef)(null),_=(0,c.useRef)(null),S=(0,c.useRef)(null),T=(0,c.useState)(!1),Z=l()(T,2),L=Z[0],N=Z[1],A=(0,c.useState)("正在加载中"),P=l()(A,2),B=P[0],E=P[1];(0,c.useEffect)((function(){_.current||(_.current=document.createElement("style"),document.head.appendChild(_.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),_.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&M()):(document.body.removeAttribute("data-custom"),_.current&&(document.head.removeChild(_.current),_.current=null))}),[null==t?void 0:t.visible]);var M=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),E("正在加载中"),e.next=4,(0,x.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,k.current.src="",k.current.src=n,k.current.onload=function(){O()},N(!1),E("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=a()(i()().mark((function e(n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),E("正在保存中"),e.next=4,(0,v.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(o=e.sent)||!o.id||j){e.next=12;break}return e.next=8,(0,v.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==o?void 0:o.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=o&&o.id&&y(o);case 13:N(!1),E("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O=function(){C.current=new g.hP(k.current),C.current.targetRoot=S.current,C.current.addEventListener("render",I),C.current.addEventListener("beforeclose",m),b&&(C.current.availableMarkerTypes=C.current.ALL_MARKER_TYPES,C.current.uiStyleSettings.redoButtonVisible=!0,C.current.uiStyleSettings.notesButtonVisible=!0,C.current.uiStyleSettings.zoomButtonVisible=!0,C.current.uiStyleSettings.zoomOutButtonVisible=!0,C.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=C.current.uiStyleSettings,C.current.show(),null!=t&&t.snapshotData&&C.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,w.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,w.jsx)(f.Z,{spinning:L,tip:B,style:{position:"absolute"},children:(0,w.jsx)("div",{ref:S,className:h()(u,n,o?p:""),style:s,children:(0,w.jsx)("img",{className:d,ref:k})})})})}},90904:function(e,t,n){"use strict";n.d(t,{z:function(){return S},Z:function(){return T}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(37205),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(53326),f=n(8591),g=n(43418),v=n(3113),x=n(98571),w=n(35108),y=n(37712),b=" ";function j(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var k=n(25032),C=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var _=h.Z.Dragger;function S(e){var t=[];return e&&e.length>0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+b+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var T=function(e){var t=e.value,n=e.onChange,o=e.action,r=e.data,s=e.className,c=e.maxSize,d=void 0===c?150:c,S=e.title,T=void 0===S?"上传附件":S,Z=e.showRemoveModal,L=void 0!==Z&&Z,N=e.accept,A=void 0===N?"":N,P=e.additionalText,B=e.isDragger,E=e.number,M=void 0===E?1e3:E,I=e.aloneClear,O=void 0!==I&&I,D=e.realTimeRemove,G=void 0===D||D,H=(0,m.useState)(!1),R=p()(H,2),z=R[0],F=R[1],W=(0,m.useState)(t||[]),Y=p()(W,2),V=Y[0],U=Y[1],K=(0,m.useState)(1),q=p()(K,2),J=q[0],Q=q[1];(0,m.useEffect)((function(){t&&(1===J&&U(u()(t)),Q(2),M===(null==t?void 0:t.length)&&F(!0))}),[t]);var X,$=function(){setTimeout((function(){V.pop(),U(u()(V))}),500)},ee={multiple:!0,disabled:z,accept:A,withCredentials:!0,fileList:V,beforeUpload:function(e,t){var n=e.size/1024/1024;return V.concat(t).length>M?(V.pop(),U(u()(V)),f.ZP.error("最多只能上传".concat(M,"个文件")),O?Promise.reject():($(),!1)):n<d||(f.ZP.error("该文件无法上传。超过文件大小限制(".concat(d,"MB).")),O?Promise.reject():($(),!1))},data:r,action:o||"".concat(x.Z.API_SERVER,"/api/attachments.json"),onChange:function(e){var t,o;(V="removed"===e.file.status?e.fileList:(0,C.uniqBy)([].concat(u()(e.fileList),u()(V)),"uid"),"done"!==e.file.status||-1!==(null===(t=e.file)||void 0===t||null===(t=t.response)||void 0===t?void 0:t.status))?(V.length>=M?F(!0):F(!1),U(u()(V)),V=V.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(b)&&(e.name="".concat(e.name).concat(b).concat(j(e.size))),l()({},e)})),console.log("info:",e,V),n(V)):f.ZP.error(null===(o=e.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message)},onRemove:(X=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(G){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,w.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!L){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var o;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(o=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,f.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return X.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(s||""),children:[B&&(0,y.jsxs)(_,l()(l()({},ee),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),P]})),!B&&(0,y.jsxs)(h.Z,l()(l()({},ee),{},{children:[(0,y.jsxs)(v.ZP,{disabled:z,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),T]}),(0,y.jsxs)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:["(单个文件最大",d,"MB)"," "]})]}))]})}},86999:function(e,t,n){"use strict";n(59301);var o=n(6848),i=n(37712);t.Z=function(e){var t=e.value,n=e.visible,r=void 0===n||n,a=e.children;return(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(o.Z,{placement:"topLeft",title:{"未发布":"作业尚未发布","未开始":"作业已发布,尚未到达开始作业时间","提交中":"作业进行中,所有考生可提交作业","补交中":"作业进行中,所有学生可补交作业","进行中":"作业进行中,部分班级正在作业提交中/补交中","已截止":"到达作业截止时间,作业已结束","已结束":"课堂已结束"}[t],children:(0,i.jsx)("span",{children:a})}):a})}},721:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),s=n(59301),l=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),m=(n(11186),n(85353),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 v(e){var t=e.value,n=e.onChange,o=e.mode,r=e.options,l=void 0===r?{}:r,c=(0,s.useRef)(),u=(0,s.useState)(),d=a()(u,2),h=d[0],f=d[1];return(0,s.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,s.useEffect)((function(){h&&h.setOption("mode",o)}),[h,o]),(0,s.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,s.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,i()({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));f(e)}}),[c.current,h]),(0,m.jsx)("div",{className:"my-codemirror-container",children:(0,m.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,o=(0,s.useState)("python"),r=a()(o,2),d=r[0],p=r[1];return(0,m.jsxs)(c.Z,i()(i()({},f),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,m.jsx)(l.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,m.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,m.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,m.jsx)(v,{mode:d})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},10802:function(e,t,n){"use strict";n.d(t,{Z:function(){return be}});var o=n(91232),i=n.n(o),r=n(79800),a=n.n(r),s=n(85573),l=n.n(s),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),m=(n(11186),n(6313),n(25717),n(99498),n(25419),n(67549),n(92919)),h=n(37712),f=function(e){var t=e.value,n=void 0===t?"":t,o=(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:o}})})},g=n(82242),v=n.n(g),x=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function w(e){var t=e.onActionCallback,n=e.title,o=e.icon,i=e.actionName,r=e.className,a=void 0===r?"":r,s=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(i)},children:[(0,h.jsx)("i",{className:"".concat(o)}),s]})}var y=function(e){var t=e.watch,n=e.showNullButton,o=e.showNullProgramButton,i=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,s=e.hidetoolBar,l=e.extraUse,c=[].concat(x,[{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:[!s&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(w,v()(v()({},e),{},{onActionCallback:i})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,h.jsx)("li",{children:l}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(w,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},b=n(23320),j=n(78241),k=n(92832),C=n(3113),_={labelCol:{span:4},wrapperCol:{span:20}},S=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(j.Z,v()(v()({},_),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(j.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(j.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(C.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},T=n(721),Z=n(10083),L=n(95237),N=n(71871),A=function(e){var t=e.callback,n=e.onCancel,o=document.createElement("canvas"),i=o.getContext("2d");o.width=1e3,o.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,o.width,o.height);var r=o.toDataURL("image/png");return(0,h.jsx)(L.Z,{style:{height:"100vh"},children:(0,h.jsx)(N.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,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),M=n.n(E),I=n(37205),O=n.n(I),D=n(12378);function G(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(G,go.CommandHandler),G.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},G.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")},G.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")},G.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")},G.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")},G.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")}},G.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")}},G.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 o=0;o<n.length-1;o++){var i=n[o],r=i.actualBounds.y+i.actualBounds.height+e;n[o+1].move(new go.Point(i.actualBounds.x,r))}t.commitTransaction("align Column")},G.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 o=0;o<n.length-1;o++){var i=n[o],r=i.actualBounds.x+i.actualBounds.width+e;n[o+1].move(new go.Point(r,i.actualBounds.y))}t.commitTransaction("align Row")},G.prototype.canRotate=function(e){var t=this.diagram;return null!==t&&!t.isReadOnly&&!t.isModelReadOnly&&!(t.selection.count<1)},G.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())},G.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){G._assignZOrder(e,t.get(e.layer)+1)})),e.commitTransaction("pullToFront")},G.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){G._assignZOrder(e,t.get(e.layer)-1-G._findGroupDepth(e))})),e.commitTransaction("pushToBack")},G._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){G._assignZOrder(e,t+1,n)}))},G._findGroupDepth=function(e){if(e instanceof go.Group){var t=0;return e.memberParts.each((function(e){t=Math.max(t,G._findGroupDepth(e))})),t+1}return 0},G.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)}},G.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},G.prototype._arrowKeyMove=function(){var e=this.diagram,t=e.lastInput,n=0,o=0;if(t.control||t.meta)n=1,o=1;else if(null!==e.grid){var i=e.grid.gridCellSize;o=i.width,n=i.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-o,e.actualBounds.y)):"Right"===t.key&&e.move(new go.Point(e.actualBounds.x+o,e.actualBounds.y))})),e.commitTransaction("arrowKeyMove")},G.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))},G.prototype._findNearestPartTowards=function(e){var t=this.diagram.selection.first();if(null===t)return null;for(var n=t.actualBounds.center,o=this._getAllParts(),i=1/0,r=t,a=0;a<o.length;a++){var s=o[a];if(s!==t&&s.canSelect()){var l=s.actualBounds.center,c=n.directionPoint(l),u=this._angleCloseness(c,e);if(u<=45){var d=n.distanceSquaredPoint(l);(d*=1+Math.sin(u*Math.PI/180))<i&&(i=d,r=s)}}}return r},G.prototype._angleCloseness=function(e,t){return Math.min(Math.abs(t-e),Math.min(Math.abs(t+360-e),Math.abs(t-360-e)))},G.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!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i)}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!==(r=t.findTreeParentNode())&&e.select(r)}else if("Up"===n.key){if(null!==(r=t.findTreeParentNode()))if((s=(a=this._sortTreeChildrenByY(r)).indexOf(t))>0){for(var o=a.elt(s-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(r)}else if("Down"===n.key){var i;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i);else for(;null!==t;){var r,a,s;if(null===(r=t.findTreeParentNode()))break;if((s=(a=this._sortTreeChildrenByY(r)).indexOf(t))<a.length-1){e.select(a.elt(s+1));break}t=r}}var l=e.selection.first();null!==l&&e.scrollToRect(l.actualBounds)}},G.prototype._sortTreeChildrenByY=function(e){var t=(new go.List).addAll(e.findTreeChildrenNodes());return t.sort((function(e,t){var n=e.location,o=t.location;return n.y<o.y?-1:n.y>o.y?1:n.x<o.x?-1:n.x>o.x?1:0})),t},G.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},G.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(G.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(G.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 H=G,R=(n(88005),n(85160)),z=n(43418),F=n(43604),W=n(84112),Y="myPaletteDiv___Xjz2I",V="maxH60___Pd4Re";window.go=D;var U=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(),s=(0,c.useRef)(!1),l=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],m=d[1],f=function(){var e=M()(B()().mark((function e(){var t,i;return B()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:i=e.sent,n({src:i.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){m(p+1)}),[]),(0,h.jsx)("div",{ref:l,className:s.current?"".concat(V," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:l.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(L.Z,{children:[(0,h.jsx)(F.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(F.Z,{onClick:function(){s.current=!s.current,m(p+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel: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:Y,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(R.FI,{initDiagram:function(){var e=D.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",s="#d533ff",l="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",m="#d5ebff",h="#f2dfe0",f="#a5d2fa",g="#cccccc",v="#b3e6b3",x="#fcbbbd";function w(t,n){var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(o){var i=n.part.adornedPart,r=(new D.Point).setRectSpot(i.actualBounds,t);r.subtract(i.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(i.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=o.copyNodeData(i.data);o.setGroupKeyForNodeData(a,o.getGroupKeyForNodeData(i.data)),o.addNodeData(a);var s={from:i.key,to:o.getKeyForNodeData(a)};o.addLinkData(s);var l=e.diagram.findNodeForData(a);l.location=r,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(D.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(D.Spot.Top)||t.equals(D.Spot.Bottom)?25:18,height:t.equals(D.Spot.Top)||t.equals(D.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:o,contextClick:o})}function y(t){return e(D.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,o){n.handled=!0,n.diagram.model.commit((function(n){n.set(o.part.adornedPart.data,e,t)}))}}function j(t,n){return n||(n="color"),e(D.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 k(){return[e("ContextMenuButton",e(D.Panel,"Horizontal",j(u,"fill"),j(p,"fill"),j(m,"fill"),j(h,"fill"))),e("ContextMenuButton",e(D.Panel,"Horizontal",j(g,"fill"),j(v,"fill"),j(f,"fill"),j(x,"fill")))]}function C(){return[e("ContextMenuButton",e(D.Panel,"Horizontal",j(d),j(a),j(n),j(t))),e("ContextMenuButton",e(D.Panel,"Horizontal",j(u),j(s),j(l),j(c)))]}function _(t,n){return n||(n="thickness"),e(D.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(D.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 T(){return[e("ContextMenuButton",e(D.Panel,"Horizontal",_(1),_(2),_(3),_(4))),e("ContextMenuButton",e(D.Panel,"Horizontal",S(null),S([2,4]),S([4,4])))]}function Z(t,n){return n||(n="figure"),e(D.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 L(t){return e(D.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(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(D.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 o=n.part.adornedPart;e.set(o.data,t?"toSpot":"fromSpot",D.Spot.stringify(D.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(D.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 o=0,i=D.Spot.RightSide;t.equals(D.Spot.Top)?(o=270,i=D.Spot.TopSide):t.equals(D.Spot.Left)?(o=180,i=D.Spot.LeftSide):t.equals(D.Spot.Bottom)&&(o=90,i=D.Spot.BottomSide),n||(o-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",D.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(D.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:o,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return o.current=new D.Diagram(i.current,{padding:20,grid:e(D.Panel,"Grid",e(D.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(D.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(H),"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}),o.current.nodeTemplate=e(D.Node,"Auto",{locationSpot:D.Spot.Center,locationObjectName:"SHAPE",desiredSize:new D.Size(120,60),minSize:new D.Size(40,40),resizable:!0,resizeCellSize:new D.Size(10,10),rotatable:!0},new D.Binding("location","loc",D.Point.parse).makeTwoWay(D.Point.stringify),new D.Binding("desiredSize","size",D.Size.parse).makeTwoWay(D.Size.stringify),e(D.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:D.Spot.AllSides,toSpot:D.Spot.AllSides},new D.Binding("figure"),new D.Binding("fill"),new D.Binding("stroke","borderColor"),new D.Binding("strokeWidth","thickness"),new D.Binding("strokeDashArray","dash")),e(D.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(D.TextBlock,{margin:1,textAlign:"center",overflow:D.TextBlock.OverflowEllipsis,editable:!0},new D.Binding("text").makeTwoWay(),new D.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(D.Panel,"Vertical",{maxSize:new D.Size(200,NaN)},e(D.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new D.Binding("text")),e(D.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new D.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(D.Adornment,"Spot",e(D.Placeholder,{padding:10}),w(D.Spot.Top,"TriangleUp"),w(D.Spot.Left,"TriangleLeft"),w(D.Spot.Right,"TriangleRight"),w(D.Spot.Bottom,"TriangleDown"),y({alignment:new D.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(D.Panel,"Horizontal",Z("Rectangle"),Z("RoundedRectangle"),Z("Ellipse"),Z("Diamond"))),e("ContextMenuButton",e(D.Panel,"Horizontal",Z("Parallelogram2"),Z("ManualOperation"),Z("Procedure"),Z("Cylinder1"))),e("ContextMenuButton",e(D.Panel,"Horizontal",Z("Terminator"),Z("CreateRequest"),Z("Document"),Z("TriangleDown"))),k(),C(),T()),o.current.groupTemplate=e(D.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:D.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 D.Binding("location","loc",D.Point.parse).makeTwoWay(D.Point.stringify),e(D.Panel,"Auto",{name:"BODY"},e(D.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:D.Spot.AllSides,toSpot:D.Spot.AllSides},new D.Binding("fill"),new D.Binding("stroke","color"),new D.Binding("strokeWidth","thickness"),new D.Binding("strokeDashArray","dash")),e(D.Placeholder,{background:"transparent",margin:20})),e(D.TextBlock,{alignment:D.Spot.Top,alignmentFocus:D.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new D.Binding("text"),new D.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(D.Adornment,"Spot",e(D.Panel,"Auto",e(D.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(D.Placeholder,{margin:1.5})),y({alignment:D.Spot.TopRight,alignmentFocus:D.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",k(),C(),T()),o.current.linkTemplate=e(D.Link,{layerName:"Foreground",routing:D.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new D.Binding("fromSpot","fromSpot",D.Spot.parse),new D.Binding("toSpot","toSpot",D.Spot.parse),new D.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new D.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new D.Binding("points").makeTwoWay(),e(D.Shape,{strokeWidth:2},new D.Binding("stroke","color"),new D.Binding("strokeWidth","thickness"),new D.Binding("strokeDashArray","dash")),e(D.Shape,{segmentIndex:0,segmentOffset:new D.Point(15,0),segmentOrientation:D.Link.OrientAlong,alignmentFocus:D.Spot.Right,figure:"circle",width:10,strokeWidth:0},new D.Binding("fill","color"),new D.Binding("visible","dir",(function(e){return 1===e}))),e(D.Shape,{segmentIndex:-1,segmentOffset:new D.Point(-10,6),segmentOrientation:D.Link.OrientPlus90,alignmentFocus:D.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new D.Binding("fill","color"),new D.Binding("visible","dir",(function(e){return e>=1})),new D.Binding("width","thickness",(function(e){return 7+3*e})),new D.Binding("height","thickness",(function(e){return 7+3*e})),new D.Binding("segmentOffset","thickness",(function(e){return new D.Point(-15,4+1.5*e)}))),e(D.Shape,{segmentIndex:0,segmentOffset:new D.Point(15,-6),segmentOrientation:D.Link.OrientMinus90,alignmentFocus:D.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new D.Binding("fill","color"),new D.Binding("visible","dir",(function(e){return 2===e})),new D.Binding("width","thickness",(function(e){return 7+3*e})),new D.Binding("height","thickness",(function(e){return 7+3*e})),new D.Binding("segmentOffset","thickness",(function(e){return new D.Point(-15,4+1.5*e)}))),e(D.TextBlock,{alignmentFocus:new D.Spot(0,1,-4,0),editable:!0},new D.Binding("text").makeTwoWay(),new D.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(D.Adornment,e(D.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:L(2)},new D.Binding("pathPattern","thickness",L)),y({alignmentFocus:new D.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",C(),T(),e("ContextMenuButton",e(D.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(D.Panel,"Horizontal",e(D.Panel,"Spot",A(!1),P(D.Spot.Top,!1),P(D.Spot.Left,!1),P(D.Spot.Right,!1),P(D.Spot.Bottom,!1)),e(D.Panel,"Spot",{margin:new D.Margin(0,0,0,2)},A(!0),P(D.Spot.Top,!0),P(D.Spot.Left,!0),P(D.Spot.Right,!0),P(D.Spot.Bottom,!0))))),new D.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(D.Link,{locationSpot:D.Spot.Center,selectionAdornmentTemplate:e(D.Adornment,"Link",{locationSpot:D.Spot.Center},e(D.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(D.Shape,{toArrow:"Standard",stroke:null}))},{routing:D.Link.AvoidsNodes,curve:D.Link.JumpOver,corner:5,toShortLength:4},new D.Binding("points"),e(D.Shape,{isPanelMain:!0,strokeWidth:2}),e(D.Shape,{toArrow:"Standard",stroke:null})),model:new D.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(O()(D.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(D.Node,"Auto",{locationSpot:D.Spot.Center},new D.Binding("location","location",D.Point.parse).makeTwoWay(D.Point.stringify),e(D.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 D.Binding("stroke").makeTwoWay(),new D.Binding("fill").makeTwoWay(),new D.Binding("figure")),e(D.TextBlock,{margin:new D.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new D.Size(16,16),maxSize:new D.Size(10,NaN),textAlign:"center",editable:!0},new D.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(D.Panel,"Grid",e(D.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(D.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),o.current.grid.visible=!0,o.current.grid.gridCellStroke="darkgray",o.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=o.current,o.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:i})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(C.ZP,{size:"large",onClick:f,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),q=n(94001),J=K.ZP.Group,Q={margin:"0 8px"},X=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(j.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)(j.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(q.Z,{})}),(0,h.jsx)("span",{style:Q,children:"列数"}),(0,h.jsx)(j.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(q.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"对齐方式:"}),(0,h.jsx)(j.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.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)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(C.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(8324),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,r=e.callback,s=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],m=d[1],f=(0,c.useRef)({id:s,appName:"graphing",width:o||1e3,height:i||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 r&&r(e),e};return(0,c.useEffect)((function(){f.current.appName=p?"3D":"graphing",l.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){m(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:s}),(0,h.jsxs)(L.Z,{align:"middle",children:[(0,h.jsx)(F.Z,{flex:1,children:(0,h.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return m(e)}})}),(0,h.jsx)(F.Z,{children:(0,h.jsx)(C.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),oe=n(73133),ie=n(98571),re=n(8591),ae="link",se="upload-image",le="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",me={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},he=n(94344);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 ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var xe=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",we=l()(l()({},xe+"-B","bold"),xe+"-I","italic"),ye=l()(l()(l()(l()(l()(l()(l()(l()({},ae,"添加链接"),ue,"添加代码块"),se,"添加图片"),ce,"添加画图"),le,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),be=function(e){var t=e.defaultValue,n=void 0===t?"":t,o=e.onChange,r=e.width,s=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,x=void 0!==v&&v,w=e.isFocus,j=void 0!==w&&w,k=e.watch,C=e.insertTemp,_=e.mode,L=void 0===_?"markdown":_,N=e.id,P=void 0===N?"markdown-editor-id":N,B=e.showResizeBar,E=void 0!==B&&B,M=e.noStorage,I=void 0!==M&&M,O=e.showNullButton,D=void 0!==O&&O,G=e.showNullProgramButton,H=void 0!==G&&G,R=e.hidetoolBar,F=void 0!==R&&R,W=e.fullScreen,Y=void 0!==W&&W,V=e.onBlur,K=e.onCMBeforeChange,q=e.onFullScreen,J=e.className,Q=void 0===J?"":J,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,pe=void 0!==te&&te,xe=e.disabledFill,be=void 0!==xe&&xe,je=e.placeholder,ke=void 0===je?"":je,Ce=e.values,_e=void 0===Ce?"":Ce,Se=e.extraUse,Te=(0,c.useState)(null),Ze=a()(Te,2),Le=Ze[0],Ne=Ze[1],Ae=(0,c.useState)(n),Pe=a()(Ae,2),Be=Pe[0],Ee=Pe[1],Me=(0,c.useState)(k),Ie=a()(Me,2),Oe=Ie[0],De=Ie[1],Ge=(0,c.useState)(Y),He=a()(Ge,2),Re=He[0],ze=He[1],Fe=(0,c.useState)(""),We=a()(Fe,2),Ye=We[0],Ve=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),qe=Ke[0],Je=Ke[1],Qe=(0,c.useState)(g),Xe=a()(Qe,2),$e=Xe[0],et=Xe[1],tt=(0,c.useState)(!1),nt=a()(tt,2),ot=(nt[0],nt[1]),it=(0,c.useState)(0),rt=a()(it,2),at=rt[0],st=rt[1],lt=(0,c.useState)(0),ct=a()(lt,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),mt=(0,c.useRef)(),ht=(0,c.useRef)(),ft=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ee(_e),null==Le||Le.setValue(_e),window.scrollTo(0,e)}),[_e]),(0,c.useEffect)((function(){null==q||q(Re)}),[Re]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var o=n.clipboardData;if(o){var i=o.types.toString(),r=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==L)return;try{var a,s=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(s=r[0]);var l=s.getAsFile(),c=l.name.split(".").pop();(0,Z.I)(l,(function(e){var n,o,i;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===(o=l.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('<video width="100%" controls src="'.concat(ie.Z.API_SERVER,"/api/attachments/").concat(e.id,'"></video>')):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?t.replaceSelection('<a href="'.concat(ie.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(ie.Z.API_SERVER,"/api/attachments/").concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(l.name,"</a>")):t.replaceSelection("[".concat(l.name,"](").concat(ie.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){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:L,lineNumbers:!x,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),o=n.getCursor(),i=n.getLine(o.line),r=i.charAt(o.ch-1),a=i.lastIndexOf("@▁@",o.ch),s=i.lastIndexOf("@▁▁@",o.ch),l=a>s?a:s,c=a>s?3:4;if(-1===fe.indexOf(r))return null;if(console.log("change1:",t,e,i,o,l,a,s,r),l>=0&&o.ch-l<5){var u=l+c;return n.replaceRange("",{line:o.line,ch:l},{line:o.line,ch:u}),{line:o.line,ch:u}}return null}(e);n&&t.preventDefault()}})),j&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){mt.current}),[$e,mt,Re]);(0,c.useEffect)((function(){if(Le){var e=function(){var e=new p.Z((function(e){var t,n=i()(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;(o.target.offsetHeight>0||o.target.offsetWidth>0)&&(gt(),Le.setSize("100%","100%"),Le.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Le,gt]),(0,c.useEffect)((function(){if(Le){for(var e=[],t=function(){var t=a()(o[n],2),i=t[0],r=t[1],s=l()({},i,(function(){vt(r)}));e.push(s),Le.addKeyMap(s)},n=0,o=Object.entries(we);n<o.length;n++)t();return function(){for(var t=0,n=e;t<n.length;t++){var o=n[t];Le.removeKeyMap(o)}}}}),[Le]),(0,c.useEffect)((function(){Y!==Re&&ze(Y)}),[Y]),(0,he.Z)((function(){if(!I&&qe>0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(P);e>=qe+1e4&&(!t||t!==Be)&&(window.sessionStorage.setItem(P,Be),ot(!0))}}),1e4),(0,c.useEffect)((function(){De(k)}),[Le,k]),(0,c.useEffect)((function(){Le&&j&&Le.focus()}),[Le,j]),(0,c.useEffect)((function(){if(Oe&&Le){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=Le.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Le,Oe]),(0,c.useEffect)((function(){if(Le&&K){var e=function(e,t){K(e,t)};return Le.on("beforeChange",e),function(){Le.off("beforeChange",e)}}}),[Le,K]),(0,c.useEffect)((function(){if(Le&&V){var e=function(){V(Le.getValue())};return Le.on("blur",e),function(){Le.off("blur",e)}}}),[Le,V]),(0,c.useEffect)((function(){if(Le){var e=function(e,t){var n=e.getValue();Ee(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(H?o(n,jt(n)):o(n))};return Le.on("change",e),function(){Le.off("change",e)}}}),[Le,o]),(0,c.useEffect)((function(){if(Le)if(null==n)Le.setValue(""),Ee("");else{var e=window.scrollY||window.pageYOffset;n!==Le.getValue()&&(Le.setValue(n),Ee(n),Le.setCursor(pe?1:Le.lineCount(),0),window.scrollTo(0,e))}}),[Le,n]);var vt=(0,c.useCallback)((function(e){var t=Le.getCursor(),n=Le.getSelection(),o=n.split("\n");switch(e){case"bold":return Le.replaceSelection("**"+n+"**"),""===n&&Le.setCursor(t.line,t.ch+2),Le.focus();case"italic":return Le.replaceSelection("*"+n+"*"),""===n&&Le.setCursor(t.line,t.ch+1),Le.focus();case"code":return Le.replaceSelection("`"+n+"`"),""===n&&Le.setCursor(t.line,t.ch+1),Le.focus();case"inline-latex":return Ve("inline-latex"),Le.focus();case"latex":return Le.replaceSelection("```latex\n"+n+"\n```"),Le.setCursor(t.line+1,n.length+1),Le.focus();case"line-break":return Le.replaceSelection("<br/>\n"),Le.focus();case"list-ul":return""===n?Le.replaceSelection("- "+n):Le.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Le.focus();case"list-ol":return""===n?Le.replaceSelection("1. "+n):Le.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Le.focus();case"add-null-ch":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection("▁"),Le.focus();case"add-signal":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection("@▁@"),Le.focus();case"add-multiple":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection(fe),Le.focus();case"inster-template-1":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Le.focus();case"eraser":return Le.setValue(""),Le.focus();case"trigger-watch":return De(!Oe),Le.focus();case"trigger-full-screen":return ze(!Re),Le.focus();case ae:return void Ve(ae);case ue:return void Ve(ue);case se:return void Ve(se);case ce:return void Ve(ce);case"maths-latex":return void Ve("maths-latex");case le:return void Ve(le);case de:return void Ve(de);default:throw new Error}}),[Le,Oe,Re]),xt=(0,c.useCallback)((function(e,t){var n,o,i,r,a;switch(Ve(""),Ye){case ae:var s=e.title,l=e.link;return Le.replaceSelection("[".concat(s,"](").concat(l,")")),Le.focus();case ue:var c=e.language,u=e.content;return Le.replaceSelection(["```"+c,u,"```"].join("\n")),Le.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),m=0;m<d.length;m++)p[m]=d.charCodeAt(m);var h=new Blob([p],{type:"image/png"});(0,Z.I)(h,(function(e){e.id?Le.replaceSelection(".concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":Le.replaceSelection("`$$"+e+"$$`");break;case se:case ce:case"add-flowchart":var f=e.src,g=e.alt,v=t,x=null==v||null===(n=v.name)||void 0===n||null===(n=n.split("."))||void 0===n||null===(o=n.pop)||void 0===o?void 0:o.call(n);return(null==v||null===(i=v.type)||void 0===i?void 0:i.indexOf("image"))>-1||null==v||!v.type?g?Le.replaceSelection(".concat(f,' "').concat(g,'" )')):Le.replaceSelection("")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Le.replaceSelection('<video width="100%" controls src="'.concat(ie.Z.API_SERVER).concat(f,'"></video>')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Le.replaceSelection('<a href="'.concat(ie.Z.API_SERVER).concat(f,"?type=").concat(v.type,'&disposition=inline" target="_blank">').concat(v.name,"</a>")):ge.includes(x)?Le.replaceSelection('<a href="'.concat(ie.Z.API_SERVER).concat(f,'?type=office&disposition=inline" target="_blank">').concat(v.name,"</a>")):Le.replaceSelection("[".concat(v.name,"](").concat(ie.Z.API_SERVER).concat(f,")")),Le.focus();case de:for(var w=e.row,y=e.col,b=e.align,j="\n",k=0;k<w;k++){for(var C=[],_=[],S=0;S<y;S++)1===k&&_.push(me[b]),C.push(" ");1===k&&(j+="| ".concat(_.join(" | ")," |\n")),j+="| ".concat(C.join(1===y?"":" | ")," |\n")}return Le.replaceSelection(j+"\n"),Le.focus();default:throw new Error}}),[Le,Ye]),wt=(0,c.useMemo)((function(){switch(Ye){case ae:return(0,h.jsx)(S,{callback:xt,onCancel:yt});case ue:return(0,h.jsx)(T.Z,{callback:xt,onCancel:yt});case se:return(0,h.jsx)(Z.Z,{callback:xt,onCancel:yt});case le:return(0,h.jsx)(U,{callback:xt,onCancel:yt});case de:return(0,h.jsx)(X,{callback:xt,onCancel:yt});case"maths-latex":return(0,h.jsx)(ne,{showSaveButton:!0,callback:xt});case"inline-latex":return(0,h.jsx)(oe.Z,{showSaveButton:!0,callback:xt});default:return null}}),[Ye]);function yt(){Ve("")}(0,c.useEffect)((function(){if(ht.current){var e=function(e){i=!0,r=e.pageY},t=function(){i=!1},n=function(e){if(i){var t=e.pageY-r;t<0&&(t=0),t>300&&(t=300),et(g+t+"px")}},o=ht.current,i=!1,r=0;return o.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){o.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Le,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var bt={width:ve(s),height:ve($e)},jt=((0,c.useMemo)((function(){if(qe){var e=new Date(qe),t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(o)}return 0}),[qe]),function(e){var t=[];if(H){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ye]&&Ye!==ce&&Ye!==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;st(t),dt(n)}),0)}),[Ye]);var kt=function(e,t,n,o){var i=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&n<e||t<20&&o>t||t>i-20&&o<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:mt,children:(0,h.jsxs)("div",{className:"markdown-editor-container ".concat(Q," ").concat(Oe?"on-preview":""," ").concat(x?"mini":""," ").concat(Re?"full-screen":""),style:bt,children:[(0,h.jsx)(y,{insertTemp:C,watch:Oe,fullScreen:Re,showNullButton:D,showNullProgramButton:H,onActionCallback:vt,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:pt,placeholder:ke})}),Oe?(0,h.jsxs)("div",{ref:ft,className:"preview-container",children:["stex"===L&&(0,h.jsx)(f,{value:Be}),"stex"!==L&&(0,h.jsx)(m.Z,{disabledFill:be,showProgramFill:H,value:Be})]}):null]})]})}),E?(0,h.jsx)("a",{ref:ht,className:"editor-resize"}):null,Ye===ce&&(0,h.jsx)(A,{callback:xt,onCancel:yt}),Ye===le&&(0,h.jsx)(U,{callback:xt,onCancel:yt}),(0,h.jsx)(b.Z,{children:ye[Ye]&&Ye!==ce&&Ye!==le?(0,h.jsx)(z.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:at,top:ut},title:(0,h.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var t=e.clientX-at,n=e.clientY-ut;document.body.onmousemove=function(e){var o=e.clientX-t,i=e.clientY-n,r=document.getElementsByClassName("markdown-popup-form")[0],a=window.innerWidth-r.offsetWidth,s=window.innerHeight-r.offsetHeight;o=Math.max(0,Math.min(o,a)),i=Math.max(0,Math.min(i,s)),kt(e.clientX,e.clientY,t,n)&&(st(o),dt(i))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:ye[Ye]}),open:!0,onCancel:yt,footer:null,destroyOnClose:!0,width:Ye===le?"1200px":null,height:Ye===le?"80vh":null,className:"markdown-popup-form",children:wt}):null})]})}},10083:function(e,t,n){"use strict";n.d(t,{Z:function(){return v},I:function(){return w}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),s=n(78241),l=n(8591),c=n(92832),u=n(3113),d=n(6660),p=n(59301),m=n(37712),h=s.Z.useForm,f={width:280,marginRight:10},g={labelCol:{span:5},wrapperCol:{span:19}},v=function(e){var t=e.callback,n=e.onCancel,o=h(),r=a()(o,1)[0],d=(0,p.useRef)();function v(e,t){-1!==e.status?r.setFieldsValue({src:"/api/attachments/".concat(e.id),type:t.type}):l.ZP.error(e.message)}return(0,m.jsxs)(s.Z,i()(i()({form:r},g),{},{className:"upload-image-panel",onFinish:function(e){t(e,d.current)},style:{width:470,overflow:"hidden"},children:[(0,m.jsx)(s.Z.Item,{label:"图片地址",required:!0,children:(0,m.jsxs)("div",{className:"flex-container",children:[(0,m.jsx)(s.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,m.jsx)(c.Z,{style:f})}),(0,m.jsx)(x,{onFileChange:function(e){var t=e.target.files[0];d.current=t,w(t,v)}})]})}),(0,m.jsx)(s.Z.Item,{label:"图片描述",name:"alt",children:(0,m.jsx)(c.Z,{style:{width:264}})}),(0,m.jsxs)(s.Z.Item,{style:{textAlign:"right"},children:[(0,m.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(u.ZP,{type:"default",onClick:n,children:"取消"})]})]}))};function x(e){var t=e.onFileChange;return(0,m.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,m.jsx)("input",{type:"file",onChange:t})]})}function w(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 o=new window.XMLHttpRequest;o.withCredentials=!0,o.addEventListener("load",(function(n){t(JSON.parse(n.target.responseText),e)}),!1),o.addEventListener("error",(function(e){console.error(e)}),!1),o.open("POST","".concat(d.KI,"/api/attachments.json")),o.send(n)}},23320:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var o=n(82100),i=n.n(o),r=n(29186),a=n.n(r),s=n(80619),l=n.n(s),c=n(47074),u=n.n(c),d=n(59301),p=n(4676),m=function(e){l()(n,e);var t=u()(n);function n(e){var o;i()(this,n),o=t.call(this,e);var r=window.document;return o.node=r.createElement("div"),r.body.appendChild(o.node),o}return a()(n,[{key:"render",value:function(){var e=this.props.children;return(0,p.createPortal)(e,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),n}(d.Component)},94344:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(59301);function i(e,t){var n=(0,o.useRef)();(0,o.useEffect)((function(){n.current=e})),(0,o.useEffect)((function(){if(null!==t){var e=setInterval((function(){n.current()}),t);return function(){return clearInterval(e)}}}),[t])}},21510:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});n(59301);var o=n(38854),i=n(20834),r=n(6848),a=n(92832),s="searchSortControllerContainer___AAq4n",l="btn___bMc0x",c="btnSort___vBpNG",u="tips___egWVQ",d=n(37712),p=function(e){var t=e.isAdmin,n=(e.dataSource,e.batchStatus,e.SortMenuName),p=e.setSortMenuName,m=e.onSearch,h=e.onSort,f=(e.onBatch,t?[{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:"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"}]),g="默认排序"===n;return(0,d.jsxs)("div",{className:s,children:[(0,d.jsx)("div",{children:(0,d.jsx)(o.Z,{dropdownRender:function(){return(0,d.jsx)(i.Z,{selectedKeys:[n],children:f.map((function(e){return(0,d.jsx)(i.Z.Item,{onClick:function(){return p((t=e).name),void h(t);var t},children:e.name},e.name)}))})},children:(0,d.jsx)("div",{children:(0,d.jsxs)("span",{className:"".concat(l," ").concat(g?c:""),children:[(0,d.jsx)("i",{className:"iconfont icon-paixu font14 mr5"}),n]})})})}),g&&(0,d.jsx)(r.Z,{title:"优先按照调整排序结果展示,未设置排序时,按照创建时间降序排列",children:(0,d.jsx)("span",{className:u,children:(0,d.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2"})})}),(0,d.jsx)(a.Z.Search,{allowClear:!0,placeholder:"请输入名称进行搜索",onSearch:function(e){return m(e.trim())},style:{width:220,marginLeft:"auto"}})]})}},1358:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});n(59301);var o=n(20834),i=n(95237),r=n(43604),a=n(38854),s=n(6848),l="tabMenuContainer___xbZhu",c="control___tg7XY",u="iconH___CDXCm",d="selectBtn___Da4jv",p=n(59822),m=n(16080),h=n(37712),f=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.isLoading,f=e.addText,g=e.tabDataSource,v=e.isAdmin,x=e.dispatch,w=e.type,y=e.exportType,b=e.TooltipTitle,j=e.categoryId,k=e.dropdownMenu,C=e.isShowRightControl,_=e.defaultSelectedKeys,S=e.classroomList,T=e.onTabMenuClick,Z=e.onTooltipTitleClick,L=e.onDropdownMenuClick,N=e.onsetClick,A=(0,p.useParams)();return(0,h.jsx)("div",{className:l,children:(0,h.jsxs)(i.Z,{children:[(0,h.jsx)(r.Z,{flex:"1",children:(0,h.jsx)(o.Z,{mode:"horizontal",selectedKeys:_,children:g.map((function(e){return(0,h.jsxs)(o.Z.Item,{onClick:function(){return n?{}:T(e)},children:[(0,h.jsx)("span",{className:"c-grey-666 ".concat(v?"mr20":""),children:e.name}),void 0!==e.total&&(0,h.jsx)("span",{className:"c-grey-999",children:e.total||0})]},e.id)}))})}),v&&C&&(0,h.jsxs)(r.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3},children:[(0,h.jsx)(a.Z,{className:"mr10",placement:"bottom",arrow:!0,dropdownRender:function(){return(0,h.jsxs)(o.Z,{children:[(0,h.jsx)(o.Z.Item,{onClick:function(){x({type:"classroomList/setActionTabs",payload:{key:"导出成绩",type:w,exportType:y,category_id:A.categoryId}})},children:"学生成绩"},1),(0,h.jsx)(o.Z.Item,{onClick:function(){p.history.push("/classrooms/".concat(null==A?void 0:A.coursesId,"/exportlist/").concat("group"===y?"group_work_list":"normal_work_list"))},children:"历史导出"},3)]})},children:(0,h.jsx)("div",{className:"c-blue font16 ml20 current",style:{marginTop:2},children:(0,h.jsx)("span",{style:{color:"#666666",cursor:"pointer"},children:(0,h.jsx)("i",{className:"iconfont icon-xiazai6"})})})}),!(0,m.Rm)()||null!==(t=S.AssistantObject.normal)&&void 0!==t&&t.can_create?(0,h.jsx)("span",{className:"c-grey-666",style:{marginLeft:8,cursor:"pointer",marginTop:"3px"},onClick:N,children:(0,h.jsx)("i",{className:"iconfont icon-shezhi6 font16 mr5"})}):"",(0,h.jsxs)("div",{className:c,children:[(0,h.jsx)("div",{className:"c-blue font16 ml20 current",style:{marginTop:2},onClick:Z,children:(0,h.jsx)(s.Z,{title:b,children:(0,h.jsx)("span",{className:"".concat(u,j?" iconfont icon-zhongmingmingmulu":" iconfont icon-xinjianmulu1")})})}),(0,h.jsx)(a.Z,{className:"ml10",dropdownRender:function(){return(0,h.jsx)(o.Z,{onClick:function(e){var t=e.key;L(t)},children:k.map((function(e){return(0,h.jsx)(o.Z.Item,{children:e.name},e.id)}))})},children:(0,h.jsxs)("span",{className:d,children:[(0,h.jsx)("span",{children:(0,h.jsx)("i",{className:"iconfont icon-tianjiadaohang"})}),(0,h.jsx)("span",{children:f||"新建作业"})]})})]})]})]})})}))},95010:function(e,t,n){"use strict";var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(78241),p=n(43418),m=n(8591),h=n(92832),f=n(2201),g=n(59822),v=n(90904),x=n(37712);t.Z=(0,g.connect)((function(e){return{classroomList:e.classroomList,shixunHomeworks:e.shixunHomeworks,loading:e.loading}}))((function(e){var t=e.classroomList,n=(e.loading,e.dispatch),o=e.shixunHomeworks,r=(0,g.useParams)(),s=d.Z.useForm(),c=u()(s,1)[0],w=(o.workList,o.workSetting);return(0,x.jsx)(p.Z,{centered:!0,title:"补交附件",open:"补交附件"===t.actionTabs.key,bodyStyle:{minHeight:200},onOk:a()(i()().mark((function e(){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=function(){var e=a()(i()().mark((function e(){var o,a,s;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.validateFields();case 2:return a=l()({},c.getFieldValue()),s=t.actionTabs.selectArrs,a.attachment_ids=null===(o=a.attachment_ids)||void 0===o?void 0:o.map((function(e){return e.response.id})),e.next=7,(0,f.mz)(l()(l()({},a),{},{homeworkId:s.work_id}));case 7:0===e.sent.status&&(c.resetFields(),n({type:"classroomList/setActionTabs",payload:{}}),n({type:"shixunHomeworks/getWorkSetting",payload:l()({},r)}),n({type:"shixunHomeworks/getWorkList",payload:l()({},r)}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),null==w||!w.can_submit){e.next=7;break}if(null!=w&&w.submit_size){e.next=5;break}return m.ZP.warning("您的作品提交机会已用完。如需继续修改,请联系指导老师或平台运营。"),e.abrupt("return");case 5:return p.Z.confirm({title:"提示",icon:null,centered:!0,width:472,content:(0,x.jsxs)(x.Fragment,{children:["你还有 ",(0,x.jsx)("span",{className:"ml5 mr5",style:{color:"#DF711C"},children:null==w?void 0:w.submit_size})," 次提交机会。确认提交后,上一次的提交记录会被覆盖。请注意,到达规定的提交次数后将不可再次提交,确定是否提交?"]}),onOk:function(){o()}}),e.abrupt("return");case 7:o();case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:(0,x.jsxs)(d.Z,{form:c,initialValues:{},children:[(0,x.jsx)(d.Z.Item,{name:"attachment_ids",rules:[{required:!0,message:"请上传附件"}],children:(0,x.jsx)(v.Z,{})}),(0,x.jsx)(d.Z.Item,{name:"description",children:(0,x.jsx)(h.Z.TextArea,{placeholder:"请在此输入补交附件的原因,最大限制100个字符",rows:7})})]})})}))},28265:function(e,t,n){"use strict";var o=n(7557),i=n.n(o),r=n(37205),a=n.n(r),s=n(82242),l=n.n(s),c=n(41498),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(78241),f=n(43418),g=n(66999),v=n(92832),x=n(5112),w=n(95237),y=n(43604),b=n(26724),j=n.n(b),k=n(84112),C=n(2201),_=n(59822),S=n(37712);t.Z=(0,_.connect)((function(e){var t=e.classroomList,n=e.user,o=e.loading,i=e.globalSetting;return{classroomList:t,user:n,loading:o.effects,globalSetting:i}}))((function(e){var t,n,o=e.classroomList,r=e.loading,s=e.globalSetting,c=e.dispatch,d=(0,_.useParams)(),b=h.Z.useForm(),T=p()(b,1)[0],Z=(0,m.useState)(!0),L=p()(Z,2),N=L[0],A=L[1],P=(0,m.useState)([]),B=p()(P,2),E=B[0],M=B[1],I=(0,m.useState)({page:1,limit:20,keyword:""}),O=p()(I,2),D=O[0],G=(O[1],function(){var e=u()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c({type:"shixunHomeworks/getProjectList",payload:l()(l()({},d),D)});case 2:(n=e.sent).projects&&M([].concat(a()(E),a()(n.projects))),(null===(t=n.projects)||void 0===t?void 0:t.length)<20&&A(!1);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}());return(0,m.useEffect)((function(){"关联项目"!==o.actionTabs.key&&"更换项目"!==o.actionTabs.key||(G(),E=[],D.page=1,D.keyword="")}),[o.actionTabs.key]),(0,S.jsx)(f.Z,{centered:!0,title:"更换项目"===o.actionTabs.key?"更换项目":"关联项目",open:"关联项目"===o.actionTabs.key||"更换项目"===o.actionTabs.key,bodyStyle:{minHeight:100},onOk:u()(i()().mark((function e(){var t,n,r,a,s;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T.validateFields();case 2:if(t=l()({},T.getFieldValue()),n=o.actionTabs,r=n.selectArrs,a=n.cb,"更换项目"!==o.actionTabs.key){e.next=10;break}return e.next=7,(0,k.ZP)("/api/student_works/".concat(r.homework_id,"/change_project.json"),{method:"put",body:l()({},t)});case 7:return 0===(null==(s=e.sent)?void 0:s.status)&&(a(),c({type:"classroomList/setActionTabs",payload:{}})),e.abrupt("return");case 10:return e.next=12,(0,C.co)(l()(l()({},t),{},{homeworkId:r.homework_id}));case 12:0===e.sent.status&&(a?a():c({type:"classroomList/getClassroomCommonHomeworksList",payload:l()({},o.actionTabs.params)}),c({type:"classroomList/setActionTabs",payload:{}}));case 14:case"end":return e.stop()}}),e)}))),onCancel:function(){c({type:"classroomList/setActionTabs",payload:{}})},children:(0,S.jsx)(g.Z,{loading:r["shixunHomeworks/getProjectList"],active:!0,children:""==E?(0,S.jsx)("aside",{children:(0,S.jsxs)("div",{className:"tc font14 pt20",children:["您当前尚未管理任何项目,请先",(0,S.jsx)("a",{href:"".concat(null==s||null===(t=s.setting)||void 0===t?void 0:t.old_url,"/projects/deposit/new"),target:"_blank",children:"创建项目"}),"再关联"]})}):(0,S.jsxs)("aside",{children:[(0,S.jsx)("div",{className:" mb20",children:(0,S.jsx)(v.Z.Search,{onSearch:function(e){""===e?delete D.keyword:D.keyword=e,E=[],A(!0),G()},placeholder:"请输入项目名称进行搜索",allowClear:!0,size:"middle"})}),(0,S.jsx)(h.Z,{form:T,initialValues:{},children:(0,S.jsx)(h.Z.Item,{name:"project_id",rules:[{required:!0,message:"请选择项目"}],children:(0,S.jsx)(x.ZP.Group,{children:(0,S.jsx)(j(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(e){D.page++,G()},hasMore:N,useWindow:!1,children:null===(n=E)||void 0===n?void 0:n.map((function(e,t){return(0,S.jsx)(w.Z,{children:(0,S.jsx)(y.Z,{children:(0,S.jsx)(x.ZP,{value:e.id,children:e.name})})},t)}))})})})})]})})})}))},66042:function(e,t,n){"use strict";var o=n(7557),i=n.n(o),r=n(85573),a=n.n(r),s=n(37205),l=n.n(s),c=n(41498),u=n.n(c),d=n(82242),p=n.n(d),m=n(79800),h=n.n(m),f=n(39647),g=n.n(f),v=n(59301),x=n(78241),w=n(8591),y=n(43418),b=n(95237),j=n(43604),k=n(30518),C=n(5112),_=n(24905),S=n(17810),T=n.n(S),Z=n(84112),L=n(16080),N=n(26790),A=n(59822),P=n(73798),B=n(43557),E=n(89527),M=n(57538),I=n(37712),O=["classroomList","dispatch","courseEndTime"];t.Z=(0,A.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=e.courseEndTime,r=g()(e,O),s=(0,A.useParams)(),c=x.Z.useForm(),d=h()(c,1)[0],m=(0,v.useState)(1),f=h()(m,2),S=f[0],D=f[1],G=(0,v.useState)([]),H=h()(G,2),R=H[0],z=H[1],F=(0,v.useState)(0),W=h()(F,2),Y=(W[0],W[1]),V=(0,v.useState)(2e3),U=h()(V,2),K=(U[0],U[1],(0,v.useState)(!0)),q=h()(K,2),J=(q[0],q[1]),Q=(0,v.useState)(!1),X=h()(Q,2),$=X[0],ee=(X[1],(0,v.useState)(!1)),te=h()(ee,2),ne=te[0],oe=(te[1],(0,v.useState)([])),ie=h()(oe,2),re=ie[0],ae=ie[1],se=(0,v.useState)(!0),le=h()(se,2),ce=le[0],ue=le[1],de=(0,v.useState)(null),pe=h()(de,2),me=pe[0],he=pe[1];(0,v.useEffect)((function(){if("立即发布"===t.actionTabs.key)if(fe(),xe(),2===t.actionTabs.type){var e=t.actionTabs.selectArrsAll[0];he({submit_limit:null==e?void 0:e.submit_limit,submit_limit_num:null==e?void 0:e.submit_limit_num,must_file:null==e?void 0:e.must_file,can_submit:null==e?void 0:e.can_submit,submit_num:null==e?void 0:e.submit_num}),ue(e.unified_setting)}else he({submit_limit:!1,submit_limit_num:200,must_file:!1,can_submit:!1,submit_num:3})}),[t.actionTabs]),(0,v.useEffect)((function(){if($){if(ne)return;n({type:"classroomList/setActionTabs",payload:{}}),(0,L.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:p()(p()({},t.actionTabs.params),{},{type:3})}):n({type:"classroomList/getClassroomCommonList",payload:p()({},t.actionTabs.params)})}}),[$]);var fe=function(){var e=u()(i()().mark((function e(n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return J(!0),e.next=3,(0,E.c_)(p()(p()({},s),{},{page:n||S,limit:2e4,homework_id:1===t.actionTabs.type?"":t.actionTabs.selectArrs[0]}));case 3:null==(o=e.sent)||o.course_groups.map((function(e,t){e.key=e.id,e.title=e.name,e.disabled=e.is_published})),o&&(z(l()(null==o?void 0:o.course_groups)),Y(null==o?void 0:o.course_groups_count),J(!1),n||d.setFieldsValue(a()(a()({},"publish_time",T()(T()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",T()(T()(new Date((0,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)}}(),ge=function(){(0,L.GJ)()?t.actionTabs.detail?(n({type:"shixunHomeworks/setActionTabs",payload:{}}),n({type:"shixunHomeworks/getWorkList",payload:p()({},s)}),n({type:"shixunHomeworks/getWorkSetting",payload:p()({},s)})):n({type:"classroomList/getClassroomTeacherCommonList",payload:p()(p()({},t.actionTabs.params),{},{type:3})}):n({type:"classroomList/getClassroomCommonList",payload:p()({},t.actionTabs.params)})},ve=function(){var e=u()(i()().mark((function e(){var o,a,c,u;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,L.Rm)()||null!=t&&null!==(o=t.AssistantObject)&&void 0!==o&&null!==(o=o.group)&&void 0!==o&&o.can_publish){e.next=4;break}return w.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),je(!1),e.abrupt("return");case 4:if(!((c=p()({},d.getFieldsValue())).end_time<=c.publish_time)){e.next=9;break}return w.ZP.info("截止时间不能大于或等于发布时间"),je(!1),e.abrupt("return");case 9:if(!((null==re?void 0:re.length)<=0&&!ce&&R.length>0)){e.next=13;break}return w.ZP.info("发布班级不能为空"),je(!1),e.abrupt("return");case 13:if(null==me||!me.submit_limit||null!=me&&me.submit_limit_num){e.next=17;break}return w.ZP.warning("学生填写内容字数不能为空"),je(!1),e.abrupt("return");case 17:if(null==me||!me.can_submit||null!=me&&me.submit_num){e.next=21;break}return w.ZP.warning("学生提交作品次数不能为空"),je(!1),e.abrupt("return");case 21:return u=p()({homework_ids:l()(t.actionTabs.selectArrs),group_ids:re.length>0?re.map((function(e){return e.id})):null===(a=t.detailCommonHomeworksList)||void 0===a?void 0:a.course_groups,end_time:T()(c.end_time).format("YYYY-MM-DD HH:mm"),publish_time:T()(c.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!re.length},me),je(!0),e.next=25,(0,Z.ZP)("/api/courses/".concat(s.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:p()({},u)});case 25:0===e.sent.status?(je(!1),(0,N.L9)(["教学课堂","分组作业","立即发布"]),w.ZP.success("发布成功"),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),r.onCallback&&r.onCallback(),ge(),"0"===localStorage.getItem("Noviceguide")||n({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:13,text:(0,I.jsx)("div",{children:"最后,咱们给教学课堂添加一名学生~点击“添加学生”,在弹窗页面中输入并搜索学生姓名,点击“确定”就可以为您的课堂添加第一位学生啦~"})}})):je(!1);case 27:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),xe=function(){D(1),z([]),ae([])},we=(t.detailCommonHomeworksList,(0,v.useState)(!1)),ye=h()(we,2),be=ye[0],je=ye[1];return(0,I.jsxs)(y.Z,{width:600,confirmLoading:be,centered:!0,title:"发布作业",open:"立即发布"===t.actionTabs.key,okText:"发布作业",cancelText:"暂不发布",onOk:ve,onCancel:function(){xe(),ge(),n({type:"classroomList/setActionTabs",payload:{}})},children:[(0,I.jsxs)("p",{className:"tc",children:["学生将立即收到作业",(0,I.jsx)("br",{}),'本操作只对"未发布"的作业有效']}),R&&(0,I.jsxs)(x.Z,{form:d,children:[(0,I.jsxs)("div",{style:{paddingLeft:0},children:[(0,I.jsxs)(b.Z,{className:"mt30",align:"middle",children:[(0,I.jsx)(j.Z,{children:(0,I.jsx)(x.Z.Item,{name:"publish_time",label:"发布时间",children:(0,I.jsx)(k.default,{style:{width:170,marginRight:"25px"},disabledDate:function(e){return(0,M.Q8)(e,o)},disabledTime:function(e){return(0,M.d0)(e)},placeholder:"请选择发布时间",showTime:{format:"HH:mm",defaultValue:T()((0,N.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),(0,I.jsx)(j.Z,{className:"ml20",children:(0,I.jsx)(x.Z.Item,{name:"end_time",label:"截止时间",children:(0,I.jsx)(k.default,{style:{width:170},placeholder:"请选择结束时间",showTime:{format:"HH:mm",defaultValue:T()((0,N.U6)(),"HH:mm")},disabledDate:function(e){return(0,M.Q8)(e,o,d.getFieldValue("publish_time"))},disabledTime:function(e){return(0,M.d0)(e,d.getFieldValue("publish_time"))},format:"YYYY-MM-DD HH:mm",allowClear:!1})})})]}),2===t.actionTabs.type&&(0,I.jsxs)(b.Z,{style:{marginBottom:"10px"},children:[(0,I.jsx)("span",{className:"mr5",children:"发布设置:"}),(0,I.jsxs)(C.ZP.Group,{value:ce,onChange:function(e){ue(e.target.value),ae([])},children:[(0,I.jsx)(C.ZP,{value:!0,disabled:!t.actionTabs.manage_all_group,children:"统一发布"}),(0,I.jsx)(C.ZP,{className:"ml20",disabled:R.length<=0,value:!1,children:"分班发布"})]})]}),R.length<=0&&2===t.actionTabs.type&&(0,I.jsx)("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"},children:'课堂无分班,仅支持选择“统一发布"'})]}),(1===t.actionTabs.type||!ce)&&R.length>0&&(0,I.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"},children:[(0,I.jsx)("span",{style:{flex:1},children:(0,I.jsx)(_.Z,{checked:re.length===R.length,onChange:function(e){re.length===R.length?ae([]):ae(R.filter((function(e){return!e.is_published})))},children:"全选"})}),(0,I.jsx)("span",{style:{width:16}}),(0,I.jsxs)("span",{style:{flex:1},children:["已选择",re.length||0,"个分班"]})]}),(1===t.actionTabs.type||!ce)&&R.length>0&&(0,I.jsx)(P.Z,{data:R,selectedRowKeys:re,setSelectedRowKeys:ae})]}),(0,I.jsx)(B.ZP,{value:me,onChange:function(e){return he(p()({},e))}})]})}))},78956:function(e,t,n){"use strict";n.r(t),n.d(t,{GroupHomeworkContext:function(){return Ae},default:function(){return Pe}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301),p=n(59822),m=n(8591),h=n(66999),f=n(86859),g=n(81228),v=n(43418),x=n(95237),w=n(43604),y=n(78673),b=n(5112),j=n(60324),k=n(94001),C=n(2842),_=n(16080),S=n(26790),T=n(37205),Z=n.n(T),L=n(84112),N=n(21989),A=n(37712),P=(0,p.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,o=e.classroomList,r=e.dispatch,s=e.user,c=e.onCallback,h=(0,p.useParams)(),f=(0,d.useState)(!1),g=u()(f,2),x=g[0],w=g[1],y=(0,d.useState)(!1),b=u()(y,2),j=b[0],k=b[1],C=(0,d.useRef)(null);(0,d.useEffect)((function(){if("删除"===o.actionTabs.key){if((0,_.j5)())return void k(!0);var e={hasNum:0,noHasNum:0};o.actionTabs.selectArrsAll.map((function(t){var n;t.author_login===(null===(n=s.userInfo)||void 0===n?void 0:n.login)?++e.hasNum:++e.noHasNum})),e.noHasNum>0?v.Z.info({title:"权限提示",className:"custom-modal-divider ",icon:null,content:(0,A.jsxs)("div",{children:["当前选中资源中:",(0,A.jsx)("span",{className:"c-blue",children:e.hasNum}),"个由您本人发布,",(0,A.jsx)("span",{className:"c-red",children:e.noHasNum})," ","个由其他老师发布。",(0,A.jsx)("br",{}),"课堂内只能删除本人发布的资源,请取消选中其他老师发布的资源。"]}),onOk:function(){T()}}):k(!0)}else k(!1)}),[o.actionTabs.key]);var T=function(){r({type:"classroomList/setActionTabs",payload:{}})};return(0,A.jsx)(v.Z,{centered:!0,title:"提示",open:j,okText:"确定",cancelText:"取消",confirmLoading:x,destroyOnClose:!0,onOk:a()(i()().mark((function e(){var t,n;return i()().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,L.ZP)("/api/courses/".concat(h.coursesId,"/homework_commons/multi_destroy.json"),{method:"post",body:{homework_ids:Z()(o.actionTabs.selectArrs)}});case 5:n=e.sent,w(!1),0===n.status&&((0,S.L9)(["教学课堂","分组作业","删除"]),m.ZP.success("删除成功"),r({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),c&&c(),(0,_.GJ)()?r({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},o.actionTabs.params),{},{type:3})}):r({type:"classroomList/getClassroomCommonList",payload:l()({},o.actionTabs.params)}));case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){r({type:"classroomList/setActionTabs",payload:{}})},children:null!=o&&null!==(t=o.actionTabs)&&void 0!==t&&t.status&&["未发布"].includes(null==o||null===(n=o.actionTabs)||void 0===n?void 0:n.status)?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("p",{children:"提交作品将全部被删除,不可恢复"}),(0,A.jsx)("p",{children:"是否确认删除?"})]}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("p",{style:{color:"#DD0000"},children:"删除作业则会清除学生所有的答题数据,且数据不可恢复,如确定删除,请输入下方验证码"}),(0,A.jsx)(N.Z,{ref:function(e){return C.current=e}})]})})})),B=n(66042),E=n(5606),M=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=(0,p.useParams)();return o.id=o.coursesId,(0,A.jsx)(v.Z,{centered:!0,title:"提示",open:"设为公开"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/courses/".concat(o.id,"/homework_commons/set_public.json"),{method:"post",body:{homework_ids:Z()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,S.L9)(["教学课堂","分组作业","设为公开"]),m.ZP.success("操作成功"),n({type:"classroomList/setActionTabs",payload:{}}),n({type:"classroomList/getClassroomCommonHomeworksList",payload:l()({},t.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:(0,A.jsxs)("p",{children:["设为公开后,非课堂成员也可以访问查看",(0,A.jsx)("br",{}),"是否确认设为公开?"]})})})),I=n(39647),O=n.n(I),D=["classroomList","dispatch","onCallback"],G=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=e.onCallback,r=(O()(e,D),(0,p.useParams)());return r.id=r.coursesId,(0,A.jsx)(v.Z,{centered:!0,title:"提示",open:"收藏"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/courses/".concat(r.id,"/homework_commons/add_to_homework_bank.json"),{method:"post",body:{all_check:0,homework_ids:Z()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,S.L9)(["教学课堂","分组作业","收藏"]),m.ZP.success("收藏成功,请前往【个人主页/课堂资源】查看"),o&&o(),(0,_.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:3})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)}),n({type:"classroomList/setActionTabs",payload:{}}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:"确认收藏?"})})),H=n(85573),R=n.n(H),z=n(99313),F=n(78241),W=n(3113),Y=n(92832),V=n(24905),U=n(26724),K=n.n(U),q={flex_box_center:"flex_box_center___ABrmR",flex_space_between:"flex_space_between___vTOmX",flex_box_vertical_center:"flex_box_vertical_center___txnfs",flex_box_center_end:"flex_box_center_end___fhlTP",flex_box_column:"flex_box_column___NGqFB",line1:"line1___kzLLz",form:"form___JNFp_"},J=n(12594),Q=n(41219),X=(z.Z.TabPane,(0,p.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,loading:e.loading,classroomList:e.classroomList}}))((function(e){var t,n=e.shixunHomeworks,o=e.classroomList,r=(e.loading,e.dispatch),s=(0,p.useParams)(),c=((0,p.useLocation)(),F.Z.useForm()),m=u()(c,1)[0],h=(n.brankList,(0,d.useState)(!1)),f=u()(h,2),g=f[0],y=f[1],b=(0,d.useState)(!0),j=u()(b,2),k=j[0],C=j[1],T=(0,d.useState)("myself"),L=u()(T,2),N=L[0],P=L[1],B=(0,d.useState)([]),E=u()(B,2),M=E[0],I=E[1],O=(0,d.useState)(),D=u()(O,2),G=D[0],H=D[1],z=(0,d.useState)({page:0,limit:20,object_type:"group",search:"",filter:"myself"}),U=u()(z,2),X=U[0];U[1];(0,d.useEffect)((function(){"题库选用"===n.actionTabs.key&&ee()}),[n.actionTabs.key]);var $=[],ee=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!k){e.next=11;break}return y(!1),++X.page,e.next=5,r({type:"shixunHomeworks/getBrankList",payload:l()({},X)});case 5:n=e.sent,M=Z()(M.concat(n.object_list)),H(n.is_teacher),(null===(t=n.object_list)||void 0===t?void 0:t.length)<X.limit?C(!1):C(!0),I(Z()(M)),""==n.object_list&&1===X.page&&y(!0);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),te=o.detailCommonHomeworksList;return(0,A.jsxs)(v.Z,{centered:!0,title:"选用课堂资源",open:"题库选用"===n.actionTabs.key,okText:"确定",cancelText:"取消",width:800,bodyStyle:{minHeight:200},onOk:a()(i()().mark((function e(){var t,a,c,u;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=m.getFieldValue(),e.next=3,r({type:"shixunHomeworks/saveBanks",payload:{category:(null==o||null===(t=o.detailCommonHomeworksList)||void 0===t?void 0:t.category_id)||(null==o||null===(a=o.detailCommonHomeworksList)||void 0===a?void 0:a.main_category_id),course_id:s.coursesId,object_type:"group",bank_id:c.group_ids}});case 3:0===(null==(u=e.sent)?void 0:u.status)&&((0,S.L9)(["教学课堂","分组作业","选用课堂资源"]),(0,_.GJ)()?r({type:"classroomList/getClassroomTeacherCommonList",payload:l()({},n.actionTabs.params)}):r({type:"classroomList/getClassroomCommonList",payload:l()({},n.actionTabs.params)}),r({type:"shixunHomeworks/setActionTabs",payload:{}}),r({type:"classroomList/setActionTabs",payload:{key:"立即发布",type:1,selectArrs:u.object_ids,params:l()({},n.actionTabs.params),manage_all_group:null==te?void 0:te.manage_all_group}}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:s.coursesId}}));case 5:case"end":return e.stop()}}),e)}))),onCancel:function(){r({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,A.jsxs)(x.Z,{children:[(0,A.jsx)(w.Z,{span:12,children:[{name:"我的资源",id:"myself"},{name:"公共资源",id:"public"}].map((function(e,t){return(0,A.jsx)(W.ZP,{shape:"round",type:N===e.id?"primary":"default",className:"mr10",onClick:function(){var t=a()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:M=[],k=!0,X.page=0,X.search="",X.filter=e.id,ee(),P(e.id);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),children:e.name},t)}))}),(0,A.jsx)(w.Z,{span:12,className:"tr",children:(0,A.jsx)(Y.Z.Search,{placeholder:"输入标题、适用课程进行搜索",onSearch:function(e){k=!0,X.search=e,X.page=0,M=[],e&&(0,Q.tk)({name:e,copywriting:e,position:"HomeworkCommon"}),ee()},style:{width:260}})})]}),"myself"===N&&(0,A.jsxs)("p",{className:"tc mt10",children:["选用对象:你在课堂分组作业中已",(0,A.jsx)("span",{className:"c-orange",children:"收藏"}),"的分组作业"]}),"public"===N&&(0,A.jsx)("p",{className:"tc mt10",children:"选用对象:题库中已设置成公共属性的所有分组作业"}),(0,A.jsxs)("div",{style:{background:"#F4FAFF",maxHeight:200,overflow:"auto",padding:"20px 10px"},children:[!G&&"public"===N&&(0,A.jsxs)("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"},children:[(0,A.jsx)("span",{children:"通过职业认证的教师才能访问课堂公共资源库"}),(0,A.jsx)("p",{style:{cursor:"pointer",background:"#ff6800",height:"30px",textAlign:"center",marginTop:"5px",padding:"5px 0px",color:"#fff",width:"80px"},onClick:function(){window.open("/account/certification")},children:"立即认证"})]}),(0,A.jsxs)(K(),{initialLoad:!1,pageStart:0,threshold:700,loadMore:function(){C(!1),ee()},hasMore:k,useWindow:!1,children:[g&&(0,A.jsx)(J.Z,{styles:{margin:"0px auto"}}),(0,A.jsx)(F.Z,{form:m,initialValues:R()({},"group_ids",$),className:q.form,onChange:function(e){var t=m.getFieldValue();$=t},children:(0,A.jsx)(F.Z.Item,{name:"group_ids",children:(0,A.jsx)(V.Z.Group,{style:{width:"100%",flexDirection:"column"},className:"font14",children:null===(t=M)||void 0===t?void 0:t.map((function(e,t){return(0,A.jsxs)(x.Z,{children:[(0,A.jsx)(w.Z,{flex:"2",children:(0,A.jsx)(V.Z,{onChange:function(e){},value:String(e.id),defaultChecked:!0,children:(0,A.jsx)("span",{className:["c-black",q.line1].join(" "),children:e.name})},t)}),(0,A.jsx)(w.Z,{flex:"1",className:"c-black",children:(0,A.jsx)("span",{className:q.line1,children:null==e?void 0:e.course_list_name})}),(0,A.jsx)(w.Z,{flex:"50px",className:"c-black",children:"public"===N&&(0,_.Ny)()||"myself"===N?(0,A.jsx)("span",{className:"c-blue current",onClick:function(){window.open("/users/innov/topics/".concat(e.id,"/personal/group/edit"))},children:"编辑"}):null==e?void 0:e.username})]},t)}))})})})]})]})]})}))),$=n(95010),ee=n(28265),te=n(22890),ne=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.styles,n=void 0===t?{}:t,o=e.onSelect,i=e.params,r=e.classroomList,a=(0,d.useState)(!1),s=u()(a,2),c=s[0],h=s[1],f=(0,d.useState)(""),g=u()(f,2),x=g[0],w=g[1];(0,d.useEffect)((function(){h(!1),w("")}),[]);return(0,A.jsxs)("section",{className:"tc animated fadeIn",style:l()(l()({},{color:"#999",margin:"200px auto"}),n),children:[(0,A.jsx)("img",{src:te.z3}),(0,A.jsx)("p",{className:"mt20 font14",children:"该分组无分组作业,可以下方按钮或右上方“新建作业”按钮创建作业"}),(0,A.jsxs)("div",{style:{marginTop:"30px"},children:[(0,A.jsx)(W.ZP,{onClick:function(){return h(!0)},type:"primary",style:{width:"128px",height:"40px",marginRight:"20px",borderRadius:"4px"},children:"新建作业"}),(0,A.jsx)(W.ZP,{onClick:function(){(0,S.xg)("https://www.educoder.net/forums/4911")},type:"primary",style:{width:"128px",height:"40px",marginLeft:"20px",borderRadius:"4px"},children:"新建作业指引"})]}),c&&(0,A.jsx)(v.Z,{open:!0,centered:!0,title:"新建作业",onCancel:function(){return h(!1)},onOk:function(){var e;!(0,_.Rm)()||null!=r&&null!==(e=r.AssistantObject)&&void 0!==e&&null!==(e=e.group)&&void 0!==e&&e.can_create?("1"===x&&p.history.push("/classrooms/".concat(i.coursesId,"/group_homework/").concat(i.categoryId||0,"/add")),"2"===x&&(o(),h(!1),w(""))):m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:(0,A.jsxs)("div",{children:[(0,A.jsx)("div",{children:(0,A.jsx)(b.ZP,{value:"1",style:{marginTop:"15px"},checked:"1"===x,onClick:function(){return w("1")},children:"新建分组作业"})}),(0,A.jsx)("div",{children:(0,A.jsx)(b.ZP,{value:"2",style:{marginTop:"15px"},checked:"2"===x,onClick:function(){return w("2")},children:"选用资源"})})]})})]})})),oe="bg___WElBH",ie=n(1358),re=n(38854),ae=n(20834),se=n(51945),le={listContainer:"listContainer___x25sx",info:"info___pPoXs",title:"title___hyvJ4",left:"left___PcXqY",right:"right___Gm2iB",flexBox:"flexBox____dxaA",detail:"detail___Bps1Y",iconV:"iconV___AsCHz"},ce=n(86999),ue=function(e){var t,n,o,r,s,c=e.dataSource,m=e.params,h=e.manageAllGroup,f=(0,d.useContext)(Ae),g=(f.batchStatus,f.selectArrs),v=f.setSelectArrs,x=f.selectArrsAll,w=f.setSelectArrsAll,y=f.dispatch,b=(0,p.useParams)(),j=(0,d.useState)(!1),k=u()(j,2),C=k[0],T=k[1],N=(0,d.useRef)(),P=(0,d.useState)([]),B=u()(P,2),E=B[0],M=B[1];b=l()(l()(l()({},m),b),{},{category:null===(t=b)||void 0===t?void 0:t.categoryId}),(0,d.useEffect)((function(){M([]),T(!1)}),[]);var I=[{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:"未发布"},{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,A.jsxs)("span",{children:[(0,A.jsx)("span",{children:null==e||null===(t=e.split("/"))||void 0===t?void 0:t[0]})," / ",(0,A.jsx)("span",{children:null==e||null===(n=e.split("/"))||void 0===n?void 0:n[1]})]})}},{title:"发布时间",dataIndex:"publish_time",key:"publish_time",sorter:!0,showSorterTooltip:!1,sortOrder:"publish_time"===b.sort_by?"desc"===b.sort_direction?"descend":"ascend":null},{title:"截止时间",dataIndex:"end_time",key:"end_time",sorter:!0,showSorterTooltip:!1,sortOrder:"end_time"===b.sort_by?"desc"===b.sort_direction?"descend":"ascend":null},{title:"补交时间",dataIndex:"late_time",key:"late_time",sorter:!0,showSorterTooltip:!1,sortOrder:"late_time"===b.sort_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,A.jsx)("span",{title:e,children:e}):"--"}}];function O(){return D.apply(this,arguments)}function D(){return(D=a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/homework_commons/".concat(c.homework_id,"/group_settings_statistics.json"),{method:"get",params:l()({},b)});case 2:t=e.sent,M(t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,A.jsxs)("div",{className:le.listContainer,onClick:function(e){e.stopPropagation(),(!(0,_.GJ)()||(0,_.GJ)()&&N.current&&!N.current.contains(e.target))&&(0,S.xg)("/classrooms/".concat(b.coursesId,"/group_homework/").concat(c.homework_id,"/detail"))},children:[(0,_.GJ)()&&(0,A.jsx)("span",{ref:N,children:(0,A.jsx)(V.Z,{onClick:function(e){e.stopPropagation()},style:{padding:"10px"},checked:g.includes(c.homework_id),onChange:function(){return e=c.homework_id,void(g.includes(e)?(v(g.filter((function(t){return t!==e}))),w(x.filter((function(t){return t.homework_id!==e})))):(v([].concat(Z()(g),[e])),w([].concat(Z()(x),[c]))));var e}})}),(0,A.jsxs)("div",{className:le.info,children:[(0,A.jsxs)("div",{className:le.title,children:[(0,A.jsxs)("div",{className:le.left,style:(0,_.dE)()?{paddingRight:(null==c?void 0:c.challenge_count)-(null==c?void 0:c.finished_challenge_count)?60:140}:{},children:[(0,_.GJ)()&&(0,A.jsx)(ce.Z,{value:c.status,children:(0,A.jsx)(S.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:[c.status]})}),(0,_.dE)()&&(0,A.jsx)(S.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:c.status}),(0,A.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,A.jsx)(p.Link,{target:"_blank",to:"/classrooms/".concat(b.coursesId,"/group_homework/").concat(c.homework_id,"/detail").concat((0,_.dE)()?"?tabs=1":""),children:c.name})})]}),(0,A.jsxs)("div",{className:le.right,children:[(0,_.GJ)()&&"未发布"===c.status&&(0,A.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:[c],params:l()({},b),type:2,manage_all_group:h}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:(0,A.jsxs)("aside",{className:le.flexBox,children:[(0,A.jsx)("i",{className:"iconfont icon-yishezhifabushijian1"}),(0,A.jsx)("div",{children:"发布"})]})}),(0,_.dE)()&&(0,A.jsxs)("div",{className:le.actionIcon,children:[(null==c?void 0:c.challenge_count)-(null==c?void 0:c.finished_challenge_count)==0&&(0,A.jsx)("i",{className:"iconfont icon-yiwancheng1"}),!(null!==(n=c.status)&&void 0!==n&&n.includes("已截止"))&&!(null!==(o=c.status)&&void 0!==o&&o.includes("导入"))&&(0,A.jsxs)("aside",{onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),(0,S.xg)("/classrooms/".concat(b.coursesId,"/group_homework/").concat(c.homework_id,"/detail").concat((0,_.dE)()?"?tabs=1":""));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),className:le.flexBox,style:{marginRight:10},children:[(0,A.jsx)("i",{className:"iconfont icon-kaishixuexi font14"}),(0,A.jsx)("div",{children:"开始学习"})]}),((null===(r=c.status)||void 0===r?void 0:r.includes("已截止"))||(null===(s=c.status)||void 0===s?void 0:s.includes("导入")))&&(0,A.jsxs)("aside",{className:le.flexBox,style:{marginRight:10},children:[(0,A.jsx)("i",{className:"iconfont icon-chakanzuoye font14"}),(0,A.jsx)("div",{children:"查看作品"})]})]}),(0,_.GJ)()&&(0,A.jsx)(re.Z,{placement:"bottomCenter",overlayClassName:le.dro,dropdownRender:function(){return(0,A.jsxs)(ae.Z,{children:["导入"!==c.status&&(0,A.jsx)(ae.Z.Item,{style:{textAlign:"center"},children:(0,A.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:[c],params:l()({},b),type:2,manage_all_group:h}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即发布"})},1),"导入"===c.status&&(0,A.jsx)(ae.Z.Item,{style:{textAlign:"center"},children:(0,A.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"补充成绩",name:null==c?void 0:c.name,id:null==c?void 0:c.homework_id,type:"group"}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"补充成绩"})},23),"导入"!==c.status&&(0,A.jsx)(ae.Z.Item,{style:{textAlign:"center"},children:(0,A.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"立即截止",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:[c],params:l()({},b),type:2}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即截止"})},2),(0,A.jsx)(ae.Z.Item,{style:{textAlign:"center"},children:(0,A.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"删除",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:x,params:b,status:null==c?void 0:c.status}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即删除"})},22),"导入"!==c.status&&(0,A.jsx)(ae.Z.Item,{style:{textAlign:"center"},children:(0,A.jsx)(p.Link,{target:"_blank",onClick:function(e){e.stopPropagation()},to:"/classrooms/".concat(b.coursesId,"/group_homework/").concat(c.homework_id,"/detail?tabs=3"),children:"高级设置"})},6)]})},children:(0,A.jsxs)("aside",{onClick:function(e){return e.stopPropagation()},className:le.flexBox,style:{marginRight:6,cursor:"default"},children:[(0,A.jsx)("i",{className:"iconfont icon-gengduo4"}),(0,A.jsx)("div",{children:"更多"})]})})]})]}),(0,A.jsx)("div",{className:le.detail,children:(0,_.GJ)()&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("span",{className:"c-grey-333 mr20",children:c.author}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.uncommit_count&&(0,A.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,A.jsx)("span",{className:"mr5",children:"未做题"}),c.uncommit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.commit_count&&(0,A.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,A.jsx)("span",{className:"mr5",children:"已做题"}),c.commit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.compelete_count&&(0,A.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,A.jsx)("span",{className:"mr5",children:"已完成"}),c.compelete_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(c.status)&&(0,A.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,A.jsx)("span",{className:"mr5",children:"发布时间"}),c.publish_time]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(c.status)&&(0,A.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,A.jsx)("span",{className:"mr5",children:"截止时间"}),c.end_time]}),["已结束"].includes(c.status)&&(0,A.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,A.jsx)("span",{className:"mr5",children:"结束时间"}),c.status_time]}),!(null==c||!c.late_time)&&"--"!==(null==c?void 0:c.late_time)&&(0,A.jsxs)("span",{className:"c-grey-999",children:[(0,A.jsx)("span",{className:"mr5",children:"补交截止时间"}),null==c?void 0:c.late_time]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&(0,A.jsxs)("span",{className:le.iconV,onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),C||O(),T(!C);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,A.jsx)("i",{className:"iconfont icon-".concat(C?"shouqi":"xiala2")})," "]})]})}),(0,A.jsxs)("div",{className:le.content,children:[(0,_.dE)()&&(0,A.jsxs)("span",{className:le.infoStuIcon,children:[(0,A.jsx)("span",{className:"c-grey-333",children:c.author}),"已截止"===c.status&&!(null==c||!c.status_time)&&(0,A.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,A.jsx)("i",{className:"iconfont icon-shengyushijian font12 mr5"})," ",null==c?void 0:c.status_time]}),(0,A.jsxs)("span",{className:"ml20 c-grey-999",children:[(0,A.jsx)("i",{className:"iconfont icon-shijian1 font12 mr5"}),null==c?void 0:c.publish_time," 至 ",null==c?void 0:c.end_time," "]}),!(null==c||!c.late_time)&&"--"!==(null==c?void 0:c.late_time)&&(0,A.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,A.jsx)("span",{className:"mr5",children:"补交截止时间:"}),null==c?void 0:c.late_time]})]}),(0,_.GJ)()&&"未发布"!==c.status&&C&&E.length>5&&(0,A.jsx)(se.Z,{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:E,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(b.sort_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"),O()},columns:I}),(0,_.GJ)()&&"未发布"!==c.status&&C&&E.length<6&&E.length>0&&(0,A.jsx)(se.Z,{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:E,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(b.sort_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"),O()},columns:I})]})]})]})},de="bottomControlContainer___yUX9N",pe="moveCategory___pCGhW",me=n(46952),he=function(e){var t,n=e.buttonDataSource,o=e.onClick,r=(0,d.useContext)(Ae),s=r.allSelect,l=r.setAllSelect,c=r.setSelectArrs,p=r.dataSource,h=r.selectArrs,f=r.useBatchStatus,g=r.dispatch,v=r.params,y=r.getData,b=r.detailLeftMenus,j=r.main_category_id,k=r.setSelectArrsAll,C=(0,d.useState)(!1),S=u()(C,2),T=(S[0],S[1]),N=(0,d.useState)(""),P=u()(N,2),B=P[0],E=P[1];b.course_modules&&(t=b.course_modules.filter((function(e){return"group_homework"===e.type}))[0]);var M=(0,A.jsx)("div",{className:pe,onMouseLeave:function(e){return T(!1)},children:(0,A.jsxs)(ae.Z,{onClick:function(){var e=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.item,n=t.key,t.keyPath,t.domEvent,""!=h){e.next=4;break}return m.ZP.error("请选择你要操作的任务"),e.abrupt("return",null);case 4:return e.next=6,(0,L.ZP)("/api/courses/".concat(v.id,"/homework_commons/move_to_category.json"),{method:"post",body:{homework_ids:h,new_category_id:n}});case 6:0===e.sent.status&&(m.ZP.success("操作成功"),f(!1),y(),g({type:"classroomList/getClassroomLeftMenus",payload:{id:v.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,A.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",children:(0,A.jsx)(Y.Z,{onChange:function(e){E(e.target.value)}})}),t&&t.second_category.filter((function(e){return"未分配目录"!==e.category_name})).map((function(e,t){var n;if(!(""!==B&&e.category_name.indexOf(B)<0))return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(ae.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,A.jsx)(ae.Z.Item,{style:{marginLeft:20},className:"multi-llipsis1e",children:e.category_name},e.category_id)}))]})})),(0,A.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:function(e){e.preventDefault(),g({type:"classroomList/setActionTabs",payload:{key:"添加目录",params:v,selectArrs:{category_id:j,type:"group_homework"}}})},children:"新建子目录..."})]})});return(0,A.jsx)("div",{className:de,children:(0,A.jsxs)(x.Z,{wrap:!1,align:"middle",justify:"space-between",style:{height:"100%"},children:[(0,A.jsx)(w.Z,{flex:1,children:(0,A.jsxs)(x.Z,{wrap:!1,align:"middle",gutter:8,children:[(0,A.jsx)(w.Z,{children:(0,A.jsxs)(V.Z,{checked:s,onChange:function(e){l(e.target.checked),c(e.target.checked?p.map((function(e){return e.homework_id})):[]),e.target.checked?k(Z()(p)):k([])},children:["全选本页(",h.length,")"]})}),(0,_.GJ)()&&(0,A.jsx)(w.Z,{children:(0,A.jsx)(re.Z,{placement:"top",menu:{items:n,onClick:function(e){var t=e.key;o({key:t})}},children:(0,A.jsx)(W.ZP,{type:"primary",icon:(0,A.jsx)("i",{className:"iconfont icon-piliangcaozuo3"}),children:"批量操作"})})}),(0,A.jsx)(w.Z,{children:(0,A.jsx)(W.ZP,{type:"primary",onClick:function(){var e={courseId:v.id,container_type:"group_homework"};v.categoryId&&(e.category_id=v.categoryId),g({type:"classroomList/getAllTaskList",payload:e}),g({type:"classroomList/setActionTabs",payload:{key:"调整排序"}})},icon:(0,A.jsx)("i",{className:"iconfont icon-tiaozhengpaixu2"}),children:"调整排序"})}),(0,_.GJ)()&&(0,A.jsx)(w.Z,{children:(0,A.jsx)(re.Z,{placement:"topLeft",dropdownRender:function(){return M},getPopupContainer:function(e){return e.parentNode},children:(0,A.jsxs)(W.ZP,{type:"primary",icon:(0,A.jsx)("i",{className:"iconfont icon-yidongmulu"}),children:["移动到目录 ",(0,A.jsx)(me.Z,{})]})})}),(0,_.GJ)()&&(0,A.jsx)(w.Z,{children:(0,A.jsx)(W.ZP,{type:"primary",onClick:function(){return o({key:"collection",label:"收藏"})},icon:(0,A.jsx)("i",{className:"iconfont icon-shoucang1"}),children:"收藏"})})]})}),(0,A.jsx)(w.Z,{children:(0,A.jsx)(W.ZP,{type:"primary",ghost:!0,onClick:function(){c([]),f(!1)},children:"取消操作"})})]})})},fe=n(21510),ge=n(51289),ve=n(75815),xe=n(32274),we=n(81327),ye=n(30518),be=n(71418),je=n(17810),ke=n.n(je),Ce=n(97396),_e=n.n(Ce),Se=n(89527),Te=n(97575),Ze=["classroomList","dispatch","user","getData"];ke().extend(_e());var Le=function(e){var t,n,o,i,r=e.data,a=e.value,s=e.onChange,c=(0,d.useState)({leftSearch:"",rigthSearch:""}),p=u()(c,2),m=p[0],h=p[1],f=(0,d.useState)([]),g=u()(f,2),v=g[0],y=g[1];return(0,d.useEffect)((function(){y((null==a?void 0:a.length)>0?null==r?void 0:r.filter((function(e){return null==a?void 0:a.includes(null==e?void 0:e.id)})):[])}),[a]),(0,A.jsxs)("div",{style:{display:"flex",flexWrap:"nowrap",gap:"20px",height:"400px"},children:[(0,A.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,A.jsx)(V.Z,{indeterminate:(null==v?void 0:v.length)>0&&(null==v?void 0:v.length)<(null==r?void 0:r.length),checked:(null==v?void 0:v.length)==(null==r?void 0:r.length),onChange:function(e){s(e.target.checked?null==r?void 0:r.map((function(e){return null==e?void 0:e.id})):[])},children:"全选"}),(0,A.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,A.jsx)(Y.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:m.leftSearch,onChange:function(e){h(l()(l()({},m),{},{leftSearch:e.target.value}))}}),(0,A.jsx)("div",{className:"mt20 ml20 mb20",style:{overflow:"auto"},children:0!==(null===(t=m.leftSearch?null==r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.leftSearch)})):r)||void 0===t?void 0:t.length)?(0,A.jsx)(V.Z.Group,{value:a,onChange:function(e){s(e)},children:(0,A.jsx)(we.Z,{direction:"vertical",children:null===(n=m.leftSearch?null==r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.leftSearch)})):r)||void 0===n?void 0:n.map((function(e,t){return(0,A.jsx)(V.Z,{value:e.id,children:null==e?void 0:e.name},t)}))})}):(0,A.jsx)(J.Z,{styles:{margin:"0 auto"}})})]})]}),(0,A.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,A.jsxs)("div",{children:["已选择",(null==v?void 0:v.length)||0,"个分班"]}),(0,A.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,A.jsx)(Y.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:m.rigthSearch,onChange:function(e){h(l()(l()({},m),{},{rigthSearch:e.target.value}))}}),(0,A.jsx)("div",{className:"mt20 ml20 mb20 pr20",style:{display:"flex",flexDirection:"column",gap:"10px",overflow:"auto"},children:0!==(null===(o=m.rigthSearch?null==v?void 0:v.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.rigthSearch)})):v)||void 0===o?void 0:o.length)?null===(i=m.rigthSearch?null==v?void 0:v.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.rigthSearch)})):v)||void 0===i?void 0:i.map((function(e,t){return(0,A.jsxs)(x.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,A.jsx)(w.Z,{children:null==e?void 0:e.name}),(0,A.jsx)(w.Z,{children:(0,A.jsx)("i",{className:"iconfont icon-piliangshanchu2 font16 current",style:{color:"#3061D0"},onClick:function(){s(null==a?void 0:a.filter((function(t){return t!==(null==e?void 0:e.id)})))}})})]},t)})):(0,A.jsx)(J.Z,{styles:{margin:"0 auto"}})})]})]})]})},Ne=(0,p.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,o,r,s,c,h=e.classroomList,f=e.dispatch,g=(e.user,e.getData),y=(O()(e,Ze),(0,p.useParams)()),b=F.Z.useForm(),j=u()(b,1)[0],k="批量补交"===(null==h||null===(t=h.actionTabs)||void 0===t?void 0:t.key),C=(0,Te.U)(Se.c_,l()(l()({},y),null==h||null===(n=h.actionTabs)||void 0===n?void 0:n.params)),_=u()(C,4),T=_[1],Z=_[2],L=_[3],N=(0,Te.U)(Se.nP,{course_id:null==y?void 0:y.coursesId,homework_ids:null==h||null===(o=h.actionTabs)||void 0===o?void 0:o.selectArrs}),P=u()(N,4),B=P[2],E=P[3],M=(0,Te.U)(Se.sm,{course_id:null==y?void 0:y.coursesId,homework_ids:null==h||null===(r=h.actionTabs)||void 0===r?void 0:r.selectArrs}),I=u()(M,3),D=I[1],G=I[2],H=function(){var e=a()(i()().mark((function e(){var t=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:{},B({}),e.next=4,Z({page:1,limit:2e4,homework_id:1===h.actionTabs.type?"":h.actionTabs.selectArrs[0]});case 4:e.sent;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,d.useEffect)((function(){k&&H()}),[k]),(0,A.jsxs)(v.Z,{centered:!0,title:null==h||null===(s=h.actionTabs)||void 0===s?void 0:s.key,width:800,open:k,cancelText:"暂不补交",okText:"开启补交",onCancel:function(){f({type:"classroomList/setActionTabs",payload:{}})},destroyOnClose:!0,confirmLoading:D,onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:j.submit();case 1:case"end":return e.stop()}}),e)}))),children:[(0,A.jsx)("div",{className:"p10 pl20 pr20 c-orange-ff7 mb20",style:{background:"#F6F7F9"},children:"规则说明:补交截止时间必须晚于作业截止时间;当班级阶段进入“补交中”则不可变更作业截止时间、不可关闭补交;当作业状态为未发布、作业已开启统一补交和作业已开启匿评时,新批量补交规则不生效。"}),(0,A.jsxs)(F.Z,{form:j,colon:!1,size:"large",initialValues:{unified_late:!1,late_penalty:5},onFinish:function(){var e=a()(i()().mark((function e(t){var n,o,r,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,G((null==L||null===(n=L.course_groups)||void 0===n?void 0:n.length)>0?{unified_late:(null==L||null===(o=L.course_groups)||void 0===o?void 0:o.length)<=0,allow_late_settings:[l()({},t)]}:l()({unified_late:(null==L||null===(r=L.course_groups)||void 0===r?void 0:r.length)<=0},t));case 2:0==(null==(a=e.sent)?void 0:a.status)&&(m.ZP.success("补交设置成功"),f({type:"classroomList/setActionTabs",payload:{}}),g&&g());case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,A.jsxs)(x.Z,{wrap:!1,gutter:20,children:[(0,A.jsx)(w.Z,{flex:1,children:(0,A.jsx)(F.Z.Item,{label:"补交扣分",name:"late_penalty",rules:[{required:!0,message:"请输入补交扣分"}],children:(0,A.jsx)(Y.Z,{placeholder:"请输入补交扣分",min:0,type:"number",suffix:"分",max:Number.MAX_SAFE_INTEGER,style:{width:"50%"}})})}),(0,A.jsx)(w.Z,{flex:"390px",children:(0,A.jsx)(F.Z.Item,{label:"补交截止时间",name:"late_time",rules:[{required:!0,validator:function(e,t,n){return t&&ke()(t).startOf("minute")<=ke()().startOf("minute")?Promise.reject("作业补交截止时间必须晚于此刻"):t&&ke()(t).startOf("minute")<=ke()(null==E?void 0:E.max_late_time).startOf("minute")?(m.ZP.warning("补交截止时间不能小于选中作业中最晚作业截止时间:".concat(null==E?void 0:E.max_late_time)),Promise.reject("")):Promise.resolve()}},{required:!0,message:"请先设置补交截止时间"}],children:(0,A.jsx)(ye.default,{placeholder:"请选择截止时间",style:{width:"100%"},disabledDate:function(e){return(0,S.BO)(e,{startTime:null==E?void 0:E.max_late_time})},disabledTime:function(e){return(0,S.hv)(e,{compared:null==E?void 0:E.max_late_time})},format:"YYYY-MM-DD HH:mm",showTime:{showSecond:!1,defaultValue:ke()("00:00:00","HH:mm:ss")}})})})]}),(null==L||null===(c=L.course_groups)||void 0===c?void 0:c.length)>0&&(0,A.jsx)(be.Z,{spinning:T,children:(0,A.jsx)(F.Z.Item,{name:"group_id",rules:[{required:!0,message:"请先选择班级"}],children:(0,A.jsx)(Le,{data:(null==L?void 0:L.course_groups)||[]})})})]})]})})),Ae=(0,d.createContext)({selectArrs:[]}),Pe=(0,p.connect)((function(e){var t=e.user,n=e.classroomList,o=e.loading;return{user:t,classroomList:n,globalSetting:e.globalSetting,loading:o.effects}}))((function(e){var t,n,o,r,s=e.user,c=e.classroomList,T=e.loading,Z=e.dispatch,N=(0,p.useParams)(),I=(0,p.useSearchParams)(),O=u()(I,1)[0],D=(0,d.useState)((function(){return l()(l()({},N),{},{id:N.coursesId,limit:20})})),H=u()(D,2),R=H[0],z=H[1],F=(0,d.useState)(!1),W=u()(F,2),Y=W[0],V=W[1],U=(0,d.useState)({ta_mode:1,final_mode:!1,st_proportion:0,ta_proportion:30,te_proportion:70,gr_proportion:0,is_repeat_minus:!1,is_group_grade:!1,repeat_setting_score:"",repeat_limit:""}),K=u()(U,2),q=K[0],Q=K[1],te=(0,d.useState)([]),re=u()(te,2),ae=re[0],se=re[1],le=(0,d.useState)(!1),ce=u()(le,2),de=ce[0],pe=ce[1],me=(0,d.useState)(!1),we=u()(me,2),ye=we[0],be=we[1],je=(0,d.useState)([]),ke=u()(je,2),Ce=ke[0],_e=ke[1],Se=(0,d.useState)(!1),Te=u()(Se,2),Ze=(Te[0],Te[1],(0,d.useState)("默认排序")),Le=u()(Ze,2),Pe=Le[0],Be=Le[1],Ee=(0,p.useLocation)(),Me=c.detailCommonHomeworksList,Ie=c.detailLeftMenus,Oe=c.detailTopBanner,De=c.taskList;O.get("tabs")&&parseInt(O.get("tabs"));R.type=3,R.categoryId?R.category=R.categoryId:delete R.category,(0,d.useEffect)((function(){z(l()(l()({},R),N))}),[null==N?void 0:N.categoryId]),(0,d.useEffect)((function(){"0"===O.get("tabs")&&(R.status="0",R.page=1)}),[O.get("tabs")]),(0,d.useEffect)((function(){var e=O.get("tabs");e&&void 0!==e&&((0,_.GJ)()?R.status=e:R.order=e)}),[O.toString()]),(0,d.useEffect)((function(){Z({type:"classroomList/getAssistantPermissions",payload:{course_id:R.id}})}),[]),(0,d.useEffect)((function(){var e,t,n=O.get("tabs");if(null!=s&&null!==(e=s.userInfo)&&void 0!==e&&e.login){var o,i=S.cX.getItem("".concat(null==s||null===(o=s.userInfo)||void 0===o?void 0:o.login).concat((0,_.GJ)()?"Teacher":"Student"),"GroupHomework");i&&(R.sort_by=null==i?void 0:i.type,R.sort_direction=null==i?void 0:i.direction,Be(null==i?void 0:i.name));var r=void 0===N.categoryId?{}:{categoryId:N.categoryId,category:N.categoryId};n&&void 0!==n&&((0,_.GJ)()?R.status=n:R.order=n),Ge(r)}else if(null!=s&&null!==(t=s.userInfo)&&void 0!==t&&t.username){var a=void 0===N.categoryId?{}:{categoryId:N.categoryId,category:N.categoryId};n&&void 0!==n&&((0,_.GJ)()?R.status=n:R.order=n),Ge(a)}}),[null==s||null===(t=s.userInfo)||void 0===t?void 0:t.login,null==Ee?void 0:Ee.pathname]),(0,d.useEffect)((function(){"目录重命名成功"===c.actionTabs.key&&Ge(),"目录重命名成功"===c.actionTabs.key&&Ge()}),[c.actionTabs.key]),(0,d.useEffect)((function(){se([])}),[Me]),(0,d.useEffect)((function(){be(!1)}),[R.categoryId]),(0,d.useEffect)((function(){Me&&Me.homeworks&&(ae.length===Me.homeworks.length&&ae.length>0?pe(!0):ae.length!==Me.homeworks.length&&pe(!1))}),[ae]);var Ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};se([]),_e([]),(0,_.GJ)()?Z({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()(l()({},R),e),{},{type:3})}):Z({type:"classroomList/getClassroomCommonList",payload:l()(l()({},R),e)})},He=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/courses/".concat(R.coursesId,"/homework_commons/get_default_score_setting.json"),{method:"get",params:{homework_type:3}});case 2:null!=(t=e.sent)&&t.data&&(n=t.data.score_settings,Object.keys(n).map((function(e){e.indexOf("proportion")>-1&&(n[e]=(100*n[e]).toFixed(0))})),console.log(n),Q(l()({},n)));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,d.useEffect)((function(){se([])}),[Me]);var Re=function(){Z({type:"shixunHomeworks/setActionTabs",payload:{key:"题库选用",params:R}})},ze=null===(n=[{key:"publish",label:"批量发布",icon:(0,A.jsx)("i",{className:"iconfont icon-fabu5"}),isShow:!0},{key:"deadline",label:"批量截止",icon:(0,A.jsx)("i",{className:"iconfont icon-piliangjiezhi2"}),isShow:(0,_.GJ)()||(0,_.Rm)()},{key:"batchpay",label:"批量补交",icon:(0,A.jsx)("i",{className:"iconfont icon-buka"}),isShow:!0},{key:"delete",label:"批量删除",icon:(0,A.jsx)("i",{className:"iconfont icon-piliangshanchu2"}),isShow:!0},{key:"public",label:"设为公开",icon:(0,A.jsx)("i",{className:"iconfont icon-sheweigongkai2"}),isShow:Oe.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})),Fe=function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z({type:"classroomList/updateTaskPosition",payload:{category_id:R.categoryId,courseId:R.id,task_ids:t,container_type:"group_homework"}});case 2:Ge();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),We=(0,d.useMemo)((function(){var e=[];return De.length>0&&(e=De.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}),[De]);return(0,A.jsx)(Ae.Provider,{value:{params:R,batchStatus:ye,selectArrs:ae,setSelectArrs:se,allSelect:de,dataSource:Me.homeworks||[],detailLeftMenus:Ie,main_category_id:Me.main_category_id||"",selectArrsAll:Ce,setAllSelect:pe,useBatchStatus:be,dispatch:Z,getData:Ge,setSelectArrsAll:_e},children:(0,A.jsxs)("section",{children:[(0,A.jsxs)("aside",{className:oe,children:[(0,A.jsx)(ie.Z,{isLoading:T[(0,_.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"],tabDataSource:(0,_.GJ)()?[{name:"全部",id:0,total:Me.all_count||0},{name:"未发布",id:1,total:Me.unpublished_count||0},{name:"未开始",id:4,total:Me.not_start_count||0},{name:"进行中",id:2,total:Me.in_progress_count||0},{name:"已截止",id:3,total:Me.overed_count||0}]:[{name:"全部",id:0},{name:"提交中",id:1},{name:"补交中",id:2},{name:"匿评中",id:3},{name:"申诉中",id:4},{name:"已截止",id:5}],isAdmin:(0,_.GJ)(),dispatch:Z,type:null==Me?void 0:Me.main_category_name,exportType:"group",TooltipTitle:R.categoryId?"目录重命名":"新建子目录",categoryId:R.categoryId,dropdownMenu:[{name:"新建分组作业",id:"1"},{name:"选用资源",id:"2"},{name:"导入外部成绩",id:"3"}],isShowRightControl:"未分配目录"!==(0,S.Oo)(null==Ie?void 0:Ie.course_modules,R.categoryId),onsetClick:function(){He(),V(!0)},onTabMenuClick:function(e){void 0!==e.id&&((0,_.GJ)()?R.status=e.id:R.order=e.id),be(!1),R.page=1,p.history.replace("".concat(Ee.pathname,"?tabs=").concat(e.id)),Ge(R)},defaultSelectedKeys:[O.get("tabs")?O.get("tabs"):"0"],onTooltipTitleClick:function(){Z({type:"classroomList/setActionTabs",payload:{key:R.categoryId?"目录重命名":"添加目录",params:R,selectArrs:{category_name:null==Me?void 0:Me.category_name,category_id:(null==Me?void 0:Me.category_id)||(null==Me?void 0:Me.main_category_id)},cb:function(){Ge()}}})},onDropdownMenuClick:function(e){var t;!(0,_.Rm)()||null!==(t=c.AssistantObject.group)&&void 0!==t&&t.can_create?"1"===e?p.history.push("/classrooms/".concat(R.coursesId,"/group_homework/").concat(R.categoryId,"/add")):"2"===e?Re():"3"===e&&Z({type:"classroomList/setActionTabs",payload:{key:"导入外部成绩",type:"group"}}):m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),(0,A.jsx)(fe.Z,{dataSource:Me.homeworks||[],isAdmin:(0,_.GJ)(),batchStatus:ye,SortMenuName:Pe,setSortMenuName:Be,onSearch:function(e){R.search=e.trim(),R.page=1,Ge()},onSort:function(e){var t;R.sort_by=e.type,R.sort_direction=e.direction,R.page=1,S.cX.setItem("".concat(null==s||null===(t=s.userInfo)||void 0===t?void 0:t.login).concat((0,_.GJ)()?"Teacher":"Student"),e,"GroupHomework"),Ge(R)},onBatch:function(e){return be(e)}})]}),(0,A.jsxs)(h.Z,{loading:T["classroomList/getClassroomCommonHomeworksList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30",children:[0===(null==Me?void 0:Me.all_count)&&(0,_.GJ)()?!T[(0,_.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,A.jsx)(ne,{params:R,dispatch:Z,onSelect:Re}):(null==Me?void 0:Me.homeworks)&&0===Me.homeworks.length&&!T[(0,_.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,A.jsx)(J.Z,{}),(0,A.jsx)("aside",{className:"minH500 skt-loading relative pb40 mb30",children:!T[(0,_.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)("aside",{className:"animated fadeIn",children:[null==Me||null===(o=Me.homeworks)||void 0===o?void 0:o.map((function(e,t){return(0,A.jsx)(ue,{dataSource:e,params:R,manageAllGroup:null==Me?void 0:Me.manage_all_group},t)})),(0,A.jsx)("aside",{className:"tc mb50 mt30",children:(null==Me?void 0:Me.query_total_count)>10&&(0,A.jsx)(f.Z,{showSizeChanger:!0,onChange:function(e,t){R.page=e,R.limit=t,Ge()},defaultCurrent:1,current:R.page||1,pageSize:R.limit||20,total:Me.query_total_count})})]}),ae.length>0&&(0,_.GJ)()&&(0,A.jsx)(g.Z,{offsetBottom:0,children:(0,A.jsx)(he,{buttonDataSource:ze,onClick:function(e){var t,n;if(0===ae.length)return m.ZP.error("请选择你要操作的任务"),!1;var o=e.label||"",i={key:o,selectArrs:ae,selectArrsAll:Ce,type:["publish","deadline"].includes(e.key)?1:"",params:R};switch(e.key){case"publish":if((0,_.Rm)()&&(null==c||null===(t=c.AssistantObject)||void 0===t||null===(t=t.group)||void 0===t||!t.can_publish))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");o="立即发布";break;case"deadline":if((0,_.Rm)()&&(null==c||null===(n=c.AssistantObject)||void 0===n||null===(n=n.group)||void 0===n||!n.can_stop))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");o="立即截止";break;case"batchpay":o="批量补交";break;case"delete":o="删除";break;case"collection":o="收藏"}Z({type:"classroomList/setActionTabs",payload:l()(l()({},i),{},{key:o})})}})})]})})]}),"批量补交"===(null==c||null===(r=c.actionTabs)||void 0===r?void 0:r.key)&&(0,A.jsx)(Ne,{getData:Ge}),(0,A.jsx)(P,{onCallback:function(){return be(!1)}}),(0,A.jsx)(ge.Z,{onOk:function(){Ge()}}),(0,A.jsx)(ve.Z,{onOk:function(){}}),(0,A.jsx)(B.Z,{onCallback:function(){return be(!1)},courseEndTime:null==Me?void 0:Me.course_end_time}),(0,A.jsx)(E.Z,{courseEndTime:null==Me?void 0:Me.course_end_time,courseId:N.coursesId,visible:"立即截止"===c.actionTabs.key,isBatch:2!==c.actionTabs.type,homeworkIds:c.actionTabs.selectArrs,successCallback:function(){be(!1),Ge()}}),(0,A.jsx)(M,{}),(0,A.jsx)(X,{}),(0,A.jsx)(G,{onCallback:function(){return be(!1)}}),(0,A.jsx)($.Z,{}),(0,A.jsx)(ee.Z,{}),(0,A.jsx)(xe.Z,{visible:"调整排序"===c.actionTabs.key,callback:Fe,data:We,onCancel:function(){Z({type:"classroomList/setActionTabs",payload:{key:""}})}}),(0,A.jsx)(v.Z,{open:Y,title:"默认评分设置",centered:!0,onCancel:function(){V(!1)},onOk:a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=JSON.parse(JSON.stringify(q)),Object.keys(t).map((function(e){e.indexOf("proportion")>-1&&(t[e]=t[e]/100)})),e.next=4,(0,L.ZP)("/api/courses/".concat(R.coursesId,"/homework_commons/set_default_score_setting.json"),{method:"post",body:{homework_type:3,score_settings:t}});case 4:0===e.sent.status&&(m.ZP.success("设置成功"),V(!1));case 6:case"end":return e.stop()}}),e)}))),width:800,children:(0,A.jsxs)("div",{children:[(0,A.jsx)(x.Z,{children:(0,A.jsx)(w.Z,{span:24,children:(0,A.jsx)(x.Z,{align:"middle",children:(0,A.jsx)(w.Z,{span:24,children:(0,A.jsx)("div",{className:"mt15",children:"该默认规则将被应用于你后续新建的分组作业,且不会影响你已创建的作业以及其他老师新建作业的评分规则。"})})})})}),(0,A.jsxs)(x.Z,{align:"middle",className:"mt25",children:[(0,A.jsx)(w.Z,{children:(0,A.jsx)("strong",{children:"组长评分"})}),(0,A.jsxs)(x.Z,{className:"ml10",children:[(0,A.jsx)(w.Z,{children:(0,A.jsx)(y.Z,{checked:q.is_group_grade,onChange:function(e){q.is_group_grade=e,Q(l()({},q))}})}),(0,A.jsx)(w.Z,{className:"c-grey-c ml10",children:"(选中,则组长首次提交作业时需要对组员进行评分)"})]})]}),(0,A.jsxs)(x.Z,{className:"mt25",children:[(0,A.jsx)(w.Z,{children:(0,A.jsx)("strong",{children:"助教评分"})}),(0,A.jsx)(w.Z,{span:24,className:"pl30 mt10"})]}),(0,A.jsx)(x.Z,{children:(0,A.jsxs)(b.ZP.Group,{value:null==q?void 0:q.ta_mode,onChange:function(e){q.ta_mode=e.target.value,Q(l()({},q))},children:[(0,A.jsxs)(b.ZP,{value:1,style:{marginTop:15},children:[(0,A.jsx)("strong",{children:"普通模式"}),(0,A.jsx)("span",{className:"c-grey-c",children:"(选中,则取各助教最终评分的平均分)"})]}),(0,A.jsx)("br",{}),(0,A.jsxs)(b.ZP,{value:0,style:{marginTop:15},children:[(0,A.jsx)("strong",{children:"复审模式"}),(0,A.jsx)("span",{className:"c-grey-c",children:"(选中,则只取最新的助教评分)"})]})]})}),(0,A.jsxs)(x.Z,{className:"mt25",children:[(0,A.jsx)(w.Z,{children:(0,A.jsx)("strong",{children:"最终成绩组成"})}),(0,A.jsx)(w.Z,{span:24,className:"pl30 mt10"})]}),(0,A.jsxs)(x.Z,{children:[(0,A.jsxs)(b.ZP.Group,{value:q.final_mode,onChange:function(e){q.final_mode=e.target.value,Q(l()({},q))},children:[(0,A.jsxs)(b.ZP,{value:!1,style:{marginTop:15},children:[(0,A.jsx)("strong",{children:"多项评分配比"}),(0,A.jsxs)("span",{className:"c-grey-c",children:["(选中,则按照比例计算最终成绩)",(0,A.jsx)(j.Z,{overlayClassName:"edu-popover",placement:"bottomLeft",content:(0,A.jsxs)("span",{className:"font14",children:["计算说明:",(0,A.jsx)("br",{}),"教师评分 * 其百分比 + 助教评分 * 其百分比 + 组长评分 * 其百分比 + 学生匿评平均分 * 其百分比 - ( ",(0,A.jsx)("br",{}),"迟交扣分 + 缺评扣分 * 缺评数 + 违规匿评扣分 * 违规匿评数 )",(0,A.jsx)("br",{}),(0,A.jsx)("br",{}),"注意",(0,A.jsx)("br",{}),"非零百分比的评分选项,若评分记录为空,则其百分比将自动平摊到其它非零",(0,A.jsx)("br",{}),"评分选项上。",(0,A.jsx)("br",{}),"例:教师评分40% + 助教评分35% + 学生匿评25%,学生A没有教师评分记",(0,A.jsx)("br",{}),"录,则其最终成绩按照助教评分55% + 学生匿评45%进行计算"]}),trigger:"click",children:(0,A.jsx)("span",{className:"mt10 ml10 current font14",children:(0,A.jsx)(C.Z,{})})})]})]}),(0,A.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,A.jsx)(w.Z,{children:"教师评分:"}),(0,A.jsxs)(w.Z,{className:"ml5",children:[(0,A.jsx)(k.Z,{min:0,max:100,value:q.te_proportion,onChange:function(e){q.te_proportion=e,Q(Object.assign({},q))}}),(0,A.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,A.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,A.jsx)(w.Z,{children:"助教评分:"}),(0,A.jsxs)(w.Z,{className:"ml5",children:[(0,A.jsx)(k.Z,{min:0,max:100,value:q.ta_proportion,onChange:function(e){q.ta_proportion=e,Q(Object.assign({},q))}}),(0,A.jsx)("span",{className:"ml10",children:"%"})]})]}),q.is_group_grade&&(0,A.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,A.jsx)(w.Z,{children:"组长评分:"}),(0,A.jsxs)(w.Z,{className:"ml5",children:[(0,A.jsx)(k.Z,{min:0,max:100,value:q.gr_proportion,onChange:function(e){q.gr_proportion=e,Q(Object.assign({},q))}}),(0,A.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,A.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,A.jsx)(w.Z,{children:"学生匿评:"}),(0,A.jsxs)(w.Z,{className:"ml5",children:[(0,A.jsx)(k.Z,{min:0,max:100,value:q.st_proportion,onChange:function(e){q.st_proportion=e,Q(Object.assign({},q))}}),(0,A.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,A.jsx)("br",{}),(0,A.jsxs)(b.ZP,{value:!0,style:{marginTop:15},children:[(0,A.jsx)("strong",{children:"单项评分优先"}),(0,A.jsxs)("span",{className:"c-grey-c",children:["(选中,则按照优先顺序计算最终成绩)",(0,A.jsx)(j.Z,{overlayClassName:"edu-popover",placement:"bottomLeft",content:(0,A.jsxs)("span",{className:"font14",children:["计算说明:",(0,A.jsx)("br",{}),"优先顺序排前的非零评分 * 100% - ",(0,A.jsx)("br",{}),"( 迟交扣分 + 缺评扣分 * 缺评数 + 违规匿评扣分 * 违规匿评数 )",(0,A.jsx)("br",{}),"例:有教师评分则教师评分100%,否则教辅评分100%,依次类推"]}),trigger:"click",children:(0,A.jsx)("span",{className:"mt10 ml10 current font14",children:(0,A.jsx)(C.Z,{})})})]})]}),(0,A.jsx)(x.Z,{children:(0,A.jsx)(w.Z,{span:24,className:"ml20",children:(0,A.jsx)("div",{style:{color:"#ccc"},children:"(教师评分 → 助教评分 → 组长评分 → 学生匿评评分)"})})})]}),(0,A.jsx)("br",{})]})]})})]})})}))},75815:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(53326),f=n(78241),g=n(43418),v=n(8591),x=n(51945),w=n(59822),y=n(98571),b=n(98740),j=n(84112),k=n(17810),C=n.n(k),_=n(26790),S=n(37712),T=h.Z.Dragger;t.Z=(0,w.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,o=e.dispatch,r=e.onOk,s=((0,w.useParams)(),f.Z.useForm()),c=p()(s,1)[0],d=(0,m.useState)(),h=p()(d,2),k=h[0],Z=h[1],L=(0,m.useState)(!1),N=p()(L,2),A=N[0],P=N[1],B={height:100,onRemove:function(){Z("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:(t=u()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,m.useEffect)((function(){c.setFieldsValue(a()(a()({},"publish_time",C()(C()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",C()(C()(new Date((0,_.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:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){c.resetFields(),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,S.jsxs)(f.Z,{form:c,onFinish:function(){var e=u()(l()().mark((function e(t){var i,a,s,u,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=k&&k.size){e.next=3;break}return v.ZP.info("请上传文件"),e.abrupt("return");case 3:return P(!0),(i=new FormData).append("type",n.actionTabs.type),i.append("file",k),a=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,j.ZP)(a,{method:"post",body:i},!0);case 10:s=e.sent,P(!1),0===(null==s?void 0:s.status)&&(r(),c.resetFields(),o({type:"classroomList/setActionTabs",payload:{}}),(null==s||null===(u=s.data)||void 0===u||null===(u=u.fail)||void 0===u?void 0:u.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,S.jsx)(x.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,_.FH)("",y.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:y.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)(T,i()(i()({},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"})]}))})]})]})})}))},51289:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(53326),f=n(78241),g=n(43418),v=n(8591),x=n(51945),w=n(92832),y=n(95237),b=n(43604),j=n(94001),k=n(30518),C=n(59822),_=n(10802),S=n(98571),T=n(98740),Z=n(84112),L=n(57538),N=n(17810),A=n.n(N),P=n(26790),B=n(37712),E=h.Z.Dragger;t.Z=(0,C.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,o=e.dispatch,r=e.onOk,s=(0,C.useParams)(),c=f.Z.useForm(),d=p()(c,1)[0],h=(0,m.useState)(),N=p()(h,2),M=N[0],I=N[1],O=(0,m.useState)(!1),D=p()(O,2),G=D[0],H=D[1],R={height:100,onRemove:function(){I("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:(t=u()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,m.useEffect)((function(){d.setFieldsValue(a()(a()({},"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:G},onOk:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:d.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){d.resetFields(),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,B.jsxs)(f.Z,{form:d,colon:!1,onFinish:function(){var e=u()(l()().mark((function e(t){var i,a,c,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=M&&M.size){e.next=3;break}return v.ZP.info("请上传文件"),e.abrupt("return");case 3:return H(!0),(i=new FormData).append("name",t.name),i.append("type",n.actionTabs.type),i.append("category_id",(null==s?void 0:s.categoryId)||null),"exercise"===n.actionTabs.type?(i.append("time",t.time||""),i.append("total_score",t.total_score)):i.append("description",t.description||""),i.append("publish_time",A()(t.publish_time).format("YYYY-MM-DD HH:mm")),i.append("end_time",A()(t.end_time).format("YYYY-MM-DD HH:mm")),i.append("file",M),e.next=14,(0,Z.ZP)("/api/courses/".concat(s.coursesId,"/export_external_score_homework.json"),{method:"post",body:i},!0);case 14:a=e.sent,H(!1),0===(null==a?void 0:a.status)&&(d.resetFields(),o({type:"classroomList/setActionTabs",payload:{}}),r(),(null==a||null===(c=a.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)(x.Z,{pagination:!1,dataSource:null==a||null===(u=a.data)||void 0===u?void 0:u.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,P.FH)("",S.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(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)(w.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)(_.Z,{watch:!0})}),"exercise"===n.actionTabs.type&&(0,B.jsxs)(y.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)(w.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)(j.Z,{style:{width:"100%"},addonAfter:"分钟",placeholder:"请输入答题时长"})})})]}),(0,B.jsxs)(y.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)(k.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:256},disabledDate:function(e){return(0,L.Q8)(e)},disabledTime:function(e){return(0,L.d0)(e)},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})}),(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"结束时间",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"请选择结束时间"}],children:(0,B.jsx)(k.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:function(e){return(0,L.Q8)(e,"",d.getFieldValue("publish_time"))},disabledTime:function(e){return(0,L.d0)(e,d.getFieldValue("publish_time"))},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})})]}),(0,B.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,B.jsxs)("div",{children:[(0,B.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,B.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,B.jsxs)("div",{children:[(0,B.jsx)("a",{download:"模版.xlsx",className:T.Z.downloadbutton,href:S.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(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,i()(i()({},R),{},{children:[(0,B.jsx)("a",{className:T.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,B.jsx)("br",{}),(0,B.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},73798:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),u=n(92832),d=n(24905),p=n(95237),m="leftdiv___aBzsX",h="listClass___bxIEW",f="spantitle___v_Vc4",g="rightdiv___xWu4M",v=n(12594),x=n(37712),w=function(e){var t=e.data,n=(e.value,e.handleChangePage,e.setSelectedRowKeys),o=e.selectedRowKeys,r=(e.onChange,(0,c.useState)([])),s=l()(r,2),w=s[0],y=s[1],b=(0,c.useState)([]),j=l()(b,2),k=j[0],C=j[1],_=(0,c.useState)([]),S=l()(_,2),T=S[0],Z=S[1],L=(0,c.useState)(1),N=l()(L,2),A=(N[0],N[1],(0,c.useState)()),P=l()(A,2);P[0],P[1];return(0,c.useEffect)((function(){y(t),C([]),Z([])}),[t]),(0,c.useEffect)((function(){n&&(C(o),Z(o))}),[o]),(0,x.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,x.jsxs)("div",{className:m,children:[(0,x.jsx)(u.Z.Search,{size:"middle",onChange:function(){var e=a()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y(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===w.length&&(0,x.jsx)(v.Z,{styles:{margin:"70px auto"},customText:"暂无分班"}),(0,x.jsx)("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"},children:(0,x.jsx)(d.Z.Group,{value:k.map((function(e){return"".concat(e.id)})),onChange:function(e){n(w.filter((function(t){return e.includes("".concat(t.id))})))},style:{marginTop:"10px",flexDirection:"column"},children:w.map((function(e,t){return(0,x.jsx)(p.Z,{style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200},children:(0,x.jsx)(d.Z,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:e.is_published,value:"".concat(e.id),children:(0,x.jsxs)("div",{className:h,children:[(0,x.jsx)("span",{className:f,style:{width:e.is_published?"108px":"170px"},children:e.name}),e.is_published&&(0,x.jsx)("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"},children:"已发布"})]})})},e.id)}))})})]}),(0,x.jsxs)("div",{className:g,children:[(0,x.jsx)(u.Z.Search,{onChange:function(e){Z(k.filter((function(t){return t.name.includes(e.target.value)})))},size:"middle",placeholder:"可输入班级名称查询"}),0===T.length&&(0,x.jsx)(v.Z,{styles:{margin:"70px auto"},customText:"暂未选择分班"}),T.length>0&&(0,x.jsx)("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"},children:(0,x.jsx)("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0},children:T.map((function(e,t){return(0,x.jsxs)(p.Z,{justify:"space-between",style:{marginTop:"10px"},children:[(0,x.jsx)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"},children:e.name}),(0,x.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(k.filter((function(t){return"".concat(t.id)!="".concat(e.id)})))}})]},e.id)}))})})]})]})}},43557:function(e,t,n){"use strict";n.d(t,{Ei:function(){return x},rU:function(){return w},ZP:function(){return y}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),s=n(59301),l={wrap:"wrap___W3YuU",title:"title___OzKge",exhibition:"exhibition___ugphm"},c=n(78241),u=n(95237),d=n(43604),p=n(24905),m=n(94001),h=n(6848),f=n(92310),g=n.n(f),v=n(37712),x=function(e){var t=e.value,n=e.className,o=e.style,i=(0,s.useState)("0"),r=a()(i,2),c=r[0],u=r[1];(0,s.useEffect)((function(){if(t){var e=t.submit_limit,n=t.must_file;if(e&&n)return void u("1");if(e&&!n)return void u("2");if(!e&&n)return void u("3")}}),[t]);var d={1:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符,并且必须上传相关附件。"]}),2:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符"]}),3:(0,v.jsx)("span",{children:"必须上传相关附件。"})};return"0"===c?(0,v.jsx)(v.Fragment,{}):(0,v.jsxs)("section",{className:g()(l.exhibition,n),style:o,children:[(0,v.jsx)("span",{className:"c-grey-666 mr10",children:"提交作业要求:"}),null==d?void 0:d[c]]})},w=function(e){var t=e.className,n=e.style,o=e.form,i=c.Z.useWatch("submit_limit",o),r=c.Z.useWatch("can_submit",o);return(0,v.jsx)("section",{className:g()(l.newWrap,t),style:n,children:(0,v.jsxs)("div",{style:{padding:"20px 0",borderBottom:"1px solid #EDEDED"},children:[(0,v.jsx)("h1",{children:"提交设置"}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"can_submit",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"允许学生提交作品"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_num",rules:r&&[{required:!0,message:"请填写作品次数"}],children:(0,v.jsx)(m.Z,{precision:0,min:1,disabled:!r})})}),(0,v.jsx)(d.Z,{children:"次"}),(0,v.jsxs)(d.Z,{children:[" ",(0,v.jsx)(h.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"2、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999"})})]})]}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生填写内容至少"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit_num",rules:i&&[{required:!0,message:"字数不能为空"}],children:(0,v.jsx)(m.Z,{precision:0,min:1,disabled:!i})})}),(0,v.jsx)(d.Z,{children:"字"})]}),(0,v.jsx)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"must_file",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生提交作业必须上传附件"})})})})})]})})},y=function(e){var t=e.value,n=e.onChange,o=e.className,r=e.style,c=e.disabled,d=void 0!==c&&c,f=(0,s.useState)({}),x=a()(f,2),w=x[0],y=x[1];(0,s.useEffect)((function(){if(console.log(t,"value"),t){var e={submit_limit:null==t?void 0:t.submit_limit,submit_limit_num:null==t?void 0:t.submit_limit_num,must_file:null==t?void 0:t.must_file,can_submit:null==t?void 0:t.can_submit,submit_num:null==t?void 0:t.submit_num};y(i()({},e))}}),[t]);var b=function(e){var t=i()(i()({},w),e);n(t)};return(0,v.jsxs)("section",{className:g()(l.wrap,o),style:r,children:[(0,v.jsx)("div",{className:l.title,children:"提交设置"}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==w?void 0:w.can_submit,onChange:function(e){return b({can_submit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"允许学生提交作业"}),(0,v.jsx)(m.Z,{precision:0,min:1,disabled:d||!(null!=w&&w.can_submit),value:null==w?void 0:w.submit_num,onChange:function(e){return b({submit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"次"}),(0,v.jsx)(h.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"2、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999 ml5"})})]}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==w?void 0:w.submit_limit,onChange:function(e){return b({submit_limit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"学生填写内容至少"}),(0,v.jsx)(m.Z,{precision:0,min:1,disabled:d||!(null!=w&&w.submit_limit),value:null==w?void 0:w.submit_limit_num,onChange:function(e){return b({submit_limit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"字"})]}),(0,v.jsxs)(u.Z,{align:"middle",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==w?void 0:w.must_file,onChange:function(e){return b({must_file:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10",children:"学生提交作业必须上传附件"})]})]})}},32274:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301),p=n(43418),m=n(66999),h=n(95237),f=n(6848),g="wrap___KDoq2",v="tip___WEJuX",x="listWrap___IJDX4",w="li___r5con",y="nameWrap___PUyEz",b="name___xuUMY",j="tag___l5CW2",k=n(16932),C=n(59822),_=n(37712),S=function(e){var t,n,o=e.type,r=void 0===o?1:o,s=e.data,c=e.visible,S=e.callback,T=e.onCancel,Z=(0,d.useState)([]),L=u()(Z,2),N=L[0],A=L[1],P=(0,C.useSelector)((function(e){return e.loading}));(0,d.useEffect)((function(){A(s)}),[JSON.stringify(s)]);var B=function(e){var t={};if(1===r){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===r){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,_.jsx)("div",{className:j,style:l()({},t),children:e})},E=function(){var e=a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:S(N.map((function(e){return e.task_id})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,_.jsx)(p.Z,{centered:!0,destroyOnClose:!0,open:c,onCancel:T,onOk:E,confirmLoading:null==P||null===(t=P.effects)||void 0===t?void 0:t["classroomList/updateTaskPosition"],okText:"保存",title:"调整排序",width:850,children:(0,_.jsxs)("div",{className:g,children:[(0,_.jsxs)("div",{className:v,children:[(0,_.jsx)("i",{className:"iconfont icon-tishi9 font14 mr10"}),(0,_.jsx)("span",{children:"提示:请在列表中长按鼠标左键,进行拖放排序。完成排序后请点击“保存”"})]}),(0,_.jsx)(m.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,_.jsx)(k.Z5,{onDragEnd:function(e){return function(e,t){if(e.destination){var n=function(e,t,n){var o=Array.from(e),i=o.splice(t,1),r=u()(i,1)[0];return o.splice(n,0,r),o}(t,e.source.index,e.destination.index);A(n)}}(e,N)},children:(0,_.jsx)(k.bK,{droppableId:"droppable",children:function(e,t){return(0,_.jsxs)("div",l()(l()({ref:e.innerRef},e.droppableProps),{},{className:x,children:[N.map((function(e,t){return(0,_.jsx)(k._l,{draggableId:e.task_id.toString(),index:t,children:function(t,n){return(0,_.jsxs)("div",l()(l()(l()({ref:t.innerRef},t.draggableProps),t.dragHandleProps),{},{className:w,children:[(0,_.jsxs)(h.Z,{align:"middle",children:[(0,_.jsx)("div",{className:y,children:(0,_.jsx)(f.Z,{title:null==e?void 0:e.task_name,children:(0,_.jsx)("div",{className:b,children:null==e?void 0:e.task_name})})}),B(null==e?void 0:e.status)]}),(0,_.jsx)(h.Z,{align:"middle",className:"font12 mt10",children:(0,_.jsxs)("span",{className:"mr30 c-grey-666",children:["管理员",(0,_.jsx)("span",{className:"ml5 c-black",children:(null==e?void 0:e.user_name)||"--"})]})})]}))}},e.task_id)})),e.placeholder]}))}})})})]})})}},35108:function(e,t,n){"use strict";n.d(t,{$J:function(){return l},JZ:function(){return u},bN:function(){return m},jP:function(){return p},rO:function(){return c}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(84112);function l(e){return(0,s.U2)("libraries/".concat(e,".json"))}function c(){return(0,s.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,s.v_)("libraries.json",e)}function m(e,t){return(0,s.gz)("libraries/".concat(e,".json"),t)}},97575:function(e,t,n){"use strict";n.d(t,{U:function(){return p}});var o=n(7557),i=n.n(o),r=n(82242),a=n.n(r),s=n(41498),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301);function p(e,t){var n=(0,d.useState)(t),o=u()(n,2),r=o[0],s=o[1],c=(0,d.useState)(!1),p=u()(c,2),m=p[0],h=p[1],f=(0,d.useState)(),g=u()(f,2),v=g[0],x=g[1],w=function(){var n=l()(i()().mark((function n(o){var l,c,u,d=arguments;return i()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return l=d.length>1&&void 0!==d[1]&&d[1],c=l?t:a()(a()({},r),o),h(!0),s(c),n.next=6,e(c);case 6:return u=n.sent,h(!1),x(u),n.abrupt("return",u);case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return[r,m,w,v]}},98740: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"}},77578:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});const o=e=>e?"function"==typeof e?e():e:null},27666:function(e,t,n){"use strict";var o=n(34706),i=n(71783);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},r=function(){if(null==t){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];t=(0,i.Z)(n(o))}};return r.cancel=()=>{i.Z.cancel(t),t=null},r}},81228:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var o=n(4966),i=n(22131),r=n(29819),a=n(93723),s=n(59301),l=n(92310),c=n.n(l),u=n(28647),d=n(55405),p=n(27666),m=n(36355),h=n(83116),f=n(37613);const g=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var v=(0,h.Z)("Affix",(e=>{const t=(0,f.TS)(e,{zIndexPopup:e.zIndexBase+10});return[g(t)]}));function x(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function w(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function y(e,t,n){if(void 0!==n&&t.bottom<e.bottom+n){return n+(window.innerHeight-t.bottom)}}const b=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function j(){return"undefined"!=typeof window?window:null}var k;!function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"}(k||(k={}));let C=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,o.Z)(this,n),(e=t.apply(this,arguments)).state={status:k.None,lastAffix:!1,prevTarget:null},e.placeholderNodeRef=(0,s.createRef)(),e.fixedNodeRef=(0,s.createRef)(),e.addListeners=()=>{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:o}=e.state;o!==n&&(b.forEach((t=>{null==o||o.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),o=null==n?void 0:n();b.forEach((n=>{null==o||o.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:o}=e.props,i=e.getTargetFunc();if(t!==k.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!i)return;const r=e.getOffsetTop(),a=e.getOffsetBottom(),s=i();if(s){const t={status:k.None},i=x(e.placeholderNodeRef.current);if(0===i.top&&0===i.left&&0===i.width&&0===i.height)return;const l=x(s),c=w(i,l,r),u=y(i,l,a);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}):void 0!==u&&(t.affixStyle={position:"fixed",bottom:u,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}),t.lastAffix=!!t.affixStyle,o&&n!==t.lastAffix&&o(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:k.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,p.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,p.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const o=e.getOffsetTop(),i=e.getOffsetBottom(),r=t();if(r&&e.placeholderNodeRef.current){const t=x(r),a=x(e.placeholderNodeRef.current),s=w(a,t,o),l=y(a,t,i);if(void 0!==s&&n.top===s||void 0!==l&&n.bottom===l)return}}e.prepareMeasure()})),e}return(0,i.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:j}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:o,children:i}=this.props,r=c()(e&&o,{[n]:!!e});let a=(0,d.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return s.createElement(u.Z,{onResize:this.updatePosition},s.createElement("div",Object.assign({},a,{ref:this.placeholderNodeRef}),e&&s.createElement("div",{style:t,"aria-hidden":"true"}),s.createElement("div",{className:r,ref:this.fixedNodeRef,style:e},s.createElement(u.Z,{onResize:this.updatePosition},i))))}}]),n}(s.Component);C.contextType=m.E_;var _=(0,s.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:o}=e,{getPrefixCls:i}=(0,s.useContext)(m.E_),r=i("affix",n),[a,l]=v(r),u=Object.assign(Object.assign({},e),{affixPrefixCls:r,rootClassName:c()(o,l)});return a(s.createElement(C,Object.assign({},u,{ref:t})))}))},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var o=n(92310),i=n.n(o),r=n(59301),a=n(36355),s=n(17313),l=n(83116),c=n(37613);const u=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:i,textPaddingInline:r,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},(0,s.Wf)(e)),{borderBlockStart:`${i}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${o}`},"&-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 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:r},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,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 d=(0,l.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[u(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};var m=e=>{const{getPrefixCls:t,direction:n,divider:o}=r.useContext(a.E_),{prefixCls:s,type:l="horizontal",orientation:c="center",orientationMargin:u,className:m,rootClassName:h,children:f,dashed:g,plain:v,style:x}=e,w=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),y=t("divider",s),[b,j]=d(y),k=c.length>0?`-${c}`:c,C=!!f,_="left"===c&&null!=u,S="right"===c&&null!=u,T=i()(y,null==o?void 0:o.className,j,`${y}-${l}`,{[`${y}-with-text`]:C,[`${y}-with-text${k}`]:C,[`${y}-dashed`]:!!g,[`${y}-plain`]:!!v,[`${y}-rtl`]:"rtl"===n,[`${y}-no-default-orientation-margin-left`]:_,[`${y}-no-default-orientation-margin-right`]:S},m,h),Z=r.useMemo((()=>"number"==typeof u?u:/^\d+$/.test(u)?Number(u):u),[u]),L=Object.assign(Object.assign({},_&&{marginLeft:Z}),S&&{marginRight:Z});return b(r.createElement("div",Object.assign({className:T,style:Object.assign(Object.assign({},null==o?void 0:o.style),x)},w,{role:"separator"}),f&&"vertical"!==l&&r.createElement("span",{className:`${y}-inner-text`,style:L},f)))}},39722:function(e,t,n){"use strict";n.d(t,{t5:function(){return d}});var o=n(92310),i=n.n(o),r=n(55477),a=n(59301),s=n(36355),l=n(77578),c=n(17356),u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};const d=e=>{const{hashId:t,prefixCls:n,className:o,style:s,placement:c="top",title:u,content:d,children:p}=e;return a.createElement("div",{className:i()(t,n,`${n}-pure`,`${n}-placement-${c}`,o),style:s},a.createElement("div",{className:`${n}-arrow`}),a.createElement(r.G,Object.assign({},e,{className:t,prefixCls:n}),p||((e,t,n)=>{if(t||n)return a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${e}-title`},(0,l.Z)(t)),a.createElement("div",{className:`${e}-inner-content`},(0,l.Z)(n)))})(n,u,d)))};t.ZP=e=>{const{prefixCls:t}=e,n=u(e,["prefixCls"]),{getPrefixCls:o}=a.useContext(s.E_),i=o("popover",t),[r,l]=(0,c.Z)(i);return r(a.createElement(d,Object.assign({},n,{prefixCls:i,hashId:l})))}},60324:function(e,t,n){"use strict";var o=n(92310),i=n.n(o),r=n(59301),a=n(77578),s=n(62892),l=n(36355),c=n(6848),u=n(39722),d=n(17356),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};const m=e=>{let{title:t,content:n,prefixCls:o}=e;return r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${o}-title`},(0,a.Z)(t)),r.createElement("div",{className:`${o}-inner-content`},(0,a.Z)(n)))},h=r.forwardRef(((e,t)=>{const{prefixCls:n,title:o,content:a,overlayClassName:u,placement:h="top",trigger:f="hover",mouseEnterDelay:g=.1,mouseLeaveDelay:v=.1,overlayStyle:x={}}=e,w=p(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:y}=r.useContext(l.E_),b=y("popover",n),[j,k]=(0,d.Z)(b),C=y(),_=i()(u,k);return j(r.createElement(c.Z,Object.assign({placement:h,trigger:f,mouseEnterDelay:g,mouseLeaveDelay:v,overlayStyle:x},w,{prefixCls:b,overlayClassName:_,ref:t,overlay:o||a?r.createElement(m,{prefixCls:b,title:o,content:a}):null,transitionName:(0,s.m)(C,"zoom-big",w.transitionName),"data-popover-inject":!0})))}));h._InternalPanelDoNotUseOrYouWillBeFired=u.ZP,t.Z=h},17356:function(e,t,n){"use strict";var o=n(17313),i=n(29878),r=n(19447),a=n(33166),s=n(83116),l=n(37613);const c=e=>{const{componentCls:t,popoverColor:n,minWidth:i,fontWeightStrong:a,popoverPadding:s,boxShadowSecondary:l,colorTextHeading:c,borderRadiusLG:u,zIndexPopup:d,marginXS:p,colorBgElevated:m,popoverBg:h}=e;return[{[t]:Object.assign(Object.assign({},(0,o.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:d,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":m,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:u,boxShadow:l,padding:s},[`${t}-title`]:{minWidth:i,marginBottom:p,color:c,fontWeight:a},[`${t}-inner-content`]:{color:n}})},(0,r.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},u=e=>{const{componentCls:t}=e;return{[t]:a.i.map((n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}},d=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:i,paddingSM:r,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,u=a-Math.round(s*l);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${u/2}px ${c}px ${u/2-n}px`,borderBottom:`${n}px ${o} ${i}`},[`${t}-inner-content`]:{padding:`${r}px ${c}px`}}}};t.Z=(0,s.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,r=(0,l.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[c(r),u(r),o&&d(r),(0,i._y)(r,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},51581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(59301),r=s(i),a=s(n(12708));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),o=void 0;if(this.props.useWindow){var i=document.documentElement||document.body.parentNode||document.body,r=void 0!==t.pageYOffset?t.pageYOffset:i.scrollTop;o=this.props.isReverse?r:this.calculateOffset(e,r)}else o=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;o<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,o=t.element,i=t.hasMore,a=(t.initialLoad,t.isReverse),s=t.loader,l=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return i&&(s?a?u.unshift(s):u.push(s):this.defaultLoader&&(a?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),r.default.createElement(o,c,u)}}]),t}(i.Component);l.propTypes={children:a.default.node.isRequired,element:a.default.node,hasMore:a.default.bool,initialLoad:a.default.bool,isReverse:a.default.bool,loader:a.default.node,loadMore:a.default.func.isRequired,pageStart:a.default.number,ref:a.default.func,getScrollParent:a.default.func,threshold:a.default.number,useCapture:a.default.bool,useWindow:a.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},26724:function(e,t,n){e.exports=n(51581)},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8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