|
|
(self.webpackChunk=self.webpackChunk||[]).push([[83935,13488,4977,39752],{626:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(1565),i=n(59301),a={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"},r=n(99194),s=function(e,t){return i.createElement(r.Z,(0,o.Z)({},e,{ref:t,icon:a}))};var l=i.forwardRef(s)},66455:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},o=null,i=!1,a=!1,r=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:r=d;break;case"object":void 0!==d.is3D?o=d:n=d;break;case"boolean":i=d,a=!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||a||(i=!0)),null!==r&&void 0===n.id&&(n.id=r);var p="",m=!1,h=null,f=null,g=null,x=!1,v=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,I(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,O(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",a=n.id,r=!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:a=arguments[l]:"boolean"==typeof c?r=c:c instanceof HTMLElement&&(o=c)}function u(){if(s){i=E(i);var l=o||document.getElementById(a);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)A(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",P(l,n,r,i)):L(l,n,r)}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)},a=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",r="/materials/"+n.material_id+"?scope=basic";S("https://"+a+"/api/proxy.php?path="+encodeURIComponent(r),(function(a){var r=JSON.parse(a),s=r.elements?r.elements.filter((function(e){return"G"==e.type||"E"==e.type}))[0]:r;if(s&&s.url){n.fileName=s.url,_(s.settings||{}),o.is3D=!0;var l="https://www.geogebra.org/images/";e.setPreviewImage(v||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){v=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 a=e.childNodes[o],r=a.className;"applet_screenshot"===r?t?(a.style.display="block",h="screenshot"):a.style.display="none":"applet_scaler prerender"!==r&&(e.removeChild(a),i=r&&-1!=r.indexOf("appletParameters")?a.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},L=function(t,n,o){b(f)<=4.2&&(o=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==f||ggbHTML5LoadedCodebaseIsWebSimple&&!x)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var a=document.createElement("div");a.classList.add("appletParameters","notranslate");var r=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,r=605);else{var u=100;(T(n.showToolBar)||T(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=T(n.showMenuBar)?245:155),r<u&&(n.width=u,r=u)}for(var d in a.style.border="none",a.style.display="inline-block",n)n.hasOwnProperty(d)&&"appletOnLoad"!==d&&a.setAttribute("data-param-"+d,n[d]);y&&a.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(a),t.appendChild(h),n.appletOnLoad=function(t){e.resize(),m(t)}}else{n.hasOwnProperty("showSplash")||a.setAttribute("data-param-showSplash","false");var v=t.querySelector(".applet_scaler.prerender"),w=null!==v;if(w)j=v.querySelector(".ggb_preview");else{var j=Z(r,s,n.borderColor,!1);(v=document.createElement("div")).className="applet_scaler",v.style.position="relative",v.style.display="block",v.style.width=r+"px",v.style.height=s+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(v,"66%"),b(f)>=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),m(e)},w||v.appendChild(j)):a.appendChild(j),v.appendChild(a),w||t.appendChild(v),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;_<a.childNodes.length;_++){"TABLE"===a.childNodes[_].tagName&&(a.removeChild(a.childNodes[_]),_--)}if(null!==ggbHTML5LoadedScript){var S=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=S&&S.parentNode.removeChild(S)}var L=document.createElement("script"),A=function(){C(a,n)};L.src=p+g,ggbHTML5LoadedCodebaseIsWebSimple=x,ggbHTML5LoadedCodebaseVersion=f,ggbHTML5LoadedScript=L.src,D("GeoGebra HTML5 codebase loaded: '"+p+"'.",n),c||l&&"5.0"!=l?p.requirejs?__webpack_require__.e(5783).then(function(){var e=[__webpack_require__(5783)];A.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(L.onload=A,t.appendChild(L)):(x?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),A())}else C(a,n);n.height=s,n.width=r},A=function(t,n,o){var i=Z(n.width,n.height,n.borderColor,o),a=document.createElement("div");a.style.position="relative",a.style.display="block",a.style.width=n.width+"px",a.style.height=n.height+"px",a.className="applet_screenshot applet_scaler"+(o?" applet_screenshot_play":""),a.appendChild(i);var r=GGBAppletUtils.getScale(n,t,o);o?(t.appendChild(B()),window.GGBT_wsf_view||(t.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(a,"66%"),t.appendChild(a),1===r||isNaN(r)||(GGBAppletUtils.scaleElement(a,r),a.style.width=n.width+"px",a.style.height=n.height+"px",a.parentNode.style.width=n.width*r+"px",a.parentNode.style.height=n.height*r+"px"),e.resize=function(){N(t,i,a,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 a=GGBAppletUtils.getScale(n,e,i);null!==o.parentNode&&(isNaN(a)||1===a?(GGBAppletUtils.scaleElement(o,1),o.parentNode.style.width=n.width+"px",o.parentNode.style.height=n.height+"px"):(GGBAppletUtils.scaleElement(o,a),o.parentNode.style.width=n.width*a+"px",o.parentNode.style.height=n.height*a+"px")),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(e),"object"===_typeof(window.GGBT_ws_header_footer)&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}e.onExitFullscreen=function(e,t){t.appendChild(e)};var P=function(e,t,n,o){A(e,t,!0);for(var i=function(){var n=[];for(r=0;r<e.childNodes.length;r++)n.push(e.childNodes[r]);if(window.GGBT_wsf_view){var i=window.GGBT_wsf_view.renderFullScreen(e,t.id),a=document.getElementById("fullscreencontainer"),s=jQuery(e).find(".fullscreencontent");s.length>0?(i.remove(),s.attr("id","fullscreencontent").show(),jQuery(a).append(s),window.dispatchEvent(new Event("resize"))):L(i,t,!1),window.GGBT_wsf_view.launchFullScreen(a)}else h=o,L(e,t,!1);if(!window.GGBT_wsf_view)for(r=0;r<n.length;r++)e.removeChild(n[r])},a=e.getElementsByClassName("ggb_preview_play"),r=0;r<a.length;r++)a[r].addEventListener("click",i,!1),a[r].addEventListener("ontouchstart",i,!1);"function"==typeof window.ggbAppletPlayerOnload&&window.ggbAppletPlayerOnload(e),k()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},B=function(){var e=document.createElement("div");if(e.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var 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},Z=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 a="lightgrey";void 0!==n&&(a="none"===n?"transparent":n),i.style.border="1px solid "+a;var r,s,l,c=document.createElement("img");if((c.style.position="relative",c.style.zIndex="1000",c.style.top="-1px",c.style.left="-1px",null!==v&&c.setAttribute("src",v),c.style.opacity=.7,null!==w)&&!o){(r=document.createElement("img")).style.position="absolute",r.style.zIndex="1001",r.style.opacity=1,c.style.opacity=.3,(s=360)>e/4*3&&(s=e/4*3),l=s/5.8,r.setAttribute("src",w),r.setAttribute("width",s),r.setAttribute("height",l);var u=(e-s)/2,d=(t-l)/2;r.style.left=u+"px",r.style.top=d+"px",i.appendChild(r)}return i.appendChild(c),i},E=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},M=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,t){if(f=e,t)I(f,!0);else{var a,r,s=!i;if(s){var l=b(f);!isNaN(l)&&l<4.4&&(s=!1)}a="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=f.indexOf("//");for(var u in r=c>0?f:0===c?a+f:"https://www.geogebra.org/apps/5.2.814.0/",M)if(f.slice(-1*M[u].length)===M[u]||f.slice(-1*(M[u].length+1))===M[u]+"/")return void I(r,!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?r+="web3d/":r+="webSimple/",I(r,!1)}},I=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",x=!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",x=!0)),n=e.split("/"),"test"===(f=n[n.length-3]).substr(0,4)?f=f.substr(4,1)+"."+f.substr(5,1):"war"!==f.substr(0,3)&&"beta"!==f.substr(0,4)||(f="5.0");var 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."),O("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"),O(e,!1),null!==c&&I(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 a,r=void 0!==o&&o,s=null!=e.noScaleMargin&&e.noScaleMargin,l=(a=e.autoHeight)&&"false"!==a,c=function(e,t,n,o,i,a){var r=null;if(null!=a&&""!=a)for(var s=e.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+a+" ")>-1){r=s;break}s=s.parentNode}var l=0,c=0,u=0,d=0,p=0,m=0,h=0;if(r)l=r.offsetWidth,c=Math.max(o?r.offsetWidth:0,r.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,r&&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=r?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,a=1,r=!1;return e.hasOwnProperty("allowUpscale")&&(r=e.allowUpscale),e.hasOwnProperty("scale")&&(a=parseFloat(e.scale),(isNaN(a)||null===a||0===a)&&(a=1),a>1&&(r=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(r=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?a:(i=n(e,t,r,o,e.scaleContainerClass),!r||e.hasOwnProperty("scale")&&1!==a?Math.min(a,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,a=(n-o.height)/2;a<0&&(a=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=a+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=a<40?"40px":a+"px",e.style.left=i+"px")}return{responsiveResize:function(n,a){var r=n.querySelector(".appletParameters");if(r){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(a.id!==r.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(r.parentElement&&/fullscreen/.test(r.parentElement.className))return;var s=o(a,n);e()&&r.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!==a.id?a.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=a.width+"px",l.parentNode.style.height=a.height+"px"):(l.parentNode.style.width=a.width*s+"px",l.parentNode.style.height=a.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($(r).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,a,!1);var i=setInterval((function(){a()}),$)}function a(){if(!n){if(!t())return;n=!0,e(),o.removeEventListener&&o.removeEventListener(Z,a,!1),i&&clearInterval(i)}}}((function(){var t,n,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 a=o[i];n[a[O]]=a[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")})()},55087: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],a=t?"".concat(t,"/").concat(i.name):"".concat(i.name);n.push({title:i.name,type:i.type,isLeaf:"tree"!==i.type,key:a})}return n}function a(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&&a(i.children,t,n)}return e}function r(e,t,n){var o;return function(){var i=this,a=arguments,r=function(){o=null,n||e.apply(i,a)},s=n&&!o;clearTimeout(o),o=setTimeout(r,t),s&&e.apply(i,a)}}n.d(t,{Ax:function(){return a},Ds:function(){return r},KI:function(){return s},SI:function(){return i},f1:function(){return o}});var s=n(27065).Z.API_SERVER},6309: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),a=n(29186),r=n.n(a),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),x=n(8772),v="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 r()(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),a=10;n>0&&(a=10+n*i);var r=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);o>40&&(r=40);var s=this.randomNum(-10,10);e.translate(a,r),e.rotate(s*Math.PI/180),e.fillText(t,0,0),e.rotate(-s*Math.PI/180),e.translate(-a,-r)}},{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()(v,t),style:{width:o},children:[(0,b.jsx)("aside",{children:(0,b.jsx)(x.Z,{value:this.state.value,onChange:this.changeCode,placeholder:"请输入图片中的验证码"})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),(0,b.jsx)("div",{className:"current",onClick:this.reloadPic,children:"看不清?换一张"})]})]})}}]),n}(f.Component),k=j},58325:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var o=n(7557),i=n.n(o),a=n(41498),r=n.n(a),s=n(79800),l=n.n(s),c=n(59301),u=n(78241),d=n(8591),p=n(43418),m=n(22744),h=n(8772),f=n(52306),g=n(95237),x=n(43604),v=n(99232),w=n.n(v),y=n(6457),b=n(7880),j={tips:"tips___e8J4O",homeworkType:"homeworkType___ZjN2X",antdTable:"antdTable___amDdp",modalWrapper:"modalWrapper___XPojI"},k=n(69363),C=n(47762),_=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),a=void 0===o?function(){}:o,s=e.visible,v=e.homeworkIds,b=e.courseId,S=e.isBatch,T=(e.shixunHomeworks,u.Z.useForm()),L=l()(T,1)[0],A=(0,c.useState)(!1),N=l()(A,2),P=N[0],B=N[1],Z=(0,c.useState)(!1),E=l()(Z,2),M=E[0],O=E[1],I=(0,c.useState)(!1),D=l()(I,2),G=D[0],R=D[1],H=(0,c.useState)([]),z=l()(H,2),F=z[0],W=z[1],Y=(0,c.useState)([]),V=l()(Y,2),U=V[0],K=V[1],J=(0,c.useState)([]),q=l()(J,2),Q=q[0],X=q[1],$=(0,c.useState)([]),ee=l()($,2),te=ee[0],ne=ee[1],oe=(0,c.useState)([]),ie=l()(oe,2),ae=ie[0],re=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),xe=ge[0],ve=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=r()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B(!0),e.next=3,(0,k.oR)(v[0],{course_id:b});case 3:t=e.sent,R(t.no_group),S?(he(t.all_course_groups),ve(t.all_course_groups)):(ne(t.late_course_groups),re(t.late_course_groups),W(t.submit_course_groups),K(t.submit_course_groups)),B(!1),L.setFieldsValue({end_time:w()()});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ce=function(){var e=r()(i()().mark((function e(){var n,o,r;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=L.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 O(!0),e.next=9,(0,k.Mc)(b,{no_group:G,homework_ids:v,group_ids:S?be:Q,end_time:o,late_group_ids:S?be:ce});case 9:r=e.sent,O(!1),0===r.status&&(_e(),d.ZP.success("操作成功"),a(),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([]),re([])};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:L,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){ve(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:xe,loading:P,columns:[{title:"班级",dataIndex:"name"}]})]}):(0,_.jsxs)(g.Z,{gutter:24,children:[(0,_.jsxs)(x.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:P,columns:[{title:"班级",dataIndex:"name",ellipsis:!0},{title:"发布时间",dataIndex:"publish_time"},{title:"截止时间",dataIndex:"end_time"}]})})]}),(0,_.jsxs)(x.Z,{flex:10,style:{maxWidth:"280px"},children:[(0,_.jsx)("div",{className:j.homeworkType,children:"补交截止"}),(0,_.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){re(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:P,dataSource:ae,columns:[{title:"班级",dataIndex:"name",ellipsis:!0,width:120},{title:"截止时间",dataIndex:"late_time"}]})})]})]})})]})}))},74908:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var o=n(7557),i=n.n(o),a=n(41498),r=n.n(a),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),x=n(51136),v=n(6457),w=n(37712),y=function(e){var t=e.data,n=e.className,o=e.fullWidth,a=e.style,s=void 0===a?{}:a,m=e.onClose,y=e.onOk,b=e.showFullTools,j=e.noAssociationId,k=(0,c.useRef)(null),C=(0,c.useRef)(null),_=(0,c.useState)(!1),S=l()(_,2),T=S[0],L=S[1],A=(0,c.useState)("正在加载中"),N=l()(A,2),P=N[0],B=N[1];(0,c.useEffect)((function(){null!=t&&t.visible?document.body.setAttribute("data-custom","y-hidden"):document.body.removeAttribute("data-custom"),null!=t&&t.src&&Z()}),[null==t?void 0:t.visible]);var Z=function(){var e=r()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(!0),B("正在加载中"),e.next=4,(0,v.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,k.current.src="",k.current.src=n,k.current.onload=function(){M()},L(!1),B("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),E=function(){var e=r()(i()().mark((function e(n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(!0),B("正在保存中"),e.next=4,(0,x.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(o=e.sent)||!o.id||j){e.next=12;break}return e.next=8,(0,x.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==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:L(!1),B("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),M=function(){C.current=new g.hP(k.current),C.current.addEventListener("render",E),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;(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.jsxs)("div",{className:h()(u,n,o?p:""),style:s,children:[(0,w.jsx)(f.Z,{spinning:T,tip:P,style:{position:"absolute"}}),(0,w.jsx)("img",{className:d,ref:k})]})})}},42658: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),a=n(41498),r=n.n(a),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(21068),f=n(8591),g=n(43418),x=n(3113),v=n(27065),w=n(28838),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(626),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,a=e.data,s=e.className,c=e.maxSize,d=void 0===c?150:c,S=e.title,T=void 0===S?"上传附件":S,L=e.showRemoveModal,A=void 0!==L&&L,N=e.accept,P=void 0===N?"":N,B=e.additionalText,Z=e.isDragger,E=e.number,M=void 0===E?1e3:E,O=e.aloneClear,I=void 0!==O&&O,D=(0,m.useState)(!1),G=p()(D,2),R=G[0],H=G[1],z=(0,m.useState)(t||[]),F=p()(z,2),W=F[0],Y=F[1],V=(0,m.useState)(1),U=p()(V,2),K=U[0],J=U[1];(0,m.useEffect)((function(){t&&(1===K&&Y(u()(t)),J(2),M===(null==t?void 0:t.length)&&H(!0))}),[t]);var q,Q=function(){setTimeout((function(){W.pop(),Y(u()(W))}),500)},X={multiple:!0,disabled:R,accept:P,withCredentials:!0,fileList:W,beforeUpload:function(e,t){var n=e.size/1024/1024;return W.concat(t).length>M?(W.pop(),Y(u()(W)),f.ZP.error("最多只能上传".concat(M,"个文件")),I?Promise.reject():(Q(),!1)):n<d||(f.ZP.error("该文件无法上传。超过文件大小限制(".concat(d,"MB).")),I?Promise.reject():(Q(),!1))},data:a,action:o||"".concat(v.Z.API_SERVER,"/api/attachments.json"),onChange:function(e){var t,o;(W="removed"===e.file.status?e.fileList:(0,C.uniqBy)([].concat(u()(e.fileList),u()(W)),"uid"),"done"!==e.file.status||-1!==(null===(t=e.file)||void 0===t||null===(t=t.response)||void 0===t?void 0:t.status))?(W.length>=M?H(!0):H(!1),Y(u()(W)),W=W.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url="/api/attachments/".concat(null==e||null===(n=e.response)||void 0===n?void 0:n.id));return-1===e.name.indexOf(b)&&(e.name="".concat(e.name).concat(b).concat(j(e.size))),l()({},e)})),console.log("info:",e,W),n(W)):f.ZP.error(null===(o=e.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message)},onRemove:(q=r()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(){var e=r()(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)}}(),!A){e.next=5;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=r()(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 5:return e.next=7,n();case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)}))),function(e){return q.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(s||""),children:[Z&&(0,y.jsxs)(_,l()(l()({},X),{},{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)"," "]}),B]})),!Z&&(0,y.jsxs)(h.Z,l()(l()({},X),{},{children:[(0,y.jsxs)(x.ZP,{disabled:R,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)"," "]})]}))]})}},5829: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,a=void 0===n||n,r=e.children;return(0,i.jsx)(i.Fragment,{children:a?(0,i.jsx)(o.Z,{placement:"topLeft",title:{"未发布":"作业尚未发布","未开始":"作业已发布,尚未到达开始作业时间","提交中":"作业进行中,所有考生可提交作业","补交中":"作业进行中,所有学生可补交作业","进行中":"作业进行中,部分班级正在作业提交中/补交中","已截止":"到达作业截止时间,作业已结束","已结束":"课堂已结束"}[t],children:(0,i.jsx)("span",{children:r})}):r})}},37507:function(e,t,n){"use strict";n.d(t,{h:function(){return x}});var o=n(82242),i=n.n(o),a=n(79800),r=n.n(a),s=n(59301),l=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),m=(n(81974),n(3693),n(37712)),h=l.default.Option,f={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function x(e){var t=e.value,n=e.onChange,o=e.mode,a=e.options,l=void 0===a?{}:a,c=(0,s.useRef)(),u=(0,s.useState)(),d=r()(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"),a=r()(o,2),d=a[0],p=a[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)(x,{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:"取消"})]})]}))}},11094:function(e,t,n){"use strict";n.d(t,{Z:function(){return Te}});var o=n(91232),i=n.n(o),a=n(79800),r=n.n(a),s=n(85573),l=n.n(s),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),m=(n(81974),n(6313),n(25717),n(99498),n(25419),n(67549),n(42783)),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),x=n.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function w(e){var t=e.onActionCallback,n=e.title,o=e.icon,i=e.actionName,a=e.className,r=void 0===a?"":a,s=e.children;return(0,h.jsxs)("a",{title:n,className:r,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,a=e.fullScreen,r=e.insertTemp,s=e.hidetoolBar,l=e.extraUse,c=[].concat(v,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(w,x()(x()({},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,r&&(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(r),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(a?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:a?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},b=n(27308),j=n(78241),k=n(8772),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,x()(x()({},_),{},{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(37507),L=n(8591),A=n(55087),N=j.Z.useForm,P={width:280,marginRight:10},B={labelCol:{span:5},wrapperCol:{span:19}},Z=function(e){var t=e.callback,n=e.onCancel,o=N(),i=r()(o,1)[0],a=(0,c.useRef)();function s(e,t){-1!==e.status?i.setFieldsValue({src:"/api/attachments/".concat(e.id),type:t.type}):L.ZP.error(e.message)}return(0,h.jsxs)(j.Z,x()(x()({form:i},B),{},{className:"upload-image-panel",onFinish:function(e){t(e,a.current)},style:{width:470,overflow:"hidden"},children:[(0,h.jsx)(j.Z.Item,{label:"图片地址",required:!0,children:(0,h.jsxs)("div",{className:"flex-container",children:[(0,h.jsx)(j.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,h.jsx)(k.Z,{style:P})}),(0,h.jsx)(E,{onFileChange:function(e){var t=e.target.files[0];a.current=t,M(t,s)}})]})}),(0,h.jsx)(j.Z.Item,{label:"图片描述",name:"alt",children:(0,h.jsx)(k.Z,{style:{width:264}})}),(0,h.jsxs)(j.Z.Item,{style:{textAlign:"right"},children:[(0,h.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(C.ZP,{type:"default",onClick:n,children:"取消"})]})]}))};function E(e){var t=e.onFileChange;return(0,h.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,h.jsx)("input",{type:"file",onChange:t})]})}function M(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(A.KI,"/api/attachments.json")),o.send(n)}var O=n(95237),I=n(74908),D=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 a=o.toDataURL("image/png");return(0,h.jsx)(O.Z,{style:{height:"100vh"},children:(0,h.jsx)(I.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:a,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},G=n(7557),R=n.n(G),H=n(41498),z=n.n(H),F=n(37205),W=n.n(F),Y=n(12378);function V(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(V,go.CommandHandler),V.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},V.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")},V.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")},V.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")},V.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")},V.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")}},V.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")}},V.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],a=i.actualBounds.y+i.actualBounds.height+e;n[o+1].move(new go.Point(i.actualBounds.x,a))}t.commitTransaction("align Column")},V.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],a=i.actualBounds.x+i.actualBounds.width+e;n[o+1].move(new go.Point(a,i.actualBounds.y))}t.commitTransaction("align Row")},V.prototype.canRotate=function(e){var t=this.diagram;return null!==t&&!t.isReadOnly&&!t.isModelReadOnly&&!(t.selection.count<1)},V.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())},V.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){V._assignZOrder(e,t.get(e.layer)+1)})),e.commitTransaction("pullToFront")},V.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){V._assignZOrder(e,t.get(e.layer)-1-V._findGroupDepth(e))})),e.commitTransaction("pushToBack")},V._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){V._assignZOrder(e,t+1,n)}))},V._findGroupDepth=function(e){if(e instanceof go.Group){var t=0;return e.memberParts.each((function(e){t=Math.max(t,V._findGroupDepth(e))})),t+1}return 0},V.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)}},V.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},V.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")},V.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))},V.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,a=t,r=0;r<o.length;r++){var s=o[r];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,a=s)}}}return a},V.prototype._angleCloseness=function(e,t){return Math.min(Math.abs(t-e),Math.min(Math.abs(t+360-e),Math.abs(t-360-e)))},V.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!==(a=t.findTreeParentNode())&&e.select(a)}else if("Up"===n.key){if(null!==(a=t.findTreeParentNode()))if((s=(r=this._sortTreeChildrenByY(a)).indexOf(t))>0){for(var o=r.elt(s-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(a)}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 a,r,s;if(null===(a=t.findTreeParentNode()))break;if((s=(r=this._sortTreeChildrenByY(a)).indexOf(t))<r.length-1){e.select(r.elt(s+1));break}t=a}}var l=e.selection.first();null!==l&&e.scrollToRect(l.actualBounds)}},V.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},V.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},V.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(V.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(V.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 U=V,K=(n(31270),n(85160)),J=n(43418),q=n(43604),Q=n(51136),X="myPaletteDiv___Xjz2I",$="maxH60___Pd4Re";window.go=Y;var ee=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),a=(0,c.useRef)(),s=(0,c.useRef)(!1),l=(0,c.useRef)(!1),u=(0,c.useState)(0),d=r()(u,2),p=d[0],m=d[1],f=function(){var e=z()(R()().mark((function e(){var t,i;return R()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.current.makeImage(),e.next=3,(0,Q.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($," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(J.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)(O.Z,{children:[(0,h.jsx)(q.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(q.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:X,ref:a})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(K.FI,{initDiagram:function(){var e=Y.GraphObject.make,t="#ff3333",n="#3358ff",r="#25ad23",s="#d533ff",l="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",m="#d5ebff",h="#f2dfe0",f="#a5d2fa",g="#cccccc",x="#b3e6b3",v="#fcbbbd";function w(t,n){var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(o){var i=n.part.adornedPart,a=(new Y.Point).setRectSpot(i.actualBounds,t);a.subtract(i.location),a.scale(2,2),a.x+=130*Math.sign(a.x),a.y+=130*Math.sign(a.y),a.add(i.location),a.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var r=o.copyNodeData(i.data);o.setGroupKeyForNodeData(r,o.getGroupKeyForNodeData(i.data)),o.addNodeData(r);var s={from:i.key,to:o.getKeyForNodeData(r)};o.addLinkData(s);var l=e.diagram.findNodeForData(r);l.location=a,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(Y.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(Y.Spot.Top)||t.equals(Y.Spot.Bottom)?25:18,height:t.equals(Y.Spot.Top)||t.equals(Y.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(Y.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,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(Y.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(Y.Panel,"Horizontal",j(u,"fill"),j(p,"fill"),j(m,"fill"),j(h,"fill"))),e("ContextMenuButton",e(Y.Panel,"Horizontal",j(g,"fill"),j(x,"fill"),j(f,"fill"),j(v,"fill")))]}function C(){return[e("ContextMenuButton",e(Y.Panel,"Horizontal",j(d),j(r),j(n),j(t))),e("ContextMenuButton",e(Y.Panel,"Horizontal",j(u),j(s),j(l),j(c)))]}function _(t,n){return n||(n="thickness"),e(Y.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(Y.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(Y.Panel,"Horizontal",_(1),_(2),_(3),_(4))),e("ContextMenuButton",e(Y.Panel,"Horizontal",S(null),S([2,4]),S([4,4])))]}function L(t,n){return n||(n="figure"),e(Y.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 A(t){return e(Y.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(Y.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 P(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",Y.Spot.stringify(Y.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(Y.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 B(t,n){var o=0,i=Y.Spot.RightSide;t.equals(Y.Spot.Top)?(o=270,i=Y.Spot.TopSide):t.equals(Y.Spot.Left)?(o=180,i=Y.Spot.LeftSide):t.equals(Y.Spot.Bottom)&&(o=90,i=Y.Spot.BottomSide),n||(o-=180);var a=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",Y.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(Y.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:a,contextClick:a})}return o.current=new Y.Diagram(i.current,{padding:20,grid:e(Y.Panel,"Grid",e(Y.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(Y.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(U),"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(Y.Node,"Auto",{locationSpot:Y.Spot.Center,locationObjectName:"SHAPE",desiredSize:new Y.Size(120,60),minSize:new Y.Size(40,40),resizable:!0,resizeCellSize:new Y.Size(10,10),rotatable:!0},new Y.Binding("location","loc",Y.Point.parse).makeTwoWay(Y.Point.stringify),new Y.Binding("desiredSize","size",Y.Size.parse).makeTwoWay(Y.Size.stringify),e(Y.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Y.Spot.AllSides,toSpot:Y.Spot.AllSides},new Y.Binding("figure"),new Y.Binding("fill"),new Y.Binding("stroke","borderColor"),new Y.Binding("strokeWidth","thickness"),new Y.Binding("strokeDashArray","dash")),e(Y.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(Y.TextBlock,{margin:1,textAlign:"center",overflow:Y.TextBlock.OverflowEllipsis,editable:!0},new Y.Binding("text").makeTwoWay(),new Y.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(Y.Panel,"Vertical",{maxSize:new Y.Size(200,NaN)},e(Y.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new Y.Binding("text")),e(Y.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new Y.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(Y.Adornment,"Spot",e(Y.Placeholder,{padding:10}),w(Y.Spot.Top,"TriangleUp"),w(Y.Spot.Left,"TriangleLeft"),w(Y.Spot.Right,"TriangleRight"),w(Y.Spot.Bottom,"TriangleDown"),y({alignment:new Y.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(Y.Panel,"Horizontal",L("Rectangle"),L("RoundedRectangle"),L("Ellipse"),L("Diamond"))),e("ContextMenuButton",e(Y.Panel,"Horizontal",L("Parallelogram2"),L("ManualOperation"),L("Procedure"),L("Cylinder1"))),e("ContextMenuButton",e(Y.Panel,"Horizontal",L("Terminator"),L("CreateRequest"),L("Document"),L("TriangleDown"))),k(),C(),T()),o.current.groupTemplate=e(Y.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Y.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 Y.Binding("location","loc",Y.Point.parse).makeTwoWay(Y.Point.stringify),e(Y.Panel,"Auto",{name:"BODY"},e(Y.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Y.Spot.AllSides,toSpot:Y.Spot.AllSides},new Y.Binding("fill"),new Y.Binding("stroke","color"),new Y.Binding("strokeWidth","thickness"),new Y.Binding("strokeDashArray","dash")),e(Y.Placeholder,{background:"transparent",margin:20})),e(Y.TextBlock,{alignment:Y.Spot.Top,alignmentFocus:Y.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new Y.Binding("text"),new Y.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(Y.Adornment,"Spot",e(Y.Panel,"Auto",e(Y.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(Y.Placeholder,{margin:1.5})),y({alignment:Y.Spot.TopRight,alignmentFocus:Y.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",k(),C(),T()),o.current.linkTemplate=e(Y.Link,{layerName:"Foreground",routing:Y.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Y.Binding("fromSpot","fromSpot",Y.Spot.parse),new Y.Binding("toSpot","toSpot",Y.Spot.parse),new Y.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new Y.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new Y.Binding("points").makeTwoWay(),e(Y.Shape,{strokeWidth:2},new Y.Binding("stroke","color"),new Y.Binding("strokeWidth","thickness"),new Y.Binding("strokeDashArray","dash")),e(Y.Shape,{segmentIndex:0,segmentOffset:new Y.Point(15,0),segmentOrientation:Y.Link.OrientAlong,alignmentFocus:Y.Spot.Right,figure:"circle",width:10,strokeWidth:0},new Y.Binding("fill","color"),new Y.Binding("visible","dir",(function(e){return 1===e}))),e(Y.Shape,{segmentIndex:-1,segmentOffset:new Y.Point(-10,6),segmentOrientation:Y.Link.OrientPlus90,alignmentFocus:Y.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Y.Binding("fill","color"),new Y.Binding("visible","dir",(function(e){return e>=1})),new Y.Binding("width","thickness",(function(e){return 7+3*e})),new Y.Binding("height","thickness",(function(e){return 7+3*e})),new Y.Binding("segmentOffset","thickness",(function(e){return new Y.Point(-15,4+1.5*e)}))),e(Y.Shape,{segmentIndex:0,segmentOffset:new Y.Point(15,-6),segmentOrientation:Y.Link.OrientMinus90,alignmentFocus:Y.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Y.Binding("fill","color"),new Y.Binding("visible","dir",(function(e){return 2===e})),new Y.Binding("width","thickness",(function(e){return 7+3*e})),new Y.Binding("height","thickness",(function(e){return 7+3*e})),new Y.Binding("segmentOffset","thickness",(function(e){return new Y.Point(-15,4+1.5*e)}))),e(Y.TextBlock,{alignmentFocus:new Y.Spot(0,1,-4,0),editable:!0},new Y.Binding("text").makeTwoWay(),new Y.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(Y.Adornment,e(Y.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:A(2)},new Y.Binding("pathPattern","thickness",A)),y({alignmentFocus:new Y.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",C(),T(),e("ContextMenuButton",e(Y.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(Y.Panel,"Horizontal",e(Y.Panel,"Spot",P(!1),B(Y.Spot.Top,!1),B(Y.Spot.Left,!1),B(Y.Spot.Right,!1),B(Y.Spot.Bottom,!1)),e(Y.Panel,"Spot",{margin:new Y.Margin(0,0,0,2)},P(!0),B(Y.Spot.Top,!0),B(Y.Spot.Left,!0),B(Y.Spot.Right,!0),B(Y.Spot.Bottom,!0))))),new Y.Palette(a.current,{maxSelectionCount:1,linkTemplate:e(Y.Link,{locationSpot:Y.Spot.Center,selectionAdornmentTemplate:e(Y.Adornment,"Link",{locationSpot:Y.Spot.Center},e(Y.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(Y.Shape,{toArrow:"Standard",stroke:null}))},{routing:Y.Link.AvoidsNodes,curve:Y.Link.JumpOver,corner:5,toShortLength:4},new Y.Binding("points"),e(Y.Shape,{isPanelMain:!0,strokeWidth:2}),e(Y.Shape,{toArrow:"Standard",stroke:null})),model:new Y.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(W()(Y.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(Y.Node,"Auto",{locationSpot:Y.Spot.Center},new Y.Binding("location","location",Y.Point.parse).makeTwoWay(Y.Point.stringify),e(Y.Shape,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new Y.Binding("stroke").makeTwoWay(),new Y.Binding("fill").makeTwoWay(),new Y.Binding("figure")),e(Y.TextBlock,{margin:new Y.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new Y.Size(16,16),maxSize:new Y.Size(10,NaN),textAlign:"center",editable:!0},new Y.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(Y.Panel,"Grid",e(Y.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(Y.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:"保存到编辑器"})})]})})})},te=n(5112),ne=n(97913),oe=te.ZP.Group,ie={margin:"0 8px"},ae=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:ie,children:"单元格数:"}),(0,h.jsx)("span",{style:ie,children:"行数"}),(0,h.jsx)(j.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(ne.Z,{})}),(0,h.jsx)("span",{style:ie,children:"列数"}),(0,h.jsx)(j.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(ne.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:ie,children:"对齐方式:"}),(0,h.jsx)(j.Z.Item,{name:"align",children:(0,h.jsxs)(oe,{children:[(0,h.jsx)(te.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(te.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(te.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(te.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:"取消"})]})]})},re=n(78673),se=n(66455),le=n.n(se),ce=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,a=e.callback,s=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),u=(0,c.useState)(!1),d=r()(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(le())(f.current,!0),window.onload=function(){l.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return a&&a(e),e};return(0,c.useEffect)((function(){f.current.appName=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)(O.Z,{align:"middle",children:[(0,h.jsx)(q.Z,{flex:1,children:(0,h.jsx)(re.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return m(e)}})}),(0,h.jsx)(q.Z,{children:(0,h.jsx)(C.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ue=n(33773),de=n(27065),pe="link",me="upload-image",he="add-flowchart",fe="draw-image",ge="code-block",xe="add-table",ve="------------",we={default:ve,left:":".concat(ve),center:":".concat(ve,":"),right:"".concat(ve,":")},ye=n(56266);var be="@▁▁@",je=["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 ke(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var Ce=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",_e=l()(l()({},Ce+"-B","bold"),Ce+"-I","italic"),Se=l()(l()(l()(l()(l()(l()(l()(l()({},pe,"添加链接"),ge,"添加代码块"),me,"添加图片"),fe,"添加画图"),he,"插入流程图"),xe,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Te=function(e){var t=e.defaultValue,n=void 0===t?"":t,o=e.onChange,a=e.width,s=void 0===a?"100%":a,u=e.height,g=void 0===u?400:u,x=e.miniToolbar,v=void 0!==x&&x,w=e.isFocus,j=void 0!==w&&w,k=e.watch,C=e.insertTemp,_=e.mode,A=void 0===_?"markdown":_,N=e.id,P=void 0===N?"markdown-editor-id":N,B=e.showResizeBar,E=void 0!==B&&B,O=e.noStorage,I=void 0!==O&&O,G=e.showNullButton,R=void 0!==G&&G,H=e.showNullProgramButton,z=void 0!==H&&H,F=e.hidetoolBar,W=void 0!==F&&F,Y=e.fullScreen,V=void 0!==Y&&Y,U=e.onBlur,K=e.onCMBeforeChange,q=e.onFullScreen,Q=e.className,X=void 0===Q?"":Q,$=e.disablePaste,te=void 0!==$&&$,ne=e.disabled,oe=void 0!==ne&&ne,ie=e.disabledFill,re=void 0!==ie&&ie,se=e.placeholder,le=void 0===se?"":se,ve=e.values,Ce=void 0===ve?"":ve,Te=e.extraUse,Le=(0,c.useState)(null),Ae=r()(Le,2),Ne=Ae[0],Pe=Ae[1],Be=(0,c.useState)(n),Ze=r()(Be,2),Ee=Ze[0],Me=Ze[1],Oe=(0,c.useState)(k),Ie=r()(Oe,2),De=Ie[0],Ge=Ie[1],Re=(0,c.useState)(V),He=r()(Re,2),ze=He[0],Fe=He[1],We=(0,c.useState)(""),Ye=r()(We,2),Ve=Ye[0],Ue=Ye[1],Ke=(0,c.useState)(0),Je=r()(Ke,2),qe=Je[0],Qe=Je[1],Xe=(0,c.useState)(g),$e=r()(Xe,2),et=$e[0],tt=$e[1],nt=(0,c.useState)(!1),ot=r()(nt,2),it=(ot[0],ot[1]),at=(0,c.useState)(0),rt=r()(at,2),st=rt[0],lt=rt[1],ct=(0,c.useState)(0),ut=r()(ct,2),dt=ut[0],pt=ut[1],mt=(0,c.useRef)(),ht=(0,c.useRef)(),ft=(0,c.useRef)(),gt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Me(Ce),null==Ne||Ne.setValue(Ce),window.scrollTo(0,e)}),[Ce]),(0,c.useEffect)((function(){null==q||q(ze)}),[ze]),(0,c.useEffect)((function(){if(mt.current){var e=function(e,n){if(!te){var o=n.clipboardData;if(o){var i=o.types.toString(),a=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==A)return;try{var r,s=a[1];"file"===(null===(r=a[0])||void 0===r?void 0:r.kind)&&(s=a[0]);var l=s.getAsFile(),c=l.name.split(".").pop();M(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(de.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(de.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(l.type,'&disposition=inline" target="_blank">').concat(l.name,"</a>")):je.includes(c)?t.replaceSelection('<a href="'.concat(de.Z.API_SERVER,"/api/attachments/").concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(l.name,"</a>")):t.replaceSelection("[".concat(l.name,"](").concat(de.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){L.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(mt.current,{mode:A,lineNumbers:!v,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",le):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),a=i.charAt(o.ch-1),r=i.lastIndexOf("@▁@",o.ch),s=i.lastIndexOf("@▁▁@",o.ch),l=r>s?r:s,c=r>s?3:4;if(-1===be.indexOf(a))return null;if(console.log("change1:",t,e,i,o,l,r,s,a),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),oe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Pe(t),function(){t.off("paste",e)}}}),[]);var xt=(0,c.useCallback)((function(){ht.current}),[et,ht,ze]);(0,c.useEffect)((function(){if(Ne){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)&&(xt(),Ne.setSize("100%","100%"),Ne.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(mt.current.parentElement),e}();return function(){var t,n;null!==(t=mt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=mt.current)||void 0===n?void 0:n.parentElement)}}}),[Ne,xt]),(0,c.useEffect)((function(){if(Ne){for(var e=[],t=function(){var t=r()(o[n],2),i=t[0],a=t[1],s=l()({},i,(function(){vt(a)}));e.push(s),Ne.addKeyMap(s)},n=0,o=Object.entries(_e);n<o.length;n++)t();return function(){for(var t=0,n=e;t<n.length;t++){var o=n[t];Ne.removeKeyMap(o)}}}}),[Ne]),(0,c.useEffect)((function(){V!==ze&&Fe(V)}),[V]),(0,ye.Z)((function(){if(!I&&qe>0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(P);e>=qe+1e4&&(!t||t!==Ee)&&(window.sessionStorage.setItem(P,Ee),it(!0))}}),1e4),(0,c.useEffect)((function(){Ge(k)}),[Ne,k]),(0,c.useEffect)((function(){Ne&&j&&Ne.focus()}),[Ne,j]),(0,c.useEffect)((function(){if(De&&Ne){var e=function(e){var t=e.target;if(gt.current){var n=t.scrollTop/t.scrollHeight;gt.current.scrollTop=gt.current.scrollHeight*n}},t=Ne.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Ne,De]),(0,c.useEffect)((function(){if(Ne&&K){var e=function(e,t){K(e,t)};return Ne.on("beforeChange",e),function(){Ne.off("beforeChange",e)}}}),[Ne,K]),(0,c.useEffect)((function(){if(Ne&&U){var e=function(){U(Ne.getValue())};return Ne.on("blur",e),function(){Ne.off("blur",e)}}}),[Ne,U]),(0,c.useEffect)((function(){if(Ne){var e=function(e,t){var n=e.getValue();Me(n),Qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(z?o(n,kt(n)):o(n))};return Ne.on("change",e),function(){Ne.off("change",e)}}}),[Ne,o]),(0,c.useEffect)((function(){if(Ne)if(null==n)Ne.setValue(""),Me("");else{var e=window.scrollY||window.pageYOffset;n!==Ne.getValue()&&(Ne.setValue(n),Me(n),Ne.setCursor(oe?1:Ne.lineCount(),0),window.scrollTo(0,e))}}),[Ne,n]);var vt=(0,c.useCallback)((function(e){var t=Ne.getCursor(),n=Ne.getSelection(),o=n.split("\n");switch(e){case"bold":return Ne.replaceSelection("**"+n+"**"),""===n&&Ne.setCursor(t.line,t.ch+2),Ne.focus();case"italic":return Ne.replaceSelection("*"+n+"*"),""===n&&Ne.setCursor(t.line,t.ch+1),Ne.focus();case"code":return Ne.replaceSelection("`"+n+"`"),""===n&&Ne.setCursor(t.line,t.ch+1),Ne.focus();case"inline-latex":return Ue("inline-latex"),Ne.focus();case"latex":return Ne.replaceSelection("```latex\n"+n+"\n```"),Ne.setCursor(t.line+1,n.length+1),Ne.focus();case"line-break":return Ne.replaceSelection("<br/>\n"),Ne.focus();case"list-ul":return""===n?Ne.replaceSelection("- "+n):Ne.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ne.focus();case"list-ol":return""===n?Ne.replaceSelection("1. "+n):Ne.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Ne.focus();case"add-null-ch":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("▁"),Ne.focus();case"add-signal":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("@▁@"),Ne.focus();case"add-multiple":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection(be),Ne.focus();case"inster-template-1":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ne.focus();case"eraser":return Ne.setValue(""),Ne.focus();case"trigger-watch":return Ge(!De),Ne.focus();case"trigger-full-screen":return Fe(!ze),Ne.focus();case pe:return void Ue(pe);case ge:return void Ue(ge);case me:return void Ue(me);case fe:return void Ue(fe);case"maths-latex":return void Ue("maths-latex");case he:return void Ue(he);case xe:return void Ue(xe);default:throw new Error}}),[Ne,De,ze]),wt=(0,c.useCallback)((function(e,t){var n,o,i,a,r;switch(Ue(""),Ve){case pe:var s=e.title,l=e.link;return Ne.replaceSelection("[".concat(s,"](").concat(l,")")),Ne.focus();case ge:var c=e.language,u=e.content;return Ne.replaceSelection(["```"+c,u,"```"].join("\n")),Ne.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);M(new Blob([p],{type:"image/png"}),(function(e){e.id?Ne.replaceSelection(".concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":Ne.replaceSelection("`$$"+e+"$$`");break;case me:case fe:case"add-flowchart":var h=e.src,f=e.alt,g=t,x=null==g||null===(n=g.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==g||null===(i=g.type)||void 0===i?void 0:i.indexOf("image"))>-1||null==g||!g.type?f?Ne.replaceSelection(".concat(h,' "').concat(f,'" )')):Ne.replaceSelection("")):(null==g||null===(a=g.type)||void 0===a?void 0:a.indexOf("video"))>-1?Ne.replaceSelection('<video width="100%" controls src="'.concat(de.Z.API_SERVER).concat(h,'"></video>')):(null==g||null===(r=g.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?Ne.replaceSelection('<a href="'.concat(de.Z.API_SERVER).concat(h,"?type=").concat(g.type,'&disposition=inline" target="_blank">').concat(g.name,"</a>")):je.includes(x)?Ne.replaceSelection('<a href="'.concat(de.Z.API_SERVER).concat(h,'?type=office&disposition=inline" target="_blank">').concat(g.name,"</a>")):Ne.replaceSelection("[".concat(g.name,"](").concat(de.Z.API_SERVER).concat(h,")")),Ne.focus();case xe:for(var v=e.row,w=e.col,y=e.align,b="\n",j=0;j<v;j++){for(var k=[],C=[],_=0;_<w;_++)1===j&&C.push(we[y]),k.push(" ");1===j&&(b+="| ".concat(C.join(" | ")," |\n")),b+="| ".concat(k.join(1===w?"":" | ")," |\n")}return Ne.replaceSelection(b+"\n"),Ne.focus();default:throw new Error}}),[Ne,Ve]),yt=(0,c.useMemo)((function(){switch(Ve){case pe:return(0,h.jsx)(S,{callback:wt,onCancel:bt});case ge:return(0,h.jsx)(T.Z,{callback:wt,onCancel:bt});case me:return(0,h.jsx)(Z,{callback:wt,onCancel:bt});case he:return(0,h.jsx)(ee,{callback:wt,onCancel:bt});case xe:return(0,h.jsx)(ae,{callback:wt,onCancel:bt});case"maths-latex":return(0,h.jsx)(ce,{showSaveButton:!0,callback:wt});case"inline-latex":return(0,h.jsx)(ue.Z,{showSaveButton:!0,callback:wt});default:return null}}),[Ve]);function bt(){Ue("")}(0,c.useEffect)((function(){if(ft.current){var e=function(e){i=!0,a=e.pageY},t=function(){i=!1},n=function(e){if(i){var t=e.pageY-a;t<0&&(t=0),t>300&&(t=300),tt(g+t+"px")}},o=ft.current,i=!1,a=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)}}}),[Ne,ft]),(0,c.useEffect)((function(){tt(g)}),[g]);var jt={width:ke(s),height:ke(et)},kt=((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(z){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){if(Se[Ve]&&Ve!==fe&&Ve!==he){var e=document.getElementsByClassName("ant-modal")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),pt(n)}}),[Ve]);var Ct=function(e,t,n,o){var i=document.body.clientHeight,a=document.body.clientWidth;return!(e<20&&n>e||e>a-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:ht,children:(0,h.jsxs)("div",{className:"markdown-editor-container ".concat(X," ").concat(De?"on-preview":""," ").concat(v?"mini":""," ").concat(ze?"full-screen":""),style:jt,children:[(0,h.jsx)(y,{insertTemp:C,watch:De,fullScreen:ze,showNullButton:R,showNullProgramButton:z,onActionCallback:vt,hidetoolBar:W,extraUse:Te}),(0,h.jsxs)("div",{className:"markdown-editor-body",children:[(0,h.jsx)("div",{className:"codemirror-container",children:(0,h.jsx)("textarea",{ref:mt,placeholder:le})}),De?(0,h.jsxs)("div",{ref:gt,className:"preview-container",children:["stex"===A&&(0,h.jsx)(f,{value:Ee}),"stex"!==A&&(0,h.jsx)(m.Z,{disabledFill:re,showProgramFill:z,value:Ee})]}):null]})]})}),E?(0,h.jsx)("a",{ref:ft,className:"editor-resize"}):null,Ve===fe&&(0,h.jsx)(D,{callback:wt,onCancel:bt}),Ve===he&&(0,h.jsx)(ee,{callback:wt,onCancel:bt}),(0,h.jsx)(b.Z,{children:Se[Ve]&&Ve!==fe&&Ve!==he?(0,h.jsx)(J.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:st,top:dt},title:(0,h.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var t=e.clientX-st,n=e.clientY-dt;document.body.onmousemove=function(e){var o=e.clientX-t,i=e.clientY-n,a=document.getElementsByClassName("ant-modal")[0],r=window.innerWidth-a.offsetWidth,s=window.innerHeight-a.offsetHeight;o=Math.max(0,Math.min(o,r)),i=Math.max(0,Math.min(i,s)),Ct(e.clientX,e.clientY,t,n)&&(lt(o),pt(i))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:Se[Ve]}),open:!0,onCancel:bt,footer:null,destroyOnClose:!0,width:Ve===he?"1200px":null,height:Ve===he?"80vh":null,className:"markdown-popup-form",children:yt}):null})]})}},27308:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var o=n(82100),i=n.n(o),a=n(29186),r=n.n(a),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 a=window.document;return o.node=a.createElement("div"),a.body.appendChild(o.node),o}return r()(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)},56266: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])}},80867:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});n(59301);var o=n(38854),i=n(20834),a=n(6848),r=n(8772),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)(a.Z,{title:"优先按照调整排序结果展示,未设置排序时,按照创建时间降序排列",children:(0,d.jsx)("span",{className:u,children:(0,d.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2"})})}),(0,d.jsx)(r.Z.Search,{allowClear:!0,placeholder:"请输入名称进行搜索",onSearch:function(e){return m(e.trim())},style:{width:220,marginLeft:"auto"}})]})}},22474:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var o=n(79800),i=n.n(o),a=n(59301),r=n(44589),s=n(39180),l=n.n(s),c=n(43428),u=n(3113),d=n(37712),p=(0,r.W8)((function(e){var t=e.item;return(0,d.jsxs)("li",{children:[(0,d.jsx)("h3",{children:t.task_name}),(0,d.jsxs)("p",{children:[t.user_name,(0,d.jsx)("span",{style:{marginLeft:"20px"},children:t.category})]})]})})),m=(0,r.JN)((function(e){var t=e.items;return(0,d.jsx)("ul",{className:"task-list-container",children:t.map((function(e,t){return(0,d.jsx)(p,{index:t,item:e},"".concat(e.task_id))}))})})),h=function(e){var t=e.data,n=e.callback,o=e.onCancel,r=e.visible,s=void 0!==r&&r,p=(0,a.useState)(t),h=i()(p,2),f=h[0],g=h[1];return(0,a.useEffect)((function(){g(t)}),[JSON.stringify(t)]),(0,d.jsxs)(c.Z,{placement:"bottom",height:"100%",closable:!0,onClose:o,style:{zIndex:9999},open:s,rootClassName:"sort-list-panel",children:[(0,d.jsxs)("p",{className:"sort-list-tip",children:[(0,d.jsx)("span",{children:"温馨提示:请在列表中长按鼠标左键,进行拖放排序。完成排序后请点击“保存”"}),(0,d.jsx)(u.ZP,{type:"ghost",onClick:o,style:{marginRight:10},children:"取消"}),(0,d.jsx)(u.ZP,{disabled:0===f.length,type:"primary",onClick:function(){n(f.map((function(e){return e.task_id})))},children:"保存"})]}),(0,d.jsx)(m,{axis:"xy",helperClass:"dragging-li",items:f,onSortEnd:function(e){var t=e.newIndex,n=e.oldIndex;g(l()(f,n,t))}})]})}},42503:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});n(59301);var o=n(20834),i=n(95237),a=n(43604),r=n(38854),s=n(6848),l="tabMenuContainer___xbZhu",c="control___tg7XY",u="iconH___CDXCm",d="selectBtn___Da4jv",p=n(7880),m=n(89918),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,x=e.isAdmin,v=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,L=e.onTooltipTitleClick,A=e.onDropdownMenuClick,N=e.onsetClick,P=(0,p.useParams)();return(0,h.jsx)("div",{className:l,children:(0,h.jsxs)(i.Z,{children:[(0,h.jsx)(a.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(x?"mr20":""),children:e.name}),void 0!==e.total&&(0,h.jsx)("span",{className:"c-grey-999",children:e.total||0})]},e.id)}))})}),x&&C&&(0,h.jsxs)(a.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3},children:[(0,h.jsx)(r.Z,{className:"mr10",placement:"bottom",arrow:!0,dropdownRender:function(){return(0,h.jsxs)(o.Z,{children:[(0,h.jsx)(o.Z.Item,{onClick:function(){v({type:"classroomList/setActionTabs",payload:{key:"导出成绩",type:w,exportType:y,category_id:P.categoryId}})},children:"学生成绩"},1),(0,h.jsx)(o.Z.Item,{onClick:function(){p.history.push("/classrooms/".concat(null==P?void 0:P.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:L,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)(r.Z,{className:"ml10",dropdownRender:function(){return(0,h.jsx)(o.Z,{onClick:function(e){var t=e.key;A(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||"新建作业"})]})})]})]})]})})}))},32446:function(e,t,n){"use strict";var o=n(7557),i=n.n(o),a=n(82242),r=n.n(a),s=n(41498),l=n.n(s),c=n(79800),u=n.n(c),d=(n(59301),n(78241)),p=n(43418),m=n(8772),h=n(3479),f=n(7880),g=n(42658),x=n(37712);t.Z=(0,f.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t=e.classroomList,n=(e.loading,e.dispatch),o=((0,f.useParams)(),d.Z.useForm()),a=u()(o,1)[0];return(0,x.jsx)(p.Z,{centered:!0,title:"补交附件",open:"补交附件"===t.actionTabs.key,bodyStyle:{minHeight:200},onOk:l()(i()().mark((function e(){var o,s,l;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.validateFields();case 2:return s=r()({},a.getFieldValue()),l=t.actionTabs.selectArrs,s.attachment_ids=null===(o=s.attachment_ids)||void 0===o?void 0:o.map((function(e){return e.response.id})),e.next=7,(0,h.mz)(r()(r()({},s),{},{homeworkId:l.work_id}));case 7:0===e.sent.status&&(a.resetFields(),n({type:"classroomList/setActionTabs",payload:{}}));case 9:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:(0,x.jsxs)(d.Z,{form:a,initialValues:{},children:[(0,x.jsx)(d.Z.Item,{name:"attachment_ids",rules:[{required:!0,message:"请上传附件"}],children:(0,x.jsx)(g.Z,{})}),(0,x.jsx)(d.Z.Item,{name:"description",children:(0,x.jsx)(m.Z.TextArea,{placeholder:"请在此输入补交附件的原因,最大限制100个字符",rows:7})})]})})}))},38518:function(e,t,n){"use strict";var o=n(7557),i=n.n(o),a=n(37205),r=n.n(a),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(87876),x=n(8772),v=n(5112),w=n(95237),y=n(43604),b=n(26724),j=n.n(b),k=n(51136),C=n(3479),_=n(7880),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,a=e.loading,s=e.globalSetting,c=e.dispatch,d=(0,_.useParams)(),b=h.Z.useForm(),T=p()(b,1)[0],L=(0,m.useState)(!0),A=p()(L,2),N=A[0],P=A[1],B=(0,m.useState)([]),Z=p()(B,2),E=Z[0],M=Z[1],O=(0,m.useState)({page:1,limit:20,keyword:""}),I=p()(O,2),D=I[0],G=(I[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(r()(E),r()(n.projects))),(null===(t=n.projects)||void 0===t?void 0:t.length)<20&&P(!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,a,r,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,a=n.selectArrs,r=n.cb,"更换项目"!==o.actionTabs.key){e.next=10;break}return e.next=7,(0,k.ZP)("/api/student_works/".concat(a.homework_id,"/change_project.json"),{method:"put",body:l()({},t)});case 7:return 0===(null==(s=e.sent)?void 0:s.status)&&(r(),c({type:"classroomList/setActionTabs",payload:{}})),e.abrupt("return");case 10:return e.next=12,(0,C.co)(l()(l()({},t),{},{homeworkId:a.homework_id}));case 12:0===e.sent.status&&(r?r():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:a["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)(x.Z.Search,{onSearch:function(e){""===e?delete D.keyword:D.keyword=e,E=[],P(!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)(v.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)(v.ZP,{value:e.id,children:e.name})})},t)}))})})})})]})})})}))},80948:function(e,t,n){"use strict";n.r(t),n.d(t,{GroupHomeworkContext:function(){return Te},default:function(){return Le}});var o=n(7557),i=n.n(o),a=n(41498),r=n.n(a),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301),p=n(7880),m=n(8591),h=n(87876),f=n(88590),g=n(81228),x=n(43418),v=n(95237),w=n(43604),y=n(78673),b=n(5112),j=n(60324),k=n(97913),C=n(64259),_=n(89918),S=n(6457),T=n(37205),L=n.n(T),A=n(51136),N=n(6309),P=n(37712),B=(0,p.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,o=e.classroomList,a=e.dispatch,s=e.user,c=e.onCallback,h=(0,p.useParams)(),f=(0,d.useState)(!1),g=u()(f,2),v=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?x.Z.info({title:"权限提示",className:"custom-modal-divider ",icon:null,content:(0,P.jsxs)("div",{children:["当前选中资源中:",(0,P.jsx)("span",{className:"c-blue",children:e.hasNum}),"个由您本人发布,",(0,P.jsx)("span",{className:"c-red",children:e.noHasNum})," ","个由其他老师发布。",(0,P.jsx)("br",{}),"课堂内只能删除本人发布的资源,请取消选中其他老师发布的资源。"]}),onOk:function(){T()}}):k(!0)}else k(!1)}),[o.actionTabs.key]);var T=function(){a({type:"classroomList/setActionTabs",payload:{}})};return(0,P.jsx)(x.Z,{centered:!0,title:"提示",open:j,okText:"确定",cancelText:"取消",confirmLoading:v,destroyOnClose:!0,onOk:r()(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,A.ZP)("/api/courses/".concat(h.coursesId,"/homework_commons/multi_destroy.json"),{method:"post",body:{homework_ids:L()(o.actionTabs.selectArrs)}});case 5:n=e.sent,w(!1),0===n.status&&((0,S.L9)(["教学课堂","分组作业","删除"]),m.ZP.success("删除成功"),a({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),c&&c(),(0,_.GJ)()?a({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},o.actionTabs.params),{},{type:3})}):a({type:"classroomList/getClassroomCommonList",payload:l()({},o.actionTabs.params)}));case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){a({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,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("p",{children:"提交作品将全部被删除,不可恢复"}),(0,P.jsx)("p",{children:"是否确认删除?"})]}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("p",{style:{color:"#DD0000"},children:"删除作业则会清除学生所有的答题数据,且数据不可恢复,如确定删除,请输入下方验证码"}),(0,P.jsx)(N.Z,{ref:function(e){return C.current=e}})]})})})),Z=n(85573),E=n.n(Z),M=n(39647),O=n.n(M),I=n(78241),D=n(22744),G=n(24905),R=n(99232),H=n.n(R),z=n(15766),F=n(69363),W=n(47762),Y=["classroomList","dispatch","courseEndTime"],V=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=e.courseEndTime,a=O()(e,Y),s=(0,p.useParams)(),c=I.Z.useForm(),h=u()(c,1)[0],f=(0,d.useState)(1),g=u()(f,2),y=g[0],j=g[1],k=(0,d.useState)([]),C=u()(k,2),T=C[0],N=C[1],B=(0,d.useState)(0),Z=u()(B,2),M=(Z[0],Z[1]),R=(0,d.useState)(2e3),V=u()(R,2),U=(V[0],V[1],(0,d.useState)(!0)),K=u()(U,2),J=(K[0],K[1]),q=(0,d.useState)(!1),Q=u()(q,2),X=Q[0],$=(Q[1],(0,d.useState)(!1)),ee=u()($,2),te=ee[0],ne=(ee[1],(0,d.useState)([])),oe=u()(ne,2),ie=oe[0],ae=oe[1],re=(0,d.useState)(!0),se=u()(re,2),le=se[0],ce=se[1];(0,d.useEffect)((function(){if("立即发布"===t.actionTabs.key&&(ue(),me(),2===t.actionTabs.type)){var e=t.actionTabs.selectArrsAll[0];ce(e.unified_setting)}}),[t.actionTabs]),(0,d.useEffect)((function(){if(X){if(te)return;n({type:"classroomList/setActionTabs",payload:{}}),(0,_.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:3})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)})}}),[X]);var ue=function(){var e=r()(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,F.c_)(l()(l()({},s),{},{page:n||y,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&&(N(L()(null==o?void 0:o.course_groups)),M(null==o?void 0:o.course_groups_count),J(!1),n||h.setFieldsValue(E()(E()({},"publish_time",H()(H()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",H()(H()(new Date((0,S.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)}}(),de=function(){(0,_.GJ)()?t.actionTabs.detail?(n({type:"shixunHomeworks/setActionTabs",payload:{}}),n({type:"shixunHomeworks/getWorkList",payload:l()({},s)}),n({type:"shixunHomeworks/getWorkSetting",payload:l()({},s)})):n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:3})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)})},pe=function(){var e=r()(i()().mark((function e(){var o,r,c,u;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,_.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 m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),xe(!1),e.abrupt("return");case 4:if(!((c=l()({},h.getFieldsValue())).end_time<=c.publish_time)){e.next=9;break}return m.ZP.info("截止时间不能大于或等于发布时间"),xe(!1),e.abrupt("return");case 9:if(!((null==ie?void 0:ie.length)<=0&&!le&&T.length>0)){e.next=13;break}return m.ZP.info("发布班级不能为空"),xe(!1),e.abrupt("return");case 13:return u={homework_ids:L()(t.actionTabs.selectArrs),group_ids:ie.length>0?ie.map((function(e){return e.id})):null===(r=t.detailCommonHomeworksList)||void 0===r?void 0:r.course_groups,end_time:H()(c.end_time).format("YYYY-MM-DD HH:mm"),publish_time:H()(c.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!ie.length},xe(!0),e.next=17,(0,A.ZP)("/api/courses/".concat(s.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:l()({},u)});case 17:0===e.sent.status?(xe(!1),(0,S.L9)(["教学课堂","分组作业","立即发布"]),m.ZP.success("发布成功"),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),a.onCallback&&a.onCallback(),de(),"0"===localStorage.getItem("Noviceguide")||n({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:13,text:(0,P.jsx)("div",{children:"最后,咱们给教学课堂添加一名学生~点击“添加学生”,在弹窗页面中输入并搜索学生姓名,点击“确定”就可以为您的课堂添加第一位学生啦~"})}})):xe(!1);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),me=function(){j(1),N([]),ae([])},he=(t.detailCommonHomeworksList,(0,d.useState)(!1)),fe=u()(he,2),ge=fe[0],xe=fe[1];return(0,P.jsxs)(x.Z,{width:600,confirmLoading:ge,centered:!0,title:"发布作业",open:"立即发布"===t.actionTabs.key,okText:"发布作业",cancelText:"暂不发布",onOk:pe,onCancel:function(){me(),de(),n({type:"classroomList/setActionTabs",payload:{}})},children:[(0,P.jsxs)("p",{className:"tc",children:["学生将立即收到作业",(0,P.jsx)("br",{}),'本操作只对"未发布"的作业有效']}),T&&(0,P.jsxs)(I.Z,{form:h,children:[(0,P.jsxs)("div",{style:{paddingLeft:0},children:[(0,P.jsxs)(v.Z,{className:"mt30",align:"middle",children:[(0,P.jsx)(w.Z,{children:(0,P.jsx)(I.Z.Item,{name:"publish_time",label:"发布时间",children:(0,P.jsx)(D.default,{style:{width:170,marginRight:"25px"},disabledDate:function(e){return(0,W.Q8)(e,o)},disabledTime:function(e){return(0,W.d0)(e)},placeholder:"请选择发布时间",showTime:{format:"HH:mm",defaultValue:H()((0,S.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),(0,P.jsx)(w.Z,{className:"ml20",children:(0,P.jsx)(I.Z.Item,{name:"end_time",label:"截止时间",children:(0,P.jsx)(D.default,{style:{width:170},placeholder:"请选择结束时间",showTime:{format:"HH:mm",defaultValue:H()((0,S.U6)(),"HH:mm")},disabledDate:function(e){return(0,W.Q8)(e,o,h.getFieldValue("publish_time"))},disabledTime:function(e){return(0,W.d0)(e,h.getFieldValue("publish_time"))},format:"YYYY-MM-DD HH:mm",allowClear:!1})})})]}),2===t.actionTabs.type&&(0,P.jsxs)(v.Z,{style:{marginBottom:"10px"},children:[(0,P.jsx)("span",{className:"mr5",children:"发布设置:"}),(0,P.jsxs)(b.ZP.Group,{value:le,onChange:function(e){ce(e.target.value),ae([])},children:[(0,P.jsx)(b.ZP,{value:!0,disabled:!t.actionTabs.manage_all_group,children:"统一发布"}),(0,P.jsx)(b.ZP,{className:"ml20",disabled:T.length<=0,value:!1,children:"分班发布"})]})]}),T.length<=0&&2===t.actionTabs.type&&(0,P.jsx)("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"},children:'课堂无分班,仅支持选择“统一发布"'})]}),(1===t.actionTabs.type||!le)&&T.length>0&&(0,P.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"},children:[(0,P.jsx)("span",{style:{flex:1},children:(0,P.jsx)(G.Z,{checked:ie.length===T.length,onChange:function(e){ie.length===T.length?ae([]):ae(T.filter((function(e){return!e.is_published})))},children:"全选"})}),(0,P.jsx)("span",{style:{width:16}}),(0,P.jsxs)("span",{style:{flex:1},children:["已选择",ie.length||0,"个分班"]})]}),(1===t.actionTabs.type||!le)&&T.length>0&&(0,P.jsx)(z.Z,{data:T,selectedRowKeys:ie,setSelectedRowKeys:ae})]})]})})),U=n(58325),K=(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,P.jsx)(x.Z,{centered:!0,title:"提示",open:"设为公开"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:r()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,A.ZP)("/api/courses/".concat(o.id,"/homework_commons/set_public.json"),{method:"post",body:{homework_ids:L()(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,P.jsxs)("p",{children:["设为公开后,非课堂成员也可以访问查看",(0,P.jsx)("br",{}),"是否确认设为公开?"]})})})),J=["classroomList","dispatch","onCallback"],q=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=e.onCallback,a=(O()(e,J),(0,p.useParams)());return a.id=a.coursesId,(0,P.jsx)(x.Z,{centered:!0,title:"提示",open:"收藏"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:r()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,A.ZP)("/api/courses/".concat(a.id,"/homework_commons/add_to_homework_bank.json"),{method:"post",body:{all_check:0,homework_ids:L()(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:"确认收藏?"})})),Q=n(99313),X=n(3113),$=n(8772),ee=n(26724),te=n.n(ee),ne={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_"},oe=n(7406),ie=n(94433),ae=(Q.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,a=(e.loading,e.dispatch),s=(0,p.useParams)(),c=((0,p.useLocation)(),I.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"),A=u()(T,2),N=A[0],B=A[1],Z=(0,d.useState)([]),M=u()(Z,2),O=M[0],D=M[1],R=(0,d.useState)(),H=u()(R,2),z=H[0],F=H[1],W=(0,d.useState)({page:0,limit:20,object_type:"group",search:"",filter:"myself"}),Y=u()(W,2),V=Y[0];Y[1];(0,d.useEffect)((function(){"题库选用"===n.actionTabs.key&&K()}),[n.actionTabs.key]);var U=[],K=function(){var e=r()(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),++V.page,e.next=5,a({type:"shixunHomeworks/getBrankList",payload:l()({},V)});case 5:n=e.sent,O=L()(O.concat(n.object_list)),F(n.is_teacher),(null===(t=n.object_list)||void 0===t?void 0:t.length)<V.limit?C(!1):C(!0),D(L()(O)),""==n.object_list&&1===V.page&&y(!0);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),J=o.detailCommonHomeworksList;return(0,P.jsxs)(x.Z,{centered:!0,title:"选用课堂资源",open:"题库选用"===n.actionTabs.key,okText:"确定",cancelText:"取消",width:800,bodyStyle:{minHeight:200},onOk:r()(i()().mark((function e(){var t,r,c,u;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=m.getFieldValue(),e.next=3,a({type:"shixunHomeworks/saveBanks",payload:{category:(null==o||null===(t=o.detailCommonHomeworksList)||void 0===t?void 0:t.category_id)||(null==o||null===(r=o.detailCommonHomeworksList)||void 0===r?void 0:r.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)()?a({type:"classroomList/getClassroomTeacherCommonList",payload:l()({},n.actionTabs.params)}):a({type:"classroomList/getClassroomCommonList",payload:l()({},n.actionTabs.params)}),a({type:"shixunHomeworks/setActionTabs",payload:{}}),a({type:"classroomList/setActionTabs",payload:{key:"立即发布",type:1,selectArrs:u.object_ids,params:l()({},n.actionTabs.params),manage_all_group:null==J?void 0:J.manage_all_group}}),a({type:"classroomList/getClassroomLeftMenus",payload:{id:s.coursesId}}));case 5:case"end":return e.stop()}}),e)}))),onCancel:function(){a({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,P.jsxs)(v.Z,{children:[(0,P.jsx)(w.Z,{span:12,children:[{name:"我的资源",id:"myself"},{name:"公共资源",id:"public"}].map((function(e,t){return(0,P.jsx)(X.ZP,{shape:"round",type:N===e.id?"primary":"default",className:"mr10",onClick:function(){var t=r()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:O=[],k=!0,V.page=0,V.search="",V.filter=e.id,K(),B(e.id);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),children:e.name},t)}))}),(0,P.jsx)(w.Z,{span:12,className:"tr",children:(0,P.jsx)($.Z.Search,{placeholder:"输入标题、适用课程进行搜索",onSearch:function(e){k=!0,V.search=e,V.page=0,O=[],e&&(0,ie.tk)({name:e,copywriting:e,position:"HomeworkCommon"}),K()},style:{width:260}})})]}),"myself"===N&&(0,P.jsxs)("p",{className:"tc mt10",children:["选用对象:你在课堂分组作业中已",(0,P.jsx)("span",{className:"c-orange",children:"收藏"}),"的分组作业"]}),"public"===N&&(0,P.jsx)("p",{className:"tc mt10",children:"选用对象:题库中已设置成公共属性的所有分组作业"}),(0,P.jsxs)("div",{style:{background:"#F4FAFF",maxHeight:200,overflow:"auto",padding:"20px 10px"},children:[!z&&"public"===N&&(0,P.jsxs)("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"},children:[(0,P.jsx)("span",{children:"通过职业认证的教师才能访问课堂公共资源库"}),(0,P.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,P.jsxs)(te(),{initialLoad:!1,pageStart:0,threshold:700,loadMore:function(){C(!1),K()},hasMore:k,useWindow:!1,children:[g&&(0,P.jsx)(oe.Z,{styles:{margin:"0px auto"}}),(0,P.jsx)(I.Z,{form:m,initialValues:E()({},"group_ids",U),className:ne.form,onChange:function(e){var t=m.getFieldValue();U=t},children:(0,P.jsx)(I.Z.Item,{name:"group_ids",children:(0,P.jsx)(G.Z.Group,{style:{width:"100%",flexDirection:"column"},className:"font14",children:null===(t=O)||void 0===t?void 0:t.map((function(e,t){return(0,P.jsxs)(v.Z,{children:[(0,P.jsx)(w.Z,{flex:"2",children:(0,P.jsx)(G.Z,{onChange:function(e){},value:String(e.id),defaultChecked:!0,children:(0,P.jsx)("span",{className:["c-black",ne.line1].join(" "),children:e.name})},t)}),(0,P.jsx)(w.Z,{flex:"1",className:"c-black",children:(0,P.jsx)("span",{className:ne.line1,children:null==e?void 0:e.course_list_name})}),(0,P.jsx)(w.Z,{flex:"50px",className:"c-black",children:"public"===N&&(0,_.Ny)()||"myself"===N?(0,P.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)}))})})})]})]})]})}))),re=n(32446),se=n(38518),le=n(14386),ce=(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,a=e.classroomList,r=(0,d.useState)(!1),s=u()(r,2),c=s[0],h=s[1],f=(0,d.useState)(""),g=u()(f,2),v=g[0],w=g[1];(0,d.useEffect)((function(){h(!1),w("")}),[]);return(0,P.jsxs)("section",{className:"tc animated fadeIn",style:l()(l()({},{color:"#999",margin:"200px auto"}),n),children:[(0,P.jsx)("img",{src:le.z3}),(0,P.jsx)("p",{className:"mt20 font14",children:"该分组无分组作业,可以下方按钮或右上方“新建作业”按钮创建作业"}),(0,P.jsxs)("div",{style:{marginTop:"30px"},children:[(0,P.jsx)(X.ZP,{onClick:function(){return h(!0)},type:"primary",style:{width:"128px",height:"40px",marginRight:"20px",borderRadius:"4px"},children:"新建作业"}),(0,P.jsx)(X.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,P.jsx)(x.Z,{open:!0,centered:!0,title:"新建作业",onCancel:function(){return h(!1)},onOk:function(){var e;!(0,_.Rm)()||null!=a&&null!==(e=a.AssistantObject)&&void 0!==e&&null!==(e=e.group)&&void 0!==e&&e.can_create?("1"===v&&p.history.push("/classrooms/".concat(i.coursesId,"/group_homework/").concat(i.categoryId||0,"/add")),"2"===v&&(o(),h(!1),w(""))):m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:(0,P.jsxs)("div",{children:[(0,P.jsx)("div",{children:(0,P.jsx)(b.ZP,{value:"1",style:{marginTop:"15px"},checked:"1"===v,onClick:function(){return w("1")},children:"新建分组作业"})}),(0,P.jsx)("div",{children:(0,P.jsx)(b.ZP,{value:"2",style:{marginTop:"15px"},checked:"2"===v,onClick:function(){return w("2")},children:"选用资源"})})]})})]})})),ue="bg___WElBH",de=n(42503),pe=n(38854),me=n(20834),he=n(52306),fe={listContainer:"listContainer___x25sx",info:"info___pPoXs",title:"title___hyvJ4",left:"left___PcXqY",right:"right___Gm2iB",flexBox:"flexBox____dxaA",detail:"detail___Bps1Y",iconV:"iconV___AsCHz"},ge=n(5829),xe=function(e){var t,n,o,a,s,c=e.dataSource,m=e.params,h=e.manageAllGroup,f=(0,d.useContext)(Te),g=(f.batchStatus,f.selectArrs),x=f.setSelectArrs,v=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.useState)([]),B=u()(N,2),Z=B[0],E=B[1];b=l()(l()(l()({},m),b),{},{category:null===(t=b)||void 0===t?void 0:t.categoryId}),(0,d.useEffect)((function(){E([]),T(!1)}),[]);var M=[{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:"匿评中"},{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,P.jsxs)("span",{children:[(0,P.jsx)("span",{children:null==e||null===(t=e.split("/"))||void 0===t?void 0:t[0]})," / ",(0,P.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,P.jsx)("span",{title:e,children:e}):"--"}}];function O(){return I.apply(this,arguments)}function I(){return(I=r()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,A.ZP)("/api/homework_commons/".concat(c.homework_id,"/group_settings_statistics.json"),{method:"get",params:l()({},b)});case 2:t=e.sent,E(t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,P.jsxs)("div",{className:fe.listContainer,onClick:function(e){e.stopPropagation(),(0,S.xg)("/classrooms/".concat(b.coursesId,"/group_homework/").concat(c.homework_id,"/detail"))},children:[(0,_.GJ)()&&(0,P.jsx)(G.Z,{onClick:function(e){e.stopPropagation()},style:{margin:"11px 0 0 10px"},checked:g.includes(c.homework_id),onChange:function(){return e=c.homework_id,void(g.includes(e)?(x(g.filter((function(t){return t!==e}))),w(v.filter((function(t){return t.homework_id!==e})))):(x([].concat(L()(g),[e])),w([].concat(L()(v),[c]))));var e}}),(0,P.jsxs)("div",{className:fe.info,children:[(0,P.jsxs)("div",{className:fe.title,children:[(0,P.jsxs)("div",{className:fe.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,P.jsx)(ge.Z,{value:c.status,children:(0,P.jsx)(S.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:[c.status]})}),(0,_.dE)()&&(0,P.jsx)(S.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:c.status}),(0,P.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,P.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,P.jsxs)("div",{className:fe.right,children:[(0,_.GJ)()&&"未发布"===c.status&&(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=r()(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,P.jsxs)("aside",{className:fe.flexBox,children:[(0,P.jsx)("i",{className:"iconfont icon-yishezhifabushijian1"}),(0,P.jsx)("div",{children:"发布"})]})}),(0,_.dE)()&&(0,P.jsxs)("div",{className:fe.actionIcon,children:[(null==c?void 0:c.challenge_count)-(null==c?void 0:c.finished_challenge_count)==0&&(0,P.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,P.jsxs)("aside",{onClick:function(){var e=r()(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:fe.flexBox,style:{marginRight:10},children:[(0,P.jsx)("i",{className:"iconfont icon-kaishixuexi font14"}),(0,P.jsx)("div",{children:"开始学习"})]}),((null===(a=c.status)||void 0===a?void 0:a.includes("已截止"))||(null===(s=c.status)||void 0===s?void 0:s.includes("导入")))&&(0,P.jsxs)("aside",{className:fe.flexBox,style:{marginRight:10},children:[(0,P.jsx)("i",{className:"iconfont icon-chakanzuoye font14"}),(0,P.jsx)("div",{children:"查看作品"})]})]}),(0,_.GJ)()&&(0,P.jsx)(pe.Z,{placement:"bottomCenter",overlayClassName:fe.dro,dropdownRender:function(){return(0,P.jsxs)(me.Z,{children:["导入"!==c.status&&(0,P.jsx)(me.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=r()(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,P.jsx)(me.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=r()(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,P.jsx)(me.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=r()(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,P.jsx)(me.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=r()(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:v,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,P.jsx)(me.Z.Item,{style:{textAlign:"center"},children:(0,P.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,P.jsxs)("aside",{onClick:function(e){return e.stopPropagation()},className:fe.flexBox,style:{marginRight:6,cursor:"default"},children:[(0,P.jsx)("i",{className:"iconfont icon-gengduo4"}),(0,P.jsx)("div",{children:"更多"})]})})]})]}),(0,P.jsx)("div",{className:fe.detail,children:(0,_.GJ)()&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("span",{className:"c-grey-333 mr20",children:c.author}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.uncommit_count&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"未做题"}),c.uncommit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.commit_count&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"已做题"}),c.commit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.compelete_count&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"已完成"}),c.compelete_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(c.status)&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"发布时间"}),c.publish_time]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(c.status)&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"截止时间"}),c.end_time]}),["已结束"].includes(c.status)&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"结束时间"}),c.status_time]}),!(null==c||!c.late_time)&&"--"!==(null==c?void 0:c.late_time)&&(0,P.jsxs)("span",{className:"c-grey-999",children:[(0,P.jsx)("span",{className:"mr5",children:"补交截止时间"}),null==c?void 0:c.late_time]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&(0,P.jsxs)("span",{className:fe.iconV,onClick:function(){var e=r()(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,P.jsx)("i",{className:"iconfont icon-".concat(C?"shouqi":"xiala2")})," "]})]})}),(0,P.jsxs)("div",{className:fe.content,children:[(0,_.dE)()&&(0,P.jsxs)("span",{className:fe.infoStuIcon,children:[(0,P.jsx)("span",{className:"c-grey-333",children:c.author}),"已截止"===c.status&&!(null==c||!c.status_time)&&(0,P.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,P.jsx)("i",{className:"iconfont icon-shengyushijian font12 mr5"})," ",null==c?void 0:c.status_time]}),(0,P.jsxs)("span",{className:"ml20 c-grey-999",children:[(0,P.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,P.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,P.jsx)("span",{className:"mr5",children:"补交截止时间:"}),null==c?void 0:c.late_time]})]}),(0,_.GJ)()&&"未发布"!==c.status&&C&&Z.length>5&&(0,P.jsx)(he.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:Z,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:M}),(0,_.GJ)()&&"未发布"!==c.status&&C&&Z.length<6&&Z.length>0&&(0,P.jsx)(he.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:Z,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:M})]})]})]})},ve="bottomControlContainer___yUX9N",we="buttonWrap___A3uZF",ye="moveCategory___pCGhW",be=n(8876),je=function(e){var t,n=e.buttonDataSource,o=e.onClick,a=(0,d.useContext)(Te),s=a.allSelect,l=a.setAllSelect,c=a.setSelectArrs,p=a.dataSource,h=a.selectArrs,f=a.useBatchStatus,g=a.dispatch,x=a.params,v=a.getData,w=a.detailLeftMenus,y=a.main_category_id,b=a.setSelectArrsAll,j=(0,d.useState)(!1),k=u()(j,2),C=k[0],S=k[1],T=(0,d.useState)(""),N=u()(T,2),B=N[0],Z=N[1];w.course_modules&&(t=w.course_modules.filter((function(e){return"group_homework"===e.type}))[0]);var E=(0,P.jsx)("div",{className:ye,onMouseLeave:function(e){return S(!1)},children:(0,P.jsxs)(me.Z,{onClick:function(){var e=r()(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,A.ZP)("/api/courses/".concat(x.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),v(),g({type:"classroomList/getClassroomLeftMenus",payload:{id:x.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,P.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",children:(0,P.jsx)($.Z,{onChange:function(e){Z(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,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(me.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,P.jsx)(me.Z.Item,{style:{marginLeft:20},className:"multi-llipsis1e",children:e.category_name},e.category_id)}))]})})),(0,P.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:x,selectArrs:{category_id:y,type:"group_homework"}}})},children:"新建子目录..."})]})});return(0,P.jsxs)("div",{className:ve,children:[(0,P.jsxs)("div",{children:[(0,P.jsx)("div",{children:(0,P.jsxs)(G.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?b(L()(p)):b([])},children:["全选本页(",h.length,")"]})}),(0,_.GJ)()&&n.map((function(e){return(0,P.jsx)("div",{children:(0,P.jsx)(X.ZP,{type:"primary",icon:e.icon,className:we,onClick:function(){return o(e)},children:e.name})},e.key)})),(0,P.jsx)("div",{children:(0,P.jsx)(X.ZP,{type:"primary",onClick:function(){var e={courseId:x.id,container_type:"group_homework"};x.categoryId&&(e.category_id=x.categoryId),g({type:"classroomList/getAllTaskList",payload:e}),g({type:"classroomList/setActionTabs",payload:{key:"调整排序"}})},icon:(0,P.jsx)("i",{className:"iconfont icon-tiaozhengpaixu2"}),className:we,children:"调整排序"})}),(0,_.GJ)()&&(0,P.jsx)("div",{children:(0,P.jsx)(pe.Z,{open:C,placement:"topLeft",dropdownRender:function(){return E},getPopupContainer:function(e){return e.parentNode},children:(0,P.jsx)("span",{className:"ant-dropdown-link",onMouseEnter:function(e){return S(!0)},children:(0,P.jsx)(X.ZP,{type:"primary",className:we,icon:(0,P.jsx)("i",{className:"iconfont icon-yidongmulu"}),children:(0,P.jsxs)("span",{children:["移动到目录 ",(0,P.jsx)(be.Z,{})]})})})})}),(0,_.GJ)()&&(0,P.jsx)("div",{children:(0,P.jsx)(X.ZP,{type:"primary",onClick:function(){return o({key:"collection",name:"收藏",icon:(0,P.jsx)("i",{className:"iconfont icon-shoucang1"})})},icon:(0,P.jsx)("i",{className:"iconfont icon-shoucang1"}),className:we,children:"收藏"})})]}),(0,P.jsx)("div",{children:(0,P.jsx)(X.ZP,{type:"primary",ghost:!0,onClick:function(){c([]),f(!1)},children:"取消操作"})})]})},ke=n(80867),Ce=n(22474),_e=n(48071),Se=n(31954),Te=(0,d.createContext)({selectArrs:[]}),Le=(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=e.user,a=e.classroomList,s=e.loading,c=e.dispatch,T=(0,p.useParams)(),L=(0,p.useSearchParams)(),N=u()(L,1)[0],Z=(0,d.useState)((function(){return l()(l()({},T),{},{id:T.coursesId,limit:20})})),E=u()(Z,2),M=E[0],O=E[1],I=(0,d.useState)(!1),D=u()(I,2),G=D[0],R=D[1],H=(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:""}),z=u()(H,2),F=z[0],W=z[1],Y=(0,d.useState)([]),J=u()(Y,2),Q=J[0],X=J[1],$=(0,d.useState)(!1),ee=u()($,2),te=ee[0],ne=ee[1],ie=(0,d.useState)(!1),le=u()(ie,2),pe=le[0],me=le[1],he=(0,d.useState)([]),fe=u()(he,2),ge=fe[0],ve=fe[1],we=(0,d.useState)(!1),ye=u()(we,2),be=(ye[0],ye[1],(0,d.useState)("默认排序")),Le=u()(be,2),Ae=Le[0],Ne=Le[1],Pe=(0,p.useLocation)(),Be=a.detailCommonHomeworksList,Ze=a.detailLeftMenus,Ee=a.detailTopBanner,Me=a.taskList;N.get("tabs")&&parseInt(N.get("tabs"));M.type=3,M.categoryId?M.category=M.categoryId:delete M.category,(0,d.useEffect)((function(){O(l()(l()({},M),T))}),[null==T?void 0:T.categoryId]),(0,d.useEffect)((function(){"0"===N.get("tabs")&&(M.status="0",M.page=1)}),[N.get("tabs")]),(0,d.useEffect)((function(){var e=N.get("tabs");e&&void 0!==e&&((0,_.GJ)()?M.status=e:M.order=e)}),[N.toString()]),(0,d.useEffect)((function(){c({type:"classroomList/getAssistantPermissions",payload:{course_id:M.id}})}),[]),(0,d.useEffect)((function(){var e,t,n=N.get("tabs");if(null!=o&&null!==(e=o.userInfo)&&void 0!==e&&e.login){var i,a=S.cX.getItem("".concat(null==o||null===(i=o.userInfo)||void 0===i?void 0:i.login).concat((0,_.GJ)()?"Teacher":"Student"),"GroupHomework");a&&(M.sort_by=null==a?void 0:a.type,M.sort_direction=null==a?void 0:a.direction,Ne(null==a?void 0:a.name));var r=void 0===T.categoryId?{}:{categoryId:T.categoryId,category:T.categoryId};n&&void 0!==n&&((0,_.GJ)()?M.status=n:M.order=n),Oe(r)}else if(null!=o&&null!==(t=o.userInfo)&&void 0!==t&&t.username){var s=void 0===T.categoryId?{}:{categoryId:T.categoryId,category:T.categoryId};n&&void 0!==n&&((0,_.GJ)()?M.status=n:M.order=n),Oe(s)}}),[null==o||null===(t=o.userInfo)||void 0===t?void 0:t.login,null==Pe?void 0:Pe.pathname]),(0,d.useEffect)((function(){"目录重命名成功"===a.actionTabs.key&&Oe(),"目录重命名成功"===a.actionTabs.key&&Oe()}),[a.actionTabs.key]),(0,d.useEffect)((function(){X([])}),[Be]),(0,d.useEffect)((function(){me(!1)}),[M.categoryId]),(0,d.useEffect)((function(){Be&&Be.homeworks&&(Q.length===Be.homeworks.length&&Q.length>0?ne(!0):Q.length!==Be.homeworks.length&&ne(!1))}),[Q]);var Oe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};X([]),ve([]),(0,_.GJ)()?c({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()(l()({},M),e),{},{type:3})}):c({type:"classroomList/getClassroomCommonList",payload:l()(l()({},M),e)})},Ie=function(){var e=r()(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,A.ZP)("/api/courses/".concat(M.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),W(l()({},n)));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,d.useEffect)((function(){X([])}),[Be]);var De=function(){c({type:"shixunHomeworks/setActionTabs",payload:{key:"题库选用",params:M}})},Ge=function(){var e=r()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c({type:"classroomList/updateTaskPosition",payload:{category_id:M.categoryId,courseId:M.id,task_ids:t,container_type:"group_homework"}});case 2:Oe();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Re=(0,d.useMemo)((function(){var e=[];return Me.length>0&&(e=Me.map((function(e){return{user_name:e.user_name,task_name:e.task_name,task_id:e.task_id,category:e.category}}))),e}),[Me]);return(0,P.jsx)(Te.Provider,{value:{params:M,batchStatus:pe,selectArrs:Q,setSelectArrs:X,allSelect:te,dataSource:Be.homeworks||[],detailLeftMenus:Ze,main_category_id:Be.main_category_id||"",selectArrsAll:ge,setAllSelect:ne,useBatchStatus:me,dispatch:c,getData:Oe,setSelectArrsAll:ve},children:(0,P.jsxs)("section",{children:[(0,P.jsxs)("aside",{className:ue,children:[(0,P.jsx)(de.Z,{isLoading:s[(0,_.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"],tabDataSource:(0,_.GJ)()?[{name:"全部",id:0,total:Be.all_count||0},{name:"未发布",id:1,total:Be.unpublished_count||0},{name:"未开始",id:4,total:Be.not_start_count||0},{name:"进行中",id:2,total:Be.in_progress_count||0},{name:"已截止",id:3,total:Be.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:c,type:null==Be?void 0:Be.main_category_name,exportType:"group",TooltipTitle:M.categoryId?"目录重命名":"新建子目录",categoryId:M.categoryId,dropdownMenu:[{name:"新建分组作业",id:"1"},{name:"选用资源",id:"2"},{name:"导入外部成绩",id:"3"}],isShowRightControl:"未分配目录"!==(0,S.Oo)(null==Ze?void 0:Ze.course_modules,M.categoryId),onsetClick:function(){Ie(),R(!0)},onTabMenuClick:function(e){void 0!==e.id&&((0,_.GJ)()?M.status=e.id:M.order=e.id),me(!1),M.page=1,p.history.replace("".concat(Pe.pathname,"?tabs=").concat(e.id)),Oe(M)},defaultSelectedKeys:[N.get("tabs")?N.get("tabs"):"0"],onTooltipTitleClick:function(){c({type:"classroomList/setActionTabs",payload:{key:M.categoryId?"目录重命名":"添加目录",params:M,selectArrs:{category_name:null==Be?void 0:Be.category_name,category_id:(null==Be?void 0:Be.category_id)||(null==Be?void 0:Be.main_category_id)},cb:function(){Oe()}}})},onDropdownMenuClick:function(e){var t;!(0,_.Rm)()||null!==(t=a.AssistantObject.group)&&void 0!==t&&t.can_create?"1"===e?p.history.push("/classrooms/".concat(M.coursesId,"/group_homework/").concat(M.categoryId,"/add")):"2"===e?De():"3"===e&&c({type:"classroomList/setActionTabs",payload:{key:"导入外部成绩",type:"group"}}):m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),(0,P.jsx)(ke.Z,{dataSource:Be.homeworks||[],isAdmin:(0,_.GJ)(),batchStatus:pe,SortMenuName:Ae,setSortMenuName:Ne,onSearch:function(e){M.search=e.trim(),M.page=1,Oe()},onSort:function(e){var t;M.sort_by=e.type,M.sort_direction=e.direction,M.page=1,S.cX.setItem("".concat(null==o||null===(t=o.userInfo)||void 0===t?void 0:t.login).concat((0,_.GJ)()?"Teacher":"Student"),e,"GroupHomework"),Oe(M)},onBatch:function(e){return me(e)}})]}),(0,P.jsxs)(h.Z,{loading:s["classroomList/getClassroomCommonHomeworksList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30",children:[0===(null==Be?void 0:Be.all_count)&&(0,_.GJ)()?!s[(0,_.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,P.jsx)(ce,{params:M,dispatch:c,onSelect:De}):(null==Be?void 0:Be.homeworks)&&0===Be.homeworks.length&&!s[(0,_.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,P.jsx)(oe.Z,{}),(0,P.jsx)("aside",{className:"minH500 skt-loading relative pb40 mb30",children:!s[(0,_.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("aside",{className:"animated fadeIn",children:[null==Be||null===(n=Be.homeworks)||void 0===n?void 0:n.map((function(e,t){return(0,P.jsx)(xe,{dataSource:e,params:M,manageAllGroup:null==Be?void 0:Be.manage_all_group},t)})),(0,P.jsx)("aside",{className:"tc mb50 mt30",children:(null==Be?void 0:Be.query_total_count)>10&&(0,P.jsx)(f.Z,{showSizeChanger:!0,onChange:function(e,t){M.page=e,M.limit=t,Oe()},defaultCurrent:1,current:M.page||1,pageSize:M.limit||20,total:Be.query_total_count})})]}),Q.length>0&&(0,_.GJ)()&&(0,P.jsx)(g.Z,{offsetBottom:0,children:(0,P.jsx)(je,{buttonDataSource:[{key:"publish",name:"批量发布",icon:(0,P.jsx)("i",{className:"iconfont icon-fabu5"})},{key:"deadline",name:"批量截止",icon:(0,P.jsx)("i",{className:"iconfont icon-piliangjiezhi2"})},{key:"delete",name:"批量删除",icon:(0,P.jsx)("i",{className:"iconfont icon-piliangshanchu2"})},{key:"public",name:"设为公开",icon:(0,P.jsx)("i",{className:"iconfont icon-sheweigongkai2"})}].filter((function(e){return!(!(0,_.GJ)()&&!(0,_.Rm)())||"批量删除"!==e.name})).filter((function(e){return!!Ee.is_public||"设为公开"!==e.name})),onClick:function(e){var t,n;if(0===Q.length)return m.ZP.error("请选择你要操作的任务"),!1;var o=e.name,i={key:o,selectArrs:Q,selectArrsAll:ge,type:["publish","deadline"].includes(e.key)?1:"",params:M};switch(e.key){case"publish":if((0,_.Rm)()&&(null==a||null===(t=a.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==a||null===(n=a.AssistantObject)||void 0===n||null===(n=n.group)||void 0===n||!n.can_stop))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");o="立即截止";break;case"delete":o="删除";break;case"collection":o="收藏"}c({type:"classroomList/setActionTabs",payload:l()(l()({},i),{},{key:o})})}})})]})})]}),(0,P.jsx)(B,{onCallback:function(){return me(!1)}}),(0,P.jsx)(_e.Z,{onOk:function(){Oe()}}),(0,P.jsx)(Se.Z,{onOk:function(){}}),(0,P.jsx)(V,{onCallback:function(){return me(!1)},courseEndTime:null==Be?void 0:Be.course_end_time}),(0,P.jsx)(U.Z,{courseEndTime:null==Be?void 0:Be.course_end_time,courseId:T.coursesId,visible:"立即截止"===a.actionTabs.key,isBatch:2!==a.actionTabs.type,homeworkIds:a.actionTabs.selectArrs,successCallback:function(){me(!1),Oe()}}),(0,P.jsx)(K,{}),(0,P.jsx)(ae,{}),(0,P.jsx)(q,{onCallback:function(){return me(!1)}}),(0,P.jsx)(re.Z,{}),(0,P.jsx)(se.Z,{}),(0,P.jsx)(Ce.Z,{visible:"调整排序"===a.actionTabs.key,callback:Ge,data:Re,onCancel:function(){c({type:"classroomList/setActionTabs",payload:{key:""}})}}),(0,P.jsx)(x.Z,{open:G,title:"默认评分设置",centered:!0,onCancel:function(){R(!1)},onOk:r()(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(F)),Object.keys(t).map((function(e){e.indexOf("proportion")>-1&&(t[e]=t[e]/100)})),e.next=4,(0,A.ZP)("/api/courses/".concat(M.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("设置成功"),R(!1));case 6:case"end":return e.stop()}}),e)}))),width:800,children:(0,P.jsxs)("div",{children:[(0,P.jsx)(v.Z,{children:(0,P.jsx)(w.Z,{span:24,children:(0,P.jsx)(v.Z,{align:"middle",children:(0,P.jsx)(w.Z,{span:24,children:(0,P.jsx)("div",{className:"mt15",children:"该默认规则将被应用于你后续新建的分组作业,且不会影响你已创建的作业以及其他老师新建作业的评分规则。"})})})})}),(0,P.jsxs)(v.Z,{align:"middle",className:"mt25",children:[(0,P.jsx)(w.Z,{children:(0,P.jsx)("strong",{children:"组长评分"})}),(0,P.jsxs)(v.Z,{className:"ml10",children:[(0,P.jsx)(w.Z,{children:(0,P.jsx)(y.Z,{checked:F.is_group_grade,onChange:function(e){F.is_group_grade=e,W(l()({},F))}})}),(0,P.jsx)(w.Z,{className:"c-grey-c ml10",children:"(选中,则组长首次提交作业时需要对组员进行评分)"})]})]}),(0,P.jsxs)(v.Z,{className:"mt25",children:[(0,P.jsx)(w.Z,{children:(0,P.jsx)("strong",{children:"助教评分"})}),(0,P.jsx)(w.Z,{span:24,className:"pl30 mt10"})]}),(0,P.jsx)(v.Z,{children:(0,P.jsxs)(b.ZP.Group,{value:null==F?void 0:F.ta_mode,onChange:function(e){F.ta_mode=e.target.value,W(l()({},F))},children:[(0,P.jsxs)(b.ZP,{value:1,style:{marginTop:15},children:[(0,P.jsx)("strong",{children:"普通模式"}),(0,P.jsx)("span",{className:"c-grey-c",children:"(选中,则取各助教最终评分的平均分)"})]}),(0,P.jsx)("br",{}),(0,P.jsxs)(b.ZP,{value:0,style:{marginTop:15},children:[(0,P.jsx)("strong",{children:"复审模式"}),(0,P.jsx)("span",{className:"c-grey-c",children:"(选中,则只取最新的助教评分)"})]})]})}),(0,P.jsxs)(v.Z,{className:"mt25",children:[(0,P.jsx)(w.Z,{children:(0,P.jsx)("strong",{children:"最终成绩组成"})}),(0,P.jsx)(w.Z,{span:24,className:"pl30 mt10"})]}),(0,P.jsxs)(v.Z,{children:[(0,P.jsxs)(b.ZP.Group,{value:F.final_mode,onChange:function(e){F.final_mode=e.target.value,W(l()({},F))},children:[(0,P.jsxs)(b.ZP,{value:!1,style:{marginTop:15},children:[(0,P.jsx)("strong",{children:"多项评分配比"}),(0,P.jsxs)("span",{className:"c-grey-c",children:["(选中,则按照比例计算最终成绩)",(0,P.jsx)(j.Z,{overlayClassName:"edu-popover",placement:"bottomLeft",content:(0,P.jsxs)("span",{className:"font14",children:["计算说明:",(0,P.jsx)("br",{}),"教师评分 * 其百分比 + 助教评分 * 其百分比 + 组长评分 * 其百分比 + 学生匿评平均分 * 其百分比 - ( ",(0,P.jsx)("br",{}),"迟交扣分 + 缺评扣分 * 缺评数 + 违规匿评扣分 * 违规匿评数 )",(0,P.jsx)("br",{}),(0,P.jsx)("br",{}),"注意",(0,P.jsx)("br",{}),"非零百分比的评分选项,若评分记录为空,则其百分比将自动平摊到其它非零",(0,P.jsx)("br",{}),"评分选项上。",(0,P.jsx)("br",{}),"例:教师评分40% + 助教评分35% + 学生匿评25%,学生A没有教师评分记",(0,P.jsx)("br",{}),"录,则其最终成绩按照助教评分55% + 学生匿评45%进行计算"]}),trigger:"click",children:(0,P.jsx)("span",{className:"mt10 ml10 current font14",children:(0,P.jsx)(C.Z,{})})})]})]}),(0,P.jsxs)(v.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,P.jsx)(w.Z,{children:"教师评分:"}),(0,P.jsxs)(w.Z,{className:"ml5",children:[(0,P.jsx)(k.Z,{min:0,max:100,value:F.te_proportion,onChange:function(e){F.te_proportion=e,W(Object.assign({},F))}}),(0,P.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,P.jsxs)(v.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,P.jsx)(w.Z,{children:"助教评分:"}),(0,P.jsxs)(w.Z,{className:"ml5",children:[(0,P.jsx)(k.Z,{min:0,max:100,value:F.ta_proportion,onChange:function(e){F.ta_proportion=e,W(Object.assign({},F))}}),(0,P.jsx)("span",{className:"ml10",children:"%"})]})]}),F.is_group_grade&&(0,P.jsxs)(v.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,P.jsx)(w.Z,{children:"组长评分:"}),(0,P.jsxs)(w.Z,{className:"ml5",children:[(0,P.jsx)(k.Z,{min:0,max:100,value:F.gr_proportion,onChange:function(e){F.gr_proportion=e,W(Object.assign({},F))}}),(0,P.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,P.jsxs)(v.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,P.jsx)(w.Z,{children:"学生匿评:"}),(0,P.jsxs)(w.Z,{className:"ml5",children:[(0,P.jsx)(k.Z,{min:0,max:100,value:F.st_proportion,onChange:function(e){F.st_proportion=e,W(Object.assign({},F))}}),(0,P.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,P.jsx)("br",{}),(0,P.jsxs)(b.ZP,{value:!0,style:{marginTop:15},children:[(0,P.jsx)("strong",{children:"单项评分优先"}),(0,P.jsxs)("span",{className:"c-grey-c",children:["(选中,则按照优先顺序计算最终成绩)",(0,P.jsx)(j.Z,{overlayClassName:"edu-popover",placement:"bottomLeft",content:(0,P.jsxs)("span",{className:"font14",children:["计算说明:",(0,P.jsx)("br",{}),"优先顺序排前的非零评分 * 100% - ",(0,P.jsx)("br",{}),"( 迟交扣分 + 缺评扣分 * 缺评数 + 违规匿评扣分 * 违规匿评数 )",(0,P.jsx)("br",{}),"例:有教师评分则教师评分100%,否则教辅评分100%,依次类推"]}),trigger:"click",children:(0,P.jsx)("span",{className:"mt10 ml10 current font14",children:(0,P.jsx)(C.Z,{})})})]})]}),(0,P.jsx)(v.Z,{children:(0,P.jsx)(w.Z,{span:24,className:"ml20",children:(0,P.jsx)("div",{style:{color:"#ccc"},children:"(教师评分 → 助教评分 → 组长评分 → 学生匿评评分)"})})})]}),(0,P.jsx)("br",{})]})]})})]})})}))},31954:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),a=n(85573),r=n.n(a),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(21068),f=n(78241),g=n(43418),x=n(8591),v=n(52306),w=n(7880),y=n(27065),b=n(83547),j=n(51136),k=n(99232),C=n.n(k),_=n(6457),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,a=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],L=h[1],A=(0,m.useState)(!1),N=p()(A,2),P=N[0],B=N[1],Z={height:100,onRemove:function(){L("")},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 L(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(r()(r()({},"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:P},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,r,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 x.ZP.info("请上传文件"),e.abrupt("return");case 3:return B(!0),(i=new FormData).append("type",n.actionTabs.type),i.append("file",k),r=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)(r,{method:"post",body:i},!0);case 10:s=e.sent,B(!1),0===(null==s?void 0:s.status)&&(a(),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)(v.Z,{pagination:!1,dataSource:null==s||null===(d=s.data)||void 0===d?void 0:d.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,_.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()({},Z),{},{children:[(0,S.jsx)("a",{className:b.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,S.jsx)("br",{}),(0,S.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},48071:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),a=n(85573),r=n.n(a),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(21068),f=n(78241),g=n(43418),x=n(8591),v=n(52306),w=n(8772),y=n(97913),b=n(95237),j=n(43604),k=n(22744),C=n(7880),_=n(11094),S=n(27065),T=n(83547),L=n(51136),A=n(47762),N=n(99232),P=n.n(N),B=n(6457),Z=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,a=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],O=N[1],I=(0,m.useState)(!1),D=p()(I,2),G=D[0],R=D[1],H={height:100,onRemove:function(){O("")},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 O(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(r()(r()({},"publish_time",P()(P()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",P()(P()(new Date((0,B.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),["导入外部成绩"===n.actionTabs.key]),(0,Z.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,Z.jsxs)(f.Z,{form:d,colon:!1,onFinish:function(){var e=u()(l()().mark((function e(t){var i,r,c,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=M&&M.size){e.next=3;break}return x.ZP.info("请上传文件"),e.abrupt("return");case 3:return R(!0),(i=new FormData).append("name",t.name),i.append("type",n.actionTabs.type),"exercise"===n.actionTabs.type?i.append("time",t.time||""):i.append("description",t.description||""),i.append("publish_time",P()(t.publish_time).format("YYYY-MM-DD HH:mm")),i.append("end_time",P()(t.end_time).format("YYYY-MM-DD HH:mm")),i.append("file",M),e.next=13,(0,L.ZP)("/api/courses/".concat(s.coursesId,"/export_external_score_homework.json"),{method:"post",body:i},!0);case 13:r=e.sent,R(!1),0===(null==r?void 0:r.status)&&(d.resetFields(),o({type:"classroomList/setActionTabs",payload:{}}),a(),(null==r||null===(c=r.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,Z.jsx)(v.Z,{pagination:!1,dataSource:null==r||null===(u=r.data)||void 0===u?void 0:u.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,B.FH)("",S.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,Z.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,Z.jsx)(w.Z,{showCount:!0,placeholder:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称"),maxLength:60})}),"exercise"!==n.actionTabs.type&&(0,Z.jsx)(f.Z.Item,{label:"作业描述",labelCol:{span:3},name:"description",children:(0,Z.jsx)(_.Z,{watch:!0})}),"exercise"===n.actionTabs.type&&(0,Z.jsx)(f.Z.Item,{label:"答题时长",labelCol:{span:3},name:"time",children:(0,Z.jsx)(y.Z,{style:{width:"100%"},addonAfter:"分钟",placeholder:"请输入答题时长"})}),(0,Z.jsxs)(b.Z,{style:{marginLeft:6,marginBottom:12},children:[(0,Z.jsx)(j.Z,{span:12,children:(0,Z.jsx)(f.Z.Item,{label:"开始时间",name:"publish_time",rules:[{required:!0,message:"请选择开始时间"}],children:(0,Z.jsx)(k.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:256},disabledDate:function(e){return(0,A.Q8)(e)},disabledTime:function(e){return(0,A.d0)(e)},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})}),(0,Z.jsx)(j.Z,{span:12,children:(0,Z.jsx)(f.Z.Item,{label:"结束时间",name:"end_time",rules:[{required:!0,message:"请选择结束时间"}],children:(0,Z.jsx)(k.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:function(e){return(0,A.Q8)(e,"",d.getFieldValue("publish_time"))},disabledTime:function(e){return(0,A.d0)(e,d.getFieldValue("publish_time"))},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})})]}),(0,Z.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,Z.jsxs)("div",{children:[(0,Z.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,Z.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,Z.jsxs)("div",{children:[(0,Z.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,Z.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,Z.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,Z.jsxs)(E,i()(i()({},H),{},{children:[(0,Z.jsx)("a",{className:T.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,Z.jsx)("br",{}),(0,Z.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},15766:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var o=n(7557),i=n.n(o),a=n(41498),r=n.n(a),s=n(79800),l=n.n(s),c=n(59301),u=n(8772),d=n(24905),p=n(95237),m="leftdiv___aBzsX",h="listClass___bxIEW",f="spantitle___v_Vc4",g="rightdiv___xWu4M",x=n(7406),v=n(37712),w=function(e){var t=e.data,n=(e.value,e.handleChangePage,e.setSelectedRowKeys),o=e.selectedRowKeys,a=(e.onChange,(0,c.useState)([])),s=l()(a,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],L=S[1],A=(0,c.useState)(1),N=l()(A,2),P=(N[0],N[1],(0,c.useState)()),B=l()(P,2);B[0],B[1];return(0,c.useEffect)((function(){y(t),C([]),L([])}),[t]),(0,c.useEffect)((function(){n&&(C(o),L(o))}),[o]),(0,v.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,v.jsxs)("div",{className:m,children:[(0,v.jsx)(u.Z.Search,{size:"middle",onChange:function(){var e=r()(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,v.jsx)(x.Z,{styles:{margin:"70px auto"},customText:"暂无分班"}),(0,v.jsx)("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"},children:(0,v.jsx)(d.Z.Group,{value: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,v.jsx)(p.Z,{style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200},children:(0,v.jsx)(d.Z,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:e.is_published,value:"".concat(e.id),children:(0,v.jsxs)("div",{className:h,children:[(0,v.jsx)("span",{className:f,style:{width:e.is_published?"108px":"170px"},children:e.name}),e.is_published&&(0,v.jsx)("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"},children:"已发布"})]})})},e.id)}))})})]}),(0,v.jsxs)("div",{className:g,children:[(0,v.jsx)(u.Z.Search,{onChange:function(e){L(k.filter((function(t){return t.name.includes(e.target.value)})))},size:"middle",placeholder:"可输入班级名称查询"}),0===T.length&&(0,v.jsx)(x.Z,{styles:{margin:"70px auto"},customText:"暂未选择分班"}),T.length>0&&(0,v.jsx)("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"},children:(0,v.jsx)("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0},children:T.map((function(e,t){return(0,v.jsxs)(p.Z,{justify:"space-between",style:{marginTop:"10px"},children:[(0,v.jsx)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"},children:e.name}),(0,v.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){n(k.filter((function(t){return"".concat(t.id)!="".concat(e.id)})))}})]},e.id)}))})})]})]})}},28838: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),a=n(41498),r=n.n(a),s=n(51136);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=r()(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)}},83547: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(12295),i=n(91659);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},a=function(){if(null==t){for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];t=(0,i.Z)(n(o))}};return a.cancel=()=>{i.Z.cancel(t),t=null},a}},81228:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var o=n(15744),i=n(87469),a=n(87902),r=n(16910),s=n(59301),l=n(92310),c=n.n(l),u=n(28647),d=n(62805),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 x=(0,h.Z)("Affix",(e=>{const t=(0,f.TS)(e,{zIndexPopup:e.zIndexBase+10});return[g(t)]}));function v(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,a.Z)(n,e);var t=(0,r.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 a=e.getOffsetTop(),r=e.getOffsetBottom(),s=i();if(s){const t={status:k.None},i=v(e.placeholderNodeRef.current);if(0===i.top&&0===i.left&&0===i.width&&0===i.height)return;const l=v(s),c=w(i,l,a),u=y(i,l,r);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(),a=t();if(a&&e.placeholderNodeRef.current){const t=v(a),r=v(e.placeholderNodeRef.current),s=w(r,t,o),l=y(r,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,a=c()(e&&o,{[n]:!!e});let r=(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({},r,{ref:this.placeholderNodeRef}),e&&s.createElement("div",{style:t,"aria-hidden":"true"}),s.createElement("div",{className:a,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_),a=i("affix",n),[r,l]=x(a),u=Object.assign(Object.assign({},e),{affixPrefixCls:a,rootClassName:c()(o,l)});return r(s.createElement(C,Object.assign({},u,{ref:t})))}))},39722:function(e,t,n){"use strict";n.d(t,{t5:function(){return d}});var o=n(92310),i=n.n(o),a=n(55477),r=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 r.createElement("div",{className:i()(t,n,`${n}-pure`,`${n}-placement-${c}`,o),style:s},r.createElement("div",{className:`${n}-arrow`}),r.createElement(a.G,Object.assign({},e,{className:t,prefixCls:n}),p||((e,t,n)=>{if(t||n)return r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${e}-title`},(0,l.Z)(t)),r.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}=r.useContext(s.E_),i=o("popover",t),[a,l]=(0,c.Z)(i);return a(r.createElement(d,Object.assign({},n,{prefixCls:i,hashId:l})))}},60324:function(e,t,n){"use strict";var o=n(92310),i=n.n(o),a=n(59301),r=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 a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${o}-title`},(0,r.Z)(t)),a.createElement("div",{className:`${o}-inner-content`},(0,r.Z)(n)))},h=a.forwardRef(((e,t)=>{const{prefixCls:n,title:o,content:r,overlayClassName:u,placement:h="top",trigger:f="hover",mouseEnterDelay:g=.1,mouseLeaveDelay:x=.1,overlayStyle:v={}}=e,w=p(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:y}=a.useContext(l.E_),b=y("popover",n),[j,k]=(0,d.Z)(b),C=y(),_=i()(u,k);return j(a.createElement(c.Z,Object.assign({placement:h,trigger:f,mouseEnterDelay:g,mouseLeaveDelay:x,overlayStyle:v},w,{prefixCls:b,overlayClassName:_,ref:t,overlay:o||r?a.createElement(m,{prefixCls:b,title:o,content:r}):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),a=n(19447),r=n(33166),s=n(83116),l=n(37613);const c=e=>{const{componentCls:t,popoverColor:n,minWidth:i,fontWeightStrong:r,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:r},[`${t}-inner-content`]:{color:n}})},(0,a.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]:r.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:a,controlHeight:r,fontSize:s,lineHeight:l,padding:c}=e,u=r-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:`${a}px ${c}px`}}}};t.Z=(0,s.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,a=(0,l.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[c(a),u(a),o&&d(a),(0,i._y)(a,"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),a=s(i),r=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,a=void 0!==t.pageYOffset?t.pageYOffset:i.scrollTop;o=this.props.isReverse?a:this.calculateOffset(e,a)}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,r=(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?r?u.unshift(s):u.push(s):this.defaultLoader&&(r?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),a.default.createElement(o,c,u)}}]),t}(i.Component);l.propTypes={children:r.default.node.isRequired,element:r.default.node,hasMore:r.default.bool,initialLoad:r.default.bool,isReverse:r.default.bool,loader:r.default.node,loadMore:r.default.func.isRequired,pageStart:r.default.number,ref:r.default.func,getScrollParent:r.default.func,threshold:r.default.number,useCapture:r.default.bool,useWindow:r.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+d57LKGhCQ1ZURBCoVL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