|
|
(self.webpackChunk=self.webpackChunk||[]).push([[14599,4977,37572,3287],{69154: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,A=null,b=null;void 0!==t.height&&(t.height=Math.round(t.height)),void 0!==t.width&&(t.width=Math.round(t.width));var y=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){b=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 k=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,j(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 j(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,A=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(y(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){y(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(y(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]);b&&a.setAttribute("data-param-fontscssurl",b),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"),A=null!==x;if(A)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%"),y(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)},A||x.appendChild(w)):a.appendChild(w),x.appendChild(a),A||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 k(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)},y(h)<5&&(e.className+=" geogebraweb")):_(e,n)}if(r){scriptLoadStarted=!0;for(var j=0;j<a.childNodes.length;j++){"TABLE"===a.childNodes[j].tagName&&(a.removeChild(a.childNodes[j]),j--)}if(null!==ggbHTML5LoadedScript){var C=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=C&&C.parentNode.removeChild(C)}var B=document.createElement("script"),E=function(){k(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(49872).then(function(){var e=[__webpack_require__(49872)];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 k(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!==A)&&!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",A),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=y(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 G(){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?k(G):G(),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")})()},50698: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(14103).Z.API_SERVER},96820: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}))}},45055:function(e,n,t){"use strict";t.d(n,{Z:function(){return b}});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(44979),v="customTree___ZhEHU",g="name___RIkn2",x=t(37712),A=["value","onChange","defaultValue","disabled"],b=function(e){var n=e.value,t=e.onChange,i=e.defaultValue,a=e.disabled,s=p()(e,A),l=(0,f.useState)([]),d=u()(l,2),b=d[0],y=d[1],w=(0,f.useState)("1"),_=u()(w,2),k=_[0],j=_[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||[])}],y(t),j("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:b,onSelect:t,disabled:a},s),k)})}},87777: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:"搜索"})]})})}},47543:function(e,n,t){"use strict";t.d(n,{Z:function(){return b}});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(82420),x=t(92818),A=t(37712),b=function(e){var n=e.data,t=e.className,i=e.fullWidth,a=e.style,s=void 0===a?{}:a,f=e.onClose,b=e.onOk,y=e.showFullTools,w=e.noAssociationId,_=(0,l.useRef)(null),k=(0,l.useRef)(null),j=(0,l.useState)(!1),C=c()(j,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&&b(),e.next=13;break;case 12:null!=i&&i.id&&b(i);case 13:B(!1),P("");case 15:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),L=function(){k.current=new v.hP(_.current),k.current.addEventListener("render",Z),k.current.addEventListener("beforeclose",f),y&&(k.current.availableMarkerTypes=k.current.ALL_MARKER_TYPES,k.current.uiStyleSettings.redoButtonVisible=!0,k.current.uiStyleSettings.notesButtonVisible=!0,k.current.uiStyleSettings.zoomButtonVisible=!0,k.current.uiStyleSettings.zoomOutButtonVisible=!0,k.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=k.current.uiStyleSettings,k.current.show(),null!=n&&n.snapshotData&&k.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,A.jsx)(l.Fragment,{children:(null==n?void 0:n.visible)&&(0,A.jsxs)("div",{className:m()(u,t,i?p:""),style:s,children:[(0,A.jsx)(h.Z,{spinning:N,tip:T,style:{position:"absolute"}}),(0,A.jsx)("img",{className:d,ref:_})]})})}},93001:function(e,n,t){"use strict";t.d(n,{S:function(){return k}});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",A="action___O7v85",b=t(37712),y=[{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}],k=function(e){e.showSelectAll;var n=e.disciplinesData,t=void 0===n?[]:n,i=e.knowledgeData,k=void 0===i?[]:i,j=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,G=e.showItemType,D=void 0===G||G,Q=e.onShixunChange,z=void 0===Q?function(){}:Q,F=e.onDirectionChange,H=void 0===F?function(){}:F,W=e.onTypeChange,V=void 0===W?function(){}:W,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!==k.length&&((null==he||null===(e=he.current)||void 0===e?void 0:e.clientHeight)>108?me(1):me(0));0===k.length&&me(0)}),[k]);var ve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0;return(0,b.jsx)(o.Z,{className:x,children:e.map((function(e){return(0,b.jsx)(o.Z.Item,{children:(0,b.jsx)("a",{className:"".concat(g," ").concat(C===e.id?v:""),onClick:function(){return H(n,e.id)},children:e.name})},e.id)}))})};return(0,b.jsx)("aside",{className:L?"".concat(c," ").concat(L):c,children:(0,b.jsxs)("div",{className:l,children:[M&&(0,b.jsx)("div",{className:d,children:"试题库-编程题"}),ee&&(0,b.jsxs)("div",{className:u,children:[(0,b.jsx)("span",{className:p,children:"团队"}),(0,b.jsxs)("div",{className:f,children:[(0,b.jsx)("li",{className:"".concat(m," ").concat(ae?"":h," "),onClick:function(){return re(null)},children:"全部"}),null==te?void 0:te.map((function(e){return(0,b.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,b.jsxs)("div",{className:u,children:[(0,b.jsx)("span",{className:p,children:"方向"}),(0,b.jsx)("span",{}),(0,b.jsxs)("div",{className:f,style:{overflow:"hidden",height:1===ce?88:"auto"},children:[(0,b.jsx)("li",{className:"".concat(m," ").concat(j?"":h," "),onClick:function(){return H(null)},children:"全部"}),t.map((function(e){var n;return(0,b.jsx)(a.Fragment,{children:(null===(n=e.sub_disciplines)||void 0===n?void 0:n.length)>0?(0,b.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,b.jsx)("li",{className:"".concat(m," ").concat(j===e.id?h:""," "),onClick:function(){return H(e.id)},children:e.name})}):(0,b.jsx)("li",{className:"".concat(m," ").concat(j===e.id?h:""," "),onClick:function(){return H(e.id)},children:e.name})},e.id)}))]}),(0,b.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,b.jsx)(a.Fragment,{children:(null===(n=e.sub_disciplines)||void 0===n?void 0:n.length)>0?(0,b.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,b.jsx)("li",{className:"".concat(m," ").concat(j===e.id?h:""," "),onClick:function(){return H(e.id)},children:e.name})}):(0,b.jsx)("li",{className:"".concat(m," ").concat(j===e.id?h:""," "),onClick:function(){return H(e.id)},children:e.name})},e.id)}))}),!!ce&&(0,b.jsxs)("div",{className:A,children:[1===ce&&(0,b.jsxs)("span",{onClick:function(){return le(2)},children:["展开",(0,b.jsx)("i",{className:"iconfont icon-xiala"})]}),2===ce&&(0,b.jsxs)("span",{onClick:function(){return le(1)},children:["收起",(0,b.jsx)("i",{style:{transform:"scale(0.5) rotate(180deg) translateY(2px)"},className:"iconfont icon-xiala"})]})]})]}),S&&(0,b.jsxs)("div",{className:u,children:[(0,b.jsx)("span",{className:p,children:"知识点"}),(0,b.jsxs)("div",{className:f,style:{overflow:"hidden",height:1===fe?94:"auto"},children:[(0,b.jsx)("li",{className:"".concat(m," ").concat(-1===B?h:""," "),onClick:function(){return K(-1)},children:"全部"}),k.map((function(e){return(0,b.jsx)("li",{className:"".concat(m," ").concat(B===e.id?h:""," "),onClick:function(){return K(e.id)},children:e.name},e.id)}))]}),(0,b.jsx)("div",{ref:he,className:f,style:{height:"auto",position:"fixed",left:0,top:0,width:1010,visibility:"hidden"},children:k.map((function(e){return(0,b.jsx)("li",{className:"".concat(m," ").concat(B===e.id?h:""," "),onClick:function(){return K(e.id)},children:e.name},e.id)}))}),!!fe&&(0,b.jsxs)("div",{className:A,children:[1===fe&&(0,b.jsxs)("span",{onClick:function(){return me(2)},children:["展开",(0,b.jsx)("i",{className:"iconfont icon-xiala"})]}),2===fe&&(0,b.jsxs)("span",{onClick:function(){return me(1)},children:["收起",(0,b.jsx)("i",{style:{transform:"scale(0.5) rotate(180deg) translateY(2px)"},className:"iconfont icon-xiala"})]})]})]}),D&&!M&&(0,b.jsxs)("div",{className:u,children:[(0,b.jsx)("span",{className:p,children:"题型"}),(0,b.jsx)("li",{className:"".concat(m," ").concat(N?"":h," "),onClick:function(){return V(null)},children:"全部"}),(0,b.jsxs)("div",{className:f,children:[y.map((function(e){return(0,b.jsx)("li",{className:"".concat(m," ").concat(N===e.value?h:""," "),onClick:function(){return V(e.value)},children:e.name},e.name)})),O&&(0,b.jsx)("li",{className:m,onClick:function(){return z()},children:"实训题"},"实训题")]})]}),(0,b.jsxs)("div",{className:u,children:[(0,b.jsx)("span",{className:p,children:"难度"}),(0,b.jsx)("li",{className:"".concat(m," ").concat(I?"":h," "),onClick:function(){return Y(null)},children:"全部"}),(0,b.jsx)("div",{className:f,children:w.map((function(e){return(0,b.jsx)("li",{className:"".concat(m," ").concat(I===e.value?h:""," "),onClick:function(){return Y(e.value)},children:e.name},e.name)}))})]}),P&&(0,b.jsxs)("div",{className:u,children:[(0,b.jsx)("span",{className:p,children:"类型"}),(0,b.jsx)("li",{className:"".concat(m," ").concat(Z?"":h," "),onClick:function(){return J(null)},children:"全部"}),(0,b.jsx)("div",{className:f,children:_.map((function(e){return(0,b.jsx)("li",{className:"".concat(m," ").concat(Z===e.value?h:""," "),onClick:function(){return J(e.value)},children:e.name},e.name)}))})]})]})})}},36362:function(e,n,t){"use strict";var i=t(79800),r=t.n(i),a=t(59301),o=t(68526),s=(t(48136),t(39828)),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,A=(0,a.useRef)(),b=(0,a.useRef)(),y=(0,a.useState)(0),w=r()(y,2),_=w[0],k=w[1],j=(0,a.useState)(0),C=r()(j,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=A.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;k(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:A,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)&&(k(i),B(r))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:"输入公式"}),open:T,onOk:function(){var e=b.current.getData();A.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:b,onChange:u,showSaveButton:!1})})]})}));n.Z=u},41753: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(13071),t(59478),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:"取消"})]})]}))}},11243: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(13071),t(6313),t(25717),t(99498),t(25419),t(67549),t(11829)),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 A(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 b=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)(A,g()(g()({},e),{},{onActionCallback:r})):(0,m.jsx)("span",{className:"v-line"})},n)})),t?(0,m.jsx)("li",{children:(0,m.jsx)(A,{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)(A,{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)(A,{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)(A,{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)(A,{icon:"".concat(a?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:a?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:r})})]})},y=t(71826),w=t(78241),_=t(98135),k=t(3113),j={labelCol:{span:4},wrapperCol:{span:20}},C=function(e){var n=e.callback,t=e.onCancel;return(0,m.jsxs)(w.Z,g()(g()({},j),{},{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)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(k.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))},N=t(41753),B=t(8591),E=t(50698),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)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(k.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(47543),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})})},G=t(7557),D=t.n(G),Q=t(41498),z=t.n(Q),F=t(37205),H=t.n(F),W=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(12250),t(85160)),U=t(43418),K=t(43604),X=t(82420),J="myPaletteDiv___Xjz2I",$="maxH60___Pd4Re";window.go=W;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=z()(D()().mark((function e(){var n,r;return D()().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=W.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 A(n,t){var i=function(e,t){e.handled=!0,e.diagram.model.commit((function(i){var r=t.part.adornedPart,a=(new W.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(W.Shape,{figure:t,alignment:n,alignmentFocus:n.opposite(),width:n.equals(W.Spot.Top)||n.equals(W.Spot.Bottom)?25:18,height:n.equals(W.Spot.Top)||n.equals(W.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 b(n){return e(W.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 y(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(W.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:y(t,n),contextClick:y(t,n)})}function _(){return[e("ContextMenuButton",e(W.Panel,"Horizontal",w(u,"fill"),w(p,"fill"),w(f,"fill"),w(m,"fill"))),e("ContextMenuButton",e(W.Panel,"Horizontal",w(v,"fill"),w(g,"fill"),w(h,"fill"),w(x,"fill")))]}function k(){return[e("ContextMenuButton",e(W.Panel,"Horizontal",w(d),w(o),w(t),w(n))),e("ContextMenuButton",e(W.Panel,"Horizontal",w(u),w(s),w(c),w(l)))]}function j(n,t){return t||(t="thickness"),e(W.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:y(t,n),contextClick:y(t,n)})}function C(n,t){return t||(t="dash"),e(W.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:y(t,n),contextClick:y(t,n)})}function N(){return[e("ContextMenuButton",e(W.Panel,"Horizontal",j(1),j(2),j(3),j(4))),e("ContextMenuButton",e(W.Panel,"Horizontal",C(null),C([2,4]),C([4,4])))]}function B(n,t){return t||(t="figure"),e(W.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:y(t,n),contextClick:y(t,n)})}function E(n){return e(W.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(W.Shape,{geometryString:t,margin:2,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:y("dir",n),contextClick:y("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",W.Spot.stringify(W.Spot.AllSides)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(W.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=W.Spot.RightSide;n.equals(W.Spot.Top)?(i=270,r=W.Spot.TopSide):n.equals(W.Spot.Left)?(i=180,r=W.Spot.LeftSide):n.equals(W.Spot.Bottom)&&(i=90,r=W.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",W.Spot.stringify(r)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(W.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 W.Diagram(r.current,{padding:20,grid:e(W.Panel,"Grid",e(W.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(W.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(W.Node,"Auto",{locationSpot:W.Spot.Center,locationObjectName:"SHAPE",desiredSize:new W.Size(120,60),minSize:new W.Size(40,40),resizable:!0,resizeCellSize:new W.Size(10,10),rotatable:!0},new W.Binding("location","loc",W.Point.parse).makeTwoWay(W.Point.stringify),new W.Binding("desiredSize","size",W.Size.parse).makeTwoWay(W.Size.stringify),e(W.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:W.Spot.AllSides,toSpot:W.Spot.AllSides},new W.Binding("figure"),new W.Binding("fill"),new W.Binding("stroke","borderColor"),new W.Binding("strokeWidth","thickness"),new W.Binding("strokeDashArray","dash")),e(W.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(W.TextBlock,{margin:1,textAlign:"center",overflow:W.TextBlock.OverflowEllipsis,editable:!0},new W.Binding("text").makeTwoWay(),new W.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(W.Panel,"Vertical",{maxSize:new W.Size(200,NaN)},e(W.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new W.Binding("text")),e(W.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new W.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(W.Adornment,"Spot",e(W.Placeholder,{padding:10}),A(W.Spot.Top,"TriangleUp"),A(W.Spot.Left,"TriangleLeft"),A(W.Spot.Right,"TriangleRight"),A(W.Spot.Bottom,"TriangleDown"),b({alignment:new W.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(W.Panel,"Horizontal",B("Rectangle"),B("RoundedRectangle"),B("Ellipse"),B("Diamond"))),e("ContextMenuButton",e(W.Panel,"Horizontal",B("Parallelogram2"),B("ManualOperation"),B("Procedure"),B("Cylinder1"))),e("ContextMenuButton",e(W.Panel,"Horizontal",B("Terminator"),B("CreateRequest"),B("Document"),B("TriangleDown"))),_(),k(),N()),i.current.groupTemplate=e(W.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:W.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 W.Binding("location","loc",W.Point.parse).makeTwoWay(W.Point.stringify),e(W.Panel,"Auto",{name:"BODY"},e(W.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:W.Spot.AllSides,toSpot:W.Spot.AllSides},new W.Binding("fill"),new W.Binding("stroke","color"),new W.Binding("strokeWidth","thickness"),new W.Binding("strokeDashArray","dash")),e(W.Placeholder,{background:"transparent",margin:20})),e(W.TextBlock,{alignment:W.Spot.Top,alignmentFocus:W.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new W.Binding("text"),new W.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(W.Adornment,"Spot",e(W.Panel,"Auto",e(W.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(W.Placeholder,{margin:1.5})),b({alignment:W.Spot.TopRight,alignmentFocus:W.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",_(),k(),N()),i.current.linkTemplate=e(W.Link,{layerName:"Foreground",routing:W.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new W.Binding("fromSpot","fromSpot",W.Spot.parse),new W.Binding("toSpot","toSpot",W.Spot.parse),new W.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new W.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new W.Binding("points").makeTwoWay(),e(W.Shape,{strokeWidth:2},new W.Binding("stroke","color"),new W.Binding("strokeWidth","thickness"),new W.Binding("strokeDashArray","dash")),e(W.Shape,{segmentIndex:0,segmentOffset:new W.Point(15,0),segmentOrientation:W.Link.OrientAlong,alignmentFocus:W.Spot.Right,figure:"circle",width:10,strokeWidth:0},new W.Binding("fill","color"),new W.Binding("visible","dir",(function(e){return 1===e}))),e(W.Shape,{segmentIndex:-1,segmentOffset:new W.Point(-10,6),segmentOrientation:W.Link.OrientPlus90,alignmentFocus:W.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new W.Binding("fill","color"),new W.Binding("visible","dir",(function(e){return e>=1})),new W.Binding("width","thickness",(function(e){return 7+3*e})),new W.Binding("height","thickness",(function(e){return 7+3*e})),new W.Binding("segmentOffset","thickness",(function(e){return new W.Point(-15,4+1.5*e)}))),e(W.Shape,{segmentIndex:0,segmentOffset:new W.Point(15,-6),segmentOrientation:W.Link.OrientMinus90,alignmentFocus:W.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new W.Binding("fill","color"),new W.Binding("visible","dir",(function(e){return 2===e})),new W.Binding("width","thickness",(function(e){return 7+3*e})),new W.Binding("height","thickness",(function(e){return 7+3*e})),new W.Binding("segmentOffset","thickness",(function(e){return new W.Point(-15,4+1.5*e)}))),e(W.TextBlock,{alignmentFocus:new W.Spot(0,1,-4,0),editable:!0},new W.Binding("text").makeTwoWay(),new W.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(W.Adornment,e(W.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:E(2)},new W.Binding("pathPattern","thickness",E)),b({alignmentFocus:new W.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",k(),N(),e("ContextMenuButton",e(W.Panel,"Horizontal",S(0),S(1),S(2))),e("ContextMenuButton",e(W.Panel,"Horizontal",e(W.Panel,"Spot",T(!1),P(W.Spot.Top,!1),P(W.Spot.Left,!1),P(W.Spot.Right,!1),P(W.Spot.Bottom,!1)),e(W.Panel,"Spot",{margin:new W.Margin(0,0,0,2)},T(!0),P(W.Spot.Top,!0),P(W.Spot.Left,!0),P(W.Spot.Right,!0),P(W.Spot.Bottom,!0))))),new W.Palette(a.current,{maxSelectionCount:1,linkTemplate:e(W.Link,{locationSpot:W.Spot.Center,selectionAdornmentTemplate:e(W.Adornment,"Link",{locationSpot:W.Spot.Center},e(W.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(W.Shape,{toArrow:"Standard",stroke:null}))},{routing:W.Link.AvoidsNodes,curve:W.Link.JumpOver,corner:5,toShortLength:4},new W.Binding("points"),e(W.Shape,{isPanelMain:!0,strokeWidth:2}),e(W.Shape,{toArrow:"Standard",stroke:null})),model:new W.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(H()(W.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(W.Node,"Auto",{locationSpot:W.Spot.Center},new W.Binding("location","location",W.Point.parse).makeTwoWay(W.Point.stringify),e(W.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 W.Binding("stroke").makeTwoWay(),new W.Binding("fill").makeTwoWay(),new W.Binding("figure")),e(W.TextBlock,{margin:new W.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new W.Size(16,16),maxSize:new W.Size(10,NaN),textAlign:"center",editable:!0},new W.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(W.Panel,"Grid",e(W.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(W.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)(k.ZP,{size:"large",onClick:h,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},ne=t(5112),te=t(54449),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)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(k.ZP,{type:"ghost",onClick:t,children:"取消"})]})]})},oe=t(78673),se=t(69154),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)(k.ZP,{size:"large",onClick:v,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ue=t(39828),de=t(14103),pe="link",fe="upload-image",me="add-flowchart",he="draw-image",ve="code-block",ge="add-table",xe="------------",Ae={default:xe,left:":".concat(xe),center:":".concat(xe,":"),right:"".concat(xe,":")},be=t(57473);var ye="@▁▁@",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 ke=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",je=c()(c()({},ke+"-B","bold"),ke+"-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,A=e.isFocus,w=void 0!==A&&A,_=e.watch,k=e.insertTemp,j=e.mode,E=void 0===j?"markdown":j,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,G=e.showNullButton,D=void 0!==G&&G,Q=e.showNullProgramButton,z=void 0!==Q&&Q,F=e.hidetoolBar,H=void 0!==F&&F,W=e.fullScreen,V=void 0!==W&&W,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,ke=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],Ge=Re[1],De=(0,l.useState)(V),Qe=o()(De,2),ze=Qe[0],Fe=Qe[1],He=(0,l.useState)(""),We=o()(He,2),Ve=We[0],qe=We[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(ke),null==Se||Se.setValue(ke),window.scrollTo(0,e)}),[ke]),(0,l.useEffect)((function(){null==K||K(ze)}),[ze]),(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(".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===ye.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,ze]);(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(){An(a)}));e.push(s),Se.addKeyMap(s)},t=0,i=Object.entries(je);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!==ze&&Fe(V)}),[V]),(0,be.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(){Ge(_)}),[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&&(z?i(t,kn(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 An=(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(ye),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 Ge(!Oe),Se.focus();case"trigger-full-screen":return Fe(!ze),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,ze]),bn=(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(".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(m,' "').concat(h,'" )')):Se.replaceSelection("")):(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,A=e.col,b=e.align,y="\n",w=0;w<x;w++){for(var _=[],k=[],j=0;j<A;j++)1===w&&k.push(Ae[b]),_.push(" ");1===w&&(y+="| ".concat(k.join(" | ")," |\n")),y+="| ".concat(_.join(1===A?"":" | ")," |\n")}return Se.replaceSelection(y+"\n"),Se.focus();default:throw new Error}}),[Se,Ve]),yn=(0,l.useMemo)((function(){switch(Ve){case pe:return(0,m.jsx)(C,{callback:bn,onCancel:wn});case ve:return(0,m.jsx)(N.Z,{callback:bn,onCancel:wn});case fe:return(0,m.jsx)(I,{callback:bn,onCancel:wn});case me:return(0,m.jsx)(ee,{callback:bn,onCancel:wn});case ge:return(0,m.jsx)(ae,{callback:bn,onCancel:wn});case"maths-latex":return(0,m.jsx)(le,{showSaveButton:!0,callback:bn});case"inline-latex":return(0,m.jsx)(ue.Z,{showSaveButton:!0,callback:bn});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)},kn=((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(z){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 jn=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(ze?"full-screen":""),style:_n,children:[(0,m.jsx)(b,{insertTemp:k,watch:Oe,fullScreen:ze,showNullButton:D,showNullProgramButton:z,onActionCallback:An,hidetoolBar:H,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:z,value:Ze})]}):null]})]})}),Z?(0,m.jsx)("a",{ref:vn,className:"editor-resize"}):null,Ve===he&&(0,m.jsx)(O,{callback:bn,onCancel:wn}),Ve===me&&(0,m.jsx)(ee,{callback:bn,onCancel:wn}),(0,m.jsx)(y.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)),jn(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:yn}):null})]})}},71826: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)},57473: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])}},42862:function(e,n,t){"use strict";t.d(n,{Z:function(){return b}});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(45055),g=t(44979),x=t(96048),A=t(37712),b=(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],b=s[1],y=(0,l.useState)([0]),w=c()(y,2),_=w[0],k=w[1],j=function(){t({type:"problemset/setActionTabs",payload:{}})};(0,l.useEffect)((function(){var e;"新建文件夹"===n.actionTabs.key&&(k([null===(e=n.actionTabs)||void 0===e||null===(e=e.params)||void 0===e?void 0:e.group_id]),b(""))}),[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&&(j(),i(null==a?void 0:a.id));case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,A.jsx)(d.Z,{centered:!0,title:"新建文件夹",open:"新建文件夹"===n.actionTabs.key,width:500,onCancel:j,onOk:C,destroyOnClose:!0,children:(0,A.jsxs)("div",{className:f,children:[(0,A.jsxs)("div",{className:m,children:[(0,A.jsx)("span",{className:h,children:"文件夹名称: "}),(0,A.jsx)(p.Z,{placeholder:"请输入文件夹名称",value:x,onChange:function(e){return b(e.target.value)}})]}),(0,A.jsxs)("div",{className:m,style:{alignItems:"start",maxHeight:500,overflow:"auto"},children:[(0,A.jsx)("span",{className:h,children:"文件夹位置: "}),(0,A.jsx)(v.Z,{value:_,onChange:function(e){return k(e)}})]})]})})}))},95838: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)}))]})}},70802: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),A=t(3113),b=t(48209),y="list___Ur31H",w="btns___ITJo0",_="name___FtR_V",k="folderWrapper___szWWk",j="folderIcon___MdKkF",C="share_folderIcon___G1rNy",N="subject___lELqJ",B=t(82420),E=t(73631),S=t(31328),T=t(44979),P=t(89392),I=t(73480),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,b=e.onDeleteOk,k=void 0===b?function(){}:b,j=(0,h.useState)(!1),C=u()(j,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],G=R[1],D=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:y,onClick:function(e){return l(i,r)},children:[E?(0,Z.jsx)(x.Z,{style:{maxWidth:780},value:O,onChange:function(e){G(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(),D(i)}}),(0,Z.jsx)("i",{className:"iconfont icon-qingchu ml10",onClick:function(e){e.stopPropagation(),G(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)(A.ZP,{className:"ml10",onClick:function(e){e.stopPropagation(),p(Math.abs(i))},type:"link",children:"共享全部文件夹"}),(0,Z.jsx)(A.ZP,{className:"ml10",onClick:function(e){e.stopPropagation(),S(!0)},type:"link",children:"重命名"}),(0,Z.jsx)(A.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&&k(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)(),A=u()(x,2),y=A[0],w=A[1],_=(0,h.useState)([]),N=u()(_,2),B=N[0],R=N[1],O=(0,h.useState)([]),G=u()(O,2),D=G[0],Q=G[1];(0,h.useEffect)((function(){y&&setTimeout((function(){v(y)}),200)}),[y]),(0,h.useEffect)((function(){Q([]),R([])}),[t]),(0,h.useEffect)((function(){0===D.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:F,onOpen:a,onShare:l,onDeleteOk:W}),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:j}),isLeaf:!e.have_child}})))}),[D,B,t]);var z=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},F=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 z(e,n,t)}));case 11:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),H=function e(n,t){return n.filter((function(n){return n.key!==t&&(n.children&&(n.children=e(n.children,t)),!0)}))},W=function(e){w((function(n){return H(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(y,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:F,onOpen:a,onShare:l,onDeleteOk:W}),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:j}),isLeaf:!e.have_child}}))})}));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(null==y?void 0:y.length)>0&&(0,Z.jsx)(b.Z,{showLine:{showLeafIcon:!1},showIcon:!0,treeData:y,loadData:q,onExpand:function(e,n){Q(e)},onLoad:function(e){R(e)},className:k,selectable:!1,expandedKeys:D,loadedKeys:B})}},28693:function(e,n,t){"use strict";t.d(n,{N:function(){return y},Z:function(){return w}});var i=t(37205),r=t.n(i),a=t(79800),o=t.n(a),s=t(59301),c=t(11829),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(34835),v=t(24334),g=t(36362),x=t(37712),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."],b=["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"],y=function(e){var n,t,i,r,a,o,c,l,u,d,v,g,A,b,y,w=e.SubjectShare,_=e.isProblemset,k=e.data,j=e.user,C=e.activeTabsKey,N=e.onPublicReview,B=void 0===N?function(){}:N,E=e.onStartExperience,S=void 0===E?function(){}:E,T=e.onSetPrivate,P=void 0===T?function(){}:T,I=e.onCorrection,Z=void 0===I?function(){}:I,L=e.onChangeTag,M=void 0===L?function(){}:L,R=e.onCollect,O=void 0===R?function(){}:R,G=e.onSetPublic,D=void 0===G?function(){}:G,Q=e.onDelete,z=void 0===Q?function(){}:Q,F=(e.onCancel,e.onSelect,e.onMoveTo),H=void 0===F?function(){}:F,W=e.addProblemset,V=void 0===W?function(){}:W,q=e.onSetShare,Y=void 0===q?function(){}:q,U=e.onCancelShare,K=void 0===U?function(){}:U,X=e.onPublish,J=void 0===X?function(){}:X,$=e.onCancelPublish,ee=void 0===$?function(){}:$,ne="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),te="0"===C&&!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),ie=[{label:(0,x.jsx)("a",{className:m.actionLink,target:"_blank",href:ne,children:"编辑"}),key:"-1",show:("0"===C||"3"===C&&(null==k?void 0:k.edit_item_bank))&&!k.public},{label:(0,x.jsx)("a",{className:m.actionLink,onClick:function(){var e;return ee(null==k||null===(e=k.program_attr)||void 0===e?void 0:e.identifier)},children:"撤销发布"}),key:"0",show:("0"===C||"3"===C)&&"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=j.userInfo)||void 0===o?void 0:o.login)},{label:(0,x.jsx)("a",{className:m.actionLink,onClick:function(){return H(k.id)},children:"移动到"}),key:"1",show:"0"===C},{label:(0,x.jsx)("a",{className:m.actionLink,onClick:function(){k.is_share?K(k.id):Y(k.id)},children:"共享"}),key:"3",show:"0"===C&&w},{label:(0,x.jsx)("a",{className:m.actionLink,onClick:function(){return D(k.id)},children:"公开"}),key:"4",show:te},{label:(0,x.jsx)("a",{className:m.reviewFlag,onClick:B,children:"审核中"}),key:"5",show:"0"===C&&!k.public&&k.apply&&("PROGRAM"===k.item_type&&0!==k.program_attr.status||"PROGRAM"!==k.item_type)},{label:(0,x.jsx)("a",{className:m.actionLink,onClick:function(){return P(k.id)},children:"撤销公开"}),key:"6",show:("0"===C||"1"===C)&&k.public&&(null===(c=k.author)||void 0===c?void 0:c.login)===(null===(l=j.userInfo)||void 0===l?void 0:l.login)||"1"===C&&(0,h.ag)()},{label:(0,x.jsx)("a",{className:m.actionLink,onClick:function(){return O(k.id,k.is_collected)},children:"取消收藏"}),key:"7",show:"2"===C},{label:(0,x.jsx)("a",{className:m.actionLink,onClick:function(){var e;return J(null==k||null===(e=k.program_attr)||void 0===e?void 0:e.identifier)},children:"发布"}),key:"8",show:("0"===C||"3"===C)&&"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=j.userInfo)||void 0===v?void 0:v.login)},{label:(0,x.jsx)("a",{className:m.actionLink,onClick:function(){return O(k.id,k.is_collected)},children:k.is_collected?"取消收藏":"收藏"}),key:"9",show:!("1"!==C&&"3"!==C||(0,h.ag)()||(0,h.JA)()||(null===(g=k.author)||void 0===g?void 0:g.login)===(null===(A=j.userInfo)||void 0===A?void 0:A.login))},{label:(0,x.jsx)("a",{className:m.actionLink,onClick:function(){return Z(k.id)},children:"纠错"}),key:"10",show:"0"!==C&&!(0,h.ag)()&&!(0,h.JA)()},{label:(0,x.jsx)("a",{className:m.actionLink,onClick:function(){return M(k)},children:"修改知识点"}),key:"15",show:"0"===C||"3"===C&&(null==k?void 0:k.edit_item_bank)},{label:(0,x.jsx)("a",{className:m.actionLink,onClick:function(){return z(k.id)},children:"删除"}),key:"11",show:"0"===C&&!k.public||"1"===C&&(0,h.ag)()&&(null===(b=k.author)||void 0===b?void 0:b.login)!==(null===(y=j.userInfo)||void 0===y?void 0:y.login)},{label:(0,x.jsx)("a",{className:m.actionLink,onClick:function(){return V(k.id)},children:"加入我的题库"}),key:"12",show:"1"===C||"3"===C}].filter((function(e){return e.show})),re=(0,x.jsx)(p.Z,{forceSubMenuRender:!0,className:m.menu,items:ie}),ae=(0,x.jsx)(p.Z,{forceSubMenuRender:!0,className:m.menu,children:(0,x.jsx)(p.Z.Item,{children:(0,x.jsx)("a",{className:m.actionLink,onClick:function(){return Z(k.id)},children:"纠错"})},"10")}),oe="0"!==C&&!(0,h.ag)()&&!(0,h.JA)();return(0,x.jsx)(s.Fragment,{children:_?(0,x.jsxs)(x.Fragment,{children:["SUBJECTIVE"!==k.item_type&&"COMBINATION"!==k.item_type&&(0,x.jsxs)("span",{className:m.textBtn,style:{cursor:"pointer"},onClick:function(){return S(k)},children:[(0,x.jsxs)("div",{className:m.line,children:[(0,x.jsx)("b",{className:m.b1}),(0,x.jsx)("b",{className:m.b2})]}),(0,x.jsx)("i",{className:"iconfont icon-tiyan font14 mr5"}),"体验",(0,x.jsxs)("div",{className:m.line,children:[(0,x.jsx)("b",{className:m.b1}),(0,x.jsx)("b",{className:m.b2})]})]}),ie.length>0&&(0,x.jsx)(f.Z,{dropdownRender:function(){return re},children:(0,x.jsx)("span",{style:{cursor:"default",width:"105px"},onClick:function(e){return e.preventDefault()},children:(0,x.jsxs)("span",{className:m.textBtn,children:[(0,x.jsx)("i",{className:"iconfont icon-gengduo5 font14 mr5"}),"更多",(0,x.jsxs)("div",{className:m.line,children:[(0,x.jsx)("b",{className:m.b1}),(0,x.jsx)("b",{className:m.b2})]})]})})})]}):oe?(0,x.jsx)(f.Z,{className:"ml40",dropdownRender:function(){return ae},children:(0,x.jsx)("span",{style:{cursor:"default",width:"105px"},onClick:function(e){return e.preventDefault()},children:(0,x.jsxs)("span",{className:m.textBtn,children:[(0,x.jsx)("i",{className:"iconfont icon-gengduo5 font14 mr5"}),"更多",(0,x.jsxs)("div",{className:m.line,children:[(0,x.jsx)("b",{className:m.b1}),(0,x.jsx)("b",{className:m.b2})]})]})})}):(0,x.jsx)("span",{})})},w=function(e){var n,t,i,a,p,f=e.data,h=e.selectIds,y=e.onSelectCheckBox,w=void 0===y?function(){}:y,_=e.showCheckbox,k=void 0===_||_,j=(0,s.useState)(!1),C=o()(j,2),N=C[0],B=C[1],E=function(){var e;if("BPROGRAM"!==(null==f?void 0:f.item_type))return(0,x.jsx)("div",{children:null===(e=f.standard_answer)||void 0===e?void 0:e.map((function(e,n){var t,i;return(0,x.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,x.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,x.jsxs)("span",{style:{minWidth:110},children:["答案(填空",e.position,"):"]}),(0,x.jsx)(g.Z,{value:null==e||null===(i=e.answer_text)||void 0===i?void 0:i.join("、"),readOnly:!0})]})},n)}))})};return(0,x.jsxs)("div",{className:m.itemWrap,children:[(0,x.jsxs)("div",{className:m.list,children:[k&&(0,x.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,x.jsx)("div",{onClick:function(){return B(!N)},className:m.title,children:(0,x.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,x.jsx)("div",{onClick:function(){return B(!N)},className:m.tr,children:(0,x.jsx)("i",{style:{transform:N?"scale(0.5) rotate(-180deg)":"scale(0.5) rotate(0deg)"},className:"iconfont icon-zhankai4"})})]}),(0,x.jsxs)("aside",{style:N?{display:"block"}:{display:"none"},className:m.itemDetail,children:[(0,x.jsxs)("div",{style:{marginBottom:44},children:[(0,x.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,x.jsx)("div",{className:"".concat(m.row," mt15"),children:"JUDGMENT"===f.item_type?(0,x.jsx)("div",{className:m.judgmentContent,children:f.choices.map((function(e,n){return(0,x.jsx)(l.ZP,{disabled:!0,children:e.choice_text},n)}))}):"PROGRAM"===f.item_type?(0,x.jsx)("div",{className:m.programContent,children:(0,x.jsx)(c.Z,{value:null===(a=f.program_attr)||void 0===a?void 0:a.description})}):"COMBINATION"===f.item_type?(0,x.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,x.jsxs)(s.Fragment,{children:[(0,x.jsx)("div",{style:{marginTop:10,marginBottom:10},children:(0,x.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,x.jsxs)("div",{className:m.otherContentItem,children:[(0,x.jsx)("p",{children:A[n]}),(0,x.jsx)(c.Z,{className:m.otehrContentHtml,value:e.choice_text})]},n)})),"JUDGMENT"==(null==e?void 0:e.item_type)&&(0,x.jsx)("div",{style:{display:"flex",marginBottom:10},children:e.choices.map((function(e,n){return(0,x.jsx)(l.ZP,{disabled:!0,children:e.choice_text},n)}))}),(0,x.jsxs)("div",{className:m.con,children:["SINGLE"==(null==e?void 0:e.item_type)&&(0,x.jsxs)("b",{className:"c-grey-333 font14",children:[" 答案:",null==b?void 0:b[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,x.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,x.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==b?void 0:b[n])+" "}))," "]}),"JUDGMENT"==(null==e?void 0:e.item_type)&&(0,x.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,x.jsxs)("div",{children:["答案:",null==e||null===(o=e.answer_texts)||void 0===o?void 0:o[0]]}),(0,x.jsxs)("div",{children:[(0,x.jsx)("span",{children:"解析:"}),(0,x.jsx)(c.Z,{className:m.parseAnswerHtml,value:e.analysis||"暂无解析"})]}),(0,x.jsxs)("div",{children:[(0,x.jsx)("span",{children:"知识点:"}),(0,x.jsx)(u.Z,{title:(null==f?void 0:f.tag_discipline)||"--",children:(0,x.jsx)("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:(null==f?void 0:f.tag_discipline)||"--"})})]})]})]})}))}):(0,x.jsx)("div",{className:m.otherContent,children:f.choices.map((function(e,n){return(0,x.jsxs)("div",{className:m.otherContentItem,children:[(0,x.jsx)("p",{children:A[n]}),(0,x.jsx)(c.Z,{className:m.otehrContentHtml,value:e.choice_text})]},n)}))})}),(0,x.jsx)("div",{className:m.row,children:(0,x.jsx)("div",{className:m.updateTimeRow,children:(0,x.jsx)("div",{className:m.updateTimeWrap,children:"PROGRAM"===f.item_type&&(0,x.jsxs)("p",{className:m.programLanguage,children:["编程语言:",null===(i=f.program_attr)||void 0===i?void 0:i.language]})})})})]}),"COMBINATION"!==f.item_type&&(0,x.jsxs)("div",{className:m.answerWrapper,children:[(0,x.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACMgAAAA6CAYAAABPwffJAAAAAXNSR0IArs4c6QAAH35JREFUeF7t3Q2MZWV9x/H/c849d17uzL6y7K4M76xLNIAKoiBQak0oRgsiYKyxUEq0LwZLYmqa0hqtpi8xodam1daKRFtbRITYBmlspRBBAXmRaHddsCyO7Bsssztzd2buveec5jl37jC7bN155l7OL7P3ewmZfTnn+Z37+f9nsjn3n+c4W8JrfHx8bGam9ZfNZutif3q1Wrl3YKDyB2NjY+NLWC74FHV+8AVzQlcC6nqr87vC4+RgAXW91fnBYJyAAAIIIIAAAggggAACCCCAAAIIIIAAAggggAACpr6/r86nBcoVUNdbnV+uNmnqevcy34WW84knto0513giz22NWef03P9qb27Vs846a9MrOiSjzg/14vjuBNT1Vud3p8fZoQLqeqvzQ704HgEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBMzU9/fV+fRAuQLqeqvzy9UmTV3vXucHD8g88shj/2zm3ttoNOa7wZmzJEnMnPvqOeec9euvZJuo81/J98baLxdQ11udT0+UK6Cutzq/XG3SEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBBA4OgTU9/fV+UdHFZfPu1DXW52/fCp1dFyput69zg8ek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XmzR1vXudHzzM8olPfCrvPFKp/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+Wt1rNYseY9is359z8DjLf/OZdwWuGtJU6P+RaObZ7AXW91fndC7JCiIC63ur8ECuORQABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAgbaA+v6+Op8+KFdAXW91frnapKnr3ev84GGWSy65NG82m0UnNJuN4muSJMVX/4ilb33r7uA1Q9pKnR9yrRzbvYC63ur87gVZIURAXW91fogVxyKAAAIIIIAAAggggAACCCCAAAIIIIAAAggggEBbQH1/X51PH5QroK63Or9cbdLU9e51fvAwy4UXXpT73WP8kIxzZv43fgeZJKkWu8ncf/99wWuGtJU6P+RaObZ7AXW91fndC7JCiIC63ur8ECuORQABBBBAAAEEEEAAAQQQQAABBBBAAAEEEEAAgbaA+v6+Op8+KFdAXW91frnapKnr3ev84GGWN73pzXmr1SoGYzo7yfgdZPyQTKVSse9//3vBa4a0lTo/5Fo5tnsBdb3V+d0LskKIgLre6vwQK45FAAEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQACBtoD6/r46nz4oV0Bdb3V+udqkqevd6/zgYZazzz4nbzQaxXBMsXuM74liB5mk2EXm0UcfCV4zpK3U+SHXyrHdC6jrrc7vXpAVQgTU9Vbnh1hxLAIIIIAAAggggAACCCCAAAIIIIAAAggggAACCLQF1Pf31fn0QbkC6nqr88vVJk1d717nBw+zbN58et7ZOabZbPjpGKtWE/OPXapWq7Zly/8ErxnSVur8kGvl2O4F1PVW53cvyAohAup6q/NDrDgWAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEE2gLq+/vqfPqgXAF1vdX55WqTpq53r/ODh1lOOeXUYkCmMyRjls8Px/gBmaeffip4zZC2UueHXCvHdi+grrc6v3tBVggRUNdbnR9ixbEIIIAAAggggAACCCCAAAIIIIAAAggggAACCCDQFlDf31fn0wflCqjrrc4vV5s0db17nR88zOIv4MCBujUafkimYa7zeKVKYsO1mv30p08HrxnSVur8kGvl2O4F1PVW53cvyAohAup6q/NDrDgWAQQQQAABBBBAAAEEEEAAAQQQQAABBBBAAAEE2gLq+/vqfPqgXAF1vdX55WqTpq53r/MXNcyS57m75557Vq9atfbCq656951+95h6fWp+F5kkqVqtVrMkSexrX/v65RMTL9x/ySWXvOicy3vRMur8XrwH1li8gLre6vzFS3FkLwTU9Vbn98KQNRBAAA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jrrc7vxo5zwwXU9S4r//8dkFlIdsjFdP7q0HNftjvMYneMOVJ51PlHuj7+vrcC6nqr83uryWpHElDXW51/JB/+HgEEEEAAAQQQQAABBBBAAAEEEEAAAQQQQAABBF4uoL6/r86nJ8oVUNdbnV+uNmnqer+S+f8HabRiLm3R4IUAAAAASUVORK5CYII=",alt:"",className:m.decoration}),(0,x.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?b[a]:"",s="";f.choices.map((function(e,n){e.is_answer&&(s+=b[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,x.jsx)(c.Z,{className:m.answerHtml,value:"答案:".concat(o||"无")}),MULTIPLE:(0,x.jsx)(c.Z,{className:m.answerHtml,value:"答案:".concat(s||"无")}),COMPLETION:E(),BPROGRAM:(0,x.jsxs)("div",{children:[(0,x.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,x.jsx)("div",{className:m.answerHtml,children:"答案(填空".concat(e.position,"):").concat(null==e?void 0:e.answer_text)},n)}))]})},h=(0,x.jsx)(c.Z,{className:m.answerHtml,value:"答案:".concat(l||"无")});return p[f.item_type]||h}()}),(0,x.jsxs)("div",{className:m.parse,children:[(0,x.jsx)("div",{className:m.parseText,children:"解析:"}),(0,x.jsx)("div",{className:m.parseAnswer,children:f.analysis?(0,x.jsx)(c.Z,{className:m.parseAnswerHtml,value:f.analysis}):"暂无解析"})]}),(0,x.jsxs)("div",{className:m.parse,children:[(0,x.jsx)("div",{className:m.parseText,children:"知识点:"}),(0,x.jsx)(u.Z,{title:(null==f?void 0:f.tag_discipline)||"--",children:(0,x.jsx)("div",{className:m.parseAnswer,style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:(null==f?void 0:f.tag_discipline)||"--"})})]})]})]})]})}},73480:function(e,n,t){"use strict";t.r(n),t.d(n,{TabType:function(){return Mn},default:function(){return Rn}});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(96048),h=t(93001),v=t(99313),g=t(98135),x=t(43418),A=t(5112),b=t(8591),y=t(71418),w=t(24905),_=t(20834),k=t(6848),j=t(66104),C=t(3113),N=t(38854),B=t(53864),E=t(95237),S=t(43604),T=t(42862),P=t(21740),I=t(39647),Z=t.n(I),L="modalContent___UXmJC",M="modalContentLeft___JOFgX",R="green___rI_w_",O="textArea___OTapv",G="red___cDswv",D="row___CE3Y7",Q="html___u9n4r",z="line___Lh9Lb",F=t(37712),H=["problemset","globalSetting","loading","dispatch"],W=(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);Z()(e,H);return(0,F.jsxs)(x.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,F.jsx)("div",{className:L,children:"公开申请已提交,请等待管理员的审核"}),(0,F.jsx)("div",{className:L,children:"我们将在1-2个工作日内完成审核"})]})})),V={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"},q=t(45055),Y=t(99232),U=t.n(Y),K=t(14103),X=(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=K.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,F.jsx)(x.Z,{centered:!0,title:"导出试题",open:"导出试题"===n.actionTabs.key,width:718,destroyOnClose:!0,wrapClassName:V.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);b.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(U()().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()})):b.ZP.warning("请选择文件夹")},children:(0,F.jsxs)("aside",{className:V.exportModal,children:[(0,F.jsxs)("div",{style:{marginBottom:20},children:[(0,F.jsx)("label",{style:{marginRight:20},children:"导出设置"}),(0,F.jsxs)(A.ZP.Group,{onChange:function(e){u(e.target.value)},value:l,children:[(0,F.jsx)(A.ZP,{value:!0,children:"包含子文件夹"}),(0,F.jsx)(A.ZP,{value:!1,children:"仅当前文件夹"})]})]}),(0,F.jsx)(q.Z,{value:a,onChange:function(e){return o(e)}}),(0,F.jsx)("div",{className:V.export_text,children:"其中组合题与实训题暂不支持导出"})]})})})),J="customModal___lg6DD",$="shareModal___uZhG_",ee="content___I8qEq",ne="group___KeY9s",te="teachGroup____SeBs",ie="footer___Jn0qQ",re=t(44979),ae=(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)([]),A=p()(g,2),_=A[0],k=A[1],j=(0,f.useState)([]),N=p()(j,2),B=N[0],E=N[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),G=p()(O,2),D=(G[0],G[1]);(0,f.useEffect)((function(){var e;"共享试题"===t.actionTabs.key&&(Q(),k([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,re.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)}}(),z=function(){i({type:"problemset/setActionTabs",payload:{}})},H=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!==_.length){e.next=3;break}return b.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,re.GW)({item_banks_group_ids:_,clazz:"ItemBank",group_ids:B});case 9:0===(null==(n=e.sent)?void 0:n.status)&&(a(),z()),R(!1);case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,F.jsx)(x.Z,{centered:!0,afterClose:function(){E([]),v(1),D(!1),c([])},title:"共享试题".concat(h,"/2"),open:"共享试题"===t.actionTabs.key,footer:null,width:718,destroyOnClose:!0,wrapClassName:J,onCancel:z,children:(0,F.jsx)("aside",{className:$,children:(0,F.jsxs)(y.Z,{spinning:P,children:[(0,F.jsxs)("div",{className:ee,children:[1===h&&(0,F.jsx)("div",{className:ne,children:(0,F.jsx)(q.Z,{value:_,onChange:function(e){return k(e)}})}),2===h&&(0,F.jsxs)("div",{className:te,children:[(0,F.jsx)("p",{children:"共享至教研团队"}),(0,F.jsx)(w.Z.Group,{value:B,onChange:function(e){return E(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,F.jsx)(w.Z,{value:e.group_id,children:null==e?void 0:e.name},e.group_id)}))})]})]}),(0,F.jsxs)("div",{className:ie,children:[(0,F.jsx)(C.ZP,{onClick:z,children:"取消"}),(0,F.jsx)(C.ZP,{loading:M,onClick:H,type:"primary",children:1===h?"下一步":"确认共享"})]})]})})})})),oe=["problemset","globalSetting","loading","dispatch","onReloadData","isPiliangRevoke"],se=(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=(Z()(e,oe),(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,F.jsxs)(x.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,F.jsx)("div",{className:M,children:"试题已公开,撤销公开可能导致部分用户对试题的使用受损。"}),(0,F.jsx)("div",{className:M,children:"确认撤销公开回到自有状态吗?"}),(0,F.jsx)("div",{children:(0,F.jsx)(w.Z,{className:"mt10",defaultChecked:!1,onChange:function(e){return l.current=e.target.checked},children:"不再提示"})})]})})),ce=["problemset","globalSetting","loading","dispatch","onReloadData"],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=(Z()(e,ce),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,F.jsxs)(x.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,F.jsx)("div",{className:L,children:"确认删除后,无法撤销"}),(0,F.jsx)("div",{className:L,children:"是否确认删除?"})]})})),ue=t(89392),de=t(11829),pe=(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),y=p()(g,2),w=y[0],_=y[1],k=["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,ue.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 j=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 b.ZP.warning("请您作答后再提交"),e.abrupt("return");case 3:w&&(i=(0,ue.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,F.jsx)(x.Z,{centered:!0,destroyOnClose:!0,open:"SINGLE"===t.actionTabs.key,title:"试题体验",okText:w?"重新答题":"提交答案",cancelText:"取消",width:708,onOk:j,onCancel:function(){l({}),v([]),_(!1),i({type:"problemset/setActionTabs",payload:{}})},children:(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:"c-light-primary mb5 font16",children:"单选题"}),(0,F.jsx)(de.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=R),w&&!t&&i&&(a=G),(0,F.jsxs)("div",{style:{pointerEvents:w?"none":"auto"},className:"".concat(D," ").concat(a),children:[(0,F.jsx)(A.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,F.jsxs)("span",{children:[k[n],". "]}),(0,F.jsx)(de.Z,{className:Q,value:r}),w&&t&&(0,F.jsx)("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),w&&!t&&i&&(0,F.jsx)("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"})]},n)})),w&&(0,F.jsxs)(f.Fragment,{children:[(0,F.jsx)("div",{className:z}),(0,F.jsxs)("div",{className:"c-grey-333 mb5",children:[(0,F.jsx)("b",{children:"正确答案: "}),k[h.findIndex((function(e){return e.is_answer}))]]}),(0,F.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,F.jsx)("b",{children:"解析: "}),(null==s?void 0:s.analysis)||"暂无解析"]})]})]})})})),fe=(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),A=p()(g,2),y=A[0],_=A[1],k=["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,ue.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 j,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 b.ZP.warning("请您作答后再提交"),e.abrupt("return");case 3:y&&(i=(0,ue.cloneDeep)(null==t||null===(n=t.actionTabs)||void 0===n?void 0:n.params),v(i.choices)),_(!y);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,F.jsx)(x.Z,{centered:!0,destroyOnClose:!0,open:"MULTIPLE"===t.actionTabs.key,title:"试题体验",okText:y?"重新答题":"提交答案",cancelText:"取消",width:708,onOk:C,onCancel:function(){l({}),v([]),_(!1),i({type:"problemset/setActionTabs",payload:{}})},children:(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:"c-light-primary mb5 font16",children:"多选题"}),(0,F.jsx)(de.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=R),y&&!t&&i&&(a=G),(0,F.jsxs)("div",{style:{pointerEvents:y?"none":"auto"},className:"".concat(D," ").concat(a),children:[(0,F.jsx)(w.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,F.jsxs)("span",{children:[k[n],". "]}),(0,F.jsx)(de.Z,{className:Q,value:r}),y&&t&&(0,F.jsx)("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),y&&!t&&i&&(0,F.jsx)("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"})]},n)})),y&&(0,F.jsxs)(f.Fragment,{children:[(0,F.jsx)("div",{className:z}),(0,F.jsxs)("div",{className:"c-grey-333 mb5",children:[(0,F.jsx)("b",{children:"正确答案: "}),(j="",h.forEach((function(e,n){e.is_answer&&(j+=k[n])})),j)]}),(0,F.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,F.jsx)("b",{children:"解析: "}),(null==s?void 0:s.analysis)||"暂无解析"]})]})]})})})),me=(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],y=(0,f.useState)(!1),w=p()(y,2),_=w[0],k=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,ue.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 j=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 b.ZP.warning("请您作答后再提交"),e.abrupt("return");case 3:_&&(t=(0,ue.cloneDeep)(null==i||null===(n=i.actionTabs)||void 0===n?void 0:n.params),g(t.choices)),k(!_);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,F.jsx)(x.Z,{centered:!0,destroyOnClose:!0,open:"JUDGMENT"===i.actionTabs.key,title:"试题体验",okText:_?"重新答题":"提交答案",cancelText:"取消",width:708,onOk:j,onCancel:function(){d({}),g([]),k(!1),a({type:"problemset/setActionTabs",payload:{}})},children:(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:"c-light-primary mb5 font16",children:"判断题"}),(0,F.jsx)(de.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=R),_&&!t&&i&&(a=G),(0,F.jsxs)("div",{style:{pointerEvents:_?"none":"auto"},className:"".concat(D," ").concat(a),children:[(0,F.jsx)(A.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,F.jsx)(de.Z,{className:Q,value:r}),_&&t&&(0,F.jsx)("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),_&&!t&&i&&(0,F.jsx)("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"})]},n)})),_&&(0,F.jsxs)(f.Fragment,{children:[(0,F.jsx)("div",{className:z}),(0,F.jsxs)("div",{className:"c-grey-333 mb5",children:[(0,F.jsx)("b",{children:"正确答案: "}),null===(t=v.find((function(e){return e.is_answer})))||void 0===t?void 0:t.choice_text]}),(0,F.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,F.jsx)("b",{children:"解析: "}),(null==l?void 0:l.analysis)||"暂无解析"]})]})]})})})),he=t(36362),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],A=h[1],y=(0,f.useState)(!1),w=p()(y,2),_=w[0],k=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,ue.cloneDeep)(null==i||null===(n=i.actionTabs)||void 0===n?void 0:n.params);d(r),A(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 j=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 b.ZP.warning("请您作答后再提交"),e.abrupt("return");case 3:_&&(a=(0,ue.cloneDeep)(null==i||null===(n=i.actionTabs)||void 0===n?void 0:n.params),A(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)})))),k(!_);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,F.jsx)(x.Z,{centered:!0,destroyOnClose:!0,open:"COMPLETION"===i.actionTabs.key,title:"试题体验",okText:_?"重新答题":"提交答案",cancelText:"取消",width:708,onOk:j,onCancel:function(){d({}),A([]),k(!1),a({type:"problemset/setActionTabs",payload:{}})},children:(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:"c-light-primary mb5 font16",children:"填空题"}),(0,F.jsx)(de.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=R),!_||null!=i&&i.includes(t)||(r=G),(0,F.jsxs)("div",{style:{pointerEvents:_?"none":"auto",marginTop:10},className:"".concat(D," ").concat(r),children:[(0,F.jsxs)("div",{style:{minWidth:80},children:["填空",n+1,"答案:"]}),1===(null==e?void 0:e.model)?(0,F.jsx)(g.Z.TextArea,{className:O,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})}));A(t)}(e,n)},value:t}):(0,F.jsx)(he.Z,{value:t,onChange:function(e){var t=v.map((function(t,i){return c()(c()({},t),{},{value:i===n?e:t.value})}));A(t)}}),_&&(null==i?void 0:i.includes(t))&&(0,F.jsx)("span",{style:{paddingTop:4},className:"iconfont icon-duigou1 font16"}),_&&!(null!=i&&i.includes(t))&&(0,F.jsx)("span",{style:{fontWeight:600,paddingTop:5},className:"iconfont icon-guanbi font16"})]},n)})),_&&(0,F.jsxs)(f.Fragment,{children:[(0,F.jsx)("div",{className:z}),null==l||null===(t=l.standard_answer)||void 0===t?void 0:t.map((function(e,n){var t,i;return(0,F.jsxs)("div",{className:"c-grey-333 mb5",children:[(0,F.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,F.jsx)(he.Z,{value:null==e||null===(i=e.answer_text)||void 0===i?void 0:i.join("、"),disabled:!0})]})})),(0,F.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,F.jsx)("b",{children:"解析: "}),(null==l?void 0:l.analysis)||"暂无解析"]})]})]})})})),ge=t(24334),xe=(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],A=(0,f.useState)([]),y=p()(A,2),w=y[0],_=y[1],k=(0,f.useState)(!1),j=p()(k,2),C=j[0],N=j[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,ue.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 b.ZP.warning("请您作答后再提交"),e.abrupt("return");case 3:C?(i=(0,ue.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,F.jsx)(x.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,F.jsxs)("div",{children:[(0,F.jsx)("div",{className:"c-light-primary mb5 font16",children:"程序填空题"}),(0,F.jsx)(de.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,F.jsx)(de.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:ge.Base64.decode(null==v||null===(a=v.program_attr)||void 0===a?void 0:a.code)}),C&&(0,F.jsxs)(f.Fragment,{children:[(0,F.jsx)("div",{className:z}),null==v||null===(s=v.standard_answer)||void 0===s?void 0:s.map((function(e,n){return(0,F.jsxs)("div",{className:"c-grey-333 mb5",style:{display:"flex",alignItems:"baseline"},children:[(0,F.jsxs)("b",{children:["填空",n+1,"答案: "]}),(0,F.jsx)("pre",{children:(null==e?void 0:e.answer_text)||""})]})})),(0,F.jsxs)("div",{className:"c-grey-333 mb10",children:[(0,F.jsx)("b",{children:"解析: "}),(null==v?void 0:v.analysis)||"暂无解析"]})]})]})})})),Ae=t(95838),be={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"},ye=t(43428),we="drawerWrap___pL0ai",_e="title___D60AS",ke="contentWrap___VyVzG",je="totalInfo___wXopO",Ce="clear___Sbav5",Ne="problemset___jGIix",Be="delete___zwK_M",Ee="deleteIcon___BYp0Q",Se="createBtnWrapper___Qnnet",Te=[],Pe=function(e){Te.forEach((function(n){e.target===n.element||Ie.isParent(e.target,n.element)||n.callbacks.forEach((function(e){return e()}))}))};window.document.body?window.document.body.addEventListener("click",Pe):window.addEventListener("DOMContentLoaded",(function(){window.document.body.addEventListener("click",Pe)}));var Ie={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=Te.filter((function(n){return n.element===e}));return t.length>0?t[0].callbacks.push(n):Te.push({element:e,callbacks:[n]}),{clear:function(){Te=Te.filter((function(n){return n.element!==e}))}}}},Ze=Ie,Le=t(96820),Me=[{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:"程序填空题"}],Re=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=Ze.init(d.current,(function(){a()}))),function(){u.current&&u.current.clear()}}),[d.current]);var p=window.screen.width<=1440;return(0,F.jsx)(ye.Z,{rootClassName:we,placement:"right",closable:!1,mask:!1,open:n,forceRender:!0,width:p?130:160,onClose:a,children:i>0?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:_e,children:"试题篮"}),(0,F.jsxs)("div",{ref:d,className:ke,children:[(0,F.jsxs)(E.Z,{wrap:!1,className:je,align:"middle",children:[(0,F.jsx)(S.Z,{span:14,children:"题目总数"}),(0,F.jsx)(S.Z,{span:4,children:i}),(0,F.jsx)(S.Z,{span:6,className:Ce,onClick:c,children:"清空"})]}),Me.map((function(e){return t[e.stateName]>0&&(0,F.jsxs)(E.Z,{align:"middle",wrap:!1,className:Ne,children:[(0,F.jsx)(S.Z,{span:14,children:e.typeName}),(0,F.jsx)(S.Z,{span:4,children:t[e.stateName]}),(0,F.jsx)(S.Z,{span:6,className:Be,children:(0,F.jsx)("i",{onClick:function(){return s(e.type)},className:"iconfont icon-piliangshanchu3 ".concat(Ee)})})]},e.type)})),(0,F.jsx)(E.Z,{justify:"center",className:Se,children:(0,F.jsx)(Le.Z,{block:!0,type:"primary",onClick:l,children:"创建试卷"})})]})]}):(0,F.jsxs)("div",{ref:d,children:[(0,F.jsx)("div",{className:_e,children:"试题篮"}),(0,F.jsx)(P.Z,{customText:"请选择试题进行组卷",styles:{width:120},imgStyles:{width:120}})]})})},Oe=["problemset","globalSetting","loading","dispatch","onReloadData","onReloadBasketData"],Ge={SINGLE:"单选题",MULTIPLE:"多选题",JUDGMENT:"判断题",COMPLETION:"填空题",SUBJECTIVE:"简答题",PROGRAM:"编程题",PRACTICAL:"实训题",COMBINATION:"组合题",BPROGRAM:"程序填空题"},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,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=(Z()(e,Oe),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,F.jsx)(x.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,F.jsxs)("div",{className:L,children:["是否删除试题篮中的",Ge[null===(n=t.actionTabs)||void 0===n||null===(n=n.params)||void 0===n?void 0:n.type]]})})})),Qe="hide___P6mxu",ze="open___hazgP",Fe="basket___y6VHF",He="count___YEH5s",We="iconWrap___l__Lj",Ve="icon___yiXgh",qe="name___tBtew",Ye=function(e){var n=e.count,t=e.visibleBasket,i=e.onToggleVisible,r=void 0===i?function(){}:i;return(0,F.jsx)(k.Z,{title:"试题篮",placement:"left",children:(0,F.jsxs)("div",{className:"".concat(t?ze:Qe," ").concat(Fe),onClick:r,children:[n>0&&(0,F.jsx)("div",{className:He,children:n}),(0,F.jsx)("span",{className:We,children:(0,F.jsx)("i",{className:"".concat(Ve," iconfont icon-shitilan")})}),(0,F.jsx)("div",{className:qe,children:"试题篮"})]})})},Ue=t(28693),Ke=t(70802),Xe=t(92818),Je=t(34835),$e=t(78241),en=t(28103),nn="drawer___Bi9wT",tn="menu___t0_fV",rn="actived___zWm74",an="actived2___RRfRj",on="subTag___EczBy",sn="directionName___H9hFf",cn="menuDirection___JkwbJ",ln="listItem___kNMPl",un="info___QKQMx",dn="title___eGYd4",pn="titleLeft___ltIGt",fn="description___zs7Ow",mn="menuCourse___PygX2",hn="authorname___D4gcN",vn="tooltip-content___RseJD",gn=t(68930),xn=t(68552),An=t(87777),bn=t(82420),yn=(g.Z.Search,{id:"type",name:"来源",children:[{name:"全部",id:"all",type:"type"},{name:"我的",id:"mine",type:"type"}]}),wn={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"}]},_n=(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)(),x=((0,m.useLocation)(),s.actionTabs,$e.Z.useForm()),A=(p()(x,1)[0],s.shixunLists),y=(0,f.useState)([]),_=p()(y,2),j=_[0],N=_[1],T=(0,f.useState)([]),I=p()(T,2),Z=I[0],L=I[1],M=(0,f.useState)([]),R=p()(M,2),O=R[0],G=R[1],D=(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()(D,2),z=Q[0],H=Q[1];(0,f.useEffect)((function(){"选用实践项目"===s.actionTabs.key&&l({type:"classroomList/getShixunLists",payload:c()({},z)})}),[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,gn.I_)({});case 2:return n=e.sent,e.next=5,(0,bn.ZP)("/api/users/user_setting_groups.json",{method:"get",params:{type:"Shixun"}});case 5:t=e.sent,G([{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){z.tag_level=e,z.sub_discipline_id=n,z.discipline_id=t,z.page=1,H(c()({},z)),l({type:"classroomList/getShixunLists",payload:c()({},z)})},q=function(){l({type:"classroomList/setActionTabs",payload:{}}),H({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,F.jsxs)(ye.Z,{placement:"bottom",height:"100%",closable:!0,onClose:q,open:"选用实践项目"===s.actionTabs.key,rootClassName:nn,footer:(0,F.jsxs)("div",{className:"tc",children:[(0,F.jsx)(C.ZP,{size:"middle",onClick:function(){q(),N([])},style:{marginRight:8},children:"取消"}),(0,F.jsx)(C.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=j[i],!v.includes(n)){e.next=4;break}return b.ZP.info("请勿重复选择:".concat(null==A||null===(t=A.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==j?void 0:j.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(j),N([]);case 13:case"end":return e.stop()}}),e)}))),type:"primary",children:"确定"})]}),children:[(0,F.jsx)("section",{className:"tc",children:(0,F.jsx)(An.Z,{onChange:function(e){H(c()(c()(c()({},z),e),{},{page:1})),l({type:"classroomList/getShixunLists",payload:c()(c()(c()({},z),e),{},{page:1})})}})}),(0,F.jsxs)("section",{className:"edu-container",children:[(0,F.jsxs)("ul",{className:tn,children:[(0,F.jsx)("li",{children:yn.name}),null==yn||null===(n=yn.children)||void 0===n?void 0:n.map((function(e,n){return(0,F.jsx)("li",{className:z[yn.id]==e.id?rn:"",onClick:function(){z[yn.id]=e.id,z.page=1,H(c()({},z)),l({type:"classroomList/getShixunLists",payload:c()({},z)})},children:(0,F.jsx)("strong",{children:e.name})},e.id)}))]}),(0,F.jsxs)("ul",{className:cn,children:[(0,F.jsx)("li",{className:sn,children:"方向"}),(0,F.jsx)("li",{className:z.discipline_id?"":rn,onClick:function(){V(null,null,null)},children:(0,F.jsx)("strong",{children:"全部"})}),null==Z?void 0:Z.map((function(e,n){return(0,F.jsxs)("li",{className:z.discipline_id==e.id?rn:"",children:[(0,F.jsx)("strong",{onClick:function(){V(1,null,e.id)},children:e.name}),(0,F.jsx)("div",{children:e.sub_disciplines.map((function(n,t){return(0,F.jsxs)("div",{className:"mt5",children:[(0,F.jsx)("div",{className:z.sub_discipline_id==n.id?"".concat(an," ").concat(on):on,onClick:function(){V(2,n.id,e.id)},children:n.name}),(0,F.jsx)("ul",{className:"mt5",children:n.tags&&n.tags.map((function(n,t){return(0,F.jsx)("li",{className:z.sub_discipline_id==n.id&&3===z.tag_level?an:"",onClick:function(){V(3,n.id,e.id)},children:n.name},t)}))})]},t)}))})]},n)}))]}),"mine"===z.type&&(0,F.jsxs)("ul",{className:tn,children:[(0,F.jsx)("li",{children:"目录"}),null==O?void 0:O.map((function(e,n){return(0,F.jsx)("li",{className:z.group_id==e.id?rn:"",onClick:function(){z.group_id=e.id,z.page=1,H(c()({},z)),l({type:"classroomList/getShixunLists",payload:c()({},z)})},children:(0,F.jsx)("strong",{children:e.name})},e.name)}))]}),(0,F.jsxs)("ul",{className:tn,children:[(0,F.jsx)("li",{children:wn.name}),null==wn||null===(t=wn.children)||void 0===t?void 0:t.map((function(e,n){return(0,F.jsx)("li",{className:z[wn.id]==e.id?rn:"",onClick:function(){z[wn.id]=e.id,z.page=1,H(c()({},z)),l({type:"classroomList/getShixunLists",payload:c()({},z)})},children:(0,F.jsx)("strong",{children:e.name})},e.name)}))]}),(0,F.jsxs)(E.Z,{children:[(0,F.jsx)(S.Z,{flex:"1",children:(0,F.jsx)("div",{className:mn,style:{margin:"0px 15px"},children:(0,F.jsxs)("ul",{children:[(0,F.jsxs)("li",{children:["已选",(0,F.jsx)("span",{className:"c-blue",children:j.length}),"个"]}),(0,F.jsxs)("li",{children:["共",(0,F.jsx)("span",{className:"c-blue",children:A.shixuns_count}),"个"]}),(0,F.jsxs)("li",{className:"current",onClick:function(){var e=c()(c()({},z),{},{order:"asc"===z.order?"desc":"asc"});H(e),l({type:"classroomList/getShixunLists",payload:e})},children:["学习人数",(0,F.jsx)("p",{className:"edu-sorter current ".concat(z.order),children:"asc"===z.order?(0,F.jsx)("span",{className:"iconfont icon-sanjiaoxing-up"}):(0,F.jsx)("span",{className:"iconfont icon-sanjiaoxing-down"})})]})]})})}),(0,F.jsx)(S.Z,{className:"c-grey-999",children:"mine"===(null==z?void 0:z.type)?"已静默/公开发布的实践项目进入本列表备选":"仅已公开发布的实践项目进入本列表备选"})]}),null==A||null===(i=A.shixun_list)||void 0===i?void 0:i.map((function(e,n){return(0,F.jsxs)("div",{className:ln,children:[(0,F.jsx)(w.Z,{checked:j.includes(e.id),value:e.id,disabled:null==e?void 0:e.need_authorize,onChange:function(n){j.indexOf(e.id);j.indexOf(e.id)>-1?N(j.filter((function(n){return n!==e.id}))):N(j.concat(e.id))}}),(0,F.jsxs)("div",{className:un,children:[(0,F.jsx)("div",{className:dn,children:(0,F.jsxs)("div",{className:pn,children:[(0,F.jsx)("a",{className:"c-black",href:"/shixuns/".concat(null==e?void 0:e.identifier,"/challenges"),target:"_blank",children:(0,F.jsx)("strong",{className:"font16",dangerouslySetInnerHTML:{__html:e.title}})}),(null==e?void 0:e.need_authorize)&&(0,F.jsx)("span",{onClick:function(){(0,xn.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10",children:"需授权"}),(0,Je.Ny)()&&1===(null==e?void 0:e.mark_status)&&(0,F.jsx)(k.Z,{title:null==e?void 0:e.mark_content,children:(0,F.jsx)("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10",children:"正常"})}),(0,Je.Ny)()&&2===(null==e?void 0:e.mark_status)&&(0,F.jsx)(k.Z,{title:null==e?void 0:e.mark_content,children:(0,F.jsx)("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10",children:"需完善"})}),(0,Je.Ny)()&&3===(null==e?void 0:e.mark_status)&&(0,F.jsx)(k.Z,{title:null==e?void 0:e.mark_content,children:(0,F.jsx)("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10",children:"无法使用"})})]})}),(0,F.jsx)("div",{className:"flex-wrp mt10 font14 c-light-black",children:(0,F.jsx)("span",{className:fn,dangerouslySetInnerHTML:{__html:e.description}})}),(0,F.jsx)("div",{className:" mt15",children:e.challenge_names.map((function(e,n){return(0,F.jsxs)("span",{className:"mr30 font12",children:["第",n+1,"关 ",e," "]},n)}))}),(0,F.jsx)(en.Z,{dashed:!0}),(0,F.jsxs)("div",{className:"c-light-black mt20 font12",style:{display:"flex",justifyContent:"space-between"},children:[(0,F.jsxs)("div",{children:[(0,F.jsx)(k.Z,{overlayClassName:vn,title:(0,F.jsx)("div",{children:(0,F.jsx)("span",{dangerouslySetInnerHTML:{__html:null==e?void 0:e.member_user_names}})}),children:(0,F.jsx)("span",{className:hn,dangerouslySetInnerHTML:{__html:null==e?void 0:e.member_user_names}})}),e.author_school_name&&(0,F.jsx)(f.Fragment,{children:(0,F.jsx)("span",{dangerouslySetInnerHTML:{__html:e.author_school_name}})})]}),(0,F.jsxs)("div",{children:[(0,F.jsxs)("span",{className:"mr30",children:["难度系数 ",e.level]}),(0,F.jsxs)("span",{children:["学习人数 ",e.study_count]})]})]})]})]},n)})),0===(null==A||null===(a=A.shixun_list)||void 0===a?void 0:a.length)&&(0,F.jsx)(P.Z,{}),(0,F.jsx)("p",{})]}),(0,F.jsx)("div",{className:"tc mt20",children:(0,F.jsx)(B.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:10,showSizeChanger:!1,current:z.page||1,showQuickJumper:!0,total:null==A?void 0:A.shixuns_count,onChange:function(e){var n=c()(c()({},z),{},{page:e});H(n),l({type:"classroomList/getShixunLists",payload:n})}})})]},"bottom")})),kn=t(37572),jn="operating___srUHx",Cn="tip___F8nWU",Nn=t(11243),Bn=function(e,n){var t,i=e.data,r=e.height,a=void 0===r?400:r,o=$e.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,F.jsx)("div",{className:jn,style:{marginBottom:"0"},children:(0,F.jsxs)($e.Z,{form:s,scrollToFirstError:!0,onValuesChange:function(){m(c()({},s.getFieldsValue()))},children:[(0,F.jsx)($e.Z.Item,{name:"name",label:"标题:",rules:[{required:!0,message:"请输入标题"},{max:30,message:"请输入标题,最大限制30个字符"},{whitespace:!0,message:"请勿输入空格"}],children:(0,F.jsx)(g.Z,{placeholder:"请输入标题,最大限制30个字符",suffix:"".concat((null===(t=d.name)||void 0===t?void 0:t.length)||0,"/30")})}),(0,F.jsx)($e.Z.Item,{name:"languages",label:"编程语言",rules:[{required:!0,message:"请选择编程语言"}],children:(0,F.jsxs)(w.Z.Group,{children:[(0,F.jsx)(w.Z,{value:"c",children:"C"}),(0,F.jsx)(w.Z,{value:"c++",children:"C++"}),(0,F.jsx)(w.Z,{value:"java",children:"Java"}),(0,F.jsx)(w.Z,{value:"python",children:"Python"})]})}),(0,F.jsx)("div",{className:Cn,children:"选择支持以下编程试题进行编译的语言"}),(0,F.jsx)("div",{style:{margin:"20px 0 12px 0px"},children:"说明"}),(0,F.jsx)($e.Z.Item,{name:"description",children:(0,F.jsx)(Nn.Z,{height:a,defaultValue:d.description||"",watch:!0})})]})})},En=(0,f.forwardRef)(Bn),Sn=t(73501),Tn=t(5623),Pn=t(88289),In=v.Z.TabPane,Zn=g.Z.Search,Ln=g.Z.TextArea,Mn=function(e){return e.Mine="0",e.Public="1",e.Collection="2",e.TeachGroupShare="3",e}({}),Rn=(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=e.classroomList,d=e.problemset,I=e.user,Z=(e.globalSetting,e.loading),L=e.dispatch,M=(e.match,e.shixunHomeworks),R=(0,m.useLocation)(),O=(0,m.useParams)(),G=(0,m.useSearchParams)(),D=p()(G,1)[0],Q=(0,f.useRef)(),z=(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:D.get("id")||null,exam_id:O.id||null,exercise_id:O.categoryId||null}),H=p()(z,2),V=H[0],Y=H[1],U=(0,f.useState)(0),K=p()(U,2),J=K[0],$=K[1],ee=(0,f.useState)([]),ne=p()(ee,2),te=ne[0],ie=ne[1],oe=(0,f.useState)(Mn.Mine),ce=p()(oe,2),de=ce[0],he=ce[1],ge=(0,f.useState)(0),ye=p()(ge,2),we=ye[0],_e=ye[1],ke=(0,f.useState)(-1),je=p()(ke,2),Ce=je[0],Ne=je[1],Be=(0,f.useState)([]),Ee=p()(Be,2),Se=Ee[0],Te=Ee[1],Pe=(0,f.useState)(!1),Ie=p()(Pe,2),Ze=(Ie[0],Ie[1]),Le=(0,f.useState)([]),Me=p()(Le,2),Oe=Me[0],Ge=Me[1],Qe=(0,f.useState)(0),ze=p()(Qe,2),Fe=ze[0],He=ze[1],We=(0,f.useState)(!1),Ve=p()(We,2),qe=Ve[0],$e=Ve[1],en=(0,f.useState)(!1),nn=p()(en,2),tn=nn[0],rn=nn[1],an=(0,f.useState)(),on=p()(an,2),sn=on[0],cn=on[1],ln=(0,f.useState)(!1),un=p()(ln,2),dn=un[0],pn=un[1],fn=(0,f.useRef)(!1),mn=((0,f.useRef)(""),(0,f.useRef)()),hn=(0,f.useRef)(),vn=(0,f.useRef)(),gn=(0,f.useState)(),xn=p()(gn,2),An=xn[0],yn=xn[1],wn=(0,f.useState)([]),jn=p()(wn,2),Cn=jn[0],Nn=jn[1],Bn=(0,f.useRef)(!1),Rn="/problemset"===R.pathname,On=null===(n=R.pathname)||void 0===n?void 0:n.includes("program_homework"),Gn=On&&O.categoryId&&null!==(t=R.pathname)&&void 0!==t&&t.includes("edit")?O.categoryId:"",Dn=Gn?"编辑编程作业":"新建编程作业",Qn=(0,f.useState)({}),zn=p()(Qn,2),Fn=zn[0],Hn=zn[1],Wn=(0,f.useState)(!1),Vn=p()(Wn,2),qn=Vn[0],Yn=Vn[1],Un=I.userInfo||{},Kn=Un.admin,Xn=Un.business,Jn=Un.is_shixun_marker,$n=Un.is_teacher,et=Un.user_identity,nt=Kn||Xn||Jn||$n||"学生"!==et,tt=(0,f.useState)("按更新时间降序"),it=p()(tt,2),rt=it[0],at=it[1],ot=M.commonHomeWorkAddDefaultData,st=(0,f.useState)([]),ct=p()(st,2),lt=ct[0],ut=ct[1],dt=(0,f.useRef)(null),pt=(0,f.useState)(!1),ft=p()(pt,2),mt=ft[0],ht=ft[1],vt=(0,f.useState)([]),gt=p()(vt,2),xt=gt[0],At=gt[1],bt=(0,f.useState)(""),yt=p()(bt,2),wt=yt[0],_t=yt[1],kt=(0,f.useState)(!1),jt=p()(kt,2),Ct=jt[0],Nt=jt[1],Bt=(0,f.useRef)(null),Et=[{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"}],St=[{name:"编程题",value:"PROGRAM"},{name:"单选题",value:"SINGLE"},{name:"多选题",value:"MULTIPLE"},{name:"判断题",value:"JUDGMENT"},{name:"填空题",value:"COMPLETION"},{name:"简答题",value:"SUBJECTIVE"},{name:"组合题",value:"COMBINATION"},{name:"程序填空题",value:"BPROGRAM"}];(0,f.useEffect)((function(){return document.body.setAttribute("data-custom","initial"),function(){document.body.removeAttribute("data-custom")}}),[]);var Tt=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,re.$c)({id:Gn});case 2:null!=(n=e.sent)&&n.name&&(i={description:n.description,languages:n.languages,name:n.name},Bt.current.form.setFieldsValue(i),Hn(c()({},i)),At(o()(n.data)),Nn(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(){Gn&&Tt()}),[Gn]),(0,f.useEffect)((function(){var e=(null==D?void 0:D.get("group_id"))||0;L({type:"problemset/getDisciplines",payload:{source:"question",group_id:e,group_type:de}}),V.group_id=Number(e),Y(V),Lt(V).then((function(e){ht(!1)})),Zt(V),Mt(),It()}),[]),(0,f.useEffect)((function(){return L({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),L({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1}),function(){L({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),L({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}}),[]),(0,f.useEffect)((function(){return L({type:"globalSetting/headerFixedToggle",payload:!0}),function(){L({type:"globalSetting/headerFixedToggle",payload:!1})}}),[]),(0,f.useEffect)((function(){return L({type:"globalSetting/headerFooterToggle",payload:Rn}),function(){L({type:"globalSetting/headerFooterToggle",payload:!0})}}),[]),(0,f.useEffect)((function(){(0,Xe.Dk)(On?Dn:"试题库")}),[On,Dn]);var Pt=function(e){var n=0;return null==sn||sn.forEach((function(t){t.type===e&&(n=t.count)})),n},It=function(){var e=u()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:L({type:"problemset/getTeachGroupData"});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){var e=d.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,p=e.single_questions_count,f=void 0===p?0:p,m=e.subjective_questions_count,h=void 0===m?0:m,v=e.combination_questions_count,g=void 0===v?0:v,x=e.bprogram_questions_count;He(t+r+o+c+u+f+h+g+(void 0===x?0:x))}),[d.basketData]);var Zt=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),ht(!0),e.next=5,L({type:"problemset/getGroup",payload:c()({},i)});case 5:return null!=(a=e.sent)&&a.data&&ut((null==a?void 0:a.data)||[]),a&&(Ge((null==a?void 0:a.navigation)||[]),(null==a||null===(o=a.navigation)||void 0===o?void 0:o.length)>1?_i(!1):_i(!0)),On||t||Nn([]),ht(!1),e.abrupt("return",a);case 11:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),Lt=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=On?"PROGRAM":n.item_type,i.keyword=n.keyword||"",ht(!0),e.next=6,L({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 $(a.items_count||0),cn(a.item_types),ie(a.items||[]),Te(a.tag_disciplines||[]),yn(a.used_shixun_ids||[]),Rt(a.items||[]),On||t||Nn([]),_e((null==a?void 0:a.added_num)||0),ht(!1),e.abrupt("return",a);case 18:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),Mt=function(){L({type:"problemset/getBasketList",payload:{}})},Rt=function(e){var n=e.every((function(e){var n;return 0===(null===(n=e.program_attr)||void 0===n?void 0:n.status)}));fn.current=n},Ot=(0,f.useState)(!1),Gt=p()(Ot,2),Dt=Gt[0],Qt=Gt[1],zt=function(e,n){V.page=e,V.per_page=n,Y(V),Lt(V,!0),Zt(V,!0)},Ft=function(e){V.discipline_id="",V.sub_discipline_id="",V.tag_discipline_id="",V.item_type=null,V.difficulty=null,V.page=1,V.keyword=e,delete V.id,console.log(V,"paramsparamsparamsparamsparams"),e?(rn(!0),(0,Sn.tk)({name:e,copywriting:e,position:On?"Practice":"ItemBank"})):rn(!1),Ne(-1),Y(V),Lt(V)},Ht=function(){V.per_page=20,Y(V),Lt(V),pn(!1)},Wt=function(e){var n=e.length===te.length&&V.page>1?V.page-1:V.page;V.page=n,V.per_page=20,Mt(),Y(V),Lt(V),Zt(V)},Vt=function(){L({type:"problemset/setActionTabs",payload:{key:"Problemset-PublicReview"}})},qt=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,re.lS)({id:n});case 3:e.t0=e.sent,e.next=9;break;case 6:return e.next=8,(0,re.s)({id:n});case 8:e.t0=e.sent;case 9:0===(null==(i=e.t0)?void 0:i.status)&&Ht();case 11:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),Yt=function(){var e=u()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ri(n);case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ut=function(){var e=u()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Zi([n]);case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Kt=function(e){hn.current="",mn.current="",x.Z.confirm({centered:!0,width:530,icon:null,okText:"确定",cancelText:"取消",title:"试题纠错",content:(0,F.jsxs)("div",{className:"font14",children:[(0,F.jsx)("div",{children:"错误类型:"}),(0,F.jsxs)(A.ZP.Group,{className:"mt10",onChange:function(e){return mn.current=e.target.value},children:[(0,F.jsx)(A.ZP,{value:"题干",children:"题干"}),(0,F.jsx)(A.ZP,{value:"答案",children:"答案"}),(0,F.jsx)(A.ZP,{value:"解析",children:"解析"}),(0,F.jsx)(A.ZP,{value:"属性",children:"属性"}),(0,F.jsx)(A.ZP,{value:"其它",children:"其它"})]}),(0,F.jsx)("div",{className:"mt10",children:"错误描述:"}),(0,F.jsx)(Ln,{className:"mt10",rows:4,defaultValue:hn.current,onChange:function(e){return hn.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(mn.current&&hn.current){n.next=3;break}return b.ZP.info("请填写错误类型和错误描述!"),n.abrupt("return",i());case 3:return n.next=5,(0,re.L5)({id:e,clazz:mn.current,description:hn.current});case 5:0===n.sent.status&&b.ZP.info("添加成功!"),t();case 8:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())}})},Xt=(0,f.useRef)(),Jt=(0,f.useState)([]),$t=p()(Jt,2),ei=$t[0],ni=$t[1],ti=(0,f.useState)([]),ii=p()(ti,2),ri=ii[0],ai=ii[1],oi=(0,f.useState)(!1),si=p()(oi,2),ci=si[0],li=si[1],ui=(0,f.useState)({}),di=p()(ui,2),pi=di[0],fi=di[1],mi=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,bn.ZP)("/api/tag_disciplines.json",{method:"get",params:{sub_discipline_id:null==n?void 0:n.sub_discipline_id}});case 2:t=e.sent,ni(null==t?void 0:t.tag_disciplines);case 4: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:return e.next=2,mi(n);case 2:ai(o()(null==n?void 0:n.tag_discipline_ids)),li(!0),fi(n);case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),vi=function(e){L({type:"problemset/setActionTabs",payload:{key:"Problemset-SetPrivate",params:{id:e}}})},gi=function(e){L({type:"problemset/setActionTabs",payload:{key:"Problemset-Delete",params:{id:e}}})},xi=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,L({type:"problemset/startExperience",payload:{id:i}});case 5:if(0!==(a=e.sent).status){e.next=10;break}return o=a.identifier,(0,Xe.xg)("/myproblems/".concat(o)),e.abrupt("return");case 10:return b.ZP.warning(a.message),e.abrupt("return");case 12:L({type:"problemset/setActionTabs",payload:{key:t,params:n}});case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ai=function(){var e=u()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!V.exam_id){e.next=6;break}return e.next=3,(0,re.fY)({item_id:n,id:V.exam_id});case 3:return 0===e.sent.status&&Ht(),e.abrupt("return");case 6:if(null==V||!V.exercise_id){e.next=12;break}return e.next=9,(0,bn.ZP)("/api/exercise_questions/delete_by_item_bank.json ",{method:"post",body:{exercise_id:null==V?void 0:V.exercise_id,item_bank_ids:[n]}});case 9:return 0===e.sent.status&&Ht(),e.abrupt("return");case 12:return e.next=14,L({type:"problemset/cancel",payload:{id:n,item_bank:1}});case 14:0===e.sent.status&&(Ht(),Mt());case 16:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),bi=(0,f.useState)(!1),yi=p()(bi,2),wi=yi[0],_i=yi[1],ki=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],L({type:"problemset/getDisciplines",payload:{source:"question",group_id:Math.abs(n),group_type:"3"===de?Mn.TeachGroupShare:Mn.Mine}}),V.discipline_id="",V.sub_discipline_id="",V.tag_discipline_id="",V.page=1,V.per_page=20,V.group_id=Math.abs(n),Ne(-1),Y(V),t?((i=JSON.parse(JSON.stringify(Oe))).splice(i.length-2,2),V.parents=i):V.parents=[].concat(o()(Oe||[{id:0,name:"根目录"}]),o()((null===(a=(0,Ke.b)(Q.current,n))||void 0===a?void 0:a.map((function(e){return{id:e.id,name:e.name}})))||[])),Zt(c()({},V)).then((function(e){var t;Ge(null==e?void 0:e.navigation),(null==e||null===(t=e.navigation)||void 0===t?void 0:t.length)>1&&n?_i(!0):_i(!1)})),Lt(V);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){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!V.exam_id){e.next=6;break}return e.next=3,(0,re.zh)({exam_id:V.exam_id,item_bank_ids:[n]});case 3:return 0===e.sent.status&&Ht(),e.abrupt("return");case 6:if(null==V||!V.exercise_id){e.next=12;break}return e.next=9,(0,bn.ZP)("/api/exercises/".concat(null==V?void 0:V.exercise_id,"/select_questions.json"),{method:"post",body:{item_bank_ids:[n]}});case 9:return 0===e.sent.status&&Ht(),e.abrupt("return");case 12:if(200!==Fe){e.next=15;break}return b.ZP.info("已选200个试题(不能在选用更多试题)"),e.abrupt("return");case 15:return e.next=17,L({type:"problemset/select",payload:{item_bank_ids:[n]}});case 17:0===e.sent.status&&(Ht(),Mt());case 19:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ci=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!=Cn&&Cn.length){e.next=3;break}return e.abrupt("return",b.ZP.info("请先选择试题"));case 3:vn.current=[0],x.Z.confirm({centered:!0,width:500,okText:"确定",cancelText:"取消",title:"加入我的题库",maskClosable:!0,className:"custom-modal-divider",icon:null,content:(0,F.jsxs)("div",{className:"font14 ".concat(be.overflow),style:{maxHeight:500,overflow:"auto"},children:[(0,F.jsx)("p",{className:"c-grey-333",children:"请选择加入的文件夹"}),(0,F.jsx)(y.Z,{spinning:mt,children:(0,F.jsx)(q.Z,{defaultValue:!0,value:vn.current,onChange:function(e){return vn.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,re.Rp)({id:n,group_id:null===(t=vn.current)||void 0===t?void 0:t[0]});case 2:i=e.sent,vn.current=[],0===(null==i?void 0:i.status)&&(Zt(V),Ht(),b.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)}}(),Ni=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!=Cn&&Cn.length){e.next=3;break}return e.abrupt("return",b.ZP.info("请先选择试题"));case 3:vn.current=[0],x.Z.confirm({centered:!0,width:500,okText:"确定",cancelText:"取消",title:"移动到",maskClosable:!0,className:"custom-modal-divider",icon:null,content:(0,F.jsxs)("div",{className:"font14 ".concat(be.overflow),style:{maxHeight:500,overflow:"auto"},children:[(0,F.jsxs)("div",{className:be.tips,children:[(0,F.jsx)("div",{children:"提示:"}),(0,F.jsx)("div",{children:"1.若将已共享试题移入文件夹,则会撤销此试题原有的共享选项,以文件夹的共享选项为主;"}),(0,F.jsx)("div",{children:"2.若将已共享文件夹内的试题移出至根目录,则会撤销试题所有的共享选项。"})]}),(0,F.jsx)("p",{className:"c-grey-333",children:"请选择需要移动到的文件夹"}),(0,F.jsx)(y.Z,{spinning:mt,children:(0,F.jsx)(q.Z,{defaultValue:!0,value:vn.current,onChange:function(e){return vn.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,re.LS)({ids:n?[n]:Cn,groups_ids:null===(t=vn.current)||void 0===t?void 0:t[0]});case 2:i=e.sent,console.log("移动试题到指定文件夹的res",i),vn.current=[],0===(null==i?void 0:i.status)&&(Zt(V),Ht());case 6: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)}}(),Bi=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,re.hg)({clazz:"ItemBank",id:n});case 3:t=e.sent,console.log(t,"撤销共享触发的res"),i=(null==t?void 0:t.groups)||[],vn.current=i.filter((function(e){return e.is_share})).map((function(e){return e.id})),x.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"共享至教研团队",maskClosable:!0,icon:null,content:(0,F.jsxs)("div",{className:"font14 ".concat(be.overflow),children:[(0,F.jsx)("p",{className:"".concat(be.tips),children:"提示:共享后的试题支持团队成员进行编辑,如需撤销本题对选中教研团队的分享,取消选中并确定即可。"}),(0,F.jsx)(w.Z.Group,{className:be.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,F.jsxs)(w.Z,{value:e.id,onChange:function(){e.is_share=!e.is_share,console.log(i,"选中的data"),vn.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 vn.current=i.filter((function(e){return e.is_share})).map((function(e){return e.id})),console.log(vn.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,re.GW)({ids:[n],clazz:"ItemBank",group_ids:vn.current});case 3:return o=e.sent,vn.current=[],0===(null==o?void 0:o.status)&&(b.ZP.info("操作成功"),Ht()),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)}}(),Ei=function(e){var n=Cn;if(null==n||!n.length)return b.ZP.info("请先选择试题");Fe+n.length>200&&e&&Rn?b.ZP.info("试题篮中最多可再加入".concat(200-Fe,"题,当前选中").concat(n.length,"题,请重新选择")):e?Si(n):Ti(n)},Si=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),te.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,ue.remove)(t,(function(n){return n===e.id})))})),x.Z.confirm({width:530,title:"提示",className:"custom-modal-divider ",icon:null,centered:!0,okText:"确定",cancelText:"取消",content:(0,F.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(!V.exam_id){e.next=6;break}return e.next=3,(0,re.zh)({exam_id:V.exam_id,item_bank_ids:t});case 3:n=e.sent,e.next=15;break;case 6:if(null==V||!V.exercise_id){e.next=12;break}return e.next=9,(0,bn.ZP)("/api/exercises/".concat(null==V?void 0:V.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,L({type:"problemset/select",payload:{item_bank_ids:t}});case 14:n=e.sent;case 15:0===n.status&&(Ht(),Mt());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)}}(),Ti=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(!V.exam_id){e.next=6;break}return e.next=3,(0,bn.ZP)("/api/examination_banks/".concat(V.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==V||!V.exercise_id){e.next=12;break}return e.next=9,(0,bn.ZP)("/api/exercise_questions/delete_by_item_bank.json ",{method:"post",body:{exercise_id:null==V?void 0:V.exercise_id,item_bank_ids:n}});case 9:t=e.sent,e.next=15;break;case 12:return e.next=14,L({type:"problemset/unselectAll",payload:{item_ids:n}});case 14:t=e.sent;case 15:0===t.status&&(Ht(),Mt());case 16:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Pi=function(){var e=u()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Rn||200!==Fe){e.next=3;break}return b.ZP.info("已选200个试题(不能在选用更多试题)"),e.abrupt("return");case 3:if(!V.exam_id){e.next=10;break}return e.next=6,(0,re.zh)({exam_id:V.exam_id,shixun_ids:n});case 6:0===e.sent.status&&Ht(),e.next=14;break;case 10:return e.next=12,L({type:"problemset/select",payload:{shixun_ids:n}});case 12:0===e.sent.status&&(Mt(),Ht());case 14:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Ii=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=d.teachGroupData)&&void 0!==t&&null!==(t=t.groups)&&void 0!==t&&t.length){e.next=2;break}return e.abrupt("return",b.ZP.info("您暂未创建或加入任何教研团队,请前往“我的个人中心-教研团队”查看"));case 2:return e.next=4,(0,bn.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:vn.current=null==a?void 0:a.data,x.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"共享至教研团队",maskClosable:!0,icon:null,content:(0,F.jsxs)("div",{className:"font14 ".concat(be.overflow),children:[(0,F.jsxs)("div",{className:be.tips,children:[(0,F.jsx)("div",{children:"提示:"}),(0,F.jsx)("div",{children:"1.共享至教研团队后,在已共享的文件夹添加、删除试题或子文件夹等操作会同步至团队文件夹。若新试题无需共享,可新建文件夹管理试题。"}),(0,F.jsx)("div",{children:"2.如需撤销当前文件夹对选中教研团队的分享,取消选中并确定即可。"})]}),(0,F.jsx)(w.Z.Group,{className:be.checkbox,defaultValue:vn.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,F.jsxs)(w.Z,{disabled:!e.can_share,value:e.id,onChange:function(){e.is_share=!e.is_share,console.log(a.data,"res.data"),vn.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=vn.current)&&void 0!==o&&o.length){e.next=3;break}return b.ZP.info("请先选择教研团队"),e.abrupt("return",i());case 3:return e.next=5,(0,bn.ZP)("/api/teach_group_shares/item_banks_group.json",{method:"post",body:{teach_groups:vn.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)&&(b.ZP.success("操作成功"),vn.current=[],Nn([]),Ht(),Zt(V),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)}}(),Zi=function(e){var n,t;if(console.log("共享试题触发"),null===(n=d.teachGroupData)||void 0===n||null===(n=n.groups)||void 0===n||!n.length)return b.ZP.info("您暂未创建或加入任何教研团队,请前往“我的个人中心-教研团队”查看");x.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"共享至教研团队",maskClosable:!0,icon:null,content:(0,F.jsxs)("div",{className:"font14 ".concat(be.overflow),children:[(0,F.jsx)("div",{className:be.tips,children:"提示:共享后的试题支持团队成员进行编辑,如需撤销本题对选中教研团队的分享,取消选中并确定即可。"}),(0,F.jsx)(w.Z.Group,{className:be.checkbox,defaultValue:vn.current,onChange:function(e){return vn.current=e},children:null===(t=d.teachGroupData)||void 0===t||null===(t=t.groups)||void 0===t?void 0:t.map((function(e){return(0,F.jsx)(w.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=vn.current)&&void 0!==a&&a.length){n.next=3;break}return b.ZP.info("请先选择教研团队"),n.abrupt("return",i());case 3:return n.next=5,(0,re.GW)({ids:e||Cn,clazz:"ItemBank",group_ids:vn.current});case 5:0===(null==(o=n.sent)?void 0:o.status)&&(b.ZP.info("所选试题成功分享至教研团队"),vn.current=[],Nn([]),Ht(),t());case 7:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())},onCancel:function(){console.log("取消了"),vn.current=[]}})},Li=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 Ze(!0),e.next=3,(0,re.nD)({ids:Cn});case 3:n=e.sent,Ze(!1),0===(null==n?void 0:n.status)&&x.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(){Wt(new Array(n.success))}});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();null!=Cn&&Cn.length?x.Z.confirm({centered:!0,width:530,className:"custom-modal-divider ",okText:"确定",title:"提示",cancelText:"取消",icon:null,content:"本次选中了".concat(null==Cn?void 0:Cn.length,"条试题进行删除操作,删除后将无法恢复,请确认是否删除?"),onOk:e}):b.ZP.warning("请选择需要删除的试题")},Mi=function(){var e,n;return null!=Cn&&Cn.length?null!=te&&null!==(e=te.filter((function(e){return Cn.includes(e.id)})))&&void 0!==e&&e.every((function(e){return e.public}))?b.ZP.info("所选试题已公开,请重新选择"):null!=te&&null!==(n=te.filter((function(e){return Cn.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)}))?b.ZP.info("已选题中存在未发布的编程题"):void("1"===window.localStorage.getItem("problemset-set-public-hint-flag")||I.userInfo.professional_certification?Ri():x.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"公开规则告知",maskClosable:!0,icon:null,content:(0,F.jsxs)("div",{className:"font16 c-grey-333",children:["公开并经平台审核后,该题将在公共试题库可见,Educoder所有用户均可使用该题。",(0,F.jsx)("br",{}),"公开后不可修改,但可以撤销;撤销公开后可以修改。",(0,F.jsx)("br",{}),"是否确认申请公开?",(0,F.jsx)("br",{}),(0,F.jsx)(w.Z,{className:"mt10",defaultChecked:!1,onChange:function(e){return Bn.current=e.target.checked},children:"不再提示"})]}),onOk:function(){Ri()}})):b.ZP.info("请先选择试题")},Ri=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=de===Mn.TeachGroupShare?1:2,e.next=3,(0,re.Qp)({ids:n?[n]:Cn,source:t});case 3:0===e.sent.status&&(Bn.current&&window.localStorage.setItem("problemset-set-public-hint-flag","1"),Bn.current=!1,Nn([]),Ht());case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Oi=function(e){var n;x.Z.confirm({centered:!0,icon:null,title:"提示",className:"custom-modal-divider",content:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{className:be.modalContent,children:"发布后即可应用到自己管理的课堂"}),(0,F.jsx)("div",{className:be.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,re.MZ)({identifier:e});case 2:0===(null==(t=n.sent)?void 0:t.status)&&(b.ZP.success("发布成功"),Ht());case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})},Gi=function(e){var n;x.Z.confirm({centered:!0,icon:null,title:"提示",className:"custom-modal-divider",content:(0,F.jsx)("p",{className:be.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,re.sD)({identifier:e});case 2:0===(null==(t=n.sent)?void 0:t.status)&&(b.ZP.success("撤销发布成功"),Ht());case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})},Di=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),L({type:"problemset/getDisciplines",payload:{source:"question",teach_group_id:n,group_id:V.group_id,group_type:Mn.TeachGroupShare}}),V.page=1,V.clazz="ItemBanksGroup",V.teach_group_id=n,delete V.id,V.group_id=0,Y(c()({},V)),Lt(V),Zt(V);case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Qi=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,re.bF)({ids:Cn});case 2:n=e.sent,t=n.data||{},i=t.unpublish_program_question_count,a=t.total_item_banks,0===i?x.Z.error({title:"错误",content:(0,F.jsx)("span",{children:"发布错误!请选择尚未发布的编程题进行发布"}),centered:!0,okText:"确认"}):x.Z.confirm({title:"提示",content:(0,F.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,re.dt)({ids:Cn});case 2:0===e.sent.status&&(b.ZP.success("发布成功"),Ht());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)}}(),zi=(_.Z,nt&&_.Z.Item,nt&&_.Z.Item,de===Mn.Mine&&Rn&&_.Z.Item,de===Mn.Mine&&Rn&&_.Z.Item,de===Mn.Mine&&Rn&&_.Z.Item,de===Mn.Mine&&Rn&&_.Z.Item,function(e){if(On)if((null==xt?void 0:xt.length)<=0){var n=te.filter((function(n){return e.includes(n.id)}));At(o()(n)),Nn(null==n?void 0:n.map((function(e){return e.id})))}else if(e.length>xt.length){var t,i=te.filter((function(n){return e.includes(n.id)})),r=xt.map((function(e){return e.id})),a=i.filter((function(e){return!r.includes(e.id)}));At([].concat(o()(xt),o()(a))),Nn(null===(t=[].concat(o()(xt),o()(a)))||void 0===t?void 0:t.map((function(e){return e.id})))}else{var s=xt.filter((function(n){return e.includes(n.id)}));At(o()(s)),Nn(null==s?void 0:s.map((function(e){return e.id})))}else Nn(e)}),Fi=function(e){if(On)if(e){var n,t=null==xt?void 0:xt.map((function(e){return e.id})),i=te.filter((function(e){return!t.includes(e.id)}));At([].concat(o()(xt),o()(i))),Nn(null===(n=[].concat(o()(xt),o()(i)))||void 0===n?void 0:n.map((function(e){return e.id})))}else{var r=null==te?void 0:te.map((function(e){return e.id})),a=xt.filter((function(e){return!r.includes(e.id)}));At(o()(a)),Nn(null==a?void 0:a.map((function(e){return e.id})))}else Nn(e?null==te?void 0:te.map((function(e){return e.id})):[])},Hi=[{type:"SINGLE",name:"单选题"},{type:"MULTIPLE",name:"多选题"},{type:"JUDGMENT",name:"判断题"},{type:"PROGRAM",name:"编程题"},{type:"SUBJECTIVE",name:"简答题"},{type:"COMPLETION",name:"填空题"},{type:"COMBINATION",name:"组合题"},{type:"BPROGRAM",name:"程序填空题"}],Wi={1:"简单",2:"适中",3:"困难"};(0,f.useEffect)((function(){if(On&&(null==O||!O.pathId)){var e=O,n=e.coursesId,t=e.categoryId;L({type:"shixunHomeworks/addCommonHomeWorkDefaultData",payload:{category:t,coursesId:n,type:5}})}}),[On]);var Vi=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,Bt.current.form.validateFields();case 3:if(n=Bt.current.form.getFieldsValue(),!((null==xt?void 0:xt.length)<=0)){e.next=8;break}return document.getElementById("topicdom").scrollIntoView({behavior:"smooth"}),b.ZP.info("请选择编程题"),e.abrupt("return");case 8:if(Yn(!0),i=(t=O).coursesId,a=t.categoryId,null==O||!O.pathId){e.next=17;break}return e.next=13,(0,bn.ZP)("/api/paths/".concat(null==O?void 0:O.pathId,"/create_hack_homework"),{method:"post",body:c()(c()({},n),{},{coursesId:i,category:a,stage_shixun_id:"null"==a?"":a,stage_id:null==O?void 0:O.stageId,type:5,hack_ids:null==xt?void 0:xt.map((function(e){return e.id}))})});case 13:0===(null==(o=e.sent)?void 0:o.status)&&(b.ZP.success("".concat("null"==a?"新增成功":"编辑成功")),m.history.push("/paths/".concat(O.pathId))),e.next=21;break;case 17:return e.next=19,(0,bn.ZP)(Gn?"/api/homework_commons/".concat(a,"/update_hack.json"):"/api/courses/".concat(i,"/homework_commons.json"),{method:Gn?"put":"post",body:c()(c()({},n),{},{coursesId:i,category:a,type:5,hack_ids:null==xt?void 0:xt.map((function(e){return e.id}))})});case 19:0===(null==(s=e.sent)?void 0:s.status)&&m.history.push("/classrooms/".concat(O.coursesId,"/program_homework/").concat(Gn?a:s.homework_id,"/detail?tabs=1"));case 21:Yn(!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)}}();return(0,F.jsxs)("div",{className:be.page,children:[(0,F.jsxs)("section",{children:[(0,F.jsxs)("div",{className:be.wrap,children:[ot.course_name&&On&&(0,F.jsx)("section",{className:"animated fadeIn",children:(0,F.jsx)("aside",{className:"mt10",children:ot.category&&(0,F.jsxs)(j.Z,{separator:">",children:[(0,F.jsx)(j.Z.Item,{children:(0,F.jsx)(m.Link,{to:"/classrooms/".concat(ot.course_id,"/program_homework"),children:ot.course_name})}),(0,F.jsx)(j.Z.Item,{children:(0,F.jsx)(m.Link,{to:"/classrooms/".concat(ot.course_id,"/program_homework"),children:ot.category.category_name})}),(0,F.jsx)(j.Z.Item,{children:Dn})]})})}),(0,F.jsx)("div",{className:be.title,children:On?Dn:"试题库"}),On&&(0,F.jsx)(En,{height:250,data:Fn,ref:Bt}),(0,F.jsxs)("div",{className:be.headerWrapper,id:"topicdom",children:[(0,F.jsx)("div",{className:be.tabsWrap,children:(0,F.jsxs)(v.Z,{activeKey:de,onChange:function(e){L({type:"problemset/getDisciplines",payload:{source:"question",group_id:0,group_type:e}}),V.discipline_id="",V.sub_discipline_id="",V.tag_discipline_id="",V.item_type=null,V.difficulty=null,V.type=e,"0"===e?(_i(!1),V.group_id=0,V.teach_group_id=0):(_i(!0),V.group_id=null),V.only_published=!("3"!==e||!On)||null,"3"===e?(V.clazz="ItemBanksGroup",Qt(!0)):Qt(!1),V.page=1,V.per_page=20,delete V.id,Ne(-1),he(e),Y(V),Lt(V),"1"!==e&&"2"!==e&&Zt(V),_i(!0)},tabBarExtraContent:(0,F.jsxs)("div",{className:be.searchWrap,children:[de===Mn.Mine&&Rn&&(0,F.jsxs)(C.ZP,{className:be.addQuestionBtn,onClick:function(){var e={discipline_id:"&discipline_id=".concat(V.discipline_id),sub_discipline_id:"&sub_discipline_id=".concat(V.sub_discipline_id),tag_discipline_id:"&sub_discipline_id=".concat(V.tag_discipline_id),difficulty:"&difficulty=".concat(V.difficulty),item_type:"&item_type=".concat(V.item_type),group_id:"&group_id=".concat(V.group_id||0)},n="/problemset/newitem?pages=".concat(V.page);Object.keys(e).forEach((function(t){V[t]&&(n+=e[t])})),null===m.history||void 0===m.history||m.history.push(n)},children:[(0,F.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAoCAYAAACb3CikAAAAAXNSR0IArs4c6QAABJFJREFUWEftWF1oHFUU/u7MZmazm4Q0tS/RmARSba0tDVazqyB9sVYlDzWRllopErWlER9EFFGRIuqDT0UoQaO0adKkQqui+FKhQmqSQn8o1cbYQH9Iia3QNN387Pwemdmdyd472Z0kRMhD7ssddu4997vnfOc7Z5YRkYwlMNgyECEKyx4RabmEPfL39mdham0EqgIYAEJmDg7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KfyFdVN56t0aYLPbOLqhMfteeJ/I+iQARDAkNj4BD+RZb7BSjKeLUEK3XJbpKEdRRf3h0voPW3zxJPpOMU5/PQxQVRj35hL2QNcG4K6pYnLsFmyDYKQJKzfstVZtfHoF8PCUD8T8fcsOss3uhRwStseCjRQB2nQaZtoCiqpRvv5tirKxd9T7nz+Qu58ZvZv7GZBwfgxr7ebSk1pQYbAYdNuEIREiJXWAUoNI+RNQKh6DfOdUj1K5dZd4iSX8t0SYv/+n98seER37H8mkzkc00C7pAAAAAElFTkSuQmCC",className:be.pngIcon,alt:""}),"新增试题"]}),(0,F.jsx)(Zn,{allowClear:!0,suffix:(0,F.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(be.searchIcon),onClick:function(){return Ft(V.keyword)}}),className:be.search,placeholder:"请输入题号或其他关键词进行搜索",size:"middle",onChange:function(e){V.keyword=e.target.value,Y(c()({},V))},onSearch:Ft})]}),children:[(0,F.jsx)(In,{tab:"公共"},"1"),(null===(i=d.teachGroupData)||void 0===i||null===(i=i.groups)||void 0===i?void 0:i.length)&&(0,F.jsx)(In,{tab:"团队共享"},"3"),!(0,Je.ag)()&&!(0,Je.JA)()&&!On&&(0,F.jsx)(In,{tab:"收藏夹"},"2"),(0,F.jsx)(In,{tab:"我创建的"},"0")]})}),(0,F.jsx)(h.S,{showSelectAll:!1,className:be.select,disciplinesData:null===(a=d.disciplinesData)||void 0===a?void 0:a.disciplines,knowledgeData:Se,directionValue:V.discipline_id,subDisciplineValue:V.sub_discipline_id,typeValue:V.item_type,isprogram_homework:On,showKnowledge:!0,name:wt,setname:_t,difficultyValue:V.difficulty,showShixun:!(0,Je.JA)()&&!V.exercise_id&&de!==Mn.TeachGroupShare&&de!==Mn.Public,onShixunChange:function(){L({type:"classroomList/setActionTabs",payload:{key:"选用实践项目"}})},onDirectionChange:function(e,n){V.discipline_id=e||"",V.sub_discipline_id=n||"",V.tag_discipline_id="",V.page=1,V.per_page=20,delete V.id,Ne(-1),Y(V),Lt(V),"3"!==de&&"0"!==de||Zt(c()(c()({},V),{},{parents:Oe.slice(0,-1)}))},onTypeChange:function(e){V.item_type=e||"",V.page=1,V.per_page=20,Y(V),Lt(V),"3"!==de&&"0"!==de||Zt(c()(c()({},V),{},{parents:Oe.slice(0,-1)}))},onDifficultyChange:function(e){V.difficulty=e||"",V.page=1,V.per_page=20,delete V.id,Y(V),Lt(V),"3"!==de&&"0"!==de||Zt(c()(c()({},V),{},{parents:Oe.slice(0,-1)}))},knowledgeValue:Ce,onKnowledgeChange:function(e){V.tag_discipline_id=e,V.page=1,V.per_page=20,delete V.id,-1===e&&(V.discipline_id="",V.sub_discipline_id="",V.tag_discipline_id=""),Ne(e),Y(V),Lt(V),"3"!==de&&"0"!==de||Zt(c()(c()({},V),{},{parents:Oe.slice(0,-1)}))},teachGroupData:null===(s=d.teachGroupData)||void 0===s?void 0:s.groups,onTeachGroupChange:Di,teachGroupValue:V.teach_group_id,showTeachGroup:Dt})]}),(0,F.jsxs)("div",{className:be.treeWrapper,style:{display:de===Mn.Mine||de===Mn.TeachGroupShare?"block":"none"},children:[(0,F.jsxs)("div",{className:be.treeHeader,children:[(0,F.jsx)(Ae.Z,{activeTabsKey:de,data:Oe,onClick:ki}),de===Mn.Mine&&(0,F.jsxs)(C.ZP,{type:"link",onClick:function(){L({type:"problemset/setActionTabs",payload:{key:"新建文件夹",params:V}})},className:be.exportBtn,children:[(0,F.jsx)("img",{src:Tn,alt:"",className:be.pngIcon}),"新建文件夹"]})]}),(0,F.jsx)(y.Z,{spinning:mt,children:(0,F.jsx)("div",{ref:dt,className:lt.length?be.treeContent:"",style:{maxHeight:"220px",overflow:"auto"},children:(0,F.jsx)(Ke.Z,{setRootData:function(e){Q.current=e},isProblemset:de===Mn.Mine&&Rn,reloadData:Ht,data:lt,onShare:Ii,onOpen:ki,activeTabsKey:de,params:V,navigation:Oe})})})]}),(0,F.jsxs)("div",{className:be.contentWrap,children:[(0,F.jsxs)("div",{className:be.batchWrap,children:[(0,F.jsxs)("div",{style:{flex:1,display:"flex",alignItems:"center"},children:[!On&&(0,F.jsx)("div",{className:"font14",children:(0,F.jsx)(N.Z,{dropdownRender:function(){return(0,F.jsx)(_.Z,{selectedKeys:[rt],children:null==Et?void 0:Et.map((function(e,n){return(0,F.jsx)(_.Z.Item,{onClick:function(){return function(e){V.sort_by=e.type,V.sort_direction=e.direction,V.page=1,V.per_page=20,at(e.name),Y(V),Lt(V),Zt(c()(c()({},V),{},{parents:Oe.slice(0,-1)}))}(e)},children:e.name},e.name)}))})},children:(0,F.jsxs)("span",{style:{color:"#464F66"},children:[(0,F.jsx)("i",{className:"iconfont icon-paixu font14 mr5 c-light-primary"}),rt]})})}),On&&(0,F.jsx)("div",{children:(0,F.jsxs)(w.Z,{checked:(null==te?void 0:te.filter((function(e){return null==xt?void 0:xt.map((function(e){return e.id})).includes(e.id)})).length)===te.length,onChange:function(e){return Fi(e.target.checked)},children:["本页全选",(0,F.jsxs)("span",{style:{color:"#999",fontSize:12},children:["/已选(",null==Cn?void 0:Cn.length,")"]})]})}),On&&(0,F.jsxs)(x.Z,{open:Ct,centered:!0,width:700,okText:"确认".concat(null!=O&&O.pathId?"":Gn?"编辑":"新建"),onCancel:function(){return Nt(!1)},cancelText:"返回列表",onOk:Vi,confirmLoading:qn,title:"查看已选",children:[(0,F.jsxs)("div",{className:"font14 c-light-primary mb10",children:["已选",null==xt?void 0:xt.length,"个"]}),(0,F.jsx)("div",{style:{height:400,overflow:"auto"},children:null==xt?void 0:xt.map((function(e,n){var t,i,r,a;return(0,F.jsxs)("div",{className:be.sendModal,children:[(0,F.jsxs)("div",{className:be.li,children:[(0,F.jsx)("p",{children:null==e?void 0:e.name}),(0,F.jsxs)("div",{className:be.bottom,children:[(0,F.jsx)("span",{className:"c-grey-333",children:"编程题"}),(0,F.jsx)("i",{className:be.line}),(0,F.jsxs)("span",{className:"c-grey-333",children:[1===e.difficulty&&"简单",2===e.difficulty&&"适中",3===e.difficulty&&"困难"]}),(0,F.jsx)("i",{className:be.line}),(0,F.jsxs)("span",{children:["创建者 ",(0,F.jsx)(k.Z,{title:null==e||null===(t=e.author)||void 0===t?void 0:t.name,children:(0,F.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,F.jsx)("i",{className:be.line}),(0,F.jsxs)("span",{className:be.des,children:["更新 ",(0,F.jsx)("span",{className:"c-grey-333",children:null==e?void 0:e.updated_at})]})]})]}),(0,F.jsx)("div",{className:be.del,onClick:function(){zi(xt.filter((function(n){return n.id!==e.id})).map((function(e){return e.id})))},children:"删除"})]},n)}))})]})]}),(0,F.jsx)("div",{children:de===Mn.Mine&&Rn&&(0,F.jsxs)(C.ZP,{onClick:function(){null!=Cn&&Cn.length?x.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"导出提示",maskClosable:!0,icon:null,content:(0,F.jsxs)("div",{className:"font14 ".concat(be.overflow),children:["已选中",null==Cn?void 0:Cn.length,"道题,其中组合题与实训题暂不支持导出。"]}),onOk:function(){(0,kn.rQ)({ids:Cn})}}):L({type:"problemset/setActionTabs",payload:{key:"导出试题",params:V}})},type:"link",className:be.exportBtn,children:[(0,F.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAoCAYAAACFFRgXAAAAAXNSR0IArs4c6QAABIdJREFUWEftWGtMm1UYfg5taScYNhbt5qAFioMRE6aRkGiQP8vEJcZFZ5YYr9Fd3NTID/3hdS5xXoKZZpvrNsBtJotZlkxHyOIIZjLnLiSGxUWHQKXQsoGAjmAp7dcecw609Lt5GN/XTLOdP6f9Lud73ud93ve85yWUUgv+w4MQEkuFR24CNtlbNx7DvmCshtKYFxR5lAKEAGxmI/GbzYYHQYAQy0ZPnrXZkIZ7ApFeBtYw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D+YGj2BbzIBRoFu7KVVLDkFmMM+wdC0nSfZKZ6n2kjyCt6dYUuqvjlKYwQuI0C7uq9KmXabCLu+H0VgbK+kNjeyGQUS4vmG2O49YcOyZ1XiMxMm0YrSnZKTx7pk40g8RtJkyKRKPqCfqyoWm4M8NHjbb3UpGagyE2EIPDoqmpjzcBj3/5YE4tL3nSDZmAtGdaNj9Tcb6zdKmLF7Ps3XgfebAZF6/3vGf4HhYa6OsTsTGoAAAAASUVORK5CYII=",className:be.pngIcon}),(0,F.jsx)("span",{children:"导出试题"})]})})]}),tn?(0,F.jsxs)("div",{children:[(0,F.jsxs)(C.ZP,{style:{paddingLeft:0},onClick:function(){V.page=1,V.keyword=null,delete V.id,Y(V),rn(!1),Lt(V),Zt(c()(c()({},V),{},{parents:Oe.slice(0,-1)}))},type:"link",children:[" ",(0,F.jsx)("i",{className:"iconfont icon-fanhui2 font14"}),"返回"]}),(0,F.jsxs)("span",{className:"font14 mr20 c-grey-333",children:["搜索“",V.keyword,"”"]})]}):null,(0,F.jsx)("div",{className:be.contentListWrap,children:0!==J?(0,F.jsx)(y.Z,{size:"middle",spinning:Z["problemset/getItemBanks"],children:te.map((function(e,n){var t,i,r,a,o,s,c,l;return(0,F.jsxs)("div",{className:be.li,children:[(0,F.jsx)("div",{className:be.top,children:(0,F.jsx)(Ue.Z,{data:e,selectIds:Cn,onSelectCheckBox:zi},e.id)}),(0,F.jsxs)("div",{className:be.bottom,children:[(0,F.jsxs)("p",{className:"".concat(be.actionLeftItem," ").concat(be.questionTypeName),children:["No.",null==e?void 0:e.id]}),(0,F.jsx)("p",{className:"".concat(be.actionLeftItem," ").concat(be.questionTypeName),children:null===(t=Hi.find((function(n){return n.type===e.item_type})))||void 0===t?void 0:t.name}),(0,F.jsx)("p",{className:be.actionLeftItem,children:Wi[e.difficulty]}),(0,F.jsxs)("p",{className:be.actionLeftItem,children:["创建者",(0,F.jsx)(k.Z,{title:null==e||null===(i=e.author)||void 0===i?void 0:i.name,children:(0,F.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,F.jsxs)("p",{className:be.actionLeftItem,children:["更新",(0,F.jsx)("span",{className:"c-grey-333",children:null==e?void 0:e.updated_at})]}),(0,F.jsxs)("p",{className:be.actionLeftItem,children:["使用次数",(0,F.jsx)("span",{className:"c-grey-333",children:null==e?void 0:e.quotes})]}),!On&&(0,F.jsx)("div",{className:be.more,children:(s=e,l=s.id<0?"--":nt?s[V.exercise_id?"added":"choosed"]?(0,F.jsx)("span",{className:be.btnAdd,onClick:function(e){e.target.style.pointerEvents="none",Ai(s.id)},children:Rn?"移出试题篮":(0,F.jsxs)("span",{children:[(0,F.jsx)("b",{className:"iconfont icon-yichu ".concat(be.cancelC)}),"移出"]})},1):"PROGRAM"===s.item_type&&0===(null===(c=s.program_attr)||void 0===c?void 0:c.status)?(0,F.jsx)(k.Z,{placement:"top",title:"编程题未发布,不能加入!",children:(0,F.jsxs)("span",{className:be.btnAdd,style:{cursor:"not-allowed",background:"#E3E6EC",color:"#B1BACD"},children:[" ",Rn?"加入试题篮":(0,F.jsxs)("span",{style:{padding:"0 3px"},children:[(0,F.jsx)("b",{className:"iconfont icon-jiaru ".concat(be.addC)}),"加入"]})," "]})}):(0,F.jsx)("span",{className:be.btnAdd,onClick:function(){return ji(s.id)},children:Rn?"加入试题篮":(0,F.jsxs)("span",{style:{padding:"0 3px"},children:[(0,F.jsx)("b",{className:"iconfont icon-jiaru ".concat(be.addC)}),"加入"]})}):(0,F.jsx)(F.Fragment,{}),(0,F.jsxs)("span",{className:be.actonBtn,children:[s.id>0&&(0,F.jsx)(Ue.N,{isProblemset:Rn,user:I,data:s,activeTabsKey:de,selectIds:Cn,onCollect:qt,onSetPublic:Yt,onStartExperience:xi,onCorrection:Kt,onChangeTag:hi,onPublicReview:Vt,onSetPrivate:vi,onDelete:gi,onCancel:Ai,onSelect:ji,onMoveTo:Ni,addProblemset:Ci,onSetShare:Ut,onCancelShare:Bi,onPublish:Oi,onCancelPublish:Gi,SubjectShare:wi},s.id),l]}))})]})]},n)}))}):(0,F.jsx)(y.Z,{size:"middle",spinning:Z["problemset/getItemBanks"],children:(0,F.jsx)(P.Z,{})})}),0!==J&&!On&&(0,F.jsx)(B.Z,{showQuickJumper:!0,onChange:zt,defaultCurrent:1,pageSize:null==V?void 0:V.per_page,current:V.page||1,total:J,showTotal:function(e){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)("span",{className:"mr10 font12",children:["共",(0,F.jsx)("span",{className:"c-light-primary",children:e}),"条数据"]}),!V.item_type&&(0,F.jsxs)("span",{style:{fontSize:"12px",color:"#999999"},children:["其中",St.map((function(e){if(Pt(e.value)>0)return(0,F.jsxs)("span",{children:[e.name,(0,F.jsx)("span",{style:{color:"#000000",margin:"0 4px"},children:Pt(e.value)})]})}))]})]})}}),On&&(0,F.jsx)("div",{style:{height:20}})]}),Rn&&(0,F.jsx)(Re,{basketData:d.basketData,visible:qe,basketTotal:Fe,onClose:function(){return $e(!1)},onDelete:function(e){L({type:"problemset/setActionTabs",payload:{key:"Problemset-BasketDelete",params:{type:e}}})},onClear:function(){var e;x.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,re.RT)();case 2:0===e.sent.status&&(Ht(),Mt());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,L({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,L({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,Je.JA)()&&Rn&&(0,F.jsx)(Ye,{visibleBasket:qe,onToggleVisible:function(){return $e(!qe)},count:Fe})]}),(0,F.jsx)(W,{}),(0,F.jsx)(se,{onReloadData:Ht,isPiliangRevoke:dn}),(0,F.jsx)(le,{onReloadData:function(){return Wt([null])}}),(0,F.jsx)(De,{onReloadData:Ht,onReloadBasketData:Mt}),"选用实践项目"===l.actionTabs.key?(0,F.jsx)(_n,{shixunIds:An,cb:Pi}):null,(0,F.jsx)(pe,{}),(0,F.jsx)(fe,{}),(0,F.jsx)(me,{}),(0,F.jsx)(ve,{}),(0,F.jsx)(xe,{}),(0,F.jsx)(X,{}),(0,F.jsx)(ae,{onOk:function(){V.page=1,Y(V),Lt(V),Zt(V)}}),(0,F.jsx)(T.Z,{onOk:function(e){V.discipline_id="",V.sub_discipline_id="",V.tag_discipline_id="",V.item_type=null,V.difficulty=null,V.page=1,V.per_page=20,V.group_id=e,Ne(-1),Y(V),Lt(V),Zt(V)}})]}),Rn?(0,F.jsx)(f.Fragment,{children:!(null==Cn||!Cn.length)&&(0,F.jsx)("div",{className:be.batch,children:(0,F.jsxs)("aside",{children:[(0,F.jsx)("div",{style:{flexShrink:0,marginRight:20},children:(0,F.jsxs)(w.Z,{className:"font14",checked:!(null==te||!te.length)&&Cn.length===(null==te?void 0:te.length),onChange:function(e){return Fi(e.target.checked)},children:["本页全选",(0,F.jsxs)("span",{style:{color:"#999",fontSize:12},children:["/已选(",null==Cn?void 0:Cn.length,")"]})]})}),(0,F.jsxs)("div",{className:be.btns,children:[nt&&(0,F.jsxs)("div",{className:be.btn,onClick:function(){return Ei(!0)},children:[(0,F.jsx)("i",{className:"iconfont icon-piliangjiaru"}),"批量加入"]}),nt&&(0,F.jsxs)("div",{className:be.btn,onClick:function(){return Ei(!1)},children:[(0,F.jsx)("i",{className:"iconfont icon-piliangyichu"}),"批量移出"]}),nt&&de===Mn.Public&&(0,F.jsxs)("div",{className:be.btn,onClick:function(){var e;(null==Cn?void 0:Cn.length)>0?x.Z.confirm({centered:!0,width:500,okText:"确定",cancelText:"取消",title:"加入我的题库",maskClosable:!0,className:"custom-modal-divider",icon:null,content:(0,F.jsxs)("div",{className:"font14 ".concat(be.overflow),style:{maxHeight:500,overflow:"auto"},children:[(0,F.jsx)("p",{className:"c-grey-333",children:"请选择加入的文件夹"}),(0,F.jsx)(y.Z,{spinning:mt,children:(0,F.jsx)(q.Z,{defaultValue:!0,value:vn.current,onChange:function(e){return vn.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,re.Rp)({id:Cn,group_id:null===(n=vn.current)||void 0===n?void 0:n[0]});case 2:t=e.sent,vn.current=[],0===(null==t?void 0:t.status)&&(Zt(V),Ht(),b.ZP.success("加入成功"));case 5:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})}):b.ZP.info("请先选择试题")},children:[(0,F.jsx)("i",{className:"iconfont icon-piliangjiaru"}),"批量加入我的题库"]}),de===Mn.Public&&(0,Je.ag)()&&(0,F.jsxs)("div",{className:be.btn,onClick:function(){pn(!0),vi(Cn)},children:[(0,F.jsx)("i",{className:"iconfont icon-piliangchexiaogongkai font16"}),"批量撤销公开"]}),de===Mn.Mine&&(0,F.jsxs)("div",{className:be.btn,onClick:function(){return Ni()},children:[(0,F.jsx)("i",{className:"iconfont icon-yidongmulu font16"}),"批量移动"]}),de===Mn.Mine&&(0,F.jsxs)("div",{className:be.btn,onClick:Mi,children:[" ",(0,F.jsx)("i",{className:"iconfont icon-pilianggongkai"}),"批量公开"]}),de===Mn.Mine&&!wi&&(0,F.jsxs)("div",{className:be.btn,onClick:function(){return Zi()},children:[" ",(0,F.jsx)("i",{className:"iconfont icon-pilianggongxiang"}),"批量共享"]}),de===Mn.Mine&&(0,F.jsxs)("div",{className:be.btn,onClick:Li,children:[" ",(0,F.jsx)("i",{className:"iconfont icon-piliangshanchu3 c-red"}),"批量删除"]}),de===Mn.Mine&&(0,F.jsxs)("div",{className:be.btn,onClick:Qi,children:[" ",(0,F.jsx)("i",{className:"iconfont icon-fabu5"}),"批量发布"]}),(0,F.jsxs)("div",{onClick:function(){return Nn([])},style:{marginLeft:"auto"},className:be.btn,children:[" ",(0,F.jsx)("i",{className:"iconfont icon-piliangcaozuoicon2"}),"取消操作"]})]})]})})}):On?"":(0,F.jsx)("div",{className:be.batch,children:(0,F.jsxs)("aside",{children:[(0,F.jsx)("div",{style:{flexShrink:0,marginRight:20},children:(0,F.jsxs)(w.Z,{className:"font14",checked:!(null==te||!te.length)&&Cn.length===(null==te?void 0:te.length),onChange:function(e){return Fi(e.target.checked)},children:["本页全选",(0,F.jsxs)("span",{style:{color:"#999",fontSize:12},children:["/已选(",null==Cn?void 0:Cn.length,")"]})]})}),(0,F.jsxs)("div",{className:be.btns,children:[nt&&!(null==Cn||!Cn.length)&&(0,F.jsxs)("div",{className:be.btn,onClick:function(){return Ei(!0)},children:[(0,F.jsx)("i",{className:"iconfont icon-piliangjiaru"}),"批量加入"]}),nt&&!(null==Cn||!Cn.length)&&(0,F.jsxs)("div",{className:be.btn,onClick:function(){return Ei(!1)},children:[(0,F.jsx)("i",{className:"iconfont icon-piliangyichu"}),"批量移出"]}),(0,F.jsxs)("div",{className:"c-grey-333 font12 mr40",style:{marginLeft:"auto"},children:["已加入: ",we,"题"]}),(0,F.jsx)("div",{onClick:function(){var e="/problemset/preview";V.exam_id&&(e="/paperlibrary/edit/".concat(V.exam_id)),null==V||!V.exercise_id||null!=O&&O.pathId||(e="/classrooms/".concat(O.coursesId,"/exercise/").concat(null==V?void 0:V.exercise_id,"/edit")),m.history.push(e)},className:be.btn,children:"返回试卷"})]})]})}),On&&(0,F.jsx)("div",{className:be.batch,children:(0,F.jsxs)("aside",{children:[(0,F.jsx)("div",{style:{flexShrink:0,marginRight:20},children:(0,F.jsx)(B.Z,{showQuickJumper:!0,onChange:zt,defaultCurrent:1,pageSize:null==V?void 0:V.per_page,current:V.page||1,hideOnSinglePage:!0,total:J,showTotal:function(e){return(0,F.jsxs)("span",{className:"mr10",children:["共",(0,F.jsx)("span",{className:"c-light-primary",children:e}),"条数据"]})}})}),(0,F.jsx)("div",{className:be.btns,children:(0,F.jsxs)(E.Z,{align:"middle",style:{marginLeft:"auto"},children:[(0,F.jsxs)(E.Z,{onClick:function(){(null==xt?void 0:xt.length)<=0?b.ZP.info("当前暂无数据"):Nt(!0)},align:"middle",className:"current",children:[(0,F.jsx)("i",{className:"iconfont icon-yixuan mr10 c-light-primary font20"}),(0,F.jsxs)("span",{children:["已选",(0,F.jsx)("span",{className:"c-light-primary",children:Cn.length}),"个"]})]}),(0,F.jsx)(C.ZP,{className:"mr20 ml40",onClick:function(){if(null!=O&&O.pathId)m.history.push("/paths/".concat(O.pathId));else{if(Gn)return void m.history.push("/classrooms/".concat(O.coursesId,"/program_homework/").concat(O.categoryId,"/detail?tabs=1"));m.history.push("/classrooms/".concat(O.coursesId,"/program_homework"))}},children:"取消"}),(0,F.jsxs)(C.ZP,{loading:qn,onClick:Vi,type:"primary",children:["确认",null!=O&&O.pathId?"":Gn?"编辑":"新建"]})]})})]})}),(0,F.jsx)(x.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:ci,title:"修改知识点",width:"600px",onCancel:function(){li(!1)},onOk:u()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,bn.ZP)("/api/item_banks/".concat(null==pi?void 0:pi.id,"/update_tag.json"),{method:"put",body:{name:Xt.current,tag_discipline_ids:ri}});case 2:0===(null==(n=e.sent)?void 0:n.status)&&(b.ZP.success("修改成功"),li(!1),Lt(V));case 4:case"end":return e.stop()}}),e)}))),children:(0,F.jsxs)("div",{children:[(0,F.jsxs)("div",{style:{position:"absolute",top:"25px",right:"25px"},children:[(0,F.jsx)("span",{className:be.tagtips,children:"没有合适的知识点?"}),(0,F.jsx)("span",{className:be.taglinkBtn,onClick:function(){x.Z.confirm({centered:!0,width:640,okText:"确定",cancelText:"取消",icon:null,title:"新建知识点",className:"custom-modal-divider",content:(0,F.jsxs)("div",{className:"font14",children:[(0,F.jsxs)(E.Z,{className:"mb20",children:[(0,F.jsx)(S.Z,{children:(0,F.jsx)(Pn.Z,{style:{color:"#FF8C29"}})}),(0,F.jsxs)(S.Z,{className:"ml10 ".concat(be.mainText),children:["新建的知识点仅本人可见,平台审核列入公开知识点后,对所有用户可见。",(0,F.jsx)("br",{}),"平台有权删除不合适的知识点,请认真填写知识点名称。"]})]}),(0,F.jsx)(g.Z,{maxLength:20,size:"middle",showCount:!0,placeholder:"请输入知识点名称",onChange:function(e){Xt.current=e.target.value}})]}),onOk:function(){return new Promise(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(Xt.current){e.next=3;break}return b.ZP.warning("请输入知识点名称"),e.abrupt("return",t());case 3:if(!(Xt.current.length>20)){e.next=6;break}return b.ZP.warning("请输入不超过20字的知识点名称"),e.abrupt("return",t());case 6:return e.next=8,(0,bn.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:Xt.current,sub_discipline_id:null==pi?void 0:pi.sub_discipline_id}});case 8:if(0!==(null==(i=e.sent)?void 0:i.status)){e.next=13;break}return e.next=12,mi(pi);case 12:ai([].concat(o()(ri),[null==i?void 0:i.tag_discipline_id]));case 13:return e.abrupt("return",n());case 14:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}())}})},children:"新建知识点"})]}),(null==ei?void 0:ei.length)>0&&(0,F.jsx)(w.Z.Group,{defaultValue:ri,style:{width:"100%",height:"200px",overflowY:"auto",display:"flow-root"},onChange:function(e){ai(o()(e))},children:(0,F.jsx)(E.Z,{children:null==ei?void 0:ei.map((function(e,n){return(0,F.jsx)(S.Z,{span:24,className:"mt10",children:(0,F.jsx)(w.Z,{value:null==e?void 0:e.id,children:(0,F.jsx)(k.Z,{title:null==e?void 0:e.name,children:(0,F.jsxs)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",display:"flex"},children:[(0,F.jsx)("div",{children:null==e?void 0:e.name}),"personal"===(null==e?void 0:e.type)&&(0,F.jsx)("div",{style:{marginLeft:"10px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",lineHeight:"22px"},children:"自用"})]})})})},n)}))})}),0==(null==ei?void 0:ei.length)&&(0,F.jsx)(P.Z,{customText:"暂无数据"})]})})]})}))},37572:function(e,n,t){"use strict";t.d(n,{AD:function(){return P},D9:function(){return O},Hp:function(){return k},IM:function(){return D},Iy:function(){return C},KM:function(){return K},MJ:function(){return j},Ne:function(){return G},ON:function(){return W},Uj:function(){return Y},VY:function(){return F},YO:function(){return q},YX:function(){return V},Zn:function(){return v},_g:function(){return y},_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 A},j6:function(){return w},je:function(){return L},jj:function(){return _},kS:function(){return H},o6:function(){return E},pO:function(){return U},rQ:function(){return I},sA:function(){return N},xm:function(){return R},xo:function(){return z},y8:function(){return Z},yd:function(){return b}});var i=t(7557),r=t.n(i),a=t(82242),o=t.n(a),s=t(41498),c=t.n(s),l=t(43759),u=t(96048),d=t(92818),p=t(8591),f=t(14103),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)}}(),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.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)}}(),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.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)}}(),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.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)}}(),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.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)}}(),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.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)}}(),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)("",(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)}}(),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)(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)}}(),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/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)}}(),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/courses/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/courses/question_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/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)}}()},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubf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howPyzuQJiukzi3hQgS7b+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/MHvRn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