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