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

1 line
227 KiB

This file contains invisible Unicode characters!

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

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

(self.webpackChunk=self.webpackChunk||[]).push([[6788,13488,4977,69932],{680:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(5891),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=n(22589),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},60186:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(5891),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=n(22589),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},45532:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(5891),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},a=n(22589),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},o=null,i=!1,r=!1,a=null,s=!1,l=null,c=null,u=0;u<arguments.length;u++){var d=arguments[u];if(null!==d)switch(_typeof(d)){case"number":t=d.toFixed(1);break;case"string":d.match(new RegExp("^[0-9]\\.[0-9]+$"))?t=d:a=d;break;case"object":void 0!==d.is3D?o=d:n=d;break;case"boolean":i=d,r=!0}}null===o&&(o={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},void 0===n.material_id||r||(i=!0)),null!==a&&void 0===n.id&&(n.id=a);var p="",m=!1,h=null,f=null,g=null,v=!1,x=null,w=null,y=null;void 0!==n.height&&(n.height=Math.round(n.height)),void 0!==n.width&&(n.width=Math.round(n.width));var b=function(e){return parseFloat(e)>4?parseFloat(e):5};function k(){try{return window.self!==window.top}catch(e){return!0}}function j(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,D(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(l=e,I(e,t))},e.getHTML5CodebaseVersion=function(){return f},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var o,i="auto",r=n.id,a=!1,l=0;l<arguments.length;l++){var c=arguments[l];"string"==typeof c?(c=c.toLowerCase()).match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?i=c:r=arguments[l]:"boolean"==typeof c?a=c:c instanceof HTMLElement&&(o=c)}function u(){if(s){i=M(i);var l=o||document.getElementById(r);if(l)if(e.removeExistingApplet(l,!1),void 0===n.width&&l.clientWidth&&(n.width=l.clientWidth),void 0===n.height&&l.clientHeight&&(n.height=l.clientHeight),n.width&&n.height||"html5"!==i||(delete n.width,delete n.height),h=i,"screenshot"===i)L(l,n);else{var c=!1;n.hasOwnProperty("playButton")&&n.playButton||n.hasOwnProperty("clickToLoad")&&n.clickToLoad?c=!0:n.hasOwnProperty("playButtonAutoDecide")&&n.playButtonAutoDecide&&(c=(!k()||t())&&j()),c?(h="screenshot",N(l,n,a,i)):A(l,n,a)}else console.log("possibly bug on ajax loading? ")}else setTimeout(u,200)}u()},e.getViews=function(){return o},e.isJavaInstalled=function(){return!1};var _=function(t){var i=function(){n.onError&&n.onError(),O("Error: Fetching material (id "+n.material_id+") failed.",n)},r=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",a="/materials/"+n.material_id+"?scope=basic";S("https://"+r+"/api/proxy.php?path="+encodeURIComponent(a),(function(r){var a=JSON.parse(r),s=a.elements?a.elements.filter((function(e){return"G"==e.type||"E"==e.type}))[0]:a;if(s&&s.url){n.fileName=s.url,C(s.settings||{}),o.is3D=!0;var l="https://www.geogebra.org/images/";e.setPreviewImage(x||s.previewUrl,l+"GeoGebra_loading.png",l+"applet_play.png"),t()}else i()}),i)};function C(e){["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach((function(t){e[t]=!!e[t]})),["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"].forEach((function(t){void 0===n[t]&&void 0!==e[t]&&(n[t]=e[t])})),void 0===n.showToolBarHelp&&(n.showToolBarHelp=n.showToolBar)}function S(e,t,n){var o=new XMLHttpRequest;o.open("GET",e),o.onload=function(){t(o.responseText)},o.onerror=n,o.send()}e.isHTML5Installed=function(){return!0},e.getLoadedAppletType=function(){return h},e.setPreviewImage=function(e,t,n){x=e,w=t,n},e.removeExistingApplet=function(e,t){var o;"string"==typeof e&&(e=document.getElementById(e)),h=null;var i=null;for(o=0;o<e.childNodes.length;o++){var r=e.childNodes[o],a=r.className;"applet_screenshot"===a?t?(r.style.display="block",h="screenshot"):r.style.display="none":"applet_scaler prerender"!==a&&(e.removeChild(r),i=a&&-1!=a.indexOf("appletParameters")?r.id:null,o--)}var s=void 0!==n.id?n.id:i,l=window[s];l&&"function"==typeof l.getBase64&&(l.remove(),window[s]=null)},e.refreshHitPoints=function(){if(b(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var T=function(e){return e&&"false"!==e},A=function(t,n,o){b(f)<=4.2&&(o=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==f||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,s=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(b(f)<=4.4)T(n.showToolBar)&&(n.height-=7),T(n.showAlgebraInput)&&(n.height-=37),n.width<605&&T(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(T(n.showToolBar)||T(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=T(n.showMenuBar)?245:155),a<u&&(n.width=u,a=u)}for(var d in r.style.border="none",r.style.display="inline-block",n)n.hasOwnProperty(d)&&"appletOnLoad"!==d&&r.setAttribute("data-param-"+d,n[d]);y&&r.setAttribute("data-param-fontscssurl",y),e.resize=function(){GGBAppletUtils.responsiveResize(t,n)},window.addEventListener("resize",(function(t){e.resize()}));var m="function"==typeof n.appletOnLoad?n.appletOnLoad:function(){};if(o||void 0===n.width){var h=document.createElement("div");h.className="applet_scaler",h.style.position="relative",h.style.display="block",h.appendChild(r),t.appendChild(h),n.appletOnLoad=function(t){e.resize(),m(t)}}else{n.hasOwnProperty("showSplash")||r.setAttribute("data-param-showSplash","false");var x=t.querySelector(".applet_scaler.prerender"),w=null!==x;if(w)k=x.querySelector(".ggb_preview");else{var k=B(a,s,n.borderColor,!1);(x=document.createElement("div")).className="applet_scaler",x.style.position="relative",x.style.display="block",x.style.width=a+"px",x.style.height=s+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(x,"66%"),b(f)>=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(x),window.GGBT_wsf_view&&$(window).trigger("resize"),m(e)},w||x.appendChild(k)):r.appendChild(k),x.appendChild(r),w||t.appendChild(x),setTimeout((function(){e.resize()}),1)}function j(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),O("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function _(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){j(e.article,e.params)})),html5AppletsToProcess=null)},b(f)<5&&(e.className+=" geogebraweb")):j(e,t)}if(i){scriptLoadStarted=!0;for(var C=0;C<r.childNodes.length;C++){"TABLE"===r.childNodes[C].tagName&&(r.removeChild(r.childNodes[C]),C--)}if(null!==ggbHTML5LoadedScript){var S=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=S&&S.parentNode.removeChild(S)}var A=document.createElement("script"),L=function(){_(r,n)};A.src=p+g,ggbHTML5LoadedCodebaseIsWebSimple=v,ggbHTML5LoadedCodebaseVersion=f,ggbHTML5LoadedScript=A.src,O("GeoGebra HTML5 codebase loaded: '"+p+"'.",n),c||l&&"5.0"!=l?p.requirejs?__webpack_require__.e(51217).then(function(){var e=[__webpack_require__(51217)];L.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(A.onload=L,t.appendChild(A)):(v?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),L())}else _(r,n);n.height=s,n.width=a},L=function(t,n,o){var i=B(n.width,n.height,n.borderColor,o),r=document.createElement("div");r.style.position="relative",r.style.display="block",r.style.width=n.width+"px",r.style.height=n.height+"px",r.className="applet_screenshot applet_scaler"+(o?" applet_screenshot_play":""),r.appendChild(i);var a=GGBAppletUtils.getScale(n,t,o);o?(t.appendChild(Z()),window.GGBT_wsf_view||(t.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(r,"66%"),t.appendChild(r),1===a||isNaN(a)||(GGBAppletUtils.scaleElement(r,a),r.style.width=n.width+"px",r.style.height=n.height+"px",r.parentNode.style.width=n.width*a+"px",r.parentNode.style.height=n.height*a+"px"),e.resize=function(){P(t,i,r,o)},window.addEventListener("resize",(function(t){e.resize()})),e.resize()};function P(e,t,o,i){if(e.contains(t)){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if("fullscreencontent"!==e.id)return;window.GGBT_wsf_view.setCloseBtnPosition(e)}var r=GGBAppletUtils.getScale(n,e,i);null!==o.parentNode&&(isNaN(r)||1===r?(GGBAppletUtils.scaleElement(o,1),o.parentNode.style.width=n.width+"px",o.parentNode.style.height=n.height+"px"):(GGBAppletUtils.scaleElement(o,r),o.parentNode.style.width=n.width*r+"px",o.parentNode.style.height=n.height*r+"px")),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(e),"object"===_typeof(window.GGBT_ws_header_footer)&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}e.onExitFullscreen=function(e,t){t.appendChild(e)};var N=function(e,t,n,o){L(e,t,!0);for(var i=function(){var n=[];for(a=0;a<e.childNodes.length;a++)n.push(e.childNodes[a]);if(window.GGBT_wsf_view){var i=window.GGBT_wsf_view.renderFullScreen(e,t.id),r=document.getElementById("fullscreencontainer"),s=jQuery(e).find(".fullscreencontent");s.length>0?(i.remove(),s.attr("id","fullscreencontent").show(),jQuery(r).append(s),window.dispatchEvent(new Event("resize"))):A(i,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=o,A(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;a<n.length;a++)e.removeChild(n[a])},r=e.getElementsByClassName("ggb_preview_play"),a=0;a<r.length;a++)r[a].addEventListener("click",i,!1),r[a].addEventListener("ontouchstart",i,!1);"function"==typeof window.ggbAppletPlayerOnload&&window.ggbAppletPlayerOnload(e),j()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Z=function(){var e=document.createElement("div");if(e.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var t='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',n=document.createElement("style");n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t)),document.getElementsByTagName("head")[0].appendChild(n)}return e},B=function(e,t,n,o){var i=document.createElement("div");i.className="ggb_preview",i.style.position="absolute",i.style.zIndex="90",i.style.width=e-2+"px",i.style.height=t-2+"px",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.backgroundColor="white";var r="lightgrey";void 0!==n&&(r="none"===n?"transparent":n),i.style.border="1px solid "+r;var a,s,l,c=document.createElement("img");if((c.style.position="relative",c.style.zIndex="1000",c.style.top="-1px",c.style.left="-1px",null!==x&&c.setAttribute("src",x),c.style.opacity=.7,null!==w)&&!o){(a=document.createElement("img")).style.position="absolute",a.style.zIndex="1001",a.style.opacity=1,c.style.opacity=.3,(s=360)>e/4*3&&(s=e/4*3),l=s/5.8,a.setAttribute("src",w),a.setAttribute("width",s),a.setAttribute("height",l);var u=(e-s)/2,d=(t-l)/2;a.style.left=u+"px",a.style.top=d+"px",i.appendChild(a)}return i.appendChild(c),i},M=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},E=["web","webSimple","web3d","tablet","tablet3d","phone"],I=function(e,t){if(f=e,t)D(f,!0);else{var r,a,s=!i;if(s){var l=b(f);!isNaN(l)&&l<4.4&&(s=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=f.indexOf("//");for(var u in a=c>0?f:0===c?r+f:"https://www.geogebra.org/apps/5.2.814.0/",E)if(f.slice(-1*E[u].length)===E[u]||f.slice(-1*(E[u].length+1))===E[u]+"/")return void D(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||o.is3D||o.AV||o.SV||o.CV||o.EV2||o.CP||o.PC||o.DA||o.FI||o.PV||T(n.showToolBar)||T(n.showMenuBar)||T(n.showAlgebraInput)||T(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",D(a,!1)}},D=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),m=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?E.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(f=n[n.length-3]).substr(0,4)?f=f.substr(4,1)+"."+f.substr(5,1):"war"!==f.substr(0,3)&&"beta"!==f.substr(0,4)||(f="5.0");var o=parseFloat(f);NaN!==o&&o<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+o+" is deprecated. Using version latest instead."),I("5.0",t))}},O=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),I(e,!1),null!==c&&D(c,m),s=!0}return void 0!==n.material_id?_(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,o,i){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==o&&o,s=null!=e.noScaleMargin&&e.noScaleMargin,l=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,o,i,r){var a=null;if(null!=r&&""!=r)for(var s=e.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+r+" ")>-1){a=s;break}s=s.parentNode}var l=0,c=0,u=0,d=0,p=0,m=0,h=0;if(a)l=a.offsetWidth,c=Math.max(o?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=l):(l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var f=e.getBoundingClientRect();f.left>0&&f.left<=l&&(void 0===i||!i)&&("rtl"===document.dir?(p=l-f.width-f.left,m=u<=480?10:30):(m=f.left,p=u<=480?10:30),d=m+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d<l?l=t:l-=d,"object"!==_typeof(window.GGBT_wsf_view)||!window.GGBT_wsf_view.isFullscreen()||void 0!==n&&n||(c-=h)),{width:l,height:c}}(t,e.width,n,l,a&&window.GGBT_wsf_view||s,i),u=parseInt(c.width),d=e.width,p=e.height;if(void 0===d){var m=t.querySelector(".appletParameters");m&&(d=m.offsetWidth,p=m.offsetHeight)}var h=u/d,f=a?1:c.height/p;return void 0===n||n||(h=Math.min(1,h),f=Math.min(1,f)),Math.min(h,f)}function o(e,t,o){var i,r=1,a=!1;return e.hasOwnProperty("allowUpscale")&&(a=e.allowUpscale),e.hasOwnProperty("scale")&&(r=parseFloat(e.scale),(isNaN(r)||null===r||0===r)&&(r=1),r>1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(i=n(e,t,a,o,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=e.getBoundingClientRect(),i=(t-o.width)/2,r=(n-o.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=i+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var s=o(r,n);e()&&a.setAttribute("data-param-scale",s);for(var l=null,c=0;c<n.childNodes.length;c++)if(void 0!==n.childNodes[c].className&&n.childNodes[c].className.match(/^applet_scaler/)){l=n.childNodes[c];break}if(null!==l&&null!==l.querySelector(".noscale"))return;var u=void 0!==r.id?r.id:"ggbApplet",d=window[u];null!=d&&d.recalculateEnvironments||null===l||l.className.match(/fullscreen/)||(l.parentNode.style.transform="",isNaN(s)||1===s?(t(l,1),l.parentNode.style.width=r.width+"px",l.parentNode.style.height=r.height+"px"):(l.parentNode.style.width=r.width*s+"px",l.parentNode.style.height=r.height*s+"px",t(l,s))),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&i(n),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(a).parents(".content-added-content"))}},isFlexibleWorksheetEditor:e,positionCenter:i,getScale:o,scaleElement:t}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var e=n.location.search;return-1!=e.indexOf(J)||-1!=e.indexOf(K)}function q(e,t){}q(H,I),webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{},t;function u(){return v(),t}function v(){if(!t){var e=o.createElement(Q);if(e.id=L,e.style.cssText=R+S,e.tabIndex=-1,o.body.appendChild(e),t=e.contentWindow.document,-1==navigator.userAgent.indexOf(T)){t.open();var n=document.compatMode==U?V:W;t.write(n+X),t.close()}}}function w(e){q(cb,eb),function(e){function t(){return _typeof(o.readyState)==Y?_typeof(o.body)!=Y&&null!=o.body:/loaded|complete/.test(o.readyState)}var n=t();if(n)e();else{o.addEventListener&&o.addEventListener(Z,r,!1);var i=setInterval((function(){r()}),$)}function r(){if(!n){if(!t())return;n=!0,e(),o.removeEventListener&&o.removeEventListener(Z,r,!1),i&&clearInterval(i)}}}((function(){var t,n,o,i;t=e,n=u(),o=n.body,(i=n.createElement(_)).language=ab,i.crossOrigin=W,i.src=t,webModule.__errFn&&(i.onerror=function(){webModule.__errFn(L,new Error(bb+t))}),o.appendChild(i),q(cb,db)}))}function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var o=e.lastIndexOf(tb,Math.min(n,t));return o>=O?e.substring(O,o+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;n<t.length;++n)if(-1!=t[n].src.indexOf(xb))return e(t[n].src);return W}()),n==W&&(n=function(){var e=o.getElementsByTagName(yb);return e.length>O?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,o=[],i=[];function a(e){var t=i[e](),n=o[e];if(t in n)return t;var a=[];for(var s in n)a[n[s]]=s;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in o[e]},webModule.__getPropMap=function(){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(e=Cb).indexOf(Db);-1!=s&&(t=parseInt(e.substring(s+P),$),e=e.substring(O,s))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},o=e[webModule.__softPermutationId],i=O;i<o.length;i++){var r=o[i];n[r[O]]=r[P]}return n}},webModule.__startLoadingFragment=function(e){return C(e)},webModule.__installRunAsyncCode=function(e){var t=u(),n=t.body,o=t.createElement(_);o.language=ab,o.text=e,n.appendChild(o),n.removeChild(o)},A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},"function"!=typeof window.web3d&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),"function"!=typeof window.webSimple&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet}else console.warn("deployggb.js was loaded twice")})()},64294:function(e,t,n){"use strict";function o(e){var t=!0;if(e.length>0){for(var n=0;n<e.length;n++)if(0==e[n].compile_success||!e[n].compile_success){t=!1;break}}else t=!1;return t}function i(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],o=0;o<e.length;o++){var i=e[o],r=t?"".concat(t,"/").concat(i.name):"".concat(i.name);n.push({title:i.name,type:i.type,isLeaf:"tree"!==i.type,key:r})}return n}function r(e,t,n){for(var o=0;o<e.length;o++){var i=e[o];if(i.key===t){i.children=n;break}i.children&&r(i.children,t,n)}return e}function a(e,t,n){var o;return function(){var i=this,r=arguments,a=function(){o=null,n||e.apply(i,r)},s=n&&!o;clearTimeout(o),o=setTimeout(a,t),s&&e.apply(i,r)}}n.d(t,{Ax:function(){return r},Ds:function(){return a},KI:function(){return s},SI:function(){return i},f1:function(){return o}});var s=n(92723).Z.API_SERVER},97978:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});n(7557),n(41498);var o=n(82100),i=n.n(o),r=n(29186),a=n.n(r),s=n(13720),l=n.n(s),c=n(80619),u=n.n(c),d=n(47074),p=n.n(d),m=n(85573),h=n.n(m),f=n(59301),g=n(8591),v=n(92832),x="codeBox___WpkVl",w=n(92310),y=n.n(w),b=n(37712),k=function(e){u()(n,e);var t=p()(n);function n(e){var o;return i()(this,n),o=t.call(this,e),h()(l()(o),"canvas",void 0),h()(l()(o),"randomNum",(function(e,t){return Math.floor(Math.random()*(t-e)+e)})),h()(l()(o),"drawPic",(function(){o.randomCode()})),h()(l()(o),"reloadPic",(function(){o.drawPic()})),h()(l()(o),"changeCode",(function(e){console.log(e.target.value,222),o.setState({value:e.target.value,showError:!1})})),h()(l()(o),"onVerify",(function(){var e;return""!==o.state.value.toLowerCase()&&o.state.value.toLowerCase()!==o.state.code.toLowerCase()?(e=!0,g.ZP.error("请输入正确的验证码"),o.reloadPic()):""===o.state.value.toLowerCase()?(e=!0,g.ZP.error("请输入验证码")):o.state.value.toLowerCase()===o.state.code.toLowerCase()&&(e=!1),o.setState({showError:e}),e})),o.canvas=f.createRef(),o.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1},o}return a()(n,[{key:"componentDidMount",value:function(){this.drawPic()}},{key:"randomColor",value:function(e,t){var n=this.randomNum(e,t),o=this.randomNum(e,t),i=this.randomNum(e,t);return"rgb(".concat(n,", ").concat(o,", ").concat(i,")")}},{key:"drawText",value:function(e,t,n){e.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);var o=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);e.font=o+"px SimHei";var i=(this.state.contentWidth-40)/(this.state.code.length-1),r=10;n>0&&(r=10+n*i);var a=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);o>40&&(a=40);var s=this.randomNum(-10,10);e.translate(r,a),e.rotate(s*Math.PI/180),e.fillText(t,0,0),e.rotate(-s*Math.PI/180),e.translate(-r,-a)}},{key:"drawLine",value:function(e){for(var t=0;t<1;t++)e.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),e.beginPath(),e.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.stroke()}},{key:"drawDot",value:function(e){for(var t=0;t<100;t++)e.fillStyle=this.randomColor(0,255),e.beginPath(),e.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),e.fill()}},{key:"randomCode",value:function(){for(var e=this,t="",n=0;n<this.state.codeLength;n++){t+="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890"[Math.floor(57*Math.random())]}this.setState({code:t},(function(){var t=e.canvas.current.getContext("2d");t.textBaseline="bottom",t.fillStyle=e.randomColor(e.state.backgroundColorMin,e.state.backgroundColorMax),t.fillRect(0,0,e.state.contentWidth,e.state.contentHeight);for(var n=0;n<e.state.code.length;n++)e.drawText(t,e.state.code[n],n);e.drawLine(t),e.drawDot(t)}))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.width,o=void 0===n?300:n;return(0,b.jsxs)("div",{className:y()(x,t),style:{width:o},children:[(0,b.jsx)("aside",{children:(0,b.jsx)(v.Z,{value:this.state.value,onChange:this.changeCode,placeholder:"请输入图片中的验证码"})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),(0,b.jsx)("div",{className:"current",onClick:this.reloadPic,children:"看不清?换一张"})]})]})}}]),n}(f.Component),j=k},3655:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),u=n(78241),d=n(8591),p=n(43418),m=n(57930),h=n(92832),f=n(61998),g=n(95237),v=n(43604),x=n(61186),w=n.n(x),y=n(21082),b=n(5296),k={tips:"tips___e8J4O",homeworkType:"homeworkType___ZjN2X",antdTable:"antdTable___amDdp",modalWrapper:"modalWrapper___XPojI"},j=n(54602),_=n(63363),C=n(37712),S=(0,b.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,classroomList:e.classroomList}}))((function(e){var t=e.dispatch,n=e.courseEndTime,o=(e.classroomList,e.successCallback),r=void 0===o?function(){}:o,s=e.visible,x=e.homeworkIds,b=e.courseId,S=e.isBatch,T=(e.shixunHomeworks,u.Z.useForm()),A=l()(T,1)[0],L=(0,c.useState)(!1),P=l()(L,2),N=P[0],Z=P[1],B=(0,c.useState)(!1),M=l()(B,2),E=M[0],I=M[1],D=(0,c.useState)(!1),O=l()(D,2),R=O[0],G=O[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),re=ie[0],ae=ie[1],se=(0,c.useState)([]),le=l()(se,2),ce=le[0],ue=le[1],de=(0,c.useState)([]),pe=l()(de,2),me=pe[0],he=pe[1],fe=(0,c.useState)([]),ge=l()(fe,2),ve=ge[0],xe=ge[1],we=(0,c.useState)([]),ye=l()(we,2),be=ye[0],ke=ye[1];(0,c.useEffect)((function(){s?je():Ce()}),[s]);var je=function(){var e=a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(!0),e.next=3,(0,j.oR)(x[0],{course_id:b});case 3:t=e.sent,G(t.no_group),S?(he(t.all_course_groups),xe(t.all_course_groups)):(ne(t.late_course_groups),ae(t.late_course_groups),W(t.submit_course_groups),K(t.submit_course_groups)),Z(!1),A.setFieldsValue({end_time:w()()});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_e=function(){var e=a()(i()().mark((function e(){var n,o,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=A.getFieldsValue(),o=w()(n.end_time).format("YYYY-MM-DD HH:mm"),!(S?0===be.length:0===Q.length&&0===ce.length)||R){e.next=6;break}return d.ZP.warning("请选择需要操作的班级"),e.abrupt("return");case 6:return I(!0),e.next=9,(0,j.Mc)(b,{no_group:R,homework_ids:x,group_ids:S?be:Q,end_time:o,late_group_ids:S?be:ce});case 9:a=e.sent,I(!1),0===a.status&&(Ce(),d.ZP.success("操作成功"),r(),t({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}));case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ce=function(){X([]),ue([]),K([]),ae([])};return(0,C.jsxs)(p.Z,{centered:!0,title:"立即截止",className:k.modalWrapper,width:S||R?520:760,open:s,confirmLoading:E,destroyOnClose:!0,okText:"截止",cancelText:"取消",onOk:function(){return _e()},onCancel:function(){Ce(),t({type:"classroomList/setActionTabs",payload:{}})},children:[(0,C.jsxs)("div",{className:k.tips,children:[(0,C.jsx)("div",{children:"1、截止后学生不能再提交作业。"}),(0,C.jsx)("div",{children:"2、本操作只对“提交中”、“补交中”的作业有效。"})]}),(0,C.jsx)(u.Z,{form:A,layout:"vertical",children:(0,C.jsx)(u.Z.Item,{name:"end_time",label:"截止时间",children:(0,C.jsx)(m.default,{style:{width:"100%"},disabledDate:function(e){return(0,_.Q8)(e,n)},disabledTime:function(e){return(0,_.d0)(e)},placeholder:"请选择结束时间",showTime:{format:"HH:mm",defaultValue:w()((0,y.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),!R&&(0,C.jsx)(C.Fragment,{children:S?(0,C.jsxs)("div",{children:[(0,C.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){xe(me.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:k.antdTable,rowSelection:{type:"checkbox",onChange:function(e){ke(e)}},rowKey:"id",pagination:!1,dataSource:ve,loading:N,columns:[{title:"班级",dataIndex:"name"}]})]}):(0,C.jsxs)(g.Z,{gutter:24,children:[(0,C.jsxs)(v.Z,{span:14,children:[(0,C.jsx)("div",{className:k.homeworkType,children:"作业截止"}),(0,C.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){K(F.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,C.jsx)("div",{className:k.tableWrapper,children:(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:k.antdTable,rowSelection:{type:"checkbox",onChange:function(e){X(e)}},rowKey:"id",pagination:!1,dataSource:U,loading:N,columns:[{title:"班级",dataIndex:"name",ellipsis:!0},{title:"发布时间",dataIndex:"publish_time"},{title:"截止时间",dataIndex:"end_time"}]})})]}),(0,C.jsxs)(v.Z,{flex:10,style:{maxWidth:"280px"},children:[(0,C.jsx)("div",{className:k.homeworkType,children:"补交截止"}),(0,C.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){ae(te.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,C.jsx)("div",{className:k.tableWrapper,children:(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:k.antdTable,rowSelection:{type:"checkbox",onChange:function(e){ue(e)}},rowKey:"id",pagination:!1,loading:N,dataSource:re,columns:[{title:"班级",dataIndex:"name",ellipsis:!0,width:120},{title:"截止时间",dataIndex:"late_time"}]})})]})]})})]})}))},36709:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",m=n(92310),h=n.n(m),f=n(71418),g=n(2859),v=n(18030),x=n(21082),w=n(37712),y=function(e){var t=e.data,n=e.className,o=e.fullWidth,r=e.style,s=void 0===r?{}:r,m=e.onClose,y=e.onOk,b=e.showFullTools,k=e.noAssociationId,j=(0,c.useRef)(null),_=(0,c.useRef)(null),C=(0,c.useRef)(null),S=(0,c.useRef)(null),T=(0,c.useState)(!1),A=l()(T,2),L=A[0],P=A[1],N=(0,c.useState)("正在加载中"),Z=l()(N,2),B=Z[0],M=Z[1];(0,c.useEffect)((function(){C.current||(C.current=document.createElement("style"),document.head.appendChild(C.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),C.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&E()):(document.body.removeAttribute("data-custom"),C.current&&(document.head.removeChild(C.current),C.current=null))}),[null==t?void 0:t.visible]);var E=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P(!0),M("正在加载中"),e.next=4,(0,x.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,j.current.src="",j.current.src=n,j.current.onload=function(){D()},P(!1),M("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=a()(i()().mark((function e(n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P(!0),M("正在保存中"),e.next=4,(0,v.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(o=e.sent)||!o.id||k){e.next=12;break}return e.next=8,(0,v.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==o?void 0:o.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=o&&o.id&&y(o);case 13:P(!1),M("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),D=function(){_.current=new g.hP(j.current),_.current.targetRoot=S.current,_.current.addEventListener("render",I),_.current.addEventListener("beforeclose",m),b&&(_.current.availableMarkerTypes=_.current.ALL_MARKER_TYPES,_.current.uiStyleSettings.redoButtonVisible=!0,_.current.uiStyleSettings.notesButtonVisible=!0,_.current.uiStyleSettings.zoomButtonVisible=!0,_.current.uiStyleSettings.zoomOutButtonVisible=!0,_.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=_.current.uiStyleSettings,_.current.show(),null!=t&&t.snapshotData&&_.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,w.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,w.jsx)(f.Z,{spinning:L,tip:B,style:{position:"absolute"},children:(0,w.jsx)("div",{ref:S,className:h()(u,n,o?p:""),style:s,children:(0,w.jsx)("img",{className:d,ref:j})})})})}},98382:function(e,t,n){"use strict";n.d(t,{z:function(){return S},Z:function(){return T}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(37205),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(59028),f=n(8591),g=n(43418),v=n(3113),x=n(92723),w=n(90341),y=n(37712),b="  ";function k(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 j=n(60186),_=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var C=h.Z.Dragger;function S(e){var t=[];return e&&e.length>0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+b+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var T=function(e){var t=e.value,n=e.onChange,o=e.action,r=e.data,s=e.className,c=e.maxSize,d=void 0===c?150:c,S=e.title,T=void 0===S?"上传附件":S,A=e.showRemoveModal,L=void 0!==A&&A,P=e.accept,N=void 0===P?"":P,Z=e.additionalText,B=e.isDragger,M=e.number,E=void 0===M?1e3:M,I=e.aloneClear,D=void 0!==I&&I,O=e.realTimeRemove,R=void 0===O||O,G=e.uploadText,H=(0,m.useState)(!1),z=p()(H,2),F=z[0],W=z[1],Y=(0,m.useState)(t||[]),V=p()(Y,2),U=V[0],K=V[1],J=(0,m.useState)(1),q=p()(J,2),Q=q[0],X=q[1];(0,m.useEffect)((function(){t&&(1===Q&&K(u()(t)),X(2),E===(null==t?void 0:t.length)&&W(!0))}),[t]);var $,ee=function(){setTimeout((function(){U.pop(),K(u()(U))}),500)},te={multiple:!0,disabled:F,accept:N,withCredentials:!0,fileList:U,beforeUpload:function(e,t){var n=e.size/1024/1024;return U.concat(t).length>E?(U.pop(),K(u()(U)),f.ZP.error("最多只能上传".concat(E,"个文件")),D?Promise.reject():(ee(),!1)):n<d||(f.ZP.error("该文件无法上传。超过文件大小限制(".concat(d,"MB).")),D?Promise.reject():(ee(),!1))},data:r,action:o||"".concat(x.Z.API_SERVER,"/api/attachments.json"),onChange:function(e){var t,o;(U="removed"===e.file.status?e.fileList:(0,_.uniqBy)([].concat(u()(e.fileList),u()(U)),"uid"),"done"!==e.file.status||-1!==(null===(t=e.file)||void 0===t||null===(t=t.response)||void 0===t?void 0:t.status))?(U.length>=E?W(!0):W(!1),K(u()(U)),U=U.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(b)&&(e.name="".concat(e.name).concat(b).concat(k(e.size))),l()({},e)})),console.log("info:",e,U),n(U)):f.ZP.error(null===(o=e.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message)},onRemove:($=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,w.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!L){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var o;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(o=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,f.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return $.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(s||""),children:[B&&(0,y.jsxs)(C,l()(l()({},te),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(j.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),Z]})),!B&&(0,y.jsxs)(h.Z,l()(l()({},te),{},{children:[(0,y.jsxs)(v.ZP,{disabled:F,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),T]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:G||"(单个文件最大".concat(d,"MB)")})]}))]})}},65463:function(e,t,n){"use strict";n(59301);var o=n(6848),i=n(37712);t.Z=function(e){var t=e.value,n=e.visible,r=void 0===n||n,a=e.children;return(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(o.Z,{placement:"topLeft",title:{"未发布":"作业尚未发布","未开始":"作业已发布,尚未到达开始作业时间","提交中":"作业进行中,所有考生可提交作业","补交中":"作业进行中,所有学生可补交作业","进行中":"作业进行中,部分班级正在作业提交中/补交中","已截止":"到达作业截止时间,作业已结束","已结束":"课堂已结束"}[t],children:(0,i.jsx)("span",{children:a})}):a})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),s=n(59301),l=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),m=(n(80443),n(90630),n(37712)),h=l.default.Option,f={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,o=e.mode,r=e.options,l=void 0===r?{}:r,c=(0,s.useRef)(),u=(0,s.useState)(),d=a()(u,2),h=d[0],f=d[1];return(0,s.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,s.useEffect)((function(){h&&h.setOption("mode",o)}),[h,o]),(0,s.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,s.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,i()({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));f(e)}}),[c.current,h]),(0,m.jsx)("div",{className:"my-codemirror-container",children:(0,m.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,o=(0,s.useState)("python"),r=a()(o,2),d=r[0],p=r[1];return(0,m.jsxs)(c.Z,i()(i()({},f),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,m.jsx)(l.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,m.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,m.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,m.jsx)(v,{mode:d})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return be}});var o=n(91232),i=n.n(o),r=n(79800),a=n.n(r),s=n(85573),l=n.n(s),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),m=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),f=function(e){var t=e.value,n=void 0===t?"":t,o=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})})},g=n(82242),v=n.n(g),x=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function w(e){var t=e.onActionCallback,n=e.title,o=e.icon,i=e.actionName,r=e.className,a=void 0===r?"":r,s=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(i)},children:[(0,h.jsx)("i",{className:"".concat(o)}),s]})}var y=function(e){var t=e.watch,n=e.showNullButton,o=e.showNullProgramButton,i=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,s=e.hidetoolBar,l=e.extraUse,c=[].concat(x,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(w,v()(v()({},e),{},{onActionCallback:i})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,h.jsx)("li",{children:l}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(w,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},b=n(24808),k=n(78241),j=n(92832),_=n(3113),C={labelCol:{span:4},wrapperCol:{span:20}},S=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(k.Z,v()(v()({},C),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(k.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(j.Z,{})}),(0,h.jsx)(k.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(j.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(_.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(_.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},T=n(73145),A=n(28486),L=n(95237),P=n(36709),N=function(e){var t=e.callback,n=e.onCancel,o=document.createElement("canvas"),i=o.getContext("2d");o.width=1e3,o.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,o.width,o.height);var r=o.toDataURL("image/png");return(0,h.jsx)(L.Z,{style:{height:"100vh"},children:(0,h.jsx)(P.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},Z=n(7557),B=n.n(Z),M=n(41498),E=n.n(M),I=n(37205),D=n.n(I),O=n(12378);function R(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(R,go.CommandHandler),R.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},R.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},R.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},R.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},R.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},R.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},R.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},R.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o<n.length-1;o++){var i=n[o],r=i.actualBounds.y+i.actualBounds.height+e;n[o+1].move(new go.Point(i.actualBounds.x,r))}t.commitTransaction("align Column")},R.prototype.alignRow=function(e){void 0===e&&(e=0),e=parseFloat(e);var t=this.diagram;t.startTransaction("align Row");var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o<n.length-1;o++){var i=n[o],r=i.actualBounds.x+i.actualBounds.width+e;n[o+1].move(new go.Point(r,i.actualBounds.y))}t.commitTransaction("align Row")},R.prototype.canRotate=function(e){var t=this.diagram;return null!==t&&!t.isReadOnly&&!t.isModelReadOnly&&!(t.selection.count<1)},R.prototype.rotate=function(e){var t;void 0===e&&(e=90),(t=this.diagram).startTransaction("rotate "+e.toString()),(t=this.diagram).selection.each((function(t){t instanceof go.Link||t instanceof go.Group||(t.angle+=e)})),t.commitTransaction("rotate "+e.toString())},R.prototype.pullToFront=function(){var e=this.diagram;e.startTransaction("pullToFront");var t=new go.Map;e.selection.each((function(e){t.set(e.layer,0)})),t.iteratorKeys.each((function(e){var n=0;e.parts.each((function(e){if(!e.isSelected){var t=e.zOrder;isNaN(t)?e.zOrder=0:n=Math.max(n,t)}})),t.set(e,n)})),e.selection.each((function(e){R._assignZOrder(e,t.get(e.layer)+1)})),e.commitTransaction("pullToFront")},R.prototype.pushToBack=function(){var e=this.diagram;e.startTransaction("pushToBack");var t=new go.Map;e.selection.each((function(e){t.set(e.layer,0)})),t.iteratorKeys.each((function(e){var n=0;e.parts.each((function(e){if(!e.isSelected){var t=e.zOrder;isNaN(t)?e.zOrder=0:n=Math.min(n,t)}})),t.set(e,n)})),e.selection.each((function(e){R._assignZOrder(e,t.get(e.layer)-1-R._findGroupDepth(e))})),e.commitTransaction("pushToBack")},R._assignZOrder=function(e,t,n){void 0===n&&(n=e),e.layer===n.layer&&(e.zOrder=t),e instanceof go.Group&&e.memberParts.each((function(e){R._assignZOrder(e,t+1,n)}))},R._findGroupDepth=function(e){if(e instanceof go.Group){var t=0;return e.memberParts.each((function(e){t=Math.max(t,R._findGroupDepth(e))})),t+1}return 0},R.prototype.doKeyDown=function(){var e=this.diagram;if(null!==e){var t=e.lastInput;if("Up"===t.key||"Down"===t.key||"Left"===t.key||"Right"===t.key){var n=this.arrowKeyBehavior;if("none"===n)return;if("select"===n)return void this._arrowKeySelect();if("move"===n)return void this._arrowKeyMove();if("tree"===n)return void this._arrowKeyTree()}go.CommandHandler.prototype.doKeyDown.call(this)}},R.prototype._getAllParts=function(){var e=new Array;return this.diagram.nodes.each((function(t){e.push(t)})),this.diagram.parts.each((function(t){e.push(t)})),e},R.prototype._arrowKeyMove=function(){var e=this.diagram,t=e.lastInput,n=0,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")},R.prototype._arrowKeySelect=function(){var e=this.diagram,t=e.lastInput,n=null;"Up"===t.key?n=this._findNearestPartTowards(270):"Down"===t.key?n=this._findNearestPartTowards(90):"Left"===t.key?n=this._findNearestPartTowards(180):"Right"===t.key&&(n=this._findNearestPartTowards(0)),null!==n&&(t.shift?n.isSelected=!0:t.control||t.meta?n.isSelected=!n.isSelected:e.select(n))},R.prototype._findNearestPartTowards=function(e){var t=this.diagram.selection.first();if(null===t)return null;for(var n=t.actualBounds.center,o=this._getAllParts(),i=1/0,r=t,a=0;a<o.length;a++){var s=o[a];if(s!==t&&s.canSelect()){var l=s.actualBounds.center,c=n.directionPoint(l),u=this._angleCloseness(c,e);if(u<=45){var d=n.distanceSquaredPoint(l);(d*=1+Math.sin(u*Math.PI/180))<i&&(i=d,r=s)}}}return r},R.prototype._angleCloseness=function(e,t){return Math.min(Math.abs(t-e),Math.min(Math.abs(t+360-e),Math.abs(t-360-e)))},R.prototype._arrowKeyTree=function(){var e=this.diagram,t=e.selection.first();if(t instanceof go.Node){var n=e.lastInput;if("Right"===n.key)if(t.isTreeLeaf);else if(t.isTreeExpanded){null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i)}else e.commandHandler.canExpandTree(t)&&e.commandHandler.expandTree(t);else if("Left"===n.key){if(!t.isTreeLeaf&&t.isTreeExpanded)e.commandHandler.canCollapseTree(t)&&e.commandHandler.collapseTree(t);else null!==(r=t.findTreeParentNode())&&e.select(r)}else if("Up"===n.key){if(null!==(r=t.findTreeParentNode()))if((s=(a=this._sortTreeChildrenByY(r)).indexOf(t))>0){for(var o=a.elt(s-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(r)}else if("Down"===n.key){var i;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i);else for(;null!==t;){var r,a,s;if(null===(r=t.findTreeParentNode()))break;if((s=(a=this._sortTreeChildrenByY(r)).indexOf(t))<a.length-1){e.select(a.elt(s+1));break}t=r}}var l=e.selection.first();null!==l&&e.scrollToRect(l.actualBounds)}},R.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},R.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},R.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(R.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(R.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var G=R,H=(n(41034),n(85160)),z=n(43418),F=n(43604),W=n(18030),Y="myPaletteDiv___Xjz2I",V="maxH60___Pd4Re";window.go=O;var U=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(),s=(0,c.useRef)(!1),l=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],m=d[1],f=function(){var e=E()(B()().mark((function e(){var t,i;return B()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:i=e.sent,n({src:i.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){m(p+1)}),[]),(0,h.jsx)("div",{ref:l,className:s.current?"".concat(V," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:l.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(L.Z,{children:[(0,h.jsx)(F.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(F.Z,{onClick:function(){s.current=!s.current,m(p+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:Y,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(H.FI,{initDiagram:function(){var e=O.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",s="#d533ff",l="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",m="#d5ebff",h="#f2dfe0",f="#a5d2fa",g="#cccccc",v="#b3e6b3",x="#fcbbbd";function w(t,n){var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(o){var i=n.part.adornedPart,r=(new O.Point).setRectSpot(i.actualBounds,t);r.subtract(i.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(i.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=o.copyNodeData(i.data);o.setGroupKeyForNodeData(a,o.getGroupKeyForNodeData(i.data)),o.addNodeData(a);var s={from:i.key,to:o.getKeyForNodeData(a)};o.addLinkData(s);var l=e.diagram.findNodeForData(a);l.location=r,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(O.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(O.Spot.Top)||t.equals(O.Spot.Bottom)?25:18,height:t.equals(O.Spot.Top)||t.equals(O.Spot.Bottom)?18:25,fill:"orange",stroke: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(O.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function b(e,t){return function(n,o){n.handled=!0,n.diagram.model.commit((function(n){n.set(o.part.adornedPart.data,e,t)}))}}function k(t,n){return n||(n="color"),e(O.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:b(n,t),contextClick:b(n,t)})}function j(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",k(u,"fill"),k(p,"fill"),k(m,"fill"),k(h,"fill"))),e("ContextMenuButton",e(O.Panel,"Horizontal",k(g,"fill"),k(v,"fill"),k(f,"fill"),k(x,"fill")))]}function _(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",k(d),k(a),k(n),k(t))),e("ContextMenuButton",e(O.Panel,"Horizontal",k(u),k(s),k(l),k(c)))]}function C(t,n){return n||(n="thickness"),e(O.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function S(t,n){return n||(n="dash"),e(O.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function T(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",C(1),C(2),C(3),C(4))),e("ContextMenuButton",e(O.Panel,"Horizontal",S(null),S([2,4]),S([4,4])))]}function A(t,n){return n||(n="figure"),e(O.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:b(n,t),contextClick:b(n,t)})}function L(t){return e(O.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function P(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(O.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b("dir",t),contextClick:b("dir",t)})}function N(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",O.Spot.stringify(O.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(O.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function Z(t,n){var o=0,i=O.Spot.RightSide;t.equals(O.Spot.Top)?(o=270,i=O.Spot.TopSide):t.equals(O.Spot.Left)?(o=180,i=O.Spot.LeftSide):t.equals(O.Spot.Bottom)&&(o=90,i=O.Spot.BottomSide),n||(o-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",O.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(O.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:o,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return o.current=new O.Diagram(i.current,{padding:20,grid:e(O.Panel,"Grid",e(O.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(O.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(G),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),o.current.nodeTemplate=e(O.Node,"Auto",{locationSpot:O.Spot.Center,locationObjectName:"SHAPE",desiredSize:new O.Size(120,60),minSize:new O.Size(40,40),resizable:!0,resizeCellSize:new O.Size(10,10),rotatable:!0},new O.Binding("location","loc",O.Point.parse).makeTwoWay(O.Point.stringify),new O.Binding("desiredSize","size",O.Size.parse).makeTwoWay(O.Size.stringify),e(O.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:O.Spot.AllSides,toSpot:O.Spot.AllSides},new O.Binding("figure"),new O.Binding("fill"),new O.Binding("stroke","borderColor"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(O.TextBlock,{margin:1,textAlign:"center",overflow:O.TextBlock.OverflowEllipsis,editable:!0},new O.Binding("text").makeTwoWay(),new O.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(O.Panel,"Vertical",{maxSize:new O.Size(200,NaN)},e(O.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new O.Binding("text")),e(O.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new O.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(O.Adornment,"Spot",e(O.Placeholder,{padding:10}),w(O.Spot.Top,"TriangleUp"),w(O.Spot.Left,"TriangleLeft"),w(O.Spot.Right,"TriangleRight"),w(O.Spot.Bottom,"TriangleDown"),y({alignment:new O.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(O.Panel,"Horizontal",A("Rectangle"),A("RoundedRectangle"),A("Ellipse"),A("Diamond"))),e("ContextMenuButton",e(O.Panel,"Horizontal",A("Parallelogram2"),A("ManualOperation"),A("Procedure"),A("Cylinder1"))),e("ContextMenuButton",e(O.Panel,"Horizontal",A("Terminator"),A("CreateRequest"),A("Document"),A("TriangleDown"))),j(),_(),T()),o.current.groupTemplate=e(O.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:O.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new O.Binding("location","loc",O.Point.parse).makeTwoWay(O.Point.stringify),e(O.Panel,"Auto",{name:"BODY"},e(O.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:O.Spot.AllSides,toSpot:O.Spot.AllSides},new O.Binding("fill"),new O.Binding("stroke","color"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Placeholder,{background:"transparent",margin:20})),e(O.TextBlock,{alignment:O.Spot.Top,alignmentFocus:O.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new O.Binding("text"),new O.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(O.Adornment,"Spot",e(O.Panel,"Auto",e(O.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(O.Placeholder,{margin:1.5})),y({alignment:O.Spot.TopRight,alignmentFocus:O.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",j(),_(),T()),o.current.linkTemplate=e(O.Link,{layerName:"Foreground",routing:O.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new O.Binding("fromSpot","fromSpot",O.Spot.parse),new O.Binding("toSpot","toSpot",O.Spot.parse),new O.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new O.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new O.Binding("points").makeTwoWay(),e(O.Shape,{strokeWidth:2},new O.Binding("stroke","color"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Shape,{segmentIndex:0,segmentOffset:new O.Point(15,0),segmentOrientation:O.Link.OrientAlong,alignmentFocus:O.Spot.Right,figure:"circle",width:10,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return 1===e}))),e(O.Shape,{segmentIndex:-1,segmentOffset:new O.Point(-10,6),segmentOrientation:O.Link.OrientPlus90,alignmentFocus:O.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return e>=1})),new O.Binding("width","thickness",(function(e){return 7+3*e})),new O.Binding("height","thickness",(function(e){return 7+3*e})),new O.Binding("segmentOffset","thickness",(function(e){return new O.Point(-15,4+1.5*e)}))),e(O.Shape,{segmentIndex:0,segmentOffset:new O.Point(15,-6),segmentOrientation:O.Link.OrientMinus90,alignmentFocus:O.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return 2===e})),new O.Binding("width","thickness",(function(e){return 7+3*e})),new O.Binding("height","thickness",(function(e){return 7+3*e})),new O.Binding("segmentOffset","thickness",(function(e){return new O.Point(-15,4+1.5*e)}))),e(O.TextBlock,{alignmentFocus:new O.Spot(0,1,-4,0),editable:!0},new O.Binding("text").makeTwoWay(),new O.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(O.Adornment,e(O.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:L(2)},new O.Binding("pathPattern","thickness",L)),y({alignmentFocus:new O.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",_(),T(),e("ContextMenuButton",e(O.Panel,"Horizontal",P(0),P(1),P(2))),e("ContextMenuButton",e(O.Panel,"Horizontal",e(O.Panel,"Spot",N(!1),Z(O.Spot.Top,!1),Z(O.Spot.Left,!1),Z(O.Spot.Right,!1),Z(O.Spot.Bottom,!1)),e(O.Panel,"Spot",{margin:new O.Margin(0,0,0,2)},N(!0),Z(O.Spot.Top,!0),Z(O.Spot.Left,!0),Z(O.Spot.Right,!0),Z(O.Spot.Bottom,!0))))),new O.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(O.Link,{locationSpot:O.Spot.Center,selectionAdornmentTemplate:e(O.Adornment,"Link",{locationSpot:O.Spot.Center},e(O.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(O.Shape,{toArrow:"Standard",stroke:null}))},{routing:O.Link.AvoidsNodes,curve:O.Link.JumpOver,corner:5,toShortLength:4},new O.Binding("points"),e(O.Shape,{isPanelMain:!0,strokeWidth:2}),e(O.Shape,{toArrow:"Standard",stroke:null})),model:new O.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(D()(O.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(O.Node,"Auto",{locationSpot:O.Spot.Center},new O.Binding("location","location",O.Point.parse).makeTwoWay(O.Point.stringify),e(O.Shape,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new O.Binding("stroke").makeTwoWay(),new O.Binding("fill").makeTwoWay(),new O.Binding("figure")),e(O.TextBlock,{margin:new O.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new O.Size(16,16),maxSize:new O.Size(10,NaN),textAlign:"center",editable:!0},new O.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(O.Panel,"Grid",e(O.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(O.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)(_.ZP,{size:"large",onClick:f,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),J=n(94001),q=K.ZP.Group,Q={margin:"0 8px"},X=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(k.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"单元格数:"}),(0,h.jsx)("span",{style:Q,children:"行数"}),(0,h.jsx)(k.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(J.Z,{})}),(0,h.jsx)("span",{style:Q,children:"列数"}),(0,h.jsx)(k.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(J.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"对齐方式:"}),(0,h.jsx)(k.Z.Item,{name:"align",children:(0,h.jsxs)(q,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(_.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(_.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,r=e.callback,s=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],m=d[1],f=(0,c.useRef)({id:s,appName:"graphing",width:o||1e3,height:i||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){l.current=new(te())(f.current,!0),window.onload=function(){l.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){f.current.appName=p?"3D":"graphing",l.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){m(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:s}),(0,h.jsxs)(L.Z,{align:"middle",children:[(0,h.jsx)(F.Z,{flex:1,children:(0,h.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return m(e)}})}),(0,h.jsx)(F.Z,{children:(0,h.jsx)(_.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),oe=n(36761),ie=n(92723),re=n(8591),ae="link",se="upload-image",le="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",me={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},he=n(77818);var fe="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var xe=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",we=l()(l()({},xe+"-B","bold"),xe+"-I","italic"),ye=l()(l()(l()(l()(l()(l()(l()(l()({},ae,"添加链接"),ue,"添加代码块"),se,"添加图片"),ce,"添加画图"),le,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),be=function(e){var t=e.defaultValue,n=void 0===t?"":t,o=e.onChange,r=e.width,s=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,x=void 0!==v&&v,w=e.isFocus,k=void 0!==w&&w,j=e.watch,_=e.insertTemp,C=e.mode,L=void 0===C?"markdown":C,P=e.id,Z=void 0===P?"markdown-editor-id":P,B=e.showResizeBar,M=void 0!==B&&B,E=e.noStorage,I=void 0!==E&&E,D=e.showNullButton,O=void 0!==D&&D,R=e.showNullProgramButton,G=void 0!==R&&R,H=e.hidetoolBar,F=void 0!==H&&H,W=e.fullScreen,Y=void 0!==W&&W,V=e.onBlur,K=e.onCMBeforeChange,J=e.onFullScreen,q=e.className,Q=void 0===q?"":q,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,pe=void 0!==te&&te,xe=e.disabledFill,be=void 0!==xe&&xe,ke=e.placeholder,je=void 0===ke?"":ke,_e=e.values,Ce=void 0===_e?"":_e,Se=e.extraUse,Te=(0,c.useState)(null),Ae=a()(Te,2),Le=Ae[0],Pe=Ae[1],Ne=(0,c.useState)(n),Ze=a()(Ne,2),Be=Ze[0],Me=Ze[1],Ee=(0,c.useState)(j),Ie=a()(Ee,2),De=Ie[0],Oe=Ie[1],Re=(0,c.useState)(Y),Ge=a()(Re,2),He=Ge[0],ze=Ge[1],Fe=(0,c.useState)(""),We=a()(Fe,2),Ye=We[0],Ve=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Je=Ke[0],qe=Ke[1],Qe=(0,c.useState)(g),Xe=a()(Qe,2),$e=Xe[0],et=Xe[1],tt=(0,c.useState)(!1),nt=a()(tt,2),ot=(nt[0],nt[1]),it=(0,c.useState)(0),rt=a()(it,2),at=rt[0],st=rt[1],lt=(0,c.useState)(0),ct=a()(lt,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),mt=(0,c.useRef)(),ht=(0,c.useRef)(),ft=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Me(Ce),null==Le||Le.setValue(Ce),window.scrollTo(0,e)}),[Ce]),(0,c.useEffect)((function(){null==J||J(He)}),[He]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var o=n.clipboardData;if(o){var i=o.types.toString(),r=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==L)return;try{var a,s=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(s=r[0]);var l=s.getAsFile(),c=l.name.split(".").pop();(0,A.I)(l,(function(e){var n,o,i;e.id?(null==l||null===(n=l.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==l||null===(o=l.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('<video width="100%" controls src="'.concat(ie.Z.API_SERVER,"/api/attachments/").concat(e.id,'"></video>')):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?t.replaceSelection('<a href="'.concat(ie.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(l.type,'&disposition=inline" target="_blank">').concat(l.name,"</a>")):ge.includes(c)?t.replaceSelection('<a href="'.concat(ie.Z.API_SERVER,"/api/attachments/").concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(l.name,"</a>")):t.replaceSelection("[".concat(l.name,"](").concat(ie.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:L,lineNumbers:!x,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",je):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),o=n.getCursor(),i=n.getLine(o.line),r=i.charAt(o.ch-1),a=i.lastIndexOf("@▁@",o.ch),s=i.lastIndexOf("@▁▁@",o.ch),l=a>s?a:s,c=a>s?3:4;if(-1===fe.indexOf(r))return null;if(console.log("change1:",t,e,i,o,l,a,s,r),l>=0&&o.ch-l<5){var u=l+c;return n.replaceRange("",{line:o.line,ch:l},{line:o.line,ch:u}),{line:o.line,ch:u}}return null}(e);n&&t.preventDefault()}})),k&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Pe(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){mt.current}),[$e,mt,He]);(0,c.useEffect)((function(){if(Le){var e=function(){var e=new p.Z((function(e){var t,n=i()(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;(o.target.offsetHeight>0||o.target.offsetWidth>0)&&(gt(),Le.setSize("100%","100%"),Le.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Le,gt]),(0,c.useEffect)((function(){if(Le){for(var e=[],t=function(){var t=a()(o[n],2),i=t[0],r=t[1],s=l()({},i,(function(){vt(r)}));e.push(s),Le.addKeyMap(s)},n=0,o=Object.entries(we);n<o.length;n++)t();return function(){for(var t=0,n=e;t<n.length;t++){var o=n[t];Le.removeKeyMap(o)}}}}),[Le]),(0,c.useEffect)((function(){Y!==He&&ze(Y)}),[Y]),(0,he.Z)((function(){if(!I&&Je>0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(Z);e>=Je+1e4&&(!t||t!==Be)&&(window.sessionStorage.setItem(Z,Be),ot(!0))}}),1e4),(0,c.useEffect)((function(){Oe(j)}),[Le,j]),(0,c.useEffect)((function(){Le&&k&&Le.focus()}),[Le,k]),(0,c.useEffect)((function(){if(De&&Le){var e=function(e){var t=e.target;if(ft.current){var n=t.scrollTop/t.scrollHeight;ft.current.scrollTop=ft.current.scrollHeight*n}},t=Le.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Le,De]),(0,c.useEffect)((function(){if(Le&&K){var e=function(e,t){K(e,t)};return Le.on("beforeChange",e),function(){Le.off("beforeChange",e)}}}),[Le,K]),(0,c.useEffect)((function(){if(Le&&V){var e=function(){V(Le.getValue())};return Le.on("blur",e),function(){Le.off("blur",e)}}}),[Le,V]),(0,c.useEffect)((function(){if(Le){var e=function(e,t){var n=e.getValue();Me(n),qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(G?o(n,kt(n)):o(n))};return Le.on("change",e),function(){Le.off("change",e)}}}),[Le,o]),(0,c.useEffect)((function(){if(Le)if(null==n)Le.setValue(""),Me("");else{var e=window.scrollY||window.pageYOffset;n!==Le.getValue()&&(Le.setValue(n),Me(n),Le.setCursor(pe?1:Le.lineCount(),0),window.scrollTo(0,e))}}),[Le,n]);var vt=(0,c.useCallback)((function(e){var t=Le.getCursor(),n=Le.getSelection(),o=n.split("\n");switch(e){case"bold":return Le.replaceSelection("**"+n+"**"),""===n&&Le.setCursor(t.line,t.ch+2),Le.focus();case"italic":return Le.replaceSelection("*"+n+"*"),""===n&&Le.setCursor(t.line,t.ch+1),Le.focus();case"code":return Le.replaceSelection("`"+n+"`"),""===n&&Le.setCursor(t.line,t.ch+1),Le.focus();case"inline-latex":return Ve("inline-latex"),Le.focus();case"latex":return Le.replaceSelection("```latex\n"+n+"\n```"),Le.setCursor(t.line+1,n.length+1),Le.focus();case"line-break":return Le.replaceSelection("<br/>\n"),Le.focus();case"list-ul":return""===n?Le.replaceSelection("- "+n):Le.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Le.focus();case"list-ol":return""===n?Le.replaceSelection("1. "+n):Le.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Le.focus();case"add-null-ch":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection("▁"),Le.focus();case"add-signal":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection("@▁@"),Le.focus();case"add-multiple":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection(fe),Le.focus();case"inster-template-1":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection("\n**模板标题**\n模板正文内容可输入文本内容和粘贴图片等操作"),Le.focus();case"eraser":return Le.setValue(""),Le.focus();case"trigger-watch":return Oe(!De),Le.focus();case"trigger-full-screen":return ze(!He),Le.focus();case ae:return void Ve(ae);case ue:return void Ve(ue);case se:return void Ve(se);case ce:return void Ve(ce);case"maths-latex":return void Ve("maths-latex");case le:return void Ve(le);case de:return void Ve(de);default:throw new Error}}),[Le,De,He]),xt=(0,c.useCallback)((function(e,t){var n,o,i,r,a;switch(Ve(""),Ye){case ae:var s=e.title,l=e.link;return Le.replaceSelection("[".concat(s,"](").concat(l,")")),Le.focus();case ue:var c=e.language,u=e.content;return Le.replaceSelection(["```"+c,u,"```"].join("\n")),Le.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),m=0;m<d.length;m++)p[m]=d.charCodeAt(m);var h=new Blob([p],{type:"image/png"});(0,A.I)(h,(function(e){e.id?Le.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":Le.replaceSelection("`$$"+e+"$$`");break;case se:case ce:case"add-flowchart":var f=e.src,g=e.alt,v=t,x=null==v||null===(n=v.name)||void 0===n||null===(n=n.split("."))||void 0===n||null===(o=n.pop)||void 0===o?void 0:o.call(n);return(null==v||null===(i=v.type)||void 0===i?void 0:i.indexOf("image"))>-1||null==v||!v.type?g?Le.replaceSelection("![ ".concat(g," ]( ").concat(f,' "').concat(g,'" )')):Le.replaceSelection("![,](".concat(f,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Le.replaceSelection('<video width="100%" controls src="'.concat(ie.Z.API_SERVER).concat(f,'"></video>')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Le.replaceSelection('<a href="'.concat(ie.Z.API_SERVER).concat(f,"?type=").concat(v.type,'&disposition=inline" target="_blank">').concat(v.name,"</a>")):ge.includes(x)?Le.replaceSelection('<a href="'.concat(ie.Z.API_SERVER).concat(f,'?type=office&disposition=inline" target="_blank">').concat(v.name,"</a>")):Le.replaceSelection("[".concat(v.name,"](").concat(ie.Z.API_SERVER).concat(f,")")),Le.focus();case de:for(var w=e.row,y=e.col,b=e.align,k="\n",j=0;j<w;j++){for(var _=[],C=[],S=0;S<y;S++)1===j&&C.push(me[b]),_.push(" ");1===j&&(k+="| ".concat(C.join(" | ")," |\n")),k+="| ".concat(_.join(1===y?"":" | ")," |\n")}return Le.replaceSelection(k+"\n"),Le.focus();default:throw new Error}}),[Le,Ye]),wt=(0,c.useMemo)((function(){switch(Ye){case ae:return(0,h.jsx)(S,{callback:xt,onCancel:yt});case ue:return(0,h.jsx)(T.Z,{callback:xt,onCancel:yt});case se:return(0,h.jsx)(A.Z,{callback:xt,onCancel:yt});case le:return(0,h.jsx)(U,{callback:xt,onCancel:yt});case de:return(0,h.jsx)(X,{callback:xt,onCancel:yt});case"maths-latex":return(0,h.jsx)(ne,{showSaveButton:!0,callback:xt});case"inline-latex":return(0,h.jsx)(oe.Z,{showSaveButton:!0,callback:xt});default:return null}}),[Ye]);function yt(){Ve("")}(0,c.useEffect)((function(){if(ht.current){var e=function(e){i=!0,r=e.pageY},t=function(){i=!1},n=function(e){if(i){var t=e.pageY-r;t<0&&(t=0),t>300&&(t=300),et(g+t+"px")}},o=ht.current,i=!1,r=0;return o.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){o.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Le,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var bt={width:ve(s),height:ve($e)},kt=((0,c.useMemo)((function(){if(Je){var e=new Date(Je),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}),[Je]),function(e){var t=[];if(G){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ye]&&Ye!==ce&&Ye!==le&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;st(t),dt(n)}),0)}),[Ye]);var jt=function(e,t,n,o){var i=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&n<e||t<20&&o>t||t>i-20&&o<t)||(document.body.onmousemove=null,document.body.onmouseup=null,!1)};return(0,h.jsxs)(c.Fragment,{children:[(0,h.jsx)("div",{className:"markdown-editor-wrapper",ref:mt,children:(0,h.jsxs)("div",{className:"markdown-editor-container ".concat(Q," ").concat(De?"on-preview":""," ").concat(x?"mini":""," ").concat(He?"full-screen":""),style:bt,children:[(0,h.jsx)(y,{insertTemp:_,watch:De,fullScreen:He,showNullButton:O,showNullProgramButton:G,onActionCallback:vt,hidetoolBar:F,extraUse:Se}),(0,h.jsxs)("div",{className:"markdown-editor-body",children:[(0,h.jsx)("div",{className:"codemirror-container",children:(0,h.jsx)("textarea",{ref:pt,placeholder:je})}),De?(0,h.jsxs)("div",{ref:ft,className:"preview-container",children:["stex"===L&&(0,h.jsx)(f,{value:Be}),"stex"!==L&&(0,h.jsx)(m.Z,{disabledFill:be,showProgramFill:G,value:Be})]}):null]})]})}),M?(0,h.jsx)("a",{ref:ht,className:"editor-resize"}):null,Ye===ce&&(0,h.jsx)(N,{callback:xt,onCancel:yt}),Ye===le&&(0,h.jsx)(U,{callback:xt,onCancel:yt}),(0,h.jsx)(b.Z,{children:ye[Ye]&&Ye!==ce&&Ye!==le?(0,h.jsx)(z.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:at,top:ut},title:(0,h.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var t=e.clientX-at,n=e.clientY-ut;document.body.onmousemove=function(e){var o=e.clientX-t,i=e.clientY-n,r=document.getElementsByClassName("markdown-popup-form")[0],a=window.innerWidth-r.offsetWidth,s=window.innerHeight-r.offsetHeight;o=Math.max(0,Math.min(o,a)),i=Math.max(0,Math.min(i,s)),jt(e.clientX,e.clientY,t,n)&&(st(o),dt(i))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:ye[Ye]}),open:!0,onCancel:yt,footer:null,destroyOnClose:!0,width:Ye===le?"1200px":null,height:Ye===le?"80vh":null,className:"markdown-popup-form",children:wt}):null})]})}},28486:function(e,t,n){"use strict";n.d(t,{Z:function(){return v},I:function(){return w}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),s=n(78241),l=n(8591),c=n(92832),u=n(3113),d=n(64294),p=n(59301),m=n(37712),h=s.Z.useForm,f={width:280,marginRight:10},g={labelCol:{span:5},wrapperCol:{span:19}},v=function(e){var t=e.callback,n=e.onCancel,o=h(),r=a()(o,1)[0],d=(0,p.useRef)();function v(e,t){-1!==e.status?r.setFieldsValue({src:"/api/attachments/".concat(e.id),type:t.type}):l.ZP.error(e.message)}return(0,m.jsxs)(s.Z,i()(i()({form:r},g),{},{className:"upload-image-panel",onFinish:function(e){t(e,d.current)},style:{width:470,overflow:"hidden"},children:[(0,m.jsx)(s.Z.Item,{label:"图片地址",required:!0,children:(0,m.jsxs)("div",{className:"flex-container",children:[(0,m.jsx)(s.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,m.jsx)(c.Z,{style:f})}),(0,m.jsx)(x,{onFileChange:function(e){var t=e.target.files[0];d.current=t,w(t,v)}})]})}),(0,m.jsx)(s.Z.Item,{label:"图片描述",name:"alt",children:(0,m.jsx)(c.Z,{style:{width:264}})}),(0,m.jsxs)(s.Z.Item,{style:{textAlign:"right"},children:[(0,m.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(u.ZP,{type:"default",onClick:n,children:"取消"})]})]}))};function x(e){var t=e.onFileChange;return(0,m.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,m.jsx)("input",{type:"file",onChange:t})]})}function w(e,t){if(!e)throw new String("没有文件");var n=new FormData;n.append("editormd-image-file",e),n.append("file_param_name","editormd-image-file"),n.append("byxhr","true");var o=new window.XMLHttpRequest;o.withCredentials=!0,o.addEventListener("load",(function(n){t(JSON.parse(n.target.responseText),e)}),!1),o.addEventListener("error",(function(e){console.error(e)}),!1),o.open("POST","".concat(d.KI,"/api/attachments.json")),o.send(n)}},24808:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var o=n(82100),i=n.n(o),r=n(29186),a=n.n(r),s=n(80619),l=n.n(s),c=n(47074),u=n.n(c),d=n(59301),p=n(4676),m=function(e){l()(n,e);var t=u()(n);function n(e){var o;i()(this,n),o=t.call(this,e);var r=window.document;return o.node=r.createElement("div"),r.body.appendChild(o.node),o}return a()(n,[{key:"render",value:function(){var e=this.props.children;return(0,p.createPortal)(e,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),n}(d.Component)},77818: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])}},52831:function(e,t,n){"use strict";var o=n(7557),i=n.n(o),r=n(85573),a=n.n(r),s=n(41498),l=n.n(s),c=n(82242),u=n.n(c),d=n(37205),p=n.n(d),m=n(79800),h=n.n(m),f=n(39647),g=n.n(f),v=n(59301),x=n(78241),w=n(8591),y=n(43418),b=n(95237),k=n(5112),j=n(94001),_=n(43604),C=n(57930),S=n(24905),T=n(61186),A=n.n(T),L=n(18030),P=n(93697),N=n(21082),Z=n(5296),B=n(95335),M=n(54602),E=n(63363),I=n(37712),D=["classroomList","dispatch","courseEndTime","onWindowBack"];t.Z=(0,Z.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n,o,r,s,c,d,m,f,T,O,R=e.classroomList,G=e.dispatch,H=e.courseEndTime,z=e.onWindowBack,F=g()(e,D),W=(0,Z.useParams)(),Y=x.Z.useForm(),V=h()(Y,1)[0],U=(0,v.useState)(1),K=h()(U,2),J=K[0],q=K[1],Q=(0,v.useState)([]),X=h()(Q,2),$=X[0],ee=X[1],te=(0,v.useState)(0),ne=h()(te,2),oe=(ne[0],ne[1]),ie=(0,v.useState)(2e3),re=h()(ie,2),ae=(re[0],re[1],(0,v.useState)(!0)),se=h()(ae,2),le=(se[0],se[1]),ce=(0,v.useState)(!1),ue=h()(ce,2),de=ue[0],pe=(ue[1],(0,v.useState)(!1)),me=h()(pe,2),he=me[0],fe=(me[1],(0,v.useState)([])),ge=h()(fe,2),ve=ge[0],xe=ge[1],we=(0,v.useState)(!0),ye=h()(we,2),be=ye[0],ke=ye[1],je=(0,v.useState)(!(null!==(t=R.actionTabs)&&void 0!==t&&null!==(t=t.selectArrsAll)&&void 0!==t&&null!==(t=t[0])&&void 0!==t&&t.send_type)),_e=h()(je,2),Ce=_e[0],Se=_e[1],Te=(0,v.useState)([0,0,0]),Ae=h()(Te,2),Le=Ae[0],Pe=Ae[1];(0,v.useEffect)((function(){if("立即发布"===R.actionTabs.key){var e,t,n,o;if(Me(),null!==(e=R.actionTabs)&&void 0!==e&&null!==(e=e.selectArrsAll)&&void 0!==e&&null!==(e=e[0])&&void 0!==e&&e.can_publish)Pe(p()(null===(n=R.actionTabs)||void 0===n||null===(n=n.selectArrsAll)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.difficult_count));else Pe(p()(null===(o=R.actionTabs)||void 0===o||null===(o=o.selectArrsAll)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.difficult_settings));if(Se(!(null!==(t=R.actionTabs)&&void 0!==t&&null!==(t=t.selectArrsAll)&&void 0!==t&&null!==(t=t[0])&&void 0!==t&&t.send_type)),Ne(),2===R.actionTabs.type){var i,r=null===(i=R.actionTabs.selectArrsAll)||void 0===i?void 0:i[0];ke(r.unified_setting)}else ke(!1)}}),[R.actionTabs]),(0,v.useEffect)((function(){if(de){if(he)return;G({type:"classroomList/setActionTabs",payload:{}}),(0,P.GJ)()?(G({type:"classroomList/getClassroomTeacherCommonList",payload:u()(u()({},R.actionTabs.params),{},{type:1})}),G({type:"shixunHomeworks/getWorkList",payload:u()({},W)})):G({type:"classroomList/getClassroomCommonList",payload:u()({},R.actionTabs.params)})}}),[de]);var Ne=function(){var e=l()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return le(!0),e.next=3,(0,M.c_)(u()(u()({},W),{},{page:t||J,limit:2e4,homework_id:1===R.actionTabs.type?"":R.actionTabs.selectArrs[0]}));case 3:null==(n=e.sent)||n.course_groups.map((function(e,t){e.key=e.id,e.title=e.name,e.disabled=e.is_published})),n&&(ee(p()(null==n?void 0:n.course_groups)),oe(null==n?void 0:n.course_groups_count),le(!1),t||V.setFieldsValue(a()(a()({},"publish_time",A()(A()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",A()(A()(new Date((0,N.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm")))));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ze=function(){(0,P.GJ)()?R.actionTabs.detail?(G({type:"shixunHomeworks/setActionTabs",payload:{}}),G({type:"shixunHomeworks/getWorkList",payload:u()({},W)}),G({type:"shixunHomeworks/getWorkSetting",payload:u()({},W)})):G({type:"classroomList/getClassroomTeacherCommonList",payload:u()(u()({},R.actionTabs.params),{},{type:5,category:R.actionTabs.params.categoryId})}):G({type:"classroomList/getClassroomCommonList",payload:u()({},R.actionTabs.params)})},Be=function(){var e=l()(i()().mark((function e(){var t,n,o,r;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,P.Rm)()||null!==(t=R.AssistantObject.hack)&&void 0!==t&&t.can_publish){e.next=4;break}return w.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),Oe(!1),e.abrupt("return");case 4:if(!((o=u()({},V.getFieldsValue())).end_time<=o.publish_time)){e.next=9;break}return w.ZP.info("截止时间不能大于或等于发布时间"),Oe(!1),e.abrupt("return");case 9:if(!((null==ve?void 0:ve.length)<=0&&!be&&$.length>0)){e.next=13;break}return w.ZP.info("发布班级不能为空"),Oe(!1),e.abrupt("return");case 13:if(0!==Le.reduce((function(e,t){return e+t}))||Ce){e.next=17;break}return w.ZP.info("简单适中困难题数相加不能为0"),Oe(!1),e.abrupt("return");case 17:return r={homework_ids:p()(R.actionTabs.selectArrs),group_ids:ve.length>0?ve.map((function(e){return e.id})):null===(n=R.detailCommonHomeworksList)||void 0===n?void 0:n.course_groups,end_time:A()(o.end_time).format("YYYY-MM-DD HH:mm"),publish_time:A()(o.publish_time).format("YYYY-MM-DD HH:mm"),difficult_settings:null==Le?void 0:Le.map((function(e){return e})),send_type:Ce?"0":"1",unified_setting:!ve.length},Oe(!0),e.next=21,(0,L.ZP)("/api/courses/".concat(W.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:u()({},r)});case 21:if(0!==e.sent.status){e.next=35;break}if(Oe(!1),(0,N.L9)(["教学课堂","图文作业","立即发布"]),w.ZP.success("发布成功"),G({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),!z){e.next=30;break}return z(),e.abrupt("return");case 30:F.onCallback&&F.onCallback(),Ze(),"0"===localStorage.getItem("Noviceguide")||G({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:13,text:(0,I.jsx)("div",{children:"最后,咱们给教学课堂添加一名学生~点击“添加学生”,在弹窗页面中输入并搜索学生姓名,点击“确定”就可以为您的课堂添加第一位学生啦~"})}}),e.next=36;break;case 35:Oe(!1);case 36:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Me=function(){q(1),ee([]),xe([])},Ee=(0,v.useState)(!1),Ie=h()(Ee,2),De=Ie[0],Oe=Ie[1];return(0,I.jsxs)(y.Z,{width:600,confirmLoading:De,centered:!0,title:"发布作业",open:"立即发布"===R.actionTabs.key,okText:"发布作业",cancelText:"暂不发布",onOk:Be,onCancel:function(){Me(),G({type:"classroomList/setActionTabs",payload:{}}),z?z():Ze()},children:[(0,I.jsxs)("p",{className:"tc",children:["学生将立即收到作业",(0,I.jsx)("br",{}),'本操作只对"未发布"的作业有效']}),$&&(0,I.jsxs)(x.Z,{form:V,children:[(0,I.jsxs)("div",{style:{paddingLeft:0},children:[2===R.actionTabs.type&&(0,I.jsxs)(b.Z,{style:{marginBottom:"10px"},children:[(0,I.jsx)("span",{className:"mr5",children:"试题发送:"}),(0,I.jsxs)(k.ZP.Group,{value:Ce,disabled:!(null!==(n=R.actionTabs)&&void 0!==n&&null!==(n=n.selectArrsAll)&&void 0!==n&&null!==(n=n[0])&&void 0!==n&&n.can_publish),onChange:function(e){Se(e.target.value)},children:[(0,I.jsx)(k.ZP,{value:!0,children:"全部固定试题"}),(0,I.jsx)(k.ZP,{className:"ml20",value:!1,children:"随机抽取"})]})]}),!Ce&&(0,I.jsxs)(b.Z,{style:{marginBottom:"10px"},children:[(0,I.jsx)("span",{style:{marginRight:65}}),(0,I.jsxs)("span",{children:["简单题数 ",(0,I.jsx)(j.Z,{value:Le[0],onChange:function(e){Le[0]=e,Pe(p()(Le))},min:0,disabled:!(null!==(o=R.actionTabs)&&void 0!==o&&null!==(o=o.selectArrsAll)&&void 0!==o&&null!==(o=o[0])&&void 0!==o&&o.can_publish),placeholder:"最大".concat(null===(r=R.actionTabs)||void 0===r||null===(r=r.selectArrsAll)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.difficult_count)||void 0===r?void 0:r[0]),max:null===(s=R.actionTabs)||void 0===s||null===(s=s.selectArrsAll)||void 0===s||null===(s=s[0])||void 0===s||null===(s=s.difficult_count)||void 0===s?void 0:s[0],style:{width:60}})]}),(0,I.jsxs)("span",{style:{margin:"0px 40px"},children:["适中题数 ",(0,I.jsx)(j.Z,{value:Le[1],onChange:function(e){Le[1]=e,Pe(p()(Le))},min:0,disabled:!(null!==(c=R.actionTabs)&&void 0!==c&&null!==(c=c.selectArrsAll)&&void 0!==c&&null!==(c=c[0])&&void 0!==c&&c.can_publish),max:null===(d=R.actionTabs)||void 0===d||null===(d=d.selectArrsAll)||void 0===d||null===(d=d[0])||void 0===d||null===(d=d.difficult_count)||void 0===d?void 0:d[1],placeholder:"最大".concat(null===(m=R.actionTabs)||void 0===m||null===(m=m.selectArrsAll)||void 0===m||null===(m=m[0])||void 0===m||null===(m=m.difficult_count)||void 0===m?void 0:m[1]),style:{width:60}})]}),(0,I.jsxs)("span",{children:["困难题数 ",(0,I.jsx)(j.Z,{value:Le[2],onChange:function(e){Le[2]=e,Pe(p()(Le))},min:0,disabled:!(null!==(f=R.actionTabs)&&void 0!==f&&null!==(f=f.selectArrsAll)&&void 0!==f&&null!==(f=f[0])&&void 0!==f&&f.can_publish),placeholder:"最大".concat(null===(T=R.actionTabs)||void 0===T||null===(T=T.selectArrsAll)||void 0===T||null===(T=T[0])||void 0===T||null===(T=T.difficult_count)||void 0===T?void 0:T[2]),max:null===(O=R.actionTabs)||void 0===O||null===(O=O.selectArrsAll)||void 0===O||null===(O=O[0])||void 0===O||null===(O=O.difficult_count)||void 0===O?void 0:O[2],style:{width:60}})]})]}),(0,I.jsxs)(b.Z,{className:"mt30",align:"middle",children:[(0,I.jsx)(_.Z,{children:(0,I.jsx)(x.Z.Item,{name:"publish_time",label:"发布时间",children:(0,I.jsx)(C.default,{style:{width:170,marginRight:"25px"},disabledDate:function(e){return(0,E.Q8)(e,H)},disabledTime:function(e){return(0,E.d0)(e)},placeholder:"请选择发布时间",showTime:{format:"HH:mm",defaultValue:A()((0,N.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),(0,I.jsx)(_.Z,{className:"ml20",children:(0,I.jsx)(x.Z.Item,{name:"end_time",label:"截止时间",children:(0,I.jsx)(C.default,{style:{width:170},placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:A()((0,N.U6)(),"HH:mm")},disabledDate:function(e){return(0,E.Q8)(e,H,V.getFieldValue("publish_time"))},disabledTime:function(e){return(0,E.d0)(e,V.getFieldValue("publish_time"))},format:"YYYY-MM-DD HH:mm",allowClear:!1})})})]}),2===R.actionTabs.type&&(0,I.jsxs)(b.Z,{style:{marginBottom:"10px"},children:[(0,I.jsx)("span",{className:"mr5",children:"发布设置:"}),(0,I.jsxs)(k.ZP.Group,{value:be,onChange:function(e){ke(e.target.value),xe([])},children:[(0,I.jsx)(k.ZP,{value:!0,disabled:!R.actionTabs.manage_all_group,children:"统一发布"}),(0,I.jsx)(k.ZP,{className:"ml20",disabled:$.length<=0,value:!1,children:"分班发布"})]})]}),$.length<=0&&2===R.actionTabs.type&&(0,I.jsx)("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"},children:'课堂无分班,仅支持选择“统一发布"'})]}),(1===R.actionTabs.type||!be)&&$.length>0&&(0,I.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"},children:[(0,I.jsxs)("span",{style:{flex:1},children:[(0,I.jsx)(S.Z,{checked:ve.length===$.length,onChange:function(e){ve.length===$.length?xe([]):xe($.filter((function(e){return!e.is_published})))},children:"全选"})," "]}),(0,I.jsx)("span",{style:{width:16}}),(0,I.jsxs)("span",{style:{flex:1},children:["已选择",ve.length||0,"个分班"]})]}),(1===R.actionTabs.type||!be)&&$.length>0&&(0,I.jsx)(B.Z,{data:$,selectedRowKeys:ve,setSelectedRowKeys:xe})]})]})}))},20239:function(e,t,n){"use strict";n.r(t),n.d(t,{CommonHomeworkContext:function(){return it},default:function(){return rt}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301),p=n(5296),m=n(8591),h=n(27092),f=n(81228),g=n(21082),v=n(93697),x=n(37205),w=n.n(x),y=n(39647),b=n.n(y),k=n(43418),j=n(18030),_=n(97978),C=n(37712),S=["classroomList","dispatch","match","location","user","onCallback"],T=(0,p.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,o=e.classroomList,r=e.dispatch,s=(e.match,e.location,e.user),c=e.onCallback,h=(b()(e,S),(0,p.useParams)()),f=(0,d.useState)(!1),x=u()(f,2),y=x[0],T=x[1],A=(0,d.useState)(!1),L=u()(A,2),P=L[0],N=L[1],Z=(0,d.useRef)(null);(0,d.useEffect)((function(){if("删除"===o.actionTabs.key){if((0,v.j5)())return void N(!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?k.Z.info({title:"权限提示",className:"custom-modal-divider ",icon:null,content:(0,C.jsxs)("div",{children:["当前选中资源中:",(0,C.jsx)("span",{className:"c-blue",children:e.hasNum}),"个由您本人发布,",(0,C.jsx)("span",{className:"c-red",children:e.noHasNum})," ","个由其他老师发布。",(0,C.jsx)("br",{}),"课堂内只能删除本人发布的资源,请取消选中其他老师发布的资源。"]}),onOk:function(){B()}}):N(!0)}else N(!1)}),[o.actionTabs.key]);var B=function(){r({type:"classroomList/setActionTabs",payload:{}})};return(0,C.jsx)(k.Z,{centered:!0,title:"提示",open:P,okText:"确定",cancelText:"取消",confirmLoading:y,destroyOnClose:!0,onOk:a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=Z.current)||void 0===t||!t.onVerify()){e.next=2;break}return e.abrupt("return");case 2:return T(!0),e.next=5,(0,j.ZP)("/api/courses/".concat(h.coursesId,"/homework_commons/multi_destroy.json"),{method:"post",body:{homework_ids:w()(o.actionTabs.selectArrs)}});case 5:n=e.sent,T(!1),0===n.status&&((0,g.L9)(["教学课堂","图文作业","删除"]),m.ZP.success("删除成功"),r({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),c&&c(),(0,v.GJ)()?r({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},o.actionTabs.params),{},{type:5})}):r({type:"classroomList/getClassroomCommonList",payload:l()({},o.actionTabs.params)}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:h.coursesId}}));case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){B()},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,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("p",{children:"提交作品将全部被删除,不可恢复"}),(0,C.jsx)("p",{children:"是否确认删除?"})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("p",{style:{color:"#DD0000"},children:"删除作业则会清除学生所有的答题数据,且数据不可恢复,如确定删除,请输入下方验证码"}),(0,C.jsx)(_.Z,{ref:function(e){return Z.current=e}})]})})})),A=n(52831),L=n(3655),P=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=(0,p.useParams)();return(0,C.jsx)(k.Z,{centered:!0,title:"提示",open:"设为公开"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.ZP)("/api/courses/".concat(o.coursesId,"/homework_commons/set_public.json"),{method:"post",body:{homework_ids:w()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,g.L9)(["教学课堂","图文作业","设为公开"]),m.ZP.success("操作成功"),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,v.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:5})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:(0,C.jsxs)("p",{children:["设为公开后,非课堂成员也可以访问查看",(0,C.jsx)("br",{}),"是否确认设为公开?"]})})})),N=["classroomList","dispatch","onCallback"],Z=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=e.onCallback,r=(b()(e,N),(0,p.useParams)());return r.id=r.coursesId,(0,C.jsx)(k.Z,{centered:!0,title:"提示",open:"收藏"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.ZP)("/api/courses/".concat(r.id,"/homework_commons/add_to_homework_bank.json"),{method:"post",body:{all_check:0,homework_ids:w()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,g.L9)(["教学课堂","图文作业","收藏"]),m.ZP.success("收藏成功,请前往【个人主页/课堂资源】查看"),n({type:"classroomList/setActionTabs",payload:{}}),o&&o(),(0,v.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:5})}):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:"确认收藏?"})})),B=n(85573),M=n.n(B),E=n(78241),I=n(95237),D=n(43604),O=n(92832),R=n(61186),G=n.n(R),H=(0,p.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t,n,o=e.classroomList,r=(e.loading,e.dispatch),s=e.onCallback,c=(0,p.useParams)(),d=(0,p.useLocation)(),h=o.actionTabs,f=E.Z.useForm(),g=u()(f,1)[0];return(0,C.jsxs)(k.Z,{centered:!0,title:"新建目录",open:"新建目录"===o.actionTabs.key,okText:"确定",cancelText:"取消",bodyStyle:{minHeight:200},onOk:a()(i()().mark((function e(){var t,n,a,u,h,f,v,x;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=g.getFieldValue(),n="/api/course_modules/".concat(o.detailCommonHomeworksList.main_category_id,"/add_second_category.json"),e.next=4,(0,j.ZP)(n,{method:"post",body:l()({},t)});case 4:0===(a=e.sent).status&&(m.ZP.success("添加成功"),s&&s(),r({type:"classroomList/setActionTabs",payload:{}}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:c.coursesId}}),h=o.actionTabs.selectArrs.type,f=(null==a?void 0:a.category_id)||0,(v=null===(u=d.pathname)||void 0===u?void 0:u.split("/"))[4]=f,v[3]=h||v[3],x=null==v?void 0:v.join("/"),p.history.push(x));case 6:case"end":return e.stop()}}),e)}))),onCancel:function(){r({type:"classroomList/setActionTabs",payload:{}})},children:[(0,C.jsx)("p",{className:"tc",children:(0,C.jsx)("br",{})}),o.courseGroups.course_groups&&(0,C.jsx)(E.Z,{form:g,initialValues:M()({},"name",""),children:(0,C.jsx)(E.Z.Item,{name:"name",children:(0,C.jsxs)(I.Z,{className:"mt30",children:[(0,C.jsx)(D.Z,{children:"目录名称:"}),(0,C.jsx)(D.Z,{flex:"1",children:(0,C.jsx)(O.Z,{defaultValue:(null===(t=h.selectArrs)||void 0===t?void 0:t.category_name)||(null===(n=h.selectArrs)||void 0===n?void 0:n.name)})})]})})})]})})),z=n(99313),F=n(3113),W=n(24905),Y=n(26724),V=n.n(Y),U=n(87308),K=n(28103),J=n(81327),q=n(99681),Q={shixunItemWrapper:"shixunItemWrapper___ClCET",checkboxWrapper:"checkboxWrapper___bZ8gF",contentWrapper:"contentWrapper____pt8D",title:"title___tfmFW",desc:"desc___NDuDd",info:"info___mahF7"},X=U.Z.Paragraph,$=function(e,t){var n=e.createShixunParams,o=(0,d.useState)("0"),r=u()(o,2),s=r[0],c=r[1],p=(0,d.useState)("hot"),m=u()(p,2),h=m[0],f=m[1],g=(0,d.useState)([]),v=u()(g,2),x=v[0],w=v[1],y=(0,d.useRef)({page:1,order:"hot",keyword:"",shixun_type:"jupyter",diff:"0",limit:10}),b=function(){var e=a()(i()().mark((function e(t,n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,q.he)(t);case 2:if((o=e.sent).status){e.next=8;break}if(0!==o.shixuns.length||!n){e.next=7;break}return P(!1),e.abrupt("return");case 7:w(o.shixuns);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();(0,d.useImperativeHandle)(t,(function(){return{search:function(e){return b(l()(l()({},y.current),{},{keyword:e}))},changeKeyWord:function(e){return y.current.keyword=e}}})),(0,d.useEffect)((function(){b(y.current)}),[]);var k=(0,d.useState)([]),j=u()(k,2),_=j[0],S=j[1],T=(0,d.useState)(!0),A=u()(T,2),L=A[0],P=A[1];return(0,C.jsxs)("div",{style:{marginTop:20,maxHeight:200,overflowY:"auto",overflowX:"hidden"},children:[(0,C.jsxs)(I.Z,{justify:"space-between",style:{marginBottom:8},children:[(0,C.jsx)(D.Z,{children:[{name:"全部",id:"0"},{name:"初级",id:"1"},{name:"中级",id:"2"},{name:"中高级",id:"3"},{name:"高级",id:"4"}].map((function(e,t){return(0,C.jsx)(F.ZP,{type:s===e.id?"primary":"default",onClick:function(){c(e.id),y.current.diff=e.id,b(y.current)},children:e.name},t)}))}),(0,C.jsx)(D.Z,{children:[{name:"最热",id:"hot"},{name:"最新",id:"new"}].map((function(e,t){return(0,C.jsx)(F.ZP,{className:"mr20",type:h===e.id?"primary":"default",onClick:function(){f(e.id),y.current.order=e.id,b(y.current)},children:e.name},t)}))})]}),(0,C.jsx)(V(),{initialLoad:!1,pageStart:1,threshold:700,loadMore:function(e){b(l()(l()({},y.current),{},{page:e}),!0)},hasMore:L,useWindow:!1,children:(0,C.jsx)(W.Z.Group,{onChange:function(e){S(e),n.current.shixun_ids=e},value:_,children:x.map((function(e){var t=e||{},n=t.name,o=t.id,i=t.description,r=t.challenge_names,a=t.author_name,s=t.author_school_name,l=t.level,c=t.total_stu_num;return(0,C.jsxs)("div",{className:Q.shixunItemWrapper,children:[(0,C.jsxs)(I.Z,{align:"middle",className:Q.checkboxWrapper,gutter:14,children:[(0,C.jsx)(W.Z,{value:o}),(0,C.jsx)("div",{className:Q.title,children:n})]}),(0,C.jsxs)("div",{className:Q.contentWrapper,children:[(0,C.jsx)(X,{ellipsis:{rows:2},className:Q.desc,style:{color:"#8e8888"},children:i}),(0,C.jsx)(I.Z,{children:r.map((function(e,t){return(0,C.jsxs)("span",{className:Q.mission,children:["第",t+1,"关",e]},t)}))}),(0,C.jsx)(K.Z,{dashed:!0,style:{margin:"8px 0"}}),(0,C.jsx)(I.Z,{className:Q.info,children:(0,C.jsxs)(J.Z,{children:[(0,C.jsx)("span",{children:a}),(0,C.jsx)("span",{children:"|"}),(0,C.jsx)("span",{children:s}),(0,C.jsx)("span",{children:"|"}),(0,C.jsxs)("span",{children:["难度系数 ",l]}),(0,C.jsx)("span",{children:"|"}),(0,C.jsxs)("span",{children:["学习人数 ",c]})]})})]})]},o)}))})})]})},ee=(0,d.forwardRef)($),te={flex_box_center:"flex_box_center___Cx3ju",flex_space_between:"flex_space_between___rc8Mm",flex_box_vertical_center:"flex_box_vertical_center___6BCc9",flex_box_center_end:"flex_box_center_end___sN3Ig",flex_box_column:"flex_box_column___wjzgd",line1:"line1___cHCBY",form:"form___IMCYE"},ne=n(54313),oe=n(54602),ie=(z.Z.TabPane,(0,p.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,loading:e.loading}}))((function(e){var t,n=e.shixunHomeworks,o=(e.loading,e.dispatch),r=e.refreshList,s=(0,p.useParams)(),c=((0,p.useLocation)(),E.Z.useForm()),m=u()(c,1)[0],h=(n.brankList,(0,d.useState)(!1)),f=u()(h,2),x=(f[0],f[1]),y=(0,d.useState)(!0),b=u()(y,2),j=b[0],_=b[1],S=(0,d.useState)(!1),T=u()(S,2),A=T[0],L=T[1],P=(0,d.useState)("myself"),N=u()(P,2),Z=N[0],B=N[1],R=(0,d.useState)([]),G=u()(R,2),H=G[0],z=G[1],Y=(0,d.useState)(),U=u()(Y,2),K=U[0],J=U[1],q=(0,d.useState)({page:0,limit:20,object_type:"normal",search:"",filter:"myself"}),Q=u()(q,2),X=Q[0];Q[1];(0,d.useEffect)((function(){"题库选用"===n.actionTabs.key&&ie()}),[n.actionTabs.key]);var $=[],ie=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!j){e.next=11;break}return x(!1),++X.page,e.next=5,o({type:"shixunHomeworks/getBrankList",payload:l()({},X)});case 5:n=e.sent,H=w()(H.concat(n.object_list)),J(n.is_teacher),(null===(t=n.object_list)||void 0===t?void 0:t.length)<X.limit?_(!1):_(!0),z(w()(H)),""==n.object_list&&1===X.page&&x(!0);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),re=(0,d.useRef)({identifier:s.coursesId,shixun_ids:[],type:"normal",coursesId:s.coursesId}),ae=function(){var e=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(!0),e.next=3,(0,oe.aQ)(t);case 3:n=e.sent,L(!1),n.status||(r(),o({type:"shixunHomeworks/setActionTabs",payload:{}}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),se=(0,d.useRef)();return(0,C.jsxs)(k.Z,{centered:!0,title:"选用课堂资源",destroyOnClose:!0,open:"题库选用"===n.actionTabs.key,okText:"确定",cancelText:"取消",width:800,bodyStyle:{minHeight:200},okButtonProps:{loading:A},onOk:a()(i()().mark((function e(){var t,r,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("jupyter"!==Z){e.next=3;break}return ae(re.current),e.abrupt("return");case 3:return L(!0),t=m.getFieldValue(),e.next=7,o({type:"shixunHomeworks/saveBanks",payload:{course_id:s.coursesId,object_type:"normal",category:s.categoryId,bank_id:t.group_ids}});case 7:0===(null==(r=e.sent)?void 0:r.status)&&((0,g.L9)(["教学课堂","图文作业","选用课堂资源"]),o({type:"classroomList/getClassroomLeftMenus",payload:{id:s.coursesId}}),o({type:"shixunHomeworks/setActionTabs",payload:{}}),o({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:r.object_ids,params:null===(a=n.actionTabs)||void 0===a?void 0:a.params}})),L(!1);case 10:case"end":return e.stop()}}),e)}))),onCancel:function(){o({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,C.jsxs)(I.Z,{children:[(0,C.jsx)(D.Z,{span:12,children:[{name:"我的资源",id:"myself"},{name:"公共资源",id:"public"},{name:"jupyter实训",id:"jupyter"}].map((function(e,t){return(0,C.jsx)(F.ZP,{shape:"round",type:Z===e.id?"primary":"default",className:"mr10",onClick:function(){var t=a()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("jupyter"!==e.id){t.next=3;break}return B(e.id),t.abrupt("return");case 3:H=[],j=!0,X.page=0,X.search="",X.filter=e.id,ie(),B(e.id);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),children:e.name},t)}))}),(0,C.jsx)(D.Z,{span:12,className:"tr",children:(0,C.jsx)(O.Z.Search,{placeholder:"输入标题、适用课程进行搜索",onChange:function(e){var t;"jupyter"===Z&&(null===(t=se.current)||void 0===t||t.changeKeyWord(e.target.value))},onSearch:function(e){var t;"jupyter"!==Z?(j=!0,X.search=e,X.page=0,H=[],ie()):null===(t=se.current)||void 0===t||t.search(e)},style:{width:260}})})]}),"myself"===Z&&(0,C.jsxs)("p",{className:"tc mt10",children:["选用对象:你在课堂图文作业列表中已",(0,C.jsx)("span",{className:"c-orange",children:"收藏"}),"的图文作业"]}),"public"===Z&&(0,C.jsx)("p",{className:"tc mt10",children:"选用对象:题库中已设置成公共属性的所有图文作业"}),"jupyter"===Z?(0,C.jsx)(ee,{createShixunParams:re,ref:se}):(0,C.jsxs)("div",{style:{background:"#F4FAFF",maxHeight:200,overflow:"auto",padding:"20px 10px"},children:[!K&&"public"===Z&&(0,C.jsxs)("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"},children:[(0,C.jsx)("span",{children:"通过职业认证的教师才能访问公共课程资源库"}),(0,C.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,C.jsx)(V(),{initialLoad:!1,pageStart:0,threshold:700,loadMore:function(){_(!1),ie()},hasMore:j,useWindow:!1,children:(0,C.jsxs)(E.Z,{form:m,initialValues:M()({},"group_ids",$),className:te.form,onChange:function(e){var t=m.getFieldValue();$=t},children:[""==H&&(0,C.jsx)(ne.Z,{styles:{margin:"10px auto"}}),(0,C.jsx)(E.Z.Item,{name:"group_ids",children:(0,C.jsx)(W.Z.Group,{style:{width:"100%"},className:"font14",children:null===(t=H)||void 0===t?void 0:t.map((function(e,t){return(0,C.jsxs)(I.Z,{children:[(0,C.jsx)(D.Z,{flex:"2",children:(0,C.jsx)(W.Z,{onChange:function(e){},value:String(e.id),defaultChecked:!0,children:(0,C.jsx)("span",{className:["c-black",te.line1].join(" "),children:e.name})},t)}),(0,C.jsx)(D.Z,{flex:"1",className:"c-black",children:(0,C.jsx)("span",{className:te.line1,children:null==e?void 0:e.course_list_name})}),(0,C.jsx)(D.Z,{flex:"50px",className:"c-black",children:"public"===Z&&(0,v.Ny)()||"myself"===Z?(0,C.jsx)("span",{className:"c-blue current",onClick:function(){window.open("/users/innov/topics/".concat(e.id,"/personal/normal/edit"))},children:"编辑"}):null==e?void 0:e.username})]},t)}))})})]})})]})]})}))),re=n(31917),ae=n(98382),se=(0,p.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t=e.classroomList,n=(e.loading,e.dispatch),o=((0,p.useParams)(),E.Z.useForm()),r=u()(o,1)[0];return(0,C.jsx)(k.Z,{centered:!0,title:"补交附件",open:"补交附件"===t.actionTabs.key,bodyStyle:{minHeight:200},onOk:a()(i()().mark((function e(){var o,a,s;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.validateFields();case 2:return a=l()({},r.getFieldValue()),s=t.actionTabs.selectArrs,a.attachment_ids=null===(o=a.attachment_ids)||void 0===o?void 0:o.map((function(e){return e.response.id})),e.next=7,(0,re.mz)(l()(l()({},a),{},{homeworkId:s.work_id}));case 7:0===e.sent.status&&(r.resetFields(),n({type:"classroomList/setActionTabs",payload:{}}));case 9:case"end":return e.stop()}}),e)}))),onCancel:function(){r.resetFields(),n({type:"classroomList/setActionTabs",payload:{}})},children:(0,C.jsxs)(E.Z,{form:r,initialValues:{},children:[(0,C.jsx)(E.Z.Item,{name:"attachment_ids",rules:[{required:!0,message:"请上传附件"}],children:(0,C.jsx)(ae.Z,{})}),(0,C.jsx)(E.Z.Item,{name:"description",children:(0,C.jsx)(O.Z.TextArea,{placeholder:"请在此输入补交附件的原因最大限制100个字符",rows:7})})]})})})),le=n(20834),ce=n(38854),ue=n(6848),de="tabMenuContainer___Sxna3",pe="control___ka76r",me="iconH___GpOCh",he="selectBtn___KJw1e",fe="selectBtn1___kta6F",ge=function(e){var t,n,o,i=e.isLoading,r=e.addText,a=e.tabDataSource,s=e.isAdmin,l=e.dispatch,c=e.type,u=e.TooltipTitle,d=e.categoryId,m=e.dropdownMenu,h=(e.classroomList,e.isShowRightControl),f=e.defaultSelectedKeys,g=e.user,v=e.onTabMenuClick,x=e.onTooltipTitleClick,w=e.onDropdownMenuClick,y=(0,p.useParams)();return(0,C.jsx)("div",{className:de,children:(0,C.jsxs)(I.Z,{children:[(0,C.jsx)(D.Z,{flex:"1",children:(0,C.jsx)(le.Z,{mode:"horizontal",selectedKeys:f,children:a.map((function(e){return(0,C.jsxs)(le.Z.Item,{onClick:function(){return i?{}:v(e)},children:[(0,C.jsx)("span",{className:"c-grey-666 ".concat(s?"mr20":""),children:e.name}),void 0!==e.total&&(0,C.jsx)("span",{className:"c-grey-999",children:e.total||0})]},e.id)}))})}),(0,C.jsxs)(D.Z,{className:"gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3},children:[s&&(0,C.jsx)(ce.Z,{className:"mr10",placement:"bottom",arrow:!0,dropdownRender:function(){return(0,C.jsxs)(le.Z,{children:[(0,C.jsx)(le.Z.Item,{onClick:function(){l({type:"classroomList/setActionTabs",payload:{key:"导出成绩",type:c,exportType:"hack",category_id:y.categoryId}})},children:"学生成绩"},1),(0,C.jsx)(le.Z.Item,{onClick:function(){p.history.push("/classrooms/".concat(null==y?void 0:y.coursesId,"/exportlist/hack_work_list"))},children:"历史导出"},3)]})},children:(0,C.jsx)("span",{style:{color:"#666666",cursor:"pointer"},children:(0,C.jsx)("i",{className:"iconfont icon-xiazai6"})})}),(0,C.jsxs)("span",{style:{marginLeft:8,cursor:"pointer"},onClick:function(){p.history.push("/classrooms/".concat(y.coursesId,"/program_homework/ranking"))},children:[(0,C.jsx)(ue.Z,{title:"排行榜",children:(0,C.jsx)("i",{className:"iconfont icon-paihang mr5",style:{color:"#666666"}})})," "]}),s&&h&&(0,C.jsxs)("div",{className:pe,children:[(0,C.jsx)("div",{className:"c-blue font16 current",style:{marginLeft:20,marginRight:20},onClick:x,children:(0,C.jsx)(ue.Z,{title:u,children:(0,C.jsx)("span",{className:"".concat(me,d?" iconfont icon-zhongmingmingmulu":" iconfont icon-xinjianmulu1")})})}),(0,C.jsx)(ce.Z,{disabled:2===(null==g||null===(t=g.userInfo)||void 0===t?void 0:t.user_status),className:"ml10",dropdownRender:function(){return(0,C.jsx)(le.Z,{onClick:function(e){var t=e.key;return w(t)},children:m.map((function(e){return(0,C.jsx)(le.Z.Item,{children:e.name},e.id)}))})},children:(0,C.jsxs)("span",{onClick:function(){},className:2===(null==g||null===(n=g.userInfo)||void 0===n?void 0:n.user_status)?fe:he,children:[(0,C.jsx)("span",{children:(0,C.jsx)("i",{className:"iconfont icon-tianjiadaohang"})}),(0,C.jsx)(ue.Z,{title:2===(null==g||null===(o=g.userInfo)||void 0===o?void 0:o.user_status)&&"教学课堂试用期已结束,平台已暂停提供编程作业创建功能",children:(0,C.jsx)("span",{children:r||"新建作业"})})]})})]})]})]})})},ve="searchSortControllerContainer___tQmMS",xe="btn___ECfiD",we="btnSort___Y5Oja",ye="tips___fhrLg",be=function(e){var t=e.isAdmin,n=(e.dataSource,e.batchStatus,e.SortMenuName),o=e.setSortMenuName,i=e.onSearch,r=e.onSort,a=(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"}]),s="默认排序"===n;return(0,C.jsxs)("div",{className:ve,children:[(0,C.jsx)("div",{children:(0,C.jsx)(ce.Z,{dropdownRender:function(){return(0,C.jsx)(le.Z,{selectedKeys:[n],children:a.map((function(e){return(0,C.jsx)(le.Z.Item,{onClick:function(){return o((t=e).name),void r(t);var t},children:e.name},e.name)}))})},children:(0,C.jsx)("div",{children:(0,C.jsxs)("span",{className:"".concat(xe," ").concat(s?we:""),children:[(0,C.jsx)("i",{className:"iconfont icon-paixu font14 mr5"}),n]})})})}),s&&(0,C.jsx)(ue.Z,{title:"优先按照调整排序结果展示,未设置排序时,按照创建时间降序排列",children:(0,C.jsx)("span",{className:ye,children:(0,C.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2"})})}),(0,C.jsx)(O.Z.Search,{allowClear:!0,placeholder:"请输入名称进行搜索",onSearch:i,style:{width:220,marginLeft:"auto"}})]})},ke="bottomControlContainer___kLlgA",je="moveCategory___lgwfd",_e=n(78386),Ce=function(e){var t,n=e.buttonDataSource,o=e.onClick,r=(0,d.useContext)(it),s=r.allSelect,l=r.setAllSelect,c=r.setSelectArrs,p=r.dataSource,h=r.selectArrs,f=r.useBatchStatus,g=r.dispatch,x=r.params,y=r.getData,b=r.detailLeftMenus,k=r.main_category_id,_=r.setSelectArrsAll,S=(0,d.useState)(!1),T=u()(S,2),A=(T[0],T[1]),L=(0,d.useState)(""),P=u()(L,2),N=P[0],Z=P[1];b.course_modules&&(t=b.course_modules.filter((function(e){return"program_homework"===e.type}))[0]);var B=(0,C.jsx)("div",{className:je,onMouseLeave:function(e){return A(!1)},children:(0,C.jsxs)(le.Z,{onClick:function(){var e=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.item,n=t.key,t.keyPath,t.domEvent,""!=h){e.next=4;break}return m.ZP.error("请选择你要操作的任务"),e.abrupt("return",null);case 4:return e.next=6,(0,j.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),y(),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,C.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",children:(0,C.jsx)(O.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(!(""!==N&&e.category_name.indexOf(N)<0))return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(le.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,C.jsx)(le.Z.Item,{style:{marginLeft:20},className:"multi-llipsis1e",children:e.category_name},e.category_id)}))]})})),(0,C.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:k,type:"program_homework"}}})},children:"新建子目录..."})]})});return(0,C.jsx)("div",{className:ke,children:(0,C.jsxs)(I.Z,{wrap:!1,align:"middle",justify:"space-between",style:{height:"100%"},children:[(0,C.jsx)(D.Z,{flex:1,children:(0,C.jsxs)(I.Z,{wrap:!1,align:"middle",gutter:8,children:[(0,C.jsx)(D.Z,{children:(0,C.jsxs)(W.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?_(w()(p)):_([])},children:["全选本页(",h.length,""]})}),(0,v.GJ)()&&(0,C.jsx)(D.Z,{children:(0,C.jsx)(ce.Z,{placement:"top",menu:{items:n,onClick:function(e){var t=e.key;o({key:t})}},children:(0,C.jsx)(F.ZP,{type:"primary",icon:(0,C.jsx)("i",{className:"iconfont icon-piliangcaozuo3"}),children:"批量操作"})})}),(0,C.jsx)(D.Z,{children:(0,C.jsx)(F.ZP,{type:"primary",onClick:function(){var e={courseId:x.id,container_type:"program_homework"};x.categoryId&&(e.category_id=x.categoryId),g({type:"classroomList/getAllTaskList",payload:e}),g({type:"classroomList/setActionTabs",payload:{key:"调整排序"}})},icon:(0,C.jsx)("i",{className:"iconfont icon-tiaozhengpaixu2"}),children:"调整排序"})}),(0,v.GJ)()&&(0,C.jsx)(D.Z,{children:(0,C.jsx)(ce.Z,{placement:"topLeft",dropdownRender:function(){return B},getPopupContainer:function(e){return e.parentNode},children:(0,C.jsxs)(F.ZP,{type:"primary",icon:(0,C.jsx)("i",{className:"iconfont icon-yidongmulu"}),children:["移动到目录 ",(0,C.jsx)(_e.Z,{})]})})})]})}),(0,C.jsx)(D.Z,{children:(0,C.jsx)(F.ZP,{type:"primary",ghost:!0,onClick:function(){c([]),f(!1)},children:"取消操作"})})]})})},Se=n(61998),Te={listContainer:"listContainer___vU05G",info:"info___fXyuU",title:"title___fItHS",left:"left___MFkuv",right:"right___JT8Xj",flexBox:"flexBox___n8e_m",detail:"detail___HXdq0",iconV:"iconV___CwPu5",shixunTag:"shixunTag___oYTPp"},Ae=n(65463),Le=n(19421),Pe=function(e){var t,n,o,r,s,c,h,f,x,y,b,_,S,T,A=e.dataSource,L=e.params,P=e.classroomList,N=e.manageAllGroup,Z=e.user,B=e.getData,M=(0,d.useContext)(it),E=(M.batchStatus,M.selectArrs),I=M.setSelectArrs,D=M.selectArrsAll,R=M.setSelectArrsAll,G=M.dispatch,H=(0,p.useParams)(),z=(0,d.useState)(!1),F=u()(z,2),Y=F[0],V=F[1],U=(0,d.useRef)(),K=(0,d.useState)([]),J=u()(K,2),q=J[0],Q=J[1];H=l()(l()(l()({},L),H),{},{category:null===(t=H)||void 0===t?void 0:t.categoryId}),(0,d.useEffect)((function(){Q([]),V(!1)}),[]);var X=[{title:"班级",dataIndex:"course_group_name",key:"course_group_name"},{title:"状态",dataIndex:"status",key:"status",width:80,filters:[{text:"未开始",value:"未开始"},{text:"提交中",value:"提交中"},{text:"补交中",value:"补交中"},{text:"已截止",value:"已截止"},{text:"未发布",value:"未发布"}],onFilter:function(e,t){return 0===t.status.indexOf(e)}},{title:"提交情况",dataIndex:"statistics",key:"statistics",width:80,render:function(e){var t,n;return"--"===e?e:(0,C.jsxs)("span",{children:[(0,C.jsx)("span",{children:null==e||null===(t=e.split("/"))||void 0===t?void 0:t[0]})," / ",(0,C.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"===H.sort_by?"desc"===H.sort_direction?"descend":"ascend":null},{title:"截止时间",dataIndex:"end_time",key:"end_time",sorter:!0,showSorterTooltip:!1,sortOrder:"end_time"===H.sort_by?"desc"===H.sort_direction?"descend":"ascend":null},{title:"补交时间",dataIndex:"late_time",key:"late_time",sorter:!0,showSorterTooltip:!1,sortOrder:"late_time"===H.sort_by?"desc"===H.sort_direction?"descend":"ascend":null},{title:"分班老师",dataIndex:"teachers",key:"teachers",width:150,ellipsis:{showTitle:!1},render:function(e){return"--"!==e&&e?(0,C.jsx)("span",{title:e,children:e}):"--"}}];function $(){return ee.apply(this,arguments)}function ee(){return(ee=a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.ZP)("/api/homework_commons/".concat(A.homework_id,"/group_settings_statistics.json"),{method:"get",params:l()({},H)});case 2:t=e.sent,Q(t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,C.jsxs)("div",{className:Te.listContainer,onClick:function(e){e.stopPropagation(),(!(0,v.GJ)()||(0,v.GJ)()&&U.current&&!U.current.contains(e.target))&&((0,v.dE)()?(0,g.xg)("/classrooms/".concat(H.coursesId,"/program_homework/").concat(A.homework_id,"/detail?tabs=1")):(0,g.xg)("/classrooms/".concat(H.coursesId,"/program_homework/").concat(A.homework_id,"/detail")))},children:[(0,v.GJ)()&&(0,C.jsx)("span",{ref:U,children:(0,C.jsx)(W.Z,{onClick:function(e){e.stopPropagation()},style:{padding:"10px"},checked:E.includes(A.homework_id),onChange:function(){return e=A.homework_id,void(E.includes(e)?(I(E.filter((function(t){return t!==e}))),R(D.filter((function(t){return t.homework_id!==e})))):(I([].concat(w()(E),[e])),R([].concat(w()(D),[A]))));var e}})}),(0,C.jsxs)("div",{className:Te.info,children:[(0,C.jsxs)("div",{className:Te.title,children:[(0,C.jsxs)("div",{className:Te.left,style:(0,v.dE)()?{paddingRight:(null==A?void 0:A.challenge_count)-(null==A?void 0:A.finished_challenge_count)?60:140}:{},children:[(0,v.GJ)()&&(0,C.jsx)(Ae.Z,{value:null===(n=A.status)||void 0===n?void 0:n[0],children:(0,C.jsx)(g.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:A.status})}),(0,v.dE)()&&(0,C.jsx)(g.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:A.status}),(0,C.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,C.jsx)(p.Link,{target:"_blank",to:"/classrooms/".concat(H.coursesId,"/program_homework/").concat(A.homework_id,"/detail").concat((0,v.dE)()?"?tabs=1":""),children:A.name})})]}),(0,C.jsxs)("div",{className:Te.right,children:[(0,v.GJ)()&&"未发布"===(null==A||null===(o=A.status)||void 0===o?void 0:o[0])&&(0,C.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){var n,o,r,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.stopPropagation(),t.preventDefault(),2!==(null==Z||null===(n=Z.userInfo)||void 0===n?void 0:n.user_status)){e.next=5;break}return(0,Le.Rd)(),e.abrupt("return");case 5:if(!(0,v.Rm)()||null!==(o=P.AssistantObject)&&void 0!==o&&null!==(o=o.hack)&&void 0!==o&&o.can_publish){e.next=8;break}return m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),e.abrupt("return");case 8:(a=g.cX.getItem("".concat(null==Z||null===(r=Z.userInfo)||void 0===r?void 0:r.login).concat((0,v.GJ)()?"Teacher":"Student"),"ProgramHomework"))&&(H.sort_by=null==a?void 0:a.type,H.sort_direction=null==a?void 0:a.direction),G({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==A?void 0:A.homework_id],selectArrsAll:[A],params:l()({},H),type:2,manage_all_group:N}});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:(0,C.jsxs)("aside",{className:Te.flexBox,style:{marginRight:"16px"},children:[(0,C.jsx)("i",{className:"iconfont icon-yishezhifabushijian1"}),(0,C.jsx)("div",{children:"发布"})]})}),(0,v.dE)()&&(0,C.jsxs)("div",{className:Te.actionIcon,children:[(null==A?void 0:A.challenge_count)-(null==A?void 0:A.finished_challenge_count)==0&&(0,C.jsx)("i",{className:"iconfont icon-yiwancheng1"}),!(null!==(r=A.status)&&void 0!==r&&r.includes("已截止"))&&!A.status.includes("导入")&&(0,C.jsxs)("aside",{onClick:function(){var e=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.stopPropagation(),e.next=3,(0,j.ZP)("/api/problems/".concat(null==A?void 0:A.start_identifier,"/start.json"),{method:"get"});case 3:(n=e.sent)&&(window.open("/myproblems/".concat(null==n?void 0:n.identifier,"?type=1")),localStorage.setItem("program_homework",[H.coursesId,A.homework_id]));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),className:Te.flexBox,style:{marginRight:16},children:[(0,C.jsx)("i",{className:"iconfont icon-kaishixuexi font14"}),(0,C.jsx)("div",{children:"开始学习"})]}),((null===(s=A.status)||void 0===s?void 0:s.includes("已截止"))||(null===(c=A.status)||void 0===c?void 0:c.includes("导入")))&&(0,C.jsxs)("aside",{className:Te.flexBox,style:{marginRight:16},children:[(0,C.jsx)("i",{className:"iconfont icon-chakanzuoye font14"}),(0,C.jsx)("div",{children:"查看作业"})]})]}),(0,v.GJ)()&&(0,C.jsx)(ce.Z,{placement:"bottomCenter",overlayClassName:Te.dro,dropdownRender:function(){return(0,C.jsxs)(le.Z,{children:[!A.status.includes("导入")&&(0,C.jsx)(le.Z.Item,{style:{textAlign:"center"},children:(0,C.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){var n,o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.stopPropagation(),t.preventDefault(),2!==(null==Z||null===(n=Z.userInfo)||void 0===n?void 0:n.user_status)){e.next=5;break}return(0,Le.Rd)(),e.abrupt("return");case 5:if(!(0,v.Rm)()||null!==(o=P.AssistantObject)&&void 0!==o&&null!==(o=o.hack)&&void 0!==o&&o.can_publish){e.next=8;break}return m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),e.abrupt("return");case 8:console.log("params--",H),G({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==A?void 0:A.homework_id],selectArrsAll:[A],params:l()({},H),type:2,manage_all_group:N}});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即发布"})},1),!A.status.includes("导入")&&(0,C.jsx)(le.Z.Item,{style:{textAlign:"center"},children:(0,C.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.stopPropagation(),t.preventDefault(),!(0,v.Rm)()||null!==(n=P.AssistantObject)&&void 0!==n&&null!==(n=n.hack)&&void 0!==n&&n.can_stop){e.next=5;break}return m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),e.abrupt("return");case 5:G({type:"classroomList/setActionTabs",payload:{key:"立即截止",selectArrs:[null==A?void 0:A.homework_id],selectArrsAll:[A],params:l()({},H),type:2}});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即截止"})},2),(0,C.jsx)(le.Z.Item,{style:{textAlign:"center"},children:(0,C.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),n=null==A?void 0:A.name,k.Z.confirm({centered:!0,icon:null,okText:"确定",cancelText:"取消",title:"重命名",content:(0,C.jsx)("div",{children:(0,C.jsx)(O.Z,{defaultValue:n,maxLength:60,showCount:!0,onChange:function(e){return n=e.target.value}})}),onOk:function(){var e=a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.ZP)("/api/homework_commons/".concat(null==A?void 0:A.homework_id,"/alter_name.json"),{method:"post",body:{name:n}});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(m.ZP.success("操作成功"),B());case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"重新命名"})},30),A.status.includes("导入")&&(0,C.jsx)(le.Z.Item,{style:{textAlign:"center"},children:(0,C.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),G({type:"classroomList/setActionTabs",payload:{key:"补充成绩",name:null==A?void 0:A.name,id:null==A?void 0:A.homework_id,type:"hack"}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"补充成绩"})},23),A.status.includes("导入")&&(0,C.jsx)(le.Z.Item,{style:{textAlign:"center"},children:(0,C.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){var n,o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.stopPropagation(),t.preventDefault(),!(0,v.Rm)()||null!==(n=P.AssistantObject)&&void 0!==n&&null!==(n=n.hack)&&void 0!==n&&n.can_delete){e.next=5;break}return m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),e.abrupt("return");case 5:G({type:"classroomList/setActionTabs",payload:{key:"删除",selectArrs:[null==A?void 0:A.homework_id],selectArrsAll:D,params:H,status:null==A||null===(o=A.status)||void 0===o?void 0:o[0]}});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即删除"})},22),!A.status.includes("导入")&&(0,C.jsx)(le.Z.Item,{style:{textAlign:"center"},children:(0,C.jsx)(p.Link,{target:"_blank",onClick:function(e){e.stopPropagation()},to:"/classrooms/".concat(H.coursesId,"/program_homework/").concat(A.homework_id,"/detail?tabs=3"),children:"高级设置"})},6)]})},children:(0,C.jsxs)("aside",{onClick:function(e){return e.stopPropagation()},className:Te.flexBox,style:{cursor:"default"},children:[(0,C.jsx)("i",{className:"iconfont icon-gengduo4"}),(0,C.jsx)("div",{children:"更多"})]})})]})]}),(0,C.jsx)("div",{className:Te.detail,children:(0,v.GJ)()&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("span",{className:"c-grey-333 mr20",children:A.author}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(null==A||null===(h=A.status)||void 0===h?void 0:h[0])&&!!A.uncommit_count&&(0,C.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,C.jsx)("span",{className:"mr5",children:"未做题"}),A.uncommit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(null==A||null===(f=A.status)||void 0===f?void 0:f[0])&&!!A.commit_count&&(0,C.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,C.jsx)("span",{className:"mr5",children:"已做题"}),A.commit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(null==A||null===(x=A.status)||void 0===x?void 0:x[0])&&!!A.compelete_count&&(0,C.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,C.jsx)("span",{className:"mr5",children:"已完成"}),A.compelete_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(null==A||null===(y=A.status)||void 0===y?void 0:y[0])&&(0,C.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,C.jsx)("span",{className:"mr5",children:"发布时间"}),A.publish_time]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(null==A||null===(b=A.status)||void 0===b?void 0:b[0])&&(0,C.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,C.jsx)("span",{className:"mr5",children:"截止时间"}),A.end_time]}),["已结束"].includes(null==A||null===(_=A.status)||void 0===_?void 0:_[0])&&(0,C.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,C.jsx)("span",{className:"mr5",children:"结束时间"}),A.status_time]}),!(null==A||!A.late_time)&&"--"!==(null==A?void 0:A.late_time)&&(0,C.jsxs)("span",{className:"c-grey-999",children:[(0,C.jsx)("span",{className:"mr5",children:"补交截止时间"}),null==A?void 0:A.late_time]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(null==A||null===(S=A.status)||void 0===S?void 0:S[0])&&(0,C.jsxs)("span",{className:Te.iconV,onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),Y||$(),V(!Y);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,C.jsx)("i",{className:"iconfont icon-".concat(Y?"shouqi":"xiala2")})," "]})]})}),(0,C.jsxs)("div",{className:Te.content,children:[(0,v.dE)()&&(0,C.jsxs)("span",{className:Te.infoStuIcon,children:[(0,C.jsx)("span",{className:"c-grey-333",children:A.author}),"已截止"===(null==A||null===(T=A.status)||void 0===T?void 0:T[0])&&!(null==A||!A.status_time)&&(0,C.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,C.jsx)("i",{className:"iconfont icon-shengyushijian font12 mr5"})," ",null==A?void 0:A.status_time]}),(0,C.jsxs)("span",{className:"ml20 c-grey-999",children:[(0,C.jsx)("i",{className:"iconfont icon-wanchengjindu font12 mr5"}),null==A?void 0:A.commit_count,"/",null==A?void 0:A.all_count]}),(0,C.jsxs)("span",{className:"ml20 c-grey-999",children:[(0,C.jsx)("i",{className:"iconfont icon-shijian1 font12 mr5"}),null==A?void 0:A.publish_time," 至 ",null==A?void 0:A.end_time]})]}),(0,v.GJ)()&&"未发布"!==A.status&&Y&&q.length>5&&(0,C.jsx)(Se.Z,{scroll:{y:240},onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:q,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(H.sort_by=n.field),n.order||(H.sort_direction="asc"),"ascend"===n.order&&(H.sort_direction="asc"),"descend"===n.order&&(H.sort_direction="desc"),n.order||(H.sort_direction="asc"),$()},columns:X}),(0,v.GJ)()&&"未发布"!==A.status&&Y&&q.length<6&&q.length>0&&(0,C.jsx)(Se.Z,{onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:q,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(H.sort_by=n.field),n.order||(H.sort_direction="asc"),"ascend"===n.order&&(H.sort_direction="asc"),"descend"===n.order&&(H.sort_direction="desc"),n.order||(H.sort_direction="asc"),$()},columns:X})]})]})]})},Ne="bg___KWyBO",Ze="otherHomeworkWrap___WlvHv",Be="otherHomeworkContainer___Qfj2O",Me="flex___q8ATC",Ee="search___xedy7",Ie="content___VSdQb",De="listItem___u6wwP",Oe="info___vvX3a",Re="title___FtVL7",Ge="describe___g43sA",He="footer___TNGYY",ze=function(e){var t=e.courseId,n=e.type,o=e.onCancel,r=(0,p.useParams)(),s=(0,d.useState)({targerData:[],originData:[]}),c=u()(s,2),h=c[0],f=c[1],v=(0,d.useState)([]),x=u()(v,2),y=x[0],b=x[1],k=(0,d.useState)(!1),_=u()(k,2),S=_[0],T=_[1],A=function(){var e=a()(i()().mark((function e(){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(!0),e.next=3,(0,j.ZP)("/api/courses/".concat(t,"/homework_commons/impersonal_list.json"),{method:"get",params:{type:n}});case 3:o=e.sent,T(!1),f({targerData:o.homeworks,originData:o.homeworks});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,d.useEffect)((function(){A()}),[]);var L=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(!0),t={homework_common_ids:y},r.categoryId&&(t=l()(l()({},t),{},{category_id:r.categoryId})),e.next=5,(0,j.ZP)("/api/courses/".concat(r.coursesId,"/homework_commons/create_collaborators.json"),{method:"POST",body:t});case 5:(n=e.sent)&&n.homework_ids.length>0&&(m.ZP.success("提交成功"),o()),T(!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,C.jsx)("div",{className:"animated fadeInUp fast ".concat(Ze),children:(0,C.jsxs)("div",{className:Be,children:[(0,C.jsx)("div",{className:Ee,children:(0,C.jsx)(O.Z.Search,{size:"middle",enterButton:"搜索",onSearch:function(e){var t=h.originData.filter((function(t){return t.name.indexOf(e)>-1}));f(l()(l()({},h),{},{targerData:t}))},placeholder:"请输入图文作业名称进行查询"})}),(0,C.jsx)("div",{className:Ie,children:h.targerData.map((function(e){return(0,C.jsxs)("div",{className:"".concat(De," mb10"),children:[(0,C.jsx)(W.Z,{checked:y.includes(e.id),onChange:function(t){return function(e,t){e.target.checked?b([].concat(w()(y),[t])):b(y.filter((function(e){return e!==t})))}(t,e.id)}}),(0,C.jsxs)("div",{className:Oe,children:[(0,C.jsxs)("div",{className:"".concat(Me," mb10"),style:{justifyContent:"space-between"},children:[(0,C.jsx)("div",{className:Re,children:e.name}),(0,C.jsx)("div",{children:(0,C.jsx)(F.ZP,{type:"primary",ghost:!0,onClick:function(){return(0,g.xg)("/classrooms/".concat(r.coursesId,"/common_homework/").concat(e.id,"/detail"))},children:"查看作业"})})]}),(0,C.jsx)("div",{className:"mb20 font14 c-grey-999 ".concat(Ge),children:e.description}),(0,C.jsxs)("div",{className:"font12",children:[(0,C.jsx)("span",{className:"c-grey-333 mr20",children:e.user.name}),(0,C.jsxs)("span",{className:"c-grey-999",children:["创建时间:",e.created_at]})]})]})]},e.id)}))}),(0,C.jsxs)("div",{className:He,children:[(0,C.jsx)(F.ZP,{type:"primary",ghost:!0,onClick:o,children:"取消"}),(0,C.jsx)(F.ZP,{type:"primary",disabled:0===y.length||S,onClick:function(){L()},children:"确定"})]})]})})},Fe=n(20208),We=n(52352),Ye=n(75774),Ve=n(57809),Ue=n(57930),Ke=n(71418),Je=n(33656),qe=n.n(Je),Qe=n(1058),Xe=["classroomList","dispatch","user","getData"];G().extend(qe());var $e=function(e){var t,n,o,i,r=e.data,a=e.value,s=e.onChange,c=(0,d.useState)({leftSearch:"",rigthSearch:""}),p=u()(c,2),m=p[0],h=p[1],f=(0,d.useState)([]),g=u()(f,2),v=g[0],x=g[1];return(0,d.useEffect)((function(){x((null==a?void 0:a.length)>0?null==r?void 0:r.filter((function(e){return null==a?void 0:a.includes(null==e?void 0:e.id)})):[])}),[a]),(0,C.jsxs)("div",{style:{display:"flex",flexWrap:"nowrap",gap:"20px",height:"400px"},children:[(0,C.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,C.jsx)(W.Z,{indeterminate:(null==v?void 0:v.length)>0&&(null==v?void 0:v.length)<(null==r?void 0:r.length),checked:(null==v?void 0:v.length)==(null==r?void 0:r.length),onChange:function(e){s(e.target.checked?null==r?void 0:r.map((function(e){return null==e?void 0:e.id})):[])},children:"全选"}),(0,C.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,C.jsx)(O.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:m.leftSearch,onChange:function(e){h(l()(l()({},m),{},{leftSearch:e.target.value}))}}),(0,C.jsx)("div",{className:"mt20 ml20 mb20",style:{overflow:"auto"},children:0!==(null===(t=m.leftSearch?null==r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.leftSearch)})):r)||void 0===t?void 0:t.length)?(0,C.jsx)(W.Z.Group,{value:a,onChange:function(e){s(e)},children:(0,C.jsx)(J.Z,{direction:"vertical",children:null===(n=m.leftSearch?null==r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.leftSearch)})):r)||void 0===n?void 0:n.map((function(e,t){return(0,C.jsx)(W.Z,{value:e.id,children:null==e?void 0:e.name},t)}))})}):(0,C.jsx)(ne.Z,{styles:{margin:"0 auto"}})})]})]}),(0,C.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,C.jsxs)("div",{children:["已选择",(null==v?void 0:v.length)||0,"个分班"]}),(0,C.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,C.jsx)(O.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:m.rigthSearch,onChange:function(e){h(l()(l()({},m),{},{rigthSearch:e.target.value}))}}),(0,C.jsx)("div",{className:"mt20 ml20 mb20 pr20",style:{display:"flex",flexDirection:"column",gap:"10px",overflow:"auto"},children:0!==(null===(o=m.rigthSearch?null==v?void 0:v.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.rigthSearch)})):v)||void 0===o?void 0:o.length)?null===(i=m.rigthSearch?null==v?void 0:v.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.rigthSearch)})):v)||void 0===i?void 0:i.map((function(e,t){return(0,C.jsxs)(I.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,C.jsx)(D.Z,{children:null==e?void 0:e.name}),(0,C.jsx)(D.Z,{children:(0,C.jsx)("i",{className:"iconfont icon-piliangshanchu2 font16 current",style:{color:"#3061D0"},onClick:function(){s(null==a?void 0:a.filter((function(t){return t!==(null==e?void 0:e.id)})))}})})]},t)})):(0,C.jsx)(ne.Z,{styles:{margin:"0 auto"}})})]})]})]})},et=(0,p.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,o,r,s,c,h=e.classroomList,f=e.dispatch,v=(e.user,e.getData),x=(b()(e,Xe),(0,p.useParams)()),w=E.Z.useForm(),y=u()(w,1)[0],j=E.Z.useWatch("penalty_type",y),_="批量补交"===(null==h||null===(t=h.actionTabs)||void 0===t?void 0:t.key),S=(0,Qe.U)(oe.c_,l()(l()({},x),null==h||null===(n=h.actionTabs)||void 0===n?void 0:n.params)),T=u()(S,4),A=T[1],L=T[2],P=T[3],N=(0,Qe.U)(oe.nP,{course_id:null==x?void 0:x.coursesId,homework_ids:null==h||null===(o=h.actionTabs)||void 0===o?void 0:o.selectArrs}),Z=u()(N,4),B=Z[2],M=Z[3],R=(0,Qe.U)(oe.sm,{course_id:null==x?void 0:x.coursesId,homework_ids:null==h||null===(r=h.actionTabs)||void 0===r?void 0:r.selectArrs}),H=u()(R,3),z=H[1],F=H[2],W=function(){var e=a()(i()().mark((function e(){var t=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:{},B({}),e.next=4,L({page:1,limit:2e4,homework_id:1===h.actionTabs.type?"":h.actionTabs.selectArrs[0]});case 4:e.sent;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,d.useEffect)((function(){_&&W()}),[_]),(0,C.jsxs)(k.Z,{centered:!0,title:null==h||null===(s=h.actionTabs)||void 0===s?void 0:s.key,width:800,open:_,cancelText:"暂不补交",okText:"开启补交",onCancel:function(){f({type:"classroomList/setActionTabs",payload:{}})},destroyOnClose:!0,confirmLoading:z,onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y.submit();case 1:case"end":return e.stop()}}),e)}))),children:[(0,C.jsx)("div",{className:"p10 pl20 pr20 c-orange-ff7 mb20",style:{background:"#F6F7F9"},children:"规则说明:补交截止时间必须晚于作业截止时间;当班级阶段进入“补交中”则不可变更作业截止时间、不可关闭补交;当作业状态为未发布或者作业已开启统一补交时,新批量补交规则不生效。"}),(0,C.jsxs)(E.Z,{form:y,colon:!1,size:"large",initialValues:{unified_late:!1,penalty_type:2,late_minus_score:20},onFinish:function(){var e=a()(i()().mark((function e(t){var n,o,r,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F((null==P||null===(n=P.course_groups)||void 0===n?void 0:n.length)>0?{unified_late:(null==P||null===(o=P.course_groups)||void 0===o?void 0:o.length)<=0,allow_late_settings:[l()({},t)]}:l()({unified_late:(null==P||null===(r=P.course_groups)||void 0===r?void 0:r.length)<=0},t));case 2:0==(null==(a=e.sent)?void 0:a.status)&&(m.ZP.success("补交设置成功"),f({type:"classroomList/setActionTabs",payload:{}}),v&&v());case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,C.jsxs)(I.Z,{wrap:!1,gutter:20,children:[(0,C.jsx)(D.Z,{flex:1,children:(0,C.jsx)(E.Z.Item,{label:"补交扣分",name:"late_minus_score",rules:[{required:!0,validator:function(e,t,n){return 2===j&&t>100?Promise.reject((0,C.jsx)("span",{style:{marginLeft:100},children:"请重新输入范围0-100"})):Promise.resolve()}},{required:!0,message:(0,C.jsx)("span",{style:{marginLeft:100},children:"请输入补交扣分"})}],children:(0,C.jsx)(O.Z,{placeholder:"请输入补交扣分",min:0,type:"number",suffix:1==j?"分":"%",max:1===j?Number.MAX_SAFE_INTEGER:100,addonBefore:(0,C.jsx)(E.Z.Item,{name:"penalty_type",noStyle:!0,normalize:function(e){return y.setFieldsValue({late_minus_score:2==e?20:5}),e},children:(0,C.jsx)(Ve.default,{style:{width:100},options:[{value:2,label:"百分比"},{value:1,label:"分值"}]})})})})}),(0,C.jsx)(D.Z,{flex:"390px",children:(0,C.jsx)(E.Z.Item,{label:"补交截止时间",name:"late_time",rules:[{required:!0,validator:function(e,t,n){return t&&G()(t).startOf("minute")<=G()().startOf("minute")?Promise.reject("作业补交截止时间必须晚于此刻"):t&&G()(t).startOf("minute")<=G()(null==M?void 0:M.max_late_time).startOf("minute")?(m.ZP.warning("补交截止时间不能小于选中作业中最晚作业截止时间:".concat(null==M?void 0:M.max_late_time)),Promise.reject("")):Promise.resolve()}},{required:!0,message:"请先设置补交截止时间"}],children:(0,C.jsx)(Ue.default,{placeholder:"请选择截止时间",style:{width:"100%"},disabledDate:function(e){return(0,g.BO)(e,{startTime:null==M?void 0:M.max_late_time})},disabledTime:function(e){return(0,g.hv)(e,{compared:null==M?void 0:M.max_late_time})},format:"YYYY-MM-DD HH:mm",showTime:{showSecond:!1,defaultValue:G()("00:00:00","HH:mm:ss")}})})})]}),(null==P||null===(c=P.course_groups)||void 0===c?void 0:c.length)>0&&(0,C.jsx)(Ke.Z,{spinning:A,children:(0,C.jsx)(E.Z.Item,{name:"group_id",rules:[{required:!0,message:"请先选择班级"}],children:(0,C.jsx)($e,{data:(null==P?void 0:P.course_groups)||[],onChange:function(e){B({group_ids:e})}})})})]})]})})),tt=n(5112),nt=n(26830),ot=function(e){var t=e.styles,n=void 0===t?{}:t,o=e.onSelect,i=e.params,r=e.onClick,a=(0,d.useState)(!1),s=u()(a,2),c=s[0],m=s[1],h=(0,d.useState)(""),f=u()(h,2),g=f[0],v=f[1];(0,d.useEffect)((function(){m(!1),v("")}),[]);return(0,C.jsxs)("section",{className:"tc animated fadeIn",style:l()(l()({},{color:"#999",margin:"200px auto"}),n),children:[(0,C.jsx)("img",{src:nt.z3}),(0,C.jsxs)("p",{className:"mt20 font14",children:["编程作业是由多个编程试题组成可用于ACM模式竞赛也可作为平常练习",(0,C.jsx)("br",{}),"点击下方按钮,开始新建编程作业"]}),(0,C.jsx)("div",{style:{marginTop:"30px"},children:(0,C.jsx)(F.ZP,{onClick:r,type:"primary",style:{width:"128px",height:"40px",marginRight:"20px",borderRadius:"4px"},children:"新建作业"})}),c&&(0,C.jsx)(k.Z,{open:!0,centered:!0,title:"新建作业",onCancel:function(){return m(!1)},onOk:function(){"1"===g&&p.history.push("/classrooms/".concat(i.coursesId,"/common_homework/").concat(i.categoryId,"/add")),"2"===g&&(o(),m(!1),v(""))},children:(0,C.jsxs)("div",{children:[(0,C.jsx)("div",{children:(0,C.jsx)(tt.ZP,{value:"1",style:{marginTop:"15px"},checked:"1"===g,onClick:function(){return v("1")},children:"新建图文作业"})}),(0,C.jsx)("div",{children:(0,C.jsx)(tt.ZP,{value:"2",style:{marginTop:"15px"},checked:"2"===g,onClick:function(){return v("2")},children:"选用资源"})})]})})]})},it=(0,d.createContext)({selectArrs:[]}),rt=(0,p.connect)((function(e){var t=e.classroomList,n=e.loading,o=e.user;return{classroomList:t,globalSetting:e.globalSetting,user:o,loading:n.effects}}))((function(e){var t,n,o,r,s=e.classroomList,c=e.loading,x=e.dispatch,w=e.user,y=(0,p.useLocation)(),b=(0,p.useParams)(),k=(0,d.useState)((function(){return l()(l()({},b),{},{id:b.coursesId,limit:20})})),j=u()(k,2),_=j[0],S=j[1],N=(0,p.useSearchParams)(),B=u()(N,1)[0],M=(0,d.useState)([]),E=u()(M,2),I=E[0],D=E[1],O=(0,d.useState)(!1),R=u()(O,2),G=R[0],z=R[1],F=(0,d.useState)(!1),W=u()(F,2),Y=W[0],V=W[1],U=(0,d.useState)([]),K=u()(U,2),J=K[0],q=K[1],Q=(0,d.useState)(!1),X=u()(Q,2),$=X[0],ee=X[1],te=(0,d.useState)("默认排序"),oe=u()(te,2),re=oe[0],ae=oe[1],le=w.userInfo,ce=s.detailCommonHomeworksList,ue=s.detailLeftMenus,de=(s.detailTopBanner,s.taskList);_.type=1,_.categoryId?_.category=_.categoryId:delete _.category,(0,d.useEffect)((function(){var e=B.get("tabs");e&&void 0!==e&&((0,v.GJ)()?_.status=e:_.order=e)}),[y.search]),(0,d.useEffect)((function(){"0"===B.get("tabs")&&(_.status="0",_.page=1),_.status=B.get("tabs")}),[B.get("tabs")]),(0,d.useEffect)((function(){S(l()(l()({},_),b))}),[null==b?void 0:b.categoryId]),(0,d.useEffect)((function(){var e,t;if(b.categoryId?(_.categoryId=b.categoryId,_.category=b.categoryId):delete _.category,null!=w&&null!==(e=w.userInfo)&&void 0!==e&&e.login){var n;x({type:"classroomList/getAssistantPermissions",payload:{course_id:_.id}});var o=g.cX.getItem("".concat(null==w||null===(n=w.userInfo)||void 0===n?void 0:n.login).concat((0,v.GJ)()?"Teacher":"Student"),"ProgramHomework");o&&(_.sort_by=null==o?void 0:o.type,_.sort_direction=null==o?void 0:o.direction,ae(null==o?void 0:o.name));var i=B.get("tabs");i&&void 0!==i&&((0,v.GJ)()?_.status=i:_.order=i),pe({})}else if(null!=w&&null!==(t=w.userInfo)&&void 0!==t&&t.username){var r=B.get("tabs");r&&void 0!==r&&((0,v.GJ)()?_.status=r:_.order=r),pe({})}}),[null==w||null===(t=w.userInfo)||void 0===t?void 0:t.login,null==y?void 0:y.pathname]),(0,d.useEffect)((function(){"清除选择数据"===s.actionTabs.key&&(D([]),q([])),"目录重命名成功"===s.actionTabs.key&&pe()}),[s.actionTabs.key]),(0,d.useEffect)((function(){D([])}),[ce]),(0,d.useEffect)((function(){V(!1)}),[_.categoryId]),(0,d.useEffect)((function(){ce&&ce.homeworks&&(I.length===ce.homeworks.length&&I.length>0?z(!0):I.length!==ce.homeworks.length&&z(!1))}),[I]);var pe=function(){D([]),q([]),x({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},_),{},{type:5})})};ue.course_modules&&s.detailLeftMenus.course_modules.filter((function(e){return"common_homework"===e.type}))[0];["删除","立即发布","立即截止","收藏"].filter((function(e){return null!=le&&le.main_site?e:"收藏"!==e})).filter((function(e){return!!(0,v.GJ)()||"删除"!==e}));var me=function(){x({type:"shixunHomeworks/setActionTabs",payload:{key:"题库选用",params:_}})},he=null===(n=[{key:"publish",label:"批量发布",icon:(0,C.jsx)("i",{className:"iconfont icon-fabu5"}),isShow:!0},{key:"deadline",label:"批量截止",icon:(0,C.jsx)("i",{className:"iconfont icon-piliangjiezhi2"}),isShow:!0},{key:"batchpay",label:"批量补交",icon:(0,C.jsx)("i",{className:"iconfont icon-buka"}),isShow:!0},{key:"delete",label:"批量删除",icon:(0,C.jsx)("i",{className:"iconfont icon-piliangshanchu2"}),isShow:(0,v.GJ)()||(0,v.Rm)()}].filter((function(e){return null==e?void 0:e.isShow})))||void 0===n?void 0:n.map((function(e){return delete e.isShow,e})),fe=function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x({type:"classroomList/updateTaskPosition",payload:{category_id:_.categoryId,courseId:_.id,task_ids:t,container_type:"program_homework"}});case 2:pe();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ve=(0,d.useMemo)((function(){var e=[];return de.length>0&&(e=de.map((function(e){var t;return{user_name:e.user_name,task_name:e.task_name,task_id:e.task_id,category:e.category,status:null==e||null===(t=e.status)||void 0===t?void 0:t[0]}}))),e}),[de]);return(0,C.jsx)(it.Provider,{value:{params:_,batchStatus:Y,selectArrs:I,setSelectArrs:D,allSelect:G,dataSource:ce.homeworks||[],detailLeftMenus:ue,main_category_id:ce.main_category_id||"",selectArrsAll:J,setAllSelect:z,useBatchStatus:V,dispatch:x,getData:pe,setSelectArrsAll:q},children:(0,C.jsxs)("section",{children:[(0,C.jsxs)("aside",{className:Ne,children:[(0,C.jsx)(ge,{isLoading:c["classroomList/getClassroomTeacherCommonList"],tabDataSource:(0,v.GJ)()?[{name:"全部",id:0,total:ce.all_count||0},{name:"未发布",id:1,total:ce.unpublished_count||0},{name:"未开始",id:4,total:ce.not_start_count||0},{name:"进行中",id:2,total:ce.in_progress_count||0},{name:"已截止",id:3,total:ce.overed_count||0}]:[{name:"全部",id:0},{name:"提交中",id:2},{name:"补交中",id:10},{name:"已截止",id:3}],classroomList:s,isAdmin:(0,v.GJ)(),dispatch:x,type:null==ce?void 0:ce.main_category_name,TooltipTitle:_.categoryId?"目录重命名":"新建子目录",categoryId:_.categoryId,user:w,dropdownMenu:[{name:"新建编程作业",id:"1"},{name:"导入外部成绩",id:"3"}],isShowRightControl:"未分配目录"!==(0,g.Oo)(null==ue?void 0:ue.course_modules,_.categoryId),onTabMenuClick:function(e){void 0!==e.id&&((0,v.GJ)(),_.status=e.id),V(!1),_.page=1,p.history.replace("".concat(y.pathname,"?tabs=").concat(e.id)),pe(_)},defaultSelectedKeys:[B.get("tabs")?B.get("tabs"):"0"],onTooltipTitleClick:function(){x({type:"classroomList/setActionTabs",payload:{key:_.categoryId?"目录重命名":"添加目录",params:_,selectArrs:{category_name:null==ce?void 0:ce.category_name,category_id:(null==ce?void 0:ce.category_id)||(null==ce?void 0:ce.main_category_id)},cb:function(){pe()}}})},onDropdownMenuClick:function(e){var t;!(0,v.Rm)()||null!==(t=s.AssistantObject.hack)&&void 0!==t&&t.can_create?"1"===e?p.history.push("/classrooms/".concat(_.coursesId,"/program_homework/").concat(_.categoryId,"/add")):"2"===e?me():"3"===e&&x({type:"classroomList/setActionTabs",payload:{key:"导入外部成绩",type:"hack"}}):m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),(0,C.jsx)(be,{dataSource:ce.homeworks||[],isAdmin:(0,v.GJ)(),batchStatus:Y,SortMenuName:re,setSortMenuName:ae,onSearch:function(e){_.search=e.trim(),_.page=1,pe()},onSort:function(e){var t;_.sort_by=e.type,_.sort_direction=e.direction,_.page=1,g.cX.setItem("".concat(null==w||null===(t=w.userInfo)||void 0===t?void 0:t.login).concat((0,v.GJ)()?"Teacher":"Student"),e,"ProgramHomework"),pe(_)},onBatch:function(e){return V(e)}})]}),0===(null==ce?void 0:ce.all_count)&&(0,v.GJ)()?!c[(0,v.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,C.jsx)(ot,{params:_,dispatch:x,onClick:function(){return p.history.push("/classrooms/".concat(_.coursesId,"/program_homework/").concat(_.categoryId,"/add"))},onSelect:me}):(null==ce?void 0:ce.homeworks)&&0===ce.homeworks.length&&!c[(0,v.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,C.jsx)(ne.Z,{}),(0,C.jsx)("aside",{className:"minH500 skt-loading relative pb40 mb30",children:!c[(0,v.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("aside",{className:"animated fadeIn",children:[null==ce||null===(o=ce.homeworks)||void 0===o?void 0:o.map((function(e,t){return(0,C.jsx)(Pe,{user:w,dataSource:e,params:_,classroomList:s,manageAllGroup:null==ce?void 0:ce.manage_all_group,getData:pe},t)})),!c[(0,v.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,C.jsx)("aside",{className:"tc mb50 mt30",children:(null==ce?void 0:ce.query_total_count)>10&&(0,C.jsx)(h.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:function(e,t){_.page=e,pe()},defaultPageSize:20,defaultCurrent:1,current:_.page||1,total:(0,v.GJ)()?ce.query_total_count:ce.student_all_count})})]}),I.length>0&&(0,v.GJ)()&&(0,C.jsx)(f.Z,{offsetBottom:0,children:(0,C.jsx)(Ce,{buttonDataSource:he,onClick:function(e){var t,n,o,i;if(0===I.length)return m.ZP.error("请选择你要操作的任务"),!1;if(2!==(null==w||null===(t=w.userInfo)||void 0===t?void 0:t.user_status)||"publish"!==(null==e?void 0:e.key)){var r=e.label||"",a={key:r,selectArrs:I,selectArrsAll:J,type:["publish","deadline"].includes(e.key)?1:"",params:_};switch(e.key){case"publish":if(r="立即发布",(0,v.Rm)()&&(null===(n=s.AssistantObject)||void 0===n||null===(n=n.hack)||void 0===n||!n.can_publish))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");break;case"deadline":if(r="立即截止",(0,v.Rm)()&&(null===(o=s.AssistantObject)||void 0===o||null===(o=o.hack)||void 0===o||!o.can_stop))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");break;case"batchpay":r="批量补交";break;case"delete":if(r="删除",(0,v.Rm)()&&(null===(i=s.AssistantObject)||void 0===i||null===(i=i.hack)||void 0===i||!i.can_delete))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");break;case"collection":r="收藏"}x({type:"classroomList/setActionTabs",payload:l()(l()({},a),{},{key:r})})}else(0,Le.Rd)()}})})]})}),"批量补交"===(null==s||null===(r=s.actionTabs)||void 0===r?void 0:r.key)&&(0,C.jsx)(et,{getData:pe}),(0,C.jsx)(T,{onCallback:function(){return V(!1)}}),(0,C.jsx)(Fe.Z,{onOk:function(){pe()}}),(0,C.jsx)(We.Z,{onOk:function(){}}),(0,C.jsx)(A.Z,{onCallback:function(){return V(!1)},courseEndTime:null==ce?void 0:ce.course_end_time}),(0,C.jsx)(L.Z,{courseEndTime:null==ce?void 0:ce.course_end_time,courseId:b.coursesId,visible:"立即截止"===s.actionTabs.key,isBatch:2!==s.actionTabs.type,homeworkIds:s.actionTabs.selectArrs,successCallback:function(){V(!1),pe()}}),(0,C.jsx)(P,{}),(0,C.jsx)(Z,{onCallback:function(){return V(!1)}}),(0,C.jsx)(H,{onCallback:function(){return V(!1)}}),(0,C.jsx)(ie,{refreshList:pe}),(0,C.jsx)(se,{}),(0,C.jsx)(Ye.Z,{visible:"调整排序"===s.actionTabs.key,callback:fe,data:ve,onCancel:function(){x({type:"classroomList/setActionTabs",payload:{key:""}})}}),$&&(0,C.jsx)(ze,{courseId:_.coursesId,type:"1",onCancel:function(){return ee(!1)}})]})})}))},52352:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(59028),f=n(78241),g=n(43418),v=n(8591),x=n(61998),w=n(5296),y=n(92723),b=n(57102),k=n(18030),j=n(61186),_=n.n(j),C=n(21082),S=n(37712),T=h.Z.Dragger;t.Z=(0,w.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,o=e.dispatch,r=e.onOk,s=((0,w.useParams)(),f.Z.useForm()),c=p()(s,1)[0],d=(0,m.useState)(),h=p()(d,2),j=h[0],A=h[1],L=(0,m.useState)(!1),P=p()(L,2),N=P[0],Z=P[1],B={height:100,onRemove:function(){A("")},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 A(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,m.useEffect)((function(){c.setFieldsValue(a()(a()({},"publish_time",_()(_()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",_()(_()(new Date((0,C.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),[]),(0,S.jsx)(g.Z,{centered:!0,title:"补充成绩",open:"补充成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:N},onOk:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){c.resetFields(),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,S.jsxs)(f.Z,{form:c,onFinish:function(){var e=u()(l()().mark((function e(t){var i,a,s,u,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=j&&j.size){e.next=3;break}return v.ZP.info("请上传文件"),e.abrupt("return");case 3:return Z(!0),(i=new FormData).append("type",n.actionTabs.type),i.append("file",j),a=window.location.href.indexOf("exercise")>-1?"/api/exercises/".concat(n.actionTabs.id,"/supplement_score.json"):"/api/homework_commons/".concat(n.actionTabs.id,"/supplement_score.json"),e.next=10,(0,k.ZP)(a,{method:"post",body:i},!0);case 10:s=e.sent,Z(!1),0===(null==s?void 0:s.status)&&(r(),c.resetFields(),o({type:"classroomList/setActionTabs",payload:{}}),(null==s||null===(u=s.data)||void 0===u||null===(u=u.fail)||void 0===u?void 0:u.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,S.jsx)(x.Z,{pagination:!1,dataSource:null==s||null===(d=s.data)||void 0===d?void 0:d.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,C.FH)("",y.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,S.jsx)(f.Z.Item,{label:"作业名称",labelCol:{span:3},name:"name",children:n.actionTabs.name}),(0,S.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,S.jsxs)("div",{children:[(0,S.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,S.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,S.jsxs)("div",{children:[(0,S.jsx)("a",{download:"模版.xlsx",className:b.Z.downloadbutton,href:y.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,S.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,S.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,S.jsxs)(T,i()(i()({},B),{},{children:[(0,S.jsx)("a",{className:b.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,S.jsx)("br",{}),(0,S.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},20208:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(59028),f=n(78241),g=n(43418),v=n(8591),x=n(61998),w=n(92832),y=n(95237),b=n(43604),k=n(94001),j=n(57930),_=n(5296),C=n(16318),S=n(92723),T=n(57102),A=n(18030),L=n(63363),P=n(61186),N=n.n(P),Z=n(21082),B=n(37712),M=h.Z.Dragger;t.Z=(0,_.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,o=e.dispatch,r=e.onOk,s=(0,_.useParams)(),c=f.Z.useForm(),d=p()(c,1)[0],h=(0,m.useState)(),P=p()(h,2),E=P[0],I=P[1],D=(0,m.useState)(!1),O=p()(D,2),R=O[0],G=O[1],H={height:100,onRemove:function(){I("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:(t=u()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,m.useEffect)((function(){d.setFieldsValue(a()(a()({},"publish_time",N()(N()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",N()(N()(new Date((0,Z.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),["导入外部成绩"===n.actionTabs.key]),(0,B.jsx)(g.Z,{centered:!0,title:"导入外部成绩",open:"导入外部成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:R},onOk:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:d.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){d.resetFields(),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,B.jsxs)(f.Z,{form:d,colon:!1,onFinish:function(){var e=u()(l()().mark((function e(t){var i,a,c,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=E&&E.size){e.next=3;break}return v.ZP.info("请上传文件"),e.abrupt("return");case 3:return G(!0),(i=new FormData).append("name",t.name),i.append("type",n.actionTabs.type),i.append("category_id",(null==s?void 0:s.categoryId)||null),"exercise"===n.actionTabs.type?(i.append("time",t.time||""),i.append("total_score",t.total_score)):i.append("description",t.description||""),i.append("publish_time",N()(t.publish_time).format("YYYY-MM-DD HH:mm")),i.append("end_time",N()(t.end_time).format("YYYY-MM-DD HH:mm")),i.append("file",E),e.next=14,(0,A.ZP)("/api/courses/".concat(s.coursesId,"/export_external_score_homework.json"),{method:"post",body:i},!0);case 14:a=e.sent,G(!1),0===(null==a?void 0:a.status)&&(d.resetFields(),o({type:"classroomList/setActionTabs",payload:{}}),r(),(null==a||null===(c=a.data)||void 0===c||null===(c=c.fail)||void 0===c?void 0:c.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,B.jsx)(x.Z,{pagination:!1,dataSource:null==a||null===(u=a.data)||void 0===u?void 0:u.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,Z.FH)("",S.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,B.jsx)(f.Z.Item,{label:"exercise"!==n.actionTabs.type?"作业":"试卷名称",labelCol:{span:3},name:"name",rules:[{required:!0,message:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称")}],children:(0,B.jsx)(w.Z,{showCount:!0,placeholder:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称"),maxLength:60})}),"exercise"!==n.actionTabs.type&&(0,B.jsx)(f.Z.Item,{label:"作业描述",labelCol:{span:3},name:"description",children:(0,B.jsx)(C.Z,{watch:!0})}),"exercise"===n.actionTabs.type&&(0,B.jsxs)(y.Z,{style:{marginLeft:6},children:[(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"试卷总分",name:"total_score",rules:[{required:!0,message:"请填写试卷总分"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"试卷总分必须为正数"}],children:(0,B.jsx)(w.Z,{placeholder:"请输入试卷总分",style:{width:256},addonAfter:"分"})})}),(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"答题时长",labelCol:{span:6},name:"time",children:(0,B.jsx)(k.Z,{style:{width:"100%"},addonAfter:"分钟",placeholder:"请输入答题时长"})})})]}),(0,B.jsxs)(y.Z,{style:{marginLeft:6,marginBottom:12},children:[(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"开始时间",name:"publish_time",rules:[{required:!0,message:"请选择开始时间"}],children:(0,B.jsx)(j.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:256},disabledDate:function(e){return(0,L.Q8)(e)},disabledTime:function(e){return(0,L.d0)(e)},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})}),(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"结束时间",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"请选择结束时间"}],children:(0,B.jsx)(j.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:function(e){return(0,L.Q8)(e,"",d.getFieldValue("publish_time"))},disabledTime:function(e){return(0,L.d0)(e,d.getFieldValue("publish_time"))},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})})]}),(0,B.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,B.jsxs)("div",{children:[(0,B.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,B.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,B.jsxs)("div",{children:[(0,B.jsx)("a",{download:"模版.xlsx",className:T.Z.downloadbutton,href:S.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,B.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,B.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,B.jsxs)(M,i()(i()({},H),{},{children:[(0,B.jsx)("a",{className:T.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,B.jsx)("br",{}),(0,B.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},95335:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),u=n(92832),d=n(24905),p=n(95237),m="leftdiv___aBzsX",h="listClass___bxIEW",f="spantitle___v_Vc4",g="rightdiv___xWu4M",v=n(54313),x=n(37712),w=function(e){var t=e.data,n=(e.value,e.handleChangePage,e.setSelectedRowKeys),o=e.selectedRowKeys,r=(e.onChange,(0,c.useState)([])),s=l()(r,2),w=s[0],y=s[1],b=(0,c.useState)([]),k=l()(b,2),j=k[0],_=k[1],C=(0,c.useState)([]),S=l()(C,2),T=S[0],A=S[1],L=(0,c.useState)(1),P=l()(L,2),N=(P[0],P[1],(0,c.useState)()),Z=l()(N,2);Z[0],Z[1];return(0,c.useEffect)((function(){y(t),_([]),A([])}),[t]),(0,c.useEffect)((function(){n&&(_(o),A(o))}),[o]),(0,x.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,x.jsxs)("div",{className:m,children:[(0,x.jsx)(u.Z.Search,{size:"middle",onChange:function(){var e=a()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y(t.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(n.target.value)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),placeholder:"可输入班级名称查询"}),0===w.length&&(0,x.jsx)(v.Z,{styles:{margin:"70px auto"},customText:"暂无分班"}),(0,x.jsx)("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"},children:(0,x.jsx)(d.Z.Group,{value:j.map((function(e){return"".concat(e.id)})),onChange:function(e){n(w.filter((function(t){return e.includes("".concat(t.id))})))},style:{marginTop:"10px",flexDirection:"column"},children:w.map((function(e,t){return(0,x.jsx)(p.Z,{style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200},children:(0,x.jsx)(d.Z,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:e.is_published,value:"".concat(e.id),children:(0,x.jsxs)("div",{className:h,children:[(0,x.jsx)("span",{className:f,style:{width:e.is_published?"108px":"170px"},children:e.name}),e.is_published&&(0,x.jsx)("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"},children:"已发布"})]})})},e.id)}))})})]}),(0,x.jsxs)("div",{className:g,children:[(0,x.jsx)(u.Z.Search,{onChange:function(e){A(j.filter((function(t){return t.name.includes(e.target.value)})))},size:"middle",placeholder:"可输入班级名称查询"}),0===T.length&&(0,x.jsx)(v.Z,{styles:{margin:"70px auto"},customText:"暂未选择分班"}),T.length>0&&(0,x.jsx)("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"},children:(0,x.jsx)("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0},children:T.map((function(e,t){return(0,x.jsxs)(p.Z,{justify:"space-between",style:{marginTop:"10px"},children:[(0,x.jsx)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"},children:e.name}),(0,x.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){n(j.filter((function(t){return"".concat(t.id)!="".concat(e.id)})))}})]},e.id)}))})})]})]})}},75774:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301),p=n(43418),m=n(96865),h=n(95237),f=n(6848),g="wrap___KDoq2",v="tip___WEJuX",x="listWrap___IJDX4",w="li___r5con",y="nameWrap___PUyEz",b="name___xuUMY",k="tag___l5CW2",j=n(78018),_=n(5296),C=n(37712),S=function(e){var t,n,o=e.type,r=void 0===o?1:o,s=e.data,c=e.visible,S=e.callback,T=e.onCancel,A=(0,d.useState)([]),L=u()(A,2),P=L[0],N=L[1],Z=(0,_.useSelector)((function(e){return e.loading}));(0,d.useEffect)((function(){N(s)}),[JSON.stringify(s)]);var B=function(e){var t={};if(1===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"未开始":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"提交中":{background:"rgba(0,177,135,0.2)",color:"#00B187"},"已截止":{background:"rgba(229,51,51,0.2)",color:"#E53333"}}[e]}if(2===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"预发布":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"已发布":{background:"rgba(0,177,135,0.2)",color:"#00B187"}}[e]}return(0,C.jsx)("div",{className:k,style:l()({},t),children:e})},M=function(){var e=a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:S(P.map((function(e){return e.task_id})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,C.jsx)(p.Z,{centered:!0,destroyOnClose:!0,open:c,onCancel:T,onOk:M,confirmLoading:null==Z||null===(t=Z.effects)||void 0===t?void 0:t["classroomList/updateTaskPosition"],okText:"保存",title:"调整排序",width:850,children:(0,C.jsxs)("div",{className:g,children:[(0,C.jsxs)("div",{className:v,children:[(0,C.jsx)("i",{className:"iconfont icon-tishi9 font14 mr10"}),(0,C.jsx)("span",{children:"提示:请在列表中长按鼠标左键,进行拖放排序。完成排序后请点击“保存”"})]}),(0,C.jsx)(m.Z,{loading:null==Z||null===(n=Z.effects)||void 0===n?void 0:n["classroomList/getAllTaskList"],active:!0,className:"mt20",paragraph:{rows:5},children:(0,C.jsx)(j.Z5,{onDragEnd:function(e){return function(e,t){if(e.destination){var n=function(e,t,n){var o=Array.from(e),i=o.splice(t,1),r=u()(i,1)[0];return o.splice(n,0,r),o}(t,e.source.index,e.destination.index);N(n)}}(e,P)},children:(0,C.jsx)(j.bK,{droppableId:"droppable",children:function(e,t){return(0,C.jsxs)("div",l()(l()({ref:e.innerRef},e.droppableProps),{},{className:x,children:[P.map((function(e,t){return(0,C.jsx)(j._l,{draggableId:e.task_id.toString(),index:t,children:function(t,n){return(0,C.jsxs)("div",l()(l()(l()({ref:t.innerRef},t.draggableProps),t.dragHandleProps),{},{className:w,children:[(0,C.jsxs)(h.Z,{align:"middle",children:[(0,C.jsx)("div",{className:y,children:(0,C.jsx)(f.Z,{title:null==e?void 0:e.task_name,children:(0,C.jsx)("div",{className:b,children:null==e?void 0:e.task_name})})}),B(null==e?void 0:e.status)]}),(0,C.jsx)(h.Z,{align:"middle",className:"font12 mt10",children:(0,C.jsxs)("span",{className:"mr30 c-grey-666",children:["管理员",(0,C.jsx)("span",{className:"ml5 c-black",children:(null==e?void 0:e.user_name)||"--"})]})})]}))}},e.task_id)})),e.placeholder]}))}})})})]})})}},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return l},JZ:function(){return u},bN:function(){return m},jP:function(){return p},rO:function(){return c}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(18030);function l(e){return(0,s.U2)("libraries/".concat(e,".json"))}function c(){return(0,s.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,s.v_)("libraries.json",e)}function m(e,t){return(0,s.gz)("libraries/".concat(e,".json"),t)}},1058:function(e,t,n){"use strict";n.d(t,{U:function(){return p}});var o=n(7557),i=n.n(o),r=n(82242),a=n.n(r),s=n(41498),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301);function p(e,t){var n=(0,d.useState)(t),o=u()(n,2),r=o[0],s=o[1],c=(0,d.useState)(!1),p=u()(c,2),m=p[0],h=p[1],f=(0,d.useState)(),g=u()(f,2),v=g[0],x=g[1],w=function(){var n=l()(i()().mark((function n(o){var l,c,u,d=arguments;return i()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return l=d.length>1&&void 0!==d[1]&&d[1],c=l?t:a()(a()({},r),o),h(!0),s(c),n.next=6,e(c);case 6:return u=n.sent,h(!1),x(u),n.abrupt("return",u);case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return[r,m,w,v]}},57102: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"}},27666:function(e,t,n){"use strict";var o=n(26390),i=n(71783);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},r=function(){if(null==t){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];t=(0,i.Z)(n(o))}};return r.cancel=()=>{i.Z.cancel(t),t=null},r}},81228:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var o=n(79545),i=n(68550),r=n(17928),a=n(99487),s=n(59301),l=n(92310),c=n.n(l),u=n(28647),d=n(55405),p=n(27666),m=n(36355),h=n(83116),f=n(37613);const g=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var v=(0,h.Z)("Affix",(e=>{const t=(0,f.TS)(e,{zIndexPopup:e.zIndexBase+10});return[g(t)]}));function x(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function w(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function y(e,t,n){if(void 0!==n&&t.bottom<e.bottom+n){return n+(window.innerHeight-t.bottom)}}const b=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function k(){return"undefined"!=typeof window?window:null}var j;!function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"}(j||(j={}));let _=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,o.Z)(this,n),(e=t.apply(this,arguments)).state={status:j.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!==j.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!i)return;const r=e.getOffsetTop(),a=e.getOffsetBottom(),s=i();if(s){const t={status:j.None},i=x(e.placeholderNodeRef.current);if(0===i.top&&0===i.left&&0===i.width&&0===i.height)return;const l=x(s),c=w(i,l,r),u=y(i,l,a);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}):void 0!==u&&(t.affixStyle={position:"fixed",bottom:u,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}),t.lastAffix=!!t.affixStyle,o&&n!==t.lastAffix&&o(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:j.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,p.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,p.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const o=e.getOffsetTop(),i=e.getOffsetBottom(),r=t();if(r&&e.placeholderNodeRef.current){const t=x(r),a=x(e.placeholderNodeRef.current),s=w(a,t,o),l=y(a,t,i);if(void 0!==s&&n.top===s||void 0!==l&&n.bottom===l)return}}e.prepareMeasure()})),e}return(0,i.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:k}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:o,children:i}=this.props,r=c()(e&&o,{[n]:!!e});let a=(0,d.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return s.createElement(u.Z,{onResize:this.updatePosition},s.createElement("div",Object.assign({},a,{ref:this.placeholderNodeRef}),e&&s.createElement("div",{style:t,"aria-hidden":"true"}),s.createElement("div",{className:r,ref:this.fixedNodeRef,style:e},s.createElement(u.Z,{onResize:this.updatePosition},i))))}}]),n}(s.Component);_.contextType=m.E_;var C=(0,s.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:o}=e,{getPrefixCls:i}=(0,s.useContext)(m.E_),r=i("affix",n),[a,l]=v(r),u=Object.assign(Object.assign({},e),{affixPrefixCls:r,rootClassName:c()(o,l)});return a(s.createElement(_,Object.assign({},u,{ref:t})))}))},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var o=n(92310),i=n.n(o),r=n(59301),a=n(36355),s=n(17313),l=n(83116),c=n(37613);const u=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:i,textPaddingInline:r,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},(0,s.Wf)(e)),{borderBlockStart:`${i}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:r},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,l.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[u(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};var m=e=>{const{getPrefixCls:t,direction:n,divider:o}=r.useContext(a.E_),{prefixCls:s,type:l="horizontal",orientation:c="center",orientationMargin:u,className:m,rootClassName:h,children:f,dashed:g,plain:v,style:x}=e,w=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),y=t("divider",s),[b,k]=d(y),j=c.length>0?`-${c}`:c,_=!!f,C="left"===c&&null!=u,S="right"===c&&null!=u,T=i()(y,null==o?void 0:o.className,k,`${y}-${l}`,{[`${y}-with-text`]:_,[`${y}-with-text${j}`]:_,[`${y}-dashed`]:!!g,[`${y}-plain`]:!!v,[`${y}-rtl`]:"rtl"===n,[`${y}-no-default-orientation-margin-left`]:C,[`${y}-no-default-orientation-margin-right`]:S},m,h),A=r.useMemo((()=>"number"==typeof u?u:/^\d+$/.test(u)?Number(u):u),[u]),L=Object.assign(Object.assign({},C&&{marginLeft:A}),S&&{marginRight:A});return b(r.createElement("div",Object.assign({className:T,style:Object.assign(Object.assign({},null==o?void 0:o.style),x)},w,{role:"separator"}),f&&"vertical"!==l&&r.createElement("span",{className:`${y}-inner-text`,style:L},f)))}},51581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(59301),r=s(i),a=s(n(12708));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),o=void 0;if(this.props.useWindow){var i=document.documentElement||document.body.parentNode||document.body,r=void 0!==t.pageYOffset?t.pageYOffset:i.scrollTop;o=this.props.isReverse?r:this.calculateOffset(e,r)}else o=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;o<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,o=t.element,i=t.hasMore,a=(t.initialLoad,t.isReverse),s=t.loader,l=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return i&&(s?a?u.unshift(s):u.push(s):this.defaultLoader&&(a?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),r.default.createElement(o,c,u)}}]),t}(i.Component);l.propTypes={children:a.default.node.isRequired,element:a.default.node,hasMore:a.default.bool,initialLoad:a.default.bool,isReverse:a.default.bool,loader:a.default.node,loadMore:a.default.func.isRequired,pageStart:a.default.number,ref:a.default.func,getScrollParent:a.default.func,threshold:a.default.number,useCapture:a.default.bool,useWindow:a.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},26724:function(e,t,n){e.exports=n(51581)},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBV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