|
|
(self.webpackChunk=self.webpackChunk||[]).push([[83935,4977,4633],{93737:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(1565),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=n(68475),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},57703:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(1565),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},a=n(68475),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},35575:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},o=null,i=!1,r=!1,a=null,s=!1,l=null,c=null,d=0;d<arguments.length;d++){var u=arguments[d];if(null!==u)switch(_typeof(u)){case"number":t=u.toFixed(1);break;case"string":u.match(new RegExp("^[0-9]\\.[0-9]+$"))?t=u:a=u;break;case"object":void 0!==u.is3D?o=u:n=u;break;case"boolean":i=u,r=!0}}null===o&&(o={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},void 0===n.material_id||r||(i=!0)),null!==a&&void 0===n.id&&(n.id=a);var p="",m=!1,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,O(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(l=e,I(e,t))},e.getHTML5CodebaseVersion=function(){return 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",r=n.id,a=!1,l=0;l<arguments.length;l++){var c=arguments[l];"string"==typeof c?(c=c.toLowerCase()).match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?i=c:r=arguments[l]:"boolean"==typeof c?a=c:c instanceof HTMLElement&&(o=c)}function d(){if(s){i=E(i);var l=o||document.getElementById(r);if(l)if(e.removeExistingApplet(l,!1),void 0===n.width&&l.clientWidth&&(n.width=l.clientWidth),void 0===n.height&&l.clientHeight&&(n.height=l.clientHeight),n.width&&n.height||"html5"!==i||(delete n.width,delete n.height),f=i,"screenshot"===i)A(l,n);else{var c=!1;n.hasOwnProperty("playButton")&&n.playButton||n.hasOwnProperty("clickToLoad")&&n.clickToLoad?c=!0:n.hasOwnProperty("playButtonAutoDecide")&&n.playButtonAutoDecide&&(c=(!k()||t())&&j()),c?(f="screenshot",P(l,n,a,i)):N(l,n,a)}else console.log("possibly bug on ajax loading? ")}else setTimeout(d,200)}d()},e.getViews=function(){return o},e.isJavaInstalled=function(){return!1};var C=function(t){var i=function(){n.onError&&n.onError(),G("Error: Fetching material (id "+n.material_id+") failed.",n)},r=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",a="/materials/"+n.material_id+"?scope=basic";_("https://"+r+"/api/proxy.php?path="+encodeURIComponent(a),(function(r){var a=JSON.parse(r),s=a.elements?a.elements.filter((function(e){return"G"==e.type||"E"==e.type}))[0]:a;if(s&&s.url){n.fileName=s.url,S(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 S(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 _(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 r=e.childNodes[o],a=r.className;"applet_screenshot"===a?t?(r.style.display="block",f="screenshot"):r.style.display="none":"applet_scaler prerender"!==a&&(e.removeChild(r),i=a&&-1!=a.indexOf("appletParameters")?r.id:null,o--)}var s=void 0!==n.id?n.id:i,l=window[s];l&&"function"==typeof l.getBase64&&(l.remove(),window[s]=null)},e.refreshHitPoints=function(){if(b(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var T=function(e){return e&&"false"!==e},N=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 r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,s=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(b(h)<=4.4)T(n.showToolBar)&&(n.height-=7),T(n.showAlgebraInput)&&(n.height-=37),n.width<605&&T(n.showToolBar)&&(n.width=605,a=605);else{var d=100;(T(n.showToolBar)||T(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),d=T(n.showMenuBar)?245:155),a<d&&(n.width=d,a=d)}for(var u in r.style.border="none",r.style.display="inline-block",n)n.hasOwnProperty(u)&&"appletOnLoad"!==u&&r.setAttribute("data-param-"+u,n[u]);y&&r.setAttribute("data-param-fontscssurl",y),e.resize=function(){GGBAppletUtils.responsiveResize(t,n)},window.addEventListener("resize",(function(t){e.resize()}));var m="function"==typeof n.appletOnLoad?n.appletOnLoad:function(){};if(o||void 0===n.width){var f=document.createElement("div");f.className="applet_scaler",f.style.position="relative",f.style.display="block",f.appendChild(r),t.appendChild(f),n.appletOnLoad=function(t){e.resize(),m(t)}}else{n.hasOwnProperty("showSplash")||r.setAttribute("data-param-showSplash","false");var x=t.querySelector(".applet_scaler.prerender"),w=null!==x;if(w)k=x.querySelector(".ggb_preview");else{var k=Z(a,s,n.borderColor,!1);(x=document.createElement("div")).className="applet_scaler",x.style.position="relative",x.style.display="block",x.style.width=a+"px",x.style.height=s+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(x,"66%"),b(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)):r.appendChild(k),x.appendChild(r),w||t.appendChild(x),setTimeout((function(){e.resize()}),1)}function j(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),G("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 S=0;S<r.childNodes.length;S++){"TABLE"===r.childNodes[S].tagName&&(r.removeChild(r.childNodes[S]),S--)}if(null!==ggbHTML5LoadedScript){var _=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=_&&_.parentNode.removeChild(_)}var N=document.createElement("script"),A=function(){C(r,n)};N.src=p+g,ggbHTML5LoadedCodebaseIsWebSimple=v,ggbHTML5LoadedCodebaseVersion=h,ggbHTML5LoadedScript=N.src,G("GeoGebra HTML5 codebase loaded: '"+p+"'.",n),c||l&&"5.0"!=l?p.requirejs?__webpack_require__.e(76839).then(function(){var e=[__webpack_require__(28628)];A.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(N.onload=A,t.appendChild(N)):(v?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),A())}else C(r,n);n.height=s,n.width=a},A=function(t,n,o){var i=Z(n.width,n.height,n.borderColor,o),r=document.createElement("div");r.style.position="relative",r.style.display="block",r.style.width=n.width+"px",r.style.height=n.height+"px",r.className="applet_screenshot applet_scaler"+(o?" applet_screenshot_play":""),r.appendChild(i);var a=GGBAppletUtils.getScale(n,t,o);o?(t.appendChild(L()),window.GGBT_wsf_view||(t.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(r,"66%"),t.appendChild(r),1===a||isNaN(a)||(GGBAppletUtils.scaleElement(r,a),r.style.width=n.width+"px",r.style.height=n.height+"px",r.parentNode.style.width=n.width*a+"px",r.parentNode.style.height=n.height*a+"px"),e.resize=function(){B(t,i,r,o)},window.addEventListener("resize",(function(t){e.resize()})),e.resize()};function B(e,t,o,i){if(e.contains(t)){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if("fullscreencontent"!==e.id)return;window.GGBT_wsf_view.setCloseBtnPosition(e)}var r=GGBAppletUtils.getScale(n,e,i);null!==o.parentNode&&(isNaN(r)||1===r?(GGBAppletUtils.scaleElement(o,1),o.parentNode.style.width=n.width+"px",o.parentNode.style.height=n.height+"px"):(GGBAppletUtils.scaleElement(o,r),o.parentNode.style.width=n.width*r+"px",o.parentNode.style.height=n.height*r+"px")),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(e),"object"===_typeof(window.GGBT_ws_header_footer)&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}e.onExitFullscreen=function(e,t){t.appendChild(e)};var P=function(e,t,n,o){A(e,t,!0);for(var i=function(){var n=[];for(a=0;a<e.childNodes.length;a++)n.push(e.childNodes[a]);if(window.GGBT_wsf_view){var i=window.GGBT_wsf_view.renderFullScreen(e,t.id),r=document.getElementById("fullscreencontainer"),s=jQuery(e).find(".fullscreencontent");s.length>0?(i.remove(),s.attr("id","fullscreencontent").show(),jQuery(r).append(s),window.dispatchEvent(new Event("resize"))):N(i,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else f=o,N(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;a<n.length;a++)e.removeChild(n[a])},r=e.getElementsByClassName("ggb_preview_play"),a=0;a<r.length;a++)r[a].addEventListener("click",i,!1),r[a].addEventListener("ontouchstart",i,!1);"function"==typeof window.ggbAppletPlayerOnload&&window.ggbAppletPlayerOnload(e),j()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},L=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 r="lightgrey";void 0!==n&&(r="none"===n?"transparent":n),i.style.border="1px solid "+r;var a,s,l,c=document.createElement("img");if((c.style.position="relative",c.style.zIndex="1000",c.style.top="-1px",c.style.left="-1px",null!==x&&c.setAttribute("src",x),c.style.opacity=.7,null!==w)&&!o){(a=document.createElement("img")).style.position="absolute",a.style.zIndex="1001",a.style.opacity=1,c.style.opacity=.3,(s=360)>e/4*3&&(s=e/4*3),l=s/5.8,a.setAttribute("src",w),a.setAttribute("width",s),a.setAttribute("height",l);var d=(e-s)/2,u=(t-l)/2;a.style.left=d+"px",a.style.top=u+"px",i.appendChild(a)}return i.appendChild(c),i},E=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},M=["web","webSimple","web3d","tablet","tablet3d","phone"],I=function(e,t){if(h=e,t)O(h,!0);else{var r,a,s=!i;if(s){var l=b(h);!isNaN(l)&&l<4.4&&(s=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=h.indexOf("//");for(var d in a=c>0?h:0===c?r+h:"https://www.geogebra.org/apps/5.2.814.0/",M)if(h.slice(-1*M[d].length)===M[d]||h.slice(-1*(M[d].length+1))===M[d]+"/")return void O(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||o.is3D||o.AV||o.SV||o.CV||o.EV2||o.CP||o.PC||o.DA||o.FI||o.PV||T(n.showToolBar)||T(n.showMenuBar)||T(n.showAlgebraInput)||T(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",O(a,!1)}},O=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),m=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?M.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(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))}},G=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function D(){var e=t;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),I(e,!1),null!==c&&O(c,m),s=!0}return void 0!==n.material_id?C(D):D(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,o,i){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==o&&o,s=null!=e.noScaleMargin&&e.noScaleMargin,l=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,o,i,r){var a=null;if(null!=r&&""!=r)for(var s=e.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+r+" ")>-1){a=s;break}s=s.parentNode}var l=0,c=0,d=0,u=0,p=0,m=0,f=0;if(a)l=a.offsetWidth,c=Math.max(o?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),d=l):(l=window.innerWidth,c=window.innerHeight,d=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=d<=480?10:30):(m=h.left,p=d<=480?10:30),u=m+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(u=40,f=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(u=0,f=40))}return e&&((void 0===n||!n)&&t>0&&t+u<l?l=t:l-=u,"object"!==_typeof(window.GGBT_wsf_view)||!window.GGBT_wsf_view.isFullscreen()||void 0!==n&&n||(c-=f)),{width:l,height:c}}(t,e.width,n,l,a&&window.GGBT_wsf_view||s,i),d=parseInt(c.width),u=e.width,p=e.height;if(void 0===u){var m=t.querySelector(".appletParameters");m&&(u=m.offsetWidth,p=m.offsetHeight)}var f=d/u,h=a?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,r=1,a=!1;return e.hasOwnProperty("allowUpscale")&&(a=e.allowUpscale),e.hasOwnProperty("scale")&&(r=parseFloat(e.scale),(isNaN(r)||null===r||0===r)&&(r=1),r>1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(i=n(e,t,a,o,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=e.getBoundingClientRect(),i=(t-o.width)/2,r=(n-o.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=i+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var s=o(r,n);e()&&a.setAttribute("data-param-scale",s);for(var l=null,c=0;c<n.childNodes.length;c++)if(void 0!==n.childNodes[c].className&&n.childNodes[c].className.match(/^applet_scaler/)){l=n.childNodes[c];break}if(null!==l&&null!==l.querySelector(".noscale"))return;var d=void 0!==r.id?r.id:"ggbApplet",u=window[d];null!=u&&u.recalculateEnvironments||null===l||l.className.match(/fullscreen/)||(l.parentNode.style.transform="",isNaN(s)||1===s?(t(l,1),l.parentNode.style.width=r.width+"px",l.parentNode.style.height=r.height+"px"):(l.parentNode.style.width=r.width*s+"px",l.parentNode.style.height=r.height*s+"px",t(l,s))),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&i(n),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(a).parents(".content-added-content"))}},isFlexibleWorksheetEditor:e,positionCenter:i,getScale:o,scaleElement:t}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var e=n.location.search;return-1!=e.indexOf(J)||-1!=e.indexOf(K)}function q(e,t){}q(H,I),webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{},t;function u(){return v(),t}function v(){if(!t){var e=o.createElement(Q);if(e.id=L,e.style.cssText=R+S,e.tabIndex=-1,o.body.appendChild(e),t=e.contentWindow.document,-1==navigator.userAgent.indexOf(T)){t.open();var n=document.compatMode==U?V:W;t.write(n+X),t.close()}}}function w(e){q(cb,eb),function(e){function t(){return _typeof(o.readyState)==Y?_typeof(o.body)!=Y&&null!=o.body:/loaded|complete/.test(o.readyState)}var n=t();if(n)e();else{o.addEventListener&&o.addEventListener(Z,r,!1);var i=setInterval((function(){r()}),$)}function r(){if(!n){if(!t())return;n=!0,e(),o.removeEventListener&&o.removeEventListener(Z,r,!1),i&&clearInterval(i)}}}((function(){var t,n,o,i;t=e,n=u(),o=n.body,(i=n.createElement(_)).language=ab,i.crossOrigin=W,i.src=t,webModule.__errFn&&(i.onerror=function(){webModule.__errFn(L,new Error(bb+t))}),o.appendChild(i),q(cb,db)}))}function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var o=e.lastIndexOf(tb,Math.min(n,t));return o>=O?e.substring(O,o+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;n<t.length;++n)if(-1!=t[n].src.indexOf(xb))return e(t[n].src);return W}()),n==W&&(n=function(){var e=o.getElementsByTagName(yb);return e.length>O?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,o=[],i=[];function a(e){var t=i[e](),n=o[e];if(t in n)return t;var a=[];for(var s in n)a[n[s]]=s;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in o[e]},webModule.__getPropMap=function(){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(e=Cb).indexOf(Db);-1!=s&&(t=parseInt(e.substring(s+P),$),e=e.substring(O,s))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},o=e[webModule.__softPermutationId],i=O;i<o.length;i++){var r=o[i];n[r[O]]=r[P]}return n}},webModule.__startLoadingFragment=function(e){return C(e)},webModule.__installRunAsyncCode=function(e){var t=u(),n=t.body,o=t.createElement(_);o.language=ab,o.text=e,n.appendChild(o),n.removeChild(o)},A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},"function"!=typeof window.web3d&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),"function"!=typeof window.webSimple&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet}else console.warn("deployggb.js was loaded twice")})()},53842:function(e,t,n){"use strict";function o(e){var t=!0;if(e.length>0){for(var n=0;n<e.length;n++)if(0==e[n].compile_success||!e[n].compile_success){t=!1;break}}else t=!1;return t}function i(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],o=0;o<e.length;o++){var i=e[o],r=t?"".concat(t,"/").concat(i.name):"".concat(i.name);n.push({title:i.name,type:i.type,isLeaf:"tree"!==i.type,key:r})}return n}function r(e,t,n){for(var o=0;o<e.length;o++){var i=e[o];if(i.key===t){i.children=n;break}i.children&&r(i.children,t,n)}return e}function a(e,t,n){var o;return function(){var i=this,r=arguments,a=function(){o=null,n||e.apply(i,r)},s=n&&!o;clearTimeout(o),o=setTimeout(a,t),s&&e.apply(i,r)}}n.d(t,{Ax:function(){return r},Ds:function(){return a},KI:function(){return s},SI:function(){return i},f1:function(){return o}});var s=n(57357).Z.API_SERVER},82413:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});n(7557),n(41498);var o=n(82100),i=n.n(o),r=n(29186),a=n.n(r),s=n(13720),l=n.n(s),c=n(80619),d=n.n(c),u=n(47074),p=n.n(u),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){d()(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 a()(n,[{key:"componentDidMount",value:function(){this.drawPic()}},{key:"randomColor",value:function(e,t){var n=this.randomNum(e,t),o=this.randomNum(e,t),i=this.randomNum(e,t);return"rgb(".concat(n,", ").concat(o,", ").concat(i,")")}},{key:"drawText",value:function(e,t,n){e.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);var o=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);e.font=o+"px SimHei";var i=(this.state.contentWidth-40)/(this.state.code.length-1),r=10;n>0&&(r=10+n*i);var a=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);o>40&&(a=40);var s=this.randomNum(-10,10);e.translate(r,a),e.rotate(s*Math.PI/180),e.fillText(t,0,0),e.rotate(-s*Math.PI/180),e.translate(-r,-a)}},{key:"drawLine",value:function(e){for(var t=0;t<1;t++)e.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),e.beginPath(),e.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.stroke()}},{key:"drawDot",value:function(e){for(var t=0;t<100;t++)e.fillStyle=this.randomColor(0,255),e.beginPath(),e.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),e.fill()}},{key:"randomCode",value:function(){for(var e=this,t="",n=0;n<this.state.codeLength;n++){t+="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890"[Math.floor(57*Math.random())]}this.setState({code:t},(function(){var t=e.canvas.current.getContext("2d");t.textBaseline="bottom",t.fillStyle=e.randomColor(e.state.backgroundColorMin,e.state.backgroundColorMax),t.fillRect(0,0,e.state.contentWidth,e.state.contentHeight);for(var n=0;n<e.state.code.length;n++)e.drawText(t,e.state.code[n],n);e.drawLine(t),e.drawDot(t)}))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.width,o=void 0===n?300:n;return(0,b.jsxs)("div",{className:y()(x,t),style:{width:o},children:[(0,b.jsx)("aside",{children:(0,b.jsx)(v.Z,{value:this.state.value,onChange:this.changeCode,placeholder:"请输入图片中的验证码"})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),(0,b.jsx)("div",{className:"current",onClick:this.reloadPic,children:"看不清?换一张"})]})]})}}]),n}(h.Component),j=k},87359:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),d="imageDimensions___a7crR",u="img___Kroat",p="fullWidth___c492T",m=n(92310),f=n.n(m),h=n(71418),g=n(2859),v=n(90694),x=n(41282),w=n(37712),y=function(e){var t=e.data,n=e.className,o=e.fullWidth,r=e.style,s=void 0===r?{}:r,m=e.onClose,y=e.onOk,b=e.showFullTools,k=e.noAssociationId,j=(0,c.useRef)(null),C=(0,c.useRef)(null),S=(0,c.useState)(!1),_=l()(S,2),T=_[0],N=_[1],A=(0,c.useState)("正在加载中"),B=l()(A,2),P=B[0],L=B[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=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),L("正在加载中"),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(){M()},N(!1),L("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),E=function(){var e=a()(i()().mark((function e(n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),L("正在保存中"),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:N(!1),L("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),M=function(){C.current=new g.hP(j.current),C.current.addEventListener("render",E),C.current.addEventListener("beforeclose",m),b&&(C.current.availableMarkerTypes=C.current.ALL_MARKER_TYPES,C.current.uiStyleSettings.redoButtonVisible=!0,C.current.uiStyleSettings.notesButtonVisible=!0,C.current.uiStyleSettings.zoomButtonVisible=!0,C.current.uiStyleSettings.zoomOutButtonVisible=!0,C.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=C.current.uiStyleSettings,C.current.show(),null!=t&&t.snapshotData&&C.current.restoreState(t.snapshotData),setTimeout((function(){var e;(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,w.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,w.jsxs)("div",{className:f()(d,n,o?p:""),style:s,children:[(0,w.jsx)(h.Z,{spinning:T,tip:P,style:{position:"absolute"}}),(0,w.jsx)("img",{className:u,ref:j})]})})}},25229:function(e,t,n){"use strict";n.d(t,{z:function(){return _},Z:function(){return T}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(37205),d=n.n(c),u=n(79800),p=n.n(u),m=n(59301),f=n(46651),h=n(8591),g=n(43418),v=n(3113),x=n(57357),w=n(34497),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 S=f.Z.Dragger;function _(e){var t=[];return e&&e.length>0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+b+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var T=function(e){var t=e.value,n=e.onChange,o=e.action,r=e.data,s=e.className,c=e.maxSize,u=void 0===c?150:c,_=e.title,T=void 0===_?"上传附件":_,N=e.showRemoveModal,A=void 0!==N&&N,B=e.accept,P=void 0===B?"":B,L=e.additionalText,Z=e.isDragger,E=e.number,M=void 0===E?1e3:E,I=e.aloneClear,O=void 0!==I&&I,G=e.realTimeRemove,D=void 0===G||G,z=(0,m.useState)(!1),R=p()(z,2),H=R[0],F=R[1],W=(0,m.useState)(t||[]),V=p()(W,2),U=V[0],Y=V[1],K=(0,m.useState)(1),q=p()(K,2),J=q[0],Q=q[1];(0,m.useEffect)((function(){t&&(1===J&&Y(d()(t)),Q(2),M===(null==t?void 0:t.length)&&F(!0))}),[t]);var X,$=function(){setTimeout((function(){U.pop(),Y(d()(U))}),500)},ee={multiple:!0,disabled:H,accept:P,withCredentials:!0,fileList:U,beforeUpload:function(e,t){var n=e.size/1024/1024;return U.concat(t).length>M?(U.pop(),Y(d()(U)),h.ZP.error("最多只能上传".concat(M,"个文件")),O?Promise.reject():($(),!1)):n<u||(h.ZP.error("该文件无法上传。超过文件大小限制(".concat(u,"MB).")),O?Promise.reject():($(),!1))},data:r,action:o||"".concat(x.Z.API_SERVER,"/api/attachments.json"),onChange:function(e){var t,o;(U="removed"===e.file.status?e.fileList:(0,C.uniqBy)([].concat(d()(e.fileList),d()(U)),"uid"),"done"!==e.file.status||-1!==(null===(t=e.file)||void 0===t||null===(t=t.response)||void 0===t?void 0:t.status))?(U.length>=M?F(!0):F(!1),Y(d()(U)),U=U.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(b)&&(e.name="".concat(e.name).concat(b).concat(k(e.size))),l()({},e)})),console.log("info:",e,U),n(U)):h.ZP.error(null===(o=e.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message)},onRemove:(X=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(D){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,w.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!A){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var o;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(o=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,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)(S,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",{}),"(单个文件最大限制为",u,"MB)"," "]}),L]})),!Z&&(0,y.jsxs)(f.Z,l()(l()({},ee),{},{children:[(0,y.jsxs)(v.ZP,{disabled:H,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:["(单个文件最大",u,"MB)"," "]})]}))]})}},17890:function(e,t,n){"use strict";n(59301);var o=n(6848),i=n(37712);t.Z=function(e){var t=e.value,n=e.visible,r=void 0===n||n,a=e.children;return(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(o.Z,{placement:"topLeft",title:{"未发布":"作业尚未发布","未开始":"作业已发布,尚未到达开始作业时间","提交中":"作业进行中,所有考生可提交作业","补交中":"作业进行中,所有学生可补交作业","进行中":"作业进行中,部分班级正在作业提交中/补交中","已截止":"到达作业截止时间,作业已结束","已结束":"课堂已结束"}[t],children:(0,i.jsx)("span",{children:a})}):a})}},71550:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),s=n(59301),l=n(57809),c=n(78241),d=n(3113),u=n(89780),p=n.n(u),m=(n(49324),n(20615),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,r=e.options,l=void 0===r?{}:r,c=(0,s.useRef)(),d=(0,s.useState)(),u=a()(d,2),f=u[0],h=u[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"),r=a()(o,2),u=r[0],p=r[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:u})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(d.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(d.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},77162:function(e,t,n){"use strict";n.d(t,{Z:function(){return Te}});var o=n(91232),i=n.n(o),r=n(79800),a=n.n(r),s=n(85573),l=n.n(s),c=n(59301),d=n(89780),u=n.n(d),p=n(76374),m=(n(49324),n(6313),n(25717),n(99498),n(25419),n(67549),n(36653)),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,r=e.className,a=void 0===r?"":r,s=e.children;return(0,f.jsxs)("a",{title:n,className:a,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,r=e.fullScreen,a=e.insertTemp,s=e.hidetoolBar,l=e.extraUse,c=[].concat(x,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,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,a&&(0,f.jsx)("li",{children:(0,f.jsx)(w,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),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(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},b=n(30043),k=n(78241),j=n(98135),C=n(3113),S={labelCol:{span:4},wrapperCol:{span:20}},_=function(e){var t=e.callback,n=e.onCancel;return(0,f.jsxs)(k.Z,v()(v()({},S),{},{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(71550),N=n(8591),A=n(53842),B=k.Z.useForm,P={width:280,marginRight:10},L={labelCol:{span:5},wrapperCol:{span:19}},Z=function(e){var t=e.callback,n=e.onCancel,o=B(),i=a()(o,1)[0],r=(0,c.useRef)();function s(e,t){-1!==e.status?i.setFieldsValue({src:"/api/attachments/".concat(e.id),type:t.type}):N.ZP.error(e.message)}return(0,f.jsxs)(k.Z,v()(v()({form:i},L),{},{className:"upload-image-panel",onFinish:function(e){t(e,r.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:P})}),(0,f.jsx)(E,{onFileChange:function(e){var t=e.target.files[0];r.current=t,M(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 E(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 M(e,t){if(!e)throw new String("没有文件");var n=new FormData;n.append("editormd-image-file",e),n.append("file_param_name","editormd-image-file"),n.append("byxhr","true");var o=new window.XMLHttpRequest;o.withCredentials=!0,o.addEventListener("load",(function(n){t(JSON.parse(n.target.responseText),e)}),!1),o.addEventListener("error",(function(e){console.error(e)}),!1),o.open("POST","".concat(A.KI,"/api/attachments.json")),o.send(n)}var I=n(95237),O=n(87359),G=function(e){var t=e.callback,n=e.onCancel,o=document.createElement("canvas"),i=o.getContext("2d");o.width=1e3,o.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,o.width,o.height);var r=o.toDataURL("image/png");return(0,f.jsx)(I.Z,{style:{height:"100vh"},children:(0,f.jsx)(O.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},D=n(7557),z=n.n(D),R=n(41498),H=n.n(R),F=n(37205),W=n.n(F),V=n(12378);function U(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(U,go.CommandHandler),U.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},U.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")},U.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")},U.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")},U.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")},U.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")}},U.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")}},U.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o<n.length-1;o++){var i=n[o],r=i.actualBounds.y+i.actualBounds.height+e;n[o+1].move(new go.Point(i.actualBounds.x,r))}t.commitTransaction("align Column")},U.prototype.alignRow=function(e){void 0===e&&(e=0),e=parseFloat(e);var t=this.diagram;t.startTransaction("align Row");var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o<n.length-1;o++){var i=n[o],r=i.actualBounds.x+i.actualBounds.width+e;n[o+1].move(new go.Point(r,i.actualBounds.y))}t.commitTransaction("align Row")},U.prototype.canRotate=function(e){var t=this.diagram;return null!==t&&!t.isReadOnly&&!t.isModelReadOnly&&!(t.selection.count<1)},U.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())},U.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){U._assignZOrder(e,t.get(e.layer)+1)})),e.commitTransaction("pullToFront")},U.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){U._assignZOrder(e,t.get(e.layer)-1-U._findGroupDepth(e))})),e.commitTransaction("pushToBack")},U._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){U._assignZOrder(e,t+1,n)}))},U._findGroupDepth=function(e){if(e instanceof go.Group){var t=0;return e.memberParts.each((function(e){t=Math.max(t,U._findGroupDepth(e))})),t+1}return 0},U.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)}},U.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},U.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")},U.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))},U.prototype._findNearestPartTowards=function(e){var t=this.diagram.selection.first();if(null===t)return null;for(var n=t.actualBounds.center,o=this._getAllParts(),i=1/0,r=t,a=0;a<o.length;a++){var s=o[a];if(s!==t&&s.canSelect()){var l=s.actualBounds.center,c=n.directionPoint(l),d=this._angleCloseness(c,e);if(d<=45){var u=n.distanceSquaredPoint(l);(u*=1+Math.sin(d*Math.PI/180))<i&&(i=u,r=s)}}}return r},U.prototype._angleCloseness=function(e,t){return Math.min(Math.abs(t-e),Math.min(Math.abs(t+360-e),Math.abs(t-360-e)))},U.prototype._arrowKeyTree=function(){var e=this.diagram,t=e.selection.first();if(t instanceof go.Node){var n=e.lastInput;if("Right"===n.key)if(t.isTreeLeaf);else if(t.isTreeExpanded){null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i)}else e.commandHandler.canExpandTree(t)&&e.commandHandler.expandTree(t);else if("Left"===n.key){if(!t.isTreeLeaf&&t.isTreeExpanded)e.commandHandler.canCollapseTree(t)&&e.commandHandler.collapseTree(t);else null!==(r=t.findTreeParentNode())&&e.select(r)}else if("Up"===n.key){if(null!==(r=t.findTreeParentNode()))if((s=(a=this._sortTreeChildrenByY(r)).indexOf(t))>0){for(var o=a.elt(s-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(r)}else if("Down"===n.key){var i;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i);else for(;null!==t;){var r,a,s;if(null===(r=t.findTreeParentNode()))break;if((s=(a=this._sortTreeChildrenByY(r)).indexOf(t))<a.length-1){e.select(a.elt(s+1));break}t=r}}var l=e.selection.first();null!==l&&e.scrollToRect(l.actualBounds)}},U.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},U.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},U.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(U.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(U.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 Y=U,K=(n(79286),n(85160)),q=n(43418),J=n(43604),Q=n(90694),X="myPaletteDiv___Xjz2I",$="maxH60___Pd4Re";window.go=V;var ee=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(),s=(0,c.useRef)(!1),l=(0,c.useRef)(!1),d=(0,c.useState)(0),u=a()(d,2),p=u[0],m=u[1],h=function(){var e=H()(z()().mark((function e(){var t,i;return z()().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)(q.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)(J.Z,{flex:1,children:"插入流程图"}),(0,f.jsx)(J.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:r})]}),(0,f.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,f.jsx)(K.FI,{initDiagram:function(){var e=V.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",s="#d533ff",l="#7d33ff",c="#ff6233",d="#ffffff",u="#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,r=(new V.Point).setRectSpot(i.actualBounds,t);r.subtract(i.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(i.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=o.copyNodeData(i.data);o.setGroupKeyForNodeData(a,o.getGroupKeyForNodeData(i.data)),o.addNodeData(a);var s={from:i.key,to:o.getKeyForNodeData(a)};o.addLinkData(s);var l=e.diagram.findNodeForData(a);l.location=r,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(V.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(V.Spot.Top)||t.equals(V.Spot.Bottom)?25:18,height:t.equals(V.Spot.Top)||t.equals(V.Spot.Bottom)?18:25,fill:"orange",stroke:d,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:o,contextClick:o})}function y(t){return e(V.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(V.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(V.Panel,"Horizontal",k(d,"fill"),k(p,"fill"),k(m,"fill"),k(f,"fill"))),e("ContextMenuButton",e(V.Panel,"Horizontal",k(g,"fill"),k(v,"fill"),k(h,"fill"),k(x,"fill")))]}function C(){return[e("ContextMenuButton",e(V.Panel,"Horizontal",k(u),k(a),k(n),k(t))),e("ContextMenuButton",e(V.Panel,"Horizontal",k(d),k(s),k(l),k(c)))]}function S(t,n){return n||(n="thickness"),e(V.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 _(t,n){return n||(n="dash"),e(V.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(V.Panel,"Horizontal",S(1),S(2),S(3),S(4))),e("ContextMenuButton",e(V.Panel,"Horizontal",_(null),_([2,4]),_([4,4])))]}function N(t,n){return n||(n="figure"),e(V.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:b(n,t),contextClick:b(n,t)})}function A(t){return e(V.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function B(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(V.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b("dir",t),contextClick:b("dir",t)})}function P(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var o=n.part.adornedPart;e.set(o.data,t?"toSpot":"fromSpot",V.Spot.stringify(V.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(V.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 L(t,n){var o=0,i=V.Spot.RightSide;t.equals(V.Spot.Top)?(o=270,i=V.Spot.TopSide):t.equals(V.Spot.Left)?(o=180,i=V.Spot.LeftSide):t.equals(V.Spot.Bottom)&&(o=90,i=V.Spot.BottomSide),n||(o-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",V.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(V.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:o,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return o.current=new V.Diagram(i.current,{padding:20,grid:e(V.Panel,"Grid",e(V.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(V.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(Y),"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(V.Node,"Auto",{locationSpot:V.Spot.Center,locationObjectName:"SHAPE",desiredSize:new V.Size(120,60),minSize:new V.Size(40,40),resizable:!0,resizeCellSize:new V.Size(10,10),rotatable:!0},new V.Binding("location","loc",V.Point.parse).makeTwoWay(V.Point.stringify),new V.Binding("desiredSize","size",V.Size.parse).makeTwoWay(V.Size.stringify),e(V.Shape,{name:"SHAPE",fill:d,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:V.Spot.AllSides,toSpot:V.Spot.AllSides},new V.Binding("figure"),new V.Binding("fill"),new V.Binding("stroke","borderColor"),new V.Binding("strokeWidth","thickness"),new V.Binding("strokeDashArray","dash")),e(V.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(V.TextBlock,{margin:1,textAlign:"center",overflow:V.TextBlock.OverflowEllipsis,editable:!0},new V.Binding("text").makeTwoWay(),new V.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(V.Panel,"Vertical",{maxSize:new V.Size(200,NaN)},e(V.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new V.Binding("text")),e(V.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new V.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(V.Adornment,"Spot",e(V.Placeholder,{padding:10}),w(V.Spot.Top,"TriangleUp"),w(V.Spot.Left,"TriangleLeft"),w(V.Spot.Right,"TriangleRight"),w(V.Spot.Bottom,"TriangleDown"),y({alignment:new V.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(V.Panel,"Horizontal",N("Rectangle"),N("RoundedRectangle"),N("Ellipse"),N("Diamond"))),e("ContextMenuButton",e(V.Panel,"Horizontal",N("Parallelogram2"),N("ManualOperation"),N("Procedure"),N("Cylinder1"))),e("ContextMenuButton",e(V.Panel,"Horizontal",N("Terminator"),N("CreateRequest"),N("Document"),N("TriangleDown"))),j(),C(),T()),o.current.groupTemplate=e(V.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:V.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 V.Binding("location","loc",V.Point.parse).makeTwoWay(V.Point.stringify),e(V.Panel,"Auto",{name:"BODY"},e(V.Shape,{parameter1:10,fill:d,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:V.Spot.AllSides,toSpot:V.Spot.AllSides},new V.Binding("fill"),new V.Binding("stroke","color"),new V.Binding("strokeWidth","thickness"),new V.Binding("strokeDashArray","dash")),e(V.Placeholder,{background:"transparent",margin:20})),e(V.TextBlock,{alignment:V.Spot.Top,alignmentFocus:V.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new V.Binding("text"),new V.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(V.Adornment,"Spot",e(V.Panel,"Auto",e(V.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(V.Placeholder,{margin:1.5})),y({alignment:V.Spot.TopRight,alignmentFocus:V.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",j(),C(),T()),o.current.linkTemplate=e(V.Link,{layerName:"Foreground",routing:V.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new V.Binding("fromSpot","fromSpot",V.Spot.parse),new V.Binding("toSpot","toSpot",V.Spot.parse),new V.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new V.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new V.Binding("points").makeTwoWay(),e(V.Shape,{strokeWidth:2},new V.Binding("stroke","color"),new V.Binding("strokeWidth","thickness"),new V.Binding("strokeDashArray","dash")),e(V.Shape,{segmentIndex:0,segmentOffset:new V.Point(15,0),segmentOrientation:V.Link.OrientAlong,alignmentFocus:V.Spot.Right,figure:"circle",width:10,strokeWidth:0},new V.Binding("fill","color"),new V.Binding("visible","dir",(function(e){return 1===e}))),e(V.Shape,{segmentIndex:-1,segmentOffset:new V.Point(-10,6),segmentOrientation:V.Link.OrientPlus90,alignmentFocus:V.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new V.Binding("fill","color"),new V.Binding("visible","dir",(function(e){return e>=1})),new V.Binding("width","thickness",(function(e){return 7+3*e})),new V.Binding("height","thickness",(function(e){return 7+3*e})),new V.Binding("segmentOffset","thickness",(function(e){return new V.Point(-15,4+1.5*e)}))),e(V.Shape,{segmentIndex:0,segmentOffset:new V.Point(15,-6),segmentOrientation:V.Link.OrientMinus90,alignmentFocus:V.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new V.Binding("fill","color"),new V.Binding("visible","dir",(function(e){return 2===e})),new V.Binding("width","thickness",(function(e){return 7+3*e})),new V.Binding("height","thickness",(function(e){return 7+3*e})),new V.Binding("segmentOffset","thickness",(function(e){return new V.Point(-15,4+1.5*e)}))),e(V.TextBlock,{alignmentFocus:new V.Spot(0,1,-4,0),editable:!0},new V.Binding("text").makeTwoWay(),new V.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(V.Adornment,e(V.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:A(2)},new V.Binding("pathPattern","thickness",A)),y({alignmentFocus:new V.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",C(),T(),e("ContextMenuButton",e(V.Panel,"Horizontal",B(0),B(1),B(2))),e("ContextMenuButton",e(V.Panel,"Horizontal",e(V.Panel,"Spot",P(!1),L(V.Spot.Top,!1),L(V.Spot.Left,!1),L(V.Spot.Right,!1),L(V.Spot.Bottom,!1)),e(V.Panel,"Spot",{margin:new V.Margin(0,0,0,2)},P(!0),L(V.Spot.Top,!0),L(V.Spot.Left,!0),L(V.Spot.Right,!0),L(V.Spot.Bottom,!0))))),new V.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(V.Link,{locationSpot:V.Spot.Center,selectionAdornmentTemplate:e(V.Adornment,"Link",{locationSpot:V.Spot.Center},e(V.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(V.Shape,{toArrow:"Standard",stroke:null}))},{routing:V.Link.AvoidsNodes,curve:V.Link.JumpOver,corner:5,toShortLength:4},new V.Binding("points"),e(V.Shape,{isPanelMain:!0,strokeWidth:2}),e(V.Shape,{toArrow:"Standard",stroke:null})),model:new V.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(W()(V.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(V.Node,"Auto",{locationSpot:V.Spot.Center},new V.Binding("location","location",V.Point.parse).makeTwoWay(V.Point.stringify),e(V.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 V.Binding("stroke").makeTwoWay(),new V.Binding("fill").makeTwoWay(),new V.Binding("figure")),e(V.TextBlock,{margin:new V.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new V.Size(16,16),maxSize:new V.Size(10,NaN),textAlign:"center",editable:!0},new V.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(V.Panel,"Grid",e(V.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(V.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"},re=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:"取消"})]})]})},ae=n(78673),se=n(35575),le=n.n(se),ce=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,r=e.callback,s=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),d=(0,c.useState)(!1),u=a()(d,2),p=u[0],m=u[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 r&&r(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)(J.Z,{flex:1,children:(0,f.jsx)(ae.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return m(e)}})}),(0,f.jsx)(J.Z,{children:(0,f.jsx)(C.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),de=n(42594),ue=n(57357),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(40238);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",Se=l()(l()({},Ce+"-B","bold"),Ce+"-I","italic"),_e=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,r=e.width,s=void 0===r?"100%":r,d=e.height,g=void 0===d?400:d,v=e.miniToolbar,x=void 0!==v&&v,w=e.isFocus,k=void 0!==w&&w,j=e.watch,C=e.insertTemp,S=e.mode,A=void 0===S?"markdown":S,B=e.id,P=void 0===B?"markdown-editor-id":B,L=e.showResizeBar,E=void 0!==L&&L,I=e.noStorage,O=void 0!==I&&I,D=e.showNullButton,z=void 0!==D&&D,R=e.showNullProgramButton,H=void 0!==R&&R,F=e.hidetoolBar,W=void 0!==F&&F,V=e.fullScreen,U=void 0!==V&&V,Y=e.onBlur,K=e.onCMBeforeChange,J=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,ae=void 0!==ie&&ie,se=e.placeholder,le=void 0===se?"":se,xe=e.values,Ce=void 0===xe?"":xe,Te=e.extraUse,Ne=(0,c.useState)(null),Ae=a()(Ne,2),Be=Ae[0],Pe=Ae[1],Le=(0,c.useState)(n),Ze=a()(Le,2),Ee=Ze[0],Me=Ze[1],Ie=(0,c.useState)(j),Oe=a()(Ie,2),Ge=Oe[0],De=Oe[1],ze=(0,c.useState)(U),Re=a()(ze,2),He=Re[0],Fe=Re[1],We=(0,c.useState)(""),Ve=a()(We,2),Ue=Ve[0],Ye=Ve[1],Ke=(0,c.useState)(0),qe=a()(Ke,2),Je=qe[0],Qe=qe[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),et=$e[0],tt=$e[1],nt=(0,c.useState)(!1),ot=a()(nt,2),it=(ot[0],ot[1]),rt=(0,c.useState)(0),at=a()(rt,2),st=at[0],lt=at[1],ct=(0,c.useState)(0),dt=a()(ct,2),ut=dt[0],pt=dt[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;Me(Ce),null==Be||Be.setValue(Ce),window.scrollTo(0,e)}),[Ce]),(0,c.useEffect)((function(){null==J||J(He)}),[He]),(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(),r=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==A)return;try{var a,s=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(s=r[0]);var l=s.getAsFile(),c=l.name.split(".").pop();M(l,(function(e){var n,o,i;e.id?(null==l||null===(n=l.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection(".concat(e.content_type,")")):(null==l||null===(o=l.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('<video width="100%" controls src="'.concat(ue.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(ue.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(ue.Z.API_SERVER,"/api/attachments/").concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(l.name,"</a>")):t.replaceSelection("[".concat(l.name,"](").concat(ue.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){N.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=u().fromTextArea(mt.current,{mode:A,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),r=i.charAt(o.ch-1),a=i.lastIndexOf("@▁@",o.ch),s=i.lastIndexOf("@▁▁@",o.ch),l=a>s?a:s,c=a>s?3:4;if(-1===be.indexOf(r))return null;if(console.log("change1:",t,e,i,o,l,a,s,r),l>=0&&o.ch-l<5){var d=l+c;return n.replaceRange("",{line:o.line,ch:l},{line:o.line,ch:d}),{line:o.line,ch:d}}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()})),Pe(t),function(){t.off("paste",e)}}}),[]);var vt=(0,c.useCallback)((function(){ft.current}),[et,ft,He]);(0,c.useEffect)((function(){if(Be){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(),Be.setSize("100%","100%"),Be.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)}}}),[Be,vt]),(0,c.useEffect)((function(){if(Be){for(var e=[],t=function(){var t=a()(o[n],2),i=t[0],r=t[1],s=l()({},i,(function(){xt(r)}));e.push(s),Be.addKeyMap(s)},n=0,o=Object.entries(Se);n<o.length;n++)t();return function(){for(var t=0,n=e;t<n.length;t++){var o=n[t];Be.removeKeyMap(o)}}}}),[Be]),(0,c.useEffect)((function(){U!==He&&Fe(U)}),[U]),(0,ye.Z)((function(){if(!O&&Je>0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(P);e>=Je+1e4&&(!t||t!==Ee)&&(window.sessionStorage.setItem(P,Ee),it(!0))}}),1e4),(0,c.useEffect)((function(){De(j)}),[Be,j]),(0,c.useEffect)((function(){Be&&k&&Be.focus()}),[Be,k]),(0,c.useEffect)((function(){if(Ge&&Be){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=Be.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Be,Ge]),(0,c.useEffect)((function(){if(Be&&K){var e=function(e,t){K(e,t)};return Be.on("beforeChange",e),function(){Be.off("beforeChange",e)}}}),[Be,K]),(0,c.useEffect)((function(){if(Be&&Y){var e=function(){Y(Be.getValue())};return Be.on("blur",e),function(){Be.off("blur",e)}}}),[Be,Y]),(0,c.useEffect)((function(){if(Be){var e=function(e,t){var n=e.getValue();Me(n),Qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(H?o(n,jt(n)):o(n))};return Be.on("change",e),function(){Be.off("change",e)}}}),[Be,o]),(0,c.useEffect)((function(){if(Be)if(null==n)Be.setValue(""),Me("");else{var e=window.scrollY||window.pageYOffset;n!==Be.getValue()&&(Be.setValue(n),Me(n),Be.setCursor(oe?1:Be.lineCount(),0),window.scrollTo(0,e))}}),[Be,n]);var xt=(0,c.useCallback)((function(e){var t=Be.getCursor(),n=Be.getSelection(),o=n.split("\n");switch(e){case"bold":return Be.replaceSelection("**"+n+"**"),""===n&&Be.setCursor(t.line,t.ch+2),Be.focus();case"italic":return Be.replaceSelection("*"+n+"*"),""===n&&Be.setCursor(t.line,t.ch+1),Be.focus();case"code":return Be.replaceSelection("`"+n+"`"),""===n&&Be.setCursor(t.line,t.ch+1),Be.focus();case"inline-latex":return Ye("inline-latex"),Be.focus();case"latex":return Be.replaceSelection("```latex\n"+n+"\n```"),Be.setCursor(t.line+1,n.length+1),Be.focus();case"line-break":return Be.replaceSelection("<br/>\n"),Be.focus();case"list-ul":return""===n?Be.replaceSelection("- "+n):Be.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Be.focus();case"list-ol":return""===n?Be.replaceSelection("1. "+n):Be.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Be.focus();case"add-null-ch":return""===n&&Be.setCursor(t.line,t.ch),Be.replaceSelection("▁"),Be.focus();case"add-signal":return""===n&&Be.setCursor(t.line,t.ch),Be.replaceSelection("@▁@"),Be.focus();case"add-multiple":return""===n&&Be.setCursor(t.line,t.ch),Be.replaceSelection(be),Be.focus();case"inster-template-1":return""===n&&Be.setCursor(t.line,t.ch),Be.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Be.focus();case"eraser":return Be.setValue(""),Be.focus();case"trigger-watch":return De(!Ge),Be.focus();case"trigger-full-screen":return Fe(!He),Be.focus();case pe:return void Ye(pe);case ge:return void Ye(ge);case me:return void Ye(me);case he:return void Ye(he);case"maths-latex":return void Ye("maths-latex");case fe:return void Ye(fe);case ve:return void Ye(ve);default:throw new Error}}),[Be,Ge,He]),wt=(0,c.useCallback)((function(e,t){var n,o,i,r,a;switch(Ye(""),Ue){case pe:var s=e.title,l=e.link;return Be.replaceSelection("[".concat(s,"](").concat(l,")")),Be.focus();case ge:var c=e.language,d=e.content;return Be.replaceSelection(["```"+c,d,"```"].join("\n")),Be.focus();case"maths-latex":for(var u=atob(e),p=new Uint8Array(u.length),m=0;m<u.length;m++)p[m]=u.charCodeAt(m);M(new Blob([p],{type:"image/png"}),(function(e){e.id?Be.replaceSelection(".concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":Be.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?Be.replaceSelection(".concat(f,' "').concat(h,'" )')):Be.replaceSelection("")):(null==g||null===(r=g.type)||void 0===r?void 0:r.indexOf("video"))>-1?Be.replaceSelection('<video width="100%" controls src="'.concat(ue.Z.API_SERVER).concat(f,'"></video>')):(null==g||null===(a=g.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Be.replaceSelection('<a href="'.concat(ue.Z.API_SERVER).concat(f,"?type=").concat(g.type,'&disposition=inline" target="_blank">').concat(g.name,"</a>")):ke.includes(v)?Be.replaceSelection('<a href="'.concat(ue.Z.API_SERVER).concat(f,'?type=office&disposition=inline" target="_blank">').concat(g.name,"</a>")):Be.replaceSelection("[".concat(g.name,"](").concat(ue.Z.API_SERVER).concat(f,")")),Be.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=[],S=0;S<w;S++)1===k&&C.push(we[y]),j.push(" ");1===k&&(b+="| ".concat(C.join(" | ")," |\n")),b+="| ".concat(j.join(1===w?"":" | ")," |\n")}return Be.replaceSelection(b+"\n"),Be.focus();default:throw new Error}}),[Be,Ue]),yt=(0,c.useMemo)((function(){switch(Ue){case pe:return(0,f.jsx)(_,{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)(re,{callback:wt,onCancel:bt});case"maths-latex":return(0,f.jsx)(ce,{showSaveButton:!0,callback:wt});case"inline-latex":return(0,f.jsx)(de.Z,{showSaveButton:!0,callback:wt});default:return null}}),[Ue]);function bt(){Ye("")}(0,c.useEffect)((function(){if(ht.current){var e=function(e){i=!0,r=e.pageY},t=function(){i=!1},n=function(e){if(i){var t=e.pageY-r;t<0&&(t=0),t>300&&(t=300),tt(g+t+"px")}},o=ht.current,i=!1,r=0;return o.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){o.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Be,ht]),(0,c.useEffect)((function(){tt(g)}),[g]);var kt={width:je(s),height:je(et)},jt=((0,c.useMemo)((function(){if(Je){var e=new Date(Je),t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(o)}return 0}),[Je]),function(e){var t=[];if(H){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){if(_e[Ue]&&Ue!==he&&Ue!==fe){var e=document.getElementsByClassName("ant-modal")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),pt(n)}}),[Ue]);var Ct=function(e,t,n,o){var i=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&n<e||t<20&&o>t||t>i-20&&o<t)||(document.body.onmousemove=null,document.body.onmouseup=null,!1)};return(0,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(Ge?"on-preview":""," ").concat(x?"mini":""," ").concat(He?"full-screen":""),style:kt,children:[(0,f.jsx)(y,{insertTemp:C,watch:Ge,fullScreen:He,showNullButton:z,showNullProgramButton:H,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})}),Ge?(0,f.jsxs)("div",{ref:gt,className:"preview-container",children:["stex"===A&&(0,f.jsx)(h,{value:Ee}),"stex"!==A&&(0,f.jsx)(m.Z,{disabledFill:ae,showProgramFill:H,value:Ee})]}):null]})]})}),E?(0,f.jsx)("a",{ref:ht,className:"editor-resize"}):null,Ue===he&&(0,f.jsx)(G,{callback:wt,onCancel:bt}),Ue===fe&&(0,f.jsx)(ee,{callback:wt,onCancel:bt}),(0,f.jsx)(b.Z,{children:_e[Ue]&&Ue!==he&&Ue!==fe?(0,f.jsx)(q.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:st,top:ut},title:(0,f.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var t=e.clientX-st,n=e.clientY-ut;document.body.onmousemove=function(e){var o=e.clientX-t,i=e.clientY-n,r=document.getElementsByClassName("ant-modal")[0],a=window.innerWidth-r.offsetWidth,s=window.innerHeight-r.offsetHeight;o=Math.max(0,Math.min(o,a)),i=Math.max(0,Math.min(i,s)),Ct(e.clientX,e.clientY,t,n)&&(lt(o),pt(i))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:_e[Ue]}),open:!0,onCancel:bt,footer:null,destroyOnClose:!0,width:Ue===fe?"1200px":null,height:Ue===fe?"80vh":null,className:"markdown-popup-form",children:yt}):null})]})}},30043:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var o=n(82100),i=n.n(o),r=n(29186),a=n.n(r),s=n(80619),l=n.n(s),c=n(47074),d=n.n(c),u=n(59301),p=n(4676),m=function(e){l()(n,e);var t=d()(n);function n(e){var o;i()(this,n),o=t.call(this,e);var r=window.document;return o.node=r.createElement("div"),r.body.appendChild(o.node),o}return a()(n,[{key:"render",value:function(){var e=this.props.children;return(0,p.createPortal)(e,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),n}(u.Component)},40238: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])}},66519:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});n(59301);var o=n(38854),i=n(20834),r=n(6848),a=n(98135),s="searchSortControllerContainer___AAq4n",l="btn___bMc0x",c="btnSort___vBpNG",d="tips___egWVQ",u=n(37712),p=function(e){var t=e.isAdmin,n=(e.dataSource,e.batchStatus,e.SortMenuName),p=e.setSortMenuName,m=e.onSearch,f=e.onSort,h=(e.onBatch,t?[{name:"默认排序",type:"position",direction:"desc"},{name:"创建时间升序",type:"created_at",direction:"asc"},{name:"创建时间降序",type:"created_at",direction:"desc"},{name:"更新时间升序",type:"updated_at",direction:"asc"},{name:"更新时间降序",type:"updated_at",direction:"desc"},{name:"作业名称升序",type:"name_pinyin",direction:"asc"},{name:"作业名称降序",type:"name_pinyin",direction:"desc"}]:[{name:"默认排序",type:"position",direction:"desc"},{name:"按发布时间升序",type:"created_at",direction:"asc"},{name:"按发布时间降序",type:"created_at",direction:"desc"},{name:"按截止时间升序",type:"updated_at",direction:"asc"},{name:"按截止时间降序",type:"updated_at",direction:"desc"},{name:"作业名称升序",type:"name_pinyin",direction:"asc"},{name:"作业名称降序",type:"name_pinyin",direction:"desc"}]),g="默认排序"===n;return(0,u.jsxs)("div",{className:s,children:[(0,u.jsx)("div",{children:(0,u.jsx)(o.Z,{dropdownRender:function(){return(0,u.jsx)(i.Z,{selectedKeys:[n],children:h.map((function(e){return(0,u.jsx)(i.Z.Item,{onClick:function(){return p((t=e).name),void f(t);var t},children:e.name},e.name)}))})},children:(0,u.jsx)("div",{children:(0,u.jsxs)("span",{className:"".concat(l," ").concat(g?c:""),children:[(0,u.jsx)("i",{className:"iconfont icon-paixu font14 mr5"}),n]})})})}),g&&(0,u.jsx)(r.Z,{title:"优先按照调整排序结果展示,未设置排序时,按照创建时间降序排列",children:(0,u.jsx)("span",{className:d,children:(0,u.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2"})})}),(0,u.jsx)(a.Z.Search,{allowClear:!0,placeholder:"请输入名称进行搜索",onSearch:function(e){return m(e.trim())},style:{width:220,marginLeft:"auto"}})]})}},62030:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});n(59301);var o=n(20834),i=n(95237),r=n(43604),a=n(38854),s=n(6848),l="tabMenuContainer___xbZhu",c="control___tg7XY",d="iconH___CDXCm",u="selectBtn___Da4jv",p=n(46681),m=n(64330),f=n(37712),h=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.isLoading,h=e.addText,g=e.tabDataSource,v=e.isAdmin,x=e.dispatch,w=e.type,y=e.exportType,b=e.TooltipTitle,k=e.categoryId,j=e.dropdownMenu,C=e.isShowRightControl,S=e.defaultSelectedKeys,_=e.classroomList,T=e.onTabMenuClick,N=e.onTooltipTitleClick,A=e.onDropdownMenuClick,B=e.onsetClick,P=(0,p.useParams)();return(0,f.jsx)("div",{className:l,children:(0,f.jsxs)(i.Z,{children:[(0,f.jsx)(r.Z,{flex:"1",children:(0,f.jsx)(o.Z,{mode:"horizontal",selectedKeys:S,children:g.map((function(e){return(0,f.jsxs)(o.Z.Item,{onClick:function(){return n?{}:T(e)},children:[(0,f.jsx)("span",{className:"c-grey-666 ".concat(v?"mr20":""),children:e.name}),void 0!==e.total&&(0,f.jsx)("span",{className:"c-grey-999",children:e.total||0})]},e.id)}))})}),v&&C&&(0,f.jsxs)(r.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3},children:[(0,f.jsx)(a.Z,{className:"mr10",placement:"bottom",arrow:!0,dropdownRender:function(){return(0,f.jsxs)(o.Z,{children:[(0,f.jsx)(o.Z.Item,{onClick:function(){x({type:"classroomList/setActionTabs",payload:{key:"导出成绩",type:w,exportType:y,category_id:P.categoryId}})},children:"学生成绩"},1),(0,f.jsx)(o.Z.Item,{onClick:function(){p.history.push("/classrooms/".concat(null==P?void 0:P.coursesId,"/exportlist/").concat("group"===y?"group_work_list":"normal_work_list"))},children:"历史导出"},3)]})},children:(0,f.jsx)("div",{className:"c-blue font16 ml20 current",style:{marginTop:2},children:(0,f.jsx)("span",{style:{color:"#666666",cursor:"pointer"},children:(0,f.jsx)("i",{className:"iconfont icon-xiazai6"})})})}),!(0,m.Rm)()||null!==(t=_.AssistantObject.normal)&&void 0!==t&&t.can_create?(0,f.jsx)("span",{className:"c-grey-666",style:{marginLeft:8,cursor:"pointer",marginTop:"3px"},onClick:B,children:(0,f.jsx)("i",{className:"iconfont icon-shezhi6 font16 mr5"})}):"",(0,f.jsxs)("div",{className:c,children:[(0,f.jsx)("div",{className:"c-blue font16 ml20 current",style:{marginTop:2},onClick:N,children:(0,f.jsx)(s.Z,{title:b,children:(0,f.jsx)("span",{className:"".concat(d,k?" iconfont icon-zhongmingmingmulu":" iconfont icon-xinjianmulu1")})})}),(0,f.jsx)(a.Z,{className:"ml10",dropdownRender:function(){return(0,f.jsx)(o.Z,{onClick:function(e){var t=e.key;A(t)},children:j.map((function(e){return(0,f.jsx)(o.Z.Item,{children:e.name},e.id)}))})},children:(0,f.jsxs)("span",{className:u,children:[(0,f.jsx)("span",{children:(0,f.jsx)("i",{className:"iconfont icon-tianjiadaohang"})}),(0,f.jsx)("span",{children:h||"新建作业"})]})})]})]})]})})}))},76525:function(e,t,n){"use strict";n.r(t),n.d(t,{GroupHomeworkContext:function(){return ye},default:function(){return be}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),d=n.n(c),u=n(59301),p=n(46681),m=n(8591),f=n(56511),h=n(53864),g=n(81228),v=n(43418),x=n(95237),w=n(43604),y=n(78673),b=n(5112),k=n(60324),j=n(26220),C=n(85699),S=n(64330),_=n(41282),T=n(37205),N=n.n(T),A=n(90694),B=n(82413),P=n(37712),L=(0,p.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,o=e.classroomList,r=e.dispatch,s=e.user,c=e.onCallback,f=(0,p.useParams)(),h=(0,u.useState)(!1),g=d()(h,2),x=g[0],w=g[1],y=(0,u.useState)(!1),b=d()(y,2),k=b[0],j=b[1],C=(0,u.useRef)(null);(0,u.useEffect)((function(){if("删除"===o.actionTabs.key){if((0,S.j5)())return void j(!0);var e={hasNum:0,noHasNum:0};o.actionTabs.selectArrsAll.map((function(t){var n;t.author_login===(null===(n=s.userInfo)||void 0===n?void 0:n.login)?++e.hasNum:++e.noHasNum})),e.noHasNum>0?v.Z.info({title:"权限提示",className:"custom-modal-divider ",icon:null,content:(0,P.jsxs)("div",{children:["当前选中资源中:",(0,P.jsx)("span",{className:"c-blue",children:e.hasNum}),"个由您本人发布,",(0,P.jsx)("span",{className:"c-red",children:e.noHasNum})," ","个由其他老师发布。",(0,P.jsx)("br",{}),"课堂内只能删除本人发布的资源,请取消选中其他老师发布的资源。"]}),onOk:function(){T()}}):j(!0)}else j(!1)}),[o.actionTabs.key]);var T=function(){r({type:"classroomList/setActionTabs",payload:{}})};return(0,P.jsx)(v.Z,{centered:!0,title:"提示",open:k,okText:"确定",cancelText:"取消",confirmLoading:x,destroyOnClose:!0,onOk:a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=C.current)||void 0===t||!t.onVerify()){e.next=2;break}return e.abrupt("return");case 2:return w(!0),e.next=5,(0,A.ZP)("/api/courses/".concat(f.coursesId,"/homework_commons/multi_destroy.json"),{method:"post",body:{homework_ids:N()(o.actionTabs.selectArrs)}});case 5:n=e.sent,w(!1),0===n.status&&((0,_.L9)(["教学课堂","分组作业","删除"]),m.ZP.success("删除成功"),r({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),c&&c(),(0,S.GJ)()?r({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},o.actionTabs.params),{},{type:3})}):r({type:"classroomList/getClassroomCommonList",payload:l()({},o.actionTabs.params)}));case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){r({type:"classroomList/setActionTabs",payload:{}})},children:null!=o&&null!==(t=o.actionTabs)&&void 0!==t&&t.status&&["未发布"].includes(null==o||null===(n=o.actionTabs)||void 0===n?void 0:n.status)?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("p",{children:"提交作品将全部被删除,不可恢复"}),(0,P.jsx)("p",{children:"是否确认删除?"})]}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("p",{style:{color:"#DD0000"},children:"删除作业则会清除学生所有的答题数据,且数据不可恢复,如确定删除,请输入下方验证码"}),(0,P.jsx)(B.Z,{ref:function(e){return C.current=e}})]})})})),Z=n(19927),E=n(50307),M=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=(0,p.useParams)();return o.id=o.coursesId,(0,P.jsx)(v.Z,{centered:!0,title:"提示",open:"设为公开"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,A.ZP)("/api/courses/".concat(o.id,"/homework_commons/set_public.json"),{method:"post",body:{homework_ids:N()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,_.L9)(["教学课堂","分组作业","设为公开"]),m.ZP.success("操作成功"),n({type:"classroomList/setActionTabs",payload:{}}),n({type:"classroomList/getClassroomCommonHomeworksList",payload:l()({},t.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:(0,P.jsxs)("p",{children:["设为公开后,非课堂成员也可以访问查看",(0,P.jsx)("br",{}),"是否确认设为公开?"]})})})),I=n(39647),O=n.n(I),G=["classroomList","dispatch","onCallback"],D=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=e.onCallback,r=(O()(e,G),(0,p.useParams)());return r.id=r.coursesId,(0,P.jsx)(v.Z,{centered:!0,title:"提示",open:"收藏"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,A.ZP)("/api/courses/".concat(r.id,"/homework_commons/add_to_homework_bank.json"),{method:"post",body:{all_check:0,homework_ids:N()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,_.L9)(["教学课堂","分组作业","收藏"]),m.ZP.success("收藏成功,请前往【个人主页/课堂资源】查看"),o&&o(),(0,S.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:3})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)}),n({type:"classroomList/setActionTabs",payload:{}}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:"确认收藏?"})})),z=n(85573),R=n.n(z),H=n(99313),F=n(78241),W=n(3113),V=n(98135),U=n(24905),Y=n(26724),K=n.n(Y),q={flex_box_center:"flex_box_center___ABrmR",flex_space_between:"flex_space_between___vTOmX",flex_box_vertical_center:"flex_box_vertical_center___txnfs",flex_box_center_end:"flex_box_center_end___fhlTP",flex_box_column:"flex_box_column___NGqFB",line1:"line1___kzLLz",form:"form___JNFp_"},J=n(77984),Q=n(41135),X=(H.Z.TabPane,(0,p.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,loading:e.loading,classroomList:e.classroomList}}))((function(e){var t,n=e.shixunHomeworks,o=e.classroomList,r=(e.loading,e.dispatch),s=(0,p.useParams)(),c=((0,p.useLocation)(),F.Z.useForm()),m=d()(c,1)[0],f=(n.brankList,(0,u.useState)(!1)),h=d()(f,2),g=h[0],y=h[1],b=(0,u.useState)(!0),k=d()(b,2),j=k[0],C=k[1],T=(0,u.useState)("myself"),A=d()(T,2),B=A[0],L=A[1],Z=(0,u.useState)([]),E=d()(Z,2),M=E[0],I=E[1],O=(0,u.useState)(),G=d()(O,2),D=G[0],z=G[1],H=(0,u.useState)({page:0,limit:20,object_type:"group",search:"",filter:"myself"}),Y=d()(H,2),X=Y[0];Y[1];(0,u.useEffect)((function(){"题库选用"===n.actionTabs.key&&ee()}),[n.actionTabs.key]);var $=[],ee=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!j){e.next=11;break}return y(!1),++X.page,e.next=5,r({type:"shixunHomeworks/getBrankList",payload:l()({},X)});case 5:n=e.sent,M=N()(M.concat(n.object_list)),z(n.is_teacher),(null===(t=n.object_list)||void 0===t?void 0:t.length)<X.limit?C(!1):C(!0),I(N()(M)),""==n.object_list&&1===X.page&&y(!0);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),te=o.detailCommonHomeworksList;return(0,P.jsxs)(v.Z,{centered:!0,title:"选用课堂资源",open:"题库选用"===n.actionTabs.key,okText:"确定",cancelText:"取消",width:800,bodyStyle:{minHeight:200},onOk:a()(i()().mark((function e(){var t,a,c,d;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=m.getFieldValue(),e.next=3,r({type:"shixunHomeworks/saveBanks",payload:{category:(null==o||null===(t=o.detailCommonHomeworksList)||void 0===t?void 0:t.category_id)||(null==o||null===(a=o.detailCommonHomeworksList)||void 0===a?void 0:a.main_category_id),course_id:s.coursesId,object_type:"group",bank_id:c.group_ids}});case 3:0===(null==(d=e.sent)?void 0:d.status)&&((0,_.L9)(["教学课堂","分组作业","选用课堂资源"]),(0,S.GJ)()?r({type:"classroomList/getClassroomTeacherCommonList",payload:l()({},n.actionTabs.params)}):r({type:"classroomList/getClassroomCommonList",payload:l()({},n.actionTabs.params)}),r({type:"shixunHomeworks/setActionTabs",payload:{}}),r({type:"classroomList/setActionTabs",payload:{key:"立即发布",type:1,selectArrs:d.object_ids,params:l()({},n.actionTabs.params),manage_all_group:null==te?void 0:te.manage_all_group}}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:s.coursesId}}));case 5:case"end":return e.stop()}}),e)}))),onCancel:function(){r({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,P.jsxs)(x.Z,{children:[(0,P.jsx)(w.Z,{span:12,children:[{name:"我的资源",id:"myself"},{name:"公共资源",id:"public"}].map((function(e,t){return(0,P.jsx)(W.ZP,{shape:"round",type:B===e.id?"primary":"default",className:"mr10",onClick:function(){var t=a()(i()().mark((function t(n){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:M=[],j=!0,X.page=0,X.search="",X.filter=e.id,ee(),L(e.id);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),children:e.name},t)}))}),(0,P.jsx)(w.Z,{span:12,className:"tr",children:(0,P.jsx)(V.Z.Search,{placeholder:"输入标题、适用课程进行搜索",onSearch:function(e){j=!0,X.search=e,X.page=0,M=[],e&&(0,Q.tk)({name:e,copywriting:e,position:"HomeworkCommon"}),ee()},style:{width:260}})})]}),"myself"===B&&(0,P.jsxs)("p",{className:"tc mt10",children:["选用对象:你在课堂分组作业中已",(0,P.jsx)("span",{className:"c-orange",children:"收藏"}),"的分组作业"]}),"public"===B&&(0,P.jsx)("p",{className:"tc mt10",children:"选用对象:题库中已设置成公共属性的所有分组作业"}),(0,P.jsxs)("div",{style:{background:"#F4FAFF",maxHeight:200,overflow:"auto",padding:"20px 10px"},children:[!D&&"public"===B&&(0,P.jsxs)("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"},children:[(0,P.jsx)("span",{children:"通过职业认证的教师才能访问课堂公共资源库"}),(0,P.jsx)("p",{style:{cursor:"pointer",background:"#ff6800",height:"30px",textAlign:"center",marginTop:"5px",padding:"5px 0px",color:"#fff",width:"80px"},onClick:function(){window.open("/account/certification")},children:"立即认证"})]}),(0,P.jsxs)(K(),{initialLoad:!1,pageStart:0,threshold:700,loadMore:function(){C(!1),ee()},hasMore:j,useWindow:!1,children:[g&&(0,P.jsx)(J.Z,{styles:{margin:"0px auto"}}),(0,P.jsx)(F.Z,{form:m,initialValues:R()({},"group_ids",$),className:q.form,onChange:function(e){var t=m.getFieldValue();$=t},children:(0,P.jsx)(F.Z.Item,{name:"group_ids",children:(0,P.jsx)(U.Z.Group,{style:{width:"100%",flexDirection:"column"},className:"font14",children:null===(t=M)||void 0===t?void 0:t.map((function(e,t){return(0,P.jsxs)(x.Z,{children:[(0,P.jsx)(w.Z,{flex:"2",children:(0,P.jsx)(U.Z,{onChange:function(e){},value:String(e.id),defaultChecked:!0,children:(0,P.jsx)("span",{className:["c-black",q.line1].join(" "),children:e.name})},t)}),(0,P.jsx)(w.Z,{flex:"1",className:"c-black",children:(0,P.jsx)("span",{className:q.line1,children:null==e?void 0:e.course_list_name})}),(0,P.jsx)(w.Z,{flex:"50px",className:"c-black",children:"public"===B&&(0,S.Ny)()||"myself"===B?(0,P.jsx)("span",{className:"c-blue current",onClick:function(){window.open("/users/innov/topics/".concat(e.id,"/personal/group/edit"))},children:"编辑"}):null==e?void 0:e.username})]},t)}))})})})]})]})]})}))),$=n(60398),ee=n(58079),te=n(74343),ne=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.styles,n=void 0===t?{}:t,o=e.onSelect,i=e.params,r=e.classroomList,a=(0,u.useState)(!1),s=d()(a,2),c=s[0],f=s[1],h=(0,u.useState)(""),g=d()(h,2),x=g[0],w=g[1];(0,u.useEffect)((function(){f(!1),w("")}),[]);return(0,P.jsxs)("section",{className:"tc animated fadeIn",style:l()(l()({},{color:"#999",margin:"200px auto"}),n),children:[(0,P.jsx)("img",{src:te.z3}),(0,P.jsx)("p",{className:"mt20 font14",children:"该分组无分组作业,可以下方按钮或右上方“新建作业”按钮创建作业"}),(0,P.jsxs)("div",{style:{marginTop:"30px"},children:[(0,P.jsx)(W.ZP,{onClick:function(){return f(!0)},type:"primary",style:{width:"128px",height:"40px",marginRight:"20px",borderRadius:"4px"},children:"新建作业"}),(0,P.jsx)(W.ZP,{onClick:function(){(0,_.xg)("https://www.educoder.net/forums/4911")},type:"primary",style:{width:"128px",height:"40px",marginLeft:"20px",borderRadius:"4px"},children:"新建作业指引"})]}),c&&(0,P.jsx)(v.Z,{open:!0,centered:!0,title:"新建作业",onCancel:function(){return f(!1)},onOk:function(){var e;!(0,S.Rm)()||null!=r&&null!==(e=r.AssistantObject)&&void 0!==e&&null!==(e=e.group)&&void 0!==e&&e.can_create?("1"===x&&p.history.push("/classrooms/".concat(i.coursesId,"/group_homework/").concat(i.categoryId||0,"/add")),"2"===x&&(o(),f(!1),w(""))):m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:(0,P.jsxs)("div",{children:[(0,P.jsx)("div",{children:(0,P.jsx)(b.ZP,{value:"1",style:{marginTop:"15px"},checked:"1"===x,onClick:function(){return w("1")},children:"新建分组作业"})}),(0,P.jsx)("div",{children:(0,P.jsx)(b.ZP,{value:"2",style:{marginTop:"15px"},checked:"2"===x,onClick:function(){return w("2")},children:"选用资源"})})]})})]})})),oe="bg___WElBH",ie=n(62030),re=n(38854),ae=n(20834),se=n(14491),le={listContainer:"listContainer___x25sx",info:"info___pPoXs",title:"title___hyvJ4",left:"left___PcXqY",right:"right___Gm2iB",flexBox:"flexBox____dxaA",detail:"detail___Bps1Y",iconV:"iconV___AsCHz"},ce=n(17890),de=function(e){var t,n,o,r,s,c=e.dataSource,m=e.params,f=e.manageAllGroup,h=(0,u.useContext)(ye),g=(h.batchStatus,h.selectArrs),v=h.setSelectArrs,x=h.selectArrsAll,w=h.setSelectArrsAll,y=h.dispatch,b=(0,p.useParams)(),k=(0,u.useState)(!1),j=d()(k,2),C=j[0],T=j[1],B=(0,u.useState)([]),L=d()(B,2),Z=L[0],E=L[1];b=l()(l()(l()({},m),b),{},{category:null===(t=b)||void 0===t?void 0:t.categoryId}),(0,u.useEffect)((function(){E([]),T(!1)}),[]);var M=[{title:"班级",dataIndex:"course_group_name",key:"course_group_name"},{title:"状态",dataIndex:"status",key:"status",width:80,filters:[{text:"未开始",value:"未开始"},{text:"提交中",value:"提交中"},{text:"补交中",value:"补交中"},{text:"已截止",value:"已截止"},{text:"未发布",value:"未发布"},{text:"匿评中",value:"匿评中"}],onFilter:function(e,t){return 0===t.status.indexOf(e)}},{title:"提交情况",dataIndex:"statistics",key:"statistics",width:80,render:function(e){var t,n;return"--"===e?e:(0,P.jsxs)("span",{children:[(0,P.jsx)("span",{children:null==e||null===(t=e.split("/"))||void 0===t?void 0:t[0]})," / ",(0,P.jsx)("span",{children:null==e||null===(n=e.split("/"))||void 0===n?void 0:n[1]})]})}},{title:"发布时间",dataIndex:"publish_time",key:"publish_time",sorter:!0,showSorterTooltip:!1,sortOrder:"publish_time"===b.sort_by?"desc"===b.sort_direction?"descend":"ascend":null},{title:"截止时间",dataIndex:"end_time",key:"end_time",sorter:!0,showSorterTooltip:!1,sortOrder:"end_time"===b.sort_by?"desc"===b.sort_direction?"descend":"ascend":null},{title:"补交时间",dataIndex:"late_time",key:"late_time",sorter:!0,showSorterTooltip:!1,sortOrder:"late_time"===b.sort_by?"desc"===b.sort_direction?"descend":"ascend":null},{title:"分班老师",dataIndex:"teachers",key:"teachers",width:150,ellipsis:{showTitle:!1},render:function(e){return"--"!==e&&e?(0,P.jsx)("span",{title:e,children:e}):"--"}}];function I(){return O.apply(this,arguments)}function O(){return(O=a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,A.ZP)("/api/homework_commons/".concat(c.homework_id,"/group_settings_statistics.json"),{method:"get",params:l()({},b)});case 2:t=e.sent,E(t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,P.jsxs)("div",{className:le.listContainer,onClick:function(e){e.stopPropagation(),(0,_.xg)("/classrooms/".concat(b.coursesId,"/group_homework/").concat(c.homework_id,"/detail"))},children:[(0,S.GJ)()&&(0,P.jsx)(U.Z,{onClick:function(e){e.stopPropagation()},style:{margin:"11px 0 0 10px"},checked:g.includes(c.homework_id),onChange:function(){return e=c.homework_id,void(g.includes(e)?(v(g.filter((function(t){return t!==e}))),w(x.filter((function(t){return t.homework_id!==e})))):(v([].concat(N()(g),[e])),w([].concat(N()(x),[c]))));var e}}),(0,P.jsxs)("div",{className:le.info,children:[(0,P.jsxs)("div",{className:le.title,children:[(0,P.jsxs)("div",{className:le.left,style:(0,S.dE)()?{paddingRight:(null==c?void 0:c.challenge_count)-(null==c?void 0:c.finished_challenge_count)?60:140}:{},children:[(0,S.GJ)()&&(0,P.jsx)(ce.Z,{value:c.status,children:(0,P.jsx)(_.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:[c.status]})}),(0,S.dE)()&&(0,P.jsx)(_.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:c.status}),(0,P.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/classrooms/".concat(b.coursesId,"/group_homework/").concat(c.homework_id,"/detail").concat((0,S.dE)()?"?tabs=1":""),children:c.name})})]}),(0,P.jsxs)("div",{className:le.right,children:[(0,S.GJ)()&&"未发布"===c.status&&(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:[c],params:l()({},b),type:2,manage_all_group:f}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:(0,P.jsxs)("aside",{className:le.flexBox,children:[(0,P.jsx)("i",{className:"iconfont icon-yishezhifabushijian1"}),(0,P.jsx)("div",{children:"发布"})]})}),(0,S.dE)()&&(0,P.jsxs)("div",{className:le.actionIcon,children:[(null==c?void 0:c.challenge_count)-(null==c?void 0:c.finished_challenge_count)==0&&(0,P.jsx)("i",{className:"iconfont icon-yiwancheng1"}),!(null!==(n=c.status)&&void 0!==n&&n.includes("已截止"))&&!(null!==(o=c.status)&&void 0!==o&&o.includes("导入"))&&(0,P.jsxs)("aside",{onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),(0,_.xg)("/classrooms/".concat(b.coursesId,"/group_homework/").concat(c.homework_id,"/detail").concat((0,S.dE)()?"?tabs=1":""));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),className:le.flexBox,style:{marginRight:10},children:[(0,P.jsx)("i",{className:"iconfont icon-kaishixuexi font14"}),(0,P.jsx)("div",{children:"开始学习"})]}),((null===(r=c.status)||void 0===r?void 0:r.includes("已截止"))||(null===(s=c.status)||void 0===s?void 0:s.includes("导入")))&&(0,P.jsxs)("aside",{className:le.flexBox,style:{marginRight:10},children:[(0,P.jsx)("i",{className:"iconfont icon-chakanzuoye font14"}),(0,P.jsx)("div",{children:"查看作品"})]})]}),(0,S.GJ)()&&(0,P.jsx)(re.Z,{placement:"bottomCenter",overlayClassName:le.dro,dropdownRender:function(){return(0,P.jsxs)(ae.Z,{children:["导入"!==c.status&&(0,P.jsx)(ae.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:[c],params:l()({},b),type:2,manage_all_group:f}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即发布"})},1),"导入"===c.status&&(0,P.jsx)(ae.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"补充成绩",name:null==c?void 0:c.name,id:null==c?void 0:c.homework_id,type:"group"}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"补充成绩"})},23),"导入"!==c.status&&(0,P.jsx)(ae.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"立即截止",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:[c],params:l()({},b),type:2}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即截止"})},2),(0,P.jsx)(ae.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"删除",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:x,params:b,status:null==c?void 0:c.status}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即删除"})},22),"导入"!==c.status&&(0,P.jsx)(ae.Z.Item,{style:{textAlign:"center"},children:(0,P.jsx)(p.Link,{target:"_blank",onClick:function(e){e.stopPropagation()},to:"/classrooms/".concat(b.coursesId,"/group_homework/").concat(c.homework_id,"/detail?tabs=3"),children:"高级设置"})},6)]})},children:(0,P.jsxs)("aside",{onClick:function(e){return e.stopPropagation()},className:le.flexBox,style:{marginRight:6,cursor:"default"},children:[(0,P.jsx)("i",{className:"iconfont icon-gengduo4"}),(0,P.jsx)("div",{children:"更多"})]})})]})]}),(0,P.jsx)("div",{className:le.detail,children:(0,S.GJ)()&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("span",{className:"c-grey-333 mr20",children:c.author}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.uncommit_count&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"未做题"}),c.uncommit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.commit_count&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"已做题"}),c.commit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.compelete_count&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"已完成"}),c.compelete_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(c.status)&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"发布时间"}),c.publish_time]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(c.status)&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"截止时间"}),c.end_time]}),["已结束"].includes(c.status)&&(0,P.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,P.jsx)("span",{className:"mr5",children:"结束时间"}),c.status_time]}),!(null==c||!c.late_time)&&"--"!==(null==c?void 0:c.late_time)&&(0,P.jsxs)("span",{className:"c-grey-999",children:[(0,P.jsx)("span",{className:"mr5",children:"补交截止时间"}),null==c?void 0:c.late_time]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&(0,P.jsxs)("span",{className:le.iconV,onClick:function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),C||I(),T(!C);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,P.jsx)("i",{className:"iconfont icon-".concat(C?"shouqi":"xiala2")})," "]})]})}),(0,P.jsxs)("div",{className:le.content,children:[(0,S.dE)()&&(0,P.jsxs)("span",{className:le.infoStuIcon,children:[(0,P.jsx)("span",{className:"c-grey-333",children:c.author}),"已截止"===c.status&&!(null==c||!c.status_time)&&(0,P.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,P.jsx)("i",{className:"iconfont icon-shengyushijian font12 mr5"})," ",null==c?void 0:c.status_time]}),(0,P.jsxs)("span",{className:"ml20 c-grey-999",children:[(0,P.jsx)("i",{className:"iconfont icon-shijian1 font12 mr5"}),null==c?void 0:c.publish_time," 至 ",null==c?void 0:c.end_time," "]}),!(null==c||!c.late_time)&&"--"!==(null==c?void 0:c.late_time)&&(0,P.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,P.jsx)("span",{className:"mr5",children:"补交截止时间:"}),null==c?void 0:c.late_time]})]}),(0,S.GJ)()&&"未发布"!==c.status&&C&&Z.length>5&&(0,P.jsx)(se.Z,{scroll:{y:240},onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:Z,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(b.sort_by=n.field),n.order||(b.sort_direction="asc"),"ascend"===n.order&&(b.sort_direction="asc"),"descend"===n.order&&(b.sort_direction="desc"),n.order||(b.sort_direction="asc"),I()},columns:M}),(0,S.GJ)()&&"未发布"!==c.status&&C&&Z.length<6&&Z.length>0&&(0,P.jsx)(se.Z,{onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:Z,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(b.sort_by=n.field),n.order||(b.sort_direction="asc"),"ascend"===n.order&&(b.sort_direction="asc"),"descend"===n.order&&(b.sort_direction="desc"),n.order||(b.sort_direction="asc"),I()},columns:M})]})]})]})},ue="bottomControlContainer___yUX9N",pe="buttonWrap___A3uZF",me="moveCategory___pCGhW",fe=n(43501),he=function(e){var t,n=e.buttonDataSource,o=e.onClick,r=(0,u.useContext)(ye),s=r.allSelect,l=r.setAllSelect,c=r.setSelectArrs,p=r.dataSource,f=r.selectArrs,h=r.useBatchStatus,g=r.dispatch,v=r.params,x=r.getData,w=r.detailLeftMenus,y=r.main_category_id,b=r.setSelectArrsAll,k=(0,u.useState)(!1),j=d()(k,2),C=j[0],_=j[1],T=(0,u.useState)(""),B=d()(T,2),L=B[0],Z=B[1];w.course_modules&&(t=w.course_modules.filter((function(e){return"group_homework"===e.type}))[0]);var E=(0,P.jsx)("div",{className:me,onMouseLeave:function(e){return _(!1)},children:(0,P.jsxs)(ae.Z,{onClick:function(){var e=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.item,n=t.key,t.keyPath,t.domEvent,""!=f){e.next=4;break}return m.ZP.error("请选择你要操作的任务"),e.abrupt("return",null);case 4:return e.next=6,(0,A.ZP)("/api/courses/".concat(v.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),x(),g({type:"classroomList/getClassroomLeftMenus",payload:{id:v.coursesId}}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),style:{maxHeight:300,width:240,overflow:"auto"},children:[(0,P.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",children:(0,P.jsx)(V.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(!(""!==L&&e.category_name.indexOf(L)<0))return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ae.Z.Item,{className:"multi-llipsis1e",children:e.category_name},e.category_id),null==e||null===(n=e.third_category)||void 0===n?void 0:n.map((function(e){return(0,P.jsx)(ae.Z.Item,{style:{marginLeft:20},className:"multi-llipsis1e",children:e.category_name},e.category_id)}))]})})),(0,P.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:function(e){e.preventDefault(),g({type:"classroomList/setActionTabs",payload:{key:"添加目录",params:v,selectArrs:{category_id:y,type:"group_homework"}}})},children:"新建子目录..."})]})});return(0,P.jsxs)("div",{className:ue,children:[(0,P.jsxs)("div",{children:[(0,P.jsx)("div",{children:(0,P.jsxs)(U.Z,{checked:s,onChange:function(e){l(e.target.checked),c(e.target.checked?p.map((function(e){return e.homework_id})):[]),e.target.checked?b(N()(p)):b([])},children:["全选本页(",f.length,")"]})}),(0,S.GJ)()&&n.map((function(e){return(0,P.jsx)("div",{children:(0,P.jsx)(W.ZP,{type:"primary",icon:e.icon,className:pe,onClick:function(){return o(e)},children:e.name})},e.key)})),(0,P.jsx)("div",{children:(0,P.jsx)(W.ZP,{type:"primary",onClick:function(){var e={courseId:v.id,container_type:"group_homework"};v.categoryId&&(e.category_id=v.categoryId),g({type:"classroomList/getAllTaskList",payload:e}),g({type:"classroomList/setActionTabs",payload:{key:"调整排序"}})},icon:(0,P.jsx)("i",{className:"iconfont icon-tiaozhengpaixu2"}),className:pe,children:"调整排序"})}),(0,S.GJ)()&&(0,P.jsx)("div",{children:(0,P.jsx)(re.Z,{open:C,placement:"topLeft",dropdownRender:function(){return E},getPopupContainer:function(e){return e.parentNode},children:(0,P.jsx)("span",{className:"ant-dropdown-link",onMouseEnter:function(e){return _(!0)},children:(0,P.jsx)(W.ZP,{type:"primary",className:pe,icon:(0,P.jsx)("i",{className:"iconfont icon-yidongmulu"}),children:(0,P.jsxs)("span",{children:["移动到目录 ",(0,P.jsx)(fe.Z,{})]})})})})}),(0,S.GJ)()&&(0,P.jsx)("div",{children:(0,P.jsx)(W.ZP,{type:"primary",onClick:function(){return o({key:"collection",name:"收藏",icon:(0,P.jsx)("i",{className:"iconfont icon-shoucang1"})})},icon:(0,P.jsx)("i",{className:"iconfont icon-shoucang1"}),className:pe,children:"收藏"})})]}),(0,P.jsx)("div",{children:(0,P.jsx)(W.ZP,{type:"primary",ghost:!0,onClick:function(){c([]),h(!1)},children:"取消操作"})})]})},ge=n(66519),ve=n(82093),xe=n(96494),we=n(36558),ye=(0,u.createContext)({selectArrs:[]}),be=(0,p.connect)((function(e){var t=e.user,n=e.classroomList,o=e.loading;return{user:t,classroomList:n,globalSetting:e.globalSetting,loading:o.effects}}))((function(e){var t,n,o=e.user,r=e.classroomList,s=e.loading,c=e.dispatch,T=(0,p.useParams)(),N=(0,p.useSearchParams)(),B=d()(N,1)[0],I=(0,u.useState)((function(){return l()(l()({},T),{},{id:T.coursesId,limit:20})})),O=d()(I,2),G=O[0],z=O[1],R=(0,u.useState)(!1),H=d()(R,2),F=H[0],W=H[1],V=(0,u.useState)({ta_mode:1,final_mode:!1,st_proportion:0,ta_proportion:30,te_proportion:70,gr_proportion:0,is_repeat_minus:!1,is_group_grade:!1,repeat_setting_score:"",repeat_limit:""}),U=d()(V,2),Y=U[0],K=U[1],q=(0,u.useState)([]),Q=d()(q,2),te=Q[0],re=Q[1],ae=(0,u.useState)(!1),se=d()(ae,2),le=se[0],ce=se[1],ue=(0,u.useState)(!1),pe=d()(ue,2),me=pe[0],fe=pe[1],be=(0,u.useState)([]),ke=d()(be,2),je=ke[0],Ce=ke[1],Se=(0,u.useState)(!1),_e=d()(Se,2),Te=(_e[0],_e[1],(0,u.useState)("默认排序")),Ne=d()(Te,2),Ae=Ne[0],Be=Ne[1],Pe=(0,p.useLocation)(),Le=r.detailCommonHomeworksList,Ze=r.detailLeftMenus,Ee=r.detailTopBanner,Me=r.taskList;B.get("tabs")&&parseInt(B.get("tabs"));G.type=3,G.categoryId?G.category=G.categoryId:delete G.category,(0,u.useEffect)((function(){z(l()(l()({},G),T))}),[null==T?void 0:T.categoryId]),(0,u.useEffect)((function(){"0"===B.get("tabs")&&(G.status="0",G.page=1)}),[B.get("tabs")]),(0,u.useEffect)((function(){var e=B.get("tabs");e&&void 0!==e&&((0,S.GJ)()?G.status=e:G.order=e)}),[B.toString()]),(0,u.useEffect)((function(){c({type:"classroomList/getAssistantPermissions",payload:{course_id:G.id}})}),[]),(0,u.useEffect)((function(){var e,t,n=B.get("tabs");if(null!=o&&null!==(e=o.userInfo)&&void 0!==e&&e.login){var i,r=_.cX.getItem("".concat(null==o||null===(i=o.userInfo)||void 0===i?void 0:i.login).concat((0,S.GJ)()?"Teacher":"Student"),"GroupHomework");r&&(G.sort_by=null==r?void 0:r.type,G.sort_direction=null==r?void 0:r.direction,Be(null==r?void 0:r.name));var a=void 0===T.categoryId?{}:{categoryId:T.categoryId,category:T.categoryId};n&&void 0!==n&&((0,S.GJ)()?G.status=n:G.order=n),Ie(a)}else if(null!=o&&null!==(t=o.userInfo)&&void 0!==t&&t.username){var s=void 0===T.categoryId?{}:{categoryId:T.categoryId,category:T.categoryId};n&&void 0!==n&&((0,S.GJ)()?G.status=n:G.order=n),Ie(s)}}),[null==o||null===(t=o.userInfo)||void 0===t?void 0:t.login,null==Pe?void 0:Pe.pathname]),(0,u.useEffect)((function(){"目录重命名成功"===r.actionTabs.key&&Ie(),"目录重命名成功"===r.actionTabs.key&&Ie()}),[r.actionTabs.key]),(0,u.useEffect)((function(){re([])}),[Le]),(0,u.useEffect)((function(){fe(!1)}),[G.categoryId]),(0,u.useEffect)((function(){Le&&Le.homeworks&&(te.length===Le.homeworks.length&&te.length>0?ce(!0):te.length!==Le.homeworks.length&&ce(!1))}),[te]);var Ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};re([]),Ce([]),(0,S.GJ)()?c({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()(l()({},G),e),{},{type:3})}):c({type:"classroomList/getClassroomCommonList",payload:l()(l()({},G),e)})},Oe=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,A.ZP)("/api/courses/".concat(G.coursesId,"/homework_commons/get_default_score_setting.json"),{method:"get",params:{homework_type:3}});case 2:null!=(t=e.sent)&&t.data&&(n=t.data.score_settings,Object.keys(n).map((function(e){e.indexOf("proportion")>-1&&(n[e]=(100*n[e]).toFixed(0))})),console.log(n),K(l()({},n)));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,u.useEffect)((function(){re([])}),[Le]);var Ge=function(){c({type:"shixunHomeworks/setActionTabs",payload:{key:"题库选用",params:G}})},De=function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c({type:"classroomList/updateTaskPosition",payload:{category_id:G.categoryId,courseId:G.id,task_ids:t,container_type:"group_homework"}});case 2:Ie();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ze=(0,u.useMemo)((function(){var e=[];return Me.length>0&&(e=Me.map((function(e){return{user_name:e.user_name,task_name:e.task_name,task_id:e.task_id,category:e.category,status:e.status}}))),e}),[Me]);return(0,P.jsx)(ye.Provider,{value:{params:G,batchStatus:me,selectArrs:te,setSelectArrs:re,allSelect:le,dataSource:Le.homeworks||[],detailLeftMenus:Ze,main_category_id:Le.main_category_id||"",selectArrsAll:je,setAllSelect:ce,useBatchStatus:fe,dispatch:c,getData:Ie,setSelectArrsAll:Ce},children:(0,P.jsxs)("section",{children:[(0,P.jsxs)("aside",{className:oe,children:[(0,P.jsx)(ie.Z,{isLoading:s[(0,S.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"],tabDataSource:(0,S.GJ)()?[{name:"全部",id:0,total:Le.all_count||0},{name:"未发布",id:1,total:Le.unpublished_count||0},{name:"未开始",id:4,total:Le.not_start_count||0},{name:"进行中",id:2,total:Le.in_progress_count||0},{name:"已截止",id:3,total:Le.overed_count||0}]:[{name:"全部",id:0},{name:"提交中",id:1},{name:"补交中",id:2},{name:"匿评中",id:3},{name:"申诉中",id:4},{name:"已截止",id:5}],isAdmin:(0,S.GJ)(),dispatch:c,type:null==Le?void 0:Le.main_category_name,exportType:"group",TooltipTitle:G.categoryId?"目录重命名":"新建子目录",categoryId:G.categoryId,dropdownMenu:[{name:"新建分组作业",id:"1"},{name:"选用资源",id:"2"},{name:"导入外部成绩",id:"3"}],isShowRightControl:"未分配目录"!==(0,_.Oo)(null==Ze?void 0:Ze.course_modules,G.categoryId),onsetClick:function(){Oe(),W(!0)},onTabMenuClick:function(e){void 0!==e.id&&((0,S.GJ)()?G.status=e.id:G.order=e.id),fe(!1),G.page=1,p.history.replace("".concat(Pe.pathname,"?tabs=").concat(e.id)),Ie(G)},defaultSelectedKeys:[B.get("tabs")?B.get("tabs"):"0"],onTooltipTitleClick:function(){c({type:"classroomList/setActionTabs",payload:{key:G.categoryId?"目录重命名":"添加目录",params:G,selectArrs:{category_name:null==Le?void 0:Le.category_name,category_id:(null==Le?void 0:Le.category_id)||(null==Le?void 0:Le.main_category_id)},cb:function(){Ie()}}})},onDropdownMenuClick:function(e){var t;!(0,S.Rm)()||null!==(t=r.AssistantObject.group)&&void 0!==t&&t.can_create?"1"===e?p.history.push("/classrooms/".concat(G.coursesId,"/group_homework/").concat(G.categoryId,"/add")):"2"===e?Ge():"3"===e&&c({type:"classroomList/setActionTabs",payload:{key:"导入外部成绩",type:"group"}}):m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),(0,P.jsx)(ge.Z,{dataSource:Le.homeworks||[],isAdmin:(0,S.GJ)(),batchStatus:me,SortMenuName:Ae,setSortMenuName:Be,onSearch:function(e){G.search=e.trim(),G.page=1,Ie()},onSort:function(e){var t;G.sort_by=e.type,G.sort_direction=e.direction,G.page=1,_.cX.setItem("".concat(null==o||null===(t=o.userInfo)||void 0===t?void 0:t.login).concat((0,S.GJ)()?"Teacher":"Student"),e,"GroupHomework"),Ie(G)},onBatch:function(e){return fe(e)}})]}),(0,P.jsxs)(f.Z,{loading:s["classroomList/getClassroomCommonHomeworksList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30",children:[0===(null==Le?void 0:Le.all_count)&&(0,S.GJ)()?!s[(0,S.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,P.jsx)(ne,{params:G,dispatch:c,onSelect:Ge}):(null==Le?void 0:Le.homeworks)&&0===Le.homeworks.length&&!s[(0,S.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,P.jsx)(J.Z,{}),(0,P.jsx)("aside",{className:"minH500 skt-loading relative pb40 mb30",children:!s[(0,S.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("aside",{className:"animated fadeIn",children:[null==Le||null===(n=Le.homeworks)||void 0===n?void 0:n.map((function(e,t){return(0,P.jsx)(de,{dataSource:e,params:G,manageAllGroup:null==Le?void 0:Le.manage_all_group},t)})),(0,P.jsx)("aside",{className:"tc mb50 mt30",children:(null==Le?void 0:Le.query_total_count)>10&&(0,P.jsx)(h.Z,{showSizeChanger:!0,onChange:function(e,t){G.page=e,G.limit=t,Ie()},defaultCurrent:1,current:G.page||1,pageSize:G.limit||20,total:Le.query_total_count})})]}),te.length>0&&(0,S.GJ)()&&(0,P.jsx)(g.Z,{offsetBottom:0,children:(0,P.jsx)(he,{buttonDataSource:[{key:"publish",name:"批量发布",icon:(0,P.jsx)("i",{className:"iconfont icon-fabu5"})},{key:"deadline",name:"批量截止",icon:(0,P.jsx)("i",{className:"iconfont icon-piliangjiezhi2"})},{key:"delete",name:"批量删除",icon:(0,P.jsx)("i",{className:"iconfont icon-piliangshanchu2"})},{key:"public",name:"设为公开",icon:(0,P.jsx)("i",{className:"iconfont icon-sheweigongkai2"})}].filter((function(e){return!(!(0,S.GJ)()&&!(0,S.Rm)())||"批量删除"!==e.name})).filter((function(e){return!!Ee.is_public||"设为公开"!==e.name})),onClick:function(e){var t,n;if(0===te.length)return m.ZP.error("请选择你要操作的任务"),!1;var o=e.name,i={key:o,selectArrs:te,selectArrsAll:je,type:["publish","deadline"].includes(e.key)?1:"",params:G};switch(e.key){case"publish":if((0,S.Rm)()&&(null==r||null===(t=r.AssistantObject)||void 0===t||null===(t=t.group)||void 0===t||!t.can_publish))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");o="立即发布";break;case"deadline":if((0,S.Rm)()&&(null==r||null===(n=r.AssistantObject)||void 0===n||null===(n=n.group)||void 0===n||!n.can_stop))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");o="立即截止";break;case"delete":o="删除";break;case"collection":o="收藏"}c({type:"classroomList/setActionTabs",payload:l()(l()({},i),{},{key:o})})}})})]})})]}),(0,P.jsx)(L,{onCallback:function(){return fe(!1)}}),(0,P.jsx)(ve.Z,{onOk:function(){Ie()}}),(0,P.jsx)(xe.Z,{onOk:function(){}}),(0,P.jsx)(Z.Z,{onCallback:function(){return fe(!1)},courseEndTime:null==Le?void 0:Le.course_end_time}),(0,P.jsx)(E.Z,{courseEndTime:null==Le?void 0:Le.course_end_time,courseId:T.coursesId,visible:"立即截止"===r.actionTabs.key,isBatch:2!==r.actionTabs.type,homeworkIds:r.actionTabs.selectArrs,successCallback:function(){fe(!1),Ie()}}),(0,P.jsx)(M,{}),(0,P.jsx)(X,{}),(0,P.jsx)(D,{onCallback:function(){return fe(!1)}}),(0,P.jsx)($.Z,{}),(0,P.jsx)(ee.Z,{}),(0,P.jsx)(we.Z,{visible:"调整排序"===r.actionTabs.key,callback:De,data:ze,onCancel:function(){c({type:"classroomList/setActionTabs",payload:{key:""}})}}),(0,P.jsx)(v.Z,{open:F,title:"默认评分设置",centered:!0,onCancel:function(){W(!1)},onOk:a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=JSON.parse(JSON.stringify(Y)),Object.keys(t).map((function(e){e.indexOf("proportion")>-1&&(t[e]=t[e]/100)})),e.next=4,(0,A.ZP)("/api/courses/".concat(G.coursesId,"/homework_commons/set_default_score_setting.json"),{method:"post",body:{homework_type:3,score_settings:t}});case 4:0===e.sent.status&&(m.ZP.success("设置成功"),W(!1));case 6:case"end":return e.stop()}}),e)}))),width:800,children:(0,P.jsxs)("div",{children:[(0,P.jsx)(x.Z,{children:(0,P.jsx)(w.Z,{span:24,children:(0,P.jsx)(x.Z,{align:"middle",children:(0,P.jsx)(w.Z,{span:24,children:(0,P.jsx)("div",{className:"mt15",children:"该默认规则将被应用于你后续新建的分组作业,且不会影响你已创建的作业以及其他老师新建作业的评分规则。"})})})})}),(0,P.jsxs)(x.Z,{align:"middle",className:"mt25",children:[(0,P.jsx)(w.Z,{children:(0,P.jsx)("strong",{children:"组长评分"})}),(0,P.jsxs)(x.Z,{className:"ml10",children:[(0,P.jsx)(w.Z,{children:(0,P.jsx)(y.Z,{checked:Y.is_group_grade,onChange:function(e){Y.is_group_grade=e,K(l()({},Y))}})}),(0,P.jsx)(w.Z,{className:"c-grey-c ml10",children:"(选中,则组长首次提交作业时需要对组员进行评分)"})]})]}),(0,P.jsxs)(x.Z,{className:"mt25",children:[(0,P.jsx)(w.Z,{children:(0,P.jsx)("strong",{children:"助教评分"})}),(0,P.jsx)(w.Z,{span:24,className:"pl30 mt10"})]}),(0,P.jsx)(x.Z,{children:(0,P.jsxs)(b.ZP.Group,{value:null==Y?void 0:Y.ta_mode,onChange:function(e){Y.ta_mode=e.target.value,K(l()({},Y))},children:[(0,P.jsxs)(b.ZP,{value:1,style:{marginTop:15},children:[(0,P.jsx)("strong",{children:"普通模式"}),(0,P.jsx)("span",{className:"c-grey-c",children:"(选中,则取各助教最终评分的平均分)"})]}),(0,P.jsx)("br",{}),(0,P.jsxs)(b.ZP,{value:0,style:{marginTop:15},children:[(0,P.jsx)("strong",{children:"复审模式"}),(0,P.jsx)("span",{className:"c-grey-c",children:"(选中,则只取最新的助教评分)"})]})]})}),(0,P.jsxs)(x.Z,{className:"mt25",children:[(0,P.jsx)(w.Z,{children:(0,P.jsx)("strong",{children:"最终成绩组成"})}),(0,P.jsx)(w.Z,{span:24,className:"pl30 mt10"})]}),(0,P.jsxs)(x.Z,{children:[(0,P.jsxs)(b.ZP.Group,{value:Y.final_mode,onChange:function(e){Y.final_mode=e.target.value,K(l()({},Y))},children:[(0,P.jsxs)(b.ZP,{value:!1,style:{marginTop:15},children:[(0,P.jsx)("strong",{children:"多项评分配比"}),(0,P.jsxs)("span",{className:"c-grey-c",children:["(选中,则按照比例计算最终成绩)",(0,P.jsx)(k.Z,{overlayClassName:"edu-popover",placement:"bottomLeft",content:(0,P.jsxs)("span",{className:"font14",children:["计算说明:",(0,P.jsx)("br",{}),"教师评分 * 其百分比 + 助教评分 * 其百分比 + 组长评分 * 其百分比 + 学生匿评平均分 * 其百分比 - ( ",(0,P.jsx)("br",{}),"迟交扣分 + 缺评扣分 * 缺评数 + 违规匿评扣分 * 违规匿评数 )",(0,P.jsx)("br",{}),(0,P.jsx)("br",{}),"注意",(0,P.jsx)("br",{}),"非零百分比的评分选项,若评分记录为空,则其百分比将自动平摊到其它非零",(0,P.jsx)("br",{}),"评分选项上。",(0,P.jsx)("br",{}),"例:教师评分40% + 助教评分35% + 学生匿评25%,学生A没有教师评分记",(0,P.jsx)("br",{}),"录,则其最终成绩按照助教评分55% + 学生匿评45%进行计算"]}),trigger:"click",children:(0,P.jsx)("span",{className:"mt10 ml10 current font14",children:(0,P.jsx)(C.Z,{})})})]})]}),(0,P.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,P.jsx)(w.Z,{children:"教师评分:"}),(0,P.jsxs)(w.Z,{className:"ml5",children:[(0,P.jsx)(j.Z,{min:0,max:100,value:Y.te_proportion,onChange:function(e){Y.te_proportion=e,K(Object.assign({},Y))}}),(0,P.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,P.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,P.jsx)(w.Z,{children:"助教评分:"}),(0,P.jsxs)(w.Z,{className:"ml5",children:[(0,P.jsx)(j.Z,{min:0,max:100,value:Y.ta_proportion,onChange:function(e){Y.ta_proportion=e,K(Object.assign({},Y))}}),(0,P.jsx)("span",{className:"ml10",children:"%"})]})]}),Y.is_group_grade&&(0,P.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,P.jsx)(w.Z,{children:"组长评分:"}),(0,P.jsxs)(w.Z,{className:"ml5",children:[(0,P.jsx)(j.Z,{min:0,max:100,value:Y.gr_proportion,onChange:function(e){Y.gr_proportion=e,K(Object.assign({},Y))}}),(0,P.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,P.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,P.jsx)(w.Z,{children:"学生匿评:"}),(0,P.jsxs)(w.Z,{className:"ml5",children:[(0,P.jsx)(j.Z,{min:0,max:100,value:Y.st_proportion,onChange:function(e){Y.st_proportion=e,K(Object.assign({},Y))}}),(0,P.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,P.jsx)("br",{}),(0,P.jsxs)(b.ZP,{value:!0,style:{marginTop:15},children:[(0,P.jsx)("strong",{children:"单项评分优先"}),(0,P.jsxs)("span",{className:"c-grey-c",children:["(选中,则按照优先顺序计算最终成绩)",(0,P.jsx)(k.Z,{overlayClassName:"edu-popover",placement:"bottomLeft",content:(0,P.jsxs)("span",{className:"font14",children:["计算说明:",(0,P.jsx)("br",{}),"优先顺序排前的非零评分 * 100% - ",(0,P.jsx)("br",{}),"( 迟交扣分 + 缺评扣分 * 缺评数 + 违规匿评扣分 * 违规匿评数 )",(0,P.jsx)("br",{}),"例:有教师评分则教师评分100%,否则教辅评分100%,依次类推"]}),trigger:"click",children:(0,P.jsx)("span",{className:"mt10 ml10 current font14",children:(0,P.jsx)(C.Z,{})})})]})]}),(0,P.jsx)(x.Z,{children:(0,P.jsx)(w.Z,{span:24,className:"ml20",children:(0,P.jsx)("div",{style:{color:"#ccc"},children:"(教师评分 → 助教评分 → 组长评分 → 学生匿评评分)"})})})]}),(0,P.jsx)("br",{})]})]})})]})})}))},82093:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),d=n.n(c),u=n(79800),p=n.n(u),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(46681),S=n(77162),_=n(57357),T=n(58199),N=n(90694),A=n(75894),B=n(99232),P=n.n(B),L=n(41282),Z=n(37712),E=f.Z.Dragger;t.Z=(0,C.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,o=e.dispatch,r=e.onOk,s=(0,C.useParams)(),c=h.Z.useForm(),u=p()(c,1)[0],f=(0,m.useState)(),B=p()(f,2),M=B[0],I=B[1],O=(0,m.useState)(!1),G=p()(O,2),D=G[0],z=G[1],R={height:100,onRemove:function(){I("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:(t=d()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return 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(){u.setFieldsValue(a()(a()({},"publish_time",P()(P()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",P()(P()(new Date((0,L.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:D},onOk:d()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:u.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){u.resetFields(),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,Z.jsxs)(h.Z,{form:u,colon:!1,onFinish:function(){var e=d()(l()().mark((function e(t){var i,a,c,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=M&&M.size){e.next=3;break}return v.ZP.info("请上传文件"),e.abrupt("return");case 3:return z(!0),(i=new FormData).append("name",t.name),i.append("type",n.actionTabs.type),"exercise"===n.actionTabs.type?i.append("time",t.time||""):i.append("description",t.description||""),i.append("publish_time",P()(t.publish_time).format("YYYY-MM-DD HH:mm")),i.append("end_time",P()(t.end_time).format("YYYY-MM-DD HH:mm")),i.append("file",M),e.next=13,(0,N.ZP)("/api/courses/".concat(s.coursesId,"/export_external_score_homework.json"),{method:"post",body:i},!0);case 13:a=e.sent,z(!1),0===(null==a?void 0:a.status)&&(u.resetFields(),o({type:"classroomList/setActionTabs",payload:{}}),r(),(null==a||null===(c=a.data)||void 0===c||null===(c=c.fail)||void 0===c?void 0:c.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,Z.jsx)(x.Z,{pagination:!1,dataSource:null==a||null===(d=a.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,L.FH)("",_.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)(S.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,A.Q8)(e)},disabledTime:function(e){return(0,A.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,A.Q8)(e,"",u.getFieldValue("publish_time"))},disabledTime:function(e){return(0,A.d0)(e,u.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:_.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)(E,i()(i()({},R),{},{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"})]}))})]})]})})}))},36558:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),d=n.n(c),u=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(47766),C=n(46681),S=n(37712),_=function(e){var t,n,o=e.type,r=void 0===o?1:o,s=e.data,c=e.visible,_=e.callback,T=e.onCancel,N=(0,u.useState)([]),A=d()(N,2),B=A[0],P=A[1],L=(0,C.useSelector)((function(e){return e.loading}));(0,u.useEffect)((function(){P(s)}),[JSON.stringify(s)]);var Z=function(e){var t={};if(1===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"未开始":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"提交中":{background:"rgba(0,177,135,0.2)",color:"#00B187"},"已截止":{background:"rgba(229,51,51,0.2)",color:"#E53333"}}[e]}if(2===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"预发布":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"已发布":{background:"rgba(0,177,135,0.2)",color:"#00B187"}}[e]}return(0,S.jsx)("div",{className:k,style:l()({},t),children:e})},E=function(){var e=a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:_(B.map((function(e){return e.task_id})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,S.jsx)(p.Z,{centered:!0,destroyOnClose:!0,open:c,onCancel:T,onOk:E,confirmLoading:null==L||null===(t=L.effects)||void 0===t?void 0:t["classroomList/updateTaskPosition"],okText:"保存",title:"调整排序",width:850,children:(0,S.jsxs)("div",{className:g,children:[(0,S.jsxs)("div",{className:v,children:[(0,S.jsx)("i",{className:"iconfont icon-tishi9 font14 mr10"}),(0,S.jsx)("span",{children:"提示:请在列表中长按鼠标左键,进行拖放排序。完成排序后请点击“保存”"})]}),(0,S.jsx)(m.Z,{loading:null==L||null===(n=L.effects)||void 0===n?void 0:n["classroomList/getAllTaskList"],active:!0,className:"mt20",paragraph:{rows:5},children:(0,S.jsx)(j.Z5,{onDragEnd:function(e){return function(e,t){if(e.destination){var n=function(e,t,n){var o=Array.from(e),i=o.splice(t,1),r=d()(i,1)[0];return o.splice(n,0,r),o}(t,e.source.index,e.destination.index);P(n)}}(e,B)},children:(0,S.jsx)(j.bK,{droppableId:"droppable",children:function(e,t){return(0,S.jsxs)("div",l()(l()({ref:e.innerRef},e.droppableProps),{},{className:x,children:[B.map((function(e,t){return(0,S.jsx)(j._l,{draggableId:e.task_id.toString(),index:t,children:function(t,n){return(0,S.jsxs)("div",l()(l()(l()({ref:t.innerRef},t.draggableProps),t.dragHandleProps),{},{className:w,children:[(0,S.jsxs)(f.Z,{align:"middle",children:[(0,S.jsx)("div",{className:y,children:(0,S.jsx)(h.Z,{title:null==e?void 0:e.task_name,children:(0,S.jsx)("div",{className:b,children:null==e?void 0:e.task_name})})}),Z(null==e?void 0:e.status)]}),(0,S.jsx)(f.Z,{align:"middle",className:"font12 mt10",children:(0,S.jsxs)("span",{className:"mr30 c-grey-666",children:["管理员",(0,S.jsx)("span",{className:"ml5 c-black",children:(null==e?void 0:e.user_name)||"--"})]})})]}))}},e.task_id)})),e.placeholder]}))}})})})]})})}},34497:function(e,t,n){"use strict";n.d(t,{$J:function(){return l},JZ:function(){return d},bN:function(){return m},jP:function(){return p},rO:function(){return c}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(90694);function l(e){return(0,s.U2)("libraries/".concat(e,".json"))}function c(){return(0,s.U2)("library_tags.json")}function d(e){return u.apply(this,arguments)}function u(){return(u=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,s.v_)("libraries.json",e)}function m(e,t){return(0,s.gz)("libraries/".concat(e,".json"),t)}},77578:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});const o=e=>e?"function"==typeof e?e():e:null},27666:function(e,t,n){"use strict";var o=n(12295),i=n(84462);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},r=function(){if(null==t){for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];t=(0,i.Z)(n(o))}};return r.cancel=()=>{i.Z.cancel(t),t=null},r}},81228:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var o=n(15744),i=n(87469),r=n(87902),a=n(16910),s=n(59301),l=n(92310),c=n.n(l),d=n(28647),u=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,r.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;return(0,o.Z)(this,n),(e=t.apply(this,arguments)).state={status:j.None,lastAffix:!1,prevTarget:null},e.placeholderNodeRef=(0,s.createRef)(),e.fixedNodeRef=(0,s.createRef)(),e.addListeners=()=>{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:o}=e.state;o!==n&&(b.forEach((t=>{null==o||o.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),o=null==n?void 0:n();b.forEach((n=>{null==o||o.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:o}=e.props,i=e.getTargetFunc();if(t!==j.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!i)return;const r=e.getOffsetTop(),a=e.getOffsetBottom(),s=i();if(s){const t={status:j.None},i=x(e.placeholderNodeRef.current);if(0===i.top&&0===i.left&&0===i.width&&0===i.height)return;const l=x(s),c=w(i,l,r),d=y(i,l,a);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}):void 0!==d&&(t.affixStyle={position:"fixed",bottom:d,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}),t.lastAffix=!!t.affixStyle,o&&n!==t.lastAffix&&o(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:j.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,p.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,p.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const o=e.getOffsetTop(),i=e.getOffsetBottom(),r=t();if(r&&e.placeholderNodeRef.current){const t=x(r),a=x(e.placeholderNodeRef.current),s=w(a,t,o),l=y(a,t,i);if(void 0!==s&&n.top===s||void 0!==l&&n.bottom===l)return}}e.prepareMeasure()})),e}return(0,i.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:k}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:o,children:i}=this.props,r=c()(e&&o,{[n]:!!e});let a=(0,u.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return s.createElement(d.Z,{onResize:this.updatePosition},s.createElement("div",Object.assign({},a,{ref:this.placeholderNodeRef}),e&&s.createElement("div",{style:t,"aria-hidden":"true"}),s.createElement("div",{className:r,ref:this.fixedNodeRef,style:e},s.createElement(d.Z,{onResize:this.updatePosition},i))))}}]),n}(s.Component);C.contextType=m.E_;var S=(0,s.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:o}=e,{getPrefixCls:i}=(0,s.useContext)(m.E_),r=i("affix",n),[a,l]=v(r),d=Object.assign(Object.assign({},e),{affixPrefixCls:r,rootClassName:c()(o,l)});return a(s.createElement(C,Object.assign({},d,{ref:t})))}))},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var o=n(92310),i=n.n(o),r=n(59301),a=n(36355),s=n(17313),l=n(83116),c=n(37613);const d=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:i,textPaddingInline:r,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},(0,s.Wf)(e)),{borderBlockStart:`${i}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:r},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var u=(0,l.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[d(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};var m=e=>{const{getPrefixCls:t,direction:n,divider:o}=r.useContext(a.E_),{prefixCls:s,type:l="horizontal",orientation:c="center",orientationMargin:d,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]=u(y),j=c.length>0?`-${c}`:c,C=!!h,S="left"===c&&null!=d,_="right"===c&&null!=d,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`]:S,[`${y}-no-default-orientation-margin-right`]:_},m,f),N=r.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),A=Object.assign(Object.assign({},S&&{marginLeft:N}),_&&{marginRight:N});return b(r.createElement("div",Object.assign({className:T,style:Object.assign(Object.assign({},null==o?void 0:o.style),x)},w,{role:"separator"}),h&&"vertical"!==l&&r.createElement("span",{className:`${y}-inner-text`,style:A},h)))}},39722:function(e,t,n){"use strict";n.d(t,{t5:function(){return u}});var o=n(92310),i=n.n(o),r=n(55477),a=n(59301),s=n(36355),l=n(77578),c=n(17356),d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};const u=e=>{const{hashId:t,prefixCls:n,className:o,style:s,placement:c="top",title:d,content:u,children:p}=e;return a.createElement("div",{className:i()(t,n,`${n}-pure`,`${n}-placement-${c}`,o),style:s},a.createElement("div",{className:`${n}-arrow`}),a.createElement(r.G,Object.assign({},e,{className:t,prefixCls:n}),p||((e,t,n)=>{if(t||n)return a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${e}-title`},(0,l.Z)(t)),a.createElement("div",{className:`${e}-inner-content`},(0,l.Z)(n)))})(n,d,u)))};t.ZP=e=>{const{prefixCls:t}=e,n=d(e,["prefixCls"]),{getPrefixCls:o}=a.useContext(s.E_),i=o("popover",t),[r,l]=(0,c.Z)(i);return r(a.createElement(u,Object.assign({},n,{prefixCls:i,hashId:l})))}},60324:function(e,t,n){"use strict";var o=n(92310),i=n.n(o),r=n(59301),a=n(77578),s=n(62892),l=n(36355),c=n(6848),d=n(39722),u=n(17356),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n};const m=e=>{let{title:t,content:n,prefixCls:o}=e;return r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${o}-title`},(0,a.Z)(t)),r.createElement("div",{className:`${o}-inner-content`},(0,a.Z)(n)))},f=r.forwardRef(((e,t)=>{const{prefixCls:n,title:o,content:a,overlayClassName:d,placement:f="top",trigger:h="hover",mouseEnterDelay:g=.1,mouseLeaveDelay:v=.1,overlayStyle:x={}}=e,w=p(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:y}=r.useContext(l.E_),b=y("popover",n),[k,j]=(0,u.Z)(b),C=y(),S=i()(d,j);return k(r.createElement(c.Z,Object.assign({placement:f,trigger:h,mouseEnterDelay:g,mouseLeaveDelay:v,overlayStyle:x},w,{prefixCls:b,overlayClassName:S,ref:t,overlay:o||a?r.createElement(m,{prefixCls:b,title:o,content:a}):null,transitionName:(0,s.m)(C,"zoom-big",w.transitionName),"data-popover-inject":!0})))}));f._InternalPanelDoNotUseOrYouWillBeFired=d.ZP,t.Z=f},17356:function(e,t,n){"use strict";var o=n(17313),i=n(29878),r=n(19447),a=n(33166),s=n(83116),l=n(37613);const c=e=>{const{componentCls:t,popoverColor:n,minWidth:i,fontWeightStrong:a,popoverPadding:s,boxShadowSecondary:l,colorTextHeading:c,borderRadiusLG:d,zIndexPopup:u,marginXS:p,colorBgElevated:m,popoverBg:f}=e;return[{[t]:Object.assign(Object.assign({},(0,o.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":m,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:d,boxShadow:l,padding:s},[`${t}-title`]:{minWidth:i,marginBottom:p,color:c,fontWeight:a},[`${t}-inner-content`]:{color:n}})},(0,r.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},d=e=>{const{componentCls:t}=e;return{[t]:a.i.map((n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}},u=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:i,paddingSM:r,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,d=a-Math.round(s*l);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d/2}px ${c}px ${d/2-n}px`,borderBottom:`${n}px ${o} ${i}`},[`${t}-inner-content`]:{padding:`${r}px ${c}px`}}}};t.Z=(0,s.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,r=(0,l.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[c(r),d(r),o&&u(r),(0,i._y)(r,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJ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