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

1 line
279 KiB

This file contains invisible Unicode characters!

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

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

(self.webpackChunk=self.webpackChunk||[]).push([[14599,4977,93478,4633],{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={},n="5.0",t={},i=null,r=!1,a=!1,o=null,s=!1,c=null,l=null,u=0;u<arguments.length;u++){var d=arguments[u];if(null!==d)switch(_typeof(d)){case"number":n=d.toFixed(1);break;case"string":d.match(new RegExp("^[0-9]\\.[0-9]+$"))?n=d:o=d;break;case"object":void 0!==d.is3D?i=d:t=d;break;case"boolean":r=d,a=!0}}null===i&&(i={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},void 0===t.material_id||a||(r=!0)),null!==o&&void 0===t.id&&(t.id=o);var p="",f=!1,m=null,h=null,v=null,g=!1,x=null,b=null,y=null;void 0!==t.height&&(t.height=Math.round(t.height)),void 0!==t.width&&(t.width=Math.round(t.width));var A=function(e){return parseFloat(e)>4?parseFloat(e):5};function w(){try{return window.self!==window.top}catch(e){return!0}}function _(){return(!t.hasOwnProperty("screenshotGenerator")||!t.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,n){l=e,R(e,n)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,n){var t=parseFloat(e);NaN!==t&&t<5?console.log("The GeoGebra HTML5 codebase version "+t+" is deprecated. Using version latest instead."):(c=e,M(e,n))},e.getHTML5CodebaseVersion=function(){return h},e.getParameters=function(){return t},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function n(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,r="auto",a=t.id,o=!1,c=0;c<arguments.length;c++){var l=arguments[c];"string"==typeof l?(l=l.toLowerCase()).match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?r=l:a=arguments[c]:"boolean"==typeof l?o=l:l instanceof HTMLElement&&(i=l)}function u(){if(s){r=Z(r);var c=i||document.getElementById(a);if(c)if(e.removeExistingApplet(c,!1),void 0===t.width&&c.clientWidth&&(t.width=c.clientWidth),void 0===t.height&&c.clientHeight&&(t.height=c.clientHeight),t.width&&t.height||"html5"!==r||(delete t.width,delete t.height),m=r,"screenshot"===r)E(c,t);else{var l=!1;t.hasOwnProperty("playButton")&&t.playButton||t.hasOwnProperty("clickToLoad")&&t.clickToLoad?l=!0:t.hasOwnProperty("playButtonAutoDecide")&&t.playButtonAutoDecide&&(l=(!w()||n())&&_()),l?(m="screenshot",T(c,t,o,r)):B(c,t,o)}else console.log("possibly bug on ajax loading? ")}else setTimeout(u,200)}u()},e.getViews=function(){return i},e.isJavaInstalled=function(){return!1};var j=function(n){var r=function(){t.onError&&t.onError(),O("Error: Fetching material (id "+t.material_id+") failed.",t)},a=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",o="/materials/"+t.material_id+"?scope=basic";C("https://"+a+"/api/proxy.php?path="+encodeURIComponent(o),(function(a){var o=JSON.parse(a),s=o.elements?o.elements.filter((function(e){return"G"==e.type||"E"==e.type}))[0]:o;if(s&&s.url){t.fileName=s.url,k(s.settings||{}),i.is3D=!0;var c="https://www.geogebra.org/images/";e.setPreviewImage(x||s.previewUrl,c+"GeoGebra_loading.png",c+"applet_play.png"),n()}else r()}),r)};function k(e){["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach((function(n){e[n]=!!e[n]})),["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"].forEach((function(n){void 0===t[n]&&void 0!==e[n]&&(t[n]=e[n])})),void 0===t.showToolBarHelp&&(t.showToolBarHelp=t.showToolBar)}function C(e,n,t){var i=new XMLHttpRequest;i.open("GET",e),i.onload=function(){n(i.responseText)},i.onerror=t,i.send()}e.isHTML5Installed=function(){return!0},e.getLoadedAppletType=function(){return m},e.setPreviewImage=function(e,n,t){x=e,b=n,t},e.removeExistingApplet=function(e,n){var i;"string"==typeof e&&(e=document.getElementById(e)),m=null;var r=null;for(i=0;i<e.childNodes.length;i++){var a=e.childNodes[i],o=a.className;"applet_screenshot"===o?n?(a.style.display="block",m="screenshot"):a.style.display="none":"applet_scaler prerender"!==o&&(e.removeChild(a),r=o&&-1!=o.indexOf("appletParameters")?a.id:null,i--)}var s=void 0!==t.id?t.id:r,c=window[s];c&&"function"==typeof c.getBase64&&(c.remove(),window[s]=null)},e.refreshHitPoints=function(){if(A(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var n=e.getAppletObject();return!(!n||"function"!=typeof n.recalculateEnvironments)&&(n.recalculateEnvironments(),!0)},e.startAnimation=function(){var n=e.getAppletObject();return!(!n||"function"!=typeof n.startAnimation)&&(n.startAnimation(),!0)},e.stopAnimation=function(){var n=e.getAppletObject();return!(!n||"function"!=typeof n.stopAnimation)&&(n.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==t.id?t.id:"ggbApplet";return window[e]},e.resize=function(){};var N=function(e){return e&&"false"!==e},B=function(n,t,i){A(h)<=4.2&&(i=!0);var r=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==h||ggbHTML5LoadedCodebaseIsWebSimple&&!g)&&(r=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var a=document.createElement("div");a.classList.add("appletParameters","notranslate");var o=t.width,s=t.height;if(t.disableAutoScale=void 0===t.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():t.disableAutoScale,void 0!==t.width)if(A(h)<=4.4)N(t.showToolBar)&&(t.height-=7),N(t.showAlgebraInput)&&(t.height-=37),t.width<605&&N(t.showToolBar)&&(t.width=605,o=605);else{var u=100;(N(t.showToolBar)||N(t.showMenuBar))&&(t.hasOwnProperty("customToolBar")&&(t.customToolbar=t.customToolBar),u=N(t.showMenuBar)?245:155),o<u&&(t.width=u,o=u)}for(var d in a.style.border="none",a.style.display="inline-block",t)t.hasOwnProperty(d)&&"appletOnLoad"!==d&&a.setAttribute("data-param-"+d,t[d]);y&&a.setAttribute("data-param-fontscssurl",y),e.resize=function(){GGBAppletUtils.responsiveResize(n,t)},window.addEventListener("resize",(function(n){e.resize()}));var f="function"==typeof t.appletOnLoad?t.appletOnLoad:function(){};if(i||void 0===t.width){var m=document.createElement("div");m.className="applet_scaler",m.style.position="relative",m.style.display="block",m.appendChild(a),n.appendChild(m),t.appletOnLoad=function(n){e.resize(),f(n)}}else{t.hasOwnProperty("showSplash")||a.setAttribute("data-param-showSplash","false");var x=n.querySelector(".applet_scaler.prerender"),b=null!==x;if(b)w=x.querySelector(".ggb_preview");else{var w=I(o,s,t.borderColor,!1);(x=document.createElement("div")).className="applet_scaler",x.style.position="relative",x.style.display="block",x.style.width=o+"px",x.style.height=s+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(x,"66%"),A(h)>=5?(t.appletOnLoad=function(e){var t=n.querySelector(".ggb_preview");t&&t.parentNode.removeChild(t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(x),window.GGBT_wsf_view&&$(window).trigger("resize"),f(e)},b||x.appendChild(w)):a.appendChild(w),x.appendChild(a),b||n.appendChild(x),setTimeout((function(){e.resize()}),1)}function _(e,n){n&&"function"==typeof n.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,n.appletOnLoad):renderGGBElement(e),O("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",n)}function j(e,n){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:n}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){_(e.article,e.params)})),html5AppletsToProcess=null)},A(h)<5&&(e.className+=" geogebraweb")):_(e,n)}if(r){scriptLoadStarted=!0;for(var k=0;k<a.childNodes.length;k++){"TABLE"===a.childNodes[k].tagName&&(a.removeChild(a.childNodes[k]),k--)}if(null!==ggbHTML5LoadedScript){var C=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=C&&C.parentNode.removeChild(C)}var B=document.createElement("script"),E=function(){j(a,t)};B.src=p+v,ggbHTML5LoadedCodebaseIsWebSimple=g,ggbHTML5LoadedCodebaseVersion=h,ggbHTML5LoadedScript=B.src,O("GeoGebra HTML5 codebase loaded: '"+p+"'.",t),l||c&&"5.0"!=c?p.requirejs?__webpack_require__.e(76839).then(function(){var e=[__webpack_require__(28628)];E.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(B.onload=E,n.appendChild(B)):(g?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),E())}else j(a,t);t.height=s,t.width=o},E=function(n,t,i){var r=I(t.width,t.height,t.borderColor,i),a=document.createElement("div");a.style.position="relative",a.style.display="block",a.style.width=t.width+"px",a.style.height=t.height+"px",a.className="applet_screenshot applet_scaler"+(i?" applet_screenshot_play":""),a.appendChild(r);var o=GGBAppletUtils.getScale(t,n,i);i?(n.appendChild(P()),window.GGBT_wsf_view||(n.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(a,"66%"),n.appendChild(a),1===o||isNaN(o)||(GGBAppletUtils.scaleElement(a,o),a.style.width=t.width+"px",a.style.height=t.height+"px",a.parentNode.style.width=t.width*o+"px",a.parentNode.style.height=t.height*o+"px"),e.resize=function(){S(n,r,a,i)},window.addEventListener("resize",(function(n){e.resize()})),e.resize()};function S(e,n,i,r){if(e.contains(n)){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if("fullscreencontent"!==e.id)return;window.GGBT_wsf_view.setCloseBtnPosition(e)}var a=GGBAppletUtils.getScale(t,e,r);null!==i.parentNode&&(isNaN(a)||1===a?(GGBAppletUtils.scaleElement(i,1),i.parentNode.style.width=t.width+"px",i.parentNode.style.height=t.height+"px"):(GGBAppletUtils.scaleElement(i,a),i.parentNode.style.width=t.width*a+"px",i.parentNode.style.height=t.height*a+"px")),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(e),"object"===_typeof(window.GGBT_ws_header_footer)&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}e.onExitFullscreen=function(e,n){n.appendChild(e)};var T=function(e,n,t,i){E(e,n,!0);for(var r=function(){var t=[];for(o=0;o<e.childNodes.length;o++)t.push(e.childNodes[o]);if(window.GGBT_wsf_view){var r=window.GGBT_wsf_view.renderFullScreen(e,n.id),a=document.getElementById("fullscreencontainer"),s=jQuery(e).find(".fullscreencontent");s.length>0?(r.remove(),s.attr("id","fullscreencontent").show(),jQuery(a).append(s),window.dispatchEvent(new Event("resize"))):B(r,n,!1),window.GGBT_wsf_view.launchFullScreen(a)}else m=i,B(e,n,!1);if(!window.GGBT_wsf_view)for(o=0;o<t.length;o++)e.removeChild(t[o])},a=e.getElementsByClassName("ggb_preview_play"),o=0;o<a.length;o++)a[o].addEventListener("click",r,!1),a[o].addEventListener("ontouchstart",r,!1);"function"==typeof window.ggbAppletPlayerOnload&&window.ggbAppletPlayerOnload(e),_()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},P=function(){var e=document.createElement("div");if(e.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var n='.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");}',t=document.createElement("style");t.styleSheet?t.styleSheet.cssText=n:t.appendChild(document.createTextNode(n)),document.getElementsByTagName("head")[0].appendChild(t)}return e},I=function(e,n,t,i){var r=document.createElement("div");r.className="ggb_preview",r.style.position="absolute",r.style.zIndex="90",r.style.width=e-2+"px",r.style.height=n-2+"px",r.style.top="0px",r.style.left="0px",r.style.overflow="hidden",r.style.backgroundColor="white";var a="lightgrey";void 0!==t&&(a="none"===t?"transparent":t),r.style.border="1px solid "+a;var o,s,c,l=document.createElement("img");if((l.style.position="relative",l.style.zIndex="1000",l.style.top="-1px",l.style.left="-1px",null!==x&&l.setAttribute("src",x),l.style.opacity=.7,null!==b)&&!i){(o=document.createElement("img")).style.position="absolute",o.style.zIndex="1001",o.style.opacity=1,l.style.opacity=.3,(s=360)>e/4*3&&(s=e/4*3),c=s/5.8,o.setAttribute("src",b),o.setAttribute("width",s),o.setAttribute("height",c);var u=(e-s)/2,d=(n-c)/2;o.style.left=u+"px",o.style.top=d+"px",r.appendChild(o)}return r.appendChild(l),r},Z=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},L=["web","webSimple","web3d","tablet","tablet3d","phone"],M=function(e,n){if(h=e,n)R(h,!0);else{var a,o,s=!r;if(s){var c=A(h);!isNaN(c)&&c<4.4&&(s=!1)}a="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var l=h.indexOf("//");for(var u in o=l>0?h:0===l?a+h:"https://www.geogebra.org/apps/5.2.814.0/",L)if(h.slice(-1*L[u].length)===L[u]||h.slice(-1*(L[u].length+1))===L[u]+"/")return void R(o,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||N(t.showToolBar)||N(t.showMenuBar)||N(t.showAlgebraInput)||N(t.enableRightClick)||t.appName&&"classic"!=t.appName?o+="web3d/":o+="webSimple/",R(o,!1)}},R=function(e,n){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===n&&(n=-1===e.indexOf("http")),f=n,v="web.nocache.js",g=!1;var t=p.split("/");t.length>1&&(n||"webSimple"!==t[t.length-2]?L.indexOf(t[t.length-2])>=0&&(v=t[t.length-2]+".nocache.js"):(v="webSimple.nocache.js",g=!0)),t=e.split("/"),"test"===(h=t[t.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 i=parseFloat(h);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),M("5.0",n))}},O=function(e,n){window.console&&window.console.log&&(!n||void 0===n.showLogging||n.showLogging&&"false"!==n.showLogging)&&console.log(e)};function D(){var e=n;null!==c?e=c:parseFloat(e)<5&&(e="5.0"),M(e,!1),null!==l&&R(l,f),s=!0}return void 0!==t.material_id?j(D):D(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function n(e,n){1!=n?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+n+","+n+")",e.style.webkitTransform="scale("+n+","+n+")",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 t(e,n,t,i,r){if(e.isScreenshoGenerator)return 1;var a,o=void 0!==i&&i,s=null!=e.noScaleMargin&&e.noScaleMargin,c=(a=e.autoHeight)&&"false"!==a,l=function(e,n,t,i,r,a){var o=null;if(null!=a&&""!=a)for(var s=e.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+a+" ")>-1){o=s;break}s=s.parentNode}var c=0,l=0,u=0,d=0,p=0,f=0,m=0;if(o)c=o.offsetWidth,l=Math.max(i?o.offsetWidth:0,o.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(c=Math.min(window.innerWidth,document.documentElement.clientWidth),l=Math.min(window.innerHeight,document.documentElement.clientHeight),u=c):(c=window.innerWidth,l=window.innerHeight,u=window.innerWidth),e){var h=e.getBoundingClientRect();h.left>0&&h.left<=c&&(void 0===r||!r)&&("rtl"===document.dir?(p=c-h.width-h.left,f=u<=480?10:30):(f=h.left,p=u<=480?10:30),d=f+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,m=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,m=40))}return e&&((void 0===t||!t)&&n>0&&n+d<c?c=n:c-=d,"object"!==_typeof(window.GGBT_wsf_view)||!window.GGBT_wsf_view.isFullscreen()||void 0!==t&&t||(l-=m)),{width:c,height:l}}(n,e.width,t,c,o&&window.GGBT_wsf_view||s,r),u=parseInt(l.width),d=e.width,p=e.height;if(void 0===d){var f=n.querySelector(".appletParameters");f&&(d=f.offsetWidth,p=f.offsetHeight)}var m=u/d,h=o?1:l.height/p;return void 0===t||t||(m=Math.min(1,m),h=Math.min(1,h)),Math.min(m,h)}function i(e,n,i){var r,a=1,o=!1;return e.hasOwnProperty("allowUpscale")&&(o=e.allowUpscale),e.hasOwnProperty("scale")&&(a=parseFloat(e.scale),(isNaN(a)||null===a||0===a)&&(a=1),a>1&&(o=!0)),n&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(o=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?a:(r=t(e,n,o,i,e.scaleContainerClass),!o||e.hasOwnProperty("scale")&&1!==a?Math.min(a,r):r)}function r(e){var n=Math.min(window.innerWidth,document.documentElement.clientWidth),t=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),r=(n-i.width)/2,a=(t-i.height)/2;a<0&&(a=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=r<40?"40px":r+"px",e.style.top=a+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=a<40?"40px":a+"px",e.style.left=r+"px")}return{responsiveResize:function(t,a){var o=t.querySelector(".appletParameters");if(o){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(a.id!==o.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(t)}if(o.parentElement&&/fullscreen/.test(o.parentElement.className))return;var s=i(a,t);e()&&o.setAttribute("data-param-scale",s);for(var c=null,l=0;l<t.childNodes.length;l++)if(void 0!==t.childNodes[l].className&&t.childNodes[l].className.match(/^applet_scaler/)){c=t.childNodes[l];break}if(null!==c&&null!==c.querySelector(".noscale"))return;var u=void 0!==a.id?a.id:"ggbApplet",d=window[u];null!=d&&d.recalculateEnvironments||null===c||c.className.match(/fullscreen/)||(c.parentNode.style.transform="",isNaN(s)||1===s?(n(c,1),c.parentNode.style.width=a.width+"px",c.parentNode.style.height=a.height+"px"):(c.parentNode.style.width=a.width*s+"px",c.parentNode.style.height=a.height*s+"px",n(c,s))),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&r(t),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(o).parents(".content-added-content"))}},isFlexibleWorksheetEditor:e,positionCenter:r,getScale:i,scaleElement:n}}();__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,n){}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 n(){return _typeof(o.readyState)==Y?_typeof(o.body)!=Y&&null!=o.body:/loaded|complete/.test(o.readyState)}var t=n();if(t)e();else{o.addEventListener&&o.addEventListener(Z,r,!1);var i=setInterval((function(){r()}),$)}function r(){if(!t){if(!n())return;t=!0,e(),o.removeEventListener&&o.removeEventListener(Z,r,!1),i&&clearInterval(i)}}}((function(){var n,t,i,r;n=e,t=u(),i=t.body,(r=t.createElement(_)).language=ab,r.crossOrigin=W,r.src=n,webModule.__errFn&&(r.onerror=function(){webModule.__errFn(L,new Error(bb+n))}),i.appendChild(r),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 n=c[e];return null==n?null:n},r=d,webModule.__errFn=e}function B(){function e(e){var n=e.lastIndexOf(rb);-1==n&&(n=e.length);var t=e.indexOf(sb);-1==t&&(t=e.length);var i=e.lastIndexOf(tb,Math.min(t,n));return i>=O?e.substring(O,i+P):W}var n,t=null!=(n=__gwt_getMetaProperty(wb))?n:W;return t==W&&(t=function(){for(var n=o.getElementsByTagName(_),t=O;t<n.length;++t)if(-1!=n[t].src.indexOf(xb))return e(n[t].src);return W}()),t==W&&(t=function(){var e=o.getElementsByTagName(yb);return e.length>O?e[e.length-P].href:W}()),t==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(t=e(o.location.href)),t=function(n){if(n.match(/^\w+:\/\//));else{var t=o.createElement(ub);t.src=n+vb,n=e(t.src)}return n}(t),t}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],a=[];function o(e){var n=a[e](),t=i[e];if(n in t)return n;var o=[];for(var s in t)o[t[s]]=s;throw r&&r(e,o,n),null}if(__gwt_isKnownPropertyValue=function(e,n){return n in i[e]},webModule.__getPropMap=function(){var e={};for(var n in i)i.hasOwnProperty(n)&&(e[n]=o(n));return e},webModule.__computePropValue=o,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 n=s[L].bindings;s[L].bindings=function(){for(var t=n?n():{},i=e[webModule.__softPermutationId],r=O;r<i.length;r++){var a=i[r];t[a[O]]=a[P]}return t}},webModule.__startLoadingFragment=function(e){return C(e)},webModule.__installRunAsyncCode=function(e){var n=u(),t=n.body,i=n.createElement(_);i.language=ab,i.text=e,t.appendChild(i),t.removeChild(i)},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,n,t){"use strict";function i(e){var n=!0;if(e.length>0){for(var t=0;t<e.length;t++)if(0==e[t].compile_success||!e[t].compile_success){n=!1;break}}else n=!1;return n}function r(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=[],i=0;i<e.length;i++){var r=e[i],a=n?"".concat(n,"/").concat(r.name):"".concat(r.name);t.push({title:r.name,type:r.type,isLeaf:"tree"!==r.type,key:a})}return t}function a(e,n,t){for(var i=0;i<e.length;i++){var r=e[i];if(r.key===n){r.children=t;break}r.children&&a(r.children,n,t)}return e}function o(e,n,t){var i;return function(){var r=this,a=arguments,o=function(){i=null,t||e.apply(r,a)},s=t&&!i;clearTimeout(i),i=setTimeout(o,n),s&&e.apply(r,a)}}t.d(n,{Ax:function(){return a},Ds:function(){return o},KI:function(){return s},SI:function(){return r},f1:function(){return i}});var s=t(57357).Z.API_SERVER},44745:function(e,n,t){"use strict";t.d(n,{Z:function(){return g}});var i=t(82242),r=t.n(i),a=t(7557),o=t.n(a),s=t(41498),c=t.n(s),l=t(79800),u=t.n(l),d=t(39647),p=t.n(d),f=t(3113),m=t(59301),h=t(37712),v=["children"],g=function(e){var n=e.children,t=p()(e,v),i=(0,m.useState)(!1),a=u()(i,2),s=a[0],l=a[1];return(0,h.jsx)(f.ZP,r()(r()({},t),{},{loading:s,onClick:function(){var e=c()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l(!0),e.next=4,t.onClick(n);case 4:l(!1),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0),l(!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(n){return e.apply(this,arguments)}}(),children:n}))}},21795:function(e,n,t){"use strict";t.d(n,{Z:function(){return y}});var i=t(82242),r=t.n(i),a=t(7557),o=t.n(a),s=t(41498),c=t.n(s),l=t(79800),u=t.n(l),d=t(39647),p=t.n(d),f=t(59301),m=t(48209),h=t(56364),v="customTree___ZhEHU",g="name___RIkn2",x=t(37712),b=["value","onChange","defaultValue","disabled"],y=function(e){var n=e.value,t=e.onChange,i=e.defaultValue,a=e.disabled,s=p()(e,b),l=(0,f.useState)([]),d=u()(l,2),y=d[0],A=d[1],w=(0,f.useState)("1"),_=u()(w,2),j=_[0],k=_[1];(0,f.useEffect)((function(){C()}),[]);var C=function(){var e=c()(o()().mark((function e(){var n,t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,h.NZ)({});case 2:null!=(n=e.sent)&&n.data&&(t=[{title:(0,x.jsx)("div",{title:"根目录",className:g,children:"根目录"}),value:0,key:0,icon:(0,x.jsx)("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:N(n.data||[])}],A(t),k("2"));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),N=function(e){function n(e){var t=e.children,i=Array.isArray(t)&&t.length>0,r=null==e?void 0:e.group_id;return{title:(0,x.jsx)("div",{title:null==e?void 0:e.name,className:g,children:null==e?void 0:e.name}),value:r,key:r,icon:(0,x.jsx)("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:i?null==t?void 0:t.map((function(e){return n(e)})):[]}}return null==e?void 0:e.map((function(e){return n(e)}))},B=i?{defaultExpandedKeys:[0],defaultSelectedKeys:[0]}:{selectedKeys:n,defaultExpandedKeys:n};return(0,x.jsx)("div",{className:v,children:(0,x.jsx)(m.Z,r()(r()({},B),{},{showIcon:!0,treeData:y,onSelect:t,disabled:a},s),j)})}},83839:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var i=t(79800),r=t.n(i),a=t(78241),o=t(98135),s=t(3113),c=t(59301),l={search:"search___JA0r9",btn:"btn___GGtZC"},u=t(37712),d=function(e){var n=e.value,t=e.onChange,i=a.Z.useForm(),d=r()(i,1)[0],p=(0,c.useRef)(!1);(0,c.useEffect)((function(){n&&d.setFieldsValue(n)}),n);return(0,u.jsx)("div",{className:l.search,children:(0,u.jsxs)(a.Z,{className:l.formWrap,colon:!1,form:d,size:"large",layout:"inline",onFinish:function(e){p.current||function(e){p.current||t(e),p.current=!0,setTimeout((function(){p.current=!1}),2e3)}(e)},children:[(0,u.jsx)(a.Z.Item,{label:"实践项目名称",name:"keyword",initialValue:"",children:(0,u.jsx)(o.Z,{style:{width:280,height:40}})}),(0,u.jsx)(a.Z.Item,{label:"学校/单位",name:"schools",initialValue:"",style:{margin:"0 40px"},children:(0,u.jsx)(o.Z,{style:{width:280,height:40}})}),(0,u.jsx)(a.Z.Item,{label:"创建者/合作者",name:"creator",initialValue:"",children:(0,u.jsx)(o.Z,{style:{width:200,height:40}})}),(0,u.jsx)(s.ZP,{className:l.btn,type:"primary",htmlType:"submit",children:"搜索"})]})})}},87359:function(e,n,t){"use strict";t.d(n,{Z:function(){return y}});var i=t(7557),r=t.n(i),a=t(41498),o=t.n(a),s=t(79800),c=t.n(s),l=t(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",f=t(92310),m=t.n(f),h=t(71418),v=t(2859),g=t(90694),x=t(41282),b=t(37712),y=function(e){var n=e.data,t=e.className,i=e.fullWidth,a=e.style,s=void 0===a?{}:a,f=e.onClose,y=e.onOk,A=e.showFullTools,w=e.noAssociationId,_=(0,l.useRef)(null),j=(0,l.useRef)(null),k=(0,l.useState)(!1),C=c()(k,2),N=C[0],B=C[1],E=(0,l.useState)("正在加载中"),S=c()(E,2),T=S[0],P=S[1];(0,l.useEffect)((function(){null!=n&&n.visible?document.body.setAttribute("data-custom","y-hidden"):document.body.removeAttribute("data-custom"),null!=n&&n.src&&I()}),[null==n?void 0:n.visible]);var I=function(){var e=o()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B(!0),P("正在加载中"),e.next=4,(0,x.ZJ)(null==n?void 0:n.src);case 4:t=e.sent,_.current.src="",_.current.src=t,_.current.onload=function(){L()},B(!1),P("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=o()(r()().mark((function e(t){var i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return B(!0),P("正在保存中"),e.next=4,(0,g.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:n.title,file:t.dataUrl}});case 4:if(null==(i=e.sent)||!i.id||w){e.next=12;break}return e.next=8,(0,g.ZP)("/api/attachments/".concat(n.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==i?void 0:i.id,settings:JSON.stringify(t.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=i&&i.id&&y(i);case 13:B(!1),P("");case 15:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),L=function(){j.current=new v.hP(_.current),j.current.addEventListener("render",Z),j.current.addEventListener("beforeclose",f),A&&(j.current.availableMarkerTypes=j.current.ALL_MARKER_TYPES,j.current.uiStyleSettings.redoButtonVisible=!0,j.current.uiStyleSettings.notesButtonVisible=!0,j.current.uiStyleSettings.zoomButtonVisible=!0,j.current.uiStyleSettings.zoomOutButtonVisible=!0,j.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=j.current.uiStyleSettings,j.current.show(),null!=n&&n.snapshotData&&j.current.restoreState(n.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 n=document.querySelector(e.name);n&&n.setAttribute("title",e.title)}))}),300)};return(0,b.jsx)(l.Fragment,{children:(null==n?void 0:n.visible)&&(0,b.jsxs)("div",{className:m()(u,t,i?p:""),style:s,children:[(0,b.jsx)(h.Z,{spinning:N,tip:T,style:{position:"absolute"}}),(0,b.jsx)("img",{className:d,ref:_})]})})}},73031:function(e,n,t){"use strict";t.d(n,{S:function(){return j}});var i=t(79800),r=t.n(i),a=t(59301),o=t(20834),s=t(38854),c="main___A2KB0",l="wrap___PrMse",u="content___pEqhq",d="programName___h8PAJ",p="name___oxG0a",f="directionContentWrap____Ymcj",m="directionItem___uCMBX",h="active___vOl0l",v="subActive___WzT87",g="subItem___nVuXN",x="subMenu___DqKGV",b="action___O7v85",y=t(37712),A=[{name:"编程题",value:"PROGRAM"},{name:"单选题",value:"SINGLE"},{name:"多选题",value:"MULTIPLE"},{name:"判断题",value:"JUDGMENT"},{name:"填空题",value:"COMPLETION"},{name:"简答题",value:"SUBJECTIVE"},{name:"组合题",value:"COMBINATION"},{name:"程序填空题",value:"BPROGRAM"}],w=[{name:"简单",value:1},{name:"适中",value:2},{name:"困难",value:3}],_=[{name:"随机组卷",value:1},{name:"人工组卷",value:2}],j=function(e){e.showSelectAll;var n=e.disciplinesData,t=void 0===n?[]:n,i=e.knowledgeData,j=void 0===i?[]:i,k=e.directionValue,C=e.subDisciplineValue,N=e.typeValue,B=e.knowledgeValue,E=e.showKnowledge,S=void 0!==E&&E,T=e.showRandomType,P=void 0!==T&&T,I=e.difficultyValue,Z=e.randomValue,L=(e.selectAll,e.languagesvalue,e.className),M=(e.languages,e.isprogram_homework),R=e.showShixun,O=void 0!==R&&R,D=e.showItemType,G=void 0===D||D,Q=e.onShixunChange,F=void 0===Q?function(){}:Q,z=e.onDirectionChange,W=void 0===z?function(){}:z,H=e.onTypeChange,V=void 0===H?function(){}:H,q=e.onDifficultyChange,Y=void 0===q?function(){}:q,U=(e.handlelanguagesChange,e.onKnowledgeChange),K=void 0===U?function(){}:U,X=e.onRandomChange,J=void 0===X?function(){}:X,$=e.showTeachGroup,ee=void 0!==$&&$,ne=e.teachGroupData,te=void 0===ne?[]:ne,ie=e.onTeachGroupChange,re=void 0===ie?function(){}:ie,ae=e.teachGroupValue,oe=(0,a.useState)(0),se=r()(oe,2),ce=se[0],le=se[1],ue=(0,a.useRef)(null),de=(0,a.useState)(0),pe=r()(de,2),fe=pe[0],me=pe[1],he=(0,a.useRef)(null);(0,a.useEffect)((function(){var e;0!==t.length&&((null==ue||null===(e=ue.current)||void 0===e?void 0:e.clientHeight)>108?le(1):le(0));0===t.length&&le(0)}),[t]),(0,a.useEffect)((function(){var e;0!==j.length&&((null==he||null===(e=he.current)||void 0===e?void 0:e.clientHeight)>108?me(1):me(0));0===j.length&&me(0)}),[j]);var ve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return(0,y.jsx)(o.Z,{className:x,children:e.map((function(e){return(0,y.jsx)(o.Z.Item,{children:(0,y.jsx)("a",{className:"".concat(g," ").concat(C===e.id?v:""),onClick:function(){return W(n,e.id)},children:e.name})},e.id)}))})};return(0,y.jsx)("aside",{className:L?"".concat(c," ").concat(L):c,children:(0,y.jsxs)("div",{className:l,children:[M&&(0,y.jsx)("div",{className:d,children:"试题库-编程题"}),ee&&(0,y.jsxs)("div",{className:u,children:[(0,y.jsx)("span",{className:p,children:"团队"}),(0,y.jsxs)("div",{className:f,children:[(0,y.jsx)("li",{className:"".concat(m," ").concat(ae?"":h," "),onClick:function(){return re(null)},children:"全部"}),null==te?void 0:te.map((function(e){return(0,y.jsx)("li",{className:"".concat(m," ").concat(ae===e.group_id?h:""," "),onClick:function(){return re(e.group_id)},children:e.name},e.group_id)}))]})]}),(0,y.jsxs)("div",{className:u,children:[(0,y.jsx)("span",{className:p,children:"方向"}),(0,y.jsx)("span",{}),(0,y.jsxs)("div",{className:f,style:{overflow:"hidden",height:1===ce?88:"auto"},children:[(0,y.jsx)("li",{className:"".concat(m," ").concat(k?"":h," "),onClick:function(){return W(null)},children:"全部"}),t.map((function(e){var n;return(0,y.jsx)(a.Fragment,{children:(null===(n=e.sub_disciplines)||void 0===n?void 0:n.length)>0?(0,y.jsx)(s.Z,{placement:"bottomLeft",overlayStyle:{width:600},getPopupContainer:function(e){return e.parentNode},dropdownRender:function(){return ve(e.sub_disciplines,e.id)},children:(0,y.jsx)("li",{className:"".concat(m," ").concat(k===e.id?h:""," "),onClick:function(){return W(e.id)},children:e.name})}):(0,y.jsx)("li",{className:"".concat(m," ").concat(k===e.id?h:""," "),onClick:function(){return W(e.id)},children:e.name})},e.id)}))]}),(0,y.jsx)("div",{className:f,ref:ue,style:{height:"auto",position:"fixed",left:0,top:0,width:1024,visibility:"hidden"},children:t.map((function(e){var n;return(0,y.jsx)(a.Fragment,{children:(null===(n=e.sub_disciplines)||void 0===n?void 0:n.length)>0?(0,y.jsx)(s.Z,{placement:"bottomLeft",overlayStyle:{width:600},getPopupContainer:function(e){return e.parentNode},dropdownRender:function(){return ve(e.sub_disciplines,e.id)},children:(0,y.jsx)("li",{className:"".concat(m," ").concat(k===e.id?h:""," "),onClick:function(){return W(e.id)},children:e.name})}):(0,y.jsx)("li",{className:"".concat(m," ").concat(k===e.id?h:""," "),onClick:function(){return W(e.id)},children:e.name})},e.id)}))}),!!ce&&(0,y.jsxs)("div",{className:b,children:[1===ce&&(0,y.jsxs)("span",{onClick:function(){return le(2)},children:["展开",(0,y.jsx)("i",{className:"iconfont icon-xiala"})]}),2===ce&&(0,y.jsxs)("span",{onClick:function(){return le(1)},children:["收起",(0,y.jsx)("i",{style:{transform:"scale(0.5) rotate(180deg) translateY(2px)"},className:"iconfont icon-xiala"})]})]})]}),S&&(0,y.jsxs)("div",{className:u,children:[(0,y.jsx)("span",{className:p,children:"知识点"}),(0,y.jsxs)("div",{className:f,style:{overflow:"hidden",height:1===fe?94:"auto"},children:[(0,y.jsx)("li",{className:"".concat(m," ").concat(-1===B?h:""," "),onClick:function(){return K(-1)},children:"全部"}),j.map((function(e){return(0,y.jsx)("li",{className:"".concat(m," ").concat(B===e.id?h:""," "),onClick:function(){return K(e.id)},children:e.name},e.id)}))]}),(0,y.jsx)("div",{ref:he,className:f,style:{height:"auto",position:"fixed",left:0,top:0,width:1010,visibility:"hidden"},children:j.map((function(e){return(0,y.jsx)("li",{className:"".concat(m," ").concat(B===e.id?h:""," "),onClick:function(){return K(e.id)},children:e.name},e.id)}))}),!!fe&&(0,y.jsxs)("div",{className:b,children:[1===fe&&(0,y.jsxs)("span",{onClick:function(){return me(2)},children:["展开",(0,y.jsx)("i",{className:"iconfont icon-xiala"})]}),2===fe&&(0,y.jsxs)("span",{onClick:function(){return me(1)},children:["收起",(0,y.jsx)("i",{style:{transform:"scale(0.5) rotate(180deg) translateY(2px)"},className:"iconfont icon-xiala"})]})]})]}),G&&!M&&(0,y.jsxs)("div",{className:u,children:[(0,y.jsx)("span",{className:p,children:"题型"}),(0,y.jsx)("li",{className:"".concat(m," ").concat(N?"":h," "),onClick:function(){return V(null)},children:"全部"}),(0,y.jsxs)("div",{className:f,children:[A.map((function(e){return(0,y.jsx)("li",{className:"".concat(m," ").concat(N===e.value?h:""," "),onClick:function(){return V(e.value)},children:e.name},e.name)})),O&&(0,y.jsx)("li",{className:m,onClick:function(){return F()},children:"实训题"},"实训题")]})]}),(0,y.jsxs)("div",{className:u,children:[(0,y.jsx)("span",{className:p,children:"难度"}),(0,y.jsx)("li",{className:"".concat(m," ").concat(I?"":h," "),onClick:function(){return Y(null)},children:"全部"}),(0,y.jsx)("div",{className:f,children:w.map((function(e){return(0,y.jsx)("li",{className:"".concat(m," ").concat(I===e.value?h:""," "),onClick:function(){return Y(e.value)},children:e.name},e.name)}))})]}),P&&(0,y.jsxs)("div",{className:u,children:[(0,y.jsx)("span",{className:p,children:"类型"}),(0,y.jsx)("li",{className:"".concat(m," ").concat(Z?"":h," "),onClick:function(){return J(null)},children:"全部"}),(0,y.jsx)("div",{className:f,children:_.map((function(e){return(0,y.jsx)("li",{className:"".concat(m," ").concat(Z===e.value?h:""," "),onClick:function(){return J(e.value)},children:e.name},e.name)}))})]})]})})}},64565:function(e,n,t){"use strict";var i=t(79800),r=t.n(i),a=t(59301),o=t(50630),s=(t(48136),t(42594)),c=t(43418),l=t(37712),u=(0,a.forwardRef)((function(e,n){var t=e.callback,i=e.width,u=e.onChange,d=e.disabled,p=e.readOnly,f=e.type,m=void 0===f?"":f,h=e.value,v=void 0===h?"":h,g=e.style,x=void 0===g?{}:g,b=(0,a.useRef)(),y=(0,a.useRef)(),A=(0,a.useState)(0),w=r()(A,2),_=w[0],j=w[1],k=(0,a.useState)(0),C=r()(k,2),N=C[0],B=C[1],E=(0,a.useState)(!1),S=r()(E,2),T=S[0],P=S[1],I=function(){var e=document.createElement("div");e.innerHTML=b.current.getValue();var n=e.innerText;return t&&t(n),n};(0,a.useImperativeHandle)(n,(function(){return{getData:I}}));var Z=function(e,n,t,i){var r=document.body.clientHeight,a=document.body.clientWidth;return!(e<20&&t>e||e>a-20&&t<e||n<20&&i>n||n>r-20&&i<n)||(document.body.onmousemove=null,document.body.onmouseup=null,!1)};(0,a.useEffect)((function(){T&&setTimeout((function(){var e=document.getElementsByClassName("ant-modal")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;j(n),B(t)}),0)}),[T]);return(0,l.jsxs)("div",{style:x,children:[(0,l.jsx)("div",{style:{width:i||"100%",position:"relative"},className:"".concat(o.Z.mathFillWrap," ").concat(d||p?"cursorDefault":""),onClick:function(){d||p||P(!0)},children:(0,l.jsx)("math-field",{disabled:d,locale:"zh_cn",class:"".concat(o.Z.mathField," ").concat(m),readOnly:p,placeholder:"请输入公式",ref:b,style:{width:"100%",fontSize:v?18:14},value:v||""})}),(0,l.jsx)(c.Z,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:_,top:N},title:(0,l.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var n=e.clientX-_,t=e.clientY-N;document.body.onmousemove=function(e){var i=e.clientX-n,r=e.clientY-t,a=document.getElementsByClassName("ant-modal")[0],o=window.innerWidth-a.offsetWidth,s=window.innerHeight-a.offsetHeight;i=Math.max(0,Math.min(i,o)),r=Math.max(0,Math.min(r,s)),Z(e.clientX,e.clientY,n,t)&&(j(i),B(r))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:"输入公式"}),open:T,onOk:function(){var e=y.current.getData();b.current.setValue(e),u(e),P(!1)},onCancel:function(){P(!1)},destroyOnClose:!0,className:"markdown-popup-form",children:(0,l.jsx)(s.Z,{value:v,ref:y,onChange:u,showSaveButton:!1})})]})}));n.Z=u},29154:function(e,n,t){"use strict";t.d(n,{Z:function(){return y}});var i=t(7557),r=t.n(i),a=t(41498),o=t.n(a),s=t(79800),c=t.n(s),l=t(59301),u=t(78241),d=t(43418),p=t(98135),f=t(88289),m=t(90694),h="publicQuest___iYvzo",v="publicQuestContent___vgbKh",g="public_tips___UX0Dn",x=t(64368),b=t(37712),y=function(e){e.type;var n=e.open,t=e.onCancel,i=e.onOkClick,a=e.subDisciplineId,s=u.Z.useForm(),y=c()(s,1)[0],A=(0,l.useState)([]),w=c()(A,2),_=(w[0],w[1],(0,l.useState)(!1)),j=c()(_,2),k=j[0],C=j[1];(0,l.useEffect)((function(){}),[]);return(0,b.jsx)(d.Z,{title:(0,b.jsx)("div",{style:{fontWeight:"bold"},children:"新建知识点"}),open:n,width:558,centered:!0,className:h,onCancel:function(){t(),y.resetFields()},onOk:function(){y.validateFields().then(function(){var e=o()(r()().mark((function e(n){var o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,m.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:null==n?void 0:n.name,sub_discipline_id:a}});case 2:0===(null==(o=e.sent)?void 0:o.status)&&i({name:null==n?void 0:n.name,id:null==o?void 0:o.tag_discipline_id,public:!1,type:"personal"}),y.resetFields(),t();case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())},children:(0,b.jsxs)("div",{className:v,children:[(0,b.jsxs)("div",{className:g,children:[(0,b.jsx)(f.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"新建的知识点仅本人可见,平台审核列入公开知识点后,对所有用户可见。 平台有权删除不合适的知识点,请认真填写知识点名称。"]}),(0,b.jsx)(u.Z,{labelAlign:"left",form:y,colon:!1,children:(0,b.jsx)(u.Z.Item,{label:"知识点名称",name:"name",rules:[{required:!0}],children:(0,b.jsx)(p.Z,{showCount:!0,maxLength:20,placeholder:"请输入知识点名称"})})}),(0,b.jsx)(x.Z,{open:k,onCancel:function(){C(!1)}})]})})}},71550:function(e,n,t){"use strict";t.d(n,{h:function(){return g}});var i=t(82242),r=t.n(i),a=t(79800),o=t.n(a),s=t(59301),c=t(57809),l=t(78241),u=t(3113),d=t(89780),p=t.n(d),f=(t(49324),t(20615),t(37712)),m=c.default.Option,h={labelCol:{span:4},wrapperCol:{span:20}},v={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 g(e){var n=e.value,t=e.onChange,i=e.mode,a=e.options,c=void 0===a?{}:a,l=(0,s.useRef)(),u=(0,s.useState)(),d=o()(u,2),m=d[0],h=d[1];return(0,s.useEffect)((function(){if(m){var e=function(e){var n=e.getValue();t&&t(n)};return m.on("change",e),function(){m.off("change",e)}}}),[m,t]),(0,s.useEffect)((function(){m&&m.setOption("mode",i)}),[m,i]),(0,s.useEffect)((function(){m&&(n===m.getValue()&&""!==n||setTimeout((function(){m.setValue(n||"")}),300))}),[m,n]),(0,s.useEffect)((function(){if(l.current&&!m){var e=p().fromTextArea(l.current,r()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},c));h(e)}}),[l.current,m]),(0,f.jsx)("div",{className:"my-codemirror-container",children:(0,f.jsx)("textarea",{ref:l})})}n.Z=function(e){var n=e.callback,t=e.onCancel,i=(0,s.useState)("python"),a=o()(i,2),d=a[0],p=a[1];return(0,f.jsxs)(l.Z,r()(r()({},h),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){n(e)},style:{width:500},children:[(0,f.jsx)(l.Z.Item,{label:"代码语言",name:"language",children:(0,f.jsx)(c.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(v[e][1])},children:Object.keys(v).map((function(e){return(0,f.jsx)(m,{value:e,children:v[e][0]},e)}))})}),(0,f.jsx)(l.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,f.jsx)(g,{mode:d})}),(0,f.jsxs)("div",{className:"flex-container flex-end",children:[(0,f.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,f.jsx)(u.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))}},77162:function(e,n,t){"use strict";t.d(n,{Z:function(){return Ne}});var i=t(91232),r=t.n(i),a=t(79800),o=t.n(a),s=t(85573),c=t.n(s),l=t(59301),u=t(89780),d=t.n(u),p=t(76374),f=(t(49324),t(6313),t(25717),t(99498),t(25419),t(67549),t(36653)),m=t(37712),h=function(e){var n=e.value,t=void 0===n?"":n,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,l.useMemo)((function(){return""}),[t]));return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},v=t(82242),g=t.n(v),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 b(e){var n=e.onActionCallback,t=e.title,i=e.icon,r=e.actionName,a=e.className,o=void 0===a?"":a,s=e.children;return(0,m.jsxs)("a",{title:t,className:o,onClick:function(){n(r)},children:[(0,m.jsx)("i",{className:"".concat(i)}),s]})}var y=function(e){var n=e.watch,t=e.showNullButton,i=e.showNullProgramButton,r=e.onActionCallback,a=e.fullScreen,o=e.insertTemp,s=e.hidetoolBar,c=e.extraUse,l=[].concat(x,[{title:"".concat(n?"关闭实时预览":"开启实时预览"),icon:"".concat(n?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,m.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&l.map((function(e,n){return(0,m.jsx)("li",{children:e.actionName?(0,m.jsx)(b,g()(g()({},e),{},{onActionCallback:r})):(0,m.jsx)("span",{className:"v-line"})},n)})),t?(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,o&&(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(o),onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),c&&(0,m.jsx)("li",{children:c}),(0,m.jsx)("li",{className:"btn-full-screen",children:(0,m.jsx)(b,{icon:"".concat(a?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:a?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:r})})]})},A=t(30043),w=t(78241),_=t(98135),j=t(3113),k={labelCol:{span:4},wrapperCol:{span:20}},C=function(e){var n=e.callback,t=e.onCancel;return(0,m.jsxs)(w.Z,g()(g()({},k),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},style:{width:500},children:[(0,m.jsx)(w.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,m.jsx)(_.Z,{})}),(0,m.jsx)(w.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,m.jsx)(_.Z,{})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(j.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(j.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))},N=t(71550),B=t(8591),E=t(53842),S=w.Z.useForm,T={width:280,marginRight:10},P={labelCol:{span:5},wrapperCol:{span:19}},I=function(e){var n=e.callback,t=e.onCancel,i=S(),r=o()(i,1)[0],a=(0,l.useRef)();function s(e,n){-1!==e.status?r.setFieldsValue({src:"/api/attachments/".concat(e.id),type:n.type}):B.ZP.error(e.message)}return(0,m.jsxs)(w.Z,g()(g()({form:r},P),{},{className:"upload-image-panel",onFinish:function(e){n(e,a.current)},style:{width:470,overflow:"hidden"},children:[(0,m.jsx)(w.Z.Item,{label:"图片地址",required:!0,children:(0,m.jsxs)("div",{className:"flex-container",children:[(0,m.jsx)(w.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,m.jsx)(_.Z,{style:T})}),(0,m.jsx)(Z,{onFileChange:function(e){var n=e.target.files[0];a.current=n,L(n,s)}})]})}),(0,m.jsx)(w.Z.Item,{label:"图片描述",name:"alt",children:(0,m.jsx)(_.Z,{style:{width:264}})}),(0,m.jsxs)(w.Z.Item,{style:{textAlign:"right"},children:[(0,m.jsx)(j.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(j.ZP,{type:"default",onClick:t,children:"取消"})]})]}))};function Z(e){var n=e.onFileChange;return(0,m.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,m.jsx)("input",{type:"file",onChange:n})]})}function L(e,n){if(!e)throw new String("没有文件");var t=new FormData;t.append("editormd-image-file",e),t.append("file_param_name","editormd-image-file"),t.append("byxhr","true");var i=new window.XMLHttpRequest;i.withCredentials=!0,i.addEventListener("load",(function(t){n(JSON.parse(t.target.responseText),e)}),!1),i.addEventListener("error",(function(e){console.error(e)}),!1),i.open("POST","".concat(E.KI,"/api/attachments.json")),i.send(t)}var M=t(95237),R=t(87359),O=function(e){var n=e.callback,t=e.onCancel,i=document.createElement("canvas"),r=i.getContext("2d");i.width=1e3,i.height=800,r.fillStyle="#ffffff",r.fillRect(0,0,i.width,i.height);var a=i.toDataURL("image/png");return(0,m.jsx)(M.Z,{style:{height:"100vh"},children:(0,m.jsx)(R.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:a,visible:!0,title:String(Date.now())},onOk:function(e){n({src:e.url})},onClose:t})})},D=t(7557),G=t.n(D),Q=t(41498),F=t.n(Q),z=t(37205),W=t.n(z),H=t(12378);function V(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(V,go.CommandHandler),V.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},V.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var n=1/0;e.selection.each((function(e){e instanceof go.Link||(n=Math.min(e.position.x,n))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n,e.position.y))})),e.commitTransaction("aligning left")},V.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var n=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var t=e.actualBounds.x+e.actualBounds.width;n=Math.max(t,n)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},V.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var n=1/0;e.selection.each((function(e){e instanceof go.Link||(n=Math.min(e.position.y,n))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,n))})),e.commitTransaction("alignTop")},V.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var n=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var t=e.actualBounds.y+e.actualBounds.height;n=Math.max(t,n)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},V.prototype.alignCenterX=function(){var e=this.diagram,n=e.selection.first();if(n){e.startTransaction("aligning Center X");var t=n.actualBounds.x+n.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},V.prototype.alignCenterY=function(){var e=this.diagram,n=e.selection.first();if(n){e.startTransaction("aligning Center Y");var t=n.actualBounds.y+n.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},V.prototype.alignColumn=function(e){var n=this.diagram;n.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var t=new Array;n.selection.each((function(e){e instanceof go.Link||t.push(e)}));for(var i=0;i<t.length-1;i++){var r=t[i],a=r.actualBounds.y+r.actualBounds.height+e;t[i+1].move(new go.Point(r.actualBounds.x,a))}n.commitTransaction("align Column")},V.prototype.alignRow=function(e){void 0===e&&(e=0),e=parseFloat(e);var n=this.diagram;n.startTransaction("align Row");var t=new Array;n.selection.each((function(e){e instanceof go.Link||t.push(e)}));for(var i=0;i<t.length-1;i++){var r=t[i],a=r.actualBounds.x+r.actualBounds.width+e;t[i+1].move(new go.Point(a,r.actualBounds.y))}n.commitTransaction("align Row")},V.prototype.canRotate=function(e){var n=this.diagram;return null!==n&&!n.isReadOnly&&!n.isModelReadOnly&&!(n.selection.count<1)},V.prototype.rotate=function(e){var n;void 0===e&&(e=90),(n=this.diagram).startTransaction("rotate "+e.toString()),(n=this.diagram).selection.each((function(n){n instanceof go.Link||n instanceof go.Group||(n.angle+=e)})),n.commitTransaction("rotate "+e.toString())},V.prototype.pullToFront=function(){var e=this.diagram;e.startTransaction("pullToFront");var n=new go.Map;e.selection.each((function(e){n.set(e.layer,0)})),n.iteratorKeys.each((function(e){var t=0;e.parts.each((function(e){if(!e.isSelected){var n=e.zOrder;isNaN(n)?e.zOrder=0:t=Math.max(t,n)}})),n.set(e,t)})),e.selection.each((function(e){V._assignZOrder(e,n.get(e.layer)+1)})),e.commitTransaction("pullToFront")},V.prototype.pushToBack=function(){var e=this.diagram;e.startTransaction("pushToBack");var n=new go.Map;e.selection.each((function(e){n.set(e.layer,0)})),n.iteratorKeys.each((function(e){var t=0;e.parts.each((function(e){if(!e.isSelected){var n=e.zOrder;isNaN(n)?e.zOrder=0:t=Math.min(t,n)}})),n.set(e,t)})),e.selection.each((function(e){V._assignZOrder(e,n.get(e.layer)-1-V._findGroupDepth(e))})),e.commitTransaction("pushToBack")},V._assignZOrder=function(e,n,t){void 0===t&&(t=e),e.layer===t.layer&&(e.zOrder=n),e instanceof go.Group&&e.memberParts.each((function(e){V._assignZOrder(e,n+1,t)}))},V._findGroupDepth=function(e){if(e instanceof go.Group){var n=0;return e.memberParts.each((function(e){n=Math.max(n,V._findGroupDepth(e))})),n+1}return 0},V.prototype.doKeyDown=function(){var e=this.diagram;if(null!==e){var n=e.lastInput;if("Up"===n.key||"Down"===n.key||"Left"===n.key||"Right"===n.key){var t=this.arrowKeyBehavior;if("none"===t)return;if("select"===t)return void this._arrowKeySelect();if("move"===t)return void this._arrowKeyMove();if("tree"===t)return void this._arrowKeyTree()}go.CommandHandler.prototype.doKeyDown.call(this)}},V.prototype._getAllParts=function(){var e=new Array;return this.diagram.nodes.each((function(n){e.push(n)})),this.diagram.parts.each((function(n){e.push(n)})),e},V.prototype._arrowKeyMove=function(){var e=this.diagram,n=e.lastInput,t=0,i=0;if(n.control||n.meta)t=1,i=1;else if(null!==e.grid){var r=e.grid.gridCellSize;i=r.width,t=r.height}e.startTransaction("arrowKeyMove"),e.selection.each((function(e){"Up"===n.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y-t)):"Down"===n.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y+t)):"Left"===n.key?e.move(new go.Point(e.actualBounds.x-i,e.actualBounds.y)):"Right"===n.key&&e.move(new go.Point(e.actualBounds.x+i,e.actualBounds.y))})),e.commitTransaction("arrowKeyMove")},V.prototype._arrowKeySelect=function(){var e=this.diagram,n=e.lastInput,t=null;"Up"===n.key?t=this._findNearestPartTowards(270):"Down"===n.key?t=this._findNearestPartTowards(90):"Left"===n.key?t=this._findNearestPartTowards(180):"Right"===n.key&&(t=this._findNearestPartTowards(0)),null!==t&&(n.shift?t.isSelected=!0:n.control||n.meta?t.isSelected=!t.isSelected:e.select(t))},V.prototype._findNearestPartTowards=function(e){var n=this.diagram.selection.first();if(null===n)return null;for(var t=n.actualBounds.center,i=this._getAllParts(),r=1/0,a=n,o=0;o<i.length;o++){var s=i[o];if(s!==n&&s.canSelect()){var c=s.actualBounds.center,l=t.directionPoint(c),u=this._angleCloseness(l,e);if(u<=45){var d=t.distanceSquaredPoint(c);(d*=1+Math.sin(u*Math.PI/180))<r&&(r=d,a=s)}}}return a},V.prototype._angleCloseness=function(e,n){return Math.min(Math.abs(n-e),Math.min(Math.abs(n+360-e),Math.abs(n-360-e)))},V.prototype._arrowKeyTree=function(){var e=this.diagram,n=e.selection.first();if(n instanceof go.Node){var t=e.lastInput;if("Right"===t.key)if(n.isTreeLeaf);else if(n.isTreeExpanded){null!==(r=this._sortTreeChildrenByY(n).first())&&e.select(r)}else e.commandHandler.canExpandTree(n)&&e.commandHandler.expandTree(n);else if("Left"===t.key){if(!n.isTreeLeaf&&n.isTreeExpanded)e.commandHandler.canCollapseTree(n)&&e.commandHandler.collapseTree(n);else null!==(a=n.findTreeParentNode())&&e.select(a)}else if("Up"===t.key){if(null!==(a=n.findTreeParentNode()))if((s=(o=this._sortTreeChildrenByY(a)).indexOf(n))>0){for(var i=o.elt(s-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(a)}else if("Down"===t.key){var r;if(n.isTreeExpanded&&!n.isTreeLeaf)null!==(r=this._sortTreeChildrenByY(n).first())&&e.select(r);else for(;null!==n;){var a,o,s;if(null===(a=n.findTreeParentNode()))break;if((s=(o=this._sortTreeChildrenByY(a)).indexOf(n))<o.length-1){e.select(o.elt(s+1));break}n=a}}var c=e.selection.first();null!==c&&e.scrollToRect(c.actualBounds)}},V.prototype._sortTreeChildrenByY=function(e){var n=(new go.List).addAll(e.findTreeChildrenNodes());return n.sort((function(e,n){var t=e.location,i=n.location;return t.y<i.y?-1:t.y>i.y?1:t.x<i.x?-1:t.x>i.x?1:0})),n},V.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},V.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(V.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(V.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var q=V,Y=(t(79286),t(85160)),U=t(43418),K=t(43604),X=t(90694),J="myPaletteDiv___Xjz2I",$="maxH60___Pd4Re";window.go=H;var ee=function(e){var n=e.onCancel,t=e.callback,i=(0,l.useRef)(),r=(0,l.useRef)(),a=(0,l.useRef)(),s=(0,l.useRef)(!1),c=(0,l.useRef)(!1),u=(0,l.useState)(0),d=o()(u,2),p=d[0],f=d[1],h=function(){var e=F()(G()().mark((function e(){var n,r;return G()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.current.makeImage(),e.next=3,(0,X.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:n.src}});case 3:r=e.sent,t({src:r.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,l.useEffect)((function(){f(p+1)}),[]),(0,m.jsx)("div",{ref:c,className:s.current?"".concat($," body-overflow-initial"):"body-overflow-initial",children:(0,m.jsx)(U.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:c.current,rootClassName:"zIndex-9999",title:(0,m.jsxs)(M.Z,{children:[(0,m.jsx)(K.Z,{flex:1,children:"插入流程图"}),(0,m.jsx)(K.Z,{onClick:function(){s.current=!s.current,f(p+1)},children:(0,m.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:n,children:(0,m.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,m.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,m.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,m.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,m.jsx)("div",{style:{height:"calc(100% - 50px)"},className:J,ref:a})]}),(0,m.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,m.jsx)(Y.FI,{initDiagram:function(){var e=H.GraphObject.make,n="#ff3333",t="#3358ff",o="#25ad23",s="#d533ff",c="#7d33ff",l="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",f="#d5ebff",m="#f2dfe0",h="#a5d2fa",v="#cccccc",g="#b3e6b3",x="#fcbbbd";function b(n,t){var i=function(e,t){e.handled=!0,e.diagram.model.commit((function(i){var r=t.part.adornedPart,a=(new H.Point).setRectSpot(r.actualBounds,n);a.subtract(r.location),a.scale(2,2),a.x+=130*Math.sign(a.x),a.y+=130*Math.sign(a.y),a.add(r.location),a.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var o=i.copyNodeData(r.data);i.setGroupKeyForNodeData(o,i.getGroupKeyForNodeData(r.data)),i.addNodeData(o);var s={from:r.key,to:i.getKeyForNodeData(o)};i.addLinkData(s);var c=e.diagram.findNodeForData(o);c.location=a,e.diagram.select(c),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(H.Shape,{figure:t,alignment:n,alignmentFocus:n.opposite(),width:n.equals(H.Spot.Top)||n.equals(H.Spot.Bottom)?25:18,height:n.equals(H.Spot.Top)||n.equals(H.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(n){return e(H.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,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="orange"},click:function(e,n){e.diagram.commandHandler.showContextMenu(n.part.adornedPart)}},n||{})}function A(e,n){return function(t,i){t.handled=!0,t.diagram.model.commit((function(t){t.set(i.part.adornedPart.data,e,n)}))}}function w(n,t){return t||(t="color"),e(H.Shape,{width:16,height:16,stroke:"lightgray",fill:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.stroke="dodgerblue"},mouseLeave:function(e,n){return n.stroke="lightgray"},click:A(t,n),contextClick:A(t,n)})}function _(){return[e("ContextMenuButton",e(H.Panel,"Horizontal",w(u,"fill"),w(p,"fill"),w(f,"fill"),w(m,"fill"))),e("ContextMenuButton",e(H.Panel,"Horizontal",w(v,"fill"),w(g,"fill"),w(h,"fill"),w(x,"fill")))]}function j(){return[e("ContextMenuButton",e(H.Panel,"Horizontal",w(d),w(o),w(t),w(n))),e("ContextMenuButton",e(H.Panel,"Horizontal",w(u),w(s),w(c),w(l)))]}function k(n,t){return t||(t="thickness"),e(H.Shape,"LineH",{width:16,height:16,strokeWidth:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:A(t,n),contextClick:A(t,n)})}function C(n,t){return t||(t="dash"),e(H.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:A(t,n),contextClick:A(t,n)})}function N(){return[e("ContextMenuButton",e(H.Panel,"Horizontal",k(1),k(2),k(3),k(4))),e("ContextMenuButton",e(H.Panel,"Horizontal",C(null),C([2,4]),C([4,4])))]}function B(n,t){return t||(t="figure"),e(H.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="lightgray"},click:A(t,n),contextClick:A(t,n)})}function E(n){return e(H.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(n+4).toString()+" H3"})}function S(n){var t="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===n?t="M0 0 M16 16 M0 8 L16 8":2===n&&(t="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(H.Shape,{geometryString:t,margin:2,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:A("dir",n),contextClick:A("dir",n)})}function T(n){var t=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",H.Spot.stringify(H.Spot.AllSides)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(H.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:t,contextClick:t})}function P(n,t){var i=0,r=H.Spot.RightSide;n.equals(H.Spot.Top)?(i=270,r=H.Spot.TopSide):n.equals(H.Spot.Left)?(i=180,r=H.Spot.LeftSide):n.equals(H.Spot.Bottom)&&(i=90,r=H.Spot.BottomSide),t||(i-=180);var a=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",H.Spot.stringify(r)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(H.Shape,{alignment:n,alignmentFocus:n.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:a,contextClick:a})}return i.current=new H.Diagram(r.current,{padding:20,grid:e(H.Panel,"Grid",e(H.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(H.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(q),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var n=e.subject;n.location=n.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 n=e.subject;e.diagram.toolManager.linkingTool.isForwards?n.toNode.invalidateConnectedLinks():n.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(H.Node,"Auto",{locationSpot:H.Spot.Center,locationObjectName:"SHAPE",desiredSize:new H.Size(120,60),minSize:new H.Size(40,40),resizable:!0,resizeCellSize:new H.Size(10,10),rotatable:!0},new H.Binding("location","loc",H.Point.parse).makeTwoWay(H.Point.stringify),new H.Binding("desiredSize","size",H.Size.parse).makeTwoWay(H.Size.stringify),e(H.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:H.Spot.AllSides,toSpot:H.Spot.AllSides},new H.Binding("figure"),new H.Binding("fill"),new H.Binding("stroke","borderColor"),new H.Binding("strokeWidth","thickness"),new H.Binding("strokeDashArray","dash")),e(H.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(H.TextBlock,{margin:1,textAlign:"center",overflow:H.TextBlock.OverflowEllipsis,editable:!0},new H.Binding("text").makeTwoWay(),new H.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(H.Panel,"Vertical",{maxSize:new H.Size(200,NaN)},e(H.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new H.Binding("text")),e(H.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new H.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(H.Adornment,"Spot",e(H.Placeholder,{padding:10}),b(H.Spot.Top,"TriangleUp"),b(H.Spot.Left,"TriangleLeft"),b(H.Spot.Right,"TriangleRight"),b(H.Spot.Bottom,"TriangleDown"),y({alignment:new H.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(H.Panel,"Horizontal",B("Rectangle"),B("RoundedRectangle"),B("Ellipse"),B("Diamond"))),e("ContextMenuButton",e(H.Panel,"Horizontal",B("Parallelogram2"),B("ManualOperation"),B("Procedure"),B("Cylinder1"))),e("ContextMenuButton",e(H.Panel,"Horizontal",B("Terminator"),B("CreateRequest"),B("Document"),B("TriangleDown"))),_(),j(),N()),i.current.groupTemplate=e(H.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:H.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,n){n.addMembers(n.diagram.selection,!0)||n.diagram.currentTool.doCancel()},avoidable:!1},new H.Binding("location","loc",H.Point.parse).makeTwoWay(H.Point.stringify),e(H.Panel,"Auto",{name:"BODY"},e(H.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:H.Spot.AllSides,toSpot:H.Spot.AllSides},new H.Binding("fill"),new H.Binding("stroke","color"),new H.Binding("strokeWidth","thickness"),new H.Binding("strokeDashArray","dash")),e(H.Placeholder,{background:"transparent",margin:20})),e(H.TextBlock,{alignment:H.Spot.Top,alignmentFocus:H.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new H.Binding("text"),new H.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(H.Adornment,"Spot",e(H.Panel,"Auto",e(H.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(H.Placeholder,{margin:1.5})),y({alignment:H.Spot.TopRight,alignmentFocus:H.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",_(),j(),N()),i.current.linkTemplate=e(H.Link,{layerName:"Foreground",routing:H.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new H.Binding("fromSpot","fromSpot",H.Spot.parse),new H.Binding("toSpot","toSpot",H.Spot.parse),new H.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new H.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new H.Binding("points").makeTwoWay(),e(H.Shape,{strokeWidth:2},new H.Binding("stroke","color"),new H.Binding("strokeWidth","thickness"),new H.Binding("strokeDashArray","dash")),e(H.Shape,{segmentIndex:0,segmentOffset:new H.Point(15,0),segmentOrientation:H.Link.OrientAlong,alignmentFocus:H.Spot.Right,figure:"circle",width:10,strokeWidth:0},new H.Binding("fill","color"),new H.Binding("visible","dir",(function(e){return 1===e}))),e(H.Shape,{segmentIndex:-1,segmentOffset:new H.Point(-10,6),segmentOrientation:H.Link.OrientPlus90,alignmentFocus:H.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new H.Binding("fill","color"),new H.Binding("visible","dir",(function(e){return e>=1})),new H.Binding("width","thickness",(function(e){return 7+3*e})),new H.Binding("height","thickness",(function(e){return 7+3*e})),new H.Binding("segmentOffset","thickness",(function(e){return new H.Point(-15,4+1.5*e)}))),e(H.Shape,{segmentIndex:0,segmentOffset:new H.Point(15,-6),segmentOrientation:H.Link.OrientMinus90,alignmentFocus:H.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new H.Binding("fill","color"),new H.Binding("visible","dir",(function(e){return 2===e})),new H.Binding("width","thickness",(function(e){return 7+3*e})),new H.Binding("height","thickness",(function(e){return 7+3*e})),new H.Binding("segmentOffset","thickness",(function(e){return new H.Point(-15,4+1.5*e)}))),e(H.TextBlock,{alignmentFocus:new H.Spot(0,1,-4,0),editable:!0},new H.Binding("text").makeTwoWay(),new H.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(H.Adornment,e(H.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:E(2)},new H.Binding("pathPattern","thickness",E)),y({alignmentFocus:new H.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",j(),N(),e("ContextMenuButton",e(H.Panel,"Horizontal",S(0),S(1),S(2))),e("ContextMenuButton",e(H.Panel,"Horizontal",e(H.Panel,"Spot",T(!1),P(H.Spot.Top,!1),P(H.Spot.Left,!1),P(H.Spot.Right,!1),P(H.Spot.Bottom,!1)),e(H.Panel,"Spot",{margin:new H.Margin(0,0,0,2)},T(!0),P(H.Spot.Top,!0),P(H.Spot.Left,!0),P(H.Spot.Right,!0),P(H.Spot.Bottom,!0))))),new H.Palette(a.current,{maxSelectionCount:1,linkTemplate:e(H.Link,{locationSpot:H.Spot.Center,selectionAdornmentTemplate:e(H.Adornment,"Link",{locationSpot:H.Spot.Center},e(H.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(H.Shape,{toArrow:"Standard",stroke:null}))},{routing:H.Link.AvoidsNodes,curve:H.Link.JumpOver,corner:5,toShortLength:4},new H.Binding("points"),e(H.Shape,{isPanelMain:!0,strokeWidth:2}),e(H.Shape,{toArrow:"Standard",stroke:null})),model:new H.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(W()(H.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(H.Node,"Auto",{locationSpot:H.Spot.Center},new H.Binding("location","location",H.Point.parse).makeTwoWay(H.Point.stringify),e(H.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 H.Binding("stroke").makeTwoWay(),new H.Binding("fill").makeTwoWay(),new H.Binding("figure")),e(H.TextBlock,{margin:new H.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new H.Size(16,16),maxSize:new H.Size(10,NaN),textAlign:"center",editable:!0},new H.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(H.Panel,"Grid",e(H.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(H.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),i.current.grid.visible=!0,i.current.grid.gridCellStroke="darkgray",i.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=i.current,i.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,m.jsx)("div",{ref:r})]})]}),(0,m.jsx)("div",{className:"tr",children:(0,m.jsx)(j.ZP,{size:"large",onClick:h,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},ne=t(5112),te=t(26220),ie=ne.ZP.Group,re={margin:"0 8px"},ae=function(e){var n=e.callback,t=e.onCancel;return(0,m.jsxs)(w.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){n(e)},children:[(0,m.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,m.jsx)("span",{style:re,children:"单元格数:"}),(0,m.jsx)("span",{style:re,children:"行数"}),(0,m.jsx)(w.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,m.jsx)(te.Z,{})}),(0,m.jsx)("span",{style:re,children:"列数"}),(0,m.jsx)(w.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,m.jsx)(te.Z,{})})]}),(0,m.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,m.jsx)("span",{style:re,children:"对齐方式:"}),(0,m.jsx)(w.Z.Item,{name:"align",children:(0,m.jsxs)(ie,{children:[(0,m.jsx)(ne.ZP,{value:"default",children:(0,m.jsx)("i",{className:"fa fa-align-justify"})}),(0,m.jsx)(ne.ZP,{value:"left",children:(0,m.jsx)("i",{className:"fa fa-align-left"})}),(0,m.jsx)(ne.ZP,{value:"center",children:(0,m.jsx)("i",{className:"fa fa-align-center"})}),(0,m.jsx)(ne.ZP,{value:"right",children:(0,m.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(j.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(j.ZP,{type:"ghost",onClick:t,children:"取消"})]})]})},oe=t(78673),se=t(35575),ce=t.n(se),le=(0,l.forwardRef)((function(e,n){var t=e.use3d,i=e.width,r=e.height,a=e.callback,s=(e.showSaveButton,(0,l.useRef)()),c=(0,l.useRef)(),u=(0,l.useState)(!1),d=o()(u,2),p=d[0],f=d[1],h=(0,l.useRef)({id:s,appName:"graphing",width:i||1e3,height:r||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,l.useEffect)((function(){c.current=new(ce())(h.current,!0),window.onload=function(){c.current.inject("applet_container")}}),[]);var v=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return a&&a(e),e};return(0,l.useEffect)((function(){h.current.appName=p?"3D":"graphing",c.current.inject("applet_container")}),[p]),(0,l.useEffect)((function(){f(t)}),[t]),(0,l.useImperativeHandle)(n,(function(){return{getImgData:v}})),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:s}),(0,m.jsxs)(M.Z,{align:"middle",children:[(0,m.jsx)(K.Z,{flex:1,children:(0,m.jsx)(oe.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return f(e)}})}),(0,m.jsx)(K.Z,{children:(0,m.jsx)(j.ZP,{size:"large",onClick:v,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ue=t(42594),de=t(57357),pe="link",fe="upload-image",me="add-flowchart",he="draw-image",ve="code-block",ge="add-table",xe="------------",be={default:xe,left:":".concat(xe),center:":".concat(xe,":"),right:"".concat(xe,":")},ye=t(40238);var Ae="@▁▁@",we=["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 _e(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var je=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ke=c()(c()({},je+"-B","bold"),je+"-I","italic"),Ce=c()(c()(c()(c()(c()(c()(c()(c()({},pe,"添加链接"),ve,"添加代码块"),fe,"添加图片"),he,"添加画图"),me,"插入流程图"),ge,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Ne=function(e){var n=e.defaultValue,t=void 0===n?"":n,i=e.onChange,a=e.width,s=void 0===a?"100%":a,u=e.height,v=void 0===u?400:u,g=e.miniToolbar,x=void 0!==g&&g,b=e.isFocus,w=void 0!==b&&b,_=e.watch,j=e.insertTemp,k=e.mode,E=void 0===k?"markdown":k,S=e.id,T=void 0===S?"markdown-editor-id":S,P=e.showResizeBar,Z=void 0!==P&&P,M=e.noStorage,R=void 0!==M&&M,D=e.showNullButton,G=void 0!==D&&D,Q=e.showNullProgramButton,F=void 0!==Q&&Q,z=e.hidetoolBar,W=void 0!==z&&z,H=e.fullScreen,V=void 0!==H&&H,q=e.onBlur,Y=e.onCMBeforeChange,K=e.onFullScreen,X=e.className,J=void 0===X?"":X,$=e.disablePaste,ne=void 0!==$&&$,te=e.disabled,ie=void 0!==te&&te,re=e.disabledFill,oe=void 0!==re&&re,se=e.placeholder,ce=void 0===se?"":se,xe=e.values,je=void 0===xe?"":xe,Ne=e.extraUse,Be=(0,l.useState)(null),Ee=o()(Be,2),Se=Ee[0],Te=Ee[1],Pe=(0,l.useState)(t),Ie=o()(Pe,2),Ze=Ie[0],Le=Ie[1],Me=(0,l.useState)(_),Re=o()(Me,2),Oe=Re[0],De=Re[1],Ge=(0,l.useState)(V),Qe=o()(Ge,2),Fe=Qe[0],ze=Qe[1],We=(0,l.useState)(""),He=o()(We,2),Ve=He[0],qe=He[1],Ye=(0,l.useState)(0),Ue=o()(Ye,2),Ke=Ue[0],Xe=Ue[1],Je=(0,l.useState)(v),$e=o()(Je,2),en=$e[0],nn=$e[1],tn=(0,l.useState)(!1),rn=o()(tn,2),an=(rn[0],rn[1]),on=(0,l.useState)(0),sn=o()(on,2),cn=sn[0],ln=sn[1],un=(0,l.useState)(0),dn=o()(un,2),pn=dn[0],fn=dn[1],mn=(0,l.useRef)(),hn=(0,l.useRef)(),vn=(0,l.useRef)(),gn=(0,l.useRef)();(0,l.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Le(je),null==Se||Se.setValue(je),window.scrollTo(0,e)}),[je]),(0,l.useEffect)((function(){null==K||K(Fe)}),[Fe]),(0,l.useEffect)((function(){if(mn.current){var e=function(e,t){if(!ne){var i=t.clipboardData;if(i){var r=i.types.toString(),a=i.items;if("Files"===r||i.types.indexOf("Files")>-1){if(t.preventDefault(),"stex"==E)return;try{var o,s=a[1];"file"===(null===(o=a[0])||void 0===o?void 0:o.kind)&&(s=a[0]);var c=s.getAsFile(),l=c.name.split(".").pop();L(c,(function(e){var t,i,r;e.id?(null==c||null===(t=c.type)||void 0===t?void 0:t.indexOf("image"))>-1?n.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==c||null===(i=c.type)||void 0===i?void 0:i.indexOf("video"))>-1?n.replaceSelection('<video width="100%" controls src="'.concat(de.Z.API_SERVER,"/api/attachments/").concat(e.id,'"></video>')):(null==c||null===(r=c.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?n.replaceSelection('<a href="'.concat(de.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(c.type,'&disposition=inline" target="_blank">').concat(c.name,"</a>")):we.includes(l)?n.replaceSelection('<a href="'.concat(de.Z.API_SERVER,"/api/attachments/").concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(c.name,"</a>")):n.replaceSelection("[".concat(c.name,"](").concat(de.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(t){B.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}t.preventDefault()},n=d().fromTextArea(mn.current,{mode:E,lineNumbers:!x,lineWrapping:!0,value:t,autoCloseTags:!0,autoCloseBrackets:!0});return n.on("keyup",(function(e,t){8===t.keyCode&&(""==e.getValue()?n.setOption("placeholder",ce):n.setOption("placeholder",null))})),n.on("keydown",(function(e,n){if(8===n.keyCode){var t=function(e,n){var t=e.getDoc(),i=t.getCursor(),r=t.getLine(i.line),a=r.charAt(i.ch-1),o=r.lastIndexOf("@▁@",i.ch),s=r.lastIndexOf("@▁▁@",i.ch),c=o>s?o:s,l=o>s?3:4;if(-1===Ae.indexOf(a))return null;if(console.log("change1:",n,e,r,i,c,o,s,a),c>=0&&i.ch-c<5){var u=c+l;return t.replaceRange("",{line:i.line,ch:c},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);t&&n.preventDefault()}})),w&&n.focus(),n.on("paste",e),ie&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Te(n),function(){n.off("paste",e)}}}),[]);var xn=(0,l.useCallback)((function(){hn.current}),[en,hn,Fe]);(0,l.useEffect)((function(){if(Se){var e=function(){var e=new p.Z((function(e){var n,t=r()(e);try{for(t.s();!(n=t.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(xn(),Se.setSize("100%","100%"),Se.refresh())}}catch(e){t.e(e)}finally{t.f()}}));return e.observe(mn.current.parentElement),e}();return function(){var n,t;null!==(n=mn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(t=mn.current)||void 0===t?void 0:t.parentElement)}}}),[Se,xn]),(0,l.useEffect)((function(){if(Se){for(var e=[],n=function(){var n=o()(i[t],2),r=n[0],a=n[1],s=c()({},r,(function(){bn(a)}));e.push(s),Se.addKeyMap(s)},t=0,i=Object.entries(ke);t<i.length;t++)n();return function(){for(var n=0,t=e;n<t.length;n++){var i=t[n];Se.removeKeyMap(i)}}}}),[Se]),(0,l.useEffect)((function(){V!==Fe&&ze(V)}),[V]),(0,ye.Z)((function(){if(!R&&Ke>0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(T);e>=Ke+1e4&&(!n||n!==Ze)&&(window.sessionStorage.setItem(T,Ze),an(!0))}}),1e4),(0,l.useEffect)((function(){De(_)}),[Se,_]),(0,l.useEffect)((function(){Se&&w&&Se.focus()}),[Se,w]),(0,l.useEffect)((function(){if(Oe&&Se){var e=function(e){var n=e.target;if(gn.current){var t=n.scrollTop/n.scrollHeight;gn.current.scrollTop=gn.current.scrollHeight*t}},n=Se.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[Se,Oe]),(0,l.useEffect)((function(){if(Se&&Y){var e=function(e,n){Y(e,n)};return Se.on("beforeChange",e),function(){Se.off("beforeChange",e)}}}),[Se,Y]),(0,l.useEffect)((function(){if(Se&&q){var e=function(){q(Se.getValue())};return Se.on("blur",e),function(){Se.off("blur",e)}}}),[Se,q]),(0,l.useEffect)((function(){if(Se){var e=function(e,n){var t=e.getValue();Le(t),Xe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(F?i(t,jn(t)):i(t))};return Se.on("change",e),function(){Se.off("change",e)}}}),[Se,i]),(0,l.useEffect)((function(){if(Se)if(null==t)Se.setValue(""),Le("");else{var e=window.scrollY||window.pageYOffset;t!==Se.getValue()&&(Se.setValue(t),Le(t),Se.setCursor(ie?1:Se.lineCount(),0),window.scrollTo(0,e))}}),[Se,t]);var bn=(0,l.useCallback)((function(e){var n=Se.getCursor(),t=Se.getSelection(),i=t.split("\n");switch(e){case"bold":return Se.replaceSelection("**"+t+"**"),""===t&&Se.setCursor(n.line,n.ch+2),Se.focus();case"italic":return Se.replaceSelection("*"+t+"*"),""===t&&Se.setCursor(n.line,n.ch+1),Se.focus();case"code":return Se.replaceSelection("`"+t+"`"),""===t&&Se.setCursor(n.line,n.ch+1),Se.focus();case"inline-latex":return qe("inline-latex"),Se.focus();case"latex":return Se.replaceSelection("```latex\n"+t+"\n```"),Se.setCursor(n.line+1,t.length+1),Se.focus();case"line-break":return Se.replaceSelection("<br/>\n"),Se.focus();case"list-ul":return""===t?Se.replaceSelection("- "+t):Se.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Se.focus();case"list-ol":return""===t?Se.replaceSelection("1. "+t):Se.replaceSelection(i.map((function(e,n){return""===e?"":"".concat(n+1,". ").concat(e)})).join("\n")),Se.focus();case"add-null-ch":return""===t&&Se.setCursor(n.line,n.ch),Se.replaceSelection("▁"),Se.focus();case"add-signal":return""===t&&Se.setCursor(n.line,n.ch),Se.replaceSelection("@▁@"),Se.focus();case"add-multiple":return""===t&&Se.setCursor(n.line,n.ch),Se.replaceSelection(Ae),Se.focus();case"inster-template-1":return""===t&&Se.setCursor(n.line,n.ch),Se.replaceSelection("\n**模板标题**\n模板正文内容可输入文本内容和粘贴图片等操作"),Se.focus();case"eraser":return Se.setValue(""),Se.focus();case"trigger-watch":return De(!Oe),Se.focus();case"trigger-full-screen":return ze(!Fe),Se.focus();case pe:return void qe(pe);case ve:return void qe(ve);case fe:return void qe(fe);case he:return void qe(he);case"maths-latex":return void qe("maths-latex");case me:return void qe(me);case ge:return void qe(ge);default:throw new Error}}),[Se,Oe,Fe]),yn=(0,l.useCallback)((function(e,n){var t,i,r,a,o;switch(qe(""),Ve){case pe:var s=e.title,c=e.link;return Se.replaceSelection("[".concat(s,"](").concat(c,")")),Se.focus();case ve:var l=e.language,u=e.content;return Se.replaceSelection(["```"+l,u,"```"].join("\n")),Se.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),f=0;f<d.length;f++)p[f]=d.charCodeAt(f);L(new Blob([p],{type:"image/png"}),(function(e){e.id?Se.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":Se.replaceSelection("`$$"+e+"$$`");break;case fe:case he:case"add-flowchart":var m=e.src,h=e.alt,v=n,g=null==v||null===(t=v.name)||void 0===t||null===(t=t.split("."))||void 0===t||null===(i=t.pop)||void 0===i?void 0:i.call(t);return(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("image"))>-1||null==v||!v.type?h?Se.replaceSelection("![ ".concat(h," ]( ").concat(m,' "').concat(h,'" )')):Se.replaceSelection("![,](".concat(m,")")):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("video"))>-1?Se.replaceSelection('<video width="100%" controls src="'.concat(de.Z.API_SERVER).concat(m,'"></video>')):(null==v||null===(o=v.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?Se.replaceSelection('<a href="'.concat(de.Z.API_SERVER).concat(m,"?type=").concat(v.type,'&disposition=inline" target="_blank">').concat(v.name,"</a>")):we.includes(g)?Se.replaceSelection('<a href="'.concat(de.Z.API_SERVER).concat(m,'?type=office&disposition=inline" target="_blank">').concat(v.name,"</a>")):Se.replaceSelection("[".concat(v.name,"](").concat(de.Z.API_SERVER).concat(m,")")),Se.focus();case ge:for(var x=e.row,b=e.col,y=e.align,A="\n",w=0;w<x;w++){for(var _=[],j=[],k=0;k<b;k++)1===w&&j.push(be[y]),_.push(" ");1===w&&(A+="| ".concat(j.join(" | ")," |\n")),A+="| ".concat(_.join(1===b?"":" | ")," |\n")}return Se.replaceSelection(A+"\n"),Se.focus();default:throw new Error}}),[Se,Ve]),An=(0,l.useMemo)((function(){switch(Ve){case pe:return(0,m.jsx)(C,{callback:yn,onCancel:wn});case ve:return(0,m.jsx)(N.Z,{callback:yn,onCancel:wn});case fe:return(0,m.jsx)(I,{callback:yn,onCancel:wn});case me:return(0,m.jsx)(ee,{callback:yn,onCancel:wn});case ge:return(0,m.jsx)(ae,{callback:yn,onCancel:wn});case"maths-latex":return(0,m.jsx)(le,{showSaveButton:!0,callback:yn});case"inline-latex":return(0,m.jsx)(ue.Z,{showSaveButton:!0,callback:yn});default:return null}}),[Ve]);function wn(){qe("")}(0,l.useEffect)((function(){if(vn.current){var e=function(e){r=!0,a=e.pageY},n=function(){r=!1},t=function(e){if(r){var n=e.pageY-a;n<0&&(n=0),n>300&&(n=300),nn(v+n+"px")}},i=vn.current,r=!1,a=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",t),document.addEventListener("mouseup",n),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)}}}),[Se,vn]),(0,l.useEffect)((function(){nn(v)}),[v]);var _n={width:_e(s),height:_e(en)},jn=((0,l.useMemo)((function(){if(Ke){var e=new Date(Ke),n=e.getHours(),t=e.getMinutes(),i=e.getSeconds();return t=t<10?"0"+t:t,i=i<10?"0"+i:i,"".concat(n=n<10?"0"+n:n,":").concat(t,":").concat(i)}return 0}),[Ke]),function(e){var n=[];if(F){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,t,i){n.push({multiLine:!("@▁@"===e)})}))}return n});(0,l.useEffect)((function(){if(Ce[Ve]&&Ve!==he&&Ve!==me){var e=document.getElementsByClassName("ant-modal")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;ln(n),fn(t)}}),[Ve]);var kn=function(e,n,t,i){var r=document.body.clientHeight,a=document.body.clientWidth;return!(e<20&&t>e||e>a-20&&t<e||n<20&&i>n||n>r-20&&i<n)||(document.body.onmousemove=null,document.body.onmouseup=null,!1)};return(0,m.jsxs)(l.Fragment,{children:[(0,m.jsx)("div",{className:"markdown-editor-wrapper",ref:hn,children:(0,m.jsxs)("div",{className:"markdown-editor-container ".concat(J," ").concat(Oe?"on-preview":""," ").concat(x?"mini":""," ").concat(Fe?"full-screen":""),style:_n,children:[(0,m.jsx)(y,{insertTemp:j,watch:Oe,fullScreen:Fe,showNullButton:G,showNullProgramButton:F,onActionCallback:bn,hidetoolBar:W,extraUse:Ne}),(0,m.jsxs)("div",{className:"markdown-editor-body",children:[(0,m.jsx)("div",{className:"codemirror-container",children:(0,m.jsx)("textarea",{ref:mn,placeholder:ce})}),Oe?(0,m.jsxs)("div",{ref:gn,className:"preview-container",children:["stex"===E&&(0,m.jsx)(h,{value:Ze}),"stex"!==E&&(0,m.jsx)(f.Z,{disabledFill:oe,showProgramFill:F,value:Ze})]}):null]})]})}),Z?(0,m.jsx)("a",{ref:vn,className:"editor-resize"}):null,Ve===he&&(0,m.jsx)(O,{callback:yn,onCancel:wn}),Ve===me&&(0,m.jsx)(ee,{callback:yn,onCancel:wn}),(0,m.jsx)(A.Z,{children:Ce[Ve]&&Ve!==he&&Ve!==me?(0,m.jsx)(U.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:cn,top:pn},title:(0,m.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var n=e.clientX-cn,t=e.clientY-pn;document.body.onmousemove=function(e){var i=e.clientX-n,r=e.clientY-t,a=document.getElementsByClassName("ant-modal")[0],o=window.innerWidth-a.offsetWidth,s=window.innerHeight-a.offsetHeight;i=Math.max(0,Math.min(i,o)),r=Math.max(0,Math.min(r,s)),kn(e.clientX,e.clientY,n,t)&&(ln(i),fn(r))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:Ce[Ve]}),open:!0,onCancel:wn,footer:null,destroyOnClose:!0,width:Ve===me?"1200px":null,height:Ve===me?"80vh":null,className:"markdown-popup-form",children:An}):null})]})}},30043:function(e,n,t){"use strict";t.d(n,{Z:function(){return f}});var i=t(82100),r=t.n(i),a=t(29186),o=t.n(a),s=t(80619),c=t.n(s),l=t(47074),u=t.n(l),d=t(59301),p=t(4676),f=function(e){c()(t,e);var n=u()(t);function t(e){var i;r()(this,t),i=n.call(this,e);var a=window.document;return i.node=a.createElement("div"),a.body.appendChild(i.node),i}return o()(t,[{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)}}]),t}(d.Component)},40238:function(e,n,t){"use strict";t.d(n,{Z:function(){return r}});var i=t(59301);function r(e,n){var t=(0,i.useRef)();(0,i.useEffect)((function(){t.current=e})),(0,i.useEffect)((function(){if(null!==n){var e=setInterval((function(){t.current()}),n);return function(){return clearInterval(e)}}}),[n])}},64368:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var i=t(39647),r=t.n(i),a=t(43418),o="ul___TdfYY",s=t(32637),c=t(37712),l=["open","onCancel"],u=function(e){var n=e.open,t=e.onCancel;r()(e,l);return(0,c.jsx)(a.Z,{centered:!0,open:n,title:(0,c.jsx)("div",{style:{fontWeight:"bold"},children:"联系教研助理"}),width:"696px",onCancel:t,footer:null,children:(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"tc",children:(0,c.jsx)("img",{className:"mt10",src:s,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})}),(0,c.jsx)("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10",children:"免费教研助理"}),(0,c.jsx)("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16",children:"微信扫一扫添加"}),(0,c.jsx)("div",{style:{color:"#333"},className:"pt30 font14",children:(0,c.jsxs)("ul",{className:o,children:[(0,c.jsx)("li",{children:"1、解答老师疑惑、帮助老师更快熟悉和使用平台教学。"}),(0,c.jsx)("li",{children:"2、协助老师创建课堂、课程设计、做好教学工作。"}),(0,c.jsx)("li",{children:"3、根据老师教学方向分享头歌平台C9院校、985高校、211高校、双一流高校老师经典实践教学案例。"})]})})]})})}},65972:function(e,n,t){"use strict";t.d(n,{Z:function(){return y}});var i=t(7557),r=t.n(i),a=t(41498),o=t.n(a),s=t(79800),c=t.n(s),l=t(59301),u=t(8591),d=t(43418),p=t(98135),f="addModal___aEWdi",m="row____K9d5",h="label___y3olw",v=t(21795),g=t(56364),x=t(46681),b=t(37712),y=(0,x.connect)((function(e){return{problemset:e.problemset}}))((function(e){var n=e.problemset,t=e.dispatch,i=e.onOk,a=(0,l.useState)(""),s=c()(a,2),x=s[0],y=s[1],A=(0,l.useState)([0]),w=c()(A,2),_=w[0],j=w[1],k=function(){t({type:"problemset/setActionTabs",payload:{}})};(0,l.useEffect)((function(){var e;"新建文件夹"===n.actionTabs.key&&(j([null===(e=n.actionTabs)||void 0===e||null===(e=e.params)||void 0===e?void 0:e.group_id]),y(""))}),[n.actionTabs.key]);var C=function(){var e=o()(r()().mark((function e(){var n,t,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=["","、","/","╲","*","<",">","|"],x.trim()){e.next=4;break}return u.ZP.warning("请输入文件夹名称"),e.abrupt("return");case 4:if(" "!==x.charAt(0)){e.next=7;break}return u.ZP.warning("首字符不能为空格"),e.abrupt("return");case 7:t=0;case 8:if(!(t<x.length)){e.next=15;break}if(!n.includes(x.charAt(t))){e.next=12;break}return u.ZP.warning("文件夹名称包含特殊字符"),e.abrupt("return",!1);case 12:t++,e.next=8;break;case 15:return e.next=17,(0,g.sS)({parent_id:_.length>0?_[0]:0,name:x});case 17:0===(a=e.sent).status&&(k(),i(null==a?void 0:a.id));case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,b.jsx)(d.Z,{centered:!0,title:"新建文件夹",open:"新建文件夹"===n.actionTabs.key,width:500,onCancel:k,onOk:C,destroyOnClose:!0,children:(0,b.jsxs)("div",{className:f,children:[(0,b.jsxs)("div",{className:m,children:[(0,b.jsx)("span",{className:h,children:"文件夹名称: "}),(0,b.jsx)(p.Z,{placeholder:"请输入文件夹名称",value:x,onChange:function(e){return y(e.target.value)}})]}),(0,b.jsxs)("div",{className:m,style:{alignItems:"start",maxHeight:500,overflow:"auto"},children:[(0,b.jsx)("span",{className:h,children:"文件夹位置: "}),(0,b.jsx)(v.Z,{value:_,onChange:function(e){return j(e)}})]})]})})}))},73845:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});t(59301);var i="pWrap___UlNGw",r="few___fb5jD",a=t(60324),o=t(37712),s=function(e){var n,t,s,c=e.data,l=void 0===c?[]:c,u=e.activeTabsKey,d=e.onClick;return(0,o.jsxs)("aside",{style:{overflowX:"auto"},children:[l.length>1&&(0,o.jsx)("span",{style:{cursor:"pointer",color:"#afaaaa"},className:"iconfont icon-zuoshangjiaofanhui",onClick:function(){1!==l.length&&d(l[l.length-2].id,!1,!0)}}),(null==l?void 0:l.length)>5?(n=!0,t=l.slice(2,-2),s=(0,o.jsx)("div",{className:i,children:t.map((function(e){return(0,o.jsx)("span",{title:e.name,onClick:function(){return d(e.id,!1,"3"===u)},children:e.name},e.id)}))}),l.map((function(e,t){var i=null;return t>1&&t<l.length-2?n&&(i=(0,o.jsx)(a.Z,{placement:"bottom",content:s,children:(0,o.jsx)("span",{style:{color:"#999",cursor:"pointer"},children:".../"})},t),n=!1):i=(0,o.jsxs)("div",{className:r,children:[(0,o.jsx)("b",{title:e.name,style:{color:0===t?"#333333":"#999999"},onClick:function(){return d(e.id,!1,"3"===u)},children:e.name}),t<l.length-1&&(0,o.jsx)("span",{children:"/"})]},t),i}))):l.map((function(e,n){return(0,o.jsxs)("div",{className:r,children:[(0,o.jsx)("b",{title:e.name,style:{color:0===n?"#999999":"#333333"},onClick:function(){return d(e.id,!1,"3"===u)},children:e.name}),n<l.length-1&&(0,o.jsx)("span",{children:"/"})]},n)}))]})}},23853:function(e,n,t){"use strict";t.d(n,{Z:function(){return R},b:function(){return L}});var i=t(82242),r=t.n(i),a=t(7557),o=t.n(a),s=t(41498),c=t.n(s),l=t(79800),u=t.n(l),d=t(37205),p=t.n(d),f=t(91232),m=t.n(f),h=t(59301),v=t(8591),g=t(43418),x=t(98135),b=t(3113),y=t(48209),A="list___Ur31H",w="btns___ITJo0",_="name___FtR_V",j="folderWrapper___szWWk",k="folderIcon___MdKkF",C="share_folderIcon___G1rNy",N="subject___lELqJ",B=t(90694),E=t(73631),S=t(31328),T=t(56364),P=t(89392),I=t(4935),Z=t(37712),L=function e(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n){var r,a=m()(n);try{for(a.s();!(r=a.n()).done;){var o=r.value;if(o.key===t)return i;if(o.children&&""!=o.children){var s=e(o.children,t,[].concat(p()(i),[{id:o.key,name:o.title.props.name}]));if(s)return s}}}catch(e){a.e(e)}finally{a.f()}}},M=function(e){var n=e.isProblemset,t=e.name,i=e.id,r=e.isShare,a=e.itemBanksCount,s=e.onOpen,l=void 0===s?function(){}:s,d=e.onShare,p=void 0===d?function(){}:d,f=e.onMove,m=void 0===f?function(){}:f,y=e.onDeleteOk,j=void 0===y?function(){}:y,k=(0,h.useState)(!1),C=u()(k,2),E=C[0],S=C[1],T=(0,h.useState)(t),P=u()(T,2),I=P[0],L=P[1],M=(0,h.useState)(t),R=u()(M,2),O=R[0],D=R[1],G=function(){var e=c()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=["","、","/","╲","*","<",">","|"],O.trim()){e.next=4;break}return v.ZP.warning("请输入文件夹名称"),e.abrupt("return");case 4:if(" "!==O.charAt(0)){e.next=7;break}return v.ZP.warning("首字符不能为空格"),e.abrupt("return");case 7:i=0;case 8:if(!(i<O.length)){e.next=15;break}if(!t.includes(O.charAt(i))){e.next=12;break}return v.ZP.warning("文件夹名称包含特殊字符"),e.abrupt("return",!1);case 12:i++,e.next=8;break;case 15:return e.next=17,(0,B.ZP)("/api/item_banks_groups/".concat(Math.abs(n),".json"),{method:"put",body:{name:O}});case 17:0===e.sent.status&&(S(!1),L(O));case 19:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,Z.jsxs)("div",{className:A,onClick:function(e){return l(i,r)},children:[E?(0,Z.jsx)(x.Z,{style:{maxWidth:780},value:O,onChange:function(e){D(e.target.value)},onClick:function(e){return e.stopPropagation()}}):(0,Z.jsx)("div",{className:_,title:I,children:I}),a?(0,Z.jsxs)("div",{className:N,children:["试题数 ",a]}):"",n&&(0,Z.jsxs)("div",{className:w,children:[E?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)("i",{className:"iconfont icon-chenggong1 ml10",style:{color:"#33BD8C"},onClick:function(e){e.stopPropagation(),G(i)}}),(0,Z.jsx)("i",{className:"iconfont icon-qingchu ml10",onClick:function(e){e.stopPropagation(),D(I),S(!1)}})]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)("i",{className:"iconfont icon-shangyi3 ml10",onClick:function(e){e.stopPropagation(),m(i,"up")}}),(0,Z.jsx)("i",{className:"iconfont icon-shangyi3 ml10",style:{transform:"rotate(180deg)"},onClick:function(e){e.stopPropagation(),m(i,"down")}})]}),(0,Z.jsxs)("div",{style:{position:"relative",top:"-2px",display:"flex"},children:[(0,Z.jsx)(b.ZP,{className:"ml10",onClick:function(e){e.stopPropagation(),p(Math.abs(i))},type:"link",children:"共享全部文件夹"}),(0,Z.jsx)(b.ZP,{className:"ml10",onClick:function(e){e.stopPropagation(),S(!0)},type:"link",children:"重命名"}),(0,Z.jsx)(b.ZP,{onClick:function(e){e.stopPropagation(),function(e){var n;g.Z.confirm({title:"提示",okText:"确认删除",className:"custom-modal-divider ",icon:null,content:(0,Z.jsxs)("div",{children:[(0,Z.jsx)("p",{children:"本次删除操作确定后内容将无法恢复,是否继续?"}),(0,Z.jsx)("p",{children:"删除文件夹,将同步删除其所包含的全部子文件夹和试题,请慎重操作!"})]}),cancelText:"取消",onOk:(n=c()(o()().mark((function n(){return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,B.ZP)("/api/item_banks_groups/".concat(Math.abs(e),".json"),{method:"delete",body:{}});case 2:0===n.sent.status&&j(e);case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})}(i)},type:"link",danger:!0,children:"删除"})]})]})]})},R=function(e){var n=e.isProblemset,t=e.data,i=e.onOpen,a=void 0===i?function(){}:i,s=e.onShare,l=void 0===s?function(){}:s,d=e.navigation,f=e.reloadData,m=e.activeTabsKey,v=e.setRootData,g=e.params,x=(0,h.useState)(),b=u()(x,2),A=b[0],w=b[1],_=(0,h.useState)([]),N=u()(_,2),B=N[0],R=N[1],O=(0,h.useState)([]),D=u()(O,2),G=D[0],Q=D[1];(0,h.useEffect)((function(){A&&setTimeout((function(){v(A)}),200)}),[A]),(0,h.useEffect)((function(){Q([]),R([])}),[t]),(0,h.useEffect)((function(){0===G.length&&0===B.length&&w(null==t?void 0:t.map((function(e){return{title:(0,Z.jsx)(M,{isProblemset:n,name:e.name,id:e.id,isShare:e.is_share,itemBanksCount:e.item_banks_count,onMove:z,onOpen:a,onShare:l,onDeleteOk:H}),key:e.id,icon:e.is_share?(0,Z.jsx)("img",{onClick:function(){a(e.id)},src:S,className:C}):(0,Z.jsx)("img",{onClick:function(){a(e.id)},src:E,className:k}),isLeaf:!e.have_child}})))}),[G,B,t]);var F=function e(n,t,i){for(var r=(0,P.cloneDeep)(n),a=0;a<r.length;a++){if(r[a].key===t){if("up"===i){var o=[r[a],r[a-1]];r[a-1]=o[0],r[a]=o[1]}else{var s=[r[a+1],r[a]];r[a]=s[0],r[a+1]=s[1]}break}r[a].children&&(r[a].children=e(r[a].children,t,i))}return r},z=function(){var e=c()(o()().mark((function e(n,t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("up"!==t){e.next=6;break}return e.next=3,(0,T.A1)({id:Math.abs(n)});case 3:e.t0=e.sent,e.next=9;break;case 6:return e.next=8,(0,T.vi)({id:Math.abs(n)});case 8:e.t0=e.sent;case 9:0===e.t0.status&&w((function(e){return F(e,n,t)}));case 11:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),W=function e(n,t){return n.filter((function(n){return n.key!==t&&(n.children&&(n.children=e(n.children,t)),!0)}))},H=function(e){w((function(n){return W(n,e)})),f()},V=function e(n,t,i){return n.map((function(n){return n.key===t?r()(r()({},n),i):n.children?r()(r()({},n),{},{children:e(n.children,t,i)}):n}))},q=function(){var e=c()(o()().mark((function e(t){var i,s,c,u,f,h;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=t.key,c=m===I.TabType.TeachGroupShare?"3":"",e.next=4,(0,T.ex)(r()(r()({},g),{},{group_id:Math.abs(s),parents:[].concat(p()(d||[{id:0,name:"根目录"}]),p()(null===(i=L(A,s))||void 0===i?void 0:i.map((function(e){return{id:e.id,name:e.name}})))),type:c}));case 4:u=e.sent,h=(f=u||{}).data,f.total_count>0&&w((function(e){return V(e,s,{children:h.map((function(e){return{title:(0,Z.jsx)(M,{isProblemset:n,name:e.name,id:e.id,itemBanksCount:e.item_banks_count,onMove:z,onOpen:a,onShare:l,onDeleteOk:H}),key:e.id,icon:e.is_share?(0,Z.jsx)("img",{onClick:function(){a(e.id)},src:S,className:C}):(0,Z.jsx)("img",{onClick:function(){a(e.id)},src:E,className:k}),isLeaf:!e.have_child}}))})}));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(null==A?void 0:A.length)>0&&(0,Z.jsx)(y.Z,{showLine:{showLeafIcon:!1},showIcon:!0,treeData:A,loadData:q,onExpand:function(e,n){Q(e)},onLoad:function(e){R(e)},className:j,selectable:!1,expandedKeys:G,loadedKeys:B})}},22001:function(e,n,t){"use strict";t.d(n,{N:function(){return w},Z:function(){return _}});var i=t(37205),r=t.n(i),a=t(79800),o=t.n(a),s=t(59301),c=t(36653),l=t(5112),u=t(6848),d=t(24905),p=t(20834),f=t(38854),m={flex_box_center:"flex_box_center___K3pXk",flex_space_between:"flex_space_between___JNXiy",flex_box_vertical_center:"flex_box_vertical_center___lX_K7",flex_box_center_end:"flex_box_center_end___ESJAL",flex_box_column:"flex_box_column___nMTYm",line:"line___cNtUM",b1:"b1___xIRxk",b2:"b2___N5uit",list:"list___SBMGo",title:"title___zQP91",tr:"tr___uaxLL",itemDetail:"itemDetail___Ye51x",answerWrapper:"answerWrapper___WJAPa",decoration:"decoration___fOLFB",row:"row___FvSRM",typeRow:"typeRow___qpDsw",type:"type___a8Bs6",typeName:"typeName___EfvMr",typeIcon:"typeIcon___XnhBc",unpublished:"unpublished___h3A34",private:"private___Ok_kP",public:"public___V5_HF",reviewFlag:"reviewFlag___MWDMc",typeRightAction:"typeRightAction___zwJ4e",actionLink:"actionLink___XxdsL",actionIcon:"actionIcon___YoZs8",topicTitle:"topicTitle___TXfB_",topicTitleContent:"topicTitleContent___MceUW",judgmentContent:"judgmentContent___Adte7",programContent:"programContent___R8AFa",otherContent:"otherContent___CNAVC",combinationContent:"combinationContent___NWKpD",con:"con___MJkTE",otherContentItem:"otherContentItem___sXGMT",otehrContentHtml:"otehrContentHtml___MKkjT",difficultyRow:"difficultyRow___E6YVK",updateTimeRow:"updateTimeRow___MPFJY",updateTimeWrap:"updateTimeWrap___iIz5W",updateTimeContent:"updateTimeContent___CpqJg",programLanguage:"programLanguage___lku0d",updateTimeRowAction:"updateTimeRowAction___Y6grB",bottomAction:"bottomAction___sQwM3",borderColorBlue:"borderColorBlue___vZe0j",borderColorRed:"borderColorRed___GPm9E",borderColorFFF:"borderColorFFF___izaeA",borderColorGray:"borderColorGray___WdIyN",selectIcon:"selectIcon___I35Ch",colorGreen:"colorGreen___yFw84",parseAnswerBorder:"parseAnswerBorder___tmhXi",answer:"answer___c9YYj",answerHtml:"answerHtml___sp4Xx",parse:"parse___Lif5r",parseText:"parseText___KMhnK",parseAnswer:"parseAnswer___aFs0o",parseAnswerHtml:"parseAnswerHtml___AfP6o",actionBar:"actionBar___Q6e1E",know:"know___EtJbV",menu:"menu___ODbWA",bottom:"bottom___yLg8j",textBtn:"textBtn___p8TrW"},h=t(64330),v=t(24334),g=t(64565),x=t(41282),b=t(37712),y=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],A=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],w=function(e){var n,t,i,r,a,o,c,l,u,d,v,g,y,A,w,_=e.SubjectShare,j=e.isProblemset,k=e.data,C=e.user,N=e.activeTabsKey,B=e.onPublicReview,E=void 0===B?function(){}:B,S=e.onStartExperience,T=void 0===S?function(){}:S,P=e.onSetPrivate,I=void 0===P?function(){}:P,Z=e.onCorrection,L=void 0===Z?function(){}:Z,M=e.onChangeTag,R=void 0===M?function(){}:M,O=e.onCollect,D=void 0===O?function(){}:O,G=e.onSetPublic,Q=void 0===G?function(){}:G,F=e.onDelete,z=void 0===F?function(){}:F,W=(e.onCancel,e.onSelect,e.onMoveTo),H=void 0===W?function(){}:W,V=e.addProblemset,q=void 0===V?function(){}:V,Y=e.onSetShare,U=void 0===Y?function(){}:Y,K=e.onCancelShare,X=void 0===K?function(){}:K,J=e.onPublish,$=void 0===J?function(){}:J,ee=e.onCancelPublish,ne=void 0===ee?function(){}:ee,te="PROGRAM"===k.item_type?"/problems/newedit/".concat(null===(n=k.program_attr)||void 0===n?void 0:n.identifier):"BPROGRAM"===k.item_type?"/problemset/edit/".concat(null===(t=k.program_attr)||void 0===t?void 0:t.identifier,"?type=1"):"/problemset/edit/".concat(k.id),ie="0"===N&&!k.public&&!k.apply&&("PROGRAM"===k.item_type&&0!==(null===(i=k.program_attr)||void 0===i?void 0:i.status)||"PROGRAM"!==k.item_type),re=[{label:(0,b.jsx)("a",{className:m.actionLink,onClick:function(){var e;return ne(null==k||null===(e=k.program_attr)||void 0===e?void 0:e.identifier)},children:"撤销发布"}),key:"0",show:("0"===N||"3"===N)&&"PROGRAM"===k.item_type&&0!==(null===(r=k.program_attr)||void 0===r?void 0:r.status)&&!k.public&&(null===(a=k.author)||void 0===a?void 0:a.login)===(null===(o=C.userInfo)||void 0===o?void 0:o.login)},{label:(0,b.jsx)("a",{className:m.actionLink,onClick:function(){return H(k.id)},children:"移动到"}),key:"1",show:"0"===N},{label:(0,b.jsx)("a",{className:m.actionLink,onClick:function(){k.is_share?X(k.id):U(k.id)},children:"共享"}),key:"3",show:"0"===N&&_},{label:(0,b.jsx)("a",{className:m.actionLink,onClick:function(){return Q(k)},children:"公开"}),key:"4",show:ie},{label:(0,b.jsx)("a",{className:m.reviewFlag,onClick:E,children:"公开审核中"}),key:"5",show:"0"===N&&!k.public&&k.apply&&("PROGRAM"===k.item_type&&0!==k.program_attr.status||"PROGRAM"!==k.item_type)},{label:(0,b.jsx)("a",{className:m.actionLink,onClick:function(){return I(k.id)},children:"撤销公开"}),key:"6",show:("0"===N||"1"===N)&&k.public&&(null===(c=k.author)||void 0===c?void 0:c.login)===(null===(l=C.userInfo)||void 0===l?void 0:l.login)||"1"===N&&(0,h.ag)()},{label:(0,b.jsx)("a",{className:m.actionLink,onClick:function(){return D(k.id,k.is_collected)},children:"取消收藏"}),key:"7",show:"2"===N},{label:(0,b.jsx)("a",{className:m.actionLink,onClick:function(){var e;return $(null==k||null===(e=k.program_attr)||void 0===e?void 0:e.identifier)},children:"发布"}),key:"8",show:("0"===N||"3"===N)&&"PROGRAM"===k.item_type&&0===(null===(u=k.program_attr)||void 0===u?void 0:u.status)&&!k.public&&(null===(d=k.author)||void 0===d?void 0:d.login)===(null===(v=C.userInfo)||void 0===v?void 0:v.login)},{label:(0,b.jsx)("a",{className:m.actionLink,onClick:function(){return D(k.id,k.is_collected)},children:k.is_collected?"取消收藏":"收藏"}),key:"9",show:!("1"!==N&&"3"!==N||(0,h.ag)()||(0,h.JA)()||(null===(g=k.author)||void 0===g?void 0:g.login)===(null===(y=C.userInfo)||void 0===y?void 0:y.login))},{label:(0,b.jsx)("a",{className:m.actionLink,onClick:function(){return L(k.id)},children:"纠错"}),key:"10",show:"0"!==N&&!(0,h.ag)()&&!(0,h.JA)()},{label:(0,b.jsx)("a",{className:m.actionLink,onClick:function(){return R(k)},children:"修改知识点"}),key:"15",show:"0"===N||"3"===N&&(null==k?void 0:k.edit_item_bank)},{label:(0,b.jsx)("a",{className:m.actionLink,onClick:function(){return z(k.id)},children:"删除"}),key:"11",show:"0"===N&&!k.public||"1"===N&&(0,h.ag)()&&(null===(A=k.author)||void 0===A?void 0:A.login)!==(null===(w=C.userInfo)||void 0===w?void 0:w.login)},{label:(0,b.jsx)("a",{className:m.actionLink,onClick:function(){return q(k.id)},children:"加入我的题库"}),key:"12",show:"1"===N||"3"===N}].filter((function(e){return e.show})),ae=(0,b.jsx)(p.Z,{forceSubMenuRender:!0,className:m.menu,items:re}),oe=(0,b.jsx)(p.Z,{forceSubMenuRender:!0,className:m.menu,children:(0,b.jsx)(p.Z.Item,{children:(0,b.jsx)("a",{className:m.actionLink,onClick:function(){return L(k.id)},children:"纠错"})},"10")}),se="0"!==N&&!(0,h.ag)()&&!(0,h.JA)();return(0,b.jsx)(s.Fragment,{children:j?(0,b.jsxs)(b.Fragment,{children:[("0"===N||"3"===N&&(null==k?void 0:k.edit_item_bank))&&!k.public&&(0,b.jsxs)("span",{className:m.textBtn,style:{cursor:"pointer"},onClick:function(){return(0,x.xg)(te)},children:[(0,b.jsxs)("div",{className:m.line,children:[(0,b.jsx)("b",{className:m.b1}),(0,b.jsx)("b",{className:m.b2})]}),(0,b.jsx)("i",{className:"iconfont icon-bianji10 font14 mr5"}),"编辑",!("SUBJECTIVE"!==k.item_type&&"COMBINATION"!==k.item_type)&&(0,b.jsxs)("div",{className:m.line,children:[(0,b.jsx)("b",{className:m.b1}),(0,b.jsx)("b",{className:m.b2})]})]}),"SUBJECTIVE"!==k.item_type&&"COMBINATION"!==k.item_type&&(0,b.jsxs)("span",{className:m.textBtn,style:{cursor:"pointer"},onClick:function(){return T(k)},children:[(0,b.jsxs)("div",{className:m.line,children:[(0,b.jsx)("b",{className:m.b1}),(0,b.jsx)("b",{className:m.b2})]}),(0,b.jsx)("i",{className:"iconfont icon-tiyan font14 mr5"}),"体验",(0,b.jsxs)("div",{className:m.line,children:[(0,b.jsx)("b",{className:m.b1}),(0,b.jsx)("b",{className:m.b2})]})]}),re.length>0&&(0,b.jsx)(f.Z,{dropdownRender:function(){return ae},children:(0,b.jsx)("span",{style:{cursor:"default",width:"105px"},onClick:function(e){return e.preventDefault()},children:(0,b.jsxs)("span",{className:m.textBtn,children:[(0,b.jsx)("i",{className:"iconfont icon-gengduo5 font14 mr5"}),"更多",(0,b.jsxs)("div",{className:m.line,children:[(0,b.jsx)("b",{className:m.b1}),(0,b.jsx)("b",{className:m.b2})]})]})})})]}):se?(0,b.jsx)(f.Z,{className:"ml40",dropdownRender:function(){return oe},children:(0,b.jsx)("span",{style:{cursor:"default",width:"105px"},onClick:function(e){return e.preventDefault()},children:(0,b.jsxs)("span",{className:m.textBtn,children:[(0,b.jsx)("i",{className:"iconfont icon-gengduo5 font14 mr5"}),"更多",(0,b.jsxs)("div",{className:m.line,children:[(0,b.jsx)("b",{className:m.b1}),(0,b.jsx)("b",{className:m.b2})]})]})})}):(0,b.jsx)("span",{})})},_=function(e){var n,t,i,a,p,f=e.data,h=e.selectIds,x=e.onSelectCheckBox,w=void 0===x?function(){}:x,_=e.showCheckbox,j=void 0===_||_,k=(0,s.useState)(!1),C=o()(k,2),N=C[0],B=C[1],E=function(){var e;if("BPROGRAM"!==(null==f?void 0:f.item_type))return(0,b.jsx)("div",{children:null===(e=f.standard_answer)||void 0===e?void 0:e.map((function(e,n){var t,i;return(0,b.jsx)("div",{className:m.answerHtml,children:1===(null==e?void 0:e.model)?"答案(填空".concat(e.position,"").concat(null==e||null===(t=e.answer_text)||void 0===t?void 0:t.join("、")):(0,b.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,b.jsxs)("span",{style:{minWidth:110},children:["答案(填空",e.position,""]}),(0,b.jsx)(g.Z,{value:null==e||null===(i=e.answer_text)||void 0===i?void 0:i.join("、"),readOnly:!0})]})},n)}))})};return(0,b.jsxs)("div",{className:m.itemWrap,children:[(0,b.jsxs)("div",{className:m.list,children:[j&&(0,b.jsx)(d.Z,{className:"mr10",onChange:function(e){var n=r()(h);e.target.checked?n.push(f.id):n=n.filter((function(e){return e!==f.id})),w(n)},checked:h.includes(f.id)}),(0,b.jsx)("div",{onClick:function(){return B(!N)},className:m.title,children:(0,b.jsx)(c.Z,{showLines:1,showTextOnly:!0,className:m.topicTitleContent,value:"BPROGRAM"===(null==f?void 0:f.item_type)?null==f||null===(n=f.program_attr)||void 0===n?void 0:n.description:f.name},1)}),(0,b.jsx)("div",{onClick:function(){return B(!N)},className:m.tr,children:(0,b.jsx)("i",{style:{transform:N?"scale(0.5) rotate(-180deg)":"scale(0.5) rotate(0deg)"},className:"iconfont icon-zhankai4"})})]}),(0,b.jsxs)("aside",{style:N?{display:"block"}:{display:"none"},className:m.itemDetail,children:[(0,b.jsxs)("div",{style:{marginBottom:44},children:[(0,b.jsx)(c.Z,{className:m.topicTitleContent,value:"BPROGRAM"===(null==f?void 0:f.item_type)?null==f||null===(t=f.program_attr)||void 0===t?void 0:t.description:f.name},2),(0,b.jsx)("div",{className:"".concat(m.row," mt15"),children:"JUDGMENT"===f.item_type?(0,b.jsx)("div",{className:m.judgmentContent,children:f.choices.map((function(e,n){return(0,b.jsx)(l.ZP,{disabled:!0,children:e.choice_text},n)}))}):"PROGRAM"===f.item_type?(0,b.jsx)("div",{className:m.programContent,children:(0,b.jsx)(c.Z,{value:null===(a=f.program_attr)||void 0===a?void 0:a.description})}):"COMBINATION"===f.item_type?(0,b.jsx)("div",{className:m.combinationContent,children:null==f||null===(p=f.sub_item_banks)||void 0===p?void 0:p.map((function(e,n){var t,i,r,a,o,d="(题目".concat(n+1,"-").concat("SINGLE"==(null==e?void 0:e.item_type)?"单选题":"MULTIPLE"==(null==e?void 0:e.item_type)?"多选题":"COMPLETION"==(null==e?void 0:e.item_type)?"填空题":"JUDGMENT"==(null==e?void 0:e.item_type)?"判断题":"简答题",") ");return(0,b.jsxs)(s.Fragment,{children:[(0,b.jsx)("div",{style:{marginTop:10,marginBottom:10},children:(0,b.jsx)(c.Z,{value:d+e.name})}),("SINGLE"==(null==e?void 0:e.item_type)||"MULTIPLE"==(null==e?void 0:e.item_type))&&e.choices.map((function(e,n){return(0,b.jsxs)("div",{className:m.otherContentItem,children:[(0,b.jsx)("p",{children:y[n]}),(0,b.jsx)(c.Z,{className:m.otehrContentHtml,value:e.choice_text})]},n)})),"JUDGMENT"==(null==e?void 0:e.item_type)&&(0,b.jsx)("div",{style:{display:"flex",marginBottom:10},children:e.choices.map((function(e,n){return(0,b.jsx)(l.ZP,{disabled:!0,children:e.choice_text},n)}))}),(0,b.jsxs)("div",{className:m.con,children:["SINGLE"==(null==e?void 0:e.item_type)&&(0,b.jsxs)("b",{className:"c-grey-333 font14",children:[" 答案:",null==A?void 0:A[null==e||null===(t=e.choices)||void 0===t?void 0:t.findIndex((function(e){return null==e?void 0:e.is_answer}))]," "]}),"COMPLETION"==(null==e?void 0:e.item_type)&&(null==e||null===(i=e.standard_answer)||void 0===i?void 0:i.map((function(e,n){var t;return(0,b.jsx)("div",{className:m.answerHtml,children:"答案(填空".concat(e.position,"").concat(null==e||null===(t=e.answer_text)||void 0===t?void 0:t.join("、"))},n)}))),"MULTIPLE"==(null==e?void 0:e.item_type)&&(0,b.jsxs)("b",{className:"c-grey-333 font14",children:[" 答案:",null==e||null===(r=e.choices)||void 0===r?void 0:r.map((function(e,n){if(null!=e&&e.is_answer)return(null==A?void 0:A[n])+" "}))," "]}),"JUDGMENT"==(null==e?void 0:e.item_type)&&(0,b.jsxs)("div",{children:["答案:",null==e||null===(a=e.choices)||void 0===a||null===(a=a.find((function(e){return e.is_answer})))||void 0===a?void 0:a.choice_text]}),"SUBJECTIVE"==(null==e?void 0:e.item_type)&&(0,b.jsxs)("div",{children:["答案:",null==e||null===(o=e.answer_texts)||void 0===o?void 0:o[0]]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{children:"解析:"}),(0,b.jsx)(c.Z,{className:m.parseAnswerHtml,value:e.analysis||"暂无解析"})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{children:"知识点:"}),(0,b.jsx)(u.Z,{title:(null==f?void 0:f.tag_discipline)||"--",children:(0,b.jsx)("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:(null==f?void 0:f.tag_discipline)||"--"})})]})]})]})}))}):(0,b.jsx)("div",{className:m.otherContent,children:f.choices.map((function(e,n){return(0,b.jsxs)("div",{className:m.otherContentItem,children:[(0,b.jsx)("p",{children:y[n]}),(0,b.jsx)(c.Z,{className:m.otehrContentHtml,value:e.choice_text})]},n)}))})}),(0,b.jsx)("div",{className:m.row,children:(0,b.jsx)("div",{className:m.updateTimeRow,children:(0,b.jsx)("div",{className:m.updateTimeWrap,children:"PROGRAM"===f.item_type&&(0,b.jsxs)("p",{className:m.programLanguage,children:["编程语言:",null===(i=f.program_attr)||void 0===i?void 0:i.language]})})})})]}),"COMBINATION"!==f.item_type&&(0,b.jsxs)("div",{className:m.answerWrapper,children:[(0,b.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACMgAAAA6CAYAAABPwffJAAAAAXNSR0IArs4c6QAAH35JREFUeF7t3Q2MZWV9x/H/c849d17uzL6y7K4M76xLNIAKoiBQak0oRgsiYKyxUEq0LwZLYmqa0hqtpi8xodam1daKRFtbRITYBmlspRBBAXmRaHddsCyO7Bsssztzd2buveec5jl37jC7bN155l7OL7P3ewmZfTnn+Z37+f9nsjn3n+c4W8JrfHx8bGam9ZfNZutif3q1Wrl3YKDyB2NjY+NLWC74FHV+8AVzQlcC6nqr87vC4+RgAXW91fnBYJyAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACpr6/r86nBcoVUNdbnV+uNmnqevcy34WW84knto0513giz22NWef03P9qb27Vs846a9MrOiSjzg/14vjuBNT1Vud3p8fZoQLqeqvzQ704HgEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBMzU9/fV+fRAuQLqeqvzy9UmTV3vXucHD8g88shj/2zm3ttoN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642aep69zo/eJjl05+++ZAdZNqPVvKvJEnsIx+5MXjNkLZS54dcK8d2L6Cutzq/e0FWCBFQ11udH2LFsQgggAACCCCAAAIIIIAAAggggAACCCCAAAIIINAWUN/fV+fTB+UKqOutzi9XmzR1vXudHzzM8olPfCrvPFKp/dXvHtNuDL/Yn3zspuA1Q9pKnR9yrRzbvYC63ur87gVZIURAXW91fogVxyKAAAIIIIAAAggggAACCCCAAAIIIIAAAggggEBbQH1/X51PH5QroK63Or9cbdLU9e51fvAwy003fSxvNhsLOuGlJfwOMp/85MeD1wxpK3V+yLVybPcC6nqr87sXZIUQAXW91fkhVhyLAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACbQH1/X11Pn1QroC63ur8crVJU9e71/nBwyw33viR3O8a03nN7x4zt5PMzTd/OnjNkLZS54dcK8d2L6Cutzq/e0FWCBFQ11udH2LFsQgggAACCCCAAAIIIIAAAggggAACCCCAAAIIINAWUN/fV+fTB+UKqOutzi9XmzR1vXudHzzM8qEP3ZC3mi3Lbe65SvM94axaTeyzn/1M8JohbaXOD7lWju1eQF1vdX73gqwQIqCutzo/xIpjEUAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAoC2gvr+vzqcPyhVQ11udX642aep69zo/eJjluuuuf2kyxv/KrzD3Nc9zu+WWfwxeM6St1Pkh18qx3Quo663O716QFUIE1PVW54dYcSwCCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAgi0BdT399X59EG5Aup6q/PL1SZNXe9e5wcPs7z//dfkzUbjoP1j/COX/KOWqtWqffnLtwavGdJW6vyQa+XY7gXU9Vbndy/ICiEC6nqr80OsOBYBBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAAQTaAur7++p8+qBcAXW91fnlapOmrnev84OHWa644sp8fsuY+X7obCrj7I47bg9eM6St1Pkh18qx3Quo663O716QFUIE1PVW54dYcSwCCCCAAAIIIIAAAggggAACCCCAAAIIIIAAAgi0BdT399X59EG5Aup6q/PL1SZNXe9e5wcPs7zjHb+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NmrreZeYfdkDGt8CCi/C/7QzKHPrrQ7uleITS3B8u/PWih2M6C6rz+TYoV0Bdb3V+udqkqeutzqcDEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAIFxAfX9fnR8uxhndCKjrrc7vxo5zwwXU9S4r//8dkFlIdsjFdP7q0HNftjvMYneMOVJ51PlHuj7+vrcC6nqr83uryWpHElDXW51/JB/+HgEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBF4uoL6/r86nJ8oVUNdbnV+uNmnqer+S+f8HabRiLm3R4IUAAAAASUVORK5CYII=",alt:"",className:m.decoration}),(0,b.jsx)("div",{className:m.answer,children:function(){var e,n,t,i,r={SUBJECTIVE:null===(e=f.answer_texts)||void 0===e?void 0:e[0],JUDGMENT:null===(n=f.choices)||void 0===n||null===(n=n.find((function(e){return e.is_answer})))||void 0===n?void 0:n.choice_text},a=f.choices.map((function(e){return e.is_answer})).findIndex((function(e){return e})),o=a>-1?A[a]:"",s="";f.choices.map((function(e,n){e.is_answer&&(s+=A[n])}));var l=r[f.item_type],u=(null==f||null===(t=f.program_attr)||void 0===t?void 0:t.code)||"";try{var d;u=v.Base64.decode((null==f||null===(d=f.program_attr)||void 0===d?void 0:d.code)||"")}catch(e){}var p={SINGLE:(0,b.jsx)(c.Z,{className:m.answerHtml,value:"答案:".concat(o||"无")}),MULTIPLE:(0,b.jsx)(c.Z,{className:m.answerHtml,value:"答案:".concat(s||"无")}),COMPLETION:E(),BPROGRAM:(0,b.jsxs)("div",{children:[(0,b.jsx)(c.Z,{className:m.answerHtml,showProgramFill:!0,value:u}),null===(i=f.standard_answer)||void 0===i?void 0:i.map((function(e,n){return(0,b.jsx)("div",{className:m.answerHtml,children:"答案(填空".concat(e.position,"").concat(null==e?void 0:e.answer_text)},n)}))]})},h=(0,b.jsx)(c.Z,{className:m.answerHtml,value:"答案:".concat(l||"无")});return p[f.item_type]||h}()}),(0,b.jsxs)("div",{className:m.parse,children:[(0,b.jsx)("div",{className:m.parseText,children:"解析:"}),(0,b.jsx)("div",{className:m.parseAnswer,children:f.analysis?(0,b.jsx)(c.Z,{className:m.parseAnswerHtml,value:f.analysis}):"暂无解析"})]}),(0,b.jsxs)("div",{className:m.parse,children:[(0,b.jsx)("div",{className:m.parseText,children:"知识点:"}),(0,b.jsx)(u.Z,{title:(null==f?void 0:f.tag_discipline)||"--",children:(0,b.jsx)("div",{className:m.parseAnswer,style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:(null==f?void 0:f.tag_discipline)||"--"})})]})]})]})]})}},4935:function(e,n,t){"use strict";t.r(n),t.d(n,{TabType:function(){return Dn},default:function(){return Gn}});var i=t(7557),r=t.n(i),a=t(37205),o=t.n(a),s=t(82242),c=t.n(s),l=t(41498),u=t.n(l),d=t(79800),p=t.n(d),f=t(59301),m=t(46681),h=t(73031),v=t(99313),g=t(98135),x=t(78241),b=t(43418),y=t(5112),A=t(8591),w=t(71418),_=t(24905),j=t(20834),k=t(6848),C=t(19842),N=t(57809),B=t(66104),E=t(3113),S=t(38854),T=t(95237),P=t(53864),I=t(65972),Z=t(77984),L=t(39647),M=t.n(L),R="modalContent___UXmJC",O="modalContentLeft___JOFgX",D="green___rI_w_",G="textArea___OTapv",Q="red___cDswv",F="row___CE3Y7",z="html___u9n4r",W="line___Lh9Lb",H=t(37712),V=["problemset","globalSetting","loading","dispatch"],q=(0,m.connect)((function(e){var n=e.problemset,t=e.loading;return{problemset:n,globalSetting:e.globalSetting,loading:t.effects}}))((function(e){var n=e.problemset,t=(e.globalSetting,e.loading,e.dispatch);M()(e,V);return(0,H.jsxs)(b.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:"Problemset-PublicReview"===n.actionTabs.key,title:"提示",okText:"知道啦",cancelText:"",width:"442px",onOk:function(){t({type:"problemset/setActionTabs",payload:{}})},onCancel:function(){t({type:"problemset/setActionTabs",payload:{}})},children:[(0,H.jsx)("div",{className:R,children:"公开申请已提交,请等待管理员的审核"}),(0,H.jsx)("div",{className:R,children:"我们将在1-2个工作日内完成审核"})]})})),Y={flex_box_center:"flex_box_center___YKb0w",flex_space_between:"flex_space_between___wpoDJ",flex_box_vertical_center:"flex_box_vertical_center____nKxT",flex_box_center_end:"flex_box_center_end___vyS5Y",flex_box_column:"flex_box_column___WjAJ8",exportModal:"exportModal___zrCjw",export_text:"export_text___BpWql"},U=t(21795),K=t(99232),X=t.n(K),J=t(57357),$=(0,m.connect)((function(e){return{problemset:e.problemset}}))((function(e){var n=e.problemset,t=e.dispatch,i=(0,f.useState)([]),r=p()(i,2),a=r[0],o=r[1],s=(0,f.useState)(!0),c=p()(s,2),l=c[0],u=c[1],d=function(){t({type:"problemset/setActionTabs",payload:{}})};(0,f.useEffect)((function(){var e;"导出试题"===n.actionTabs.key&&o([null===(e=n.actionTabs)||void 0===e||null===(e=e.params)||void 0===e?void 0:e.group_id])}),[n.actionTabs.key]);var m=function(e,n,t,i){var r=J.Z.API_SERVER+n,a=new window.XMLHttpRequest;return a.withCredentials=!0,a.addEventListener("load",(function(e){t(e,a)}),!1),a.addEventListener("error",(function(e){i&&i(e)}),!1),a.responseType="blob",a.open("GET",r),a.send(null),a};return(0,H.jsx)(b.Z,{centered:!0,title:"导出试题",open:"导出试题"===n.actionTabs.key,width:718,destroyOnClose:!0,wrapClassName:Y.customModal,onCancel:d,onOk:function(){0!==a.length?m({},"/api/item_banks/export.xlsx?group_id=".concat(a[0],"&include_children=").concat(l),(function(e,n){var t;if("application/json"===(null===(t=e.target.response)||void 0===t?void 0:t.type)){var i=new FileReader;return i.readAsText(e.target.response,"utf-8"),void i.addEventListener("loadend",(function(){var e=JSON.parse(i.result);A.ZP.warning((null==e?void 0:e.message)||"下载出错, 请联系管理员")}))}var r=new Blob([e.target.response],{type:"application/vnd.ms-excel;charset=utf-8"}),a="导出试题-".concat(X()().format("YYYYMMDD_HH:mm:ss"),".xlsx");if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(r,a);else{var o=URL.createObjectURL(r),s=document.createElement("a");s.href=o,s.setAttribute("download",a),document.body.appendChild(s),s.click(),window.URL.revokeObjectURL(s.href)}d()})):A.ZP.warning("请选择文件夹")},children:(0,H.jsxs)("aside",{className:Y.exportModal,children:[(0,H.jsxs)("div",{style:{marginBottom:20},children:[(0,H.jsx)("label",{style:{marginRight:20},children:"导出设置"}),(0,H.jsxs)(y.ZP.Group,{onChange:function(e){u(e.target.value)},value:l,children:[(0,H.jsx)(y.ZP,{value:!0,children:"包含子文件夹"}),(0,H.jsx)(y.ZP,{value:!1,children:"仅当前文件夹"})]})]}),(0,H.jsx)(U.Z,{value:a,onChange:function(e){return o(e)}}),(0,H.jsx)("div",{className:Y.export_text,children:"其中组合题与实训题暂不支持导出"})]})})})),ee="customModal___lg6DD",ne="shareModal___uZhG_",te="content___I8qEq",ie="group___KeY9s",re="teachGroup____SeBs",ae="footer___Jn0qQ",oe=t(56364),se=(0,m.connect)((function(e){return{problemset:e.problemset}}))((function(e){var n,t=e.problemset,i=e.dispatch,a=e.onOk,o=((0,m.useParams)(),(0,f.useState)([])),s=p()(o,2),c=(s[0],s[1]),l=(0,f.useState)(1),d=p()(l,2),h=d[0],v=d[1],g=(0,f.useState)([]),x=p()(g,2),y=x[0],j=x[1],k=(0,f.useState)([]),C=p()(k,2),N=C[0],B=C[1],S=(0,f.useState)(!0),T=p()(S,2),P=T[0],I=T[1],Z=(0,f.useState)(!1),L=p()(Z,2),M=L[0],R=L[1],O=(0,f.useState)(!1),D=p()(O,2),G=(D[0],D[1]);(0,f.useEffect)((function(){var e;"共享试题"===t.actionTabs.key&&(Q(),j([null===(e=t.actionTabs)||void 0===e||null===(e=e.params)||void 0===e?void 0:e.group_id]))}),[t.actionTabs.key]);var Q=function(){var e=u()(r()().mark((function e(){var n,t,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I(!0),e.next=3,(0,oe.Of)({type:0,page:1,per_page:10,order_by:"new"});case 3:null!=(n=e.sent)&&n.item_banks_group&&(t={id:-1,item_banks_count:(null==n?void 0:n.no_group_count)||0,name:{name:"未加入分组"}},i=[t].concat((null==n?void 0:n.item_banks_group)||[]),c(i)),I(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),F=function(){i({type:"problemset/setActionTabs",payload:{}})},z=function(){var e=u()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==y.length){e.next=3;break}return A.ZP.warning("请选择需要的文件夹"),e.abrupt("return");case 3:if(1!==h){e.next=6;break}return v(2),e.abrupt("return");case 6:return R(!0),e.next=9,(0,oe.GW)({item_banks_group_ids:y,clazz:"ItemBank",group_ids:N});case 9:0===(null==(n=e.sent)?void 0:n.status)&&(a(),F()),R(!1);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,H.jsx)(b.Z,{centered:!0,afterClose:function(){B([]),v(1),G(!1),c([])},title:"共享试题".concat(h,"/2"),open:"共享试题"===t.actionTabs.key,footer:null,width:718,destroyOnClose:!0,wrapClassName:ee,onCancel:F,children:(0,H.jsx)("aside",{className:ne,children:(0,H.jsxs)(w.Z,{spinning:P,children:[(0,H.jsxs)("div",{className:te,children:[1===h&&(0,H.jsx)("div",{className:ie,children:(0,H.jsx)(U.Z,{value:y,onChange:function(e){return j(e)}})}),2===h&&(0,H.jsxs)("div",{className:re,children:[(0,H.jsx)("p",{children:"共享至教研团队"}),(0,H.jsx)(_.Z.Group,{value:N,onChange:function(e){return B(e)},children:null==t||null===(n=t.teachGroupData)||void 0===n||null===(n=n.groups)||void 0===n?void 0:n.map((function(e){return(0,H.jsx)(_.Z,{value:e.group_id,children:null==e?void 0:e.name},e.group_id)}))})]})]}),(0,H.jsxs)("div",{className:ae,children:[(0,H.jsx)(E.ZP,{onClick:F,children:"取消"}),(0,H.jsx)(E.ZP,{loading:M,onClick:z,type:"primary",children:1===h?"下一步":"确认共享"})]})]})})})})),ce=["problemset","globalSetting","loading","dispatch","onReloadData","isPiliangRevoke"],le=(0,m.connect)((function(e){var n=e.problemset,t=e.loading;return{problemset:n,globalSetting:e.globalSetting,loading:t.effects}}))((function(e){var n=e.problemset,t=(e.globalSetting,e.loading),i=e.dispatch,a=e.onReloadData,o=void 0===a?function(){}:a,s=e.isPiliangRevoke,c=void 0!==s&&s,l=(M()(e,ce),(0,f.useRef)(!1)),d=(0,f.useState)(!1),m=p()(d,2),h=m[0],v=m[1];(0,f.useEffect)((function(){"Problemset-SetPrivate"===n.actionTabs.key?"1"===window.localStorage.getItem("problemset-set-private-hint-flag")?g():v(!0):v(!1)}),[n.actionTabs.key]);var g=function(){var e=u()(r()().mark((function e(){var t,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l.current&&window.localStorage.setItem("problemset-set-private-hint-flag","1"),a={},!c){e.next=8;break}return e.next=5,i({type:"problemset/revokePublish",payload:n.actionTabs.params});case 5:a=e.sent,e.next=11;break;case 8:return e.next=10,i({type:"problemset/setPrivate",payload:n.actionTabs.params});case 10:a=e.sent;case 11:i({type:"problemset/setActionTabs",payload:{}}),l.current=!1,0===(null===(t=a)||void 0===t?void 0:t.status)&&o();case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,H.jsxs)(b.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:h,title:"撤销公开告知",okText:"确定",cancelText:"取消",confirmLoading:c?t["problemset/revokePublish"]:t["problemset/setPrivate"],width:"442px",onOk:g,onCancel:function(){i({type:"problemset/setActionTabs",payload:{}}),l.current=!1},children:[(0,H.jsx)("div",{className:O,children:"试题已公开,撤销公开可能导致部分用户对试题的使用受损。"}),(0,H.jsx)("div",{className:O,children:"确认撤销公开回到自有状态吗?"}),(0,H.jsx)("div",{children:(0,H.jsx)(_.Z,{className:"mt10",defaultChecked:!1,onChange:function(e){return l.current=e.target.checked},children:"不再提示"})})]})})),ue=["problemset","globalSetting","loading","dispatch","onReloadData"],de=(0,m.connect)((function(e){var n=e.problemset,t=e.loading;return{problemset:n,globalSetting:e.globalSetting,loading:t.effects}}))((function(e){var n=e.problemset,t=(e.globalSetting,e.loading),i=e.dispatch,a=e.onReloadData,o=void 0===a?function(){}:a,s=(M()(e,ue),function(){var e=u()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i({type:"problemset/handleDelete",payload:n.actionTabs.params});case 2:t=e.sent,i({type:"problemset/setActionTabs",payload:{}}),0===t.status&&o();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}());return(0,H.jsxs)(b.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:"Problemset-Delete"===n.actionTabs.key,title:"提示",okText:"确定",cancelText:"取消",confirmLoading:t["problemset/handleDelete"],width:"442px",onOk:s,onCancel:function(){i({type:"problemset/setActionTabs",payload:{}})},children:[(0,H.jsx)("div",{className:R,children:"确认删除后,无法撤销"}),(0,H.jsx)("div",{className:R,children:"是否确认删除?"})]})})),pe=t(89392),fe=t(36653),me=(0,m.connect)((function(e){return{problemset:e.problemset}}))((function(e){var n,t=e.problemset,i=e.dispatch,a=(0,f.useState)({}),o=p()(a,2),s=o[0],l=o[1],d=(0,f.useState)([]),m=p()(d,2),h=m[0],v=m[1],g=(0,f.useState)(!1),x=p()(g,2),w=x[0],_=x[1],j=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];(0,f.useEffect)((function(){var e;if("SINGLE"===(null==t||null===(e=t.actionTabs)||void 0===e?void 0:e.key)){var n,i=(0,pe.cloneDeep)(null==t||null===(n=t.actionTabs)||void 0===n?void 0:n.params);l(i),v(i.choices)}}),[null==t||null===(n=t.actionTabs)||void 0===n?void 0:n.key]);var k=function(){var e=u()(r()().mark((function e(){var n,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h.some((function(e){return null==e?void 0:e.checked}))){e.next=3;break}return A.ZP.warning("请您作答后再提交"),e.abrupt("return");case 3:w&&(i=(0,pe.cloneDeep)(null==t||null===(n=t.actionTabs)||void 0===n?void 0:n.params),v(i.choices)),_(!w);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,H.jsx)(b.Z,{centered:!0,destroyOnClose:!0,open:"SINGLE"===t.actionTabs.key,title:"试题体验",okText:w?"重新答题":"提交答案",cancelText:"取消",width:708,onOk:k,onCancel:function(){l({}),v([]),_(!1),i({type:"problemset/setActionTabs",payload:{}})},children:(0,H.jsxs)("div",{children:[(0,H.jsx)("div",{className:"c-light-primary mb5 font16",children:"单选题"}),(0,H.jsx)(fe.Z,{value:null==s?void 0:s.name}),null==h?void 0:h.map((function(e,n){var t=e.is_answer,i=e.checked,r=e.choice_text,a="";return w&&t&&(a=D),w&&!t&&i&&(a=Q),(0,H.jsxs)("div",{style:{pointerEvents:w?"none":"auto"},className:"".concat(F," ").concat(a),children:[(0,H.jsx)(y.ZP,{onChange:function(e){return function(e,n){console.log(e.target.checked);var t=h.map((function(t,i){return c()(c()({},t),{},{checked:i===n&&e.target.checked})}));v(t)}(e,n)},checked:i}),(0,H.jsxs)("span",{children:[j[n],". "]}),(0,H.jsx)(fe.Z,{className:z,value:r}),w&&t&&(0,H.jsx)("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),w&&!t&&i&&(0,H.jsx)("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"})]},n)})),w&&(0,H.jsxs)(f.Fragment,{children:[(0,H.jsx)("div",{className:W}),(0,H.jsxs)("div",{className:"c-grey-333 mb5",children:[(0,H.jsx)("b",{children:"正确答案: "}),j[h.findIndex((function(e){return e.is_answer}))]]}),(0,H.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,H.jsx)("b",{children:"解析: "}),(null==s?void 0:s.analysis)||"暂无解析"]})]})]})})})),he=(0,m.connect)((function(e){return{problemset:e.problemset}}))((function(e){var n,t=e.problemset,i=e.dispatch,a=(0,f.useState)({}),o=p()(a,2),s=o[0],l=o[1],d=(0,f.useState)([]),m=p()(d,2),h=m[0],v=m[1],g=(0,f.useState)(!1),x=p()(g,2),y=x[0],w=x[1],j=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];(0,f.useEffect)((function(){var e;if("MULTIPLE"===(null==t||null===(e=t.actionTabs)||void 0===e?void 0:e.key)){var n,i=(0,pe.cloneDeep)(null==t||null===(n=t.actionTabs)||void 0===n?void 0:n.params);l(i),v(i.choices)}}),[null==t||null===(n=t.actionTabs)||void 0===n?void 0:n.key]);var k,C=function(){var e=u()(r()().mark((function e(){var n,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h.some((function(e){return null==e?void 0:e.checked}))){e.next=3;break}return A.ZP.warning("请您作答后再提交"),e.abrupt("return");case 3:y&&(i=(0,pe.cloneDeep)(null==t||null===(n=t.actionTabs)||void 0===n?void 0:n.params),v(i.choices)),w(!y);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,H.jsx)(b.Z,{centered:!0,destroyOnClose:!0,open:"MULTIPLE"===t.actionTabs.key,title:"试题体验",okText:y?"重新答题":"提交答案",cancelText:"取消",width:708,onOk:C,onCancel:function(){l({}),v([]),w(!1),i({type:"problemset/setActionTabs",payload:{}})},children:(0,H.jsxs)("div",{children:[(0,H.jsx)("div",{className:"c-light-primary mb5 font16",children:"多选题"}),(0,H.jsx)(fe.Z,{value:null==s?void 0:s.name}),null==h?void 0:h.map((function(e,n){var t=e.is_answer,i=e.checked,r=e.choice_text,a="";return y&&t&&(a=D),y&&!t&&i&&(a=Q),(0,H.jsxs)("div",{style:{pointerEvents:y?"none":"auto"},className:"".concat(F," ").concat(a),children:[(0,H.jsx)(_.Z,{style:{padding:3},onChange:function(e){return function(e,n){console.log(e.target.checked);var t=h.map((function(t,i){return c()(c()({},t),{},{checked:i===n?e.target.checked:t.checked})}));v(t)}(e,n)},checked:i}),(0,H.jsxs)("span",{children:[j[n],". "]}),(0,H.jsx)(fe.Z,{className:z,value:r}),y&&t&&(0,H.jsx)("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),y&&!t&&i&&(0,H.jsx)("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"})]},n)})),y&&(0,H.jsxs)(f.Fragment,{children:[(0,H.jsx)("div",{className:W}),(0,H.jsxs)("div",{className:"c-grey-333 mb5",children:[(0,H.jsx)("b",{children:"正确答案: "}),(k="",h.forEach((function(e,n){e.is_answer&&(k+=j[n])})),k)]}),(0,H.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,H.jsx)("b",{children:"解析: "}),(null==s?void 0:s.analysis)||"暂无解析"]})]})]})})})),ve=(0,m.connect)((function(e){return{problemset:e.problemset}}))((function(e){var n,t,i=e.problemset,a=e.dispatch,o=(0,f.useState)({}),s=p()(o,2),l=s[0],d=s[1],m=(0,f.useState)([]),h=p()(m,2),v=h[0],g=h[1],x=(0,f.useState)(!1),w=p()(x,2),_=w[0],j=w[1];(0,f.useEffect)((function(){var e;if("JUDGMENT"===(null==i||null===(e=i.actionTabs)||void 0===e?void 0:e.key)){var n,t=(0,pe.cloneDeep)(null==i||null===(n=i.actionTabs)||void 0===n?void 0:n.params);d(t),g(t.choices)}}),[null==i||null===(n=i.actionTabs)||void 0===n?void 0:n.key]);var k=function(){var e=u()(r()().mark((function e(){var n,t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v.some((function(e){return null==e?void 0:e.checked}))){e.next=3;break}return A.ZP.warning("请您作答后再提交"),e.abrupt("return");case 3:_&&(t=(0,pe.cloneDeep)(null==i||null===(n=i.actionTabs)||void 0===n?void 0:n.params),g(t.choices)),j(!_);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,H.jsx)(b.Z,{centered:!0,destroyOnClose:!0,open:"JUDGMENT"===i.actionTabs.key,title:"试题体验",okText:_?"重新答题":"提交答案",cancelText:"取消",width:708,onOk:k,onCancel:function(){d({}),g([]),j(!1),a({type:"problemset/setActionTabs",payload:{}})},children:(0,H.jsxs)("div",{children:[(0,H.jsx)("div",{className:"c-light-primary mb5 font16",children:"判断题"}),(0,H.jsx)(fe.Z,{value:null==l?void 0:l.name}),null==v?void 0:v.map((function(e,n){var t=e.is_answer,i=e.checked,r=e.choice_text,a="";return _&&t&&(a=D),_&&!t&&i&&(a=Q),(0,H.jsxs)("div",{style:{pointerEvents:_?"none":"auto"},className:"".concat(F," ").concat(a),children:[(0,H.jsx)(y.ZP,{onChange:function(e){return function(e,n){console.log(e.target.checked);var t=v.map((function(t,i){return c()(c()({},t),{},{checked:i===n&&e.target.checked})}));g(t)}(e,n)},checked:i}),(0,H.jsx)(fe.Z,{className:z,value:r}),_&&t&&(0,H.jsx)("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),_&&!t&&i&&(0,H.jsx)("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"})]},n)})),_&&(0,H.jsxs)(f.Fragment,{children:[(0,H.jsx)("div",{className:W}),(0,H.jsxs)("div",{className:"c-grey-333 mb5",children:[(0,H.jsx)("b",{children:"正确答案: "}),null===(t=v.find((function(e){return e.is_answer})))||void 0===t?void 0:t.choice_text]}),(0,H.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,H.jsx)("b",{children:"解析: "}),(null==l?void 0:l.analysis)||"暂无解析"]})]})]})})})),ge=t(64565),xe=(0,m.connect)((function(e){return{problemset:e.problemset}}))((function(e){var n,t,i=e.problemset,a=e.dispatch,o=(0,f.useState)({}),s=p()(o,2),l=s[0],d=s[1],m=(0,f.useState)([]),h=p()(m,2),v=h[0],x=h[1],y=(0,f.useState)(!1),w=p()(y,2),_=w[0],j=w[1];(0,f.useEffect)((function(){var e;if("COMPLETION"===(null==i||null===(e=i.actionTabs)||void 0===e?void 0:e.key)){var n,t,r=(0,pe.cloneDeep)(null==i||null===(n=i.actionTabs)||void 0===n?void 0:n.params);d(r),x(null==r||null===(t=r.standard_answer)||void 0===t?void 0:t.map((function(e){return c()({value:"",answer:(null==e?void 0:e.answer_text)||[]},e)})))}}),[null==i||null===(n=i.actionTabs)||void 0===n?void 0:n.key]);var k=function(){var e=u()(r()().mark((function e(){var n,t,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!v.some((function(e){return""===(null==e?void 0:e.value)}))){e.next=3;break}return A.ZP.warning("请您作答后再提交"),e.abrupt("return");case 3:_&&(a=(0,pe.cloneDeep)(null==i||null===(n=i.actionTabs)||void 0===n?void 0:n.params),x(null==a||null===(t=a.standard_answer)||void 0===t?void 0:t.map((function(e){return c()({value:"",answer:(null==e?void 0:e.answer_text)||[]},e)})))),j(!_);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,H.jsx)(b.Z,{centered:!0,destroyOnClose:!0,open:"COMPLETION"===i.actionTabs.key,title:"试题体验",okText:_?"重新答题":"提交答案",cancelText:"取消",width:708,onOk:k,onCancel:function(){d({}),x([]),j(!1),a({type:"problemset/setActionTabs",payload:{}})},children:(0,H.jsxs)("div",{children:[(0,H.jsx)("div",{className:"c-light-primary mb5 font16",children:"填空题"}),(0,H.jsx)(fe.Z,{value:null==l?void 0:l.name}),null==v?void 0:v.map((function(e,n){var t=e.value,i=e.answer,r="";return _&&null!=i&&i.includes(t)&&(r=D),!_||null!=i&&i.includes(t)||(r=Q),(0,H.jsxs)("div",{style:{pointerEvents:_?"none":"auto",marginTop:10},className:"".concat(F," ").concat(r),children:[(0,H.jsxs)("div",{style:{minWidth:80},children:["填空",n+1,"答案:"]}),1===(null==e?void 0:e.model)?(0,H.jsx)(g.Z.TextArea,{className:G,style:{width:610,marginRight:10},onChange:function(e){return function(e,n){var t=v.map((function(t,i){return c()(c()({},t),{},{value:i===n?e.target.value:t.value})}));x(t)}(e,n)},value:t}):(0,H.jsx)(ge.Z,{value:t,onChange:function(e){var t=v.map((function(t,i){return c()(c()({},t),{},{value:i===n?e:t.value})}));x(t)}}),_&&(null==i?void 0:i.includes(t))&&(0,H.jsx)("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),_&&!(null!=i&&i.includes(t))&&(0,H.jsx)("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"})]},n)})),_&&(0,H.jsxs)(f.Fragment,{children:[(0,H.jsx)("div",{className:W}),null==l||null===(t=l.standard_answer)||void 0===t?void 0:t.map((function(e,n){var t,i;return(0,H.jsxs)("div",{className:"c-grey-333 mb5",children:[(0,H.jsxs)("b",{children:["填空",n+1,"答案: "]}),1===(null==e?void 0:e.model)?(null==e||null===(t=e.answer_text)||void 0===t?void 0:t.join("、"))||"":(0,H.jsx)(ge.Z,{value:null==e||null===(i=e.answer_text)||void 0===i?void 0:i.join("、"),disabled:!0})]})})),(0,H.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,H.jsx)("b",{children:"解析: "}),(null==l?void 0:l.analysis)||"暂无解析"]})]})]})})})),be=t(24334),ye=(0,m.connect)((function(e){return{problemset:e.problemset}}))((function(e){var n,t,i,a,s,l=e.problemset,d=e.dispatch,m=(0,f.useState)({}),h=p()(m,2),v=h[0],g=h[1],x=(0,f.useState)([]),y=p()(x,2),w=y[0],_=y[1],j=(0,f.useState)(!1),k=p()(j,2),C=k[0],N=k[1];(0,f.useEffect)((function(){var e;if("BPROGRAM"===(null==l||null===(e=l.actionTabs)||void 0===e?void 0:e.key)){var n,t,i=(0,pe.cloneDeep)(null==l||null===(n=l.actionTabs)||void 0===n?void 0:n.params);g(i),_(null==i||null===(t=i.standard_answer)||void 0===t?void 0:t.map((function(e){return{value:"",answer:(null==e?void 0:e.answer_text)||[]}})))}}),[null==l||null===(n=l.actionTabs)||void 0===n?void 0:n.key]);var B=function(){var e=u()(r()().mark((function e(){var n,t,i,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!w.some((function(e){return""===(null==e?void 0:e.value)}))){e.next=3;break}return A.ZP.warning("请您作答后再提交"),e.abrupt("return");case 3:C?(i=(0,pe.cloneDeep)(null==l||null===(n=l.actionTabs)||void 0===n?void 0:n.params),_(o()(null==i||null===(t=i.standard_answer)||void 0===t?void 0:t.map((function(e){return{value:"",answer:(null==e?void 0:e.answer_text)||[],type:""}}))))):(a=null==w?void 0:w.map((function(e,n){return c()(c()({},e),{},{type:e.types})})),_(a)),N(!C);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,H.jsx)(b.Z,{centered:!0,destroyOnClose:!0,open:"BPROGRAM"===l.actionTabs.key,title:"试题体验",okText:C?"重新答题":"提交答案",cancelText:"取消",width:708,onOk:B,onCancel:function(){g({}),_([]),N(!1),d({type:"problemset/setActionTabs",payload:{}})},children:(0,H.jsxs)("div",{children:[(0,H.jsx)("div",{className:"c-light-primary mb5 font16",children:"程序填空题"}),(0,H.jsx)(fe.Z,{value:null==v||null===(t=v.program_attr)||void 0===t?void 0:t.description}),(null==v||null===(i=v.program_attr)||void 0===i?void 0:i.code)&&(0,H.jsx)(fe.Z,{showProgramFill:!0,onFillChange:function(e){var n=null==e?void 0:e.map((function(e,n){var t,i,r,a;return c()(c()({},e),{},{types:0===(null==v?void 0:v.submit_rule)?e.value===e.answer?"success":"warning":1===(null==v?void 0:v.submit_rule)?(null===(t=e.value)||void 0===t?void 0:t.trim())===(null===(i=e.answer)||void 0===i?void 0:i.trim())?"success":"warning":(null===(r=e.value)||void 0===r?void 0:r.replaceAll(" ",""))===(null===(a=e.answer)||void 0===a?void 0:a.replaceAll(" ",""))?"success":"warning"})}));_(n)},programFillValue:w,value:be.Base64.decode(null==v||null===(a=v.program_attr)||void 0===a?void 0:a.code)}),C&&(0,H.jsxs)(f.Fragment,{children:[(0,H.jsx)("div",{className:W}),null==v||null===(s=v.standard_answer)||void 0===s?void 0:s.map((function(e,n){return(0,H.jsxs)("div",{className:"c-grey-333 mb5",style:{display:"flex",alignItems:"baseline"},children:[(0,H.jsxs)("b",{children:["填空",n+1,"答案: "]}),(0,H.jsx)("pre",{children:(null==e?void 0:e.answer_text)||""})]})})),(0,H.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,H.jsx)("b",{children:"解析: "}),(null==v?void 0:v.analysis)||"暂无解析"]})]})]})})})),Ae=t(73845),we={flex_box_center:"flex_box_center___oxvGV",flex_space_between:"flex_space_between___Pu_2g",flex_box_vertical_center:"flex_box_vertical_center____edsl",flex_box_center_end:"flex_box_center_end___ugvya",flex_box_column:"flex_box_column___B_Z0P",page:"page____U6m6",wrap:"wrap___Njoy9",title:"title___PCz5o",select:"select___MAQbm",contentWrap:"contentWrap___USVj3",pngIcon:"pngIcon___Sclgo",tabsWrap:"tabsWrap___xuKJS",searchWrap:"searchWrap___Z4nZX",addQuestionBtn:"addQuestionBtn___PwVCH",search:"search___pIDJi",searchIcon:"searchIcon___I_kVC",batchWrap:"batchWrap___OzbVH",customTable:"customTable___A_Uxs",row:"row___Sm61J",contentListWrap:"contentListWrap___o6fbG",li:"li___dAjon",bottom:"bottom___kfHPh",actionLeftItem:"actionLeftItem___gA062",questionTypeName:"questionTypeName___neVDt",more:"more___oTnCf",btnAdd:"btnAdd___Qdj8O",cancelC:"cancelC___ZCe2I",addC:"addC___yWAgq",actonBtn:"actonBtn___QmXSC",batch:"batch___wvp7O",btns:"btns___Nox9G",btn:"btn___AEGwM",treeWrapper:"treeWrapper___OS1_K",treeHeader:"treeHeader___T86dH",treeContent:"treeContent___AvQsn",action:"action___TlJrk",sendModal:"sendModal___HDDrU",line:"line___vWGHS",del:"del___I2neN",divider:"divider___ao5se",headerWrapper:"headerWrapper___KS6nP",exportBtn:"exportBtn___uePYs",tips:"tips___xnRXZ",tagtips:"tagtips___bGRXj",taglinkBtn:"taglinkBtn___yRUP3",publicQuest:"publicQuest___kmfJq",publicQuestContent:"publicQuestContent___H9xSO",public_tips:"public_tips___O2lWb",concat:"concat___oVAEZ",selectitems:"selectitems___o767V"},_e=t(43428),je=t(43604),ke="drawerWrap___pL0ai",Ce="title___D60AS",Ne="contentWrap___VyVzG",Be="totalInfo___wXopO",Ee="clear___Sbav5",Se="problemset___jGIix",Te="delete___zwK_M",Pe="deleteIcon___BYp0Q",Ie="createBtnWrapper___Qnnet",Ze=[],Le=function(e){Ze.forEach((function(n){e.target===n.element||Me.isParent(e.target,n.element)||n.callbacks.forEach((function(e){return e()}))}))};window.document.body?window.document.body.addEventListener("click",Le):window.addEventListener("DOMContentLoaded",(function(){window.document.body.addEventListener("click",Le)}));var Me={isParent:function(e,n){for(var t=e;t&&t.tagName&&"body"!==t.tagName.toLowerCase();){if(t===n)return!0;t=t.parentNode}return!1},init:function(e,n){var t=Ze.filter((function(n){return n.element===e}));return t.length>0?t[0].callbacks.push(n):Ze.push({element:e,callbacks:[n]}),{clear:function(){Ze=Ze.filter((function(n){return n.element!==e}))}}}},Re=Me,Oe=t(44745),De=[{stateName:"single_questions_count",type:"SINGLE",typeName:"单选题"},{stateName:"multiple_questions_count",type:"MULTIPLE",typeName:"多选题"},{stateName:"judgement_questions_count",type:"JUDGMENT",typeName:"判断题"},{stateName:"completion_questions_count",type:"COMPLETION",typeName:"填空题"},{stateName:"subjective_questions_count",type:"SUBJECTIVE",typeName:"简答题"},{stateName:"program_questions_count",type:"PROGRAM",typeName:"编程题"},{stateName:"practical_questions_count",type:"PRACTICAL",typeName:"实训题"},{stateName:"combination_questions_count",type:"COMBINATION",typeName:"组合题"},{stateName:"bprogram_questions_count",type:"BPROGRAM",typeName:"程序填空题"}],Ge=function(e){var n=e.visible,t=e.basketData,i=e.basketTotal,r=e.onClose,a=void 0===r?function(){}:r,o=e.onDelete,s=void 0===o?function(){}:o,c=e.onClear,l=e.onSubmit,u=(0,f.useRef)(),d=(0,f.useRef)();(0,f.useEffect)((function(){if(d.current)return i>=0&&!u.current&&(u.current=Re.init(d.current,(function(){a()}))),function(){u.current&&u.current.clear()}}),[d.current]);var p=window.screen.width<=1440;return(0,H.jsx)(_e.Z,{rootClassName:ke,placement:"right",closable:!1,mask:!1,open:n,forceRender:!0,width:p?130:160,onClose:a,children:i>0?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("div",{className:Ce,children:"试题篮"}),(0,H.jsxs)("div",{ref:d,className:Ne,children:[(0,H.jsxs)(T.Z,{wrap:!1,className:Be,align:"middle",children:[(0,H.jsx)(je.Z,{span:14,children:"题目总数"}),(0,H.jsx)(je.Z,{span:4,children:i}),(0,H.jsx)(je.Z,{span:6,className:Ee,onClick:c,children:"清空"})]}),De.map((function(e){return t[e.stateName]>0&&(0,H.jsxs)(T.Z,{align:"middle",wrap:!1,className:Se,children:[(0,H.jsx)(je.Z,{span:14,children:e.typeName}),(0,H.jsx)(je.Z,{span:4,children:t[e.stateName]}),(0,H.jsx)(je.Z,{span:6,className:Te,children:(0,H.jsx)("i",{onClick:function(){return s(e.type)},className:"iconfont icon-piliangshanchu3 ".concat(Pe)})})]},e.type)})),(0,H.jsx)(T.Z,{justify:"center",className:Ie,children:(0,H.jsx)(Oe.Z,{block:!0,type:"primary",onClick:l,children:"创建试卷"})})]})]}):(0,H.jsxs)("div",{ref:d,children:[(0,H.jsx)("div",{className:Ce,children:"试题篮"}),(0,H.jsx)(Z.Z,{customText:"请选择试题加入试题篮后进行组卷",styles:{width:120},imgStyles:{width:120}})]})})},Qe=["problemset","globalSetting","loading","dispatch","onReloadData","onReloadBasketData"],Fe={SINGLE:"单选题",MULTIPLE:"多选题",JUDGMENT:"判断题",COMPLETION:"填空题",SUBJECTIVE:"简答题",PROGRAM:"编程题",PRACTICAL:"实训题",COMBINATION:"组合题",BPROGRAM:"程序填空题"},ze=(0,m.connect)((function(e){var n=e.problemset,t=e.loading;return{problemset:n,globalSetting:e.globalSetting,loading:t.effects}}))((function(e){var n,t=e.problemset,i=(e.globalSetting,e.loading),a=e.dispatch,o=e.onReloadData,s=void 0===o?function(){}:o,c=e.onReloadBasketData,l=void 0===c?function(){}:c,d=(M()(e,Qe),function(){var e=u()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"problemset/basketDelete",payload:t.actionTabs.params});case 2:n=e.sent,a({type:"problemset/setActionTabs",payload:{}}),0===n.status&&(s(),l());case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}());return(0,H.jsx)(b.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:"Problemset-BasketDelete"===t.actionTabs.key,title:"提示",okText:"确定",cancelText:"取消",confirmLoading:i["problemset/handleDelete"],width:"442px",onOk:d,onCancel:function(){a({type:"problemset/setActionTabs",payload:{}})},children:(0,H.jsxs)("div",{className:R,children:["是否删除试题篮中的",Fe[null===(n=t.actionTabs)||void 0===n||null===(n=n.params)||void 0===n?void 0:n.type]]})})})),We="hide___P6mxu",He="open___hazgP",Ve="basket___y6VHF",qe="count___YEH5s",Ye="iconWrap___l__Lj",Ue="icon___yiXgh",Ke="name___tBtew",Xe=function(e){var n=e.count,t=e.visibleBasket,i=e.onToggleVisible,r=void 0===i?function(){}:i;return(0,H.jsx)(k.Z,{title:"试题篮",placement:"left",children:(0,H.jsxs)("div",{className:"".concat(t?He:We," ").concat(Ve),onClick:r,children:[n>0&&(0,H.jsx)("div",{className:qe,children:n}),(0,H.jsx)("span",{className:Ye,children:(0,H.jsx)("i",{className:"".concat(Ue," iconfont icon-shitilan")})}),(0,H.jsx)("div",{className:Ke,children:"试题篮"})]})})},Je=t(22001),$e=t(23853),en=t(41282),nn=t(64330),tn=t(28103),rn="drawer___Bi9wT",an="menu___t0_fV",on="actived___zWm74",sn="actived2___RRfRj",cn="subTag___EczBy",ln="directionName___H9hFf",un="menuDirection___JkwbJ",dn="listItem___kNMPl",pn="info___QKQMx",fn="title___eGYd4",mn="titleLeft___ltIGt",hn="description___zs7Ow",vn="menuCourse___PygX2",gn="authorname___D4gcN",xn="tooltip-content___RseJD",bn=t(53093),yn=t(3570),An=t(83839),wn=t(90694),_n=(g.Z.Search,{id:"type",name:"来源",children:[{name:"全部",id:"all",type:"type"},{name:"我的",id:"mine",type:"type"}]}),jn={id:"diff",name:"难度",children:[{name:"全部",id:"",type:"diff"},{name:"初级",id:1,type:"diff"},{name:"中级",id:2,type:"diff"},{name:"中高级",id:3,type:"diff"},{name:"高级",id:4,type:"diff"}]},kn=(0,m.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var n,t,i,a,s=e.classroomList,l=(e.loading,e.dispatch),d=e.cb,h=e.shixunIds,v=void 0===h?[]:h,g=(0,m.useParams)(),b=((0,m.useLocation)(),s.actionTabs,x.Z.useForm()),y=(p()(b,1)[0],s.shixunLists),w=(0,f.useState)([]),j=p()(w,2),C=j[0],N=j[1],B=(0,f.useState)([]),S=p()(B,2),I=S[0],L=S[1],M=(0,f.useState)([]),R=p()(M,2),O=R[0],D=R[1],G=(0,f.useState)({page:1,type:"all",diff:0,status:"published",order:"desc",limit:10,sort:"myshixuns_count",tag_level:null,sub_discipline_id:null,discipline_id:null,group_id:null}),Q=p()(G,2),F=Q[0],z=Q[1];(0,f.useEffect)((function(){"选用实践项目"===s.actionTabs.key&&l({type:"classroomList/getShixunLists",payload:c()({},F)})}),[s.actionTabs.key]),(0,f.useEffect)((function(){W()}),[g]);var W=function(){var e=u()(r()().mark((function e(){var n,t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,bn.I_)({});case 2:return n=e.sent,e.next=5,(0,wn.ZP)("/api/users/user_setting_groups.json",{method:"get",params:{type:"Shixun"}});case 5:t=e.sent,D([{id:null,name:"全部"},{id:-1,name:"未加入目录"}].concat(o()((null==t?void 0:t.groups)||[]))),L((null==n?void 0:n.disciplines)||[]);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),V=function(e,n,t){F.tag_level=e,F.sub_discipline_id=n,F.discipline_id=t,F.page=1,z(c()({},F)),l({type:"classroomList/getShixunLists",payload:c()({},F)})},q=function(){l({type:"classroomList/setActionTabs",payload:{}}),z({page:1,type:"all",diff:0,status:"published",order:"desc",limit:10,sort:"myshixuns_count",tag_level:null,sub_discipline_id:null,discipline_id:null,group_id:null})};return"选用实践项目"!==s.actionTabs.key?null:(0,H.jsxs)(_e.Z,{placement:"bottom",height:"100%",closable:!0,onClose:q,open:"选用实践项目"===s.actionTabs.key,rootClassName:rn,footer:(0,H.jsxs)("div",{className:"tc",children:[(0,H.jsx)(E.ZP,{size:"middle",onClick:function(){q(),N([])},style:{marginRight:8},children:"取消"}),(0,H.jsx)(E.ZP,{size:"middle",onClick:u()(r()().mark((function e(){var n,t,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r()().mark((function e(){var n,t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=C[i],!v.includes(n)){e.next=4;break}return A.ZP.info("请勿重复选择:".concat(null==y||null===(t=y.shixun_list)||void 0===t||null===(t=t.find((function(e){return e.id===n})))||void 0===t?void 0:t.title)),e.abrupt("return",{v:void 0});case 4:case"end":return e.stop()}}),e)})),i=0;case 2:if(!(i<(null==C?void 0:C.length))){e.next=10;break}return e.delegateYield(n(),"t0",4);case 4:if(!(t=e.t0)){e.next=7;break}return e.abrupt("return",t.v);case 7:i++,e.next=2;break;case 10:q(),d(C),N([]);case 13:case"end":return e.stop()}}),e)}))),type:"primary",children:"确定"})]}),children:[(0,H.jsx)("section",{className:"tc",children:(0,H.jsx)(An.Z,{onChange:function(e){z(c()(c()(c()({},F),e),{},{page:1})),l({type:"classroomList/getShixunLists",payload:c()(c()(c()({},F),e),{},{page:1})})}})}),(0,H.jsxs)("section",{className:"edu-container",children:[(0,H.jsxs)("ul",{className:an,children:[(0,H.jsx)("li",{children:_n.name}),null==_n||null===(n=_n.children)||void 0===n?void 0:n.map((function(e,n){return(0,H.jsx)("li",{className:F[_n.id]==e.id?on:"",onClick:function(){F[_n.id]=e.id,F.page=1,z(c()({},F)),l({type:"classroomList/getShixunLists",payload:c()({},F)})},children:(0,H.jsx)("strong",{children:e.name})},e.id)}))]}),(0,H.jsxs)("ul",{className:un,children:[(0,H.jsx)("li",{className:ln,children:"方向"}),(0,H.jsx)("li",{className:F.discipline_id?"":on,onClick:function(){V(null,null,null)},children:(0,H.jsx)("strong",{children:"全部"})}),null==I?void 0:I.map((function(e,n){return(0,H.jsxs)("li",{className:F.discipline_id==e.id?on:"",children:[(0,H.jsx)("strong",{onClick:function(){V(1,null,e.id)},children:e.name}),(0,H.jsx)("div",{children:e.sub_disciplines.map((function(n,t){return(0,H.jsxs)("div",{className:"mt5",children:[(0,H.jsx)("div",{className:F.sub_discipline_id==n.id?"".concat(sn," ").concat(cn):cn,onClick:function(){V(2,n.id,e.id)},children:n.name}),(0,H.jsx)("ul",{className:"mt5",children:n.tags&&n.tags.map((function(n,t){return(0,H.jsx)("li",{className:F.sub_discipline_id==n.id&&3===F.tag_level?sn:"",onClick:function(){V(3,n.id,e.id)},children:n.name},t)}))})]},t)}))})]},n)}))]}),"mine"===F.type&&(0,H.jsxs)("ul",{className:an,children:[(0,H.jsx)("li",{children:"目录"}),null==O?void 0:O.map((function(e,n){return(0,H.jsx)("li",{className:F.group_id==e.id?on:"",onClick:function(){F.group_id=e.id,F.page=1,z(c()({},F)),l({type:"classroomList/getShixunLists",payload:c()({},F)})},children:(0,H.jsx)("strong",{children:e.name})},e.name)}))]}),(0,H.jsxs)("ul",{className:an,children:[(0,H.jsx)("li",{children:jn.name}),null==jn||null===(t=jn.children)||void 0===t?void 0:t.map((function(e,n){return(0,H.jsx)("li",{className:F[jn.id]==e.id?on:"",onClick:function(){F[jn.id]=e.id,F.page=1,z(c()({},F)),l({type:"classroomList/getShixunLists",payload:c()({},F)})},children:(0,H.jsx)("strong",{children:e.name})},e.name)}))]}),(0,H.jsxs)(T.Z,{children:[(0,H.jsx)(je.Z,{flex:"1",children:(0,H.jsx)("div",{className:vn,style:{margin:"0px 15px"},children:(0,H.jsxs)("ul",{children:[(0,H.jsxs)("li",{children:["已选",(0,H.jsx)("span",{className:"c-blue",children:C.length}),"个"]}),(0,H.jsxs)("li",{children:["共",(0,H.jsx)("span",{className:"c-blue",children:y.shixuns_count}),"个"]}),(0,H.jsxs)("li",{className:"current",onClick:function(){var e=c()(c()({},F),{},{order:"asc"===F.order?"desc":"asc"});z(e),l({type:"classroomList/getShixunLists",payload:e})},children:["学习人数",(0,H.jsx)("p",{className:"edu-sorter current ".concat(F.order),children:"asc"===F.order?(0,H.jsx)("span",{className:"iconfont icon-sanjiaoxing-up"}):(0,H.jsx)("span",{className:"iconfont icon-sanjiaoxing-down"})})]})]})})}),(0,H.jsx)(je.Z,{className:"c-grey-999",children:"mine"===(null==F?void 0:F.type)?"已静默/公开发布的实践项目进入本列表备选":"仅已公开发布的实践项目进入本列表备选"})]}),null==y||null===(i=y.shixun_list)||void 0===i?void 0:i.map((function(e,n){return(0,H.jsxs)("div",{className:dn,children:[(0,H.jsx)(_.Z,{checked:C.includes(e.id),value:e.id,disabled:null==e?void 0:e.need_authorize,onChange:function(n){C.indexOf(e.id);C.indexOf(e.id)>-1?N(C.filter((function(n){return n!==e.id}))):N(C.concat(e.id))}}),(0,H.jsxs)("div",{className:pn,children:[(0,H.jsx)("div",{className:fn,children:(0,H.jsxs)("div",{className:mn,children:[(0,H.jsx)("a",{className:"c-black",href:"/shixuns/".concat(null==e?void 0:e.identifier,"/challenges"),target:"_blank",children:(0,H.jsx)("strong",{className:"font16",dangerouslySetInnerHTML:{__html:e.title}})}),(null==e?void 0:e.need_authorize)&&(0,H.jsx)("span",{onClick:function(){(0,yn.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10",children:"需授权"}),(0,nn.Ny)()&&1===(null==e?void 0:e.mark_status)&&(0,H.jsx)(k.Z,{title:null==e?void 0:e.mark_content,children:(0,H.jsx)("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10",children:"正常"})}),(0,nn.Ny)()&&2===(null==e?void 0:e.mark_status)&&(0,H.jsx)(k.Z,{title:null==e?void 0:e.mark_content,children:(0,H.jsx)("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10",children:"需完善"})}),(0,nn.Ny)()&&3===(null==e?void 0:e.mark_status)&&(0,H.jsx)(k.Z,{title:null==e?void 0:e.mark_content,children:(0,H.jsx)("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10",children:"无法使用"})})]})}),(0,H.jsx)("div",{className:"flex-wrp mt10 font14 c-light-black",children:(0,H.jsx)("span",{className:hn,dangerouslySetInnerHTML:{__html:e.description}})}),(0,H.jsx)("div",{className:" mt15",children:e.challenge_names.map((function(e,n){return(0,H.jsxs)("span",{className:"mr30 font12",children:["第",n+1,"关 ",e," "]},n)}))}),(0,H.jsx)(tn.Z,{dashed:!0}),(0,H.jsxs)("div",{className:"c-light-black mt20 font12",style:{display:"flex",justifyContent:"space-between"},children:[(0,H.jsxs)("div",{children:[(0,H.jsx)(k.Z,{overlayClassName:xn,title:(0,H.jsx)("div",{children:(0,H.jsx)("span",{dangerouslySetInnerHTML:{__html:null==e?void 0:e.member_user_names}})}),children:(0,H.jsx)("span",{className:gn,dangerouslySetInnerHTML:{__html:null==e?void 0:e.member_user_names}})}),e.author_school_name&&(0,H.jsx)(f.Fragment,{children:(0,H.jsx)("span",{dangerouslySetInnerHTML:{__html:e.author_school_name}})})]}),(0,H.jsxs)("div",{children:[(0,H.jsxs)("span",{className:"mr30",children:["难度系数  ",e.level]}),(0,H.jsxs)("span",{children:["学习人数  ",e.study_count]})]})]})]})]},n)})),0===(null==y||null===(a=y.shixun_list)||void 0===a?void 0:a.length)&&(0,H.jsx)(Z.Z,{}),(0,H.jsx)("p",{})]}),(0,H.jsx)("div",{className:"tc mt20",children:(0,H.jsx)(P.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:10,showSizeChanger:!1,current:F.page||1,showQuickJumper:!0,total:null==y?void 0:y.shixuns_count,onChange:function(e){var n=c()(c()({},F),{},{page:e});z(n),l({type:"classroomList/getShixunLists",payload:n})}})})]},"bottom")})),Cn=t(93478),Nn="operating___srUHx",Bn="tip___F8nWU",En=t(77162),Sn=function(e,n){var t,i=e.data,r=e.height,a=void 0===r?400:r,o=x.Z.useForm(),s=p()(o,1)[0],l=(0,f.useState)({}),u=p()(l,2),d=u[0],m=u[1];return(0,f.useEffect)((function(){i&&(m(i),s.setFieldsValue(c()({},i)))}),[i]),(0,f.useImperativeHandle)(n,(function(){return{form:s}})),(0,H.jsx)("div",{className:Nn,style:{marginBottom:"0"},children:(0,H.jsxs)(x.Z,{form:s,scrollToFirstError:!0,onValuesChange:function(){m(c()({},s.getFieldsValue()))},children:[(0,H.jsx)(x.Z.Item,{name:"name",label:"标题:",rules:[{required:!0,message:"请输入标题"},{max:30,message:"请输入标题最大限制30个字符"},{whitespace:!0,message:"请勿输入空格"}],children:(0,H.jsx)(g.Z,{placeholder:"请输入标题最大限制30个字符",suffix:"".concat((null===(t=d.name)||void 0===t?void 0:t.length)||0,"/30")})}),(0,H.jsx)(x.Z.Item,{name:"languages",label:"编程语言",rules:[{required:!0,message:"请选择编程语言"}],children:(0,H.jsxs)(_.Z.Group,{children:[(0,H.jsx)(_.Z,{value:"c",children:"C"}),(0,H.jsx)(_.Z,{value:"c++",children:"C++"}),(0,H.jsx)(_.Z,{value:"java",children:"Java"}),(0,H.jsx)(_.Z,{value:"python",children:"Python"})]})}),(0,H.jsx)("div",{className:Bn,children:"选择支持以下编程试题进行编译的语言"}),(0,H.jsx)("div",{style:{margin:"20px 0 12px 0px"},children:"说明"}),(0,H.jsx)(x.Z.Item,{name:"description",children:(0,H.jsx)(En.Z,{height:a,defaultValue:d.description||"",watch:!0})})]})})},Tn=(0,f.forwardRef)(Sn),Pn=t(41135),In=t(5623),Zn=t(88289),Ln=t(29154),Mn=v.Z.TabPane,Rn=g.Z.Search,On=g.Z.TextArea,Dn=function(e){return e.Mine="0",e.Public="1",e.Collection="2",e.TeachGroupShare="3",e}({}),Gn=(0,m.connect)((function(e){var n=e.classroomList,t=e.problemset,i=e.user,r=e.loading,a=e.globalSetting,o=e.shixunHomeworks;return{classroomList:n,problemset:t,user:i,globalSetting:a,loading:r.effects,shixunHomeworks:o}}))((function(e){var n,t,i,a,s,l,d=e.classroomList,g=e.problemset,L=e.user,M=(e.globalSetting,e.loading),R=e.dispatch,O=(e.match,e.shixunHomeworks),D=(0,m.useLocation)(),G=(0,m.useParams)(),Q=(0,m.useSearchParams)(),F=p()(Q,1)[0],z=(0,f.useRef)(),W=(0,f.useState)({discipline_id:null,sub_discipline_id:null,tag_discipline_id:null,group_id:null,teach_group_id:null,clazz:null,type:"0",item_type:null,difficulty:null,keyword:null,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",id:F.get("id")||null,exam_id:G.id||null,exercise_id:G.categoryId||null}),V=p()(W,2),Y=V[0],K=V[1],X=(0,f.useState)(0),J=p()(X,2),ee=J[0],ne=J[1],te=(0,f.useState)([]),ie=p()(te,2),re=ie[0],ae=ie[1],ce=(0,f.useState)(Dn.Mine),ue=p()(ce,2),fe=ue[0],ge=ue[1],be=(0,f.useState)(0),_e=p()(be,2),je=_e[0],ke=_e[1],Ce=(0,f.useState)(-1),Ne=p()(Ce,2),Be=Ne[0],Ee=Ne[1],Se=(0,f.useState)([]),Te=p()(Se,2),Pe=Te[0],Ie=Te[1],Ze=(0,f.useState)(!1),Le=p()(Ze,2),Me=(Le[0],Le[1]),Re=(0,f.useState)([]),Oe=p()(Re,2),De=Oe[0],Qe=Oe[1],Fe=(0,f.useState)(0),We=p()(Fe,2),He=We[0],Ve=We[1],qe=(0,f.useState)(!1),Ye=p()(qe,2),Ue=Ye[0],Ke=Ye[1],tn=(0,f.useState)(!1),rn=p()(tn,2),an=rn[0],on=rn[1],sn=(0,f.useState)(),cn=p()(sn,2),ln=cn[0],un=cn[1],dn=(0,f.useState)(!1),pn=p()(dn,2),fn=pn[0],mn=pn[1],hn=(0,f.useRef)(!1),vn=((0,f.useRef)(""),(0,f.useRef)()),gn=(0,f.useRef)(),xn=(0,f.useRef)(),bn=(0,f.useState)(),yn=p()(bn,2),An=yn[0],_n=yn[1],jn=(0,f.useState)([]),Nn=p()(jn,2),Bn=Nn[0],En=Nn[1],Sn=(0,f.useRef)(!1),Gn="/problemset"===D.pathname,Qn=null===(n=D.pathname)||void 0===n?void 0:n.includes("program_homework"),Fn=Qn&&G.categoryId&&null!==(t=D.pathname)&&void 0!==t&&t.includes("edit")?G.categoryId:"",zn=Fn?"编辑编程作业":"新建编程作业",Wn=(0,f.useState)({}),Hn=p()(Wn,2),Vn=Hn[0],qn=Hn[1],Yn=(0,f.useState)(!1),Un=p()(Yn,2),Kn=Un[0],Xn=Un[1],Jn=L.userInfo||{},$n=Jn.admin,et=Jn.business,nt=Jn.is_shixun_marker,tt=Jn.is_teacher,it=Jn.user_identity,rt=$n||et||nt||tt||"学生"!==it,at=(0,f.useState)("按更新时间降序"),ot=p()(at,2),st=ot[0],ct=ot[1],lt=O.commonHomeWorkAddDefaultData,ut=(0,f.useState)([]),dt=p()(ut,2),pt=dt[0],ft=dt[1],mt=(0,f.useRef)(null),ht=(0,f.useState)(!1),vt=p()(ht,2),gt=vt[0],xt=vt[1],bt=(0,f.useState)([]),yt=p()(bt,2),At=yt[0],wt=yt[1],_t=(0,f.useState)(""),jt=p()(_t,2),kt=jt[0],Ct=jt[1],Nt=(0,f.useState)(!1),Bt=p()(Nt,2),Et=Bt[0],St=Bt[1],Tt=(0,f.useState)(!1),Pt=p()(Tt,2),It=Pt[0],Zt=Pt[1],Lt=(0,f.useState)([]),Mt=p()(Lt,2),Rt=Mt[0],Ot=Mt[1],Dt=x.Z.useForm(),Gt=p()(Dt,1)[0],Qt=(0,f.useState)(!1),Ft=p()(Qt,2),zt=Ft[0],Wt=Ft[1],Ht=(0,f.useState)(null),Vt=p()(Ht,2),qt=Vt[0],Yt=Vt[1],Ut=(0,f.useState)(0),Kt=p()(Ut,2),Xt=Kt[0],Jt=Kt[1],$t=(0,f.useRef)(null),ei=[{name:"按试题名称升序",type:"name_pinyin",direction:"asc"},{name:"按试题名称降序",type:"name_pinyin",direction:"desc"},{name:"按更新时间升序",type:"updated_at",direction:"asc"},{name:"按更新时间降序",type:"updated_at",direction:"desc"},{name:"按使用次数升序",type:"quotes",direction:"asc"},{name:"按使用次数降序",type:"quotes",direction:"desc"}];(0,f.useEffect)((function(){return document.body.setAttribute("data-custom","initial"),function(){document.body.removeAttribute("data-custom")}}),[]);var ni=function(){var e=u()(r()().mark((function e(){var n,t,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,oe.$c)({id:Fn});case 2:null!=(n=e.sent)&&n.name&&(i={description:n.description,languages:n.languages,name:n.name},$t.current.form.setFieldsValue(i),qn(c()({},i)),wt(o()(n.data)),En(null===(t=n.data)||void 0===t?void 0:t.map((function(e){return e.id}))));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){Fn&&ni()}),[Fn]),(0,f.useEffect)((function(){var e=(null==F?void 0:F.get("group_id"))||0;R({type:"problemset/getDisciplines",payload:{source:"question",group_id:e,group_type:fe}}),Y.group_id=Number(e),K(Y),ai(Y).then((function(e){xt(!1)})),ri(Y),oi(),ii()}),[]),(0,f.useEffect)((function(){return R({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),R({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1}),function(){R({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),R({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}}),[]),(0,f.useEffect)((function(){return R({type:"globalSetting/headerFixedToggle",payload:!0}),function(){R({type:"globalSetting/headerFixedToggle",payload:!1})}}),[]),(0,f.useEffect)((function(){return R({type:"globalSetting/headerFooterToggle",payload:Gn}),function(){R({type:"globalSetting/headerFooterToggle",payload:!0})}}),[]),(0,f.useEffect)((function(){(0,en.Dk)(Qn?zn:"试题库")}),[Qn,zn]);var ti=function(e){var n=0;return null==ln||ln.forEach((function(t){t.type===e&&(n=t.count)})),n},ii=function(){var e=u()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:R({type:"problemset/getTeachGroupData"});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){var e=g.basketData||{},n=e.completion_questions_count,t=void 0===n?0:n,i=e.judgement_questions_count,r=void 0===i?0:i,a=e.multiple_questions_count,o=void 0===a?0:a,s=e.practical_questions_count,c=void 0===s?0:s,l=e.program_questions_count,u=void 0===l?0:l,d=e.single_questions_count,p=void 0===d?0:d,f=e.subjective_questions_count,m=void 0===f?0:f,h=e.combination_questions_count,v=void 0===h?0:h,x=e.bprogram_questions_count;Ve(t+r+o+c+u+p+m+v+(void 0===x?0:x))}),[g.basketData]);var ri=function(){var e=u()(r()().mark((function e(n,t){var i,a,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"3"===n.type?n.clazz="ItemBanksGroup":delete n.clazz,i=c()({},n),xt(!0),e.next=5,R({type:"problemset/getGroup",payload:c()({},i)});case 5:return null!=(a=e.sent)&&a.data&&ft((null==a?void 0:a.data)||[]),a&&(Qe((null==a?void 0:a.navigation)||[]),(null==a||null===(o=a.navigation)||void 0===o?void 0:o.length)>1?Fi(!1):Fi(!0)),Qn||t||En([]),xt(!1),e.abrupt("return",a);case 11:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),ai=function(){var e=u()(r()().mark((function e(n,t){var i,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(i=c()({},n)).item_type=Qn?"PROGRAM":n.item_type,i.keyword=n.keyword||"",xt(!0),e.next=6,R({type:"problemset/getItemBanks",payload:c()({},i)});case 6:if(!(a=e.sent)||403===a.status||401===a.status||500===a.status){e.next=18;break}return ne(a.items_count||0),un(a.item_types),ae(a.items||[]),Ie(a.tag_disciplines||[]),_n(a.used_shixun_ids||[]),si(a.items||[]),Qn||t||En([]),ke((null==a?void 0:a.added_num)||0),xt(!1),e.abrupt("return",a);case 18:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),oi=function(){R({type:"problemset/getBasketList",payload:{}})},si=function(e){var n=e.every((function(e){var n;return 0===(null===(n=e.program_attr)||void 0===n?void 0:n.status)}));hn.current=n},ci=(0,f.useState)(!1),li=p()(ci,2),ui=li[0],di=li[1],pi=function(e,n){Y.page=e,Y.per_page=n,K(Y),ai(Y,!0),ri(Y,!0)},fi=function(e){Y.discipline_id="",Y.sub_discipline_id="",Y.tag_discipline_id="",Y.item_type=null,Y.difficulty=null,Y.page=1,Y.keyword=e,delete Y.id,console.log(Y,"paramsparamsparamsparamsparams"),e?(on(!0),(0,Pn.tk)({name:e,copywriting:e,position:Qn?"Practice":"ItemBank"})):on(!1),Ee(-1),K(Y),ai(Y)},mi=function(){Y.per_page=20,K(Y),ai(Y),mn(!1)},hi=function(e){var n=e.length===re.length&&Y.page>1?Y.page-1:Y.page;Y.page=n,Y.per_page=20,oi(),K(Y),ai(Y),ri(Y)},vi=function(){R({type:"problemset/setActionTabs",payload:{key:"Problemset-PublicReview"}})},gi=function(){var e=u()(r()().mark((function e(n,t){var i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=6;break}return e.next=3,(0,oe.lS)({id:n});case 3:e.t0=e.sent,e.next=9;break;case 6:return e.next=8,(0,oe.s)({id:n});case 8:e.t0=e.sent;case 9:0===(null==(i=e.t0)?void 0:i.status)&&mi();case 11:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),xi=function(){var e=u()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:rr(n);case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),bi=function(){var e=u()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:$i([n]);case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),yi=function(e){gn.current="",vn.current="",b.Z.confirm({centered:!0,width:530,icon:null,okText:"确定",cancelText:"取消",title:"试题纠错",content:(0,H.jsxs)("div",{className:"font14",children:[(0,H.jsx)("div",{children:"错误类型:"}),(0,H.jsxs)(y.ZP.Group,{className:"mt10",onChange:function(e){return vn.current=e.target.value},children:[(0,H.jsx)(y.ZP,{value:"题干",children:"题干"}),(0,H.jsx)(y.ZP,{value:"答案",children:"答案"}),(0,H.jsx)(y.ZP,{value:"解析",children:"解析"}),(0,H.jsx)(y.ZP,{value:"属性",children:"属性"}),(0,H.jsx)(y.ZP,{value:"其它",children:"其它"})]}),(0,H.jsx)("div",{className:"mt10",children:"错误描述:"}),(0,H.jsx)(On,{className:"mt10",rows:4,defaultValue:gn.current,onChange:function(e){return gn.current=e.target.value}})]}),onOk:function(){return new Promise(function(){var n=u()(r()().mark((function n(t,i){return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(vn.current&&gn.current){n.next=3;break}return A.ZP.info("请填写错误类型和错误描述!"),n.abrupt("return",i());case 3:return n.next=5,(0,oe.L5)({id:e,clazz:vn.current,description:gn.current});case 5:0===n.sent.status&&A.ZP.info("添加成功!"),t();case 8:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())}})},Ai=(0,f.useRef)(),wi=(0,f.useState)([]),_i=p()(wi,2),ji=_i[0],ki=_i[1],Ci=(0,f.useState)(!1),Ni=p()(Ci,2),Bi=Ni[0],Ei=Ni[1],Si=(0,f.useState)({}),Ti=p()(Si,2),Pi=(Ti[0],Ti[1],(0,f.useRef)([0])),Ii=function(){var e=u()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,wn.ZP)("/api/tag_disciplines.json",{method:"get",params:{sub_discipline_id:null==n?void 0:n.sub_discipline_id}});case 2:t=e.sent,ki(null==t?void 0:t.tag_disciplines);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Zi=function(){var e=u()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Yt(n),ir(n),Ei(!0);case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Li=function(e){R({type:"problemset/setActionTabs",payload:{key:"Problemset-SetPrivate",params:{id:e}}})},Mi=function(e){R({type:"problemset/setActionTabs",payload:{key:"Problemset-Delete",params:{id:e}}})},Ri=function(){var e=u()(r()().mark((function e(n){var t,i,a,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("PROGRAM"!==(t=n.item_type)){e.next=12;break}return i=n.program_attr.identifier,e.next=5,R({type:"problemset/startExperience",payload:{id:i}});case 5:if(0!==(a=e.sent).status){e.next=10;break}return o=a.identifier,(0,en.xg)("/myproblems/".concat(o)),e.abrupt("return");case 10:return A.ZP.warning(a.message),e.abrupt("return");case 12:R({type:"problemset/setActionTabs",payload:{key:t,params:n}});case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Oi=function(){var e=u()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Y.exam_id){e.next=6;break}return e.next=3,(0,oe.fY)({item_id:n,id:Y.exam_id});case 3:return 0===e.sent.status&&mi(),e.abrupt("return");case 6:if(null==Y||!Y.exercise_id){e.next=12;break}return e.next=9,(0,wn.ZP)("/api/exercise_questions/delete_by_item_bank.json ",{method:"post",body:{exercise_id:null==Y?void 0:Y.exercise_id,item_bank_ids:[n]}});case 9:return 0===e.sent.status&&mi(),e.abrupt("return");case 12:return e.next=14,R({type:"problemset/cancel",payload:{id:n,item_bank:1}});case 14:0===e.sent.status&&(mi(),oi());case 16:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Di=(0,f.useState)(!1),Gi=p()(Di,2),Qi=Gi[0],Fi=Gi[1],zi=function(){var e=u()(r()().mark((function e(n){var t,i,a,s=arguments;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s.length>1&&void 0!==s[1]&&s[1],t=s.length>2&&void 0!==s[2]&&s[2],R({type:"problemset/getDisciplines",payload:{source:"question",group_id:Math.abs(n),group_type:"3"===fe?Dn.TeachGroupShare:Dn.Mine}}),Y.discipline_id="",Y.sub_discipline_id="",Y.tag_discipline_id="",Y.page=1,Y.per_page=20,Y.group_id=Math.abs(n),Ee(-1),K(Y),t?((i=JSON.parse(JSON.stringify(De))).splice(i.length-2,2),Y.parents=i):Y.parents=[].concat(o()(De||[{id:0,name:"根目录"}]),o()((null===(a=(0,$e.b)(z.current,n))||void 0===a?void 0:a.map((function(e){return{id:e.id,name:e.name}})))||[])),ri(c()({},Y)).then((function(e){var t;Qe(null==e?void 0:e.navigation),(null==e||null===(t=e.navigation)||void 0===t?void 0:t.length)>1&&n?Fi(!0):Fi(!1)})),ai(Y);case 14:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Wi=function(){var e=u()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Y.exam_id){e.next=6;break}return e.next=3,(0,oe.zh)({exam_id:Y.exam_id,item_bank_ids:[n]});case 3:return 0===e.sent.status&&mi(),e.abrupt("return");case 6:if(null==Y||!Y.exercise_id){e.next=12;break}return e.next=9,(0,wn.ZP)("/api/exercises/".concat(null==Y?void 0:Y.exercise_id,"/select_questions.json"),{method:"post",body:{item_bank_ids:[n]}});case 9:return 0===e.sent.status&&mi(),e.abrupt("return");case 12:if(200!==He){e.next=15;break}return A.ZP.info("已选200个试题不能在选用更多试题"),e.abrupt("return");case 15:return e.next=17,R({type:"problemset/select",payload:{item_bank_ids:[n]}});case 17:0===e.sent.status&&(mi(),oi());case 19:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Hi=function(){var e=u()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=3;break}if(null!=Bn&&Bn.length){e.next=3;break}return e.abrupt("return",A.ZP.info("请先选择试题"));case 3:xn.current=[0],b.Z.confirm({centered:!0,width:500,okText:"确定",cancelText:"取消",title:"加入我的题库",maskClosable:!0,className:"custom-modal-divider",icon:null,content:(0,H.jsxs)("div",{className:"font14 ".concat(we.overflow),style:{maxHeight:500,overflow:"auto"},children:[(0,H.jsx)("p",{className:"c-grey-333",children:"请选择加入的文件夹"}),(0,H.jsx)(w.Z,{spinning:gt,children:(0,H.jsx)(U.Z,{defaultValue:!0,value:xn.current,onChange:function(e){return xn.current=e}})})]}),onOk:function(){var e=u()(r()().mark((function e(){var t,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,oe.Rp)({id:n,group_id:null===(t=xn.current)||void 0===t?void 0:t[0]});case 2:i=e.sent,xn.current=[],0===(null==i?void 0:i.status)&&(ri(Y),mi(),A.ZP.success("加入成功"));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Vi=function(){var e=u()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=3;break}if(null!=Bn&&Bn.length){e.next=3;break}return e.abrupt("return",A.ZP.info("请先选择试题"));case 3:b.Z.confirm({centered:!0,width:500,okText:"确定",cancelText:"取消",title:"移动到",maskClosable:!0,className:"custom-modal-divider",icon:null,content:(0,H.jsxs)("div",{className:"font14 ".concat(we.overflow),style:{maxHeight:500,overflow:"auto"},children:[(0,H.jsxs)("div",{className:we.tips,children:[(0,H.jsx)("div",{children:"提示:"}),(0,H.jsx)("div",{children:"1.若将已共享试题移入文件夹,则会撤销此试题原有的共享选项,以文件夹的共享选项为准;"}),(0,H.jsx)("div",{children:"2.若将已共享文件夹内的试题移出至根目录,则会撤销试题所有的共享选项。"})]}),(0,H.jsx)("p",{className:"c-grey-333",children:"请选择需要移动到的文件夹"}),(0,H.jsx)(w.Z,{spinning:gt,children:(0,H.jsx)(U.Z,{defaultValue:!0,defaultSelectedKeys:Pi.current,defaultExpandedKeys:Pi.current,onChange:function(e){return Pi.current=e}})})]}),onOk:function(){var e=u()(r()().mark((function e(){var t,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,oe.LS)({ids:n?[n]:Bn,groups_ids:null===(t=Pi.current)||void 0===t?void 0:t[0]});case 2:i=e.sent,console.log("移动试题到指定文件夹的res",i),0===(null==i?void 0:i.status)&&(ri(Y),mi());case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),qi=function(){var e=u()(r()().mark((function e(n){var t,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("撤销共享触发"),e.next=3,(0,oe.hg)({clazz:"ItemBank",id:n});case 3:t=e.sent,console.log(t,"撤销共享触发的res"),i=(null==t?void 0:t.groups)||[],xn.current=i.filter((function(e){return e.is_share})).map((function(e){return e.id})),b.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"共享至教研团队",maskClosable:!0,icon:null,content:(0,H.jsxs)("div",{className:"font14 ".concat(we.overflow),children:[(0,H.jsx)("p",{className:"".concat(we.tips),children:"提示:共享后的试题支持团队成员进行编辑,如需撤销本题对选中教研团队的分享,取消选中并确定即可。"}),(0,H.jsx)(_.Z.Group,{className:we.checkbox,defaultValue:null==i?void 0:i.map((function(e){return e.is_share?e.id:""})),children:null==i?void 0:i.map((function(e){return(0,H.jsxs)(_.Z,{value:e.id,onChange:function(){e.is_share=!e.is_share,console.log(i,"选中的data"),xn.current=i},children:[" ",e.name]},e.id)}))})]}),onOk:function(){var e=u()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return xn.current=i.filter((function(e){return e.is_share})).map((function(e){return e.id})),console.log(xn.current,"joinGroupDataRef.current"),e.abrupt("return",new Promise(function(){var e=u()(r()().mark((function e(t,a){var o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(i,"看看这里的data"),e.next=3,(0,oe.GW)({ids:[n],clazz:"ItemBank",group_ids:xn.current});case 3:return o=e.sent,xn.current=[],0===(null==o?void 0:o.status)&&(A.ZP.info("操作成功"),mi()),e.abrupt("return",t());case 7:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}()));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Yi=function(e){var n=Bn;if(null==n||!n.length)return A.ZP.info("请先选择试题");He+n.length>200&&e&&Gn?A.ZP.info("试题篮中最多可再加入".concat(200-He,"题,当前选中").concat(n.length,"题,请重新选择")):e?Ui(n):Ki(n)},Ui=function(){var e=u()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=o()(n),re.forEach((function(e){var n;t.includes(e.id)&&("PROGRAM"===e.item_type&&0===(null===(n=e.program_attr)||void 0===n?void 0:n.status)&&(0,pe.remove)(t,(function(n){return n===e.id})))})),b.Z.confirm({width:530,title:"提示",className:"custom-modal-divider ",icon:null,centered:!0,okText:"确定",cancelText:"取消",content:(0,H.jsxs)("div",{children:["当前已选择",n.length,"道试题,已加入过的试题或未发布的编程题将不会重复加入 "]}),onOk:function(){var e=u()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Y.exam_id){e.next=6;break}return e.next=3,(0,oe.zh)({exam_id:Y.exam_id,item_bank_ids:t});case 3:n=e.sent,e.next=15;break;case 6:if(null==Y||!Y.exercise_id){e.next=12;break}return e.next=9,(0,wn.ZP)("/api/exercises/".concat(null==Y?void 0:Y.exercise_id,"/select_questions.json"),{method:"post",body:{item_bank_ids:t}});case 9:n=e.sent,e.next=15;break;case 12:return e.next=14,R({type:"problemset/select",payload:{item_bank_ids:t}});case 14:n=e.sent;case 15:0===n.status&&(mi(),oi());case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ki=function(){var e=u()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Y.exam_id){e.next=6;break}return e.next=3,(0,wn.ZP)("/api/examination_banks/".concat(Y.exam_id,"/batch_revoke_item.json"),{method:"post",body:{item_ids:n}});case 3:t=e.sent,e.next=15;break;case 6:if(null==Y||!Y.exercise_id){e.next=12;break}return e.next=9,(0,wn.ZP)("/api/exercise_questions/delete_by_item_bank.json ",{method:"post",body:{exercise_id:null==Y?void 0:Y.exercise_id,item_bank_ids:n}});case 9:t=e.sent,e.next=15;break;case 12:return e.next=14,R({type:"problemset/unselectAll",payload:{item_ids:n}});case 14:t=e.sent;case 15:0===t.status&&(mi(),oi());case 16:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Xi=function(){var e=u()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Gn||200!==He){e.next=3;break}return A.ZP.info("已选200个试题不能在选用更多试题"),e.abrupt("return");case 3:if(!Y.exam_id){e.next=10;break}return e.next=6,(0,oe.zh)({exam_id:Y.exam_id,shixun_ids:n});case 6:0===e.sent.status&&mi(),e.next=14;break;case 10:return e.next=12,R({type:"problemset/select",payload:{shixun_ids:n}});case 12:0===e.sent.status&&(oi(),mi());case 14:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ji=function(){var e=u()(r()().mark((function e(n){var t,i,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(t=g.teachGroupData)&&void 0!==t&&null!==(t=t.groups)&&void 0!==t&&t.length){e.next=2;break}return e.abrupt("return",A.ZP.info("您暂未创建或加入任何教研团队,请前往“我的个人中心-教研团队”查看"));case 2:return e.next=4,(0,wn.ZP)("/api/teach_group_shares/get_group_status.json",{method:"get",params:{group_id:n}});case 4:if(a=e.sent,console.log(a,"判断可否共享-是否被共享过"),0===a.status){e.next=8;break}return e.abrupt("return");case 8:xn.current=null==a?void 0:a.data,b.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"共享至教研团队",maskClosable:!0,icon:null,content:(0,H.jsxs)("div",{className:"font14 ".concat(we.overflow),children:[(0,H.jsxs)("div",{className:we.tips,children:[(0,H.jsx)("div",{children:"提示:"}),(0,H.jsx)("div",{children:"1.共享至教研团队后,在已共享的文件夹添加、删除试题或子文件夹等操作会同步至团队文件夹。若新试题无需共享,可新建文件夹管理试题。"}),(0,H.jsx)("div",{children:"2.如需撤销当前文件夹对选中教研团队的分享,取消选中并确定即可。"})]}),(0,H.jsx)(_.Z.Group,{className:we.checkbox,defaultValue:xn.current.map((function(e){return e.is_share?e.id:""})),children:null==a||null===(i=a.data)||void 0===i?void 0:i.map((function(e){return(0,H.jsxs)(_.Z,{disabled:!e.can_share,value:e.id,onChange:function(){e.is_share=!e.is_share,console.log(a.data,"res.data"),xn.current=null==a?void 0:a.data},children:[" ",e.name]},e.id)}))})]}),onOk:function(){return new Promise(function(){var e=u()(r()().mark((function e(t,i){var o,s;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==(o=xn.current)&&void 0!==o&&o.length){e.next=3;break}return A.ZP.info("请先选择教研团队"),e.abrupt("return",i());case 3:return e.next=5,(0,wn.ZP)("/api/teach_group_shares/item_banks_group.json",{method:"post",body:{teach_groups:xn.current.map((function(e){return{id:e.id,is_share:e.is_share}})),group_id:n}});case 5:s=e.sent,console.log(s),0===(null==a?void 0:a.status)&&(A.ZP.success("操作成功"),xn.current=[],En([]),mi(),ri(Y),t());case 8:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}())}});case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),$i=function(e){var n,t;if(console.log("共享试题触发"),null===(n=g.teachGroupData)||void 0===n||null===(n=n.groups)||void 0===n||!n.length)return A.ZP.info("您暂未创建或加入任何教研团队,请前往“我的个人中心-教研团队”查看");b.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"共享至教研团队",maskClosable:!0,icon:null,content:(0,H.jsxs)("div",{className:"font14 ".concat(we.overflow),children:[(0,H.jsx)("div",{className:we.tips,children:"提示:共享后的试题支持团队成员进行编辑,如需撤销本题对选中教研团队的分享,取消选中并确定即可。"}),(0,H.jsx)(_.Z.Group,{className:we.checkbox,defaultValue:xn.current,onChange:function(e){return xn.current=e},children:null===(t=g.teachGroupData)||void 0===t||null===(t=t.groups)||void 0===t?void 0:t.map((function(e){return(0,H.jsx)(_.Z,{value:e.group_id,children:e.name},e.group_id)}))})]}),onOk:function(){return new Promise(function(){var n=u()(r()().mark((function n(t,i){var a,o;return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(null!==(a=xn.current)&&void 0!==a&&a.length){n.next=3;break}return A.ZP.info("请先选择教研团队"),n.abrupt("return",i());case 3:return n.next=5,(0,oe.GW)({ids:e||Bn,clazz:"ItemBank",group_ids:xn.current});case 5:0===(null==(o=n.sent)?void 0:o.status)&&(A.ZP.info("所选试题成功分享至教研团队"),xn.current=[],En([]),mi(),t());case 7:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())},onCancel:function(){console.log("取消了"),xn.current=[]}})},er=function(){var e=function(){var e=u()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Me(!0),e.next=3,(0,oe.nD)({ids:Bn});case 3:n=e.sent,Me(!1),0===(null==n?void 0:n.status)&&b.Z.info({centered:!0,width:530,className:"custom-modal-divider ",okText:"确定",title:"删除结果",maskClosable:!1,keyboard:!1,icon:null,content:"本次成功删除".concat(n.success,"条试题,有").concat(n.fail,"条试题因为公开无法删除,请撤销后再进行删除。"),onOk:function(){hi(new Array(n.success))}});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();null!=Bn&&Bn.length?b.Z.confirm({centered:!0,width:530,className:"custom-modal-divider ",okText:"确定",title:"提示",cancelText:"取消",icon:null,content:"本次选中了".concat(null==Bn?void 0:Bn.length,"条试题进行删除操作,删除后将无法恢复,请确认是否删除?"),onOk:e}):A.ZP.warning("请选择需要删除的试题")},nr=function(){var e,n;if(null==Bn||!Bn.length)return A.ZP.info("请先选择试题");if(null!=re&&null!==(e=re.filter((function(e){return Bn.includes(e.id)})))&&void 0!==e&&e.every((function(e){return e.public})))return A.ZP.info("所选试题已公开,请重新选择");if(null!=re&&null!==(n=re.filter((function(e){return Bn.includes(e.id)})))&&void 0!==n&&n.find((function(e){var n;return"PROGRAM"===e.item_type&&0===(null===(n=e.program_attr)||void 0===n?void 0:n.status)})))return A.ZP.info("已选题中存在未发布的编程题");if("1"===window.localStorage.getItem("problemset-set-public-hint-flag")||L.userInfo.professional_certification){var t;if(null!=re&&null!==(t=re.filter((function(e){return Bn.includes(e.id)})))&&void 0!==t&&t.find((function(e){var n;return 0==(null==e||null===(n=e.tag_discipline_ids)||void 0===n?void 0:n.length)})))return A.ZP.info("部分试题暂未设置知识点,请先设置知识点再进行公开");b.Z.confirm({centered:!0,width:530,okText:"申请公开",cancelText:"取消",title:"批量公开试题",maskClosable:!0,icon:null,content:(0,H.jsx)("div",{className:"font16 c-grey-333",children:"试题公开之后,平台的所有用户都可以查看可使用。确认要申请公开吗"}),onOk:function(){tr()}})}else b.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"公开规则告知",maskClosable:!0,icon:null,content:(0,H.jsxs)("div",{className:"font16 c-grey-333",children:["公开并经平台审核后该题将在公共试题库可见Educoder所有用户均可使用该题。",(0,H.jsx)("br",{}),"公开后不可修改,但可以撤销;撤销公开后可以修改。",(0,H.jsx)("br",{}),"是否确认申请公开?",(0,H.jsx)("br",{}),(0,H.jsx)(_.Z,{className:"mt10",defaultChecked:!1,onChange:function(e){return Sn.current=e.target.checked},children:"不再提示"})]}),onOk:function(){tr()}})},tr=function(){var e=u()(r()().mark((function e(){var n,t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=fe===Dn.TeachGroupShare?1:2,t=re?re.filter((function(e){return Bn.includes(e.id)&&!(e.public||e.apply)})).map((function(e){return e.id})):[],e.next=4,(0,oe.Qp)({ids:t,source:n});case 4:0===e.sent.status&&(Sn.current&&window.localStorage.setItem("problemset-set-public-hint-flag","1"),Sn.current=!1,mi(),A.ZP.success("批量申请成功"));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ir=function(){var e=u()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,wn.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});case 2:return t=e.sent,Ot(t.disciplines||[]),e.next=6,Ii(n);case 6:null!=n&&n.sub_discipline_id&&(Jt(1),Gt.setFieldsValue({sub_discipline_id:[null==n?void 0:n.discipline_id,null==n?void 0:n.sub_discipline_id],tag_discipline_ids:null==n?void 0:n.tag_discipline_ids}));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),rr=function(e){Yt(e),ir(e),Zt(!0)},ar=function(e){var n;b.Z.confirm({centered:!0,icon:null,title:"提示",className:"custom-modal-divider",content:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("div",{className:we.modalContent,children:"发布后即可应用到自己管理的课堂"}),(0,H.jsx)("div",{className:we.modalContent,children:" 是否确认发布?"})]}),okText:"确定",cancelText:"取消",onOk:(n=u()(r()().mark((function n(){var t;return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,oe.MZ)({identifier:e});case 2:0===(null==(t=n.sent)?void 0:t.status)&&(A.ZP.success("发布成功"),mi());case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})},or=function(e){var n;b.Z.confirm({centered:!0,icon:null,title:"提示",className:"custom-modal-divider",content:(0,H.jsx)("p",{className:we.modalContent,children:"是否确认撤销发布?"}),okText:"确定",cancelText:"取消",onOk:(n=u()(r()().mark((function n(){var t;return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,oe.sD)({identifier:e});case 2:0===(null==(t=n.sent)?void 0:t.status)&&(A.ZP.success("撤销发布成功"),mi());case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})},sr=function(){var e=u()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("切换团队tab时触发",n),R({type:"problemset/getDisciplines",payload:{source:"question",teach_group_id:n,group_id:Y.group_id,group_type:Dn.TeachGroupShare}}),Y.page=1,Y.clazz="ItemBanksGroup",Y.teach_group_id=n,delete Y.id,Y.group_id=0,K(c()({},Y)),ai(Y),ri(Y);case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),cr=function(){var e=u()(r()().mark((function e(){var n,t,i,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,oe.bF)({ids:Bn});case 2:n=e.sent,t=n.data||{},i=t.unpublish_program_question_count,a=t.total_item_banks,0===i?b.Z.error({title:"错误",content:(0,H.jsx)("span",{children:"发布错误!请选择尚未发布的编程题进行发布"}),centered:!0,okText:"确认"}):b.Z.confirm({title:"提示",content:(0,H.jsxs)("span",{children:["当前选中",a,"题,其中包含",i,"道未发布的编程题, 请确认是否发布?"]}),centered:!0,onOk:function(){var e=u()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,oe.dt)({ids:Bn});case 2:0===e.sent.status&&(A.ZP.success("发布成功"),mi());case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),lr=(j.Z,rt&&j.Z.Item,rt&&j.Z.Item,fe===Dn.Mine&&Gn&&j.Z.Item,fe===Dn.Mine&&Gn&&j.Z.Item,fe===Dn.Mine&&Gn&&j.Z.Item,fe===Dn.Mine&&Gn&&j.Z.Item,function(e){if(Qn)if((null==At?void 0:At.length)<=0){var n=re.filter((function(n){return e.includes(n.id)}));wt(o()(n)),En(null==n?void 0:n.map((function(e){return e.id})))}else if(e.length>At.length){var t,i=re.filter((function(n){return e.includes(n.id)})),r=At.map((function(e){return e.id})),a=i.filter((function(e){return!r.includes(e.id)}));wt([].concat(o()(At),o()(a))),En(null===(t=[].concat(o()(At),o()(a)))||void 0===t?void 0:t.map((function(e){return e.id})))}else{var s=At.filter((function(n){return e.includes(n.id)}));wt(o()(s)),En(null==s?void 0:s.map((function(e){return e.id})))}else En(e)}),ur=function(e){if(Qn)if(e){var n,t=null==At?void 0:At.map((function(e){return e.id})),i=re.filter((function(e){return!t.includes(e.id)}));wt([].concat(o()(At),o()(i))),En(null===(n=[].concat(o()(At),o()(i)))||void 0===n?void 0:n.map((function(e){return e.id})))}else{var r=null==re?void 0:re.map((function(e){return e.id})),a=At.filter((function(e){return!r.includes(e.id)}));wt(o()(a)),En(null==a?void 0:a.map((function(e){return e.id})))}else En(e?null==re?void 0:re.map((function(e){return e.id})):[])},dr=[{type:"SINGLE",name:"单选题"},{type:"MULTIPLE",name:"多选题"},{type:"JUDGMENT",name:"判断题"},{type:"PROGRAM",name:"编程题"},{type:"SUBJECTIVE",name:"简答题"},{type:"COMPLETION",name:"填空题"},{type:"COMBINATION",name:"组合题"},{type:"BPROGRAM",name:"程序填空题"}],pr={1:"简单",2:"适中",3:"困难"};(0,f.useEffect)((function(){if(Qn&&(null==G||!G.pathId)){var e=G,n=e.coursesId,t=e.categoryId;R({type:"shixunHomeworks/addCommonHomeWorkDefaultData",payload:{category:t,coursesId:n,type:5}})}}),[Qn]);var fr=function(){var e=u()(r()().mark((function e(){var n,t,i,a,o,s;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,$t.current.form.validateFields();case 3:if(n=$t.current.form.getFieldsValue(),!((null==At?void 0:At.length)<=0)){e.next=8;break}return document.getElementById("topicdom").scrollIntoView({behavior:"smooth"}),A.ZP.info("请选择编程题"),e.abrupt("return");case 8:if(Xn(!0),i=(t=G).coursesId,a=t.categoryId,null==G||!G.pathId){e.next=17;break}return e.next=13,(0,wn.ZP)("/api/paths/".concat(null==G?void 0:G.pathId,"/create_hack_homework"),{method:"post",body:c()(c()({},n),{},{coursesId:i,category:a,stage_shixun_id:"null"==a?"":a,stage_id:null==G?void 0:G.stageId,type:5,hack_ids:null==At?void 0:At.map((function(e){return e.id}))})});case 13:0===(null==(o=e.sent)?void 0:o.status)&&(A.ZP.success("".concat("null"==a?"新增成功":"编辑成功")),m.history.push("/paths/".concat(G.pathId))),e.next=21;break;case 17:return e.next=19,(0,wn.ZP)(Fn?"/api/homework_commons/".concat(a,"/update_hack.json"):"/api/courses/".concat(i,"/homework_commons.json"),{method:Fn?"put":"post",body:c()(c()({},n),{},{coursesId:i,category:a,type:5,hack_ids:null==At?void 0:At.map((function(e){return e.id}))})});case 19:0===(null==(s=e.sent)?void 0:s.status)&&m.history.push("/classrooms/".concat(G.coursesId,"/program_homework/").concat(Fn?a:s.homework_id,"/detail?tabs=1"));case 21:Xn(!1),e.next=27;break;case 24:e.prev=24,e.t0=e.catch(0),document.body.scrollIntoView();case 27:case"end":return e.stop()}}),e,null,[[0,24]])})));return function(){return e.apply(this,arguments)}}(),mr=function(){return(0,H.jsxs)(x.Z,{labelAlign:"right",form:Gt,labelCol:{span:3},colon:!1,size:"large",children:[(0,H.jsx)(x.Z.Item,{label:"知识点",name:"sub_discipline_id",rules:[{required:!0,message:"请选择课程&方向"}],children:(0,H.jsx)(C.Z,{expandTrigger:"hover",placeholder:"请选择课程&方向",options:Rt,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:function(e,n){Gt.setFieldsValue({sub_discipline_id:e,tag_discipline_ids:[]}),Jt(e?e.length:0),(null==e?void 0:e.length)>0&&(Ii({sub_discipline_id:e[1]}),e[1]==(null==qt?void 0:qt.sub_discipline_id)&&Gt.setFieldValue("tag_discipline_ids",qt.tag_discipline_ids))},onClear:function(){ki([]),Gt.setFieldValue("tag_discipline_ids",[]),Jt(0)}})}),(0,H.jsx)(x.Z.Item,{label:"",name:"tag_discipline_ids",rules:[{required:!0,message:"请选择知识点"}],style:{paddingLeft:75},children:(0,H.jsx)(N.default,{disabled:0===Xt,className:we.selectitems,showSearch:!0,mode:"multiple",placeholder:"请选择知识点,支持选择多个",listHeight:200,allowClear:!0,optionFilterProp:"children",filterOption:function(e,n){return n.key.indexOf(e.toLowerCase())>=0},children:ji.map((function(e){return(0,H.jsx)(N.default.Option,{value:e.id,children:(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,H.jsx)("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e.name}),"personal"===(null==e?void 0:e.type)&&(0,H.jsx)("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"},children:"自用"})]})},e.name+e.id)}))})}),Xt>0&&(0,H.jsxs)("div",{className:we.concat,children:["没有合适的知识点?",(0,H.jsx)("span",{onClick:function(){return Wt(!0)},children:"新建知识点"})]})]})};return(0,H.jsxs)("div",{className:we.page,children:[(0,H.jsxs)("section",{children:[(0,H.jsxs)("div",{className:we.wrap,children:[lt.course_name&&Qn&&(0,H.jsx)("section",{className:"animated fadeIn",children:(0,H.jsx)("aside",{className:"mt10",children:lt.category&&(0,H.jsxs)(B.Z,{separator:">",children:[(0,H.jsx)(B.Z.Item,{children:(0,H.jsx)(m.Link,{to:"/classrooms/".concat(lt.course_id,"/program_homework"),children:lt.course_name})}),(0,H.jsx)(B.Z.Item,{children:(0,H.jsx)(m.Link,{to:"/classrooms/".concat(lt.course_id,"/program_homework"),children:lt.category.category_name})}),(0,H.jsx)(B.Z.Item,{children:zn})]})})}),(0,H.jsx)("div",{className:we.title,children:Qn?zn:"试题库"}),Qn&&(0,H.jsx)(Tn,{height:250,data:Vn,ref:$t}),(0,H.jsxs)("div",{className:we.headerWrapper,id:"topicdom",children:[(0,H.jsx)("div",{className:we.tabsWrap,children:(0,H.jsxs)(v.Z,{activeKey:fe,onChange:function(e){R({type:"problemset/getDisciplines",payload:{source:"question",group_id:0,group_type:e}}),Y.discipline_id="",Y.sub_discipline_id="",Y.tag_discipline_id="",Y.item_type=null,Y.difficulty=null,Y.type=e,"0"===e?(Fi(!1),Y.group_id=0,Y.teach_group_id=0):(Fi(!0),Y.group_id=null),Y.only_published=!("3"!==e||!Qn)||null,"3"===e?(Y.clazz="ItemBanksGroup",di(!0)):di(!1),Y.page=1,Y.per_page=20,delete Y.id,Ee(-1),ge(e),K(Y),ai(Y),"1"!==e&&"2"!==e&&ri(Y),Fi(!0)},tabBarExtraContent:(0,H.jsxs)("div",{className:we.searchWrap,children:[fe===Dn.Mine&&Gn&&(0,H.jsxs)(E.ZP,{className:we.addQuestionBtn,onClick:function(){var e={discipline_id:"&discipline_id=".concat(Y.discipline_id),sub_discipline_id:"&sub_discipline_id=".concat(Y.sub_discipline_id),tag_discipline_id:"&sub_discipline_id=".concat(Y.tag_discipline_id),difficulty:"&difficulty=".concat(Y.difficulty),item_type:"&item_type=".concat(Y.item_type),group_id:"&group_id=".concat(Y.group_id||0)},n="/problemset/newitem?pages=".concat(Y.page);Object.keys(e).forEach((function(t){Y[t]&&(n+=e[t])})),null===m.history||void 0===m.history||m.history.push(n)},children:[(0,H.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAoCAYAAACb3CikAAAAAXNSR0IArs4c6QAABJFJREFUWEftWF1oHFUU/u7MZmazm4Q0tS/RmARSba0tDVazqyB9sVYlDzWRllopErWlER9EFFGRIuqDT0UoQaO0adKkQqui+FKhQmqSQn8o1cbYQH9Iia3QNN387Pwemdmdyd472Z0kRMhD7ssddu4997vnfOc7Z5YRkYwlMNgyECEKyx4RabmEPfL39mdham0EqgIYAEJmDg7xrbfSmZ3BGECUmZ3hPWfnFCB/gbXHP3PXillDf754lQhVsxrKQvIO8jHm/SEUKiQluhYPHb0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PW3zxJPpOMU5/PQxQVRj35hL2QNcG4K6pYnLsFmyDYKQJKzfstVZtfHoF8PCUD8T8fcsOss3uhRwStseCjRQB2nQaZtoCiqpRvv5tirKxd9T7nz+Qu58ZvZv7GZBwfgxr7ebSk1pQYbAYdNuEIREiJXWAUoNI+RNQKh6DfOdUj1K5dZd4iSX8t0SYv/+n98seER37H8mkzkc00C7pAAAAAElFTkSuQmCC",className:we.pngIcon,alt:""}),"新增试题"]}),(0,H.jsx)(Rn,{allowClear:!0,suffix:(0,H.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(we.searchIcon),onClick:function(){return fi(Y.keyword)}}),className:we.search,placeholder:"请输入题号或其他关键词进行搜索",size:"middle",onChange:function(e){Y.keyword=e.target.value,K(c()({},Y))},onSearch:fi})]}),children:[(0,H.jsx)(Mn,{tab:"公共"},"1"),(null===(i=g.teachGroupData)||void 0===i||null===(i=i.groups)||void 0===i?void 0:i.length)&&(0,H.jsx)(Mn,{tab:"团队共享"},"3"),!(0,nn.ag)()&&!(0,nn.JA)()&&!Qn&&(0,H.jsx)(Mn,{tab:"收藏夹"},"2"),(0,H.jsx)(Mn,{tab:"我创建的"},"0")]})}),(0,H.jsx)(h.S,{showSelectAll:!1,className:we.select,disciplinesData:null===(a=g.disciplinesData)||void 0===a?void 0:a.disciplines,knowledgeData:Pe,directionValue:Y.discipline_id,subDisciplineValue:Y.sub_discipline_id,typeValue:Y.item_type,isprogram_homework:Qn,showKnowledge:!0,name:kt,setname:Ct,difficultyValue:Y.difficulty,showShixun:!(0,nn.JA)()&&!Y.exercise_id&&fe!==Dn.TeachGroupShare&&fe!==Dn.Public,onShixunChange:function(){R({type:"classroomList/setActionTabs",payload:{key:"选用实践项目"}})},onDirectionChange:function(e,n){Y.discipline_id=e||"",Y.sub_discipline_id=n||"",Y.tag_discipline_id="",Y.page=1,Y.per_page=20,delete Y.id,Ee(-1),K(Y),ai(Y),"3"!==fe&&"0"!==fe||ri(c()(c()({},Y),{},{parents:De.slice(0,-1)}))},onTypeChange:function(e){Y.item_type=e||"",Y.page=1,Y.per_page=20,K(Y),ai(Y),"3"!==fe&&"0"!==fe||ri(c()(c()({},Y),{},{parents:De.slice(0,-1)}))},onDifficultyChange:function(e){Y.difficulty=e||"",Y.page=1,Y.per_page=20,delete Y.id,K(Y),ai(Y),"3"!==fe&&"0"!==fe||ri(c()(c()({},Y),{},{parents:De.slice(0,-1)}))},knowledgeValue:Be,onKnowledgeChange:function(e){Y.tag_discipline_id=e,Y.page=1,Y.per_page=20,delete Y.id,-1===e&&(Y.discipline_id="",Y.sub_discipline_id="",Y.tag_discipline_id=""),Ee(e),K(Y),ai(Y),"3"!==fe&&"0"!==fe||ri(c()(c()({},Y),{},{parents:De.slice(0,-1)}))},teachGroupData:null===(s=g.teachGroupData)||void 0===s?void 0:s.groups,onTeachGroupChange:sr,teachGroupValue:Y.teach_group_id,showTeachGroup:ui})]}),(0,H.jsxs)("div",{className:we.treeWrapper,style:{display:fe===Dn.Mine||fe===Dn.TeachGroupShare?"block":"none"},children:[(0,H.jsxs)("div",{className:we.treeHeader,children:[(0,H.jsx)(Ae.Z,{activeTabsKey:fe,data:De,onClick:zi}),fe===Dn.Mine&&!Qn&&(0,H.jsxs)(E.ZP,{type:"link",onClick:function(){R({type:"problemset/setActionTabs",payload:{key:"新建文件夹",params:Y}})},className:we.exportBtn,children:[(0,H.jsx)("img",{src:In,alt:"",className:we.pngIcon}),"新建文件夹"]})]}),(0,H.jsx)(w.Z,{spinning:gt,children:(0,H.jsx)("div",{ref:mt,className:pt.length?we.treeContent:"",style:{maxHeight:"220px",overflow:"auto"},children:(0,H.jsx)($e.Z,{setRootData:function(e){z.current=e},isProblemset:fe===Dn.Mine&&Gn,reloadData:mi,data:pt,onShare:Ji,onOpen:zi,activeTabsKey:fe,params:Y,navigation:De})})})]}),(0,H.jsxs)("div",{className:we.contentWrap,children:[(0,H.jsxs)("div",{className:we.batchWrap,children:[(0,H.jsxs)("div",{style:{flex:1,display:"flex",alignItems:"center"},children:[!Qn&&(0,H.jsx)("div",{className:"font14",children:(0,H.jsx)(S.Z,{dropdownRender:function(){return(0,H.jsx)(j.Z,{selectedKeys:[st],children:null==ei?void 0:ei.map((function(e,n){return(0,H.jsx)(j.Z.Item,{onClick:function(){return function(e){Y.sort_by=e.type,Y.sort_direction=e.direction,Y.page=1,Y.per_page=20,ct(e.name),K(Y),ai(Y),ri(c()(c()({},Y),{},{parents:De.slice(0,-1)}))}(e)},children:e.name},e.name)}))})},children:(0,H.jsxs)("span",{style:{color:"#464F66"},children:[(0,H.jsx)("i",{className:"iconfont icon-paixu font14 mr5 c-light-primary"}),st]})})}),Qn&&(0,H.jsx)("div",{children:(0,H.jsxs)(_.Z,{checked:(null==re?void 0:re.filter((function(e){return null==At?void 0:At.map((function(e){return e.id})).includes(e.id)})).length)===re.length,onChange:function(e){return ur(e.target.checked)},children:["本页全选",(0,H.jsxs)("span",{style:{color:"#999",fontSize:12},children:["/已选(",null==Bn?void 0:Bn.length,")"]})]})}),Qn&&(0,H.jsxs)(b.Z,{open:Et,centered:!0,width:700,okText:"确认".concat(null!=G&&G.pathId?"":Fn?"编辑":"新建"),onCancel:function(){return St(!1)},cancelText:"返回列表",onOk:fr,confirmLoading:Kn,title:"查看已选",children:[(0,H.jsxs)("div",{className:"font14 c-light-primary mb10",children:["已选",null==At?void 0:At.length,"个"]}),(0,H.jsx)("div",{style:{height:400,overflow:"auto"},children:null==At?void 0:At.map((function(e,n){var t,i,r,a;return(0,H.jsxs)("div",{className:we.sendModal,children:[(0,H.jsxs)("div",{className:we.li,children:[(0,H.jsx)("p",{children:null==e?void 0:e.name}),(0,H.jsxs)("div",{className:we.bottom,children:[(0,H.jsx)("span",{className:"c-grey-333",children:"编程题"}),(0,H.jsx)("i",{className:we.line}),(0,H.jsxs)("span",{className:"c-grey-333",children:[1===e.difficulty&&"简单",2===e.difficulty&&"适中",3===e.difficulty&&"困难"]}),(0,H.jsx)("i",{className:we.line}),(0,H.jsxs)("span",{children:["创建者 ",(0,H.jsx)(k.Z,{title:null==e||null===(t=e.author)||void 0===t?void 0:t.name,children:(0,H.jsx)("span",{className:"c-grey-333",children:(null==e||null===(i=e.author)||void 0===i||null===(i=i.name)||void 0===i?void 0:i.length)>6?(null==e||null===(r=e.author)||void 0===r||null===(r=r.name)||void 0===r?void 0:r.substr(0,3))+"...":null==e||null===(a=e.author)||void 0===a?void 0:a.name})})]}),(0,H.jsx)("i",{className:we.line}),(0,H.jsxs)("span",{className:we.des,children:["更新 ",(0,H.jsx)("span",{className:"c-grey-333",children:null==e?void 0:e.updated_at})]})]})]}),(0,H.jsx)("div",{className:we.del,onClick:function(){lr(At.filter((function(n){return n.id!==e.id})).map((function(e){return e.id})))},children:"删除"})]},n)}))})]})]}),(0,H.jsxs)(T.Z,{align:"middle",children:[(0,H.jsx)("div",{children:!Y.item_type&&(0,H.jsx)("span",{style:{fontSize:"14px",color:"#999999"},children:[{name:"编程题",value:"PROGRAM"},{name:"单选题",value:"SINGLE"},{name:"多选题",value:"MULTIPLE"},{name:"判断题",value:"JUDGMENT"},{name:"填空题",value:"COMPLETION"},{name:"简答题",value:"SUBJECTIVE"},{name:"组合题",value:"COMBINATION"},{name:"程序填空题",value:"BPROGRAM"}].map((function(e){if(ti(e.value)>0)return(0,H.jsxs)("span",{style:{marginLeft:6},children:[e.name,(0,H.jsx)("span",{style:{color:"#000000",marginLeft:6},children:ti(e.value)})]})}))})}),fe===Dn.Mine&&Gn&&(0,H.jsxs)(E.ZP,{onClick:function(){null!=Bn&&Bn.length?b.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"导出提示",maskClosable:!0,icon:null,content:(0,H.jsxs)("div",{className:"font14 ".concat(we.overflow),children:["已选中",null==Bn?void 0:Bn.length,"道题,其中组合题与实训题暂不支持导出。"]}),onOk:function(){(0,Cn.rQ)({ids:Bn})}}):R({type:"problemset/setActionTabs",payload:{key:"导出试题",params:Y}})},type:"link",className:we.exportBtn,children:[(0,H.jsx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MRkP43DJMTQMejEsDfPrDPwnBTvTB1hLEq8ufg2325w4NHwQuwr3YeUvD6D2jtdhJ3a8F3gL2RnZOFF2Cmt/Ww2vp1ElCab7tDHcdlc7/pJGk25m8tjg3Iwnux5HmIbx0qJaTMRDXM9b8t/H3Vn3wpHhQN3Ah2j+8xvsKqyHy+4GRZyvwZ4rmbcM991aBYlG+bVPL9fhu6stMinNOejSnb701hcCzj2dFaY2yXq9AKZ+l0StkhCws2nxm9HcsbevN2gOdiR7qxCwktneYEhKVGti1q/xFK0o31g9XJiXZawengKsPYTHeg1AqadsrUOsYcD+YGj2BbzIBRoFu7KVVLDkFmMM+wdC0nSfZKZ6n2kjyCt6dYUuqvjlKYwQuI0C7uq9KmXabCLu+H0VgbK+kNjeyGQUS4vmG2O49YcOyZ1XiMxMm0YrSnZKTx7pk40g8RtJkyKRKPqCfqyoWm4M8NHjbb3UpGagyE2EIPDoqmpjzcBj3/5YE4tL3nSDZmAtGdaNj9Tcb6zdKmLF7Ps3XgfebAZF6/3vGf4HhYa6OsTsTGoAAAAASUVORK5CYII=",className:we.pngIcon}),(0,H.jsx)("span",{children:"导出试题"})]})]})]}),an?(0,H.jsxs)("div",{children:[(0,H.jsxs)(E.ZP,{style:{paddingLeft:0},onClick:function(){Y.page=1,Y.keyword=null,delete Y.id,K(Y),on(!1),ai(Y),ri(c()(c()({},Y),{},{parents:De.slice(0,-1)}))},type:"link",children:[" ",(0,H.jsx)("i",{className:"iconfont icon-fanhui2 font14"}),"返回"]}),(0,H.jsxs)("span",{className:"font14 mr20 c-grey-333",children:["搜索“",Y.keyword,"”"]})]}):null,(0,H.jsx)("div",{className:we.contentListWrap,children:0!==ee?(0,H.jsx)(w.Z,{size:"middle",spinning:M["problemset/getItemBanks"],children:re.map((function(e,n){var t,i,r,a,o,s,c,l;return(0,H.jsxs)("div",{className:we.li,children:[(0,H.jsx)("div",{className:we.top,children:(0,H.jsx)(Je.Z,{data:e,selectIds:Bn,onSelectCheckBox:lr},e.id)}),(0,H.jsxs)("div",{className:we.bottom,children:[(0,H.jsxs)("p",{className:"".concat(we.actionLeftItem," ").concat(we.questionTypeName),children:["No.",null==e?void 0:e.id]}),(0,H.jsx)("p",{className:"".concat(we.actionLeftItem," ").concat(we.questionTypeName),children:null===(t=dr.find((function(n){return n.type===e.item_type})))||void 0===t?void 0:t.name}),(0,H.jsx)("p",{className:we.actionLeftItem,children:pr[e.difficulty]}),(0,H.jsxs)("p",{className:we.actionLeftItem,children:["创建者",(0,H.jsx)(k.Z,{title:null==e||null===(i=e.author)||void 0===i?void 0:i.name,children:(0,H.jsx)("span",{className:"c-grey-333",children:(null==e||null===(r=e.author)||void 0===r||null===(r=r.name)||void 0===r?void 0:r.length)>6?(null==e||null===(a=e.author)||void 0===a||null===(a=a.name)||void 0===a?void 0:a.substr(0,5))+"...":null==e||null===(o=e.author)||void 0===o?void 0:o.name})})]}),(0,H.jsxs)("p",{className:we.actionLeftItem,children:["更新",(0,H.jsx)("span",{className:"c-grey-333",children:null==e?void 0:e.updated_at})]}),(0,H.jsxs)("p",{className:we.actionLeftItem,children:["使用次数",(0,H.jsx)("span",{className:"c-grey-333",children:null==e?void 0:e.quotes})]}),!Qn&&(0,H.jsx)("div",{className:we.more,children:(s=e,l=s.id<0?"--":rt?s[Y.exercise_id?"added":"choosed"]?(0,H.jsx)("span",{className:we.btnAdd,onClick:function(e){e.target.style.pointerEvents="none",Oi(s.id)},children:Gn?"移出试题篮":(0,H.jsxs)("span",{children:[(0,H.jsx)("b",{className:"iconfont icon-yichu ".concat(we.cancelC)}),"移出"]})},1):"PROGRAM"===s.item_type&&0===(null===(c=s.program_attr)||void 0===c?void 0:c.status)?(0,H.jsx)(k.Z,{placement:"top",title:"编程题未发布,不能加入!",children:(0,H.jsxs)("span",{className:we.btnAdd,style:{cursor:"not-allowed",background:"#E3E6EC",color:"#B1BACD"},children:[" ",Gn?"加入试题篮":(0,H.jsxs)("span",{style:{padding:"0 3px"},children:[(0,H.jsx)("b",{className:"iconfont icon-jiaru ".concat(we.addC)}),"加入"]})," "]})}):(0,H.jsx)("span",{className:we.btnAdd,onClick:function(){return Wi(s.id)},children:Gn?"加入试题篮":(0,H.jsxs)("span",{style:{padding:"0 3px"},children:[(0,H.jsx)("b",{className:"iconfont icon-jiaru ".concat(we.addC)}),"加入"]})}):(0,H.jsx)(H.Fragment,{}),(0,H.jsxs)("span",{className:we.actonBtn,children:[s.id>0&&(0,H.jsx)(Je.N,{isProblemset:Gn,user:L,data:s,activeTabsKey:fe,selectIds:Bn,onCollect:gi,onSetPublic:xi,onStartExperience:Ri,onCorrection:yi,onChangeTag:Zi,onPublicReview:vi,onSetPrivate:Li,onDelete:Mi,onCancel:Oi,onSelect:Wi,onMoveTo:Vi,addProblemset:Hi,onSetShare:bi,onCancelShare:qi,onPublish:ar,onCancelPublish:or,SubjectShare:Qi},s.id),l]}))})]})]},n)}))}):(0,H.jsx)(w.Z,{size:"middle",spinning:M["problemset/getItemBanks"],children:(0,H.jsx)(Z.Z,{})})}),0!==ee&&!Qn&&(0,H.jsx)(P.Z,{showQuickJumper:!0,onChange:pi,defaultCurrent:1,pageSize:null==Y?void 0:Y.per_page,current:Y.page||1,total:ee,showTotal:function(e){return(0,H.jsx)(H.Fragment,{children:(0,H.jsxs)("span",{className:"mr10 font12",children:["共",(0,H.jsx)("span",{className:"c-light-primary",children:e}),"条数据"]})})}}),Qn&&(0,H.jsx)("div",{style:{height:20}})]}),Gn&&(0,H.jsx)(Ge,{basketData:g.basketData,visible:Ue,basketTotal:He,onClose:function(){return Ke(!1)},onDelete:function(e){R({type:"problemset/setActionTabs",payload:{key:"Problemset-BasketDelete",params:{type:e}}})},onClear:function(){var e;b.Z.confirm({title:"确认要清空试题篮吗?",centered:!0,onOk:(e=u()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,oe.RT)();case 2:0===e.sent.status&&(mi(),oi());case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},onSubmit:u()(r()().mark((function e(){var n,t,i,a,o,s,c;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,R({type:"problemsetPreview/getEditDisciplines",payload:{source:"question"}});case 2:return o=e.sent,s=null==o||null===(n=o.disciplines)||void 0===n?void 0:n[0],e.next=6,R({type:"problemsetPreview/newPreviewProblemset",payload:{name:"默认试卷名称",difficulty:2,duration:60,discipline_id:(null==o||null===(t=o.new_checked)||void 0===t?void 0:t.discipline_id)||(null==s?void 0:s.id),sub_discipline_id:(null==o||null===(i=o.new_checked)||void 0===i?void 0:i.sub_discipline_id)||(null==s||null===(a=s.sub_disciplines)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.id)}});case 6:0===(c=e.sent).status&&m.history.push("paperlibrary/add/".concat(c.exam_id,"?defaultActiveKey=1&type=2"));case 8:case"end":return e.stop()}}),e)})))}),!(0,nn.JA)()&&Gn&&(0,H.jsx)(Xe,{visibleBasket:Ue,onToggleVisible:function(){return Ke(!Ue)},count:He})]}),(0,H.jsx)(q,{}),(0,H.jsx)(le,{onReloadData:mi,isPiliangRevoke:fn}),(0,H.jsx)(de,{onReloadData:function(){return hi([null])}}),(0,H.jsx)(ze,{onReloadData:mi,onReloadBasketData:oi}),"选用实践项目"===d.actionTabs.key?(0,H.jsx)(kn,{shixunIds:An,cb:Xi}):null,(0,H.jsx)(me,{}),(0,H.jsx)(he,{}),(0,H.jsx)(ve,{}),(0,H.jsx)(xe,{}),(0,H.jsx)(ye,{}),(0,H.jsx)($,{}),(0,H.jsx)(se,{onOk:function(){Y.page=1,K(Y),ai(Y),ri(Y)}}),(0,H.jsx)(I.Z,{onOk:function(e){Y.discipline_id="",Y.sub_discipline_id="",Y.tag_discipline_id="",Y.item_type=null,Y.difficulty=null,Y.page=1,Y.per_page=20,Y.group_id=e,Ee(-1),K(Y),ai(Y),ri(Y)}})]}),Gn?(0,H.jsx)(f.Fragment,{children:!(null==Bn||!Bn.length)&&(0,H.jsx)("div",{className:we.batch,children:(0,H.jsxs)("aside",{children:[(0,H.jsx)("div",{style:{flexShrink:0,marginRight:20},children:(0,H.jsxs)(_.Z,{className:"font14",checked:!(null==re||!re.length)&&Bn.length===(null==re?void 0:re.length),onChange:function(e){return ur(e.target.checked)},children:["本页全选",(0,H.jsxs)("span",{style:{color:"#999",fontSize:12},children:["/已选(",null==Bn?void 0:Bn.length,")"]})]})}),(0,H.jsxs)("div",{className:we.btns,children:[rt&&(0,H.jsxs)("div",{className:we.btn,onClick:function(){return Yi(!0)},children:[(0,H.jsx)("i",{className:"iconfont icon-piliangjiaru"}),"加入试题篮"]}),rt&&(0,H.jsxs)("div",{className:we.btn,onClick:function(){return Yi(!1)},children:[(0,H.jsx)("i",{className:"iconfont icon-piliangyichu"}),"移出试题篮"]}),rt&&fe===Dn.Public&&(0,H.jsxs)("div",{className:we.btn,onClick:function(){var e;(null==Bn?void 0:Bn.length)>0?b.Z.confirm({centered:!0,width:500,okText:"确定",cancelText:"取消",title:"加入我的题库",maskClosable:!0,className:"custom-modal-divider",icon:null,content:(0,H.jsxs)("div",{className:"font14 ".concat(we.overflow),style:{maxHeight:500,overflow:"auto"},children:[(0,H.jsx)("p",{className:"c-grey-333",children:"请选择加入的文件夹"}),(0,H.jsx)(w.Z,{spinning:gt,children:(0,H.jsx)(U.Z,{defaultValue:!0,value:xn.current,onChange:function(e){return xn.current=e}})})]}),onOk:(e=u()(r()().mark((function e(){var n,t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,oe.Rp)({id:Bn,group_id:null===(n=xn.current)||void 0===n?void 0:n[0]});case 2:t=e.sent,xn.current=[],0===(null==t?void 0:t.status)&&(ri(Y),mi(),A.ZP.success("加入成功"));case 5:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})}):A.ZP.info("请先选择试题")},children:[(0,H.jsx)("i",{className:"iconfont icon-piliangjiaru"}),"批量加入我的题库"]}),fe===Dn.Public&&(0,nn.ag)()&&(0,H.jsxs)("div",{className:we.btn,onClick:function(){mn(!0),Li(Bn)},children:[(0,H.jsx)("i",{className:"iconfont icon-piliangchexiaogongkai font16"}),"批量撤销公开"]}),fe===Dn.Mine&&(0,H.jsxs)("div",{className:we.btn,onClick:nr,children:[" ",(0,H.jsx)("i",{className:"iconfont icon-pilianggongkai"}),"公开"]}),fe===Dn.Mine&&!Qi&&(0,H.jsxs)("div",{className:we.btn,onClick:function(){return $i()},children:[" ",(0,H.jsx)("i",{className:"iconfont icon-pilianggongxiang"}),"批量共享"]}),fe===Dn.Mine&&(0,H.jsxs)("div",{className:we.btn,onClick:er,children:[" ",(0,H.jsx)("i",{className:"iconfont icon-piliangshanchu3 c-red"}),"删除"]}),fe===Dn.Mine&&(0,H.jsxs)("div",{className:we.btn,onClick:cr,children:[" ",(0,H.jsx)("i",{className:"iconfont icon-fabu5"}),"发布"]}),fe===Dn.Mine&&(0,H.jsxs)("div",{className:we.btn,onClick:function(){return Vi()},children:[(0,H.jsx)("i",{className:"iconfont icon-yidongmulu font16"}),"移至文件夹"]}),(0,H.jsxs)("div",{onClick:function(){return En([])},style:{marginLeft:"auto"},className:we.btn,children:[" ",(0,H.jsx)("i",{className:"iconfont icon-piliangcaozuoicon2"}),"取消操作"]})]})]})})}):Qn?"":(0,H.jsx)("div",{className:we.batch,children:(0,H.jsxs)("aside",{children:[(0,H.jsx)("div",{style:{flexShrink:0,marginRight:20},children:(0,H.jsxs)(_.Z,{className:"font14",checked:!(null==re||!re.length)&&Bn.length===(null==re?void 0:re.length),onChange:function(e){return ur(e.target.checked)},children:["本页全选",(0,H.jsxs)("span",{style:{color:"#999",fontSize:12},children:["/已选(",null==Bn?void 0:Bn.length,")"]})]})}),(0,H.jsxs)("div",{className:we.btns,children:[rt&&!(null==Bn||!Bn.length)&&(0,H.jsxs)("div",{className:we.btn,onClick:function(){return Yi(!0)},children:[(0,H.jsx)("i",{className:"iconfont icon-piliangjiaru"}),"批量加入"]}),rt&&!(null==Bn||!Bn.length)&&(0,H.jsxs)("div",{className:we.btn,onClick:function(){return Yi(!1)},children:[(0,H.jsx)("i",{className:"iconfont icon-piliangyichu"}),"批量移出"]}),(0,H.jsxs)("div",{className:"c-grey-333 font12 mr40",style:{marginLeft:"auto"},children:["已加入:  ",je,"题"]}),(0,H.jsx)("div",{onClick:function(){var e="/problemset/preview";Y.exam_id&&(e="/paperlibrary/edit/".concat(Y.exam_id)),null==Y||!Y.exercise_id||null!=G&&G.pathId||(e="/classrooms/".concat(G.coursesId,"/exercise/").concat(null==Y?void 0:Y.exercise_id,"/edit")),m.history.push(e)},className:we.btn,children:"返回试卷"})]})]})}),Qn&&(0,H.jsx)("div",{className:we.batch,children:(0,H.jsxs)("aside",{children:[(0,H.jsx)("div",{style:{flexShrink:0,marginRight:20},children:(0,H.jsx)(P.Z,{showQuickJumper:!0,onChange:pi,defaultCurrent:1,pageSize:null==Y?void 0:Y.per_page,current:Y.page||1,hideOnSinglePage:!0,total:ee,showTotal:function(e){return(0,H.jsxs)("span",{className:"mr10",children:["共",(0,H.jsx)("span",{className:"c-light-primary",children:e}),"条数据"]})}})}),(0,H.jsx)("div",{className:we.btns,children:(0,H.jsxs)(T.Z,{align:"middle",style:{marginLeft:"auto"},children:[(0,H.jsxs)(T.Z,{onClick:function(){(null==At?void 0:At.length)<=0?A.ZP.info("当前暂无数据"):St(!0)},align:"middle",className:"current",children:[(0,H.jsx)("i",{className:"iconfont icon-yixuan mr10 c-light-primary font20"}),(0,H.jsxs)("span",{children:["已选",(0,H.jsx)("span",{className:"c-light-primary",children:Bn.length}),"个"]})]}),(0,H.jsx)(E.ZP,{className:"mr20 ml40",onClick:function(){if(null!=G&&G.pathId)m.history.push("/paths/".concat(G.pathId));else{if(Fn)return void m.history.push("/classrooms/".concat(G.coursesId,"/program_homework/").concat(G.categoryId,"/detail?tabs=1"));m.history.push("/classrooms/".concat(G.coursesId,"/program_homework"))}},children:"取消"}),(0,H.jsxs)(E.ZP,{loading:Kn,onClick:fr,type:"primary",children:["确认",null!=G&&G.pathId?"":Fn?"编辑":"新建"]})]})})]})}),(0,H.jsx)(b.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,className:we.publicQuest,open:Bi,title:(0,H.jsx)("div",{style:{fontWeight:"bold"},children:"修改知识点"}),width:"640px",onCancel:function(){Ei(!1),Jt(0),Gt.resetFields()},onOk:u()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Gt.validateFields().then(function(){var e=u()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,wn.ZP)("/api/item_banks/".concat(null==qt?void 0:qt.id,"/update_tag.json"),{method:"put",body:{name:Ai.current,tag_discipline_ids:null==n?void 0:n.tag_discipline_ids}});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(A.ZP.success("修改成功"),Ei(!1),ai(Y),Gt.resetFields());case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e)}))),children:(0,H.jsx)("div",{className:we.publicQuestContent,children:(0,H.jsx)(mr,{})})}),(0,H.jsx)(b.Z,{width:640,className:we.publicQuest,centered:!0,title:(0,H.jsx)("div",{style:{fontWeight:"bold"},children:"公开试题"}),okText:"申请公开",open:It,onCancel:function(){Zt(!1),Jt(0),Yt(null),Gt.resetFields()},onOk:function(){Gt.validateFields().then(function(){var e=u()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=fe===Dn.TeachGroupShare?1:2,e.next=3,(0,oe.wX)({id:null==qt?void 0:qt.id,source:t,sub_discipline_id:null==n?void 0:n.sub_discipline_id[1],tag_discipline_ids:null==n?void 0:n.tag_discipline_ids});case 3:0===e.sent.status&&(Sn.current&&window.localStorage.setItem("problemset-set-public-hint-flag","1"),Sn.current=!1,Yt(null),En([]),mi(),A.ZP.success("申请成功")),Zt(!1),Jt(0),Gt.resetFields();case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())},children:(0,H.jsxs)("div",{className:we.publicQuestContent,children:[(0,H.jsxs)("div",{className:we.public_tips,children:[(0,H.jsx)(Zn.Z,{style:{color:"#FF8C29",marginRight:10}}),"设置试题的知识点之后,方可申请公开"]}),(0,H.jsx)(mr,{})]})}),(0,H.jsx)(Ln.Z,{open:zt,subDisciplineId:null===(l=Gt.getFieldValue("sub_discipline_id"))||void 0===l?void 0:l[1],onCancel:function(){Wt(!1)},onOkClick:function(e){ki((function(n){return[].concat(o()(n),[e])})),Gt.setFieldValue("tag_discipline_ids",[].concat(o()(Gt.getFieldValue("tag_discipline_ids")),[null==e?void 0:e.id]))}})]})}))},93478:function(e,n,t){"use strict";t.d(n,{AD:function(){return P},D9:function(){return O},Hp:function(){return j},IM:function(){return G},Iy:function(){return C},KM:function(){return K},MJ:function(){return k},Ne:function(){return D},ON:function(){return H},Uj:function(){return Y},VY:function(){return z},YO:function(){return q},YX:function(){return V},Zn:function(){return v},_g:function(){return A},_k:function(){return M},c6:function(){return S},cr:function(){return g},eV:function(){return T},fi:function(){return x},gh:function(){return B},hS:function(){return Q},iA:function(){return b},j6:function(){return w},je:function(){return L},jj:function(){return _},kS:function(){return W},o6:function(){return E},pO:function(){return U},rQ:function(){return I},sA:function(){return N},xm:function(){return R},xo:function(){return F},y8:function(){return Z},yd:function(){return y}});var i=t(7557),r=t.n(i),a=t(82242),o=t.n(a),s=t(41498),c=t.n(s),l=t(76444),u=t(46681),d=t(41282),p=t(8591),f=t(57357),m=function(){(0,u.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"正在生成文件,请稍后..."}})},h=function(){(0,u.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},v=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(),e.next=3,(0,l.YR)(o()({},n));case 3:if(0!==e.sent.status){e.next=7;break}return e.next=7,(0,d.QH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/courses/".concat(n.coursesId,"/export_couser_info.json"),query:n}));case 7:h();case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),g=function(){var e=c()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.yS)(o()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_member_act_score")),e.next=13;break;case 8:if(-2!==t.status){e.next=12;break}return e.abrupt("return",t);case 12:-3===t.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),x=function(){var e=c()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.W0)(o()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_total_score")),e.next=13;break;case 8:if(-4!==t.status){e.next=12;break}return e.abrupt("return",t);case 12:-3===t.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_total_score")));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),b=function(){var e=c()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.Nl)(o()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_total_exercise_and_other")),e.next=13;break;case 8:if(-4!==t.status){e.next=12;break}return e.abrupt("return",t);case 12:-3===t.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),y=function(){var e=c()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IU)(o()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/export_star_user")),e.next=13;break;case 8:if(-4!==t.status){e.next=12;break}return e.abrupt("return",t);case 12:-3===t.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/export_star_user")));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),A=function(){var e=c()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.td)(o()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_total_exercise_and_other")),e.next=19;break;case 8:if(-2!==t.status){e.next=12;break}return e.abrupt("return",t);case 12:if(-3!==t.status){e.next=17;break}(0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_total_exercise_and_other")),e.next=19;break;case 17:if(-4!==t.status){e.next=19;break}return e.abrupt("return",t);case 19:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),w=function(){var e=c()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.QX)(o()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_total_homework")),e.next=13;break;case 8:if(-4!==t.status){e.next=12;break}return e.abrupt("return",t);case 12:-3===t.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),_=function(){var e=c()(r()().mark((function e(n,t){var i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.o_)(o()({},n));case 2:0===(i=e.sent).status?(p.ZP.info("导出任务生成成功导出后文件保存时间为7天请及时下载"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t))):-3===i.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t)));case 4:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),j=function(){var e=c()(r()().mark((function e(n,t){var i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.ZL)(o()({},n));case 2:0===(i=e.sent).status?(p.ZP.info("导出任务生成成功导出后文件保存时间为7天请及时下载"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t))):-3===i.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t)));case 4:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),k=function(){var e=c()(r()().mark((function e(n,t){var i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.vV)(o()({},n));case 2:0===(i=e.sent).status?(p.ZP.info("导出任务生成成功导出后文件保存时间为7天请及时下载"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t))):-3===i.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t)));case 4:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),C=function(){var e=c()(r()().mark((function e(n,t){var i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.aP)(o()({},n));case 2:0===(i=e.sent).status?(p.ZP.info("导出任务生成成功"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t))):-3===i.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t)));case 4:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),N=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(),e.next=3,(0,l.MJ)(o()({},n));case 3:if(0!==e.sent.status){e.next=7;break}return e.next=7,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/polls/".concat(n.categoryId,"/commit_result.xlsx"),query:n}));case 7:h();case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),B=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/courses/".concat(n.coursesId,"/attendances/export_xlsx_data.xlsx"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),E=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/courses/".concat(n.coursesId,"/video_study_statics.xlsx"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),S=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/courses/".concat(n.coursesId,"/export_video_study.xlsx"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),T=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/courses/".concat(n.coursesId,"/export_course_students_info.xlsx"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),P=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/school_manages/students.xlsx",query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),I=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/item_banks/export.xlsx",query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Z=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),L=function(){var e=c()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.Uy)(o()({},n));case 2:0===(t=e.sent).status?(p.ZP.info("导出任务生成成功"),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/exercise_score"))):-3===t.status&&((0,u.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),u.history.push("/classrooms/".concat(n.coursesId,"/exportlist/exercise_score")));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),M=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("----------","调用下载"),e.next=3,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/export_records/".concat(n.id,".xlsx"),query:n}));case 3:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),R=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),O=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/courses/".concat(null==n?void 0:n.coursesId,"/").concat(n.menuKey,"_statistic.xlsx?").concat(n.checkedList.map((function(e){return"course_group_id[]=".concat(e)})).join("&")),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),D=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/ec_years/".concat(null==n?void 0:n.ec_year_id,"/ec_training_objectives.xlsx"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),G=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)(null==n?void 0:n.name,(0,d.NY)({url:f.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Q=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/ec_years/".concat(null==n?void 0:n.ec_year_id,"/ec_courses.xlsx"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),F=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/ec_years/".concat(null==n?void 0:n.ec_year_id,"/ec_graduation_requirements.xlsx"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),z=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),W=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),H=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/examination_banks/".concat(n.id,".json"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),V=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/exercises/".concat(n.categoryId,".json"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),q=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/polls/".concat(null==n?void 0:n.id,"/commit_result.json"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Y=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/paths/get_task_pass.json",query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),U=function(){var e=c()(r()().mark((function e(n,t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)(t||"",(0,d.NY)({url:f.Z.API_SERVER+"/api/exercises/".concat(null==n?void 0:n.exercise_id,"/consult_exercise.json"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),K=function(){var e=c()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,d.FH)("",(0,d.NY)({url:f.Z.API_SERVER+"/api/competitions/".concat(null==n?void 0:n.identifier,"/competition_commit_records/member_works.xlsx"),query:n}));case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()},32637:function(e,n,t){"use strict";e.exports=t.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSG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FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},73631:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd5XvtF3fEQOrQH9mDm1Z9hyJuEphXIq9uSWSQqv8a4RbAUTFdcs7gifwplYGjT3wzbPFz6Q70EZv8WZoxMP66ApMc86inirNBA8njcFIuvOTXhowPyzuQJiukzi3hQgS7b+I9nJtQn/AHsLGsvlcPPWsAAAAASUVORK5CYII="},5623:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAedJREFUOBGtVDtLA0EQ/jY5z7dgEBVJLHyAitpYWQqKjVZa5BfEKpWlWPgrLG0UEdTexkILRUQiSBBBCAhGUINFHia53Dm7ufXcvfgIOHA3O69vvtnbPeY4ThD/KIF/xBJQhg/wbmkZtj0KMKbEGNIweg4xuPmq+DWDKSOfz2/AqaxpOVWzip8HC2xTsydfjoMHhMd2VMDjkSswTPqSucOhh3PmupaIediBOnL52UTLENC7QCV1bC9vkjkF3i4WVUDeORIF2sf5ymOk7mY1pr87hoHEhekHDLYQOfck8c6c6OeYfPHN3LyOxEB2KwQru0LrBvTPdaGRipj7ISUzqUWJ/moiRyc1tUXAQP42Tsa6sEIRCtwDRXqESDYS8RuG5iyRMEWFAat4CbvsAmgFmukmeYofJYeSAimab0L4DfQNHiF1laFAyMv840o2zN3Q1FMuIOIWStF9OtAxH4xkIC8NZyN9SnIOsNISkLRd3EWlFBP0lQJtDzVTyc8mBKB3U65nUnBYmDaFAr98BFGqvYKtwOMZHRsp1vsedVxV8bQRJXu5BbKWa6sAmK1lj2FiOoLcS5LYNX/N+3ktp+GapFJMeoDccdI9gEJ2nW5HhJjKuXmktih7yjJoC8VVwNpldXnr+KX8DfcD09mnwzz7SXEAAAAASUVORK5CYII="},31328:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAodJREFUOBGtU0trFEEQ/qZnM5NsWBCfSEjwQdSggmAieAv4uOnFg5eIXgTvEY+ePJqToDf9AcZDFAUF8SgEQUxAjC6+QlhX4xo0G93ZnRnr697umSyKBCyY/aqqq76q6uoF/rN4lu/BmzSsLGFM7P4kAZQCiBTR64nCw/MHvRnj+fuvI7zxtDWJJD1lQulO5TPHnkAqpuAUFKZUqg8da8xI35+/cMh77AjHJ5cakh/oqHa2ZhGHpSb+STxJZA3lqesFG1CuLAdsqLfbb/dlTwQ7GdmG9VGVBuoNfT/nHGHUSnByeAN2binmmDK1gyM7aGvl6gruPvtad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