From 79d2fd692edda293411531bef223b1643d634c0d Mon Sep 17 00:00:00 2001 From: autosubmit Date: Wed, 20 Nov 2024 19:16:55 +0800 Subject: [PATCH] Auto Submit --- 45824.354b2c47.async.js | 1 - 45824.5b4bc0e6.async.js | 1 + 56494.3a801c28.async.js => 56494.3103a40c.async.js | 2 +- 67870.9f86dc45.async.js | 1 - 67870.e9a76db5.async.js | 1 + p__Classrooms__Lists__Board__Add__index.b5800f95.async.js | 1 + p__Classrooms__Lists__Board__Add__index.ceba9399.async.js | 1 - p__Classrooms__Lists__Board__Edit__index.11d7cb59.async.js | 1 - p__Classrooms__Lists__Board__Edit__index.35a7a99f.async.js | 1 + ...ssrooms__Lists__CommonHomework__Add__index.9cb317a5.async.js | 1 - ...ssrooms__Lists__CommonHomework__Add__index.cd551697.async.js | 1 + ...ms__Lists__CommonHomework__EditWork__index.6d1e3468.async.js | 1 - ...ms__Lists__CommonHomework__EditWork__index.851efd65.async.js | 1 + ...srooms__Lists__CommonHomework__Edit__index.52af2829.async.js | 1 - ...srooms__Lists__CommonHomework__Edit__index.a6fc89c4.async.js | 1 + ...__Lists__CommonHomework__SubmitWork__index.30b46959.async.js | 1 + ...__Lists__CommonHomework__SubmitWork__index.6e450b9f.async.js | 1 - p__Classrooms__Lists__CommonHomework__index.05c8854b.async.js | 1 + p__Classrooms__Lists__CommonHomework__index.35e19ecc.async.js | 1 - ...ooms__Lists__Graduation__Tasks__Add__index.02a34518.async.js | 1 - ...ooms__Lists__Graduation__Tasks__Add__index.8a24c667.async.js | 1 + ...oms__Lists__Graduation__Tasks__Edit__index.4cd3f36a.async.js | 1 + ...oms__Lists__Graduation__Tasks__Edit__index.647e2ca7.async.js | 1 - ...assrooms__Lists__GroupHomework__Add__index.65728fd2.async.js | 1 - ...assrooms__Lists__GroupHomework__Add__index.b3c39a13.async.js | 1 + ...oms__Lists__GroupHomework__EditWork__index.71e2f803.async.js | 1 - ...oms__Lists__GroupHomework__EditWork__index.d022c688.async.js | 1 + ...ssrooms__Lists__GroupHomework__Edit__index.280cc059.async.js | 1 - ...ssrooms__Lists__GroupHomework__Edit__index.f73e5f3f.async.js | 1 + ...s__Lists__GroupHomework__SubmitWork__index.43be7a41.async.js | 1 + ...s__Lists__GroupHomework__SubmitWork__index.cd22c8e6.async.js | 1 - p__Classrooms__Lists__GroupHomework__index.8f8cbb63.async.js | 1 + p__Classrooms__Lists__GroupHomework__index.ec3a5ffb.async.js | 1 - p__Classrooms__Lists__ProgramHomework__index.4fa12cd6.async.js | 1 - p__Classrooms__Lists__ProgramHomework__index.69b896af.async.js | 1 + p__Competitions__Edit__index.3fc90de2.async.js | 1 + p__Competitions__Edit__index.4efe60d2.async.js | 1 - p__Forums__New__index.4d6c43eb.async.js | 1 - p__Forums__New__index.ae2f52db.async.js | 1 + p__Innovation__Tasks__index.dd7e9cd6.async.js | 1 - p__Innovation__Tasks__index.dfd2fb27.async.js | 1 + p__Paths__New__index.005554c5.async.js | 1 - p__Paths__New__index.d0796748.async.js | 1 + p__tasks__Jupyter__index.759123cb.async.js | 1 + p__tasks__Jupyter__index.da029f43.async.js | 1 - p__tasks__index.deb14b1a.async.js | 1 - p__tasks__index.f5808b78.async.js | 1 + umi.552ff85b.js => umi.58775868.js | 2 +- 48 files changed, 25 insertions(+), 25 deletions(-) delete mode 100644 45824.354b2c47.async.js create mode 100644 45824.5b4bc0e6.async.js rename 56494.3a801c28.async.js => 56494.3103a40c.async.js (61%) delete mode 100644 67870.9f86dc45.async.js create mode 100644 67870.e9a76db5.async.js create mode 100644 p__Classrooms__Lists__Board__Add__index.b5800f95.async.js delete mode 100644 p__Classrooms__Lists__Board__Add__index.ceba9399.async.js delete mode 100644 p__Classrooms__Lists__Board__Edit__index.11d7cb59.async.js create mode 100644 p__Classrooms__Lists__Board__Edit__index.35a7a99f.async.js delete mode 100644 p__Classrooms__Lists__CommonHomework__Add__index.9cb317a5.async.js create mode 100644 p__Classrooms__Lists__CommonHomework__Add__index.cd551697.async.js delete mode 100644 p__Classrooms__Lists__CommonHomework__EditWork__index.6d1e3468.async.js create mode 100644 p__Classrooms__Lists__CommonHomework__EditWork__index.851efd65.async.js delete mode 100644 p__Classrooms__Lists__CommonHomework__Edit__index.52af2829.async.js create mode 100644 p__Classrooms__Lists__CommonHomework__Edit__index.a6fc89c4.async.js create mode 100644 p__Classrooms__Lists__CommonHomework__SubmitWork__index.30b46959.async.js delete mode 100644 p__Classrooms__Lists__CommonHomework__SubmitWork__index.6e450b9f.async.js create mode 100644 p__Classrooms__Lists__CommonHomework__index.05c8854b.async.js delete mode 100644 p__Classrooms__Lists__CommonHomework__index.35e19ecc.async.js delete mode 100644 p__Classrooms__Lists__Graduation__Tasks__Add__index.02a34518.async.js create mode 100644 p__Classrooms__Lists__Graduation__Tasks__Add__index.8a24c667.async.js create mode 100644 p__Classrooms__Lists__Graduation__Tasks__Edit__index.4cd3f36a.async.js delete mode 100644 p__Classrooms__Lists__Graduation__Tasks__Edit__index.647e2ca7.async.js delete mode 100644 p__Classrooms__Lists__GroupHomework__Add__index.65728fd2.async.js create mode 100644 p__Classrooms__Lists__GroupHomework__Add__index.b3c39a13.async.js delete mode 100644 p__Classrooms__Lists__GroupHomework__EditWork__index.71e2f803.async.js create mode 100644 p__Classrooms__Lists__GroupHomework__EditWork__index.d022c688.async.js delete mode 100644 p__Classrooms__Lists__GroupHomework__Edit__index.280cc059.async.js create mode 100644 p__Classrooms__Lists__GroupHomework__Edit__index.f73e5f3f.async.js create mode 100644 p__Classrooms__Lists__GroupHomework__SubmitWork__index.43be7a41.async.js delete mode 100644 p__Classrooms__Lists__GroupHomework__SubmitWork__index.cd22c8e6.async.js create mode 100644 p__Classrooms__Lists__GroupHomework__index.8f8cbb63.async.js delete mode 100644 p__Classrooms__Lists__GroupHomework__index.ec3a5ffb.async.js delete mode 100644 p__Classrooms__Lists__ProgramHomework__index.4fa12cd6.async.js create mode 100644 p__Classrooms__Lists__ProgramHomework__index.69b896af.async.js create mode 100644 p__Competitions__Edit__index.3fc90de2.async.js delete mode 100644 p__Competitions__Edit__index.4efe60d2.async.js delete mode 100644 p__Forums__New__index.4d6c43eb.async.js create mode 100644 p__Forums__New__index.ae2f52db.async.js delete mode 100644 p__Innovation__Tasks__index.dd7e9cd6.async.js create mode 100644 p__Innovation__Tasks__index.dfd2fb27.async.js delete mode 100644 p__Paths__New__index.005554c5.async.js create mode 100644 p__Paths__New__index.d0796748.async.js create mode 100644 p__tasks__Jupyter__index.759123cb.async.js delete mode 100644 p__tasks__Jupyter__index.da029f43.async.js delete mode 100644 p__tasks__index.deb14b1a.async.js create mode 100644 p__tasks__index.f5808b78.async.js rename umi.552ff85b.js => umi.58775868.js (99%) diff --git a/45824.354b2c47.async.js b/45824.354b2c47.async.js deleted file mode 100644 index d2d06d1a1b..0000000000 --- a/45824.354b2c47.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[45824,4977,48486,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},n="5.0",t={},i=null,o=!1,r=!1,a=null,l=!1,s=null,c=null,d=0;d4?parseFloat(e):5};function y(){try{return window.self!==window.top}catch(e){return!0}}function j(){return(!t.hasOwnProperty("screenshotGenerator")||!t.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,n){c=e,Z(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."):(s=e,O(e,n))},e.getHTML5CodebaseVersion=function(){return h},e.getParameters=function(){return t},e.setFontsCSSURL=function(e){x=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,o="auto",r=t.id,a=!1,s=0;s=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 k=function(e){return e&&"false"!==e},N=function(n,t,i){b(h)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==h||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=t.width,l=t.height;if(t.disableAutoScale=void 0===t.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():t.disableAutoScale,void 0!==t.width)if(b(h)<=4.4)k(t.showToolBar)&&(t.height-=7),k(t.showAlgebraInput)&&(t.height-=37),t.width<605&&k(t.showToolBar)&&(t.width=605,a=605);else{var d=100;(k(t.showToolBar)||k(t.showMenuBar))&&(t.hasOwnProperty("customToolBar")&&(t.customToolbar=t.customToolBar),d=k(t.showMenuBar)?245:155),a=5?(t.appletOnLoad=function(e){var t=n.querySelector(".ggb_preview");t&&t.parentNode.removeChild(t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},A||w.appendChild(y)):r.appendChild(y),w.appendChild(r),A||n.appendChild(w),setTimeout((function(){e.resize()}),1)}function j(e,n){n&&"function"==typeof n.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,n.appletOnLoad):renderGGBElement(e),R("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",n)}function C(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){j(e.article,e.params)})),html5AppletsToProcess=null)},b(h)<5&&(e.className+=" geogebraweb")):j(e,n)}if(o){scriptLoadStarted=!0;for(var B=0;B0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):N(o,n,!1),window.GGBT_wsf_view.launchFullScreen(r)}else m=i,N(e,n,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",A),a.setAttribute("width",l),a.setAttribute("height",s);var d=(e-l)/2,u=(n-s)/2;a.style.left=d+"px",a.style.top=u+"px",o.appendChild(a)}return o.appendChild(c),o},M=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},I=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,n){if(h=e,n)Z(h,!0);else{var r,a,l=!o;if(l){var s=b(h);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=h.indexOf("//");for(var d in a=c>0?h:0===c?r+h:"https://www.geogebra.org/apps/5.2.814.0/",I)if(h.slice(-1*I[d].length)===I[d]||h.slice(-1*(I[d].length+1))===I[d]+"/")return void Z(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||k(t.showToolBar)||k(t.showMenuBar)||k(t.showAlgebraInput)||k(t.enableRightClick)||t.appName&&"classic"!=t.appName?a+="web3d/":a+="webSimple/",Z(a,!1)}},Z=function(e,n){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===n&&(n=-1===e.indexOf("http")),p=n,g="web.nocache.js",v=!1;var t=f.split("/");t.length>1&&(n||"webSimple"!==t[t.length-2]?I.indexOf(t[t.length-2])>=0&&(g=t[t.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!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."),O("5.0",n))}},R=function(e,n){window.console&&window.console.log&&(!n||void 0===n.showLogging||n.showLogging&&"false"!==n.showLogging)&&console.log(e)};function F(){var e=n;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&Z(c,p),l=!0}return void 0!==t.material_id?C(F):F(),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,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,n,t,i,o,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,d=0,u=0,f=0,p=0,m=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),d=s):(s=window.innerWidth,c=window.innerHeight,d=window.innerWidth),e){var h=e.getBoundingClientRect();h.left>0&&h.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-h.width-h.left,p=d<=480?10:30):(p=h.left,f=d<=480?10:30),u=p+f)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(u=40,m=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(u=0,m=40))}return e&&((void 0===t||!t)&&n>0&&n+u1&&(a=!0)),n&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=t(e,n,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var n=Math.min(window.innerWidth,document.documentElement.clientWidth),t=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(n-i.width)/2,r=(t-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(t,r){var a=t.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(t)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(r,t);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=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;tO?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=[],o=[];function a(e){var n=o[e](),t=i[e];if(n in t)return n;var a=[];for(var l in t)a[t[l]]=l;throw r&&r(e,a,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]=a(n));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}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],o=O;o0){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",t=[],i=0;i0&&(n=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+b+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),n}var k=function(e){var n=e.value,t=e.onChange,i=e.action,r=e.data,l=e.className,c=e.maxSize,u=void 0===c?150:c,S=e.title,k=void 0===S?"上传附件":S,N=e.showRemoveModal,E=void 0!==N&&N,T=e.accept,P=void 0===T?"":T,L=e.additionalText,D=e.isDragger,M=e.number,I=void 0===M?1e3:M,O=e.aloneClear,Z=void 0!==O&&O,R=e.realTimeRemove,F=void 0===R||R,G=e.uploadText,z=(0,p.useState)(!1),H=f()(z,2),W=H[0],U=H[1],V=(0,p.useState)(n||[]),K=f()(V,2),Q=K[0],q=K[1],_=(0,p.useState)(1),X=f()(_,2),J=X[0],Y=X[1];(0,p.useEffect)((function(){n&&(1===J&&q(d()(n)),Y(2),I===(null==n?void 0:n.length)&&U(!0))}),[n]);var $,ee=function(){setTimeout((function(){Q.pop(),q(d()(Q))}),500)},ne={multiple:!0,disabled:W,accept:P,withCredentials:!0,fileList:Q,beforeUpload:function(e,n){var t=e.size/1024/1024;return Q.concat(n).length>I?(Q.pop(),q(d()(Q)),h.ZP.error("最多只能上传".concat(I,"个文件")),Z?Promise.reject():(ee(),!1)):t=I?U(!0):U(!1),q(d()(Q)),Q=Q.map((function(e){var n,t;null!=e&&null!==(n=e.response)&&void 0!==n&&n.id&&(e.url=null==e||null===(t=e.response)||void 0===t?void 0:t.url);return-1===e.name.indexOf(b)&&(e.name="".concat(e.name).concat(b).concat(y(e.size))),s()({},e)})),console.log("info:",e,Q),t(Q)):h.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:($=a()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(F){e.next=2;break}return e.abrupt("return",!0);case 2:if(t=function(){var e=a()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.response?n.response.id:n.id)){e.next=8;break}return e.next=4,(0,A.JZ)(n.response?n.response.id:n.uid);case 4:return t=e.sent,e.abrupt("return",Promise.resolve(t));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!E){e.next=7;break}return e.abrupt("return",new Promise((function(e,n){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,x.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(o()().mark((function n(){return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t();case 2:n.sent,h.ZP.success("删除成功"),e(!0);case 5:case"end":return n.stop()}}),n)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,t();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return $.apply(this,arguments)})};return(0,x.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[D&&(0,x.jsxs)(B,s()(s()({},ne),{},{children:[(0,x.jsx)("p",{className:"ant-upload-drag-icon",children:(0,x.jsx)(j.Z,{})}),(0,x.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,x.jsx)("br",{}),"(单个文件最大限制为",u,"MB)"," "]}),L]})),!D&&(0,x.jsxs)(m.Z,s()(s()({},ne),{},{children:[(0,x.jsxs)(v.ZP,{disabled:W,className:"upload_button",children:[(0,x.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),k]}),(0,x.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:G||"(单个文件最大".concat(u,"MB)")})]}))]})}},53802:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});var i=t(79800),o=t.n(i),r=t(59301),a=t(50021),l=t(39073),s=t(37712),c=function(){var e=(0,r.useState)(""),n=o()(e,2),t=n[0],i=n[1],c=(0,r.useState)(0),d=o()(c,2),u=(d[0],d[1]),f=(0,r.useState)(),p=o()(f,2),m=(p[0],p[1]),h=(0,r.useState)(),g=o()(h,2),v=(g[0],g[1]),w=(0,r.useState)(!1),A=o()(w,2),x=(A[0],A[1],(0,r.useRef)(""));function b(e){27==e.keyCode&&x.current&&y()}function y(){document.body.style.overflow="auto",m(void 0),v(void 0),u(0),i("")}(0,r.useEffect)((function(){return a.Z.subscribe("preview-image",(function(e){i(e),console.log(C.current),document.body.style.overflow="hidden"}))}),[]),(0,r.useEffect)((function(){return document.addEventListener("keydown",b),function(){document.removeEventListener("keydown",b)}}),[]),(0,r.useEffect)((function(){x.current=t}),[t]);(0,r.useRef)();var j=(0,r.useRef)(),C=(0,r.useRef)();return(0,s.jsx)(r.Fragment,{children:t?(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"preview-wrp-group",ref:j,children:(0,s.jsx)(l.Z,{className:"image-preview",src:t,style:{display:"none"},preview:{visible:!0,src:t,movable:!1,onVisibleChange:function(e){i("")}},alt:"预览大图"})})}):null})}},73145:function(e,n,t){"use strict";t.d(n,{h:function(){return v}});var i=t(82242),o=t.n(i),r=t(79800),a=t.n(r),l=t(59301),s=t(57809),c=t(78241),d=t(3113),u=t(89780),f=t.n(u),p=(t(80443),t(90630),t(37712)),m=s.default.Option,h={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var n=e.value,t=e.onChange,i=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),d=(0,l.useState)(),u=a()(d,2),m=u[0],h=u[1];return(0,l.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,l.useEffect)((function(){m&&m.setOption("mode",i)}),[m,i]),(0,l.useEffect)((function(){m&&(n===m.getValue()&&""!==n||setTimeout((function(){m.setValue(n||"")}),300))}),[m,n]),(0,l.useEffect)((function(){if(c.current&&!m){var e=f().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));h(e)}}),[c.current,m]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}n.Z=function(e){var n=e.callback,t=e.onCancel,i=(0,l.useState)("python"),r=a()(i,2),u=r[0],f=r[1];return(0,p.jsxs)(c.Z,o()(o()({},h),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){n(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){f(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(m,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(v,{mode:u})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(d.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(d.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))}},16318:function(e,n,t){"use strict";t.d(n,{Z:function(){return be}});var i=t(91232),o=t.n(i),r=t(79800),a=t.n(r),l=t(85573),s=t.n(l),c=t(59301),d=t(89780),u=t.n(d),f=t(76374),p=(t(80443),t(6313),t(25717),t(99498),t(25419),t(67549),t(38279)),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,c.useMemo)((function(){return""}),[t]));return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=t(82242),v=t.n(g),w=[{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,o=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,m.jsxs)("a",{title:t,className:a,onClick:function(){n(o)},children:[(0,m.jsx)("i",{className:"".concat(i)}),l]})}var x=function(e){var n=e.watch,t=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{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:[!l&&c.map((function(e,n){return(0,m.jsx)("li",{children:e.actionName?(0,m.jsx)(A,v()(v()({},e),{},{onActionCallback:o})):(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:o,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:o,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:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,m.jsx)("li",{children:(0,m.jsx)(A,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,m.jsx)("li",{children:s}),(0,m.jsx)("li",{className:"btn-full-screen",children:(0,m.jsx)(A,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},b=t(24808),y=t(78241),j=t(92832),C=t(3113),B={labelCol:{span:4},wrapperCol:{span:20}},S=function(e){var n=e.callback,t=e.onCancel;return(0,m.jsxs)(y.Z,v()(v()({},B),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},style:{width:500},children:[(0,m.jsx)(y.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,m.jsx)(j.Z,{})}),(0,m.jsx)(y.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,m.jsx)(j.Z,{})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(C.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))},k=t(73145),N=t(28486),E=t(95237),T=t(36709),P=function(e){var n=e.callback,t=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,m.jsx)(E.Z,{style:{height:"100vh"},children:(0,m.jsx)(T.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){n({src:e.url})},onClose:t})})},L=t(7557),D=t.n(L),M=t(41498),I=t.n(M),O=t(37205),Z=t.n(O),R=t(12378);function F(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(F,go.CommandHandler),F.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},F.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")},F.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")},F.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")},F.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")},F.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")}},F.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")}},F.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;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===t.key){var o;if(n.isTreeExpanded&&!n.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(n).first())&&e.select(o);else for(;null!==n;){var r,a,l;if(null===(r=n.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(n))i.y?1:t.xi.x?1:0})),n},F.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},F.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(F.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(F.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var G=F,z=(t(41034),t(85160)),H=t(43418),W=t(43604),U=t(18030),V="myPaletteDiv___Xjz2I",K="maxH60___Pd4Re";window.go=R;var Q=function(e){var n=e.onCancel,t=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),d=(0,c.useState)(0),u=a()(d,2),f=u[0],p=u[1],h=function(){var e=I()(D()().mark((function e(){var n,o;return D()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.current.makeImage(),e.next=3,(0,U.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:n.src}});case 3:o=e.sent,t({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,m.jsx)("div",{ref:s,className:l.current?"".concat(K," body-overflow-initial"):"body-overflow-initial",children:(0,m.jsx)(H.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,m.jsxs)(E.Z,{children:[(0,m.jsx)(W.Z,{flex:1,children:"插入流程图"}),(0,m.jsx)(W.Z,{onClick:function(){l.current=!l.current,p(f+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:V,ref:r})]}),(0,m.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,m.jsx)(z.FI,{initDiagram:function(){var e=R.GraphObject.make,n="#ff3333",t="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",d="#ffffff",u="#000000",f="#fffcd5",p="#d5ebff",m="#f2dfe0",h="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function A(n,t){var i=function(e,t){e.handled=!0,e.diagram.model.commit((function(i){var o=t.part.adornedPart,r=(new R.Point).setRectSpot(o.actualBounds,n);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var l={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(R.Shape,{figure:t,alignment:n,alignmentFocus:n.opposite(),width:n.equals(R.Spot.Top)||n.equals(R.Spot.Bottom)?25:18,height:n.equals(R.Spot.Top)||n.equals(R.Spot.Bottom)?18:25,fill:"orange",stroke:d,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 x(n){return e(R.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 b(e,n){return function(t,i){t.handled=!0,t.diagram.model.commit((function(t){t.set(i.part.adornedPart.data,e,n)}))}}function y(n,t){return t||(t="color"),e(R.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:b(t,n),contextClick:b(t,n)})}function j(){return[e("ContextMenuButton",e(R.Panel,"Horizontal",y(d,"fill"),y(f,"fill"),y(p,"fill"),y(m,"fill"))),e("ContextMenuButton",e(R.Panel,"Horizontal",y(g,"fill"),y(v,"fill"),y(h,"fill"),y(w,"fill")))]}function C(){return[e("ContextMenuButton",e(R.Panel,"Horizontal",y(u),y(a),y(t),y(n))),e("ContextMenuButton",e(R.Panel,"Horizontal",y(d),y(l),y(s),y(c)))]}function B(n,t){return t||(t="thickness"),e(R.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:b(t,n),contextClick:b(t,n)})}function S(n,t){return t||(t="dash"),e(R.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:b(t,n),contextClick:b(t,n)})}function k(){return[e("ContextMenuButton",e(R.Panel,"Horizontal",B(1),B(2),B(3),B(4))),e("ContextMenuButton",e(R.Panel,"Horizontal",S(null),S([2,4]),S([4,4])))]}function N(n,t){return t||(t="figure"),e(R.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:b(t,n),contextClick:b(t,n)})}function E(n){return e(R.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(n+4).toString()+" H3"})}function T(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(R.Shape,{geometryString:t,margin:2,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:b("dir",n),contextClick:b("dir",n)})}function P(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",R.Spot.stringify(R.Spot.AllSides)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(R.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 L(n,t){var i=0,o=R.Spot.RightSide;n.equals(R.Spot.Top)?(i=270,o=R.Spot.TopSide):n.equals(R.Spot.Left)?(i=180,o=R.Spot.LeftSide):n.equals(R.Spot.Bottom)&&(i=90,o=R.Spot.BottomSide),t||(i-=180);var r=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",R.Spot.stringify(o)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(R.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:r,contextClick:r})}return i.current=new R.Diagram(o.current,{padding:20,grid:e(R.Panel,"Grid",e(R.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(R.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(G),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var 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(R.Node,"Auto",{locationSpot:R.Spot.Center,locationObjectName:"SHAPE",desiredSize:new R.Size(120,60),minSize:new R.Size(40,40),resizable:!0,resizeCellSize:new R.Size(10,10),rotatable:!0},new R.Binding("location","loc",R.Point.parse).makeTwoWay(R.Point.stringify),new R.Binding("desiredSize","size",R.Size.parse).makeTwoWay(R.Size.stringify),e(R.Shape,{name:"SHAPE",fill:d,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:R.Spot.AllSides,toSpot:R.Spot.AllSides},new R.Binding("figure"),new R.Binding("fill"),new R.Binding("stroke","borderColor"),new R.Binding("strokeWidth","thickness"),new R.Binding("strokeDashArray","dash")),e(R.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(R.TextBlock,{margin:1,textAlign:"center",overflow:R.TextBlock.OverflowEllipsis,editable:!0},new R.Binding("text").makeTwoWay(),new R.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(R.Panel,"Vertical",{maxSize:new R.Size(200,NaN)},e(R.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new R.Binding("text")),e(R.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new R.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(R.Adornment,"Spot",e(R.Placeholder,{padding:10}),A(R.Spot.Top,"TriangleUp"),A(R.Spot.Left,"TriangleLeft"),A(R.Spot.Right,"TriangleRight"),A(R.Spot.Bottom,"TriangleDown"),x({alignment:new R.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(R.Panel,"Horizontal",N("Rectangle"),N("RoundedRectangle"),N("Ellipse"),N("Diamond"))),e("ContextMenuButton",e(R.Panel,"Horizontal",N("Parallelogram2"),N("ManualOperation"),N("Procedure"),N("Cylinder1"))),e("ContextMenuButton",e(R.Panel,"Horizontal",N("Terminator"),N("CreateRequest"),N("Document"),N("TriangleDown"))),j(),C(),k()),i.current.groupTemplate=e(R.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:R.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 R.Binding("location","loc",R.Point.parse).makeTwoWay(R.Point.stringify),e(R.Panel,"Auto",{name:"BODY"},e(R.Shape,{parameter1:10,fill:d,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:R.Spot.AllSides,toSpot:R.Spot.AllSides},new R.Binding("fill"),new R.Binding("stroke","color"),new R.Binding("strokeWidth","thickness"),new R.Binding("strokeDashArray","dash")),e(R.Placeholder,{background:"transparent",margin:20})),e(R.TextBlock,{alignment:R.Spot.Top,alignmentFocus:R.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new R.Binding("text"),new R.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(R.Adornment,"Spot",e(R.Panel,"Auto",e(R.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(R.Placeholder,{margin:1.5})),x({alignment:R.Spot.TopRight,alignmentFocus:R.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",j(),C(),k()),i.current.linkTemplate=e(R.Link,{layerName:"Foreground",routing:R.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new R.Binding("fromSpot","fromSpot",R.Spot.parse),new R.Binding("toSpot","toSpot",R.Spot.parse),new R.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new R.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new R.Binding("points").makeTwoWay(),e(R.Shape,{strokeWidth:2},new R.Binding("stroke","color"),new R.Binding("strokeWidth","thickness"),new R.Binding("strokeDashArray","dash")),e(R.Shape,{segmentIndex:0,segmentOffset:new R.Point(15,0),segmentOrientation:R.Link.OrientAlong,alignmentFocus:R.Spot.Right,figure:"circle",width:10,strokeWidth:0},new R.Binding("fill","color"),new R.Binding("visible","dir",(function(e){return 1===e}))),e(R.Shape,{segmentIndex:-1,segmentOffset:new R.Point(-10,6),segmentOrientation:R.Link.OrientPlus90,alignmentFocus:R.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new R.Binding("fill","color"),new R.Binding("visible","dir",(function(e){return e>=1})),new R.Binding("width","thickness",(function(e){return 7+3*e})),new R.Binding("height","thickness",(function(e){return 7+3*e})),new R.Binding("segmentOffset","thickness",(function(e){return new R.Point(-15,4+1.5*e)}))),e(R.Shape,{segmentIndex:0,segmentOffset:new R.Point(15,-6),segmentOrientation:R.Link.OrientMinus90,alignmentFocus:R.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new R.Binding("fill","color"),new R.Binding("visible","dir",(function(e){return 2===e})),new R.Binding("width","thickness",(function(e){return 7+3*e})),new R.Binding("height","thickness",(function(e){return 7+3*e})),new R.Binding("segmentOffset","thickness",(function(e){return new R.Point(-15,4+1.5*e)}))),e(R.TextBlock,{alignmentFocus:new R.Spot(0,1,-4,0),editable:!0},new R.Binding("text").makeTwoWay(),new R.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(R.Adornment,e(R.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:E(2)},new R.Binding("pathPattern","thickness",E)),x({alignmentFocus:new R.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",C(),k(),e("ContextMenuButton",e(R.Panel,"Horizontal",T(0),T(1),T(2))),e("ContextMenuButton",e(R.Panel,"Horizontal",e(R.Panel,"Spot",P(!1),L(R.Spot.Top,!1),L(R.Spot.Left,!1),L(R.Spot.Right,!1),L(R.Spot.Bottom,!1)),e(R.Panel,"Spot",{margin:new R.Margin(0,0,0,2)},P(!0),L(R.Spot.Top,!0),L(R.Spot.Left,!0),L(R.Spot.Right,!0),L(R.Spot.Bottom,!0))))),new R.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(R.Link,{locationSpot:R.Spot.Center,selectionAdornmentTemplate:e(R.Adornment,"Link",{locationSpot:R.Spot.Center},e(R.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(R.Shape,{toArrow:"Standard",stroke:null}))},{routing:R.Link.AvoidsNodes,curve:R.Link.JumpOver,corner:5,toShortLength:4},new R.Binding("points"),e(R.Shape,{isPanelMain:!0,strokeWidth:2}),e(R.Shape,{toArrow:"Standard",stroke:null})),model:new R.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(Z()(R.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(R.Node,"Auto",{locationSpot:R.Spot.Center},new R.Binding("location","location",R.Point.parse).makeTwoWay(R.Point.stringify),e(R.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 R.Binding("stroke").makeTwoWay(),new R.Binding("fill").makeTwoWay(),new R.Binding("figure")),e(R.TextBlock,{margin:new R.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new R.Size(16,16),maxSize:new R.Size(10,NaN),textAlign:"center",editable:!0},new R.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(R.Panel,"Grid",e(R.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(R.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:o})]})]}),(0,m.jsx)("div",{className:"tr",children:(0,m.jsx)(C.ZP,{size:"large",onClick:h,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},q=t(5112),_=t(94001),X=q.ZP.Group,J={margin:"0 8px"},Y=function(e){var n=e.callback,t=e.onCancel;return(0,m.jsxs)(y.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:J,children:"单元格数:"}),(0,m.jsx)("span",{style:J,children:"行数"}),(0,m.jsx)(y.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,m.jsx)(_.Z,{})}),(0,m.jsx)("span",{style:J,children:"列数"}),(0,m.jsx)(y.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,m.jsx)(_.Z,{})})]}),(0,m.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,m.jsx)("span",{style:J,children:"对齐方式:"}),(0,m.jsx)(y.Z.Item,{name:"align",children:(0,m.jsxs)(X,{children:[(0,m.jsx)(q.ZP,{value:"default",children:(0,m.jsx)("i",{className:"fa fa-align-justify"})}),(0,m.jsx)(q.ZP,{value:"left",children:(0,m.jsx)("i",{className:"fa fa-align-left"})}),(0,m.jsx)(q.ZP,{value:"center",children:(0,m.jsx)("i",{className:"fa fa-align-center"})}),(0,m.jsx)(q.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)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(C.ZP,{type:"ghost",onClick:t,children:"取消"})]})]})},$=t(78673),ee=t(57932),ne=t.n(ee),te=(0,c.forwardRef)((function(e,n){var t=e.use3d,i=e.width,o=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),d=(0,c.useState)(!1),u=a()(d,2),f=u[0],p=u[1],h=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(ne())(h.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){h.current.appName=f?"3D":"graphing",s.current.inject("applet_container")}),[f]),(0,c.useEffect)((function(){p(t)}),[t]),(0,c.useImperativeHandle)(n,(function(){return{getImgData:g}})),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,m.jsxs)(E.Z,{align:"middle",children:[(0,m.jsx)(W.Z,{flex:1,children:(0,m.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,m.jsx)(W.Z,{children:(0,m.jsx)(C.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=t(36761),oe=t(92723),re=t(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",de="code-block",ue="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},me=t(77818);var he="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ae=s()(s()({},we+"-B","bold"),we+"-I","italic"),xe=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),de,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),ue,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),be=function(e){var n=e.defaultValue,t=void 0===n?"":n,i=e.onChange,r=e.width,l=void 0===r?"100%":r,d=e.height,g=void 0===d?400:d,v=e.miniToolbar,w=void 0!==v&&v,A=e.isFocus,y=void 0!==A&&A,j=e.watch,C=e.insertTemp,B=e.mode,E=void 0===B?"markdown":B,T=e.id,L=void 0===T?"markdown-editor-id":T,D=e.showResizeBar,M=void 0!==D&&D,I=e.noStorage,O=void 0!==I&&I,Z=e.showNullButton,R=void 0!==Z&&Z,F=e.showNullProgramButton,G=void 0!==F&&F,z=e.hidetoolBar,W=void 0!==z&&z,U=e.fullScreen,V=void 0!==U&&U,K=e.onBlur,q=e.onCMBeforeChange,_=e.onFullScreen,X=e.className,J=void 0===X?"":X,$=e.disablePaste,ee=void 0!==$&&$,ne=e.disabled,fe=void 0!==ne&&ne,we=e.disabledFill,be=void 0!==we&&we,ye=e.placeholder,je=void 0===ye?"":ye,Ce=e.values,Be=void 0===Ce?"":Ce,Se=e.extraUse,ke=(0,c.useState)(null),Ne=a()(ke,2),Ee=Ne[0],Te=Ne[1],Pe=(0,c.useState)(t),Le=a()(Pe,2),De=Le[0],Me=Le[1],Ie=(0,c.useState)(j),Oe=a()(Ie,2),Ze=Oe[0],Re=Oe[1],Fe=(0,c.useState)(V),Ge=a()(Fe,2),ze=Ge[0],He=Ge[1],We=(0,c.useState)(""),Ue=a()(We,2),Ve=Ue[0],Ke=Ue[1],Qe=(0,c.useState)(0),qe=a()(Qe,2),_e=qe[0],Xe=qe[1],Je=(0,c.useState)(g),Ye=a()(Je,2),$e=Ye[0],en=Ye[1],nn=(0,c.useState)(!1),tn=a()(nn,2),on=(tn[0],tn[1]),rn=(0,c.useState)(0),an=a()(rn,2),ln=an[0],sn=an[1],cn=(0,c.useState)(0),dn=a()(cn,2),un=dn[0],fn=dn[1],pn=(0,c.useRef)(),mn=(0,c.useRef)(),hn=(0,c.useRef)(),gn=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Me(Be),null==Ee||Ee.setValue(Be),window.scrollTo(0,e)}),[Be]),(0,c.useEffect)((function(){null==_||_(ze)}),[ze]),(0,c.useEffect)((function(){if(pn.current){var e=function(e,t){if(!ee){var i=t.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(t.preventDefault(),"stex"==E)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,N.I)(s,(function(e){var t,i,o;e.id?(null==s||null===(t=s.type)||void 0===t?void 0:t.indexOf("image"))>-1?n.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?n.replaceSelection('')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?n.replaceSelection('').concat(s.name,"")):ge.includes(c)?n.replaceSelection('').concat(s.name,"")):n.replaceSelection("[".concat(s.name,"](").concat(oe.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){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}t.preventDefault()},n=u().fromTextArea(pn.current,{mode:E,lineNumbers:!w,lineWrapping:!0,value:t,autoCloseTags:!0,autoCloseBrackets:!0});return n.on("keyup",(function(e,t){8===t.keyCode&&(""==e.getValue()?n.setOption("placeholder",je):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(),o=t.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===he.indexOf(r))return null;if(console.log("change1:",n,e,o,i,s,a,l,r),s>=0&&i.ch-s<5){var d=s+c;return t.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:d}),{line:i.line,ch:d}}return null}(e);t&&n.preventDefault()}})),y&&n.focus(),n.on("paste",e),fe&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Te(n),function(){n.off("paste",e)}}}),[]);var vn=(0,c.useCallback)((function(){mn.current}),[$e,mn,ze]);(0,c.useEffect)((function(){if(Ee){var e=function(){var e=new f.Z((function(e){var n,t=o()(e);try{for(t.s();!(n=t.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(vn(),Ee.setSize("100%","100%"),Ee.refresh())}}catch(e){t.e(e)}finally{t.f()}}));return e.observe(pn.current.parentElement),e}();return function(){var n,t;null!==(n=pn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(t=pn.current)||void 0===t?void 0:t.parentElement)}}}),[Ee,vn]),(0,c.useEffect)((function(){if(Ee){for(var e=[],n=function(){var n=a()(i[t],2),o=n[0],r=n[1],l=s()({},o,(function(){wn(r)}));e.push(l),Ee.addKeyMap(l)},t=0,i=Object.entries(Ae);t0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(L);e>=_e+1e4&&(!n||n!==De)&&(window.sessionStorage.setItem(L,De),on(!0))}}),1e4),(0,c.useEffect)((function(){Re(j)}),[Ee,j]),(0,c.useEffect)((function(){Ee&&y&&Ee.focus()}),[Ee,y]),(0,c.useEffect)((function(){if(Ze&&Ee){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=Ee.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[Ee,Ze]),(0,c.useEffect)((function(){if(Ee&&q){var e=function(e,n){q(e,n)};return Ee.on("beforeChange",e),function(){Ee.off("beforeChange",e)}}}),[Ee,q]),(0,c.useEffect)((function(){if(Ee&&K){var e=function(){K(Ee.getValue())};return Ee.on("blur",e),function(){Ee.off("blur",e)}}}),[Ee,K]),(0,c.useEffect)((function(){if(Ee){var e=function(e,n){var t=e.getValue();Me(t),Xe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(G?i(t,jn(t)):i(t))};return Ee.on("change",e),function(){Ee.off("change",e)}}}),[Ee,i]),(0,c.useEffect)((function(){if(Ee)if(null==t)Ee.setValue(""),Me("");else{var e=window.scrollY||window.pageYOffset;t!==Ee.getValue()&&(Ee.setValue(t),Me(t),Ee.setCursor(fe?1:Ee.lineCount(),0),window.scrollTo(0,e))}}),[Ee,t]);var wn=(0,c.useCallback)((function(e){var n=Ee.getCursor(),t=Ee.getSelection(),i=t.split("\n");switch(e){case"bold":return Ee.replaceSelection("**"+t+"**"),""===t&&Ee.setCursor(n.line,n.ch+2),Ee.focus();case"italic":return Ee.replaceSelection("*"+t+"*"),""===t&&Ee.setCursor(n.line,n.ch+1),Ee.focus();case"code":return Ee.replaceSelection("`"+t+"`"),""===t&&Ee.setCursor(n.line,n.ch+1),Ee.focus();case"inline-latex":return Ke("inline-latex"),Ee.focus();case"latex":return Ee.replaceSelection("```latex\n"+t+"\n```"),Ee.setCursor(n.line+1,t.length+1),Ee.focus();case"line-break":return Ee.replaceSelection("
\n"),Ee.focus();case"list-ul":return""===t?Ee.replaceSelection("- "+t):Ee.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ee.focus();case"list-ol":return""===t?Ee.replaceSelection("1. "+t):Ee.replaceSelection(i.map((function(e,n){return""===e?"":"".concat(n+1,". ").concat(e)})).join("\n")),Ee.focus();case"add-null-ch":return""===t&&Ee.setCursor(n.line,n.ch),Ee.replaceSelection("▁"),Ee.focus();case"add-signal":return""===t&&Ee.setCursor(n.line,n.ch),Ee.replaceSelection("@▁@"),Ee.focus();case"add-multiple":return""===t&&Ee.setCursor(n.line,n.ch),Ee.replaceSelection(he),Ee.focus();case"inster-template-1":return""===t&&Ee.setCursor(n.line,n.ch),Ee.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ee.focus();case"eraser":return Ee.setValue(""),Ee.focus();case"trigger-watch":return Re(!Ze),Ee.focus();case"trigger-full-screen":return He(!ze),Ee.focus();case ae:return void Ke(ae);case de:return void Ke(de);case le:return void Ke(le);case ce:return void Ke(ce);case"maths-latex":return void Ke("maths-latex");case se:return void Ke(se);case ue:return void Ke(ue);default:throw new Error}}),[Ee,Ze,ze]),An=(0,c.useCallback)((function(e,n){var t,i,o,r,a;switch(Ke(""),Ve){case ae:var l=e.title,s=e.link;return Ee.replaceSelection("[".concat(l,"](").concat(s,")")),Ee.focus();case de:var c=e.language,d=e.content;return Ee.replaceSelection(["```"+c,d,"```"].join("\n")),Ee.focus();case"maths-latex":for(var u=atob(e),f=new Uint8Array(u.length),p=0;p-1||null==v||!v.type?g?Ee.replaceSelection("![ ".concat(g," ]( ").concat(h,' "').concat(g,'" )')):Ee.replaceSelection("![,](".concat(h,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Ee.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Ee.replaceSelection('').concat(v.name,"")):ge.includes(w)?Ee.replaceSelection('').concat(v.name,"")):Ee.replaceSelection("[".concat(v.name,"](").concat(oe.Z.API_SERVER).concat(h,")")),Ee.focus();case ue:for(var A=e.row,x=e.col,b=e.align,y="\n",j=0;j300&&(n=300),en(g+n+"px")}},i=hn.current,o=!1,r=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)}}}),[Ee,hn]),(0,c.useEffect)((function(){en(g)}),[g]);var yn={width:ve(l),height:ve($e)},jn=((0,c.useMemo)((function(){if(_e){var e=new Date(_e),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}),[_e]),function(e){var n=[];if(G){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,t,i){n.push({multiLine:!("@▁@"===e)})}))}return n});(0,c.useEffect)((function(){xe[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;sn(n),fn(t)}),0)}),[Ve]);var Cn=function(e,n,t,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&t>e||e>r-20&&tn||n>o-20&&i0&&(0,l.jsx)("div",{className:a,children:t.map((function(e,n){return(0,l.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,l.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNk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4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},n)}))}),f]}),i&&(0,l.jsx)("img",{style:{marginTop:33,marginRight:38},src:i,width:c})]})})},c=t(79800),d=t.n(c),u="row___aXJjm",f="title___HUKL0",p="tagsWrap___XB2W3",m="action___VdHb1",h="bar___t1kKC",g="tag___V7Eft",v="name___Hk1Ip",w="num___xQpcH",A="active___XryTX",x="tagsBorderWrap___OMxjs",b=t(92310),y=t.n(b),j=t(89392),C=function(e){var n=e.dataSource,t=void 0===n?[]:n,o=e.value,r=e.onChange,a=e.onTitleChange,s=e.className,c=e.title,b=e.titleWidth,C=void 0===b?41:b,B=e.style,S=void 0===B?{}:B,k=e.fontColor,N=void 0===k?"#6A7283":k,E=e.showCount,T=(0,i.useState)(0),P=d()(T,2),L=P[0],D=P[1],M=(0,i.useState)(!1),I=d()(M,2),O=I[0],Z=I[1],R=(0,i.useRef)(null),F=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;0!==t.length&&((null==R||null===(e=R.current)||void 0===e?void 0:e.clientHeight)>97?D(1):D(0));0===t.length&&D(0),Z(!1)}),[t]),(0,l.jsxs)("div",{className:y()(u,s),style:S,children:[(0,l.jsx)("div",{onClick:(0,j.throttle)((function(){return null==a?void 0:a()}),2e3),style:{width:C,marginTop:O?12:4},className:"".concat(f," ").concat(a?"current":""),children:c}),(0,l.jsxs)("div",{className:O?"".concat(p," ").concat(x):p,children:[(0,l.jsx)("div",{className:h,ref:F,style:L>0?{height:1===L?97:"auto",overflow:1===L?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,l.jsx)("div",{className:g,ref:R,children:null==t?void 0:t.map((function(e){return(0,l.jsxs)("span",{onClick:function(){return r(e.id)},style:{color:N},className:o===e.id?A:"",children:[(0,l.jsx)("span",{title:e.name,className:v,children:e.name}),!!E&&(0,l.jsx)("span",{className:w,children:e.count})]},e.id)}))})}),!!L&&(0,l.jsx)(i.Fragment,{children:1===L?(0,l.jsxs)("div",{onClick:function(){var e;D(2),(null==R||null===(e=R.current)||void 0===e?void 0:e.clientHeight)>245?Z(!0):Z(!1)},className:m,children:["展开",(0,l.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,l.jsxs)("div",{onClick:function(){F.current.scrollTop=0,D(1),Z(!1)},className:m,children:["收起",(0,l.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},B="tabs___GTqPV",S="active___F26E8",k=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,o=e.onChange,r=e.className,a=e.style,s=void 0===a?{}:a;return(0,l.jsx)("div",{style:s,className:y()(B,r),children:t.map((function(e){return(0,l.jsx)("span",{onClick:function(){return o(e.id)},className:i===e.id?S:"",children:e.name},e.id)}))})},N="input___PW2zI",E="dropdown___vSy8B",T="menu___NiyBu",P="text___Grueu",L="b1___ZKryM",D="b2___aKyGa",M=t(92832),I=function(e){var n,t=e.dataSource,o=void 0===t?[]:t,r=e.value,a=void 0===r?"":r,s=e.onChange,c=e.onInputChange,u=void 0===c?function(){}:c,f=e.className,p=e.style,m=void 0===p?{}:p,h=e.placeholder,g=(e.allowClear,(0,i.useState)("")),v=d()(g,2),w=v[0],A=v[1],x=(0,i.useState)(""),b=d()(x,2),j=b[0],C=b[1];(0,i.useEffect)((function(){var e,n=a;null!==(e=JSON.stringify(a))&&void 0!==e&&e.includes("{")&&(A(a.id),n=a.value||"");try{C(decodeURIComponent(n||""))}catch(e){C(decodeURIComponent(n||""))}}),[a]);var B=function(){s(encodeURIComponent(j),w||null)};return(0,l.jsxs)("div",{className:y()(N,f),style:m,children:[!!o.length&&(0,l.jsxs)("div",{className:E,children:[(0,l.jsxs)("div",{className:P,children:[null===(n=o.find((function(e){return e.id===w})))||void 0===n?void 0:n.name,(0,l.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,l.jsx)("b",{className:L}),(0,l.jsx)("b",{className:D})]}),(0,l.jsx)("div",{className:T,children:o.map((function(e,n){return(0,l.jsx)("div",{onClick:function(){var n;(n=e.id)!==w&&(A(n),s(encodeURIComponent(j),n))},children:e.name},n)}))})]}),(0,l.jsx)(M.Z,{onPressEnter:B,value:j,onChange:function(e){C(e.target.value),u(encodeURIComponent(e.target.value),w||null)},bordered:!1,placeholder:h}),(0,l.jsx)("i",{onClick:B,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},O="quickPager___GM30J",Z="disabled___Ozc8I",R=function(e){var n=e.value,t=e.onChange,i=e.className,o=e.total,r=e.pageSize,a=e.style,s=void 0===a?{}:a,c=n<2,d=n>=Math.ceil(o/r);return o<=r?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("div",{className:y()(O,i),style:s,children:[(0,l.jsx)("div",{onClick:function(){c||t(n-1,"prev")},className:c?Z:"",children:"上一页"}),(0,l.jsx)("div",{onClick:function(){d||t(n+1,"next")},className:d?Z:"",children:"下一页"})]})},F="list___oOsiS",G="wrap___G6T7F",z="lockWrap___Rl79E",H="li___oZZ7l",W="cover___b2bYW",U="img___IQX7w",V="sign___HkT6C",K="name___SsJx8",Q="e___TMqq0",q="tags___bcjyo",_="rate___YACg7",X=t(71418),J=t(6848),Y=t(31395),$=t(92723),ee=t(21082),ne=t(96908),te=t(57177),ie=t(81378),oe=t(54313),re=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,o=e.col,r=void 0===o?4:o,a=e.right,s=e.bottom,c=void 0===s?23:s,d=e.precision,u=void 0===d?0:d,f=e.wrapWidth,p=void 0===f?1200:f,m=e.trackEventItems,h=e.loading,g=Math.floor((p-(r-1)*a)/r);return(0,l.jsx)(X.Z,{spinning:h,children:(0,l.jsxs)("div",{className:y()(F,n),children:[!!i.length&&i.map((function(e,n){var t=e.name,i=e.id,o=e.identifier,s=e.power,d=(e.cover_image_id,e.pic);return(0,l.jsxs)("div",{className:G,style:{width:g,marginRight:(1+n)%r==0?0:a+u,marginBottom:c},children:[(0,l.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(o,"/challenges"),className:H,onClick:function(e){e.preventDefault(),m&&(0,ee.L9)([m]),s&&(0,ee.xg)("/shixuns/".concat(o,"/challenges"))},children:[(0,l.jsxs)("div",{className:U,children:[(0,l.jsx)("img",{className:W,src:"".concat(d)}),e.is_jupyter&&(0,l.jsx)("img",{className:V,src:ne}),e.is_jupyter_lab&&(0,l.jsx)("img",{className:V,src:te}),e.is_unity_3d&&(0,l.jsx)("img",{className:V,src:ie})]}),(0,l.jsx)("div",{className:K,children:(0,l.jsx)(J.Z,{title:t||"实践项目名称-未填写",children:(0,l.jsx)("span",{className:Q,children:t||"实践项目名称-未填写"})})}),(0,l.jsxs)("div",{className:q,children:[(0,l.jsx)(J.Z,{placement:"bottom",title:"关卡数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,l.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,l.jsx)(J.Z,{placement:"bottom",title:"学习人数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,l.jsx)("span",{children:e.myshixuns_count})]})}),(0,l.jsx)(J.Z,{placement:"bottom",title:"难度等级",children:(0,l.jsx)("span",{children:(0,l.jsx)("span",{children:e.level})})}),(0,l.jsxs)("div",{className:_,children:[(0,l.jsx)(Y.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,l.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!s&&(0,l.jsxs)("div",{className:z,children:[(0,l.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,l.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},i)})),!i.length&&(0,l.jsx)(oe.Z,{})]})})},ae="list___jb2Ay",le="wrap___VsQDr",se="li___IxCLC",ce="cover___Mu8wr",de="img___IpFLA",ue="movebq___mF7wt",fe="bq___Bil0T",pe="sign___DXJ4d",me="name___l7FoJ",he="e___pXQUG",ge="unit___wCIFR",ve="tags___w_Mil",we=t(93697),Ae=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,o=e.col,r=void 0===o?4:o,a=e.right,s=e.bottom,c=void 0===s?23:s,d=e.precision,u=void 0===d?0:d,f=e.wrapWidth,p=void 0===f?1200:f,m=e.trackEventItems,h=e.loading,g=e.onRemove,v=void 0===g?function(){}:g,w=e.isCurrent,A=void 0===w||w,x=e.showAlias,b=void 0!==x&&x,j=Math.floor((p-(r-1)*a)/r),C=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,l.jsx)(X.Z,{spinning:h,children:(0,l.jsxs)("div",{className:y()(ae,n),children:[!(null==i||!i.length)&&(null==i?void 0:i.map((function(e,n){var t,i=e.name,o=e.id,s=e.identifier,d=(e.featured,e.school_name),f=e.image_url;e.excellent,e.is_plan;return(0,l.jsx)("div",{className:le,style:{width:j,marginRight:(1+n)%r==0?0:a+u,marginBottom:c},children:(0,l.jsxs)("a",{className:se,onClick:function(e){e.preventDefault(),e.stopPropagation(),m&&(0,ee.L9)([m]),(0,ee.xg)("/paths/".concat(s))},children:[(0,l.jsxs)("div",{className:de,children:[(0,l.jsx)("img",{className:ce,src:"".concat(f)}),A&&(0,we.bg)()&&(null==e?void 0:e.studying)&&(0,l.jsxs)("div",{className:"".concat(ue," user-path-items"),onClick:function(n){n.stopPropagation(),v(e)},children:[(0,l.jsx)("i",{className:"iconfont icon-yichu1 mr5 c-red"}),(0,l.jsx)("span",{className:"c-red",children:"移除"})]}),null==e||null===(t=e.subject_tags)||void 0===t?void 0:t.map((function(e,n){var t;if(0===n){var i,o=null===(i=C.find((function(n){return n.name==e})))||void 0===i?void 0:i.swimg;return(0,l.jsx)("img",{className:pe,src:o,style:{left:"-4px"}})}var r=null===(t=C.find((function(n){return n.name==e})))||void 0===t?void 0:t.ptimg;return(0,l.jsx)("img",{className:pe,src:r,style:{left:"".concat(48+52*(n-1)+2*n,"px")}})})),(0,l.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,l.jsx)("div",{className:fe,children:"开放课程"})})]}),(0,l.jsx)("div",{className:me,children:(0,l.jsx)(J.Z,{title:b&&null!=e&&e.excellent_alias_name?(0,l.jsxs)("span",{children:["课程原名:".concat(i),(0,l.jsx)("br",{}),(0,l.jsx)("span",{children:"课程别名:".concat(null==e?void 0:e.excellent_alias_name)})]}):i,children:(0,l.jsx)("span",{className:he,children:b&&(null==e?void 0:e.excellent_alias_name)||i})})}),(0,l.jsx)(J.Z,{title:"发布单位:".concat(d),children:(0,l.jsxs)("div",{className:ge,children:[(0,l.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),d]})}),(0,l.jsx)("div",{className:ve,children:(0,l.jsxs)("div",{children:[(0,l.jsx)(J.Z,{placement:"bottom",title:"章节数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,l.jsx)("span",{children:e.stages_count})]})}),(0,l.jsx)(J.Z,{placement:"bottom",title:"学习人数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,l.jsx)("span",{children:e.members_count})]})})]})})]})},o)}))),!i.length&&(0,l.jsx)(oe.Z,{})]})})},xe={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},be=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,o=e.col,r=void 0===o?4:o,a=e.right,s=e.bottom,c=void 0===s?23:s,d=e.precision,u=void 0===d?0:d,f=e.wrapWidth,p=void 0===f?1200:f,m=e.trackEventItems,h=e.loading,g=Math.floor((p-(r-1)*a)/r);return(0,l.jsx)(X.Z,{spinning:h,children:(0,l.jsxs)("div",{className:y()(xe.list,n),children:[!!i.length&&i.map((function(e,n){var t=e.subject_identifier,i=e.id,o=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,l.jsxs)("div",{className:xe.wrap,style:{width:g,marginRight:(1+n)%r==0?0:a+u,marginBottom:c},children:[(0,l.jsxs)("a",{className:xe.li,onClick:function(n){n.preventDefault(),(0,ee.Wn)(null==e?void 0:e.forbid_visit_info)||(m&&(0,ee.L9)([m]),(0,ee.xg)(e.first_category_url))},children:[(0,l.jsxs)("div",{className:xe.top,children:[(0,l.jsx)(J.Z,{title:e.name,children:(0,l.jsx)("div",{className:xe.name,children:e.name})}),(0,l.jsx)("img",{className:xe.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,l.jsx)("div",{className:xe.text,title:e.creator,children:e.creator}),t&&(0,l.jsxs)("div",{className:xe.btns,children:[(0,l.jsx)("div",{children:"开放课程"}),(0,l.jsx)("aside",{children:"开放课堂"})]}),o&&(0,l.jsx)("div",{className:xe.sign,children:"公开"})]}),(0,l.jsxs)("div",{className:xe.bottom,children:[e.visits>0&&(0,l.jsx)(J.Z,{title:"访问量",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,l.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,l.jsx)(J.Z,{title:"成员",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,l.jsx)(J.Z,{title:"作业",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,l.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,l.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,l.jsxs)("div",{className:xe.lockWrap,children:[(0,l.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,l.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},i)})),!i.length&&(0,l.jsx)(oe.Z,{})]})})},ye={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},je=t(5296),Ce=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,o=e.onChange,r=e.className,a=e.style,s=void 0===a?{}:a,c=e.tabBarExtraContent;return(0,l.jsxs)("div",{className:y()(ye.tabs,r),style:s,children:[(0,l.jsx)("div",{className:ye.tabsWrap,children:t.map((function(e,n){return(0,l.jsxs)("aside",{className:ye.tab,onClick:function(){o(e.id),e.link&&je.history.push(e.link)},children:[(0,l.jsx)("div",{className:i===e.id?ye.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,l.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,l.jsx)(J.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,l.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,l.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,l.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},n)}))}),(0,l.jsx)("div",{className:ye.tabBar,children:c})]})},Be=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,o=e.children;return(0,l.jsx)("div",{className:y()(n),style:i,children:o})},Se="orderWrap___ZfyGX",ke="orderIconWrap___XTB_O",Ne="orderAsc___KWHmA",Ee="orderDesc___rHdbB",Te="active___a7eSP",Pe="cursorPointer___gs9kL",Le="orderTextWrap___teAKn",De=t(38854),Me=t(20834),Ie=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Oe=function(e){var n,t=e.sortValue,i=e.dropValue,o=e.className,r=e.onSort,a=e.onDrop,s=e.dataSource,c=void 0===s?Ie:s;return(0,l.jsxs)("div",{className:y()(Se,o),children:[(0,l.jsx)(De.Z,{dropdownRender:function(){return(0,l.jsx)(Me.Z,{children:c.map((function(e,n){return(0,l.jsx)(Me.Z.Item,{onClick:function(){return a(e.id)},children:e.name},n)}))})},children:(0,l.jsx)("span",{className:Le,children:null===(n=c.find((function(e){return i===e.id})))||void 0===n?void 0:n.name})}),(0,l.jsxs)("span",{className:ke,children:[(0,l.jsx)("span",{className:Ne,children:(0,l.jsx)("i",{className:"asc"===t?"iconfont icon-sanjiaoxing-up font12 ".concat(Pe," ").concat(Te):"iconfont icon-sanjiaoxing-up font12 ".concat(Pe),onClick:function(){return r("asc"===t?"desc":"asc")}})}),(0,l.jsx)("span",{className:Ee,children:(0,l.jsx)("i",{className:"desc"===t?"iconfont icon-sanjiaoxing-down font12 ".concat(Pe," ").concat(Te):"iconfont icon-sanjiaoxing-down font12 ".concat(Pe),onClick:function(){return r("asc"===t?"desc":"asc")}})})]})]})},Ze=t(82242),Re=t.n(Ze),Fe=t(7557),Ge=t.n(Fe),ze=t(41498),He=t.n(ze),We=t(39647),Ue=t.n(We),Ve={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ke=t(3113),Qe=["className","style","children","loading","openLoading","onClick","size","shape"],qe=function(e){var n=e.className,t=e.style,o=e.children,r=e.loading,a=void 0!==r&&r,s=e.openLoading,c=e.onClick,u=void 0===c?function(){}:c,f=e.size,p=void 0===f?"middle":f,m=e.shape,h=void 0===m?"round":m,g=Ue()(e,Qe),v=(0,i.useState)(!1),w=d()(v,2),A=w[0],x=w[1];return(0,l.jsx)(Ke.ZP,Re()(Re()({onClick:(0,j.throttle)(function(){var e=He()(Ge()().mark((function e(n){return Ge()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s&&x(!0),e.prev=1,e.next=4,u(n);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:s&&x(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(n){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:y()(Ve.btn,Ve["".concat(p,"-").concat(h)],n),style:t,size:p,shape:h,loading:A||a},g),{},{children:o}))},_e="head___ghH72",Xe="node___mjPEy",Je=function(e){var n=e.className,t=e.style,i=e.children,o=void 0===i?null:i,r=e.onClick,a=e.title;return(0,l.jsxs)("div",{className:y()(_e,n),style:t,children:[(0,l.jsxs)("span",{className:"primary-hover",onClick:r,children:[(0,l.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,l.jsx)("b",{title:a,children:a}),(0,l.jsx)("div",{className:Xe,children:o})]})},Ye="btns___sNgTb",$e="confirm___Ozirl",en="cancel___aiq1I",nn=function(e){var n=e.confirmShow,t=void 0===n||n,i=e.confirmTitle,o=e.confirmClick,r=e.cancelShow,a=void 0===r||r,s=e.cancelTitle,c=e.cancelClick,d=e.className,u=e.style,f=e.confirmLoading,p=void 0!==f&&f;return(0,l.jsxs)("div",{className:y()(Ye,d),style:u,children:[t&&(0,l.jsx)(Ke.ZP,{loading:p,onClick:o,type:"primary",className:$e,children:i}),a&&(0,l.jsx)(Ke.ZP,{onClick:c,className:en,children:s})]})},tn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},on=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,o=e.LeftContent,r=e.children,a=e.RightContent;return(0,l.jsx)("div",{className:y()(tn.fixedBottom,n),style:i,children:(0,l.jsxs)("div",{className:tn.wrap,children:[(0,l.jsx)("div",{className:tn.left,children:o}),(0,l.jsx)("div",{className:tn.center,children:r}),(0,l.jsx)("div",{className:tn.right,children:a})]})})},rn="crumbs___V41Oe",an="hover___bEIVd",ln=function(e){var n=e.className,t=e.style,o=void 0===t?{}:t,r=e.dataSource,a=void 0===r?[]:r;return(0,l.jsx)("div",{className:y()(rn,n),style:o,children:a.map((function(e,n){return n"," "]})]},n):(0,l.jsx)("span",{style:{color:"#5F6368"},children:e.name},n)}))})},sn=t(31797),cn=["onChange"],dn=sn.Z.Countdown,un=function(e){var n=e.onChange,t=Ue()(e,cn),o=(0,i.useState)(null),r=d()(o,2),a=r[0],s=r[1];(0,i.useEffect)((function(){"number"==typeof a&&a>=0&&n(a)}),[a]);return(0,l.jsx)(dn,Re()(Re()({},t),{},{onChange:function(e){var n=Math.floor(e/1e3);s(n)}}))}},77818:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var i=t(59301);function o(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])}},90341:function(e,n,t){"use strict";t.d(n,{$J:function(){return s},JZ:function(){return d},bN:function(){return p},jP:function(){return f},rO:function(){return c}});var i=t(7557),o=t.n(i),r=t(41498),a=t.n(r),l=t(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function d(e){return u.apply(this,arguments)}function u(){return(u=a()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(n,".json"));case 2:return t=e.sent,e.abrupt("return",0===t.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return(0,l.v_)("libraries.json",e)}function p(e,n){return(0,l.gz)("libraries/".concat(e,".json"),n)}},79382:function(e,n,t){"use strict";t.d(n,{Z:function(){return E}});var i=t(7557),o=t.n(i),r=t(41498),a=t.n(r),l=t(79800),s=t.n(l),c=t(82242),d=t.n(c),u=t(37205),f=t.n(u),p=t(59301),m=t(5296),h=t(92832),g=t(78241),v=t(8591),w=t(43418),A=t(93948),x=t(24905),b=t(12563),y={modal:"modal___EKlPQ",uploadWrap:"uploadWrap___YGxav",upload:"upload___ouqG9",uploadLink:"uploadLink___nuif6",fileProgress:"fileProgress___tf4qy",fileCancel:"fileCancel___Bh3Wh",videoName:"videoName___Ra0NM",contentItem:"contentItem___zMdIq","tagsList-content":"tagsList-content___sDVph"},j=t(55209),C=t(86673),B=t(93697),S=t(37712),k=h.Z.TextArea,N=function(e,n){var t,i=(n.payload||{}).uploadInfo,o=void 0===i?{}:i;switch(n.type){case"addVideo":return{videoList:[].concat(f()(e.videoList),[{name:o.file.name,size:o.file.size,type:o.file.type,fileHash:o.fileHash,state:o.state,videoId:o.videoId,loaded:o.loaded||0,title:""}])};case"removeVideo":return{videoList:e.videoList.filter((function(e){return e.name!==n.payload.name}))};case"removeAll":default:return{videoList:[]};case"updateProgress":return{videoList:e.videoList.map((function(e){return e.name===n.payload.uploadInfo.file.name?d()(d()({},e),{loaded:n.payload.progressPercent,videoId:o.videoId,fileHash:o.fileHash}):e}))};case"updateTitle":return{videoList:null===(t=e.videoList)||void 0===t?void 0:t.map((function(e){return e.name===n.payload.item.name?d()(d()({},e),{title:n.payload.title}):e}))}}},E=(0,m.connect)((function(e){var n=e.user,t=e.loading;return{user:n,globalSetting:e.globalSetting,loading:t}}))((function(e){var n,t=e.user,i=(e.globalSetting,e.loading,e.dispatch,e.visible),r=e.editData,l=e.onCancel,c=void 0===l?function(){}:l,u=e.onOk,E=void 0===u?function(){}:u,T=e.queryParams,P=void 0===T?{}:T,L=((0,m.useParams)(),g.Z.useForm()),D=s()(L,1)[0],M=(0,p.useReducer)(N,{videoList:[]}),I=s()(M,2),O=I[0],Z=I[1],R=(0,p.useState)(!1),F=s()(R,2),G=(F[0],F[1]),z=(0,p.useRef)(),H=(0,p.useState)(),W=s()(H,2),U=W[0],V=W[1],K=(0,p.useState)(!1),Q=s()(K,2),q=Q[0],_=Q[1],X=(0,p.useState)(!1),J=s()(X,2),Y=J[0],$=J[1],ee=(0,B.Ny)()?3:1;(0,p.useEffect)((function(){var e,n,t;i&&r&&(_(r.is_link),V(r.link),!r.is_link&&Z({type:"addVideo",payload:{uploadInfo:{file:{name:r.filename||""},videoId:r.video_id,loaded:100}}}),he((null==r||null===(e=r.tags)||void 0===e?void 0:e.map((function(e){return null==e?void 0:e.name})))||[]),D.setFieldsValue({name:r.name,description:r.description,attachment_id:null==r||null===(n=r.video)||void 0===n?void 0:n.attachment_id,allow_skip:null==r||null===(t=r.video_item)||void 0===t?void 0:t.allow_skip}))}),[r,i]);var ne,te,ie,oe,re,ae,le,se=function(){document.getElementById("fileUpload").value=""},ce=function(e){var n,i='{"Vod":{}}';G(!0),z.current?z.current.addFile(e,null,null,null,i):(0,j.o)(null===(n=t.userInfo)||void 0===n?void 0:n.login,"",{create:!z,addFileSuccess:function(e){Z({type:"addVideo",payload:{uploadInfo:e}})},onUploadProgress:function(e,n,t){var i=Math.ceil(100*t);Z({type:"updateProgress",payload:{uploadInfo:e,progressPercent:i}}),se()},onUploadFailed:function(e){v.ZP.info("视频云服务出现异常,请重新上传。")},onUploadEnd:function(e){G(!1)},onUploadSucceed:function(e){G(!1)},onUploadError:function(e){G(!1)},gotUploader:function(n){n.addFile(e,null,null,null,i),z.current=n}})},de=function(){var e=a()(o()().mark((function e(){var n,t,i,r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D.validateFields();case 2:if((q||null!==(n=O.videoList)&&void 0!==n&&n.length)&&(!q||U)){e.next=5;break}return v.ZP.info("请先上传视频或者添加外链"),e.abrupt("return");case 5:return $(!0),i=q?{link:U}:{video_id:null===(t=O.videoList)||void 0===t?void 0:t[0].videoId},e.next=9,E(d()(d()(d()({},i),P),{name:D.getFieldValue("name"),attachment_id:D.getFieldValue("attachment_id"),description:D.getFieldValue("description"),tags:D.getFieldValue("tag"),allow_skip:D.getFieldValue("allow_skip")}));case 9:r=e.sent,$(!1),r.id&&ue();case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ue=function(){D.resetFields(),Z({type:"removeAll"}),V(null),he([]),_(null)},fe=(0,p.useState)([]),pe=s()(fe,2),me=pe[0],he=pe[1];return(0,S.jsx)(w.Z,{centered:!0,maskClosable:!1,destroyOnClose:!0,title:r?"编辑视频项目":"新建视频项目",width:740,className:y.modal,open:i,confirmLoading:Y,onOk:de,onCancel:function(){c(),ue()},children:(0,S.jsxs)(g.Z,{form:D,children:[(0,S.jsx)("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:function(e){var n;_(!1);var t=e.target.files[0];if(t){var i=t.name.toLowerCase();return i&&-1==i.indexOf(".avi")&&-1==i.indexOf(".flv")&&-1==i.indexOf(".f4v")&&-1==i.indexOf(".m4v")&&-1==i.indexOf(".mov")&&-1==i.indexOf(".mp4")&&-1==i.indexOf(".rmvb")&&-1==i.indexOf(".swf")&&-1==i.indexOf(".webm")&&-1==i.indexOf(".wmv")?(v.ZP.info("不支持的视频格式"),void se()):t.size>1024*ee*1024*1024?(v.ZP.info("视频大小超过".concat(ee,"G")),void se()):null!==(n=O.videoList)&&void 0!==n&&n.find((function(e){return e.name===t.name}))?(v.ZP.info("你不能上传同一个视频文件名称,请重新选择。"),void se()):void ce(t)}se()},accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),(0,S.jsx)(g.Z.Item,{label:"项目名称",name:"name",rules:[{required:!0,message:"请输入项目名称"}],children:(0,S.jsx)(h.Z,{maxLength:40,placeholder:"请输入不超过40字的项目名称"})}),(0,S.jsx)(g.Z.Item,{label:"项目内容",name:"content",className:y.contentItem,children:(0,S.jsxs)(S.Fragment,{children:[!q&&!(null===(ne=O.videoList)||void 0===ne||!ne.length)&&(0,S.jsxs)("div",{className:y.fileProgress,children:[100==(null===(te=O.videoList)||void 0===te||null===(te=te[0])||void 0===te?void 0:te.loaded)?(0,S.jsx)("div",{className:"".concat(y.videoName," font14"),children:null===(ie=O.videoList)||void 0===ie||null===(ie=ie[0])||void 0===ie?void 0:ie.name}):(0,S.jsx)(A.Z,{style:{width:"80%"},percent:null===(oe=O.videoList)||void 0===oe||null===(oe=oe[0])||void 0===oe?void 0:oe.loaded,status:100==(null===(re=O.videoList)||void 0===re||null===(re=re[0])||void 0===re?void 0:re.loaded)?"normal":"active"}),(0,S.jsx)("div",{className:y.fileCancel,onClick:function(){var e,n,t,i;return t=null===(e=O.videoList)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.name,i=100==(null===(n=O.videoList)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.loaded),void w.Z.confirm({title:"提示",centered:!0,okText:"确定",cancelText:"取消",content:(0,S.jsxs)("div",{className:"tc",children:["您确认要",i?"删除":"取消上传","该视频吗?"]}),onOk:function(){se(),Z({type:"removeVideo",payload:{name:t}})}})},children:100===(null===(ae=O.videoList)||void 0===ae||null===(ae=ae[0])||void 0===ae?void 0:ae.loaded)?"删除":"取消上传"})]}),!(null!==(le=O.videoList)&&void 0!==le&&le.length)&&(0,S.jsxs)("div",{className:y.uploadWrap,children:[(0,S.jsxs)("label",{htmlFor:"fileUpload",className:y.upload,children:[(0,S.jsx)("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"上传视频"]}),(0,S.jsxs)("label",{className:"".concat(y.upload," ").concat(y.uploadLink),onClick:function(){return _(!0)},children:[(0,S.jsx)("i",{className:"iconfont icon-lianjie1 mr5"}),"添加外链"]})]}),q&&(0,S.jsx)(h.Z,{className:"mt5",placeholder:"请输入视频链接",value:U,onChange:function(e){return V(e.target.value)}})]})}),(0,S.jsx)(g.Z.Item,{name:"attachment_id",label:"上传封面图:",children:(0,S.jsx)(C.Z,{getFileProgress:function(e){"uploading"!==e.file.status?"done"===e.file.status&&$(!1):$(!0)}})}),(0,S.jsx)(g.Z.Item,{label:"项目简介",name:"description",className:"ml8",children:(0,S.jsx)(k,{rows:5,maxLength:800,placeholder:"请输入本视频简介,最多不超过800字"})}),(0,S.jsx)(g.Z.Item,{label:"知识标签",name:"tag",className:"ml8",children:(0,S.jsx)(h.Z,{onKeyUp:function(e){if("Enter"==e.key){var n=D.getFieldValue("tag");if(D.setFieldsValue({tag:""}),!n)return void v.ZP.info("标签不能为空");if(me.filter((function(e){return e===n})).length>0)return void v.ZP.info("已有相同名称标签");me.push(n),he(f()(me))}}})}),(0,S.jsx)(g.Z.Item,{label:"播放设置",name:"allow_skip",valuePropName:"checked",className:"ml8",initialValue:!0,children:(0,S.jsx)(x.Z,{children:"允许快进播放"})}),(0,S.jsx)("div",{className:y["tagsList-content"],children:me.map((function(e,n){return(0,S.jsx)(b.Z,{closable:!0,onClose:function(n){!function(e,n){e.preventDefault(),he(f()(me.filter((function(e){return e!=n}))))}(n,e)},children:e},n+e)}))}),(0,S.jsxs)("div",{className:"c-grey-999",children:[(0,S.jsx)("div",{children:"注意:"}),(0,S.jsxs)("div",{children:["1、上传视频,即表示您已同意",(0,S.jsx)(m.Link,{to:"/users/".concat(null===(n=t.userInfo)||void 0===n?void 0:n.login,"/videos/protocol"),target:"_blank",className:y.colorBlue,children:"上传内容协议"}),",不得上传未经他人授权的作品;"]}),(0,S.jsxs)("div",{children:["2、不支持断点续传,文件大小请勿超过",ee,"G;"]}),(0,S.jsx)("div",{children:"3、支持文件格式:avi、flv、f4v、m4v、mov、mp4、rmvb、swf、webm、wmv;"}),(0,S.jsx)("div",{children:"4、如果视频来自于外部链接,本网站不提供播放页面,无法提供统计数据。"})]})]})})}))},55209:function(e,n,t){"use strict";t.d(n,{o:function(){return d}});var i,o=t(18030),r=t(93125),a=t.n(r),l="",s="";function c(e){!function(e){i=new(a().Vod)({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:0x6803cbd867207,enableUploadProgress:!1,addFileSuccess:function(n){console.log("addFileSuccess: "+n.file.name),e.addFileSuccess&&e.addFileSuccess(n),i.startUpload()},onUploadstarted:function(n){var t=n.file.name;if(n.videoId){var r="/api/users/".concat(l,"/video_auths.json");(0,o.ZP)(r,{method:"put",body:{video_id:n.videoId,title:t,file_name:t,virtual_classroom_id:s}}).then((function(t){if(-1!=t.status){var o=t.data,r=o.UploadAuth,a=o.UploadAddress;o.VideoId;i.setUploadAuthAndAddress(n,r,a)}else e.onUploadError&&e.onUploadError(n)})).catch((function(e){i.deleteFile(i._curIndex),i.nextUpload(),console.log(e)}))}else{var a="/api/users/".concat(l,"/video_auths.json"),c="";(0,o.ZP)(a,{method:"Post",body:{title:c+t,file_name:c+t,virtual_classroom_id:s}}).then((function(e){if(e){var t=e.data,o=t.UploadAuth,r=t.UploadAddress,a=t.VideoId;i.setUploadAuthAndAddress(n,o,r,a)}})).catch((function(e){i.deleteFile(i._curIndex),i.nextUpload(),console.log(e)})),console.log("文件开始上传...")}},onUploadSucceed:function(n){e.onUploadSucceed&&e.onUploadSucceed(n),console.log("文件上传成功!")},onUploadFailed:function(n,t,i){e.onUploadFailed&&e.onUploadFailed(n),console.log("文件上传失败!")},onUploadCanceled:function(e,n,t){console.log("文件上传已暂停!")},onUploadProgress:function(n,t,i){e.onUploadProgress&&e.onUploadProgress(n,t,i);Math.ceil(100*i);console.log("文件上传中...")},onUploadTokenExpired:function(e){console.log("文件上传超时!");var n="/api/users/".concat(l,"/video_auths.json");(0,o.ZP)(n,{method:"put",body:{video_id:e.videoId}}).then((function(e){var n=e.data.UploadAuth;i.resumeUploadWithAuth(n)})).catch((function(e){console.log(e)}))},onUploadEnd:function(n){e.onUploadEnd&&e.onUploadEnd(n),console.log("onUploadEnd: uploaded all the files")}}),e.gotUploader&&e.gotUploader(i)}(e)}function d(e,n,t){e&&(l=e),n&&(s=n),c(t)}},19421:function(e,n,t){"use strict";t.d(n,{rX:function(){return B},pW:function(){return S},gy:function(){return k},xY:function(){return C},O5:function(){return j},tJ:function(){return w},o1:function(){return A},Rd:function(){return y}});var i=t(7557),o=t.n(i),r=t(41498),a=t.n(r),l=t(5296),s=t(43418),c=t(28103),d=t(8591),u=t(93697),f=t(21082),p=t(680),m=t(25510),h=t.p+"static/newqrcode.a8740efb.png",g=t(32637),v=t(37712),w=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!A(e)||!x(n))},A=function(e){return!!(0,u.bg)()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},x=function(){var e,n=(0,l.getDvaApp)()._store.getState(),t=n.user;return!(null===(e=t.userInfo)||void 0===e||!e.profile_completed)||(s.Z.confirm({title:"提示",width:530,centered:!0,content:"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,f.xg)("/account/profile/edit"),b()}}),!1)},b=function(){s.Z.success({title:"提示",width:430,closable:!0,centered:!0,content:"已完善个人资料?请刷新页面",okText:"立即刷新",icon:null,onOk:function(){location.reload()}})},y=function(){s.Z.warning({title:"提示",icon:null,width:400,content:(0,v.jsxs)("div",{style:{textAlign:"center"},children:[(0,v.jsx)("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"},children:"老师您好,您的课堂试用期已结束,相关功能被限制。 如需继续使用,请尽快对接人工支持!"}),(0,v.jsx)("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:g}),(0,v.jsx)("div",{style:{color:"#666666",fontSize:14,marginTop:15},children:"添加客服人员微信,获得更多支持"})]})})},j=function(){var e;return!(null===(e=(0,l.getDvaApp)()._store.getState().user.userInfo)||void 0===e||!e.professional_certification)||(s.Z.confirm({title:"提示",centered:!0,content:(0,v.jsx)("div",{className:"tc",children:"您需要去完成您的职业认证,才能使用此功能"}),okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,f.xg)("/account/certification")}}),!1)},C=function(){return!!(0,u.V9)()||(s.Z.warning({centered:!0,width:530,title:"提示",content:(0,v.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,v.jsx)("p",{children:"扫码加头歌助教,申请操作权限"}),(0,v.jsx)("img",{src:h,width:200})]}),okText:"我知道了",maskClosable:!0}),!1)},B=function(e,n){return!!e||(s.Z.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:(0,v.jsxs)("div",{children:[(0,v.jsx)("p",{children:n||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。"}),(0,v.jsxs)("div",{style:{marginLeft:"110px"},children:[(0,v.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xa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N0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",width:200}),(0,v.jsxs)("div",{style:{marginLeft:"35px"},children:["群号:","714336072"]})]})]}),okText:"立即联系",cancelText:"取消",onOk:function(){(0,f.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},S=function(e){s.Z.info({title:"联系平台运营",icon:null,width:615,centered:!0,content:(0,v.jsxs)("div",{children:[(0,v.jsxs)("div",{children:[(0,v.jsx)("p",{style:{color:"#191919",fontWeight:400,fontSize:14},children:"“保存实验临时数据”功能为付费功能,请联系平台运营进行开通。"}),(0,v.jsx)(c.Z,{}),(0,v.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,v.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"1"})," 因平台的实验数据储存容量和成本消耗较大,实践项目默认保存实验环境中临时数据 ",(0,v.jsx)("a",{children:e}),"天。"]}),(0,v.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,v.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"2"}),"若您需要个性化的数据保存周期服务,我们可以提供相关技术支持,并根据您的需求收取定制费用。"]})]}),(0,v.jsx)("div",{style:{textAlign:"center",marginTop:30},children:(0,v.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:m,alt:"二维码",width:160})})]})})},k=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(0,l.getDvaApp)()._store.getState(),i=t.shixunsDetail.detail;if(2===(null==i?void 0:i.public)||1===(null==i?void 0:i.public)||3===(null==i?void 0:i.shixun_status)){var r="";return 2===(null==i?void 0:i.public)&&(r="已公开"),1===(null==i?void 0:i.public)&&(r="待审核"),3===(null==i?void 0:i.shixun_status)&&(r="已关闭"),s.Z.info({centered:!0,icon:(0,v.jsx)(p.Z,{style:{color:"#faad14"}}),width:460,title:"提示",content:(0,v.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,v.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"},children:[(0,v.jsxs)("span",{children:["该实践项目的状态为",r,",",n,"。"]}),(0,v.jsx)("p",{children:"如有需要,请联系平台管理员进行技术支持。"})]}),(0,v.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:m,alt:"二维码",width:160})]}),okText:"我知道了"}),!0}return 2===(null==i?void 0:i.shixun_status)&&(s.Z.confirm({centered:!0,icon:(0,v.jsx)(p.Z,{}),title:"提示",content:(0,v.jsxs)("div",{children:[(0,v.jsxs)("span",{children:["该实践项目已发布,",n,"。"]}),(0,v.jsx)("br",{}),(0,v.jsx)("span",{children:"如有需要,您可以撤销发布后,再进行操作。"})]}),okText:"撤销发布",cancelText:"取消",onOk:function(){var n;s.Z.confirm({width:440,centered:!0,icon:(0,v.jsx)(p.Z,{style:{color:"#faad14"}}),title:"提示",content:"撤销发布后,学员将无法进行练习。是否确认撤销发布?",okText:"确定撤销发布",cancelText:"取消",onOk:(n=a()(o()().mark((function n(){return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e({type:"shixunsDetail/cancelRelease",payload:{id:null==i?void 0:i.identifier}});case 2:401!==n.sent.status&&(d.ZP.success("撤销发布成功。实训回到未发布的状态。"),e({type:"shixunsDetail/getShixunsDetail",payload:{id:null==i?void 0:i.identifier}}),e({type:"practiceSetting/getCommonData",payload:{id:null==i?void 0:i.identifier}}));case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})}}),!0)}},32637:function(e,n,t){"use strict";e.exports=t.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeC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eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="}}]); \ No newline at end of file diff --git a/45824.5b4bc0e6.async.js b/45824.5b4bc0e6.async.js new file mode 100644 index 0000000000..d01326d4ec --- /dev/null +++ b/45824.5b4bc0e6.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[45824,4977,48486,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},n="5.0",t={},i=null,o=!1,r=!1,a=null,l=!1,s=null,c=null,d=0;d4?parseFloat(e):5};function y(){try{return window.self!==window.top}catch(e){return!0}}function j(){return(!t.hasOwnProperty("screenshotGenerator")||!t.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,n){c=e,Z(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."):(s=e,O(e,n))},e.getHTML5CodebaseVersion=function(){return h},e.getParameters=function(){return t},e.setFontsCSSURL=function(e){x=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,o="auto",r=t.id,a=!1,s=0;s=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 k=function(e){return e&&"false"!==e},N=function(n,t,i){b(h)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==h||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=t.width,l=t.height;if(t.disableAutoScale=void 0===t.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():t.disableAutoScale,void 0!==t.width)if(b(h)<=4.4)k(t.showToolBar)&&(t.height-=7),k(t.showAlgebraInput)&&(t.height-=37),t.width<605&&k(t.showToolBar)&&(t.width=605,a=605);else{var d=100;(k(t.showToolBar)||k(t.showMenuBar))&&(t.hasOwnProperty("customToolBar")&&(t.customToolbar=t.customToolBar),d=k(t.showMenuBar)?245:155),a=5?(t.appletOnLoad=function(e){var t=n.querySelector(".ggb_preview");t&&t.parentNode.removeChild(t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},A||w.appendChild(y)):r.appendChild(y),w.appendChild(r),A||n.appendChild(w),setTimeout((function(){e.resize()}),1)}function j(e,n){n&&"function"==typeof n.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,n.appletOnLoad):renderGGBElement(e),R("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",n)}function C(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){j(e.article,e.params)})),html5AppletsToProcess=null)},b(h)<5&&(e.className+=" geogebraweb")):j(e,n)}if(o){scriptLoadStarted=!0;for(var B=0;B0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):N(o,n,!1),window.GGBT_wsf_view.launchFullScreen(r)}else m=i,N(e,n,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",A),a.setAttribute("width",l),a.setAttribute("height",s);var d=(e-l)/2,u=(n-s)/2;a.style.left=d+"px",a.style.top=u+"px",o.appendChild(a)}return o.appendChild(c),o},M=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},I=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,n){if(h=e,n)Z(h,!0);else{var r,a,l=!o;if(l){var s=b(h);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=h.indexOf("//");for(var d in a=c>0?h:0===c?r+h:"https://www.geogebra.org/apps/5.2.814.0/",I)if(h.slice(-1*I[d].length)===I[d]||h.slice(-1*(I[d].length+1))===I[d]+"/")return void Z(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||k(t.showToolBar)||k(t.showMenuBar)||k(t.showAlgebraInput)||k(t.enableRightClick)||t.appName&&"classic"!=t.appName?a+="web3d/":a+="webSimple/",Z(a,!1)}},Z=function(e,n){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===n&&(n=-1===e.indexOf("http")),p=n,g="web.nocache.js",v=!1;var t=f.split("/");t.length>1&&(n||"webSimple"!==t[t.length-2]?I.indexOf(t[t.length-2])>=0&&(g=t[t.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!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."),O("5.0",n))}},R=function(e,n){window.console&&window.console.log&&(!n||void 0===n.showLogging||n.showLogging&&"false"!==n.showLogging)&&console.log(e)};function F(){var e=n;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&Z(c,p),l=!0}return void 0!==t.material_id?C(F):F(),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,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,n,t,i,o,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,d=0,u=0,f=0,p=0,m=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),d=s):(s=window.innerWidth,c=window.innerHeight,d=window.innerWidth),e){var h=e.getBoundingClientRect();h.left>0&&h.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-h.width-h.left,p=d<=480?10:30):(p=h.left,f=d<=480?10:30),u=p+f)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(u=40,m=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(u=0,m=40))}return e&&((void 0===t||!t)&&n>0&&n+u1&&(a=!0)),n&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=t(e,n,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var n=Math.min(window.innerWidth,document.documentElement.clientWidth),t=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(n-i.width)/2,r=(t-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(t,r){var a=t.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(t)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(r,t);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=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;tO?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=[],o=[];function a(e){var n=o[e](),t=i[e];if(n in t)return n;var a=[];for(var l in t)a[t[l]]=l;throw r&&r(e,a,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]=a(n));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}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],o=O;o0){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",t=[],i=0;i0&&(n=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+b+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),n}var k=function(e){var n=e.value,t=e.onChange,i=e.action,r=e.data,l=e.className,c=e.maxSize,u=void 0===c?150:c,S=e.title,k=void 0===S?"上传附件":S,N=e.showRemoveModal,E=void 0!==N&&N,T=e.accept,P=void 0===T?"":T,L=e.additionalText,D=e.isDragger,M=e.number,I=void 0===M?1e3:M,O=e.aloneClear,Z=void 0!==O&&O,R=e.realTimeRemove,F=void 0===R||R,G=e.uploadText,z=e.setFileProgress,H=e.showFileProgress,W=(0,p.useState)(!1),U=f()(W,2),V=U[0],K=U[1],Q=(0,p.useState)(n||[]),q=f()(Q,2),_=q[0],X=q[1],J=(0,p.useState)(1),Y=f()(J,2),$=Y[0],ee=Y[1];(0,p.useEffect)((function(){n&&(1===$&&X(d()(n)),ee(2),I===(null==n?void 0:n.length)&&K(!0))}),[n]);var ne=function(){setTimeout((function(){_.pop(),X(d()(_))}),500)};H&&z(_.some((function(e){return"uploading"===e.status})));var te,ie={multiple:!0,disabled:V,accept:P,withCredentials:!0,fileList:_,beforeUpload:function(e,n){var t=e.size/1024/1024;return _.concat(n).length>I?(_.pop(),X(d()(_)),h.ZP.error("最多只能上传".concat(I,"个文件")),Z?Promise.reject():(ne(),!1)):t=I?K(!0):K(!1),X(d()(_)),_=_.map((function(e){var n,t;null!=e&&null!==(n=e.response)&&void 0!==n&&n.id&&(e.url=null==e||null===(t=e.response)||void 0===t?void 0:t.url);return-1===e.name.indexOf(b)&&(e.name="".concat(e.name).concat(b).concat(y(e.size))),s()({},e)})),console.log("info:",e,_),t(_)):h.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(te=a()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(F){e.next=2;break}return e.abrupt("return",!0);case 2:if(t=function(){var e=a()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.response?n.response.id:n.id)){e.next=8;break}return e.next=4,(0,A.JZ)(n.response?n.response.id:n.uid);case 4:return t=e.sent,e.abrupt("return",Promise.resolve(t));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!E){e.next=7;break}return e.abrupt("return",new Promise((function(e,n){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,x.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(o()().mark((function n(){return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t();case 2:n.sent,h.ZP.success("删除成功"),e(!0);case 5:case"end":return n.stop()}}),n)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,t();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return te.apply(this,arguments)})};return(0,x.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[D&&(0,x.jsxs)(B,s()(s()({},ie),{},{children:[(0,x.jsx)("p",{className:"ant-upload-drag-icon",children:(0,x.jsx)(j.Z,{})}),(0,x.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,x.jsx)("br",{}),"(单个文件最大限制为",u,"MB)"," "]}),L]})),!D&&(0,x.jsxs)(m.Z,s()(s()({},ie),{},{children:[(0,x.jsxs)(v.ZP,{disabled:V,className:"upload_button",children:[(0,x.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),k]}),(0,x.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:G||"(单个文件最大".concat(u,"MB)")})]}))]})}},53802:function(e,n,t){"use strict";t.d(n,{Z:function(){return c}});var i=t(79800),o=t.n(i),r=t(59301),a=t(50021),l=t(39073),s=t(37712),c=function(){var e=(0,r.useState)(""),n=o()(e,2),t=n[0],i=n[1],c=(0,r.useState)(0),d=o()(c,2),u=(d[0],d[1]),f=(0,r.useState)(),p=o()(f,2),m=(p[0],p[1]),h=(0,r.useState)(),g=o()(h,2),v=(g[0],g[1]),w=(0,r.useState)(!1),A=o()(w,2),x=(A[0],A[1],(0,r.useRef)(""));function b(e){27==e.keyCode&&x.current&&y()}function y(){document.body.style.overflow="auto",m(void 0),v(void 0),u(0),i("")}(0,r.useEffect)((function(){return a.Z.subscribe("preview-image",(function(e){i(e),console.log(C.current),document.body.style.overflow="hidden"}))}),[]),(0,r.useEffect)((function(){return document.addEventListener("keydown",b),function(){document.removeEventListener("keydown",b)}}),[]),(0,r.useEffect)((function(){x.current=t}),[t]);(0,r.useRef)();var j=(0,r.useRef)(),C=(0,r.useRef)();return(0,s.jsx)(r.Fragment,{children:t?(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"preview-wrp-group",ref:j,children:(0,s.jsx)(l.Z,{className:"image-preview",src:t,style:{display:"none"},preview:{visible:!0,src:t,movable:!1,onVisibleChange:function(e){i("")}},alt:"预览大图"})})}):null})}},73145:function(e,n,t){"use strict";t.d(n,{h:function(){return v}});var i=t(82242),o=t.n(i),r=t(79800),a=t.n(r),l=t(59301),s=t(57809),c=t(78241),d=t(3113),u=t(89780),f=t.n(u),p=(t(80443),t(90630),t(37712)),m=s.default.Option,h={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var n=e.value,t=e.onChange,i=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),d=(0,l.useState)(),u=a()(d,2),m=u[0],h=u[1];return(0,l.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,l.useEffect)((function(){m&&m.setOption("mode",i)}),[m,i]),(0,l.useEffect)((function(){m&&(n===m.getValue()&&""!==n||setTimeout((function(){m.setValue(n||"")}),300))}),[m,n]),(0,l.useEffect)((function(){if(c.current&&!m){var e=f().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));h(e)}}),[c.current,m]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}n.Z=function(e){var n=e.callback,t=e.onCancel,i=(0,l.useState)("python"),r=a()(i,2),u=r[0],f=r[1];return(0,p.jsxs)(c.Z,o()(o()({},h),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){n(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){f(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(m,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(v,{mode:u})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(d.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(d.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))}},16318:function(e,n,t){"use strict";t.d(n,{Z:function(){return be}});var i=t(91232),o=t.n(i),r=t(79800),a=t.n(r),l=t(85573),s=t.n(l),c=t(59301),d=t(89780),u=t.n(d),f=t(76374),p=(t(80443),t(6313),t(25717),t(99498),t(25419),t(67549),t(38279)),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,c.useMemo)((function(){return""}),[t]));return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=t(82242),v=t.n(g),w=[{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,o=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,m.jsxs)("a",{title:t,className:a,onClick:function(){n(o)},children:[(0,m.jsx)("i",{className:"".concat(i)}),l]})}var x=function(e){var n=e.watch,t=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{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:[!l&&c.map((function(e,n){return(0,m.jsx)("li",{children:e.actionName?(0,m.jsx)(A,v()(v()({},e),{},{onActionCallback:o})):(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:o,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:o,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:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,m.jsx)("li",{children:(0,m.jsx)(A,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,m.jsx)("li",{children:s}),(0,m.jsx)("li",{className:"btn-full-screen",children:(0,m.jsx)(A,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},b=t(24808),y=t(78241),j=t(92832),C=t(3113),B={labelCol:{span:4},wrapperCol:{span:20}},S=function(e){var n=e.callback,t=e.onCancel;return(0,m.jsxs)(y.Z,v()(v()({},B),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},style:{width:500},children:[(0,m.jsx)(y.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,m.jsx)(j.Z,{})}),(0,m.jsx)(y.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,m.jsx)(j.Z,{})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(C.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))},k=t(73145),N=t(28486),E=t(95237),T=t(36709),P=function(e){var n=e.callback,t=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,m.jsx)(E.Z,{style:{height:"100vh"},children:(0,m.jsx)(T.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){n({src:e.url})},onClose:t})})},L=t(7557),D=t.n(L),M=t(41498),I=t.n(M),O=t(37205),Z=t.n(O),R=t(12378);function F(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(F,go.CommandHandler),F.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},F.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")},F.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")},F.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")},F.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")},F.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")}},F.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")}},F.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;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===t.key){var o;if(n.isTreeExpanded&&!n.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(n).first())&&e.select(o);else for(;null!==n;){var r,a,l;if(null===(r=n.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(n))i.y?1:t.xi.x?1:0})),n},F.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},F.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(F.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(F.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var G=F,z=(t(41034),t(85160)),H=t(43418),W=t(43604),U=t(18030),V="myPaletteDiv___Xjz2I",K="maxH60___Pd4Re";window.go=R;var Q=function(e){var n=e.onCancel,t=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),d=(0,c.useState)(0),u=a()(d,2),f=u[0],p=u[1],h=function(){var e=I()(D()().mark((function e(){var n,o;return D()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.current.makeImage(),e.next=3,(0,U.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:n.src}});case 3:o=e.sent,t({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,m.jsx)("div",{ref:s,className:l.current?"".concat(K," body-overflow-initial"):"body-overflow-initial",children:(0,m.jsx)(H.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,m.jsxs)(E.Z,{children:[(0,m.jsx)(W.Z,{flex:1,children:"插入流程图"}),(0,m.jsx)(W.Z,{onClick:function(){l.current=!l.current,p(f+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:V,ref:r})]}),(0,m.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,m.jsx)(z.FI,{initDiagram:function(){var e=R.GraphObject.make,n="#ff3333",t="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",d="#ffffff",u="#000000",f="#fffcd5",p="#d5ebff",m="#f2dfe0",h="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function A(n,t){var i=function(e,t){e.handled=!0,e.diagram.model.commit((function(i){var o=t.part.adornedPart,r=(new R.Point).setRectSpot(o.actualBounds,n);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var l={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(R.Shape,{figure:t,alignment:n,alignmentFocus:n.opposite(),width:n.equals(R.Spot.Top)||n.equals(R.Spot.Bottom)?25:18,height:n.equals(R.Spot.Top)||n.equals(R.Spot.Bottom)?18:25,fill:"orange",stroke:d,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 x(n){return e(R.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 b(e,n){return function(t,i){t.handled=!0,t.diagram.model.commit((function(t){t.set(i.part.adornedPart.data,e,n)}))}}function y(n,t){return t||(t="color"),e(R.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:b(t,n),contextClick:b(t,n)})}function j(){return[e("ContextMenuButton",e(R.Panel,"Horizontal",y(d,"fill"),y(f,"fill"),y(p,"fill"),y(m,"fill"))),e("ContextMenuButton",e(R.Panel,"Horizontal",y(g,"fill"),y(v,"fill"),y(h,"fill"),y(w,"fill")))]}function C(){return[e("ContextMenuButton",e(R.Panel,"Horizontal",y(u),y(a),y(t),y(n))),e("ContextMenuButton",e(R.Panel,"Horizontal",y(d),y(l),y(s),y(c)))]}function B(n,t){return t||(t="thickness"),e(R.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:b(t,n),contextClick:b(t,n)})}function S(n,t){return t||(t="dash"),e(R.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:b(t,n),contextClick:b(t,n)})}function k(){return[e("ContextMenuButton",e(R.Panel,"Horizontal",B(1),B(2),B(3),B(4))),e("ContextMenuButton",e(R.Panel,"Horizontal",S(null),S([2,4]),S([4,4])))]}function N(n,t){return t||(t="figure"),e(R.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:b(t,n),contextClick:b(t,n)})}function E(n){return e(R.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(n+4).toString()+" H3"})}function T(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(R.Shape,{geometryString:t,margin:2,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:b("dir",n),contextClick:b("dir",n)})}function P(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",R.Spot.stringify(R.Spot.AllSides)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(R.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 L(n,t){var i=0,o=R.Spot.RightSide;n.equals(R.Spot.Top)?(i=270,o=R.Spot.TopSide):n.equals(R.Spot.Left)?(i=180,o=R.Spot.LeftSide):n.equals(R.Spot.Bottom)&&(i=90,o=R.Spot.BottomSide),t||(i-=180);var r=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",R.Spot.stringify(o)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(R.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:r,contextClick:r})}return i.current=new R.Diagram(o.current,{padding:20,grid:e(R.Panel,"Grid",e(R.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(R.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(G),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var 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(R.Node,"Auto",{locationSpot:R.Spot.Center,locationObjectName:"SHAPE",desiredSize:new R.Size(120,60),minSize:new R.Size(40,40),resizable:!0,resizeCellSize:new R.Size(10,10),rotatable:!0},new R.Binding("location","loc",R.Point.parse).makeTwoWay(R.Point.stringify),new R.Binding("desiredSize","size",R.Size.parse).makeTwoWay(R.Size.stringify),e(R.Shape,{name:"SHAPE",fill:d,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:R.Spot.AllSides,toSpot:R.Spot.AllSides},new R.Binding("figure"),new R.Binding("fill"),new R.Binding("stroke","borderColor"),new R.Binding("strokeWidth","thickness"),new R.Binding("strokeDashArray","dash")),e(R.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(R.TextBlock,{margin:1,textAlign:"center",overflow:R.TextBlock.OverflowEllipsis,editable:!0},new R.Binding("text").makeTwoWay(),new R.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(R.Panel,"Vertical",{maxSize:new R.Size(200,NaN)},e(R.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new R.Binding("text")),e(R.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new R.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(R.Adornment,"Spot",e(R.Placeholder,{padding:10}),A(R.Spot.Top,"TriangleUp"),A(R.Spot.Left,"TriangleLeft"),A(R.Spot.Right,"TriangleRight"),A(R.Spot.Bottom,"TriangleDown"),x({alignment:new R.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(R.Panel,"Horizontal",N("Rectangle"),N("RoundedRectangle"),N("Ellipse"),N("Diamond"))),e("ContextMenuButton",e(R.Panel,"Horizontal",N("Parallelogram2"),N("ManualOperation"),N("Procedure"),N("Cylinder1"))),e("ContextMenuButton",e(R.Panel,"Horizontal",N("Terminator"),N("CreateRequest"),N("Document"),N("TriangleDown"))),j(),C(),k()),i.current.groupTemplate=e(R.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:R.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 R.Binding("location","loc",R.Point.parse).makeTwoWay(R.Point.stringify),e(R.Panel,"Auto",{name:"BODY"},e(R.Shape,{parameter1:10,fill:d,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:R.Spot.AllSides,toSpot:R.Spot.AllSides},new R.Binding("fill"),new R.Binding("stroke","color"),new R.Binding("strokeWidth","thickness"),new R.Binding("strokeDashArray","dash")),e(R.Placeholder,{background:"transparent",margin:20})),e(R.TextBlock,{alignment:R.Spot.Top,alignmentFocus:R.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new R.Binding("text"),new R.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(R.Adornment,"Spot",e(R.Panel,"Auto",e(R.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(R.Placeholder,{margin:1.5})),x({alignment:R.Spot.TopRight,alignmentFocus:R.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",j(),C(),k()),i.current.linkTemplate=e(R.Link,{layerName:"Foreground",routing:R.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new R.Binding("fromSpot","fromSpot",R.Spot.parse),new R.Binding("toSpot","toSpot",R.Spot.parse),new R.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new R.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new R.Binding("points").makeTwoWay(),e(R.Shape,{strokeWidth:2},new R.Binding("stroke","color"),new R.Binding("strokeWidth","thickness"),new R.Binding("strokeDashArray","dash")),e(R.Shape,{segmentIndex:0,segmentOffset:new R.Point(15,0),segmentOrientation:R.Link.OrientAlong,alignmentFocus:R.Spot.Right,figure:"circle",width:10,strokeWidth:0},new R.Binding("fill","color"),new R.Binding("visible","dir",(function(e){return 1===e}))),e(R.Shape,{segmentIndex:-1,segmentOffset:new R.Point(-10,6),segmentOrientation:R.Link.OrientPlus90,alignmentFocus:R.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new R.Binding("fill","color"),new R.Binding("visible","dir",(function(e){return e>=1})),new R.Binding("width","thickness",(function(e){return 7+3*e})),new R.Binding("height","thickness",(function(e){return 7+3*e})),new R.Binding("segmentOffset","thickness",(function(e){return new R.Point(-15,4+1.5*e)}))),e(R.Shape,{segmentIndex:0,segmentOffset:new R.Point(15,-6),segmentOrientation:R.Link.OrientMinus90,alignmentFocus:R.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new R.Binding("fill","color"),new R.Binding("visible","dir",(function(e){return 2===e})),new R.Binding("width","thickness",(function(e){return 7+3*e})),new R.Binding("height","thickness",(function(e){return 7+3*e})),new R.Binding("segmentOffset","thickness",(function(e){return new R.Point(-15,4+1.5*e)}))),e(R.TextBlock,{alignmentFocus:new R.Spot(0,1,-4,0),editable:!0},new R.Binding("text").makeTwoWay(),new R.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(R.Adornment,e(R.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:E(2)},new R.Binding("pathPattern","thickness",E)),x({alignmentFocus:new R.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",C(),k(),e("ContextMenuButton",e(R.Panel,"Horizontal",T(0),T(1),T(2))),e("ContextMenuButton",e(R.Panel,"Horizontal",e(R.Panel,"Spot",P(!1),L(R.Spot.Top,!1),L(R.Spot.Left,!1),L(R.Spot.Right,!1),L(R.Spot.Bottom,!1)),e(R.Panel,"Spot",{margin:new R.Margin(0,0,0,2)},P(!0),L(R.Spot.Top,!0),L(R.Spot.Left,!0),L(R.Spot.Right,!0),L(R.Spot.Bottom,!0))))),new R.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(R.Link,{locationSpot:R.Spot.Center,selectionAdornmentTemplate:e(R.Adornment,"Link",{locationSpot:R.Spot.Center},e(R.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(R.Shape,{toArrow:"Standard",stroke:null}))},{routing:R.Link.AvoidsNodes,curve:R.Link.JumpOver,corner:5,toShortLength:4},new R.Binding("points"),e(R.Shape,{isPanelMain:!0,strokeWidth:2}),e(R.Shape,{toArrow:"Standard",stroke:null})),model:new R.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(Z()(R.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(R.Node,"Auto",{locationSpot:R.Spot.Center},new R.Binding("location","location",R.Point.parse).makeTwoWay(R.Point.stringify),e(R.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 R.Binding("stroke").makeTwoWay(),new R.Binding("fill").makeTwoWay(),new R.Binding("figure")),e(R.TextBlock,{margin:new R.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new R.Size(16,16),maxSize:new R.Size(10,NaN),textAlign:"center",editable:!0},new R.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(R.Panel,"Grid",e(R.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(R.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:o})]})]}),(0,m.jsx)("div",{className:"tr",children:(0,m.jsx)(C.ZP,{size:"large",onClick:h,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},q=t(5112),_=t(94001),X=q.ZP.Group,J={margin:"0 8px"},Y=function(e){var n=e.callback,t=e.onCancel;return(0,m.jsxs)(y.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:J,children:"单元格数:"}),(0,m.jsx)("span",{style:J,children:"行数"}),(0,m.jsx)(y.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,m.jsx)(_.Z,{})}),(0,m.jsx)("span",{style:J,children:"列数"}),(0,m.jsx)(y.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,m.jsx)(_.Z,{})})]}),(0,m.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,m.jsx)("span",{style:J,children:"对齐方式:"}),(0,m.jsx)(y.Z.Item,{name:"align",children:(0,m.jsxs)(X,{children:[(0,m.jsx)(q.ZP,{value:"default",children:(0,m.jsx)("i",{className:"fa fa-align-justify"})}),(0,m.jsx)(q.ZP,{value:"left",children:(0,m.jsx)("i",{className:"fa fa-align-left"})}),(0,m.jsx)(q.ZP,{value:"center",children:(0,m.jsx)("i",{className:"fa fa-align-center"})}),(0,m.jsx)(q.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)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(C.ZP,{type:"ghost",onClick:t,children:"取消"})]})]})},$=t(78673),ee=t(57932),ne=t.n(ee),te=(0,c.forwardRef)((function(e,n){var t=e.use3d,i=e.width,o=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),d=(0,c.useState)(!1),u=a()(d,2),f=u[0],p=u[1],h=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(ne())(h.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){h.current.appName=f?"3D":"graphing",s.current.inject("applet_container")}),[f]),(0,c.useEffect)((function(){p(t)}),[t]),(0,c.useImperativeHandle)(n,(function(){return{getImgData:g}})),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,m.jsxs)(E.Z,{align:"middle",children:[(0,m.jsx)(W.Z,{flex:1,children:(0,m.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,m.jsx)(W.Z,{children:(0,m.jsx)(C.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=t(36761),oe=t(92723),re=t(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",de="code-block",ue="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},me=t(77818);var he="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ae=s()(s()({},we+"-B","bold"),we+"-I","italic"),xe=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),de,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),ue,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),be=function(e){var n=e.defaultValue,t=void 0===n?"":n,i=e.onChange,r=e.width,l=void 0===r?"100%":r,d=e.height,g=void 0===d?400:d,v=e.miniToolbar,w=void 0!==v&&v,A=e.isFocus,y=void 0!==A&&A,j=e.watch,C=e.insertTemp,B=e.mode,E=void 0===B?"markdown":B,T=e.id,L=void 0===T?"markdown-editor-id":T,D=e.showResizeBar,M=void 0!==D&&D,I=e.noStorage,O=void 0!==I&&I,Z=e.showNullButton,R=void 0!==Z&&Z,F=e.showNullProgramButton,G=void 0!==F&&F,z=e.hidetoolBar,W=void 0!==z&&z,U=e.fullScreen,V=void 0!==U&&U,K=e.onBlur,q=e.onCMBeforeChange,_=e.onFullScreen,X=e.className,J=void 0===X?"":X,$=e.disablePaste,ee=void 0!==$&&$,ne=e.disabled,fe=void 0!==ne&&ne,we=e.disabledFill,be=void 0!==we&&we,ye=e.placeholder,je=void 0===ye?"":ye,Ce=e.values,Be=void 0===Ce?"":Ce,Se=e.extraUse,ke=(0,c.useState)(null),Ne=a()(ke,2),Ee=Ne[0],Te=Ne[1],Pe=(0,c.useState)(t),Le=a()(Pe,2),De=Le[0],Me=Le[1],Ie=(0,c.useState)(j),Oe=a()(Ie,2),Ze=Oe[0],Re=Oe[1],Fe=(0,c.useState)(V),Ge=a()(Fe,2),ze=Ge[0],He=Ge[1],We=(0,c.useState)(""),Ue=a()(We,2),Ve=Ue[0],Ke=Ue[1],Qe=(0,c.useState)(0),qe=a()(Qe,2),_e=qe[0],Xe=qe[1],Je=(0,c.useState)(g),Ye=a()(Je,2),$e=Ye[0],en=Ye[1],nn=(0,c.useState)(!1),tn=a()(nn,2),on=(tn[0],tn[1]),rn=(0,c.useState)(0),an=a()(rn,2),ln=an[0],sn=an[1],cn=(0,c.useState)(0),dn=a()(cn,2),un=dn[0],fn=dn[1],pn=(0,c.useRef)(),mn=(0,c.useRef)(),hn=(0,c.useRef)(),gn=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Me(Be),null==Ee||Ee.setValue(Be),window.scrollTo(0,e)}),[Be]),(0,c.useEffect)((function(){null==_||_(ze)}),[ze]),(0,c.useEffect)((function(){if(pn.current){var e=function(e,t){if(!ee){var i=t.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(t.preventDefault(),"stex"==E)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,N.I)(s,(function(e){var t,i,o;e.id?(null==s||null===(t=s.type)||void 0===t?void 0:t.indexOf("image"))>-1?n.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?n.replaceSelection('')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?n.replaceSelection('').concat(s.name,"")):ge.includes(c)?n.replaceSelection('').concat(s.name,"")):n.replaceSelection("[".concat(s.name,"](").concat(oe.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){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}t.preventDefault()},n=u().fromTextArea(pn.current,{mode:E,lineNumbers:!w,lineWrapping:!0,value:t,autoCloseTags:!0,autoCloseBrackets:!0});return n.on("keyup",(function(e,t){8===t.keyCode&&(""==e.getValue()?n.setOption("placeholder",je):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(),o=t.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===he.indexOf(r))return null;if(console.log("change1:",n,e,o,i,s,a,l,r),s>=0&&i.ch-s<5){var d=s+c;return t.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:d}),{line:i.line,ch:d}}return null}(e);t&&n.preventDefault()}})),y&&n.focus(),n.on("paste",e),fe&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Te(n),function(){n.off("paste",e)}}}),[]);var vn=(0,c.useCallback)((function(){mn.current}),[$e,mn,ze]);(0,c.useEffect)((function(){if(Ee){var e=function(){var e=new f.Z((function(e){var n,t=o()(e);try{for(t.s();!(n=t.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(vn(),Ee.setSize("100%","100%"),Ee.refresh())}}catch(e){t.e(e)}finally{t.f()}}));return e.observe(pn.current.parentElement),e}();return function(){var n,t;null!==(n=pn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(t=pn.current)||void 0===t?void 0:t.parentElement)}}}),[Ee,vn]),(0,c.useEffect)((function(){if(Ee){for(var e=[],n=function(){var n=a()(i[t],2),o=n[0],r=n[1],l=s()({},o,(function(){wn(r)}));e.push(l),Ee.addKeyMap(l)},t=0,i=Object.entries(Ae);t0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(L);e>=_e+1e4&&(!n||n!==De)&&(window.sessionStorage.setItem(L,De),on(!0))}}),1e4),(0,c.useEffect)((function(){Re(j)}),[Ee,j]),(0,c.useEffect)((function(){Ee&&y&&Ee.focus()}),[Ee,y]),(0,c.useEffect)((function(){if(Ze&&Ee){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=Ee.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[Ee,Ze]),(0,c.useEffect)((function(){if(Ee&&q){var e=function(e,n){q(e,n)};return Ee.on("beforeChange",e),function(){Ee.off("beforeChange",e)}}}),[Ee,q]),(0,c.useEffect)((function(){if(Ee&&K){var e=function(){K(Ee.getValue())};return Ee.on("blur",e),function(){Ee.off("blur",e)}}}),[Ee,K]),(0,c.useEffect)((function(){if(Ee){var e=function(e,n){var t=e.getValue();Me(t),Xe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(G?i(t,jn(t)):i(t))};return Ee.on("change",e),function(){Ee.off("change",e)}}}),[Ee,i]),(0,c.useEffect)((function(){if(Ee)if(null==t)Ee.setValue(""),Me("");else{var e=window.scrollY||window.pageYOffset;t!==Ee.getValue()&&(Ee.setValue(t),Me(t),Ee.setCursor(fe?1:Ee.lineCount(),0),window.scrollTo(0,e))}}),[Ee,t]);var wn=(0,c.useCallback)((function(e){var n=Ee.getCursor(),t=Ee.getSelection(),i=t.split("\n");switch(e){case"bold":return Ee.replaceSelection("**"+t+"**"),""===t&&Ee.setCursor(n.line,n.ch+2),Ee.focus();case"italic":return Ee.replaceSelection("*"+t+"*"),""===t&&Ee.setCursor(n.line,n.ch+1),Ee.focus();case"code":return Ee.replaceSelection("`"+t+"`"),""===t&&Ee.setCursor(n.line,n.ch+1),Ee.focus();case"inline-latex":return Ke("inline-latex"),Ee.focus();case"latex":return Ee.replaceSelection("```latex\n"+t+"\n```"),Ee.setCursor(n.line+1,t.length+1),Ee.focus();case"line-break":return Ee.replaceSelection("
\n"),Ee.focus();case"list-ul":return""===t?Ee.replaceSelection("- "+t):Ee.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ee.focus();case"list-ol":return""===t?Ee.replaceSelection("1. "+t):Ee.replaceSelection(i.map((function(e,n){return""===e?"":"".concat(n+1,". ").concat(e)})).join("\n")),Ee.focus();case"add-null-ch":return""===t&&Ee.setCursor(n.line,n.ch),Ee.replaceSelection("▁"),Ee.focus();case"add-signal":return""===t&&Ee.setCursor(n.line,n.ch),Ee.replaceSelection("@▁@"),Ee.focus();case"add-multiple":return""===t&&Ee.setCursor(n.line,n.ch),Ee.replaceSelection(he),Ee.focus();case"inster-template-1":return""===t&&Ee.setCursor(n.line,n.ch),Ee.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ee.focus();case"eraser":return Ee.setValue(""),Ee.focus();case"trigger-watch":return Re(!Ze),Ee.focus();case"trigger-full-screen":return He(!ze),Ee.focus();case ae:return void Ke(ae);case de:return void Ke(de);case le:return void Ke(le);case ce:return void Ke(ce);case"maths-latex":return void Ke("maths-latex");case se:return void Ke(se);case ue:return void Ke(ue);default:throw new Error}}),[Ee,Ze,ze]),An=(0,c.useCallback)((function(e,n){var t,i,o,r,a;switch(Ke(""),Ve){case ae:var l=e.title,s=e.link;return Ee.replaceSelection("[".concat(l,"](").concat(s,")")),Ee.focus();case de:var c=e.language,d=e.content;return Ee.replaceSelection(["```"+c,d,"```"].join("\n")),Ee.focus();case"maths-latex":for(var u=atob(e),f=new Uint8Array(u.length),p=0;p-1||null==v||!v.type?g?Ee.replaceSelection("![ ".concat(g," ]( ").concat(h,' "').concat(g,'" )')):Ee.replaceSelection("![,](".concat(h,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Ee.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Ee.replaceSelection('').concat(v.name,"")):ge.includes(w)?Ee.replaceSelection('').concat(v.name,"")):Ee.replaceSelection("[".concat(v.name,"](").concat(oe.Z.API_SERVER).concat(h,")")),Ee.focus();case ue:for(var A=e.row,x=e.col,b=e.align,y="\n",j=0;j300&&(n=300),en(g+n+"px")}},i=hn.current,o=!1,r=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)}}}),[Ee,hn]),(0,c.useEffect)((function(){en(g)}),[g]);var yn={width:ve(l),height:ve($e)},jn=((0,c.useMemo)((function(){if(_e){var e=new Date(_e),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}),[_e]),function(e){var n=[];if(G){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,t,i){n.push({multiLine:!("@▁@"===e)})}))}return n});(0,c.useEffect)((function(){xe[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;sn(n),fn(t)}),0)}),[Ve]);var Cn=function(e,n,t,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&t>e||e>r-20&&tn||n>o-20&&i0&&(0,l.jsx)("div",{className:a,children:t.map((function(e,n){return(0,l.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,l.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKo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j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},n)}))}),f]}),i&&(0,l.jsx)("img",{style:{marginTop:33,marginRight:38},src:i,width:c})]})})},c=t(79800),d=t.n(c),u="row___aXJjm",f="title___HUKL0",p="tagsWrap___XB2W3",m="action___VdHb1",h="bar___t1kKC",g="tag___V7Eft",v="name___Hk1Ip",w="num___xQpcH",A="active___XryTX",x="tagsBorderWrap___OMxjs",b=t(92310),y=t.n(b),j=t(89392),C=function(e){var n=e.dataSource,t=void 0===n?[]:n,o=e.value,r=e.onChange,a=e.onTitleChange,s=e.className,c=e.title,b=e.titleWidth,C=void 0===b?41:b,B=e.style,S=void 0===B?{}:B,k=e.fontColor,N=void 0===k?"#6A7283":k,E=e.showCount,T=(0,i.useState)(0),P=d()(T,2),L=P[0],D=P[1],M=(0,i.useState)(!1),I=d()(M,2),O=I[0],Z=I[1],R=(0,i.useRef)(null),F=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;0!==t.length&&((null==R||null===(e=R.current)||void 0===e?void 0:e.clientHeight)>97?D(1):D(0));0===t.length&&D(0),Z(!1)}),[t]),(0,l.jsxs)("div",{className:y()(u,s),style:S,children:[(0,l.jsx)("div",{onClick:(0,j.throttle)((function(){return null==a?void 0:a()}),2e3),style:{width:C,marginTop:O?12:4},className:"".concat(f," ").concat(a?"current":""),children:c}),(0,l.jsxs)("div",{className:O?"".concat(p," ").concat(x):p,children:[(0,l.jsx)("div",{className:h,ref:F,style:L>0?{height:1===L?97:"auto",overflow:1===L?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,l.jsx)("div",{className:g,ref:R,children:null==t?void 0:t.map((function(e){return(0,l.jsxs)("span",{onClick:function(){return r(e.id)},style:{color:N},className:o===e.id?A:"",children:[(0,l.jsx)("span",{title:e.name,className:v,children:e.name}),!!E&&(0,l.jsx)("span",{className:w,children:e.count})]},e.id)}))})}),!!L&&(0,l.jsx)(i.Fragment,{children:1===L?(0,l.jsxs)("div",{onClick:function(){var e;D(2),(null==R||null===(e=R.current)||void 0===e?void 0:e.clientHeight)>245?Z(!0):Z(!1)},className:m,children:["展开",(0,l.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,l.jsxs)("div",{onClick:function(){F.current.scrollTop=0,D(1),Z(!1)},className:m,children:["收起",(0,l.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},B="tabs___GTqPV",S="active___F26E8",k=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,o=e.onChange,r=e.className,a=e.style,s=void 0===a?{}:a;return(0,l.jsx)("div",{style:s,className:y()(B,r),children:t.map((function(e){return(0,l.jsx)("span",{onClick:function(){return o(e.id)},className:i===e.id?S:"",children:e.name},e.id)}))})},N="input___PW2zI",E="dropdown___vSy8B",T="menu___NiyBu",P="text___Grueu",L="b1___ZKryM",D="b2___aKyGa",M=t(92832),I=function(e){var n,t=e.dataSource,o=void 0===t?[]:t,r=e.value,a=void 0===r?"":r,s=e.onChange,c=e.onInputChange,u=void 0===c?function(){}:c,f=e.className,p=e.style,m=void 0===p?{}:p,h=e.placeholder,g=(e.allowClear,(0,i.useState)("")),v=d()(g,2),w=v[0],A=v[1],x=(0,i.useState)(""),b=d()(x,2),j=b[0],C=b[1];(0,i.useEffect)((function(){var e,n=a;null!==(e=JSON.stringify(a))&&void 0!==e&&e.includes("{")&&(A(a.id),n=a.value||"");try{C(decodeURIComponent(n||""))}catch(e){C(decodeURIComponent(n||""))}}),[a]);var B=function(){s(encodeURIComponent(j),w||null)};return(0,l.jsxs)("div",{className:y()(N,f),style:m,children:[!!o.length&&(0,l.jsxs)("div",{className:E,children:[(0,l.jsxs)("div",{className:P,children:[null===(n=o.find((function(e){return e.id===w})))||void 0===n?void 0:n.name,(0,l.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,l.jsx)("b",{className:L}),(0,l.jsx)("b",{className:D})]}),(0,l.jsx)("div",{className:T,children:o.map((function(e,n){return(0,l.jsx)("div",{onClick:function(){var n;(n=e.id)!==w&&(A(n),s(encodeURIComponent(j),n))},children:e.name},n)}))})]}),(0,l.jsx)(M.Z,{onPressEnter:B,value:j,onChange:function(e){C(e.target.value),u(encodeURIComponent(e.target.value),w||null)},bordered:!1,placeholder:h}),(0,l.jsx)("i",{onClick:B,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},O="quickPager___GM30J",Z="disabled___Ozc8I",R=function(e){var n=e.value,t=e.onChange,i=e.className,o=e.total,r=e.pageSize,a=e.style,s=void 0===a?{}:a,c=n<2,d=n>=Math.ceil(o/r);return o<=r?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("div",{className:y()(O,i),style:s,children:[(0,l.jsx)("div",{onClick:function(){c||t(n-1,"prev")},className:c?Z:"",children:"上一页"}),(0,l.jsx)("div",{onClick:function(){d||t(n+1,"next")},className:d?Z:"",children:"下一页"})]})},F="list___oOsiS",G="wrap___G6T7F",z="lockWrap___Rl79E",H="li___oZZ7l",W="cover___b2bYW",U="img___IQX7w",V="sign___HkT6C",K="name___SsJx8",Q="e___TMqq0",q="tags___bcjyo",_="rate___YACg7",X=t(71418),J=t(6848),Y=t(31395),$=t(92723),ee=t(21082),ne=t(96908),te=t(57177),ie=t(81378),oe=t(54313),re=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,o=e.col,r=void 0===o?4:o,a=e.right,s=e.bottom,c=void 0===s?23:s,d=e.precision,u=void 0===d?0:d,f=e.wrapWidth,p=void 0===f?1200:f,m=e.trackEventItems,h=e.loading,g=Math.floor((p-(r-1)*a)/r);return(0,l.jsx)(X.Z,{spinning:h,children:(0,l.jsxs)("div",{className:y()(F,n),children:[!!i.length&&i.map((function(e,n){var t=e.name,i=e.id,o=e.identifier,s=e.power,d=(e.cover_image_id,e.pic);return(0,l.jsxs)("div",{className:G,style:{width:g,marginRight:(1+n)%r==0?0:a+u,marginBottom:c},children:[(0,l.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(o,"/challenges"),className:H,onClick:function(e){e.preventDefault(),m&&(0,ee.L9)([m]),s&&(0,ee.xg)("/shixuns/".concat(o,"/challenges"))},children:[(0,l.jsxs)("div",{className:U,children:[(0,l.jsx)("img",{className:W,src:"".concat(d)}),e.is_jupyter&&(0,l.jsx)("img",{className:V,src:ne}),e.is_jupyter_lab&&(0,l.jsx)("img",{className:V,src:te}),e.is_unity_3d&&(0,l.jsx)("img",{className:V,src:ie})]}),(0,l.jsx)("div",{className:K,children:(0,l.jsx)(J.Z,{title:t||"实践项目名称-未填写",children:(0,l.jsx)("span",{className:Q,children:t||"实践项目名称-未填写"})})}),(0,l.jsxs)("div",{className:q,children:[(0,l.jsx)(J.Z,{placement:"bottom",title:"关卡数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,l.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,l.jsx)(J.Z,{placement:"bottom",title:"学习人数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,l.jsx)("span",{children:e.myshixuns_count})]})}),(0,l.jsx)(J.Z,{placement:"bottom",title:"难度等级",children:(0,l.jsx)("span",{children:(0,l.jsx)("span",{children:e.level})})}),(0,l.jsxs)("div",{className:_,children:[(0,l.jsx)(Y.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,l.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!s&&(0,l.jsxs)("div",{className:z,children:[(0,l.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,l.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},i)})),!i.length&&(0,l.jsx)(oe.Z,{})]})})},ae="list___jb2Ay",le="wrap___VsQDr",se="li___IxCLC",ce="cover___Mu8wr",de="img___IpFLA",ue="movebq___mF7wt",fe="bq___Bil0T",pe="sign___DXJ4d",me="name___l7FoJ",he="e___pXQUG",ge="unit___wCIFR",ve="tags___w_Mil",we=t(93697),Ae=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,o=e.col,r=void 0===o?4:o,a=e.right,s=e.bottom,c=void 0===s?23:s,d=e.precision,u=void 0===d?0:d,f=e.wrapWidth,p=void 0===f?1200:f,m=e.trackEventItems,h=e.loading,g=e.onRemove,v=void 0===g?function(){}:g,w=e.isCurrent,A=void 0===w||w,x=e.showAlias,b=void 0!==x&&x,j=Math.floor((p-(r-1)*a)/r),C=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,l.jsx)(X.Z,{spinning:h,children:(0,l.jsxs)("div",{className:y()(ae,n),children:[!(null==i||!i.length)&&(null==i?void 0:i.map((function(e,n){var t,i=e.name,o=e.id,s=e.identifier,d=(e.featured,e.school_name),f=e.image_url;e.excellent,e.is_plan;return(0,l.jsx)("div",{className:le,style:{width:j,marginRight:(1+n)%r==0?0:a+u,marginBottom:c},children:(0,l.jsxs)("a",{className:se,onClick:function(e){e.preventDefault(),e.stopPropagation(),m&&(0,ee.L9)([m]),(0,ee.xg)("/paths/".concat(s))},children:[(0,l.jsxs)("div",{className:de,children:[(0,l.jsx)("img",{className:ce,src:"".concat(f)}),A&&(0,we.bg)()&&(null==e?void 0:e.studying)&&(0,l.jsxs)("div",{className:"".concat(ue," user-path-items"),onClick:function(n){n.stopPropagation(),v(e)},children:[(0,l.jsx)("i",{className:"iconfont icon-yichu1 mr5 c-red"}),(0,l.jsx)("span",{className:"c-red",children:"移除"})]}),null==e||null===(t=e.subject_tags)||void 0===t?void 0:t.map((function(e,n){var t;if(0===n){var i,o=null===(i=C.find((function(n){return n.name==e})))||void 0===i?void 0:i.swimg;return(0,l.jsx)("img",{className:pe,src:o,style:{left:"-4px"}})}var r=null===(t=C.find((function(n){return n.name==e})))||void 0===t?void 0:t.ptimg;return(0,l.jsx)("img",{className:pe,src:r,style:{left:"".concat(48+52*(n-1)+2*n,"px")}})})),(0,l.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,l.jsx)("div",{className:fe,children:"开放课程"})})]}),(0,l.jsx)("div",{className:me,children:(0,l.jsx)(J.Z,{title:b&&null!=e&&e.excellent_alias_name?(0,l.jsxs)("span",{children:["课程原名:".concat(i),(0,l.jsx)("br",{}),(0,l.jsx)("span",{children:"课程别名:".concat(null==e?void 0:e.excellent_alias_name)})]}):i,children:(0,l.jsx)("span",{className:he,children:b&&(null==e?void 0:e.excellent_alias_name)||i})})}),(0,l.jsx)(J.Z,{title:"发布单位:".concat(d),children:(0,l.jsxs)("div",{className:ge,children:[(0,l.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),d]})}),(0,l.jsx)("div",{className:ve,children:(0,l.jsxs)("div",{children:[(0,l.jsx)(J.Z,{placement:"bottom",title:"章节数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,l.jsx)("span",{children:e.stages_count})]})}),(0,l.jsx)(J.Z,{placement:"bottom",title:"学习人数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,l.jsx)("span",{children:e.members_count})]})})]})})]})},o)}))),!i.length&&(0,l.jsx)(oe.Z,{})]})})},xe={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},be=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,o=e.col,r=void 0===o?4:o,a=e.right,s=e.bottom,c=void 0===s?23:s,d=e.precision,u=void 0===d?0:d,f=e.wrapWidth,p=void 0===f?1200:f,m=e.trackEventItems,h=e.loading,g=Math.floor((p-(r-1)*a)/r);return(0,l.jsx)(X.Z,{spinning:h,children:(0,l.jsxs)("div",{className:y()(xe.list,n),children:[!!i.length&&i.map((function(e,n){var t=e.subject_identifier,i=e.id,o=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,l.jsxs)("div",{className:xe.wrap,style:{width:g,marginRight:(1+n)%r==0?0:a+u,marginBottom:c},children:[(0,l.jsxs)("a",{className:xe.li,onClick:function(n){n.preventDefault(),(0,ee.Wn)(null==e?void 0:e.forbid_visit_info)||(m&&(0,ee.L9)([m]),(0,ee.xg)(e.first_category_url))},children:[(0,l.jsxs)("div",{className:xe.top,children:[(0,l.jsx)(J.Z,{title:e.name,children:(0,l.jsx)("div",{className:xe.name,children:e.name})}),(0,l.jsx)("img",{className:xe.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,l.jsx)("div",{className:xe.text,title:e.creator,children:e.creator}),t&&(0,l.jsxs)("div",{className:xe.btns,children:[(0,l.jsx)("div",{children:"开放课程"}),(0,l.jsx)("aside",{children:"开放课堂"})]}),o&&(0,l.jsx)("div",{className:xe.sign,children:"公开"})]}),(0,l.jsxs)("div",{className:xe.bottom,children:[e.visits>0&&(0,l.jsx)(J.Z,{title:"访问量",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,l.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,l.jsx)(J.Z,{title:"成员",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,l.jsx)(J.Z,{title:"作业",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,l.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,l.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,l.jsxs)("div",{className:xe.lockWrap,children:[(0,l.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,l.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},i)})),!i.length&&(0,l.jsx)(oe.Z,{})]})})},ye={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},je=t(5296),Ce=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,o=e.onChange,r=e.className,a=e.style,s=void 0===a?{}:a,c=e.tabBarExtraContent;return(0,l.jsxs)("div",{className:y()(ye.tabs,r),style:s,children:[(0,l.jsx)("div",{className:ye.tabsWrap,children:t.map((function(e,n){return(0,l.jsxs)("aside",{className:ye.tab,onClick:function(){o(e.id),e.link&&je.history.push(e.link)},children:[(0,l.jsx)("div",{className:i===e.id?ye.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,l.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,l.jsx)(J.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,l.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,l.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,l.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},n)}))}),(0,l.jsx)("div",{className:ye.tabBar,children:c})]})},Be=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,o=e.children;return(0,l.jsx)("div",{className:y()(n),style:i,children:o})},Se="orderWrap___ZfyGX",ke="orderIconWrap___XTB_O",Ne="orderAsc___KWHmA",Ee="orderDesc___rHdbB",Te="active___a7eSP",Pe="cursorPointer___gs9kL",Le="orderTextWrap___teAKn",De=t(38854),Me=t(20834),Ie=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Oe=function(e){var n,t=e.sortValue,i=e.dropValue,o=e.className,r=e.onSort,a=e.onDrop,s=e.dataSource,c=void 0===s?Ie:s;return(0,l.jsxs)("div",{className:y()(Se,o),children:[(0,l.jsx)(De.Z,{dropdownRender:function(){return(0,l.jsx)(Me.Z,{children:c.map((function(e,n){return(0,l.jsx)(Me.Z.Item,{onClick:function(){return a(e.id)},children:e.name},n)}))})},children:(0,l.jsx)("span",{className:Le,children:null===(n=c.find((function(e){return i===e.id})))||void 0===n?void 0:n.name})}),(0,l.jsxs)("span",{className:ke,children:[(0,l.jsx)("span",{className:Ne,children:(0,l.jsx)("i",{className:"asc"===t?"iconfont icon-sanjiaoxing-up font12 ".concat(Pe," ").concat(Te):"iconfont icon-sanjiaoxing-up font12 ".concat(Pe),onClick:function(){return r("asc"===t?"desc":"asc")}})}),(0,l.jsx)("span",{className:Ee,children:(0,l.jsx)("i",{className:"desc"===t?"iconfont icon-sanjiaoxing-down font12 ".concat(Pe," ").concat(Te):"iconfont icon-sanjiaoxing-down font12 ".concat(Pe),onClick:function(){return r("asc"===t?"desc":"asc")}})})]})]})},Ze=t(82242),Re=t.n(Ze),Fe=t(7557),Ge=t.n(Fe),ze=t(41498),He=t.n(ze),We=t(39647),Ue=t.n(We),Ve={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ke=t(3113),Qe=["className","style","children","loading","openLoading","onClick","size","shape"],qe=function(e){var n=e.className,t=e.style,o=e.children,r=e.loading,a=void 0!==r&&r,s=e.openLoading,c=e.onClick,u=void 0===c?function(){}:c,f=e.size,p=void 0===f?"middle":f,m=e.shape,h=void 0===m?"round":m,g=Ue()(e,Qe),v=(0,i.useState)(!1),w=d()(v,2),A=w[0],x=w[1];return(0,l.jsx)(Ke.ZP,Re()(Re()({onClick:(0,j.throttle)(function(){var e=He()(Ge()().mark((function e(n){return Ge()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s&&x(!0),e.prev=1,e.next=4,u(n);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:s&&x(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(n){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:y()(Ve.btn,Ve["".concat(p,"-").concat(h)],n),style:t,size:p,shape:h,loading:A||a},g),{},{children:o}))},_e="head___ghH72",Xe="node___mjPEy",Je=function(e){var n=e.className,t=e.style,i=e.children,o=void 0===i?null:i,r=e.onClick,a=e.title;return(0,l.jsxs)("div",{className:y()(_e,n),style:t,children:[(0,l.jsxs)("span",{className:"primary-hover",onClick:r,children:[(0,l.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,l.jsx)("b",{title:a,children:a}),(0,l.jsx)("div",{className:Xe,children:o})]})},Ye="btns___sNgTb",$e="confirm___Ozirl",en="cancel___aiq1I",nn=function(e){var n=e.confirmShow,t=void 0===n||n,i=e.confirmTitle,o=e.confirmClick,r=e.cancelShow,a=void 0===r||r,s=e.cancelTitle,c=e.cancelClick,d=e.className,u=e.style,f=e.confirmLoading,p=void 0!==f&&f;return(0,l.jsxs)("div",{className:y()(Ye,d),style:u,children:[t&&(0,l.jsx)(Ke.ZP,{loading:p,onClick:o,type:"primary",className:$e,children:i}),a&&(0,l.jsx)(Ke.ZP,{onClick:c,className:en,children:s})]})},tn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},on=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,o=e.LeftContent,r=e.children,a=e.RightContent;return(0,l.jsx)("div",{className:y()(tn.fixedBottom,n),style:i,children:(0,l.jsxs)("div",{className:tn.wrap,children:[(0,l.jsx)("div",{className:tn.left,children:o}),(0,l.jsx)("div",{className:tn.center,children:r}),(0,l.jsx)("div",{className:tn.right,children:a})]})})},rn="crumbs___V41Oe",an="hover___bEIVd",ln=function(e){var n=e.className,t=e.style,o=void 0===t?{}:t,r=e.dataSource,a=void 0===r?[]:r;return(0,l.jsx)("div",{className:y()(rn,n),style:o,children:a.map((function(e,n){return n"," "]})]},n):(0,l.jsx)("span",{style:{color:"#5F6368"},children:e.name},n)}))})},sn=t(31797),cn=["onChange"],dn=sn.Z.Countdown,un=function(e){var n=e.onChange,t=Ue()(e,cn),o=(0,i.useState)(null),r=d()(o,2),a=r[0],s=r[1];(0,i.useEffect)((function(){"number"==typeof a&&a>=0&&n(a)}),[a]);return(0,l.jsx)(dn,Re()(Re()({},t),{},{onChange:function(e){var n=Math.floor(e/1e3);s(n)}}))}},77818:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var i=t(59301);function o(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])}},90341:function(e,n,t){"use strict";t.d(n,{$J:function(){return s},JZ:function(){return d},bN:function(){return p},jP:function(){return f},rO:function(){return c}});var i=t(7557),o=t.n(i),r=t(41498),a=t.n(r),l=t(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function d(e){return u.apply(this,arguments)}function u(){return(u=a()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(n,".json"));case 2:return t=e.sent,e.abrupt("return",0===t.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return(0,l.v_)("libraries.json",e)}function p(e,n){return(0,l.gz)("libraries/".concat(e,".json"),n)}},79382:function(e,n,t){"use strict";t.d(n,{Z:function(){return E}});var i=t(7557),o=t.n(i),r=t(41498),a=t.n(r),l=t(79800),s=t.n(l),c=t(82242),d=t.n(c),u=t(37205),f=t.n(u),p=t(59301),m=t(5296),h=t(92832),g=t(78241),v=t(8591),w=t(43418),A=t(93948),x=t(24905),b=t(12563),y={modal:"modal___EKlPQ",uploadWrap:"uploadWrap___YGxav",upload:"upload___ouqG9",uploadLink:"uploadLink___nuif6",fileProgress:"fileProgress___tf4qy",fileCancel:"fileCancel___Bh3Wh",videoName:"videoName___Ra0NM",contentItem:"contentItem___zMdIq","tagsList-content":"tagsList-content___sDVph"},j=t(55209),C=t(86673),B=t(93697),S=t(37712),k=h.Z.TextArea,N=function(e,n){var t,i=(n.payload||{}).uploadInfo,o=void 0===i?{}:i;switch(n.type){case"addVideo":return{videoList:[].concat(f()(e.videoList),[{name:o.file.name,size:o.file.size,type:o.file.type,fileHash:o.fileHash,state:o.state,videoId:o.videoId,loaded:o.loaded||0,title:""}])};case"removeVideo":return{videoList:e.videoList.filter((function(e){return e.name!==n.payload.name}))};case"removeAll":default:return{videoList:[]};case"updateProgress":return{videoList:e.videoList.map((function(e){return e.name===n.payload.uploadInfo.file.name?d()(d()({},e),{loaded:n.payload.progressPercent,videoId:o.videoId,fileHash:o.fileHash}):e}))};case"updateTitle":return{videoList:null===(t=e.videoList)||void 0===t?void 0:t.map((function(e){return e.name===n.payload.item.name?d()(d()({},e),{title:n.payload.title}):e}))}}},E=(0,m.connect)((function(e){var n=e.user,t=e.loading;return{user:n,globalSetting:e.globalSetting,loading:t}}))((function(e){var n,t=e.user,i=(e.globalSetting,e.loading,e.dispatch,e.visible),r=e.editData,l=e.onCancel,c=void 0===l?function(){}:l,u=e.onOk,E=void 0===u?function(){}:u,T=e.queryParams,P=void 0===T?{}:T,L=((0,m.useParams)(),g.Z.useForm()),D=s()(L,1)[0],M=(0,p.useReducer)(N,{videoList:[]}),I=s()(M,2),O=I[0],Z=I[1],R=(0,p.useState)(!1),F=s()(R,2),G=(F[0],F[1]),z=(0,p.useRef)(),H=(0,p.useState)(),W=s()(H,2),U=W[0],V=W[1],K=(0,p.useState)(!1),Q=s()(K,2),q=Q[0],_=Q[1],X=(0,p.useState)(!1),J=s()(X,2),Y=J[0],$=J[1],ee=(0,B.Ny)()?3:1;(0,p.useEffect)((function(){var e,n,t;i&&r&&(_(r.is_link),V(r.link),!r.is_link&&Z({type:"addVideo",payload:{uploadInfo:{file:{name:r.filename||""},videoId:r.video_id,loaded:100}}}),he((null==r||null===(e=r.tags)||void 0===e?void 0:e.map((function(e){return null==e?void 0:e.name})))||[]),D.setFieldsValue({name:r.name,description:r.description,attachment_id:null==r||null===(n=r.video)||void 0===n?void 0:n.attachment_id,allow_skip:null==r||null===(t=r.video_item)||void 0===t?void 0:t.allow_skip}))}),[r,i]);var ne,te,ie,oe,re,ae,le,se=function(){document.getElementById("fileUpload").value=""},ce=function(e){var n,i='{"Vod":{}}';G(!0),z.current?z.current.addFile(e,null,null,null,i):(0,j.o)(null===(n=t.userInfo)||void 0===n?void 0:n.login,"",{create:!z,addFileSuccess:function(e){Z({type:"addVideo",payload:{uploadInfo:e}})},onUploadProgress:function(e,n,t){var i=Math.ceil(100*t);Z({type:"updateProgress",payload:{uploadInfo:e,progressPercent:i}}),se()},onUploadFailed:function(e){v.ZP.info("视频云服务出现异常,请重新上传。")},onUploadEnd:function(e){G(!1)},onUploadSucceed:function(e){G(!1)},onUploadError:function(e){G(!1)},gotUploader:function(n){n.addFile(e,null,null,null,i),z.current=n}})},de=function(){var e=a()(o()().mark((function e(){var n,t,i,r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D.validateFields();case 2:if((q||null!==(n=O.videoList)&&void 0!==n&&n.length)&&(!q||U)){e.next=5;break}return v.ZP.info("请先上传视频或者添加外链"),e.abrupt("return");case 5:return $(!0),i=q?{link:U}:{video_id:null===(t=O.videoList)||void 0===t?void 0:t[0].videoId},e.next=9,E(d()(d()(d()({},i),P),{name:D.getFieldValue("name"),attachment_id:D.getFieldValue("attachment_id"),description:D.getFieldValue("description"),tags:D.getFieldValue("tag"),allow_skip:D.getFieldValue("allow_skip")}));case 9:r=e.sent,$(!1),r.id&&ue();case 12:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ue=function(){D.resetFields(),Z({type:"removeAll"}),V(null),he([]),_(null)},fe=(0,p.useState)([]),pe=s()(fe,2),me=pe[0],he=pe[1];return(0,S.jsx)(w.Z,{centered:!0,maskClosable:!1,destroyOnClose:!0,title:r?"编辑视频项目":"新建视频项目",width:740,className:y.modal,open:i,confirmLoading:Y,onOk:de,onCancel:function(){c(),ue()},children:(0,S.jsxs)(g.Z,{form:D,children:[(0,S.jsx)("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:function(e){var n;_(!1);var t=e.target.files[0];if(t){var i=t.name.toLowerCase();return i&&-1==i.indexOf(".avi")&&-1==i.indexOf(".flv")&&-1==i.indexOf(".f4v")&&-1==i.indexOf(".m4v")&&-1==i.indexOf(".mov")&&-1==i.indexOf(".mp4")&&-1==i.indexOf(".rmvb")&&-1==i.indexOf(".swf")&&-1==i.indexOf(".webm")&&-1==i.indexOf(".wmv")?(v.ZP.info("不支持的视频格式"),void se()):t.size>1024*ee*1024*1024?(v.ZP.info("视频大小超过".concat(ee,"G")),void se()):null!==(n=O.videoList)&&void 0!==n&&n.find((function(e){return e.name===t.name}))?(v.ZP.info("你不能上传同一个视频文件名称,请重新选择。"),void se()):void ce(t)}se()},accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),(0,S.jsx)(g.Z.Item,{label:"项目名称",name:"name",rules:[{required:!0,message:"请输入项目名称"}],children:(0,S.jsx)(h.Z,{maxLength:40,placeholder:"请输入不超过40字的项目名称"})}),(0,S.jsx)(g.Z.Item,{label:"项目内容",name:"content",className:y.contentItem,children:(0,S.jsxs)(S.Fragment,{children:[!q&&!(null===(ne=O.videoList)||void 0===ne||!ne.length)&&(0,S.jsxs)("div",{className:y.fileProgress,children:[100==(null===(te=O.videoList)||void 0===te||null===(te=te[0])||void 0===te?void 0:te.loaded)?(0,S.jsx)("div",{className:"".concat(y.videoName," font14"),children:null===(ie=O.videoList)||void 0===ie||null===(ie=ie[0])||void 0===ie?void 0:ie.name}):(0,S.jsx)(A.Z,{style:{width:"80%"},percent:null===(oe=O.videoList)||void 0===oe||null===(oe=oe[0])||void 0===oe?void 0:oe.loaded,status:100==(null===(re=O.videoList)||void 0===re||null===(re=re[0])||void 0===re?void 0:re.loaded)?"normal":"active"}),(0,S.jsx)("div",{className:y.fileCancel,onClick:function(){var e,n,t,i;return t=null===(e=O.videoList)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.name,i=100==(null===(n=O.videoList)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.loaded),void w.Z.confirm({title:"提示",centered:!0,okText:"确定",cancelText:"取消",content:(0,S.jsxs)("div",{className:"tc",children:["您确认要",i?"删除":"取消上传","该视频吗?"]}),onOk:function(){se(),Z({type:"removeVideo",payload:{name:t}})}})},children:100===(null===(ae=O.videoList)||void 0===ae||null===(ae=ae[0])||void 0===ae?void 0:ae.loaded)?"删除":"取消上传"})]}),!(null!==(le=O.videoList)&&void 0!==le&&le.length)&&(0,S.jsxs)("div",{className:y.uploadWrap,children:[(0,S.jsxs)("label",{htmlFor:"fileUpload",className:y.upload,children:[(0,S.jsx)("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"上传视频"]}),(0,S.jsxs)("label",{className:"".concat(y.upload," ").concat(y.uploadLink),onClick:function(){return _(!0)},children:[(0,S.jsx)("i",{className:"iconfont icon-lianjie1 mr5"}),"添加外链"]})]}),q&&(0,S.jsx)(h.Z,{className:"mt5",placeholder:"请输入视频链接",value:U,onChange:function(e){return V(e.target.value)}})]})}),(0,S.jsx)(g.Z.Item,{name:"attachment_id",label:"上传封面图:",children:(0,S.jsx)(C.Z,{getFileProgress:function(e){"uploading"!==e.file.status?"done"===e.file.status&&$(!1):$(!0)}})}),(0,S.jsx)(g.Z.Item,{label:"项目简介",name:"description",className:"ml8",children:(0,S.jsx)(k,{rows:5,maxLength:800,placeholder:"请输入本视频简介,最多不超过800字"})}),(0,S.jsx)(g.Z.Item,{label:"知识标签",name:"tag",className:"ml8",children:(0,S.jsx)(h.Z,{onKeyUp:function(e){if("Enter"==e.key){var n=D.getFieldValue("tag");if(D.setFieldsValue({tag:""}),!n)return void v.ZP.info("标签不能为空");if(me.filter((function(e){return e===n})).length>0)return void v.ZP.info("已有相同名称标签");me.push(n),he(f()(me))}}})}),(0,S.jsx)(g.Z.Item,{label:"播放设置",name:"allow_skip",valuePropName:"checked",className:"ml8",initialValue:!0,children:(0,S.jsx)(x.Z,{children:"允许快进播放"})}),(0,S.jsx)("div",{className:y["tagsList-content"],children:me.map((function(e,n){return(0,S.jsx)(b.Z,{closable:!0,onClose:function(n){!function(e,n){e.preventDefault(),he(f()(me.filter((function(e){return e!=n}))))}(n,e)},children:e},n+e)}))}),(0,S.jsxs)("div",{className:"c-grey-999",children:[(0,S.jsx)("div",{children:"注意:"}),(0,S.jsxs)("div",{children:["1、上传视频,即表示您已同意",(0,S.jsx)(m.Link,{to:"/users/".concat(null===(n=t.userInfo)||void 0===n?void 0:n.login,"/videos/protocol"),target:"_blank",className:y.colorBlue,children:"上传内容协议"}),",不得上传未经他人授权的作品;"]}),(0,S.jsxs)("div",{children:["2、不支持断点续传,文件大小请勿超过",ee,"G;"]}),(0,S.jsx)("div",{children:"3、支持文件格式:avi、flv、f4v、m4v、mov、mp4、rmvb、swf、webm、wmv;"}),(0,S.jsx)("div",{children:"4、如果视频来自于外部链接,本网站不提供播放页面,无法提供统计数据。"})]})]})})}))},55209:function(e,n,t){"use strict";t.d(n,{o:function(){return d}});var i,o=t(18030),r=t(93125),a=t.n(r),l="",s="";function c(e){!function(e){i=new(a().Vod)({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:0x6803cbd867207,enableUploadProgress:!1,addFileSuccess:function(n){console.log("addFileSuccess: "+n.file.name),e.addFileSuccess&&e.addFileSuccess(n),i.startUpload()},onUploadstarted:function(n){var t=n.file.name;if(n.videoId){var r="/api/users/".concat(l,"/video_auths.json");(0,o.ZP)(r,{method:"put",body:{video_id:n.videoId,title:t,file_name:t,virtual_classroom_id:s}}).then((function(t){if(-1!=t.status){var o=t.data,r=o.UploadAuth,a=o.UploadAddress;o.VideoId;i.setUploadAuthAndAddress(n,r,a)}else e.onUploadError&&e.onUploadError(n)})).catch((function(e){i.deleteFile(i._curIndex),i.nextUpload(),console.log(e)}))}else{var a="/api/users/".concat(l,"/video_auths.json"),c="";(0,o.ZP)(a,{method:"Post",body:{title:c+t,file_name:c+t,virtual_classroom_id:s}}).then((function(e){if(e){var t=e.data,o=t.UploadAuth,r=t.UploadAddress,a=t.VideoId;i.setUploadAuthAndAddress(n,o,r,a)}})).catch((function(e){i.deleteFile(i._curIndex),i.nextUpload(),console.log(e)})),console.log("文件开始上传...")}},onUploadSucceed:function(n){e.onUploadSucceed&&e.onUploadSucceed(n),console.log("文件上传成功!")},onUploadFailed:function(n,t,i){e.onUploadFailed&&e.onUploadFailed(n),console.log("文件上传失败!")},onUploadCanceled:function(e,n,t){console.log("文件上传已暂停!")},onUploadProgress:function(n,t,i){e.onUploadProgress&&e.onUploadProgress(n,t,i);Math.ceil(100*i);console.log("文件上传中...")},onUploadTokenExpired:function(e){console.log("文件上传超时!");var n="/api/users/".concat(l,"/video_auths.json");(0,o.ZP)(n,{method:"put",body:{video_id:e.videoId}}).then((function(e){var n=e.data.UploadAuth;i.resumeUploadWithAuth(n)})).catch((function(e){console.log(e)}))},onUploadEnd:function(n){e.onUploadEnd&&e.onUploadEnd(n),console.log("onUploadEnd: uploaded all the files")}}),e.gotUploader&&e.gotUploader(i)}(e)}function d(e,n,t){e&&(l=e),n&&(s=n),c(t)}},19421:function(e,n,t){"use strict";t.d(n,{rX:function(){return B},pW:function(){return S},gy:function(){return k},xY:function(){return C},O5:function(){return j},tJ:function(){return w},o1:function(){return A},Rd:function(){return y}});var i=t(7557),o=t.n(i),r=t(41498),a=t.n(r),l=t(5296),s=t(43418),c=t(28103),d=t(8591),u=t(93697),f=t(21082),p=t(680),m=t(25510),h=t.p+"static/newqrcode.a8740efb.png",g=t(32637),v=t(37712),w=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!A(e)||!x(n))},A=function(e){return!!(0,u.bg)()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},x=function(){var e,n=(0,l.getDvaApp)()._store.getState(),t=n.user;return!(null===(e=t.userInfo)||void 0===e||!e.profile_completed)||(s.Z.confirm({title:"提示",width:530,centered:!0,content:"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,f.xg)("/account/profile/edit"),b()}}),!1)},b=function(){s.Z.success({title:"提示",width:430,closable:!0,centered:!0,content:"已完善个人资料?请刷新页面",okText:"立即刷新",icon:null,onOk:function(){location.reload()}})},y=function(){s.Z.warning({title:"提示",icon:null,width:400,content:(0,v.jsxs)("div",{style:{textAlign:"center"},children:[(0,v.jsx)("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"},children:"老师您好,您的课堂试用期已结束,相关功能被限制。 如需继续使用,请尽快对接人工支持!"}),(0,v.jsx)("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:g}),(0,v.jsx)("div",{style:{color:"#666666",fontSize:14,marginTop:15},children:"添加客服人员微信,获得更多支持"})]})})},j=function(){var e;return!(null===(e=(0,l.getDvaApp)()._store.getState().user.userInfo)||void 0===e||!e.professional_certification)||(s.Z.confirm({title:"提示",centered:!0,content:(0,v.jsx)("div",{className:"tc",children:"您需要去完成您的职业认证,才能使用此功能"}),okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,f.xg)("/account/certification")}}),!1)},C=function(){return!!(0,u.V9)()||(s.Z.warning({centered:!0,width:530,title:"提示",content:(0,v.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,v.jsx)("p",{children:"扫码加头歌助教,申请操作权限"}),(0,v.jsx)("img",{src:h,width:200})]}),okText:"我知道了",maskClosable:!0}),!1)},B=function(e,n){return!!e||(s.Z.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:(0,v.jsxs)("div",{children:[(0,v.jsx)("p",{children:n||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。"}),(0,v.jsxs)("div",{style:{marginLeft:"110px"},children:[(0,v.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2s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m7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",width:200}),(0,v.jsxs)("div",{style:{marginLeft:"35px"},children:["群号:","714336072"]})]})]}),okText:"立即联系",cancelText:"取消",onOk:function(){(0,f.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},S=function(e){s.Z.info({title:"联系平台运营",icon:null,width:615,centered:!0,content:(0,v.jsxs)("div",{children:[(0,v.jsxs)("div",{children:[(0,v.jsx)("p",{style:{color:"#191919",fontWeight:400,fontSize:14},children:"“保存实验临时数据”功能为付费功能,请联系平台运营进行开通。"}),(0,v.jsx)(c.Z,{}),(0,v.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,v.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"1"})," 因平台的实验数据储存容量和成本消耗较大,实践项目默认保存实验环境中临时数据 ",(0,v.jsx)("a",{children:e}),"天。"]}),(0,v.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,v.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"2"}),"若您需要个性化的数据保存周期服务,我们可以提供相关技术支持,并根据您的需求收取定制费用。"]})]}),(0,v.jsx)("div",{style:{textAlign:"center",marginTop:30},children:(0,v.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:m,alt:"二维码",width:160})})]})})},k=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(0,l.getDvaApp)()._store.getState(),i=t.shixunsDetail.detail;if(2===(null==i?void 0:i.public)||1===(null==i?void 0:i.public)||3===(null==i?void 0:i.shixun_status)){var r="";return 2===(null==i?void 0:i.public)&&(r="已公开"),1===(null==i?void 0:i.public)&&(r="待审核"),3===(null==i?void 0:i.shixun_status)&&(r="已关闭"),s.Z.info({centered:!0,icon:(0,v.jsx)(p.Z,{style:{color:"#faad14"}}),width:460,title:"提示",content:(0,v.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,v.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"},children:[(0,v.jsxs)("span",{children:["该实践项目的状态为",r,",",n,"。"]}),(0,v.jsx)("p",{children:"如有需要,请联系平台管理员进行技术支持。"})]}),(0,v.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:m,alt:"二维码",width:160})]}),okText:"我知道了"}),!0}return 2===(null==i?void 0:i.shixun_status)&&(s.Z.confirm({centered:!0,icon:(0,v.jsx)(p.Z,{}),title:"提示",content:(0,v.jsxs)("div",{children:[(0,v.jsxs)("span",{children:["该实践项目已发布,",n,"。"]}),(0,v.jsx)("br",{}),(0,v.jsx)("span",{children:"如有需要,您可以撤销发布后,再进行操作。"})]}),okText:"撤销发布",cancelText:"取消",onOk:function(){var n;s.Z.confirm({width:440,centered:!0,icon:(0,v.jsx)(p.Z,{style:{color:"#faad14"}}),title:"提示",content:"撤销发布后,学员将无法进行练习。是否确认撤销发布?",okText:"确定撤销发布",cancelText:"取消",onOk:(n=a()(o()().mark((function n(){return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e({type:"shixunsDetail/cancelRelease",payload:{id:null==i?void 0:i.identifier}});case 2:401!==n.sent.status&&(d.ZP.success("撤销发布成功。实训回到未发布的状态。"),e({type:"shixunsDetail/getShixunsDetail",payload:{id:null==i?void 0:i.identifier}}),e({type:"practiceSetting/getCommonData",payload:{id:null==i?void 0:i.identifier}}));case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})}}),!0)}},32637:function(e,n,t){"use strict";e.exports=t.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxY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No newline at end of file diff --git a/56494.3a801c28.async.js b/56494.3103a40c.async.js similarity index 61% rename from 56494.3a801c28.async.js rename to 56494.3103a40c.async.js index 51af386690..54ebfc6ae3 100644 --- a/56494.3a801c28.async.js +++ b/56494.3103a40c.async.js @@ -1 +1 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[56494],{91318:function(e,t,n){"use strict";n.d(t,{Z:function(){return j}});var i=n(82242),a=n.n(i),r=n(7557),s=n.n(r),o=n(41498),l=n.n(o),c=n(79800),u=n.n(c),d=n(59301),p=n(5296),f=n(78241),h=n(8591),m=n(43418),v=n(92832),x="wrap___TwY3U",g="content___Ks95W",y="mainPathWrap___CrMaa",_="colorBlue___dvWbP",b=n(37712),j=(0,p.connect)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t=e.shixunsDetail,n=(e.globalSetting,e.loading,e.dispatch),i=e.title,r=e.pathList,o=void 0===r?[]:r,c=e.showInputPath,j=void 0!==c&&c,w=e.isMergeSelectFile,k=void 0!==w&&w,S=e.onFinish,C=void 0===S?function(){}:S,Z=f.Z.useForm(),N=u()(Z,1)[0],P=(0,p.useParams)(),D=(0,p.useLocation)(),T=(0,d.useRef)(),F=(0,d.useState)(""),O=u()(F,2),R=O[0],E=O[1],L=(0,d.useState)(""),I=u()(L,2),B=I[0],M=I[1],A=(0,d.useState)([]),U=u()(A,2),z=U[0],V=U[1],q=(0,d.useState)([]),G=u()(q,2),K=G[0],H=G[1];(0,d.useEffect)((function(){var e;T.current="repository"===(null===(e=D.pathname)||void 0===e||null===(e=e.split("/"))||void 0===e?void 0:e[3])}),[]),(0,d.useEffect)((function(){if("Repository-SelectFilePath"===t.actionTabs.key){var e=o.join("/"),n=[];o.map((function(t,i){0===i?n.push({val:"根目录",path:""},{val:"/".concat(t),path:e}):n.push({val:"/".concat(t),path:e})})),V(n),E(e),M(e),W(e)}}),[t.actionTabs.key]);var W=function(){var e=l()(s()().mark((function e(t){var i;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({type:T.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:P.id,path:t}});case 2:(i=e.sent)&&H(i.trees||[]);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),J=function(){var e=l()(s()().mark((function e(){var t,i,r;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=null==N?void 0:N.getFieldsValue(),i=R?"".concat(R).concat(null!=t&&t.name?"/".concat(null==t?void 0:t.name):""):null==t?void 0:t.name,!k){e.next=6;break}return C(i),Q(),e.abrupt("return");case 6:if(!j){e.next=16;break}return e.next=9,N.validateFields();case 9:return e.next=11,n({type:"shixunsDetail/uploadGitFolder",payload:a()(a()({},{id:P.id,path:i}),T.current?{}:{secret_repository:!0})});case 11:r=e.sent,C(B),0===r.status&&h.ZP.info("新建成功"),e.next=18;break;case 16:C(i),h.ZP.success("选择文件目录成功");case 18:Q();case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Q=function(){n({type:"shixunsDetail/setActionTabs",payload:{}}),N.resetFields()};return(0,b.jsx)(m.Z,{centered:!0,title:i||"新建文件夹",closable:!1,keyboard:!1,open:"Repository-SelectFilePath"===t.actionTabs.key,onOk:J,onCancel:Q,children:(0,b.jsxs)("div",{className:x,children:[(0,b.jsxs)("div",{className:g,children:[(0,b.jsx)("div",{className:y,children:!(null==z||!z.length)&&z.map((function(e,t){return(0,b.jsx)("a",{onClick:function(){return function(e,t){var n=z.filter((function(e,n){return n<=t}));V(n);var i=n.filter((function(e,t){return 0!==t})).map((function(e){return e.val})).join("").substr(1);E(i),W(i)}(0,t)},children:e.val},t)}))}),!(null==K||!K.length)&&K.map((function(e,t){return"tree"===e.type&&(0,b.jsxs)("a",{onClick:function(){return function(e){var t=R;"tree"===e.type&&(z.length?z.push({val:"/".concat(e.name),path:e.name}):z.push({val:"根目录",path:""},{val:"/".concat(e.name),path:e.name}),V(z),t=R?"".concat(R,"/").concat(e.name):e.name,E(t)),W(t)}(e)},children:[(0,b.jsx)("i",{className:"iconfont icon-wenjianjia ".concat(_)}),e.name]},t)}))]}),(0,b.jsx)("label",{className:"mt5",children:"选中的新建文件夹目录:"}),(0,b.jsx)("div",{className:"mt5 mb5",children:R}),j&&(0,b.jsx)(f.Z,{form:N,scrollToFirstError:!0,className:"mt20",children:(0,b.jsx)(f.Z.Item,{name:"name",rules:[{required:!0,message:"请输入名称"},{whitespace:!0,message:"请勿输入空格"}],children:(0,b.jsx)(v.Z,{placeholder:"请输入新文件夹名/子文件夹名。(如:src/step1)"})})})]})})}))},56494:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Ee}});var i=n(82242),a=n.n(i),r=n(7557),s=n.n(r),o=n(41498),l=n.n(o),c=n(79800),u=n.n(c),d=n(39647),p=n.n(d),f=n(59301),h="menu___szqfh",m="warehouse___SVzfZ",v="header___DfoMH",x="title___y2IOb",g="content___pGWUf",y="left___eYHD7",_="right___RbSHM",b="loading___g8ST2",j="empty___JqJWS",w="tabs___fuMob",k="line___Wav7D",S="footer___xymfv",C="commit___ZwkDv",Z="filePathWrp____p6mm",N="filePath___qkzoJ",P="bottom0___MrVME",D=n(5296),T=n(99313),F=n(6848),O=n(8591),R=n(20834),E=n(95237),L=n(43604),I=n(38854),B=n(43418),M=n(71418),A=n(3113),U=n(37205),z=n.n(U),V=n(38318),q=n(78673),G=n(56102),K=n(78241),H=n(92832),W={wrap:"wrap___yTLAj",modal:"modal___B3dwx",title:"title___FHscn",path:"path___o7aJh",colorBlue:"colorBlue___p4I9Y",width240:"width240___UNGpD",filePath:"filePath___uTJLX"},J=n(37712),Q=["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"],X=(0,D.connect)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,user:e.user,loading:n.models.index}}))((function(e){e.shixunsDetail,e.globalSetting,e.loading,e.user;var t=e.dispatch,n=e.isRepository,i=p()(e,Q),r=(0,D.useLocation)(),o=(0,D.useParams)(),c=(0,f.useState)({}),d=u()(c,2),h=(d[0],d[1]),m=(0,f.useRef)(),v=K.Z.useForm(),x=u()(v,1)[0],g=(0,f.useState)(""),y=u()(g,2),_=(y[0],y[1]);(0,f.useEffect)((function(){i.visible&&x.resetFields()}),[i.visible]),(0,f.useEffect)((function(){var e=sessionStorage.getItem("pathArray");if(e){var t=e.split(",").join("/"),n=0===t.indexOf("/")?t.substr(1):t;_(n)}}),[]),(0,f.useEffect)((function(){var e;m.current=null===(e=r.pathname)||void 0===e||null===(e=e.split("/"))||void 0===e?void 0:e[2]}),[]);var b=function(){var e=l()(s()().mark((function e(){var a,r,l=arguments;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=l.length>0&&void 0!==l[0]?l[0]:{},e.next=3,t({type:"shixunsDetail/addRepositoryFile",payload:{id:o.id,message:a.commitMessage,content:"",path:(i.defaultPath?i.defaultPath+"/":"")+a.path+"/"+(a.file||".gitkeep"),secret_repository:!n||void 0}});case 3:null!=(r=e.sent)&&r.url&&(O.ZP.success("添加成功"),i.onOK({path:(i.defaultPath?i.defaultPath+"/":"")+a.path+"/"+(a.file||".gitkeep"),name:a.path.split("/")[a.path.split("/").length-1]}),i.onClose());case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,J.jsx)(B.Z,{width:"60%",centered:!0,open:i.visible,wrapClassName:W.modal,onOk:function(){x.submit()},onCancel:i.onClose,title:"新建文件夹",children:(0,J.jsx)("section",{className:W.bg,children:(0,J.jsx)("div",{className:W.wrap,children:(0,J.jsxs)(K.Z,{className:"mt10",form:x,scrollToFirstError:!0,layout:"vertical",onFinish:b,onChange:function(){var e,t,n,i,r=a()({},x.getFieldsValue()),s=null==r||null===(e=r.path)||void 0===e?void 0:e.split(""),o=null==r||null===(t=r.file)||void 0===t?void 0:t.split("");null!=s&&null!==(n=s.filter((function(e){return"/"==e})))&&void 0!==n&&n.length&&(r.path=r.path.substring(0,r.path.length-1)),null!=o&&null!==(i=o.filter((function(e){return"/"==e})))&&void 0!==i&&i.length&&(r.file=r.file.substring(0,r.path.length-1)),x.setFieldsValue(a()({},r)),h(r)},children:[(0,J.jsx)(K.Z.Item,{label:"文件夹名称:",name:"path",children:(0,J.jsxs)(E.Z,{children:[(0,J.jsx)(L.Z,{children:(0,J.jsx)("span",{className:W.filePath,children:i.defaultPath+"/"})}),(0,J.jsx)(L.Z,{flex:"1",children:(0,J.jsx)(K.Z.Item,{name:"path",rules:[{required:!0,message:"请输入文件夹名称"},{whitespace:!0,message:"请勿输入空格"}],children:(0,J.jsx)(H.Z,{placeholder:"请输入文件夹名称",size:"middle"})})})]})}),(0,J.jsx)(K.Z.Item,{label:"文件名称:",name:"file",children:(0,J.jsx)(H.Z,{placeholder:"请输入文件名称,如果不填写系统将在文件夹下创建.gitkeep的默认文件",size:"middle"})}),(0,J.jsx)(K.Z.Item,{label:"提交信息:",name:"commitMessage",rules:[{required:!0,message:"请输入提交信息"},{whitespace:!0,message:"请勿输入空格"}],children:(0,J.jsx)(H.Z,{placeholder:"请输入本次提交的主要信息,合理的描述信息有利于代码历史记录的管理",size:"middle"})})]})})})})})),Y=n(73145),$=n(19465),ee=["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"],te=(0,D.connect)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,user:e.user,loading:n.models.index}}))((function(e){var t=e.shixunsDetail,n=(e.globalSetting,e.loading,e.user,e.dispatch),i=e.isRepository,r=p()(e,ee),o=(0,D.useLocation)(),c=(0,D.useParams)(),d=(0,f.useState)({}),h=u()(d,2),m=(h[0],h[1]),v=(0,f.useRef)(),x=K.Z.useForm(),g=u()(x,1)[0],y=(0,f.useState)(""),_=u()(y,2),b=(_[0],_[1]);(0,f.useEffect)((function(){r.visible&&g.resetFields()}),[r.visible]),(0,f.useEffect)((function(){var e=sessionStorage.getItem("pathArray");if(e){var t=e.split(",").join("/"),n=0===t.indexOf("/")?t.substr(1):t;b(n)}}),[]),(0,f.useEffect)((function(){var e;v.current=null===(e=o.pathname)||void 0===e||null===(e=e.split("/"))||void 0===e?void 0:e[2]}),[]);var j=function(){var e=l()(s()().mark((function e(){var a,o,l,u,d,p,f=arguments;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=f.length>0&&void 0!==f[0]?f[0]:{},l=f.length>1&&void 0!==f[1]&&f[1],u=f.length>2&&void 0!==f[2]?f[2]:1,e.next=5,n({type:"shixunsDetail/addRepositoryFile",payload:{id:c.id,message:o.commitMessage,content:o.codeMirror,path:(r.defaultPath?r.defaultPath+"/":"")+o.path,secret_repository:!i||void 0,sync_origin_shixun:l}});case 5:null!=(d=e.sent)&&d.url&&(null!=t&&null!==(p=t.detail)&&void 0!==p&&p.copy_for_exercise||O.ZP.success("添加成功"),r.onOK({path:(r.defaultPath?r.defaultPath+"/":"")+o.path,name:o.path.split("/")[o.path.split("/").length-1]}),r.onClose()),null!=t&&null!==(a=t.detail)&&void 0!==a&&a.copy_for_exercise&&(0,$.m)(n,t,c.id,u);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,J.jsx)(B.Z,{width:"60%",open:r.visible,wrapClassName:W.modal,destroyOnClose:!0,centered:!0,onOk:function(){g.submit()},onCancel:r.onClose,title:"新建文件",children:(0,J.jsx)("section",{className:W.bg,children:(0,J.jsx)("div",{className:W.wrap,children:(0,J.jsxs)(K.Z,{className:"mt10",form:g,scrollToFirstError:!0,layout:"vertical",onFinish:function(e){var i,a;null!=t&&null!==(i=t.detail)&&void 0!==i&&i.is_fork_from_creator&&null!=t&&null!==(a=t.detail)&&void 0!==a&&a.copy_for_exercise?(r.onClose(),n({type:"classroomList/setActionTabs",payload:{key:"同步修改",value:e,type:"wareHouse",fn:function(e,t,n){j(e,t,n)}}})):j(e)},onChange:function(){var e,t,n=a()({},g.getFieldsValue()),i=null==n||null===(e=n.path)||void 0===e?void 0:e.split("");(null==i||null===(t=i.filter((function(e){return"/"==e})))||void 0===t?void 0:t.length)>1&&(n.path=n.path.substring(0,n.path.length-1)),g.setFieldsValue(a()({},n)),m(n)},children:[(0,J.jsx)(K.Z.Item,{label:"文件名称或文件路径:",name:"path",children:(0,J.jsxs)(E.Z,{children:[(0,J.jsx)(L.Z,{children:(0,J.jsx)("span",{className:W.filePath,children:r.defaultPath+"/"})}),(0,J.jsx)(L.Z,{flex:"1",children:(0,J.jsx)(K.Z.Item,{name:"path",style:{marginBottom:0},rules:[{required:!0,message:"请输入文件名称"},{whitespace:!0,message:"请勿输入空格"}],children:(0,J.jsx)(H.Z,{placeholder:"请输入文件名称",size:"middle"})})})]})}),(0,J.jsx)(K.Z.Item,{label:"提交信息:",name:"commitMessage",rules:[{required:!0,message:"请输入提交信息"},{whitespace:!0,message:"请勿输入空格"}],children:(0,J.jsx)(H.Z,{placeholder:"请输入本次提交的主要信息,合理的描述信息有利于代码历史记录的管理",size:"middle"})}),(0,J.jsx)("div",{className:"mt10 mb20",children:(0,J.jsx)(K.Z.Item,{name:"codeMirror",label:"文件内容:",rules:[{required:!0,message:"请输入文件内容"}],style:{marginBottom:0},children:(0,J.jsx)(Y.h,{options:{modal:"javascript",lineNumbers:!0,theme:"railscasts",indentUnit:4,matchBrackets:!0,autoRefresh:!0,smartIndent:!0,extraKeys:{"Alt-/":"autocomplete"},autofocus:!0,styleActiveLine:!0,lint:!0,linkurl:"",gutters:["CodeMirror-linenumbers","breakpoints","CodeMirror-lint-markers"]}})})})]})})})})})),ne=["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"],ie=(0,D.connect)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,user:e.user,loading:n.models.index}}))((function(e){e.shixunsDetail,e.globalSetting,e.loading,e.user;var t=e.dispatch,n=e.isRepository,i=p()(e,ne),r=(0,D.useLocation)(),o=(0,D.useParams)(),c=(0,f.useState)({}),d=u()(c,2),h=(d[0],d[1]),m=(0,f.useRef)(),v=K.Z.useForm(),x=u()(v,1)[0],g=(0,f.useState)(""),y=u()(g,2),_=y[0],b=y[1],j=(0,f.useState)(""),w=u()(j,2),k=w[0],S=w[1];(0,f.useEffect)((function(){i.visible&&x.resetFields()}),[i.visible]),(0,f.useEffect)((function(){var e=i.defaultPath.split("/");1===e.length?(b(""),S(i.defaultPath)):(S(e.pop()),b(e.join("/")+"/"))}),[i.defaultPath]),(0,f.useEffect)((function(){var e;m.current=null===(e=r.pathname)||void 0===e||null===(e=e.split("/"))||void 0===e?void 0:e[2]}),[]);var C=function(){var e=l()(s()().mark((function e(){var a,r,l=arguments;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=l.length>0&&void 0!==l[0]?l[0]:{},e.next=3,t({type:"shixunsDetail/moveGitFile",payload:{id:o.id,from:i.defaultPath,to:_+a.path,message:a.commitMessage||"".concat(i.defaultPath," rename to ").concat(_).concat(a.path," "),secret_repository:n}});case 3:0===(null==(r=e.sent)?void 0:r.status)&&(O.ZP.success("添加成功"),i.onOK({path:a.path,name:a.path}),i.onClose());case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,J.jsx)(B.Z,{width:"40%",open:i.visible,wrapClassName:W.modal,centered:!0,onOk:function(){x.submit()},onCancel:i.onClose,title:"提交说明",children:(0,J.jsx)("section",{className:W.bg,children:(0,J.jsx)("div",{className:W.wrap,children:(0,J.jsxs)(K.Z,{className:"mt10",form:x,scrollToFirstError:!0,layout:"vertical",onFinish:C,onChange:function(){var e,t,n=a()({},x.getFieldsValue()),i=null==n||null===(e=n.path)||void 0===e?void 0:e.split("");(null==i||null===(t=i.filter((function(e){return"/"==e})))||void 0===t?void 0:t.length)>1&&(n.path=n.path.substring(0,n.path.length-1)),x.setFieldsValue(a()({},n)),h(n)},children:[(0,J.jsx)(K.Z.Item,{label:"重命名:",name:"path",children:(0,J.jsx)(E.Z,{children:(0,J.jsx)(L.Z,{flex:"1",children:(0,J.jsx)(K.Z.Item,{name:"path",rules:[{required:!0,message:"请输入文件名称"},{whitespace:!0,message:"请勿输入空格"}],children:(0,J.jsx)(H.Z,{placeholder:"请输入文件名称",size:"middle",defaultValue:k})})})})}),(0,J.jsx)(K.Z.Item,{label:"提交信息:",name:"commitMessage",children:(0,J.jsx)(H.Z,{placeholder:"如不填写,默认提交信息是(".concat(i.defaultPath," rename to 新的名称 )"),size:"middle"})})]})})})})})),ae=n(92723),re=n(18030),se=n(59028),oe=n(91318),le={wrap:"wrap___T4tjB",title:"title____QnQT",path:"path___PLUeD",colorBlue:"colorBlue___eL7QF"},ce=["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"],ue=se.Z.Dragger,de=(0,D.connect)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,user:e.user,loading:n.models.index}}))((function(e){var t,n=e.shixunsDetail,i=(e.globalSetting,e.loading,e.user,e.dispatch),r=e.isRepository,o=p()(e,ce),c=(0,D.useLocation)(),d=(0,D.useParams)(),h=(0,f.useState)({}),m=u()(h,2),v=m[0],x=m[1],g=(0,f.useRef)(),y=K.Z.useForm(),_=u()(y,1)[0],b=(0,f.useState)([]),j=u()(b,2),w=j[0],k=j[1],S=(0,f.useState)(),C=u()(S,2),Z=C[0],N=C[1];(0,f.useEffect)((function(){o.visible&&(_.resetFields(),k([]))}),[o.visible]),(0,f.useEffect)((function(){g.current=d.id}),[]),(0,f.useEffect)((function(){var e=sessionStorage.getItem("pathArray");if(e){var t=e.split(",").join("/"),n=0===t.indexOf("/")?t.substr(1):t;N(n)}}),[]);var P,T=function(){var e=l()(s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.response){e.next=3;break}return O.ZP.info("还未上传完成,无法进行删除操作!"),e.abrupt("return");case 3:return e.next=5,i({type:"shixunsDetail/deleteGitFile",payload:{id:d.id,path:Z?"".concat(Z,"/").concat(t.name):t.name,message:_.getFieldValue("commitMessage")||"删除了".concat(Z?"".concat(Z,"/").concat(t.name):t.name),secret_repository:!r||null}});case 5:0===e.sent.status&&(k(w.filter((function(e){return e.uid!==t.uid}))),O.ZP.info("删除成功"));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),F={height:300,multiple:!0,withCredentials:!0,openFileDialogOnClick:Boolean(_.getFieldValue("commitMessage")),data:(P=l()(s()().mark((function e(){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=l()(s()().mark((function e(n,i){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:setTimeout(l()(s()().mark((function e(){var i;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_.getFieldsValue();case 2:e.sent,i=a()(a()({},{path:o.defaultPath?o.defaultPath:"",message:v.commitMessage||"上传了".concat(t)}),r?{}:{secret_repository:!0}),n(i);case 5:case"end":return e.stop()}}),e)}))),200);case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(){return P.apply(this,arguments)}),fileList:w,method:"post",action:"".concat(ae.Z.API_SERVER,"/api/shixuns/").concat(g.current,"/upload_git_file.json"),onChange:function(e){if(t=e.file.name,"done"===e.file.status||"uploading"===e.file.status){var i,a,r,s;if(k(e.fileList),!e.file.response)return;if(0===(null===(i=e.file.response)||void 0===i?void 0:i.status))return void(null!=n&&null!==(s=n.detail)&&void 0!==s&&s.copy_for_exercise||(O.ZP.success("上传成功!"),_.validateFields()));k(w.filter((function(t){return t.uid!==e.file.uid}))),(null===(a=e.file.response)||void 0===a?void 0:a.message)&&O.ZP.info(null===(r=e.file.response)||void 0===r?void 0:r.message)}},onRemove:T,beforeUpload:function(e){return t=e.name,!(e.size/1024/1024>50)||(O.ZP.info("文件大小必须小于50MB"),!1)}},R=function(){var e=l()(s()().mark((function e(){var l,c,u,p,f,h,m=arguments;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=m.length>0&&void 0!==m[0]&&m[0],u=m.length>1&&void 0!==m[1]?m[1]:1,p=a()(a()({},{path:o.defaultPath?o.defaultPath:"",message:v.commitMessage||"上传了".concat(t)}),r?{}:{secret_repository:!0}),f=s()().mark((function e(){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).append("file",w[h].originFileObj),t.append("sync_origin_shixun",c.toString()),Object.keys(p).forEach((function(e){t.append(e,p[e].toString())})),e.next=6,(0,re.ZP)("/api/shixuns/".concat(g.current,"/upload_git_file.json"),{method:"post",body:t},!0);case 6:e.sent;case 7:case"end":return e.stop()}}),e)})),h=0;case 5:if(!(h0&&void 0!==n[0]?n[0]:"",e.next=3,(0,_e.Zt)({id:j.id,secret_dir_path:t});case 3:e.sent&&Ge(t);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Xe=function(e){var t;return(0,J.jsxs)(R.Z,{className:pe.menu,onClick:function(t){switch(oe(e.path||""),t.key){case"1":(0,be.L9)(["实践项目","设置","代码仓库","新建文件"]),T(!0);break;case"2":(0,be.L9)(["实践项目","设置","代码仓库","新建文件夹"]),Q(!0);break;case"3":(0,be.L9)(["实践项目","设置","代码仓库","上传"]),ne(!0);break;case"4":(0,be.L9)(["实践项目","设置","代码仓库","重命名"]),V(!0);break;case"5":(0,be.L9)(["实践项目","设置","代码仓库","删除"]),st(e.path,e.name,e);break;case"6":(0,be.L9)(["实践项目","设置","代码仓库","复制路径"]),ot(e)}},children:[("topTree"===e.type||"tree"===e.type)&&(0,J.jsx)(R.Z.Item,{children:"新建文件"},"1"),("topTree"===e.type||"tree"===e.type)&&(0,J.jsx)(R.Z.Item,{children:"新建文件夹"},"2"),("topTree"===e.type||"tree"===e.type)&&(0,J.jsx)(R.Z.Item,{children:"上传"},"3"),"topTree"!==e.type&&"tree"!==e.type&&(null==h||null===(t=h.detail)||void 0===t?void 0:t.public)<2&&(0,J.jsx)(R.Z.Item,{children:"重命名"},"4"),"topTree"!==e.type&&(0,J.jsx)(G.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(y?"":"secret/").concat(null==e?void 0:e.path),onCopy:function(){return O.ZP.success("复制成功")},children:(0,J.jsx)(R.Z.Item,{children:(0,J.jsx)(J.Fragment,{children:"复制路径"})},"6")}),"topTree"!==e.type&&(0,J.jsx)(R.Z.Item,{children:"删除"},"5")]})},Ye=function(e,t){return e.map((function(e){return e.path=""==t?t+e.name:t+"/"+e.name,e.title=(0,J.jsxs)(E.Z,{className:"font14",children:[(0,J.jsx)(L.Z,{flex:"1",children:(0,J.jsxs)(E.Z,{children:["blob"===e.type&&(0,J.jsx)(L.Z,{flex:"20px",style:{marginLeft:-20},children:(0,J.jsx)("span",{className:"iconfont icon-wenjian11 font12"})}),(0,J.jsx)(L.Z,{flex:"1",children:(0,J.jsx)("span",{className:" multi_ellipsis1",children:e.name})})]})}),(0,J.jsx)(L.Z,{children:("blob"===e.type||"tree"===e.type)&&(0,J.jsx)(I.Z,{dropdownRender:function(){return Xe(e)},className:pe.ellipsis,children:(0,J.jsx)("i",{className:"iconfont icon-gengduo2 c-555a88"})})})]}),e.disableCheckbox=C&&C!==e.name,e.className="tree"===e.type?pe.pl23:"",e.checkable="tree"!==e.type,e.isLeaf="tree"!==e.type,e.children="tree"===e.type&&[],e.key=e.path,e}))},$e=function(e){x({type:"practiceSetting/setSideBarTabs",payload:{selectPath:e}})},et=function(){var e=l()(s()().mark((function e(t,n){var i;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.split("/"),e.next=3,it(se);case 3:setTimeout((function(){$e(t),ue=[i[0]||""],ve=[t],we(z()(ve)),fe(z()(ue))}),150);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),tt=function(e,t){if(""==t)_=z()(e),b(z()(e));else{var n=nt(_,t,e);_=n,b([].concat(n))}};function nt(e,t,n){return e.map((function(e){return e.key===t?(e.children=z()(n),a()({},e)):e.children?a()(a()({},e),{},{children:nt(e.children,t,n)}):e}))}var it=function(){var e=l()(s()().mark((function e(){var t,n,i,a,r,o=arguments;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:"",e.next=3,x({type:y?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:j.id,path:t}});case 3:return(n=e.sent)&&(null!==(i=n.trees)&&void 0!==i&&i.length?(r=Ye(z()(n.trees),t),tt(r,t),Pe(n.trees||[]),Me(t||""),console.log("handleGetRepository:",r,t),setTimeout((function(){return console.log(_,n.trees,t,999999)}),2e3)):""==t&&b([]),Le((null===(a=n.commits)||void 0===a?void 0:a[0])||{})),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),at=function(){var e=l()(s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=l()(s()().mark((function e(n,i){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.children.length&&n(),ze(t.path),e.next=4,it(t.path);case 4:n();case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),rt=function(){var e=l()(s()().mark((function e(t,n){var i,a;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("handleSelectTree",t,n.nativeEvent.target.nodeName,n),i=function(){$e(n.node.path),t=[n.node.path],we(z()(t))},"svg"!==n.nativeEvent.target.nodeName&&"LI"!==n.nativeEvent.target.nodeName&&"I"!==n.nativeEvent.target.nodeName){e.next=4;break}return e.abrupt("return");case 4:"blob"===n.node.type&&(null!=g&&null!==(a=g.sideBar)&&void 0!==a&&a.confirmLeave?B.Z.confirm({title:"离开此页提示",content:"系统可能不会保存您所做的更改。",okText:"离开",cancelText:"取消",onOk:function(){i(),x({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):i());case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),st=function(e,t,n){var i;B.Z.confirm({centered:!0,title:"确认需要删除该文件".concat(n.children?"夹":"","?"),okText:"确定",cancelText:"取消",onOk:(i=l()(s()().mark((function t(){var n,i,a;return s()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,x({type:"shixunsDetail/deleteGitFile",payload:{id:j.id,path:e,message:"删除".concat(e),secret_repository:!y||null}});case 2:if(n=t.sent,i=e.split("/"),0!==(null==n?void 0:n.status)){t.next=20;break}return O.ZP.info("删除成功"),i.splice(i.length-1,1),t.next=9,it(i.length>1?i.join("/"):"");case 9:if(null==(a=t.sent)||!a.trees){t.next=13;break}t.next=16;break;case 13:return i.splice(i.length-1,1),t.next=16,it(i.length>1?i.join("/"):"");case 16:return $e(""),t.abrupt("return",!0);case 20:-3===(null==n?void 0:n.status)?B.Z.confirm({title:"删除失败",centered:!0,content:(0,J.jsxs)("div",{children:["该文件“",e,"”已经被任务关卡的学员任务文件或评测执行文件使用,请先修改任务关卡中评测设置的文件路径后再删除。"]}),okText:"前往修改",cancelText:"取消",onOk:function(){window.location.href="/shixuns/".concat(j.id,"/edit/").concat(null==n?void 0:n.message,"/tab=2")}}):-4===(null==n?void 0:n.status)&&B.Z.confirm({title:"删除失败",centered:!0,content:(0,J.jsx)("div",{children:null==n?void 0:n.message}),okText:"前往修改",cancelText:"取消",onOk:function(){window.location.href="/shixuns/".concat(j.id,"/edit?tabId=service")}});case 21:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})})},ot=function(e){console.log(e,"item")},lt=function(){var e=l()(s()().mark((function e(t,n){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("handleExpand",n),"svg"!==n.nativeEvent.target.nodeName&&"path"!==n.nativeEvent.target.nodeName&&"LI"!==n.nativeEvent.target.nodeName){e.next=5;break}return e.abrupt("return",!0);case 5:return e.next=7,at(n.node);case 7:ue.includes(n.node.path)?ue.splice(ue.indexOf(n.node.path),1):ue.push(n.node.path);case 8:fe(z()(ue));case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),ct=function(){Oe(!1),localStorage.warehouseHideTip=!0},ut=function(){var e=l()(s()().mark((function e(t){var n,i,a,r,o;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a="",e.t0=y,e.next=!0===e.t0?4:!1===e.t0?9:11;break;case 4:return a="开启版本库",r="开启",o="不开启",i=(0,J.jsx)("div",{children:"新建实践题关卡时,需要使用代码仓库;如果只有选择题关卡,则不需要代码仓库。代码仓库启用后,将无法关闭。"}),e.abrupt("break",11);case 9:return null!=h&&null!==(n=h.detail)&&void 0!==n&&n.secret_repository?(a="关闭私密代码仓库",r="确定",o="取消",i=(0,J.jsx)("div",{children:"关闭私密代码仓库后,已创建的私密代码仓库及其内容,将被删除。确认要关闭私密代码仓库?"})):(a="开启私密代码仓库",r="不使用",o="使用",i=(0,J.jsx)("div",{children:"私密版本库的文件对学员始终隐藏,无法访问查看。适用于命令行、图形化桌面两类实训,其他类型实训不建议使用私密版本库。"})),e.abrupt("break",11);case 11:if(y||!(0,je.gy)(x,"不能开启/关闭私密代码仓库")){e.next=13;break}return e.abrupt("return");case 13:B.Z.confirm({title:a,okText:r,cancelText:o,content:i,onOk:function(){var e;(0,be.L9)(["实践项目","设置","代码仓库",a]),(y||null!=h&&null!==(e=h.detail)&&void 0!==e&&e.secret_repository)&&dt(t)},onCancel:function(){var e;y||null!=h&&null!==(e=h.detail)&&void 0!==e&&e.secret_repository||dt(t)}});case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),dt=function(){var e=l()(s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!y){e.next=6;break}return e.next=3,(0,_e.h4)(a()({},j));case 3:x({type:"practiceSetting/getCommonData",payload:a()({},j)}),e.next=8;break;case 6:return e.next=8,(0,_e.K0)(a()(a()({},j),{},{is_secret_repository:t}));case 8:it(),x({type:"shixunsDetail/getShixunsDetail",payload:{id:j.id}});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),pt=function(){var e=l()(s()().mark((function e(t){var n,i;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log(t),t.node.key,t.dragNode.key,n=t.node.pos.split("-"),t.dropPosition-Number(n[n.length-1]),"tree"!==t.dragNode.type){e.next=8;break}return O.ZP.warning("不支持文件夹移动目录"),e.abrupt("return");case 8:if("tree"===t.node.type){e.next=11;break}return O.ZP.warning("未移动文件目录位置"),e.abrupt("return");case 11:return e.next=13,x({type:"shixunsDetail/moveGitFile",payload:{id:j.id,from:t.dragNode.path,to:t.node.path+"/"+t.dragNode.name,message:"".concat(t.dragNode.path," move to ").concat(t.node.path+"/"+t.dragNode.name," ")}});case 13:if(0!==e.sent.status){e.next=26;break}return $e(""),e.next=18,it("");case 18:i=0;case 19:if(!(i0&&void 0!==c[0]&&c[0],r=c.length>1&&void 0!==c[1]?c[1]:1,e.next=4,ie({type:"shixunsDetail/updateRepositoryFile",payload:{id:Be.id,path:null==re||null===(t=re.fileContent)||void 0===t||null===(t=t.params)||void 0===t?void 0:t.path,content:ve,secret_repository:!be||null,sync_origin_shixun:i}});case 4:null!=(o=e.sent)&&o.content&&(null!=re&&null!==(l=re.detail)&&void 0!==l&&l.copy_for_exercise||O.ZP.success("保存成功"),ie({type:"practiceSetting/setSideBarTabs",payload:a()(a()({},ae.sideBar),{},{confirmLeave:!1})})),null!=re&&null!==(n=re.detail)&&void 0!==n&&n.copy_for_exercise&&(0,$.m)(ie,re,Be.id,r);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,J.jsxs)("div",{className:m,children:[(0,J.jsx)("div",{className:v,children:(0,J.jsxs)(E.Z,{align:"middle",className:"w100 c-white",style:{height:60},children:[(0,J.jsx)(L.Z,{flex:"1",children:(0,J.jsxs)(E.Z,{align:"middle",children:[(0,J.jsx)(L.Z,{children:(0,J.jsx)(I.Z,{dropdownRender:function(){return Ae},className:h,children:(0,J.jsxs)("span",{className:"font16 c-white current ml20",children:[Me.find((function(e){return e.id===le})).name," ",(0,J.jsx)("span",{style:{color:"#B0B5D6"},className:"iconfont icon-sanjiaoxing font12"})]})})}),(0,J.jsx)(L.Z,{flex:"81px",children:(0,J.jsx)("div",{className:k})}),(0,J.jsx)(L.Z,{children:(0,J.jsxs)(T.Z,{className:w,activeKey:pe,onChange:function(e){var t;null!=ae&&null!==(t=ae.sideBar)&&void 0!==t&&t.confirmLeave?B.Z.confirm({title:"离开此页提示",content:"系统可能不会保存您所做的更改。",okText:"离开",cancelText:"取消",onOk:function(){fe(e),ie({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}})}}):(fe(e),ie({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}}))},children:[(0,J.jsx)(Re,{tab:(0,J.jsx)("span",{className:"leaveClick",children:"代码文件"})},"1"),be&&(null==re||null===(r=re.detail)||void 0===r?void 0:r.init_repository)&&(0,J.jsx)(Re,{tab:"提交记录",className:"leaveClick"},"2"),!be&&(null==re||null===(o=re.detail)||void 0===o?void 0:o.secret_repository)&&(0,J.jsx)(Re,{tab:"提交记录",className:"leaveClick"},"2")]})})]})}),(be&&(null==re||null===(c=re.repository)||void 0===c?void 0:c.git_url)||!be&&(null==re||null===(d=re.secretRepository)||void 0===d?void 0:d.git_url))&&(0,J.jsx)(J.Fragment,{children:(0,J.jsxs)(L.Z,{children:[(0,J.jsx)("span",{className:x,children:"仓库地址:"}),(0,J.jsx)("input",{value:be?null==re||null===(U=re.repository)||void 0===U?void 0:U.git_url:null==re||null===(z=re.secretRepository)||void 0===z?void 0:z.git_url}),(0,J.jsx)(G.CopyToClipboard,{text:be?null==re||null===(V=re.repository)||void 0===V?void 0:V.git_url:null==re||null===(q=re.secretRepository)||void 0===q?void 0:q.git_url,onCopy:function(){return O.ZP.success("复制成功")},children:(0,J.jsx)(F.Z,{placement:"topLeft",title:"点击复制版本库",children:(0,J.jsx)("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"})})})]})})]})}),(0,J.jsxs)("div",{className:g,style:{overflow:"auto"},children:["1"===pe&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("aside",{className:y,children:(0,J.jsx)(M.Z,{spinning:!!ne.effects["shixunsDetail/getRepository"],wrapperClassName:"".concat(b," ").concat(P),children:(0,J.jsx)(Ze,{setTreeData:Le,treeData:Ee,activeKey:le,isRepository:be})})}),(0,J.jsxs)("aside",{className:_,ref:Ie,children:[""!==(null==ae||null===(K=ae.sideBar)||void 0===K?void 0:K.selectPath)&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(M.Z,{spinning:!!ne.effects["shixunsDetail/getFileContent"],wrapperClassName:b,children:[(0,J.jsx)("div",{className:Z,children:(0,J.jsxs)(E.Z,{align:"middle",className:"w100",children:[(0,J.jsx)(L.Z,{children:(0,J.jsx)("span",{className:"iconfont icon-daimacangku2 c-white"})}),(0,J.jsx)(L.Z,{flex:"40px",children:(0,J.jsx)("div",{className:k,style:{marginLeft:20}})}),(0,J.jsx)(L.Z,{className:N,children:Ce.map((function(e,t){return(0,J.jsx)("span",{className:"c-blue",children:e})}))})]})}),(0,J.jsx)("div",{className:ne.effects["shixunsDetail/getFileContent"]?"hide":"show",children:(0,J.jsx)(Fe.Z,{className:"darkBlue",style:{top:66,height:"calc(100% - 60px)",position:"absolute",zIndex:1},filename:null==re||null===(H=re.fileContent)||void 0===H?void 0:H.filename,type:"office"===(null==re||null===(W=re.fileContent)||void 0===W?void 0:W.file_type)?"download":null==re||null===(Q=re.fileContent)||void 0===Q?void 0:Q.file_type,data:ve,monacoEditor:{value:ve,language:null==re||null===(X=re.fileContent)||void 0===X?void 0:X.language,onChange:function(e){return function(e){xe(e);var t=-1;t=e===ge.current?0:1,ie({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!!t}})}(e)},options:{fontSize:14}}})})]}),"txt"===(null==re||null===(Y=re.fileContent)||void 0===Y?void 0:Y.file_type)&&(0,J.jsx)(E.Z,{align:"middle",justify:"center",className:S,children:(0,J.jsxs)(L.Z,{children:[(0,J.jsx)(A.ZP,{type:"primary",size:"middle",ghost:!0,onClick:function(){D.history.push("/shixuns/".concat(Be.id,"/challenges"))},children:"取消"}),(0,J.jsx)(A.ZP,{type:"primary",size:"middle",className:"ml40",onClick:function(e){var t,n;null!=re&&null!==(t=re.detail)&&void 0!==t&&t.is_fork_from_creator&&null!=re&&null!==(n=re.detail)&&void 0!==n&&n.copy_for_exercise?ie({type:"classroomList/setActionTabs",payload:{key:"同步修改",type:"wareHouse",fn:function(e,t){Ue(e,t)}}}):Ue()},children:"提交"})]})})]}),""==(null==ae||null===(ee=ae.sideBar)||void 0===ee?void 0:ee.selectPath)&&(null==re||null===(te=re.detail)||void 0===te?void 0:te.init_repository)&&(0,J.jsxs)("div",{className:j,children:[(0,J.jsx)("img",{src:we.x7,width:"258"}),(0,J.jsx)("br",{}),(0,J.jsxs)("span",{className:"c-grey-c",children:[!(null==Ee||!Ee.length)&&"在左侧代码仓库区域点击目录打开文件",!(null!=Ee&&Ee.length)&&"请先在左侧上传文件或新建文件!"]})]})]})]}),"2"===pe&&(0,J.jsx)("div",{className:C,children:(0,J.jsx)(Te,{isRepository:be})})]})]})}))},19465:function(e,t,n){"use strict";n.d(t,{S:function(){return d},m:function(){return p}});var i=n(7557),a=n.n(i),r=n(41498),s=n.n(r),o=n(21082),l=n(8591),c=n(43418),u=n(37712),d=function(e){var t=document.createElement("textarea");return t.value=e,t.value},p=function(){var e=s()(a()().mark((function e(t,n,i,r,s){var d,p,f;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({type:"shixunsDetail/saveCopyForExercise",payload:{id:i,save_type:r}});case 2:d=e.sent,1===r?(0==(null==d?void 0:d.status)&&l.ZP.success("保存成功"),null!=d&&null!==(p=d.data)&&void 0!==p&&p.exists_same_shixun_name?t({type:"classroomList/setActionTabs",payload:{key:"重名修改",name:null==d||null===(f=d.data)||void 0===f?void 0:f.shixun_name}}):t({type:"classroomList/setActionTabs",payload:{}})):(t({type:"classroomList/setActionTabs",payload:{}}),0===(null==d?void 0:d.status)&&c.Z.info({title:"提示",width:460,icon:null,centered:!0,content:(0,u.jsx)("div",{children:(0,u.jsx)("div",{children:"实训同步修改完成,请验证实训是否可以正常使用。"})}),okText:"前往原实训",onOk:function(){var e;(0,o.xg)("/shixuns/".concat(null==n||null===(e=n.detail)||void 0===e||null===(e=e.fork_from)||void 0===e?void 0:e.fork_identifier,"/challenges"))}}));case 4:case"end":return e.stop()}}),e)})));return function(t,n,i,a,r){return e.apply(this,arguments)}}()},25769:function(e,t,n){"use strict";var i=n(98040),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,r,s,o,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(s=i(),o=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(i){if(i.stopPropagation(),t.format)if(i.preventDefault(),void 0===i.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=a[t.format]||a.default;window.clipboardData.setData(r,e)}else i.clipboardData.clearData(),i.clipboardData.setData(t.format,e);t.onCopy&&(i.preventDefault(),t.onCopy(i.clipboardData))})),document.body.appendChild(c),o.selectNodeContents(c),l.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(i){n&&console.error("unable to copy using execCommand: ",i),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(i){n&&console.error("unable to copy using clipboardData: ",i),n&&console.error("falling back to prompt"),r=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(o):l.removeAllRanges()),c&&document.body.removeChild(c),s()}return u}},83145:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var i=r(n(59301)),a=r(n(25769));function r(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e,t){if(null==e)return{};var n,i,a=function(e,t){if(null==e)return{};var n,i,a={},r=Object.keys(e);for(i=0;i=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n0&&void 0!==l[0]?l[0]:{},e.next=3,t({type:"shixunsDetail/addRepositoryFile",payload:{id:o.id,message:a.commitMessage,content:"",path:(i.defaultPath?i.defaultPath+"/":"")+a.path+"/"+(a.file||".gitkeep"),secret_repository:!n||void 0}});case 3:null!=(r=e.sent)&&r.url&&(O.ZP.success("添加成功"),i.onOK({path:(i.defaultPath?i.defaultPath+"/":"")+a.path+"/"+(a.file||".gitkeep"),name:a.path.split("/")[a.path.split("/").length-1]}),i.onClose());case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,J.jsx)(B.Z,{width:"60%",centered:!0,open:i.visible,wrapClassName:W.modal,onOk:function(){x.submit()},onCancel:i.onClose,title:"新建文件夹",children:(0,J.jsx)("section",{className:W.bg,children:(0,J.jsx)("div",{className:W.wrap,children:(0,J.jsxs)(K.Z,{className:"mt10",form:x,scrollToFirstError:!0,layout:"vertical",onFinish:b,onChange:function(){var e,t,n,i,r=a()({},x.getFieldsValue()),s=null==r||null===(e=r.path)||void 0===e?void 0:e.split(""),o=null==r||null===(t=r.file)||void 0===t?void 0:t.split("");null!=s&&null!==(n=s.filter((function(e){return"/"==e})))&&void 0!==n&&n.length&&(r.path=r.path.substring(0,r.path.length-1)),null!=o&&null!==(i=o.filter((function(e){return"/"==e})))&&void 0!==i&&i.length&&(r.file=r.file.substring(0,r.path.length-1)),x.setFieldsValue(a()({},r)),h(r)},children:[(0,J.jsx)(K.Z.Item,{label:"文件夹名称:",name:"path",children:(0,J.jsxs)(E.Z,{children:[(0,J.jsx)(L.Z,{children:(0,J.jsx)("span",{className:W.filePath,children:i.defaultPath+"/"})}),(0,J.jsx)(L.Z,{flex:"1",children:(0,J.jsx)(K.Z.Item,{name:"path",rules:[{required:!0,message:"请输入文件夹名称"},{whitespace:!0,message:"请勿输入空格"}],children:(0,J.jsx)(H.Z,{placeholder:"请输入文件夹名称",size:"middle"})})})]})}),(0,J.jsx)(K.Z.Item,{label:"文件名称:",name:"file",children:(0,J.jsx)(H.Z,{placeholder:"请输入文件名称,如果不填写系统将在文件夹下创建.gitkeep的默认文件",size:"middle"})}),(0,J.jsx)(K.Z.Item,{label:"提交信息:",name:"commitMessage",rules:[{required:!0,message:"请输入提交信息"},{whitespace:!0,message:"请勿输入空格"}],children:(0,J.jsx)(H.Z,{placeholder:"请输入本次提交的主要信息,合理的描述信息有利于代码历史记录的管理",size:"middle"})})]})})})})})),Y=n(73145),$=n(19465),ee=["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"],te=(0,D.connect)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,user:e.user,loading:n.models.index}}))((function(e){var t=e.shixunsDetail,n=(e.globalSetting,e.loading,e.user,e.dispatch),i=e.isRepository,r=p()(e,ee),o=(0,D.useLocation)(),c=(0,D.useParams)(),d=(0,f.useState)({}),h=u()(d,2),m=(h[0],h[1]),v=(0,f.useRef)(),x=K.Z.useForm(),g=u()(x,1)[0],y=(0,f.useState)(""),_=u()(y,2),b=(_[0],_[1]);(0,f.useEffect)((function(){r.visible&&g.resetFields()}),[r.visible]),(0,f.useEffect)((function(){var e=sessionStorage.getItem("pathArray");if(e){var t=e.split(",").join("/"),n=0===t.indexOf("/")?t.substr(1):t;b(n)}}),[]),(0,f.useEffect)((function(){var e;v.current=null===(e=o.pathname)||void 0===e||null===(e=e.split("/"))||void 0===e?void 0:e[2]}),[]);var j=function(){var e=l()(s()().mark((function e(){var a,o,l,u,d,p,f=arguments;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=f.length>0&&void 0!==f[0]?f[0]:{},l=f.length>1&&void 0!==f[1]&&f[1],u=f.length>2&&void 0!==f[2]?f[2]:1,e.next=5,n({type:"shixunsDetail/addRepositoryFile",payload:{id:c.id,message:o.commitMessage,content:o.codeMirror,path:(r.defaultPath?r.defaultPath+"/":"")+o.path,secret_repository:!i||void 0,sync_origin_shixun:l}});case 5:null!=(d=e.sent)&&d.url&&(null!=t&&null!==(p=t.detail)&&void 0!==p&&p.copy_for_exercise||O.ZP.success("添加成功"),r.onOK({path:(r.defaultPath?r.defaultPath+"/":"")+o.path,name:o.path.split("/")[o.path.split("/").length-1]}),r.onClose()),null!=t&&null!==(a=t.detail)&&void 0!==a&&a.copy_for_exercise&&(0,$.m)(n,t,c.id,u);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,J.jsx)(B.Z,{width:"60%",open:r.visible,wrapClassName:W.modal,destroyOnClose:!0,centered:!0,onOk:function(){g.submit()},onCancel:r.onClose,title:"新建文件",children:(0,J.jsx)("section",{className:W.bg,children:(0,J.jsx)("div",{className:W.wrap,children:(0,J.jsxs)(K.Z,{className:"mt10",form:g,scrollToFirstError:!0,layout:"vertical",onFinish:function(e){var i,a;null!=t&&null!==(i=t.detail)&&void 0!==i&&i.is_fork_from_creator&&null!=t&&null!==(a=t.detail)&&void 0!==a&&a.copy_for_exercise?(r.onClose(),n({type:"classroomList/setActionTabs",payload:{key:"同步修改",value:e,type:"wareHouse",fn:function(e,t,n){j(e,t,n)}}})):j(e)},onChange:function(){var e,t,n=a()({},g.getFieldsValue()),i=null==n||null===(e=n.path)||void 0===e?void 0:e.split("");(null==i||null===(t=i.filter((function(e){return"/"==e})))||void 0===t?void 0:t.length)>1&&(n.path=n.path.substring(0,n.path.length-1)),g.setFieldsValue(a()({},n)),m(n)},children:[(0,J.jsx)(K.Z.Item,{label:"文件名称或文件路径:",name:"path",children:(0,J.jsxs)(E.Z,{children:[(0,J.jsx)(L.Z,{children:(0,J.jsx)("span",{className:W.filePath,children:r.defaultPath+"/"})}),(0,J.jsx)(L.Z,{flex:"1",children:(0,J.jsx)(K.Z.Item,{name:"path",style:{marginBottom:0},rules:[{required:!0,message:"请输入文件名称"},{whitespace:!0,message:"请勿输入空格"}],children:(0,J.jsx)(H.Z,{placeholder:"请输入文件名称",size:"middle"})})})]})}),(0,J.jsx)(K.Z.Item,{label:"提交信息:",name:"commitMessage",rules:[{required:!0,message:"请输入提交信息"},{whitespace:!0,message:"请勿输入空格"}],children:(0,J.jsx)(H.Z,{placeholder:"请输入本次提交的主要信息,合理的描述信息有利于代码历史记录的管理",size:"middle"})}),(0,J.jsx)("div",{className:"mt10 mb20",children:(0,J.jsx)(K.Z.Item,{name:"codeMirror",label:"文件内容:",rules:[{required:!0,message:"请输入文件内容"}],style:{marginBottom:0},children:(0,J.jsx)(Y.h,{options:{modal:"javascript",lineNumbers:!0,theme:"railscasts",indentUnit:4,matchBrackets:!0,autoRefresh:!0,smartIndent:!0,extraKeys:{"Alt-/":"autocomplete"},autofocus:!0,styleActiveLine:!0,lint:!0,linkurl:"",gutters:["CodeMirror-linenumbers","breakpoints","CodeMirror-lint-markers"]}})})})]})})})})})),ne=["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"],ie=(0,D.connect)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,user:e.user,loading:n.models.index}}))((function(e){e.shixunsDetail,e.globalSetting,e.loading,e.user;var t=e.dispatch,n=e.isRepository,i=p()(e,ne),r=(0,D.useLocation)(),o=(0,D.useParams)(),c=(0,f.useState)({}),d=u()(c,2),h=(d[0],d[1]),m=(0,f.useRef)(),v=K.Z.useForm(),x=u()(v,1)[0],g=(0,f.useState)(""),y=u()(g,2),_=y[0],b=y[1],j=(0,f.useState)(""),w=u()(j,2),k=w[0],S=w[1];(0,f.useEffect)((function(){i.visible&&x.resetFields()}),[i.visible]),(0,f.useEffect)((function(){var e=i.defaultPath.split("/");1===e.length?(b(""),S(i.defaultPath)):(S(e.pop()),b(e.join("/")+"/"))}),[i.defaultPath]),(0,f.useEffect)((function(){var e;m.current=null===(e=r.pathname)||void 0===e||null===(e=e.split("/"))||void 0===e?void 0:e[2]}),[]);var C=function(){var e=l()(s()().mark((function e(){var a,r,l=arguments;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=l.length>0&&void 0!==l[0]?l[0]:{},e.next=3,t({type:"shixunsDetail/moveGitFile",payload:{id:o.id,from:i.defaultPath,to:_+a.path,message:a.commitMessage||"".concat(i.defaultPath," rename to ").concat(_).concat(a.path," "),secret_repository:n}});case 3:0===(null==(r=e.sent)?void 0:r.status)&&(O.ZP.success("添加成功"),i.onOK({path:a.path,name:a.path}),i.onClose());case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,J.jsx)(B.Z,{width:"40%",open:i.visible,wrapClassName:W.modal,centered:!0,onOk:function(){x.submit()},onCancel:i.onClose,title:"提交说明",children:(0,J.jsx)("section",{className:W.bg,children:(0,J.jsx)("div",{className:W.wrap,children:(0,J.jsxs)(K.Z,{className:"mt10",form:x,scrollToFirstError:!0,layout:"vertical",onFinish:C,onChange:function(){var e,t,n=a()({},x.getFieldsValue()),i=null==n||null===(e=n.path)||void 0===e?void 0:e.split("");(null==i||null===(t=i.filter((function(e){return"/"==e})))||void 0===t?void 0:t.length)>1&&(n.path=n.path.substring(0,n.path.length-1)),x.setFieldsValue(a()({},n)),h(n)},children:[(0,J.jsx)(K.Z.Item,{label:"重命名:",name:"path",children:(0,J.jsx)(E.Z,{children:(0,J.jsx)(L.Z,{flex:"1",children:(0,J.jsx)(K.Z.Item,{name:"path",rules:[{required:!0,message:"请输入文件名称"},{whitespace:!0,message:"请勿输入空格"}],children:(0,J.jsx)(H.Z,{placeholder:"请输入文件名称",size:"middle",defaultValue:k})})})})}),(0,J.jsx)(K.Z.Item,{label:"提交信息:",name:"commitMessage",children:(0,J.jsx)(H.Z,{placeholder:"如不填写,默认提交信息是(".concat(i.defaultPath," rename to 新的名称 )"),size:"middle"})})]})})})})})),ae=n(92723),re=n(18030),se=n(59028),oe=n(91318),le={wrap:"wrap___T4tjB",title:"title____QnQT",path:"path___PLUeD",colorBlue:"colorBlue___eL7QF"},ce=["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"],ue=se.Z.Dragger,de=(0,D.connect)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,user:e.user,loading:n.models.index}}))((function(e){var t,n=e.shixunsDetail,i=(e.globalSetting,e.loading,e.user,e.dispatch),r=e.isRepository,o=p()(e,ce),c=(0,D.useLocation)(),d=(0,D.useParams)(),h=(0,f.useState)({}),m=u()(h,2),v=m[0],x=m[1],g=(0,f.useRef)(),y=K.Z.useForm(),_=u()(y,1)[0],b=(0,f.useState)([]),j=u()(b,2),w=j[0],k=j[1],S=(0,f.useState)(),C=u()(S,2),Z=C[0],N=C[1];(0,f.useEffect)((function(){o.visible&&(_.resetFields(),k([]))}),[o.visible]),(0,f.useEffect)((function(){g.current=d.id}),[]),(0,f.useEffect)((function(){var e=sessionStorage.getItem("pathArray");if(e){var t=e.split(",").join("/"),n=0===t.indexOf("/")?t.substr(1):t;N(n)}}),[]);var P,T=function(){var e=l()(s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.response){e.next=3;break}return O.ZP.info("还未上传完成,无法进行删除操作!"),e.abrupt("return");case 3:return e.next=5,i({type:"shixunsDetail/deleteGitFile",payload:{id:d.id,path:Z?"".concat(Z,"/").concat(t.name):t.name,message:_.getFieldValue("commitMessage")||"删除了".concat(Z?"".concat(Z,"/").concat(t.name):t.name),secret_repository:!r||null}});case 5:0===e.sent.status&&(k(w.filter((function(e){return e.uid!==t.uid}))),O.ZP.info("删除成功"));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),F={height:300,multiple:!0,withCredentials:!0,openFileDialogOnClick:Boolean(_.getFieldValue("commitMessage")),data:(P=l()(s()().mark((function e(){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=l()(s()().mark((function e(n,i){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:setTimeout(l()(s()().mark((function e(){var i;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_.getFieldsValue();case 2:e.sent,i=a()(a()({},{path:o.defaultPath?o.defaultPath:"",message:v.commitMessage||"上传了".concat(t)}),r?{}:{secret_repository:!0}),n(i);case 5:case"end":return e.stop()}}),e)}))),200);case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(){return P.apply(this,arguments)}),fileList:w,method:"post",action:"".concat(ae.Z.API_SERVER,"/api/shixuns/").concat(g.current,"/upload_git_file.json"),onChange:function(e){if(t=e.file.name,"done"===e.file.status||"uploading"===e.file.status){var i,a,r,s;if(k(e.fileList),!e.file.response)return;if(0===(null===(i=e.file.response)||void 0===i?void 0:i.status))return void(null!=n&&null!==(s=n.detail)&&void 0!==s&&s.copy_for_exercise||(O.ZP.success("上传成功!"),_.validateFields()));k(w.filter((function(t){return t.uid!==e.file.uid}))),(null===(a=e.file.response)||void 0===a?void 0:a.message)&&O.ZP.info(null===(r=e.file.response)||void 0===r?void 0:r.message)}},onRemove:T,beforeUpload:function(e){return t=e.name,!(e.size/1024/1024>50)||(O.ZP.info("文件大小必须小于50MB"),!1)}},R=function(){var e=l()(s()().mark((function e(){var l,c,u,p,f,h,m=arguments;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c=m.length>0&&void 0!==m[0]&&m[0],u=m.length>1&&void 0!==m[1]?m[1]:1,p=a()(a()({},{path:o.defaultPath?o.defaultPath:"",message:v.commitMessage||"上传了".concat(t)}),r?{}:{secret_repository:!0}),f=s()().mark((function e(){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).append("file",w[h].originFileObj),t.append("sync_origin_shixun",c.toString()),Object.keys(p).forEach((function(e){t.append(e,p[e].toString())})),e.next=6,(0,re.ZP)("/api/shixuns/".concat(g.current,"/upload_git_file.json"),{method:"post",body:t},!0);case 6:e.sent;case 7:case"end":return e.stop()}}),e)})),h=0;case 5:if(!(h0&&void 0!==n[0]?n[0]:"",e.next=3,(0,_e.Zt)({id:j.id,secret_dir_path:t});case 3:e.sent&&Ge(t);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Xe=function(e){var t;return(0,J.jsxs)(R.Z,{className:pe.menu,onClick:function(t){switch(oe(e.path||""),t.key){case"1":(0,be.L9)(["实践项目","设置","代码仓库","新建文件"]),T(!0);break;case"2":(0,be.L9)(["实践项目","设置","代码仓库","新建文件夹"]),Q(!0);break;case"3":(0,be.L9)(["实践项目","设置","代码仓库","上传"]),ne(!0);break;case"4":(0,be.L9)(["实践项目","设置","代码仓库","重命名"]),V(!0);break;case"5":(0,be.L9)(["实践项目","设置","代码仓库","删除"]),st(e.path,e.name,e);break;case"6":(0,be.L9)(["实践项目","设置","代码仓库","复制路径"]),ot(e)}},children:[("topTree"===e.type||"tree"===e.type)&&(0,J.jsx)(R.Z.Item,{children:"新建文件"},"1"),("topTree"===e.type||"tree"===e.type)&&(0,J.jsx)(R.Z.Item,{children:"新建文件夹"},"2"),("topTree"===e.type||"tree"===e.type)&&(0,J.jsx)(R.Z.Item,{children:"上传"},"3"),"topTree"!==e.type&&"tree"!==e.type&&(null==h||null===(t=h.detail)||void 0===t?void 0:t.public)<2&&(0,J.jsx)(R.Z.Item,{children:"重命名"},"4"),"topTree"!==e.type&&(0,J.jsx)(G.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(y?"":"secret/").concat(null==e?void 0:e.path),onCopy:function(){return O.ZP.success("复制成功")},children:(0,J.jsx)(R.Z.Item,{children:(0,J.jsx)(J.Fragment,{children:"复制路径"})},"6")}),"topTree"!==e.type&&(0,J.jsx)(R.Z.Item,{children:"删除"},"5")]})},Ye=function(e,t){return e.map((function(e){return e.path=""==t?t+e.name:t+"/"+e.name,e.title=(0,J.jsxs)(E.Z,{className:"font14",children:[(0,J.jsx)(L.Z,{flex:"1",children:(0,J.jsxs)(E.Z,{children:["blob"===e.type&&(0,J.jsx)(L.Z,{flex:"20px",style:{marginLeft:-20},children:(0,J.jsx)("span",{className:"iconfont icon-wenjian11 font12"})}),(0,J.jsx)(L.Z,{flex:"1",children:(0,J.jsx)("span",{className:" multi_ellipsis1",children:e.name})})]})}),(0,J.jsx)(L.Z,{children:("blob"===e.type||"tree"===e.type)&&(0,J.jsx)(I.Z,{dropdownRender:function(){return Xe(e)},className:pe.ellipsis,children:(0,J.jsx)("i",{className:"iconfont icon-gengduo2 c-555a88"})})})]}),e.disableCheckbox=C&&C!==e.name,e.className="tree"===e.type?pe.pl23:"",e.checkable="tree"!==e.type,e.isLeaf="tree"!==e.type,e.children="tree"===e.type&&[],e.key=e.path,e}))},$e=function(e){x({type:"practiceSetting/setSideBarTabs",payload:{selectPath:e}})},et=function(){var e=l()(s()().mark((function e(t,n){var i;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.split("/"),e.next=3,it(se);case 3:setTimeout((function(){$e(t),ue=[i[0]||""],ve=[t],we(z()(ve)),fe(z()(ue))}),150);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),tt=function(e,t){if(""==t)_=z()(e),b(z()(e));else{var n=nt(_,t,e);_=n,b([].concat(n))}};function nt(e,t,n){return e.map((function(e){return e.key===t?(e.children=z()(n),a()({},e)):e.children?a()(a()({},e),{},{children:nt(e.children,t,n)}):e}))}var it=function(){var e=l()(s()().mark((function e(){var t,n,i,a,r,o=arguments;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:"",e.next=3,x({type:y?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:j.id,path:t}});case 3:return(n=e.sent)&&(null!==(i=n.trees)&&void 0!==i&&i.length?(r=Ye(z()(n.trees),t),tt(r,t),Pe(n.trees||[]),Me(t||""),console.log("handleGetRepository:",r,t),setTimeout((function(){return console.log(_,n.trees,t,999999)}),2e3)):""==t&&b([]),Le((null===(a=n.commits)||void 0===a?void 0:a[0])||{})),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),at=function(){var e=l()(s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=l()(s()().mark((function e(n,i){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.children.length&&n(),ze(t.path),e.next=4,it(t.path);case 4:n();case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),rt=function(){var e=l()(s()().mark((function e(t,n){var i,a;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("handleSelectTree",t,n.nativeEvent.target.nodeName,n),i=function(){$e(n.node.path),t=[n.node.path],we(z()(t))},"svg"!==n.nativeEvent.target.nodeName&&"LI"!==n.nativeEvent.target.nodeName&&"I"!==n.nativeEvent.target.nodeName){e.next=4;break}return e.abrupt("return");case 4:"blob"===n.node.type&&(null!=g&&null!==(a=g.sideBar)&&void 0!==a&&a.confirmLeave?B.Z.confirm({title:"离开此页提示",content:"系统可能不会保存您所做的更改。",okText:"离开",cancelText:"取消",onOk:function(){i(),x({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):i());case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),st=function(e,t,n){var i;B.Z.confirm({centered:!0,title:"确认需要删除该文件".concat(n.children?"夹":"","?"),okText:"确定",cancelText:"取消",onOk:(i=l()(s()().mark((function t(){var n,i,a;return s()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,x({type:"shixunsDetail/deleteGitFile",payload:{id:j.id,path:e,message:"删除".concat(e),secret_repository:!y||null}});case 2:if(n=t.sent,i=e.split("/"),0!==(null==n?void 0:n.status)){t.next=20;break}return O.ZP.info("删除成功"),i.splice(i.length-1,1),t.next=9,it(i.length>1?i.join("/"):"");case 9:if(null==(a=t.sent)||!a.trees){t.next=13;break}t.next=16;break;case 13:return i.splice(i.length-1,1),t.next=16,it(i.length>1?i.join("/"):"");case 16:return $e(""),t.abrupt("return",!0);case 20:-3===(null==n?void 0:n.status)?B.Z.confirm({title:"删除失败",centered:!0,content:(0,J.jsxs)("div",{children:["该文件“",e,"”已经被任务关卡的学员任务文件或评测执行文件使用,请先修改任务关卡中评测设置的文件路径后再删除。"]}),okText:"前往修改",cancelText:"取消",onOk:function(){window.location.href="/shixuns/".concat(j.id,"/edit/").concat(null==n?void 0:n.message,"/tab=2")}}):-4===(null==n?void 0:n.status)&&B.Z.confirm({title:"删除失败",centered:!0,content:(0,J.jsx)("div",{children:null==n?void 0:n.message}),okText:"前往修改",cancelText:"取消",onOk:function(){window.location.href="/shixuns/".concat(j.id,"/edit?tabId=service")}});case 21:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})})},ot=function(e){console.log(e,"item")},lt=function(){var e=l()(s()().mark((function e(t,n){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("handleExpand",n),"svg"!==n.nativeEvent.target.nodeName&&"path"!==n.nativeEvent.target.nodeName&&"LI"!==n.nativeEvent.target.nodeName){e.next=5;break}return e.abrupt("return",!0);case 5:return e.next=7,at(n.node);case 7:ue.includes(n.node.path)?ue.splice(ue.indexOf(n.node.path),1):ue.push(n.node.path);case 8:fe(z()(ue));case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),ct=function(){Oe(!1),localStorage.warehouseHideTip=!0},ut=function(){var e=l()(s()().mark((function e(t){var n,i,a,r,o;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a="",e.t0=y,e.next=!0===e.t0?4:!1===e.t0?9:11;break;case 4:return a="开启版本库",r="开启",o="不开启",i=(0,J.jsx)("div",{children:"新建实践题关卡时,需要使用代码仓库;如果只有选择题关卡,则不需要代码仓库。代码仓库启用后,将无法关闭。"}),e.abrupt("break",11);case 9:return null!=h&&null!==(n=h.detail)&&void 0!==n&&n.secret_repository?(a="关闭私密代码仓库",r="确定",o="取消",i=(0,J.jsx)("div",{children:"关闭私密代码仓库后,已创建的私密代码仓库及其内容,将被删除。确认要关闭私密代码仓库?"})):(a="开启私密代码仓库",r="不使用",o="使用",i=(0,J.jsx)("div",{children:"私密版本库的文件对学员始终隐藏,无法访问查看。适用于命令行、图形化桌面两类实训,其他类型实训不建议使用私密版本库。"})),e.abrupt("break",11);case 11:if(y||!(0,je.gy)(x,"不能开启/关闭私密代码仓库")){e.next=13;break}return e.abrupt("return");case 13:B.Z.confirm({title:a,okText:r,cancelText:o,content:i,onOk:function(){var e;(0,be.L9)(["实践项目","设置","代码仓库",a]),(y||null!=h&&null!==(e=h.detail)&&void 0!==e&&e.secret_repository)&&dt(t)},onCancel:function(){var e;y||null!=h&&null!==(e=h.detail)&&void 0!==e&&e.secret_repository||dt(t)}});case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),dt=function(){var e=l()(s()().mark((function e(t){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!y){e.next=6;break}return e.next=3,(0,_e.h4)(a()({},j));case 3:x({type:"practiceSetting/getCommonData",payload:a()({},j)}),e.next=8;break;case 6:return e.next=8,(0,_e.K0)(a()(a()({},j),{},{is_secret_repository:t}));case 8:it(),x({type:"shixunsDetail/getShixunsDetail",payload:{id:j.id}});case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),pt=function(){var e=l()(s()().mark((function e(t){var n,i;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log(t),t.node.key,t.dragNode.key,n=t.node.pos.split("-"),t.dropPosition-Number(n[n.length-1]),"tree"!==t.dragNode.type){e.next=8;break}return O.ZP.warning("不支持文件夹移动目录"),e.abrupt("return");case 8:if("tree"===t.node.type){e.next=11;break}return O.ZP.warning("未移动文件目录位置"),e.abrupt("return");case 11:return e.next=13,x({type:"shixunsDetail/moveGitFile",payload:a()({id:j.id,from:t.dragNode.path,to:t.node.path+"/"+t.dragNode.name,message:"".concat(t.dragNode.path," move to ").concat(t.node.path+"/"+t.dragNode.name," ")},y?{}:{secret_repository:!0})});case 13:if(0!==e.sent.status){e.next=26;break}return $e(""),e.next=18,it("");case 18:i=0;case 19:if(!(i0&&void 0!==c[0]&&c[0],r=c.length>1&&void 0!==c[1]?c[1]:1,e.next=4,ie({type:"shixunsDetail/updateRepositoryFile",payload:{id:Be.id,path:null==re||null===(t=re.fileContent)||void 0===t||null===(t=t.params)||void 0===t?void 0:t.path,content:ve,secret_repository:!be||null,sync_origin_shixun:i}});case 4:null!=(o=e.sent)&&o.content&&(null!=re&&null!==(l=re.detail)&&void 0!==l&&l.copy_for_exercise||O.ZP.success("保存成功"),ie({type:"practiceSetting/setSideBarTabs",payload:a()(a()({},ae.sideBar),{},{confirmLeave:!1})})),null!=re&&null!==(n=re.detail)&&void 0!==n&&n.copy_for_exercise&&(0,$.m)(ie,re,Be.id,r);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,J.jsxs)("div",{className:m,children:[(0,J.jsx)("div",{className:v,children:(0,J.jsxs)(E.Z,{align:"middle",className:"w100 c-white",style:{height:60},children:[(0,J.jsx)(L.Z,{flex:"1",children:(0,J.jsxs)(E.Z,{align:"middle",children:[(0,J.jsx)(L.Z,{children:(0,J.jsx)(I.Z,{dropdownRender:function(){return Ae},className:h,children:(0,J.jsxs)("span",{className:"font16 c-white current ml20",children:[Me.find((function(e){return e.id===le})).name," ",(0,J.jsx)("span",{style:{color:"#B0B5D6"},className:"iconfont icon-sanjiaoxing font12"})]})})}),(0,J.jsx)(L.Z,{flex:"81px",children:(0,J.jsx)("div",{className:k})}),(0,J.jsx)(L.Z,{children:(0,J.jsxs)(T.Z,{className:w,activeKey:pe,onChange:function(e){var t;null!=ae&&null!==(t=ae.sideBar)&&void 0!==t&&t.confirmLeave?B.Z.confirm({title:"离开此页提示",content:"系统可能不会保存您所做的更改。",okText:"离开",cancelText:"取消",onOk:function(){fe(e),ie({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}})}}):(fe(e),ie({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}}))},children:[(0,J.jsx)(Re,{tab:(0,J.jsx)("span",{className:"leaveClick",children:"代码文件"})},"1"),be&&(null==re||null===(r=re.detail)||void 0===r?void 0:r.init_repository)&&(0,J.jsx)(Re,{tab:"提交记录",className:"leaveClick"},"2"),!be&&(null==re||null===(o=re.detail)||void 0===o?void 0:o.secret_repository)&&(0,J.jsx)(Re,{tab:"提交记录",className:"leaveClick"},"2")]})})]})}),(be&&(null==re||null===(c=re.repository)||void 0===c?void 0:c.git_url)||!be&&(null==re||null===(d=re.secretRepository)||void 0===d?void 0:d.git_url))&&(0,J.jsx)(J.Fragment,{children:(0,J.jsxs)(L.Z,{children:[(0,J.jsx)("span",{className:x,children:"仓库地址:"}),(0,J.jsx)("input",{value:be?null==re||null===(U=re.repository)||void 0===U?void 0:U.git_url:null==re||null===(z=re.secretRepository)||void 0===z?void 0:z.git_url}),(0,J.jsx)(G.CopyToClipboard,{text:be?null==re||null===(V=re.repository)||void 0===V?void 0:V.git_url:null==re||null===(q=re.secretRepository)||void 0===q?void 0:q.git_url,onCopy:function(){return O.ZP.success("复制成功")},children:(0,J.jsx)(F.Z,{placement:"topLeft",title:"点击复制版本库",children:(0,J.jsx)("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"})})})]})})]})}),(0,J.jsxs)("div",{className:g,style:{overflow:"auto"},children:["1"===pe&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("aside",{className:y,children:(0,J.jsx)(M.Z,{spinning:!!ne.effects["shixunsDetail/getRepository"],wrapperClassName:"".concat(b," ").concat(P),children:(0,J.jsx)(Ze,{setTreeData:Le,treeData:Ee,activeKey:le,isRepository:be})})}),(0,J.jsxs)("aside",{className:_,ref:Ie,children:[""!==(null==ae||null===(K=ae.sideBar)||void 0===K?void 0:K.selectPath)&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(M.Z,{spinning:!!ne.effects["shixunsDetail/getFileContent"],wrapperClassName:b,children:[(0,J.jsx)("div",{className:Z,children:(0,J.jsxs)(E.Z,{align:"middle",className:"w100",children:[(0,J.jsx)(L.Z,{children:(0,J.jsx)("span",{className:"iconfont icon-daimacangku2 c-white"})}),(0,J.jsx)(L.Z,{flex:"40px",children:(0,J.jsx)("div",{className:k,style:{marginLeft:20}})}),(0,J.jsx)(L.Z,{className:N,children:Ce.map((function(e,t){return(0,J.jsx)("span",{className:"c-blue",children:e})}))})]})}),(0,J.jsx)("div",{className:ne.effects["shixunsDetail/getFileContent"]?"hide":"show",children:(0,J.jsx)(Fe.Z,{className:"darkBlue",style:{top:66,height:"calc(100% - 60px)",position:"absolute",zIndex:1},filename:null==re||null===(H=re.fileContent)||void 0===H?void 0:H.filename,type:"office"===(null==re||null===(W=re.fileContent)||void 0===W?void 0:W.file_type)?"download":null==re||null===(Q=re.fileContent)||void 0===Q?void 0:Q.file_type,data:ve,monacoEditor:{value:ve,language:null==re||null===(X=re.fileContent)||void 0===X?void 0:X.language,onChange:function(e){return function(e){xe(e);var t=-1;t=e===ge.current?0:1,ie({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!!t}})}(e)},options:{fontSize:14}}})})]}),"txt"===(null==re||null===(Y=re.fileContent)||void 0===Y?void 0:Y.file_type)&&(0,J.jsx)(E.Z,{align:"middle",justify:"center",className:S,children:(0,J.jsxs)(L.Z,{children:[(0,J.jsx)(A.ZP,{type:"primary",size:"middle",ghost:!0,onClick:function(){D.history.push("/shixuns/".concat(Be.id,"/challenges"))},children:"取消"}),(0,J.jsx)(A.ZP,{type:"primary",size:"middle",className:"ml40",onClick:function(e){var t,n;null!=re&&null!==(t=re.detail)&&void 0!==t&&t.is_fork_from_creator&&null!=re&&null!==(n=re.detail)&&void 0!==n&&n.copy_for_exercise?ie({type:"classroomList/setActionTabs",payload:{key:"同步修改",type:"wareHouse",fn:function(e,t){Ue(e,t)}}}):Ue()},children:"提交"})]})})]}),""==(null==ae||null===(ee=ae.sideBar)||void 0===ee?void 0:ee.selectPath)&&(null==re||null===(te=re.detail)||void 0===te?void 0:te.init_repository)&&(0,J.jsxs)("div",{className:j,children:[(0,J.jsx)("img",{src:we.x7,width:"258"}),(0,J.jsx)("br",{}),(0,J.jsxs)("span",{className:"c-grey-c",children:[!(null==Ee||!Ee.length)&&"在左侧代码仓库区域点击目录打开文件",!(null!=Ee&&Ee.length)&&"请先在左侧上传文件或新建文件!"]})]})]})]}),"2"===pe&&(0,J.jsx)("div",{className:C,children:(0,J.jsx)(Te,{isRepository:be})})]})]})}))},19465:function(e,t,n){"use strict";n.d(t,{S:function(){return d},m:function(){return p}});var i=n(7557),a=n.n(i),r=n(41498),s=n.n(r),o=n(21082),l=n(8591),c=n(43418),u=n(37712),d=function(e){var t=document.createElement("textarea");return t.value=e,t.value},p=function(){var e=s()(a()().mark((function e(t,n,i,r,s){var d,p,f;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({type:"shixunsDetail/saveCopyForExercise",payload:{id:i,save_type:r}});case 2:d=e.sent,1===r?(0==(null==d?void 0:d.status)&&l.ZP.success("保存成功"),null!=d&&null!==(p=d.data)&&void 0!==p&&p.exists_same_shixun_name?t({type:"classroomList/setActionTabs",payload:{key:"重名修改",name:null==d||null===(f=d.data)||void 0===f?void 0:f.shixun_name}}):t({type:"classroomList/setActionTabs",payload:{}})):(t({type:"classroomList/setActionTabs",payload:{}}),0===(null==d?void 0:d.status)&&c.Z.info({title:"提示",width:460,icon:null,centered:!0,content:(0,u.jsx)("div",{children:(0,u.jsx)("div",{children:"实训同步修改完成,请验证实训是否可以正常使用。"})}),okText:"前往原实训",onOk:function(){var e;(0,o.xg)("/shixuns/".concat(null==n||null===(e=n.detail)||void 0===e||null===(e=e.fork_from)||void 0===e?void 0:e.fork_identifier,"/challenges"))}}));case 4:case"end":return e.stop()}}),e)})));return function(t,n,i,a,r){return e.apply(this,arguments)}}()},25769:function(e,t,n){"use strict";var i=n(98040),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,r,s,o,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(s=i(),o=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(i){if(i.stopPropagation(),t.format)if(i.preventDefault(),void 0===i.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=a[t.format]||a.default;window.clipboardData.setData(r,e)}else i.clipboardData.clearData(),i.clipboardData.setData(t.format,e);t.onCopy&&(i.preventDefault(),t.onCopy(i.clipboardData))})),document.body.appendChild(c),o.selectNodeContents(c),l.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(i){n&&console.error("unable to copy using execCommand: ",i),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(i){n&&console.error("unable to copy using clipboardData: ",i),n&&console.error("falling back to prompt"),r=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(r,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(o):l.removeAllRanges()),c&&document.body.removeChild(c),s()}return u}},83145:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var i=r(n(59301)),a=r(n(25769));function r(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e,t){if(null==e)return{};var n,i,a=function(e,t){if(null==e)return{};var n,i,a={},r=Object.keys(e);for(i=0;i=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n4?parseFloat(e):5};function j(){try{return window.self!==window.top}catch(e){return!0}}function A(){return(!t.hasOwnProperty("screenshotGenerator")||!t.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,n){c=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."):(s=e,G(e,n))},e.getHTML5CodebaseVersion=function(){return m},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,o="auto",a=t.id,r=!1,s=0;s=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 B=function(e){return e&&"false"!==e},N=function(n,t,i){y(m)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var a=document.createElement("div");a.classList.add("appletParameters","notranslate");var r=t.width,l=t.height;if(t.disableAutoScale=void 0===t.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():t.disableAutoScale,void 0!==t.width)if(y(m)<=4.4)B(t.showToolBar)&&(t.height-=7),B(t.showAlgebraInput)&&(t.height-=37),t.width<605&&B(t.showToolBar)&&(t.width=605,r=605);else{var d=100;(B(t.showToolBar)||B(t.showMenuBar))&&(t.hasOwnProperty("customToolBar")&&(t.customToolbar=t.customToolBar),d=B(t.showMenuBar)?245:155),r=5?(t.appletOnLoad=function(e){var t=n.querySelector(".ggb_preview");t&&t.parentNode.removeChild(t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},x||w.appendChild(j)):a.appendChild(j),w.appendChild(a),x||n.appendChild(w),setTimeout((function(){e.resize()}),1)}function A(e,n){n&&"function"==typeof n.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,n.appletOnLoad):renderGGBElement(e),F("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",n)}function S(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){A(e.article,e.params)})),html5AppletsToProcess=null)},y(m)<5&&(e.className+=" geogebraweb")):A(e,n)}if(o){scriptLoadStarted=!0;for(var _=0;_0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(a).append(l),window.dispatchEvent(new Event("resize"))):N(o,n,!1),window.GGBT_wsf_view.launchFullScreen(a)}else h=i,N(e,n,!1);if(!window.GGBT_wsf_view)for(r=0;re/4*3&&(l=e/4*3),s=l/5.8,r.setAttribute("src",x),r.setAttribute("width",l),r.setAttribute("height",s);var d=(e-l)/2,u=(n-s)/2;r.style.left=d+"px",r.style.top=u+"px",o.appendChild(r)}return o.appendChild(c),o},E=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},D=["web","webSimple","web3d","tablet","tablet3d","phone"],G=function(e,n){if(m=e,n)R(m,!0);else{var a,r,l=!o;if(l){var s=y(m);!isNaN(s)&&s<4.4&&(l=!1)}a="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var d in r=c>0?m:0===c?a+m:"https://www.geogebra.org/apps/5.2.814.0/",D)if(m.slice(-1*D[d].length)===D[d]||m.slice(-1*(D[d].length+1))===D[d]+"/")return void R(r,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||B(t.showToolBar)||B(t.showMenuBar)||B(t.showAlgebraInput)||B(t.enableRightClick)||t.appName&&"classic"!=t.appName?r+="web3d/":r+="webSimple/",R(r,!1)}},R=function(e,n){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===n&&(n=-1===e.indexOf("http")),p=n,g="web.nocache.js",v=!1;var t=f.split("/");t.length>1&&(n||"webSimple"!==t[t.length-2]?D.indexOf(t[t.length-2])>=0&&(g=t[t.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),t=e.split("/"),"test"===(m=t[t.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var i=parseFloat(m);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),G("5.0",n))}},F=function(e,n){window.console&&window.console.log&&(!n||void 0===n.showLogging||n.showLogging&&"false"!==n.showLogging)&&console.log(e)};function O(){var e=n;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),G(e,!1),null!==c&&R(c,p),l=!0}return void 0!==t.material_id?S(O):O(),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,o){if(e.isScreenshoGenerator)return 1;var a,r=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(a=e.autoHeight)&&"false"!==a,c=function(e,n,t,i,o,a){var r=null;if(null!=a&&""!=a)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+a+" ")>-1){r=l;break}l=l.parentNode}var s=0,c=0,d=0,u=0,f=0,p=0,h=0;if(r)s=r.offsetWidth,c=Math.max(i?r.offsetWidth:0,r.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),d=s):(s=window.innerWidth,c=window.innerHeight,d=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-m.width-m.left,p=d<=480?10:30):(p=m.left,f=d<=480?10:30),u=p+f)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(u=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(u=0,h=40))}return e&&((void 0===t||!t)&&n>0&&n+u1&&(r=!0)),n&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(r=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?a:(o=t(e,n,r,i,e.scaleContainerClass),!r||e.hasOwnProperty("scale")&&1!==a?Math.min(a,o):o)}function o(e){var n=Math.min(window.innerWidth,document.documentElement.clientWidth),t=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(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=o<40?"40px":o+"px",e.style.top=a+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=a<40?"40px":a+"px",e.style.left=o+"px")}return{responsiveResize:function(t,a){var r=t.querySelector(".appletParameters");if(r){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(a.id!==r.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(t)}if(r.parentElement&&/fullscreen/.test(r.parentElement.className))return;var l=i(a,t);e()&&r.setAttribute("data-param-scale",l);for(var s=null,c=0;c=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;tO?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=[],o=[];function a(e){var n=o[e](),t=i[e];if(n in t)return n;var a=[];for(var l in t)a[t[l]]=l;throw r&&r(e,a,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]=a(n));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}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],o=O;o0){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",t=[],i=0;i0&&(n=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+y+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),n}var B=function(e){var n=e.value,t=e.onChange,i=e.action,a=e.data,l=e.className,c=e.maxSize,u=void 0===c?150:c,k=e.title,B=void 0===k?"上传附件":k,N=e.showRemoveModal,C=void 0!==N&&N,T=e.accept,P=void 0===T?"":T,M=e.additionalText,L=e.isDragger,E=e.number,D=void 0===E?1e3:E,G=e.aloneClear,R=void 0!==G&&G,F=e.realTimeRemove,O=void 0===F||F,H=e.uploadText,Z=(0,p.useState)(!1),W=f()(Z,2),z=W[0],I=W[1],U=(0,p.useState)(n||[]),V=f()(U,2),q=V[0],J=V[1],K=(0,p.useState)(1),Q=f()(K,2),X=Q[0],Y=Q[1];(0,p.useEffect)((function(){n&&(1===X&&J(d()(n)),Y(2),D===(null==n?void 0:n.length)&&I(!0))}),[n]);var $,ee=function(){setTimeout((function(){q.pop(),J(d()(q))}),500)},ne={multiple:!0,disabled:z,accept:P,withCredentials:!0,fileList:q,beforeUpload:function(e,n){var t=e.size/1024/1024;return q.concat(n).length>D?(q.pop(),J(d()(q)),m.ZP.error("最多只能上传".concat(D,"个文件")),R?Promise.reject():(ee(),!1)):t=D?I(!0):I(!1),J(d()(q)),q=q.map((function(e){var n,t;null!=e&&null!==(n=e.response)&&void 0!==n&&n.id&&(e.url=null==e||null===(t=e.response)||void 0===t?void 0:t.url);return-1===e.name.indexOf(y)&&(e.name="".concat(e.name).concat(y).concat(j(e.size))),s()({},e)})),console.log("info:",e,q),t(q)):m.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:($=r()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(O){e.next=2;break}return e.abrupt("return",!0);case 2:if(t=function(){var e=r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.response?n.response.id:n.id)){e.next=8;break}return e.next=4,(0,x.JZ)(n.response?n.response.id:n.uid);case 4:return t=e.sent,e.abrupt("return",Promise.resolve(t));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!C){e.next=7;break}return e.abrupt("return",new Promise((function(e,n){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,b.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=r()(o()().mark((function n(){return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t();case 2:n.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return n.stop()}}),n)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,t();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return $.apply(this,arguments)})};return(0,b.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[L&&(0,b.jsxs)(_,s()(s()({},ne),{},{children:[(0,b.jsx)("p",{className:"ant-upload-drag-icon",children:(0,b.jsx)(A.Z,{})}),(0,b.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,b.jsx)("br",{}),"(单个文件最大限制为",u,"MB)"," "]}),M]})),!L&&(0,b.jsxs)(h.Z,s()(s()({},ne),{},{children:[(0,b.jsxs)(v.ZP,{disabled:z,className:"upload_button",children:[(0,b.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),B]}),(0,b.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:H||"(单个文件最大".concat(u,"MB)")})]}))]})}},73145:function(e,n,t){"use strict";t.d(n,{h:function(){return v}});var i=t(82242),o=t.n(i),a=t(79800),r=t.n(a),l=t(59301),s=t(57809),c=t(78241),d=t(3113),u=t(89780),f=t.n(u),p=(t(80443),t(90630),t(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var n=e.value,t=e.onChange,i=e.mode,a=e.options,s=void 0===a?{}:a,c=(0,l.useRef)(),d=(0,l.useState)(),u=r()(d,2),h=u[0],m=u[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var n=e.getValue();t&&t(n)};return h.on("change",e),function(){h.off("change",e)}}}),[h,t]),(0,l.useEffect)((function(){h&&h.setOption("mode",i)}),[h,i]),(0,l.useEffect)((function(){h&&(n===h.getValue()&&""!==n||setTimeout((function(){h.setValue(n||"")}),300))}),[h,n]),(0,l.useEffect)((function(){if(c.current&&!h){var e=f().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}n.Z=function(e){var n=e.callback,t=e.onCancel,i=(0,l.useState)("python"),a=r()(i,2),u=a[0],f=a[1];return(0,p.jsxs)(c.Z,o()(o()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){n(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){f(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(v,{mode:u})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(d.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(d.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))}},16318:function(e,n,t){"use strict";t.d(n,{Z:function(){return ye}});var i=t(91232),o=t.n(i),a=t(79800),r=t.n(a),l=t(85573),s=t.n(l),c=t(59301),d=t(89780),u=t.n(d),f=t(76374),p=(t(80443),t(6313),t(25717),t(99498),t(25419),t(67549),t(38279)),h=t(37712),m=function(e){var n=e.value,t=void 0===n?"":n,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[t]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=t(82242),v=t.n(g),w=[{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 x(e){var n=e.onActionCallback,t=e.title,i=e.icon,o=e.actionName,a=e.className,r=void 0===a?"":a,l=e.children;return(0,h.jsxs)("a",{title:t,className:r,onClick:function(){n(o)},children:[(0,h.jsx)("i",{className:"".concat(i)}),l]})}var b=function(e){var n=e.watch,t=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,a=e.fullScreen,r=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(n?"关闭实时预览":"开启实时预览"),icon:"".concat(n?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,n){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(x,v()(v()({},e),{},{onActionCallback:o})):(0,h.jsx)("span",{className:"v-line"})},n)})),t?(0,h.jsx)("li",{children:(0,h.jsx)(x,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(x,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(x,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,r&&(0,h.jsx)("li",{children:(0,h.jsx)(x,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(r),onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(x,{icon:"".concat(a?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:a?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},y=t(24808),j=t(78241),A=t(92832),S=t(3113),_={labelCol:{span:4},wrapperCol:{span:20}},k=function(e){var n=e.callback,t=e.onCancel;return(0,h.jsxs)(j.Z,v()(v()({},_),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},style:{width:500},children:[(0,h.jsx)(j.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(A.Z,{})}),(0,h.jsx)(j.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(A.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))},B=t(73145),N=t(28486),C=t(95237),T=t(36709),P=function(e){var n=e.callback,t=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var a=i.toDataURL("image/png");return(0,h.jsx)(C.Z,{style:{height:"100vh"},children:(0,h.jsx)(T.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})})},M=t(7557),L=t.n(M),E=t(41498),D=t.n(E),G=t(37205),R=t.n(G),F=t(12378);function O(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(O,go.CommandHandler),O.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},O.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")},O.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")},O.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")},O.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")},O.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")}},O.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")}},O.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;i0){for(var i=r.elt(l-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 o;if(n.isTreeExpanded&&!n.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(n).first())&&e.select(o);else for(;null!==n;){var a,r,l;if(null===(a=n.findTreeParentNode()))break;if((l=(r=this._sortTreeChildrenByY(a)).indexOf(n))i.y?1:t.xi.x?1:0})),n},O.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},O.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(O.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(O.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 H=O,Z=(t(41034),t(85160)),W=t(43418),z=t(43604),I=t(18030),U="myPaletteDiv___Xjz2I",V="maxH60___Pd4Re";window.go=F;var q=function(e){var n=e.onCancel,t=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),a=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),d=(0,c.useState)(0),u=r()(d,2),f=u[0],p=u[1],m=function(){var e=D()(L()().mark((function e(){var n,o;return L()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.current.makeImage(),e.next=3,(0,I.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:n.src}});case 3:o=e.sent,t({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(V," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(W.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(C.Z,{children:[(0,h.jsx)(z.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(z.Z,{onClick:function(){l.current=!l.current,p(f+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:n,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:U,ref:a})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(Z.FI,{initDiagram:function(){var e=F.GraphObject.make,n="#ff3333",t="#3358ff",r="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",d="#ffffff",u="#000000",f="#fffcd5",p="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function x(n,t){var i=function(e,t){e.handled=!0,e.diagram.model.commit((function(i){var o=t.part.adornedPart,a=(new F.Point).setRectSpot(o.actualBounds,n);a.subtract(o.location),a.scale(2,2),a.x+=130*Math.sign(a.x),a.y+=130*Math.sign(a.y),a.add(o.location),a.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var r=i.copyNodeData(o.data);i.setGroupKeyForNodeData(r,i.getGroupKeyForNodeData(o.data)),i.addNodeData(r);var l={from:o.key,to:i.getKeyForNodeData(r)};i.addLinkData(l);var s=e.diagram.findNodeForData(r);s.location=a,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(F.Shape,{figure:t,alignment:n,alignmentFocus:n.opposite(),width:n.equals(F.Spot.Top)||n.equals(F.Spot.Bottom)?25:18,height:n.equals(F.Spot.Top)||n.equals(F.Spot.Bottom)?18:25,fill:"orange",stroke:d,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(F.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 j(n,t){return t||(t="color"),e(F.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 A(){return[e("ContextMenuButton",e(F.Panel,"Horizontal",j(d,"fill"),j(f,"fill"),j(p,"fill"),j(h,"fill"))),e("ContextMenuButton",e(F.Panel,"Horizontal",j(g,"fill"),j(v,"fill"),j(m,"fill"),j(w,"fill")))]}function S(){return[e("ContextMenuButton",e(F.Panel,"Horizontal",j(u),j(r),j(t),j(n))),e("ContextMenuButton",e(F.Panel,"Horizontal",j(d),j(l),j(s),j(c)))]}function _(n,t){return t||(t="thickness"),e(F.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 k(n,t){return t||(t="dash"),e(F.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 B(){return[e("ContextMenuButton",e(F.Panel,"Horizontal",_(1),_(2),_(3),_(4))),e("ContextMenuButton",e(F.Panel,"Horizontal",k(null),k([2,4]),k([4,4])))]}function N(n,t){return t||(t="figure"),e(F.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 C(n){return e(F.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(n+4).toString()+" H3"})}function T(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(F.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 P(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",F.Spot.stringify(F.Spot.AllSides)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(F.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 M(n,t){var i=0,o=F.Spot.RightSide;n.equals(F.Spot.Top)?(i=270,o=F.Spot.TopSide):n.equals(F.Spot.Left)?(i=180,o=F.Spot.LeftSide):n.equals(F.Spot.Bottom)&&(i=90,o=F.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",F.Spot.stringify(o)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(F.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 F.Diagram(o.current,{padding:20,grid:e(F.Panel,"Grid",e(F.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(F.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(H),"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(F.Node,"Auto",{locationSpot:F.Spot.Center,locationObjectName:"SHAPE",desiredSize:new F.Size(120,60),minSize:new F.Size(40,40),resizable:!0,resizeCellSize:new F.Size(10,10),rotatable:!0},new F.Binding("location","loc",F.Point.parse).makeTwoWay(F.Point.stringify),new F.Binding("desiredSize","size",F.Size.parse).makeTwoWay(F.Size.stringify),e(F.Shape,{name:"SHAPE",fill:d,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:F.Spot.AllSides,toSpot:F.Spot.AllSides},new F.Binding("figure"),new F.Binding("fill"),new F.Binding("stroke","borderColor"),new F.Binding("strokeWidth","thickness"),new F.Binding("strokeDashArray","dash")),e(F.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(F.TextBlock,{margin:1,textAlign:"center",overflow:F.TextBlock.OverflowEllipsis,editable:!0},new F.Binding("text").makeTwoWay(),new F.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(F.Panel,"Vertical",{maxSize:new F.Size(200,NaN)},e(F.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new F.Binding("text")),e(F.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new F.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(F.Adornment,"Spot",e(F.Placeholder,{padding:10}),x(F.Spot.Top,"TriangleUp"),x(F.Spot.Left,"TriangleLeft"),x(F.Spot.Right,"TriangleRight"),x(F.Spot.Bottom,"TriangleDown"),b({alignment:new F.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(F.Panel,"Horizontal",N("Rectangle"),N("RoundedRectangle"),N("Ellipse"),N("Diamond"))),e("ContextMenuButton",e(F.Panel,"Horizontal",N("Parallelogram2"),N("ManualOperation"),N("Procedure"),N("Cylinder1"))),e("ContextMenuButton",e(F.Panel,"Horizontal",N("Terminator"),N("CreateRequest"),N("Document"),N("TriangleDown"))),A(),S(),B()),i.current.groupTemplate=e(F.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:F.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 F.Binding("location","loc",F.Point.parse).makeTwoWay(F.Point.stringify),e(F.Panel,"Auto",{name:"BODY"},e(F.Shape,{parameter1:10,fill:d,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:F.Spot.AllSides,toSpot:F.Spot.AllSides},new F.Binding("fill"),new F.Binding("stroke","color"),new F.Binding("strokeWidth","thickness"),new F.Binding("strokeDashArray","dash")),e(F.Placeholder,{background:"transparent",margin:20})),e(F.TextBlock,{alignment:F.Spot.Top,alignmentFocus:F.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new F.Binding("text"),new F.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(F.Adornment,"Spot",e(F.Panel,"Auto",e(F.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(F.Placeholder,{margin:1.5})),b({alignment:F.Spot.TopRight,alignmentFocus:F.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",A(),S(),B()),i.current.linkTemplate=e(F.Link,{layerName:"Foreground",routing:F.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new F.Binding("fromSpot","fromSpot",F.Spot.parse),new F.Binding("toSpot","toSpot",F.Spot.parse),new F.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new F.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new F.Binding("points").makeTwoWay(),e(F.Shape,{strokeWidth:2},new F.Binding("stroke","color"),new F.Binding("strokeWidth","thickness"),new F.Binding("strokeDashArray","dash")),e(F.Shape,{segmentIndex:0,segmentOffset:new F.Point(15,0),segmentOrientation:F.Link.OrientAlong,alignmentFocus:F.Spot.Right,figure:"circle",width:10,strokeWidth:0},new F.Binding("fill","color"),new F.Binding("visible","dir",(function(e){return 1===e}))),e(F.Shape,{segmentIndex:-1,segmentOffset:new F.Point(-10,6),segmentOrientation:F.Link.OrientPlus90,alignmentFocus:F.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new F.Binding("fill","color"),new F.Binding("visible","dir",(function(e){return e>=1})),new F.Binding("width","thickness",(function(e){return 7+3*e})),new F.Binding("height","thickness",(function(e){return 7+3*e})),new F.Binding("segmentOffset","thickness",(function(e){return new F.Point(-15,4+1.5*e)}))),e(F.Shape,{segmentIndex:0,segmentOffset:new F.Point(15,-6),segmentOrientation:F.Link.OrientMinus90,alignmentFocus:F.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new F.Binding("fill","color"),new F.Binding("visible","dir",(function(e){return 2===e})),new F.Binding("width","thickness",(function(e){return 7+3*e})),new F.Binding("height","thickness",(function(e){return 7+3*e})),new F.Binding("segmentOffset","thickness",(function(e){return new F.Point(-15,4+1.5*e)}))),e(F.TextBlock,{alignmentFocus:new F.Spot(0,1,-4,0),editable:!0},new F.Binding("text").makeTwoWay(),new F.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(F.Adornment,e(F.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:C(2)},new F.Binding("pathPattern","thickness",C)),b({alignmentFocus:new F.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",S(),B(),e("ContextMenuButton",e(F.Panel,"Horizontal",T(0),T(1),T(2))),e("ContextMenuButton",e(F.Panel,"Horizontal",e(F.Panel,"Spot",P(!1),M(F.Spot.Top,!1),M(F.Spot.Left,!1),M(F.Spot.Right,!1),M(F.Spot.Bottom,!1)),e(F.Panel,"Spot",{margin:new F.Margin(0,0,0,2)},P(!0),M(F.Spot.Top,!0),M(F.Spot.Left,!0),M(F.Spot.Right,!0),M(F.Spot.Bottom,!0))))),new F.Palette(a.current,{maxSelectionCount:1,linkTemplate:e(F.Link,{locationSpot:F.Spot.Center,selectionAdornmentTemplate:e(F.Adornment,"Link",{locationSpot:F.Spot.Center},e(F.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(F.Shape,{toArrow:"Standard",stroke:null}))},{routing:F.Link.AvoidsNodes,curve:F.Link.JumpOver,corner:5,toShortLength:4},new F.Binding("points"),e(F.Shape,{isPanelMain:!0,strokeWidth:2}),e(F.Shape,{toArrow:"Standard",stroke:null})),model:new F.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(R()(F.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(F.Node,"Auto",{locationSpot:F.Spot.Center},new F.Binding("location","location",F.Point.parse).makeTwoWay(F.Point.stringify),e(F.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 F.Binding("stroke").makeTwoWay(),new F.Binding("fill").makeTwoWay(),new F.Binding("figure")),e(F.TextBlock,{margin:new F.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new F.Size(16,16),maxSize:new F.Size(10,NaN),textAlign:"center",editable:!0},new F.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(F.Panel,"Grid",e(F.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(F.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,h.jsx)("div",{ref:o})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},J=t(5112),K=t(94001),Q=J.ZP.Group,X={margin:"0 8px"},Y=function(e){var n=e.callback,t=e.onCancel;return(0,h.jsxs)(j.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){n(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(j.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(K.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(j.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(K.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(j.Z.Item,{name:"align",children:(0,h.jsxs)(Q,{children:[(0,h.jsx)(J.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(J.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(J.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(J.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:t,children:"取消"})]})]})},$=t(78673),ee=t(57932),ne=t.n(ee),te=(0,c.forwardRef)((function(e,n){var t=e.use3d,i=e.width,o=e.height,a=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),d=(0,c.useState)(!1),u=r()(d,2),f=u[0],p=u[1],m=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(ne())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return a&&a(e),e};return(0,c.useEffect)((function(){m.current.appName=f?"3D":"graphing",s.current.inject("applet_container")}),[f]),(0,c.useEffect)((function(){p(t)}),[t]),(0,c.useImperativeHandle)(n,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(C.Z,{align:"middle",children:[(0,h.jsx)(z.Z,{flex:1,children:(0,h.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,h.jsx)(z.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=t(36761),oe=t(92723),ae=t(8591),re="link",le="upload-image",se="add-flowchart",ce="draw-image",de="code-block",ue="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},he=t(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",xe=s()(s()({},we+"-B","bold"),we+"-I","italic"),be=s()(s()(s()(s()(s()(s()(s()(s()({},re,"添加链接"),de,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),ue,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),ye=function(e){var n=e.defaultValue,t=void 0===n?"":n,i=e.onChange,a=e.width,l=void 0===a?"100%":a,d=e.height,g=void 0===d?400:d,v=e.miniToolbar,w=void 0!==v&&v,x=e.isFocus,j=void 0!==x&&x,A=e.watch,S=e.insertTemp,_=e.mode,C=void 0===_?"markdown":_,T=e.id,M=void 0===T?"markdown-editor-id":T,L=e.showResizeBar,E=void 0!==L&&L,D=e.noStorage,G=void 0!==D&&D,R=e.showNullButton,F=void 0!==R&&R,O=e.showNullProgramButton,H=void 0!==O&&O,Z=e.hidetoolBar,z=void 0!==Z&&Z,I=e.fullScreen,U=void 0!==I&&I,V=e.onBlur,J=e.onCMBeforeChange,K=e.onFullScreen,Q=e.className,X=void 0===Q?"":Q,$=e.disablePaste,ee=void 0!==$&&$,ne=e.disabled,fe=void 0!==ne&&ne,we=e.disabledFill,ye=void 0!==we&&we,je=e.placeholder,Ae=void 0===je?"":je,Se=e.values,_e=void 0===Se?"":Se,ke=e.extraUse,Be=(0,c.useState)(null),Ne=r()(Be,2),Ce=Ne[0],Te=Ne[1],Pe=(0,c.useState)(t),Me=r()(Pe,2),Le=Me[0],Ee=Me[1],De=(0,c.useState)(A),Ge=r()(De,2),Re=Ge[0],Fe=Ge[1],Oe=(0,c.useState)(U),He=r()(Oe,2),Ze=He[0],We=He[1],ze=(0,c.useState)(""),Ie=r()(ze,2),Ue=Ie[0],Ve=Ie[1],qe=(0,c.useState)(0),Je=r()(qe,2),Ke=Je[0],Qe=Je[1],Xe=(0,c.useState)(g),Ye=r()(Xe,2),$e=Ye[0],en=Ye[1],nn=(0,c.useState)(!1),tn=r()(nn,2),on=(tn[0],tn[1]),an=(0,c.useState)(0),rn=r()(an,2),ln=rn[0],sn=rn[1],cn=(0,c.useState)(0),dn=r()(cn,2),un=dn[0],fn=dn[1],pn=(0,c.useRef)(),hn=(0,c.useRef)(),mn=(0,c.useRef)(),gn=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ee(_e),null==Ce||Ce.setValue(_e),window.scrollTo(0,e)}),[_e]),(0,c.useEffect)((function(){null==K||K(Ze)}),[Ze]),(0,c.useEffect)((function(){if(pn.current){var e=function(e,t){if(!ee){var i=t.clipboardData;if(i){var o=i.types.toString(),a=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(t.preventDefault(),"stex"==C)return;try{var r,l=a[1];"file"===(null===(r=a[0])||void 0===r?void 0:r.kind)&&(l=a[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,N.I)(s,(function(e){var t,i,o;e.id?(null==s||null===(t=s.type)||void 0===t?void 0:t.indexOf("image"))>-1?n.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?n.replaceSelection('')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?n.replaceSelection('').concat(s.name,"")):ge.includes(c)?n.replaceSelection('').concat(s.name,"")):n.replaceSelection("[".concat(s.name,"](").concat(oe.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){ae.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}t.preventDefault()},n=u().fromTextArea(pn.current,{mode:C,lineNumbers:!w,lineWrapping:!0,value:t,autoCloseTags:!0,autoCloseBrackets:!0});return n.on("keyup",(function(e,t){8===t.keyCode&&(""==e.getValue()?n.setOption("placeholder",Ae):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(),o=t.getLine(i.line),a=o.charAt(i.ch-1),r=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=r>l?r:l,c=r>l?3:4;if(-1===me.indexOf(a))return null;if(console.log("change1:",n,e,o,i,s,r,l,a),s>=0&&i.ch-s<5){var d=s+c;return t.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:d}),{line:i.line,ch:d}}return null}(e);t&&n.preventDefault()}})),j&&n.focus(),n.on("paste",e),fe&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Te(n),function(){n.off("paste",e)}}}),[]);var vn=(0,c.useCallback)((function(){hn.current}),[$e,hn,Ze]);(0,c.useEffect)((function(){if(Ce){var e=function(){var e=new f.Z((function(e){var n,t=o()(e);try{for(t.s();!(n=t.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(vn(),Ce.setSize("100%","100%"),Ce.refresh())}}catch(e){t.e(e)}finally{t.f()}}));return e.observe(pn.current.parentElement),e}();return function(){var n,t;null!==(n=pn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(t=pn.current)||void 0===t?void 0:t.parentElement)}}}),[Ce,vn]),(0,c.useEffect)((function(){if(Ce){for(var e=[],n=function(){var n=r()(i[t],2),o=n[0],a=n[1],l=s()({},o,(function(){wn(a)}));e.push(l),Ce.addKeyMap(l)},t=0,i=Object.entries(xe);t0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(M);e>=Ke+1e4&&(!n||n!==Le)&&(window.sessionStorage.setItem(M,Le),on(!0))}}),1e4),(0,c.useEffect)((function(){Fe(A)}),[Ce,A]),(0,c.useEffect)((function(){Ce&&j&&Ce.focus()}),[Ce,j]),(0,c.useEffect)((function(){if(Re&&Ce){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=Ce.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[Ce,Re]),(0,c.useEffect)((function(){if(Ce&&J){var e=function(e,n){J(e,n)};return Ce.on("beforeChange",e),function(){Ce.off("beforeChange",e)}}}),[Ce,J]),(0,c.useEffect)((function(){if(Ce&&V){var e=function(){V(Ce.getValue())};return Ce.on("blur",e),function(){Ce.off("blur",e)}}}),[Ce,V]),(0,c.useEffect)((function(){if(Ce){var e=function(e,n){var t=e.getValue();Ee(t),Qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(H?i(t,An(t)):i(t))};return Ce.on("change",e),function(){Ce.off("change",e)}}}),[Ce,i]),(0,c.useEffect)((function(){if(Ce)if(null==t)Ce.setValue(""),Ee("");else{var e=window.scrollY||window.pageYOffset;t!==Ce.getValue()&&(Ce.setValue(t),Ee(t),Ce.setCursor(fe?1:Ce.lineCount(),0),window.scrollTo(0,e))}}),[Ce,t]);var wn=(0,c.useCallback)((function(e){var n=Ce.getCursor(),t=Ce.getSelection(),i=t.split("\n");switch(e){case"bold":return Ce.replaceSelection("**"+t+"**"),""===t&&Ce.setCursor(n.line,n.ch+2),Ce.focus();case"italic":return Ce.replaceSelection("*"+t+"*"),""===t&&Ce.setCursor(n.line,n.ch+1),Ce.focus();case"code":return Ce.replaceSelection("`"+t+"`"),""===t&&Ce.setCursor(n.line,n.ch+1),Ce.focus();case"inline-latex":return Ve("inline-latex"),Ce.focus();case"latex":return Ce.replaceSelection("```latex\n"+t+"\n```"),Ce.setCursor(n.line+1,t.length+1),Ce.focus();case"line-break":return Ce.replaceSelection("
\n"),Ce.focus();case"list-ul":return""===t?Ce.replaceSelection("- "+t):Ce.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ce.focus();case"list-ol":return""===t?Ce.replaceSelection("1. "+t):Ce.replaceSelection(i.map((function(e,n){return""===e?"":"".concat(n+1,". ").concat(e)})).join("\n")),Ce.focus();case"add-null-ch":return""===t&&Ce.setCursor(n.line,n.ch),Ce.replaceSelection("▁"),Ce.focus();case"add-signal":return""===t&&Ce.setCursor(n.line,n.ch),Ce.replaceSelection("@▁@"),Ce.focus();case"add-multiple":return""===t&&Ce.setCursor(n.line,n.ch),Ce.replaceSelection(me),Ce.focus();case"inster-template-1":return""===t&&Ce.setCursor(n.line,n.ch),Ce.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ce.focus();case"eraser":return Ce.setValue(""),Ce.focus();case"trigger-watch":return Fe(!Re),Ce.focus();case"trigger-full-screen":return We(!Ze),Ce.focus();case re:return void Ve(re);case de:return void Ve(de);case le:return void Ve(le);case ce:return void Ve(ce);case"maths-latex":return void Ve("maths-latex");case se:return void Ve(se);case ue:return void Ve(ue);default:throw new Error}}),[Ce,Re,Ze]),xn=(0,c.useCallback)((function(e,n){var t,i,o,a,r;switch(Ve(""),Ue){case re:var l=e.title,s=e.link;return Ce.replaceSelection("[".concat(l,"](").concat(s,")")),Ce.focus();case de:var c=e.language,d=e.content;return Ce.replaceSelection(["```"+c,d,"```"].join("\n")),Ce.focus();case"maths-latex":for(var u=atob(e),f=new Uint8Array(u.length),p=0;p-1||null==v||!v.type?g?Ce.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Ce.replaceSelection("![,](".concat(m,")")):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("video"))>-1?Ce.replaceSelection('')):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?Ce.replaceSelection('').concat(v.name,"")):ge.includes(w)?Ce.replaceSelection('').concat(v.name,"")):Ce.replaceSelection("[".concat(v.name,"](").concat(oe.Z.API_SERVER).concat(m,")")),Ce.focus();case ue:for(var x=e.row,b=e.col,y=e.align,j="\n",A=0;A300&&(n=300),en(g+n+"px")}},i=mn.current,o=!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)}}}),[Ce,mn]),(0,c.useEffect)((function(){en(g)}),[g]);var jn={width:ve(l),height:ve($e)},An=((0,c.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(H){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,t,i){n.push({multiLine:!("@▁@"===e)})}))}return n});(0,c.useEffect)((function(){be[Ue]&&Ue!==ce&&Ue!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;sn(n),fn(t)}),0)}),[Ue]);var Sn=function(e,n,t,i){var o=document.body.clientHeight,a=document.body.clientWidth;return!(e<20&&t>e||e>a-20&&tn||n>o-20&&i0&&(0,l.jsx)("div",{className:r,children:t.map((function(e,n){return(0,l.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,l.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn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fA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},n)}))}),f]}),i&&(0,l.jsx)("img",{style:{marginTop:33,marginRight:38},src:i,width:c})]})})},c=t(79800),d=t.n(c),u="row___aXJjm",f="title___HUKL0",p="tagsWrap___XB2W3",h="action___VdHb1",m="bar___t1kKC",g="tag___V7Eft",v="name___Hk1Ip",w="num___xQpcH",x="active___XryTX",b="tagsBorderWrap___OMxjs",y=t(92310),j=t.n(y),A=t(89392),S=function(e){var n=e.dataSource,t=void 0===n?[]:n,o=e.value,a=e.onChange,r=e.onTitleChange,s=e.className,c=e.title,y=e.titleWidth,S=void 0===y?41:y,_=e.style,k=void 0===_?{}:_,B=e.fontColor,N=void 0===B?"#6A7283":B,C=e.showCount,T=(0,i.useState)(0),P=d()(T,2),M=P[0],L=P[1],E=(0,i.useState)(!1),D=d()(E,2),G=D[0],R=D[1],F=(0,i.useRef)(null),O=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;0!==t.length&&((null==F||null===(e=F.current)||void 0===e?void 0:e.clientHeight)>97?L(1):L(0));0===t.length&&L(0),R(!1)}),[t]),(0,l.jsxs)("div",{className:j()(u,s),style:k,children:[(0,l.jsx)("div",{onClick:(0,A.throttle)((function(){return null==r?void 0:r()}),2e3),style:{width:S,marginTop:G?12:4},className:"".concat(f," ").concat(r?"current":""),children:c}),(0,l.jsxs)("div",{className:G?"".concat(p," ").concat(b):p,children:[(0,l.jsx)("div",{className:m,ref:O,style:M>0?{height:1===M?97:"auto",overflow:1===M?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,l.jsx)("div",{className:g,ref:F,children:null==t?void 0:t.map((function(e){return(0,l.jsxs)("span",{onClick:function(){return a(e.id)},style:{color:N},className:o===e.id?x:"",children:[(0,l.jsx)("span",{title:e.name,className:v,children:e.name}),!!C&&(0,l.jsx)("span",{className:w,children:e.count})]},e.id)}))})}),!!M&&(0,l.jsx)(i.Fragment,{children:1===M?(0,l.jsxs)("div",{onClick:function(){var e;L(2),(null==F||null===(e=F.current)||void 0===e?void 0:e.clientHeight)>245?R(!0):R(!1)},className:h,children:["展开",(0,l.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,l.jsxs)("div",{onClick:function(){O.current.scrollTop=0,L(1),R(!1)},className:h,children:["收起",(0,l.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},_="tabs___GTqPV",k="active___F26E8",B=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,o=e.onChange,a=e.className,r=e.style,s=void 0===r?{}:r;return(0,l.jsx)("div",{style:s,className:j()(_,a),children:t.map((function(e){return(0,l.jsx)("span",{onClick:function(){return o(e.id)},className:i===e.id?k:"",children:e.name},e.id)}))})},N="input___PW2zI",C="dropdown___vSy8B",T="menu___NiyBu",P="text___Grueu",M="b1___ZKryM",L="b2___aKyGa",E=t(92832),D=function(e){var n,t=e.dataSource,o=void 0===t?[]:t,a=e.value,r=void 0===a?"":a,s=e.onChange,c=e.onInputChange,u=void 0===c?function(){}:c,f=e.className,p=e.style,h=void 0===p?{}:p,m=e.placeholder,g=(e.allowClear,(0,i.useState)("")),v=d()(g,2),w=v[0],x=v[1],b=(0,i.useState)(""),y=d()(b,2),A=y[0],S=y[1];(0,i.useEffect)((function(){var e,n=r;null!==(e=JSON.stringify(r))&&void 0!==e&&e.includes("{")&&(x(r.id),n=r.value||"");try{S(decodeURIComponent(n||""))}catch(e){S(decodeURIComponent(n||""))}}),[r]);var _=function(){s(encodeURIComponent(A),w||null)};return(0,l.jsxs)("div",{className:j()(N,f),style:h,children:[!!o.length&&(0,l.jsxs)("div",{className:C,children:[(0,l.jsxs)("div",{className:P,children:[null===(n=o.find((function(e){return e.id===w})))||void 0===n?void 0:n.name,(0,l.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,l.jsx)("b",{className:M}),(0,l.jsx)("b",{className:L})]}),(0,l.jsx)("div",{className:T,children:o.map((function(e,n){return(0,l.jsx)("div",{onClick:function(){var n;(n=e.id)!==w&&(x(n),s(encodeURIComponent(A),n))},children:e.name},n)}))})]}),(0,l.jsx)(E.Z,{onPressEnter:_,value:A,onChange:function(e){S(e.target.value),u(encodeURIComponent(e.target.value),w||null)},bordered:!1,placeholder:m}),(0,l.jsx)("i",{onClick:_,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},G="quickPager___GM30J",R="disabled___Ozc8I",F=function(e){var n=e.value,t=e.onChange,i=e.className,o=e.total,a=e.pageSize,r=e.style,s=void 0===r?{}:r,c=n<2,d=n>=Math.ceil(o/a);return o<=a?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("div",{className:j()(G,i),style:s,children:[(0,l.jsx)("div",{onClick:function(){c||t(n-1,"prev")},className:c?R:"",children:"上一页"}),(0,l.jsx)("div",{onClick:function(){d||t(n+1,"next")},className:d?R:"",children:"下一页"})]})},O="list___oOsiS",H="wrap___G6T7F",Z="lockWrap___Rl79E",W="li___oZZ7l",z="cover___b2bYW",I="img___IQX7w",U="sign___HkT6C",V="name___SsJx8",q="e___TMqq0",J="tags___bcjyo",K="rate___YACg7",Q=t(71418),X=t(6848),Y=t(31395),$=t(92723),ee=t(21082),ne=t(96908),te=t(57177),ie=t(81378),oe=t(54313),ae=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,o=e.col,a=void 0===o?4:o,r=e.right,s=e.bottom,c=void 0===s?23:s,d=e.precision,u=void 0===d?0:d,f=e.wrapWidth,p=void 0===f?1200:f,h=e.trackEventItems,m=e.loading,g=Math.floor((p-(a-1)*r)/a);return(0,l.jsx)(Q.Z,{spinning:m,children:(0,l.jsxs)("div",{className:j()(O,n),children:[!!i.length&&i.map((function(e,n){var t=e.name,i=e.id,o=e.identifier,s=e.power,d=(e.cover_image_id,e.pic);return(0,l.jsxs)("div",{className:H,style:{width:g,marginRight:(1+n)%a==0?0:r+u,marginBottom:c},children:[(0,l.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(o,"/challenges"),className:W,onClick:function(e){e.preventDefault(),h&&(0,ee.L9)([h]),s&&(0,ee.xg)("/shixuns/".concat(o,"/challenges"))},children:[(0,l.jsxs)("div",{className:I,children:[(0,l.jsx)("img",{className:z,src:"".concat(d)}),e.is_jupyter&&(0,l.jsx)("img",{className:U,src:ne}),e.is_jupyter_lab&&(0,l.jsx)("img",{className:U,src:te}),e.is_unity_3d&&(0,l.jsx)("img",{className:U,src:ie})]}),(0,l.jsx)("div",{className:V,children:(0,l.jsx)(X.Z,{title:t||"实践项目名称-未填写",children:(0,l.jsx)("span",{className:q,children:t||"实践项目名称-未填写"})})}),(0,l.jsxs)("div",{className:J,children:[(0,l.jsx)(X.Z,{placement:"bottom",title:"关卡数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,l.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,l.jsx)(X.Z,{placement:"bottom",title:"学习人数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,l.jsx)("span",{children:e.myshixuns_count})]})}),(0,l.jsx)(X.Z,{placement:"bottom",title:"难度等级",children:(0,l.jsx)("span",{children:(0,l.jsx)("span",{children:e.level})})}),(0,l.jsxs)("div",{className:K,children:[(0,l.jsx)(Y.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,l.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!s&&(0,l.jsxs)("div",{className:Z,children:[(0,l.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,l.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},i)})),!i.length&&(0,l.jsx)(oe.Z,{})]})})},re="list___jb2Ay",le="wrap___VsQDr",se="li___IxCLC",ce="cover___Mu8wr",de="img___IpFLA",ue="movebq___mF7wt",fe="bq___Bil0T",pe="sign___DXJ4d",he="name___l7FoJ",me="e___pXQUG",ge="unit___wCIFR",ve="tags___w_Mil",we=t(93697),xe=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,o=e.col,a=void 0===o?4:o,r=e.right,s=e.bottom,c=void 0===s?23:s,d=e.precision,u=void 0===d?0:d,f=e.wrapWidth,p=void 0===f?1200:f,h=e.trackEventItems,m=e.loading,g=e.onRemove,v=void 0===g?function(){}:g,w=e.isCurrent,x=void 0===w||w,b=e.showAlias,y=void 0!==b&&b,A=Math.floor((p-(a-1)*r)/a),S=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,l.jsx)(Q.Z,{spinning:m,children:(0,l.jsxs)("div",{className:j()(re,n),children:[!(null==i||!i.length)&&(null==i?void 0:i.map((function(e,n){var t,i=e.name,o=e.id,s=e.identifier,d=(e.featured,e.school_name),f=e.image_url;e.excellent,e.is_plan;return(0,l.jsx)("div",{className:le,style:{width:A,marginRight:(1+n)%a==0?0:r+u,marginBottom:c},children:(0,l.jsxs)("a",{className:se,onClick:function(e){e.preventDefault(),e.stopPropagation(),h&&(0,ee.L9)([h]),(0,ee.xg)("/paths/".concat(s))},children:[(0,l.jsxs)("div",{className:de,children:[(0,l.jsx)("img",{className:ce,src:"".concat(f)}),x&&(0,we.bg)()&&(null==e?void 0:e.studying)&&(0,l.jsxs)("div",{className:"".concat(ue," user-path-items"),onClick:function(n){n.stopPropagation(),v(e)},children:[(0,l.jsx)("i",{className:"iconfont icon-yichu1 mr5 c-red"}),(0,l.jsx)("span",{className:"c-red",children:"移除"})]}),null==e||null===(t=e.subject_tags)||void 0===t?void 0:t.map((function(e,n){var t;if(0===n){var i,o=null===(i=S.find((function(n){return n.name==e})))||void 0===i?void 0:i.swimg;return(0,l.jsx)("img",{className:pe,src:o,style:{left:"-4px"}})}var a=null===(t=S.find((function(n){return n.name==e})))||void 0===t?void 0:t.ptimg;return(0,l.jsx)("img",{className:pe,src:a,style:{left:"".concat(48+52*(n-1)+2*n,"px")}})})),(0,l.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,l.jsx)("div",{className:fe,children:"开放课程"})})]}),(0,l.jsx)("div",{className:he,children:(0,l.jsx)(X.Z,{title:y&&null!=e&&e.excellent_alias_name?(0,l.jsxs)("span",{children:["课程原名:".concat(i),(0,l.jsx)("br",{}),(0,l.jsx)("span",{children:"课程别名:".concat(null==e?void 0:e.excellent_alias_name)})]}):i,children:(0,l.jsx)("span",{className:me,children:y&&(null==e?void 0:e.excellent_alias_name)||i})})}),(0,l.jsx)(X.Z,{title:"发布单位:".concat(d),children:(0,l.jsxs)("div",{className:ge,children:[(0,l.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),d]})}),(0,l.jsx)("div",{className:ve,children:(0,l.jsxs)("div",{children:[(0,l.jsx)(X.Z,{placement:"bottom",title:"章节数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,l.jsx)("span",{children:e.stages_count})]})}),(0,l.jsx)(X.Z,{placement:"bottom",title:"学习人数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,l.jsx)("span",{children:e.members_count})]})})]})})]})},o)}))),!i.length&&(0,l.jsx)(oe.Z,{})]})})},be={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ye=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,o=e.col,a=void 0===o?4:o,r=e.right,s=e.bottom,c=void 0===s?23:s,d=e.precision,u=void 0===d?0:d,f=e.wrapWidth,p=void 0===f?1200:f,h=e.trackEventItems,m=e.loading,g=Math.floor((p-(a-1)*r)/a);return(0,l.jsx)(Q.Z,{spinning:m,children:(0,l.jsxs)("div",{className:j()(be.list,n),children:[!!i.length&&i.map((function(e,n){var t=e.subject_identifier,i=e.id,o=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,l.jsxs)("div",{className:be.wrap,style:{width:g,marginRight:(1+n)%a==0?0:r+u,marginBottom:c},children:[(0,l.jsxs)("a",{className:be.li,onClick:function(n){n.preventDefault(),(0,ee.Wn)(null==e?void 0:e.forbid_visit_info)||(h&&(0,ee.L9)([h]),(0,ee.xg)(e.first_category_url))},children:[(0,l.jsxs)("div",{className:be.top,children:[(0,l.jsx)(X.Z,{title:e.name,children:(0,l.jsx)("div",{className:be.name,children:e.name})}),(0,l.jsx)("img",{className:be.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,l.jsx)("div",{className:be.text,title:e.creator,children:e.creator}),t&&(0,l.jsxs)("div",{className:be.btns,children:[(0,l.jsx)("div",{children:"开放课程"}),(0,l.jsx)("aside",{children:"开放课堂"})]}),o&&(0,l.jsx)("div",{className:be.sign,children:"公开"})]}),(0,l.jsxs)("div",{className:be.bottom,children:[e.visits>0&&(0,l.jsx)(X.Z,{title:"访问量",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,l.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,l.jsx)(X.Z,{title:"成员",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,l.jsx)(X.Z,{title:"作业",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,l.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,l.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,l.jsxs)("div",{className:be.lockWrap,children:[(0,l.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,l.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},i)})),!i.length&&(0,l.jsx)(oe.Z,{})]})})},je={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Ae=t(5296),Se=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,o=e.onChange,a=e.className,r=e.style,s=void 0===r?{}:r,c=e.tabBarExtraContent;return(0,l.jsxs)("div",{className:j()(je.tabs,a),style:s,children:[(0,l.jsx)("div",{className:je.tabsWrap,children:t.map((function(e,n){return(0,l.jsxs)("aside",{className:je.tab,onClick:function(){o(e.id),e.link&&Ae.history.push(e.link)},children:[(0,l.jsx)("div",{className:i===e.id?je.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,l.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,l.jsx)(X.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,l.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,l.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,l.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},n)}))}),(0,l.jsx)("div",{className:je.tabBar,children:c})]})},_e=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,o=e.children;return(0,l.jsx)("div",{className:j()(n),style:i,children:o})},ke="orderWrap___ZfyGX",Be="orderIconWrap___XTB_O",Ne="orderAsc___KWHmA",Ce="orderDesc___rHdbB",Te="active___a7eSP",Pe="cursorPointer___gs9kL",Me="orderTextWrap___teAKn",Le=t(38854),Ee=t(20834),De=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Ge=function(e){var n,t=e.sortValue,i=e.dropValue,o=e.className,a=e.onSort,r=e.onDrop,s=e.dataSource,c=void 0===s?De:s;return(0,l.jsxs)("div",{className:j()(ke,o),children:[(0,l.jsx)(Le.Z,{dropdownRender:function(){return(0,l.jsx)(Ee.Z,{children:c.map((function(e,n){return(0,l.jsx)(Ee.Z.Item,{onClick:function(){return r(e.id)},children:e.name},n)}))})},children:(0,l.jsx)("span",{className:Me,children:null===(n=c.find((function(e){return i===e.id})))||void 0===n?void 0:n.name})}),(0,l.jsxs)("span",{className:Be,children:[(0,l.jsx)("span",{className:Ne,children:(0,l.jsx)("i",{className:"asc"===t?"iconfont icon-sanjiaoxing-up font12 ".concat(Pe," ").concat(Te):"iconfont icon-sanjiaoxing-up font12 ".concat(Pe),onClick:function(){return a("asc"===t?"desc":"asc")}})}),(0,l.jsx)("span",{className:Ce,children:(0,l.jsx)("i",{className:"desc"===t?"iconfont icon-sanjiaoxing-down font12 ".concat(Pe," ").concat(Te):"iconfont icon-sanjiaoxing-down font12 ".concat(Pe),onClick:function(){return a("asc"===t?"desc":"asc")}})})]})]})},Re=t(82242),Fe=t.n(Re),Oe=t(7557),He=t.n(Oe),Ze=t(41498),We=t.n(Ze),ze=t(39647),Ie=t.n(ze),Ue={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ve=t(3113),qe=["className","style","children","loading","openLoading","onClick","size","shape"],Je=function(e){var n=e.className,t=e.style,o=e.children,a=e.loading,r=void 0!==a&&a,s=e.openLoading,c=e.onClick,u=void 0===c?function(){}:c,f=e.size,p=void 0===f?"middle":f,h=e.shape,m=void 0===h?"round":h,g=Ie()(e,qe),v=(0,i.useState)(!1),w=d()(v,2),x=w[0],b=w[1];return(0,l.jsx)(Ve.ZP,Fe()(Fe()({onClick:(0,A.throttle)(function(){var e=We()(He()().mark((function e(n){return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s&&b(!0),e.prev=1,e.next=4,u(n);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:s&&b(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(n){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:j()(Ue.btn,Ue["".concat(p,"-").concat(m)],n),style:t,size:p,shape:m,loading:x||r},g),{},{children:o}))},Ke="head___ghH72",Qe="node___mjPEy",Xe=function(e){var n=e.className,t=e.style,i=e.children,o=void 0===i?null:i,a=e.onClick,r=e.title;return(0,l.jsxs)("div",{className:j()(Ke,n),style:t,children:[(0,l.jsxs)("span",{className:"primary-hover",onClick:a,children:[(0,l.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,l.jsx)("b",{title:r,children:r}),(0,l.jsx)("div",{className:Qe,children:o})]})},Ye="btns___sNgTb",$e="confirm___Ozirl",en="cancel___aiq1I",nn=function(e){var n=e.confirmShow,t=void 0===n||n,i=e.confirmTitle,o=e.confirmClick,a=e.cancelShow,r=void 0===a||a,s=e.cancelTitle,c=e.cancelClick,d=e.className,u=e.style,f=e.confirmLoading,p=void 0!==f&&f;return(0,l.jsxs)("div",{className:j()(Ye,d),style:u,children:[t&&(0,l.jsx)(Ve.ZP,{loading:p,onClick:o,type:"primary",className:$e,children:i}),r&&(0,l.jsx)(Ve.ZP,{onClick:c,className:en,children:s})]})},tn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},on=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,o=e.LeftContent,a=e.children,r=e.RightContent;return(0,l.jsx)("div",{className:j()(tn.fixedBottom,n),style:i,children:(0,l.jsxs)("div",{className:tn.wrap,children:[(0,l.jsx)("div",{className:tn.left,children:o}),(0,l.jsx)("div",{className:tn.center,children:a}),(0,l.jsx)("div",{className:tn.right,children:r})]})})},an="crumbs___V41Oe",rn="hover___bEIVd",ln=function(e){var n=e.className,t=e.style,o=void 0===t?{}:t,a=e.dataSource,r=void 0===a?[]:a;return(0,l.jsx)("div",{className:j()(an,n),style:o,children:r.map((function(e,n){return n"," "]})]},n):(0,l.jsx)("span",{style:{color:"#5F6368"},children:e.name},n)}))})},sn=t(31797),cn=["onChange"],dn=sn.Z.Countdown,un=function(e){var n=e.onChange,t=Ie()(e,cn),o=(0,i.useState)(null),a=d()(o,2),r=a[0],s=a[1];(0,i.useEffect)((function(){"number"==typeof r&&r>=0&&n(r)}),[r]);return(0,l.jsx)(dn,Fe()(Fe()({},t),{},{onChange:function(e){var n=Math.floor(e/1e3);s(n)}}))}},77818:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var i=t(59301);function o(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])}},90341:function(e,n,t){"use strict";t.d(n,{$J:function(){return s},JZ:function(){return d},bN:function(){return p},jP:function(){return f},rO:function(){return c}});var i=t(7557),o=t.n(i),a=t(41498),r=t.n(a),l=t(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function d(e){return u.apply(this,arguments)}function u(){return(u=r()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(n,".json"));case 2:return t=e.sent,e.abrupt("return",0===t.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return(0,l.v_)("libraries.json",e)}function p(e,n){return(0,l.gz)("libraries/".concat(e,".json"),n)}},1058:function(e,n,t){"use strict";t.d(n,{U:function(){return f}});var i=t(7557),o=t.n(i),a=t(82242),r=t.n(a),l=t(41498),s=t.n(l),c=t(79800),d=t.n(c),u=t(59301);function f(e,n){var t=(0,u.useState)(n),i=d()(t,2),a=i[0],l=i[1],c=(0,u.useState)(!1),f=d()(c,2),p=f[0],h=f[1],m=(0,u.useState)(),g=d()(m,2),v=g[0],w=g[1],x=function(){var t=s()(o()().mark((function t(i){var s,c,d,u=arguments;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=u.length>1&&void 0!==u[1]&&u[1],c=s?n:r()(r()({},a),i),h(!0),l(c),t.next=6,e(c);case 6:return d=t.sent,h(!1),w(d),t.abrupt("return",d);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return[a,p,x,v]}},96908:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2H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EfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="}}]); \ No newline at end of file diff --git a/67870.e9a76db5.async.js b/67870.e9a76db5.async.js new file mode 100644 index 0000000000..7dbb738044 --- /dev/null +++ b/67870.e9a76db5.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[67870,48486,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},n="5.0",t={},i=null,o=!1,a=!1,r=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function j(){try{return window.self!==window.top}catch(e){return!0}}function A(){return(!t.hasOwnProperty("screenshotGenerator")||!t.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,n){c=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."):(s=e,G(e,n))},e.getHTML5CodebaseVersion=function(){return m},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,o="auto",a=t.id,r=!1,s=0;s=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 B=function(e){return e&&"false"!==e},N=function(n,t,i){y(m)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var a=document.createElement("div");a.classList.add("appletParameters","notranslate");var r=t.width,l=t.height;if(t.disableAutoScale=void 0===t.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():t.disableAutoScale,void 0!==t.width)if(y(m)<=4.4)B(t.showToolBar)&&(t.height-=7),B(t.showAlgebraInput)&&(t.height-=37),t.width<605&&B(t.showToolBar)&&(t.width=605,r=605);else{var u=100;(B(t.showToolBar)||B(t.showMenuBar))&&(t.hasOwnProperty("customToolBar")&&(t.customToolbar=t.customToolBar),u=B(t.showMenuBar)?245:155),r=5?(t.appletOnLoad=function(e){var t=n.querySelector(".ggb_preview");t&&t.parentNode.removeChild(t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},x||w.appendChild(j)):a.appendChild(j),w.appendChild(a),x||n.appendChild(w),setTimeout((function(){e.resize()}),1)}function A(e,n){n&&"function"==typeof n.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,n.appletOnLoad):renderGGBElement(e),F("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",n)}function S(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){A(e.article,e.params)})),html5AppletsToProcess=null)},y(m)<5&&(e.className+=" geogebraweb")):A(e,n)}if(o){scriptLoadStarted=!0;for(var _=0;_0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(a).append(l),window.dispatchEvent(new Event("resize"))):N(o,n,!1),window.GGBT_wsf_view.launchFullScreen(a)}else h=i,N(e,n,!1);if(!window.GGBT_wsf_view)for(r=0;re/4*3&&(l=e/4*3),s=l/5.8,r.setAttribute("src",x),r.setAttribute("width",l),r.setAttribute("height",s);var u=(e-l)/2,d=(n-s)/2;r.style.left=u+"px",r.style.top=d+"px",o.appendChild(r)}return o.appendChild(c),o},E=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},D=["web","webSimple","web3d","tablet","tablet3d","phone"],G=function(e,n){if(m=e,n)R(m,!0);else{var a,r,l=!o;if(l){var s=y(m);!isNaN(s)&&s<4.4&&(l=!1)}a="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in r=c>0?m:0===c?a+m:"https://www.geogebra.org/apps/5.2.814.0/",D)if(m.slice(-1*D[u].length)===D[u]||m.slice(-1*(D[u].length+1))===D[u]+"/")return void R(r,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||B(t.showToolBar)||B(t.showMenuBar)||B(t.showAlgebraInput)||B(t.enableRightClick)||t.appName&&"classic"!=t.appName?r+="web3d/":r+="webSimple/",R(r,!1)}},R=function(e,n){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===n&&(n=-1===e.indexOf("http")),p=n,g="web.nocache.js",v=!1;var t=f.split("/");t.length>1&&(n||"webSimple"!==t[t.length-2]?D.indexOf(t[t.length-2])>=0&&(g=t[t.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),t=e.split("/"),"test"===(m=t[t.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var i=parseFloat(m);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),G("5.0",n))}},F=function(e,n){window.console&&window.console.log&&(!n||void 0===n.showLogging||n.showLogging&&"false"!==n.showLogging)&&console.log(e)};function O(){var e=n;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),G(e,!1),null!==c&&R(c,p),l=!0}return void 0!==t.material_id?S(O):O(),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,o){if(e.isScreenshoGenerator)return 1;var a,r=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(a=e.autoHeight)&&"false"!==a,c=function(e,n,t,i,o,a){var r=null;if(null!=a&&""!=a)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+a+" ")>-1){r=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,f=0,p=0,h=0;if(r)s=r.offsetWidth,c=Math.max(i?r.offsetWidth:0,r.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-m.width-m.left,p=u<=480?10:30):(p=m.left,f=u<=480?10:30),d=p+f)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===t||!t)&&n>0&&n+d1&&(r=!0)),n&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(r=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?a:(o=t(e,n,r,i,e.scaleContainerClass),!r||e.hasOwnProperty("scale")&&1!==a?Math.min(a,o):o)}function o(e){var n=Math.min(window.innerWidth,document.documentElement.clientWidth),t=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(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=o<40?"40px":o+"px",e.style.top=a+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=a<40?"40px":a+"px",e.style.left=o+"px")}return{responsiveResize:function(t,a){var r=t.querySelector(".appletParameters");if(r){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(a.id!==r.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(t)}if(r.parentElement&&/fullscreen/.test(r.parentElement.className))return;var l=i(a,t);e()&&r.setAttribute("data-param-scale",l);for(var s=null,c=0;c=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;tO?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=[],o=[];function a(e){var n=o[e](),t=i[e];if(n in t)return n;var a=[];for(var l in t)a[t[l]]=l;throw r&&r(e,a,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]=a(n));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}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],o=O;o0){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",t=[],i=0;i0&&(n=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+y+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),n}var B=function(e){var n=e.value,t=e.onChange,i=e.action,a=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,k=e.title,B=void 0===k?"上传附件":k,N=e.showRemoveModal,C=void 0!==N&&N,T=e.accept,P=void 0===T?"":T,M=e.additionalText,L=e.isDragger,E=e.number,D=void 0===E?1e3:E,G=e.aloneClear,R=void 0!==G&&G,F=e.realTimeRemove,O=void 0===F||F,H=e.uploadText,Z=e.setFileProgress,W=e.showFileProgress,z=(0,p.useState)(!1),I=f()(z,2),U=I[0],V=I[1],q=(0,p.useState)(n||[]),J=f()(q,2),K=J[0],Q=J[1],X=(0,p.useState)(1),Y=f()(X,2),$=Y[0],ee=Y[1];(0,p.useEffect)((function(){n&&(1===$&&Q(u()(n)),ee(2),D===(null==n?void 0:n.length)&&V(!0))}),[n]);var ne=function(){setTimeout((function(){K.pop(),Q(u()(K))}),500)};W&&Z(K.some((function(e){return"uploading"===e.status})));var te,ie={multiple:!0,disabled:U,accept:P,withCredentials:!0,fileList:K,beforeUpload:function(e,n){var t=e.size/1024/1024;return K.concat(n).length>D?(K.pop(),Q(u()(K)),m.ZP.error("最多只能上传".concat(D,"个文件")),R?Promise.reject():(ne(),!1)):t=D?V(!0):V(!1),Q(u()(K)),K=K.map((function(e){var n,t;null!=e&&null!==(n=e.response)&&void 0!==n&&n.id&&(e.url=null==e||null===(t=e.response)||void 0===t?void 0:t.url);return-1===e.name.indexOf(y)&&(e.name="".concat(e.name).concat(y).concat(j(e.size))),s()({},e)})),console.log("info:",e,K),t(K)):m.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(te=r()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(O){e.next=2;break}return e.abrupt("return",!0);case 2:if(t=function(){var e=r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.response?n.response.id:n.id)){e.next=8;break}return e.next=4,(0,x.JZ)(n.response?n.response.id:n.uid);case 4:return t=e.sent,e.abrupt("return",Promise.resolve(t));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!C){e.next=7;break}return e.abrupt("return",new Promise((function(e,n){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,b.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=r()(o()().mark((function n(){return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t();case 2:n.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return n.stop()}}),n)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,t();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return te.apply(this,arguments)})};return(0,b.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[L&&(0,b.jsxs)(_,s()(s()({},ie),{},{children:[(0,b.jsx)("p",{className:"ant-upload-drag-icon",children:(0,b.jsx)(A.Z,{})}),(0,b.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,b.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),M]})),!L&&(0,b.jsxs)(h.Z,s()(s()({},ie),{},{children:[(0,b.jsxs)(v.ZP,{disabled:U,className:"upload_button",children:[(0,b.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),B]}),(0,b.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:H||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,n,t){"use strict";t.d(n,{h:function(){return v}});var i=t(82242),o=t.n(i),a=t(79800),r=t.n(a),l=t(59301),s=t(57809),c=t(78241),u=t(3113),d=t(89780),f=t.n(d),p=(t(80443),t(90630),t(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var n=e.value,t=e.onChange,i=e.mode,a=e.options,s=void 0===a?{}:a,c=(0,l.useRef)(),u=(0,l.useState)(),d=r()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var n=e.getValue();t&&t(n)};return h.on("change",e),function(){h.off("change",e)}}}),[h,t]),(0,l.useEffect)((function(){h&&h.setOption("mode",i)}),[h,i]),(0,l.useEffect)((function(){h&&(n===h.getValue()&&""!==n||setTimeout((function(){h.setValue(n||"")}),300))}),[h,n]),(0,l.useEffect)((function(){if(c.current&&!h){var e=f().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}n.Z=function(e){var n=e.callback,t=e.onCancel,i=(0,l.useState)("python"),a=r()(i,2),d=a[0],f=a[1];return(0,p.jsxs)(c.Z,o()(o()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){n(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){f(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(v,{mode:d})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(u.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))}},16318:function(e,n,t){"use strict";t.d(n,{Z:function(){return ye}});var i=t(91232),o=t.n(i),a=t(79800),r=t.n(a),l=t(85573),s=t.n(l),c=t(59301),u=t(89780),d=t.n(u),f=t(76374),p=(t(80443),t(6313),t(25717),t(99498),t(25419),t(67549),t(38279)),h=t(37712),m=function(e){var n=e.value,t=void 0===n?"":n,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[t]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=t(82242),v=t.n(g),w=[{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 x(e){var n=e.onActionCallback,t=e.title,i=e.icon,o=e.actionName,a=e.className,r=void 0===a?"":a,l=e.children;return(0,h.jsxs)("a",{title:t,className:r,onClick:function(){n(o)},children:[(0,h.jsx)("i",{className:"".concat(i)}),l]})}var b=function(e){var n=e.watch,t=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,a=e.fullScreen,r=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(n?"关闭实时预览":"开启实时预览"),icon:"".concat(n?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,n){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(x,v()(v()({},e),{},{onActionCallback:o})):(0,h.jsx)("span",{className:"v-line"})},n)})),t?(0,h.jsx)("li",{children:(0,h.jsx)(x,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(x,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(x,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,r&&(0,h.jsx)("li",{children:(0,h.jsx)(x,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(r),onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(x,{icon:"".concat(a?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:a?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},y=t(24808),j=t(78241),A=t(92832),S=t(3113),_={labelCol:{span:4},wrapperCol:{span:20}},k=function(e){var n=e.callback,t=e.onCancel;return(0,h.jsxs)(j.Z,v()(v()({},_),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},style:{width:500},children:[(0,h.jsx)(j.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(A.Z,{})}),(0,h.jsx)(j.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(A.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))},B=t(73145),N=t(28486),C=t(95237),T=t(36709),P=function(e){var n=e.callback,t=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var a=i.toDataURL("image/png");return(0,h.jsx)(C.Z,{style:{height:"100vh"},children:(0,h.jsx)(T.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})})},M=t(7557),L=t.n(M),E=t(41498),D=t.n(E),G=t(37205),R=t.n(G),F=t(12378);function O(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(O,go.CommandHandler),O.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},O.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")},O.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")},O.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")},O.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")},O.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")}},O.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")}},O.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;i0){for(var i=r.elt(l-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 o;if(n.isTreeExpanded&&!n.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(n).first())&&e.select(o);else for(;null!==n;){var a,r,l;if(null===(a=n.findTreeParentNode()))break;if((l=(r=this._sortTreeChildrenByY(a)).indexOf(n))i.y?1:t.xi.x?1:0})),n},O.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},O.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(O.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(O.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 H=O,Z=(t(41034),t(85160)),W=t(43418),z=t(43604),I=t(18030),U="myPaletteDiv___Xjz2I",V="maxH60___Pd4Re";window.go=F;var q=function(e){var n=e.onCancel,t=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),a=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=r()(u,2),f=d[0],p=d[1],m=function(){var e=D()(L()().mark((function e(){var n,o;return L()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.current.makeImage(),e.next=3,(0,I.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:n.src}});case 3:o=e.sent,t({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(V," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(W.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(C.Z,{children:[(0,h.jsx)(z.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(z.Z,{onClick:function(){l.current=!l.current,p(f+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:n,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:U,ref:a})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(Z.FI,{initDiagram:function(){var e=F.GraphObject.make,n="#ff3333",t="#3358ff",r="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",f="#fffcd5",p="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function x(n,t){var i=function(e,t){e.handled=!0,e.diagram.model.commit((function(i){var o=t.part.adornedPart,a=(new F.Point).setRectSpot(o.actualBounds,n);a.subtract(o.location),a.scale(2,2),a.x+=130*Math.sign(a.x),a.y+=130*Math.sign(a.y),a.add(o.location),a.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var r=i.copyNodeData(o.data);i.setGroupKeyForNodeData(r,i.getGroupKeyForNodeData(o.data)),i.addNodeData(r);var l={from:o.key,to:i.getKeyForNodeData(r)};i.addLinkData(l);var s=e.diagram.findNodeForData(r);s.location=a,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(F.Shape,{figure:t,alignment:n,alignmentFocus:n.opposite(),width:n.equals(F.Spot.Top)||n.equals(F.Spot.Bottom)?25:18,height:n.equals(F.Spot.Top)||n.equals(F.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(F.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 j(n,t){return t||(t="color"),e(F.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 A(){return[e("ContextMenuButton",e(F.Panel,"Horizontal",j(u,"fill"),j(f,"fill"),j(p,"fill"),j(h,"fill"))),e("ContextMenuButton",e(F.Panel,"Horizontal",j(g,"fill"),j(v,"fill"),j(m,"fill"),j(w,"fill")))]}function S(){return[e("ContextMenuButton",e(F.Panel,"Horizontal",j(d),j(r),j(t),j(n))),e("ContextMenuButton",e(F.Panel,"Horizontal",j(u),j(l),j(s),j(c)))]}function _(n,t){return t||(t="thickness"),e(F.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 k(n,t){return t||(t="dash"),e(F.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 B(){return[e("ContextMenuButton",e(F.Panel,"Horizontal",_(1),_(2),_(3),_(4))),e("ContextMenuButton",e(F.Panel,"Horizontal",k(null),k([2,4]),k([4,4])))]}function N(n,t){return t||(t="figure"),e(F.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 C(n){return e(F.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(n+4).toString()+" H3"})}function T(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(F.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 P(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",F.Spot.stringify(F.Spot.AllSides)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(F.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 M(n,t){var i=0,o=F.Spot.RightSide;n.equals(F.Spot.Top)?(i=270,o=F.Spot.TopSide):n.equals(F.Spot.Left)?(i=180,o=F.Spot.LeftSide):n.equals(F.Spot.Bottom)&&(i=90,o=F.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",F.Spot.stringify(o)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(F.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 F.Diagram(o.current,{padding:20,grid:e(F.Panel,"Grid",e(F.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(F.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(H),"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(F.Node,"Auto",{locationSpot:F.Spot.Center,locationObjectName:"SHAPE",desiredSize:new F.Size(120,60),minSize:new F.Size(40,40),resizable:!0,resizeCellSize:new F.Size(10,10),rotatable:!0},new F.Binding("location","loc",F.Point.parse).makeTwoWay(F.Point.stringify),new F.Binding("desiredSize","size",F.Size.parse).makeTwoWay(F.Size.stringify),e(F.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:F.Spot.AllSides,toSpot:F.Spot.AllSides},new F.Binding("figure"),new F.Binding("fill"),new F.Binding("stroke","borderColor"),new F.Binding("strokeWidth","thickness"),new F.Binding("strokeDashArray","dash")),e(F.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(F.TextBlock,{margin:1,textAlign:"center",overflow:F.TextBlock.OverflowEllipsis,editable:!0},new F.Binding("text").makeTwoWay(),new F.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(F.Panel,"Vertical",{maxSize:new F.Size(200,NaN)},e(F.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new F.Binding("text")),e(F.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new F.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(F.Adornment,"Spot",e(F.Placeholder,{padding:10}),x(F.Spot.Top,"TriangleUp"),x(F.Spot.Left,"TriangleLeft"),x(F.Spot.Right,"TriangleRight"),x(F.Spot.Bottom,"TriangleDown"),b({alignment:new F.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(F.Panel,"Horizontal",N("Rectangle"),N("RoundedRectangle"),N("Ellipse"),N("Diamond"))),e("ContextMenuButton",e(F.Panel,"Horizontal",N("Parallelogram2"),N("ManualOperation"),N("Procedure"),N("Cylinder1"))),e("ContextMenuButton",e(F.Panel,"Horizontal",N("Terminator"),N("CreateRequest"),N("Document"),N("TriangleDown"))),A(),S(),B()),i.current.groupTemplate=e(F.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:F.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 F.Binding("location","loc",F.Point.parse).makeTwoWay(F.Point.stringify),e(F.Panel,"Auto",{name:"BODY"},e(F.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:F.Spot.AllSides,toSpot:F.Spot.AllSides},new F.Binding("fill"),new F.Binding("stroke","color"),new F.Binding("strokeWidth","thickness"),new F.Binding("strokeDashArray","dash")),e(F.Placeholder,{background:"transparent",margin:20})),e(F.TextBlock,{alignment:F.Spot.Top,alignmentFocus:F.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new F.Binding("text"),new F.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(F.Adornment,"Spot",e(F.Panel,"Auto",e(F.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(F.Placeholder,{margin:1.5})),b({alignment:F.Spot.TopRight,alignmentFocus:F.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",A(),S(),B()),i.current.linkTemplate=e(F.Link,{layerName:"Foreground",routing:F.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new F.Binding("fromSpot","fromSpot",F.Spot.parse),new F.Binding("toSpot","toSpot",F.Spot.parse),new F.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new F.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new F.Binding("points").makeTwoWay(),e(F.Shape,{strokeWidth:2},new F.Binding("stroke","color"),new F.Binding("strokeWidth","thickness"),new F.Binding("strokeDashArray","dash")),e(F.Shape,{segmentIndex:0,segmentOffset:new F.Point(15,0),segmentOrientation:F.Link.OrientAlong,alignmentFocus:F.Spot.Right,figure:"circle",width:10,strokeWidth:0},new F.Binding("fill","color"),new F.Binding("visible","dir",(function(e){return 1===e}))),e(F.Shape,{segmentIndex:-1,segmentOffset:new F.Point(-10,6),segmentOrientation:F.Link.OrientPlus90,alignmentFocus:F.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new F.Binding("fill","color"),new F.Binding("visible","dir",(function(e){return e>=1})),new F.Binding("width","thickness",(function(e){return 7+3*e})),new F.Binding("height","thickness",(function(e){return 7+3*e})),new F.Binding("segmentOffset","thickness",(function(e){return new F.Point(-15,4+1.5*e)}))),e(F.Shape,{segmentIndex:0,segmentOffset:new F.Point(15,-6),segmentOrientation:F.Link.OrientMinus90,alignmentFocus:F.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new F.Binding("fill","color"),new F.Binding("visible","dir",(function(e){return 2===e})),new F.Binding("width","thickness",(function(e){return 7+3*e})),new F.Binding("height","thickness",(function(e){return 7+3*e})),new F.Binding("segmentOffset","thickness",(function(e){return new F.Point(-15,4+1.5*e)}))),e(F.TextBlock,{alignmentFocus:new F.Spot(0,1,-4,0),editable:!0},new F.Binding("text").makeTwoWay(),new F.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(F.Adornment,e(F.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:C(2)},new F.Binding("pathPattern","thickness",C)),b({alignmentFocus:new F.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",S(),B(),e("ContextMenuButton",e(F.Panel,"Horizontal",T(0),T(1),T(2))),e("ContextMenuButton",e(F.Panel,"Horizontal",e(F.Panel,"Spot",P(!1),M(F.Spot.Top,!1),M(F.Spot.Left,!1),M(F.Spot.Right,!1),M(F.Spot.Bottom,!1)),e(F.Panel,"Spot",{margin:new F.Margin(0,0,0,2)},P(!0),M(F.Spot.Top,!0),M(F.Spot.Left,!0),M(F.Spot.Right,!0),M(F.Spot.Bottom,!0))))),new F.Palette(a.current,{maxSelectionCount:1,linkTemplate:e(F.Link,{locationSpot:F.Spot.Center,selectionAdornmentTemplate:e(F.Adornment,"Link",{locationSpot:F.Spot.Center},e(F.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(F.Shape,{toArrow:"Standard",stroke:null}))},{routing:F.Link.AvoidsNodes,curve:F.Link.JumpOver,corner:5,toShortLength:4},new F.Binding("points"),e(F.Shape,{isPanelMain:!0,strokeWidth:2}),e(F.Shape,{toArrow:"Standard",stroke:null})),model:new F.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(R()(F.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(F.Node,"Auto",{locationSpot:F.Spot.Center},new F.Binding("location","location",F.Point.parse).makeTwoWay(F.Point.stringify),e(F.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 F.Binding("stroke").makeTwoWay(),new F.Binding("fill").makeTwoWay(),new F.Binding("figure")),e(F.TextBlock,{margin:new F.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new F.Size(16,16),maxSize:new F.Size(10,NaN),textAlign:"center",editable:!0},new F.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(F.Panel,"Grid",e(F.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(F.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,h.jsx)("div",{ref:o})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},J=t(5112),K=t(94001),Q=J.ZP.Group,X={margin:"0 8px"},Y=function(e){var n=e.callback,t=e.onCancel;return(0,h.jsxs)(j.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){n(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(j.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(K.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(j.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(K.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(j.Z.Item,{name:"align",children:(0,h.jsxs)(Q,{children:[(0,h.jsx)(J.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(J.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(J.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(J.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:t,children:"取消"})]})]})},$=t(78673),ee=t(57932),ne=t.n(ee),te=(0,c.forwardRef)((function(e,n){var t=e.use3d,i=e.width,o=e.height,a=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=r()(u,2),f=d[0],p=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(ne())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return a&&a(e),e};return(0,c.useEffect)((function(){m.current.appName=f?"3D":"graphing",s.current.inject("applet_container")}),[f]),(0,c.useEffect)((function(){p(t)}),[t]),(0,c.useImperativeHandle)(n,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(C.Z,{align:"middle",children:[(0,h.jsx)(z.Z,{flex:1,children:(0,h.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,h.jsx)(z.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=t(36761),oe=t(92723),ae=t(8591),re="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},he=t(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",xe=s()(s()({},we+"-B","bold"),we+"-I","italic"),be=s()(s()(s()(s()(s()(s()(s()(s()({},re,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),ye=function(e){var n=e.defaultValue,t=void 0===n?"":n,i=e.onChange,a=e.width,l=void 0===a?"100%":a,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,x=e.isFocus,j=void 0!==x&&x,A=e.watch,S=e.insertTemp,_=e.mode,C=void 0===_?"markdown":_,T=e.id,M=void 0===T?"markdown-editor-id":T,L=e.showResizeBar,E=void 0!==L&&L,D=e.noStorage,G=void 0!==D&&D,R=e.showNullButton,F=void 0!==R&&R,O=e.showNullProgramButton,H=void 0!==O&&O,Z=e.hidetoolBar,z=void 0!==Z&&Z,I=e.fullScreen,U=void 0!==I&&I,V=e.onBlur,J=e.onCMBeforeChange,K=e.onFullScreen,Q=e.className,X=void 0===Q?"":Q,$=e.disablePaste,ee=void 0!==$&&$,ne=e.disabled,fe=void 0!==ne&&ne,we=e.disabledFill,ye=void 0!==we&&we,je=e.placeholder,Ae=void 0===je?"":je,Se=e.values,_e=void 0===Se?"":Se,ke=e.extraUse,Be=(0,c.useState)(null),Ne=r()(Be,2),Ce=Ne[0],Te=Ne[1],Pe=(0,c.useState)(t),Me=r()(Pe,2),Le=Me[0],Ee=Me[1],De=(0,c.useState)(A),Ge=r()(De,2),Re=Ge[0],Fe=Ge[1],Oe=(0,c.useState)(U),He=r()(Oe,2),Ze=He[0],We=He[1],ze=(0,c.useState)(""),Ie=r()(ze,2),Ue=Ie[0],Ve=Ie[1],qe=(0,c.useState)(0),Je=r()(qe,2),Ke=Je[0],Qe=Je[1],Xe=(0,c.useState)(g),Ye=r()(Xe,2),$e=Ye[0],en=Ye[1],nn=(0,c.useState)(!1),tn=r()(nn,2),on=(tn[0],tn[1]),an=(0,c.useState)(0),rn=r()(an,2),ln=rn[0],sn=rn[1],cn=(0,c.useState)(0),un=r()(cn,2),dn=un[0],fn=un[1],pn=(0,c.useRef)(),hn=(0,c.useRef)(),mn=(0,c.useRef)(),gn=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ee(_e),null==Ce||Ce.setValue(_e),window.scrollTo(0,e)}),[_e]),(0,c.useEffect)((function(){null==K||K(Ze)}),[Ze]),(0,c.useEffect)((function(){if(pn.current){var e=function(e,t){if(!ee){var i=t.clipboardData;if(i){var o=i.types.toString(),a=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(t.preventDefault(),"stex"==C)return;try{var r,l=a[1];"file"===(null===(r=a[0])||void 0===r?void 0:r.kind)&&(l=a[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,N.I)(s,(function(e){var t,i,o;e.id?(null==s||null===(t=s.type)||void 0===t?void 0:t.indexOf("image"))>-1?n.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?n.replaceSelection('')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?n.replaceSelection('').concat(s.name,"")):ge.includes(c)?n.replaceSelection('').concat(s.name,"")):n.replaceSelection("[".concat(s.name,"](").concat(oe.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){ae.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}t.preventDefault()},n=d().fromTextArea(pn.current,{mode:C,lineNumbers:!w,lineWrapping:!0,value:t,autoCloseTags:!0,autoCloseBrackets:!0});return n.on("keyup",(function(e,t){8===t.keyCode&&(""==e.getValue()?n.setOption("placeholder",Ae):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(),o=t.getLine(i.line),a=o.charAt(i.ch-1),r=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=r>l?r:l,c=r>l?3:4;if(-1===me.indexOf(a))return null;if(console.log("change1:",n,e,o,i,s,r,l,a),s>=0&&i.ch-s<5){var u=s+c;return t.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);t&&n.preventDefault()}})),j&&n.focus(),n.on("paste",e),fe&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Te(n),function(){n.off("paste",e)}}}),[]);var vn=(0,c.useCallback)((function(){hn.current}),[$e,hn,Ze]);(0,c.useEffect)((function(){if(Ce){var e=function(){var e=new f.Z((function(e){var n,t=o()(e);try{for(t.s();!(n=t.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(vn(),Ce.setSize("100%","100%"),Ce.refresh())}}catch(e){t.e(e)}finally{t.f()}}));return e.observe(pn.current.parentElement),e}();return function(){var n,t;null!==(n=pn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(t=pn.current)||void 0===t?void 0:t.parentElement)}}}),[Ce,vn]),(0,c.useEffect)((function(){if(Ce){for(var e=[],n=function(){var n=r()(i[t],2),o=n[0],a=n[1],l=s()({},o,(function(){wn(a)}));e.push(l),Ce.addKeyMap(l)},t=0,i=Object.entries(xe);t0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(M);e>=Ke+1e4&&(!n||n!==Le)&&(window.sessionStorage.setItem(M,Le),on(!0))}}),1e4),(0,c.useEffect)((function(){Fe(A)}),[Ce,A]),(0,c.useEffect)((function(){Ce&&j&&Ce.focus()}),[Ce,j]),(0,c.useEffect)((function(){if(Re&&Ce){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=Ce.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[Ce,Re]),(0,c.useEffect)((function(){if(Ce&&J){var e=function(e,n){J(e,n)};return Ce.on("beforeChange",e),function(){Ce.off("beforeChange",e)}}}),[Ce,J]),(0,c.useEffect)((function(){if(Ce&&V){var e=function(){V(Ce.getValue())};return Ce.on("blur",e),function(){Ce.off("blur",e)}}}),[Ce,V]),(0,c.useEffect)((function(){if(Ce){var e=function(e,n){var t=e.getValue();Ee(t),Qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(H?i(t,An(t)):i(t))};return Ce.on("change",e),function(){Ce.off("change",e)}}}),[Ce,i]),(0,c.useEffect)((function(){if(Ce)if(null==t)Ce.setValue(""),Ee("");else{var e=window.scrollY||window.pageYOffset;t!==Ce.getValue()&&(Ce.setValue(t),Ee(t),Ce.setCursor(fe?1:Ce.lineCount(),0),window.scrollTo(0,e))}}),[Ce,t]);var wn=(0,c.useCallback)((function(e){var n=Ce.getCursor(),t=Ce.getSelection(),i=t.split("\n");switch(e){case"bold":return Ce.replaceSelection("**"+t+"**"),""===t&&Ce.setCursor(n.line,n.ch+2),Ce.focus();case"italic":return Ce.replaceSelection("*"+t+"*"),""===t&&Ce.setCursor(n.line,n.ch+1),Ce.focus();case"code":return Ce.replaceSelection("`"+t+"`"),""===t&&Ce.setCursor(n.line,n.ch+1),Ce.focus();case"inline-latex":return Ve("inline-latex"),Ce.focus();case"latex":return Ce.replaceSelection("```latex\n"+t+"\n```"),Ce.setCursor(n.line+1,t.length+1),Ce.focus();case"line-break":return Ce.replaceSelection("
\n"),Ce.focus();case"list-ul":return""===t?Ce.replaceSelection("- "+t):Ce.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ce.focus();case"list-ol":return""===t?Ce.replaceSelection("1. "+t):Ce.replaceSelection(i.map((function(e,n){return""===e?"":"".concat(n+1,". ").concat(e)})).join("\n")),Ce.focus();case"add-null-ch":return""===t&&Ce.setCursor(n.line,n.ch),Ce.replaceSelection("▁"),Ce.focus();case"add-signal":return""===t&&Ce.setCursor(n.line,n.ch),Ce.replaceSelection("@▁@"),Ce.focus();case"add-multiple":return""===t&&Ce.setCursor(n.line,n.ch),Ce.replaceSelection(me),Ce.focus();case"inster-template-1":return""===t&&Ce.setCursor(n.line,n.ch),Ce.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ce.focus();case"eraser":return Ce.setValue(""),Ce.focus();case"trigger-watch":return Fe(!Re),Ce.focus();case"trigger-full-screen":return We(!Ze),Ce.focus();case re:return void Ve(re);case ue:return void Ve(ue);case le:return void Ve(le);case ce:return void Ve(ce);case"maths-latex":return void Ve("maths-latex");case se:return void Ve(se);case de:return void Ve(de);default:throw new Error}}),[Ce,Re,Ze]),xn=(0,c.useCallback)((function(e,n){var t,i,o,a,r;switch(Ve(""),Ue){case re:var l=e.title,s=e.link;return Ce.replaceSelection("[".concat(l,"](").concat(s,")")),Ce.focus();case ue:var c=e.language,u=e.content;return Ce.replaceSelection(["```"+c,u,"```"].join("\n")),Ce.focus();case"maths-latex":for(var d=atob(e),f=new Uint8Array(d.length),p=0;p-1||null==v||!v.type?g?Ce.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Ce.replaceSelection("![,](".concat(m,")")):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("video"))>-1?Ce.replaceSelection('')):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?Ce.replaceSelection('').concat(v.name,"")):ge.includes(w)?Ce.replaceSelection('').concat(v.name,"")):Ce.replaceSelection("[".concat(v.name,"](").concat(oe.Z.API_SERVER).concat(m,")")),Ce.focus();case de:for(var x=e.row,b=e.col,y=e.align,j="\n",A=0;A300&&(n=300),en(g+n+"px")}},i=mn.current,o=!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)}}}),[Ce,mn]),(0,c.useEffect)((function(){en(g)}),[g]);var jn={width:ve(l),height:ve($e)},An=((0,c.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(H){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,t,i){n.push({multiLine:!("@▁@"===e)})}))}return n});(0,c.useEffect)((function(){be[Ue]&&Ue!==ce&&Ue!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;sn(n),fn(t)}),0)}),[Ue]);var Sn=function(e,n,t,i){var o=document.body.clientHeight,a=document.body.clientWidth;return!(e<20&&t>e||e>a-20&&tn||n>o-20&&i0&&(0,l.jsx)("div",{className:r,children:t.map((function(e,n){return(0,l.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,l.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3D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5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},n)}))}),f]}),i&&(0,l.jsx)("img",{style:{marginTop:33,marginRight:38},src:i,width:c})]})})},c=t(79800),u=t.n(c),d="row___aXJjm",f="title___HUKL0",p="tagsWrap___XB2W3",h="action___VdHb1",m="bar___t1kKC",g="tag___V7Eft",v="name___Hk1Ip",w="num___xQpcH",x="active___XryTX",b="tagsBorderWrap___OMxjs",y=t(92310),j=t.n(y),A=t(89392),S=function(e){var n=e.dataSource,t=void 0===n?[]:n,o=e.value,a=e.onChange,r=e.onTitleChange,s=e.className,c=e.title,y=e.titleWidth,S=void 0===y?41:y,_=e.style,k=void 0===_?{}:_,B=e.fontColor,N=void 0===B?"#6A7283":B,C=e.showCount,T=(0,i.useState)(0),P=u()(T,2),M=P[0],L=P[1],E=(0,i.useState)(!1),D=u()(E,2),G=D[0],R=D[1],F=(0,i.useRef)(null),O=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;0!==t.length&&((null==F||null===(e=F.current)||void 0===e?void 0:e.clientHeight)>97?L(1):L(0));0===t.length&&L(0),R(!1)}),[t]),(0,l.jsxs)("div",{className:j()(d,s),style:k,children:[(0,l.jsx)("div",{onClick:(0,A.throttle)((function(){return null==r?void 0:r()}),2e3),style:{width:S,marginTop:G?12:4},className:"".concat(f," ").concat(r?"current":""),children:c}),(0,l.jsxs)("div",{className:G?"".concat(p," ").concat(b):p,children:[(0,l.jsx)("div",{className:m,ref:O,style:M>0?{height:1===M?97:"auto",overflow:1===M?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,l.jsx)("div",{className:g,ref:F,children:null==t?void 0:t.map((function(e){return(0,l.jsxs)("span",{onClick:function(){return a(e.id)},style:{color:N},className:o===e.id?x:"",children:[(0,l.jsx)("span",{title:e.name,className:v,children:e.name}),!!C&&(0,l.jsx)("span",{className:w,children:e.count})]},e.id)}))})}),!!M&&(0,l.jsx)(i.Fragment,{children:1===M?(0,l.jsxs)("div",{onClick:function(){var e;L(2),(null==F||null===(e=F.current)||void 0===e?void 0:e.clientHeight)>245?R(!0):R(!1)},className:h,children:["展开",(0,l.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,l.jsxs)("div",{onClick:function(){O.current.scrollTop=0,L(1),R(!1)},className:h,children:["收起",(0,l.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},_="tabs___GTqPV",k="active___F26E8",B=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,o=e.onChange,a=e.className,r=e.style,s=void 0===r?{}:r;return(0,l.jsx)("div",{style:s,className:j()(_,a),children:t.map((function(e){return(0,l.jsx)("span",{onClick:function(){return o(e.id)},className:i===e.id?k:"",children:e.name},e.id)}))})},N="input___PW2zI",C="dropdown___vSy8B",T="menu___NiyBu",P="text___Grueu",M="b1___ZKryM",L="b2___aKyGa",E=t(92832),D=function(e){var n,t=e.dataSource,o=void 0===t?[]:t,a=e.value,r=void 0===a?"":a,s=e.onChange,c=e.onInputChange,d=void 0===c?function(){}:c,f=e.className,p=e.style,h=void 0===p?{}:p,m=e.placeholder,g=(e.allowClear,(0,i.useState)("")),v=u()(g,2),w=v[0],x=v[1],b=(0,i.useState)(""),y=u()(b,2),A=y[0],S=y[1];(0,i.useEffect)((function(){var e,n=r;null!==(e=JSON.stringify(r))&&void 0!==e&&e.includes("{")&&(x(r.id),n=r.value||"");try{S(decodeURIComponent(n||""))}catch(e){S(decodeURIComponent(n||""))}}),[r]);var _=function(){s(encodeURIComponent(A),w||null)};return(0,l.jsxs)("div",{className:j()(N,f),style:h,children:[!!o.length&&(0,l.jsxs)("div",{className:C,children:[(0,l.jsxs)("div",{className:P,children:[null===(n=o.find((function(e){return e.id===w})))||void 0===n?void 0:n.name,(0,l.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,l.jsx)("b",{className:M}),(0,l.jsx)("b",{className:L})]}),(0,l.jsx)("div",{className:T,children:o.map((function(e,n){return(0,l.jsx)("div",{onClick:function(){var n;(n=e.id)!==w&&(x(n),s(encodeURIComponent(A),n))},children:e.name},n)}))})]}),(0,l.jsx)(E.Z,{onPressEnter:_,value:A,onChange:function(e){S(e.target.value),d(encodeURIComponent(e.target.value),w||null)},bordered:!1,placeholder:m}),(0,l.jsx)("i",{onClick:_,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},G="quickPager___GM30J",R="disabled___Ozc8I",F=function(e){var n=e.value,t=e.onChange,i=e.className,o=e.total,a=e.pageSize,r=e.style,s=void 0===r?{}:r,c=n<2,u=n>=Math.ceil(o/a);return o<=a?(0,l.jsx)(l.Fragment,{}):(0,l.jsxs)("div",{className:j()(G,i),style:s,children:[(0,l.jsx)("div",{onClick:function(){c||t(n-1,"prev")},className:c?R:"",children:"上一页"}),(0,l.jsx)("div",{onClick:function(){u||t(n+1,"next")},className:u?R:"",children:"下一页"})]})},O="list___oOsiS",H="wrap___G6T7F",Z="lockWrap___Rl79E",W="li___oZZ7l",z="cover___b2bYW",I="img___IQX7w",U="sign___HkT6C",V="name___SsJx8",q="e___TMqq0",J="tags___bcjyo",K="rate___YACg7",Q=t(71418),X=t(6848),Y=t(31395),$=t(92723),ee=t(21082),ne=t(96908),te=t(57177),ie=t(81378),oe=t(54313),ae=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,o=e.col,a=void 0===o?4:o,r=e.right,s=e.bottom,c=void 0===s?23:s,u=e.precision,d=void 0===u?0:u,f=e.wrapWidth,p=void 0===f?1200:f,h=e.trackEventItems,m=e.loading,g=Math.floor((p-(a-1)*r)/a);return(0,l.jsx)(Q.Z,{spinning:m,children:(0,l.jsxs)("div",{className:j()(O,n),children:[!!i.length&&i.map((function(e,n){var t=e.name,i=e.id,o=e.identifier,s=e.power,u=(e.cover_image_id,e.pic);return(0,l.jsxs)("div",{className:H,style:{width:g,marginRight:(1+n)%a==0?0:r+d,marginBottom:c},children:[(0,l.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(o,"/challenges"),className:W,onClick:function(e){e.preventDefault(),h&&(0,ee.L9)([h]),s&&(0,ee.xg)("/shixuns/".concat(o,"/challenges"))},children:[(0,l.jsxs)("div",{className:I,children:[(0,l.jsx)("img",{className:z,src:"".concat(u)}),e.is_jupyter&&(0,l.jsx)("img",{className:U,src:ne}),e.is_jupyter_lab&&(0,l.jsx)("img",{className:U,src:te}),e.is_unity_3d&&(0,l.jsx)("img",{className:U,src:ie})]}),(0,l.jsx)("div",{className:V,children:(0,l.jsx)(X.Z,{title:t||"实践项目名称-未填写",children:(0,l.jsx)("span",{className:q,children:t||"实践项目名称-未填写"})})}),(0,l.jsxs)("div",{className:J,children:[(0,l.jsx)(X.Z,{placement:"bottom",title:"关卡数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,l.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,l.jsx)(X.Z,{placement:"bottom",title:"学习人数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,l.jsx)("span",{children:e.myshixuns_count})]})}),(0,l.jsx)(X.Z,{placement:"bottom",title:"难度等级",children:(0,l.jsx)("span",{children:(0,l.jsx)("span",{children:e.level})})}),(0,l.jsxs)("div",{className:K,children:[(0,l.jsx)(Y.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,l.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!s&&(0,l.jsxs)("div",{className:Z,children:[(0,l.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,l.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},i)})),!i.length&&(0,l.jsx)(oe.Z,{})]})})},re="list___jb2Ay",le="wrap___VsQDr",se="li___IxCLC",ce="cover___Mu8wr",ue="img___IpFLA",de="movebq___mF7wt",fe="bq___Bil0T",pe="sign___DXJ4d",he="name___l7FoJ",me="e___pXQUG",ge="unit___wCIFR",ve="tags___w_Mil",we=t(93697),xe=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,o=e.col,a=void 0===o?4:o,r=e.right,s=e.bottom,c=void 0===s?23:s,u=e.precision,d=void 0===u?0:u,f=e.wrapWidth,p=void 0===f?1200:f,h=e.trackEventItems,m=e.loading,g=e.onRemove,v=void 0===g?function(){}:g,w=e.isCurrent,x=void 0===w||w,b=e.showAlias,y=void 0!==b&&b,A=Math.floor((p-(a-1)*r)/a),S=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,l.jsx)(Q.Z,{spinning:m,children:(0,l.jsxs)("div",{className:j()(re,n),children:[!(null==i||!i.length)&&(null==i?void 0:i.map((function(e,n){var t,i=e.name,o=e.id,s=e.identifier,u=(e.featured,e.school_name),f=e.image_url;e.excellent,e.is_plan;return(0,l.jsx)("div",{className:le,style:{width:A,marginRight:(1+n)%a==0?0:r+d,marginBottom:c},children:(0,l.jsxs)("a",{className:se,onClick:function(e){e.preventDefault(),e.stopPropagation(),h&&(0,ee.L9)([h]),(0,ee.xg)("/paths/".concat(s))},children:[(0,l.jsxs)("div",{className:ue,children:[(0,l.jsx)("img",{className:ce,src:"".concat(f)}),x&&(0,we.bg)()&&(null==e?void 0:e.studying)&&(0,l.jsxs)("div",{className:"".concat(de," user-path-items"),onClick:function(n){n.stopPropagation(),v(e)},children:[(0,l.jsx)("i",{className:"iconfont icon-yichu1 mr5 c-red"}),(0,l.jsx)("span",{className:"c-red",children:"移除"})]}),null==e||null===(t=e.subject_tags)||void 0===t?void 0:t.map((function(e,n){var t;if(0===n){var i,o=null===(i=S.find((function(n){return n.name==e})))||void 0===i?void 0:i.swimg;return(0,l.jsx)("img",{className:pe,src:o,style:{left:"-4px"}})}var a=null===(t=S.find((function(n){return n.name==e})))||void 0===t?void 0:t.ptimg;return(0,l.jsx)("img",{className:pe,src:a,style:{left:"".concat(48+52*(n-1)+2*n,"px")}})})),(0,l.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,l.jsx)("div",{className:fe,children:"开放课程"})})]}),(0,l.jsx)("div",{className:he,children:(0,l.jsx)(X.Z,{title:y&&null!=e&&e.excellent_alias_name?(0,l.jsxs)("span",{children:["课程原名:".concat(i),(0,l.jsx)("br",{}),(0,l.jsx)("span",{children:"课程别名:".concat(null==e?void 0:e.excellent_alias_name)})]}):i,children:(0,l.jsx)("span",{className:me,children:y&&(null==e?void 0:e.excellent_alias_name)||i})})}),(0,l.jsx)(X.Z,{title:"发布单位:".concat(u),children:(0,l.jsxs)("div",{className:ge,children:[(0,l.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),u]})}),(0,l.jsx)("div",{className:ve,children:(0,l.jsxs)("div",{children:[(0,l.jsx)(X.Z,{placement:"bottom",title:"章节数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,l.jsx)("span",{children:e.stages_count})]})}),(0,l.jsx)(X.Z,{placement:"bottom",title:"学习人数",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,l.jsx)("span",{children:e.members_count})]})})]})})]})},o)}))),!i.length&&(0,l.jsx)(oe.Z,{})]})})},be={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ye=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,o=e.col,a=void 0===o?4:o,r=e.right,s=e.bottom,c=void 0===s?23:s,u=e.precision,d=void 0===u?0:u,f=e.wrapWidth,p=void 0===f?1200:f,h=e.trackEventItems,m=e.loading,g=Math.floor((p-(a-1)*r)/a);return(0,l.jsx)(Q.Z,{spinning:m,children:(0,l.jsxs)("div",{className:j()(be.list,n),children:[!!i.length&&i.map((function(e,n){var t=e.subject_identifier,i=e.id,o=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,l.jsxs)("div",{className:be.wrap,style:{width:g,marginRight:(1+n)%a==0?0:r+d,marginBottom:c},children:[(0,l.jsxs)("a",{className:be.li,onClick:function(n){n.preventDefault(),(0,ee.Wn)(null==e?void 0:e.forbid_visit_info)||(h&&(0,ee.L9)([h]),(0,ee.xg)(e.first_category_url))},children:[(0,l.jsxs)("div",{className:be.top,children:[(0,l.jsx)(X.Z,{title:e.name,children:(0,l.jsx)("div",{className:be.name,children:e.name})}),(0,l.jsx)("img",{className:be.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,l.jsx)("div",{className:be.text,title:e.creator,children:e.creator}),t&&(0,l.jsxs)("div",{className:be.btns,children:[(0,l.jsx)("div",{children:"开放课程"}),(0,l.jsx)("aside",{children:"开放课堂"})]}),o&&(0,l.jsx)("div",{className:be.sign,children:"公开"})]}),(0,l.jsxs)("div",{className:be.bottom,children:[e.visits>0&&(0,l.jsx)(X.Z,{title:"访问量",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,l.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,l.jsx)(X.Z,{title:"成员",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,l.jsx)(X.Z,{title:"作业",placement:"bottom",children:(0,l.jsxs)("span",{children:[(0,l.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,l.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,l.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,l.jsxs)("div",{className:be.lockWrap,children:[(0,l.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,l.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},i)})),!i.length&&(0,l.jsx)(oe.Z,{})]})})},je={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Ae=t(5296),Se=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,o=e.onChange,a=e.className,r=e.style,s=void 0===r?{}:r,c=e.tabBarExtraContent;return(0,l.jsxs)("div",{className:j()(je.tabs,a),style:s,children:[(0,l.jsx)("div",{className:je.tabsWrap,children:t.map((function(e,n){return(0,l.jsxs)("aside",{className:je.tab,onClick:function(){o(e.id),e.link&&Ae.history.push(e.link)},children:[(0,l.jsx)("div",{className:i===e.id?je.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,l.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,l.jsx)(X.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,l.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,l.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,l.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},n)}))}),(0,l.jsx)("div",{className:je.tabBar,children:c})]})},_e=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,o=e.children;return(0,l.jsx)("div",{className:j()(n),style:i,children:o})},ke="orderWrap___ZfyGX",Be="orderIconWrap___XTB_O",Ne="orderAsc___KWHmA",Ce="orderDesc___rHdbB",Te="active___a7eSP",Pe="cursorPointer___gs9kL",Me="orderTextWrap___teAKn",Le=t(38854),Ee=t(20834),De=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Ge=function(e){var n,t=e.sortValue,i=e.dropValue,o=e.className,a=e.onSort,r=e.onDrop,s=e.dataSource,c=void 0===s?De:s;return(0,l.jsxs)("div",{className:j()(ke,o),children:[(0,l.jsx)(Le.Z,{dropdownRender:function(){return(0,l.jsx)(Ee.Z,{children:c.map((function(e,n){return(0,l.jsx)(Ee.Z.Item,{onClick:function(){return r(e.id)},children:e.name},n)}))})},children:(0,l.jsx)("span",{className:Me,children:null===(n=c.find((function(e){return i===e.id})))||void 0===n?void 0:n.name})}),(0,l.jsxs)("span",{className:Be,children:[(0,l.jsx)("span",{className:Ne,children:(0,l.jsx)("i",{className:"asc"===t?"iconfont icon-sanjiaoxing-up font12 ".concat(Pe," ").concat(Te):"iconfont icon-sanjiaoxing-up font12 ".concat(Pe),onClick:function(){return a("asc"===t?"desc":"asc")}})}),(0,l.jsx)("span",{className:Ce,children:(0,l.jsx)("i",{className:"desc"===t?"iconfont icon-sanjiaoxing-down font12 ".concat(Pe," ").concat(Te):"iconfont icon-sanjiaoxing-down font12 ".concat(Pe),onClick:function(){return a("asc"===t?"desc":"asc")}})})]})]})},Re=t(82242),Fe=t.n(Re),Oe=t(7557),He=t.n(Oe),Ze=t(41498),We=t.n(Ze),ze=t(39647),Ie=t.n(ze),Ue={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ve=t(3113),qe=["className","style","children","loading","openLoading","onClick","size","shape"],Je=function(e){var n=e.className,t=e.style,o=e.children,a=e.loading,r=void 0!==a&&a,s=e.openLoading,c=e.onClick,d=void 0===c?function(){}:c,f=e.size,p=void 0===f?"middle":f,h=e.shape,m=void 0===h?"round":h,g=Ie()(e,qe),v=(0,i.useState)(!1),w=u()(v,2),x=w[0],b=w[1];return(0,l.jsx)(Ve.ZP,Fe()(Fe()({onClick:(0,A.throttle)(function(){var e=We()(He()().mark((function e(n){return He()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s&&b(!0),e.prev=1,e.next=4,d(n);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:s&&b(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(n){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:j()(Ue.btn,Ue["".concat(p,"-").concat(m)],n),style:t,size:p,shape:m,loading:x||r},g),{},{children:o}))},Ke="head___ghH72",Qe="node___mjPEy",Xe=function(e){var n=e.className,t=e.style,i=e.children,o=void 0===i?null:i,a=e.onClick,r=e.title;return(0,l.jsxs)("div",{className:j()(Ke,n),style:t,children:[(0,l.jsxs)("span",{className:"primary-hover",onClick:a,children:[(0,l.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,l.jsx)("b",{title:r,children:r}),(0,l.jsx)("div",{className:Qe,children:o})]})},Ye="btns___sNgTb",$e="confirm___Ozirl",en="cancel___aiq1I",nn=function(e){var n=e.confirmShow,t=void 0===n||n,i=e.confirmTitle,o=e.confirmClick,a=e.cancelShow,r=void 0===a||a,s=e.cancelTitle,c=e.cancelClick,u=e.className,d=e.style,f=e.confirmLoading,p=void 0!==f&&f;return(0,l.jsxs)("div",{className:j()(Ye,u),style:d,children:[t&&(0,l.jsx)(Ve.ZP,{loading:p,onClick:o,type:"primary",className:$e,children:i}),r&&(0,l.jsx)(Ve.ZP,{onClick:c,className:en,children:s})]})},tn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},on=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,o=e.LeftContent,a=e.children,r=e.RightContent;return(0,l.jsx)("div",{className:j()(tn.fixedBottom,n),style:i,children:(0,l.jsxs)("div",{className:tn.wrap,children:[(0,l.jsx)("div",{className:tn.left,children:o}),(0,l.jsx)("div",{className:tn.center,children:a}),(0,l.jsx)("div",{className:tn.right,children:r})]})})},an="crumbs___V41Oe",rn="hover___bEIVd",ln=function(e){var n=e.className,t=e.style,o=void 0===t?{}:t,a=e.dataSource,r=void 0===a?[]:a;return(0,l.jsx)("div",{className:j()(an,n),style:o,children:r.map((function(e,n){return n"," "]})]},n):(0,l.jsx)("span",{style:{color:"#5F6368"},children:e.name},n)}))})},sn=t(31797),cn=["onChange"],un=sn.Z.Countdown,dn=function(e){var n=e.onChange,t=Ie()(e,cn),o=(0,i.useState)(null),a=u()(o,2),r=a[0],s=a[1];(0,i.useEffect)((function(){"number"==typeof r&&r>=0&&n(r)}),[r]);return(0,l.jsx)(un,Fe()(Fe()({},t),{},{onChange:function(e){var n=Math.floor(e/1e3);s(n)}}))}},77818:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var i=t(59301);function o(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])}},90341:function(e,n,t){"use strict";t.d(n,{$J:function(){return s},JZ:function(){return u},bN:function(){return p},jP:function(){return f},rO:function(){return c}});var i=t(7557),o=t.n(i),a=t(41498),r=t.n(a),l=t(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=r()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(n,".json"));case 2:return t=e.sent,e.abrupt("return",0===t.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return(0,l.v_)("libraries.json",e)}function p(e,n){return(0,l.gz)("libraries/".concat(e,".json"),n)}},1058:function(e,n,t){"use strict";t.d(n,{U:function(){return f}});var i=t(7557),o=t.n(i),a=t(82242),r=t.n(a),l=t(41498),s=t.n(l),c=t(79800),u=t.n(c),d=t(59301);function f(e,n){var t=(0,d.useState)(n),i=u()(t,2),a=i[0],l=i[1],c=(0,d.useState)(!1),f=u()(c,2),p=f[0],h=f[1],m=(0,d.useState)(),g=u()(m,2),v=g[0],w=g[1],x=function(){var t=s()(o()().mark((function t(i){var s,c,u,d=arguments;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=d.length>1&&void 0!==d[1]&&d[1],c=s?n:r()(r()({},a),i),h(!0),l(c),t.next=6,e(c);case 6:return u=t.sent,h(!1),w(u),t.abrupt("return",u);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return[a,p,x,v]}},96908:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6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Ow1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__Board__Add__index.b5800f95.async.js b/p__Classrooms__Lists__Board__Add__index.b5800f95.async.js new file mode 100644 index 0000000000..e4c85c37ce --- /dev/null +++ b/p__Classrooms__Lists__Board__Add__index.b5800f95.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[43442,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,o=!1,r=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,I(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,O(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,o="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var C=function(e){return e&&"false"!==e},j=function(t,n,i){x(m)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!w)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(m)<=4.4)C(n.showToolBar)&&(n.height-=7),C(n.showAlgebraInput)&&(n.height-=37),n.width<605&&C(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(C(n.showToolBar)||C(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=C(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},b||v.appendChild(_)):r.appendChild(_),v.appendChild(r),b||t.appendChild(v),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),Z("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(m)<5&&(e.className+=" geogebraweb")):k(e,t)}if(o){scriptLoadStarted=!0;for(var B=0;B0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):j(o,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=i,j(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",o.appendChild(a)}return o.appendChild(c),o},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,t){if(m=e,t)I(m,!0);else{var r,a,l=!o;if(l){var s=x(m);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?r+m:"https://www.geogebra.org/apps/5.2.814.0/",G)if(m.slice(-1*G[u].length)===G[u]||m.slice(-1*(G[u].length+1))===G[u]+"/")return void I(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||C(n.showToolBar)||C(n.showMenuBar)||C(n.showAlgebraInput)||C(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",I(a,!1)}},I=function(e,t){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===t&&(t=-1===e.indexOf("http")),p=t,g="web.nocache.js",w=!1;var n=f.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",w=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var i=parseFloat(m);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),O("5.0",t))}},Z=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&I(c,p),l=!0}return void 0!==n.material_id?S(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,i,o,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,f=0,p=0,h=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-m.width-m.left,p=u<=480?10:30):(p=m.left,f=u<=480?10:30),d=p+f)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(t-i.width)/2,r=(n-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],o=O;o0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var C=function(e){var t=e.value,n=e.onChange,i=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,T=e.title,C=void 0===T?"上传附件":T,j=e.showRemoveModal,P=void 0!==j&&j,L=e.accept,N=void 0===L?"":L,E=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,O=e.aloneClear,I=void 0!==O&&O,Z=e.realTimeRemove,R=void 0===Z||Z,D=e.uploadText,F=e.setFileProgress,H=e.showFileProgress,z=(0,p.useState)(!1),W=f()(z,2),V=W[0],q=W[1],U=(0,p.useState)(t||[]),K=f()(U,2),Y=K[0],J=K[1],X=(0,p.useState)(1),$=f()(X,2),Q=$[0],ee=$[1];(0,p.useEffect)((function(){t&&(1===Q&&J(u()(t)),ee(2),G===(null==t?void 0:t.length)&&q(!0))}),[t]);var te=function(){setTimeout((function(){Y.pop(),J(u()(Y))}),500)};H&&F(Y.some((function(e){return"uploading"===e.status})));var ne,ie={multiple:!0,disabled:V,accept:N,withCredentials:!0,fileList:Y,beforeUpload:function(e,t){var n=e.size/1024/1024;return Y.concat(t).length>G?(Y.pop(),J(u()(Y)),m.ZP.error("最多只能上传".concat(G,"个文件")),I?Promise.reject():(te(),!1)):n=G?q(!0):q(!1),J(u()(Y)),Y=Y.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,Y),n(Y)):m.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(ne=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!P){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return ne.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(B,s()(s()({},ie),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!M&&(0,y.jsxs)(h.Z,s()(s()({},ie),{},{children:[(0,y.jsxs)(w.ZP,{disabled:V,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),C]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:D||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return w}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),f=n.n(d),p=(n(80443),n(90630),n(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function w(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,l.useEffect)((function(){h&&h.setOption("mode",i)}),[h,i]),(0,l.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,l.useEffect)((function(){if(c.current&&!h){var e=f().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,l.useState)("python"),r=a()(i,2),d=r[0],f=r[1];return(0,p.jsxs)(c.Z,o()(o()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){f(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(w,{mode:d})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var i=n(91232),o=n.n(i),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),f=n(76374),p=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),w=n.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,o=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(o)},children:[(0,h.jsx)("i",{className:"".concat(i)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(v,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,w()(w()({},e),{},{onActionCallback:o})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),B={labelCol:{span:4},wrapperCol:{span:20}},T=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,w()(w()({},B),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},C=n(73145),j=n(28486),P=n(95237),L=n(36709),N=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,h.jsx)(P.Z,{style:{height:"100vh"},children:(0,h.jsx)(L.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),M=n.n(E),A=n(41498),G=n.n(A),O=n(37205),I=n.n(O),Z=n(12378);function R(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(R,go.CommandHandler),R.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},R.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},R.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},R.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},R.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},R.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},R.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},R.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))i.y?1:n.xi.x?1:0})),t},R.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},R.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(R.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(R.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var D=R,F=(n(41034),n(85160)),H=n(43418),z=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=Z;var U=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),f=d[0],p=d[1],m=function(){var e=G()(M()().mark((function e(){var t,o;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(H.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(P.Z,{children:[(0,h.jsx)(z.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(z.Z,{onClick:function(){l.current=!l.current,p(f+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(F.FI,{initDiagram:function(){var e=Z.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",f="#fffcd5",p="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",w="#b3e6b3",v="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var o=n.part.adornedPart,r=(new Z.Point).setRectSpot(o.actualBounds,t);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var l={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(Z.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(Z.Spot.Top)||t.equals(Z.Spot.Bottom)?25:18,height:t.equals(Z.Spot.Top)||t.equals(Z.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(t){return e(Z.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(Z.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(Z.Panel,"Horizontal",_(u,"fill"),_(f,"fill"),_(p,"fill"),_(h,"fill"))),e("ContextMenuButton",e(Z.Panel,"Horizontal",_(g,"fill"),_(w,"fill"),_(m,"fill"),_(v,"fill")))]}function S(){return[e("ContextMenuButton",e(Z.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(Z.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function B(t,n){return n||(n="thickness"),e(Z.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function T(t,n){return n||(n="dash"),e(Z.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function C(){return[e("ContextMenuButton",e(Z.Panel,"Horizontal",B(1),B(2),B(3),B(4))),e("ContextMenuButton",e(Z.Panel,"Horizontal",T(null),T([2,4]),T([4,4])))]}function j(t,n){return n||(n="figure"),e(Z.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function P(t){return e(Z.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function L(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(Z.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function N(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",Z.Spot.stringify(Z.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(Z.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var i=0,o=Z.Spot.RightSide;t.equals(Z.Spot.Top)?(i=270,o=Z.Spot.TopSide):t.equals(Z.Spot.Left)?(i=180,o=Z.Spot.LeftSide):t.equals(Z.Spot.Bottom)&&(i=90,o=Z.Spot.BottomSide),n||(i-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",Z.Spot.stringify(o)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(Z.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return i.current=new Z.Diagram(o.current,{padding:20,grid:e(Z.Panel,"Grid",e(Z.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(Z.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(D),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(Z.Node,"Auto",{locationSpot:Z.Spot.Center,locationObjectName:"SHAPE",desiredSize:new Z.Size(120,60),minSize:new Z.Size(40,40),resizable:!0,resizeCellSize:new Z.Size(10,10),rotatable:!0},new Z.Binding("location","loc",Z.Point.parse).makeTwoWay(Z.Point.stringify),new Z.Binding("desiredSize","size",Z.Size.parse).makeTwoWay(Z.Size.stringify),e(Z.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Z.Spot.AllSides,toSpot:Z.Spot.AllSides},new Z.Binding("figure"),new Z.Binding("fill"),new Z.Binding("stroke","borderColor"),new Z.Binding("strokeWidth","thickness"),new Z.Binding("strokeDashArray","dash")),e(Z.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(Z.TextBlock,{margin:1,textAlign:"center",overflow:Z.TextBlock.OverflowEllipsis,editable:!0},new Z.Binding("text").makeTwoWay(),new Z.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(Z.Panel,"Vertical",{maxSize:new Z.Size(200,NaN)},e(Z.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new Z.Binding("text")),e(Z.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new Z.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(Z.Adornment,"Spot",e(Z.Placeholder,{padding:10}),b(Z.Spot.Top,"TriangleUp"),b(Z.Spot.Left,"TriangleLeft"),b(Z.Spot.Right,"TriangleRight"),b(Z.Spot.Bottom,"TriangleDown"),y({alignment:new Z.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(Z.Panel,"Horizontal",j("Rectangle"),j("RoundedRectangle"),j("Ellipse"),j("Diamond"))),e("ContextMenuButton",e(Z.Panel,"Horizontal",j("Parallelogram2"),j("ManualOperation"),j("Procedure"),j("Cylinder1"))),e("ContextMenuButton",e(Z.Panel,"Horizontal",j("Terminator"),j("CreateRequest"),j("Document"),j("TriangleDown"))),k(),S(),C()),i.current.groupTemplate=e(Z.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Z.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new Z.Binding("location","loc",Z.Point.parse).makeTwoWay(Z.Point.stringify),e(Z.Panel,"Auto",{name:"BODY"},e(Z.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Z.Spot.AllSides,toSpot:Z.Spot.AllSides},new Z.Binding("fill"),new Z.Binding("stroke","color"),new Z.Binding("strokeWidth","thickness"),new Z.Binding("strokeDashArray","dash")),e(Z.Placeholder,{background:"transparent",margin:20})),e(Z.TextBlock,{alignment:Z.Spot.Top,alignmentFocus:Z.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new Z.Binding("text"),new Z.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(Z.Adornment,"Spot",e(Z.Panel,"Auto",e(Z.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(Z.Placeholder,{margin:1.5})),y({alignment:Z.Spot.TopRight,alignmentFocus:Z.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),C()),i.current.linkTemplate=e(Z.Link,{layerName:"Foreground",routing:Z.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Z.Binding("fromSpot","fromSpot",Z.Spot.parse),new Z.Binding("toSpot","toSpot",Z.Spot.parse),new Z.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new Z.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new Z.Binding("points").makeTwoWay(),e(Z.Shape,{strokeWidth:2},new Z.Binding("stroke","color"),new Z.Binding("strokeWidth","thickness"),new Z.Binding("strokeDashArray","dash")),e(Z.Shape,{segmentIndex:0,segmentOffset:new Z.Point(15,0),segmentOrientation:Z.Link.OrientAlong,alignmentFocus:Z.Spot.Right,figure:"circle",width:10,strokeWidth:0},new Z.Binding("fill","color"),new Z.Binding("visible","dir",(function(e){return 1===e}))),e(Z.Shape,{segmentIndex:-1,segmentOffset:new Z.Point(-10,6),segmentOrientation:Z.Link.OrientPlus90,alignmentFocus:Z.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Z.Binding("fill","color"),new Z.Binding("visible","dir",(function(e){return e>=1})),new Z.Binding("width","thickness",(function(e){return 7+3*e})),new Z.Binding("height","thickness",(function(e){return 7+3*e})),new Z.Binding("segmentOffset","thickness",(function(e){return new Z.Point(-15,4+1.5*e)}))),e(Z.Shape,{segmentIndex:0,segmentOffset:new Z.Point(15,-6),segmentOrientation:Z.Link.OrientMinus90,alignmentFocus:Z.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Z.Binding("fill","color"),new Z.Binding("visible","dir",(function(e){return 2===e})),new Z.Binding("width","thickness",(function(e){return 7+3*e})),new Z.Binding("height","thickness",(function(e){return 7+3*e})),new Z.Binding("segmentOffset","thickness",(function(e){return new Z.Point(-15,4+1.5*e)}))),e(Z.TextBlock,{alignmentFocus:new Z.Spot(0,1,-4,0),editable:!0},new Z.Binding("text").makeTwoWay(),new Z.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(Z.Adornment,e(Z.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:P(2)},new Z.Binding("pathPattern","thickness",P)),y({alignmentFocus:new Z.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",S(),C(),e("ContextMenuButton",e(Z.Panel,"Horizontal",L(0),L(1),L(2))),e("ContextMenuButton",e(Z.Panel,"Horizontal",e(Z.Panel,"Spot",N(!1),E(Z.Spot.Top,!1),E(Z.Spot.Left,!1),E(Z.Spot.Right,!1),E(Z.Spot.Bottom,!1)),e(Z.Panel,"Spot",{margin:new Z.Margin(0,0,0,2)},N(!0),E(Z.Spot.Top,!0),E(Z.Spot.Left,!0),E(Z.Spot.Right,!0),E(Z.Spot.Bottom,!0))))),new Z.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(Z.Link,{locationSpot:Z.Spot.Center,selectionAdornmentTemplate:e(Z.Adornment,"Link",{locationSpot:Z.Spot.Center},e(Z.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(Z.Shape,{toArrow:"Standard",stroke:null}))},{routing:Z.Link.AvoidsNodes,curve:Z.Link.JumpOver,corner:5,toShortLength:4},new Z.Binding("points"),e(Z.Shape,{isPanelMain:!0,strokeWidth:2}),e(Z.Shape,{toArrow:"Standard",stroke:null})),model:new Z.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(I()(Z.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(Z.Node,"Auto",{locationSpot:Z.Spot.Center},new Z.Binding("location","location",Z.Point.parse).makeTwoWay(Z.Point.stringify),e(Z.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 Z.Binding("stroke").makeTwoWay(),new Z.Binding("fill").makeTwoWay(),new Z.Binding("figure")),e(Z.TextBlock,{margin:new Z.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new Z.Size(16,16),maxSize:new Z.Size(10,NaN),textAlign:"center",editable:!0},new Z.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(Z.Panel,"Grid",e(Z.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(Z.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,h.jsx)("div",{ref:o})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Y.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Y.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(_.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,o=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),f=d[0],p=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){m.current.appName=f?"3D":"graphing",s.current.inject("applet_container")}),[f]),(0,c.useEffect)((function(){p(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(P.Z,{align:"middle",children:[(0,h.jsx)(z.Z,{flex:1,children:(0,h.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,h.jsx)(z.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),oe=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},he=n(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function we(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ve=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},ve+"-B","bold"),ve+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,w=e.miniToolbar,v=void 0!==w&&w,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,B=e.mode,P=void 0===B?"markdown":B,L=e.id,E=void 0===L?"markdown-editor-id":L,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,O=void 0!==G&&G,I=e.showNullButton,Z=void 0!==I&&I,R=e.showNullProgramButton,D=void 0!==R&&R,F=e.hidetoolBar,z=void 0!==F&&F,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,fe=void 0!==te&&te,ve=e.disabledFill,xe=void 0!==ve&&ve,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,Be=void 0===Se?"":Se,Te=e.extraUse,Ce=(0,c.useState)(null),je=a()(Ce,2),Pe=je[0],Le=je[1],Ne=(0,c.useState)(n),Ee=a()(Ne,2),Me=Ee[0],Ae=Ee[1],Ge=(0,c.useState)(k),Oe=a()(Ge,2),Ie=Oe[0],Ze=Oe[1],Re=(0,c.useState)(V),De=a()(Re,2),Fe=De[0],He=De[1],ze=(0,c.useState)(""),We=a()(ze,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),ot=(0,c.useState)(0),rt=a()(ot,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],ft=(0,c.useRef)(),pt=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(Be),null==Pe||Pe.setValue(Be),window.scrollTo(0,e)}),[Be]),(0,c.useEffect)((function(){null==Y||Y(Fe)}),[Fe]),(0,c.useEffect)((function(){if(ft.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==P)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,j.I)(s,(function(e){var n,i,o;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(ft.current,{mode:P,lineNumbers:!v,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),o=n.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===me.indexOf(r))return null;if(console.log("change1:",t,e,o,i,s,a,l,r),s>=0&&i.ch-s<5){var u=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),fe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Le(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){pt.current}),[Qe,pt,Fe]);(0,c.useEffect)((function(){if(Pe){var e=function(){var e=new f.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Pe.setSize("100%","100%"),Pe.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(ft.current.parentElement),e}();return function(){var t,n;null!==(t=ft.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=ft.current)||void 0===n?void 0:n.parentElement)}}}),[Pe,gt]),(0,c.useEffect)((function(){if(Pe){for(var e=[],t=function(){var t=a()(i[n],2),o=t[0],r=t[1],l=s()({},o,(function(){wt(r)}));e.push(l),Pe.addKeyMap(l)},n=0,i=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(E,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Ze(k)}),[Pe,k]),(0,c.useEffect)((function(){Pe&&_&&Pe.focus()}),[Pe,_]),(0,c.useEffect)((function(){if(Ie&&Pe){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Pe.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Pe,Ie]),(0,c.useEffect)((function(){if(Pe&&K){var e=function(e,t){K(e,t)};return Pe.on("beforeChange",e),function(){Pe.off("beforeChange",e)}}}),[Pe,K]),(0,c.useEffect)((function(){if(Pe&&q){var e=function(){q(Pe.getValue())};return Pe.on("blur",e),function(){Pe.off("blur",e)}}}),[Pe,q]),(0,c.useEffect)((function(){if(Pe){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(D?i(n,_t(n)):i(n))};return Pe.on("change",e),function(){Pe.off("change",e)}}}),[Pe,i]),(0,c.useEffect)((function(){if(Pe)if(null==n)Pe.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Pe.getValue()&&(Pe.setValue(n),Ae(n),Pe.setCursor(fe?1:Pe.lineCount(),0),window.scrollTo(0,e))}}),[Pe,n]);var wt=(0,c.useCallback)((function(e){var t=Pe.getCursor(),n=Pe.getSelection(),i=n.split("\n");switch(e){case"bold":return Pe.replaceSelection("**"+n+"**"),""===n&&Pe.setCursor(t.line,t.ch+2),Pe.focus();case"italic":return Pe.replaceSelection("*"+n+"*"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"code":return Pe.replaceSelection("`"+n+"`"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"inline-latex":return qe("inline-latex"),Pe.focus();case"latex":return Pe.replaceSelection("```latex\n"+n+"\n```"),Pe.setCursor(t.line+1,n.length+1),Pe.focus();case"line-break":return Pe.replaceSelection("
\n"),Pe.focus();case"list-ul":return""===n?Pe.replaceSelection("- "+n):Pe.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Pe.focus();case"list-ol":return""===n?Pe.replaceSelection("1. "+n):Pe.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Pe.focus();case"add-null-ch":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("▁"),Pe.focus();case"add-signal":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("@▁@"),Pe.focus();case"add-multiple":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection(me),Pe.focus();case"inster-template-1":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Pe.focus();case"eraser":return Pe.setValue(""),Pe.focus();case"trigger-watch":return Ze(!Ie),Pe.focus();case"trigger-full-screen":return He(!Fe),Pe.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Pe,Ie,Fe]),vt=(0,c.useCallback)((function(e,t){var n,i,o,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Pe.replaceSelection("[".concat(l,"](").concat(s,")")),Pe.focus();case ue:var c=e.language,u=e.content;return Pe.replaceSelection(["```"+c,u,"```"].join("\n")),Pe.focus();case"maths-latex":for(var d=atob(e),f=new Uint8Array(d.length),p=0;p-1||null==w||!w.type?g?Pe.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Pe.replaceSelection("![,](".concat(m,")")):(null==w||null===(r=w.type)||void 0===r?void 0:r.indexOf("video"))>-1?Pe.replaceSelection('')):(null==w||null===(a=w.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Pe.replaceSelection('').concat(w.name,"")):ge.includes(v)?Pe.replaceSelection('').concat(w.name,"")):Pe.replaceSelection("[".concat(w.name,"](").concat(oe.Z.API_SERVER).concat(m,")")),Pe.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},i=ht.current,o=!1,r=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Pe,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:we(l),height:we(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(D){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>o-20&&i",children:[(0,I.jsx)(b.Z.Item,{children:(0,I.jsx)(w.Link,{to:"/classrooms/".concat(D.coursesId,"/board/").concat(D.categoryId||""),children:null==X||null===(t=X.course)||void 0===t?void 0:t.course_name})}),(0,I.jsx)(b.Z.Item,{children:(0,I.jsx)(w.Link,{to:"/classrooms/".concat(D.coursesId,"/board/").concat(D.categoryId||""),children:null==Q||null===(n=Q.boards)||void 0===n||null===(n=n.filter((function(e){return e.id==D.categoryId})))||void 0===n||null===(n=n[0])||void 0===n?void 0:n.name})}),(0,I.jsx)(b.Z.Item,{children:"帖子新建"})]})}),(0,I.jsxs)("aside",{className:[L.title,"mt20"].join(" "),children:[(0,I.jsx)(w.Link,{to:"/classrooms/".concat(D.coursesId,"/board/").concat(D.categoryId||""),children:(0,I.jsx)(P.Z,{className:"font16 c-black"})}),(0,I.jsx)("strong",{className:"font20 ml5",children:"新建帖子"})]})]}),(0,I.jsxs)(v.Z,{layout:"vertical",form:H,initialValues:{name:"",sticky:!1},scrollToFirstError:!0,onValuesChange:function(e){q(u()({},e))},onFinish:function(){var e=s()(a()().mark((function e(t){var n,i,o;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.attachment_ids=null===(n=t.attachment_ids)||void 0===n?void 0:n.map((function(e){return e.response.id})),t.view_message_setting=ne.view_message_setting,!(0,E.eB)()){e.next=11;break}if(t.unified_setting=ne.unified_setting,t.view_message_setting="1",t.group_settings=Y,ne.unified_setting){e.next=11;break}if(Y.length){e.next=10;break}return y.ZP.warning("提交失败:分班发布设置不能为空"),e.abrupt("return");case 10:Y.map((function(e){if(!e.group_id)throw y.ZP.error("分班不能为空"),new String("分班不能为空");if(!e.publish_time)throw y.ZP.error("发布时间不能为空"),new String("发布时间不能为空")}));case 11:return t=u()({},t),e.next=14,(0,h.ZP)("/api/boards/".concat(D.categoryId,"/messages.json"),{method:"post",body:t});case 14:0===(i=e.sent).status&&((0,g.L9)(["教学课堂","讨论","发帖"]),y.ZP.success("发布成功"),w.history.push("/classrooms/".concat(D.coursesId,"/board/").concat(D.categoryId,"/Detail/").concat(null==i||null===(o=i.data)||void 0===o?void 0:o.id)));case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,I.jsxs)("aside",{className:"mt30 relative bg-white pl30 pr30 pt30 w100 inline-block",children:[(0,E.GJ)()&&(0,I.jsx)(v.Z.Item,{label:"",name:"sticky",valuePropName:"checked",className:L.sticky,children:(0,I.jsx)(x.Z,{children:"置顶"})}),(0,I.jsx)(v.Z.Item,{label:"标题",name:"subject",rules:[{required:!0,message:"请输入标题"}],children:(0,I.jsx)(_.Z,{suffix:"".concat((null===(i=V.subject)||void 0===i?void 0:i.length)||0,"/60"),maxLength:60})}),(0,I.jsx)(v.Z.Item,{label:"目录",name:"select_board_id",rules:[{required:!0,message:"请选择目录"}],children:(0,I.jsx)(k.default,{children:null==Q||null===(r=Q.boards)||void 0===r?void 0:r.map((function(e){return(0,I.jsx)(k.default.Option,{value:null==e?void 0:e.id,children:null==e?void 0:e.name})}))})}),(0,I.jsx)(v.Z.Item,{label:"内容",name:"content",rules:[{required:!0,message:"请输入内容"}],children:(0,I.jsx)(m.Z,{watch:!0,placeholder:"请在此输入帖子详情,最大限制为10000个字符"})}),(0,I.jsx)(v.Z.Item,{name:"attachment_ids",children:(0,I.jsx)(N.Z,{})}),(0,E.dE)()&&(0,I.jsxs)(S.ZP.Group,{style:{marginBottom:16},onChange:function(e){ne.view_message_setting=e.target.value,ie(Object.assign({},ne))},value:ne.view_message_setting,children:[Q.allow_view_message&&(0,I.jsx)(S.ZP,{value:"0",children:"全课堂可见"}),(0,I.jsx)(S.ZP,{value:"1",children:"同班学生可见"})]}),(0,E.eB)()&&(0,I.jsxs)("div",{children:[(0,I.jsxs)(S.ZP.Group,{onChange:function(){ne.unified_setting=!ne.unified_setting,ie(Object.assign({},ne))},value:ne.unified_setting,children:[(0,I.jsx)(S.ZP,{value:!0,children:"统一发布"}),(null==$||null===(l=$.course_groups)||void 0===l?void 0:l.length)>0&&(0,I.jsx)(S.ZP,{value:!1,children:"分班发布"})]}),(null==ne?void 0:ne.unified_setting)&&(0,I.jsx)(v.Z.Item,{style:{marginTop:16},rules:[{required:!0,message:"请选择发布时间"}],label:"发布时间",name:"publish_time",children:(0,I.jsx)(B.default,{showTime:{format:"HH:mm"},disabledDate:function(e){return e&&e4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,I(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,O(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,o="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var C=function(e){return e&&"false"!==e},j=function(t,n,i){x(m)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!w)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(m)<=4.4)C(n.showToolBar)&&(n.height-=7),C(n.showAlgebraInput)&&(n.height-=37),n.width<605&&C(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(C(n.showToolBar)||C(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=C(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},b||v.appendChild(_)):r.appendChild(_),v.appendChild(r),b||t.appendChild(v),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),Z("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(m)<5&&(e.className+=" geogebraweb")):k(e,t)}if(o){scriptLoadStarted=!0;for(var B=0;B0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):j(o,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=i,j(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",o.appendChild(a)}return o.appendChild(c),o},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,t){if(m=e,t)I(m,!0);else{var r,a,l=!o;if(l){var s=x(m);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?r+m:"https://www.geogebra.org/apps/5.2.814.0/",G)if(m.slice(-1*G[u].length)===G[u]||m.slice(-1*(G[u].length+1))===G[u]+"/")return void I(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||C(n.showToolBar)||C(n.showMenuBar)||C(n.showAlgebraInput)||C(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",I(a,!1)}},I=function(e,t){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===t&&(t=-1===e.indexOf("http")),p=t,g="web.nocache.js",w=!1;var n=f.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",w=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var i=parseFloat(m);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),O("5.0",t))}},Z=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&I(c,p),l=!0}return void 0!==n.material_id?S(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,i,o,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,f=0,p=0,h=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-m.width-m.left,p=u<=480?10:30):(p=m.left,f=u<=480?10:30),d=p+f)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(t-i.width)/2,r=(n-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],o=O;o0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var C=function(e){var t=e.value,n=e.onChange,i=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,T=e.title,C=void 0===T?"上传附件":T,j=e.showRemoveModal,P=void 0!==j&&j,L=e.accept,N=void 0===L?"":L,E=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,O=e.aloneClear,I=void 0!==O&&O,Z=e.realTimeRemove,R=void 0===Z||Z,D=e.uploadText,F=(0,p.useState)(!1),H=f()(F,2),z=H[0],W=H[1],V=(0,p.useState)(t||[]),q=f()(V,2),U=q[0],K=q[1],Y=(0,p.useState)(1),J=f()(Y,2),X=J[0],$=J[1];(0,p.useEffect)((function(){t&&(1===X&&K(u()(t)),$(2),G===(null==t?void 0:t.length)&&W(!0))}),[t]);var Q,ee=function(){setTimeout((function(){U.pop(),K(u()(U))}),500)},te={multiple:!0,disabled:z,accept:N,withCredentials:!0,fileList:U,beforeUpload:function(e,t){var n=e.size/1024/1024;return U.concat(t).length>G?(U.pop(),K(u()(U)),m.ZP.error("最多只能上传".concat(G,"个文件")),I?Promise.reject():(ee(),!1)):n=G?W(!0):W(!1),K(u()(U)),U=U.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,U),n(U)):m.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(Q=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!P){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return Q.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(B,s()(s()({},te),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!M&&(0,y.jsxs)(h.Z,s()(s()({},te),{},{children:[(0,y.jsxs)(w.ZP,{disabled:z,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),C]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:D||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return w}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),f=n.n(d),p=(n(80443),n(90630),n(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function w(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,l.useEffect)((function(){h&&h.setOption("mode",i)}),[h,i]),(0,l.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,l.useEffect)((function(){if(c.current&&!h){var e=f().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,l.useState)("python"),r=a()(i,2),d=r[0],f=r[1];return(0,p.jsxs)(c.Z,o()(o()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){f(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(w,{mode:d})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var i=n(91232),o=n.n(i),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),f=n(76374),p=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),w=n.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,o=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(o)},children:[(0,h.jsx)("i",{className:"".concat(i)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(v,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,w()(w()({},e),{},{onActionCallback:o})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),B={labelCol:{span:4},wrapperCol:{span:20}},T=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,w()(w()({},B),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},C=n(73145),j=n(28486),P=n(95237),L=n(36709),N=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,h.jsx)(P.Z,{style:{height:"100vh"},children:(0,h.jsx)(L.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),M=n.n(E),A=n(41498),G=n.n(A),O=n(37205),I=n.n(O),Z=n(12378);function R(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(R,go.CommandHandler),R.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},R.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},R.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},R.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},R.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},R.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},R.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},R.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))i.y?1:n.xi.x?1:0})),t},R.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},R.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(R.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(R.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var D=R,F=(n(41034),n(85160)),H=n(43418),z=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=Z;var U=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),f=d[0],p=d[1],m=function(){var e=G()(M()().mark((function e(){var t,o;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(H.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(P.Z,{children:[(0,h.jsx)(z.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(z.Z,{onClick:function(){l.current=!l.current,p(f+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(F.FI,{initDiagram:function(){var e=Z.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",f="#fffcd5",p="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",w="#b3e6b3",v="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var o=n.part.adornedPart,r=(new Z.Point).setRectSpot(o.actualBounds,t);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var l={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(Z.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(Z.Spot.Top)||t.equals(Z.Spot.Bottom)?25:18,height:t.equals(Z.Spot.Top)||t.equals(Z.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(t){return e(Z.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(Z.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(Z.Panel,"Horizontal",_(u,"fill"),_(f,"fill"),_(p,"fill"),_(h,"fill"))),e("ContextMenuButton",e(Z.Panel,"Horizontal",_(g,"fill"),_(w,"fill"),_(m,"fill"),_(v,"fill")))]}function S(){return[e("ContextMenuButton",e(Z.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(Z.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function B(t,n){return n||(n="thickness"),e(Z.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function T(t,n){return n||(n="dash"),e(Z.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function C(){return[e("ContextMenuButton",e(Z.Panel,"Horizontal",B(1),B(2),B(3),B(4))),e("ContextMenuButton",e(Z.Panel,"Horizontal",T(null),T([2,4]),T([4,4])))]}function j(t,n){return n||(n="figure"),e(Z.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function P(t){return e(Z.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function L(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(Z.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function N(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",Z.Spot.stringify(Z.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(Z.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var i=0,o=Z.Spot.RightSide;t.equals(Z.Spot.Top)?(i=270,o=Z.Spot.TopSide):t.equals(Z.Spot.Left)?(i=180,o=Z.Spot.LeftSide):t.equals(Z.Spot.Bottom)&&(i=90,o=Z.Spot.BottomSide),n||(i-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",Z.Spot.stringify(o)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(Z.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return i.current=new Z.Diagram(o.current,{padding:20,grid:e(Z.Panel,"Grid",e(Z.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(Z.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(D),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(Z.Node,"Auto",{locationSpot:Z.Spot.Center,locationObjectName:"SHAPE",desiredSize:new Z.Size(120,60),minSize:new Z.Size(40,40),resizable:!0,resizeCellSize:new Z.Size(10,10),rotatable:!0},new Z.Binding("location","loc",Z.Point.parse).makeTwoWay(Z.Point.stringify),new Z.Binding("desiredSize","size",Z.Size.parse).makeTwoWay(Z.Size.stringify),e(Z.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Z.Spot.AllSides,toSpot:Z.Spot.AllSides},new Z.Binding("figure"),new Z.Binding("fill"),new Z.Binding("stroke","borderColor"),new Z.Binding("strokeWidth","thickness"),new Z.Binding("strokeDashArray","dash")),e(Z.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(Z.TextBlock,{margin:1,textAlign:"center",overflow:Z.TextBlock.OverflowEllipsis,editable:!0},new Z.Binding("text").makeTwoWay(),new Z.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(Z.Panel,"Vertical",{maxSize:new Z.Size(200,NaN)},e(Z.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new Z.Binding("text")),e(Z.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new Z.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(Z.Adornment,"Spot",e(Z.Placeholder,{padding:10}),b(Z.Spot.Top,"TriangleUp"),b(Z.Spot.Left,"TriangleLeft"),b(Z.Spot.Right,"TriangleRight"),b(Z.Spot.Bottom,"TriangleDown"),y({alignment:new Z.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(Z.Panel,"Horizontal",j("Rectangle"),j("RoundedRectangle"),j("Ellipse"),j("Diamond"))),e("ContextMenuButton",e(Z.Panel,"Horizontal",j("Parallelogram2"),j("ManualOperation"),j("Procedure"),j("Cylinder1"))),e("ContextMenuButton",e(Z.Panel,"Horizontal",j("Terminator"),j("CreateRequest"),j("Document"),j("TriangleDown"))),k(),S(),C()),i.current.groupTemplate=e(Z.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Z.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new Z.Binding("location","loc",Z.Point.parse).makeTwoWay(Z.Point.stringify),e(Z.Panel,"Auto",{name:"BODY"},e(Z.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Z.Spot.AllSides,toSpot:Z.Spot.AllSides},new Z.Binding("fill"),new Z.Binding("stroke","color"),new Z.Binding("strokeWidth","thickness"),new Z.Binding("strokeDashArray","dash")),e(Z.Placeholder,{background:"transparent",margin:20})),e(Z.TextBlock,{alignment:Z.Spot.Top,alignmentFocus:Z.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new Z.Binding("text"),new Z.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(Z.Adornment,"Spot",e(Z.Panel,"Auto",e(Z.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(Z.Placeholder,{margin:1.5})),y({alignment:Z.Spot.TopRight,alignmentFocus:Z.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),C()),i.current.linkTemplate=e(Z.Link,{layerName:"Foreground",routing:Z.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Z.Binding("fromSpot","fromSpot",Z.Spot.parse),new Z.Binding("toSpot","toSpot",Z.Spot.parse),new Z.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new Z.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new Z.Binding("points").makeTwoWay(),e(Z.Shape,{strokeWidth:2},new Z.Binding("stroke","color"),new Z.Binding("strokeWidth","thickness"),new Z.Binding("strokeDashArray","dash")),e(Z.Shape,{segmentIndex:0,segmentOffset:new Z.Point(15,0),segmentOrientation:Z.Link.OrientAlong,alignmentFocus:Z.Spot.Right,figure:"circle",width:10,strokeWidth:0},new Z.Binding("fill","color"),new Z.Binding("visible","dir",(function(e){return 1===e}))),e(Z.Shape,{segmentIndex:-1,segmentOffset:new Z.Point(-10,6),segmentOrientation:Z.Link.OrientPlus90,alignmentFocus:Z.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Z.Binding("fill","color"),new Z.Binding("visible","dir",(function(e){return e>=1})),new Z.Binding("width","thickness",(function(e){return 7+3*e})),new Z.Binding("height","thickness",(function(e){return 7+3*e})),new Z.Binding("segmentOffset","thickness",(function(e){return new Z.Point(-15,4+1.5*e)}))),e(Z.Shape,{segmentIndex:0,segmentOffset:new Z.Point(15,-6),segmentOrientation:Z.Link.OrientMinus90,alignmentFocus:Z.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Z.Binding("fill","color"),new Z.Binding("visible","dir",(function(e){return 2===e})),new Z.Binding("width","thickness",(function(e){return 7+3*e})),new Z.Binding("height","thickness",(function(e){return 7+3*e})),new Z.Binding("segmentOffset","thickness",(function(e){return new Z.Point(-15,4+1.5*e)}))),e(Z.TextBlock,{alignmentFocus:new Z.Spot(0,1,-4,0),editable:!0},new Z.Binding("text").makeTwoWay(),new Z.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(Z.Adornment,e(Z.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:P(2)},new Z.Binding("pathPattern","thickness",P)),y({alignmentFocus:new Z.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",S(),C(),e("ContextMenuButton",e(Z.Panel,"Horizontal",L(0),L(1),L(2))),e("ContextMenuButton",e(Z.Panel,"Horizontal",e(Z.Panel,"Spot",N(!1),E(Z.Spot.Top,!1),E(Z.Spot.Left,!1),E(Z.Spot.Right,!1),E(Z.Spot.Bottom,!1)),e(Z.Panel,"Spot",{margin:new Z.Margin(0,0,0,2)},N(!0),E(Z.Spot.Top,!0),E(Z.Spot.Left,!0),E(Z.Spot.Right,!0),E(Z.Spot.Bottom,!0))))),new Z.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(Z.Link,{locationSpot:Z.Spot.Center,selectionAdornmentTemplate:e(Z.Adornment,"Link",{locationSpot:Z.Spot.Center},e(Z.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(Z.Shape,{toArrow:"Standard",stroke:null}))},{routing:Z.Link.AvoidsNodes,curve:Z.Link.JumpOver,corner:5,toShortLength:4},new Z.Binding("points"),e(Z.Shape,{isPanelMain:!0,strokeWidth:2}),e(Z.Shape,{toArrow:"Standard",stroke:null})),model:new Z.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(I()(Z.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(Z.Node,"Auto",{locationSpot:Z.Spot.Center},new Z.Binding("location","location",Z.Point.parse).makeTwoWay(Z.Point.stringify),e(Z.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 Z.Binding("stroke").makeTwoWay(),new Z.Binding("fill").makeTwoWay(),new Z.Binding("figure")),e(Z.TextBlock,{margin:new Z.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new Z.Size(16,16),maxSize:new Z.Size(10,NaN),textAlign:"center",editable:!0},new Z.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(Z.Panel,"Grid",e(Z.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(Z.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,h.jsx)("div",{ref:o})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Y.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Y.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(_.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,o=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),f=d[0],p=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){m.current.appName=f?"3D":"graphing",s.current.inject("applet_container")}),[f]),(0,c.useEffect)((function(){p(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(P.Z,{align:"middle",children:[(0,h.jsx)(z.Z,{flex:1,children:(0,h.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,h.jsx)(z.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),oe=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},he=n(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function we(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ve=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},ve+"-B","bold"),ve+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,w=e.miniToolbar,v=void 0!==w&&w,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,B=e.mode,P=void 0===B?"markdown":B,L=e.id,E=void 0===L?"markdown-editor-id":L,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,O=void 0!==G&&G,I=e.showNullButton,Z=void 0!==I&&I,R=e.showNullProgramButton,D=void 0!==R&&R,F=e.hidetoolBar,z=void 0!==F&&F,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,fe=void 0!==te&&te,ve=e.disabledFill,xe=void 0!==ve&&ve,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,Be=void 0===Se?"":Se,Te=e.extraUse,Ce=(0,c.useState)(null),je=a()(Ce,2),Pe=je[0],Le=je[1],Ne=(0,c.useState)(n),Ee=a()(Ne,2),Me=Ee[0],Ae=Ee[1],Ge=(0,c.useState)(k),Oe=a()(Ge,2),Ie=Oe[0],Ze=Oe[1],Re=(0,c.useState)(V),De=a()(Re,2),Fe=De[0],He=De[1],ze=(0,c.useState)(""),We=a()(ze,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),ot=(0,c.useState)(0),rt=a()(ot,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],ft=(0,c.useRef)(),pt=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(Be),null==Pe||Pe.setValue(Be),window.scrollTo(0,e)}),[Be]),(0,c.useEffect)((function(){null==Y||Y(Fe)}),[Fe]),(0,c.useEffect)((function(){if(ft.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==P)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,j.I)(s,(function(e){var n,i,o;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(ft.current,{mode:P,lineNumbers:!v,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),o=n.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===me.indexOf(r))return null;if(console.log("change1:",t,e,o,i,s,a,l,r),s>=0&&i.ch-s<5){var u=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),fe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Le(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){pt.current}),[Qe,pt,Fe]);(0,c.useEffect)((function(){if(Pe){var e=function(){var e=new f.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Pe.setSize("100%","100%"),Pe.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(ft.current.parentElement),e}();return function(){var t,n;null!==(t=ft.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=ft.current)||void 0===n?void 0:n.parentElement)}}}),[Pe,gt]),(0,c.useEffect)((function(){if(Pe){for(var e=[],t=function(){var t=a()(i[n],2),o=t[0],r=t[1],l=s()({},o,(function(){wt(r)}));e.push(l),Pe.addKeyMap(l)},n=0,i=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(E,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Ze(k)}),[Pe,k]),(0,c.useEffect)((function(){Pe&&_&&Pe.focus()}),[Pe,_]),(0,c.useEffect)((function(){if(Ie&&Pe){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Pe.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Pe,Ie]),(0,c.useEffect)((function(){if(Pe&&K){var e=function(e,t){K(e,t)};return Pe.on("beforeChange",e),function(){Pe.off("beforeChange",e)}}}),[Pe,K]),(0,c.useEffect)((function(){if(Pe&&q){var e=function(){q(Pe.getValue())};return Pe.on("blur",e),function(){Pe.off("blur",e)}}}),[Pe,q]),(0,c.useEffect)((function(){if(Pe){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(D?i(n,_t(n)):i(n))};return Pe.on("change",e),function(){Pe.off("change",e)}}}),[Pe,i]),(0,c.useEffect)((function(){if(Pe)if(null==n)Pe.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Pe.getValue()&&(Pe.setValue(n),Ae(n),Pe.setCursor(fe?1:Pe.lineCount(),0),window.scrollTo(0,e))}}),[Pe,n]);var wt=(0,c.useCallback)((function(e){var t=Pe.getCursor(),n=Pe.getSelection(),i=n.split("\n");switch(e){case"bold":return Pe.replaceSelection("**"+n+"**"),""===n&&Pe.setCursor(t.line,t.ch+2),Pe.focus();case"italic":return Pe.replaceSelection("*"+n+"*"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"code":return Pe.replaceSelection("`"+n+"`"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"inline-latex":return qe("inline-latex"),Pe.focus();case"latex":return Pe.replaceSelection("```latex\n"+n+"\n```"),Pe.setCursor(t.line+1,n.length+1),Pe.focus();case"line-break":return Pe.replaceSelection("
\n"),Pe.focus();case"list-ul":return""===n?Pe.replaceSelection("- "+n):Pe.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Pe.focus();case"list-ol":return""===n?Pe.replaceSelection("1. "+n):Pe.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Pe.focus();case"add-null-ch":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("▁"),Pe.focus();case"add-signal":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("@▁@"),Pe.focus();case"add-multiple":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection(me),Pe.focus();case"inster-template-1":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Pe.focus();case"eraser":return Pe.setValue(""),Pe.focus();case"trigger-watch":return Ze(!Ie),Pe.focus();case"trigger-full-screen":return He(!Fe),Pe.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Pe,Ie,Fe]),vt=(0,c.useCallback)((function(e,t){var n,i,o,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Pe.replaceSelection("[".concat(l,"](").concat(s,")")),Pe.focus();case ue:var c=e.language,u=e.content;return Pe.replaceSelection(["```"+c,u,"```"].join("\n")),Pe.focus();case"maths-latex":for(var d=atob(e),f=new Uint8Array(d.length),p=0;p-1||null==w||!w.type?g?Pe.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Pe.replaceSelection("![,](".concat(m,")")):(null==w||null===(r=w.type)||void 0===r?void 0:r.indexOf("video"))>-1?Pe.replaceSelection('')):(null==w||null===(a=w.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Pe.replaceSelection('').concat(w.name,"")):ge.includes(v)?Pe.replaceSelection('').concat(w.name,"")):Pe.replaceSelection("[".concat(w.name,"](").concat(oe.Z.API_SERVER).concat(m,")")),Pe.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},i=ht.current,o=!1,r=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Pe,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:we(l),height:we(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(D){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>o-20&&i",children:[(0,I.jsx)(b.Z.Item,{children:(0,I.jsx)(w.Link,{to:"/classrooms/".concat(D.coursesId,"/board/").concat(D.categoryId||""),children:null==X||null===(t=X.course)||void 0===t?void 0:t.course_name})}),(0,I.jsx)(b.Z.Item,{children:(0,I.jsx)(w.Link,{to:"/classrooms/".concat(D.coursesId,"/board/").concat(D.categoryId||""),children:null==Q||null===(n=Q.boards)||void 0===n||null===(n=n.filter((function(e){return e.id==D.categoryId})))||void 0===n||null===(n=n[0])||void 0===n?void 0:n.name})}),(0,I.jsx)(b.Z.Item,{children:"帖子新建"})]})}),(0,I.jsxs)("aside",{className:[L.title,"mt20"].join(" "),children:[(0,I.jsx)(w.Link,{to:"/classrooms/".concat(D.coursesId,"/board/").concat(D.categoryId||""),children:(0,I.jsx)(P.Z,{className:"font16 c-black"})}),(0,I.jsx)("strong",{className:"font20 ml5",children:"新建帖子"})]})]}),(0,I.jsxs)(v.Z,{layout:"vertical",form:H,initialValues:{name:"",sticky:!1},scrollToFirstError:!0,onValuesChange:function(e){q(u()({},e))},onFinish:function(){var e=s()(a()().mark((function e(t){var n,i,o;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.attachment_ids=null===(n=t.attachment_ids)||void 0===n?void 0:n.map((function(e){return e.response.id})),t.view_message_setting=ne.view_message_setting,!(0,E.eB)()){e.next=11;break}if(t.unified_setting=ne.unified_setting,t.view_message_setting="1",t.group_settings=Y,ne.unified_setting){e.next=11;break}if(Y.length){e.next=10;break}return y.ZP.warning("提交失败:分班发布设置不能为空"),e.abrupt("return");case 10:Y.map((function(e){if(!e.group_id)throw y.ZP.error("分班不能为空"),new String("分班不能为空");if(!e.publish_time)throw y.ZP.error("发布时间不能为空"),new String("发布时间不能为空")}));case 11:return t=u()({},t),e.next=14,(0,h.ZP)("/api/boards/".concat(D.categoryId,"/messages.json"),{method:"post",body:t});case 14:0===(i=e.sent).status&&((0,g.L9)(["教学课堂","讨论","发帖"]),y.ZP.success("发布成功"),w.history.push("/classrooms/".concat(D.coursesId,"/board/").concat(D.categoryId,"/Detail/").concat(null==i||null===(o=i.data)||void 0===o?void 0:o.id)));case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,I.jsxs)("aside",{className:"mt30 relative bg-white pl30 pr30 pt30 w100 inline-block",children:[(0,E.GJ)()&&(0,I.jsx)(v.Z.Item,{label:"",name:"sticky",valuePropName:"checked",className:L.sticky,children:(0,I.jsx)(x.Z,{children:"置顶"})}),(0,I.jsx)(v.Z.Item,{label:"标题",name:"subject",rules:[{required:!0,message:"请输入标题"}],children:(0,I.jsx)(_.Z,{suffix:"".concat((null===(i=V.subject)||void 0===i?void 0:i.length)||0,"/60"),maxLength:60})}),(0,I.jsx)(v.Z.Item,{label:"目录",name:"select_board_id",rules:[{required:!0,message:"请选择目录"}],children:(0,I.jsx)(k.default,{children:null==Q||null===(r=Q.boards)||void 0===r?void 0:r.map((function(e){return(0,I.jsx)(k.default.Option,{value:null==e?void 0:e.id,children:null==e?void 0:e.name})}))})}),(0,I.jsx)(v.Z.Item,{label:"内容",name:"content",rules:[{required:!0,message:"请输入内容"}],children:(0,I.jsx)(m.Z,{watch:!0,placeholder:"请在此输入帖子详情,最大限制为10000个字符"})}),(0,I.jsx)(v.Z.Item,{name:"attachment_ids",children:(0,I.jsx)(N.Z,{})}),(0,E.dE)()&&(0,I.jsxs)(S.ZP.Group,{style:{marginBottom:16},onChange:function(e){ne.view_message_setting=e.target.value,ie(Object.assign({},ne))},value:ne.view_message_setting,children:[Q.allow_view_message&&(0,I.jsx)(S.ZP,{value:"0",children:"全课堂可见"}),(0,I.jsx)(S.ZP,{value:"1",children:"同班学生可见"})]}),(0,E.eB)()&&(0,I.jsxs)("div",{children:[(0,I.jsxs)(S.ZP.Group,{onChange:function(){ne.unified_setting=!ne.unified_setting,ie(Object.assign({},ne))},value:ne.unified_setting,children:[(0,I.jsx)(S.ZP,{value:!0,children:"统一发布"}),(null==$||null===(l=$.course_groups)||void 0===l?void 0:l.length)>0&&(0,I.jsx)(S.ZP,{value:!1,children:"分班发布"})]}),(null==ne?void 0:ne.unified_setting)&&(0,I.jsx)(v.Z.Item,{style:{marginTop:16},rules:[{required:!0,message:"请选择发布时间"}],label:"发布时间",name:"publish_time",children:(0,I.jsx)(B.default,{showTime:{format:"HH:mm"},disabledDate:function(e){return e&&e4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,Z(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,O(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,o="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var j=function(e){return e&&"false"!==e},C=function(t,n,i){x(m)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!w)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(m)<=4.4)j(n.showToolBar)&&(n.height-=7),j(n.showAlgebraInput)&&(n.height-=37),n.width<605&&j(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(j(n.showToolBar)||j(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=j(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},b||v.appendChild(_)):r.appendChild(_),v.appendChild(r),b||t.appendChild(v),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),I("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(m)<5&&(e.className+=" geogebraweb")):k(e,t)}if(o){scriptLoadStarted=!0;for(var B=0;B0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):C(o,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=i,C(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",o.appendChild(a)}return o.appendChild(c),o},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,t){if(m=e,t)Z(m,!0);else{var r,a,l=!o;if(l){var s=x(m);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?r+m:"https://www.geogebra.org/apps/5.2.814.0/",G)if(m.slice(-1*G[u].length)===G[u]||m.slice(-1*(G[u].length+1))===G[u]+"/")return void Z(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||j(n.showToolBar)||j(n.showMenuBar)||j(n.showAlgebraInput)||j(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",Z(a,!1)}},Z=function(e,t){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===t&&(t=-1===e.indexOf("http")),p=t,g="web.nocache.js",w=!1;var n=f.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",w=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var i=parseFloat(m);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),O("5.0",t))}},I=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&Z(c,p),l=!0}return void 0!==n.material_id?S(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,i,o,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,f=0,p=0,h=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-m.width-m.left,p=u<=480?10:30):(p=m.left,f=u<=480?10:30),d=p+f)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(t-i.width)/2,r=(n-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],o=O;o0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var j=function(e){var t=e.value,n=e.onChange,i=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,T=e.title,j=void 0===T?"上传附件":T,C=e.showRemoveModal,P=void 0!==C&&C,N=e.accept,L=void 0===N?"":N,E=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,O=e.aloneClear,Z=void 0!==O&&O,I=e.realTimeRemove,R=void 0===I||I,D=e.uploadText,F=(0,p.useState)(!1),H=f()(F,2),z=H[0],W=H[1],V=(0,p.useState)(t||[]),q=f()(V,2),U=q[0],K=q[1],Y=(0,p.useState)(1),J=f()(Y,2),X=J[0],$=J[1];(0,p.useEffect)((function(){t&&(1===X&&K(u()(t)),$(2),G===(null==t?void 0:t.length)&&W(!0))}),[t]);var Q,ee=function(){setTimeout((function(){U.pop(),K(u()(U))}),500)},te={multiple:!0,disabled:z,accept:L,withCredentials:!0,fileList:U,beforeUpload:function(e,t){var n=e.size/1024/1024;return U.concat(t).length>G?(U.pop(),K(u()(U)),m.ZP.error("最多只能上传".concat(G,"个文件")),Z?Promise.reject():(ee(),!1)):n=G?W(!0):W(!1),K(u()(U)),U=U.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,U),n(U)):m.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(Q=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!P){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return Q.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(B,s()(s()({},te),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!M&&(0,y.jsxs)(h.Z,s()(s()({},te),{},{children:[(0,y.jsxs)(w.ZP,{disabled:z,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),j]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:D||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return w}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),f=n.n(d),p=(n(80443),n(90630),n(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function w(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,l.useEffect)((function(){h&&h.setOption("mode",i)}),[h,i]),(0,l.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,l.useEffect)((function(){if(c.current&&!h){var e=f().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,l.useState)("python"),r=a()(i,2),d=r[0],f=r[1];return(0,p.jsxs)(c.Z,o()(o()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){f(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(w,{mode:d})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var i=n(91232),o=n.n(i),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),f=n(76374),p=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),w=n.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,o=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(o)},children:[(0,h.jsx)("i",{className:"".concat(i)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(v,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,w()(w()({},e),{},{onActionCallback:o})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),B={labelCol:{span:4},wrapperCol:{span:20}},T=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,w()(w()({},B),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},j=n(73145),C=n(28486),P=n(95237),N=n(36709),L=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,h.jsx)(P.Z,{style:{height:"100vh"},children:(0,h.jsx)(N.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),M=n.n(E),A=n(41498),G=n.n(A),O=n(37205),Z=n.n(O),I=n(12378);function R(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(R,go.CommandHandler),R.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},R.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},R.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},R.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},R.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},R.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},R.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},R.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))i.y?1:n.xi.x?1:0})),t},R.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},R.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(R.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(R.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var D=R,F=(n(41034),n(85160)),H=n(43418),z=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=I;var U=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),f=d[0],p=d[1],m=function(){var e=G()(M()().mark((function e(){var t,o;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(H.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(P.Z,{children:[(0,h.jsx)(z.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(z.Z,{onClick:function(){l.current=!l.current,p(f+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(F.FI,{initDiagram:function(){var e=I.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",f="#fffcd5",p="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",w="#b3e6b3",v="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var o=n.part.adornedPart,r=(new I.Point).setRectSpot(o.actualBounds,t);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var l={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(I.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?25:18,height:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(t){return e(I.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(I.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(u,"fill"),_(f,"fill"),_(p,"fill"),_(h,"fill"))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(g,"fill"),_(w,"fill"),_(m,"fill"),_(v,"fill")))]}function S(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function B(t,n){return n||(n="thickness"),e(I.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function T(t,n){return n||(n="dash"),e(I.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function j(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",B(1),B(2),B(3),B(4))),e("ContextMenuButton",e(I.Panel,"Horizontal",T(null),T([2,4]),T([4,4])))]}function C(t,n){return n||(n="figure"),e(I.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function P(t){return e(I.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(I.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function L(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",I.Spot.stringify(I.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var i=0,o=I.Spot.RightSide;t.equals(I.Spot.Top)?(i=270,o=I.Spot.TopSide):t.equals(I.Spot.Left)?(i=180,o=I.Spot.LeftSide):t.equals(I.Spot.Bottom)&&(i=90,o=I.Spot.BottomSide),n||(i-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",I.Spot.stringify(o)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return i.current=new I.Diagram(o.current,{padding:20,grid:e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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(D),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center,locationObjectName:"SHAPE",desiredSize:new I.Size(120,60),minSize:new I.Size(40,40),resizable:!0,resizeCellSize:new I.Size(10,10),rotatable:!0},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),new I.Binding("desiredSize","size",I.Size.parse).makeTwoWay(I.Size.stringify),e(I.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("figure"),new I.Binding("fill"),new I.Binding("stroke","borderColor"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(I.TextBlock,{margin:1,textAlign:"center",overflow:I.TextBlock.OverflowEllipsis,editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(I.Panel,"Vertical",{maxSize:new I.Size(200,NaN)},e(I.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new I.Binding("text")),e(I.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new I.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Placeholder,{padding:10}),b(I.Spot.Top,"TriangleUp"),b(I.Spot.Left,"TriangleLeft"),b(I.Spot.Right,"TriangleRight"),b(I.Spot.Bottom,"TriangleDown"),y({alignment:new I.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(I.Panel,"Horizontal",C("Rectangle"),C("RoundedRectangle"),C("Ellipse"),C("Diamond"))),e("ContextMenuButton",e(I.Panel,"Horizontal",C("Parallelogram2"),C("ManualOperation"),C("Procedure"),C("Cylinder1"))),e("ContextMenuButton",e(I.Panel,"Horizontal",C("Terminator"),C("CreateRequest"),C("Document"),C("TriangleDown"))),k(),S(),j()),i.current.groupTemplate=e(I.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:I.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.Panel,"Auto",{name:"BODY"},e(I.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("fill"),new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Placeholder,{background:"transparent",margin:20})),e(I.TextBlock,{alignment:I.Spot.Top,alignmentFocus:I.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new I.Binding("text"),new I.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Panel,"Auto",e(I.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(I.Placeholder,{margin:1.5})),y({alignment:I.Spot.TopRight,alignmentFocus:I.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),j()),i.current.linkTemplate=e(I.Link,{layerName:"Foreground",routing:I.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new I.Binding("fromSpot","fromSpot",I.Spot.parse),new I.Binding("toSpot","toSpot",I.Spot.parse),new I.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("points").makeTwoWay(),e(I.Shape,{strokeWidth:2},new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,0),segmentOrientation:I.Link.OrientAlong,alignmentFocus:I.Spot.Right,figure:"circle",width:10,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 1===e}))),e(I.Shape,{segmentIndex:-1,segmentOffset:new I.Point(-10,6),segmentOrientation:I.Link.OrientPlus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return e>=1})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,-6),segmentOrientation:I.Link.OrientMinus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 2===e})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.TextBlock,{alignmentFocus:new I.Spot(0,1,-4,0),editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(I.Adornment,e(I.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:P(2)},new I.Binding("pathPattern","thickness",P)),y({alignmentFocus:new I.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",S(),j(),e("ContextMenuButton",e(I.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(I.Panel,"Horizontal",e(I.Panel,"Spot",L(!1),E(I.Spot.Top,!1),E(I.Spot.Left,!1),E(I.Spot.Right,!1),E(I.Spot.Bottom,!1)),e(I.Panel,"Spot",{margin:new I.Margin(0,0,0,2)},L(!0),E(I.Spot.Top,!0),E(I.Spot.Left,!0),E(I.Spot.Right,!0),E(I.Spot.Bottom,!0))))),new I.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(I.Link,{locationSpot:I.Spot.Center,selectionAdornmentTemplate:e(I.Adornment,"Link",{locationSpot:I.Spot.Center},e(I.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(I.Shape,{toArrow:"Standard",stroke:null}))},{routing:I.Link.AvoidsNodes,curve:I.Link.JumpOver,corner:5,toShortLength:4},new I.Binding("points"),e(I.Shape,{isPanelMain:!0,strokeWidth:2}),e(I.Shape,{toArrow:"Standard",stroke:null})),model:new I.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(Z()(I.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center},new I.Binding("location","location",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.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 I.Binding("stroke").makeTwoWay(),new I.Binding("fill").makeTwoWay(),new I.Binding("figure")),e(I.TextBlock,{margin:new I.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new I.Size(16,16),maxSize:new I.Size(10,NaN),textAlign:"center",editable:!0},new I.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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,h.jsx)("div",{ref:o})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Y.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Y.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(_.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,o=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),f=d[0],p=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){m.current.appName=f?"3D":"graphing",s.current.inject("applet_container")}),[f]),(0,c.useEffect)((function(){p(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(P.Z,{align:"middle",children:[(0,h.jsx)(z.Z,{flex:1,children:(0,h.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,h.jsx)(z.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),oe=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},he=n(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function we(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ve=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},ve+"-B","bold"),ve+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,w=e.miniToolbar,v=void 0!==w&&w,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,B=e.mode,P=void 0===B?"markdown":B,N=e.id,E=void 0===N?"markdown-editor-id":N,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,O=void 0!==G&&G,Z=e.showNullButton,I=void 0!==Z&&Z,R=e.showNullProgramButton,D=void 0!==R&&R,F=e.hidetoolBar,z=void 0!==F&&F,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,fe=void 0!==te&&te,ve=e.disabledFill,xe=void 0!==ve&&ve,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,Be=void 0===Se?"":Se,Te=e.extraUse,je=(0,c.useState)(null),Ce=a()(je,2),Pe=Ce[0],Ne=Ce[1],Le=(0,c.useState)(n),Ee=a()(Le,2),Me=Ee[0],Ae=Ee[1],Ge=(0,c.useState)(k),Oe=a()(Ge,2),Ze=Oe[0],Ie=Oe[1],Re=(0,c.useState)(V),De=a()(Re,2),Fe=De[0],He=De[1],ze=(0,c.useState)(""),We=a()(ze,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),ot=(0,c.useState)(0),rt=a()(ot,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],ft=(0,c.useRef)(),pt=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(Be),null==Pe||Pe.setValue(Be),window.scrollTo(0,e)}),[Be]),(0,c.useEffect)((function(){null==Y||Y(Fe)}),[Fe]),(0,c.useEffect)((function(){if(ft.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==P)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,C.I)(s,(function(e){var n,i,o;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(ft.current,{mode:P,lineNumbers:!v,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),o=n.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===me.indexOf(r))return null;if(console.log("change1:",t,e,o,i,s,a,l,r),s>=0&&i.ch-s<5){var u=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),fe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){pt.current}),[Qe,pt,Fe]);(0,c.useEffect)((function(){if(Pe){var e=function(){var e=new f.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Pe.setSize("100%","100%"),Pe.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(ft.current.parentElement),e}();return function(){var t,n;null!==(t=ft.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=ft.current)||void 0===n?void 0:n.parentElement)}}}),[Pe,gt]),(0,c.useEffect)((function(){if(Pe){for(var e=[],t=function(){var t=a()(i[n],2),o=t[0],r=t[1],l=s()({},o,(function(){wt(r)}));e.push(l),Pe.addKeyMap(l)},n=0,i=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(E,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Ie(k)}),[Pe,k]),(0,c.useEffect)((function(){Pe&&_&&Pe.focus()}),[Pe,_]),(0,c.useEffect)((function(){if(Ze&&Pe){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Pe.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Pe,Ze]),(0,c.useEffect)((function(){if(Pe&&K){var e=function(e,t){K(e,t)};return Pe.on("beforeChange",e),function(){Pe.off("beforeChange",e)}}}),[Pe,K]),(0,c.useEffect)((function(){if(Pe&&q){var e=function(){q(Pe.getValue())};return Pe.on("blur",e),function(){Pe.off("blur",e)}}}),[Pe,q]),(0,c.useEffect)((function(){if(Pe){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(D?i(n,_t(n)):i(n))};return Pe.on("change",e),function(){Pe.off("change",e)}}}),[Pe,i]),(0,c.useEffect)((function(){if(Pe)if(null==n)Pe.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Pe.getValue()&&(Pe.setValue(n),Ae(n),Pe.setCursor(fe?1:Pe.lineCount(),0),window.scrollTo(0,e))}}),[Pe,n]);var wt=(0,c.useCallback)((function(e){var t=Pe.getCursor(),n=Pe.getSelection(),i=n.split("\n");switch(e){case"bold":return Pe.replaceSelection("**"+n+"**"),""===n&&Pe.setCursor(t.line,t.ch+2),Pe.focus();case"italic":return Pe.replaceSelection("*"+n+"*"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"code":return Pe.replaceSelection("`"+n+"`"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"inline-latex":return qe("inline-latex"),Pe.focus();case"latex":return Pe.replaceSelection("```latex\n"+n+"\n```"),Pe.setCursor(t.line+1,n.length+1),Pe.focus();case"line-break":return Pe.replaceSelection("
\n"),Pe.focus();case"list-ul":return""===n?Pe.replaceSelection("- "+n):Pe.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Pe.focus();case"list-ol":return""===n?Pe.replaceSelection("1. "+n):Pe.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Pe.focus();case"add-null-ch":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("▁"),Pe.focus();case"add-signal":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("@▁@"),Pe.focus();case"add-multiple":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection(me),Pe.focus();case"inster-template-1":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Pe.focus();case"eraser":return Pe.setValue(""),Pe.focus();case"trigger-watch":return Ie(!Ze),Pe.focus();case"trigger-full-screen":return He(!Fe),Pe.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Pe,Ze,Fe]),vt=(0,c.useCallback)((function(e,t){var n,i,o,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Pe.replaceSelection("[".concat(l,"](").concat(s,")")),Pe.focus();case ue:var c=e.language,u=e.content;return Pe.replaceSelection(["```"+c,u,"```"].join("\n")),Pe.focus();case"maths-latex":for(var d=atob(e),f=new Uint8Array(d.length),p=0;p-1||null==w||!w.type?g?Pe.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Pe.replaceSelection("![,](".concat(m,")")):(null==w||null===(r=w.type)||void 0===r?void 0:r.indexOf("video"))>-1?Pe.replaceSelection('')):(null==w||null===(a=w.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Pe.replaceSelection('').concat(w.name,"")):ge.includes(v)?Pe.replaceSelection('').concat(w.name,"")):Pe.replaceSelection("[".concat(w.name,"](").concat(oe.Z.API_SERVER).concat(m,")")),Pe.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},i=ht.current,o=!1,r=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Pe,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:we(l),height:we(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(D){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>o-20&&i0?$:[{}])})),q.course_modules||Z({type:"classroomList/getClassroomLeftMenus",payload:u()({},I)})}),[I.coursesId]),(0,p.useEffect)((function(){var e;null==U||null===(e=U.course_groups)||void 0===e||e.map((function(e){var t;null==ne||null===(t=ne.group_settings)||void 0===t||t.map((function(t,n){(null==t?void 0:t.group_id)===(null==e?void 0:e.id)&&(e.cilckkey=n,e.isselect=!0)}))}))}),[ne]),(0,p.useEffect)((function(){console.log($)}),[$]),(0,O.jsx)("section",{className:L.bg,children:(0,O.jsxs)("div",{className:"edu-container",children:[(0,O.jsxs)("section",{className:"animated fadeIn",children:[(0,O.jsx)("aside",{className:"mt10",children:(0,O.jsxs)(v.Z,{separator:">",children:[(0,O.jsx)(v.Z.Item,{children:(0,O.jsx)(g.Link,{to:"/classrooms/".concat(I.coursesId,"/board/").concat(I.categoryId||""),children:null==V||null===(t=V.course)||void 0===t?void 0:t.course_name})}),(0,O.jsx)(v.Z.Item,{children:(0,O.jsx)(g.Link,{to:"/classrooms/".concat(I.coursesId,"/board/").concat(I.categoryId||""),children:null==K?void 0:K.board_name})}),(0,O.jsx)(v.Z.Item,{children:"帖子编辑"})]})}),(0,O.jsxs)("aside",{className:[L.title,"mt20"].join(" "),children:[(0,O.jsx)(g.Link,{to:"/classrooms/".concat(K.course_id,"/board/").concat(I.categoryId||""),children:(0,O.jsx)(C.Z,{className:"font16 c-black"})}),(0,O.jsx)("strong",{className:"font20 ml5",children:"编辑帖子"})]})]}),K.id&&(0,O.jsxs)(w.Z,{layout:"vertical",form:D,initialValues:{subject:K.subject,select_board_id:[String(K.board_id)],content:K.content,attachment_ids:(0,E.z)(K.attachments),sticky:!1},scrollToFirstError:!0,onValuesChange:function(e){W(u()({},e))},onFinish:function(){var e=s()(a()().mark((function e(t){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.attachment_ids=null===(n=t.attachment_ids)||void 0===n?void 0:n.map((function(e){return e.id||e.response.id})),t.view_message_setting=ae.view_message_setting,!(0,M.eB)()){e.next=11;break}if(t.unified_setting=ae.unified_setting,t.group_settings=$,ae.unified_setting){e.next=11;break}if($.length){e.next=9;break}return b.ZP.warning("提交失败:分班发布设置不能为空"),e.abrupt("return");case 9:console.log($),$.map((function(e){if(!e.group_id)throw b.ZP.error("分班不能为空"),new String("分班不能为空");if(!e.publish_time)throw b.ZP.error("发布时间不能为空"),new String("发布时间不能为空")}));case 11:return e.next=13,(0,h.ZP)("/api/messages/".concat(I.boardId,".json"),{method:"put",body:t});case 13:0===e.sent.status&&(b.ZP.success("保存成功"),g.history.push("/classrooms/".concat(I.coursesId,"/board/").concat(I.categoryId||"")));case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,O.jsxs)("aside",{className:"mt30 relative bg-white pl30 pr30 pt30 w100 inline-block",children:[(0,M.GJ)()&&(0,O.jsx)(w.Z.Item,{name:"sticky",valuePropName:"checked",className:L.sticky,children:(0,O.jsx)(y.Z,{children:"置顶"})}),(0,O.jsx)(w.Z.Item,{label:"标题",name:"subject",rules:[{required:!0,message:"请输入标题"}],children:(0,O.jsx)(x.Z,{size:"middle",suffix:"".concat((null===(n=z.subject)||void 0===n?void 0:n.length)||0,"/60"),maxLength:60})}),(0,O.jsx)(w.Z.Item,{label:"目录",name:"select_board_id",rules:[{required:!0,message:"请选择目录"}],children:(0,O.jsx)(_.default,{children:null==Y||null===(i=Y.boards)||void 0===i?void 0:i.map((function(e){return(0,O.jsx)(_.default.Option,{value:null==e?void 0:e.id,children:null==e?void 0:e.name})}))})}),(0,O.jsx)(w.Z.Item,{label:"内容",name:"content",rules:[{required:!0,message:"请输入内容"}],children:(0,O.jsx)(m.Z,{defaultValue:K.content,watch:!0,placeholder:"请在此输入帖子详情,最大限制为10000个字符"})}),(0,O.jsx)(w.Z.Item,{name:"attachment_ids",children:(0,O.jsx)(E.Z,{})}),(0,M.dE)()&&Y.allow_view_message&&(0,O.jsxs)(k.ZP.Group,{style:{marginBottom:10},onChange:function(e){ae.view_message_setting=e.target.value,le(Object.assign({},ae))},value:ae.view_message_setting,children:[(0,O.jsx)(k.ZP,{value:"0",children:"全课堂可见"}),(0,O.jsx)(k.ZP,{value:"1",children:"同班学生可见"})]}),(0,M.eB)()&&(0,O.jsxs)("div",{children:[(0,O.jsxs)(k.ZP.Group,{onChange:function(){ae.unified_setting=!ae.unified_setting,le(Object.assign({},ae))},value:ae.unified_setting,children:[(0,O.jsx)(k.ZP,{value:!0,children:"统一发布"}),(null==U||null===(r=U.course_groups)||void 0===r?void 0:r.length)>0&&(0,O.jsx)(k.ZP,{value:!1,children:"分班发布"})]}),(null==ae?void 0:ae.unified_setting)&&(0,O.jsx)(w.Z.Item,{style:{marginTop:16},rules:[{required:!0,message:"请选择发布时间"}],label:"发布时间",name:"publish_time",children:(0,O.jsx)(S.default,{showTime:{format:"HH:mm"},disabledDate:function(e){return e&&e4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,Z(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,O(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,o="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var j=function(e){return e&&"false"!==e},C=function(t,n,i){x(m)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!w)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(m)<=4.4)j(n.showToolBar)&&(n.height-=7),j(n.showAlgebraInput)&&(n.height-=37),n.width<605&&j(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(j(n.showToolBar)||j(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=j(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},b||v.appendChild(_)):r.appendChild(_),v.appendChild(r),b||t.appendChild(v),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),I("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(m)<5&&(e.className+=" geogebraweb")):k(e,t)}if(o){scriptLoadStarted=!0;for(var B=0;B0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):C(o,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=i,C(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",o.appendChild(a)}return o.appendChild(c),o},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,t){if(m=e,t)Z(m,!0);else{var r,a,l=!o;if(l){var s=x(m);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?r+m:"https://www.geogebra.org/apps/5.2.814.0/",G)if(m.slice(-1*G[u].length)===G[u]||m.slice(-1*(G[u].length+1))===G[u]+"/")return void Z(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||j(n.showToolBar)||j(n.showMenuBar)||j(n.showAlgebraInput)||j(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",Z(a,!1)}},Z=function(e,t){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===t&&(t=-1===e.indexOf("http")),p=t,g="web.nocache.js",w=!1;var n=f.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",w=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var i=parseFloat(m);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),O("5.0",t))}},I=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&Z(c,p),l=!0}return void 0!==n.material_id?S(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,i,o,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,f=0,p=0,h=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-m.width-m.left,p=u<=480?10:30):(p=m.left,f=u<=480?10:30),d=p+f)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(t-i.width)/2,r=(n-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],o=O;o0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var j=function(e){var t=e.value,n=e.onChange,i=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,T=e.title,j=void 0===T?"上传附件":T,C=e.showRemoveModal,P=void 0!==C&&C,N=e.accept,L=void 0===N?"":N,E=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,O=e.aloneClear,Z=void 0!==O&&O,I=e.realTimeRemove,R=void 0===I||I,D=e.uploadText,F=e.setFileProgress,H=e.showFileProgress,z=(0,p.useState)(!1),W=f()(z,2),V=W[0],q=W[1],U=(0,p.useState)(t||[]),K=f()(U,2),Y=K[0],J=K[1],X=(0,p.useState)(1),$=f()(X,2),Q=$[0],ee=$[1];(0,p.useEffect)((function(){t&&(1===Q&&J(u()(t)),ee(2),G===(null==t?void 0:t.length)&&q(!0))}),[t]);var te=function(){setTimeout((function(){Y.pop(),J(u()(Y))}),500)};H&&F(Y.some((function(e){return"uploading"===e.status})));var ne,ie={multiple:!0,disabled:V,accept:L,withCredentials:!0,fileList:Y,beforeUpload:function(e,t){var n=e.size/1024/1024;return Y.concat(t).length>G?(Y.pop(),J(u()(Y)),m.ZP.error("最多只能上传".concat(G,"个文件")),Z?Promise.reject():(te(),!1)):n=G?q(!0):q(!1),J(u()(Y)),Y=Y.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,Y),n(Y)):m.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(ne=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!P){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return ne.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(B,s()(s()({},ie),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!M&&(0,y.jsxs)(h.Z,s()(s()({},ie),{},{children:[(0,y.jsxs)(w.ZP,{disabled:V,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),j]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:D||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return w}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),f=n.n(d),p=(n(80443),n(90630),n(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function w(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,l.useEffect)((function(){h&&h.setOption("mode",i)}),[h,i]),(0,l.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,l.useEffect)((function(){if(c.current&&!h){var e=f().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,l.useState)("python"),r=a()(i,2),d=r[0],f=r[1];return(0,p.jsxs)(c.Z,o()(o()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){f(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(w,{mode:d})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var i=n(91232),o=n.n(i),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),f=n(76374),p=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),w=n.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,o=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(o)},children:[(0,h.jsx)("i",{className:"".concat(i)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(v,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,w()(w()({},e),{},{onActionCallback:o})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),B={labelCol:{span:4},wrapperCol:{span:20}},T=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,w()(w()({},B),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},j=n(73145),C=n(28486),P=n(95237),N=n(36709),L=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,h.jsx)(P.Z,{style:{height:"100vh"},children:(0,h.jsx)(N.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),M=n.n(E),A=n(41498),G=n.n(A),O=n(37205),Z=n.n(O),I=n(12378);function R(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(R,go.CommandHandler),R.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},R.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},R.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},R.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},R.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},R.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},R.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},R.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))i.y?1:n.xi.x?1:0})),t},R.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},R.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(R.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(R.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var D=R,F=(n(41034),n(85160)),H=n(43418),z=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=I;var U=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),f=d[0],p=d[1],m=function(){var e=G()(M()().mark((function e(){var t,o;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(H.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(P.Z,{children:[(0,h.jsx)(z.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(z.Z,{onClick:function(){l.current=!l.current,p(f+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(F.FI,{initDiagram:function(){var e=I.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",f="#fffcd5",p="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",w="#b3e6b3",v="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var o=n.part.adornedPart,r=(new I.Point).setRectSpot(o.actualBounds,t);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var l={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(I.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?25:18,height:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(t){return e(I.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(I.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(u,"fill"),_(f,"fill"),_(p,"fill"),_(h,"fill"))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(g,"fill"),_(w,"fill"),_(m,"fill"),_(v,"fill")))]}function S(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function B(t,n){return n||(n="thickness"),e(I.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function T(t,n){return n||(n="dash"),e(I.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function j(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",B(1),B(2),B(3),B(4))),e("ContextMenuButton",e(I.Panel,"Horizontal",T(null),T([2,4]),T([4,4])))]}function C(t,n){return n||(n="figure"),e(I.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function P(t){return e(I.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(I.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function L(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",I.Spot.stringify(I.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var i=0,o=I.Spot.RightSide;t.equals(I.Spot.Top)?(i=270,o=I.Spot.TopSide):t.equals(I.Spot.Left)?(i=180,o=I.Spot.LeftSide):t.equals(I.Spot.Bottom)&&(i=90,o=I.Spot.BottomSide),n||(i-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",I.Spot.stringify(o)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return i.current=new I.Diagram(o.current,{padding:20,grid:e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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(D),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center,locationObjectName:"SHAPE",desiredSize:new I.Size(120,60),minSize:new I.Size(40,40),resizable:!0,resizeCellSize:new I.Size(10,10),rotatable:!0},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),new I.Binding("desiredSize","size",I.Size.parse).makeTwoWay(I.Size.stringify),e(I.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("figure"),new I.Binding("fill"),new I.Binding("stroke","borderColor"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(I.TextBlock,{margin:1,textAlign:"center",overflow:I.TextBlock.OverflowEllipsis,editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(I.Panel,"Vertical",{maxSize:new I.Size(200,NaN)},e(I.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new I.Binding("text")),e(I.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new I.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Placeholder,{padding:10}),b(I.Spot.Top,"TriangleUp"),b(I.Spot.Left,"TriangleLeft"),b(I.Spot.Right,"TriangleRight"),b(I.Spot.Bottom,"TriangleDown"),y({alignment:new I.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(I.Panel,"Horizontal",C("Rectangle"),C("RoundedRectangle"),C("Ellipse"),C("Diamond"))),e("ContextMenuButton",e(I.Panel,"Horizontal",C("Parallelogram2"),C("ManualOperation"),C("Procedure"),C("Cylinder1"))),e("ContextMenuButton",e(I.Panel,"Horizontal",C("Terminator"),C("CreateRequest"),C("Document"),C("TriangleDown"))),k(),S(),j()),i.current.groupTemplate=e(I.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:I.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.Panel,"Auto",{name:"BODY"},e(I.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("fill"),new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Placeholder,{background:"transparent",margin:20})),e(I.TextBlock,{alignment:I.Spot.Top,alignmentFocus:I.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new I.Binding("text"),new I.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Panel,"Auto",e(I.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(I.Placeholder,{margin:1.5})),y({alignment:I.Spot.TopRight,alignmentFocus:I.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),j()),i.current.linkTemplate=e(I.Link,{layerName:"Foreground",routing:I.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new I.Binding("fromSpot","fromSpot",I.Spot.parse),new I.Binding("toSpot","toSpot",I.Spot.parse),new I.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("points").makeTwoWay(),e(I.Shape,{strokeWidth:2},new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,0),segmentOrientation:I.Link.OrientAlong,alignmentFocus:I.Spot.Right,figure:"circle",width:10,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 1===e}))),e(I.Shape,{segmentIndex:-1,segmentOffset:new I.Point(-10,6),segmentOrientation:I.Link.OrientPlus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return e>=1})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,-6),segmentOrientation:I.Link.OrientMinus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 2===e})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.TextBlock,{alignmentFocus:new I.Spot(0,1,-4,0),editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(I.Adornment,e(I.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:P(2)},new I.Binding("pathPattern","thickness",P)),y({alignmentFocus:new I.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",S(),j(),e("ContextMenuButton",e(I.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(I.Panel,"Horizontal",e(I.Panel,"Spot",L(!1),E(I.Spot.Top,!1),E(I.Spot.Left,!1),E(I.Spot.Right,!1),E(I.Spot.Bottom,!1)),e(I.Panel,"Spot",{margin:new I.Margin(0,0,0,2)},L(!0),E(I.Spot.Top,!0),E(I.Spot.Left,!0),E(I.Spot.Right,!0),E(I.Spot.Bottom,!0))))),new I.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(I.Link,{locationSpot:I.Spot.Center,selectionAdornmentTemplate:e(I.Adornment,"Link",{locationSpot:I.Spot.Center},e(I.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(I.Shape,{toArrow:"Standard",stroke:null}))},{routing:I.Link.AvoidsNodes,curve:I.Link.JumpOver,corner:5,toShortLength:4},new I.Binding("points"),e(I.Shape,{isPanelMain:!0,strokeWidth:2}),e(I.Shape,{toArrow:"Standard",stroke:null})),model:new I.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(Z()(I.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center},new I.Binding("location","location",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.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 I.Binding("stroke").makeTwoWay(),new I.Binding("fill").makeTwoWay(),new I.Binding("figure")),e(I.TextBlock,{margin:new I.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new I.Size(16,16),maxSize:new I.Size(10,NaN),textAlign:"center",editable:!0},new I.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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,h.jsx)("div",{ref:o})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Y.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Y.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(_.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,o=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),f=d[0],p=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){m.current.appName=f?"3D":"graphing",s.current.inject("applet_container")}),[f]),(0,c.useEffect)((function(){p(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(P.Z,{align:"middle",children:[(0,h.jsx)(z.Z,{flex:1,children:(0,h.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,h.jsx)(z.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),oe=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},he=n(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function we(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ve=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},ve+"-B","bold"),ve+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,w=e.miniToolbar,v=void 0!==w&&w,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,B=e.mode,P=void 0===B?"markdown":B,N=e.id,E=void 0===N?"markdown-editor-id":N,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,O=void 0!==G&&G,Z=e.showNullButton,I=void 0!==Z&&Z,R=e.showNullProgramButton,D=void 0!==R&&R,F=e.hidetoolBar,z=void 0!==F&&F,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,fe=void 0!==te&&te,ve=e.disabledFill,xe=void 0!==ve&&ve,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,Be=void 0===Se?"":Se,Te=e.extraUse,je=(0,c.useState)(null),Ce=a()(je,2),Pe=Ce[0],Ne=Ce[1],Le=(0,c.useState)(n),Ee=a()(Le,2),Me=Ee[0],Ae=Ee[1],Ge=(0,c.useState)(k),Oe=a()(Ge,2),Ze=Oe[0],Ie=Oe[1],Re=(0,c.useState)(V),De=a()(Re,2),Fe=De[0],He=De[1],ze=(0,c.useState)(""),We=a()(ze,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),ot=(0,c.useState)(0),rt=a()(ot,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],ft=(0,c.useRef)(),pt=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(Be),null==Pe||Pe.setValue(Be),window.scrollTo(0,e)}),[Be]),(0,c.useEffect)((function(){null==Y||Y(Fe)}),[Fe]),(0,c.useEffect)((function(){if(ft.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==P)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,C.I)(s,(function(e){var n,i,o;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(ft.current,{mode:P,lineNumbers:!v,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),o=n.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===me.indexOf(r))return null;if(console.log("change1:",t,e,o,i,s,a,l,r),s>=0&&i.ch-s<5){var u=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),fe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){pt.current}),[Qe,pt,Fe]);(0,c.useEffect)((function(){if(Pe){var e=function(){var e=new f.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Pe.setSize("100%","100%"),Pe.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(ft.current.parentElement),e}();return function(){var t,n;null!==(t=ft.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=ft.current)||void 0===n?void 0:n.parentElement)}}}),[Pe,gt]),(0,c.useEffect)((function(){if(Pe){for(var e=[],t=function(){var t=a()(i[n],2),o=t[0],r=t[1],l=s()({},o,(function(){wt(r)}));e.push(l),Pe.addKeyMap(l)},n=0,i=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(E,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Ie(k)}),[Pe,k]),(0,c.useEffect)((function(){Pe&&_&&Pe.focus()}),[Pe,_]),(0,c.useEffect)((function(){if(Ze&&Pe){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Pe.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Pe,Ze]),(0,c.useEffect)((function(){if(Pe&&K){var e=function(e,t){K(e,t)};return Pe.on("beforeChange",e),function(){Pe.off("beforeChange",e)}}}),[Pe,K]),(0,c.useEffect)((function(){if(Pe&&q){var e=function(){q(Pe.getValue())};return Pe.on("blur",e),function(){Pe.off("blur",e)}}}),[Pe,q]),(0,c.useEffect)((function(){if(Pe){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(D?i(n,_t(n)):i(n))};return Pe.on("change",e),function(){Pe.off("change",e)}}}),[Pe,i]),(0,c.useEffect)((function(){if(Pe)if(null==n)Pe.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Pe.getValue()&&(Pe.setValue(n),Ae(n),Pe.setCursor(fe?1:Pe.lineCount(),0),window.scrollTo(0,e))}}),[Pe,n]);var wt=(0,c.useCallback)((function(e){var t=Pe.getCursor(),n=Pe.getSelection(),i=n.split("\n");switch(e){case"bold":return Pe.replaceSelection("**"+n+"**"),""===n&&Pe.setCursor(t.line,t.ch+2),Pe.focus();case"italic":return Pe.replaceSelection("*"+n+"*"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"code":return Pe.replaceSelection("`"+n+"`"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"inline-latex":return qe("inline-latex"),Pe.focus();case"latex":return Pe.replaceSelection("```latex\n"+n+"\n```"),Pe.setCursor(t.line+1,n.length+1),Pe.focus();case"line-break":return Pe.replaceSelection("
\n"),Pe.focus();case"list-ul":return""===n?Pe.replaceSelection("- "+n):Pe.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Pe.focus();case"list-ol":return""===n?Pe.replaceSelection("1. "+n):Pe.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Pe.focus();case"add-null-ch":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("▁"),Pe.focus();case"add-signal":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("@▁@"),Pe.focus();case"add-multiple":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection(me),Pe.focus();case"inster-template-1":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Pe.focus();case"eraser":return Pe.setValue(""),Pe.focus();case"trigger-watch":return Ie(!Ze),Pe.focus();case"trigger-full-screen":return He(!Fe),Pe.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Pe,Ze,Fe]),vt=(0,c.useCallback)((function(e,t){var n,i,o,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Pe.replaceSelection("[".concat(l,"](").concat(s,")")),Pe.focus();case ue:var c=e.language,u=e.content;return Pe.replaceSelection(["```"+c,u,"```"].join("\n")),Pe.focus();case"maths-latex":for(var d=atob(e),f=new Uint8Array(d.length),p=0;p-1||null==w||!w.type?g?Pe.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Pe.replaceSelection("![,](".concat(m,")")):(null==w||null===(r=w.type)||void 0===r?void 0:r.indexOf("video"))>-1?Pe.replaceSelection('')):(null==w||null===(a=w.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Pe.replaceSelection('').concat(w.name,"")):ge.includes(v)?Pe.replaceSelection('').concat(w.name,"")):Pe.replaceSelection("[".concat(w.name,"](").concat(oe.Z.API_SERVER).concat(m,")")),Pe.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},i=ht.current,o=!1,r=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Pe,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:we(l),height:we(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(D){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>o-20&&i0?$:[{}])})),q.course_modules||Z({type:"classroomList/getClassroomLeftMenus",payload:u()({},I)})}),[I.coursesId]),(0,p.useEffect)((function(){var e;null==U||null===(e=U.course_groups)||void 0===e||e.map((function(e){var t;null==ne||null===(t=ne.group_settings)||void 0===t||t.map((function(t,n){(null==t?void 0:t.group_id)===(null==e?void 0:e.id)&&(e.cilckkey=n,e.isselect=!0)}))}))}),[ne]),(0,p.useEffect)((function(){console.log($)}),[$]),(0,O.jsx)("section",{className:L.bg,children:(0,O.jsxs)("div",{className:"edu-container",children:[(0,O.jsxs)("section",{className:"animated fadeIn",children:[(0,O.jsx)("aside",{className:"mt10",children:(0,O.jsxs)(v.Z,{separator:">",children:[(0,O.jsx)(v.Z.Item,{children:(0,O.jsx)(g.Link,{to:"/classrooms/".concat(I.coursesId,"/board/").concat(I.categoryId||""),children:null==V||null===(t=V.course)||void 0===t?void 0:t.course_name})}),(0,O.jsx)(v.Z.Item,{children:(0,O.jsx)(g.Link,{to:"/classrooms/".concat(I.coursesId,"/board/").concat(I.categoryId||""),children:null==K?void 0:K.board_name})}),(0,O.jsx)(v.Z.Item,{children:"帖子编辑"})]})}),(0,O.jsxs)("aside",{className:[L.title,"mt20"].join(" "),children:[(0,O.jsx)(g.Link,{to:"/classrooms/".concat(K.course_id,"/board/").concat(I.categoryId||""),children:(0,O.jsx)(C.Z,{className:"font16 c-black"})}),(0,O.jsx)("strong",{className:"font20 ml5",children:"编辑帖子"})]})]}),K.id&&(0,O.jsxs)(w.Z,{layout:"vertical",form:D,initialValues:{subject:K.subject,select_board_id:[String(K.board_id)],content:K.content,attachment_ids:(0,E.z)(K.attachments),sticky:!1},scrollToFirstError:!0,onValuesChange:function(e){W(u()({},e))},onFinish:function(){var e=s()(a()().mark((function e(t){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.attachment_ids=null===(n=t.attachment_ids)||void 0===n?void 0:n.map((function(e){return e.id||e.response.id})),t.view_message_setting=ae.view_message_setting,!(0,M.eB)()){e.next=11;break}if(t.unified_setting=ae.unified_setting,t.group_settings=$,ae.unified_setting){e.next=11;break}if($.length){e.next=9;break}return b.ZP.warning("提交失败:分班发布设置不能为空"),e.abrupt("return");case 9:console.log($),$.map((function(e){if(!e.group_id)throw b.ZP.error("分班不能为空"),new String("分班不能为空");if(!e.publish_time)throw b.ZP.error("发布时间不能为空"),new String("发布时间不能为空")}));case 11:return e.next=13,(0,h.ZP)("/api/messages/".concat(I.boardId,".json"),{method:"put",body:t});case 13:0===e.sent.status&&(b.ZP.success("保存成功"),g.history.push("/classrooms/".concat(I.coursesId,"/board/").concat(I.categoryId||"")));case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,O.jsxs)("aside",{className:"mt30 relative bg-white pl30 pr30 pt30 w100 inline-block",children:[(0,M.GJ)()&&(0,O.jsx)(w.Z.Item,{name:"sticky",valuePropName:"checked",className:L.sticky,children:(0,O.jsx)(y.Z,{children:"置顶"})}),(0,O.jsx)(w.Z.Item,{label:"标题",name:"subject",rules:[{required:!0,message:"请输入标题"}],children:(0,O.jsx)(x.Z,{size:"middle",suffix:"".concat((null===(n=z.subject)||void 0===n?void 0:n.length)||0,"/60"),maxLength:60})}),(0,O.jsx)(w.Z.Item,{label:"目录",name:"select_board_id",rules:[{required:!0,message:"请选择目录"}],children:(0,O.jsx)(_.default,{children:null==Y||null===(i=Y.boards)||void 0===i?void 0:i.map((function(e){return(0,O.jsx)(_.default.Option,{value:null==e?void 0:e.id,children:null==e?void 0:e.name})}))})}),(0,O.jsx)(w.Z.Item,{label:"内容",name:"content",rules:[{required:!0,message:"请输入内容"}],children:(0,O.jsx)(m.Z,{defaultValue:K.content,watch:!0,placeholder:"请在此输入帖子详情,最大限制为10000个字符"})}),(0,O.jsx)(w.Z.Item,{name:"attachment_ids",children:(0,O.jsx)(E.Z,{})}),(0,M.dE)()&&Y.allow_view_message&&(0,O.jsxs)(k.ZP.Group,{style:{marginBottom:10},onChange:function(e){ae.view_message_setting=e.target.value,le(Object.assign({},ae))},value:ae.view_message_setting,children:[(0,O.jsx)(k.ZP,{value:"0",children:"全课堂可见"}),(0,O.jsx)(k.ZP,{value:"1",children:"同班学生可见"})]}),(0,M.eB)()&&(0,O.jsxs)("div",{children:[(0,O.jsxs)(k.ZP.Group,{onChange:function(){ae.unified_setting=!ae.unified_setting,le(Object.assign({},ae))},value:ae.unified_setting,children:[(0,O.jsx)(k.ZP,{value:!0,children:"统一发布"}),(null==U||null===(r=U.course_groups)||void 0===r?void 0:r.length)>0&&(0,O.jsx)(k.ZP,{value:!1,children:"分班发布"})]}),(null==ae?void 0:ae.unified_setting)&&(0,O.jsx)(w.Z.Item,{style:{marginTop:16},rules:[{required:!0,message:"请选择发布时间"}],label:"发布时间",name:"publish_time",children:(0,O.jsx)(S.default,{showTime:{format:"HH:mm"},disabledDate:function(e){return e&&e4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,Z(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,O(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var o,i="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var C=function(e){return e&&"false"!==e},T=function(t,n,o){x(m)<=4.2&&(o=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(m)<=4.4)C(n.showToolBar)&&(n.height-=7),C(n.showAlgebraInput)&&(n.height-=37),n.width<605&&C(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(C(n.showToolBar)||C(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=C(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),f(e)},b||w.appendChild(_)):r.appendChild(_),w.appendChild(r),b||t.appendChild(w),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),I("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(m)<5&&(e.className+=" geogebraweb")):k(e,t)}if(i){scriptLoadStarted=!0;for(var j=0;j0?(i.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):T(i,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=o,T(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",i.appendChild(a)}return i.appendChild(c),i},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,t){if(m=e,t)Z(m,!0);else{var r,a,l=!i;if(l){var s=x(m);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?r+m:"https://www.geogebra.org/apps/5.2.814.0/",G)if(m.slice(-1*G[u].length)===G[u]||m.slice(-1*(G[u].length+1))===G[u]+"/")return void Z(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||o.is3D||o.AV||o.SV||o.CV||o.EV2||o.CP||o.PC||o.DA||o.FI||o.PV||C(n.showToolBar)||C(n.showMenuBar)||C(n.showAlgebraInput)||C(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",Z(a,!1)}},Z=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),f=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var o=parseFloat(m);NaN!==o&&o<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+o+" is deprecated. Using version latest instead."),O("5.0",t))}},I=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&Z(c,f),l=!0}return void 0!==n.material_id?S(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,o,i){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==o&&o,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,o,i,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,p=0,f=0,h=0;if(a)s=a.offsetWidth,c=Math.max(o?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===i||!i)&&("rtl"===document.dir?(p=s-m.width-m.left,f=u<=480?10:30):(f=m.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,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(i=n(e,t,a,o,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=e.getBoundingClientRect(),i=(t-o.width)/2,r=(n-o.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=i+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=o(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var o=e.lastIndexOf(tb,Math.min(n,t));return o>=O?e.substring(O,o+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,o=[],i=[];function a(e){var t=i[e](),n=o[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in o[e]},webModule.__getPropMap=function(){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},o=e[webModule.__softPermutationId],i=O;i0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],o=0;o0&&(s=[],null==n||null===(o=n.data)||void 0===o||o.map((function(e){var t;null==e||null===(t=e.ec_point_ids)||void 0===t||t.map((function(e){s.push(e)}))})),h(a()(a()({},null==n||null===(r=n.data)||void 0===r?void 0:r[0]),{},{ec_point_ids:s})),x(null==n?void 0:n.data));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(){return(N=u()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.ZP)("/api/schools/".concat(null==o||null===(t=o.userInfo)||void 0===t||null===(t=t.course)||void 0===t?void 0:t.course_school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:n=e.sent,C(null==n?void 0:n.data),(d||l)&&T();case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,f.useEffect)((function(){var e;null!=o&&null!==(e=o.userInfo)&&void 0!==e&&null!==(e=e.course)&&void 0!==e&&e.course_school_id&&function(){N.apply(this,arguments)}()}),[null==o||null===(t=o.userInfo)||void 0===t||null===(t=t.course)||void 0===t?void 0:t.course_school_id]),(0,_.jsxs)("div",{style:{display:null!==(n=o.userInfo.course)&&void 0!==n&&n.is_openengineering?"":"none"},children:[(0,_.jsx)("p",{style:{fontSize:"16px",fontWeight:400},children:"工程认证考核知识点"}),null==y?void 0:y.map((function(e,t){return(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,_.jsx)(k,{rz:B,item:e,type:t,setitem:function(e){y.splice(t,1,e),x(s()(y));var n=[];null==y||y.map((function(e){var t;null==e||null===(t=e.ec_point_ids)||void 0===t||t.map((function(e){n.push(e)}))})),h(a()(a()({},e),{},{ec_point_ids:n}))}}),0!=t&&(0,_.jsx)(g.Z,{onClick:function(){y.splice(t,1),x(s()(y))},style:{marginLeft:10,fontSize:"20px"}}),(0,_.jsx)(v.Z,{onClick:function(){y.push({}),x(s()(y))},style:{marginLeft:10,fontSize:"20px"}})]},t)}))]})})))},36709:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(79800),s=n.n(l),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",f=n(92310),h=n.n(f),m=n(71418),g=n(2859),v=n(18030),w=n(21082),b=n(37712),y=function(e){var t=e.data,n=e.className,o=e.fullWidth,r=e.style,l=void 0===r?{}:r,f=e.onClose,y=e.onOk,x=e.showFullTools,_=e.noAssociationId,k=(0,c.useRef)(null),S=(0,c.useRef)(null),j=(0,c.useRef)(null),B=(0,c.useRef)(null),C=(0,c.useState)(!1),T=s()(C,2),P=T[0],N=T[1],L=(0,c.useState)("正在加载中"),E=s()(L,2),M=E[0],A=E[1];(0,c.useEffect)((function(){j.current||(j.current=document.createElement("style"),document.head.appendChild(j.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),j.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&G()):(document.body.removeAttribute("data-custom"),j.current&&(document.head.removeChild(j.current),j.current=null))}),[null==t?void 0:t.visible]);var G=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),A("正在加载中"),e.next=4,(0,w.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,k.current.src="",k.current.src=n,k.current.onload=function(){Z()},N(!1),A("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),O=function(){var e=a()(i()().mark((function e(n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),A("正在保存中"),e.next=4,(0,v.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(o=e.sent)||!o.id||_){e.next=12;break}return e.next=8,(0,v.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==o?void 0:o.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=o&&o.id&&y(o);case 13:N(!1),A("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Z=function(){S.current=new g.hP(k.current),S.current.targetRoot=B.current,S.current.addEventListener("render",O),S.current.addEventListener("beforeclose",f),x&&(S.current.availableMarkerTypes=S.current.ALL_MARKER_TYPES,S.current.uiStyleSettings.redoButtonVisible=!0,S.current.uiStyleSettings.notesButtonVisible=!0,S.current.uiStyleSettings.zoomButtonVisible=!0,S.current.uiStyleSettings.zoomOutButtonVisible=!0,S.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=S.current.uiStyleSettings,S.current.show(),null!=t&&t.snapshotData&&S.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,b.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,b.jsx)(m.Z,{spinning:P,tip:M,style:{position:"absolute"},children:(0,b.jsx)("div",{ref:B,className:h()(u,n,o?p:""),style:l,children:(0,b.jsx)("img",{className:d,ref:k})})})})}},98382:function(e,t,n){"use strict";n.d(t,{z:function(){return B},Z:function(){return C}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(82242),s=n.n(l),c=n(37205),u=n.n(c),d=n(79800),p=n.n(d),f=n(59301),h=n(59028),m=n(8591),g=n(43418),v=n(3113),w=n(92723),b=n(90341),y=n(37712),x="  ";function _(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var k=n(60186),S=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var j=h.Z.Dragger;function B(e){var t=[];return e&&e.length>0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var C=function(e){var t=e.value,n=e.onChange,o=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,B=e.title,C=void 0===B?"上传附件":B,T=e.showRemoveModal,P=void 0!==T&&T,N=e.accept,L=void 0===N?"":N,E=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,O=e.aloneClear,Z=void 0!==O&&O,I=e.realTimeRemove,R=void 0===I||I,D=e.uploadText,F=(0,f.useState)(!1),z=p()(F,2),H=z[0],W=z[1],V=(0,f.useState)(t||[]),q=p()(V,2),U=q[0],K=q[1],Y=(0,f.useState)(1),J=p()(Y,2),X=J[0],$=J[1];(0,f.useEffect)((function(){t&&(1===X&&K(u()(t)),$(2),G===(null==t?void 0:t.length)&&W(!0))}),[t]);var Q,ee=function(){setTimeout((function(){U.pop(),K(u()(U))}),500)},te={multiple:!0,disabled:H,accept:L,withCredentials:!0,fileList:U,beforeUpload:function(e,t){var n=e.size/1024/1024;return U.concat(t).length>G?(U.pop(),K(u()(U)),m.ZP.error("最多只能上传".concat(G,"个文件")),Z?Promise.reject():(ee(),!1)):n=G?W(!0):W(!1),K(u()(U)),U=U.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,U),n(U)):m.ZP.error(null===(o=e.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message)},onRemove:(Q=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!P){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var o;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(o=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return Q.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(j,s()(s()({},te),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!M&&(0,y.jsxs)(h.Z,s()(s()({},te),{},{children:[(0,y.jsxs)(v.ZP,{disabled:H,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),C]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:D||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),f=(n(80443),n(90630),n(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,o=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,l.useEffect)((function(){h&&h.setOption("mode",o)}),[h,o]),(0,l.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,l.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,i()({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,f.jsx)("div",{className:"my-codemirror-container",children:(0,f.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,o=(0,l.useState)("python"),r=a()(o,2),d=r[0],p=r[1];return(0,f.jsxs)(c.Z,i()(i()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,f.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,f.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,f.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,f.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,f.jsx)(v,{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:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var o=n(91232),i=n.n(o),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),f=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,o=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})})},g=n(82242),v=n.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,o=e.icon,i=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(i)},children:[(0,h.jsx)("i",{className:"".concat(o)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,o=e.showNullProgramButton,i=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,v()(v()({},e),{},{onActionCallback:i})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),j={labelCol:{span:4},wrapperCol:{span:20}},B=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,v()(v()({},j),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},C=n(73145),T=n(28486),P=n(95237),N=n(36709),L=function(e){var t=e.callback,n=e.onCancel,o=document.createElement("canvas"),i=o.getContext("2d");o.width=1e3,o.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,o.width,o.height);var r=o.toDataURL("image/png");return(0,h.jsx)(P.Z,{style:{height:"100vh"},children:(0,h.jsx)(N.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),M=n.n(E),A=n(41498),G=n.n(A),O=n(37205),Z=n.n(O),I=n(12378);function R(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(R,go.CommandHandler),R.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},R.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},R.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},R.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},R.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},R.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},R.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},R.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o0){for(var o=a.elt(l-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(r)}else if("Down"===n.key){var i;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))o.y?1:n.xo.x?1:0})),t},R.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},R.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(R.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(R.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var D=R,F=(n(41034),n(85160)),z=n(43418),H=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=I;var U=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],f=d[1],m=function(){var e=G()(M()().mark((function e(){var t,i;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:i=e.sent,n({src:i.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){f(p+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(P.Z,{children:[(0,h.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(H.Z,{onClick:function(){l.current=!l.current,f(p+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(F.FI,{initDiagram:function(){var e=I.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",f="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function b(t,n){var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(o){var i=n.part.adornedPart,r=(new I.Point).setRectSpot(i.actualBounds,t);r.subtract(i.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(i.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=o.copyNodeData(i.data);o.setGroupKeyForNodeData(a,o.getGroupKeyForNodeData(i.data)),o.addNodeData(a);var l={from:i.key,to:o.getKeyForNodeData(a)};o.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(I.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?25:18,height:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:o,contextClick:o})}function y(t){return e(I.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,o){n.handled=!0,n.diagram.model.commit((function(n){n.set(o.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(I.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(u,"fill"),_(p,"fill"),_(f,"fill"),_(h,"fill"))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(g,"fill"),_(v,"fill"),_(m,"fill"),_(w,"fill")))]}function S(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function j(t,n){return n||(n="thickness"),e(I.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function B(t,n){return n||(n="dash"),e(I.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function C(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",j(1),j(2),j(3),j(4))),e("ContextMenuButton",e(I.Panel,"Horizontal",B(null),B([2,4]),B([4,4])))]}function T(t,n){return n||(n="figure"),e(I.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function P(t){return e(I.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(I.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function L(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var o=n.part.adornedPart;e.set(o.data,t?"toSpot":"fromSpot",I.Spot.stringify(I.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var o=0,i=I.Spot.RightSide;t.equals(I.Spot.Top)?(o=270,i=I.Spot.TopSide):t.equals(I.Spot.Left)?(o=180,i=I.Spot.LeftSide):t.equals(I.Spot.Bottom)&&(o=90,i=I.Spot.BottomSide),n||(o-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",I.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:o,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return o.current=new I.Diagram(i.current,{padding:20,grid:e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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(D),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),o.current.nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center,locationObjectName:"SHAPE",desiredSize:new I.Size(120,60),minSize:new I.Size(40,40),resizable:!0,resizeCellSize:new I.Size(10,10),rotatable:!0},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),new I.Binding("desiredSize","size",I.Size.parse).makeTwoWay(I.Size.stringify),e(I.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("figure"),new I.Binding("fill"),new I.Binding("stroke","borderColor"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(I.TextBlock,{margin:1,textAlign:"center",overflow:I.TextBlock.OverflowEllipsis,editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(I.Panel,"Vertical",{maxSize:new I.Size(200,NaN)},e(I.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new I.Binding("text")),e(I.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new I.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Placeholder,{padding:10}),b(I.Spot.Top,"TriangleUp"),b(I.Spot.Left,"TriangleLeft"),b(I.Spot.Right,"TriangleRight"),b(I.Spot.Bottom,"TriangleDown"),y({alignment:new I.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(I.Panel,"Horizontal",T("Rectangle"),T("RoundedRectangle"),T("Ellipse"),T("Diamond"))),e("ContextMenuButton",e(I.Panel,"Horizontal",T("Parallelogram2"),T("ManualOperation"),T("Procedure"),T("Cylinder1"))),e("ContextMenuButton",e(I.Panel,"Horizontal",T("Terminator"),T("CreateRequest"),T("Document"),T("TriangleDown"))),k(),S(),C()),o.current.groupTemplate=e(I.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:I.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.Panel,"Auto",{name:"BODY"},e(I.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("fill"),new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Placeholder,{background:"transparent",margin:20})),e(I.TextBlock,{alignment:I.Spot.Top,alignmentFocus:I.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new I.Binding("text"),new I.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Panel,"Auto",e(I.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(I.Placeholder,{margin:1.5})),y({alignment:I.Spot.TopRight,alignmentFocus:I.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),C()),o.current.linkTemplate=e(I.Link,{layerName:"Foreground",routing:I.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new I.Binding("fromSpot","fromSpot",I.Spot.parse),new I.Binding("toSpot","toSpot",I.Spot.parse),new I.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("points").makeTwoWay(),e(I.Shape,{strokeWidth:2},new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,0),segmentOrientation:I.Link.OrientAlong,alignmentFocus:I.Spot.Right,figure:"circle",width:10,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 1===e}))),e(I.Shape,{segmentIndex:-1,segmentOffset:new I.Point(-10,6),segmentOrientation:I.Link.OrientPlus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return e>=1})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,-6),segmentOrientation:I.Link.OrientMinus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 2===e})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.TextBlock,{alignmentFocus:new I.Spot(0,1,-4,0),editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(I.Adornment,e(I.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:P(2)},new I.Binding("pathPattern","thickness",P)),y({alignmentFocus:new I.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",S(),C(),e("ContextMenuButton",e(I.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(I.Panel,"Horizontal",e(I.Panel,"Spot",L(!1),E(I.Spot.Top,!1),E(I.Spot.Left,!1),E(I.Spot.Right,!1),E(I.Spot.Bottom,!1)),e(I.Panel,"Spot",{margin:new I.Margin(0,0,0,2)},L(!0),E(I.Spot.Top,!0),E(I.Spot.Left,!0),E(I.Spot.Right,!0),E(I.Spot.Bottom,!0))))),new I.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(I.Link,{locationSpot:I.Spot.Center,selectionAdornmentTemplate:e(I.Adornment,"Link",{locationSpot:I.Spot.Center},e(I.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(I.Shape,{toArrow:"Standard",stroke:null}))},{routing:I.Link.AvoidsNodes,curve:I.Link.JumpOver,corner:5,toShortLength:4},new I.Binding("points"),e(I.Shape,{isPanelMain:!0,strokeWidth:2}),e(I.Shape,{toArrow:"Standard",stroke:null})),model:new I.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(Z()(I.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center},new I.Binding("location","location",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.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 I.Binding("stroke").makeTwoWay(),new I.Binding("fill").makeTwoWay(),new I.Binding("figure")),e(I.TextBlock,{margin:new I.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new I.Size(16,16),maxSize:new I.Size(10,NaN),textAlign:"center",editable:!0},new I.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),o.current.grid.visible=!0,o.current.grid.gridCellStroke="darkgray",o.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=o.current,o.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:i})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Y.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Y.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(_.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],f=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:o||1e3,height:i||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){m.current.appName=p?"3D":"graphing",s.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){f(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(P.Z,{align:"middle",children:[(0,h.jsx)(H.Z,{flex:1,children:(0,h.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return f(e)}})}),(0,h.jsx)(H.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),oe=n(36761),ie=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",fe={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},he=n(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},we+"-B","bold"),we+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,o=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,j=e.mode,P=void 0===j?"markdown":j,N=e.id,E=void 0===N?"markdown-editor-id":N,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,O=void 0!==G&&G,Z=e.showNullButton,I=void 0!==Z&&Z,R=e.showNullProgramButton,D=void 0!==R&&R,F=e.hidetoolBar,H=void 0!==F&&F,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,pe=void 0!==te&&te,we=e.disabledFill,xe=void 0!==we&&we,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,je=void 0===Se?"":Se,Be=e.extraUse,Ce=(0,c.useState)(null),Te=a()(Ce,2),Pe=Te[0],Ne=Te[1],Le=(0,c.useState)(n),Ee=a()(Le,2),Me=Ee[0],Ae=Ee[1],Ge=(0,c.useState)(k),Oe=a()(Ge,2),Ze=Oe[0],Ie=Oe[1],Re=(0,c.useState)(V),De=a()(Re,2),Fe=De[0],ze=De[1],He=(0,c.useState)(""),We=a()(He,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),ot=(nt[0],nt[1]),it=(0,c.useState)(0),rt=a()(it,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),ft=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(je),null==Pe||Pe.setValue(je),window.scrollTo(0,e)}),[je]),(0,c.useEffect)((function(){null==Y||Y(Fe)}),[Fe]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var o=n.clipboardData;if(o){var i=o.types.toString(),r=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==P)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,T.I)(s,(function(e){var n,o,i;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(ie.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:P,lineNumbers:!w,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),o=n.getCursor(),i=n.getLine(o.line),r=i.charAt(o.ch-1),a=i.lastIndexOf("@▁@",o.ch),l=i.lastIndexOf("@▁▁@",o.ch),s=a>l?a:l,c=a>l?3:4;if(-1===me.indexOf(r))return null;if(console.log("change1:",t,e,i,o,s,a,l,r),s>=0&&o.ch-s<5){var u=s+c;return n.replaceRange("",{line:o.line,ch:s},{line:o.line,ch:u}),{line:o.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){ft.current}),[Qe,ft,Fe]);(0,c.useEffect)((function(){if(Pe){var e=function(){var e=new p.Z((function(e){var t,n=i()(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;(o.target.offsetHeight>0||o.target.offsetWidth>0)&&(gt(),Pe.setSize("100%","100%"),Pe.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Pe,gt]),(0,c.useEffect)((function(){if(Pe){for(var e=[],t=function(){var t=a()(o[n],2),i=t[0],r=t[1],l=s()({},i,(function(){vt(r)}));e.push(l),Pe.addKeyMap(l)},n=0,o=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(E,Me),ot(!0))}}),1e4),(0,c.useEffect)((function(){Ie(k)}),[Pe,k]),(0,c.useEffect)((function(){Pe&&_&&Pe.focus()}),[Pe,_]),(0,c.useEffect)((function(){if(Ze&&Pe){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Pe.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Pe,Ze]),(0,c.useEffect)((function(){if(Pe&&K){var e=function(e,t){K(e,t)};return Pe.on("beforeChange",e),function(){Pe.off("beforeChange",e)}}}),[Pe,K]),(0,c.useEffect)((function(){if(Pe&&q){var e=function(){q(Pe.getValue())};return Pe.on("blur",e),function(){Pe.off("blur",e)}}}),[Pe,q]),(0,c.useEffect)((function(){if(Pe){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(D?o(n,_t(n)):o(n))};return Pe.on("change",e),function(){Pe.off("change",e)}}}),[Pe,o]),(0,c.useEffect)((function(){if(Pe)if(null==n)Pe.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Pe.getValue()&&(Pe.setValue(n),Ae(n),Pe.setCursor(pe?1:Pe.lineCount(),0),window.scrollTo(0,e))}}),[Pe,n]);var vt=(0,c.useCallback)((function(e){var t=Pe.getCursor(),n=Pe.getSelection(),o=n.split("\n");switch(e){case"bold":return Pe.replaceSelection("**"+n+"**"),""===n&&Pe.setCursor(t.line,t.ch+2),Pe.focus();case"italic":return Pe.replaceSelection("*"+n+"*"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"code":return Pe.replaceSelection("`"+n+"`"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"inline-latex":return qe("inline-latex"),Pe.focus();case"latex":return Pe.replaceSelection("```latex\n"+n+"\n```"),Pe.setCursor(t.line+1,n.length+1),Pe.focus();case"line-break":return Pe.replaceSelection("
\n"),Pe.focus();case"list-ul":return""===n?Pe.replaceSelection("- "+n):Pe.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Pe.focus();case"list-ol":return""===n?Pe.replaceSelection("1. "+n):Pe.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Pe.focus();case"add-null-ch":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("▁"),Pe.focus();case"add-signal":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("@▁@"),Pe.focus();case"add-multiple":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection(me),Pe.focus();case"inster-template-1":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Pe.focus();case"eraser":return Pe.setValue(""),Pe.focus();case"trigger-watch":return Ie(!Ze),Pe.focus();case"trigger-full-screen":return ze(!Fe),Pe.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Pe,Ze,Fe]),wt=(0,c.useCallback)((function(e,t){var n,o,i,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Pe.replaceSelection("[".concat(l,"](").concat(s,")")),Pe.focus();case ue:var c=e.language,u=e.content;return Pe.replaceSelection(["```"+c,u,"```"].join("\n")),Pe.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),f=0;f-1||null==v||!v.type?g?Pe.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Pe.replaceSelection("![,](".concat(m,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Pe.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Pe.replaceSelection('').concat(v.name,"")):ge.includes(w)?Pe.replaceSelection('').concat(v.name,"")):Pe.replaceSelection("[".concat(v.name,"](").concat(ie.Z.API_SERVER).concat(m,")")),Pe.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},o=ht.current,i=!1,r=0;return o.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){o.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Pe,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:ve(l),height:ve(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(o)}return 0}),[Ye]),function(e){var t=[];if(D){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,o){var i=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>i-20&&o",children:[(0,P.jsx)(h.Z.Item,{children:(0,P.jsx)(p.Link,{to:"/classrooms/".concat(R.course_id,"/common_homework"),children:R.course_name})}),(0,P.jsx)(h.Z.Item,{children:(0,P.jsx)(p.Link,{to:"/classrooms/".concat(R.course_id,"/common_homework"),children:R.category.category_name})}),(0,P.jsx)(h.Z.Item,{children:"新建详情"})]})})}),(0,P.jsx)("aside",{className:"font24 bold mt20 mb20",children:"新建图文作业"}),(0,P.jsxs)(f.Z,{form:N,className:y,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){console.log("onchange: ",N.getFieldsValue()),A(i()({},N.getFieldsValue()))},onFinish:V,children:[(0,P.jsx)("div",{className:x,children:(0,P.jsx)(f.Z.Item,{name:"name",label:"标题:",rules:[{required:!0,message:"请输入标题"}],children:(0,P.jsx)(m.Z,{maxLength:60,suffix:"".concat((null===(t=M.name)||void 0===t?void 0:t.length)||0,"/60"),placeholder:"例如:从Python程序设计-入门精通"})})}),(0,P.jsxs)("div",{className:_,children:[(0,P.jsx)(f.Z.Item,{name:"description",label:"简介:",rules:[{required:!0,message:"请输入作业的简介"},{max:5e3,message:"作业简介最大限制5000个字符"}],children:(0,P.jsx)(v.Z,{watch:!0,defaultValue:M.intro})}),(0,P.jsx)("div",{children:(0,P.jsx)(f.Z.Item,{name:"attachment_ids",children:(0,P.jsx)(j.Z,{})})})]}),(0,P.jsxs)("div",{className:_,children:[(0,P.jsx)(f.Z.Item,{name:"reference_answer",label:"参考答案:",children:(0,P.jsx)(v.Z,{watch:!0,defaultValue:M.notice})}),(0,P.jsx)("div",{children:(0,P.jsx)(f.Z.Item,{name:"reference_attachment_ids",children:(0,P.jsx)(j.Z,{})})})]})]}),(0,P.jsx)("div",{className:_,children:(0,P.jsx)(C.Z,{setitem:function(e){return H(i()({},e))}})}),(0,P.jsx)("div",{className:k,children:(0,P.jsx)("div",{className:"pt40 mb30",children:(0,P.jsxs)(f.Z.Item,{children:[(0,P.jsx)(g.ZP,{size:"middle",type:"primary",className:"".concat(S," mr20"),htmlType:"submit",onClick:function(){N.submit()},loading:o["newCourse/editCourse"]||o["newCourse/submitCourse"],children:"提交"}),(0,P.jsx)(g.ZP,{size:"middle",type:"primary",ghost:!0,className:S,onClick:function(){return p.history.push("/classrooms/".concat(l.coursesId,"/common_homework"))},children:"取消"})]})})})]})}))},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return f},jP:function(){return p},rO:function(){return c}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,l.v_)("libraries.json",e)}function f(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__CommonHomework__Add__index.cd551697.async.js b/p__Classrooms__Lists__CommonHomework__Add__index.cd551697.async.js new file mode 100644 index 0000000000..3d5b40c540 --- /dev/null +++ b/p__Classrooms__Lists__CommonHomework__Add__index.cd551697.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[85888,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},o=null,i=!1,r=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,Z(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,O(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var o,i="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var C=function(e){return e&&"false"!==e},T=function(t,n,o){x(m)<=4.2&&(o=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(m)<=4.4)C(n.showToolBar)&&(n.height-=7),C(n.showAlgebraInput)&&(n.height-=37),n.width<605&&C(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(C(n.showToolBar)||C(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=C(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),f(e)},b||w.appendChild(_)):r.appendChild(_),w.appendChild(r),b||t.appendChild(w),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),I("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(m)<5&&(e.className+=" geogebraweb")):k(e,t)}if(i){scriptLoadStarted=!0;for(var j=0;j0?(i.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):T(i,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=o,T(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",i.appendChild(a)}return i.appendChild(c),i},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,t){if(m=e,t)Z(m,!0);else{var r,a,l=!i;if(l){var s=x(m);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?r+m:"https://www.geogebra.org/apps/5.2.814.0/",G)if(m.slice(-1*G[u].length)===G[u]||m.slice(-1*(G[u].length+1))===G[u]+"/")return void Z(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||o.is3D||o.AV||o.SV||o.CV||o.EV2||o.CP||o.PC||o.DA||o.FI||o.PV||C(n.showToolBar)||C(n.showMenuBar)||C(n.showAlgebraInput)||C(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",Z(a,!1)}},Z=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),f=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var o=parseFloat(m);NaN!==o&&o<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+o+" is deprecated. Using version latest instead."),O("5.0",t))}},I=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&Z(c,f),l=!0}return void 0!==n.material_id?S(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,o,i){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==o&&o,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,o,i,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,p=0,f=0,h=0;if(a)s=a.offsetWidth,c=Math.max(o?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===i||!i)&&("rtl"===document.dir?(p=s-m.width-m.left,f=u<=480?10:30):(f=m.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,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(i=n(e,t,a,o,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=e.getBoundingClientRect(),i=(t-o.width)/2,r=(n-o.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=i+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=o(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var o=e.lastIndexOf(tb,Math.min(n,t));return o>=O?e.substring(O,o+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,o=[],i=[];function a(e){var t=i[e](),n=o[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in o[e]},webModule.__getPropMap=function(){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},o=e[webModule.__softPermutationId],i=O;i0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],o=0;o0&&(s=[],null==n||null===(o=n.data)||void 0===o||o.map((function(e){var t;null==e||null===(t=e.ec_point_ids)||void 0===t||t.map((function(e){s.push(e)}))})),h(a()(a()({},null==n||null===(r=n.data)||void 0===r?void 0:r[0]),{},{ec_point_ids:s})),x(null==n?void 0:n.data));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(){return(N=u()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.ZP)("/api/schools/".concat(null==o||null===(t=o.userInfo)||void 0===t||null===(t=t.course)||void 0===t?void 0:t.course_school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:n=e.sent,C(null==n?void 0:n.data),(d||l)&&T();case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,f.useEffect)((function(){var e;null!=o&&null!==(e=o.userInfo)&&void 0!==e&&null!==(e=e.course)&&void 0!==e&&e.course_school_id&&function(){N.apply(this,arguments)}()}),[null==o||null===(t=o.userInfo)||void 0===t||null===(t=t.course)||void 0===t?void 0:t.course_school_id]),(0,_.jsxs)("div",{style:{display:null!==(n=o.userInfo.course)&&void 0!==n&&n.is_openengineering?"":"none"},children:[(0,_.jsx)("p",{style:{fontSize:"16px",fontWeight:400},children:"工程认证考核知识点"}),null==y?void 0:y.map((function(e,t){return(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,_.jsx)(k,{rz:B,item:e,type:t,setitem:function(e){y.splice(t,1,e),x(s()(y));var n=[];null==y||y.map((function(e){var t;null==e||null===(t=e.ec_point_ids)||void 0===t||t.map((function(e){n.push(e)}))})),h(a()(a()({},e),{},{ec_point_ids:n}))}}),0!=t&&(0,_.jsx)(g.Z,{onClick:function(){y.splice(t,1),x(s()(y))},style:{marginLeft:10,fontSize:"20px"}}),(0,_.jsx)(v.Z,{onClick:function(){y.push({}),x(s()(y))},style:{marginLeft:10,fontSize:"20px"}})]},t)}))]})})))},36709:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(79800),s=n.n(l),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",f=n(92310),h=n.n(f),m=n(71418),g=n(2859),v=n(18030),w=n(21082),b=n(37712),y=function(e){var t=e.data,n=e.className,o=e.fullWidth,r=e.style,l=void 0===r?{}:r,f=e.onClose,y=e.onOk,x=e.showFullTools,_=e.noAssociationId,k=(0,c.useRef)(null),S=(0,c.useRef)(null),j=(0,c.useRef)(null),B=(0,c.useRef)(null),C=(0,c.useState)(!1),T=s()(C,2),P=T[0],N=T[1],L=(0,c.useState)("正在加载中"),E=s()(L,2),M=E[0],A=E[1];(0,c.useEffect)((function(){j.current||(j.current=document.createElement("style"),document.head.appendChild(j.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),j.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&G()):(document.body.removeAttribute("data-custom"),j.current&&(document.head.removeChild(j.current),j.current=null))}),[null==t?void 0:t.visible]);var G=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),A("正在加载中"),e.next=4,(0,w.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,k.current.src="",k.current.src=n,k.current.onload=function(){Z()},N(!1),A("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),O=function(){var e=a()(i()().mark((function e(n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),A("正在保存中"),e.next=4,(0,v.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(o=e.sent)||!o.id||_){e.next=12;break}return e.next=8,(0,v.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==o?void 0:o.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=o&&o.id&&y(o);case 13:N(!1),A("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Z=function(){S.current=new g.hP(k.current),S.current.targetRoot=B.current,S.current.addEventListener("render",O),S.current.addEventListener("beforeclose",f),x&&(S.current.availableMarkerTypes=S.current.ALL_MARKER_TYPES,S.current.uiStyleSettings.redoButtonVisible=!0,S.current.uiStyleSettings.notesButtonVisible=!0,S.current.uiStyleSettings.zoomButtonVisible=!0,S.current.uiStyleSettings.zoomOutButtonVisible=!0,S.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=S.current.uiStyleSettings,S.current.show(),null!=t&&t.snapshotData&&S.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,b.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,b.jsx)(m.Z,{spinning:P,tip:M,style:{position:"absolute"},children:(0,b.jsx)("div",{ref:B,className:h()(u,n,o?p:""),style:l,children:(0,b.jsx)("img",{className:d,ref:k})})})})}},98382:function(e,t,n){"use strict";n.d(t,{z:function(){return B},Z:function(){return C}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(82242),s=n.n(l),c=n(37205),u=n.n(c),d=n(79800),p=n.n(d),f=n(59301),h=n(59028),m=n(8591),g=n(43418),v=n(3113),w=n(92723),b=n(90341),y=n(37712),x="  ";function _(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var k=n(60186),S=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var j=h.Z.Dragger;function B(e){var t=[];return e&&e.length>0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var C=function(e){var t=e.value,n=e.onChange,o=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,B=e.title,C=void 0===B?"上传附件":B,T=e.showRemoveModal,P=void 0!==T&&T,N=e.accept,L=void 0===N?"":N,E=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,O=e.aloneClear,Z=void 0!==O&&O,I=e.realTimeRemove,R=void 0===I||I,F=e.uploadText,D=e.setFileProgress,z=e.showFileProgress,H=(0,f.useState)(!1),W=p()(H,2),V=W[0],q=W[1],U=(0,f.useState)(t||[]),K=p()(U,2),Y=K[0],J=K[1],X=(0,f.useState)(1),$=p()(X,2),Q=$[0],ee=$[1];(0,f.useEffect)((function(){t&&(1===Q&&J(u()(t)),ee(2),G===(null==t?void 0:t.length)&&q(!0))}),[t]);var te=function(){setTimeout((function(){Y.pop(),J(u()(Y))}),500)};z&&D(Y.some((function(e){return"uploading"===e.status})));var ne,oe={multiple:!0,disabled:V,accept:L,withCredentials:!0,fileList:Y,beforeUpload:function(e,t){var n=e.size/1024/1024;return Y.concat(t).length>G?(Y.pop(),J(u()(Y)),m.ZP.error("最多只能上传".concat(G,"个文件")),Z?Promise.reject():(te(),!1)):n=G?q(!0):q(!1),J(u()(Y)),Y=Y.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,Y),n(Y)):m.ZP.error(null===(o=e.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message)},onRemove:(ne=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!P){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var o;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(o=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return ne.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(j,s()(s()({},oe),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!M&&(0,y.jsxs)(h.Z,s()(s()({},oe),{},{children:[(0,y.jsxs)(v.ZP,{disabled:V,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),C]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:F||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),f=(n(80443),n(90630),n(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,o=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,l.useEffect)((function(){h&&h.setOption("mode",o)}),[h,o]),(0,l.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,l.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,i()({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,f.jsx)("div",{className:"my-codemirror-container",children:(0,f.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,o=(0,l.useState)("python"),r=a()(o,2),d=r[0],p=r[1];return(0,f.jsxs)(c.Z,i()(i()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,f.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,f.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,f.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,f.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,f.jsx)(v,{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:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var o=n(91232),i=n.n(o),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),f=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,o=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})})},g=n(82242),v=n.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,o=e.icon,i=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(i)},children:[(0,h.jsx)("i",{className:"".concat(o)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,o=e.showNullProgramButton,i=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,v()(v()({},e),{},{onActionCallback:i})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),j={labelCol:{span:4},wrapperCol:{span:20}},B=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,v()(v()({},j),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},C=n(73145),T=n(28486),P=n(95237),N=n(36709),L=function(e){var t=e.callback,n=e.onCancel,o=document.createElement("canvas"),i=o.getContext("2d");o.width=1e3,o.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,o.width,o.height);var r=o.toDataURL("image/png");return(0,h.jsx)(P.Z,{style:{height:"100vh"},children:(0,h.jsx)(N.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),M=n.n(E),A=n(41498),G=n.n(A),O=n(37205),Z=n.n(O),I=n(12378);function R(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(R,go.CommandHandler),R.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},R.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},R.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},R.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},R.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},R.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},R.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},R.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o0){for(var o=a.elt(l-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(r)}else if("Down"===n.key){var i;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))o.y?1:n.xo.x?1:0})),t},R.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},R.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(R.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(R.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var F=R,D=(n(41034),n(85160)),z=n(43418),H=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=I;var U=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],f=d[1],m=function(){var e=G()(M()().mark((function e(){var t,i;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:i=e.sent,n({src:i.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){f(p+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(P.Z,{children:[(0,h.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(H.Z,{onClick:function(){l.current=!l.current,f(p+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(D.FI,{initDiagram:function(){var e=I.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",f="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function b(t,n){var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(o){var i=n.part.adornedPart,r=(new I.Point).setRectSpot(i.actualBounds,t);r.subtract(i.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(i.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=o.copyNodeData(i.data);o.setGroupKeyForNodeData(a,o.getGroupKeyForNodeData(i.data)),o.addNodeData(a);var l={from:i.key,to:o.getKeyForNodeData(a)};o.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(I.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?25:18,height:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:o,contextClick:o})}function y(t){return e(I.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,o){n.handled=!0,n.diagram.model.commit((function(n){n.set(o.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(I.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(u,"fill"),_(p,"fill"),_(f,"fill"),_(h,"fill"))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(g,"fill"),_(v,"fill"),_(m,"fill"),_(w,"fill")))]}function S(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function j(t,n){return n||(n="thickness"),e(I.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function B(t,n){return n||(n="dash"),e(I.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function C(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",j(1),j(2),j(3),j(4))),e("ContextMenuButton",e(I.Panel,"Horizontal",B(null),B([2,4]),B([4,4])))]}function T(t,n){return n||(n="figure"),e(I.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function P(t){return e(I.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(I.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function L(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var o=n.part.adornedPart;e.set(o.data,t?"toSpot":"fromSpot",I.Spot.stringify(I.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var o=0,i=I.Spot.RightSide;t.equals(I.Spot.Top)?(o=270,i=I.Spot.TopSide):t.equals(I.Spot.Left)?(o=180,i=I.Spot.LeftSide):t.equals(I.Spot.Bottom)&&(o=90,i=I.Spot.BottomSide),n||(o-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",I.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:o,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return o.current=new I.Diagram(i.current,{padding:20,grid:e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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(F),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),o.current.nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center,locationObjectName:"SHAPE",desiredSize:new I.Size(120,60),minSize:new I.Size(40,40),resizable:!0,resizeCellSize:new I.Size(10,10),rotatable:!0},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),new I.Binding("desiredSize","size",I.Size.parse).makeTwoWay(I.Size.stringify),e(I.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("figure"),new I.Binding("fill"),new I.Binding("stroke","borderColor"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(I.TextBlock,{margin:1,textAlign:"center",overflow:I.TextBlock.OverflowEllipsis,editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(I.Panel,"Vertical",{maxSize:new I.Size(200,NaN)},e(I.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new I.Binding("text")),e(I.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new I.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Placeholder,{padding:10}),b(I.Spot.Top,"TriangleUp"),b(I.Spot.Left,"TriangleLeft"),b(I.Spot.Right,"TriangleRight"),b(I.Spot.Bottom,"TriangleDown"),y({alignment:new I.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(I.Panel,"Horizontal",T("Rectangle"),T("RoundedRectangle"),T("Ellipse"),T("Diamond"))),e("ContextMenuButton",e(I.Panel,"Horizontal",T("Parallelogram2"),T("ManualOperation"),T("Procedure"),T("Cylinder1"))),e("ContextMenuButton",e(I.Panel,"Horizontal",T("Terminator"),T("CreateRequest"),T("Document"),T("TriangleDown"))),k(),S(),C()),o.current.groupTemplate=e(I.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:I.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.Panel,"Auto",{name:"BODY"},e(I.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("fill"),new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Placeholder,{background:"transparent",margin:20})),e(I.TextBlock,{alignment:I.Spot.Top,alignmentFocus:I.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new I.Binding("text"),new I.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Panel,"Auto",e(I.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(I.Placeholder,{margin:1.5})),y({alignment:I.Spot.TopRight,alignmentFocus:I.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),C()),o.current.linkTemplate=e(I.Link,{layerName:"Foreground",routing:I.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new I.Binding("fromSpot","fromSpot",I.Spot.parse),new I.Binding("toSpot","toSpot",I.Spot.parse),new I.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("points").makeTwoWay(),e(I.Shape,{strokeWidth:2},new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,0),segmentOrientation:I.Link.OrientAlong,alignmentFocus:I.Spot.Right,figure:"circle",width:10,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 1===e}))),e(I.Shape,{segmentIndex:-1,segmentOffset:new I.Point(-10,6),segmentOrientation:I.Link.OrientPlus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return e>=1})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,-6),segmentOrientation:I.Link.OrientMinus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 2===e})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.TextBlock,{alignmentFocus:new I.Spot(0,1,-4,0),editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(I.Adornment,e(I.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:P(2)},new I.Binding("pathPattern","thickness",P)),y({alignmentFocus:new I.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",S(),C(),e("ContextMenuButton",e(I.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(I.Panel,"Horizontal",e(I.Panel,"Spot",L(!1),E(I.Spot.Top,!1),E(I.Spot.Left,!1),E(I.Spot.Right,!1),E(I.Spot.Bottom,!1)),e(I.Panel,"Spot",{margin:new I.Margin(0,0,0,2)},L(!0),E(I.Spot.Top,!0),E(I.Spot.Left,!0),E(I.Spot.Right,!0),E(I.Spot.Bottom,!0))))),new I.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(I.Link,{locationSpot:I.Spot.Center,selectionAdornmentTemplate:e(I.Adornment,"Link",{locationSpot:I.Spot.Center},e(I.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(I.Shape,{toArrow:"Standard",stroke:null}))},{routing:I.Link.AvoidsNodes,curve:I.Link.JumpOver,corner:5,toShortLength:4},new I.Binding("points"),e(I.Shape,{isPanelMain:!0,strokeWidth:2}),e(I.Shape,{toArrow:"Standard",stroke:null})),model:new I.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(Z()(I.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center},new I.Binding("location","location",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.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 I.Binding("stroke").makeTwoWay(),new I.Binding("fill").makeTwoWay(),new I.Binding("figure")),e(I.TextBlock,{margin:new I.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new I.Size(16,16),maxSize:new I.Size(10,NaN),textAlign:"center",editable:!0},new I.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),o.current.grid.visible=!0,o.current.grid.gridCellStroke="darkgray",o.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=o.current,o.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:i})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Y.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Y.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(_.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],f=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:o||1e3,height:i||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){m.current.appName=p?"3D":"graphing",s.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){f(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(P.Z,{align:"middle",children:[(0,h.jsx)(H.Z,{flex:1,children:(0,h.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return f(e)}})}),(0,h.jsx)(H.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),oe=n(36761),ie=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",fe={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},he=n(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},we+"-B","bold"),we+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,o=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,j=e.mode,P=void 0===j?"markdown":j,N=e.id,E=void 0===N?"markdown-editor-id":N,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,O=void 0!==G&&G,Z=e.showNullButton,I=void 0!==Z&&Z,R=e.showNullProgramButton,F=void 0!==R&&R,D=e.hidetoolBar,H=void 0!==D&&D,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,pe=void 0!==te&&te,we=e.disabledFill,xe=void 0!==we&&we,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,je=void 0===Se?"":Se,Be=e.extraUse,Ce=(0,c.useState)(null),Te=a()(Ce,2),Pe=Te[0],Ne=Te[1],Le=(0,c.useState)(n),Ee=a()(Le,2),Me=Ee[0],Ae=Ee[1],Ge=(0,c.useState)(k),Oe=a()(Ge,2),Ze=Oe[0],Ie=Oe[1],Re=(0,c.useState)(V),Fe=a()(Re,2),De=Fe[0],ze=Fe[1],He=(0,c.useState)(""),We=a()(He,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),ot=(nt[0],nt[1]),it=(0,c.useState)(0),rt=a()(it,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),ft=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(je),null==Pe||Pe.setValue(je),window.scrollTo(0,e)}),[je]),(0,c.useEffect)((function(){null==Y||Y(De)}),[De]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var o=n.clipboardData;if(o){var i=o.types.toString(),r=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==P)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,T.I)(s,(function(e){var n,o,i;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(ie.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:P,lineNumbers:!w,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),o=n.getCursor(),i=n.getLine(o.line),r=i.charAt(o.ch-1),a=i.lastIndexOf("@▁@",o.ch),l=i.lastIndexOf("@▁▁@",o.ch),s=a>l?a:l,c=a>l?3:4;if(-1===me.indexOf(r))return null;if(console.log("change1:",t,e,i,o,s,a,l,r),s>=0&&o.ch-s<5){var u=s+c;return n.replaceRange("",{line:o.line,ch:s},{line:o.line,ch:u}),{line:o.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){ft.current}),[Qe,ft,De]);(0,c.useEffect)((function(){if(Pe){var e=function(){var e=new p.Z((function(e){var t,n=i()(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;(o.target.offsetHeight>0||o.target.offsetWidth>0)&&(gt(),Pe.setSize("100%","100%"),Pe.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Pe,gt]),(0,c.useEffect)((function(){if(Pe){for(var e=[],t=function(){var t=a()(o[n],2),i=t[0],r=t[1],l=s()({},i,(function(){vt(r)}));e.push(l),Pe.addKeyMap(l)},n=0,o=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(E,Me),ot(!0))}}),1e4),(0,c.useEffect)((function(){Ie(k)}),[Pe,k]),(0,c.useEffect)((function(){Pe&&_&&Pe.focus()}),[Pe,_]),(0,c.useEffect)((function(){if(Ze&&Pe){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Pe.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Pe,Ze]),(0,c.useEffect)((function(){if(Pe&&K){var e=function(e,t){K(e,t)};return Pe.on("beforeChange",e),function(){Pe.off("beforeChange",e)}}}),[Pe,K]),(0,c.useEffect)((function(){if(Pe&&q){var e=function(){q(Pe.getValue())};return Pe.on("blur",e),function(){Pe.off("blur",e)}}}),[Pe,q]),(0,c.useEffect)((function(){if(Pe){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(F?o(n,_t(n)):o(n))};return Pe.on("change",e),function(){Pe.off("change",e)}}}),[Pe,o]),(0,c.useEffect)((function(){if(Pe)if(null==n)Pe.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Pe.getValue()&&(Pe.setValue(n),Ae(n),Pe.setCursor(pe?1:Pe.lineCount(),0),window.scrollTo(0,e))}}),[Pe,n]);var vt=(0,c.useCallback)((function(e){var t=Pe.getCursor(),n=Pe.getSelection(),o=n.split("\n");switch(e){case"bold":return Pe.replaceSelection("**"+n+"**"),""===n&&Pe.setCursor(t.line,t.ch+2),Pe.focus();case"italic":return Pe.replaceSelection("*"+n+"*"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"code":return Pe.replaceSelection("`"+n+"`"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"inline-latex":return qe("inline-latex"),Pe.focus();case"latex":return Pe.replaceSelection("```latex\n"+n+"\n```"),Pe.setCursor(t.line+1,n.length+1),Pe.focus();case"line-break":return Pe.replaceSelection("
\n"),Pe.focus();case"list-ul":return""===n?Pe.replaceSelection("- "+n):Pe.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Pe.focus();case"list-ol":return""===n?Pe.replaceSelection("1. "+n):Pe.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Pe.focus();case"add-null-ch":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("▁"),Pe.focus();case"add-signal":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("@▁@"),Pe.focus();case"add-multiple":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection(me),Pe.focus();case"inster-template-1":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Pe.focus();case"eraser":return Pe.setValue(""),Pe.focus();case"trigger-watch":return Ie(!Ze),Pe.focus();case"trigger-full-screen":return ze(!De),Pe.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Pe,Ze,De]),wt=(0,c.useCallback)((function(e,t){var n,o,i,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Pe.replaceSelection("[".concat(l,"](").concat(s,")")),Pe.focus();case ue:var c=e.language,u=e.content;return Pe.replaceSelection(["```"+c,u,"```"].join("\n")),Pe.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),f=0;f-1||null==v||!v.type?g?Pe.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Pe.replaceSelection("![,](".concat(m,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Pe.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Pe.replaceSelection('').concat(v.name,"")):ge.includes(w)?Pe.replaceSelection('').concat(v.name,"")):Pe.replaceSelection("[".concat(v.name,"](").concat(ie.Z.API_SERVER).concat(m,")")),Pe.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},o=ht.current,i=!1,r=0;return o.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){o.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Pe,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:ve(l),height:ve(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(o)}return 0}),[Ye]),function(e){var t=[];if(F){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,o){var i=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>i-20&&o",children:[(0,P.jsx)(h.Z.Item,{children:(0,P.jsx)(p.Link,{to:"/classrooms/".concat(R.course_id,"/common_homework"),children:R.course_name})}),(0,P.jsx)(h.Z.Item,{children:(0,P.jsx)(p.Link,{to:"/classrooms/".concat(R.course_id,"/common_homework"),children:R.category.category_name})}),(0,P.jsx)(h.Z.Item,{children:"新建详情"})]})})}),(0,P.jsx)("aside",{className:"font24 bold mt20 mb20",children:"新建图文作业"}),(0,P.jsxs)(f.Z,{form:N,className:y,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){console.log("onchange: ",N.getFieldsValue()),A(i()({},N.getFieldsValue()))},onFinish:V,children:[(0,P.jsx)("div",{className:x,children:(0,P.jsx)(f.Z.Item,{name:"name",label:"标题:",rules:[{required:!0,message:"请输入标题"}],children:(0,P.jsx)(m.Z,{maxLength:60,suffix:"".concat((null===(t=M.name)||void 0===t?void 0:t.length)||0,"/60"),placeholder:"例如:从Python程序设计-入门精通"})})}),(0,P.jsxs)("div",{className:_,children:[(0,P.jsx)(f.Z.Item,{name:"description",label:"简介:",rules:[{required:!0,message:"请输入作业的简介"},{max:5e3,message:"作业简介最大限制5000个字符"}],children:(0,P.jsx)(v.Z,{watch:!0,defaultValue:M.intro})}),(0,P.jsx)("div",{children:(0,P.jsx)(f.Z.Item,{name:"attachment_ids",children:(0,P.jsx)(j.Z,{})})})]}),(0,P.jsxs)("div",{className:_,children:[(0,P.jsx)(f.Z.Item,{name:"reference_answer",label:"参考答案:",children:(0,P.jsx)(v.Z,{watch:!0,defaultValue:M.notice})}),(0,P.jsx)("div",{children:(0,P.jsx)(f.Z.Item,{name:"reference_attachment_ids",children:(0,P.jsx)(j.Z,{})})})]})]}),(0,P.jsx)("div",{className:_,children:(0,P.jsx)(C.Z,{setitem:function(e){return H(i()({},e))}})}),(0,P.jsx)("div",{className:k,children:(0,P.jsx)("div",{className:"pt40 mb30",children:(0,P.jsxs)(f.Z.Item,{children:[(0,P.jsx)(g.ZP,{size:"middle",type:"primary",className:"".concat(S," mr20"),htmlType:"submit",onClick:function(){N.submit()},loading:o["newCourse/editCourse"]||o["newCourse/submitCourse"],children:"提交"}),(0,P.jsx)(g.ZP,{size:"middle",type:"primary",ghost:!0,className:S,onClick:function(){return p.history.push("/classrooms/".concat(l.coursesId,"/common_homework"))},children:"取消"})]})})})]})}))},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return f},jP:function(){return p},rO:function(){return c}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,l.v_)("libraries.json",e)}function f(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__CommonHomework__EditWork__index.6d1e3468.async.js b/p__Classrooms__Lists__CommonHomework__EditWork__index.6d1e3468.async.js deleted file mode 100644 index d196c39f08..0000000000 --- a/p__Classrooms__Lists__CommonHomework__EditWork__index.6d1e3468.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[31211,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,o=!1,r=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,O(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,Z(e,t))},e.getHTML5CodebaseVersion=function(){return h},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,o="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var B=function(e){return e&&"false"!==e},T=function(t,n,i){x(h)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==h||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(h)<=4.4)B(n.showToolBar)&&(n.height-=7),B(n.showAlgebraInput)&&(n.height-=37),n.width<605&&B(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(B(n.showToolBar)||B(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=B(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},b||w.appendChild(_)):r.appendChild(_),w.appendChild(r),b||t.appendChild(w),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),R("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(h)<5&&(e.className+=" geogebraweb")):k(e,t)}if(o){scriptLoadStarted=!0;for(var j=0;j0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):T(o,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else m=i,T(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",o.appendChild(a)}return o.appendChild(c),o},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],Z=function(e,t){if(h=e,t)O(h,!0);else{var r,a,l=!o;if(l){var s=x(h);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=h.indexOf("//");for(var u in a=c>0?h:0===c?r+h:"https://www.geogebra.org/apps/5.2.814.0/",G)if(h.slice(-1*G[u].length)===G[u]||h.slice(-1*(G[u].length+1))===G[u]+"/")return void O(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||B(n.showToolBar)||B(n.showMenuBar)||B(n.showAlgebraInput)||B(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",O(a,!1)}},O=function(e,t){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===t&&(t=-1===e.indexOf("http")),p=t,g="web.nocache.js",v=!1;var n=f.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(h=n[n.length-3]).substr(0,4)?h=h.substr(4,1)+"."+h.substr(5,1):"war"!==h.substr(0,3)&&"beta"!==h.substr(0,4)||(h="5.0");var 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."),Z("5.0",t))}},R=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function I(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),Z(e,!1),null!==c&&O(c,p),l=!0}return void 0!==n.material_id?S(I):I(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,i,o,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,f=0,p=0,m=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var h=e.getBoundingClientRect();h.left>0&&h.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-h.width-h.left,p=u<=480?10:30):(p=h.left,f=u<=480?10:30),d=p+f)}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===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(t-i.width)/2,r=(n-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],o=O;o0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var B=function(e){var t=e.value,n=e.onChange,i=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,C=e.title,B=void 0===C?"上传附件":C,T=e.showRemoveModal,N=void 0!==T&&T,P=e.accept,E=void 0===P?"":P,L=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,Z=e.aloneClear,O=void 0!==Z&&Z,R=e.realTimeRemove,I=void 0===R||R,D=e.uploadText,F=(0,p.useState)(!1),z=f()(F,2),H=z[0],W=z[1],V=(0,p.useState)(t||[]),q=f()(V,2),U=q[0],K=q[1],Y=(0,p.useState)(1),J=f()(Y,2),X=J[0],$=J[1];(0,p.useEffect)((function(){t&&(1===X&&K(u()(t)),$(2),G===(null==t?void 0:t.length)&&W(!0))}),[t]);var Q,ee=function(){setTimeout((function(){U.pop(),K(u()(U))}),500)},te={multiple:!0,disabled:H,accept:E,withCredentials:!0,fileList:U,beforeUpload:function(e,t){var n=e.size/1024/1024;return U.concat(t).length>G?(U.pop(),K(u()(U)),h.ZP.error("最多只能上传".concat(G,"个文件")),O?Promise.reject():(ee(),!1)):n=G?W(!0):W(!1),K(u()(U)),U=U.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,U),n(U)):h.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(Q=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(I){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!N){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,h.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return Q.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(j,s()(s()({},te),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),L]})),!M&&(0,y.jsxs)(m.Z,s()(s()({},te),{},{children:[(0,y.jsxs)(v.ZP,{disabled:H,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),B]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:D||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),f=n.n(d),p=(n(80443),n(90630),n(37712)),m=s.default.Option,h={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),m=d[0],h=d[1];return(0,l.useEffect)((function(){if(m){var e=function(e){var t=e.getValue();n&&n(t)};return m.on("change",e),function(){m.off("change",e)}}}),[m,n]),(0,l.useEffect)((function(){m&&m.setOption("mode",i)}),[m,i]),(0,l.useEffect)((function(){m&&(t===m.getValue()&&""!==t||setTimeout((function(){m.setValue(t||"")}),300))}),[m,t]),(0,l.useEffect)((function(){if(c.current&&!m){var e=f().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));h(e)}}),[c.current,m]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,l.useState)("python"),r=a()(i,2),d=r[0],f=r[1];return(0,p.jsxs)(c.Z,o()(o()({},h),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){f(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(m,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(v,{mode:d})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var i=n(91232),o=n.n(i),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),f=n(76374),p=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),m=n(37712),h=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),v=n.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,o=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,m.jsxs)("a",{title:n,className:a,onClick:function(){t(o)},children:[(0,m.jsx)("i",{className:"".concat(i)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,m.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,m.jsx)("li",{children:e.actionName?(0,m.jsx)(b,v()(v()({},e),{},{onActionCallback:o})):(0,m.jsx)("span",{className:"v-line"})},t)})),n?(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,m.jsx)("li",{children:s}),(0,m.jsx)("li",{className:"btn-full-screen",children:(0,m.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),j={labelCol:{span:4},wrapperCol:{span:20}},C=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(_.Z,v()(v()({},j),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,m.jsx)(k.Z,{})}),(0,m.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,m.jsx)(k.Z,{})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},B=n(73145),T=n(28486),N=n(95237),P=n(36709),E=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,m.jsx)(N.Z,{style:{height:"100vh"},children:(0,m.jsx)(P.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},L=n(7557),M=n.n(L),A=n(41498),G=n.n(A),Z=n(37205),O=n.n(Z),R=n(12378);function I(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(I,go.CommandHandler),I.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},I.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},I.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},I.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},I.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},I.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},I.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},I.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))i.y?1:n.xi.x?1:0})),t},I.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},I.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(I.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(I.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 D=I,F=(n(41034),n(85160)),z=n(43418),H=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=R;var U=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),f=d[0],p=d[1],h=function(){var e=G()(M()().mark((function e(){var t,o;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,m.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,m.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,m.jsxs)(N.Z,{children:[(0,m.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,m.jsx)(H.Z,{onClick:function(){l.current=!l.current,p(f+1)},children:(0,m.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,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:V,ref:r})]}),(0,m.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,m.jsx)(F.FI,{initDiagram:function(){var e=R.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",f="#fffcd5",p="#d5ebff",m="#f2dfe0",h="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var o=n.part.adornedPart,r=(new R.Point).setRectSpot(o.actualBounds,t);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var l={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(R.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(R.Spot.Top)||t.equals(R.Spot.Bottom)?25:18,height:t.equals(R.Spot.Top)||t.equals(R.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(t){return e(R.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(R.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(R.Panel,"Horizontal",_(u,"fill"),_(f,"fill"),_(p,"fill"),_(m,"fill"))),e("ContextMenuButton",e(R.Panel,"Horizontal",_(g,"fill"),_(v,"fill"),_(h,"fill"),_(w,"fill")))]}function S(){return[e("ContextMenuButton",e(R.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(R.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function j(t,n){return n||(n="thickness"),e(R.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function C(t,n){return n||(n="dash"),e(R.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function B(){return[e("ContextMenuButton",e(R.Panel,"Horizontal",j(1),j(2),j(3),j(4))),e("ContextMenuButton",e(R.Panel,"Horizontal",C(null),C([2,4]),C([4,4])))]}function T(t,n){return n||(n="figure"),e(R.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function N(t){return e(R.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function P(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(R.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function E(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",R.Spot.stringify(R.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(R.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function L(t,n){var i=0,o=R.Spot.RightSide;t.equals(R.Spot.Top)?(i=270,o=R.Spot.TopSide):t.equals(R.Spot.Left)?(i=180,o=R.Spot.LeftSide):t.equals(R.Spot.Bottom)&&(i=90,o=R.Spot.BottomSide),n||(i-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",R.Spot.stringify(o)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(R.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return i.current=new R.Diagram(o.current,{padding:20,grid:e(R.Panel,"Grid",e(R.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(R.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(D),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(R.Node,"Auto",{locationSpot:R.Spot.Center,locationObjectName:"SHAPE",desiredSize:new R.Size(120,60),minSize:new R.Size(40,40),resizable:!0,resizeCellSize:new R.Size(10,10),rotatable:!0},new R.Binding("location","loc",R.Point.parse).makeTwoWay(R.Point.stringify),new R.Binding("desiredSize","size",R.Size.parse).makeTwoWay(R.Size.stringify),e(R.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:R.Spot.AllSides,toSpot:R.Spot.AllSides},new R.Binding("figure"),new R.Binding("fill"),new R.Binding("stroke","borderColor"),new R.Binding("strokeWidth","thickness"),new R.Binding("strokeDashArray","dash")),e(R.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(R.TextBlock,{margin:1,textAlign:"center",overflow:R.TextBlock.OverflowEllipsis,editable:!0},new R.Binding("text").makeTwoWay(),new R.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(R.Panel,"Vertical",{maxSize:new R.Size(200,NaN)},e(R.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new R.Binding("text")),e(R.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new R.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(R.Adornment,"Spot",e(R.Placeholder,{padding:10}),b(R.Spot.Top,"TriangleUp"),b(R.Spot.Left,"TriangleLeft"),b(R.Spot.Right,"TriangleRight"),b(R.Spot.Bottom,"TriangleDown"),y({alignment:new R.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(R.Panel,"Horizontal",T("Rectangle"),T("RoundedRectangle"),T("Ellipse"),T("Diamond"))),e("ContextMenuButton",e(R.Panel,"Horizontal",T("Parallelogram2"),T("ManualOperation"),T("Procedure"),T("Cylinder1"))),e("ContextMenuButton",e(R.Panel,"Horizontal",T("Terminator"),T("CreateRequest"),T("Document"),T("TriangleDown"))),k(),S(),B()),i.current.groupTemplate=e(R.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:R.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new R.Binding("location","loc",R.Point.parse).makeTwoWay(R.Point.stringify),e(R.Panel,"Auto",{name:"BODY"},e(R.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:R.Spot.AllSides,toSpot:R.Spot.AllSides},new R.Binding("fill"),new R.Binding("stroke","color"),new R.Binding("strokeWidth","thickness"),new R.Binding("strokeDashArray","dash")),e(R.Placeholder,{background:"transparent",margin:20})),e(R.TextBlock,{alignment:R.Spot.Top,alignmentFocus:R.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new R.Binding("text"),new R.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(R.Adornment,"Spot",e(R.Panel,"Auto",e(R.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(R.Placeholder,{margin:1.5})),y({alignment:R.Spot.TopRight,alignmentFocus:R.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),B()),i.current.linkTemplate=e(R.Link,{layerName:"Foreground",routing:R.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new R.Binding("fromSpot","fromSpot",R.Spot.parse),new R.Binding("toSpot","toSpot",R.Spot.parse),new R.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new R.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new R.Binding("points").makeTwoWay(),e(R.Shape,{strokeWidth:2},new R.Binding("stroke","color"),new R.Binding("strokeWidth","thickness"),new R.Binding("strokeDashArray","dash")),e(R.Shape,{segmentIndex:0,segmentOffset:new R.Point(15,0),segmentOrientation:R.Link.OrientAlong,alignmentFocus:R.Spot.Right,figure:"circle",width:10,strokeWidth:0},new R.Binding("fill","color"),new R.Binding("visible","dir",(function(e){return 1===e}))),e(R.Shape,{segmentIndex:-1,segmentOffset:new R.Point(-10,6),segmentOrientation:R.Link.OrientPlus90,alignmentFocus:R.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new R.Binding("fill","color"),new R.Binding("visible","dir",(function(e){return e>=1})),new R.Binding("width","thickness",(function(e){return 7+3*e})),new R.Binding("height","thickness",(function(e){return 7+3*e})),new R.Binding("segmentOffset","thickness",(function(e){return new R.Point(-15,4+1.5*e)}))),e(R.Shape,{segmentIndex:0,segmentOffset:new R.Point(15,-6),segmentOrientation:R.Link.OrientMinus90,alignmentFocus:R.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new R.Binding("fill","color"),new R.Binding("visible","dir",(function(e){return 2===e})),new R.Binding("width","thickness",(function(e){return 7+3*e})),new R.Binding("height","thickness",(function(e){return 7+3*e})),new R.Binding("segmentOffset","thickness",(function(e){return new R.Point(-15,4+1.5*e)}))),e(R.TextBlock,{alignmentFocus:new R.Spot(0,1,-4,0),editable:!0},new R.Binding("text").makeTwoWay(),new R.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(R.Adornment,e(R.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:N(2)},new R.Binding("pathPattern","thickness",N)),y({alignmentFocus:new R.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",S(),B(),e("ContextMenuButton",e(R.Panel,"Horizontal",P(0),P(1),P(2))),e("ContextMenuButton",e(R.Panel,"Horizontal",e(R.Panel,"Spot",E(!1),L(R.Spot.Top,!1),L(R.Spot.Left,!1),L(R.Spot.Right,!1),L(R.Spot.Bottom,!1)),e(R.Panel,"Spot",{margin:new R.Margin(0,0,0,2)},E(!0),L(R.Spot.Top,!0),L(R.Spot.Left,!0),L(R.Spot.Right,!0),L(R.Spot.Bottom,!0))))),new R.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(R.Link,{locationSpot:R.Spot.Center,selectionAdornmentTemplate:e(R.Adornment,"Link",{locationSpot:R.Spot.Center},e(R.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(R.Shape,{toArrow:"Standard",stroke:null}))},{routing:R.Link.AvoidsNodes,curve:R.Link.JumpOver,corner:5,toShortLength:4},new R.Binding("points"),e(R.Shape,{isPanelMain:!0,strokeWidth:2}),e(R.Shape,{toArrow:"Standard",stroke:null})),model:new R.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(O()(R.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(R.Node,"Auto",{locationSpot:R.Spot.Center},new R.Binding("location","location",R.Point.parse).makeTwoWay(R.Point.stringify),e(R.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 R.Binding("stroke").makeTwoWay(),new R.Binding("fill").makeTwoWay(),new R.Binding("figure")),e(R.TextBlock,{margin:new R.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new R.Size(16,16),maxSize:new R.Size(10,NaN),textAlign:"center",editable:!0},new R.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(R.Panel,"Grid",e(R.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(R.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:o})]})]}),(0,m.jsx)("div",{className:"tr",children:(0,m.jsx)(S.ZP,{size:"large",onClick:h,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,m.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,m.jsx)("span",{style:X,children:"单元格数:"}),(0,m.jsx)("span",{style:X,children:"行数"}),(0,m.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,m.jsx)(Y.Z,{})}),(0,m.jsx)("span",{style:X,children:"列数"}),(0,m.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,m.jsx)(Y.Z,{})})]}),(0,m.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,m.jsx)("span",{style:X,children:"对齐方式:"}),(0,m.jsx)(_.Z.Item,{name:"align",children:(0,m.jsxs)(J,{children:[(0,m.jsx)(K.ZP,{value:"default",children:(0,m.jsx)("i",{className:"fa fa-align-justify"})}),(0,m.jsx)(K.ZP,{value:"left",children:(0,m.jsx)("i",{className:"fa fa-align-left"})}),(0,m.jsx)(K.ZP,{value:"center",children:(0,m.jsx)("i",{className:"fa fa-align-center"})}),(0,m.jsx)(K.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)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,o=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),f=d[0],p=d[1],h=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(h.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){h.current.appName=f?"3D":"graphing",s.current.inject("applet_container")}),[f]),(0,c.useEffect)((function(){p(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,m.jsxs)(N.Z,{align:"middle",children:[(0,m.jsx)(H.Z,{flex:1,children:(0,m.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,m.jsx)(H.Z,{children:(0,m.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),oe=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},me=n(77818);var he="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},we+"-B","bold"),we+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,j=e.mode,N=void 0===j?"markdown":j,P=e.id,L=void 0===P?"markdown-editor-id":P,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,Z=void 0!==G&&G,O=e.showNullButton,R=void 0!==O&&O,I=e.showNullProgramButton,D=void 0!==I&&I,F=e.hidetoolBar,H=void 0!==F&&F,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,fe=void 0!==te&&te,we=e.disabledFill,xe=void 0!==we&&we,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,je=void 0===Se?"":Se,Ce=e.extraUse,Be=(0,c.useState)(null),Te=a()(Be,2),Ne=Te[0],Pe=Te[1],Ee=(0,c.useState)(n),Le=a()(Ee,2),Me=Le[0],Ae=Le[1],Ge=(0,c.useState)(k),Ze=a()(Ge,2),Oe=Ze[0],Re=Ze[1],Ie=(0,c.useState)(V),De=a()(Ie,2),Fe=De[0],ze=De[1],He=(0,c.useState)(""),We=a()(He,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),ot=(0,c.useState)(0),rt=a()(ot,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],ft=(0,c.useRef)(),pt=(0,c.useRef)(),mt=(0,c.useRef)(),ht=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(je),null==Ne||Ne.setValue(je),window.scrollTo(0,e)}),[je]),(0,c.useEffect)((function(){null==Y||Y(Fe)}),[Fe]),(0,c.useEffect)((function(){if(ft.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==N)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,T.I)(s,(function(e){var n,i,o;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(ft.current,{mode:N,lineNumbers:!w,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),o=n.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===he.indexOf(r))return null;if(console.log("change1:",t,e,o,i,s,a,l,r),s>=0&&i.ch-s<5){var u=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),fe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Pe(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){pt.current}),[Qe,pt,Fe]);(0,c.useEffect)((function(){if(Ne){var e=function(){var e=new f.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Ne.setSize("100%","100%"),Ne.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(ft.current.parentElement),e}();return function(){var t,n;null!==(t=ft.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=ft.current)||void 0===n?void 0:n.parentElement)}}}),[Ne,gt]),(0,c.useEffect)((function(){if(Ne){for(var e=[],t=function(){var t=a()(i[n],2),o=t[0],r=t[1],l=s()({},o,(function(){vt(r)}));e.push(l),Ne.addKeyMap(l)},n=0,i=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(L);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(L,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Re(k)}),[Ne,k]),(0,c.useEffect)((function(){Ne&&_&&Ne.focus()}),[Ne,_]),(0,c.useEffect)((function(){if(Oe&&Ne){var e=function(e){var t=e.target;if(ht.current){var n=t.scrollTop/t.scrollHeight;ht.current.scrollTop=ht.current.scrollHeight*n}},t=Ne.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Ne,Oe]),(0,c.useEffect)((function(){if(Ne&&K){var e=function(e,t){K(e,t)};return Ne.on("beforeChange",e),function(){Ne.off("beforeChange",e)}}}),[Ne,K]),(0,c.useEffect)((function(){if(Ne&&q){var e=function(){q(Ne.getValue())};return Ne.on("blur",e),function(){Ne.off("blur",e)}}}),[Ne,q]),(0,c.useEffect)((function(){if(Ne){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(D?i(n,_t(n)):i(n))};return Ne.on("change",e),function(){Ne.off("change",e)}}}),[Ne,i]),(0,c.useEffect)((function(){if(Ne)if(null==n)Ne.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Ne.getValue()&&(Ne.setValue(n),Ae(n),Ne.setCursor(fe?1:Ne.lineCount(),0),window.scrollTo(0,e))}}),[Ne,n]);var vt=(0,c.useCallback)((function(e){var t=Ne.getCursor(),n=Ne.getSelection(),i=n.split("\n");switch(e){case"bold":return Ne.replaceSelection("**"+n+"**"),""===n&&Ne.setCursor(t.line,t.ch+2),Ne.focus();case"italic":return Ne.replaceSelection("*"+n+"*"),""===n&&Ne.setCursor(t.line,t.ch+1),Ne.focus();case"code":return Ne.replaceSelection("`"+n+"`"),""===n&&Ne.setCursor(t.line,t.ch+1),Ne.focus();case"inline-latex":return qe("inline-latex"),Ne.focus();case"latex":return Ne.replaceSelection("```latex\n"+n+"\n```"),Ne.setCursor(t.line+1,n.length+1),Ne.focus();case"line-break":return Ne.replaceSelection("
\n"),Ne.focus();case"list-ul":return""===n?Ne.replaceSelection("- "+n):Ne.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ne.focus();case"list-ol":return""===n?Ne.replaceSelection("1. "+n):Ne.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Ne.focus();case"add-null-ch":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("▁"),Ne.focus();case"add-signal":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("@▁@"),Ne.focus();case"add-multiple":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection(he),Ne.focus();case"inster-template-1":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ne.focus();case"eraser":return Ne.setValue(""),Ne.focus();case"trigger-watch":return Re(!Oe),Ne.focus();case"trigger-full-screen":return ze(!Fe),Ne.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Ne,Oe,Fe]),wt=(0,c.useCallback)((function(e,t){var n,i,o,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Ne.replaceSelection("[".concat(l,"](").concat(s,")")),Ne.focus();case ue:var c=e.language,u=e.content;return Ne.replaceSelection(["```"+c,u,"```"].join("\n")),Ne.focus();case"maths-latex":for(var d=atob(e),f=new Uint8Array(d.length),p=0;p-1||null==v||!v.type?g?Ne.replaceSelection("![ ".concat(g," ]( ").concat(h,' "').concat(g,'" )')):Ne.replaceSelection("![,](".concat(h,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Ne.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Ne.replaceSelection('').concat(v.name,"")):ge.includes(w)?Ne.replaceSelection('').concat(v.name,"")):Ne.replaceSelection("[".concat(v.name,"](").concat(oe.Z.API_SERVER).concat(h,")")),Ne.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},i=mt.current,o=!1,r=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Ne,mt]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:ve(l),height:ve(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(D){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>o-20&&i",children:[(0,L.jsx)(w.Z.Item,{children:(0,L.jsx)(m.Link,{to:"/classrooms/".concat(W.course_id,"/group_homework"),children:W.course_name})}),(0,L.jsx)(w.Z.Item,{children:(0,L.jsx)(m.Link,{to:"/classrooms/".concat(W.course_id,"/group_homework"),children:W.category.category_name})}),(0,L.jsxs)(w.Z.Item,{children:[null==W?void 0:W.user_name," 提交作品"]})]})})}),(0,L.jsx)("aside",{className:"font24 bold mt20 mb20",children:W.homework_name}),(0,L.jsxs)("div",{style:{background:"#fff",padding:"20px 30px"},children:[(0,L.jsx)("div",{style:{fontSize:"18px",marginBottom:"10px",fontWeight:600},children:"作业描述"}),(0,L.jsx)(T.Z,{value:(null==V?void 0:V.description)||"暂无~"}),(0,L.jsx)(N.Z,{authority:(0,P.GJ)(),showDimensions:!1,dataSource:null==V?void 0:V.attachments,callback:function(){i({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:r.commonHomeworkId}})}}),(0,L.jsx)(E.Ei,{value:V})]}),(0,L.jsxs)(h.Z,{form:c,className:k,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){G(s()({},c.getFieldsValue())),console.log("formValue:",A)},onFinish:oe,children:[(0,L.jsxs)("div",{className:S,children:[(0,L.jsx)(h.Z.Item,{name:"description",label:"内容:",rules:[{required:!0,message:"请输入作业的简介"},{max:65535,message:"作业简介最大限制65535个字符"}],children:(0,L.jsx)(y.Z,{watch:!0,defaultValue:W.description||""})}),(0,L.jsx)("div",{children:W.course_name&&(0,L.jsx)(h.Z.Item,{name:"attachment_ids",children:(0,L.jsx)(B.Z,{realTimeRemove:!1,maxSize:300})})})]}),(0,L.jsx)("div",{className:j,children:(0,L.jsx)("div",{className:"pt40 mb30",children:(0,L.jsxs)(h.Z.Item,{children:[(0,L.jsx)(b.ZP,{size:"middle",type:"primary",className:"".concat(C," mr20"),htmlType:"submit",loading:n["newCourse/editCourse"]||n["newCourse/submitCourse"],children:"提交"}),(0,L.jsx)(b.ZP,{size:"middle",type:"primary",ghost:!0,className:C,onClick:function(){return m.history.push("/classrooms/".concat(r.coursesId,"/common_homework/").concat(r.commonHomeworkId,"/detail"))},children:"取消"})]})})})]})]})}))},72764:function(e,t,n){"use strict";n.d(t,{Ei:function(){return w},rU:function(){return b},ZP:function(){return y}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s={wrap:"wrap___W3YuU",title:"title___OzKge",exhibition:"exhibition___ugphm"},c=n(78241),u=n(95237),d=n(43604),f=n(24905),p=n(94001),m=n(6848),h=n(92310),g=n.n(h),v=n(37712),w=function(e){var t=e.value,n=e.className,i=e.style,o=(0,l.useState)("0"),r=a()(o,2),c=r[0],u=r[1];(0,l.useEffect)((function(){if(t){var e=t.submit_limit,n=t.must_file;if(e&&n)return void u("1");if(e&&!n)return void u("2");if(!e&&n)return void u("3")}}),[t]);var d={1:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符,并且必须上传相关附件。"]}),2:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符"]}),3:(0,v.jsx)("span",{children:"必须上传相关附件。"})};return"0"===c?(0,v.jsx)(v.Fragment,{}):(0,v.jsxs)("section",{className:g()(s.exhibition,n),style:i,children:[(0,v.jsx)("span",{className:"c-grey-666 mr10",children:"提交作业要求:"}),null==d?void 0:d[c]]})},b=function(e){var t=e.className,n=e.style,i=e.form,o=c.Z.useWatch("submit_limit",i),r=c.Z.useWatch("can_submit",i);return(0,v.jsx)("section",{className:g()(s.newWrap,t),style:n,children:(0,v.jsxs)("div",{style:{padding:"20px 0",borderBottom:"1px solid #EDEDED"},children:[(0,v.jsx)("h1",{children:"提交设置"}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"can_submit",valuePropName:"checked",children:(0,v.jsx)(f.Z,{children:(0,v.jsx)("span",{className:"font16",children:"限制学生提交作品"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_num",rules:r&&[{required:!0,message:"请填写作品次数"}],children:(0,v.jsx)(p.Z,{precision:0,min:1,disabled:!r})})}),(0,v.jsx)(d.Z,{children:"次"}),(0,v.jsxs)(d.Z,{children:[" ",(0,v.jsx)(m.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999"})})]})]}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit",valuePropName:"checked",children:(0,v.jsx)(f.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生填写内容至少"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit_num",rules:o&&[{required:!0,message:"字数不能为空"}],children:(0,v.jsx)(p.Z,{precision:0,min:1,disabled:!o})})}),(0,v.jsx)(d.Z,{children:"字"})]}),(0,v.jsx)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"must_file",valuePropName:"checked",children:(0,v.jsx)(f.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生提交作业必须上传附件"})})})})})]})})},y=function(e){var t=e.value,n=e.onChange,i=e.className,r=e.style,c=e.disabled,d=void 0!==c&&c,h=(0,l.useState)({}),w=a()(h,2),b=w[0],y=w[1];(0,l.useEffect)((function(){if(console.log(t,"value"),t){var e={submit_limit:null==t?void 0:t.submit_limit,submit_limit_num:null==t?void 0:t.submit_limit_num,must_file:null==t?void 0:t.must_file,can_submit:null==t?void 0:t.can_submit,submit_num:null==t?void 0:t.submit_num};y(o()({},e))}}),[t]);var x=function(e){var t=o()(o()({},b),e);n(t)};return(0,v.jsxs)("section",{className:g()(s.wrap,i),style:r,children:[(0,v.jsx)("div",{className:s.title,children:"提交设置"}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(f.Z,{disabled:d,checked:null==b?void 0:b.can_submit,onChange:function(e){return x({can_submit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"限制学生提交作业"}),(0,v.jsx)(p.Z,{precision:0,min:1,disabled:d||!(null!=b&&b.can_submit),value:null==b?void 0:b.submit_num,onChange:function(e){return x({submit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"次"}),(0,v.jsx)(m.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999 ml5"})})]}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(f.Z,{disabled:d,checked:null==b?void 0:b.submit_limit,onChange:function(e){return x({submit_limit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"学生填写内容至少"}),(0,v.jsx)(p.Z,{precision:0,min:1,disabled:d||!(null!=b&&b.submit_limit),value:null==b?void 0:b.submit_limit_num,onChange:function(e){return x({submit_limit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"字"})]}),(0,v.jsxs)(u.Z,{align:"middle",children:[(0,v.jsx)(f.Z,{disabled:d,checked:null==b?void 0:b.must_file,onChange:function(e){return x({must_file:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10",children:"学生提交作业必须上传附件"})]})]})}},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return p},jP:function(){return f},rO:function(){return c}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return(0,l.v_)("libraries.json",e)}function p(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__CommonHomework__EditWork__index.851efd65.async.js b/p__Classrooms__Lists__CommonHomework__EditWork__index.851efd65.async.js new file mode 100644 index 0000000000..f8203e6cbc --- /dev/null +++ b/p__Classrooms__Lists__CommonHomework__EditWork__index.851efd65.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[31211,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,o=!1,r=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,O(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,Z(e,t))},e.getHTML5CodebaseVersion=function(){return h},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,o="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var B=function(e){return e&&"false"!==e},T=function(t,n,i){x(h)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==h||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(h)<=4.4)B(n.showToolBar)&&(n.height-=7),B(n.showAlgebraInput)&&(n.height-=37),n.width<605&&B(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(B(n.showToolBar)||B(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=B(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},b||w.appendChild(_)):r.appendChild(_),w.appendChild(r),b||t.appendChild(w),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),R("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(h)<5&&(e.className+=" geogebraweb")):k(e,t)}if(o){scriptLoadStarted=!0;for(var j=0;j0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):T(o,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else m=i,T(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",o.appendChild(a)}return o.appendChild(c),o},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],Z=function(e,t){if(h=e,t)O(h,!0);else{var r,a,l=!o;if(l){var s=x(h);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=h.indexOf("//");for(var u in a=c>0?h:0===c?r+h:"https://www.geogebra.org/apps/5.2.814.0/",G)if(h.slice(-1*G[u].length)===G[u]||h.slice(-1*(G[u].length+1))===G[u]+"/")return void O(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||B(n.showToolBar)||B(n.showMenuBar)||B(n.showAlgebraInput)||B(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",O(a,!1)}},O=function(e,t){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===t&&(t=-1===e.indexOf("http")),p=t,g="web.nocache.js",v=!1;var n=f.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(h=n[n.length-3]).substr(0,4)?h=h.substr(4,1)+"."+h.substr(5,1):"war"!==h.substr(0,3)&&"beta"!==h.substr(0,4)||(h="5.0");var 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."),Z("5.0",t))}},R=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function I(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),Z(e,!1),null!==c&&O(c,p),l=!0}return void 0!==n.material_id?S(I):I(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,i,o,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,f=0,p=0,m=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var h=e.getBoundingClientRect();h.left>0&&h.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-h.width-h.left,p=u<=480?10:30):(p=h.left,f=u<=480?10:30),d=p+f)}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===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(t-i.width)/2,r=(n-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],o=O;o0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var B=function(e){var t=e.value,n=e.onChange,i=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,C=e.title,B=void 0===C?"上传附件":C,T=e.showRemoveModal,N=void 0!==T&&T,P=e.accept,E=void 0===P?"":P,L=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,Z=e.aloneClear,O=void 0!==Z&&Z,R=e.realTimeRemove,I=void 0===R||R,D=e.uploadText,F=e.setFileProgress,z=e.showFileProgress,H=(0,p.useState)(!1),W=f()(H,2),V=W[0],q=W[1],U=(0,p.useState)(t||[]),K=f()(U,2),Y=K[0],J=K[1],X=(0,p.useState)(1),$=f()(X,2),Q=$[0],ee=$[1];(0,p.useEffect)((function(){t&&(1===Q&&J(u()(t)),ee(2),G===(null==t?void 0:t.length)&&q(!0))}),[t]);var te=function(){setTimeout((function(){Y.pop(),J(u()(Y))}),500)};z&&F(Y.some((function(e){return"uploading"===e.status})));var ne,ie={multiple:!0,disabled:V,accept:E,withCredentials:!0,fileList:Y,beforeUpload:function(e,t){var n=e.size/1024/1024;return Y.concat(t).length>G?(Y.pop(),J(u()(Y)),h.ZP.error("最多只能上传".concat(G,"个文件")),O?Promise.reject():(te(),!1)):n=G?q(!0):q(!1),J(u()(Y)),Y=Y.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,Y),n(Y)):h.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(ne=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(I){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!N){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,h.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return ne.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(j,s()(s()({},ie),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),L]})),!M&&(0,y.jsxs)(m.Z,s()(s()({},ie),{},{children:[(0,y.jsxs)(v.ZP,{disabled:V,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),B]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:D||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),f=n.n(d),p=(n(80443),n(90630),n(37712)),m=s.default.Option,h={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),m=d[0],h=d[1];return(0,l.useEffect)((function(){if(m){var e=function(e){var t=e.getValue();n&&n(t)};return m.on("change",e),function(){m.off("change",e)}}}),[m,n]),(0,l.useEffect)((function(){m&&m.setOption("mode",i)}),[m,i]),(0,l.useEffect)((function(){m&&(t===m.getValue()&&""!==t||setTimeout((function(){m.setValue(t||"")}),300))}),[m,t]),(0,l.useEffect)((function(){if(c.current&&!m){var e=f().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));h(e)}}),[c.current,m]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,l.useState)("python"),r=a()(i,2),d=r[0],f=r[1];return(0,p.jsxs)(c.Z,o()(o()({},h),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){f(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(m,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(v,{mode:d})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var i=n(91232),o=n.n(i),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),f=n(76374),p=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),m=n(37712),h=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),v=n.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,o=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,m.jsxs)("a",{title:n,className:a,onClick:function(){t(o)},children:[(0,m.jsx)("i",{className:"".concat(i)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,m.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,m.jsx)("li",{children:e.actionName?(0,m.jsx)(b,v()(v()({},e),{},{onActionCallback:o})):(0,m.jsx)("span",{className:"v-line"})},t)})),n?(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,m.jsx)("li",{children:s}),(0,m.jsx)("li",{className:"btn-full-screen",children:(0,m.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),j={labelCol:{span:4},wrapperCol:{span:20}},C=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(_.Z,v()(v()({},j),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,m.jsx)(k.Z,{})}),(0,m.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,m.jsx)(k.Z,{})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},B=n(73145),T=n(28486),N=n(95237),P=n(36709),E=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,m.jsx)(N.Z,{style:{height:"100vh"},children:(0,m.jsx)(P.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},L=n(7557),M=n.n(L),A=n(41498),G=n.n(A),Z=n(37205),O=n.n(Z),R=n(12378);function I(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(I,go.CommandHandler),I.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},I.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},I.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},I.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},I.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},I.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},I.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},I.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))i.y?1:n.xi.x?1:0})),t},I.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},I.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(I.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(I.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 D=I,F=(n(41034),n(85160)),z=n(43418),H=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=R;var U=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),f=d[0],p=d[1],h=function(){var e=G()(M()().mark((function e(){var t,o;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,m.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,m.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,m.jsxs)(N.Z,{children:[(0,m.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,m.jsx)(H.Z,{onClick:function(){l.current=!l.current,p(f+1)},children:(0,m.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,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:V,ref:r})]}),(0,m.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,m.jsx)(F.FI,{initDiagram:function(){var e=R.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",f="#fffcd5",p="#d5ebff",m="#f2dfe0",h="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var o=n.part.adornedPart,r=(new R.Point).setRectSpot(o.actualBounds,t);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var l={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(R.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(R.Spot.Top)||t.equals(R.Spot.Bottom)?25:18,height:t.equals(R.Spot.Top)||t.equals(R.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(t){return e(R.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(R.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(R.Panel,"Horizontal",_(u,"fill"),_(f,"fill"),_(p,"fill"),_(m,"fill"))),e("ContextMenuButton",e(R.Panel,"Horizontal",_(g,"fill"),_(v,"fill"),_(h,"fill"),_(w,"fill")))]}function S(){return[e("ContextMenuButton",e(R.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(R.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function j(t,n){return n||(n="thickness"),e(R.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function C(t,n){return n||(n="dash"),e(R.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function B(){return[e("ContextMenuButton",e(R.Panel,"Horizontal",j(1),j(2),j(3),j(4))),e("ContextMenuButton",e(R.Panel,"Horizontal",C(null),C([2,4]),C([4,4])))]}function T(t,n){return n||(n="figure"),e(R.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function N(t){return e(R.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function P(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(R.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function E(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",R.Spot.stringify(R.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(R.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function L(t,n){var i=0,o=R.Spot.RightSide;t.equals(R.Spot.Top)?(i=270,o=R.Spot.TopSide):t.equals(R.Spot.Left)?(i=180,o=R.Spot.LeftSide):t.equals(R.Spot.Bottom)&&(i=90,o=R.Spot.BottomSide),n||(i-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",R.Spot.stringify(o)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(R.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return i.current=new R.Diagram(o.current,{padding:20,grid:e(R.Panel,"Grid",e(R.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(R.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(D),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(R.Node,"Auto",{locationSpot:R.Spot.Center,locationObjectName:"SHAPE",desiredSize:new R.Size(120,60),minSize:new R.Size(40,40),resizable:!0,resizeCellSize:new R.Size(10,10),rotatable:!0},new R.Binding("location","loc",R.Point.parse).makeTwoWay(R.Point.stringify),new R.Binding("desiredSize","size",R.Size.parse).makeTwoWay(R.Size.stringify),e(R.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:R.Spot.AllSides,toSpot:R.Spot.AllSides},new R.Binding("figure"),new R.Binding("fill"),new R.Binding("stroke","borderColor"),new R.Binding("strokeWidth","thickness"),new R.Binding("strokeDashArray","dash")),e(R.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(R.TextBlock,{margin:1,textAlign:"center",overflow:R.TextBlock.OverflowEllipsis,editable:!0},new R.Binding("text").makeTwoWay(),new R.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(R.Panel,"Vertical",{maxSize:new R.Size(200,NaN)},e(R.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new R.Binding("text")),e(R.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new R.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(R.Adornment,"Spot",e(R.Placeholder,{padding:10}),b(R.Spot.Top,"TriangleUp"),b(R.Spot.Left,"TriangleLeft"),b(R.Spot.Right,"TriangleRight"),b(R.Spot.Bottom,"TriangleDown"),y({alignment:new R.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(R.Panel,"Horizontal",T("Rectangle"),T("RoundedRectangle"),T("Ellipse"),T("Diamond"))),e("ContextMenuButton",e(R.Panel,"Horizontal",T("Parallelogram2"),T("ManualOperation"),T("Procedure"),T("Cylinder1"))),e("ContextMenuButton",e(R.Panel,"Horizontal",T("Terminator"),T("CreateRequest"),T("Document"),T("TriangleDown"))),k(),S(),B()),i.current.groupTemplate=e(R.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:R.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new R.Binding("location","loc",R.Point.parse).makeTwoWay(R.Point.stringify),e(R.Panel,"Auto",{name:"BODY"},e(R.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:R.Spot.AllSides,toSpot:R.Spot.AllSides},new R.Binding("fill"),new R.Binding("stroke","color"),new R.Binding("strokeWidth","thickness"),new R.Binding("strokeDashArray","dash")),e(R.Placeholder,{background:"transparent",margin:20})),e(R.TextBlock,{alignment:R.Spot.Top,alignmentFocus:R.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new R.Binding("text"),new R.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(R.Adornment,"Spot",e(R.Panel,"Auto",e(R.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(R.Placeholder,{margin:1.5})),y({alignment:R.Spot.TopRight,alignmentFocus:R.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),B()),i.current.linkTemplate=e(R.Link,{layerName:"Foreground",routing:R.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new R.Binding("fromSpot","fromSpot",R.Spot.parse),new R.Binding("toSpot","toSpot",R.Spot.parse),new R.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new R.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new R.Binding("points").makeTwoWay(),e(R.Shape,{strokeWidth:2},new R.Binding("stroke","color"),new R.Binding("strokeWidth","thickness"),new R.Binding("strokeDashArray","dash")),e(R.Shape,{segmentIndex:0,segmentOffset:new R.Point(15,0),segmentOrientation:R.Link.OrientAlong,alignmentFocus:R.Spot.Right,figure:"circle",width:10,strokeWidth:0},new R.Binding("fill","color"),new R.Binding("visible","dir",(function(e){return 1===e}))),e(R.Shape,{segmentIndex:-1,segmentOffset:new R.Point(-10,6),segmentOrientation:R.Link.OrientPlus90,alignmentFocus:R.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new R.Binding("fill","color"),new R.Binding("visible","dir",(function(e){return e>=1})),new R.Binding("width","thickness",(function(e){return 7+3*e})),new R.Binding("height","thickness",(function(e){return 7+3*e})),new R.Binding("segmentOffset","thickness",(function(e){return new R.Point(-15,4+1.5*e)}))),e(R.Shape,{segmentIndex:0,segmentOffset:new R.Point(15,-6),segmentOrientation:R.Link.OrientMinus90,alignmentFocus:R.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new R.Binding("fill","color"),new R.Binding("visible","dir",(function(e){return 2===e})),new R.Binding("width","thickness",(function(e){return 7+3*e})),new R.Binding("height","thickness",(function(e){return 7+3*e})),new R.Binding("segmentOffset","thickness",(function(e){return new R.Point(-15,4+1.5*e)}))),e(R.TextBlock,{alignmentFocus:new R.Spot(0,1,-4,0),editable:!0},new R.Binding("text").makeTwoWay(),new R.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(R.Adornment,e(R.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:N(2)},new R.Binding("pathPattern","thickness",N)),y({alignmentFocus:new R.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",S(),B(),e("ContextMenuButton",e(R.Panel,"Horizontal",P(0),P(1),P(2))),e("ContextMenuButton",e(R.Panel,"Horizontal",e(R.Panel,"Spot",E(!1),L(R.Spot.Top,!1),L(R.Spot.Left,!1),L(R.Spot.Right,!1),L(R.Spot.Bottom,!1)),e(R.Panel,"Spot",{margin:new R.Margin(0,0,0,2)},E(!0),L(R.Spot.Top,!0),L(R.Spot.Left,!0),L(R.Spot.Right,!0),L(R.Spot.Bottom,!0))))),new R.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(R.Link,{locationSpot:R.Spot.Center,selectionAdornmentTemplate:e(R.Adornment,"Link",{locationSpot:R.Spot.Center},e(R.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(R.Shape,{toArrow:"Standard",stroke:null}))},{routing:R.Link.AvoidsNodes,curve:R.Link.JumpOver,corner:5,toShortLength:4},new R.Binding("points"),e(R.Shape,{isPanelMain:!0,strokeWidth:2}),e(R.Shape,{toArrow:"Standard",stroke:null})),model:new R.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(O()(R.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(R.Node,"Auto",{locationSpot:R.Spot.Center},new R.Binding("location","location",R.Point.parse).makeTwoWay(R.Point.stringify),e(R.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 R.Binding("stroke").makeTwoWay(),new R.Binding("fill").makeTwoWay(),new R.Binding("figure")),e(R.TextBlock,{margin:new R.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new R.Size(16,16),maxSize:new R.Size(10,NaN),textAlign:"center",editable:!0},new R.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(R.Panel,"Grid",e(R.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(R.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:o})]})]}),(0,m.jsx)("div",{className:"tr",children:(0,m.jsx)(S.ZP,{size:"large",onClick:h,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,m.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,m.jsx)("span",{style:X,children:"单元格数:"}),(0,m.jsx)("span",{style:X,children:"行数"}),(0,m.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,m.jsx)(Y.Z,{})}),(0,m.jsx)("span",{style:X,children:"列数"}),(0,m.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,m.jsx)(Y.Z,{})})]}),(0,m.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,m.jsx)("span",{style:X,children:"对齐方式:"}),(0,m.jsx)(_.Z.Item,{name:"align",children:(0,m.jsxs)(J,{children:[(0,m.jsx)(K.ZP,{value:"default",children:(0,m.jsx)("i",{className:"fa fa-align-justify"})}),(0,m.jsx)(K.ZP,{value:"left",children:(0,m.jsx)("i",{className:"fa fa-align-left"})}),(0,m.jsx)(K.ZP,{value:"center",children:(0,m.jsx)("i",{className:"fa fa-align-center"})}),(0,m.jsx)(K.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)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,o=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),f=d[0],p=d[1],h=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(h.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){h.current.appName=f?"3D":"graphing",s.current.inject("applet_container")}),[f]),(0,c.useEffect)((function(){p(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,m.jsxs)(N.Z,{align:"middle",children:[(0,m.jsx)(H.Z,{flex:1,children:(0,m.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,m.jsx)(H.Z,{children:(0,m.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),oe=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},me=n(77818);var he="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},we+"-B","bold"),we+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,j=e.mode,N=void 0===j?"markdown":j,P=e.id,L=void 0===P?"markdown-editor-id":P,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,Z=void 0!==G&&G,O=e.showNullButton,R=void 0!==O&&O,I=e.showNullProgramButton,D=void 0!==I&&I,F=e.hidetoolBar,H=void 0!==F&&F,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,fe=void 0!==te&&te,we=e.disabledFill,xe=void 0!==we&&we,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,je=void 0===Se?"":Se,Ce=e.extraUse,Be=(0,c.useState)(null),Te=a()(Be,2),Ne=Te[0],Pe=Te[1],Ee=(0,c.useState)(n),Le=a()(Ee,2),Me=Le[0],Ae=Le[1],Ge=(0,c.useState)(k),Ze=a()(Ge,2),Oe=Ze[0],Re=Ze[1],Ie=(0,c.useState)(V),De=a()(Ie,2),Fe=De[0],ze=De[1],He=(0,c.useState)(""),We=a()(He,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),ot=(0,c.useState)(0),rt=a()(ot,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],ft=(0,c.useRef)(),pt=(0,c.useRef)(),mt=(0,c.useRef)(),ht=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(je),null==Ne||Ne.setValue(je),window.scrollTo(0,e)}),[je]),(0,c.useEffect)((function(){null==Y||Y(Fe)}),[Fe]),(0,c.useEffect)((function(){if(ft.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==N)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,T.I)(s,(function(e){var n,i,o;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(ft.current,{mode:N,lineNumbers:!w,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),o=n.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===he.indexOf(r))return null;if(console.log("change1:",t,e,o,i,s,a,l,r),s>=0&&i.ch-s<5){var u=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),fe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Pe(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){pt.current}),[Qe,pt,Fe]);(0,c.useEffect)((function(){if(Ne){var e=function(){var e=new f.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Ne.setSize("100%","100%"),Ne.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(ft.current.parentElement),e}();return function(){var t,n;null!==(t=ft.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=ft.current)||void 0===n?void 0:n.parentElement)}}}),[Ne,gt]),(0,c.useEffect)((function(){if(Ne){for(var e=[],t=function(){var t=a()(i[n],2),o=t[0],r=t[1],l=s()({},o,(function(){vt(r)}));e.push(l),Ne.addKeyMap(l)},n=0,i=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(L);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(L,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Re(k)}),[Ne,k]),(0,c.useEffect)((function(){Ne&&_&&Ne.focus()}),[Ne,_]),(0,c.useEffect)((function(){if(Oe&&Ne){var e=function(e){var t=e.target;if(ht.current){var n=t.scrollTop/t.scrollHeight;ht.current.scrollTop=ht.current.scrollHeight*n}},t=Ne.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Ne,Oe]),(0,c.useEffect)((function(){if(Ne&&K){var e=function(e,t){K(e,t)};return Ne.on("beforeChange",e),function(){Ne.off("beforeChange",e)}}}),[Ne,K]),(0,c.useEffect)((function(){if(Ne&&q){var e=function(){q(Ne.getValue())};return Ne.on("blur",e),function(){Ne.off("blur",e)}}}),[Ne,q]),(0,c.useEffect)((function(){if(Ne){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(D?i(n,_t(n)):i(n))};return Ne.on("change",e),function(){Ne.off("change",e)}}}),[Ne,i]),(0,c.useEffect)((function(){if(Ne)if(null==n)Ne.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Ne.getValue()&&(Ne.setValue(n),Ae(n),Ne.setCursor(fe?1:Ne.lineCount(),0),window.scrollTo(0,e))}}),[Ne,n]);var vt=(0,c.useCallback)((function(e){var t=Ne.getCursor(),n=Ne.getSelection(),i=n.split("\n");switch(e){case"bold":return Ne.replaceSelection("**"+n+"**"),""===n&&Ne.setCursor(t.line,t.ch+2),Ne.focus();case"italic":return Ne.replaceSelection("*"+n+"*"),""===n&&Ne.setCursor(t.line,t.ch+1),Ne.focus();case"code":return Ne.replaceSelection("`"+n+"`"),""===n&&Ne.setCursor(t.line,t.ch+1),Ne.focus();case"inline-latex":return qe("inline-latex"),Ne.focus();case"latex":return Ne.replaceSelection("```latex\n"+n+"\n```"),Ne.setCursor(t.line+1,n.length+1),Ne.focus();case"line-break":return Ne.replaceSelection("
\n"),Ne.focus();case"list-ul":return""===n?Ne.replaceSelection("- "+n):Ne.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ne.focus();case"list-ol":return""===n?Ne.replaceSelection("1. "+n):Ne.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Ne.focus();case"add-null-ch":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("▁"),Ne.focus();case"add-signal":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("@▁@"),Ne.focus();case"add-multiple":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection(he),Ne.focus();case"inster-template-1":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ne.focus();case"eraser":return Ne.setValue(""),Ne.focus();case"trigger-watch":return Re(!Oe),Ne.focus();case"trigger-full-screen":return ze(!Fe),Ne.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Ne,Oe,Fe]),wt=(0,c.useCallback)((function(e,t){var n,i,o,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Ne.replaceSelection("[".concat(l,"](").concat(s,")")),Ne.focus();case ue:var c=e.language,u=e.content;return Ne.replaceSelection(["```"+c,u,"```"].join("\n")),Ne.focus();case"maths-latex":for(var d=atob(e),f=new Uint8Array(d.length),p=0;p-1||null==v||!v.type?g?Ne.replaceSelection("![ ".concat(g," ]( ").concat(h,' "').concat(g,'" )')):Ne.replaceSelection("![,](".concat(h,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Ne.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Ne.replaceSelection('').concat(v.name,"")):ge.includes(w)?Ne.replaceSelection('').concat(v.name,"")):Ne.replaceSelection("[".concat(v.name,"](").concat(oe.Z.API_SERVER).concat(h,")")),Ne.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},i=mt.current,o=!1,r=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Ne,mt]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:ve(l),height:ve(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(D){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>o-20&&i",children:[(0,L.jsx)(w.Z.Item,{children:(0,L.jsx)(m.Link,{to:"/classrooms/".concat(W.course_id,"/group_homework"),children:W.course_name})}),(0,L.jsx)(w.Z.Item,{children:(0,L.jsx)(m.Link,{to:"/classrooms/".concat(W.course_id,"/group_homework"),children:W.category.category_name})}),(0,L.jsxs)(w.Z.Item,{children:[null==W?void 0:W.user_name," 提交作品"]})]})})}),(0,L.jsx)("aside",{className:"font24 bold mt20 mb20",children:W.homework_name}),(0,L.jsxs)("div",{style:{background:"#fff",padding:"20px 30px"},children:[(0,L.jsx)("div",{style:{fontSize:"18px",marginBottom:"10px",fontWeight:600},children:"作业描述"}),(0,L.jsx)(T.Z,{value:(null==V?void 0:V.description)||"暂无~"}),(0,L.jsx)(N.Z,{authority:(0,P.GJ)(),showDimensions:!1,dataSource:null==V?void 0:V.attachments,callback:function(){i({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:r.commonHomeworkId}})}}),(0,L.jsx)(E.Ei,{value:V})]}),(0,L.jsxs)(h.Z,{form:c,className:k,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){G(s()({},c.getFieldsValue())),console.log("formValue:",A)},onFinish:oe,children:[(0,L.jsxs)("div",{className:S,children:[(0,L.jsx)(h.Z.Item,{name:"description",label:"内容:",rules:[{required:!0,message:"请输入作业的简介"},{max:65535,message:"作业简介最大限制65535个字符"}],children:(0,L.jsx)(y.Z,{watch:!0,defaultValue:W.description||""})}),(0,L.jsx)("div",{children:W.course_name&&(0,L.jsx)(h.Z.Item,{name:"attachment_ids",children:(0,L.jsx)(B.Z,{realTimeRemove:!1,maxSize:300})})})]}),(0,L.jsx)("div",{className:j,children:(0,L.jsx)("div",{className:"pt40 mb30",children:(0,L.jsxs)(h.Z.Item,{children:[(0,L.jsx)(b.ZP,{size:"middle",type:"primary",className:"".concat(C," mr20"),htmlType:"submit",loading:n["newCourse/editCourse"]||n["newCourse/submitCourse"],children:"提交"}),(0,L.jsx)(b.ZP,{size:"middle",type:"primary",ghost:!0,className:C,onClick:function(){return m.history.push("/classrooms/".concat(r.coursesId,"/common_homework/").concat(r.commonHomeworkId,"/detail"))},children:"取消"})]})})})]})]})}))},72764:function(e,t,n){"use strict";n.d(t,{Ei:function(){return w},rU:function(){return b},ZP:function(){return y}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s={wrap:"wrap___W3YuU",title:"title___OzKge",exhibition:"exhibition___ugphm"},c=n(78241),u=n(95237),d=n(43604),f=n(24905),p=n(94001),m=n(6848),h=n(92310),g=n.n(h),v=n(37712),w=function(e){var t=e.value,n=e.className,i=e.style,o=(0,l.useState)("0"),r=a()(o,2),c=r[0],u=r[1];(0,l.useEffect)((function(){if(t){var e=t.submit_limit,n=t.must_file;if(e&&n)return void u("1");if(e&&!n)return void u("2");if(!e&&n)return void u("3")}}),[t]);var d={1:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符,并且必须上传相关附件。"]}),2:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符"]}),3:(0,v.jsx)("span",{children:"必须上传相关附件。"})};return"0"===c?(0,v.jsx)(v.Fragment,{}):(0,v.jsxs)("section",{className:g()(s.exhibition,n),style:i,children:[(0,v.jsx)("span",{className:"c-grey-666 mr10",children:"提交作业要求:"}),null==d?void 0:d[c]]})},b=function(e){var t=e.className,n=e.style,i=e.form,o=c.Z.useWatch("submit_limit",i),r=c.Z.useWatch("can_submit",i);return(0,v.jsx)("section",{className:g()(s.newWrap,t),style:n,children:(0,v.jsxs)("div",{style:{padding:"20px 0",borderBottom:"1px solid #EDEDED"},children:[(0,v.jsx)("h1",{children:"提交设置"}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"can_submit",valuePropName:"checked",children:(0,v.jsx)(f.Z,{children:(0,v.jsx)("span",{className:"font16",children:"限制学生提交作品"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_num",rules:r&&[{required:!0,message:"请填写作品次数"}],children:(0,v.jsx)(p.Z,{precision:0,min:1,disabled:!r})})}),(0,v.jsx)(d.Z,{children:"次"}),(0,v.jsxs)(d.Z,{children:[" ",(0,v.jsx)(m.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999"})})]})]}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit",valuePropName:"checked",children:(0,v.jsx)(f.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生填写内容至少"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit_num",rules:o&&[{required:!0,message:"字数不能为空"}],children:(0,v.jsx)(p.Z,{precision:0,min:1,disabled:!o})})}),(0,v.jsx)(d.Z,{children:"字"})]}),(0,v.jsx)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"must_file",valuePropName:"checked",children:(0,v.jsx)(f.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生提交作业必须上传附件"})})})})})]})})},y=function(e){var t=e.value,n=e.onChange,i=e.className,r=e.style,c=e.disabled,d=void 0!==c&&c,h=(0,l.useState)({}),w=a()(h,2),b=w[0],y=w[1];(0,l.useEffect)((function(){if(console.log(t,"value"),t){var e={submit_limit:null==t?void 0:t.submit_limit,submit_limit_num:null==t?void 0:t.submit_limit_num,must_file:null==t?void 0:t.must_file,can_submit:null==t?void 0:t.can_submit,submit_num:null==t?void 0:t.submit_num};y(o()({},e))}}),[t]);var x=function(e){var t=o()(o()({},b),e);n(t)};return(0,v.jsxs)("section",{className:g()(s.wrap,i),style:r,children:[(0,v.jsx)("div",{className:s.title,children:"提交设置"}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(f.Z,{disabled:d,checked:null==b?void 0:b.can_submit,onChange:function(e){return x({can_submit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"限制学生提交作业"}),(0,v.jsx)(p.Z,{precision:0,min:1,disabled:d||!(null!=b&&b.can_submit),value:null==b?void 0:b.submit_num,onChange:function(e){return x({submit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"次"}),(0,v.jsx)(m.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999 ml5"})})]}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(f.Z,{disabled:d,checked:null==b?void 0:b.submit_limit,onChange:function(e){return x({submit_limit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"学生填写内容至少"}),(0,v.jsx)(p.Z,{precision:0,min:1,disabled:d||!(null!=b&&b.submit_limit),value:null==b?void 0:b.submit_limit_num,onChange:function(e){return x({submit_limit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"字"})]}),(0,v.jsxs)(u.Z,{align:"middle",children:[(0,v.jsx)(f.Z,{disabled:d,checked:null==b?void 0:b.must_file,onChange:function(e){return x({must_file:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10",children:"学生提交作业必须上传附件"})]})]})}},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return p},jP:function(){return f},rO:function(){return c}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return(0,l.v_)("libraries.json",e)}function p(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__CommonHomework__Edit__index.52af2829.async.js b/p__Classrooms__Lists__CommonHomework__Edit__index.52af2829.async.js deleted file mode 100644 index d86bd2604b..0000000000 --- a/p__Classrooms__Lists__CommonHomework__Edit__index.52af2829.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[19715,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},o=null,i=!1,r=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,Z(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,O(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var o,i="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var T=function(e){return e&&"false"!==e},C=function(t,n,o){x(m)<=4.2&&(o=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(m)<=4.4)T(n.showToolBar)&&(n.height-=7),T(n.showAlgebraInput)&&(n.height-=37),n.width<605&&T(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(T(n.showToolBar)||T(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=T(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),f(e)},b||w.appendChild(_)):r.appendChild(_),w.appendChild(r),b||t.appendChild(w),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),I("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(m)<5&&(e.className+=" geogebraweb")):k(e,t)}if(i){scriptLoadStarted=!0;for(var j=0;j0?(i.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):C(i,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=o,C(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",i.appendChild(a)}return i.appendChild(c),i},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,t){if(m=e,t)Z(m,!0);else{var r,a,l=!i;if(l){var s=x(m);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?r+m:"https://www.geogebra.org/apps/5.2.814.0/",G)if(m.slice(-1*G[u].length)===G[u]||m.slice(-1*(G[u].length+1))===G[u]+"/")return void Z(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||o.is3D||o.AV||o.SV||o.CV||o.EV2||o.CP||o.PC||o.DA||o.FI||o.PV||T(n.showToolBar)||T(n.showMenuBar)||T(n.showAlgebraInput)||T(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",Z(a,!1)}},Z=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),f=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var o=parseFloat(m);NaN!==o&&o<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+o+" is deprecated. Using version latest instead."),O("5.0",t))}},I=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&Z(c,f),l=!0}return void 0!==n.material_id?S(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,o,i){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==o&&o,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,o,i,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,p=0,f=0,h=0;if(a)s=a.offsetWidth,c=Math.max(o?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===i||!i)&&("rtl"===document.dir?(p=s-m.width-m.left,f=u<=480?10:30):(f=m.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,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(i=n(e,t,a,o,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=e.getBoundingClientRect(),i=(t-o.width)/2,r=(n-o.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=i+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=o(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var o=e.lastIndexOf(tb,Math.min(n,t));return o>=O?e.substring(O,o+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,o=[],i=[];function a(e){var t=i[e](),n=o[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in o[e]},webModule.__getPropMap=function(){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},o=e[webModule.__softPermutationId],i=O;i0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],o=0;o0&&(s=[],null==n||null===(o=n.data)||void 0===o||o.map((function(e){var t;null==e||null===(t=e.ec_point_ids)||void 0===t||t.map((function(e){s.push(e)}))})),h(a()(a()({},null==n||null===(r=n.data)||void 0===r?void 0:r[0]),{},{ec_point_ids:s})),x(null==n?void 0:n.data));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(){return(N=u()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.ZP)("/api/schools/".concat(null==o||null===(t=o.userInfo)||void 0===t||null===(t=t.course)||void 0===t?void 0:t.course_school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:n=e.sent,T(null==n?void 0:n.data),(d||l)&&C();case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,f.useEffect)((function(){var e;null!=o&&null!==(e=o.userInfo)&&void 0!==e&&null!==(e=e.course)&&void 0!==e&&e.course_school_id&&function(){N.apply(this,arguments)}()}),[null==o||null===(t=o.userInfo)||void 0===t||null===(t=t.course)||void 0===t?void 0:t.course_school_id]),(0,_.jsxs)("div",{style:{display:null!==(n=o.userInfo.course)&&void 0!==n&&n.is_openengineering?"":"none"},children:[(0,_.jsx)("p",{style:{fontSize:"16px",fontWeight:400},children:"工程认证考核知识点"}),null==y?void 0:y.map((function(e,t){return(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,_.jsx)(k,{rz:B,item:e,type:t,setitem:function(e){y.splice(t,1,e),x(s()(y));var n=[];null==y||y.map((function(e){var t;null==e||null===(t=e.ec_point_ids)||void 0===t||t.map((function(e){n.push(e)}))})),h(a()(a()({},e),{},{ec_point_ids:n}))}}),0!=t&&(0,_.jsx)(g.Z,{onClick:function(){y.splice(t,1),x(s()(y))},style:{marginLeft:10,fontSize:"20px"}}),(0,_.jsx)(v.Z,{onClick:function(){y.push({}),x(s()(y))},style:{marginLeft:10,fontSize:"20px"}})]},t)}))]})})))},36709:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(79800),s=n.n(l),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",f=n(92310),h=n.n(f),m=n(71418),g=n(2859),v=n(18030),w=n(21082),b=n(37712),y=function(e){var t=e.data,n=e.className,o=e.fullWidth,r=e.style,l=void 0===r?{}:r,f=e.onClose,y=e.onOk,x=e.showFullTools,_=e.noAssociationId,k=(0,c.useRef)(null),S=(0,c.useRef)(null),j=(0,c.useRef)(null),B=(0,c.useRef)(null),T=(0,c.useState)(!1),C=s()(T,2),P=C[0],N=C[1],L=(0,c.useState)("正在加载中"),E=s()(L,2),M=E[0],A=E[1];(0,c.useEffect)((function(){j.current||(j.current=document.createElement("style"),document.head.appendChild(j.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),j.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&G()):(document.body.removeAttribute("data-custom"),j.current&&(document.head.removeChild(j.current),j.current=null))}),[null==t?void 0:t.visible]);var G=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),A("正在加载中"),e.next=4,(0,w.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,k.current.src="",k.current.src=n,k.current.onload=function(){Z()},N(!1),A("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),O=function(){var e=a()(i()().mark((function e(n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),A("正在保存中"),e.next=4,(0,v.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(o=e.sent)||!o.id||_){e.next=12;break}return e.next=8,(0,v.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==o?void 0:o.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=o&&o.id&&y(o);case 13:N(!1),A("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Z=function(){S.current=new g.hP(k.current),S.current.targetRoot=B.current,S.current.addEventListener("render",O),S.current.addEventListener("beforeclose",f),x&&(S.current.availableMarkerTypes=S.current.ALL_MARKER_TYPES,S.current.uiStyleSettings.redoButtonVisible=!0,S.current.uiStyleSettings.notesButtonVisible=!0,S.current.uiStyleSettings.zoomButtonVisible=!0,S.current.uiStyleSettings.zoomOutButtonVisible=!0,S.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=S.current.uiStyleSettings,S.current.show(),null!=t&&t.snapshotData&&S.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,b.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,b.jsx)(m.Z,{spinning:P,tip:M,style:{position:"absolute"},children:(0,b.jsx)("div",{ref:B,className:h()(u,n,o?p:""),style:l,children:(0,b.jsx)("img",{className:d,ref:k})})})})}},98382:function(e,t,n){"use strict";n.d(t,{z:function(){return B},Z:function(){return T}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(82242),s=n.n(l),c=n(37205),u=n.n(c),d=n(79800),p=n.n(d),f=n(59301),h=n(59028),m=n(8591),g=n(43418),v=n(3113),w=n(92723),b=n(90341),y=n(37712),x="  ";function _(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var k=n(60186),S=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var j=h.Z.Dragger;function B(e){var t=[];return e&&e.length>0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var T=function(e){var t=e.value,n=e.onChange,o=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,B=e.title,T=void 0===B?"上传附件":B,C=e.showRemoveModal,P=void 0!==C&&C,N=e.accept,L=void 0===N?"":N,E=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,O=e.aloneClear,Z=void 0!==O&&O,I=e.realTimeRemove,R=void 0===I||I,D=e.uploadText,F=(0,f.useState)(!1),z=p()(F,2),H=z[0],W=z[1],V=(0,f.useState)(t||[]),q=p()(V,2),U=q[0],K=q[1],Y=(0,f.useState)(1),J=p()(Y,2),X=J[0],$=J[1];(0,f.useEffect)((function(){t&&(1===X&&K(u()(t)),$(2),G===(null==t?void 0:t.length)&&W(!0))}),[t]);var Q,ee=function(){setTimeout((function(){U.pop(),K(u()(U))}),500)},te={multiple:!0,disabled:H,accept:L,withCredentials:!0,fileList:U,beforeUpload:function(e,t){var n=e.size/1024/1024;return U.concat(t).length>G?(U.pop(),K(u()(U)),m.ZP.error("最多只能上传".concat(G,"个文件")),Z?Promise.reject():(ee(),!1)):n=G?W(!0):W(!1),K(u()(U)),U=U.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,U),n(U)):m.ZP.error(null===(o=e.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message)},onRemove:(Q=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!P){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var o;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(o=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return Q.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(j,s()(s()({},te),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!M&&(0,y.jsxs)(h.Z,s()(s()({},te),{},{children:[(0,y.jsxs)(v.ZP,{disabled:H,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),T]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:D||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),f=(n(80443),n(90630),n(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,o=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,l.useEffect)((function(){h&&h.setOption("mode",o)}),[h,o]),(0,l.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,l.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,i()({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,f.jsx)("div",{className:"my-codemirror-container",children:(0,f.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,o=(0,l.useState)("python"),r=a()(o,2),d=r[0],p=r[1];return(0,f.jsxs)(c.Z,i()(i()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,f.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,f.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,f.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,f.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,f.jsx)(v,{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:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var o=n(91232),i=n.n(o),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),f=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,o=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})})},g=n(82242),v=n.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,o=e.icon,i=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(i)},children:[(0,h.jsx)("i",{className:"".concat(o)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,o=e.showNullProgramButton,i=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,v()(v()({},e),{},{onActionCallback:i})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),j={labelCol:{span:4},wrapperCol:{span:20}},B=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,v()(v()({},j),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},T=n(73145),C=n(28486),P=n(95237),N=n(36709),L=function(e){var t=e.callback,n=e.onCancel,o=document.createElement("canvas"),i=o.getContext("2d");o.width=1e3,o.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,o.width,o.height);var r=o.toDataURL("image/png");return(0,h.jsx)(P.Z,{style:{height:"100vh"},children:(0,h.jsx)(N.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),M=n.n(E),A=n(41498),G=n.n(A),O=n(37205),Z=n.n(O),I=n(12378);function R(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(R,go.CommandHandler),R.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},R.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},R.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},R.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},R.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},R.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},R.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},R.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o0){for(var o=a.elt(l-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(r)}else if("Down"===n.key){var i;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))o.y?1:n.xo.x?1:0})),t},R.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},R.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(R.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(R.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var D=R,F=(n(41034),n(85160)),z=n(43418),H=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=I;var U=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],f=d[1],m=function(){var e=G()(M()().mark((function e(){var t,i;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:i=e.sent,n({src:i.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){f(p+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(P.Z,{children:[(0,h.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(H.Z,{onClick:function(){l.current=!l.current,f(p+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(F.FI,{initDiagram:function(){var e=I.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",f="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function b(t,n){var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(o){var i=n.part.adornedPart,r=(new I.Point).setRectSpot(i.actualBounds,t);r.subtract(i.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(i.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=o.copyNodeData(i.data);o.setGroupKeyForNodeData(a,o.getGroupKeyForNodeData(i.data)),o.addNodeData(a);var l={from:i.key,to:o.getKeyForNodeData(a)};o.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(I.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?25:18,height:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:o,contextClick:o})}function y(t){return e(I.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,o){n.handled=!0,n.diagram.model.commit((function(n){n.set(o.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(I.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(u,"fill"),_(p,"fill"),_(f,"fill"),_(h,"fill"))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(g,"fill"),_(v,"fill"),_(m,"fill"),_(w,"fill")))]}function S(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function j(t,n){return n||(n="thickness"),e(I.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function B(t,n){return n||(n="dash"),e(I.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function T(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",j(1),j(2),j(3),j(4))),e("ContextMenuButton",e(I.Panel,"Horizontal",B(null),B([2,4]),B([4,4])))]}function C(t,n){return n||(n="figure"),e(I.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function P(t){return e(I.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(I.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function L(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var o=n.part.adornedPart;e.set(o.data,t?"toSpot":"fromSpot",I.Spot.stringify(I.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var o=0,i=I.Spot.RightSide;t.equals(I.Spot.Top)?(o=270,i=I.Spot.TopSide):t.equals(I.Spot.Left)?(o=180,i=I.Spot.LeftSide):t.equals(I.Spot.Bottom)&&(o=90,i=I.Spot.BottomSide),n||(o-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",I.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:o,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return o.current=new I.Diagram(i.current,{padding:20,grid:e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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(D),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),o.current.nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center,locationObjectName:"SHAPE",desiredSize:new I.Size(120,60),minSize:new I.Size(40,40),resizable:!0,resizeCellSize:new I.Size(10,10),rotatable:!0},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),new I.Binding("desiredSize","size",I.Size.parse).makeTwoWay(I.Size.stringify),e(I.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("figure"),new I.Binding("fill"),new I.Binding("stroke","borderColor"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(I.TextBlock,{margin:1,textAlign:"center",overflow:I.TextBlock.OverflowEllipsis,editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(I.Panel,"Vertical",{maxSize:new I.Size(200,NaN)},e(I.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new I.Binding("text")),e(I.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new I.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Placeholder,{padding:10}),b(I.Spot.Top,"TriangleUp"),b(I.Spot.Left,"TriangleLeft"),b(I.Spot.Right,"TriangleRight"),b(I.Spot.Bottom,"TriangleDown"),y({alignment:new I.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(I.Panel,"Horizontal",C("Rectangle"),C("RoundedRectangle"),C("Ellipse"),C("Diamond"))),e("ContextMenuButton",e(I.Panel,"Horizontal",C("Parallelogram2"),C("ManualOperation"),C("Procedure"),C("Cylinder1"))),e("ContextMenuButton",e(I.Panel,"Horizontal",C("Terminator"),C("CreateRequest"),C("Document"),C("TriangleDown"))),k(),S(),T()),o.current.groupTemplate=e(I.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:I.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.Panel,"Auto",{name:"BODY"},e(I.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("fill"),new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Placeholder,{background:"transparent",margin:20})),e(I.TextBlock,{alignment:I.Spot.Top,alignmentFocus:I.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new I.Binding("text"),new I.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Panel,"Auto",e(I.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(I.Placeholder,{margin:1.5})),y({alignment:I.Spot.TopRight,alignmentFocus:I.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),T()),o.current.linkTemplate=e(I.Link,{layerName:"Foreground",routing:I.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new I.Binding("fromSpot","fromSpot",I.Spot.parse),new I.Binding("toSpot","toSpot",I.Spot.parse),new I.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("points").makeTwoWay(),e(I.Shape,{strokeWidth:2},new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,0),segmentOrientation:I.Link.OrientAlong,alignmentFocus:I.Spot.Right,figure:"circle",width:10,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 1===e}))),e(I.Shape,{segmentIndex:-1,segmentOffset:new I.Point(-10,6),segmentOrientation:I.Link.OrientPlus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return e>=1})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,-6),segmentOrientation:I.Link.OrientMinus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 2===e})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.TextBlock,{alignmentFocus:new I.Spot(0,1,-4,0),editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(I.Adornment,e(I.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:P(2)},new I.Binding("pathPattern","thickness",P)),y({alignmentFocus:new I.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",S(),T(),e("ContextMenuButton",e(I.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(I.Panel,"Horizontal",e(I.Panel,"Spot",L(!1),E(I.Spot.Top,!1),E(I.Spot.Left,!1),E(I.Spot.Right,!1),E(I.Spot.Bottom,!1)),e(I.Panel,"Spot",{margin:new I.Margin(0,0,0,2)},L(!0),E(I.Spot.Top,!0),E(I.Spot.Left,!0),E(I.Spot.Right,!0),E(I.Spot.Bottom,!0))))),new I.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(I.Link,{locationSpot:I.Spot.Center,selectionAdornmentTemplate:e(I.Adornment,"Link",{locationSpot:I.Spot.Center},e(I.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(I.Shape,{toArrow:"Standard",stroke:null}))},{routing:I.Link.AvoidsNodes,curve:I.Link.JumpOver,corner:5,toShortLength:4},new I.Binding("points"),e(I.Shape,{isPanelMain:!0,strokeWidth:2}),e(I.Shape,{toArrow:"Standard",stroke:null})),model:new I.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(Z()(I.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center},new I.Binding("location","location",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.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 I.Binding("stroke").makeTwoWay(),new I.Binding("fill").makeTwoWay(),new I.Binding("figure")),e(I.TextBlock,{margin:new I.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new I.Size(16,16),maxSize:new I.Size(10,NaN),textAlign:"center",editable:!0},new I.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),o.current.grid.visible=!0,o.current.grid.gridCellStroke="darkgray",o.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=o.current,o.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:i})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Y.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Y.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(_.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],f=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:o||1e3,height:i||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){m.current.appName=p?"3D":"graphing",s.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){f(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(P.Z,{align:"middle",children:[(0,h.jsx)(H.Z,{flex:1,children:(0,h.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return f(e)}})}),(0,h.jsx)(H.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),oe=n(36761),ie=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",fe={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},he=n(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},we+"-B","bold"),we+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,o=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,j=e.mode,P=void 0===j?"markdown":j,N=e.id,E=void 0===N?"markdown-editor-id":N,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,O=void 0!==G&&G,Z=e.showNullButton,I=void 0!==Z&&Z,R=e.showNullProgramButton,D=void 0!==R&&R,F=e.hidetoolBar,H=void 0!==F&&F,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,pe=void 0!==te&&te,we=e.disabledFill,xe=void 0!==we&&we,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,je=void 0===Se?"":Se,Be=e.extraUse,Te=(0,c.useState)(null),Ce=a()(Te,2),Pe=Ce[0],Ne=Ce[1],Le=(0,c.useState)(n),Ee=a()(Le,2),Me=Ee[0],Ae=Ee[1],Ge=(0,c.useState)(k),Oe=a()(Ge,2),Ze=Oe[0],Ie=Oe[1],Re=(0,c.useState)(V),De=a()(Re,2),Fe=De[0],ze=De[1],He=(0,c.useState)(""),We=a()(He,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),ot=(nt[0],nt[1]),it=(0,c.useState)(0),rt=a()(it,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),ft=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(je),null==Pe||Pe.setValue(je),window.scrollTo(0,e)}),[je]),(0,c.useEffect)((function(){null==Y||Y(Fe)}),[Fe]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var o=n.clipboardData;if(o){var i=o.types.toString(),r=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==P)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,C.I)(s,(function(e){var n,o,i;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(ie.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:P,lineNumbers:!w,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),o=n.getCursor(),i=n.getLine(o.line),r=i.charAt(o.ch-1),a=i.lastIndexOf("@▁@",o.ch),l=i.lastIndexOf("@▁▁@",o.ch),s=a>l?a:l,c=a>l?3:4;if(-1===me.indexOf(r))return null;if(console.log("change1:",t,e,i,o,s,a,l,r),s>=0&&o.ch-s<5){var u=s+c;return n.replaceRange("",{line:o.line,ch:s},{line:o.line,ch:u}),{line:o.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){ft.current}),[Qe,ft,Fe]);(0,c.useEffect)((function(){if(Pe){var e=function(){var e=new p.Z((function(e){var t,n=i()(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;(o.target.offsetHeight>0||o.target.offsetWidth>0)&&(gt(),Pe.setSize("100%","100%"),Pe.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Pe,gt]),(0,c.useEffect)((function(){if(Pe){for(var e=[],t=function(){var t=a()(o[n],2),i=t[0],r=t[1],l=s()({},i,(function(){vt(r)}));e.push(l),Pe.addKeyMap(l)},n=0,o=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(E,Me),ot(!0))}}),1e4),(0,c.useEffect)((function(){Ie(k)}),[Pe,k]),(0,c.useEffect)((function(){Pe&&_&&Pe.focus()}),[Pe,_]),(0,c.useEffect)((function(){if(Ze&&Pe){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Pe.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Pe,Ze]),(0,c.useEffect)((function(){if(Pe&&K){var e=function(e,t){K(e,t)};return Pe.on("beforeChange",e),function(){Pe.off("beforeChange",e)}}}),[Pe,K]),(0,c.useEffect)((function(){if(Pe&&q){var e=function(){q(Pe.getValue())};return Pe.on("blur",e),function(){Pe.off("blur",e)}}}),[Pe,q]),(0,c.useEffect)((function(){if(Pe){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(D?o(n,_t(n)):o(n))};return Pe.on("change",e),function(){Pe.off("change",e)}}}),[Pe,o]),(0,c.useEffect)((function(){if(Pe)if(null==n)Pe.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Pe.getValue()&&(Pe.setValue(n),Ae(n),Pe.setCursor(pe?1:Pe.lineCount(),0),window.scrollTo(0,e))}}),[Pe,n]);var vt=(0,c.useCallback)((function(e){var t=Pe.getCursor(),n=Pe.getSelection(),o=n.split("\n");switch(e){case"bold":return Pe.replaceSelection("**"+n+"**"),""===n&&Pe.setCursor(t.line,t.ch+2),Pe.focus();case"italic":return Pe.replaceSelection("*"+n+"*"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"code":return Pe.replaceSelection("`"+n+"`"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"inline-latex":return qe("inline-latex"),Pe.focus();case"latex":return Pe.replaceSelection("```latex\n"+n+"\n```"),Pe.setCursor(t.line+1,n.length+1),Pe.focus();case"line-break":return Pe.replaceSelection("
\n"),Pe.focus();case"list-ul":return""===n?Pe.replaceSelection("- "+n):Pe.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Pe.focus();case"list-ol":return""===n?Pe.replaceSelection("1. "+n):Pe.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Pe.focus();case"add-null-ch":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("▁"),Pe.focus();case"add-signal":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("@▁@"),Pe.focus();case"add-multiple":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection(me),Pe.focus();case"inster-template-1":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Pe.focus();case"eraser":return Pe.setValue(""),Pe.focus();case"trigger-watch":return Ie(!Ze),Pe.focus();case"trigger-full-screen":return ze(!Fe),Pe.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Pe,Ze,Fe]),wt=(0,c.useCallback)((function(e,t){var n,o,i,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Pe.replaceSelection("[".concat(l,"](").concat(s,")")),Pe.focus();case ue:var c=e.language,u=e.content;return Pe.replaceSelection(["```"+c,u,"```"].join("\n")),Pe.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),f=0;f-1||null==v||!v.type?g?Pe.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Pe.replaceSelection("![,](".concat(m,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Pe.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Pe.replaceSelection('').concat(v.name,"")):ge.includes(w)?Pe.replaceSelection('').concat(v.name,"")):Pe.replaceSelection("[".concat(v.name,"](").concat(ie.Z.API_SERVER).concat(m,")")),Pe.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},o=ht.current,i=!1,r=0;return o.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){o.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Pe,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:ve(l),height:ve(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(o)}return 0}),[Ye]),function(e){var t=[];if(D){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,o){var i=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>i-20&&o",children:[(0,C.jsx)(h.Z.Item,{children:(0,C.jsx)(p.Link,{to:"/classrooms/".concat(l.coursesId,"/common_homework"),children:z.course_name})}),(0,C.jsx)(h.Z.Item,{children:(0,C.jsx)(p.Link,{to:"/classrooms/".concat(l.coursesId,"/common_homework"),children:z.category.category_name})}),(0,C.jsx)(h.Z.Item,{children:"编辑"})]})})}),(0,C.jsx)("aside",{className:"font24 bold mt20 mb20",children:"编辑图文作业"}),(0,C.jsxs)(f.Z,{form:P,className:y,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){M(a()({},P.getFieldsValue()))},onFinish:q,children:[(0,C.jsx)("div",{className:x,children:(0,C.jsx)(f.Z.Item,{name:"name",label:"标题:",rules:[{required:!0,message:"请输入标题"}],children:(0,C.jsx)(m.Z,{maxLength:60,suffix:"".concat((null===(t=E.name)||void 0===t?void 0:t.length)||0,"/60"),placeholder:"例如:从Python程序设计-入门精通"})})}),(0,C.jsxs)("div",{className:_,children:[(0,C.jsx)(f.Z.Item,{name:"description",label:"简介:",rules:[{required:!0,message:"请输入作业的简介"},{max:5e3,message:"作业简介最大限制5000个字符"}],children:(0,C.jsx)(v.Z,{watch:!0,defaultValue:z.description})}),(0,C.jsx)("div",{children:(0,C.jsx)(f.Z.Item,{name:"attachment_ids",children:O&&(0,C.jsx)(j.Z,{})})})]}),(0,C.jsxs)("div",{className:_,children:[(0,C.jsx)(f.Z.Item,{name:"reference_answer",label:"参考答案:",children:(0,C.jsx)(v.Z,{defaultValue:z.reference_answer,watch:!0})}),(0,C.jsx)("div",{children:(0,C.jsx)(f.Z.Item,{name:"reference_attachment_ids",children:O&&(0,C.jsx)(j.Z,{})})})]})]}),(0,C.jsx)("div",{className:_,children:(0,C.jsx)(B.Z,{setitem:function(e){return F(a()({},e))},homework_common_id:l.categoryId})}),(0,C.jsx)("div",{className:k,children:(0,C.jsx)("div",{className:"pt40 mb30",children:(0,C.jsxs)(f.Z.Item,{children:[(0,C.jsx)(g.ZP,{size:"middle",type:"primary",className:"".concat(S," mr20"),htmlType:"submit",onClick:function(){P.submit()},loading:o["newCourse/editCourse"]||o["newCourse/submitCourse"],children:"提交"}),(0,C.jsx)(g.ZP,{size:"middle",type:"primary",ghost:!0,className:S,onClick:function(){return p.history.push("/classrooms/".concat(l.coursesId,"/common_homework"))},children:"取消"})]})})})]})}))},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return f},jP:function(){return p},rO:function(){return c}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,l.v_)("libraries.json",e)}function f(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__CommonHomework__Edit__index.a6fc89c4.async.js b/p__Classrooms__Lists__CommonHomework__Edit__index.a6fc89c4.async.js new file mode 100644 index 0000000000..1c9781f6d0 --- /dev/null +++ b/p__Classrooms__Lists__CommonHomework__Edit__index.a6fc89c4.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[19715,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},o=null,i=!1,r=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,Z(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,O(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var o,i="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var T=function(e){return e&&"false"!==e},C=function(t,n,o){x(m)<=4.2&&(o=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(m)<=4.4)T(n.showToolBar)&&(n.height-=7),T(n.showAlgebraInput)&&(n.height-=37),n.width<605&&T(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(T(n.showToolBar)||T(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=T(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),f(e)},b||w.appendChild(_)):r.appendChild(_),w.appendChild(r),b||t.appendChild(w),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),I("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(m)<5&&(e.className+=" geogebraweb")):k(e,t)}if(i){scriptLoadStarted=!0;for(var j=0;j0?(i.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):C(i,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=o,C(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",i.appendChild(a)}return i.appendChild(c),i},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,t){if(m=e,t)Z(m,!0);else{var r,a,l=!i;if(l){var s=x(m);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?r+m:"https://www.geogebra.org/apps/5.2.814.0/",G)if(m.slice(-1*G[u].length)===G[u]||m.slice(-1*(G[u].length+1))===G[u]+"/")return void Z(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||o.is3D||o.AV||o.SV||o.CV||o.EV2||o.CP||o.PC||o.DA||o.FI||o.PV||T(n.showToolBar)||T(n.showMenuBar)||T(n.showAlgebraInput)||T(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",Z(a,!1)}},Z=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),f=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var o=parseFloat(m);NaN!==o&&o<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+o+" is deprecated. Using version latest instead."),O("5.0",t))}},I=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&Z(c,f),l=!0}return void 0!==n.material_id?S(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,o,i){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==o&&o,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,o,i,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,p=0,f=0,h=0;if(a)s=a.offsetWidth,c=Math.max(o?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===i||!i)&&("rtl"===document.dir?(p=s-m.width-m.left,f=u<=480?10:30):(f=m.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,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(i=n(e,t,a,o,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=e.getBoundingClientRect(),i=(t-o.width)/2,r=(n-o.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=i+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=o(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var o=e.lastIndexOf(tb,Math.min(n,t));return o>=O?e.substring(O,o+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,o=[],i=[];function a(e){var t=i[e](),n=o[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in o[e]},webModule.__getPropMap=function(){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},o=e[webModule.__softPermutationId],i=O;i0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],o=0;o0&&(s=[],null==n||null===(o=n.data)||void 0===o||o.map((function(e){var t;null==e||null===(t=e.ec_point_ids)||void 0===t||t.map((function(e){s.push(e)}))})),h(a()(a()({},null==n||null===(r=n.data)||void 0===r?void 0:r[0]),{},{ec_point_ids:s})),x(null==n?void 0:n.data));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(){return(N=u()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.ZP)("/api/schools/".concat(null==o||null===(t=o.userInfo)||void 0===t||null===(t=t.course)||void 0===t?void 0:t.course_school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:n=e.sent,T(null==n?void 0:n.data),(d||l)&&C();case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,f.useEffect)((function(){var e;null!=o&&null!==(e=o.userInfo)&&void 0!==e&&null!==(e=e.course)&&void 0!==e&&e.course_school_id&&function(){N.apply(this,arguments)}()}),[null==o||null===(t=o.userInfo)||void 0===t||null===(t=t.course)||void 0===t?void 0:t.course_school_id]),(0,_.jsxs)("div",{style:{display:null!==(n=o.userInfo.course)&&void 0!==n&&n.is_openengineering?"":"none"},children:[(0,_.jsx)("p",{style:{fontSize:"16px",fontWeight:400},children:"工程认证考核知识点"}),null==y?void 0:y.map((function(e,t){return(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,_.jsx)(k,{rz:B,item:e,type:t,setitem:function(e){y.splice(t,1,e),x(s()(y));var n=[];null==y||y.map((function(e){var t;null==e||null===(t=e.ec_point_ids)||void 0===t||t.map((function(e){n.push(e)}))})),h(a()(a()({},e),{},{ec_point_ids:n}))}}),0!=t&&(0,_.jsx)(g.Z,{onClick:function(){y.splice(t,1),x(s()(y))},style:{marginLeft:10,fontSize:"20px"}}),(0,_.jsx)(v.Z,{onClick:function(){y.push({}),x(s()(y))},style:{marginLeft:10,fontSize:"20px"}})]},t)}))]})})))},36709:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(79800),s=n.n(l),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",f=n(92310),h=n.n(f),m=n(71418),g=n(2859),v=n(18030),w=n(21082),b=n(37712),y=function(e){var t=e.data,n=e.className,o=e.fullWidth,r=e.style,l=void 0===r?{}:r,f=e.onClose,y=e.onOk,x=e.showFullTools,_=e.noAssociationId,k=(0,c.useRef)(null),S=(0,c.useRef)(null),j=(0,c.useRef)(null),B=(0,c.useRef)(null),T=(0,c.useState)(!1),C=s()(T,2),P=C[0],N=C[1],L=(0,c.useState)("正在加载中"),E=s()(L,2),M=E[0],A=E[1];(0,c.useEffect)((function(){j.current||(j.current=document.createElement("style"),document.head.appendChild(j.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),j.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&G()):(document.body.removeAttribute("data-custom"),j.current&&(document.head.removeChild(j.current),j.current=null))}),[null==t?void 0:t.visible]);var G=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),A("正在加载中"),e.next=4,(0,w.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,k.current.src="",k.current.src=n,k.current.onload=function(){Z()},N(!1),A("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),O=function(){var e=a()(i()().mark((function e(n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),A("正在保存中"),e.next=4,(0,v.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(o=e.sent)||!o.id||_){e.next=12;break}return e.next=8,(0,v.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==o?void 0:o.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=o&&o.id&&y(o);case 13:N(!1),A("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Z=function(){S.current=new g.hP(k.current),S.current.targetRoot=B.current,S.current.addEventListener("render",O),S.current.addEventListener("beforeclose",f),x&&(S.current.availableMarkerTypes=S.current.ALL_MARKER_TYPES,S.current.uiStyleSettings.redoButtonVisible=!0,S.current.uiStyleSettings.notesButtonVisible=!0,S.current.uiStyleSettings.zoomButtonVisible=!0,S.current.uiStyleSettings.zoomOutButtonVisible=!0,S.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=S.current.uiStyleSettings,S.current.show(),null!=t&&t.snapshotData&&S.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,b.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,b.jsx)(m.Z,{spinning:P,tip:M,style:{position:"absolute"},children:(0,b.jsx)("div",{ref:B,className:h()(u,n,o?p:""),style:l,children:(0,b.jsx)("img",{className:d,ref:k})})})})}},98382:function(e,t,n){"use strict";n.d(t,{z:function(){return B},Z:function(){return T}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(82242),s=n.n(l),c=n(37205),u=n.n(c),d=n(79800),p=n.n(d),f=n(59301),h=n(59028),m=n(8591),g=n(43418),v=n(3113),w=n(92723),b=n(90341),y=n(37712),x="  ";function _(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var k=n(60186),S=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var j=h.Z.Dragger;function B(e){var t=[];return e&&e.length>0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var T=function(e){var t=e.value,n=e.onChange,o=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,B=e.title,T=void 0===B?"上传附件":B,C=e.showRemoveModal,P=void 0!==C&&C,N=e.accept,L=void 0===N?"":N,E=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,O=e.aloneClear,Z=void 0!==O&&O,I=e.realTimeRemove,R=void 0===I||I,F=e.uploadText,D=e.setFileProgress,z=e.showFileProgress,H=(0,f.useState)(!1),W=p()(H,2),V=W[0],q=W[1],U=(0,f.useState)(t||[]),K=p()(U,2),Y=K[0],J=K[1],X=(0,f.useState)(1),$=p()(X,2),Q=$[0],ee=$[1];(0,f.useEffect)((function(){t&&(1===Q&&J(u()(t)),ee(2),G===(null==t?void 0:t.length)&&q(!0))}),[t]);var te=function(){setTimeout((function(){Y.pop(),J(u()(Y))}),500)};z&&D(Y.some((function(e){return"uploading"===e.status})));var ne,oe={multiple:!0,disabled:V,accept:L,withCredentials:!0,fileList:Y,beforeUpload:function(e,t){var n=e.size/1024/1024;return Y.concat(t).length>G?(Y.pop(),J(u()(Y)),m.ZP.error("最多只能上传".concat(G,"个文件")),Z?Promise.reject():(te(),!1)):n=G?q(!0):q(!1),J(u()(Y)),Y=Y.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,Y),n(Y)):m.ZP.error(null===(o=e.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message)},onRemove:(ne=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!P){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var o;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(o=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return ne.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(j,s()(s()({},oe),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!M&&(0,y.jsxs)(h.Z,s()(s()({},oe),{},{children:[(0,y.jsxs)(v.ZP,{disabled:V,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),T]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:F||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),f=(n(80443),n(90630),n(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,o=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,l.useEffect)((function(){h&&h.setOption("mode",o)}),[h,o]),(0,l.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,l.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,i()({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,f.jsx)("div",{className:"my-codemirror-container",children:(0,f.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,o=(0,l.useState)("python"),r=a()(o,2),d=r[0],p=r[1];return(0,f.jsxs)(c.Z,i()(i()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,f.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,f.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,f.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,f.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,f.jsx)(v,{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:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var o=n(91232),i=n.n(o),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),f=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,o=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})})},g=n(82242),v=n.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,o=e.icon,i=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(i)},children:[(0,h.jsx)("i",{className:"".concat(o)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,o=e.showNullProgramButton,i=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,v()(v()({},e),{},{onActionCallback:i})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),j={labelCol:{span:4},wrapperCol:{span:20}},B=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,v()(v()({},j),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},T=n(73145),C=n(28486),P=n(95237),N=n(36709),L=function(e){var t=e.callback,n=e.onCancel,o=document.createElement("canvas"),i=o.getContext("2d");o.width=1e3,o.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,o.width,o.height);var r=o.toDataURL("image/png");return(0,h.jsx)(P.Z,{style:{height:"100vh"},children:(0,h.jsx)(N.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),M=n.n(E),A=n(41498),G=n.n(A),O=n(37205),Z=n.n(O),I=n(12378);function R(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(R,go.CommandHandler),R.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},R.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},R.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},R.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},R.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},R.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},R.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},R.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o0){for(var o=a.elt(l-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(r)}else if("Down"===n.key){var i;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))o.y?1:n.xo.x?1:0})),t},R.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},R.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(R.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(R.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var F=R,D=(n(41034),n(85160)),z=n(43418),H=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=I;var U=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],f=d[1],m=function(){var e=G()(M()().mark((function e(){var t,i;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:i=e.sent,n({src:i.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){f(p+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(P.Z,{children:[(0,h.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(H.Z,{onClick:function(){l.current=!l.current,f(p+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(D.FI,{initDiagram:function(){var e=I.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",f="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function b(t,n){var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(o){var i=n.part.adornedPart,r=(new I.Point).setRectSpot(i.actualBounds,t);r.subtract(i.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(i.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=o.copyNodeData(i.data);o.setGroupKeyForNodeData(a,o.getGroupKeyForNodeData(i.data)),o.addNodeData(a);var l={from:i.key,to:o.getKeyForNodeData(a)};o.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(I.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?25:18,height:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:o,contextClick:o})}function y(t){return e(I.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,o){n.handled=!0,n.diagram.model.commit((function(n){n.set(o.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(I.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(u,"fill"),_(p,"fill"),_(f,"fill"),_(h,"fill"))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(g,"fill"),_(v,"fill"),_(m,"fill"),_(w,"fill")))]}function S(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function j(t,n){return n||(n="thickness"),e(I.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function B(t,n){return n||(n="dash"),e(I.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function T(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",j(1),j(2),j(3),j(4))),e("ContextMenuButton",e(I.Panel,"Horizontal",B(null),B([2,4]),B([4,4])))]}function C(t,n){return n||(n="figure"),e(I.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function P(t){return e(I.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(I.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function L(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var o=n.part.adornedPart;e.set(o.data,t?"toSpot":"fromSpot",I.Spot.stringify(I.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var o=0,i=I.Spot.RightSide;t.equals(I.Spot.Top)?(o=270,i=I.Spot.TopSide):t.equals(I.Spot.Left)?(o=180,i=I.Spot.LeftSide):t.equals(I.Spot.Bottom)&&(o=90,i=I.Spot.BottomSide),n||(o-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",I.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:o,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return o.current=new I.Diagram(i.current,{padding:20,grid:e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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(F),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),o.current.nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center,locationObjectName:"SHAPE",desiredSize:new I.Size(120,60),minSize:new I.Size(40,40),resizable:!0,resizeCellSize:new I.Size(10,10),rotatable:!0},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),new I.Binding("desiredSize","size",I.Size.parse).makeTwoWay(I.Size.stringify),e(I.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("figure"),new I.Binding("fill"),new I.Binding("stroke","borderColor"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(I.TextBlock,{margin:1,textAlign:"center",overflow:I.TextBlock.OverflowEllipsis,editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(I.Panel,"Vertical",{maxSize:new I.Size(200,NaN)},e(I.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new I.Binding("text")),e(I.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new I.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Placeholder,{padding:10}),b(I.Spot.Top,"TriangleUp"),b(I.Spot.Left,"TriangleLeft"),b(I.Spot.Right,"TriangleRight"),b(I.Spot.Bottom,"TriangleDown"),y({alignment:new I.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(I.Panel,"Horizontal",C("Rectangle"),C("RoundedRectangle"),C("Ellipse"),C("Diamond"))),e("ContextMenuButton",e(I.Panel,"Horizontal",C("Parallelogram2"),C("ManualOperation"),C("Procedure"),C("Cylinder1"))),e("ContextMenuButton",e(I.Panel,"Horizontal",C("Terminator"),C("CreateRequest"),C("Document"),C("TriangleDown"))),k(),S(),T()),o.current.groupTemplate=e(I.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:I.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.Panel,"Auto",{name:"BODY"},e(I.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("fill"),new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Placeholder,{background:"transparent",margin:20})),e(I.TextBlock,{alignment:I.Spot.Top,alignmentFocus:I.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new I.Binding("text"),new I.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Panel,"Auto",e(I.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(I.Placeholder,{margin:1.5})),y({alignment:I.Spot.TopRight,alignmentFocus:I.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),T()),o.current.linkTemplate=e(I.Link,{layerName:"Foreground",routing:I.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new I.Binding("fromSpot","fromSpot",I.Spot.parse),new I.Binding("toSpot","toSpot",I.Spot.parse),new I.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("points").makeTwoWay(),e(I.Shape,{strokeWidth:2},new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,0),segmentOrientation:I.Link.OrientAlong,alignmentFocus:I.Spot.Right,figure:"circle",width:10,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 1===e}))),e(I.Shape,{segmentIndex:-1,segmentOffset:new I.Point(-10,6),segmentOrientation:I.Link.OrientPlus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return e>=1})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,-6),segmentOrientation:I.Link.OrientMinus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 2===e})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.TextBlock,{alignmentFocus:new I.Spot(0,1,-4,0),editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(I.Adornment,e(I.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:P(2)},new I.Binding("pathPattern","thickness",P)),y({alignmentFocus:new I.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",S(),T(),e("ContextMenuButton",e(I.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(I.Panel,"Horizontal",e(I.Panel,"Spot",L(!1),E(I.Spot.Top,!1),E(I.Spot.Left,!1),E(I.Spot.Right,!1),E(I.Spot.Bottom,!1)),e(I.Panel,"Spot",{margin:new I.Margin(0,0,0,2)},L(!0),E(I.Spot.Top,!0),E(I.Spot.Left,!0),E(I.Spot.Right,!0),E(I.Spot.Bottom,!0))))),new I.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(I.Link,{locationSpot:I.Spot.Center,selectionAdornmentTemplate:e(I.Adornment,"Link",{locationSpot:I.Spot.Center},e(I.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(I.Shape,{toArrow:"Standard",stroke:null}))},{routing:I.Link.AvoidsNodes,curve:I.Link.JumpOver,corner:5,toShortLength:4},new I.Binding("points"),e(I.Shape,{isPanelMain:!0,strokeWidth:2}),e(I.Shape,{toArrow:"Standard",stroke:null})),model:new I.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(Z()(I.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center},new I.Binding("location","location",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.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 I.Binding("stroke").makeTwoWay(),new I.Binding("fill").makeTwoWay(),new I.Binding("figure")),e(I.TextBlock,{margin:new I.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new I.Size(16,16),maxSize:new I.Size(10,NaN),textAlign:"center",editable:!0},new I.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),o.current.grid.visible=!0,o.current.grid.gridCellStroke="darkgray",o.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=o.current,o.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:i})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Y.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Y.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(_.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],f=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:o||1e3,height:i||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){m.current.appName=p?"3D":"graphing",s.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){f(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(P.Z,{align:"middle",children:[(0,h.jsx)(H.Z,{flex:1,children:(0,h.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return f(e)}})}),(0,h.jsx)(H.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),oe=n(36761),ie=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",fe={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},he=n(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},we+"-B","bold"),we+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,o=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,j=e.mode,P=void 0===j?"markdown":j,N=e.id,E=void 0===N?"markdown-editor-id":N,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,O=void 0!==G&&G,Z=e.showNullButton,I=void 0!==Z&&Z,R=e.showNullProgramButton,F=void 0!==R&&R,D=e.hidetoolBar,H=void 0!==D&&D,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,pe=void 0!==te&&te,we=e.disabledFill,xe=void 0!==we&&we,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,je=void 0===Se?"":Se,Be=e.extraUse,Te=(0,c.useState)(null),Ce=a()(Te,2),Pe=Ce[0],Ne=Ce[1],Le=(0,c.useState)(n),Ee=a()(Le,2),Me=Ee[0],Ae=Ee[1],Ge=(0,c.useState)(k),Oe=a()(Ge,2),Ze=Oe[0],Ie=Oe[1],Re=(0,c.useState)(V),Fe=a()(Re,2),De=Fe[0],ze=Fe[1],He=(0,c.useState)(""),We=a()(He,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),ot=(nt[0],nt[1]),it=(0,c.useState)(0),rt=a()(it,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),ft=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(je),null==Pe||Pe.setValue(je),window.scrollTo(0,e)}),[je]),(0,c.useEffect)((function(){null==Y||Y(De)}),[De]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var o=n.clipboardData;if(o){var i=o.types.toString(),r=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==P)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,C.I)(s,(function(e){var n,o,i;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(ie.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:P,lineNumbers:!w,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),o=n.getCursor(),i=n.getLine(o.line),r=i.charAt(o.ch-1),a=i.lastIndexOf("@▁@",o.ch),l=i.lastIndexOf("@▁▁@",o.ch),s=a>l?a:l,c=a>l?3:4;if(-1===me.indexOf(r))return null;if(console.log("change1:",t,e,i,o,s,a,l,r),s>=0&&o.ch-s<5){var u=s+c;return n.replaceRange("",{line:o.line,ch:s},{line:o.line,ch:u}),{line:o.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){ft.current}),[Qe,ft,De]);(0,c.useEffect)((function(){if(Pe){var e=function(){var e=new p.Z((function(e){var t,n=i()(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;(o.target.offsetHeight>0||o.target.offsetWidth>0)&&(gt(),Pe.setSize("100%","100%"),Pe.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Pe,gt]),(0,c.useEffect)((function(){if(Pe){for(var e=[],t=function(){var t=a()(o[n],2),i=t[0],r=t[1],l=s()({},i,(function(){vt(r)}));e.push(l),Pe.addKeyMap(l)},n=0,o=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(E,Me),ot(!0))}}),1e4),(0,c.useEffect)((function(){Ie(k)}),[Pe,k]),(0,c.useEffect)((function(){Pe&&_&&Pe.focus()}),[Pe,_]),(0,c.useEffect)((function(){if(Ze&&Pe){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Pe.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Pe,Ze]),(0,c.useEffect)((function(){if(Pe&&K){var e=function(e,t){K(e,t)};return Pe.on("beforeChange",e),function(){Pe.off("beforeChange",e)}}}),[Pe,K]),(0,c.useEffect)((function(){if(Pe&&q){var e=function(){q(Pe.getValue())};return Pe.on("blur",e),function(){Pe.off("blur",e)}}}),[Pe,q]),(0,c.useEffect)((function(){if(Pe){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(F?o(n,_t(n)):o(n))};return Pe.on("change",e),function(){Pe.off("change",e)}}}),[Pe,o]),(0,c.useEffect)((function(){if(Pe)if(null==n)Pe.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Pe.getValue()&&(Pe.setValue(n),Ae(n),Pe.setCursor(pe?1:Pe.lineCount(),0),window.scrollTo(0,e))}}),[Pe,n]);var vt=(0,c.useCallback)((function(e){var t=Pe.getCursor(),n=Pe.getSelection(),o=n.split("\n");switch(e){case"bold":return Pe.replaceSelection("**"+n+"**"),""===n&&Pe.setCursor(t.line,t.ch+2),Pe.focus();case"italic":return Pe.replaceSelection("*"+n+"*"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"code":return Pe.replaceSelection("`"+n+"`"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"inline-latex":return qe("inline-latex"),Pe.focus();case"latex":return Pe.replaceSelection("```latex\n"+n+"\n```"),Pe.setCursor(t.line+1,n.length+1),Pe.focus();case"line-break":return Pe.replaceSelection("
\n"),Pe.focus();case"list-ul":return""===n?Pe.replaceSelection("- "+n):Pe.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Pe.focus();case"list-ol":return""===n?Pe.replaceSelection("1. "+n):Pe.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Pe.focus();case"add-null-ch":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("▁"),Pe.focus();case"add-signal":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("@▁@"),Pe.focus();case"add-multiple":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection(me),Pe.focus();case"inster-template-1":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Pe.focus();case"eraser":return Pe.setValue(""),Pe.focus();case"trigger-watch":return Ie(!Ze),Pe.focus();case"trigger-full-screen":return ze(!De),Pe.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Pe,Ze,De]),wt=(0,c.useCallback)((function(e,t){var n,o,i,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Pe.replaceSelection("[".concat(l,"](").concat(s,")")),Pe.focus();case ue:var c=e.language,u=e.content;return Pe.replaceSelection(["```"+c,u,"```"].join("\n")),Pe.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),f=0;f-1||null==v||!v.type?g?Pe.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Pe.replaceSelection("![,](".concat(m,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Pe.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Pe.replaceSelection('').concat(v.name,"")):ge.includes(w)?Pe.replaceSelection('').concat(v.name,"")):Pe.replaceSelection("[".concat(v.name,"](").concat(ie.Z.API_SERVER).concat(m,")")),Pe.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},o=ht.current,i=!1,r=0;return o.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){o.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Pe,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:ve(l),height:ve(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(o)}return 0}),[Ye]),function(e){var t=[];if(F){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,o){var i=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>i-20&&o",children:[(0,C.jsx)(h.Z.Item,{children:(0,C.jsx)(p.Link,{to:"/classrooms/".concat(l.coursesId,"/common_homework"),children:z.course_name})}),(0,C.jsx)(h.Z.Item,{children:(0,C.jsx)(p.Link,{to:"/classrooms/".concat(l.coursesId,"/common_homework"),children:z.category.category_name})}),(0,C.jsx)(h.Z.Item,{children:"编辑"})]})})}),(0,C.jsx)("aside",{className:"font24 bold mt20 mb20",children:"编辑图文作业"}),(0,C.jsxs)(f.Z,{form:P,className:y,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){M(a()({},P.getFieldsValue()))},onFinish:q,children:[(0,C.jsx)("div",{className:x,children:(0,C.jsx)(f.Z.Item,{name:"name",label:"标题:",rules:[{required:!0,message:"请输入标题"}],children:(0,C.jsx)(m.Z,{maxLength:60,suffix:"".concat((null===(t=E.name)||void 0===t?void 0:t.length)||0,"/60"),placeholder:"例如:从Python程序设计-入门精通"})})}),(0,C.jsxs)("div",{className:_,children:[(0,C.jsx)(f.Z.Item,{name:"description",label:"简介:",rules:[{required:!0,message:"请输入作业的简介"},{max:5e3,message:"作业简介最大限制5000个字符"}],children:(0,C.jsx)(v.Z,{watch:!0,defaultValue:z.description})}),(0,C.jsx)("div",{children:(0,C.jsx)(f.Z.Item,{name:"attachment_ids",children:O&&(0,C.jsx)(j.Z,{})})})]}),(0,C.jsxs)("div",{className:_,children:[(0,C.jsx)(f.Z.Item,{name:"reference_answer",label:"参考答案:",children:(0,C.jsx)(v.Z,{defaultValue:z.reference_answer,watch:!0})}),(0,C.jsx)("div",{children:(0,C.jsx)(f.Z.Item,{name:"reference_attachment_ids",children:O&&(0,C.jsx)(j.Z,{})})})]})]}),(0,C.jsx)("div",{className:_,children:(0,C.jsx)(B.Z,{setitem:function(e){return D(a()({},e))},homework_common_id:l.categoryId})}),(0,C.jsx)("div",{className:k,children:(0,C.jsx)("div",{className:"pt40 mb30",children:(0,C.jsxs)(f.Z.Item,{children:[(0,C.jsx)(g.ZP,{size:"middle",type:"primary",className:"".concat(S," mr20"),htmlType:"submit",onClick:function(){P.submit()},loading:o["newCourse/editCourse"]||o["newCourse/submitCourse"],children:"提交"}),(0,C.jsx)(g.ZP,{size:"middle",type:"primary",ghost:!0,className:S,onClick:function(){return p.history.push("/classrooms/".concat(l.coursesId,"/common_homework"))},children:"取消"})]})})})]})}))},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return f},jP:function(){return p},rO:function(){return c}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,l.v_)("libraries.json",e)}function f(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__CommonHomework__SubmitWork__index.30b46959.async.js b/p__Classrooms__Lists__CommonHomework__SubmitWork__index.30b46959.async.js new file mode 100644 index 0000000000..770b413cb4 --- /dev/null +++ b/p__Classrooms__Lists__CommonHomework__SubmitWork__index.30b46959.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[57045,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,o=!1,r=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,O(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,Z(e,t))},e.getHTML5CodebaseVersion=function(){return h},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,o="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var B=function(e){return e&&"false"!==e},T=function(t,n,i){x(h)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==h||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(h)<=4.4)B(n.showToolBar)&&(n.height-=7),B(n.showAlgebraInput)&&(n.height-=37),n.width<605&&B(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(B(n.showToolBar)||B(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=B(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},b||w.appendChild(_)):r.appendChild(_),w.appendChild(r),b||t.appendChild(w),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),R("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(h)<5&&(e.className+=" geogebraweb")):k(e,t)}if(o){scriptLoadStarted=!0;for(var j=0;j0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):T(o,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else m=i,T(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",o.appendChild(a)}return o.appendChild(c),o},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],Z=function(e,t){if(h=e,t)O(h,!0);else{var r,a,l=!o;if(l){var s=x(h);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=h.indexOf("//");for(var u in a=c>0?h:0===c?r+h:"https://www.geogebra.org/apps/5.2.814.0/",G)if(h.slice(-1*G[u].length)===G[u]||h.slice(-1*(G[u].length+1))===G[u]+"/")return void O(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||B(n.showToolBar)||B(n.showMenuBar)||B(n.showAlgebraInput)||B(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",O(a,!1)}},O=function(e,t){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===t&&(t=-1===e.indexOf("http")),p=t,g="web.nocache.js",v=!1;var n=f.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(h=n[n.length-3]).substr(0,4)?h=h.substr(4,1)+"."+h.substr(5,1):"war"!==h.substr(0,3)&&"beta"!==h.substr(0,4)||(h="5.0");var 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."),Z("5.0",t))}},R=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function I(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),Z(e,!1),null!==c&&O(c,p),l=!0}return void 0!==n.material_id?S(I):I(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,i,o,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,f=0,p=0,m=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var h=e.getBoundingClientRect();h.left>0&&h.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-h.width-h.left,p=u<=480?10:30):(p=h.left,f=u<=480?10:30),d=p+f)}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===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(t-i.width)/2,r=(n-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],o=O;o0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var B=function(e){var t=e.value,n=e.onChange,i=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,C=e.title,B=void 0===C?"上传附件":C,T=e.showRemoveModal,N=void 0!==T&&T,P=e.accept,E=void 0===P?"":P,L=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,Z=e.aloneClear,O=void 0!==Z&&Z,R=e.realTimeRemove,I=void 0===R||R,D=e.uploadText,F=e.setFileProgress,z=e.showFileProgress,H=(0,p.useState)(!1),W=f()(H,2),V=W[0],q=W[1],U=(0,p.useState)(t||[]),K=f()(U,2),Y=K[0],J=K[1],X=(0,p.useState)(1),$=f()(X,2),Q=$[0],ee=$[1];(0,p.useEffect)((function(){t&&(1===Q&&J(u()(t)),ee(2),G===(null==t?void 0:t.length)&&q(!0))}),[t]);var te=function(){setTimeout((function(){Y.pop(),J(u()(Y))}),500)};z&&F(Y.some((function(e){return"uploading"===e.status})));var ne,ie={multiple:!0,disabled:V,accept:E,withCredentials:!0,fileList:Y,beforeUpload:function(e,t){var n=e.size/1024/1024;return Y.concat(t).length>G?(Y.pop(),J(u()(Y)),h.ZP.error("最多只能上传".concat(G,"个文件")),O?Promise.reject():(te(),!1)):n=G?q(!0):q(!1),J(u()(Y)),Y=Y.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,Y),n(Y)):h.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(ne=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(I){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!N){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,h.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return ne.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(j,s()(s()({},ie),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),L]})),!M&&(0,y.jsxs)(m.Z,s()(s()({},ie),{},{children:[(0,y.jsxs)(v.ZP,{disabled:V,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),B]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:D||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),f=n.n(d),p=(n(80443),n(90630),n(37712)),m=s.default.Option,h={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),m=d[0],h=d[1];return(0,l.useEffect)((function(){if(m){var e=function(e){var t=e.getValue();n&&n(t)};return m.on("change",e),function(){m.off("change",e)}}}),[m,n]),(0,l.useEffect)((function(){m&&m.setOption("mode",i)}),[m,i]),(0,l.useEffect)((function(){m&&(t===m.getValue()&&""!==t||setTimeout((function(){m.setValue(t||"")}),300))}),[m,t]),(0,l.useEffect)((function(){if(c.current&&!m){var e=f().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));h(e)}}),[c.current,m]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,l.useState)("python"),r=a()(i,2),d=r[0],f=r[1];return(0,p.jsxs)(c.Z,o()(o()({},h),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){f(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(m,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(v,{mode:d})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var i=n(91232),o=n.n(i),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),f=n(76374),p=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),m=n(37712),h=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),v=n.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,o=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,m.jsxs)("a",{title:n,className:a,onClick:function(){t(o)},children:[(0,m.jsx)("i",{className:"".concat(i)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,m.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,m.jsx)("li",{children:e.actionName?(0,m.jsx)(b,v()(v()({},e),{},{onActionCallback:o})):(0,m.jsx)("span",{className:"v-line"})},t)})),n?(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,m.jsx)("li",{children:s}),(0,m.jsx)("li",{className:"btn-full-screen",children:(0,m.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),j={labelCol:{span:4},wrapperCol:{span:20}},C=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(_.Z,v()(v()({},j),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,m.jsx)(k.Z,{})}),(0,m.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,m.jsx)(k.Z,{})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},B=n(73145),T=n(28486),N=n(95237),P=n(36709),E=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,m.jsx)(N.Z,{style:{height:"100vh"},children:(0,m.jsx)(P.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},L=n(7557),M=n.n(L),A=n(41498),G=n.n(A),Z=n(37205),O=n.n(Z),R=n(12378);function I(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(I,go.CommandHandler),I.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},I.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},I.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},I.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},I.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},I.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},I.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},I.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))i.y?1:n.xi.x?1:0})),t},I.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},I.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(I.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(I.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 D=I,F=(n(41034),n(85160)),z=n(43418),H=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=R;var U=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),f=d[0],p=d[1],h=function(){var e=G()(M()().mark((function e(){var t,o;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,m.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,m.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,m.jsxs)(N.Z,{children:[(0,m.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,m.jsx)(H.Z,{onClick:function(){l.current=!l.current,p(f+1)},children:(0,m.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,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:V,ref:r})]}),(0,m.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,m.jsx)(F.FI,{initDiagram:function(){var e=R.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",f="#fffcd5",p="#d5ebff",m="#f2dfe0",h="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var o=n.part.adornedPart,r=(new R.Point).setRectSpot(o.actualBounds,t);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var l={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(R.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(R.Spot.Top)||t.equals(R.Spot.Bottom)?25:18,height:t.equals(R.Spot.Top)||t.equals(R.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(t){return e(R.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(R.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(R.Panel,"Horizontal",_(u,"fill"),_(f,"fill"),_(p,"fill"),_(m,"fill"))),e("ContextMenuButton",e(R.Panel,"Horizontal",_(g,"fill"),_(v,"fill"),_(h,"fill"),_(w,"fill")))]}function S(){return[e("ContextMenuButton",e(R.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(R.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function j(t,n){return n||(n="thickness"),e(R.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function C(t,n){return n||(n="dash"),e(R.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function B(){return[e("ContextMenuButton",e(R.Panel,"Horizontal",j(1),j(2),j(3),j(4))),e("ContextMenuButton",e(R.Panel,"Horizontal",C(null),C([2,4]),C([4,4])))]}function T(t,n){return n||(n="figure"),e(R.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function N(t){return e(R.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function P(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(R.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function E(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",R.Spot.stringify(R.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(R.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function L(t,n){var i=0,o=R.Spot.RightSide;t.equals(R.Spot.Top)?(i=270,o=R.Spot.TopSide):t.equals(R.Spot.Left)?(i=180,o=R.Spot.LeftSide):t.equals(R.Spot.Bottom)&&(i=90,o=R.Spot.BottomSide),n||(i-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",R.Spot.stringify(o)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(R.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return i.current=new R.Diagram(o.current,{padding:20,grid:e(R.Panel,"Grid",e(R.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(R.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(D),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(R.Node,"Auto",{locationSpot:R.Spot.Center,locationObjectName:"SHAPE",desiredSize:new R.Size(120,60),minSize:new R.Size(40,40),resizable:!0,resizeCellSize:new R.Size(10,10),rotatable:!0},new R.Binding("location","loc",R.Point.parse).makeTwoWay(R.Point.stringify),new R.Binding("desiredSize","size",R.Size.parse).makeTwoWay(R.Size.stringify),e(R.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:R.Spot.AllSides,toSpot:R.Spot.AllSides},new R.Binding("figure"),new R.Binding("fill"),new R.Binding("stroke","borderColor"),new R.Binding("strokeWidth","thickness"),new R.Binding("strokeDashArray","dash")),e(R.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(R.TextBlock,{margin:1,textAlign:"center",overflow:R.TextBlock.OverflowEllipsis,editable:!0},new R.Binding("text").makeTwoWay(),new R.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(R.Panel,"Vertical",{maxSize:new R.Size(200,NaN)},e(R.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new R.Binding("text")),e(R.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new R.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(R.Adornment,"Spot",e(R.Placeholder,{padding:10}),b(R.Spot.Top,"TriangleUp"),b(R.Spot.Left,"TriangleLeft"),b(R.Spot.Right,"TriangleRight"),b(R.Spot.Bottom,"TriangleDown"),y({alignment:new R.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(R.Panel,"Horizontal",T("Rectangle"),T("RoundedRectangle"),T("Ellipse"),T("Diamond"))),e("ContextMenuButton",e(R.Panel,"Horizontal",T("Parallelogram2"),T("ManualOperation"),T("Procedure"),T("Cylinder1"))),e("ContextMenuButton",e(R.Panel,"Horizontal",T("Terminator"),T("CreateRequest"),T("Document"),T("TriangleDown"))),k(),S(),B()),i.current.groupTemplate=e(R.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:R.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new R.Binding("location","loc",R.Point.parse).makeTwoWay(R.Point.stringify),e(R.Panel,"Auto",{name:"BODY"},e(R.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:R.Spot.AllSides,toSpot:R.Spot.AllSides},new R.Binding("fill"),new R.Binding("stroke","color"),new R.Binding("strokeWidth","thickness"),new R.Binding("strokeDashArray","dash")),e(R.Placeholder,{background:"transparent",margin:20})),e(R.TextBlock,{alignment:R.Spot.Top,alignmentFocus:R.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new R.Binding("text"),new R.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(R.Adornment,"Spot",e(R.Panel,"Auto",e(R.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(R.Placeholder,{margin:1.5})),y({alignment:R.Spot.TopRight,alignmentFocus:R.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),B()),i.current.linkTemplate=e(R.Link,{layerName:"Foreground",routing:R.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new R.Binding("fromSpot","fromSpot",R.Spot.parse),new R.Binding("toSpot","toSpot",R.Spot.parse),new R.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new R.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new R.Binding("points").makeTwoWay(),e(R.Shape,{strokeWidth:2},new R.Binding("stroke","color"),new R.Binding("strokeWidth","thickness"),new R.Binding("strokeDashArray","dash")),e(R.Shape,{segmentIndex:0,segmentOffset:new R.Point(15,0),segmentOrientation:R.Link.OrientAlong,alignmentFocus:R.Spot.Right,figure:"circle",width:10,strokeWidth:0},new R.Binding("fill","color"),new R.Binding("visible","dir",(function(e){return 1===e}))),e(R.Shape,{segmentIndex:-1,segmentOffset:new R.Point(-10,6),segmentOrientation:R.Link.OrientPlus90,alignmentFocus:R.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new R.Binding("fill","color"),new R.Binding("visible","dir",(function(e){return e>=1})),new R.Binding("width","thickness",(function(e){return 7+3*e})),new R.Binding("height","thickness",(function(e){return 7+3*e})),new R.Binding("segmentOffset","thickness",(function(e){return new R.Point(-15,4+1.5*e)}))),e(R.Shape,{segmentIndex:0,segmentOffset:new R.Point(15,-6),segmentOrientation:R.Link.OrientMinus90,alignmentFocus:R.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new R.Binding("fill","color"),new R.Binding("visible","dir",(function(e){return 2===e})),new R.Binding("width","thickness",(function(e){return 7+3*e})),new R.Binding("height","thickness",(function(e){return 7+3*e})),new R.Binding("segmentOffset","thickness",(function(e){return new R.Point(-15,4+1.5*e)}))),e(R.TextBlock,{alignmentFocus:new R.Spot(0,1,-4,0),editable:!0},new R.Binding("text").makeTwoWay(),new R.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(R.Adornment,e(R.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:N(2)},new R.Binding("pathPattern","thickness",N)),y({alignmentFocus:new R.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",S(),B(),e("ContextMenuButton",e(R.Panel,"Horizontal",P(0),P(1),P(2))),e("ContextMenuButton",e(R.Panel,"Horizontal",e(R.Panel,"Spot",E(!1),L(R.Spot.Top,!1),L(R.Spot.Left,!1),L(R.Spot.Right,!1),L(R.Spot.Bottom,!1)),e(R.Panel,"Spot",{margin:new R.Margin(0,0,0,2)},E(!0),L(R.Spot.Top,!0),L(R.Spot.Left,!0),L(R.Spot.Right,!0),L(R.Spot.Bottom,!0))))),new R.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(R.Link,{locationSpot:R.Spot.Center,selectionAdornmentTemplate:e(R.Adornment,"Link",{locationSpot:R.Spot.Center},e(R.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(R.Shape,{toArrow:"Standard",stroke:null}))},{routing:R.Link.AvoidsNodes,curve:R.Link.JumpOver,corner:5,toShortLength:4},new R.Binding("points"),e(R.Shape,{isPanelMain:!0,strokeWidth:2}),e(R.Shape,{toArrow:"Standard",stroke:null})),model:new R.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(O()(R.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(R.Node,"Auto",{locationSpot:R.Spot.Center},new R.Binding("location","location",R.Point.parse).makeTwoWay(R.Point.stringify),e(R.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 R.Binding("stroke").makeTwoWay(),new R.Binding("fill").makeTwoWay(),new R.Binding("figure")),e(R.TextBlock,{margin:new R.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new R.Size(16,16),maxSize:new R.Size(10,NaN),textAlign:"center",editable:!0},new R.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(R.Panel,"Grid",e(R.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(R.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:o})]})]}),(0,m.jsx)("div",{className:"tr",children:(0,m.jsx)(S.ZP,{size:"large",onClick:h,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,m.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,m.jsx)("span",{style:X,children:"单元格数:"}),(0,m.jsx)("span",{style:X,children:"行数"}),(0,m.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,m.jsx)(Y.Z,{})}),(0,m.jsx)("span",{style:X,children:"列数"}),(0,m.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,m.jsx)(Y.Z,{})})]}),(0,m.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,m.jsx)("span",{style:X,children:"对齐方式:"}),(0,m.jsx)(_.Z.Item,{name:"align",children:(0,m.jsxs)(J,{children:[(0,m.jsx)(K.ZP,{value:"default",children:(0,m.jsx)("i",{className:"fa fa-align-justify"})}),(0,m.jsx)(K.ZP,{value:"left",children:(0,m.jsx)("i",{className:"fa fa-align-left"})}),(0,m.jsx)(K.ZP,{value:"center",children:(0,m.jsx)("i",{className:"fa fa-align-center"})}),(0,m.jsx)(K.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)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,o=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),f=d[0],p=d[1],h=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(h.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){h.current.appName=f?"3D":"graphing",s.current.inject("applet_container")}),[f]),(0,c.useEffect)((function(){p(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,m.jsxs)(N.Z,{align:"middle",children:[(0,m.jsx)(H.Z,{flex:1,children:(0,m.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,m.jsx)(H.Z,{children:(0,m.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),oe=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},me=n(77818);var he="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},we+"-B","bold"),we+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,j=e.mode,N=void 0===j?"markdown":j,P=e.id,L=void 0===P?"markdown-editor-id":P,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,Z=void 0!==G&&G,O=e.showNullButton,R=void 0!==O&&O,I=e.showNullProgramButton,D=void 0!==I&&I,F=e.hidetoolBar,H=void 0!==F&&F,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,fe=void 0!==te&&te,we=e.disabledFill,xe=void 0!==we&&we,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,je=void 0===Se?"":Se,Ce=e.extraUse,Be=(0,c.useState)(null),Te=a()(Be,2),Ne=Te[0],Pe=Te[1],Ee=(0,c.useState)(n),Le=a()(Ee,2),Me=Le[0],Ae=Le[1],Ge=(0,c.useState)(k),Ze=a()(Ge,2),Oe=Ze[0],Re=Ze[1],Ie=(0,c.useState)(V),De=a()(Ie,2),Fe=De[0],ze=De[1],He=(0,c.useState)(""),We=a()(He,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),ot=(0,c.useState)(0),rt=a()(ot,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],ft=(0,c.useRef)(),pt=(0,c.useRef)(),mt=(0,c.useRef)(),ht=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(je),null==Ne||Ne.setValue(je),window.scrollTo(0,e)}),[je]),(0,c.useEffect)((function(){null==Y||Y(Fe)}),[Fe]),(0,c.useEffect)((function(){if(ft.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==N)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,T.I)(s,(function(e){var n,i,o;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(ft.current,{mode:N,lineNumbers:!w,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),o=n.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===he.indexOf(r))return null;if(console.log("change1:",t,e,o,i,s,a,l,r),s>=0&&i.ch-s<5){var u=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),fe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Pe(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){pt.current}),[Qe,pt,Fe]);(0,c.useEffect)((function(){if(Ne){var e=function(){var e=new f.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Ne.setSize("100%","100%"),Ne.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(ft.current.parentElement),e}();return function(){var t,n;null!==(t=ft.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=ft.current)||void 0===n?void 0:n.parentElement)}}}),[Ne,gt]),(0,c.useEffect)((function(){if(Ne){for(var e=[],t=function(){var t=a()(i[n],2),o=t[0],r=t[1],l=s()({},o,(function(){vt(r)}));e.push(l),Ne.addKeyMap(l)},n=0,i=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(L);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(L,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Re(k)}),[Ne,k]),(0,c.useEffect)((function(){Ne&&_&&Ne.focus()}),[Ne,_]),(0,c.useEffect)((function(){if(Oe&&Ne){var e=function(e){var t=e.target;if(ht.current){var n=t.scrollTop/t.scrollHeight;ht.current.scrollTop=ht.current.scrollHeight*n}},t=Ne.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Ne,Oe]),(0,c.useEffect)((function(){if(Ne&&K){var e=function(e,t){K(e,t)};return Ne.on("beforeChange",e),function(){Ne.off("beforeChange",e)}}}),[Ne,K]),(0,c.useEffect)((function(){if(Ne&&q){var e=function(){q(Ne.getValue())};return Ne.on("blur",e),function(){Ne.off("blur",e)}}}),[Ne,q]),(0,c.useEffect)((function(){if(Ne){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(D?i(n,_t(n)):i(n))};return Ne.on("change",e),function(){Ne.off("change",e)}}}),[Ne,i]),(0,c.useEffect)((function(){if(Ne)if(null==n)Ne.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Ne.getValue()&&(Ne.setValue(n),Ae(n),Ne.setCursor(fe?1:Ne.lineCount(),0),window.scrollTo(0,e))}}),[Ne,n]);var vt=(0,c.useCallback)((function(e){var t=Ne.getCursor(),n=Ne.getSelection(),i=n.split("\n");switch(e){case"bold":return Ne.replaceSelection("**"+n+"**"),""===n&&Ne.setCursor(t.line,t.ch+2),Ne.focus();case"italic":return Ne.replaceSelection("*"+n+"*"),""===n&&Ne.setCursor(t.line,t.ch+1),Ne.focus();case"code":return Ne.replaceSelection("`"+n+"`"),""===n&&Ne.setCursor(t.line,t.ch+1),Ne.focus();case"inline-latex":return qe("inline-latex"),Ne.focus();case"latex":return Ne.replaceSelection("```latex\n"+n+"\n```"),Ne.setCursor(t.line+1,n.length+1),Ne.focus();case"line-break":return Ne.replaceSelection("
\n"),Ne.focus();case"list-ul":return""===n?Ne.replaceSelection("- "+n):Ne.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ne.focus();case"list-ol":return""===n?Ne.replaceSelection("1. "+n):Ne.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Ne.focus();case"add-null-ch":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("▁"),Ne.focus();case"add-signal":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("@▁@"),Ne.focus();case"add-multiple":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection(he),Ne.focus();case"inster-template-1":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ne.focus();case"eraser":return Ne.setValue(""),Ne.focus();case"trigger-watch":return Re(!Oe),Ne.focus();case"trigger-full-screen":return ze(!Fe),Ne.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Ne,Oe,Fe]),wt=(0,c.useCallback)((function(e,t){var n,i,o,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Ne.replaceSelection("[".concat(l,"](").concat(s,")")),Ne.focus();case ue:var c=e.language,u=e.content;return Ne.replaceSelection(["```"+c,u,"```"].join("\n")),Ne.focus();case"maths-latex":for(var d=atob(e),f=new Uint8Array(d.length),p=0;p-1||null==v||!v.type?g?Ne.replaceSelection("![ ".concat(g," ]( ").concat(h,' "').concat(g,'" )')):Ne.replaceSelection("![,](".concat(h,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Ne.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Ne.replaceSelection('').concat(v.name,"")):ge.includes(w)?Ne.replaceSelection('').concat(v.name,"")):Ne.replaceSelection("[".concat(v.name,"](").concat(oe.Z.API_SERVER).concat(h,")")),Ne.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},i=mt.current,o=!1,r=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Ne,mt]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:ve(l),height:ve(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(D){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>o-20&&i",children:[(0,L.jsx)(w.Z.Item,{children:(0,L.jsx)(m.Link,{to:"/classrooms/".concat(W.course_id,"/common_homework"),children:W.course_name})}),(0,L.jsx)(w.Z.Item,{children:(0,L.jsx)(m.Link,{to:"/classrooms/".concat(W.course_id,"/common_homework"),children:W.category.category_name})}),(0,L.jsxs)(w.Z.Item,{children:[null==W?void 0:W.user_name," 提交作品"]})]})})}),(0,L.jsx)("aside",{className:"font24 bold mt20 mb20",children:W.homework_name}),(0,L.jsxs)("div",{style:{background:"#fff",padding:"20px 30px"},children:[(0,L.jsx)("div",{style:{fontSize:"18px",marginBottom:"10px",fontWeight:600},children:"作业描述"}),(0,L.jsx)(T.Z,{value:(null==V?void 0:V.description)||"暂无~"}),(0,L.jsx)(N.Z,{authority:(0,P.GJ)(),showDimensions:!1,dataSource:null==V?void 0:V.attachments,callback:function(){i({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:r.commonHomeworkId}})}}),(0,L.jsx)(E.Ei,{value:V})]}),(0,L.jsxs)(h.Z,{form:c,className:k,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){G(s()({},c.getFieldsValue())),console.log("formValue:",A)},onFinish:ne,children:[(0,L.jsxs)("div",{className:S,children:[(0,L.jsx)(h.Z.Item,{name:"description",label:"内容:",rules:[{required:!0,message:"请输入作业的简介"},{max:65535,message:"作业简介最大限制65535个字符"}],children:(0,L.jsx)(y.Z,{placeholder:"请在此输入作业内容或作业附件的简要描述,最大限制为65535个字符",watch:!0,defaultValue:A.intro})}),(0,L.jsx)("div",{children:(0,L.jsx)(h.Z.Item,{name:"attachment_ids",children:(0,L.jsx)(B.Z,{maxSize:Q})})})]}),(0,L.jsx)("div",{className:j,children:(0,L.jsx)("div",{className:"pt40 mb30",children:(0,L.jsxs)(h.Z.Item,{children:[(0,L.jsx)(b.ZP,{size:"middle",type:"primary",className:"".concat(C," mr20"),htmlType:"submit",loading:n["newCourse/editCourse"]||n["newCourse/submitCourse"],children:"提交"}),(0,L.jsx)(b.ZP,{size:"middle",type:"primary",ghost:!0,className:C,onClick:function(){return m.history.push("/classrooms/".concat(r.coursesId,"/common_homework/").concat(r.commonHomeworkId,"/detail"))},children:"取消"})]})})})]})]})}))},72764:function(e,t,n){"use strict";n.d(t,{Ei:function(){return w},rU:function(){return b},ZP:function(){return y}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s={wrap:"wrap___W3YuU",title:"title___OzKge",exhibition:"exhibition___ugphm"},c=n(78241),u=n(95237),d=n(43604),f=n(24905),p=n(94001),m=n(6848),h=n(92310),g=n.n(h),v=n(37712),w=function(e){var t=e.value,n=e.className,i=e.style,o=(0,l.useState)("0"),r=a()(o,2),c=r[0],u=r[1];(0,l.useEffect)((function(){if(t){var e=t.submit_limit,n=t.must_file;if(e&&n)return void u("1");if(e&&!n)return void u("2");if(!e&&n)return void u("3")}}),[t]);var d={1:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符,并且必须上传相关附件。"]}),2:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符"]}),3:(0,v.jsx)("span",{children:"必须上传相关附件。"})};return"0"===c?(0,v.jsx)(v.Fragment,{}):(0,v.jsxs)("section",{className:g()(s.exhibition,n),style:i,children:[(0,v.jsx)("span",{className:"c-grey-666 mr10",children:"提交作业要求:"}),null==d?void 0:d[c]]})},b=function(e){var t=e.className,n=e.style,i=e.form,o=c.Z.useWatch("submit_limit",i),r=c.Z.useWatch("can_submit",i);return(0,v.jsx)("section",{className:g()(s.newWrap,t),style:n,children:(0,v.jsxs)("div",{style:{padding:"20px 0",borderBottom:"1px solid #EDEDED"},children:[(0,v.jsx)("h1",{children:"提交设置"}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"can_submit",valuePropName:"checked",children:(0,v.jsx)(f.Z,{children:(0,v.jsx)("span",{className:"font16",children:"限制学生提交作品"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_num",rules:r&&[{required:!0,message:"请填写作品次数"}],children:(0,v.jsx)(p.Z,{precision:0,min:1,disabled:!r})})}),(0,v.jsx)(d.Z,{children:"次"}),(0,v.jsxs)(d.Z,{children:[" ",(0,v.jsx)(m.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999"})})]})]}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit",valuePropName:"checked",children:(0,v.jsx)(f.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生填写内容至少"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit_num",rules:o&&[{required:!0,message:"字数不能为空"}],children:(0,v.jsx)(p.Z,{precision:0,min:1,disabled:!o})})}),(0,v.jsx)(d.Z,{children:"字"})]}),(0,v.jsx)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"must_file",valuePropName:"checked",children:(0,v.jsx)(f.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生提交作业必须上传附件"})})})})})]})})},y=function(e){var t=e.value,n=e.onChange,i=e.className,r=e.style,c=e.disabled,d=void 0!==c&&c,h=(0,l.useState)({}),w=a()(h,2),b=w[0],y=w[1];(0,l.useEffect)((function(){if(console.log(t,"value"),t){var e={submit_limit:null==t?void 0:t.submit_limit,submit_limit_num:null==t?void 0:t.submit_limit_num,must_file:null==t?void 0:t.must_file,can_submit:null==t?void 0:t.can_submit,submit_num:null==t?void 0:t.submit_num};y(o()({},e))}}),[t]);var x=function(e){var t=o()(o()({},b),e);n(t)};return(0,v.jsxs)("section",{className:g()(s.wrap,i),style:r,children:[(0,v.jsx)("div",{className:s.title,children:"提交设置"}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(f.Z,{disabled:d,checked:null==b?void 0:b.can_submit,onChange:function(e){return x({can_submit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"限制学生提交作业"}),(0,v.jsx)(p.Z,{precision:0,min:1,disabled:d||!(null!=b&&b.can_submit),value:null==b?void 0:b.submit_num,onChange:function(e){return x({submit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"次"}),(0,v.jsx)(m.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999 ml5"})})]}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(f.Z,{disabled:d,checked:null==b?void 0:b.submit_limit,onChange:function(e){return x({submit_limit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"学生填写内容至少"}),(0,v.jsx)(p.Z,{precision:0,min:1,disabled:d||!(null!=b&&b.submit_limit),value:null==b?void 0:b.submit_limit_num,onChange:function(e){return x({submit_limit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"字"})]}),(0,v.jsxs)(u.Z,{align:"middle",children:[(0,v.jsx)(f.Z,{disabled:d,checked:null==b?void 0:b.must_file,onChange:function(e){return x({must_file:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10",children:"学生提交作业必须上传附件"})]})]})}},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return p},jP:function(){return f},rO:function(){return c}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return(0,l.v_)("libraries.json",e)}function p(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__CommonHomework__SubmitWork__index.6e450b9f.async.js b/p__Classrooms__Lists__CommonHomework__SubmitWork__index.6e450b9f.async.js deleted file mode 100644 index a59af02303..0000000000 --- a/p__Classrooms__Lists__CommonHomework__SubmitWork__index.6e450b9f.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[57045,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,o=!1,r=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,O(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,Z(e,t))},e.getHTML5CodebaseVersion=function(){return h},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,o="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var B=function(e){return e&&"false"!==e},T=function(t,n,i){x(h)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==h||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(h)<=4.4)B(n.showToolBar)&&(n.height-=7),B(n.showAlgebraInput)&&(n.height-=37),n.width<605&&B(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(B(n.showToolBar)||B(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=B(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},b||w.appendChild(_)):r.appendChild(_),w.appendChild(r),b||t.appendChild(w),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),R("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(h)<5&&(e.className+=" geogebraweb")):k(e,t)}if(o){scriptLoadStarted=!0;for(var j=0;j0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):T(o,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else m=i,T(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",o.appendChild(a)}return o.appendChild(c),o},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],Z=function(e,t){if(h=e,t)O(h,!0);else{var r,a,l=!o;if(l){var s=x(h);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=h.indexOf("//");for(var u in a=c>0?h:0===c?r+h:"https://www.geogebra.org/apps/5.2.814.0/",G)if(h.slice(-1*G[u].length)===G[u]||h.slice(-1*(G[u].length+1))===G[u]+"/")return void O(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||B(n.showToolBar)||B(n.showMenuBar)||B(n.showAlgebraInput)||B(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",O(a,!1)}},O=function(e,t){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===t&&(t=-1===e.indexOf("http")),p=t,g="web.nocache.js",v=!1;var n=f.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(h=n[n.length-3]).substr(0,4)?h=h.substr(4,1)+"."+h.substr(5,1):"war"!==h.substr(0,3)&&"beta"!==h.substr(0,4)||(h="5.0");var 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."),Z("5.0",t))}},R=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function I(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),Z(e,!1),null!==c&&O(c,p),l=!0}return void 0!==n.material_id?S(I):I(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,i,o,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,f=0,p=0,m=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var h=e.getBoundingClientRect();h.left>0&&h.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-h.width-h.left,p=u<=480?10:30):(p=h.left,f=u<=480?10:30),d=p+f)}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===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(t-i.width)/2,r=(n-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],o=O;o0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var B=function(e){var t=e.value,n=e.onChange,i=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,C=e.title,B=void 0===C?"上传附件":C,T=e.showRemoveModal,N=void 0!==T&&T,P=e.accept,E=void 0===P?"":P,L=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,Z=e.aloneClear,O=void 0!==Z&&Z,R=e.realTimeRemove,I=void 0===R||R,D=e.uploadText,F=(0,p.useState)(!1),z=f()(F,2),H=z[0],W=z[1],V=(0,p.useState)(t||[]),q=f()(V,2),U=q[0],K=q[1],Y=(0,p.useState)(1),J=f()(Y,2),X=J[0],$=J[1];(0,p.useEffect)((function(){t&&(1===X&&K(u()(t)),$(2),G===(null==t?void 0:t.length)&&W(!0))}),[t]);var Q,ee=function(){setTimeout((function(){U.pop(),K(u()(U))}),500)},te={multiple:!0,disabled:H,accept:E,withCredentials:!0,fileList:U,beforeUpload:function(e,t){var n=e.size/1024/1024;return U.concat(t).length>G?(U.pop(),K(u()(U)),h.ZP.error("最多只能上传".concat(G,"个文件")),O?Promise.reject():(ee(),!1)):n=G?W(!0):W(!1),K(u()(U)),U=U.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,U),n(U)):h.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(Q=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(I){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!N){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,h.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return Q.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(j,s()(s()({},te),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),L]})),!M&&(0,y.jsxs)(m.Z,s()(s()({},te),{},{children:[(0,y.jsxs)(v.ZP,{disabled:H,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),B]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:D||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),f=n.n(d),p=(n(80443),n(90630),n(37712)),m=s.default.Option,h={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),m=d[0],h=d[1];return(0,l.useEffect)((function(){if(m){var e=function(e){var t=e.getValue();n&&n(t)};return m.on("change",e),function(){m.off("change",e)}}}),[m,n]),(0,l.useEffect)((function(){m&&m.setOption("mode",i)}),[m,i]),(0,l.useEffect)((function(){m&&(t===m.getValue()&&""!==t||setTimeout((function(){m.setValue(t||"")}),300))}),[m,t]),(0,l.useEffect)((function(){if(c.current&&!m){var e=f().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));h(e)}}),[c.current,m]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,l.useState)("python"),r=a()(i,2),d=r[0],f=r[1];return(0,p.jsxs)(c.Z,o()(o()({},h),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){f(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(m,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(v,{mode:d})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var i=n(91232),o=n.n(i),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),f=n(76374),p=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),m=n(37712),h=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),v=n.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,o=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,m.jsxs)("a",{title:n,className:a,onClick:function(){t(o)},children:[(0,m.jsx)("i",{className:"".concat(i)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,m.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,m.jsx)("li",{children:e.actionName?(0,m.jsx)(b,v()(v()({},e),{},{onActionCallback:o})):(0,m.jsx)("span",{className:"v-line"})},t)})),n?(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,m.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,m.jsx)("li",{children:s}),(0,m.jsx)("li",{className:"btn-full-screen",children:(0,m.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),j={labelCol:{span:4},wrapperCol:{span:20}},C=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(_.Z,v()(v()({},j),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,m.jsx)(k.Z,{})}),(0,m.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,m.jsx)(k.Z,{})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},B=n(73145),T=n(28486),N=n(95237),P=n(36709),E=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,m.jsx)(N.Z,{style:{height:"100vh"},children:(0,m.jsx)(P.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},L=n(7557),M=n.n(L),A=n(41498),G=n.n(A),Z=n(37205),O=n.n(Z),R=n(12378);function I(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(I,go.CommandHandler),I.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},I.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},I.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},I.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},I.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},I.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},I.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},I.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))i.y?1:n.xi.x?1:0})),t},I.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},I.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(I.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(I.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 D=I,F=(n(41034),n(85160)),z=n(43418),H=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=R;var U=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),f=d[0],p=d[1],h=function(){var e=G()(M()().mark((function e(){var t,o;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,m.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,m.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,m.jsxs)(N.Z,{children:[(0,m.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,m.jsx)(H.Z,{onClick:function(){l.current=!l.current,p(f+1)},children:(0,m.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,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:V,ref:r})]}),(0,m.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,m.jsx)(F.FI,{initDiagram:function(){var e=R.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",f="#fffcd5",p="#d5ebff",m="#f2dfe0",h="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var o=n.part.adornedPart,r=(new R.Point).setRectSpot(o.actualBounds,t);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var l={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(R.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(R.Spot.Top)||t.equals(R.Spot.Bottom)?25:18,height:t.equals(R.Spot.Top)||t.equals(R.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(t){return e(R.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(R.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(R.Panel,"Horizontal",_(u,"fill"),_(f,"fill"),_(p,"fill"),_(m,"fill"))),e("ContextMenuButton",e(R.Panel,"Horizontal",_(g,"fill"),_(v,"fill"),_(h,"fill"),_(w,"fill")))]}function S(){return[e("ContextMenuButton",e(R.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(R.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function j(t,n){return n||(n="thickness"),e(R.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function C(t,n){return n||(n="dash"),e(R.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function B(){return[e("ContextMenuButton",e(R.Panel,"Horizontal",j(1),j(2),j(3),j(4))),e("ContextMenuButton",e(R.Panel,"Horizontal",C(null),C([2,4]),C([4,4])))]}function T(t,n){return n||(n="figure"),e(R.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function N(t){return e(R.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function P(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(R.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function E(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",R.Spot.stringify(R.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(R.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function L(t,n){var i=0,o=R.Spot.RightSide;t.equals(R.Spot.Top)?(i=270,o=R.Spot.TopSide):t.equals(R.Spot.Left)?(i=180,o=R.Spot.LeftSide):t.equals(R.Spot.Bottom)&&(i=90,o=R.Spot.BottomSide),n||(i-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",R.Spot.stringify(o)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(R.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return i.current=new R.Diagram(o.current,{padding:20,grid:e(R.Panel,"Grid",e(R.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(R.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(D),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(R.Node,"Auto",{locationSpot:R.Spot.Center,locationObjectName:"SHAPE",desiredSize:new R.Size(120,60),minSize:new R.Size(40,40),resizable:!0,resizeCellSize:new R.Size(10,10),rotatable:!0},new R.Binding("location","loc",R.Point.parse).makeTwoWay(R.Point.stringify),new R.Binding("desiredSize","size",R.Size.parse).makeTwoWay(R.Size.stringify),e(R.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:R.Spot.AllSides,toSpot:R.Spot.AllSides},new R.Binding("figure"),new R.Binding("fill"),new R.Binding("stroke","borderColor"),new R.Binding("strokeWidth","thickness"),new R.Binding("strokeDashArray","dash")),e(R.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(R.TextBlock,{margin:1,textAlign:"center",overflow:R.TextBlock.OverflowEllipsis,editable:!0},new R.Binding("text").makeTwoWay(),new R.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(R.Panel,"Vertical",{maxSize:new R.Size(200,NaN)},e(R.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new R.Binding("text")),e(R.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new R.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(R.Adornment,"Spot",e(R.Placeholder,{padding:10}),b(R.Spot.Top,"TriangleUp"),b(R.Spot.Left,"TriangleLeft"),b(R.Spot.Right,"TriangleRight"),b(R.Spot.Bottom,"TriangleDown"),y({alignment:new R.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(R.Panel,"Horizontal",T("Rectangle"),T("RoundedRectangle"),T("Ellipse"),T("Diamond"))),e("ContextMenuButton",e(R.Panel,"Horizontal",T("Parallelogram2"),T("ManualOperation"),T("Procedure"),T("Cylinder1"))),e("ContextMenuButton",e(R.Panel,"Horizontal",T("Terminator"),T("CreateRequest"),T("Document"),T("TriangleDown"))),k(),S(),B()),i.current.groupTemplate=e(R.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:R.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new R.Binding("location","loc",R.Point.parse).makeTwoWay(R.Point.stringify),e(R.Panel,"Auto",{name:"BODY"},e(R.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:R.Spot.AllSides,toSpot:R.Spot.AllSides},new R.Binding("fill"),new R.Binding("stroke","color"),new R.Binding("strokeWidth","thickness"),new R.Binding("strokeDashArray","dash")),e(R.Placeholder,{background:"transparent",margin:20})),e(R.TextBlock,{alignment:R.Spot.Top,alignmentFocus:R.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new R.Binding("text"),new R.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(R.Adornment,"Spot",e(R.Panel,"Auto",e(R.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(R.Placeholder,{margin:1.5})),y({alignment:R.Spot.TopRight,alignmentFocus:R.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),B()),i.current.linkTemplate=e(R.Link,{layerName:"Foreground",routing:R.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new R.Binding("fromSpot","fromSpot",R.Spot.parse),new R.Binding("toSpot","toSpot",R.Spot.parse),new R.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new R.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new R.Binding("points").makeTwoWay(),e(R.Shape,{strokeWidth:2},new R.Binding("stroke","color"),new R.Binding("strokeWidth","thickness"),new R.Binding("strokeDashArray","dash")),e(R.Shape,{segmentIndex:0,segmentOffset:new R.Point(15,0),segmentOrientation:R.Link.OrientAlong,alignmentFocus:R.Spot.Right,figure:"circle",width:10,strokeWidth:0},new R.Binding("fill","color"),new R.Binding("visible","dir",(function(e){return 1===e}))),e(R.Shape,{segmentIndex:-1,segmentOffset:new R.Point(-10,6),segmentOrientation:R.Link.OrientPlus90,alignmentFocus:R.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new R.Binding("fill","color"),new R.Binding("visible","dir",(function(e){return e>=1})),new R.Binding("width","thickness",(function(e){return 7+3*e})),new R.Binding("height","thickness",(function(e){return 7+3*e})),new R.Binding("segmentOffset","thickness",(function(e){return new R.Point(-15,4+1.5*e)}))),e(R.Shape,{segmentIndex:0,segmentOffset:new R.Point(15,-6),segmentOrientation:R.Link.OrientMinus90,alignmentFocus:R.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new R.Binding("fill","color"),new R.Binding("visible","dir",(function(e){return 2===e})),new R.Binding("width","thickness",(function(e){return 7+3*e})),new R.Binding("height","thickness",(function(e){return 7+3*e})),new R.Binding("segmentOffset","thickness",(function(e){return new R.Point(-15,4+1.5*e)}))),e(R.TextBlock,{alignmentFocus:new R.Spot(0,1,-4,0),editable:!0},new R.Binding("text").makeTwoWay(),new R.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(R.Adornment,e(R.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:N(2)},new R.Binding("pathPattern","thickness",N)),y({alignmentFocus:new R.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",S(),B(),e("ContextMenuButton",e(R.Panel,"Horizontal",P(0),P(1),P(2))),e("ContextMenuButton",e(R.Panel,"Horizontal",e(R.Panel,"Spot",E(!1),L(R.Spot.Top,!1),L(R.Spot.Left,!1),L(R.Spot.Right,!1),L(R.Spot.Bottom,!1)),e(R.Panel,"Spot",{margin:new R.Margin(0,0,0,2)},E(!0),L(R.Spot.Top,!0),L(R.Spot.Left,!0),L(R.Spot.Right,!0),L(R.Spot.Bottom,!0))))),new R.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(R.Link,{locationSpot:R.Spot.Center,selectionAdornmentTemplate:e(R.Adornment,"Link",{locationSpot:R.Spot.Center},e(R.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(R.Shape,{toArrow:"Standard",stroke:null}))},{routing:R.Link.AvoidsNodes,curve:R.Link.JumpOver,corner:5,toShortLength:4},new R.Binding("points"),e(R.Shape,{isPanelMain:!0,strokeWidth:2}),e(R.Shape,{toArrow:"Standard",stroke:null})),model:new R.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(O()(R.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(R.Node,"Auto",{locationSpot:R.Spot.Center},new R.Binding("location","location",R.Point.parse).makeTwoWay(R.Point.stringify),e(R.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 R.Binding("stroke").makeTwoWay(),new R.Binding("fill").makeTwoWay(),new R.Binding("figure")),e(R.TextBlock,{margin:new R.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new R.Size(16,16),maxSize:new R.Size(10,NaN),textAlign:"center",editable:!0},new R.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(R.Panel,"Grid",e(R.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(R.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:o})]})]}),(0,m.jsx)("div",{className:"tr",children:(0,m.jsx)(S.ZP,{size:"large",onClick:h,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,m.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,m.jsx)("span",{style:X,children:"单元格数:"}),(0,m.jsx)("span",{style:X,children:"行数"}),(0,m.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,m.jsx)(Y.Z,{})}),(0,m.jsx)("span",{style:X,children:"列数"}),(0,m.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,m.jsx)(Y.Z,{})})]}),(0,m.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,m.jsx)("span",{style:X,children:"对齐方式:"}),(0,m.jsx)(_.Z.Item,{name:"align",children:(0,m.jsxs)(J,{children:[(0,m.jsx)(K.ZP,{value:"default",children:(0,m.jsx)("i",{className:"fa fa-align-justify"})}),(0,m.jsx)(K.ZP,{value:"left",children:(0,m.jsx)("i",{className:"fa fa-align-left"})}),(0,m.jsx)(K.ZP,{value:"center",children:(0,m.jsx)("i",{className:"fa fa-align-center"})}),(0,m.jsx)(K.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)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,o=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),f=d[0],p=d[1],h=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(h.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){h.current.appName=f?"3D":"graphing",s.current.inject("applet_container")}),[f]),(0,c.useEffect)((function(){p(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,m.jsxs)(N.Z,{align:"middle",children:[(0,m.jsx)(H.Z,{flex:1,children:(0,m.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,m.jsx)(H.Z,{children:(0,m.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),oe=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},me=n(77818);var he="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},we+"-B","bold"),we+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,j=e.mode,N=void 0===j?"markdown":j,P=e.id,L=void 0===P?"markdown-editor-id":P,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,Z=void 0!==G&&G,O=e.showNullButton,R=void 0!==O&&O,I=e.showNullProgramButton,D=void 0!==I&&I,F=e.hidetoolBar,H=void 0!==F&&F,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,fe=void 0!==te&&te,we=e.disabledFill,xe=void 0!==we&&we,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,je=void 0===Se?"":Se,Ce=e.extraUse,Be=(0,c.useState)(null),Te=a()(Be,2),Ne=Te[0],Pe=Te[1],Ee=(0,c.useState)(n),Le=a()(Ee,2),Me=Le[0],Ae=Le[1],Ge=(0,c.useState)(k),Ze=a()(Ge,2),Oe=Ze[0],Re=Ze[1],Ie=(0,c.useState)(V),De=a()(Ie,2),Fe=De[0],ze=De[1],He=(0,c.useState)(""),We=a()(He,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),ot=(0,c.useState)(0),rt=a()(ot,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],ft=(0,c.useRef)(),pt=(0,c.useRef)(),mt=(0,c.useRef)(),ht=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(je),null==Ne||Ne.setValue(je),window.scrollTo(0,e)}),[je]),(0,c.useEffect)((function(){null==Y||Y(Fe)}),[Fe]),(0,c.useEffect)((function(){if(ft.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==N)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,T.I)(s,(function(e){var n,i,o;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(ft.current,{mode:N,lineNumbers:!w,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),o=n.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===he.indexOf(r))return null;if(console.log("change1:",t,e,o,i,s,a,l,r),s>=0&&i.ch-s<5){var u=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),fe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Pe(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){pt.current}),[Qe,pt,Fe]);(0,c.useEffect)((function(){if(Ne){var e=function(){var e=new f.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Ne.setSize("100%","100%"),Ne.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(ft.current.parentElement),e}();return function(){var t,n;null!==(t=ft.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=ft.current)||void 0===n?void 0:n.parentElement)}}}),[Ne,gt]),(0,c.useEffect)((function(){if(Ne){for(var e=[],t=function(){var t=a()(i[n],2),o=t[0],r=t[1],l=s()({},o,(function(){vt(r)}));e.push(l),Ne.addKeyMap(l)},n=0,i=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(L);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(L,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Re(k)}),[Ne,k]),(0,c.useEffect)((function(){Ne&&_&&Ne.focus()}),[Ne,_]),(0,c.useEffect)((function(){if(Oe&&Ne){var e=function(e){var t=e.target;if(ht.current){var n=t.scrollTop/t.scrollHeight;ht.current.scrollTop=ht.current.scrollHeight*n}},t=Ne.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Ne,Oe]),(0,c.useEffect)((function(){if(Ne&&K){var e=function(e,t){K(e,t)};return Ne.on("beforeChange",e),function(){Ne.off("beforeChange",e)}}}),[Ne,K]),(0,c.useEffect)((function(){if(Ne&&q){var e=function(){q(Ne.getValue())};return Ne.on("blur",e),function(){Ne.off("blur",e)}}}),[Ne,q]),(0,c.useEffect)((function(){if(Ne){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(D?i(n,_t(n)):i(n))};return Ne.on("change",e),function(){Ne.off("change",e)}}}),[Ne,i]),(0,c.useEffect)((function(){if(Ne)if(null==n)Ne.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Ne.getValue()&&(Ne.setValue(n),Ae(n),Ne.setCursor(fe?1:Ne.lineCount(),0),window.scrollTo(0,e))}}),[Ne,n]);var vt=(0,c.useCallback)((function(e){var t=Ne.getCursor(),n=Ne.getSelection(),i=n.split("\n");switch(e){case"bold":return Ne.replaceSelection("**"+n+"**"),""===n&&Ne.setCursor(t.line,t.ch+2),Ne.focus();case"italic":return Ne.replaceSelection("*"+n+"*"),""===n&&Ne.setCursor(t.line,t.ch+1),Ne.focus();case"code":return Ne.replaceSelection("`"+n+"`"),""===n&&Ne.setCursor(t.line,t.ch+1),Ne.focus();case"inline-latex":return qe("inline-latex"),Ne.focus();case"latex":return Ne.replaceSelection("```latex\n"+n+"\n```"),Ne.setCursor(t.line+1,n.length+1),Ne.focus();case"line-break":return Ne.replaceSelection("
\n"),Ne.focus();case"list-ul":return""===n?Ne.replaceSelection("- "+n):Ne.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ne.focus();case"list-ol":return""===n?Ne.replaceSelection("1. "+n):Ne.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Ne.focus();case"add-null-ch":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("▁"),Ne.focus();case"add-signal":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("@▁@"),Ne.focus();case"add-multiple":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection(he),Ne.focus();case"inster-template-1":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ne.focus();case"eraser":return Ne.setValue(""),Ne.focus();case"trigger-watch":return Re(!Oe),Ne.focus();case"trigger-full-screen":return ze(!Fe),Ne.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Ne,Oe,Fe]),wt=(0,c.useCallback)((function(e,t){var n,i,o,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Ne.replaceSelection("[".concat(l,"](").concat(s,")")),Ne.focus();case ue:var c=e.language,u=e.content;return Ne.replaceSelection(["```"+c,u,"```"].join("\n")),Ne.focus();case"maths-latex":for(var d=atob(e),f=new Uint8Array(d.length),p=0;p-1||null==v||!v.type?g?Ne.replaceSelection("![ ".concat(g," ]( ").concat(h,' "').concat(g,'" )')):Ne.replaceSelection("![,](".concat(h,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Ne.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Ne.replaceSelection('').concat(v.name,"")):ge.includes(w)?Ne.replaceSelection('').concat(v.name,"")):Ne.replaceSelection("[".concat(v.name,"](").concat(oe.Z.API_SERVER).concat(h,")")),Ne.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},i=mt.current,o=!1,r=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Ne,mt]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:ve(l),height:ve(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(D){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>o-20&&i",children:[(0,L.jsx)(w.Z.Item,{children:(0,L.jsx)(m.Link,{to:"/classrooms/".concat(W.course_id,"/common_homework"),children:W.course_name})}),(0,L.jsx)(w.Z.Item,{children:(0,L.jsx)(m.Link,{to:"/classrooms/".concat(W.course_id,"/common_homework"),children:W.category.category_name})}),(0,L.jsxs)(w.Z.Item,{children:[null==W?void 0:W.user_name," 提交作品"]})]})})}),(0,L.jsx)("aside",{className:"font24 bold mt20 mb20",children:W.homework_name}),(0,L.jsxs)("div",{style:{background:"#fff",padding:"20px 30px"},children:[(0,L.jsx)("div",{style:{fontSize:"18px",marginBottom:"10px",fontWeight:600},children:"作业描述"}),(0,L.jsx)(T.Z,{value:(null==V?void 0:V.description)||"暂无~"}),(0,L.jsx)(N.Z,{authority:(0,P.GJ)(),showDimensions:!1,dataSource:null==V?void 0:V.attachments,callback:function(){i({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:r.commonHomeworkId}})}}),(0,L.jsx)(E.Ei,{value:V})]}),(0,L.jsxs)(h.Z,{form:c,className:k,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){G(s()({},c.getFieldsValue())),console.log("formValue:",A)},onFinish:ne,children:[(0,L.jsxs)("div",{className:S,children:[(0,L.jsx)(h.Z.Item,{name:"description",label:"内容:",rules:[{required:!0,message:"请输入作业的简介"},{max:65535,message:"作业简介最大限制65535个字符"}],children:(0,L.jsx)(y.Z,{placeholder:"请在此输入作业内容或作业附件的简要描述,最大限制为65535个字符",watch:!0,defaultValue:A.intro})}),(0,L.jsx)("div",{children:(0,L.jsx)(h.Z.Item,{name:"attachment_ids",children:(0,L.jsx)(B.Z,{maxSize:Q})})})]}),(0,L.jsx)("div",{className:j,children:(0,L.jsx)("div",{className:"pt40 mb30",children:(0,L.jsxs)(h.Z.Item,{children:[(0,L.jsx)(b.ZP,{size:"middle",type:"primary",className:"".concat(C," mr20"),htmlType:"submit",loading:n["newCourse/editCourse"]||n["newCourse/submitCourse"],children:"提交"}),(0,L.jsx)(b.ZP,{size:"middle",type:"primary",ghost:!0,className:C,onClick:function(){return m.history.push("/classrooms/".concat(r.coursesId,"/common_homework/").concat(r.commonHomeworkId,"/detail"))},children:"取消"})]})})})]})]})}))},72764:function(e,t,n){"use strict";n.d(t,{Ei:function(){return w},rU:function(){return b},ZP:function(){return y}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s={wrap:"wrap___W3YuU",title:"title___OzKge",exhibition:"exhibition___ugphm"},c=n(78241),u=n(95237),d=n(43604),f=n(24905),p=n(94001),m=n(6848),h=n(92310),g=n.n(h),v=n(37712),w=function(e){var t=e.value,n=e.className,i=e.style,o=(0,l.useState)("0"),r=a()(o,2),c=r[0],u=r[1];(0,l.useEffect)((function(){if(t){var e=t.submit_limit,n=t.must_file;if(e&&n)return void u("1");if(e&&!n)return void u("2");if(!e&&n)return void u("3")}}),[t]);var d={1:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符,并且必须上传相关附件。"]}),2:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符"]}),3:(0,v.jsx)("span",{children:"必须上传相关附件。"})};return"0"===c?(0,v.jsx)(v.Fragment,{}):(0,v.jsxs)("section",{className:g()(s.exhibition,n),style:i,children:[(0,v.jsx)("span",{className:"c-grey-666 mr10",children:"提交作业要求:"}),null==d?void 0:d[c]]})},b=function(e){var t=e.className,n=e.style,i=e.form,o=c.Z.useWatch("submit_limit",i),r=c.Z.useWatch("can_submit",i);return(0,v.jsx)("section",{className:g()(s.newWrap,t),style:n,children:(0,v.jsxs)("div",{style:{padding:"20px 0",borderBottom:"1px solid #EDEDED"},children:[(0,v.jsx)("h1",{children:"提交设置"}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"can_submit",valuePropName:"checked",children:(0,v.jsx)(f.Z,{children:(0,v.jsx)("span",{className:"font16",children:"限制学生提交作品"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_num",rules:r&&[{required:!0,message:"请填写作品次数"}],children:(0,v.jsx)(p.Z,{precision:0,min:1,disabled:!r})})}),(0,v.jsx)(d.Z,{children:"次"}),(0,v.jsxs)(d.Z,{children:[" ",(0,v.jsx)(m.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999"})})]})]}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit",valuePropName:"checked",children:(0,v.jsx)(f.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生填写内容至少"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit_num",rules:o&&[{required:!0,message:"字数不能为空"}],children:(0,v.jsx)(p.Z,{precision:0,min:1,disabled:!o})})}),(0,v.jsx)(d.Z,{children:"字"})]}),(0,v.jsx)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"must_file",valuePropName:"checked",children:(0,v.jsx)(f.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生提交作业必须上传附件"})})})})})]})})},y=function(e){var t=e.value,n=e.onChange,i=e.className,r=e.style,c=e.disabled,d=void 0!==c&&c,h=(0,l.useState)({}),w=a()(h,2),b=w[0],y=w[1];(0,l.useEffect)((function(){if(console.log(t,"value"),t){var e={submit_limit:null==t?void 0:t.submit_limit,submit_limit_num:null==t?void 0:t.submit_limit_num,must_file:null==t?void 0:t.must_file,can_submit:null==t?void 0:t.can_submit,submit_num:null==t?void 0:t.submit_num};y(o()({},e))}}),[t]);var x=function(e){var t=o()(o()({},b),e);n(t)};return(0,v.jsxs)("section",{className:g()(s.wrap,i),style:r,children:[(0,v.jsx)("div",{className:s.title,children:"提交设置"}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(f.Z,{disabled:d,checked:null==b?void 0:b.can_submit,onChange:function(e){return x({can_submit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"限制学生提交作业"}),(0,v.jsx)(p.Z,{precision:0,min:1,disabled:d||!(null!=b&&b.can_submit),value:null==b?void 0:b.submit_num,onChange:function(e){return x({submit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"次"}),(0,v.jsx)(m.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999 ml5"})})]}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(f.Z,{disabled:d,checked:null==b?void 0:b.submit_limit,onChange:function(e){return x({submit_limit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"学生填写内容至少"}),(0,v.jsx)(p.Z,{precision:0,min:1,disabled:d||!(null!=b&&b.submit_limit),value:null==b?void 0:b.submit_limit_num,onChange:function(e){return x({submit_limit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"字"})]}),(0,v.jsxs)(u.Z,{align:"middle",children:[(0,v.jsx)(f.Z,{disabled:d,checked:null==b?void 0:b.must_file,onChange:function(e){return x({must_file:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10",children:"学生提交作业必须上传附件"})]})]})}},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return p},jP:function(){return f},rO:function(){return c}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return(0,l.v_)("libraries.json",e)}function p(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__CommonHomework__index.05c8854b.async.js b/p__Classrooms__Lists__CommonHomework__index.05c8854b.async.js new file mode 100644 index 0000000000..9fc79342bf --- /dev/null +++ b/p__Classrooms__Lists__CommonHomework__index.05c8854b.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[49890,13488,63527,4977,48486,69932],{680:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(5891),o=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=n(22589),s=function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))};var l=o.forwardRef(s)},60186:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(5891),o=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=n(22589),s=function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))};var l=o.forwardRef(s)},45532:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(5891),o=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},a=n(22589),s=function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))};var l=o.forwardRef(s)},57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,o=!1,r=!1,a=null,s=!1,l=null,c=null,u=0;u4?parseFloat(e):5};function j(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,I(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(l=e,E(e,t))},e.getHTML5CodebaseVersion=function(){return f},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,o="auto",r=n.id,a=!1,l=0;l=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var S=function(e){return e&&"false"!==e},N=function(t,n,i){b(f)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==f||ggbHTML5LoadedCodebaseIsWebSimple&&!x)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,s=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(b(f)<=4.4)S(n.showToolBar)&&(n.height-=7),S(n.showAlgebraInput)&&(n.height-=37),n.width<605&&S(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(S(n.showToolBar)||S(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=S(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},w||v.appendChild(j)):r.appendChild(j),v.appendChild(r),w||t.appendChild(v),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),O("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function _(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},b(f)<5&&(e.className+=" geogebraweb")):k(e,t)}if(o){scriptLoadStarted=!0;for(var C=0;C0?(o.remove(),s.attr("id","fullscreencontent").show(),jQuery(r).append(s),window.dispatchEvent(new Event("resize"))):N(o,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=i,N(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(s=e/4*3),l=s/5.8,a.setAttribute("src",w),a.setAttribute("width",s),a.setAttribute("height",l);var u=(e-s)/2,d=(t-l)/2;a.style.left=u+"px",a.style.top=d+"px",o.appendChild(a)}return o.appendChild(c),o},D=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},M=["web","webSimple","web3d","tablet","tablet3d","phone"],E=function(e,t){if(f=e,t)I(f,!0);else{var r,a,s=!o;if(s){var l=b(f);!isNaN(l)&&l<4.4&&(s=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=f.indexOf("//");for(var u in a=c>0?f:0===c?r+f:"https://www.geogebra.org/apps/5.2.814.0/",M)if(f.slice(-1*M[u].length)===M[u]||f.slice(-1*(M[u].length+1))===M[u]+"/")return void I(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||S(n.showToolBar)||S(n.showMenuBar)||S(n.showAlgebraInput)||S(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",I(a,!1)}},I=function(e,t){if(e.requirejs)m=e;else{"/"!==e.slice(-1)&&(e+="/"),m=e,null===t&&(t=-1===e.indexOf("http")),p=t,g="web.nocache.js",x=!1;var n=m.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?M.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",x=!0)),n=e.split("/"),"test"===(f=n[n.length-3]).substr(0,4)?f=f.substr(4,1)+"."+f.substr(5,1):"war"!==f.substr(0,3)&&"beta"!==f.substr(0,4)||(f="5.0");var i=parseFloat(f);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),E("5.0",t))}},O=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function H(){var e=t;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),E(e,!1),null!==c&&I(c,p),s=!0}return void 0!==n.material_id?_(H):H(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,s=null!=e.noScaleMargin&&e.noScaleMargin,l=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,i,o,r){var a=null;if(null!=r&&""!=r)for(var s=e.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+r+" ")>-1){a=s;break}s=s.parentNode}var l=0,c=0,u=0,d=0,m=0,p=0,h=0;if(a)l=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=l):(l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var f=e.getBoundingClientRect();f.left>0&&f.left<=l&&(void 0===o||!o)&&("rtl"===document.dir?(m=l-f.width-f.left,p=u<=480?10:30):(p=f.left,m=u<=480?10:30),d=p+m)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(t-i.width)/2,r=(n-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var s=i(r,n);e()&&a.setAttribute("data-param-scale",s);for(var l=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var s in n)a[n[s]]=s;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(e=Cb).indexOf(Db);-1!=s&&(t=parseInt(e.substring(s+P),$),e=e.substring(O,s))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],o=O;o0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(r=10+n*o);var a=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);i>40&&(a=40);var s=this.randomNum(-10,10);e.translate(r,a),e.rotate(s*Math.PI/180),e.fillText(t,0,0),e.rotate(-s*Math.PI/180),e.translate(-r,-a)}},{key:"drawLine",value:function(e){for(var t=0;t<1;t++)e.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),e.beginPath(),e.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.stroke()}},{key:"drawDot",value:function(e){for(var t=0;t<100;t++)e.fillStyle=this.randomColor(0,255),e.beginPath(),e.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),e.fill()}},{key:"randomCode",value:function(){for(var e=this,t="",n=0;n-1})))}}),(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){je(e)}},rowKey:"id",pagination:!1,dataSource:xe,loading:B,columns:[{title:"班级",dataIndex:"name"}]})]}):(0,C.jsxs)(g.Z,{gutter:24,children:[(0,C.jsxs)(x.Z,{span:14,children:[(0,C.jsx)("div",{className:j.homeworkType,children:"作业截止"}),(0,C.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){J(F.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,C.jsx)("div",{className:j.tableWrapper,children:(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){X(e)}},rowKey:"id",pagination:!1,dataSource:Y,loading:B,columns:[{title:"班级",dataIndex:"name",ellipsis:!0},{title:"发布时间",dataIndex:"publish_time"},{title:"截止时间",dataIndex:"end_time"}]})})]}),(0,C.jsxs)(x.Z,{flex:10,style:{maxWidth:"280px"},children:[(0,C.jsx)("div",{className:j.homeworkType,children:"补交截止"}),(0,C.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){ae(te.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,C.jsx)("div",{className:j.tableWrapper,children:(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){ue(e)}},rowKey:"id",pagination:!1,loading:B,dataSource:re,columns:[{title:"班级",dataIndex:"name",ellipsis:!0,width:120},{title:"截止时间",dataIndex:"late_time"}]})})]})]})})]})}))},36709:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",m="fullWidth___c492T",p=n(92310),h=n.n(p),f=n(71418),g=n(2859),x=n(18030),v=n(21082),w=n(37712),y=function(e){var t=e.data,n=e.className,i=e.fullWidth,r=e.style,s=void 0===r?{}:r,p=e.onClose,y=e.onOk,b=e.showFullTools,j=e.noAssociationId,k=(0,c.useRef)(null),_=(0,c.useRef)(null),C=(0,c.useRef)(null),A=(0,c.useRef)(null),S=(0,c.useState)(!1),N=l()(S,2),T=N[0],Z=N[1],B=(0,c.useState)("正在加载中"),L=l()(B,2),P=L[0],D=L[1];(0,c.useEffect)((function(){C.current||(C.current=document.createElement("style"),document.head.appendChild(C.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),C.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&M()):(document.body.removeAttribute("data-custom"),C.current&&(document.head.removeChild(C.current),C.current=null))}),[null==t?void 0:t.visible]);var M=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(!0),D("正在加载中"),e.next=4,(0,v.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,k.current.src="",k.current.src=n,k.current.onload=function(){I()},Z(!1),D("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),E=function(){var e=a()(o()().mark((function e(n){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(!0),D("正在保存中"),e.next=4,(0,x.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(i=e.sent)||!i.id||j){e.next=12;break}return e.next=8,(0,x.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==i?void 0:i.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=i&&i.id&&y(i);case 13:Z(!1),D("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I=function(){_.current=new g.hP(k.current),_.current.targetRoot=A.current,_.current.addEventListener("render",E),_.current.addEventListener("beforeclose",p),b&&(_.current.availableMarkerTypes=_.current.ALL_MARKER_TYPES,_.current.uiStyleSettings.redoButtonVisible=!0,_.current.uiStyleSettings.notesButtonVisible=!0,_.current.uiStyleSettings.zoomButtonVisible=!0,_.current.uiStyleSettings.zoomOutButtonVisible=!0,_.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=_.current.uiStyleSettings,_.current.show(),null!=t&&t.snapshotData&&_.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,w.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,w.jsx)(f.Z,{spinning:T,tip:P,style:{position:"absolute"},children:(0,w.jsx)("div",{ref:A,className:h()(u,n,i?m:""),style:s,children:(0,w.jsx)("img",{className:d,ref:k})})})})}},98382:function(e,t,n){"use strict";n.d(t,{z:function(){return A},Z:function(){return S}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(37205),u=n.n(c),d=n(79800),m=n.n(d),p=n(59301),h=n(59028),f=n(8591),g=n(43418),x=n(3113),v=n(92723),w=n(90341),y=n(37712),b="  ";function j(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var k=n(60186),_=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var C=h.Z.Dragger;function A(e){var t=[];return e&&e.length>0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+b+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var S=function(e){var t=e.value,n=e.onChange,i=e.action,r=e.data,s=e.className,c=e.maxSize,d=void 0===c?150:c,A=e.title,S=void 0===A?"上传附件":A,N=e.showRemoveModal,T=void 0!==N&&N,Z=e.accept,B=void 0===Z?"":Z,L=e.additionalText,P=e.isDragger,D=e.number,M=void 0===D?1e3:D,E=e.aloneClear,I=void 0!==E&&E,O=e.realTimeRemove,H=void 0===O||O,R=e.uploadText,z=e.setFileProgress,G=e.showFileProgress,F=(0,p.useState)(!1),W=m()(F,2),U=W[0],V=W[1],Y=(0,p.useState)(t||[]),J=m()(Y,2),K=J[0],q=J[1],Q=(0,p.useState)(1),X=m()(Q,2),$=X[0],ee=X[1];(0,p.useEffect)((function(){t&&(1===$&&q(u()(t)),ee(2),M===(null==t?void 0:t.length)&&V(!0))}),[t]);var te=function(){setTimeout((function(){K.pop(),q(u()(K))}),500)};G&&z(K.some((function(e){return"uploading"===e.status})));var ne,ie={multiple:!0,disabled:U,accept:B,withCredentials:!0,fileList:K,beforeUpload:function(e,t){var n=e.size/1024/1024;return K.concat(t).length>M?(K.pop(),q(u()(K)),f.ZP.error("最多只能上传".concat(M,"个文件")),I?Promise.reject():(te(),!1)):n=M?V(!0):V(!1),q(u()(K)),K=K.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(b)&&(e.name="".concat(e.name).concat(b).concat(j(e.size))),l()({},e)})),console.log("info:",e,K),n(K)):f.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(ne=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(H){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,w.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!T){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,f.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return ne.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(s||""),children:[P&&(0,y.jsxs)(C,l()(l()({},ie),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),L]})),!P&&(0,y.jsxs)(h.Z,l()(l()({},ie),{},{children:[(0,y.jsxs)(x.ZP,{disabled:U,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),S]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:R||"(单个文件最大".concat(d,"MB)")})]}))]})}},65463:function(e,t,n){"use strict";n(59301);var i=n(6848),o=n(37712);t.Z=function(e){var t=e.value,n=e.visible,r=void 0===n||n,a=e.children;return(0,o.jsx)(o.Fragment,{children:r?(0,o.jsx)(i.Z,{placement:"topLeft",title:{"未发布":"作业尚未发布","未开始":"作业已发布,尚未到达开始作业时间","提交中":"作业进行中,所有考生可提交作业","补交中":"作业进行中,所有学生可补交作业","进行中":"作业进行中,部分班级正在作业提交中/补交中","已截止":"到达作业截止时间,作业已结束","已结束":"课堂已结束"}[t],children:(0,o.jsx)("span",{children:a})}):a})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return x}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),s=n(59301),l=n(57809),c=n(78241),u=n(3113),d=n(89780),m=n.n(d),p=(n(80443),n(90630),n(37712)),h=l.default.Option,f={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function x(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,l=void 0===r?{}:r,c=(0,s.useRef)(),u=(0,s.useState)(),d=a()(u,2),h=d[0],f=d[1];return(0,s.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,s.useEffect)((function(){h&&h.setOption("mode",i)}),[h,i]),(0,s.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,s.useEffect)((function(){if(c.current&&!h){var e=m().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));f(e)}}),[c.current,h]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,s.useState)("python"),r=a()(i,2),d=r[0],m=r[1];return(0,p.jsxs)(c.Z,o()(o()({},f),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(l.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){m(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(x,{mode:d})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return be}});var i=n(91232),o=n.n(i),r=n(79800),a=n.n(r),s=n(85573),l=n.n(s),c=n(59301),u=n(89780),d=n.n(u),m=n(76374),p=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),f=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),x=n.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function w(e){var t=e.onActionCallback,n=e.title,i=e.icon,o=e.actionName,r=e.className,a=void 0===r?"":r,s=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(o)},children:[(0,h.jsx)("i",{className:"".concat(i)}),s]})}var y=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,s=e.hidetoolBar,l=e.extraUse,c=[].concat(v,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(w,x()(x()({},e),{},{onActionCallback:o})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,h.jsx)("li",{children:l}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(w,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},b=n(24808),j=n(78241),k=n(92832),_=n(3113),C={labelCol:{span:4},wrapperCol:{span:20}},A=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(j.Z,x()(x()({},C),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(j.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(j.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(_.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(_.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},S=n(73145),N=n(28486),T=n(95237),Z=n(36709),B=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,h.jsx)(T.Z,{style:{height:"100vh"},children:(0,h.jsx)(Z.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},L=n(7557),P=n.n(L),D=n(41498),M=n.n(D),E=n(37205),I=n.n(E),O=n(12378);function H(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(H,go.CommandHandler),H.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},H.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},H.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},H.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},H.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},H.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},H.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},H.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(s-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var r,a,s;if(null===(r=t.findTreeParentNode()))break;if((s=(a=this._sortTreeChildrenByY(r)).indexOf(t))i.y?1:n.xi.x?1:0})),t},H.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},H.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(H.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(H.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 R=H,z=(n(41034),n(85160)),G=n(43418),F=n(43604),W=n(18030),U="myPaletteDiv___Xjz2I",V="maxH60___Pd4Re";window.go=O;var Y=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),s=(0,c.useRef)(!1),l=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),m=d[0],p=d[1],f=function(){var e=M()(P()().mark((function e(){var t,o;return P()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(m+1)}),[]),(0,h.jsx)("div",{ref:l,className:s.current?"".concat(V," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(G.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!m,destroyOnClose:!0,maskClosable:!1,getContainer:l.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(T.Z,{children:[(0,h.jsx)(F.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(F.Z,{onClick:function(){s.current=!s.current,p(m+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:U,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(z.FI,{initDiagram:function(){var e=O.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",s="#d533ff",l="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",m="#fffcd5",p="#d5ebff",h="#f2dfe0",f="#a5d2fa",g="#cccccc",x="#b3e6b3",v="#fcbbbd";function w(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var o=n.part.adornedPart,r=(new O.Point).setRectSpot(o.actualBounds,t);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var s={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(s);var l=e.diagram.findNodeForData(a);l.location=r,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(O.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(O.Spot.Top)||t.equals(O.Spot.Bottom)?25:18,height:t.equals(O.Spot.Top)||t.equals(O.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(t){return e(O.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function b(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function j(t,n){return n||(n="color"),e(O.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:b(n,t),contextClick:b(n,t)})}function k(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",j(u,"fill"),j(m,"fill"),j(p,"fill"),j(h,"fill"))),e("ContextMenuButton",e(O.Panel,"Horizontal",j(g,"fill"),j(x,"fill"),j(f,"fill"),j(v,"fill")))]}function _(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",j(d),j(a),j(n),j(t))),e("ContextMenuButton",e(O.Panel,"Horizontal",j(u),j(s),j(l),j(c)))]}function C(t,n){return n||(n="thickness"),e(O.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function A(t,n){return n||(n="dash"),e(O.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function S(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",C(1),C(2),C(3),C(4))),e("ContextMenuButton",e(O.Panel,"Horizontal",A(null),A([2,4]),A([4,4])))]}function N(t,n){return n||(n="figure"),e(O.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:b(n,t),contextClick:b(n,t)})}function T(t){return e(O.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function Z(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(O.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b("dir",t),contextClick:b("dir",t)})}function B(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",O.Spot.stringify(O.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(O.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function L(t,n){var i=0,o=O.Spot.RightSide;t.equals(O.Spot.Top)?(i=270,o=O.Spot.TopSide):t.equals(O.Spot.Left)?(i=180,o=O.Spot.LeftSide):t.equals(O.Spot.Bottom)&&(i=90,o=O.Spot.BottomSide),n||(i-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",O.Spot.stringify(o)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(O.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return i.current=new O.Diagram(o.current,{padding:20,grid:e(O.Panel,"Grid",e(O.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(O.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(R),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(O.Node,"Auto",{locationSpot:O.Spot.Center,locationObjectName:"SHAPE",desiredSize:new O.Size(120,60),minSize:new O.Size(40,40),resizable:!0,resizeCellSize:new O.Size(10,10),rotatable:!0},new O.Binding("location","loc",O.Point.parse).makeTwoWay(O.Point.stringify),new O.Binding("desiredSize","size",O.Size.parse).makeTwoWay(O.Size.stringify),e(O.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:O.Spot.AllSides,toSpot:O.Spot.AllSides},new O.Binding("figure"),new O.Binding("fill"),new O.Binding("stroke","borderColor"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(O.TextBlock,{margin:1,textAlign:"center",overflow:O.TextBlock.OverflowEllipsis,editable:!0},new O.Binding("text").makeTwoWay(),new O.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(O.Panel,"Vertical",{maxSize:new O.Size(200,NaN)},e(O.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new O.Binding("text")),e(O.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new O.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(O.Adornment,"Spot",e(O.Placeholder,{padding:10}),w(O.Spot.Top,"TriangleUp"),w(O.Spot.Left,"TriangleLeft"),w(O.Spot.Right,"TriangleRight"),w(O.Spot.Bottom,"TriangleDown"),y({alignment:new O.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(O.Panel,"Horizontal",N("Rectangle"),N("RoundedRectangle"),N("Ellipse"),N("Diamond"))),e("ContextMenuButton",e(O.Panel,"Horizontal",N("Parallelogram2"),N("ManualOperation"),N("Procedure"),N("Cylinder1"))),e("ContextMenuButton",e(O.Panel,"Horizontal",N("Terminator"),N("CreateRequest"),N("Document"),N("TriangleDown"))),k(),_(),S()),i.current.groupTemplate=e(O.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:O.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new O.Binding("location","loc",O.Point.parse).makeTwoWay(O.Point.stringify),e(O.Panel,"Auto",{name:"BODY"},e(O.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:O.Spot.AllSides,toSpot:O.Spot.AllSides},new O.Binding("fill"),new O.Binding("stroke","color"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Placeholder,{background:"transparent",margin:20})),e(O.TextBlock,{alignment:O.Spot.Top,alignmentFocus:O.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new O.Binding("text"),new O.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(O.Adornment,"Spot",e(O.Panel,"Auto",e(O.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(O.Placeholder,{margin:1.5})),y({alignment:O.Spot.TopRight,alignmentFocus:O.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",k(),_(),S()),i.current.linkTemplate=e(O.Link,{layerName:"Foreground",routing:O.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new O.Binding("fromSpot","fromSpot",O.Spot.parse),new O.Binding("toSpot","toSpot",O.Spot.parse),new O.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new O.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new O.Binding("points").makeTwoWay(),e(O.Shape,{strokeWidth:2},new O.Binding("stroke","color"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Shape,{segmentIndex:0,segmentOffset:new O.Point(15,0),segmentOrientation:O.Link.OrientAlong,alignmentFocus:O.Spot.Right,figure:"circle",width:10,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return 1===e}))),e(O.Shape,{segmentIndex:-1,segmentOffset:new O.Point(-10,6),segmentOrientation:O.Link.OrientPlus90,alignmentFocus:O.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return e>=1})),new O.Binding("width","thickness",(function(e){return 7+3*e})),new O.Binding("height","thickness",(function(e){return 7+3*e})),new O.Binding("segmentOffset","thickness",(function(e){return new O.Point(-15,4+1.5*e)}))),e(O.Shape,{segmentIndex:0,segmentOffset:new O.Point(15,-6),segmentOrientation:O.Link.OrientMinus90,alignmentFocus:O.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return 2===e})),new O.Binding("width","thickness",(function(e){return 7+3*e})),new O.Binding("height","thickness",(function(e){return 7+3*e})),new O.Binding("segmentOffset","thickness",(function(e){return new O.Point(-15,4+1.5*e)}))),e(O.TextBlock,{alignmentFocus:new O.Spot(0,1,-4,0),editable:!0},new O.Binding("text").makeTwoWay(),new O.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(O.Adornment,e(O.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:T(2)},new O.Binding("pathPattern","thickness",T)),y({alignmentFocus:new O.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",_(),S(),e("ContextMenuButton",e(O.Panel,"Horizontal",Z(0),Z(1),Z(2))),e("ContextMenuButton",e(O.Panel,"Horizontal",e(O.Panel,"Spot",B(!1),L(O.Spot.Top,!1),L(O.Spot.Left,!1),L(O.Spot.Right,!1),L(O.Spot.Bottom,!1)),e(O.Panel,"Spot",{margin:new O.Margin(0,0,0,2)},B(!0),L(O.Spot.Top,!0),L(O.Spot.Left,!0),L(O.Spot.Right,!0),L(O.Spot.Bottom,!0))))),new O.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(O.Link,{locationSpot:O.Spot.Center,selectionAdornmentTemplate:e(O.Adornment,"Link",{locationSpot:O.Spot.Center},e(O.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(O.Shape,{toArrow:"Standard",stroke:null}))},{routing:O.Link.AvoidsNodes,curve:O.Link.JumpOver,corner:5,toShortLength:4},new O.Binding("points"),e(O.Shape,{isPanelMain:!0,strokeWidth:2}),e(O.Shape,{toArrow:"Standard",stroke:null})),model:new O.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(I()(O.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(O.Node,"Auto",{locationSpot:O.Spot.Center},new O.Binding("location","location",O.Point.parse).makeTwoWay(O.Point.stringify),e(O.Shape,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new O.Binding("stroke").makeTwoWay(),new O.Binding("fill").makeTwoWay(),new O.Binding("figure")),e(O.TextBlock,{margin:new O.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new O.Size(16,16),maxSize:new O.Size(10,NaN),textAlign:"center",editable:!0},new O.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(O.Panel,"Grid",e(O.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(O.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,h.jsx)("div",{ref:o})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(_.ZP,{size:"large",onClick:f,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},J=n(5112),K=n(94001),q=J.ZP.Group,Q={margin:"0 8px"},X=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(j.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"单元格数:"}),(0,h.jsx)("span",{style:Q,children:"行数"}),(0,h.jsx)(j.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(K.Z,{})}),(0,h.jsx)("span",{style:Q,children:"列数"}),(0,h.jsx)(j.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(K.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"对齐方式:"}),(0,h.jsx)(j.Z.Item,{name:"align",children:(0,h.jsxs)(q,{children:[(0,h.jsx)(J.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(J.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(J.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(J.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(_.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(_.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,o=e.height,r=e.callback,s=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),m=d[0],p=d[1],f=(0,c.useRef)({id:s,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){l.current=new(te())(f.current,!0),window.onload=function(){l.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){f.current.appName=m?"3D":"graphing",l.current.inject("applet_container")}),[m]),(0,c.useEffect)((function(){p(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:s}),(0,h.jsxs)(T.Z,{align:"middle",children:[(0,h.jsx)(F.Z,{flex:1,children:(0,h.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:m,onChange:function(e){return p(e)}})}),(0,h.jsx)(F.Z,{children:(0,h.jsx)(_.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),oe=n(92723),re=n(8591),ae="link",se="upload-image",le="add-flowchart",ce="draw-image",ue="code-block",de="add-table",me="------------",pe={default:me,left:":".concat(me),center:":".concat(me,":"),right:"".concat(me,":")},he=n(77818);var fe="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function xe(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ve=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",we=l()(l()({},ve+"-B","bold"),ve+"-I","italic"),ye=l()(l()(l()(l()(l()(l()(l()(l()({},ae,"添加链接"),ue,"添加代码块"),se,"添加图片"),ce,"添加画图"),le,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),be=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,s=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,x=e.miniToolbar,v=void 0!==x&&x,w=e.isFocus,j=void 0!==w&&w,k=e.watch,_=e.insertTemp,C=e.mode,T=void 0===C?"markdown":C,Z=e.id,L=void 0===Z?"markdown-editor-id":Z,P=e.showResizeBar,D=void 0!==P&&P,M=e.noStorage,E=void 0!==M&&M,I=e.showNullButton,O=void 0!==I&&I,H=e.showNullProgramButton,R=void 0!==H&&H,z=e.hidetoolBar,F=void 0!==z&&z,W=e.fullScreen,U=void 0!==W&&W,V=e.onBlur,J=e.onCMBeforeChange,K=e.onFullScreen,q=e.className,Q=void 0===q?"":q,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,me=void 0!==te&&te,ve=e.disabledFill,be=void 0!==ve&&ve,je=e.placeholder,ke=void 0===je?"":je,_e=e.values,Ce=void 0===_e?"":_e,Ae=e.extraUse,Se=(0,c.useState)(null),Ne=a()(Se,2),Te=Ne[0],Ze=Ne[1],Be=(0,c.useState)(n),Le=a()(Be,2),Pe=Le[0],De=Le[1],Me=(0,c.useState)(k),Ee=a()(Me,2),Ie=Ee[0],Oe=Ee[1],He=(0,c.useState)(U),Re=a()(He,2),ze=Re[0],Ge=Re[1],Fe=(0,c.useState)(""),We=a()(Fe,2),Ue=We[0],Ve=We[1],Ye=(0,c.useState)(0),Je=a()(Ye,2),Ke=Je[0],qe=Je[1],Qe=(0,c.useState)(g),Xe=a()(Qe,2),$e=Xe[0],et=Xe[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),ot=(0,c.useState)(0),rt=a()(ot,2),at=rt[0],st=rt[1],lt=(0,c.useState)(0),ct=a()(lt,2),ut=ct[0],dt=ct[1],mt=(0,c.useRef)(),pt=(0,c.useRef)(),ht=(0,c.useRef)(),ft=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;De(Ce),null==Te||Te.setValue(Ce),window.scrollTo(0,e)}),[Ce]),(0,c.useEffect)((function(){null==K||K(ze)}),[ze]),(0,c.useEffect)((function(){if(mt.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==T)return;try{var a,s=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(s=r[0]);var l=s.getAsFile(),c=l.name.split(".").pop();(0,N.I)(l,(function(e){var n,i,o;e.id?(null==l||null===(n=l.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==l||null===(o=l.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('').concat(l.name,"")):ge.includes(c)?t.replaceSelection('').concat(l.name,"")):t.replaceSelection("[".concat(l.name,"](").concat(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(mt.current,{mode:T,lineNumbers:!v,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),o=n.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),s=o.lastIndexOf("@▁▁@",i.ch),l=a>s?a:s,c=a>s?3:4;if(-1===fe.indexOf(r))return null;if(console.log("change1:",t,e,o,i,l,a,s,r),l>=0&&i.ch-l<5){var u=l+c;return n.replaceRange("",{line:i.line,ch:l},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),j&&t.focus(),t.on("paste",e),me&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ze(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){pt.current}),[$e,pt,ze]);(0,c.useEffect)((function(){if(Te){var e=function(){var e=new m.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Te.setSize("100%","100%"),Te.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(mt.current.parentElement),e}();return function(){var t,n;null!==(t=mt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=mt.current)||void 0===n?void 0:n.parentElement)}}}),[Te,gt]),(0,c.useEffect)((function(){if(Te){for(var e=[],t=function(){var t=a()(i[n],2),o=t[0],r=t[1],s=l()({},o,(function(){xt(r)}));e.push(s),Te.addKeyMap(s)},n=0,i=Object.entries(we);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(L);e>=Ke+1e4&&(!t||t!==Pe)&&(window.sessionStorage.setItem(L,Pe),it(!0))}}),1e4),(0,c.useEffect)((function(){Oe(k)}),[Te,k]),(0,c.useEffect)((function(){Te&&j&&Te.focus()}),[Te,j]),(0,c.useEffect)((function(){if(Ie&&Te){var e=function(e){var t=e.target;if(ft.current){var n=t.scrollTop/t.scrollHeight;ft.current.scrollTop=ft.current.scrollHeight*n}},t=Te.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Te,Ie]),(0,c.useEffect)((function(){if(Te&&J){var e=function(e,t){J(e,t)};return Te.on("beforeChange",e),function(){Te.off("beforeChange",e)}}}),[Te,J]),(0,c.useEffect)((function(){if(Te&&V){var e=function(){V(Te.getValue())};return Te.on("blur",e),function(){Te.off("blur",e)}}}),[Te,V]),(0,c.useEffect)((function(){if(Te){var e=function(e,t){var n=e.getValue();De(n),qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(R?i(n,jt(n)):i(n))};return Te.on("change",e),function(){Te.off("change",e)}}}),[Te,i]),(0,c.useEffect)((function(){if(Te)if(null==n)Te.setValue(""),De("");else{var e=window.scrollY||window.pageYOffset;n!==Te.getValue()&&(Te.setValue(n),De(n),Te.setCursor(me?1:Te.lineCount(),0),window.scrollTo(0,e))}}),[Te,n]);var xt=(0,c.useCallback)((function(e){var t=Te.getCursor(),n=Te.getSelection(),i=n.split("\n");switch(e){case"bold":return Te.replaceSelection("**"+n+"**"),""===n&&Te.setCursor(t.line,t.ch+2),Te.focus();case"italic":return Te.replaceSelection("*"+n+"*"),""===n&&Te.setCursor(t.line,t.ch+1),Te.focus();case"code":return Te.replaceSelection("`"+n+"`"),""===n&&Te.setCursor(t.line,t.ch+1),Te.focus();case"inline-latex":return Ve("inline-latex"),Te.focus();case"latex":return Te.replaceSelection("```latex\n"+n+"\n```"),Te.setCursor(t.line+1,n.length+1),Te.focus();case"line-break":return Te.replaceSelection("
\n"),Te.focus();case"list-ul":return""===n?Te.replaceSelection("- "+n):Te.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Te.focus();case"list-ol":return""===n?Te.replaceSelection("1. "+n):Te.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Te.focus();case"add-null-ch":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection("▁"),Te.focus();case"add-signal":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection("@▁@"),Te.focus();case"add-multiple":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection(fe),Te.focus();case"inster-template-1":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Te.focus();case"eraser":return Te.setValue(""),Te.focus();case"trigger-watch":return Oe(!Ie),Te.focus();case"trigger-full-screen":return Ge(!ze),Te.focus();case ae:return void Ve(ae);case ue:return void Ve(ue);case se:return void Ve(se);case ce:return void Ve(ce);case"maths-latex":return void Ve("maths-latex");case le:return void Ve(le);case de:return void Ve(de);default:throw new Error}}),[Te,Ie,ze]),vt=(0,c.useCallback)((function(e,t){var n,i,o,r,a;switch(Ve(""),Ue){case ae:var s=e.title,l=e.link;return Te.replaceSelection("[".concat(s,"](").concat(l,")")),Te.focus();case ue:var c=e.language,u=e.content;return Te.replaceSelection(["```"+c,u,"```"].join("\n")),Te.focus();case"maths-latex":for(var d=atob(e),m=new Uint8Array(d.length),p=0;p-1||null==x||!x.type?g?Te.replaceSelection("![ ".concat(g," ]( ").concat(f,' "').concat(g,'" )')):Te.replaceSelection("![,](".concat(f,")")):(null==x||null===(r=x.type)||void 0===r?void 0:r.indexOf("video"))>-1?Te.replaceSelection('')):(null==x||null===(a=x.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Te.replaceSelection('').concat(x.name,"")):ge.includes(v)?Te.replaceSelection('').concat(x.name,"")):Te.replaceSelection("[".concat(x.name,"](").concat(oe.Z.API_SERVER).concat(f,")")),Te.focus();case de:for(var w=e.row,y=e.col,b=e.align,j="\n",k=0;k300&&(t=300),et(g+t+"px")}},i=ht.current,o=!1,r=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Te,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var bt={width:xe(s),height:xe($e)},jt=((0,c.useMemo)((function(){if(Ke){var e=new Date(Ke),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ke]),function(e){var t=[];if(R){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ue]&&Ue!==ce&&Ue!==le&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;st(t),dt(n)}),0)}),[Ue]);var kt=function(e,t,n,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>o-20&&i0&&(0,s.jsx)("div",{className:a,children:n.map((function(e,t){return(0,s.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,s.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7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iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},t)}))}),m]}),i&&(0,s.jsx)("img",{style:{marginTop:33,marginRight:38},src:i,width:c})]})})},c=n(79800),u=n.n(c),d="row___aXJjm",m="title___HUKL0",p="tagsWrap___XB2W3",h="action___VdHb1",f="bar___t1kKC",g="tag___V7Eft",x="name___Hk1Ip",v="num___xQpcH",w="active___XryTX",y="tagsBorderWrap___OMxjs",b=n(92310),j=n.n(b),k=n(89392),_=function(e){var t=e.dataSource,n=void 0===t?[]:t,o=e.value,r=e.onChange,a=e.onTitleChange,l=e.className,c=e.title,b=e.titleWidth,_=void 0===b?41:b,C=e.style,A=void 0===C?{}:C,S=e.fontColor,N=void 0===S?"#6A7283":S,T=e.showCount,Z=(0,i.useState)(0),B=u()(Z,2),L=B[0],P=B[1],D=(0,i.useState)(!1),M=u()(D,2),E=M[0],I=M[1],O=(0,i.useRef)(null),H=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;0!==n.length&&((null==O||null===(e=O.current)||void 0===e?void 0:e.clientHeight)>97?P(1):P(0));0===n.length&&P(0),I(!1)}),[n]),(0,s.jsxs)("div",{className:j()(d,l),style:A,children:[(0,s.jsx)("div",{onClick:(0,k.throttle)((function(){return null==a?void 0:a()}),2e3),style:{width:_,marginTop:E?12:4},className:"".concat(m," ").concat(a?"current":""),children:c}),(0,s.jsxs)("div",{className:E?"".concat(p," ").concat(y):p,children:[(0,s.jsx)("div",{className:f,ref:H,style:L>0?{height:1===L?97:"auto",overflow:1===L?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,s.jsx)("div",{className:g,ref:O,children:null==n?void 0:n.map((function(e){return(0,s.jsxs)("span",{onClick:function(){return r(e.id)},style:{color:N},className:o===e.id?w:"",children:[(0,s.jsx)("span",{title:e.name,className:x,children:e.name}),!!T&&(0,s.jsx)("span",{className:v,children:e.count})]},e.id)}))})}),!!L&&(0,s.jsx)(i.Fragment,{children:1===L?(0,s.jsxs)("div",{onClick:function(){var e;P(2),(null==O||null===(e=O.current)||void 0===e?void 0:e.clientHeight)>245?I(!0):I(!1)},className:h,children:["展开",(0,s.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,s.jsxs)("div",{onClick:function(){H.current.scrollTop=0,P(1),I(!1)},className:h,children:["收起",(0,s.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},C="tabs___GTqPV",A="active___F26E8",S=function(e){var t=e.dataSource,n=void 0===t?[]:t,i=e.value,o=e.onChange,r=e.className,a=e.style,l=void 0===a?{}:a;return(0,s.jsx)("div",{style:l,className:j()(C,r),children:n.map((function(e){return(0,s.jsx)("span",{onClick:function(){return o(e.id)},className:i===e.id?A:"",children:e.name},e.id)}))})},N="input___PW2zI",T="dropdown___vSy8B",Z="menu___NiyBu",B="text___Grueu",L="b1___ZKryM",P="b2___aKyGa",D=n(92832),M=function(e){var t,n=e.dataSource,o=void 0===n?[]:n,r=e.value,a=void 0===r?"":r,l=e.onChange,c=e.onInputChange,d=void 0===c?function(){}:c,m=e.className,p=e.style,h=void 0===p?{}:p,f=e.placeholder,g=(e.allowClear,(0,i.useState)("")),x=u()(g,2),v=x[0],w=x[1],y=(0,i.useState)(""),b=u()(y,2),k=b[0],_=b[1];(0,i.useEffect)((function(){var e,t=a;null!==(e=JSON.stringify(a))&&void 0!==e&&e.includes("{")&&(w(a.id),t=a.value||"");try{_(decodeURIComponent(t||""))}catch(e){_(decodeURIComponent(t||""))}}),[a]);var C=function(){l(encodeURIComponent(k),v||null)};return(0,s.jsxs)("div",{className:j()(N,m),style:h,children:[!!o.length&&(0,s.jsxs)("div",{className:T,children:[(0,s.jsxs)("div",{className:B,children:[null===(t=o.find((function(e){return e.id===v})))||void 0===t?void 0:t.name,(0,s.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,s.jsx)("b",{className:L}),(0,s.jsx)("b",{className:P})]}),(0,s.jsx)("div",{className:Z,children:o.map((function(e,t){return(0,s.jsx)("div",{onClick:function(){var t;(t=e.id)!==v&&(w(t),l(encodeURIComponent(k),t))},children:e.name},t)}))})]}),(0,s.jsx)(D.Z,{onPressEnter:C,value:k,onChange:function(e){_(e.target.value),d(encodeURIComponent(e.target.value),v||null)},bordered:!1,placeholder:f}),(0,s.jsx)("i",{onClick:C,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},E="quickPager___GM30J",I="disabled___Ozc8I",O=function(e){var t=e.value,n=e.onChange,i=e.className,o=e.total,r=e.pageSize,a=e.style,l=void 0===a?{}:a,c=t<2,u=t>=Math.ceil(o/r);return o<=r?(0,s.jsx)(s.Fragment,{}):(0,s.jsxs)("div",{className:j()(E,i),style:l,children:[(0,s.jsx)("div",{onClick:function(){c||n(t-1,"prev")},className:c?I:"",children:"上一页"}),(0,s.jsx)("div",{onClick:function(){u||n(t+1,"next")},className:u?I:"",children:"下一页"})]})},H="list___oOsiS",R="wrap___G6T7F",z="lockWrap___Rl79E",G="li___oZZ7l",F="cover___b2bYW",W="img___IQX7w",U="sign___HkT6C",V="name___SsJx8",Y="e___TMqq0",J="tags___bcjyo",K="rate___YACg7",q=n(71418),Q=n(6848),X=n(31395),$=n(92723),ee=n(21082),te=n(96908),ne=n(57177),ie=n(81378),oe=n(54313),re=function(e){var t=e.className,n=e.dataSource,i=void 0===n?[]:n,o=e.col,r=void 0===o?4:o,a=e.right,l=e.bottom,c=void 0===l?23:l,u=e.precision,d=void 0===u?0:u,m=e.wrapWidth,p=void 0===m?1200:m,h=e.trackEventItems,f=e.loading,g=Math.floor((p-(r-1)*a)/r);return(0,s.jsx)(q.Z,{spinning:f,children:(0,s.jsxs)("div",{className:j()(H,t),children:[!!i.length&&i.map((function(e,t){var n=e.name,i=e.id,o=e.identifier,l=e.power,u=(e.cover_image_id,e.pic);return(0,s.jsxs)("div",{className:R,style:{width:g,marginRight:(1+t)%r==0?0:a+d,marginBottom:c},children:[(0,s.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(o,"/challenges"),className:G,onClick:function(e){e.preventDefault(),h&&(0,ee.L9)([h]),l&&(0,ee.xg)("/shixuns/".concat(o,"/challenges"))},children:[(0,s.jsxs)("div",{className:W,children:[(0,s.jsx)("img",{className:F,src:"".concat(u)}),e.is_jupyter&&(0,s.jsx)("img",{className:U,src:te}),e.is_jupyter_lab&&(0,s.jsx)("img",{className:U,src:ne}),e.is_unity_3d&&(0,s.jsx)("img",{className:U,src:ie})]}),(0,s.jsx)("div",{className:V,children:(0,s.jsx)(Q.Z,{title:n||"实践项目名称-未填写",children:(0,s.jsx)("span",{className:Y,children:n||"实践项目名称-未填写"})})}),(0,s.jsxs)("div",{className:J,children:[(0,s.jsx)(Q.Z,{placement:"bottom",title:"关卡数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,s.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,s.jsx)(Q.Z,{placement:"bottom",title:"学习人数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,s.jsx)("span",{children:e.myshixuns_count})]})}),(0,s.jsx)(Q.Z,{placement:"bottom",title:"难度等级",children:(0,s.jsx)("span",{children:(0,s.jsx)("span",{children:e.level})})}),(0,s.jsxs)("div",{className:K,children:[(0,s.jsx)(X.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,s.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!l&&(0,s.jsxs)("div",{className:z,children:[(0,s.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,s.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},i)})),!i.length&&(0,s.jsx)(oe.Z,{})]})})},ae="list___jb2Ay",se="wrap___VsQDr",le="li___IxCLC",ce="cover___Mu8wr",ue="img___IpFLA",de="movebq___mF7wt",me="bq___Bil0T",pe="sign___DXJ4d",he="name___l7FoJ",fe="e___pXQUG",ge="unit___wCIFR",xe="tags___w_Mil",ve=n(93697),we=function(e){var t=e.className,n=e.dataSource,i=void 0===n?[]:n,o=e.col,r=void 0===o?4:o,a=e.right,l=e.bottom,c=void 0===l?23:l,u=e.precision,d=void 0===u?0:u,m=e.wrapWidth,p=void 0===m?1200:m,h=e.trackEventItems,f=e.loading,g=e.onRemove,x=void 0===g?function(){}:g,v=e.isCurrent,w=void 0===v||v,y=e.showAlias,b=void 0!==y&&y,k=Math.floor((p-(r-1)*a)/r),_=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,s.jsx)(q.Z,{spinning:f,children:(0,s.jsxs)("div",{className:j()(ae,t),children:[!(null==i||!i.length)&&(null==i?void 0:i.map((function(e,t){var n,i=e.name,o=e.id,l=e.identifier,u=(e.featured,e.school_name),m=e.image_url;e.excellent,e.is_plan;return(0,s.jsx)("div",{className:se,style:{width:k,marginRight:(1+t)%r==0?0:a+d,marginBottom:c},children:(0,s.jsxs)("a",{className:le,onClick:function(e){e.preventDefault(),e.stopPropagation(),h&&(0,ee.L9)([h]),(0,ee.xg)("/paths/".concat(l))},children:[(0,s.jsxs)("div",{className:ue,children:[(0,s.jsx)("img",{className:ce,src:"".concat(m)}),w&&(0,ve.bg)()&&(null==e?void 0:e.studying)&&(0,s.jsxs)("div",{className:"".concat(de," user-path-items"),onClick:function(t){t.stopPropagation(),x(e)},children:[(0,s.jsx)("i",{className:"iconfont icon-yichu1 mr5 c-red"}),(0,s.jsx)("span",{className:"c-red",children:"移除"})]}),null==e||null===(n=e.subject_tags)||void 0===n?void 0:n.map((function(e,t){var n;if(0===t){var i,o=null===(i=_.find((function(t){return t.name==e})))||void 0===i?void 0:i.swimg;return(0,s.jsx)("img",{className:pe,src:o,style:{left:"-4px"}})}var r=null===(n=_.find((function(t){return t.name==e})))||void 0===n?void 0:n.ptimg;return(0,s.jsx)("img",{className:pe,src:r,style:{left:"".concat(48+52*(t-1)+2*t,"px")}})})),(0,s.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,s.jsx)("div",{className:me,children:"开放课程"})})]}),(0,s.jsx)("div",{className:he,children:(0,s.jsx)(Q.Z,{title:b&&null!=e&&e.excellent_alias_name?(0,s.jsxs)("span",{children:["课程原名:".concat(i),(0,s.jsx)("br",{}),(0,s.jsx)("span",{children:"课程别名:".concat(null==e?void 0:e.excellent_alias_name)})]}):i,children:(0,s.jsx)("span",{className:fe,children:b&&(null==e?void 0:e.excellent_alias_name)||i})})}),(0,s.jsx)(Q.Z,{title:"发布单位:".concat(u),children:(0,s.jsxs)("div",{className:ge,children:[(0,s.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),u]})}),(0,s.jsx)("div",{className:xe,children:(0,s.jsxs)("div",{children:[(0,s.jsx)(Q.Z,{placement:"bottom",title:"章节数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,s.jsx)("span",{children:e.stages_count})]})}),(0,s.jsx)(Q.Z,{placement:"bottom",title:"学习人数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,s.jsx)("span",{children:e.members_count})]})})]})})]})},o)}))),!i.length&&(0,s.jsx)(oe.Z,{})]})})},ye={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},be=function(e){var t=e.className,n=e.dataSource,i=void 0===n?[]:n,o=e.col,r=void 0===o?4:o,a=e.right,l=e.bottom,c=void 0===l?23:l,u=e.precision,d=void 0===u?0:u,m=e.wrapWidth,p=void 0===m?1200:m,h=e.trackEventItems,f=e.loading,g=Math.floor((p-(r-1)*a)/r);return(0,s.jsx)(q.Z,{spinning:f,children:(0,s.jsxs)("div",{className:j()(ye.list,t),children:[!!i.length&&i.map((function(e,t){var n=e.subject_identifier,i=e.id,o=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,s.jsxs)("div",{className:ye.wrap,style:{width:g,marginRight:(1+t)%r==0?0:a+d,marginBottom:c},children:[(0,s.jsxs)("a",{className:ye.li,onClick:function(t){t.preventDefault(),(0,ee.Wn)(null==e?void 0:e.forbid_visit_info)||(h&&(0,ee.L9)([h]),(0,ee.xg)(e.first_category_url))},children:[(0,s.jsxs)("div",{className:ye.top,children:[(0,s.jsx)(Q.Z,{title:e.name,children:(0,s.jsx)("div",{className:ye.name,children:e.name})}),(0,s.jsx)("img",{className:ye.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,s.jsx)("div",{className:ye.text,title:e.creator,children:e.creator}),n&&(0,s.jsxs)("div",{className:ye.btns,children:[(0,s.jsx)("div",{children:"开放课程"}),(0,s.jsx)("aside",{children:"开放课堂"})]}),o&&(0,s.jsx)("div",{className:ye.sign,children:"公开"})]}),(0,s.jsxs)("div",{className:ye.bottom,children:[e.visits>0&&(0,s.jsx)(Q.Z,{title:"访问量",placement:"bottom",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,s.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,s.jsx)(Q.Z,{title:"成员",placement:"bottom",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,s.jsx)(Q.Z,{title:"作业",placement:"bottom",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,s.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,s.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,s.jsxs)("div",{className:ye.lockWrap,children:[(0,s.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,s.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},i)})),!i.length&&(0,s.jsx)(oe.Z,{})]})})},je={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},ke=n(5296),_e=function(e){var t=e.dataSource,n=void 0===t?[]:t,i=e.value,o=e.onChange,r=e.className,a=e.style,l=void 0===a?{}:a,c=e.tabBarExtraContent;return(0,s.jsxs)("div",{className:j()(je.tabs,r),style:l,children:[(0,s.jsx)("div",{className:je.tabsWrap,children:n.map((function(e,t){return(0,s.jsxs)("aside",{className:je.tab,onClick:function(){o(e.id),e.link&&ke.history.push(e.link)},children:[(0,s.jsx)("div",{className:i===e.id?je.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,s.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,s.jsx)(Q.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,s.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,s.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,s.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},t)}))}),(0,s.jsx)("div",{className:je.tabBar,children:c})]})},Ce=function(e){var t=e.className,n=e.style,i=void 0===n?{}:n,o=e.children;return(0,s.jsx)("div",{className:j()(t),style:i,children:o})},Ae="orderWrap___ZfyGX",Se="orderIconWrap___XTB_O",Ne="orderAsc___KWHmA",Te="orderDesc___rHdbB",Ze="active___a7eSP",Be="cursorPointer___gs9kL",Le="orderTextWrap___teAKn",Pe=n(38854),De=n(20834),Me=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Ee=function(e){var t,n=e.sortValue,i=e.dropValue,o=e.className,r=e.onSort,a=e.onDrop,l=e.dataSource,c=void 0===l?Me:l;return(0,s.jsxs)("div",{className:j()(Ae,o),children:[(0,s.jsx)(Pe.Z,{dropdownRender:function(){return(0,s.jsx)(De.Z,{children:c.map((function(e,t){return(0,s.jsx)(De.Z.Item,{onClick:function(){return a(e.id)},children:e.name},t)}))})},children:(0,s.jsx)("span",{className:Le,children:null===(t=c.find((function(e){return i===e.id})))||void 0===t?void 0:t.name})}),(0,s.jsxs)("span",{className:Se,children:[(0,s.jsx)("span",{className:Ne,children:(0,s.jsx)("i",{className:"asc"===n?"iconfont icon-sanjiaoxing-up font12 ".concat(Be," ").concat(Ze):"iconfont icon-sanjiaoxing-up font12 ".concat(Be),onClick:function(){return r("asc"===n?"desc":"asc")}})}),(0,s.jsx)("span",{className:Te,children:(0,s.jsx)("i",{className:"desc"===n?"iconfont icon-sanjiaoxing-down font12 ".concat(Be," ").concat(Ze):"iconfont icon-sanjiaoxing-down font12 ".concat(Be),onClick:function(){return r("asc"===n?"desc":"asc")}})})]})]})},Ie=n(82242),Oe=n.n(Ie),He=n(7557),Re=n.n(He),ze=n(41498),Ge=n.n(ze),Fe=n(39647),We=n.n(Fe),Ue={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ve=n(3113),Ye=["className","style","children","loading","openLoading","onClick","size","shape"],Je=function(e){var t=e.className,n=e.style,o=e.children,r=e.loading,a=void 0!==r&&r,l=e.openLoading,c=e.onClick,d=void 0===c?function(){}:c,m=e.size,p=void 0===m?"middle":m,h=e.shape,f=void 0===h?"round":h,g=We()(e,Ye),x=(0,i.useState)(!1),v=u()(x,2),w=v[0],y=v[1];return(0,s.jsx)(Ve.ZP,Oe()(Oe()({onClick:(0,k.throttle)(function(){var e=Ge()(Re()().mark((function e(t){return Re()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l&&y(!0),e.prev=1,e.next=4,d(t);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:l&&y(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:j()(Ue.btn,Ue["".concat(p,"-").concat(f)],t),style:n,size:p,shape:f,loading:w||a},g),{},{children:o}))},Ke="head___ghH72",qe="node___mjPEy",Qe=function(e){var t=e.className,n=e.style,i=e.children,o=void 0===i?null:i,r=e.onClick,a=e.title;return(0,s.jsxs)("div",{className:j()(Ke,t),style:n,children:[(0,s.jsxs)("span",{className:"primary-hover",onClick:r,children:[(0,s.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,s.jsx)("b",{title:a,children:a}),(0,s.jsx)("div",{className:qe,children:o})]})},Xe="btns___sNgTb",$e="confirm___Ozirl",et="cancel___aiq1I",tt=function(e){var t=e.confirmShow,n=void 0===t||t,i=e.confirmTitle,o=e.confirmClick,r=e.cancelShow,a=void 0===r||r,l=e.cancelTitle,c=e.cancelClick,u=e.className,d=e.style,m=e.confirmLoading,p=void 0!==m&&m;return(0,s.jsxs)("div",{className:j()(Xe,u),style:d,children:[n&&(0,s.jsx)(Ve.ZP,{loading:p,onClick:o,type:"primary",className:$e,children:i}),a&&(0,s.jsx)(Ve.ZP,{onClick:c,className:et,children:l})]})},nt={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},it=function(e){var t=e.className,n=e.style,i=void 0===n?{}:n,o=e.LeftContent,r=e.children,a=e.RightContent;return(0,s.jsx)("div",{className:j()(nt.fixedBottom,t),style:i,children:(0,s.jsxs)("div",{className:nt.wrap,children:[(0,s.jsx)("div",{className:nt.left,children:o}),(0,s.jsx)("div",{className:nt.center,children:r}),(0,s.jsx)("div",{className:nt.right,children:a})]})})},ot="crumbs___V41Oe",rt="hover___bEIVd",at=function(e){var t=e.className,n=e.style,o=void 0===n?{}:n,r=e.dataSource,a=void 0===r?[]:r;return(0,s.jsx)("div",{className:j()(ot,t),style:o,children:a.map((function(e,t){return t"," "]})]},t):(0,s.jsx)("span",{style:{color:"#5F6368"},children:e.name},t)}))})},st=n(31797),lt=["onChange"],ct=st.Z.Countdown,ut=function(e){var t=e.onChange,n=We()(e,lt),o=(0,i.useState)(null),r=u()(o,2),a=r[0],l=r[1];(0,i.useEffect)((function(){"number"==typeof a&&a>=0&&t(a)}),[a]);return(0,s.jsx)(ct,Oe()(Oe()({},n),{},{onChange:function(e){var t=Math.floor(e/1e3);l(t)}}))}},77818:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(59301);function o(e,t){var n=(0,i.useRef)();(0,i.useEffect)((function(){n.current=e})),(0,i.useEffect)((function(){if(null!==t){var e=setInterval((function(){n.current()}),t);return function(){return clearInterval(e)}}}),[t])}},80026:function(e,t,n){"use strict";var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(78241),m=n(43418),p=n(8591),h=n(92832),f=n(31917),g=n(5296),x=n(98382),v=n(37712);t.Z=(0,g.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading,shixunHomeworks:e.shixunHomeworks}}))((function(e){var t=e.classroomList,n=(e.loading,e.dispatch),i=e.shixunHomeworks,r=(0,g.useParams)(),s=d.Z.useForm(),c=u()(s,1)[0],w=(i.workList,i.workSetting);return(0,v.jsx)(m.Z,{centered:!0,title:"补交附件",open:"补交附件"===t.actionTabs.key,bodyStyle:{minHeight:200},onOk:a()(o()().mark((function e(){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=function(){var e=a()(o()().mark((function e(){var i,a,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.validateFields();case 2:return a=l()({},c.getFieldValue()),s=t.actionTabs.selectArrs,a.attachment_ids=null===(i=a.attachment_ids)||void 0===i?void 0:i.map((function(e){return e.response.id})),e.next=7,(0,f.mz)(l()(l()({},a),{},{homeworkId:s.work_id}));case 7:0===e.sent.status&&(c.resetFields(),n({type:"classroomList/setActionTabs",payload:{}}),n({type:"shixunHomeworks/getWorkSetting",payload:l()({},r)}),n({type:"shixunHomeworks/getWorkList",payload:l()({},r)}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),null==w||!w.can_submit){e.next=7;break}if(null!=w&&w.submit_size){e.next=5;break}return p.ZP.warning("您的作品提交机会已用完。如需继续修改,请联系指导老师或平台运营。"),e.abrupt("return");case 5:return m.Z.confirm({title:"提示",icon:null,centered:!0,width:472,content:(0,v.jsxs)(v.Fragment,{children:["你还有 ",(0,v.jsx)("span",{className:"ml5 mr5",style:{color:"#DF711C"},children:null==w?void 0:w.submit_size})," 次提交机会。确认提交后,上一次的提交记录会被覆盖。请注意,到达规定的提交次数后将不可再次提交,确定是否提交?"]}),onOk:function(){i()}}),e.abrupt("return");case 7:i();case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){c.resetFields(),n({type:"classroomList/setActionTabs",payload:{}})},children:(0,v.jsxs)(d.Z,{form:c,initialValues:{},children:[(0,v.jsx)(d.Z.Item,{name:"attachment_ids",rules:[{required:!0,message:"请上传附件"}],children:(0,v.jsx)(x.Z,{})}),(0,v.jsx)(d.Z.Item,{name:"description",children:(0,v.jsx)(h.Z.TextArea,{placeholder:"请在此输入补交附件的原因,最大限制100个字符",rows:7})})]})})}))},7896:function(e,t,n){"use strict";var i=n(7557),o=n.n(i),r=n(85573),a=n.n(r),s=n(37205),l=n.n(s),c=n(41498),u=n.n(c),d=n(82242),m=n.n(d),p=n(79800),h=n.n(p),f=n(39647),g=n.n(f),x=n(59301),v=n(78241),w=n(8591),y=n(43418),b=n(95237),j=n(43604),k=n(57930),_=n(5112),C=n(24905),A=n(61186),S=n.n(A),N=n(18030),T=n(93697),Z=n(21082),B=n(5296),L=n(95335),P=n(72764),D=n(54602),M=n(63363),E=n(37712),I=["classroomList","dispatch","courseEndTime"];t.Z=(0,B.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,i=e.dispatch,r=e.courseEndTime,s=g()(e,I),c=(0,B.useParams)(),d=v.Z.useForm(),p=h()(d,1)[0],f=(0,x.useState)(1),A=h()(f,2),O=A[0],H=A[1],R=(0,x.useState)([]),z=h()(R,2),G=z[0],F=z[1],W=(0,x.useState)(0),U=h()(W,2),V=(U[0],U[1]),Y=(0,x.useState)(2e3),J=h()(Y,2),K=(J[0],J[1],(0,x.useState)(!0)),q=h()(K,2),Q=(q[0],q[1]),X=(0,x.useState)(!1),$=h()(X,2),ee=$[0],te=($[1],(0,x.useState)(!1)),ne=h()(te,2),ie=ne[0],oe=(ne[1],(0,x.useState)([])),re=h()(oe,2),ae=re[0],se=re[1],le=(0,x.useState)(!0),ce=h()(le,2),ue=ce[0],de=ce[1],me=(0,x.useState)(null),pe=h()(me,2),he=pe[0],fe=pe[1];(0,x.useEffect)((function(){if("立即发布"===n.actionTabs.key)if(we(),ge(),2===n.actionTabs.type){var e=n.actionTabs.selectArrsAll[0];fe({submit_limit:null==e?void 0:e.submit_limit,submit_limit_num:null==e?void 0:e.submit_limit_num,must_file:null==e?void 0:e.must_file,can_submit:null==e?void 0:e.can_submit,submit_num:null==e?void 0:e.submit_num}),de(e.unified_setting)}else de(!1),fe({submit_limit:!1,submit_limit_num:200,must_file:!1,can_submit:!1,submit_num:3})}),[n.actionTabs]),(0,x.useEffect)((function(){if(ee){if(ie)return;i({type:"classroomList/setActionTabs",payload:{}}),(0,T.GJ)()?i({type:"classroomList/getClassroomTeacherCommonList",payload:m()(m()({},n.actionTabs.params),{},{type:1})}):i({type:"classroomList/getClassroomCommonList",payload:m()({},n.actionTabs.params)})}}),[ee]);var ge=function(){var e=u()(o()().mark((function e(t){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Q(!0),e.next=3,(0,D.c_)(m()(m()({},c),{},{page:t||O,limit:2e4,homework_id:1===n.actionTabs.type?"":n.actionTabs.selectArrs[0]}));case 3:null==(i=e.sent)||i.course_groups.map((function(e,t){e.key=e.id,e.title=e.name,e.disabled=e.is_published})),i&&(F(l()(null==i?void 0:i.course_groups)),V(null==i?void 0:i.course_groups_count),Q(!1),t||p.setFieldsValue(a()(a()({},"publish_time",S()(S()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",S()(S()(new Date((0,Z.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm")))));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),xe=function(){(0,T.GJ)()?n.actionTabs.detail?(i({type:"shixunHomeworks/setActionTabs",payload:{}}),i({type:"shixunHomeworks/getWorkList",payload:m()({},c)}),i({type:"shixunHomeworks/getWorkSetting",payload:m()({},c)})):i({type:"classroomList/getClassroomTeacherCommonList",payload:m()(m()({},n.actionTabs.params),{},{type:1})}):i({type:"classroomList/getClassroomCommonList",payload:m()({},n.actionTabs.params)})},ve=function(){var e=u()(o()().mark((function e(){var t,r,a,u;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,T.Rm)()||null!==(t=n.AssistantObject.normal)&&void 0!==t&&t.can_publish){e.next=4;break}return w.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),ke(!1),e.abrupt("return");case 4:if(!((a=m()({},p.getFieldsValue())).end_time<=a.publish_time)){e.next=9;break}return w.ZP.info("截止时间不能大于或等于发布时间"),ke(!1),e.abrupt("return");case 9:if(!((null==ae?void 0:ae.length)<=0&&!ue&&G.length>0)){e.next=13;break}return w.ZP.info("发布班级不能为空"),ke(!1),e.abrupt("return");case 13:if(null==he||!he.submit_limit||null!=he&&he.submit_limit_num){e.next=17;break}return w.ZP.warning("学生填写内容字数不能为空"),ke(!1),e.abrupt("return");case 17:if(null==he||!he.can_submit||null!=he&&he.submit_num){e.next=21;break}return w.ZP.warning("学生提交作品次数不能为空"),ke(!1),e.abrupt("return");case 21:return u=m()({homework_ids:l()(n.actionTabs.selectArrs),group_ids:ae.length>0?ae.map((function(e){return e.id})):null===(r=n.detailCommonHomeworksList)||void 0===r?void 0:r.course_groups,end_time:S()(a.end_time).format("YYYY-MM-DD HH:mm"),publish_time:S()(a.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!ae.length},he),ke(!0),e.next=25,(0,N.ZP)("/api/courses/".concat(c.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:m()({},u)});case 25:0===e.sent.status?(ke(!1),(0,Z.L9)(["教学课堂","图文作业","立即发布"]),w.ZP.success("发布成功"),i({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),s.onCallback&&s.onCallback(),xe(),"0"===localStorage.getItem("Noviceguide")||i({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:13,text:(0,E.jsx)("div",{children:"最后,咱们给教学课堂添加一名学生~点击“添加学生”,在弹窗页面中输入并搜索学生姓名,点击“确定”就可以为您的课堂添加第一位学生啦~"})}})):ke(!1);case 27:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),we=function(){H(1),F([]),se([])},ye=(n.detailCommonHomeworksList,(0,x.useState)(!1)),be=h()(ye,2),je=be[0],ke=be[1];return(0,E.jsxs)(y.Z,{width:600,centered:!0,confirmLoading:je,title:"发布作业",open:"立即发布"===n.actionTabs.key,okText:"发布作业",cancelText:"暂不发布",onOk:ve,onCancel:function(){we(),xe(),i({type:"classroomList/setActionTabs",payload:{}})},children:[(0,E.jsxs)("p",{className:"tc",children:["学生将立即收到作业",(0,E.jsx)("br",{}),'本操作只对"未发布"的作业有效']}),G&&(0,E.jsxs)(v.Z,{form:p,children:[(0,E.jsxs)("div",{style:{paddingLeft:0},children:[(0,E.jsxs)(b.Z,{className:"mt30",align:"middle",children:[(0,E.jsx)(j.Z,{children:(0,E.jsx)(v.Z.Item,{name:"publish_time",label:"发布时间",children:(0,E.jsx)(k.default,{style:{width:170,marginRight:"25px"},disabledDate:function(e){return(0,M.Q8)(e,r)},disabledTime:function(e){return(0,M.d0)(e)},placeholder:"请选择发布时间",showTime:{format:"HH:mm",defaultValue:S()((0,Z.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),(0,E.jsx)(j.Z,{className:"ml20",children:(0,E.jsx)(v.Z.Item,{name:"end_time",label:"截止时间",children:(0,E.jsx)(k.default,{style:{width:170},placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:S()((0,Z.U6)(),"HH:mm")},disabledDate:function(e){return(0,M.Q8)(e,r,p.getFieldValue("publish_time"))},disabledTime:function(e){return(0,M.d0)(e,p.getFieldValue("publish_time"))},format:"YYYY-MM-DD HH:mm",allowClear:!1})})})]}),2===n.actionTabs.type&&(0,E.jsxs)(b.Z,{style:{marginBottom:"10px"},children:[(0,E.jsx)("span",{className:"mr5",children:"发布设置:"}),(0,E.jsxs)(_.ZP.Group,{value:ue,onChange:function(e){de(e.target.value),se([])},children:[(0,E.jsx)(_.ZP,{value:!0,disabled:!n.actionTabs.manage_all_group,children:"统一发布"}),(0,E.jsx)(_.ZP,{className:"ml20",disabled:G.length<=0,value:!1,children:"分班发布"})]})]}),G.length<=0&&2===n.actionTabs.type&&(0,E.jsx)("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"},children:'课堂无分班,仅支持选择“统一发布"'})]}),(1===n.actionTabs.type||!ue)&&G.length>0&&(0,E.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"},children:[(0,E.jsx)("span",{style:{flex:1},children:(0,E.jsx)(C.Z,{checked:ae.length===G.length,onChange:function(e){ae.length===G.length?se([]):se(G.filter((function(e){return!e.is_published})))},children:"全选"})}),(0,E.jsx)("span",{style:{width:16}}),(0,E.jsxs)("span",{style:{flex:1},children:["已选择",ae.length||0,"个分班"]})]}),(1===n.actionTabs.type||!ue)&&G.length>0&&(0,E.jsx)(L.Z,{data:G,selectedRowKeys:ae,setSelectedRowKeys:se})]}),!(null!=n&&null!==(t=n.actionTabs)&&void 0!==t&&null!==(t=t.selectArrsAll)&&void 0!==t&&null!==(t=t[0])&&void 0!==t&&t.is_shixun)&&(0,E.jsx)(P.ZP,{value:he,onChange:function(e){return fe(m()({},e))}})]})}))},96544:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});n(59301);var i=n(38854),o=n(20834),r=n(6848),a=n(92832),s="searchSortControllerContainer___AAq4n",l="btn___bMc0x",c="btnSort___vBpNG",u="tips___egWVQ",d=n(37712),m=function(e){var t=e.isAdmin,n=(e.dataSource,e.batchStatus,e.SortMenuName),m=e.setSortMenuName,p=e.onSearch,h=e.onSort,f=(e.onBatch,t?[{name:"默认排序",type:"position",direction:"desc"},{name:"创建时间升序",type:"created_at",direction:"asc"},{name:"创建时间降序",type:"created_at",direction:"desc"},{name:"更新时间升序",type:"updated_at",direction:"asc"},{name:"更新时间降序",type:"updated_at",direction:"desc"},{name:"作业名称升序",type:"name_pinyin",direction:"asc"},{name:"作业名称降序",type:"name_pinyin",direction:"desc"}]:[{name:"默认排序",type:"position",direction:"desc"},{name:"按发布时间升序",type:"created_at",direction:"asc"},{name:"按发布时间降序",type:"created_at",direction:"desc"},{name:"按截止时间升序",type:"updated_at",direction:"asc"},{name:"按截止时间降序",type:"updated_at",direction:"desc"},{name:"作业名称升序",type:"name_pinyin",direction:"asc"},{name:"作业名称降序",type:"name_pinyin",direction:"desc"}]),g="默认排序"===n;return(0,d.jsxs)("div",{className:s,children:[(0,d.jsx)("div",{children:(0,d.jsx)(i.Z,{dropdownRender:function(){return(0,d.jsx)(o.Z,{selectedKeys:[n],children:f.map((function(e){return(0,d.jsx)(o.Z.Item,{onClick:function(){return m((t=e).name),void h(t);var t},children:e.name},e.name)}))})},children:(0,d.jsx)("div",{children:(0,d.jsxs)("span",{className:"".concat(l," ").concat(g?c:""),children:[(0,d.jsx)("i",{className:"iconfont icon-paixu font14 mr5"}),n]})})})}),g&&(0,d.jsx)(r.Z,{title:"优先按照调整排序结果展示,未设置排序时,按照创建时间降序排列",children:(0,d.jsx)("span",{className:u,children:(0,d.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2"})})}),(0,d.jsx)(a.Z.Search,{allowClear:!0,placeholder:"请输入名称进行搜索",onSearch:function(e){return p(e.trim())},style:{width:220,marginLeft:"auto"}})]})}},78441:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});n(59301);var i=n(20834),o=n(95237),r=n(43604),a=n(38854),s=n(6848),l="tabMenuContainer___xbZhu",c="control___tg7XY",u="iconH___CDXCm",d="selectBtn___Da4jv",m=n(5296),p=n(93697),h=n(37712),f=(0,m.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.isLoading,f=e.addText,g=e.tabDataSource,x=e.isAdmin,v=e.dispatch,w=e.type,y=e.exportType,b=e.TooltipTitle,j=e.categoryId,k=e.dropdownMenu,_=e.isShowRightControl,C=e.defaultSelectedKeys,A=e.classroomList,S=e.onTabMenuClick,N=e.onTooltipTitleClick,T=e.onDropdownMenuClick,Z=e.onsetClick,B=(0,m.useParams)();return(0,h.jsx)("div",{className:l,children:(0,h.jsxs)(o.Z,{children:[(0,h.jsx)(r.Z,{flex:"1",children:(0,h.jsx)(i.Z,{mode:"horizontal",selectedKeys:C,children:g.map((function(e){return(0,h.jsxs)(i.Z.Item,{onClick:function(){return n?{}:S(e)},children:[(0,h.jsx)("span",{className:"c-grey-666 ".concat(x?"mr20":""),children:e.name}),void 0!==e.total&&(0,h.jsx)("span",{className:"c-grey-999",children:e.total||0})]},e.id)}))})}),x&&_&&(0,h.jsxs)(r.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3},children:[(0,h.jsx)(a.Z,{className:"mr10",placement:"bottom",arrow:!0,dropdownRender:function(){return(0,h.jsxs)(i.Z,{children:[(0,h.jsx)(i.Z.Item,{onClick:function(){v({type:"classroomList/setActionTabs",payload:{key:"导出成绩",type:w,exportType:y,category_id:B.categoryId}})},children:"学生成绩"},1),(0,h.jsx)(i.Z.Item,{onClick:function(){m.history.push("/classrooms/".concat(null==B?void 0:B.coursesId,"/exportlist/").concat("group"===y?"group_work_list":"normal_work_list"))},children:"历史导出"},3)]})},children:(0,h.jsx)("div",{className:"c-blue font16 ml20 current",style:{marginTop:2},children:(0,h.jsx)("span",{style:{color:"#666666",cursor:"pointer"},children:(0,h.jsx)("i",{className:"iconfont icon-xiazai6"})})})}),!(0,p.Rm)()||null!==(t=A.AssistantObject.normal)&&void 0!==t&&t.can_create?(0,h.jsx)("span",{className:"c-grey-666",style:{marginLeft:8,cursor:"pointer",marginTop:"3px"},onClick:Z,children:(0,h.jsx)("i",{className:"iconfont icon-shezhi6 font16 mr5"})}):"",(0,h.jsxs)("div",{className:c,children:[(0,h.jsx)("div",{className:"c-blue font16 ml20 current",style:{marginTop:2},onClick:N,children:(0,h.jsx)(s.Z,{title:b,children:(0,h.jsx)("span",{className:"".concat(u,j?" iconfont icon-zhongmingmingmulu":" iconfont icon-xinjianmulu1")})})}),(0,h.jsx)(a.Z,{className:"ml10",dropdownRender:function(){return(0,h.jsx)(i.Z,{onClick:function(e){var t=e.key;T(t)},children:k.map((function(e){return(0,h.jsx)(i.Z.Item,{children:e.name},e.id)}))})},children:(0,h.jsxs)("span",{className:d,children:[(0,h.jsx)("span",{children:(0,h.jsx)("i",{className:"iconfont icon-tianjiadaohang"})}),(0,h.jsx)("span",{children:f||"新建作业"})]})})]})]})]})})}))},97236:function(e,t,n){"use strict";n.r(t),n.d(t,{CommonHomeworkContext:function(){return Qe},default:function(){return Xe}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301),m=n(5296),p=n(8591),h=n(27092),f=n(81228),g=n(43418),x=n(95237),v=n(43604),w=n(5112),y=n(60324),b=n(94001),j=n(24905),k=n(39248),_=n(21082),C=n(93697),A=n(37205),S=n.n(A),N=n(39647),T=n.n(N),Z=n(18030),B=n(97978),L=n(37712),P=["classroomList","dispatch","match","location","user","onCallback"],D=(0,m.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,i=e.classroomList,r=e.dispatch,s=(e.match,e.location,e.user),c=e.onCallback,h=(T()(e,P),(0,m.useParams)()),f=(0,d.useState)(!1),x=u()(f,2),v=x[0],w=x[1],y=(0,d.useState)(!1),b=u()(y,2),j=b[0],k=b[1],A=(0,d.useRef)(null);(0,d.useEffect)((function(){if("删除"===i.actionTabs.key){if((0,C.j5)())return void k(!0);var e={hasNum:0,noHasNum:0};i.actionTabs.selectArrsAll.map((function(t){var n;t.author_login===(null===(n=s.userInfo)||void 0===n?void 0:n.login)?++e.hasNum:++e.noHasNum})),e.noHasNum>0?g.Z.info({title:"权限提示",className:"custom-modal-divider ",icon:null,content:(0,L.jsxs)("div",{children:["当前选中资源中:",(0,L.jsx)("span",{className:"c-blue",children:e.hasNum}),"个由您本人发布,",(0,L.jsx)("span",{className:"c-red",children:e.noHasNum})," ","个由其他老师发布。",(0,L.jsx)("br",{}),"课堂内只能删除本人发布的资源,请取消选中其他老师发布的资源。"]}),onOk:function(){N()}}):k(!0)}else k(!1)}),[i.actionTabs.key]);var N=function(){r({type:"classroomList/setActionTabs",payload:{}})};return(0,L.jsx)(g.Z,{centered:!0,title:"提示",open:j,okText:"确定",cancelText:"取消",confirmLoading:v,destroyOnClose:!0,onOk:a()(o()().mark((function e(){var t,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=A.current)||void 0===t||!t.onVerify()){e.next=2;break}return e.abrupt("return");case 2:return w(!0),e.next=5,(0,Z.ZP)("/api/courses/".concat(h.coursesId,"/homework_commons/multi_destroy.json"),{method:"post",body:{homework_ids:S()(i.actionTabs.selectArrs)}});case 5:n=e.sent,w(!1),0===n.status&&((0,_.L9)(["教学课堂","图文作业","删除"]),p.ZP.success("删除成功"),r({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),c&&c(),(0,C.GJ)()?r({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},i.actionTabs.params),{},{type:1})}):r({type:"classroomList/getClassroomCommonList",payload:l()({},i.actionTabs.params)}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:h.coursesId}}));case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){N()},children:null!=i&&null!==(t=i.actionTabs)&&void 0!==t&&t.status&&["未发布"].includes(null==i||null===(n=i.actionTabs)||void 0===n?void 0:n.status)?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("p",{children:"提交作品将全部被删除,不可恢复"}),(0,L.jsx)("p",{children:"是否确认删除?"})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("p",{style:{color:"#DD0000"},children:"删除作业则会清除学生所有的答题数据,且数据不可恢复,如确定删除,请输入下方验证码"}),(0,L.jsx)(B.Z,{ref:function(e){return A.current=e}})]})})})),M=n(7896),E=n(3655),I=(0,m.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,i=(0,m.useParams)();return(0,L.jsx)(g.Z,{centered:!0,title:"提示",open:"设为公开"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Z.ZP)("/api/courses/".concat(i.coursesId,"/homework_commons/set_public.json"),{method:"post",body:{homework_ids:S()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,_.L9)(["教学课堂","图文作业","设为公开"]),p.ZP.success("操作成功"),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,C.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:1})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:(0,L.jsxs)("p",{children:["设为公开后,非课堂成员也可以访问查看",(0,L.jsx)("br",{}),"是否确认设为公开?"]})})})),O=["classroomList","dispatch","onCallback"],H=(0,m.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,i=e.onCallback,r=(T()(e,O),(0,m.useParams)());return r.id=r.coursesId,(0,L.jsx)(g.Z,{centered:!0,title:"提示",open:"收藏"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Z.ZP)("/api/courses/".concat(r.id,"/homework_commons/add_to_homework_bank.json"),{method:"post",body:{all_check:0,homework_ids:S()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,_.L9)(["教学课堂","图文作业","收藏"]),p.ZP.success("收藏成功,请前往【个人主页/课堂资源】查看"),n({type:"classroomList/setActionTabs",payload:{}}),i&&i(),(0,C.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:1})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)}),n({type:"classroomList/setActionTabs",payload:{}}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:"确认收藏?"})})),R=n(85573),z=n.n(R),G=n(78241),F=n(92832),W=n(61186),U=n.n(W),V=(0,m.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t,n,i=e.classroomList,r=(e.loading,e.dispatch),s=e.onCallback,c=(0,m.useParams)(),d=(0,m.useLocation)(),h=i.actionTabs,f=G.Z.useForm(),w=u()(f,1)[0];return(0,L.jsxs)(g.Z,{centered:!0,title:"新建目录",open:"新建目录"===i.actionTabs.key,okText:"确定",cancelText:"取消",bodyStyle:{minHeight:200},onOk:a()(o()().mark((function e(){var t,n,a,u,h,f,g,x;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=w.getFieldValue(),n="/api/course_modules/".concat(i.detailCommonHomeworksList.main_category_id,"/add_second_category.json"),e.next=4,(0,Z.ZP)(n,{method:"post",body:l()({},t)});case 4:0===(a=e.sent).status&&(p.ZP.success("添加成功"),s&&s(),r({type:"classroomList/setActionTabs",payload:{}}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:c.coursesId}}),h=i.actionTabs.selectArrs.type,f=(null==a?void 0:a.category_id)||0,(g=null===(u=d.pathname)||void 0===u?void 0:u.split("/"))[4]=f,g[3]=h||g[3],x=null==g?void 0:g.join("/"),m.history.push(x));case 6:case"end":return e.stop()}}),e)}))),onCancel:function(){r({type:"classroomList/setActionTabs",payload:{}})},children:[(0,L.jsx)("p",{className:"tc",children:(0,L.jsx)("br",{})}),i.courseGroups.course_groups&&(0,L.jsx)(G.Z,{form:w,initialValues:z()({},"name",""),children:(0,L.jsx)(G.Z.Item,{name:"name",children:(0,L.jsxs)(x.Z,{className:"mt30",children:[(0,L.jsx)(v.Z,{children:"目录名称:"}),(0,L.jsx)(v.Z,{flex:"1",children:(0,L.jsx)(F.Z,{defaultValue:(null===(t=h.selectArrs)||void 0===t?void 0:t.category_name)||(null===(n=h.selectArrs)||void 0===n?void 0:n.name)})})]})})})]})})),Y=n(99313),J=n(3113),K=n(26724),q=n.n(K),Q=n(87308),X=n(28103),$=n(81327),ee=n(71418),te=n(99681),ne={shixunItemWrapper:"shixunItemWrapper___cgnhs",checkboxWrapper:"checkboxWrapper___Z7zZt",contentWrapper:"contentWrapper___TO4hm",title:"title___P8Su0",desc:"desc___j_4ZZ",info:"info___rg8e4",scrollWrap:"scrollWrap___EjY1R",loading:"loading___iNP0r"},ie=n(48486),oe=Q.Z.Paragraph,re=function(e,t){var n=e.createShixunParams,i=(0,d.useState)("0"),r=u()(i,2),s=r[0],c=r[1],m=(0,d.useState)("hot"),p=u()(m,2),h=p[0],f=p[1],g=(0,d.useState)([]),w=u()(g,2),y=w[0],b=w[1],k=(0,d.useState)(!0),_=u()(k,2),C=_[0],A=_[1],N=(0,d.useState)(1),T=u()(N,2),Z=T[0],B=T[1],P=(0,d.useRef)(null),D=(0,d.useRef)(null),M=(0,d.useRef)({page:1,order:"hot",keyword:"",shixun_type:"jupyter",diff:"0",limit:10,mine:"",status:""}),E=function(){var e=a()(o()().mark((function e(t,n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:A(!0),clearTimeout(P.current),P.current=setTimeout(a()(o()().mark((function e(){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(t,"params2"),e.next=3,(0,te.he)(t);case 3:if((i=e.sent).status){e.next=15;break}if(!n){e.next=10;break}return 0===i.shixuns.length&&W(!1),b((function(e){return[].concat(S()(e),S()(i.shixuns))})),A(!1),e.abrupt("return");case 10:D.current.scrollTop=0,W(!0),B(Z+1),A(!1),b(i.shixuns);case 15:case"end":return e.stop()}}),e)}))),1e3);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();(0,d.useImperativeHandle)(t,(function(){return{search:function(e){return E(l()(l()({},M.current),{},{keyword:e}))},changeKeyWord:function(e){return M.current.keyword=e}}})),(0,d.useEffect)((function(){E(M.current)}),[]);var I=(0,d.useState)([]),O=u()(I,2),H=O[0],R=O[1],z=(0,d.useState)(!0),G=u()(z,2),F=G[0],W=G[1];return(0,L.jsxs)("div",{className:"mt20",children:[(0,L.jsxs)(x.Z,{justify:"space-between",style:{marginBottom:8},children:[(0,L.jsx)(v.Z,{children:[{name:"全部",id:"0"},{name:"初级",id:"1"},{name:"中级",id:"2"},{name:"中高级",id:"3"},{name:"高级",id:"4"}].map((function(e,t){return(0,L.jsx)("span",{style:{border:"none",marginRight:20,color:s===e.id?"#3061D0":"rgba(0, 0, 0, 0.85)"},onClick:function(){c(e.id),M.current.diff=e.id,E(M.current)},children:e.name},t)}))}),(0,L.jsx)(v.Z,{children:(0,L.jsx)(ie.tp,{dataSource:[{name:"最新",id:"new"},{name:"最热",id:"hot"},{name:"我的",id:"mine"}],value:h,onChange:function(e){f(e),M.current.order=e,"mine"===e?(M.current.mine="true",M.current.status="2"):(M.current.mine="",M.current.status=""),E(M.current)}})})]}),(0,L.jsxs)("div",{className:ne.scrollWrap,children:[(0,L.jsx)("div",{ref:D,style:{maxHeight:260,overflow:"hidden auto"},children:(0,L.jsx)(q(),{initialLoad:!1,pageStart:1,threshold:100,loadMore:function(e){E(l()(l()({},M.current),{},{page:e}),!0)},hasMore:F&&!C,useWindow:!1,children:(0,L.jsx)(j.Z.Group,{onChange:function(e){R(e),n.current.shixuns_info=e.map((function(e){return{shixun_id:e,is_copy:0,is_use:1}}))},value:H,children:y.map((function(e){var t=e||{},n=t.name,i=t.id,o=t.description,r=t.challenge_names,a=t.author_name,s=t.author_school_name,l=t.level,c=t.total_stu_num;return(0,L.jsxs)("div",{className:ne.shixunItemWrapper,children:[(0,L.jsxs)(x.Z,{align:"middle",className:ne.checkboxWrapper,gutter:14,style:{padding:"20px 20px 0 20px",background:"transparent",marginBottom:"0px"},children:[(0,L.jsx)(j.Z,{value:i,style:{paddingRight:"10px"}}),(0,L.jsx)("div",{className:ne.title,style:{fontWeight:"600"},children:n})]}),(0,L.jsxs)("div",{className:ne.contentWrapper,children:[(0,L.jsx)(oe,{ellipsis:{rows:2},className:ne.desc,style:{color:"#8e8888",fontSize:"12px",margin:"5px 0px"},children:o}),(0,L.jsx)(x.Z,{children:r.map((function(e,t){return(0,L.jsxs)("span",{className:ne.mission,style:{fontSize:"14px",fontWeight:"600",color:"#4f4f4b"},children:[(0,L.jsxs)("span",{style:{paddingRight:"5px"},children:["第",t+1,"关"]})," ",e]},t)}))}),(0,L.jsx)(X.Z,{dashed:!0,style:{margin:"8px 0"}}),(0,L.jsx)(x.Z,{className:ne.info,children:(0,L.jsxs)($.Z,{children:[(0,L.jsx)("span",{style:{fontWeight:"600",color:"black"},children:a}),(0,L.jsx)("span",{children:"|"}),(0,L.jsx)("span",{children:s}),(0,L.jsx)("span",{children:"|"}),(0,L.jsxs)("span",{children:["难度系数 ",(0,L.jsx)("span",{style:{fontWeight:"400",color:"#000000"},children:l})]}),(0,L.jsx)("span",{children:"|"}),(0,L.jsxs)("span",{children:["学习人数  ",(0,L.jsx)("span",{style:{fontWeight:"600",color:"black"},children:c})]})]})})]})]},i)}))})},Z)}),C&&(0,L.jsx)("div",{className:ne.loading,children:(0,L.jsx)(ee.Z,{spinning:!0})})]})]})},ae=(0,d.forwardRef)(re),se={flex_box_center:"flex_box_center___c_im6",flex_space_between:"flex_space_between___bYk0F",flex_box_vertical_center:"flex_box_vertical_center___umg07",flex_box_center_end:"flex_box_center_end___gNLdg",flex_box_column:"flex_box_column___i84TM",line1:"line1___xbMUH",form:"form___hugHb",small_search:"small_search___x0fZd",border:"border___rjNxX"},le=n(54313),ce=n(54602),ue=n(21530),de=(Y.Z.TabPane,(0,m.connect)((function(e){var t=e.shixunHomeworks,n=e.classroomList;return{shixunHomeworks:t,loading:e.loading,classroomList:n}}))((function(e){var t,n=e.shixunHomeworks,i=(e.loading,e.classroomList),r=e.dispatch,s=e.refreshList,c=(0,m.useParams)(),p=((0,m.useLocation)(),G.Z.useForm()),h=u()(p,1)[0],f=(n.brankList,(0,d.useState)(!1)),w=u()(f,2),y=(w[0],w[1]),b=(0,d.useState)(!0),k=u()(b,2),A=k[0],N=k[1],T=(0,d.useState)(!1),Z=u()(T,2),B=Z[0],P=Z[1],D=(0,d.useState)("myself"),M=u()(D,2),E=M[0],I=M[1],O=(0,d.useState)([]),H=u()(O,2),R=H[0],W=H[1],U=(0,d.useState)(),V=u()(U,2),Y=V[0],K=V[1],Q=(0,d.useState)({page:0,limit:20,object_type:"normal",search:"",filter:"myself"}),X=u()(Q,2),$=X[0];X[1];(0,d.useEffect)((function(){"题库选用"===n.actionTabs.key&&te()}),[n.actionTabs.key]);var ee=[],te=function(){var e=a()(o()().mark((function e(){var t,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!A){e.next=11;break}return y(!1),++$.page,e.next=5,r({type:"shixunHomeworks/getBrankList",payload:l()({},$)});case 5:n=e.sent,R=S()(R.concat(n.object_list)),K(n.is_teacher),(null===(t=n.object_list)||void 0===t?void 0:t.length)<$.limit?N(!1):N(!0),W(S()(R)),""==n.object_list&&1===$.page&&y(!0);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ne=(0,d.useRef)({identifier:c.coursesId,shixuns_info:[],type:"normal",coursesId:c.coursesId,category_id:c.categoryId}),ie=function(){var e=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P(!0),e.next=3,(0,ce.aQ)(t);case 3:n=e.sent,P(!1),n.status||(s(),r({type:"shixunHomeworks/setActionTabs",payload:{}}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:t.coursesId}}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),oe=(0,d.useRef)(),re=i.detailCommonHomeworksList;return(0,L.jsxs)(g.Z,{className:se.border,centered:!0,title:(0,L.jsx)("span",{style:{fontWeight:"600"},children:"选用课堂资源"}),destroyOnClose:!0,open:"题库选用"===n.actionTabs.key,okText:"确定",cancelText:"取消",width:800,bodyStyle:{minHeight:200},okButtonProps:{loading:B},onOk:a()(o()().mark((function e(){var t,i,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("jupyter"!==E){e.next=3;break}return ie(ne.current),e.abrupt("return");case 3:return P(!0),t=h.getFieldsValue(),e.next=7,r({type:"shixunHomeworks/saveBanks",payload:{course_id:c.coursesId,object_type:"normal",category:c.categoryId,bank_id:t.group_ids}});case 7:0===(null==(i=e.sent)?void 0:i.status)&&((0,_.L9)(["教学课堂","图文作业","选用课堂资源"]),r({type:"classroomList/getClassroomLeftMenus",payload:{id:c.coursesId}}),r({type:"shixunHomeworks/setActionTabs",payload:{}}),r({type:"classroomList/setActionTabs",payload:{key:"立即发布",type:1,selectArrs:i.object_ids,params:null===(a=n.actionTabs)||void 0===a?void 0:a.params,manage_all_group:null==re?void 0:re.manage_all_group}})),P(!1);case 10:case"end":return e.stop()}}),e)}))),onCancel:function(){r({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,L.jsxs)(x.Z,{style:{borderBottom:"0.5px solid gainsboro",paddingBottom:"15px"},children:[(0,L.jsx)(v.Z,{span:12,children:[{name:"我的资源",id:"myself"},{name:"公共资源",id:"public"},{name:"jupyter实训",id:"jupyter"}].map((function(e,t){return(0,L.jsx)(J.ZP,{shape:"round",style:E===e.id?{background:"#e8efff",border:"none",color:"#6f9fe6"}:{background:"#f6f6f6",border:"none"},type:E===e.id?"ghost":"default",className:"mr10",onClick:function(){var t=a()(o()().mark((function t(n){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("jupyter"!==e.id){t.next=3;break}return I(e.id),t.abrupt("return");case 3:R=[],A=!0,$.page=0,$.search="",$.filter=e.id,te(),I(e.id);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),children:e.name},t)}))}),(0,L.jsx)(v.Z,{span:12,className:"tr",children:(0,L.jsx)(F.Z.Search,{className:se.small_search,placeholder:"输入标题进行搜索",onChange:function(e){var t;"jupyter"===E&&(null===(t=oe.current)||void 0===t||t.changeKeyWord(e.target.value))},suffix:(0,L.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(se.searchIcon)}),onSearch:function(e){var t;(e&&(0,ue.tk)({name:e,copywriting:e,position:"HomeworkCommon"}),"jupyter"!==E)?(A=!0,$.search=e,$.page=0,R=[],te()):null===(t=oe.current)||void 0===t||t.search(e)},style:{width:260}})})]}),"myself"===E&&(0,L.jsxs)("p",{className:"tc mt10",children:["选用对象:你在课堂图文作业列表中已",(0,L.jsx)("span",{className:"c-orange",children:"收藏"}),"的图文作业"]}),"public"===E&&(0,L.jsx)("p",{className:"tc mt10",children:"选用对象:题库中已设置成公共属性的所有图文作业"}),"jupyter"===E?(0,L.jsx)(ae,{createShixunParams:ne,ref:oe}):(0,L.jsxs)("div",{style:{background:"#F4FAFF",maxHeight:200,overflow:"auto",padding:"20px 10px"},children:[!Y&&"public"===E&&(0,L.jsxs)("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"},children:[(0,L.jsx)("span",{children:"通过职业认证的教师才能访问公共课程资源库"}),(0,L.jsx)("p",{style:{cursor:"pointer",background:"#ff6800",height:"30px",textAlign:"center",marginTop:"5px",padding:"5px 0px",color:"#fff",width:"80px"},onClick:function(){window.open("/account/certification")},children:"立即认证"})]}),(0,L.jsx)(q(),{initialLoad:!1,pageStart:0,threshold:700,loadMore:function(){N(!1),te()},hasMore:A,useWindow:!1,children:(0,L.jsxs)(G.Z,{form:h,initialValues:z()({},"group_ids",ee),className:se.form,onChange:function(e){var t=h.getFieldValue();ee=t},children:[""==R&&(0,L.jsx)(le.Z,{styles:{margin:"10px auto"}}),(0,L.jsx)(G.Z.Item,{name:"group_ids",children:(0,L.jsx)(j.Z.Group,{style:{width:"100%",flexDirection:"column"},className:"font14",children:null===(t=R)||void 0===t?void 0:t.map((function(e,t){return(0,L.jsxs)(x.Z,{children:[(0,L.jsx)(v.Z,{flex:"2",children:(0,L.jsx)(j.Z,{onChange:function(e){},value:String(e.id),defaultChecked:!0,children:(0,L.jsx)("span",{className:["c-black",se.line1].join(" "),children:e.name})},t)}),(0,L.jsx)(v.Z,{flex:"1",className:"c-black",children:(0,L.jsx)("span",{className:se.line1,children:null==e?void 0:e.course_list_name})}),(0,L.jsx)(v.Z,{flex:"50px",className:"c-black",children:"public"===E&&(0,C.Ny)()||"myself"===E?(0,L.jsx)("span",{className:"c-blue current",onClick:function(){window.open("/users/innov/topics/".concat(e.id,"/personal/normal/edit"))},children:"编辑"}):null==e?void 0:e.username})]},t)}))})})]})})]})]})}))),me=n(26830),pe=(0,m.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.styles,n=void 0===t?{}:t,i=e.onSelect,o=e.params,r=e.classroomList,a=(0,d.useState)(!1),s=u()(a,2),c=s[0],h=s[1],f=(0,d.useState)(""),x=u()(f,2),v=x[0],y=x[1];(0,d.useEffect)((function(){h(!1),y("")}),[]);return(0,L.jsxs)("section",{className:"tc animated fadeIn",style:l()(l()({},{color:"#999",margin:"200px auto"}),n),children:[(0,L.jsx)("img",{src:me.z3}),(0,L.jsx)("p",{className:"mt20 font14",children:"该课程无图文作业,可以下方按钮或右上方“新建作业”按钮创建作业"}),(0,L.jsxs)("div",{style:{marginTop:"30px"},children:[(0,L.jsx)(J.ZP,{onClick:function(){return h(!0)},type:"primary",style:{width:"128px",height:"40px",marginRight:"20px",borderRadius:"4px"},children:"新建作业"}),(0,L.jsx)(J.ZP,{onClick:function(){(0,_.xg)("https://www.educoder.net/forums/4910")},type:"primary",style:{width:"128px",height:"40px",marginLeft:"20px",borderRadius:"4px"},children:"新建作业指引"})]}),c&&(0,L.jsx)(g.Z,{open:!0,centered:!0,title:"新建作业",onCancel:function(){return h(!1)},onOk:function(){var e;!(0,C.Rm)()||null!=r&&null!==(e=r.AssistantObject)&&void 0!==e&&null!==(e=e.normal)&&void 0!==e&&e.can_create?("1"===v&&m.history.push("/classrooms/".concat(o.coursesId,"/common_homework/").concat(o.categoryId,"/add")),"2"===v&&(i(),h(!1),y(""))):p.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{children:(0,L.jsx)(w.ZP,{value:"1",style:{marginTop:"15px"},checked:"1"===v,onClick:function(){return y("1")},children:"新建图文作业"})}),(0,L.jsx)("div",{children:(0,L.jsx)(w.ZP,{value:"2",style:{marginTop:"15px"},checked:"2"===v,onClick:function(){return y("2")},children:"选用资源"})})]})})]})})),he=n(80026),fe=n(78441),ge=n(96544),xe=n(20834),ve=n(38854),we="bottomControlContainer___t5WWD",ye="moveCategory___MrmA6",be=n(78386),je=function(e){var t,n=e.buttonDataSource,i=e.onClick,r=(0,d.useContext)(Qe),s=r.allSelect,l=r.setAllSelect,c=r.setSelectArrs,m=r.dataSource,h=r.selectArrs,f=r.useBatchStatus,g=r.dispatch,w=r.params,y=r.getData,b=r.detailLeftMenus,k=r.main_category_id,_=r.setSelectArrsAll,A=(0,d.useState)(!1),N=u()(A,2),T=(N[0],N[1]),B=(0,d.useState)(""),P=u()(B,2),D=P[0],M=P[1];b.course_modules&&(t=b.course_modules.filter((function(e){return"common_homework"===e.type}))[0]);var E=(0,L.jsx)("div",{className:ye,onMouseLeave:function(e){return T(!1)},children:(0,L.jsxs)(xe.Z,{onClick:function(){var e=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.item,n=t.key,t.keyPath,t.domEvent,""!=h){e.next=4;break}return p.ZP.error("请选择你要操作的任务"),e.abrupt("return",null);case 4:return e.next=6,(0,Z.ZP)("/api/courses/".concat(w.id,"/homework_commons/move_to_category.json"),{method:"post",body:{homework_ids:h,new_category_id:n}});case 6:0===e.sent.status&&(p.ZP.success("操作成功"),f(!1),y(),g({type:"classroomList/getClassroomLeftMenus",payload:{id:w.coursesId}}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),style:{maxHeight:300,width:240,overflow:"auto"},children:[(0,L.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",children:(0,L.jsx)(F.Z,{onChange:function(e){M(e.target.value)}})}),t&&t.second_category.filter((function(e){return"未分配目录"!==e.category_name})).map((function(e,t){var n;if(!(""!==D&&e.category_name.indexOf(D)<0))return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(xe.Z.Item,{className:"multi-llipsis1e",children:e.category_name},e.category_id),null==e||null===(n=e.third_category)||void 0===n?void 0:n.map((function(e){return(0,L.jsx)(xe.Z.Item,{style:{marginLeft:20},className:"multi-llipsis1e",children:e.category_name},e.category_id)}))]})})),(0,L.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:function(e){e.preventDefault(),g({type:"classroomList/setActionTabs",payload:{key:"添加目录",params:w,selectArrs:{category_id:k,type:"common_homework"}}})},children:"新建子目录..."})]})});return(0,L.jsx)("div",{className:we,children:(0,L.jsxs)(x.Z,{wrap:!1,align:"middle",justify:"space-between",style:{height:"100%"},children:[(0,L.jsx)(v.Z,{flex:1,children:(0,L.jsxs)(x.Z,{wrap:!1,align:"middle",gutter:8,children:[(0,L.jsx)(v.Z,{children:(0,L.jsxs)(j.Z,{checked:s,onChange:function(e){l(e.target.checked),c(e.target.checked?m.map((function(e){return e.homework_id})):[]),e.target.checked?_(S()(m)):_([])},children:["全选本页(",h.length,")"]})}),(0,C.GJ)()&&(0,L.jsx)(v.Z,{children:(0,L.jsx)(ve.Z,{placement:"top",menu:{items:n,onClick:function(e){var t=e.key;i({key:t})}},children:(0,L.jsx)(J.ZP,{type:"primary",icon:(0,L.jsx)("i",{className:"iconfont icon-piliangcaozuo3"}),children:"批量操作"})})}),(0,L.jsx)(v.Z,{children:(0,L.jsx)(J.ZP,{type:"primary",onClick:function(){var e={courseId:w.id,container_type:"common_homework"};w.categoryId&&(e.category_id=w.categoryId),g({type:"classroomList/getAllTaskList",payload:e}),g({type:"classroomList/setActionTabs",payload:{key:"调整排序"}})},icon:(0,L.jsx)("i",{className:"iconfont icon-tiaozhengpaixu2"}),children:"调整排序"})}),(0,C.GJ)()&&(0,L.jsx)(v.Z,{children:(0,L.jsx)(ve.Z,{placement:"topLeft",dropdownRender:function(){return E},getPopupContainer:function(e){return e.parentNode},children:(0,L.jsxs)(J.ZP,{type:"primary",icon:(0,L.jsx)("i",{className:"iconfont icon-yidongmulu"}),children:["移动到目录 ",(0,L.jsx)(be.Z,{})]})})}),(0,C.GJ)()&&(0,L.jsx)(v.Z,{children:(0,L.jsx)(J.ZP,{type:"primary",onClick:function(){return i({key:"collection",label:"收藏"})},icon:(0,L.jsx)("i",{className:"iconfont icon-shoucang1"}),children:"收藏"})})]})}),(0,L.jsx)(v.Z,{children:(0,L.jsx)(J.ZP,{type:"primary",ghost:!0,onClick:function(){c([]),f(!1)},children:"取消操作"})})]})})},ke=n(6848),_e=n(61998),Ce={listContainer:"listContainer___ZW4HW",info:"info___FuRA_",title:"title___nxXeU",left:"left___oBZYX",right:"right___TePEU",flexBox:"flexBox___kp4Xl",detail:"detail___x1A55",iconV:"iconV___HcC2c",shixunTag:"shixunTag___NZAsm",pingceTag:"pingceTag___Pqi7y",pingceTags:"pingceTags___JQb2l"},Ae=n(65463),Se=n(32858),Ne=(0,m.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n,i,r,s,c=e.dataSource,p=e.params,h=(e.classroomList,e.manageAllGroup),f=(0,d.useContext)(Qe),g=(f.batchStatus,f.selectArrs),x=f.setSelectArrs,v=f.selectArrsAll,w=f.setSelectArrsAll,y=f.dispatch,b=(0,m.useParams)(),k=(0,d.useState)(!1),A=u()(k,2),N=A[0],T=A[1],B=(0,d.useRef)(),P=(0,d.useState)([]),D=u()(P,2),M=D[0],E=D[1];b=l()(l()(l()({},p),b),{},{category:null===(t=b)||void 0===t?void 0:t.categoryId}),(0,d.useEffect)((function(){E([]),T(!1)}),[]);var I=[{title:"班级",dataIndex:"course_group_name",key:"course_group_name"},{title:"状态",dataIndex:"status",key:"status",width:80,filters:[{text:"未开始",value:"未开始"},{text:"提交中",value:"提交中"},{text:"补交中",value:"补交中"},{text:"已截止",value:"已截止"},{text:"未发布",value:"未发布"},{text:"匿评中",value:"匿评中"}],onFilter:function(e,t){return 0===t.status.indexOf(e)}},{title:"提交情况",dataIndex:"statistics",key:"statistics",width:80,render:function(e){var t,n;return"--"===e?e:(0,L.jsxs)("span",{children:[(0,L.jsx)("span",{children:null==e||null===(t=e.split("/"))||void 0===t?void 0:t[0]})," / ",(0,L.jsx)("span",{children:null==e||null===(n=e.split("/"))||void 0===n?void 0:n[1]})]})}},{title:"发布时间",dataIndex:"publish_time",key:"publish_time",sorter:!0,showSorterTooltip:!1,sortOrder:"publish_time"===b.sort_by?"desc"===b.sort_direction?"descend":"ascend":null},{title:"截止时间",dataIndex:"end_time",key:"end_time",sorter:!0,showSorterTooltip:!1,sortOrder:"end_time"===b.sort_by?"desc"===b.sort_direction?"descend":"ascend":null},{title:"补交时间",dataIndex:"late_time",key:"late_time",sorter:!0,showSorterTooltip:!1,sortOrder:"late_time"===b.sort_by?"desc"===b.sort_direction?"descend":"ascend":null},{title:"分班老师",dataIndex:"teachers",key:"teachers",width:150,ellipsis:{showTitle:!1},render:function(e){return"--"!==e&&e?(0,L.jsx)("span",{title:e,children:e}):"--"}}];function O(){return H.apply(this,arguments)}function H(){return(H=a()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Z.ZP)("/api/homework_commons/".concat(c.homework_id,"/group_settings_statistics.json"),{method:"get",params:l()({},b)});case 2:t=e.sent,E(t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,L.jsxs)("div",{className:Ce.listContainer,onClick:function(e){e.stopPropagation(),(!(0,C.GJ)()||(0,C.GJ)()&&B.current&&!B.current.contains(e.target))&&(0,_.xg)("/classrooms/".concat(b.coursesId,"/common_homework/").concat(c.homework_id,"/detail"))},children:[(0,C.GJ)()&&(0,L.jsx)("span",{ref:B,children:(0,L.jsx)(j.Z,{onClick:function(e){e.stopPropagation()},style:{padding:"10px"},checked:g.includes(c.homework_id),onChange:function(){return e=c.homework_id,void(g.includes(e)?(x(g.filter((function(t){return t!==e}))),w(v.filter((function(t){return t.homework_id!==e})))):(x([].concat(S()(g),[e])),w([].concat(S()(v),[c]))));var e}})}),(0,L.jsxs)("div",{className:Ce.info,children:[(0,L.jsxs)("div",{className:Ce.title,children:[(0,L.jsxs)("div",{className:Ce.left,style:(0,C.dE)()?{paddingRight:(null==c?void 0:c.challenge_count)-(null==c?void 0:c.finished_challenge_count)?60:140}:{},children:[(0,C.GJ)()&&(0,L.jsx)(Ae.Z,{value:c.status,children:(0,L.jsx)(_.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:[c.status]})}),(0,C.dE)()&&(0,L.jsx)(_.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:c.status}),(0,L.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,L.jsx)(m.Link,{target:"_blank",to:"/classrooms/".concat(b.coursesId,"/common_homework/").concat(c.homework_id,"/detail").concat((0,C.dE)()?"?tabs=0":""),children:c.name})}),c.is_shixun&&(0,L.jsx)("span",{className:Ce.shixunTag,children:"实训"}),c.open_evaluate&&(0,L.jsx)(ke.Z,{title:"该实践项目已启用评测功能,学生完成评测后系统将自动判分",children:(0,L.jsx)("span",{className:Ce.pingceTag,children:"评测"})}),(null==c?void 0:c.is_shixun)&&!c.open_evaluate&&(0,L.jsx)(ke.Z,{title:"该实践项目未启用评测功能,学生提交作品后需教师手动评分",children:(0,L.jsx)("span",{className:Ce.pingceTags,children:"评测"})})]}),(0,L.jsxs)("div",{className:Ce.right,children:[(0,C.GJ)()&&"未发布"===c.status&&(0,L.jsx)(m.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:[c],params:l()({},b),type:2,manage_all_group:h}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:(0,L.jsxs)("aside",{className:Ce.flexBox,style:{marginRight:"16px"},children:[(0,L.jsx)("i",{className:"iconfont icon-yishezhifabushijian1"}),(0,L.jsx)("div",{children:"发布"})]})}),(0,C.dE)()&&(0,L.jsxs)("div",{className:Ce.actionIcon,children:[(null==c?void 0:c.challenge_count)-(null==c?void 0:c.finished_challenge_count)==0&&(0,L.jsx)("i",{className:"iconfont icon-yiwancheng1"}),!(null!==(n=c.status)&&void 0!==n&&n.includes("已截止"))&&!(null!==(i=c.status)&&void 0!==i&&i.includes("导入"))&&(0,L.jsxs)("aside",{onClick:function(){var e=a()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log(c),t.stopPropagation(),c.is_jupyter||c.is_jupyter_lab?(0,Se.Z)({is_jupyter:c.is_jupyter,is_jupyter_lab:c.is_jupyter_lab,shixunId:c.shixun_identifier,homework_common_id:c.homework_id}):(0,_.xg)("/classrooms/".concat(b.coursesId,"/common_homework/").concat(c.homework_id,"/detail").concat((0,C.dE)()?"?tabs=1":""));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),className:Ce.flexBox,style:{marginRight:10},children:[(0,L.jsx)("i",{className:"iconfont icon-kaishixuexi font14"}),(0,L.jsx)("div",{children:"提交作品"})]}),((null===(r=c.status)||void 0===r?void 0:r.includes("已截止"))||(null===(s=c.status)||void 0===s?void 0:s.includes("导入")))&&(0,L.jsxs)("aside",{className:Ce.flexBox,style:{marginRight:10},children:[(0,L.jsx)("i",{className:"iconfont icon-chakanzuoye font14"}),(0,L.jsx)("div",{children:"查看作品"})]})]}),(0,C.GJ)()&&(0,L.jsx)(ve.Z,{placement:"bottomCenter",overlayClassName:Ce.dro,dropdownRender:function(){return(0,L.jsxs)(xe.Z,{children:["导入"!==c.status&&(0,L.jsx)(xe.Z.Item,{style:{textAlign:"center"},children:(0,L.jsx)(m.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:[c],params:l()({},b),type:2,manage_all_group:h}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即发布"})},1),"导入"===c.status&&(0,L.jsx)(xe.Z.Item,{style:{textAlign:"center"},children:(0,L.jsx)(m.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"补充成绩",name:null==c?void 0:c.name,id:null==c?void 0:c.homework_id,type:"normal"}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"补充成绩"})},23),"导入"!==c.status&&(0,L.jsx)(xe.Z.Item,{style:{textAlign:"center"},children:(0,L.jsx)(m.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"立即截止",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:[c],params:l()({},b),type:2}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即截止"})},2),(0,L.jsx)(xe.Z.Item,{style:{textAlign:"center"},children:(0,L.jsx)(m.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"删除",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:v,params:b,status:null==c?void 0:c.status}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即删除"})},22),"导入"!==c.status&&(0,L.jsx)(xe.Z.Item,{style:{textAlign:"center"},children:(0,L.jsx)(m.Link,{target:"_blank",onClick:function(e){e.stopPropagation()},to:"/classrooms/".concat(b.coursesId,"/common_homework/").concat(c.homework_id,"/detail?tabs=3"),children:"高级设置"})},6)]})},children:(0,L.jsxs)("aside",{onClick:function(e){return e.stopPropagation()},className:Ce.flexBox,style:{cursor:"default"},children:[(0,L.jsx)("i",{className:"iconfont icon-gengduo4"}),(0,L.jsx)("div",{children:"更多"})]})})]})]}),(0,L.jsx)("div",{className:Ce.detail,children:(0,C.GJ)()&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("span",{className:"c-grey-333 mr20",children:c.author}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.uncommit_count&&(0,L.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,L.jsx)("span",{className:"mr5",children:"未做题"}),c.uncommit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.commit_count&&(0,L.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,L.jsx)("span",{className:"mr5",children:"已做题"}),c.commit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.compelete_count&&(0,L.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,L.jsx)("span",{className:"mr5",children:"已完成"}),c.compelete_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(c.status)&&(0,L.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,L.jsx)("span",{className:"mr5",children:"发布时间"}),c.publish_time]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(c.status)&&(0,L.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,L.jsx)("span",{className:"mr5",children:"截止时间"}),c.end_time]}),["已结束"].includes(c.status)&&(0,L.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,L.jsx)("span",{className:"mr5",children:"结束时间"}),c.status_time]}),!(null==c||!c.late_time)&&"--"!==(null==c?void 0:c.late_time)&&(0,L.jsxs)("span",{className:"c-grey-999",children:[(0,L.jsx)("span",{className:"mr5",children:"补交截止时间"}),null==c?void 0:c.late_time]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(c.status)&&(0,L.jsxs)("span",{className:Ce.iconV,onClick:function(){var e=a()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),N||O(),T(!N);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,L.jsx)("i",{className:"iconfont icon-".concat(N?"shouqi":"xiala2")})," "]})]})}),(0,L.jsxs)("div",{className:Ce.content,children:[(0,C.dE)()&&(0,L.jsxs)("span",{className:Ce.infoStuIcon,children:[(0,L.jsx)("span",{className:"c-grey-333",children:c.author}),"已截止"===c.status&&!(null==c||!c.status_time)&&(0,L.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,L.jsx)("i",{className:"iconfont icon-shengyushijian font12 mr5"})," ",null==c?void 0:c.status_time]}),(0,L.jsxs)("span",{className:"ml20 c-grey-999",children:[(0,L.jsx)("i",{className:"iconfont icon-shijian1 font12 mr5"}),null==c?void 0:c.publish_time," 至 ",null==c?void 0:c.end_time," "]}),!(null==c||!c.late_time)&&"--"!==(null==c?void 0:c.late_time)&&(0,L.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,L.jsx)("span",{className:"mr5",children:"补交截止时间:"}),null==c?void 0:c.late_time]})]}),(0,C.GJ)()&&"未发布"!==c.status&&N&&M.length>5&&(0,L.jsx)(_e.Z,{scroll:{y:240},onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:M,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(b.sort_by=n.field),n.order||(b.sort_direction="asc"),"ascend"===n.order&&(b.sort_direction="asc"),"descend"===n.order&&(b.sort_direction="desc"),n.order||(b.sort_direction="asc"),O()},columns:I}),(0,C.GJ)()&&"未发布"!==c.status&&N&&M.length<6&&M.length>0&&(0,L.jsx)(_e.Z,{onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:M,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(b.sort_by=n.field),n.order||(b.sort_direction="asc"),"ascend"===n.order&&(b.sort_direction="asc"),"descend"===n.order&&(b.sort_direction="desc"),n.order||(b.sort_direction="asc"),O()},columns:I})]})]})]})})),Te="bg___Ujhcv",Ze=n(75774),Be="otherHomeworkWrap___cHqzM",Le="otherHomeworkContainer___k2TlQ",Pe="flex___N5oyJ",De="search___tWMHN",Me="content___wyNNo",Ee="listItem___mdegu",Ie="info___SwRt1",Oe="title___lilvJ",He="describe___meICG",Re="footer___irMwG",ze=function(e){var t=e.courseId,n=e.type,i=e.onCancel,r=(0,m.useParams)(),s=(0,d.useState)({targerData:[],originData:[]}),c=u()(s,2),h=c[0],f=c[1],g=(0,d.useState)([]),x=u()(g,2),v=x[0],w=x[1],y=(0,d.useState)(!1),b=u()(y,2),k=b[0],C=b[1],A=function(){var e=a()(o()().mark((function e(){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),e.next=3,(0,Z.ZP)("/api/courses/".concat(t,"/homework_commons/impersonal_list.json"),{method:"get",params:{type:n}});case 3:i=e.sent,C(!1),f({targerData:i.homeworks,originData:i.homeworks});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,d.useEffect)((function(){A()}),[]);var N=function(){var e=a()(o()().mark((function e(){var t,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),t={homework_common_ids:v},r.categoryId&&(t=l()(l()({},t),{},{category_id:r.categoryId})),e.next=5,(0,Z.ZP)("/api/courses/".concat(r.coursesId,"/homework_commons/create_collaborators.json"),{method:"POST",body:t});case 5:(n=e.sent)&&n.homework_ids.length>0&&(p.ZP.success("提交成功"),i()),C(!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,L.jsx)("div",{className:"animated fadeInUp fast ".concat(Be),children:(0,L.jsxs)("div",{className:Le,children:[(0,L.jsx)("div",{className:De,children:(0,L.jsx)(F.Z.Search,{size:"middle",enterButton:"搜索",onSearch:function(e){var t=h.originData.filter((function(t){return t.name.indexOf(e)>-1}));f(l()(l()({},h),{},{targerData:t}))},placeholder:"请输入图文作业名称进行查询"})}),(0,L.jsx)("div",{className:Me,children:h.targerData.map((function(e){return(0,L.jsxs)("div",{className:"".concat(Ee," mb10"),children:[(0,L.jsx)(j.Z,{checked:v.includes(e.id),onChange:function(t){return function(e,t){e.target.checked?w([].concat(S()(v),[t])):w(v.filter((function(e){return e!==t})))}(t,e.id)}}),(0,L.jsxs)("div",{className:Ie,children:[(0,L.jsxs)("div",{className:"".concat(Pe," mb10"),style:{justifyContent:"space-between"},children:[(0,L.jsx)("div",{className:Oe,children:e.name}),(0,L.jsx)("div",{children:(0,L.jsx)(J.ZP,{type:"primary",ghost:!0,onClick:function(){return(0,_.xg)("/classrooms/".concat(r.coursesId,"/common_homework/").concat(e.id,"/detail"))},children:"查看作业"})})]}),(0,L.jsx)("div",{className:"mb20 font14 c-grey-999 ".concat(He),children:e.description}),(0,L.jsxs)("div",{className:"font12",children:[(0,L.jsx)("span",{className:"c-grey-333 mr20",children:e.user.name}),(0,L.jsxs)("span",{className:"c-grey-999",children:["创建时间:",e.created_at]})]})]})]},e.id)}))}),(0,L.jsxs)("div",{className:Re,children:[(0,L.jsx)(J.ZP,{type:"primary",ghost:!0,onClick:i,children:"取消"}),(0,L.jsx)(J.ZP,{type:"primary",disabled:0===v.length||k,onClick:function(){N()},children:"确定"})]})]})})},Ge=n(20208),Fe=n(52352),We=n(57930),Ue=n(33656),Ve=n.n(Ue),Ye=n(1058),Je=["classroomList","dispatch","user","getData"];U().extend(Ve());var Ke=function(e){var t,n,i,o,r=e.data,a=e.value,s=e.onChange,c=(0,d.useState)({leftSearch:"",rigthSearch:""}),m=u()(c,2),p=m[0],h=m[1],f=(0,d.useState)([]),g=u()(f,2),w=g[0],y=g[1];return(0,d.useEffect)((function(){y((null==a?void 0:a.length)>0?null==r?void 0:r.filter((function(e){return null==a?void 0:a.includes(null==e?void 0:e.id)})):[])}),[a]),(0,L.jsxs)("div",{style:{display:"flex",flexWrap:"nowrap",gap:"20px",height:"400px"},children:[(0,L.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,L.jsx)(j.Z,{indeterminate:(null==w?void 0:w.length)>0&&(null==w?void 0:w.length)<(null==r?void 0:r.length),checked:(null==w?void 0:w.length)==(null==r?void 0:r.length),onChange:function(e){s(e.target.checked?null==r?void 0:r.map((function(e){return null==e?void 0:e.id})):[])},children:"全选"}),(0,L.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,L.jsx)(F.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:p.leftSearch,onChange:function(e){h(l()(l()({},p),{},{leftSearch:e.target.value}))}}),(0,L.jsx)("div",{className:"mt20 ml20 mb20",style:{overflow:"auto"},children:0!==(null===(t=p.leftSearch?null==r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(p.leftSearch)})):r)||void 0===t?void 0:t.length)?(0,L.jsx)(j.Z.Group,{value:a,onChange:function(e){s(e)},children:(0,L.jsx)($.Z,{direction:"vertical",children:null===(n=p.leftSearch?null==r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(p.leftSearch)})):r)||void 0===n?void 0:n.map((function(e,t){return(0,L.jsx)(j.Z,{value:e.id,children:null==e?void 0:e.name},t)}))})}):(0,L.jsx)(le.Z,{styles:{margin:"0 auto"}})})]})]}),(0,L.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,L.jsxs)("div",{children:["已选择",(null==w?void 0:w.length)||0,"个分班"]}),(0,L.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,L.jsx)(F.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:p.rigthSearch,onChange:function(e){h(l()(l()({},p),{},{rigthSearch:e.target.value}))}}),(0,L.jsx)("div",{className:"mt20 ml20 mb20 pr20",style:{display:"flex",flexDirection:"column",gap:"10px",overflow:"auto"},children:0!==(null===(i=p.rigthSearch?null==w?void 0:w.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(p.rigthSearch)})):w)||void 0===i?void 0:i.length)?null===(o=p.rigthSearch?null==w?void 0:w.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(p.rigthSearch)})):w)||void 0===o?void 0:o.map((function(e,t){return(0,L.jsxs)(x.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,L.jsx)(v.Z,{children:null==e?void 0:e.name}),(0,L.jsx)(v.Z,{children:(0,L.jsx)("i",{className:"iconfont icon-piliangshanchu2 font16 current",style:{color:"#3061D0"},onClick:function(){s(null==a?void 0:a.filter((function(t){return t!==(null==e?void 0:e.id)})))}})})]},t)})):(0,L.jsx)(le.Z,{styles:{margin:"0 auto"}})})]})]})]})},qe=(0,m.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,i,r,s,c,h=e.classroomList,f=e.dispatch,w=(e.user,e.getData),y=(T()(e,Je),(0,m.useParams)()),b=G.Z.useForm(),j=u()(b,1)[0],k="批量补交"===(null==h||null===(t=h.actionTabs)||void 0===t?void 0:t.key),C=(0,Ye.U)(ce.c_,l()(l()({},y),null==h||null===(n=h.actionTabs)||void 0===n?void 0:n.params)),A=u()(C,4),S=A[1],N=A[2],Z=A[3],B=(0,Ye.U)(ce.nP,{course_id:null==y?void 0:y.coursesId,homework_ids:null==h||null===(i=h.actionTabs)||void 0===i?void 0:i.selectArrs}),P=u()(B,4),D=P[2],M=P[3],E=(0,Ye.U)(ce.sm,{course_id:null==y?void 0:y.coursesId,homework_ids:null==h||null===(r=h.actionTabs)||void 0===r?void 0:r.selectArrs}),I=u()(E,3),O=I[1],H=I[2],R=function(){var e=a()(o()().mark((function e(){var t=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:{},D({}),e.next=4,N({page:1,limit:2e4,homework_id:1===h.actionTabs.type?"":h.actionTabs.selectArrs[0]});case 4:e.sent;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,d.useEffect)((function(){k&&R()}),[k]),(0,L.jsxs)(g.Z,{centered:!0,title:null==h||null===(s=h.actionTabs)||void 0===s?void 0:s.key,width:800,open:k,cancelText:"暂不补交",okText:"开启补交",onCancel:function(){f({type:"classroomList/setActionTabs",payload:{}})},destroyOnClose:!0,confirmLoading:O,onOk:a()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:j.submit();case 1:case"end":return e.stop()}}),e)}))),children:[(0,L.jsx)("div",{className:"p10 pl20 pr20 c-orange-ff7 mb20",style:{background:"#F6F7F9"},children:"规则说明:补交截止时间必须晚于作业截止时间;当班级阶段进入“补交中”则不可变更作业截止时间、不可关闭补交;当作业状态为未发布、作业已开启统一补交和作业已开启匿评时,新批量补交规则不生效。"}),(0,L.jsxs)(G.Z,{form:j,colon:!1,size:"large",initialValues:{unified_late:!1,late_penalty:5},onFinish:function(){var e=a()(o()().mark((function e(t){var n,i,r,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,H((null==Z||null===(n=Z.course_groups)||void 0===n?void 0:n.length)>0?{unified_late:(null==Z||null===(i=Z.course_groups)||void 0===i?void 0:i.length)<=0,allow_late_settings:[l()({},t)]}:l()({unified_late:(null==Z||null===(r=Z.course_groups)||void 0===r?void 0:r.length)<=0},t));case 2:0==(null==(a=e.sent)?void 0:a.status)&&(p.ZP.success("补交设置成功"),f({type:"classroomList/setActionTabs",payload:{}}),w&&w());case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,L.jsxs)(x.Z,{wrap:!1,gutter:20,children:[(0,L.jsx)(v.Z,{flex:1,children:(0,L.jsx)(G.Z.Item,{label:"补交扣分",name:"late_penalty",rules:[{required:!0,message:"请输入补交扣分"}],children:(0,L.jsx)(F.Z,{placeholder:"请输入补交扣分",min:0,type:"number",suffix:"分",max:Number.MAX_SAFE_INTEGER,style:{width:"50%"}})})}),(0,L.jsx)(v.Z,{flex:"390px",children:(0,L.jsx)(G.Z.Item,{label:"补交截止时间",name:"late_time",rules:[{required:!0,validator:function(e,t,n){return t&&U()(t).startOf("minute")<=U()().startOf("minute")?Promise.reject("作业补交截止时间必须晚于此刻"):t&&U()(t).startOf("minute")<=U()(null==M?void 0:M.max_late_time).startOf("minute")?(p.ZP.warning("补交截止时间不能小于选中作业中最晚作业截止时间:".concat(null==M?void 0:M.max_late_time)),Promise.reject("")):Promise.resolve()}},{required:!0,message:"请先设置补交截止时间"}],children:(0,L.jsx)(We.default,{placeholder:"请选择截止时间",style:{width:"100%"},disabledDate:function(e){return(0,_.BO)(e,{startTime:null==M?void 0:M.max_late_time})},disabledTime:function(e){return(0,_.hv)(e,{compared:null==M?void 0:M.max_late_time})},format:"YYYY-MM-DD HH:mm",showTime:{showSecond:!1,defaultValue:U()("00:00:00","HH:mm:ss")}})})})]}),(null==Z||null===(c=Z.course_groups)||void 0===c?void 0:c.length)>0&&(0,L.jsx)(ee.Z,{spinning:S,children:(0,L.jsx)(G.Z.Item,{name:"group_id",rules:[{required:!0,message:"请先选择班级"}],children:(0,L.jsx)(Ke,{data:(null==Z?void 0:Z.course_groups)||[],onChange:function(e){D({group_ids:e})}})})})]})]})})),Qe=(0,d.createContext)({selectArrs:[]}),Xe=(0,m.connect)((function(e){var t=e.classroomList,n=e.loading,i=e.user;return{classroomList:t,globalSetting:e.globalSetting,user:i,loading:n.effects}}))((function(e){var t,n,i,r,s=e.classroomList,c=e.loading,A=e.dispatch,S=e.user,N=(0,m.useSearchParams)(),T=u()(N,2),B=T[0],P=(T[1],(0,m.useLocation)()),O=(0,m.useParams)(),R=(0,d.useState)(l()(l()({},O),{},{id:O.coursesId,limit:20})),z=u()(R,2),G=z[0],F=z[1],W=(0,d.useState)(!1),U=u()(W,2),Y=U[0],J=U[1],K=(0,d.useState)({ta_mode:1,final_mode:!1,st_proportion:0,ta_proportion:30,te_proportion:70,is_repeat_minus:!1,repeat_setting_score:"",repeat_limit:""}),q=u()(K,2),Q=q[0],X=q[1],$=(0,d.useState)([]),ee=u()($,2),te=ee[0],ne=ee[1],ie=(0,d.useState)(!1),oe=u()(ie,2),re=oe[0],ae=oe[1],se=(0,d.useState)(!1),ce=u()(se,2),ue=ce[0],me=ce[1],xe=(0,d.useState)([]),ve=u()(xe,2),we=ve[0],ye=ve[1],be=(0,d.useState)(!1),ke=u()(be,2),_e=ke[0],Ce=ke[1],Ae=(0,d.useState)("默认排序"),Se=u()(Ae,2),Be=Se[0],Le=Se[1],Pe=s.detailCommonHomeworksList,De=s.detailLeftMenus,Me=s.detailTopBanner,Ee=s.taskList;G.type=1,G.categoryId?G.category=G.categoryId:delete G.category,(0,d.useEffect)((function(){var e=B.get("tabs");e&&void 0!==e&&((0,C.GJ)()?G.status=e:G.order=e)}),[P.search]),(0,d.useEffect)((function(){"0"===B.get("tabs")&&(G.status="0",G.page=1)}),[B.get("tabs")]),(0,d.useEffect)((function(){var e,t;if(null!=S&&null!==(e=S.userInfo)&&void 0!==e&&e.login){var n,i=_.cX.getItem("".concat(null==S||null===(n=S.userInfo)||void 0===n?void 0:n.login).concat((0,C.GJ)()?"Teacher":"Student"),"CommonHomework");i&&(G.sort_by=null==i?void 0:i.type,G.sort_direction=null==i?void 0:i.direction,Le(null==i?void 0:i.name));var o=B.get("tabs"),r=void 0===O.categoryId?{}:{categoryId:O.categoryId,category:O.categoryId};o&&void 0!==o&&((0,C.GJ)()?G.status=o:G.order=o),Ie(r)}else if(null!=S&&null!==(t=S.userInfo)&&void 0!==t&&t.username){var a=B.get("tabs"),s=void 0===O.categoryId?{}:{categoryId:O.categoryId,category:O.categoryId};a&&void 0!==a&&((0,C.GJ)()?G.status=a:G.order=a),Ie(s)}}),[null==S||null===(t=S.userInfo)||void 0===t?void 0:t.login,null==P?void 0:P.pathname]),(0,d.useEffect)((function(){F(l()(l()({},G),O))}),[null==O?void 0:O.categoryId]),(0,d.useEffect)((function(){"清除选择数据"===s.actionTabs.key&&(ne([]),ye([])),"目录重命名成功"===s.actionTabs.key&&Ie()}),[s.actionTabs.key]),(0,d.useEffect)((function(){ne([])}),[Pe]),(0,d.useEffect)((function(){me(!1)}),[G.categoryId]),(0,d.useEffect)((function(){A({type:"classroomList/getAssistantPermissions",payload:{course_id:G.id}})}),[]),(0,d.useEffect)((function(){Pe&&Pe.homeworks&&(te.length===Pe.homeworks.length&&te.length>0?ae(!0):te.length!==Pe.homeworks.length&&ae(!1))}),[te]);var Ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ne([]),ye([]),(0,C.GJ)()?A({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()(l()({},G),e),{},{type:1})}):A({type:"classroomList/getClassroomCommonList",payload:l()(l()({},G),e)})},Oe=function(){var e=a()(o()().mark((function e(){var t,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Z.ZP)("/api/courses/".concat(G.coursesId,"/homework_commons/get_default_score_setting.json"),{method:"get",params:{homework_type:1}});case 2:null!=(t=e.sent)&&t.data&&(n=t.data.score_settings,Object.keys(n).map((function(e){e.indexOf("proportion")>-1&&(n[e]=(100*n[e]).toFixed(0))})),console.log(n),X(l()({},n)));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),He=function(){A({type:"shixunHomeworks/setActionTabs",payload:{key:"题库选用",params:G}})},Re=null===(n=[{key:"publish",label:"批量发布",icon:(0,L.jsx)("i",{className:"iconfont icon-fabu5"}),isShow:!0},{key:"deadline",label:"批量截止",icon:(0,L.jsx)("i",{className:"iconfont icon-piliangjiezhi2"}),isShow:!0},{key:"batchpay",label:"批量补交",icon:(0,L.jsx)("i",{className:"iconfont icon-buka"}),isShow:!0},{key:"delete",label:"批量删除",icon:(0,L.jsx)("i",{className:"iconfont icon-piliangshanchu2"}),isShow:(0,C.GJ)()||(0,C.Rm)()},{key:"public",label:"设为公开",icon:(0,L.jsx)("i",{className:"iconfont icon-sheweigongkai2"}),isShow:Me.is_public}].filter((function(e){return null==e?void 0:e.isShow})))||void 0===n?void 0:n.map((function(e){return delete e.isShow,e})),We=function(){var e=a()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({type:"classroomList/updateTaskPosition",payload:{category_id:G.categoryId,courseId:G.id,task_ids:t,container_type:"common_homework"}});case 2:Ie();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ue=(0,d.useMemo)((function(){var e=[];return Ee.length>0&&(e=Ee.map((function(e){return{user_name:e.user_name,task_name:e.task_name,task_id:e.task_id,category:e.category,status:e.status}}))),e}),[Ee]),Ve=(0,L.jsxs)("div",{className:"mask-tips",children:["计算说明:",(0,L.jsx)("br",{}),"教师评分 * 其百分比 + 助教评分 * 其百分比 + 学生匿评平均分 * 其百分比 - (",(0,L.jsx)("br",{}),"迟交扣分 + 缺评扣分 * 缺评数 + 违规匿评扣分 * 违规匿评数 )",(0,L.jsx)("br",{}),(0,L.jsx)("br",{}),"注意",(0,L.jsx)("br",{}),"非零百分比的评分选项,若评分记录为空,则其百分比将自动平摊到其它非零",(0,L.jsx)("br",{}),"评分选项上。",(0,L.jsx)("br",{}),"例:教师评分40% + 助教评分35% + 学生匿评25%,学生A没有教师评分记",(0,L.jsx)("br",{}),"录,则其最终成绩按照助教评分55% + 学生匿评45%进行计算"]}),Ye=(0,L.jsxs)("div",{className:"mask-tips",children:["计算说明:",(0,L.jsx)("br",{}),"优先顺序排前的非零评分 * 100% -",(0,L.jsx)("br",{}),"( 迟交扣分 + 缺评扣分 * 缺评数 + 违规匿评扣分 * 违规匿评数 )",(0,L.jsx)("br",{}),"例:有教师评分则教师评分100%,否则教辅评分100%,依次类推"]});return(0,L.jsx)(Qe.Provider,{value:{params:G,batchStatus:ue,selectArrs:te,setSelectArrs:ne,allSelect:re,dataSource:Pe.homeworks||[],detailLeftMenus:De,main_category_id:Pe.main_category_id||"",selectArrsAll:we,setAllSelect:ae,useBatchStatus:me,dispatch:A,getData:Ie,setSelectArrsAll:ye},children:(0,L.jsxs)("section",{children:[(0,L.jsxs)("aside",{className:Te,children:[(0,L.jsx)(fe.Z,{isLoading:c[(0,C.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"],tabDataSource:(0,C.GJ)()?[{name:"全部",id:0,total:Pe.all_count||0},{name:"未发布",id:1,total:Pe.unpublished_count||0},{name:"未开始",id:4,total:Pe.not_start_count||0},{name:"进行中",id:2,total:Pe.in_progress_count||0},{name:"已截止",id:3,total:Pe.overed_count||0}]:[{name:"全部",id:0},{name:"提交中",id:1},{name:"补交中",id:2},{name:"匿评中",id:3},{name:"申诉中",id:4},{name:"已截止",id:5}],isAdmin:(0,C.GJ)(),dispatch:A,type:null==Pe?void 0:Pe.main_category_name,exportType:"normal",TooltipTitle:G.categoryId?"目录重命名":"新建子目录",categoryId:G.categoryId,dropdownMenu:[{name:"新建图文作业",id:"1"},{name:"选用资源",id:"2"},{name:"导入外部成绩",id:"3"}],showControlButton:(0,C.GJ)(),isShowRightControl:"未分配目录"!==(0,_.Oo)(null==De?void 0:De.course_modules,G.categoryId),onTabMenuClick:function(e){void 0!==e.id&&((0,C.GJ)()?G.status=e.id:G.order=e.id),me(!1),G.page=1,m.history.replace("".concat(P.pathname,"?tabs=").concat(e.id)),Ie(G)},defaultSelectedKeys:[B.get("tabs")?B.get("tabs"):"0"],onsetClick:function(){Oe(),J(!0)},onTooltipTitleClick:function(){A({type:"classroomList/setActionTabs",payload:{key:G.categoryId?"目录重命名":"添加目录",params:G,selectArrs:{category_name:null==Pe?void 0:Pe.category_name,category_id:(null==Pe?void 0:Pe.category_id)||(null==Pe?void 0:Pe.main_category_id)},cb:function(){Ie()}}})},onDropdownMenuClick:function(e){var t;!(0,C.Rm)()||null!==(t=s.AssistantObject.normal)&&void 0!==t&&t.can_create?"1"===e?m.history.push("/classrooms/".concat(G.coursesId,"/common_homework/").concat(G.categoryId,"/add")):"2"===e?He():"3"===e&&A({type:"classroomList/setActionTabs",payload:{key:"导入外部成绩",type:"normal"}}):p.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),(0,L.jsx)(ge.Z,{dataSource:Pe.homeworks||[],isAdmin:(0,C.GJ)(),batchStatus:!0,SortMenuName:Be,setSortMenuName:Le,onSearch:function(e){G.search=e,G.page=1,Ie()},onSort:function(e){var t;G.sort_by=e.type,G.sort_direction=e.direction,G.page=1,_.cX.setItem("".concat(null==S||null===(t=S.userInfo)||void 0===t?void 0:t.login).concat((0,C.GJ)()?"Teacher":"Student"),e,"CommonHomework"),Ie(G)},onBatch:function(e){return me(e)}})]}),0===(null==Pe?void 0:Pe.all_count)&&(0,C.GJ)()?!c[(0,C.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,L.jsx)(pe,{params:G,dispatch:A,onSelect:He}):(null==Pe?void 0:Pe.homeworks)&&0===Pe.homeworks.length&&!c[(0,C.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,L.jsx)(le.Z,{}),(0,L.jsx)("aside",{className:"minH500 skt-loading relative pb40 mb30",children:!c[(0,C.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("aside",{className:"animated fadeIn",children:[null==Pe||null===(i=Pe.homeworks)||void 0===i?void 0:i.map((function(e,t){return(0,L.jsx)(Ne,{dataSource:e,params:G,manageAllGroup:null==Pe?void 0:Pe.manage_all_group},t)})),!c[(0,C.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,L.jsx)("aside",{className:"tc mb50 mt30",children:(null==Pe?void 0:Pe.query_total_count)>10&&(0,L.jsx)(h.Z,{showSizeChanger:!0,onChange:function(e,t){G.page=e,G.limit=t,Ie()},defaultCurrent:1,current:G.page||1,pageSize:G.limit||20,total:Pe.query_total_count})})]}),te.length>0&&(0,C.GJ)()&&(0,L.jsx)(f.Z,{offsetBottom:0,children:(0,L.jsx)(je,{buttonDataSource:Re,onClick:function(e){var t,n;if(0===te.length)return p.ZP.warning("请选择你要操作的任务"),!1;var i=e.label||"",o={key:i,selectArrs:te,selectArrsAll:we,type:["publish","deadline"].includes(e.key)?1:"",params:G};switch(e.key){case"publish":if((0,C.Rm)()&&(null==s||null===(t=s.AssistantObject)||void 0===t||null===(t=t.normal)||void 0===t||!t.can_publish))return void p.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");i="立即发布";break;case"deadline":if((0,C.Rm)()&&(null==s||null===(n=s.AssistantObject)||void 0===n||null===(n=n.normal)||void 0===n||!n.can_stop))return void p.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");i="立即截止";break;case"batchpay":i="批量补交";break;case"delete":i="删除";break;case"collection":i="收藏"}A({type:"classroomList/setActionTabs",payload:l()(l()({},o),{},{key:i})})}})})]})}),"批量补交"===(null==s||null===(r=s.actionTabs)||void 0===r?void 0:r.key)&&(0,L.jsx)(qe,{getData:Ie}),(0,L.jsx)(D,{onCallback:function(){return me(!1)}}),(0,L.jsx)(Ge.Z,{onOk:function(){Ie()}}),(0,L.jsx)(Fe.Z,{onOk:function(){}}),(0,L.jsx)(M.Z,{onCallback:function(){return me(!1)},courseEndTime:null==Pe?void 0:Pe.course_end_time}),(0,L.jsx)(E.Z,{courseEndTime:null==Pe?void 0:Pe.course_end_time,visible:"立即截止"===s.actionTabs.key,homeworkIds:s.actionTabs.selectArrs,courseId:O.coursesId,isBatch:2!==s.actionTabs.type,successCallback:function(){me(!1),Ie()}}),(0,L.jsx)(I,{}),(0,L.jsx)(H,{onCallback:function(){return me(!1)}}),(0,L.jsx)(V,{onCallback:function(){return me(!1)}}),(0,L.jsx)(de,{refreshList:Ie}),(0,L.jsx)(he.Z,{}),(0,L.jsx)(Ze.Z,{visible:"调整排序"===s.actionTabs.key,callback:We,data:Ue,onCancel:function(){A({type:"classroomList/setActionTabs",payload:{key:""}})}}),_e&&(0,L.jsx)(ze,{courseId:G.coursesId,type:"1",onCancel:function(){return Ce(!1)}}),(0,L.jsx)(g.Z,{open:Y,title:"默认评分设置",centered:!0,onCancel:function(){J(!1)},onOk:a()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=JSON.parse(JSON.stringify(Q)),Object.keys(t).map((function(e){e.indexOf("proportion")>-1&&(t[e]=t[e]/100)})),e.next=4,(0,Z.ZP)("/api/courses/".concat(G.coursesId,"/homework_commons/set_default_score_setting.json"),{method:"post",body:{homework_type:1,score_settings:t}});case 4:0===e.sent.status&&(p.ZP.success("设置成功"),J(!1));case 6:case"end":return e.stop()}}),e)}))),width:800,children:(0,L.jsxs)("div",{children:[(0,L.jsx)(x.Z,{children:(0,L.jsx)(v.Z,{span:24,children:(0,L.jsx)(x.Z,{align:"middle",children:(0,L.jsx)(v.Z,{span:24,children:(0,L.jsx)("div",{className:"mt15",children:"该默认规则将被应用于你后续新建的图文作业,且不会影响你已创建的作业以及其他老师新建作业的评分规则。"})})})})}),(0,L.jsxs)(x.Z,{className:"mt25",children:[(0,L.jsx)(v.Z,{children:(0,L.jsx)("strong",{children:"助教评分"})}),(0,L.jsx)(v.Z,{span:24,className:"pl30 mt10"})]}),(0,L.jsx)(x.Z,{children:(0,L.jsxs)(w.ZP.Group,{value:null==Q?void 0:Q.ta_mode,onChange:function(e){Q.ta_mode=e.target.value,X(l()({},Q))},children:[(0,L.jsxs)(w.ZP,{value:1,style:{marginTop:15},children:[(0,L.jsx)("strong",{children:"普通模式"}),(0,L.jsx)("span",{className:"c-grey-c",children:"(选中,则取各助教最终评分的平均分)"})]}),(0,L.jsx)("br",{}),(0,L.jsxs)(w.ZP,{value:0,style:{marginTop:15},children:[(0,L.jsx)("strong",{children:"复审模式"}),(0,L.jsx)("span",{className:"c-grey-c",children:"(选中,则只取最新的助教评分)"})]})]})}),(0,L.jsxs)(x.Z,{className:"mt25",children:[(0,L.jsx)(v.Z,{children:(0,L.jsx)("strong",{children:"最终成绩组成"})}),(0,L.jsx)(v.Z,{span:24,className:"pl30 mt10"})]}),(0,L.jsxs)(x.Z,{children:[(0,L.jsxs)(w.ZP.Group,{value:Q.final_mode,onChange:function(e){Q.final_mode=e.target.value,X(l()({},Q))},children:[(0,L.jsxs)(w.ZP,{value:!1,style:{marginTop:15},children:[(0,L.jsx)("strong",{children:"多项评分配比"}),(0,L.jsxs)("span",{className:"c-grey-c",children:["(选中,则按照比例计算最终成绩)",(0,L.jsx)(y.Z,{placement:"bottomLeft",content:Ve,trigger:"click",children:(0,L.jsx)(k.Z,{className:"ml20 current"})})]})]}),(0,L.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,L.jsx)(v.Z,{children:"教师评分:"}),(0,L.jsxs)(v.Z,{className:"ml5",children:[(0,L.jsx)(b.Z,{min:0,max:100,value:Q.te_proportion,onChange:function(e){Q.te_proportion=e,X(Object.assign({},Q))}}),(0,L.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,L.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,L.jsx)(v.Z,{children:"助教评分:"}),(0,L.jsxs)(v.Z,{className:"ml5",children:[(0,L.jsx)(b.Z,{min:0,max:100,value:Q.ta_proportion,onChange:function(e){Q.ta_proportion=e,X(Object.assign({},Q))}}),(0,L.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,L.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,L.jsx)(v.Z,{children:"学生匿评:"}),(0,L.jsxs)(v.Z,{className:"ml5",children:[(0,L.jsx)(b.Z,{min:0,max:100,value:Q.st_proportion,onChange:function(e){Q.st_proportion=e,X(Object.assign({},Q))}}),(0,L.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,L.jsx)("br",{}),(0,L.jsxs)(w.ZP,{value:!0,style:{marginTop:15},children:[(0,L.jsx)("strong",{children:"单项评分优先"}),(0,L.jsxs)("span",{className:"c-grey-c",children:["(选中,则按照优先顺序计算最终成绩)",(0,L.jsx)(y.Z,{placement:"bottomLeft",content:Ye,trigger:"click",children:(0,L.jsx)(k.Z,{className:"ml20 current"})})]})]})]}),(0,L.jsx)("br",{})]}),(0,L.jsx)("div",{style:{paddingLeft:77},children:"(教师评分 → 教辅评分 → 学生匿评评分)"}),(0,L.jsxs)(x.Z,{className:"mt25",children:[(0,L.jsx)(v.Z,{children:(0,L.jsxs)("strong",{children:[(0,L.jsx)(j.Z,{checked:Q.is_repeat_minus,style:{fontSize:"16px"},onChange:function(e){Q.is_repeat_minus=e.target.checked,X(Object.assign({},Q))},children:"文档查重扣分"})," ",(0,L.jsx)("span",{style:{fontSize:"14px"},className:"c-grey-c",children:"(修改后需要进行“文档查重”,扣分规则才生效)"})]})}),(0,L.jsx)(v.Z,{span:24,className:"pl30 mt10"})]}),(null==Q?void 0:Q.is_repeat_minus)&&(0,L.jsxs)("div",{style:{paddingLeft:35},children:[(0,L.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,L.jsx)(v.Z,{children:"查重扣分:"}),(0,L.jsx)(v.Z,{className:"ml5",children:(0,L.jsx)(b.Z,{min:0,max:100,value:Q.repeat_setting_score,onChange:function(e){Q.repeat_setting_score=e,X(Object.assign({},Q))}})})]}),(0,L.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,L.jsx)(v.Z,{children:"扣分阀值:"}),(0,L.jsxs)(v.Z,{className:"ml5",children:[(0,L.jsx)(b.Z,{min:0,max:100,value:Q.repeat_limit,onChange:function(e){Q.repeat_limit=e,X(Object.assign({},Q))}}),(0,L.jsx)("span",{className:"ml10",children:"%"})]})]})]})]})})]})})}))},52352:function(e,t,n){"use strict";var i=n(82242),o=n.n(i),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),u=n.n(c),d=n(79800),m=n.n(d),p=n(59301),h=n(59028),f=n(78241),g=n(43418),x=n(8591),v=n(61998),w=n(5296),y=n(92723),b=n(57102),j=n(18030),k=n(61186),_=n.n(k),C=n(21082),A=n(37712),S=h.Z.Dragger;t.Z=(0,w.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,i=e.dispatch,r=e.onOk,s=((0,w.useParams)(),f.Z.useForm()),c=m()(s,1)[0],d=(0,p.useState)(),h=m()(d,2),k=h[0],N=h[1],T=(0,p.useState)(!1),Z=m()(T,2),B=Z[0],L=Z[1],P={height:100,onRemove:function(){N("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:(t=u()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,p.useEffect)((function(){c.setFieldsValue(a()(a()({},"publish_time",_()(_()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",_()(_()(new Date((0,C.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),[]),(0,A.jsx)(g.Z,{centered:!0,title:"补充成绩",open:"补充成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:B},onOk:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){c.resetFields(),i({type:"classroomList/setActionTabs",payload:{}})},children:(0,A.jsxs)(f.Z,{form:c,onFinish:function(){var e=u()(l()().mark((function e(t){var o,a,s,u,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=k&&k.size){e.next=3;break}return x.ZP.info("请上传文件"),e.abrupt("return");case 3:return L(!0),(o=new FormData).append("type",n.actionTabs.type),o.append("file",k),a=window.location.href.indexOf("exercise")>-1?"/api/exercises/".concat(n.actionTabs.id,"/supplement_score.json"):"/api/homework_commons/".concat(n.actionTabs.id,"/supplement_score.json"),e.next=10,(0,j.ZP)(a,{method:"post",body:o},!0);case 10:s=e.sent,L(!1),0===(null==s?void 0:s.status)&&(r(),c.resetFields(),i({type:"classroomList/setActionTabs",payload:{}}),(null==s||null===(u=s.data)||void 0===u||null===(u=u.fail)||void 0===u?void 0:u.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,A.jsx)(v.Z,{pagination:!1,dataSource:null==s||null===(d=s.data)||void 0===d?void 0:d.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,C.FH)("",y.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,A.jsx)(f.Z.Item,{label:"作业名称",labelCol:{span:3},name:"name",children:n.actionTabs.name}),(0,A.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,A.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,A.jsxs)("div",{children:[(0,A.jsx)("a",{download:"模版.xlsx",className:b.Z.downloadbutton,href:y.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,A.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,A.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,A.jsxs)(S,o()(o()({},P),{},{children:[(0,A.jsx)("a",{className:b.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,A.jsx)("br",{}),(0,A.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},20208:function(e,t,n){"use strict";var i=n(82242),o=n.n(i),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),u=n.n(c),d=n(79800),m=n.n(d),p=n(59301),h=n(59028),f=n(78241),g=n(43418),x=n(8591),v=n(61998),w=n(92832),y=n(95237),b=n(43604),j=n(94001),k=n(57930),_=n(5296),C=n(16318),A=n(92723),S=n(57102),N=n(18030),T=n(63363),Z=n(61186),B=n.n(Z),L=n(21082),P=n(37712),D=h.Z.Dragger;t.Z=(0,_.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,i=e.dispatch,r=e.onOk,s=(0,_.useParams)(),c=f.Z.useForm(),d=m()(c,1)[0],h=(0,p.useState)(),Z=m()(h,2),M=Z[0],E=Z[1],I=(0,p.useState)(!1),O=m()(I,2),H=O[0],R=O[1],z={height:100,onRemove:function(){E("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:(t=u()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return E(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,p.useEffect)((function(){d.setFieldsValue(a()(a()({},"publish_time",B()(B()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",B()(B()(new Date((0,L.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),["导入外部成绩"===n.actionTabs.key]),(0,P.jsx)(g.Z,{centered:!0,title:"导入外部成绩",open:"导入外部成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:H},onOk:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:d.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){d.resetFields(),i({type:"classroomList/setActionTabs",payload:{}})},children:(0,P.jsxs)(f.Z,{form:d,colon:!1,onFinish:function(){var e=u()(l()().mark((function e(t){var o,a,c,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=M&&M.size){e.next=3;break}return x.ZP.info("请上传文件"),e.abrupt("return");case 3:return R(!0),(o=new FormData).append("name",t.name),o.append("type",n.actionTabs.type),o.append("category_id",(null==s?void 0:s.categoryId)||null),"exercise"===n.actionTabs.type?(o.append("time",t.time||""),o.append("total_score",t.total_score)):o.append("description",t.description||""),o.append("publish_time",B()(t.publish_time).format("YYYY-MM-DD HH:mm")),o.append("end_time",B()(t.end_time).format("YYYY-MM-DD HH:mm")),o.append("file",M),e.next=14,(0,N.ZP)("/api/courses/".concat(s.coursesId,"/export_external_score_homework.json"),{method:"post",body:o},!0);case 14:a=e.sent,R(!1),0===(null==a?void 0:a.status)&&(d.resetFields(),i({type:"classroomList/setActionTabs",payload:{}}),r(),(null==a||null===(c=a.data)||void 0===c||null===(c=c.fail)||void 0===c?void 0:c.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,P.jsx)(v.Z,{pagination:!1,dataSource:null==a||null===(u=a.data)||void 0===u?void 0:u.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,L.FH)("",A.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,P.jsx)(f.Z.Item,{label:"exercise"!==n.actionTabs.type?"作业":"试卷名称",labelCol:{span:3},name:"name",rules:[{required:!0,message:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称")}],children:(0,P.jsx)(w.Z,{showCount:!0,placeholder:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称"),maxLength:60})}),"exercise"!==n.actionTabs.type&&(0,P.jsx)(f.Z.Item,{label:"作业描述",labelCol:{span:3},name:"description",children:(0,P.jsx)(C.Z,{watch:!0})}),"exercise"===n.actionTabs.type&&(0,P.jsxs)(y.Z,{style:{marginLeft:6},children:[(0,P.jsx)(b.Z,{span:12,children:(0,P.jsx)(f.Z.Item,{label:"试卷总分",name:"total_score",rules:[{required:!0,message:"请填写试卷总分"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"试卷总分必须为正数"}],children:(0,P.jsx)(w.Z,{placeholder:"请输入试卷总分",style:{width:256},addonAfter:"分"})})}),(0,P.jsx)(b.Z,{span:12,children:(0,P.jsx)(f.Z.Item,{label:"答题时长",labelCol:{span:6},name:"time",children:(0,P.jsx)(j.Z,{style:{width:"100%"},addonAfter:"分钟",placeholder:"请输入答题时长"})})})]}),(0,P.jsxs)(y.Z,{style:{marginLeft:6,marginBottom:12},children:[(0,P.jsx)(b.Z,{span:12,children:(0,P.jsx)(f.Z.Item,{label:"开始时间",name:"publish_time",rules:[{required:!0,message:"请选择开始时间"}],children:(0,P.jsx)(k.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:256},disabledDate:function(e){return(0,T.Q8)(e)},disabledTime:function(e){return(0,T.d0)(e)},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})}),(0,P.jsx)(b.Z,{span:12,children:(0,P.jsx)(f.Z.Item,{label:"结束时间",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"请选择结束时间"}],children:(0,P.jsx)(k.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:function(e){return(0,T.Q8)(e,"",d.getFieldValue("publish_time"))},disabledTime:function(e){return(0,T.d0)(e,d.getFieldValue("publish_time"))},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})})]}),(0,P.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,P.jsxs)("div",{children:[(0,P.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,P.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,P.jsxs)("div",{children:[(0,P.jsx)("a",{download:"模版.xlsx",className:S.Z.downloadbutton,href:A.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,P.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,P.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,P.jsxs)(D,o()(o()({},z),{},{children:[(0,P.jsx)("a",{className:S.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},95335:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),u=n(92832),d=n(24905),m=n(95237),p="leftdiv___aBzsX",h="listClass___bxIEW",f="spantitle___v_Vc4",g="rightdiv___xWu4M",x=n(54313),v=n(37712),w=function(e){var t=e.data,n=(e.value,e.handleChangePage,e.setSelectedRowKeys),i=e.selectedRowKeys,r=(e.onChange,(0,c.useState)([])),s=l()(r,2),w=s[0],y=s[1],b=(0,c.useState)([]),j=l()(b,2),k=j[0],_=j[1],C=(0,c.useState)([]),A=l()(C,2),S=A[0],N=A[1],T=(0,c.useState)(1),Z=l()(T,2),B=(Z[0],Z[1],(0,c.useState)()),L=l()(B,2);L[0],L[1];return(0,c.useEffect)((function(){y(t),_([]),N([])}),[t]),(0,c.useEffect)((function(){n&&(_(i),N(i))}),[i]),(0,v.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,v.jsxs)("div",{className:p,children:[(0,v.jsx)(u.Z.Search,{size:"middle",onChange:function(){var e=a()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y(t.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(n.target.value)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),placeholder:"可输入班级名称查询"}),0===w.length&&(0,v.jsx)(x.Z,{styles:{margin:"70px auto"},customText:"暂无分班"}),(0,v.jsx)("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"},children:(0,v.jsx)(d.Z.Group,{value:k.map((function(e){return"".concat(e.id)})),onChange:function(e){n(w.filter((function(t){return e.includes("".concat(t.id))})))},style:{marginTop:"10px",flexDirection:"column"},children:w.map((function(e,t){return(0,v.jsx)(m.Z,{style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200},children:(0,v.jsx)(d.Z,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:e.is_published,value:"".concat(e.id),children:(0,v.jsxs)("div",{className:h,children:[(0,v.jsx)("span",{className:f,style:{width:e.is_published?"108px":"170px"},children:e.name}),e.is_published&&(0,v.jsx)("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"},children:"已发布"})]})})},e.id)}))})})]}),(0,v.jsxs)("div",{className:g,children:[(0,v.jsx)(u.Z.Search,{onChange:function(e){N(k.filter((function(t){return t.name.includes(e.target.value)})))},size:"middle",placeholder:"可输入班级名称查询"}),0===S.length&&(0,v.jsx)(x.Z,{styles:{margin:"70px auto"},customText:"暂未选择分班"}),S.length>0&&(0,v.jsx)("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"},children:(0,v.jsx)("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0},children:S.map((function(e,t){return(0,v.jsxs)(m.Z,{justify:"space-between",style:{marginTop:"10px"},children:[(0,v.jsx)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"},children:e.name}),(0,v.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){n(k.filter((function(t){return"".concat(t.id)!="".concat(e.id)})))}})]},e.id)}))})})]})]})}},72764:function(e,t,n){"use strict";n.d(t,{Ei:function(){return v},rU:function(){return w},ZP:function(){return y}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),s=n(59301),l={wrap:"wrap___W3YuU",title:"title___OzKge",exhibition:"exhibition___ugphm"},c=n(78241),u=n(95237),d=n(43604),m=n(24905),p=n(94001),h=n(6848),f=n(92310),g=n.n(f),x=n(37712),v=function(e){var t=e.value,n=e.className,i=e.style,o=(0,s.useState)("0"),r=a()(o,2),c=r[0],u=r[1];(0,s.useEffect)((function(){if(t){var e=t.submit_limit,n=t.must_file;if(e&&n)return void u("1");if(e&&!n)return void u("2");if(!e&&n)return void u("3")}}),[t]);var d={1:(0,x.jsxs)("span",{children:["作业内容至少填写",(0,x.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符,并且必须上传相关附件。"]}),2:(0,x.jsxs)("span",{children:["作业内容至少填写",(0,x.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符"]}),3:(0,x.jsx)("span",{children:"必须上传相关附件。"})};return"0"===c?(0,x.jsx)(x.Fragment,{}):(0,x.jsxs)("section",{className:g()(l.exhibition,n),style:i,children:[(0,x.jsx)("span",{className:"c-grey-666 mr10",children:"提交作业要求:"}),null==d?void 0:d[c]]})},w=function(e){var t=e.className,n=e.style,i=e.form,o=c.Z.useWatch("submit_limit",i),r=c.Z.useWatch("can_submit",i);return(0,x.jsx)("section",{className:g()(l.newWrap,t),style:n,children:(0,x.jsxs)("div",{style:{padding:"20px 0",borderBottom:"1px solid #EDEDED"},children:[(0,x.jsx)("h1",{children:"提交设置"}),(0,x.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,x.jsx)(d.Z,{children:(0,x.jsx)(c.Z.Item,{name:"can_submit",valuePropName:"checked",children:(0,x.jsx)(m.Z,{children:(0,x.jsx)("span",{className:"font16",children:"限制学生提交作品"})})})}),(0,x.jsx)(d.Z,{children:(0,x.jsx)(c.Z.Item,{name:"submit_num",rules:r&&[{required:!0,message:"请填写作品次数"}],children:(0,x.jsx)(p.Z,{precision:0,min:1,disabled:!r})})}),(0,x.jsx)(d.Z,{children:"次"}),(0,x.jsxs)(d.Z,{children:[" ",(0,x.jsx)(h.Z,{overlayInnerStyle:{width:520},title:(0,x.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,x.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,x.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,x.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999"})})]})]}),(0,x.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,x.jsx)(d.Z,{children:(0,x.jsx)(c.Z.Item,{name:"submit_limit",valuePropName:"checked",children:(0,x.jsx)(m.Z,{children:(0,x.jsx)("span",{className:"font16",children:"学生填写内容至少"})})})}),(0,x.jsx)(d.Z,{children:(0,x.jsx)(c.Z.Item,{name:"submit_limit_num",rules:o&&[{required:!0,message:"字数不能为空"}],children:(0,x.jsx)(p.Z,{precision:0,min:1,disabled:!o})})}),(0,x.jsx)(d.Z,{children:"字"})]}),(0,x.jsx)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:(0,x.jsx)(d.Z,{children:(0,x.jsx)(c.Z.Item,{name:"must_file",valuePropName:"checked",children:(0,x.jsx)(m.Z,{children:(0,x.jsx)("span",{className:"font16",children:"学生提交作业必须上传附件"})})})})})]})})},y=function(e){var t=e.value,n=e.onChange,i=e.className,r=e.style,c=e.disabled,d=void 0!==c&&c,f=(0,s.useState)({}),v=a()(f,2),w=v[0],y=v[1];(0,s.useEffect)((function(){if(console.log(t,"value"),t){var e={submit_limit:null==t?void 0:t.submit_limit,submit_limit_num:null==t?void 0:t.submit_limit_num,must_file:null==t?void 0:t.must_file,can_submit:null==t?void 0:t.can_submit,submit_num:null==t?void 0:t.submit_num};y(o()({},e))}}),[t]);var b=function(e){var t=o()(o()({},w),e);n(t)};return(0,x.jsxs)("section",{className:g()(l.wrap,i),style:r,children:[(0,x.jsx)("div",{className:l.title,children:"提交设置"}),(0,x.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,x.jsx)(m.Z,{disabled:d,checked:null==w?void 0:w.can_submit,onChange:function(e){return b({can_submit:e.target.checked})}}),(0,x.jsx)("span",{className:"ml10 mr10",children:"限制学生提交作业"}),(0,x.jsx)(p.Z,{precision:0,min:1,disabled:d||!(null!=w&&w.can_submit),value:null==w?void 0:w.submit_num,onChange:function(e){return b({submit_num:e})}}),(0,x.jsx)("span",{className:"ml5",children:"次"}),(0,x.jsx)(h.Z,{overlayInnerStyle:{width:520},title:(0,x.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,x.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,x.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,x.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999 ml5"})})]}),(0,x.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,x.jsx)(m.Z,{disabled:d,checked:null==w?void 0:w.submit_limit,onChange:function(e){return b({submit_limit:e.target.checked})}}),(0,x.jsx)("span",{className:"ml10 mr10",children:"学生填写内容至少"}),(0,x.jsx)(p.Z,{precision:0,min:1,disabled:d||!(null!=w&&w.submit_limit),value:null==w?void 0:w.submit_limit_num,onChange:function(e){return b({submit_limit_num:e})}}),(0,x.jsx)("span",{className:"ml5",children:"字"})]}),(0,x.jsxs)(u.Z,{align:"middle",children:[(0,x.jsx)(m.Z,{disabled:d,checked:null==w?void 0:w.must_file,onChange:function(e){return b({must_file:e.target.checked})}}),(0,x.jsx)("span",{className:"ml10",children:"学生提交作业必须上传附件"})]})]})}},75774:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301),m=n(43418),p=n(96865),h=n(95237),f=n(6848),g="wrap___KDoq2",x="tip___WEJuX",v="listWrap___IJDX4",w="li___r5con",y="nameWrap___PUyEz",b="name___xuUMY",j="tag___l5CW2",k=n(78018),_=n(5296),C=n(37712),A=function(e){var t,n,i=e.type,r=void 0===i?1:i,s=e.data,c=e.visible,A=e.callback,S=e.onCancel,N=(0,d.useState)([]),T=u()(N,2),Z=T[0],B=T[1],L=(0,_.useSelector)((function(e){return e.loading}));(0,d.useEffect)((function(){B(s)}),[JSON.stringify(s)]);var P=function(e){var t={};if(1===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"未开始":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"提交中":{background:"rgba(0,177,135,0.2)",color:"#00B187"},"已截止":{background:"rgba(229,51,51,0.2)",color:"#E53333"}}[e]}if(2===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"预发布":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"已发布":{background:"rgba(0,177,135,0.2)",color:"#00B187"}}[e]}return(0,C.jsx)("div",{className:j,style:l()({},t),children:e})},D=function(){var e=a()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:A(Z.map((function(e){return e.task_id})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,C.jsx)(m.Z,{centered:!0,destroyOnClose:!0,open:c,onCancel:S,onOk:D,confirmLoading:null==L||null===(t=L.effects)||void 0===t?void 0:t["classroomList/updateTaskPosition"],okText:"保存",title:"调整排序",width:850,children:(0,C.jsxs)("div",{className:g,children:[(0,C.jsxs)("div",{className:x,children:[(0,C.jsx)("i",{className:"iconfont icon-tishi9 font14 mr10"}),(0,C.jsx)("span",{children:"提示:请在列表中长按鼠标左键,进行拖放排序。完成排序后请点击“保存”"})]}),(0,C.jsx)(p.Z,{loading:null==L||null===(n=L.effects)||void 0===n?void 0:n["classroomList/getAllTaskList"],active:!0,className:"mt20",paragraph:{rows:5},children:(0,C.jsx)(k.Z5,{onDragEnd:function(e){return function(e,t){if(e.destination){var n=function(e,t,n){var i=Array.from(e),o=i.splice(t,1),r=u()(o,1)[0];return i.splice(n,0,r),i}(t,e.source.index,e.destination.index);B(n)}}(e,Z)},children:(0,C.jsx)(k.bK,{droppableId:"droppable",children:function(e,t){return(0,C.jsxs)("div",l()(l()({ref:e.innerRef},e.droppableProps),{},{className:v,children:[Z.map((function(e,t){return(0,C.jsx)(k._l,{draggableId:e.task_id.toString(),index:t,children:function(t,n){return(0,C.jsxs)("div",l()(l()(l()({ref:t.innerRef},t.draggableProps),t.dragHandleProps),{},{className:w,children:[(0,C.jsxs)(h.Z,{align:"middle",children:[(0,C.jsx)("div",{className:y,children:(0,C.jsx)(f.Z,{title:null==e?void 0:e.task_name,children:(0,C.jsx)("div",{className:b,children:null==e?void 0:e.task_name})})}),P(null==e?void 0:e.status)]}),(0,C.jsx)(h.Z,{align:"middle",className:"font12 mt10",children:(0,C.jsxs)("span",{className:"mr30 c-grey-666",children:["管理员",(0,C.jsx)("span",{className:"ml5 c-black",children:(null==e?void 0:e.user_name)||"--"})]})})]}))}},e.task_id)})),e.placeholder]}))}})})})]})})}},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return l},JZ:function(){return u},bN:function(){return p},jP:function(){return m},rO:function(){return c}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),s=n(18030);function l(e){return(0,s.U2)("libraries/".concat(e,".json"))}function c(){return(0,s.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return(0,s.v_)("libraries.json",e)}function p(e,t){return(0,s.gz)("libraries/".concat(e,".json"),t)}},1058:function(e,t,n){"use strict";n.d(t,{U:function(){return m}});var i=n(7557),o=n.n(i),r=n(82242),a=n.n(r),s=n(41498),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301);function m(e,t){var n=(0,d.useState)(t),i=u()(n,2),r=i[0],s=i[1],c=(0,d.useState)(!1),m=u()(c,2),p=m[0],h=m[1],f=(0,d.useState)(),g=u()(f,2),x=g[0],v=g[1],w=function(){var n=l()(o()().mark((function n(i){var l,c,u,d=arguments;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return l=d.length>1&&void 0!==d[1]&&d[1],c=l?t:a()(a()({},r),i),h(!0),s(c),n.next=6,e(c);case 6:return u=n.sent,h(!1),v(u),n.abrupt("return",u);case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return[r,p,w,x]}},32858:function(e,t,n){"use strict";n.d(t,{_:function(){return g}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),s=n(99681),l=n(43418),c=n(8591),u=n(61998),d=n(21082),m=(n(59301),n(37712)),p=function(){var e=a()(o()().mark((function e(t){var n,i,r,a,l,c,u;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.is_jupyter,i=t.is_jupyter_lab,r=t.shixunId,a=t.homework_common_id,l=t.courseId,!n&&!i){e.next=7;break}return e.next=4,(0,s.BK)({id:r});case 4:return null!=(c=e.sent)&&c.identifier&&(0,d.xg)("/tasks/".concat(c.identifier,"/jupyter?homework_common_id=").concat(a)),e.abrupt("return");case 7:return e.next=9,(0,s.Ir)({id:r,homework_common_id:a});case 9:if(null==(u=e.sent)||!u.game_identifier){e.next=13;break}return(0,d.xg)("/tasks/".concat(l,"/").concat(a,"/").concat(u.game_identifier)),e.abrupt("return");case 13:2===(null==u?void 0:u.status)?h(null==u?void 0:u.message,a,l):3===(null==u?void 0:u.status)?f(null==u?void 0:u.message):-3==(null==u?void 0:u.status)&&(0,d.eF)();case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function e(t,n,i){var r,u;t=null!==(r=t)&&void 0!==r&&r.includes(".json")?t:"".concat(t,".json"),l.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,m.jsx)("div",{className:"tc font16",children:" 实训已经更新了,正在为您重置!"}),onOk:(u=a()(o()().mark((function r(){var a,l;return o()().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,s.$Q)({url:t});case 2:if(a=o.sent){o.next=5;break}return o.abrupt("return");case 5:return c.ZP.success("重置成功,正在进入实践项目!"),o.next=8,(0,s.Ir)({id:a.shixun_identifier,homework_common_id:n});case 8:if(null==(l=o.sent)||!l.game_identifier){o.next=12;break}return(0,d.xg)("/tasks/".concat(i,"/").concat(n,"/").concat(l.game_identifier)),o.abrupt("return");case 12:2===(null==l?void 0:l.status)?e(null==l?void 0:l.message,n,i):3===(null==l?void 0:l.status)&&f(null==l?void 0:l.message);case 13:case"end":return o.stop()}}),r)}))),function(){return u.apply(this,arguments)})})},f=function(e){l.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,m.jsxs)("div",{className:"tc font16",children:[" 目前该实践项目尚在内测中,将于",e,"之后开放,谢谢!"]})})},g=function(){var e=a()(o()().mark((function e(t,n){var i,r,a,c,d,h,f;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.is_jupyter,r=n.is_jupyter_lab,e.next=3,(0,s.WT)(t);case 3:if(!((a=e.sent).length>1)){e.next=7;break}return l.Z.info({icon:null,closable:!0,maskClosable:!0,centered:!0,width:820,okButtonProps:{style:{display:"none"}},title:"提示",content:(0,m.jsxs)("div",{children:[(0,m.jsxs)("div",{children:["你当前有",a.length,"个进行中的实训作业使用该实践项目,请在下方点击实训作业名称进入实训挑战页面:"]}),(0,m.jsx)(u.Z,{pagination:!1,columns:[{title:"课堂名称",dataIndex:"course_name",ellipsis:!0,width:180,align:"center"},{title:"作业名称",dataIndex:"name",ellipsis:!0,width:240,align:"center",render:function(e,t){var n=t||{},i=n.course_identifier,o=n.id;return(0,m.jsx)("a",{target:"_blank",href:"/classrooms/".concat(i,"/shixun_homework/").concat(o,"/detail"),children:e})}},{title:"作业截止时间",dataIndex:"end_time",align:"center"},{title:"操作",align:"center",render:function(e,t){var n=t.course_identifier,o=t.id,a=t.shixun_identifier;return(0,m.jsx)("div",{style:{cursor:"pointer",color:"#165dff"},onClick:function(){p({is_jupyter:i,is_jupyter_lab:r,shixunId:a,homework_common_id:o,courseId:n})},children:"前往挑战"})}}],dataSource:a,rowKey:"id"})]})}),e.abrupt("return",!0);case 7:if(1!==a.length){e.next=11;break}return c=a[0],d=c.shixun_identifier,h=c.id,f=c.course_identifier,p({is_jupyter:i,is_jupyter_lab:r,shixunId:d,homework_common_id:h,courseId:f}),e.abrupt("return",!0);case 11:return e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();t.Z=p},57102:function(e,t){"use strict";t.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},77578:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});const i=e=>e?"function"==typeof e?e():e:null},27666:function(e,t,n){"use strict";var i=n(26390),o=n(71783);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,i.Z)(n))},r=function(){if(null==t){for(var e=arguments.length,i=new Array(e),r=0;r{o.Z.cancel(t),t=null},r}},81228:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var i=n(79545),o=n(68550),r=n(17928),a=n(99487),s=n(59301),l=n(92310),c=n.n(l),u=n(28647),d=n(55405),m=n(27666),p=n(36355),h=n(83116),f=n(37613);const g=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var x=(0,h.Z)("Affix",(e=>{const t=(0,f.TS)(e,{zIndexPopup:e.zIndexBase+10});return[g(t)]}));function v(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function w(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function y(e,t,n){if(void 0!==n&&t.bottom{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:i}=e.state;i!==n&&(b.forEach((t=>{null==i||i.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),i=null==n?void 0:n();b.forEach((n=>{null==i||i.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:i}=e.props,o=e.getTargetFunc();if(t!==k.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!o)return;const r=e.getOffsetTop(),a=e.getOffsetBottom(),s=o();if(s){const t={status:k.None},o=v(e.placeholderNodeRef.current);if(0===o.top&&0===o.left&&0===o.width&&0===o.height)return;const l=v(s),c=w(o,l,r),u=y(o,l,a);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:o.width,height:o.height},t.placeholderStyle={width:o.width,height:o.height}):void 0!==u&&(t.affixStyle={position:"fixed",bottom:u,width:o.width,height:o.height},t.placeholderStyle={width:o.width,height:o.height}),t.lastAffix=!!t.affixStyle,i&&n!==t.lastAffix&&i(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:k.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,m.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,m.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const i=e.getOffsetTop(),o=e.getOffsetBottom(),r=t();if(r&&e.placeholderNodeRef.current){const t=v(r),a=v(e.placeholderNodeRef.current),s=w(a,t,i),l=y(a,t,o);if(void 0!==s&&n.top===s||void 0!==l&&n.bottom===l)return}}e.prepareMeasure()})),e}return(0,o.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:j}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:i,children:o}=this.props,r=c()(e&&i,{[n]:!!e});let a=(0,d.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return s.createElement(u.Z,{onResize:this.updatePosition},s.createElement("div",Object.assign({},a,{ref:this.placeholderNodeRef}),e&&s.createElement("div",{style:t,"aria-hidden":"true"}),s.createElement("div",{className:r,ref:this.fixedNodeRef,style:e},s.createElement(u.Z,{onResize:this.updatePosition},o))))}}]),n}(s.Component);_.contextType=p.E_;var C=(0,s.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:i}=e,{getPrefixCls:o}=(0,s.useContext)(p.E_),r=o("affix",n),[a,l]=x(r),u=Object.assign(Object.assign({},e),{affixPrefixCls:r,rootClassName:c()(i,l)});return a(s.createElement(_,Object.assign({},u,{ref:t})))}))},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(92310),o=n.n(i),r=n(59301),a=n(36355),s=n(17313),l=n(83116),c=n(37613);const u=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:o,textPaddingInline:r,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},(0,s.Wf)(e)),{borderBlockStart:`${o}px solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:r},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,l.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[u(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,divider:i}=r.useContext(a.E_),{prefixCls:s,type:l="horizontal",orientation:c="center",orientationMargin:u,className:p,rootClassName:h,children:f,dashed:g,plain:x,style:v}=e,w=m(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),y=t("divider",s),[b,j]=d(y),k=c.length>0?`-${c}`:c,_=!!f,C="left"===c&&null!=u,A="right"===c&&null!=u,S=o()(y,null==i?void 0:i.className,j,`${y}-${l}`,{[`${y}-with-text`]:_,[`${y}-with-text${k}`]:_,[`${y}-dashed`]:!!g,[`${y}-plain`]:!!x,[`${y}-rtl`]:"rtl"===n,[`${y}-no-default-orientation-margin-left`]:C,[`${y}-no-default-orientation-margin-right`]:A},p,h),N=r.useMemo((()=>"number"==typeof u?u:/^\d+$/.test(u)?Number(u):u),[u]),T=Object.assign(Object.assign({},C&&{marginLeft:N}),A&&{marginRight:N});return b(r.createElement("div",Object.assign({className:S,style:Object.assign(Object.assign({},null==i?void 0:i.style),v)},w,{role:"separator"}),f&&"vertical"!==l&&r.createElement("span",{className:`${y}-inner-text`,style:T},f)))}},39722:function(e,t,n){"use strict";n.d(t,{t5:function(){return d}});var i=n(92310),o=n.n(i),r=n(55477),a=n(59301),s=n(36355),l=n(77578),c=n(17356),u=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{const{hashId:t,prefixCls:n,className:i,style:s,placement:c="top",title:u,content:d,children:m}=e;return a.createElement("div",{className:o()(t,n,`${n}-pure`,`${n}-placement-${c}`,i),style:s},a.createElement("div",{className:`${n}-arrow`}),a.createElement(r.G,Object.assign({},e,{className:t,prefixCls:n}),m||((e,t,n)=>{if(t||n)return a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${e}-title`},(0,l.Z)(t)),a.createElement("div",{className:`${e}-inner-content`},(0,l.Z)(n)))})(n,u,d)))};t.ZP=e=>{const{prefixCls:t}=e,n=u(e,["prefixCls"]),{getPrefixCls:i}=a.useContext(s.E_),o=i("popover",t),[r,l]=(0,c.Z)(o);return r(a.createElement(d,Object.assign({},n,{prefixCls:o,hashId:l})))}},60324:function(e,t,n){"use strict";var i=n(92310),o=n.n(i),r=n(59301),a=n(77578),s=n(62892),l=n(36355),c=n(6848),u=n(39722),d=n(17356),m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:i}=e;return r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${i}-title`},(0,a.Z)(t)),r.createElement("div",{className:`${i}-inner-content`},(0,a.Z)(n)))},h=r.forwardRef(((e,t)=>{const{prefixCls:n,title:i,content:a,overlayClassName:u,placement:h="top",trigger:f="hover",mouseEnterDelay:g=.1,mouseLeaveDelay:x=.1,overlayStyle:v={}}=e,w=m(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:y}=r.useContext(l.E_),b=y("popover",n),[j,k]=(0,d.Z)(b),_=y(),C=o()(u,k);return j(r.createElement(c.Z,Object.assign({placement:h,trigger:f,mouseEnterDelay:g,mouseLeaveDelay:x,overlayStyle:v},w,{prefixCls:b,overlayClassName:C,ref:t,overlay:i||a?r.createElement(p,{prefixCls:b,title:i,content:a}):null,transitionName:(0,s.m)(_,"zoom-big",w.transitionName),"data-popover-inject":!0})))}));h._InternalPanelDoNotUseOrYouWillBeFired=u.ZP,t.Z=h},17356:function(e,t,n){"use strict";var i=n(17313),o=n(29878),r=n(19447),a=n(33166),s=n(83116),l=n(37613);const c=e=>{const{componentCls:t,popoverColor:n,minWidth:o,fontWeightStrong:a,popoverPadding:s,boxShadowSecondary:l,colorTextHeading:c,borderRadiusLG:u,zIndexPopup:d,marginXS:m,colorBgElevated:p,popoverBg:h}=e;return[{[t]:Object.assign(Object.assign({},(0,i.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:d,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":p,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:u,boxShadow:l,padding:s},[`${t}-title`]:{minWidth:o,marginBottom:m,color:c,fontWeight:a},[`${t}-inner-content`]:{color:n}})},(0,r.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},u=e=>{const{componentCls:t}=e;return{[t]:a.i.map((n=>{const i=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:"transparent"}}}}))}},d=e=>{const{componentCls:t,lineWidth:n,lineType:i,colorSplit:o,paddingSM:r,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,u=a-Math.round(s*l);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${u/2}px ${c}px ${u/2-n}px`,borderBottom:`${n}px ${i} ${o}`},[`${t}-inner-content`]:{padding:`${r}px ${c}px`}}}};t.Z=(0,s.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:i}=e,r=(0,l.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[c(r),u(r),i&&d(r),(0,o._y)(r,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},51581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return o&&(s?a?u.unshift(s):u.push(s):this.defaultLoader&&(a?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),r.default.createElement(i,c,u)}}]),t}(o.Component);l.propTypes={children:a.default.node.isRequired,element:a.default.node,hasMore:a.default.bool,initialLoad:a.default.bool,isReverse:a.default.bool,loader:a.default.node,loadMore:a.default.func.isRequired,pageStart:a.default.number,ref:a.default.func,getScrollParent:a.default.func,threshold:a.default.number,useCapture:a.default.bool,useWindow:a.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},26724:function(e,t,n){e.exports=n(51581)},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAAD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qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__CommonHomework__index.35e19ecc.async.js b/p__Classrooms__Lists__CommonHomework__index.35e19ecc.async.js deleted file mode 100644 index fc16d470f2..0000000000 --- a/p__Classrooms__Lists__CommonHomework__index.35e19ecc.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[49890,13488,63527,4977,48486,69932],{680:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(5891),o=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=n(22589),s=function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))};var l=o.forwardRef(s)},60186:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(5891),o=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=n(22589),s=function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))};var l=o.forwardRef(s)},45532:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(5891),o=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},a=n(22589),s=function(e,t){return o.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))};var l=o.forwardRef(s)},57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,o=!1,r=!1,a=null,s=!1,l=null,c=null,u=0;u4?parseFloat(e):5};function j(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,I(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(l=e,E(e,t))},e.getHTML5CodebaseVersion=function(){return f},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,o="auto",r=n.id,a=!1,l=0;l=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var S=function(e){return e&&"false"!==e},N=function(t,n,i){b(f)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==f||ggbHTML5LoadedCodebaseIsWebSimple&&!x)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,s=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(b(f)<=4.4)S(n.showToolBar)&&(n.height-=7),S(n.showAlgebraInput)&&(n.height-=37),n.width<605&&S(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(S(n.showToolBar)||S(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=S(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},w||v.appendChild(j)):r.appendChild(j),v.appendChild(r),w||t.appendChild(v),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),O("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function _(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},b(f)<5&&(e.className+=" geogebraweb")):k(e,t)}if(o){scriptLoadStarted=!0;for(var C=0;C0?(o.remove(),s.attr("id","fullscreencontent").show(),jQuery(r).append(s),window.dispatchEvent(new Event("resize"))):N(o,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=i,N(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(s=e/4*3),l=s/5.8,a.setAttribute("src",w),a.setAttribute("width",s),a.setAttribute("height",l);var u=(e-s)/2,d=(t-l)/2;a.style.left=u+"px",a.style.top=d+"px",o.appendChild(a)}return o.appendChild(c),o},D=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},M=["web","webSimple","web3d","tablet","tablet3d","phone"],E=function(e,t){if(f=e,t)I(f,!0);else{var r,a,s=!o;if(s){var l=b(f);!isNaN(l)&&l<4.4&&(s=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=f.indexOf("//");for(var u in a=c>0?f:0===c?r+f:"https://www.geogebra.org/apps/5.2.814.0/",M)if(f.slice(-1*M[u].length)===M[u]||f.slice(-1*(M[u].length+1))===M[u]+"/")return void I(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||S(n.showToolBar)||S(n.showMenuBar)||S(n.showAlgebraInput)||S(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",I(a,!1)}},I=function(e,t){if(e.requirejs)m=e;else{"/"!==e.slice(-1)&&(e+="/"),m=e,null===t&&(t=-1===e.indexOf("http")),p=t,g="web.nocache.js",x=!1;var n=m.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?M.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",x=!0)),n=e.split("/"),"test"===(f=n[n.length-3]).substr(0,4)?f=f.substr(4,1)+"."+f.substr(5,1):"war"!==f.substr(0,3)&&"beta"!==f.substr(0,4)||(f="5.0");var i=parseFloat(f);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),E("5.0",t))}},O=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function H(){var e=t;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),E(e,!1),null!==c&&I(c,p),s=!0}return void 0!==n.material_id?_(H):H(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,s=null!=e.noScaleMargin&&e.noScaleMargin,l=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,i,o,r){var a=null;if(null!=r&&""!=r)for(var s=e.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+r+" ")>-1){a=s;break}s=s.parentNode}var l=0,c=0,u=0,d=0,m=0,p=0,h=0;if(a)l=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=l):(l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var f=e.getBoundingClientRect();f.left>0&&f.left<=l&&(void 0===o||!o)&&("rtl"===document.dir?(m=l-f.width-f.left,p=u<=480?10:30):(p=f.left,m=u<=480?10:30),d=p+m)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(t-i.width)/2,r=(n-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var s=i(r,n);e()&&a.setAttribute("data-param-scale",s);for(var l=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var s in n)a[n[s]]=s;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(e=Cb).indexOf(Db);-1!=s&&(t=parseInt(e.substring(s+P),$),e=e.substring(O,s))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],o=O;o0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(r=10+n*o);var a=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);i>40&&(a=40);var s=this.randomNum(-10,10);e.translate(r,a),e.rotate(s*Math.PI/180),e.fillText(t,0,0),e.rotate(-s*Math.PI/180),e.translate(-r,-a)}},{key:"drawLine",value:function(e){for(var t=0;t<1;t++)e.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),e.beginPath(),e.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.stroke()}},{key:"drawDot",value:function(e){for(var t=0;t<100;t++)e.fillStyle=this.randomColor(0,255),e.beginPath(),e.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),e.fill()}},{key:"randomCode",value:function(){for(var e=this,t="",n=0;n-1})))}}),(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){je(e)}},rowKey:"id",pagination:!1,dataSource:xe,loading:B,columns:[{title:"班级",dataIndex:"name"}]})]}):(0,C.jsxs)(g.Z,{gutter:24,children:[(0,C.jsxs)(x.Z,{span:14,children:[(0,C.jsx)("div",{className:j.homeworkType,children:"作业截止"}),(0,C.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){J(F.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,C.jsx)("div",{className:j.tableWrapper,children:(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){X(e)}},rowKey:"id",pagination:!1,dataSource:Y,loading:B,columns:[{title:"班级",dataIndex:"name",ellipsis:!0},{title:"发布时间",dataIndex:"publish_time"},{title:"截止时间",dataIndex:"end_time"}]})})]}),(0,C.jsxs)(x.Z,{flex:10,style:{maxWidth:"280px"},children:[(0,C.jsx)("div",{className:j.homeworkType,children:"补交截止"}),(0,C.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){ae(te.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,C.jsx)("div",{className:j.tableWrapper,children:(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){ue(e)}},rowKey:"id",pagination:!1,loading:B,dataSource:re,columns:[{title:"班级",dataIndex:"name",ellipsis:!0,width:120},{title:"截止时间",dataIndex:"late_time"}]})})]})]})})]})}))},36709:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",m="fullWidth___c492T",p=n(92310),h=n.n(p),f=n(71418),g=n(2859),x=n(18030),v=n(21082),w=n(37712),y=function(e){var t=e.data,n=e.className,i=e.fullWidth,r=e.style,s=void 0===r?{}:r,p=e.onClose,y=e.onOk,b=e.showFullTools,j=e.noAssociationId,k=(0,c.useRef)(null),_=(0,c.useRef)(null),C=(0,c.useRef)(null),A=(0,c.useRef)(null),S=(0,c.useState)(!1),N=l()(S,2),T=N[0],Z=N[1],B=(0,c.useState)("正在加载中"),L=l()(B,2),P=L[0],D=L[1];(0,c.useEffect)((function(){C.current||(C.current=document.createElement("style"),document.head.appendChild(C.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),C.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&M()):(document.body.removeAttribute("data-custom"),C.current&&(document.head.removeChild(C.current),C.current=null))}),[null==t?void 0:t.visible]);var M=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(!0),D("正在加载中"),e.next=4,(0,v.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,k.current.src="",k.current.src=n,k.current.onload=function(){I()},Z(!1),D("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),E=function(){var e=a()(o()().mark((function e(n){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(!0),D("正在保存中"),e.next=4,(0,x.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(i=e.sent)||!i.id||j){e.next=12;break}return e.next=8,(0,x.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==i?void 0:i.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=i&&i.id&&y(i);case 13:Z(!1),D("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I=function(){_.current=new g.hP(k.current),_.current.targetRoot=A.current,_.current.addEventListener("render",E),_.current.addEventListener("beforeclose",p),b&&(_.current.availableMarkerTypes=_.current.ALL_MARKER_TYPES,_.current.uiStyleSettings.redoButtonVisible=!0,_.current.uiStyleSettings.notesButtonVisible=!0,_.current.uiStyleSettings.zoomButtonVisible=!0,_.current.uiStyleSettings.zoomOutButtonVisible=!0,_.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=_.current.uiStyleSettings,_.current.show(),null!=t&&t.snapshotData&&_.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,w.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,w.jsx)(f.Z,{spinning:T,tip:P,style:{position:"absolute"},children:(0,w.jsx)("div",{ref:A,className:h()(u,n,i?m:""),style:s,children:(0,w.jsx)("img",{className:d,ref:k})})})})}},98382:function(e,t,n){"use strict";n.d(t,{z:function(){return A},Z:function(){return S}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(37205),u=n.n(c),d=n(79800),m=n.n(d),p=n(59301),h=n(59028),f=n(8591),g=n(43418),x=n(3113),v=n(92723),w=n(90341),y=n(37712),b="  ";function j(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var k=n(60186),_=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var C=h.Z.Dragger;function A(e){var t=[];return e&&e.length>0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+b+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var S=function(e){var t=e.value,n=e.onChange,i=e.action,r=e.data,s=e.className,c=e.maxSize,d=void 0===c?150:c,A=e.title,S=void 0===A?"上传附件":A,N=e.showRemoveModal,T=void 0!==N&&N,Z=e.accept,B=void 0===Z?"":Z,L=e.additionalText,P=e.isDragger,D=e.number,M=void 0===D?1e3:D,E=e.aloneClear,I=void 0!==E&&E,O=e.realTimeRemove,H=void 0===O||O,R=e.uploadText,z=(0,p.useState)(!1),G=m()(z,2),F=G[0],W=G[1],U=(0,p.useState)(t||[]),V=m()(U,2),Y=V[0],J=V[1],K=(0,p.useState)(1),q=m()(K,2),Q=q[0],X=q[1];(0,p.useEffect)((function(){t&&(1===Q&&J(u()(t)),X(2),M===(null==t?void 0:t.length)&&W(!0))}),[t]);var $,ee=function(){setTimeout((function(){Y.pop(),J(u()(Y))}),500)},te={multiple:!0,disabled:F,accept:B,withCredentials:!0,fileList:Y,beforeUpload:function(e,t){var n=e.size/1024/1024;return Y.concat(t).length>M?(Y.pop(),J(u()(Y)),f.ZP.error("最多只能上传".concat(M,"个文件")),I?Promise.reject():(ee(),!1)):n=M?W(!0):W(!1),J(u()(Y)),Y=Y.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(b)&&(e.name="".concat(e.name).concat(b).concat(j(e.size))),l()({},e)})),console.log("info:",e,Y),n(Y)):f.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:($=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(H){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,w.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!T){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,f.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return $.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(s||""),children:[P&&(0,y.jsxs)(C,l()(l()({},te),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),L]})),!P&&(0,y.jsxs)(h.Z,l()(l()({},te),{},{children:[(0,y.jsxs)(x.ZP,{disabled:F,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),S]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:R||"(单个文件最大".concat(d,"MB)")})]}))]})}},65463:function(e,t,n){"use strict";n(59301);var i=n(6848),o=n(37712);t.Z=function(e){var t=e.value,n=e.visible,r=void 0===n||n,a=e.children;return(0,o.jsx)(o.Fragment,{children:r?(0,o.jsx)(i.Z,{placement:"topLeft",title:{"未发布":"作业尚未发布","未开始":"作业已发布,尚未到达开始作业时间","提交中":"作业进行中,所有考生可提交作业","补交中":"作业进行中,所有学生可补交作业","进行中":"作业进行中,部分班级正在作业提交中/补交中","已截止":"到达作业截止时间,作业已结束","已结束":"课堂已结束"}[t],children:(0,o.jsx)("span",{children:a})}):a})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return x}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),s=n(59301),l=n(57809),c=n(78241),u=n(3113),d=n(89780),m=n.n(d),p=(n(80443),n(90630),n(37712)),h=l.default.Option,f={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function x(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,l=void 0===r?{}:r,c=(0,s.useRef)(),u=(0,s.useState)(),d=a()(u,2),h=d[0],f=d[1];return(0,s.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,s.useEffect)((function(){h&&h.setOption("mode",i)}),[h,i]),(0,s.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,s.useEffect)((function(){if(c.current&&!h){var e=m().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));f(e)}}),[c.current,h]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,s.useState)("python"),r=a()(i,2),d=r[0],m=r[1];return(0,p.jsxs)(c.Z,o()(o()({},f),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(l.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){m(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(x,{mode:d})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return be}});var i=n(91232),o=n.n(i),r=n(79800),a=n.n(r),s=n(85573),l=n.n(s),c=n(59301),u=n(89780),d=n.n(u),m=n(76374),p=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),f=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),x=n.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function w(e){var t=e.onActionCallback,n=e.title,i=e.icon,o=e.actionName,r=e.className,a=void 0===r?"":r,s=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(o)},children:[(0,h.jsx)("i",{className:"".concat(i)}),s]})}var y=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,s=e.hidetoolBar,l=e.extraUse,c=[].concat(v,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(w,x()(x()({},e),{},{onActionCallback:o})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,h.jsx)("li",{children:l}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(w,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},b=n(24808),j=n(78241),k=n(92832),_=n(3113),C={labelCol:{span:4},wrapperCol:{span:20}},A=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(j.Z,x()(x()({},C),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(j.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(j.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(_.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(_.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},S=n(73145),N=n(28486),T=n(95237),Z=n(36709),B=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,h.jsx)(T.Z,{style:{height:"100vh"},children:(0,h.jsx)(Z.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},L=n(7557),P=n.n(L),D=n(41498),M=n.n(D),E=n(37205),I=n.n(E),O=n(12378);function H(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(H,go.CommandHandler),H.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},H.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},H.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},H.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},H.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},H.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},H.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},H.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(s-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var r,a,s;if(null===(r=t.findTreeParentNode()))break;if((s=(a=this._sortTreeChildrenByY(r)).indexOf(t))i.y?1:n.xi.x?1:0})),t},H.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},H.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(H.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(H.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 R=H,z=(n(41034),n(85160)),G=n(43418),F=n(43604),W=n(18030),U="myPaletteDiv___Xjz2I",V="maxH60___Pd4Re";window.go=O;var Y=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),s=(0,c.useRef)(!1),l=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),m=d[0],p=d[1],f=function(){var e=M()(P()().mark((function e(){var t,o;return P()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(m+1)}),[]),(0,h.jsx)("div",{ref:l,className:s.current?"".concat(V," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(G.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!m,destroyOnClose:!0,maskClosable:!1,getContainer:l.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(T.Z,{children:[(0,h.jsx)(F.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(F.Z,{onClick:function(){s.current=!s.current,p(m+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:U,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(z.FI,{initDiagram:function(){var e=O.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",s="#d533ff",l="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",m="#fffcd5",p="#d5ebff",h="#f2dfe0",f="#a5d2fa",g="#cccccc",x="#b3e6b3",v="#fcbbbd";function w(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var o=n.part.adornedPart,r=(new O.Point).setRectSpot(o.actualBounds,t);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var s={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(s);var l=e.diagram.findNodeForData(a);l.location=r,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(O.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(O.Spot.Top)||t.equals(O.Spot.Bottom)?25:18,height:t.equals(O.Spot.Top)||t.equals(O.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(t){return e(O.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function b(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function j(t,n){return n||(n="color"),e(O.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:b(n,t),contextClick:b(n,t)})}function k(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",j(u,"fill"),j(m,"fill"),j(p,"fill"),j(h,"fill"))),e("ContextMenuButton",e(O.Panel,"Horizontal",j(g,"fill"),j(x,"fill"),j(f,"fill"),j(v,"fill")))]}function _(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",j(d),j(a),j(n),j(t))),e("ContextMenuButton",e(O.Panel,"Horizontal",j(u),j(s),j(l),j(c)))]}function C(t,n){return n||(n="thickness"),e(O.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function A(t,n){return n||(n="dash"),e(O.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function S(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",C(1),C(2),C(3),C(4))),e("ContextMenuButton",e(O.Panel,"Horizontal",A(null),A([2,4]),A([4,4])))]}function N(t,n){return n||(n="figure"),e(O.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:b(n,t),contextClick:b(n,t)})}function T(t){return e(O.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function Z(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(O.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b("dir",t),contextClick:b("dir",t)})}function B(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",O.Spot.stringify(O.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(O.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function L(t,n){var i=0,o=O.Spot.RightSide;t.equals(O.Spot.Top)?(i=270,o=O.Spot.TopSide):t.equals(O.Spot.Left)?(i=180,o=O.Spot.LeftSide):t.equals(O.Spot.Bottom)&&(i=90,o=O.Spot.BottomSide),n||(i-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",O.Spot.stringify(o)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(O.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return i.current=new O.Diagram(o.current,{padding:20,grid:e(O.Panel,"Grid",e(O.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(O.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(R),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(O.Node,"Auto",{locationSpot:O.Spot.Center,locationObjectName:"SHAPE",desiredSize:new O.Size(120,60),minSize:new O.Size(40,40),resizable:!0,resizeCellSize:new O.Size(10,10),rotatable:!0},new O.Binding("location","loc",O.Point.parse).makeTwoWay(O.Point.stringify),new O.Binding("desiredSize","size",O.Size.parse).makeTwoWay(O.Size.stringify),e(O.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:O.Spot.AllSides,toSpot:O.Spot.AllSides},new O.Binding("figure"),new O.Binding("fill"),new O.Binding("stroke","borderColor"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(O.TextBlock,{margin:1,textAlign:"center",overflow:O.TextBlock.OverflowEllipsis,editable:!0},new O.Binding("text").makeTwoWay(),new O.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(O.Panel,"Vertical",{maxSize:new O.Size(200,NaN)},e(O.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new O.Binding("text")),e(O.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new O.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(O.Adornment,"Spot",e(O.Placeholder,{padding:10}),w(O.Spot.Top,"TriangleUp"),w(O.Spot.Left,"TriangleLeft"),w(O.Spot.Right,"TriangleRight"),w(O.Spot.Bottom,"TriangleDown"),y({alignment:new O.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(O.Panel,"Horizontal",N("Rectangle"),N("RoundedRectangle"),N("Ellipse"),N("Diamond"))),e("ContextMenuButton",e(O.Panel,"Horizontal",N("Parallelogram2"),N("ManualOperation"),N("Procedure"),N("Cylinder1"))),e("ContextMenuButton",e(O.Panel,"Horizontal",N("Terminator"),N("CreateRequest"),N("Document"),N("TriangleDown"))),k(),_(),S()),i.current.groupTemplate=e(O.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:O.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new O.Binding("location","loc",O.Point.parse).makeTwoWay(O.Point.stringify),e(O.Panel,"Auto",{name:"BODY"},e(O.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:O.Spot.AllSides,toSpot:O.Spot.AllSides},new O.Binding("fill"),new O.Binding("stroke","color"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Placeholder,{background:"transparent",margin:20})),e(O.TextBlock,{alignment:O.Spot.Top,alignmentFocus:O.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new O.Binding("text"),new O.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(O.Adornment,"Spot",e(O.Panel,"Auto",e(O.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(O.Placeholder,{margin:1.5})),y({alignment:O.Spot.TopRight,alignmentFocus:O.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",k(),_(),S()),i.current.linkTemplate=e(O.Link,{layerName:"Foreground",routing:O.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new O.Binding("fromSpot","fromSpot",O.Spot.parse),new O.Binding("toSpot","toSpot",O.Spot.parse),new O.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new O.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new O.Binding("points").makeTwoWay(),e(O.Shape,{strokeWidth:2},new O.Binding("stroke","color"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Shape,{segmentIndex:0,segmentOffset:new O.Point(15,0),segmentOrientation:O.Link.OrientAlong,alignmentFocus:O.Spot.Right,figure:"circle",width:10,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return 1===e}))),e(O.Shape,{segmentIndex:-1,segmentOffset:new O.Point(-10,6),segmentOrientation:O.Link.OrientPlus90,alignmentFocus:O.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return e>=1})),new O.Binding("width","thickness",(function(e){return 7+3*e})),new O.Binding("height","thickness",(function(e){return 7+3*e})),new O.Binding("segmentOffset","thickness",(function(e){return new O.Point(-15,4+1.5*e)}))),e(O.Shape,{segmentIndex:0,segmentOffset:new O.Point(15,-6),segmentOrientation:O.Link.OrientMinus90,alignmentFocus:O.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return 2===e})),new O.Binding("width","thickness",(function(e){return 7+3*e})),new O.Binding("height","thickness",(function(e){return 7+3*e})),new O.Binding("segmentOffset","thickness",(function(e){return new O.Point(-15,4+1.5*e)}))),e(O.TextBlock,{alignmentFocus:new O.Spot(0,1,-4,0),editable:!0},new O.Binding("text").makeTwoWay(),new O.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(O.Adornment,e(O.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:T(2)},new O.Binding("pathPattern","thickness",T)),y({alignmentFocus:new O.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",_(),S(),e("ContextMenuButton",e(O.Panel,"Horizontal",Z(0),Z(1),Z(2))),e("ContextMenuButton",e(O.Panel,"Horizontal",e(O.Panel,"Spot",B(!1),L(O.Spot.Top,!1),L(O.Spot.Left,!1),L(O.Spot.Right,!1),L(O.Spot.Bottom,!1)),e(O.Panel,"Spot",{margin:new O.Margin(0,0,0,2)},B(!0),L(O.Spot.Top,!0),L(O.Spot.Left,!0),L(O.Spot.Right,!0),L(O.Spot.Bottom,!0))))),new O.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(O.Link,{locationSpot:O.Spot.Center,selectionAdornmentTemplate:e(O.Adornment,"Link",{locationSpot:O.Spot.Center},e(O.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(O.Shape,{toArrow:"Standard",stroke:null}))},{routing:O.Link.AvoidsNodes,curve:O.Link.JumpOver,corner:5,toShortLength:4},new O.Binding("points"),e(O.Shape,{isPanelMain:!0,strokeWidth:2}),e(O.Shape,{toArrow:"Standard",stroke:null})),model:new O.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(I()(O.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(O.Node,"Auto",{locationSpot:O.Spot.Center},new O.Binding("location","location",O.Point.parse).makeTwoWay(O.Point.stringify),e(O.Shape,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new O.Binding("stroke").makeTwoWay(),new O.Binding("fill").makeTwoWay(),new O.Binding("figure")),e(O.TextBlock,{margin:new O.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new O.Size(16,16),maxSize:new O.Size(10,NaN),textAlign:"center",editable:!0},new O.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(O.Panel,"Grid",e(O.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(O.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,h.jsx)("div",{ref:o})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(_.ZP,{size:"large",onClick:f,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},J=n(5112),K=n(94001),q=J.ZP.Group,Q={margin:"0 8px"},X=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(j.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"单元格数:"}),(0,h.jsx)("span",{style:Q,children:"行数"}),(0,h.jsx)(j.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(K.Z,{})}),(0,h.jsx)("span",{style:Q,children:"列数"}),(0,h.jsx)(j.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(K.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"对齐方式:"}),(0,h.jsx)(j.Z.Item,{name:"align",children:(0,h.jsxs)(q,{children:[(0,h.jsx)(J.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(J.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(J.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(J.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(_.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(_.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,o=e.height,r=e.callback,s=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),m=d[0],p=d[1],f=(0,c.useRef)({id:s,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){l.current=new(te())(f.current,!0),window.onload=function(){l.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){f.current.appName=m?"3D":"graphing",l.current.inject("applet_container")}),[m]),(0,c.useEffect)((function(){p(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:s}),(0,h.jsxs)(T.Z,{align:"middle",children:[(0,h.jsx)(F.Z,{flex:1,children:(0,h.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:m,onChange:function(e){return p(e)}})}),(0,h.jsx)(F.Z,{children:(0,h.jsx)(_.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),oe=n(92723),re=n(8591),ae="link",se="upload-image",le="add-flowchart",ce="draw-image",ue="code-block",de="add-table",me="------------",pe={default:me,left:":".concat(me),center:":".concat(me,":"),right:"".concat(me,":")},he=n(77818);var fe="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function xe(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ve=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",we=l()(l()({},ve+"-B","bold"),ve+"-I","italic"),ye=l()(l()(l()(l()(l()(l()(l()(l()({},ae,"添加链接"),ue,"添加代码块"),se,"添加图片"),ce,"添加画图"),le,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),be=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,s=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,x=e.miniToolbar,v=void 0!==x&&x,w=e.isFocus,j=void 0!==w&&w,k=e.watch,_=e.insertTemp,C=e.mode,T=void 0===C?"markdown":C,Z=e.id,L=void 0===Z?"markdown-editor-id":Z,P=e.showResizeBar,D=void 0!==P&&P,M=e.noStorage,E=void 0!==M&&M,I=e.showNullButton,O=void 0!==I&&I,H=e.showNullProgramButton,R=void 0!==H&&H,z=e.hidetoolBar,F=void 0!==z&&z,W=e.fullScreen,U=void 0!==W&&W,V=e.onBlur,J=e.onCMBeforeChange,K=e.onFullScreen,q=e.className,Q=void 0===q?"":q,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,me=void 0!==te&&te,ve=e.disabledFill,be=void 0!==ve&&ve,je=e.placeholder,ke=void 0===je?"":je,_e=e.values,Ce=void 0===_e?"":_e,Ae=e.extraUse,Se=(0,c.useState)(null),Ne=a()(Se,2),Te=Ne[0],Ze=Ne[1],Be=(0,c.useState)(n),Le=a()(Be,2),Pe=Le[0],De=Le[1],Me=(0,c.useState)(k),Ee=a()(Me,2),Ie=Ee[0],Oe=Ee[1],He=(0,c.useState)(U),Re=a()(He,2),ze=Re[0],Ge=Re[1],Fe=(0,c.useState)(""),We=a()(Fe,2),Ue=We[0],Ve=We[1],Ye=(0,c.useState)(0),Je=a()(Ye,2),Ke=Je[0],qe=Je[1],Qe=(0,c.useState)(g),Xe=a()(Qe,2),$e=Xe[0],et=Xe[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),ot=(0,c.useState)(0),rt=a()(ot,2),at=rt[0],st=rt[1],lt=(0,c.useState)(0),ct=a()(lt,2),ut=ct[0],dt=ct[1],mt=(0,c.useRef)(),pt=(0,c.useRef)(),ht=(0,c.useRef)(),ft=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;De(Ce),null==Te||Te.setValue(Ce),window.scrollTo(0,e)}),[Ce]),(0,c.useEffect)((function(){null==K||K(ze)}),[ze]),(0,c.useEffect)((function(){if(mt.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==T)return;try{var a,s=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(s=r[0]);var l=s.getAsFile(),c=l.name.split(".").pop();(0,N.I)(l,(function(e){var n,i,o;e.id?(null==l||null===(n=l.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==l||null===(o=l.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('').concat(l.name,"")):ge.includes(c)?t.replaceSelection('').concat(l.name,"")):t.replaceSelection("[".concat(l.name,"](").concat(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(mt.current,{mode:T,lineNumbers:!v,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),o=n.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),s=o.lastIndexOf("@▁▁@",i.ch),l=a>s?a:s,c=a>s?3:4;if(-1===fe.indexOf(r))return null;if(console.log("change1:",t,e,o,i,l,a,s,r),l>=0&&i.ch-l<5){var u=l+c;return n.replaceRange("",{line:i.line,ch:l},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),j&&t.focus(),t.on("paste",e),me&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ze(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){pt.current}),[$e,pt,ze]);(0,c.useEffect)((function(){if(Te){var e=function(){var e=new m.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Te.setSize("100%","100%"),Te.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(mt.current.parentElement),e}();return function(){var t,n;null!==(t=mt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=mt.current)||void 0===n?void 0:n.parentElement)}}}),[Te,gt]),(0,c.useEffect)((function(){if(Te){for(var e=[],t=function(){var t=a()(i[n],2),o=t[0],r=t[1],s=l()({},o,(function(){xt(r)}));e.push(s),Te.addKeyMap(s)},n=0,i=Object.entries(we);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(L);e>=Ke+1e4&&(!t||t!==Pe)&&(window.sessionStorage.setItem(L,Pe),it(!0))}}),1e4),(0,c.useEffect)((function(){Oe(k)}),[Te,k]),(0,c.useEffect)((function(){Te&&j&&Te.focus()}),[Te,j]),(0,c.useEffect)((function(){if(Ie&&Te){var e=function(e){var t=e.target;if(ft.current){var n=t.scrollTop/t.scrollHeight;ft.current.scrollTop=ft.current.scrollHeight*n}},t=Te.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Te,Ie]),(0,c.useEffect)((function(){if(Te&&J){var e=function(e,t){J(e,t)};return Te.on("beforeChange",e),function(){Te.off("beforeChange",e)}}}),[Te,J]),(0,c.useEffect)((function(){if(Te&&V){var e=function(){V(Te.getValue())};return Te.on("blur",e),function(){Te.off("blur",e)}}}),[Te,V]),(0,c.useEffect)((function(){if(Te){var e=function(e,t){var n=e.getValue();De(n),qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(R?i(n,jt(n)):i(n))};return Te.on("change",e),function(){Te.off("change",e)}}}),[Te,i]),(0,c.useEffect)((function(){if(Te)if(null==n)Te.setValue(""),De("");else{var e=window.scrollY||window.pageYOffset;n!==Te.getValue()&&(Te.setValue(n),De(n),Te.setCursor(me?1:Te.lineCount(),0),window.scrollTo(0,e))}}),[Te,n]);var xt=(0,c.useCallback)((function(e){var t=Te.getCursor(),n=Te.getSelection(),i=n.split("\n");switch(e){case"bold":return Te.replaceSelection("**"+n+"**"),""===n&&Te.setCursor(t.line,t.ch+2),Te.focus();case"italic":return Te.replaceSelection("*"+n+"*"),""===n&&Te.setCursor(t.line,t.ch+1),Te.focus();case"code":return Te.replaceSelection("`"+n+"`"),""===n&&Te.setCursor(t.line,t.ch+1),Te.focus();case"inline-latex":return Ve("inline-latex"),Te.focus();case"latex":return Te.replaceSelection("```latex\n"+n+"\n```"),Te.setCursor(t.line+1,n.length+1),Te.focus();case"line-break":return Te.replaceSelection("
\n"),Te.focus();case"list-ul":return""===n?Te.replaceSelection("- "+n):Te.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Te.focus();case"list-ol":return""===n?Te.replaceSelection("1. "+n):Te.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Te.focus();case"add-null-ch":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection("▁"),Te.focus();case"add-signal":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection("@▁@"),Te.focus();case"add-multiple":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection(fe),Te.focus();case"inster-template-1":return""===n&&Te.setCursor(t.line,t.ch),Te.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Te.focus();case"eraser":return Te.setValue(""),Te.focus();case"trigger-watch":return Oe(!Ie),Te.focus();case"trigger-full-screen":return Ge(!ze),Te.focus();case ae:return void Ve(ae);case ue:return void Ve(ue);case se:return void Ve(se);case ce:return void Ve(ce);case"maths-latex":return void Ve("maths-latex");case le:return void Ve(le);case de:return void Ve(de);default:throw new Error}}),[Te,Ie,ze]),vt=(0,c.useCallback)((function(e,t){var n,i,o,r,a;switch(Ve(""),Ue){case ae:var s=e.title,l=e.link;return Te.replaceSelection("[".concat(s,"](").concat(l,")")),Te.focus();case ue:var c=e.language,u=e.content;return Te.replaceSelection(["```"+c,u,"```"].join("\n")),Te.focus();case"maths-latex":for(var d=atob(e),m=new Uint8Array(d.length),p=0;p-1||null==x||!x.type?g?Te.replaceSelection("![ ".concat(g," ]( ").concat(f,' "').concat(g,'" )')):Te.replaceSelection("![,](".concat(f,")")):(null==x||null===(r=x.type)||void 0===r?void 0:r.indexOf("video"))>-1?Te.replaceSelection('')):(null==x||null===(a=x.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Te.replaceSelection('').concat(x.name,"")):ge.includes(v)?Te.replaceSelection('').concat(x.name,"")):Te.replaceSelection("[".concat(x.name,"](").concat(oe.Z.API_SERVER).concat(f,")")),Te.focus();case de:for(var w=e.row,y=e.col,b=e.align,j="\n",k=0;k300&&(t=300),et(g+t+"px")}},i=ht.current,o=!1,r=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Te,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var bt={width:xe(s),height:xe($e)},jt=((0,c.useMemo)((function(){if(Ke){var e=new Date(Ke),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ke]),function(e){var t=[];if(R){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ue]&&Ue!==ce&&Ue!==le&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;st(t),dt(n)}),0)}),[Ue]);var kt=function(e,t,n,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>o-20&&i0&&(0,s.jsx)("div",{className:a,children:n.map((function(e,t){return(0,s.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,s.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3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sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},t)}))}),m]}),i&&(0,s.jsx)("img",{style:{marginTop:33,marginRight:38},src:i,width:c})]})})},c=n(79800),u=n.n(c),d="row___aXJjm",m="title___HUKL0",p="tagsWrap___XB2W3",h="action___VdHb1",f="bar___t1kKC",g="tag___V7Eft",x="name___Hk1Ip",v="num___xQpcH",w="active___XryTX",y="tagsBorderWrap___OMxjs",b=n(92310),j=n.n(b),k=n(89392),_=function(e){var t=e.dataSource,n=void 0===t?[]:t,o=e.value,r=e.onChange,a=e.onTitleChange,l=e.className,c=e.title,b=e.titleWidth,_=void 0===b?41:b,C=e.style,A=void 0===C?{}:C,S=e.fontColor,N=void 0===S?"#6A7283":S,T=e.showCount,Z=(0,i.useState)(0),B=u()(Z,2),L=B[0],P=B[1],D=(0,i.useState)(!1),M=u()(D,2),E=M[0],I=M[1],O=(0,i.useRef)(null),H=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;0!==n.length&&((null==O||null===(e=O.current)||void 0===e?void 0:e.clientHeight)>97?P(1):P(0));0===n.length&&P(0),I(!1)}),[n]),(0,s.jsxs)("div",{className:j()(d,l),style:A,children:[(0,s.jsx)("div",{onClick:(0,k.throttle)((function(){return null==a?void 0:a()}),2e3),style:{width:_,marginTop:E?12:4},className:"".concat(m," ").concat(a?"current":""),children:c}),(0,s.jsxs)("div",{className:E?"".concat(p," ").concat(y):p,children:[(0,s.jsx)("div",{className:f,ref:H,style:L>0?{height:1===L?97:"auto",overflow:1===L?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,s.jsx)("div",{className:g,ref:O,children:null==n?void 0:n.map((function(e){return(0,s.jsxs)("span",{onClick:function(){return r(e.id)},style:{color:N},className:o===e.id?w:"",children:[(0,s.jsx)("span",{title:e.name,className:x,children:e.name}),!!T&&(0,s.jsx)("span",{className:v,children:e.count})]},e.id)}))})}),!!L&&(0,s.jsx)(i.Fragment,{children:1===L?(0,s.jsxs)("div",{onClick:function(){var e;P(2),(null==O||null===(e=O.current)||void 0===e?void 0:e.clientHeight)>245?I(!0):I(!1)},className:h,children:["展开",(0,s.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,s.jsxs)("div",{onClick:function(){H.current.scrollTop=0,P(1),I(!1)},className:h,children:["收起",(0,s.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},C="tabs___GTqPV",A="active___F26E8",S=function(e){var t=e.dataSource,n=void 0===t?[]:t,i=e.value,o=e.onChange,r=e.className,a=e.style,l=void 0===a?{}:a;return(0,s.jsx)("div",{style:l,className:j()(C,r),children:n.map((function(e){return(0,s.jsx)("span",{onClick:function(){return o(e.id)},className:i===e.id?A:"",children:e.name},e.id)}))})},N="input___PW2zI",T="dropdown___vSy8B",Z="menu___NiyBu",B="text___Grueu",L="b1___ZKryM",P="b2___aKyGa",D=n(92832),M=function(e){var t,n=e.dataSource,o=void 0===n?[]:n,r=e.value,a=void 0===r?"":r,l=e.onChange,c=e.onInputChange,d=void 0===c?function(){}:c,m=e.className,p=e.style,h=void 0===p?{}:p,f=e.placeholder,g=(e.allowClear,(0,i.useState)("")),x=u()(g,2),v=x[0],w=x[1],y=(0,i.useState)(""),b=u()(y,2),k=b[0],_=b[1];(0,i.useEffect)((function(){var e,t=a;null!==(e=JSON.stringify(a))&&void 0!==e&&e.includes("{")&&(w(a.id),t=a.value||"");try{_(decodeURIComponent(t||""))}catch(e){_(decodeURIComponent(t||""))}}),[a]);var C=function(){l(encodeURIComponent(k),v||null)};return(0,s.jsxs)("div",{className:j()(N,m),style:h,children:[!!o.length&&(0,s.jsxs)("div",{className:T,children:[(0,s.jsxs)("div",{className:B,children:[null===(t=o.find((function(e){return e.id===v})))||void 0===t?void 0:t.name,(0,s.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,s.jsx)("b",{className:L}),(0,s.jsx)("b",{className:P})]}),(0,s.jsx)("div",{className:Z,children:o.map((function(e,t){return(0,s.jsx)("div",{onClick:function(){var t;(t=e.id)!==v&&(w(t),l(encodeURIComponent(k),t))},children:e.name},t)}))})]}),(0,s.jsx)(D.Z,{onPressEnter:C,value:k,onChange:function(e){_(e.target.value),d(encodeURIComponent(e.target.value),v||null)},bordered:!1,placeholder:f}),(0,s.jsx)("i",{onClick:C,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},E="quickPager___GM30J",I="disabled___Ozc8I",O=function(e){var t=e.value,n=e.onChange,i=e.className,o=e.total,r=e.pageSize,a=e.style,l=void 0===a?{}:a,c=t<2,u=t>=Math.ceil(o/r);return o<=r?(0,s.jsx)(s.Fragment,{}):(0,s.jsxs)("div",{className:j()(E,i),style:l,children:[(0,s.jsx)("div",{onClick:function(){c||n(t-1,"prev")},className:c?I:"",children:"上一页"}),(0,s.jsx)("div",{onClick:function(){u||n(t+1,"next")},className:u?I:"",children:"下一页"})]})},H="list___oOsiS",R="wrap___G6T7F",z="lockWrap___Rl79E",G="li___oZZ7l",F="cover___b2bYW",W="img___IQX7w",U="sign___HkT6C",V="name___SsJx8",Y="e___TMqq0",J="tags___bcjyo",K="rate___YACg7",q=n(71418),Q=n(6848),X=n(31395),$=n(92723),ee=n(21082),te=n(96908),ne=n(57177),ie=n(81378),oe=n(54313),re=function(e){var t=e.className,n=e.dataSource,i=void 0===n?[]:n,o=e.col,r=void 0===o?4:o,a=e.right,l=e.bottom,c=void 0===l?23:l,u=e.precision,d=void 0===u?0:u,m=e.wrapWidth,p=void 0===m?1200:m,h=e.trackEventItems,f=e.loading,g=Math.floor((p-(r-1)*a)/r);return(0,s.jsx)(q.Z,{spinning:f,children:(0,s.jsxs)("div",{className:j()(H,t),children:[!!i.length&&i.map((function(e,t){var n=e.name,i=e.id,o=e.identifier,l=e.power,u=(e.cover_image_id,e.pic);return(0,s.jsxs)("div",{className:R,style:{width:g,marginRight:(1+t)%r==0?0:a+d,marginBottom:c},children:[(0,s.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(o,"/challenges"),className:G,onClick:function(e){e.preventDefault(),h&&(0,ee.L9)([h]),l&&(0,ee.xg)("/shixuns/".concat(o,"/challenges"))},children:[(0,s.jsxs)("div",{className:W,children:[(0,s.jsx)("img",{className:F,src:"".concat(u)}),e.is_jupyter&&(0,s.jsx)("img",{className:U,src:te}),e.is_jupyter_lab&&(0,s.jsx)("img",{className:U,src:ne}),e.is_unity_3d&&(0,s.jsx)("img",{className:U,src:ie})]}),(0,s.jsx)("div",{className:V,children:(0,s.jsx)(Q.Z,{title:n||"实践项目名称-未填写",children:(0,s.jsx)("span",{className:Y,children:n||"实践项目名称-未填写"})})}),(0,s.jsxs)("div",{className:J,children:[(0,s.jsx)(Q.Z,{placement:"bottom",title:"关卡数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,s.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,s.jsx)(Q.Z,{placement:"bottom",title:"学习人数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,s.jsx)("span",{children:e.myshixuns_count})]})}),(0,s.jsx)(Q.Z,{placement:"bottom",title:"难度等级",children:(0,s.jsx)("span",{children:(0,s.jsx)("span",{children:e.level})})}),(0,s.jsxs)("div",{className:K,children:[(0,s.jsx)(X.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,s.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!l&&(0,s.jsxs)("div",{className:z,children:[(0,s.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,s.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},i)})),!i.length&&(0,s.jsx)(oe.Z,{})]})})},ae="list___jb2Ay",se="wrap___VsQDr",le="li___IxCLC",ce="cover___Mu8wr",ue="img___IpFLA",de="movebq___mF7wt",me="bq___Bil0T",pe="sign___DXJ4d",he="name___l7FoJ",fe="e___pXQUG",ge="unit___wCIFR",xe="tags___w_Mil",ve=n(93697),we=function(e){var t=e.className,n=e.dataSource,i=void 0===n?[]:n,o=e.col,r=void 0===o?4:o,a=e.right,l=e.bottom,c=void 0===l?23:l,u=e.precision,d=void 0===u?0:u,m=e.wrapWidth,p=void 0===m?1200:m,h=e.trackEventItems,f=e.loading,g=e.onRemove,x=void 0===g?function(){}:g,v=e.isCurrent,w=void 0===v||v,y=e.showAlias,b=void 0!==y&&y,k=Math.floor((p-(r-1)*a)/r),_=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,s.jsx)(q.Z,{spinning:f,children:(0,s.jsxs)("div",{className:j()(ae,t),children:[!(null==i||!i.length)&&(null==i?void 0:i.map((function(e,t){var n,i=e.name,o=e.id,l=e.identifier,u=(e.featured,e.school_name),m=e.image_url;e.excellent,e.is_plan;return(0,s.jsx)("div",{className:se,style:{width:k,marginRight:(1+t)%r==0?0:a+d,marginBottom:c},children:(0,s.jsxs)("a",{className:le,onClick:function(e){e.preventDefault(),e.stopPropagation(),h&&(0,ee.L9)([h]),(0,ee.xg)("/paths/".concat(l))},children:[(0,s.jsxs)("div",{className:ue,children:[(0,s.jsx)("img",{className:ce,src:"".concat(m)}),w&&(0,ve.bg)()&&(null==e?void 0:e.studying)&&(0,s.jsxs)("div",{className:"".concat(de," user-path-items"),onClick:function(t){t.stopPropagation(),x(e)},children:[(0,s.jsx)("i",{className:"iconfont icon-yichu1 mr5 c-red"}),(0,s.jsx)("span",{className:"c-red",children:"移除"})]}),null==e||null===(n=e.subject_tags)||void 0===n?void 0:n.map((function(e,t){var n;if(0===t){var i,o=null===(i=_.find((function(t){return t.name==e})))||void 0===i?void 0:i.swimg;return(0,s.jsx)("img",{className:pe,src:o,style:{left:"-4px"}})}var r=null===(n=_.find((function(t){return t.name==e})))||void 0===n?void 0:n.ptimg;return(0,s.jsx)("img",{className:pe,src:r,style:{left:"".concat(48+52*(t-1)+2*t,"px")}})})),(0,s.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,s.jsx)("div",{className:me,children:"开放课程"})})]}),(0,s.jsx)("div",{className:he,children:(0,s.jsx)(Q.Z,{title:b&&null!=e&&e.excellent_alias_name?(0,s.jsxs)("span",{children:["课程原名:".concat(i),(0,s.jsx)("br",{}),(0,s.jsx)("span",{children:"课程别名:".concat(null==e?void 0:e.excellent_alias_name)})]}):i,children:(0,s.jsx)("span",{className:fe,children:b&&(null==e?void 0:e.excellent_alias_name)||i})})}),(0,s.jsx)(Q.Z,{title:"发布单位:".concat(u),children:(0,s.jsxs)("div",{className:ge,children:[(0,s.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),u]})}),(0,s.jsx)("div",{className:xe,children:(0,s.jsxs)("div",{children:[(0,s.jsx)(Q.Z,{placement:"bottom",title:"章节数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,s.jsx)("span",{children:e.stages_count})]})}),(0,s.jsx)(Q.Z,{placement:"bottom",title:"学习人数",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,s.jsx)("span",{children:e.members_count})]})})]})})]})},o)}))),!i.length&&(0,s.jsx)(oe.Z,{})]})})},ye={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},be=function(e){var t=e.className,n=e.dataSource,i=void 0===n?[]:n,o=e.col,r=void 0===o?4:o,a=e.right,l=e.bottom,c=void 0===l?23:l,u=e.precision,d=void 0===u?0:u,m=e.wrapWidth,p=void 0===m?1200:m,h=e.trackEventItems,f=e.loading,g=Math.floor((p-(r-1)*a)/r);return(0,s.jsx)(q.Z,{spinning:f,children:(0,s.jsxs)("div",{className:j()(ye.list,t),children:[!!i.length&&i.map((function(e,t){var n=e.subject_identifier,i=e.id,o=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,s.jsxs)("div",{className:ye.wrap,style:{width:g,marginRight:(1+t)%r==0?0:a+d,marginBottom:c},children:[(0,s.jsxs)("a",{className:ye.li,onClick:function(t){t.preventDefault(),(0,ee.Wn)(null==e?void 0:e.forbid_visit_info)||(h&&(0,ee.L9)([h]),(0,ee.xg)(e.first_category_url))},children:[(0,s.jsxs)("div",{className:ye.top,children:[(0,s.jsx)(Q.Z,{title:e.name,children:(0,s.jsx)("div",{className:ye.name,children:e.name})}),(0,s.jsx)("img",{className:ye.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,s.jsx)("div",{className:ye.text,title:e.creator,children:e.creator}),n&&(0,s.jsxs)("div",{className:ye.btns,children:[(0,s.jsx)("div",{children:"开放课程"}),(0,s.jsx)("aside",{children:"开放课堂"})]}),o&&(0,s.jsx)("div",{className:ye.sign,children:"公开"})]}),(0,s.jsxs)("div",{className:ye.bottom,children:[e.visits>0&&(0,s.jsx)(Q.Z,{title:"访问量",placement:"bottom",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,s.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,s.jsx)(Q.Z,{title:"成员",placement:"bottom",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,s.jsx)(Q.Z,{title:"作业",placement:"bottom",children:(0,s.jsxs)("span",{children:[(0,s.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,s.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,s.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,s.jsxs)("div",{className:ye.lockWrap,children:[(0,s.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,s.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},i)})),!i.length&&(0,s.jsx)(oe.Z,{})]})})},je={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},ke=n(5296),_e=function(e){var t=e.dataSource,n=void 0===t?[]:t,i=e.value,o=e.onChange,r=e.className,a=e.style,l=void 0===a?{}:a,c=e.tabBarExtraContent;return(0,s.jsxs)("div",{className:j()(je.tabs,r),style:l,children:[(0,s.jsx)("div",{className:je.tabsWrap,children:n.map((function(e,t){return(0,s.jsxs)("aside",{className:je.tab,onClick:function(){o(e.id),e.link&&ke.history.push(e.link)},children:[(0,s.jsx)("div",{className:i===e.id?je.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,s.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,s.jsx)(Q.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,s.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,s.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,s.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},t)}))}),(0,s.jsx)("div",{className:je.tabBar,children:c})]})},Ce=function(e){var t=e.className,n=e.style,i=void 0===n?{}:n,o=e.children;return(0,s.jsx)("div",{className:j()(t),style:i,children:o})},Ae="orderWrap___ZfyGX",Se="orderIconWrap___XTB_O",Ne="orderAsc___KWHmA",Te="orderDesc___rHdbB",Ze="active___a7eSP",Be="cursorPointer___gs9kL",Le="orderTextWrap___teAKn",Pe=n(38854),De=n(20834),Me=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Ee=function(e){var t,n=e.sortValue,i=e.dropValue,o=e.className,r=e.onSort,a=e.onDrop,l=e.dataSource,c=void 0===l?Me:l;return(0,s.jsxs)("div",{className:j()(Ae,o),children:[(0,s.jsx)(Pe.Z,{dropdownRender:function(){return(0,s.jsx)(De.Z,{children:c.map((function(e,t){return(0,s.jsx)(De.Z.Item,{onClick:function(){return a(e.id)},children:e.name},t)}))})},children:(0,s.jsx)("span",{className:Le,children:null===(t=c.find((function(e){return i===e.id})))||void 0===t?void 0:t.name})}),(0,s.jsxs)("span",{className:Se,children:[(0,s.jsx)("span",{className:Ne,children:(0,s.jsx)("i",{className:"asc"===n?"iconfont icon-sanjiaoxing-up font12 ".concat(Be," ").concat(Ze):"iconfont icon-sanjiaoxing-up font12 ".concat(Be),onClick:function(){return r("asc"===n?"desc":"asc")}})}),(0,s.jsx)("span",{className:Te,children:(0,s.jsx)("i",{className:"desc"===n?"iconfont icon-sanjiaoxing-down font12 ".concat(Be," ").concat(Ze):"iconfont icon-sanjiaoxing-down font12 ".concat(Be),onClick:function(){return r("asc"===n?"desc":"asc")}})})]})]})},Ie=n(82242),Oe=n.n(Ie),He=n(7557),Re=n.n(He),ze=n(41498),Ge=n.n(ze),Fe=n(39647),We=n.n(Fe),Ue={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ve=n(3113),Ye=["className","style","children","loading","openLoading","onClick","size","shape"],Je=function(e){var t=e.className,n=e.style,o=e.children,r=e.loading,a=void 0!==r&&r,l=e.openLoading,c=e.onClick,d=void 0===c?function(){}:c,m=e.size,p=void 0===m?"middle":m,h=e.shape,f=void 0===h?"round":h,g=We()(e,Ye),x=(0,i.useState)(!1),v=u()(x,2),w=v[0],y=v[1];return(0,s.jsx)(Ve.ZP,Oe()(Oe()({onClick:(0,k.throttle)(function(){var e=Ge()(Re()().mark((function e(t){return Re()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l&&y(!0),e.prev=1,e.next=4,d(t);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:l&&y(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:j()(Ue.btn,Ue["".concat(p,"-").concat(f)],t),style:n,size:p,shape:f,loading:w||a},g),{},{children:o}))},Ke="head___ghH72",qe="node___mjPEy",Qe=function(e){var t=e.className,n=e.style,i=e.children,o=void 0===i?null:i,r=e.onClick,a=e.title;return(0,s.jsxs)("div",{className:j()(Ke,t),style:n,children:[(0,s.jsxs)("span",{className:"primary-hover",onClick:r,children:[(0,s.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,s.jsx)("b",{title:a,children:a}),(0,s.jsx)("div",{className:qe,children:o})]})},Xe="btns___sNgTb",$e="confirm___Ozirl",et="cancel___aiq1I",tt=function(e){var t=e.confirmShow,n=void 0===t||t,i=e.confirmTitle,o=e.confirmClick,r=e.cancelShow,a=void 0===r||r,l=e.cancelTitle,c=e.cancelClick,u=e.className,d=e.style,m=e.confirmLoading,p=void 0!==m&&m;return(0,s.jsxs)("div",{className:j()(Xe,u),style:d,children:[n&&(0,s.jsx)(Ve.ZP,{loading:p,onClick:o,type:"primary",className:$e,children:i}),a&&(0,s.jsx)(Ve.ZP,{onClick:c,className:et,children:l})]})},nt={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},it=function(e){var t=e.className,n=e.style,i=void 0===n?{}:n,o=e.LeftContent,r=e.children,a=e.RightContent;return(0,s.jsx)("div",{className:j()(nt.fixedBottom,t),style:i,children:(0,s.jsxs)("div",{className:nt.wrap,children:[(0,s.jsx)("div",{className:nt.left,children:o}),(0,s.jsx)("div",{className:nt.center,children:r}),(0,s.jsx)("div",{className:nt.right,children:a})]})})},ot="crumbs___V41Oe",rt="hover___bEIVd",at=function(e){var t=e.className,n=e.style,o=void 0===n?{}:n,r=e.dataSource,a=void 0===r?[]:r;return(0,s.jsx)("div",{className:j()(ot,t),style:o,children:a.map((function(e,t){return t"," "]})]},t):(0,s.jsx)("span",{style:{color:"#5F6368"},children:e.name},t)}))})},st=n(31797),lt=["onChange"],ct=st.Z.Countdown,ut=function(e){var t=e.onChange,n=We()(e,lt),o=(0,i.useState)(null),r=u()(o,2),a=r[0],l=r[1];(0,i.useEffect)((function(){"number"==typeof a&&a>=0&&t(a)}),[a]);return(0,s.jsx)(ct,Oe()(Oe()({},n),{},{onChange:function(e){var t=Math.floor(e/1e3);l(t)}}))}},77818:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=n(59301);function o(e,t){var n=(0,i.useRef)();(0,i.useEffect)((function(){n.current=e})),(0,i.useEffect)((function(){if(null!==t){var e=setInterval((function(){n.current()}),t);return function(){return clearInterval(e)}}}),[t])}},80026:function(e,t,n){"use strict";var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(78241),m=n(43418),p=n(8591),h=n(92832),f=n(31917),g=n(5296),x=n(98382),v=n(37712);t.Z=(0,g.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading,shixunHomeworks:e.shixunHomeworks}}))((function(e){var t=e.classroomList,n=(e.loading,e.dispatch),i=e.shixunHomeworks,r=(0,g.useParams)(),s=d.Z.useForm(),c=u()(s,1)[0],w=(i.workList,i.workSetting);return(0,v.jsx)(m.Z,{centered:!0,title:"补交附件",open:"补交附件"===t.actionTabs.key,bodyStyle:{minHeight:200},onOk:a()(o()().mark((function e(){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=function(){var e=a()(o()().mark((function e(){var i,a,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.validateFields();case 2:return a=l()({},c.getFieldValue()),s=t.actionTabs.selectArrs,a.attachment_ids=null===(i=a.attachment_ids)||void 0===i?void 0:i.map((function(e){return e.response.id})),e.next=7,(0,f.mz)(l()(l()({},a),{},{homeworkId:s.work_id}));case 7:0===e.sent.status&&(c.resetFields(),n({type:"classroomList/setActionTabs",payload:{}}),n({type:"shixunHomeworks/getWorkSetting",payload:l()({},r)}),n({type:"shixunHomeworks/getWorkList",payload:l()({},r)}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),null==w||!w.can_submit){e.next=7;break}if(null!=w&&w.submit_size){e.next=5;break}return p.ZP.warning("您的作品提交机会已用完。如需继续修改,请联系指导老师或平台运营。"),e.abrupt("return");case 5:return m.Z.confirm({title:"提示",icon:null,centered:!0,width:472,content:(0,v.jsxs)(v.Fragment,{children:["你还有 ",(0,v.jsx)("span",{className:"ml5 mr5",style:{color:"#DF711C"},children:null==w?void 0:w.submit_size})," 次提交机会。确认提交后,上一次的提交记录会被覆盖。请注意,到达规定的提交次数后将不可再次提交,确定是否提交?"]}),onOk:function(){i()}}),e.abrupt("return");case 7:i();case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){c.resetFields(),n({type:"classroomList/setActionTabs",payload:{}})},children:(0,v.jsxs)(d.Z,{form:c,initialValues:{},children:[(0,v.jsx)(d.Z.Item,{name:"attachment_ids",rules:[{required:!0,message:"请上传附件"}],children:(0,v.jsx)(x.Z,{})}),(0,v.jsx)(d.Z.Item,{name:"description",children:(0,v.jsx)(h.Z.TextArea,{placeholder:"请在此输入补交附件的原因,最大限制100个字符",rows:7})})]})})}))},7896:function(e,t,n){"use strict";var i=n(7557),o=n.n(i),r=n(85573),a=n.n(r),s=n(37205),l=n.n(s),c=n(41498),u=n.n(c),d=n(82242),m=n.n(d),p=n(79800),h=n.n(p),f=n(39647),g=n.n(f),x=n(59301),v=n(78241),w=n(8591),y=n(43418),b=n(95237),j=n(43604),k=n(57930),_=n(5112),C=n(24905),A=n(61186),S=n.n(A),N=n(18030),T=n(93697),Z=n(21082),B=n(5296),L=n(95335),P=n(72764),D=n(54602),M=n(63363),E=n(37712),I=["classroomList","dispatch","courseEndTime"];t.Z=(0,B.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,i=e.dispatch,r=e.courseEndTime,s=g()(e,I),c=(0,B.useParams)(),d=v.Z.useForm(),p=h()(d,1)[0],f=(0,x.useState)(1),A=h()(f,2),O=A[0],H=A[1],R=(0,x.useState)([]),z=h()(R,2),G=z[0],F=z[1],W=(0,x.useState)(0),U=h()(W,2),V=(U[0],U[1]),Y=(0,x.useState)(2e3),J=h()(Y,2),K=(J[0],J[1],(0,x.useState)(!0)),q=h()(K,2),Q=(q[0],q[1]),X=(0,x.useState)(!1),$=h()(X,2),ee=$[0],te=($[1],(0,x.useState)(!1)),ne=h()(te,2),ie=ne[0],oe=(ne[1],(0,x.useState)([])),re=h()(oe,2),ae=re[0],se=re[1],le=(0,x.useState)(!0),ce=h()(le,2),ue=ce[0],de=ce[1],me=(0,x.useState)(null),pe=h()(me,2),he=pe[0],fe=pe[1];(0,x.useEffect)((function(){if("立即发布"===n.actionTabs.key)if(we(),ge(),2===n.actionTabs.type){var e=n.actionTabs.selectArrsAll[0];fe({submit_limit:null==e?void 0:e.submit_limit,submit_limit_num:null==e?void 0:e.submit_limit_num,must_file:null==e?void 0:e.must_file,can_submit:null==e?void 0:e.can_submit,submit_num:null==e?void 0:e.submit_num}),de(e.unified_setting)}else de(!1),fe({submit_limit:!1,submit_limit_num:200,must_file:!1,can_submit:!1,submit_num:3})}),[n.actionTabs]),(0,x.useEffect)((function(){if(ee){if(ie)return;i({type:"classroomList/setActionTabs",payload:{}}),(0,T.GJ)()?i({type:"classroomList/getClassroomTeacherCommonList",payload:m()(m()({},n.actionTabs.params),{},{type:1})}):i({type:"classroomList/getClassroomCommonList",payload:m()({},n.actionTabs.params)})}}),[ee]);var ge=function(){var e=u()(o()().mark((function e(t){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Q(!0),e.next=3,(0,D.c_)(m()(m()({},c),{},{page:t||O,limit:2e4,homework_id:1===n.actionTabs.type?"":n.actionTabs.selectArrs[0]}));case 3:null==(i=e.sent)||i.course_groups.map((function(e,t){e.key=e.id,e.title=e.name,e.disabled=e.is_published})),i&&(F(l()(null==i?void 0:i.course_groups)),V(null==i?void 0:i.course_groups_count),Q(!1),t||p.setFieldsValue(a()(a()({},"publish_time",S()(S()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",S()(S()(new Date((0,Z.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm")))));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),xe=function(){(0,T.GJ)()?n.actionTabs.detail?(i({type:"shixunHomeworks/setActionTabs",payload:{}}),i({type:"shixunHomeworks/getWorkList",payload:m()({},c)}),i({type:"shixunHomeworks/getWorkSetting",payload:m()({},c)})):i({type:"classroomList/getClassroomTeacherCommonList",payload:m()(m()({},n.actionTabs.params),{},{type:1})}):i({type:"classroomList/getClassroomCommonList",payload:m()({},n.actionTabs.params)})},ve=function(){var e=u()(o()().mark((function e(){var t,r,a,u;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,T.Rm)()||null!==(t=n.AssistantObject.normal)&&void 0!==t&&t.can_publish){e.next=4;break}return w.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能"),ke(!1),e.abrupt("return");case 4:if(!((a=m()({},p.getFieldsValue())).end_time<=a.publish_time)){e.next=9;break}return w.ZP.info("截止时间不能大于或等于发布时间"),ke(!1),e.abrupt("return");case 9:if(!((null==ae?void 0:ae.length)<=0&&!ue&&G.length>0)){e.next=13;break}return w.ZP.info("发布班级不能为空"),ke(!1),e.abrupt("return");case 13:if(null==he||!he.submit_limit||null!=he&&he.submit_limit_num){e.next=17;break}return w.ZP.warning("学生填写内容字数不能为空"),ke(!1),e.abrupt("return");case 17:if(null==he||!he.can_submit||null!=he&&he.submit_num){e.next=21;break}return w.ZP.warning("学生提交作品次数不能为空"),ke(!1),e.abrupt("return");case 21:return u=m()({homework_ids:l()(n.actionTabs.selectArrs),group_ids:ae.length>0?ae.map((function(e){return e.id})):null===(r=n.detailCommonHomeworksList)||void 0===r?void 0:r.course_groups,end_time:S()(a.end_time).format("YYYY-MM-DD HH:mm"),publish_time:S()(a.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!ae.length},he),ke(!0),e.next=25,(0,N.ZP)("/api/courses/".concat(c.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:m()({},u)});case 25:0===e.sent.status?(ke(!1),(0,Z.L9)(["教学课堂","图文作业","立即发布"]),w.ZP.success("发布成功"),i({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),s.onCallback&&s.onCallback(),xe(),"0"===localStorage.getItem("Noviceguide")||i({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:13,text:(0,E.jsx)("div",{children:"最后,咱们给教学课堂添加一名学生~点击“添加学生”,在弹窗页面中输入并搜索学生姓名,点击“确定”就可以为您的课堂添加第一位学生啦~"})}})):ke(!1);case 27:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),we=function(){H(1),F([]),se([])},ye=(n.detailCommonHomeworksList,(0,x.useState)(!1)),be=h()(ye,2),je=be[0],ke=be[1];return(0,E.jsxs)(y.Z,{width:600,centered:!0,confirmLoading:je,title:"发布作业",open:"立即发布"===n.actionTabs.key,okText:"发布作业",cancelText:"暂不发布",onOk:ve,onCancel:function(){we(),xe(),i({type:"classroomList/setActionTabs",payload:{}})},children:[(0,E.jsxs)("p",{className:"tc",children:["学生将立即收到作业",(0,E.jsx)("br",{}),'本操作只对"未发布"的作业有效']}),G&&(0,E.jsxs)(v.Z,{form:p,children:[(0,E.jsxs)("div",{style:{paddingLeft:0},children:[(0,E.jsxs)(b.Z,{className:"mt30",align:"middle",children:[(0,E.jsx)(j.Z,{children:(0,E.jsx)(v.Z.Item,{name:"publish_time",label:"发布时间",children:(0,E.jsx)(k.default,{style:{width:170,marginRight:"25px"},disabledDate:function(e){return(0,M.Q8)(e,r)},disabledTime:function(e){return(0,M.d0)(e)},placeholder:"请选择发布时间",showTime:{format:"HH:mm",defaultValue:S()((0,Z.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),(0,E.jsx)(j.Z,{className:"ml20",children:(0,E.jsx)(v.Z.Item,{name:"end_time",label:"截止时间",children:(0,E.jsx)(k.default,{style:{width:170},placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:S()((0,Z.U6)(),"HH:mm")},disabledDate:function(e){return(0,M.Q8)(e,r,p.getFieldValue("publish_time"))},disabledTime:function(e){return(0,M.d0)(e,p.getFieldValue("publish_time"))},format:"YYYY-MM-DD HH:mm",allowClear:!1})})})]}),2===n.actionTabs.type&&(0,E.jsxs)(b.Z,{style:{marginBottom:"10px"},children:[(0,E.jsx)("span",{className:"mr5",children:"发布设置:"}),(0,E.jsxs)(_.ZP.Group,{value:ue,onChange:function(e){de(e.target.value),se([])},children:[(0,E.jsx)(_.ZP,{value:!0,disabled:!n.actionTabs.manage_all_group,children:"统一发布"}),(0,E.jsx)(_.ZP,{className:"ml20",disabled:G.length<=0,value:!1,children:"分班发布"})]})]}),G.length<=0&&2===n.actionTabs.type&&(0,E.jsx)("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"},children:'课堂无分班,仅支持选择“统一发布"'})]}),(1===n.actionTabs.type||!ue)&&G.length>0&&(0,E.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"},children:[(0,E.jsx)("span",{style:{flex:1},children:(0,E.jsx)(C.Z,{checked:ae.length===G.length,onChange:function(e){ae.length===G.length?se([]):se(G.filter((function(e){return!e.is_published})))},children:"全选"})}),(0,E.jsx)("span",{style:{width:16}}),(0,E.jsxs)("span",{style:{flex:1},children:["已选择",ae.length||0,"个分班"]})]}),(1===n.actionTabs.type||!ue)&&G.length>0&&(0,E.jsx)(L.Z,{data:G,selectedRowKeys:ae,setSelectedRowKeys:se})]}),!(null!=n&&null!==(t=n.actionTabs)&&void 0!==t&&null!==(t=t.selectArrsAll)&&void 0!==t&&null!==(t=t[0])&&void 0!==t&&t.is_shixun)&&(0,E.jsx)(P.ZP,{value:he,onChange:function(e){return fe(m()({},e))}})]})}))},96544:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});n(59301);var i=n(38854),o=n(20834),r=n(6848),a=n(92832),s="searchSortControllerContainer___AAq4n",l="btn___bMc0x",c="btnSort___vBpNG",u="tips___egWVQ",d=n(37712),m=function(e){var t=e.isAdmin,n=(e.dataSource,e.batchStatus,e.SortMenuName),m=e.setSortMenuName,p=e.onSearch,h=e.onSort,f=(e.onBatch,t?[{name:"默认排序",type:"position",direction:"desc"},{name:"创建时间升序",type:"created_at",direction:"asc"},{name:"创建时间降序",type:"created_at",direction:"desc"},{name:"更新时间升序",type:"updated_at",direction:"asc"},{name:"更新时间降序",type:"updated_at",direction:"desc"},{name:"作业名称升序",type:"name_pinyin",direction:"asc"},{name:"作业名称降序",type:"name_pinyin",direction:"desc"}]:[{name:"默认排序",type:"position",direction:"desc"},{name:"按发布时间升序",type:"created_at",direction:"asc"},{name:"按发布时间降序",type:"created_at",direction:"desc"},{name:"按截止时间升序",type:"updated_at",direction:"asc"},{name:"按截止时间降序",type:"updated_at",direction:"desc"},{name:"作业名称升序",type:"name_pinyin",direction:"asc"},{name:"作业名称降序",type:"name_pinyin",direction:"desc"}]),g="默认排序"===n;return(0,d.jsxs)("div",{className:s,children:[(0,d.jsx)("div",{children:(0,d.jsx)(i.Z,{dropdownRender:function(){return(0,d.jsx)(o.Z,{selectedKeys:[n],children:f.map((function(e){return(0,d.jsx)(o.Z.Item,{onClick:function(){return m((t=e).name),void h(t);var t},children:e.name},e.name)}))})},children:(0,d.jsx)("div",{children:(0,d.jsxs)("span",{className:"".concat(l," ").concat(g?c:""),children:[(0,d.jsx)("i",{className:"iconfont icon-paixu font14 mr5"}),n]})})})}),g&&(0,d.jsx)(r.Z,{title:"优先按照调整排序结果展示,未设置排序时,按照创建时间降序排列",children:(0,d.jsx)("span",{className:u,children:(0,d.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2"})})}),(0,d.jsx)(a.Z.Search,{allowClear:!0,placeholder:"请输入名称进行搜索",onSearch:function(e){return p(e.trim())},style:{width:220,marginLeft:"auto"}})]})}},78441:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});n(59301);var i=n(20834),o=n(95237),r=n(43604),a=n(38854),s=n(6848),l="tabMenuContainer___xbZhu",c="control___tg7XY",u="iconH___CDXCm",d="selectBtn___Da4jv",m=n(5296),p=n(93697),h=n(37712),f=(0,m.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.isLoading,f=e.addText,g=e.tabDataSource,x=e.isAdmin,v=e.dispatch,w=e.type,y=e.exportType,b=e.TooltipTitle,j=e.categoryId,k=e.dropdownMenu,_=e.isShowRightControl,C=e.defaultSelectedKeys,A=e.classroomList,S=e.onTabMenuClick,N=e.onTooltipTitleClick,T=e.onDropdownMenuClick,Z=e.onsetClick,B=(0,m.useParams)();return(0,h.jsx)("div",{className:l,children:(0,h.jsxs)(o.Z,{children:[(0,h.jsx)(r.Z,{flex:"1",children:(0,h.jsx)(i.Z,{mode:"horizontal",selectedKeys:C,children:g.map((function(e){return(0,h.jsxs)(i.Z.Item,{onClick:function(){return n?{}:S(e)},children:[(0,h.jsx)("span",{className:"c-grey-666 ".concat(x?"mr20":""),children:e.name}),void 0!==e.total&&(0,h.jsx)("span",{className:"c-grey-999",children:e.total||0})]},e.id)}))})}),x&&_&&(0,h.jsxs)(r.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3},children:[(0,h.jsx)(a.Z,{className:"mr10",placement:"bottom",arrow:!0,dropdownRender:function(){return(0,h.jsxs)(i.Z,{children:[(0,h.jsx)(i.Z.Item,{onClick:function(){v({type:"classroomList/setActionTabs",payload:{key:"导出成绩",type:w,exportType:y,category_id:B.categoryId}})},children:"学生成绩"},1),(0,h.jsx)(i.Z.Item,{onClick:function(){m.history.push("/classrooms/".concat(null==B?void 0:B.coursesId,"/exportlist/").concat("group"===y?"group_work_list":"normal_work_list"))},children:"历史导出"},3)]})},children:(0,h.jsx)("div",{className:"c-blue font16 ml20 current",style:{marginTop:2},children:(0,h.jsx)("span",{style:{color:"#666666",cursor:"pointer"},children:(0,h.jsx)("i",{className:"iconfont icon-xiazai6"})})})}),!(0,p.Rm)()||null!==(t=A.AssistantObject.normal)&&void 0!==t&&t.can_create?(0,h.jsx)("span",{className:"c-grey-666",style:{marginLeft:8,cursor:"pointer",marginTop:"3px"},onClick:Z,children:(0,h.jsx)("i",{className:"iconfont icon-shezhi6 font16 mr5"})}):"",(0,h.jsxs)("div",{className:c,children:[(0,h.jsx)("div",{className:"c-blue font16 ml20 current",style:{marginTop:2},onClick:N,children:(0,h.jsx)(s.Z,{title:b,children:(0,h.jsx)("span",{className:"".concat(u,j?" iconfont icon-zhongmingmingmulu":" iconfont icon-xinjianmulu1")})})}),(0,h.jsx)(a.Z,{className:"ml10",dropdownRender:function(){return(0,h.jsx)(i.Z,{onClick:function(e){var t=e.key;T(t)},children:k.map((function(e){return(0,h.jsx)(i.Z.Item,{children:e.name},e.id)}))})},children:(0,h.jsxs)("span",{className:d,children:[(0,h.jsx)("span",{children:(0,h.jsx)("i",{className:"iconfont icon-tianjiadaohang"})}),(0,h.jsx)("span",{children:f||"新建作业"})]})})]})]})]})})}))},97236:function(e,t,n){"use strict";n.r(t),n.d(t,{CommonHomeworkContext:function(){return Qe},default:function(){return Xe}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301),m=n(5296),p=n(8591),h=n(27092),f=n(81228),g=n(43418),x=n(95237),v=n(43604),w=n(5112),y=n(60324),b=n(94001),j=n(24905),k=n(39248),_=n(21082),C=n(93697),A=n(37205),S=n.n(A),N=n(39647),T=n.n(N),Z=n(18030),B=n(97978),L=n(37712),P=["classroomList","dispatch","match","location","user","onCallback"],D=(0,m.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,i=e.classroomList,r=e.dispatch,s=(e.match,e.location,e.user),c=e.onCallback,h=(T()(e,P),(0,m.useParams)()),f=(0,d.useState)(!1),x=u()(f,2),v=x[0],w=x[1],y=(0,d.useState)(!1),b=u()(y,2),j=b[0],k=b[1],A=(0,d.useRef)(null);(0,d.useEffect)((function(){if("删除"===i.actionTabs.key){if((0,C.j5)())return void k(!0);var e={hasNum:0,noHasNum:0};i.actionTabs.selectArrsAll.map((function(t){var n;t.author_login===(null===(n=s.userInfo)||void 0===n?void 0:n.login)?++e.hasNum:++e.noHasNum})),e.noHasNum>0?g.Z.info({title:"权限提示",className:"custom-modal-divider ",icon:null,content:(0,L.jsxs)("div",{children:["当前选中资源中:",(0,L.jsx)("span",{className:"c-blue",children:e.hasNum}),"个由您本人发布,",(0,L.jsx)("span",{className:"c-red",children:e.noHasNum})," ","个由其他老师发布。",(0,L.jsx)("br",{}),"课堂内只能删除本人发布的资源,请取消选中其他老师发布的资源。"]}),onOk:function(){N()}}):k(!0)}else k(!1)}),[i.actionTabs.key]);var N=function(){r({type:"classroomList/setActionTabs",payload:{}})};return(0,L.jsx)(g.Z,{centered:!0,title:"提示",open:j,okText:"确定",cancelText:"取消",confirmLoading:v,destroyOnClose:!0,onOk:a()(o()().mark((function e(){var t,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=A.current)||void 0===t||!t.onVerify()){e.next=2;break}return e.abrupt("return");case 2:return w(!0),e.next=5,(0,Z.ZP)("/api/courses/".concat(h.coursesId,"/homework_commons/multi_destroy.json"),{method:"post",body:{homework_ids:S()(i.actionTabs.selectArrs)}});case 5:n=e.sent,w(!1),0===n.status&&((0,_.L9)(["教学课堂","图文作业","删除"]),p.ZP.success("删除成功"),r({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),c&&c(),(0,C.GJ)()?r({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},i.actionTabs.params),{},{type:1})}):r({type:"classroomList/getClassroomCommonList",payload:l()({},i.actionTabs.params)}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:h.coursesId}}));case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){N()},children:null!=i&&null!==(t=i.actionTabs)&&void 0!==t&&t.status&&["未发布"].includes(null==i||null===(n=i.actionTabs)||void 0===n?void 0:n.status)?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("p",{children:"提交作品将全部被删除,不可恢复"}),(0,L.jsx)("p",{children:"是否确认删除?"})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("p",{style:{color:"#DD0000"},children:"删除作业则会清除学生所有的答题数据,且数据不可恢复,如确定删除,请输入下方验证码"}),(0,L.jsx)(B.Z,{ref:function(e){return A.current=e}})]})})})),M=n(7896),E=n(3655),I=(0,m.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,i=(0,m.useParams)();return(0,L.jsx)(g.Z,{centered:!0,title:"提示",open:"设为公开"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Z.ZP)("/api/courses/".concat(i.coursesId,"/homework_commons/set_public.json"),{method:"post",body:{homework_ids:S()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,_.L9)(["教学课堂","图文作业","设为公开"]),p.ZP.success("操作成功"),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,C.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:1})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:(0,L.jsxs)("p",{children:["设为公开后,非课堂成员也可以访问查看",(0,L.jsx)("br",{}),"是否确认设为公开?"]})})})),O=["classroomList","dispatch","onCallback"],H=(0,m.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,i=e.onCallback,r=(T()(e,O),(0,m.useParams)());return r.id=r.coursesId,(0,L.jsx)(g.Z,{centered:!0,title:"提示",open:"收藏"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Z.ZP)("/api/courses/".concat(r.id,"/homework_commons/add_to_homework_bank.json"),{method:"post",body:{all_check:0,homework_ids:S()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,_.L9)(["教学课堂","图文作业","收藏"]),p.ZP.success("收藏成功,请前往【个人主页/课堂资源】查看"),n({type:"classroomList/setActionTabs",payload:{}}),i&&i(),(0,C.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:1})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)}),n({type:"classroomList/setActionTabs",payload:{}}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:"确认收藏?"})})),R=n(85573),z=n.n(R),G=n(78241),F=n(92832),W=n(61186),U=n.n(W),V=(0,m.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t,n,i=e.classroomList,r=(e.loading,e.dispatch),s=e.onCallback,c=(0,m.useParams)(),d=(0,m.useLocation)(),h=i.actionTabs,f=G.Z.useForm(),w=u()(f,1)[0];return(0,L.jsxs)(g.Z,{centered:!0,title:"新建目录",open:"新建目录"===i.actionTabs.key,okText:"确定",cancelText:"取消",bodyStyle:{minHeight:200},onOk:a()(o()().mark((function e(){var t,n,a,u,h,f,g,x;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=w.getFieldValue(),n="/api/course_modules/".concat(i.detailCommonHomeworksList.main_category_id,"/add_second_category.json"),e.next=4,(0,Z.ZP)(n,{method:"post",body:l()({},t)});case 4:0===(a=e.sent).status&&(p.ZP.success("添加成功"),s&&s(),r({type:"classroomList/setActionTabs",payload:{}}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:c.coursesId}}),h=i.actionTabs.selectArrs.type,f=(null==a?void 0:a.category_id)||0,(g=null===(u=d.pathname)||void 0===u?void 0:u.split("/"))[4]=f,g[3]=h||g[3],x=null==g?void 0:g.join("/"),m.history.push(x));case 6:case"end":return e.stop()}}),e)}))),onCancel:function(){r({type:"classroomList/setActionTabs",payload:{}})},children:[(0,L.jsx)("p",{className:"tc",children:(0,L.jsx)("br",{})}),i.courseGroups.course_groups&&(0,L.jsx)(G.Z,{form:w,initialValues:z()({},"name",""),children:(0,L.jsx)(G.Z.Item,{name:"name",children:(0,L.jsxs)(x.Z,{className:"mt30",children:[(0,L.jsx)(v.Z,{children:"目录名称:"}),(0,L.jsx)(v.Z,{flex:"1",children:(0,L.jsx)(F.Z,{defaultValue:(null===(t=h.selectArrs)||void 0===t?void 0:t.category_name)||(null===(n=h.selectArrs)||void 0===n?void 0:n.name)})})]})})})]})})),Y=n(99313),J=n(3113),K=n(26724),q=n.n(K),Q=n(87308),X=n(28103),$=n(81327),ee=n(71418),te=n(99681),ne={shixunItemWrapper:"shixunItemWrapper___cgnhs",checkboxWrapper:"checkboxWrapper___Z7zZt",contentWrapper:"contentWrapper___TO4hm",title:"title___P8Su0",desc:"desc___j_4ZZ",info:"info___rg8e4",scrollWrap:"scrollWrap___EjY1R",loading:"loading___iNP0r"},ie=n(48486),oe=Q.Z.Paragraph,re=function(e,t){var n=e.createShixunParams,i=(0,d.useState)("0"),r=u()(i,2),s=r[0],c=r[1],m=(0,d.useState)("hot"),p=u()(m,2),h=p[0],f=p[1],g=(0,d.useState)([]),w=u()(g,2),y=w[0],b=w[1],k=(0,d.useState)(!0),_=u()(k,2),C=_[0],A=_[1],N=(0,d.useState)(1),T=u()(N,2),Z=T[0],B=T[1],P=(0,d.useRef)(null),D=(0,d.useRef)(null),M=(0,d.useRef)({page:1,order:"hot",keyword:"",shixun_type:"jupyter",diff:"0",limit:10,mine:"",status:""}),E=function(){var e=a()(o()().mark((function e(t,n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:A(!0),clearTimeout(P.current),P.current=setTimeout(a()(o()().mark((function e(){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(t,"params2"),e.next=3,(0,te.he)(t);case 3:if((i=e.sent).status){e.next=15;break}if(!n){e.next=10;break}return 0===i.shixuns.length&&W(!1),b((function(e){return[].concat(S()(e),S()(i.shixuns))})),A(!1),e.abrupt("return");case 10:D.current.scrollTop=0,W(!0),B(Z+1),A(!1),b(i.shixuns);case 15:case"end":return e.stop()}}),e)}))),1e3);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();(0,d.useImperativeHandle)(t,(function(){return{search:function(e){return E(l()(l()({},M.current),{},{keyword:e}))},changeKeyWord:function(e){return M.current.keyword=e}}})),(0,d.useEffect)((function(){E(M.current)}),[]);var I=(0,d.useState)([]),O=u()(I,2),H=O[0],R=O[1],z=(0,d.useState)(!0),G=u()(z,2),F=G[0],W=G[1];return(0,L.jsxs)("div",{className:"mt20",children:[(0,L.jsxs)(x.Z,{justify:"space-between",style:{marginBottom:8},children:[(0,L.jsx)(v.Z,{children:[{name:"全部",id:"0"},{name:"初级",id:"1"},{name:"中级",id:"2"},{name:"中高级",id:"3"},{name:"高级",id:"4"}].map((function(e,t){return(0,L.jsx)("span",{style:{border:"none",marginRight:20,color:s===e.id?"#3061D0":"rgba(0, 0, 0, 0.85)"},onClick:function(){c(e.id),M.current.diff=e.id,E(M.current)},children:e.name},t)}))}),(0,L.jsx)(v.Z,{children:(0,L.jsx)(ie.tp,{dataSource:[{name:"最新",id:"new"},{name:"最热",id:"hot"},{name:"我的",id:"mine"}],value:h,onChange:function(e){f(e),M.current.order=e,"mine"===e?(M.current.mine="true",M.current.status="2"):(M.current.mine="",M.current.status=""),E(M.current)}})})]}),(0,L.jsxs)("div",{className:ne.scrollWrap,children:[(0,L.jsx)("div",{ref:D,style:{maxHeight:260,overflow:"hidden auto"},children:(0,L.jsx)(q(),{initialLoad:!1,pageStart:1,threshold:100,loadMore:function(e){E(l()(l()({},M.current),{},{page:e}),!0)},hasMore:F&&!C,useWindow:!1,children:(0,L.jsx)(j.Z.Group,{onChange:function(e){R(e),n.current.shixuns_info=e.map((function(e){return{shixun_id:e,is_copy:0,is_use:1}}))},value:H,children:y.map((function(e){var t=e||{},n=t.name,i=t.id,o=t.description,r=t.challenge_names,a=t.author_name,s=t.author_school_name,l=t.level,c=t.total_stu_num;return(0,L.jsxs)("div",{className:ne.shixunItemWrapper,children:[(0,L.jsxs)(x.Z,{align:"middle",className:ne.checkboxWrapper,gutter:14,style:{padding:"20px 20px 0 20px",background:"transparent",marginBottom:"0px"},children:[(0,L.jsx)(j.Z,{value:i,style:{paddingRight:"10px"}}),(0,L.jsx)("div",{className:ne.title,style:{fontWeight:"600"},children:n})]}),(0,L.jsxs)("div",{className:ne.contentWrapper,children:[(0,L.jsx)(oe,{ellipsis:{rows:2},className:ne.desc,style:{color:"#8e8888",fontSize:"12px",margin:"5px 0px"},children:o}),(0,L.jsx)(x.Z,{children:r.map((function(e,t){return(0,L.jsxs)("span",{className:ne.mission,style:{fontSize:"14px",fontWeight:"600",color:"#4f4f4b"},children:[(0,L.jsxs)("span",{style:{paddingRight:"5px"},children:["第",t+1,"关"]})," ",e]},t)}))}),(0,L.jsx)(X.Z,{dashed:!0,style:{margin:"8px 0"}}),(0,L.jsx)(x.Z,{className:ne.info,children:(0,L.jsxs)($.Z,{children:[(0,L.jsx)("span",{style:{fontWeight:"600",color:"black"},children:a}),(0,L.jsx)("span",{children:"|"}),(0,L.jsx)("span",{children:s}),(0,L.jsx)("span",{children:"|"}),(0,L.jsxs)("span",{children:["难度系数 ",(0,L.jsx)("span",{style:{fontWeight:"400",color:"#000000"},children:l})]}),(0,L.jsx)("span",{children:"|"}),(0,L.jsxs)("span",{children:["学习人数  ",(0,L.jsx)("span",{style:{fontWeight:"600",color:"black"},children:c})]})]})})]})]},i)}))})},Z)}),C&&(0,L.jsx)("div",{className:ne.loading,children:(0,L.jsx)(ee.Z,{spinning:!0})})]})]})},ae=(0,d.forwardRef)(re),se={flex_box_center:"flex_box_center___c_im6",flex_space_between:"flex_space_between___bYk0F",flex_box_vertical_center:"flex_box_vertical_center___umg07",flex_box_center_end:"flex_box_center_end___gNLdg",flex_box_column:"flex_box_column___i84TM",line1:"line1___xbMUH",form:"form___hugHb",small_search:"small_search___x0fZd",border:"border___rjNxX"},le=n(54313),ce=n(54602),ue=n(21530),de=(Y.Z.TabPane,(0,m.connect)((function(e){var t=e.shixunHomeworks,n=e.classroomList;return{shixunHomeworks:t,loading:e.loading,classroomList:n}}))((function(e){var t,n=e.shixunHomeworks,i=(e.loading,e.classroomList),r=e.dispatch,s=e.refreshList,c=(0,m.useParams)(),p=((0,m.useLocation)(),G.Z.useForm()),h=u()(p,1)[0],f=(n.brankList,(0,d.useState)(!1)),w=u()(f,2),y=(w[0],w[1]),b=(0,d.useState)(!0),k=u()(b,2),A=k[0],N=k[1],T=(0,d.useState)(!1),Z=u()(T,2),B=Z[0],P=Z[1],D=(0,d.useState)("myself"),M=u()(D,2),E=M[0],I=M[1],O=(0,d.useState)([]),H=u()(O,2),R=H[0],W=H[1],U=(0,d.useState)(),V=u()(U,2),Y=V[0],K=V[1],Q=(0,d.useState)({page:0,limit:20,object_type:"normal",search:"",filter:"myself"}),X=u()(Q,2),$=X[0];X[1];(0,d.useEffect)((function(){"题库选用"===n.actionTabs.key&&te()}),[n.actionTabs.key]);var ee=[],te=function(){var e=a()(o()().mark((function e(){var t,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!A){e.next=11;break}return y(!1),++$.page,e.next=5,r({type:"shixunHomeworks/getBrankList",payload:l()({},$)});case 5:n=e.sent,R=S()(R.concat(n.object_list)),K(n.is_teacher),(null===(t=n.object_list)||void 0===t?void 0:t.length)<$.limit?N(!1):N(!0),W(S()(R)),""==n.object_list&&1===$.page&&y(!0);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ne=(0,d.useRef)({identifier:c.coursesId,shixuns_info:[],type:"normal",coursesId:c.coursesId,category_id:c.categoryId}),ie=function(){var e=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P(!0),e.next=3,(0,ce.aQ)(t);case 3:n=e.sent,P(!1),n.status||(s(),r({type:"shixunHomeworks/setActionTabs",payload:{}}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:t.coursesId}}));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),oe=(0,d.useRef)(),re=i.detailCommonHomeworksList;return(0,L.jsxs)(g.Z,{className:se.border,centered:!0,title:(0,L.jsx)("span",{style:{fontWeight:"600"},children:"选用课堂资源"}),destroyOnClose:!0,open:"题库选用"===n.actionTabs.key,okText:"确定",cancelText:"取消",width:800,bodyStyle:{minHeight:200},okButtonProps:{loading:B},onOk:a()(o()().mark((function e(){var t,i,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("jupyter"!==E){e.next=3;break}return ie(ne.current),e.abrupt("return");case 3:return P(!0),t=h.getFieldsValue(),e.next=7,r({type:"shixunHomeworks/saveBanks",payload:{course_id:c.coursesId,object_type:"normal",category:c.categoryId,bank_id:t.group_ids}});case 7:0===(null==(i=e.sent)?void 0:i.status)&&((0,_.L9)(["教学课堂","图文作业","选用课堂资源"]),r({type:"classroomList/getClassroomLeftMenus",payload:{id:c.coursesId}}),r({type:"shixunHomeworks/setActionTabs",payload:{}}),r({type:"classroomList/setActionTabs",payload:{key:"立即发布",type:1,selectArrs:i.object_ids,params:null===(a=n.actionTabs)||void 0===a?void 0:a.params,manage_all_group:null==re?void 0:re.manage_all_group}})),P(!1);case 10:case"end":return e.stop()}}),e)}))),onCancel:function(){r({type:"shixunHomeworks/setActionTabs",payload:{}})},children:[(0,L.jsxs)(x.Z,{style:{borderBottom:"0.5px solid gainsboro",paddingBottom:"15px"},children:[(0,L.jsx)(v.Z,{span:12,children:[{name:"我的资源",id:"myself"},{name:"公共资源",id:"public"},{name:"jupyter实训",id:"jupyter"}].map((function(e,t){return(0,L.jsx)(J.ZP,{shape:"round",style:E===e.id?{background:"#e8efff",border:"none",color:"#6f9fe6"}:{background:"#f6f6f6",border:"none"},type:E===e.id?"ghost":"default",className:"mr10",onClick:function(){var t=a()(o()().mark((function t(n){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("jupyter"!==e.id){t.next=3;break}return I(e.id),t.abrupt("return");case 3:R=[],A=!0,$.page=0,$.search="",$.filter=e.id,te(),I(e.id);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),children:e.name},t)}))}),(0,L.jsx)(v.Z,{span:12,className:"tr",children:(0,L.jsx)(F.Z.Search,{className:se.small_search,placeholder:"输入标题进行搜索",onChange:function(e){var t;"jupyter"===E&&(null===(t=oe.current)||void 0===t||t.changeKeyWord(e.target.value))},suffix:(0,L.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(se.searchIcon)}),onSearch:function(e){var t;(e&&(0,ue.tk)({name:e,copywriting:e,position:"HomeworkCommon"}),"jupyter"!==E)?(A=!0,$.search=e,$.page=0,R=[],te()):null===(t=oe.current)||void 0===t||t.search(e)},style:{width:260}})})]}),"myself"===E&&(0,L.jsxs)("p",{className:"tc mt10",children:["选用对象:你在课堂图文作业列表中已",(0,L.jsx)("span",{className:"c-orange",children:"收藏"}),"的图文作业"]}),"public"===E&&(0,L.jsx)("p",{className:"tc mt10",children:"选用对象:题库中已设置成公共属性的所有图文作业"}),"jupyter"===E?(0,L.jsx)(ae,{createShixunParams:ne,ref:oe}):(0,L.jsxs)("div",{style:{background:"#F4FAFF",maxHeight:200,overflow:"auto",padding:"20px 10px"},children:[!Y&&"public"===E&&(0,L.jsxs)("div",{style:{display:"flex",flexDirection:"column",paddingTop:"30px",alignItems:"center",justifyContent:"center"},children:[(0,L.jsx)("span",{children:"通过职业认证的教师才能访问公共课程资源库"}),(0,L.jsx)("p",{style:{cursor:"pointer",background:"#ff6800",height:"30px",textAlign:"center",marginTop:"5px",padding:"5px 0px",color:"#fff",width:"80px"},onClick:function(){window.open("/account/certification")},children:"立即认证"})]}),(0,L.jsx)(q(),{initialLoad:!1,pageStart:0,threshold:700,loadMore:function(){N(!1),te()},hasMore:A,useWindow:!1,children:(0,L.jsxs)(G.Z,{form:h,initialValues:z()({},"group_ids",ee),className:se.form,onChange:function(e){var t=h.getFieldValue();ee=t},children:[""==R&&(0,L.jsx)(le.Z,{styles:{margin:"10px auto"}}),(0,L.jsx)(G.Z.Item,{name:"group_ids",children:(0,L.jsx)(j.Z.Group,{style:{width:"100%",flexDirection:"column"},className:"font14",children:null===(t=R)||void 0===t?void 0:t.map((function(e,t){return(0,L.jsxs)(x.Z,{children:[(0,L.jsx)(v.Z,{flex:"2",children:(0,L.jsx)(j.Z,{onChange:function(e){},value:String(e.id),defaultChecked:!0,children:(0,L.jsx)("span",{className:["c-black",se.line1].join(" "),children:e.name})},t)}),(0,L.jsx)(v.Z,{flex:"1",className:"c-black",children:(0,L.jsx)("span",{className:se.line1,children:null==e?void 0:e.course_list_name})}),(0,L.jsx)(v.Z,{flex:"50px",className:"c-black",children:"public"===E&&(0,C.Ny)()||"myself"===E?(0,L.jsx)("span",{className:"c-blue current",onClick:function(){window.open("/users/innov/topics/".concat(e.id,"/personal/normal/edit"))},children:"编辑"}):null==e?void 0:e.username})]},t)}))})})]})})]})]})}))),me=n(26830),pe=(0,m.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.styles,n=void 0===t?{}:t,i=e.onSelect,o=e.params,r=e.classroomList,a=(0,d.useState)(!1),s=u()(a,2),c=s[0],h=s[1],f=(0,d.useState)(""),x=u()(f,2),v=x[0],y=x[1];(0,d.useEffect)((function(){h(!1),y("")}),[]);return(0,L.jsxs)("section",{className:"tc animated fadeIn",style:l()(l()({},{color:"#999",margin:"200px auto"}),n),children:[(0,L.jsx)("img",{src:me.z3}),(0,L.jsx)("p",{className:"mt20 font14",children:"该课程无图文作业,可以下方按钮或右上方“新建作业”按钮创建作业"}),(0,L.jsxs)("div",{style:{marginTop:"30px"},children:[(0,L.jsx)(J.ZP,{onClick:function(){return h(!0)},type:"primary",style:{width:"128px",height:"40px",marginRight:"20px",borderRadius:"4px"},children:"新建作业"}),(0,L.jsx)(J.ZP,{onClick:function(){(0,_.xg)("https://www.educoder.net/forums/4910")},type:"primary",style:{width:"128px",height:"40px",marginLeft:"20px",borderRadius:"4px"},children:"新建作业指引"})]}),c&&(0,L.jsx)(g.Z,{open:!0,centered:!0,title:"新建作业",onCancel:function(){return h(!1)},onOk:function(){var e;!(0,C.Rm)()||null!=r&&null!==(e=r.AssistantObject)&&void 0!==e&&null!==(e=e.normal)&&void 0!==e&&e.can_create?("1"===v&&m.history.push("/classrooms/".concat(o.coursesId,"/common_homework/").concat(o.categoryId,"/add")),"2"===v&&(i(),h(!1),y(""))):p.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")},children:(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{children:(0,L.jsx)(w.ZP,{value:"1",style:{marginTop:"15px"},checked:"1"===v,onClick:function(){return y("1")},children:"新建图文作业"})}),(0,L.jsx)("div",{children:(0,L.jsx)(w.ZP,{value:"2",style:{marginTop:"15px"},checked:"2"===v,onClick:function(){return y("2")},children:"选用资源"})})]})})]})})),he=n(80026),fe=n(78441),ge=n(96544),xe=n(20834),ve=n(38854),we="bottomControlContainer___t5WWD",ye="moveCategory___MrmA6",be=n(78386),je=function(e){var t,n=e.buttonDataSource,i=e.onClick,r=(0,d.useContext)(Qe),s=r.allSelect,l=r.setAllSelect,c=r.setSelectArrs,m=r.dataSource,h=r.selectArrs,f=r.useBatchStatus,g=r.dispatch,w=r.params,y=r.getData,b=r.detailLeftMenus,k=r.main_category_id,_=r.setSelectArrsAll,A=(0,d.useState)(!1),N=u()(A,2),T=(N[0],N[1]),B=(0,d.useState)(""),P=u()(B,2),D=P[0],M=P[1];b.course_modules&&(t=b.course_modules.filter((function(e){return"common_homework"===e.type}))[0]);var E=(0,L.jsx)("div",{className:ye,onMouseLeave:function(e){return T(!1)},children:(0,L.jsxs)(xe.Z,{onClick:function(){var e=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.item,n=t.key,t.keyPath,t.domEvent,""!=h){e.next=4;break}return p.ZP.error("请选择你要操作的任务"),e.abrupt("return",null);case 4:return e.next=6,(0,Z.ZP)("/api/courses/".concat(w.id,"/homework_commons/move_to_category.json"),{method:"post",body:{homework_ids:h,new_category_id:n}});case 6:0===e.sent.status&&(p.ZP.success("操作成功"),f(!1),y(),g({type:"classroomList/getClassroomLeftMenus",payload:{id:w.coursesId}}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),style:{maxHeight:300,width:240,overflow:"auto"},children:[(0,L.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",children:(0,L.jsx)(F.Z,{onChange:function(e){M(e.target.value)}})}),t&&t.second_category.filter((function(e){return"未分配目录"!==e.category_name})).map((function(e,t){var n;if(!(""!==D&&e.category_name.indexOf(D)<0))return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(xe.Z.Item,{className:"multi-llipsis1e",children:e.category_name},e.category_id),null==e||null===(n=e.third_category)||void 0===n?void 0:n.map((function(e){return(0,L.jsx)(xe.Z.Item,{style:{marginLeft:20},className:"multi-llipsis1e",children:e.category_name},e.category_id)}))]})})),(0,L.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:function(e){e.preventDefault(),g({type:"classroomList/setActionTabs",payload:{key:"添加目录",params:w,selectArrs:{category_id:k,type:"common_homework"}}})},children:"新建子目录..."})]})});return(0,L.jsx)("div",{className:we,children:(0,L.jsxs)(x.Z,{wrap:!1,align:"middle",justify:"space-between",style:{height:"100%"},children:[(0,L.jsx)(v.Z,{flex:1,children:(0,L.jsxs)(x.Z,{wrap:!1,align:"middle",gutter:8,children:[(0,L.jsx)(v.Z,{children:(0,L.jsxs)(j.Z,{checked:s,onChange:function(e){l(e.target.checked),c(e.target.checked?m.map((function(e){return e.homework_id})):[]),e.target.checked?_(S()(m)):_([])},children:["全选本页(",h.length,")"]})}),(0,C.GJ)()&&(0,L.jsx)(v.Z,{children:(0,L.jsx)(ve.Z,{placement:"top",menu:{items:n,onClick:function(e){var t=e.key;i({key:t})}},children:(0,L.jsx)(J.ZP,{type:"primary",icon:(0,L.jsx)("i",{className:"iconfont icon-piliangcaozuo3"}),children:"批量操作"})})}),(0,L.jsx)(v.Z,{children:(0,L.jsx)(J.ZP,{type:"primary",onClick:function(){var e={courseId:w.id,container_type:"common_homework"};w.categoryId&&(e.category_id=w.categoryId),g({type:"classroomList/getAllTaskList",payload:e}),g({type:"classroomList/setActionTabs",payload:{key:"调整排序"}})},icon:(0,L.jsx)("i",{className:"iconfont icon-tiaozhengpaixu2"}),children:"调整排序"})}),(0,C.GJ)()&&(0,L.jsx)(v.Z,{children:(0,L.jsx)(ve.Z,{placement:"topLeft",dropdownRender:function(){return E},getPopupContainer:function(e){return e.parentNode},children:(0,L.jsxs)(J.ZP,{type:"primary",icon:(0,L.jsx)("i",{className:"iconfont icon-yidongmulu"}),children:["移动到目录 ",(0,L.jsx)(be.Z,{})]})})}),(0,C.GJ)()&&(0,L.jsx)(v.Z,{children:(0,L.jsx)(J.ZP,{type:"primary",onClick:function(){return i({key:"collection",label:"收藏"})},icon:(0,L.jsx)("i",{className:"iconfont icon-shoucang1"}),children:"收藏"})})]})}),(0,L.jsx)(v.Z,{children:(0,L.jsx)(J.ZP,{type:"primary",ghost:!0,onClick:function(){c([]),f(!1)},children:"取消操作"})})]})})},ke=n(6848),_e=n(61998),Ce={listContainer:"listContainer___ZW4HW",info:"info___FuRA_",title:"title___nxXeU",left:"left___oBZYX",right:"right___TePEU",flexBox:"flexBox___kp4Xl",detail:"detail___x1A55",iconV:"iconV___HcC2c",shixunTag:"shixunTag___NZAsm",pingceTag:"pingceTag___Pqi7y",pingceTags:"pingceTags___JQb2l"},Ae=n(65463),Se=n(32858),Ne=(0,m.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n,i,r,s,c=e.dataSource,p=e.params,h=(e.classroomList,e.manageAllGroup),f=(0,d.useContext)(Qe),g=(f.batchStatus,f.selectArrs),x=f.setSelectArrs,v=f.selectArrsAll,w=f.setSelectArrsAll,y=f.dispatch,b=(0,m.useParams)(),k=(0,d.useState)(!1),A=u()(k,2),N=A[0],T=A[1],B=(0,d.useRef)(),P=(0,d.useState)([]),D=u()(P,2),M=D[0],E=D[1];b=l()(l()(l()({},p),b),{},{category:null===(t=b)||void 0===t?void 0:t.categoryId}),(0,d.useEffect)((function(){E([]),T(!1)}),[]);var I=[{title:"班级",dataIndex:"course_group_name",key:"course_group_name"},{title:"状态",dataIndex:"status",key:"status",width:80,filters:[{text:"未开始",value:"未开始"},{text:"提交中",value:"提交中"},{text:"补交中",value:"补交中"},{text:"已截止",value:"已截止"},{text:"未发布",value:"未发布"},{text:"匿评中",value:"匿评中"}],onFilter:function(e,t){return 0===t.status.indexOf(e)}},{title:"提交情况",dataIndex:"statistics",key:"statistics",width:80,render:function(e){var t,n;return"--"===e?e:(0,L.jsxs)("span",{children:[(0,L.jsx)("span",{children:null==e||null===(t=e.split("/"))||void 0===t?void 0:t[0]})," / ",(0,L.jsx)("span",{children:null==e||null===(n=e.split("/"))||void 0===n?void 0:n[1]})]})}},{title:"发布时间",dataIndex:"publish_time",key:"publish_time",sorter:!0,showSorterTooltip:!1,sortOrder:"publish_time"===b.sort_by?"desc"===b.sort_direction?"descend":"ascend":null},{title:"截止时间",dataIndex:"end_time",key:"end_time",sorter:!0,showSorterTooltip:!1,sortOrder:"end_time"===b.sort_by?"desc"===b.sort_direction?"descend":"ascend":null},{title:"补交时间",dataIndex:"late_time",key:"late_time",sorter:!0,showSorterTooltip:!1,sortOrder:"late_time"===b.sort_by?"desc"===b.sort_direction?"descend":"ascend":null},{title:"分班老师",dataIndex:"teachers",key:"teachers",width:150,ellipsis:{showTitle:!1},render:function(e){return"--"!==e&&e?(0,L.jsx)("span",{title:e,children:e}):"--"}}];function O(){return H.apply(this,arguments)}function H(){return(H=a()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Z.ZP)("/api/homework_commons/".concat(c.homework_id,"/group_settings_statistics.json"),{method:"get",params:l()({},b)});case 2:t=e.sent,E(t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,L.jsxs)("div",{className:Ce.listContainer,onClick:function(e){e.stopPropagation(),(!(0,C.GJ)()||(0,C.GJ)()&&B.current&&!B.current.contains(e.target))&&(0,_.xg)("/classrooms/".concat(b.coursesId,"/common_homework/").concat(c.homework_id,"/detail"))},children:[(0,C.GJ)()&&(0,L.jsx)("span",{ref:B,children:(0,L.jsx)(j.Z,{onClick:function(e){e.stopPropagation()},style:{padding:"10px"},checked:g.includes(c.homework_id),onChange:function(){return e=c.homework_id,void(g.includes(e)?(x(g.filter((function(t){return t!==e}))),w(v.filter((function(t){return t.homework_id!==e})))):(x([].concat(S()(g),[e])),w([].concat(S()(v),[c]))));var e}})}),(0,L.jsxs)("div",{className:Ce.info,children:[(0,L.jsxs)("div",{className:Ce.title,children:[(0,L.jsxs)("div",{className:Ce.left,style:(0,C.dE)()?{paddingRight:(null==c?void 0:c.challenge_count)-(null==c?void 0:c.finished_challenge_count)?60:140}:{},children:[(0,C.GJ)()&&(0,L.jsx)(Ae.Z,{value:c.status,children:(0,L.jsx)(_.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:[c.status]})}),(0,C.dE)()&&(0,L.jsx)(_.VV,{temporary:!0,style:{margin:"0px 10px 0px 0px"},status:c.status}),(0,L.jsx)("span",{onClick:function(e){return e.stopPropagation()},children:(0,L.jsx)(m.Link,{target:"_blank",to:"/classrooms/".concat(b.coursesId,"/common_homework/").concat(c.homework_id,"/detail").concat((0,C.dE)()?"?tabs=0":""),children:c.name})}),c.is_shixun&&(0,L.jsx)("span",{className:Ce.shixunTag,children:"实训"}),c.open_evaluate&&(0,L.jsx)(ke.Z,{title:"该实践项目已启用评测功能,学生完成评测后系统将自动判分",children:(0,L.jsx)("span",{className:Ce.pingceTag,children:"评测"})}),(null==c?void 0:c.is_shixun)&&!c.open_evaluate&&(0,L.jsx)(ke.Z,{title:"该实践项目未启用评测功能,学生提交作品后需教师手动评分",children:(0,L.jsx)("span",{className:Ce.pingceTags,children:"评测"})})]}),(0,L.jsxs)("div",{className:Ce.right,children:[(0,C.GJ)()&&"未发布"===c.status&&(0,L.jsx)(m.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:[c],params:l()({},b),type:2,manage_all_group:h}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:(0,L.jsxs)("aside",{className:Ce.flexBox,style:{marginRight:"16px"},children:[(0,L.jsx)("i",{className:"iconfont icon-yishezhifabushijian1"}),(0,L.jsx)("div",{children:"发布"})]})}),(0,C.dE)()&&(0,L.jsxs)("div",{className:Ce.actionIcon,children:[(null==c?void 0:c.challenge_count)-(null==c?void 0:c.finished_challenge_count)==0&&(0,L.jsx)("i",{className:"iconfont icon-yiwancheng1"}),!(null!==(n=c.status)&&void 0!==n&&n.includes("已截止"))&&!(null!==(i=c.status)&&void 0!==i&&i.includes("导入"))&&(0,L.jsxs)("aside",{onClick:function(){var e=a()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log(c),t.stopPropagation(),c.is_jupyter||c.is_jupyter_lab?(0,Se.Z)({is_jupyter:c.is_jupyter,is_jupyter_lab:c.is_jupyter_lab,shixunId:c.shixun_identifier,homework_common_id:c.homework_id}):(0,_.xg)("/classrooms/".concat(b.coursesId,"/common_homework/").concat(c.homework_id,"/detail").concat((0,C.dE)()?"?tabs=1":""));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),className:Ce.flexBox,style:{marginRight:10},children:[(0,L.jsx)("i",{className:"iconfont icon-kaishixuexi font14"}),(0,L.jsx)("div",{children:"提交作品"})]}),((null===(r=c.status)||void 0===r?void 0:r.includes("已截止"))||(null===(s=c.status)||void 0===s?void 0:s.includes("导入")))&&(0,L.jsxs)("aside",{className:Ce.flexBox,style:{marginRight:10},children:[(0,L.jsx)("i",{className:"iconfont icon-chakanzuoye font14"}),(0,L.jsx)("div",{children:"查看作品"})]})]}),(0,C.GJ)()&&(0,L.jsx)(ve.Z,{placement:"bottomCenter",overlayClassName:Ce.dro,dropdownRender:function(){return(0,L.jsxs)(xe.Z,{children:["导入"!==c.status&&(0,L.jsx)(xe.Z.Item,{style:{textAlign:"center"},children:(0,L.jsx)(m.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"立即发布",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:[c],params:l()({},b),type:2,manage_all_group:h}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即发布"})},1),"导入"===c.status&&(0,L.jsx)(xe.Z.Item,{style:{textAlign:"center"},children:(0,L.jsx)(m.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"补充成绩",name:null==c?void 0:c.name,id:null==c?void 0:c.homework_id,type:"normal"}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"补充成绩"})},23),"导入"!==c.status&&(0,L.jsx)(xe.Z.Item,{style:{textAlign:"center"},children:(0,L.jsx)(m.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"立即截止",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:[c],params:l()({},b),type:2}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即截止"})},2),(0,L.jsx)(xe.Z.Item,{style:{textAlign:"center"},children:(0,L.jsx)(m.Link,{target:"_blank",to:"/",onClick:function(){var e=a()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),y({type:"classroomList/setActionTabs",payload:{key:"删除",selectArrs:[null==c?void 0:c.homework_id],selectArrsAll:v,params:b,status:null==c?void 0:c.status}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:"立即删除"})},22),"导入"!==c.status&&(0,L.jsx)(xe.Z.Item,{style:{textAlign:"center"},children:(0,L.jsx)(m.Link,{target:"_blank",onClick:function(e){e.stopPropagation()},to:"/classrooms/".concat(b.coursesId,"/common_homework/").concat(c.homework_id,"/detail?tabs=3"),children:"高级设置"})},6)]})},children:(0,L.jsxs)("aside",{onClick:function(e){return e.stopPropagation()},className:Ce.flexBox,style:{cursor:"default"},children:[(0,L.jsx)("i",{className:"iconfont icon-gengduo4"}),(0,L.jsx)("div",{children:"更多"})]})})]})]}),(0,L.jsx)("div",{className:Ce.detail,children:(0,C.GJ)()&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("span",{className:"c-grey-333 mr20",children:c.author}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.uncommit_count&&(0,L.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,L.jsx)("span",{className:"mr5",children:"未做题"}),c.uncommit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.commit_count&&(0,L.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,L.jsx)("span",{className:"mr5",children:"已做题"}),c.commit_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","已结束","匿评中","申诉中"].includes(c.status)&&!!c.compelete_count&&(0,L.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,L.jsx)("span",{className:"mr5",children:"已完成"}),c.compelete_count,"人"]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(c.status)&&(0,L.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,L.jsx)("span",{className:"mr5",children:"发布时间"}),c.publish_time]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(c.status)&&(0,L.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,L.jsx)("span",{className:"mr5",children:"截止时间"}),c.end_time]}),["已结束"].includes(c.status)&&(0,L.jsxs)("span",{className:"c-grey-999 mr10",children:[(0,L.jsx)("span",{className:"mr5",children:"结束时间"}),c.status_time]}),!(null==c||!c.late_time)&&"--"!==(null==c?void 0:c.late_time)&&(0,L.jsxs)("span",{className:"c-grey-999",children:[(0,L.jsx)("span",{className:"mr5",children:"补交截止时间"}),null==c?void 0:c.late_time]}),["未开始","进行中","已截止","提交中","补交中","匿评中","申诉中"].includes(c.status)&&(0,L.jsxs)("span",{className:Ce.iconV,onClick:function(){var e=a()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.stopPropagation(),t.preventDefault(),N||O(),T(!N);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,L.jsx)("i",{className:"iconfont icon-".concat(N?"shouqi":"xiala2")})," "]})]})}),(0,L.jsxs)("div",{className:Ce.content,children:[(0,C.dE)()&&(0,L.jsxs)("span",{className:Ce.infoStuIcon,children:[(0,L.jsx)("span",{className:"c-grey-333",children:c.author}),"已截止"===c.status&&!(null==c||!c.status_time)&&(0,L.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,L.jsx)("i",{className:"iconfont icon-shengyushijian font12 mr5"})," ",null==c?void 0:c.status_time]}),(0,L.jsxs)("span",{className:"ml20 c-grey-999",children:[(0,L.jsx)("i",{className:"iconfont icon-shijian1 font12 mr5"}),null==c?void 0:c.publish_time," 至 ",null==c?void 0:c.end_time," "]}),!(null==c||!c.late_time)&&"--"!==(null==c?void 0:c.late_time)&&(0,L.jsxs)("span",{className:"c-grey-999 ml20",children:[(0,L.jsx)("span",{className:"mr5",children:"补交截止时间:"}),null==c?void 0:c.late_time]})]}),(0,C.GJ)()&&"未发布"!==c.status&&N&&M.length>5&&(0,L.jsx)(_e.Z,{scroll:{y:240},onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:M,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(b.sort_by=n.field),n.order||(b.sort_direction="asc"),"ascend"===n.order&&(b.sort_direction="asc"),"descend"===n.order&&(b.sort_direction="desc"),n.order||(b.sort_direction="asc"),O()},columns:I}),(0,C.GJ)()&&"未发布"!==c.status&&N&&M.length<6&&M.length>0&&(0,L.jsx)(_e.Z,{onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:M,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(b.sort_by=n.field),n.order||(b.sort_direction="asc"),"ascend"===n.order&&(b.sort_direction="asc"),"descend"===n.order&&(b.sort_direction="desc"),n.order||(b.sort_direction="asc"),O()},columns:I})]})]})]})})),Te="bg___Ujhcv",Ze=n(75774),Be="otherHomeworkWrap___cHqzM",Le="otherHomeworkContainer___k2TlQ",Pe="flex___N5oyJ",De="search___tWMHN",Me="content___wyNNo",Ee="listItem___mdegu",Ie="info___SwRt1",Oe="title___lilvJ",He="describe___meICG",Re="footer___irMwG",ze=function(e){var t=e.courseId,n=e.type,i=e.onCancel,r=(0,m.useParams)(),s=(0,d.useState)({targerData:[],originData:[]}),c=u()(s,2),h=c[0],f=c[1],g=(0,d.useState)([]),x=u()(g,2),v=x[0],w=x[1],y=(0,d.useState)(!1),b=u()(y,2),k=b[0],C=b[1],A=function(){var e=a()(o()().mark((function e(){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),e.next=3,(0,Z.ZP)("/api/courses/".concat(t,"/homework_commons/impersonal_list.json"),{method:"get",params:{type:n}});case 3:i=e.sent,C(!1),f({targerData:i.homeworks,originData:i.homeworks});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,d.useEffect)((function(){A()}),[]);var N=function(){var e=a()(o()().mark((function e(){var t,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),t={homework_common_ids:v},r.categoryId&&(t=l()(l()({},t),{},{category_id:r.categoryId})),e.next=5,(0,Z.ZP)("/api/courses/".concat(r.coursesId,"/homework_commons/create_collaborators.json"),{method:"POST",body:t});case 5:(n=e.sent)&&n.homework_ids.length>0&&(p.ZP.success("提交成功"),i()),C(!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,L.jsx)("div",{className:"animated fadeInUp fast ".concat(Be),children:(0,L.jsxs)("div",{className:Le,children:[(0,L.jsx)("div",{className:De,children:(0,L.jsx)(F.Z.Search,{size:"middle",enterButton:"搜索",onSearch:function(e){var t=h.originData.filter((function(t){return t.name.indexOf(e)>-1}));f(l()(l()({},h),{},{targerData:t}))},placeholder:"请输入图文作业名称进行查询"})}),(0,L.jsx)("div",{className:Me,children:h.targerData.map((function(e){return(0,L.jsxs)("div",{className:"".concat(Ee," mb10"),children:[(0,L.jsx)(j.Z,{checked:v.includes(e.id),onChange:function(t){return function(e,t){e.target.checked?w([].concat(S()(v),[t])):w(v.filter((function(e){return e!==t})))}(t,e.id)}}),(0,L.jsxs)("div",{className:Ie,children:[(0,L.jsxs)("div",{className:"".concat(Pe," mb10"),style:{justifyContent:"space-between"},children:[(0,L.jsx)("div",{className:Oe,children:e.name}),(0,L.jsx)("div",{children:(0,L.jsx)(J.ZP,{type:"primary",ghost:!0,onClick:function(){return(0,_.xg)("/classrooms/".concat(r.coursesId,"/common_homework/").concat(e.id,"/detail"))},children:"查看作业"})})]}),(0,L.jsx)("div",{className:"mb20 font14 c-grey-999 ".concat(He),children:e.description}),(0,L.jsxs)("div",{className:"font12",children:[(0,L.jsx)("span",{className:"c-grey-333 mr20",children:e.user.name}),(0,L.jsxs)("span",{className:"c-grey-999",children:["创建时间:",e.created_at]})]})]})]},e.id)}))}),(0,L.jsxs)("div",{className:Re,children:[(0,L.jsx)(J.ZP,{type:"primary",ghost:!0,onClick:i,children:"取消"}),(0,L.jsx)(J.ZP,{type:"primary",disabled:0===v.length||k,onClick:function(){N()},children:"确定"})]})]})})},Ge=n(20208),Fe=n(52352),We=n(57930),Ue=n(33656),Ve=n.n(Ue),Ye=n(1058),Je=["classroomList","dispatch","user","getData"];U().extend(Ve());var Ke=function(e){var t,n,i,o,r=e.data,a=e.value,s=e.onChange,c=(0,d.useState)({leftSearch:"",rigthSearch:""}),m=u()(c,2),p=m[0],h=m[1],f=(0,d.useState)([]),g=u()(f,2),w=g[0],y=g[1];return(0,d.useEffect)((function(){y((null==a?void 0:a.length)>0?null==r?void 0:r.filter((function(e){return null==a?void 0:a.includes(null==e?void 0:e.id)})):[])}),[a]),(0,L.jsxs)("div",{style:{display:"flex",flexWrap:"nowrap",gap:"20px",height:"400px"},children:[(0,L.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,L.jsx)(j.Z,{indeterminate:(null==w?void 0:w.length)>0&&(null==w?void 0:w.length)<(null==r?void 0:r.length),checked:(null==w?void 0:w.length)==(null==r?void 0:r.length),onChange:function(e){s(e.target.checked?null==r?void 0:r.map((function(e){return null==e?void 0:e.id})):[])},children:"全选"}),(0,L.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,L.jsx)(F.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:p.leftSearch,onChange:function(e){h(l()(l()({},p),{},{leftSearch:e.target.value}))}}),(0,L.jsx)("div",{className:"mt20 ml20 mb20",style:{overflow:"auto"},children:0!==(null===(t=p.leftSearch?null==r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(p.leftSearch)})):r)||void 0===t?void 0:t.length)?(0,L.jsx)(j.Z.Group,{value:a,onChange:function(e){s(e)},children:(0,L.jsx)($.Z,{direction:"vertical",children:null===(n=p.leftSearch?null==r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(p.leftSearch)})):r)||void 0===n?void 0:n.map((function(e,t){return(0,L.jsx)(j.Z,{value:e.id,children:null==e?void 0:e.name},t)}))})}):(0,L.jsx)(le.Z,{styles:{margin:"0 auto"}})})]})]}),(0,L.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,L.jsxs)("div",{children:["已选择",(null==w?void 0:w.length)||0,"个分班"]}),(0,L.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,L.jsx)(F.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:p.rigthSearch,onChange:function(e){h(l()(l()({},p),{},{rigthSearch:e.target.value}))}}),(0,L.jsx)("div",{className:"mt20 ml20 mb20 pr20",style:{display:"flex",flexDirection:"column",gap:"10px",overflow:"auto"},children:0!==(null===(i=p.rigthSearch?null==w?void 0:w.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(p.rigthSearch)})):w)||void 0===i?void 0:i.length)?null===(o=p.rigthSearch?null==w?void 0:w.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(p.rigthSearch)})):w)||void 0===o?void 0:o.map((function(e,t){return(0,L.jsxs)(x.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,L.jsx)(v.Z,{children:null==e?void 0:e.name}),(0,L.jsx)(v.Z,{children:(0,L.jsx)("i",{className:"iconfont icon-piliangshanchu2 font16 current",style:{color:"#3061D0"},onClick:function(){s(null==a?void 0:a.filter((function(t){return t!==(null==e?void 0:e.id)})))}})})]},t)})):(0,L.jsx)(le.Z,{styles:{margin:"0 auto"}})})]})]})]})},qe=(0,m.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,i,r,s,c,h=e.classroomList,f=e.dispatch,w=(e.user,e.getData),y=(T()(e,Je),(0,m.useParams)()),b=G.Z.useForm(),j=u()(b,1)[0],k="批量补交"===(null==h||null===(t=h.actionTabs)||void 0===t?void 0:t.key),C=(0,Ye.U)(ce.c_,l()(l()({},y),null==h||null===(n=h.actionTabs)||void 0===n?void 0:n.params)),A=u()(C,4),S=A[1],N=A[2],Z=A[3],B=(0,Ye.U)(ce.nP,{course_id:null==y?void 0:y.coursesId,homework_ids:null==h||null===(i=h.actionTabs)||void 0===i?void 0:i.selectArrs}),P=u()(B,4),D=P[2],M=P[3],E=(0,Ye.U)(ce.sm,{course_id:null==y?void 0:y.coursesId,homework_ids:null==h||null===(r=h.actionTabs)||void 0===r?void 0:r.selectArrs}),I=u()(E,3),O=I[1],H=I[2],R=function(){var e=a()(o()().mark((function e(){var t=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:{},D({}),e.next=4,N({page:1,limit:2e4,homework_id:1===h.actionTabs.type?"":h.actionTabs.selectArrs[0]});case 4:e.sent;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,d.useEffect)((function(){k&&R()}),[k]),(0,L.jsxs)(g.Z,{centered:!0,title:null==h||null===(s=h.actionTabs)||void 0===s?void 0:s.key,width:800,open:k,cancelText:"暂不补交",okText:"开启补交",onCancel:function(){f({type:"classroomList/setActionTabs",payload:{}})},destroyOnClose:!0,confirmLoading:O,onOk:a()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:j.submit();case 1:case"end":return e.stop()}}),e)}))),children:[(0,L.jsx)("div",{className:"p10 pl20 pr20 c-orange-ff7 mb20",style:{background:"#F6F7F9"},children:"规则说明:补交截止时间必须晚于作业截止时间;当班级阶段进入“补交中”则不可变更作业截止时间、不可关闭补交;当作业状态为未发布、作业已开启统一补交和作业已开启匿评时,新批量补交规则不生效。"}),(0,L.jsxs)(G.Z,{form:j,colon:!1,size:"large",initialValues:{unified_late:!1,late_penalty:5},onFinish:function(){var e=a()(o()().mark((function e(t){var n,i,r,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,H((null==Z||null===(n=Z.course_groups)||void 0===n?void 0:n.length)>0?{unified_late:(null==Z||null===(i=Z.course_groups)||void 0===i?void 0:i.length)<=0,allow_late_settings:[l()({},t)]}:l()({unified_late:(null==Z||null===(r=Z.course_groups)||void 0===r?void 0:r.length)<=0},t));case 2:0==(null==(a=e.sent)?void 0:a.status)&&(p.ZP.success("补交设置成功"),f({type:"classroomList/setActionTabs",payload:{}}),w&&w());case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,L.jsxs)(x.Z,{wrap:!1,gutter:20,children:[(0,L.jsx)(v.Z,{flex:1,children:(0,L.jsx)(G.Z.Item,{label:"补交扣分",name:"late_penalty",rules:[{required:!0,message:"请输入补交扣分"}],children:(0,L.jsx)(F.Z,{placeholder:"请输入补交扣分",min:0,type:"number",suffix:"分",max:Number.MAX_SAFE_INTEGER,style:{width:"50%"}})})}),(0,L.jsx)(v.Z,{flex:"390px",children:(0,L.jsx)(G.Z.Item,{label:"补交截止时间",name:"late_time",rules:[{required:!0,validator:function(e,t,n){return t&&U()(t).startOf("minute")<=U()().startOf("minute")?Promise.reject("作业补交截止时间必须晚于此刻"):t&&U()(t).startOf("minute")<=U()(null==M?void 0:M.max_late_time).startOf("minute")?(p.ZP.warning("补交截止时间不能小于选中作业中最晚作业截止时间:".concat(null==M?void 0:M.max_late_time)),Promise.reject("")):Promise.resolve()}},{required:!0,message:"请先设置补交截止时间"}],children:(0,L.jsx)(We.default,{placeholder:"请选择截止时间",style:{width:"100%"},disabledDate:function(e){return(0,_.BO)(e,{startTime:null==M?void 0:M.max_late_time})},disabledTime:function(e){return(0,_.hv)(e,{compared:null==M?void 0:M.max_late_time})},format:"YYYY-MM-DD HH:mm",showTime:{showSecond:!1,defaultValue:U()("00:00:00","HH:mm:ss")}})})})]}),(null==Z||null===(c=Z.course_groups)||void 0===c?void 0:c.length)>0&&(0,L.jsx)(ee.Z,{spinning:S,children:(0,L.jsx)(G.Z.Item,{name:"group_id",rules:[{required:!0,message:"请先选择班级"}],children:(0,L.jsx)(Ke,{data:(null==Z?void 0:Z.course_groups)||[],onChange:function(e){D({group_ids:e})}})})})]})]})})),Qe=(0,d.createContext)({selectArrs:[]}),Xe=(0,m.connect)((function(e){var t=e.classroomList,n=e.loading,i=e.user;return{classroomList:t,globalSetting:e.globalSetting,user:i,loading:n.effects}}))((function(e){var t,n,i,r,s=e.classroomList,c=e.loading,A=e.dispatch,S=e.user,N=(0,m.useSearchParams)(),T=u()(N,2),B=T[0],P=(T[1],(0,m.useLocation)()),O=(0,m.useParams)(),R=(0,d.useState)(l()(l()({},O),{},{id:O.coursesId,limit:20})),z=u()(R,2),G=z[0],F=z[1],W=(0,d.useState)(!1),U=u()(W,2),Y=U[0],J=U[1],K=(0,d.useState)({ta_mode:1,final_mode:!1,st_proportion:0,ta_proportion:30,te_proportion:70,is_repeat_minus:!1,repeat_setting_score:"",repeat_limit:""}),q=u()(K,2),Q=q[0],X=q[1],$=(0,d.useState)([]),ee=u()($,2),te=ee[0],ne=ee[1],ie=(0,d.useState)(!1),oe=u()(ie,2),re=oe[0],ae=oe[1],se=(0,d.useState)(!1),ce=u()(se,2),ue=ce[0],me=ce[1],xe=(0,d.useState)([]),ve=u()(xe,2),we=ve[0],ye=ve[1],be=(0,d.useState)(!1),ke=u()(be,2),_e=ke[0],Ce=ke[1],Ae=(0,d.useState)("默认排序"),Se=u()(Ae,2),Be=Se[0],Le=Se[1],Pe=s.detailCommonHomeworksList,De=s.detailLeftMenus,Me=s.detailTopBanner,Ee=s.taskList;G.type=1,G.categoryId?G.category=G.categoryId:delete G.category,(0,d.useEffect)((function(){var e=B.get("tabs");e&&void 0!==e&&((0,C.GJ)()?G.status=e:G.order=e)}),[P.search]),(0,d.useEffect)((function(){"0"===B.get("tabs")&&(G.status="0",G.page=1)}),[B.get("tabs")]),(0,d.useEffect)((function(){var e,t;if(null!=S&&null!==(e=S.userInfo)&&void 0!==e&&e.login){var n,i=_.cX.getItem("".concat(null==S||null===(n=S.userInfo)||void 0===n?void 0:n.login).concat((0,C.GJ)()?"Teacher":"Student"),"CommonHomework");i&&(G.sort_by=null==i?void 0:i.type,G.sort_direction=null==i?void 0:i.direction,Le(null==i?void 0:i.name));var o=B.get("tabs"),r=void 0===O.categoryId?{}:{categoryId:O.categoryId,category:O.categoryId};o&&void 0!==o&&((0,C.GJ)()?G.status=o:G.order=o),Ie(r)}else if(null!=S&&null!==(t=S.userInfo)&&void 0!==t&&t.username){var a=B.get("tabs"),s=void 0===O.categoryId?{}:{categoryId:O.categoryId,category:O.categoryId};a&&void 0!==a&&((0,C.GJ)()?G.status=a:G.order=a),Ie(s)}}),[null==S||null===(t=S.userInfo)||void 0===t?void 0:t.login,null==P?void 0:P.pathname]),(0,d.useEffect)((function(){F(l()(l()({},G),O))}),[null==O?void 0:O.categoryId]),(0,d.useEffect)((function(){"清除选择数据"===s.actionTabs.key&&(ne([]),ye([])),"目录重命名成功"===s.actionTabs.key&&Ie()}),[s.actionTabs.key]),(0,d.useEffect)((function(){ne([])}),[Pe]),(0,d.useEffect)((function(){me(!1)}),[G.categoryId]),(0,d.useEffect)((function(){A({type:"classroomList/getAssistantPermissions",payload:{course_id:G.id}})}),[]),(0,d.useEffect)((function(){Pe&&Pe.homeworks&&(te.length===Pe.homeworks.length&&te.length>0?ae(!0):te.length!==Pe.homeworks.length&&ae(!1))}),[te]);var Ie=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ne([]),ye([]),(0,C.GJ)()?A({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()(l()({},G),e),{},{type:1})}):A({type:"classroomList/getClassroomCommonList",payload:l()(l()({},G),e)})},Oe=function(){var e=a()(o()().mark((function e(){var t,n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Z.ZP)("/api/courses/".concat(G.coursesId,"/homework_commons/get_default_score_setting.json"),{method:"get",params:{homework_type:1}});case 2:null!=(t=e.sent)&&t.data&&(n=t.data.score_settings,Object.keys(n).map((function(e){e.indexOf("proportion")>-1&&(n[e]=(100*n[e]).toFixed(0))})),console.log(n),X(l()({},n)));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),He=function(){A({type:"shixunHomeworks/setActionTabs",payload:{key:"题库选用",params:G}})},Re=null===(n=[{key:"publish",label:"批量发布",icon:(0,L.jsx)("i",{className:"iconfont icon-fabu5"}),isShow:!0},{key:"deadline",label:"批量截止",icon:(0,L.jsx)("i",{className:"iconfont icon-piliangjiezhi2"}),isShow:!0},{key:"batchpay",label:"批量补交",icon:(0,L.jsx)("i",{className:"iconfont icon-buka"}),isShow:!0},{key:"delete",label:"批量删除",icon:(0,L.jsx)("i",{className:"iconfont icon-piliangshanchu2"}),isShow:(0,C.GJ)()||(0,C.Rm)()},{key:"public",label:"设为公开",icon:(0,L.jsx)("i",{className:"iconfont icon-sheweigongkai2"}),isShow:Me.is_public}].filter((function(e){return null==e?void 0:e.isShow})))||void 0===n?void 0:n.map((function(e){return delete e.isShow,e})),We=function(){var e=a()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A({type:"classroomList/updateTaskPosition",payload:{category_id:G.categoryId,courseId:G.id,task_ids:t,container_type:"common_homework"}});case 2:Ie();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ue=(0,d.useMemo)((function(){var e=[];return Ee.length>0&&(e=Ee.map((function(e){return{user_name:e.user_name,task_name:e.task_name,task_id:e.task_id,category:e.category,status:e.status}}))),e}),[Ee]),Ve=(0,L.jsxs)("div",{className:"mask-tips",children:["计算说明:",(0,L.jsx)("br",{}),"教师评分 * 其百分比 + 助教评分 * 其百分比 + 学生匿评平均分 * 其百分比 - (",(0,L.jsx)("br",{}),"迟交扣分 + 缺评扣分 * 缺评数 + 违规匿评扣分 * 违规匿评数 )",(0,L.jsx)("br",{}),(0,L.jsx)("br",{}),"注意",(0,L.jsx)("br",{}),"非零百分比的评分选项,若评分记录为空,则其百分比将自动平摊到其它非零",(0,L.jsx)("br",{}),"评分选项上。",(0,L.jsx)("br",{}),"例:教师评分40% + 助教评分35% + 学生匿评25%,学生A没有教师评分记",(0,L.jsx)("br",{}),"录,则其最终成绩按照助教评分55% + 学生匿评45%进行计算"]}),Ye=(0,L.jsxs)("div",{className:"mask-tips",children:["计算说明:",(0,L.jsx)("br",{}),"优先顺序排前的非零评分 * 100% -",(0,L.jsx)("br",{}),"( 迟交扣分 + 缺评扣分 * 缺评数 + 违规匿评扣分 * 违规匿评数 )",(0,L.jsx)("br",{}),"例:有教师评分则教师评分100%,否则教辅评分100%,依次类推"]});return(0,L.jsx)(Qe.Provider,{value:{params:G,batchStatus:ue,selectArrs:te,setSelectArrs:ne,allSelect:re,dataSource:Pe.homeworks||[],detailLeftMenus:De,main_category_id:Pe.main_category_id||"",selectArrsAll:we,setAllSelect:ae,useBatchStatus:me,dispatch:A,getData:Ie,setSelectArrsAll:ye},children:(0,L.jsxs)("section",{children:[(0,L.jsxs)("aside",{className:Te,children:[(0,L.jsx)(fe.Z,{isLoading:c[(0,C.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"],tabDataSource:(0,C.GJ)()?[{name:"全部",id:0,total:Pe.all_count||0},{name:"未发布",id:1,total:Pe.unpublished_count||0},{name:"未开始",id:4,total:Pe.not_start_count||0},{name:"进行中",id:2,total:Pe.in_progress_count||0},{name:"已截止",id:3,total:Pe.overed_count||0}]:[{name:"全部",id:0},{name:"提交中",id:1},{name:"补交中",id:2},{name:"匿评中",id:3},{name:"申诉中",id:4},{name:"已截止",id:5}],isAdmin:(0,C.GJ)(),dispatch:A,type:null==Pe?void 0:Pe.main_category_name,exportType:"normal",TooltipTitle:G.categoryId?"目录重命名":"新建子目录",categoryId:G.categoryId,dropdownMenu:[{name:"新建图文作业",id:"1"},{name:"选用资源",id:"2"},{name:"导入外部成绩",id:"3"}],showControlButton:(0,C.GJ)(),isShowRightControl:"未分配目录"!==(0,_.Oo)(null==De?void 0:De.course_modules,G.categoryId),onTabMenuClick:function(e){void 0!==e.id&&((0,C.GJ)()?G.status=e.id:G.order=e.id),me(!1),G.page=1,m.history.replace("".concat(P.pathname,"?tabs=").concat(e.id)),Ie(G)},defaultSelectedKeys:[B.get("tabs")?B.get("tabs"):"0"],onsetClick:function(){Oe(),J(!0)},onTooltipTitleClick:function(){A({type:"classroomList/setActionTabs",payload:{key:G.categoryId?"目录重命名":"添加目录",params:G,selectArrs:{category_name:null==Pe?void 0:Pe.category_name,category_id:(null==Pe?void 0:Pe.category_id)||(null==Pe?void 0:Pe.main_category_id)},cb:function(){Ie()}}})},onDropdownMenuClick:function(e){var t;!(0,C.Rm)()||null!==(t=s.AssistantObject.normal)&&void 0!==t&&t.can_create?"1"===e?m.history.push("/classrooms/".concat(G.coursesId,"/common_homework/").concat(G.categoryId,"/add")):"2"===e?He():"3"===e&&A({type:"classroomList/setActionTabs",payload:{key:"导入外部成绩",type:"normal"}}):p.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),(0,L.jsx)(ge.Z,{dataSource:Pe.homeworks||[],isAdmin:(0,C.GJ)(),batchStatus:!0,SortMenuName:Be,setSortMenuName:Le,onSearch:function(e){G.search=e,G.page=1,Ie()},onSort:function(e){var t;G.sort_by=e.type,G.sort_direction=e.direction,G.page=1,_.cX.setItem("".concat(null==S||null===(t=S.userInfo)||void 0===t?void 0:t.login).concat((0,C.GJ)()?"Teacher":"Student"),e,"CommonHomework"),Ie(G)},onBatch:function(e){return me(e)}})]}),0===(null==Pe?void 0:Pe.all_count)&&(0,C.GJ)()?!c[(0,C.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,L.jsx)(pe,{params:G,dispatch:A,onSelect:He}):(null==Pe?void 0:Pe.homeworks)&&0===Pe.homeworks.length&&!c[(0,C.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,L.jsx)(le.Z,{}),(0,L.jsx)("aside",{className:"minH500 skt-loading relative pb40 mb30",children:!c[(0,C.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("aside",{className:"animated fadeIn",children:[null==Pe||null===(i=Pe.homeworks)||void 0===i?void 0:i.map((function(e,t){return(0,L.jsx)(Ne,{dataSource:e,params:G,manageAllGroup:null==Pe?void 0:Pe.manage_all_group},t)})),!c[(0,C.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,L.jsx)("aside",{className:"tc mb50 mt30",children:(null==Pe?void 0:Pe.query_total_count)>10&&(0,L.jsx)(h.Z,{showSizeChanger:!0,onChange:function(e,t){G.page=e,G.limit=t,Ie()},defaultCurrent:1,current:G.page||1,pageSize:G.limit||20,total:Pe.query_total_count})})]}),te.length>0&&(0,C.GJ)()&&(0,L.jsx)(f.Z,{offsetBottom:0,children:(0,L.jsx)(je,{buttonDataSource:Re,onClick:function(e){var t,n;if(0===te.length)return p.ZP.warning("请选择你要操作的任务"),!1;var i=e.label||"",o={key:i,selectArrs:te,selectArrsAll:we,type:["publish","deadline"].includes(e.key)?1:"",params:G};switch(e.key){case"publish":if((0,C.Rm)()&&(null==s||null===(t=s.AssistantObject)||void 0===t||null===(t=t.normal)||void 0===t||!t.can_publish))return void p.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");i="立即发布";break;case"deadline":if((0,C.Rm)()&&(null==s||null===(n=s.AssistantObject)||void 0===n||null===(n=n.normal)||void 0===n||!n.can_stop))return void p.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");i="立即截止";break;case"batchpay":i="批量补交";break;case"delete":i="删除";break;case"collection":i="收藏"}A({type:"classroomList/setActionTabs",payload:l()(l()({},o),{},{key:i})})}})})]})}),"批量补交"===(null==s||null===(r=s.actionTabs)||void 0===r?void 0:r.key)&&(0,L.jsx)(qe,{getData:Ie}),(0,L.jsx)(D,{onCallback:function(){return me(!1)}}),(0,L.jsx)(Ge.Z,{onOk:function(){Ie()}}),(0,L.jsx)(Fe.Z,{onOk:function(){}}),(0,L.jsx)(M.Z,{onCallback:function(){return me(!1)},courseEndTime:null==Pe?void 0:Pe.course_end_time}),(0,L.jsx)(E.Z,{courseEndTime:null==Pe?void 0:Pe.course_end_time,visible:"立即截止"===s.actionTabs.key,homeworkIds:s.actionTabs.selectArrs,courseId:O.coursesId,isBatch:2!==s.actionTabs.type,successCallback:function(){me(!1),Ie()}}),(0,L.jsx)(I,{}),(0,L.jsx)(H,{onCallback:function(){return me(!1)}}),(0,L.jsx)(V,{onCallback:function(){return me(!1)}}),(0,L.jsx)(de,{refreshList:Ie}),(0,L.jsx)(he.Z,{}),(0,L.jsx)(Ze.Z,{visible:"调整排序"===s.actionTabs.key,callback:We,data:Ue,onCancel:function(){A({type:"classroomList/setActionTabs",payload:{key:""}})}}),_e&&(0,L.jsx)(ze,{courseId:G.coursesId,type:"1",onCancel:function(){return Ce(!1)}}),(0,L.jsx)(g.Z,{open:Y,title:"默认评分设置",centered:!0,onCancel:function(){J(!1)},onOk:a()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=JSON.parse(JSON.stringify(Q)),Object.keys(t).map((function(e){e.indexOf("proportion")>-1&&(t[e]=t[e]/100)})),e.next=4,(0,Z.ZP)("/api/courses/".concat(G.coursesId,"/homework_commons/set_default_score_setting.json"),{method:"post",body:{homework_type:1,score_settings:t}});case 4:0===e.sent.status&&(p.ZP.success("设置成功"),J(!1));case 6:case"end":return e.stop()}}),e)}))),width:800,children:(0,L.jsxs)("div",{children:[(0,L.jsx)(x.Z,{children:(0,L.jsx)(v.Z,{span:24,children:(0,L.jsx)(x.Z,{align:"middle",children:(0,L.jsx)(v.Z,{span:24,children:(0,L.jsx)("div",{className:"mt15",children:"该默认规则将被应用于你后续新建的图文作业,且不会影响你已创建的作业以及其他老师新建作业的评分规则。"})})})})}),(0,L.jsxs)(x.Z,{className:"mt25",children:[(0,L.jsx)(v.Z,{children:(0,L.jsx)("strong",{children:"助教评分"})}),(0,L.jsx)(v.Z,{span:24,className:"pl30 mt10"})]}),(0,L.jsx)(x.Z,{children:(0,L.jsxs)(w.ZP.Group,{value:null==Q?void 0:Q.ta_mode,onChange:function(e){Q.ta_mode=e.target.value,X(l()({},Q))},children:[(0,L.jsxs)(w.ZP,{value:1,style:{marginTop:15},children:[(0,L.jsx)("strong",{children:"普通模式"}),(0,L.jsx)("span",{className:"c-grey-c",children:"(选中,则取各助教最终评分的平均分)"})]}),(0,L.jsx)("br",{}),(0,L.jsxs)(w.ZP,{value:0,style:{marginTop:15},children:[(0,L.jsx)("strong",{children:"复审模式"}),(0,L.jsx)("span",{className:"c-grey-c",children:"(选中,则只取最新的助教评分)"})]})]})}),(0,L.jsxs)(x.Z,{className:"mt25",children:[(0,L.jsx)(v.Z,{children:(0,L.jsx)("strong",{children:"最终成绩组成"})}),(0,L.jsx)(v.Z,{span:24,className:"pl30 mt10"})]}),(0,L.jsxs)(x.Z,{children:[(0,L.jsxs)(w.ZP.Group,{value:Q.final_mode,onChange:function(e){Q.final_mode=e.target.value,X(l()({},Q))},children:[(0,L.jsxs)(w.ZP,{value:!1,style:{marginTop:15},children:[(0,L.jsx)("strong",{children:"多项评分配比"}),(0,L.jsxs)("span",{className:"c-grey-c",children:["(选中,则按照比例计算最终成绩)",(0,L.jsx)(y.Z,{placement:"bottomLeft",content:Ve,trigger:"click",children:(0,L.jsx)(k.Z,{className:"ml20 current"})})]})]}),(0,L.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,L.jsx)(v.Z,{children:"教师评分:"}),(0,L.jsxs)(v.Z,{className:"ml5",children:[(0,L.jsx)(b.Z,{min:0,max:100,value:Q.te_proportion,onChange:function(e){Q.te_proportion=e,X(Object.assign({},Q))}}),(0,L.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,L.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,L.jsx)(v.Z,{children:"助教评分:"}),(0,L.jsxs)(v.Z,{className:"ml5",children:[(0,L.jsx)(b.Z,{min:0,max:100,value:Q.ta_proportion,onChange:function(e){Q.ta_proportion=e,X(Object.assign({},Q))}}),(0,L.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,L.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,L.jsx)(v.Z,{children:"学生匿评:"}),(0,L.jsxs)(v.Z,{className:"ml5",children:[(0,L.jsx)(b.Z,{min:0,max:100,value:Q.st_proportion,onChange:function(e){Q.st_proportion=e,X(Object.assign({},Q))}}),(0,L.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,L.jsx)("br",{}),(0,L.jsxs)(w.ZP,{value:!0,style:{marginTop:15},children:[(0,L.jsx)("strong",{children:"单项评分优先"}),(0,L.jsxs)("span",{className:"c-grey-c",children:["(选中,则按照优先顺序计算最终成绩)",(0,L.jsx)(y.Z,{placement:"bottomLeft",content:Ye,trigger:"click",children:(0,L.jsx)(k.Z,{className:"ml20 current"})})]})]})]}),(0,L.jsx)("br",{})]}),(0,L.jsx)("div",{style:{paddingLeft:77},children:"(教师评分 → 教辅评分 → 学生匿评评分)"}),(0,L.jsxs)(x.Z,{className:"mt25",children:[(0,L.jsx)(v.Z,{children:(0,L.jsxs)("strong",{children:[(0,L.jsx)(j.Z,{checked:Q.is_repeat_minus,style:{fontSize:"16px"},onChange:function(e){Q.is_repeat_minus=e.target.checked,X(Object.assign({},Q))},children:"文档查重扣分"})," ",(0,L.jsx)("span",{style:{fontSize:"14px"},className:"c-grey-c",children:"(修改后需要进行“文档查重”,扣分规则才生效)"})]})}),(0,L.jsx)(v.Z,{span:24,className:"pl30 mt10"})]}),(null==Q?void 0:Q.is_repeat_minus)&&(0,L.jsxs)("div",{style:{paddingLeft:35},children:[(0,L.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,L.jsx)(v.Z,{children:"查重扣分:"}),(0,L.jsx)(v.Z,{className:"ml5",children:(0,L.jsx)(b.Z,{min:0,max:100,value:Q.repeat_setting_score,onChange:function(e){Q.repeat_setting_score=e,X(Object.assign({},Q))}})})]}),(0,L.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,L.jsx)(v.Z,{children:"扣分阀值:"}),(0,L.jsxs)(v.Z,{className:"ml5",children:[(0,L.jsx)(b.Z,{min:0,max:100,value:Q.repeat_limit,onChange:function(e){Q.repeat_limit=e,X(Object.assign({},Q))}}),(0,L.jsx)("span",{className:"ml10",children:"%"})]})]})]})]})})]})})}))},52352:function(e,t,n){"use strict";var i=n(82242),o=n.n(i),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),u=n.n(c),d=n(79800),m=n.n(d),p=n(59301),h=n(59028),f=n(78241),g=n(43418),x=n(8591),v=n(61998),w=n(5296),y=n(92723),b=n(57102),j=n(18030),k=n(61186),_=n.n(k),C=n(21082),A=n(37712),S=h.Z.Dragger;t.Z=(0,w.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,i=e.dispatch,r=e.onOk,s=((0,w.useParams)(),f.Z.useForm()),c=m()(s,1)[0],d=(0,p.useState)(),h=m()(d,2),k=h[0],N=h[1],T=(0,p.useState)(!1),Z=m()(T,2),B=Z[0],L=Z[1],P={height:100,onRemove:function(){N("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:(t=u()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,p.useEffect)((function(){c.setFieldsValue(a()(a()({},"publish_time",_()(_()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",_()(_()(new Date((0,C.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),[]),(0,A.jsx)(g.Z,{centered:!0,title:"补充成绩",open:"补充成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:B},onOk:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){c.resetFields(),i({type:"classroomList/setActionTabs",payload:{}})},children:(0,A.jsxs)(f.Z,{form:c,onFinish:function(){var e=u()(l()().mark((function e(t){var o,a,s,u,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=k&&k.size){e.next=3;break}return x.ZP.info("请上传文件"),e.abrupt("return");case 3:return L(!0),(o=new FormData).append("type",n.actionTabs.type),o.append("file",k),a=window.location.href.indexOf("exercise")>-1?"/api/exercises/".concat(n.actionTabs.id,"/supplement_score.json"):"/api/homework_commons/".concat(n.actionTabs.id,"/supplement_score.json"),e.next=10,(0,j.ZP)(a,{method:"post",body:o},!0);case 10:s=e.sent,L(!1),0===(null==s?void 0:s.status)&&(r(),c.resetFields(),i({type:"classroomList/setActionTabs",payload:{}}),(null==s||null===(u=s.data)||void 0===u||null===(u=u.fail)||void 0===u?void 0:u.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,A.jsx)(v.Z,{pagination:!1,dataSource:null==s||null===(d=s.data)||void 0===d?void 0:d.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,C.FH)("",y.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,A.jsx)(f.Z.Item,{label:"作业名称",labelCol:{span:3},name:"name",children:n.actionTabs.name}),(0,A.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,A.jsxs)("div",{children:[(0,A.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,A.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,A.jsxs)("div",{children:[(0,A.jsx)("a",{download:"模版.xlsx",className:b.Z.downloadbutton,href:y.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,A.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,A.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,A.jsxs)(S,o()(o()({},P),{},{children:[(0,A.jsx)("a",{className:b.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,A.jsx)("br",{}),(0,A.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},20208:function(e,t,n){"use strict";var i=n(82242),o=n.n(i),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),u=n.n(c),d=n(79800),m=n.n(d),p=n(59301),h=n(59028),f=n(78241),g=n(43418),x=n(8591),v=n(61998),w=n(92832),y=n(95237),b=n(43604),j=n(94001),k=n(57930),_=n(5296),C=n(16318),A=n(92723),S=n(57102),N=n(18030),T=n(63363),Z=n(61186),B=n.n(Z),L=n(21082),P=n(37712),D=h.Z.Dragger;t.Z=(0,_.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,i=e.dispatch,r=e.onOk,s=(0,_.useParams)(),c=f.Z.useForm(),d=m()(c,1)[0],h=(0,p.useState)(),Z=m()(h,2),M=Z[0],E=Z[1],I=(0,p.useState)(!1),O=m()(I,2),H=O[0],R=O[1],z={height:100,onRemove:function(){E("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:(t=u()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return E(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,p.useEffect)((function(){d.setFieldsValue(a()(a()({},"publish_time",B()(B()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",B()(B()(new Date((0,L.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),["导入外部成绩"===n.actionTabs.key]),(0,P.jsx)(g.Z,{centered:!0,title:"导入外部成绩",open:"导入外部成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:H},onOk:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:d.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){d.resetFields(),i({type:"classroomList/setActionTabs",payload:{}})},children:(0,P.jsxs)(f.Z,{form:d,colon:!1,onFinish:function(){var e=u()(l()().mark((function e(t){var o,a,c,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=M&&M.size){e.next=3;break}return x.ZP.info("请上传文件"),e.abrupt("return");case 3:return R(!0),(o=new FormData).append("name",t.name),o.append("type",n.actionTabs.type),o.append("category_id",(null==s?void 0:s.categoryId)||null),"exercise"===n.actionTabs.type?(o.append("time",t.time||""),o.append("total_score",t.total_score)):o.append("description",t.description||""),o.append("publish_time",B()(t.publish_time).format("YYYY-MM-DD HH:mm")),o.append("end_time",B()(t.end_time).format("YYYY-MM-DD HH:mm")),o.append("file",M),e.next=14,(0,N.ZP)("/api/courses/".concat(s.coursesId,"/export_external_score_homework.json"),{method:"post",body:o},!0);case 14:a=e.sent,R(!1),0===(null==a?void 0:a.status)&&(d.resetFields(),i({type:"classroomList/setActionTabs",payload:{}}),r(),(null==a||null===(c=a.data)||void 0===c||null===(c=c.fail)||void 0===c?void 0:c.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,P.jsx)(v.Z,{pagination:!1,dataSource:null==a||null===(u=a.data)||void 0===u?void 0:u.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,L.FH)("",A.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,P.jsx)(f.Z.Item,{label:"exercise"!==n.actionTabs.type?"作业":"试卷名称",labelCol:{span:3},name:"name",rules:[{required:!0,message:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称")}],children:(0,P.jsx)(w.Z,{showCount:!0,placeholder:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称"),maxLength:60})}),"exercise"!==n.actionTabs.type&&(0,P.jsx)(f.Z.Item,{label:"作业描述",labelCol:{span:3},name:"description",children:(0,P.jsx)(C.Z,{watch:!0})}),"exercise"===n.actionTabs.type&&(0,P.jsxs)(y.Z,{style:{marginLeft:6},children:[(0,P.jsx)(b.Z,{span:12,children:(0,P.jsx)(f.Z.Item,{label:"试卷总分",name:"total_score",rules:[{required:!0,message:"请填写试卷总分"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"试卷总分必须为正数"}],children:(0,P.jsx)(w.Z,{placeholder:"请输入试卷总分",style:{width:256},addonAfter:"分"})})}),(0,P.jsx)(b.Z,{span:12,children:(0,P.jsx)(f.Z.Item,{label:"答题时长",labelCol:{span:6},name:"time",children:(0,P.jsx)(j.Z,{style:{width:"100%"},addonAfter:"分钟",placeholder:"请输入答题时长"})})})]}),(0,P.jsxs)(y.Z,{style:{marginLeft:6,marginBottom:12},children:[(0,P.jsx)(b.Z,{span:12,children:(0,P.jsx)(f.Z.Item,{label:"开始时间",name:"publish_time",rules:[{required:!0,message:"请选择开始时间"}],children:(0,P.jsx)(k.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:256},disabledDate:function(e){return(0,T.Q8)(e)},disabledTime:function(e){return(0,T.d0)(e)},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})}),(0,P.jsx)(b.Z,{span:12,children:(0,P.jsx)(f.Z.Item,{label:"结束时间",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"请选择结束时间"}],children:(0,P.jsx)(k.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:function(e){return(0,T.Q8)(e,"",d.getFieldValue("publish_time"))},disabledTime:function(e){return(0,T.d0)(e,d.getFieldValue("publish_time"))},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})})]}),(0,P.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,P.jsxs)("div",{children:[(0,P.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,P.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,P.jsxs)("div",{children:[(0,P.jsx)("a",{download:"模版.xlsx",className:S.Z.downloadbutton,href:A.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,P.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,P.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,P.jsxs)(D,o()(o()({},z),{},{children:[(0,P.jsx)("a",{className:S.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,P.jsx)("br",{}),(0,P.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},95335:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),u=n(92832),d=n(24905),m=n(95237),p="leftdiv___aBzsX",h="listClass___bxIEW",f="spantitle___v_Vc4",g="rightdiv___xWu4M",x=n(54313),v=n(37712),w=function(e){var t=e.data,n=(e.value,e.handleChangePage,e.setSelectedRowKeys),i=e.selectedRowKeys,r=(e.onChange,(0,c.useState)([])),s=l()(r,2),w=s[0],y=s[1],b=(0,c.useState)([]),j=l()(b,2),k=j[0],_=j[1],C=(0,c.useState)([]),A=l()(C,2),S=A[0],N=A[1],T=(0,c.useState)(1),Z=l()(T,2),B=(Z[0],Z[1],(0,c.useState)()),L=l()(B,2);L[0],L[1];return(0,c.useEffect)((function(){y(t),_([]),N([])}),[t]),(0,c.useEffect)((function(){n&&(_(i),N(i))}),[i]),(0,v.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,v.jsxs)("div",{className:p,children:[(0,v.jsx)(u.Z.Search,{size:"middle",onChange:function(){var e=a()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y(t.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(n.target.value)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),placeholder:"可输入班级名称查询"}),0===w.length&&(0,v.jsx)(x.Z,{styles:{margin:"70px auto"},customText:"暂无分班"}),(0,v.jsx)("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"},children:(0,v.jsx)(d.Z.Group,{value:k.map((function(e){return"".concat(e.id)})),onChange:function(e){n(w.filter((function(t){return e.includes("".concat(t.id))})))},style:{marginTop:"10px",flexDirection:"column"},children:w.map((function(e,t){return(0,v.jsx)(m.Z,{style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200},children:(0,v.jsx)(d.Z,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:e.is_published,value:"".concat(e.id),children:(0,v.jsxs)("div",{className:h,children:[(0,v.jsx)("span",{className:f,style:{width:e.is_published?"108px":"170px"},children:e.name}),e.is_published&&(0,v.jsx)("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"},children:"已发布"})]})})},e.id)}))})})]}),(0,v.jsxs)("div",{className:g,children:[(0,v.jsx)(u.Z.Search,{onChange:function(e){N(k.filter((function(t){return t.name.includes(e.target.value)})))},size:"middle",placeholder:"可输入班级名称查询"}),0===S.length&&(0,v.jsx)(x.Z,{styles:{margin:"70px auto"},customText:"暂未选择分班"}),S.length>0&&(0,v.jsx)("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"},children:(0,v.jsx)("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0},children:S.map((function(e,t){return(0,v.jsxs)(m.Z,{justify:"space-between",style:{marginTop:"10px"},children:[(0,v.jsx)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"},children:e.name}),(0,v.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){n(k.filter((function(t){return"".concat(t.id)!="".concat(e.id)})))}})]},e.id)}))})})]})]})}},72764:function(e,t,n){"use strict";n.d(t,{Ei:function(){return v},rU:function(){return w},ZP:function(){return y}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),s=n(59301),l={wrap:"wrap___W3YuU",title:"title___OzKge",exhibition:"exhibition___ugphm"},c=n(78241),u=n(95237),d=n(43604),m=n(24905),p=n(94001),h=n(6848),f=n(92310),g=n.n(f),x=n(37712),v=function(e){var t=e.value,n=e.className,i=e.style,o=(0,s.useState)("0"),r=a()(o,2),c=r[0],u=r[1];(0,s.useEffect)((function(){if(t){var e=t.submit_limit,n=t.must_file;if(e&&n)return void u("1");if(e&&!n)return void u("2");if(!e&&n)return void u("3")}}),[t]);var d={1:(0,x.jsxs)("span",{children:["作业内容至少填写",(0,x.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符,并且必须上传相关附件。"]}),2:(0,x.jsxs)("span",{children:["作业内容至少填写",(0,x.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符"]}),3:(0,x.jsx)("span",{children:"必须上传相关附件。"})};return"0"===c?(0,x.jsx)(x.Fragment,{}):(0,x.jsxs)("section",{className:g()(l.exhibition,n),style:i,children:[(0,x.jsx)("span",{className:"c-grey-666 mr10",children:"提交作业要求:"}),null==d?void 0:d[c]]})},w=function(e){var t=e.className,n=e.style,i=e.form,o=c.Z.useWatch("submit_limit",i),r=c.Z.useWatch("can_submit",i);return(0,x.jsx)("section",{className:g()(l.newWrap,t),style:n,children:(0,x.jsxs)("div",{style:{padding:"20px 0",borderBottom:"1px solid #EDEDED"},children:[(0,x.jsx)("h1",{children:"提交设置"}),(0,x.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,x.jsx)(d.Z,{children:(0,x.jsx)(c.Z.Item,{name:"can_submit",valuePropName:"checked",children:(0,x.jsx)(m.Z,{children:(0,x.jsx)("span",{className:"font16",children:"限制学生提交作品"})})})}),(0,x.jsx)(d.Z,{children:(0,x.jsx)(c.Z.Item,{name:"submit_num",rules:r&&[{required:!0,message:"请填写作品次数"}],children:(0,x.jsx)(p.Z,{precision:0,min:1,disabled:!r})})}),(0,x.jsx)(d.Z,{children:"次"}),(0,x.jsxs)(d.Z,{children:[" ",(0,x.jsx)(h.Z,{overlayInnerStyle:{width:520},title:(0,x.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,x.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,x.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,x.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999"})})]})]}),(0,x.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,x.jsx)(d.Z,{children:(0,x.jsx)(c.Z.Item,{name:"submit_limit",valuePropName:"checked",children:(0,x.jsx)(m.Z,{children:(0,x.jsx)("span",{className:"font16",children:"学生填写内容至少"})})})}),(0,x.jsx)(d.Z,{children:(0,x.jsx)(c.Z.Item,{name:"submit_limit_num",rules:o&&[{required:!0,message:"字数不能为空"}],children:(0,x.jsx)(p.Z,{precision:0,min:1,disabled:!o})})}),(0,x.jsx)(d.Z,{children:"字"})]}),(0,x.jsx)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:(0,x.jsx)(d.Z,{children:(0,x.jsx)(c.Z.Item,{name:"must_file",valuePropName:"checked",children:(0,x.jsx)(m.Z,{children:(0,x.jsx)("span",{className:"font16",children:"学生提交作业必须上传附件"})})})})})]})})},y=function(e){var t=e.value,n=e.onChange,i=e.className,r=e.style,c=e.disabled,d=void 0!==c&&c,f=(0,s.useState)({}),v=a()(f,2),w=v[0],y=v[1];(0,s.useEffect)((function(){if(console.log(t,"value"),t){var e={submit_limit:null==t?void 0:t.submit_limit,submit_limit_num:null==t?void 0:t.submit_limit_num,must_file:null==t?void 0:t.must_file,can_submit:null==t?void 0:t.can_submit,submit_num:null==t?void 0:t.submit_num};y(o()({},e))}}),[t]);var b=function(e){var t=o()(o()({},w),e);n(t)};return(0,x.jsxs)("section",{className:g()(l.wrap,i),style:r,children:[(0,x.jsx)("div",{className:l.title,children:"提交设置"}),(0,x.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,x.jsx)(m.Z,{disabled:d,checked:null==w?void 0:w.can_submit,onChange:function(e){return b({can_submit:e.target.checked})}}),(0,x.jsx)("span",{className:"ml10 mr10",children:"限制学生提交作业"}),(0,x.jsx)(p.Z,{precision:0,min:1,disabled:d||!(null!=w&&w.can_submit),value:null==w?void 0:w.submit_num,onChange:function(e){return b({submit_num:e})}}),(0,x.jsx)("span",{className:"ml5",children:"次"}),(0,x.jsx)(h.Z,{overlayInnerStyle:{width:520},title:(0,x.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,x.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,x.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,x.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999 ml5"})})]}),(0,x.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,x.jsx)(m.Z,{disabled:d,checked:null==w?void 0:w.submit_limit,onChange:function(e){return b({submit_limit:e.target.checked})}}),(0,x.jsx)("span",{className:"ml10 mr10",children:"学生填写内容至少"}),(0,x.jsx)(p.Z,{precision:0,min:1,disabled:d||!(null!=w&&w.submit_limit),value:null==w?void 0:w.submit_limit_num,onChange:function(e){return b({submit_limit_num:e})}}),(0,x.jsx)("span",{className:"ml5",children:"字"})]}),(0,x.jsxs)(u.Z,{align:"middle",children:[(0,x.jsx)(m.Z,{disabled:d,checked:null==w?void 0:w.must_file,onChange:function(e){return b({must_file:e.target.checked})}}),(0,x.jsx)("span",{className:"ml10",children:"学生提交作业必须上传附件"})]})]})}},75774:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301),m=n(43418),p=n(96865),h=n(95237),f=n(6848),g="wrap___KDoq2",x="tip___WEJuX",v="listWrap___IJDX4",w="li___r5con",y="nameWrap___PUyEz",b="name___xuUMY",j="tag___l5CW2",k=n(78018),_=n(5296),C=n(37712),A=function(e){var t,n,i=e.type,r=void 0===i?1:i,s=e.data,c=e.visible,A=e.callback,S=e.onCancel,N=(0,d.useState)([]),T=u()(N,2),Z=T[0],B=T[1],L=(0,_.useSelector)((function(e){return e.loading}));(0,d.useEffect)((function(){B(s)}),[JSON.stringify(s)]);var P=function(e){var t={};if(1===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"未开始":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"提交中":{background:"rgba(0,177,135,0.2)",color:"#00B187"},"已截止":{background:"rgba(229,51,51,0.2)",color:"#E53333"}}[e]}if(2===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"预发布":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"已发布":{background:"rgba(0,177,135,0.2)",color:"#00B187"}}[e]}return(0,C.jsx)("div",{className:j,style:l()({},t),children:e})},D=function(){var e=a()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:A(Z.map((function(e){return e.task_id})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,C.jsx)(m.Z,{centered:!0,destroyOnClose:!0,open:c,onCancel:S,onOk:D,confirmLoading:null==L||null===(t=L.effects)||void 0===t?void 0:t["classroomList/updateTaskPosition"],okText:"保存",title:"调整排序",width:850,children:(0,C.jsxs)("div",{className:g,children:[(0,C.jsxs)("div",{className:x,children:[(0,C.jsx)("i",{className:"iconfont icon-tishi9 font14 mr10"}),(0,C.jsx)("span",{children:"提示:请在列表中长按鼠标左键,进行拖放排序。完成排序后请点击“保存”"})]}),(0,C.jsx)(p.Z,{loading:null==L||null===(n=L.effects)||void 0===n?void 0:n["classroomList/getAllTaskList"],active:!0,className:"mt20",paragraph:{rows:5},children:(0,C.jsx)(k.Z5,{onDragEnd:function(e){return function(e,t){if(e.destination){var n=function(e,t,n){var i=Array.from(e),o=i.splice(t,1),r=u()(o,1)[0];return i.splice(n,0,r),i}(t,e.source.index,e.destination.index);B(n)}}(e,Z)},children:(0,C.jsx)(k.bK,{droppableId:"droppable",children:function(e,t){return(0,C.jsxs)("div",l()(l()({ref:e.innerRef},e.droppableProps),{},{className:v,children:[Z.map((function(e,t){return(0,C.jsx)(k._l,{draggableId:e.task_id.toString(),index:t,children:function(t,n){return(0,C.jsxs)("div",l()(l()(l()({ref:t.innerRef},t.draggableProps),t.dragHandleProps),{},{className:w,children:[(0,C.jsxs)(h.Z,{align:"middle",children:[(0,C.jsx)("div",{className:y,children:(0,C.jsx)(f.Z,{title:null==e?void 0:e.task_name,children:(0,C.jsx)("div",{className:b,children:null==e?void 0:e.task_name})})}),P(null==e?void 0:e.status)]}),(0,C.jsx)(h.Z,{align:"middle",className:"font12 mt10",children:(0,C.jsxs)("span",{className:"mr30 c-grey-666",children:["管理员",(0,C.jsx)("span",{className:"ml5 c-black",children:(null==e?void 0:e.user_name)||"--"})]})})]}))}},e.task_id)})),e.placeholder]}))}})})})]})})}},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return l},JZ:function(){return u},bN:function(){return p},jP:function(){return m},rO:function(){return c}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),s=n(18030);function l(e){return(0,s.U2)("libraries/".concat(e,".json"))}function c(){return(0,s.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e){return(0,s.v_)("libraries.json",e)}function p(e,t){return(0,s.gz)("libraries/".concat(e,".json"),t)}},1058:function(e,t,n){"use strict";n.d(t,{U:function(){return m}});var i=n(7557),o=n.n(i),r=n(82242),a=n.n(r),s=n(41498),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301);function m(e,t){var n=(0,d.useState)(t),i=u()(n,2),r=i[0],s=i[1],c=(0,d.useState)(!1),m=u()(c,2),p=m[0],h=m[1],f=(0,d.useState)(),g=u()(f,2),x=g[0],v=g[1],w=function(){var n=l()(o()().mark((function n(i){var l,c,u,d=arguments;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return l=d.length>1&&void 0!==d[1]&&d[1],c=l?t:a()(a()({},r),i),h(!0),s(c),n.next=6,e(c);case 6:return u=n.sent,h(!1),v(u),n.abrupt("return",u);case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return[r,p,w,x]}},32858:function(e,t,n){"use strict";n.d(t,{_:function(){return g}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),s=n(99681),l=n(43418),c=n(8591),u=n(61998),d=n(21082),m=(n(59301),n(37712)),p=function(){var e=a()(o()().mark((function e(t){var n,i,r,a,l,c,u;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.is_jupyter,i=t.is_jupyter_lab,r=t.shixunId,a=t.homework_common_id,l=t.courseId,!n&&!i){e.next=7;break}return e.next=4,(0,s.BK)({id:r});case 4:return null!=(c=e.sent)&&c.identifier&&(0,d.xg)("/tasks/".concat(c.identifier,"/jupyter?homework_common_id=").concat(a)),e.abrupt("return");case 7:return e.next=9,(0,s.Ir)({id:r,homework_common_id:a});case 9:if(null==(u=e.sent)||!u.game_identifier){e.next=13;break}return(0,d.xg)("/tasks/".concat(l,"/").concat(a,"/").concat(u.game_identifier)),e.abrupt("return");case 13:2===(null==u?void 0:u.status)?h(null==u?void 0:u.message,a,l):3===(null==u?void 0:u.status)?f(null==u?void 0:u.message):-3==(null==u?void 0:u.status)&&(0,d.eF)();case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=function e(t,n,i){var r,u;t=null!==(r=t)&&void 0!==r&&r.includes(".json")?t:"".concat(t,".json"),l.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,m.jsx)("div",{className:"tc font16",children:" 实训已经更新了,正在为您重置!"}),onOk:(u=a()(o()().mark((function r(){var a,l;return o()().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,(0,s.$Q)({url:t});case 2:if(a=o.sent){o.next=5;break}return o.abrupt("return");case 5:return c.ZP.success("重置成功,正在进入实践项目!"),o.next=8,(0,s.Ir)({id:a.shixun_identifier,homework_common_id:n});case 8:if(null==(l=o.sent)||!l.game_identifier){o.next=12;break}return(0,d.xg)("/tasks/".concat(i,"/").concat(n,"/").concat(l.game_identifier)),o.abrupt("return");case 12:2===(null==l?void 0:l.status)?e(null==l?void 0:l.message,n,i):3===(null==l?void 0:l.status)&&f(null==l?void 0:l.message);case 13:case"end":return o.stop()}}),r)}))),function(){return u.apply(this,arguments)})})},f=function(e){l.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,m.jsxs)("div",{className:"tc font16",children:[" 目前该实践项目尚在内测中,将于",e,"之后开放,谢谢!"]})})},g=function(){var e=a()(o()().mark((function e(t,n){var i,r,a,c,d,h,f;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.is_jupyter,r=n.is_jupyter_lab,e.next=3,(0,s.WT)(t);case 3:if(!((a=e.sent).length>1)){e.next=7;break}return l.Z.info({icon:null,closable:!0,maskClosable:!0,centered:!0,width:820,okButtonProps:{style:{display:"none"}},title:"提示",content:(0,m.jsxs)("div",{children:[(0,m.jsxs)("div",{children:["你当前有",a.length,"个进行中的实训作业使用该实践项目,请在下方点击实训作业名称进入实训挑战页面:"]}),(0,m.jsx)(u.Z,{pagination:!1,columns:[{title:"课堂名称",dataIndex:"course_name",ellipsis:!0,width:180,align:"center"},{title:"作业名称",dataIndex:"name",ellipsis:!0,width:240,align:"center",render:function(e,t){var n=t||{},i=n.course_identifier,o=n.id;return(0,m.jsx)("a",{target:"_blank",href:"/classrooms/".concat(i,"/shixun_homework/").concat(o,"/detail"),children:e})}},{title:"作业截止时间",dataIndex:"end_time",align:"center"},{title:"操作",align:"center",render:function(e,t){var n=t.course_identifier,o=t.id,a=t.shixun_identifier;return(0,m.jsx)("div",{style:{cursor:"pointer",color:"#165dff"},onClick:function(){p({is_jupyter:i,is_jupyter_lab:r,shixunId:a,homework_common_id:o,courseId:n})},children:"前往挑战"})}}],dataSource:a,rowKey:"id"})]})}),e.abrupt("return",!0);case 7:if(1!==a.length){e.next=11;break}return c=a[0],d=c.shixun_identifier,h=c.id,f=c.course_identifier,p({is_jupyter:i,is_jupyter_lab:r,shixunId:d,homework_common_id:h,courseId:f}),e.abrupt("return",!0);case 11:return e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();t.Z=p},57102:function(e,t){"use strict";t.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},77578:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});const i=e=>e?"function"==typeof e?e():e:null},27666:function(e,t,n){"use strict";var i=n(26390),o=n(71783);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,i.Z)(n))},r=function(){if(null==t){for(var e=arguments.length,i=new Array(e),r=0;r{o.Z.cancel(t),t=null},r}},81228:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var i=n(79545),o=n(68550),r=n(17928),a=n(99487),s=n(59301),l=n(92310),c=n.n(l),u=n(28647),d=n(55405),m=n(27666),p=n(36355),h=n(83116),f=n(37613);const g=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var x=(0,h.Z)("Affix",(e=>{const t=(0,f.TS)(e,{zIndexPopup:e.zIndexBase+10});return[g(t)]}));function v(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function w(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function y(e,t,n){if(void 0!==n&&t.bottom{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:i}=e.state;i!==n&&(b.forEach((t=>{null==i||i.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),i=null==n?void 0:n();b.forEach((n=>{null==i||i.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:i}=e.props,o=e.getTargetFunc();if(t!==k.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!o)return;const r=e.getOffsetTop(),a=e.getOffsetBottom(),s=o();if(s){const t={status:k.None},o=v(e.placeholderNodeRef.current);if(0===o.top&&0===o.left&&0===o.width&&0===o.height)return;const l=v(s),c=w(o,l,r),u=y(o,l,a);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:o.width,height:o.height},t.placeholderStyle={width:o.width,height:o.height}):void 0!==u&&(t.affixStyle={position:"fixed",bottom:u,width:o.width,height:o.height},t.placeholderStyle={width:o.width,height:o.height}),t.lastAffix=!!t.affixStyle,i&&n!==t.lastAffix&&i(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:k.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,m.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,m.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const i=e.getOffsetTop(),o=e.getOffsetBottom(),r=t();if(r&&e.placeholderNodeRef.current){const t=v(r),a=v(e.placeholderNodeRef.current),s=w(a,t,i),l=y(a,t,o);if(void 0!==s&&n.top===s||void 0!==l&&n.bottom===l)return}}e.prepareMeasure()})),e}return(0,o.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:j}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:i,children:o}=this.props,r=c()(e&&i,{[n]:!!e});let a=(0,d.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return s.createElement(u.Z,{onResize:this.updatePosition},s.createElement("div",Object.assign({},a,{ref:this.placeholderNodeRef}),e&&s.createElement("div",{style:t,"aria-hidden":"true"}),s.createElement("div",{className:r,ref:this.fixedNodeRef,style:e},s.createElement(u.Z,{onResize:this.updatePosition},o))))}}]),n}(s.Component);_.contextType=p.E_;var C=(0,s.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:i}=e,{getPrefixCls:o}=(0,s.useContext)(p.E_),r=o("affix",n),[a,l]=x(r),u=Object.assign(Object.assign({},e),{affixPrefixCls:r,rootClassName:c()(i,l)});return a(s.createElement(_,Object.assign({},u,{ref:t})))}))},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(92310),o=n.n(i),r=n(59301),a=n(36355),s=n(17313),l=n(83116),c=n(37613);const u=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:o,textPaddingInline:r,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},(0,s.Wf)(e)),{borderBlockStart:`${o}px solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:r},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,l.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[u(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,divider:i}=r.useContext(a.E_),{prefixCls:s,type:l="horizontal",orientation:c="center",orientationMargin:u,className:p,rootClassName:h,children:f,dashed:g,plain:x,style:v}=e,w=m(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),y=t("divider",s),[b,j]=d(y),k=c.length>0?`-${c}`:c,_=!!f,C="left"===c&&null!=u,A="right"===c&&null!=u,S=o()(y,null==i?void 0:i.className,j,`${y}-${l}`,{[`${y}-with-text`]:_,[`${y}-with-text${k}`]:_,[`${y}-dashed`]:!!g,[`${y}-plain`]:!!x,[`${y}-rtl`]:"rtl"===n,[`${y}-no-default-orientation-margin-left`]:C,[`${y}-no-default-orientation-margin-right`]:A},p,h),N=r.useMemo((()=>"number"==typeof u?u:/^\d+$/.test(u)?Number(u):u),[u]),T=Object.assign(Object.assign({},C&&{marginLeft:N}),A&&{marginRight:N});return b(r.createElement("div",Object.assign({className:S,style:Object.assign(Object.assign({},null==i?void 0:i.style),v)},w,{role:"separator"}),f&&"vertical"!==l&&r.createElement("span",{className:`${y}-inner-text`,style:T},f)))}},39722:function(e,t,n){"use strict";n.d(t,{t5:function(){return d}});var i=n(92310),o=n.n(i),r=n(55477),a=n(59301),s=n(36355),l=n(77578),c=n(17356),u=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{const{hashId:t,prefixCls:n,className:i,style:s,placement:c="top",title:u,content:d,children:m}=e;return a.createElement("div",{className:o()(t,n,`${n}-pure`,`${n}-placement-${c}`,i),style:s},a.createElement("div",{className:`${n}-arrow`}),a.createElement(r.G,Object.assign({},e,{className:t,prefixCls:n}),m||((e,t,n)=>{if(t||n)return a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${e}-title`},(0,l.Z)(t)),a.createElement("div",{className:`${e}-inner-content`},(0,l.Z)(n)))})(n,u,d)))};t.ZP=e=>{const{prefixCls:t}=e,n=u(e,["prefixCls"]),{getPrefixCls:i}=a.useContext(s.E_),o=i("popover",t),[r,l]=(0,c.Z)(o);return r(a.createElement(d,Object.assign({},n,{prefixCls:o,hashId:l})))}},60324:function(e,t,n){"use strict";var i=n(92310),o=n.n(i),r=n(59301),a=n(77578),s=n(62892),l=n(36355),c=n(6848),u=n(39722),d=n(17356),m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o{let{title:t,content:n,prefixCls:i}=e;return r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${i}-title`},(0,a.Z)(t)),r.createElement("div",{className:`${i}-inner-content`},(0,a.Z)(n)))},h=r.forwardRef(((e,t)=>{const{prefixCls:n,title:i,content:a,overlayClassName:u,placement:h="top",trigger:f="hover",mouseEnterDelay:g=.1,mouseLeaveDelay:x=.1,overlayStyle:v={}}=e,w=m(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:y}=r.useContext(l.E_),b=y("popover",n),[j,k]=(0,d.Z)(b),_=y(),C=o()(u,k);return j(r.createElement(c.Z,Object.assign({placement:h,trigger:f,mouseEnterDelay:g,mouseLeaveDelay:x,overlayStyle:v},w,{prefixCls:b,overlayClassName:C,ref:t,overlay:i||a?r.createElement(p,{prefixCls:b,title:i,content:a}):null,transitionName:(0,s.m)(_,"zoom-big",w.transitionName),"data-popover-inject":!0})))}));h._InternalPanelDoNotUseOrYouWillBeFired=u.ZP,t.Z=h},17356:function(e,t,n){"use strict";var i=n(17313),o=n(29878),r=n(19447),a=n(33166),s=n(83116),l=n(37613);const c=e=>{const{componentCls:t,popoverColor:n,minWidth:o,fontWeightStrong:a,popoverPadding:s,boxShadowSecondary:l,colorTextHeading:c,borderRadiusLG:u,zIndexPopup:d,marginXS:m,colorBgElevated:p,popoverBg:h}=e;return[{[t]:Object.assign(Object.assign({},(0,i.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:d,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":p,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:u,boxShadow:l,padding:s},[`${t}-title`]:{minWidth:o,marginBottom:m,color:c,fontWeight:a},[`${t}-inner-content`]:{color:n}})},(0,r.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},u=e=>{const{componentCls:t}=e;return{[t]:a.i.map((n=>{const i=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:"transparent"}}}}))}},d=e=>{const{componentCls:t,lineWidth:n,lineType:i,colorSplit:o,paddingSM:r,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,u=a-Math.round(s*l);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${u/2}px ${c}px ${u/2-n}px`,borderBottom:`${n}px ${i} ${o}`},[`${t}-inner-content`]:{padding:`${r}px ${c}px`}}}};t.Z=(0,s.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:i}=e,r=(0,l.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[c(r),u(r),i&&d(r),(0,o._y)(r,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},51581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return o&&(s?a?u.unshift(s):u.push(s):this.defaultLoader&&(a?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),r.default.createElement(i,c,u)}}]),t}(o.Component);l.propTypes={children:a.default.node.isRequired,element:a.default.node,hasMore:a.default.bool,initialLoad:a.default.bool,isReverse:a.default.bool,loader:a.default.node,loadMore:a.default.func.isRequired,pageStart:a.default.number,ref:a.default.func,getScrollParent:a.default.func,threshold:a.default.number,useCapture:a.default.bool,useWindow:a.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},26724:function(e,t,n){e.exports=n(51581)},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8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Ay7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__Graduation__Tasks__Add__index.02a34518.async.js b/p__Classrooms__Lists__Graduation__Tasks__Add__index.02a34518.async.js deleted file mode 100644 index a8d46cfaf8..0000000000 --- a/p__Classrooms__Lists__Graduation__Tasks__Add__index.02a34518.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[74795,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,o=!1,r=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,R(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,O(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,o="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var C=function(e){return e&&"false"!==e},j=function(t,n,i){x(m)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!w)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(m)<=4.4)C(n.showToolBar)&&(n.height-=7),C(n.showAlgebraInput)&&(n.height-=37),n.width<605&&C(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(C(n.showToolBar)||C(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=C(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},b||v.appendChild(_)):r.appendChild(_),v.appendChild(r),b||t.appendChild(v),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),I("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(m)<5&&(e.className+=" geogebraweb")):k(e,t)}if(o){scriptLoadStarted=!0;for(var B=0;B0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):j(o,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=i,j(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",o.appendChild(a)}return o.appendChild(c),o},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,t){if(m=e,t)R(m,!0);else{var r,a,l=!o;if(l){var s=x(m);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?r+m:"https://www.geogebra.org/apps/5.2.814.0/",G)if(m.slice(-1*G[u].length)===G[u]||m.slice(-1*(G[u].length+1))===G[u]+"/")return void R(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||C(n.showToolBar)||C(n.showMenuBar)||C(n.showAlgebraInput)||C(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",R(a,!1)}},R=function(e,t){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===t&&(t=-1===e.indexOf("http")),p=t,g="web.nocache.js",w=!1;var n=f.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",w=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var i=parseFloat(m);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),O("5.0",t))}},I=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function D(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&R(c,p),l=!0}return void 0!==n.material_id?S(D):D(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,i,o,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,f=0,p=0,h=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-m.width-m.left,p=u<=480?10:30):(p=m.left,f=u<=480?10:30),d=p+f)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(t-i.width)/2,r=(n-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],o=O;o0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var C=function(e){var t=e.value,n=e.onChange,i=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,T=e.title,C=void 0===T?"上传附件":T,j=e.showRemoveModal,P=void 0!==j&&j,N=e.accept,L=void 0===N?"":N,E=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,O=e.aloneClear,R=void 0!==O&&O,I=e.realTimeRemove,D=void 0===I||I,Z=e.uploadText,F=(0,p.useState)(!1),z=f()(F,2),H=z[0],W=z[1],V=(0,p.useState)(t||[]),q=f()(V,2),U=q[0],K=q[1],Y=(0,p.useState)(1),J=f()(Y,2),X=J[0],$=J[1];(0,p.useEffect)((function(){t&&(1===X&&K(u()(t)),$(2),G===(null==t?void 0:t.length)&&W(!0))}),[t]);var Q,ee=function(){setTimeout((function(){U.pop(),K(u()(U))}),500)},te={multiple:!0,disabled:H,accept:L,withCredentials:!0,fileList:U,beforeUpload:function(e,t){var n=e.size/1024/1024;return U.concat(t).length>G?(U.pop(),K(u()(U)),m.ZP.error("最多只能上传".concat(G,"个文件")),R?Promise.reject():(ee(),!1)):n=G?W(!0):W(!1),K(u()(U)),U=U.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,U),n(U)):m.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(Q=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(D){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!P){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return Q.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(B,s()(s()({},te),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!M&&(0,y.jsxs)(h.Z,s()(s()({},te),{},{children:[(0,y.jsxs)(w.ZP,{disabled:H,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),C]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:Z||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return w}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),f=n.n(d),p=(n(80443),n(90630),n(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function w(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,l.useEffect)((function(){h&&h.setOption("mode",i)}),[h,i]),(0,l.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,l.useEffect)((function(){if(c.current&&!h){var e=f().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,l.useState)("python"),r=a()(i,2),d=r[0],f=r[1];return(0,p.jsxs)(c.Z,o()(o()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){f(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(w,{mode:d})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var i=n(91232),o=n.n(i),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),f=n(76374),p=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),w=n.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,o=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(o)},children:[(0,h.jsx)("i",{className:"".concat(i)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(v,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,w()(w()({},e),{},{onActionCallback:o})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),B={labelCol:{span:4},wrapperCol:{span:20}},T=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,w()(w()({},B),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},C=n(73145),j=n(28486),P=n(95237),N=n(36709),L=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,h.jsx)(P.Z,{style:{height:"100vh"},children:(0,h.jsx)(N.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),M=n.n(E),A=n(41498),G=n.n(A),O=n(37205),R=n.n(O),I=n(12378);function D(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(D,go.CommandHandler),D.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},D.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},D.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},D.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},D.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},D.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},D.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},D.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))i.y?1:n.xi.x?1:0})),t},D.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},D.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(D.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(D.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 Z=D,F=(n(41034),n(85160)),z=n(43418),H=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=I;var U=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),f=d[0],p=d[1],m=function(){var e=G()(M()().mark((function e(){var t,o;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(P.Z,{children:[(0,h.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(H.Z,{onClick:function(){l.current=!l.current,p(f+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(F.FI,{initDiagram:function(){var e=I.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",f="#fffcd5",p="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",w="#b3e6b3",v="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var o=n.part.adornedPart,r=(new I.Point).setRectSpot(o.actualBounds,t);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var l={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(I.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?25:18,height:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(t){return e(I.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(I.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(u,"fill"),_(f,"fill"),_(p,"fill"),_(h,"fill"))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(g,"fill"),_(w,"fill"),_(m,"fill"),_(v,"fill")))]}function S(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function B(t,n){return n||(n="thickness"),e(I.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function T(t,n){return n||(n="dash"),e(I.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function C(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",B(1),B(2),B(3),B(4))),e("ContextMenuButton",e(I.Panel,"Horizontal",T(null),T([2,4]),T([4,4])))]}function j(t,n){return n||(n="figure"),e(I.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function P(t){return e(I.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(I.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function L(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",I.Spot.stringify(I.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var i=0,o=I.Spot.RightSide;t.equals(I.Spot.Top)?(i=270,o=I.Spot.TopSide):t.equals(I.Spot.Left)?(i=180,o=I.Spot.LeftSide):t.equals(I.Spot.Bottom)&&(i=90,o=I.Spot.BottomSide),n||(i-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",I.Spot.stringify(o)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return i.current=new I.Diagram(o.current,{padding:20,grid:e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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(Z),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center,locationObjectName:"SHAPE",desiredSize:new I.Size(120,60),minSize:new I.Size(40,40),resizable:!0,resizeCellSize:new I.Size(10,10),rotatable:!0},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),new I.Binding("desiredSize","size",I.Size.parse).makeTwoWay(I.Size.stringify),e(I.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("figure"),new I.Binding("fill"),new I.Binding("stroke","borderColor"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(I.TextBlock,{margin:1,textAlign:"center",overflow:I.TextBlock.OverflowEllipsis,editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(I.Panel,"Vertical",{maxSize:new I.Size(200,NaN)},e(I.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new I.Binding("text")),e(I.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new I.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Placeholder,{padding:10}),b(I.Spot.Top,"TriangleUp"),b(I.Spot.Left,"TriangleLeft"),b(I.Spot.Right,"TriangleRight"),b(I.Spot.Bottom,"TriangleDown"),y({alignment:new I.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(I.Panel,"Horizontal",j("Rectangle"),j("RoundedRectangle"),j("Ellipse"),j("Diamond"))),e("ContextMenuButton",e(I.Panel,"Horizontal",j("Parallelogram2"),j("ManualOperation"),j("Procedure"),j("Cylinder1"))),e("ContextMenuButton",e(I.Panel,"Horizontal",j("Terminator"),j("CreateRequest"),j("Document"),j("TriangleDown"))),k(),S(),C()),i.current.groupTemplate=e(I.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:I.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.Panel,"Auto",{name:"BODY"},e(I.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("fill"),new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Placeholder,{background:"transparent",margin:20})),e(I.TextBlock,{alignment:I.Spot.Top,alignmentFocus:I.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new I.Binding("text"),new I.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Panel,"Auto",e(I.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(I.Placeholder,{margin:1.5})),y({alignment:I.Spot.TopRight,alignmentFocus:I.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),C()),i.current.linkTemplate=e(I.Link,{layerName:"Foreground",routing:I.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new I.Binding("fromSpot","fromSpot",I.Spot.parse),new I.Binding("toSpot","toSpot",I.Spot.parse),new I.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("points").makeTwoWay(),e(I.Shape,{strokeWidth:2},new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,0),segmentOrientation:I.Link.OrientAlong,alignmentFocus:I.Spot.Right,figure:"circle",width:10,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 1===e}))),e(I.Shape,{segmentIndex:-1,segmentOffset:new I.Point(-10,6),segmentOrientation:I.Link.OrientPlus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return e>=1})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,-6),segmentOrientation:I.Link.OrientMinus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 2===e})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.TextBlock,{alignmentFocus:new I.Spot(0,1,-4,0),editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(I.Adornment,e(I.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:P(2)},new I.Binding("pathPattern","thickness",P)),y({alignmentFocus:new I.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",S(),C(),e("ContextMenuButton",e(I.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(I.Panel,"Horizontal",e(I.Panel,"Spot",L(!1),E(I.Spot.Top,!1),E(I.Spot.Left,!1),E(I.Spot.Right,!1),E(I.Spot.Bottom,!1)),e(I.Panel,"Spot",{margin:new I.Margin(0,0,0,2)},L(!0),E(I.Spot.Top,!0),E(I.Spot.Left,!0),E(I.Spot.Right,!0),E(I.Spot.Bottom,!0))))),new I.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(I.Link,{locationSpot:I.Spot.Center,selectionAdornmentTemplate:e(I.Adornment,"Link",{locationSpot:I.Spot.Center},e(I.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(I.Shape,{toArrow:"Standard",stroke:null}))},{routing:I.Link.AvoidsNodes,curve:I.Link.JumpOver,corner:5,toShortLength:4},new I.Binding("points"),e(I.Shape,{isPanelMain:!0,strokeWidth:2}),e(I.Shape,{toArrow:"Standard",stroke:null})),model:new I.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(R()(I.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center},new I.Binding("location","location",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.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 I.Binding("stroke").makeTwoWay(),new I.Binding("fill").makeTwoWay(),new I.Binding("figure")),e(I.TextBlock,{margin:new I.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new I.Size(16,16),maxSize:new I.Size(10,NaN),textAlign:"center",editable:!0},new I.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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,h.jsx)("div",{ref:o})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Y.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Y.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(_.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,o=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),f=d[0],p=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){m.current.appName=f?"3D":"graphing",s.current.inject("applet_container")}),[f]),(0,c.useEffect)((function(){p(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(P.Z,{align:"middle",children:[(0,h.jsx)(H.Z,{flex:1,children:(0,h.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,h.jsx)(H.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),oe=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},he=n(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function we(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ve=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},ve+"-B","bold"),ve+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,w=e.miniToolbar,v=void 0!==w&&w,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,B=e.mode,P=void 0===B?"markdown":B,N=e.id,E=void 0===N?"markdown-editor-id":N,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,O=void 0!==G&&G,R=e.showNullButton,I=void 0!==R&&R,D=e.showNullProgramButton,Z=void 0!==D&&D,F=e.hidetoolBar,H=void 0!==F&&F,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,fe=void 0!==te&&te,ve=e.disabledFill,xe=void 0!==ve&&ve,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,Be=void 0===Se?"":Se,Te=e.extraUse,Ce=(0,c.useState)(null),je=a()(Ce,2),Pe=je[0],Ne=je[1],Le=(0,c.useState)(n),Ee=a()(Le,2),Me=Ee[0],Ae=Ee[1],Ge=(0,c.useState)(k),Oe=a()(Ge,2),Re=Oe[0],Ie=Oe[1],De=(0,c.useState)(V),Ze=a()(De,2),Fe=Ze[0],ze=Ze[1],He=(0,c.useState)(""),We=a()(He,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),ot=(0,c.useState)(0),rt=a()(ot,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],ft=(0,c.useRef)(),pt=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(Be),null==Pe||Pe.setValue(Be),window.scrollTo(0,e)}),[Be]),(0,c.useEffect)((function(){null==Y||Y(Fe)}),[Fe]),(0,c.useEffect)((function(){if(ft.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==P)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,j.I)(s,(function(e){var n,i,o;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(ft.current,{mode:P,lineNumbers:!v,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),o=n.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===me.indexOf(r))return null;if(console.log("change1:",t,e,o,i,s,a,l,r),s>=0&&i.ch-s<5){var u=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),fe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){pt.current}),[Qe,pt,Fe]);(0,c.useEffect)((function(){if(Pe){var e=function(){var e=new f.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Pe.setSize("100%","100%"),Pe.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(ft.current.parentElement),e}();return function(){var t,n;null!==(t=ft.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=ft.current)||void 0===n?void 0:n.parentElement)}}}),[Pe,gt]),(0,c.useEffect)((function(){if(Pe){for(var e=[],t=function(){var t=a()(i[n],2),o=t[0],r=t[1],l=s()({},o,(function(){wt(r)}));e.push(l),Pe.addKeyMap(l)},n=0,i=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(E,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Ie(k)}),[Pe,k]),(0,c.useEffect)((function(){Pe&&_&&Pe.focus()}),[Pe,_]),(0,c.useEffect)((function(){if(Re&&Pe){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Pe.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Pe,Re]),(0,c.useEffect)((function(){if(Pe&&K){var e=function(e,t){K(e,t)};return Pe.on("beforeChange",e),function(){Pe.off("beforeChange",e)}}}),[Pe,K]),(0,c.useEffect)((function(){if(Pe&&q){var e=function(){q(Pe.getValue())};return Pe.on("blur",e),function(){Pe.off("blur",e)}}}),[Pe,q]),(0,c.useEffect)((function(){if(Pe){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(Z?i(n,_t(n)):i(n))};return Pe.on("change",e),function(){Pe.off("change",e)}}}),[Pe,i]),(0,c.useEffect)((function(){if(Pe)if(null==n)Pe.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Pe.getValue()&&(Pe.setValue(n),Ae(n),Pe.setCursor(fe?1:Pe.lineCount(),0),window.scrollTo(0,e))}}),[Pe,n]);var wt=(0,c.useCallback)((function(e){var t=Pe.getCursor(),n=Pe.getSelection(),i=n.split("\n");switch(e){case"bold":return Pe.replaceSelection("**"+n+"**"),""===n&&Pe.setCursor(t.line,t.ch+2),Pe.focus();case"italic":return Pe.replaceSelection("*"+n+"*"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"code":return Pe.replaceSelection("`"+n+"`"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"inline-latex":return qe("inline-latex"),Pe.focus();case"latex":return Pe.replaceSelection("```latex\n"+n+"\n```"),Pe.setCursor(t.line+1,n.length+1),Pe.focus();case"line-break":return Pe.replaceSelection("
\n"),Pe.focus();case"list-ul":return""===n?Pe.replaceSelection("- "+n):Pe.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Pe.focus();case"list-ol":return""===n?Pe.replaceSelection("1. "+n):Pe.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Pe.focus();case"add-null-ch":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("▁"),Pe.focus();case"add-signal":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("@▁@"),Pe.focus();case"add-multiple":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection(me),Pe.focus();case"inster-template-1":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Pe.focus();case"eraser":return Pe.setValue(""),Pe.focus();case"trigger-watch":return Ie(!Re),Pe.focus();case"trigger-full-screen":return ze(!Fe),Pe.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Pe,Re,Fe]),vt=(0,c.useCallback)((function(e,t){var n,i,o,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Pe.replaceSelection("[".concat(l,"](").concat(s,")")),Pe.focus();case ue:var c=e.language,u=e.content;return Pe.replaceSelection(["```"+c,u,"```"].join("\n")),Pe.focus();case"maths-latex":for(var d=atob(e),f=new Uint8Array(d.length),p=0;p-1||null==w||!w.type?g?Pe.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Pe.replaceSelection("![,](".concat(m,")")):(null==w||null===(r=w.type)||void 0===r?void 0:r.indexOf("video"))>-1?Pe.replaceSelection('')):(null==w||null===(a=w.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Pe.replaceSelection('').concat(w.name,"")):ge.includes(v)?Pe.replaceSelection('').concat(w.name,"")):Pe.replaceSelection("[".concat(w.name,"](").concat(oe.Z.API_SERVER).concat(m,")")),Pe.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},i=ht.current,o=!1,r=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Pe,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:we(l),height:we(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(Z){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>o-20&&i",children:[(0,T.jsx)(g.Z.Item,{children:(0,T.jsx)(p.Link,{to:"".concat(c.first_category_url),children:null==c||null===(t=c.course)||void 0===t?void 0:t.course_name})}),(0,T.jsx)(g.Z.Item,{children:(0,T.jsx)(p.Link,{to:"/classrooms/".concat(l.coursesId,"/graduation_tasks/").concat(l.categoryId),children:"毕设任务"})}),(0,T.jsx)(g.Z.Item,{children:"新建"})]})}),(0,T.jsx)("aside",{className:[k.title,"mt20"].join(" "),children:(0,T.jsxs)(w.Z,{style:{width:"100%"},children:[(0,T.jsx)(v.Z,{flex:"1",children:(0,T.jsx)("strong",{className:"font20 ml5",children:"新建毕设任务"})}),(0,T.jsx)(v.Z,{children:(0,T.jsx)(p.Link,{className:"font16 c-light-black",to:"/classrooms/".concat(l.coursesId,"/exercise"),children:"返回"})})]})})]}),(0,T.jsx)("section",{className:[k.bg,"pt30","pl30","pr30","pb30","mt20"].join(" "),children:(0,T.jsxs)(h.Z,{layout:"vertical",form:j,scrollToFirstError:!0,onFinish:function(){var e=s()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:P();case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,T.jsx)(h.Z.Item,{name:"task_type",label:"类型:",rules:[{required:!0,message:"请选择任务类型"}],children:(0,T.jsxs)(b.default,{size:"middle",placeholder:"请选择任务类型",style:{width:200},children:[(0,T.jsx)(b.default.Option,{value:1,children:"普通"}),(0,T.jsx)(b.default.Option,{value:2,children:"分组"})]})}),(0,T.jsx)(h.Z.Item,{name:"name",label:"选题名称:",rules:[{required:!0,message:"请输入任务标题"}],children:(0,T.jsx)(y.Z,{maxLength:60,size:"middle",suffix:"0/60",placeholder:"任务标题,最大限制60个字符"})}),(0,T.jsx)(x.Z,{}),(0,T.jsx)(h.Z.Item,{label:"内容",name:"description",rules:[{required:!0,message:"请输入内容"}],children:(0,T.jsx)(f.Z,{watch:!0,placeholder:"请任务内容说明,最大限制5000个字符"})}),(0,T.jsx)(w.Z,{children:(0,T.jsx)(v.Z,{children:(0,T.jsx)(h.Z.Item,{name:"attachment_ids",children:(0,T.jsx)(B.Z,{})})})})]})}),(0,T.jsxs)("aside",{className:k.btns,children:[(0,T.jsx)(_.ZP,{type:"primary",onClick:function(){j.submit()},children:"保存"}),(0,T.jsx)(p.Link,{to:"/classrooms/".concat(l.coursesId,"/graduation_tasks/").concat(l.categoryId),children:"取消"})]})]})}))},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return p},jP:function(){return f},rO:function(){return c}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return(0,l.v_)("libraries.json",e)}function p(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__Graduation__Tasks__Add__index.8a24c667.async.js b/p__Classrooms__Lists__Graduation__Tasks__Add__index.8a24c667.async.js new file mode 100644 index 0000000000..ee6dbb4adb --- /dev/null +++ b/p__Classrooms__Lists__Graduation__Tasks__Add__index.8a24c667.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[74795,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,o=!1,r=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,R(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,O(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,o="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var C=function(e){return e&&"false"!==e},j=function(t,n,i){x(m)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!w)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(m)<=4.4)C(n.showToolBar)&&(n.height-=7),C(n.showAlgebraInput)&&(n.height-=37),n.width<605&&C(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(C(n.showToolBar)||C(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=C(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},b||v.appendChild(_)):r.appendChild(_),v.appendChild(r),b||t.appendChild(v),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),I("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(m)<5&&(e.className+=" geogebraweb")):k(e,t)}if(o){scriptLoadStarted=!0;for(var B=0;B0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):j(o,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=i,j(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",o.appendChild(a)}return o.appendChild(c),o},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,t){if(m=e,t)R(m,!0);else{var r,a,l=!o;if(l){var s=x(m);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?r+m:"https://www.geogebra.org/apps/5.2.814.0/",G)if(m.slice(-1*G[u].length)===G[u]||m.slice(-1*(G[u].length+1))===G[u]+"/")return void R(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||C(n.showToolBar)||C(n.showMenuBar)||C(n.showAlgebraInput)||C(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",R(a,!1)}},R=function(e,t){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===t&&(t=-1===e.indexOf("http")),p=t,g="web.nocache.js",w=!1;var n=f.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",w=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var i=parseFloat(m);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),O("5.0",t))}},I=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function D(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&R(c,p),l=!0}return void 0!==n.material_id?S(D):D(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,i,o,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,f=0,p=0,h=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-m.width-m.left,p=u<=480?10:30):(p=m.left,f=u<=480?10:30),d=p+f)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(t-i.width)/2,r=(n-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],o=O;o0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var C=function(e){var t=e.value,n=e.onChange,i=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,T=e.title,C=void 0===T?"上传附件":T,j=e.showRemoveModal,P=void 0!==j&&j,N=e.accept,L=void 0===N?"":N,E=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,O=e.aloneClear,R=void 0!==O&&O,I=e.realTimeRemove,D=void 0===I||I,Z=e.uploadText,F=e.setFileProgress,z=e.showFileProgress,H=(0,p.useState)(!1),W=f()(H,2),V=W[0],q=W[1],U=(0,p.useState)(t||[]),K=f()(U,2),Y=K[0],J=K[1],X=(0,p.useState)(1),$=f()(X,2),Q=$[0],ee=$[1];(0,p.useEffect)((function(){t&&(1===Q&&J(u()(t)),ee(2),G===(null==t?void 0:t.length)&&q(!0))}),[t]);var te=function(){setTimeout((function(){Y.pop(),J(u()(Y))}),500)};z&&F(Y.some((function(e){return"uploading"===e.status})));var ne,ie={multiple:!0,disabled:V,accept:L,withCredentials:!0,fileList:Y,beforeUpload:function(e,t){var n=e.size/1024/1024;return Y.concat(t).length>G?(Y.pop(),J(u()(Y)),m.ZP.error("最多只能上传".concat(G,"个文件")),R?Promise.reject():(te(),!1)):n=G?q(!0):q(!1),J(u()(Y)),Y=Y.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,Y),n(Y)):m.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(ne=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(D){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!P){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return ne.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(B,s()(s()({},ie),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!M&&(0,y.jsxs)(h.Z,s()(s()({},ie),{},{children:[(0,y.jsxs)(w.ZP,{disabled:V,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),C]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:Z||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return w}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),f=n.n(d),p=(n(80443),n(90630),n(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function w(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,l.useEffect)((function(){h&&h.setOption("mode",i)}),[h,i]),(0,l.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,l.useEffect)((function(){if(c.current&&!h){var e=f().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,l.useState)("python"),r=a()(i,2),d=r[0],f=r[1];return(0,p.jsxs)(c.Z,o()(o()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){f(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(w,{mode:d})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var i=n(91232),o=n.n(i),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),f=n(76374),p=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),w=n.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,o=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(o)},children:[(0,h.jsx)("i",{className:"".concat(i)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(v,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,w()(w()({},e),{},{onActionCallback:o})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),B={labelCol:{span:4},wrapperCol:{span:20}},T=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,w()(w()({},B),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},C=n(73145),j=n(28486),P=n(95237),N=n(36709),L=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,h.jsx)(P.Z,{style:{height:"100vh"},children:(0,h.jsx)(N.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),M=n.n(E),A=n(41498),G=n.n(A),O=n(37205),R=n.n(O),I=n(12378);function D(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(D,go.CommandHandler),D.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},D.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},D.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},D.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},D.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},D.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},D.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},D.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))i.y?1:n.xi.x?1:0})),t},D.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},D.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(D.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(D.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 Z=D,F=(n(41034),n(85160)),z=n(43418),H=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=I;var U=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),f=d[0],p=d[1],m=function(){var e=G()(M()().mark((function e(){var t,o;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(P.Z,{children:[(0,h.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(H.Z,{onClick:function(){l.current=!l.current,p(f+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(F.FI,{initDiagram:function(){var e=I.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",f="#fffcd5",p="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",w="#b3e6b3",v="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var o=n.part.adornedPart,r=(new I.Point).setRectSpot(o.actualBounds,t);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var l={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(I.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?25:18,height:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(t){return e(I.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(I.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(u,"fill"),_(f,"fill"),_(p,"fill"),_(h,"fill"))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(g,"fill"),_(w,"fill"),_(m,"fill"),_(v,"fill")))]}function S(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function B(t,n){return n||(n="thickness"),e(I.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function T(t,n){return n||(n="dash"),e(I.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function C(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",B(1),B(2),B(3),B(4))),e("ContextMenuButton",e(I.Panel,"Horizontal",T(null),T([2,4]),T([4,4])))]}function j(t,n){return n||(n="figure"),e(I.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function P(t){return e(I.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(I.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function L(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",I.Spot.stringify(I.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var i=0,o=I.Spot.RightSide;t.equals(I.Spot.Top)?(i=270,o=I.Spot.TopSide):t.equals(I.Spot.Left)?(i=180,o=I.Spot.LeftSide):t.equals(I.Spot.Bottom)&&(i=90,o=I.Spot.BottomSide),n||(i-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",I.Spot.stringify(o)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return i.current=new I.Diagram(o.current,{padding:20,grid:e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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(Z),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center,locationObjectName:"SHAPE",desiredSize:new I.Size(120,60),minSize:new I.Size(40,40),resizable:!0,resizeCellSize:new I.Size(10,10),rotatable:!0},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),new I.Binding("desiredSize","size",I.Size.parse).makeTwoWay(I.Size.stringify),e(I.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("figure"),new I.Binding("fill"),new I.Binding("stroke","borderColor"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(I.TextBlock,{margin:1,textAlign:"center",overflow:I.TextBlock.OverflowEllipsis,editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(I.Panel,"Vertical",{maxSize:new I.Size(200,NaN)},e(I.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new I.Binding("text")),e(I.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new I.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Placeholder,{padding:10}),b(I.Spot.Top,"TriangleUp"),b(I.Spot.Left,"TriangleLeft"),b(I.Spot.Right,"TriangleRight"),b(I.Spot.Bottom,"TriangleDown"),y({alignment:new I.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(I.Panel,"Horizontal",j("Rectangle"),j("RoundedRectangle"),j("Ellipse"),j("Diamond"))),e("ContextMenuButton",e(I.Panel,"Horizontal",j("Parallelogram2"),j("ManualOperation"),j("Procedure"),j("Cylinder1"))),e("ContextMenuButton",e(I.Panel,"Horizontal",j("Terminator"),j("CreateRequest"),j("Document"),j("TriangleDown"))),k(),S(),C()),i.current.groupTemplate=e(I.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:I.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.Panel,"Auto",{name:"BODY"},e(I.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("fill"),new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Placeholder,{background:"transparent",margin:20})),e(I.TextBlock,{alignment:I.Spot.Top,alignmentFocus:I.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new I.Binding("text"),new I.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Panel,"Auto",e(I.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(I.Placeholder,{margin:1.5})),y({alignment:I.Spot.TopRight,alignmentFocus:I.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),C()),i.current.linkTemplate=e(I.Link,{layerName:"Foreground",routing:I.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new I.Binding("fromSpot","fromSpot",I.Spot.parse),new I.Binding("toSpot","toSpot",I.Spot.parse),new I.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("points").makeTwoWay(),e(I.Shape,{strokeWidth:2},new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,0),segmentOrientation:I.Link.OrientAlong,alignmentFocus:I.Spot.Right,figure:"circle",width:10,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 1===e}))),e(I.Shape,{segmentIndex:-1,segmentOffset:new I.Point(-10,6),segmentOrientation:I.Link.OrientPlus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return e>=1})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,-6),segmentOrientation:I.Link.OrientMinus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 2===e})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.TextBlock,{alignmentFocus:new I.Spot(0,1,-4,0),editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(I.Adornment,e(I.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:P(2)},new I.Binding("pathPattern","thickness",P)),y({alignmentFocus:new I.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",S(),C(),e("ContextMenuButton",e(I.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(I.Panel,"Horizontal",e(I.Panel,"Spot",L(!1),E(I.Spot.Top,!1),E(I.Spot.Left,!1),E(I.Spot.Right,!1),E(I.Spot.Bottom,!1)),e(I.Panel,"Spot",{margin:new I.Margin(0,0,0,2)},L(!0),E(I.Spot.Top,!0),E(I.Spot.Left,!0),E(I.Spot.Right,!0),E(I.Spot.Bottom,!0))))),new I.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(I.Link,{locationSpot:I.Spot.Center,selectionAdornmentTemplate:e(I.Adornment,"Link",{locationSpot:I.Spot.Center},e(I.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(I.Shape,{toArrow:"Standard",stroke:null}))},{routing:I.Link.AvoidsNodes,curve:I.Link.JumpOver,corner:5,toShortLength:4},new I.Binding("points"),e(I.Shape,{isPanelMain:!0,strokeWidth:2}),e(I.Shape,{toArrow:"Standard",stroke:null})),model:new I.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(R()(I.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center},new I.Binding("location","location",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.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 I.Binding("stroke").makeTwoWay(),new I.Binding("fill").makeTwoWay(),new I.Binding("figure")),e(I.TextBlock,{margin:new I.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new I.Size(16,16),maxSize:new I.Size(10,NaN),textAlign:"center",editable:!0},new I.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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,h.jsx)("div",{ref:o})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Y.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Y.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(_.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,o=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),f=d[0],p=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){m.current.appName=f?"3D":"graphing",s.current.inject("applet_container")}),[f]),(0,c.useEffect)((function(){p(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(P.Z,{align:"middle",children:[(0,h.jsx)(H.Z,{flex:1,children:(0,h.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,h.jsx)(H.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),oe=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},he=n(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function we(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ve=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},ve+"-B","bold"),ve+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,w=e.miniToolbar,v=void 0!==w&&w,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,B=e.mode,P=void 0===B?"markdown":B,N=e.id,E=void 0===N?"markdown-editor-id":N,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,O=void 0!==G&&G,R=e.showNullButton,I=void 0!==R&&R,D=e.showNullProgramButton,Z=void 0!==D&&D,F=e.hidetoolBar,H=void 0!==F&&F,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,fe=void 0!==te&&te,ve=e.disabledFill,xe=void 0!==ve&&ve,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,Be=void 0===Se?"":Se,Te=e.extraUse,Ce=(0,c.useState)(null),je=a()(Ce,2),Pe=je[0],Ne=je[1],Le=(0,c.useState)(n),Ee=a()(Le,2),Me=Ee[0],Ae=Ee[1],Ge=(0,c.useState)(k),Oe=a()(Ge,2),Re=Oe[0],Ie=Oe[1],De=(0,c.useState)(V),Ze=a()(De,2),Fe=Ze[0],ze=Ze[1],He=(0,c.useState)(""),We=a()(He,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),ot=(0,c.useState)(0),rt=a()(ot,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],ft=(0,c.useRef)(),pt=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(Be),null==Pe||Pe.setValue(Be),window.scrollTo(0,e)}),[Be]),(0,c.useEffect)((function(){null==Y||Y(Fe)}),[Fe]),(0,c.useEffect)((function(){if(ft.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==P)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,j.I)(s,(function(e){var n,i,o;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(ft.current,{mode:P,lineNumbers:!v,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),o=n.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===me.indexOf(r))return null;if(console.log("change1:",t,e,o,i,s,a,l,r),s>=0&&i.ch-s<5){var u=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),fe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){pt.current}),[Qe,pt,Fe]);(0,c.useEffect)((function(){if(Pe){var e=function(){var e=new f.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Pe.setSize("100%","100%"),Pe.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(ft.current.parentElement),e}();return function(){var t,n;null!==(t=ft.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=ft.current)||void 0===n?void 0:n.parentElement)}}}),[Pe,gt]),(0,c.useEffect)((function(){if(Pe){for(var e=[],t=function(){var t=a()(i[n],2),o=t[0],r=t[1],l=s()({},o,(function(){wt(r)}));e.push(l),Pe.addKeyMap(l)},n=0,i=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(E,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Ie(k)}),[Pe,k]),(0,c.useEffect)((function(){Pe&&_&&Pe.focus()}),[Pe,_]),(0,c.useEffect)((function(){if(Re&&Pe){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Pe.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Pe,Re]),(0,c.useEffect)((function(){if(Pe&&K){var e=function(e,t){K(e,t)};return Pe.on("beforeChange",e),function(){Pe.off("beforeChange",e)}}}),[Pe,K]),(0,c.useEffect)((function(){if(Pe&&q){var e=function(){q(Pe.getValue())};return Pe.on("blur",e),function(){Pe.off("blur",e)}}}),[Pe,q]),(0,c.useEffect)((function(){if(Pe){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(Z?i(n,_t(n)):i(n))};return Pe.on("change",e),function(){Pe.off("change",e)}}}),[Pe,i]),(0,c.useEffect)((function(){if(Pe)if(null==n)Pe.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Pe.getValue()&&(Pe.setValue(n),Ae(n),Pe.setCursor(fe?1:Pe.lineCount(),0),window.scrollTo(0,e))}}),[Pe,n]);var wt=(0,c.useCallback)((function(e){var t=Pe.getCursor(),n=Pe.getSelection(),i=n.split("\n");switch(e){case"bold":return Pe.replaceSelection("**"+n+"**"),""===n&&Pe.setCursor(t.line,t.ch+2),Pe.focus();case"italic":return Pe.replaceSelection("*"+n+"*"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"code":return Pe.replaceSelection("`"+n+"`"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"inline-latex":return qe("inline-latex"),Pe.focus();case"latex":return Pe.replaceSelection("```latex\n"+n+"\n```"),Pe.setCursor(t.line+1,n.length+1),Pe.focus();case"line-break":return Pe.replaceSelection("
\n"),Pe.focus();case"list-ul":return""===n?Pe.replaceSelection("- "+n):Pe.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Pe.focus();case"list-ol":return""===n?Pe.replaceSelection("1. "+n):Pe.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Pe.focus();case"add-null-ch":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("▁"),Pe.focus();case"add-signal":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("@▁@"),Pe.focus();case"add-multiple":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection(me),Pe.focus();case"inster-template-1":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Pe.focus();case"eraser":return Pe.setValue(""),Pe.focus();case"trigger-watch":return Ie(!Re),Pe.focus();case"trigger-full-screen":return ze(!Fe),Pe.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Pe,Re,Fe]),vt=(0,c.useCallback)((function(e,t){var n,i,o,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Pe.replaceSelection("[".concat(l,"](").concat(s,")")),Pe.focus();case ue:var c=e.language,u=e.content;return Pe.replaceSelection(["```"+c,u,"```"].join("\n")),Pe.focus();case"maths-latex":for(var d=atob(e),f=new Uint8Array(d.length),p=0;p-1||null==w||!w.type?g?Pe.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Pe.replaceSelection("![,](".concat(m,")")):(null==w||null===(r=w.type)||void 0===r?void 0:r.indexOf("video"))>-1?Pe.replaceSelection('')):(null==w||null===(a=w.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Pe.replaceSelection('').concat(w.name,"")):ge.includes(v)?Pe.replaceSelection('').concat(w.name,"")):Pe.replaceSelection("[".concat(w.name,"](").concat(oe.Z.API_SERVER).concat(m,")")),Pe.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},i=ht.current,o=!1,r=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Pe,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:we(l),height:we(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(Z){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>o-20&&i",children:[(0,T.jsx)(g.Z.Item,{children:(0,T.jsx)(p.Link,{to:"".concat(c.first_category_url),children:null==c||null===(t=c.course)||void 0===t?void 0:t.course_name})}),(0,T.jsx)(g.Z.Item,{children:(0,T.jsx)(p.Link,{to:"/classrooms/".concat(l.coursesId,"/graduation_tasks/").concat(l.categoryId),children:"毕设任务"})}),(0,T.jsx)(g.Z.Item,{children:"新建"})]})}),(0,T.jsx)("aside",{className:[k.title,"mt20"].join(" "),children:(0,T.jsxs)(w.Z,{style:{width:"100%"},children:[(0,T.jsx)(v.Z,{flex:"1",children:(0,T.jsx)("strong",{className:"font20 ml5",children:"新建毕设任务"})}),(0,T.jsx)(v.Z,{children:(0,T.jsx)(p.Link,{className:"font16 c-light-black",to:"/classrooms/".concat(l.coursesId,"/exercise"),children:"返回"})})]})})]}),(0,T.jsx)("section",{className:[k.bg,"pt30","pl30","pr30","pb30","mt20"].join(" "),children:(0,T.jsxs)(h.Z,{layout:"vertical",form:j,scrollToFirstError:!0,onFinish:function(){var e=s()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:P();case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,T.jsx)(h.Z.Item,{name:"task_type",label:"类型:",rules:[{required:!0,message:"请选择任务类型"}],children:(0,T.jsxs)(b.default,{size:"middle",placeholder:"请选择任务类型",style:{width:200},children:[(0,T.jsx)(b.default.Option,{value:1,children:"普通"}),(0,T.jsx)(b.default.Option,{value:2,children:"分组"})]})}),(0,T.jsx)(h.Z.Item,{name:"name",label:"选题名称:",rules:[{required:!0,message:"请输入任务标题"}],children:(0,T.jsx)(y.Z,{maxLength:60,size:"middle",suffix:"0/60",placeholder:"任务标题,最大限制60个字符"})}),(0,T.jsx)(x.Z,{}),(0,T.jsx)(h.Z.Item,{label:"内容",name:"description",rules:[{required:!0,message:"请输入内容"}],children:(0,T.jsx)(f.Z,{watch:!0,placeholder:"请任务内容说明,最大限制5000个字符"})}),(0,T.jsx)(w.Z,{children:(0,T.jsx)(v.Z,{children:(0,T.jsx)(h.Z.Item,{name:"attachment_ids",children:(0,T.jsx)(B.Z,{})})})})]})}),(0,T.jsxs)("aside",{className:k.btns,children:[(0,T.jsx)(_.ZP,{type:"primary",onClick:function(){j.submit()},children:"保存"}),(0,T.jsx)(p.Link,{to:"/classrooms/".concat(l.coursesId,"/graduation_tasks/").concat(l.categoryId),children:"取消"})]})]})}))},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return p},jP:function(){return f},rO:function(){return c}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return(0,l.v_)("libraries.json",e)}function p(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__Graduation__Tasks__Edit__index.4cd3f36a.async.js b/p__Classrooms__Lists__Graduation__Tasks__Edit__index.4cd3f36a.async.js new file mode 100644 index 0000000000..48421726cc --- /dev/null +++ b/p__Classrooms__Lists__Graduation__Tasks__Edit__index.4cd3f36a.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[20026,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,o=!1,r=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,R(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,O(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,o="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var C=function(e){return e&&"false"!==e},j=function(t,n,i){x(m)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!w)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(m)<=4.4)C(n.showToolBar)&&(n.height-=7),C(n.showAlgebraInput)&&(n.height-=37),n.width<605&&C(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(C(n.showToolBar)||C(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=C(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},b||v.appendChild(_)):r.appendChild(_),v.appendChild(r),b||t.appendChild(v),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),I("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(m)<5&&(e.className+=" geogebraweb")):k(e,t)}if(o){scriptLoadStarted=!0;for(var B=0;B0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):j(o,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=i,j(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",o.appendChild(a)}return o.appendChild(c),o},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,t){if(m=e,t)R(m,!0);else{var r,a,l=!o;if(l){var s=x(m);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?r+m:"https://www.geogebra.org/apps/5.2.814.0/",G)if(m.slice(-1*G[u].length)===G[u]||m.slice(-1*(G[u].length+1))===G[u]+"/")return void R(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||C(n.showToolBar)||C(n.showMenuBar)||C(n.showAlgebraInput)||C(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",R(a,!1)}},R=function(e,t){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===t&&(t=-1===e.indexOf("http")),p=t,g="web.nocache.js",w=!1;var n=f.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",w=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var i=parseFloat(m);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),O("5.0",t))}},I=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function Z(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&R(c,p),l=!0}return void 0!==n.material_id?S(Z):Z(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,i,o,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,f=0,p=0,h=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-m.width-m.left,p=u<=480?10:30):(p=m.left,f=u<=480?10:30),d=p+f)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(t-i.width)/2,r=(n-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],o=O;o0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var C=function(e){var t=e.value,n=e.onChange,i=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,T=e.title,C=void 0===T?"上传附件":T,j=e.showRemoveModal,P=void 0!==j&&j,N=e.accept,L=void 0===N?"":N,E=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,O=e.aloneClear,R=void 0!==O&&O,I=e.realTimeRemove,Z=void 0===I||I,D=e.uploadText,F=e.setFileProgress,z=e.showFileProgress,H=(0,p.useState)(!1),W=f()(H,2),V=W[0],q=W[1],U=(0,p.useState)(t||[]),K=f()(U,2),Y=K[0],J=K[1],X=(0,p.useState)(1),$=f()(X,2),Q=$[0],ee=$[1];(0,p.useEffect)((function(){t&&(1===Q&&J(u()(t)),ee(2),G===(null==t?void 0:t.length)&&q(!0))}),[t]);var te=function(){setTimeout((function(){Y.pop(),J(u()(Y))}),500)};z&&F(Y.some((function(e){return"uploading"===e.status})));var ne,ie={multiple:!0,disabled:V,accept:L,withCredentials:!0,fileList:Y,beforeUpload:function(e,t){var n=e.size/1024/1024;return Y.concat(t).length>G?(Y.pop(),J(u()(Y)),m.ZP.error("最多只能上传".concat(G,"个文件")),R?Promise.reject():(te(),!1)):n=G?q(!0):q(!1),J(u()(Y)),Y=Y.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,Y),n(Y)):m.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(ne=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Z){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!P){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return ne.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(B,s()(s()({},ie),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!M&&(0,y.jsxs)(h.Z,s()(s()({},ie),{},{children:[(0,y.jsxs)(w.ZP,{disabled:V,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),C]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:D||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return w}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),f=n.n(d),p=(n(80443),n(90630),n(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function w(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,l.useEffect)((function(){h&&h.setOption("mode",i)}),[h,i]),(0,l.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,l.useEffect)((function(){if(c.current&&!h){var e=f().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,l.useState)("python"),r=a()(i,2),d=r[0],f=r[1];return(0,p.jsxs)(c.Z,o()(o()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){f(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(w,{mode:d})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var i=n(91232),o=n.n(i),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),f=n(76374),p=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),w=n.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,o=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(o)},children:[(0,h.jsx)("i",{className:"".concat(i)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(v,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,w()(w()({},e),{},{onActionCallback:o})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),B={labelCol:{span:4},wrapperCol:{span:20}},T=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,w()(w()({},B),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},C=n(73145),j=n(28486),P=n(95237),N=n(36709),L=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,h.jsx)(P.Z,{style:{height:"100vh"},children:(0,h.jsx)(N.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),M=n.n(E),A=n(41498),G=n.n(A),O=n(37205),R=n.n(O),I=n(12378);function Z(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Z,go.CommandHandler),Z.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},Z.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},Z.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},Z.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},Z.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},Z.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},Z.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},Z.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))i.y?1:n.xi.x?1:0})),t},Z.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},Z.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(Z.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(Z.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 D=Z,F=(n(41034),n(85160)),z=n(43418),H=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=I;var U=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),f=d[0],p=d[1],m=function(){var e=G()(M()().mark((function e(){var t,o;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(P.Z,{children:[(0,h.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(H.Z,{onClick:function(){l.current=!l.current,p(f+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(F.FI,{initDiagram:function(){var e=I.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",f="#fffcd5",p="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",w="#b3e6b3",v="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var o=n.part.adornedPart,r=(new I.Point).setRectSpot(o.actualBounds,t);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var l={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(I.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?25:18,height:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(t){return e(I.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(I.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(u,"fill"),_(f,"fill"),_(p,"fill"),_(h,"fill"))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(g,"fill"),_(w,"fill"),_(m,"fill"),_(v,"fill")))]}function S(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function B(t,n){return n||(n="thickness"),e(I.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function T(t,n){return n||(n="dash"),e(I.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function C(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",B(1),B(2),B(3),B(4))),e("ContextMenuButton",e(I.Panel,"Horizontal",T(null),T([2,4]),T([4,4])))]}function j(t,n){return n||(n="figure"),e(I.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function P(t){return e(I.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(I.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function L(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",I.Spot.stringify(I.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var i=0,o=I.Spot.RightSide;t.equals(I.Spot.Top)?(i=270,o=I.Spot.TopSide):t.equals(I.Spot.Left)?(i=180,o=I.Spot.LeftSide):t.equals(I.Spot.Bottom)&&(i=90,o=I.Spot.BottomSide),n||(i-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",I.Spot.stringify(o)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return i.current=new I.Diagram(o.current,{padding:20,grid:e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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(D),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center,locationObjectName:"SHAPE",desiredSize:new I.Size(120,60),minSize:new I.Size(40,40),resizable:!0,resizeCellSize:new I.Size(10,10),rotatable:!0},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),new I.Binding("desiredSize","size",I.Size.parse).makeTwoWay(I.Size.stringify),e(I.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("figure"),new I.Binding("fill"),new I.Binding("stroke","borderColor"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(I.TextBlock,{margin:1,textAlign:"center",overflow:I.TextBlock.OverflowEllipsis,editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(I.Panel,"Vertical",{maxSize:new I.Size(200,NaN)},e(I.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new I.Binding("text")),e(I.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new I.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Placeholder,{padding:10}),b(I.Spot.Top,"TriangleUp"),b(I.Spot.Left,"TriangleLeft"),b(I.Spot.Right,"TriangleRight"),b(I.Spot.Bottom,"TriangleDown"),y({alignment:new I.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(I.Panel,"Horizontal",j("Rectangle"),j("RoundedRectangle"),j("Ellipse"),j("Diamond"))),e("ContextMenuButton",e(I.Panel,"Horizontal",j("Parallelogram2"),j("ManualOperation"),j("Procedure"),j("Cylinder1"))),e("ContextMenuButton",e(I.Panel,"Horizontal",j("Terminator"),j("CreateRequest"),j("Document"),j("TriangleDown"))),k(),S(),C()),i.current.groupTemplate=e(I.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:I.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.Panel,"Auto",{name:"BODY"},e(I.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("fill"),new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Placeholder,{background:"transparent",margin:20})),e(I.TextBlock,{alignment:I.Spot.Top,alignmentFocus:I.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new I.Binding("text"),new I.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Panel,"Auto",e(I.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(I.Placeholder,{margin:1.5})),y({alignment:I.Spot.TopRight,alignmentFocus:I.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),C()),i.current.linkTemplate=e(I.Link,{layerName:"Foreground",routing:I.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new I.Binding("fromSpot","fromSpot",I.Spot.parse),new I.Binding("toSpot","toSpot",I.Spot.parse),new I.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("points").makeTwoWay(),e(I.Shape,{strokeWidth:2},new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,0),segmentOrientation:I.Link.OrientAlong,alignmentFocus:I.Spot.Right,figure:"circle",width:10,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 1===e}))),e(I.Shape,{segmentIndex:-1,segmentOffset:new I.Point(-10,6),segmentOrientation:I.Link.OrientPlus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return e>=1})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,-6),segmentOrientation:I.Link.OrientMinus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 2===e})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.TextBlock,{alignmentFocus:new I.Spot(0,1,-4,0),editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(I.Adornment,e(I.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:P(2)},new I.Binding("pathPattern","thickness",P)),y({alignmentFocus:new I.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",S(),C(),e("ContextMenuButton",e(I.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(I.Panel,"Horizontal",e(I.Panel,"Spot",L(!1),E(I.Spot.Top,!1),E(I.Spot.Left,!1),E(I.Spot.Right,!1),E(I.Spot.Bottom,!1)),e(I.Panel,"Spot",{margin:new I.Margin(0,0,0,2)},L(!0),E(I.Spot.Top,!0),E(I.Spot.Left,!0),E(I.Spot.Right,!0),E(I.Spot.Bottom,!0))))),new I.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(I.Link,{locationSpot:I.Spot.Center,selectionAdornmentTemplate:e(I.Adornment,"Link",{locationSpot:I.Spot.Center},e(I.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(I.Shape,{toArrow:"Standard",stroke:null}))},{routing:I.Link.AvoidsNodes,curve:I.Link.JumpOver,corner:5,toShortLength:4},new I.Binding("points"),e(I.Shape,{isPanelMain:!0,strokeWidth:2}),e(I.Shape,{toArrow:"Standard",stroke:null})),model:new I.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(R()(I.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center},new I.Binding("location","location",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.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 I.Binding("stroke").makeTwoWay(),new I.Binding("fill").makeTwoWay(),new I.Binding("figure")),e(I.TextBlock,{margin:new I.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new I.Size(16,16),maxSize:new I.Size(10,NaN),textAlign:"center",editable:!0},new I.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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,h.jsx)("div",{ref:o})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Y.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Y.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(_.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,o=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),f=d[0],p=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){m.current.appName=f?"3D":"graphing",s.current.inject("applet_container")}),[f]),(0,c.useEffect)((function(){p(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(P.Z,{align:"middle",children:[(0,h.jsx)(H.Z,{flex:1,children:(0,h.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,h.jsx)(H.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),oe=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},he=n(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function we(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ve=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},ve+"-B","bold"),ve+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,w=e.miniToolbar,v=void 0!==w&&w,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,B=e.mode,P=void 0===B?"markdown":B,N=e.id,E=void 0===N?"markdown-editor-id":N,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,O=void 0!==G&&G,R=e.showNullButton,I=void 0!==R&&R,Z=e.showNullProgramButton,D=void 0!==Z&&Z,F=e.hidetoolBar,H=void 0!==F&&F,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,fe=void 0!==te&&te,ve=e.disabledFill,xe=void 0!==ve&&ve,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,Be=void 0===Se?"":Se,Te=e.extraUse,Ce=(0,c.useState)(null),je=a()(Ce,2),Pe=je[0],Ne=je[1],Le=(0,c.useState)(n),Ee=a()(Le,2),Me=Ee[0],Ae=Ee[1],Ge=(0,c.useState)(k),Oe=a()(Ge,2),Re=Oe[0],Ie=Oe[1],Ze=(0,c.useState)(V),De=a()(Ze,2),Fe=De[0],ze=De[1],He=(0,c.useState)(""),We=a()(He,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),ot=(0,c.useState)(0),rt=a()(ot,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],ft=(0,c.useRef)(),pt=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(Be),null==Pe||Pe.setValue(Be),window.scrollTo(0,e)}),[Be]),(0,c.useEffect)((function(){null==Y||Y(Fe)}),[Fe]),(0,c.useEffect)((function(){if(ft.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==P)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,j.I)(s,(function(e){var n,i,o;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(ft.current,{mode:P,lineNumbers:!v,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),o=n.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===me.indexOf(r))return null;if(console.log("change1:",t,e,o,i,s,a,l,r),s>=0&&i.ch-s<5){var u=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),fe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){pt.current}),[Qe,pt,Fe]);(0,c.useEffect)((function(){if(Pe){var e=function(){var e=new f.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Pe.setSize("100%","100%"),Pe.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(ft.current.parentElement),e}();return function(){var t,n;null!==(t=ft.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=ft.current)||void 0===n?void 0:n.parentElement)}}}),[Pe,gt]),(0,c.useEffect)((function(){if(Pe){for(var e=[],t=function(){var t=a()(i[n],2),o=t[0],r=t[1],l=s()({},o,(function(){wt(r)}));e.push(l),Pe.addKeyMap(l)},n=0,i=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(E,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Ie(k)}),[Pe,k]),(0,c.useEffect)((function(){Pe&&_&&Pe.focus()}),[Pe,_]),(0,c.useEffect)((function(){if(Re&&Pe){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Pe.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Pe,Re]),(0,c.useEffect)((function(){if(Pe&&K){var e=function(e,t){K(e,t)};return Pe.on("beforeChange",e),function(){Pe.off("beforeChange",e)}}}),[Pe,K]),(0,c.useEffect)((function(){if(Pe&&q){var e=function(){q(Pe.getValue())};return Pe.on("blur",e),function(){Pe.off("blur",e)}}}),[Pe,q]),(0,c.useEffect)((function(){if(Pe){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(D?i(n,_t(n)):i(n))};return Pe.on("change",e),function(){Pe.off("change",e)}}}),[Pe,i]),(0,c.useEffect)((function(){if(Pe)if(null==n)Pe.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Pe.getValue()&&(Pe.setValue(n),Ae(n),Pe.setCursor(fe?1:Pe.lineCount(),0),window.scrollTo(0,e))}}),[Pe,n]);var wt=(0,c.useCallback)((function(e){var t=Pe.getCursor(),n=Pe.getSelection(),i=n.split("\n");switch(e){case"bold":return Pe.replaceSelection("**"+n+"**"),""===n&&Pe.setCursor(t.line,t.ch+2),Pe.focus();case"italic":return Pe.replaceSelection("*"+n+"*"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"code":return Pe.replaceSelection("`"+n+"`"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"inline-latex":return qe("inline-latex"),Pe.focus();case"latex":return Pe.replaceSelection("```latex\n"+n+"\n```"),Pe.setCursor(t.line+1,n.length+1),Pe.focus();case"line-break":return Pe.replaceSelection("
\n"),Pe.focus();case"list-ul":return""===n?Pe.replaceSelection("- "+n):Pe.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Pe.focus();case"list-ol":return""===n?Pe.replaceSelection("1. "+n):Pe.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Pe.focus();case"add-null-ch":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("▁"),Pe.focus();case"add-signal":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("@▁@"),Pe.focus();case"add-multiple":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection(me),Pe.focus();case"inster-template-1":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Pe.focus();case"eraser":return Pe.setValue(""),Pe.focus();case"trigger-watch":return Ie(!Re),Pe.focus();case"trigger-full-screen":return ze(!Fe),Pe.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Pe,Re,Fe]),vt=(0,c.useCallback)((function(e,t){var n,i,o,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Pe.replaceSelection("[".concat(l,"](").concat(s,")")),Pe.focus();case ue:var c=e.language,u=e.content;return Pe.replaceSelection(["```"+c,u,"```"].join("\n")),Pe.focus();case"maths-latex":for(var d=atob(e),f=new Uint8Array(d.length),p=0;p-1||null==w||!w.type?g?Pe.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Pe.replaceSelection("![,](".concat(m,")")):(null==w||null===(r=w.type)||void 0===r?void 0:r.indexOf("video"))>-1?Pe.replaceSelection('')):(null==w||null===(a=w.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Pe.replaceSelection('').concat(w.name,"")):ge.includes(v)?Pe.replaceSelection('').concat(w.name,"")):Pe.replaceSelection("[".concat(w.name,"](").concat(oe.Z.API_SERVER).concat(m,")")),Pe.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},i=ht.current,o=!1,r=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Pe,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:we(l),height:we(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(D){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>o-20&&i",children:[(0,T.jsx)(g.Z.Item,{children:(0,T.jsx)(p.Link,{to:"".concat(c.first_category_url),children:null==c||null===(t=c.course)||void 0===t?void 0:t.course_name})}),(0,T.jsx)(g.Z.Item,{children:(0,T.jsx)(p.Link,{to:"/classrooms/".concat(l.coursesId,"/graduation_tasks/").concat(l.categoryId),children:"毕设任务"})}),(0,T.jsx)(g.Z.Item,{children:"编辑"})]})}),(0,T.jsx)("aside",{className:[k.title,"mt20"].join(" "),children:(0,T.jsxs)(w.Z,{style:{width:"100%"},children:[(0,T.jsx)(v.Z,{flex:"1",children:(0,T.jsx)("strong",{className:"font20 ml5",children:"编辑毕设任务"})}),(0,T.jsx)(v.Z,{children:(0,T.jsx)(p.Link,{className:"font16 c-light-black",to:"/classrooms/".concat(l.coursesId,"/exercise"),children:"返回"})})]})})]}),(0,T.jsx)("section",{className:[k.bg,"pt30","pl30","pr30","pb30","mt20"].join(" "),children:(0,T.jsxs)(h.Z,{layout:"vertical",form:j,scrollToFirstError:!0,onFinish:function(){var e=s()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:A();case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,T.jsx)(h.Z.Item,{name:"task_type",label:"类型:",rules:[{required:!0,message:"请选择任务类型"}],children:(0,T.jsxs)(b.default,{size:"middle",placeholder:"请选择任务类型",style:{width:200},children:[(0,T.jsx)(b.default.Option,{value:1,children:"普通"}),(0,T.jsx)(b.default.Option,{value:2,children:"分组"})]})}),(0,T.jsx)(h.Z.Item,{name:"name",label:"选题名称:",rules:[{required:!0,message:"请输入任务标题"}],children:(0,T.jsx)(y.Z,{maxLength:60,size:"middle",suffix:"0/60",placeholder:"任务标题,最大限制60个字符"})}),(0,T.jsx)(x.Z,{}),(0,T.jsx)(h.Z.Item,{label:"内容",name:"description",rules:[{required:!0,message:"请输入内容"}],children:(0,T.jsx)(f.Z,{watch:!0,defaultValue:null==M?void 0:M.description,placeholder:"请任务内容说明,最大限制5000个字符"})}),L&&(0,T.jsx)(w.Z,{children:(0,T.jsx)(v.Z,{children:(0,T.jsx)(h.Z.Item,{name:"attachment_ids",children:(0,T.jsx)(B.Z,{})})})})]})}),(0,T.jsxs)("aside",{className:k.btns,children:[(0,T.jsx)(_.ZP,{type:"primary",onClick:function(){j.submit()},children:"保存"}),(0,T.jsx)(p.Link,{to:"/classrooms/".concat(l.coursesId,"/graduation_tasks/").concat(l.categoryId),children:"取消"})]})]})}))},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return p},jP:function(){return f},rO:function(){return c}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return(0,l.v_)("libraries.json",e)}function p(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__Graduation__Tasks__Edit__index.647e2ca7.async.js b/p__Classrooms__Lists__Graduation__Tasks__Edit__index.647e2ca7.async.js deleted file mode 100644 index 4902426b9e..0000000000 --- a/p__Classrooms__Lists__Graduation__Tasks__Edit__index.647e2ca7.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[20026,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,o=!1,r=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,R(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,O(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,o="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var C=function(e){return e&&"false"!==e},j=function(t,n,i){x(m)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!w)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(m)<=4.4)C(n.showToolBar)&&(n.height-=7),C(n.showAlgebraInput)&&(n.height-=37),n.width<605&&C(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(C(n.showToolBar)||C(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=C(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},b||v.appendChild(_)):r.appendChild(_),v.appendChild(r),b||t.appendChild(v),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),I("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(m)<5&&(e.className+=" geogebraweb")):k(e,t)}if(o){scriptLoadStarted=!0;for(var B=0;B0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):j(o,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=i,j(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",o.appendChild(a)}return o.appendChild(c),o},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,t){if(m=e,t)R(m,!0);else{var r,a,l=!o;if(l){var s=x(m);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?r+m:"https://www.geogebra.org/apps/5.2.814.0/",G)if(m.slice(-1*G[u].length)===G[u]||m.slice(-1*(G[u].length+1))===G[u]+"/")return void R(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||C(n.showToolBar)||C(n.showMenuBar)||C(n.showAlgebraInput)||C(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",R(a,!1)}},R=function(e,t){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===t&&(t=-1===e.indexOf("http")),p=t,g="web.nocache.js",w=!1;var n=f.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",w=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var i=parseFloat(m);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),O("5.0",t))}},I=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function Z(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&R(c,p),l=!0}return void 0!==n.material_id?S(Z):Z(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,i,o,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,f=0,p=0,h=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-m.width-m.left,p=u<=480?10:30):(p=m.left,f=u<=480?10:30),d=p+f)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(t-i.width)/2,r=(n-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],o=O;o0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var C=function(e){var t=e.value,n=e.onChange,i=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,T=e.title,C=void 0===T?"上传附件":T,j=e.showRemoveModal,P=void 0!==j&&j,N=e.accept,L=void 0===N?"":N,E=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,O=e.aloneClear,R=void 0!==O&&O,I=e.realTimeRemove,Z=void 0===I||I,D=e.uploadText,F=(0,p.useState)(!1),z=f()(F,2),H=z[0],W=z[1],V=(0,p.useState)(t||[]),q=f()(V,2),U=q[0],K=q[1],Y=(0,p.useState)(1),J=f()(Y,2),X=J[0],$=J[1];(0,p.useEffect)((function(){t&&(1===X&&K(u()(t)),$(2),G===(null==t?void 0:t.length)&&W(!0))}),[t]);var Q,ee=function(){setTimeout((function(){U.pop(),K(u()(U))}),500)},te={multiple:!0,disabled:H,accept:L,withCredentials:!0,fileList:U,beforeUpload:function(e,t){var n=e.size/1024/1024;return U.concat(t).length>G?(U.pop(),K(u()(U)),m.ZP.error("最多只能上传".concat(G,"个文件")),R?Promise.reject():(ee(),!1)):n=G?W(!0):W(!1),K(u()(U)),U=U.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,U),n(U)):m.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(Q=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Z){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!P){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return Q.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(B,s()(s()({},te),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!M&&(0,y.jsxs)(h.Z,s()(s()({},te),{},{children:[(0,y.jsxs)(w.ZP,{disabled:H,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),C]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:D||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return w}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),f=n.n(d),p=(n(80443),n(90630),n(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function w(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,l.useEffect)((function(){h&&h.setOption("mode",i)}),[h,i]),(0,l.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,l.useEffect)((function(){if(c.current&&!h){var e=f().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,l.useState)("python"),r=a()(i,2),d=r[0],f=r[1];return(0,p.jsxs)(c.Z,o()(o()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){f(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(w,{mode:d})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var i=n(91232),o=n.n(i),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),f=n(76374),p=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),w=n.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,o=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(o)},children:[(0,h.jsx)("i",{className:"".concat(i)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(v,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,w()(w()({},e),{},{onActionCallback:o})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),B={labelCol:{span:4},wrapperCol:{span:20}},T=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,w()(w()({},B),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},C=n(73145),j=n(28486),P=n(95237),N=n(36709),L=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,h.jsx)(P.Z,{style:{height:"100vh"},children:(0,h.jsx)(N.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),M=n.n(E),A=n(41498),G=n.n(A),O=n(37205),R=n.n(O),I=n(12378);function Z(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Z,go.CommandHandler),Z.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},Z.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},Z.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},Z.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},Z.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},Z.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},Z.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},Z.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))i.y?1:n.xi.x?1:0})),t},Z.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},Z.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(Z.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(Z.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 D=Z,F=(n(41034),n(85160)),z=n(43418),H=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=I;var U=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),f=d[0],p=d[1],m=function(){var e=G()(M()().mark((function e(){var t,o;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(P.Z,{children:[(0,h.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(H.Z,{onClick:function(){l.current=!l.current,p(f+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(F.FI,{initDiagram:function(){var e=I.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",f="#fffcd5",p="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",w="#b3e6b3",v="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var o=n.part.adornedPart,r=(new I.Point).setRectSpot(o.actualBounds,t);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var l={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(I.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?25:18,height:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(t){return e(I.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(I.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(u,"fill"),_(f,"fill"),_(p,"fill"),_(h,"fill"))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(g,"fill"),_(w,"fill"),_(m,"fill"),_(v,"fill")))]}function S(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function B(t,n){return n||(n="thickness"),e(I.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function T(t,n){return n||(n="dash"),e(I.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function C(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",B(1),B(2),B(3),B(4))),e("ContextMenuButton",e(I.Panel,"Horizontal",T(null),T([2,4]),T([4,4])))]}function j(t,n){return n||(n="figure"),e(I.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function P(t){return e(I.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(I.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function L(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",I.Spot.stringify(I.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var i=0,o=I.Spot.RightSide;t.equals(I.Spot.Top)?(i=270,o=I.Spot.TopSide):t.equals(I.Spot.Left)?(i=180,o=I.Spot.LeftSide):t.equals(I.Spot.Bottom)&&(i=90,o=I.Spot.BottomSide),n||(i-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",I.Spot.stringify(o)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return i.current=new I.Diagram(o.current,{padding:20,grid:e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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(D),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center,locationObjectName:"SHAPE",desiredSize:new I.Size(120,60),minSize:new I.Size(40,40),resizable:!0,resizeCellSize:new I.Size(10,10),rotatable:!0},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),new I.Binding("desiredSize","size",I.Size.parse).makeTwoWay(I.Size.stringify),e(I.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("figure"),new I.Binding("fill"),new I.Binding("stroke","borderColor"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(I.TextBlock,{margin:1,textAlign:"center",overflow:I.TextBlock.OverflowEllipsis,editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(I.Panel,"Vertical",{maxSize:new I.Size(200,NaN)},e(I.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new I.Binding("text")),e(I.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new I.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Placeholder,{padding:10}),b(I.Spot.Top,"TriangleUp"),b(I.Spot.Left,"TriangleLeft"),b(I.Spot.Right,"TriangleRight"),b(I.Spot.Bottom,"TriangleDown"),y({alignment:new I.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(I.Panel,"Horizontal",j("Rectangle"),j("RoundedRectangle"),j("Ellipse"),j("Diamond"))),e("ContextMenuButton",e(I.Panel,"Horizontal",j("Parallelogram2"),j("ManualOperation"),j("Procedure"),j("Cylinder1"))),e("ContextMenuButton",e(I.Panel,"Horizontal",j("Terminator"),j("CreateRequest"),j("Document"),j("TriangleDown"))),k(),S(),C()),i.current.groupTemplate=e(I.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:I.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.Panel,"Auto",{name:"BODY"},e(I.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("fill"),new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Placeholder,{background:"transparent",margin:20})),e(I.TextBlock,{alignment:I.Spot.Top,alignmentFocus:I.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new I.Binding("text"),new I.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Panel,"Auto",e(I.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(I.Placeholder,{margin:1.5})),y({alignment:I.Spot.TopRight,alignmentFocus:I.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),C()),i.current.linkTemplate=e(I.Link,{layerName:"Foreground",routing:I.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new I.Binding("fromSpot","fromSpot",I.Spot.parse),new I.Binding("toSpot","toSpot",I.Spot.parse),new I.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("points").makeTwoWay(),e(I.Shape,{strokeWidth:2},new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,0),segmentOrientation:I.Link.OrientAlong,alignmentFocus:I.Spot.Right,figure:"circle",width:10,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 1===e}))),e(I.Shape,{segmentIndex:-1,segmentOffset:new I.Point(-10,6),segmentOrientation:I.Link.OrientPlus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return e>=1})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,-6),segmentOrientation:I.Link.OrientMinus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 2===e})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.TextBlock,{alignmentFocus:new I.Spot(0,1,-4,0),editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(I.Adornment,e(I.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:P(2)},new I.Binding("pathPattern","thickness",P)),y({alignmentFocus:new I.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",S(),C(),e("ContextMenuButton",e(I.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(I.Panel,"Horizontal",e(I.Panel,"Spot",L(!1),E(I.Spot.Top,!1),E(I.Spot.Left,!1),E(I.Spot.Right,!1),E(I.Spot.Bottom,!1)),e(I.Panel,"Spot",{margin:new I.Margin(0,0,0,2)},L(!0),E(I.Spot.Top,!0),E(I.Spot.Left,!0),E(I.Spot.Right,!0),E(I.Spot.Bottom,!0))))),new I.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(I.Link,{locationSpot:I.Spot.Center,selectionAdornmentTemplate:e(I.Adornment,"Link",{locationSpot:I.Spot.Center},e(I.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(I.Shape,{toArrow:"Standard",stroke:null}))},{routing:I.Link.AvoidsNodes,curve:I.Link.JumpOver,corner:5,toShortLength:4},new I.Binding("points"),e(I.Shape,{isPanelMain:!0,strokeWidth:2}),e(I.Shape,{toArrow:"Standard",stroke:null})),model:new I.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(R()(I.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center},new I.Binding("location","location",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.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 I.Binding("stroke").makeTwoWay(),new I.Binding("fill").makeTwoWay(),new I.Binding("figure")),e(I.TextBlock,{margin:new I.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new I.Size(16,16),maxSize:new I.Size(10,NaN),textAlign:"center",editable:!0},new I.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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,h.jsx)("div",{ref:o})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Y.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Y.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(_.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,o=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),f=d[0],p=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){m.current.appName=f?"3D":"graphing",s.current.inject("applet_container")}),[f]),(0,c.useEffect)((function(){p(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(P.Z,{align:"middle",children:[(0,h.jsx)(H.Z,{flex:1,children:(0,h.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,h.jsx)(H.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),oe=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},he=n(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function we(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ve=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},ve+"-B","bold"),ve+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,w=e.miniToolbar,v=void 0!==w&&w,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,B=e.mode,P=void 0===B?"markdown":B,N=e.id,E=void 0===N?"markdown-editor-id":N,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,O=void 0!==G&&G,R=e.showNullButton,I=void 0!==R&&R,Z=e.showNullProgramButton,D=void 0!==Z&&Z,F=e.hidetoolBar,H=void 0!==F&&F,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,fe=void 0!==te&&te,ve=e.disabledFill,xe=void 0!==ve&&ve,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,Be=void 0===Se?"":Se,Te=e.extraUse,Ce=(0,c.useState)(null),je=a()(Ce,2),Pe=je[0],Ne=je[1],Le=(0,c.useState)(n),Ee=a()(Le,2),Me=Ee[0],Ae=Ee[1],Ge=(0,c.useState)(k),Oe=a()(Ge,2),Re=Oe[0],Ie=Oe[1],Ze=(0,c.useState)(V),De=a()(Ze,2),Fe=De[0],ze=De[1],He=(0,c.useState)(""),We=a()(He,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),ot=(0,c.useState)(0),rt=a()(ot,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],ft=(0,c.useRef)(),pt=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(Be),null==Pe||Pe.setValue(Be),window.scrollTo(0,e)}),[Be]),(0,c.useEffect)((function(){null==Y||Y(Fe)}),[Fe]),(0,c.useEffect)((function(){if(ft.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==P)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,j.I)(s,(function(e){var n,i,o;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(ft.current,{mode:P,lineNumbers:!v,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),o=n.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===me.indexOf(r))return null;if(console.log("change1:",t,e,o,i,s,a,l,r),s>=0&&i.ch-s<5){var u=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),fe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){pt.current}),[Qe,pt,Fe]);(0,c.useEffect)((function(){if(Pe){var e=function(){var e=new f.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Pe.setSize("100%","100%"),Pe.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(ft.current.parentElement),e}();return function(){var t,n;null!==(t=ft.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=ft.current)||void 0===n?void 0:n.parentElement)}}}),[Pe,gt]),(0,c.useEffect)((function(){if(Pe){for(var e=[],t=function(){var t=a()(i[n],2),o=t[0],r=t[1],l=s()({},o,(function(){wt(r)}));e.push(l),Pe.addKeyMap(l)},n=0,i=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(E,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Ie(k)}),[Pe,k]),(0,c.useEffect)((function(){Pe&&_&&Pe.focus()}),[Pe,_]),(0,c.useEffect)((function(){if(Re&&Pe){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Pe.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Pe,Re]),(0,c.useEffect)((function(){if(Pe&&K){var e=function(e,t){K(e,t)};return Pe.on("beforeChange",e),function(){Pe.off("beforeChange",e)}}}),[Pe,K]),(0,c.useEffect)((function(){if(Pe&&q){var e=function(){q(Pe.getValue())};return Pe.on("blur",e),function(){Pe.off("blur",e)}}}),[Pe,q]),(0,c.useEffect)((function(){if(Pe){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(D?i(n,_t(n)):i(n))};return Pe.on("change",e),function(){Pe.off("change",e)}}}),[Pe,i]),(0,c.useEffect)((function(){if(Pe)if(null==n)Pe.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Pe.getValue()&&(Pe.setValue(n),Ae(n),Pe.setCursor(fe?1:Pe.lineCount(),0),window.scrollTo(0,e))}}),[Pe,n]);var wt=(0,c.useCallback)((function(e){var t=Pe.getCursor(),n=Pe.getSelection(),i=n.split("\n");switch(e){case"bold":return Pe.replaceSelection("**"+n+"**"),""===n&&Pe.setCursor(t.line,t.ch+2),Pe.focus();case"italic":return Pe.replaceSelection("*"+n+"*"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"code":return Pe.replaceSelection("`"+n+"`"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"inline-latex":return qe("inline-latex"),Pe.focus();case"latex":return Pe.replaceSelection("```latex\n"+n+"\n```"),Pe.setCursor(t.line+1,n.length+1),Pe.focus();case"line-break":return Pe.replaceSelection("
\n"),Pe.focus();case"list-ul":return""===n?Pe.replaceSelection("- "+n):Pe.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Pe.focus();case"list-ol":return""===n?Pe.replaceSelection("1. "+n):Pe.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Pe.focus();case"add-null-ch":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("▁"),Pe.focus();case"add-signal":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("@▁@"),Pe.focus();case"add-multiple":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection(me),Pe.focus();case"inster-template-1":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Pe.focus();case"eraser":return Pe.setValue(""),Pe.focus();case"trigger-watch":return Ie(!Re),Pe.focus();case"trigger-full-screen":return ze(!Fe),Pe.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Pe,Re,Fe]),vt=(0,c.useCallback)((function(e,t){var n,i,o,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Pe.replaceSelection("[".concat(l,"](").concat(s,")")),Pe.focus();case ue:var c=e.language,u=e.content;return Pe.replaceSelection(["```"+c,u,"```"].join("\n")),Pe.focus();case"maths-latex":for(var d=atob(e),f=new Uint8Array(d.length),p=0;p-1||null==w||!w.type?g?Pe.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Pe.replaceSelection("![,](".concat(m,")")):(null==w||null===(r=w.type)||void 0===r?void 0:r.indexOf("video"))>-1?Pe.replaceSelection('')):(null==w||null===(a=w.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Pe.replaceSelection('').concat(w.name,"")):ge.includes(v)?Pe.replaceSelection('').concat(w.name,"")):Pe.replaceSelection("[".concat(w.name,"](").concat(oe.Z.API_SERVER).concat(m,")")),Pe.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},i=ht.current,o=!1,r=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Pe,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:we(l),height:we(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(D){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>o-20&&i",children:[(0,T.jsx)(g.Z.Item,{children:(0,T.jsx)(p.Link,{to:"".concat(c.first_category_url),children:null==c||null===(t=c.course)||void 0===t?void 0:t.course_name})}),(0,T.jsx)(g.Z.Item,{children:(0,T.jsx)(p.Link,{to:"/classrooms/".concat(l.coursesId,"/graduation_tasks/").concat(l.categoryId),children:"毕设任务"})}),(0,T.jsx)(g.Z.Item,{children:"编辑"})]})}),(0,T.jsx)("aside",{className:[k.title,"mt20"].join(" "),children:(0,T.jsxs)(w.Z,{style:{width:"100%"},children:[(0,T.jsx)(v.Z,{flex:"1",children:(0,T.jsx)("strong",{className:"font20 ml5",children:"编辑毕设任务"})}),(0,T.jsx)(v.Z,{children:(0,T.jsx)(p.Link,{className:"font16 c-light-black",to:"/classrooms/".concat(l.coursesId,"/exercise"),children:"返回"})})]})})]}),(0,T.jsx)("section",{className:[k.bg,"pt30","pl30","pr30","pb30","mt20"].join(" "),children:(0,T.jsxs)(h.Z,{layout:"vertical",form:j,scrollToFirstError:!0,onFinish:function(){var e=s()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:A();case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,T.jsx)(h.Z.Item,{name:"task_type",label:"类型:",rules:[{required:!0,message:"请选择任务类型"}],children:(0,T.jsxs)(b.default,{size:"middle",placeholder:"请选择任务类型",style:{width:200},children:[(0,T.jsx)(b.default.Option,{value:1,children:"普通"}),(0,T.jsx)(b.default.Option,{value:2,children:"分组"})]})}),(0,T.jsx)(h.Z.Item,{name:"name",label:"选题名称:",rules:[{required:!0,message:"请输入任务标题"}],children:(0,T.jsx)(y.Z,{maxLength:60,size:"middle",suffix:"0/60",placeholder:"任务标题,最大限制60个字符"})}),(0,T.jsx)(x.Z,{}),(0,T.jsx)(h.Z.Item,{label:"内容",name:"description",rules:[{required:!0,message:"请输入内容"}],children:(0,T.jsx)(f.Z,{watch:!0,defaultValue:null==M?void 0:M.description,placeholder:"请任务内容说明,最大限制5000个字符"})}),L&&(0,T.jsx)(w.Z,{children:(0,T.jsx)(v.Z,{children:(0,T.jsx)(h.Z.Item,{name:"attachment_ids",children:(0,T.jsx)(B.Z,{})})})})]})}),(0,T.jsxs)("aside",{className:k.btns,children:[(0,T.jsx)(_.ZP,{type:"primary",onClick:function(){j.submit()},children:"保存"}),(0,T.jsx)(p.Link,{to:"/classrooms/".concat(l.coursesId,"/graduation_tasks/").concat(l.categoryId),children:"取消"})]})]})}))},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return p},jP:function(){return f},rO:function(){return c}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return(0,l.v_)("libraries.json",e)}function p(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__GroupHomework__Add__index.65728fd2.async.js b/p__Classrooms__Lists__GroupHomework__Add__index.65728fd2.async.js deleted file mode 100644 index a561ec0818..0000000000 --- a/p__Classrooms__Lists__GroupHomework__Add__index.65728fd2.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[51582,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},o=null,i=!1,r=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,O(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,Z(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var o,i="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var T=function(e){return e&&"false"!==e},C=function(t,n,o){x(m)<=4.2&&(o=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(m)<=4.4)T(n.showToolBar)&&(n.height-=7),T(n.showAlgebraInput)&&(n.height-=37),n.width<605&&T(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(T(n.showToolBar)||T(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=T(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),f(e)},b||w.appendChild(_)):r.appendChild(_),w.appendChild(r),b||t.appendChild(w),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),I("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(m)<5&&(e.className+=" geogebraweb")):k(e,t)}if(i){scriptLoadStarted=!0;for(var j=0;j0?(i.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):C(i,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=o,C(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",i.appendChild(a)}return i.appendChild(c),i},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],Z=function(e,t){if(m=e,t)O(m,!0);else{var r,a,l=!i;if(l){var s=x(m);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?r+m:"https://www.geogebra.org/apps/5.2.814.0/",G)if(m.slice(-1*G[u].length)===G[u]||m.slice(-1*(G[u].length+1))===G[u]+"/")return void O(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||o.is3D||o.AV||o.SV||o.CV||o.EV2||o.CP||o.PC||o.DA||o.FI||o.PV||T(n.showToolBar)||T(n.showMenuBar)||T(n.showAlgebraInput)||T(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",O(a,!1)}},O=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),f=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var o=parseFloat(m);NaN!==o&&o<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+o+" is deprecated. Using version latest instead."),Z("5.0",t))}},I=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),Z(e,!1),null!==c&&O(c,f),l=!0}return void 0!==n.material_id?S(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,o,i){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==o&&o,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,o,i,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,p=0,f=0,h=0;if(a)s=a.offsetWidth,c=Math.max(o?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===i||!i)&&("rtl"===document.dir?(p=s-m.width-m.left,f=u<=480?10:30):(f=m.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,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(i=n(e,t,a,o,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=e.getBoundingClientRect(),i=(t-o.width)/2,r=(n-o.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=i+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=o(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var o=e.lastIndexOf(tb,Math.min(n,t));return o>=O?e.substring(O,o+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,o=[],i=[];function a(e){var t=i[e](),n=o[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in o[e]},webModule.__getPropMap=function(){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},o=e[webModule.__softPermutationId],i=O;i0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],o=0;o0&&(s=[],null==n||null===(o=n.data)||void 0===o||o.map((function(e){var t;null==e||null===(t=e.ec_point_ids)||void 0===t||t.map((function(e){s.push(e)}))})),h(a()(a()({},null==n||null===(r=n.data)||void 0===r?void 0:r[0]),{},{ec_point_ids:s})),x(null==n?void 0:n.data));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(){return(N=u()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.ZP)("/api/schools/".concat(null==o||null===(t=o.userInfo)||void 0===t||null===(t=t.course)||void 0===t?void 0:t.course_school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:n=e.sent,T(null==n?void 0:n.data),(d||l)&&C();case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,f.useEffect)((function(){var e;null!=o&&null!==(e=o.userInfo)&&void 0!==e&&null!==(e=e.course)&&void 0!==e&&e.course_school_id&&function(){N.apply(this,arguments)}()}),[null==o||null===(t=o.userInfo)||void 0===t||null===(t=t.course)||void 0===t?void 0:t.course_school_id]),(0,_.jsxs)("div",{style:{display:null!==(n=o.userInfo.course)&&void 0!==n&&n.is_openengineering?"":"none"},children:[(0,_.jsx)("p",{style:{fontSize:"16px",fontWeight:400},children:"工程认证考核知识点"}),null==y?void 0:y.map((function(e,t){return(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,_.jsx)(k,{rz:B,item:e,type:t,setitem:function(e){y.splice(t,1,e),x(s()(y));var n=[];null==y||y.map((function(e){var t;null==e||null===(t=e.ec_point_ids)||void 0===t||t.map((function(e){n.push(e)}))})),h(a()(a()({},e),{},{ec_point_ids:n}))}}),0!=t&&(0,_.jsx)(g.Z,{onClick:function(){y.splice(t,1),x(s()(y))},style:{marginLeft:10,fontSize:"20px"}}),(0,_.jsx)(v.Z,{onClick:function(){y.push({}),x(s()(y))},style:{marginLeft:10,fontSize:"20px"}})]},t)}))]})})))},36709:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(79800),s=n.n(l),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",f=n(92310),h=n.n(f),m=n(71418),g=n(2859),v=n(18030),w=n(21082),b=n(37712),y=function(e){var t=e.data,n=e.className,o=e.fullWidth,r=e.style,l=void 0===r?{}:r,f=e.onClose,y=e.onOk,x=e.showFullTools,_=e.noAssociationId,k=(0,c.useRef)(null),S=(0,c.useRef)(null),j=(0,c.useRef)(null),B=(0,c.useRef)(null),T=(0,c.useState)(!1),C=s()(T,2),P=C[0],N=C[1],L=(0,c.useState)("正在加载中"),E=s()(L,2),M=E[0],A=E[1];(0,c.useEffect)((function(){j.current||(j.current=document.createElement("style"),document.head.appendChild(j.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),j.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&G()):(document.body.removeAttribute("data-custom"),j.current&&(document.head.removeChild(j.current),j.current=null))}),[null==t?void 0:t.visible]);var G=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),A("正在加载中"),e.next=4,(0,w.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,k.current.src="",k.current.src=n,k.current.onload=function(){O()},N(!1),A("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=a()(i()().mark((function e(n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),A("正在保存中"),e.next=4,(0,v.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(o=e.sent)||!o.id||_){e.next=12;break}return e.next=8,(0,v.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==o?void 0:o.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=o&&o.id&&y(o);case 13:N(!1),A("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O=function(){S.current=new g.hP(k.current),S.current.targetRoot=B.current,S.current.addEventListener("render",Z),S.current.addEventListener("beforeclose",f),x&&(S.current.availableMarkerTypes=S.current.ALL_MARKER_TYPES,S.current.uiStyleSettings.redoButtonVisible=!0,S.current.uiStyleSettings.notesButtonVisible=!0,S.current.uiStyleSettings.zoomButtonVisible=!0,S.current.uiStyleSettings.zoomOutButtonVisible=!0,S.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=S.current.uiStyleSettings,S.current.show(),null!=t&&t.snapshotData&&S.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,b.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,b.jsx)(m.Z,{spinning:P,tip:M,style:{position:"absolute"},children:(0,b.jsx)("div",{ref:B,className:h()(u,n,o?p:""),style:l,children:(0,b.jsx)("img",{className:d,ref:k})})})})}},98382:function(e,t,n){"use strict";n.d(t,{z:function(){return B},Z:function(){return T}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(82242),s=n.n(l),c=n(37205),u=n.n(c),d=n(79800),p=n.n(d),f=n(59301),h=n(59028),m=n(8591),g=n(43418),v=n(3113),w=n(92723),b=n(90341),y=n(37712),x="  ";function _(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var k=n(60186),S=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var j=h.Z.Dragger;function B(e){var t=[];return e&&e.length>0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var T=function(e){var t=e.value,n=e.onChange,o=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,B=e.title,T=void 0===B?"上传附件":B,C=e.showRemoveModal,P=void 0!==C&&C,N=e.accept,L=void 0===N?"":N,E=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,Z=e.aloneClear,O=void 0!==Z&&Z,I=e.realTimeRemove,R=void 0===I||I,D=e.uploadText,F=(0,f.useState)(!1),z=p()(F,2),H=z[0],W=z[1],V=(0,f.useState)(t||[]),q=p()(V,2),U=q[0],K=q[1],Y=(0,f.useState)(1),J=p()(Y,2),X=J[0],$=J[1];(0,f.useEffect)((function(){t&&(1===X&&K(u()(t)),$(2),G===(null==t?void 0:t.length)&&W(!0))}),[t]);var Q,ee=function(){setTimeout((function(){U.pop(),K(u()(U))}),500)},te={multiple:!0,disabled:H,accept:L,withCredentials:!0,fileList:U,beforeUpload:function(e,t){var n=e.size/1024/1024;return U.concat(t).length>G?(U.pop(),K(u()(U)),m.ZP.error("最多只能上传".concat(G,"个文件")),O?Promise.reject():(ee(),!1)):n=G?W(!0):W(!1),K(u()(U)),U=U.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,U),n(U)):m.ZP.error(null===(o=e.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message)},onRemove:(Q=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!P){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var o;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(o=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return Q.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(j,s()(s()({},te),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!M&&(0,y.jsxs)(h.Z,s()(s()({},te),{},{children:[(0,y.jsxs)(v.ZP,{disabled:H,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),T]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:D||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),f=(n(80443),n(90630),n(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,o=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,l.useEffect)((function(){h&&h.setOption("mode",o)}),[h,o]),(0,l.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,l.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,i()({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,f.jsx)("div",{className:"my-codemirror-container",children:(0,f.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,o=(0,l.useState)("python"),r=a()(o,2),d=r[0],p=r[1];return(0,f.jsxs)(c.Z,i()(i()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,f.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,f.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,f.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,f.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,f.jsx)(v,{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:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var o=n(91232),i=n.n(o),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),f=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,o=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})})},g=n(82242),v=n.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,o=e.icon,i=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(i)},children:[(0,h.jsx)("i",{className:"".concat(o)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,o=e.showNullProgramButton,i=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,v()(v()({},e),{},{onActionCallback:i})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),j={labelCol:{span:4},wrapperCol:{span:20}},B=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,v()(v()({},j),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},T=n(73145),C=n(28486),P=n(95237),N=n(36709),L=function(e){var t=e.callback,n=e.onCancel,o=document.createElement("canvas"),i=o.getContext("2d");o.width=1e3,o.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,o.width,o.height);var r=o.toDataURL("image/png");return(0,h.jsx)(P.Z,{style:{height:"100vh"},children:(0,h.jsx)(N.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),M=n.n(E),A=n(41498),G=n.n(A),Z=n(37205),O=n.n(Z),I=n(12378);function R(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(R,go.CommandHandler),R.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},R.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},R.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},R.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},R.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},R.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},R.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},R.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o0){for(var o=a.elt(l-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(r)}else if("Down"===n.key){var i;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))o.y?1:n.xo.x?1:0})),t},R.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},R.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(R.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(R.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var D=R,F=(n(41034),n(85160)),z=n(43418),H=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=I;var U=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],f=d[1],m=function(){var e=G()(M()().mark((function e(){var t,i;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:i=e.sent,n({src:i.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){f(p+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(P.Z,{children:[(0,h.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(H.Z,{onClick:function(){l.current=!l.current,f(p+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(F.FI,{initDiagram:function(){var e=I.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",f="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function b(t,n){var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(o){var i=n.part.adornedPart,r=(new I.Point).setRectSpot(i.actualBounds,t);r.subtract(i.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(i.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=o.copyNodeData(i.data);o.setGroupKeyForNodeData(a,o.getGroupKeyForNodeData(i.data)),o.addNodeData(a);var l={from:i.key,to:o.getKeyForNodeData(a)};o.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(I.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?25:18,height:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:o,contextClick:o})}function y(t){return e(I.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,o){n.handled=!0,n.diagram.model.commit((function(n){n.set(o.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(I.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(u,"fill"),_(p,"fill"),_(f,"fill"),_(h,"fill"))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(g,"fill"),_(v,"fill"),_(m,"fill"),_(w,"fill")))]}function S(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function j(t,n){return n||(n="thickness"),e(I.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function B(t,n){return n||(n="dash"),e(I.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function T(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",j(1),j(2),j(3),j(4))),e("ContextMenuButton",e(I.Panel,"Horizontal",B(null),B([2,4]),B([4,4])))]}function C(t,n){return n||(n="figure"),e(I.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function P(t){return e(I.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(I.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function L(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var o=n.part.adornedPart;e.set(o.data,t?"toSpot":"fromSpot",I.Spot.stringify(I.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var o=0,i=I.Spot.RightSide;t.equals(I.Spot.Top)?(o=270,i=I.Spot.TopSide):t.equals(I.Spot.Left)?(o=180,i=I.Spot.LeftSide):t.equals(I.Spot.Bottom)&&(o=90,i=I.Spot.BottomSide),n||(o-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",I.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:o,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return o.current=new I.Diagram(i.current,{padding:20,grid:e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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(D),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),o.current.nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center,locationObjectName:"SHAPE",desiredSize:new I.Size(120,60),minSize:new I.Size(40,40),resizable:!0,resizeCellSize:new I.Size(10,10),rotatable:!0},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),new I.Binding("desiredSize","size",I.Size.parse).makeTwoWay(I.Size.stringify),e(I.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("figure"),new I.Binding("fill"),new I.Binding("stroke","borderColor"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(I.TextBlock,{margin:1,textAlign:"center",overflow:I.TextBlock.OverflowEllipsis,editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(I.Panel,"Vertical",{maxSize:new I.Size(200,NaN)},e(I.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new I.Binding("text")),e(I.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new I.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Placeholder,{padding:10}),b(I.Spot.Top,"TriangleUp"),b(I.Spot.Left,"TriangleLeft"),b(I.Spot.Right,"TriangleRight"),b(I.Spot.Bottom,"TriangleDown"),y({alignment:new I.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(I.Panel,"Horizontal",C("Rectangle"),C("RoundedRectangle"),C("Ellipse"),C("Diamond"))),e("ContextMenuButton",e(I.Panel,"Horizontal",C("Parallelogram2"),C("ManualOperation"),C("Procedure"),C("Cylinder1"))),e("ContextMenuButton",e(I.Panel,"Horizontal",C("Terminator"),C("CreateRequest"),C("Document"),C("TriangleDown"))),k(),S(),T()),o.current.groupTemplate=e(I.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:I.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.Panel,"Auto",{name:"BODY"},e(I.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("fill"),new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Placeholder,{background:"transparent",margin:20})),e(I.TextBlock,{alignment:I.Spot.Top,alignmentFocus:I.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new I.Binding("text"),new I.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Panel,"Auto",e(I.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(I.Placeholder,{margin:1.5})),y({alignment:I.Spot.TopRight,alignmentFocus:I.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),T()),o.current.linkTemplate=e(I.Link,{layerName:"Foreground",routing:I.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new I.Binding("fromSpot","fromSpot",I.Spot.parse),new I.Binding("toSpot","toSpot",I.Spot.parse),new I.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("points").makeTwoWay(),e(I.Shape,{strokeWidth:2},new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,0),segmentOrientation:I.Link.OrientAlong,alignmentFocus:I.Spot.Right,figure:"circle",width:10,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 1===e}))),e(I.Shape,{segmentIndex:-1,segmentOffset:new I.Point(-10,6),segmentOrientation:I.Link.OrientPlus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return e>=1})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,-6),segmentOrientation:I.Link.OrientMinus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 2===e})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.TextBlock,{alignmentFocus:new I.Spot(0,1,-4,0),editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(I.Adornment,e(I.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:P(2)},new I.Binding("pathPattern","thickness",P)),y({alignmentFocus:new I.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",S(),T(),e("ContextMenuButton",e(I.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(I.Panel,"Horizontal",e(I.Panel,"Spot",L(!1),E(I.Spot.Top,!1),E(I.Spot.Left,!1),E(I.Spot.Right,!1),E(I.Spot.Bottom,!1)),e(I.Panel,"Spot",{margin:new I.Margin(0,0,0,2)},L(!0),E(I.Spot.Top,!0),E(I.Spot.Left,!0),E(I.Spot.Right,!0),E(I.Spot.Bottom,!0))))),new I.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(I.Link,{locationSpot:I.Spot.Center,selectionAdornmentTemplate:e(I.Adornment,"Link",{locationSpot:I.Spot.Center},e(I.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(I.Shape,{toArrow:"Standard",stroke:null}))},{routing:I.Link.AvoidsNodes,curve:I.Link.JumpOver,corner:5,toShortLength:4},new I.Binding("points"),e(I.Shape,{isPanelMain:!0,strokeWidth:2}),e(I.Shape,{toArrow:"Standard",stroke:null})),model:new I.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(O()(I.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center},new I.Binding("location","location",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.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 I.Binding("stroke").makeTwoWay(),new I.Binding("fill").makeTwoWay(),new I.Binding("figure")),e(I.TextBlock,{margin:new I.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new I.Size(16,16),maxSize:new I.Size(10,NaN),textAlign:"center",editable:!0},new I.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),o.current.grid.visible=!0,o.current.grid.gridCellStroke="darkgray",o.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=o.current,o.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:i})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Y.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Y.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(_.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],f=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:o||1e3,height:i||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){m.current.appName=p?"3D":"graphing",s.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){f(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(P.Z,{align:"middle",children:[(0,h.jsx)(H.Z,{flex:1,children:(0,h.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return f(e)}})}),(0,h.jsx)(H.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),oe=n(36761),ie=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",fe={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},he=n(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},we+"-B","bold"),we+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,o=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,j=e.mode,P=void 0===j?"markdown":j,N=e.id,E=void 0===N?"markdown-editor-id":N,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,Z=void 0!==G&&G,O=e.showNullButton,I=void 0!==O&&O,R=e.showNullProgramButton,D=void 0!==R&&R,F=e.hidetoolBar,H=void 0!==F&&F,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,pe=void 0!==te&&te,we=e.disabledFill,xe=void 0!==we&&we,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,je=void 0===Se?"":Se,Be=e.extraUse,Te=(0,c.useState)(null),Ce=a()(Te,2),Pe=Ce[0],Ne=Ce[1],Le=(0,c.useState)(n),Ee=a()(Le,2),Me=Ee[0],Ae=Ee[1],Ge=(0,c.useState)(k),Ze=a()(Ge,2),Oe=Ze[0],Ie=Ze[1],Re=(0,c.useState)(V),De=a()(Re,2),Fe=De[0],ze=De[1],He=(0,c.useState)(""),We=a()(He,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),ot=(nt[0],nt[1]),it=(0,c.useState)(0),rt=a()(it,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),ft=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(je),null==Pe||Pe.setValue(je),window.scrollTo(0,e)}),[je]),(0,c.useEffect)((function(){null==Y||Y(Fe)}),[Fe]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var o=n.clipboardData;if(o){var i=o.types.toString(),r=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==P)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,C.I)(s,(function(e){var n,o,i;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(ie.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:P,lineNumbers:!w,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),o=n.getCursor(),i=n.getLine(o.line),r=i.charAt(o.ch-1),a=i.lastIndexOf("@▁@",o.ch),l=i.lastIndexOf("@▁▁@",o.ch),s=a>l?a:l,c=a>l?3:4;if(-1===me.indexOf(r))return null;if(console.log("change1:",t,e,i,o,s,a,l,r),s>=0&&o.ch-s<5){var u=s+c;return n.replaceRange("",{line:o.line,ch:s},{line:o.line,ch:u}),{line:o.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){ft.current}),[Qe,ft,Fe]);(0,c.useEffect)((function(){if(Pe){var e=function(){var e=new p.Z((function(e){var t,n=i()(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;(o.target.offsetHeight>0||o.target.offsetWidth>0)&&(gt(),Pe.setSize("100%","100%"),Pe.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Pe,gt]),(0,c.useEffect)((function(){if(Pe){for(var e=[],t=function(){var t=a()(o[n],2),i=t[0],r=t[1],l=s()({},i,(function(){vt(r)}));e.push(l),Pe.addKeyMap(l)},n=0,o=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(E,Me),ot(!0))}}),1e4),(0,c.useEffect)((function(){Ie(k)}),[Pe,k]),(0,c.useEffect)((function(){Pe&&_&&Pe.focus()}),[Pe,_]),(0,c.useEffect)((function(){if(Oe&&Pe){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Pe.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Pe,Oe]),(0,c.useEffect)((function(){if(Pe&&K){var e=function(e,t){K(e,t)};return Pe.on("beforeChange",e),function(){Pe.off("beforeChange",e)}}}),[Pe,K]),(0,c.useEffect)((function(){if(Pe&&q){var e=function(){q(Pe.getValue())};return Pe.on("blur",e),function(){Pe.off("blur",e)}}}),[Pe,q]),(0,c.useEffect)((function(){if(Pe){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(D?o(n,_t(n)):o(n))};return Pe.on("change",e),function(){Pe.off("change",e)}}}),[Pe,o]),(0,c.useEffect)((function(){if(Pe)if(null==n)Pe.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Pe.getValue()&&(Pe.setValue(n),Ae(n),Pe.setCursor(pe?1:Pe.lineCount(),0),window.scrollTo(0,e))}}),[Pe,n]);var vt=(0,c.useCallback)((function(e){var t=Pe.getCursor(),n=Pe.getSelection(),o=n.split("\n");switch(e){case"bold":return Pe.replaceSelection("**"+n+"**"),""===n&&Pe.setCursor(t.line,t.ch+2),Pe.focus();case"italic":return Pe.replaceSelection("*"+n+"*"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"code":return Pe.replaceSelection("`"+n+"`"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"inline-latex":return qe("inline-latex"),Pe.focus();case"latex":return Pe.replaceSelection("```latex\n"+n+"\n```"),Pe.setCursor(t.line+1,n.length+1),Pe.focus();case"line-break":return Pe.replaceSelection("
\n"),Pe.focus();case"list-ul":return""===n?Pe.replaceSelection("- "+n):Pe.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Pe.focus();case"list-ol":return""===n?Pe.replaceSelection("1. "+n):Pe.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Pe.focus();case"add-null-ch":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("▁"),Pe.focus();case"add-signal":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("@▁@"),Pe.focus();case"add-multiple":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection(me),Pe.focus();case"inster-template-1":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Pe.focus();case"eraser":return Pe.setValue(""),Pe.focus();case"trigger-watch":return Ie(!Oe),Pe.focus();case"trigger-full-screen":return ze(!Fe),Pe.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Pe,Oe,Fe]),wt=(0,c.useCallback)((function(e,t){var n,o,i,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Pe.replaceSelection("[".concat(l,"](").concat(s,")")),Pe.focus();case ue:var c=e.language,u=e.content;return Pe.replaceSelection(["```"+c,u,"```"].join("\n")),Pe.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),f=0;f-1||null==v||!v.type?g?Pe.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Pe.replaceSelection("![,](".concat(m,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Pe.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Pe.replaceSelection('').concat(v.name,"")):ge.includes(w)?Pe.replaceSelection('').concat(v.name,"")):Pe.replaceSelection("[".concat(v.name,"](").concat(ie.Z.API_SERVER).concat(m,")")),Pe.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},o=ht.current,i=!1,r=0;return o.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){o.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Pe,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:ve(l),height:ve(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(o)}return 0}),[Ye]),function(e){var t=[];if(D){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,o){var i=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>i-20&&oD.max_num)){e.next=3;break}return h.ZP.info("最大人数不能小于最小人数"),e.abrupt("return");case 3:return(n=a()({},D)).attachment_ids&&(n.attachment_ids=null==n||null===(o=n.attachment_ids)||void 0===o?void 0:o.map((function(e){return e.response.id}))),n.reference_attachment_ids&&(n.reference_attachment_ids=null==n||null===(r=n.reference_attachment_ids)||void 0===r?void 0:r.map((function(e){return e.response.id}))),s=(l=G).coursesId,c=l.categoryId,e.next=9,(0,S.H1)(a()(a()({coursesId:s,category:c},n),{},{type:3}));case 9:0===(u=e.sent).status&&(K(u.homework_id),(0,_.L9)(["教学课堂","分组作业","新建分组作业"]),p.history.push("/classrooms/".concat(s,"/group_homework/").concat(u.homework_id,"/detail")));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function K(e){return Y.apply(this,arguments)}function Y(){return(Y=s()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=V&&V.ec_point_ids){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,M.ZP)("/api/ec_courses/".concat(null==V?void 0:V.ec_course_id,"/ec_points/set_work_points.json"),{method:"post",body:a()({homework_common_id:t},V)});case 4:e.sent;case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,A.jsxs)("section",{className:j,children:[z.course_name&&(0,A.jsx)("section",{className:"animated fadeIn",children:(0,A.jsx)("aside",{className:"mt10",children:z.category&&(0,A.jsxs)(m.Z,{separator:">",children:[(0,A.jsx)(m.Z.Item,{children:(0,A.jsx)(p.Link,{to:"/classrooms/".concat(z.course_id,"/group_homework"),children:z.course_name})}),(0,A.jsx)(m.Z.Item,{children:(0,A.jsx)(p.Link,{to:"/classrooms/".concat(z.course_id,"/group_homework"),children:z.category.category_name})}),(0,A.jsx)(m.Z.Item,{children:"新建详情"})]})})}),(0,A.jsx)("aside",{className:"font24 bold mt20 mb20",children:"新建分组作业"}),(0,A.jsxs)(f.Z,{form:O,className:B,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){F(a()({},O.getFieldsValue()))},initialValues:{base_on_project:!1},onFinish:U,children:[(0,A.jsx)("div",{className:T,children:(0,A.jsx)(f.Z.Item,{name:"name",label:"标题:",rules:[{required:!0,message:"请输入标题"}],children:(0,A.jsx)(g.Z,{maxLength:60,suffix:"".concat((null===(t=D.name)||void 0===t?void 0:t.length)||0,"/60"),placeholder:"例如:从Python程序设计-入门精通"})})}),(0,A.jsxs)("div",{className:C,children:[(0,A.jsx)(f.Z.Item,{name:"description",label:"内容:",rules:[{required:!0,message:"请输入作业的简介"},{max:5e3,message:"作业简介最大限制5000个字符"}],children:(0,A.jsx)(k.Z,{watch:!0,defaultValue:D.intro})}),(0,A.jsx)("div",{children:(0,A.jsx)(f.Z.Item,{name:"attachment_ids",children:(0,A.jsx)(L.Z,{})})}),(0,A.jsxs)(v.Z,{gutter:[20,20],children:[(0,A.jsx)(w.Z,{flex:"230px",children:(0,A.jsx)(f.Z.Item,{name:"min_num",label:"分组设置",rules:[{required:!0,message:"请填写每组最小人数"}],children:(0,A.jsx)(b.Z,{style:{width:200},min:1,placeholder:"请填写每组最小人数"})})}),(0,A.jsx)(w.Z,{flex:"230px",children:(0,A.jsx)(f.Z.Item,{name:"max_num",label:(0,A.jsx)("div",{children:" "}),rules:[{required:!0,message:"请填写每组最大人数"}],children:(0,A.jsx)(b.Z,{style:{width:200},max:100,placeholder:"请填写每组最大人数"})})}),(0,A.jsx)(w.Z,{children:(0,A.jsx)("div",{className:"mt30",children:"(学生提交作品时需要关联同组成员,组内成员作品共享)"})})]}),!(null!=r&&null!==(n=r.setting)&&void 0!==n&&n.is_local)&&(0,A.jsx)(v.Z,{children:(0,A.jsxs)(w.Z,{children:[(0,A.jsx)(f.Z.Item,{name:"base_on_project",valuePropName:"checked",children:(0,A.jsx)(y.Z,{value:!0,children:"基于项目实施"})}),(0,A.jsx)("span",{className:"c-light-black",children:"(选中,则必须在本平台创建项目,项目管理员可以提交作品;不选中,无需在平台创建项目,任意小组成员均可以提交作品)"})]})})]}),(0,A.jsxs)("div",{className:C,children:[(0,A.jsx)(f.Z.Item,{name:"reference_answer",label:"参考答案:",children:(0,A.jsx)(k.Z,{watch:!0,defaultValue:D.notice})}),(0,A.jsx)("div",{children:(0,A.jsx)(f.Z.Item,{name:"reference_attachment_ids",children:(0,A.jsx)(L.Z,{})})})]})]}),(0,A.jsx)("div",{className:C,children:(0,A.jsx)(E.Z,{setitem:function(e){return q(a()({},e))}})}),(0,A.jsx)("div",{className:P,children:(0,A.jsx)("div",{className:"pt40 mb30",children:(0,A.jsxs)(f.Z.Item,{children:[(0,A.jsx)(x.ZP,{size:"middle",type:"primary",onClick:function(){O.submit()},className:"".concat(N," mr20"),htmlType:"submit",loading:l["newCourse/editCourse"]||l["newCourse/submitCourse"],children:"提交"}),(0,A.jsx)(x.ZP,{size:"middle",type:"primary",ghost:!0,className:N,onClick:function(){return p.history.push("/classrooms/".concat(G.coursesId,"/group_homework"))},children:"取消"})]})})})]})}))},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return f},jP:function(){return p},rO:function(){return c}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,l.v_)("libraries.json",e)}function f(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__GroupHomework__Add__index.b3c39a13.async.js b/p__Classrooms__Lists__GroupHomework__Add__index.b3c39a13.async.js new file mode 100644 index 0000000000..8641fd5c49 --- /dev/null +++ b/p__Classrooms__Lists__GroupHomework__Add__index.b3c39a13.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[51582,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},o=null,i=!1,r=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,O(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,Z(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var o,i="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var T=function(e){return e&&"false"!==e},C=function(t,n,o){x(m)<=4.2&&(o=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(m)<=4.4)T(n.showToolBar)&&(n.height-=7),T(n.showAlgebraInput)&&(n.height-=37),n.width<605&&T(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(T(n.showToolBar)||T(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=T(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),f(e)},b||w.appendChild(_)):r.appendChild(_),w.appendChild(r),b||t.appendChild(w),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),I("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(m)<5&&(e.className+=" geogebraweb")):k(e,t)}if(i){scriptLoadStarted=!0;for(var j=0;j0?(i.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):C(i,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=o,C(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",i.appendChild(a)}return i.appendChild(c),i},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],Z=function(e,t){if(m=e,t)O(m,!0);else{var r,a,l=!i;if(l){var s=x(m);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?r+m:"https://www.geogebra.org/apps/5.2.814.0/",G)if(m.slice(-1*G[u].length)===G[u]||m.slice(-1*(G[u].length+1))===G[u]+"/")return void O(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||o.is3D||o.AV||o.SV||o.CV||o.EV2||o.CP||o.PC||o.DA||o.FI||o.PV||T(n.showToolBar)||T(n.showMenuBar)||T(n.showAlgebraInput)||T(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",O(a,!1)}},O=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),f=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var o=parseFloat(m);NaN!==o&&o<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+o+" is deprecated. Using version latest instead."),Z("5.0",t))}},I=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),Z(e,!1),null!==c&&O(c,f),l=!0}return void 0!==n.material_id?S(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,o,i){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==o&&o,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,o,i,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,p=0,f=0,h=0;if(a)s=a.offsetWidth,c=Math.max(o?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===i||!i)&&("rtl"===document.dir?(p=s-m.width-m.left,f=u<=480?10:30):(f=m.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,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(i=n(e,t,a,o,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=e.getBoundingClientRect(),i=(t-o.width)/2,r=(n-o.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=i+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=o(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var o=e.lastIndexOf(tb,Math.min(n,t));return o>=O?e.substring(O,o+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,o=[],i=[];function a(e){var t=i[e](),n=o[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in o[e]},webModule.__getPropMap=function(){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},o=e[webModule.__softPermutationId],i=O;i0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],o=0;o0&&(s=[],null==n||null===(o=n.data)||void 0===o||o.map((function(e){var t;null==e||null===(t=e.ec_point_ids)||void 0===t||t.map((function(e){s.push(e)}))})),h(a()(a()({},null==n||null===(r=n.data)||void 0===r?void 0:r[0]),{},{ec_point_ids:s})),x(null==n?void 0:n.data));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(){return(N=u()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.ZP)("/api/schools/".concat(null==o||null===(t=o.userInfo)||void 0===t||null===(t=t.course)||void 0===t?void 0:t.course_school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:n=e.sent,T(null==n?void 0:n.data),(d||l)&&C();case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,f.useEffect)((function(){var e;null!=o&&null!==(e=o.userInfo)&&void 0!==e&&null!==(e=e.course)&&void 0!==e&&e.course_school_id&&function(){N.apply(this,arguments)}()}),[null==o||null===(t=o.userInfo)||void 0===t||null===(t=t.course)||void 0===t?void 0:t.course_school_id]),(0,_.jsxs)("div",{style:{display:null!==(n=o.userInfo.course)&&void 0!==n&&n.is_openengineering?"":"none"},children:[(0,_.jsx)("p",{style:{fontSize:"16px",fontWeight:400},children:"工程认证考核知识点"}),null==y?void 0:y.map((function(e,t){return(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,_.jsx)(k,{rz:B,item:e,type:t,setitem:function(e){y.splice(t,1,e),x(s()(y));var n=[];null==y||y.map((function(e){var t;null==e||null===(t=e.ec_point_ids)||void 0===t||t.map((function(e){n.push(e)}))})),h(a()(a()({},e),{},{ec_point_ids:n}))}}),0!=t&&(0,_.jsx)(g.Z,{onClick:function(){y.splice(t,1),x(s()(y))},style:{marginLeft:10,fontSize:"20px"}}),(0,_.jsx)(v.Z,{onClick:function(){y.push({}),x(s()(y))},style:{marginLeft:10,fontSize:"20px"}})]},t)}))]})})))},36709:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(79800),s=n.n(l),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",f=n(92310),h=n.n(f),m=n(71418),g=n(2859),v=n(18030),w=n(21082),b=n(37712),y=function(e){var t=e.data,n=e.className,o=e.fullWidth,r=e.style,l=void 0===r?{}:r,f=e.onClose,y=e.onOk,x=e.showFullTools,_=e.noAssociationId,k=(0,c.useRef)(null),S=(0,c.useRef)(null),j=(0,c.useRef)(null),B=(0,c.useRef)(null),T=(0,c.useState)(!1),C=s()(T,2),P=C[0],N=C[1],L=(0,c.useState)("正在加载中"),E=s()(L,2),M=E[0],A=E[1];(0,c.useEffect)((function(){j.current||(j.current=document.createElement("style"),document.head.appendChild(j.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),j.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&G()):(document.body.removeAttribute("data-custom"),j.current&&(document.head.removeChild(j.current),j.current=null))}),[null==t?void 0:t.visible]);var G=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),A("正在加载中"),e.next=4,(0,w.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,k.current.src="",k.current.src=n,k.current.onload=function(){O()},N(!1),A("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=a()(i()().mark((function e(n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),A("正在保存中"),e.next=4,(0,v.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(o=e.sent)||!o.id||_){e.next=12;break}return e.next=8,(0,v.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==o?void 0:o.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=o&&o.id&&y(o);case 13:N(!1),A("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O=function(){S.current=new g.hP(k.current),S.current.targetRoot=B.current,S.current.addEventListener("render",Z),S.current.addEventListener("beforeclose",f),x&&(S.current.availableMarkerTypes=S.current.ALL_MARKER_TYPES,S.current.uiStyleSettings.redoButtonVisible=!0,S.current.uiStyleSettings.notesButtonVisible=!0,S.current.uiStyleSettings.zoomButtonVisible=!0,S.current.uiStyleSettings.zoomOutButtonVisible=!0,S.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=S.current.uiStyleSettings,S.current.show(),null!=t&&t.snapshotData&&S.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,b.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,b.jsx)(m.Z,{spinning:P,tip:M,style:{position:"absolute"},children:(0,b.jsx)("div",{ref:B,className:h()(u,n,o?p:""),style:l,children:(0,b.jsx)("img",{className:d,ref:k})})})})}},98382:function(e,t,n){"use strict";n.d(t,{z:function(){return B},Z:function(){return T}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(82242),s=n.n(l),c=n(37205),u=n.n(c),d=n(79800),p=n.n(d),f=n(59301),h=n(59028),m=n(8591),g=n(43418),v=n(3113),w=n(92723),b=n(90341),y=n(37712),x="  ";function _(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var k=n(60186),S=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var j=h.Z.Dragger;function B(e){var t=[];return e&&e.length>0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var T=function(e){var t=e.value,n=e.onChange,o=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,B=e.title,T=void 0===B?"上传附件":B,C=e.showRemoveModal,P=void 0!==C&&C,N=e.accept,L=void 0===N?"":N,E=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,Z=e.aloneClear,O=void 0!==Z&&Z,I=e.realTimeRemove,R=void 0===I||I,D=e.uploadText,F=e.setFileProgress,z=e.showFileProgress,H=(0,f.useState)(!1),W=p()(H,2),V=W[0],q=W[1],U=(0,f.useState)(t||[]),K=p()(U,2),Y=K[0],J=K[1],X=(0,f.useState)(1),$=p()(X,2),Q=$[0],ee=$[1];(0,f.useEffect)((function(){t&&(1===Q&&J(u()(t)),ee(2),G===(null==t?void 0:t.length)&&q(!0))}),[t]);var te=function(){setTimeout((function(){Y.pop(),J(u()(Y))}),500)};z&&F(Y.some((function(e){return"uploading"===e.status})));var ne,oe={multiple:!0,disabled:V,accept:L,withCredentials:!0,fileList:Y,beforeUpload:function(e,t){var n=e.size/1024/1024;return Y.concat(t).length>G?(Y.pop(),J(u()(Y)),m.ZP.error("最多只能上传".concat(G,"个文件")),O?Promise.reject():(te(),!1)):n=G?q(!0):q(!1),J(u()(Y)),Y=Y.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,Y),n(Y)):m.ZP.error(null===(o=e.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message)},onRemove:(ne=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!P){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var o;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(o=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return ne.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(j,s()(s()({},oe),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!M&&(0,y.jsxs)(h.Z,s()(s()({},oe),{},{children:[(0,y.jsxs)(v.ZP,{disabled:V,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),T]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:D||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),f=(n(80443),n(90630),n(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,o=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,l.useEffect)((function(){h&&h.setOption("mode",o)}),[h,o]),(0,l.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,l.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,i()({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,f.jsx)("div",{className:"my-codemirror-container",children:(0,f.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,o=(0,l.useState)("python"),r=a()(o,2),d=r[0],p=r[1];return(0,f.jsxs)(c.Z,i()(i()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,f.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,f.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,f.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,f.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,f.jsx)(v,{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:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var o=n(91232),i=n.n(o),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),f=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,o=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})})},g=n(82242),v=n.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,o=e.icon,i=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(i)},children:[(0,h.jsx)("i",{className:"".concat(o)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,o=e.showNullProgramButton,i=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,v()(v()({},e),{},{onActionCallback:i})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),j={labelCol:{span:4},wrapperCol:{span:20}},B=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,v()(v()({},j),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},T=n(73145),C=n(28486),P=n(95237),N=n(36709),L=function(e){var t=e.callback,n=e.onCancel,o=document.createElement("canvas"),i=o.getContext("2d");o.width=1e3,o.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,o.width,o.height);var r=o.toDataURL("image/png");return(0,h.jsx)(P.Z,{style:{height:"100vh"},children:(0,h.jsx)(N.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),M=n.n(E),A=n(41498),G=n.n(A),Z=n(37205),O=n.n(Z),I=n(12378);function R(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(R,go.CommandHandler),R.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},R.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},R.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},R.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},R.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},R.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},R.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},R.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o0){for(var o=a.elt(l-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(r)}else if("Down"===n.key){var i;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))o.y?1:n.xo.x?1:0})),t},R.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},R.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(R.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(R.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var D=R,F=(n(41034),n(85160)),z=n(43418),H=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=I;var U=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],f=d[1],m=function(){var e=G()(M()().mark((function e(){var t,i;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:i=e.sent,n({src:i.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){f(p+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(P.Z,{children:[(0,h.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(H.Z,{onClick:function(){l.current=!l.current,f(p+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(F.FI,{initDiagram:function(){var e=I.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",f="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function b(t,n){var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(o){var i=n.part.adornedPart,r=(new I.Point).setRectSpot(i.actualBounds,t);r.subtract(i.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(i.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=o.copyNodeData(i.data);o.setGroupKeyForNodeData(a,o.getGroupKeyForNodeData(i.data)),o.addNodeData(a);var l={from:i.key,to:o.getKeyForNodeData(a)};o.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(I.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?25:18,height:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:o,contextClick:o})}function y(t){return e(I.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,o){n.handled=!0,n.diagram.model.commit((function(n){n.set(o.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(I.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(u,"fill"),_(p,"fill"),_(f,"fill"),_(h,"fill"))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(g,"fill"),_(v,"fill"),_(m,"fill"),_(w,"fill")))]}function S(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function j(t,n){return n||(n="thickness"),e(I.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function B(t,n){return n||(n="dash"),e(I.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function T(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",j(1),j(2),j(3),j(4))),e("ContextMenuButton",e(I.Panel,"Horizontal",B(null),B([2,4]),B([4,4])))]}function C(t,n){return n||(n="figure"),e(I.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function P(t){return e(I.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(I.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function L(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var o=n.part.adornedPart;e.set(o.data,t?"toSpot":"fromSpot",I.Spot.stringify(I.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var o=0,i=I.Spot.RightSide;t.equals(I.Spot.Top)?(o=270,i=I.Spot.TopSide):t.equals(I.Spot.Left)?(o=180,i=I.Spot.LeftSide):t.equals(I.Spot.Bottom)&&(o=90,i=I.Spot.BottomSide),n||(o-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",I.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:o,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return o.current=new I.Diagram(i.current,{padding:20,grid:e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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(D),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),o.current.nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center,locationObjectName:"SHAPE",desiredSize:new I.Size(120,60),minSize:new I.Size(40,40),resizable:!0,resizeCellSize:new I.Size(10,10),rotatable:!0},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),new I.Binding("desiredSize","size",I.Size.parse).makeTwoWay(I.Size.stringify),e(I.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("figure"),new I.Binding("fill"),new I.Binding("stroke","borderColor"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(I.TextBlock,{margin:1,textAlign:"center",overflow:I.TextBlock.OverflowEllipsis,editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(I.Panel,"Vertical",{maxSize:new I.Size(200,NaN)},e(I.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new I.Binding("text")),e(I.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new I.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Placeholder,{padding:10}),b(I.Spot.Top,"TriangleUp"),b(I.Spot.Left,"TriangleLeft"),b(I.Spot.Right,"TriangleRight"),b(I.Spot.Bottom,"TriangleDown"),y({alignment:new I.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(I.Panel,"Horizontal",C("Rectangle"),C("RoundedRectangle"),C("Ellipse"),C("Diamond"))),e("ContextMenuButton",e(I.Panel,"Horizontal",C("Parallelogram2"),C("ManualOperation"),C("Procedure"),C("Cylinder1"))),e("ContextMenuButton",e(I.Panel,"Horizontal",C("Terminator"),C("CreateRequest"),C("Document"),C("TriangleDown"))),k(),S(),T()),o.current.groupTemplate=e(I.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:I.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.Panel,"Auto",{name:"BODY"},e(I.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("fill"),new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Placeholder,{background:"transparent",margin:20})),e(I.TextBlock,{alignment:I.Spot.Top,alignmentFocus:I.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new I.Binding("text"),new I.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Panel,"Auto",e(I.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(I.Placeholder,{margin:1.5})),y({alignment:I.Spot.TopRight,alignmentFocus:I.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),T()),o.current.linkTemplate=e(I.Link,{layerName:"Foreground",routing:I.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new I.Binding("fromSpot","fromSpot",I.Spot.parse),new I.Binding("toSpot","toSpot",I.Spot.parse),new I.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("points").makeTwoWay(),e(I.Shape,{strokeWidth:2},new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,0),segmentOrientation:I.Link.OrientAlong,alignmentFocus:I.Spot.Right,figure:"circle",width:10,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 1===e}))),e(I.Shape,{segmentIndex:-1,segmentOffset:new I.Point(-10,6),segmentOrientation:I.Link.OrientPlus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return e>=1})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,-6),segmentOrientation:I.Link.OrientMinus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 2===e})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.TextBlock,{alignmentFocus:new I.Spot(0,1,-4,0),editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(I.Adornment,e(I.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:P(2)},new I.Binding("pathPattern","thickness",P)),y({alignmentFocus:new I.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",S(),T(),e("ContextMenuButton",e(I.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(I.Panel,"Horizontal",e(I.Panel,"Spot",L(!1),E(I.Spot.Top,!1),E(I.Spot.Left,!1),E(I.Spot.Right,!1),E(I.Spot.Bottom,!1)),e(I.Panel,"Spot",{margin:new I.Margin(0,0,0,2)},L(!0),E(I.Spot.Top,!0),E(I.Spot.Left,!0),E(I.Spot.Right,!0),E(I.Spot.Bottom,!0))))),new I.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(I.Link,{locationSpot:I.Spot.Center,selectionAdornmentTemplate:e(I.Adornment,"Link",{locationSpot:I.Spot.Center},e(I.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(I.Shape,{toArrow:"Standard",stroke:null}))},{routing:I.Link.AvoidsNodes,curve:I.Link.JumpOver,corner:5,toShortLength:4},new I.Binding("points"),e(I.Shape,{isPanelMain:!0,strokeWidth:2}),e(I.Shape,{toArrow:"Standard",stroke:null})),model:new I.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(O()(I.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center},new I.Binding("location","location",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.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 I.Binding("stroke").makeTwoWay(),new I.Binding("fill").makeTwoWay(),new I.Binding("figure")),e(I.TextBlock,{margin:new I.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new I.Size(16,16),maxSize:new I.Size(10,NaN),textAlign:"center",editable:!0},new I.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),o.current.grid.visible=!0,o.current.grid.gridCellStroke="darkgray",o.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=o.current,o.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:i})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Y.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Y.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(_.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],f=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:o||1e3,height:i||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){m.current.appName=p?"3D":"graphing",s.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){f(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(P.Z,{align:"middle",children:[(0,h.jsx)(H.Z,{flex:1,children:(0,h.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return f(e)}})}),(0,h.jsx)(H.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),oe=n(36761),ie=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",fe={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},he=n(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},we+"-B","bold"),we+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,o=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,j=e.mode,P=void 0===j?"markdown":j,N=e.id,E=void 0===N?"markdown-editor-id":N,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,Z=void 0!==G&&G,O=e.showNullButton,I=void 0!==O&&O,R=e.showNullProgramButton,D=void 0!==R&&R,F=e.hidetoolBar,H=void 0!==F&&F,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,pe=void 0!==te&&te,we=e.disabledFill,xe=void 0!==we&&we,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,je=void 0===Se?"":Se,Be=e.extraUse,Te=(0,c.useState)(null),Ce=a()(Te,2),Pe=Ce[0],Ne=Ce[1],Le=(0,c.useState)(n),Ee=a()(Le,2),Me=Ee[0],Ae=Ee[1],Ge=(0,c.useState)(k),Ze=a()(Ge,2),Oe=Ze[0],Ie=Ze[1],Re=(0,c.useState)(V),De=a()(Re,2),Fe=De[0],ze=De[1],He=(0,c.useState)(""),We=a()(He,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),ot=(nt[0],nt[1]),it=(0,c.useState)(0),rt=a()(it,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),ft=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(je),null==Pe||Pe.setValue(je),window.scrollTo(0,e)}),[je]),(0,c.useEffect)((function(){null==Y||Y(Fe)}),[Fe]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var o=n.clipboardData;if(o){var i=o.types.toString(),r=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==P)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,C.I)(s,(function(e){var n,o,i;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(ie.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:P,lineNumbers:!w,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),o=n.getCursor(),i=n.getLine(o.line),r=i.charAt(o.ch-1),a=i.lastIndexOf("@▁@",o.ch),l=i.lastIndexOf("@▁▁@",o.ch),s=a>l?a:l,c=a>l?3:4;if(-1===me.indexOf(r))return null;if(console.log("change1:",t,e,i,o,s,a,l,r),s>=0&&o.ch-s<5){var u=s+c;return n.replaceRange("",{line:o.line,ch:s},{line:o.line,ch:u}),{line:o.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){ft.current}),[Qe,ft,Fe]);(0,c.useEffect)((function(){if(Pe){var e=function(){var e=new p.Z((function(e){var t,n=i()(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;(o.target.offsetHeight>0||o.target.offsetWidth>0)&&(gt(),Pe.setSize("100%","100%"),Pe.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Pe,gt]),(0,c.useEffect)((function(){if(Pe){for(var e=[],t=function(){var t=a()(o[n],2),i=t[0],r=t[1],l=s()({},i,(function(){vt(r)}));e.push(l),Pe.addKeyMap(l)},n=0,o=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(E,Me),ot(!0))}}),1e4),(0,c.useEffect)((function(){Ie(k)}),[Pe,k]),(0,c.useEffect)((function(){Pe&&_&&Pe.focus()}),[Pe,_]),(0,c.useEffect)((function(){if(Oe&&Pe){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Pe.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Pe,Oe]),(0,c.useEffect)((function(){if(Pe&&K){var e=function(e,t){K(e,t)};return Pe.on("beforeChange",e),function(){Pe.off("beforeChange",e)}}}),[Pe,K]),(0,c.useEffect)((function(){if(Pe&&q){var e=function(){q(Pe.getValue())};return Pe.on("blur",e),function(){Pe.off("blur",e)}}}),[Pe,q]),(0,c.useEffect)((function(){if(Pe){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(D?o(n,_t(n)):o(n))};return Pe.on("change",e),function(){Pe.off("change",e)}}}),[Pe,o]),(0,c.useEffect)((function(){if(Pe)if(null==n)Pe.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Pe.getValue()&&(Pe.setValue(n),Ae(n),Pe.setCursor(pe?1:Pe.lineCount(),0),window.scrollTo(0,e))}}),[Pe,n]);var vt=(0,c.useCallback)((function(e){var t=Pe.getCursor(),n=Pe.getSelection(),o=n.split("\n");switch(e){case"bold":return Pe.replaceSelection("**"+n+"**"),""===n&&Pe.setCursor(t.line,t.ch+2),Pe.focus();case"italic":return Pe.replaceSelection("*"+n+"*"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"code":return Pe.replaceSelection("`"+n+"`"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"inline-latex":return qe("inline-latex"),Pe.focus();case"latex":return Pe.replaceSelection("```latex\n"+n+"\n```"),Pe.setCursor(t.line+1,n.length+1),Pe.focus();case"line-break":return Pe.replaceSelection("
\n"),Pe.focus();case"list-ul":return""===n?Pe.replaceSelection("- "+n):Pe.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Pe.focus();case"list-ol":return""===n?Pe.replaceSelection("1. "+n):Pe.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Pe.focus();case"add-null-ch":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("▁"),Pe.focus();case"add-signal":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("@▁@"),Pe.focus();case"add-multiple":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection(me),Pe.focus();case"inster-template-1":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Pe.focus();case"eraser":return Pe.setValue(""),Pe.focus();case"trigger-watch":return Ie(!Oe),Pe.focus();case"trigger-full-screen":return ze(!Fe),Pe.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Pe,Oe,Fe]),wt=(0,c.useCallback)((function(e,t){var n,o,i,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Pe.replaceSelection("[".concat(l,"](").concat(s,")")),Pe.focus();case ue:var c=e.language,u=e.content;return Pe.replaceSelection(["```"+c,u,"```"].join("\n")),Pe.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),f=0;f-1||null==v||!v.type?g?Pe.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Pe.replaceSelection("![,](".concat(m,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Pe.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Pe.replaceSelection('').concat(v.name,"")):ge.includes(w)?Pe.replaceSelection('').concat(v.name,"")):Pe.replaceSelection("[".concat(v.name,"](").concat(ie.Z.API_SERVER).concat(m,")")),Pe.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},o=ht.current,i=!1,r=0;return o.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){o.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Pe,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:ve(l),height:ve(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(o)}return 0}),[Ye]),function(e){var t=[];if(D){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,o){var i=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>i-20&&oD.max_num)){e.next=3;break}return h.ZP.info("最大人数不能小于最小人数"),e.abrupt("return");case 3:return(n=a()({},D)).attachment_ids&&(n.attachment_ids=null==n||null===(o=n.attachment_ids)||void 0===o?void 0:o.map((function(e){return e.response.id}))),n.reference_attachment_ids&&(n.reference_attachment_ids=null==n||null===(r=n.reference_attachment_ids)||void 0===r?void 0:r.map((function(e){return e.response.id}))),s=(l=G).coursesId,c=l.categoryId,e.next=9,(0,S.H1)(a()(a()({coursesId:s,category:c},n),{},{type:3}));case 9:0===(u=e.sent).status&&(K(u.homework_id),(0,_.L9)(["教学课堂","分组作业","新建分组作业"]),p.history.push("/classrooms/".concat(s,"/group_homework/").concat(u.homework_id,"/detail")));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function K(e){return Y.apply(this,arguments)}function Y(){return(Y=s()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=V&&V.ec_point_ids){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,M.ZP)("/api/ec_courses/".concat(null==V?void 0:V.ec_course_id,"/ec_points/set_work_points.json"),{method:"post",body:a()({homework_common_id:t},V)});case 4:e.sent;case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,A.jsxs)("section",{className:j,children:[z.course_name&&(0,A.jsx)("section",{className:"animated fadeIn",children:(0,A.jsx)("aside",{className:"mt10",children:z.category&&(0,A.jsxs)(m.Z,{separator:">",children:[(0,A.jsx)(m.Z.Item,{children:(0,A.jsx)(p.Link,{to:"/classrooms/".concat(z.course_id,"/group_homework"),children:z.course_name})}),(0,A.jsx)(m.Z.Item,{children:(0,A.jsx)(p.Link,{to:"/classrooms/".concat(z.course_id,"/group_homework"),children:z.category.category_name})}),(0,A.jsx)(m.Z.Item,{children:"新建详情"})]})})}),(0,A.jsx)("aside",{className:"font24 bold mt20 mb20",children:"新建分组作业"}),(0,A.jsxs)(f.Z,{form:O,className:B,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){F(a()({},O.getFieldsValue()))},initialValues:{base_on_project:!1},onFinish:U,children:[(0,A.jsx)("div",{className:T,children:(0,A.jsx)(f.Z.Item,{name:"name",label:"标题:",rules:[{required:!0,message:"请输入标题"}],children:(0,A.jsx)(g.Z,{maxLength:60,suffix:"".concat((null===(t=D.name)||void 0===t?void 0:t.length)||0,"/60"),placeholder:"例如:从Python程序设计-入门精通"})})}),(0,A.jsxs)("div",{className:C,children:[(0,A.jsx)(f.Z.Item,{name:"description",label:"内容:",rules:[{required:!0,message:"请输入作业的简介"},{max:5e3,message:"作业简介最大限制5000个字符"}],children:(0,A.jsx)(k.Z,{watch:!0,defaultValue:D.intro})}),(0,A.jsx)("div",{children:(0,A.jsx)(f.Z.Item,{name:"attachment_ids",children:(0,A.jsx)(L.Z,{})})}),(0,A.jsxs)(v.Z,{gutter:[20,20],children:[(0,A.jsx)(w.Z,{flex:"230px",children:(0,A.jsx)(f.Z.Item,{name:"min_num",label:"分组设置",rules:[{required:!0,message:"请填写每组最小人数"}],children:(0,A.jsx)(b.Z,{style:{width:200},min:1,placeholder:"请填写每组最小人数"})})}),(0,A.jsx)(w.Z,{flex:"230px",children:(0,A.jsx)(f.Z.Item,{name:"max_num",label:(0,A.jsx)("div",{children:" "}),rules:[{required:!0,message:"请填写每组最大人数"}],children:(0,A.jsx)(b.Z,{style:{width:200},max:100,placeholder:"请填写每组最大人数"})})}),(0,A.jsx)(w.Z,{children:(0,A.jsx)("div",{className:"mt30",children:"(学生提交作品时需要关联同组成员,组内成员作品共享)"})})]}),!(null!=r&&null!==(n=r.setting)&&void 0!==n&&n.is_local)&&(0,A.jsx)(v.Z,{children:(0,A.jsxs)(w.Z,{children:[(0,A.jsx)(f.Z.Item,{name:"base_on_project",valuePropName:"checked",children:(0,A.jsx)(y.Z,{value:!0,children:"基于项目实施"})}),(0,A.jsx)("span",{className:"c-light-black",children:"(选中,则必须在本平台创建项目,项目管理员可以提交作品;不选中,无需在平台创建项目,任意小组成员均可以提交作品)"})]})})]}),(0,A.jsxs)("div",{className:C,children:[(0,A.jsx)(f.Z.Item,{name:"reference_answer",label:"参考答案:",children:(0,A.jsx)(k.Z,{watch:!0,defaultValue:D.notice})}),(0,A.jsx)("div",{children:(0,A.jsx)(f.Z.Item,{name:"reference_attachment_ids",children:(0,A.jsx)(L.Z,{})})})]})]}),(0,A.jsx)("div",{className:C,children:(0,A.jsx)(E.Z,{setitem:function(e){return q(a()({},e))}})}),(0,A.jsx)("div",{className:P,children:(0,A.jsx)("div",{className:"pt40 mb30",children:(0,A.jsxs)(f.Z.Item,{children:[(0,A.jsx)(x.ZP,{size:"middle",type:"primary",onClick:function(){O.submit()},className:"".concat(N," mr20"),htmlType:"submit",loading:l["newCourse/editCourse"]||l["newCourse/submitCourse"],children:"提交"}),(0,A.jsx)(x.ZP,{size:"middle",type:"primary",ghost:!0,className:N,onClick:function(){return p.history.push("/classrooms/".concat(G.coursesId,"/group_homework"))},children:"取消"})]})})})]})}))},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return f},jP:function(){return p},rO:function(){return c}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,l.v_)("libraries.json",e)}function f(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__GroupHomework__EditWork__index.71e2f803.async.js b/p__Classrooms__Lists__GroupHomework__EditWork__index.71e2f803.async.js deleted file mode 100644 index 4337585771..0000000000 --- a/p__Classrooms__Lists__GroupHomework__EditWork__index.71e2f803.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[60479,4977,69932],{60186:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(5891),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=n(22589),l=function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))};var s=r.forwardRef(l)},57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,r=!1,o=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function k(){try{return window.self!==window.top}catch(e){return!0}}function C(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,I(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,O(e,t))},e.getHTML5CodebaseVersion=function(){return h},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){x=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,r="auto",o=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var A=function(e){return e&&"false"!==e},T=function(t,n,i){y(h)<=4.2&&(i=!0);var r=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==h||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(r=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var o=document.createElement("div");o.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(y(h)<=4.4)A(n.showToolBar)&&(n.height-=7),A(n.showAlgebraInput)&&(n.height-=37),n.width<605&&A(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(A(n.showToolBar)||A(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=A(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),f(e)},b||w.appendChild(k)):o.appendChild(k),w.appendChild(o),b||t.appendChild(w),setTimeout((function(){e.resize()}),1)}function C(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),G("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function j(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){C(e.article,e.params)})),html5AppletsToProcess=null)},y(h)<5&&(e.className+=" geogebraweb")):C(e,t)}if(r){scriptLoadStarted=!0;for(var S=0;S0?(r.remove(),l.attr("id","fullscreencontent").show(),jQuery(o).append(l),window.dispatchEvent(new Event("resize"))):T(r,t,!1),window.GGBT_wsf_view.launchFullScreen(o)}else m=i,T(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",r.appendChild(a)}return r.appendChild(c),r},L=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},Z=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,t){if(h=e,t)I(h,!0);else{var o,a,l=!r;if(l){var s=y(h);!isNaN(s)&&s<4.4&&(l=!1)}o="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=h.indexOf("//");for(var u in a=c>0?h:0===c?o+h:"https://www.geogebra.org/apps/5.2.814.0/",Z)if(h.slice(-1*Z[u].length)===Z[u]||h.slice(-1*(Z[u].length+1))===Z[u]+"/")return void I(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||A(n.showToolBar)||A(n.showMenuBar)||A(n.showAlgebraInput)||A(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",I(a,!1)}},I=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),f=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?Z.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(h=n[n.length-3]).substr(0,4)?h=h.substr(4,1)+"."+h.substr(5,1):"war"!==h.substr(0,3)&&"beta"!==h.substr(0,4)||(h="5.0");var 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."),O("5.0",t))}},G=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function D(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&I(c,f),l=!0}return void 0!==n.material_id?j(D):D(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,r){if(e.isScreenshoGenerator)return 1;var o,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(o=e.autoHeight)&&"false"!==o,c=function(e,t,n,i,r,o){var a=null;if(null!=o&&""!=o)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+o+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,p=0,f=0,m=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var h=e.getBoundingClientRect();h.left>0&&h.left<=s&&(void 0===r||!r)&&("rtl"===document.dir?(p=s-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===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?o:(r=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==o?Math.min(o,r):r)}function r(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),r=(t-i.width)/2,o=(n-i.height)/2;o<0&&(o=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=r<40?"40px":r+"px",e.style.top=o+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=o<40?"40px":o+"px",e.style.left=r+"px")}return{responsiveResize:function(n,o){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(o.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(o,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],r=O;r0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+y+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var A=function(e){var t=e.value,n=e.onChange,i=e.action,o=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,B=e.title,A=void 0===B?"上传附件":B,T=e.showRemoveModal,E=void 0!==T&&T,_=e.accept,N=void 0===_?"":_,P=e.additionalText,M=e.isDragger,L=e.number,Z=void 0===L?1e3:L,O=e.aloneClear,I=void 0!==O&&O,G=e.realTimeRemove,D=void 0===G||G,z=e.uploadText,R=(0,f.useState)(!1),H=p()(R,2),F=H[0],W=H[1],V=(0,f.useState)(t||[]),U=p()(V,2),K=U[0],q=U[1],Y=(0,f.useState)(1),J=p()(Y,2),Q=J[0],X=J[1];(0,f.useEffect)((function(){t&&(1===Q&&q(u()(t)),X(2),Z===(null==t?void 0:t.length)&&W(!0))}),[t]);var $,ee=function(){setTimeout((function(){K.pop(),q(u()(K))}),500)},te={multiple:!0,disabled:F,accept:N,withCredentials:!0,fileList:K,beforeUpload:function(e,t){var n=e.size/1024/1024;return K.concat(t).length>Z?(K.pop(),q(u()(K)),h.ZP.error("最多只能上传".concat(Z,"个文件")),I?Promise.reject():(ee(),!1)):n=Z?W(!0):W(!1),q(u()(K)),K=K.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(y)&&(e.name="".concat(e.name).concat(y).concat(k(e.size))),s()({},e)})),console.log("info:",e,K),n(K)):h.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:($=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(D){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!E){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,x.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,h.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return $.apply(this,arguments)})};return(0,x.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,x.jsxs)(S,s()(s()({},te),{},{children:[(0,x.jsx)("p",{className:"ant-upload-drag-icon",children:(0,x.jsx)(C.Z,{})}),(0,x.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,x.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),P]})),!M&&(0,x.jsxs)(m.Z,s()(s()({},te),{},{children:[(0,x.jsxs)(v.ZP,{disabled:F,className:"upload_button",children:[(0,x.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),A]}),(0,x.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:z||"(单个文件最大".concat(d,"MB)")})]}))]})}},16605:function(e,t,n){"use strict";n.d(t,{h:function(){return p},x:function(){return f}});var i=n(82242),r=n.n(i),o=n(39647),a=n.n(o),l=n(16318),s=n(65648),c=n(38279),u=n(37712),d=["value","onChange","scrollId"],p=function(e){var t=e.value,n=e.onChange,i=e.scrollId,o=a()(e,d);return(0,u.jsx)("div",{id:i||"",children:(0,u.jsx)(l.Z,r()(r()({},o),{},{defaultValue:t,onChange:function(e,t){console.log("a:",e,t),null!=t&&t.length?n(e,t):n(e)}}))})},f=function(e){var t=e.value,n=e.onChange,i=e.placeholder,r=e.height,o=void 0===r?140:r,a=e.isEdit,d=e.miniToolbar,p=e.watch,f=void 0===p||p;return a?(0,u.jsx)(l.Z,{watch:f,isFocus:!0,height:o||void 0,placeholder:i,defaultValue:t,onChange:n,miniToolbar:d}):(0,u.jsx)("div",{style:{cursor:"pointer"},children:t?(0,u.jsx)(c.Z,{className:s.Z.inputBorder,value:t}):(0,u.jsx)("div",{className:"".concat(s.Z.inputBorder," ").concat(s.Z.placeholder," inputBorderError"),children:i})})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var i=n(82242),r=n.n(i),o=n(79800),a=n.n(o),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),f=(n(80443),n(90630),n(37712)),m=s.default.Option,h={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,i=e.mode,o=e.options,s=void 0===o?{}:o,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),m=d[0],h=d[1];return(0,l.useEffect)((function(){if(m){var e=function(e){var t=e.getValue();n&&n(t)};return m.on("change",e),function(){m.off("change",e)}}}),[m,n]),(0,l.useEffect)((function(){m&&m.setOption("mode",i)}),[m,i]),(0,l.useEffect)((function(){m&&(t===m.getValue()&&""!==t||setTimeout((function(){m.setValue(t||"")}),300))}),[m,t]),(0,l.useEffect)((function(){if(c.current&&!m){var e=p().fromTextArea(c.current,r()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));h(e)}}),[c.current,m]),(0,f.jsx)("div",{className:"my-codemirror-container",children:(0,f.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,l.useState)("python"),o=a()(i,2),d=o[0],p=o[1];return(0,f.jsxs)(c.Z,r()(r()({},h),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,f.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,f.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,f.jsx)(m,{value:e,children:g[e][0]},e)}))})}),(0,f.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,f.jsx)(v,{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:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return ye}});var i=n(91232),r=n.n(i),o=n(79800),a=n.n(o),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),f=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),m=n(37712),h=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),v=n.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,r=e.actionName,o=e.className,a=void 0===o?"":o,l=e.children;return(0,m.jsxs)("a",{title:n,className:a,onClick:function(){t(r)},children:[(0,m.jsx)("i",{className:"".concat(i)}),l]})}var x=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,r=e.onActionCallback,o=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,m.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,m.jsx)("li",{children:e.actionName?(0,m.jsx)(b,v()(v()({},e),{},{onActionCallback:r})):(0,m.jsx)("span",{className:"v-line"})},t)})),n?(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,m.jsx)("li",{children:s}),(0,m.jsx)("li",{className:"btn-full-screen",children:(0,m.jsx)(b,{icon:"".concat(o?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:o?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:r})})]})},y=n(24808),k=n(78241),C=n(92832),j=n(3113),S={labelCol:{span:4},wrapperCol:{span:20}},B=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(k.Z,v()(v()({},S),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(k.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,m.jsx)(C.Z,{})}),(0,m.jsx)(k.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,m.jsx)(C.Z,{})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(j.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(j.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},A=n(73145),T=n(28486),E=n(95237),_=n(36709),N=function(e){var t=e.callback,n=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 o=i.toDataURL("image/png");return(0,m.jsx)(E.Z,{style:{height:"100vh"},children:(0,m.jsx)(_.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:o,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},P=n(7557),M=n.n(P),L=n(41498),Z=n.n(L),O=n(37205),I=n.n(O),G=n(12378);function D(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(D,go.CommandHandler),D.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},D.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},D.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},D.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},D.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},D.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},D.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},D.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(o)}else if("Down"===n.key){var r;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(r=this._sortTreeChildrenByY(t).first())&&e.select(r);else for(;null!==t;){var o,a,l;if(null===(o=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(o)).indexOf(t))i.y?1:n.xi.x?1:0})),t},D.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},D.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(D.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(D.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 z=D,R=(n(41034),n(85160)),H=n(43418),F=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",U="maxH60___Pd4Re";window.go=G;var K=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),r=(0,c.useRef)(),o=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],f=d[1],h=function(){var e=Z()(M()().mark((function e(){var t,r;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:r=e.sent,n({src:r.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){f(p+1)}),[]),(0,m.jsx)("div",{ref:s,className:l.current?"".concat(U," body-overflow-initial"):"body-overflow-initial",children:(0,m.jsx)(H.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,m.jsxs)(E.Z,{children:[(0,m.jsx)(F.Z,{flex:1,children:"插入流程图"}),(0,m.jsx)(F.Z,{onClick:function(){l.current=!l.current,f(p+1)},children:(0,m.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,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:V,ref:o})]}),(0,m.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,m.jsx)(R.FI,{initDiagram:function(){var e=G.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",f="#d5ebff",m="#f2dfe0",h="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var r=n.part.adornedPart,o=(new G.Point).setRectSpot(r.actualBounds,t);o.subtract(r.location),o.scale(2,2),o.x+=130*Math.sign(o.x),o.y+=130*Math.sign(o.y),o.add(r.location),o.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(r.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(r.data)),i.addNodeData(a);var l={from:r.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=o,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(G.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(G.Spot.Top)||t.equals(G.Spot.Bottom)?25:18,height:t.equals(G.Spot.Top)||t.equals(G.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function x(t){return e(G.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function y(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function k(t,n){return n||(n="color"),e(G.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:y(n,t),contextClick:y(n,t)})}function C(){return[e("ContextMenuButton",e(G.Panel,"Horizontal",k(u,"fill"),k(p,"fill"),k(f,"fill"),k(m,"fill"))),e("ContextMenuButton",e(G.Panel,"Horizontal",k(g,"fill"),k(v,"fill"),k(h,"fill"),k(w,"fill")))]}function j(){return[e("ContextMenuButton",e(G.Panel,"Horizontal",k(d),k(a),k(n),k(t))),e("ContextMenuButton",e(G.Panel,"Horizontal",k(u),k(l),k(s),k(c)))]}function S(t,n){return n||(n="thickness"),e(G.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:y(n,t),contextClick:y(n,t)})}function B(t,n){return n||(n="dash"),e(G.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:y(n,t),contextClick:y(n,t)})}function A(){return[e("ContextMenuButton",e(G.Panel,"Horizontal",S(1),S(2),S(3),S(4))),e("ContextMenuButton",e(G.Panel,"Horizontal",B(null),B([2,4]),B([4,4])))]}function T(t,n){return n||(n="figure"),e(G.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:y(n,t),contextClick:y(n,t)})}function E(t){return e(G.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function _(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(G.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:y("dir",t),contextClick:y("dir",t)})}function N(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",G.Spot.stringify(G.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(G.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function P(t,n){var i=0,r=G.Spot.RightSide;t.equals(G.Spot.Top)?(i=270,r=G.Spot.TopSide):t.equals(G.Spot.Left)?(i=180,r=G.Spot.LeftSide):t.equals(G.Spot.Bottom)&&(i=90,r=G.Spot.BottomSide),n||(i-=180);var o=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",G.Spot.stringify(r)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(G.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:o,contextClick:o})}return i.current=new G.Diagram(r.current,{padding:20,grid:e(G.Panel,"Grid",e(G.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(G.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(z),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(G.Node,"Auto",{locationSpot:G.Spot.Center,locationObjectName:"SHAPE",desiredSize:new G.Size(120,60),minSize:new G.Size(40,40),resizable:!0,resizeCellSize:new G.Size(10,10),rotatable:!0},new G.Binding("location","loc",G.Point.parse).makeTwoWay(G.Point.stringify),new G.Binding("desiredSize","size",G.Size.parse).makeTwoWay(G.Size.stringify),e(G.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:G.Spot.AllSides,toSpot:G.Spot.AllSides},new G.Binding("figure"),new G.Binding("fill"),new G.Binding("stroke","borderColor"),new G.Binding("strokeWidth","thickness"),new G.Binding("strokeDashArray","dash")),e(G.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(G.TextBlock,{margin:1,textAlign:"center",overflow:G.TextBlock.OverflowEllipsis,editable:!0},new G.Binding("text").makeTwoWay(),new G.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(G.Panel,"Vertical",{maxSize:new G.Size(200,NaN)},e(G.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new G.Binding("text")),e(G.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new G.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(G.Adornment,"Spot",e(G.Placeholder,{padding:10}),b(G.Spot.Top,"TriangleUp"),b(G.Spot.Left,"TriangleLeft"),b(G.Spot.Right,"TriangleRight"),b(G.Spot.Bottom,"TriangleDown"),x({alignment:new G.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(G.Panel,"Horizontal",T("Rectangle"),T("RoundedRectangle"),T("Ellipse"),T("Diamond"))),e("ContextMenuButton",e(G.Panel,"Horizontal",T("Parallelogram2"),T("ManualOperation"),T("Procedure"),T("Cylinder1"))),e("ContextMenuButton",e(G.Panel,"Horizontal",T("Terminator"),T("CreateRequest"),T("Document"),T("TriangleDown"))),C(),j(),A()),i.current.groupTemplate=e(G.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:G.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new G.Binding("location","loc",G.Point.parse).makeTwoWay(G.Point.stringify),e(G.Panel,"Auto",{name:"BODY"},e(G.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:G.Spot.AllSides,toSpot:G.Spot.AllSides},new G.Binding("fill"),new G.Binding("stroke","color"),new G.Binding("strokeWidth","thickness"),new G.Binding("strokeDashArray","dash")),e(G.Placeholder,{background:"transparent",margin:20})),e(G.TextBlock,{alignment:G.Spot.Top,alignmentFocus:G.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new G.Binding("text"),new G.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(G.Adornment,"Spot",e(G.Panel,"Auto",e(G.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(G.Placeholder,{margin:1.5})),x({alignment:G.Spot.TopRight,alignmentFocus:G.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",C(),j(),A()),i.current.linkTemplate=e(G.Link,{layerName:"Foreground",routing:G.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new G.Binding("fromSpot","fromSpot",G.Spot.parse),new G.Binding("toSpot","toSpot",G.Spot.parse),new G.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new G.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new G.Binding("points").makeTwoWay(),e(G.Shape,{strokeWidth:2},new G.Binding("stroke","color"),new G.Binding("strokeWidth","thickness"),new G.Binding("strokeDashArray","dash")),e(G.Shape,{segmentIndex:0,segmentOffset:new G.Point(15,0),segmentOrientation:G.Link.OrientAlong,alignmentFocus:G.Spot.Right,figure:"circle",width:10,strokeWidth:0},new G.Binding("fill","color"),new G.Binding("visible","dir",(function(e){return 1===e}))),e(G.Shape,{segmentIndex:-1,segmentOffset:new G.Point(-10,6),segmentOrientation:G.Link.OrientPlus90,alignmentFocus:G.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new G.Binding("fill","color"),new G.Binding("visible","dir",(function(e){return e>=1})),new G.Binding("width","thickness",(function(e){return 7+3*e})),new G.Binding("height","thickness",(function(e){return 7+3*e})),new G.Binding("segmentOffset","thickness",(function(e){return new G.Point(-15,4+1.5*e)}))),e(G.Shape,{segmentIndex:0,segmentOffset:new G.Point(15,-6),segmentOrientation:G.Link.OrientMinus90,alignmentFocus:G.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new G.Binding("fill","color"),new G.Binding("visible","dir",(function(e){return 2===e})),new G.Binding("width","thickness",(function(e){return 7+3*e})),new G.Binding("height","thickness",(function(e){return 7+3*e})),new G.Binding("segmentOffset","thickness",(function(e){return new G.Point(-15,4+1.5*e)}))),e(G.TextBlock,{alignmentFocus:new G.Spot(0,1,-4,0),editable:!0},new G.Binding("text").makeTwoWay(),new G.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(G.Adornment,e(G.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:E(2)},new G.Binding("pathPattern","thickness",E)),x({alignmentFocus:new G.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",j(),A(),e("ContextMenuButton",e(G.Panel,"Horizontal",_(0),_(1),_(2))),e("ContextMenuButton",e(G.Panel,"Horizontal",e(G.Panel,"Spot",N(!1),P(G.Spot.Top,!1),P(G.Spot.Left,!1),P(G.Spot.Right,!1),P(G.Spot.Bottom,!1)),e(G.Panel,"Spot",{margin:new G.Margin(0,0,0,2)},N(!0),P(G.Spot.Top,!0),P(G.Spot.Left,!0),P(G.Spot.Right,!0),P(G.Spot.Bottom,!0))))),new G.Palette(o.current,{maxSelectionCount:1,linkTemplate:e(G.Link,{locationSpot:G.Spot.Center,selectionAdornmentTemplate:e(G.Adornment,"Link",{locationSpot:G.Spot.Center},e(G.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(G.Shape,{toArrow:"Standard",stroke:null}))},{routing:G.Link.AvoidsNodes,curve:G.Link.JumpOver,corner:5,toShortLength:4},new G.Binding("points"),e(G.Shape,{isPanelMain:!0,strokeWidth:2}),e(G.Shape,{toArrow:"Standard",stroke:null})),model:new G.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(I()(G.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(G.Node,"Auto",{locationSpot:G.Spot.Center},new G.Binding("location","location",G.Point.parse).makeTwoWay(G.Point.stringify),e(G.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 G.Binding("stroke").makeTwoWay(),new G.Binding("fill").makeTwoWay(),new G.Binding("figure")),e(G.TextBlock,{margin:new G.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new G.Size(16,16),maxSize:new G.Size(10,NaN),textAlign:"center",editable:!0},new G.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(G.Panel,"Grid",e(G.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(G.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),i.current.grid.visible=!0,i.current.grid.gridCellStroke="darkgray",i.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=i.current,i.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,m.jsx)("div",{ref:r})]})]}),(0,m.jsx)("div",{className:"tr",children:(0,m.jsx)(j.ZP,{size:"large",onClick:h,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},q=n(5112),Y=n(94001),J=q.ZP.Group,Q={margin:"0 8px"},X=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(k.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,m.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,m.jsx)("span",{style:Q,children:"单元格数:"}),(0,m.jsx)("span",{style:Q,children:"行数"}),(0,m.jsx)(k.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,m.jsx)(Y.Z,{})}),(0,m.jsx)("span",{style:Q,children:"列数"}),(0,m.jsx)(k.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,m.jsx)(Y.Z,{})})]}),(0,m.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,m.jsx)("span",{style:Q,children:"对齐方式:"}),(0,m.jsx)(k.Z.Item,{name:"align",children:(0,m.jsxs)(J,{children:[(0,m.jsx)(q.ZP,{value:"default",children:(0,m.jsx)("i",{className:"fa fa-align-justify"})}),(0,m.jsx)(q.ZP,{value:"left",children:(0,m.jsx)("i",{className:"fa fa-align-left"})}),(0,m.jsx)(q.ZP,{value:"center",children:(0,m.jsx)("i",{className:"fa fa-align-center"})}),(0,m.jsx)(q.ZP,{value:"right",children:(0,m.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(j.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(j.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,r=e.height,o=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],f=d[1],h=(0,c.useRef)({id:l,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,c.useEffect)((function(){s.current=new(te())(h.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return o&&o(e),e};return(0,c.useEffect)((function(){h.current.appName=p?"3D":"graphing",s.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){f(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,m.jsxs)(E.Z,{align:"middle",children:[(0,m.jsx)(F.Z,{flex:1,children:(0,m.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return f(e)}})}),(0,m.jsx)(F.Z,{children:(0,m.jsx)(j.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),re=n(92723),oe=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",fe={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},me=n(77818);var he="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},we+"-B","bold"),we+"-I","italic"),xe=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),ye=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,o=e.width,l=void 0===o?"100%":o,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,b=e.isFocus,k=void 0!==b&&b,C=e.watch,j=e.insertTemp,S=e.mode,E=void 0===S?"markdown":S,_=e.id,P=void 0===_?"markdown-editor-id":_,M=e.showResizeBar,L=void 0!==M&&M,Z=e.noStorage,O=void 0!==Z&&Z,I=e.showNullButton,G=void 0!==I&&I,D=e.showNullProgramButton,z=void 0!==D&&D,R=e.hidetoolBar,F=void 0!==R&&R,W=e.fullScreen,V=void 0!==W&&W,U=e.onBlur,q=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,Q=void 0===J?"":J,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,pe=void 0!==te&&te,we=e.disabledFill,ye=void 0!==we&&we,ke=e.placeholder,Ce=void 0===ke?"":ke,je=e.values,Se=void 0===je?"":je,Be=e.extraUse,Ae=(0,c.useState)(null),Te=a()(Ae,2),Ee=Te[0],_e=Te[1],Ne=(0,c.useState)(n),Pe=a()(Ne,2),Me=Pe[0],Le=Pe[1],Ze=(0,c.useState)(C),Oe=a()(Ze,2),Ie=Oe[0],Ge=Oe[1],De=(0,c.useState)(V),ze=a()(De,2),Re=ze[0],He=ze[1],Fe=(0,c.useState)(""),We=a()(Fe,2),Ve=We[0],Ue=We[1],Ke=(0,c.useState)(0),qe=a()(Ke,2),Ye=qe[0],Je=qe[1],Qe=(0,c.useState)(g),Xe=a()(Qe,2),$e=Xe[0],et=Xe[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),rt=(0,c.useState)(0),ot=a()(rt,2),at=ot[0],lt=ot[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),ft=(0,c.useRef)(),mt=(0,c.useRef)(),ht=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Le(Se),null==Ee||Ee.setValue(Se),window.scrollTo(0,e)}),[Se]),(0,c.useEffect)((function(){null==Y||Y(Re)}),[Re]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var r=i.types.toString(),o=i.items;if("Files"===r||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==E)return;try{var a,l=o[1];"file"===(null===(a=o[0])||void 0===a?void 0:a.kind)&&(l=o[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,T.I)(s,(function(e){var n,i,r;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(r=s.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(re.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){oe.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:E,lineNumbers:!w,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",Ce):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),r=n.getLine(i.line),o=r.charAt(i.ch-1),a=r.lastIndexOf("@▁@",i.ch),l=r.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===he.indexOf(o))return null;if(console.log("change1:",t,e,r,i,s,a,l,o),s>=0&&i.ch-s<5){var u=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),k&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),_e(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){ft.current}),[$e,ft,Re]);(0,c.useEffect)((function(){if(Ee){var e=function(){var e=new p.Z((function(e){var t,n=r()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Ee.setSize("100%","100%"),Ee.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Ee,gt]),(0,c.useEffect)((function(){if(Ee){for(var e=[],t=function(){var t=a()(i[n],2),r=t[0],o=t[1],l=s()({},r,(function(){vt(o)}));e.push(l),Ee.addKeyMap(l)},n=0,i=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(P);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(P,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Ge(C)}),[Ee,C]),(0,c.useEffect)((function(){Ee&&k&&Ee.focus()}),[Ee,k]),(0,c.useEffect)((function(){if(Ie&&Ee){var e=function(e){var t=e.target;if(ht.current){var n=t.scrollTop/t.scrollHeight;ht.current.scrollTop=ht.current.scrollHeight*n}},t=Ee.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Ee,Ie]),(0,c.useEffect)((function(){if(Ee&&q){var e=function(e,t){q(e,t)};return Ee.on("beforeChange",e),function(){Ee.off("beforeChange",e)}}}),[Ee,q]),(0,c.useEffect)((function(){if(Ee&&U){var e=function(){U(Ee.getValue())};return Ee.on("blur",e),function(){Ee.off("blur",e)}}}),[Ee,U]),(0,c.useEffect)((function(){if(Ee){var e=function(e,t){var n=e.getValue();Le(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(z?i(n,kt(n)):i(n))};return Ee.on("change",e),function(){Ee.off("change",e)}}}),[Ee,i]),(0,c.useEffect)((function(){if(Ee)if(null==n)Ee.setValue(""),Le("");else{var e=window.scrollY||window.pageYOffset;n!==Ee.getValue()&&(Ee.setValue(n),Le(n),Ee.setCursor(pe?1:Ee.lineCount(),0),window.scrollTo(0,e))}}),[Ee,n]);var vt=(0,c.useCallback)((function(e){var t=Ee.getCursor(),n=Ee.getSelection(),i=n.split("\n");switch(e){case"bold":return Ee.replaceSelection("**"+n+"**"),""===n&&Ee.setCursor(t.line,t.ch+2),Ee.focus();case"italic":return Ee.replaceSelection("*"+n+"*"),""===n&&Ee.setCursor(t.line,t.ch+1),Ee.focus();case"code":return Ee.replaceSelection("`"+n+"`"),""===n&&Ee.setCursor(t.line,t.ch+1),Ee.focus();case"inline-latex":return Ue("inline-latex"),Ee.focus();case"latex":return Ee.replaceSelection("```latex\n"+n+"\n```"),Ee.setCursor(t.line+1,n.length+1),Ee.focus();case"line-break":return Ee.replaceSelection("
\n"),Ee.focus();case"list-ul":return""===n?Ee.replaceSelection("- "+n):Ee.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ee.focus();case"list-ol":return""===n?Ee.replaceSelection("1. "+n):Ee.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Ee.focus();case"add-null-ch":return""===n&&Ee.setCursor(t.line,t.ch),Ee.replaceSelection("▁"),Ee.focus();case"add-signal":return""===n&&Ee.setCursor(t.line,t.ch),Ee.replaceSelection("@▁@"),Ee.focus();case"add-multiple":return""===n&&Ee.setCursor(t.line,t.ch),Ee.replaceSelection(he),Ee.focus();case"inster-template-1":return""===n&&Ee.setCursor(t.line,t.ch),Ee.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ee.focus();case"eraser":return Ee.setValue(""),Ee.focus();case"trigger-watch":return Ge(!Ie),Ee.focus();case"trigger-full-screen":return He(!Re),Ee.focus();case ae:return void Ue(ae);case ue:return void Ue(ue);case le:return void Ue(le);case ce:return void Ue(ce);case"maths-latex":return void Ue("maths-latex");case se:return void Ue(se);case de:return void Ue(de);default:throw new Error}}),[Ee,Ie,Re]),wt=(0,c.useCallback)((function(e,t){var n,i,r,o,a;switch(Ue(""),Ve){case ae:var l=e.title,s=e.link;return Ee.replaceSelection("[".concat(l,"](").concat(s,")")),Ee.focus();case ue:var c=e.language,u=e.content;return Ee.replaceSelection(["```"+c,u,"```"].join("\n")),Ee.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),f=0;f-1||null==v||!v.type?g?Ee.replaceSelection("![ ".concat(g," ]( ").concat(h,' "').concat(g,'" )')):Ee.replaceSelection("![,](".concat(h,")")):(null==v||null===(o=v.type)||void 0===o?void 0:o.indexOf("video"))>-1?Ee.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Ee.replaceSelection('').concat(v.name,"")):ge.includes(w)?Ee.replaceSelection('').concat(v.name,"")):Ee.replaceSelection("[".concat(v.name,"](").concat(re.Z.API_SERVER).concat(h,")")),Ee.focus();case de:for(var b=e.row,x=e.col,y=e.align,k="\n",C=0;C300&&(t=300),et(g+t+"px")}},i=mt.current,r=!1,o=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Ee,mt]),(0,c.useEffect)((function(){et(g)}),[g]);var yt={width:ve(l),height:ve($e)},kt=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(z){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){xe[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var Ct=function(e,t,n,i){var r=document.body.clientHeight,o=document.body.clientWidth;return!(e<20&&n>e||e>o-20&&nt||t>r-20&&i0&&void 0!==i[0]&&i[0],e.next=3,l({type:"shixunHomeworks/getSearchMemberList",payload:s()(s()({},c),he)});case 3:n=e.sent,t&&($=[],se([])),n.members&&n.members.length>0&&ee(a()(n.members)),xe(null==n?void 0:n.is_ai);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Le=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,l({type:"shixunHomeworks/editStudentWorkDefaultData",payload:s()(s()({},c),{},{type:3})});case 2:t=e.sent,pe(null==t?void 0:t.is_group_grade),re(null==t?void 0:t.members),W.setFieldsValue({attachment_ids:(0,O.z)(t.attachments),description:t.description});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){l({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:c.commonHomeworkId}}),Me(),Le()}),[he]);var Ze=function(){var e=u()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.user_ids=[].concat(a()((null==t?void 0:t.user_ids)||[]),a()(null==ie?void 0:ie.map((function(e){return e.user_id})))),e.next=3,(0,E.z2)(s()(s()(s()({},c),t),{},{type:3}));case 3:0===e.sent.status&&(g.ZP.success("保存成功"),Le(),Me(!0));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Oe=function(){var e=u()(r()().mark((function e(t){var n,i,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=s()({},K)).base_on_project=1,n.attachment_ids&&""!=n.attachment_ids&&(n.attachment_ids=null==n||null===(i=n.attachment_ids)||void 0===i?void 0:i.map((function(e){return e.id||e.response.id}))),n.user_ids=null==le?void 0:le.map((function(e){return e.user_id})),n.group_leader_scores=[].concat(a()(le.map((function(e){return{user_id:e.user_id,score:e.score}}))),a()(ie.map((function(e){return{user_id:e.user_id,score:e.score}})))),o=function(){""==n.attachment_ids?v.Z.confirm({title:(0,F.jsxs)("div",{children:["还未上传附件",(0,F.jsx)("br",{}),"是否确认提交作品?"]}),onOk:function(){Ze(n)}}):Ze(n)},null==J||!J.can_submit){e.next=12;break}if(null!=J&&J.submit_size){e.next=10;break}return g.ZP.warning("您的作品提交机会已用完。如需继续修改,请联系指导老师或平台运营。"),e.abrupt("return");case 10:return v.Z.confirm({title:"提示",icon:null,centered:!0,width:472,content:(0,F.jsxs)(F.Fragment,{children:["你还有 ",(0,F.jsx)("span",{className:"ml5 mr5",style:{color:"#DF711C"},children:null==J?void 0:J.submit_size})," 次提交机会。确认提交后,上一次的提交记录会被覆盖。请注意,到达规定的提交次数后将不可再次提交,确定是否提交?"]}),onOk:function(){o()}}),e.abrupt("return");case 12:o();case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,F.jsxs)("section",{className:_,children:[Y.course_name&&(0,F.jsx)("section",{className:"animated fadeIn",children:(0,F.jsx)("aside",{className:"mt10",children:Y.category&&(0,F.jsxs)(w.Z,{separator:">",children:[(0,F.jsx)(w.Z.Item,{href:"/classrooms/".concat(Y.course_id,"/group_homework"),children:Y.course_name}),(0,F.jsx)(w.Z.Item,{href:"/classrooms/".concat(Y.course_id,"/group_homework"),children:Y.category.category_name}),(0,F.jsxs)(w.Z.Item,{children:[null==Y?void 0:Y.user_name," 提交作品"]})]})})}),(0,F.jsx)("aside",{className:"font24 bold mt20 mb20",children:Y.homework_name}),(0,F.jsxs)("div",{style:{background:"#fff",padding:"20px 30px"},children:[(0,F.jsx)("div",{style:{fontSize:"18px",marginBottom:"10px",fontWeight:600},children:"作业描述"}),(0,F.jsx)(I.Z,{value:(null==J?void 0:J.description)||"暂无~"}),(0,F.jsx)(G.Z,{authority:(0,D.GJ)(),showDimensions:!1,dataSource:null==J?void 0:J.attachments,callback:function(){l({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:c.commonHomeworkId}})}}),(0,F.jsx)(H.Ei,{value:J})]}),(0,F.jsx)(h.Z,{form:W,className:N,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(e,t){return q(t)},onFinish:Oe,children:(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)(h.Z.Item,{htmlFor:null,label:(0,F.jsx)("span",{children:"内容:"}),name:"description",rules:[{required:!0,message:"请输入作业的简介"},{type:"string",max:65535,message:"作业简介最大限制65535个字符"},{type:"string",whitespace:!0,message:"内容不能全为空格"}],children:(0,F.jsx)(T.h,{placeholder:"请在此输入内容,最多65535个字符",scrollId:"",watch:!0})}),Y.course_name&&(0,F.jsx)(h.Z.Item,{name:"attachment_ids",children:(0,F.jsx)(O.Z,{realTimeRemove:!1})}),(0,F.jsx)(b.Z,{}),(0,F.jsx)("div",{children:"小组成员:"}),(0,F.jsxs)("div",{style:{display:"flex"},children:[(0,F.jsxs)(x.Z,{align:"middle",className:"pl30 mb20",style:{marginTop:20,width:550},children:[(0,F.jsxs)(y.Z,{span:12,children:["成员要求:",Y.min_num,"~",Y.max_num,"人 "]}),(0,F.jsx)(y.Z,{span:12,children:(0,F.jsx)(k.Z.Search,{onSearch:function(e,t){t.preventDefault(),""===e?delete he.search:he.search=e,he.page=1,ge(s()({},he)),ee([])},placeholder:"请输入姓名或学号搜索",allowClear:!0,style:{width:240}})})]}),(0,F.jsx)(x.Z,{style:{width:610,alignItems:"center"},justify:"end",children:Y.is_leader_work&&(0,F.jsx)("span",{className:M,onClick:function(){je(!0)},children:"更换队长"})})]}),(0,F.jsxs)(x.Z,{align:"middle",children:[(0,F.jsx)(y.Z,{span:11,children:(0,F.jsx)(C.Z,{dataSource:$,pagination:!1,rowKey:function(e){return e.user_id},style:{minHeight:440,border:"1px solid #F6F7F9",minWidth:550},rowSelection:{type:"checkbox",getCheckboxProps:function(e){return{disabled:be||!Y.is_leader_work}},selectedRowKeys:null==le?void 0:le.map((function(e){return e.user_id})),onSelect:function(e,t,n){if(t)se([].concat(a()(le),[s()({},e)]));else{var i=le.filter((function(t){return t.user_id!==(null==e?void 0:e.user_id)}));se(a()(i))}},onChange:function(e,t,n){"all"===n.type&&se(a()(t))}},scroll:{y:400},columns:[{title:"姓名",dataIndex:"user_name",key:"user_name"},{title:"分班",dataIndex:"group_name",key:"group_name"},{title:"学号",dataIndex:"student_id",key:"student_id"}]})}),(0,F.jsx)(y.Z,{span:1,children:(0,F.jsx)("img",{src:z,style:{marginLeft:35}})}),(0,F.jsx)(y.Z,{span:12,style:{display:"flex",justifyContent:"flex-end"},children:(0,F.jsxs)("div",{className:L,style:{width:550},children:[(0,F.jsxs)(x.Z,{className:Z,children:[(0,F.jsx)(y.Z,{className:"ml20",flex:"100px",children:"姓名"}),(0,F.jsx)(y.Z,{flex:"100px",children:"分班"}),(0,F.jsx)(y.Z,{flex:"100px",children:"学号"}),(0,F.jsx)(y.Z,{children:Y.is_leader_work&&de&&"评分"})]}),(0,F.jsxs)("div",{style:{overflow:"auto",height:360},children:[null==ie?void 0:ie.map((function(e,t){return K&&(0,F.jsxs)(x.Z,{align:"middle",style:{height:48,lineHeight:"48px",paddingLeft:30,borderBottom:"1px solid rgba(48,97,208,0.1)"},children:[(0,F.jsx)(y.Z,{flex:"100px",children:e.user_name}),(0,F.jsx)(y.Z,{flex:"100px",children:e.group_name}),(0,F.jsx)(y.Z,{flex:"100px",children:e.student_id}),(0,F.jsx)(y.Z,{flex:"100px",children:Y.is_leader_work&&de&&(0,F.jsx)(j.Z,{stringMode:!0,min:"0.1",max:"100",step:"0.1",placeholder:"请输入",value:e.score,onChange:function(t){re(null==ie?void 0:ie.map((function(n){return e.user_id==n.user_id?s()(s()({},n),{},{score:t}):n})))}})}),Y.is_leader_work&&!e.is_leader&&!be&&(0,F.jsx)(y.Z,{style:{marginLeft:"10px"},children:(0,F.jsx)("i",{className:"iconfont icon-shanchudiao current",onClick:function(){v.Z.confirm({title:(0,F.jsxs)("div",{children:["TA的作品将被删除",(0,F.jsx)("br",{}),"是否确认删除?"]}),onOk:function(){re(null==ie?void 0:ie.filter((function(t){return t.user_id!==e.user_id})))}})}})})]},t)})),null==le?void 0:le.map((function(e,t){return(0,F.jsxs)(x.Z,{align:"middle",style:{height:48,lineHeight:"48px",paddingLeft:30,borderBottom:"1px solid rgba(48,97,208,0.1)"},children:[(0,F.jsx)(y.Z,{flex:"100px",children:e.user_name}),(0,F.jsx)(y.Z,{flex:"100px",children:e.group_name}),(0,F.jsx)(y.Z,{flex:"100px",children:e.student_id}),(0,F.jsx)(y.Z,{flex:"100px",children:Y.is_leader_work&&de&&(0,F.jsx)(j.Z,{stringMode:!0,min:"0.1",max:"100",step:"0.1",placeholder:"请输入",value:e.score,onChange:function(t){se(null==le?void 0:le.map((function(n){return e.user_id==n.user_id?s()(s()({},n),{},{score:t}):n})))}})}),(0,F.jsx)(y.Z,{style:{marginLeft:"10px"},children:Y.is_leader_work&&(0,F.jsx)("i",{className:"iconfont icon-shanchudiao current",onClick:function(){var t,n;W.setFieldsValue({user_ids:null==K||null===(t=K.user_ids)||void 0===t?void 0:t.filter((function(t){return t!==e.user_id}))}),q(s()(s()({},K),{},{user_ids:null==K||null===(n=K.user_ids)||void 0===n?void 0:n.filter((function(t){return t!==e.user_id}))})),se(null==le?void 0:le.filter((function(t){return t.user_id!=e.user_id})))}})})]},t)}))]})]})})]}),(null===(t=[].concat(a()((null==K?void 0:K.user_ids)||[]),a()((null==ie?void 0:ie.map((function(e){return e.user_id})))||[])))||void 0===t?void 0:t.length)>Y.max_num&&(0,F.jsxs)("p",{className:"c-red",children:["人数不能大于",Y.max_num,"人"]})]})}),(0,F.jsxs)(x.Z,{align:"middle",className:"pt40 mb30",children:[(0,F.jsx)(S.ZP,{size:"middle",type:"primary",className:"".concat(M," mr20"),loading:o["newCourse/editCourse"]||o["newCourse/submitCourse"],onClick:function(){return W.submit()},children:"提交"}),(0,F.jsx)(S.ZP,{size:"middle",type:"primary",ghost:!0,className:M,onClick:function(){return m.history.push("/classrooms/".concat(c.coursesId,"/group_homework"))},children:"取消"})]}),(0,F.jsxs)(v.Z,{title:"更换队长",open:Ce,onCancel:function(){je(!1)},okButtonProps:{loading:Ne},onOk:u()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("--",c),Pe(!0),e.next=4,(0,R.ZP)("/api/student_works/".concat(c.homeworkId,"/change_captain.json"),{method:"put",body:{user_id:Ae}});case 4:t=e.sent,Pe(!1),0===(null==t?void 0:t.status)&&(je(!1),Me());case 7:case"end":return e.stop()}}),e)}))),children:[(0,F.jsx)("div",{children:"选择的成员将会成为新的队长"}),(0,F.jsx)("div",{children:"您将不再拥有队长的权限,但您仍是该组的组员"}),(0,F.jsx)("div",{style:{marginTop:20,background:"#F6F7F9",padding:15},children:(0,F.jsx)(B.ZP.Group,{onChange:function(e){Te(e.target.value)},children:(0,F.jsx)(A.Z,{direction:"vertical",children:null==Y||null===(n=Y.members)||void 0===n||null===(n=n.filter((function(e){return!e.is_leader})))||void 0===n?void 0:n.map((function(e){return(0,F.jsx)(B.ZP,{value:e.user_id,children:e.user_name})}))})})})]})]})}))},72764:function(e,t,n){"use strict";n.d(t,{Ei:function(){return w},rU:function(){return b},ZP:function(){return x}});var i=n(82242),r=n.n(i),o=n(79800),a=n.n(o),l=n(59301),s={wrap:"wrap___W3YuU",title:"title___OzKge",exhibition:"exhibition___ugphm"},c=n(78241),u=n(95237),d=n(43604),p=n(24905),f=n(94001),m=n(6848),h=n(92310),g=n.n(h),v=n(37712),w=function(e){var t=e.value,n=e.className,i=e.style,r=(0,l.useState)("0"),o=a()(r,2),c=o[0],u=o[1];(0,l.useEffect)((function(){if(t){var e=t.submit_limit,n=t.must_file;if(e&&n)return void u("1");if(e&&!n)return void u("2");if(!e&&n)return void u("3")}}),[t]);var d={1:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符,并且必须上传相关附件。"]}),2:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符"]}),3:(0,v.jsx)("span",{children:"必须上传相关附件。"})};return"0"===c?(0,v.jsx)(v.Fragment,{}):(0,v.jsxs)("section",{className:g()(s.exhibition,n),style:i,children:[(0,v.jsx)("span",{className:"c-grey-666 mr10",children:"提交作业要求:"}),null==d?void 0:d[c]]})},b=function(e){var t=e.className,n=e.style,i=e.form,r=c.Z.useWatch("submit_limit",i),o=c.Z.useWatch("can_submit",i);return(0,v.jsx)("section",{className:g()(s.newWrap,t),style:n,children:(0,v.jsxs)("div",{style:{padding:"20px 0",borderBottom:"1px solid #EDEDED"},children:[(0,v.jsx)("h1",{children:"提交设置"}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"can_submit",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"限制学生提交作品"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_num",rules:o&&[{required:!0,message:"请填写作品次数"}],children:(0,v.jsx)(f.Z,{precision:0,min:1,disabled:!o})})}),(0,v.jsx)(d.Z,{children:"次"}),(0,v.jsxs)(d.Z,{children:[" ",(0,v.jsx)(m.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999"})})]})]}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生填写内容至少"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit_num",rules:r&&[{required:!0,message:"字数不能为空"}],children:(0,v.jsx)(f.Z,{precision:0,min:1,disabled:!r})})}),(0,v.jsx)(d.Z,{children:"字"})]}),(0,v.jsx)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"must_file",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生提交作业必须上传附件"})})})})})]})})},x=function(e){var t=e.value,n=e.onChange,i=e.className,o=e.style,c=e.disabled,d=void 0!==c&&c,h=(0,l.useState)({}),w=a()(h,2),b=w[0],x=w[1];(0,l.useEffect)((function(){if(console.log(t,"value"),t){var e={submit_limit:null==t?void 0:t.submit_limit,submit_limit_num:null==t?void 0:t.submit_limit_num,must_file:null==t?void 0:t.must_file,can_submit:null==t?void 0:t.can_submit,submit_num:null==t?void 0:t.submit_num};x(r()({},e))}}),[t]);var y=function(e){var t=r()(r()({},b),e);n(t)};return(0,v.jsxs)("section",{className:g()(s.wrap,i),style:o,children:[(0,v.jsx)("div",{className:s.title,children:"提交设置"}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==b?void 0:b.can_submit,onChange:function(e){return y({can_submit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"限制学生提交作业"}),(0,v.jsx)(f.Z,{precision:0,min:1,disabled:d||!(null!=b&&b.can_submit),value:null==b?void 0:b.submit_num,onChange:function(e){return y({submit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"次"}),(0,v.jsx)(m.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999 ml5"})})]}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==b?void 0:b.submit_limit,onChange:function(e){return y({submit_limit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"学生填写内容至少"}),(0,v.jsx)(f.Z,{precision:0,min:1,disabled:d||!(null!=b&&b.submit_limit),value:null==b?void 0:b.submit_limit_num,onChange:function(e){return y({submit_limit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"字"})]}),(0,v.jsxs)(u.Z,{align:"middle",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==b?void 0:b.must_file,onChange:function(e){return y({must_file:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10",children:"学生提交作业必须上传附件"})]})]})}},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return f},jP:function(){return p},rO:function(){return c}});var i=n(7557),r=n.n(i),o=n(41498),a=n.n(o),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,l.v_)("libraries.json",e)}function f(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}},65648:function(e,t){"use strict";t.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},66104:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var i=n(92310),r=n.n(i),o=n(75440),a=n(47413),l=n(59301),s=n(92343),c=n(36355),u=n(78386),d=n(91857);const p=e=>{let{children:t}=e;const{getPrefixCls:n}=l.useContext(c.E_),i=n("breadcrumb");return l.createElement("li",{className:`${i}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};p.__ANT_BREADCRUMB_SEPARATOR=!0;var f=p,m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{if(t)return t(n,i,r,o);const l=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(n,i);return h(e,n,l,a)}}var v=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,separator:n="/",children:i,menu:r,overlay:o,dropdownProps:a,href:s}=e;const c=(e=>{if(r||o){const n=Object.assign({},a);if(r){const e=r||{},{items:t}=e,i=v(e,["items"]);n.menu=Object.assign(Object.assign({},i),{items:null==t?void 0:t.map(((e,t)=>{var{key:n,title:i,label:r,path:o}=e,a=v(e,["key","title","label","path"]);let c=null!=r?r:i;return o&&(c=l.createElement("a",{href:`${s}${o}`},c)),Object.assign(Object.assign({},a),{key:null!=n?n:t,label:c})}))})}else o&&(n.overlay=o);return l.createElement(d.Z,Object.assign({placement:"bottom"},n),l.createElement("span",{className:`${t}-overlay-link`},e,l.createElement(u.Z,null)))}return e})(i);return null!=c?l.createElement(l.Fragment,null,l.createElement("li",null,c),n&&l.createElement(f,null,n)):null},b=e=>{const{prefixCls:t,children:n,href:i}=e,r=v(e,["prefixCls","children","href"]),{getPrefixCls:o}=l.useContext(c.E_),a=o("breadcrumb",t);return l.createElement(w,Object.assign({},r,{prefixCls:a}),h(a,r,n,i))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,y=n(17313),k=n(83116),C=n(37613);const j=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,y.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,y.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var S=(0,k.Z)("Breadcrumb",(e=>{const t=(0,C.TS)(e,{});return[j(t)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),B=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{breadcrumbName:t}=e,n=B(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})}))}),r}var T=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,separator:n="/",style:i,className:u,rootClassName:d,routes:p,items:m,children:h,itemRender:v,params:b={}}=e,x=T(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:y,direction:k,breadcrumb:C}=l.useContext(c.E_);let j;const B=y("breadcrumb",t),[E,_]=S(B),N=function(e,t){return(0,l.useMemo)((()=>e||(t?t.map(A):null)),[e,t])}(m,p);const P=g(B,v);if(N&&N.length>0){const e=[],t=m||p;j=N.map(((i,r)=>{const{path:o,key:s,type:c,menu:u,overlay:d,onClick:p,className:m,separator:h,dropdownProps:g}=i,v=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{n=n.replace(`:${t}`,e[t])})),n})(b,o);void 0!==v&&e.push(v);const x=null!=s?s:r;if("separator"===c)return l.createElement(f,{key:x},h);const y={},k=r===N.length-1;u?y.menu=u:d&&(y.overlay=d);let{href:C}=i;return e.length&&void 0!==v&&(C=`#/${e.join("/")}`),l.createElement(w,Object.assign({key:x},y,(0,a.Z)(i,{data:!0,aria:!0}),{className:m,dropdownProps:g,href:C,separator:k?"":n,onClick:p,prefixCls:B}),P(i,b,t,e,C))}))}else if(h){const e=(0,o.Z)(h).length;j=(0,o.Z)(h).map(((t,i)=>{if(!t)return t;const r=i===e-1;return(0,s.Tm)(t,{separator:r?"":n,key:i})}))}const M=r()(B,null==C?void 0:C.className,{[`${B}-rtl`]:"rtl"===k},u,d,_),L=Object.assign(Object.assign({},null==C?void 0:C.style),i);return E(l.createElement("nav",Object.assign({className:M,style:L},x),l.createElement("ol",null,j)))};E.Item=x,E.Separator=f;var _=E},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(92310),r=n.n(i),o=n(59301),a=n(36355),l=n(17313),s=n(83116),c=n(37613);const u=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:r,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${r}px solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,s.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[u(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:n,divider:i}=o.useContext(a.E_),{prefixCls:l,type:s="horizontal",orientation:c="center",orientationMargin:u,className:f,rootClassName:m,children:h,dashed:g,plain:v,style:w}=e,b=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),x=t("divider",l),[y,k]=d(x),C=c.length>0?`-${c}`:c,j=!!h,S="left"===c&&null!=u,B="right"===c&&null!=u,A=r()(x,null==i?void 0:i.className,k,`${x}-${s}`,{[`${x}-with-text`]:j,[`${x}-with-text${C}`]:j,[`${x}-dashed`]:!!g,[`${x}-plain`]:!!v,[`${x}-rtl`]:"rtl"===n,[`${x}-no-default-orientation-margin-left`]:S,[`${x}-no-default-orientation-margin-right`]:B},f,m),T=o.useMemo((()=>"number"==typeof u?u:/^\d+$/.test(u)?Number(u):u),[u]),E=Object.assign(Object.assign({},S&&{marginLeft:T}),B&&{marginRight:T});return y(o.createElement("div",Object.assign({className:A,style:Object.assign(Object.assign({},null==i?void 0:i.style),w)},b,{role:"separator"}),h&&"vertical"!==s&&o.createElement("span",{className:`${x}-inner-text`,style:E},h)))}},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3L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oadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},96622:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAUCAYAAACeXl35AAAAAXNSR0IArs4c6QAAAI5JREFUSEtjZKASMI65Jnl2idZzQsYxElJArLxR/CVjxr8szwhZSlULQY4jZCnVLSRkKU0sxGcpzSzEZSkjKLKJTRjkqEOPU5pbiO5TuliIbCndLIRZOnwthCUeuvgQOaXS3EKMbEFO3sKmB1t+xlau0qykwVWI08RCfDUG1S2ka/VEyDJw5qdWoiG2iQEA4ntvEVdpqFkAAAAASUVORK5CYII="}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__GroupHomework__EditWork__index.d022c688.async.js b/p__Classrooms__Lists__GroupHomework__EditWork__index.d022c688.async.js new file mode 100644 index 0000000000..1fdb523aae --- /dev/null +++ b/p__Classrooms__Lists__GroupHomework__EditWork__index.d022c688.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[60479,4977,69932],{60186:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(5891),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=n(22589),l=function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))};var s=r.forwardRef(l)},57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,r=!1,o=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function k(){try{return window.self!==window.top}catch(e){return!0}}function C(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,I(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,O(e,t))},e.getHTML5CodebaseVersion=function(){return h},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){x=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,r="auto",o=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var A=function(e){return e&&"false"!==e},T=function(t,n,i){y(h)<=4.2&&(i=!0);var r=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==h||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(r=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var o=document.createElement("div");o.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(y(h)<=4.4)A(n.showToolBar)&&(n.height-=7),A(n.showAlgebraInput)&&(n.height-=37),n.width<605&&A(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(A(n.showToolBar)||A(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=A(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),f(e)},b||w.appendChild(k)):o.appendChild(k),w.appendChild(o),b||t.appendChild(w),setTimeout((function(){e.resize()}),1)}function C(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),G("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function j(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){C(e.article,e.params)})),html5AppletsToProcess=null)},y(h)<5&&(e.className+=" geogebraweb")):C(e,t)}if(r){scriptLoadStarted=!0;for(var S=0;S0?(r.remove(),l.attr("id","fullscreencontent").show(),jQuery(o).append(l),window.dispatchEvent(new Event("resize"))):T(r,t,!1),window.GGBT_wsf_view.launchFullScreen(o)}else m=i,T(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",r.appendChild(a)}return r.appendChild(c),r},L=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},Z=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,t){if(h=e,t)I(h,!0);else{var o,a,l=!r;if(l){var s=y(h);!isNaN(s)&&s<4.4&&(l=!1)}o="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=h.indexOf("//");for(var u in a=c>0?h:0===c?o+h:"https://www.geogebra.org/apps/5.2.814.0/",Z)if(h.slice(-1*Z[u].length)===Z[u]||h.slice(-1*(Z[u].length+1))===Z[u]+"/")return void I(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||A(n.showToolBar)||A(n.showMenuBar)||A(n.showAlgebraInput)||A(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",I(a,!1)}},I=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),f=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?Z.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(h=n[n.length-3]).substr(0,4)?h=h.substr(4,1)+"."+h.substr(5,1):"war"!==h.substr(0,3)&&"beta"!==h.substr(0,4)||(h="5.0");var 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."),O("5.0",t))}},G=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function D(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&I(c,f),l=!0}return void 0!==n.material_id?j(D):D(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,r){if(e.isScreenshoGenerator)return 1;var o,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(o=e.autoHeight)&&"false"!==o,c=function(e,t,n,i,r,o){var a=null;if(null!=o&&""!=o)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+o+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,p=0,f=0,m=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var h=e.getBoundingClientRect();h.left>0&&h.left<=s&&(void 0===r||!r)&&("rtl"===document.dir?(p=s-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===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?o:(r=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==o?Math.min(o,r):r)}function r(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),r=(t-i.width)/2,o=(n-i.height)/2;o<0&&(o=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=r<40?"40px":r+"px",e.style.top=o+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=o<40?"40px":o+"px",e.style.left=r+"px")}return{responsiveResize:function(n,o){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(o.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(o,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],r=O;r0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+y+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var A=function(e){var t=e.value,n=e.onChange,i=e.action,o=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,B=e.title,A=void 0===B?"上传附件":B,T=e.showRemoveModal,E=void 0!==T&&T,_=e.accept,N=void 0===_?"":_,P=e.additionalText,M=e.isDragger,L=e.number,Z=void 0===L?1e3:L,O=e.aloneClear,I=void 0!==O&&O,G=e.realTimeRemove,D=void 0===G||G,z=e.uploadText,R=e.setFileProgress,H=e.showFileProgress,F=(0,f.useState)(!1),W=p()(F,2),V=W[0],U=W[1],K=(0,f.useState)(t||[]),q=p()(K,2),Y=q[0],J=q[1],Q=(0,f.useState)(1),X=p()(Q,2),$=X[0],ee=X[1];(0,f.useEffect)((function(){t&&(1===$&&J(u()(t)),ee(2),Z===(null==t?void 0:t.length)&&U(!0))}),[t]);var te=function(){setTimeout((function(){Y.pop(),J(u()(Y))}),500)};H&&R(Y.some((function(e){return"uploading"===e.status})));var ne,ie={multiple:!0,disabled:V,accept:N,withCredentials:!0,fileList:Y,beforeUpload:function(e,t){var n=e.size/1024/1024;return Y.concat(t).length>Z?(Y.pop(),J(u()(Y)),h.ZP.error("最多只能上传".concat(Z,"个文件")),I?Promise.reject():(te(),!1)):n=Z?U(!0):U(!1),J(u()(Y)),Y=Y.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(y)&&(e.name="".concat(e.name).concat(y).concat(k(e.size))),s()({},e)})),console.log("info:",e,Y),n(Y)):h.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(ne=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(D){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!E){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,x.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,h.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return ne.apply(this,arguments)})};return(0,x.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,x.jsxs)(S,s()(s()({},ie),{},{children:[(0,x.jsx)("p",{className:"ant-upload-drag-icon",children:(0,x.jsx)(C.Z,{})}),(0,x.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,x.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),P]})),!M&&(0,x.jsxs)(m.Z,s()(s()({},ie),{},{children:[(0,x.jsxs)(v.ZP,{disabled:V,className:"upload_button",children:[(0,x.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),A]}),(0,x.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:z||"(单个文件最大".concat(d,"MB)")})]}))]})}},16605:function(e,t,n){"use strict";n.d(t,{h:function(){return p},x:function(){return f}});var i=n(82242),r=n.n(i),o=n(39647),a=n.n(o),l=n(16318),s=n(65648),c=n(38279),u=n(37712),d=["value","onChange","scrollId"],p=function(e){var t=e.value,n=e.onChange,i=e.scrollId,o=a()(e,d);return(0,u.jsx)("div",{id:i||"",children:(0,u.jsx)(l.Z,r()(r()({},o),{},{defaultValue:t,onChange:function(e,t){console.log("a:",e,t),null!=t&&t.length?n(e,t):n(e)}}))})},f=function(e){var t=e.value,n=e.onChange,i=e.placeholder,r=e.height,o=void 0===r?140:r,a=e.isEdit,d=e.miniToolbar,p=e.watch,f=void 0===p||p;return a?(0,u.jsx)(l.Z,{watch:f,isFocus:!0,height:o||void 0,placeholder:i,defaultValue:t,onChange:n,miniToolbar:d}):(0,u.jsx)("div",{style:{cursor:"pointer"},children:t?(0,u.jsx)(c.Z,{className:s.Z.inputBorder,value:t}):(0,u.jsx)("div",{className:"".concat(s.Z.inputBorder," ").concat(s.Z.placeholder," inputBorderError"),children:i})})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var i=n(82242),r=n.n(i),o=n(79800),a=n.n(o),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),f=(n(80443),n(90630),n(37712)),m=s.default.Option,h={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,i=e.mode,o=e.options,s=void 0===o?{}:o,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),m=d[0],h=d[1];return(0,l.useEffect)((function(){if(m){var e=function(e){var t=e.getValue();n&&n(t)};return m.on("change",e),function(){m.off("change",e)}}}),[m,n]),(0,l.useEffect)((function(){m&&m.setOption("mode",i)}),[m,i]),(0,l.useEffect)((function(){m&&(t===m.getValue()&&""!==t||setTimeout((function(){m.setValue(t||"")}),300))}),[m,t]),(0,l.useEffect)((function(){if(c.current&&!m){var e=p().fromTextArea(c.current,r()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));h(e)}}),[c.current,m]),(0,f.jsx)("div",{className:"my-codemirror-container",children:(0,f.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,l.useState)("python"),o=a()(i,2),d=o[0],p=o[1];return(0,f.jsxs)(c.Z,r()(r()({},h),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,f.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,f.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,f.jsx)(m,{value:e,children:g[e][0]},e)}))})}),(0,f.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,f.jsx)(v,{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:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return ye}});var i=n(91232),r=n.n(i),o=n(79800),a=n.n(o),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),f=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),m=n(37712),h=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),v=n.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,r=e.actionName,o=e.className,a=void 0===o?"":o,l=e.children;return(0,m.jsxs)("a",{title:n,className:a,onClick:function(){t(r)},children:[(0,m.jsx)("i",{className:"".concat(i)}),l]})}var x=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,r=e.onActionCallback,o=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,m.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,m.jsx)("li",{children:e.actionName?(0,m.jsx)(b,v()(v()({},e),{},{onActionCallback:r})):(0,m.jsx)("span",{className:"v-line"})},t)})),n?(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,m.jsx)("li",{children:s}),(0,m.jsx)("li",{className:"btn-full-screen",children:(0,m.jsx)(b,{icon:"".concat(o?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:o?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:r})})]})},y=n(24808),k=n(78241),C=n(92832),j=n(3113),S={labelCol:{span:4},wrapperCol:{span:20}},B=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(k.Z,v()(v()({},S),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(k.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,m.jsx)(C.Z,{})}),(0,m.jsx)(k.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,m.jsx)(C.Z,{})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(j.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(j.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},A=n(73145),T=n(28486),E=n(95237),_=n(36709),N=function(e){var t=e.callback,n=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 o=i.toDataURL("image/png");return(0,m.jsx)(E.Z,{style:{height:"100vh"},children:(0,m.jsx)(_.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:o,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},P=n(7557),M=n.n(P),L=n(41498),Z=n.n(L),O=n(37205),I=n.n(O),G=n(12378);function D(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(D,go.CommandHandler),D.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},D.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},D.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},D.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},D.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},D.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},D.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},D.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(o)}else if("Down"===n.key){var r;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(r=this._sortTreeChildrenByY(t).first())&&e.select(r);else for(;null!==t;){var o,a,l;if(null===(o=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(o)).indexOf(t))i.y?1:n.xi.x?1:0})),t},D.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},D.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(D.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(D.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 z=D,R=(n(41034),n(85160)),H=n(43418),F=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",U="maxH60___Pd4Re";window.go=G;var K=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),r=(0,c.useRef)(),o=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],f=d[1],h=function(){var e=Z()(M()().mark((function e(){var t,r;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:r=e.sent,n({src:r.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){f(p+1)}),[]),(0,m.jsx)("div",{ref:s,className:l.current?"".concat(U," body-overflow-initial"):"body-overflow-initial",children:(0,m.jsx)(H.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,m.jsxs)(E.Z,{children:[(0,m.jsx)(F.Z,{flex:1,children:"插入流程图"}),(0,m.jsx)(F.Z,{onClick:function(){l.current=!l.current,f(p+1)},children:(0,m.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,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:V,ref:o})]}),(0,m.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,m.jsx)(R.FI,{initDiagram:function(){var e=G.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",f="#d5ebff",m="#f2dfe0",h="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var r=n.part.adornedPart,o=(new G.Point).setRectSpot(r.actualBounds,t);o.subtract(r.location),o.scale(2,2),o.x+=130*Math.sign(o.x),o.y+=130*Math.sign(o.y),o.add(r.location),o.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(r.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(r.data)),i.addNodeData(a);var l={from:r.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=o,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(G.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(G.Spot.Top)||t.equals(G.Spot.Bottom)?25:18,height:t.equals(G.Spot.Top)||t.equals(G.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function x(t){return e(G.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function y(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function k(t,n){return n||(n="color"),e(G.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:y(n,t),contextClick:y(n,t)})}function C(){return[e("ContextMenuButton",e(G.Panel,"Horizontal",k(u,"fill"),k(p,"fill"),k(f,"fill"),k(m,"fill"))),e("ContextMenuButton",e(G.Panel,"Horizontal",k(g,"fill"),k(v,"fill"),k(h,"fill"),k(w,"fill")))]}function j(){return[e("ContextMenuButton",e(G.Panel,"Horizontal",k(d),k(a),k(n),k(t))),e("ContextMenuButton",e(G.Panel,"Horizontal",k(u),k(l),k(s),k(c)))]}function S(t,n){return n||(n="thickness"),e(G.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:y(n,t),contextClick:y(n,t)})}function B(t,n){return n||(n="dash"),e(G.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:y(n,t),contextClick:y(n,t)})}function A(){return[e("ContextMenuButton",e(G.Panel,"Horizontal",S(1),S(2),S(3),S(4))),e("ContextMenuButton",e(G.Panel,"Horizontal",B(null),B([2,4]),B([4,4])))]}function T(t,n){return n||(n="figure"),e(G.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:y(n,t),contextClick:y(n,t)})}function E(t){return e(G.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function _(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(G.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:y("dir",t),contextClick:y("dir",t)})}function N(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",G.Spot.stringify(G.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(G.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function P(t,n){var i=0,r=G.Spot.RightSide;t.equals(G.Spot.Top)?(i=270,r=G.Spot.TopSide):t.equals(G.Spot.Left)?(i=180,r=G.Spot.LeftSide):t.equals(G.Spot.Bottom)&&(i=90,r=G.Spot.BottomSide),n||(i-=180);var o=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",G.Spot.stringify(r)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(G.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:o,contextClick:o})}return i.current=new G.Diagram(r.current,{padding:20,grid:e(G.Panel,"Grid",e(G.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(G.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(z),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(G.Node,"Auto",{locationSpot:G.Spot.Center,locationObjectName:"SHAPE",desiredSize:new G.Size(120,60),minSize:new G.Size(40,40),resizable:!0,resizeCellSize:new G.Size(10,10),rotatable:!0},new G.Binding("location","loc",G.Point.parse).makeTwoWay(G.Point.stringify),new G.Binding("desiredSize","size",G.Size.parse).makeTwoWay(G.Size.stringify),e(G.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:G.Spot.AllSides,toSpot:G.Spot.AllSides},new G.Binding("figure"),new G.Binding("fill"),new G.Binding("stroke","borderColor"),new G.Binding("strokeWidth","thickness"),new G.Binding("strokeDashArray","dash")),e(G.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(G.TextBlock,{margin:1,textAlign:"center",overflow:G.TextBlock.OverflowEllipsis,editable:!0},new G.Binding("text").makeTwoWay(),new G.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(G.Panel,"Vertical",{maxSize:new G.Size(200,NaN)},e(G.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new G.Binding("text")),e(G.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new G.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(G.Adornment,"Spot",e(G.Placeholder,{padding:10}),b(G.Spot.Top,"TriangleUp"),b(G.Spot.Left,"TriangleLeft"),b(G.Spot.Right,"TriangleRight"),b(G.Spot.Bottom,"TriangleDown"),x({alignment:new G.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(G.Panel,"Horizontal",T("Rectangle"),T("RoundedRectangle"),T("Ellipse"),T("Diamond"))),e("ContextMenuButton",e(G.Panel,"Horizontal",T("Parallelogram2"),T("ManualOperation"),T("Procedure"),T("Cylinder1"))),e("ContextMenuButton",e(G.Panel,"Horizontal",T("Terminator"),T("CreateRequest"),T("Document"),T("TriangleDown"))),C(),j(),A()),i.current.groupTemplate=e(G.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:G.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new G.Binding("location","loc",G.Point.parse).makeTwoWay(G.Point.stringify),e(G.Panel,"Auto",{name:"BODY"},e(G.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:G.Spot.AllSides,toSpot:G.Spot.AllSides},new G.Binding("fill"),new G.Binding("stroke","color"),new G.Binding("strokeWidth","thickness"),new G.Binding("strokeDashArray","dash")),e(G.Placeholder,{background:"transparent",margin:20})),e(G.TextBlock,{alignment:G.Spot.Top,alignmentFocus:G.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new G.Binding("text"),new G.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(G.Adornment,"Spot",e(G.Panel,"Auto",e(G.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(G.Placeholder,{margin:1.5})),x({alignment:G.Spot.TopRight,alignmentFocus:G.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",C(),j(),A()),i.current.linkTemplate=e(G.Link,{layerName:"Foreground",routing:G.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new G.Binding("fromSpot","fromSpot",G.Spot.parse),new G.Binding("toSpot","toSpot",G.Spot.parse),new G.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new G.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new G.Binding("points").makeTwoWay(),e(G.Shape,{strokeWidth:2},new G.Binding("stroke","color"),new G.Binding("strokeWidth","thickness"),new G.Binding("strokeDashArray","dash")),e(G.Shape,{segmentIndex:0,segmentOffset:new G.Point(15,0),segmentOrientation:G.Link.OrientAlong,alignmentFocus:G.Spot.Right,figure:"circle",width:10,strokeWidth:0},new G.Binding("fill","color"),new G.Binding("visible","dir",(function(e){return 1===e}))),e(G.Shape,{segmentIndex:-1,segmentOffset:new G.Point(-10,6),segmentOrientation:G.Link.OrientPlus90,alignmentFocus:G.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new G.Binding("fill","color"),new G.Binding("visible","dir",(function(e){return e>=1})),new G.Binding("width","thickness",(function(e){return 7+3*e})),new G.Binding("height","thickness",(function(e){return 7+3*e})),new G.Binding("segmentOffset","thickness",(function(e){return new G.Point(-15,4+1.5*e)}))),e(G.Shape,{segmentIndex:0,segmentOffset:new G.Point(15,-6),segmentOrientation:G.Link.OrientMinus90,alignmentFocus:G.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new G.Binding("fill","color"),new G.Binding("visible","dir",(function(e){return 2===e})),new G.Binding("width","thickness",(function(e){return 7+3*e})),new G.Binding("height","thickness",(function(e){return 7+3*e})),new G.Binding("segmentOffset","thickness",(function(e){return new G.Point(-15,4+1.5*e)}))),e(G.TextBlock,{alignmentFocus:new G.Spot(0,1,-4,0),editable:!0},new G.Binding("text").makeTwoWay(),new G.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(G.Adornment,e(G.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:E(2)},new G.Binding("pathPattern","thickness",E)),x({alignmentFocus:new G.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",j(),A(),e("ContextMenuButton",e(G.Panel,"Horizontal",_(0),_(1),_(2))),e("ContextMenuButton",e(G.Panel,"Horizontal",e(G.Panel,"Spot",N(!1),P(G.Spot.Top,!1),P(G.Spot.Left,!1),P(G.Spot.Right,!1),P(G.Spot.Bottom,!1)),e(G.Panel,"Spot",{margin:new G.Margin(0,0,0,2)},N(!0),P(G.Spot.Top,!0),P(G.Spot.Left,!0),P(G.Spot.Right,!0),P(G.Spot.Bottom,!0))))),new G.Palette(o.current,{maxSelectionCount:1,linkTemplate:e(G.Link,{locationSpot:G.Spot.Center,selectionAdornmentTemplate:e(G.Adornment,"Link",{locationSpot:G.Spot.Center},e(G.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(G.Shape,{toArrow:"Standard",stroke:null}))},{routing:G.Link.AvoidsNodes,curve:G.Link.JumpOver,corner:5,toShortLength:4},new G.Binding("points"),e(G.Shape,{isPanelMain:!0,strokeWidth:2}),e(G.Shape,{toArrow:"Standard",stroke:null})),model:new G.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(I()(G.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(G.Node,"Auto",{locationSpot:G.Spot.Center},new G.Binding("location","location",G.Point.parse).makeTwoWay(G.Point.stringify),e(G.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 G.Binding("stroke").makeTwoWay(),new G.Binding("fill").makeTwoWay(),new G.Binding("figure")),e(G.TextBlock,{margin:new G.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new G.Size(16,16),maxSize:new G.Size(10,NaN),textAlign:"center",editable:!0},new G.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(G.Panel,"Grid",e(G.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(G.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),i.current.grid.visible=!0,i.current.grid.gridCellStroke="darkgray",i.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=i.current,i.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,m.jsx)("div",{ref:r})]})]}),(0,m.jsx)("div",{className:"tr",children:(0,m.jsx)(j.ZP,{size:"large",onClick:h,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},q=n(5112),Y=n(94001),J=q.ZP.Group,Q={margin:"0 8px"},X=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(k.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,m.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,m.jsx)("span",{style:Q,children:"单元格数:"}),(0,m.jsx)("span",{style:Q,children:"行数"}),(0,m.jsx)(k.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,m.jsx)(Y.Z,{})}),(0,m.jsx)("span",{style:Q,children:"列数"}),(0,m.jsx)(k.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,m.jsx)(Y.Z,{})})]}),(0,m.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,m.jsx)("span",{style:Q,children:"对齐方式:"}),(0,m.jsx)(k.Z.Item,{name:"align",children:(0,m.jsxs)(J,{children:[(0,m.jsx)(q.ZP,{value:"default",children:(0,m.jsx)("i",{className:"fa fa-align-justify"})}),(0,m.jsx)(q.ZP,{value:"left",children:(0,m.jsx)("i",{className:"fa fa-align-left"})}),(0,m.jsx)(q.ZP,{value:"center",children:(0,m.jsx)("i",{className:"fa fa-align-center"})}),(0,m.jsx)(q.ZP,{value:"right",children:(0,m.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(j.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(j.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,r=e.height,o=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],f=d[1],h=(0,c.useRef)({id:l,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,c.useEffect)((function(){s.current=new(te())(h.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return o&&o(e),e};return(0,c.useEffect)((function(){h.current.appName=p?"3D":"graphing",s.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){f(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,m.jsxs)(E.Z,{align:"middle",children:[(0,m.jsx)(F.Z,{flex:1,children:(0,m.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return f(e)}})}),(0,m.jsx)(F.Z,{children:(0,m.jsx)(j.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),re=n(92723),oe=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",fe={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},me=n(77818);var he="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},we+"-B","bold"),we+"-I","italic"),xe=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),ye=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,o=e.width,l=void 0===o?"100%":o,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,b=e.isFocus,k=void 0!==b&&b,C=e.watch,j=e.insertTemp,S=e.mode,E=void 0===S?"markdown":S,_=e.id,P=void 0===_?"markdown-editor-id":_,M=e.showResizeBar,L=void 0!==M&&M,Z=e.noStorage,O=void 0!==Z&&Z,I=e.showNullButton,G=void 0!==I&&I,D=e.showNullProgramButton,z=void 0!==D&&D,R=e.hidetoolBar,F=void 0!==R&&R,W=e.fullScreen,V=void 0!==W&&W,U=e.onBlur,q=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,Q=void 0===J?"":J,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,pe=void 0!==te&&te,we=e.disabledFill,ye=void 0!==we&&we,ke=e.placeholder,Ce=void 0===ke?"":ke,je=e.values,Se=void 0===je?"":je,Be=e.extraUse,Ae=(0,c.useState)(null),Te=a()(Ae,2),Ee=Te[0],_e=Te[1],Ne=(0,c.useState)(n),Pe=a()(Ne,2),Me=Pe[0],Le=Pe[1],Ze=(0,c.useState)(C),Oe=a()(Ze,2),Ie=Oe[0],Ge=Oe[1],De=(0,c.useState)(V),ze=a()(De,2),Re=ze[0],He=ze[1],Fe=(0,c.useState)(""),We=a()(Fe,2),Ve=We[0],Ue=We[1],Ke=(0,c.useState)(0),qe=a()(Ke,2),Ye=qe[0],Je=qe[1],Qe=(0,c.useState)(g),Xe=a()(Qe,2),$e=Xe[0],et=Xe[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),rt=(0,c.useState)(0),ot=a()(rt,2),at=ot[0],lt=ot[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),ft=(0,c.useRef)(),mt=(0,c.useRef)(),ht=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Le(Se),null==Ee||Ee.setValue(Se),window.scrollTo(0,e)}),[Se]),(0,c.useEffect)((function(){null==Y||Y(Re)}),[Re]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var r=i.types.toString(),o=i.items;if("Files"===r||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==E)return;try{var a,l=o[1];"file"===(null===(a=o[0])||void 0===a?void 0:a.kind)&&(l=o[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,T.I)(s,(function(e){var n,i,r;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(r=s.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(re.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){oe.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:E,lineNumbers:!w,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",Ce):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),r=n.getLine(i.line),o=r.charAt(i.ch-1),a=r.lastIndexOf("@▁@",i.ch),l=r.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===he.indexOf(o))return null;if(console.log("change1:",t,e,r,i,s,a,l,o),s>=0&&i.ch-s<5){var u=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),k&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),_e(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){ft.current}),[$e,ft,Re]);(0,c.useEffect)((function(){if(Ee){var e=function(){var e=new p.Z((function(e){var t,n=r()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Ee.setSize("100%","100%"),Ee.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Ee,gt]),(0,c.useEffect)((function(){if(Ee){for(var e=[],t=function(){var t=a()(i[n],2),r=t[0],o=t[1],l=s()({},r,(function(){vt(o)}));e.push(l),Ee.addKeyMap(l)},n=0,i=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(P);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(P,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Ge(C)}),[Ee,C]),(0,c.useEffect)((function(){Ee&&k&&Ee.focus()}),[Ee,k]),(0,c.useEffect)((function(){if(Ie&&Ee){var e=function(e){var t=e.target;if(ht.current){var n=t.scrollTop/t.scrollHeight;ht.current.scrollTop=ht.current.scrollHeight*n}},t=Ee.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Ee,Ie]),(0,c.useEffect)((function(){if(Ee&&q){var e=function(e,t){q(e,t)};return Ee.on("beforeChange",e),function(){Ee.off("beforeChange",e)}}}),[Ee,q]),(0,c.useEffect)((function(){if(Ee&&U){var e=function(){U(Ee.getValue())};return Ee.on("blur",e),function(){Ee.off("blur",e)}}}),[Ee,U]),(0,c.useEffect)((function(){if(Ee){var e=function(e,t){var n=e.getValue();Le(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(z?i(n,kt(n)):i(n))};return Ee.on("change",e),function(){Ee.off("change",e)}}}),[Ee,i]),(0,c.useEffect)((function(){if(Ee)if(null==n)Ee.setValue(""),Le("");else{var e=window.scrollY||window.pageYOffset;n!==Ee.getValue()&&(Ee.setValue(n),Le(n),Ee.setCursor(pe?1:Ee.lineCount(),0),window.scrollTo(0,e))}}),[Ee,n]);var vt=(0,c.useCallback)((function(e){var t=Ee.getCursor(),n=Ee.getSelection(),i=n.split("\n");switch(e){case"bold":return Ee.replaceSelection("**"+n+"**"),""===n&&Ee.setCursor(t.line,t.ch+2),Ee.focus();case"italic":return Ee.replaceSelection("*"+n+"*"),""===n&&Ee.setCursor(t.line,t.ch+1),Ee.focus();case"code":return Ee.replaceSelection("`"+n+"`"),""===n&&Ee.setCursor(t.line,t.ch+1),Ee.focus();case"inline-latex":return Ue("inline-latex"),Ee.focus();case"latex":return Ee.replaceSelection("```latex\n"+n+"\n```"),Ee.setCursor(t.line+1,n.length+1),Ee.focus();case"line-break":return Ee.replaceSelection("
\n"),Ee.focus();case"list-ul":return""===n?Ee.replaceSelection("- "+n):Ee.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ee.focus();case"list-ol":return""===n?Ee.replaceSelection("1. "+n):Ee.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Ee.focus();case"add-null-ch":return""===n&&Ee.setCursor(t.line,t.ch),Ee.replaceSelection("▁"),Ee.focus();case"add-signal":return""===n&&Ee.setCursor(t.line,t.ch),Ee.replaceSelection("@▁@"),Ee.focus();case"add-multiple":return""===n&&Ee.setCursor(t.line,t.ch),Ee.replaceSelection(he),Ee.focus();case"inster-template-1":return""===n&&Ee.setCursor(t.line,t.ch),Ee.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ee.focus();case"eraser":return Ee.setValue(""),Ee.focus();case"trigger-watch":return Ge(!Ie),Ee.focus();case"trigger-full-screen":return He(!Re),Ee.focus();case ae:return void Ue(ae);case ue:return void Ue(ue);case le:return void Ue(le);case ce:return void Ue(ce);case"maths-latex":return void Ue("maths-latex");case se:return void Ue(se);case de:return void Ue(de);default:throw new Error}}),[Ee,Ie,Re]),wt=(0,c.useCallback)((function(e,t){var n,i,r,o,a;switch(Ue(""),Ve){case ae:var l=e.title,s=e.link;return Ee.replaceSelection("[".concat(l,"](").concat(s,")")),Ee.focus();case ue:var c=e.language,u=e.content;return Ee.replaceSelection(["```"+c,u,"```"].join("\n")),Ee.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),f=0;f-1||null==v||!v.type?g?Ee.replaceSelection("![ ".concat(g," ]( ").concat(h,' "').concat(g,'" )')):Ee.replaceSelection("![,](".concat(h,")")):(null==v||null===(o=v.type)||void 0===o?void 0:o.indexOf("video"))>-1?Ee.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Ee.replaceSelection('').concat(v.name,"")):ge.includes(w)?Ee.replaceSelection('').concat(v.name,"")):Ee.replaceSelection("[".concat(v.name,"](").concat(re.Z.API_SERVER).concat(h,")")),Ee.focus();case de:for(var b=e.row,x=e.col,y=e.align,k="\n",C=0;C300&&(t=300),et(g+t+"px")}},i=mt.current,r=!1,o=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Ee,mt]),(0,c.useEffect)((function(){et(g)}),[g]);var yt={width:ve(l),height:ve($e)},kt=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(z){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){xe[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var Ct=function(e,t,n,i){var r=document.body.clientHeight,o=document.body.clientWidth;return!(e<20&&n>e||e>o-20&&nt||t>r-20&&i0&&void 0!==i[0]&&i[0],e.next=3,l({type:"shixunHomeworks/getSearchMemberList",payload:s()(s()({},c),he)});case 3:n=e.sent,t&&($=[],se([])),n.members&&n.members.length>0&&ee(a()(n.members)),xe(null==n?void 0:n.is_ai);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Le=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,l({type:"shixunHomeworks/editStudentWorkDefaultData",payload:s()(s()({},c),{},{type:3})});case 2:t=e.sent,pe(null==t?void 0:t.is_group_grade),re(null==t?void 0:t.members),W.setFieldsValue({attachment_ids:(0,O.z)(t.attachments),description:t.description});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){l({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:c.commonHomeworkId}}),Me(),Le()}),[he]);var Ze=function(){var e=u()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.user_ids=[].concat(a()((null==t?void 0:t.user_ids)||[]),a()(null==ie?void 0:ie.map((function(e){return e.user_id})))),e.next=3,(0,E.z2)(s()(s()(s()({},c),t),{},{type:3}));case 3:0===e.sent.status&&(g.ZP.success("保存成功"),Le(),Me(!0));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Oe=function(){var e=u()(r()().mark((function e(t){var n,i,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=s()({},K)).base_on_project=1,n.attachment_ids&&""!=n.attachment_ids&&(n.attachment_ids=null==n||null===(i=n.attachment_ids)||void 0===i?void 0:i.map((function(e){return e.id||e.response.id}))),n.user_ids=null==le?void 0:le.map((function(e){return e.user_id})),n.group_leader_scores=[].concat(a()(le.map((function(e){return{user_id:e.user_id,score:e.score}}))),a()(ie.map((function(e){return{user_id:e.user_id,score:e.score}})))),o=function(){""==n.attachment_ids?v.Z.confirm({title:(0,F.jsxs)("div",{children:["还未上传附件",(0,F.jsx)("br",{}),"是否确认提交作品?"]}),onOk:function(){Ze(n)}}):Ze(n)},null==J||!J.can_submit){e.next=12;break}if(null!=J&&J.submit_size){e.next=10;break}return g.ZP.warning("您的作品提交机会已用完。如需继续修改,请联系指导老师或平台运营。"),e.abrupt("return");case 10:return v.Z.confirm({title:"提示",icon:null,centered:!0,width:472,content:(0,F.jsxs)(F.Fragment,{children:["你还有 ",(0,F.jsx)("span",{className:"ml5 mr5",style:{color:"#DF711C"},children:null==J?void 0:J.submit_size})," 次提交机会。确认提交后,上一次的提交记录会被覆盖。请注意,到达规定的提交次数后将不可再次提交,确定是否提交?"]}),onOk:function(){o()}}),e.abrupt("return");case 12:o();case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,F.jsxs)("section",{className:_,children:[Y.course_name&&(0,F.jsx)("section",{className:"animated fadeIn",children:(0,F.jsx)("aside",{className:"mt10",children:Y.category&&(0,F.jsxs)(w.Z,{separator:">",children:[(0,F.jsx)(w.Z.Item,{href:"/classrooms/".concat(Y.course_id,"/group_homework"),children:Y.course_name}),(0,F.jsx)(w.Z.Item,{href:"/classrooms/".concat(Y.course_id,"/group_homework"),children:Y.category.category_name}),(0,F.jsxs)(w.Z.Item,{children:[null==Y?void 0:Y.user_name," 提交作品"]})]})})}),(0,F.jsx)("aside",{className:"font24 bold mt20 mb20",children:Y.homework_name}),(0,F.jsxs)("div",{style:{background:"#fff",padding:"20px 30px"},children:[(0,F.jsx)("div",{style:{fontSize:"18px",marginBottom:"10px",fontWeight:600},children:"作业描述"}),(0,F.jsx)(I.Z,{value:(null==J?void 0:J.description)||"暂无~"}),(0,F.jsx)(G.Z,{authority:(0,D.GJ)(),showDimensions:!1,dataSource:null==J?void 0:J.attachments,callback:function(){l({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:c.commonHomeworkId}})}}),(0,F.jsx)(H.Ei,{value:J})]}),(0,F.jsx)(h.Z,{form:W,className:N,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(e,t){return q(t)},onFinish:Oe,children:(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)(h.Z.Item,{htmlFor:null,label:(0,F.jsx)("span",{children:"内容:"}),name:"description",rules:[{required:!0,message:"请输入作业的简介"},{type:"string",max:65535,message:"作业简介最大限制65535个字符"},{type:"string",whitespace:!0,message:"内容不能全为空格"}],children:(0,F.jsx)(T.h,{placeholder:"请在此输入内容,最多65535个字符",scrollId:"",watch:!0})}),Y.course_name&&(0,F.jsx)(h.Z.Item,{name:"attachment_ids",children:(0,F.jsx)(O.Z,{realTimeRemove:!1})}),(0,F.jsx)(b.Z,{}),(0,F.jsx)("div",{children:"小组成员:"}),(0,F.jsxs)("div",{style:{display:"flex"},children:[(0,F.jsxs)(x.Z,{align:"middle",className:"pl30 mb20",style:{marginTop:20,width:550},children:[(0,F.jsxs)(y.Z,{span:12,children:["成员要求:",Y.min_num,"~",Y.max_num,"人 "]}),(0,F.jsx)(y.Z,{span:12,children:(0,F.jsx)(k.Z.Search,{onSearch:function(e,t){t.preventDefault(),""===e?delete he.search:he.search=e,he.page=1,ge(s()({},he)),ee([])},placeholder:"请输入姓名或学号搜索",allowClear:!0,style:{width:240}})})]}),(0,F.jsx)(x.Z,{style:{width:610,alignItems:"center"},justify:"end",children:Y.is_leader_work&&(0,F.jsx)("span",{className:M,onClick:function(){je(!0)},children:"更换队长"})})]}),(0,F.jsxs)(x.Z,{align:"middle",children:[(0,F.jsx)(y.Z,{span:11,children:(0,F.jsx)(C.Z,{dataSource:$,pagination:!1,rowKey:function(e){return e.user_id},style:{minHeight:440,border:"1px solid #F6F7F9",minWidth:550},rowSelection:{type:"checkbox",getCheckboxProps:function(e){return{disabled:be||!Y.is_leader_work}},selectedRowKeys:null==le?void 0:le.map((function(e){return e.user_id})),onSelect:function(e,t,n){if(t)se([].concat(a()(le),[s()({},e)]));else{var i=le.filter((function(t){return t.user_id!==(null==e?void 0:e.user_id)}));se(a()(i))}},onChange:function(e,t,n){"all"===n.type&&se(a()(t))}},scroll:{y:400},columns:[{title:"姓名",dataIndex:"user_name",key:"user_name"},{title:"分班",dataIndex:"group_name",key:"group_name"},{title:"学号",dataIndex:"student_id",key:"student_id"}]})}),(0,F.jsx)(y.Z,{span:1,children:(0,F.jsx)("img",{src:z,style:{marginLeft:35}})}),(0,F.jsx)(y.Z,{span:12,style:{display:"flex",justifyContent:"flex-end"},children:(0,F.jsxs)("div",{className:L,style:{width:550},children:[(0,F.jsxs)(x.Z,{className:Z,children:[(0,F.jsx)(y.Z,{className:"ml20",flex:"100px",children:"姓名"}),(0,F.jsx)(y.Z,{flex:"100px",children:"分班"}),(0,F.jsx)(y.Z,{flex:"100px",children:"学号"}),(0,F.jsx)(y.Z,{children:Y.is_leader_work&&de&&"评分"})]}),(0,F.jsxs)("div",{style:{overflow:"auto",height:360},children:[null==ie?void 0:ie.map((function(e,t){return K&&(0,F.jsxs)(x.Z,{align:"middle",style:{height:48,lineHeight:"48px",paddingLeft:30,borderBottom:"1px solid rgba(48,97,208,0.1)"},children:[(0,F.jsx)(y.Z,{flex:"100px",children:e.user_name}),(0,F.jsx)(y.Z,{flex:"100px",children:e.group_name}),(0,F.jsx)(y.Z,{flex:"100px",children:e.student_id}),(0,F.jsx)(y.Z,{flex:"100px",children:Y.is_leader_work&&de&&(0,F.jsx)(j.Z,{stringMode:!0,min:"0.1",max:"100",step:"0.1",placeholder:"请输入",value:e.score,onChange:function(t){re(null==ie?void 0:ie.map((function(n){return e.user_id==n.user_id?s()(s()({},n),{},{score:t}):n})))}})}),Y.is_leader_work&&!e.is_leader&&!be&&(0,F.jsx)(y.Z,{style:{marginLeft:"10px"},children:(0,F.jsx)("i",{className:"iconfont icon-shanchudiao current",onClick:function(){v.Z.confirm({title:(0,F.jsxs)("div",{children:["TA的作品将被删除",(0,F.jsx)("br",{}),"是否确认删除?"]}),onOk:function(){re(null==ie?void 0:ie.filter((function(t){return t.user_id!==e.user_id})))}})}})})]},t)})),null==le?void 0:le.map((function(e,t){return(0,F.jsxs)(x.Z,{align:"middle",style:{height:48,lineHeight:"48px",paddingLeft:30,borderBottom:"1px solid rgba(48,97,208,0.1)"},children:[(0,F.jsx)(y.Z,{flex:"100px",children:e.user_name}),(0,F.jsx)(y.Z,{flex:"100px",children:e.group_name}),(0,F.jsx)(y.Z,{flex:"100px",children:e.student_id}),(0,F.jsx)(y.Z,{flex:"100px",children:Y.is_leader_work&&de&&(0,F.jsx)(j.Z,{stringMode:!0,min:"0.1",max:"100",step:"0.1",placeholder:"请输入",value:e.score,onChange:function(t){se(null==le?void 0:le.map((function(n){return e.user_id==n.user_id?s()(s()({},n),{},{score:t}):n})))}})}),(0,F.jsx)(y.Z,{style:{marginLeft:"10px"},children:Y.is_leader_work&&(0,F.jsx)("i",{className:"iconfont icon-shanchudiao current",onClick:function(){var t,n;W.setFieldsValue({user_ids:null==K||null===(t=K.user_ids)||void 0===t?void 0:t.filter((function(t){return t!==e.user_id}))}),q(s()(s()({},K),{},{user_ids:null==K||null===(n=K.user_ids)||void 0===n?void 0:n.filter((function(t){return t!==e.user_id}))})),se(null==le?void 0:le.filter((function(t){return t.user_id!=e.user_id})))}})})]},t)}))]})]})})]}),(null===(t=[].concat(a()((null==K?void 0:K.user_ids)||[]),a()((null==ie?void 0:ie.map((function(e){return e.user_id})))||[])))||void 0===t?void 0:t.length)>Y.max_num&&(0,F.jsxs)("p",{className:"c-red",children:["人数不能大于",Y.max_num,"人"]})]})}),(0,F.jsxs)(x.Z,{align:"middle",className:"pt40 mb30",children:[(0,F.jsx)(S.ZP,{size:"middle",type:"primary",className:"".concat(M," mr20"),loading:o["newCourse/editCourse"]||o["newCourse/submitCourse"],onClick:function(){return W.submit()},children:"提交"}),(0,F.jsx)(S.ZP,{size:"middle",type:"primary",ghost:!0,className:M,onClick:function(){return m.history.push("/classrooms/".concat(c.coursesId,"/group_homework"))},children:"取消"})]}),(0,F.jsxs)(v.Z,{title:"更换队长",open:Ce,onCancel:function(){je(!1)},okButtonProps:{loading:Ne},onOk:u()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("--",c),Pe(!0),e.next=4,(0,R.ZP)("/api/student_works/".concat(c.homeworkId,"/change_captain.json"),{method:"put",body:{user_id:Ae}});case 4:t=e.sent,Pe(!1),0===(null==t?void 0:t.status)&&(je(!1),Me());case 7:case"end":return e.stop()}}),e)}))),children:[(0,F.jsx)("div",{children:"选择的成员将会成为新的队长"}),(0,F.jsx)("div",{children:"您将不再拥有队长的权限,但您仍是该组的组员"}),(0,F.jsx)("div",{style:{marginTop:20,background:"#F6F7F9",padding:15},children:(0,F.jsx)(B.ZP.Group,{onChange:function(e){Te(e.target.value)},children:(0,F.jsx)(A.Z,{direction:"vertical",children:null==Y||null===(n=Y.members)||void 0===n||null===(n=n.filter((function(e){return!e.is_leader})))||void 0===n?void 0:n.map((function(e){return(0,F.jsx)(B.ZP,{value:e.user_id,children:e.user_name})}))})})})]})]})}))},72764:function(e,t,n){"use strict";n.d(t,{Ei:function(){return w},rU:function(){return b},ZP:function(){return x}});var i=n(82242),r=n.n(i),o=n(79800),a=n.n(o),l=n(59301),s={wrap:"wrap___W3YuU",title:"title___OzKge",exhibition:"exhibition___ugphm"},c=n(78241),u=n(95237),d=n(43604),p=n(24905),f=n(94001),m=n(6848),h=n(92310),g=n.n(h),v=n(37712),w=function(e){var t=e.value,n=e.className,i=e.style,r=(0,l.useState)("0"),o=a()(r,2),c=o[0],u=o[1];(0,l.useEffect)((function(){if(t){var e=t.submit_limit,n=t.must_file;if(e&&n)return void u("1");if(e&&!n)return void u("2");if(!e&&n)return void u("3")}}),[t]);var d={1:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符,并且必须上传相关附件。"]}),2:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符"]}),3:(0,v.jsx)("span",{children:"必须上传相关附件。"})};return"0"===c?(0,v.jsx)(v.Fragment,{}):(0,v.jsxs)("section",{className:g()(s.exhibition,n),style:i,children:[(0,v.jsx)("span",{className:"c-grey-666 mr10",children:"提交作业要求:"}),null==d?void 0:d[c]]})},b=function(e){var t=e.className,n=e.style,i=e.form,r=c.Z.useWatch("submit_limit",i),o=c.Z.useWatch("can_submit",i);return(0,v.jsx)("section",{className:g()(s.newWrap,t),style:n,children:(0,v.jsxs)("div",{style:{padding:"20px 0",borderBottom:"1px solid #EDEDED"},children:[(0,v.jsx)("h1",{children:"提交设置"}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"can_submit",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"限制学生提交作品"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_num",rules:o&&[{required:!0,message:"请填写作品次数"}],children:(0,v.jsx)(f.Z,{precision:0,min:1,disabled:!o})})}),(0,v.jsx)(d.Z,{children:"次"}),(0,v.jsxs)(d.Z,{children:[" ",(0,v.jsx)(m.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999"})})]})]}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生填写内容至少"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit_num",rules:r&&[{required:!0,message:"字数不能为空"}],children:(0,v.jsx)(f.Z,{precision:0,min:1,disabled:!r})})}),(0,v.jsx)(d.Z,{children:"字"})]}),(0,v.jsx)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"must_file",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生提交作业必须上传附件"})})})})})]})})},x=function(e){var t=e.value,n=e.onChange,i=e.className,o=e.style,c=e.disabled,d=void 0!==c&&c,h=(0,l.useState)({}),w=a()(h,2),b=w[0],x=w[1];(0,l.useEffect)((function(){if(console.log(t,"value"),t){var e={submit_limit:null==t?void 0:t.submit_limit,submit_limit_num:null==t?void 0:t.submit_limit_num,must_file:null==t?void 0:t.must_file,can_submit:null==t?void 0:t.can_submit,submit_num:null==t?void 0:t.submit_num};x(r()({},e))}}),[t]);var y=function(e){var t=r()(r()({},b),e);n(t)};return(0,v.jsxs)("section",{className:g()(s.wrap,i),style:o,children:[(0,v.jsx)("div",{className:s.title,children:"提交设置"}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==b?void 0:b.can_submit,onChange:function(e){return y({can_submit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"限制学生提交作业"}),(0,v.jsx)(f.Z,{precision:0,min:1,disabled:d||!(null!=b&&b.can_submit),value:null==b?void 0:b.submit_num,onChange:function(e){return y({submit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"次"}),(0,v.jsx)(m.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999 ml5"})})]}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==b?void 0:b.submit_limit,onChange:function(e){return y({submit_limit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"学生填写内容至少"}),(0,v.jsx)(f.Z,{precision:0,min:1,disabled:d||!(null!=b&&b.submit_limit),value:null==b?void 0:b.submit_limit_num,onChange:function(e){return y({submit_limit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"字"})]}),(0,v.jsxs)(u.Z,{align:"middle",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==b?void 0:b.must_file,onChange:function(e){return y({must_file:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10",children:"学生提交作业必须上传附件"})]})]})}},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return f},jP:function(){return p},rO:function(){return c}});var i=n(7557),r=n.n(i),o=n(41498),a=n.n(o),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,l.v_)("libraries.json",e)}function f(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}},65648:function(e,t){"use strict";t.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},66104:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var i=n(92310),r=n.n(i),o=n(75440),a=n(47413),l=n(59301),s=n(92343),c=n(36355),u=n(78386),d=n(91857);const p=e=>{let{children:t}=e;const{getPrefixCls:n}=l.useContext(c.E_),i=n("breadcrumb");return l.createElement("li",{className:`${i}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};p.__ANT_BREADCRUMB_SEPARATOR=!0;var f=p,m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{if(t)return t(n,i,r,o);const l=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(n,i);return h(e,n,l,a)}}var v=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,separator:n="/",children:i,menu:r,overlay:o,dropdownProps:a,href:s}=e;const c=(e=>{if(r||o){const n=Object.assign({},a);if(r){const e=r||{},{items:t}=e,i=v(e,["items"]);n.menu=Object.assign(Object.assign({},i),{items:null==t?void 0:t.map(((e,t)=>{var{key:n,title:i,label:r,path:o}=e,a=v(e,["key","title","label","path"]);let c=null!=r?r:i;return o&&(c=l.createElement("a",{href:`${s}${o}`},c)),Object.assign(Object.assign({},a),{key:null!=n?n:t,label:c})}))})}else o&&(n.overlay=o);return l.createElement(d.Z,Object.assign({placement:"bottom"},n),l.createElement("span",{className:`${t}-overlay-link`},e,l.createElement(u.Z,null)))}return e})(i);return null!=c?l.createElement(l.Fragment,null,l.createElement("li",null,c),n&&l.createElement(f,null,n)):null},b=e=>{const{prefixCls:t,children:n,href:i}=e,r=v(e,["prefixCls","children","href"]),{getPrefixCls:o}=l.useContext(c.E_),a=o("breadcrumb",t);return l.createElement(w,Object.assign({},r,{prefixCls:a}),h(a,r,n,i))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,y=n(17313),k=n(83116),C=n(37613);const j=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,y.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,y.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var S=(0,k.Z)("Breadcrumb",(e=>{const t=(0,C.TS)(e,{});return[j(t)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),B=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{breadcrumbName:t}=e,n=B(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})}))}),r}var T=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,separator:n="/",style:i,className:u,rootClassName:d,routes:p,items:m,children:h,itemRender:v,params:b={}}=e,x=T(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:y,direction:k,breadcrumb:C}=l.useContext(c.E_);let j;const B=y("breadcrumb",t),[E,_]=S(B),N=function(e,t){return(0,l.useMemo)((()=>e||(t?t.map(A):null)),[e,t])}(m,p);const P=g(B,v);if(N&&N.length>0){const e=[],t=m||p;j=N.map(((i,r)=>{const{path:o,key:s,type:c,menu:u,overlay:d,onClick:p,className:m,separator:h,dropdownProps:g}=i,v=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{n=n.replace(`:${t}`,e[t])})),n})(b,o);void 0!==v&&e.push(v);const x=null!=s?s:r;if("separator"===c)return l.createElement(f,{key:x},h);const y={},k=r===N.length-1;u?y.menu=u:d&&(y.overlay=d);let{href:C}=i;return e.length&&void 0!==v&&(C=`#/${e.join("/")}`),l.createElement(w,Object.assign({key:x},y,(0,a.Z)(i,{data:!0,aria:!0}),{className:m,dropdownProps:g,href:C,separator:k?"":n,onClick:p,prefixCls:B}),P(i,b,t,e,C))}))}else if(h){const e=(0,o.Z)(h).length;j=(0,o.Z)(h).map(((t,i)=>{if(!t)return t;const r=i===e-1;return(0,s.Tm)(t,{separator:r?"":n,key:i})}))}const M=r()(B,null==C?void 0:C.className,{[`${B}-rtl`]:"rtl"===k},u,d,_),L=Object.assign(Object.assign({},null==C?void 0:C.style),i);return E(l.createElement("nav",Object.assign({className:M,style:L},x),l.createElement("ol",null,j)))};E.Item=x,E.Separator=f;var _=E},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(92310),r=n.n(i),o=n(59301),a=n(36355),l=n(17313),s=n(83116),c=n(37613);const u=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:r,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${r}px solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,s.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[u(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:n,divider:i}=o.useContext(a.E_),{prefixCls:l,type:s="horizontal",orientation:c="center",orientationMargin:u,className:f,rootClassName:m,children:h,dashed:g,plain:v,style:w}=e,b=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),x=t("divider",l),[y,k]=d(x),C=c.length>0?`-${c}`:c,j=!!h,S="left"===c&&null!=u,B="right"===c&&null!=u,A=r()(x,null==i?void 0:i.className,k,`${x}-${s}`,{[`${x}-with-text`]:j,[`${x}-with-text${C}`]:j,[`${x}-dashed`]:!!g,[`${x}-plain`]:!!v,[`${x}-rtl`]:"rtl"===n,[`${x}-no-default-orientation-margin-left`]:S,[`${x}-no-default-orientation-margin-right`]:B},f,m),T=o.useMemo((()=>"number"==typeof u?u:/^\d+$/.test(u)?Number(u):u),[u]),E=Object.assign(Object.assign({},S&&{marginLeft:T}),B&&{marginRight:T});return y(o.createElement("div",Object.assign({className:A,style:Object.assign(Object.assign({},null==i?void 0:i.style),w)},b,{role:"separator"}),h&&"vertical"!==s&&o.createElement("span",{className:`${x}-inner-text`,style:E},h)))}},93314:function(e){"use strict";e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5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},96622:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAUCAYAAACeXl35AAAAAXNSR0IArs4c6QAAAI5JREFUSEtjZKASMI65Jnl2idZzQsYxElJArLxR/CVjxr8szwhZSlULQY4jZCnVLSRkKU0sxGcpzSzEZSkjKLKJTRjkqEOPU5pbiO5TuliIbCndLIRZOnwthCUeuvgQOaXS3EKMbEFO3sKmB1t+xlau0qykwVWI08RCfDUG1S2ka/VEyDJw5qdWoiG2iQEA4ntvEVdpqFkAAAAASUVORK5CYII="}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__GroupHomework__Edit__index.280cc059.async.js b/p__Classrooms__Lists__GroupHomework__Edit__index.280cc059.async.js deleted file mode 100644 index 5ca4edc0a8..0000000000 --- a/p__Classrooms__Lists__GroupHomework__Edit__index.280cc059.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[16729,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},o=null,i=!1,r=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,O(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,Z(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var o,i="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var T=function(e){return e&&"false"!==e},C=function(t,n,o){x(m)<=4.2&&(o=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(m)<=4.4)T(n.showToolBar)&&(n.height-=7),T(n.showAlgebraInput)&&(n.height-=37),n.width<605&&T(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(T(n.showToolBar)||T(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=T(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),f(e)},b||w.appendChild(_)):r.appendChild(_),w.appendChild(r),b||t.appendChild(w),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),I("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(m)<5&&(e.className+=" geogebraweb")):k(e,t)}if(i){scriptLoadStarted=!0;for(var j=0;j0?(i.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):C(i,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=o,C(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",i.appendChild(a)}return i.appendChild(c),i},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],Z=function(e,t){if(m=e,t)O(m,!0);else{var r,a,l=!i;if(l){var s=x(m);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?r+m:"https://www.geogebra.org/apps/5.2.814.0/",G)if(m.slice(-1*G[u].length)===G[u]||m.slice(-1*(G[u].length+1))===G[u]+"/")return void O(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||o.is3D||o.AV||o.SV||o.CV||o.EV2||o.CP||o.PC||o.DA||o.FI||o.PV||T(n.showToolBar)||T(n.showMenuBar)||T(n.showAlgebraInput)||T(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",O(a,!1)}},O=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),f=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var o=parseFloat(m);NaN!==o&&o<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+o+" is deprecated. Using version latest instead."),Z("5.0",t))}},I=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),Z(e,!1),null!==c&&O(c,f),l=!0}return void 0!==n.material_id?S(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,o,i){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==o&&o,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,o,i,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,p=0,f=0,h=0;if(a)s=a.offsetWidth,c=Math.max(o?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===i||!i)&&("rtl"===document.dir?(p=s-m.width-m.left,f=u<=480?10:30):(f=m.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,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(i=n(e,t,a,o,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=e.getBoundingClientRect(),i=(t-o.width)/2,r=(n-o.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=i+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=o(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var o=e.lastIndexOf(tb,Math.min(n,t));return o>=O?e.substring(O,o+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,o=[],i=[];function a(e){var t=i[e](),n=o[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in o[e]},webModule.__getPropMap=function(){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},o=e[webModule.__softPermutationId],i=O;i0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],o=0;o0&&(s=[],null==n||null===(o=n.data)||void 0===o||o.map((function(e){var t;null==e||null===(t=e.ec_point_ids)||void 0===t||t.map((function(e){s.push(e)}))})),h(a()(a()({},null==n||null===(r=n.data)||void 0===r?void 0:r[0]),{},{ec_point_ids:s})),x(null==n?void 0:n.data));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(){return(N=u()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.ZP)("/api/schools/".concat(null==o||null===(t=o.userInfo)||void 0===t||null===(t=t.course)||void 0===t?void 0:t.course_school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:n=e.sent,T(null==n?void 0:n.data),(d||l)&&C();case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,f.useEffect)((function(){var e;null!=o&&null!==(e=o.userInfo)&&void 0!==e&&null!==(e=e.course)&&void 0!==e&&e.course_school_id&&function(){N.apply(this,arguments)}()}),[null==o||null===(t=o.userInfo)||void 0===t||null===(t=t.course)||void 0===t?void 0:t.course_school_id]),(0,_.jsxs)("div",{style:{display:null!==(n=o.userInfo.course)&&void 0!==n&&n.is_openengineering?"":"none"},children:[(0,_.jsx)("p",{style:{fontSize:"16px",fontWeight:400},children:"工程认证考核知识点"}),null==y?void 0:y.map((function(e,t){return(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,_.jsx)(k,{rz:B,item:e,type:t,setitem:function(e){y.splice(t,1,e),x(s()(y));var n=[];null==y||y.map((function(e){var t;null==e||null===(t=e.ec_point_ids)||void 0===t||t.map((function(e){n.push(e)}))})),h(a()(a()({},e),{},{ec_point_ids:n}))}}),0!=t&&(0,_.jsx)(g.Z,{onClick:function(){y.splice(t,1),x(s()(y))},style:{marginLeft:10,fontSize:"20px"}}),(0,_.jsx)(v.Z,{onClick:function(){y.push({}),x(s()(y))},style:{marginLeft:10,fontSize:"20px"}})]},t)}))]})})))},36709:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(79800),s=n.n(l),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",f=n(92310),h=n.n(f),m=n(71418),g=n(2859),v=n(18030),w=n(21082),b=n(37712),y=function(e){var t=e.data,n=e.className,o=e.fullWidth,r=e.style,l=void 0===r?{}:r,f=e.onClose,y=e.onOk,x=e.showFullTools,_=e.noAssociationId,k=(0,c.useRef)(null),S=(0,c.useRef)(null),j=(0,c.useRef)(null),B=(0,c.useRef)(null),T=(0,c.useState)(!1),C=s()(T,2),P=C[0],N=C[1],L=(0,c.useState)("正在加载中"),E=s()(L,2),M=E[0],A=E[1];(0,c.useEffect)((function(){j.current||(j.current=document.createElement("style"),document.head.appendChild(j.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),j.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&G()):(document.body.removeAttribute("data-custom"),j.current&&(document.head.removeChild(j.current),j.current=null))}),[null==t?void 0:t.visible]);var G=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),A("正在加载中"),e.next=4,(0,w.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,k.current.src="",k.current.src=n,k.current.onload=function(){O()},N(!1),A("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=a()(i()().mark((function e(n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),A("正在保存中"),e.next=4,(0,v.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(o=e.sent)||!o.id||_){e.next=12;break}return e.next=8,(0,v.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==o?void 0:o.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=o&&o.id&&y(o);case 13:N(!1),A("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O=function(){S.current=new g.hP(k.current),S.current.targetRoot=B.current,S.current.addEventListener("render",Z),S.current.addEventListener("beforeclose",f),x&&(S.current.availableMarkerTypes=S.current.ALL_MARKER_TYPES,S.current.uiStyleSettings.redoButtonVisible=!0,S.current.uiStyleSettings.notesButtonVisible=!0,S.current.uiStyleSettings.zoomButtonVisible=!0,S.current.uiStyleSettings.zoomOutButtonVisible=!0,S.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=S.current.uiStyleSettings,S.current.show(),null!=t&&t.snapshotData&&S.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,b.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,b.jsx)(m.Z,{spinning:P,tip:M,style:{position:"absolute"},children:(0,b.jsx)("div",{ref:B,className:h()(u,n,o?p:""),style:l,children:(0,b.jsx)("img",{className:d,ref:k})})})})}},98382:function(e,t,n){"use strict";n.d(t,{z:function(){return B},Z:function(){return T}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(82242),s=n.n(l),c=n(37205),u=n.n(c),d=n(79800),p=n.n(d),f=n(59301),h=n(59028),m=n(8591),g=n(43418),v=n(3113),w=n(92723),b=n(90341),y=n(37712),x="  ";function _(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var k=n(60186),S=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var j=h.Z.Dragger;function B(e){var t=[];return e&&e.length>0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var T=function(e){var t=e.value,n=e.onChange,o=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,B=e.title,T=void 0===B?"上传附件":B,C=e.showRemoveModal,P=void 0!==C&&C,N=e.accept,L=void 0===N?"":N,E=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,Z=e.aloneClear,O=void 0!==Z&&Z,I=e.realTimeRemove,R=void 0===I||I,D=e.uploadText,F=(0,f.useState)(!1),z=p()(F,2),H=z[0],W=z[1],V=(0,f.useState)(t||[]),q=p()(V,2),U=q[0],K=q[1],Y=(0,f.useState)(1),J=p()(Y,2),X=J[0],$=J[1];(0,f.useEffect)((function(){t&&(1===X&&K(u()(t)),$(2),G===(null==t?void 0:t.length)&&W(!0))}),[t]);var Q,ee=function(){setTimeout((function(){U.pop(),K(u()(U))}),500)},te={multiple:!0,disabled:H,accept:L,withCredentials:!0,fileList:U,beforeUpload:function(e,t){var n=e.size/1024/1024;return U.concat(t).length>G?(U.pop(),K(u()(U)),m.ZP.error("最多只能上传".concat(G,"个文件")),O?Promise.reject():(ee(),!1)):n=G?W(!0):W(!1),K(u()(U)),U=U.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,U),n(U)):m.ZP.error(null===(o=e.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message)},onRemove:(Q=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!P){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var o;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(o=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return Q.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(j,s()(s()({},te),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!M&&(0,y.jsxs)(h.Z,s()(s()({},te),{},{children:[(0,y.jsxs)(v.ZP,{disabled:H,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),T]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:D||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),f=(n(80443),n(90630),n(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,o=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,l.useEffect)((function(){h&&h.setOption("mode",o)}),[h,o]),(0,l.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,l.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,i()({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,f.jsx)("div",{className:"my-codemirror-container",children:(0,f.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,o=(0,l.useState)("python"),r=a()(o,2),d=r[0],p=r[1];return(0,f.jsxs)(c.Z,i()(i()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,f.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,f.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,f.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,f.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,f.jsx)(v,{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:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var o=n(91232),i=n.n(o),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),f=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,o=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})})},g=n(82242),v=n.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,o=e.icon,i=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(i)},children:[(0,h.jsx)("i",{className:"".concat(o)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,o=e.showNullProgramButton,i=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,v()(v()({},e),{},{onActionCallback:i})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),j={labelCol:{span:4},wrapperCol:{span:20}},B=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,v()(v()({},j),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},T=n(73145),C=n(28486),P=n(95237),N=n(36709),L=function(e){var t=e.callback,n=e.onCancel,o=document.createElement("canvas"),i=o.getContext("2d");o.width=1e3,o.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,o.width,o.height);var r=o.toDataURL("image/png");return(0,h.jsx)(P.Z,{style:{height:"100vh"},children:(0,h.jsx)(N.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),M=n.n(E),A=n(41498),G=n.n(A),Z=n(37205),O=n.n(Z),I=n(12378);function R(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(R,go.CommandHandler),R.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},R.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},R.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},R.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},R.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},R.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},R.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},R.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o0){for(var o=a.elt(l-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(r)}else if("Down"===n.key){var i;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))o.y?1:n.xo.x?1:0})),t},R.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},R.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(R.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(R.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var D=R,F=(n(41034),n(85160)),z=n(43418),H=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=I;var U=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],f=d[1],m=function(){var e=G()(M()().mark((function e(){var t,i;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:i=e.sent,n({src:i.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){f(p+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(P.Z,{children:[(0,h.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(H.Z,{onClick:function(){l.current=!l.current,f(p+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(F.FI,{initDiagram:function(){var e=I.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",f="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function b(t,n){var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(o){var i=n.part.adornedPart,r=(new I.Point).setRectSpot(i.actualBounds,t);r.subtract(i.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(i.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=o.copyNodeData(i.data);o.setGroupKeyForNodeData(a,o.getGroupKeyForNodeData(i.data)),o.addNodeData(a);var l={from:i.key,to:o.getKeyForNodeData(a)};o.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(I.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?25:18,height:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:o,contextClick:o})}function y(t){return e(I.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,o){n.handled=!0,n.diagram.model.commit((function(n){n.set(o.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(I.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(u,"fill"),_(p,"fill"),_(f,"fill"),_(h,"fill"))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(g,"fill"),_(v,"fill"),_(m,"fill"),_(w,"fill")))]}function S(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function j(t,n){return n||(n="thickness"),e(I.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function B(t,n){return n||(n="dash"),e(I.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function T(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",j(1),j(2),j(3),j(4))),e("ContextMenuButton",e(I.Panel,"Horizontal",B(null),B([2,4]),B([4,4])))]}function C(t,n){return n||(n="figure"),e(I.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function P(t){return e(I.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(I.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function L(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var o=n.part.adornedPart;e.set(o.data,t?"toSpot":"fromSpot",I.Spot.stringify(I.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var o=0,i=I.Spot.RightSide;t.equals(I.Spot.Top)?(o=270,i=I.Spot.TopSide):t.equals(I.Spot.Left)?(o=180,i=I.Spot.LeftSide):t.equals(I.Spot.Bottom)&&(o=90,i=I.Spot.BottomSide),n||(o-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",I.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:o,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return o.current=new I.Diagram(i.current,{padding:20,grid:e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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(D),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),o.current.nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center,locationObjectName:"SHAPE",desiredSize:new I.Size(120,60),minSize:new I.Size(40,40),resizable:!0,resizeCellSize:new I.Size(10,10),rotatable:!0},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),new I.Binding("desiredSize","size",I.Size.parse).makeTwoWay(I.Size.stringify),e(I.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("figure"),new I.Binding("fill"),new I.Binding("stroke","borderColor"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(I.TextBlock,{margin:1,textAlign:"center",overflow:I.TextBlock.OverflowEllipsis,editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(I.Panel,"Vertical",{maxSize:new I.Size(200,NaN)},e(I.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new I.Binding("text")),e(I.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new I.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Placeholder,{padding:10}),b(I.Spot.Top,"TriangleUp"),b(I.Spot.Left,"TriangleLeft"),b(I.Spot.Right,"TriangleRight"),b(I.Spot.Bottom,"TriangleDown"),y({alignment:new I.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(I.Panel,"Horizontal",C("Rectangle"),C("RoundedRectangle"),C("Ellipse"),C("Diamond"))),e("ContextMenuButton",e(I.Panel,"Horizontal",C("Parallelogram2"),C("ManualOperation"),C("Procedure"),C("Cylinder1"))),e("ContextMenuButton",e(I.Panel,"Horizontal",C("Terminator"),C("CreateRequest"),C("Document"),C("TriangleDown"))),k(),S(),T()),o.current.groupTemplate=e(I.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:I.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.Panel,"Auto",{name:"BODY"},e(I.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("fill"),new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Placeholder,{background:"transparent",margin:20})),e(I.TextBlock,{alignment:I.Spot.Top,alignmentFocus:I.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new I.Binding("text"),new I.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Panel,"Auto",e(I.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(I.Placeholder,{margin:1.5})),y({alignment:I.Spot.TopRight,alignmentFocus:I.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),T()),o.current.linkTemplate=e(I.Link,{layerName:"Foreground",routing:I.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new I.Binding("fromSpot","fromSpot",I.Spot.parse),new I.Binding("toSpot","toSpot",I.Spot.parse),new I.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("points").makeTwoWay(),e(I.Shape,{strokeWidth:2},new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,0),segmentOrientation:I.Link.OrientAlong,alignmentFocus:I.Spot.Right,figure:"circle",width:10,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 1===e}))),e(I.Shape,{segmentIndex:-1,segmentOffset:new I.Point(-10,6),segmentOrientation:I.Link.OrientPlus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return e>=1})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,-6),segmentOrientation:I.Link.OrientMinus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 2===e})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.TextBlock,{alignmentFocus:new I.Spot(0,1,-4,0),editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(I.Adornment,e(I.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:P(2)},new I.Binding("pathPattern","thickness",P)),y({alignmentFocus:new I.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",S(),T(),e("ContextMenuButton",e(I.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(I.Panel,"Horizontal",e(I.Panel,"Spot",L(!1),E(I.Spot.Top,!1),E(I.Spot.Left,!1),E(I.Spot.Right,!1),E(I.Spot.Bottom,!1)),e(I.Panel,"Spot",{margin:new I.Margin(0,0,0,2)},L(!0),E(I.Spot.Top,!0),E(I.Spot.Left,!0),E(I.Spot.Right,!0),E(I.Spot.Bottom,!0))))),new I.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(I.Link,{locationSpot:I.Spot.Center,selectionAdornmentTemplate:e(I.Adornment,"Link",{locationSpot:I.Spot.Center},e(I.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(I.Shape,{toArrow:"Standard",stroke:null}))},{routing:I.Link.AvoidsNodes,curve:I.Link.JumpOver,corner:5,toShortLength:4},new I.Binding("points"),e(I.Shape,{isPanelMain:!0,strokeWidth:2}),e(I.Shape,{toArrow:"Standard",stroke:null})),model:new I.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(O()(I.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center},new I.Binding("location","location",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.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 I.Binding("stroke").makeTwoWay(),new I.Binding("fill").makeTwoWay(),new I.Binding("figure")),e(I.TextBlock,{margin:new I.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new I.Size(16,16),maxSize:new I.Size(10,NaN),textAlign:"center",editable:!0},new I.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),o.current.grid.visible=!0,o.current.grid.gridCellStroke="darkgray",o.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=o.current,o.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:i})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Y.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Y.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(_.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],f=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:o||1e3,height:i||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){m.current.appName=p?"3D":"graphing",s.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){f(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(P.Z,{align:"middle",children:[(0,h.jsx)(H.Z,{flex:1,children:(0,h.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return f(e)}})}),(0,h.jsx)(H.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),oe=n(36761),ie=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",fe={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},he=n(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},we+"-B","bold"),we+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,o=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,j=e.mode,P=void 0===j?"markdown":j,N=e.id,E=void 0===N?"markdown-editor-id":N,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,Z=void 0!==G&&G,O=e.showNullButton,I=void 0!==O&&O,R=e.showNullProgramButton,D=void 0!==R&&R,F=e.hidetoolBar,H=void 0!==F&&F,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,pe=void 0!==te&&te,we=e.disabledFill,xe=void 0!==we&&we,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,je=void 0===Se?"":Se,Be=e.extraUse,Te=(0,c.useState)(null),Ce=a()(Te,2),Pe=Ce[0],Ne=Ce[1],Le=(0,c.useState)(n),Ee=a()(Le,2),Me=Ee[0],Ae=Ee[1],Ge=(0,c.useState)(k),Ze=a()(Ge,2),Oe=Ze[0],Ie=Ze[1],Re=(0,c.useState)(V),De=a()(Re,2),Fe=De[0],ze=De[1],He=(0,c.useState)(""),We=a()(He,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),ot=(nt[0],nt[1]),it=(0,c.useState)(0),rt=a()(it,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),ft=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(je),null==Pe||Pe.setValue(je),window.scrollTo(0,e)}),[je]),(0,c.useEffect)((function(){null==Y||Y(Fe)}),[Fe]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var o=n.clipboardData;if(o){var i=o.types.toString(),r=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==P)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,C.I)(s,(function(e){var n,o,i;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(ie.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:P,lineNumbers:!w,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),o=n.getCursor(),i=n.getLine(o.line),r=i.charAt(o.ch-1),a=i.lastIndexOf("@▁@",o.ch),l=i.lastIndexOf("@▁▁@",o.ch),s=a>l?a:l,c=a>l?3:4;if(-1===me.indexOf(r))return null;if(console.log("change1:",t,e,i,o,s,a,l,r),s>=0&&o.ch-s<5){var u=s+c;return n.replaceRange("",{line:o.line,ch:s},{line:o.line,ch:u}),{line:o.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){ft.current}),[Qe,ft,Fe]);(0,c.useEffect)((function(){if(Pe){var e=function(){var e=new p.Z((function(e){var t,n=i()(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;(o.target.offsetHeight>0||o.target.offsetWidth>0)&&(gt(),Pe.setSize("100%","100%"),Pe.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Pe,gt]),(0,c.useEffect)((function(){if(Pe){for(var e=[],t=function(){var t=a()(o[n],2),i=t[0],r=t[1],l=s()({},i,(function(){vt(r)}));e.push(l),Pe.addKeyMap(l)},n=0,o=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(E,Me),ot(!0))}}),1e4),(0,c.useEffect)((function(){Ie(k)}),[Pe,k]),(0,c.useEffect)((function(){Pe&&_&&Pe.focus()}),[Pe,_]),(0,c.useEffect)((function(){if(Oe&&Pe){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Pe.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Pe,Oe]),(0,c.useEffect)((function(){if(Pe&&K){var e=function(e,t){K(e,t)};return Pe.on("beforeChange",e),function(){Pe.off("beforeChange",e)}}}),[Pe,K]),(0,c.useEffect)((function(){if(Pe&&q){var e=function(){q(Pe.getValue())};return Pe.on("blur",e),function(){Pe.off("blur",e)}}}),[Pe,q]),(0,c.useEffect)((function(){if(Pe){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(D?o(n,_t(n)):o(n))};return Pe.on("change",e),function(){Pe.off("change",e)}}}),[Pe,o]),(0,c.useEffect)((function(){if(Pe)if(null==n)Pe.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Pe.getValue()&&(Pe.setValue(n),Ae(n),Pe.setCursor(pe?1:Pe.lineCount(),0),window.scrollTo(0,e))}}),[Pe,n]);var vt=(0,c.useCallback)((function(e){var t=Pe.getCursor(),n=Pe.getSelection(),o=n.split("\n");switch(e){case"bold":return Pe.replaceSelection("**"+n+"**"),""===n&&Pe.setCursor(t.line,t.ch+2),Pe.focus();case"italic":return Pe.replaceSelection("*"+n+"*"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"code":return Pe.replaceSelection("`"+n+"`"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"inline-latex":return qe("inline-latex"),Pe.focus();case"latex":return Pe.replaceSelection("```latex\n"+n+"\n```"),Pe.setCursor(t.line+1,n.length+1),Pe.focus();case"line-break":return Pe.replaceSelection("
\n"),Pe.focus();case"list-ul":return""===n?Pe.replaceSelection("- "+n):Pe.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Pe.focus();case"list-ol":return""===n?Pe.replaceSelection("1. "+n):Pe.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Pe.focus();case"add-null-ch":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("▁"),Pe.focus();case"add-signal":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("@▁@"),Pe.focus();case"add-multiple":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection(me),Pe.focus();case"inster-template-1":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Pe.focus();case"eraser":return Pe.setValue(""),Pe.focus();case"trigger-watch":return Ie(!Oe),Pe.focus();case"trigger-full-screen":return ze(!Fe),Pe.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Pe,Oe,Fe]),wt=(0,c.useCallback)((function(e,t){var n,o,i,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Pe.replaceSelection("[".concat(l,"](").concat(s,")")),Pe.focus();case ue:var c=e.language,u=e.content;return Pe.replaceSelection(["```"+c,u,"```"].join("\n")),Pe.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),f=0;f-1||null==v||!v.type?g?Pe.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Pe.replaceSelection("![,](".concat(m,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Pe.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Pe.replaceSelection('').concat(v.name,"")):ge.includes(w)?Pe.replaceSelection('').concat(v.name,"")):Pe.replaceSelection("[".concat(v.name,"](").concat(ie.Z.API_SERVER).concat(m,")")),Pe.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},o=ht.current,i=!1,r=0;return o.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){o.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Pe,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:ve(l),height:ve(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(o)}return 0}),[Ye]),function(e){var t=[];if(D){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,o){var i=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>i-20&&oR.max_num)){e.next=3;break}return h.ZP.info("最大人数不能小于最小人数"),e.abrupt("return");case 3:return(n=a()({},R)).attachment_ids&&(n.attachment_ids=null==n||null===(o=n.attachment_ids)||void 0===o?void 0:o.map((function(e){return e.response.id}))),n.reference_attachment_ids&&(n.reference_attachment_ids=null==n||null===(r=n.reference_attachment_ids)||void 0===r?void 0:r.map((function(e){return e.response.id}))),e.next=8,(0,k.Ar)(a()(a()(a()({},A),n),{},{type:3}));case 8:l=e.sent,X(A.categoryId),0===(null==l?void 0:l.status)&&p.history.push("/classrooms/".concat(A.coursesId,"/group_homework/").concat(A.categoryId,"/detail"));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,M.jsxs)("section",{className:S,children:[Y.course_name&&(0,M.jsx)("section",{className:"animated fadeIn",children:(0,M.jsx)("aside",{className:"mt10",children:Y.category&&(0,M.jsxs)(m.Z,{separator:">",children:[(0,M.jsx)(m.Z.Item,{children:(0,M.jsx)(p.Link,{to:"/classrooms/".concat(Y.course_id,"/group_homework"),children:Y.course_name})}),(0,M.jsx)(m.Z.Item,{children:(0,M.jsx)(p.Link,{to:"/classrooms/".concat(Y.course_id,"/group_homework"),children:Y.category.category_name})}),(0,M.jsx)(m.Z.Item,{children:"编辑详情"})]})})}),(0,M.jsx)("aside",{className:"font24 bold mt20 mb20",children:"编辑分组作业"}),(0,M.jsxs)(f.Z,{form:Z,className:j,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){console.log("onchange: ",Z.getFieldsValue()),D(a()({},Z.getFieldsValue()))},onFinish:Q,children:[(0,M.jsx)("div",{className:B,children:(0,M.jsx)(f.Z.Item,{name:"name",label:"标题:",rules:[{required:!0,message:"请输入标题"}],children:(0,M.jsx)(g.Z,{maxLength:60,suffix:"".concat((null===(t=R.name)||void 0===t?void 0:t.length)||0,"/60"),placeholder:"例如:从Python程序设计-入门精通"})})}),(0,M.jsxs)("div",{className:T,children:[(0,M.jsx)(f.Z.Item,{name:"description",label:"简介:",rules:[{required:!0,message:"请输入作业的简介"},{max:5e3,message:"作业简介最大限制5000个字符"}],children:(0,M.jsx)(_.Z,{watch:!0,defaultValue:Y.description})}),(0,M.jsx)("div",{children:(0,M.jsx)(f.Z.Item,{name:"attachment_ids",children:H&&(0,M.jsx)(N.Z,{})})}),(0,M.jsxs)(v.Z,{gutter:[20,20],children:[(0,M.jsx)(w.Z,{flex:"230px",children:(0,M.jsx)(f.Z.Item,{name:"min_num",label:"分组设置",rules:[{required:!0,message:"请填写每组最小人数"}],children:(0,M.jsx)(b.Z,{style:{width:200},min:1,placeholder:"请填写每组最小人数"})})}),(0,M.jsx)(w.Z,{flex:"230px",children:(0,M.jsx)(f.Z.Item,{name:"max_num",label:(0,M.jsx)("div",{children:" "}),rules:[{required:!0,message:"请填写每组最大人数"}],children:(0,M.jsx)(b.Z,{style:{width:200},max:100,placeholder:"请填写每组最大人数"})})}),(0,M.jsx)(w.Z,{children:(0,M.jsx)("div",{className:"mt30",children:"(学生提交作品时需要关联同组成员,组内成员作品共享)"})})]}),!(null!=r&&null!==(n=r.setting)&&void 0!==n&&n.is_local)&&(0,M.jsx)(v.Z,{children:(0,M.jsxs)(w.Z,{children:[(0,M.jsx)(f.Z.Item,{name:"base_on_project",valuePropName:"checked",children:(0,M.jsx)(y.Z,{value:!0,defaultChecked:!0,children:"基于项目实施"})}),(0,M.jsx)("span",{className:"c-light-black",children:"(选中,则必须在本平台创建项目,项目管理员可以提交作品;不选中,无需在平台创建项目,任意小组成员均可以提交作品)"})]})})]}),(0,M.jsxs)("div",{className:T,children:[(0,M.jsx)(f.Z.Item,{name:"reference_answer",label:"参考答案:",children:(0,M.jsx)(_.Z,{defaultValue:Y.reference_answer,watch:!0})}),(0,M.jsx)("div",{children:(0,M.jsx)(f.Z.Item,{name:"reference_attachment_ids",children:H&&(0,M.jsx)(N.Z,{})})})]})]}),(0,M.jsx)("div",{className:T,children:(0,M.jsx)(L.Z,{setitem:function(e){return K(a()({},e))},homework_common_id:A.categoryId})}),(0,M.jsx)("div",{className:C,children:(0,M.jsx)("div",{className:"pt40 mb30",children:(0,M.jsxs)(f.Z.Item,{children:[(0,M.jsx)(x.ZP,{size:"middle",type:"primary",onClick:function(){Z.submit()},className:"".concat(P," mr20"),htmlType:"submit",loading:l["newCourse/editCourse"]||l["newCourse/submitCourse"],children:"提交"}),(0,M.jsx)(x.ZP,{size:"middle",type:"primary",ghost:!0,className:P,onClick:function(){return p.history.push("/classrooms/".concat(A.coursesId,"/group_homework"))},children:"取消"})]})})})]})}))},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return f},jP:function(){return p},rO:function(){return c}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,l.v_)("libraries.json",e)}function f(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__GroupHomework__Edit__index.f73e5f3f.async.js b/p__Classrooms__Lists__GroupHomework__Edit__index.f73e5f3f.async.js new file mode 100644 index 0000000000..3ef9ff0cc1 --- /dev/null +++ b/p__Classrooms__Lists__GroupHomework__Edit__index.f73e5f3f.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[16729,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},o=null,i=!1,r=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function _(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,O(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,Z(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var o,i="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var T=function(e){return e&&"false"!==e},C=function(t,n,o){x(m)<=4.2&&(o=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(m)<=4.4)T(n.showToolBar)&&(n.height-=7),T(n.showAlgebraInput)&&(n.height-=37),n.width<605&&T(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(T(n.showToolBar)||T(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=T(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),f(e)},b||w.appendChild(_)):r.appendChild(_),w.appendChild(r),b||t.appendChild(w),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),I("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},x(m)<5&&(e.className+=" geogebraweb")):k(e,t)}if(i){scriptLoadStarted=!0;for(var j=0;j0?(i.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):C(i,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=o,C(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",i.appendChild(a)}return i.appendChild(c),i},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],Z=function(e,t){if(m=e,t)O(m,!0);else{var r,a,l=!i;if(l){var s=x(m);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?r+m:"https://www.geogebra.org/apps/5.2.814.0/",G)if(m.slice(-1*G[u].length)===G[u]||m.slice(-1*(G[u].length+1))===G[u]+"/")return void O(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||o.is3D||o.AV||o.SV||o.CV||o.EV2||o.CP||o.PC||o.DA||o.FI||o.PV||T(n.showToolBar)||T(n.showMenuBar)||T(n.showAlgebraInput)||T(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",O(a,!1)}},O=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),f=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var o=parseFloat(m);NaN!==o&&o<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+o+" is deprecated. Using version latest instead."),Z("5.0",t))}},I=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),Z(e,!1),null!==c&&O(c,f),l=!0}return void 0!==n.material_id?S(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,o,i){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==o&&o,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,o,i,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,p=0,f=0,h=0;if(a)s=a.offsetWidth,c=Math.max(o?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===i||!i)&&("rtl"===document.dir?(p=s-m.width-m.left,f=u<=480?10:30):(f=m.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,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(i=n(e,t,a,o,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=e.getBoundingClientRect(),i=(t-o.width)/2,r=(n-o.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=i+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=o(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var o=e.lastIndexOf(tb,Math.min(n,t));return o>=O?e.substring(O,o+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,o=[],i=[];function a(e){var t=i[e](),n=o[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in o[e]},webModule.__getPropMap=function(){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},o=e[webModule.__softPermutationId],i=O;i0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],o=0;o0&&(s=[],null==n||null===(o=n.data)||void 0===o||o.map((function(e){var t;null==e||null===(t=e.ec_point_ids)||void 0===t||t.map((function(e){s.push(e)}))})),h(a()(a()({},null==n||null===(r=n.data)||void 0===r?void 0:r[0]),{},{ec_point_ids:s})),x(null==n?void 0:n.data));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(){return(N=u()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.ZP)("/api/schools/".concat(null==o||null===(t=o.userInfo)||void 0===t||null===(t=t.course)||void 0===t?void 0:t.course_school_id,"/ec_majors/get_major_list.json"),{method:"get"});case 2:n=e.sent,T(null==n?void 0:n.data),(d||l)&&C();case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,f.useEffect)((function(){var e;null!=o&&null!==(e=o.userInfo)&&void 0!==e&&null!==(e=e.course)&&void 0!==e&&e.course_school_id&&function(){N.apply(this,arguments)}()}),[null==o||null===(t=o.userInfo)||void 0===t||null===(t=t.course)||void 0===t?void 0:t.course_school_id]),(0,_.jsxs)("div",{style:{display:null!==(n=o.userInfo.course)&&void 0!==n&&n.is_openengineering?"":"none"},children:[(0,_.jsx)("p",{style:{fontSize:"16px",fontWeight:400},children:"工程认证考核知识点"}),null==y?void 0:y.map((function(e,t){return(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,_.jsx)(k,{rz:B,item:e,type:t,setitem:function(e){y.splice(t,1,e),x(s()(y));var n=[];null==y||y.map((function(e){var t;null==e||null===(t=e.ec_point_ids)||void 0===t||t.map((function(e){n.push(e)}))})),h(a()(a()({},e),{},{ec_point_ids:n}))}}),0!=t&&(0,_.jsx)(g.Z,{onClick:function(){y.splice(t,1),x(s()(y))},style:{marginLeft:10,fontSize:"20px"}}),(0,_.jsx)(v.Z,{onClick:function(){y.push({}),x(s()(y))},style:{marginLeft:10,fontSize:"20px"}})]},t)}))]})})))},36709:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(79800),s=n.n(l),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",f=n(92310),h=n.n(f),m=n(71418),g=n(2859),v=n(18030),w=n(21082),b=n(37712),y=function(e){var t=e.data,n=e.className,o=e.fullWidth,r=e.style,l=void 0===r?{}:r,f=e.onClose,y=e.onOk,x=e.showFullTools,_=e.noAssociationId,k=(0,c.useRef)(null),S=(0,c.useRef)(null),j=(0,c.useRef)(null),B=(0,c.useRef)(null),T=(0,c.useState)(!1),C=s()(T,2),P=C[0],N=C[1],L=(0,c.useState)("正在加载中"),E=s()(L,2),M=E[0],A=E[1];(0,c.useEffect)((function(){j.current||(j.current=document.createElement("style"),document.head.appendChild(j.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),j.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&G()):(document.body.removeAttribute("data-custom"),j.current&&(document.head.removeChild(j.current),j.current=null))}),[null==t?void 0:t.visible]);var G=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),A("正在加载中"),e.next=4,(0,w.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,k.current.src="",k.current.src=n,k.current.onload=function(){O()},N(!1),A("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=a()(i()().mark((function e(n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),A("正在保存中"),e.next=4,(0,v.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(o=e.sent)||!o.id||_){e.next=12;break}return e.next=8,(0,v.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==o?void 0:o.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=o&&o.id&&y(o);case 13:N(!1),A("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O=function(){S.current=new g.hP(k.current),S.current.targetRoot=B.current,S.current.addEventListener("render",Z),S.current.addEventListener("beforeclose",f),x&&(S.current.availableMarkerTypes=S.current.ALL_MARKER_TYPES,S.current.uiStyleSettings.redoButtonVisible=!0,S.current.uiStyleSettings.notesButtonVisible=!0,S.current.uiStyleSettings.zoomButtonVisible=!0,S.current.uiStyleSettings.zoomOutButtonVisible=!0,S.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=S.current.uiStyleSettings,S.current.show(),null!=t&&t.snapshotData&&S.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,b.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,b.jsx)(m.Z,{spinning:P,tip:M,style:{position:"absolute"},children:(0,b.jsx)("div",{ref:B,className:h()(u,n,o?p:""),style:l,children:(0,b.jsx)("img",{className:d,ref:k})})})})}},98382:function(e,t,n){"use strict";n.d(t,{z:function(){return B},Z:function(){return T}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(82242),s=n.n(l),c=n(37205),u=n.n(c),d=n(79800),p=n.n(d),f=n(59301),h=n(59028),m=n(8591),g=n(43418),v=n(3113),w=n(92723),b=n(90341),y=n(37712),x="  ";function _(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var k=n(60186),S=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var j=h.Z.Dragger;function B(e){var t=[];return e&&e.length>0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var T=function(e){var t=e.value,n=e.onChange,o=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,B=e.title,T=void 0===B?"上传附件":B,C=e.showRemoveModal,P=void 0!==C&&C,N=e.accept,L=void 0===N?"":N,E=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,Z=e.aloneClear,O=void 0!==Z&&Z,I=e.realTimeRemove,R=void 0===I||I,F=e.uploadText,D=e.setFileProgress,z=e.showFileProgress,H=(0,f.useState)(!1),W=p()(H,2),V=W[0],q=W[1],U=(0,f.useState)(t||[]),K=p()(U,2),Y=K[0],J=K[1],X=(0,f.useState)(1),$=p()(X,2),Q=$[0],ee=$[1];(0,f.useEffect)((function(){t&&(1===Q&&J(u()(t)),ee(2),G===(null==t?void 0:t.length)&&q(!0))}),[t]);var te=function(){setTimeout((function(){Y.pop(),J(u()(Y))}),500)};z&&D(Y.some((function(e){return"uploading"===e.status})));var ne,oe={multiple:!0,disabled:V,accept:L,withCredentials:!0,fileList:Y,beforeUpload:function(e,t){var n=e.size/1024/1024;return Y.concat(t).length>G?(Y.pop(),J(u()(Y)),m.ZP.error("最多只能上传".concat(G,"个文件")),O?Promise.reject():(te(),!1)):n=G?q(!0):q(!1),J(u()(Y)),Y=Y.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(_(e.size))),s()({},e)})),console.log("info:",e,Y),n(Y)):m.ZP.error(null===(o=e.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message)},onRemove:(ne=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!P){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var o;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(o=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return ne.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(j,s()(s()({},oe),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!M&&(0,y.jsxs)(h.Z,s()(s()({},oe),{},{children:[(0,y.jsxs)(v.ZP,{disabled:V,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),T]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:F||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),f=(n(80443),n(90630),n(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,o=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,l.useEffect)((function(){h&&h.setOption("mode",o)}),[h,o]),(0,l.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,l.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,i()({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,f.jsx)("div",{className:"my-codemirror-container",children:(0,f.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,o=(0,l.useState)("python"),r=a()(o,2),d=r[0],p=r[1];return(0,f.jsxs)(c.Z,i()(i()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,f.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,f.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,f.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,f.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,f.jsx)(v,{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:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var o=n(91232),i=n.n(o),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),f=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,o=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})})},g=n(82242),v=n.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,o=e.icon,i=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(i)},children:[(0,h.jsx)("i",{className:"".concat(o)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,o=e.showNullProgramButton,i=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,v()(v()({},e),{},{onActionCallback:i})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},x=n(24808),_=n(78241),k=n(92832),S=n(3113),j={labelCol:{span:4},wrapperCol:{span:20}},B=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,v()(v()({},j),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(_.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(_.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},T=n(73145),C=n(28486),P=n(95237),N=n(36709),L=function(e){var t=e.callback,n=e.onCancel,o=document.createElement("canvas"),i=o.getContext("2d");o.width=1e3,o.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,o.width,o.height);var r=o.toDataURL("image/png");return(0,h.jsx)(P.Z,{style:{height:"100vh"},children:(0,h.jsx)(N.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),M=n.n(E),A=n(41498),G=n.n(A),Z=n(37205),O=n.n(Z),I=n(12378);function R(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(R,go.CommandHandler),R.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},R.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},R.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},R.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},R.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},R.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},R.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},R.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o0){for(var o=a.elt(l-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(r)}else if("Down"===n.key){var i;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))o.y?1:n.xo.x?1:0})),t},R.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},R.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(R.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(R.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var F=R,D=(n(41034),n(85160)),z=n(43418),H=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=I;var U=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],f=d[1],m=function(){var e=G()(M()().mark((function e(){var t,i;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:i=e.sent,n({src:i.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){f(p+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(P.Z,{children:[(0,h.jsx)(H.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(H.Z,{onClick:function(){l.current=!l.current,f(p+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(D.FI,{initDiagram:function(){var e=I.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",f="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function b(t,n){var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(o){var i=n.part.adornedPart,r=(new I.Point).setRectSpot(i.actualBounds,t);r.subtract(i.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(i.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=o.copyNodeData(i.data);o.setGroupKeyForNodeData(a,o.getGroupKeyForNodeData(i.data)),o.addNodeData(a);var l={from:i.key,to:o.getKeyForNodeData(a)};o.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(I.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?25:18,height:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:o,contextClick:o})}function y(t){return e(I.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,o){n.handled=!0,n.diagram.model.commit((function(n){n.set(o.part.adornedPart.data,e,t)}))}}function _(t,n){return n||(n="color"),e(I.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function k(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(u,"fill"),_(p,"fill"),_(f,"fill"),_(h,"fill"))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(g,"fill"),_(v,"fill"),_(m,"fill"),_(w,"fill")))]}function S(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",_(d),_(a),_(n),_(t))),e("ContextMenuButton",e(I.Panel,"Horizontal",_(u),_(l),_(s),_(c)))]}function j(t,n){return n||(n="thickness"),e(I.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function B(t,n){return n||(n="dash"),e(I.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function T(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",j(1),j(2),j(3),j(4))),e("ContextMenuButton",e(I.Panel,"Horizontal",B(null),B([2,4]),B([4,4])))]}function C(t,n){return n||(n="figure"),e(I.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function P(t){return e(I.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(I.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function L(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var o=n.part.adornedPart;e.set(o.data,t?"toSpot":"fromSpot",I.Spot.stringify(I.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var o=0,i=I.Spot.RightSide;t.equals(I.Spot.Top)?(o=270,i=I.Spot.TopSide):t.equals(I.Spot.Left)?(o=180,i=I.Spot.LeftSide):t.equals(I.Spot.Bottom)&&(o=90,i=I.Spot.BottomSide),n||(o-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",I.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:o,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return o.current=new I.Diagram(i.current,{padding:20,grid:e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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(F),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),o.current.nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center,locationObjectName:"SHAPE",desiredSize:new I.Size(120,60),minSize:new I.Size(40,40),resizable:!0,resizeCellSize:new I.Size(10,10),rotatable:!0},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),new I.Binding("desiredSize","size",I.Size.parse).makeTwoWay(I.Size.stringify),e(I.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("figure"),new I.Binding("fill"),new I.Binding("stroke","borderColor"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(I.TextBlock,{margin:1,textAlign:"center",overflow:I.TextBlock.OverflowEllipsis,editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(I.Panel,"Vertical",{maxSize:new I.Size(200,NaN)},e(I.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new I.Binding("text")),e(I.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new I.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Placeholder,{padding:10}),b(I.Spot.Top,"TriangleUp"),b(I.Spot.Left,"TriangleLeft"),b(I.Spot.Right,"TriangleRight"),b(I.Spot.Bottom,"TriangleDown"),y({alignment:new I.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(I.Panel,"Horizontal",C("Rectangle"),C("RoundedRectangle"),C("Ellipse"),C("Diamond"))),e("ContextMenuButton",e(I.Panel,"Horizontal",C("Parallelogram2"),C("ManualOperation"),C("Procedure"),C("Cylinder1"))),e("ContextMenuButton",e(I.Panel,"Horizontal",C("Terminator"),C("CreateRequest"),C("Document"),C("TriangleDown"))),k(),S(),T()),o.current.groupTemplate=e(I.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:I.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.Panel,"Auto",{name:"BODY"},e(I.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("fill"),new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Placeholder,{background:"transparent",margin:20})),e(I.TextBlock,{alignment:I.Spot.Top,alignmentFocus:I.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new I.Binding("text"),new I.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Panel,"Auto",e(I.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(I.Placeholder,{margin:1.5})),y({alignment:I.Spot.TopRight,alignmentFocus:I.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",k(),S(),T()),o.current.linkTemplate=e(I.Link,{layerName:"Foreground",routing:I.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new I.Binding("fromSpot","fromSpot",I.Spot.parse),new I.Binding("toSpot","toSpot",I.Spot.parse),new I.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("points").makeTwoWay(),e(I.Shape,{strokeWidth:2},new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,0),segmentOrientation:I.Link.OrientAlong,alignmentFocus:I.Spot.Right,figure:"circle",width:10,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 1===e}))),e(I.Shape,{segmentIndex:-1,segmentOffset:new I.Point(-10,6),segmentOrientation:I.Link.OrientPlus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return e>=1})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,-6),segmentOrientation:I.Link.OrientMinus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 2===e})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.TextBlock,{alignmentFocus:new I.Spot(0,1,-4,0),editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(I.Adornment,e(I.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:P(2)},new I.Binding("pathPattern","thickness",P)),y({alignmentFocus:new I.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",S(),T(),e("ContextMenuButton",e(I.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(I.Panel,"Horizontal",e(I.Panel,"Spot",L(!1),E(I.Spot.Top,!1),E(I.Spot.Left,!1),E(I.Spot.Right,!1),E(I.Spot.Bottom,!1)),e(I.Panel,"Spot",{margin:new I.Margin(0,0,0,2)},L(!0),E(I.Spot.Top,!0),E(I.Spot.Left,!0),E(I.Spot.Right,!0),E(I.Spot.Bottom,!0))))),new I.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(I.Link,{locationSpot:I.Spot.Center,selectionAdornmentTemplate:e(I.Adornment,"Link",{locationSpot:I.Spot.Center},e(I.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(I.Shape,{toArrow:"Standard",stroke:null}))},{routing:I.Link.AvoidsNodes,curve:I.Link.JumpOver,corner:5,toShortLength:4},new I.Binding("points"),e(I.Shape,{isPanelMain:!0,strokeWidth:2}),e(I.Shape,{toArrow:"Standard",stroke:null})),model:new I.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(O()(I.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center},new I.Binding("location","location",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.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 I.Binding("stroke").makeTwoWay(),new I.Binding("fill").makeTwoWay(),new I.Binding("figure")),e(I.TextBlock,{margin:new I.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new I.Size(16,16),maxSize:new I.Size(10,NaN),textAlign:"center",editable:!0},new I.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),o.current.grid.visible=!0,o.current.grid.gridCellStroke="darkgray",o.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=o.current,o.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:i})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(_.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(_.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Y.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(_.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Y.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(_.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],f=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:o||1e3,height:i||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){m.current.appName=p?"3D":"graphing",s.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){f(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(P.Z,{align:"middle",children:[(0,h.jsx)(H.Z,{flex:1,children:(0,h.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return f(e)}})}),(0,h.jsx)(H.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),oe=n(36761),ie=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",fe={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},he=n(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},we+"-B","bold"),we+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,o=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,b=e.isFocus,_=void 0!==b&&b,k=e.watch,S=e.insertTemp,j=e.mode,P=void 0===j?"markdown":j,N=e.id,E=void 0===N?"markdown-editor-id":N,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,Z=void 0!==G&&G,O=e.showNullButton,I=void 0!==O&&O,R=e.showNullProgramButton,F=void 0!==R&&R,D=e.hidetoolBar,H=void 0!==D&&D,W=e.fullScreen,V=void 0!==W&&W,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,pe=void 0!==te&&te,we=e.disabledFill,xe=void 0!==we&&we,_e=e.placeholder,ke=void 0===_e?"":_e,Se=e.values,je=void 0===Se?"":Se,Be=e.extraUse,Te=(0,c.useState)(null),Ce=a()(Te,2),Pe=Ce[0],Ne=Ce[1],Le=(0,c.useState)(n),Ee=a()(Le,2),Me=Ee[0],Ae=Ee[1],Ge=(0,c.useState)(k),Ze=a()(Ge,2),Oe=Ze[0],Ie=Ze[1],Re=(0,c.useState)(V),Fe=a()(Re,2),De=Fe[0],ze=Fe[1],He=(0,c.useState)(""),We=a()(He,2),Ve=We[0],qe=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),ot=(nt[0],nt[1]),it=(0,c.useState)(0),rt=a()(it,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),ft=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(je),null==Pe||Pe.setValue(je),window.scrollTo(0,e)}),[je]),(0,c.useEffect)((function(){null==Y||Y(De)}),[De]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var o=n.clipboardData;if(o){var i=o.types.toString(),r=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==P)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,C.I)(s,(function(e){var n,o,i;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(ie.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:P,lineNumbers:!w,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),o=n.getCursor(),i=n.getLine(o.line),r=i.charAt(o.ch-1),a=i.lastIndexOf("@▁@",o.ch),l=i.lastIndexOf("@▁▁@",o.ch),s=a>l?a:l,c=a>l?3:4;if(-1===me.indexOf(r))return null;if(console.log("change1:",t,e,i,o,s,a,l,r),s>=0&&o.ch-s<5){var u=s+c;return n.replaceRange("",{line:o.line,ch:s},{line:o.line,ch:u}),{line:o.line,ch:u}}return null}(e);n&&t.preventDefault()}})),_&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){ft.current}),[Qe,ft,De]);(0,c.useEffect)((function(){if(Pe){var e=function(){var e=new p.Z((function(e){var t,n=i()(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;(o.target.offsetHeight>0||o.target.offsetWidth>0)&&(gt(),Pe.setSize("100%","100%"),Pe.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Pe,gt]),(0,c.useEffect)((function(){if(Pe){for(var e=[],t=function(){var t=a()(o[n],2),i=t[0],r=t[1],l=s()({},i,(function(){vt(r)}));e.push(l),Pe.addKeyMap(l)},n=0,o=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(E,Me),ot(!0))}}),1e4),(0,c.useEffect)((function(){Ie(k)}),[Pe,k]),(0,c.useEffect)((function(){Pe&&_&&Pe.focus()}),[Pe,_]),(0,c.useEffect)((function(){if(Oe&&Pe){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Pe.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Pe,Oe]),(0,c.useEffect)((function(){if(Pe&&K){var e=function(e,t){K(e,t)};return Pe.on("beforeChange",e),function(){Pe.off("beforeChange",e)}}}),[Pe,K]),(0,c.useEffect)((function(){if(Pe&&q){var e=function(){q(Pe.getValue())};return Pe.on("blur",e),function(){Pe.off("blur",e)}}}),[Pe,q]),(0,c.useEffect)((function(){if(Pe){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(F?o(n,_t(n)):o(n))};return Pe.on("change",e),function(){Pe.off("change",e)}}}),[Pe,o]),(0,c.useEffect)((function(){if(Pe)if(null==n)Pe.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Pe.getValue()&&(Pe.setValue(n),Ae(n),Pe.setCursor(pe?1:Pe.lineCount(),0),window.scrollTo(0,e))}}),[Pe,n]);var vt=(0,c.useCallback)((function(e){var t=Pe.getCursor(),n=Pe.getSelection(),o=n.split("\n");switch(e){case"bold":return Pe.replaceSelection("**"+n+"**"),""===n&&Pe.setCursor(t.line,t.ch+2),Pe.focus();case"italic":return Pe.replaceSelection("*"+n+"*"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"code":return Pe.replaceSelection("`"+n+"`"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"inline-latex":return qe("inline-latex"),Pe.focus();case"latex":return Pe.replaceSelection("```latex\n"+n+"\n```"),Pe.setCursor(t.line+1,n.length+1),Pe.focus();case"line-break":return Pe.replaceSelection("
\n"),Pe.focus();case"list-ul":return""===n?Pe.replaceSelection("- "+n):Pe.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Pe.focus();case"list-ol":return""===n?Pe.replaceSelection("1. "+n):Pe.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Pe.focus();case"add-null-ch":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("▁"),Pe.focus();case"add-signal":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("@▁@"),Pe.focus();case"add-multiple":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection(me),Pe.focus();case"inster-template-1":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Pe.focus();case"eraser":return Pe.setValue(""),Pe.focus();case"trigger-watch":return Ie(!Oe),Pe.focus();case"trigger-full-screen":return ze(!De),Pe.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Pe,Oe,De]),wt=(0,c.useCallback)((function(e,t){var n,o,i,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Pe.replaceSelection("[".concat(l,"](").concat(s,")")),Pe.focus();case ue:var c=e.language,u=e.content;return Pe.replaceSelection(["```"+c,u,"```"].join("\n")),Pe.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),f=0;f-1||null==v||!v.type?g?Pe.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Pe.replaceSelection("![,](".concat(m,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Pe.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Pe.replaceSelection('').concat(v.name,"")):ge.includes(w)?Pe.replaceSelection('').concat(v.name,"")):Pe.replaceSelection("[".concat(v.name,"](").concat(ie.Z.API_SERVER).concat(m,")")),Pe.focus();case de:for(var b=e.row,y=e.col,x=e.align,_="\n",k=0;k300&&(t=300),et(g+t+"px")}},o=ht.current,i=!1,r=0;return o.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){o.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Pe,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:ve(l),height:ve(Qe)},_t=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(o)}return 0}),[Ye]),function(e){var t=[];if(F){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var kt=function(e,t,n,o){var i=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>i-20&&oR.max_num)){e.next=3;break}return h.ZP.info("最大人数不能小于最小人数"),e.abrupt("return");case 3:return(n=a()({},R)).attachment_ids&&(n.attachment_ids=null==n||null===(o=n.attachment_ids)||void 0===o?void 0:o.map((function(e){return e.response.id}))),n.reference_attachment_ids&&(n.reference_attachment_ids=null==n||null===(r=n.reference_attachment_ids)||void 0===r?void 0:r.map((function(e){return e.response.id}))),e.next=8,(0,k.Ar)(a()(a()(a()({},A),n),{},{type:3}));case 8:l=e.sent,X(A.categoryId),0===(null==l?void 0:l.status)&&p.history.push("/classrooms/".concat(A.coursesId,"/group_homework/").concat(A.categoryId,"/detail"));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,M.jsxs)("section",{className:S,children:[Y.course_name&&(0,M.jsx)("section",{className:"animated fadeIn",children:(0,M.jsx)("aside",{className:"mt10",children:Y.category&&(0,M.jsxs)(m.Z,{separator:">",children:[(0,M.jsx)(m.Z.Item,{children:(0,M.jsx)(p.Link,{to:"/classrooms/".concat(Y.course_id,"/group_homework"),children:Y.course_name})}),(0,M.jsx)(m.Z.Item,{children:(0,M.jsx)(p.Link,{to:"/classrooms/".concat(Y.course_id,"/group_homework"),children:Y.category.category_name})}),(0,M.jsx)(m.Z.Item,{children:"编辑详情"})]})})}),(0,M.jsx)("aside",{className:"font24 bold mt20 mb20",children:"编辑分组作业"}),(0,M.jsxs)(f.Z,{form:Z,className:j,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(){console.log("onchange: ",Z.getFieldsValue()),F(a()({},Z.getFieldsValue()))},onFinish:Q,children:[(0,M.jsx)("div",{className:B,children:(0,M.jsx)(f.Z.Item,{name:"name",label:"标题:",rules:[{required:!0,message:"请输入标题"}],children:(0,M.jsx)(g.Z,{maxLength:60,suffix:"".concat((null===(t=R.name)||void 0===t?void 0:t.length)||0,"/60"),placeholder:"例如:从Python程序设计-入门精通"})})}),(0,M.jsxs)("div",{className:T,children:[(0,M.jsx)(f.Z.Item,{name:"description",label:"简介:",rules:[{required:!0,message:"请输入作业的简介"},{max:5e3,message:"作业简介最大限制5000个字符"}],children:(0,M.jsx)(_.Z,{watch:!0,defaultValue:Y.description})}),(0,M.jsx)("div",{children:(0,M.jsx)(f.Z.Item,{name:"attachment_ids",children:H&&(0,M.jsx)(N.Z,{})})}),(0,M.jsxs)(v.Z,{gutter:[20,20],children:[(0,M.jsx)(w.Z,{flex:"230px",children:(0,M.jsx)(f.Z.Item,{name:"min_num",label:"分组设置",rules:[{required:!0,message:"请填写每组最小人数"}],children:(0,M.jsx)(b.Z,{style:{width:200},min:1,placeholder:"请填写每组最小人数"})})}),(0,M.jsx)(w.Z,{flex:"230px",children:(0,M.jsx)(f.Z.Item,{name:"max_num",label:(0,M.jsx)("div",{children:" "}),rules:[{required:!0,message:"请填写每组最大人数"}],children:(0,M.jsx)(b.Z,{style:{width:200},max:100,placeholder:"请填写每组最大人数"})})}),(0,M.jsx)(w.Z,{children:(0,M.jsx)("div",{className:"mt30",children:"(学生提交作品时需要关联同组成员,组内成员作品共享)"})})]}),!(null!=r&&null!==(n=r.setting)&&void 0!==n&&n.is_local)&&(0,M.jsx)(v.Z,{children:(0,M.jsxs)(w.Z,{children:[(0,M.jsx)(f.Z.Item,{name:"base_on_project",valuePropName:"checked",children:(0,M.jsx)(y.Z,{value:!0,defaultChecked:!0,children:"基于项目实施"})}),(0,M.jsx)("span",{className:"c-light-black",children:"(选中,则必须在本平台创建项目,项目管理员可以提交作品;不选中,无需在平台创建项目,任意小组成员均可以提交作品)"})]})})]}),(0,M.jsxs)("div",{className:T,children:[(0,M.jsx)(f.Z.Item,{name:"reference_answer",label:"参考答案:",children:(0,M.jsx)(_.Z,{defaultValue:Y.reference_answer,watch:!0})}),(0,M.jsx)("div",{children:(0,M.jsx)(f.Z.Item,{name:"reference_attachment_ids",children:H&&(0,M.jsx)(N.Z,{})})})]})]}),(0,M.jsx)("div",{className:T,children:(0,M.jsx)(L.Z,{setitem:function(e){return K(a()({},e))},homework_common_id:A.categoryId})}),(0,M.jsx)("div",{className:C,children:(0,M.jsx)("div",{className:"pt40 mb30",children:(0,M.jsxs)(f.Z.Item,{children:[(0,M.jsx)(x.ZP,{size:"middle",type:"primary",onClick:function(){Z.submit()},className:"".concat(P," mr20"),htmlType:"submit",loading:l["newCourse/editCourse"]||l["newCourse/submitCourse"],children:"提交"}),(0,M.jsx)(x.ZP,{size:"middle",type:"primary",ghost:!0,className:P,onClick:function(){return p.history.push("/classrooms/".concat(A.coursesId,"/group_homework"))},children:"取消"})]})})})]})}))},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return f},jP:function(){return p},rO:function(){return c}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,l.v_)("libraries.json",e)}function f(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__GroupHomework__SubmitWork__index.43be7a41.async.js b/p__Classrooms__Lists__GroupHomework__SubmitWork__index.43be7a41.async.js new file mode 100644 index 0000000000..23d0640ed7 --- /dev/null +++ b/p__Classrooms__Lists__GroupHomework__SubmitWork__index.43be7a41.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[28072,4977,69932],{60186:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(5891),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=n(22589),l=function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))};var s=r.forwardRef(l)},57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,r=!1,o=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function k(){try{return window.self!==window.top}catch(e){return!0}}function C(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,I(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,Z(e,t))},e.getHTML5CodebaseVersion=function(){return h},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){x=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,r="auto",o=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var A=function(e){return e&&"false"!==e},T=function(t,n,i){y(h)<=4.2&&(i=!0);var r=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==h||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(r=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var o=document.createElement("div");o.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(y(h)<=4.4)A(n.showToolBar)&&(n.height-=7),A(n.showAlgebraInput)&&(n.height-=37),n.width<605&&A(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(A(n.showToolBar)||A(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=A(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),f(e)},b||w.appendChild(k)):o.appendChild(k),w.appendChild(o),b||t.appendChild(w),setTimeout((function(){e.resize()}),1)}function C(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),G("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function j(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){C(e.article,e.params)})),html5AppletsToProcess=null)},y(h)<5&&(e.className+=" geogebraweb")):C(e,t)}if(r){scriptLoadStarted=!0;for(var S=0;S0?(r.remove(),l.attr("id","fullscreencontent").show(),jQuery(o).append(l),window.dispatchEvent(new Event("resize"))):T(r,t,!1),window.GGBT_wsf_view.launchFullScreen(o)}else m=i,T(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",r.appendChild(a)}return r.appendChild(c),r},L=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},O=["web","webSimple","web3d","tablet","tablet3d","phone"],Z=function(e,t){if(h=e,t)I(h,!0);else{var o,a,l=!r;if(l){var s=y(h);!isNaN(s)&&s<4.4&&(l=!1)}o="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=h.indexOf("//");for(var u in a=c>0?h:0===c?o+h:"https://www.geogebra.org/apps/5.2.814.0/",O)if(h.slice(-1*O[u].length)===O[u]||h.slice(-1*(O[u].length+1))===O[u]+"/")return void I(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||A(n.showToolBar)||A(n.showMenuBar)||A(n.showAlgebraInput)||A(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",I(a,!1)}},I=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),f=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?O.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(h=n[n.length-3]).substr(0,4)?h=h.substr(4,1)+"."+h.substr(5,1):"war"!==h.substr(0,3)&&"beta"!==h.substr(0,4)||(h="5.0");var 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."),Z("5.0",t))}},G=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function D(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),Z(e,!1),null!==c&&I(c,f),l=!0}return void 0!==n.material_id?j(D):D(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,r){if(e.isScreenshoGenerator)return 1;var o,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(o=e.autoHeight)&&"false"!==o,c=function(e,t,n,i,r,o){var a=null;if(null!=o&&""!=o)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+o+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,p=0,f=0,m=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var h=e.getBoundingClientRect();h.left>0&&h.left<=s&&(void 0===r||!r)&&("rtl"===document.dir?(p=s-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===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?o:(r=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==o?Math.min(o,r):r)}function r(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),r=(t-i.width)/2,o=(n-i.height)/2;o<0&&(o=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=r<40?"40px":r+"px",e.style.top=o+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=o<40?"40px":o+"px",e.style.left=r+"px")}return{responsiveResize:function(n,o){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(o.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(o,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],r=O;r0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+y+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var A=function(e){var t=e.value,n=e.onChange,i=e.action,o=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,B=e.title,A=void 0===B?"上传附件":B,T=e.showRemoveModal,E=void 0!==T&&T,P=e.accept,N=void 0===P?"":P,_=e.additionalText,M=e.isDragger,L=e.number,O=void 0===L?1e3:L,Z=e.aloneClear,I=void 0!==Z&&Z,G=e.realTimeRemove,D=void 0===G||G,R=e.uploadText,z=e.setFileProgress,H=e.showFileProgress,F=(0,f.useState)(!1),W=p()(F,2),V=W[0],U=W[1],K=(0,f.useState)(t||[]),q=p()(K,2),Y=q[0],J=q[1],Q=(0,f.useState)(1),X=p()(Q,2),$=X[0],ee=X[1];(0,f.useEffect)((function(){t&&(1===$&&J(u()(t)),ee(2),O===(null==t?void 0:t.length)&&U(!0))}),[t]);var te=function(){setTimeout((function(){Y.pop(),J(u()(Y))}),500)};H&&z(Y.some((function(e){return"uploading"===e.status})));var ne,ie={multiple:!0,disabled:V,accept:N,withCredentials:!0,fileList:Y,beforeUpload:function(e,t){var n=e.size/1024/1024;return Y.concat(t).length>O?(Y.pop(),J(u()(Y)),h.ZP.error("最多只能上传".concat(O,"个文件")),I?Promise.reject():(te(),!1)):n=O?U(!0):U(!1),J(u()(Y)),Y=Y.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(y)&&(e.name="".concat(e.name).concat(y).concat(k(e.size))),s()({},e)})),console.log("info:",e,Y),n(Y)):h.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(ne=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(D){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!E){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,x.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,h.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return ne.apply(this,arguments)})};return(0,x.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,x.jsxs)(S,s()(s()({},ie),{},{children:[(0,x.jsx)("p",{className:"ant-upload-drag-icon",children:(0,x.jsx)(C.Z,{})}),(0,x.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,x.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),_]})),!M&&(0,x.jsxs)(m.Z,s()(s()({},ie),{},{children:[(0,x.jsxs)(v.ZP,{disabled:V,className:"upload_button",children:[(0,x.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),A]}),(0,x.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:R||"(单个文件最大".concat(d,"MB)")})]}))]})}},16605:function(e,t,n){"use strict";n.d(t,{h:function(){return p},x:function(){return f}});var i=n(82242),r=n.n(i),o=n(39647),a=n.n(o),l=n(16318),s=n(65648),c=n(38279),u=n(37712),d=["value","onChange","scrollId"],p=function(e){var t=e.value,n=e.onChange,i=e.scrollId,o=a()(e,d);return(0,u.jsx)("div",{id:i||"",children:(0,u.jsx)(l.Z,r()(r()({},o),{},{defaultValue:t,onChange:function(e,t){console.log("a:",e,t),null!=t&&t.length?n(e,t):n(e)}}))})},f=function(e){var t=e.value,n=e.onChange,i=e.placeholder,r=e.height,o=void 0===r?140:r,a=e.isEdit,d=e.miniToolbar,p=e.watch,f=void 0===p||p;return a?(0,u.jsx)(l.Z,{watch:f,isFocus:!0,height:o||void 0,placeholder:i,defaultValue:t,onChange:n,miniToolbar:d}):(0,u.jsx)("div",{style:{cursor:"pointer"},children:t?(0,u.jsx)(c.Z,{className:s.Z.inputBorder,value:t}):(0,u.jsx)("div",{className:"".concat(s.Z.inputBorder," ").concat(s.Z.placeholder," inputBorderError"),children:i})})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var i=n(82242),r=n.n(i),o=n(79800),a=n.n(o),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),f=(n(80443),n(90630),n(37712)),m=s.default.Option,h={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,i=e.mode,o=e.options,s=void 0===o?{}:o,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),m=d[0],h=d[1];return(0,l.useEffect)((function(){if(m){var e=function(e){var t=e.getValue();n&&n(t)};return m.on("change",e),function(){m.off("change",e)}}}),[m,n]),(0,l.useEffect)((function(){m&&m.setOption("mode",i)}),[m,i]),(0,l.useEffect)((function(){m&&(t===m.getValue()&&""!==t||setTimeout((function(){m.setValue(t||"")}),300))}),[m,t]),(0,l.useEffect)((function(){if(c.current&&!m){var e=p().fromTextArea(c.current,r()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));h(e)}}),[c.current,m]),(0,f.jsx)("div",{className:"my-codemirror-container",children:(0,f.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,l.useState)("python"),o=a()(i,2),d=o[0],p=o[1];return(0,f.jsxs)(c.Z,r()(r()({},h),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,f.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,f.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,f.jsx)(m,{value:e,children:g[e][0]},e)}))})}),(0,f.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,f.jsx)(v,{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:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return ye}});var i=n(91232),r=n.n(i),o=n(79800),a=n.n(o),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),f=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),m=n(37712),h=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),v=n.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,r=e.actionName,o=e.className,a=void 0===o?"":o,l=e.children;return(0,m.jsxs)("a",{title:n,className:a,onClick:function(){t(r)},children:[(0,m.jsx)("i",{className:"".concat(i)}),l]})}var x=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,r=e.onActionCallback,o=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,m.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,m.jsx)("li",{children:e.actionName?(0,m.jsx)(b,v()(v()({},e),{},{onActionCallback:r})):(0,m.jsx)("span",{className:"v-line"})},t)})),n?(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,m.jsx)("li",{children:s}),(0,m.jsx)("li",{className:"btn-full-screen",children:(0,m.jsx)(b,{icon:"".concat(o?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:o?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:r})})]})},y=n(24808),k=n(78241),C=n(92832),j=n(3113),S={labelCol:{span:4},wrapperCol:{span:20}},B=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(k.Z,v()(v()({},S),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(k.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,m.jsx)(C.Z,{})}),(0,m.jsx)(k.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,m.jsx)(C.Z,{})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(j.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(j.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},A=n(73145),T=n(28486),E=n(95237),P=n(36709),N=function(e){var t=e.callback,n=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 o=i.toDataURL("image/png");return(0,m.jsx)(E.Z,{style:{height:"100vh"},children:(0,m.jsx)(P.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:o,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},_=n(7557),M=n.n(_),L=n(41498),O=n.n(L),Z=n(37205),I=n.n(Z),G=n(12378);function D(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(D,go.CommandHandler),D.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},D.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},D.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},D.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},D.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},D.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},D.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},D.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(o)}else if("Down"===n.key){var r;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(r=this._sortTreeChildrenByY(t).first())&&e.select(r);else for(;null!==t;){var o,a,l;if(null===(o=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(o)).indexOf(t))i.y?1:n.xi.x?1:0})),t},D.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},D.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(D.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(D.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 R=D,z=(n(41034),n(85160)),H=n(43418),F=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",U="maxH60___Pd4Re";window.go=G;var K=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),r=(0,c.useRef)(),o=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],f=d[1],h=function(){var e=O()(M()().mark((function e(){var t,r;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:r=e.sent,n({src:r.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){f(p+1)}),[]),(0,m.jsx)("div",{ref:s,className:l.current?"".concat(U," body-overflow-initial"):"body-overflow-initial",children:(0,m.jsx)(H.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,m.jsxs)(E.Z,{children:[(0,m.jsx)(F.Z,{flex:1,children:"插入流程图"}),(0,m.jsx)(F.Z,{onClick:function(){l.current=!l.current,f(p+1)},children:(0,m.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,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:V,ref:o})]}),(0,m.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,m.jsx)(z.FI,{initDiagram:function(){var e=G.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",f="#d5ebff",m="#f2dfe0",h="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var r=n.part.adornedPart,o=(new G.Point).setRectSpot(r.actualBounds,t);o.subtract(r.location),o.scale(2,2),o.x+=130*Math.sign(o.x),o.y+=130*Math.sign(o.y),o.add(r.location),o.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(r.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(r.data)),i.addNodeData(a);var l={from:r.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=o,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(G.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(G.Spot.Top)||t.equals(G.Spot.Bottom)?25:18,height:t.equals(G.Spot.Top)||t.equals(G.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function x(t){return e(G.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function y(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function k(t,n){return n||(n="color"),e(G.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:y(n,t),contextClick:y(n,t)})}function C(){return[e("ContextMenuButton",e(G.Panel,"Horizontal",k(u,"fill"),k(p,"fill"),k(f,"fill"),k(m,"fill"))),e("ContextMenuButton",e(G.Panel,"Horizontal",k(g,"fill"),k(v,"fill"),k(h,"fill"),k(w,"fill")))]}function j(){return[e("ContextMenuButton",e(G.Panel,"Horizontal",k(d),k(a),k(n),k(t))),e("ContextMenuButton",e(G.Panel,"Horizontal",k(u),k(l),k(s),k(c)))]}function S(t,n){return n||(n="thickness"),e(G.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:y(n,t),contextClick:y(n,t)})}function B(t,n){return n||(n="dash"),e(G.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:y(n,t),contextClick:y(n,t)})}function A(){return[e("ContextMenuButton",e(G.Panel,"Horizontal",S(1),S(2),S(3),S(4))),e("ContextMenuButton",e(G.Panel,"Horizontal",B(null),B([2,4]),B([4,4])))]}function T(t,n){return n||(n="figure"),e(G.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:y(n,t),contextClick:y(n,t)})}function E(t){return e(G.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function P(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(G.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:y("dir",t),contextClick:y("dir",t)})}function N(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",G.Spot.stringify(G.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(G.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function _(t,n){var i=0,r=G.Spot.RightSide;t.equals(G.Spot.Top)?(i=270,r=G.Spot.TopSide):t.equals(G.Spot.Left)?(i=180,r=G.Spot.LeftSide):t.equals(G.Spot.Bottom)&&(i=90,r=G.Spot.BottomSide),n||(i-=180);var o=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",G.Spot.stringify(r)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(G.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:o,contextClick:o})}return i.current=new G.Diagram(r.current,{padding:20,grid:e(G.Panel,"Grid",e(G.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(G.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(R),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(G.Node,"Auto",{locationSpot:G.Spot.Center,locationObjectName:"SHAPE",desiredSize:new G.Size(120,60),minSize:new G.Size(40,40),resizable:!0,resizeCellSize:new G.Size(10,10),rotatable:!0},new G.Binding("location","loc",G.Point.parse).makeTwoWay(G.Point.stringify),new G.Binding("desiredSize","size",G.Size.parse).makeTwoWay(G.Size.stringify),e(G.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:G.Spot.AllSides,toSpot:G.Spot.AllSides},new G.Binding("figure"),new G.Binding("fill"),new G.Binding("stroke","borderColor"),new G.Binding("strokeWidth","thickness"),new G.Binding("strokeDashArray","dash")),e(G.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(G.TextBlock,{margin:1,textAlign:"center",overflow:G.TextBlock.OverflowEllipsis,editable:!0},new G.Binding("text").makeTwoWay(),new G.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(G.Panel,"Vertical",{maxSize:new G.Size(200,NaN)},e(G.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new G.Binding("text")),e(G.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new G.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(G.Adornment,"Spot",e(G.Placeholder,{padding:10}),b(G.Spot.Top,"TriangleUp"),b(G.Spot.Left,"TriangleLeft"),b(G.Spot.Right,"TriangleRight"),b(G.Spot.Bottom,"TriangleDown"),x({alignment:new G.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(G.Panel,"Horizontal",T("Rectangle"),T("RoundedRectangle"),T("Ellipse"),T("Diamond"))),e("ContextMenuButton",e(G.Panel,"Horizontal",T("Parallelogram2"),T("ManualOperation"),T("Procedure"),T("Cylinder1"))),e("ContextMenuButton",e(G.Panel,"Horizontal",T("Terminator"),T("CreateRequest"),T("Document"),T("TriangleDown"))),C(),j(),A()),i.current.groupTemplate=e(G.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:G.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new G.Binding("location","loc",G.Point.parse).makeTwoWay(G.Point.stringify),e(G.Panel,"Auto",{name:"BODY"},e(G.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:G.Spot.AllSides,toSpot:G.Spot.AllSides},new G.Binding("fill"),new G.Binding("stroke","color"),new G.Binding("strokeWidth","thickness"),new G.Binding("strokeDashArray","dash")),e(G.Placeholder,{background:"transparent",margin:20})),e(G.TextBlock,{alignment:G.Spot.Top,alignmentFocus:G.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new G.Binding("text"),new G.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(G.Adornment,"Spot",e(G.Panel,"Auto",e(G.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(G.Placeholder,{margin:1.5})),x({alignment:G.Spot.TopRight,alignmentFocus:G.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",C(),j(),A()),i.current.linkTemplate=e(G.Link,{layerName:"Foreground",routing:G.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new G.Binding("fromSpot","fromSpot",G.Spot.parse),new G.Binding("toSpot","toSpot",G.Spot.parse),new G.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new G.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new G.Binding("points").makeTwoWay(),e(G.Shape,{strokeWidth:2},new G.Binding("stroke","color"),new G.Binding("strokeWidth","thickness"),new G.Binding("strokeDashArray","dash")),e(G.Shape,{segmentIndex:0,segmentOffset:new G.Point(15,0),segmentOrientation:G.Link.OrientAlong,alignmentFocus:G.Spot.Right,figure:"circle",width:10,strokeWidth:0},new G.Binding("fill","color"),new G.Binding("visible","dir",(function(e){return 1===e}))),e(G.Shape,{segmentIndex:-1,segmentOffset:new G.Point(-10,6),segmentOrientation:G.Link.OrientPlus90,alignmentFocus:G.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new G.Binding("fill","color"),new G.Binding("visible","dir",(function(e){return e>=1})),new G.Binding("width","thickness",(function(e){return 7+3*e})),new G.Binding("height","thickness",(function(e){return 7+3*e})),new G.Binding("segmentOffset","thickness",(function(e){return new G.Point(-15,4+1.5*e)}))),e(G.Shape,{segmentIndex:0,segmentOffset:new G.Point(15,-6),segmentOrientation:G.Link.OrientMinus90,alignmentFocus:G.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new G.Binding("fill","color"),new G.Binding("visible","dir",(function(e){return 2===e})),new G.Binding("width","thickness",(function(e){return 7+3*e})),new G.Binding("height","thickness",(function(e){return 7+3*e})),new G.Binding("segmentOffset","thickness",(function(e){return new G.Point(-15,4+1.5*e)}))),e(G.TextBlock,{alignmentFocus:new G.Spot(0,1,-4,0),editable:!0},new G.Binding("text").makeTwoWay(),new G.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(G.Adornment,e(G.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:E(2)},new G.Binding("pathPattern","thickness",E)),x({alignmentFocus:new G.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",j(),A(),e("ContextMenuButton",e(G.Panel,"Horizontal",P(0),P(1),P(2))),e("ContextMenuButton",e(G.Panel,"Horizontal",e(G.Panel,"Spot",N(!1),_(G.Spot.Top,!1),_(G.Spot.Left,!1),_(G.Spot.Right,!1),_(G.Spot.Bottom,!1)),e(G.Panel,"Spot",{margin:new G.Margin(0,0,0,2)},N(!0),_(G.Spot.Top,!0),_(G.Spot.Left,!0),_(G.Spot.Right,!0),_(G.Spot.Bottom,!0))))),new G.Palette(o.current,{maxSelectionCount:1,linkTemplate:e(G.Link,{locationSpot:G.Spot.Center,selectionAdornmentTemplate:e(G.Adornment,"Link",{locationSpot:G.Spot.Center},e(G.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(G.Shape,{toArrow:"Standard",stroke:null}))},{routing:G.Link.AvoidsNodes,curve:G.Link.JumpOver,corner:5,toShortLength:4},new G.Binding("points"),e(G.Shape,{isPanelMain:!0,strokeWidth:2}),e(G.Shape,{toArrow:"Standard",stroke:null})),model:new G.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(I()(G.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(G.Node,"Auto",{locationSpot:G.Spot.Center},new G.Binding("location","location",G.Point.parse).makeTwoWay(G.Point.stringify),e(G.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 G.Binding("stroke").makeTwoWay(),new G.Binding("fill").makeTwoWay(),new G.Binding("figure")),e(G.TextBlock,{margin:new G.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new G.Size(16,16),maxSize:new G.Size(10,NaN),textAlign:"center",editable:!0},new G.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(G.Panel,"Grid",e(G.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(G.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),i.current.grid.visible=!0,i.current.grid.gridCellStroke="darkgray",i.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=i.current,i.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,m.jsx)("div",{ref:r})]})]}),(0,m.jsx)("div",{className:"tr",children:(0,m.jsx)(j.ZP,{size:"large",onClick:h,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},q=n(5112),Y=n(94001),J=q.ZP.Group,Q={margin:"0 8px"},X=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(k.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,m.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,m.jsx)("span",{style:Q,children:"单元格数:"}),(0,m.jsx)("span",{style:Q,children:"行数"}),(0,m.jsx)(k.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,m.jsx)(Y.Z,{})}),(0,m.jsx)("span",{style:Q,children:"列数"}),(0,m.jsx)(k.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,m.jsx)(Y.Z,{})})]}),(0,m.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,m.jsx)("span",{style:Q,children:"对齐方式:"}),(0,m.jsx)(k.Z.Item,{name:"align",children:(0,m.jsxs)(J,{children:[(0,m.jsx)(q.ZP,{value:"default",children:(0,m.jsx)("i",{className:"fa fa-align-justify"})}),(0,m.jsx)(q.ZP,{value:"left",children:(0,m.jsx)("i",{className:"fa fa-align-left"})}),(0,m.jsx)(q.ZP,{value:"center",children:(0,m.jsx)("i",{className:"fa fa-align-center"})}),(0,m.jsx)(q.ZP,{value:"right",children:(0,m.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(j.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(j.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,r=e.height,o=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],f=d[1],h=(0,c.useRef)({id:l,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,c.useEffect)((function(){s.current=new(te())(h.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return o&&o(e),e};return(0,c.useEffect)((function(){h.current.appName=p?"3D":"graphing",s.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){f(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,m.jsxs)(E.Z,{align:"middle",children:[(0,m.jsx)(F.Z,{flex:1,children:(0,m.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return f(e)}})}),(0,m.jsx)(F.Z,{children:(0,m.jsx)(j.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),re=n(92723),oe=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",fe={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},me=n(77818);var he="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},we+"-B","bold"),we+"-I","italic"),xe=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),ye=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,o=e.width,l=void 0===o?"100%":o,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,b=e.isFocus,k=void 0!==b&&b,C=e.watch,j=e.insertTemp,S=e.mode,E=void 0===S?"markdown":S,P=e.id,_=void 0===P?"markdown-editor-id":P,M=e.showResizeBar,L=void 0!==M&&M,O=e.noStorage,Z=void 0!==O&&O,I=e.showNullButton,G=void 0!==I&&I,D=e.showNullProgramButton,R=void 0!==D&&D,z=e.hidetoolBar,F=void 0!==z&&z,W=e.fullScreen,V=void 0!==W&&W,U=e.onBlur,q=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,Q=void 0===J?"":J,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,pe=void 0!==te&&te,we=e.disabledFill,ye=void 0!==we&&we,ke=e.placeholder,Ce=void 0===ke?"":ke,je=e.values,Se=void 0===je?"":je,Be=e.extraUse,Ae=(0,c.useState)(null),Te=a()(Ae,2),Ee=Te[0],Pe=Te[1],Ne=(0,c.useState)(n),_e=a()(Ne,2),Me=_e[0],Le=_e[1],Oe=(0,c.useState)(C),Ze=a()(Oe,2),Ie=Ze[0],Ge=Ze[1],De=(0,c.useState)(V),Re=a()(De,2),ze=Re[0],He=Re[1],Fe=(0,c.useState)(""),We=a()(Fe,2),Ve=We[0],Ue=We[1],Ke=(0,c.useState)(0),qe=a()(Ke,2),Ye=qe[0],Je=qe[1],Qe=(0,c.useState)(g),Xe=a()(Qe,2),$e=Xe[0],et=Xe[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),rt=(0,c.useState)(0),ot=a()(rt,2),at=ot[0],lt=ot[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),ft=(0,c.useRef)(),mt=(0,c.useRef)(),ht=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Le(Se),null==Ee||Ee.setValue(Se),window.scrollTo(0,e)}),[Se]),(0,c.useEffect)((function(){null==Y||Y(ze)}),[ze]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var r=i.types.toString(),o=i.items;if("Files"===r||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==E)return;try{var a,l=o[1];"file"===(null===(a=o[0])||void 0===a?void 0:a.kind)&&(l=o[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,T.I)(s,(function(e){var n,i,r;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(r=s.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(re.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){oe.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:E,lineNumbers:!w,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",Ce):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),r=n.getLine(i.line),o=r.charAt(i.ch-1),a=r.lastIndexOf("@▁@",i.ch),l=r.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===he.indexOf(o))return null;if(console.log("change1:",t,e,r,i,s,a,l,o),s>=0&&i.ch-s<5){var u=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),k&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Pe(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){ft.current}),[$e,ft,ze]);(0,c.useEffect)((function(){if(Ee){var e=function(){var e=new p.Z((function(e){var t,n=r()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Ee.setSize("100%","100%"),Ee.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Ee,gt]),(0,c.useEffect)((function(){if(Ee){for(var e=[],t=function(){var t=a()(i[n],2),r=t[0],o=t[1],l=s()({},r,(function(){vt(o)}));e.push(l),Ee.addKeyMap(l)},n=0,i=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(_);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(_,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Ge(C)}),[Ee,C]),(0,c.useEffect)((function(){Ee&&k&&Ee.focus()}),[Ee,k]),(0,c.useEffect)((function(){if(Ie&&Ee){var e=function(e){var t=e.target;if(ht.current){var n=t.scrollTop/t.scrollHeight;ht.current.scrollTop=ht.current.scrollHeight*n}},t=Ee.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Ee,Ie]),(0,c.useEffect)((function(){if(Ee&&q){var e=function(e,t){q(e,t)};return Ee.on("beforeChange",e),function(){Ee.off("beforeChange",e)}}}),[Ee,q]),(0,c.useEffect)((function(){if(Ee&&U){var e=function(){U(Ee.getValue())};return Ee.on("blur",e),function(){Ee.off("blur",e)}}}),[Ee,U]),(0,c.useEffect)((function(){if(Ee){var e=function(e,t){var n=e.getValue();Le(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(R?i(n,kt(n)):i(n))};return Ee.on("change",e),function(){Ee.off("change",e)}}}),[Ee,i]),(0,c.useEffect)((function(){if(Ee)if(null==n)Ee.setValue(""),Le("");else{var e=window.scrollY||window.pageYOffset;n!==Ee.getValue()&&(Ee.setValue(n),Le(n),Ee.setCursor(pe?1:Ee.lineCount(),0),window.scrollTo(0,e))}}),[Ee,n]);var vt=(0,c.useCallback)((function(e){var t=Ee.getCursor(),n=Ee.getSelection(),i=n.split("\n");switch(e){case"bold":return Ee.replaceSelection("**"+n+"**"),""===n&&Ee.setCursor(t.line,t.ch+2),Ee.focus();case"italic":return Ee.replaceSelection("*"+n+"*"),""===n&&Ee.setCursor(t.line,t.ch+1),Ee.focus();case"code":return Ee.replaceSelection("`"+n+"`"),""===n&&Ee.setCursor(t.line,t.ch+1),Ee.focus();case"inline-latex":return Ue("inline-latex"),Ee.focus();case"latex":return Ee.replaceSelection("```latex\n"+n+"\n```"),Ee.setCursor(t.line+1,n.length+1),Ee.focus();case"line-break":return Ee.replaceSelection("
\n"),Ee.focus();case"list-ul":return""===n?Ee.replaceSelection("- "+n):Ee.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ee.focus();case"list-ol":return""===n?Ee.replaceSelection("1. "+n):Ee.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Ee.focus();case"add-null-ch":return""===n&&Ee.setCursor(t.line,t.ch),Ee.replaceSelection("▁"),Ee.focus();case"add-signal":return""===n&&Ee.setCursor(t.line,t.ch),Ee.replaceSelection("@▁@"),Ee.focus();case"add-multiple":return""===n&&Ee.setCursor(t.line,t.ch),Ee.replaceSelection(he),Ee.focus();case"inster-template-1":return""===n&&Ee.setCursor(t.line,t.ch),Ee.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ee.focus();case"eraser":return Ee.setValue(""),Ee.focus();case"trigger-watch":return Ge(!Ie),Ee.focus();case"trigger-full-screen":return He(!ze),Ee.focus();case ae:return void Ue(ae);case ue:return void Ue(ue);case le:return void Ue(le);case ce:return void Ue(ce);case"maths-latex":return void Ue("maths-latex");case se:return void Ue(se);case de:return void Ue(de);default:throw new Error}}),[Ee,Ie,ze]),wt=(0,c.useCallback)((function(e,t){var n,i,r,o,a;switch(Ue(""),Ve){case ae:var l=e.title,s=e.link;return Ee.replaceSelection("[".concat(l,"](").concat(s,")")),Ee.focus();case ue:var c=e.language,u=e.content;return Ee.replaceSelection(["```"+c,u,"```"].join("\n")),Ee.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),f=0;f-1||null==v||!v.type?g?Ee.replaceSelection("![ ".concat(g," ]( ").concat(h,' "').concat(g,'" )')):Ee.replaceSelection("![,](".concat(h,")")):(null==v||null===(o=v.type)||void 0===o?void 0:o.indexOf("video"))>-1?Ee.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Ee.replaceSelection('').concat(v.name,"")):ge.includes(w)?Ee.replaceSelection('').concat(v.name,"")):Ee.replaceSelection("[".concat(v.name,"](").concat(re.Z.API_SERVER).concat(h,")")),Ee.focus();case de:for(var b=e.row,x=e.col,y=e.align,k="\n",C=0;C300&&(t=300),et(g+t+"px")}},i=mt.current,r=!1,o=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Ee,mt]),(0,c.useEffect)((function(){et(g)}),[g]);var yt={width:ve(l),height:ve($e)},kt=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(R){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){xe[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var Ct=function(e,t,n,i){var r=document.body.clientHeight,o=document.body.clientWidth;return!(e<20&&n>e||e>o-20&&nt||t>r-20&&i0&&ie(a()(t.members)),Ce(null==t?void 0:t.is_ai),Q(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){var e;(console.log(ke,!je.current,null==ne?void 0:ne.length,null==ae?void 0:ae.length,333),ke&&!je.current&&null!=ae&&ae.length&&null!=ne&&ne.length)&&(je.current=!0,le(null==X?void 0:X.members),W.setFieldsValue({user_ids:null==X||null===(e=X.members)||void 0===e?void 0:e.map((function(e){return e.user_id}))}))}),[ke,null==ne?void 0:ne.length,null==ae?void 0:ae.length]),(0,f.useEffect)((function(){l({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:c.commonHomeworkId}}),l({type:"shixunHomeworks/addStudentWorkDefaultData",payload:s()(s()({},c),{},{type:3})})}),[]),(0,f.useEffect)((function(){Ee()}),[Ae]),(0,f.useEffect)((function(){null!=X&&X.homework_name&&le(a()(null==X?void 0:X.members))}),[null==X?void 0:X.homework_name]);var Pe=function(){var e=u()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.user_ids=(null==ae?void 0:ae.map((function(e){return e.user_id})))||[],e.next=3,(0,E.Be)(s()(s()(s()({},c),t),{},{type:3}));case 3:0===(n=e.sent).status&&m.history.push("/classrooms/".concat(c.coursesId,"/group_homework/").concat(c.commonHomeworkId,"/review/").concat(n.work_id));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ne=function(){var e=u()(r()().mark((function e(t){var n,i,o,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=s()({},K)).base_on_project=1,n.attachment_ids&&(n.attachment_ids=null==n||null===(i=n.attachment_ids)||void 0===i?void 0:i.map((function(e){return e.response.id}))),o=!1,ae.map((function(e){e.score||(o=!0)})),!X.is_group_grade||!o){e.next=8;break}return g.ZP.warning("评分不能为空"),e.abrupt("return");case 8:if(n.group_leader_scores=ae.map((function(e){return{user_id:e.user_id,score:e.score}})),a=function(){n.attachment_ids&&""!=n.attachment_ids?Pe(n):v.Z.confirm({title:(0,F.jsxs)("div",{children:["还未上传附件",(0,F.jsx)("br",{}),"是否确认提交作品?"]}),onOk:function(){Pe(n)}})},null==$||!$.can_submit){e.next=16;break}if(null!=$&&$.submit_size){e.next=14;break}return g.ZP.warning("您的作品提交机会已用完。如需继续修改,请联系指导老师或平台运营。"),e.abrupt("return");case 14:return v.Z.confirm({title:"提示",icon:null,centered:!0,width:472,content:(0,F.jsxs)(F.Fragment,{children:["你还有 ",(0,F.jsx)("span",{className:"ml5 mr5",style:{color:"#DF711C"},children:null==$?void 0:$.submit_size})," 次提交机会。确认提交后,上一次的提交记录会被覆盖。请注意,到达规定的提交次数后将不可再次提交,确定是否提交?"]}),onOk:function(){a()}}),e.abrupt("return");case 16:a();case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return console.log("---",ae),(0,F.jsxs)("section",{className:P,children:[X.course_name&&(0,F.jsx)("section",{className:"animated fadeIn",children:(0,F.jsx)("aside",{className:"mt10",children:X.category&&(0,F.jsxs)(w.Z,{separator:">",children:[(0,F.jsx)(w.Z.Item,{href:"/classrooms/".concat(X.course_id,"/group_homework"),children:X.course_name}),(0,F.jsx)(w.Z.Item,{href:"/classrooms/".concat(X.course_id,"/group_homework"),children:X.category.category_name}),(0,F.jsxs)(w.Z.Item,{children:[null==X?void 0:X.user_name," 提交作品"]})]})})}),(0,F.jsx)("aside",{className:"font24 bold mt20 mb20",children:X.homework_name}),(0,F.jsxs)("div",{style:{background:"#fff",padding:"20px 30px"},children:[(0,F.jsx)("div",{style:{fontSize:"18px",marginBottom:"10px",fontWeight:600},children:"作业描述"}),(0,F.jsx)(G.Z,{value:(null==$?void 0:$.description)||"暂无~"}),(0,F.jsx)(I.Z,{authority:(0,D.GJ)(),showDimensions:!1,dataSource:null==$?void 0:$.attachments,callback:function(){l({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:c.commonHomeworkId}})}}),(0,F.jsx)(H.Ei,{value:$})]}),(0,F.jsx)(h.Z,{form:W,className:N,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(e,t){return q(t)},onFinish:Ne,children:(0,F.jsxs)("div",{className:_,children:[(0,F.jsx)(h.Z.Item,{htmlFor:null,label:(0,F.jsx)("span",{children:"内容:"}),name:"description",rules:[{required:!0,message:"请输入作业的简介"},{type:"string",max:65535,message:"作业简介最大限制65535个字符"},{type:"string",whitespace:!0,message:"内容不能全为空格"}],children:(0,F.jsx)(T.h,{placeholder:"请在此输入内容,最多65535个字符",scrollId:"",watch:!0})}),(0,F.jsx)(h.Z.Item,{name:"attachment_ids",children:(0,F.jsx)(Z.Z,{})}),(0,F.jsx)(b.Z,{}),(0,F.jsx)("div",{children:"小组成员:"}),(0,F.jsxs)("div",{style:{display:"flex"},children:[(0,F.jsxs)(x.Z,{align:"middle",className:"mb20",style:{marginTop:20,width:550},children:[(0,F.jsxs)(y.Z,{span:12,children:["成员要求:",X.min_num,"~",X.max_num,"人 "]}),(0,F.jsx)(y.Z,{span:12,style:{display:"flex",justifyContent:"flex-end"},children:(0,F.jsx)(k.Z.Search,{onSearch:function(e,t){t.preventDefault(),""===e?delete Ae.search:Ae.search=e,Ae.page=1,Te(s()({},Ae)),ie([]),Q(!0)},placeholder:"请输入姓名或学号搜索",allowClear:!0,style:{width:240}})})]}),(0,F.jsx)(x.Z,{style:{width:610,alignItems:"center"},justify:"end",children:X.is_leader&&(0,F.jsx)("span",{className:M,onClick:function(){de(!0)},children:"更换队长"})})]}),(0,F.jsxs)(x.Z,{align:"middle",children:[(0,F.jsx)(y.Z,{span:11,children:(0,F.jsx)(C.Z,{dataSource:ne,pagination:!1,rowKey:function(e){return e.user_id},style:{minHeight:440,border:"1px solid #F6F7F9",minWidth:550},rowSelection:{type:"checkbox",getCheckboxProps:function(e){var t;return{disabled:ke||(null==e?void 0:e.user_id)===(null===(t=i.userInfo)||void 0===t?void 0:t.user_id)||!(null!=X&&X.is_leader)}},selectedRowKeys:null==ae?void 0:ae.map((function(e){return e.user_id})),onSelect:function(e,t,n){if(t)le([].concat(a()(ae),[s()({},e)]));else{var i=ae.filter((function(t){return t.user_id!==(null==e?void 0:e.user_id)}));le(a()(i))}},onChange:function(e,t,n){"all"===n.type&&le(a()(t))}},scroll:{y:400},columns:[{title:"姓名",dataIndex:"user_name",key:"user_name"},{title:"分班",dataIndex:"group_name",key:"group_name"},{title:"学号",dataIndex:"student_id",key:"student_id"}]})}),(0,F.jsx)(y.Z,{span:1,children:(0,F.jsx)("img",{src:R,style:{marginLeft:35}})}),(0,F.jsx)(y.Z,{span:12,style:{display:"flex",justifyContent:"flex-end"},children:(0,F.jsxs)("div",{className:L,style:{width:550},children:[(0,F.jsxs)(x.Z,{className:O,children:[(0,F.jsx)(y.Z,{className:"ml30",flex:"100px",children:"姓名"}),(0,F.jsx)(y.Z,{flex:"120px",style:{marginLeft:5},children:"分班"}),(0,F.jsx)(y.Z,{flex:"110px",children:"学号"}),(0,F.jsx)(y.Z,{children:X.is_group_grade&&"评分"})]}),(0,F.jsx)("div",{style:{overflow:"auto",height:360},children:null==ae?void 0:ae.map((function(e,t){return(0,F.jsxs)(x.Z,{align:"middle",style:{height:48,lineHeight:"48px",paddingLeft:30,borderBottom:"1px solid rgba(48,97,208,0.1)"},children:[(0,F.jsx)(y.Z,{flex:"100px",children:e.user_name}),(0,F.jsx)(y.Z,{flex:"120px",style:{marginLeft:5},children:e.group_name}),(0,F.jsx)(y.Z,{flex:"110px",children:e.student_id}),(0,F.jsx)(y.Z,{children:X.is_group_grade&&(0,F.jsx)(j.Z,{stringMode:!0,min:"0.1",max:"100",step:"0.1",placeholder:"请输入",value:e.score,onChange:function(t){le(ae.map((function(n){return e.user_id==n.user_id?s()(s()({},n),{},{score:t}):n})))}})}),(0,F.jsx)(y.Z,{style:{marginLeft:10},children:0!=t&&!ke&&X.is_leader&&(0,F.jsx)("i",{className:"iconfont icon-shanchudiao current",onClick:function(){var t,n;W.setFieldsValue({user_ids:null==K||null===(t=K.user_ids)||void 0===t?void 0:t.filter((function(t){return t!==e.user_id}))}),q(s()(s()({},K),{},{user_ids:null==K||null===(n=K.user_ids)||void 0===n?void 0:n.filter((function(t){return t!==e.user_id}))})),le(ae.filter((function(t){return t.user_id!=e.user_id})))}})})]},t)}))})]})})]})]})}),(0,F.jsxs)(x.Z,{align:"middle",className:"pt40 mb30",children:[(0,F.jsx)(S.ZP,{size:"middle",type:"primary",className:"".concat(M," mr20"),loading:o["newCourse/editCourse"]||o["newCourse/submitCourse"],onClick:function(){return W.submit()},children:"提交"}),(0,F.jsx)(S.ZP,{size:"middle",type:"primary",ghost:!0,className:M,onClick:function(){return m.history.push("/classrooms/".concat(c.coursesId,"/group_homework/").concat(c.commonHomeworkId,"/detail"))},children:"取消"})]}),(0,F.jsxs)(v.Z,{title:"更换队长",open:ue,onCancel:function(){de(!1)},okButtonProps:{loading:me},onOk:u()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("--",c),he(!0),e.next=4,(0,z.ZP)("/api/student_works/".concat(X.student_work_id,"/change_captain.json"),{method:"put",body:{user_id:we}});case 4:t=e.sent,he(!1),0===(null==t?void 0:t.status)&&(de(!1),l({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:c.commonHomeworkId}}),l({type:"shixunHomeworks/addStudentWorkDefaultData",payload:s()(s()({},c),{},{type:3})}));case 7:case"end":return e.stop()}}),e)}))),children:[(0,F.jsx)("div",{children:"选择的成员将会成为新的队长"}),(0,F.jsx)("div",{children:"您将不再拥有队长的权限,但您仍是该组的组员"}),(0,F.jsx)("div",{style:{marginTop:20,background:"#F6F7F9",padding:15},children:(0,F.jsx)(B.ZP.Group,{onChange:function(e){be(e.target.value)},children:(0,F.jsx)(A.Z,{direction:"vertical",children:null==X||null===(t=X.members)||void 0===t||null===(t=t.filter((function(e){return!e.is_leader})))||void 0===t?void 0:t.map((function(e){return(0,F.jsx)(B.ZP,{value:e.user_id,children:e.user_name})}))})})})]})]})}))},72764:function(e,t,n){"use strict";n.d(t,{Ei:function(){return w},rU:function(){return b},ZP:function(){return x}});var i=n(82242),r=n.n(i),o=n(79800),a=n.n(o),l=n(59301),s={wrap:"wrap___W3YuU",title:"title___OzKge",exhibition:"exhibition___ugphm"},c=n(78241),u=n(95237),d=n(43604),p=n(24905),f=n(94001),m=n(6848),h=n(92310),g=n.n(h),v=n(37712),w=function(e){var t=e.value,n=e.className,i=e.style,r=(0,l.useState)("0"),o=a()(r,2),c=o[0],u=o[1];(0,l.useEffect)((function(){if(t){var e=t.submit_limit,n=t.must_file;if(e&&n)return void u("1");if(e&&!n)return void u("2");if(!e&&n)return void u("3")}}),[t]);var d={1:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符,并且必须上传相关附件。"]}),2:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符"]}),3:(0,v.jsx)("span",{children:"必须上传相关附件。"})};return"0"===c?(0,v.jsx)(v.Fragment,{}):(0,v.jsxs)("section",{className:g()(s.exhibition,n),style:i,children:[(0,v.jsx)("span",{className:"c-grey-666 mr10",children:"提交作业要求:"}),null==d?void 0:d[c]]})},b=function(e){var t=e.className,n=e.style,i=e.form,r=c.Z.useWatch("submit_limit",i),o=c.Z.useWatch("can_submit",i);return(0,v.jsx)("section",{className:g()(s.newWrap,t),style:n,children:(0,v.jsxs)("div",{style:{padding:"20px 0",borderBottom:"1px solid #EDEDED"},children:[(0,v.jsx)("h1",{children:"提交设置"}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"can_submit",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"限制学生提交作品"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_num",rules:o&&[{required:!0,message:"请填写作品次数"}],children:(0,v.jsx)(f.Z,{precision:0,min:1,disabled:!o})})}),(0,v.jsx)(d.Z,{children:"次"}),(0,v.jsxs)(d.Z,{children:[" ",(0,v.jsx)(m.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999"})})]})]}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生填写内容至少"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit_num",rules:r&&[{required:!0,message:"字数不能为空"}],children:(0,v.jsx)(f.Z,{precision:0,min:1,disabled:!r})})}),(0,v.jsx)(d.Z,{children:"字"})]}),(0,v.jsx)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"must_file",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生提交作业必须上传附件"})})})})})]})})},x=function(e){var t=e.value,n=e.onChange,i=e.className,o=e.style,c=e.disabled,d=void 0!==c&&c,h=(0,l.useState)({}),w=a()(h,2),b=w[0],x=w[1];(0,l.useEffect)((function(){if(console.log(t,"value"),t){var e={submit_limit:null==t?void 0:t.submit_limit,submit_limit_num:null==t?void 0:t.submit_limit_num,must_file:null==t?void 0:t.must_file,can_submit:null==t?void 0:t.can_submit,submit_num:null==t?void 0:t.submit_num};x(r()({},e))}}),[t]);var y=function(e){var t=r()(r()({},b),e);n(t)};return(0,v.jsxs)("section",{className:g()(s.wrap,i),style:o,children:[(0,v.jsx)("div",{className:s.title,children:"提交设置"}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==b?void 0:b.can_submit,onChange:function(e){return y({can_submit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"限制学生提交作业"}),(0,v.jsx)(f.Z,{precision:0,min:1,disabled:d||!(null!=b&&b.can_submit),value:null==b?void 0:b.submit_num,onChange:function(e){return y({submit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"次"}),(0,v.jsx)(m.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999 ml5"})})]}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==b?void 0:b.submit_limit,onChange:function(e){return y({submit_limit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"学生填写内容至少"}),(0,v.jsx)(f.Z,{precision:0,min:1,disabled:d||!(null!=b&&b.submit_limit),value:null==b?void 0:b.submit_limit_num,onChange:function(e){return y({submit_limit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"字"})]}),(0,v.jsxs)(u.Z,{align:"middle",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==b?void 0:b.must_file,onChange:function(e){return y({must_file:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10",children:"学生提交作业必须上传附件"})]})]})}},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return f},jP:function(){return p},rO:function(){return c}});var i=n(7557),r=n.n(i),o=n(41498),a=n.n(o),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,l.v_)("libraries.json",e)}function f(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}},65648:function(e,t){"use strict";t.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},66104:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var i=n(92310),r=n.n(i),o=n(75440),a=n(47413),l=n(59301),s=n(92343),c=n(36355),u=n(78386),d=n(91857);const p=e=>{let{children:t}=e;const{getPrefixCls:n}=l.useContext(c.E_),i=n("breadcrumb");return l.createElement("li",{className:`${i}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};p.__ANT_BREADCRUMB_SEPARATOR=!0;var f=p,m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{if(t)return t(n,i,r,o);const l=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(n,i);return h(e,n,l,a)}}var v=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,separator:n="/",children:i,menu:r,overlay:o,dropdownProps:a,href:s}=e;const c=(e=>{if(r||o){const n=Object.assign({},a);if(r){const e=r||{},{items:t}=e,i=v(e,["items"]);n.menu=Object.assign(Object.assign({},i),{items:null==t?void 0:t.map(((e,t)=>{var{key:n,title:i,label:r,path:o}=e,a=v(e,["key","title","label","path"]);let c=null!=r?r:i;return o&&(c=l.createElement("a",{href:`${s}${o}`},c)),Object.assign(Object.assign({},a),{key:null!=n?n:t,label:c})}))})}else o&&(n.overlay=o);return l.createElement(d.Z,Object.assign({placement:"bottom"},n),l.createElement("span",{className:`${t}-overlay-link`},e,l.createElement(u.Z,null)))}return e})(i);return null!=c?l.createElement(l.Fragment,null,l.createElement("li",null,c),n&&l.createElement(f,null,n)):null},b=e=>{const{prefixCls:t,children:n,href:i}=e,r=v(e,["prefixCls","children","href"]),{getPrefixCls:o}=l.useContext(c.E_),a=o("breadcrumb",t);return l.createElement(w,Object.assign({},r,{prefixCls:a}),h(a,r,n,i))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,y=n(17313),k=n(83116),C=n(37613);const j=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,y.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,y.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var S=(0,k.Z)("Breadcrumb",(e=>{const t=(0,C.TS)(e,{});return[j(t)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),B=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{breadcrumbName:t}=e,n=B(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})}))}),r}var T=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,separator:n="/",style:i,className:u,rootClassName:d,routes:p,items:m,children:h,itemRender:v,params:b={}}=e,x=T(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:y,direction:k,breadcrumb:C}=l.useContext(c.E_);let j;const B=y("breadcrumb",t),[E,P]=S(B),N=function(e,t){return(0,l.useMemo)((()=>e||(t?t.map(A):null)),[e,t])}(m,p);const _=g(B,v);if(N&&N.length>0){const e=[],t=m||p;j=N.map(((i,r)=>{const{path:o,key:s,type:c,menu:u,overlay:d,onClick:p,className:m,separator:h,dropdownProps:g}=i,v=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{n=n.replace(`:${t}`,e[t])})),n})(b,o);void 0!==v&&e.push(v);const x=null!=s?s:r;if("separator"===c)return l.createElement(f,{key:x},h);const y={},k=r===N.length-1;u?y.menu=u:d&&(y.overlay=d);let{href:C}=i;return e.length&&void 0!==v&&(C=`#/${e.join("/")}`),l.createElement(w,Object.assign({key:x},y,(0,a.Z)(i,{data:!0,aria:!0}),{className:m,dropdownProps:g,href:C,separator:k?"":n,onClick:p,prefixCls:B}),_(i,b,t,e,C))}))}else if(h){const e=(0,o.Z)(h).length;j=(0,o.Z)(h).map(((t,i)=>{if(!t)return t;const r=i===e-1;return(0,s.Tm)(t,{separator:r?"":n,key:i})}))}const M=r()(B,null==C?void 0:C.className,{[`${B}-rtl`]:"rtl"===k},u,d,P),L=Object.assign(Object.assign({},null==C?void 0:C.style),i);return E(l.createElement("nav",Object.assign({className:M,style:L},x),l.createElement("ol",null,j)))};E.Item=x,E.Separator=f;var P=E},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(92310),r=n.n(i),o=n(59301),a=n(36355),l=n(17313),s=n(83116),c=n(37613);const u=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:r,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${r}px solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,s.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[u(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:n,divider:i}=o.useContext(a.E_),{prefixCls:l,type:s="horizontal",orientation:c="center",orientationMargin:u,className:f,rootClassName:m,children:h,dashed:g,plain:v,style:w}=e,b=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),x=t("divider",l),[y,k]=d(x),C=c.length>0?`-${c}`:c,j=!!h,S="left"===c&&null!=u,B="right"===c&&null!=u,A=r()(x,null==i?void 0:i.className,k,`${x}-${s}`,{[`${x}-with-text`]:j,[`${x}-with-text${C}`]:j,[`${x}-dashed`]:!!g,[`${x}-plain`]:!!v,[`${x}-rtl`]:"rtl"===n,[`${x}-no-default-orientation-margin-left`]:S,[`${x}-no-default-orientation-margin-right`]:B},f,m),T=o.useMemo((()=>"number"==typeof u?u:/^\d+$/.test(u)?Number(u):u),[u]),E=Object.assign(Object.assign({},S&&{marginLeft:T}),B&&{marginRight:T});return y(o.createElement("div",Object.assign({className:A,style:Object.assign(Object.assign({},null==i?void 0:i.style),w)},b,{role:"separator"}),h&&"vertical"!==s&&o.createElement("span",{className:`${x}-inner-text`,style:E},h)))}},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQ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w6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},96622:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAUCAYAAACeXl35AAAAAXNSR0IArs4c6QAAAI5JREFUSEtjZKASMI65Jnl2idZzQsYxElJArLxR/CVjxr8szwhZSlULQY4jZCnVLSRkKU0sxGcpzSzEZSkjKLKJTRjkqEOPU5pbiO5TuliIbCndLIRZOnwthCUeuvgQOaXS3EKMbEFO3sKmB1t+xlau0qykwVWI08RCfDUG1S2ka/VEyDJw5qdWoiG2iQEA4ntvEVdpqFkAAAAASUVORK5CYII="}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__GroupHomework__SubmitWork__index.cd22c8e6.async.js b/p__Classrooms__Lists__GroupHomework__SubmitWork__index.cd22c8e6.async.js deleted file mode 100644 index fdc2895a78..0000000000 --- a/p__Classrooms__Lists__GroupHomework__SubmitWork__index.cd22c8e6.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[28072,4977,69932],{60186:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(5891),r=n(59301),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=n(22589),l=function(e,t){return r.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:o}))};var s=r.forwardRef(l)},57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,r=!1,o=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function k(){try{return window.self!==window.top}catch(e){return!0}}function C(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,I(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,Z(e,t))},e.getHTML5CodebaseVersion=function(){return h},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){x=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,r="auto",o=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var A=function(e){return e&&"false"!==e},T=function(t,n,i){y(h)<=4.2&&(i=!0);var r=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==h||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(r=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var o=document.createElement("div");o.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(y(h)<=4.4)A(n.showToolBar)&&(n.height-=7),A(n.showAlgebraInput)&&(n.height-=37),n.width<605&&A(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(A(n.showToolBar)||A(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=A(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(w),window.GGBT_wsf_view&&$(window).trigger("resize"),f(e)},b||w.appendChild(k)):o.appendChild(k),w.appendChild(o),b||t.appendChild(w),setTimeout((function(){e.resize()}),1)}function C(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),G("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function j(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){C(e.article,e.params)})),html5AppletsToProcess=null)},y(h)<5&&(e.className+=" geogebraweb")):C(e,t)}if(r){scriptLoadStarted=!0;for(var S=0;S0?(r.remove(),l.attr("id","fullscreencontent").show(),jQuery(o).append(l),window.dispatchEvent(new Event("resize"))):T(r,t,!1),window.GGBT_wsf_view.launchFullScreen(o)}else m=i,T(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",r.appendChild(a)}return r.appendChild(c),r},L=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},O=["web","webSimple","web3d","tablet","tablet3d","phone"],Z=function(e,t){if(h=e,t)I(h,!0);else{var o,a,l=!r;if(l){var s=y(h);!isNaN(s)&&s<4.4&&(l=!1)}o="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=h.indexOf("//");for(var u in a=c>0?h:0===c?o+h:"https://www.geogebra.org/apps/5.2.814.0/",O)if(h.slice(-1*O[u].length)===O[u]||h.slice(-1*(O[u].length+1))===O[u]+"/")return void I(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||A(n.showToolBar)||A(n.showMenuBar)||A(n.showAlgebraInput)||A(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",I(a,!1)}},I=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),f=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?O.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(h=n[n.length-3]).substr(0,4)?h=h.substr(4,1)+"."+h.substr(5,1):"war"!==h.substr(0,3)&&"beta"!==h.substr(0,4)||(h="5.0");var 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."),Z("5.0",t))}},G=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function D(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),Z(e,!1),null!==c&&I(c,f),l=!0}return void 0!==n.material_id?j(D):D(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,r){if(e.isScreenshoGenerator)return 1;var o,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(o=e.autoHeight)&&"false"!==o,c=function(e,t,n,i,r,o){var a=null;if(null!=o&&""!=o)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+o+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,p=0,f=0,m=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var h=e.getBoundingClientRect();h.left>0&&h.left<=s&&(void 0===r||!r)&&("rtl"===document.dir?(p=s-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===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?o:(r=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==o?Math.min(o,r):r)}function r(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),r=(t-i.width)/2,o=(n-i.height)/2;o<0&&(o=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=r<40?"40px":r+"px",e.style.top=o+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=o<40?"40px":o+"px",e.style.left=r+"px")}return{responsiveResize:function(n,o){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(o.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(o,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],r=O;r0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+y+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var A=function(e){var t=e.value,n=e.onChange,i=e.action,o=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,B=e.title,A=void 0===B?"上传附件":B,T=e.showRemoveModal,E=void 0!==T&&T,P=e.accept,N=void 0===P?"":P,_=e.additionalText,M=e.isDragger,L=e.number,O=void 0===L?1e3:L,Z=e.aloneClear,I=void 0!==Z&&Z,G=e.realTimeRemove,D=void 0===G||G,R=e.uploadText,z=(0,f.useState)(!1),H=p()(z,2),F=H[0],W=H[1],V=(0,f.useState)(t||[]),U=p()(V,2),K=U[0],q=U[1],Y=(0,f.useState)(1),J=p()(Y,2),Q=J[0],X=J[1];(0,f.useEffect)((function(){t&&(1===Q&&q(u()(t)),X(2),O===(null==t?void 0:t.length)&&W(!0))}),[t]);var $,ee=function(){setTimeout((function(){K.pop(),q(u()(K))}),500)},te={multiple:!0,disabled:F,accept:N,withCredentials:!0,fileList:K,beforeUpload:function(e,t){var n=e.size/1024/1024;return K.concat(t).length>O?(K.pop(),q(u()(K)),h.ZP.error("最多只能上传".concat(O,"个文件")),I?Promise.reject():(ee(),!1)):n=O?W(!0):W(!1),q(u()(K)),K=K.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(y)&&(e.name="".concat(e.name).concat(y).concat(k(e.size))),s()({},e)})),console.log("info:",e,K),n(K)):h.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:($=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(D){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(r()().mark((function e(){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!E){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,x.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(r()().mark((function t(){return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,h.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return $.apply(this,arguments)})};return(0,x.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,x.jsxs)(S,s()(s()({},te),{},{children:[(0,x.jsx)("p",{className:"ant-upload-drag-icon",children:(0,x.jsx)(C.Z,{})}),(0,x.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,x.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),_]})),!M&&(0,x.jsxs)(m.Z,s()(s()({},te),{},{children:[(0,x.jsxs)(v.ZP,{disabled:F,className:"upload_button",children:[(0,x.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),A]}),(0,x.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:R||"(单个文件最大".concat(d,"MB)")})]}))]})}},16605:function(e,t,n){"use strict";n.d(t,{h:function(){return p},x:function(){return f}});var i=n(82242),r=n.n(i),o=n(39647),a=n.n(o),l=n(16318),s=n(65648),c=n(38279),u=n(37712),d=["value","onChange","scrollId"],p=function(e){var t=e.value,n=e.onChange,i=e.scrollId,o=a()(e,d);return(0,u.jsx)("div",{id:i||"",children:(0,u.jsx)(l.Z,r()(r()({},o),{},{defaultValue:t,onChange:function(e,t){console.log("a:",e,t),null!=t&&t.length?n(e,t):n(e)}}))})},f=function(e){var t=e.value,n=e.onChange,i=e.placeholder,r=e.height,o=void 0===r?140:r,a=e.isEdit,d=e.miniToolbar,p=e.watch,f=void 0===p||p;return a?(0,u.jsx)(l.Z,{watch:f,isFocus:!0,height:o||void 0,placeholder:i,defaultValue:t,onChange:n,miniToolbar:d}):(0,u.jsx)("div",{style:{cursor:"pointer"},children:t?(0,u.jsx)(c.Z,{className:s.Z.inputBorder,value:t}):(0,u.jsx)("div",{className:"".concat(s.Z.inputBorder," ").concat(s.Z.placeholder," inputBorderError"),children:i})})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var i=n(82242),r=n.n(i),o=n(79800),a=n.n(o),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),f=(n(80443),n(90630),n(37712)),m=s.default.Option,h={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,i=e.mode,o=e.options,s=void 0===o?{}:o,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),m=d[0],h=d[1];return(0,l.useEffect)((function(){if(m){var e=function(e){var t=e.getValue();n&&n(t)};return m.on("change",e),function(){m.off("change",e)}}}),[m,n]),(0,l.useEffect)((function(){m&&m.setOption("mode",i)}),[m,i]),(0,l.useEffect)((function(){m&&(t===m.getValue()&&""!==t||setTimeout((function(){m.setValue(t||"")}),300))}),[m,t]),(0,l.useEffect)((function(){if(c.current&&!m){var e=p().fromTextArea(c.current,r()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));h(e)}}),[c.current,m]),(0,f.jsx)("div",{className:"my-codemirror-container",children:(0,f.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,l.useState)("python"),o=a()(i,2),d=o[0],p=o[1];return(0,f.jsxs)(c.Z,r()(r()({},h),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,f.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,f.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,f.jsx)(m,{value:e,children:g[e][0]},e)}))})}),(0,f.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,f.jsx)(v,{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:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return ye}});var i=n(91232),r=n.n(i),o=n(79800),a=n.n(o),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),f=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),m=n(37712),h=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),v=n.n(g),w=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,r=e.actionName,o=e.className,a=void 0===o?"":o,l=e.children;return(0,m.jsxs)("a",{title:n,className:a,onClick:function(){t(r)},children:[(0,m.jsx)("i",{className:"".concat(i)}),l]})}var x=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,r=e.onActionCallback,o=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(w,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,m.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,m.jsx)("li",{children:e.actionName?(0,m.jsx)(b,v()(v()({},e),{},{onActionCallback:r})):(0,m.jsx)("span",{className:"v-line"})},t)})),n?(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,m.jsx)("li",{children:(0,m.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:r,children:(0,m.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,m.jsx)("li",{children:s}),(0,m.jsx)("li",{className:"btn-full-screen",children:(0,m.jsx)(b,{icon:"".concat(o?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:o?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:r})})]})},y=n(24808),k=n(78241),C=n(92832),j=n(3113),S={labelCol:{span:4},wrapperCol:{span:20}},B=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(k.Z,v()(v()({},S),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(k.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,m.jsx)(C.Z,{})}),(0,m.jsx)(k.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,m.jsx)(C.Z,{})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(j.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(j.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},A=n(73145),T=n(28486),E=n(95237),P=n(36709),N=function(e){var t=e.callback,n=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 o=i.toDataURL("image/png");return(0,m.jsx)(E.Z,{style:{height:"100vh"},children:(0,m.jsx)(P.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:o,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},_=n(7557),M=n.n(_),L=n(41498),O=n.n(L),Z=n(37205),I=n.n(Z),G=n(12378);function D(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(D,go.CommandHandler),D.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},D.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},D.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},D.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},D.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},D.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},D.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},D.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(o)}else if("Down"===n.key){var r;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(r=this._sortTreeChildrenByY(t).first())&&e.select(r);else for(;null!==t;){var o,a,l;if(null===(o=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(o)).indexOf(t))i.y?1:n.xi.x?1:0})),t},D.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},D.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(D.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(D.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 R=D,z=(n(41034),n(85160)),H=n(43418),F=n(43604),W=n(18030),V="myPaletteDiv___Xjz2I",U="maxH60___Pd4Re";window.go=G;var K=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),r=(0,c.useRef)(),o=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],f=d[1],h=function(){var e=O()(M()().mark((function e(){var t,r;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:r=e.sent,n({src:r.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){f(p+1)}),[]),(0,m.jsx)("div",{ref:s,className:l.current?"".concat(U," body-overflow-initial"):"body-overflow-initial",children:(0,m.jsx)(H.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,m.jsxs)(E.Z,{children:[(0,m.jsx)(F.Z,{flex:1,children:"插入流程图"}),(0,m.jsx)(F.Z,{onClick:function(){l.current=!l.current,f(p+1)},children:(0,m.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,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:V,ref:o})]}),(0,m.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,m.jsx)(z.FI,{initDiagram:function(){var e=G.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",f="#d5ebff",m="#f2dfe0",h="#a5d2fa",g="#cccccc",v="#b3e6b3",w="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var r=n.part.adornedPart,o=(new G.Point).setRectSpot(r.actualBounds,t);o.subtract(r.location),o.scale(2,2),o.x+=130*Math.sign(o.x),o.y+=130*Math.sign(o.y),o.add(r.location),o.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(r.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(r.data)),i.addNodeData(a);var l={from:r.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=o,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(G.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(G.Spot.Top)||t.equals(G.Spot.Bottom)?25:18,height:t.equals(G.Spot.Top)||t.equals(G.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function x(t){return e(G.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function y(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function k(t,n){return n||(n="color"),e(G.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:y(n,t),contextClick:y(n,t)})}function C(){return[e("ContextMenuButton",e(G.Panel,"Horizontal",k(u,"fill"),k(p,"fill"),k(f,"fill"),k(m,"fill"))),e("ContextMenuButton",e(G.Panel,"Horizontal",k(g,"fill"),k(v,"fill"),k(h,"fill"),k(w,"fill")))]}function j(){return[e("ContextMenuButton",e(G.Panel,"Horizontal",k(d),k(a),k(n),k(t))),e("ContextMenuButton",e(G.Panel,"Horizontal",k(u),k(l),k(s),k(c)))]}function S(t,n){return n||(n="thickness"),e(G.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:y(n,t),contextClick:y(n,t)})}function B(t,n){return n||(n="dash"),e(G.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:y(n,t),contextClick:y(n,t)})}function A(){return[e("ContextMenuButton",e(G.Panel,"Horizontal",S(1),S(2),S(3),S(4))),e("ContextMenuButton",e(G.Panel,"Horizontal",B(null),B([2,4]),B([4,4])))]}function T(t,n){return n||(n="figure"),e(G.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:y(n,t),contextClick:y(n,t)})}function E(t){return e(G.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function P(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(G.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:y("dir",t),contextClick:y("dir",t)})}function N(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",G.Spot.stringify(G.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(G.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function _(t,n){var i=0,r=G.Spot.RightSide;t.equals(G.Spot.Top)?(i=270,r=G.Spot.TopSide):t.equals(G.Spot.Left)?(i=180,r=G.Spot.LeftSide):t.equals(G.Spot.Bottom)&&(i=90,r=G.Spot.BottomSide),n||(i-=180);var o=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",G.Spot.stringify(r)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(G.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:o,contextClick:o})}return i.current=new G.Diagram(r.current,{padding:20,grid:e(G.Panel,"Grid",e(G.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(G.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(R),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(G.Node,"Auto",{locationSpot:G.Spot.Center,locationObjectName:"SHAPE",desiredSize:new G.Size(120,60),minSize:new G.Size(40,40),resizable:!0,resizeCellSize:new G.Size(10,10),rotatable:!0},new G.Binding("location","loc",G.Point.parse).makeTwoWay(G.Point.stringify),new G.Binding("desiredSize","size",G.Size.parse).makeTwoWay(G.Size.stringify),e(G.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:G.Spot.AllSides,toSpot:G.Spot.AllSides},new G.Binding("figure"),new G.Binding("fill"),new G.Binding("stroke","borderColor"),new G.Binding("strokeWidth","thickness"),new G.Binding("strokeDashArray","dash")),e(G.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(G.TextBlock,{margin:1,textAlign:"center",overflow:G.TextBlock.OverflowEllipsis,editable:!0},new G.Binding("text").makeTwoWay(),new G.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(G.Panel,"Vertical",{maxSize:new G.Size(200,NaN)},e(G.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new G.Binding("text")),e(G.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new G.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(G.Adornment,"Spot",e(G.Placeholder,{padding:10}),b(G.Spot.Top,"TriangleUp"),b(G.Spot.Left,"TriangleLeft"),b(G.Spot.Right,"TriangleRight"),b(G.Spot.Bottom,"TriangleDown"),x({alignment:new G.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(G.Panel,"Horizontal",T("Rectangle"),T("RoundedRectangle"),T("Ellipse"),T("Diamond"))),e("ContextMenuButton",e(G.Panel,"Horizontal",T("Parallelogram2"),T("ManualOperation"),T("Procedure"),T("Cylinder1"))),e("ContextMenuButton",e(G.Panel,"Horizontal",T("Terminator"),T("CreateRequest"),T("Document"),T("TriangleDown"))),C(),j(),A()),i.current.groupTemplate=e(G.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:G.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new G.Binding("location","loc",G.Point.parse).makeTwoWay(G.Point.stringify),e(G.Panel,"Auto",{name:"BODY"},e(G.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:G.Spot.AllSides,toSpot:G.Spot.AllSides},new G.Binding("fill"),new G.Binding("stroke","color"),new G.Binding("strokeWidth","thickness"),new G.Binding("strokeDashArray","dash")),e(G.Placeholder,{background:"transparent",margin:20})),e(G.TextBlock,{alignment:G.Spot.Top,alignmentFocus:G.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new G.Binding("text"),new G.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(G.Adornment,"Spot",e(G.Panel,"Auto",e(G.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(G.Placeholder,{margin:1.5})),x({alignment:G.Spot.TopRight,alignmentFocus:G.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",C(),j(),A()),i.current.linkTemplate=e(G.Link,{layerName:"Foreground",routing:G.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new G.Binding("fromSpot","fromSpot",G.Spot.parse),new G.Binding("toSpot","toSpot",G.Spot.parse),new G.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new G.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new G.Binding("points").makeTwoWay(),e(G.Shape,{strokeWidth:2},new G.Binding("stroke","color"),new G.Binding("strokeWidth","thickness"),new G.Binding("strokeDashArray","dash")),e(G.Shape,{segmentIndex:0,segmentOffset:new G.Point(15,0),segmentOrientation:G.Link.OrientAlong,alignmentFocus:G.Spot.Right,figure:"circle",width:10,strokeWidth:0},new G.Binding("fill","color"),new G.Binding("visible","dir",(function(e){return 1===e}))),e(G.Shape,{segmentIndex:-1,segmentOffset:new G.Point(-10,6),segmentOrientation:G.Link.OrientPlus90,alignmentFocus:G.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new G.Binding("fill","color"),new G.Binding("visible","dir",(function(e){return e>=1})),new G.Binding("width","thickness",(function(e){return 7+3*e})),new G.Binding("height","thickness",(function(e){return 7+3*e})),new G.Binding("segmentOffset","thickness",(function(e){return new G.Point(-15,4+1.5*e)}))),e(G.Shape,{segmentIndex:0,segmentOffset:new G.Point(15,-6),segmentOrientation:G.Link.OrientMinus90,alignmentFocus:G.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new G.Binding("fill","color"),new G.Binding("visible","dir",(function(e){return 2===e})),new G.Binding("width","thickness",(function(e){return 7+3*e})),new G.Binding("height","thickness",(function(e){return 7+3*e})),new G.Binding("segmentOffset","thickness",(function(e){return new G.Point(-15,4+1.5*e)}))),e(G.TextBlock,{alignmentFocus:new G.Spot(0,1,-4,0),editable:!0},new G.Binding("text").makeTwoWay(),new G.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(G.Adornment,e(G.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:E(2)},new G.Binding("pathPattern","thickness",E)),x({alignmentFocus:new G.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",j(),A(),e("ContextMenuButton",e(G.Panel,"Horizontal",P(0),P(1),P(2))),e("ContextMenuButton",e(G.Panel,"Horizontal",e(G.Panel,"Spot",N(!1),_(G.Spot.Top,!1),_(G.Spot.Left,!1),_(G.Spot.Right,!1),_(G.Spot.Bottom,!1)),e(G.Panel,"Spot",{margin:new G.Margin(0,0,0,2)},N(!0),_(G.Spot.Top,!0),_(G.Spot.Left,!0),_(G.Spot.Right,!0),_(G.Spot.Bottom,!0))))),new G.Palette(o.current,{maxSelectionCount:1,linkTemplate:e(G.Link,{locationSpot:G.Spot.Center,selectionAdornmentTemplate:e(G.Adornment,"Link",{locationSpot:G.Spot.Center},e(G.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(G.Shape,{toArrow:"Standard",stroke:null}))},{routing:G.Link.AvoidsNodes,curve:G.Link.JumpOver,corner:5,toShortLength:4},new G.Binding("points"),e(G.Shape,{isPanelMain:!0,strokeWidth:2}),e(G.Shape,{toArrow:"Standard",stroke:null})),model:new G.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(I()(G.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(G.Node,"Auto",{locationSpot:G.Spot.Center},new G.Binding("location","location",G.Point.parse).makeTwoWay(G.Point.stringify),e(G.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 G.Binding("stroke").makeTwoWay(),new G.Binding("fill").makeTwoWay(),new G.Binding("figure")),e(G.TextBlock,{margin:new G.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new G.Size(16,16),maxSize:new G.Size(10,NaN),textAlign:"center",editable:!0},new G.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(G.Panel,"Grid",e(G.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(G.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),i.current.grid.visible=!0,i.current.grid.gridCellStroke="darkgray",i.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=i.current,i.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,m.jsx)("div",{ref:r})]})]}),(0,m.jsx)("div",{className:"tr",children:(0,m.jsx)(j.ZP,{size:"large",onClick:h,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},q=n(5112),Y=n(94001),J=q.ZP.Group,Q={margin:"0 8px"},X=function(e){var t=e.callback,n=e.onCancel;return(0,m.jsxs)(k.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,m.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,m.jsx)("span",{style:Q,children:"单元格数:"}),(0,m.jsx)("span",{style:Q,children:"行数"}),(0,m.jsx)(k.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,m.jsx)(Y.Z,{})}),(0,m.jsx)("span",{style:Q,children:"列数"}),(0,m.jsx)(k.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,m.jsx)(Y.Z,{})})]}),(0,m.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,m.jsx)("span",{style:Q,children:"对齐方式:"}),(0,m.jsx)(k.Z.Item,{name:"align",children:(0,m.jsxs)(J,{children:[(0,m.jsx)(q.ZP,{value:"default",children:(0,m.jsx)("i",{className:"fa fa-align-justify"})}),(0,m.jsx)(q.ZP,{value:"left",children:(0,m.jsx)("i",{className:"fa fa-align-left"})}),(0,m.jsx)(q.ZP,{value:"center",children:(0,m.jsx)("i",{className:"fa fa-align-center"})}),(0,m.jsx)(q.ZP,{value:"right",children:(0,m.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(j.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(j.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,r=e.height,o=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],f=d[1],h=(0,c.useRef)({id:l,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,c.useEffect)((function(){s.current=new(te())(h.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return o&&o(e),e};return(0,c.useEffect)((function(){h.current.appName=p?"3D":"graphing",s.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){f(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,m.jsxs)(E.Z,{align:"middle",children:[(0,m.jsx)(F.Z,{flex:1,children:(0,m.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return f(e)}})}),(0,m.jsx)(F.Z,{children:(0,m.jsx)(j.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),re=n(92723),oe=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",fe={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},me=n(77818);var he="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},we+"-B","bold"),we+"-I","italic"),xe=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),ye=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,o=e.width,l=void 0===o?"100%":o,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,w=void 0!==v&&v,b=e.isFocus,k=void 0!==b&&b,C=e.watch,j=e.insertTemp,S=e.mode,E=void 0===S?"markdown":S,P=e.id,_=void 0===P?"markdown-editor-id":P,M=e.showResizeBar,L=void 0!==M&&M,O=e.noStorage,Z=void 0!==O&&O,I=e.showNullButton,G=void 0!==I&&I,D=e.showNullProgramButton,R=void 0!==D&&D,z=e.hidetoolBar,F=void 0!==z&&z,W=e.fullScreen,V=void 0!==W&&W,U=e.onBlur,q=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,Q=void 0===J?"":J,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,pe=void 0!==te&&te,we=e.disabledFill,ye=void 0!==we&&we,ke=e.placeholder,Ce=void 0===ke?"":ke,je=e.values,Se=void 0===je?"":je,Be=e.extraUse,Ae=(0,c.useState)(null),Te=a()(Ae,2),Ee=Te[0],Pe=Te[1],Ne=(0,c.useState)(n),_e=a()(Ne,2),Me=_e[0],Le=_e[1],Oe=(0,c.useState)(C),Ze=a()(Oe,2),Ie=Ze[0],Ge=Ze[1],De=(0,c.useState)(V),Re=a()(De,2),ze=Re[0],He=Re[1],Fe=(0,c.useState)(""),We=a()(Fe,2),Ve=We[0],Ue=We[1],Ke=(0,c.useState)(0),qe=a()(Ke,2),Ye=qe[0],Je=qe[1],Qe=(0,c.useState)(g),Xe=a()(Qe,2),$e=Xe[0],et=Xe[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),rt=(0,c.useState)(0),ot=a()(rt,2),at=ot[0],lt=ot[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),ft=(0,c.useRef)(),mt=(0,c.useRef)(),ht=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Le(Se),null==Ee||Ee.setValue(Se),window.scrollTo(0,e)}),[Se]),(0,c.useEffect)((function(){null==Y||Y(ze)}),[ze]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var r=i.types.toString(),o=i.items;if("Files"===r||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==E)return;try{var a,l=o[1];"file"===(null===(a=o[0])||void 0===a?void 0:a.kind)&&(l=o[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,T.I)(s,(function(e){var n,i,r;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(r=s.type)||void 0===r?void 0:r.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(re.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){oe.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:E,lineNumbers:!w,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",Ce):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),r=n.getLine(i.line),o=r.charAt(i.ch-1),a=r.lastIndexOf("@▁@",i.ch),l=r.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===he.indexOf(o))return null;if(console.log("change1:",t,e,r,i,s,a,l,o),s>=0&&i.ch-s<5){var u=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),k&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Pe(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){ft.current}),[$e,ft,ze]);(0,c.useEffect)((function(){if(Ee){var e=function(){var e=new p.Z((function(e){var t,n=r()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Ee.setSize("100%","100%"),Ee.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Ee,gt]),(0,c.useEffect)((function(){if(Ee){for(var e=[],t=function(){var t=a()(i[n],2),r=t[0],o=t[1],l=s()({},r,(function(){vt(o)}));e.push(l),Ee.addKeyMap(l)},n=0,i=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(_);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(_,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Ge(C)}),[Ee,C]),(0,c.useEffect)((function(){Ee&&k&&Ee.focus()}),[Ee,k]),(0,c.useEffect)((function(){if(Ie&&Ee){var e=function(e){var t=e.target;if(ht.current){var n=t.scrollTop/t.scrollHeight;ht.current.scrollTop=ht.current.scrollHeight*n}},t=Ee.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Ee,Ie]),(0,c.useEffect)((function(){if(Ee&&q){var e=function(e,t){q(e,t)};return Ee.on("beforeChange",e),function(){Ee.off("beforeChange",e)}}}),[Ee,q]),(0,c.useEffect)((function(){if(Ee&&U){var e=function(){U(Ee.getValue())};return Ee.on("blur",e),function(){Ee.off("blur",e)}}}),[Ee,U]),(0,c.useEffect)((function(){if(Ee){var e=function(e,t){var n=e.getValue();Le(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(R?i(n,kt(n)):i(n))};return Ee.on("change",e),function(){Ee.off("change",e)}}}),[Ee,i]),(0,c.useEffect)((function(){if(Ee)if(null==n)Ee.setValue(""),Le("");else{var e=window.scrollY||window.pageYOffset;n!==Ee.getValue()&&(Ee.setValue(n),Le(n),Ee.setCursor(pe?1:Ee.lineCount(),0),window.scrollTo(0,e))}}),[Ee,n]);var vt=(0,c.useCallback)((function(e){var t=Ee.getCursor(),n=Ee.getSelection(),i=n.split("\n");switch(e){case"bold":return Ee.replaceSelection("**"+n+"**"),""===n&&Ee.setCursor(t.line,t.ch+2),Ee.focus();case"italic":return Ee.replaceSelection("*"+n+"*"),""===n&&Ee.setCursor(t.line,t.ch+1),Ee.focus();case"code":return Ee.replaceSelection("`"+n+"`"),""===n&&Ee.setCursor(t.line,t.ch+1),Ee.focus();case"inline-latex":return Ue("inline-latex"),Ee.focus();case"latex":return Ee.replaceSelection("```latex\n"+n+"\n```"),Ee.setCursor(t.line+1,n.length+1),Ee.focus();case"line-break":return Ee.replaceSelection("
\n"),Ee.focus();case"list-ul":return""===n?Ee.replaceSelection("- "+n):Ee.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ee.focus();case"list-ol":return""===n?Ee.replaceSelection("1. "+n):Ee.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Ee.focus();case"add-null-ch":return""===n&&Ee.setCursor(t.line,t.ch),Ee.replaceSelection("▁"),Ee.focus();case"add-signal":return""===n&&Ee.setCursor(t.line,t.ch),Ee.replaceSelection("@▁@"),Ee.focus();case"add-multiple":return""===n&&Ee.setCursor(t.line,t.ch),Ee.replaceSelection(he),Ee.focus();case"inster-template-1":return""===n&&Ee.setCursor(t.line,t.ch),Ee.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ee.focus();case"eraser":return Ee.setValue(""),Ee.focus();case"trigger-watch":return Ge(!Ie),Ee.focus();case"trigger-full-screen":return He(!ze),Ee.focus();case ae:return void Ue(ae);case ue:return void Ue(ue);case le:return void Ue(le);case ce:return void Ue(ce);case"maths-latex":return void Ue("maths-latex");case se:return void Ue(se);case de:return void Ue(de);default:throw new Error}}),[Ee,Ie,ze]),wt=(0,c.useCallback)((function(e,t){var n,i,r,o,a;switch(Ue(""),Ve){case ae:var l=e.title,s=e.link;return Ee.replaceSelection("[".concat(l,"](").concat(s,")")),Ee.focus();case ue:var c=e.language,u=e.content;return Ee.replaceSelection(["```"+c,u,"```"].join("\n")),Ee.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),f=0;f-1||null==v||!v.type?g?Ee.replaceSelection("![ ".concat(g," ]( ").concat(h,' "').concat(g,'" )')):Ee.replaceSelection("![,](".concat(h,")")):(null==v||null===(o=v.type)||void 0===o?void 0:o.indexOf("video"))>-1?Ee.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Ee.replaceSelection('').concat(v.name,"")):ge.includes(w)?Ee.replaceSelection('').concat(v.name,"")):Ee.replaceSelection("[".concat(v.name,"](").concat(re.Z.API_SERVER).concat(h,")")),Ee.focus();case de:for(var b=e.row,x=e.col,y=e.align,k="\n",C=0;C300&&(t=300),et(g+t+"px")}},i=mt.current,r=!1,o=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Ee,mt]),(0,c.useEffect)((function(){et(g)}),[g]);var yt={width:ve(l),height:ve($e)},kt=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(R){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){xe[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var Ct=function(e,t,n,i){var r=document.body.clientHeight,o=document.body.clientWidth;return!(e<20&&n>e||e>o-20&&nt||t>r-20&&i0&&ie(a()(t.members)),Ce(null==t?void 0:t.is_ai),Q(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,f.useEffect)((function(){var e;(console.log(ke,!je.current,null==ne?void 0:ne.length,null==ae?void 0:ae.length,333),ke&&!je.current&&null!=ae&&ae.length&&null!=ne&&ne.length)&&(je.current=!0,le(null==X?void 0:X.members),W.setFieldsValue({user_ids:null==X||null===(e=X.members)||void 0===e?void 0:e.map((function(e){return e.user_id}))}))}),[ke,null==ne?void 0:ne.length,null==ae?void 0:ae.length]),(0,f.useEffect)((function(){l({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:c.commonHomeworkId}}),l({type:"shixunHomeworks/addStudentWorkDefaultData",payload:s()(s()({},c),{},{type:3})})}),[]),(0,f.useEffect)((function(){Ee()}),[Ae]),(0,f.useEffect)((function(){null!=X&&X.homework_name&&le(a()(null==X?void 0:X.members))}),[null==X?void 0:X.homework_name]);var Pe=function(){var e=u()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.user_ids=(null==ae?void 0:ae.map((function(e){return e.user_id})))||[],e.next=3,(0,E.Be)(s()(s()(s()({},c),t),{},{type:3}));case 3:0===(n=e.sent).status&&m.history.push("/classrooms/".concat(c.coursesId,"/group_homework/").concat(c.commonHomeworkId,"/review/").concat(n.work_id));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ne=function(){var e=u()(r()().mark((function e(t){var n,i,o,a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=s()({},K)).base_on_project=1,n.attachment_ids&&(n.attachment_ids=null==n||null===(i=n.attachment_ids)||void 0===i?void 0:i.map((function(e){return e.response.id}))),o=!1,ae.map((function(e){e.score||(o=!0)})),!X.is_group_grade||!o){e.next=8;break}return g.ZP.warning("评分不能为空"),e.abrupt("return");case 8:if(n.group_leader_scores=ae.map((function(e){return{user_id:e.user_id,score:e.score}})),a=function(){n.attachment_ids&&""!=n.attachment_ids?Pe(n):v.Z.confirm({title:(0,F.jsxs)("div",{children:["还未上传附件",(0,F.jsx)("br",{}),"是否确认提交作品?"]}),onOk:function(){Pe(n)}})},null==$||!$.can_submit){e.next=16;break}if(null!=$&&$.submit_size){e.next=14;break}return g.ZP.warning("您的作品提交机会已用完。如需继续修改,请联系指导老师或平台运营。"),e.abrupt("return");case 14:return v.Z.confirm({title:"提示",icon:null,centered:!0,width:472,content:(0,F.jsxs)(F.Fragment,{children:["你还有 ",(0,F.jsx)("span",{className:"ml5 mr5",style:{color:"#DF711C"},children:null==$?void 0:$.submit_size})," 次提交机会。确认提交后,上一次的提交记录会被覆盖。请注意,到达规定的提交次数后将不可再次提交,确定是否提交?"]}),onOk:function(){a()}}),e.abrupt("return");case 16:a();case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return console.log("---",ae),(0,F.jsxs)("section",{className:P,children:[X.course_name&&(0,F.jsx)("section",{className:"animated fadeIn",children:(0,F.jsx)("aside",{className:"mt10",children:X.category&&(0,F.jsxs)(w.Z,{separator:">",children:[(0,F.jsx)(w.Z.Item,{href:"/classrooms/".concat(X.course_id,"/group_homework"),children:X.course_name}),(0,F.jsx)(w.Z.Item,{href:"/classrooms/".concat(X.course_id,"/group_homework"),children:X.category.category_name}),(0,F.jsxs)(w.Z.Item,{children:[null==X?void 0:X.user_name," 提交作品"]})]})})}),(0,F.jsx)("aside",{className:"font24 bold mt20 mb20",children:X.homework_name}),(0,F.jsxs)("div",{style:{background:"#fff",padding:"20px 30px"},children:[(0,F.jsx)("div",{style:{fontSize:"18px",marginBottom:"10px",fontWeight:600},children:"作业描述"}),(0,F.jsx)(G.Z,{value:(null==$?void 0:$.description)||"暂无~"}),(0,F.jsx)(I.Z,{authority:(0,D.GJ)(),showDimensions:!1,dataSource:null==$?void 0:$.attachments,callback:function(){l({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:c.commonHomeworkId}})}}),(0,F.jsx)(H.Ei,{value:$})]}),(0,F.jsx)(h.Z,{form:W,className:N,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(e,t){return q(t)},onFinish:Ne,children:(0,F.jsxs)("div",{className:_,children:[(0,F.jsx)(h.Z.Item,{htmlFor:null,label:(0,F.jsx)("span",{children:"内容:"}),name:"description",rules:[{required:!0,message:"请输入作业的简介"},{type:"string",max:65535,message:"作业简介最大限制65535个字符"},{type:"string",whitespace:!0,message:"内容不能全为空格"}],children:(0,F.jsx)(T.h,{placeholder:"请在此输入内容,最多65535个字符",scrollId:"",watch:!0})}),(0,F.jsx)(h.Z.Item,{name:"attachment_ids",children:(0,F.jsx)(Z.Z,{})}),(0,F.jsx)(b.Z,{}),(0,F.jsx)("div",{children:"小组成员:"}),(0,F.jsxs)("div",{style:{display:"flex"},children:[(0,F.jsxs)(x.Z,{align:"middle",className:"mb20",style:{marginTop:20,width:550},children:[(0,F.jsxs)(y.Z,{span:12,children:["成员要求:",X.min_num,"~",X.max_num,"人 "]}),(0,F.jsx)(y.Z,{span:12,style:{display:"flex",justifyContent:"flex-end"},children:(0,F.jsx)(k.Z.Search,{onSearch:function(e,t){t.preventDefault(),""===e?delete Ae.search:Ae.search=e,Ae.page=1,Te(s()({},Ae)),ie([]),Q(!0)},placeholder:"请输入姓名或学号搜索",allowClear:!0,style:{width:240}})})]}),(0,F.jsx)(x.Z,{style:{width:610,alignItems:"center"},justify:"end",children:X.is_leader&&(0,F.jsx)("span",{className:M,onClick:function(){de(!0)},children:"更换队长"})})]}),(0,F.jsxs)(x.Z,{align:"middle",children:[(0,F.jsx)(y.Z,{span:11,children:(0,F.jsx)(C.Z,{dataSource:ne,pagination:!1,rowKey:function(e){return e.user_id},style:{minHeight:440,border:"1px solid #F6F7F9",minWidth:550},rowSelection:{type:"checkbox",getCheckboxProps:function(e){var t;return{disabled:ke||(null==e?void 0:e.user_id)===(null===(t=i.userInfo)||void 0===t?void 0:t.user_id)||!(null!=X&&X.is_leader)}},selectedRowKeys:null==ae?void 0:ae.map((function(e){return e.user_id})),onSelect:function(e,t,n){if(t)le([].concat(a()(ae),[s()({},e)]));else{var i=ae.filter((function(t){return t.user_id!==(null==e?void 0:e.user_id)}));le(a()(i))}},onChange:function(e,t,n){"all"===n.type&&le(a()(t))}},scroll:{y:400},columns:[{title:"姓名",dataIndex:"user_name",key:"user_name"},{title:"分班",dataIndex:"group_name",key:"group_name"},{title:"学号",dataIndex:"student_id",key:"student_id"}]})}),(0,F.jsx)(y.Z,{span:1,children:(0,F.jsx)("img",{src:R,style:{marginLeft:35}})}),(0,F.jsx)(y.Z,{span:12,style:{display:"flex",justifyContent:"flex-end"},children:(0,F.jsxs)("div",{className:L,style:{width:550},children:[(0,F.jsxs)(x.Z,{className:O,children:[(0,F.jsx)(y.Z,{className:"ml30",flex:"100px",children:"姓名"}),(0,F.jsx)(y.Z,{flex:"120px",style:{marginLeft:5},children:"分班"}),(0,F.jsx)(y.Z,{flex:"110px",children:"学号"}),(0,F.jsx)(y.Z,{children:X.is_group_grade&&"评分"})]}),(0,F.jsx)("div",{style:{overflow:"auto",height:360},children:null==ae?void 0:ae.map((function(e,t){return(0,F.jsxs)(x.Z,{align:"middle",style:{height:48,lineHeight:"48px",paddingLeft:30,borderBottom:"1px solid rgba(48,97,208,0.1)"},children:[(0,F.jsx)(y.Z,{flex:"100px",children:e.user_name}),(0,F.jsx)(y.Z,{flex:"120px",style:{marginLeft:5},children:e.group_name}),(0,F.jsx)(y.Z,{flex:"110px",children:e.student_id}),(0,F.jsx)(y.Z,{children:X.is_group_grade&&(0,F.jsx)(j.Z,{stringMode:!0,min:"0.1",max:"100",step:"0.1",placeholder:"请输入",value:e.score,onChange:function(t){le(ae.map((function(n){return e.user_id==n.user_id?s()(s()({},n),{},{score:t}):n})))}})}),(0,F.jsx)(y.Z,{style:{marginLeft:10},children:0!=t&&!ke&&X.is_leader&&(0,F.jsx)("i",{className:"iconfont icon-shanchudiao current",onClick:function(){var t,n;W.setFieldsValue({user_ids:null==K||null===(t=K.user_ids)||void 0===t?void 0:t.filter((function(t){return t!==e.user_id}))}),q(s()(s()({},K),{},{user_ids:null==K||null===(n=K.user_ids)||void 0===n?void 0:n.filter((function(t){return t!==e.user_id}))})),le(ae.filter((function(t){return t.user_id!=e.user_id})))}})})]},t)}))})]})})]})]})}),(0,F.jsxs)(x.Z,{align:"middle",className:"pt40 mb30",children:[(0,F.jsx)(S.ZP,{size:"middle",type:"primary",className:"".concat(M," mr20"),loading:o["newCourse/editCourse"]||o["newCourse/submitCourse"],onClick:function(){return W.submit()},children:"提交"}),(0,F.jsx)(S.ZP,{size:"middle",type:"primary",ghost:!0,className:M,onClick:function(){return m.history.push("/classrooms/".concat(c.coursesId,"/group_homework/").concat(c.commonHomeworkId,"/detail"))},children:"取消"})]}),(0,F.jsxs)(v.Z,{title:"更换队长",open:ue,onCancel:function(){de(!1)},okButtonProps:{loading:me},onOk:u()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("--",c),he(!0),e.next=4,(0,z.ZP)("/api/student_works/".concat(X.student_work_id,"/change_captain.json"),{method:"put",body:{user_id:we}});case 4:t=e.sent,he(!1),0===(null==t?void 0:t.status)&&(de(!1),l({type:"shixunHomeworks/getWorkDetail",payload:{categoryId:c.commonHomeworkId}}),l({type:"shixunHomeworks/addStudentWorkDefaultData",payload:s()(s()({},c),{},{type:3})}));case 7:case"end":return e.stop()}}),e)}))),children:[(0,F.jsx)("div",{children:"选择的成员将会成为新的队长"}),(0,F.jsx)("div",{children:"您将不再拥有队长的权限,但您仍是该组的组员"}),(0,F.jsx)("div",{style:{marginTop:20,background:"#F6F7F9",padding:15},children:(0,F.jsx)(B.ZP.Group,{onChange:function(e){be(e.target.value)},children:(0,F.jsx)(A.Z,{direction:"vertical",children:null==X||null===(t=X.members)||void 0===t||null===(t=t.filter((function(e){return!e.is_leader})))||void 0===t?void 0:t.map((function(e){return(0,F.jsx)(B.ZP,{value:e.user_id,children:e.user_name})}))})})})]})]})}))},72764:function(e,t,n){"use strict";n.d(t,{Ei:function(){return w},rU:function(){return b},ZP:function(){return x}});var i=n(82242),r=n.n(i),o=n(79800),a=n.n(o),l=n(59301),s={wrap:"wrap___W3YuU",title:"title___OzKge",exhibition:"exhibition___ugphm"},c=n(78241),u=n(95237),d=n(43604),p=n(24905),f=n(94001),m=n(6848),h=n(92310),g=n.n(h),v=n(37712),w=function(e){var t=e.value,n=e.className,i=e.style,r=(0,l.useState)("0"),o=a()(r,2),c=o[0],u=o[1];(0,l.useEffect)((function(){if(t){var e=t.submit_limit,n=t.must_file;if(e&&n)return void u("1");if(e&&!n)return void u("2");if(!e&&n)return void u("3")}}),[t]);var d={1:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符,并且必须上传相关附件。"]}),2:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符"]}),3:(0,v.jsx)("span",{children:"必须上传相关附件。"})};return"0"===c?(0,v.jsx)(v.Fragment,{}):(0,v.jsxs)("section",{className:g()(s.exhibition,n),style:i,children:[(0,v.jsx)("span",{className:"c-grey-666 mr10",children:"提交作业要求:"}),null==d?void 0:d[c]]})},b=function(e){var t=e.className,n=e.style,i=e.form,r=c.Z.useWatch("submit_limit",i),o=c.Z.useWatch("can_submit",i);return(0,v.jsx)("section",{className:g()(s.newWrap,t),style:n,children:(0,v.jsxs)("div",{style:{padding:"20px 0",borderBottom:"1px solid #EDEDED"},children:[(0,v.jsx)("h1",{children:"提交设置"}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"can_submit",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"限制学生提交作品"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_num",rules:o&&[{required:!0,message:"请填写作品次数"}],children:(0,v.jsx)(f.Z,{precision:0,min:1,disabled:!o})})}),(0,v.jsx)(d.Z,{children:"次"}),(0,v.jsxs)(d.Z,{children:[" ",(0,v.jsx)(m.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999"})})]})]}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生填写内容至少"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit_num",rules:r&&[{required:!0,message:"字数不能为空"}],children:(0,v.jsx)(f.Z,{precision:0,min:1,disabled:!r})})}),(0,v.jsx)(d.Z,{children:"字"})]}),(0,v.jsx)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"must_file",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生提交作业必须上传附件"})})})})})]})})},x=function(e){var t=e.value,n=e.onChange,i=e.className,o=e.style,c=e.disabled,d=void 0!==c&&c,h=(0,l.useState)({}),w=a()(h,2),b=w[0],x=w[1];(0,l.useEffect)((function(){if(console.log(t,"value"),t){var e={submit_limit:null==t?void 0:t.submit_limit,submit_limit_num:null==t?void 0:t.submit_limit_num,must_file:null==t?void 0:t.must_file,can_submit:null==t?void 0:t.can_submit,submit_num:null==t?void 0:t.submit_num};x(r()({},e))}}),[t]);var y=function(e){var t=r()(r()({},b),e);n(t)};return(0,v.jsxs)("section",{className:g()(s.wrap,i),style:o,children:[(0,v.jsx)("div",{className:s.title,children:"提交设置"}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==b?void 0:b.can_submit,onChange:function(e){return y({can_submit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"限制学生提交作业"}),(0,v.jsx)(f.Z,{precision:0,min:1,disabled:d||!(null!=b&&b.can_submit),value:null==b?void 0:b.submit_num,onChange:function(e){return y({submit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"次"}),(0,v.jsx)(m.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999 ml5"})})]}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==b?void 0:b.submit_limit,onChange:function(e){return y({submit_limit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"学生填写内容至少"}),(0,v.jsx)(f.Z,{precision:0,min:1,disabled:d||!(null!=b&&b.submit_limit),value:null==b?void 0:b.submit_limit_num,onChange:function(e){return y({submit_limit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"字"})]}),(0,v.jsxs)(u.Z,{align:"middle",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==b?void 0:b.must_file,onChange:function(e){return y({must_file:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10",children:"学生提交作业必须上传附件"})]})]})}},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return s},JZ:function(){return u},bN:function(){return f},jP:function(){return p},rO:function(){return c}});var i=n(7557),r=n.n(i),o=n(41498),a=n.n(o),l=n(18030);function s(e){return(0,l.U2)("libraries/".concat(e,".json"))}function c(){return(0,l.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(r()().mark((function e(t){var n;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,l.v_)("libraries.json",e)}function f(e,t){return(0,l.gz)("libraries/".concat(e,".json"),t)}},65648:function(e,t){"use strict";t.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},66104:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var i=n(92310),r=n.n(i),o=n(75440),a=n(47413),l=n(59301),s=n(92343),c=n(36355),u=n(78386),d=n(91857);const p=e=>{let{children:t}=e;const{getPrefixCls:n}=l.useContext(c.E_),i=n("breadcrumb");return l.createElement("li",{className:`${i}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};p.__ANT_BREADCRUMB_SEPARATOR=!0;var f=p,m=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{if(t)return t(n,i,r,o);const l=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(n,i);return h(e,n,l,a)}}var v=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,separator:n="/",children:i,menu:r,overlay:o,dropdownProps:a,href:s}=e;const c=(e=>{if(r||o){const n=Object.assign({},a);if(r){const e=r||{},{items:t}=e,i=v(e,["items"]);n.menu=Object.assign(Object.assign({},i),{items:null==t?void 0:t.map(((e,t)=>{var{key:n,title:i,label:r,path:o}=e,a=v(e,["key","title","label","path"]);let c=null!=r?r:i;return o&&(c=l.createElement("a",{href:`${s}${o}`},c)),Object.assign(Object.assign({},a),{key:null!=n?n:t,label:c})}))})}else o&&(n.overlay=o);return l.createElement(d.Z,Object.assign({placement:"bottom"},n),l.createElement("span",{className:`${t}-overlay-link`},e,l.createElement(u.Z,null)))}return e})(i);return null!=c?l.createElement(l.Fragment,null,l.createElement("li",null,c),n&&l.createElement(f,null,n)):null},b=e=>{const{prefixCls:t,children:n,href:i}=e,r=v(e,["prefixCls","children","href"]),{getPrefixCls:o}=l.useContext(c.E_),a=o("breadcrumb",t);return l.createElement(w,Object.assign({},r,{prefixCls:a}),h(a,r,n,i))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,y=n(17313),k=n(83116),C=n(37613);const j=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,y.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,y.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var S=(0,k.Z)("Breadcrumb",(e=>{const t=(0,C.TS)(e,{});return[j(t)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),B=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{var{breadcrumbName:t}=e,n=B(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})}))}),r}var T=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,separator:n="/",style:i,className:u,rootClassName:d,routes:p,items:m,children:h,itemRender:v,params:b={}}=e,x=T(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:y,direction:k,breadcrumb:C}=l.useContext(c.E_);let j;const B=y("breadcrumb",t),[E,P]=S(B),N=function(e,t){return(0,l.useMemo)((()=>e||(t?t.map(A):null)),[e,t])}(m,p);const _=g(B,v);if(N&&N.length>0){const e=[],t=m||p;j=N.map(((i,r)=>{const{path:o,key:s,type:c,menu:u,overlay:d,onClick:p,className:m,separator:h,dropdownProps:g}=i,v=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{n=n.replace(`:${t}`,e[t])})),n})(b,o);void 0!==v&&e.push(v);const x=null!=s?s:r;if("separator"===c)return l.createElement(f,{key:x},h);const y={},k=r===N.length-1;u?y.menu=u:d&&(y.overlay=d);let{href:C}=i;return e.length&&void 0!==v&&(C=`#/${e.join("/")}`),l.createElement(w,Object.assign({key:x},y,(0,a.Z)(i,{data:!0,aria:!0}),{className:m,dropdownProps:g,href:C,separator:k?"":n,onClick:p,prefixCls:B}),_(i,b,t,e,C))}))}else if(h){const e=(0,o.Z)(h).length;j=(0,o.Z)(h).map(((t,i)=>{if(!t)return t;const r=i===e-1;return(0,s.Tm)(t,{separator:r?"":n,key:i})}))}const M=r()(B,null==C?void 0:C.className,{[`${B}-rtl`]:"rtl"===k},u,d,P),L=Object.assign(Object.assign({},null==C?void 0:C.style),i);return E(l.createElement("nav",Object.assign({className:M,style:L},x),l.createElement("ol",null,j)))};E.Item=x,E.Separator=f;var P=E},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var i=n(92310),r=n.n(i),o=n(59301),a=n(36355),l=n(17313),s=n(83116),c=n(37613);const u=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:r,textPaddingInline:o,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},(0,l.Wf)(e)),{borderBlockStart:`${r}px solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,s.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[u(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r{const{getPrefixCls:t,direction:n,divider:i}=o.useContext(a.E_),{prefixCls:l,type:s="horizontal",orientation:c="center",orientationMargin:u,className:f,rootClassName:m,children:h,dashed:g,plain:v,style:w}=e,b=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),x=t("divider",l),[y,k]=d(x),C=c.length>0?`-${c}`:c,j=!!h,S="left"===c&&null!=u,B="right"===c&&null!=u,A=r()(x,null==i?void 0:i.className,k,`${x}-${s}`,{[`${x}-with-text`]:j,[`${x}-with-text${C}`]:j,[`${x}-dashed`]:!!g,[`${x}-plain`]:!!v,[`${x}-rtl`]:"rtl"===n,[`${x}-no-default-orientation-margin-left`]:S,[`${x}-no-default-orientation-margin-right`]:B},f,m),T=o.useMemo((()=>"number"==typeof u?u:/^\d+$/.test(u)?Number(u):u),[u]),E=Object.assign(Object.assign({},S&&{marginLeft:T}),B&&{marginRight:T});return y(o.createElement("div",Object.assign({className:A,style:Object.assign(Object.assign({},null==i?void 0:i.style),w)},b,{role:"separator"}),h&&"vertical"!==s&&o.createElement("span",{className:`${x}-inner-text`,style:E},h)))}},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4H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KmB1t+xlau0qykwVWI08RCfDUG1S2ka/VEyDJw5qdWoiG2iQEA4ntvEVdpqFkAAAAASUVORK5CYII="}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__GroupHomework__index.8f8cbb63.async.js b/p__Classrooms__Lists__GroupHomework__index.8f8cbb63.async.js new file mode 100644 index 0000000000..0f8c1b9213 --- /dev/null +++ b/p__Classrooms__Lists__GroupHomework__index.8f8cbb63.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[83935,13488,63527,4977,69932],{680:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(5891),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=n(22589),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},60186:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(5891),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=n(22589),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},45532:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(5891),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},a=n(22589),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},o=null,i=!1,r=!1,a=null,s=!1,l=null,c=null,u=0;u4?parseFloat(e):5};function j(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,O(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(l=e,I(e,t))},e.getHTML5CodebaseVersion=function(){return f},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var o,i="auto",r=n.id,a=!1,l=0;l=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var T=function(e){return e&&"false"!==e},Z=function(t,n,o){b(f)<=4.2&&(o=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==f||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,s=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(b(f)<=4.4)T(n.showToolBar)&&(n.height-=7),T(n.showAlgebraInput)&&(n.height-=37),n.width<605&&T(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(T(n.showToolBar)||T(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=T(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(x),window.GGBT_wsf_view&&$(window).trigger("resize"),m(e)},w||x.appendChild(j)):r.appendChild(j),x.appendChild(r),w||t.appendChild(x),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),D("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function C(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},b(f)<5&&(e.className+=" geogebraweb")):k(e,t)}if(i){scriptLoadStarted=!0;for(var _=0;_0?(i.remove(),s.attr("id","fullscreencontent").show(),jQuery(r).append(s),window.dispatchEvent(new Event("resize"))):Z(i,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=o,Z(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(s=e/4*3),l=s/5.8,a.setAttribute("src",w),a.setAttribute("width",s),a.setAttribute("height",l);var u=(e-s)/2,d=(t-l)/2;a.style.left=u+"px",a.style.top=d+"px",i.appendChild(a)}return i.appendChild(c),i},E=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},M=["web","webSimple","web3d","tablet","tablet3d","phone"],I=function(e,t){if(f=e,t)O(f,!0);else{var r,a,s=!i;if(s){var l=b(f);!isNaN(l)&&l<4.4&&(s=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=f.indexOf("//");for(var u in a=c>0?f:0===c?r+f:"https://www.geogebra.org/apps/5.2.814.0/",M)if(f.slice(-1*M[u].length)===M[u]||f.slice(-1*(M[u].length+1))===M[u]+"/")return void O(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||o.is3D||o.AV||o.SV||o.CV||o.EV2||o.CP||o.PC||o.DA||o.FI||o.PV||T(n.showToolBar)||T(n.showMenuBar)||T(n.showAlgebraInput)||T(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",O(a,!1)}},O=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),m=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?M.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(f=n[n.length-3]).substr(0,4)?f=f.substr(4,1)+"."+f.substr(5,1):"war"!==f.substr(0,3)&&"beta"!==f.substr(0,4)||(f="5.0");var o=parseFloat(f);NaN!==o&&o<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+o+" is deprecated. Using version latest instead."),I("5.0",t))}},D=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function G(){var e=t;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),I(e,!1),null!==c&&O(c,m),s=!0}return void 0!==n.material_id?C(G):G(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,o,i){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==o&&o,s=null!=e.noScaleMargin&&e.noScaleMargin,l=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,o,i,r){var a=null;if(null!=r&&""!=r)for(var s=e.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+r+" ")>-1){a=s;break}s=s.parentNode}var l=0,c=0,u=0,d=0,p=0,m=0,h=0;if(a)l=a.offsetWidth,c=Math.max(o?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=l):(l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var f=e.getBoundingClientRect();f.left>0&&f.left<=l&&(void 0===i||!i)&&("rtl"===document.dir?(p=l-f.width-f.left,m=u<=480?10:30):(m=f.left,p=u<=480?10:30),d=m+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(i=n(e,t,a,o,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=e.getBoundingClientRect(),i=(t-o.width)/2,r=(n-o.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=i+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var s=o(r,n);e()&&a.setAttribute("data-param-scale",s);for(var l=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var o=e.lastIndexOf(tb,Math.min(n,t));return o>=O?e.substring(O,o+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,o=[],i=[];function a(e){var t=i[e](),n=o[e];if(t in n)return t;var a=[];for(var s in n)a[n[s]]=s;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in o[e]},webModule.__getPropMap=function(){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(e=Cb).indexOf(Db);-1!=s&&(t=parseInt(e.substring(s+P),$),e=e.substring(O,s))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},o=e[webModule.__softPermutationId],i=O;i0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],o=0;o0&&(r=10+n*i);var a=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);o>40&&(a=40);var s=this.randomNum(-10,10);e.translate(r,a),e.rotate(s*Math.PI/180),e.fillText(t,0,0),e.rotate(-s*Math.PI/180),e.translate(-r,-a)}},{key:"drawLine",value:function(e){for(var t=0;t<1;t++)e.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),e.beginPath(),e.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.stroke()}},{key:"drawDot",value:function(e){for(var t=0;t<100;t++)e.fillStyle=this.randomColor(0,255),e.beginPath(),e.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),e.fill()}},{key:"randomCode",value:function(){for(var e=this,t="",n=0;n-1})))}}),(0,_.jsx)(f.Z,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){je(e)}},rowKey:"id",pagination:!1,dataSource:ve,loading:A,columns:[{title:"班级",dataIndex:"name"}]})]}):(0,_.jsxs)(g.Z,{gutter:24,children:[(0,_.jsxs)(v.Z,{span:14,children:[(0,_.jsx)("div",{className:j.homeworkType,children:"作业截止"}),(0,_.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){K(F.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,_.jsx)("div",{className:j.tableWrapper,children:(0,_.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){X(e)}},rowKey:"id",pagination:!1,dataSource:U,loading:A,columns:[{title:"班级",dataIndex:"name",ellipsis:!0},{title:"发布时间",dataIndex:"publish_time"},{title:"截止时间",dataIndex:"end_time"}]})})]}),(0,_.jsxs)(v.Z,{flex:10,style:{maxWidth:"280px"},children:[(0,_.jsx)("div",{className:j.homeworkType,children:"补交截止"}),(0,_.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){ae(te.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,_.jsx)("div",{className:j.tableWrapper,children:(0,_.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){ue(e)}},rowKey:"id",pagination:!1,loading:A,dataSource:re,columns:[{title:"班级",dataIndex:"name",ellipsis:!0,width:120},{title:"截止时间",dataIndex:"late_time"}]})})]})]})})]})}))},36709:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",m=n(92310),h=n.n(m),f=n(71418),g=n(2859),v=n(18030),x=n(21082),w=n(37712),y=function(e){var t=e.data,n=e.className,o=e.fullWidth,r=e.style,s=void 0===r?{}:r,m=e.onClose,y=e.onOk,b=e.showFullTools,j=e.noAssociationId,k=(0,c.useRef)(null),C=(0,c.useRef)(null),_=(0,c.useRef)(null),S=(0,c.useRef)(null),T=(0,c.useState)(!1),Z=l()(T,2),L=Z[0],N=Z[1],A=(0,c.useState)("正在加载中"),P=l()(A,2),B=P[0],E=P[1];(0,c.useEffect)((function(){_.current||(_.current=document.createElement("style"),document.head.appendChild(_.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),_.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&M()):(document.body.removeAttribute("data-custom"),_.current&&(document.head.removeChild(_.current),_.current=null))}),[null==t?void 0:t.visible]);var M=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),E("正在加载中"),e.next=4,(0,x.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,k.current.src="",k.current.src=n,k.current.onload=function(){O()},N(!1),E("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=a()(i()().mark((function e(n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),E("正在保存中"),e.next=4,(0,v.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(o=e.sent)||!o.id||j){e.next=12;break}return e.next=8,(0,v.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==o?void 0:o.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=o&&o.id&&y(o);case 13:N(!1),E("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O=function(){C.current=new g.hP(k.current),C.current.targetRoot=S.current,C.current.addEventListener("render",I),C.current.addEventListener("beforeclose",m),b&&(C.current.availableMarkerTypes=C.current.ALL_MARKER_TYPES,C.current.uiStyleSettings.redoButtonVisible=!0,C.current.uiStyleSettings.notesButtonVisible=!0,C.current.uiStyleSettings.zoomButtonVisible=!0,C.current.uiStyleSettings.zoomOutButtonVisible=!0,C.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=C.current.uiStyleSettings,C.current.show(),null!=t&&t.snapshotData&&C.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,w.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,w.jsx)(f.Z,{spinning:L,tip:B,style:{position:"absolute"},children:(0,w.jsx)("div",{ref:S,className:h()(u,n,o?p:""),style:s,children:(0,w.jsx)("img",{className:d,ref:k})})})})}},98382:function(e,t,n){"use strict";n.d(t,{z:function(){return S},Z:function(){return T}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(37205),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(59028),f=n(8591),g=n(43418),v=n(3113),x=n(92723),w=n(90341),y=n(37712),b="  ";function j(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var k=n(60186),C=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var _=h.Z.Dragger;function S(e){var t=[];return e&&e.length>0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+b+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var T=function(e){var t=e.value,n=e.onChange,o=e.action,r=e.data,s=e.className,c=e.maxSize,d=void 0===c?150:c,S=e.title,T=void 0===S?"上传附件":S,Z=e.showRemoveModal,L=void 0!==Z&&Z,N=e.accept,A=void 0===N?"":N,P=e.additionalText,B=e.isDragger,E=e.number,M=void 0===E?1e3:E,I=e.aloneClear,O=void 0!==I&&I,D=e.realTimeRemove,G=void 0===D||D,H=e.uploadText,R=e.setFileProgress,z=e.showFileProgress,F=(0,m.useState)(!1),W=p()(F,2),Y=W[0],V=W[1],U=(0,m.useState)(t||[]),K=p()(U,2),q=K[0],J=K[1],Q=(0,m.useState)(1),X=p()(Q,2),$=X[0],ee=X[1];(0,m.useEffect)((function(){t&&(1===$&&J(u()(t)),ee(2),M===(null==t?void 0:t.length)&&V(!0))}),[t]);var te=function(){setTimeout((function(){q.pop(),J(u()(q))}),500)};z&&R(q.some((function(e){return"uploading"===e.status})));var ne,oe={multiple:!0,disabled:Y,accept:A,withCredentials:!0,fileList:q,beforeUpload:function(e,t){var n=e.size/1024/1024;return q.concat(t).length>M?(q.pop(),J(u()(q)),f.ZP.error("最多只能上传".concat(M,"个文件")),O?Promise.reject():(te(),!1)):n=M?V(!0):V(!1),J(u()(q)),q=q.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(b)&&(e.name="".concat(e.name).concat(b).concat(j(e.size))),l()({},e)})),console.log("info:",e,q),n(q)):f.ZP.error(null===(o=e.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message)},onRemove:(ne=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(G){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,w.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!L){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var o;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(o=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,f.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return ne.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(s||""),children:[B&&(0,y.jsxs)(_,l()(l()({},oe),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),P]})),!B&&(0,y.jsxs)(h.Z,l()(l()({},oe),{},{children:[(0,y.jsxs)(v.ZP,{disabled:Y,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),T]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:H||"(单个文件最大".concat(d,"MB)")})]}))]})}},65463:function(e,t,n){"use strict";n(59301);var o=n(6848),i=n(37712);t.Z=function(e){var t=e.value,n=e.visible,r=void 0===n||n,a=e.children;return(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(o.Z,{placement:"topLeft",title:{"未发布":"作业尚未发布","未开始":"作业已发布,尚未到达开始作业时间","提交中":"作业进行中,所有考生可提交作业","补交中":"作业进行中,所有学生可补交作业","进行中":"作业进行中,部分班级正在作业提交中/补交中","已截止":"到达作业截止时间,作业已结束","已结束":"课堂已结束"}[t],children:(0,i.jsx)("span",{children:a})}):a})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),s=n(59301),l=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),m=(n(80443),n(90630),n(37712)),h=l.default.Option,f={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,o=e.mode,r=e.options,l=void 0===r?{}:r,c=(0,s.useRef)(),u=(0,s.useState)(),d=a()(u,2),h=d[0],f=d[1];return(0,s.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,s.useEffect)((function(){h&&h.setOption("mode",o)}),[h,o]),(0,s.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,s.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,i()({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));f(e)}}),[c.current,h]),(0,m.jsx)("div",{className:"my-codemirror-container",children:(0,m.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,o=(0,s.useState)("python"),r=a()(o,2),d=r[0],p=r[1];return(0,m.jsxs)(c.Z,i()(i()({},f),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,m.jsx)(l.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,m.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,m.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,m.jsx)(v,{mode:d})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return be}});var o=n(91232),i=n.n(o),r=n(79800),a=n.n(r),s=n(85573),l=n.n(s),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),m=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),f=function(e){var t=e.value,n=void 0===t?"":t,o=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})})},g=n(82242),v=n.n(g),x=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function w(e){var t=e.onActionCallback,n=e.title,o=e.icon,i=e.actionName,r=e.className,a=void 0===r?"":r,s=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(i)},children:[(0,h.jsx)("i",{className:"".concat(o)}),s]})}var y=function(e){var t=e.watch,n=e.showNullButton,o=e.showNullProgramButton,i=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,s=e.hidetoolBar,l=e.extraUse,c=[].concat(x,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(w,v()(v()({},e),{},{onActionCallback:i})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,h.jsx)("li",{children:l}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(w,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},b=n(24808),j=n(78241),k=n(92832),C=n(3113),_={labelCol:{span:4},wrapperCol:{span:20}},S=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(j.Z,v()(v()({},_),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(j.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(j.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(C.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},T=n(73145),Z=n(28486),L=n(95237),N=n(36709),A=function(e){var t=e.callback,n=e.onCancel,o=document.createElement("canvas"),i=o.getContext("2d");o.width=1e3,o.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,o.width,o.height);var r=o.toDataURL("image/png");return(0,h.jsx)(L.Z,{style:{height:"100vh"},children:(0,h.jsx)(N.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},P=n(7557),B=n.n(P),E=n(41498),M=n.n(E),I=n(37205),O=n.n(I),D=n(12378);function G(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(G,go.CommandHandler),G.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},G.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},G.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},G.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},G.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},G.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},G.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},G.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o0){for(var o=a.elt(s-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(r)}else if("Down"===n.key){var i;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i);else for(;null!==t;){var r,a,s;if(null===(r=t.findTreeParentNode()))break;if((s=(a=this._sortTreeChildrenByY(r)).indexOf(t))o.y?1:n.xo.x?1:0})),t},G.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},G.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(G.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(G.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 H=G,R=(n(41034),n(85160)),z=n(43418),F=n(43604),W=n(18030),Y="myPaletteDiv___Xjz2I",V="maxH60___Pd4Re";window.go=D;var U=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(),s=(0,c.useRef)(!1),l=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],m=d[1],f=function(){var e=M()(B()().mark((function e(){var t,i;return B()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:i=e.sent,n({src:i.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){m(p+1)}),[]),(0,h.jsx)("div",{ref:l,className:s.current?"".concat(V," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:l.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(L.Z,{children:[(0,h.jsx)(F.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(F.Z,{onClick:function(){s.current=!s.current,m(p+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:Y,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(R.FI,{initDiagram:function(){var e=D.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",s="#d533ff",l="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",m="#d5ebff",h="#f2dfe0",f="#a5d2fa",g="#cccccc",v="#b3e6b3",x="#fcbbbd";function w(t,n){var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(o){var i=n.part.adornedPart,r=(new D.Point).setRectSpot(i.actualBounds,t);r.subtract(i.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(i.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=o.copyNodeData(i.data);o.setGroupKeyForNodeData(a,o.getGroupKeyForNodeData(i.data)),o.addNodeData(a);var s={from:i.key,to:o.getKeyForNodeData(a)};o.addLinkData(s);var l=e.diagram.findNodeForData(a);l.location=r,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(D.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(D.Spot.Top)||t.equals(D.Spot.Bottom)?25:18,height:t.equals(D.Spot.Top)||t.equals(D.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:o,contextClick:o})}function y(t){return e(D.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function b(e,t){return function(n,o){n.handled=!0,n.diagram.model.commit((function(n){n.set(o.part.adornedPart.data,e,t)}))}}function j(t,n){return n||(n="color"),e(D.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:b(n,t),contextClick:b(n,t)})}function k(){return[e("ContextMenuButton",e(D.Panel,"Horizontal",j(u,"fill"),j(p,"fill"),j(m,"fill"),j(h,"fill"))),e("ContextMenuButton",e(D.Panel,"Horizontal",j(g,"fill"),j(v,"fill"),j(f,"fill"),j(x,"fill")))]}function C(){return[e("ContextMenuButton",e(D.Panel,"Horizontal",j(d),j(a),j(n),j(t))),e("ContextMenuButton",e(D.Panel,"Horizontal",j(u),j(s),j(l),j(c)))]}function _(t,n){return n||(n="thickness"),e(D.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function S(t,n){return n||(n="dash"),e(D.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function T(){return[e("ContextMenuButton",e(D.Panel,"Horizontal",_(1),_(2),_(3),_(4))),e("ContextMenuButton",e(D.Panel,"Horizontal",S(null),S([2,4]),S([4,4])))]}function Z(t,n){return n||(n="figure"),e(D.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:b(n,t),contextClick:b(n,t)})}function L(t){return e(D.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(D.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b("dir",t),contextClick:b("dir",t)})}function A(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var o=n.part.adornedPart;e.set(o.data,t?"toSpot":"fromSpot",D.Spot.stringify(D.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(D.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function P(t,n){var o=0,i=D.Spot.RightSide;t.equals(D.Spot.Top)?(o=270,i=D.Spot.TopSide):t.equals(D.Spot.Left)?(o=180,i=D.Spot.LeftSide):t.equals(D.Spot.Bottom)&&(o=90,i=D.Spot.BottomSide),n||(o-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",D.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(D.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:o,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return o.current=new D.Diagram(i.current,{padding:20,grid:e(D.Panel,"Grid",e(D.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(D.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(H),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),o.current.nodeTemplate=e(D.Node,"Auto",{locationSpot:D.Spot.Center,locationObjectName:"SHAPE",desiredSize:new D.Size(120,60),minSize:new D.Size(40,40),resizable:!0,resizeCellSize:new D.Size(10,10),rotatable:!0},new D.Binding("location","loc",D.Point.parse).makeTwoWay(D.Point.stringify),new D.Binding("desiredSize","size",D.Size.parse).makeTwoWay(D.Size.stringify),e(D.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:D.Spot.AllSides,toSpot:D.Spot.AllSides},new D.Binding("figure"),new D.Binding("fill"),new D.Binding("stroke","borderColor"),new D.Binding("strokeWidth","thickness"),new D.Binding("strokeDashArray","dash")),e(D.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(D.TextBlock,{margin:1,textAlign:"center",overflow:D.TextBlock.OverflowEllipsis,editable:!0},new D.Binding("text").makeTwoWay(),new D.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(D.Panel,"Vertical",{maxSize:new D.Size(200,NaN)},e(D.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new D.Binding("text")),e(D.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new D.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(D.Adornment,"Spot",e(D.Placeholder,{padding:10}),w(D.Spot.Top,"TriangleUp"),w(D.Spot.Left,"TriangleLeft"),w(D.Spot.Right,"TriangleRight"),w(D.Spot.Bottom,"TriangleDown"),y({alignment:new D.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(D.Panel,"Horizontal",Z("Rectangle"),Z("RoundedRectangle"),Z("Ellipse"),Z("Diamond"))),e("ContextMenuButton",e(D.Panel,"Horizontal",Z("Parallelogram2"),Z("ManualOperation"),Z("Procedure"),Z("Cylinder1"))),e("ContextMenuButton",e(D.Panel,"Horizontal",Z("Terminator"),Z("CreateRequest"),Z("Document"),Z("TriangleDown"))),k(),C(),T()),o.current.groupTemplate=e(D.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:D.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new D.Binding("location","loc",D.Point.parse).makeTwoWay(D.Point.stringify),e(D.Panel,"Auto",{name:"BODY"},e(D.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:D.Spot.AllSides,toSpot:D.Spot.AllSides},new D.Binding("fill"),new D.Binding("stroke","color"),new D.Binding("strokeWidth","thickness"),new D.Binding("strokeDashArray","dash")),e(D.Placeholder,{background:"transparent",margin:20})),e(D.TextBlock,{alignment:D.Spot.Top,alignmentFocus:D.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new D.Binding("text"),new D.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(D.Adornment,"Spot",e(D.Panel,"Auto",e(D.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(D.Placeholder,{margin:1.5})),y({alignment:D.Spot.TopRight,alignmentFocus:D.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",k(),C(),T()),o.current.linkTemplate=e(D.Link,{layerName:"Foreground",routing:D.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new D.Binding("fromSpot","fromSpot",D.Spot.parse),new D.Binding("toSpot","toSpot",D.Spot.parse),new D.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new D.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new D.Binding("points").makeTwoWay(),e(D.Shape,{strokeWidth:2},new D.Binding("stroke","color"),new D.Binding("strokeWidth","thickness"),new D.Binding("strokeDashArray","dash")),e(D.Shape,{segmentIndex:0,segmentOffset:new D.Point(15,0),segmentOrientation:D.Link.OrientAlong,alignmentFocus:D.Spot.Right,figure:"circle",width:10,strokeWidth:0},new D.Binding("fill","color"),new D.Binding("visible","dir",(function(e){return 1===e}))),e(D.Shape,{segmentIndex:-1,segmentOffset:new D.Point(-10,6),segmentOrientation:D.Link.OrientPlus90,alignmentFocus:D.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new D.Binding("fill","color"),new D.Binding("visible","dir",(function(e){return e>=1})),new D.Binding("width","thickness",(function(e){return 7+3*e})),new D.Binding("height","thickness",(function(e){return 7+3*e})),new D.Binding("segmentOffset","thickness",(function(e){return new D.Point(-15,4+1.5*e)}))),e(D.Shape,{segmentIndex:0,segmentOffset:new D.Point(15,-6),segmentOrientation:D.Link.OrientMinus90,alignmentFocus:D.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new D.Binding("fill","color"),new D.Binding("visible","dir",(function(e){return 2===e})),new D.Binding("width","thickness",(function(e){return 7+3*e})),new D.Binding("height","thickness",(function(e){return 7+3*e})),new D.Binding("segmentOffset","thickness",(function(e){return new D.Point(-15,4+1.5*e)}))),e(D.TextBlock,{alignmentFocus:new D.Spot(0,1,-4,0),editable:!0},new D.Binding("text").makeTwoWay(),new D.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(D.Adornment,e(D.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:L(2)},new D.Binding("pathPattern","thickness",L)),y({alignmentFocus:new D.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",C(),T(),e("ContextMenuButton",e(D.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(D.Panel,"Horizontal",e(D.Panel,"Spot",A(!1),P(D.Spot.Top,!1),P(D.Spot.Left,!1),P(D.Spot.Right,!1),P(D.Spot.Bottom,!1)),e(D.Panel,"Spot",{margin:new D.Margin(0,0,0,2)},A(!0),P(D.Spot.Top,!0),P(D.Spot.Left,!0),P(D.Spot.Right,!0),P(D.Spot.Bottom,!0))))),new D.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(D.Link,{locationSpot:D.Spot.Center,selectionAdornmentTemplate:e(D.Adornment,"Link",{locationSpot:D.Spot.Center},e(D.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(D.Shape,{toArrow:"Standard",stroke:null}))},{routing:D.Link.AvoidsNodes,curve:D.Link.JumpOver,corner:5,toShortLength:4},new D.Binding("points"),e(D.Shape,{isPanelMain:!0,strokeWidth:2}),e(D.Shape,{toArrow:"Standard",stroke:null})),model:new D.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(O()(D.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(D.Node,"Auto",{locationSpot:D.Spot.Center},new D.Binding("location","location",D.Point.parse).makeTwoWay(D.Point.stringify),e(D.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 D.Binding("stroke").makeTwoWay(),new D.Binding("fill").makeTwoWay(),new D.Binding("figure")),e(D.TextBlock,{margin:new D.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new D.Size(16,16),maxSize:new D.Size(10,NaN),textAlign:"center",editable:!0},new D.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(D.Panel,"Grid",e(D.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(D.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),o.current.grid.visible=!0,o.current.grid.gridCellStroke="darkgray",o.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=o.current,o.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:i})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(C.ZP,{size:"large",onClick:f,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),q=n(94001),J=K.ZP.Group,Q={margin:"0 8px"},X=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(j.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"单元格数:"}),(0,h.jsx)("span",{style:Q,children:"行数"}),(0,h.jsx)(j.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(q.Z,{})}),(0,h.jsx)("span",{style:Q,children:"列数"}),(0,h.jsx)(j.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(q.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"对齐方式:"}),(0,h.jsx)(j.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(C.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,r=e.callback,s=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],m=d[1],f=(0,c.useRef)({id:s,appName:"graphing",width:o||1e3,height:i||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){l.current=new(te())(f.current,!0),window.onload=function(){l.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){f.current.appName=p?"3D":"graphing",l.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){m(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:s}),(0,h.jsxs)(L.Z,{align:"middle",children:[(0,h.jsx)(F.Z,{flex:1,children:(0,h.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return m(e)}})}),(0,h.jsx)(F.Z,{children:(0,h.jsx)(C.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),oe=n(36761),ie=n(92723),re=n(8591),ae="link",se="upload-image",le="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",me={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},he=n(77818);var fe="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var xe=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",we=l()(l()({},xe+"-B","bold"),xe+"-I","italic"),ye=l()(l()(l()(l()(l()(l()(l()(l()({},ae,"添加链接"),ue,"添加代码块"),se,"添加图片"),ce,"添加画图"),le,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),be=function(e){var t=e.defaultValue,n=void 0===t?"":t,o=e.onChange,r=e.width,s=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,x=void 0!==v&&v,w=e.isFocus,j=void 0!==w&&w,k=e.watch,C=e.insertTemp,_=e.mode,L=void 0===_?"markdown":_,N=e.id,P=void 0===N?"markdown-editor-id":N,B=e.showResizeBar,E=void 0!==B&&B,M=e.noStorage,I=void 0!==M&&M,O=e.showNullButton,D=void 0!==O&&O,G=e.showNullProgramButton,H=void 0!==G&&G,R=e.hidetoolBar,F=void 0!==R&&R,W=e.fullScreen,Y=void 0!==W&&W,V=e.onBlur,K=e.onCMBeforeChange,q=e.onFullScreen,J=e.className,Q=void 0===J?"":J,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,pe=void 0!==te&&te,xe=e.disabledFill,be=void 0!==xe&&xe,je=e.placeholder,ke=void 0===je?"":je,Ce=e.values,_e=void 0===Ce?"":Ce,Se=e.extraUse,Te=(0,c.useState)(null),Ze=a()(Te,2),Le=Ze[0],Ne=Ze[1],Ae=(0,c.useState)(n),Pe=a()(Ae,2),Be=Pe[0],Ee=Pe[1],Me=(0,c.useState)(k),Ie=a()(Me,2),Oe=Ie[0],De=Ie[1],Ge=(0,c.useState)(Y),He=a()(Ge,2),Re=He[0],ze=He[1],Fe=(0,c.useState)(""),We=a()(Fe,2),Ye=We[0],Ve=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),qe=Ke[0],Je=Ke[1],Qe=(0,c.useState)(g),Xe=a()(Qe,2),$e=Xe[0],et=Xe[1],tt=(0,c.useState)(!1),nt=a()(tt,2),ot=(nt[0],nt[1]),it=(0,c.useState)(0),rt=a()(it,2),at=rt[0],st=rt[1],lt=(0,c.useState)(0),ct=a()(lt,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),mt=(0,c.useRef)(),ht=(0,c.useRef)(),ft=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ee(_e),null==Le||Le.setValue(_e),window.scrollTo(0,e)}),[_e]),(0,c.useEffect)((function(){null==q||q(Re)}),[Re]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var o=n.clipboardData;if(o){var i=o.types.toString(),r=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==L)return;try{var a,s=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(s=r[0]);var l=s.getAsFile(),c=l.name.split(".").pop();(0,Z.I)(l,(function(e){var n,o,i;e.id?(null==l||null===(n=l.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==l||null===(o=l.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('')):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?t.replaceSelection('').concat(l.name,"")):ge.includes(c)?t.replaceSelection('').concat(l.name,"")):t.replaceSelection("[".concat(l.name,"](").concat(ie.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:L,lineNumbers:!x,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),o=n.getCursor(),i=n.getLine(o.line),r=i.charAt(o.ch-1),a=i.lastIndexOf("@▁@",o.ch),s=i.lastIndexOf("@▁▁@",o.ch),l=a>s?a:s,c=a>s?3:4;if(-1===fe.indexOf(r))return null;if(console.log("change1:",t,e,i,o,l,a,s,r),l>=0&&o.ch-l<5){var u=l+c;return n.replaceRange("",{line:o.line,ch:l},{line:o.line,ch:u}),{line:o.line,ch:u}}return null}(e);n&&t.preventDefault()}})),j&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){mt.current}),[$e,mt,Re]);(0,c.useEffect)((function(){if(Le){var e=function(){var e=new p.Z((function(e){var t,n=i()(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;(o.target.offsetHeight>0||o.target.offsetWidth>0)&&(gt(),Le.setSize("100%","100%"),Le.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Le,gt]),(0,c.useEffect)((function(){if(Le){for(var e=[],t=function(){var t=a()(o[n],2),i=t[0],r=t[1],s=l()({},i,(function(){vt(r)}));e.push(s),Le.addKeyMap(s)},n=0,o=Object.entries(we);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(P);e>=qe+1e4&&(!t||t!==Be)&&(window.sessionStorage.setItem(P,Be),ot(!0))}}),1e4),(0,c.useEffect)((function(){De(k)}),[Le,k]),(0,c.useEffect)((function(){Le&&j&&Le.focus()}),[Le,j]),(0,c.useEffect)((function(){if(Oe&&Le){var e=function(e){var t=e.target;if(ft.current){var n=t.scrollTop/t.scrollHeight;ft.current.scrollTop=ft.current.scrollHeight*n}},t=Le.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Le,Oe]),(0,c.useEffect)((function(){if(Le&&K){var e=function(e,t){K(e,t)};return Le.on("beforeChange",e),function(){Le.off("beforeChange",e)}}}),[Le,K]),(0,c.useEffect)((function(){if(Le&&V){var e=function(){V(Le.getValue())};return Le.on("blur",e),function(){Le.off("blur",e)}}}),[Le,V]),(0,c.useEffect)((function(){if(Le){var e=function(e,t){var n=e.getValue();Ee(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(H?o(n,jt(n)):o(n))};return Le.on("change",e),function(){Le.off("change",e)}}}),[Le,o]),(0,c.useEffect)((function(){if(Le)if(null==n)Le.setValue(""),Ee("");else{var e=window.scrollY||window.pageYOffset;n!==Le.getValue()&&(Le.setValue(n),Ee(n),Le.setCursor(pe?1:Le.lineCount(),0),window.scrollTo(0,e))}}),[Le,n]);var vt=(0,c.useCallback)((function(e){var t=Le.getCursor(),n=Le.getSelection(),o=n.split("\n");switch(e){case"bold":return Le.replaceSelection("**"+n+"**"),""===n&&Le.setCursor(t.line,t.ch+2),Le.focus();case"italic":return Le.replaceSelection("*"+n+"*"),""===n&&Le.setCursor(t.line,t.ch+1),Le.focus();case"code":return Le.replaceSelection("`"+n+"`"),""===n&&Le.setCursor(t.line,t.ch+1),Le.focus();case"inline-latex":return Ve("inline-latex"),Le.focus();case"latex":return Le.replaceSelection("```latex\n"+n+"\n```"),Le.setCursor(t.line+1,n.length+1),Le.focus();case"line-break":return Le.replaceSelection("
\n"),Le.focus();case"list-ul":return""===n?Le.replaceSelection("- "+n):Le.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Le.focus();case"list-ol":return""===n?Le.replaceSelection("1. "+n):Le.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Le.focus();case"add-null-ch":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection("▁"),Le.focus();case"add-signal":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection("@▁@"),Le.focus();case"add-multiple":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection(fe),Le.focus();case"inster-template-1":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Le.focus();case"eraser":return Le.setValue(""),Le.focus();case"trigger-watch":return De(!Oe),Le.focus();case"trigger-full-screen":return ze(!Re),Le.focus();case ae:return void Ve(ae);case ue:return void Ve(ue);case se:return void Ve(se);case ce:return void Ve(ce);case"maths-latex":return void Ve("maths-latex");case le:return void Ve(le);case de:return void Ve(de);default:throw new Error}}),[Le,Oe,Re]),xt=(0,c.useCallback)((function(e,t){var n,o,i,r,a;switch(Ve(""),Ye){case ae:var s=e.title,l=e.link;return Le.replaceSelection("[".concat(s,"](").concat(l,")")),Le.focus();case ue:var c=e.language,u=e.content;return Le.replaceSelection(["```"+c,u,"```"].join("\n")),Le.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),m=0;m-1||null==v||!v.type?g?Le.replaceSelection("![ ".concat(g," ]( ").concat(f,' "').concat(g,'" )')):Le.replaceSelection("![,](".concat(f,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Le.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Le.replaceSelection('').concat(v.name,"")):ge.includes(x)?Le.replaceSelection('').concat(v.name,"")):Le.replaceSelection("[".concat(v.name,"](").concat(ie.Z.API_SERVER).concat(f,")")),Le.focus();case de:for(var w=e.row,y=e.col,b=e.align,j="\n",k=0;k300&&(t=300),et(g+t+"px")}},o=ht.current,i=!1,r=0;return o.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){o.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Le,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var bt={width:ve(s),height:ve($e)},jt=((0,c.useMemo)((function(){if(qe){var e=new Date(qe),t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(o)}return 0}),[qe]),function(e){var t=[];if(H){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ye]&&Ye!==ce&&Ye!==le&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;st(t),dt(n)}),0)}),[Ye]);var kt=function(e,t,n,o){var i=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>i-20&&o0)){e.next=13;break}return w.ZP.info("发布班级不能为空"),je(!1),e.abrupt("return");case 13:if(null==me||!me.submit_limit||null!=me&&me.submit_limit_num){e.next=17;break}return w.ZP.warning("学生填写内容字数不能为空"),je(!1),e.abrupt("return");case 17:if(null==me||!me.can_submit||null!=me&&me.submit_num){e.next=21;break}return w.ZP.warning("学生提交作品次数不能为空"),je(!1),e.abrupt("return");case 21:return u=p()({homework_ids:l()(t.actionTabs.selectArrs),group_ids:re.length>0?re.map((function(e){return e.id})):null===(a=t.detailCommonHomeworksList)||void 0===a?void 0:a.course_groups,end_time:T()(c.end_time).format("YYYY-MM-DD HH:mm"),publish_time:T()(c.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!re.length},me),je(!0),e.next=25,(0,Z.ZP)("/api/courses/".concat(s.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:p()({},u)});case 25:0===e.sent.status?(je(!1),(0,N.L9)(["教学课堂","分组作业","立即发布"]),w.ZP.success("发布成功"),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),r.onCallback&&r.onCallback(),ge(),"0"===localStorage.getItem("Noviceguide")||n({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:13,text:(0,I.jsx)("div",{children:"最后,咱们给教学课堂添加一名学生~点击“添加学生”,在弹窗页面中输入并搜索学生姓名,点击“确定”就可以为您的课堂添加第一位学生啦~"})}})):je(!1);case 27:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),xe=function(){D(1),z([]),ae([])},we=(t.detailCommonHomeworksList,(0,v.useState)(!1)),ye=h()(we,2),be=ye[0],je=ye[1];return(0,I.jsxs)(y.Z,{width:600,confirmLoading:be,centered:!0,title:"发布作业",open:"立即发布"===t.actionTabs.key,okText:"发布作业",cancelText:"暂不发布",onOk:ve,onCancel:function(){xe(),ge(),n({type:"classroomList/setActionTabs",payload:{}})},children:[(0,I.jsxs)("p",{className:"tc",children:["学生将立即收到作业",(0,I.jsx)("br",{}),'本操作只对"未发布"的作业有效']}),R&&(0,I.jsxs)(x.Z,{form:d,children:[(0,I.jsxs)("div",{style:{paddingLeft:0},children:[(0,I.jsxs)(b.Z,{className:"mt30",align:"middle",children:[(0,I.jsx)(j.Z,{children:(0,I.jsx)(x.Z.Item,{name:"publish_time",label:"发布时间",children:(0,I.jsx)(k.default,{style:{width:170,marginRight:"25px"},disabledDate:function(e){return(0,M.Q8)(e,o)},disabledTime:function(e){return(0,M.d0)(e)},placeholder:"请选择发布时间",showTime:{format:"HH:mm",defaultValue:T()((0,N.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),(0,I.jsx)(j.Z,{className:"ml20",children:(0,I.jsx)(x.Z.Item,{name:"end_time",label:"截止时间",children:(0,I.jsx)(k.default,{style:{width:170},placeholder:"请选择结束时间",showTime:{format:"HH:mm",defaultValue:T()((0,N.U6)(),"HH:mm")},disabledDate:function(e){return(0,M.Q8)(e,o,d.getFieldValue("publish_time"))},disabledTime:function(e){return(0,M.d0)(e,d.getFieldValue("publish_time"))},format:"YYYY-MM-DD HH:mm",allowClear:!1})})})]}),2===t.actionTabs.type&&(0,I.jsxs)(b.Z,{style:{marginBottom:"10px"},children:[(0,I.jsx)("span",{className:"mr5",children:"发布设置:"}),(0,I.jsxs)(C.ZP.Group,{value:ce,onChange:function(e){ue(e.target.value),ae([])},children:[(0,I.jsx)(C.ZP,{value:!0,disabled:!t.actionTabs.manage_all_group,children:"统一发布"}),(0,I.jsx)(C.ZP,{className:"ml20",disabled:R.length<=0,value:!1,children:"分班发布"})]})]}),R.length<=0&&2===t.actionTabs.type&&(0,I.jsx)("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"},children:'课堂无分班,仅支持选择“统一发布"'})]}),(1===t.actionTabs.type||!ce)&&R.length>0&&(0,I.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"},children:[(0,I.jsx)("span",{style:{flex:1},children:(0,I.jsx)(_.Z,{checked:re.length===R.length,onChange:function(e){re.length===R.length?ae([]):ae(R.filter((function(e){return!e.is_published})))},children:"全选"})}),(0,I.jsx)("span",{style:{width:16}}),(0,I.jsxs)("span",{style:{flex:1},children:["已选择",re.length||0,"个分班"]})]}),(1===t.actionTabs.type||!ce)&&R.length>0&&(0,I.jsx)(P.Z,{data:R,selectedRowKeys:re,setSelectedRowKeys:ae})]}),(0,I.jsx)(B.ZP,{value:me,onChange:function(e){return he(p()({},e))}})]})}))},94654:function(e,t,n){"use strict";n.r(t),n.d(t,{GroupHomeworkContext:function(){return Ae},default:function(){return Pe}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301),p=n(5296),m=n(8591),h=n(96865),f=n(27092),g=n(81228),v=n(43418),x=n(95237),w=n(43604),y=n(78673),b=n(5112),j=n(60324),k=n(94001),C=n(39248),_=n(93697),S=n(21082),T=n(37205),Z=n.n(T),L=n(18030),N=n(97978),A=n(37712),P=(0,p.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,o=e.classroomList,r=e.dispatch,s=e.user,c=e.onCallback,h=(0,p.useParams)(),f=(0,d.useState)(!1),g=u()(f,2),x=g[0],w=g[1],y=(0,d.useState)(!1),b=u()(y,2),j=b[0],k=b[1],C=(0,d.useRef)(null);(0,d.useEffect)((function(){if("删除"===o.actionTabs.key){if((0,_.j5)())return void k(!0);var e={hasNum:0,noHasNum:0};o.actionTabs.selectArrsAll.map((function(t){var n;t.author_login===(null===(n=s.userInfo)||void 0===n?void 0:n.login)?++e.hasNum:++e.noHasNum})),e.noHasNum>0?v.Z.info({title:"权限提示",className:"custom-modal-divider ",icon:null,content:(0,A.jsxs)("div",{children:["当前选中资源中:",(0,A.jsx)("span",{className:"c-blue",children:e.hasNum}),"个由您本人发布,",(0,A.jsx)("span",{className:"c-red",children:e.noHasNum})," ","个由其他老师发布。",(0,A.jsx)("br",{}),"课堂内只能删除本人发布的资源,请取消选中其他老师发布的资源。"]}),onOk:function(){T()}}):k(!0)}else k(!1)}),[o.actionTabs.key]);var T=function(){r({type:"classroomList/setActionTabs",payload:{}})};return(0,A.jsx)(v.Z,{centered:!0,title:"提示",open:j,okText:"确定",cancelText:"取消",confirmLoading:x,destroyOnClose:!0,onOk:a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=C.current)||void 0===t||!t.onVerify()){e.next=2;break}return e.abrupt("return");case 2:return w(!0),e.next=5,(0,L.ZP)("/api/courses/".concat(h.coursesId,"/homework_commons/multi_destroy.json"),{method:"post",body:{homework_ids:Z()(o.actionTabs.selectArrs)}});case 5:n=e.sent,w(!1),0===n.status&&((0,S.L9)(["教学课堂","分组作业","删除"]),m.ZP.success("删除成功"),r({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),c&&c(),(0,_.GJ)()?r({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},o.actionTabs.params),{},{type:3})}):r({type:"classroomList/getClassroomCommonList",payload:l()({},o.actionTabs.params)}));case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){r({type:"classroomList/setActionTabs",payload:{}})},children:null!=o&&null!==(t=o.actionTabs)&&void 0!==t&&t.status&&["未发布"].includes(null==o||null===(n=o.actionTabs)||void 0===n?void 0:n.status)?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("p",{children:"提交作品将全部被删除,不可恢复"}),(0,A.jsx)("p",{children:"是否确认删除?"})]}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("p",{style:{color:"#DD0000"},children:"删除作业则会清除学生所有的答题数据,且数据不可恢复,如确定删除,请输入下方验证码"}),(0,A.jsx)(N.Z,{ref:function(e){return C.current=e}})]})})})),B=n(1761),E=n(3655),M=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=(0,p.useParams)();return o.id=o.coursesId,(0,A.jsx)(v.Z,{centered:!0,title:"提示",open:"设为公开"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/courses/".concat(o.id,"/homework_commons/set_public.json"),{method:"post",body:{homework_ids:Z()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,S.L9)(["教学课堂","分组作业","设为公开"]),m.ZP.success("操作成功"),n({type:"classroomList/setActionTabs",payload:{}}),n({type:"classroomList/getClassroomCommonHomeworksList",payload:l()({},t.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:(0,A.jsxs)("p",{children:["设为公开后,非课堂成员也可以访问查看",(0,A.jsx)("br",{}),"是否确认设为公开?"]})})})),I=n(39647),O=n.n(I),D=["classroomList","dispatch","onCallback"],G=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=e.onCallback,r=(O()(e,D),(0,p.useParams)());return r.id=r.coursesId,(0,A.jsx)(v.Z,{centered:!0,title:"提示",open:"收藏"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/courses/".concat(r.id,"/homework_commons/add_to_homework_bank.json"),{method:"post",body:{all_check:0,homework_ids:Z()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,S.L9)(["教学课堂","分组作业","收藏"]),m.ZP.success("收藏成功,请前往【个人主页/课堂资源】查看"),o&&o(),(0,_.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:3})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)}),n({type:"classroomList/setActionTabs",payload:{}}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:"确认收藏?"})})),H=n(85573),R=n.n(H),z=n(99313),F=n(78241),W=n(3113),Y=n(92832),V=n(24905),U=n(26724),K=n.n(U),q={flex_box_center:"flex_box_center___ABrmR",flex_space_between:"flex_space_between___vTOmX",flex_box_vertical_center:"flex_box_vertical_center___txnfs",flex_box_center_end:"flex_box_center_end___fhlTP",flex_box_column:"flex_box_column___NGqFB",line1:"line1___kzLLz",form:"form___JNFp_"},J=n(54313),Q=n(21530),X=(z.Z.TabPane,(0,p.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,loading:e.loading,classroomList:e.classroomList}}))((function(e){var t,n=e.shixunHomeworks,o=e.classroomList,r=(e.loading,e.dispatch),s=(0,p.useParams)(),c=((0,p.useLocation)(),F.Z.useForm()),m=u()(c,1)[0],h=(n.brankList,(0,d.useState)(!1)),f=u()(h,2),g=f[0],y=f[1],b=(0,d.useState)(!0),j=u()(b,2),k=j[0],C=j[1],T=(0,d.useState)("myself"),L=u()(T,2),N=L[0],P=L[1],B=(0,d.useState)([]),E=u()(B,2),M=E[0],I=E[1],O=(0,d.useState)(),D=u()(O,2),G=D[0],H=D[1],z=(0,d.useState)({page:0,limit:20,object_type:"group",search:"",filter:"myself"}),U=u()(z,2),X=U[0];U[1];(0,d.useEffect)((function(){"题库选用"===n.actionTabs.key&&ee()}),[n.actionTabs.key]);var $=[],ee=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!k){e.next=11;break}return y(!1),++X.page,e.next=5,r({type:"shixunHomeworks/getBrankList",payload:l()({},X)});case 5:n=e.sent,M=Z()(M.concat(n.object_list)),H(n.is_teacher),(null===(t=n.object_list)||void 0===t?void 0:t.length)5&&(0,A.jsx)(se.Z,{scroll:{y:240},onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:E,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(b.sort_by=n.field),n.order||(b.sort_direction="asc"),"ascend"===n.order&&(b.sort_direction="asc"),"descend"===n.order&&(b.sort_direction="desc"),n.order||(b.sort_direction="asc"),O()},columns:I}),(0,_.GJ)()&&"未发布"!==c.status&&C&&E.length<6&&E.length>0&&(0,A.jsx)(se.Z,{onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:E,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(b.sort_by=n.field),n.order||(b.sort_direction="asc"),"ascend"===n.order&&(b.sort_direction="asc"),"descend"===n.order&&(b.sort_direction="desc"),n.order||(b.sort_direction="asc"),O()},columns:I})]})]})]})},de="bottomControlContainer___yUX9N",pe="moveCategory___pCGhW",me=n(78386),he=function(e){var t,n=e.buttonDataSource,o=e.onClick,r=(0,d.useContext)(Ae),s=r.allSelect,l=r.setAllSelect,c=r.setSelectArrs,p=r.dataSource,h=r.selectArrs,f=r.useBatchStatus,g=r.dispatch,v=r.params,y=r.getData,b=r.detailLeftMenus,j=r.main_category_id,k=r.setSelectArrsAll,C=(0,d.useState)(!1),S=u()(C,2),T=(S[0],S[1]),N=(0,d.useState)(""),P=u()(N,2),B=P[0],E=P[1];b.course_modules&&(t=b.course_modules.filter((function(e){return"group_homework"===e.type}))[0]);var M=(0,A.jsx)("div",{className:pe,onMouseLeave:function(e){return T(!1)},children:(0,A.jsxs)(ae.Z,{onClick:function(){var e=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.item,n=t.key,t.keyPath,t.domEvent,""!=h){e.next=4;break}return m.ZP.error("请选择你要操作的任务"),e.abrupt("return",null);case 4:return e.next=6,(0,L.ZP)("/api/courses/".concat(v.id,"/homework_commons/move_to_category.json"),{method:"post",body:{homework_ids:h,new_category_id:n}});case 6:0===e.sent.status&&(m.ZP.success("操作成功"),f(!1),y(),g({type:"classroomList/getClassroomLeftMenus",payload:{id:v.coursesId}}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),style:{maxHeight:300,width:240,overflow:"auto"},children:[(0,A.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",children:(0,A.jsx)(Y.Z,{onChange:function(e){E(e.target.value)}})}),t&&t.second_category.filter((function(e){return"未分配目录"!==e.category_name})).map((function(e,t){var n;if(!(""!==B&&e.category_name.indexOf(B)<0))return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(ae.Z.Item,{className:"multi-llipsis1e",children:e.category_name},e.category_id),null==e||null===(n=e.third_category)||void 0===n?void 0:n.map((function(e){return(0,A.jsx)(ae.Z.Item,{style:{marginLeft:20},className:"multi-llipsis1e",children:e.category_name},e.category_id)}))]})})),(0,A.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:function(e){e.preventDefault(),g({type:"classroomList/setActionTabs",payload:{key:"添加目录",params:v,selectArrs:{category_id:j,type:"group_homework"}}})},children:"新建子目录..."})]})});return(0,A.jsx)("div",{className:de,children:(0,A.jsxs)(x.Z,{wrap:!1,align:"middle",justify:"space-between",style:{height:"100%"},children:[(0,A.jsx)(w.Z,{flex:1,children:(0,A.jsxs)(x.Z,{wrap:!1,align:"middle",gutter:8,children:[(0,A.jsx)(w.Z,{children:(0,A.jsxs)(V.Z,{checked:s,onChange:function(e){l(e.target.checked),c(e.target.checked?p.map((function(e){return e.homework_id})):[]),e.target.checked?k(Z()(p)):k([])},children:["全选本页(",h.length,")"]})}),(0,_.GJ)()&&(0,A.jsx)(w.Z,{children:(0,A.jsx)(re.Z,{placement:"top",menu:{items:n,onClick:function(e){var t=e.key;o({key:t})}},children:(0,A.jsx)(W.ZP,{type:"primary",icon:(0,A.jsx)("i",{className:"iconfont icon-piliangcaozuo3"}),children:"批量操作"})})}),(0,A.jsx)(w.Z,{children:(0,A.jsx)(W.ZP,{type:"primary",onClick:function(){var e={courseId:v.id,container_type:"group_homework"};v.categoryId&&(e.category_id=v.categoryId),g({type:"classroomList/getAllTaskList",payload:e}),g({type:"classroomList/setActionTabs",payload:{key:"调整排序"}})},icon:(0,A.jsx)("i",{className:"iconfont icon-tiaozhengpaixu2"}),children:"调整排序"})}),(0,_.GJ)()&&(0,A.jsx)(w.Z,{children:(0,A.jsx)(re.Z,{placement:"topLeft",dropdownRender:function(){return M},getPopupContainer:function(e){return e.parentNode},children:(0,A.jsxs)(W.ZP,{type:"primary",icon:(0,A.jsx)("i",{className:"iconfont icon-yidongmulu"}),children:["移动到目录 ",(0,A.jsx)(me.Z,{})]})})}),(0,_.GJ)()&&(0,A.jsx)(w.Z,{children:(0,A.jsx)(W.ZP,{type:"primary",onClick:function(){return o({key:"collection",label:"收藏"})},icon:(0,A.jsx)("i",{className:"iconfont icon-shoucang1"}),children:"收藏"})})]})}),(0,A.jsx)(w.Z,{children:(0,A.jsx)(W.ZP,{type:"primary",ghost:!0,onClick:function(){c([]),f(!1)},children:"取消操作"})})]})})},fe=n(96544),ge=n(20208),ve=n(52352),xe=n(75774),we=n(81327),ye=n(57930),be=n(71418),je=n(61186),ke=n.n(je),Ce=n(33656),_e=n.n(Ce),Se=n(54602),Te=n(1058),Ze=["classroomList","dispatch","user","getData"];ke().extend(_e());var Le=function(e){var t,n,o,i,r=e.data,a=e.value,s=e.onChange,c=(0,d.useState)({leftSearch:"",rigthSearch:""}),p=u()(c,2),m=p[0],h=p[1],f=(0,d.useState)([]),g=u()(f,2),v=g[0],y=g[1];return(0,d.useEffect)((function(){y((null==a?void 0:a.length)>0?null==r?void 0:r.filter((function(e){return null==a?void 0:a.includes(null==e?void 0:e.id)})):[])}),[a]),(0,A.jsxs)("div",{style:{display:"flex",flexWrap:"nowrap",gap:"20px",height:"400px"},children:[(0,A.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,A.jsx)(V.Z,{indeterminate:(null==v?void 0:v.length)>0&&(null==v?void 0:v.length)<(null==r?void 0:r.length),checked:(null==v?void 0:v.length)==(null==r?void 0:r.length),onChange:function(e){s(e.target.checked?null==r?void 0:r.map((function(e){return null==e?void 0:e.id})):[])},children:"全选"}),(0,A.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,A.jsx)(Y.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:m.leftSearch,onChange:function(e){h(l()(l()({},m),{},{leftSearch:e.target.value}))}}),(0,A.jsx)("div",{className:"mt20 ml20 mb20",style:{overflow:"auto"},children:0!==(null===(t=m.leftSearch?null==r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.leftSearch)})):r)||void 0===t?void 0:t.length)?(0,A.jsx)(V.Z.Group,{value:a,onChange:function(e){s(e)},children:(0,A.jsx)(we.Z,{direction:"vertical",children:null===(n=m.leftSearch?null==r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.leftSearch)})):r)||void 0===n?void 0:n.map((function(e,t){return(0,A.jsx)(V.Z,{value:e.id,children:null==e?void 0:e.name},t)}))})}):(0,A.jsx)(J.Z,{styles:{margin:"0 auto"}})})]})]}),(0,A.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,A.jsxs)("div",{children:["已选择",(null==v?void 0:v.length)||0,"个分班"]}),(0,A.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,A.jsx)(Y.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:m.rigthSearch,onChange:function(e){h(l()(l()({},m),{},{rigthSearch:e.target.value}))}}),(0,A.jsx)("div",{className:"mt20 ml20 mb20 pr20",style:{display:"flex",flexDirection:"column",gap:"10px",overflow:"auto"},children:0!==(null===(o=m.rigthSearch?null==v?void 0:v.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.rigthSearch)})):v)||void 0===o?void 0:o.length)?null===(i=m.rigthSearch?null==v?void 0:v.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.rigthSearch)})):v)||void 0===i?void 0:i.map((function(e,t){return(0,A.jsxs)(x.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,A.jsx)(w.Z,{children:null==e?void 0:e.name}),(0,A.jsx)(w.Z,{children:(0,A.jsx)("i",{className:"iconfont icon-piliangshanchu2 font16 current",style:{color:"#3061D0"},onClick:function(){s(null==a?void 0:a.filter((function(t){return t!==(null==e?void 0:e.id)})))}})})]},t)})):(0,A.jsx)(J.Z,{styles:{margin:"0 auto"}})})]})]})]})},Ne=(0,p.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,o,r,s,c,h=e.classroomList,f=e.dispatch,g=(e.user,e.getData),y=(O()(e,Ze),(0,p.useParams)()),b=F.Z.useForm(),j=u()(b,1)[0],k="批量补交"===(null==h||null===(t=h.actionTabs)||void 0===t?void 0:t.key),C=(0,Te.U)(Se.c_,l()(l()({},y),null==h||null===(n=h.actionTabs)||void 0===n?void 0:n.params)),_=u()(C,4),T=_[1],Z=_[2],L=_[3],N=(0,Te.U)(Se.nP,{course_id:null==y?void 0:y.coursesId,homework_ids:null==h||null===(o=h.actionTabs)||void 0===o?void 0:o.selectArrs}),P=u()(N,4),B=P[2],E=P[3],M=(0,Te.U)(Se.sm,{course_id:null==y?void 0:y.coursesId,homework_ids:null==h||null===(r=h.actionTabs)||void 0===r?void 0:r.selectArrs}),I=u()(M,3),D=I[1],G=I[2],H=function(){var e=a()(i()().mark((function e(){var t=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:{},B({}),e.next=4,Z({page:1,limit:2e4,homework_id:1===h.actionTabs.type?"":h.actionTabs.selectArrs[0]});case 4:e.sent;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,d.useEffect)((function(){k&&H()}),[k]),(0,A.jsxs)(v.Z,{centered:!0,title:null==h||null===(s=h.actionTabs)||void 0===s?void 0:s.key,width:800,open:k,cancelText:"暂不补交",okText:"开启补交",onCancel:function(){f({type:"classroomList/setActionTabs",payload:{}})},destroyOnClose:!0,confirmLoading:D,onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:j.submit();case 1:case"end":return e.stop()}}),e)}))),children:[(0,A.jsx)("div",{className:"p10 pl20 pr20 c-orange-ff7 mb20",style:{background:"#F6F7F9"},children:"规则说明:补交截止时间必须晚于作业截止时间;当班级阶段进入“补交中”则不可变更作业截止时间、不可关闭补交;当作业状态为未发布、作业已开启统一补交和作业已开启匿评时,新批量补交规则不生效。"}),(0,A.jsxs)(F.Z,{form:j,colon:!1,size:"large",initialValues:{unified_late:!1,late_penalty:5},onFinish:function(){var e=a()(i()().mark((function e(t){var n,o,r,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,G((null==L||null===(n=L.course_groups)||void 0===n?void 0:n.length)>0?{unified_late:(null==L||null===(o=L.course_groups)||void 0===o?void 0:o.length)<=0,allow_late_settings:[l()({},t)]}:l()({unified_late:(null==L||null===(r=L.course_groups)||void 0===r?void 0:r.length)<=0},t));case 2:0==(null==(a=e.sent)?void 0:a.status)&&(m.ZP.success("补交设置成功"),f({type:"classroomList/setActionTabs",payload:{}}),g&&g());case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,A.jsxs)(x.Z,{wrap:!1,gutter:20,children:[(0,A.jsx)(w.Z,{flex:1,children:(0,A.jsx)(F.Z.Item,{label:"补交扣分",name:"late_penalty",rules:[{required:!0,message:"请输入补交扣分"}],children:(0,A.jsx)(Y.Z,{placeholder:"请输入补交扣分",min:0,type:"number",suffix:"分",max:Number.MAX_SAFE_INTEGER,style:{width:"50%"}})})}),(0,A.jsx)(w.Z,{flex:"390px",children:(0,A.jsx)(F.Z.Item,{label:"补交截止时间",name:"late_time",rules:[{required:!0,validator:function(e,t,n){return t&&ke()(t).startOf("minute")<=ke()().startOf("minute")?Promise.reject("作业补交截止时间必须晚于此刻"):t&&ke()(t).startOf("minute")<=ke()(null==E?void 0:E.max_late_time).startOf("minute")?(m.ZP.warning("补交截止时间不能小于选中作业中最晚作业截止时间:".concat(null==E?void 0:E.max_late_time)),Promise.reject("")):Promise.resolve()}},{required:!0,message:"请先设置补交截止时间"}],children:(0,A.jsx)(ye.default,{placeholder:"请选择截止时间",style:{width:"100%"},disabledDate:function(e){return(0,S.BO)(e,{startTime:null==E?void 0:E.max_late_time})},disabledTime:function(e){return(0,S.hv)(e,{compared:null==E?void 0:E.max_late_time})},format:"YYYY-MM-DD HH:mm",showTime:{showSecond:!1,defaultValue:ke()("00:00:00","HH:mm:ss")}})})})]}),(null==L||null===(c=L.course_groups)||void 0===c?void 0:c.length)>0&&(0,A.jsx)(be.Z,{spinning:T,children:(0,A.jsx)(F.Z.Item,{name:"group_id",rules:[{required:!0,message:"请先选择班级"}],children:(0,A.jsx)(Le,{data:(null==L?void 0:L.course_groups)||[],onChange:function(e){B({group_ids:e})}})})})]})]})})),Ae=(0,d.createContext)({selectArrs:[]}),Pe=(0,p.connect)((function(e){var t=e.user,n=e.classroomList,o=e.loading;return{user:t,classroomList:n,globalSetting:e.globalSetting,loading:o.effects}}))((function(e){var t,n,o,r,s=e.user,c=e.classroomList,T=e.loading,Z=e.dispatch,N=(0,p.useParams)(),I=(0,p.useSearchParams)(),O=u()(I,1)[0],D=(0,d.useState)((function(){return l()(l()({},N),{},{id:N.coursesId,limit:20})})),H=u()(D,2),R=H[0],z=H[1],F=(0,d.useState)(!1),W=u()(F,2),Y=W[0],V=W[1],U=(0,d.useState)({ta_mode:1,final_mode:!1,st_proportion:0,ta_proportion:30,te_proportion:70,gr_proportion:0,is_repeat_minus:!1,is_group_grade:!1,repeat_setting_score:"",repeat_limit:""}),K=u()(U,2),q=K[0],Q=K[1],te=(0,d.useState)([]),re=u()(te,2),ae=re[0],se=re[1],le=(0,d.useState)(!1),ce=u()(le,2),de=ce[0],pe=ce[1],me=(0,d.useState)(!1),we=u()(me,2),ye=we[0],be=we[1],je=(0,d.useState)([]),ke=u()(je,2),Ce=ke[0],_e=ke[1],Se=(0,d.useState)(!1),Te=u()(Se,2),Ze=(Te[0],Te[1],(0,d.useState)("默认排序")),Le=u()(Ze,2),Pe=Le[0],Be=Le[1],Ee=(0,p.useLocation)(),Me=c.detailCommonHomeworksList,Ie=c.detailLeftMenus,Oe=c.detailTopBanner,De=c.taskList;O.get("tabs")&&parseInt(O.get("tabs"));R.type=3,R.categoryId?R.category=R.categoryId:delete R.category,(0,d.useEffect)((function(){z(l()(l()({},R),N))}),[null==N?void 0:N.categoryId]),(0,d.useEffect)((function(){"0"===O.get("tabs")&&(R.status="0",R.page=1)}),[O.get("tabs")]),(0,d.useEffect)((function(){var e=O.get("tabs");e&&void 0!==e&&((0,_.GJ)()?R.status=e:R.order=e)}),[O.toString()]),(0,d.useEffect)((function(){Z({type:"classroomList/getAssistantPermissions",payload:{course_id:R.id}})}),[]),(0,d.useEffect)((function(){var e,t,n=O.get("tabs");if(null!=s&&null!==(e=s.userInfo)&&void 0!==e&&e.login){var o,i=S.cX.getItem("".concat(null==s||null===(o=s.userInfo)||void 0===o?void 0:o.login).concat((0,_.GJ)()?"Teacher":"Student"),"GroupHomework");i&&(R.sort_by=null==i?void 0:i.type,R.sort_direction=null==i?void 0:i.direction,Be(null==i?void 0:i.name));var r=void 0===N.categoryId?{}:{categoryId:N.categoryId,category:N.categoryId};n&&void 0!==n&&((0,_.GJ)()?R.status=n:R.order=n),Ge(r)}else if(null!=s&&null!==(t=s.userInfo)&&void 0!==t&&t.username){var a=void 0===N.categoryId?{}:{categoryId:N.categoryId,category:N.categoryId};n&&void 0!==n&&((0,_.GJ)()?R.status=n:R.order=n),Ge(a)}}),[null==s||null===(t=s.userInfo)||void 0===t?void 0:t.login,null==Ee?void 0:Ee.pathname]),(0,d.useEffect)((function(){"目录重命名成功"===c.actionTabs.key&&Ge(),"目录重命名成功"===c.actionTabs.key&&Ge()}),[c.actionTabs.key]),(0,d.useEffect)((function(){se([])}),[Me]),(0,d.useEffect)((function(){be(!1)}),[R.categoryId]),(0,d.useEffect)((function(){Me&&Me.homeworks&&(ae.length===Me.homeworks.length&&ae.length>0?pe(!0):ae.length!==Me.homeworks.length&&pe(!1))}),[ae]);var Ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};se([]),_e([]),(0,_.GJ)()?Z({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()(l()({},R),e),{},{type:3})}):Z({type:"classroomList/getClassroomCommonList",payload:l()(l()({},R),e)})},He=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/courses/".concat(R.coursesId,"/homework_commons/get_default_score_setting.json"),{method:"get",params:{homework_type:3}});case 2:null!=(t=e.sent)&&t.data&&(n=t.data.score_settings,Object.keys(n).map((function(e){e.indexOf("proportion")>-1&&(n[e]=(100*n[e]).toFixed(0))})),console.log(n),Q(l()({},n)));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,d.useEffect)((function(){se([])}),[Me]);var Re=function(){Z({type:"shixunHomeworks/setActionTabs",payload:{key:"题库选用",params:R}})},ze=null===(n=[{key:"publish",label:"批量发布",icon:(0,A.jsx)("i",{className:"iconfont icon-fabu5"}),isShow:!0},{key:"deadline",label:"批量截止",icon:(0,A.jsx)("i",{className:"iconfont icon-piliangjiezhi2"}),isShow:(0,_.GJ)()||(0,_.Rm)()},{key:"batchpay",label:"批量补交",icon:(0,A.jsx)("i",{className:"iconfont icon-buka"}),isShow:!0},{key:"delete",label:"批量删除",icon:(0,A.jsx)("i",{className:"iconfont icon-piliangshanchu2"}),isShow:!0},{key:"public",label:"设为公开",icon:(0,A.jsx)("i",{className:"iconfont icon-sheweigongkai2"}),isShow:Oe.is_public}].filter((function(e){return null==e?void 0:e.isShow})))||void 0===n?void 0:n.map((function(e){return delete e.isShow,e})),Fe=function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z({type:"classroomList/updateTaskPosition",payload:{category_id:R.categoryId,courseId:R.id,task_ids:t,container_type:"group_homework"}});case 2:Ge();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),We=(0,d.useMemo)((function(){var e=[];return De.length>0&&(e=De.map((function(e){return{user_name:e.user_name,task_name:e.task_name,task_id:e.task_id,category:e.category,status:e.status}}))),e}),[De]);return(0,A.jsx)(Ae.Provider,{value:{params:R,batchStatus:ye,selectArrs:ae,setSelectArrs:se,allSelect:de,dataSource:Me.homeworks||[],detailLeftMenus:Ie,main_category_id:Me.main_category_id||"",selectArrsAll:Ce,setAllSelect:pe,useBatchStatus:be,dispatch:Z,getData:Ge,setSelectArrsAll:_e},children:(0,A.jsxs)("section",{children:[(0,A.jsxs)("aside",{className:oe,children:[(0,A.jsx)(ie.Z,{isLoading:T[(0,_.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"],tabDataSource:(0,_.GJ)()?[{name:"全部",id:0,total:Me.all_count||0},{name:"未发布",id:1,total:Me.unpublished_count||0},{name:"未开始",id:4,total:Me.not_start_count||0},{name:"进行中",id:2,total:Me.in_progress_count||0},{name:"已截止",id:3,total:Me.overed_count||0}]:[{name:"全部",id:0},{name:"提交中",id:1},{name:"补交中",id:2},{name:"匿评中",id:3},{name:"申诉中",id:4},{name:"已截止",id:5}],isAdmin:(0,_.GJ)(),dispatch:Z,type:null==Me?void 0:Me.main_category_name,exportType:"group",TooltipTitle:R.categoryId?"目录重命名":"新建子目录",categoryId:R.categoryId,dropdownMenu:[{name:"新建分组作业",id:"1"},{name:"选用资源",id:"2"},{name:"导入外部成绩",id:"3"}],isShowRightControl:"未分配目录"!==(0,S.Oo)(null==Ie?void 0:Ie.course_modules,R.categoryId),onsetClick:function(){He(),V(!0)},onTabMenuClick:function(e){void 0!==e.id&&((0,_.GJ)()?R.status=e.id:R.order=e.id),be(!1),R.page=1,p.history.replace("".concat(Ee.pathname,"?tabs=").concat(e.id)),Ge(R)},defaultSelectedKeys:[O.get("tabs")?O.get("tabs"):"0"],onTooltipTitleClick:function(){Z({type:"classroomList/setActionTabs",payload:{key:R.categoryId?"目录重命名":"添加目录",params:R,selectArrs:{category_name:null==Me?void 0:Me.category_name,category_id:(null==Me?void 0:Me.category_id)||(null==Me?void 0:Me.main_category_id)},cb:function(){Ge()}}})},onDropdownMenuClick:function(e){var t;!(0,_.Rm)()||null!==(t=c.AssistantObject.group)&&void 0!==t&&t.can_create?"1"===e?p.history.push("/classrooms/".concat(R.coursesId,"/group_homework/").concat(R.categoryId,"/add")):"2"===e?Re():"3"===e&&Z({type:"classroomList/setActionTabs",payload:{key:"导入外部成绩",type:"group"}}):m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),(0,A.jsx)(fe.Z,{dataSource:Me.homeworks||[],isAdmin:(0,_.GJ)(),batchStatus:ye,SortMenuName:Pe,setSortMenuName:Be,onSearch:function(e){R.search=e.trim(),R.page=1,Ge()},onSort:function(e){var t;R.sort_by=e.type,R.sort_direction=e.direction,R.page=1,S.cX.setItem("".concat(null==s||null===(t=s.userInfo)||void 0===t?void 0:t.login).concat((0,_.GJ)()?"Teacher":"Student"),e,"GroupHomework"),Ge(R)},onBatch:function(e){return be(e)}})]}),(0,A.jsxs)(h.Z,{loading:T["classroomList/getClassroomCommonHomeworksList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30",children:[0===(null==Me?void 0:Me.all_count)&&(0,_.GJ)()?!T[(0,_.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,A.jsx)(ne,{params:R,dispatch:Z,onSelect:Re}):(null==Me?void 0:Me.homeworks)&&0===Me.homeworks.length&&!T[(0,_.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,A.jsx)(J.Z,{}),(0,A.jsx)("aside",{className:"minH500 skt-loading relative pb40 mb30",children:!T[(0,_.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)("aside",{className:"animated fadeIn",children:[null==Me||null===(o=Me.homeworks)||void 0===o?void 0:o.map((function(e,t){return(0,A.jsx)(ue,{dataSource:e,params:R,manageAllGroup:null==Me?void 0:Me.manage_all_group},t)})),(0,A.jsx)("aside",{className:"tc mb50 mt30",children:(null==Me?void 0:Me.query_total_count)>10&&(0,A.jsx)(f.Z,{showSizeChanger:!0,onChange:function(e,t){R.page=e,R.limit=t,Ge()},defaultCurrent:1,current:R.page||1,pageSize:R.limit||20,total:Me.query_total_count})})]}),ae.length>0&&(0,_.GJ)()&&(0,A.jsx)(g.Z,{offsetBottom:0,children:(0,A.jsx)(he,{buttonDataSource:ze,onClick:function(e){var t,n;if(0===ae.length)return m.ZP.error("请选择你要操作的任务"),!1;var o=e.label||"",i={key:o,selectArrs:ae,selectArrsAll:Ce,type:["publish","deadline"].includes(e.key)?1:"",params:R};switch(e.key){case"publish":if((0,_.Rm)()&&(null==c||null===(t=c.AssistantObject)||void 0===t||null===(t=t.group)||void 0===t||!t.can_publish))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");o="立即发布";break;case"deadline":if((0,_.Rm)()&&(null==c||null===(n=c.AssistantObject)||void 0===n||null===(n=n.group)||void 0===n||!n.can_stop))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");o="立即截止";break;case"batchpay":o="批量补交";break;case"delete":o="删除";break;case"collection":o="收藏"}Z({type:"classroomList/setActionTabs",payload:l()(l()({},i),{},{key:o})})}})})]})})]}),"批量补交"===(null==c||null===(r=c.actionTabs)||void 0===r?void 0:r.key)&&(0,A.jsx)(Ne,{getData:Ge}),(0,A.jsx)(P,{onCallback:function(){return be(!1)}}),(0,A.jsx)(ge.Z,{onOk:function(){Ge()}}),(0,A.jsx)(ve.Z,{onOk:function(){}}),(0,A.jsx)(B.Z,{onCallback:function(){return be(!1)},courseEndTime:null==Me?void 0:Me.course_end_time}),(0,A.jsx)(E.Z,{courseEndTime:null==Me?void 0:Me.course_end_time,courseId:N.coursesId,visible:"立即截止"===c.actionTabs.key,isBatch:2!==c.actionTabs.type,homeworkIds:c.actionTabs.selectArrs,successCallback:function(){be(!1),Ge()}}),(0,A.jsx)(M,{}),(0,A.jsx)(X,{}),(0,A.jsx)(G,{onCallback:function(){return be(!1)}}),(0,A.jsx)($.Z,{}),(0,A.jsx)(ee.Z,{}),(0,A.jsx)(xe.Z,{visible:"调整排序"===c.actionTabs.key,callback:Fe,data:We,onCancel:function(){Z({type:"classroomList/setActionTabs",payload:{key:""}})}}),(0,A.jsx)(v.Z,{open:Y,title:"默认评分设置",centered:!0,onCancel:function(){V(!1)},onOk:a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=JSON.parse(JSON.stringify(q)),Object.keys(t).map((function(e){e.indexOf("proportion")>-1&&(t[e]=t[e]/100)})),e.next=4,(0,L.ZP)("/api/courses/".concat(R.coursesId,"/homework_commons/set_default_score_setting.json"),{method:"post",body:{homework_type:3,score_settings:t}});case 4:0===e.sent.status&&(m.ZP.success("设置成功"),V(!1));case 6:case"end":return e.stop()}}),e)}))),width:800,children:(0,A.jsxs)("div",{children:[(0,A.jsx)(x.Z,{children:(0,A.jsx)(w.Z,{span:24,children:(0,A.jsx)(x.Z,{align:"middle",children:(0,A.jsx)(w.Z,{span:24,children:(0,A.jsx)("div",{className:"mt15",children:"该默认规则将被应用于你后续新建的分组作业,且不会影响你已创建的作业以及其他老师新建作业的评分规则。"})})})})}),(0,A.jsxs)(x.Z,{align:"middle",className:"mt25",children:[(0,A.jsx)(w.Z,{children:(0,A.jsx)("strong",{children:"组长评分"})}),(0,A.jsxs)(x.Z,{className:"ml10",children:[(0,A.jsx)(w.Z,{children:(0,A.jsx)(y.Z,{checked:q.is_group_grade,onChange:function(e){q.is_group_grade=e,Q(l()({},q))}})}),(0,A.jsx)(w.Z,{className:"c-grey-c ml10",children:"(选中,则组长首次提交作业时需要对组员进行评分)"})]})]}),(0,A.jsxs)(x.Z,{className:"mt25",children:[(0,A.jsx)(w.Z,{children:(0,A.jsx)("strong",{children:"助教评分"})}),(0,A.jsx)(w.Z,{span:24,className:"pl30 mt10"})]}),(0,A.jsx)(x.Z,{children:(0,A.jsxs)(b.ZP.Group,{value:null==q?void 0:q.ta_mode,onChange:function(e){q.ta_mode=e.target.value,Q(l()({},q))},children:[(0,A.jsxs)(b.ZP,{value:1,style:{marginTop:15},children:[(0,A.jsx)("strong",{children:"普通模式"}),(0,A.jsx)("span",{className:"c-grey-c",children:"(选中,则取各助教最终评分的平均分)"})]}),(0,A.jsx)("br",{}),(0,A.jsxs)(b.ZP,{value:0,style:{marginTop:15},children:[(0,A.jsx)("strong",{children:"复审模式"}),(0,A.jsx)("span",{className:"c-grey-c",children:"(选中,则只取最新的助教评分)"})]})]})}),(0,A.jsxs)(x.Z,{className:"mt25",children:[(0,A.jsx)(w.Z,{children:(0,A.jsx)("strong",{children:"最终成绩组成"})}),(0,A.jsx)(w.Z,{span:24,className:"pl30 mt10"})]}),(0,A.jsxs)(x.Z,{children:[(0,A.jsxs)(b.ZP.Group,{value:q.final_mode,onChange:function(e){q.final_mode=e.target.value,Q(l()({},q))},children:[(0,A.jsxs)(b.ZP,{value:!1,style:{marginTop:15},children:[(0,A.jsx)("strong",{children:"多项评分配比"}),(0,A.jsxs)("span",{className:"c-grey-c",children:["(选中,则按照比例计算最终成绩)",(0,A.jsx)(j.Z,{overlayClassName:"edu-popover",placement:"bottomLeft",content:(0,A.jsxs)("span",{className:"font14",children:["计算说明:",(0,A.jsx)("br",{}),"教师评分 * 其百分比 + 助教评分 * 其百分比 + 组长评分 * 其百分比 + 学生匿评平均分 * 其百分比 - ( ",(0,A.jsx)("br",{}),"迟交扣分 + 缺评扣分 * 缺评数 + 违规匿评扣分 * 违规匿评数 )",(0,A.jsx)("br",{}),(0,A.jsx)("br",{}),"注意",(0,A.jsx)("br",{}),"非零百分比的评分选项,若评分记录为空,则其百分比将自动平摊到其它非零",(0,A.jsx)("br",{}),"评分选项上。",(0,A.jsx)("br",{}),"例:教师评分40% + 助教评分35% + 学生匿评25%,学生A没有教师评分记",(0,A.jsx)("br",{}),"录,则其最终成绩按照助教评分55% + 学生匿评45%进行计算"]}),trigger:"click",children:(0,A.jsx)("span",{className:"mt10 ml10 current font14",children:(0,A.jsx)(C.Z,{})})})]})]}),(0,A.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,A.jsx)(w.Z,{children:"教师评分:"}),(0,A.jsxs)(w.Z,{className:"ml5",children:[(0,A.jsx)(k.Z,{min:0,max:100,value:q.te_proportion,onChange:function(e){q.te_proportion=e,Q(Object.assign({},q))}}),(0,A.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,A.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,A.jsx)(w.Z,{children:"助教评分:"}),(0,A.jsxs)(w.Z,{className:"ml5",children:[(0,A.jsx)(k.Z,{min:0,max:100,value:q.ta_proportion,onChange:function(e){q.ta_proportion=e,Q(Object.assign({},q))}}),(0,A.jsx)("span",{className:"ml10",children:"%"})]})]}),q.is_group_grade&&(0,A.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,A.jsx)(w.Z,{children:"组长评分:"}),(0,A.jsxs)(w.Z,{className:"ml5",children:[(0,A.jsx)(k.Z,{min:0,max:100,value:q.gr_proportion,onChange:function(e){q.gr_proportion=e,Q(Object.assign({},q))}}),(0,A.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,A.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,A.jsx)(w.Z,{children:"学生匿评:"}),(0,A.jsxs)(w.Z,{className:"ml5",children:[(0,A.jsx)(k.Z,{min:0,max:100,value:q.st_proportion,onChange:function(e){q.st_proportion=e,Q(Object.assign({},q))}}),(0,A.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,A.jsx)("br",{}),(0,A.jsxs)(b.ZP,{value:!0,style:{marginTop:15},children:[(0,A.jsx)("strong",{children:"单项评分优先"}),(0,A.jsxs)("span",{className:"c-grey-c",children:["(选中,则按照优先顺序计算最终成绩)",(0,A.jsx)(j.Z,{overlayClassName:"edu-popover",placement:"bottomLeft",content:(0,A.jsxs)("span",{className:"font14",children:["计算说明:",(0,A.jsx)("br",{}),"优先顺序排前的非零评分 * 100% - ",(0,A.jsx)("br",{}),"( 迟交扣分 + 缺评扣分 * 缺评数 + 违规匿评扣分 * 违规匿评数 )",(0,A.jsx)("br",{}),"例:有教师评分则教师评分100%,否则教辅评分100%,依次类推"]}),trigger:"click",children:(0,A.jsx)("span",{className:"mt10 ml10 current font14",children:(0,A.jsx)(C.Z,{})})})]})]}),(0,A.jsx)(x.Z,{children:(0,A.jsx)(w.Z,{span:24,className:"ml20",children:(0,A.jsx)("div",{style:{color:"#ccc"},children:"(教师评分 → 助教评分 → 组长评分 → 学生匿评评分)"})})})]}),(0,A.jsx)("br",{})]})]})})]})})}))},52352:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(59028),f=n(78241),g=n(43418),v=n(8591),x=n(61998),w=n(5296),y=n(92723),b=n(57102),j=n(18030),k=n(61186),C=n.n(k),_=n(21082),S=n(37712),T=h.Z.Dragger;t.Z=(0,w.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,o=e.dispatch,r=e.onOk,s=((0,w.useParams)(),f.Z.useForm()),c=p()(s,1)[0],d=(0,m.useState)(),h=p()(d,2),k=h[0],Z=h[1],L=(0,m.useState)(!1),N=p()(L,2),A=N[0],P=N[1],B={height:100,onRemove:function(){Z("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:(t=u()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,m.useEffect)((function(){c.setFieldsValue(a()(a()({},"publish_time",C()(C()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",C()(C()(new Date((0,_.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),[]),(0,S.jsx)(g.Z,{centered:!0,title:"补充成绩",open:"补充成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:A},onOk:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){c.resetFields(),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,S.jsxs)(f.Z,{form:c,onFinish:function(){var e=u()(l()().mark((function e(t){var i,a,s,u,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=k&&k.size){e.next=3;break}return v.ZP.info("请上传文件"),e.abrupt("return");case 3:return P(!0),(i=new FormData).append("type",n.actionTabs.type),i.append("file",k),a=window.location.href.indexOf("exercise")>-1?"/api/exercises/".concat(n.actionTabs.id,"/supplement_score.json"):"/api/homework_commons/".concat(n.actionTabs.id,"/supplement_score.json"),e.next=10,(0,j.ZP)(a,{method:"post",body:i},!0);case 10:s=e.sent,P(!1),0===(null==s?void 0:s.status)&&(r(),c.resetFields(),o({type:"classroomList/setActionTabs",payload:{}}),(null==s||null===(u=s.data)||void 0===u||null===(u=u.fail)||void 0===u?void 0:u.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,S.jsx)(x.Z,{pagination:!1,dataSource:null==s||null===(d=s.data)||void 0===d?void 0:d.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,_.FH)("",y.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,S.jsx)(f.Z.Item,{label:"作业名称",labelCol:{span:3},name:"name",children:n.actionTabs.name}),(0,S.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,S.jsxs)("div",{children:[(0,S.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,S.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,S.jsxs)("div",{children:[(0,S.jsx)("a",{download:"模版.xlsx",className:b.Z.downloadbutton,href:y.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,S.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,S.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,S.jsxs)(T,i()(i()({},B),{},{children:[(0,S.jsx)("a",{className:b.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,S.jsx)("br",{}),(0,S.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},20208:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(59028),f=n(78241),g=n(43418),v=n(8591),x=n(61998),w=n(92832),y=n(95237),b=n(43604),j=n(94001),k=n(57930),C=n(5296),_=n(16318),S=n(92723),T=n(57102),Z=n(18030),L=n(63363),N=n(61186),A=n.n(N),P=n(21082),B=n(37712),E=h.Z.Dragger;t.Z=(0,C.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,o=e.dispatch,r=e.onOk,s=(0,C.useParams)(),c=f.Z.useForm(),d=p()(c,1)[0],h=(0,m.useState)(),N=p()(h,2),M=N[0],I=N[1],O=(0,m.useState)(!1),D=p()(O,2),G=D[0],H=D[1],R={height:100,onRemove:function(){I("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:(t=u()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,m.useEffect)((function(){d.setFieldsValue(a()(a()({},"publish_time",A()(A()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",A()(A()(new Date((0,P.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),["导入外部成绩"===n.actionTabs.key]),(0,B.jsx)(g.Z,{centered:!0,title:"导入外部成绩",open:"导入外部成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:G},onOk:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:d.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){d.resetFields(),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,B.jsxs)(f.Z,{form:d,colon:!1,onFinish:function(){var e=u()(l()().mark((function e(t){var i,a,c,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=M&&M.size){e.next=3;break}return v.ZP.info("请上传文件"),e.abrupt("return");case 3:return H(!0),(i=new FormData).append("name",t.name),i.append("type",n.actionTabs.type),i.append("category_id",(null==s?void 0:s.categoryId)||null),"exercise"===n.actionTabs.type?(i.append("time",t.time||""),i.append("total_score",t.total_score)):i.append("description",t.description||""),i.append("publish_time",A()(t.publish_time).format("YYYY-MM-DD HH:mm")),i.append("end_time",A()(t.end_time).format("YYYY-MM-DD HH:mm")),i.append("file",M),e.next=14,(0,Z.ZP)("/api/courses/".concat(s.coursesId,"/export_external_score_homework.json"),{method:"post",body:i},!0);case 14:a=e.sent,H(!1),0===(null==a?void 0:a.status)&&(d.resetFields(),o({type:"classroomList/setActionTabs",payload:{}}),r(),(null==a||null===(c=a.data)||void 0===c||null===(c=c.fail)||void 0===c?void 0:c.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,B.jsx)(x.Z,{pagination:!1,dataSource:null==a||null===(u=a.data)||void 0===u?void 0:u.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,P.FH)("",S.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,B.jsx)(f.Z.Item,{label:"exercise"!==n.actionTabs.type?"作业":"试卷名称",labelCol:{span:3},name:"name",rules:[{required:!0,message:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称")}],children:(0,B.jsx)(w.Z,{showCount:!0,placeholder:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称"),maxLength:60})}),"exercise"!==n.actionTabs.type&&(0,B.jsx)(f.Z.Item,{label:"作业描述",labelCol:{span:3},name:"description",children:(0,B.jsx)(_.Z,{watch:!0})}),"exercise"===n.actionTabs.type&&(0,B.jsxs)(y.Z,{style:{marginLeft:6},children:[(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"试卷总分",name:"total_score",rules:[{required:!0,message:"请填写试卷总分"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"试卷总分必须为正数"}],children:(0,B.jsx)(w.Z,{placeholder:"请输入试卷总分",style:{width:256},addonAfter:"分"})})}),(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"答题时长",labelCol:{span:6},name:"time",children:(0,B.jsx)(j.Z,{style:{width:"100%"},addonAfter:"分钟",placeholder:"请输入答题时长"})})})]}),(0,B.jsxs)(y.Z,{style:{marginLeft:6,marginBottom:12},children:[(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"开始时间",name:"publish_time",rules:[{required:!0,message:"请选择开始时间"}],children:(0,B.jsx)(k.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:256},disabledDate:function(e){return(0,L.Q8)(e)},disabledTime:function(e){return(0,L.d0)(e)},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})}),(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"结束时间",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"请选择结束时间"}],children:(0,B.jsx)(k.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:function(e){return(0,L.Q8)(e,"",d.getFieldValue("publish_time"))},disabledTime:function(e){return(0,L.d0)(e,d.getFieldValue("publish_time"))},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})})]}),(0,B.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,B.jsxs)("div",{children:[(0,B.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,B.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,B.jsxs)("div",{children:[(0,B.jsx)("a",{download:"模版.xlsx",className:T.Z.downloadbutton,href:S.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,B.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,B.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,B.jsxs)(E,i()(i()({},R),{},{children:[(0,B.jsx)("a",{className:T.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,B.jsx)("br",{}),(0,B.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},95335:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),u=n(92832),d=n(24905),p=n(95237),m="leftdiv___aBzsX",h="listClass___bxIEW",f="spantitle___v_Vc4",g="rightdiv___xWu4M",v=n(54313),x=n(37712),w=function(e){var t=e.data,n=(e.value,e.handleChangePage,e.setSelectedRowKeys),o=e.selectedRowKeys,r=(e.onChange,(0,c.useState)([])),s=l()(r,2),w=s[0],y=s[1],b=(0,c.useState)([]),j=l()(b,2),k=j[0],C=j[1],_=(0,c.useState)([]),S=l()(_,2),T=S[0],Z=S[1],L=(0,c.useState)(1),N=l()(L,2),A=(N[0],N[1],(0,c.useState)()),P=l()(A,2);P[0],P[1];return(0,c.useEffect)((function(){y(t),C([]),Z([])}),[t]),(0,c.useEffect)((function(){n&&(C(o),Z(o))}),[o]),(0,x.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,x.jsxs)("div",{className:m,children:[(0,x.jsx)(u.Z.Search,{size:"middle",onChange:function(){var e=a()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y(t.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(n.target.value)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),placeholder:"可输入班级名称查询"}),0===w.length&&(0,x.jsx)(v.Z,{styles:{margin:"70px auto"},customText:"暂无分班"}),(0,x.jsx)("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"},children:(0,x.jsx)(d.Z.Group,{value:k.map((function(e){return"".concat(e.id)})),onChange:function(e){n(w.filter((function(t){return e.includes("".concat(t.id))})))},style:{marginTop:"10px",flexDirection:"column"},children:w.map((function(e,t){return(0,x.jsx)(p.Z,{style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200},children:(0,x.jsx)(d.Z,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:e.is_published,value:"".concat(e.id),children:(0,x.jsxs)("div",{className:h,children:[(0,x.jsx)("span",{className:f,style:{width:e.is_published?"108px":"170px"},children:e.name}),e.is_published&&(0,x.jsx)("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"},children:"已发布"})]})})},e.id)}))})})]}),(0,x.jsxs)("div",{className:g,children:[(0,x.jsx)(u.Z.Search,{onChange:function(e){Z(k.filter((function(t){return t.name.includes(e.target.value)})))},size:"middle",placeholder:"可输入班级名称查询"}),0===T.length&&(0,x.jsx)(v.Z,{styles:{margin:"70px auto"},customText:"暂未选择分班"}),T.length>0&&(0,x.jsx)("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"},children:(0,x.jsx)("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0},children:T.map((function(e,t){return(0,x.jsxs)(p.Z,{justify:"space-between",style:{marginTop:"10px"},children:[(0,x.jsx)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"},children:e.name}),(0,x.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){n(k.filter((function(t){return"".concat(t.id)!="".concat(e.id)})))}})]},e.id)}))})})]})]})}},72764:function(e,t,n){"use strict";n.d(t,{Ei:function(){return x},rU:function(){return w},ZP:function(){return y}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),s=n(59301),l={wrap:"wrap___W3YuU",title:"title___OzKge",exhibition:"exhibition___ugphm"},c=n(78241),u=n(95237),d=n(43604),p=n(24905),m=n(94001),h=n(6848),f=n(92310),g=n.n(f),v=n(37712),x=function(e){var t=e.value,n=e.className,o=e.style,i=(0,s.useState)("0"),r=a()(i,2),c=r[0],u=r[1];(0,s.useEffect)((function(){if(t){var e=t.submit_limit,n=t.must_file;if(e&&n)return void u("1");if(e&&!n)return void u("2");if(!e&&n)return void u("3")}}),[t]);var d={1:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符,并且必须上传相关附件。"]}),2:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符"]}),3:(0,v.jsx)("span",{children:"必须上传相关附件。"})};return"0"===c?(0,v.jsx)(v.Fragment,{}):(0,v.jsxs)("section",{className:g()(l.exhibition,n),style:o,children:[(0,v.jsx)("span",{className:"c-grey-666 mr10",children:"提交作业要求:"}),null==d?void 0:d[c]]})},w=function(e){var t=e.className,n=e.style,o=e.form,i=c.Z.useWatch("submit_limit",o),r=c.Z.useWatch("can_submit",o);return(0,v.jsx)("section",{className:g()(l.newWrap,t),style:n,children:(0,v.jsxs)("div",{style:{padding:"20px 0",borderBottom:"1px solid #EDEDED"},children:[(0,v.jsx)("h1",{children:"提交设置"}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"can_submit",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"限制学生提交作品"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_num",rules:r&&[{required:!0,message:"请填写作品次数"}],children:(0,v.jsx)(m.Z,{precision:0,min:1,disabled:!r})})}),(0,v.jsx)(d.Z,{children:"次"}),(0,v.jsxs)(d.Z,{children:[" ",(0,v.jsx)(h.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999"})})]})]}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生填写内容至少"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit_num",rules:i&&[{required:!0,message:"字数不能为空"}],children:(0,v.jsx)(m.Z,{precision:0,min:1,disabled:!i})})}),(0,v.jsx)(d.Z,{children:"字"})]}),(0,v.jsx)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"must_file",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生提交作业必须上传附件"})})})})})]})})},y=function(e){var t=e.value,n=e.onChange,o=e.className,r=e.style,c=e.disabled,d=void 0!==c&&c,f=(0,s.useState)({}),x=a()(f,2),w=x[0],y=x[1];(0,s.useEffect)((function(){if(console.log(t,"value"),t){var e={submit_limit:null==t?void 0:t.submit_limit,submit_limit_num:null==t?void 0:t.submit_limit_num,must_file:null==t?void 0:t.must_file,can_submit:null==t?void 0:t.can_submit,submit_num:null==t?void 0:t.submit_num};y(i()({},e))}}),[t]);var b=function(e){var t=i()(i()({},w),e);n(t)};return(0,v.jsxs)("section",{className:g()(l.wrap,o),style:r,children:[(0,v.jsx)("div",{className:l.title,children:"提交设置"}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==w?void 0:w.can_submit,onChange:function(e){return b({can_submit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"限制学生提交作业"}),(0,v.jsx)(m.Z,{precision:0,min:1,disabled:d||!(null!=w&&w.can_submit),value:null==w?void 0:w.submit_num,onChange:function(e){return b({submit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"次"}),(0,v.jsx)(h.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999 ml5"})})]}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==w?void 0:w.submit_limit,onChange:function(e){return b({submit_limit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"学生填写内容至少"}),(0,v.jsx)(m.Z,{precision:0,min:1,disabled:d||!(null!=w&&w.submit_limit),value:null==w?void 0:w.submit_limit_num,onChange:function(e){return b({submit_limit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"字"})]}),(0,v.jsxs)(u.Z,{align:"middle",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==w?void 0:w.must_file,onChange:function(e){return b({must_file:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10",children:"学生提交作业必须上传附件"})]})]})}},75774:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301),p=n(43418),m=n(96865),h=n(95237),f=n(6848),g="wrap___KDoq2",v="tip___WEJuX",x="listWrap___IJDX4",w="li___r5con",y="nameWrap___PUyEz",b="name___xuUMY",j="tag___l5CW2",k=n(78018),C=n(5296),_=n(37712),S=function(e){var t,n,o=e.type,r=void 0===o?1:o,s=e.data,c=e.visible,S=e.callback,T=e.onCancel,Z=(0,d.useState)([]),L=u()(Z,2),N=L[0],A=L[1],P=(0,C.useSelector)((function(e){return e.loading}));(0,d.useEffect)((function(){A(s)}),[JSON.stringify(s)]);var B=function(e){var t={};if(1===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"未开始":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"提交中":{background:"rgba(0,177,135,0.2)",color:"#00B187"},"已截止":{background:"rgba(229,51,51,0.2)",color:"#E53333"}}[e]}if(2===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"预发布":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"已发布":{background:"rgba(0,177,135,0.2)",color:"#00B187"}}[e]}return(0,_.jsx)("div",{className:j,style:l()({},t),children:e})},E=function(){var e=a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:S(N.map((function(e){return e.task_id})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,_.jsx)(p.Z,{centered:!0,destroyOnClose:!0,open:c,onCancel:T,onOk:E,confirmLoading:null==P||null===(t=P.effects)||void 0===t?void 0:t["classroomList/updateTaskPosition"],okText:"保存",title:"调整排序",width:850,children:(0,_.jsxs)("div",{className:g,children:[(0,_.jsxs)("div",{className:v,children:[(0,_.jsx)("i",{className:"iconfont icon-tishi9 font14 mr10"}),(0,_.jsx)("span",{children:"提示:请在列表中长按鼠标左键,进行拖放排序。完成排序后请点击“保存”"})]}),(0,_.jsx)(m.Z,{loading:null==P||null===(n=P.effects)||void 0===n?void 0:n["classroomList/getAllTaskList"],active:!0,className:"mt20",paragraph:{rows:5},children:(0,_.jsx)(k.Z5,{onDragEnd:function(e){return function(e,t){if(e.destination){var n=function(e,t,n){var o=Array.from(e),i=o.splice(t,1),r=u()(i,1)[0];return o.splice(n,0,r),o}(t,e.source.index,e.destination.index);A(n)}}(e,N)},children:(0,_.jsx)(k.bK,{droppableId:"droppable",children:function(e,t){return(0,_.jsxs)("div",l()(l()({ref:e.innerRef},e.droppableProps),{},{className:x,children:[N.map((function(e,t){return(0,_.jsx)(k._l,{draggableId:e.task_id.toString(),index:t,children:function(t,n){return(0,_.jsxs)("div",l()(l()(l()({ref:t.innerRef},t.draggableProps),t.dragHandleProps),{},{className:w,children:[(0,_.jsxs)(h.Z,{align:"middle",children:[(0,_.jsx)("div",{className:y,children:(0,_.jsx)(f.Z,{title:null==e?void 0:e.task_name,children:(0,_.jsx)("div",{className:b,children:null==e?void 0:e.task_name})})}),B(null==e?void 0:e.status)]}),(0,_.jsx)(h.Z,{align:"middle",className:"font12 mt10",children:(0,_.jsxs)("span",{className:"mr30 c-grey-666",children:["管理员",(0,_.jsx)("span",{className:"ml5 c-black",children:(null==e?void 0:e.user_name)||"--"})]})})]}))}},e.task_id)})),e.placeholder]}))}})})})]})})}},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return l},JZ:function(){return u},bN:function(){return m},jP:function(){return p},rO:function(){return c}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(18030);function l(e){return(0,s.U2)("libraries/".concat(e,".json"))}function c(){return(0,s.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,s.v_)("libraries.json",e)}function m(e,t){return(0,s.gz)("libraries/".concat(e,".json"),t)}},1058:function(e,t,n){"use strict";n.d(t,{U:function(){return p}});var o=n(7557),i=n.n(o),r=n(82242),a=n.n(r),s=n(41498),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301);function p(e,t){var n=(0,d.useState)(t),o=u()(n,2),r=o[0],s=o[1],c=(0,d.useState)(!1),p=u()(c,2),m=p[0],h=p[1],f=(0,d.useState)(),g=u()(f,2),v=g[0],x=g[1],w=function(){var n=l()(i()().mark((function n(o){var l,c,u,d=arguments;return i()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return l=d.length>1&&void 0!==d[1]&&d[1],c=l?t:a()(a()({},r),o),h(!0),s(c),n.next=6,e(c);case 6:return u=n.sent,h(!1),x(u),n.abrupt("return",u);case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return[r,m,w,v]}},57102:function(e,t){"use strict";t.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},77578:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});const o=e=>e?"function"==typeof e?e():e:null},27666:function(e,t,n){"use strict";var o=n(26390),i=n(71783);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},r=function(){if(null==t){for(var e=arguments.length,o=new Array(e),r=0;r{i.Z.cancel(t),t=null},r}},81228:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var o=n(79545),i=n(68550),r=n(17928),a=n(99487),s=n(59301),l=n(92310),c=n.n(l),u=n(28647),d=n(55405),p=n(27666),m=n(36355),h=n(83116),f=n(37613);const g=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var v=(0,h.Z)("Affix",(e=>{const t=(0,f.TS)(e,{zIndexPopup:e.zIndexBase+10});return[g(t)]}));function x(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function w(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function y(e,t,n){if(void 0!==n&&t.bottom{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:o}=e.state;o!==n&&(b.forEach((t=>{null==o||o.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),o=null==n?void 0:n();b.forEach((n=>{null==o||o.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:o}=e.props,i=e.getTargetFunc();if(t!==k.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!i)return;const r=e.getOffsetTop(),a=e.getOffsetBottom(),s=i();if(s){const t={status:k.None},i=x(e.placeholderNodeRef.current);if(0===i.top&&0===i.left&&0===i.width&&0===i.height)return;const l=x(s),c=w(i,l,r),u=y(i,l,a);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}):void 0!==u&&(t.affixStyle={position:"fixed",bottom:u,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}),t.lastAffix=!!t.affixStyle,o&&n!==t.lastAffix&&o(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:k.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,p.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,p.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const o=e.getOffsetTop(),i=e.getOffsetBottom(),r=t();if(r&&e.placeholderNodeRef.current){const t=x(r),a=x(e.placeholderNodeRef.current),s=w(a,t,o),l=y(a,t,i);if(void 0!==s&&n.top===s||void 0!==l&&n.bottom===l)return}}e.prepareMeasure()})),e}return(0,i.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:j}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:o,children:i}=this.props,r=c()(e&&o,{[n]:!!e});let a=(0,d.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return s.createElement(u.Z,{onResize:this.updatePosition},s.createElement("div",Object.assign({},a,{ref:this.placeholderNodeRef}),e&&s.createElement("div",{style:t,"aria-hidden":"true"}),s.createElement("div",{className:r,ref:this.fixedNodeRef,style:e},s.createElement(u.Z,{onResize:this.updatePosition},i))))}}]),n}(s.Component);C.contextType=m.E_;var _=(0,s.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:o}=e,{getPrefixCls:i}=(0,s.useContext)(m.E_),r=i("affix",n),[a,l]=v(r),u=Object.assign(Object.assign({},e),{affixPrefixCls:r,rootClassName:c()(o,l)});return a(s.createElement(C,Object.assign({},u,{ref:t})))}))},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var o=n(92310),i=n.n(o),r=n(59301),a=n(36355),s=n(17313),l=n(83116),c=n(37613);const u=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:i,textPaddingInline:r,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},(0,s.Wf)(e)),{borderBlockStart:`${i}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:r},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,l.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[u(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n,divider:o}=r.useContext(a.E_),{prefixCls:s,type:l="horizontal",orientation:c="center",orientationMargin:u,className:m,rootClassName:h,children:f,dashed:g,plain:v,style:x}=e,w=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),y=t("divider",s),[b,j]=d(y),k=c.length>0?`-${c}`:c,C=!!f,_="left"===c&&null!=u,S="right"===c&&null!=u,T=i()(y,null==o?void 0:o.className,j,`${y}-${l}`,{[`${y}-with-text`]:C,[`${y}-with-text${k}`]:C,[`${y}-dashed`]:!!g,[`${y}-plain`]:!!v,[`${y}-rtl`]:"rtl"===n,[`${y}-no-default-orientation-margin-left`]:_,[`${y}-no-default-orientation-margin-right`]:S},m,h),Z=r.useMemo((()=>"number"==typeof u?u:/^\d+$/.test(u)?Number(u):u),[u]),L=Object.assign(Object.assign({},_&&{marginLeft:Z}),S&&{marginRight:Z});return b(r.createElement("div",Object.assign({className:T,style:Object.assign(Object.assign({},null==o?void 0:o.style),x)},w,{role:"separator"}),f&&"vertical"!==l&&r.createElement("span",{className:`${y}-inner-text`,style:L},f)))}},39722:function(e,t,n){"use strict";n.d(t,{t5:function(){return d}});var o=n(92310),i=n.n(o),r=n(55477),a=n(59301),s=n(36355),l=n(77578),c=n(17356),u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i{const{hashId:t,prefixCls:n,className:o,style:s,placement:c="top",title:u,content:d,children:p}=e;return a.createElement("div",{className:i()(t,n,`${n}-pure`,`${n}-placement-${c}`,o),style:s},a.createElement("div",{className:`${n}-arrow`}),a.createElement(r.G,Object.assign({},e,{className:t,prefixCls:n}),p||((e,t,n)=>{if(t||n)return a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${e}-title`},(0,l.Z)(t)),a.createElement("div",{className:`${e}-inner-content`},(0,l.Z)(n)))})(n,u,d)))};t.ZP=e=>{const{prefixCls:t}=e,n=u(e,["prefixCls"]),{getPrefixCls:o}=a.useContext(s.E_),i=o("popover",t),[r,l]=(0,c.Z)(i);return r(a.createElement(d,Object.assign({},n,{prefixCls:i,hashId:l})))}},60324:function(e,t,n){"use strict";var o=n(92310),i=n.n(o),r=n(59301),a=n(77578),s=n(62892),l=n(36355),c=n(6848),u=n(39722),d=n(17356),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i{let{title:t,content:n,prefixCls:o}=e;return r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${o}-title`},(0,a.Z)(t)),r.createElement("div",{className:`${o}-inner-content`},(0,a.Z)(n)))},h=r.forwardRef(((e,t)=>{const{prefixCls:n,title:o,content:a,overlayClassName:u,placement:h="top",trigger:f="hover",mouseEnterDelay:g=.1,mouseLeaveDelay:v=.1,overlayStyle:x={}}=e,w=p(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:y}=r.useContext(l.E_),b=y("popover",n),[j,k]=(0,d.Z)(b),C=y(),_=i()(u,k);return j(r.createElement(c.Z,Object.assign({placement:h,trigger:f,mouseEnterDelay:g,mouseLeaveDelay:v,overlayStyle:x},w,{prefixCls:b,overlayClassName:_,ref:t,overlay:o||a?r.createElement(m,{prefixCls:b,title:o,content:a}):null,transitionName:(0,s.m)(C,"zoom-big",w.transitionName),"data-popover-inject":!0})))}));h._InternalPanelDoNotUseOrYouWillBeFired=u.ZP,t.Z=h},17356:function(e,t,n){"use strict";var o=n(17313),i=n(29878),r=n(19447),a=n(33166),s=n(83116),l=n(37613);const c=e=>{const{componentCls:t,popoverColor:n,minWidth:i,fontWeightStrong:a,popoverPadding:s,boxShadowSecondary:l,colorTextHeading:c,borderRadiusLG:u,zIndexPopup:d,marginXS:p,colorBgElevated:m,popoverBg:h}=e;return[{[t]:Object.assign(Object.assign({},(0,o.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:d,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":m,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:u,boxShadow:l,padding:s},[`${t}-title`]:{minWidth:i,marginBottom:p,color:c,fontWeight:a},[`${t}-inner-content`]:{color:n}})},(0,r.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},u=e=>{const{componentCls:t}=e;return{[t]:a.i.map((n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}},d=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:i,paddingSM:r,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,u=a-Math.round(s*l);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${u/2}px ${c}px ${u/2-n}px`,borderBottom:`${n}px ${o} ${i}`},[`${t}-inner-content`]:{padding:`${r}px ${c}px`}}}};t.Z=(0,s.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,r=(0,l.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[c(r),u(r),o&&d(r),(0,i._y)(r,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},51581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return i&&(s?a?u.unshift(s):u.push(s):this.defaultLoader&&(a?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),r.default.createElement(o,c,u)}}]),t}(i.Component);l.propTypes={children:a.default.node.isRequired,element:a.default.node,hasMore:a.default.bool,initialLoad:a.default.bool,isReverse:a.default.bool,loader:a.default.node,loadMore:a.default.func.isRequired,pageStart:a.default.number,ref:a.default.func,getScrollParent:a.default.func,threshold:a.default.number,useCapture:a.default.bool,useWindow:a.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},26724:function(e,t,n){e.exports=n(51581)},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwc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Mh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__GroupHomework__index.ec3a5ffb.async.js b/p__Classrooms__Lists__GroupHomework__index.ec3a5ffb.async.js deleted file mode 100644 index 7902255af1..0000000000 --- a/p__Classrooms__Lists__GroupHomework__index.ec3a5ffb.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[83935,13488,63527,4977,69932],{680:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(5891),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=n(22589),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},60186:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(5891),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=n(22589),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},45532:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(5891),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},a=n(22589),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},o=null,i=!1,r=!1,a=null,s=!1,l=null,c=null,u=0;u4?parseFloat(e):5};function j(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,O(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(l=e,I(e,t))},e.getHTML5CodebaseVersion=function(){return f},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var o,i="auto",r=n.id,a=!1,l=0;l=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var T=function(e){return e&&"false"!==e},Z=function(t,n,o){b(f)<=4.2&&(o=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==f||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,s=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(b(f)<=4.4)T(n.showToolBar)&&(n.height-=7),T(n.showAlgebraInput)&&(n.height-=37),n.width<605&&T(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(T(n.showToolBar)||T(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=T(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(x),window.GGBT_wsf_view&&$(window).trigger("resize"),m(e)},w||x.appendChild(j)):r.appendChild(j),x.appendChild(r),w||t.appendChild(x),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),D("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function C(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},b(f)<5&&(e.className+=" geogebraweb")):k(e,t)}if(i){scriptLoadStarted=!0;for(var _=0;_0?(i.remove(),s.attr("id","fullscreencontent").show(),jQuery(r).append(s),window.dispatchEvent(new Event("resize"))):Z(i,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=o,Z(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(s=e/4*3),l=s/5.8,a.setAttribute("src",w),a.setAttribute("width",s),a.setAttribute("height",l);var u=(e-s)/2,d=(t-l)/2;a.style.left=u+"px",a.style.top=d+"px",i.appendChild(a)}return i.appendChild(c),i},E=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},M=["web","webSimple","web3d","tablet","tablet3d","phone"],I=function(e,t){if(f=e,t)O(f,!0);else{var r,a,s=!i;if(s){var l=b(f);!isNaN(l)&&l<4.4&&(s=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=f.indexOf("//");for(var u in a=c>0?f:0===c?r+f:"https://www.geogebra.org/apps/5.2.814.0/",M)if(f.slice(-1*M[u].length)===M[u]||f.slice(-1*(M[u].length+1))===M[u]+"/")return void O(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||o.is3D||o.AV||o.SV||o.CV||o.EV2||o.CP||o.PC||o.DA||o.FI||o.PV||T(n.showToolBar)||T(n.showMenuBar)||T(n.showAlgebraInput)||T(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",O(a,!1)}},O=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),m=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?M.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(f=n[n.length-3]).substr(0,4)?f=f.substr(4,1)+"."+f.substr(5,1):"war"!==f.substr(0,3)&&"beta"!==f.substr(0,4)||(f="5.0");var o=parseFloat(f);NaN!==o&&o<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+o+" is deprecated. Using version latest instead."),I("5.0",t))}},D=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function G(){var e=t;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),I(e,!1),null!==c&&O(c,m),s=!0}return void 0!==n.material_id?C(G):G(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,o,i){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==o&&o,s=null!=e.noScaleMargin&&e.noScaleMargin,l=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,o,i,r){var a=null;if(null!=r&&""!=r)for(var s=e.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+r+" ")>-1){a=s;break}s=s.parentNode}var l=0,c=0,u=0,d=0,p=0,m=0,h=0;if(a)l=a.offsetWidth,c=Math.max(o?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=l):(l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var f=e.getBoundingClientRect();f.left>0&&f.left<=l&&(void 0===i||!i)&&("rtl"===document.dir?(p=l-f.width-f.left,m=u<=480?10:30):(m=f.left,p=u<=480?10:30),d=m+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(i=n(e,t,a,o,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=e.getBoundingClientRect(),i=(t-o.width)/2,r=(n-o.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=i+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var s=o(r,n);e()&&a.setAttribute("data-param-scale",s);for(var l=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var o=e.lastIndexOf(tb,Math.min(n,t));return o>=O?e.substring(O,o+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,o=[],i=[];function a(e){var t=i[e](),n=o[e];if(t in n)return t;var a=[];for(var s in n)a[n[s]]=s;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in o[e]},webModule.__getPropMap=function(){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(e=Cb).indexOf(Db);-1!=s&&(t=parseInt(e.substring(s+P),$),e=e.substring(O,s))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},o=e[webModule.__softPermutationId],i=O;i0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],o=0;o0&&(r=10+n*i);var a=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);o>40&&(a=40);var s=this.randomNum(-10,10);e.translate(r,a),e.rotate(s*Math.PI/180),e.fillText(t,0,0),e.rotate(-s*Math.PI/180),e.translate(-r,-a)}},{key:"drawLine",value:function(e){for(var t=0;t<1;t++)e.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),e.beginPath(),e.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.stroke()}},{key:"drawDot",value:function(e){for(var t=0;t<100;t++)e.fillStyle=this.randomColor(0,255),e.beginPath(),e.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),e.fill()}},{key:"randomCode",value:function(){for(var e=this,t="",n=0;n-1})))}}),(0,_.jsx)(f.Z,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){je(e)}},rowKey:"id",pagination:!1,dataSource:ve,loading:A,columns:[{title:"班级",dataIndex:"name"}]})]}):(0,_.jsxs)(g.Z,{gutter:24,children:[(0,_.jsxs)(v.Z,{span:14,children:[(0,_.jsx)("div",{className:j.homeworkType,children:"作业截止"}),(0,_.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){K(F.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,_.jsx)("div",{className:j.tableWrapper,children:(0,_.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){X(e)}},rowKey:"id",pagination:!1,dataSource:U,loading:A,columns:[{title:"班级",dataIndex:"name",ellipsis:!0},{title:"发布时间",dataIndex:"publish_time"},{title:"截止时间",dataIndex:"end_time"}]})})]}),(0,_.jsxs)(v.Z,{flex:10,style:{maxWidth:"280px"},children:[(0,_.jsx)("div",{className:j.homeworkType,children:"补交截止"}),(0,_.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){ae(te.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,_.jsx)("div",{className:j.tableWrapper,children:(0,_.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:j.antdTable,rowSelection:{type:"checkbox",onChange:function(e){ue(e)}},rowKey:"id",pagination:!1,loading:A,dataSource:re,columns:[{title:"班级",dataIndex:"name",ellipsis:!0,width:120},{title:"截止时间",dataIndex:"late_time"}]})})]})]})})]})}))},36709:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",m=n(92310),h=n.n(m),f=n(71418),g=n(2859),v=n(18030),x=n(21082),w=n(37712),y=function(e){var t=e.data,n=e.className,o=e.fullWidth,r=e.style,s=void 0===r?{}:r,m=e.onClose,y=e.onOk,b=e.showFullTools,j=e.noAssociationId,k=(0,c.useRef)(null),C=(0,c.useRef)(null),_=(0,c.useRef)(null),S=(0,c.useRef)(null),T=(0,c.useState)(!1),Z=l()(T,2),L=Z[0],N=Z[1],A=(0,c.useState)("正在加载中"),P=l()(A,2),B=P[0],E=P[1];(0,c.useEffect)((function(){_.current||(_.current=document.createElement("style"),document.head.appendChild(_.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),_.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&M()):(document.body.removeAttribute("data-custom"),_.current&&(document.head.removeChild(_.current),_.current=null))}),[null==t?void 0:t.visible]);var M=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),E("正在加载中"),e.next=4,(0,x.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,k.current.src="",k.current.src=n,k.current.onload=function(){O()},N(!1),E("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=a()(i()().mark((function e(n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(!0),E("正在保存中"),e.next=4,(0,v.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(o=e.sent)||!o.id||j){e.next=12;break}return e.next=8,(0,v.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==o?void 0:o.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=o&&o.id&&y(o);case 13:N(!1),E("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O=function(){C.current=new g.hP(k.current),C.current.targetRoot=S.current,C.current.addEventListener("render",I),C.current.addEventListener("beforeclose",m),b&&(C.current.availableMarkerTypes=C.current.ALL_MARKER_TYPES,C.current.uiStyleSettings.redoButtonVisible=!0,C.current.uiStyleSettings.notesButtonVisible=!0,C.current.uiStyleSettings.zoomButtonVisible=!0,C.current.uiStyleSettings.zoomOutButtonVisible=!0,C.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=C.current.uiStyleSettings,C.current.show(),null!=t&&t.snapshotData&&C.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,w.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,w.jsx)(f.Z,{spinning:L,tip:B,style:{position:"absolute"},children:(0,w.jsx)("div",{ref:S,className:h()(u,n,o?p:""),style:s,children:(0,w.jsx)("img",{className:d,ref:k})})})})}},98382:function(e,t,n){"use strict";n.d(t,{z:function(){return S},Z:function(){return T}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(37205),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(59028),f=n(8591),g=n(43418),v=n(3113),x=n(92723),w=n(90341),y=n(37712),b="  ";function j(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var k=n(60186),C=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var _=h.Z.Dragger;function S(e){var t=[];return e&&e.length>0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+b+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var T=function(e){var t=e.value,n=e.onChange,o=e.action,r=e.data,s=e.className,c=e.maxSize,d=void 0===c?150:c,S=e.title,T=void 0===S?"上传附件":S,Z=e.showRemoveModal,L=void 0!==Z&&Z,N=e.accept,A=void 0===N?"":N,P=e.additionalText,B=e.isDragger,E=e.number,M=void 0===E?1e3:E,I=e.aloneClear,O=void 0!==I&&I,D=e.realTimeRemove,G=void 0===D||D,H=e.uploadText,R=(0,m.useState)(!1),z=p()(R,2),F=z[0],W=z[1],Y=(0,m.useState)(t||[]),V=p()(Y,2),U=V[0],K=V[1],q=(0,m.useState)(1),J=p()(q,2),Q=J[0],X=J[1];(0,m.useEffect)((function(){t&&(1===Q&&K(u()(t)),X(2),M===(null==t?void 0:t.length)&&W(!0))}),[t]);var $,ee=function(){setTimeout((function(){U.pop(),K(u()(U))}),500)},te={multiple:!0,disabled:F,accept:A,withCredentials:!0,fileList:U,beforeUpload:function(e,t){var n=e.size/1024/1024;return U.concat(t).length>M?(U.pop(),K(u()(U)),f.ZP.error("最多只能上传".concat(M,"个文件")),O?Promise.reject():(ee(),!1)):n=M?W(!0):W(!1),K(u()(U)),U=U.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(b)&&(e.name="".concat(e.name).concat(b).concat(j(e.size))),l()({},e)})),console.log("info:",e,U),n(U)):f.ZP.error(null===(o=e.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message)},onRemove:($=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(G){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,w.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!L){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var o;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(o=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,f.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return $.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(s||""),children:[B&&(0,y.jsxs)(_,l()(l()({},te),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(k.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),P]})),!B&&(0,y.jsxs)(h.Z,l()(l()({},te),{},{children:[(0,y.jsxs)(v.ZP,{disabled:F,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),T]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:H||"(单个文件最大".concat(d,"MB)")})]}))]})}},65463:function(e,t,n){"use strict";n(59301);var o=n(6848),i=n(37712);t.Z=function(e){var t=e.value,n=e.visible,r=void 0===n||n,a=e.children;return(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(o.Z,{placement:"topLeft",title:{"未发布":"作业尚未发布","未开始":"作业已发布,尚未到达开始作业时间","提交中":"作业进行中,所有考生可提交作业","补交中":"作业进行中,所有学生可补交作业","进行中":"作业进行中,部分班级正在作业提交中/补交中","已截止":"到达作业截止时间,作业已结束","已结束":"课堂已结束"}[t],children:(0,i.jsx)("span",{children:a})}):a})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),s=n(59301),l=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),m=(n(80443),n(90630),n(37712)),h=l.default.Option,f={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,o=e.mode,r=e.options,l=void 0===r?{}:r,c=(0,s.useRef)(),u=(0,s.useState)(),d=a()(u,2),h=d[0],f=d[1];return(0,s.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,s.useEffect)((function(){h&&h.setOption("mode",o)}),[h,o]),(0,s.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,s.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,i()({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));f(e)}}),[c.current,h]),(0,m.jsx)("div",{className:"my-codemirror-container",children:(0,m.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,o=(0,s.useState)("python"),r=a()(o,2),d=r[0],p=r[1];return(0,m.jsxs)(c.Z,i()(i()({},f),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,m.jsx)(l.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,m.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,m.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,m.jsx)(v,{mode:d})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return be}});var o=n(91232),i=n.n(o),r=n(79800),a=n.n(r),s=n(85573),l=n.n(s),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),m=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),f=function(e){var t=e.value,n=void 0===t?"":t,o=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})})},g=n(82242),v=n.n(g),x=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function w(e){var t=e.onActionCallback,n=e.title,o=e.icon,i=e.actionName,r=e.className,a=void 0===r?"":r,s=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(i)},children:[(0,h.jsx)("i",{className:"".concat(o)}),s]})}var y=function(e){var t=e.watch,n=e.showNullButton,o=e.showNullProgramButton,i=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,s=e.hidetoolBar,l=e.extraUse,c=[].concat(x,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(w,v()(v()({},e),{},{onActionCallback:i})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,h.jsx)("li",{children:l}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(w,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},b=n(24808),j=n(78241),k=n(92832),C=n(3113),_={labelCol:{span:4},wrapperCol:{span:20}},S=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(j.Z,v()(v()({},_),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(j.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(j.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(C.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},T=n(73145),Z=n(28486),L=n(95237),N=n(36709),A=function(e){var t=e.callback,n=e.onCancel,o=document.createElement("canvas"),i=o.getContext("2d");o.width=1e3,o.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,o.width,o.height);var r=o.toDataURL("image/png");return(0,h.jsx)(L.Z,{style:{height:"100vh"},children:(0,h.jsx)(N.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},P=n(7557),B=n.n(P),E=n(41498),M=n.n(E),I=n(37205),O=n.n(I),D=n(12378);function G(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(G,go.CommandHandler),G.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},G.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},G.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},G.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},G.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},G.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},G.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},G.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o0){for(var o=a.elt(s-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(r)}else if("Down"===n.key){var i;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i);else for(;null!==t;){var r,a,s;if(null===(r=t.findTreeParentNode()))break;if((s=(a=this._sortTreeChildrenByY(r)).indexOf(t))o.y?1:n.xo.x?1:0})),t},G.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},G.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(G.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(G.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 H=G,R=(n(41034),n(85160)),z=n(43418),F=n(43604),W=n(18030),Y="myPaletteDiv___Xjz2I",V="maxH60___Pd4Re";window.go=D;var U=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(),s=(0,c.useRef)(!1),l=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],m=d[1],f=function(){var e=M()(B()().mark((function e(){var t,i;return B()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:i=e.sent,n({src:i.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){m(p+1)}),[]),(0,h.jsx)("div",{ref:l,className:s.current?"".concat(V," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:l.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(L.Z,{children:[(0,h.jsx)(F.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(F.Z,{onClick:function(){s.current=!s.current,m(p+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:Y,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(R.FI,{initDiagram:function(){var e=D.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",s="#d533ff",l="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",m="#d5ebff",h="#f2dfe0",f="#a5d2fa",g="#cccccc",v="#b3e6b3",x="#fcbbbd";function w(t,n){var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(o){var i=n.part.adornedPart,r=(new D.Point).setRectSpot(i.actualBounds,t);r.subtract(i.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(i.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=o.copyNodeData(i.data);o.setGroupKeyForNodeData(a,o.getGroupKeyForNodeData(i.data)),o.addNodeData(a);var s={from:i.key,to:o.getKeyForNodeData(a)};o.addLinkData(s);var l=e.diagram.findNodeForData(a);l.location=r,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(D.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(D.Spot.Top)||t.equals(D.Spot.Bottom)?25:18,height:t.equals(D.Spot.Top)||t.equals(D.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:o,contextClick:o})}function y(t){return e(D.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function b(e,t){return function(n,o){n.handled=!0,n.diagram.model.commit((function(n){n.set(o.part.adornedPart.data,e,t)}))}}function j(t,n){return n||(n="color"),e(D.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:b(n,t),contextClick:b(n,t)})}function k(){return[e("ContextMenuButton",e(D.Panel,"Horizontal",j(u,"fill"),j(p,"fill"),j(m,"fill"),j(h,"fill"))),e("ContextMenuButton",e(D.Panel,"Horizontal",j(g,"fill"),j(v,"fill"),j(f,"fill"),j(x,"fill")))]}function C(){return[e("ContextMenuButton",e(D.Panel,"Horizontal",j(d),j(a),j(n),j(t))),e("ContextMenuButton",e(D.Panel,"Horizontal",j(u),j(s),j(l),j(c)))]}function _(t,n){return n||(n="thickness"),e(D.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function S(t,n){return n||(n="dash"),e(D.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function T(){return[e("ContextMenuButton",e(D.Panel,"Horizontal",_(1),_(2),_(3),_(4))),e("ContextMenuButton",e(D.Panel,"Horizontal",S(null),S([2,4]),S([4,4])))]}function Z(t,n){return n||(n="figure"),e(D.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:b(n,t),contextClick:b(n,t)})}function L(t){return e(D.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function N(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(D.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b("dir",t),contextClick:b("dir",t)})}function A(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var o=n.part.adornedPart;e.set(o.data,t?"toSpot":"fromSpot",D.Spot.stringify(D.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(D.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function P(t,n){var o=0,i=D.Spot.RightSide;t.equals(D.Spot.Top)?(o=270,i=D.Spot.TopSide):t.equals(D.Spot.Left)?(o=180,i=D.Spot.LeftSide):t.equals(D.Spot.Bottom)&&(o=90,i=D.Spot.BottomSide),n||(o-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",D.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(D.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:o,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return o.current=new D.Diagram(i.current,{padding:20,grid:e(D.Panel,"Grid",e(D.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(D.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(H),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),o.current.nodeTemplate=e(D.Node,"Auto",{locationSpot:D.Spot.Center,locationObjectName:"SHAPE",desiredSize:new D.Size(120,60),minSize:new D.Size(40,40),resizable:!0,resizeCellSize:new D.Size(10,10),rotatable:!0},new D.Binding("location","loc",D.Point.parse).makeTwoWay(D.Point.stringify),new D.Binding("desiredSize","size",D.Size.parse).makeTwoWay(D.Size.stringify),e(D.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:D.Spot.AllSides,toSpot:D.Spot.AllSides},new D.Binding("figure"),new D.Binding("fill"),new D.Binding("stroke","borderColor"),new D.Binding("strokeWidth","thickness"),new D.Binding("strokeDashArray","dash")),e(D.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(D.TextBlock,{margin:1,textAlign:"center",overflow:D.TextBlock.OverflowEllipsis,editable:!0},new D.Binding("text").makeTwoWay(),new D.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(D.Panel,"Vertical",{maxSize:new D.Size(200,NaN)},e(D.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new D.Binding("text")),e(D.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new D.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(D.Adornment,"Spot",e(D.Placeholder,{padding:10}),w(D.Spot.Top,"TriangleUp"),w(D.Spot.Left,"TriangleLeft"),w(D.Spot.Right,"TriangleRight"),w(D.Spot.Bottom,"TriangleDown"),y({alignment:new D.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(D.Panel,"Horizontal",Z("Rectangle"),Z("RoundedRectangle"),Z("Ellipse"),Z("Diamond"))),e("ContextMenuButton",e(D.Panel,"Horizontal",Z("Parallelogram2"),Z("ManualOperation"),Z("Procedure"),Z("Cylinder1"))),e("ContextMenuButton",e(D.Panel,"Horizontal",Z("Terminator"),Z("CreateRequest"),Z("Document"),Z("TriangleDown"))),k(),C(),T()),o.current.groupTemplate=e(D.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:D.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new D.Binding("location","loc",D.Point.parse).makeTwoWay(D.Point.stringify),e(D.Panel,"Auto",{name:"BODY"},e(D.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:D.Spot.AllSides,toSpot:D.Spot.AllSides},new D.Binding("fill"),new D.Binding("stroke","color"),new D.Binding("strokeWidth","thickness"),new D.Binding("strokeDashArray","dash")),e(D.Placeholder,{background:"transparent",margin:20})),e(D.TextBlock,{alignment:D.Spot.Top,alignmentFocus:D.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new D.Binding("text"),new D.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(D.Adornment,"Spot",e(D.Panel,"Auto",e(D.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(D.Placeholder,{margin:1.5})),y({alignment:D.Spot.TopRight,alignmentFocus:D.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",k(),C(),T()),o.current.linkTemplate=e(D.Link,{layerName:"Foreground",routing:D.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new D.Binding("fromSpot","fromSpot",D.Spot.parse),new D.Binding("toSpot","toSpot",D.Spot.parse),new D.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new D.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new D.Binding("points").makeTwoWay(),e(D.Shape,{strokeWidth:2},new D.Binding("stroke","color"),new D.Binding("strokeWidth","thickness"),new D.Binding("strokeDashArray","dash")),e(D.Shape,{segmentIndex:0,segmentOffset:new D.Point(15,0),segmentOrientation:D.Link.OrientAlong,alignmentFocus:D.Spot.Right,figure:"circle",width:10,strokeWidth:0},new D.Binding("fill","color"),new D.Binding("visible","dir",(function(e){return 1===e}))),e(D.Shape,{segmentIndex:-1,segmentOffset:new D.Point(-10,6),segmentOrientation:D.Link.OrientPlus90,alignmentFocus:D.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new D.Binding("fill","color"),new D.Binding("visible","dir",(function(e){return e>=1})),new D.Binding("width","thickness",(function(e){return 7+3*e})),new D.Binding("height","thickness",(function(e){return 7+3*e})),new D.Binding("segmentOffset","thickness",(function(e){return new D.Point(-15,4+1.5*e)}))),e(D.Shape,{segmentIndex:0,segmentOffset:new D.Point(15,-6),segmentOrientation:D.Link.OrientMinus90,alignmentFocus:D.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new D.Binding("fill","color"),new D.Binding("visible","dir",(function(e){return 2===e})),new D.Binding("width","thickness",(function(e){return 7+3*e})),new D.Binding("height","thickness",(function(e){return 7+3*e})),new D.Binding("segmentOffset","thickness",(function(e){return new D.Point(-15,4+1.5*e)}))),e(D.TextBlock,{alignmentFocus:new D.Spot(0,1,-4,0),editable:!0},new D.Binding("text").makeTwoWay(),new D.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(D.Adornment,e(D.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:L(2)},new D.Binding("pathPattern","thickness",L)),y({alignmentFocus:new D.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",C(),T(),e("ContextMenuButton",e(D.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(D.Panel,"Horizontal",e(D.Panel,"Spot",A(!1),P(D.Spot.Top,!1),P(D.Spot.Left,!1),P(D.Spot.Right,!1),P(D.Spot.Bottom,!1)),e(D.Panel,"Spot",{margin:new D.Margin(0,0,0,2)},A(!0),P(D.Spot.Top,!0),P(D.Spot.Left,!0),P(D.Spot.Right,!0),P(D.Spot.Bottom,!0))))),new D.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(D.Link,{locationSpot:D.Spot.Center,selectionAdornmentTemplate:e(D.Adornment,"Link",{locationSpot:D.Spot.Center},e(D.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(D.Shape,{toArrow:"Standard",stroke:null}))},{routing:D.Link.AvoidsNodes,curve:D.Link.JumpOver,corner:5,toShortLength:4},new D.Binding("points"),e(D.Shape,{isPanelMain:!0,strokeWidth:2}),e(D.Shape,{toArrow:"Standard",stroke:null})),model:new D.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(O()(D.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(D.Node,"Auto",{locationSpot:D.Spot.Center},new D.Binding("location","location",D.Point.parse).makeTwoWay(D.Point.stringify),e(D.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 D.Binding("stroke").makeTwoWay(),new D.Binding("fill").makeTwoWay(),new D.Binding("figure")),e(D.TextBlock,{margin:new D.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new D.Size(16,16),maxSize:new D.Size(10,NaN),textAlign:"center",editable:!0},new D.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(D.Panel,"Grid",e(D.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(D.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),o.current.grid.visible=!0,o.current.grid.gridCellStroke="darkgray",o.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=o.current,o.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:i})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(C.ZP,{size:"large",onClick:f,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),q=n(94001),J=K.ZP.Group,Q={margin:"0 8px"},X=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(j.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"单元格数:"}),(0,h.jsx)("span",{style:Q,children:"行数"}),(0,h.jsx)(j.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(q.Z,{})}),(0,h.jsx)("span",{style:Q,children:"列数"}),(0,h.jsx)(j.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(q.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"对齐方式:"}),(0,h.jsx)(j.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(C.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,r=e.callback,s=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],m=d[1],f=(0,c.useRef)({id:s,appName:"graphing",width:o||1e3,height:i||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){l.current=new(te())(f.current,!0),window.onload=function(){l.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){f.current.appName=p?"3D":"graphing",l.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){m(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:s}),(0,h.jsxs)(L.Z,{align:"middle",children:[(0,h.jsx)(F.Z,{flex:1,children:(0,h.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return m(e)}})}),(0,h.jsx)(F.Z,{children:(0,h.jsx)(C.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),oe=n(36761),ie=n(92723),re=n(8591),ae="link",se="upload-image",le="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",me={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},he=n(77818);var fe="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var xe=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",we=l()(l()({},xe+"-B","bold"),xe+"-I","italic"),ye=l()(l()(l()(l()(l()(l()(l()(l()({},ae,"添加链接"),ue,"添加代码块"),se,"添加图片"),ce,"添加画图"),le,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),be=function(e){var t=e.defaultValue,n=void 0===t?"":t,o=e.onChange,r=e.width,s=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,x=void 0!==v&&v,w=e.isFocus,j=void 0!==w&&w,k=e.watch,C=e.insertTemp,_=e.mode,L=void 0===_?"markdown":_,N=e.id,P=void 0===N?"markdown-editor-id":N,B=e.showResizeBar,E=void 0!==B&&B,M=e.noStorage,I=void 0!==M&&M,O=e.showNullButton,D=void 0!==O&&O,G=e.showNullProgramButton,H=void 0!==G&&G,R=e.hidetoolBar,F=void 0!==R&&R,W=e.fullScreen,Y=void 0!==W&&W,V=e.onBlur,K=e.onCMBeforeChange,q=e.onFullScreen,J=e.className,Q=void 0===J?"":J,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,pe=void 0!==te&&te,xe=e.disabledFill,be=void 0!==xe&&xe,je=e.placeholder,ke=void 0===je?"":je,Ce=e.values,_e=void 0===Ce?"":Ce,Se=e.extraUse,Te=(0,c.useState)(null),Ze=a()(Te,2),Le=Ze[0],Ne=Ze[1],Ae=(0,c.useState)(n),Pe=a()(Ae,2),Be=Pe[0],Ee=Pe[1],Me=(0,c.useState)(k),Ie=a()(Me,2),Oe=Ie[0],De=Ie[1],Ge=(0,c.useState)(Y),He=a()(Ge,2),Re=He[0],ze=He[1],Fe=(0,c.useState)(""),We=a()(Fe,2),Ye=We[0],Ve=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),qe=Ke[0],Je=Ke[1],Qe=(0,c.useState)(g),Xe=a()(Qe,2),$e=Xe[0],et=Xe[1],tt=(0,c.useState)(!1),nt=a()(tt,2),ot=(nt[0],nt[1]),it=(0,c.useState)(0),rt=a()(it,2),at=rt[0],st=rt[1],lt=(0,c.useState)(0),ct=a()(lt,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),mt=(0,c.useRef)(),ht=(0,c.useRef)(),ft=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ee(_e),null==Le||Le.setValue(_e),window.scrollTo(0,e)}),[_e]),(0,c.useEffect)((function(){null==q||q(Re)}),[Re]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var o=n.clipboardData;if(o){var i=o.types.toString(),r=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==L)return;try{var a,s=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(s=r[0]);var l=s.getAsFile(),c=l.name.split(".").pop();(0,Z.I)(l,(function(e){var n,o,i;e.id?(null==l||null===(n=l.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==l||null===(o=l.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('')):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?t.replaceSelection('').concat(l.name,"")):ge.includes(c)?t.replaceSelection('').concat(l.name,"")):t.replaceSelection("[".concat(l.name,"](").concat(ie.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:L,lineNumbers:!x,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),o=n.getCursor(),i=n.getLine(o.line),r=i.charAt(o.ch-1),a=i.lastIndexOf("@▁@",o.ch),s=i.lastIndexOf("@▁▁@",o.ch),l=a>s?a:s,c=a>s?3:4;if(-1===fe.indexOf(r))return null;if(console.log("change1:",t,e,i,o,l,a,s,r),l>=0&&o.ch-l<5){var u=l+c;return n.replaceRange("",{line:o.line,ch:l},{line:o.line,ch:u}),{line:o.line,ch:u}}return null}(e);n&&t.preventDefault()}})),j&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ne(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){mt.current}),[$e,mt,Re]);(0,c.useEffect)((function(){if(Le){var e=function(){var e=new p.Z((function(e){var t,n=i()(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;(o.target.offsetHeight>0||o.target.offsetWidth>0)&&(gt(),Le.setSize("100%","100%"),Le.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Le,gt]),(0,c.useEffect)((function(){if(Le){for(var e=[],t=function(){var t=a()(o[n],2),i=t[0],r=t[1],s=l()({},i,(function(){vt(r)}));e.push(s),Le.addKeyMap(s)},n=0,o=Object.entries(we);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(P);e>=qe+1e4&&(!t||t!==Be)&&(window.sessionStorage.setItem(P,Be),ot(!0))}}),1e4),(0,c.useEffect)((function(){De(k)}),[Le,k]),(0,c.useEffect)((function(){Le&&j&&Le.focus()}),[Le,j]),(0,c.useEffect)((function(){if(Oe&&Le){var e=function(e){var t=e.target;if(ft.current){var n=t.scrollTop/t.scrollHeight;ft.current.scrollTop=ft.current.scrollHeight*n}},t=Le.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Le,Oe]),(0,c.useEffect)((function(){if(Le&&K){var e=function(e,t){K(e,t)};return Le.on("beforeChange",e),function(){Le.off("beforeChange",e)}}}),[Le,K]),(0,c.useEffect)((function(){if(Le&&V){var e=function(){V(Le.getValue())};return Le.on("blur",e),function(){Le.off("blur",e)}}}),[Le,V]),(0,c.useEffect)((function(){if(Le){var e=function(e,t){var n=e.getValue();Ee(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(H?o(n,jt(n)):o(n))};return Le.on("change",e),function(){Le.off("change",e)}}}),[Le,o]),(0,c.useEffect)((function(){if(Le)if(null==n)Le.setValue(""),Ee("");else{var e=window.scrollY||window.pageYOffset;n!==Le.getValue()&&(Le.setValue(n),Ee(n),Le.setCursor(pe?1:Le.lineCount(),0),window.scrollTo(0,e))}}),[Le,n]);var vt=(0,c.useCallback)((function(e){var t=Le.getCursor(),n=Le.getSelection(),o=n.split("\n");switch(e){case"bold":return Le.replaceSelection("**"+n+"**"),""===n&&Le.setCursor(t.line,t.ch+2),Le.focus();case"italic":return Le.replaceSelection("*"+n+"*"),""===n&&Le.setCursor(t.line,t.ch+1),Le.focus();case"code":return Le.replaceSelection("`"+n+"`"),""===n&&Le.setCursor(t.line,t.ch+1),Le.focus();case"inline-latex":return Ve("inline-latex"),Le.focus();case"latex":return Le.replaceSelection("```latex\n"+n+"\n```"),Le.setCursor(t.line+1,n.length+1),Le.focus();case"line-break":return Le.replaceSelection("
\n"),Le.focus();case"list-ul":return""===n?Le.replaceSelection("- "+n):Le.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Le.focus();case"list-ol":return""===n?Le.replaceSelection("1. "+n):Le.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Le.focus();case"add-null-ch":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection("▁"),Le.focus();case"add-signal":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection("@▁@"),Le.focus();case"add-multiple":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection(fe),Le.focus();case"inster-template-1":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Le.focus();case"eraser":return Le.setValue(""),Le.focus();case"trigger-watch":return De(!Oe),Le.focus();case"trigger-full-screen":return ze(!Re),Le.focus();case ae:return void Ve(ae);case ue:return void Ve(ue);case se:return void Ve(se);case ce:return void Ve(ce);case"maths-latex":return void Ve("maths-latex");case le:return void Ve(le);case de:return void Ve(de);default:throw new Error}}),[Le,Oe,Re]),xt=(0,c.useCallback)((function(e,t){var n,o,i,r,a;switch(Ve(""),Ye){case ae:var s=e.title,l=e.link;return Le.replaceSelection("[".concat(s,"](").concat(l,")")),Le.focus();case ue:var c=e.language,u=e.content;return Le.replaceSelection(["```"+c,u,"```"].join("\n")),Le.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),m=0;m-1||null==v||!v.type?g?Le.replaceSelection("![ ".concat(g," ]( ").concat(f,' "').concat(g,'" )')):Le.replaceSelection("![,](".concat(f,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Le.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Le.replaceSelection('').concat(v.name,"")):ge.includes(x)?Le.replaceSelection('').concat(v.name,"")):Le.replaceSelection("[".concat(v.name,"](").concat(ie.Z.API_SERVER).concat(f,")")),Le.focus();case de:for(var w=e.row,y=e.col,b=e.align,j="\n",k=0;k300&&(t=300),et(g+t+"px")}},o=ht.current,i=!1,r=0;return o.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){o.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Le,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var bt={width:ve(s),height:ve($e)},jt=((0,c.useMemo)((function(){if(qe){var e=new Date(qe),t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(o)}return 0}),[qe]),function(e){var t=[];if(H){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ye]&&Ye!==ce&&Ye!==le&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;st(t),dt(n)}),0)}),[Ye]);var kt=function(e,t,n,o){var i=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>i-20&&o0)){e.next=13;break}return w.ZP.info("发布班级不能为空"),je(!1),e.abrupt("return");case 13:if(null==me||!me.submit_limit||null!=me&&me.submit_limit_num){e.next=17;break}return w.ZP.warning("学生填写内容字数不能为空"),je(!1),e.abrupt("return");case 17:if(null==me||!me.can_submit||null!=me&&me.submit_num){e.next=21;break}return w.ZP.warning("学生提交作品次数不能为空"),je(!1),e.abrupt("return");case 21:return u=p()({homework_ids:l()(t.actionTabs.selectArrs),group_ids:re.length>0?re.map((function(e){return e.id})):null===(a=t.detailCommonHomeworksList)||void 0===a?void 0:a.course_groups,end_time:T()(c.end_time).format("YYYY-MM-DD HH:mm"),publish_time:T()(c.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:!re.length},me),je(!0),e.next=25,(0,Z.ZP)("/api/courses/".concat(s.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:p()({},u)});case 25:0===e.sent.status?(je(!1),(0,N.L9)(["教学课堂","分组作业","立即发布"]),w.ZP.success("发布成功"),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),r.onCallback&&r.onCallback(),ge(),"0"===localStorage.getItem("Noviceguide")||n({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:13,text:(0,I.jsx)("div",{children:"最后,咱们给教学课堂添加一名学生~点击“添加学生”,在弹窗页面中输入并搜索学生姓名,点击“确定”就可以为您的课堂添加第一位学生啦~"})}})):je(!1);case 27:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),xe=function(){D(1),z([]),ae([])},we=(t.detailCommonHomeworksList,(0,v.useState)(!1)),ye=h()(we,2),be=ye[0],je=ye[1];return(0,I.jsxs)(y.Z,{width:600,confirmLoading:be,centered:!0,title:"发布作业",open:"立即发布"===t.actionTabs.key,okText:"发布作业",cancelText:"暂不发布",onOk:ve,onCancel:function(){xe(),ge(),n({type:"classroomList/setActionTabs",payload:{}})},children:[(0,I.jsxs)("p",{className:"tc",children:["学生将立即收到作业",(0,I.jsx)("br",{}),'本操作只对"未发布"的作业有效']}),R&&(0,I.jsxs)(x.Z,{form:d,children:[(0,I.jsxs)("div",{style:{paddingLeft:0},children:[(0,I.jsxs)(b.Z,{className:"mt30",align:"middle",children:[(0,I.jsx)(j.Z,{children:(0,I.jsx)(x.Z.Item,{name:"publish_time",label:"发布时间",children:(0,I.jsx)(k.default,{style:{width:170,marginRight:"25px"},disabledDate:function(e){return(0,M.Q8)(e,o)},disabledTime:function(e){return(0,M.d0)(e)},placeholder:"请选择发布时间",showTime:{format:"HH:mm",defaultValue:T()((0,N.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),(0,I.jsx)(j.Z,{className:"ml20",children:(0,I.jsx)(x.Z.Item,{name:"end_time",label:"截止时间",children:(0,I.jsx)(k.default,{style:{width:170},placeholder:"请选择结束时间",showTime:{format:"HH:mm",defaultValue:T()((0,N.U6)(),"HH:mm")},disabledDate:function(e){return(0,M.Q8)(e,o,d.getFieldValue("publish_time"))},disabledTime:function(e){return(0,M.d0)(e,d.getFieldValue("publish_time"))},format:"YYYY-MM-DD HH:mm",allowClear:!1})})})]}),2===t.actionTabs.type&&(0,I.jsxs)(b.Z,{style:{marginBottom:"10px"},children:[(0,I.jsx)("span",{className:"mr5",children:"发布设置:"}),(0,I.jsxs)(C.ZP.Group,{value:ce,onChange:function(e){ue(e.target.value),ae([])},children:[(0,I.jsx)(C.ZP,{value:!0,disabled:!t.actionTabs.manage_all_group,children:"统一发布"}),(0,I.jsx)(C.ZP,{className:"ml20",disabled:R.length<=0,value:!1,children:"分班发布"})]})]}),R.length<=0&&2===t.actionTabs.type&&(0,I.jsx)("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"},children:'课堂无分班,仅支持选择“统一发布"'})]}),(1===t.actionTabs.type||!ce)&&R.length>0&&(0,I.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"},children:[(0,I.jsx)("span",{style:{flex:1},children:(0,I.jsx)(_.Z,{checked:re.length===R.length,onChange:function(e){re.length===R.length?ae([]):ae(R.filter((function(e){return!e.is_published})))},children:"全选"})}),(0,I.jsx)("span",{style:{width:16}}),(0,I.jsxs)("span",{style:{flex:1},children:["已选择",re.length||0,"个分班"]})]}),(1===t.actionTabs.type||!ce)&&R.length>0&&(0,I.jsx)(P.Z,{data:R,selectedRowKeys:re,setSelectedRowKeys:ae})]}),(0,I.jsx)(B.ZP,{value:me,onChange:function(e){return he(p()({},e))}})]})}))},94654:function(e,t,n){"use strict";n.r(t),n.d(t,{GroupHomeworkContext:function(){return Ae},default:function(){return Pe}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301),p=n(5296),m=n(8591),h=n(96865),f=n(27092),g=n(81228),v=n(43418),x=n(95237),w=n(43604),y=n(78673),b=n(5112),j=n(60324),k=n(94001),C=n(39248),_=n(93697),S=n(21082),T=n(37205),Z=n.n(T),L=n(18030),N=n(97978),A=n(37712),P=(0,p.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,o=e.classroomList,r=e.dispatch,s=e.user,c=e.onCallback,h=(0,p.useParams)(),f=(0,d.useState)(!1),g=u()(f,2),x=g[0],w=g[1],y=(0,d.useState)(!1),b=u()(y,2),j=b[0],k=b[1],C=(0,d.useRef)(null);(0,d.useEffect)((function(){if("删除"===o.actionTabs.key){if((0,_.j5)())return void k(!0);var e={hasNum:0,noHasNum:0};o.actionTabs.selectArrsAll.map((function(t){var n;t.author_login===(null===(n=s.userInfo)||void 0===n?void 0:n.login)?++e.hasNum:++e.noHasNum})),e.noHasNum>0?v.Z.info({title:"权限提示",className:"custom-modal-divider ",icon:null,content:(0,A.jsxs)("div",{children:["当前选中资源中:",(0,A.jsx)("span",{className:"c-blue",children:e.hasNum}),"个由您本人发布,",(0,A.jsx)("span",{className:"c-red",children:e.noHasNum})," ","个由其他老师发布。",(0,A.jsx)("br",{}),"课堂内只能删除本人发布的资源,请取消选中其他老师发布的资源。"]}),onOk:function(){T()}}):k(!0)}else k(!1)}),[o.actionTabs.key]);var T=function(){r({type:"classroomList/setActionTabs",payload:{}})};return(0,A.jsx)(v.Z,{centered:!0,title:"提示",open:j,okText:"确定",cancelText:"取消",confirmLoading:x,destroyOnClose:!0,onOk:a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=C.current)||void 0===t||!t.onVerify()){e.next=2;break}return e.abrupt("return");case 2:return w(!0),e.next=5,(0,L.ZP)("/api/courses/".concat(h.coursesId,"/homework_commons/multi_destroy.json"),{method:"post",body:{homework_ids:Z()(o.actionTabs.selectArrs)}});case 5:n=e.sent,w(!1),0===n.status&&((0,S.L9)(["教学课堂","分组作业","删除"]),m.ZP.success("删除成功"),r({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),c&&c(),(0,_.GJ)()?r({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},o.actionTabs.params),{},{type:3})}):r({type:"classroomList/getClassroomCommonList",payload:l()({},o.actionTabs.params)}));case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){r({type:"classroomList/setActionTabs",payload:{}})},children:null!=o&&null!==(t=o.actionTabs)&&void 0!==t&&t.status&&["未发布"].includes(null==o||null===(n=o.actionTabs)||void 0===n?void 0:n.status)?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("p",{children:"提交作品将全部被删除,不可恢复"}),(0,A.jsx)("p",{children:"是否确认删除?"})]}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)("p",{style:{color:"#DD0000"},children:"删除作业则会清除学生所有的答题数据,且数据不可恢复,如确定删除,请输入下方验证码"}),(0,A.jsx)(N.Z,{ref:function(e){return C.current=e}})]})})})),B=n(1761),E=n(3655),M=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=(0,p.useParams)();return o.id=o.coursesId,(0,A.jsx)(v.Z,{centered:!0,title:"提示",open:"设为公开"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/courses/".concat(o.id,"/homework_commons/set_public.json"),{method:"post",body:{homework_ids:Z()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,S.L9)(["教学课堂","分组作业","设为公开"]),m.ZP.success("操作成功"),n({type:"classroomList/setActionTabs",payload:{}}),n({type:"classroomList/getClassroomCommonHomeworksList",payload:l()({},t.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:(0,A.jsxs)("p",{children:["设为公开后,非课堂成员也可以访问查看",(0,A.jsx)("br",{}),"是否确认设为公开?"]})})})),I=n(39647),O=n.n(I),D=["classroomList","dispatch","onCallback"],G=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=e.onCallback,r=(O()(e,D),(0,p.useParams)());return r.id=r.coursesId,(0,A.jsx)(v.Z,{centered:!0,title:"提示",open:"收藏"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/courses/".concat(r.id,"/homework_commons/add_to_homework_bank.json"),{method:"post",body:{all_check:0,homework_ids:Z()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,S.L9)(["教学课堂","分组作业","收藏"]),m.ZP.success("收藏成功,请前往【个人主页/课堂资源】查看"),o&&o(),(0,_.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:3})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)}),n({type:"classroomList/setActionTabs",payload:{}}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:"确认收藏?"})})),H=n(85573),R=n.n(H),z=n(99313),F=n(78241),W=n(3113),Y=n(92832),V=n(24905),U=n(26724),K=n.n(U),q={flex_box_center:"flex_box_center___ABrmR",flex_space_between:"flex_space_between___vTOmX",flex_box_vertical_center:"flex_box_vertical_center___txnfs",flex_box_center_end:"flex_box_center_end___fhlTP",flex_box_column:"flex_box_column___NGqFB",line1:"line1___kzLLz",form:"form___JNFp_"},J=n(54313),Q=n(21530),X=(z.Z.TabPane,(0,p.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,loading:e.loading,classroomList:e.classroomList}}))((function(e){var t,n=e.shixunHomeworks,o=e.classroomList,r=(e.loading,e.dispatch),s=(0,p.useParams)(),c=((0,p.useLocation)(),F.Z.useForm()),m=u()(c,1)[0],h=(n.brankList,(0,d.useState)(!1)),f=u()(h,2),g=f[0],y=f[1],b=(0,d.useState)(!0),j=u()(b,2),k=j[0],C=j[1],T=(0,d.useState)("myself"),L=u()(T,2),N=L[0],P=L[1],B=(0,d.useState)([]),E=u()(B,2),M=E[0],I=E[1],O=(0,d.useState)(),D=u()(O,2),G=D[0],H=D[1],z=(0,d.useState)({page:0,limit:20,object_type:"group",search:"",filter:"myself"}),U=u()(z,2),X=U[0];U[1];(0,d.useEffect)((function(){"题库选用"===n.actionTabs.key&&ee()}),[n.actionTabs.key]);var $=[],ee=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!k){e.next=11;break}return y(!1),++X.page,e.next=5,r({type:"shixunHomeworks/getBrankList",payload:l()({},X)});case 5:n=e.sent,M=Z()(M.concat(n.object_list)),H(n.is_teacher),(null===(t=n.object_list)||void 0===t?void 0:t.length)5&&(0,A.jsx)(se.Z,{scroll:{y:240},onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:E,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(b.sort_by=n.field),n.order||(b.sort_direction="asc"),"ascend"===n.order&&(b.sort_direction="asc"),"descend"===n.order&&(b.sort_direction="desc"),n.order||(b.sort_direction="asc"),O()},columns:I}),(0,_.GJ)()&&"未发布"!==c.status&&C&&E.length<6&&E.length>0&&(0,A.jsx)(se.Z,{onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:E,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(b.sort_by=n.field),n.order||(b.sort_direction="asc"),"ascend"===n.order&&(b.sort_direction="asc"),"descend"===n.order&&(b.sort_direction="desc"),n.order||(b.sort_direction="asc"),O()},columns:I})]})]})]})},de="bottomControlContainer___yUX9N",pe="moveCategory___pCGhW",me=n(78386),he=function(e){var t,n=e.buttonDataSource,o=e.onClick,r=(0,d.useContext)(Ae),s=r.allSelect,l=r.setAllSelect,c=r.setSelectArrs,p=r.dataSource,h=r.selectArrs,f=r.useBatchStatus,g=r.dispatch,v=r.params,y=r.getData,b=r.detailLeftMenus,j=r.main_category_id,k=r.setSelectArrsAll,C=(0,d.useState)(!1),S=u()(C,2),T=(S[0],S[1]),N=(0,d.useState)(""),P=u()(N,2),B=P[0],E=P[1];b.course_modules&&(t=b.course_modules.filter((function(e){return"group_homework"===e.type}))[0]);var M=(0,A.jsx)("div",{className:pe,onMouseLeave:function(e){return T(!1)},children:(0,A.jsxs)(ae.Z,{onClick:function(){var e=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.item,n=t.key,t.keyPath,t.domEvent,""!=h){e.next=4;break}return m.ZP.error("请选择你要操作的任务"),e.abrupt("return",null);case 4:return e.next=6,(0,L.ZP)("/api/courses/".concat(v.id,"/homework_commons/move_to_category.json"),{method:"post",body:{homework_ids:h,new_category_id:n}});case 6:0===e.sent.status&&(m.ZP.success("操作成功"),f(!1),y(),g({type:"classroomList/getClassroomLeftMenus",payload:{id:v.coursesId}}));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),style:{maxHeight:300,width:240,overflow:"auto"},children:[(0,A.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",children:(0,A.jsx)(Y.Z,{onChange:function(e){E(e.target.value)}})}),t&&t.second_category.filter((function(e){return"未分配目录"!==e.category_name})).map((function(e,t){var n;if(!(""!==B&&e.category_name.indexOf(B)<0))return(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(ae.Z.Item,{className:"multi-llipsis1e",children:e.category_name},e.category_id),null==e||null===(n=e.third_category)||void 0===n?void 0:n.map((function(e){return(0,A.jsx)(ae.Z.Item,{style:{marginLeft:20},className:"multi-llipsis1e",children:e.category_name},e.category_id)}))]})})),(0,A.jsx)("li",{className:"ant-menu-item multi-llipsis1e ant-menu-item-only-child",onClick:function(e){e.preventDefault(),g({type:"classroomList/setActionTabs",payload:{key:"添加目录",params:v,selectArrs:{category_id:j,type:"group_homework"}}})},children:"新建子目录..."})]})});return(0,A.jsx)("div",{className:de,children:(0,A.jsxs)(x.Z,{wrap:!1,align:"middle",justify:"space-between",style:{height:"100%"},children:[(0,A.jsx)(w.Z,{flex:1,children:(0,A.jsxs)(x.Z,{wrap:!1,align:"middle",gutter:8,children:[(0,A.jsx)(w.Z,{children:(0,A.jsxs)(V.Z,{checked:s,onChange:function(e){l(e.target.checked),c(e.target.checked?p.map((function(e){return e.homework_id})):[]),e.target.checked?k(Z()(p)):k([])},children:["全选本页(",h.length,")"]})}),(0,_.GJ)()&&(0,A.jsx)(w.Z,{children:(0,A.jsx)(re.Z,{placement:"top",menu:{items:n,onClick:function(e){var t=e.key;o({key:t})}},children:(0,A.jsx)(W.ZP,{type:"primary",icon:(0,A.jsx)("i",{className:"iconfont icon-piliangcaozuo3"}),children:"批量操作"})})}),(0,A.jsx)(w.Z,{children:(0,A.jsx)(W.ZP,{type:"primary",onClick:function(){var e={courseId:v.id,container_type:"group_homework"};v.categoryId&&(e.category_id=v.categoryId),g({type:"classroomList/getAllTaskList",payload:e}),g({type:"classroomList/setActionTabs",payload:{key:"调整排序"}})},icon:(0,A.jsx)("i",{className:"iconfont icon-tiaozhengpaixu2"}),children:"调整排序"})}),(0,_.GJ)()&&(0,A.jsx)(w.Z,{children:(0,A.jsx)(re.Z,{placement:"topLeft",dropdownRender:function(){return M},getPopupContainer:function(e){return e.parentNode},children:(0,A.jsxs)(W.ZP,{type:"primary",icon:(0,A.jsx)("i",{className:"iconfont icon-yidongmulu"}),children:["移动到目录 ",(0,A.jsx)(me.Z,{})]})})}),(0,_.GJ)()&&(0,A.jsx)(w.Z,{children:(0,A.jsx)(W.ZP,{type:"primary",onClick:function(){return o({key:"collection",label:"收藏"})},icon:(0,A.jsx)("i",{className:"iconfont icon-shoucang1"}),children:"收藏"})})]})}),(0,A.jsx)(w.Z,{children:(0,A.jsx)(W.ZP,{type:"primary",ghost:!0,onClick:function(){c([]),f(!1)},children:"取消操作"})})]})})},fe=n(96544),ge=n(20208),ve=n(52352),xe=n(75774),we=n(81327),ye=n(57930),be=n(71418),je=n(61186),ke=n.n(je),Ce=n(33656),_e=n.n(Ce),Se=n(54602),Te=n(1058),Ze=["classroomList","dispatch","user","getData"];ke().extend(_e());var Le=function(e){var t,n,o,i,r=e.data,a=e.value,s=e.onChange,c=(0,d.useState)({leftSearch:"",rigthSearch:""}),p=u()(c,2),m=p[0],h=p[1],f=(0,d.useState)([]),g=u()(f,2),v=g[0],y=g[1];return(0,d.useEffect)((function(){y((null==a?void 0:a.length)>0?null==r?void 0:r.filter((function(e){return null==a?void 0:a.includes(null==e?void 0:e.id)})):[])}),[a]),(0,A.jsxs)("div",{style:{display:"flex",flexWrap:"nowrap",gap:"20px",height:"400px"},children:[(0,A.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,A.jsx)(V.Z,{indeterminate:(null==v?void 0:v.length)>0&&(null==v?void 0:v.length)<(null==r?void 0:r.length),checked:(null==v?void 0:v.length)==(null==r?void 0:r.length),onChange:function(e){s(e.target.checked?null==r?void 0:r.map((function(e){return null==e?void 0:e.id})):[])},children:"全选"}),(0,A.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,A.jsx)(Y.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:m.leftSearch,onChange:function(e){h(l()(l()({},m),{},{leftSearch:e.target.value}))}}),(0,A.jsx)("div",{className:"mt20 ml20 mb20",style:{overflow:"auto"},children:0!==(null===(t=m.leftSearch?null==r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.leftSearch)})):r)||void 0===t?void 0:t.length)?(0,A.jsx)(V.Z.Group,{value:a,onChange:function(e){s(e)},children:(0,A.jsx)(we.Z,{direction:"vertical",children:null===(n=m.leftSearch?null==r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.leftSearch)})):r)||void 0===n?void 0:n.map((function(e,t){return(0,A.jsx)(V.Z,{value:e.id,children:null==e?void 0:e.name},t)}))})}):(0,A.jsx)(J.Z,{styles:{margin:"0 auto"}})})]})]}),(0,A.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,A.jsxs)("div",{children:["已选择",(null==v?void 0:v.length)||0,"个分班"]}),(0,A.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,A.jsx)(Y.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:m.rigthSearch,onChange:function(e){h(l()(l()({},m),{},{rigthSearch:e.target.value}))}}),(0,A.jsx)("div",{className:"mt20 ml20 mb20 pr20",style:{display:"flex",flexDirection:"column",gap:"10px",overflow:"auto"},children:0!==(null===(o=m.rigthSearch?null==v?void 0:v.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.rigthSearch)})):v)||void 0===o?void 0:o.length)?null===(i=m.rigthSearch?null==v?void 0:v.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.rigthSearch)})):v)||void 0===i?void 0:i.map((function(e,t){return(0,A.jsxs)(x.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,A.jsx)(w.Z,{children:null==e?void 0:e.name}),(0,A.jsx)(w.Z,{children:(0,A.jsx)("i",{className:"iconfont icon-piliangshanchu2 font16 current",style:{color:"#3061D0"},onClick:function(){s(null==a?void 0:a.filter((function(t){return t!==(null==e?void 0:e.id)})))}})})]},t)})):(0,A.jsx)(J.Z,{styles:{margin:"0 auto"}})})]})]})]})},Ne=(0,p.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,o,r,s,c,h=e.classroomList,f=e.dispatch,g=(e.user,e.getData),y=(O()(e,Ze),(0,p.useParams)()),b=F.Z.useForm(),j=u()(b,1)[0],k="批量补交"===(null==h||null===(t=h.actionTabs)||void 0===t?void 0:t.key),C=(0,Te.U)(Se.c_,l()(l()({},y),null==h||null===(n=h.actionTabs)||void 0===n?void 0:n.params)),_=u()(C,4),T=_[1],Z=_[2],L=_[3],N=(0,Te.U)(Se.nP,{course_id:null==y?void 0:y.coursesId,homework_ids:null==h||null===(o=h.actionTabs)||void 0===o?void 0:o.selectArrs}),P=u()(N,4),B=P[2],E=P[3],M=(0,Te.U)(Se.sm,{course_id:null==y?void 0:y.coursesId,homework_ids:null==h||null===(r=h.actionTabs)||void 0===r?void 0:r.selectArrs}),I=u()(M,3),D=I[1],G=I[2],H=function(){var e=a()(i()().mark((function e(){var t=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:{},B({}),e.next=4,Z({page:1,limit:2e4,homework_id:1===h.actionTabs.type?"":h.actionTabs.selectArrs[0]});case 4:e.sent;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,d.useEffect)((function(){k&&H()}),[k]),(0,A.jsxs)(v.Z,{centered:!0,title:null==h||null===(s=h.actionTabs)||void 0===s?void 0:s.key,width:800,open:k,cancelText:"暂不补交",okText:"开启补交",onCancel:function(){f({type:"classroomList/setActionTabs",payload:{}})},destroyOnClose:!0,confirmLoading:D,onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:j.submit();case 1:case"end":return e.stop()}}),e)}))),children:[(0,A.jsx)("div",{className:"p10 pl20 pr20 c-orange-ff7 mb20",style:{background:"#F6F7F9"},children:"规则说明:补交截止时间必须晚于作业截止时间;当班级阶段进入“补交中”则不可变更作业截止时间、不可关闭补交;当作业状态为未发布、作业已开启统一补交和作业已开启匿评时,新批量补交规则不生效。"}),(0,A.jsxs)(F.Z,{form:j,colon:!1,size:"large",initialValues:{unified_late:!1,late_penalty:5},onFinish:function(){var e=a()(i()().mark((function e(t){var n,o,r,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,G((null==L||null===(n=L.course_groups)||void 0===n?void 0:n.length)>0?{unified_late:(null==L||null===(o=L.course_groups)||void 0===o?void 0:o.length)<=0,allow_late_settings:[l()({},t)]}:l()({unified_late:(null==L||null===(r=L.course_groups)||void 0===r?void 0:r.length)<=0},t));case 2:0==(null==(a=e.sent)?void 0:a.status)&&(m.ZP.success("补交设置成功"),f({type:"classroomList/setActionTabs",payload:{}}),g&&g());case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,A.jsxs)(x.Z,{wrap:!1,gutter:20,children:[(0,A.jsx)(w.Z,{flex:1,children:(0,A.jsx)(F.Z.Item,{label:"补交扣分",name:"late_penalty",rules:[{required:!0,message:"请输入补交扣分"}],children:(0,A.jsx)(Y.Z,{placeholder:"请输入补交扣分",min:0,type:"number",suffix:"分",max:Number.MAX_SAFE_INTEGER,style:{width:"50%"}})})}),(0,A.jsx)(w.Z,{flex:"390px",children:(0,A.jsx)(F.Z.Item,{label:"补交截止时间",name:"late_time",rules:[{required:!0,validator:function(e,t,n){return t&&ke()(t).startOf("minute")<=ke()().startOf("minute")?Promise.reject("作业补交截止时间必须晚于此刻"):t&&ke()(t).startOf("minute")<=ke()(null==E?void 0:E.max_late_time).startOf("minute")?(m.ZP.warning("补交截止时间不能小于选中作业中最晚作业截止时间:".concat(null==E?void 0:E.max_late_time)),Promise.reject("")):Promise.resolve()}},{required:!0,message:"请先设置补交截止时间"}],children:(0,A.jsx)(ye.default,{placeholder:"请选择截止时间",style:{width:"100%"},disabledDate:function(e){return(0,S.BO)(e,{startTime:null==E?void 0:E.max_late_time})},disabledTime:function(e){return(0,S.hv)(e,{compared:null==E?void 0:E.max_late_time})},format:"YYYY-MM-DD HH:mm",showTime:{showSecond:!1,defaultValue:ke()("00:00:00","HH:mm:ss")}})})})]}),(null==L||null===(c=L.course_groups)||void 0===c?void 0:c.length)>0&&(0,A.jsx)(be.Z,{spinning:T,children:(0,A.jsx)(F.Z.Item,{name:"group_id",rules:[{required:!0,message:"请先选择班级"}],children:(0,A.jsx)(Le,{data:(null==L?void 0:L.course_groups)||[],onChange:function(e){B({group_ids:e})}})})})]})]})})),Ae=(0,d.createContext)({selectArrs:[]}),Pe=(0,p.connect)((function(e){var t=e.user,n=e.classroomList,o=e.loading;return{user:t,classroomList:n,globalSetting:e.globalSetting,loading:o.effects}}))((function(e){var t,n,o,r,s=e.user,c=e.classroomList,T=e.loading,Z=e.dispatch,N=(0,p.useParams)(),I=(0,p.useSearchParams)(),O=u()(I,1)[0],D=(0,d.useState)((function(){return l()(l()({},N),{},{id:N.coursesId,limit:20})})),H=u()(D,2),R=H[0],z=H[1],F=(0,d.useState)(!1),W=u()(F,2),Y=W[0],V=W[1],U=(0,d.useState)({ta_mode:1,final_mode:!1,st_proportion:0,ta_proportion:30,te_proportion:70,gr_proportion:0,is_repeat_minus:!1,is_group_grade:!1,repeat_setting_score:"",repeat_limit:""}),K=u()(U,2),q=K[0],Q=K[1],te=(0,d.useState)([]),re=u()(te,2),ae=re[0],se=re[1],le=(0,d.useState)(!1),ce=u()(le,2),de=ce[0],pe=ce[1],me=(0,d.useState)(!1),we=u()(me,2),ye=we[0],be=we[1],je=(0,d.useState)([]),ke=u()(je,2),Ce=ke[0],_e=ke[1],Se=(0,d.useState)(!1),Te=u()(Se,2),Ze=(Te[0],Te[1],(0,d.useState)("默认排序")),Le=u()(Ze,2),Pe=Le[0],Be=Le[1],Ee=(0,p.useLocation)(),Me=c.detailCommonHomeworksList,Ie=c.detailLeftMenus,Oe=c.detailTopBanner,De=c.taskList;O.get("tabs")&&parseInt(O.get("tabs"));R.type=3,R.categoryId?R.category=R.categoryId:delete R.category,(0,d.useEffect)((function(){z(l()(l()({},R),N))}),[null==N?void 0:N.categoryId]),(0,d.useEffect)((function(){"0"===O.get("tabs")&&(R.status="0",R.page=1)}),[O.get("tabs")]),(0,d.useEffect)((function(){var e=O.get("tabs");e&&void 0!==e&&((0,_.GJ)()?R.status=e:R.order=e)}),[O.toString()]),(0,d.useEffect)((function(){Z({type:"classroomList/getAssistantPermissions",payload:{course_id:R.id}})}),[]),(0,d.useEffect)((function(){var e,t,n=O.get("tabs");if(null!=s&&null!==(e=s.userInfo)&&void 0!==e&&e.login){var o,i=S.cX.getItem("".concat(null==s||null===(o=s.userInfo)||void 0===o?void 0:o.login).concat((0,_.GJ)()?"Teacher":"Student"),"GroupHomework");i&&(R.sort_by=null==i?void 0:i.type,R.sort_direction=null==i?void 0:i.direction,Be(null==i?void 0:i.name));var r=void 0===N.categoryId?{}:{categoryId:N.categoryId,category:N.categoryId};n&&void 0!==n&&((0,_.GJ)()?R.status=n:R.order=n),Ge(r)}else if(null!=s&&null!==(t=s.userInfo)&&void 0!==t&&t.username){var a=void 0===N.categoryId?{}:{categoryId:N.categoryId,category:N.categoryId};n&&void 0!==n&&((0,_.GJ)()?R.status=n:R.order=n),Ge(a)}}),[null==s||null===(t=s.userInfo)||void 0===t?void 0:t.login,null==Ee?void 0:Ee.pathname]),(0,d.useEffect)((function(){"目录重命名成功"===c.actionTabs.key&&Ge(),"目录重命名成功"===c.actionTabs.key&&Ge()}),[c.actionTabs.key]),(0,d.useEffect)((function(){se([])}),[Me]),(0,d.useEffect)((function(){be(!1)}),[R.categoryId]),(0,d.useEffect)((function(){Me&&Me.homeworks&&(ae.length===Me.homeworks.length&&ae.length>0?pe(!0):ae.length!==Me.homeworks.length&&pe(!1))}),[ae]);var Ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};se([]),_e([]),(0,_.GJ)()?Z({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()(l()({},R),e),{},{type:3})}):Z({type:"classroomList/getClassroomCommonList",payload:l()(l()({},R),e)})},He=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/courses/".concat(R.coursesId,"/homework_commons/get_default_score_setting.json"),{method:"get",params:{homework_type:3}});case 2:null!=(t=e.sent)&&t.data&&(n=t.data.score_settings,Object.keys(n).map((function(e){e.indexOf("proportion")>-1&&(n[e]=(100*n[e]).toFixed(0))})),console.log(n),Q(l()({},n)));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,d.useEffect)((function(){se([])}),[Me]);var Re=function(){Z({type:"shixunHomeworks/setActionTabs",payload:{key:"题库选用",params:R}})},ze=null===(n=[{key:"publish",label:"批量发布",icon:(0,A.jsx)("i",{className:"iconfont icon-fabu5"}),isShow:!0},{key:"deadline",label:"批量截止",icon:(0,A.jsx)("i",{className:"iconfont icon-piliangjiezhi2"}),isShow:(0,_.GJ)()||(0,_.Rm)()},{key:"batchpay",label:"批量补交",icon:(0,A.jsx)("i",{className:"iconfont icon-buka"}),isShow:!0},{key:"delete",label:"批量删除",icon:(0,A.jsx)("i",{className:"iconfont icon-piliangshanchu2"}),isShow:!0},{key:"public",label:"设为公开",icon:(0,A.jsx)("i",{className:"iconfont icon-sheweigongkai2"}),isShow:Oe.is_public}].filter((function(e){return null==e?void 0:e.isShow})))||void 0===n?void 0:n.map((function(e){return delete e.isShow,e})),Fe=function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Z({type:"classroomList/updateTaskPosition",payload:{category_id:R.categoryId,courseId:R.id,task_ids:t,container_type:"group_homework"}});case 2:Ge();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),We=(0,d.useMemo)((function(){var e=[];return De.length>0&&(e=De.map((function(e){return{user_name:e.user_name,task_name:e.task_name,task_id:e.task_id,category:e.category,status:e.status}}))),e}),[De]);return(0,A.jsx)(Ae.Provider,{value:{params:R,batchStatus:ye,selectArrs:ae,setSelectArrs:se,allSelect:de,dataSource:Me.homeworks||[],detailLeftMenus:Ie,main_category_id:Me.main_category_id||"",selectArrsAll:Ce,setAllSelect:pe,useBatchStatus:be,dispatch:Z,getData:Ge,setSelectArrsAll:_e},children:(0,A.jsxs)("section",{children:[(0,A.jsxs)("aside",{className:oe,children:[(0,A.jsx)(ie.Z,{isLoading:T[(0,_.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"],tabDataSource:(0,_.GJ)()?[{name:"全部",id:0,total:Me.all_count||0},{name:"未发布",id:1,total:Me.unpublished_count||0},{name:"未开始",id:4,total:Me.not_start_count||0},{name:"进行中",id:2,total:Me.in_progress_count||0},{name:"已截止",id:3,total:Me.overed_count||0}]:[{name:"全部",id:0},{name:"提交中",id:1},{name:"补交中",id:2},{name:"匿评中",id:3},{name:"申诉中",id:4},{name:"已截止",id:5}],isAdmin:(0,_.GJ)(),dispatch:Z,type:null==Me?void 0:Me.main_category_name,exportType:"group",TooltipTitle:R.categoryId?"目录重命名":"新建子目录",categoryId:R.categoryId,dropdownMenu:[{name:"新建分组作业",id:"1"},{name:"选用资源",id:"2"},{name:"导入外部成绩",id:"3"}],isShowRightControl:"未分配目录"!==(0,S.Oo)(null==Ie?void 0:Ie.course_modules,R.categoryId),onsetClick:function(){He(),V(!0)},onTabMenuClick:function(e){void 0!==e.id&&((0,_.GJ)()?R.status=e.id:R.order=e.id),be(!1),R.page=1,p.history.replace("".concat(Ee.pathname,"?tabs=").concat(e.id)),Ge(R)},defaultSelectedKeys:[O.get("tabs")?O.get("tabs"):"0"],onTooltipTitleClick:function(){Z({type:"classroomList/setActionTabs",payload:{key:R.categoryId?"目录重命名":"添加目录",params:R,selectArrs:{category_name:null==Me?void 0:Me.category_name,category_id:(null==Me?void 0:Me.category_id)||(null==Me?void 0:Me.main_category_id)},cb:function(){Ge()}}})},onDropdownMenuClick:function(e){var t;!(0,_.Rm)()||null!==(t=c.AssistantObject.group)&&void 0!==t&&t.can_create?"1"===e?p.history.push("/classrooms/".concat(R.coursesId,"/group_homework/").concat(R.categoryId,"/add")):"2"===e?Re():"3"===e&&Z({type:"classroomList/setActionTabs",payload:{key:"导入外部成绩",type:"group"}}):m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),(0,A.jsx)(fe.Z,{dataSource:Me.homeworks||[],isAdmin:(0,_.GJ)(),batchStatus:ye,SortMenuName:Pe,setSortMenuName:Be,onSearch:function(e){R.search=e.trim(),R.page=1,Ge()},onSort:function(e){var t;R.sort_by=e.type,R.sort_direction=e.direction,R.page=1,S.cX.setItem("".concat(null==s||null===(t=s.userInfo)||void 0===t?void 0:t.login).concat((0,_.GJ)()?"Teacher":"Student"),e,"GroupHomework"),Ge(R)},onBatch:function(e){return be(e)}})]}),(0,A.jsxs)(h.Z,{loading:T["classroomList/getClassroomCommonHomeworksList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30",children:[0===(null==Me?void 0:Me.all_count)&&(0,_.GJ)()?!T[(0,_.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,A.jsx)(ne,{params:R,dispatch:Z,onSelect:Re}):(null==Me?void 0:Me.homeworks)&&0===Me.homeworks.length&&!T[(0,_.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,A.jsx)(J.Z,{}),(0,A.jsx)("aside",{className:"minH500 skt-loading relative pb40 mb30",children:!T[(0,_.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,A.jsxs)(A.Fragment,{children:[(0,A.jsxs)("aside",{className:"animated fadeIn",children:[null==Me||null===(o=Me.homeworks)||void 0===o?void 0:o.map((function(e,t){return(0,A.jsx)(ue,{dataSource:e,params:R,manageAllGroup:null==Me?void 0:Me.manage_all_group},t)})),(0,A.jsx)("aside",{className:"tc mb50 mt30",children:(null==Me?void 0:Me.query_total_count)>10&&(0,A.jsx)(f.Z,{showSizeChanger:!0,onChange:function(e,t){R.page=e,R.limit=t,Ge()},defaultCurrent:1,current:R.page||1,pageSize:R.limit||20,total:Me.query_total_count})})]}),ae.length>0&&(0,_.GJ)()&&(0,A.jsx)(g.Z,{offsetBottom:0,children:(0,A.jsx)(he,{buttonDataSource:ze,onClick:function(e){var t,n;if(0===ae.length)return m.ZP.error("请选择你要操作的任务"),!1;var o=e.label||"",i={key:o,selectArrs:ae,selectArrsAll:Ce,type:["publish","deadline"].includes(e.key)?1:"",params:R};switch(e.key){case"publish":if((0,_.Rm)()&&(null==c||null===(t=c.AssistantObject)||void 0===t||null===(t=t.group)||void 0===t||!t.can_publish))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");o="立即发布";break;case"deadline":if((0,_.Rm)()&&(null==c||null===(n=c.AssistantObject)||void 0===n||null===(n=n.group)||void 0===n||!n.can_stop))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");o="立即截止";break;case"batchpay":o="批量补交";break;case"delete":o="删除";break;case"collection":o="收藏"}Z({type:"classroomList/setActionTabs",payload:l()(l()({},i),{},{key:o})})}})})]})})]}),"批量补交"===(null==c||null===(r=c.actionTabs)||void 0===r?void 0:r.key)&&(0,A.jsx)(Ne,{getData:Ge}),(0,A.jsx)(P,{onCallback:function(){return be(!1)}}),(0,A.jsx)(ge.Z,{onOk:function(){Ge()}}),(0,A.jsx)(ve.Z,{onOk:function(){}}),(0,A.jsx)(B.Z,{onCallback:function(){return be(!1)},courseEndTime:null==Me?void 0:Me.course_end_time}),(0,A.jsx)(E.Z,{courseEndTime:null==Me?void 0:Me.course_end_time,courseId:N.coursesId,visible:"立即截止"===c.actionTabs.key,isBatch:2!==c.actionTabs.type,homeworkIds:c.actionTabs.selectArrs,successCallback:function(){be(!1),Ge()}}),(0,A.jsx)(M,{}),(0,A.jsx)(X,{}),(0,A.jsx)(G,{onCallback:function(){return be(!1)}}),(0,A.jsx)($.Z,{}),(0,A.jsx)(ee.Z,{}),(0,A.jsx)(xe.Z,{visible:"调整排序"===c.actionTabs.key,callback:Fe,data:We,onCancel:function(){Z({type:"classroomList/setActionTabs",payload:{key:""}})}}),(0,A.jsx)(v.Z,{open:Y,title:"默认评分设置",centered:!0,onCancel:function(){V(!1)},onOk:a()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=JSON.parse(JSON.stringify(q)),Object.keys(t).map((function(e){e.indexOf("proportion")>-1&&(t[e]=t[e]/100)})),e.next=4,(0,L.ZP)("/api/courses/".concat(R.coursesId,"/homework_commons/set_default_score_setting.json"),{method:"post",body:{homework_type:3,score_settings:t}});case 4:0===e.sent.status&&(m.ZP.success("设置成功"),V(!1));case 6:case"end":return e.stop()}}),e)}))),width:800,children:(0,A.jsxs)("div",{children:[(0,A.jsx)(x.Z,{children:(0,A.jsx)(w.Z,{span:24,children:(0,A.jsx)(x.Z,{align:"middle",children:(0,A.jsx)(w.Z,{span:24,children:(0,A.jsx)("div",{className:"mt15",children:"该默认规则将被应用于你后续新建的分组作业,且不会影响你已创建的作业以及其他老师新建作业的评分规则。"})})})})}),(0,A.jsxs)(x.Z,{align:"middle",className:"mt25",children:[(0,A.jsx)(w.Z,{children:(0,A.jsx)("strong",{children:"组长评分"})}),(0,A.jsxs)(x.Z,{className:"ml10",children:[(0,A.jsx)(w.Z,{children:(0,A.jsx)(y.Z,{checked:q.is_group_grade,onChange:function(e){q.is_group_grade=e,Q(l()({},q))}})}),(0,A.jsx)(w.Z,{className:"c-grey-c ml10",children:"(选中,则组长首次提交作业时需要对组员进行评分)"})]})]}),(0,A.jsxs)(x.Z,{className:"mt25",children:[(0,A.jsx)(w.Z,{children:(0,A.jsx)("strong",{children:"助教评分"})}),(0,A.jsx)(w.Z,{span:24,className:"pl30 mt10"})]}),(0,A.jsx)(x.Z,{children:(0,A.jsxs)(b.ZP.Group,{value:null==q?void 0:q.ta_mode,onChange:function(e){q.ta_mode=e.target.value,Q(l()({},q))},children:[(0,A.jsxs)(b.ZP,{value:1,style:{marginTop:15},children:[(0,A.jsx)("strong",{children:"普通模式"}),(0,A.jsx)("span",{className:"c-grey-c",children:"(选中,则取各助教最终评分的平均分)"})]}),(0,A.jsx)("br",{}),(0,A.jsxs)(b.ZP,{value:0,style:{marginTop:15},children:[(0,A.jsx)("strong",{children:"复审模式"}),(0,A.jsx)("span",{className:"c-grey-c",children:"(选中,则只取最新的助教评分)"})]})]})}),(0,A.jsxs)(x.Z,{className:"mt25",children:[(0,A.jsx)(w.Z,{children:(0,A.jsx)("strong",{children:"最终成绩组成"})}),(0,A.jsx)(w.Z,{span:24,className:"pl30 mt10"})]}),(0,A.jsxs)(x.Z,{children:[(0,A.jsxs)(b.ZP.Group,{value:q.final_mode,onChange:function(e){q.final_mode=e.target.value,Q(l()({},q))},children:[(0,A.jsxs)(b.ZP,{value:!1,style:{marginTop:15},children:[(0,A.jsx)("strong",{children:"多项评分配比"}),(0,A.jsxs)("span",{className:"c-grey-c",children:["(选中,则按照比例计算最终成绩)",(0,A.jsx)(j.Z,{overlayClassName:"edu-popover",placement:"bottomLeft",content:(0,A.jsxs)("span",{className:"font14",children:["计算说明:",(0,A.jsx)("br",{}),"教师评分 * 其百分比 + 助教评分 * 其百分比 + 组长评分 * 其百分比 + 学生匿评平均分 * 其百分比 - ( ",(0,A.jsx)("br",{}),"迟交扣分 + 缺评扣分 * 缺评数 + 违规匿评扣分 * 违规匿评数 )",(0,A.jsx)("br",{}),(0,A.jsx)("br",{}),"注意",(0,A.jsx)("br",{}),"非零百分比的评分选项,若评分记录为空,则其百分比将自动平摊到其它非零",(0,A.jsx)("br",{}),"评分选项上。",(0,A.jsx)("br",{}),"例:教师评分40% + 助教评分35% + 学生匿评25%,学生A没有教师评分记",(0,A.jsx)("br",{}),"录,则其最终成绩按照助教评分55% + 学生匿评45%进行计算"]}),trigger:"click",children:(0,A.jsx)("span",{className:"mt10 ml10 current font14",children:(0,A.jsx)(C.Z,{})})})]})]}),(0,A.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,A.jsx)(w.Z,{children:"教师评分:"}),(0,A.jsxs)(w.Z,{className:"ml5",children:[(0,A.jsx)(k.Z,{min:0,max:100,value:q.te_proportion,onChange:function(e){q.te_proportion=e,Q(Object.assign({},q))}}),(0,A.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,A.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,A.jsx)(w.Z,{children:"助教评分:"}),(0,A.jsxs)(w.Z,{className:"ml5",children:[(0,A.jsx)(k.Z,{min:0,max:100,value:q.ta_proportion,onChange:function(e){q.ta_proportion=e,Q(Object.assign({},q))}}),(0,A.jsx)("span",{className:"ml10",children:"%"})]})]}),q.is_group_grade&&(0,A.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,A.jsx)(w.Z,{children:"组长评分:"}),(0,A.jsxs)(w.Z,{className:"ml5",children:[(0,A.jsx)(k.Z,{min:0,max:100,value:q.gr_proportion,onChange:function(e){q.gr_proportion=e,Q(Object.assign({},q))}}),(0,A.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,A.jsxs)(x.Z,{align:"middle",className:"mt25 pl30 font14",children:[(0,A.jsx)(w.Z,{children:"学生匿评:"}),(0,A.jsxs)(w.Z,{className:"ml5",children:[(0,A.jsx)(k.Z,{min:0,max:100,value:q.st_proportion,onChange:function(e){q.st_proportion=e,Q(Object.assign({},q))}}),(0,A.jsx)("span",{className:"ml10",children:"%"})]})]}),(0,A.jsx)("br",{}),(0,A.jsxs)(b.ZP,{value:!0,style:{marginTop:15},children:[(0,A.jsx)("strong",{children:"单项评分优先"}),(0,A.jsxs)("span",{className:"c-grey-c",children:["(选中,则按照优先顺序计算最终成绩)",(0,A.jsx)(j.Z,{overlayClassName:"edu-popover",placement:"bottomLeft",content:(0,A.jsxs)("span",{className:"font14",children:["计算说明:",(0,A.jsx)("br",{}),"优先顺序排前的非零评分 * 100% - ",(0,A.jsx)("br",{}),"( 迟交扣分 + 缺评扣分 * 缺评数 + 违规匿评扣分 * 违规匿评数 )",(0,A.jsx)("br",{}),"例:有教师评分则教师评分100%,否则教辅评分100%,依次类推"]}),trigger:"click",children:(0,A.jsx)("span",{className:"mt10 ml10 current font14",children:(0,A.jsx)(C.Z,{})})})]})]}),(0,A.jsx)(x.Z,{children:(0,A.jsx)(w.Z,{span:24,className:"ml20",children:(0,A.jsx)("div",{style:{color:"#ccc"},children:"(教师评分 → 助教评分 → 组长评分 → 学生匿评评分)"})})})]}),(0,A.jsx)("br",{})]})]})})]})})}))},52352:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(59028),f=n(78241),g=n(43418),v=n(8591),x=n(61998),w=n(5296),y=n(92723),b=n(57102),j=n(18030),k=n(61186),C=n.n(k),_=n(21082),S=n(37712),T=h.Z.Dragger;t.Z=(0,w.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,o=e.dispatch,r=e.onOk,s=((0,w.useParams)(),f.Z.useForm()),c=p()(s,1)[0],d=(0,m.useState)(),h=p()(d,2),k=h[0],Z=h[1],L=(0,m.useState)(!1),N=p()(L,2),A=N[0],P=N[1],B={height:100,onRemove:function(){Z("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:(t=u()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,m.useEffect)((function(){c.setFieldsValue(a()(a()({},"publish_time",C()(C()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",C()(C()(new Date((0,_.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),[]),(0,S.jsx)(g.Z,{centered:!0,title:"补充成绩",open:"补充成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:A},onOk:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){c.resetFields(),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,S.jsxs)(f.Z,{form:c,onFinish:function(){var e=u()(l()().mark((function e(t){var i,a,s,u,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=k&&k.size){e.next=3;break}return v.ZP.info("请上传文件"),e.abrupt("return");case 3:return P(!0),(i=new FormData).append("type",n.actionTabs.type),i.append("file",k),a=window.location.href.indexOf("exercise")>-1?"/api/exercises/".concat(n.actionTabs.id,"/supplement_score.json"):"/api/homework_commons/".concat(n.actionTabs.id,"/supplement_score.json"),e.next=10,(0,j.ZP)(a,{method:"post",body:i},!0);case 10:s=e.sent,P(!1),0===(null==s?void 0:s.status)&&(r(),c.resetFields(),o({type:"classroomList/setActionTabs",payload:{}}),(null==s||null===(u=s.data)||void 0===u||null===(u=u.fail)||void 0===u?void 0:u.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,S.jsx)(x.Z,{pagination:!1,dataSource:null==s||null===(d=s.data)||void 0===d?void 0:d.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,_.FH)("",y.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,S.jsx)(f.Z.Item,{label:"作业名称",labelCol:{span:3},name:"name",children:n.actionTabs.name}),(0,S.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,S.jsxs)("div",{children:[(0,S.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,S.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,S.jsxs)("div",{children:[(0,S.jsx)("a",{download:"模版.xlsx",className:b.Z.downloadbutton,href:y.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,S.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,S.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,S.jsxs)(T,i()(i()({},B),{},{children:[(0,S.jsx)("a",{className:b.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,S.jsx)("br",{}),(0,S.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},20208:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(59028),f=n(78241),g=n(43418),v=n(8591),x=n(61998),w=n(92832),y=n(95237),b=n(43604),j=n(94001),k=n(57930),C=n(5296),_=n(16318),S=n(92723),T=n(57102),Z=n(18030),L=n(63363),N=n(61186),A=n.n(N),P=n(21082),B=n(37712),E=h.Z.Dragger;t.Z=(0,C.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,o=e.dispatch,r=e.onOk,s=(0,C.useParams)(),c=f.Z.useForm(),d=p()(c,1)[0],h=(0,m.useState)(),N=p()(h,2),M=N[0],I=N[1],O=(0,m.useState)(!1),D=p()(O,2),G=D[0],H=D[1],R={height:100,onRemove:function(){I("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:(t=u()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,m.useEffect)((function(){d.setFieldsValue(a()(a()({},"publish_time",A()(A()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",A()(A()(new Date((0,P.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),["导入外部成绩"===n.actionTabs.key]),(0,B.jsx)(g.Z,{centered:!0,title:"导入外部成绩",open:"导入外部成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:G},onOk:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:d.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){d.resetFields(),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,B.jsxs)(f.Z,{form:d,colon:!1,onFinish:function(){var e=u()(l()().mark((function e(t){var i,a,c,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=M&&M.size){e.next=3;break}return v.ZP.info("请上传文件"),e.abrupt("return");case 3:return H(!0),(i=new FormData).append("name",t.name),i.append("type",n.actionTabs.type),i.append("category_id",(null==s?void 0:s.categoryId)||null),"exercise"===n.actionTabs.type?(i.append("time",t.time||""),i.append("total_score",t.total_score)):i.append("description",t.description||""),i.append("publish_time",A()(t.publish_time).format("YYYY-MM-DD HH:mm")),i.append("end_time",A()(t.end_time).format("YYYY-MM-DD HH:mm")),i.append("file",M),e.next=14,(0,Z.ZP)("/api/courses/".concat(s.coursesId,"/export_external_score_homework.json"),{method:"post",body:i},!0);case 14:a=e.sent,H(!1),0===(null==a?void 0:a.status)&&(d.resetFields(),o({type:"classroomList/setActionTabs",payload:{}}),r(),(null==a||null===(c=a.data)||void 0===c||null===(c=c.fail)||void 0===c?void 0:c.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,B.jsx)(x.Z,{pagination:!1,dataSource:null==a||null===(u=a.data)||void 0===u?void 0:u.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,P.FH)("",S.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,B.jsx)(f.Z.Item,{label:"exercise"!==n.actionTabs.type?"作业":"试卷名称",labelCol:{span:3},name:"name",rules:[{required:!0,message:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称")}],children:(0,B.jsx)(w.Z,{showCount:!0,placeholder:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称"),maxLength:60})}),"exercise"!==n.actionTabs.type&&(0,B.jsx)(f.Z.Item,{label:"作业描述",labelCol:{span:3},name:"description",children:(0,B.jsx)(_.Z,{watch:!0})}),"exercise"===n.actionTabs.type&&(0,B.jsxs)(y.Z,{style:{marginLeft:6},children:[(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"试卷总分",name:"total_score",rules:[{required:!0,message:"请填写试卷总分"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"试卷总分必须为正数"}],children:(0,B.jsx)(w.Z,{placeholder:"请输入试卷总分",style:{width:256},addonAfter:"分"})})}),(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"答题时长",labelCol:{span:6},name:"time",children:(0,B.jsx)(j.Z,{style:{width:"100%"},addonAfter:"分钟",placeholder:"请输入答题时长"})})})]}),(0,B.jsxs)(y.Z,{style:{marginLeft:6,marginBottom:12},children:[(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"开始时间",name:"publish_time",rules:[{required:!0,message:"请选择开始时间"}],children:(0,B.jsx)(k.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:256},disabledDate:function(e){return(0,L.Q8)(e)},disabledTime:function(e){return(0,L.d0)(e)},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})}),(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"结束时间",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"请选择结束时间"}],children:(0,B.jsx)(k.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:function(e){return(0,L.Q8)(e,"",d.getFieldValue("publish_time"))},disabledTime:function(e){return(0,L.d0)(e,d.getFieldValue("publish_time"))},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})})]}),(0,B.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,B.jsxs)("div",{children:[(0,B.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,B.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,B.jsxs)("div",{children:[(0,B.jsx)("a",{download:"模版.xlsx",className:T.Z.downloadbutton,href:S.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,B.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,B.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,B.jsxs)(E,i()(i()({},R),{},{children:[(0,B.jsx)("a",{className:T.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,B.jsx)("br",{}),(0,B.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},95335:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),u=n(92832),d=n(24905),p=n(95237),m="leftdiv___aBzsX",h="listClass___bxIEW",f="spantitle___v_Vc4",g="rightdiv___xWu4M",v=n(54313),x=n(37712),w=function(e){var t=e.data,n=(e.value,e.handleChangePage,e.setSelectedRowKeys),o=e.selectedRowKeys,r=(e.onChange,(0,c.useState)([])),s=l()(r,2),w=s[0],y=s[1],b=(0,c.useState)([]),j=l()(b,2),k=j[0],C=j[1],_=(0,c.useState)([]),S=l()(_,2),T=S[0],Z=S[1],L=(0,c.useState)(1),N=l()(L,2),A=(N[0],N[1],(0,c.useState)()),P=l()(A,2);P[0],P[1];return(0,c.useEffect)((function(){y(t),C([]),Z([])}),[t]),(0,c.useEffect)((function(){n&&(C(o),Z(o))}),[o]),(0,x.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,x.jsxs)("div",{className:m,children:[(0,x.jsx)(u.Z.Search,{size:"middle",onChange:function(){var e=a()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y(t.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(n.target.value)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),placeholder:"可输入班级名称查询"}),0===w.length&&(0,x.jsx)(v.Z,{styles:{margin:"70px auto"},customText:"暂无分班"}),(0,x.jsx)("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"},children:(0,x.jsx)(d.Z.Group,{value:k.map((function(e){return"".concat(e.id)})),onChange:function(e){n(w.filter((function(t){return e.includes("".concat(t.id))})))},style:{marginTop:"10px",flexDirection:"column"},children:w.map((function(e,t){return(0,x.jsx)(p.Z,{style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200},children:(0,x.jsx)(d.Z,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:e.is_published,value:"".concat(e.id),children:(0,x.jsxs)("div",{className:h,children:[(0,x.jsx)("span",{className:f,style:{width:e.is_published?"108px":"170px"},children:e.name}),e.is_published&&(0,x.jsx)("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"},children:"已发布"})]})})},e.id)}))})})]}),(0,x.jsxs)("div",{className:g,children:[(0,x.jsx)(u.Z.Search,{onChange:function(e){Z(k.filter((function(t){return t.name.includes(e.target.value)})))},size:"middle",placeholder:"可输入班级名称查询"}),0===T.length&&(0,x.jsx)(v.Z,{styles:{margin:"70px auto"},customText:"暂未选择分班"}),T.length>0&&(0,x.jsx)("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"},children:(0,x.jsx)("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0},children:T.map((function(e,t){return(0,x.jsxs)(p.Z,{justify:"space-between",style:{marginTop:"10px"},children:[(0,x.jsx)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"},children:e.name}),(0,x.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){n(k.filter((function(t){return"".concat(t.id)!="".concat(e.id)})))}})]},e.id)}))})})]})]})}},72764:function(e,t,n){"use strict";n.d(t,{Ei:function(){return x},rU:function(){return w},ZP:function(){return y}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),s=n(59301),l={wrap:"wrap___W3YuU",title:"title___OzKge",exhibition:"exhibition___ugphm"},c=n(78241),u=n(95237),d=n(43604),p=n(24905),m=n(94001),h=n(6848),f=n(92310),g=n.n(f),v=n(37712),x=function(e){var t=e.value,n=e.className,o=e.style,i=(0,s.useState)("0"),r=a()(i,2),c=r[0],u=r[1];(0,s.useEffect)((function(){if(t){var e=t.submit_limit,n=t.must_file;if(e&&n)return void u("1");if(e&&!n)return void u("2");if(!e&&n)return void u("3")}}),[t]);var d={1:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符,并且必须上传相关附件。"]}),2:(0,v.jsxs)("span",{children:["作业内容至少填写",(0,v.jsx)("span",{className:"ml5 mr5 c-light-primary",children:null==t?void 0:t.submit_limit_num}),"字符"]}),3:(0,v.jsx)("span",{children:"必须上传相关附件。"})};return"0"===c?(0,v.jsx)(v.Fragment,{}):(0,v.jsxs)("section",{className:g()(l.exhibition,n),style:o,children:[(0,v.jsx)("span",{className:"c-grey-666 mr10",children:"提交作业要求:"}),null==d?void 0:d[c]]})},w=function(e){var t=e.className,n=e.style,o=e.form,i=c.Z.useWatch("submit_limit",o),r=c.Z.useWatch("can_submit",o);return(0,v.jsx)("section",{className:g()(l.newWrap,t),style:n,children:(0,v.jsxs)("div",{style:{padding:"20px 0",borderBottom:"1px solid #EDEDED"},children:[(0,v.jsx)("h1",{children:"提交设置"}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"can_submit",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"限制学生提交作品"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_num",rules:r&&[{required:!0,message:"请填写作品次数"}],children:(0,v.jsx)(m.Z,{precision:0,min:1,disabled:!r})})}),(0,v.jsx)(d.Z,{children:"次"}),(0,v.jsxs)(d.Z,{children:[" ",(0,v.jsx)(h.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999"})})]})]}),(0,v.jsxs)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:[(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生填写内容至少"})})})}),(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"submit_limit_num",rules:i&&[{required:!0,message:"字数不能为空"}],children:(0,v.jsx)(m.Z,{precision:0,min:1,disabled:!i})})}),(0,v.jsx)(d.Z,{children:"字"})]}),(0,v.jsx)(u.Z,{wrap:!1,align:"middle",gutter:10,className:"mt20",children:(0,v.jsx)(d.Z,{children:(0,v.jsx)(c.Z.Item,{name:"must_file",valuePropName:"checked",children:(0,v.jsx)(p.Z,{children:(0,v.jsx)("span",{className:"font16",children:"学生提交作业必须上传附件"})})})})})]})})},y=function(e){var t=e.value,n=e.onChange,o=e.className,r=e.style,c=e.disabled,d=void 0!==c&&c,f=(0,s.useState)({}),x=a()(f,2),w=x[0],y=x[1];(0,s.useEffect)((function(){if(console.log(t,"value"),t){var e={submit_limit:null==t?void 0:t.submit_limit,submit_limit_num:null==t?void 0:t.submit_limit_num,must_file:null==t?void 0:t.must_file,can_submit:null==t?void 0:t.can_submit,submit_num:null==t?void 0:t.submit_num};y(i()({},e))}}),[t]);var b=function(e){var t=i()(i()({},w),e);n(t)};return(0,v.jsxs)("section",{className:g()(l.wrap,o),style:r,children:[(0,v.jsx)("div",{className:l.title,children:"提交设置"}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==w?void 0:w.can_submit,onChange:function(e){return b({can_submit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"限制学生提交作业"}),(0,v.jsx)(m.Z,{precision:0,min:1,disabled:d||!(null!=w&&w.can_submit),value:null==w?void 0:w.submit_num,onChange:function(e){return b({submit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"次"}),(0,v.jsx)(h.Z,{overlayInnerStyle:{width:520},title:(0,v.jsxs)("div",{children:["1、若未开启该限制,学生可以无限次提交作品;",(0,v.jsx)("br",{}),"2、若作业在补交阶段,已用完提交次数的学生,将获得一次额外的提交作品机会;",(0,v.jsx)("br",{}),"3、若学生需要超出规定次数提交作品,教师可使用“打回重做”功能,让该学生重新提交一次。"]}),children:(0,v.jsx)("i",{className:"iconfont icon-tishixiaowenhao font14 c-grey-999 ml5"})})]}),(0,v.jsxs)(u.Z,{align:"middle",className:"mb20",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==w?void 0:w.submit_limit,onChange:function(e){return b({submit_limit:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10 mr10",children:"学生填写内容至少"}),(0,v.jsx)(m.Z,{precision:0,min:1,disabled:d||!(null!=w&&w.submit_limit),value:null==w?void 0:w.submit_limit_num,onChange:function(e){return b({submit_limit_num:e})}}),(0,v.jsx)("span",{className:"ml5",children:"字"})]}),(0,v.jsxs)(u.Z,{align:"middle",children:[(0,v.jsx)(p.Z,{disabled:d,checked:null==w?void 0:w.must_file,onChange:function(e){return b({must_file:e.target.checked})}}),(0,v.jsx)("span",{className:"ml10",children:"学生提交作业必须上传附件"})]})]})}},75774:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301),p=n(43418),m=n(96865),h=n(95237),f=n(6848),g="wrap___KDoq2",v="tip___WEJuX",x="listWrap___IJDX4",w="li___r5con",y="nameWrap___PUyEz",b="name___xuUMY",j="tag___l5CW2",k=n(78018),C=n(5296),_=n(37712),S=function(e){var t,n,o=e.type,r=void 0===o?1:o,s=e.data,c=e.visible,S=e.callback,T=e.onCancel,Z=(0,d.useState)([]),L=u()(Z,2),N=L[0],A=L[1],P=(0,C.useSelector)((function(e){return e.loading}));(0,d.useEffect)((function(){A(s)}),[JSON.stringify(s)]);var B=function(e){var t={};if(1===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"未开始":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"提交中":{background:"rgba(0,177,135,0.2)",color:"#00B187"},"已截止":{background:"rgba(229,51,51,0.2)",color:"#E53333"}}[e]}if(2===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"预发布":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"已发布":{background:"rgba(0,177,135,0.2)",color:"#00B187"}}[e]}return(0,_.jsx)("div",{className:j,style:l()({},t),children:e})},E=function(){var e=a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:S(N.map((function(e){return e.task_id})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,_.jsx)(p.Z,{centered:!0,destroyOnClose:!0,open:c,onCancel:T,onOk:E,confirmLoading:null==P||null===(t=P.effects)||void 0===t?void 0:t["classroomList/updateTaskPosition"],okText:"保存",title:"调整排序",width:850,children:(0,_.jsxs)("div",{className:g,children:[(0,_.jsxs)("div",{className:v,children:[(0,_.jsx)("i",{className:"iconfont icon-tishi9 font14 mr10"}),(0,_.jsx)("span",{children:"提示:请在列表中长按鼠标左键,进行拖放排序。完成排序后请点击“保存”"})]}),(0,_.jsx)(m.Z,{loading:null==P||null===(n=P.effects)||void 0===n?void 0:n["classroomList/getAllTaskList"],active:!0,className:"mt20",paragraph:{rows:5},children:(0,_.jsx)(k.Z5,{onDragEnd:function(e){return function(e,t){if(e.destination){var n=function(e,t,n){var o=Array.from(e),i=o.splice(t,1),r=u()(i,1)[0];return o.splice(n,0,r),o}(t,e.source.index,e.destination.index);A(n)}}(e,N)},children:(0,_.jsx)(k.bK,{droppableId:"droppable",children:function(e,t){return(0,_.jsxs)("div",l()(l()({ref:e.innerRef},e.droppableProps),{},{className:x,children:[N.map((function(e,t){return(0,_.jsx)(k._l,{draggableId:e.task_id.toString(),index:t,children:function(t,n){return(0,_.jsxs)("div",l()(l()(l()({ref:t.innerRef},t.draggableProps),t.dragHandleProps),{},{className:w,children:[(0,_.jsxs)(h.Z,{align:"middle",children:[(0,_.jsx)("div",{className:y,children:(0,_.jsx)(f.Z,{title:null==e?void 0:e.task_name,children:(0,_.jsx)("div",{className:b,children:null==e?void 0:e.task_name})})}),B(null==e?void 0:e.status)]}),(0,_.jsx)(h.Z,{align:"middle",className:"font12 mt10",children:(0,_.jsxs)("span",{className:"mr30 c-grey-666",children:["管理员",(0,_.jsx)("span",{className:"ml5 c-black",children:(null==e?void 0:e.user_name)||"--"})]})})]}))}},e.task_id)})),e.placeholder]}))}})})})]})})}},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return l},JZ:function(){return u},bN:function(){return m},jP:function(){return p},rO:function(){return c}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(18030);function l(e){return(0,s.U2)("libraries/".concat(e,".json"))}function c(){return(0,s.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,s.v_)("libraries.json",e)}function m(e,t){return(0,s.gz)("libraries/".concat(e,".json"),t)}},1058:function(e,t,n){"use strict";n.d(t,{U:function(){return p}});var o=n(7557),i=n.n(o),r=n(82242),a=n.n(r),s=n(41498),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301);function p(e,t){var n=(0,d.useState)(t),o=u()(n,2),r=o[0],s=o[1],c=(0,d.useState)(!1),p=u()(c,2),m=p[0],h=p[1],f=(0,d.useState)(),g=u()(f,2),v=g[0],x=g[1],w=function(){var n=l()(i()().mark((function n(o){var l,c,u,d=arguments;return i()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return l=d.length>1&&void 0!==d[1]&&d[1],c=l?t:a()(a()({},r),o),h(!0),s(c),n.next=6,e(c);case 6:return u=n.sent,h(!1),x(u),n.abrupt("return",u);case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return[r,m,w,v]}},57102:function(e,t){"use strict";t.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},77578:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});const o=e=>e?"function"==typeof e?e():e:null},27666:function(e,t,n){"use strict";var o=n(26390),i=n(71783);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},r=function(){if(null==t){for(var e=arguments.length,o=new Array(e),r=0;r{i.Z.cancel(t),t=null},r}},81228:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var o=n(79545),i=n(68550),r=n(17928),a=n(99487),s=n(59301),l=n(92310),c=n.n(l),u=n(28647),d=n(55405),p=n(27666),m=n(36355),h=n(83116),f=n(37613);const g=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var v=(0,h.Z)("Affix",(e=>{const t=(0,f.TS)(e,{zIndexPopup:e.zIndexBase+10});return[g(t)]}));function x(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function w(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function y(e,t,n){if(void 0!==n&&t.bottom{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:o}=e.state;o!==n&&(b.forEach((t=>{null==o||o.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),o=null==n?void 0:n();b.forEach((n=>{null==o||o.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:o}=e.props,i=e.getTargetFunc();if(t!==k.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!i)return;const r=e.getOffsetTop(),a=e.getOffsetBottom(),s=i();if(s){const t={status:k.None},i=x(e.placeholderNodeRef.current);if(0===i.top&&0===i.left&&0===i.width&&0===i.height)return;const l=x(s),c=w(i,l,r),u=y(i,l,a);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}):void 0!==u&&(t.affixStyle={position:"fixed",bottom:u,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}),t.lastAffix=!!t.affixStyle,o&&n!==t.lastAffix&&o(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:k.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,p.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,p.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const o=e.getOffsetTop(),i=e.getOffsetBottom(),r=t();if(r&&e.placeholderNodeRef.current){const t=x(r),a=x(e.placeholderNodeRef.current),s=w(a,t,o),l=y(a,t,i);if(void 0!==s&&n.top===s||void 0!==l&&n.bottom===l)return}}e.prepareMeasure()})),e}return(0,i.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:j}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:o,children:i}=this.props,r=c()(e&&o,{[n]:!!e});let a=(0,d.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return s.createElement(u.Z,{onResize:this.updatePosition},s.createElement("div",Object.assign({},a,{ref:this.placeholderNodeRef}),e&&s.createElement("div",{style:t,"aria-hidden":"true"}),s.createElement("div",{className:r,ref:this.fixedNodeRef,style:e},s.createElement(u.Z,{onResize:this.updatePosition},i))))}}]),n}(s.Component);C.contextType=m.E_;var _=(0,s.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:o}=e,{getPrefixCls:i}=(0,s.useContext)(m.E_),r=i("affix",n),[a,l]=v(r),u=Object.assign(Object.assign({},e),{affixPrefixCls:r,rootClassName:c()(o,l)});return a(s.createElement(C,Object.assign({},u,{ref:t})))}))},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var o=n(92310),i=n.n(o),r=n(59301),a=n(36355),s=n(17313),l=n(83116),c=n(37613);const u=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:i,textPaddingInline:r,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},(0,s.Wf)(e)),{borderBlockStart:`${i}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:r},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,l.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[u(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n,divider:o}=r.useContext(a.E_),{prefixCls:s,type:l="horizontal",orientation:c="center",orientationMargin:u,className:m,rootClassName:h,children:f,dashed:g,plain:v,style:x}=e,w=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),y=t("divider",s),[b,j]=d(y),k=c.length>0?`-${c}`:c,C=!!f,_="left"===c&&null!=u,S="right"===c&&null!=u,T=i()(y,null==o?void 0:o.className,j,`${y}-${l}`,{[`${y}-with-text`]:C,[`${y}-with-text${k}`]:C,[`${y}-dashed`]:!!g,[`${y}-plain`]:!!v,[`${y}-rtl`]:"rtl"===n,[`${y}-no-default-orientation-margin-left`]:_,[`${y}-no-default-orientation-margin-right`]:S},m,h),Z=r.useMemo((()=>"number"==typeof u?u:/^\d+$/.test(u)?Number(u):u),[u]),L=Object.assign(Object.assign({},_&&{marginLeft:Z}),S&&{marginRight:Z});return b(r.createElement("div",Object.assign({className:T,style:Object.assign(Object.assign({},null==o?void 0:o.style),x)},w,{role:"separator"}),f&&"vertical"!==l&&r.createElement("span",{className:`${y}-inner-text`,style:L},f)))}},39722:function(e,t,n){"use strict";n.d(t,{t5:function(){return d}});var o=n(92310),i=n.n(o),r=n(55477),a=n(59301),s=n(36355),l=n(77578),c=n(17356),u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i{const{hashId:t,prefixCls:n,className:o,style:s,placement:c="top",title:u,content:d,children:p}=e;return a.createElement("div",{className:i()(t,n,`${n}-pure`,`${n}-placement-${c}`,o),style:s},a.createElement("div",{className:`${n}-arrow`}),a.createElement(r.G,Object.assign({},e,{className:t,prefixCls:n}),p||((e,t,n)=>{if(t||n)return a.createElement(a.Fragment,null,t&&a.createElement("div",{className:`${e}-title`},(0,l.Z)(t)),a.createElement("div",{className:`${e}-inner-content`},(0,l.Z)(n)))})(n,u,d)))};t.ZP=e=>{const{prefixCls:t}=e,n=u(e,["prefixCls"]),{getPrefixCls:o}=a.useContext(s.E_),i=o("popover",t),[r,l]=(0,c.Z)(i);return r(a.createElement(d,Object.assign({},n,{prefixCls:i,hashId:l})))}},60324:function(e,t,n){"use strict";var o=n(92310),i=n.n(o),r=n(59301),a=n(77578),s=n(62892),l=n(36355),c=n(6848),u=n(39722),d=n(17356),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i{let{title:t,content:n,prefixCls:o}=e;return r.createElement(r.Fragment,null,t&&r.createElement("div",{className:`${o}-title`},(0,a.Z)(t)),r.createElement("div",{className:`${o}-inner-content`},(0,a.Z)(n)))},h=r.forwardRef(((e,t)=>{const{prefixCls:n,title:o,content:a,overlayClassName:u,placement:h="top",trigger:f="hover",mouseEnterDelay:g=.1,mouseLeaveDelay:v=.1,overlayStyle:x={}}=e,w=p(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:y}=r.useContext(l.E_),b=y("popover",n),[j,k]=(0,d.Z)(b),C=y(),_=i()(u,k);return j(r.createElement(c.Z,Object.assign({placement:h,trigger:f,mouseEnterDelay:g,mouseLeaveDelay:v,overlayStyle:x},w,{prefixCls:b,overlayClassName:_,ref:t,overlay:o||a?r.createElement(m,{prefixCls:b,title:o,content:a}):null,transitionName:(0,s.m)(C,"zoom-big",w.transitionName),"data-popover-inject":!0})))}));h._InternalPanelDoNotUseOrYouWillBeFired=u.ZP,t.Z=h},17356:function(e,t,n){"use strict";var o=n(17313),i=n(29878),r=n(19447),a=n(33166),s=n(83116),l=n(37613);const c=e=>{const{componentCls:t,popoverColor:n,minWidth:i,fontWeightStrong:a,popoverPadding:s,boxShadowSecondary:l,colorTextHeading:c,borderRadiusLG:u,zIndexPopup:d,marginXS:p,colorBgElevated:m,popoverBg:h}=e;return[{[t]:Object.assign(Object.assign({},(0,o.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:d,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":m,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:u,boxShadow:l,padding:s},[`${t}-title`]:{minWidth:i,marginBottom:p,color:c,fontWeight:a},[`${t}-inner-content`]:{color:n}})},(0,r.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},u=e=>{const{componentCls:t}=e;return{[t]:a.i.map((n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}}))}},d=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:i,paddingSM:r,controlHeight:a,fontSize:s,lineHeight:l,padding:c}=e,u=a-Math.round(s*l);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${u/2}px ${c}px ${u/2-n}px`,borderBottom:`${n}px ${o} ${i}`},[`${t}-inner-content`]:{padding:`${r}px ${c}px`}}}};t.Z=(0,s.Z)("Popover",(e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,r=(0,l.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[c(r),u(r),o&&d(r),(0,i._y)(r,"zoom-big")]}),(e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30})),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},51581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return i&&(s?a?u.unshift(s):u.push(s):this.defaultLoader&&(a?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),r.default.createElement(o,c,u)}}]),t}(i.Component);l.propTypes={children:a.default.node.isRequired,element:a.default.node,hasMore:a.default.bool,initialLoad:a.default.bool,isReverse:a.default.bool,loader:a.default.node,loadMore:a.default.func.isRequired,pageStart:a.default.number,ref:a.default.func,getScrollParent:a.default.func,threshold:a.default.number,useCapture:a.default.bool,useWindow:a.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},26724:function(e,t,n){e.exports=n(51581)},93314:function(e){"use strict";e.exports="data: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EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__ProgramHomework__index.4fa12cd6.async.js b/p__Classrooms__Lists__ProgramHomework__index.4fa12cd6.async.js deleted file mode 100644 index 2fcac80885..0000000000 --- a/p__Classrooms__Lists__ProgramHomework__index.4fa12cd6.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[6788,13488,4977,69932],{680:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(5891),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=n(22589),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},60186:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(5891),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=n(22589),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},45532:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(5891),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},a=n(22589),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},o=null,i=!1,r=!1,a=null,s=!1,l=null,c=null,u=0;u4?parseFloat(e):5};function k(){try{return window.self!==window.top}catch(e){return!0}}function j(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,D(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(l=e,I(e,t))},e.getHTML5CodebaseVersion=function(){return f},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var o,i="auto",r=n.id,a=!1,l=0;l=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var T=function(e){return e&&"false"!==e},A=function(t,n,o){b(f)<=4.2&&(o=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==f||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,s=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(b(f)<=4.4)T(n.showToolBar)&&(n.height-=7),T(n.showAlgebraInput)&&(n.height-=37),n.width<605&&T(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(T(n.showToolBar)||T(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=T(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(x),window.GGBT_wsf_view&&$(window).trigger("resize"),m(e)},w||x.appendChild(k)):r.appendChild(k),x.appendChild(r),w||t.appendChild(x),setTimeout((function(){e.resize()}),1)}function j(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),O("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function _(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){j(e.article,e.params)})),html5AppletsToProcess=null)},b(f)<5&&(e.className+=" geogebraweb")):j(e,t)}if(i){scriptLoadStarted=!0;for(var C=0;C0?(i.remove(),s.attr("id","fullscreencontent").show(),jQuery(r).append(s),window.dispatchEvent(new Event("resize"))):A(i,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=o,A(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(s=e/4*3),l=s/5.8,a.setAttribute("src",w),a.setAttribute("width",s),a.setAttribute("height",l);var u=(e-s)/2,d=(t-l)/2;a.style.left=u+"px",a.style.top=d+"px",i.appendChild(a)}return i.appendChild(c),i},M=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},E=["web","webSimple","web3d","tablet","tablet3d","phone"],I=function(e,t){if(f=e,t)D(f,!0);else{var r,a,s=!i;if(s){var l=b(f);!isNaN(l)&&l<4.4&&(s=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=f.indexOf("//");for(var u in a=c>0?f:0===c?r+f:"https://www.geogebra.org/apps/5.2.814.0/",E)if(f.slice(-1*E[u].length)===E[u]||f.slice(-1*(E[u].length+1))===E[u]+"/")return void D(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||o.is3D||o.AV||o.SV||o.CV||o.EV2||o.CP||o.PC||o.DA||o.FI||o.PV||T(n.showToolBar)||T(n.showMenuBar)||T(n.showAlgebraInput)||T(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",D(a,!1)}},D=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),m=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?E.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(f=n[n.length-3]).substr(0,4)?f=f.substr(4,1)+"."+f.substr(5,1):"war"!==f.substr(0,3)&&"beta"!==f.substr(0,4)||(f="5.0");var o=parseFloat(f);NaN!==o&&o<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+o+" is deprecated. Using version latest instead."),I("5.0",t))}},O=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),I(e,!1),null!==c&&D(c,m),s=!0}return void 0!==n.material_id?_(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,o,i){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==o&&o,s=null!=e.noScaleMargin&&e.noScaleMargin,l=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,o,i,r){var a=null;if(null!=r&&""!=r)for(var s=e.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+r+" ")>-1){a=s;break}s=s.parentNode}var l=0,c=0,u=0,d=0,p=0,m=0,h=0;if(a)l=a.offsetWidth,c=Math.max(o?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=l):(l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var f=e.getBoundingClientRect();f.left>0&&f.left<=l&&(void 0===i||!i)&&("rtl"===document.dir?(p=l-f.width-f.left,m=u<=480?10:30):(m=f.left,p=u<=480?10:30),d=m+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(i=n(e,t,a,o,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=e.getBoundingClientRect(),i=(t-o.width)/2,r=(n-o.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=i+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var s=o(r,n);e()&&a.setAttribute("data-param-scale",s);for(var l=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var o=e.lastIndexOf(tb,Math.min(n,t));return o>=O?e.substring(O,o+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,o=[],i=[];function a(e){var t=i[e](),n=o[e];if(t in n)return t;var a=[];for(var s in n)a[n[s]]=s;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in o[e]},webModule.__getPropMap=function(){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(e=Cb).indexOf(Db);-1!=s&&(t=parseInt(e.substring(s+P),$),e=e.substring(O,s))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},o=e[webModule.__softPermutationId],i=O;i0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],o=0;o0&&(r=10+n*i);var a=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);o>40&&(a=40);var s=this.randomNum(-10,10);e.translate(r,a),e.rotate(s*Math.PI/180),e.fillText(t,0,0),e.rotate(-s*Math.PI/180),e.translate(-r,-a)}},{key:"drawLine",value:function(e){for(var t=0;t<1;t++)e.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),e.beginPath(),e.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.stroke()}},{key:"drawDot",value:function(e){for(var t=0;t<100;t++)e.fillStyle=this.randomColor(0,255),e.beginPath(),e.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),e.fill()}},{key:"randomCode",value:function(){for(var e=this,t="",n=0;n-1})))}}),(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:k.antdTable,rowSelection:{type:"checkbox",onChange:function(e){ke(e)}},rowKey:"id",pagination:!1,dataSource:ve,loading:N,columns:[{title:"班级",dataIndex:"name"}]})]}):(0,C.jsxs)(g.Z,{gutter:24,children:[(0,C.jsxs)(v.Z,{span:14,children:[(0,C.jsx)("div",{className:k.homeworkType,children:"作业截止"}),(0,C.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){K(F.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,C.jsx)("div",{className:k.tableWrapper,children:(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:k.antdTable,rowSelection:{type:"checkbox",onChange:function(e){X(e)}},rowKey:"id",pagination:!1,dataSource:U,loading:N,columns:[{title:"班级",dataIndex:"name",ellipsis:!0},{title:"发布时间",dataIndex:"publish_time"},{title:"截止时间",dataIndex:"end_time"}]})})]}),(0,C.jsxs)(v.Z,{flex:10,style:{maxWidth:"280px"},children:[(0,C.jsx)("div",{className:k.homeworkType,children:"补交截止"}),(0,C.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){ae(te.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,C.jsx)("div",{className:k.tableWrapper,children:(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:k.antdTable,rowSelection:{type:"checkbox",onChange:function(e){ue(e)}},rowKey:"id",pagination:!1,loading:N,dataSource:re,columns:[{title:"班级",dataIndex:"name",ellipsis:!0,width:120},{title:"截止时间",dataIndex:"late_time"}]})})]})]})})]})}))},36709:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",m=n(92310),h=n.n(m),f=n(71418),g=n(2859),v=n(18030),x=n(21082),w=n(37712),y=function(e){var t=e.data,n=e.className,o=e.fullWidth,r=e.style,s=void 0===r?{}:r,m=e.onClose,y=e.onOk,b=e.showFullTools,k=e.noAssociationId,j=(0,c.useRef)(null),_=(0,c.useRef)(null),C=(0,c.useRef)(null),S=(0,c.useRef)(null),T=(0,c.useState)(!1),A=l()(T,2),L=A[0],P=A[1],N=(0,c.useState)("正在加载中"),Z=l()(N,2),B=Z[0],M=Z[1];(0,c.useEffect)((function(){C.current||(C.current=document.createElement("style"),document.head.appendChild(C.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),C.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&E()):(document.body.removeAttribute("data-custom"),C.current&&(document.head.removeChild(C.current),C.current=null))}),[null==t?void 0:t.visible]);var E=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P(!0),M("正在加载中"),e.next=4,(0,x.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,j.current.src="",j.current.src=n,j.current.onload=function(){D()},P(!1),M("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=a()(i()().mark((function e(n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P(!0),M("正在保存中"),e.next=4,(0,v.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(o=e.sent)||!o.id||k){e.next=12;break}return e.next=8,(0,v.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==o?void 0:o.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=o&&o.id&&y(o);case 13:P(!1),M("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),D=function(){_.current=new g.hP(j.current),_.current.targetRoot=S.current,_.current.addEventListener("render",I),_.current.addEventListener("beforeclose",m),b&&(_.current.availableMarkerTypes=_.current.ALL_MARKER_TYPES,_.current.uiStyleSettings.redoButtonVisible=!0,_.current.uiStyleSettings.notesButtonVisible=!0,_.current.uiStyleSettings.zoomButtonVisible=!0,_.current.uiStyleSettings.zoomOutButtonVisible=!0,_.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=_.current.uiStyleSettings,_.current.show(),null!=t&&t.snapshotData&&_.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,w.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,w.jsx)(f.Z,{spinning:L,tip:B,style:{position:"absolute"},children:(0,w.jsx)("div",{ref:S,className:h()(u,n,o?p:""),style:s,children:(0,w.jsx)("img",{className:d,ref:j})})})})}},98382:function(e,t,n){"use strict";n.d(t,{z:function(){return S},Z:function(){return T}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(37205),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(59028),f=n(8591),g=n(43418),v=n(3113),x=n(92723),w=n(90341),y=n(37712),b="  ";function k(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var j=n(60186),_=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var C=h.Z.Dragger;function S(e){var t=[];return e&&e.length>0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+b+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var T=function(e){var t=e.value,n=e.onChange,o=e.action,r=e.data,s=e.className,c=e.maxSize,d=void 0===c?150:c,S=e.title,T=void 0===S?"上传附件":S,A=e.showRemoveModal,L=void 0!==A&&A,P=e.accept,N=void 0===P?"":P,Z=e.additionalText,B=e.isDragger,M=e.number,E=void 0===M?1e3:M,I=e.aloneClear,D=void 0!==I&&I,O=e.realTimeRemove,R=void 0===O||O,G=e.uploadText,H=(0,m.useState)(!1),z=p()(H,2),F=z[0],W=z[1],Y=(0,m.useState)(t||[]),V=p()(Y,2),U=V[0],K=V[1],J=(0,m.useState)(1),q=p()(J,2),Q=q[0],X=q[1];(0,m.useEffect)((function(){t&&(1===Q&&K(u()(t)),X(2),E===(null==t?void 0:t.length)&&W(!0))}),[t]);var $,ee=function(){setTimeout((function(){U.pop(),K(u()(U))}),500)},te={multiple:!0,disabled:F,accept:N,withCredentials:!0,fileList:U,beforeUpload:function(e,t){var n=e.size/1024/1024;return U.concat(t).length>E?(U.pop(),K(u()(U)),f.ZP.error("最多只能上传".concat(E,"个文件")),D?Promise.reject():(ee(),!1)):n=E?W(!0):W(!1),K(u()(U)),U=U.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(b)&&(e.name="".concat(e.name).concat(b).concat(k(e.size))),l()({},e)})),console.log("info:",e,U),n(U)):f.ZP.error(null===(o=e.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message)},onRemove:($=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,w.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!L){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var o;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(o=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,f.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return $.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(s||""),children:[B&&(0,y.jsxs)(C,l()(l()({},te),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(j.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),Z]})),!B&&(0,y.jsxs)(h.Z,l()(l()({},te),{},{children:[(0,y.jsxs)(v.ZP,{disabled:F,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),T]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:G||"(单个文件最大".concat(d,"MB)")})]}))]})}},65463:function(e,t,n){"use strict";n(59301);var o=n(6848),i=n(37712);t.Z=function(e){var t=e.value,n=e.visible,r=void 0===n||n,a=e.children;return(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(o.Z,{placement:"topLeft",title:{"未发布":"作业尚未发布","未开始":"作业已发布,尚未到达开始作业时间","提交中":"作业进行中,所有考生可提交作业","补交中":"作业进行中,所有学生可补交作业","进行中":"作业进行中,部分班级正在作业提交中/补交中","已截止":"到达作业截止时间,作业已结束","已结束":"课堂已结束"}[t],children:(0,i.jsx)("span",{children:a})}):a})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),s=n(59301),l=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),m=(n(80443),n(90630),n(37712)),h=l.default.Option,f={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,o=e.mode,r=e.options,l=void 0===r?{}:r,c=(0,s.useRef)(),u=(0,s.useState)(),d=a()(u,2),h=d[0],f=d[1];return(0,s.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,s.useEffect)((function(){h&&h.setOption("mode",o)}),[h,o]),(0,s.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,s.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,i()({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));f(e)}}),[c.current,h]),(0,m.jsx)("div",{className:"my-codemirror-container",children:(0,m.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,o=(0,s.useState)("python"),r=a()(o,2),d=r[0],p=r[1];return(0,m.jsxs)(c.Z,i()(i()({},f),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,m.jsx)(l.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,m.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,m.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,m.jsx)(v,{mode:d})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return be}});var o=n(91232),i=n.n(o),r=n(79800),a=n.n(r),s=n(85573),l=n.n(s),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),m=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),f=function(e){var t=e.value,n=void 0===t?"":t,o=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})})},g=n(82242),v=n.n(g),x=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function w(e){var t=e.onActionCallback,n=e.title,o=e.icon,i=e.actionName,r=e.className,a=void 0===r?"":r,s=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(i)},children:[(0,h.jsx)("i",{className:"".concat(o)}),s]})}var y=function(e){var t=e.watch,n=e.showNullButton,o=e.showNullProgramButton,i=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,s=e.hidetoolBar,l=e.extraUse,c=[].concat(x,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(w,v()(v()({},e),{},{onActionCallback:i})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,h.jsx)("li",{children:l}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(w,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},b=n(24808),k=n(78241),j=n(92832),_=n(3113),C={labelCol:{span:4},wrapperCol:{span:20}},S=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(k.Z,v()(v()({},C),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(k.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(j.Z,{})}),(0,h.jsx)(k.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(j.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(_.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(_.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},T=n(73145),A=n(28486),L=n(95237),P=n(36709),N=function(e){var t=e.callback,n=e.onCancel,o=document.createElement("canvas"),i=o.getContext("2d");o.width=1e3,o.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,o.width,o.height);var r=o.toDataURL("image/png");return(0,h.jsx)(L.Z,{style:{height:"100vh"},children:(0,h.jsx)(P.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},Z=n(7557),B=n.n(Z),M=n(41498),E=n.n(M),I=n(37205),D=n.n(I),O=n(12378);function R(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(R,go.CommandHandler),R.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},R.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},R.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},R.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},R.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},R.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},R.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},R.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o0){for(var o=a.elt(s-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(r)}else if("Down"===n.key){var i;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i);else for(;null!==t;){var r,a,s;if(null===(r=t.findTreeParentNode()))break;if((s=(a=this._sortTreeChildrenByY(r)).indexOf(t))o.y?1:n.xo.x?1:0})),t},R.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},R.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(R.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(R.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var G=R,H=(n(41034),n(85160)),z=n(43418),F=n(43604),W=n(18030),Y="myPaletteDiv___Xjz2I",V="maxH60___Pd4Re";window.go=O;var U=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(),s=(0,c.useRef)(!1),l=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],m=d[1],f=function(){var e=E()(B()().mark((function e(){var t,i;return B()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:i=e.sent,n({src:i.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){m(p+1)}),[]),(0,h.jsx)("div",{ref:l,className:s.current?"".concat(V," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:l.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(L.Z,{children:[(0,h.jsx)(F.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(F.Z,{onClick:function(){s.current=!s.current,m(p+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:Y,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(H.FI,{initDiagram:function(){var e=O.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",s="#d533ff",l="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",m="#d5ebff",h="#f2dfe0",f="#a5d2fa",g="#cccccc",v="#b3e6b3",x="#fcbbbd";function w(t,n){var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(o){var i=n.part.adornedPart,r=(new O.Point).setRectSpot(i.actualBounds,t);r.subtract(i.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(i.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=o.copyNodeData(i.data);o.setGroupKeyForNodeData(a,o.getGroupKeyForNodeData(i.data)),o.addNodeData(a);var s={from:i.key,to:o.getKeyForNodeData(a)};o.addLinkData(s);var l=e.diagram.findNodeForData(a);l.location=r,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(O.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(O.Spot.Top)||t.equals(O.Spot.Bottom)?25:18,height:t.equals(O.Spot.Top)||t.equals(O.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:o,contextClick:o})}function y(t){return e(O.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function b(e,t){return function(n,o){n.handled=!0,n.diagram.model.commit((function(n){n.set(o.part.adornedPart.data,e,t)}))}}function k(t,n){return n||(n="color"),e(O.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:b(n,t),contextClick:b(n,t)})}function j(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",k(u,"fill"),k(p,"fill"),k(m,"fill"),k(h,"fill"))),e("ContextMenuButton",e(O.Panel,"Horizontal",k(g,"fill"),k(v,"fill"),k(f,"fill"),k(x,"fill")))]}function _(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",k(d),k(a),k(n),k(t))),e("ContextMenuButton",e(O.Panel,"Horizontal",k(u),k(s),k(l),k(c)))]}function C(t,n){return n||(n="thickness"),e(O.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function S(t,n){return n||(n="dash"),e(O.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function T(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",C(1),C(2),C(3),C(4))),e("ContextMenuButton",e(O.Panel,"Horizontal",S(null),S([2,4]),S([4,4])))]}function A(t,n){return n||(n="figure"),e(O.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:b(n,t),contextClick:b(n,t)})}function L(t){return e(O.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function P(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(O.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b("dir",t),contextClick:b("dir",t)})}function N(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var o=n.part.adornedPart;e.set(o.data,t?"toSpot":"fromSpot",O.Spot.stringify(O.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(O.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function Z(t,n){var o=0,i=O.Spot.RightSide;t.equals(O.Spot.Top)?(o=270,i=O.Spot.TopSide):t.equals(O.Spot.Left)?(o=180,i=O.Spot.LeftSide):t.equals(O.Spot.Bottom)&&(o=90,i=O.Spot.BottomSide),n||(o-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",O.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(O.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:o,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return o.current=new O.Diagram(i.current,{padding:20,grid:e(O.Panel,"Grid",e(O.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(O.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(G),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),o.current.nodeTemplate=e(O.Node,"Auto",{locationSpot:O.Spot.Center,locationObjectName:"SHAPE",desiredSize:new O.Size(120,60),minSize:new O.Size(40,40),resizable:!0,resizeCellSize:new O.Size(10,10),rotatable:!0},new O.Binding("location","loc",O.Point.parse).makeTwoWay(O.Point.stringify),new O.Binding("desiredSize","size",O.Size.parse).makeTwoWay(O.Size.stringify),e(O.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:O.Spot.AllSides,toSpot:O.Spot.AllSides},new O.Binding("figure"),new O.Binding("fill"),new O.Binding("stroke","borderColor"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(O.TextBlock,{margin:1,textAlign:"center",overflow:O.TextBlock.OverflowEllipsis,editable:!0},new O.Binding("text").makeTwoWay(),new O.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(O.Panel,"Vertical",{maxSize:new O.Size(200,NaN)},e(O.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new O.Binding("text")),e(O.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new O.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(O.Adornment,"Spot",e(O.Placeholder,{padding:10}),w(O.Spot.Top,"TriangleUp"),w(O.Spot.Left,"TriangleLeft"),w(O.Spot.Right,"TriangleRight"),w(O.Spot.Bottom,"TriangleDown"),y({alignment:new O.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(O.Panel,"Horizontal",A("Rectangle"),A("RoundedRectangle"),A("Ellipse"),A("Diamond"))),e("ContextMenuButton",e(O.Panel,"Horizontal",A("Parallelogram2"),A("ManualOperation"),A("Procedure"),A("Cylinder1"))),e("ContextMenuButton",e(O.Panel,"Horizontal",A("Terminator"),A("CreateRequest"),A("Document"),A("TriangleDown"))),j(),_(),T()),o.current.groupTemplate=e(O.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:O.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new O.Binding("location","loc",O.Point.parse).makeTwoWay(O.Point.stringify),e(O.Panel,"Auto",{name:"BODY"},e(O.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:O.Spot.AllSides,toSpot:O.Spot.AllSides},new O.Binding("fill"),new O.Binding("stroke","color"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Placeholder,{background:"transparent",margin:20})),e(O.TextBlock,{alignment:O.Spot.Top,alignmentFocus:O.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new O.Binding("text"),new O.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(O.Adornment,"Spot",e(O.Panel,"Auto",e(O.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(O.Placeholder,{margin:1.5})),y({alignment:O.Spot.TopRight,alignmentFocus:O.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",j(),_(),T()),o.current.linkTemplate=e(O.Link,{layerName:"Foreground",routing:O.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new O.Binding("fromSpot","fromSpot",O.Spot.parse),new O.Binding("toSpot","toSpot",O.Spot.parse),new O.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new O.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new O.Binding("points").makeTwoWay(),e(O.Shape,{strokeWidth:2},new O.Binding("stroke","color"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Shape,{segmentIndex:0,segmentOffset:new O.Point(15,0),segmentOrientation:O.Link.OrientAlong,alignmentFocus:O.Spot.Right,figure:"circle",width:10,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return 1===e}))),e(O.Shape,{segmentIndex:-1,segmentOffset:new O.Point(-10,6),segmentOrientation:O.Link.OrientPlus90,alignmentFocus:O.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return e>=1})),new O.Binding("width","thickness",(function(e){return 7+3*e})),new O.Binding("height","thickness",(function(e){return 7+3*e})),new O.Binding("segmentOffset","thickness",(function(e){return new O.Point(-15,4+1.5*e)}))),e(O.Shape,{segmentIndex:0,segmentOffset:new O.Point(15,-6),segmentOrientation:O.Link.OrientMinus90,alignmentFocus:O.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return 2===e})),new O.Binding("width","thickness",(function(e){return 7+3*e})),new O.Binding("height","thickness",(function(e){return 7+3*e})),new O.Binding("segmentOffset","thickness",(function(e){return new O.Point(-15,4+1.5*e)}))),e(O.TextBlock,{alignmentFocus:new O.Spot(0,1,-4,0),editable:!0},new O.Binding("text").makeTwoWay(),new O.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(O.Adornment,e(O.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:L(2)},new O.Binding("pathPattern","thickness",L)),y({alignmentFocus:new O.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",_(),T(),e("ContextMenuButton",e(O.Panel,"Horizontal",P(0),P(1),P(2))),e("ContextMenuButton",e(O.Panel,"Horizontal",e(O.Panel,"Spot",N(!1),Z(O.Spot.Top,!1),Z(O.Spot.Left,!1),Z(O.Spot.Right,!1),Z(O.Spot.Bottom,!1)),e(O.Panel,"Spot",{margin:new O.Margin(0,0,0,2)},N(!0),Z(O.Spot.Top,!0),Z(O.Spot.Left,!0),Z(O.Spot.Right,!0),Z(O.Spot.Bottom,!0))))),new O.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(O.Link,{locationSpot:O.Spot.Center,selectionAdornmentTemplate:e(O.Adornment,"Link",{locationSpot:O.Spot.Center},e(O.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(O.Shape,{toArrow:"Standard",stroke:null}))},{routing:O.Link.AvoidsNodes,curve:O.Link.JumpOver,corner:5,toShortLength:4},new O.Binding("points"),e(O.Shape,{isPanelMain:!0,strokeWidth:2}),e(O.Shape,{toArrow:"Standard",stroke:null})),model:new O.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(D()(O.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(O.Node,"Auto",{locationSpot:O.Spot.Center},new O.Binding("location","location",O.Point.parse).makeTwoWay(O.Point.stringify),e(O.Shape,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new O.Binding("stroke").makeTwoWay(),new O.Binding("fill").makeTwoWay(),new O.Binding("figure")),e(O.TextBlock,{margin:new O.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new O.Size(16,16),maxSize:new O.Size(10,NaN),textAlign:"center",editable:!0},new O.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(O.Panel,"Grid",e(O.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(O.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),o.current.grid.visible=!0,o.current.grid.gridCellStroke="darkgray",o.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=o.current,o.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:i})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(_.ZP,{size:"large",onClick:f,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),J=n(94001),q=K.ZP.Group,Q={margin:"0 8px"},X=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(k.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"单元格数:"}),(0,h.jsx)("span",{style:Q,children:"行数"}),(0,h.jsx)(k.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(J.Z,{})}),(0,h.jsx)("span",{style:Q,children:"列数"}),(0,h.jsx)(k.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(J.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"对齐方式:"}),(0,h.jsx)(k.Z.Item,{name:"align",children:(0,h.jsxs)(q,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(_.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(_.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,r=e.callback,s=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],m=d[1],f=(0,c.useRef)({id:s,appName:"graphing",width:o||1e3,height:i||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){l.current=new(te())(f.current,!0),window.onload=function(){l.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){f.current.appName=p?"3D":"graphing",l.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){m(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:s}),(0,h.jsxs)(L.Z,{align:"middle",children:[(0,h.jsx)(F.Z,{flex:1,children:(0,h.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return m(e)}})}),(0,h.jsx)(F.Z,{children:(0,h.jsx)(_.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),oe=n(36761),ie=n(92723),re=n(8591),ae="link",se="upload-image",le="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",me={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},he=n(77818);var fe="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var xe=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",we=l()(l()({},xe+"-B","bold"),xe+"-I","italic"),ye=l()(l()(l()(l()(l()(l()(l()(l()({},ae,"添加链接"),ue,"添加代码块"),se,"添加图片"),ce,"添加画图"),le,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),be=function(e){var t=e.defaultValue,n=void 0===t?"":t,o=e.onChange,r=e.width,s=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,x=void 0!==v&&v,w=e.isFocus,k=void 0!==w&&w,j=e.watch,_=e.insertTemp,C=e.mode,L=void 0===C?"markdown":C,P=e.id,Z=void 0===P?"markdown-editor-id":P,B=e.showResizeBar,M=void 0!==B&&B,E=e.noStorage,I=void 0!==E&&E,D=e.showNullButton,O=void 0!==D&&D,R=e.showNullProgramButton,G=void 0!==R&&R,H=e.hidetoolBar,F=void 0!==H&&H,W=e.fullScreen,Y=void 0!==W&&W,V=e.onBlur,K=e.onCMBeforeChange,J=e.onFullScreen,q=e.className,Q=void 0===q?"":q,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,pe=void 0!==te&&te,xe=e.disabledFill,be=void 0!==xe&&xe,ke=e.placeholder,je=void 0===ke?"":ke,_e=e.values,Ce=void 0===_e?"":_e,Se=e.extraUse,Te=(0,c.useState)(null),Ae=a()(Te,2),Le=Ae[0],Pe=Ae[1],Ne=(0,c.useState)(n),Ze=a()(Ne,2),Be=Ze[0],Me=Ze[1],Ee=(0,c.useState)(j),Ie=a()(Ee,2),De=Ie[0],Oe=Ie[1],Re=(0,c.useState)(Y),Ge=a()(Re,2),He=Ge[0],ze=Ge[1],Fe=(0,c.useState)(""),We=a()(Fe,2),Ye=We[0],Ve=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Je=Ke[0],qe=Ke[1],Qe=(0,c.useState)(g),Xe=a()(Qe,2),$e=Xe[0],et=Xe[1],tt=(0,c.useState)(!1),nt=a()(tt,2),ot=(nt[0],nt[1]),it=(0,c.useState)(0),rt=a()(it,2),at=rt[0],st=rt[1],lt=(0,c.useState)(0),ct=a()(lt,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),mt=(0,c.useRef)(),ht=(0,c.useRef)(),ft=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Me(Ce),null==Le||Le.setValue(Ce),window.scrollTo(0,e)}),[Ce]),(0,c.useEffect)((function(){null==J||J(He)}),[He]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var o=n.clipboardData;if(o){var i=o.types.toString(),r=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==L)return;try{var a,s=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(s=r[0]);var l=s.getAsFile(),c=l.name.split(".").pop();(0,A.I)(l,(function(e){var n,o,i;e.id?(null==l||null===(n=l.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==l||null===(o=l.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('')):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?t.replaceSelection('').concat(l.name,"")):ge.includes(c)?t.replaceSelection('').concat(l.name,"")):t.replaceSelection("[".concat(l.name,"](").concat(ie.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:L,lineNumbers:!x,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",je):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),o=n.getCursor(),i=n.getLine(o.line),r=i.charAt(o.ch-1),a=i.lastIndexOf("@▁@",o.ch),s=i.lastIndexOf("@▁▁@",o.ch),l=a>s?a:s,c=a>s?3:4;if(-1===fe.indexOf(r))return null;if(console.log("change1:",t,e,i,o,l,a,s,r),l>=0&&o.ch-l<5){var u=l+c;return n.replaceRange("",{line:o.line,ch:l},{line:o.line,ch:u}),{line:o.line,ch:u}}return null}(e);n&&t.preventDefault()}})),k&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Pe(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){mt.current}),[$e,mt,He]);(0,c.useEffect)((function(){if(Le){var e=function(){var e=new p.Z((function(e){var t,n=i()(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;(o.target.offsetHeight>0||o.target.offsetWidth>0)&&(gt(),Le.setSize("100%","100%"),Le.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Le,gt]),(0,c.useEffect)((function(){if(Le){for(var e=[],t=function(){var t=a()(o[n],2),i=t[0],r=t[1],s=l()({},i,(function(){vt(r)}));e.push(s),Le.addKeyMap(s)},n=0,o=Object.entries(we);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(Z);e>=Je+1e4&&(!t||t!==Be)&&(window.sessionStorage.setItem(Z,Be),ot(!0))}}),1e4),(0,c.useEffect)((function(){Oe(j)}),[Le,j]),(0,c.useEffect)((function(){Le&&k&&Le.focus()}),[Le,k]),(0,c.useEffect)((function(){if(De&&Le){var e=function(e){var t=e.target;if(ft.current){var n=t.scrollTop/t.scrollHeight;ft.current.scrollTop=ft.current.scrollHeight*n}},t=Le.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Le,De]),(0,c.useEffect)((function(){if(Le&&K){var e=function(e,t){K(e,t)};return Le.on("beforeChange",e),function(){Le.off("beforeChange",e)}}}),[Le,K]),(0,c.useEffect)((function(){if(Le&&V){var e=function(){V(Le.getValue())};return Le.on("blur",e),function(){Le.off("blur",e)}}}),[Le,V]),(0,c.useEffect)((function(){if(Le){var e=function(e,t){var n=e.getValue();Me(n),qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(G?o(n,kt(n)):o(n))};return Le.on("change",e),function(){Le.off("change",e)}}}),[Le,o]),(0,c.useEffect)((function(){if(Le)if(null==n)Le.setValue(""),Me("");else{var e=window.scrollY||window.pageYOffset;n!==Le.getValue()&&(Le.setValue(n),Me(n),Le.setCursor(pe?1:Le.lineCount(),0),window.scrollTo(0,e))}}),[Le,n]);var vt=(0,c.useCallback)((function(e){var t=Le.getCursor(),n=Le.getSelection(),o=n.split("\n");switch(e){case"bold":return Le.replaceSelection("**"+n+"**"),""===n&&Le.setCursor(t.line,t.ch+2),Le.focus();case"italic":return Le.replaceSelection("*"+n+"*"),""===n&&Le.setCursor(t.line,t.ch+1),Le.focus();case"code":return Le.replaceSelection("`"+n+"`"),""===n&&Le.setCursor(t.line,t.ch+1),Le.focus();case"inline-latex":return Ve("inline-latex"),Le.focus();case"latex":return Le.replaceSelection("```latex\n"+n+"\n```"),Le.setCursor(t.line+1,n.length+1),Le.focus();case"line-break":return Le.replaceSelection("
\n"),Le.focus();case"list-ul":return""===n?Le.replaceSelection("- "+n):Le.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Le.focus();case"list-ol":return""===n?Le.replaceSelection("1. "+n):Le.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Le.focus();case"add-null-ch":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection("▁"),Le.focus();case"add-signal":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection("@▁@"),Le.focus();case"add-multiple":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection(fe),Le.focus();case"inster-template-1":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Le.focus();case"eraser":return Le.setValue(""),Le.focus();case"trigger-watch":return Oe(!De),Le.focus();case"trigger-full-screen":return ze(!He),Le.focus();case ae:return void Ve(ae);case ue:return void Ve(ue);case se:return void Ve(se);case ce:return void Ve(ce);case"maths-latex":return void Ve("maths-latex");case le:return void Ve(le);case de:return void Ve(de);default:throw new Error}}),[Le,De,He]),xt=(0,c.useCallback)((function(e,t){var n,o,i,r,a;switch(Ve(""),Ye){case ae:var s=e.title,l=e.link;return Le.replaceSelection("[".concat(s,"](").concat(l,")")),Le.focus();case ue:var c=e.language,u=e.content;return Le.replaceSelection(["```"+c,u,"```"].join("\n")),Le.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),m=0;m-1||null==v||!v.type?g?Le.replaceSelection("![ ".concat(g," ]( ").concat(f,' "').concat(g,'" )')):Le.replaceSelection("![,](".concat(f,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Le.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Le.replaceSelection('').concat(v.name,"")):ge.includes(x)?Le.replaceSelection('').concat(v.name,"")):Le.replaceSelection("[".concat(v.name,"](").concat(ie.Z.API_SERVER).concat(f,")")),Le.focus();case de:for(var w=e.row,y=e.col,b=e.align,k="\n",j=0;j300&&(t=300),et(g+t+"px")}},o=ht.current,i=!1,r=0;return o.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){o.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Le,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var bt={width:ve(s),height:ve($e)},kt=((0,c.useMemo)((function(){if(Je){var e=new Date(Je),t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(o)}return 0}),[Je]),function(e){var t=[];if(G){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ye]&&Ye!==ce&&Ye!==le&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;st(t),dt(n)}),0)}),[Ye]);var jt=function(e,t,n,o){var i=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>i-20&&o0)){e.next=13;break}return w.ZP.info("发布班级不能为空"),Oe(!1),e.abrupt("return");case 13:if(0!==Le.reduce((function(e,t){return e+t}))||Ce){e.next=17;break}return w.ZP.info("简单适中困难题数相加不能为0"),Oe(!1),e.abrupt("return");case 17:return r={homework_ids:p()(R.actionTabs.selectArrs),group_ids:ve.length>0?ve.map((function(e){return e.id})):null===(n=R.detailCommonHomeworksList)||void 0===n?void 0:n.course_groups,end_time:A()(o.end_time).format("YYYY-MM-DD HH:mm"),publish_time:A()(o.publish_time).format("YYYY-MM-DD HH:mm"),difficult_settings:null==Le?void 0:Le.map((function(e){return e})),send_type:Ce?"0":"1",unified_setting:!ve.length},Oe(!0),e.next=21,(0,L.ZP)("/api/courses/".concat(W.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:u()({},r)});case 21:if(0!==e.sent.status){e.next=35;break}if(Oe(!1),(0,N.L9)(["教学课堂","图文作业","立即发布"]),w.ZP.success("发布成功"),G({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),!z){e.next=30;break}return z(),e.abrupt("return");case 30:F.onCallback&&F.onCallback(),Ze(),"0"===localStorage.getItem("Noviceguide")||G({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:13,text:(0,I.jsx)("div",{children:"最后,咱们给教学课堂添加一名学生~点击“添加学生”,在弹窗页面中输入并搜索学生姓名,点击“确定”就可以为您的课堂添加第一位学生啦~"})}}),e.next=36;break;case 35:Oe(!1);case 36:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Me=function(){q(1),ee([]),xe([])},Ee=(0,v.useState)(!1),Ie=h()(Ee,2),De=Ie[0],Oe=Ie[1];return(0,I.jsxs)(y.Z,{width:600,confirmLoading:De,centered:!0,title:"发布作业",open:"立即发布"===R.actionTabs.key,okText:"发布作业",cancelText:"暂不发布",onOk:Be,onCancel:function(){Me(),G({type:"classroomList/setActionTabs",payload:{}}),z?z():Ze()},children:[(0,I.jsxs)("p",{className:"tc",children:["学生将立即收到作业",(0,I.jsx)("br",{}),'本操作只对"未发布"的作业有效']}),$&&(0,I.jsxs)(x.Z,{form:V,children:[(0,I.jsxs)("div",{style:{paddingLeft:0},children:[2===R.actionTabs.type&&(0,I.jsxs)(b.Z,{style:{marginBottom:"10px"},children:[(0,I.jsx)("span",{className:"mr5",children:"试题发送:"}),(0,I.jsxs)(k.ZP.Group,{value:Ce,disabled:!(null!==(n=R.actionTabs)&&void 0!==n&&null!==(n=n.selectArrsAll)&&void 0!==n&&null!==(n=n[0])&&void 0!==n&&n.can_publish),onChange:function(e){Se(e.target.value)},children:[(0,I.jsx)(k.ZP,{value:!0,children:"全部固定试题"}),(0,I.jsx)(k.ZP,{className:"ml20",value:!1,children:"随机抽取"})]})]}),!Ce&&(0,I.jsxs)(b.Z,{style:{marginBottom:"10px"},children:[(0,I.jsx)("span",{style:{marginRight:65}}),(0,I.jsxs)("span",{children:["简单题数 ",(0,I.jsx)(j.Z,{value:Le[0],onChange:function(e){Le[0]=e,Pe(p()(Le))},min:0,disabled:!(null!==(o=R.actionTabs)&&void 0!==o&&null!==(o=o.selectArrsAll)&&void 0!==o&&null!==(o=o[0])&&void 0!==o&&o.can_publish),placeholder:"最大".concat(null===(r=R.actionTabs)||void 0===r||null===(r=r.selectArrsAll)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.difficult_count)||void 0===r?void 0:r[0]),max:null===(s=R.actionTabs)||void 0===s||null===(s=s.selectArrsAll)||void 0===s||null===(s=s[0])||void 0===s||null===(s=s.difficult_count)||void 0===s?void 0:s[0],style:{width:60}})]}),(0,I.jsxs)("span",{style:{margin:"0px 40px"},children:["适中题数 ",(0,I.jsx)(j.Z,{value:Le[1],onChange:function(e){Le[1]=e,Pe(p()(Le))},min:0,disabled:!(null!==(c=R.actionTabs)&&void 0!==c&&null!==(c=c.selectArrsAll)&&void 0!==c&&null!==(c=c[0])&&void 0!==c&&c.can_publish),max:null===(d=R.actionTabs)||void 0===d||null===(d=d.selectArrsAll)||void 0===d||null===(d=d[0])||void 0===d||null===(d=d.difficult_count)||void 0===d?void 0:d[1],placeholder:"最大".concat(null===(m=R.actionTabs)||void 0===m||null===(m=m.selectArrsAll)||void 0===m||null===(m=m[0])||void 0===m||null===(m=m.difficult_count)||void 0===m?void 0:m[1]),style:{width:60}})]}),(0,I.jsxs)("span",{children:["困难题数 ",(0,I.jsx)(j.Z,{value:Le[2],onChange:function(e){Le[2]=e,Pe(p()(Le))},min:0,disabled:!(null!==(f=R.actionTabs)&&void 0!==f&&null!==(f=f.selectArrsAll)&&void 0!==f&&null!==(f=f[0])&&void 0!==f&&f.can_publish),placeholder:"最大".concat(null===(T=R.actionTabs)||void 0===T||null===(T=T.selectArrsAll)||void 0===T||null===(T=T[0])||void 0===T||null===(T=T.difficult_count)||void 0===T?void 0:T[2]),max:null===(O=R.actionTabs)||void 0===O||null===(O=O.selectArrsAll)||void 0===O||null===(O=O[0])||void 0===O||null===(O=O.difficult_count)||void 0===O?void 0:O[2],style:{width:60}})]})]}),(0,I.jsxs)(b.Z,{className:"mt30",align:"middle",children:[(0,I.jsx)(_.Z,{children:(0,I.jsx)(x.Z.Item,{name:"publish_time",label:"发布时间",children:(0,I.jsx)(C.default,{style:{width:170,marginRight:"25px"},disabledDate:function(e){return(0,E.Q8)(e,H)},disabledTime:function(e){return(0,E.d0)(e)},placeholder:"请选择发布时间",showTime:{format:"HH:mm",defaultValue:A()((0,N.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),(0,I.jsx)(_.Z,{className:"ml20",children:(0,I.jsx)(x.Z.Item,{name:"end_time",label:"截止时间",children:(0,I.jsx)(C.default,{style:{width:170},placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:A()((0,N.U6)(),"HH:mm")},disabledDate:function(e){return(0,E.Q8)(e,H,V.getFieldValue("publish_time"))},disabledTime:function(e){return(0,E.d0)(e,V.getFieldValue("publish_time"))},format:"YYYY-MM-DD HH:mm",allowClear:!1})})})]}),2===R.actionTabs.type&&(0,I.jsxs)(b.Z,{style:{marginBottom:"10px"},children:[(0,I.jsx)("span",{className:"mr5",children:"发布设置:"}),(0,I.jsxs)(k.ZP.Group,{value:be,onChange:function(e){ke(e.target.value),xe([])},children:[(0,I.jsx)(k.ZP,{value:!0,disabled:!R.actionTabs.manage_all_group,children:"统一发布"}),(0,I.jsx)(k.ZP,{className:"ml20",disabled:$.length<=0,value:!1,children:"分班发布"})]})]}),$.length<=0&&2===R.actionTabs.type&&(0,I.jsx)("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"},children:'课堂无分班,仅支持选择“统一发布"'})]}),(1===R.actionTabs.type||!be)&&$.length>0&&(0,I.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"},children:[(0,I.jsxs)("span",{style:{flex:1},children:[(0,I.jsx)(S.Z,{checked:ve.length===$.length,onChange:function(e){ve.length===$.length?xe([]):xe($.filter((function(e){return!e.is_published})))},children:"全选"})," "]}),(0,I.jsx)("span",{style:{width:16}}),(0,I.jsxs)("span",{style:{flex:1},children:["已选择",ve.length||0,"个分班"]})]}),(1===R.actionTabs.type||!be)&&$.length>0&&(0,I.jsx)(B.Z,{data:$,selectedRowKeys:ve,setSelectedRowKeys:xe})]})]})}))},20239:function(e,t,n){"use strict";n.r(t),n.d(t,{CommonHomeworkContext:function(){return it},default:function(){return rt}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301),p=n(5296),m=n(8591),h=n(27092),f=n(81228),g=n(21082),v=n(93697),x=n(37205),w=n.n(x),y=n(39647),b=n.n(y),k=n(43418),j=n(18030),_=n(97978),C=n(37712),S=["classroomList","dispatch","match","location","user","onCallback"],T=(0,p.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,o=e.classroomList,r=e.dispatch,s=(e.match,e.location,e.user),c=e.onCallback,h=(b()(e,S),(0,p.useParams)()),f=(0,d.useState)(!1),x=u()(f,2),y=x[0],T=x[1],A=(0,d.useState)(!1),L=u()(A,2),P=L[0],N=L[1],Z=(0,d.useRef)(null);(0,d.useEffect)((function(){if("删除"===o.actionTabs.key){if((0,v.j5)())return void N(!0);var e={hasNum:0,noHasNum:0};o.actionTabs.selectArrsAll.map((function(t){var n;t.author_login===(null===(n=s.userInfo)||void 0===n?void 0:n.login)?++e.hasNum:++e.noHasNum})),e.noHasNum>0?k.Z.info({title:"权限提示",className:"custom-modal-divider ",icon:null,content:(0,C.jsxs)("div",{children:["当前选中资源中:",(0,C.jsx)("span",{className:"c-blue",children:e.hasNum}),"个由您本人发布,",(0,C.jsx)("span",{className:"c-red",children:e.noHasNum})," ","个由其他老师发布。",(0,C.jsx)("br",{}),"课堂内只能删除本人发布的资源,请取消选中其他老师发布的资源。"]}),onOk:function(){B()}}):N(!0)}else N(!1)}),[o.actionTabs.key]);var B=function(){r({type:"classroomList/setActionTabs",payload:{}})};return(0,C.jsx)(k.Z,{centered:!0,title:"提示",open:P,okText:"确定",cancelText:"取消",confirmLoading:y,destroyOnClose:!0,onOk:a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=Z.current)||void 0===t||!t.onVerify()){e.next=2;break}return e.abrupt("return");case 2:return T(!0),e.next=5,(0,j.ZP)("/api/courses/".concat(h.coursesId,"/homework_commons/multi_destroy.json"),{method:"post",body:{homework_ids:w()(o.actionTabs.selectArrs)}});case 5:n=e.sent,T(!1),0===n.status&&((0,g.L9)(["教学课堂","图文作业","删除"]),m.ZP.success("删除成功"),r({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),c&&c(),(0,v.GJ)()?r({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},o.actionTabs.params),{},{type:5})}):r({type:"classroomList/getClassroomCommonList",payload:l()({},o.actionTabs.params)}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:h.coursesId}}));case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){B()},children:null!=o&&null!==(t=o.actionTabs)&&void 0!==t&&t.status&&["未发布"].includes(null==o||null===(n=o.actionTabs)||void 0===n?void 0:n.status)?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("p",{children:"提交作品将全部被删除,不可恢复"}),(0,C.jsx)("p",{children:"是否确认删除?"})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("p",{style:{color:"#DD0000"},children:"删除作业则会清除学生所有的答题数据,且数据不可恢复,如确定删除,请输入下方验证码"}),(0,C.jsx)(_.Z,{ref:function(e){return Z.current=e}})]})})})),A=n(52831),L=n(3655),P=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=(0,p.useParams)();return(0,C.jsx)(k.Z,{centered:!0,title:"提示",open:"设为公开"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.ZP)("/api/courses/".concat(o.coursesId,"/homework_commons/set_public.json"),{method:"post",body:{homework_ids:w()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,g.L9)(["教学课堂","图文作业","设为公开"]),m.ZP.success("操作成功"),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,v.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:5})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:(0,C.jsxs)("p",{children:["设为公开后,非课堂成员也可以访问查看",(0,C.jsx)("br",{}),"是否确认设为公开?"]})})})),N=["classroomList","dispatch","onCallback"],Z=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=e.onCallback,r=(b()(e,N),(0,p.useParams)());return r.id=r.coursesId,(0,C.jsx)(k.Z,{centered:!0,title:"提示",open:"收藏"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.ZP)("/api/courses/".concat(r.id,"/homework_commons/add_to_homework_bank.json"),{method:"post",body:{all_check:0,homework_ids:w()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,g.L9)(["教学课堂","图文作业","收藏"]),m.ZP.success("收藏成功,请前往【个人主页/课堂资源】查看"),n({type:"classroomList/setActionTabs",payload:{}}),o&&o(),(0,v.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:5})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)}),n({type:"classroomList/setActionTabs",payload:{}}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:"确认收藏?"})})),B=n(85573),M=n.n(B),E=n(78241),I=n(95237),D=n(43604),O=n(92832),R=n(61186),G=n.n(R),H=(0,p.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t,n,o=e.classroomList,r=(e.loading,e.dispatch),s=e.onCallback,c=(0,p.useParams)(),d=(0,p.useLocation)(),h=o.actionTabs,f=E.Z.useForm(),g=u()(f,1)[0];return(0,C.jsxs)(k.Z,{centered:!0,title:"新建目录",open:"新建目录"===o.actionTabs.key,okText:"确定",cancelText:"取消",bodyStyle:{minHeight:200},onOk:a()(i()().mark((function e(){var t,n,a,u,h,f,v,x;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=g.getFieldValue(),n="/api/course_modules/".concat(o.detailCommonHomeworksList.main_category_id,"/add_second_category.json"),e.next=4,(0,j.ZP)(n,{method:"post",body:l()({},t)});case 4:0===(a=e.sent).status&&(m.ZP.success("添加成功"),s&&s(),r({type:"classroomList/setActionTabs",payload:{}}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:c.coursesId}}),h=o.actionTabs.selectArrs.type,f=(null==a?void 0:a.category_id)||0,(v=null===(u=d.pathname)||void 0===u?void 0:u.split("/"))[4]=f,v[3]=h||v[3],x=null==v?void 0:v.join("/"),p.history.push(x));case 6:case"end":return e.stop()}}),e)}))),onCancel:function(){r({type:"classroomList/setActionTabs",payload:{}})},children:[(0,C.jsx)("p",{className:"tc",children:(0,C.jsx)("br",{})}),o.courseGroups.course_groups&&(0,C.jsx)(E.Z,{form:g,initialValues:M()({},"name",""),children:(0,C.jsx)(E.Z.Item,{name:"name",children:(0,C.jsxs)(I.Z,{className:"mt30",children:[(0,C.jsx)(D.Z,{children:"目录名称:"}),(0,C.jsx)(D.Z,{flex:"1",children:(0,C.jsx)(O.Z,{defaultValue:(null===(t=h.selectArrs)||void 0===t?void 0:t.category_name)||(null===(n=h.selectArrs)||void 0===n?void 0:n.name)})})]})})})]})})),z=n(99313),F=n(3113),W=n(24905),Y=n(26724),V=n.n(Y),U=n(87308),K=n(28103),J=n(81327),q=n(99681),Q={shixunItemWrapper:"shixunItemWrapper___ClCET",checkboxWrapper:"checkboxWrapper___bZ8gF",contentWrapper:"contentWrapper____pt8D",title:"title___tfmFW",desc:"desc___NDuDd",info:"info___mahF7"},X=U.Z.Paragraph,$=function(e,t){var n=e.createShixunParams,o=(0,d.useState)("0"),r=u()(o,2),s=r[0],c=r[1],p=(0,d.useState)("hot"),m=u()(p,2),h=m[0],f=m[1],g=(0,d.useState)([]),v=u()(g,2),x=v[0],w=v[1],y=(0,d.useRef)({page:1,order:"hot",keyword:"",shixun_type:"jupyter",diff:"0",limit:10}),b=function(){var e=a()(i()().mark((function e(t,n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,q.he)(t);case 2:if((o=e.sent).status){e.next=8;break}if(0!==o.shixuns.length||!n){e.next=7;break}return P(!1),e.abrupt("return");case 7:w(o.shixuns);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();(0,d.useImperativeHandle)(t,(function(){return{search:function(e){return b(l()(l()({},y.current),{},{keyword:e}))},changeKeyWord:function(e){return y.current.keyword=e}}})),(0,d.useEffect)((function(){b(y.current)}),[]);var k=(0,d.useState)([]),j=u()(k,2),_=j[0],S=j[1],T=(0,d.useState)(!0),A=u()(T,2),L=A[0],P=A[1];return(0,C.jsxs)("div",{style:{marginTop:20,maxHeight:200,overflowY:"auto",overflowX:"hidden"},children:[(0,C.jsxs)(I.Z,{justify:"space-between",style:{marginBottom:8},children:[(0,C.jsx)(D.Z,{children:[{name:"全部",id:"0"},{name:"初级",id:"1"},{name:"中级",id:"2"},{name:"中高级",id:"3"},{name:"高级",id:"4"}].map((function(e,t){return(0,C.jsx)(F.ZP,{type:s===e.id?"primary":"default",onClick:function(){c(e.id),y.current.diff=e.id,b(y.current)},children:e.name},t)}))}),(0,C.jsx)(D.Z,{children:[{name:"最热",id:"hot"},{name:"最新",id:"new"}].map((function(e,t){return(0,C.jsx)(F.ZP,{className:"mr20",type:h===e.id?"primary":"default",onClick:function(){f(e.id),y.current.order=e.id,b(y.current)},children:e.name},t)}))})]}),(0,C.jsx)(V(),{initialLoad:!1,pageStart:1,threshold:700,loadMore:function(e){b(l()(l()({},y.current),{},{page:e}),!0)},hasMore:L,useWindow:!1,children:(0,C.jsx)(W.Z.Group,{onChange:function(e){S(e),n.current.shixun_ids=e},value:_,children:x.map((function(e){var t=e||{},n=t.name,o=t.id,i=t.description,r=t.challenge_names,a=t.author_name,s=t.author_school_name,l=t.level,c=t.total_stu_num;return(0,C.jsxs)("div",{className:Q.shixunItemWrapper,children:[(0,C.jsxs)(I.Z,{align:"middle",className:Q.checkboxWrapper,gutter:14,children:[(0,C.jsx)(W.Z,{value:o}),(0,C.jsx)("div",{className:Q.title,children:n})]}),(0,C.jsxs)("div",{className:Q.contentWrapper,children:[(0,C.jsx)(X,{ellipsis:{rows:2},className:Q.desc,style:{color:"#8e8888"},children:i}),(0,C.jsx)(I.Z,{children:r.map((function(e,t){return(0,C.jsxs)("span",{className:Q.mission,children:["第",t+1,"关",e]},t)}))}),(0,C.jsx)(K.Z,{dashed:!0,style:{margin:"8px 0"}}),(0,C.jsx)(I.Z,{className:Q.info,children:(0,C.jsxs)(J.Z,{children:[(0,C.jsx)("span",{children:a}),(0,C.jsx)("span",{children:"|"}),(0,C.jsx)("span",{children:s}),(0,C.jsx)("span",{children:"|"}),(0,C.jsxs)("span",{children:["难度系数 ",l]}),(0,C.jsx)("span",{children:"|"}),(0,C.jsxs)("span",{children:["学习人数 ",c]})]})})]})]},o)}))})})]})},ee=(0,d.forwardRef)($),te={flex_box_center:"flex_box_center___Cx3ju",flex_space_between:"flex_space_between___rc8Mm",flex_box_vertical_center:"flex_box_vertical_center___6BCc9",flex_box_center_end:"flex_box_center_end___sN3Ig",flex_box_column:"flex_box_column___wjzgd",line1:"line1___cHCBY",form:"form___IMCYE"},ne=n(54313),oe=n(54602),ie=(z.Z.TabPane,(0,p.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,loading:e.loading}}))((function(e){var t,n=e.shixunHomeworks,o=(e.loading,e.dispatch),r=e.refreshList,s=(0,p.useParams)(),c=((0,p.useLocation)(),E.Z.useForm()),m=u()(c,1)[0],h=(n.brankList,(0,d.useState)(!1)),f=u()(h,2),x=(f[0],f[1]),y=(0,d.useState)(!0),b=u()(y,2),j=b[0],_=b[1],S=(0,d.useState)(!1),T=u()(S,2),A=T[0],L=T[1],P=(0,d.useState)("myself"),N=u()(P,2),Z=N[0],B=N[1],R=(0,d.useState)([]),G=u()(R,2),H=G[0],z=G[1],Y=(0,d.useState)(),U=u()(Y,2),K=U[0],J=U[1],q=(0,d.useState)({page:0,limit:20,object_type:"normal",search:"",filter:"myself"}),Q=u()(q,2),X=Q[0];Q[1];(0,d.useEffect)((function(){"题库选用"===n.actionTabs.key&&ie()}),[n.actionTabs.key]);var $=[],ie=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!j){e.next=11;break}return x(!1),++X.page,e.next=5,o({type:"shixunHomeworks/getBrankList",payload:l()({},X)});case 5:n=e.sent,H=w()(H.concat(n.object_list)),J(n.is_teacher),(null===(t=n.object_list)||void 0===t?void 0:t.length)5&&(0,C.jsx)(Se.Z,{scroll:{y:240},onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:q,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(H.sort_by=n.field),n.order||(H.sort_direction="asc"),"ascend"===n.order&&(H.sort_direction="asc"),"descend"===n.order&&(H.sort_direction="desc"),n.order||(H.sort_direction="asc"),$()},columns:X}),(0,v.GJ)()&&"未发布"!==A.status&&Y&&q.length<6&&q.length>0&&(0,C.jsx)(Se.Z,{onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:q,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(H.sort_by=n.field),n.order||(H.sort_direction="asc"),"ascend"===n.order&&(H.sort_direction="asc"),"descend"===n.order&&(H.sort_direction="desc"),n.order||(H.sort_direction="asc"),$()},columns:X})]})]})]})},Ne="bg___KWyBO",Ze="otherHomeworkWrap___WlvHv",Be="otherHomeworkContainer___Qfj2O",Me="flex___q8ATC",Ee="search___xedy7",Ie="content___VSdQb",De="listItem___u6wwP",Oe="info___vvX3a",Re="title___FtVL7",Ge="describe___g43sA",He="footer___TNGYY",ze=function(e){var t=e.courseId,n=e.type,o=e.onCancel,r=(0,p.useParams)(),s=(0,d.useState)({targerData:[],originData:[]}),c=u()(s,2),h=c[0],f=c[1],v=(0,d.useState)([]),x=u()(v,2),y=x[0],b=x[1],k=(0,d.useState)(!1),_=u()(k,2),S=_[0],T=_[1],A=function(){var e=a()(i()().mark((function e(){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(!0),e.next=3,(0,j.ZP)("/api/courses/".concat(t,"/homework_commons/impersonal_list.json"),{method:"get",params:{type:n}});case 3:o=e.sent,T(!1),f({targerData:o.homeworks,originData:o.homeworks});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,d.useEffect)((function(){A()}),[]);var L=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(!0),t={homework_common_ids:y},r.categoryId&&(t=l()(l()({},t),{},{category_id:r.categoryId})),e.next=5,(0,j.ZP)("/api/courses/".concat(r.coursesId,"/homework_commons/create_collaborators.json"),{method:"POST",body:t});case 5:(n=e.sent)&&n.homework_ids.length>0&&(m.ZP.success("提交成功"),o()),T(!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,C.jsx)("div",{className:"animated fadeInUp fast ".concat(Ze),children:(0,C.jsxs)("div",{className:Be,children:[(0,C.jsx)("div",{className:Ee,children:(0,C.jsx)(O.Z.Search,{size:"middle",enterButton:"搜索",onSearch:function(e){var t=h.originData.filter((function(t){return t.name.indexOf(e)>-1}));f(l()(l()({},h),{},{targerData:t}))},placeholder:"请输入图文作业名称进行查询"})}),(0,C.jsx)("div",{className:Ie,children:h.targerData.map((function(e){return(0,C.jsxs)("div",{className:"".concat(De," mb10"),children:[(0,C.jsx)(W.Z,{checked:y.includes(e.id),onChange:function(t){return function(e,t){e.target.checked?b([].concat(w()(y),[t])):b(y.filter((function(e){return e!==t})))}(t,e.id)}}),(0,C.jsxs)("div",{className:Oe,children:[(0,C.jsxs)("div",{className:"".concat(Me," mb10"),style:{justifyContent:"space-between"},children:[(0,C.jsx)("div",{className:Re,children:e.name}),(0,C.jsx)("div",{children:(0,C.jsx)(F.ZP,{type:"primary",ghost:!0,onClick:function(){return(0,g.xg)("/classrooms/".concat(r.coursesId,"/common_homework/").concat(e.id,"/detail"))},children:"查看作业"})})]}),(0,C.jsx)("div",{className:"mb20 font14 c-grey-999 ".concat(Ge),children:e.description}),(0,C.jsxs)("div",{className:"font12",children:[(0,C.jsx)("span",{className:"c-grey-333 mr20",children:e.user.name}),(0,C.jsxs)("span",{className:"c-grey-999",children:["创建时间:",e.created_at]})]})]})]},e.id)}))}),(0,C.jsxs)("div",{className:He,children:[(0,C.jsx)(F.ZP,{type:"primary",ghost:!0,onClick:o,children:"取消"}),(0,C.jsx)(F.ZP,{type:"primary",disabled:0===y.length||S,onClick:function(){L()},children:"确定"})]})]})})},Fe=n(20208),We=n(52352),Ye=n(75774),Ve=n(57809),Ue=n(57930),Ke=n(71418),Je=n(33656),qe=n.n(Je),Qe=n(1058),Xe=["classroomList","dispatch","user","getData"];G().extend(qe());var $e=function(e){var t,n,o,i,r=e.data,a=e.value,s=e.onChange,c=(0,d.useState)({leftSearch:"",rigthSearch:""}),p=u()(c,2),m=p[0],h=p[1],f=(0,d.useState)([]),g=u()(f,2),v=g[0],x=g[1];return(0,d.useEffect)((function(){x((null==a?void 0:a.length)>0?null==r?void 0:r.filter((function(e){return null==a?void 0:a.includes(null==e?void 0:e.id)})):[])}),[a]),(0,C.jsxs)("div",{style:{display:"flex",flexWrap:"nowrap",gap:"20px",height:"400px"},children:[(0,C.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,C.jsx)(W.Z,{indeterminate:(null==v?void 0:v.length)>0&&(null==v?void 0:v.length)<(null==r?void 0:r.length),checked:(null==v?void 0:v.length)==(null==r?void 0:r.length),onChange:function(e){s(e.target.checked?null==r?void 0:r.map((function(e){return null==e?void 0:e.id})):[])},children:"全选"}),(0,C.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,C.jsx)(O.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:m.leftSearch,onChange:function(e){h(l()(l()({},m),{},{leftSearch:e.target.value}))}}),(0,C.jsx)("div",{className:"mt20 ml20 mb20",style:{overflow:"auto"},children:0!==(null===(t=m.leftSearch?null==r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.leftSearch)})):r)||void 0===t?void 0:t.length)?(0,C.jsx)(W.Z.Group,{value:a,onChange:function(e){s(e)},children:(0,C.jsx)(J.Z,{direction:"vertical",children:null===(n=m.leftSearch?null==r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.leftSearch)})):r)||void 0===n?void 0:n.map((function(e,t){return(0,C.jsx)(W.Z,{value:e.id,children:null==e?void 0:e.name},t)}))})}):(0,C.jsx)(ne.Z,{styles:{margin:"0 auto"}})})]})]}),(0,C.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,C.jsxs)("div",{children:["已选择",(null==v?void 0:v.length)||0,"个分班"]}),(0,C.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,C.jsx)(O.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:m.rigthSearch,onChange:function(e){h(l()(l()({},m),{},{rigthSearch:e.target.value}))}}),(0,C.jsx)("div",{className:"mt20 ml20 mb20 pr20",style:{display:"flex",flexDirection:"column",gap:"10px",overflow:"auto"},children:0!==(null===(o=m.rigthSearch?null==v?void 0:v.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.rigthSearch)})):v)||void 0===o?void 0:o.length)?null===(i=m.rigthSearch?null==v?void 0:v.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.rigthSearch)})):v)||void 0===i?void 0:i.map((function(e,t){return(0,C.jsxs)(I.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,C.jsx)(D.Z,{children:null==e?void 0:e.name}),(0,C.jsx)(D.Z,{children:(0,C.jsx)("i",{className:"iconfont icon-piliangshanchu2 font16 current",style:{color:"#3061D0"},onClick:function(){s(null==a?void 0:a.filter((function(t){return t!==(null==e?void 0:e.id)})))}})})]},t)})):(0,C.jsx)(ne.Z,{styles:{margin:"0 auto"}})})]})]})]})},et=(0,p.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,o,r,s,c,h=e.classroomList,f=e.dispatch,v=(e.user,e.getData),x=(b()(e,Xe),(0,p.useParams)()),w=E.Z.useForm(),y=u()(w,1)[0],j=E.Z.useWatch("penalty_type",y),_="批量补交"===(null==h||null===(t=h.actionTabs)||void 0===t?void 0:t.key),S=(0,Qe.U)(oe.c_,l()(l()({},x),null==h||null===(n=h.actionTabs)||void 0===n?void 0:n.params)),T=u()(S,4),A=T[1],L=T[2],P=T[3],N=(0,Qe.U)(oe.nP,{course_id:null==x?void 0:x.coursesId,homework_ids:null==h||null===(o=h.actionTabs)||void 0===o?void 0:o.selectArrs}),Z=u()(N,4),B=Z[2],M=Z[3],R=(0,Qe.U)(oe.sm,{course_id:null==x?void 0:x.coursesId,homework_ids:null==h||null===(r=h.actionTabs)||void 0===r?void 0:r.selectArrs}),H=u()(R,3),z=H[1],F=H[2],W=function(){var e=a()(i()().mark((function e(){var t=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:{},B({}),e.next=4,L({page:1,limit:2e4,homework_id:1===h.actionTabs.type?"":h.actionTabs.selectArrs[0]});case 4:e.sent;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,d.useEffect)((function(){_&&W()}),[_]),(0,C.jsxs)(k.Z,{centered:!0,title:null==h||null===(s=h.actionTabs)||void 0===s?void 0:s.key,width:800,open:_,cancelText:"暂不补交",okText:"开启补交",onCancel:function(){f({type:"classroomList/setActionTabs",payload:{}})},destroyOnClose:!0,confirmLoading:z,onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y.submit();case 1:case"end":return e.stop()}}),e)}))),children:[(0,C.jsx)("div",{className:"p10 pl20 pr20 c-orange-ff7 mb20",style:{background:"#F6F7F9"},children:"规则说明:补交截止时间必须晚于作业截止时间;当班级阶段进入“补交中”则不可变更作业截止时间、不可关闭补交;当作业状态为未发布或者作业已开启统一补交时,新批量补交规则不生效。"}),(0,C.jsxs)(E.Z,{form:y,colon:!1,size:"large",initialValues:{unified_late:!1,penalty_type:2,late_minus_score:20},onFinish:function(){var e=a()(i()().mark((function e(t){var n,o,r,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F((null==P||null===(n=P.course_groups)||void 0===n?void 0:n.length)>0?{unified_late:(null==P||null===(o=P.course_groups)||void 0===o?void 0:o.length)<=0,allow_late_settings:[l()({},t)]}:l()({unified_late:(null==P||null===(r=P.course_groups)||void 0===r?void 0:r.length)<=0},t));case 2:0==(null==(a=e.sent)?void 0:a.status)&&(m.ZP.success("补交设置成功"),f({type:"classroomList/setActionTabs",payload:{}}),v&&v());case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,C.jsxs)(I.Z,{wrap:!1,gutter:20,children:[(0,C.jsx)(D.Z,{flex:1,children:(0,C.jsx)(E.Z.Item,{label:"补交扣分",name:"late_minus_score",rules:[{required:!0,validator:function(e,t,n){return 2===j&&t>100?Promise.reject((0,C.jsx)("span",{style:{marginLeft:100},children:"请重新输入,范围0-100"})):Promise.resolve()}},{required:!0,message:(0,C.jsx)("span",{style:{marginLeft:100},children:"请输入补交扣分"})}],children:(0,C.jsx)(O.Z,{placeholder:"请输入补交扣分",min:0,type:"number",suffix:1==j?"分":"%",max:1===j?Number.MAX_SAFE_INTEGER:100,addonBefore:(0,C.jsx)(E.Z.Item,{name:"penalty_type",noStyle:!0,normalize:function(e){return y.setFieldsValue({late_minus_score:2==e?20:5}),e},children:(0,C.jsx)(Ve.default,{style:{width:100},options:[{value:2,label:"百分比"},{value:1,label:"分值"}]})})})})}),(0,C.jsx)(D.Z,{flex:"390px",children:(0,C.jsx)(E.Z.Item,{label:"补交截止时间",name:"late_time",rules:[{required:!0,validator:function(e,t,n){return t&&G()(t).startOf("minute")<=G()().startOf("minute")?Promise.reject("作业补交截止时间必须晚于此刻"):t&&G()(t).startOf("minute")<=G()(null==M?void 0:M.max_late_time).startOf("minute")?(m.ZP.warning("补交截止时间不能小于选中作业中最晚作业截止时间:".concat(null==M?void 0:M.max_late_time)),Promise.reject("")):Promise.resolve()}},{required:!0,message:"请先设置补交截止时间"}],children:(0,C.jsx)(Ue.default,{placeholder:"请选择截止时间",style:{width:"100%"},disabledDate:function(e){return(0,g.BO)(e,{startTime:null==M?void 0:M.max_late_time})},disabledTime:function(e){return(0,g.hv)(e,{compared:null==M?void 0:M.max_late_time})},format:"YYYY-MM-DD HH:mm",showTime:{showSecond:!1,defaultValue:G()("00:00:00","HH:mm:ss")}})})})]}),(null==P||null===(c=P.course_groups)||void 0===c?void 0:c.length)>0&&(0,C.jsx)(Ke.Z,{spinning:A,children:(0,C.jsx)(E.Z.Item,{name:"group_id",rules:[{required:!0,message:"请先选择班级"}],children:(0,C.jsx)($e,{data:(null==P?void 0:P.course_groups)||[],onChange:function(e){B({group_ids:e})}})})})]})]})})),tt=n(5112),nt=n(26830),ot=function(e){var t=e.styles,n=void 0===t?{}:t,o=e.onSelect,i=e.params,r=e.onClick,a=(0,d.useState)(!1),s=u()(a,2),c=s[0],m=s[1],h=(0,d.useState)(""),f=u()(h,2),g=f[0],v=f[1];(0,d.useEffect)((function(){m(!1),v("")}),[]);return(0,C.jsxs)("section",{className:"tc animated fadeIn",style:l()(l()({},{color:"#999",margin:"200px auto"}),n),children:[(0,C.jsx)("img",{src:nt.z3}),(0,C.jsxs)("p",{className:"mt20 font14",children:["编程作业是由多个编程试题组成,可用于ACM模式竞赛,也可作为平常练习",(0,C.jsx)("br",{}),"点击下方按钮,开始新建编程作业"]}),(0,C.jsx)("div",{style:{marginTop:"30px"},children:(0,C.jsx)(F.ZP,{onClick:r,type:"primary",style:{width:"128px",height:"40px",marginRight:"20px",borderRadius:"4px"},children:"新建作业"})}),c&&(0,C.jsx)(k.Z,{open:!0,centered:!0,title:"新建作业",onCancel:function(){return m(!1)},onOk:function(){"1"===g&&p.history.push("/classrooms/".concat(i.coursesId,"/common_homework/").concat(i.categoryId,"/add")),"2"===g&&(o(),m(!1),v(""))},children:(0,C.jsxs)("div",{children:[(0,C.jsx)("div",{children:(0,C.jsx)(tt.ZP,{value:"1",style:{marginTop:"15px"},checked:"1"===g,onClick:function(){return v("1")},children:"新建图文作业"})}),(0,C.jsx)("div",{children:(0,C.jsx)(tt.ZP,{value:"2",style:{marginTop:"15px"},checked:"2"===g,onClick:function(){return v("2")},children:"选用资源"})})]})})]})},it=(0,d.createContext)({selectArrs:[]}),rt=(0,p.connect)((function(e){var t=e.classroomList,n=e.loading,o=e.user;return{classroomList:t,globalSetting:e.globalSetting,user:o,loading:n.effects}}))((function(e){var t,n,o,r,s=e.classroomList,c=e.loading,x=e.dispatch,w=e.user,y=(0,p.useLocation)(),b=(0,p.useParams)(),k=(0,d.useState)((function(){return l()(l()({},b),{},{id:b.coursesId,limit:20})})),j=u()(k,2),_=j[0],S=j[1],N=(0,p.useSearchParams)(),B=u()(N,1)[0],M=(0,d.useState)([]),E=u()(M,2),I=E[0],D=E[1],O=(0,d.useState)(!1),R=u()(O,2),G=R[0],z=R[1],F=(0,d.useState)(!1),W=u()(F,2),Y=W[0],V=W[1],U=(0,d.useState)([]),K=u()(U,2),J=K[0],q=K[1],Q=(0,d.useState)(!1),X=u()(Q,2),$=X[0],ee=X[1],te=(0,d.useState)("默认排序"),oe=u()(te,2),re=oe[0],ae=oe[1],le=w.userInfo,ce=s.detailCommonHomeworksList,ue=s.detailLeftMenus,de=(s.detailTopBanner,s.taskList);_.type=1,_.categoryId?_.category=_.categoryId:delete _.category,(0,d.useEffect)((function(){var e=B.get("tabs");e&&void 0!==e&&((0,v.GJ)()?_.status=e:_.order=e)}),[y.search]),(0,d.useEffect)((function(){"0"===B.get("tabs")&&(_.status="0",_.page=1),_.status=B.get("tabs")}),[B.get("tabs")]),(0,d.useEffect)((function(){S(l()(l()({},_),b))}),[null==b?void 0:b.categoryId]),(0,d.useEffect)((function(){var e,t;if(b.categoryId?(_.categoryId=b.categoryId,_.category=b.categoryId):delete _.category,null!=w&&null!==(e=w.userInfo)&&void 0!==e&&e.login){var n;x({type:"classroomList/getAssistantPermissions",payload:{course_id:_.id}});var o=g.cX.getItem("".concat(null==w||null===(n=w.userInfo)||void 0===n?void 0:n.login).concat((0,v.GJ)()?"Teacher":"Student"),"ProgramHomework");o&&(_.sort_by=null==o?void 0:o.type,_.sort_direction=null==o?void 0:o.direction,ae(null==o?void 0:o.name));var i=B.get("tabs");i&&void 0!==i&&((0,v.GJ)()?_.status=i:_.order=i),pe({})}else if(null!=w&&null!==(t=w.userInfo)&&void 0!==t&&t.username){var r=B.get("tabs");r&&void 0!==r&&((0,v.GJ)()?_.status=r:_.order=r),pe({})}}),[null==w||null===(t=w.userInfo)||void 0===t?void 0:t.login,null==y?void 0:y.pathname]),(0,d.useEffect)((function(){"清除选择数据"===s.actionTabs.key&&(D([]),q([])),"目录重命名成功"===s.actionTabs.key&&pe()}),[s.actionTabs.key]),(0,d.useEffect)((function(){D([])}),[ce]),(0,d.useEffect)((function(){V(!1)}),[_.categoryId]),(0,d.useEffect)((function(){ce&&ce.homeworks&&(I.length===ce.homeworks.length&&I.length>0?z(!0):I.length!==ce.homeworks.length&&z(!1))}),[I]);var pe=function(){D([]),q([]),x({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},_),{},{type:5})})};ue.course_modules&&s.detailLeftMenus.course_modules.filter((function(e){return"common_homework"===e.type}))[0];["删除","立即发布","立即截止","收藏"].filter((function(e){return null!=le&&le.main_site?e:"收藏"!==e})).filter((function(e){return!!(0,v.GJ)()||"删除"!==e}));var me=function(){x({type:"shixunHomeworks/setActionTabs",payload:{key:"题库选用",params:_}})},he=null===(n=[{key:"publish",label:"批量发布",icon:(0,C.jsx)("i",{className:"iconfont icon-fabu5"}),isShow:!0},{key:"deadline",label:"批量截止",icon:(0,C.jsx)("i",{className:"iconfont icon-piliangjiezhi2"}),isShow:!0},{key:"batchpay",label:"批量补交",icon:(0,C.jsx)("i",{className:"iconfont icon-buka"}),isShow:!0},{key:"delete",label:"批量删除",icon:(0,C.jsx)("i",{className:"iconfont icon-piliangshanchu2"}),isShow:(0,v.GJ)()||(0,v.Rm)()}].filter((function(e){return null==e?void 0:e.isShow})))||void 0===n?void 0:n.map((function(e){return delete e.isShow,e})),fe=function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x({type:"classroomList/updateTaskPosition",payload:{category_id:_.categoryId,courseId:_.id,task_ids:t,container_type:"program_homework"}});case 2:pe();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ve=(0,d.useMemo)((function(){var e=[];return de.length>0&&(e=de.map((function(e){var t;return{user_name:e.user_name,task_name:e.task_name,task_id:e.task_id,category:e.category,status:null==e||null===(t=e.status)||void 0===t?void 0:t[0]}}))),e}),[de]);return(0,C.jsx)(it.Provider,{value:{params:_,batchStatus:Y,selectArrs:I,setSelectArrs:D,allSelect:G,dataSource:ce.homeworks||[],detailLeftMenus:ue,main_category_id:ce.main_category_id||"",selectArrsAll:J,setAllSelect:z,useBatchStatus:V,dispatch:x,getData:pe,setSelectArrsAll:q},children:(0,C.jsxs)("section",{children:[(0,C.jsxs)("aside",{className:Ne,children:[(0,C.jsx)(ge,{isLoading:c["classroomList/getClassroomTeacherCommonList"],tabDataSource:(0,v.GJ)()?[{name:"全部",id:0,total:ce.all_count||0},{name:"未发布",id:1,total:ce.unpublished_count||0},{name:"未开始",id:4,total:ce.not_start_count||0},{name:"进行中",id:2,total:ce.in_progress_count||0},{name:"已截止",id:3,total:ce.overed_count||0}]:[{name:"全部",id:0},{name:"提交中",id:2},{name:"补交中",id:10},{name:"已截止",id:3}],classroomList:s,isAdmin:(0,v.GJ)(),dispatch:x,type:null==ce?void 0:ce.main_category_name,TooltipTitle:_.categoryId?"目录重命名":"新建子目录",categoryId:_.categoryId,user:w,dropdownMenu:[{name:"新建编程作业",id:"1"},{name:"导入外部成绩",id:"3"}],isShowRightControl:"未分配目录"!==(0,g.Oo)(null==ue?void 0:ue.course_modules,_.categoryId),onTabMenuClick:function(e){void 0!==e.id&&((0,v.GJ)(),_.status=e.id),V(!1),_.page=1,p.history.replace("".concat(y.pathname,"?tabs=").concat(e.id)),pe(_)},defaultSelectedKeys:[B.get("tabs")?B.get("tabs"):"0"],onTooltipTitleClick:function(){x({type:"classroomList/setActionTabs",payload:{key:_.categoryId?"目录重命名":"添加目录",params:_,selectArrs:{category_name:null==ce?void 0:ce.category_name,category_id:(null==ce?void 0:ce.category_id)||(null==ce?void 0:ce.main_category_id)},cb:function(){pe()}}})},onDropdownMenuClick:function(e){var t;!(0,v.Rm)()||null!==(t=s.AssistantObject.hack)&&void 0!==t&&t.can_create?"1"===e?p.history.push("/classrooms/".concat(_.coursesId,"/program_homework/").concat(_.categoryId,"/add")):"2"===e?me():"3"===e&&x({type:"classroomList/setActionTabs",payload:{key:"导入外部成绩",type:"hack"}}):m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),(0,C.jsx)(be,{dataSource:ce.homeworks||[],isAdmin:(0,v.GJ)(),batchStatus:Y,SortMenuName:re,setSortMenuName:ae,onSearch:function(e){_.search=e.trim(),_.page=1,pe()},onSort:function(e){var t;_.sort_by=e.type,_.sort_direction=e.direction,_.page=1,g.cX.setItem("".concat(null==w||null===(t=w.userInfo)||void 0===t?void 0:t.login).concat((0,v.GJ)()?"Teacher":"Student"),e,"ProgramHomework"),pe(_)},onBatch:function(e){return V(e)}})]}),0===(null==ce?void 0:ce.all_count)&&(0,v.GJ)()?!c[(0,v.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,C.jsx)(ot,{params:_,dispatch:x,onClick:function(){return p.history.push("/classrooms/".concat(_.coursesId,"/program_homework/").concat(_.categoryId,"/add"))},onSelect:me}):(null==ce?void 0:ce.homeworks)&&0===ce.homeworks.length&&!c[(0,v.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,C.jsx)(ne.Z,{}),(0,C.jsx)("aside",{className:"minH500 skt-loading relative pb40 mb30",children:!c[(0,v.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("aside",{className:"animated fadeIn",children:[null==ce||null===(o=ce.homeworks)||void 0===o?void 0:o.map((function(e,t){return(0,C.jsx)(Pe,{user:w,dataSource:e,params:_,classroomList:s,manageAllGroup:null==ce?void 0:ce.manage_all_group,getData:pe},t)})),!c[(0,v.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,C.jsx)("aside",{className:"tc mb50 mt30",children:(null==ce?void 0:ce.query_total_count)>10&&(0,C.jsx)(h.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:function(e,t){_.page=e,pe()},defaultPageSize:20,defaultCurrent:1,current:_.page||1,total:(0,v.GJ)()?ce.query_total_count:ce.student_all_count})})]}),I.length>0&&(0,v.GJ)()&&(0,C.jsx)(f.Z,{offsetBottom:0,children:(0,C.jsx)(Ce,{buttonDataSource:he,onClick:function(e){var t,n,o,i;if(0===I.length)return m.ZP.error("请选择你要操作的任务"),!1;if(2!==(null==w||null===(t=w.userInfo)||void 0===t?void 0:t.user_status)||"publish"!==(null==e?void 0:e.key)){var r=e.label||"",a={key:r,selectArrs:I,selectArrsAll:J,type:["publish","deadline"].includes(e.key)?1:"",params:_};switch(e.key){case"publish":if(r="立即发布",(0,v.Rm)()&&(null===(n=s.AssistantObject)||void 0===n||null===(n=n.hack)||void 0===n||!n.can_publish))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");break;case"deadline":if(r="立即截止",(0,v.Rm)()&&(null===(o=s.AssistantObject)||void 0===o||null===(o=o.hack)||void 0===o||!o.can_stop))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");break;case"batchpay":r="批量补交";break;case"delete":if(r="删除",(0,v.Rm)()&&(null===(i=s.AssistantObject)||void 0===i||null===(i=i.hack)||void 0===i||!i.can_delete))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");break;case"collection":r="收藏"}x({type:"classroomList/setActionTabs",payload:l()(l()({},a),{},{key:r})})}else(0,Le.Rd)()}})})]})}),"批量补交"===(null==s||null===(r=s.actionTabs)||void 0===r?void 0:r.key)&&(0,C.jsx)(et,{getData:pe}),(0,C.jsx)(T,{onCallback:function(){return V(!1)}}),(0,C.jsx)(Fe.Z,{onOk:function(){pe()}}),(0,C.jsx)(We.Z,{onOk:function(){}}),(0,C.jsx)(A.Z,{onCallback:function(){return V(!1)},courseEndTime:null==ce?void 0:ce.course_end_time}),(0,C.jsx)(L.Z,{courseEndTime:null==ce?void 0:ce.course_end_time,courseId:b.coursesId,visible:"立即截止"===s.actionTabs.key,isBatch:2!==s.actionTabs.type,homeworkIds:s.actionTabs.selectArrs,successCallback:function(){V(!1),pe()}}),(0,C.jsx)(P,{}),(0,C.jsx)(Z,{onCallback:function(){return V(!1)}}),(0,C.jsx)(H,{onCallback:function(){return V(!1)}}),(0,C.jsx)(ie,{refreshList:pe}),(0,C.jsx)(se,{}),(0,C.jsx)(Ye.Z,{visible:"调整排序"===s.actionTabs.key,callback:fe,data:ve,onCancel:function(){x({type:"classroomList/setActionTabs",payload:{key:""}})}}),$&&(0,C.jsx)(ze,{courseId:_.coursesId,type:"1",onCancel:function(){return ee(!1)}})]})})}))},52352:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(59028),f=n(78241),g=n(43418),v=n(8591),x=n(61998),w=n(5296),y=n(92723),b=n(57102),k=n(18030),j=n(61186),_=n.n(j),C=n(21082),S=n(37712),T=h.Z.Dragger;t.Z=(0,w.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,o=e.dispatch,r=e.onOk,s=((0,w.useParams)(),f.Z.useForm()),c=p()(s,1)[0],d=(0,m.useState)(),h=p()(d,2),j=h[0],A=h[1],L=(0,m.useState)(!1),P=p()(L,2),N=P[0],Z=P[1],B={height:100,onRemove:function(){A("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:(t=u()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,m.useEffect)((function(){c.setFieldsValue(a()(a()({},"publish_time",_()(_()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",_()(_()(new Date((0,C.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),[]),(0,S.jsx)(g.Z,{centered:!0,title:"补充成绩",open:"补充成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:N},onOk:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){c.resetFields(),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,S.jsxs)(f.Z,{form:c,onFinish:function(){var e=u()(l()().mark((function e(t){var i,a,s,u,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=j&&j.size){e.next=3;break}return v.ZP.info("请上传文件"),e.abrupt("return");case 3:return Z(!0),(i=new FormData).append("type",n.actionTabs.type),i.append("file",j),a=window.location.href.indexOf("exercise")>-1?"/api/exercises/".concat(n.actionTabs.id,"/supplement_score.json"):"/api/homework_commons/".concat(n.actionTabs.id,"/supplement_score.json"),e.next=10,(0,k.ZP)(a,{method:"post",body:i},!0);case 10:s=e.sent,Z(!1),0===(null==s?void 0:s.status)&&(r(),c.resetFields(),o({type:"classroomList/setActionTabs",payload:{}}),(null==s||null===(u=s.data)||void 0===u||null===(u=u.fail)||void 0===u?void 0:u.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,S.jsx)(x.Z,{pagination:!1,dataSource:null==s||null===(d=s.data)||void 0===d?void 0:d.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,C.FH)("",y.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,S.jsx)(f.Z.Item,{label:"作业名称",labelCol:{span:3},name:"name",children:n.actionTabs.name}),(0,S.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,S.jsxs)("div",{children:[(0,S.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,S.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,S.jsxs)("div",{children:[(0,S.jsx)("a",{download:"模版.xlsx",className:b.Z.downloadbutton,href:y.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,S.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,S.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,S.jsxs)(T,i()(i()({},B),{},{children:[(0,S.jsx)("a",{className:b.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,S.jsx)("br",{}),(0,S.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},20208:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(59028),f=n(78241),g=n(43418),v=n(8591),x=n(61998),w=n(92832),y=n(95237),b=n(43604),k=n(94001),j=n(57930),_=n(5296),C=n(16318),S=n(92723),T=n(57102),A=n(18030),L=n(63363),P=n(61186),N=n.n(P),Z=n(21082),B=n(37712),M=h.Z.Dragger;t.Z=(0,_.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,o=e.dispatch,r=e.onOk,s=(0,_.useParams)(),c=f.Z.useForm(),d=p()(c,1)[0],h=(0,m.useState)(),P=p()(h,2),E=P[0],I=P[1],D=(0,m.useState)(!1),O=p()(D,2),R=O[0],G=O[1],H={height:100,onRemove:function(){I("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:(t=u()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,m.useEffect)((function(){d.setFieldsValue(a()(a()({},"publish_time",N()(N()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",N()(N()(new Date((0,Z.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),["导入外部成绩"===n.actionTabs.key]),(0,B.jsx)(g.Z,{centered:!0,title:"导入外部成绩",open:"导入外部成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:R},onOk:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:d.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){d.resetFields(),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,B.jsxs)(f.Z,{form:d,colon:!1,onFinish:function(){var e=u()(l()().mark((function e(t){var i,a,c,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=E&&E.size){e.next=3;break}return v.ZP.info("请上传文件"),e.abrupt("return");case 3:return G(!0),(i=new FormData).append("name",t.name),i.append("type",n.actionTabs.type),i.append("category_id",(null==s?void 0:s.categoryId)||null),"exercise"===n.actionTabs.type?(i.append("time",t.time||""),i.append("total_score",t.total_score)):i.append("description",t.description||""),i.append("publish_time",N()(t.publish_time).format("YYYY-MM-DD HH:mm")),i.append("end_time",N()(t.end_time).format("YYYY-MM-DD HH:mm")),i.append("file",E),e.next=14,(0,A.ZP)("/api/courses/".concat(s.coursesId,"/export_external_score_homework.json"),{method:"post",body:i},!0);case 14:a=e.sent,G(!1),0===(null==a?void 0:a.status)&&(d.resetFields(),o({type:"classroomList/setActionTabs",payload:{}}),r(),(null==a||null===(c=a.data)||void 0===c||null===(c=c.fail)||void 0===c?void 0:c.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,B.jsx)(x.Z,{pagination:!1,dataSource:null==a||null===(u=a.data)||void 0===u?void 0:u.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,Z.FH)("",S.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,B.jsx)(f.Z.Item,{label:"exercise"!==n.actionTabs.type?"作业":"试卷名称",labelCol:{span:3},name:"name",rules:[{required:!0,message:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称")}],children:(0,B.jsx)(w.Z,{showCount:!0,placeholder:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称"),maxLength:60})}),"exercise"!==n.actionTabs.type&&(0,B.jsx)(f.Z.Item,{label:"作业描述",labelCol:{span:3},name:"description",children:(0,B.jsx)(C.Z,{watch:!0})}),"exercise"===n.actionTabs.type&&(0,B.jsxs)(y.Z,{style:{marginLeft:6},children:[(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"试卷总分",name:"total_score",rules:[{required:!0,message:"请填写试卷总分"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"试卷总分必须为正数"}],children:(0,B.jsx)(w.Z,{placeholder:"请输入试卷总分",style:{width:256},addonAfter:"分"})})}),(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"答题时长",labelCol:{span:6},name:"time",children:(0,B.jsx)(k.Z,{style:{width:"100%"},addonAfter:"分钟",placeholder:"请输入答题时长"})})})]}),(0,B.jsxs)(y.Z,{style:{marginLeft:6,marginBottom:12},children:[(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"开始时间",name:"publish_time",rules:[{required:!0,message:"请选择开始时间"}],children:(0,B.jsx)(j.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:256},disabledDate:function(e){return(0,L.Q8)(e)},disabledTime:function(e){return(0,L.d0)(e)},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})}),(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"结束时间",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"请选择结束时间"}],children:(0,B.jsx)(j.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:function(e){return(0,L.Q8)(e,"",d.getFieldValue("publish_time"))},disabledTime:function(e){return(0,L.d0)(e,d.getFieldValue("publish_time"))},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})})]}),(0,B.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,B.jsxs)("div",{children:[(0,B.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,B.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,B.jsxs)("div",{children:[(0,B.jsx)("a",{download:"模版.xlsx",className:T.Z.downloadbutton,href:S.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,B.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,B.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,B.jsxs)(M,i()(i()({},H),{},{children:[(0,B.jsx)("a",{className:T.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,B.jsx)("br",{}),(0,B.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},95335:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),u=n(92832),d=n(24905),p=n(95237),m="leftdiv___aBzsX",h="listClass___bxIEW",f="spantitle___v_Vc4",g="rightdiv___xWu4M",v=n(54313),x=n(37712),w=function(e){var t=e.data,n=(e.value,e.handleChangePage,e.setSelectedRowKeys),o=e.selectedRowKeys,r=(e.onChange,(0,c.useState)([])),s=l()(r,2),w=s[0],y=s[1],b=(0,c.useState)([]),k=l()(b,2),j=k[0],_=k[1],C=(0,c.useState)([]),S=l()(C,2),T=S[0],A=S[1],L=(0,c.useState)(1),P=l()(L,2),N=(P[0],P[1],(0,c.useState)()),Z=l()(N,2);Z[0],Z[1];return(0,c.useEffect)((function(){y(t),_([]),A([])}),[t]),(0,c.useEffect)((function(){n&&(_(o),A(o))}),[o]),(0,x.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,x.jsxs)("div",{className:m,children:[(0,x.jsx)(u.Z.Search,{size:"middle",onChange:function(){var e=a()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y(t.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(n.target.value)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),placeholder:"可输入班级名称查询"}),0===w.length&&(0,x.jsx)(v.Z,{styles:{margin:"70px auto"},customText:"暂无分班"}),(0,x.jsx)("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"},children:(0,x.jsx)(d.Z.Group,{value:j.map((function(e){return"".concat(e.id)})),onChange:function(e){n(w.filter((function(t){return e.includes("".concat(t.id))})))},style:{marginTop:"10px",flexDirection:"column"},children:w.map((function(e,t){return(0,x.jsx)(p.Z,{style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200},children:(0,x.jsx)(d.Z,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:e.is_published,value:"".concat(e.id),children:(0,x.jsxs)("div",{className:h,children:[(0,x.jsx)("span",{className:f,style:{width:e.is_published?"108px":"170px"},children:e.name}),e.is_published&&(0,x.jsx)("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"},children:"已发布"})]})})},e.id)}))})})]}),(0,x.jsxs)("div",{className:g,children:[(0,x.jsx)(u.Z.Search,{onChange:function(e){A(j.filter((function(t){return t.name.includes(e.target.value)})))},size:"middle",placeholder:"可输入班级名称查询"}),0===T.length&&(0,x.jsx)(v.Z,{styles:{margin:"70px auto"},customText:"暂未选择分班"}),T.length>0&&(0,x.jsx)("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"},children:(0,x.jsx)("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0},children:T.map((function(e,t){return(0,x.jsxs)(p.Z,{justify:"space-between",style:{marginTop:"10px"},children:[(0,x.jsx)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"},children:e.name}),(0,x.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){n(j.filter((function(t){return"".concat(t.id)!="".concat(e.id)})))}})]},e.id)}))})})]})]})}},75774:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301),p=n(43418),m=n(96865),h=n(95237),f=n(6848),g="wrap___KDoq2",v="tip___WEJuX",x="listWrap___IJDX4",w="li___r5con",y="nameWrap___PUyEz",b="name___xuUMY",k="tag___l5CW2",j=n(78018),_=n(5296),C=n(37712),S=function(e){var t,n,o=e.type,r=void 0===o?1:o,s=e.data,c=e.visible,S=e.callback,T=e.onCancel,A=(0,d.useState)([]),L=u()(A,2),P=L[0],N=L[1],Z=(0,_.useSelector)((function(e){return e.loading}));(0,d.useEffect)((function(){N(s)}),[JSON.stringify(s)]);var B=function(e){var t={};if(1===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"未开始":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"提交中":{background:"rgba(0,177,135,0.2)",color:"#00B187"},"已截止":{background:"rgba(229,51,51,0.2)",color:"#E53333"}}[e]}if(2===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"预发布":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"已发布":{background:"rgba(0,177,135,0.2)",color:"#00B187"}}[e]}return(0,C.jsx)("div",{className:k,style:l()({},t),children:e})},M=function(){var e=a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:S(P.map((function(e){return e.task_id})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,C.jsx)(p.Z,{centered:!0,destroyOnClose:!0,open:c,onCancel:T,onOk:M,confirmLoading:null==Z||null===(t=Z.effects)||void 0===t?void 0:t["classroomList/updateTaskPosition"],okText:"保存",title:"调整排序",width:850,children:(0,C.jsxs)("div",{className:g,children:[(0,C.jsxs)("div",{className:v,children:[(0,C.jsx)("i",{className:"iconfont icon-tishi9 font14 mr10"}),(0,C.jsx)("span",{children:"提示:请在列表中长按鼠标左键,进行拖放排序。完成排序后请点击“保存”"})]}),(0,C.jsx)(m.Z,{loading:null==Z||null===(n=Z.effects)||void 0===n?void 0:n["classroomList/getAllTaskList"],active:!0,className:"mt20",paragraph:{rows:5},children:(0,C.jsx)(j.Z5,{onDragEnd:function(e){return function(e,t){if(e.destination){var n=function(e,t,n){var o=Array.from(e),i=o.splice(t,1),r=u()(i,1)[0];return o.splice(n,0,r),o}(t,e.source.index,e.destination.index);N(n)}}(e,P)},children:(0,C.jsx)(j.bK,{droppableId:"droppable",children:function(e,t){return(0,C.jsxs)("div",l()(l()({ref:e.innerRef},e.droppableProps),{},{className:x,children:[P.map((function(e,t){return(0,C.jsx)(j._l,{draggableId:e.task_id.toString(),index:t,children:function(t,n){return(0,C.jsxs)("div",l()(l()(l()({ref:t.innerRef},t.draggableProps),t.dragHandleProps),{},{className:w,children:[(0,C.jsxs)(h.Z,{align:"middle",children:[(0,C.jsx)("div",{className:y,children:(0,C.jsx)(f.Z,{title:null==e?void 0:e.task_name,children:(0,C.jsx)("div",{className:b,children:null==e?void 0:e.task_name})})}),B(null==e?void 0:e.status)]}),(0,C.jsx)(h.Z,{align:"middle",className:"font12 mt10",children:(0,C.jsxs)("span",{className:"mr30 c-grey-666",children:["管理员",(0,C.jsx)("span",{className:"ml5 c-black",children:(null==e?void 0:e.user_name)||"--"})]})})]}))}},e.task_id)})),e.placeholder]}))}})})})]})})}},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return l},JZ:function(){return u},bN:function(){return m},jP:function(){return p},rO:function(){return c}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(18030);function l(e){return(0,s.U2)("libraries/".concat(e,".json"))}function c(){return(0,s.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,s.v_)("libraries.json",e)}function m(e,t){return(0,s.gz)("libraries/".concat(e,".json"),t)}},1058:function(e,t,n){"use strict";n.d(t,{U:function(){return p}});var o=n(7557),i=n.n(o),r=n(82242),a=n.n(r),s=n(41498),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301);function p(e,t){var n=(0,d.useState)(t),o=u()(n,2),r=o[0],s=o[1],c=(0,d.useState)(!1),p=u()(c,2),m=p[0],h=p[1],f=(0,d.useState)(),g=u()(f,2),v=g[0],x=g[1],w=function(){var n=l()(i()().mark((function n(o){var l,c,u,d=arguments;return i()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return l=d.length>1&&void 0!==d[1]&&d[1],c=l?t:a()(a()({},r),o),h(!0),s(c),n.next=6,e(c);case 6:return u=n.sent,h(!1),x(u),n.abrupt("return",u);case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return[r,m,w,v]}},57102:function(e,t){"use strict";t.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},27666:function(e,t,n){"use strict";var o=n(26390),i=n(71783);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},r=function(){if(null==t){for(var e=arguments.length,o=new Array(e),r=0;r{i.Z.cancel(t),t=null},r}},81228:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var o=n(79545),i=n(68550),r=n(17928),a=n(99487),s=n(59301),l=n(92310),c=n.n(l),u=n(28647),d=n(55405),p=n(27666),m=n(36355),h=n(83116),f=n(37613);const g=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var v=(0,h.Z)("Affix",(e=>{const t=(0,f.TS)(e,{zIndexPopup:e.zIndexBase+10});return[g(t)]}));function x(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function w(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function y(e,t,n){if(void 0!==n&&t.bottom{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:o}=e.state;o!==n&&(b.forEach((t=>{null==o||o.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),o=null==n?void 0:n();b.forEach((n=>{null==o||o.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:o}=e.props,i=e.getTargetFunc();if(t!==j.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!i)return;const r=e.getOffsetTop(),a=e.getOffsetBottom(),s=i();if(s){const t={status:j.None},i=x(e.placeholderNodeRef.current);if(0===i.top&&0===i.left&&0===i.width&&0===i.height)return;const l=x(s),c=w(i,l,r),u=y(i,l,a);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}):void 0!==u&&(t.affixStyle={position:"fixed",bottom:u,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}),t.lastAffix=!!t.affixStyle,o&&n!==t.lastAffix&&o(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:j.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,p.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,p.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const o=e.getOffsetTop(),i=e.getOffsetBottom(),r=t();if(r&&e.placeholderNodeRef.current){const t=x(r),a=x(e.placeholderNodeRef.current),s=w(a,t,o),l=y(a,t,i);if(void 0!==s&&n.top===s||void 0!==l&&n.bottom===l)return}}e.prepareMeasure()})),e}return(0,i.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:k}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:o,children:i}=this.props,r=c()(e&&o,{[n]:!!e});let a=(0,d.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return s.createElement(u.Z,{onResize:this.updatePosition},s.createElement("div",Object.assign({},a,{ref:this.placeholderNodeRef}),e&&s.createElement("div",{style:t,"aria-hidden":"true"}),s.createElement("div",{className:r,ref:this.fixedNodeRef,style:e},s.createElement(u.Z,{onResize:this.updatePosition},i))))}}]),n}(s.Component);_.contextType=m.E_;var C=(0,s.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:o}=e,{getPrefixCls:i}=(0,s.useContext)(m.E_),r=i("affix",n),[a,l]=v(r),u=Object.assign(Object.assign({},e),{affixPrefixCls:r,rootClassName:c()(o,l)});return a(s.createElement(_,Object.assign({},u,{ref:t})))}))},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var o=n(92310),i=n.n(o),r=n(59301),a=n(36355),s=n(17313),l=n(83116),c=n(37613);const u=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:i,textPaddingInline:r,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},(0,s.Wf)(e)),{borderBlockStart:`${i}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:r},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,l.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[u(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n,divider:o}=r.useContext(a.E_),{prefixCls:s,type:l="horizontal",orientation:c="center",orientationMargin:u,className:m,rootClassName:h,children:f,dashed:g,plain:v,style:x}=e,w=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),y=t("divider",s),[b,k]=d(y),j=c.length>0?`-${c}`:c,_=!!f,C="left"===c&&null!=u,S="right"===c&&null!=u,T=i()(y,null==o?void 0:o.className,k,`${y}-${l}`,{[`${y}-with-text`]:_,[`${y}-with-text${j}`]:_,[`${y}-dashed`]:!!g,[`${y}-plain`]:!!v,[`${y}-rtl`]:"rtl"===n,[`${y}-no-default-orientation-margin-left`]:C,[`${y}-no-default-orientation-margin-right`]:S},m,h),A=r.useMemo((()=>"number"==typeof u?u:/^\d+$/.test(u)?Number(u):u),[u]),L=Object.assign(Object.assign({},C&&{marginLeft:A}),S&&{marginRight:A});return b(r.createElement("div",Object.assign({className:T,style:Object.assign(Object.assign({},null==o?void 0:o.style),x)},w,{role:"separator"}),f&&"vertical"!==l&&r.createElement("span",{className:`${y}-inner-text`,style:L},f)))}},51581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return i&&(s?a?u.unshift(s):u.push(s):this.defaultLoader&&(a?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),r.default.createElement(o,c,u)}}]),t}(i.Component);l.propTypes={children:a.default.node.isRequired,element:a.default.node,hasMore:a.default.bool,initialLoad:a.default.bool,isReverse:a.default.bool,loader:a.default.node,loadMore:a.default.func.isRequired,pageStart:a.default.number,ref:a.default.func,getScrollParent:a.default.func,threshold:a.default.number,useCapture:a.default.bool,useWindow:a.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},26724:function(e,t,n){e.exports=n(51581)},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkC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xfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="}}]); \ No newline at end of file diff --git a/p__Classrooms__Lists__ProgramHomework__index.69b896af.async.js b/p__Classrooms__Lists__ProgramHomework__index.69b896af.async.js new file mode 100644 index 0000000000..46eb2d7941 --- /dev/null +++ b/p__Classrooms__Lists__ProgramHomework__index.69b896af.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[6788,13488,4977,69932],{680:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(5891),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=n(22589),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},60186:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(5891),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},a=n(22589),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},45532:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var o=n(5891),i=n(59301),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},a=n(22589),s=function(e,t){return i.createElement(a.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var l=i.forwardRef(s)},57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},o=null,i=!1,r=!1,a=null,s=!1,l=null,c=null,u=0;u4?parseFloat(e):5};function k(){try{return window.self!==window.top}catch(e){return!0}}function j(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,D(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(l=e,I(e,t))},e.getHTML5CodebaseVersion=function(){return f},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var o,i="auto",r=n.id,a=!1,l=0;l=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var T=function(e){return e&&"false"!==e},A=function(t,n,o){b(f)<=4.2&&(o=!0);var i=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==f||ggbHTML5LoadedCodebaseIsWebSimple&&!v)&&(i=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,s=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(b(f)<=4.4)T(n.showToolBar)&&(n.height-=7),T(n.showAlgebraInput)&&(n.height-=37),n.width<605&&T(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(T(n.showToolBar)||T(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=T(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(x),window.GGBT_wsf_view&&$(window).trigger("resize"),m(e)},w||x.appendChild(k)):r.appendChild(k),x.appendChild(r),w||t.appendChild(x),setTimeout((function(){e.resize()}),1)}function j(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),O("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function _(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){j(e.article,e.params)})),html5AppletsToProcess=null)},b(f)<5&&(e.className+=" geogebraweb")):j(e,t)}if(i){scriptLoadStarted=!0;for(var C=0;C0?(i.remove(),s.attr("id","fullscreencontent").show(),jQuery(r).append(s),window.dispatchEvent(new Event("resize"))):A(i,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=o,A(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(s=e/4*3),l=s/5.8,a.setAttribute("src",w),a.setAttribute("width",s),a.setAttribute("height",l);var u=(e-s)/2,d=(t-l)/2;a.style.left=u+"px",a.style.top=d+"px",i.appendChild(a)}return i.appendChild(c),i},M=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},E=["web","webSimple","web3d","tablet","tablet3d","phone"],I=function(e,t){if(f=e,t)D(f,!0);else{var r,a,s=!i;if(s){var l=b(f);!isNaN(l)&&l<4.4&&(s=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=f.indexOf("//");for(var u in a=c>0?f:0===c?r+f:"https://www.geogebra.org/apps/5.2.814.0/",E)if(f.slice(-1*E[u].length)===E[u]||f.slice(-1*(E[u].length+1))===E[u]+"/")return void D(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!s||o.is3D||o.AV||o.SV||o.CV||o.EV2||o.CP||o.PC||o.DA||o.FI||o.PV||T(n.showToolBar)||T(n.showMenuBar)||T(n.showAlgebraInput)||T(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",D(a,!1)}},D=function(e,t){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===t&&(t=-1===e.indexOf("http")),m=t,g="web.nocache.js",v=!1;var n=p.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?E.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",v=!0)),n=e.split("/"),"test"===(f=n[n.length-3]).substr(0,4)?f=f.substr(4,1)+"."+f.substr(5,1):"war"!==f.substr(0,3)&&"beta"!==f.substr(0,4)||(f="5.0");var o=parseFloat(f);NaN!==o&&o<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+o+" is deprecated. Using version latest instead."),I("5.0",t))}},O=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==l?e=l:parseFloat(e)<5&&(e="5.0"),I(e,!1),null!==c&&D(c,m),s=!0}return void 0!==n.material_id?_(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,o,i){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==o&&o,s=null!=e.noScaleMargin&&e.noScaleMargin,l=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,o,i,r){var a=null;if(null!=r&&""!=r)for(var s=e.parentNode;null!=s;){if((" "+s.className+" ").indexOf(" "+r+" ")>-1){a=s;break}s=s.parentNode}var l=0,c=0,u=0,d=0,p=0,m=0,h=0;if(a)l=a.offsetWidth,c=Math.max(o?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(l=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=l):(l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var f=e.getBoundingClientRect();f.left>0&&f.left<=l&&(void 0===i||!i)&&("rtl"===document.dir?(p=l-f.width-f.left,m=u<=480?10:30):(m=f.left,p=u<=480?10:30),d=m+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(i=n(e,t,a,o,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,i):i)}function i(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),o=e.getBoundingClientRect(),i=(t-o.width)/2,r=(n-o.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=i<40?"40px":i+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=i+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var s=o(r,n);e()&&a.setAttribute("data-param-scale",s);for(var l=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var o=e.lastIndexOf(tb,Math.min(n,t));return o>=O?e.substring(O,o+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,o=[],i=[];function a(e){var t=i[e](),n=o[e];if(t in n)return t;var a=[];for(var s in n)a[n[s]]=s;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in o[e]},webModule.__getPropMap=function(){var e={};for(var t in o)o.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var s=(e=Cb).indexOf(Db);-1!=s&&(t=parseInt(e.substring(s+P),$),e=e.substring(O,s))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},o=e[webModule.__softPermutationId],i=O;i0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],o=0;o0&&(r=10+n*i);var a=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);o>40&&(a=40);var s=this.randomNum(-10,10);e.translate(r,a),e.rotate(s*Math.PI/180),e.fillText(t,0,0),e.rotate(-s*Math.PI/180),e.translate(-r,-a)}},{key:"drawLine",value:function(e){for(var t=0;t<1;t++)e.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),e.beginPath(),e.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),e.stroke()}},{key:"drawDot",value:function(e){for(var t=0;t<100;t++)e.fillStyle=this.randomColor(0,255),e.beginPath(),e.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),e.fill()}},{key:"randomCode",value:function(){for(var e=this,t="",n=0;n-1})))}}),(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"300px",overflow:"auto"},className:k.antdTable,rowSelection:{type:"checkbox",onChange:function(e){ke(e)}},rowKey:"id",pagination:!1,dataSource:ve,loading:N,columns:[{title:"班级",dataIndex:"name"}]})]}):(0,C.jsxs)(g.Z,{gutter:24,children:[(0,C.jsxs)(v.Z,{span:14,children:[(0,C.jsx)("div",{className:k.homeworkType,children:"作业截止"}),(0,C.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){K(F.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,C.jsx)("div",{className:k.tableWrapper,children:(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto"},className:k.antdTable,rowSelection:{type:"checkbox",onChange:function(e){X(e)}},rowKey:"id",pagination:!1,dataSource:U,loading:N,columns:[{title:"班级",dataIndex:"name",ellipsis:!0},{title:"发布时间",dataIndex:"publish_time"},{title:"截止时间",dataIndex:"end_time"}]})})]}),(0,C.jsxs)(v.Z,{flex:10,style:{maxWidth:"280px"},children:[(0,C.jsx)("div",{className:k.homeworkType,children:"补交截止"}),(0,C.jsx)(h.Z,{placeholder:"搜索班级",onChange:function(e){ae(te.filter((function(t){return t.name.indexOf(e.target.value)>-1})))}}),(0,C.jsx)("div",{className:k.tableWrapper,children:(0,C.jsx)(f.Z,{style:{marginTop:"10px",height:"260px",overflow:"auto",maxWidth:"280px"},className:k.antdTable,rowSelection:{type:"checkbox",onChange:function(e){ue(e)}},rowKey:"id",pagination:!1,loading:N,dataSource:re,columns:[{title:"班级",dataIndex:"name",ellipsis:!0,width:120},{title:"截止时间",dataIndex:"late_time"}]})})]})]})})]})}))},36709:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",p="fullWidth___c492T",m=n(92310),h=n.n(m),f=n(71418),g=n(2859),v=n(18030),x=n(21082),w=n(37712),y=function(e){var t=e.data,n=e.className,o=e.fullWidth,r=e.style,s=void 0===r?{}:r,m=e.onClose,y=e.onOk,b=e.showFullTools,k=e.noAssociationId,j=(0,c.useRef)(null),_=(0,c.useRef)(null),C=(0,c.useRef)(null),S=(0,c.useRef)(null),T=(0,c.useState)(!1),A=l()(T,2),L=A[0],P=A[1],N=(0,c.useState)("正在加载中"),Z=l()(N,2),B=Z[0],M=Z[1];(0,c.useEffect)((function(){C.current||(C.current=document.createElement("style"),document.head.appendChild(C.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),C.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&E()):(document.body.removeAttribute("data-custom"),C.current&&(document.head.removeChild(C.current),C.current=null))}),[null==t?void 0:t.visible]);var E=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P(!0),M("正在加载中"),e.next=4,(0,x.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,j.current.src="",j.current.src=n,j.current.onload=function(){D()},P(!1),M("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=a()(i()().mark((function e(n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P(!0),M("正在保存中"),e.next=4,(0,v.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(o=e.sent)||!o.id||k){e.next=12;break}return e.next=8,(0,v.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==o?void 0:o.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=o&&o.id&&y(o);case 13:P(!1),M("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),D=function(){_.current=new g.hP(j.current),_.current.targetRoot=S.current,_.current.addEventListener("render",I),_.current.addEventListener("beforeclose",m),b&&(_.current.availableMarkerTypes=_.current.ALL_MARKER_TYPES,_.current.uiStyleSettings.redoButtonVisible=!0,_.current.uiStyleSettings.notesButtonVisible=!0,_.current.uiStyleSettings.zoomButtonVisible=!0,_.current.uiStyleSettings.zoomOutButtonVisible=!0,_.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=_.current.uiStyleSettings,_.current.show(),null!=t&&t.snapshotData&&_.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,w.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,w.jsx)(f.Z,{spinning:L,tip:B,style:{position:"absolute"},children:(0,w.jsx)("div",{ref:S,className:h()(u,n,o?p:""),style:s,children:(0,w.jsx)("img",{className:d,ref:j})})})})}},98382:function(e,t,n){"use strict";n.d(t,{z:function(){return S},Z:function(){return T}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(37205),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(59028),f=n(8591),g=n(43418),v=n(3113),x=n(92723),w=n(90341),y=n(37712),b="  ";function k(e){if(0==e)return"0 Byte";var t=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,t)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][t]}var j=n(60186),_=n(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var C=h.Z.Dragger;function S(e){var t=[];return e&&e.length>0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+b+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var T=function(e){var t=e.value,n=e.onChange,o=e.action,r=e.data,s=e.className,c=e.maxSize,d=void 0===c?150:c,S=e.title,T=void 0===S?"上传附件":S,A=e.showRemoveModal,L=void 0!==A&&A,P=e.accept,N=void 0===P?"":P,Z=e.additionalText,B=e.isDragger,M=e.number,E=void 0===M?1e3:M,I=e.aloneClear,D=void 0!==I&&I,O=e.realTimeRemove,R=void 0===O||O,G=e.uploadText,H=e.setFileProgress,z=e.showFileProgress,F=(0,m.useState)(!1),W=p()(F,2),Y=W[0],V=W[1],U=(0,m.useState)(t||[]),K=p()(U,2),J=K[0],q=K[1],Q=(0,m.useState)(1),X=p()(Q,2),$=X[0],ee=X[1];(0,m.useEffect)((function(){t&&(1===$&&q(u()(t)),ee(2),E===(null==t?void 0:t.length)&&V(!0))}),[t]);var te=function(){setTimeout((function(){J.pop(),q(u()(J))}),500)};z&&H(J.some((function(e){return"uploading"===e.status})));var ne,oe={multiple:!0,disabled:Y,accept:N,withCredentials:!0,fileList:J,beforeUpload:function(e,t){var n=e.size/1024/1024;return J.concat(t).length>E?(J.pop(),q(u()(J)),f.ZP.error("最多只能上传".concat(E,"个文件")),D?Promise.reject():(te(),!1)):n=E?V(!0):V(!1),q(u()(J)),J=J.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(b)&&(e.name="".concat(e.name).concat(b).concat(k(e.size))),l()({},e)})),console.log("info:",e,J),n(J)):f.ZP.error(null===(o=e.file)||void 0===o||null===(o=o.response)||void 0===o?void 0:o.message)},onRemove:(ne=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(R){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,w.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!L){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var o;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(o=a()(i()().mark((function t(){return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,f.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return o.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return ne.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(s||""),children:[B&&(0,y.jsxs)(C,l()(l()({},oe),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(j.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),Z]})),!B&&(0,y.jsxs)(h.Z,l()(l()({},oe),{},{children:[(0,y.jsxs)(v.ZP,{disabled:Y,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),T]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:G||"(单个文件最大".concat(d,"MB)")})]}))]})}},65463:function(e,t,n){"use strict";n(59301);var o=n(6848),i=n(37712);t.Z=function(e){var t=e.value,n=e.visible,r=void 0===n||n,a=e.children;return(0,i.jsx)(i.Fragment,{children:r?(0,i.jsx)(o.Z,{placement:"topLeft",title:{"未发布":"作业尚未发布","未开始":"作业已发布,尚未到达开始作业时间","提交中":"作业进行中,所有考生可提交作业","补交中":"作业进行中,所有学生可补交作业","进行中":"作业进行中,部分班级正在作业提交中/补交中","已截止":"到达作业截止时间,作业已结束","已结束":"课堂已结束"}[t],children:(0,i.jsx)("span",{children:a})}):a})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return v}});var o=n(82242),i=n.n(o),r=n(79800),a=n.n(r),s=n(59301),l=n(57809),c=n(78241),u=n(3113),d=n(89780),p=n.n(d),m=(n(80443),n(90630),n(37712)),h=l.default.Option,f={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function v(e){var t=e.value,n=e.onChange,o=e.mode,r=e.options,l=void 0===r?{}:r,c=(0,s.useRef)(),u=(0,s.useState)(),d=a()(u,2),h=d[0],f=d[1];return(0,s.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,s.useEffect)((function(){h&&h.setOption("mode",o)}),[h,o]),(0,s.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,s.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,i()({mode:o,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},l));f(e)}}),[c.current,h]),(0,m.jsx)("div",{className:"my-codemirror-container",children:(0,m.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,o=(0,s.useState)("python"),r=a()(o,2),d=r[0],p=r[1];return(0,m.jsxs)(c.Z,i()(i()({},f),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,m.jsx)(l.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,m.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,m.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,m.jsx)(v,{mode:d})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return be}});var o=n(91232),i=n.n(o),r=n(79800),a=n.n(r),s=n(85573),l=n.n(s),c=n(59301),u=n(89780),d=n.n(u),p=n(76374),m=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),f=function(e){var t=e.value,n=void 0===t?"":t,o=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:o}})})},g=n(82242),v=n.n(g),x=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function w(e){var t=e.onActionCallback,n=e.title,o=e.icon,i=e.actionName,r=e.className,a=void 0===r?"":r,s=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(i)},children:[(0,h.jsx)("i",{className:"".concat(o)}),s]})}var y=function(e){var t=e.watch,n=e.showNullButton,o=e.showNullProgramButton,i=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,s=e.hidetoolBar,l=e.extraUse,c=[].concat(x,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!s&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(w,v()(v()({},e),{},{onActionCallback:i})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,o?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(w,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:i,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),l&&(0,h.jsx)("li",{children:l}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(w,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:i})})]})},b=n(24808),k=n(78241),j=n(92832),_=n(3113),C={labelCol:{span:4},wrapperCol:{span:20}},S=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(k.Z,v()(v()({},C),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(k.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(j.Z,{})}),(0,h.jsx)(k.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(j.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(_.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(_.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},T=n(73145),A=n(28486),L=n(95237),P=n(36709),N=function(e){var t=e.callback,n=e.onCancel,o=document.createElement("canvas"),i=o.getContext("2d");o.width=1e3,o.height=800,i.fillStyle="#ffffff",i.fillRect(0,0,o.width,o.height);var r=o.toDataURL("image/png");return(0,h.jsx)(L.Z,{style:{height:"100vh"},children:(0,h.jsx)(P.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},Z=n(7557),B=n.n(Z),M=n(41498),E=n.n(M),I=n(37205),D=n.n(I),O=n(12378);function R(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(R,go.CommandHandler),R.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},R.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},R.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},R.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},R.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},R.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},R.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},R.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var o=0;o0){for(var o=a.elt(s-1);null!==o&&o.isTreeExpanded&&!o.isTreeLeaf;){o=this._sortTreeChildrenByY(o).last()}null!==o&&e.select(o)}else e.select(r)}else if("Down"===n.key){var i;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(i=this._sortTreeChildrenByY(t).first())&&e.select(i);else for(;null!==t;){var r,a,s;if(null===(r=t.findTreeParentNode()))break;if((s=(a=this._sortTreeChildrenByY(r)).indexOf(t))o.y?1:n.xo.x?1:0})),t},R.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},R.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(R.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(R.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var G=R,H=(n(41034),n(85160)),z=n(43418),F=n(43604),W=n(18030),Y="myPaletteDiv___Xjz2I",V="maxH60___Pd4Re";window.go=O;var U=function(e){var t=e.onCancel,n=e.callback,o=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(),s=(0,c.useRef)(!1),l=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),p=d[0],m=d[1],f=function(){var e=E()(B()().mark((function e(){var t,i;return B()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.current.makeImage(),e.next=3,(0,W.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:i=e.sent,n({src:i.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){m(p+1)}),[]),(0,h.jsx)("div",{ref:l,className:s.current?"".concat(V," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:l.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(L.Z,{children:[(0,h.jsx)(F.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(F.Z,{onClick:function(){s.current=!s.current,m(p+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:Y,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(H.FI,{initDiagram:function(){var e=O.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",s="#d533ff",l="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",m="#d5ebff",h="#f2dfe0",f="#a5d2fa",g="#cccccc",v="#b3e6b3",x="#fcbbbd";function w(t,n){var o=function(e,n){e.handled=!0,e.diagram.model.commit((function(o){var i=n.part.adornedPart,r=(new O.Point).setRectSpot(i.actualBounds,t);r.subtract(i.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(i.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=o.copyNodeData(i.data);o.setGroupKeyForNodeData(a,o.getGroupKeyForNodeData(i.data)),o.addNodeData(a);var s={from:i.key,to:o.getKeyForNodeData(a)};o.addLinkData(s);var l=e.diagram.findNodeForData(a);l.location=r,e.diagram.select(l),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(O.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(O.Spot.Top)||t.equals(O.Spot.Bottom)?25:18,height:t.equals(O.Spot.Top)||t.equals(O.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:o,contextClick:o})}function y(t){return e(O.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function b(e,t){return function(n,o){n.handled=!0,n.diagram.model.commit((function(n){n.set(o.part.adornedPart.data,e,t)}))}}function k(t,n){return n||(n="color"),e(O.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:b(n,t),contextClick:b(n,t)})}function j(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",k(u,"fill"),k(p,"fill"),k(m,"fill"),k(h,"fill"))),e("ContextMenuButton",e(O.Panel,"Horizontal",k(g,"fill"),k(v,"fill"),k(f,"fill"),k(x,"fill")))]}function _(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",k(d),k(a),k(n),k(t))),e("ContextMenuButton",e(O.Panel,"Horizontal",k(u),k(s),k(l),k(c)))]}function C(t,n){return n||(n="thickness"),e(O.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function S(t,n){return n||(n="dash"),e(O.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b(n,t),contextClick:b(n,t)})}function T(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",C(1),C(2),C(3),C(4))),e("ContextMenuButton",e(O.Panel,"Horizontal",S(null),S([2,4]),S([4,4])))]}function A(t,n){return n||(n="figure"),e(O.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:b(n,t),contextClick:b(n,t)})}function L(t){return e(O.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function P(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(O.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:b("dir",t),contextClick:b("dir",t)})}function N(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var o=n.part.adornedPart;e.set(o.data,t?"toSpot":"fromSpot",O.Spot.stringify(O.Spot.AllSides)),(t?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(O.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function Z(t,n){var o=0,i=O.Spot.RightSide;t.equals(O.Spot.Top)?(o=270,i=O.Spot.TopSide):t.equals(O.Spot.Left)?(o=180,i=O.Spot.LeftSide):t.equals(O.Spot.Bottom)&&(o=90,i=O.Spot.BottomSide),n||(o-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var o=t.part.adornedPart;e.set(o.data,n?"toSpot":"fromSpot",O.Spot.stringify(i)),(n?o.toNode:o.fromNode).invalidateConnectedLinks()}))};return e(O.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:o,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return o.current=new O.Diagram(i.current,{padding:20,grid:e(O.Panel,"Grid",e(O.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(O.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(G),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),o.current.nodeTemplate=e(O.Node,"Auto",{locationSpot:O.Spot.Center,locationObjectName:"SHAPE",desiredSize:new O.Size(120,60),minSize:new O.Size(40,40),resizable:!0,resizeCellSize:new O.Size(10,10),rotatable:!0},new O.Binding("location","loc",O.Point.parse).makeTwoWay(O.Point.stringify),new O.Binding("desiredSize","size",O.Size.parse).makeTwoWay(O.Size.stringify),e(O.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:O.Spot.AllSides,toSpot:O.Spot.AllSides},new O.Binding("figure"),new O.Binding("fill"),new O.Binding("stroke","borderColor"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(O.TextBlock,{margin:1,textAlign:"center",overflow:O.TextBlock.OverflowEllipsis,editable:!0},new O.Binding("text").makeTwoWay(),new O.Binding("stroke","color"))),o.current.nodeTemplate.toolTip=e("ToolTip",e(O.Panel,"Vertical",{maxSize:new O.Size(200,NaN)},e(O.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new O.Binding("text")),e(O.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new O.Binding("text","details")))),o.current.nodeTemplate.selectionAdornmentTemplate=e(O.Adornment,"Spot",e(O.Placeholder,{padding:10}),w(O.Spot.Top,"TriangleUp"),w(O.Spot.Left,"TriangleLeft"),w(O.Spot.Right,"TriangleRight"),w(O.Spot.Bottom,"TriangleDown"),y({alignment:new O.Spot(.75,0)})),o.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(O.Panel,"Horizontal",A("Rectangle"),A("RoundedRectangle"),A("Ellipse"),A("Diamond"))),e("ContextMenuButton",e(O.Panel,"Horizontal",A("Parallelogram2"),A("ManualOperation"),A("Procedure"),A("Cylinder1"))),e("ContextMenuButton",e(O.Panel,"Horizontal",A("Terminator"),A("CreateRequest"),A("Document"),A("TriangleDown"))),j(),_(),T()),o.current.groupTemplate=e(O.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:O.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new O.Binding("location","loc",O.Point.parse).makeTwoWay(O.Point.stringify),e(O.Panel,"Auto",{name:"BODY"},e(O.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:O.Spot.AllSides,toSpot:O.Spot.AllSides},new O.Binding("fill"),new O.Binding("stroke","color"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Placeholder,{background:"transparent",margin:20})),e(O.TextBlock,{alignment:O.Spot.Top,alignmentFocus:O.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new O.Binding("text"),new O.Binding("stroke","color"))),o.current.groupTemplate.selectionAdornmentTemplate=e(O.Adornment,"Spot",e(O.Panel,"Auto",e(O.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(O.Placeholder,{margin:1.5})),y({alignment:O.Spot.TopRight,alignmentFocus:O.Spot.BottomRight})),o.current.groupTemplate.contextMenu=e("ContextMenu",j(),_(),T()),o.current.linkTemplate=e(O.Link,{layerName:"Foreground",routing:O.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new O.Binding("fromSpot","fromSpot",O.Spot.parse),new O.Binding("toSpot","toSpot",O.Spot.parse),new O.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new O.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new O.Binding("points").makeTwoWay(),e(O.Shape,{strokeWidth:2},new O.Binding("stroke","color"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Shape,{segmentIndex:0,segmentOffset:new O.Point(15,0),segmentOrientation:O.Link.OrientAlong,alignmentFocus:O.Spot.Right,figure:"circle",width:10,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return 1===e}))),e(O.Shape,{segmentIndex:-1,segmentOffset:new O.Point(-10,6),segmentOrientation:O.Link.OrientPlus90,alignmentFocus:O.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return e>=1})),new O.Binding("width","thickness",(function(e){return 7+3*e})),new O.Binding("height","thickness",(function(e){return 7+3*e})),new O.Binding("segmentOffset","thickness",(function(e){return new O.Point(-15,4+1.5*e)}))),e(O.Shape,{segmentIndex:0,segmentOffset:new O.Point(15,-6),segmentOrientation:O.Link.OrientMinus90,alignmentFocus:O.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return 2===e})),new O.Binding("width","thickness",(function(e){return 7+3*e})),new O.Binding("height","thickness",(function(e){return 7+3*e})),new O.Binding("segmentOffset","thickness",(function(e){return new O.Point(-15,4+1.5*e)}))),e(O.TextBlock,{alignmentFocus:new O.Spot(0,1,-4,0),editable:!0},new O.Binding("text").makeTwoWay(),new O.Binding("stroke","color"))),o.current.linkTemplate.selectionAdornmentTemplate=e(O.Adornment,e(O.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:L(2)},new O.Binding("pathPattern","thickness",L)),y({alignmentFocus:new O.Spot(0,0,-6,-4)})),o.current.linkTemplate.contextMenu=e("ContextMenu",_(),T(),e("ContextMenuButton",e(O.Panel,"Horizontal",P(0),P(1),P(2))),e("ContextMenuButton",e(O.Panel,"Horizontal",e(O.Panel,"Spot",N(!1),Z(O.Spot.Top,!1),Z(O.Spot.Left,!1),Z(O.Spot.Right,!1),Z(O.Spot.Bottom,!1)),e(O.Panel,"Spot",{margin:new O.Margin(0,0,0,2)},N(!0),Z(O.Spot.Top,!0),Z(O.Spot.Left,!0),Z(O.Spot.Right,!0),Z(O.Spot.Bottom,!0))))),new O.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(O.Link,{locationSpot:O.Spot.Center,selectionAdornmentTemplate:e(O.Adornment,"Link",{locationSpot:O.Spot.Center},e(O.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(O.Shape,{toArrow:"Standard",stroke:null}))},{routing:O.Link.AvoidsNodes,curve:O.Link.JumpOver,corner:5,toShortLength:4},new O.Binding("points"),e(O.Shape,{isPanelMain:!0,strokeWidth:2}),e(O.Shape,{toArrow:"Standard",stroke:null})),model:new O.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(D()(O.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(O.Node,"Auto",{locationSpot:O.Spot.Center},new O.Binding("location","location",O.Point.parse).makeTwoWay(O.Point.stringify),e(O.Shape,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new O.Binding("stroke").makeTwoWay(),new O.Binding("fill").makeTwoWay(),new O.Binding("figure")),e(O.TextBlock,{margin:new O.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new O.Size(16,16),maxSize:new O.Size(10,NaN),textAlign:"center",editable:!0},new O.Binding("key").makeTwoWay())),setTimeout((function(){o.current.grid=e(O.Panel,"Grid",e(O.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(O.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),o.current.grid.visible=!0,o.current.grid.gridCellStroke="darkgray",o.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=o.current,o.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:i})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(_.ZP,{size:"large",onClick:f,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),J=n(94001),q=K.ZP.Group,Q={margin:"0 8px"},X=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(k.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"单元格数:"}),(0,h.jsx)("span",{style:Q,children:"行数"}),(0,h.jsx)(k.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(J.Z,{})}),(0,h.jsx)("span",{style:Q,children:"列数"}),(0,h.jsx)(k.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(J.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Q,children:"对齐方式:"}),(0,h.jsx)(k.Z.Item,{name:"align",children:(0,h.jsxs)(q,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(_.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(_.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,o=e.width,i=e.height,r=e.callback,s=(e.showSaveButton,(0,c.useRef)()),l=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),p=d[0],m=d[1],f=(0,c.useRef)({id:s,appName:"graphing",width:o||1e3,height:i||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){l.current=new(te())(f.current,!0),window.onload=function(){l.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){f.current.appName=p?"3D":"graphing",l.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){m(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:s}),(0,h.jsxs)(L.Z,{align:"middle",children:[(0,h.jsx)(F.Z,{flex:1,children:(0,h.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return m(e)}})}),(0,h.jsx)(F.Z,{children:(0,h.jsx)(_.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),oe=n(36761),ie=n(92723),re=n(8591),ae="link",se="upload-image",le="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",me={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},he=n(77818);var fe="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function ve(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var xe=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",we=l()(l()({},xe+"-B","bold"),xe+"-I","italic"),ye=l()(l()(l()(l()(l()(l()(l()(l()({},ae,"添加链接"),ue,"添加代码块"),se,"添加图片"),ce,"添加画图"),le,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),be=function(e){var t=e.defaultValue,n=void 0===t?"":t,o=e.onChange,r=e.width,s=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,v=e.miniToolbar,x=void 0!==v&&v,w=e.isFocus,k=void 0!==w&&w,j=e.watch,_=e.insertTemp,C=e.mode,L=void 0===C?"markdown":C,P=e.id,Z=void 0===P?"markdown-editor-id":P,B=e.showResizeBar,M=void 0!==B&&B,E=e.noStorage,I=void 0!==E&&E,D=e.showNullButton,O=void 0!==D&&D,R=e.showNullProgramButton,G=void 0!==R&&R,H=e.hidetoolBar,F=void 0!==H&&H,W=e.fullScreen,Y=void 0!==W&&W,V=e.onBlur,K=e.onCMBeforeChange,J=e.onFullScreen,q=e.className,Q=void 0===q?"":q,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,pe=void 0!==te&&te,xe=e.disabledFill,be=void 0!==xe&&xe,ke=e.placeholder,je=void 0===ke?"":ke,_e=e.values,Ce=void 0===_e?"":_e,Se=e.extraUse,Te=(0,c.useState)(null),Ae=a()(Te,2),Le=Ae[0],Pe=Ae[1],Ne=(0,c.useState)(n),Ze=a()(Ne,2),Be=Ze[0],Me=Ze[1],Ee=(0,c.useState)(j),Ie=a()(Ee,2),De=Ie[0],Oe=Ie[1],Re=(0,c.useState)(Y),Ge=a()(Re,2),He=Ge[0],ze=Ge[1],Fe=(0,c.useState)(""),We=a()(Fe,2),Ye=We[0],Ve=We[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Je=Ke[0],qe=Ke[1],Qe=(0,c.useState)(g),Xe=a()(Qe,2),$e=Xe[0],et=Xe[1],tt=(0,c.useState)(!1),nt=a()(tt,2),ot=(nt[0],nt[1]),it=(0,c.useState)(0),rt=a()(it,2),at=rt[0],st=rt[1],lt=(0,c.useState)(0),ct=a()(lt,2),ut=ct[0],dt=ct[1],pt=(0,c.useRef)(),mt=(0,c.useRef)(),ht=(0,c.useRef)(),ft=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Me(Ce),null==Le||Le.setValue(Ce),window.scrollTo(0,e)}),[Ce]),(0,c.useEffect)((function(){null==J||J(He)}),[He]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!ee){var o=n.clipboardData;if(o){var i=o.types.toString(),r=o.items;if("Files"===i||o.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==L)return;try{var a,s=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(s=r[0]);var l=s.getAsFile(),c=l.name.split(".").pop();(0,A.I)(l,(function(e){var n,o,i;e.id?(null==l||null===(n=l.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==l||null===(o=l.type)||void 0===o?void 0:o.indexOf("video"))>-1?t.replaceSelection('')):(null==l||null===(i=l.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?t.replaceSelection('').concat(l.name,"")):ge.includes(c)?t.replaceSelection('').concat(l.name,"")):t.replaceSelection("[".concat(l.name,"](").concat(ie.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:L,lineNumbers:!x,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",je):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),o=n.getCursor(),i=n.getLine(o.line),r=i.charAt(o.ch-1),a=i.lastIndexOf("@▁@",o.ch),s=i.lastIndexOf("@▁▁@",o.ch),l=a>s?a:s,c=a>s?3:4;if(-1===fe.indexOf(r))return null;if(console.log("change1:",t,e,i,o,l,a,s,r),l>=0&&o.ch-l<5){var u=l+c;return n.replaceRange("",{line:o.line,ch:l},{line:o.line,ch:u}),{line:o.line,ch:u}}return null}(e);n&&t.preventDefault()}})),k&&t.focus(),t.on("paste",e),pe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Pe(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){mt.current}),[$e,mt,He]);(0,c.useEffect)((function(){if(Le){var e=function(){var e=new p.Z((function(e){var t,n=i()(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;(o.target.offsetHeight>0||o.target.offsetWidth>0)&&(gt(),Le.setSize("100%","100%"),Le.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(pt.current.parentElement),e}();return function(){var t,n;null!==(t=pt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=pt.current)||void 0===n?void 0:n.parentElement)}}}),[Le,gt]),(0,c.useEffect)((function(){if(Le){for(var e=[],t=function(){var t=a()(o[n],2),i=t[0],r=t[1],s=l()({},i,(function(){vt(r)}));e.push(s),Le.addKeyMap(s)},n=0,o=Object.entries(we);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(Z);e>=Je+1e4&&(!t||t!==Be)&&(window.sessionStorage.setItem(Z,Be),ot(!0))}}),1e4),(0,c.useEffect)((function(){Oe(j)}),[Le,j]),(0,c.useEffect)((function(){Le&&k&&Le.focus()}),[Le,k]),(0,c.useEffect)((function(){if(De&&Le){var e=function(e){var t=e.target;if(ft.current){var n=t.scrollTop/t.scrollHeight;ft.current.scrollTop=ft.current.scrollHeight*n}},t=Le.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Le,De]),(0,c.useEffect)((function(){if(Le&&K){var e=function(e,t){K(e,t)};return Le.on("beforeChange",e),function(){Le.off("beforeChange",e)}}}),[Le,K]),(0,c.useEffect)((function(){if(Le&&V){var e=function(){V(Le.getValue())};return Le.on("blur",e),function(){Le.off("blur",e)}}}),[Le,V]),(0,c.useEffect)((function(){if(Le){var e=function(e,t){var n=e.getValue();Me(n),qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),o&&(G?o(n,kt(n)):o(n))};return Le.on("change",e),function(){Le.off("change",e)}}}),[Le,o]),(0,c.useEffect)((function(){if(Le)if(null==n)Le.setValue(""),Me("");else{var e=window.scrollY||window.pageYOffset;n!==Le.getValue()&&(Le.setValue(n),Me(n),Le.setCursor(pe?1:Le.lineCount(),0),window.scrollTo(0,e))}}),[Le,n]);var vt=(0,c.useCallback)((function(e){var t=Le.getCursor(),n=Le.getSelection(),o=n.split("\n");switch(e){case"bold":return Le.replaceSelection("**"+n+"**"),""===n&&Le.setCursor(t.line,t.ch+2),Le.focus();case"italic":return Le.replaceSelection("*"+n+"*"),""===n&&Le.setCursor(t.line,t.ch+1),Le.focus();case"code":return Le.replaceSelection("`"+n+"`"),""===n&&Le.setCursor(t.line,t.ch+1),Le.focus();case"inline-latex":return Ve("inline-latex"),Le.focus();case"latex":return Le.replaceSelection("```latex\n"+n+"\n```"),Le.setCursor(t.line+1,n.length+1),Le.focus();case"line-break":return Le.replaceSelection("
\n"),Le.focus();case"list-ul":return""===n?Le.replaceSelection("- "+n):Le.replaceSelection(o.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Le.focus();case"list-ol":return""===n?Le.replaceSelection("1. "+n):Le.replaceSelection(o.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Le.focus();case"add-null-ch":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection("▁"),Le.focus();case"add-signal":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection("@▁@"),Le.focus();case"add-multiple":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection(fe),Le.focus();case"inster-template-1":return""===n&&Le.setCursor(t.line,t.ch),Le.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Le.focus();case"eraser":return Le.setValue(""),Le.focus();case"trigger-watch":return Oe(!De),Le.focus();case"trigger-full-screen":return ze(!He),Le.focus();case ae:return void Ve(ae);case ue:return void Ve(ue);case se:return void Ve(se);case ce:return void Ve(ce);case"maths-latex":return void Ve("maths-latex");case le:return void Ve(le);case de:return void Ve(de);default:throw new Error}}),[Le,De,He]),xt=(0,c.useCallback)((function(e,t){var n,o,i,r,a;switch(Ve(""),Ye){case ae:var s=e.title,l=e.link;return Le.replaceSelection("[".concat(s,"](").concat(l,")")),Le.focus();case ue:var c=e.language,u=e.content;return Le.replaceSelection(["```"+c,u,"```"].join("\n")),Le.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),m=0;m-1||null==v||!v.type?g?Le.replaceSelection("![ ".concat(g," ]( ").concat(f,' "').concat(g,'" )')):Le.replaceSelection("![,](".concat(f,")")):(null==v||null===(r=v.type)||void 0===r?void 0:r.indexOf("video"))>-1?Le.replaceSelection('')):(null==v||null===(a=v.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Le.replaceSelection('').concat(v.name,"")):ge.includes(x)?Le.replaceSelection('').concat(v.name,"")):Le.replaceSelection("[".concat(v.name,"](").concat(ie.Z.API_SERVER).concat(f,")")),Le.focus();case de:for(var w=e.row,y=e.col,b=e.align,k="\n",j=0;j300&&(t=300),et(g+t+"px")}},o=ht.current,i=!1,r=0;return o.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){o.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Le,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var bt={width:ve(s),height:ve($e)},kt=((0,c.useMemo)((function(){if(Je){var e=new Date(Je),t=e.getHours(),n=e.getMinutes(),o=e.getSeconds();return n=n<10?"0"+n:n,o=o<10?"0"+o:o,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(o)}return 0}),[Je]),function(e){var t=[];if(G){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,o){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ye]&&Ye!==ce&&Ye!==le&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;st(t),dt(n)}),0)}),[Ye]);var jt=function(e,t,n,o){var i=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>i-20&&o0)){e.next=13;break}return w.ZP.info("发布班级不能为空"),Oe(!1),e.abrupt("return");case 13:if(0!==Le.reduce((function(e,t){return e+t}))||Ce){e.next=17;break}return w.ZP.info("简单适中困难题数相加不能为0"),Oe(!1),e.abrupt("return");case 17:return r={homework_ids:p()(R.actionTabs.selectArrs),group_ids:ve.length>0?ve.map((function(e){return e.id})):null===(n=R.detailCommonHomeworksList)||void 0===n?void 0:n.course_groups,end_time:A()(o.end_time).format("YYYY-MM-DD HH:mm"),publish_time:A()(o.publish_time).format("YYYY-MM-DD HH:mm"),difficult_settings:null==Le?void 0:Le.map((function(e){return e})),send_type:Ce?"0":"1",unified_setting:!ve.length},Oe(!0),e.next=21,(0,L.ZP)("/api/courses/".concat(W.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:u()({},r)});case 21:if(0!==e.sent.status){e.next=35;break}if(Oe(!1),(0,N.L9)(["教学课堂","图文作业","立即发布"]),w.ZP.success("发布成功"),G({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),!z){e.next=30;break}return z(),e.abrupt("return");case 30:F.onCallback&&F.onCallback(),Ze(),"0"===localStorage.getItem("Noviceguide")||G({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:13,text:(0,I.jsx)("div",{children:"最后,咱们给教学课堂添加一名学生~点击“添加学生”,在弹窗页面中输入并搜索学生姓名,点击“确定”就可以为您的课堂添加第一位学生啦~"})}}),e.next=36;break;case 35:Oe(!1);case 36:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Me=function(){q(1),ee([]),xe([])},Ee=(0,v.useState)(!1),Ie=h()(Ee,2),De=Ie[0],Oe=Ie[1];return(0,I.jsxs)(y.Z,{width:600,confirmLoading:De,centered:!0,title:"发布作业",open:"立即发布"===R.actionTabs.key,okText:"发布作业",cancelText:"暂不发布",onOk:Be,onCancel:function(){Me(),G({type:"classroomList/setActionTabs",payload:{}}),z?z():Ze()},children:[(0,I.jsxs)("p",{className:"tc",children:["学生将立即收到作业",(0,I.jsx)("br",{}),'本操作只对"未发布"的作业有效']}),$&&(0,I.jsxs)(x.Z,{form:V,children:[(0,I.jsxs)("div",{style:{paddingLeft:0},children:[2===R.actionTabs.type&&(0,I.jsxs)(b.Z,{style:{marginBottom:"10px"},children:[(0,I.jsx)("span",{className:"mr5",children:"试题发送:"}),(0,I.jsxs)(k.ZP.Group,{value:Ce,disabled:!(null!==(n=R.actionTabs)&&void 0!==n&&null!==(n=n.selectArrsAll)&&void 0!==n&&null!==(n=n[0])&&void 0!==n&&n.can_publish),onChange:function(e){Se(e.target.value)},children:[(0,I.jsx)(k.ZP,{value:!0,children:"全部固定试题"}),(0,I.jsx)(k.ZP,{className:"ml20",value:!1,children:"随机抽取"})]})]}),!Ce&&(0,I.jsxs)(b.Z,{style:{marginBottom:"10px"},children:[(0,I.jsx)("span",{style:{marginRight:65}}),(0,I.jsxs)("span",{children:["简单题数 ",(0,I.jsx)(j.Z,{value:Le[0],onChange:function(e){Le[0]=e,Pe(p()(Le))},min:0,disabled:!(null!==(o=R.actionTabs)&&void 0!==o&&null!==(o=o.selectArrsAll)&&void 0!==o&&null!==(o=o[0])&&void 0!==o&&o.can_publish),placeholder:"最大".concat(null===(r=R.actionTabs)||void 0===r||null===(r=r.selectArrsAll)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.difficult_count)||void 0===r?void 0:r[0]),max:null===(s=R.actionTabs)||void 0===s||null===(s=s.selectArrsAll)||void 0===s||null===(s=s[0])||void 0===s||null===(s=s.difficult_count)||void 0===s?void 0:s[0],style:{width:60}})]}),(0,I.jsxs)("span",{style:{margin:"0px 40px"},children:["适中题数 ",(0,I.jsx)(j.Z,{value:Le[1],onChange:function(e){Le[1]=e,Pe(p()(Le))},min:0,disabled:!(null!==(c=R.actionTabs)&&void 0!==c&&null!==(c=c.selectArrsAll)&&void 0!==c&&null!==(c=c[0])&&void 0!==c&&c.can_publish),max:null===(d=R.actionTabs)||void 0===d||null===(d=d.selectArrsAll)||void 0===d||null===(d=d[0])||void 0===d||null===(d=d.difficult_count)||void 0===d?void 0:d[1],placeholder:"最大".concat(null===(m=R.actionTabs)||void 0===m||null===(m=m.selectArrsAll)||void 0===m||null===(m=m[0])||void 0===m||null===(m=m.difficult_count)||void 0===m?void 0:m[1]),style:{width:60}})]}),(0,I.jsxs)("span",{children:["困难题数 ",(0,I.jsx)(j.Z,{value:Le[2],onChange:function(e){Le[2]=e,Pe(p()(Le))},min:0,disabled:!(null!==(f=R.actionTabs)&&void 0!==f&&null!==(f=f.selectArrsAll)&&void 0!==f&&null!==(f=f[0])&&void 0!==f&&f.can_publish),placeholder:"最大".concat(null===(T=R.actionTabs)||void 0===T||null===(T=T.selectArrsAll)||void 0===T||null===(T=T[0])||void 0===T||null===(T=T.difficult_count)||void 0===T?void 0:T[2]),max:null===(O=R.actionTabs)||void 0===O||null===(O=O.selectArrsAll)||void 0===O||null===(O=O[0])||void 0===O||null===(O=O.difficult_count)||void 0===O?void 0:O[2],style:{width:60}})]})]}),(0,I.jsxs)(b.Z,{className:"mt30",align:"middle",children:[(0,I.jsx)(_.Z,{children:(0,I.jsx)(x.Z.Item,{name:"publish_time",label:"发布时间",children:(0,I.jsx)(C.default,{style:{width:170,marginRight:"25px"},disabledDate:function(e){return(0,E.Q8)(e,H)},disabledTime:function(e){return(0,E.d0)(e)},placeholder:"请选择发布时间",showTime:{format:"HH:mm",defaultValue:A()((0,N.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1})})}),(0,I.jsx)(_.Z,{className:"ml20",children:(0,I.jsx)(x.Z.Item,{name:"end_time",label:"截止时间",children:(0,I.jsx)(C.default,{style:{width:170},placeholder:"请选择截止时间",showTime:{format:"HH:mm",defaultValue:A()((0,N.U6)(),"HH:mm")},disabledDate:function(e){return(0,E.Q8)(e,H,V.getFieldValue("publish_time"))},disabledTime:function(e){return(0,E.d0)(e,V.getFieldValue("publish_time"))},format:"YYYY-MM-DD HH:mm",allowClear:!1})})})]}),2===R.actionTabs.type&&(0,I.jsxs)(b.Z,{style:{marginBottom:"10px"},children:[(0,I.jsx)("span",{className:"mr5",children:"发布设置:"}),(0,I.jsxs)(k.ZP.Group,{value:be,onChange:function(e){ke(e.target.value),xe([])},children:[(0,I.jsx)(k.ZP,{value:!0,disabled:!R.actionTabs.manage_all_group,children:"统一发布"}),(0,I.jsx)(k.ZP,{className:"ml20",disabled:$.length<=0,value:!1,children:"分班发布"})]})]}),$.length<=0&&2===R.actionTabs.type&&(0,I.jsx)("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"},children:'课堂无分班,仅支持选择“统一发布"'})]}),(1===R.actionTabs.type||!be)&&$.length>0&&(0,I.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"},children:[(0,I.jsxs)("span",{style:{flex:1},children:[(0,I.jsx)(S.Z,{checked:ve.length===$.length,onChange:function(e){ve.length===$.length?xe([]):xe($.filter((function(e){return!e.is_published})))},children:"全选"})," "]}),(0,I.jsx)("span",{style:{width:16}}),(0,I.jsxs)("span",{style:{flex:1},children:["已选择",ve.length||0,"个分班"]})]}),(1===R.actionTabs.type||!be)&&$.length>0&&(0,I.jsx)(B.Z,{data:$,selectedRowKeys:ve,setSelectedRowKeys:xe})]})]})}))},20239:function(e,t,n){"use strict";n.r(t),n.d(t,{CommonHomeworkContext:function(){return it},default:function(){return rt}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301),p=n(5296),m=n(8591),h=n(27092),f=n(81228),g=n(21082),v=n(93697),x=n(37205),w=n.n(x),y=n(39647),b=n.n(y),k=n(43418),j=n(18030),_=n(97978),C=n(37712),S=["classroomList","dispatch","match","location","user","onCallback"],T=(0,p.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,o=e.classroomList,r=e.dispatch,s=(e.match,e.location,e.user),c=e.onCallback,h=(b()(e,S),(0,p.useParams)()),f=(0,d.useState)(!1),x=u()(f,2),y=x[0],T=x[1],A=(0,d.useState)(!1),L=u()(A,2),P=L[0],N=L[1],Z=(0,d.useRef)(null);(0,d.useEffect)((function(){if("删除"===o.actionTabs.key){if((0,v.j5)())return void N(!0);var e={hasNum:0,noHasNum:0};o.actionTabs.selectArrsAll.map((function(t){var n;t.author_login===(null===(n=s.userInfo)||void 0===n?void 0:n.login)?++e.hasNum:++e.noHasNum})),e.noHasNum>0?k.Z.info({title:"权限提示",className:"custom-modal-divider ",icon:null,content:(0,C.jsxs)("div",{children:["当前选中资源中:",(0,C.jsx)("span",{className:"c-blue",children:e.hasNum}),"个由您本人发布,",(0,C.jsx)("span",{className:"c-red",children:e.noHasNum})," ","个由其他老师发布。",(0,C.jsx)("br",{}),"课堂内只能删除本人发布的资源,请取消选中其他老师发布的资源。"]}),onOk:function(){B()}}):N(!0)}else N(!1)}),[o.actionTabs.key]);var B=function(){r({type:"classroomList/setActionTabs",payload:{}})};return(0,C.jsx)(k.Z,{centered:!0,title:"提示",open:P,okText:"确定",cancelText:"取消",confirmLoading:y,destroyOnClose:!0,onOk:a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=Z.current)||void 0===t||!t.onVerify()){e.next=2;break}return e.abrupt("return");case 2:return T(!0),e.next=5,(0,j.ZP)("/api/courses/".concat(h.coursesId,"/homework_commons/multi_destroy.json"),{method:"post",body:{homework_ids:w()(o.actionTabs.selectArrs)}});case 5:n=e.sent,T(!1),0===n.status&&((0,g.L9)(["教学课堂","图文作业","删除"]),m.ZP.success("删除成功"),r({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),c&&c(),(0,v.GJ)()?r({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},o.actionTabs.params),{},{type:5})}):r({type:"classroomList/getClassroomCommonList",payload:l()({},o.actionTabs.params)}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:h.coursesId}}));case 8:case"end":return e.stop()}}),e)}))),onCancel:function(){B()},children:null!=o&&null!==(t=o.actionTabs)&&void 0!==t&&t.status&&["未发布"].includes(null==o||null===(n=o.actionTabs)||void 0===n?void 0:n.status)?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("p",{children:"提交作品将全部被删除,不可恢复"}),(0,C.jsx)("p",{children:"是否确认删除?"})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("p",{style:{color:"#DD0000"},children:"删除作业则会清除学生所有的答题数据,且数据不可恢复,如确定删除,请输入下方验证码"}),(0,C.jsx)(_.Z,{ref:function(e){return Z.current=e}})]})})})),A=n(52831),L=n(3655),P=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=(0,p.useParams)();return(0,C.jsx)(k.Z,{centered:!0,title:"提示",open:"设为公开"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.ZP)("/api/courses/".concat(o.coursesId,"/homework_commons/set_public.json"),{method:"post",body:{homework_ids:w()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,g.L9)(["教学课堂","图文作业","设为公开"]),m.ZP.success("操作成功"),n({type:"classroomList/setActionTabs",payload:{key:"清除选择数据"}}),(0,v.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:5})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:(0,C.jsxs)("p",{children:["设为公开后,非课堂成员也可以访问查看",(0,C.jsx)("br",{}),"是否确认设为公开?"]})})})),N=["classroomList","dispatch","onCallback"],Z=(0,p.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t=e.classroomList,n=e.dispatch,o=e.onCallback,r=(b()(e,N),(0,p.useParams)());return r.id=r.coursesId,(0,C.jsx)(k.Z,{centered:!0,title:"提示",open:"收藏"===t.actionTabs.key,okText:"确定",cancelText:"取消",onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.ZP)("/api/courses/".concat(r.id,"/homework_commons/add_to_homework_bank.json"),{method:"post",body:{all_check:0,homework_ids:w()(t.actionTabs.selectArrs)}});case 2:0===e.sent.status&&((0,g.L9)(["教学课堂","图文作业","收藏"]),m.ZP.success("收藏成功,请前往【个人主页/课堂资源】查看"),n({type:"classroomList/setActionTabs",payload:{}}),o&&o(),(0,v.GJ)()?n({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},t.actionTabs.params),{},{type:5})}):n({type:"classroomList/getClassroomCommonList",payload:l()({},t.actionTabs.params)}),n({type:"classroomList/setActionTabs",payload:{}}));case 4:case"end":return e.stop()}}),e)}))),onCancel:function(){n({type:"classroomList/setActionTabs",payload:{}})},children:"确认收藏?"})})),B=n(85573),M=n.n(B),E=n(78241),I=n(95237),D=n(43604),O=n(92832),R=n(61186),G=n.n(R),H=(0,p.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var t,n,o=e.classroomList,r=(e.loading,e.dispatch),s=e.onCallback,c=(0,p.useParams)(),d=(0,p.useLocation)(),h=o.actionTabs,f=E.Z.useForm(),g=u()(f,1)[0];return(0,C.jsxs)(k.Z,{centered:!0,title:"新建目录",open:"新建目录"===o.actionTabs.key,okText:"确定",cancelText:"取消",bodyStyle:{minHeight:200},onOk:a()(i()().mark((function e(){var t,n,a,u,h,f,v,x;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=g.getFieldValue(),n="/api/course_modules/".concat(o.detailCommonHomeworksList.main_category_id,"/add_second_category.json"),e.next=4,(0,j.ZP)(n,{method:"post",body:l()({},t)});case 4:0===(a=e.sent).status&&(m.ZP.success("添加成功"),s&&s(),r({type:"classroomList/setActionTabs",payload:{}}),r({type:"classroomList/getClassroomLeftMenus",payload:{id:c.coursesId}}),h=o.actionTabs.selectArrs.type,f=(null==a?void 0:a.category_id)||0,(v=null===(u=d.pathname)||void 0===u?void 0:u.split("/"))[4]=f,v[3]=h||v[3],x=null==v?void 0:v.join("/"),p.history.push(x));case 6:case"end":return e.stop()}}),e)}))),onCancel:function(){r({type:"classroomList/setActionTabs",payload:{}})},children:[(0,C.jsx)("p",{className:"tc",children:(0,C.jsx)("br",{})}),o.courseGroups.course_groups&&(0,C.jsx)(E.Z,{form:g,initialValues:M()({},"name",""),children:(0,C.jsx)(E.Z.Item,{name:"name",children:(0,C.jsxs)(I.Z,{className:"mt30",children:[(0,C.jsx)(D.Z,{children:"目录名称:"}),(0,C.jsx)(D.Z,{flex:"1",children:(0,C.jsx)(O.Z,{defaultValue:(null===(t=h.selectArrs)||void 0===t?void 0:t.category_name)||(null===(n=h.selectArrs)||void 0===n?void 0:n.name)})})]})})})]})})),z=n(99313),F=n(3113),W=n(24905),Y=n(26724),V=n.n(Y),U=n(87308),K=n(28103),J=n(81327),q=n(99681),Q={shixunItemWrapper:"shixunItemWrapper___ClCET",checkboxWrapper:"checkboxWrapper___bZ8gF",contentWrapper:"contentWrapper____pt8D",title:"title___tfmFW",desc:"desc___NDuDd",info:"info___mahF7"},X=U.Z.Paragraph,$=function(e,t){var n=e.createShixunParams,o=(0,d.useState)("0"),r=u()(o,2),s=r[0],c=r[1],p=(0,d.useState)("hot"),m=u()(p,2),h=m[0],f=m[1],g=(0,d.useState)([]),v=u()(g,2),x=v[0],w=v[1],y=(0,d.useRef)({page:1,order:"hot",keyword:"",shixun_type:"jupyter",diff:"0",limit:10}),b=function(){var e=a()(i()().mark((function e(t,n){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,q.he)(t);case 2:if((o=e.sent).status){e.next=8;break}if(0!==o.shixuns.length||!n){e.next=7;break}return P(!1),e.abrupt("return");case 7:w(o.shixuns);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();(0,d.useImperativeHandle)(t,(function(){return{search:function(e){return b(l()(l()({},y.current),{},{keyword:e}))},changeKeyWord:function(e){return y.current.keyword=e}}})),(0,d.useEffect)((function(){b(y.current)}),[]);var k=(0,d.useState)([]),j=u()(k,2),_=j[0],S=j[1],T=(0,d.useState)(!0),A=u()(T,2),L=A[0],P=A[1];return(0,C.jsxs)("div",{style:{marginTop:20,maxHeight:200,overflowY:"auto",overflowX:"hidden"},children:[(0,C.jsxs)(I.Z,{justify:"space-between",style:{marginBottom:8},children:[(0,C.jsx)(D.Z,{children:[{name:"全部",id:"0"},{name:"初级",id:"1"},{name:"中级",id:"2"},{name:"中高级",id:"3"},{name:"高级",id:"4"}].map((function(e,t){return(0,C.jsx)(F.ZP,{type:s===e.id?"primary":"default",onClick:function(){c(e.id),y.current.diff=e.id,b(y.current)},children:e.name},t)}))}),(0,C.jsx)(D.Z,{children:[{name:"最热",id:"hot"},{name:"最新",id:"new"}].map((function(e,t){return(0,C.jsx)(F.ZP,{className:"mr20",type:h===e.id?"primary":"default",onClick:function(){f(e.id),y.current.order=e.id,b(y.current)},children:e.name},t)}))})]}),(0,C.jsx)(V(),{initialLoad:!1,pageStart:1,threshold:700,loadMore:function(e){b(l()(l()({},y.current),{},{page:e}),!0)},hasMore:L,useWindow:!1,children:(0,C.jsx)(W.Z.Group,{onChange:function(e){S(e),n.current.shixun_ids=e},value:_,children:x.map((function(e){var t=e||{},n=t.name,o=t.id,i=t.description,r=t.challenge_names,a=t.author_name,s=t.author_school_name,l=t.level,c=t.total_stu_num;return(0,C.jsxs)("div",{className:Q.shixunItemWrapper,children:[(0,C.jsxs)(I.Z,{align:"middle",className:Q.checkboxWrapper,gutter:14,children:[(0,C.jsx)(W.Z,{value:o}),(0,C.jsx)("div",{className:Q.title,children:n})]}),(0,C.jsxs)("div",{className:Q.contentWrapper,children:[(0,C.jsx)(X,{ellipsis:{rows:2},className:Q.desc,style:{color:"#8e8888"},children:i}),(0,C.jsx)(I.Z,{children:r.map((function(e,t){return(0,C.jsxs)("span",{className:Q.mission,children:["第",t+1,"关",e]},t)}))}),(0,C.jsx)(K.Z,{dashed:!0,style:{margin:"8px 0"}}),(0,C.jsx)(I.Z,{className:Q.info,children:(0,C.jsxs)(J.Z,{children:[(0,C.jsx)("span",{children:a}),(0,C.jsx)("span",{children:"|"}),(0,C.jsx)("span",{children:s}),(0,C.jsx)("span",{children:"|"}),(0,C.jsxs)("span",{children:["难度系数 ",l]}),(0,C.jsx)("span",{children:"|"}),(0,C.jsxs)("span",{children:["学习人数 ",c]})]})})]})]},o)}))})})]})},ee=(0,d.forwardRef)($),te={flex_box_center:"flex_box_center___Cx3ju",flex_space_between:"flex_space_between___rc8Mm",flex_box_vertical_center:"flex_box_vertical_center___6BCc9",flex_box_center_end:"flex_box_center_end___sN3Ig",flex_box_column:"flex_box_column___wjzgd",line1:"line1___cHCBY",form:"form___IMCYE"},ne=n(54313),oe=n(54602),ie=(z.Z.TabPane,(0,p.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks,loading:e.loading}}))((function(e){var t,n=e.shixunHomeworks,o=(e.loading,e.dispatch),r=e.refreshList,s=(0,p.useParams)(),c=((0,p.useLocation)(),E.Z.useForm()),m=u()(c,1)[0],h=(n.brankList,(0,d.useState)(!1)),f=u()(h,2),x=(f[0],f[1]),y=(0,d.useState)(!0),b=u()(y,2),j=b[0],_=b[1],S=(0,d.useState)(!1),T=u()(S,2),A=T[0],L=T[1],P=(0,d.useState)("myself"),N=u()(P,2),Z=N[0],B=N[1],R=(0,d.useState)([]),G=u()(R,2),H=G[0],z=G[1],Y=(0,d.useState)(),U=u()(Y,2),K=U[0],J=U[1],q=(0,d.useState)({page:0,limit:20,object_type:"normal",search:"",filter:"myself"}),Q=u()(q,2),X=Q[0];Q[1];(0,d.useEffect)((function(){"题库选用"===n.actionTabs.key&&ie()}),[n.actionTabs.key]);var $=[],ie=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!j){e.next=11;break}return x(!1),++X.page,e.next=5,o({type:"shixunHomeworks/getBrankList",payload:l()({},X)});case 5:n=e.sent,H=w()(H.concat(n.object_list)),J(n.is_teacher),(null===(t=n.object_list)||void 0===t?void 0:t.length)5&&(0,C.jsx)(Se.Z,{scroll:{y:240},onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:q,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(H.sort_by=n.field),n.order||(H.sort_direction="asc"),"ascend"===n.order&&(H.sort_direction="asc"),"descend"===n.order&&(H.sort_direction="desc"),n.order||(H.sort_direction="asc"),$()},columns:X}),(0,v.GJ)()&&"未发布"!==A.status&&Y&&q.length<6&&q.length>0&&(0,C.jsx)(Se.Z,{onRow:function(e){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},onHeaderRow:function(e,t){return{onClick:function(e){e.stopPropagation(),e.preventDefault()}}},pagination:!1,dataSource:q,style:{marginTop:14,marginRight:6,cursor:"default"},onChange:function(e,t,n){n.field&&(H.sort_by=n.field),n.order||(H.sort_direction="asc"),"ascend"===n.order&&(H.sort_direction="asc"),"descend"===n.order&&(H.sort_direction="desc"),n.order||(H.sort_direction="asc"),$()},columns:X})]})]})]})},Ne="bg___KWyBO",Ze="otherHomeworkWrap___WlvHv",Be="otherHomeworkContainer___Qfj2O",Me="flex___q8ATC",Ee="search___xedy7",Ie="content___VSdQb",De="listItem___u6wwP",Oe="info___vvX3a",Re="title___FtVL7",Ge="describe___g43sA",He="footer___TNGYY",ze=function(e){var t=e.courseId,n=e.type,o=e.onCancel,r=(0,p.useParams)(),s=(0,d.useState)({targerData:[],originData:[]}),c=u()(s,2),h=c[0],f=c[1],v=(0,d.useState)([]),x=u()(v,2),y=x[0],b=x[1],k=(0,d.useState)(!1),_=u()(k,2),S=_[0],T=_[1],A=function(){var e=a()(i()().mark((function e(){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(!0),e.next=3,(0,j.ZP)("/api/courses/".concat(t,"/homework_commons/impersonal_list.json"),{method:"get",params:{type:n}});case 3:o=e.sent,T(!1),f({targerData:o.homeworks,originData:o.homeworks});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,d.useEffect)((function(){A()}),[]);var L=function(){var e=a()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return T(!0),t={homework_common_ids:y},r.categoryId&&(t=l()(l()({},t),{},{category_id:r.categoryId})),e.next=5,(0,j.ZP)("/api/courses/".concat(r.coursesId,"/homework_commons/create_collaborators.json"),{method:"POST",body:t});case 5:(n=e.sent)&&n.homework_ids.length>0&&(m.ZP.success("提交成功"),o()),T(!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,C.jsx)("div",{className:"animated fadeInUp fast ".concat(Ze),children:(0,C.jsxs)("div",{className:Be,children:[(0,C.jsx)("div",{className:Ee,children:(0,C.jsx)(O.Z.Search,{size:"middle",enterButton:"搜索",onSearch:function(e){var t=h.originData.filter((function(t){return t.name.indexOf(e)>-1}));f(l()(l()({},h),{},{targerData:t}))},placeholder:"请输入图文作业名称进行查询"})}),(0,C.jsx)("div",{className:Ie,children:h.targerData.map((function(e){return(0,C.jsxs)("div",{className:"".concat(De," mb10"),children:[(0,C.jsx)(W.Z,{checked:y.includes(e.id),onChange:function(t){return function(e,t){e.target.checked?b([].concat(w()(y),[t])):b(y.filter((function(e){return e!==t})))}(t,e.id)}}),(0,C.jsxs)("div",{className:Oe,children:[(0,C.jsxs)("div",{className:"".concat(Me," mb10"),style:{justifyContent:"space-between"},children:[(0,C.jsx)("div",{className:Re,children:e.name}),(0,C.jsx)("div",{children:(0,C.jsx)(F.ZP,{type:"primary",ghost:!0,onClick:function(){return(0,g.xg)("/classrooms/".concat(r.coursesId,"/common_homework/").concat(e.id,"/detail"))},children:"查看作业"})})]}),(0,C.jsx)("div",{className:"mb20 font14 c-grey-999 ".concat(Ge),children:e.description}),(0,C.jsxs)("div",{className:"font12",children:[(0,C.jsx)("span",{className:"c-grey-333 mr20",children:e.user.name}),(0,C.jsxs)("span",{className:"c-grey-999",children:["创建时间:",e.created_at]})]})]})]},e.id)}))}),(0,C.jsxs)("div",{className:He,children:[(0,C.jsx)(F.ZP,{type:"primary",ghost:!0,onClick:o,children:"取消"}),(0,C.jsx)(F.ZP,{type:"primary",disabled:0===y.length||S,onClick:function(){L()},children:"确定"})]})]})})},Fe=n(20208),We=n(52352),Ye=n(75774),Ve=n(57809),Ue=n(57930),Ke=n(71418),Je=n(33656),qe=n.n(Je),Qe=n(1058),Xe=["classroomList","dispatch","user","getData"];G().extend(qe());var $e=function(e){var t,n,o,i,r=e.data,a=e.value,s=e.onChange,c=(0,d.useState)({leftSearch:"",rigthSearch:""}),p=u()(c,2),m=p[0],h=p[1],f=(0,d.useState)([]),g=u()(f,2),v=g[0],x=g[1];return(0,d.useEffect)((function(){x((null==a?void 0:a.length)>0?null==r?void 0:r.filter((function(e){return null==a?void 0:a.includes(null==e?void 0:e.id)})):[])}),[a]),(0,C.jsxs)("div",{style:{display:"flex",flexWrap:"nowrap",gap:"20px",height:"400px"},children:[(0,C.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,C.jsx)(W.Z,{indeterminate:(null==v?void 0:v.length)>0&&(null==v?void 0:v.length)<(null==r?void 0:r.length),checked:(null==v?void 0:v.length)==(null==r?void 0:r.length),onChange:function(e){s(e.target.checked?null==r?void 0:r.map((function(e){return null==e?void 0:e.id})):[])},children:"全选"}),(0,C.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,C.jsx)(O.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:m.leftSearch,onChange:function(e){h(l()(l()({},m),{},{leftSearch:e.target.value}))}}),(0,C.jsx)("div",{className:"mt20 ml20 mb20",style:{overflow:"auto"},children:0!==(null===(t=m.leftSearch?null==r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.leftSearch)})):r)||void 0===t?void 0:t.length)?(0,C.jsx)(W.Z.Group,{value:a,onChange:function(e){s(e)},children:(0,C.jsx)(J.Z,{direction:"vertical",children:null===(n=m.leftSearch?null==r?void 0:r.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.leftSearch)})):r)||void 0===n?void 0:n.map((function(e,t){return(0,C.jsx)(W.Z,{value:e.id,children:null==e?void 0:e.name},t)}))})}):(0,C.jsx)(ne.Z,{styles:{margin:"0 auto"}})})]})]}),(0,C.jsxs)("div",{style:{flex:"1",display:"flex",flexDirection:"column",gap:"15px"},children:[(0,C.jsxs)("div",{children:["已选择",(null==v?void 0:v.length)||0,"个分班"]}),(0,C.jsxs)("div",{style:{borderRadius:4,border:"1px solid #DCDCDC",display:"flex",flexDirection:"column",flex:"1",overflow:"hidden"},children:[(0,C.jsx)(O.Z.Search,{className:"p20",style:{paddingBottom:0},placeholder:"可输入班级名称查询",value:m.rigthSearch,onChange:function(e){h(l()(l()({},m),{},{rigthSearch:e.target.value}))}}),(0,C.jsx)("div",{className:"mt20 ml20 mb20 pr20",style:{display:"flex",flexDirection:"column",gap:"10px",overflow:"auto"},children:0!==(null===(o=m.rigthSearch?null==v?void 0:v.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.rigthSearch)})):v)||void 0===o?void 0:o.length)?null===(i=m.rigthSearch?null==v?void 0:v.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(m.rigthSearch)})):v)||void 0===i?void 0:i.map((function(e,t){return(0,C.jsxs)(I.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,C.jsx)(D.Z,{children:null==e?void 0:e.name}),(0,C.jsx)(D.Z,{children:(0,C.jsx)("i",{className:"iconfont icon-piliangshanchu2 font16 current",style:{color:"#3061D0"},onClick:function(){s(null==a?void 0:a.filter((function(t){return t!==(null==e?void 0:e.id)})))}})})]},t)})):(0,C.jsx)(ne.Z,{styles:{margin:"0 auto"}})})]})]})]})},et=(0,p.connect)((function(e){return{classroomList:e.classroomList,user:e.user}}))((function(e){var t,n,o,r,s,c,h=e.classroomList,f=e.dispatch,v=(e.user,e.getData),x=(b()(e,Xe),(0,p.useParams)()),w=E.Z.useForm(),y=u()(w,1)[0],j=E.Z.useWatch("penalty_type",y),_="批量补交"===(null==h||null===(t=h.actionTabs)||void 0===t?void 0:t.key),S=(0,Qe.U)(oe.c_,l()(l()({},x),null==h||null===(n=h.actionTabs)||void 0===n?void 0:n.params)),T=u()(S,4),A=T[1],L=T[2],P=T[3],N=(0,Qe.U)(oe.nP,{course_id:null==x?void 0:x.coursesId,homework_ids:null==h||null===(o=h.actionTabs)||void 0===o?void 0:o.selectArrs}),Z=u()(N,4),B=Z[2],M=Z[3],R=(0,Qe.U)(oe.sm,{course_id:null==x?void 0:x.coursesId,homework_ids:null==h||null===(r=h.actionTabs)||void 0===r?void 0:r.selectArrs}),H=u()(R,3),z=H[1],F=H[2],W=function(){var e=a()(i()().mark((function e(){var t=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:{},B({}),e.next=4,L({page:1,limit:2e4,homework_id:1===h.actionTabs.type?"":h.actionTabs.selectArrs[0]});case 4:e.sent;case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,d.useEffect)((function(){_&&W()}),[_]),(0,C.jsxs)(k.Z,{centered:!0,title:null==h||null===(s=h.actionTabs)||void 0===s?void 0:s.key,width:800,open:_,cancelText:"暂不补交",okText:"开启补交",onCancel:function(){f({type:"classroomList/setActionTabs",payload:{}})},destroyOnClose:!0,confirmLoading:z,onOk:a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y.submit();case 1:case"end":return e.stop()}}),e)}))),children:[(0,C.jsx)("div",{className:"p10 pl20 pr20 c-orange-ff7 mb20",style:{background:"#F6F7F9"},children:"规则说明:补交截止时间必须晚于作业截止时间;当班级阶段进入“补交中”则不可变更作业截止时间、不可关闭补交;当作业状态为未发布或者作业已开启统一补交时,新批量补交规则不生效。"}),(0,C.jsxs)(E.Z,{form:y,colon:!1,size:"large",initialValues:{unified_late:!1,penalty_type:2,late_minus_score:20},onFinish:function(){var e=a()(i()().mark((function e(t){var n,o,r,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F((null==P||null===(n=P.course_groups)||void 0===n?void 0:n.length)>0?{unified_late:(null==P||null===(o=P.course_groups)||void 0===o?void 0:o.length)<=0,allow_late_settings:[l()({},t)]}:l()({unified_late:(null==P||null===(r=P.course_groups)||void 0===r?void 0:r.length)<=0},t));case 2:0==(null==(a=e.sent)?void 0:a.status)&&(m.ZP.success("补交设置成功"),f({type:"classroomList/setActionTabs",payload:{}}),v&&v());case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,C.jsxs)(I.Z,{wrap:!1,gutter:20,children:[(0,C.jsx)(D.Z,{flex:1,children:(0,C.jsx)(E.Z.Item,{label:"补交扣分",name:"late_minus_score",rules:[{required:!0,validator:function(e,t,n){return 2===j&&t>100?Promise.reject((0,C.jsx)("span",{style:{marginLeft:100},children:"请重新输入,范围0-100"})):Promise.resolve()}},{required:!0,message:(0,C.jsx)("span",{style:{marginLeft:100},children:"请输入补交扣分"})}],children:(0,C.jsx)(O.Z,{placeholder:"请输入补交扣分",min:0,type:"number",suffix:1==j?"分":"%",max:1===j?Number.MAX_SAFE_INTEGER:100,addonBefore:(0,C.jsx)(E.Z.Item,{name:"penalty_type",noStyle:!0,normalize:function(e){return y.setFieldsValue({late_minus_score:2==e?20:5}),e},children:(0,C.jsx)(Ve.default,{style:{width:100},options:[{value:2,label:"百分比"},{value:1,label:"分值"}]})})})})}),(0,C.jsx)(D.Z,{flex:"390px",children:(0,C.jsx)(E.Z.Item,{label:"补交截止时间",name:"late_time",rules:[{required:!0,validator:function(e,t,n){return t&&G()(t).startOf("minute")<=G()().startOf("minute")?Promise.reject("作业补交截止时间必须晚于此刻"):t&&G()(t).startOf("minute")<=G()(null==M?void 0:M.max_late_time).startOf("minute")?(m.ZP.warning("补交截止时间不能小于选中作业中最晚作业截止时间:".concat(null==M?void 0:M.max_late_time)),Promise.reject("")):Promise.resolve()}},{required:!0,message:"请先设置补交截止时间"}],children:(0,C.jsx)(Ue.default,{placeholder:"请选择截止时间",style:{width:"100%"},disabledDate:function(e){return(0,g.BO)(e,{startTime:null==M?void 0:M.max_late_time})},disabledTime:function(e){return(0,g.hv)(e,{compared:null==M?void 0:M.max_late_time})},format:"YYYY-MM-DD HH:mm",showTime:{showSecond:!1,defaultValue:G()("00:00:00","HH:mm:ss")}})})})]}),(null==P||null===(c=P.course_groups)||void 0===c?void 0:c.length)>0&&(0,C.jsx)(Ke.Z,{spinning:A,children:(0,C.jsx)(E.Z.Item,{name:"group_id",rules:[{required:!0,message:"请先选择班级"}],children:(0,C.jsx)($e,{data:(null==P?void 0:P.course_groups)||[],onChange:function(e){B({group_ids:e})}})})})]})]})})),tt=n(5112),nt=n(26830),ot=function(e){var t=e.styles,n=void 0===t?{}:t,o=e.onSelect,i=e.params,r=e.onClick,a=(0,d.useState)(!1),s=u()(a,2),c=s[0],m=s[1],h=(0,d.useState)(""),f=u()(h,2),g=f[0],v=f[1];(0,d.useEffect)((function(){m(!1),v("")}),[]);return(0,C.jsxs)("section",{className:"tc animated fadeIn",style:l()(l()({},{color:"#999",margin:"200px auto"}),n),children:[(0,C.jsx)("img",{src:nt.z3}),(0,C.jsxs)("p",{className:"mt20 font14",children:["编程作业是由多个编程试题组成,可用于ACM模式竞赛,也可作为平常练习",(0,C.jsx)("br",{}),"点击下方按钮,开始新建编程作业"]}),(0,C.jsx)("div",{style:{marginTop:"30px"},children:(0,C.jsx)(F.ZP,{onClick:r,type:"primary",style:{width:"128px",height:"40px",marginRight:"20px",borderRadius:"4px"},children:"新建作业"})}),c&&(0,C.jsx)(k.Z,{open:!0,centered:!0,title:"新建作业",onCancel:function(){return m(!1)},onOk:function(){"1"===g&&p.history.push("/classrooms/".concat(i.coursesId,"/common_homework/").concat(i.categoryId,"/add")),"2"===g&&(o(),m(!1),v(""))},children:(0,C.jsxs)("div",{children:[(0,C.jsx)("div",{children:(0,C.jsx)(tt.ZP,{value:"1",style:{marginTop:"15px"},checked:"1"===g,onClick:function(){return v("1")},children:"新建图文作业"})}),(0,C.jsx)("div",{children:(0,C.jsx)(tt.ZP,{value:"2",style:{marginTop:"15px"},checked:"2"===g,onClick:function(){return v("2")},children:"选用资源"})})]})})]})},it=(0,d.createContext)({selectArrs:[]}),rt=(0,p.connect)((function(e){var t=e.classroomList,n=e.loading,o=e.user;return{classroomList:t,globalSetting:e.globalSetting,user:o,loading:n.effects}}))((function(e){var t,n,o,r,s=e.classroomList,c=e.loading,x=e.dispatch,w=e.user,y=(0,p.useLocation)(),b=(0,p.useParams)(),k=(0,d.useState)((function(){return l()(l()({},b),{},{id:b.coursesId,limit:20})})),j=u()(k,2),_=j[0],S=j[1],N=(0,p.useSearchParams)(),B=u()(N,1)[0],M=(0,d.useState)([]),E=u()(M,2),I=E[0],D=E[1],O=(0,d.useState)(!1),R=u()(O,2),G=R[0],z=R[1],F=(0,d.useState)(!1),W=u()(F,2),Y=W[0],V=W[1],U=(0,d.useState)([]),K=u()(U,2),J=K[0],q=K[1],Q=(0,d.useState)(!1),X=u()(Q,2),$=X[0],ee=X[1],te=(0,d.useState)("默认排序"),oe=u()(te,2),re=oe[0],ae=oe[1],le=w.userInfo,ce=s.detailCommonHomeworksList,ue=s.detailLeftMenus,de=(s.detailTopBanner,s.taskList);_.type=1,_.categoryId?_.category=_.categoryId:delete _.category,(0,d.useEffect)((function(){var e=B.get("tabs");e&&void 0!==e&&((0,v.GJ)()?_.status=e:_.order=e)}),[y.search]),(0,d.useEffect)((function(){"0"===B.get("tabs")&&(_.status="0",_.page=1),_.status=B.get("tabs")}),[B.get("tabs")]),(0,d.useEffect)((function(){S(l()(l()({},_),b))}),[null==b?void 0:b.categoryId]),(0,d.useEffect)((function(){var e,t;if(b.categoryId?(_.categoryId=b.categoryId,_.category=b.categoryId):delete _.category,null!=w&&null!==(e=w.userInfo)&&void 0!==e&&e.login){var n;x({type:"classroomList/getAssistantPermissions",payload:{course_id:_.id}});var o=g.cX.getItem("".concat(null==w||null===(n=w.userInfo)||void 0===n?void 0:n.login).concat((0,v.GJ)()?"Teacher":"Student"),"ProgramHomework");o&&(_.sort_by=null==o?void 0:o.type,_.sort_direction=null==o?void 0:o.direction,ae(null==o?void 0:o.name));var i=B.get("tabs");i&&void 0!==i&&((0,v.GJ)()?_.status=i:_.order=i),pe({})}else if(null!=w&&null!==(t=w.userInfo)&&void 0!==t&&t.username){var r=B.get("tabs");r&&void 0!==r&&((0,v.GJ)()?_.status=r:_.order=r),pe({})}}),[null==w||null===(t=w.userInfo)||void 0===t?void 0:t.login,null==y?void 0:y.pathname]),(0,d.useEffect)((function(){"清除选择数据"===s.actionTabs.key&&(D([]),q([])),"目录重命名成功"===s.actionTabs.key&&pe()}),[s.actionTabs.key]),(0,d.useEffect)((function(){D([])}),[ce]),(0,d.useEffect)((function(){V(!1)}),[_.categoryId]),(0,d.useEffect)((function(){ce&&ce.homeworks&&(I.length===ce.homeworks.length&&I.length>0?z(!0):I.length!==ce.homeworks.length&&z(!1))}),[I]);var pe=function(){D([]),q([]),x({type:"classroomList/getClassroomTeacherCommonList",payload:l()(l()({},_),{},{type:5})})};ue.course_modules&&s.detailLeftMenus.course_modules.filter((function(e){return"common_homework"===e.type}))[0];["删除","立即发布","立即截止","收藏"].filter((function(e){return null!=le&&le.main_site?e:"收藏"!==e})).filter((function(e){return!!(0,v.GJ)()||"删除"!==e}));var me=function(){x({type:"shixunHomeworks/setActionTabs",payload:{key:"题库选用",params:_}})},he=null===(n=[{key:"publish",label:"批量发布",icon:(0,C.jsx)("i",{className:"iconfont icon-fabu5"}),isShow:!0},{key:"deadline",label:"批量截止",icon:(0,C.jsx)("i",{className:"iconfont icon-piliangjiezhi2"}),isShow:!0},{key:"batchpay",label:"批量补交",icon:(0,C.jsx)("i",{className:"iconfont icon-buka"}),isShow:!0},{key:"delete",label:"批量删除",icon:(0,C.jsx)("i",{className:"iconfont icon-piliangshanchu2"}),isShow:(0,v.GJ)()||(0,v.Rm)()}].filter((function(e){return null==e?void 0:e.isShow})))||void 0===n?void 0:n.map((function(e){return delete e.isShow,e})),fe=function(){var e=a()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,x({type:"classroomList/updateTaskPosition",payload:{category_id:_.categoryId,courseId:_.id,task_ids:t,container_type:"program_homework"}});case 2:pe();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ve=(0,d.useMemo)((function(){var e=[];return de.length>0&&(e=de.map((function(e){var t;return{user_name:e.user_name,task_name:e.task_name,task_id:e.task_id,category:e.category,status:null==e||null===(t=e.status)||void 0===t?void 0:t[0]}}))),e}),[de]);return(0,C.jsx)(it.Provider,{value:{params:_,batchStatus:Y,selectArrs:I,setSelectArrs:D,allSelect:G,dataSource:ce.homeworks||[],detailLeftMenus:ue,main_category_id:ce.main_category_id||"",selectArrsAll:J,setAllSelect:z,useBatchStatus:V,dispatch:x,getData:pe,setSelectArrsAll:q},children:(0,C.jsxs)("section",{children:[(0,C.jsxs)("aside",{className:Ne,children:[(0,C.jsx)(ge,{isLoading:c["classroomList/getClassroomTeacherCommonList"],tabDataSource:(0,v.GJ)()?[{name:"全部",id:0,total:ce.all_count||0},{name:"未发布",id:1,total:ce.unpublished_count||0},{name:"未开始",id:4,total:ce.not_start_count||0},{name:"进行中",id:2,total:ce.in_progress_count||0},{name:"已截止",id:3,total:ce.overed_count||0}]:[{name:"全部",id:0},{name:"提交中",id:2},{name:"补交中",id:10},{name:"已截止",id:3}],classroomList:s,isAdmin:(0,v.GJ)(),dispatch:x,type:null==ce?void 0:ce.main_category_name,TooltipTitle:_.categoryId?"目录重命名":"新建子目录",categoryId:_.categoryId,user:w,dropdownMenu:[{name:"新建编程作业",id:"1"},{name:"导入外部成绩",id:"3"}],isShowRightControl:"未分配目录"!==(0,g.Oo)(null==ue?void 0:ue.course_modules,_.categoryId),onTabMenuClick:function(e){void 0!==e.id&&((0,v.GJ)(),_.status=e.id),V(!1),_.page=1,p.history.replace("".concat(y.pathname,"?tabs=").concat(e.id)),pe(_)},defaultSelectedKeys:[B.get("tabs")?B.get("tabs"):"0"],onTooltipTitleClick:function(){x({type:"classroomList/setActionTabs",payload:{key:_.categoryId?"目录重命名":"添加目录",params:_,selectArrs:{category_name:null==ce?void 0:ce.category_name,category_id:(null==ce?void 0:ce.category_id)||(null==ce?void 0:ce.main_category_id)},cb:function(){pe()}}})},onDropdownMenuClick:function(e){var t;!(0,v.Rm)()||null!==(t=s.AssistantObject.hack)&&void 0!==t&&t.can_create?"1"===e?p.history.push("/classrooms/".concat(_.coursesId,"/program_homework/").concat(_.categoryId,"/add")):"2"===e?me():"3"===e&&x({type:"classroomList/setActionTabs",payload:{key:"导入外部成绩",type:"hack"}}):m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能")}}),(0,C.jsx)(be,{dataSource:ce.homeworks||[],isAdmin:(0,v.GJ)(),batchStatus:Y,SortMenuName:re,setSortMenuName:ae,onSearch:function(e){_.search=e.trim(),_.page=1,pe()},onSort:function(e){var t;_.sort_by=e.type,_.sort_direction=e.direction,_.page=1,g.cX.setItem("".concat(null==w||null===(t=w.userInfo)||void 0===t?void 0:t.login).concat((0,v.GJ)()?"Teacher":"Student"),e,"ProgramHomework"),pe(_)},onBatch:function(e){return V(e)}})]}),0===(null==ce?void 0:ce.all_count)&&(0,v.GJ)()?!c[(0,v.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,C.jsx)(ot,{params:_,dispatch:x,onClick:function(){return p.history.push("/classrooms/".concat(_.coursesId,"/program_homework/").concat(_.categoryId,"/add"))},onSelect:me}):(null==ce?void 0:ce.homeworks)&&0===ce.homeworks.length&&!c[(0,v.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,C.jsx)(ne.Z,{}),(0,C.jsx)("aside",{className:"minH500 skt-loading relative pb40 mb30",children:!c[(0,v.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("aside",{className:"animated fadeIn",children:[null==ce||null===(o=ce.homeworks)||void 0===o?void 0:o.map((function(e,t){return(0,C.jsx)(Pe,{user:w,dataSource:e,params:_,classroomList:s,manageAllGroup:null==ce?void 0:ce.manage_all_group,getData:pe},t)})),!c[(0,v.GJ)()?"classroomList/getClassroomTeacherCommonList":"classroomList/getClassroomCommonList"]&&(0,C.jsx)("aside",{className:"tc mb50 mt30",children:(null==ce?void 0:ce.query_total_count)>10&&(0,C.jsx)(h.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:function(e,t){_.page=e,pe()},defaultPageSize:20,defaultCurrent:1,current:_.page||1,total:(0,v.GJ)()?ce.query_total_count:ce.student_all_count})})]}),I.length>0&&(0,v.GJ)()&&(0,C.jsx)(f.Z,{offsetBottom:0,children:(0,C.jsx)(Ce,{buttonDataSource:he,onClick:function(e){var t,n,o,i;if(0===I.length)return m.ZP.error("请选择你要操作的任务"),!1;if(2!==(null==w||null===(t=w.userInfo)||void 0===t?void 0:t.user_status)||"publish"!==(null==e?void 0:e.key)){var r=e.label||"",a={key:r,selectArrs:I,selectArrsAll:J,type:["publish","deadline"].includes(e.key)?1:"",params:_};switch(e.key){case"publish":if(r="立即发布",(0,v.Rm)()&&(null===(n=s.AssistantObject)||void 0===n||null===(n=n.hack)||void 0===n||!n.can_publish))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");break;case"deadline":if(r="立即截止",(0,v.Rm)()&&(null===(o=s.AssistantObject)||void 0===o||null===(o=o.hack)||void 0===o||!o.can_stop))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");break;case"batchpay":r="批量补交";break;case"delete":if(r="删除",(0,v.Rm)()&&(null===(i=s.AssistantObject)||void 0===i||null===(i=i.hack)||void 0===i||!i.can_delete))return void m.ZP.warning("您未获取此权限,需向管理员申请权限才能使用此功能");break;case"collection":r="收藏"}x({type:"classroomList/setActionTabs",payload:l()(l()({},a),{},{key:r})})}else(0,Le.Rd)()}})})]})}),"批量补交"===(null==s||null===(r=s.actionTabs)||void 0===r?void 0:r.key)&&(0,C.jsx)(et,{getData:pe}),(0,C.jsx)(T,{onCallback:function(){return V(!1)}}),(0,C.jsx)(Fe.Z,{onOk:function(){pe()}}),(0,C.jsx)(We.Z,{onOk:function(){}}),(0,C.jsx)(A.Z,{onCallback:function(){return V(!1)},courseEndTime:null==ce?void 0:ce.course_end_time}),(0,C.jsx)(L.Z,{courseEndTime:null==ce?void 0:ce.course_end_time,courseId:b.coursesId,visible:"立即截止"===s.actionTabs.key,isBatch:2!==s.actionTabs.type,homeworkIds:s.actionTabs.selectArrs,successCallback:function(){V(!1),pe()}}),(0,C.jsx)(P,{}),(0,C.jsx)(Z,{onCallback:function(){return V(!1)}}),(0,C.jsx)(H,{onCallback:function(){return V(!1)}}),(0,C.jsx)(ie,{refreshList:pe}),(0,C.jsx)(se,{}),(0,C.jsx)(Ye.Z,{visible:"调整排序"===s.actionTabs.key,callback:fe,data:ve,onCancel:function(){x({type:"classroomList/setActionTabs",payload:{key:""}})}}),$&&(0,C.jsx)(ze,{courseId:_.coursesId,type:"1",onCancel:function(){return ee(!1)}})]})})}))},52352:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(59028),f=n(78241),g=n(43418),v=n(8591),x=n(61998),w=n(5296),y=n(92723),b=n(57102),k=n(18030),j=n(61186),_=n.n(j),C=n(21082),S=n(37712),T=h.Z.Dragger;t.Z=(0,w.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,o=e.dispatch,r=e.onOk,s=((0,w.useParams)(),f.Z.useForm()),c=p()(s,1)[0],d=(0,m.useState)(),h=p()(d,2),j=h[0],A=h[1],L=(0,m.useState)(!1),P=p()(L,2),N=P[0],Z=P[1],B={height:100,onRemove:function(){A("")},accept:".xls,.xlsx",multiple:!1,maxCount:1,beforeUpload:(t=u()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,m.useEffect)((function(){c.setFieldsValue(a()(a()({},"publish_time",_()(_()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",_()(_()(new Date((0,C.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),[]),(0,S.jsx)(g.Z,{centered:!0,title:"补充成绩",open:"补充成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:N},onOk:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:c.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){c.resetFields(),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,S.jsxs)(f.Z,{form:c,onFinish:function(){var e=u()(l()().mark((function e(t){var i,a,s,u,d;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=j&&j.size){e.next=3;break}return v.ZP.info("请上传文件"),e.abrupt("return");case 3:return Z(!0),(i=new FormData).append("type",n.actionTabs.type),i.append("file",j),a=window.location.href.indexOf("exercise")>-1?"/api/exercises/".concat(n.actionTabs.id,"/supplement_score.json"):"/api/homework_commons/".concat(n.actionTabs.id,"/supplement_score.json"),e.next=10,(0,k.ZP)(a,{method:"post",body:i},!0);case 10:s=e.sent,Z(!1),0===(null==s?void 0:s.status)&&(r(),c.resetFields(),o({type:"classroomList/setActionTabs",payload:{}}),(null==s||null===(u=s.data)||void 0===u||null===(u=u.fail)||void 0===u?void 0:u.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,S.jsx)(x.Z,{pagination:!1,dataSource:null==s||null===(d=s.data)||void 0===d?void 0:d.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,C.FH)("",y.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,S.jsx)(f.Z.Item,{label:"作业名称",labelCol:{span:3},name:"name",children:n.actionTabs.name}),(0,S.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,S.jsxs)("div",{children:[(0,S.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,S.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,S.jsxs)("div",{children:[(0,S.jsx)("a",{download:"模版.xlsx",className:b.Z.downloadbutton,href:y.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,S.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,S.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,S.jsxs)(T,i()(i()({},B),{},{children:[(0,S.jsx)("a",{className:b.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,S.jsx)("br",{}),(0,S.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},20208:function(e,t,n){"use strict";var o=n(82242),i=n.n(o),r=n(85573),a=n.n(r),s=n(7557),l=n.n(s),c=n(41498),u=n.n(c),d=n(79800),p=n.n(d),m=n(59301),h=n(59028),f=n(78241),g=n(43418),v=n(8591),x=n(61998),w=n(92832),y=n(95237),b=n(43604),k=n(94001),j=n(57930),_=n(5296),C=n(16318),S=n(92723),T=n(57102),A=n(18030),L=n(63363),P=n(61186),N=n.n(P),Z=n(21082),B=n(37712),M=h.Z.Dragger;t.Z=(0,_.connect)((function(e){return{classroomList:e.classroomList}}))((function(e){var t,n=e.classroomList,o=e.dispatch,r=e.onOk,s=(0,_.useParams)(),c=f.Z.useForm(),d=p()(c,1)[0],h=(0,m.useState)(),P=p()(h,2),E=P[0],I=P[1],D=(0,m.useState)(!1),O=p()(D,2),R=O[0],G=O[1],H={height:100,onRemove:function(){I("")},accept:".xls,.xlsx",maxCount:1,multiple:!1,beforeUpload:(t=u()(l()().mark((function e(t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I(t),e.abrupt("return",!1);case 2:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})};return(0,m.useEffect)((function(){d.setFieldsValue(a()(a()({},"publish_time",N()(N()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),"end_time",N()(N()(new Date((0,Z.qd)("/"))).add(7,"days").format("YYYY-MM-DD HH:mm"))))}),["导入外部成绩"===n.actionTabs.key]),(0,B.jsx)(g.Z,{centered:!0,title:"导入外部成绩",open:"导入外部成绩"===n.actionTabs.key,okText:"确定",width:750,destroyOnClose:!0,cancelText:"取消",okButtonProps:{loading:R},onOk:u()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:d.submit();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){d.resetFields(),o({type:"classroomList/setActionTabs",payload:{}})},children:(0,B.jsxs)(f.Z,{form:d,colon:!1,onFinish:function(){var e=u()(l()().mark((function e(t){var i,a,c,u;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=E&&E.size){e.next=3;break}return v.ZP.info("请上传文件"),e.abrupt("return");case 3:return G(!0),(i=new FormData).append("name",t.name),i.append("type",n.actionTabs.type),i.append("category_id",(null==s?void 0:s.categoryId)||null),"exercise"===n.actionTabs.type?(i.append("time",t.time||""),i.append("total_score",t.total_score)):i.append("description",t.description||""),i.append("publish_time",N()(t.publish_time).format("YYYY-MM-DD HH:mm")),i.append("end_time",N()(t.end_time).format("YYYY-MM-DD HH:mm")),i.append("file",E),e.next=14,(0,A.ZP)("/api/courses/".concat(s.coursesId,"/export_external_score_homework.json"),{method:"post",body:i},!0);case 14:a=e.sent,G(!1),0===(null==a?void 0:a.status)&&(d.resetFields(),o({type:"classroomList/setActionTabs",payload:{}}),r(),(null==a||null===(c=a.data)||void 0===c||null===(c=c.fail)||void 0===c?void 0:c.length)>0&&g.Z.confirm({title:"导入失败",closable:!0,icon:null,width:610,content:(0,B.jsx)(x.Z,{pagination:!1,dataSource:null==a||null===(u=a.data)||void 0===u?void 0:u.fail,scroll:{y:400},columns:[{title:"姓名",align:"left",dataIndex:"name"},{title:"学号/手机号/邮箱",align:"left",dataIndex:"student_id"},{title:"导入失败原因",align:"left",dataIndex:"message"}]}),okText:"下载导入失败文件",cancelText:"取消",onOk:function(){(0,Z.FH)("",S.Z.API_SERVER+"/api/courses/get_external_score_fail_data.xlsx?type=".concat(n.actionTabs.type))}}));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),children:[(0,B.jsx)(f.Z.Item,{label:"exercise"!==n.actionTabs.type?"作业":"试卷名称",labelCol:{span:3},name:"name",rules:[{required:!0,message:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称")}],children:(0,B.jsx)(w.Z,{showCount:!0,placeholder:"请输入".concat("exercise"!==n.actionTabs.type?"作业":"试卷","名称"),maxLength:60})}),"exercise"!==n.actionTabs.type&&(0,B.jsx)(f.Z.Item,{label:"作业描述",labelCol:{span:3},name:"description",children:(0,B.jsx)(C.Z,{watch:!0})}),"exercise"===n.actionTabs.type&&(0,B.jsxs)(y.Z,{style:{marginLeft:6},children:[(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"试卷总分",name:"total_score",rules:[{required:!0,message:"请填写试卷总分"},{pattern:/^(?:[1-9]\d*(?:\.\d+)?|0\.\d*[1-9]\d*)$/,message:"试卷总分必须为正数"}],children:(0,B.jsx)(w.Z,{placeholder:"请输入试卷总分",style:{width:256},addonAfter:"分"})})}),(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"答题时长",labelCol:{span:6},name:"time",children:(0,B.jsx)(k.Z,{style:{width:"100%"},addonAfter:"分钟",placeholder:"请输入答题时长"})})})]}),(0,B.jsxs)(y.Z,{style:{marginLeft:6,marginBottom:12},children:[(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"开始时间",name:"publish_time",rules:[{required:!0,message:"请选择开始时间"}],children:(0,B.jsx)(j.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:256},disabledDate:function(e){return(0,L.Q8)(e)},disabledTime:function(e){return(0,L.d0)(e)},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})}),(0,B.jsx)(b.Z,{span:12,children:(0,B.jsx)(f.Z.Item,{label:"结束时间",labelCol:{span:6},name:"end_time",rules:[{required:!0,message:"请选择结束时间"}],children:(0,B.jsx)(j.default,{placeholder:"请选择发布时间",showTime:{format:"HH:mm"},style:{width:"100%"},disabledDate:function(e){return(0,L.Q8)(e,"",d.getFieldValue("publish_time"))},disabledTime:function(e){return(0,L.d0)(e,d.getFieldValue("publish_time"))},allowClear:!1,format:"YYYY-MM-DD HH:mm"})})})]}),(0,B.jsxs)(f.Z.Item,{style:{marginBottom:0},label:(0,B.jsxs)("div",{children:[(0,B.jsx)("span",{style:{color:"#ff4d4f",marginRight:5,fontFamily:"SimSun,sans-serif"},children:"*"}),(0,B.jsx)("span",{children:"导入文件"})]}),labelCol:{span:3},rules:[{required:!0,message:"请输入作业名称"}],children:[(0,B.jsxs)("div",{children:[(0,B.jsx)("a",{download:"模版.xlsx",className:T.Z.downloadbutton,href:S.Z.API_SERVER+"/api/courses/down_external_score_template.json?type=".concat(n.actionTabs.type),children:"下载模版表格"}),(0,B.jsx)("span",{style:{marginLeft:10,color:"#999999"},children:"(根据提示信息完善表格内容)"})]}),(0,B.jsx)(f.Z.Item,{style:{marginBottom:0},children:(0,B.jsxs)(M,i()(i()({},H),{},{children:[(0,B.jsx)("a",{className:T.Z.downloadbutton,style:{width:96},children:"选择文件"}),(0,B.jsx)("br",{}),(0,B.jsx)("span",{style:{color:"#999999"},children:"下载模板并完善信息后,可将文件拖曳至此处上传。支持格式:.xls、.xlsx"})]}))})]})]})})}))},95335:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(79800),l=n.n(s),c=n(59301),u=n(92832),d=n(24905),p=n(95237),m="leftdiv___aBzsX",h="listClass___bxIEW",f="spantitle___v_Vc4",g="rightdiv___xWu4M",v=n(54313),x=n(37712),w=function(e){var t=e.data,n=(e.value,e.handleChangePage,e.setSelectedRowKeys),o=e.selectedRowKeys,r=(e.onChange,(0,c.useState)([])),s=l()(r,2),w=s[0],y=s[1],b=(0,c.useState)([]),k=l()(b,2),j=k[0],_=k[1],C=(0,c.useState)([]),S=l()(C,2),T=S[0],A=S[1],L=(0,c.useState)(1),P=l()(L,2),N=(P[0],P[1],(0,c.useState)()),Z=l()(N,2);Z[0],Z[1];return(0,c.useEffect)((function(){y(t),_([]),A([])}),[t]),(0,c.useEffect)((function(){n&&(_(o),A(o))}),[o]),(0,x.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,x.jsxs)("div",{className:m,children:[(0,x.jsx)(u.Z.Search,{size:"middle",onChange:function(){var e=a()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:y(t.filter((function(e){var t;return null==e||null===(t=e.name)||void 0===t?void 0:t.includes(n.target.value)})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),placeholder:"可输入班级名称查询"}),0===w.length&&(0,x.jsx)(v.Z,{styles:{margin:"70px auto"},customText:"暂无分班"}),(0,x.jsx)("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"},children:(0,x.jsx)(d.Z.Group,{value:j.map((function(e){return"".concat(e.id)})),onChange:function(e){n(w.filter((function(t){return e.includes("".concat(t.id))})))},style:{marginTop:"10px",flexDirection:"column"},children:w.map((function(e,t){return(0,x.jsx)(p.Z,{style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200},children:(0,x.jsx)(d.Z,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:e.is_published,value:"".concat(e.id),children:(0,x.jsxs)("div",{className:h,children:[(0,x.jsx)("span",{className:f,style:{width:e.is_published?"108px":"170px"},children:e.name}),e.is_published&&(0,x.jsx)("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"},children:"已发布"})]})})},e.id)}))})})]}),(0,x.jsxs)("div",{className:g,children:[(0,x.jsx)(u.Z.Search,{onChange:function(e){A(j.filter((function(t){return t.name.includes(e.target.value)})))},size:"middle",placeholder:"可输入班级名称查询"}),0===T.length&&(0,x.jsx)(v.Z,{styles:{margin:"70px auto"},customText:"暂未选择分班"}),T.length>0&&(0,x.jsx)("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"},children:(0,x.jsx)("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0},children:T.map((function(e,t){return(0,x.jsxs)(p.Z,{justify:"space-between",style:{marginTop:"10px"},children:[(0,x.jsx)("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"},children:e.name}),(0,x.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){n(j.filter((function(t){return"".concat(t.id)!="".concat(e.id)})))}})]},e.id)}))})})]})]})}},75774:function(e,t,n){"use strict";n.d(t,{Z:function(){return S}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(82242),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301),p=n(43418),m=n(96865),h=n(95237),f=n(6848),g="wrap___KDoq2",v="tip___WEJuX",x="listWrap___IJDX4",w="li___r5con",y="nameWrap___PUyEz",b="name___xuUMY",k="tag___l5CW2",j=n(78018),_=n(5296),C=n(37712),S=function(e){var t,n,o=e.type,r=void 0===o?1:o,s=e.data,c=e.visible,S=e.callback,T=e.onCancel,A=(0,d.useState)([]),L=u()(A,2),P=L[0],N=L[1],Z=(0,_.useSelector)((function(e){return e.loading}));(0,d.useEffect)((function(){N(s)}),[JSON.stringify(s)]);var B=function(e){var t={};if(1===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"未开始":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"提交中":{background:"rgba(0,177,135,0.2)",color:"#00B187"},"已截止":{background:"rgba(229,51,51,0.2)",color:"#E53333"}}[e]}if(2===r){t={"未发布":{background:"rgba(198,206,214,0.2)",color:"#C6CED6"},"预发布":{background:"rgba(22,93,255,0.2)",color:"#165DFF"},"已发布":{background:"rgba(0,177,135,0.2)",color:"#00B187"}}[e]}return(0,C.jsx)("div",{className:k,style:l()({},t),children:e})},M=function(){var e=a()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:S(P.map((function(e){return e.task_id})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,C.jsx)(p.Z,{centered:!0,destroyOnClose:!0,open:c,onCancel:T,onOk:M,confirmLoading:null==Z||null===(t=Z.effects)||void 0===t?void 0:t["classroomList/updateTaskPosition"],okText:"保存",title:"调整排序",width:850,children:(0,C.jsxs)("div",{className:g,children:[(0,C.jsxs)("div",{className:v,children:[(0,C.jsx)("i",{className:"iconfont icon-tishi9 font14 mr10"}),(0,C.jsx)("span",{children:"提示:请在列表中长按鼠标左键,进行拖放排序。完成排序后请点击“保存”"})]}),(0,C.jsx)(m.Z,{loading:null==Z||null===(n=Z.effects)||void 0===n?void 0:n["classroomList/getAllTaskList"],active:!0,className:"mt20",paragraph:{rows:5},children:(0,C.jsx)(j.Z5,{onDragEnd:function(e){return function(e,t){if(e.destination){var n=function(e,t,n){var o=Array.from(e),i=o.splice(t,1),r=u()(i,1)[0];return o.splice(n,0,r),o}(t,e.source.index,e.destination.index);N(n)}}(e,P)},children:(0,C.jsx)(j.bK,{droppableId:"droppable",children:function(e,t){return(0,C.jsxs)("div",l()(l()({ref:e.innerRef},e.droppableProps),{},{className:x,children:[P.map((function(e,t){return(0,C.jsx)(j._l,{draggableId:e.task_id.toString(),index:t,children:function(t,n){return(0,C.jsxs)("div",l()(l()(l()({ref:t.innerRef},t.draggableProps),t.dragHandleProps),{},{className:w,children:[(0,C.jsxs)(h.Z,{align:"middle",children:[(0,C.jsx)("div",{className:y,children:(0,C.jsx)(f.Z,{title:null==e?void 0:e.task_name,children:(0,C.jsx)("div",{className:b,children:null==e?void 0:e.task_name})})}),B(null==e?void 0:e.status)]}),(0,C.jsx)(h.Z,{align:"middle",className:"font12 mt10",children:(0,C.jsxs)("span",{className:"mr30 c-grey-666",children:["管理员",(0,C.jsx)("span",{className:"ml5 c-black",children:(null==e?void 0:e.user_name)||"--"})]})})]}))}},e.task_id)})),e.placeholder]}))}})})})]})})}},90341:function(e,t,n){"use strict";n.d(t,{$J:function(){return l},JZ:function(){return u},bN:function(){return m},jP:function(){return p},rO:function(){return c}});var o=n(7557),i=n.n(o),r=n(41498),a=n.n(r),s=n(18030);function l(e){return(0,s.U2)("libraries/".concat(e,".json"))}function c(){return(0,s.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.IV)("attachments/".concat(t,".json"));case 2:return n=e.sent,e.abrupt("return",0===n.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,s.v_)("libraries.json",e)}function m(e,t){return(0,s.gz)("libraries/".concat(e,".json"),t)}},1058:function(e,t,n){"use strict";n.d(t,{U:function(){return p}});var o=n(7557),i=n.n(o),r=n(82242),a=n.n(r),s=n(41498),l=n.n(s),c=n(79800),u=n.n(c),d=n(59301);function p(e,t){var n=(0,d.useState)(t),o=u()(n,2),r=o[0],s=o[1],c=(0,d.useState)(!1),p=u()(c,2),m=p[0],h=p[1],f=(0,d.useState)(),g=u()(f,2),v=g[0],x=g[1],w=function(){var n=l()(i()().mark((function n(o){var l,c,u,d=arguments;return i()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return l=d.length>1&&void 0!==d[1]&&d[1],c=l?t:a()(a()({},r),o),h(!0),s(c),n.next=6,e(c);case 6:return u=n.sent,h(!1),x(u),n.abrupt("return",u);case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return[r,m,w,v]}},57102:function(e,t){"use strict";t.Z={flex_box_center:"flex_box_center___SF0m3",flex_space_between:"flex_space_between___ChLjp",flex_box_vertical_center:"flex_box_vertical_center____l_EF",flex_box_center_end:"flex_box_center_end___YcZNu",flex_box_column:"flex_box_column___R9dNq",downloadbutton:"downloadbutton___oEXJW",configWorkContainer:"configWorkContainer___CHUrh"}},27666:function(e,t,n){"use strict";var o=n(26390),i=n(71783);t.Z=function(e){let t;const n=n=>()=>{t=null,e.apply(void 0,(0,o.Z)(n))},r=function(){if(null==t){for(var e=arguments.length,o=new Array(e),r=0;r{i.Z.cancel(t),t=null},r}},81228:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var o=n(79545),i=n(68550),r=n(17928),a=n(99487),s=n(59301),l=n(92310),c=n.n(l),u=n(28647),d=n(55405),p=n(27666),m=n(36355),h=n(83116),f=n(37613);const g=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}};var v=(0,h.Z)("Affix",(e=>{const t=(0,f.TS)(e,{zIndexPopup:e.zIndexBase+10});return[g(t)]}));function x(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function w(e,t,n){if(void 0!==n&&t.top>e.top-n)return n+t.top}function y(e,t,n){if(void 0!==n&&t.bottom{const t=e.getTargetFunc(),n=null==t?void 0:t(),{prevTarget:o}=e.state;o!==n&&(b.forEach((t=>{null==o||o.removeEventListener(t,e.lazyUpdatePosition),null==n||n.addEventListener(t,e.lazyUpdatePosition)})),e.updatePosition(),e.setState({prevTarget:n}))},e.removeListeners=()=>{e.timer&&(clearTimeout(e.timer),e.timer=null);const{prevTarget:t}=e.state,n=e.getTargetFunc(),o=null==n?void 0:n();b.forEach((n=>{null==o||o.removeEventListener(n,e.lazyUpdatePosition),null==t||t.removeEventListener(n,e.lazyUpdatePosition)})),e.updatePosition.cancel(),e.lazyUpdatePosition.cancel()},e.getOffsetTop=()=>{const{offsetBottom:t,offsetTop:n}=e.props;return void 0===t&&void 0===n?0:n},e.getOffsetBottom=()=>e.props.offsetBottom,e.measure=()=>{const{status:t,lastAffix:n}=e.state,{onChange:o}=e.props,i=e.getTargetFunc();if(t!==j.Prepare||!e.fixedNodeRef.current||!e.placeholderNodeRef.current||!i)return;const r=e.getOffsetTop(),a=e.getOffsetBottom(),s=i();if(s){const t={status:j.None},i=x(e.placeholderNodeRef.current);if(0===i.top&&0===i.left&&0===i.width&&0===i.height)return;const l=x(s),c=w(i,l,r),u=y(i,l,a);void 0!==c?(t.affixStyle={position:"fixed",top:c,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}):void 0!==u&&(t.affixStyle={position:"fixed",bottom:u,width:i.width,height:i.height},t.placeholderStyle={width:i.width,height:i.height}),t.lastAffix=!!t.affixStyle,o&&n!==t.lastAffix&&o(t.lastAffix),e.setState(t)}},e.prepareMeasure=()=>{e.setState({status:j.Prepare,affixStyle:void 0,placeholderStyle:void 0})},e.updatePosition=(0,p.Z)((()=>{e.prepareMeasure()})),e.lazyUpdatePosition=(0,p.Z)((()=>{const t=e.getTargetFunc(),{affixStyle:n}=e.state;if(t&&n){const o=e.getOffsetTop(),i=e.getOffsetBottom(),r=t();if(r&&e.placeholderNodeRef.current){const t=x(r),a=x(e.placeholderNodeRef.current),s=w(a,t,o),l=y(a,t,i);if(void 0!==s&&n.top===s||void 0!==l&&n.bottom===l)return}}e.prepareMeasure()})),e}return(0,i.Z)(n,[{key:"getTargetFunc",value:function(){const{getTargetContainer:e}=this.context,{target:t}=this.props;return void 0!==t?t:null!=e?e:k}},{key:"componentDidMount",value:function(){this.timer=setTimeout(this.addListeners)}},{key:"componentDidUpdate",value:function(e){this.addListeners(),e.offsetTop===this.props.offsetTop&&e.offsetBottom===this.props.offsetBottom||this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"render",value:function(){const{affixStyle:e,placeholderStyle:t}=this.state,{affixPrefixCls:n,rootClassName:o,children:i}=this.props,r=c()(e&&o,{[n]:!!e});let a=(0,d.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls","rootClassName"]);return s.createElement(u.Z,{onResize:this.updatePosition},s.createElement("div",Object.assign({},a,{ref:this.placeholderNodeRef}),e&&s.createElement("div",{style:t,"aria-hidden":"true"}),s.createElement("div",{className:r,ref:this.fixedNodeRef,style:e},s.createElement(u.Z,{onResize:this.updatePosition},i))))}}]),n}(s.Component);_.contextType=m.E_;var C=(0,s.forwardRef)(((e,t)=>{const{prefixCls:n,rootClassName:o}=e,{getPrefixCls:i}=(0,s.useContext)(m.E_),r=i("affix",n),[a,l]=v(r),u=Object.assign(Object.assign({},e),{affixPrefixCls:r,rootClassName:c()(o,l)});return a(s.createElement(_,Object.assign({},u,{ref:t})))}))},28103:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var o=n(92310),i=n.n(o),r=n(59301),a=n(36355),s=n(17313),l=n(83116),c=n(37613);const u=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:i,textPaddingInline:r,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},(0,s.Wf)(e)),{borderBlockStart:`${i}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*a+"%"},"&::after":{width:100-100*a+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*a+"%"},"&::after":{width:100*a+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:r},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var d=(0,l.Z)("Divider",(e=>{const t=(0,c.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[u(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n,divider:o}=r.useContext(a.E_),{prefixCls:s,type:l="horizontal",orientation:c="center",orientationMargin:u,className:m,rootClassName:h,children:f,dashed:g,plain:v,style:x}=e,w=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),y=t("divider",s),[b,k]=d(y),j=c.length>0?`-${c}`:c,_=!!f,C="left"===c&&null!=u,S="right"===c&&null!=u,T=i()(y,null==o?void 0:o.className,k,`${y}-${l}`,{[`${y}-with-text`]:_,[`${y}-with-text${j}`]:_,[`${y}-dashed`]:!!g,[`${y}-plain`]:!!v,[`${y}-rtl`]:"rtl"===n,[`${y}-no-default-orientation-margin-left`]:C,[`${y}-no-default-orientation-margin-right`]:S},m,h),A=r.useMemo((()=>"number"==typeof u?u:/^\d+$/.test(u)?Number(u):u),[u]),L=Object.assign(Object.assign({},C&&{marginLeft:A}),S&&{marginRight:A});return b(r.createElement("div",Object.assign({className:T,style:Object.assign(Object.assign({},null==o?void 0:o.style),x)},w,{role:"separator"}),f&&"vertical"!==l&&r.createElement("span",{className:`${y}-inner-text`,style:L},f)))}},51581:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,l&&l(t)};var u=[n];return i&&(s?a?u.unshift(s):u.push(s):this.defaultLoader&&(a?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),r.default.createElement(o,c,u)}}]),t}(i.Component);l.propTypes={children:a.default.node.isRequired,element:a.default.node,hasMore:a.default.bool,initialLoad:a.default.bool,isReverse:a.default.bool,loader:a.default.node,loadMore:a.default.func.isRequired,pageStart:a.default.number,ref:a.default.func,getScrollParent:a.default.func,threshold:a.default.number,useCapture:a.default.bool,useWindow:a.default.bool},l.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=l,e.exports=t.default},26724:function(e,t,n){e.exports=n(51581)},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO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S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="}}]); \ No newline at end of file diff --git a/p__Competitions__Edit__index.3fc90de2.async.js b/p__Competitions__Edit__index.3fc90de2.async.js new file mode 100644 index 0000000000..eea9d2dc73 --- /dev/null +++ b/p__Competitions__Edit__index.3fc90de2.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[38797,1806],{91628:function(e,n,t){var i=t(39647),l=t.n(i),s=(t(59301),t(5296)),o=t(43418),a=t(37712),r=["shixunsDetail","globalSetting","loading","dispatch"];n.Z=(0,s.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n=e.shixunsDetail,t=(e.globalSetting,e.loading,e.dispatch);l()(e,r);return(0,a.jsx)(o.Z,{centered:!0,keyboard:!1,closable:!1,zIndex:6666,title:"提示",open:"Banner-Auth"===n.actionTabs.key,okText:"确定",cancelText:"取消",onOk:function(){t({type:"shixunsDetail/setActionTabs",payload:{}}),window.location.href="/account/certification"},onCancel:function(){t({type:"shixunsDetail/setActionTabs",payload:{}})},children:(0,a.jsxs)("p",{className:"tc font16",children:["当前竞赛需要实名认证,请先完成实名认证后再报名参赛",(0,a.jsx)("br",{}),"请问是否前往进行认证?"]})})}))},30904:function(e,n,t){t.d(n,{Z:function(){return u}});var i=t(79800),l=t.n(i),s=t(78241),o=t(92832),a=t(3113),r=t(59301),c={search:"search___JA0r9",btn:"btn___GGtZC"},d=t(37712),u=function(e){var n=e.value,t=e.onChange,i=s.Z.useForm(),u=l()(i,1)[0],p=(0,r.useRef)(!1);(0,r.useEffect)((function(){n&&u.setFieldsValue(n)}),n);return(0,d.jsx)("div",{className:c.search,children:(0,d.jsxs)(s.Z,{className:c.formWrap,colon:!1,form:u,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,d.jsx)(s.Z.Item,{label:"实践项目名称",name:"keyword",initialValue:"",children:(0,d.jsx)(o.Z,{style:{width:280,height:40}})}),(0,d.jsx)(s.Z.Item,{label:"学校/单位",name:"schools",initialValue:"",style:{margin:"0 40px"},children:(0,d.jsx)(o.Z,{style:{width:280,height:40}})}),(0,d.jsx)(s.Z.Item,{label:"创建者/合作者",name:"creator",initialValue:"",children:(0,d.jsx)(o.Z,{style:{width:200,height:40}})}),(0,d.jsx)(a.ZP,{className:c.btn,type:"primary",htmlType:"submit",children:"搜索"})]})})}},98382:function(e,n,t){t.d(n,{z:function(){return N},Z:function(){return I}});var i=t(7557),l=t.n(i),s=t(41498),o=t.n(s),a=t(82242),r=t.n(a),c=t(37205),d=t.n(c),u=t(79800),p=t.n(u),m=t(59301),_=t(59028),h=t(8591),f=t(43418),x=t(3113),v=t(92723),g=t(90341),y=t(37712),j="  ";function b(e){if(0==e)return"0 Byte";var n=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,n)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][n]}var w=t(60186),Z=t(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var k=_.Z.Dragger;function N(e){var n=[];return e&&e.length>0&&(n=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+j+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),n}var I=function(e){var n=e.value,t=e.onChange,i=e.action,s=e.data,a=e.className,c=e.maxSize,u=void 0===c?150:c,N=e.title,I=void 0===N?"上传附件":N,A=e.showRemoveModal,S=void 0!==A&&A,C=e.accept,F=void 0===C?"":C,P=e.additionalText,T=e.isDragger,R=e.number,E=void 0===R?1e3:R,L=e.aloneClear,D=void 0!==L&&L,B=e.realTimeRemove,V=void 0===B||B,z=e.uploadText,M=e.setFileProgress,O=e.showFileProgress,Y=(0,m.useState)(!1),H=p()(Y,2),q=H[0],Q=H[1],G=(0,m.useState)(n||[]),U=p()(G,2),W=U[0],J=U[1],K=(0,m.useState)(1),X=p()(K,2),$=X[0],ee=X[1];(0,m.useEffect)((function(){n&&(1===$&&J(d()(n)),ee(2),E===(null==n?void 0:n.length)&&Q(!0))}),[n]);var ne=function(){setTimeout((function(){W.pop(),J(d()(W))}),500)};O&&M(W.some((function(e){return"uploading"===e.status})));var te,ie={multiple:!0,disabled:q,accept:F,withCredentials:!0,fileList:W,beforeUpload:function(e,n){var t=e.size/1024/1024;return W.concat(n).length>E?(W.pop(),J(d()(W)),h.ZP.error("最多只能上传".concat(E,"个文件")),D?Promise.reject():(ne(),!1)):t=E?Q(!0):Q(!1),J(d()(W)),W=W.map((function(e){var n,t;null!=e&&null!==(n=e.response)&&void 0!==n&&n.id&&(e.url=null==e||null===(t=e.response)||void 0===t?void 0:t.url);return-1===e.name.indexOf(j)&&(e.name="".concat(e.name).concat(j).concat(b(e.size))),r()({},e)})),console.log("info:",e,W),t(W)):h.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(te=o()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(V){e.next=2;break}return e.abrupt("return",!0);case 2:if(t=function(){var e=o()(l()().mark((function e(){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.response?n.response.id:n.id)){e.next=8;break}return e.next=4,(0,g.JZ)(n.response?n.response.id:n.uid);case 4:return t=e.sent,e.abrupt("return",Promise.resolve(t));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!S){e.next=7;break}return e.abrupt("return",new Promise((function(e,n){var i;f.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=o()(l()().mark((function n(){return l()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t();case 2:n.sent,h.ZP.success("删除成功"),e(!0);case 5:case"end":return n.stop()}}),n)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,t();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return te.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(a||""),children:[T&&(0,y.jsxs)(k,r()(r()({},ie),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(w.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",u,"MB)"," "]}),P]})),!T&&(0,y.jsxs)(_.Z,r()(r()({},ie),{},{children:[(0,y.jsxs)(x.ZP,{disabled:q,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),I]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:z||"(单个文件最大".concat(u,"MB)")})]}))]})}},16605:function(e,n,t){t.d(n,{h:function(){return p},x:function(){return m}});var i=t(82242),l=t.n(i),s=t(39647),o=t.n(s),a=t(16318),r=t(65648),c=t(38279),d=t(37712),u=["value","onChange","scrollId"],p=function(e){var n=e.value,t=e.onChange,i=e.scrollId,s=o()(e,u);return(0,d.jsx)("div",{id:i||"",children:(0,d.jsx)(a.Z,l()(l()({},s),{},{defaultValue:n,onChange:function(e,n){console.log("a:",e,n),null!=n&&n.length?t(e,n):t(e)}}))})},m=function(e){var n=e.value,t=e.onChange,i=e.placeholder,l=e.height,s=void 0===l?140:l,o=e.isEdit,u=e.miniToolbar,p=e.watch,m=void 0===p||p;return o?(0,d.jsx)(a.Z,{watch:m,isFocus:!0,height:s||void 0,placeholder:i,defaultValue:n,onChange:t,miniToolbar:u}):(0,d.jsx)("div",{style:{cursor:"pointer"},children:n?(0,d.jsx)(c.Z,{className:r.Z.inputBorder,value:n}):(0,d.jsx)("div",{className:"".concat(r.Z.inputBorder," ").concat(r.Z.placeholder," inputBorderError"),children:i})})}},21515:function(e,n,t){t.d(n,{Z:function(){return E},P:function(){return T}});var i=t(37205),l=t.n(i),s=t(39647),o=t.n(s),a=t(7557),r=t.n(a),c=t(82242),d=t.n(c),u=t(41498),p=t.n(u),m=t(79800),_=t.n(m),h=t(59301),f=t(78241),x=t(43418),v=t(5112),g=t(92832),y=t(61998),j="brief___LOzpE",b="contentTitle___xkdcN",w="content___Vtri0",Z="antdTable___s8T2N",k="tableCell___kN9Fw",N="antdModal___WVBk3",I="orangeColor___ryB2u",A=t(99681),S=t(37712),C=["isImportMultipleCourse"],F=function(e){var n=e.studentNames,t=e.total;return t>3?(0,S.jsxs)(S.Fragment,{children:["课堂内有",(0,S.jsx)("span",{className:I,children:null==n?void 0:n.join("、")}),"等",(0,S.jsx)("span",{className:I,children:t}),"名学生"]}):(0,S.jsxs)(S.Fragment,{children:["课堂内有",(0,S.jsx)("span",{className:I,children:null==n?void 0:n.join("、")}),["","一","两","三"][t],"名学生"]})},P=function(e){var n=e.onCancel,t=e.onOk,i=e.visible,l=(e.inPaper,e.renderData),s=(e.type,e.isMultipleCourse),o=void 0!==s&&s,a=f.Z.useForm(),c=_()(a,1)[0],u=(0,h.useState)(1),m=_()(u,2),g=m[0],y=m[1],j=(0,h.useState)(!1),b=_()(j,2),Z=b[0],k=b[1],A=(0,h.useMemo)((function(){return 1===(null==l?void 0:l.total_num)&&1===(null==l?void 0:l.can_copy_num)}),[l]),C=(0,h.useMemo)((function(){var e;return null==l||null===(e=l.course_data_list)||void 0===e?void 0:e.filter((function(e){return e.is_show}))}),[l]);return(0,S.jsx)(S.Fragment,{children:A?(0,S.jsxs)(x.Z,{centered:!0,closable:!0,open:i,destroyOnClose:!0,title:"提示",className:N,width:682,confirmLoading:Z,onCancel:n,onOk:p()(r()().mark((function e(){var n,i,s;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(!0),n=g,o&&(s=d()({},c.getFieldsValue()),n=null==l||null===(i=l.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==s[e.id]?d()(d()({},e),{},{is_copy:s[e.id]}):e}))),e.next=5,t(n);case 5:k(!1);case 6:case"end":return e.stop()}}),e)}))),children:[(0,S.jsx)("div",{className:w,style:{marginBottom:20},children:o?"检测到以下课堂已在教学课堂中使用,请问是否复制成新的实训发送至教学课堂中?":(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(F,{studentNames:null==l?void 0:l.student_names,total:null==l?void 0:l.student_count}),"学习过该实践项目。该项目支持复制,请选择是否将该项目复制为新项目发送至课堂中?"]})}),o?(0,S.jsx)(f.Z,{form:c,preserve:!1,children:null==C?void 0:C.map((function(e){return(0,S.jsxs)(h.Fragment,{children:[(0,S.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,S.jsx)(f.Z.Item,{name:e.id,initialValue:1,children:(0,S.jsxs)(v.ZP.Group,{className:w,children:[(0,S.jsx)(v.ZP,{value:1,style:{color:"#464f66"},children:"复制实训"}),(0,S.jsx)(v.ZP,{value:0,style:{color:"#464f66"},children:"不复制实训"})]})})]},e.id)}))}):(0,S.jsxs)(v.ZP.Group,{value:g,onChange:function(e){return y(e.target.value)},className:w,style:{marginBottom:30},children:[(0,S.jsx)(v.ZP,{value:1,style:{color:"#464f66"},children:"复制"}),(0,S.jsx)(v.ZP,{value:0,style:{color:"#464f66"},children:"不复制"})]}),(0,S.jsxs)("div",{children:[(0,S.jsx)("div",{className:w,style:{marginBottom:10},children:"* 说明:"}),(0,S.jsx)("div",{className:w,style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,S.jsx)("div",{className:"".concat(w," ").concat(I),children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]})]}):(0,S.jsx)(x.Z,{centered:!0,closable:!0,destroyOnClose:!0,open:i,confirmLoading:Z,title:"提示",width:682,onCancel:n,onOk:p()(r()().mark((function e(){var n,i,s;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(!0),n=0,o&&(s=d()({},c.getFieldsValue()),n=null==l||null===(i=l.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==s[e.id]?d()(d()({},e),{},{is_use:s[e.id]}):e}))),e.next=5,t(n);case 5:k(!1);case 6:case"end":return e.stop()}}),e)}))),children:(0,S.jsxs)("div",{className:w,children:[(0,S.jsx)(F,{studentNames:null==l?void 0:l.student_names,total:null==l?void 0:l.student_count}),"学习过该实践项目。",o?(0,S.jsxs)(f.Z,{form:c,preserve:!1,children:[(0,S.jsx)("h3",{children:"当前实训不可复制,已经检测到以下课堂存在该实训,同一实训在课堂中重复使用时,会导致成绩互相影响,请确认是否继续使用"}),null==C?void 0:C.map((function(e){return(0,S.jsxs)(h.Fragment,{children:[(0,S.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,S.jsx)(f.Z.Item,{name:e.id,initialValue:1,children:(0,S.jsxs)(v.ZP.Group,{className:w,children:[(0,S.jsx)(v.ZP,{value:1,style:{color:"#464f66"},children:"继续使用"}),(0,S.jsx)(v.ZP,{value:0,style:{color:"#464f66"},children:"不使用"})]})})]},e.id)}))]}):(0,S.jsxs)("div",{children:["该项目不支持复制,若确认继续发送,",(0,S.jsx)("span",{className:I,children:"当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"}),"(如果不想清空学生之前的挑战记录,建议参照该实践项目的内容自行创建一个新的项目,或者尝试联系项目创建人开放本项目的复制权限)。"]})]})})})},T=function(){var e=(0,h.useState)(!1),n=_()(e,2),t=n[0],i=n[1],l=(0,h.useState)(),s=_()(l,2),a=s[0],c=s[1],d=function(){var e=p()(r()().mark((function e(n){var t,l,s,a,d;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.isImportMultipleCourse,l=void 0!==t&&t,s=o()(n,C),console.log(n),e.t0=null==n?void 0:n.result,e.t0){e.next=7;break}return e.next=6,(0,A.Tr)(s);case 6:e.t0=e.sent;case 7:if(!("status"in(a=e.t0))){e.next=10;break}return e.abrupt("return",!1);case 10:if(!l){e.next=17;break}if(!(null==a||null===(d=a.course_data_list)||void 0===d?void 0:d.some((function(e){return e.is_show})))){e.next=16;break}return c(a),i(!0),e.abrupt("return",!0);case 16:return e.abrupt("return",a.course_data_list||[]);case 17:if(0!==a.student_count){e.next=19;break}return e.abrupt("return",!1);case 19:return c(a),i(!0),e.abrupt("return",!0);case 22:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return[t,function(){return i(!1)},a,d]},R=function(e){var n=f.Z.useForm(),t=_()(n,1)[0],i=(0,h.useState)(!1),s=_()(i,2),o=s[0],a=s[1],c=e.onCancel,d=e.onOk,u=e.visible,m=e.inPaper,w=void 0!==m&&m,A=e.renderData,C=e.type,P=e.isMultipleCourse,T=void 0!==P&&P,R=e.position,E=(0,h.useMemo)((function(){return w?[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:k,render:function(e,n){return(0,S.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,n){return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],initialValue:1,children:(0,S.jsxs)(v.ZP.Group,{children:[(0,S.jsx)(v.ZP,{value:1,children:"是"}),(0,S.jsx)(v.ZP,{value:0,children:"否"})]})}),(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],hidden:!0,initialValue:1,children:(0,S.jsx)(g.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:k,render:function(e,n){return(0,S.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,n){return(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],initialValue:1,children:(0,S.jsxs)(v.ZP.Group,{children:[(0,S.jsx)(v.ZP,{value:1,children:"是"}),(0,S.jsx)(v.ZP,{value:0,children:"否"})]})})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,n){return(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],initialValue:1,children:(0,S.jsxs)(v.ZP.Group,{children:[(0,S.jsx)(v.ZP,{value:1,children:"是"}),(0,S.jsx)(v.ZP,{value:0,children:"否"})]})})}}]}),[w]),L=(0,h.useMemo)((function(){return w?[{title:"实践项目名称",dataIndex:"name",width:424,className:k,align:"center",ellipsis:!0,render:function(e,n){return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e}),(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],hidden:!0,initialValue:0,children:(0,S.jsx)(g.Z,{type:"hidden"})}),(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],hidden:!0,initialValue:1,children:(0,S.jsx)(g.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,className:k,ellipsis:!0,align:"center",render:function(e,n){return(0,S.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,n){return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],initialValue:0,children:(0,S.jsxs)(v.ZP.Group,{children:[(0,S.jsx)(v.ZP,{value:1,children:"是"}),(0,S.jsx)(v.ZP,{value:0,children:"否"})]})}),(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],hidden:!0,initialValue:0,children:(0,S.jsx)(g.Z,{type:"hidden"})})]})}}]}),[w]);if(T){var D={title:"课堂名称",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:k,render:function(e,n){return(0,S.jsx)("a",{href:"/classrooms/".concat(n.course_id),children:e})}};E=[D].concat(l()(E)),L=[D].concat(l()(L))}var B=(0,h.useMemo)((function(){return function(e){var n=e.used,t=e.copy,i=e.canNotCopy,l=e.studentNames,s=e.studentCount,o=e.inPaper,a=e.is_random,r=void 0!==a&&a,c=e.position,d=(void 0===c?"":c)||(o?"试卷":"课程");return(0,S.jsxs)("span",{children:[(0,S.jsx)(F,{studentNames:l,total:s}),"学习过",d,"中的",(0,S.jsx)("span",{className:I,children:n}),"个项目,",t>0&&i>0?(0,S.jsxs)(S.Fragment,{children:["其中",(0,S.jsx)("span",{className:I,children:t}),"个项目支持复制,",(0,S.jsx)("span",{className:I,children:i}),"个项目不支持复制"]}):t>0&&0===i?(0,S.jsxs)(S.Fragment,{children:["其中",(0,S.jsx)("span",{className:I,children:t}),"个项目支持复制"]}):0===t&&i>0?(0,S.jsxs)(S.Fragment,{children:["其中",(0,S.jsx)("span",{className:I,children:i}),"个项目不支持复制"]}):void 0,"。请选择",r?"":"是否继续使用和","是否复制为新项目发送至课堂中?"]})}({used:null==A?void 0:A.repeat_shixun_num,copy:null==A?void 0:A.can_copy_num,canNotCopy:null==A?void 0:A.no_copy_num,studentNames:null==A?void 0:A.student_names,studentCount:null==A?void 0:A.student_count,is_random:null==A?void 0:A.is_random,inPaper:w,position:R})}),[A,w,R]);return(0,S.jsx)(x.Z,{title:"提示",centered:!0,open:u,confirmLoading:o,onOk:p()(r()().mark((function e(){var n,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a(!0),n=t.getFieldsValue(),i=Object.keys(n).map((function(e){return{id:parseInt(e.split("_")[0]),course_id:parseInt(e.split("_")[1]),is_use:n[e].is_use,is_copy:n[e].is_copy}})),e.next=5,d(i);case 5:a(!1);case 6:case"end":return e.stop()}}),e)}))),onCancel:c,width:880,okText:"确认",className:N,destroyOnClose:!0,children:(0,S.jsxs)(f.Z,{form:t,preserve:!1,children:[(0,S.jsx)("div",{className:j,children:B}),(0,S.jsxs)("div",{style:{marginBottom:30},children:[(0,S.jsx)("div",{style:{marginBottom:20},children:"* 说明"}),(0,S.jsx)("div",{style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,S.jsx)("div",{className:I,children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]}),(null==A?void 0:A.can_copy_num)>0&&(0,S.jsxs)("div",{children:[(0,S.jsx)("div",{className:b,children:"支持复制的项目"}),(0,S.jsx)(y.Z,{columns:E,className:Z,dataSource:null==A?void 0:A.can_copy_list,rowKey:"subject"===C?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})]}),(null==A?void 0:A.no_copy_num)>0&&(0,S.jsxs)("div",{children:[(0,S.jsx)("div",{className:b,children:"不支持复制的项目"}),(0,S.jsx)(y.Z,{columns:L,className:Z,dataSource:null==A?void 0:A.no_copy_list,rowKey:"subject"===C?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})]}),(null==A?void 0:A.no_use_list.length)>0&&(null==A?void 0:A.no_use_list.map((function(e){return(0,S.jsxs)("div",{children:[(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],hidden:!0,initialValue:0,children:(0,S.jsx)(g.Z,{type:"hidden"})}),(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],hidden:!0,initialValue:1,children:(0,S.jsx)(g.Z,{type:"hidden"})})]},"subject"===C?e.stage_shixun_id:e.shixun_course_id||e.id)})))]})})},E=function(e){return"multiple"===e.modalType?(0,S.jsx)(R,d()({},e)):(0,S.jsx)(P,d()({},e))}},53189:function(e,n,t){t.r(n),t.d(n,{default:function(){return sl}});var i=t(82242),l=t.n(i),s=t(7557),o=t.n(s),a=t(41498),r=t.n(a),c=t(79800),d=t.n(c),u=t(39647),p=t.n(u),m=t(59301),_=t(5296),h=t(57809),f=t(78241),x=t(43418),v=t(8591),g=t(66104),y=t(6848),j=t(92832),b=t(5112),w=t(88522),Z=t(3113),k={flex_box_center:"flex_box_center___Pwy41",flex_space_between:"flex_space_between___iGrQJ",flex_box_vertical_center:"flex_box_vertical_center___yCxnY",flex_box_center_end:"flex_box_center_end___WYWWp",flex_box_column:"flex_box_column___XMpFi",bg:"bg___WrQc9",top:"top___eHaMu",title:"title___ZzSKL",img:"img___TSo4p",span:"span___i1hTN",button:"button___M8rSK",content:"content___BOwAQ",Banner:"Banner___t6PnF",right:"right___x1tqT",titles:"titles___UHOD8",bonus:"bonus___l9Tlu",items:"items___CPICU",bottom:"bottom___HHYt7",tag:"tag___DBN6l",jsinput:"jsinput___oh61y",baseFormItem:"baseFormItem___t5ZrH",scoremodal:"scoremodal___yE6h8",yes:"yes___XyW4g",no:"no___kIYD7",bottoms:"bottoms___X64Ij",loaderimg:"loaderimg___w2vWU",enroll:"enroll___lbTQ5",publish:"publish___kDAkJ",ended:"ended___mycKl",form_item:"form_item___lsqU3",form_item_item:"form_item_item___Zdnul",form_item_item_select:"form_item_item_select____5lDo",shareicon:"shareicon___Z_RCj",ApplyStyle:"ApplyStyle___Hyn8j"},N=t(48486),I="all___CqKTx",A="setting___v3_ot",S="setting_title___WxGAY",C="setting_content___XAWD6",F="setting_menu___oKuAW",P="menu_item___qbDG8",T="menu_item_active___kzN6I",R="setting_info___pqlf5",E=t(37205),L=t.n(E),D="all___dBmCY",B="title___IeVqW",V="content___zp_KL",z="form_item___hXuXB",M="form_item_basic___K4a8V",O="form_item_time___h8rdI",Y="form_item_model____Mn2H",H="form_item_item___CR0Q5",q="form_item_item_select___eeMCh",Q="textarea_father___XVeQz",G="textarea_length___Xdwl4",U="upload_button___zltZE",W="upload_button_file___vVqry",J="upload_text___pdO7Y",K="date_text___gvUlY",X="upload_download___KCtvw",$="checkbox_text___yn4Cf",ee="footer___t6QDc",ne="save_button___l7JJ7",te="radio_style___tWyOo",ie=t(59028),le=t(57930),se=t(24905),oe=t(95237),ae=t(43604),re=t(61998),ce=t(61186),de=t.n(ce),ue=t(44146),pe=t(20437),me=t(92723),_e=t(86468),he=t(21082),fe=t(93697),xe=t(37712),ve=["competitions","dispatch"],ge=j.Z.TextArea,ye=(0,_.connect)((function(e){return{competitions:e.competitions}}))((function(e){var n,t,i,s=e.competitions,a=e.dispatch,c=p()(e,ve),u=f.Z.useForm(),g=d()(u,1)[0],w=(0,m.useState)({}),Z=d()(w,2),k=Z[0],N=Z[1],I=(0,m.useState)(0),A=d()(I,2),S=A[0],C=A[1],F=(0,m.useState)(),P=d()(F,2),T=P[0],R=P[1],E=(0,m.useState)(),ce=d()(E,2),ye=ce[0],je=ce[1],be=(0,m.useState)(!1),we=d()(be,2),Ze=we[0],ke=we[1],Ne=(0,m.useState)(!1),Ie=d()(Ne,2),Ae=Ie[0],Se=Ie[1],Ce=(0,m.useState)(!1),Fe=d()(Ce,2),Pe=Fe[0],Te=Fe[1],Re=(0,m.useState)(!1),Ee=d()(Re,2),Le=Ee[0],De=Ee[1],Be=(0,m.useState)(!1),Ve=d()(Be,2),ze=Ve[0],Me=Ve[1],Oe=(0,m.useState)([]),Ye=d()(Oe,2),He=Ye[0],qe=Ye[1],Qe=(0,m.useState)([]),Ge=d()(Qe,2),Ue=Ge[0],We=Ge[1],Je=(0,m.useState)(0),Ke=d()(Je,2),Xe=Ke[0],$e=Ke[1],en=(0,m.useState)(!1),nn=d()(en,2),tn=nn[0],ln=nn[1],sn=(0,m.useState)([]),on=d()(sn,2),an=on[0],rn=on[1],cn=(0,m.useState)(!1),dn=d()(cn,2),un=(dn[0],dn[1]),pn=s.Header,mn=(0,_.useParams)(),_n=function(){var e=r()(o()().mark((function e(n){var t,i,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.personal||(n.is_student||n.is_teacher||n.is_professional)){e.next=3;break}return v.ZP.error("请选择至少一种身份可以报名参赛"),e.abrupt("return");case 3:i=[],(null==T?void 0:T.length)>0&&(null==T||T.map((function(e){var n;i.push((null==e||null===(n=e.response)||void 0===n?void 0:n.id)||(null==e?void 0:e.id))}))),g.setFieldValue("attachment_ids",i),s=[],(null==ye?void 0:ye.length)>0&&(null==ye||ye.map((function(e){var n;s.push((null==e||null===(n=e.response)||void 0===n?void 0:n.id)||(null==e?void 0:e.id))}))),g.setFieldValue("file_id",s),g.setFieldValue("is_authentication",Ze),g.setFieldValue("need_phone",Ae),g.setFieldValue("need_mail",Pe),g.setFieldValue("competition_staffs",[{minimum:g.getFieldValue("student_min"),maximum:g.getFieldValue("student_max"),category:"student",mutiple_limited:Le,check_phone:!1},{minimum:g.getFieldValue("teacher_min"),maximum:g.getFieldValue("teacher_max"),category:"teacher",mutiple_limited:ze,check_phone:!1}]),(null===(t=k.identifier)||void 0===t?void 0:t.length)<3?v.ZP.error("比赛网址最少要输入三个字符"):(0,ue.IN)({id:Xe,identifier:g.getFieldValue("identifier")}).then(function(){var e=r()(o()().mark((function e(n){var t,i,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!=(null==n?void 0:n.status)&&g.setFieldValue("identifier",""),0!=(null==n?void 0:n.status)){e.next=6;break}return e.next=4,(0,ue.$M)(l()(l()({id:null==c?void 0:c.competitionId},g.getFieldsValue()),{},{enroll_start_time:g.getFieldValue("enroll_start_time")?de()(g.getFieldValue("enroll_start_time")).format("YYYY-MM-DD HH:mm"):"",enroll_end_time:g.getFieldValue("enroll_end_time")?de()(g.getFieldValue("enroll_end_time")).format("YYYY-MM-DD HH:mm"):"",start_time:g.getFieldValue("start_time")?de()(g.getFieldValue("start_time")).format("YYYY-MM-DD HH:mm"):"",end_time:g.getFieldValue("end_time")?de()(g.getFieldValue("end_time")).format("YYYY-MM-DD HH:mm"):""}));case 4:if(0==(null==(t=e.sent)?void 0:t.status)){if(v.ZP.success("更改成功"),(null==t?void 0:t.failed.length)>0){for(s in ln(!0),i=[],null==t?void 0:t.failed)i.push({phone:null==t?void 0:t.failed[s][0],name:null==t?void 0:t.failed[s][1],email:null==t?void 0:t.failed[s][2]});rn(i)}(null==mn?void 0:mn.identifier)==g.getFieldValue("identifier")?(a({type:"competitions/getStaff",payload:{identifier:null==c?void 0:c.competitionId}}),a({type:"competitions/getHeader",payload:{identifier:null==c?void 0:c.competitionId}})):(null==mn?void 0:mn.identifier)!=g.getFieldValue("identifier")&&_.history.push("/competitions/detail/".concat(g.getFieldValue("identifier"),"?type=4"))}case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}());case 14:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){(0,ue.o3)(null==c?void 0:c.competitionId).then((function(e){var n,t,i,s,o,a,r,d,u,p,m,_,h,f,x,v,y,j,b,w,Z;($e(null==e?void 0:e.id),g.setFieldValue("is_student",null==e?void 0:e.is_student),g.setFieldValue("is_teacher",null==e?void 0:e.is_teacher),g.setFieldValue("is_professional",null==e?void 0:e.is_professional),g.setFieldValue("name",null==e?void 0:e.name),g.setFieldValue("sub_title",null==e?void 0:e.sub_title),g.setFieldValue("description",null==e?void 0:e.description),g.setFieldValue("identifier",null==e?void 0:e.identifier),g.setFieldValue("bonus",null==e?void 0:e.bonus),g.setFieldValue("awards_count",null==e?void 0:e.awards_count),g.setFieldValue("need_apply_name",null==e||null===(n=e.need_apply_info)||void 0===n?void 0:n.need_apply_name),g.setFieldValue("need_apply_student_id",null==e||null===(t=e.need_apply_info)||void 0===t?void 0:t.need_apply_student_id),g.setFieldValue("need_apply_sex",null==e||null===(i=e.need_apply_info)||void 0===i?void 0:i.need_apply_sex),g.setFieldValue("need_apply_phone",null==e||null===(s=e.need_apply_info)||void 0===s?void 0:s.need_apply_phone),g.setFieldValue("need_apply_grade",null==e||null===(o=e.need_apply_info)||void 0===o?void 0:o.need_apply_grade),g.setFieldValue("need_apply_teacher_name",null==e||null===(a=e.need_apply_info)||void 0===a?void 0:a.need_apply_teacher_name),g.setFieldValue("need_apply_school",null==e||null===(r=e.need_apply_info)||void 0===r?void 0:r.need_apply_school),g.setFieldValue("need_apply_teacher_phone",null==e||null===(d=e.need_apply_info)||void 0===d?void 0:d.need_apply_teacher_phone),null==e||null===(u=e.attachments)||void 0===u||u.map((function(e){e.name=e.title})),g.setFieldValue("attachment_ids",null==e?void 0:e.attachments),R(null==e?void 0:e.attachments),g.setFieldValue("enroll_start_time",null!=e&&e.enroll_start_time?de()(null==e?void 0:e.enroll_start_time):""),g.setFieldValue("enroll_end_time",null!=e&&e.enroll_end_time?de()(null==e?void 0:e.enroll_end_time):""),g.setFieldValue("start_time",null!=e&&e.start_time?de()(null==e?void 0:e.start_time):""),g.setFieldValue("end_time",null!=e&&e.end_time?de()(null==e?void 0:e.end_time):""),g.setFieldValue("rule",null==e?void 0:e.rule),null!=e&&e.file)&&(e.file.name=null==e||null===(h=e.file)||void 0===h?void 0:h.title);(g.setFieldValue("file_id",null==e?void 0:e.file),null!=e&&e.file&&je([null==e?void 0:e.file]),g.setFieldValue("region_rule",null==e?void 0:e.region_rule),g.setFieldValue("is_authentication",null==e?void 0:e.is_authentication),g.setFieldValue("province_rule",null==e?void 0:e.province_rule),g.setFieldValue("region_provinces",null==e?void 0:e.region_provinces),(0,pe.GY)({display_aliases:!0,provinces:null==e?void 0:e.region_provinces}).then((function(n){qe(null==n?void 0:n.schools),g.setFieldValue("region_schools",null==e?void 0:e.region_school_array)})),ke(null==e?void 0:e.is_authentication),g.setFieldValue("need_phone",null==e?void 0:e.need_phone),Se(null==e?void 0:e.need_phone),g.setFieldValue("need_mail",null==e?void 0:e.need_mail),Te(null==e?void 0:e.need_mail),g.setFieldValue("personal",null==e?void 0:e.personal),null!=e&&e.member_staff)?(g.setFieldValue("student_min",null==e||null===(f=e.member_staff)||void 0===f?void 0:f.minimum),g.setFieldValue("student_max",null==e||null===(x=e.member_staff)||void 0===x?void 0:x.maximum),g.setFieldValue("student_checkbox",null==e||null===(v=e.member_staff)||void 0===v?void 0:v.mutiple_limited)):(g.setFieldValue("student_min",0),g.setFieldValue("student_max",1));null!=e&&e.teacher_staff?(g.setFieldValue("teacher_min",null==e||null===(y=e.teacher_staff)||void 0===y?void 0:y.minimum),g.setFieldValue("teacher_max",null==e||null===(j=e.teacher_staff)||void 0===j?void 0:j.maximum),g.setFieldValue("teacher_checkbox",null==e||null===(b=e.teacher_staff)||void 0===b?void 0:b.mutiple_limited)):(g.setFieldValue("teacher_min",0),g.setFieldValue("teacher_max",0));3===(null==e?void 0:e.mode)?(Me(!0),De(!0)):(Me(null==e||null===(w=e.teacher_staff)||void 0===w?void 0:w.mutiple_limited),De(null==e||null===(Z=e.member_staff)||void 0===Z?void 0:Z.mutiple_limited));De(null==e||null===(p=e.member_staff)||void 0===p?void 0:p.mutiple_limited),Me(null==e||null===(m=e.teacher_staff)||void 0===m?void 0:m.mutiple_limited),N(l()({},g.getFieldsValue())),C(null===(_=g.getFieldValue("description"))||void 0===_?void 0:_.length),null==c||c.loadingFunction(!1)})),(0,pe.ol)({}).then((function(e){var n;We(L()(null==e||null===(n=e.data)||void 0===n?void 0:n.map((function(e){return{label:e,value:e}}))))})),null!=c&&c.formName&&g.scrollToField(null==c?void 0:c.formName)}),[]);var hn=function(e){(0,pe.GY)({display_aliases:!0,provinces:e}).then((function(e){qe(null==e?void 0:e.schools)}))},fn=function(e,n){"报名开始时间"==n?g.getFieldValue("enroll_end_time")&&e>=g.getFieldValue("enroll_end_time")&&(v.ZP.error("报名开始时间必须小于报名结束时间"),g.setFieldValue("enroll_start_time",""),g.setFieldValue("enroll_end_time","")):"报名结束时间"==n?g.getFieldValue("enroll_start_time")?e<=g.getFieldValue("enroll_start_time")&&(v.ZP.error("报名结束时间必须大于报名开始时间"),g.setFieldValue("enroll_end_time","")):(v.ZP.error("报名结束时间必须大于报名开始时间"),g.setFieldValue("enroll_end_time","")):"竞赛开始时间"==n?g.getFieldValue("end_time")&&e>=g.getFieldValue("end_time")&&(v.ZP.error("竞赛开始时间必须小于竞赛结束时间"),g.setFieldValue("start_time",""),g.setFieldValue("end_time","")):"竞赛结束时间"==n&&(g.getFieldValue("start_time")?e<=g.getFieldValue("start_time")&&(v.ZP.error("竞赛结束时间必须大于竞赛开始时间"),g.setFieldValue("end_time","")):(v.ZP.error("竞赛结束时间必须大于竞赛开始时间"),g.setFieldValue("end_time","")))};return(0,xe.jsxs)("div",{className:D,children:[(0,xe.jsxs)(f.Z,{form:g,labelCol:{flex:"120px"},scrollToFirstError:!0,colon:!1,initialValues:{region_rule:0,student_min:0,student_max:1,teacher_min:0,teacher_max:0,is_student:!0,is_teacher:!0,is_professional:!0},onFinish:_n,onFinishFailed:function(){var e=r()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:g.scrollToField(null==n||null===(t=n.errorFields)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.name,{behavior:"auto",block:"center"});case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),onChange:function(){var e,n,t=null==g||null===(e=g.getFieldValue("sponsor_user_name"))||void 0===e?void 0:e.replaceAll(" ","");g.setFieldValue("sponsor_user_name",t);var i=g.getFieldsValue();C(null===(n=i.description)||void 0===n?void 0:n.length),N(l()({},i))},children:[(0,xe.jsx)("div",{className:B,children:"基本信息"}),(0,xe.jsxs)("div",{className:V,children:[(0,xe.jsx)(f.Z.Item,{style:{marginTop:"-15px"},className:z,label:"竞赛主标题",colon:!1,name:"name",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,xe.jsx)(j.Z,{className:H,placeholder:"请输入竞赛主标题",maxLength:60,suffix:(0,xe.jsxs)("span",{children:[(null===(n=k.name)||void 0===n?void 0:n.length)||0,(0,xe.jsx)("span",{style:{color:"#c5c5c5"},children:"/60"})]})})}),(0,xe.jsx)(f.Z.Item,{className:M,label:"竞赛副标题",colon:!1,name:"sub_title",children:(0,xe.jsx)(j.Z,{className:H,placeholder:"请输入竞赛副标题",maxLength:60,suffix:(0,xe.jsxs)("span",{children:[(null===(t=k.sub_title)||void 0===t?void 0:t.length)||0,(0,xe.jsx)("span",{style:{color:"#c5c5c5"},children:"/60"})]})})}),(0,xe.jsxs)("div",{className:Q,children:[(0,xe.jsx)(f.Z.Item,{className:z,label:"竞赛简介",colon:!1,name:"description",children:(0,xe.jsx)(ge,{maxLength:200,placeholder:"请输入简介",rows:5})}),(0,xe.jsxs)("span",{className:G,children:[S||0,(0,xe.jsx)("span",{style:{color:"#c5c5c5"},children:"/200"})]})]}),(0,xe.jsx)(f.Z.Item,{className:M,label:(0,xe.jsxs)("div",{children:[(0,xe.jsx)("span",{style:{color:"#ff4d4f",marginRight:"4px",fontFamily:"SimSun, sans-serif"},children:"*"}),"比赛网址"]}),colon:!1,children:(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsxs)("div",{style:{width:"40%"},children:[window.location.origin,"/competitions/detail/"]}),(0,xe.jsx)(y.Z,{placement:"topLeft",color:"#fb3226",overlayStyle:{maxWidth:"350px",width:"350px"},title:"如果修改竞赛网址,会造成参赛人员无法再次通过旧网址进入",children:(0,xe.jsx)(f.Z.Item,{style:{width:"calc(68% + 16px)",marginLeft:"-16px"},label:(0,xe.jsx)("div",{style:{width:"0px"}}),colon:!1,name:"identifier",rules:[{required:!0,message:"必填项:不能为空"},{pattern:new RegExp(/^[A-Za-z0-9\-_]*$/,""),message:"必须是数字、字母、下划线或者横线"}],children:(0,xe.jsx)(j.Z,{className:H,placeholder:"请输入网址",maxLength:20,suffix:(0,xe.jsxs)("span",{children:[(null===(i=k.identifier)||void 0===i?void 0:i.length)||0,(0,xe.jsx)("span",{style:{color:"#c5c5c5"},children:"/20"})]}),onBlur:function(){un(!1),(0,ue.IN)({id:Xe,identifier:g.getFieldValue("identifier")}).then((function(e){0!=(null==e?void 0:e.status)&&g.setFieldValue("identifier","")}))},onChange:function(){un(!0)},disabled:"ended"==(null==pn?void 0:pn.competition_status)})})})]})}),(0,xe.jsx)(f.Z.Item,{className:M,style:{marginTop:"-12px"},label:"奖金金额",colon:!1,name:"bonus",rules:[{pattern:new RegExp(/^\d{0,8}$/,"g"),message:"必须是8位数以内的正整数"}],children:(0,xe.jsx)(j.Z,{autoComplete:"off",className:H,placeholder:"如果需要设置奖金,请与平台客服人员对接",suffix:(0,xe.jsx)("span",{style:{color:"#c5c5c5"},children:"元"})})}),(0,xe.jsx)(f.Z.Item,{className:M,label:"奖项数量",colon:!1,name:"awards_count",rules:[{pattern:new RegExp(/^\d{0,9}$/,"g"),message:"必须是正整数"}],children:(0,xe.jsx)(j.Z,{autoComplete:"off",className:H,placeholder:"请输入奖项数量",suffix:(0,xe.jsx)("span",{style:{color:"#c5c5c5"},children:"个"})})}),(0,xe.jsx)(f.Z.Item,{name:"attachment_ids",label:"举办资质文档",colon:!1,getValueFromEvent:function(e){return Array.isArray(e)?e:e&&e.fileList},children:(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsx)(ie.Z,{action:me.Z.API_SERVER+"/api/attachments.json",onChange:function(e){R(null==e?void 0:e.fileList)},onRemove:function(e){console.log(e),R([])},fileList:T,withCredentials:!0,children:(0,xe.jsx)("div",{className:U,children:"上传文档"})}),(0,xe.jsx)("div",{className:J,children:"如果涉及到竞赛奖金相关事项,请上传相关资质的证明文件,有便于竞赛快速审核通过"})]})}),(0,xe.jsx)(f.Z.Item,{className:M,label:"报名时间",colon:!1,children:(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsx)(f.Z.Item,{name:"enroll_start_time",children:(0,xe.jsx)(le.default,{style:{height:"40px"},showTime:!0,format:"YYYY-MM-DD HH:mm",onChange:function(e){fn(e,"报名开始时间")}})}),(0,xe.jsx)("span",{style:{margin:"0 10px"},children:"至"}),(0,xe.jsx)(f.Z.Item,{name:"enroll_end_time",children:(0,xe.jsx)(le.default,{style:{height:"40px"},showTime:!0,format:"YYYY-MM-DD HH:mm",onChange:function(e){fn(e,"报名结束时间")}})}),(0,xe.jsx)("div",{className:K,children:"如果不填报名时间,则竞赛发布后将不展示报名入口"})]})}),(0,xe.jsx)(f.Z.Item,{className:O,label:(0,xe.jsxs)("div",{children:[(0,xe.jsx)("span",{style:{color:"#ff4d4f",marginRight:"4px",fontFamily:"SimSun, sans-serif"},children:"*"}),"竞赛时间"]}),colon:!1,children:(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsx)(f.Z.Item,{name:"start_time",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,xe.jsx)(le.default,{style:{height:"40px"},showTime:!0,format:"YYYY-MM-DD HH:mm",onChange:function(e){fn(e,"竞赛开始时间")},disabled:"progressing"==(null==pn?void 0:pn.competition_status)||"apply"===(null==pn?void 0:pn.competition_status)||"ended"==(null==pn?void 0:pn.competition_status)})}),(0,xe.jsx)("span",{style:{margin:"0 10px"},children:"至"}),(0,xe.jsx)(f.Z.Item,{name:"end_time",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,xe.jsx)(le.default,{style:{height:"40px"},showTime:!0,format:"YYYY-MM-DD HH:mm",onChange:function(e){fn(e,"竞赛结束时间")},disabled:"ended"==(null==pn?void 0:pn.competition_status)||"apply"===(null==pn?void 0:pn.competition_status)})})]})})]}),(0,xe.jsx)("div",{className:B,children:"开放范围"}),(0,xe.jsxs)("div",{className:V,children:[(0,xe.jsx)(f.Z.Item,{className:te,label:"参赛规则",name:"rule",colon:!1,children:(0,xe.jsxs)(b.ZP.Group,{children:[(0,xe.jsx)(b.ZP,{value:0,style:{width:"120px"},children:"按范围参加"}),(0,xe.jsx)(b.ZP,{value:1,style:{width:"120px"},children:"自定用户参加"})]})}),1==g.getFieldValue("rule")&&(0,xe.jsx)(f.Z.Item,{name:"file_id",label:" ",colon:!1,getValueFromEvent:function(e){return Array.isArray(e)?e:e&&e.fileList},children:(0,xe.jsxs)("div",{style:{marginLeft:"0px",display:"flex"},children:[(0,xe.jsx)(ie.Z,{accept:".xls, .xlsx",maxCount:1,action:me.Z.API_SERVER+"/api/attachments.json",onChange:function(e){je(null==e?void 0:e.fileList)},onRemove:function(e){console.log(e),je([])},fileList:ye,withCredentials:!0,children:(0,xe.jsx)("div",{className:W,children:"选择文件"})}),(0,xe.jsxs)("div",{className:X,style:{marginLeft:30},onClick:function(){(0,he.Nd)(null,me.Z.API_SERVER+"/api/competitions/download_template")},children:["下载模版",(0,xe.jsx)("i",{className:"iconfont icon-xiazai5 font14 ml5"})]})]})}),0==g.getFieldValue("rule")&&(0,xe.jsx)(f.Z.Item,{label:"选择省份",name:"province_rule",className:te,colon:!1,style:{marginTop:"-3px"},children:(0,xe.jsxs)(b.ZP.Group,{onChange:function(e){var n;1==(null==e||null===(n=e.target)||void 0===n?void 0:n.value)&&g.setFieldValue("region_schools",[]),hn([]),g.setFieldValue("region_provinces",[])},children:[(0,xe.jsx)(b.ZP,{value:0,style:{width:"120px"},children:"全部省份"}),(0,xe.jsx)(b.ZP,{value:1,style:{width:"120px"},children:"部分省份"})]})}),1==g.getFieldValue("province_rule")&&0==g.getFieldValue("rule")&&(0,xe.jsx)(f.Z.Item,{className:z,style:{marginTop:"-3px"},label:" ",colon:!1,name:"region_provinces",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,xe.jsx)(h.default,{mode:"multiple",className:q,options:Ue,onChange:function(e){hn(e)},filterOption:function(e,n){var t;return(null!==(t=null==n?void 0:n.value)&&void 0!==t?t:"").toLowerCase().includes(e.toLowerCase())}})}),0==g.getFieldValue("rule")&&(0,xe.jsx)(f.Z.Item,{label:"选择院校",name:"region_rule",className:te,colon:!1,style:{marginTop:"-3px"},children:(0,xe.jsxs)(b.ZP.Group,{children:[(0,xe.jsx)(b.ZP,{value:0,style:{width:"120px"},children:"全部院校"}),(0,xe.jsx)(b.ZP,{value:1,style:{width:"120px"},children:"部分院校"})]})}),1==g.getFieldValue("region_rule")&&0==g.getFieldValue("rule")&&(0,xe.jsx)(f.Z.Item,{className:z,style:{marginTop:"-3px"},label:" ",colon:!1,name:"region_schools",children:(0,xe.jsx)(h.default,{mode:"multiple",className:q,options:He,fieldNames:{label:"name",value:"id"},filterOption:function(e,n){var t;return(null!==(t=null==n?void 0:n.name)&&void 0!==t?t:"").toLowerCase().includes(e.toLowerCase())}})}),(0,xe.jsx)("div",{children:1==g.getFieldValue("region_rule")&&0==g.getFieldValue("rule")&&(0,fe.Ny)()&&(0,xe.jsx)(f.Z.Item,{name:"file_id",label:" ",colon:!1,getValueFromEvent:function(e){return Array.isArray(e)?e:e&&e.fileList},children:(0,xe.jsxs)("div",{style:{marginLeft:"0px",display:"flex"},children:[(0,xe.jsx)(ie.Z,{accept:".xls, .xlsx",maxCount:1,action:me.Z.API_SERVER+"/api/attachments.json",onChange:function(e){je(null==e?void 0:e.fileList)},onRemove:function(e){console.log(e),je([])},fileList:ye,withCredentials:!0,children:(0,xe.jsx)("div",{className:W,children:"选择文件"})}),(0,xe.jsxs)("div",{className:X,style:{marginLeft:30},onClick:function(){(0,he.Nd)(null,me.Z.API_SERVER+"/api/competitions/download_school_template.xlsx")},children:["下载模版",(0,xe.jsx)("i",{className:"iconfont icon-xiazai5 font14 ml5"})]})]})})})]}),(0,xe.jsx)("div",{className:B,children:"报名者条件"}),(0,xe.jsxs)("div",{className:V,children:[(0,xe.jsx)(f.Z.Item,{label:"报名条件",name:"is_authentication",className:te,style:{marginTop:"-10px"},colon:!1,children:(0,xe.jsxs)(se.Z,{checked:Ze,onChange:function(e){var n;return ke(null==e||null===(n=e.target)||void 0===n?void 0:n.checked)},children:["实名认证",(0,xe.jsx)("span",{className:$,children:"(参赛人员账号必须实名认证)"})]})}),(0,xe.jsx)(f.Z.Item,{label:" ",name:"need_phone",style:{marginTop:"-10px"},colon:!1,children:(0,xe.jsxs)(se.Z,{checked:Ae,onChange:function(e){var n;return Se(null==e||null===(n=e.target)||void 0===n?void 0:n.checked)},children:["绑定手机",(0,xe.jsx)("span",{className:$,children:"(参赛人员账号必须绑定手机号)"})]})}),(0,xe.jsx)(f.Z.Item,{label:" ",name:"need_mail",style:{marginTop:"-10px"},colon:!1,children:(0,xe.jsxs)(se.Z,{checked:Pe,onChange:function(e){var n;return Te(null==e||null===(n=e.target)||void 0===n?void 0:n.checked)},children:["绑定邮箱",(0,xe.jsx)("span",{className:$,children:"(参赛人员账号必须绑定邮箱)"})]})}),(0,xe.jsx)("div",{style:{display:"flex",marginBottom:20},children:(0,xe.jsxs)("div",{style:{paddingLeft:50,textAlign:"end"},children:["报名信息 ",(0,xe.jsx)("span",{style:{marginLeft:0},className:$,children:"(参赛人员报名时需填写的信息)"})]})}),(0,xe.jsxs)(f.Z.Item,{label:" ",children:[(0,xe.jsxs)(oe.Z,{wrap:!1,gutter:10,children:[(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"need_apply_name",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,xe.jsx)(se.Z,{children:"姓名"})})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"need_apply_student_id",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,xe.jsx)(se.Z,{children:"学号"})})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"need_apply_sex",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,xe.jsx)(se.Z,{children:"性别"})})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"need_apply_phone",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,xe.jsx)(se.Z,{children:"电话"})})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"need_apply_grade",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,xe.jsx)(se.Z,{children:"年级"})})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"need_apply_teacher_name",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,xe.jsx)(se.Z,{children:"指导老师姓名"})})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"need_apply_teacher_phone",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,xe.jsx)(se.Z,{children:"指导老师联系方式"})})})]}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"need_apply_school",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,xe.jsxs)(se.Z,{children:["学校/单位",(0,xe.jsx)(y.Z,{title:"开启后,参赛人员填写报名信息时,可选的学校/单 位选项与“开放范围-选择院校”所列出的院校一致。",children:(0,xe.jsx)("i",{className:"iconfont icon-jinggao-3",style:{color:"#9096A3",marginLeft:10}})}),(0,xe.jsx)("span",{style:{color:"#9096A3"},children:"(与“开放范围”包含院校一致)"})]})})})]})]}),(0,xe.jsx)("div",{className:B,children:"参赛模式"}),(0,xe.jsxs)("div",{className:V,children:[(0,xe.jsx)(f.Z.Item,{label:" ",name:"personal",colon:!1,children:(0,xe.jsxs)(b.ZP.Group,{disabled:"progressing"==(null==pn?void 0:pn.competition_status)||"ended"==(null==pn?void 0:pn.competition_status),children:[(0,xe.jsx)(b.ZP,{value:!1,style:{width:"120px"},children:"战队赛"}),(0,xe.jsx)(b.ZP,{value:!0,style:{width:"120px"},children:"个人赛"})]})}),0==g.getFieldValue("personal")&&(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(f.Z.Item,{className:Y,style:{marginTop:"-2px"},label:" ",colon:!1,children:(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsx)("span",{style:{margin:"0 10px 0 -50px"},children:"学生数"}),(0,xe.jsx)(f.Z.Item,{name:"student_min",rules:[{pattern:new RegExp(/^[0-9]+([.]{1}[0-9]+){0,1}$/,"g"),message:"必须是数值"}],children:(0,xe.jsx)(j.Z,{style:{width:"100px"}})}),(0,xe.jsx)("span",{style:{margin:"0 10px"},children:"至"}),(0,xe.jsx)(f.Z.Item,{name:"student_max",rules:[{pattern:new RegExp(/^[0-9]+([.]{1}[0-9]+){0,1}$/,"g"),message:"必须是数值"}],children:(0,xe.jsx)(j.Z,{style:{width:"100px"}})}),(0,xe.jsx)("span",{style:{margin:"0 10px"},children:"人"}),(0,xe.jsx)(f.Z.Item,{name:"student_checkbox",children:(0,xe.jsx)(se.Z,{style:{marginLeft:"20px"},disabled:3===(null==pn?void 0:pn.mode),checked:Le,onChange:function(e){var n;return De(null==e||null===(n=e.target)||void 0===n?void 0:n.checked)},children:(0,xe.jsx)("span",{children:"不可存在多个战队中"})})})]})}),(0,xe.jsx)(f.Z.Item,{className:Y,style:{marginTop:"-12px"},label:" ",name:"competition_staffs",colon:!1,children:(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsx)("span",{style:{margin:"0 10px 0 -50px"},children:"教师数"}),(0,xe.jsx)(f.Z.Item,{name:"teacher_min",rules:[{pattern:new RegExp(/^[0-9]+([.]{1}[0-9]+){0,1}$/,"g"),message:"必须是数值"}],children:(0,xe.jsx)(j.Z,{style:{width:"100px"}})}),(0,xe.jsx)("span",{style:{margin:"0 10px"},children:"至"}),(0,xe.jsx)(f.Z.Item,{name:"teacher_max",rules:[{pattern:new RegExp(/^[0-9]+([.]{1}[0-9]+){0,1}$/,"g"),message:"必须是数值"}],children:(0,xe.jsx)(j.Z,{style:{width:"100px"}})}),(0,xe.jsx)("span",{style:{margin:"0 10px"},children:"人"}),(0,xe.jsx)(f.Z.Item,{name:"teacher_checkbox",children:(0,xe.jsx)(se.Z,{style:{marginLeft:"20px"},disabled:3===(null==pn?void 0:pn.mode),checked:ze,onChange:function(e){var n;return Me(null==e||null===(n=e.target)||void 0===n?void 0:n.checked)},children:(0,xe.jsx)("span",{children:"不可存在多个战队中"})})})]})})]}),1==g.getFieldValue("personal")&&(0,xe.jsx)(f.Z.Item,{label:" ",children:(0,xe.jsxs)(oe.Z,{wrap:!1,gutter:10,children:[(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"is_student",style:{marginTop:"-12px"},valuePropName:"checked",normalize:function(e,n,t){return e||t.is_teacher||t.is_professional?e:(v.ZP.warning("请选择至少一种身份可以报名参赛"),!(e||t.is_teacher||t.is_professional))},children:(0,xe.jsx)(se.Z,{children:"学生身份参赛"})})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"is_teacher",style:{marginTop:"-12px"},valuePropName:"checked",normalize:function(e,n,t){return e||t.is_student||t.is_professional?e:(v.ZP.warning("请选择至少一种身份可以报名参赛"),!(e||t.is_student||t.is_professional))},children:(0,xe.jsx)(se.Z,{children:"教师身份参赛"})})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"is_professional",style:{marginTop:"-12px"},valuePropName:"checked",normalize:function(e,n,t){return e||t.is_teacher||t.is_student?e:(v.ZP.warning("请选择至少一种身份可以报名参赛"),!(e||t.is_teacher||t.is_student))},children:(0,xe.jsx)(se.Z,{children:"专业人士身份参赛"})})})]})})]}),(0,xe.jsx)("div",{className:ee,children:(0,xe.jsx)(_e.Z,{className:ne,htmlType:"submit",onClick:r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),children:"保存更改"})})]}),(0,xe.jsx)(x.Z,{centered:!0,title:"以下数据导入失败",open:tn,okText:"确定",cancelText:"取消",onOk:function(){ln(!1)},onCancel:function(){ln(!1)},children:(0,xe.jsx)(re.Z,{bordered:!0,scroll:{y:400},columns:1==g.getFieldValue("rule")?[{title:"手机号",dataIndex:"phone"},{title:"姓名",dataIndex:"name"},{title:"邮箱",dataIndex:"email"}]:[{title:"ID",dataIndex:"phone"},{title:"学校/单位",dataIndex:"name"}],dataSource:an,pagination:!1,rowKey:function(e){return e.name}})})]})})),je={flex_box_center:"flex_box_center___TUtVx",flex_space_between:"flex_space_between___skxVP",flex_box_vertical_center:"flex_box_vertical_center____enb6",flex_box_center_end:"flex_box_center_end___lO_Gq",flex_box_column:"flex_box_column___QrhZ_",all:"all___GiQqZ",title:"title___YtceA",content:"content___Es9RO",content_icon:"content_icon___SNFzF",content_info:"content_info___rSAWs",content_title:"content_title___Hkmmk",content_size:"content_size___jLmmn",content_img:"content_img___NRn9i",content_img2:"content_img2___D23TM"},be=t(78673),we="data:image/png;base64,iVBORw0KGgoAAAANSUhEUg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zltDbhovohsi88AsDkqTzXUOryujR5kAVoZFSfTDFIA/MCQMyVccqnt4HTn9jk8RdnnB6lJT9INoDIzTyxsywnSdw6tk9BwNrvAbwmthOoquL6wDN2jwTzpadZaRol3BLzT5nmIbuW1iz8TngXdrzQPxSlY2Q9ZZZJwL3gl6QdFqFdsD/PUtNnTWGOVE+1MAZcNmFahwduyelDv7pr9Xupnwbe65aaVshi+jM2xivoKMAR9g3tBJ0XWcJKEvTI/cwOFbVGdxKVvv8kvMKctAL8phDGvcEhFTUGdPKHJTfB6YRBjnMQYfAr/L5O84EyIQAAAAAElFTkSuQmCC",Ze=t(18030),ke=["competitions","globalSetting","loading","dispatch","user"],Ne=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n=e.competitions,t=(e.globalSetting,e.loading,e.dispatch),i=(e.user,p()(e,ke)),s=(0,m.useState)(""),a=d()(s,2),c=a[0],u=a[1],_=(0,m.useState)(""),h=d()(_,2),g=h[0],y=h[1],b=f.Z.useForm(),w=d()(b,1)[0],k=n.Header,N=(0,m.useState)(!0),I=d()(N,2),A=I[0],S=I[1];(0,m.useEffect)((function(){C()}),[]),(0,m.useEffect)((function(){S(null==k?void 0:k.is_show_picture),w.setFieldValue("apply_success_tips",(null==k?void 0:k.apply_success_tips)||"参赛者可扫码加入大赛官方交流群,获取最新竞赛通知")}),[k]);var C=function(){(0,ue.Mn)(null==i?void 0:i.competitionId).then((function(e){var n,t;0==(null==e?void 0:e.status)?(u(null==e||null===(n=e.data)||void 0===n?void 0:n.competition_image),y(null==e||null===(t=e.data)||void 0===t?void 0:t.qr_code_image),null==i||i.loadingFunction(!1)):v.ZP.error(null==e?void 0:e.message)}))},F=function(e,n){(0,ue.o3)(null==i?void 0:i.competitionId).then((function(l){var s=new FormData;s.append("file",null==e?void 0:e.file),s.append("source_id",null==l?void 0:l.id),s.append("source_type",n),(0,Ze.ZP)("/api/competitions/set_attachments.json",{method:"post",body:s},!0).then((function(e){"success"==(null==e?void 0:e.message)?(v.ZP.success("上传成功"),C(),t({type:"competitions/getStaff",payload:{identifier:null==i?void 0:i.competitionId}}),t({type:"competitions/getHeader",payload:{identifier:null==i?void 0:i.competitionId}})):v.ZP.error(null==e?void 0:e.message)}))}))};function P(e){return T.apply(this,arguments)}function T(){return(T=r()(o()().mark((function e(n){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(k.identifier,"/update_picture_settings.json"),{method:"post",body:n});case 2:0===(null==(i=e.sent)?void 0:i.status)&&(v.ZP.info("更新成功"),t({type:"competitions/getHeader",payload:{identifier:k.identifier}}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,xe.jsxs)("div",{className:je.all,children:[(0,xe.jsx)("div",{className:je.title,children:"图片设置"}),(0,xe.jsxs)("div",{children:[(0,xe.jsx)("div",{style:{marginTop:48,marginLeft:50,fontSize:14,color:"#232B40"},children:"竞赛海报"}),(0,xe.jsxs)("div",{className:je.content,children:[(0,xe.jsx)("img",{src:we,className:je.content_icon}),(0,xe.jsxs)("div",{className:je.content_info,children:[(0,xe.jsx)(ie.Z,{accept:"image/*",customRequest:function(e){return F(e,"Competition")},showUploadList:!1,children:(0,xe.jsx)("div",{className:je.content_title,children:"上传竞赛封面图"})}),(0,xe.jsx)("div",{className:je.content_size,children:"图片尺寸:792 x 340"})]}),(0,xe.jsx)("img",{src:c,className:je.content_img})]})]}),(0,xe.jsxs)("div",{children:[(0,xe.jsx)("div",{style:{marginTop:48,marginLeft:50,fontSize:14,color:"#232B40"},children:"报名成功弹窗"}),(0,xe.jsxs)("div",{className:je.content,style:{borderBottom:0},children:[(0,xe.jsx)("img",{src:we,className:je.content_icon}),(0,xe.jsxs)("div",{className:je.content_info,children:[(0,xe.jsx)(ie.Z,{accept:"image/*",customRequest:function(e){return F(e,"Competition_code")},showUploadList:!1,children:(0,xe.jsx)("div",{className:je.content_title,children:"上传交流群二维码"})}),(0,xe.jsx)("div",{className:je.content_size,children:"图片尺寸:160 x 160"})]}),(0,xe.jsx)("img",{src:g,className:je.content_img2})]}),(0,xe.jsxs)("div",{style:{marginLeft:50,marginRight:50},children:[(0,xe.jsxs)("div",{children:["展示二维码",(0,xe.jsx)(be.Z,{checked:A,onChange:function(e){var n;S(e),P({is_show_picture:e,apply_success_tips:null===(n=w.getFieldsValue())||void 0===n?void 0:n.apply_success_tips})},style:{marginLeft:10}})]}),(0,xe.jsx)(f.Z,{size:"large",form:w,onFinish:function(e){P(l()({is_show_picture:A},e))},style:{marginTop:20},children:(0,xe.jsx)(f.Z.Item,{label:(0,xe.jsxs)("div",{children:[(0,xe.jsx)("span",{style:{color:"#ff4d4f",marginRight:"4px",fontFamily:"SimSun, sans-serif"},children:"*"}),"报名成功提示"]}),colon:!1,children:(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsx)(f.Z.Item,{style:{width:"100%"},colon:!1,name:"apply_success_tips",children:(0,xe.jsx)(j.Z,{autoComplete:"off",style:{width:"100%"},className:je.form_item_item,placeholder:"请输入报名成功提示",onBlur:function(){return w.submit()}})}),(0,xe.jsx)(Z.ZP,{onClick:function(){var e;x.Z.confirm({title:!1,closable:!0,icon:null,footer:!1,content:(0,xe.jsxs)("div",{children:[(0,xe.jsxs)("div",{style:{fontSize:26,color:"#3d3d3d",textAlign:"center",marginBottom:20},children:[(0,xe.jsx)("i",{style:{fontSize:26,color:"#52C41A"},className:"iconfont icon-tongguo"})," 报名成功"]}),(0,xe.jsxs)("div",{style:{alignItems:"center",textAlign:"center"},children:[A&&(0,xe.jsx)("img",{style:{width:180,border:"1px solid #eeeeef",padding:10,marginBottom:20},src:me.Z.IMG_SERVER+(null==k?void 0:k.QR_code)}),(0,xe.jsx)("p",{style:{color:"#AAAAAA"},children:null===(e=w.getFieldsValue())||void 0===e?void 0:e.apply_success_tips})]})]})})},style:{marginLeft:10},type:"primary",children:"示例"})]})})})]})]})]})})),Ie="all___d1AWD",Ae="title___VIjuM",Se="add_people___qkPex",Ce="people_icon___lz5gl",Fe="content___a8dSX",Pe="content_info___ekLIa",Te="info_icon___kXP8P",Re="info_title___Hld67",Ee="info_content___kbIuT",Le="info_content_icon___uNxzs",De="info_content_title___IfIi8",Be="info_open___NzrUi",Ve="info_delete___rZhhO",ze="questions_info___n9Fnq",Me="form_item___oxzha",Oe="form_item_item___yPf7l",Ye="form_item_small___EkG9G",He="guanka_title___uUWQl",qe="nandu_1___qifbd",Qe="nandu_2___qVJU8",Ge="nandu_3___NRfLL",Ue="close_icon___f2hON",We="footer___UDiYB",Je="save_button___t7iMm",Ke="textone___TAI4F",Xe="deletecolor___ldQnR",$e="qselect___uuNp6",en="qinput___xHGmH",nn="modalclass___dPDG7",tn="popu___G8M92",ln="pingcesetting___zHJaT",sn=t(81327),on=t(94001),an=t(43428),rn=t(71418),cn=t(28103),dn=t(27092),un=t(54313),pn="drawer___HuOiD",mn="menu___JTt0c",_n="actived___zd6GY",hn="actived2___hNW2h",fn="subTag___rHkqz",xn="listItem___dr1wg",vn="info___bpBpK",gn="title___typIH",yn="titleLeft___b4niC",jn="filter___HBJIT",bn="description___Rqa6Q",wn="menuCourse____Msk3",Zn="button_right___T8tiB",kn=t(19421),Nn=t(30904),In=t(21515),An=t(21530),Sn=["classroomList","loading","dispatch","shixunsList"],Cn=(j.Z.Search,[{id:"type",name:"来源",children:[{name:"全部",id:"all",type:"type"},{name:"我的",id:"mine",type:"type"}]},{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"}]}]),Fn=(0,_.connect)((function(e){return{classroomList:e.classroomList,shixunsList:e.shixunsList,loading:e.loading.effects}}))((function(e){var n,t,i=e.classroomList,s=(e.loading,e.dispatch),a=e.shixunsList,c=p()(e,Sn),u=(0,m.useState)(l()({},(0,_.useParams)())),h=d()(u,2),f=h[0],x=(h[1],i.shixunLists),g=i.shixunAiRecommendLists,j=(0,m.useState)(""),w=d()(j,2),k=w[0],N=w[1],I=(0,m.useState)({}),A=d()(I,2),S=A[0],C=A[1],F=(0,m.useState)([]),P=d()(F,2),T=P[0],R=P[1],E=(0,m.useState)(!1),D=d()(E,2),B=D[0],V=D[1],z=[{name:"最新",id:"created_at"},{name:"最热",id:"myshixuns_count"}].filter((function(e){return!!e})),M=(0,m.useState)({page:1,type:"mine",diff:"",status:"published",order:"desc",not_open:!0,limit:20,sort:"myshixuns_count",no_jupyter:1,group_id:null}),O=d()(M,2),Y=O[0],H=O[1];(0,m.useEffect)((function(){q()}),[f.coursesId,Y]),(0,m.useEffect)((function(){"新增赛题"===i.actionTabs.key&&(N(""),H({page:1,type:"mine",diff:"",status:"published",order:"desc",not_open:!0,limit:20,sort:"myshixuns_count",no_jupyter:1,group_id:null})),s({type:"shixunsList/getMenus",payload:{}})}),[i.actionTabs.key]),(0,m.useEffect)((function(){(null!=x&&x.shixun_list||null!=g&&g.shixun_list)&&C("recommend"===Y.sort?g:x)}),[x,g]);var q=function(){var e=r()(o()().mark((function e(){var n,t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(V(!0),n=l()({},Y),"recommend"===Y.sort&&(n.sort="myshixuns_count"),"recommend"!==Y.sort){e.next=8;break}return e.next=6,s({type:"classroomList/getShixunAiRecommendLists",payload:l()(l()({},n),{},{course_id:f.coursesId})});case 6:e.next=11;break;case 8:return t=l()({},n),e.next=11,s({type:"classroomList/getShixunLists",payload:t});case 11:return e.next=13,(0,Ze.ZP)("/api/users/user_setting_groups.json",{method:"get",params:{type:"Shixun"}});case 13:i=e.sent,R([{id:null,name:"全部"},{id:-1,name:"未加入目录"}].concat(L()((null==i?void 0:i.groups)||[]))),N(""),V(!1);case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if("选用实践课程"!==i.actionTabs.key){var Q=(0,In.P)(),G=d()(Q,4),U=G[0],W=G[1],J=G[2],K=(G[3],function(){var e=r()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,ue.su)({id:null==c?void 0:c.competitionId,shixun_ids:n.map((function(e){return e.id}))}).then((function(e){0==(null==e?void 0:e.status)?(v.ZP.success("添加成功"),s({type:"classroomList/setActionTabs",payload:{}}),s({type:"competitions/getHeader",payload:{identifier:null==c?void 0:c.competitionId}}),null==c||c.queryQuetions(!0)):v.ZP.error(null==e?void 0:e.message)}));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),X=(0,m.useState)(!1),$=d()(X,2),ee=$[0],ne=$[1];return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsxs)(an.Z,{title:"选用实践项目",placement:"bottom",height:"100%",closable:!0,open:"新增赛题"===i.actionTabs.key,rootClassName:pn,destroyOnClose:!0,onClose:function(){s({type:"classroomList/setActionTabs",payload:{key:""}})},footer:(0,xe.jsxs)("div",{className:"tc",style:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,xe.jsx)(Z.ZP,{size:"middle",onClick:function(){s({type:"classroomList/setActionTabs",payload:{}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},children:"取消"}),(0,xe.jsx)(Z.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",onClick:r()(o()().mark((function e(){var n,t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!k){e.next=8;break}return ne(!0),t=null==S||null===(n=S.shixun_list)||void 0===n?void 0:n.filter((function(e){return k.includes(e.identifier)})).map((function(e){return{id:e.id,is_copy:0,is_use:1}})),e.next=5,K(t);case 5:ne(!1),e.next=9;break;case 8:v.ZP.error("请选择实践项目");case 9:case"end":return e.stop()}}),e)}))),type:"primary",loading:ee,children:"确定"})]}),children:[(0,xe.jsx)("section",{className:"tc",children:(0,xe.jsx)(Nn.Z,{onChange:function(e){null!=e&&e.keyword.trim()&&(0,An.tk)({name:null==e?void 0:e.keyword.trim(),copywriting:null==e?void 0:e.keyword.trim(),position:"Shixun"}),H(l()(l()({},Y),{},{keyword:null==e?void 0:e.keyword.trim(),schools:null==e?void 0:e.schools.trim(),creator:null==e?void 0:e.creator.trim(),page:1}))}})}),(0,xe.jsx)("section",{className:"edu-container",children:(0,xe.jsx)(rn.Z,{spinning:B,children:(0,xe.jsxs)("aside",{children:[Cn.map((function(e,n){var t;return 0!==n?null:(0,xe.jsxs)("ul",{className:mn,children:[(0,xe.jsx)("li",{children:e.name}),null==e||null===(t=e.children)||void 0===t?void 0:t.map((function(n,t){return(0,xe.jsx)("li",{className:Y[e.id]==n.id?_n:"",onClick:function(){Y[e.id]=n.id,Y.page=1,H(l()({},Y))},children:(0,xe.jsx)("strong",{children:n.name})},t)}))]},n)})),(0,xe.jsxs)("ul",{className:mn,children:[(0,xe.jsx)("li",{children:"方向"}),(0,xe.jsx)("li",{className:null!=Y&&Y.discipline_id?"":_n,onClick:function(){delete Y.tag_level,delete Y.sub_discipline_id,delete Y.discipline_id,Y.page=1,H(l()({},Y))},children:(0,xe.jsx)("strong",{children:"全部"})}),a.menus&&a.menus.map((function(e,n){return(0,xe.jsxs)("li",{className:(null==Y?void 0:Y.discipline_id)==e.id?_n:"",children:[(0,xe.jsx)("strong",{onClick:function(){Y.tag_level=1,Y.discipline_id=e.id,delete Y.sub_discipline_id,Y.page=1,H(l()({},Y))},children:e.name}),(0,xe.jsx)("div",{children:e.sub_repertoires.map((function(n,t){return(0,xe.jsxs)("div",{className:"mt5",children:[(0,xe.jsx)("div",{className:(null==Y?void 0:Y.sub_discipline_id)==n.id&&2===Y.tag_level?"".concat(hn," ").concat(fn):fn,onClick:function(){Y.tag_level=2,Y.discipline_id=e.id,Y.sub_discipline_id=n.id,H(l()({},Y))},children:n.name}),(0,xe.jsx)("ul",{className:"mt5",children:n.tags&&n.tags.map((function(n,t){return(0,xe.jsx)("li",{className:Y.sub_discipline_id==n.id&&3===Y.tag_level?hn:"",onClick:function(){Y.tag_level=3,Y.discipline_id=e.id,Y.sub_discipline_id=n.id,H(l()({},Y))},children:n.name},t)}))})]},t)}))})]},n)}))]}),"mine"===Y.type&&(0,xe.jsxs)("ul",{className:mn,children:[(0,xe.jsx)("li",{children:"目录"}),null==T?void 0:T.map((function(e,n){return(0,xe.jsx)("li",{className:Y.group_id==e.id?_n:"",onClick:function(){Y.group_id=e.id,Y.page=1,H(l()({},Y))},children:(0,xe.jsx)("strong",{children:e.name})},n)}))]}),Cn.map((function(e,n){var t;return 1!==n?null:(0,xe.jsxs)("ul",{className:mn,children:[(0,xe.jsx)("li",{children:e.name}),null==e||null===(t=e.children)||void 0===t?void 0:t.map((function(n,t){return(0,xe.jsx)("li",{className:Y[e.id]==n.id?_n:"",onClick:function(){Y[e.id]=n.id,H(l()({},Y))},children:(0,xe.jsx)("strong",{children:n.name})},t)}))]},n)})),"mine"==(null==Y?void 0:Y.type)&&(0,xe.jsxs)("ul",{className:mn,children:[(0,xe.jsx)("li",{children:"状态"}),(0,xe.jsx)("li",{className:0==Y.not_open?_n:"",onClick:function(){Y.not_open=!1,Y.page=1,H(l()({},Y))},children:(0,xe.jsx)("strong",{children:"公开"})}),(0,xe.jsx)("li",{className:1==Y.not_open?_n:"",onClick:function(){Y.not_open=!0,Y.page=1,H(l()({},Y))},children:(0,xe.jsx)("strong",{children:"未公开"})})]}),(0,xe.jsxs)(oe.Z,{align:"middle",children:[(0,xe.jsx)(ae.Z,{flex:"1",className:jn,children:z.map((function(e,n){return(0,xe.jsx)(Z.ZP,{className:"mr20",type:Y.sort===e.id?"primary":"default",onClick:function(){Y.sort=e.id,H(l()({},Y))},children:e.name},n)}))}),(0,xe.jsx)(ae.Z,{className:"c-grey-999",children:(0,xe.jsx)("div",{className:wn,children:(0,xe.jsxs)("ul",{children:[(0,xe.jsxs)("li",{children:["已选",(0,xe.jsx)("span",{className:"c-blue",children:k.length>0?1:0}),"个"]}),(0,xe.jsxs)("li",{children:["共",(0,xe.jsx)("span",{className:"c-blue",children:S.shixuns_count}),"个"]}),(0,xe.jsxs)("li",{className:"current",onClick:function(){Y.order="asc"===Y.order?"desc":"asc",H(l()({},Y))},children:["学习人数",(0,xe.jsxs)("p",{className:"edu-sorter current ".concat(Y.order),children:[(0,xe.jsx)("span",{className:"iconfont icon-sanjiaoxing-up"}),(0,xe.jsx)("span",{className:"iconfont icon-sanjiaoxing-down"})]})]})]})})})]}),0===(null==S||null===(n=S.shixun_list)||void 0===n?void 0:n.length)&&(0,xe.jsx)(un.Z,{}),(0,xe.jsx)(b.ZP.Group,{style:{display:"block"},value:k,onChange:function(e){N(e.target.value)},children:null==S||null===(t=S.shixun_list)||void 0===t?void 0:t.map((function(e,n){var t,i;return(0,xe.jsx)("div",{className:xn,style:{cursor:"auto"},children:(0,xe.jsx)(b.ZP,{value:null==e?void 0:e.identifier,style:{marginTop:"3px"},disabled:null==e?void 0:e.need_authorize,children:(0,xe.jsxs)("div",{className:vn,children:[(0,xe.jsx)("div",{className:gn,children:(0,xe.jsxs)("div",{className:yn,children:[(0,xe.jsx)(_.Link,{to:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:(0,xe.jsx)("strong",{className:"font16",dangerouslySetInnerHTML:{__html:e.title}})}),(null==e?void 0:e.need_authorize)&&(0,xe.jsx)("span",{onClick:function(){(0,kn.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10",children:"需授权"}),(0,fe.Ny)()&&1===(null==e?void 0:e.mark_status)&&(0,xe.jsx)(y.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,xe.jsx)("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10",children:"正常"})}),(0,fe.Ny)()&&2===(null==e?void 0:e.mark_status)&&(0,xe.jsx)(y.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,xe.jsx)("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10",children:"需完善"})}),(0,fe.Ny)()&&3===(null==e?void 0:e.mark_status)&&(0,xe.jsx)(y.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,xe.jsx)("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10",children:"无法使用"})}),(0,xe.jsx)(Z.ZP,{ghost:!0,href:"/shixuns/".concat(e.identifier,"/challenges"),type:"primary",target:"_blank",className:Zn,children:"体验实训"})]})}),(0,xe.jsx)("div",{className:"flex-wrp mt10 font14 c-light-black",children:(0,xe.jsx)("span",{className:bn,dangerouslySetInnerHTML:{__html:e.description}})}),(0,xe.jsx)("div",{className:" mt15",children:e.challenge_names.map((function(e,n){return(0,xe.jsxs)("span",{className:"mr30",children:["第",n+1,"关 ",e," "]},n)}))}),(0,xe.jsx)(cn.Z,{dashed:!0}),(0,xe.jsxs)("div",{className:"c-light-black mt20",children:[null!=e&&null!==(t=e.content)&&void 0!==t&&t.author_name?(0,xe.jsx)("span",{dangerouslySetInnerHTML:{__html:null==e||null===(i=e.content)||void 0===i||null===(i=i.author_name)||void 0===i?void 0:i[0]}}):(0,xe.jsx)("span",{children:e.author_name}),(0,xe.jsx)("span",{className:"ml15 mr15",children:"|"}),e.author_school_name&&(0,xe.jsxs)(m.Fragment,{children:[(0,xe.jsx)("span",{children:e.author_school_name}),(0,xe.jsx)("span",{className:"ml15 mr15",children:"|"})]}),(0,xe.jsxs)("span",{children:["难度系数 ",e.level]}),(0,xe.jsx)("span",{className:"ml15 mr15",children:"|"}),(0,xe.jsx)("span",{children:"学习人数 "}),(0,xe.jsx)("span",{children:e.study_count})]})]})})},n)}))})]})})}),(0,xe.jsx)("div",{className:"tc mt20",children:(0,xe.jsx)(dn.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:Y.page||1,showQuickJumper:!0,total:null==S?void 0:S.shixuns_count,onChange:function(e){Y.page=e,H(l()({},Y))}})})]},"bottom"),(0,xe.jsx)(In.Z,{visible:U,onCancel:W,renderData:J,inPaper:!1,onOk:K,modalType:"multiple",type:"shixun",position:"选中实训"})]})}})),Pn=["competitions","shixunHomeworks","globalSetting","dispatch","user"],Tn=j.Z.TextArea,Rn=function(e){return null!=e&&e.includes("已截止")?(0,xe.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #FFC4C4",color:"#E53333",fontSize:12,marginRight:8},children:"已截止"}):null!=e&&e.includes("进行中")?(0,xe.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #C4D2F1",color:"#3061D0",fontSize:12,marginRight:8},children:"进行中"}):null!=e&&e.includes("未发布")?(0,xe.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #DADBDE",color:"#999999",fontSize:12,marginRight:8},children:"未发布"}):null!=e&&e.includes("提交中")?(0,xe.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #B1F0E1",color:"#00B187",fontSize:12,marginRight:8},children:"提交中"}):null!=e&&e.includes("已结束")?(0,xe.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #FFC4C4",color:"#E53333",fontSize:12,marginRight:8},children:"已结束"}):null!=e&&e.includes("考试中")?(0,xe.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #C4D2F1",color:"#3061D0",fontSize:12,marginRight:8},children:"考试中"}):null!=e&&e.includes("未开始")?(0,xe.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #DADBDE",color:"#999999",fontSize:12,marginRight:8},children:"未开始"}):null!=e&&e.includes("补交中")?(0,xe.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid rgba(255,157,24,0.3)",color:"#FF9D18",fontSize:12,marginRight:8},children:"补交中"}):void 0},En=(0,_.connect)((function(e){return{competitions:e.competitions,shixunHomeworks:e.shixunHomeworks,globalSetting:e.globalSetting,user:e.user}}))((function(e){var n,t,i,s,a=e.competitions,c=(e.shixunHomeworks,e.globalSetting,e.dispatch),u=e.user,g=p()(e,Pn),w=f.Z.useForm(),k=d()(w,1)[0],I=f.Z.useForm(),A=d()(I,1)[0],S=(0,m.useState)(!0),C=d()(S,2),F=C[0],P=C[1],T=(0,m.useState)([]),R=d()(T,2),E=R[0],D=R[1],B=(0,m.useState)(!1),V=d()(B,2),z=V[0],M=(V[1],(0,m.useState)([])),O=d()(M,2),Y=O[0],H=O[1],q=a.Header,Q=(0,m.useState)(1),G=d()(Q,2),U=(G[0],G[1],(0,m.useState)({})),W=d()(U,2),J=W[0],K=W[1],X=(0,_.useParams)(),$=X.identifier,ee=(X.enter,(0,m.useState)({})),ne=d()(ee,2),te=ne[0],ie=ne[1],le=(0,m.useState)([]),re=d()(le,2),ce=re[0],de=re[1],pe=(0,m.useState)(""),me=d()(pe,2),he=me[0],ve=me[1],ge=(0,m.useState)([]),ye=d()(ge,2),je=ye[0],be=ye[1],we=(0,m.useState)(!1),ke=d()(we,2),Ne=ke[0],an=ke[1],rn=(0,m.useState)([{type:"practice",name:"课堂实验",open:!1,url:"shixun_homework"},{type:"normal",name:"图文作业",open:!1,url:"common_homework"},{type:"group",name:"分组作业",open:!1,url:"group_homework"},{type:"hack",name:"编程作业",open:!1,url:"program_homework"},{type:"exercise",name:"在线考试",open:!1,url:"exercise"}]),cn=d()(rn,2),dn=cn[0],pn=cn[1],mn=(0,m.useState)({input:""}),_n=d()(mn,2),hn=_n[0],fn=_n[1];function xn(){return(xn=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat($,"/get_course_settings.json"),{method:"get"});case 2:0===(null==(n=e.sent)?void 0:n.status)&&ie(n.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vn(){return gn.apply(this,arguments)}function gn(){return(gn=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null==g||g.loadingFunction(!0),e.next=3,(0,Ze.ZP)("/api/users/".concat(u.userInfo.login,"/courses.json"),{method:"get",params:{category:"manage",page:1,per_page:1e3,username:u.userInfo.login,no_limit_per_page:1}});case 3:n=e.sent,null==g||g.loadingFunction(!1),de(null==n?void 0:n.courses);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,m.useEffect)((function(){1===q.mode?(A.resetFields(),jn(!0)):2===q.mode?(A.resetFields(),function(){xn.apply(this,arguments)}()):function(){In.apply(this,arguments)}()}),[q]),(0,m.useEffect)((function(){u.userInfo.login&&vn()}),[u]);var yn=function(e){var n,t=e.total_score,i=e.difficulty_level_sort,l=null===(n=e.challenge_settings)||void 0===n?void 0:n.filter((function(e){return e.checked})).length;if(l){var s,o=t/e.challenge_settings.filter((function(e){return e.checked})).map((function(e){return"desc"===i?e.challenge_exp_desc:e.challenge_exp})).reduce((function(e,n){return e+n})),a=0,r=0;switch(e.score_setting){case 0:var c=parseFloat((t/l).toFixed(1));e.challenge_settings.map((function(e,n){e.checked?(a=n,e.score=c>0?c:0):e.score=0})),s=(t-c*(l-1)).toFixed(1),e.challenge_settings[a].score=s>0?s:0;break;case 1:e.challenge_settings.map((function(e,n){e.checked?(a=n,r+=Number((Math.round(("desc"===i?e.challenge_exp_desc:e.challenge_exp)*o*10)/10).toFixed(1)),e.score=(Math.round(("desc"===i?e.challenge_exp_desc:e.challenge_exp)*o*10)/10).toFixed(1)):e.score=0}));var d=e.challenge_settings[a].score;s=(t-r+Number(d)).toFixed(1),e.challenge_settings[a].score=s>0?s:0}}else e.challenge_settings.map((function(e,n){e.challenge_score=0}))},jn=function(e){(0,ue.lm)(null==g?void 0:g.competitionId).then((function(n){if(0==(null==n?void 0:n.status)){if(null!=n&&n.data){var t=null==n?void 0:n.data;if(e){for(var i in t)t[i].show_info=!1;H(t)}else for(var l in Y)t[l].show_info=Y[l].show_info;D(t)}else D([]);null==g||g.loadingFunction(!1)}else v.ZP.error(null==n?void 0:n.message)}))},bn=function(e,n){var t=E;for(var i in t)t[i].id==e.id&&("open"==n?t[i].show_info=!0:"close"==n&&(t[i].show_info=!1));D(L()(t)),H(L()(t))},wn=function(){if(function(e){var n=[];for(var t in e){var i,l,s=null===(i=e[t])||void 0===i||null===(i=i.challenge_settings)||void 0===i?void 0:i.reduce((function(e,n){return e+Number(n.score)}),0);(null==s?void 0:s.toFixed(10))!==(null===(l=e[t])||void 0===l||null===(l=l.total_score)||void 0===l?void 0:l.toFixed(10))&&n.push("赛题".concat(Number(t)+1,"的关卡任务总分必须等于总分值:").concat(e[t].total_score,"分\n"))}return!(n.length>0&&(v.ZP.warning(n),1))}(E)){for(var e in E){var n,t;if(E[e].shixun_id=null===(n=E[e])||void 0===n||null===(n=n.challenge_settings[0])||void 0===n?void 0:n.shixun_id,(null===(t=E[e])||void 0===t||null===(t=t.challenge_settings)||void 0===t?void 0:t.length)>0)for(var i in null===(l=E[e])||void 0===l?void 0:l.challenge_settings){var l,s;E[e].challenge_settings[i].challenge_score=null===(s=E[e])||void 0===s?void 0:s.challenge_settings[i].score}}(0,ue.JM)({id:null==g?void 0:g.competitionId,shixuns:E}).then((function(e){0==(null==e?void 0:e.status)?(v.ZP.success("更改成功"),jn(!1)):v.ZP.error(null==e?void 0:e.message)}))}};function Zn(e){return kn.apply(this,arguments)}function kn(){return kn=r()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null==g||g.loadingFunction(!0),e.next=3,(0,Ze.ZP)("/api/competitions/".concat($,"/switch_mode.json"),{method:"post",body:{mode:n}});case 3:return t=e.sent,null==g||g.loadingFunction(!1),0===(null==t?void 0:t.status)&&c({type:"competitions/getHeader",payload:{identifier:$}}),e.abrupt("return",!0);case 7:case"end":return e.stop()}}),e)}))),kn.apply(this,arguments)}function Nn(){return(Nn=r()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return an(!0),e.next=3,(0,Ze.ZP)("/api/competitions/get_competition_course_homework.json",{method:"get",params:{course_id:te.course_id,competition_course_game_id:n,id:$}});case 3:t=e.sent,an(!1),0===(null==t?void 0:t.status)?(ve(n),be(null==t||null===(i=t.data)||void 0===i?void 0:i.list)):v.ZP.info("当前课堂暂无数据,请更换绑定课堂或在当前课堂新增作业或考试");case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function In(){return(In=r()(o()().mark((function e(){var n,t,i,l,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat($,"/get_work_settings.json0"),{method:"get"});case 2:0===(null==(n=e.sent)?void 0:n.status)&&(P(null==n?void 0:n.data.is_new),A.setFieldsValue({evaluation_setting:null==n||null===(t=n.data)||void 0===t?void 0:t.evaluation_setting,commit_num:null==n||null===(i=n.data)||void 0===i?void 0:i.commit_num,evaluation_time:null==n||null===(l=n.data)||void 0===l?void 0:l.evaluation_time,evaluation_script:null==n||null===(s=n.data)||void 0===s?void 0:s.evaluation_script}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var An=function(e){var n=e.getFieldsValue();for(var t in console.log(n),n)if(void 0!==n[t])return!0;return!1};return(0,xe.jsxs)("div",{className:Ie,children:[(0,xe.jsxs)("div",{style:{padding:30},children:[(0,xe.jsx)("div",{style:{marginBottom:30,fontSize:14,fontWeight:600,color:"#232B40"},children:"模式设置"}),(0,xe.jsxs)("div",{style:{marginLeft:42},children:[(0,xe.jsx)("span",{children:"竞赛模式"}),(0,xe.jsx)(b.ZP.Group,{disabled:"progressing"===q.competition_status||"ended"===q.competition_status||"apply"===(null==q?void 0:q.competition_status),value:q.mode,onChange:function(){var e=r()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null==te||null===(t=te.competition_course_games)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t.homeworks)||void 0===t?void 0:t.length)>0||(null==E?void 0:E.length)>0||An(A))){e.next=3;break}return x.Z.confirm({icon:!1,title:"提示",content:"切换模式后,当前已经设置的赛题数据将会被清理,且不可撤回,请确认是否进行切换",onOk:function(){var e=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Zn(n.target.value);case 2:e.sent&&vn();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),e.abrupt("return");case 3:return e.next=5,Zn(n.target.value);case 5:e.sent&&vn();case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),style:{marginLeft:10,fontSize:14},children:(0,xe.jsxs)(sn.Z,{direction:"vertical",children:[(0,xe.jsxs)(b.ZP,{value:1,children:["实训模式",(0,xe.jsx)("span",{style:{color:"#9096A3",marginLeft:10},children:"挑战实训,系统评审"})]}),(0,xe.jsxs)(b.ZP,{value:2,children:["课堂模式",(0,xe.jsx)("span",{style:{color:"#9096A3",marginLeft:10},children:"参赛者需要进入课堂完成作业,将选择计入成绩的作业生成排行榜"})]}),(0,xe.jsxs)(b.ZP,{value:3,disabled:!(0,fe.Ny)()&&(null==q?void 0:q.is_manager)||"progressing"===q.competition_status||"apply"===(null==q?void 0:q.competition_status)||"ended"===q.competition_status,children:["作品模式",(0,xe.jsx)("span",{style:{color:"#9096A3",marginLeft:10},children:"参赛者提交作品,系统评审"})]})]})})]})]}),1===q.mode&&(0,xe.jsxs)("div",{children:[(0,xe.jsxs)("div",{className:Ae,style:{display:"flex",alignItems:"center"},children:[(0,xe.jsxs)("div",{style:{flex:1},children:["赛题设置",(0,xe.jsxs)("span",{style:{marginLeft:20,color:"#9096A3",fontSize:"12px",fontWeight:"normal"},children:["答题起止时间:",(0,xe.jsxs)("span",{style:{margin:"0 5px",color:"#165DFF",fontSize:"12px",fontWeight:"normal"},children:[null==q?void 0:q.start_time,"~",null==q?void 0:q.end_time]}),((0,fe.eB)()||(null==q||null===(n=q.permission)||void 0===n?void 0:n.editable))&&(0,xe.jsxs)("a",{style:{marginLeft:10,color:"#165DFF",display:"inline-flex"},onClick:function(){c({type:"competitions/setActionTabs",payload:{key:"7"}})},children:[(0,xe.jsx)("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF",marginRight:3}})," 编辑"]})]})]}),"progressing"!=(null==q?void 0:q.competition_status)&&"apply"!=(null==q?void 0:q.competition_status)&&"ended"!=(null==q?void 0:q.competition_status)&&(0,xe.jsxs)("div",{className:Se,style:{top:"auto"},onClick:function(){c({type:"classroomList/setActionTabs",payload:{key:"新增赛题",params:""}})},children:[(0,xe.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAF9JREFUOE9jZKAQMOLTb5B0voHhH8OBCwsMD+BSR9gABgaGC/MMG0YNIBAGBgnnHRiYGBwwAuo/oz1YjPH/QWyBCApccCyAowsbwGcANHpHo5GBgcZhAI1esvMCMTkdAHAwQhEikgNIAAAAAElFTkSuQmCC",className:Ce}),"新增赛题"]})]}),(0,xe.jsx)("div",{style:{marginTop:"25px"}}),E.map((function(e,n){var t,i,s;return(0,xe.jsxs)("div",{className:Fe,children:[(0,xe.jsxs)("div",{className:Pe,children:[(0,xe.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAA0JJREFUSEullk2ITlEYx3/PufdlxAYrTKyUhcgkG2LQzMbGhkJMyUca32mMyVdoMrOgoSkTZXxEmY2NDU1RWChEdlaEsfBZihozj+597533vOeee+ctb93e+3HO83/O//k/HwKgF6hH6CagEWEGAWByruibQO6agJ+E9MgqTkS23Z/EYH95RcC0DMh4xiOnbOfS+8ghw15p4mIWsJtbBGyIvU5PlW60DbiGfeuj/enpA4YpsUpW8tgGFT3LJ0xCYxFVrjMu5f4wfGYSDbKcoRRUtBP1xsQ1UE3vo2TPiqow+EPwlOk0ymKGI1DR02gchwoVlXv7xPZ9idWxx4bBjLO2rYrNXmlmdxnwFDrmZR6l1fF7IttYFqv7Go8JWFqTokNapInroicsQFd1dtxSZ0KaZTsPYsAbNDHK/QytvvgKvymxVPRYAphS4YqjAvQdYVBaWWerTvsZwLAaw9QYOFWvTwOGQdGOJIa2V2Xw55ToQXjLRN7Kbr76Ejl9p9eYTsDc+DLsBxqqtFG2PyLa7gEsUxvFdqe0c7kIyP2mN9mOoQ+D+NQv2uZQWq1YJWSPtNFbC6j204rhYgzli7+JVHqoBtEYDsoRzhdSeoUDwLmCGhtXMtEDOZRmy9wcaee9D1T7mI3ybixmrh4sQYrucxLfXVxW3h/mMUXWM+IFvEPAF35hqMvUYydFRPcUxDBdHPJSjtNQSGkvL4BFXkotXYi2OjH0JX/IDTnJljjZu1jCCJ2EQEiHHORZ0lOvY9icW3USu6K7LMDqflbudVEihxymxD1GOYNhrVN772I4SsAahK5M8js1WnSHIxq7nlaqxWsC5sditxmoVJVRAt4gLBj7nlOXRbdZMRxvrPB1+Fp7aOKc6FaH0qKOkdeucpLcV9RFWxxKff0sW2eLhih/P01siG7JqPQ0M+mUk/yppZzlrdGr1PGDDoRjdqqIbnIAJ1Ivl/j4P2BjHeQcs4APtqpFN/LJmUUHEHqYkJywlGxP/6PHWt4FcdXZB6yzlD0kuj4ZE/Maryui8WbVvNGybP92RGl5EDbOIFyL4bzunqZPdU5/o8TC6BUx6AjdCI3xjFqkyqIT+1IqYAjhIZNpk718+AfZ8LVXyCfCsQAAAABJRU5ErkJggg==",className:Te}),(0,xe.jsxs)("div",{className:Re,children:["赛题",n+1]}),(0,xe.jsxs)("div",{className:Ee,children:[(0,xe.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAnZJREFUSEvtlk1IVFEUx39n3gwpUxKEM35QEU3QJlxYK8FNtWjhJqhFOH4UCBl9UCQVYdMmSLLAQkhJxRmKCipy2yKpTdEH7oSipKAZx00Uhc3MeyfupOGMPS0ZBgLf7t177v2d8z/n3nsEoDKsW23YB2xQ8JqxQn0CGeC9BTfjUXkhBpaBc4UCLLSPF85LIKyXFTYVAyjwxgDvF1pGN+eNvFIe1pFiRDfLWAYWXO3/TlKdkUD+VorFIhzzQI8qNSocydlUSJT66chMszKdoVeUnjLl2VeLVkfZ4Xo0XI6FinK7PcStSESc6iZdk1KG8oAXp4blaXmjhhCueJWueEyeGJtgs25Xh4MKK/LB8yIU+GIp3fGYvMouDmvAUc4gbJyz+G1ymOMiooEmjahSK/DDA1cTURnN3s8HdL2d5rQq1XOh84A+4dCnYflgjAKNWoPQoVCWs0g5m4zJWLBFtzg2F+bOeeBhfQMDd/eKHQyr34EbgN/14K8rZffLPklXNmu9rZxQxZMHe52MSWfWIZd72AMPJqNiQMbmukKVK9BvEZ4Yks+1ber7+J1WFRpyIvBxdHJA3gWatU4dTuXnyFLubQ4RfRyRjIlQhX5VVrkCRRj3WHQlBmXKGFW06DbH5piRVZTRZEwu7bmj1ugIvTmem9x76Y4P/sr92v1aNZ3mJBBaMIczk98QrpkqNP+zlWhZHE4MyURFk+6ylfY/5XUm9zuBNhVKFq3SHPmER1YJ/ekUZdj0e6DPZzGecuhUZXUOEAZ9Ds9TFo0odf96Dn/bm3IHrEK9mYvdNG6OLnl8Gbhk6VyLpuhNVNHbxKI3wtmnpIit/k8rJx6Q0AVqRgAAAABJRU5ErkJggg==",className:Le}),(0,xe.jsx)(_.Link,{to:"/shixuns/".concat(null==e?void 0:e.shixun_identifier,"/challenges"),target:"_blank",children:(0,xe.jsx)(y.Z,{title:null==e||null===(t=e.shixun)||void 0===t?void 0:t.name,placement:"bottom",children:(0,xe.jsx)("div",{className:De,children:null==e||null===(i=e.shixun)||void 0===i?void 0:i.name})})})]}),(0,xe.jsx)("div",{className:Be,onClick:function(){bn(e,"open")},children:!(null!=e&&e.show_info)&&(0,xe.jsxs)(xe.Fragment,{children:["展开更多",(0,xe.jsx)("i",{className:"iconfont icon-xiajiantou",style:{fontSize:"8px"}})]})}),"progressing"!=(null==q?void 0:q.competition_status)&&"apply"!=(null==q?void 0:q.competition_status)&&"ended"!=(null==q?void 0:q.competition_status)&&(0,xe.jsx)("div",{className:Ve,onClick:function(){var n,t;n=null==e?void 0:e.id,x.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"删除提示",icon:null,content:"删除该赛题后,数据不可恢复,请确认是否删除?",onOk:(t=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,ue.pS)({id:null==g?void 0:g.competitionId,data_id:n}).then((function(e){0==(null==e?void 0:e.status)?(v.ZP.success("删除成功"),jn(!0),c({type:"competitions/getHeader",payload:{identifier:null==g?void 0:g.competitionId}})):v.ZP.error(null==e?void 0:e.message)}));case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})})},children:"删除该赛题"})]}),(null==e?void 0:e.show_info)&&(0,xe.jsxs)("div",{className:ze,children:[(0,xe.jsxs)(f.Z,{form:k,labelCol:{flex:"70px"},children:[(0,xe.jsxs)(f.Z.Item,{className:Me,label:"题目总分",colon:!1,children:[(0,xe.jsx)(on.Z,{min:0,value:null==e?void 0:e.total_score,disabled:"progressing"==(null==q?void 0:q.competition_status)||"apply"===(null==q?void 0:q.competition_status)||"ended"==(null==q?void 0:q.competition_status),className:Oe,onChange:function(n){e.total_score=n,K(Object.assign({},J)),yn(e)},onBlur:function(){wn()}})," 分"]}),(0,xe.jsx)(f.Z.Item,{className:Ye,label:" ",colon:!1,children:(0,xe.jsx)(f.Z.Item,{className:Ye,label:"关卡分值",colon:!1,children:(0,xe.jsxs)(b.ZP.Group,{disabled:"progressing"==(null==q?void 0:q.competition_status)||"apply"===(null==q?void 0:q.competition_status)||"ended"==(null==q?void 0:q.competition_status),value:null==e?void 0:e.score_setting,onChange:function(n){e.score_setting=n.target.value,1!==n.target.value&&(e.difficulty_level_sort="asc"),K(Object.assign({},J)),yn(e)},onBlur:function(){wn()},children:[(0,xe.jsx)(b.ZP,{value:0,children:"均分比例"}),(0,xe.jsx)(b.ZP,{value:1,children:"难易度"}),(0,xe.jsx)(b.ZP,{value:2,children:"自定义分值"})]})})}),null==e||null===(s=e.challenge_settings)||void 0===s?void 0:s.map((function(n,t){return(0,xe.jsx)(f.Z.Item,{className:Ye,label:" ",colon:!1,children:(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsx)("i",{className:"iconfont icon-shixunti",style:{color:"#165DFF",width:"14px",height:"14px",margin:"6px 15px 7px 0"}}),(0,xe.jsxs)(f.Z.Item,{className:Ye,label:(0,xe.jsx)(y.Z,{title:null==n?void 0:n.subject,placement:"left",children:(0,xe.jsx)("div",{className:He,children:null==n?void 0:n.subject})}),colon:!1,children:[(0,xe.jsx)(on.Z,{min:0,step:.1,value:null==n?void 0:n.score,disabled:z||2!==(null==e?void 0:e.score_setting),style:{width:"96px"},onChange:function(n){e.challenge_settings[t].score=n,K(l()({},J))},onBlur:function(){wn()}}),(0,xe.jsx)("span",{className:"ml10",children:"分"})]}),(0,xe.jsx)("div",{className:"简单"==(null==n?void 0:n.difficulty)?qe:"中等"==(null==n?void 0:n.difficulty)?Qe:Ge,children:null==n?void 0:n.difficulty})]})},t)}))]}),(0,xe.jsxs)("div",{className:Ue,onClick:function(){bn(e,"close")},children:["收起更多",(0,xe.jsx)("i",{className:"iconfont icon-shangjiantou",style:{fontSize:"8px"}})]})]})]},n)})),0==(null==E?void 0:E.length)&&(0,xe.jsx)(un.Z,{customText:"您还没有添加赛题,点击添加赛题"}),(0,xe.jsx)(Fn,{competitionId:null==g?void 0:g.competitionId,queryQuetions:jn})]}),2===q.mode&&(0,xe.jsxs)("div",{style:{paddingLeft:78,paddingRight:30},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("label",{style:{marginRight:10,width:50,textAlign:"end"},children:"课堂"}),(0,xe.jsx)(h.default,{popupClassName:tn,showSearch:!0,filterOption:function(e,n){return-1!==n.key.toUpperCase().indexOf(e.toUpperCase())},disabled:"progressing"===q.competition_status||"apply"===(null==q?void 0:q.competition_status)||"ended"===q.competition_status,className:$e,onChange:function(){var e=r()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null==g||g.loadingFunction(!0),e.next=3,(0,Ze.ZP)("/api/competitions/".concat($,"/course_select.json"),{method:"post",body:{course_id:n}});case 3:t=e.sent,null==g||g.loadingFunction(!1),0===(null==t?void 0:t.status)&&c({type:"competitions/getHeader",payload:{identifier:$}});case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),size:"large",style:{flex:1},value:[te.course_id||te.default_course_id],placeholder:"请选择需要计算成绩的课堂",children:null==ce?void 0:ce.map((function(e){return(0,xe.jsx)(h.default.Option,{value:null==e?void 0:e.id,children:(0,xe.jsxs)(oe.Z,{align:"middle",style:{padding:"0px 12px"},children:[(0,xe.jsxs)(oe.Z,{align:"middle",style:{flex:1},children:[(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)("div",{className:"mr20 font12",style:{lineHeight:"12px",padding:"4px 10px",borderRadius:13,color:e.is_end?"#E53333":"#3061D0",border:"1px solid ".concat(e.is_end?"#FFC4C4":"#C4D2F1")},children:e.is_end?"已结束":"进行中"})}),(0,xe.jsx)(ae.Z,{style:{flex:1},children:(0,xe.jsx)(y.Z,{placement:"topLeft",title:null==e?void 0:e.name,overlayStyle:{maxWidth:430,zIndex:1e4},children:(0,xe.jsx)(ae.Z,{style:{textOverflow:"ellipsis",overflow:"hidden",maxWidth:430},children:null==e?void 0:e.name})})})]}),(0,xe.jsx)(ae.Z,{style:{color:"#9096A3"},children:null==e?void 0:e.created_at})]})},"".concat(null==e?void 0:e.name).concat(null==e?void 0:e.id))}))}),(0,xe.jsx)("div",{className:Se,style:{position:"relative",justifyContent:"center",top:0,right:0,marginLeft:20,height:40,borderRadius:2,alignItems:"center"},onClick:function(){window.open(q.first_category_url)},children:"进入该课堂"})]}),q.course_is_end&&(0,xe.jsx)("div",{style:{color:"red",marginLeft:60,marginTop:10},children:"选择已结束的课堂,则无法进行答题的任何操作"}),null==te||null===(t=te.competition_course_games)||void 0===t?void 0:t.map((function(e,n){var t;return(0,xe.jsxs)("div",{style:{marginBottom:20},children:[(0,xe.jsxs)("div",{style:{marginTop:20,display:"flex",alignItems:"center"},children:[(0,xe.jsxs)("label",{style:{marginRight:10,width:50,textAlign:"end"},children:["赛道",n+1]}),(0,xe.jsx)(j.Z,{className:en,value:e.name,onChange:function(n){e.name=n.target.value,ie(l()({},te))},onBlur:function(){var n=r()(o()().mark((function n(t){return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.target.value){n.next=2;break}return n.abrupt("return");case 2:return n.next=4,(0,Ze.ZP)("/api/competitions/".concat($,"/create_course_game.json"),{method:"post",body:{course_id:null==te?void 0:te.course_id,competition_course_game_id:e.competition_course_game_id,name:t.target.value}});case 4:0===n.sent.status&&c({type:"competitions/getHeader",payload:{identifier:$}});case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),placeholder:"请输入赛道名称",style:{flex:1},maxLength:30,size:"large"}),(0,xe.jsx)("i",{onClick:r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null==te||null===(n=te.competition_course_games)||void 0===n?void 0:n.filter((function(e){return e.homeworks.length<=0})).length)>0)){e.next=3;break}return v.ZP.info("请先完成上一个赛道的作业/考试的选择,只有上一个赛道中添加了作业/试卷才能新增赛道"),e.abrupt("return");case 3:return e.next=5,(0,Ze.ZP)("/api/competitions/".concat($,"/create_course_game.json"),{method:"post",body:{course_id:null==te?void 0:te.course_id}});case 5:0===e.sent.status&&c({type:"competitions/getHeader",payload:{identifier:$}});case 7:case"end":return e.stop()}}),e)}))),style:{color:"#145DFF",marginLeft:15,cursor:"pointer"},className:"iconfont icon-tianjia2"}),0!==n&&(0,xe.jsx)("i",{style:{marginLeft:10,cursor:"pointer"},onClick:function(){var n;x.Z.confirm({icon:!1,title:"提示",content:"请确认是否删除该赛道,删除后,不可恢复。",onOk:(n=r()(o()().mark((function n(){return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Ze.ZP)("/api/competitions/".concat($,"/delete_course_game.json"),{method:"delete",body:{competition_course_game_id:e.competition_course_game_id}});case 2:0===n.sent.status&&c({type:"competitions/getHeader",payload:{identifier:$}});case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})},className:"".concat(Xe," iconfont icon-weishezhi")})]}),(0,xe.jsxs)("div",{style:{marginTop:20,marginLeft:60},children:[(0,xe.jsx)("span",{children:"计入成绩的作业/试卷"}),(0,xe.jsx)(Z.ZP,{loading:Ne,onClick:function(){!function(e){Nn.apply(this,arguments)}(e.competition_course_game_id)},style:{marginLeft:10,marginRight:20,background:"#3061D0",display:"inline-flex",height:30,alignItems:"center",justifyContent:"center",width:119,color:"#fff",borderRadius:2,cursor:"pointer",border:"none"},children:"选择作业/试卷"}),(0,xe.jsx)("span",{style:{color:"#9096A3"},children:"为了满足竞赛的正常计分排行,请关联作业/试卷"})]}),e.homeworks.length>0?(0,xe.jsx)("div",{style:{marginLeft:199,marginTop:10,padding:"30px 20px",background:"#F6F7F9"},children:null==e||null===(t=e.homeworks)||void 0===t?void 0:t.map((function(e,n){var t,i;return(0,xe.jsxs)("div",{style:{display:"flex",marginTop:n>0&&20,height:20,alignItems:"center",justifyContent:"space-between"},children:[(0,xe.jsx)("div",{style:{minWidth:68,height:24,display:"flex",alignItems:"center",justifyContent:"center",fontSize:12,background:"rgba(22,93,255,0.1)",color:"#3061D0",marginRight:20},children:null===(t=dn.find((function(n){return n.type===e.homework_type})))||void 0===t?void 0:t.name}),(0,xe.jsx)(y.Z,{title:(null==e||null===(i=e.name)||void 0===i?void 0:i.length)>6&&(null==e?void 0:e.name),placement:"topLeft",children:(0,xe.jsx)("span",{onClick:function(){window.open("/classrooms/".concat(null==te?void 0:te.course_id,"/").concat(dn.find((function(n){return n.type===e.homework_type})).url,"/").concat(e.homework_id||e.exercise_id,"/detail"))},style:{width:"90%",color:"#3061D0",cursor:"pointer"},className:Ke,children:null==e?void 0:e.name})}),(0,xe.jsx)("i",{style:{marginLeft:10,cursor:"pointer"},onClick:function(){var n;x.Z.confirm({icon:!1,title:"提示",content:"请确认是否删除该作业,删除后,不可恢复。",onOk:(n=r()(o()().mark((function n(){return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Ze.ZP)("/api/competitions/".concat($,"/delete_course_homework.json"),{method:"delete",body:{competition_course_homework_id:e.competition_course_homework_id}});case 2:0===n.sent.status&&c({type:"competitions/getHeader",payload:{identifier:$}});case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})},className:"".concat(Xe," iconfont icon-weishezhi")})]})}))}):(0,xe.jsx)(un.Z,{})]})})),(0,xe.jsx)(x.Z,{open:he,onCancel:function(){ve(""),an(!1)},width:850,title:"选择作业",className:nn,okButtonProps:{loading:Ne},onOk:r()(o()().mark((function e(){var n,t,i,l,s,a,r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null==je||null===(n=je.filter((function(e){return e.checked})))||void 0===n?void 0:n.length)<=0)){e.next=3;break}return v.ZP.info("请选择作业或试卷"),e.abrupt("return");case 3:return an(!0),e.next=6,(0,Ze.ZP)("/api/competitions/".concat($,"/homework_select.json"),{method:"post",body:{course_id:te.course_id,competition_course_game_id:he,shixun_homework_ids:null==je||null===(t=je.filter((function(e){return e.checked&&"practice"===e.homework_type})))||void 0===t?void 0:t.map((function(e){return e.id})),common_homework_ids:null==je||null===(i=je.filter((function(e){return e.checked&&"normal"===e.homework_type})))||void 0===i?void 0:i.map((function(e){return e.id})),group_homework_ids:null==je||null===(l=je.filter((function(e){return e.checked&&"group"===e.homework_type})))||void 0===l?void 0:l.map((function(e){return e.id})),program_homework_ids:null==je||null===(s=je.filter((function(e){return e.checked&&"hack"===e.homework_type})))||void 0===s?void 0:s.map((function(e){return e.id})),exercise_ids:null==je||null===(a=je.filter((function(e){return e.checked&&"exercise"===e.homework_type})))||void 0===a?void 0:a.map((function(e){return e.id}))}});case 6:r=e.sent,an(!1),ve(""),0===r.status&&c({type:"competitions/getHeader",payload:{identifier:$}});case 10:case"end":return e.stop()}}),e)}))),children:(0,xe.jsxs)("div",{style:{border:"1px solid #F6F7F9",display:"flex",maxHeight:480},children:[(0,xe.jsxs)("div",{style:{width:350,borderRight:"1px solid #F6F7F9",overflowY:"auto",overflowX:"hidden",padding:14},children:[(0,xe.jsx)(N.t7,{style:{width:312,marginRight:15},dataSource:[],value:{id:"",value:hn.input},onChange:function(e,n){hn.input=e,fn(l()({},hn)),null==dn||dn.map((function(e){e.open=!0})),pn(L()(dn))},placeholder:"请输入搜索内容"}),null==dn?void 0:dn.map((function(e){var n,t,i,l,s,o,a,r,c;return(0,xe.jsxs)("div",{children:[(0,xe.jsxs)("div",{style:{marginTop:16,height:22,alignItems:"center",display:"flex",justifyContent:"space-between"},children:[(0,xe.jsxs)("div",{style:{cursor:"pointer",color:"#232B40"},onClick:function(){e.open=!e.open,pn(L()(dn))},children:[(0,xe.jsx)("i",{style:{marginRight:10,color:"#999999"},className:"iconfont ".concat(e.open?"icon-changyongtubiao-xianxingdaochu-zhuanqu-":"icon-a-bianzu11")}),e.name,(0,xe.jsx)("span",{style:{marginLeft:6,color:"#ADB2B8"},children:null==je||null===(n=je.filter((function(n){return n.homework_type===e.type})))||void 0===n?void 0:n.length})]}),(0,xe.jsx)(se.Z,{indeterminate:(null==je||null===(t=je.filter((function(n){return n.homework_type===e.type})))||void 0===t?void 0:t.length)>(null==je||null===(i=je.filter((function(n){return n.homework_type===e.type&&n.checked})))||void 0===i?void 0:i.length)&&0!==(null==je||null===(l=je.filter((function(n){return n.homework_type===e.type})))||void 0===l?void 0:l.length)&&(null==je||null===(s=je.filter((function(n){return n.homework_type===e.type&&n.checked})))||void 0===s?void 0:s.length)>0,checked:(null==je||null===(o=je.filter((function(n){return n.homework_type===e.type})))||void 0===o?void 0:o.length)===(null==je||null===(a=je.filter((function(n){return n.homework_type===e.type&&n.checked})))||void 0===a?void 0:a.length)&&0!==(null==je||null===(r=je.filter((function(n){return n.homework_type===e.type})))||void 0===r?void 0:r.length),onChange:function(n){n.target.checked?je.map((function(n){n.homework_type===e.type&&(n.checked=!0)})):je.map((function(n){n.homework_type===e.type&&(n.checked=!1)})),be(L()(je))}})]}),null==je||null===(c=je.filter((function(n){return n.homework_type===e.type&&e.open&&n.name.includes(decodeURIComponent(hn.input))})))||void 0===c?void 0:c.map((function(e){return(0,xe.jsxs)("div",{style:{display:"flex",marginTop:12,height:20,alignItems:"center",justifyContent:"space-between"},children:[Rn(e.status||e.exercise_tips[0]),(0,xe.jsx)(y.Z,{title:null==e?void 0:e.name,children:(0,xe.jsx)("span",{style:{width:"70%"},className:Ke,children:null==e?void 0:e.name})}),(0,xe.jsx)(se.Z,{onChange:function(n){e.checked=n.target.checked,be(L()(je))},checked:e.checked})]})}))]})}))]}),(0,xe.jsxs)("div",{style:{width:450,padding:20,overflowY:"auto",overflowX:"hidden"},children:[(0,xe.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,xe.jsxs)("span",{children:[(0,xe.jsx)("span",{style:{color:"#6B758B"},children:"已选"}),(0,xe.jsx)("span",{style:{color:"#3061D0",marginLeft:3},children:null==je?void 0:je.filter((function(e){return e.checked})).length})]}),(0,xe.jsx)("span",{onClick:function(){je.map((function(e){e.checked=!1})),be(L()(je))},style:{color:"#3061D0",cursor:"pointer"},children:"全部清除"})]}),null==je||null===(i=je.filter((function(e){return e.checked})))||void 0===i?void 0:i.map((function(e){return(0,xe.jsxs)("div",{style:{display:"flex",marginTop:12,height:20,alignItems:"center",justifyContent:"space-between"},children:[Rn(e.status||e.exercise_tips[0]),(0,xe.jsx)(y.Z,{title:null==e?void 0:e.name,children:(0,xe.jsx)("span",{style:{width:"70%"},className:Ke,children:null==e?void 0:e.name})}),(0,xe.jsx)("i",{style:{marginLeft:10,cursor:"pointer"},onClick:function(){e.checked=!1,be(L()(je))},className:"".concat(Xe," iconfont icon-weishezhi")})]})}))]})]})})]}),3===q.mode&&(0,xe.jsxs)("div",{children:[(0,xe.jsx)("div",{className:Ae,style:{display:"flex",alignItems:"center"},children:(0,xe.jsxs)("div",{style:{flex:1},children:["评测设置",(0,xe.jsxs)("span",{style:{marginLeft:20,color:"#9096A3",fontSize:"12px",fontWeight:"normal"},children:["答题起止时间:",(0,xe.jsxs)("span",{style:{margin:"0 5px",color:"#165DFF",fontSize:"12px",fontWeight:"normal"},children:[null==q?void 0:q.start_time,"~",null==q?void 0:q.end_time]}),((0,fe.eB)()||(null==q||null===(s=q.permission)||void 0===s?void 0:s.editable))&&(0,xe.jsxs)("a",{style:{marginLeft:10,color:"#165DFF",display:"inline-flex"},onClick:function(){c({type:"competitions/setActionTabs",payload:{key:"7"}})},children:[(0,xe.jsx)("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF",marginRight:3}})," 编辑"]})]})]})}),(0,xe.jsxs)(f.Z,{form:A,layout:"vertical",scrollToFirstError:!0,className:ln,onValuesChange:function(){},children:[(0,xe.jsx)(f.Z.Item,{className:Me,label:"评测服务器配置",colon:!1,name:"evaluation_setting",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,xe.jsx)(Tn,{placeholder:"请填写评测服务器配置,格式为:服务器ip 端口 账号 密码,多台服务器用多行表示,如:127.0.0.1 22 root Qz_123123 127.0.0.2 22 root Qz_123123",rows:6,autoSize:{minRows:6,maxRows:999},disabled:!(0,fe.Ny)()&&(null==q?void 0:q.is_manager)})}),(0,xe.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,xe.jsx)(f.Z.Item,{style:{width:400},className:Me,label:"每日最多提交次数(未填则不限制)",colon:!1,name:"commit_num",rules:[{pattern:new RegExp(/^[1-9]\d*$/,"g"),message:"必须是正整数"}],children:(0,xe.jsx)(on.Z,{disabled:!(0,fe.Ny)()&&(null==q?void 0:q.is_manager),style:{width:400},autoComplete:"off",controls:!1,precision:0,min:1,className:Oe,placeholder:"请输入提交次数",suffix:(0,xe.jsx)("span",{style:{color:"#c5c5c5"},children:"次"})})}),(0,xe.jsx)(f.Z.Item,{style:{width:400},className:Me,label:"评测时长(S)",colon:!1,name:"evaluation_time",rules:[{required:!0,pattern:new RegExp(/^[1-9]\d*$/,"g"),message:"必须是正整数"}],children:(0,xe.jsx)(on.Z,{disabled:!(0,fe.Ny)()&&(null==q?void 0:q.is_manager),style:{width:400},autoComplete:"off",controls:!1,precision:0,min:1,className:Oe,placeholder:"请输入评测时长",suffix:(0,xe.jsx)("span",{style:{color:"#c5c5c5"},children:"S"})})})]}),(0,xe.jsx)(f.Z.Item,{className:Me,label:"运行脚本",colon:!1,name:"evaluation_script",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,xe.jsx)(Tn,{disabled:!(0,fe.Ny)()&&(null==q?void 0:q.is_manager),placeholder:"请输入运行脚本",rows:6,autoSize:{minRows:6,maxRows:999}})})]}),(0,fe.Ny)()&&(0,xe.jsx)("div",{className:We,children:(0,xe.jsx)(_e.Z,{className:Je,onClick:r()(o()().mark((function e(){var n,t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A.validateFields();case 2:if(n=A.getFieldsValue(),!F){e.next=10;break}return e.next=6,(0,Ze.ZP)("/api/competitions/".concat($,"/create_work_settings.json"),{method:"post",body:l()({},n)});case 6:0===(null==(t=e.sent)?void 0:t.status)&&v.ZP.info("更改成功"),e.next=14;break;case 10:return e.next=12,(0,Ze.ZP)("/api/competitions/".concat($,"/update_work_settings.json"),{method:"put",body:l()({},n)});case 12:0===(null==(i=e.sent)?void 0:i.status)&&v.ZP.info("更改成功");case 14:case"end":return e.stop()}}),e)}))),children:"保存更改"})})]})]})})),Ln="all___ZbAJW",Dn="title___QPivo",Bn="add_people___jqyIi",Vn="people_icon___Gf35v",zn="content_user___mESiF",Mn="content_left___JUfAC",On="user_img_box___rq6y5",Yn="user_img___tN5UW",Hn="user_rule_create___i4hOF",qn="user_info___ncafT",Qn="user_name___hqLNP",Gn="user_school___m7TBE",Un="delete_text___j_0I0",Wn="select_modal___j0vsx",Jn=t(26724),Kn=t.n(Jn),Xn=t(26830),$n=["classroomList","loading","dispatch"],et=(0,_.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var n,t,i=e.classroomList,l=(e.loading,e.dispatch),s=p()(e,$n),a=((0,_.useParams)(),i.actionTabs),c=(0,m.useState)([]),u=d()(c,2),g=u[0],b=u[1],k=(0,m.useState)(!0),N=d()(k,2),I=N[0],A=N[1],S=(0,m.useState)(!1),C=d()(S,2),F=C[0],P=C[1],T=f.Z.useForm(),R=d()(T,1)[0],E=(0,m.useState)([]),D=d()(E,2),B=D[0],V=D[1],z=(0,m.useState)(0),M=d()(z,2),O=M[0],Y=M[1],H=(0,m.useState)([]),q=d()(H,2),Q=q[0],G=q[1],U=(0,m.useState)(!0),W=d()(U,2),J=W[0],K=W[1];(0,m.useRef)();(0,m.useEffect)((function(){"添加管理员"===i.actionTabs.key&&(K(!0),X())}),[i.actionTabs.key]);var X=function(){var e=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l({type:"classroomList/getSchoolList",payload:{}});case 2:n=e.sent,b(n.map((function(e){return{value:e}})));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$=function(){var e=r()(o()().mark((function e(){var n,t,l,s,a=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=a.length>0&&void 0!==a[0]&&a[0])&&!I||F){e.next=11;break}return l=R.getFieldValue(),P(!0),Y(n?1:O+1),e.next=7,(0,ue.pA)({id:i.actionTabs.id,page:n?1:O+1,type:(null==l?void 0:l.search_type)||"",school:(null==l?void 0:l.school_name)||"",keyword:(null==l?void 0:l.keyword)||""});case 7:s=e.sent,V(n?L()(null==s?void 0:s.data):[].concat(L()(B),L()(null==s?void 0:s.data))),P(!1),(null===(t=s.users)||void 0===t?void 0:t.length)<10&&A(!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ee=function(){var e=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:""==Q?v.ZP.error("请选择人数"):(console.log(Q),(0,ue.q0)({id:null==s?void 0:s.competitionId,ids:Q}).then((function(e){0==e.status?(v.ZP.success("添加成功"),l({type:"classroomList/setActionTabs",payload:{}}),s.queryData()):v.ZP.error(null==e?void 0:e.message)})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ne=[{title:"",dataIndex:"id",width:40,ellipsis:!0,render:function(e,n){return(0,xe.jsx)(se.Z,{value:n.id,checked:Q.includes(String(n.id)),disabled:null==n?void 0:n.checked})}},{title:"姓名",width:100,ellipsis:!0,dataIndex:"name",render:function(e,n){return(0,xe.jsx)(y.Z,{placement:"bottom",title:e,children:(0,xe.jsx)(_.Link,{className:"bold c-black",to:"/users/".concat(n.login),target:"_blank",children:e||"--"})})}},{title:"职业",dataIndex:"identity",width:130,ellipsis:!0,render:function(e){return(0,xe.jsx)(y.Z,{placement:"bottom",title:e,children:(0,xe.jsx)("span",{children:e||"--"})})}},{title:"学号/工号",width:100,dataIndex:"student_id",ellipsis:!0,render:function(e){return(0,xe.jsx)(y.Z,{placement:"bottom",title:e,children:(0,xe.jsx)("span",{children:e||"--"})})}},{title:"手机",width:100,dataIndex:"phone",ellipsis:!0,render:function(e){return(0,xe.jsx)(y.Z,{placement:"bottom",title:e,children:(0,xe.jsx)("span",{children:e||"--"})})}},{title:"邮箱",dataIndex:"mail",width:100,ellipsis:!0,render:function(e){return(0,xe.jsx)(y.Z,{placement:"bottom",title:e,children:(0,xe.jsx)("span",{children:e||"--"})})}},{title:"学校/单位",width:150,dataIndex:"school",ellipsis:!0,render:function(e){return(0,xe.jsx)(y.Z,{placement:"bottom",title:e,children:(0,xe.jsx)("span",{children:e||"--"})})}},{title:"实名认证",dataIndex:"school_name",width:100,render:function(e){return e?"是":"否"}},{title:"状态",dataIndex:"checked",width:80,render:function(e){if(e)return(0,xe.jsx)("span",{className:"c-green",children:"已添加"})}}];return(0,xe.jsx)(x.Z,{className:"modal_styles",centered:!0,title:"添加管理员",open:"添加管理员"===i.actionTabs.key,okText:"确定",cancelText:"取消",width:1100,zIndex:1e3,bodyStyle:{minHeight:200},onOk:r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ee();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){G([]),l({type:"classroomList/setActionTabs",payload:{}})},children:(0,xe.jsxs)("div",{style:{padding:"0 14px"},children:[(0,xe.jsxs)(f.Z,{layout:"inline",form:R,initialValues:{school_name:"",keyword:"",search_type:"name"},children:[(0,xe.jsx)(f.Z.Item,{name:"search_type",label:"搜索类型",children:(0,xe.jsxs)(h.default,{style:{width:120},className:Wn,children:[(0,xe.jsx)(h.default.Option,{value:"name",children:"姓名"}),(0,xe.jsx)(h.default.Option,{value:"phone",children:"手机号"}),(0,xe.jsx)(h.default.Option,{value:"mail",children:"邮箱"})]})}),(0,xe.jsx)(f.Z.Item,{name:"keyword",label:"搜索内容:",children:(0,xe.jsx)(j.Z,{allowClear:!0,style:{width:305},size:"middle",defaultValue:(null===(n=a.selectArrs)||void 0===n?void 0:n.category_name)||(null===(t=a.selectArrs)||void 0===t?void 0:t.name)})}),(0,xe.jsx)(f.Z.Item,{name:"school_name",label:"单位:",children:(0,xe.jsx)(w.Z,{options:g,style:{width:306},size:"middle",placeholder:"请输入单位名称",filterOption:function(e,n){return-1!==n.value.toUpperCase().indexOf(e.toUpperCase())}})}),(0,xe.jsx)(f.Z.Item,{style:{marginRight:0},children:(0,xe.jsx)(Z.ZP,{htmlType:"submit",type:"primary",size:"middle",onClick:function(){return function(){var e;if(""===(null===(e=R.getFieldValue())||void 0===e?void 0:e.keyword))return V([]),void v.ZP.error("请输入搜索内容");K(!1),A(!0),P(!1),G([]),setTimeout((function(){$(!0)}),200)}()},children:"搜索"})})]}),J&&(0,xe.jsxs)("div",{className:"tc font16 c-light-black mt40 pb30",children:[(0,xe.jsx)("img",{src:Xn.RL,width:"100",alt:""}),(0,xe.jsx)("br",{}),(0,xe.jsx)("p",{className:"mt20",children:"请搜索要添加的管理员"})]}),!J&&""==B&&!F&&(0,xe.jsxs)("div",{className:"tc font16 c-light-black mt40 pb30",children:[(0,xe.jsx)("img",{src:Xn.z3,width:"100",alt:""}),(0,xe.jsx)("br",{}),(0,xe.jsx)("p",{className:"mt20",children:"暂时还没有相关数据哦!"})]}),(!J&&""!=B||F)&&(0,xe.jsxs)("section",{children:[(0,xe.jsx)("div",{className:"flexd-table-header mt20",children:(0,xe.jsx)(re.Z,{pagination:!1,dataSource:[],columns:ne})}),(0,xe.jsx)("div",{style:{maxHeight:260,overflow:"auto"},children:(0,xe.jsx)(Kn(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(e){$()},hasMore:I,useWindow:!1,children:(0,xe.jsx)(re.Z,{loading:F,showHeader:!1,pagination:!1,dataSource:B,columns:ne,onRow:function(e){return{onClick:function(e){e.currentTarget.querySelector("input").disabled||function(e){e=String(e);var n=Q.indexOf(e);n<0?Q.push(e):Q.splice(n,1),G(L()(Q))}(e.currentTarget.querySelector("input").value)}}}})})})]})]})})})),nt=["globalSetting","dispatch","user"],tt=(0,_.connect)((function(e){return{globalSetting:e.globalSetting,user:e.user}}))((function(e){e.globalSetting;var n,t=e.dispatch,i=e.user,l=p()(e,nt),s=(0,m.useState)([]),a=d()(s,2),c=a[0],u=a[1],_=(0,m.useState)(""),h=d()(_,2),f=h[0],g=h[1];(0,m.useEffect)((function(){y()}),[]);var y=function(){(0,ue.sL)(null==l?void 0:l.competitionId).then((function(e){if(0==(null==e?void 0:e.status)){var n;g(null==e||null===(n=e.creator)||void 0===n?void 0:n.id);var t=[];for(var i in t.push(null==e?void 0:e.creator),null==e?void 0:e.data)t.push(null==e?void 0:e.data[i]);u(t),null==l||l.loadingFunction(!1)}else v.ZP.error(null==e?void 0:e.message)}))};return(0,xe.jsxs)("div",{className:Ln,children:[(0,xe.jsx)("div",{className:Dn,children:"管理员设置"}),(f==(null==i||null===(n=i.userInfo)||void 0===n?void 0:n.user_id)||(0,fe.Ny)())&&(0,xe.jsxs)("div",{className:Bn,onClick:function(){t({type:"classroomList/setActionTabs",payload:{key:"添加管理员",id:null==l?void 0:l.competitionId}})},children:[(0,xe.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABvZJREFUWEfNmGlsVFUUx8+5b5a+DhqpKCg0IagJikRFbOlMC8USoRZZLU4LrWCAiMsHg4krERFQE+WLCwaMlEU6UBZRquyUtjNFLIoBFOMaFYTIomBnOsu7x9w386bvvZlOZ9rUOF/e5C7n/t7/nnvuOQ/hf/7D/zkf9BiQTk4pAQndwGk0ANwYfWE6DQiNgMyDQ7cf6IkI3Qakb92DgQdriGAMAQECgnhG+QDUVyfxwENosc/GWz2/dAe0W4B0Yto9nHAXEc8RiyIiEJH6VPkEGEaf4scYXEDCCTh8a2umkBkD0nflA5UgHCXi/aMymSRLSoAC+Jxks4zAoZ4zmUBmDBg6NmMDEJ9pkEiTK6ZgbHc78DVFATfY7txc1WuAdKx6YJiCv4ndNC6iczq1IwFRbUMksmJWLt657nS6kBkpGGqtXMCBv5tg3MyTYnWGsMA2wvNerwD6j1auAE5PaSdWPJMLZjolOkURYUXWyI0LewUwcGTWagKaazZuPrUmlzQMR4DVct6H83sFsO3wrCUEsMgcVhKBoyFHhJ6oR0ZjpKo4Y0sceWtf6h3AlupSAvi0qyORcnGJlfbJ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I+LDKXhdtf2E0kVDHknP8aJv5NSvaiTCT/z2V0fu6h1vjUUPHuBgK7SK4SAV2z2AdeK5DToneQlIKfoZ0zKBwaKfg2u8C1AfLCwypA9bnPtiFeOBgVD3om14uboKqUX/QwhbO2T01eEkWBz2UcEMDn+rQPV6mOHvbB+ighDoSsXhP9ZRT8C7ARkBMCFFZUTAcZyoD4CBhE9NtfOiqQKBr33/w5EA5MHKpPnCjUkNsHqrN8d8pYtIDLWy4jsMZurfmXYVzaec566BtErgnjaXvjpoARAOlw6KBTmahKQ6CPGj0FaP2PwutW1+1lqKhsSxsiP+pvHBpabsKj+p2DT+NcA4JkuwpbhjFktLBdHffZ7TN3o1EjLhGk8omzt0v8MQuIRa9GefNEUar7vewC6OdqNP9gK99wi/oWb7vuckPLiuyIak14lHYYZStMthbu2GQDDzSXLiOD5ZIAJXxJiKyCAIlmtOTjqs8uR5pK3OcHjYj5DeMdSuP8JOlx6dSQcvkhAUkYvjmy5tXDvC0YFG8fuIoTxSQ2leGOUpIkW1776SNO9DxDQx1GjOMlSdOCTiHdcGXFlZ2cfk6JSJiqKCLstRQcnGAGbis8CUP/YFulmdX41qaeO4ZuSq+FpOlncR7lI6j0q5eC1OKzhn3BT8RtAtDBdn459vRNWz1mKGgYYADPZgv9ybJcp/38Jk2ytfwErhCtWL5ZsugAAAABJRU5ErkJggg==",className:Vn}),"添加管理员"]}),(0,xe.jsx)("div",{className:zn,children:c.map((function(e,n){var t,s,a;return(0,xe.jsxs)("div",{className:Mn,children:[(0,xe.jsx)("div",{className:On,children:(0,xe.jsxs)("a",{href:"/users/".concat(e.login,"/classrooms"),target:"_blank",children:[(0,xe.jsx)("img",{src:me.Z.IMG_SERVER+"/images/"+(null==e?void 0:e.image_url),className:Yn}),f==(null==e?void 0:e.id)&&(0,xe.jsx)("div",{className:Hn,children:"创建者"})]})}),(0,xe.jsxs)("div",{className:qn,children:[(0,xe.jsx)("div",{className:Qn,children:null==e?void 0:e.name}),(0,xe.jsx)("div",{className:Gn,children:null==e?void 0:e.school})]}),f!=(null==e?void 0:e.id)&&(f==(null==i||null===(t=i.userInfo)||void 0===t?void 0:t.user_id)||1==(null==i||null===(s=i.userInfo)||void 0===s?void 0:s.role)||2==(null==i||null===(a=i.userInfo)||void 0===a?void 0:a.role))&&(0,xe.jsx)("div",{className:Un,onClick:function(){var n,t;n=null==e?void 0:e.id,x.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"删除提示",icon:null,content:"是否确定删除该管理员?",onOk:(t=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,ue.qN)({id:null==l?void 0:l.competitionId,ids:[n]}).then((function(e){0==(null==e?void 0:e.status)?(v.ZP.success("删除成功"),y()):v.ZP.error(null==e?void 0:e.message)}));case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})})},children:"删除"})]},n)}))}),(0,xe.jsx)(et,{queryData:y,competitionId:null==l?void 0:l.competitionId})]})})),it={flex_box_center:"flex_box_center___yg5U2",flex_space_between:"flex_space_between___RNHqN",flex_box_vertical_center:"flex_box_vertical_center___ZT47P",flex_box_center_end:"flex_box_center_end___X4Xs3",flex_box_column:"flex_box_column___OzmB0",all:"all___uSCy0",content:"content___pnhPh",content_left_red:"content_left_red___SmVi6",content_left_none:"content_left_none___jTbL2",content_left_flag:"content_left_flag___mae5L",content_left_info:"content_left_info___mISvV",content_left_title:"content_left_title___lcDeu",content_left_description:"content_left_description___Ris52",content_right:"content_right___AcQrD",content_right_span:"content_right_span___WiMTr",form_item:"form_item___eHCux",form_item_item:"form_item_item___IAs6n",fuzhi:"fuzhi___rSsFz",fuzhi_text:"fuzhi_text___UV3Dz",tijiao:"tijiao___AYAeP",tijiao_text:"tijiao_text___TC6tI",quetions_info:"quetions_info___qHhFg",scoremodal:"scoremodal___LmU2Z",title:"title___M1zQX",bottom:"bottom___P728Z",yes:"yes___gRJi8",no:"no___voaWW",form_item_item_select:"form_item_item_select___g8gNL"},lt="data:image/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base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAhdJREFUSEvFlr1vE0EQxd87O6KBFqREokSCFISCii8hKqhuz3KB+CtSBCEo4gJRBETLXwAFJl53VAniSxRIEJpEaZFwkTZQoMT70F3Ox+W4Dyu2jiusk2dufzuzb3aGGOORMech+SCvQZoFOQdJAAYgB5DeguzT2m9Vy7HMQa2WD+ceSTpbtVBoJ7kFz7vP1dV+kX8uUO32aezvP5d0eRxQ1ofkBzSbd9jtfv/Hlv1DQXAJUk/SyaPARt+Q3AEZsNf7mF7nUIQRzLk1AccmgSVQ4Dc870YamgDjNH6eNLKc9O6g2bw4Su9foDHvj3pmVdkIz5TWXomEFf6EatRwaKs+nMTORsOE6j0AGrNZJH0Cv0A+AzAv6WYelORLkJ/g3D0Bpwp8tmjtOardXtDe3tfCuiGf0NqleGMrkqL3lBof09q7sX1R0tPCtWZmLlBB0JFzyyXA17T21sguYxIoyQQWA19Iul1S9B3KmHVJ18vOJ2fhlUgAcWRF0eco9k0I3JZ0pkoQWWjaPx116caB7RC4K+l4FTCKKJPCcSNLnffPeoHA7n9JaZ2iWad8f1lAZypl4fuvBLTKy2K6hf9Q0oOSzS9M52oD+vC8L3BuScCJ0qstknbdl3dcT/W1pwh4MMfU14AjaJ0jRtIN6hyiEmidY+KhLlDXIJyto3AqwHDoQ7oKYA7AbOwzAPAD5Ds0Gn12uxtVXecPo4t94UegNcAAAAAASUVORK5CYII=",ot=["competitions","globalSetting","loading","dispatch","user"],at=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n=e.competitions,t=(e.globalSetting,e.loading),i=e.dispatch,s=e.user,a=p()(e,ot),c=f.Z.useForm(),u=d()(c,1)[0],_=(0,m.useState)(!0),g=d()(_,2),b=g[0],w=g[1],k=(0,m.useState)(!0),N=d()(k,2),I=N[0],A=N[1],S=(0,m.useState)(!0),C=d()(S,2),F=C[0],P=C[1],T=(0,m.useState)(!0),R=d()(T,2),E=R[0],L=R[1],D=(0,m.useState)(""),B=d()(D,2),V=B[0],z=B[1],M=(0,m.useState)(""),O=d()(M,2),Y=O[0],H=O[1],q=(0,m.useState)(""),Q=d()(q,2),G=Q[0],U=Q[1],W=(0,m.useState)(""),J=d()(W,2),K=J[0],X=J[1],$=n.Header,ee=(0,m.useState)(!1),ne=d()(ee,2),te=ne[0],ie=ne[1],le=(0,m.useState)([]),se=d()(le,2),oe=se[0],ae=se[1];console.log("Header:",$),(0,m.useEffect)((function(){re()}),[]);var re=function(){(0,ue.rZ)(null==a?void 0:a.competitionId).then((function(e){var n,t,i;w(null==e?void 0:e.name_finish),A(null==e?void 0:e.url_finish),P(null==e?void 0:e.time_finish),L(null==e?void 0:e.question_finish),z(null==e||null===(n=e.competition)||void 0===n?void 0:n.name),U(de()(null==e||null===(t=e.competition)||void 0===t?void 0:t.start_time).format("YYYY-MM-DD HH:mm")+" ~ "+de()(null==e||null===(i=e.competition)||void 0===i?void 0:i.end_time).format("YYYY-MM-DD HH:mm")),H("".concat(window.location.origin,"/competitions/detail/")+(null==e?void 0:e.identifier));var l="";for(var s in null==e?void 0:e.data){var o,r;if(Number(s)==Number((null==e?void 0:e.data.length)-1))l+="赛题"+(Number(s)+1)+":"+(null==e||null===(o=e.data[s])||void 0===o||null===(o=o.shixun)||void 0===o?void 0:o.name);else l+="赛题"+(Number(s)+1)+":"+(null==e||null===(r=e.data[s])||void 0===r||null===(r=r.shixun)||void 0===r?void 0:r.name)+"、"}X(l),u.setFieldValue("identifier",null==e?void 0:e.identifier),null==a||a.loadingFunction(!1)}))};return(0,xe.jsxs)("div",{className:it.all,children:[(0,xe.jsxs)("div",{className:it.content,children:[(0,xe.jsxs)("div",{className:b?it.content_left_none:it.content_left_red,children:[(0,xe.jsx)("img",{className:it.content_left_flag,src:b?lt:st}),(0,xe.jsxs)("div",{className:it.content_left_info,children:[(0,xe.jsx)("div",{className:it.content_left_title,children:"主标题设置"}),(0,xe.jsx)("div",{className:it.content_left_description,children:b?"您已设置主标题为:".concat(V):"请在设置中填写正确的竞赛主标题"})]})]}),b?(0,xe.jsx)("div",{className:it.content_right,onClick:function(){a.clickInformation("主标题")},children:"查看"}):(0,xe.jsxs)("div",{className:it.content_right,onClick:function(){a.clickInformation("主标题")},children:["去完善信息",(0,xe.jsx)("i",{className:"iconfont icon-xiaojiantou",style:{fontSize:"10px"}})]})]}),(0,xe.jsxs)("div",{className:it.content,children:[(0,xe.jsxs)("div",{className:I?it.content_left_none:it.content_left_red,children:[(0,xe.jsx)("img",{className:it.content_left_flag,src:I?lt:st}),(0,xe.jsxs)("div",{className:it.content_left_info,children:[(0,xe.jsx)("div",{className:it.content_left_title,children:"网址设置"}),(0,xe.jsxs)("div",{className:it.content_left_description,children:[I&&(0,xe.jsxs)("span",{children:["您已设置网址为:",(0,xe.jsx)("a",{href:Y,target:"_blank",children:Y})]}),!I&&(0,xe.jsx)("span",{children:"请在设置中填写正确的网址"})]})]})]}),I?(0,xe.jsx)("div",{className:it.content_right,onClick:function(){a.clickInformation("比赛地址")},children:"查看"}):(0,xe.jsxs)("div",{className:it.content_right,onClick:function(){a.clickInformation("比赛地址")},children:["去完善信息",(0,xe.jsx)("i",{className:"iconfont icon-xiaojiantou",style:{fontSize:"10px"}})]})]}),(0,xe.jsxs)("div",{className:it.content,children:[(0,xe.jsxs)("div",{className:F?it.content_left_none:it.content_left_red,children:[(0,xe.jsx)("img",{className:it.content_left_flag,src:F?lt:st}),(0,xe.jsxs)("div",{className:it.content_left_info,children:[(0,xe.jsx)("div",{className:it.content_left_title,children:"竞赛时间"}),(0,xe.jsx)("div",{className:it.content_left_description,children:F?"您已设置竞赛时间为:".concat(G):"请在设置中填写正确的竞赛时间"})]})]}),F?(0,xe.jsx)("div",{className:it.content_right,onClick:function(){a.clickInformation("竞赛时间")},children:"查看"}):(0,xe.jsxs)("div",{className:it.content_right,onClick:function(){a.clickInformation("竞赛时间")},children:["去完善信息",(0,xe.jsx)("i",{className:"iconfont icon-xiaojiantou",style:{fontSize:"10px"}})]})]}),(0,xe.jsxs)("div",{className:it.content,children:[(0,xe.jsxs)("div",{className:E?it.content_left_none:it.content_left_red,children:[(0,xe.jsx)("img",{className:it.content_left_flag,src:E?lt:st}),(0,xe.jsxs)("div",{className:it.content_left_info,children:[(0,xe.jsx)("div",{className:it.content_left_title,children:"赛题设置"}),1===$.mode&&(0,xe.jsxs)("div",{children:[E&&(0,xe.jsx)(y.Z,{placement:"bottom",title:"您已经设置的:"+K,children:(0,xe.jsxs)("div",{className:it.content_left_description,children:["您已经设置的:",K]})}),!E&&(0,xe.jsx)("div",{className:it.content_left_description,children:"请在设置中填写正确的赛题设置"})]}),2===$.mode&&(0,xe.jsxs)("div",{children:[$.course_id&&(0,xe.jsx)(y.Z,{placement:"bottom",title:"您已经成功设置:"+$.course_name+"为本次竞赛的课堂",children:(0,xe.jsxs)("div",{className:it.content_left_description,children:["您已经成功设置“",$.course_name,"”为本次竞赛的课堂"]})}),!$.course_id&&(0,xe.jsx)("div",{className:it.content_left_description,children:"请在设置中填写正确的赛题设置"})]})]})]}),E?(0,xe.jsx)("div",{className:it.content_right,onClick:a.clickQuetions,children:"查看"}):(0,xe.jsxs)("div",{className:it.content_right,onClick:a.clickQuetions,children:["去完善信息",(0,xe.jsx)("i",{className:"iconfont icon-xiaojiantou",style:{fontSize:"10px"}})]})]}),b&&I&&F&&E&&(0,xe.jsx)(xe.Fragment,{children:(0,xe.jsxs)("div",{className:it.content,children:[(0,xe.jsx)(f.Z,{form:u,style:{marginLeft:22},labelCol:{flex:"100px"},children:(0,xe.jsx)(f.Z.Item,{className:it.form_item,colon:!1,name:"identifier",children:(0,xe.jsx)(j.Z,{prefix:"".concat(window.location.origin,"/competitions/detail/"),disabled:!0,className:it.form_item_item})})}),(0,xe.jsxs)("div",{className:it.fuzhi,onClick:function(){var e=document.createElement("input");e.value="".concat(window.location.origin,"/competitions/detail/")+u.getFieldValue("identifier"),document.body.appendChild(e),e.select(),document.execCommand("Copy"),v.ZP.success("复制成功"),e.remove()},children:[(0,xe.jsx)("i",{className:"iconfont icon-fuzhi",style:{marginRight:"5px"}}),"复制"]}),(0,xe.jsx)("div",{className:it.fuzhi_text,children:"参赛人员可访问该网址参加比赛"})]})}),(0,xe.jsxs)("div",{className:it.content,children:[(0,xe.jsx)(_e.Z,{disabled:!(b&&I&&F&&E),type:"primary",className:it.tijiao,onClick:r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ie(!0),(0,pe.GY)({display_aliases:!0}).then((function(e){ae(null==e?void 0:e.schools)})).then((function(){var e,n,t;u.setFieldsValue({sponsor_schools:null===(e=s.userInfo)||void 0===e?void 0:e.user_school_id,sponsor_user_name:null===(n=s.userInfo)||void 0===n?void 0:n.real_name,sponsor_user_phone:null===(t=s.userInfo)||void 0===t?void 0:t.phone})}));case 2:case"end":return e.stop()}}),e)}))),children:"提交审核"}),(0,xe.jsx)("div",{className:"".concat(it.tijiao_text," ").concat(b&&I&&F&&E?"":"c-red"),children:b&&I&&F&&E?"准备好后,您可发起审核":"请完成竞赛指引后,再提交审核"})]}),(0,xe.jsxs)(x.Z,{title:!1,footer:!1,open:te,width:610,className:it.scoremodal,closable:!1,centered:!0,onCancel:function(){return ie(!1)},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("div",{className:it.title,children:"为了加快竞赛审核速度,请确认以下信息是否准确"}),(0,xe.jsx)("span",{onClick:function(){return ie(!1)},style:{cursor:"pointer"},className:it.close,children:(0,xe.jsx)("i",{className:"iconfont icon-guanbi",style:{color:"#979797",fontSize:"15px"}})})]}),(0,xe.jsx)("div",{className:it.content,children:(0,xe.jsxs)(f.Z,{form:u,className:it.formWrap,onFinish:function(e){(0,ue.qt)(l()(l()({},e),{},{id:null==a?void 0:a.competitionId})).then((function(e){0==(null==e?void 0:e.status)?(v.ZP.success("提交成功"),ie(!1),i({type:"competitions/getStaff",payload:{identifier:null==a?void 0:a.competitionId}}),i({type:"competitions/getHeader",payload:{identifier:null==a?void 0:a.competitionId}})):v.ZP.error(null==e?void 0:e.message)}))},labelCol:{flex:"110px"},children:[(0,xe.jsx)(f.Z.Item,{className:it.form_item,label:"主办方",colon:!1,name:"sponsor_schools",children:(0,xe.jsx)(h.default,{mode:"multiple",className:it.form_item_item_select,options:oe,fieldNames:{label:"name",value:"id"},placeholder:"请输入主办方",filterOption:function(e,n){var t;return(null!==(t=null==n?void 0:n.name)&&void 0!==t?t:"").toLowerCase().includes(e.toLowerCase())}})}),(0,xe.jsx)(f.Z.Item,{className:it.form_item,label:"主要负责人姓名",colon:!1,name:"sponsor_user_name",children:(0,xe.jsx)(j.Z,{className:it.form_item_item,placeholder:"请输入主要负责人姓名"})}),(0,xe.jsx)(f.Z.Item,{className:it.form_item,label:"主要负责人电话",colon:!1,name:"sponsor_user_phone",rules:[{pattern:new RegExp(/^((0\d{2,3}(-)?\d{7,8})|(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8})$/,"g"),message:"必须是正确的座机号或者手机号"}],children:(0,xe.jsx)(j.Z,{className:it.form_item_item,placeholder:"请输入主要负责人电话"})}),(0,xe.jsx)("div",{className:it.bottom,children:(0,xe.jsxs)(f.Z.Item,{children:[(0,xe.jsx)(Z.ZP,{size:"middle",className:it.no,onClick:function(){ie(!1)},children:"取消"}),(0,xe.jsx)(Z.ZP,{className:it.yes,size:"middle",type:"primary",htmlType:"submit",loading:t,children:"保存"})]})})]})})]})]})})),rt="ModalStyle___cW8H3",ct=["competitions","globalSetting","dispatch","user","loadingFunction","loading"],dt=["key","name"],ut=(0,_.connect)((function(e){return{competitions:e.competitions,loading:e.loading.effects}}))((function(e){var n=e.competitions,t=(e.globalSetting,e.dispatch),i=(e.user,e.loadingFunction),s=void 0===i?function(e){}:i,a=e.loading,c=(p()(e,ct),n.GuidesData),u=(0,_.useParams)().identifier,h=(0,m.useRef)(),g=f.Z.useForm(),y=d()(g,1)[0],b=f.Z.useWatch("list",y),w=function(){var e=r()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("====",n),!(n.list.length<2)){e.next=4;break}return v.ZP.warning("请至少添加2个赛程"),e.abrupt("return");case 4:return e.next=6,t({type:"competitions/postGuides",payload:l()({identifier:u},n)});case 6:0==e.sent.status&&(v.ZP.success("更新成功"),t({type:"competitions/getHeader",payload:{identifier:u}}),k());case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),k=function(){t({type:"competitions/getGuides",payload:{identifier:u}})};return(0,m.useEffect)((function(){s(!1),k()}),[]),(0,m.useEffect)((function(){var e;y.setFieldsValue(l()(l()({},(null==c?void 0:c.data)||{}),{},{list:null==c||null===(e=c.data)||void 0===e||null===(e=e.list)||void 0===e?void 0:e.map((function(e){return l()(l()({},e),{},{competition_time:null!=e&&e.competition_time?de()(null==e?void 0:e.competition_time):null})}))}))}),[c]),(0,xe.jsx)(rn.Z,{spinning:!!a["competitions/getGuides"]||!!a["competitions/postGuides"],children:(0,xe.jsx)("div",{className:"p30",children:(0,xe.jsxs)(f.Z,{form:y,colon:!1,onFinish:w,initialValues:{list:[{},{}]},children:[(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",gutter:20,children:[(0,xe.jsx)(ae.Z,{children:"赛程设置"}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{style:{marginBottom:0},name:"guides_is_hidden",valuePropName:"checked",children:(0,xe.jsx)(se.Z,{children:"隐藏"})})}),(0,xe.jsx)(ae.Z,{flex:1,children:(0,xe.jsx)(oe.Z,{wrap:!1,align:"middle",justify:"end",children:(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(N.op,{icon:(0,xe.jsx)("i",{className:"iconfont icon-xiaojiahao "}),onClick:function(){6!=(null==b?void 0:b.length)?h.current({}):v.ZP.warning("赛程最多可添加6个")},children:"新增"})})})})]}),(0,xe.jsx)("div",{className:"mt25 mb30",style:{padding:"14px 20px",background:"#F6F7F9",color:"#464F66"},children:"规则说明:在此版块管理员可以创建赛事的日程时间轴,每个赛程将在时间轴上按序号顺序依次排列。创建成功后将对平台用户公开,使用户能够轻松了解整个赛事的进度和安排。"}),(0,xe.jsx)(f.Z.List,{name:"list",children:function(e,n){var t=n.add,i=n.remove;return h.current=t,(0,xe.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:e.map((function(e,n){var t=e.key,s=e.name,o=p()(e,dt);return(0,xe.jsxs)("div",{children:[(0,xe.jsx)("div",{style:{background:"#F6F7F9",padding:"10px 20px"},children:(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,xe.jsxs)(ae.Z,{children:["赛程",(0,he.EM)(n+1)]}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)("span",{className:"c-red current",onClick:function(){x.Z.confirm({className:rt,icon:null,centered:!0,title:"提示",width:460,content:"确定要删除此赛程吗?删除后,请点击“保存更改”按钮以保存此次操作。",onOk:function(){i(s)}})},children:"删除"})})]})}),(0,xe.jsx)("div",{className:"p20",style:{border:"1px solid #F1F1F1",borderTopColor:"transparent"},children:(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",gutter:40,children:[(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,l()(l()({label:"赛程名称"},o),{},{name:[s,"name"],rules:[{required:!0,message:"请输入赛程名称"},{whitespace:!0,message:"赛程名称不能全为空格"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入赛程名称",maxLength:10,showCount:!0,style:{width:360}})}))}),(0,xe.jsx)(ae.Z,{flex:1,children:(0,xe.jsx)(f.Z.Item,l()(l()({label:"赛程时间"},o),{},{name:[s,"competition_time"],rules:[{required:!0,validator:function(e,t){var i;return null===t?Promise.reject("请选择截止时间"):0!==n&&de()(t).startOf("second")<=de()(null==b||null===(i=b[n-1])||void 0===i?void 0:i.competition_time).startOf("second")?Promise.reject("当前赛程时间需晚于上一个赛程时间,请重新选择"):Promise.resolve()}}],children:(0,xe.jsx)(le.default,{style:{width:"100%"},placeholder:"请选择赛程时间",format:"YYYY-MM-DD HH:mm",disabledDate:0!==n&&function(e){var t;return(0,he.Q8)(e,null,null,null==b||null===(t=b[n-1])||void 0===t?void 0:t.competition_time)},disabledTime:0!==n&&function(e){var t;return(0,he.d0)(e,null==b||null===(t=b[n-1])||void 0===t?void 0:t.competition_time)},suffixIcon:(0,xe.jsx)(xe.Fragment,{}),showTime:{format:"HH:mm",defaultValue:de()((0,he.U6)(),"HH:mm")}})}))})]})})]},t)}))})}}),(0,xe.jsx)(oe.Z,{className:"mt20",wrap:!1,justify:"end",gutter:20,children:(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{children:(0,xe.jsx)(Z.ZP,{type:"primary",htmlType:"submit",children:"保存更改"})})})})]})})})})),pt=["competitions","globalSetting","dispatch","user"],mt=(0,_.connect)((function(e){return{competitions:e.competitions,globalSetting:e.globalSetting,user:e.user}}))((function(e){var n=e.competitions,t=(e.globalSetting,e.dispatch),i=(e.user,p()(e,pt),(0,_.useParams)().identifier),l=(0,m.useState)(!0),s=d()(l,2),o=(s[0],s[1],(0,m.useState)("竞赛信息")),a=d()(o,2),r=a[0],c=a[1],u=(0,m.useState)(!0),h=d()(u,2),f=h[0],x=h[1],v=(0,m.useState)(null),g=d()(v,2),y=(g[0],g[1]),j=(0,m.useState)(""),b=d()(j,2),w=b[0],Z=b[1],k=function(e){x(e)};return(0,m.useEffect)((function(){}),[r]),(0,m.useEffect)((function(){"1"===n.actionTabs.key?(c("赛题设置"),t({type:"competitions/setActionTabs",payload:{}})):"5"===n.actionTabs.key?(c("竞赛指引"),t({type:"competitions/setActionTabs",payload:{}})):"7"===n.actionTabs.key&&(c("竞赛信息"),t({type:"competitions/setActionTabs",payload:{}}))}),[n.actionTabs]),(0,xe.jsx)("div",{className:I,ref:y,children:(0,xe.jsxs)("div",{className:A,children:[(0,xe.jsx)("div",{className:S,children:"基础设置"}),(0,xe.jsxs)("div",{className:C,children:[(0,xe.jsx)("div",{className:F,children:(0,xe.jsx)("div",{children:["竞赛信息","图片设置","赛题设置","赛程设置","管理人员","竞赛指引"].map((function(e,n){return(0,xe.jsx)("div",{className:r==e?T:P,onClick:function(){document.getElementById("js_nav").scrollIntoView({behavior:"smooth",block:"start"}),c(e),x(!0)},children:e},n)}))})}),(0,xe.jsx)("div",{className:R,children:(0,xe.jsxs)(rn.Z,{spinning:f,children:["竞赛信息"==r&&(0,xe.jsx)(ye,{competitionId:i,loadingFunction:k,formName:w}),"图片设置"==r&&(0,xe.jsx)(Ne,{competitionId:i,loadingFunction:k}),"赛题设置"==r&&(0,xe.jsx)(En,{competitionId:i,loadingFunction:k}),"赛程设置"==r&&(0,xe.jsx)(ut,{loadingFunction:k}),"管理人员"==r&&(0,xe.jsx)(tt,{competitionId:i,loadingFunction:k}),"竞赛指引"==r&&(0,xe.jsx)(at,{competitions:n,clickInformation:function(e){c("竞赛信息"),"主标题"==e?Z("name"):"比赛地址"==e?Z("identifier"):"竞赛时间"==e&&Z("start_time")},clickQuetions:function(){c("赛题设置")},competitionId:i,loadingFunction:k})]})})]})]})})})),_t=t(20834),ht="bg___htQ1O",ft="title___dw_wz",xt="left___CDy7v",vt="muitem___pDhZj",gt="muitemclick___WXoKV",yt="right___tNRAa",jt="button___tMn5K",bt={flex_box_center:"flex_box_center___Y72kq",flex_space_between:"flex_space_between___d30ej",flex_box_vertical_center:"flex_box_vertical_center___p_tif",flex_box_center_end:"flex_box_center_end___AyBVH",flex_box_column:"flex_box_column___NQalW",bg:"bg___cLFww",btns:"btns___uWjSy",confirm:"confirm___ZvnTx",cancel:"cancel___v9uv4",deletetitle:"deletetitle___DnoRO",submitwork:"submitwork___tVjOE",scoremodal:"scoremodal___iKA69",title:"title___GESKF",content:"content___r8E9Y",bottom:"bottom___HS8jb",yes:"yes___itu44",no:"no___Qs1U3",bottoms:"bottoms___ng0EW",loaderimg:"loaderimg___XJWfN",upload:"upload___zGUpB"},wt=t(42534),Zt=t(1012),kt=t(47257),Nt=t.n(kt),It=t(38279),At=t(16318),St=["competitions","globalSetting","loading","dispatch","selectedKeys","isedit","setisedit","user"],Ct=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n,t,i=e.competitions,s=(e.globalSetting,e.loading,e.dispatch),a=(e.selectedKeys,e.isedit),c=e.setisedit,u=e.user,h=(p()(e,St),(0,_.useParams)().identifier),f=i.RightItems,g=i.Header,b=(0,m.useState)(!1),w=d()(b,2),k=w[0],I=w[1],A=(0,m.useState)(!1),S=d()(A,2),C=S[0],F=S[1],P=(0,m.useState)(!0),T=d()(P,2),R=T[0],E=T[1],D=(0,m.useState)([]),B=d()(D,2),V=B[0],z=B[1],M=(0,m.useState)([]),O=d()(M,2),Y=O[0],H=O[1],q=(0,m.useState)(f.md_content),Q=d()(q,2),G=Q[0],U=Q[1],W=(0,m.useState)(!1),J=d()(W,2),K=J[0],X=J[1],$=(0,m.useState)(""),ee=d()($,2),ne=ee[0],te=ee[1],le=(0,m.useState)([]),ce=d()(le,2),pe=ce[0],fe=ce[1],ve=(0,m.useState)(!1),ge=d()(ve,2),ye=ge[0],je=ge[1],be=(0,m.useState)(),we=d()(be,2),ke=we[0],Ne=we[1],Ie=(0,m.useState)(!1),Ae=d()(Ie,2),Se=Ae[0],Ce=(Ae[1],(0,m.useState)(0)),Fe=d()(Ce,2),Pe=Fe[0],Te=Fe[1],Re=((0,_.useParams)(),de()()>de()(null==g?void 0:g.start_time)&&de()()0,openFileDialogOnClick:de()()>de()(null==g?void 0:g.start_time)&&de()()400)){e.next=5;break}return v.ZP.error("文件名称长度不能超过400个字符"),e.abrupt("return",!1);case 5:if("zip"==i){e.next=8;break}return v.ZP.error("仅支持zip上传"),e.abrupt("return",!1);case 8:if(!(t>2)){e.next=11;break}return v.ZP.error("《".concat(n.name,"》文件无法上传。超过单个文件上传大小限制(2GB)")),e.abrupt("return",!1);case 11:return fe([{name:n.name,file:n}]),e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),onRemove:(n=r()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:fe(L()(pe.filter((function(e){return e.name!==n.name}))));case 1:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})}),Ee=[{title:"选手姓名",dataIndex:"user_name",width:100,ellipsis:!0,render:function(e){return e||"--"}},{title:"提交状态",width:100,dataIndex:"evaluation_status",render:function(e){return"waiting"==e?(0,xe.jsx)("span",{style:{color:"#00B187 "},children:"排队中"}):"progress"==e?(0,xe.jsx)("span",{style:{color:""},children:"进行中"}):"cancelled"==e?(0,xe.jsx)("span",{style:{color:"#E53333"},children:"已取消"}):"completed"==e?(0,xe.jsx)("span",{style:{color:"#165DFF"},children:"已完成"}):"error"==e?(0,xe.jsx)("span",{style:{color:"#ff4d4f"},children:"提交失败"}):"--"}},{title:"得分",width:80,dataIndex:"evaluation_score",render:function(e){return e||"--"}},{title:"描述",width:222,dataIndex:"comment",render:function(e){return(0,xe.jsx)(y.Z,{title:e,children:(0,xe.jsx)("span",{children:e||"- -"})})}},{title:"提交时间",width:200,dataIndex:"commit_at",render:function(e){return e?de()(e).format("YYYY.MM.DD HH:mm:ss"):"--"}},{title:"下载文件",ellipsis:!0,dataIndex:"commit_id",render:function(e,n){var t,i,l,s,o,a;return(0,xe.jsx)(y.Z,{placement:"topLeft",title:null==n||null===(t=n.attachments)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.title,children:null!=n&&null!==(i=n.attachments)&&void 0!==i&&null!==(i=i[0])&&void 0!==i&&i.is_oss?(0,xe.jsx)("a",{onClick:function(){var e;(0,he.Nd)("","".concat(null==n||null===(e=n.attachments)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.url.replace("disposition=inline","")))},children:(null==n||null===(l=n.attachments)||void 0===l||null===(l=l[0])||void 0===l?void 0:l.title)||"--"}):(0,xe.jsx)("a",{href:me.Z.API_SERVER+(null==n||null===(s=n.attachments)||void 0===s||null===(s=s[0])||void 0===s?void 0:s.url),download:null==n||null===(o=n.attachments)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.title,children:(null==n||null===(a=n.attachments)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.title)||"--"})})}},{title:"测评信息",width:120,dataIndex:"commit_id",render:function(e,n){return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(Z.ZP,{style:{padding:0},type:"link",disabled:"completed"!=(null==n?void 0:n.evaluation_status),onClick:function(){var e=x.Z.confirm({centered:!0,okText:"确定",icon:null,cancelText:"取消",title:"运行结果",content:(0,xe.jsx)("div",{style:{maxHeight:500,overflow:"auto"},children:null==n?void 0:n.evaluation_info}),onOk:function(){return e.destroy()},onCancel:function(){return e.destroy()}})},children:"查看"}),(0,xe.jsx)(Z.ZP,{className:"ml10",style:{padding:0},type:"link",danger:!0,disabled:"waiting"!=(null==n?void 0:n.evaluation_status),onClick:function(){var e,t=x.Z.confirm({centered:!0,okText:"确定",icon:null,cancelText:"取消",title:"",content:(0,xe.jsx)(xe.Fragment,{children:"取消后,该成员提交的作品将不进行评测排队,请确认是否取消。"}),onOk:(e=r()(o()().mark((function e(){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(h,"/competition_commit_records/").concat(n.id,"/cancel.json"),{method:"POST",body:{record_id:n.id}});case 2:0==(null==(i=e.sent)?void 0:i.status)&&(v.ZP.success("取消成功"),t.destroy(),Ye());case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)}),onCancel:function(){return t.destroy()}})},children:"取消"})]})}}];(0,m.useEffect)((function(){var e;Se&&(null===(e=ke)||void 0===e||e.cancel())}),[Se]);var Le=0;(0,m.useEffect)((function(){Pe<3&&Pe&&pe.map(function(){var e=r()(o()().mark((function e(n){var t,i,l,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.status&&"error"!==n.status||Se){e.next=22;break}return n.status="uploading",n.file.status="uploading",e.next=5,De(n,{login:null==u||null===(t=u.userInfo)||void 0===t?void 0:t.login,container_type:"CompetitionWorkMode",container_id:null,description:"",realFileName:!0});case 5:if(0!=(null==(i=e.sent)?void 0:i.status)){e.next=20;break}if(console.log(i),++Le!=pe.length){e.next=18;break}return Te(0),je(!1),e.next=14,(0,Ze.ZP)("/api/competitions/".concat(h,"/competition_commit_records.json"),{method:"post",body:{attachment_ids:[null==i||null===(l=i.data)||void 0===l?void 0:l.attachment_id]}});case 14:0===(null==(s=e.sent)?void 0:s.status)&&(v.ZP.info(null==s?void 0:s.message),Ye()),fe([]),Ye();case 18:e.next=22;break;case 20:Te(2),je(!1);case 22:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())}),[Pe]);var De=function(){var e=r()(o()().mark((function e(n,t){var i,l,s,a,r,c,d,p,m,_,h;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.file_name=n.name,d=n.name,e.next=4,(0,Ze.ZP)("/api/buckets/get_competition_work_mode_token.json",{method:"get"});case 4:if(0===(null==(p=e.sent)?void 0:p.status)){e.next=12;break}return pe[pe.findIndex((function(e){return e.name===d}))].status="error",pe[pe.findIndex((function(e){return e.name===d}))].file.status="error",v.ZP.warning("上传失败,请重新尝试"),Te(2),je(!1),e.abrupt("return");case 12:return p.data=JSON.parse((0,wt.pe)(p.data)),ke=new(Nt())({endpoint:null==p||null===(i=p.data)||void 0===i?void 0:i.end_point,region:null==p||null===(l=p.data)||void 0===l?void 0:l.region,accessKeyId:null==p||null===(s=p.data)||void 0===s?void 0:s.access_key_id,accessKeySecret:null==p||null===(a=p.data)||void 0===a?void 0:a.access_key_secret,bucket:null==p||null===(r=p.data)||void 0===r?void 0:r.bucket,stsToken:null==p||null===(c=p.data)||void 0===c?void 0:c.security_token}),console.log(n,"file"),Ne(ke),(m=n.name.split(".")).pop(),_=t.realFileName?m.join("."):(0,Zt.Z)(),h=(new Date).getTime(),e.abrupt("return",new Promise((function(e,i){try{var l,s;ke.multipartUpload("competition_work_mode/".concat(null==u||null===(l=u.userInfo)||void 0===l?void 0:l.login,"/").concat(_+"_"+h).concat(d.indexOf(".")>-1?"."+d.split(".").pop():""),new Blob([n.file],{type:n.file.type}),{timeout:36e5,partSize:1002400,progress:function(e,n,t){try{console.log("进度",e,n,t),2==Pe&&(Te(1),je(!0));var i=pe.findIndex((function(e){return e.name===d}));console.log("index",i),pe[i].file.percent=100*e,pe[i].tempCheckpoint=n,fe(L()(pe))}catch(e){}},checkpoint:pe[pe.findIndex((function(e){return e.name===d}))].tempCheckpoint,callback:{customValue:{id:d+""},url:null==p||null===(s=p.data)||void 0===s?void 0:s.callback_url,host:null==p?void 0:p.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Ze.rz)(t)}}).then((function(t){var i,l=pe.findIndex((function(e){return e.name===d})),s="done";if(0===(null===(i=t.data)||void 0===i?void 0:i.status)){var o;n.response=null===(o=t.data)||void 0===o?void 0:o.data;var a=pe.findIndex((function(e){return e.name===d}));pe[a].status="done",pe[a].file.status="done"}else{var r;v.ZP.warning(null===(r=t.data)||void 0===r?void 0:r.message),s="error"}pe[l].status=s,pe[l].file.status=s,e(null==t?void 0:t.data)})).catch((function(e){pe[pe.findIndex((function(e){return e.name===d}))].status="error",pe[pe.findIndex((function(e){return e.name===d}))].file.status="error",v.ZP.warning("上传失败,请重新尝试"),fe(L()(pe)),i(e),Te(2),je(!1),console.log("err:",e)}))}catch(e){}})));case 21:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),Be=function(){var e=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==pe.length){e.next=3;break}return v.ZP.info("提交失败,请上传作品文件"),e.abrupt("return");case 3:je(!0),Te(1);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){null!=g&&g.is_member&&3===(null==g?void 0:g.mode)&&Ye()}),[g]),(0,m.useEffect)((function(){var e,n=[];null==f||null===(e=f.attachments)||void 0===e||e.map((function(e){var t={uid:e.id,name:e.title,response:{id:e.id}};n.push(t)})),H(n)}),[null==f?void 0:f.attachments]),(0,m.useEffect)((function(){te(null==f?void 0:f.name),U(f.md_content),X(null==f?void 0:f.hidden)}),[f.md_content||f.name||f.hidden]),console.log("---",Y);var Ve={name:"file",multiple:!0,withCredentials:!0,action:me.Z.API_SERVER+"/api/attachments.json",fileList:Y,onRemove:function(e){(0,ue.y8)({id:e.response.id})},onChange:function(e){H(L()(e.fileList))},beforeUpload:function(e){var n=e.size/1024/1024<150;return n||(v.ZP.info("文件大小必须小于150MB"),ie.Z.LIST_IGNORE)}};function ze(){return(ze=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s({type:"competitions/updateMdContent",payload:{attachment_ids:Me(Y),competition_module_id:f.id,md_content_id:f.md_id,content:G,identifier:h,hidden:K,description:ne}});case 2:0===(null==(n=e.sent)?void 0:n.status)&&(v.ZP.info("提交成功"),c(!1),s({type:"competitions/getItem",payload:{url:f.params_url}}),s({type:"competitions/getHeader",payload:{identifier:h}}),s({type:"competitions/setActionTabs",payload:{key:"showheader"}}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Me(e){var n=[];return(null==e?void 0:e.length)<=0||e&&(null==e||e.map((function(e){n.push(e.response.id)}))),n}function Oe(){return Oe=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x.Z.confirm({icon:!1,title:"提示",content:"删除页面后,数据不可恢复,请确认是否删除",onOk:function(){var e=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(h,"/competition_modules/").concat(f.id,".json"),{method:"delete"});case 2:0===e.sent.status&&(s({type:"competitions/getHeader",payload:{identifier:h}}),c(!1));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 1:case"end":return e.stop()}}),e)}))),Oe.apply(this,arguments)}var Ye=function(){var e=r()(o()().mark((function e(){var n,t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return E(!0),e.next=3,(0,Ze.ZP)("/api/competitions/".concat(h,"/competition_commit_records.json"),{method:"get"});case 3:0===(null==(n=e.sent)?void 0:n.status)&&(z(null==n||null===(t=n.data)||void 0===t?void 0:t.records),E(!1));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,xe.jsxs)("section",{className:bt.bg,children:[a?(0,xe.jsxs)("div",{children:[!(3===(null==g?void 0:g.mode)&&"entrance"===(null==f?void 0:f.module_type))&&(0,xe.jsxs)("div",{style:{marginBottom:30,display:"flex",alignItems:"center"},children:[(0,xe.jsx)(j.Z,{style:{width:"82%",height:40,borderRadius:2,border:"1px solid #DCDCDC"},value:ne,onChange:function(e){te(e.target.value)}})," ",(0,xe.jsx)(se.Z,{className:"ml40 font14",style:{marginLeft:"23px"},checked:K,onChange:function(e){X(e.target.checked)},children:(0,xe.jsx)("span",{style:{display:"inline-block"},children:"隐藏"})}),(0,xe.jsxs)("span",{className:bt.deletetitle,onClick:function(){!function(){Oe.apply(this,arguments)}()},children:[(0,xe.jsx)("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"删除页面"]})]}),(0,xe.jsx)(At.Z,{defaultValue:f.md_content,onChange:function(e){return U(e)}}),(0,xe.jsxs)(ie.Z,l()(l()({},Ve),{},{children:[(0,xe.jsx)("div",{className:"inline-block current",children:(0,xe.jsx)(N.op,{style:{borderRadius:2,marginTop:18},children:"上传附件"})}),(0,xe.jsx)("span",{className:"ml25 c-grey-999",children:"(单个文件150M以内)"})]})),(0,xe.jsxs)("div",{className:bt.btns,children:[(0,xe.jsx)(Z.ZP,{className:bt.cancel,onClick:function(){return c(!1)},children:"取消"}),(0,xe.jsx)(_e.Z,{className:bt.confirm,type:"primary",onClick:function(){return ze.apply(this,arguments)},children:"保存更改"})]})]}):(0,xe.jsxs)("div",{children:[!(null!=f&&f.md_content)&&!(3===(null==g?void 0:g.mode)&&"entrance"===(null==f?void 0:f.module_type))&&(0,xe.jsx)(un.Z,{}),(0,xe.jsx)(It.Z,{style:{marginBottom:30,width:"calc(1015px - 60px)"},value:f.md_content||""}),f&&f.attachments&&f.attachments.map((function(e,n){return(0,xe.jsx)("div",{children:(0,xe.jsxs)("a",{href:(null===me.Z||void 0===me.Z?void 0:me.Z.API_SERVER)+e.url,target:"_self",download:e.title,children:[(0,xe.jsx)("i",{style:{color:"#29BD8B"},className:"font-14 color-green iconfont icon-fujian mr8"}),(0,xe.jsx)("span",{style:{color:"#000000"},children:e.title}),(0,xe.jsx)("span",{style:{color:"#000000",marginLeft:"10px"},children:e.filesize})]})})}))]}),a&&3===(null==g?void 0:g.mode)&&"entrance"===(null==f?void 0:f.module_type)&&(0,xe.jsx)("div",{style:{borderTop:"1px solid #f1f1f1",margin:"20px 0"}}),"entrance"===(null==f?void 0:f.module_type)&&(0,xe.jsxs)("div",{style:{marginTop:15},children:[(0,xe.jsxs)("div",{style:{justifyContent:"space-between",display:"flex"},children:[(0,xe.jsx)("span",{style:{color:"#333333",fontWeight:600,fontSize:"14px"},children:"作品提交"}),(0,xe.jsxs)("span",{style:{color:"#9096A3",marginLeft:"auto",fontSize:"12px"},children:["作品提交时间",(0,xe.jsxs)("span",{style:{color:"#232B40",marginLeft:5},children:[null==g?void 0:g.start_time,"~",null==g?void 0:g.end_time]})]})]}),(0,xe.jsxs)("div",{style:{display:"flex",position:"relative",marginBottom:20},children:[(0,xe.jsx)("div",{className:"mt20",style:{width:333},onClick:function(){de()()de()(null==g?void 0:g.end_time)?v.ZP.warning("非作品提交时间,不可操作"):null!=g&&g.is_member||F(!0)},children:(0,xe.jsx)(ie.Z.Dragger,l()(l()({},Re),{},{maxCount:1,children:(0,xe.jsxs)("div",{style:{textAlign:"center"},children:[(0,xe.jsx)("p",{style:{marginTop:22},children:(0,xe.jsx)("i",{className:"iconfont icon-shangchuan",style:{color:"#5091FF",fontSize:"30px"}})}),(0,xe.jsxs)("p",{className:"mt10",style:{marginBottom:22},children:["拖拽文件或",(0,xe.jsx)("a",{children:"点击此处上传"})]})]})}))}),(0,xe.jsxs)("div",{style:{marginLeft:20,marginTop:120},children:[de()()>de()(null==g?void 0:g.start_time)&&de()()0&&(0,xe.jsxs)("div",{className:"mt40",style:{borderTop:"1px solid #F1F1F1"},children:[(0,xe.jsxs)(oe.Z,{className:"mt30",align:"middle",justify:"space-between",children:[(0,xe.jsx)(ae.Z,{style:{fontWeight:600},children:"我的成绩"}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(Z.ZP,{type:"primary",onClick:Ye,children:"更新"})})]}),(0,xe.jsx)(re.Z,{className:"mt30",loading:R,pagination:!1,dataSource:V,columns:Ee})]})]}),(0,xe.jsx)(x.Z,{title:"报名",open:C,okText:"立即报名",cancelText:"取消",centered:!0,width:320,onCancel:function(){F(!1)},onOk:function(){F(!1),I(!0)},children:(0,xe.jsx)("div",{children:"你暂未报名,请先报名"})}),(0,xe.jsxs)(x.Z,{title:!1,footer:!1,open:k,width:318,className:bt.scoremodal,closable:!1,centered:!0,children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("div",{className:bt.title,children:"报名"}),(0,xe.jsx)("span",{onClick:function(){return I(!1)},style:{cursor:"pointer"},className:bt.close,children:(0,xe.jsx)("i",{className:"iconfont icon-danchuangguanbi",style:{fontSize:"14px"}})})]}),(0,xe.jsx)("div",{className:bt.content,children:"选择参赛方式"}),(0,xe.jsxs)("div",{className:bt.bottoms,children:[(0,xe.jsx)(Z.ZP,{className:bt.no,onClick:function(){s({type:"competitions/setActionTabs",payload:{key:"2"}}),I(!1)},children:"加入战队"}),(0,xe.jsx)(Z.ZP,{className:bt.yes,onClick:function(){s({type:"competitions/setActionTabs",payload:{key:"3"}}),I(!1)},children:"创建战队"})]})]})]})})),Ft=t(83176),Pt=t(98281),Tt=t(78018),Rt=function(e){var n=e.data,t=e.isedit,i=e.selectedKeys,s=e.dispatch,a=(0,m.useState)([]),c=d()(a,2),u=c[0],p=c[1],h=(0,m.useState)(!1),f=d()(h,2),x=f[0],g=f[1],j=(0,_.useParams)().identifier,b=function(e,n,t){var i=Array.from(e),l=i.splice(n,1),s=d()(l,1)[0];return i.splice(t,0,s),i};(0,m.useEffect)((function(){n.length>0&&p(L()(n)||[])}),[n]);var w=function(){var e=r()(o()().mark((function e(n,i){var l,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.destination){e.next=2;break}return e.abrupt("return");case 2:if(!t){e.next=5;break}return v.ZP.info("请先保存或取消当前正在编辑的内容。"),e.abrupt("return");case 5:return l=b(i,n.source.index,n.destination.index),console.log("---",i,l),g(!0),e.next=10,(0,Ze.ZP)("/api/competitions/".concat(j,"/competition_modules/update_position.json"),{method:"post",body:{position_array:l}});case 10:a=e.sent,g(!1),0===a.status&&(s({type:"competitions/getHeader",payload:{identifier:j}}),s({type:"competitions/setActionTabs",payload:{key:"showheader"}}));case 13:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}();return(0,xe.jsx)("div",{children:(0,xe.jsx)(Tt.Z5,{onDragEnd:function(e){return w(e,u)},children:(0,xe.jsx)(Tt.bK,{droppableId:"droppable",children:function(e,n){return(0,xe.jsxs)("div",l()(l()({ref:e.innerRef},e.droppableProps),{},{children:[(0,xe.jsx)(rn.Z,{spinning:x,children:u.map((function(e,n){return(0,xe.jsx)(Tt._l,{draggableId:n.toString(),index:n,children:function(n,t){return(0,xe.jsx)("aside",l()(l()(l()({ref:n.innerRef},n.draggableProps),n.dragHandleProps),{},{children:(0,xe.jsx)(y.Z,{title:e.name,children:(0,xe.jsx)("div",{onClick:e.onClick,className:i===e.id?gt:e.className,children:e.name})})}))}},n)}))}),e.placeholder]}))}})})})},Et=["competitions","globalSetting","loading","dispatch","user"],Lt=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n,t,i,s,a,c,u,h,f,x,v=e.competitions,g=(e.globalSetting,e.loading,e.dispatch),y=e.user,j=(p()(e,Et),(0,_.useParams)().identifier),b=v.Header,w=(v.RightItems,v.Staff),Z=v.Prizes,k=v.Account,N=(0,m.useState)([]),I=d()(N,2),A=I[0],S=I[1],C=(0,m.useState)("qit"),F=d()(C,2),P=F[0],T=F[1],R=(0,m.useState)(!1),E=d()(R,2),L=E[0],D=E[1],B=(0,m.useState)([]),V=d()(B,2),z=V[0],M=V[1],O=(0,m.useState)(!1),Y=d()(O,2),H=Y[0],q=Y[1],Q=(0,m.useRef)(null),G=(0,m.useState)(),U=d()(G,2),W=U[0],J=U[1],K=[{type:"entrance",content:3!==(null==b?void 0:b.mode)?(0,xe.jsxs)("div",{style:{marginLeft:20},children:[(null==z||null===(n=z.data)||void 0===n?void 0:n.length)<=0&&((0,fe.eB)()||(null==b||null===(t=b.permission)||void 0===t?void 0:t.editable))&&(0,xe.jsx)(un.Z,{ButtonText:"去设置",Buttonclass:jt,ButtonClick:function(){g({type:"competitions/setActionTabs",payload:{key:"1"}})},customText:"您还没有设置赛题"}),de()()de()(null==b?void 0:b.start_time)||(0,fe.eB)()||(null==b||null===(s=b.permission)||void 0===s?void 0:s.editable))&&(null==z||null===(a=z.data)||void 0===a?void 0:a.map((function(e,n){return(0,xe.jsx)(Ft.Z,{dispatch:g,Header:b,StaffDetail:w,item:e,index:n})})))]}):(0,xe.jsx)(Ct,{isedit:H,setisedit:q,selectedKeys:W,isshow:!0})},{type:"certificate",content:(0,xe.jsxs)("div",{style:{padding:"15px 30px"},children:[" ",(0,xe.jsx)(Pt.Z,{dispatch:g,userid:null==y||null===(c=y.userInfo)||void 0===c?void 0:c.user_id,Prize:Z,Accounts:k,getAccounts:function(){var e;g({type:"competitions/Accounts",payload:{id:null==y||null===(e=y.userInfo)||void 0===e?void 0:e.user_id}})}})]})},{type:"qit",content:(0,xe.jsx)(Ct,{isedit:H,setisedit:q,selectedKeys:W})}];function X(){return $.apply(this,arguments)}function $(){return($=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(j,"/get_shixun_settings.json"),{method:"get"});case 2:0===(null==(n=e.sent)?void 0:n.status)&&M(n);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,m.useEffect)((function(){var e;if((null==b||null===(e=b.competition_modules)||void 0===e?void 0:e.length)>0){var n,t,i,s;if("showheader"!==v.actionTabs.key)"entrance"===(null==b||null===(t=b.competition_modules)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.module_type)&&T("entrance"),J(null==b||null===(i=b.competition_modules)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.id),g({type:"competitions/getItem",payload:{url:null==b||null===(s=b.competition_modules)||void 0===s||null===(s=s[0])||void 0===s?void 0:s.module_url}});var a=null==b||null===(n=b.competition_modules)||void 0===n?void 0:n.map((function(e){return l()(l()({},e),{},{label:null==e?void 0:e.name,key:null==e?void 0:e.id,className:vt,onClick:(n=r()(o()().mark((function n(){var t,i,l;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(J(null==e?void 0:e.id),q(!1),D(!0),document.getElementById("js_nav").scrollIntoView({behavior:"smooth",block:"start"}),"entrance"!==e.module_type){n.next=17;break}if(3!==(null==b?void 0:b.mode)){n.next=11;break}return n.next=9,g({type:"competitions/getItem",payload:{url:e.module_url}});case 9:return D(!1),n.abrupt("return");case 11:(0,fe.eB)()||null!==(t=b.permission)&&void 0!==t&&t.editable||null!=b&&b.team_member_present||null!=w&&w.enroll_ended||(b.personal?g({type:"competitions/setActionTabs",payload:{key:"6"}}):g({type:"competitions/setActionTabs",payload:{key:"4"}})),T("entrance"),X(),D(!1),n.next=29;break;case 17:if("certificate"!==e.module_type){n.next=25;break}return T("certificate"),n.next=21,g({type:"competitions/Prize",payload:{identifier:j,user_id:null==y||null===(i=y.userInfo)||void 0===i?void 0:i.user_id}});case 21:g({type:"competitions/Accounts",payload:{id:null==y||null===(l=y.userInfo)||void 0===l?void 0:l.user_id}}),D(!1),n.next=29;break;case 25:return T("qit"),n.next=28,g({type:"competitions/getItem",payload:{url:e.module_url}});case 28:D(!1);case 29:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})});var n})).filter((function(e){return"chart"!==(null==e?void 0:e.module_type)}));S(a),g({type:"competitions/setActionTabs",payload:{key:""}})}}),[b]),(0,m.useEffect)((function(){if("entrance"===v.actionTabs.key){var e;T("entrance");var n=null==b||null===(e=b.competition_modules)||void 0===e?void 0:e.find((function(e){return"entrance"===(null==e?void 0:e.module_type)}));J(n.id),3===(null==b?void 0:b.mode)?(D(!0),g({type:"competitions/getItem",payload:{url:n.module_url}}),D(!1)):X()}}),[v.actionTabs]),(0,xe.jsxs)("section",{className:ht,ref:Q,children:[(0,xe.jsxs)("div",{className:ft,children:[(0,xe.jsx)("span",{children:"竞赛概览"}),["qit","entrance"].includes(P)&&((0,fe.eB)()||(null==b||null===(u=b.permission)||void 0===u?void 0:u.editable))&&(0,xe.jsxs)("a",{style:{float:"right",color:"#165DFF"},onClick:function(){"qit"===P||3===(null==b?void 0:b.mode)?q(!0):g({type:"competitions/setActionTabs",payload:{key:"1"}})},children:[(0,xe.jsx)("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF"}})," 编辑"]})]}),(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsxs)("div",{className:xt,children:[(0,fe.Ny)()||null!=b&&null!==(h=b.permission)&&void 0!==h&&h.editable?(0,xe.jsx)("div",{children:(0,xe.jsx)(Rt,{dispatch:g,selectedKeys:W,data:A,isedit:H})}):(0,xe.jsx)(_t.Z,{style:{border:"none"},selectedKeys:["".concat(W)],items:A}),((0,fe.Ny)()||(null==b||null===(f=b.permission)||void 0===f?void 0:f.editable))&&(0,xe.jsx)("span",{onClick:r()(o()().mark((function e(){var n,t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(j,"/competition_modules.json"),{method:"POST"});case 2:if(0!==(n=e.sent).status){e.next=10;break}return J(null==n||null===(t=n.data)||void 0===t?void 0:t.id),g({type:"competitions/getHeader",payload:{identifier:j}}),T("qit"),e.next=9,g({type:"competitions/getItem",payload:{url:null==n||null===(i=n.data)||void 0===i?void 0:i.module_url}});case 9:g({type:"competitions/setActionTabs",payload:{key:"showheader"}});case 10:case"end":return e.stop()}}),e)}))),style:{marginLeft:20,marginTop:20,border:"1px solid #BACFFE",color:"#3061D0",fontSize:12,width:80,height:28,display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:"+ 新增栏目"})]}),(0,xe.jsx)("div",{className:yt,children:(0,xe.jsx)(rn.Z,{spinning:L,children:(0,xe.jsx)("div",{style:{minHeight:200},children:null===(x=K.find((function(e){return e.type===P})))||void 0===x?void 0:x.content})})})]})]})})),Dt={flex_box_center:"flex_box_center___M4JlS",flex_space_between:"flex_space_between___ft0RM",flex_box_vertical_center:"flex_box_vertical_center___q2FOd",flex_box_center_end:"flex_box_center_end___sHMG4",flex_box_column:"flex_box_column____iI7H",bg:"bg___k6sPc",title:"title___g14V4",right:"right___m_DFD",left:"left___mwgoj",muitem:"muitem___oVuqT",muitemselect:"muitemselect___S4V8Y",searchWrap:"searchWrap___VZKxz",search:"search___NaLMi",searchIcon:"searchIcon___kyXjW",button:"button___9r1Cv",footer:"footer___FeXKb",clear_button:"clear_button___tLyhc",save_button:"save_button___jdXaq"},Bt="data:image/png;base64,iVBORw0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YnGLQYKqvCOn5/8nFzLAkcXMNjnSO3Lb7pWct+G/rLk6Oboy0OcpshpxUBm4mC+H+427rahW2ETfr0CqGdOSRwdQf+2jn26qLyF7K33waNFT7HW30a2A4iculhO2Cje5ssKBlIZ23Nj718vi1bXcv018/56c+7ufYGdEqKhHR7WBukcAFAffEXLNvcmRkRF8/+59ZfmcgM6jazwAAAABJRU5ErkJggg==",Mt=["competitions","globalSetting","loading","dispatch","user"],Ot=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n,t,i,s,a,c,u,h=e.competitions,f=(e.globalSetting,e.loading,e.dispatch,e.user,p()(e,Mt),(0,_.useParams)().identifier),x=h.Header,v=(h.RightItems,h.Staff,h.Prizes,h.Account,(0,m.useState)([])),g=d()(v,2),b=g[0],w=g[1],Z=(0,m.useState)("qit"),k=d()(Z,2),I=(k[0],k[1],(0,m.useState)(!1)),A=d()(I,2),S=A[0],C=A[1],F=(0,m.useState)(!1),P=d()(F,2),T=P[0],R=P[1],E=(0,m.useState)(!1),L=d()(E,2),D=L[0],B=L[1],V=(0,m.useState)({page:1,per_page:10,keyword:""}),z=d()(V,2),M=z[0],O=z[1],Y=(0,m.useState)(""),H=d()(Y,2),q=H[0],Q=H[1],G=(0,m.useState)(""),U=d()(G,2),W=U[0],J=U[1],K=(0,m.useState)(),X=d()(K,2),$=X[0],ee=X[1],ne=(0,m.useState)(),te=d()(ne,2),ie=te[0],le=te[1],ce=(0,m.useState)(""),ue=d()(ce,2),pe=ue[0],_e=ue[1],ve=(0,m.useState)(!1),ge=d()(ve,2),ye=ge[0],je=ge[1];function be(){return we.apply(this,arguments)}function we(){return(we=r()(o()().mark((function e(){var n,t,i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),e.next=3,(0,Ze.ZP)("/api/competitions/".concat(f,"/competition_questions.json"),{method:"get"});case 3:0===(null==(n=e.sent)?void 0:n.status)&&(Q(null==n||null===(t=n.data)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.identifier),ke(null==n||null===(i=n.data)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.identifier),a=null==n||null===(s=n.data)||void 0===s?void 0:s.map((function(e){return l()(l()({},e),{},{label:null==e?void 0:e.name,key:null==e?void 0:e.identifier,className:Dt.muitem,onClick:function(){Q(e.identifier),M.keyword="",O(l()({},M)),ke(e.identifier)}})})),w(a),_e(null==n?void 0:n.md_id),R(null==n?void 0:n.hidden_ranking),je(null==n?void 0:n.is_running_update_score));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ke(e){return Ne.apply(this,arguments)}function Ne(){return(Ne=r()(o()().mark((function e(n){var t,i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),t=null!=x&&x.personal?"/api/competitions/".concat(f,"/competition_charts/person_ranking.json"):"/api/competitions/".concat(f,"/competition_charts/team_ranking.json"),e.next=4,(0,Ze.ZP)(t,{method:"get",params:l()(l()({},M),{},{question_identifier:n||q})});case 4:if(i=e.sent,C(!1),0===(null==i?void 0:i.status)&&(ee(null==i?void 0:i.data),J(null==i||null===(s=i.data)||void 0===s?void 0:s.description)),3!==(null==x?void 0:x.mode)){e.next=13;break}return e.next=10,(0,Ze.ZP)("/api/competitions/".concat(f,"/competition_charts/work_mode.json"),{method:"get",params:l()({},M)});case 10:a=e.sent,C(!1),0===(null==a?void 0:a.status)&&le(a);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ie(){return(Ie=r()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=null!=x&&x.personal?"/api/competitions/".concat(f,"/competition_charts/person_ranking.xlsx"):"/api/competitions/".concat(f,"/competition_charts/team_ranking.xlsx"),(0,he.FH)("",(0,he.NY)({url:me.Z.API_SERVER+t,query:l()(l()({},M),{},{question_identifier:n||q})}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ae(){return(Ae=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n="/api/competitions/".concat(f,"/competition_charts/work_mode.xlsx"),(0,he.FH)("",(0,he.NY)({url:me.Z.API_SERVER+n,query:{keyword:null==M?void 0:M.keyword}}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,m.useEffect)((function(){be()}),[x]);var Se=function(e){M.keyword=e,O(l()({},M)),ke()},Ce=[{title:"排名",align:"center",dataIndex:"rank",width:80,ellipsis:!0,render:function(e,n,t){return(0,xe.jsxs)("span",{children:[1===e&&(0,xe.jsx)("img",{src:Bt}),2===e&&(0,xe.jsx)("img",{src:Vt}),3===e&&(0,xe.jsx)("img",{src:zt}),e>3&&e]})}},{title:null!=x&&x.personal?"参赛人员":"战队",align:"left",dataIndex:"name",width:222,ellipsis:!0,render:function(e,n){var t,i,l,s,o,a;return(0,xe.jsx)(y.Z,{title:null!=x&&x.personal&&null!=x&&null!==(t=x.need_apply_info)&&void 0!==t&&t.need_apply_name?null==n||null===(i=n.apply_info)||void 0===i?void 0:i.real_name:e,children:(0,xe.jsxs)("span",{children:[(0,xe.jsx)("img",{width:30,height:30,style:{borderRadius:"50%",marginRight:"10px"},src:me.Z.IMG_SERVER+"/images/"+(null==n?void 0:n.image_url)}),null!=x&&x.personal?null!=x&&null!==(l=x.need_apply_info)&&void 0!==l&&l.need_apply_name?(null==n||null===(s=n.apply_info)||void 0===s||null===(s=s.real_name)||void 0===s?void 0:s.length)>4?(null==n||null===(o=n.apply_info)||void 0===o||null===(o=o.real_name)||void 0===o?void 0:o.substring(0,4))+"...":null==n||null===(a=n.apply_info)||void 0===a?void 0:a.real_name:(null==e?void 0:e.length)>4?e.substring(0,4)+"...":e:e]})})}},{title:"学校/单位",align:"left",dataIndex:"school_name",width:533,ellipsis:!0,render:function(e,n){var t,i,l,s;return(0,xe.jsx)(y.Z,{title:null!=x&&null!==(t=x.need_apply_info)&&void 0!==t&&t.need_apply_school?(null==n||null===(i=n.apply_info)||void 0===i?void 0:i.school)||"- -":e.join("、")||"- -",children:(0,xe.jsx)("span",{children:null!=x&&null!==(l=x.need_apply_info)&&void 0!==l&&l.need_apply_school?(null==n||null===(s=n.apply_info)||void 0===s?void 0:s.school)||"- -":e.join("、")||"- -"})})}},{title:"完成时长",align:"left",dataIndex:"times",width:195,ellipsis:!0,render:function(e){return(0,xe.jsx)("span",{children:e||"- -"})}},{title:(0,xe.jsxs)("div",{className:"flex item-center gap-8px",children:["比赛成绩 ",!x.personal&&(0,xe.jsx)(y.Z,{title:"本次竞赛将首先根据各战队的最高分进行排名。若出现多个战队最高分相同的情况,将按照战队的平均分进行排序。",children:(0,xe.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2 current"})})]}),dataIndex:"all_score",width:100,ellipsis:!0,render:function(e){return(0,xe.jsx)("span",{children:e||"- -"})}},!x.personal&&{title:"战队平均分",align:"right",dataIndex:"average_score",width:100,ellipsis:!0,render:function(e){return(0,xe.jsx)("span",{children:e||"- -"})}},{title:"",align:"center",dataIndex:"",ellipsis:!0,width:24}].filter((function(e){return e})),Fe=[{title:"排名",align:"center",dataIndex:"ranking",width:80,ellipsis:!0,render:function(e,n,t){return(0,xe.jsxs)("span",{children:[1===e&&(0,xe.jsx)("img",{src:Bt}),2===e&&(0,xe.jsx)("img",{src:Vt}),3===e&&(0,xe.jsx)("img",{src:zt}),e>3&&e]})}},{title:null!=x&&x.personal?"参赛人员":"战队",align:"left",dataIndex:null!=x&&x.personal?"user_name":"team_name",width:222,ellipsis:!0,render:function(e,n){var t,i,l,s,o,a;return(0,xe.jsx)(y.Z,{title:null!=x&&x.personal&&null!=x&&null!==(t=x.need_apply_info)&&void 0!==t&&t.need_apply_name?null==n||null===(i=n.apply_info)||void 0===i?void 0:i.real_name:e,children:(0,xe.jsxs)("span",{children:[(0,xe.jsx)("img",{width:30,height:30,style:{borderRadius:"50%",marginRight:"10px"},src:me.Z.IMG_SERVER+"/images/"+(null==n?void 0:n.image_url)}),null!=x&&x.personal?null!=x&&null!==(l=x.need_apply_info)&&void 0!==l&&l.need_apply_name?(null==n||null===(s=n.apply_info)||void 0===s||null===(s=s.real_name)||void 0===s?void 0:s.length)>4?(null==n||null===(o=n.apply_info)||void 0===o||null===(o=o.real_name)||void 0===o?void 0:o.substring(0,4))+"...":null==n||null===(a=n.apply_info)||void 0===a?void 0:a.real_name:(null==e?void 0:e.length)>4?e.substring(0,4)+"...":e:e]})})}},{title:"学校/单位",align:"left",dataIndex:"school_names",width:222,ellipsis:!0,render:function(e,n){var t,i,l,s;return(0,xe.jsx)(y.Z,{title:null!=x&&null!==(t=x.need_apply_info)&&void 0!==t&&t.need_apply_school?(null==n||null===(i=n.apply_info)||void 0===i?void 0:i.school)||"- -":e||"- -",children:(0,xe.jsx)("span",{children:null!=x&&null!==(l=x.need_apply_info)&&void 0!==l&&l.need_apply_school?(null==n||null===(s=n.apply_info)||void 0===s?void 0:s.school)||"- -":e||"- -"})})}},{title:"最高成绩提交时间",align:"left",dataIndex:"max_score_submit_time",width:195,ellipsis:!0,render:function(e){return e?de()(e).format("YYYY-MM-DD HH:mm:ss"):"--"}},{title:"描述",align:"left",dataIndex:"comment",width:222,ellipsis:!0,render:function(e){return(0,xe.jsx)(y.Z,{title:e,children:(0,xe.jsx)("span",{children:e||"- -"})})}},{title:"比赛成绩",align:"center",dataIndex:"score",width:100,ellipsis:!0,render:function(e){return(0,xe.jsx)("span",{children:e||"- -"})}},{title:"提交总次数",align:"center",dataIndex:"submit_sum",ellipsis:!0,width:100}];return(0,xe.jsxs)("section",{className:Dt.bg,children:[(0,xe.jsxs)(oe.Z,{align:"middle",className:Dt.title,children:[(0,xe.jsxs)(ae.Z,{flex:"1",children:[(0,xe.jsx)("span",{style:{color:"#232B40"},children:"排行榜"}),((0,fe.eB)()||(null==x||null===(n=x.permission)||void 0===n?void 0:n.editable))&&(0,xe.jsx)(se.Z,{checked:T,style:{marginLeft:10},onChange:function(e){var n;R(e.target.checked),(0,Ze.ZP)("/api/competitions/".concat(f,"/update_md_hidden_raking.json"),{method:"POST",body:{hidden_raking:e.target.checked,md_content_id:pe,competition_module_id:null==x||null===(n=x.competition_modules)||void 0===n||null===(n=n.find((function(e){return"chart"===e.module_type})))||void 0===n?void 0:n.id}})},children:(0,xe.jsx)("span",{style:{color:"#828693",marginLeft:"-3px"},children:"隐藏"})})]}),(0,xe.jsx)(ae.Z,{children:((0,fe.eB)()||(null==x||null===(t=x.permission)||void 0===t?void 0:t.editable))&&(0,xe.jsxs)("a",{style:{float:"right",color:"#165DFF",marginTop:"-2px"},onClick:function(){B(!0)},children:[(0,xe.jsx)("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF"}})," 编辑"]})})]}),(0,xe.jsx)("div",{children:(0,xe.jsxs)("div",{className:Dt.right,children:[!(null==$||null===(i=$.description)||void 0===i||!i.length)&&(0,xe.jsx)(It.Z,{className:"pl20 pr20",style:{marginTop:20,marginBottom:20,fontSize:"14px",color:"#6A7283"},value:null==$?void 0:$.description}),(0,xe.jsx)(rn.Z,{spinning:S,children:D?(0,xe.jsxs)("div",{style:{padding:20},children:[(0,xe.jsx)(At.Z,{defaultValue:W,onChange:function(e){return J(e)}}),(0,xe.jsxs)("div",{className:Dt.footer,children:[(0,xe.jsx)("div",{className:Dt.clear_button,onClick:function(){return B(!1)},children:"取消"}),(0,xe.jsx)("div",{className:Dt.save_button,type:"primary",onClick:r()(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,Ze.ZP)("/api/competitions/".concat(f,"/update_md_content.json"),{method:"POST",body:{content:W,md_content_id:pe,competition_module_id:null==x||null===(n=x.competition_modules)||void 0===n||null===(n=n.find((function(e){return"chart"===e.module_type})))||void 0===n?void 0:n.id}});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(B(!1),ke());case 4:case"end":return e.stop()}}),e)}))),children:"保存更改"})]})]}):(0,xe.jsxs)("div",{style:{padding:"0 20px 20px 20px"},children:[(0,xe.jsxs)("div",{className:Dt.left,style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("div",{style:{width:"80%",overflowX:"auto",overflowY:"hidden",marginRight:10},children:(0,xe.jsx)("ul",{style:{display:"flex",lineHeight:"38px",padding:0},children:null==b?void 0:b.map((function(e){return(0,xe.jsx)("li",{className:(null==e?void 0:e.identifier)===q?Dt.muitemselect:e.className,onClick:e.onClick,children:e.name})}))})}),(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsx)("div",{className:Dt.searchWrap,children:(0,xe.jsx)(j.Z.Search,{placeholder:null!=x&&x.personal?"请输入参赛人员名称":"请输入战队名称",size:"large",className:Dt.search,value:M.keyword,onChange:function(e){M.keyword=e.target.value,O(l()({},M))},suffix:(0,xe.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(Dt.searchIcon),onClick:function(){return Se(M.keyword)}}),onSearch:Se})}),(0,xe.jsxs)("div",{style:{marginLeft:20,display:"flex"},children:[((0,fe.eB)()||(null==x||null===(s=x.permission)||void 0===s?void 0:s.editable))&&(0,xe.jsx)("span",{className:Dt.button,onClick:function(){3===(null==x?void 0:x.mode)?function(){Ae.apply(this,arguments)}():function(e){Ie.apply(this,arguments)}(q)},children:"导出名单"}),((0,fe.eB)()||(null==x||null===(a=x.permission)||void 0===a?void 0:a.editable))&&(0,xe.jsx)("span",{className:Dt.button,style:{marginLeft:10},onClick:r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ye){e.next=2;break}return e.abrupt("return");case 2:if(C(!0),!S){e.next=5;break}return e.abrupt("return");case 5:return window.navigator.onLine||(je(!1),C(!1)),e.next=8,(0,Ze.ZP)("/api/competitions/".concat(f,"/update_course_score.json"),{method:"post"});case 8:0===e.sent.status&&(C(!1),je(!0),n=setInterval(r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(f,"/get_update_score_status.json"),{method:"get"});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(je(null==t?void 0:t.is_running_update_score),null!=t&&t.is_running_update_score||(be(),clearInterval(n)));case 4:case"end":return e.stop()}}),e)}))),5e3));case 10:case"end":return e.stop()}}),e)}))),children:ye?"成绩更新中":"更新成绩"})]})]})]}),!(null!=x&&null!==(c=x.permission)&&void 0!==c&&c.editable)&&T&&(0,xe.jsx)(un.Z,{customText:"排行榜当前为封榜状态"}),((0,fe.eB)()||(null==x||null===(u=x.permission)||void 0===u?void 0:u.editable)||!T)&&(0,xe.jsx)(N.Gi,{style:{marginTop:20,marginLeft:0},children:3===(null==x?void 0:x.mode)?(0,xe.jsx)(re.Z,{columns:Fe,dataSource:null==ie?void 0:ie.list,pagination:!1,scroll:{x:1140}}):(0,xe.jsx)(re.Z,{columns:Ce,dataSource:null==$?void 0:$.ranking,pagination:!1,scroll:{x:1140}})}),(0,xe.jsx)("div",{className:Dt.countWrap,style:{marginTop:20},children:(0,xe.jsx)(dn.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],total:3===(null==x?void 0:x.mode)?null==ie?void 0:ie.count:null==$?void 0:$.count,onChange:function(e,n){M.page=e,M.per_page=n,O(l()({},M)),ke()},pageSize:M.per_page,current:M.page})})]})})]})})]})})),Yt={flex_box_center:"flex_box_center___Ix1yk",flex_space_between:"flex_space_between___Nvu1L",flex_box_vertical_center:"flex_box_vertical_center___FcD_R",flex_box_center_end:"flex_box_center_end___xtV5Z",flex_box_column:"flex_box_column___rSUdX",bg:"bg___Fi0Vv",title:"title___oBAHH",left:"left___x4G2N",muitem:"muitem___JmDfB",right:"right___RXHwC",searchWrap:"searchWrap___yt5Di",search:"search___sA8FE",searchIcon:"searchIcon___yiKfD",button:"button___ZPcVk",items:"items___wZfml",img:"img___f3zFn",names:"names___k3ZzZ",time:"time___qmAOy",createtime:"createtime___KKvxc",width30:"width30___NxY4W",loaderimg:"loaderimg___aQ_vt",scoreByBlankRadio:"scoreByBlankRadio___X8rMJ",teamname:"teamname___or8vu",scoremodal:"scoremodal___jE4qx",content:"content___wGyD2",bottom:"bottom___mdNOm",yes:"yes___hQBiA",no:"no___AOje6",bottoms:"bottoms___ogmBQ",drawer_style:"drawer_style___aspKt",baseFormItem:"baseFormItem___L4XPW",jsinput:"jsinput___IhGOr",Spanradius:"Spanradius___Phpyg",modal_close:"modal_close___yAd65","ant-btn-default":"ant-btn-default___HT0Nv",ssss:"ssss___RB5TB",text:"text___nAWn1",teams_img:"teams_img___N9hpc",add_members:"add_members___BmaRs",back_manage:"back_manage___rLCVY"};Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var Ht="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik00OTkuNTY2IDEwMjAuNjM1Yy0xNDguODQ2IDAtNDI1LjYxOS0yMjcuNjkzLTQyNS42MTktNDQzLjAyNlYxNDguNjI2bDQyLjM1LS43MzFjLjg3OCAwIDk1LjM3OC0xLjk3NSAxOTIuODA1LTQxLjU0NUM0MDkuMDg4IDY1LjgyOSA0NzMuNiAxOS4wOSA0NzQuMTg1IDE4LjY1TDQ5OS41NjUuMjkzIDUyNS4wMiAxOC42NWMuNTg2LjQ0IDY1LjA5OCA0Ny4xMDQgMTY1LjA4NCA4Ny43NzJhNjA0LjQ1MyA2MDQuNDUzIDAgMCAwIDE5Mi45NSA0MS41NDVsNDIuMDU4LjczMS4yMiA0MjguODM3YzAgMjE1LjMzMy0yNzYuNyA0NDMuMS00MjUuNjkyIDQ0My4xTTE1OS44OSAyMzAuODM4djM0Ni42OTdjMCAxNjYuNTQ2IDI0MS4wOCAzNTcuMDgzIDMzOS42NzYgMzU3LjA4MyA5OC41OTYgMCAzMzkuNjc1LTE5MC41MzcgMzM5LjY3NS0zNTcuMDgzVjIzMC44MzlhNjkxLjYzOSA2OTEuNjM5IDAgMCAxLTE4MS40NjctNDQuODM3IDEwMDEuNjkxIDEwMDEuNjkxIDAgMCAxLTE1OC4yMDgtODAuOTY5Yy0yOS45ODkgMTkuMTY0LTg1LjI4NSA1MS4zNDYtMTU3Ljk4OSA4MC45N2E2OTEuNzEyIDY5MS43MTIgMCAwIDEtMTgxLjY4NyA0NC44MzZtMzE3LjAwMSA1MDcuOTA0TDI5Ni4yMyA1ODQuNzc3bDU1LjU4OC02NS4zMTYgMTE1LjcxMiA5OC41OTYgMjIwLjA4Ny0yNTMuNTEzIDY0Ljk1IDU2LjM5My0yNzUuNjc1IDMxNy44MDYiIGZpbGw9IiMxNjVERkYiIGZpbGwtb3BhY2l0eT0iLjgiLz48L3N2Zz4=",qt=["competitions","globalSetting","loading","dispatch","user"],Qt=[{id:"",name:"全部"},{id:1,name:"战队名称"},{id:2,name:"队长姓名"},{id:3,name:"指导老师"}],Gt={teacher:"教师",student:"学生",professional:"专业人士"},Ut=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n=e.competitions,t=(e.globalSetting,e.loading,e.dispatch,e.user,p()(e,qt),(0,_.useParams)().identifier),i=n.Header,s=(n.RightItems,n.Staff,n.Prizes,n.Account,(0,m.useState)([])),a=d()(s,2),c=a[0],u=a[1],h=(0,m.useState)({page:1,per_page:10,keyword:"",type:"",isteam:"mine"}),f=d()(h,2),v=f[0],g=f[1],j=(0,m.useState)(!1),w=d()(j,2),Z=w[0],k=w[1];function I(){return A.apply(this,arguments)}function A(){return(A=r()(o()().mark((function e(){var n,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(!0),n="mine"===v.isteam?"/api/competitions/".concat(t,"/competition_teams.json"):"/api/competitions/".concat(t,"/all_team_members.json"),e.next=4,(0,Ze.ZP)(n,{method:"get",params:v});case 4:i=e.sent,k(!1),0===(null==i?void 0:i.status)&&u(i);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,m.useEffect)((function(){I()}),[i]);var S=[{title:"序号",align:"left",dataIndex:"name",width:62,render:function(e,n,t){return(0,xe.jsx)("span",{style:{color:"#000000"},children:t+1})}},{title:"战队ID",align:"left",dataIndex:"competition_team_id",width:72,render:function(e){return(0,xe.jsx)("span",{style:{color:"#000000"},children:e||"- -"})}},{title:"战队名称",align:"left",dataIndex:"team_name",width:175,ellipsis:{showTitle:!1},render:function(e){return(0,xe.jsx)(y.Z,{placement:"topLeft",title:e,children:(0,xe.jsx)("span",{style:{color:"#000"},children:e||"- -"})})}},{title:"队员姓名",align:"left",dataIndex:"name",width:110,ellipsis:{showTitle:!1},render:function(e,n){return(0,xe.jsxs)("span",{style:{color:"#000000"},children:[e||"- -",(null==n?void 0:n.authentication)&&(0,xe.jsx)(y.Z,{title:"已实名认证",children:(0,xe.jsx)("img",{src:Ht,style:{marginLeft:5,marginTop:"-2px"}})})]})}},{title:"个人成绩",dataIndex:"score",width:86,render:function(e){return(0,xe.jsx)("span",{style:{color:"#000000"},children:(null==e?void 0:e.toString())||"- -"})}},{title:"职业",align:"left",dataIndex:"identity",width:102,render:function(e,n){return(0,xe.jsxs)("span",{style:{color:"#000000"},children:[Gt[e],(null==n?void 0:n.professional_certification)&&(0,xe.jsx)(y.Z,{title:"已职业认证",children:(0,xe.jsx)("img",{src:Ht,style:{marginLeft:5,marginTop:"-2px"}})})]})}},{title:"手机号",align:"left",dataIndex:"phone",width:120,render:function(e){return(0,xe.jsx)("span",{style:{color:"#666666"},children:e||"- -"})}},{title:"学号/工号",align:"left",width:110,ellipsis:{showTitle:!1},dataIndex:"student_id",render:function(e){return(0,xe.jsx)("span",{style:{color:"#666666"},children:e||"- -"})}},{title:"学校/单位",align:"left",dataIndex:"school",ellipsis:{showTitle:!1},render:function(e,n){var t,l,s,o,a,r,c;return(0,xe.jsx)(y.Z,{placement:"topLeft",title:null!=i&&null!==(t=i.need_apply_info)&&void 0!==t&&t.need_apply_school?(null==n||null===(l=n.apply_info)||void 0===l?void 0:l.school)||"--":e||"--",children:(0,xe.jsx)("span",{style:{color:"#666666"},children:null!=i&&null!==(s=i.need_apply_info)&&void 0!==s&&s.need_apply_school?null!==(o=n.apply_info)&&void 0!==o&&o.school?(null===(a=n.apply_info)||void 0===a?void 0:a.school.length)>6?(null===(r=n.apply_info)||void 0===r?void 0:r.school.substring(0,6))+"...":null===(c=n.apply_info)||void 0===c?void 0:c.school:"--":e?e.length>6?e.substring(0,6)+"...":e:"--"})})}},{title:"地区",align:"left",dataIndex:"province",width:58,render:function(e){return(0,xe.jsx)("span",{style:{color:"#666666"},children:e||"- -"})}},{title:"操作",align:"right",dataIndex:"is_cancel_score",width:120,render:function(e,n){return(0,xe.jsx)("span",{children:0===e?(0,xe.jsx)("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:function(){var e;x.Z.confirm({icon:null,title:"取消成绩",content:"请确认是否取消该成员成绩,取消后该成员的成绩将不能用于团队成绩。",onOk:(e=r()(o()().mark((function e(){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(t,"/set_score_status.json"),{method:"put",body:{competition_score_id:null==n?void 0:n.competition_score_id,is_cancel_score:1}});case 2:0===(null==(i=e.sent)?void 0:i.status)&&(v.page=1,g(l()({},v)),I());case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"取消成绩"}):(0,xe.jsx)("span",{onClick:r()(o()().mark((function e(){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(t,"/set_score_status.json"),{method:"put",body:{competition_score_id:null==n?void 0:n.competition_score_id,is_cancel_score:0}});case 2:0===(null==(i=e.sent)?void 0:i.status)&&(v.page=1,g(l()({},v)),I());case 4:case"end":return e.stop()}}),e)}))),style:{color:"#FD9200",cursor:"pointer"},children:"恢复成绩"})})}}],C=[{title:"序号",align:"left",dataIndex:"name",width:72,render:function(e,n,t){return(0,xe.jsx)("span",{style:{color:"#000000"},children:t+1})}},{title:"战队ID",align:"left",dataIndex:"id",width:113,render:function(e){return(0,xe.jsx)("span",{style:{color:"#000000"},children:e||"- -"})}},{title:"战队名称",align:"left",dataIndex:"name",width:167,render:function(e){return(0,xe.jsx)("span",{style:{color:"#000000"},children:null==e?void 0:e.toString()})}},{title:"战队成绩",align:"left",dataIndex:"score",width:136,render:function(e){return(0,xe.jsx)("span",{style:{color:"#000000"},children:e})}},{title:"队长姓名",align:"left",dataIndex:"leader_name",width:149,ellipsis:{showTitle:!1},render:function(e,n){return(0,xe.jsx)(y.Z,{placement:"topLeft",title:e,children:(0,xe.jsx)("span",{style:{color:"#666666"},children:e||"- -"})})}},{title:"指导老师",align:"left",dataIndex:"mail",width:150,ellipsis:{showTitle:!1},render:function(e,n){var t,i;return(0,xe.jsx)(y.Z,{placement:"topLeft",title:(null==n||null===(t=n.team_members)||void 0===t||null===(t=t.filter((function(e){return null==e?void 0:e.is_tutor_teacher})))||void 0===t?void 0:t.map((function(e){return e.name})).toString())||"- -",children:(0,xe.jsx)("span",{style:{color:"#666666"},children:(null==n||null===(i=n.team_members)||void 0===i||null===(i=i.filter((function(e){return null==e?void 0:e.is_tutor_teacher})))||void 0===i?void 0:i.map((function(e){return e.name})).toString())||"- -"})})}},{title:"战队人数",align:"left",dataIndex:"mail",width:125,render:function(e,n){var t;return(0,xe.jsx)("span",{style:{color:"#666666"},children:(null==n||null===(t=n.team_members)||void 0===t?void 0:t.length)||"- -"})}},{title:"报名时间",align:"left",dataIndex:"created_at",width:165,render:function(e){return(0,xe.jsx)("span",{style:{color:"#666666"},children:e||"- -"})}},{title:"操作",align:"right",dataIndex:"is_cancel_score",render:function(e,n){return(0,xe.jsx)("span",{children:0===e||!1===e?(0,xe.jsx)("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:function(){var e;x.Z.confirm({icon:null,centered:!0,title:"取消成绩",content:"请确认是否取消该战队成绩,取消后该战队的成绩在排行榜将视为无成绩,不进行排名。",onOk:(e=r()(o()().mark((function e(){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(t,"/set_score_status.json"),{method:"put",body:{competition_team_id:null==n?void 0:n.id,is_cancel_score:1}});case 2:0===(null==(i=e.sent)?void 0:i.status)&&(v.page=1,g(l()({},v)),I());case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"取消成绩"}):(0,xe.jsx)("span",{onClick:r()(o()().mark((function e(){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(t,"/set_score_status.json"),{method:"put",body:{competition_team_id:null==n?void 0:n.id,is_cancel_score:0}});case 2:0===(null==(i=e.sent)?void 0:i.status)&&(v.page=1,g(l()({},v)),I());case 4:case"end":return e.stop()}}),e)}))),style:{color:"#FD9200",cursor:"pointer"},children:"恢复成绩"})})}}];return(0,xe.jsxs)("div",{style:{padding:"15px 0",width:"1200px",margin:"auto"},children:[(0,xe.jsxs)("div",{style:{display:"flex",marginTop:"-10px"},children:[(0,xe.jsx)("div",{children:3!==(null==i?void 0:i.mode)?(0,xe.jsx)(b.ZP.Group,{className:Yt.scoreByBlankRadio,optionType:"button",options:[{label:"战队信息",value:"mine"},{label:"队员信息",value:"join"}],onChange:function(e){v.isteam=e.target.value,v.page=1,I()},value:v.isteam}):(0,xe.jsx)(b.ZP.Group,{className:Yt.scoreByBlankRadio,optionType:"button",options:[{label:"战队信息",value:"mine"}],onChange:function(e){v.isteam=e.target.value,v.page=1,I()},value:v.isteam})}),(0,xe.jsxs)("div",{style:{flex:1,textAlign:"end",display:"flex",justifyContent:"end"},children:[(0,xe.jsx)(N.t7,{style:{width:327,marginRight:20},dataSource:Qt,value:{id:v.type,value:v.keyword},onChange:function(e,n){v.keyword=e,v.type=n||"",g(l()({},v)),I()},placeholder:"请输入搜索内容"}),(0,xe.jsx)("span",{className:Yt.button,onClick:function(){var e="mine"===v.isteam?"/api/competitions/".concat(t,"/competition_teams.xlsx"):"/api/competitions/".concat(t,"/all_team_members.xlsx");(0,he.FH)("",(0,he.NY)({url:me.Z.API_SERVER+e,query:l()({},v)}))},children:"导出"})]})]}),(0,xe.jsx)(re.Z,{loading:Z,columns:"mine"===v.isteam?C:S,dataSource:"mine"===v.isteam?null==c?void 0:c.competition_teams:null==c?void 0:c.data,pagination:!1}),(0,xe.jsx)("div",{className:Yt.countWrap,style:{marginTop:20},children:(0,xe.jsx)(dn.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showTotal:function(e){return(0,xe.jsxs)("div",{style:{fontSize:14},children:["共 ",(0,xe.jsx)("span",{style:{color:"#165DFF"},children:e})," 条数据"]})},showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],total:null==c?void 0:c.count,onChange:function(e,n){v.page=e,v.per_page=n,g(l()({},v)),I()},pageSize:v.per_page,current:v.page})})]})})),Wt=t(38854),Jt=t(60324),Kt=t(680),Xt=t(56102),$t=t(33555),ei=(t(62642),t(89392)),ni=["competitions","globalSetting","loading","dispatch","user"],ti=h.default.Option,ii=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n,t,i,s,a,c,u,g,k,I,A,S,C,F,P,T,R,E,D,B,V,z,M,O,Y,H,q,Q,G=e.competitions,U=(e.globalSetting,e.loading,e.dispatch),W=e.user,J=(p()(e,ni),(0,_.useParams)().identifier),K=G.Header,X=G.competition_team,$=G.Staff,ee=(G.Prizes,G.Account,(0,m.useState)({page:1,per_page:10,keyword:"",type:1,isteam:"mine"})),ne=d()(ee,2),te=ne[0],ie=ne[1],le=(0,m.useState)([]),se=d()(le,2),ce=se[0],de=se[1],ue=(0,m.useState)([]),pe=d()(ue,2),_e=pe[0],he=pe[1],ve=(0,m.useState)(!1),ge=d()(ve,2),ye=ge[0],je=ge[1],be=(0,m.useState)([]),we=d()(be,2),ke=we[0],Ne=we[1],Ie=(0,m.useState)([]),Ae=d()(Ie,2),Se=Ae[0],Ce=Ae[1],Fe=(0,m.useState)(!1),Pe=d()(Fe,2),Te=Pe[0],Re=Pe[1],Ee=(0,m.useState)(""),Le=d()(Ee,2),De=Le[0],Be=Le[1],Ve=(0,m.useState)(""),ze=d()(Ve,2),Me=ze[0],Oe=ze[1],Ye=(0,m.useState)([]),He=d()(Ye,2),qe=He[0],Qe=He[1],Ge=(0,m.useState)(!1),Ue=d()(Ge,2),We=Ue[0],Je=Ue[1],Ke=(0,m.useState)([]),Xe=d()(Ke,2),$e=Xe[0],en=Xe[1],nn=(0,m.useRef)(),tn=(0,m.useState)(""),ln=d()(tn,2),sn=(ln[0],ln[1]),on=(0,m.useRef)(""),an=(0,m.useState)(!0),rn=d()(an,2),cn=rn[0],pn=rn[1],mn=(0,m.useState)(!1),_n=d()(mn,2),hn=_n[0],fn=_n[1],xn=f.Z.useForm(),vn=d()(xn,1)[0],gn=(0,m.useState)(),yn=d()(gn,2),jn=yn[0],bn=yn[1],wn=(0,m.useRef)(null),Zn=(0,m.useState)(),kn=d()(Zn,2),Nn=kn[0],In=kn[1],An=(0,m.useState)(1),Sn=d()(An,2),Cn=Sn[0],Fn=Sn[1],Pn=(0,m.useState)(!1),Tn=d()(Pn,2),Rn=Tn[0],En=Tn[1],Ln=(0,m.useState)([]),Dn=d()(Ln,2),Bn=Dn[0],Vn=Dn[1],zn=(0,m.useRef)((0,ei.throttle)((function(e){return qn(e)}),1200,{leading:!0,trailing:!0})).current,Mn=(0,m.useState)([]),On=d()(Mn,2),Yn=On[0],Hn=On[1],qn=function(){var e=r()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U({type:"account/getSchoolOption",payload:{keyword:n,limit:10,competition_id:null==K?void 0:K.identifier}});case 2:t=e.sent,Vn(null==t?void 0:t.schools),n&&""!=n&&Hn(null==t||null===(i=t.schools)||void 0===i?void 0:i.filter((function(e){return e.name.includes(n)})));case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){var e,n,t,i,l,s,o,a,r;(null!=K&&null!==(e=K.need_apply_info)&&void 0!==e&&e.need_apply_name||null!=K&&null!==(n=K.need_apply_info)&&void 0!==n&&n.need_apply_teacher_phone||null!=K&&null!==(t=K.need_apply_info)&&void 0!==t&&t.need_apply_student_id||null!=K&&null!==(i=K.need_apply_info)&&void 0!==i&&i.need_apply_sex||null!=K&&null!==(l=K.need_apply_info)&&void 0!==l&&l.need_apply_phone||null!=K&&null!==(s=K.need_apply_info)&&void 0!==s&&s.need_apply_grade||null!=K&&null!==(o=K.need_apply_info)&&void 0!==o&&o.need_apply_teacher_name||null!=K&&null!==(a=K.need_apply_info)&&void 0!==a&&a.need_apply_school)&&qn(1===(null==K?void 0:K.region_rule)||"81bjsjjs"===(null==K?void 0:K.identifier)?"":null==W||null===(r=W.userInfo)||void 0===r?void 0:r.school_name)}),[(null==K||null===(n=K.need_apply_info)||void 0===n?void 0:n.need_apply_name)||(null==K||null===(t=K.need_apply_info)||void 0===t?void 0:t.need_apply_teacher_phone)||(null==K||null===(i=K.need_apply_info)||void 0===i?void 0:i.need_apply_student_id)||(null==K||null===(s=K.need_apply_info)||void 0===s?void 0:s.need_apply_sex)||(null==K||null===(a=K.need_apply_info)||void 0===a?void 0:a.need_apply_phone)||(null==K||null===(c=K.need_apply_info)||void 0===c?void 0:c.need_apply_grade)||(null==K||null===(u=K.need_apply_info)||void 0===u?void 0:u.need_apply_teacher_name)||(null==K||null===(g=K.need_apply_info)||void 0===g?void 0:g.need_apply_school)]);function Qn(){return Gn.apply(this,arguments)}function Gn(){return(Gn=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:U({type:"competitions/competition_teams",payload:l()(l()({},te),{},{identifier:J})});case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Un(e){return Wn.apply(this,arguments)}function Wn(){return Wn=r()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U({type:"competitions/getStudents",payload:{identifier:J,keyword:Me,team_id:$e,page:n}});case 2:return(i=e.sent)&&Qe(1===n?L()(i.teachers):[].concat(L()(qe),L()(i.teachers))),e.abrupt("return",!((null===(t=i.teachers)||void 0===t?void 0:t.length)<20));case 5:case"end":return e.stop()}}),e)}))),Wn.apply(this,arguments)}(0,m.useEffect)((function(){hn||(bn(""),sn(""),on.current="")}),[hn]),(0,m.useEffect)((function(){Qn()}),[K]);var Jn,Xn=function(){var e=r()(o()().mark((function e(){var n,t,i,l=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=l.length>0&&void 0!==l[0]&&l[0])&&!cn||Rn){e.next=10;break}return En(!0),Fn(n?1:Cn+1),e.next=6,U({type:"competitions/getTeacher",payload:{identifier:J,keyword:De,team_id:$e,page:n?1:Cn+1}});case 6:i=e.sent,Ce(n?L()(i.teachers):[].concat(L()(Se),L()(i.teachers))),En(!1),(null===(t=i.teachers)||void 0===t?void 0:t.length)<20&&pn(!1);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$n=function(){var e=r()(o()().mark((function e(){var n,t,i,l=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=l.length>0&&void 0!==l[0]&&l[0])&&!cn||Rn){e.next=10;break}return En(!0),Fn(n?1:Cn+1),e.next=6,U({type:"competitions/getStudents",payload:{identifier:J,keyword:Me,team_id:$e,page:n?1:Cn+1}});case 6:i=e.sent,Qe(n?L()(i.teachers):[].concat(L()(qe),L()(i.teachers))),En(!1),(null===(t=i.teachers)||void 0===t?void 0:t.length)<20&&pn(!1);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function et(e){return nt.apply(this,arguments)}function nt(){return nt=r()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U({type:"competitions/getTeacher",payload:{identifier:J,keyword:De,team_id:$e,page:n}});case 2:return(i=e.sent)&&Ce(1===n?L()(i.teachers):[].concat(L()(Se),L()(i.teachers))),e.abrupt("return",!((null===(t=i.teachers)||void 0===t?void 0:t.length)<20));case 5:case"end":return e.stop()}}),e)}))),nt.apply(this,arguments)}return(0,xe.jsxs)("div",{style:{padding:"20px",width:"100%"},children:[(0,xe.jsxs)("div",{style:{display:"flex",marginBottom:10},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"baseline",zIndex:0},children:[((0,fe.eB)()||(null==K||null===(k=K.permission)||void 0===k?void 0:k.editable))&&(0,xe.jsx)(b.ZP.Group,{className:Yt.scoreByBlankRadio,optionType:"button",options:[{label:"我的战队",value:"mine"},{label:"全部战队",value:"join"}],onChange:function(e){te.isteam=e.target.value,te.keyword="",te.type="",te.page=1,Qn()},value:te.isteam}),"mine"===te.isteam&&!((0,fe.eB)()||null!=K&&null!==(I=K.permission)&&void 0!==I&&I.editable)&&(0,xe.jsxs)("span",{style:{fontSize:14},children:["我的战队(",null==X?void 0:X.my_teams_count,")"]}),"join"===te.isteam&&(0,xe.jsxs)("div",{style:{marginLeft:30,color:"#5F6368"},children:[(0,xe.jsx)("span",{children:"战队总数"}),(0,xe.jsx)("span",{style:{color:"#165DFF"},children:null==X?void 0:X.count}),(0,xe.jsx)("span",{style:{marginRight:20},children:"个"}),(0,xe.jsx)("span",{children:"参赛总人数"}),(0,xe.jsx)("span",{style:{color:"#165DFF"},children:null==X?void 0:X.members_count}),(0,xe.jsx)("span",{children:"个"})]})]}),(0,xe.jsxs)("div",{style:{flex:1,textAlign:"end",display:"flex",justifyContent:"end"},children:["join"===te.isteam&&(0,xe.jsx)(N.t7,{style:{width:379},dataSource:[],value:{id:te.type,value:te.keyword},onChange:function(e,n){te.keyword=e,te.page=1,te.type=4,ie(l()({},te)),Qn()},placeholder:"请输入战队名称或成员姓名进行搜索"}),"mine"===te.isteam&&(null==X||null===(A=X.my_teams)||void 0===A?void 0:A.filter((function(e){return!e.active})).length)>0&&(0,xe.jsxs)("span",{style:{fontSize:14,color:"#FA6400"},children:[(0,xe.jsx)(Kt.Z,{style:{marginRight:6,fontSize:14}})," 您有",null==X||null===(S=X.my_teams)||void 0===S?void 0:S.filter((function(e){return!e.active})).length,"个战队未满足参赛要求!为了不影响成绩,请设置战队成员"]})]})]}),"mine"===(null==te?void 0:te.isteam)&&(0,xe.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:null==X||null===(C=X.my_teams)||void 0===C?void 0:C.map((function(e,n){var t;return(0,xe.jsxs)("div",{className:"p20",style:{border:"1px solid #F6F7F9"},children:[(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",gutter:30,children:[(0,xe.jsx)(ae.Z,{flex:"600px",children:(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",gutter:10,children:[(0,xe.jsx)(ae.Z,{children:null!=e&&e.team_log?(0,xe.jsx)("img",{width:56,height:56,style:{borderRadius:"50%"},src:me.Z.IMG_SERVER+"/"+(null==e?void 0:e.team_log)}):(0,xe.jsx)("div",{style:{background:"#4EACFF",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:"50%"},children:e.name.length>2?e.name.substring(0,2):e.name})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",gutter:10,children:[(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(y.Z,{title:null==e?void 0:e.name,children:(0,xe.jsx)("span",{className:"multi_ellipsis1",style:{color:"#232B40"},children:null==e?void 0:e.name})})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)("i",{onClick:function(){"ended"!=(null==K?void 0:K.competition_status)?(fn(!0),In(e)):v.ZP.warning("竞赛已结束,无法编辑相关信息")},style:{color:"#165DFF",cursor:"pointer"},className:"iconfont icon-bianji10 font14"})})]})})]})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsxs)("span",{style:{color:"#5F6367",marginLeft:"50px"},children:[(0,xe.jsx)("span",{children:"邀请码"}),(0,xe.jsx)("span",{style:{margin:"0px 10px",color:"#3061D0",fontWeight:"bold"},title:e.invite_code,children:e.invite_code||"--"}),(0,xe.jsx)(Xt.CopyToClipboard,{text:"【竞赛邀请】".concat(null==W||null===(t=W.userInfo)||void 0===t?void 0:t.username,"邀请您加入【").concat(null==K?void 0:K.name,"】-《").concat(null==e?void 0:e.name,"》战队,您可以访问下方的链接,以队员的身份加入该战队。”链接:").concat(window.location.origin).concat(window.location.pathname,"?code=").concat(e.invite_code),onCopy:function(){return v.ZP.success("复制成功")},children:(0,xe.jsx)("i",{className:"iconfont icon-fuzhi font-14",style:{display:"inline-block",color:"#0152d9",cursor:"pointer"}})})]})}),(0,xe.jsx)(ae.Z,{flex:1,children:(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",justify:"end",gutter:20,children:[(null==e?void 0:e.manage_permission)&&(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)("div",{className:Yt.add_members,onClick:function(){he(structuredClone(null==e?void 0:e.team_members)),en(null==e?void 0:e.id),Ne(e)},children:"添加成员"})}),!(null!=e&&e.active)&&(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(Kt.Z,{style:{color:"#FA6400"}})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)("div",{className:Yt.back_manage,onClick:function(){var n;x.Z.confirm({title:null!=e&&e.manage_permission?"解散战队":"退出战队",content:"是否确认".concat(null!=e&&e.manage_permission?"解散":"退出","战队"),okButtonProps:{loading:ye},onOk:(n=r()(o()().mark((function n(){var t,i;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(je(!0),null==e||!e.manage_permission){n.next=8;break}return n.next=4,U({type:"competitions/DeleteTeam",payload:{identifier:J,id:null==e?void 0:e.id}});case 4:(t=n.sent)&&0===t.status&&(v.ZP.info("解散成功"),U({type:"competitions/getStaff",payload:{identifier:J}}),U({type:"competitions/getHeader",payload:{identifier:J}})),n.next=12;break;case 8:return n.next=10,U({type:"competitions/ExitTeam",payload:{identifier:J,id:null==e?void 0:e.id}});case 10:(i=n.sent)&&0===i.status&&(v.ZP.info("退出战队成功"),U({type:"competitions/getStaff",payload:{identifier:J}}),U({type:"competitions/getHeader",payload:{identifier:J}}));case 12:je(!1);case 13:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})},children:null!=e&&e.manage_permission?"解散战队":"退出战队"})})]})})]}),(0,xe.jsx)(re.Z,{dataSource:null==e?void 0:e.team_members,pagination:!1,style:{marginTop:"20px"},scroll:{y:300},columns:[{title:"战队成员",align:"left",dataIndex:"name",render:function(e){return(0,xe.jsx)(y.Z,{title:e,children:(0,xe.jsx)("span",{children:(null==e?void 0:e.length)>6?(null==e?void 0:e.substring(0,6))+"...":e||"- -"})})}},{title:"学号/工号",align:"left",ellipsis:{showTitle:!0},dataIndex:"student_id",render:function(e,n){return e||"- -"}},{title:"手机",align:"left",dataIndex:"phone",ellipsis:{showTitle:!0},render:function(e){return(0,xe.jsx)("span",{children:e||"- -"})}},{title:"学校/单位",align:"left",dataIndex:"school_name",render:function(e,n){var t,i,l,s,o,a,r;return(0,xe.jsx)(y.Z,{title:null!=K&&null!==(t=K.need_apply_info)&&void 0!==t&&t.need_apply_school?(null==ce||null===(i=ce.apply_info)||void 0===i?void 0:i.school)||"--":e||"--",children:(0,xe.jsx)("span",{children:null!=K&&null!==(l=K.need_apply_info)&&void 0!==l&&l.need_apply_school?null!==(s=ce.apply_info)&&void 0!==s&&s.school?(null===(o=ce.apply_info)||void 0===o?void 0:o.school.length)>6?(null===(a=ce.apply_info)||void 0===a?void 0:a.school.substring(0,6))+"...":null===(r=ce.apply_info)||void 0===r?void 0:r.school:"--":e?e.length>6?e.substring(0,6)+"...":e:"--"})})}},{title:"专业",align:"left",ellipsis:{showTitle:!0},dataIndex:"major_name",render:function(e,n){return e||"- -"}},{title:"职业",align:"left",ellipsis:{showTitle:!0},dataIndex:"identity",render:function(e,n){return e||"- -"}},{title:"角色",align:"left",dataIndex:"role",render:function(e,n){return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)("span",{style:{color:"leader"===e?"#3061D0":"#000000"},children:"leader"===e?"队长":null!=n&&n.is_tutor_teacher?"":"队员"}),(null==n?void 0:n.is_tutor_teacher)&&(0,xe.jsx)("span",{style:{color:"#00B187",marginLeft:"leader"===e?"10px":0},children:"指导教师"})]})}},(null==e?void 0:e.manage_permission)&&{title:"操作",align:"right",dataIndex:"role",render:function(n,t,i){return(0,xe.jsxs)("span",{style:{color:"#3061D0"},children:[("leader"!==n||(null==t?void 0:t.is_teacher))&&(0,xe.jsx)(Wt.Z,{dropdownRender:function(){return(0,xe.jsxs)(_t.Z,{children:["leader"!==n&&(0,xe.jsx)(_t.Z.Item,{style:{textAlign:"center"},children:(0,xe.jsx)("a",{onClick:r()(o()().mark((function n(){var i;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Ze.ZP)("/api/competitions/".concat(J,"/competition_teams/").concat(null==e?void 0:e.id,"/set_leader.json"),{method:"post",body:{user_id:null==t?void 0:t.user_id}});case 2:0===(null==(i=n.sent)?void 0:i.status)&&Qn();case 4:case"end":return n.stop()}}),n)}))),children:"设为队长"})},1),(null==t?void 0:t.is_teacher)&&(0,xe.jsx)(_t.Z.Item,{style:{textAlign:"center"},children:(0,xe.jsx)("a",{onClick:r()(o()().mark((function n(){var i;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Ze.ZP)("/api/competitions/".concat(J,"/competition_teams/").concat(null==e?void 0:e.id,"/set_tutor_teacher.json"),{method:"post",body:{user_id:null==t?void 0:t.user_id,is_tutor_teacher:null==t||!t.is_tutor_teacher}});case 2:0===(null==(i=n.sent)?void 0:i.status)&&(v.ZP.success(null!=t&&t.is_tutor_teacher?"取消成功":"设置成功"),Qn());case 4:case"end":return n.stop()}}),n)}))),children:null!=t&&t.is_tutor_teacher?"取消指导教师":"设为指导教师"})},2)]})},children:(0,xe.jsx)("a",{children:"修改角色"})}),"leader"!=n&&(0,xe.jsx)("a",{onClick:r()(o()().mark((function n(){var i;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Ze.ZP)("/api/competitions/".concat(J,"/competition_teams/").concat(null==e?void 0:e.id,"/delete_team_member.json"),{method:"delete",body:{user_id:null==t?void 0:t.user_id}});case 2:0===(null==(i=n.sent)?void 0:i.status)&&(v.ZP.success("删除成功"),Qn());case 4:case"end":return n.stop()}}),n)}))),style:{marginLeft:20},children:"删除"})]})}}].filter((function(e){return!!e}))})]})}))}),"join"===(null==te?void 0:te.isteam)&&0===(null==X||null===(F=X.competition_teams)||void 0===F?void 0:F.length)&&(0,xe.jsx)(un.Z,{}),"mine"===(null==te?void 0:te.isteam)&&0===(null==X||null===(P=X.my_teams)||void 0===P?void 0:P.length)&&(0,xe.jsx)(un.Z,{}),"join"===(null==te?void 0:te.isteam)&&(null==X||null===(T=X.competition_teams)||void 0===T?void 0:T.length)>0&&(0,xe.jsx)(re.Z,{dataSource:null==X?void 0:X.competition_teams,pagination:!1,style:{marginTop:0},scroll:{y:300},columns:[{title:"战队名称",align:"left",dataIndex:"image_url",width:250,render:function(e,n){return(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[null!=n&&n.team_log?(0,xe.jsx)("img",{src:me.Z.IMG_SERVER+"/"+(null==n?void 0:n.team_log),style:{width:"30px",height:"30px",marginRight:"10px",borderRadius:"50%"}}):(0,xe.jsx)("div",{className:Yt.teams_img,children:n.name.length>2?n.name.substring(0,2):n.name}),(0,xe.jsx)(y.Z,{title:null==n?void 0:n.name,children:(0,xe.jsx)("div",{className:Yt.teamname,children:null==n?void 0:n.name})})]})}},{title:"队长",align:"left",dataIndex:"leader_name",render:function(e,n){return(0,xe.jsx)("div",{children:e})}},{title:"成员人数",align:"left",ellipsis:{showTitle:!0},render:function(e,n){var t;return(0,xe.jsx)("span",{children:null==n||null===(t=n.team_members)||void 0===t?void 0:t.length})}},{title:"成员",align:"left",width:600,render:function(e,n){var t;return(0,xe.jsx)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center"},children:null==n||null===(t=n.team_members)||void 0===t?void 0:t.map((function(e,n){return(0,xe.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",fontSize:"12px"},children:[(0,xe.jsx)("span",{style:{color:"leader"==(null==e?void 0:e.role)?"#3061D0":"#000000",marginLeft:"leader"==(null==e?void 0:e.role)?0:"10px"},children:null==e?void 0:e.name}),"leader"==(null==e?void 0:e.role)&&(0,xe.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAcCAYAAAA0u3w+AAAAAXNSR0IArs4c6QAACeNJREFUWEelWAtwVNUZ/v//bJZAEJEaqBBEopuwxQ5ExkKhCGoBGcIgtSA+OoP4oAXGFMgDpIUUArKEEOg0VNupilT7wFFSC5RXwstqFWygBfIAJiESQKogb0JyTz2ve8+92R2YMTOwd8/ee+75X9//fT8CAAx8bn9aC+AyIByOwO9ARAAEIP0pvwMAEoC4Ft+QUF3LL2Jd/6Y/xQKRfEzep+5BtYdeU3vo34Hr/cQ91vv1e8U+jNFFBGgCgOMQoq2IofV/mZFaq94S/w+Fcc0c9iNCF/fA7gHUQ6SNkYe0jAs6wT2sZbC5Rx5a7us5os3z2mD3Pv2McLQx2nu/2owhVSBj+W9PS90Xz0TMmrL/bUR4wmyqPO+PYBsjTeS0d32RtiKv1sU/LrPBGGn2N9GV37Xx0mgdevs+5WTjcJ0G+hlixBFxdUa0688LH8QW21DMmlLVBIgyLc15zItlCumI+aNnomBSL5ie8VK27ZobVZOq5l1WBrnv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0reL3MYvqoy3XnT2IvAsgfTpo2F0Dg+pbGru0oS9x+K92+peM4cR3ZqdtN0Y+XnpytIOORFpb5bs90awTVax9IVWR7ZvRg6YGZQTBiSGjz29JZvduejlyRrxsWG5NGSJM8wEUwemUFNbvb/PST48qPPY97vDNX2u7zkRwLTkl5c738r79uTn4U7/+otOFSxfGAuAkEXRzJmLUigB/IEpeCPCtL4FOHgTOewcVhKpDVw/yEJGSSzerBzt2bN9ZbHLtanOOA/xXWmnXsnDyKKf1+jjkfKU7gnGZvQSNbV8DQCEBbuQAnTxnwvyO0d6xq7WNoznnTwPxbARINsTABQ59cCK8Ahz/jQSDb6QHiahs7dSuSvDerB5UKaH87a9Z/B8QdpE6Wg6cAmNCuUatgq/akoaInQMAB5B38UG7La0klphhVZAnJ9CDDCsjmdbIIuHQKaAH2zRraYhm976ZqGFAai6aSA/6FYHFnKQHjaJRMxo/59TsKo4exHhDJzE2BIQnzNwkkR7UCOwqaf/Q1yO4Zkik7vcRX0n7PMmk6yXgHA8s/MzF7GeluKckGHFKNDbUU+39HESqeNIjqAfdpmoPdXWDJV8kgyNFb/pt60Gv8eu+5aOH3vDpRnqQCCuIhRIPfoVnpJGIy0TfRoQ7XO9bqtlupoEadIVxcO7iAYYaBXrk3Yq4VdcG+n3Rt6ZsiChH98jgOBBsDbNw+R+npUoykOjv/1r25y3TzRqlAAAAAElFTkSuQmCC",style:{width:"28px",height:"14px",marginLeft:"5px"}})]},n)}))})}},{title:"操作",align:"left",ellipsis:{showTitle:!0},width:70,render:function(e,n){return(0,xe.jsx)("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:function(){de(n)},children:"查看"})}}]}),(0,xe.jsx)("div",{className:Yt.countWrap,style:{marginTop:20},children:(0,xe.jsx)(dn.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],total:"mine"===te.isteam?null==X?void 0:X.my_teams_count:null==X?void 0:X.count,onChange:function(e,n){te.page=e,te.per_page=n,ie(l()({},te)),Qn()},pageSize:te.per_page,current:te.page})}),(0,xe.jsxs)(x.Z,{title:!1,footer:!1,open:(null==ce||null===(R=ce.team_members)||void 0===R?void 0:R.length)>0,width:1e3,className:Yt.scoremodal,closable:!1,centered:!0,onCancel:function(){return de([])},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("div",{className:Yt.title,children:null==ce?void 0:ce.name}),(0,xe.jsx)("span",{onClick:function(){return de([])},style:{cursor:"pointer"},className:Yt.close,children:(0,xe.jsx)("i",{className:"iconfont icon-danchuangguanbi"})})]}),(0,xe.jsx)(re.Z,{dataSource:null==ce?void 0:ce.team_members,pagination:!1,style:{marginTop:30},scroll:{y:300},columns:[{title:"姓名",align:"left",dataIndex:"name",render:function(e){return(0,xe.jsx)(y.Z,{title:e,children:(0,xe.jsx)("span",{children:(null==e?void 0:e.length)>6?(null==e?void 0:e.substring(0,6))+"...":e||"- -"})})}},{title:"手机",align:"left",dataIndex:"phone",ellipsis:{showTitle:!0},render:function(e){return(0,xe.jsx)("span",{children:e||"- -"})}},{title:"学校/单位",align:"left",dataIndex:"school_name",render:function(e,n){var t,i,l,s,o,a,r;return(0,xe.jsx)(y.Z,{title:null!=K&&null!==(t=K.need_apply_info)&&void 0!==t&&t.need_apply_school?(null==ce||null===(i=ce.apply_info)||void 0===i?void 0:i.school)||"--":e||"--",children:(0,xe.jsx)("span",{children:null!=K&&null!==(l=K.need_apply_info)&&void 0!==l&&l.need_apply_school?null!==(s=ce.apply_info)&&void 0!==s&&s.school?(null===(o=ce.apply_info)||void 0===o?void 0:o.school.length)>6?(null===(a=ce.apply_info)||void 0===a?void 0:a.school.substring(0,6))+"...":null===(r=ce.apply_info)||void 0===r?void 0:r.school:"--":e?e.length>6?e.substring(0,6)+"...":e:"--"})})}},{title:"专业",align:"left",ellipsis:{showTitle:!0},dataIndex:"major_name",render:function(e,n){return e||"- -"}},{title:"职业",align:"left",ellipsis:{showTitle:!0},dataIndex:"identity",render:function(e,n){return e||"- -"}},{title:"学号",align:"left",ellipsis:{showTitle:!0},dataIndex:"student_id",render:function(e,n){return e||"- -"}},{title:"角色",align:"left",dataIndex:"role",width:115,render:function(e,n){return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)("span",{style:{color:"leader"===e?"#3061D0":"#000000"},children:"leader"===e?"队长":null!=n&&n.is_tutor_teacher?"":"队员"}),(null==n?void 0:n.is_tutor_teacher)&&(0,xe.jsx)("span",{style:{color:"#00B187",marginLeft:"leader"===e?"10px":0},children:"指导教师"})]})}}]})]}),(0,xe.jsx)(x.Z,{title:!1,footer:(0,xe.jsxs)("div",{className:Yt.bottom,children:[(0,xe.jsx)(Z.ZP,{onClick:function(){he([]),Je(!1),Re(!1),Oe(""),Be(""),Qn()},children:"取消"}),(0,xe.jsx)(Z.ZP,{loading:ye,type:"primary",onClick:r()(o()().mark((function e(){var n,t,i,l;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],t=[],i=[],_e&&_e.map((function(e,l){e.is_teacher?t.push(e.id):n.push(e.id),null!=e&&e.is_tutor_teacher&&i.push(e.id)})),e.next=6,U({type:"competitions/SubmitTeam",payload:{identifier:J,teamid:$e,member_ids:n,teacher_ids:t,tutor_teacher_ids:i,leader:nn.current}});case 6:(l=e.sent)&&0===l.status&&(v.ZP.info("修改成功"),he([]),Qn());case 8:case"end":return e.stop()}}),e)}))),children:"确认"})]}),open:(null==_e?void 0:_e.length)>0,width:1e3,className:Yt.scoremodal,closable:!1,destroyOnClose:!0,centered:!0,onCancel:function(){he([]),Ne([])},children:(0,xe.jsxs)("div",{onClick:function(){Re(!1),Je(!1)},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center",paddingTop:"10px"},children:[(0,xe.jsx)("div",{className:Yt.title,children:"设置战队成员"}),(0,xe.jsx)("span",{onClick:function(){Qn(),Re(!1),Je(!1),Oe(""),Be(""),he([]),Ne([])},style:{cursor:"pointer"},className:Yt.close,children:(0,xe.jsx)("i",{className:"iconfont icon-danchuangguanbi"})})]}),(0,xe.jsxs)("div",{style:{display:"flex",marginTop:30},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center",flex:1},children:[(0,xe.jsx)("span",{style:{color:"#5F6368"},children:"添加老师"}),(0,xe.jsx)(Jt.Z,{overlayStyle:{width:600},content:(0,xe.jsx)("div",{style:{maxHeight:260,overflow:"auto"},children:(0,xe.jsx)(Kn(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(e){Xn()},hasMore:cn,useWindow:!1,children:(0,xe.jsx)(re.Z,{showHeader:!1,pagination:!1,dataSource:Se,columns:[{align:"left",width:60,dataIndex:"image_url",render:function(e){return(0,xe.jsx)("img",{style:{marginLeft:"10px",marginRight:"3px"},className:Yt.loaderimg,src:me.Z.IMG_SERVER+"/images/"+"".concat(e)})}},{align:"left",dataIndex:"name"},{align:"left",dataIndex:"phone"},{align:"left",dataIndex:"identity"},{align:"left",dataIndex:"school_name"},{align:"left",dataIndex:"image_url",render:function(e,n){return(0,xe.jsx)("span",{className:Yt.task_hide,style:{textAlign:"left",width:"24%",color:n.enrolled?"#28be6c":n.enrolled||!1!==n.enrollable?"":"#F3730C",padding:"0px 5px",fontSize:"12px"},children:n.enrolled?"已加入本战队":n.enrolled||!1!==n.enrollable?"":"已加入其他战队"})}}],onRow:function(e){return{onClick:function(n){if(null!=e&&e.authentication||null==K||!K.is_authentication)if(e.enrolled)v.ZP.info("该用户已经加入战队");else if(e.need_mail)v.ZP.info("该用户没有邮箱");else if(e.need_phone)v.ZP.info("该用户没有手机号");else if((null==_e?void 0:_e.filter((function(n){return e.id===n.id})).length)>0)v.ZP.info("该用户已在战队列表,请不要重复添加");else{var t=_e;null!=e&&e.is_teacher&&(e.is_tutor_teacher=!0),t.push(e),Re(!1),he(L()(t))}else v.ZP.info("当前竞赛需要实名认证,该用户未进行实名认证不能参与。")}}}})})}),title:"",placement:"bottomLeft",open:Te,children:(0,xe.jsx)("div",{style:{marginLeft:16},className:Yt.searchWrap,children:(0,xe.jsx)(j.Z.Search,{placeholder:"请搜索教师姓名/手机号进行添加",size:"large",className:Yt.search,value:De,onChange:function(e){Be(e.target.value)},onSearch:function(e){Re(!0),Ce([]),Fn(1),et(1)},onBlur:function(){pn(!0),Fn(1),En(!1)},suffix:(0,xe.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(Yt.searchIcon),onClick:function(e){e.stopPropagation(),Re(!0),Ce([]),Fn(1),et(1)}})})})})]}),(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center",flex:1,justifyContent:"flex-end"},children:[(0,xe.jsx)("span",{style:{color:"#5F6368"},children:"添加学生/专业人士"}),(0,xe.jsx)(Jt.Z,{overlayStyle:{width:700},content:(0,xe.jsx)("div",{style:{maxHeight:260,overflow:"auto"},children:(0,xe.jsx)(Kn(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(e){$n()},hasMore:cn,useWindow:!1,children:(0,xe.jsx)(re.Z,{showHeader:!1,pagination:!1,dataSource:qe,columns:[{align:"left",width:60,dataIndex:"image_url",render:function(e){return(0,xe.jsx)("img",{style:{marginLeft:"10px",marginRight:"3px"},className:Yt.loaderimg,src:me.Z.IMG_SERVER+"/images/"+"".concat(e)})}},{align:"left",dataIndex:"name"},{align:"left",dataIndex:"phone"},{align:"left",dataIndex:"student_id"},{align:"left",dataIndex:"school_name"},{align:"left",dataIndex:"image_url",render:function(e,n){return(0,xe.jsx)("span",{className:Yt.task_hide,style:{textAlign:"left",width:"24%",color:n.enrolled?"#28be6c":n.enrolled||!1!==n.enrollable?"":"#F3730C",padding:"0px 5px",fontSize:"12px"},children:n.enrolled?"已加入本战队":n.enrolled||!1!==n.enrollable?"":"已加入其他战队"})}}],onRow:function(e){return{onClick:function(n){if(null!=e&&e.authentication||null==K||!K.is_authentication)if(e.enrolled)v.ZP.info("该用户已经加入战队");else if(e.need_mail)v.ZP.info("该用户没有邮箱");else if(e.need_phone)v.ZP.info("该用户没有手机号");else if((null==_e?void 0:_e.filter((function(n){return e.id===n.id})).length)>0)v.ZP.info("该用户已在战队列表,请不要重复添加");else{var t=_e;t.push(e),Je(!1),he(L()(t))}else v.ZP.info("当前竞赛需要实名认证,该用户未进行实名认证不能参与。")}}}})})}),title:"",placement:"bottomRight",open:We,children:(0,xe.jsx)("div",{style:{marginLeft:16},className:Yt.searchWrap,children:(0,xe.jsx)(j.Z.Search,{placeholder:"请搜索队员姓名/手机号并添加",size:"large",className:Yt.search,value:Me,onChange:function(e){Oe(e.target.value)},onSearch:function(e){Je(!0),Qe([]),Fn(1),Un(1)},onBlur:function(){pn(!0),Fn(1),En(!1)},suffix:(0,xe.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(Yt.searchIcon),onClick:function(e){e.stopPropagation(),Je(!0),Qe([]),Fn(1),Un(1)}})})})})]})]}),(0,xe.jsx)("div",{style:{display:"flex",marginBottom:"12px",marginTop:"20px"},children:(0,xe.jsxs)("p",{style:{flex:"1",color:"#666666"},children:[(0,xe.jsx)("span",{style:{color:"#9B9B9B"},children:"请添加战队成员:"}),$&&$.all_staff?(0,xe.jsxs)("span",{children:[$&&$.all_staff.minimum,"-",$&&$.all_staff.maximum,"名成员"]}):"",$&&$.teacher_staff?(0,xe.jsxs)("span",{children:[$&&$.teacher_staff.minimum,"-",$&&$.teacher_staff.maximum,"名教师"]}):"",$&&$.teacher_staff&&$.member_staff?"/":"",$&&$.member_staff?(0,xe.jsxs)("span",{children:[$&&$.member_staff.minimum,"-",$&&$.member_staff.maximum,"名学生"]}):""]})}),(0,xe.jsx)(re.Z,{dataSource:_e,pagination:!1,style:{marginTop:"-10px"},scroll:{y:300},columns:[{title:"头像",align:"left",width:60,dataIndex:"image_url",render:function(e,n){return(0,xe.jsx)("img",{className:Yt.loaderimg,style:{width:20,height:20},src:me.Z.IMG_SERVER+"/images/"+"".concat(e)})}},{title:"姓名",align:"left",dataIndex:"name",render:function(e){return(0,xe.jsx)(y.Z,{title:e,children:(0,xe.jsx)("span",{children:(null==e?void 0:e.length)>6?(null==e?void 0:e.substring(0,6))+"...":e||"- -"})})}},{title:"手机",align:"left",width:130,dataIndex:"phone",render:function(e){return(0,xe.jsx)(y.Z,{title:e,children:(0,xe.jsx)("span",{children:e||"- -"})})}},{title:"学校/单位",align:"left",dataIndex:"school_name",render:function(e,n){var t,i,l,s,o,a,r;return(0,xe.jsx)(y.Z,{title:null!=K&&null!==(t=K.need_apply_info)&&void 0!==t&&t.need_apply_school?(null==ke||null===(i=ke.apply_info)||void 0===i?void 0:i.school)||"--":e||"--",children:(0,xe.jsx)("span",{children:null!=K&&null!==(l=K.need_apply_info)&&void 0!==l&&l.need_apply_school?null!=ke&&null!==(s=ke.apply_info)&&void 0!==s&&s.school?(null==ke||null===(o=ke.apply_info)||void 0===o?void 0:o.school.length)>6?(null===(a=ke.apply_info)||void 0===a?void 0:a.school.substring(0,6))+"...":null===(r=ke.apply_info)||void 0===r?void 0:r.school:"--":(null==e?void 0:e.length)>6?(null==e?void 0:e.substring(0,6))+"...":e||"--"})})}},{title:"职业",align:"left",dataIndex:"identity",render:function(e,n){return e||"- -"}},{title:"学号",align:"left",dataIndex:"student_id",render:function(e,n){return e||"- -"}},{title:"角色",align:"left",dataIndex:"role",render:function(e,n){return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)("span",{style:{color:"leader"===e?"#3061D0":"#000000"},children:"leader"===e?"队长":null!=n&&n.is_tutor_teacher?"":"队员"}),(null==n?void 0:n.is_tutor_teacher)&&(0,xe.jsx)("span",{style:{color:"#00B187",marginLeft:"leader"===e?"10px":0},children:"指导教师"})]})}},{title:"操作",align:"right",dataIndex:"role",render:function(e,n,t){return(0,xe.jsxs)("span",{style:{color:"#3061D0"},children:[("leader"!==e||(null==n?void 0:n.is_teacher))&&(0,xe.jsx)(Wt.Z,{dropdownRender:function(){return(0,xe.jsxs)(_t.Z,{children:["leader"!==e&&(0,xe.jsx)(_t.Z.Item,{style:{textAlign:"center"},children:(0,xe.jsx)("a",{onClick:function(){var e=_e,i=_e&&_e.findIndex((function(e){return"leader"===e.role}));e[t].role="leader",e[i].role=e&&e[i].is_teacher?"teacher":"member";var l=e.sort((function(e,n){return e.creator?-1:1})).sort((function(e,n){return"leader"===e.role?-1:1}));he(L()(l)),nn.current=n.id},children:"设为队长"})},1),(null==n?void 0:n.is_teacher)&&(0,xe.jsx)(_t.Z.Item,{style:{textAlign:"center"},children:(0,xe.jsx)("a",{onClick:function(){var e=r()(o()().mark((function e(n){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(i=_e)[t].is_tutor_teacher=!i[t].is_tutor_teacher,he(L()(i)),nn.current=n.id;case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:null!=n&&n.is_tutor_teacher?"取消指导教师":"设为指导教师"})},2)]})},children:(0,xe.jsx)("a",{children:"修改角色"})}),"leader"!=e&&(0,xe.jsx)("a",{onClick:function(){var e=_e&&_e.filter((function(e){return e.id!=n.id}));he(L()(e))},style:{marginLeft:20},children:"删除"})]})}}]})]})}),(0,xe.jsxs)(x.Z,{title:!1,footer:!1,open:hn,width:700,className:Yt.scoremodal,closable:!1,destroyOnClose:!0,centered:!0,onCancel:function(){return fn(!1)},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("div",{className:Yt.title,children:"编辑战队"}),(0,xe.jsx)("span",{onClick:function(){return fn(!1)},style:{cursor:"pointer"},className:Yt.close,children:(0,xe.jsx)("i",{className:"iconfont icon-danchuangguanbi"})})]}),(0,xe.jsxs)("div",{className:Yt.content,children:[(0,xe.jsxs)(f.Z,{form:vn,layout:"vertical",initialValues:l()({name:null==Nn?void 0:Nn.name},null==Nn?void 0:Nn.apply_info),onFinish:function(){var e=r()(o()().mark((function e(n){var t,i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return je(!0),s=null===(t=Bn.find((function(e){return e.name===(null==n?void 0:n.school)})))||void 0===t?void 0:t.id,e.next=4,U({type:"competitions/UpTeam",payload:l()(l()({},n),{},{identifier:J,Teannameid:null==Nn?void 0:Nn.id,name:null==n?void 0:n.name,school_id:s,image:(null===(i=wn.current)||void 0===i||null===(i=i.getCroppedCanvas())||void 0===i?void 0:i.toDataURL("image/jpeg"))||""})});case 4:a=e.sent,je(!1),0===(null==a?void 0:a.status)&&(Qn(),fn(!1));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,xe.jsx)(f.Z.Item,{label:"战队名称",name:"name",rules:[{required:!0,validator:function(e,n){var t;return(null==n||null===(t=n.replaceAll(" ",""))||void 0===t?void 0:t.length)>0?Promise.resolve():Promise.reject("请填写竞赛名称")}}],children:(0,xe.jsx)(j.Z,{maxLength:60,className:Yt.baseFormItem,showCount:!0})}),(null==K||null===(E=K.need_apply_info)||void 0===E?void 0:E.need_apply_name)&&(0,xe.jsx)(f.Z.Item,{label:"参赛人员姓名",name:"real_name",className:Yt.jsinput,rules:[{required:!0,message:"请输入参赛人员姓名"},{whitespace:!0,message:"姓名不能为空"}],children:(0,xe.jsx)(j.Z,{className:Yt.baseFormItem,placeholder:"请输入参赛人员姓名",showCount:!0,maxLength:60})}),(null==K||null===(D=K.need_apply_info)||void 0===D?void 0:D.need_apply_sex)&&(0,xe.jsx)(f.Z.Item,{label:"性别",name:"sex",className:Yt.jsinput,rules:[{required:!0,message:"请选择参赛人员性别"}],children:(0,xe.jsxs)(b.ZP.Group,{children:[(0,xe.jsx)(b.ZP,{value:0,children:"男"}),(0,xe.jsx)(b.ZP,{value:1,children:"女"})]})}),(null==K||null===(B=K.need_apply_info)||void 0===B?void 0:B.need_apply_student_id)&&(0,xe.jsx)(f.Z.Item,{label:"学号",name:"student_id",className:Yt.jsinput,rules:[{required:!0,message:"请输入参赛人员学号"},{whitespace:!0,message:"学号不能为空"}],children:(0,xe.jsx)(j.Z,{className:Yt.baseFormItem,placeholder:"请输入参赛人员学号",showCount:!0,maxLength:60})}),(null==K||null===(V=K.need_apply_info)||void 0===V?void 0:V.need_apply_phone)&&(0,xe.jsx)(f.Z.Item,{label:"电话",name:"phone",className:Yt.jsinput,rules:[{required:!0,message:"请输入参赛人员电话"},{whitespace:!0,message:"电话不能为空"}],children:(0,xe.jsx)(j.Z,{className:Yt.baseFormItem,placeholder:"请输入参赛人员电话",showCount:!0,maxLength:60})}),(null==K||null===(z=K.need_apply_info)||void 0===z?void 0:z.need_apply_grade)&&(0,xe.jsx)(f.Z.Item,{label:"年级",name:"grade",className:Yt.jsinput,rules:[{required:!0,message:"请选择参赛人员年级"}],children:(0,xe.jsx)(h.default,{disabled:"81bjsjjs"===K.identifier,placeholder:"请选择参赛人员年级",size:"large",children:(Jn=(new Date).getFullYear(),Array(31).fill({}).map((function(e,n){return(0,xe.jsx)(ti,{value:Jn-n,children:(0,xe.jsx)("span",{children:Jn-n})},n)})))})}),(null==K||null===(M=K.need_apply_info)||void 0===M?void 0:M.need_apply_teacher_name)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师姓名",name:"teacher_name",className:Yt.jsinput,rules:[{required:!0,message:"请输入指导老师姓名"},{whitespace:!0,message:"指导老师姓名不能为空"}],children:(0,xe.jsx)(j.Z,{className:Yt.baseFormItem,placeholder:"请输入指导老师姓名",showCount:!0,maxLength:60})}),(null==K||null===(O=K.need_apply_info)||void 0===O?void 0:O.need_apply_teacher_phone)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师联系方式",name:"teacher_phone",rules:[{required:!0,message:"请输入指导老师联系方式"},{whitespace:!0,message:"指导老师联系方式不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入指导老师联系方式",showCount:!0,maxLength:60})}),(null==K||null===(Y=K.need_apply_info)||void 0===Y?void 0:Y.need_apply_school)&&1!==(null==K?void 0:K.region_rule)&&"81bjsjjs"!==K.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(w.Z,{size:"large",showSearch:!0,disabled:"81bjsjjs"===K.identifier,onChange:function(e){return zn(e)},children:Yn.map((function(e,n){return(0,xe.jsx)(ti,{value:e.name,children:e.name},n)}))})}),(null==K||null===(H=K.need_apply_info)||void 0===H?void 0:H.need_apply_school)&&1===(null==K?void 0:K.region_rule)||"81bjsjjs"===K.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(h.default,{showSearch:!0,disabled:"81bjsjjs"===K.identifier,children:Bn.map((function(e,n){return(0,xe.jsx)(ti,{value:e.name,children:e.name},n)}))})})]}),(0,xe.jsxs)("p",{style:{marginTop:"15px",marginLeft:"8px",width:"544px"},children:[(0,xe.jsx)("span",{children:"LOGO:"}),(0,xe.jsxs)("label",{id:"uploadBtn",style:{color:"#4DACFF",cursor:"pointer"},children:[(0,xe.jsx)("input",{type:"file",className:"sr-only",id:"inputImage",name:"file",accept:"image/*",onChange:function(e){var n=e.target.files[0];if(n&&n.size>2097152)v.ZP.info("仅支持文件大小小于2M的文件");else{var t=new FileReader;t.readAsBinaryString(n),t.onload=function(){var e=btoa(t.result);on.current="data:".concat(n.type,";base64,").concat(e),sn("data:".concat(n.type,";base64,").concat(e))},t.onerror=function(){}}},style:{display:"none"}}),"上传LOGO"]})," ",(0,xe.jsx)("span",{style:{marginLeft:10,color:"#FA6400"},children:"(支持jpg、gif、png格式的图片,建议文件小于2M)"})]}),(0,xe.jsxs)("div",{style:{marginTop:"15px",marginLeft:"8px",display:"flex"},children:[jn?(0,xe.jsx)("img",{className:Yt.Spanradius,src:jn}):null!=Nn&&Nn.team_log?(0,xe.jsx)("img",{src:me.Z.IMG_SERVER+"/"+(null==Nn?void 0:Nn.team_log),className:Yt.Spanradius}):(0,xe.jsx)("div",{className:Yt.Spanradius,children:(null==Nn||null===(q=Nn.name)||void 0===q?void 0:q.length)>2?null==Nn||null===(Q=Nn.name)||void 0===Q?void 0:Q.substring(0,2):null==Nn?void 0:Nn.name}),(0,xe.jsx)($t.Z,{style:{width:"320px",height:"320px",marginLeft:"30px",background:"#EEEEEE"},src:on.current||me.Z.IMG_SERVER+"/"+(null==Nn?void 0:Nn.team_log),guides:!1,ref:wn,crop:function(){bn(wn.current.getCroppedCanvas().toDataURL())}})]})]}),(0,xe.jsxs)("div",{className:Yt.bottom,style:{textAlign:"end",marginTop:"30px"},children:[(0,xe.jsx)(Z.ZP,{className:Yt.no,onClick:function(){fn(!1)},children:"取消"}),(0,xe.jsx)(Z.ZP,{loading:ye,className:Yt.yes,onClick:function(){vn.submit()},children:"确认"})]})]})]})})),li=["competitions","globalSetting","loading","dispatch","user"],si=[{id:"",name:"全部"},{id:1,name:"姓名"},{id:2,name:"手机号"},{id:3,name:"邮箱"}],oi={teacher:"教师",student:"学生",professional:"专业人士"},ai=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n,t=e.competitions,i=(e.globalSetting,e.loading,e.dispatch),s=(e.user,p()(e,li),(0,_.useParams)().identifier),a=t.Header,c=(t.competition_team,t.Staff),u=(t.Prizes,t.Account,(0,m.useState)([])),h=d()(u,2),f=h[0],g=h[1],j=(0,m.useState)(""),b=d()(j,2),w=(b[0],b[1],(0,m.useState)({page:1,per_page:10,keyword:"",type:"",personal:!0})),Z=d()(w,2),k=Z[0],I=Z[1];function A(){return S.apply(this,arguments)}function S(){return(S=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(s,"/all_team_members.json"),{method:"get",params:k});case 2:0===(null==(n=e.sent)?void 0:n.status)&&g(n);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var C=(0,m.useState)(!1),F=d()(C,2),P=F[0],T=F[1];(0,m.useEffect)((function(){null!=a&&a.personal&&A()}),[a]);var R=[{title:"序号",align:"left",dataIndex:"name",width:80,render:function(e,n,t){return(0,xe.jsx)("span",{children:t+1})}},{title:"参赛人",align:"left",dataIndex:"name",width:120,ellipsis:{showTitle:!1},render:function(e,n){return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(y.Z,{placement:"topLeft",title:e,children:(null==e?void 0:e.length)>4?e.substring(0,4)+"...":e}),(null==n?void 0:n.authentication)&&(0,xe.jsx)(y.Z,{title:"已实名认证",children:(0,xe.jsx)("img",{src:Ht,style:{marginLeft:5,marginTop:"-2px"}})})]})}},{title:"个人成绩",align:"left",width:100,dataIndex:"score",render:function(e){return(0,xe.jsx)("span",{children:e||"- -"})}},{title:"角色",align:"left",width:100,dataIndex:"identity",render:function(e,n){return(0,xe.jsxs)("span",{children:[oi[e],(null==n?void 0:n.professional_certification)&&(0,xe.jsx)(y.Z,{title:"已职业认证",children:(0,xe.jsx)("img",{src:Ht,style:{marginLeft:5,marginTop:"-2px"}})})]})}},{title:"手机号",align:"left",width:160,dataIndex:"phone",render:function(e){return(0,xe.jsx)("span",{children:e||"- -"})}},{title:"学号/工号",align:"left",dataIndex:"student_id",width:160,ellipsis:{showTitle:!1},render:function(e){return(0,xe.jsx)(y.Z,{placement:"topLeft",title:e,children:e||"- -"})}},{title:"学校/单位",align:"left",dataIndex:"school",ellipsis:{showTitle:!1},render:function(e){return(0,xe.jsx)(y.Z,{placement:"topLeft",title:e||"",children:e||"--"})}},{title:"地区",align:"left",dataIndex:"province",width:100,ellipsis:{showTitle:!1},render:function(e){return(0,xe.jsx)(y.Z,{placement:"topLeft",title:e||"",children:e||"- -"})}},{title:"操作",align:"right",dataIndex:"is_cancel_score",width:100,render:function(e,n){return(0,xe.jsx)("span",{children:0===e||!1===e?(0,xe.jsx)("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:function(){var e;x.Z.confirm({icon:null,centered:!0,title:"取消成绩",content:"请确认是否取消该成员成绩,取消后该成员的成绩将视为无成绩,不进行排名。",onOk:(e=r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(s,"/set_score_status.json"),{method:"put",body:{competition_score_id:null==n?void 0:n.competition_score_id,competition_team_id:null==n?void 0:n.competition_team_id,is_cancel_score:1}});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(v.ZP.info("取消成功"),k.page=1,I(l()({},k)),A());case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"取消成绩"}):(0,xe.jsx)("span",{onClick:r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(s,"/set_score_status.json"),{method:"put",body:{competition_score_id:null==n?void 0:n.competition_score_id,competition_team_id:null==n?void 0:n.competition_team_id,is_cancel_score:0}});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(v.ZP.info("恢复成功"),k.page=1,I(l()({},k)),A());case 4:case"end":return e.stop()}}),e)}))),style:{color:"#FD9200",cursor:"pointer"},children:"恢复成绩"})})}}];return(0,xe.jsxs)("section",{className:Yt.bg,children:[(0,xe.jsx)("div",{className:Yt.title,style:{display:"flex"},children:(0,xe.jsxs)(oe.Z,{style:{width:"100%"},children:[(0,xe.jsx)(ae.Z,{flex:"1",children:null!=a&&a.personal?"参赛人员":"战队详情"}),(0,xe.jsxs)(ae.Z,{children:[((0,fe.eB)()||(null==a||null===(n=a.permission)||void 0===n?void 0:n.editable)&&!a.personal)&&(0,xe.jsx)("span",{className:Yt.button,onClick:function(){T(!0)},children:"管理战队成绩"}),!(null!=c&&c.enroll_ended)&&!a.personal&&(0,xe.jsx)("span",{className:Yt.button,style:{margin:"0px 20px"},onClick:function(){i({type:"competitions/setActionTabs",payload:{key:"2"}})},children:"加入战队"})," ",!(null!=c&&c.enroll_ended)&&!a.personal&&(0,xe.jsxs)("span",{className:Yt.button,onClick:function(){i({type:"competitions/setActionTabs",payload:{key:"3"}})},children:[(0,xe.jsx)("i",{className:"iconfont icon-qizhi",style:{marginRight:6,fontSize:14,color:"#3061D0"}})," 创建战队"]})]})]})}),(0,xe.jsxs)("div",{style:{display:"flex"},children:[null!=a&&a.personal?(0,xe.jsxs)("div",{style:{padding:"20px",width:"100%"},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("div",{children:(0,xe.jsx)(N.t7,{style:{width:327,marginRight:15},dataSource:si,value:{id:k.type,value:k.keyword},onChange:function(e,n){k.keyword=e,k.type=n||"",I(l()({},k)),A()},placeholder:"请输入搜索内容"})}),(0,xe.jsx)("div",{style:{flex:1,textAlign:"end"},children:(0,xe.jsx)("span",{className:Yt.button,onClick:function(){(0,he.FH)("",(0,he.NY)({url:me.Z.API_SERVER+"/api/competitions/".concat(s,"/all_team_members.xlsx"),query:l()({},k)}))},children:"导出"})})]}),(0,xe.jsx)(re.Z,{style:{marginTop:20},columns:R,bordered:!1,dataSource:null==f?void 0:f.data,pagination:!1}),(0,xe.jsx)("div",{className:Yt.countWrap,style:{marginTop:20},children:(0,xe.jsx)(dn.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],total:null==f?void 0:f.count,onChange:function(e,n){k.page=e,k.per_page=n,I(l()({},k)),A()},pageSize:k.per_page,current:k.page})})]}):(0,xe.jsx)(ii,{}),(0,xe.jsx)(an.Z,{rootClassName:Yt.drawer_style,title:(0,xe.jsx)("div",{style:{fontSize:"16px"},children:"战队成绩"}),placement:"bottom",width:500,height:564,onClose:function(){return T(!1)},open:P,children:P?(0,xe.jsx)(Ut,{}):""})]})]})})),ri=t(85573),ci=t.n(ri),di={flex_box_center:"flex_box_center___s9TxG",flex_space_between:"flex_space_between___MGe6n",flex_box_vertical_center:"flex_box_vertical_center___nNXLw",flex_box_center_end:"flex_box_center_end___KE6DE",flex_box_column:"flex_box_column___gv8RV",bg:"bg___gk5zM",title:"title___Pp6ij",button:"button___EI7ve"},ui=["competitions","globalSetting","loading","dispatch","user"],pi=h.default.Option,mi=[{id:"",name:"全部"},{id:1,name:"姓名"},{id:2,name:"手机号"},{id:3,name:"邮箱"}],_i={teacher:"教师",student:"学生",professional:"专业人士"},hi=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n,t,i,s,a,c,u,g,Z,k,I,A,S,C,F,P,T,R,E,L,D,B,V,z,M,O,Y,H,q,Q,G,U,W,J,K,X,$,ee,ne,te,ie,le,ce,de=e.competitions,pe=(e.globalSetting,e.loading,e.dispatch),_e=e.user,ve=(p()(e,ui),(0,_.useParams)().identifier),ge=de.Header,ye=(0,m.useState)([]),je=d()(ye,2),be=je[0],we=je[1],ke=(0,m.useState)(!1),Ne=d()(ke,2),Ie=Ne[0],Ae=Ne[1],Se=f.Z.useForm(),Ce=d()(Se,1)[0],Fe=(0,m.useState)(!1),Pe=d()(Fe,2),Te=Pe[0],Re=Pe[1],Ee=(0,m.useState)(!1),Le=d()(Ee,2),De=Le[0],Be=Le[1],Ve=(0,m.useState)({page:1,per_page:10,keyword:"",type:"",personal:!0}),ze=d()(Ve,2),Me=ze[0],Oe=ze[1],Ye=(0,m.useState)([]),He=d()(Ye,2),qe=He[0],Qe=He[1],Ge=(0,m.useRef)((0,ei.throttle)((function(e){return Xe(e)}),1200,{leading:!0,trailing:!0})).current,Ue=(0,m.useState)([]),We=d()(Ue,2),Je=We[0],Ke=We[1],Xe=function(){var e=r()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe({type:"account/getSchoolOption",payload:{keyword:n,limit:10,competition_id:null==ge?void 0:ge.identifier}});case 2:t=e.sent,Qe(null==t?void 0:t.schools),n&&""!=n&&Ke(null==t||null===(i=t.schools)||void 0===i?void 0:i.filter((function(e){return e.name.includes(n)})));case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){var e,n,t,i,l,s,o,a,r;(null!=ge&&null!==(e=ge.need_apply_info)&&void 0!==e&&e.need_apply_name||null!=ge&&null!==(n=ge.need_apply_info)&&void 0!==n&&n.need_apply_teacher_phone||null!=ge&&null!==(t=ge.need_apply_info)&&void 0!==t&&t.need_apply_student_id||null!=ge&&null!==(i=ge.need_apply_info)&&void 0!==i&&i.need_apply_sex||null!=ge&&null!==(l=ge.need_apply_info)&&void 0!==l&&l.need_apply_phone||null!=ge&&null!==(s=ge.need_apply_info)&&void 0!==s&&s.need_apply_grade||null!=ge&&null!==(o=ge.need_apply_info)&&void 0!==o&&o.need_apply_teacher_name||null!=ge&&null!==(a=ge.need_apply_info)&&void 0!==a&&a.need_apply_school)&&Xe(1===(null==ge?void 0:ge.region_rule)||"81bjsjjs"===(null==ge?void 0:ge.identifier)?"":null==_e||null===(r=_e.userInfo)||void 0===r?void 0:r.school_name)}),[(null==ge||null===(n=ge.need_apply_info)||void 0===n?void 0:n.need_apply_name)||(null==ge||null===(t=ge.need_apply_info)||void 0===t?void 0:t.need_apply_teacher_phone)||(null==ge||null===(i=ge.need_apply_info)||void 0===i?void 0:i.need_apply_student_id)||(null==ge||null===(s=ge.need_apply_info)||void 0===s?void 0:s.need_apply_sex)||(null==ge||null===(a=ge.need_apply_info)||void 0===a?void 0:a.need_apply_phone)||(null==ge||null===(c=ge.need_apply_info)||void 0===c?void 0:c.need_apply_grade)||(null==ge||null===(u=ge.need_apply_info)||void 0===u?void 0:u.need_apply_teacher_name)||(null==ge||null===(g=ge.need_apply_info)||void 0===g?void 0:g.need_apply_school)]);function $e(){return en.apply(this,arguments)}function en(){return(en=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Re(!0),e.next=3,(0,Ze.ZP)("/api/competitions/".concat(ve,"/all_team_members.json"),{method:"get",params:Me});case 3:0===(null==(n=e.sent)?void 0:n.status)&&(we(n),Be(null==n?void 0:n.hidden_score)),Re(!1);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,m.useEffect)((function(){$e()}),[ge]);var nn,tn=null===(Z=[((0,fe.eB)()||(null==ge||null===(k=ge.permission)||void 0===k?void 0:k.editable))&&{title:"序号",align:"left",dataIndex:"name",width:80,fixed:"left",render:function(e,n,t){return(0,xe.jsx)("span",{children:t+1})}},{title:"参赛人",align:"left",dataIndex:"name",width:120,fixed:"left",ellipsis:{showTitle:!1},render:function(e,n){var t,i,l,s,o,a;return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(y.Z,{placement:"topLeft",title:null!=ge&&ge.personal&&null!=ge&&null!==(t=ge.need_apply_info)&&void 0!==t&&t.need_apply_name?null==n||null===(i=n.apply_info)||void 0===i?void 0:i.real_name:e,children:null!=ge&&null!==(l=ge.need_apply_info)&&void 0!==l&&l.need_apply_name?(null==n||null===(s=n.apply_info)||void 0===s||null===(s=s.real_name)||void 0===s?void 0:s.length)>4?(null==n||null===(o=n.apply_info)||void 0===o||null===(o=o.real_name)||void 0===o?void 0:o.substring(0,4))+"...":null==n||null===(a=n.apply_info)||void 0===a?void 0:a.real_name:(null==e?void 0:e.length)>4?e.substring(0,4)+"...":e}),(null==n?void 0:n.authentication)&&(0,xe.jsx)(y.Z,{title:"已实名认证",children:(0,xe.jsx)("img",{src:Ht,style:{marginLeft:5,marginTop:"-2px"}})})]})}},{title:"个人成绩",align:"left",width:100,dataIndex:"score",fixed:"left",render:function(e){return(0,xe.jsx)("span",{children:e||"- -"})}},((0,fe.eB)()||(null==ge||null===(I=ge.permission)||void 0===I?void 0:I.editable))&&{title:"角色",align:"left",width:100,dataIndex:"identity",render:function(e,n){return(0,xe.jsxs)("span",{children:[_i[e],(null==n?void 0:n.professional_certification)&&(0,xe.jsx)(y.Z,{title:"已职业认证",children:(0,xe.jsx)("img",{src:Ht,style:{marginLeft:5,marginTop:"-2px"}})})]})}},(null==ge||null===(A=ge.need_apply_info)||void 0===A?void 0:A.need_apply_sex)&&{title:"性别",align:"left",width:160,dataIndex:"phone",render:function(e,n){var t;return(0,xe.jsx)("span",{children:1===(null==n||null===(t=n.apply_info)||void 0===t?void 0:t.sex)?"女":"男"})}},{title:"手机号",align:"left",width:160,dataIndex:"phone",render:function(e,n){var t,i;return(0,xe.jsx)("span",{children:null!=ge&&null!==(t=ge.need_apply_info)&&void 0!==t&&t.need_apply_phone?(null==n||null===(i=n.apply_info)||void 0===i?void 0:i.phone)||"- -":e||"- -"})}},{title:"学号/工号",align:"left",dataIndex:"student_id",width:160,ellipsis:{showTitle:!1},render:function(e,n){var t,i,l,s;return(0,xe.jsx)(y.Z,{placement:"topLeft",title:null!=ge&&null!==(t=ge.need_apply_info)&&void 0!==t&&t.need_apply_student_id?(null==n||null===(i=n.apply_info)||void 0===i?void 0:i.student_id)||"- -":e||"- -",children:null!=ge&&null!==(l=ge.need_apply_info)&&void 0!==l&&l.need_apply_student_id?(null==n||null===(s=n.apply_info)||void 0===s?void 0:s.student_id)||"- -":e||"- -"})}},(null==ge||null===(S=ge.need_apply_info)||void 0===S?void 0:S.need_apply_grade)&&{title:"年级",dataIndex:"student_id",width:160,ellipsis:{showTitle:!1},render:function(e,n){var t,i;return(0,xe.jsx)(y.Z,{placement:"topLeft",title:null==n||null===(t=n.apply_info)||void 0===t?void 0:t.grade,children:(null==n||null===(i=n.apply_info)||void 0===i?void 0:i.grade)||"- -"})}},{title:"学校/单位",align:"left",dataIndex:"school",ellipsis:{showTitle:!1},width:160,render:function(e,n){var t,i,l,s;return(0,xe.jsx)(y.Z,{placement:"topLeft",title:null!=ge&&null!==(t=ge.need_apply_info)&&void 0!==t&&t.need_apply_school?(null==n||null===(i=n.apply_info)||void 0===i?void 0:i.school)||"- -":e||"- -",children:null!=ge&&null!==(l=ge.need_apply_info)&&void 0!==l&&l.need_apply_school?(null==n||null===(s=n.apply_info)||void 0===s?void 0:s.school)||"- -":e||"- -"})}},((0,fe.eB)()||(null==ge||null===(C=ge.permission)||void 0===C?void 0:C.editable))&&{title:"地区",align:"left",dataIndex:"province",width:100,ellipsis:{showTitle:!1},render:function(e){return(0,xe.jsx)(y.Z,{placement:"topLeft",title:e||"",children:e||"- -"})}},(null==ge||null===(F=ge.need_apply_info)||void 0===F?void 0:F.need_apply_teacher_name)&&{title:"指导教师姓名",align:"left",dataIndex:"teacher_name",width:120,ellipsis:{showTitle:!1},render:function(e){return(0,xe.jsx)(y.Z,{placement:"topLeft",title:e||"",children:e||"- -"})}},(null==ge||null===(P=ge.need_apply_info)||void 0===P?void 0:P.need_apply_teacher_phone)&&{title:"指导教师联系方式",align:"left",dataIndex:"teacher_phone",width:160,ellipsis:{showTitle:!1},render:function(e){return(0,xe.jsx)(y.Z,{placement:"topLeft",title:e||"",children:e||"- -"})}},((0,fe.eB)()||(null==ge||null===(T=ge.need_apply_info)||void 0===T?void 0:T.need_apply_name)||(null==ge||null===(R=ge.need_apply_info)||void 0===R?void 0:R.need_apply_teacher_phone)||(null==ge||null===(E=ge.need_apply_info)||void 0===E?void 0:E.need_apply_student_id)||(null==ge||null===(L=ge.need_apply_info)||void 0===L?void 0:L.need_apply_sex)||(null==ge||null===(D=ge.need_apply_info)||void 0===D?void 0:D.need_apply_phone)||(null==ge||null===(B=ge.need_apply_info)||void 0===B?void 0:B.need_apply_grade)||(null==ge||null===(V=ge.need_apply_info)||void 0===V?void 0:V.need_apply_teacher_name)||(null==ge||null===(z=ge.need_apply_info)||void 0===z?void 0:z.need_apply_school))&&{title:"操作",align:"right",dataIndex:"is_cancel_score",width:100,fixed:"right",render:function(e,n){var t;return(0,fe.eB)()||null!=ge&&null!==(t=ge.permission)&&void 0!==t&&t.editable?(0,xe.jsx)("span",{children:0===e||!1===e?(0,xe.jsx)("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:function(){var e;x.Z.confirm({icon:null,centered:!0,title:"取消成绩",content:"请确认是否取消该成员成绩,取消后该成员的成绩将视为无成绩,不进行排名。",onOk:(e=r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(ve,"/set_score_status.json"),{method:"put",body:{competition_score_id:null==n?void 0:n.competition_score_id,competition_team_id:null==n?void 0:n.competition_team_id,is_cancel_score:1}});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(v.ZP.info("取消成功"),Me.page=1,Oe(l()({},Me)),$e());case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"取消成绩"}):(0,xe.jsx)("span",{onClick:r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(ve,"/set_score_status.json"),{method:"put",body:{competition_score_id:null==n?void 0:n.competition_score_id,competition_team_id:null==n?void 0:n.competition_team_id,is_cancel_score:0}});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(v.ZP.info("恢复成功"),Me.page=1,Oe(l()({},Me)),$e());case 4:case"end":return e.stop()}}),e)}))),style:{color:"#FD9200",cursor:"pointer"},children:"恢复成绩"})}):(0,xe.jsx)("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:function(){"ended"!=(null==ge?void 0:ge.competition_status)?(Ce.setFieldsValue(l()(l()({},n),null==n?void 0:n.apply_info)),Ae(!0)):v.ZP.warning("竞赛已结束,无法编辑相关信息")},children:"编辑"})}}])||void 0===Z?void 0:Z.filter((function(e){return e}));return(0,xe.jsxs)("section",{className:di.bg,children:[(0,xe.jsx)("div",{className:di.title,style:{display:"flex"},children:(0,xe.jsxs)(oe.Z,{style:{width:"100%"},children:[(0,xe.jsx)("span",{children:"参赛人员"}),((0,fe.eB)()||(null==ge||null===(M=ge.permission)||void 0===M?void 0:M.editable))&&(0,xe.jsx)(se.Z,{checked:De,style:{marginLeft:10,alignItems:"center"},onChange:function(){var e=r()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Be(n.target.checked),e.next=3,(0,Ze.ZP)("/api/competitions/".concat(ve,"/hidden_score.json"),{method:"POST",body:{hidden_score:n.target.checked}});case 3:0===(null==(t=e.sent)?void 0:t.status)&&$e();case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:(0,xe.jsx)("span",{style:{color:"#828693",marginLeft:"-3px"},children:"隐藏成绩"})})]})}),(0,xe.jsxs)("div",{style:{padding:"20px",width:"100%"},children:[((0,fe.eB)()||(null==ge||null===(O=ge.permission)||void 0===O?void 0:O.editable))&&(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(N.t7,{style:{width:327,marginRight:15},dataSource:mi,value:{id:Me.type,value:Me.keyword},onChange:function(e,n){Me.keyword=e,Me.type=n||"",Oe(l()({},Me)),$e()},placeholder:"请输入搜索内容"})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)("span",{className:di.button,onClick:function(){(0,he.FH)("",(0,he.NY)({url:me.Z.API_SERVER+"/api/competitions/".concat(ve,"/all_team_members.xlsx"),query:l()({},Me)}))},children:"导出"})})]}),(0,xe.jsx)(re.Z,{loading:Te,style:{marginTop:20},columns:tn,bordered:!1,dataSource:null==be?void 0:be.data,pagination:!1,scroll:((null==ge||null===(Y=ge.need_apply_info)||void 0===Y?void 0:Y.need_apply_name)||(null==ge||null===(H=ge.need_apply_info)||void 0===H?void 0:H.need_apply_teacher_phone)||(null==ge||null===(q=ge.need_apply_info)||void 0===q?void 0:q.need_apply_student_id)||(null==ge||null===(Q=ge.need_apply_info)||void 0===Q?void 0:Q.need_apply_sex)||(null==ge||null===(G=ge.need_apply_info)||void 0===G?void 0:G.need_apply_phone)||(null==ge||null===(U=ge.need_apply_info)||void 0===U?void 0:U.need_apply_grade)||(null==ge||null===(W=ge.need_apply_info)||void 0===W?void 0:W.need_apply_teacher_name)||(null==ge||null===(J=ge.need_apply_info)||void 0===J?void 0:J.need_apply_school))&&{x:1160}}),(0,xe.jsx)("div",{style:{marginTop:20},children:(0,xe.jsx)(dn.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],total:null==be?void 0:be.count,onChange:function(e,n){Me.page=e,Me.per_page=n,Oe(l()({},Me)),$e()},pageSize:Me.per_page,current:Me.page})})]}),(0,xe.jsx)(x.Z,{width:700,title:"编辑报名信息",open:Ie,centered:!0,onCancel:function(){Ae(!1)},onOk:function(){Ce.submit()},confirmLoading:Te,children:(0,xe.jsxs)(f.Z,{form:Ce,colon:!1,size:"large",labelCol:{span:5},onFinish:function(){var e=r()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=null===(t=qe.find((function(e){return e.name===(null==n?void 0:n.school)})))||void 0===t?void 0:t.id,e.next=3,(0,ue.bu)(l()(l()({},n),{},{identifier:ve,school_id:i}));case 3:0===e.sent.status&&(v.ZP.success("修改成功"),Ae(!1),$e());case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,xe.jsx)(f.Z.Item,{hidden:!0,name:"competition_team_id"}),(null==ge||null===(K=ge.need_apply_info)||void 0===K?void 0:K.need_apply_name)&&(0,xe.jsx)(f.Z.Item,{label:"参赛人员姓名",name:"real_name",className:di.jsinput,rules:[{required:!0,message:"请输入参赛人员姓名"},{whitespace:!0,message:"姓名不能为空"}],children:(0,xe.jsx)(j.Z,{className:di.baseFormItem,placeholder:"请输入参赛人员姓名",showCount:!0,maxLength:60})}),(null==ge||null===(X=ge.need_apply_info)||void 0===X?void 0:X.need_apply_sex)&&(0,xe.jsx)(f.Z.Item,{label:"性别",name:"sex",className:di.jsinput,rules:[{required:!0,message:"请选择参赛人员性别"}],children:(0,xe.jsxs)(b.ZP.Group,{children:[(0,xe.jsx)(b.ZP,{value:0,children:"男"}),(0,xe.jsx)(b.ZP,{value:1,children:"女"})]})}),(null==ge||null===($=ge.need_apply_info)||void 0===$?void 0:$.need_apply_student_id)&&(0,xe.jsx)(f.Z.Item,{label:"学号",name:"student_id",className:di.jsinput,rules:[{required:!0,message:"请输入参赛人员学号"},{whitespace:!0,message:"学号不能为空"}],children:(0,xe.jsx)(j.Z,{className:di.baseFormItem,placeholder:"请输入参赛人员学号",showCount:!0,maxLength:60})}),(null==ge||null===(ee=ge.need_apply_info)||void 0===ee?void 0:ee.need_apply_phone)&&(0,xe.jsx)(f.Z.Item,{label:"电话",name:"phone",className:di.jsinput,rules:[{required:!0,message:"请输入参赛人员电话"},{whitespace:!0,message:"电话不能为空"}],children:(0,xe.jsx)(j.Z,{className:di.baseFormItem,placeholder:"请输入参赛人员电话",showCount:!0,maxLength:60})}),(null==ge||null===(ne=ge.need_apply_info)||void 0===ne?void 0:ne.need_apply_grade)&&(0,xe.jsx)(f.Z.Item,{label:"年级",name:"grade",className:di.jsinput,rules:[{required:!0,message:"请选择参赛人员年级"}],children:(0,xe.jsx)(h.default,{disabled:"81bjsjjs"===ge.identifier,placeholder:"请选择参赛人员年级",size:"large",children:(nn=(new Date).getFullYear(),Array(31).fill({}).map((function(e,n){return(0,xe.jsx)(pi,{value:nn-n,children:(0,xe.jsx)("span",{children:nn-n})},n)})))})}),(null==ge||null===(te=ge.need_apply_info)||void 0===te?void 0:te.need_apply_teacher_name)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师姓名",name:"teacher_name",className:di.jsinput,rules:[{required:!0,message:"请输入指导老师姓名"},{whitespace:!0,message:"指导老师姓名不能为空"}],children:(0,xe.jsx)(j.Z,{className:di.baseFormItem,placeholder:"请输入指导老师姓名",showCount:!0,maxLength:60})}),(null==ge||null===(ie=ge.need_apply_info)||void 0===ie?void 0:ie.need_apply_teacher_phone)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师联系方式",name:"teacher_phone",rules:[{required:!0,message:"请输入指导老师联系方式"},{whitespace:!0,message:"指导老师联系方式不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入指导老师联系方式",showCount:!0,maxLength:60})}),(null==ge||null===(le=ge.need_apply_info)||void 0===le?void 0:le.need_apply_school)&&1!==(null==ge?void 0:ge.region_rule)&&"81bjsjjs"!==ge.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(w.Z,{size:"large",showSearch:!0,disabled:"81bjsjjs"===ge.identifier,onChange:function(e){return Ge(e)},children:Je.map((function(e,n){return(0,xe.jsx)(pi,{value:e.name,children:e.name},n)}))})}),(null==ge||null===(ce=ge.need_apply_info)||void 0===ce?void 0:ce.need_apply_school)&&1===(null==ge?void 0:ge.region_rule)||"81bjsjjs"===ge.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(h.default,ci()(ci()({disabled:!0,showSearch:!0},"disabled","81bjsjjs"===ge.identifier),"children",qe.map((function(e,n){return(0,xe.jsx)(pi,{value:e.name,children:e.name},n)}))))})]})})]})})),fi="bg___UYFEh",xi="Title___n7fIZ",vi="SrollStage___GnCkk",gi=t(1806),yi=["competitions","globalSetting","loading","dispatch","user"],ji=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.effects,user:l}}))((function(e){var n,i,s,a,c=e.competitions,u=(e.globalSetting,e.loading),h=e.dispatch,f=(e.user,p()(e,yi),c.is_manager,c.MemberWorks),v=c.competitionStage,g=c.Header,j=(0,_.useParams)().identifier,b=(0,m.useState)({page:1,per_page:20,competition_id:j,keyword:null}),w=d()(b,2),k=w[0],I=w[1],A=[{title:"选手名称",dataIndex:"user_name",ellipsis:!0,render:function(e){return e||"--"}},!(null!=g&&g.is_personal)&&{title:"战队名称",dataIndex:"team_name",ellipsis:!0,render:function(e){return(0,xe.jsx)(y.Z,{placement:"topLeft",title:e,children:e||"--"})}},{title:"成绩",dataIndex:"evaluation_score",render:function(e){return e||"--"}},{title:"描述",width:222,dataIndex:"comment",render:function(e){return(0,xe.jsx)(y.Z,{title:e,children:(0,xe.jsx)("span",{children:e||"- -"})})}},{title:"提交时间",width:150,dataIndex:"commit_at",render:function(e){return e?de()(e).format("YYYY.MM.DD HH:mm:ss"):"--"}},{title:"提交状态",width:100,dataIndex:"evaluation_status",render:function(e){return"waiting"==e?(0,xe.jsx)("span",{style:{color:"#00B187 "},children:"排队中"}):"progress"==e?(0,xe.jsx)("span",{style:{color:"00B187"},children:"评测中"}):"cancelled"==e?(0,xe.jsx)("span",{style:{color:"#E53333"},children:"已取消"}):"completed"==e?(0,xe.jsx)("span",{style:{color:"#165DFF"},children:"已完成"}):"error"==e?(0,xe.jsx)("span",{style:{color:"#ff4d4f"},children:"提交失败"}):"--"}},{title:"评测文件",dataIndex:"commit_id",ellipsis:!0,render:function(e,n){var t,i,l,s,o,a;return(0,xe.jsx)(y.Z,{placement:"topLeft",title:null==n||null===(t=n.attachments)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.title,children:null!=n&&null!==(i=n.attachments)&&void 0!==i&&null!==(i=i[0])&&void 0!==i&&i.is_oss?(0,xe.jsx)("a",{onClick:function(){var e;(0,he.Nd)("","".concat(null==n||null===(e=n.attachments)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.url.replace("disposition=inline","")))},children:(null==n||null===(l=n.attachments)||void 0===l||null===(l=l[0])||void 0===l?void 0:l.title)||"--"}):(0,xe.jsx)("a",{href:me.Z.API_SERVER+(null==n||null===(s=n.attachments)||void 0===s||null===(s=s[0])||void 0===s?void 0:s.url),download:null==n||null===(o=n.attachments)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.title,children:(null==n||null===(a=n.attachments)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.title)||"--"})})}},{title:"操作",align:"right",width:200,dataIndex:"commit_id",render:function(e,n){return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(Z.ZP,{type:"link",disabled:"completed"!=(null==n?void 0:n.evaluation_status),style:{padding:0},onClick:function(){var e=x.Z.confirm({centered:!0,okText:"确定",icon:null,cancelText:"取消",title:"运行结果",content:(0,xe.jsx)("div",{style:{maxHeight:500,overflow:"auto"},children:null==n?void 0:n.evaluation_info}),onOk:function(){return e.destroy()},onCancel:function(){return e.destroy()}})},children:"运行信息"}),(0,xe.jsx)(Z.ZP,{className:"ml20",disabled:"progress"==(null==n?void 0:n.evaluation_status),type:"link",style:{padding:0},onClick:r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"正在重测,请稍后..."}}),e.next=3,(0,Ze.ZP)("/api/competitions/".concat(j,"/competition_commit_records/").concat(n.id,"/retest.json"),{method:"post",body:l()(l()({},k),{},{record_id:n.id})});case 3:t=e.sent,h({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),0==t.status&&S();case 6:case"end":return e.stop()}}),e)}))),children:"重测"}),(0,xe.jsx)(Z.ZP,{className:"ml20",type:"link",disabled:"waiting"!=(null==n?void 0:n.evaluation_status),style:{padding:0},danger:!0,onClick:function(){var e,t=x.Z.confirm({centered:!0,okText:"确定",icon:null,cancelText:"取消",title:"",content:(0,xe.jsx)(xe.Fragment,{children:"取消后,该成员提交的作品将不进行评测排队,请确认是否取消。"}),onOk:(e=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(j,"/competition_commit_records/").concat(n.id,"/cancel.json"),{method:"post",body:l()(l()({},k),{},{record_id:n.id})});case 2:0==e.sent.status&&S();case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)}),onCancel:function(){return t.destroy()}})},children:"取消"})]})}}].filter((function(e){return!!e})),S=function(){var e=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:h({type:"competitions/getMemberWorks",payload:l()({identifier:j},k)});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,m.useEffect)((function(){I(l()(l()({},k),{},{section_id:null==v?void 0:v.id}))}),[]),(0,m.useEffect)((function(){S()}),[k]),(0,xe.jsxs)("section",{className:fi,children:[(0,xe.jsx)(oe.Z,{align:"middle",className:xi,children:(0,xe.jsx)(ae.Z,{children:"选手作品"})}),(0,xe.jsxs)(oe.Z,{style:{margin:20},align:"middle",justify:"space-between",children:[(0,xe.jsx)(oe.Z,{className:vi,style:{flex:1,whiteSpace:"nowrap",flexWrap:"nowrap",overflowX:"auto"}}),(0,xe.jsxs)(oe.Z,{className:"ml20",align:"middle",children:[(0,xe.jsx)(N.t7,{style:{width:260},placeholder:null!=g&&g.is_personal?"请输入选手名称":"请输入队伍名称",value:k.keyword,onChange:function(e){return I(l()(l()({},k),{},{keyword:e,page:1}))}}),(0,xe.jsx)(N.op,{openLoading:!0,type:"default",size:"large",className:"ml20",onClick:r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,gi.KM)(l()({identifier:j},k));case 2:case"end":return e.stop()}}),e)}))),children:"导出"}),(0,xe.jsx)(N.op,{size:"large",type:"default",className:"ml20",onClick:function(){return S()},children:"更新"})]})]}),(0,xe.jsxs)(rn.Z,{spinning:u["competitions/getMemberWorks"],children:[(0,xe.jsx)(re.Z,{className:"ml20 mr20",locale:{emptyText:(0,xe.jsx)(un.Z,{imgUrl:t(93314)})},pagination:!1,dataSource:(null==f||null===(n=f.data)||void 0===n?void 0:n.records)||[],columns:A}),(null==f||null===(i=f.data)||void 0===i?void 0:i.count)>0&&(0,xe.jsxs)(oe.Z,{className:"ml20 mr20 mt20 mb30",align:"middle",justify:"space-between",children:[(0,xe.jsxs)(ae.Z,{className:"font14",style:{color:"#333"},children:["共",(0,xe.jsx)("span",{style:{color:"#165DFF"},children:(null==f||null===(s=f.data)||void 0===s?void 0:s.count)||0}),"条数据"]}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(dn.Z,{showQuickJumper:!0,current:k.page,pageSize:k.per_page,onChange:function(e){return I(l()(l()({},k),{},{page:e}))},onShowSizeChange:function(e,n){return I(l()(l()({},k),{},{page:1,per_page:n}))},total:(null==f||null===(a=f.data)||void 0===a?void 0:a.count)||0})})]})]})]})})),bi=t(10764),wi=t(91628),Zi="bg___tjnCL",ki="title___kqIVC",Ni=t(98382),Ii=t(16605),Ai=t(60351),Si=t(1058),Ci={flex_box_center:"flex_box_center___PytGn",flex_space_between:"flex_space_between___lsol9",flex_box_vertical_center:"flex_box_vertical_center___fZ7Lr",flex_box_center_end:"flex_box_center_end___eItTF",flex_box_column:"flex_box_column____TIyk",title:"title___lY3pZ",export:"export___FJnGB",tabs:"tabs___lND2P",btn:"btn___TPnQ5",sticky:"sticky___JTo3M",publishRuleContent:"publishRuleContent___BCpFe",groupSelector:"groupSelector___xVPXf",addAndDelete:"addAndDelete___alHeZ",deleteIcon:"deleteIcon___PxYRF",addIcon:"addIcon___wwP2i"},Fi=t(52103),Pi=t(45532),Ti=(0,_.connect)((function(e){var n=e.shixunHomeworks,t=e.classroomList,i=e.loading,l=e.user,s=e.boards;return{shixunHomeworks:n,globalSetting:e.globalSetting,classroomList:t,user:l,boards:s,loading:i.effects}}))((function(e){e.shixunHomeworks;var n,t,i,s,a=e.classroomList,c=(e.globalSetting,e.boards),u=(e.loading,e.user),p=e.Header,x=e.is_hidden,g=(e.isClick,e.dispatch),y=((0,_.useParams)(),(0,_.useLocation)(),f.Z.useForm()),w=d()(y,1)[0],k=(0,m.useState)({content:""}),N=d()(k,2),I=N[0],A=N[1],S=(0,m.useState)([{}]),C=d()(S,2),F=C[0],P=C[1],T=(u.userInfo,a.detailLeftMenus,a.detailCourseGroupsList),R=c.boardsDetail,E=c.boardsCategoryList,D=(0,m.useState)([]),B=d()(D,2),V=B[0],z=B[1],M=(0,m.useState)({unified_setting:!0,view_message_setting:E.allow_view_message?"0":"1"}),O=d()(M,2),Y=O[0],H=O[1];return(0,m.useEffect)((function(){g({type:"boards/getBoardsCategoryList",payload:{board_id:null==p?void 0:p.board_id}}).then((function(e){Y.view_message_setting=null!=e&&e.allow_view_message?"0":"1"})),g({type:"classroomList/getCourseGroupsList",payload:{page:1,id:null==p?void 0:p.course_identifier,limit:1e3,nonenavigate:!0}})}),[null==p?void 0:p.board_id]),(0,m.useEffect)((function(){w.setFieldsValue({select_board_id:parseInt(null==p?void 0:p.board_id)})}),[a.detailLeftMenus]),(0,m.useEffect)((function(){null!=p&&p.message_id&&g({type:"boards/getBoardsDetail",payload:{boardId:null==p?void 0:p.message_id}}).then((function(e){var n;z(e),w.setFieldsValue({select_board_id:[null==e?void 0:e.board_id],subject:null==e?void 0:e.subject,attachment_ids:(0,Ni.z)(e.attachments),content:null==e?void 0:e.content,sticky:!(null==e||!e.sticky),publish_time:null!=e&&e.publish_time?de()(null==e?void 0:e.publish_time):null}),A({subject:null==e?void 0:e.subject,content:null==e?void 0:e.content}),e.unified_setting=e.unified_setting,e.view_message_setting=e.view_message_setting,H(l()({},e)),F=(null==e||null===(n=e.group_settings)||void 0===n?void 0:n.map((function(e){return{group_id:e.group_id,publish_time:e.publish_time}})))||[{}],P(F.length>0?F:[{}])}))}),[null==p?void 0:p.message_id]),(0,m.useEffect)((function(){var e;null==T||null===(e=T.course_groups)||void 0===e||e.map((function(e){var n;null==V||null===(n=V.group_settings)||void 0===n||n.map((function(n,t){(null==n?void 0:n.group_id)===(null==e?void 0:e.id)&&(e.cilckkey=t,e.isselect=!0)}))}))}),[V]),(0,xe.jsx)("section",{className:Ci.bg,children:(0,xe.jsx)("div",{children:(0,xe.jsxs)(f.Z,{layout:"vertical",form:w,initialValues:{name:"",sticky:!1},scrollToFirstError:!0,onValuesChange:function(e){A(l()({},e))},onFinish:function(){var e=r()(o()().mark((function e(n){var t,i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.attachment_ids=null===(t=n.attachment_ids)||void 0===t?void 0:t.map((function(e){return e.response.id})),n.view_message_setting=Y.view_message_setting,n.is_hidden=x,n.competition_id=null==p?void 0:p.id,!(0,fe.eB)()){e.next=13;break}if(n.unified_setting=Y.unified_setting,n.view_message_setting="1",n.group_settings=F,Y.unified_setting){e.next=13;break}if(F.length){e.next=12;break}return v.ZP.warning("提交失败:分班发布设置不能为空"),e.abrupt("return");case 12:F.map((function(e){if(!e.group_id)throw v.ZP.error("分班不能为空"),new String("分班不能为空");if(!e.publish_time)throw v.ZP.error("发布时间不能为空"),new String("发布时间不能为空")}));case 13:return n=l()({},n),i=p.message_id?"/api/messages/".concat(p.message_id,".json"):"/api/boards/".concat(null==p?void 0:p.board_id,"/messages.json"),e.next=17,(0,Ze.ZP)(i,{method:p.message_id?"put":"post",body:n});case 17:0===(s=e.sent).status&&((0,he.L9)(["教学课堂","讨论","发帖"]),v.ZP.success(p.message_id?"修改成功":"发布成功"),p.message_id||(g({type:"competitions/getHeader",payload:{identifier:null==p?void 0:p.identifier}}),(0,he.xg)("/classrooms/".concat(null==p?void 0:p.course_identifier,"/board/").concat(null==p?void 0:p.board_id,"/Detail/").concat(null==s||null===(a=s.data)||void 0===a?void 0:a.id))));case 19:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,xe.jsxs)("aside",{className:"mt30 relative bg-white pl30 pr30 pt30 w100 inline-block",children:[(0,xe.jsx)(f.Z.Item,{label:"",name:"sticky",valuePropName:"checked",className:Ci.sticky,children:(0,xe.jsx)(se.Z,{children:"置顶"})}),(0,xe.jsx)(f.Z.Item,{label:"标题",name:"subject",rules:[{required:!0,message:"请输入标题"}],children:(0,xe.jsx)(j.Z,{suffix:"".concat((null===(n=I.subject)||void 0===n?void 0:n.length)||0,"/60"),maxLength:60})}),(0,xe.jsx)(f.Z.Item,{label:"目录",name:"select_board_id",rules:[{required:!0,message:"请选择目录"}],children:(0,xe.jsx)(h.default,{children:null==E||null===(t=E.boards)||void 0===t?void 0:t.map((function(e){return(0,xe.jsx)(h.default.Option,{value:null==e?void 0:e.id,children:null==e?void 0:e.name})}))})}),(0,xe.jsx)(f.Z.Item,{label:"内容",style:{position:"relative",zIndex:0},name:"content",rules:[{required:!0,message:"请输入内容"}],children:(0,xe.jsx)(At.Z,{watch:!0,defaultValue:R.content||"",placeholder:"请在此输入帖子详情,最大限制为10000个字符"})}),(0,xe.jsx)(f.Z.Item,{name:"attachment_ids",children:(0,xe.jsx)(Ni.Z,{})}),(0,xe.jsxs)("div",{children:[(0,xe.jsxs)(b.ZP.Group,{onChange:function(){Y.unified_setting=!Y.unified_setting,H(Object.assign({},Y))},value:Y.unified_setting,children:[(0,xe.jsx)(b.ZP,{value:!0,children:"统一发布"}),(null==T||null===(i=T.course_groups)||void 0===i?void 0:i.length)>0&&(0,xe.jsx)(b.ZP,{value:!1,children:"分班发布"})]}),(null==Y?void 0:Y.unified_setting)&&(0,xe.jsx)(f.Z.Item,{style:{marginTop:16},rules:[{required:!0,message:"请选择发布时间"}],label:"发布时间",name:"publish_time",children:(0,xe.jsx)(le.default,{showTime:{format:"HH:mm"},disabledDate:function(e){return e&&e0&&void 0!==arguments[0]?arguments[0]:s,i=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0;return(null==t||null===(e=t[l])||void 0===e||null===(e=e.competition_time)||void 0===e?void 0:e.diff((null==t||null===(n=t[i])||void 0===n?void 0:n.competition_time)||0))||0},u=c(s,0,s.length-1),h=s.map((function(e,n){var t=c(s,n,n+1)/u*100,i=20;return n>(null==s?void 0:s.length)-4&&(i=32),l()(l()({},e),{},{isChu:t>i,DistanceValue:n===(null==s?void 0:s.length)-1?0:Math.round(t(null==t?void 0:t.competition_time)&&v>(null==h||null===(l=h[i+1])||void 0===l?void 0:l.competition_time)&&(e+=(null==t?void 0:t.DistanceValue)/n*100),i!==h.length-1&&v>(null==t?void 0:t.competition_time)&&v<(null==h||null===(o=h[i+1])||void 0===o?void 0:o.competition_time)&&(e+=(null==v?void 0:v.diff(null==t?void 0:t.competition_time))/c(s,i,i+1)*(null==t?void 0:t.DistanceValue)/n*100)})),v>h[h.length-1].competition_time?100:v2&&void 0!==arguments[2]&&arguments[2];return(0,xe.jsx)("div",{className:"".concat(Mi," ").concat(n===h.length-1?Yi:Oi),style:{width:w(e,n,t)},children:(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",gutter:5,justify:n===h.length-1?"end":"start",children:[(0,xe.jsx)(ae.Z,{children:(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",children:[(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)("span",{className:"".concat(Hi," ").concat(t?qi:""),children:n+1})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)("div",{className:Qi})})]})}),(0,xe.jsxs)(ae.Z,{children:[(0,xe.jsx)(y.Z,{title:null==e?void 0:e.name,placement:"topLeft",children:(0,xe.jsx)("div",{className:"".concat(Gi," ").concat(t?Ui:""," multi_ellipsis1"),children:null==e?void 0:e.name})}),(0,xe.jsx)(y.Z,{placement:"topLeft",title:null!=e&&e.competition_time?de()(null==e?void 0:e.competition_time).format((null==e?void 0:e.format)||"YYYY年MM月DD日 HH:mm"):"",children:(0,xe.jsx)("div",{className:"".concat(Wi," ").concat(t?Ji:""," multi_ellipsis1"),children:null!=e&&e.competition_time?de()(null==e?void 0:e.competition_time).format((null==e?void 0:e.format)||"YYYY年MM月DD日 HH:mm"):""})})]})]})})},w=function(e,n){var t,i,l,s,o,a=h.reduce((function(e,n){return e+n.DistanceValue}),0),c=(null==e?void 0:e.DistanceValue)/a*r,d=(null==h||null===(t=h[n+1])||void 0===t?void 0:t.DistanceValue)/a*r,u=Math.round(c+d)-12;return n===h.length-1?Math.round(((null==h||null===(i=h[n-1])||void 0===i?void 0:i.DistanceValue)+(null==h||null===(l=h[n-2])||void 0===l?void 0:l.DistanceValue))/a*r/2-12):n===h.length-2?c-12:n===h.length-3?Math.round(((null==h||null===(s=h[n])||void 0===s?void 0:s.DistanceValue)+(null==h||null===(o=h[n+1])||void 0===o?void 0:o.DistanceValue))/a*r/2-12):u};return(0,m.useEffect)((function(){var e=setInterval((function(){g(de()())}),6e4);return function(){clearInterval(e)}}),[]),(0,xe.jsxs)("div",l()(l()({ref:a,className:el()(Li,t)},o),{},{children:[(0,xe.jsx)("div",{className:Di,children:(0,xe.jsx)("div",{className:Bi,style:{width:j()>=100?"100%":"".concat(j(),"%")}})}),h.map((function(e,n){var t=v<(null==e?void 0:e.competition_time);return(0,xe.jsxs)("div",{className:"".concat(zi),style:{width:n===(null==h?void 0:h.length)-1?"auto":(null==e?void 0:e.DistanceValue)+(null==e?void 0:e.StyleUnit)},children:[(0,xe.jsx)("div",{style:{height:45,position:"relative",width:"100%"},children:(n+1)%2!=0&&b(e,n,!t)}),(0,xe.jsx)("div",{className:"".concat(Ki," ").concat(t?"":Xi)}),(0,xe.jsx)("div",{style:{height:45,position:"relative",width:"100%"},children:(n+1)%2==0&&b(e,n,!t)})]})})),(0,xe.jsx)("div",{className:Di,style:{zIndex:1,backgroundColor:"transparent"},children:(0,xe.jsx)(y.Z,{title:v.format("当前时间:YYYY年MM月DD日 HH:mm"),children:(0,xe.jsx)("div",{className:Vi,style:{left:j()>=100?"calc(100% - 12px)":"".concat(j(),"%")}})})})]}))},il=["competitions","globalSetting","loading","dispatch","user"],ll=h.default.Option,sl=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n,t,i,s,a,c,u,I,A,S,C,F,P,T,R,E,L,D,B,V,z,M,O,Y,H,q,Q,G,U,W,J,K,X,$,ee,ne,te,ie,le,se,oe,ae,re,ce,me,_e,ve,ge,ye,je,be,we,ke,Ne,Ie,Ae,Se,Ce,Fe,Pe,Te,Re,Ee,Le,De,Be,Ve,ze,Me,Oe,Ye,He,qe,Qe,Ge,Ue,We,Je,Ke,Xe,$e,en,nn,tn,ln,sn,on,an=e.competitions,rn=(e.globalSetting,e.loading),cn=e.dispatch,dn=e.user,un=(p()(e,il),(0,m.useState)({tabsIndex:"1"})),pn=d()(un,2),mn=pn[0],_n=pn[1],hn=(0,_.useParams)(),fn=hn.identifier,xn=(hn.enter,an.Header),vn=an.Staff,gn=an.GuidesData,yn=(0,m.useState)(!1),jn=d()(yn,2),bn=jn[0],wn=jn[1],Zn=(0,_.useSearchParams)(),Nn=d()(Zn,1)[0],In=(0,m.useState)(!1),An=d()(In,2),Sn=An[0],Cn=An[1],Fn=(0,m.useState)(!1),Pn=d()(Fn,2),Tn=Pn[0],Rn=Pn[1],En=(0,m.useState)(!1),Ln=d()(En,2),Dn=Ln[0],Bn=Ln[1],Vn=f.Z.useForm(),zn=d()(Vn,1)[0],Mn=f.Z.useForm(),On=d()(Mn,1)[0],Yn=(0,m.useState)(!1),Hn=d()(Yn,2),qn=Hn[0],Qn=Hn[1],Gn=(0,m.useState)(!1),Un=d()(Gn,2),Wn=Un[0],Jn=Un[1],Kn=(0,m.useState)(),Xn=d()(Kn,2),$n=Xn[0],et=Xn[1],nt=(0,m.useState)(!1),tt=d()(nt,2),it=tt[0],lt=tt[1],st=(0,m.useState)(!1),ot=d()(st,2),at=ot[0],rt=ot[1],ct=(0,m.useState)(!1),dt=d()(ct,2),ut=dt[0],pt=dt[1],_t=(0,m.useState)([]),ht=d()(_t,2),ft=ht[0],xt=ht[1],vt=(0,m.useState)([]),gt=d()(vt,2),yt=gt[0],jt=gt[1],bt=(0,m.useState)(!1),wt=d()(bt,2),Zt=wt[0],kt=wt[1],Nt=(0,m.useRef)((0,ei.throttle)((function(e){return Pt(e)}),1200,{leading:!0,trailing:!0})).current,It=(0,m.useState)([]),At=d()(It,2),St=At[0],Ct=At[1],Ft=function(){var e=(new Date).getFullYear();return Array(31).fill({}).map((function(n,t){return(0,xe.jsx)(ll,{value:e-t,children:(0,xe.jsx)("span",{children:e-t})},t)}))};(0,m.useEffect)((function(){var e,n,t,i,l,s,o,a,r;(null!=xn&&null!==(e=xn.need_apply_info)&&void 0!==e&&e.need_apply_name||null!=xn&&null!==(n=xn.need_apply_info)&&void 0!==n&&n.need_apply_teacher_phone||null!=xn&&null!==(t=xn.need_apply_info)&&void 0!==t&&t.need_apply_student_id||null!=xn&&null!==(i=xn.need_apply_info)&&void 0!==i&&i.need_apply_sex||null!=xn&&null!==(l=xn.need_apply_info)&&void 0!==l&&l.need_apply_phone||null!=xn&&null!==(s=xn.need_apply_info)&&void 0!==s&&s.need_apply_grade||null!=xn&&null!==(o=xn.need_apply_info)&&void 0!==o&&o.need_apply_teacher_name||null!=xn&&null!==(a=xn.need_apply_info)&&void 0!==a&&a.need_apply_school)&&Pt(1===(null==xn?void 0:xn.region_rule)||"81bjsjjs"===(null==xn?void 0:xn.identifier)?"":null==dn||null===(r=dn.userInfo)||void 0===r?void 0:r.school_name)}),[(null==xn||null===(n=xn.need_apply_info)||void 0===n?void 0:n.need_apply_name)||(null==xn||null===(t=xn.need_apply_info)||void 0===t?void 0:t.need_apply_teacher_phone)||(null==xn||null===(i=xn.need_apply_info)||void 0===i?void 0:i.need_apply_student_id)||(null==xn||null===(s=xn.need_apply_info)||void 0===s?void 0:s.need_apply_sex)||(null==xn||null===(a=xn.need_apply_info)||void 0===a?void 0:a.need_apply_phone)||(null==xn||null===(c=xn.need_apply_info)||void 0===c?void 0:c.need_apply_grade)||(null==xn||null===(u=xn.need_apply_info)||void 0===u?void 0:u.need_apply_teacher_name)||(null==xn||null===(I=xn.need_apply_info)||void 0===I?void 0:I.need_apply_school)]);var Pt=function(){var e=r()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,cn({type:"account/getSchoolOption",payload:{keyword:n,competition_id:fn,display_aliases:!0}});case 2:t=e.sent,jt(null==t?void 0:t.schools),n&&""!=n&&Ct(null==t||null===(i=t.schools)||void 0===i?void 0:i.filter((function(e){return-1!==e.name.toUpperCase().indexOf(n.toUpperCase())})));case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){if("4"===Nn.get("type")){var e,n;if(!((0,fe.eB)()||null!=xn&&null!==(e=xn.permission)&&void 0!==e&&e.editable))15===(null==dn||null===(n=dn.userInfo)||void 0===n?void 0:n.role)&&_.history.push("/competitions/detail/".concat(fn,"?type=1"));_n({tabsIndex:"4"}),wn(!0)}else if(Nn.get("type")){var t,i,l;if("3"===Nn.get("type"))null!=xn&&xn.personal&&((0,fe.eB)()||null!=xn&&null!==(t=xn.permission)&&void 0!==t&&t.editable||null!=xn&&xn.team_member_present)||null==xn||!xn.personal||_.history.push("/competitions/detail/".concat(fn,"?type=1"));if("5"===Nn.get("type"))null!=xn&&null!==(i=xn.permission)&&void 0!==i&&i.editable&&3===(null==xn?void 0:xn.mode)||_.history.push("/competitions/detail/".concat(fn,"?type=1"));if("6"===Nn.get("type"))(0,fe.eB)()||null!=xn&&null!==(l=xn.permission)&&void 0!==l&&l.editable||_.history.push(null==xn||!xn.memo_id||null!=xn&&xn.is_hidden?"/competitions/detail/".concat(fn,"?type=1"):"/forums/".concat(null==xn?void 0:xn.memo_id));_n({tabsIndex:Nn.get("type")})}else _n({tabsIndex:"1"});xn.identifier&&(!Nn.get("identifier")||null!=xn&&xn.team_member_present||null!=vn&&vn.enroll_ended||Vt(1),!Nn.get("code")||null!=xn&&xn.team_member_present||null!=vn&&vn.enroll_ended||function(){Bt.apply(this,arguments)}(),cn({type:"globalSetting/setShareData",payload:{title:null==xn?void 0:xn.name,desc:null==xn?void 0:xn.description,imgUrl:"".concat(null==xn?void 0:xn.image,"?x-oss-process=image/resize,h_200,w_200,m_pad")}}))}),[Nn.get("type"),xn]);var Tt=[{id:"1",name:"概览",content:(0,xe.jsx)(Lt,{})},{id:"2",name:"排行榜",content:(0,xe.jsx)(Ot,{})},(null==xn?void 0:xn.personal)&&((0,fe.eB)()||(null==xn||null===(A=xn.permission)||void 0===A?void 0:A.editable)||(null==xn?void 0:xn.team_member_present))&&{id:"3",name:"参赛人员",content:(0,xe.jsx)(hi,{})},!(null!=xn&&xn.personal)&&{id:"3",name:"战队",content:(0,xe.jsx)(ai,{})},((0,fe.eB)()||(null==xn||null===(S=xn.permission)||void 0===S?void 0:S.editable)||(null==xn?void 0:xn.enrolled)&&((null==xn?void 0:xn.message_id)&&!(null!=xn&&xn.is_hidden)||(null==xn?void 0:xn.memo_id)&&!(null!=xn&&xn.is_hidden)))&&{id:"6",name:"讨论",content:(0,xe.jsx)(Ei,{})},((0,fe.eB)()||(null==xn||null===(C=xn.permission)||void 0===C?void 0:C.editable))&&{id:"4",name:"设置",content:(0,xe.jsx)(mt,{enterDocument:bn,changeKey:new Date})},(null==xn||null===(F=xn.permission)||void 0===F?void 0:F.editable)&&3===(null==xn?void 0:xn.mode)&&{id:"5",name:"选手作品",content:(0,xe.jsx)(ji,{})}].filter((function(e){return!!e}));function Rt(){return Et.apply(this,arguments)}function Et(){return(Et=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:cn({type:"competitions/getStaff",payload:{identifier:fn}}),cn({type:"competitions/getHeader",payload:{identifier:fn}}),cn({type:"competitions/getGuides",payload:{identifier:fn}});case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Dt(){var e,n,t,i,l,s;if(null!=dn&&null!==(e=dn.userInfo)&&void 0!==e&&e.is_teacher){if((null!=vn&&null!==(t=vn.all_staff)&&void 0!==t&&t.mutiple_limited||null!=vn&&null!==(i=vn.teacher_staff)&&void 0!==i&&i.mutiple_limited)&&null!=vn&&vn.enrolled)return v.ZP.info("你已经报名,不能重复报名"),!0}else if((null!=vn&&null!==(l=vn.all_staff)&&void 0!==l&&l.mutiple_limited||null!=vn&&null!==(s=vn.member_staff)&&void 0!==s&&s.mutiple_limited)&&null!=vn&&vn.enrolled)return v.ZP.info("你已经报名,不能重复报名"),!0;if(null!=vn&&vn.enroll_ended)return v.ZP.info("报名已截止,无需报名"),!0;if(null!=vn&&vn.all_staff)return!1;if(null!=dn&&null!==(n=dn.userInfo)&&void 0!==n&&n.is_teacher){if(!vn.teacher_staff)return v.ZP.info("已禁止老师报名"),!0}else if(null==vn||!vn.member_staff)return v.ZP.info("已禁止学生报名"),!0}(0,m.useEffect)((function(){window.location.href.split("enter=").length>1&&_n({tabsIndex:"4"})}),[]),(0,m.useEffect)((function(){var e;16===(null==dn||null===(e=dn.userInfo)||void 0===e?void 0:e.role)&&cn({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!1}})}),[null==dn?void 0:dn.userInfo]),(0,m.useEffect)((function(){if("1"===an.actionTabs.key)_n({tabsIndex:"4"});else if("2"===an.actionTabs.key){var e;if(xn.teacher_need_phone||xn.member_need_phone)return void Qn(!0);if(!(0,kn.tJ)(cn))return;if(null!=xn&&xn.need_check_mail)return void x.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",icon:null,content:"您暂未绑定邮箱,为了后续竞赛奖项颁发等相关事宜的正常且准确进行,请完成绑定再参加报名。",onOk:function(){window.open("/account/secure")}});if(null!=xn&&xn.is_authentication&&(null==dn||null===(e=dn.userInfo)||void 0===e||!e.authentication))return void cn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}});Cn(!0)}else if("3"===an.actionTabs.key){var n;if(null!=xn&&xn.need_check_mail)return void x.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",icon:null,content:"您暂未绑定邮箱,为了后续竞赛奖项颁发等相关事宜的正常且准确进行,请完成绑定再参加报名。",onOk:function(){window.open("/account/secure")}});if(xn.teacher_need_phone||xn.member_need_phone)return void Qn(!0);if(!(0,kn.tJ)(cn))return;if(null!=xn&&xn.is_authentication&&(null==dn||null===(n=dn.userInfo)||void 0===n||!n.authentication))return void cn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}});Rn(!0)}else"4"===an.actionTabs.key?lt(!0):"6"===an.actionTabs.key?rt(!0):(Rn(!1),Cn(!1))}),[an.actionTabs]),(0,m.useEffect)((function(){fn&&Rt()}),[fn]);function Bt(){return(Bt=r()(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,Ze.ZP)("/api/competitions/".concat(fn,"/check_open.json"),{method:"post"});case 2:if(0===e.sent.status){e.next=5;break}return e.abrupt("return");case 5:if((0,kn.tJ)(cn)){e.next=7;break}return e.abrupt("return");case 7:if(!xn.teacher_need_phone&&!xn.member_need_phone){e.next=10;break}return Qn(!0),e.abrupt("return");case 10:if(null==xn||!xn.need_check_mail){e.next=13;break}return x.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",icon:null,content:"您暂未绑定邮箱,为了后续竞赛奖项颁发等相关事宜的正常且准确进行,请完成绑定再参加报名。",onOk:function(){window.open("/account/secure")}}),e.abrupt("return");case 13:if(null==xn||!xn.is_authentication||null!=dn&&null!==(n=dn.userInfo)&&void 0!==n&&n.authentication){e.next=16;break}return cn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}}),e.abrupt("return");case 16:if(!Dt()){e.next=19;break}return Bn(!1),e.abrupt("return");case 19:if(!Dn){e.next=21;break}return e.abrupt("return");case 21:return Bn(!0),e.next=24,cn({type:"competitions/JoinTeam",payload:{identifier:fn,invite_code:Nn.get("code")}});case 24:t=e.sent,Bn(!1),t&&0===t.status&&(et(t),Jn(!0),Rt(),cn({type:"competitions/setActionTabs",payload:{}}));case 27:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vt(e){return zt.apply(this,arguments)}function zt(){return zt=r()(o()().mark((function e(n){var t,i,s,a,c,d,u,p,m;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,he.Wn)(null==xn?void 0:xn.forbid_visit_info)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,Ze.ZP)("/api/competitions/".concat(fn,"/check_open.json"),{method:"post"});case 4:if(0===e.sent.status){e.next=7;break}return e.abrupt("return");case 7:if((0,kn.tJ)(cn)){e.next=9;break}return e.abrupt("return");case 9:if(null==xn||!xn.enroll_url){e.next=12;break}return window.open(null==xn?void 0:xn.enroll_url),e.abrupt("return");case 12:if(!(null!=xn&&xn.personal||1===n)){e.next=34;break}if(!xn.teacher_need_phone&&!xn.member_need_phone){e.next=16;break}return Qn(!0),e.abrupt("return");case 16:if(null==xn||!xn.need_check_mail){e.next=19;break}return x.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",icon:null,content:"您暂未绑定邮箱,为了后续竞赛奖项颁发等相关事宜的正常且准确进行,请完成绑定再参加报名。",onOk:function(){window.open("/account/secure")}}),e.abrupt("return");case 19:if(null==xn||!xn.is_authentication||null!=dn&&null!==(t=dn.userInfo)&&void 0!==t&&t.authentication){e.next=22;break}return cn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}}),e.abrupt("return");case 22:if(!Dt()){e.next=25;break}return Bn(!1),e.abrupt("return");case 25:if(!Dn){e.next=27;break}return e.abrupt("return");case 27:if(m=function(){var e=r()(o()().mark((function e(){var n,t,i,s,a=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},i=null===(n=yt.find((function(e){return e.name===(null==t?void 0:t.school)})))||void 0===n?void 0:n.id,Bn(!0),e.next=5,cn({type:"competitions/AddTeam",payload:l()(l()({},t),{},{identifier:fn,name:dn.userInfo.real_name+"的战队",school_id:i})});case 5:s=e.sent,Bn(!1),s&&0===s.status&&(et(s),Jn(!0),Rt(),cn({type:"competitions/setActionTabs",payload:{}}));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!(null!=xn&&null!==(i=xn.need_apply_info)&&void 0!==i&&i.need_apply_name||null!=xn&&null!==(s=xn.need_apply_info)&&void 0!==s&&s.need_apply_student_id||null!=xn&&null!==(a=xn.need_apply_info)&&void 0!==a&&a.need_apply_sex||null!=xn&&null!==(c=xn.need_apply_info)&&void 0!==c&&c.need_apply_phone||null!=xn&&null!==(d=xn.need_apply_info)&&void 0!==d&&d.need_apply_grade||null!=xn&&null!==(u=xn.need_apply_info)&&void 0!==u&&u.need_apply_teacher_name||null!=xn&&null!==(p=xn.need_apply_info)&&void 0!==p&&p.need_apply_school)){e.next=31;break}return kt(!0),e.abrupt("return");case 31:m(),e.next=35;break;case 34:lt(!0);case 35:case"end":return e.stop()}}),e)}))),zt.apply(this,arguments)}return(0,xe.jsxs)("section",{className:k.bg,children:[(0,xe.jsxs)("div",{className:"edu-container",children:[(0,xe.jsxs)("div",{className:k.top,children:[(0,xe.jsxs)(g.Z,{separator:">",children:[(0,xe.jsx)(g.Z.Item,{children:(0,xe.jsx)(_.Link,{style:{fontSize:12},to:"/competitions",children:"在线竞赛"})}),(0,xe.jsx)(g.Z.Item,{children:(0,xe.jsx)("span",{style:{fontSize:12},children:null==xn?void 0:xn.name})})]}),(0,xe.jsxs)("div",{className:k.content,children:[(0,xe.jsx)("div",{style:{width:700,height:300,maxHeight:300,background:"#f1f1f1",flexShrink:0},children:(null==xn?void 0:xn.image)&&(0,xe.jsx)("img",{className:k.Banner,src:"".concat(null==xn?void 0:xn.image)})}),(0,xe.jsxs)("div",{className:k.right,children:[(0,xe.jsxs)("div",{className:k.titles,children:[null==xn?void 0:xn.name,null!=xn&&xn.sub_title?"-"+xn.sub_title:null]}),(0,xe.jsxs)("div",{className:k.bonus,children:[(0,xe.jsxs)("div",{children:[(0,xe.jsx)("p",{children:null!=xn&&xn.bonus?(0,xe.jsxs)("span",{className:"font20",children:["¥",parseInt(xn&&xn.bonus).toLocaleString()]}):(0,xe.jsx)("span",{style:{fontSize:"16px",color:"#DCDCDC"},children:"暂无"})}),(0,xe.jsxs)("div",{className:k.items,children:[(0,xe.jsx)("i",{className:"iconfont icon-jiangjin"})," ",(0,xe.jsx)("span",{children:"奖金"})]})]}),(0,xe.jsxs)("div",{children:[(0,xe.jsx)("p",{className:"font20",children:parseInt(xn&&(null==xn?void 0:xn.visits_count)).toLocaleString()}),(0,xe.jsxs)("div",{className:k.items,children:[(0,xe.jsx)("i",{className:"iconfont icon-liulan1"}),(0,xe.jsx)("span",{children:"浏览"})]})]}),(0,xe.jsxs)("div",{children:[(0,xe.jsx)("p",{className:"font20",children:parseInt(xn&&(null==xn?void 0:xn.member_count)).toLocaleString()}),(0,xe.jsxs)("div",{className:k.items,children:[(0,xe.jsx)("i",{className:"iconfont icon-baoming"})," ",(0,xe.jsx)("span",{children:"报名"})]})]})]}),(0,xe.jsxs)("div",{className:k.bottom,children:[(0,xe.jsxs)("div",{children:[(0,xe.jsx)("span",{style:{color:"#9096A3"},children:"竞赛时间"}),(0,xe.jsx)("span",{style:{marginLeft:20},children:null!=xn&&xn.start_time?(0,xe.jsxs)("span",{children:[null==xn?void 0:xn.start_time,"~",null==xn?void 0:xn.end_time]}):(0,xe.jsx)("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:function(){_n({tabsIndex:"4"}),cn({type:"competitions/setActionTabs",payload:{key:"7"}})},children:"去完善"})})]}),(0,xe.jsxs)("div",{style:{margin:"14px 0px"},children:[(0,xe.jsx)("span",{style:{color:"#9096A3"},children:"报名截止"}),(0,xe.jsx)("span",{style:{marginLeft:20},children:null!=xn&&xn.enroll_end_time?(0,xe.jsx)("span",{children:null==xn?void 0:xn.enroll_end_time}):(0,xe.jsx)("span",{style:{color:"3061D0",cursor:"pointer"},onClick:function(){_n({tabsIndex:"4"}),cn({type:"competitions/setActionTabs",payload:{key:"7"}})},children:"去完善"})})]}),(0,xe.jsxs)("div",{children:[(0,xe.jsx)("span",{style:{color:"#9096A3"},children:"竞赛状态"}),(0,xe.jsx)("span",{style:{marginLeft:20},children:null===(P=[{name:"待审核",type:"preparing"},{name:"审核中",type:"review"},{name:"被驳回",type:"not_passed"},{name:"即将发布",type:"nearly_published"},{name:"进行中",type:"progressing"},{name:"已结束",type:"ended"},{name:"未发布",type:"unpublish"},{name:"正在报名",type:"apply"}].find((function(e){return e.type===(null==xn?void 0:xn.competition_status)})))||void 0===P?void 0:P.name})]}),["unpublish","preparing","review","not_passed"].includes(null==xn?void 0:xn.competition_status)&&(0,xe.jsx)("span",{className:k.publish,onClick:function(){var e;(null==xn?void 0:xn.not_finish_count)>0?x.Z.confirm({icon:null,title:"",okText:"去完善",content:"检测到当前您还未完善竞赛指引的内容,请先完善指引清单,再发布审核竞赛",onOk:(e=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:_n({tabsIndex:"4"}),cn({type:"competitions/setActionTabs",payload:{key:"5"}});case 2:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})}):(pt(!0),(0,pe.GY)({}).then((function(e){xt(null==e?void 0:e.schools)})).then((function(){var e,n,t;zn.setFieldsValue({sponsor_schools:null===(e=dn.userInfo)||void 0===e?void 0:e.user_school_id,sponsor_user_name:null===(n=dn.userInfo)||void 0===n?void 0:n.real_name,sponsor_user_phone:null===(t=dn.userInfo)||void 0===t?void 0:t.phone})})))},children:"发布竞赛"}),("progressing"===(null==xn?void 0:xn.competition_status)||"apply"===(null==xn?void 0:xn.competition_status))&&!(null!=xn&&xn.team_member_present)&&!(null!=vn&&vn.enroll_ended)&&(0,xe.jsx)("span",{className:k.publish,onClick:r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null!=xn&&xn.is_course_manager?window.open(xn.first_category_url):Vt(2);case 1:case"end":return e.stop()}}),e)}))),children:2===(null==xn?void 0:xn.mode)&&null!=xn&&xn.member_of_course?"进入考场":"立即报名"}),(("progressing"===(null==xn?void 0:xn.competition_status)||"apply"===(null==xn?void 0:xn.competition_status))&&(null==xn?void 0:xn.team_member_present)||((0,fe.Ny)()||(null==xn?void 0:xn.is_course_manager)||(null==xn?void 0:xn.is_manager))&&"ended"!=(null==xn?void 0:xn.competition_status))&&(0,xe.jsx)("span",{className:k.publish,onClick:function(){if(1===xn.mode||3===xn.mode)_n({tabsIndex:"1"}),cn({type:"competitions/setActionTabs",payload:{key:"entrance"}});else{if((0,he.Wn)(null==xn?void 0:xn.forbid_visit_info))return;window.open(xn.first_category_url)}},children:1===xn.mode||3===xn.mode?"赛题入口":"进入考场"}),"ended"===(null==xn?void 0:xn.competition_status)&&(0,xe.jsx)("span",{onClick:function(){if(null!=xn&&xn.team_member_present||(0,fe.Ny)()||null!=xn&&xn.is_manager)if(1===xn.mode||3===xn.mode)_n({tabsIndex:"1"}),cn({type:"competitions/setActionTabs",payload:{key:"entrance"}});else{if((0,he.Wn)(null==xn?void 0:xn.forbid_visit_info))return;window.open(xn.first_category_url)}},className:(null!=xn&&xn.team_member_present||(0,fe.Ny)()||null!=xn&&xn.is_manager)&&1!==xn.mode&&3!==xn.mode?k.publish:k.ended,children:(null!=xn&&xn.team_member_present||(0,fe.Ny)()||null!=xn&&xn.is_manager)&&1!==xn.mode&&3!==xn.mode?"进入考场":"已结束"}),("progressing"===(null==xn?void 0:xn.competition_status)||"apply"===(null==xn?void 0:xn.competition_status))&&(0,xe.jsx)(Xt.CopyToClipboard,{text:"【竞赛邀请】".concat(null==dn||null===(T=dn.userInfo)||void 0===T?void 0:T.username,"邀请您参加头歌平台竞赛组织《").concat(null==xn?void 0:xn.name,"竞赛》,您可以点击下方的链接,报名该赛项。链接:").concat(window.location.origin).concat(window.location.pathname,"?identifier=").concat(null==xn?void 0:xn.identifier),onCopy:function(){return v.ZP.success("已复制链接,请直接粘贴发送好友")},children:(0,xe.jsxs)("span",{className:"".concat(k.shareicon),children:[(0,xe.jsx)("i",{style:{marginRight:6,fontSize:14},className:"iconfont icon-fenxiangketang"}),"分享"]})})]})]})]})]}),!(null!=gn&&null!==(R=gn.data)&&void 0!==R&&R.guides_is_hidden)&&(null==gn||null===(E=gn.data)||void 0===E||null===(E=E.list)||void 0===E?void 0:E.length)>0&&(0,xe.jsx)(tl,{className:"mt20",LineData:null==gn||null===(L=gn.data)||void 0===L||null===(L=L.list)||void 0===L?void 0:L.map((function(e){return l()(l()({},e),{},{competition_time:null!=e&&e.competition_time?de()(null==e?void 0:e.competition_time):null})}))}),(0,xe.jsx)("div",{id:"js_nav"}),(0,xe.jsx)(N.YG,{value:mn.tabsIndex,style:{marginBottom:10,paddingLeft:20,background:"#fff",height:64,position:"sticky",top:0,zIndex:1},onChange:function(e){var n,t;(mn.tabsIndex=e,_n(l()({},mn)),"3"===e)&&((0,fe.eB)()||null!==(n=xn.permission)&&void 0!==n&&n.editable||null!=xn&&xn.team_member_present||null!=vn&&vn.enroll_ended||(xn.personal?cn({type:"competitions/setActionTabs",payload:{key:"6"}}):cn({type:"competitions/setActionTabs",payload:{key:"4"}})));if(("4"==e&&wn(!1),"6"===e)&&!((0,fe.eB)()||null!=xn&&null!==(t=xn.permission)&&void 0!==t&&t.editable))return null==xn||!xn.message_id||null!=xn&&xn.is_hidden?void _.history.push(null==xn||!xn.memo_id||null!=xn&&xn.is_hidden?"/competitions/detail/".concat(fn,"?type=1"):"/forums/".concat(null==xn?void 0:xn.memo_id)):(_.history.push("/classrooms/".concat(null==xn?void 0:xn.course_identifier,"/board/").concat(null==xn?void 0:xn.board_id,"/Detail/").concat(null==xn?void 0:xn.message_id)),void cn({type:"user/getUserInfo",payload:{course_id:null==xn?void 0:xn.course_identifier}}));_.history.replace("/competitions/detail/".concat(fn,"?type=").concat(e))},dataSource:Tt}),("unpublish"===xn.competition_status||"preparing"===xn.competition_status||"review"===xn.competition_status)&&(0,xe.jsxs)("div",{className:k.tag,children:[(0,xe.jsx)(Kt.Z,{})," 提示:该竞赛还未审核,暂时只有管理员可见"]}),((0,fe.eB)()||(null==xn||null===(D=xn.permission)||void 0===D?void 0:D.editable))&&"3"===mn.tabsIndex&&("progressing"===xn.competition_status||"ended"===xn.competition_status)&&((null==xn||null===(B=xn.need_apply_info)||void 0===B?void 0:B.need_apply_name)||(null==xn||null===(V=xn.need_apply_info)||void 0===V?void 0:V.need_apply_teacher_phone)||(null==xn||null===(z=xn.need_apply_info)||void 0===z?void 0:z.need_apply_student_id)||(null==xn||null===(M=xn.need_apply_info)||void 0===M?void 0:M.need_apply_sex)||(null==xn||null===(O=xn.need_apply_info)||void 0===O?void 0:O.need_apply_phone)||(null==xn||null===(Y=xn.need_apply_info)||void 0===Y?void 0:Y.need_apply_grade)||(null==xn||null===(H=xn.need_apply_info)||void 0===H?void 0:H.need_apply_teacher_name)||(null==xn||null===(q=xn.need_apply_info)||void 0===q?void 0:q.need_apply_school))&&(0,xe.jsxs)("div",{className:k.tag,children:[(0,xe.jsx)(Kt.Z,{})," 若本竞赛开启了报名信息填写,那么参赛者的个人资料将以报名时填写的信息为主。如需验证参赛者在平台上的真实账号信息,可以通过“导出”功能来获取详细资料。"]}),"not_passed"===xn.competition_status&&(0,xe.jsxs)("div",{className:k.tag,style:{color:"red",background:"rgba(229,51,51,0.1)"},children:[(0,xe.jsx)(Kt.Z,{})," 审核被驳回",(0,xe.jsx)(y.Z,{placement:"bottom",title:null==xn?void 0:xn.not_passed_reason,children:(0,xe.jsxs)("span",{style:{marginLeft:20},children:["驳回理由:",null==xn?void 0:xn.not_passed_reason]})})]}),null===(Q=Tt.find((function(e){return e.id===mn.tabsIndex})))||void 0===Q?void 0:Q.content]}),(0,xe.jsx)(x.Z,{title:"加入战队",open:Sn,width:700,className:k.scoremodal,onOk:(0,ei.debounce)((function(){zn.submit()}),500),okButtonProps:{loading:Dn},centered:!0,onCancel:function(){return Cn(!1)},children:(0,xe.jsx)("div",{children:(0,xe.jsxs)(f.Z,{form:zn,initialValues:l()(l()({},dn.userInfo),{},{sex:null==dn||null===(G=dn.userInfo)||void 0===G?void 0:G.gender,grade:null==dn||null===(U=dn.userInfo)||void 0===U?void 0:U.edu_entry_year,school:null==dn||null===(W=dn.userInfo)||void 0===W?void 0:W.school_name}),size:"large",labelCol:{span:5},onFinish:function(){var e=r()(o()().mark((function e(n){var t,i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Bn(!0),!Dt()){e.next=4;break}return Bn(!1),e.abrupt("return");case 4:if((s=null===(t=yt.find((function(e){return e.name===(null==n?void 0:n.school)})))||void 0===t?void 0:t.id)||null==xn||null===(i=xn.need_apply_info)||void 0===i||!i.need_apply_school){e.next=8;break}return v.ZP.info("请选择正确的学校"),e.abrupt("return");case 8:return e.next=10,cn({type:"competitions/JoinTeam",payload:l()(l()({},n),{},{identifier:fn,invite_code:n.name,school_id:s})});case 10:a=e.sent,Bn(!1),0===a.status&&(Jn(!0),et(a),Rt(),cn({type:"competitions/setActionTabs",payload:{}}));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[((null==xn||null===(J=xn.need_apply_info)||void 0===J?void 0:J.need_apply_name)||(null==xn||null===(K=xn.need_apply_info)||void 0===K?void 0:K.need_apply_teacher_phone)||(null==xn||null===(X=xn.need_apply_info)||void 0===X?void 0:X.need_apply_student_id)||(null==xn||null===($=xn.need_apply_info)||void 0===$?void 0:$.need_apply_sex)||(null==xn||null===(ee=xn.need_apply_info)||void 0===ee?void 0:ee.need_apply_phone)||(null==xn||null===(ne=xn.need_apply_info)||void 0===ne?void 0:ne.need_apply_grade)||(null==xn||null===(te=xn.need_apply_info)||void 0===te?void 0:te.need_apply_teacher_name)||(null==xn||null===(ie=xn.need_apply_info)||void 0===ie?void 0:ie.need_apply_school))&&(0,xe.jsx)("div",{className:"mb20",children:"根据竞赛官方的规定,参赛人员需填写必填信息才可完成报名,请确保填写的信息准确完整。"}),(0,xe.jsx)(f.Z.Item,{label:"邀请码",name:"name",rules:[{required:!0,validator:function(e,n){var t;return(null==n||null===(t=n.replaceAll(" ",""))||void 0===t?void 0:t.length)>0?Promise.resolve():Promise.reject("请填写竞赛名称")}}],children:(0,xe.jsx)(j.Z,{maxLength:60,showCount:!0,placeholder:"请输入邀请码"})}),(null==xn||null===(le=xn.need_apply_info)||void 0===le?void 0:le.need_apply_name)&&(0,xe.jsx)(f.Z.Item,{label:"参赛人员姓名",name:"real_name",rules:[{required:!0,message:"请输入参赛人员姓名"},{whitespace:!0,message:"姓名不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入参赛人员姓名",showCount:!0,maxLength:60})}),(null==xn||null===(se=xn.need_apply_info)||void 0===se?void 0:se.need_apply_sex)&&(0,xe.jsx)(f.Z.Item,{label:"性别",name:"sex",rules:[{required:!0,message:"请选择参赛人员性别"}],children:(0,xe.jsxs)(b.ZP.Group,{children:[(0,xe.jsx)(b.ZP,{value:0,children:"男"}),(0,xe.jsx)(b.ZP,{value:1,children:"女"})]})}),(null==xn||null===(oe=xn.need_apply_info)||void 0===oe?void 0:oe.need_apply_student_id)&&(0,xe.jsx)(f.Z.Item,{label:"学号",name:"student_id",rules:[{required:!0,message:"请输入参赛人员学号"},{whitespace:!0,message:"学号不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入参赛人员学号",showCount:!0,maxLength:60})}),(null==xn||null===(ae=xn.need_apply_info)||void 0===ae?void 0:ae.need_apply_phone)&&(0,xe.jsx)(f.Z.Item,{label:"电话",name:"phone",rules:[{required:!0,message:"请输入参赛人员电话"},{whitespace:!0,message:"电话不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入参赛人员电话",showCount:!0,maxLength:60})}),(null==xn||null===(re=xn.need_apply_info)||void 0===re?void 0:re.need_apply_grade)&&(0,xe.jsx)(f.Z.Item,{label:"年级",name:"grade",rules:[{required:!0,message:"请选择参赛人员年级"}],children:(0,xe.jsx)(h.default,{placeholder:"请选择参赛人员年级",size:"large",children:Ft()})}),(null==xn||null===(ce=xn.need_apply_info)||void 0===ce?void 0:ce.need_apply_teacher_name)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师姓名",name:"teacher_name",rules:[{required:!0,message:"请输入指导老师姓名"},{whitespace:!0,message:"指导老师姓名不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"如没有指导老师请填无",showCount:!0,maxLength:60})}),(null==xn||null===(me=xn.need_apply_info)||void 0===me?void 0:me.need_apply_teacher_phone)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师联系方式",name:"teacher_phone",rules:[{required:!0,message:"请输入指导老师联系方式"},{whitespace:!0,message:"指导老师联系方式不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入指导老师联系方式",showCount:!0,maxLength:60})}),(null==xn||null===(_e=xn.need_apply_info)||void 0===_e?void 0:_e.need_apply_school)&&1!==(null==xn?void 0:xn.region_rule)&&"81bjsjjs"!==xn.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(w.Z,{size:"large",showSearch:!0,onChange:function(e){return Nt(e)},children:St.map((function(e,n){return(0,xe.jsx)(ll,{value:e.name,children:e.name},n)}))})}),(null==xn||null===(ve=xn.need_apply_info)||void 0===ve?void 0:ve.need_apply_school)&&1===(null==xn?void 0:xn.region_rule)||"81bjsjjs"===xn.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(h.default,{showSearch:!0,children:yt.map((function(e,n){return(0,xe.jsx)(ll,{value:e.name,children:e.name},n)}))})})]})})}),(0,xe.jsxs)(x.Z,{title:!1,footer:!1,open:it,width:318,className:k.scoremodal,closable:!1,centered:!0,children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("div",{className:k.title,children:"报名"}),(0,xe.jsx)("span",{onClick:function(){return lt(!1)},style:{cursor:"pointer"},className:k.close,children:(0,xe.jsx)("i",{className:"iconfont icon-danchuangguanbi",style:{fontSize:"14px"}})})]}),(0,xe.jsx)("div",{className:k.content,children:"选择参赛方式"}),(0,xe.jsxs)("div",{className:k.bottoms,children:[(0,xe.jsx)(Z.ZP,{className:k.no,onClick:function(){cn({type:"competitions/setActionTabs",payload:{key:"2"}}),lt(!1)},children:"加入战队"}),(0,xe.jsx)(Z.ZP,{className:k.yes,onClick:function(){cn({type:"competitions/setActionTabs",payload:{key:"3"}}),lt(!1)},children:"创建战队"})]})]}),(0,xe.jsxs)(x.Z,{title:!1,footer:!1,open:at,width:318,className:k.scoremodal,closable:!1,centered:!0,children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("div",{className:k.title,children:"报名"}),(0,xe.jsx)("span",{onClick:function(){return rt(!1)},style:{cursor:"pointer"},className:k.close,children:(0,xe.jsx)("i",{className:"iconfont icon-danchuangguanbi"})})]}),(0,xe.jsx)("div",{className:k.content,children:"您暂未报名,请先报名"}),(0,xe.jsxs)("div",{className:k.bottoms,children:[(0,xe.jsx)(Z.ZP,{className:k.no,onClick:function(){rt(!1)},children:"取消"}),(0,xe.jsx)(Z.ZP,{className:k.yes,loading:Dn,onClick:r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Dt()){e.next=3;break}return Bn(!1),e.abrupt("return");case 3:if(!Dn){e.next=5;break}return e.abrupt("return");case 5:return Bn(!0),e.next=8,cn({type:"competitions/AddTeam",payload:{identifier:fn}});case 8:n=e.sent,Bn(!1),n&&0===n.status&&(et(n),Jn(!0),Rt(),cn({type:"competitions/setActionTabs",payload:{}})),rt(!1);case 12:case"end":return e.stop()}}),e)}))),children:"立即报名"})]})]}),(0,xe.jsx)(x.Z,{title:"报名信息填写",open:Zt,width:700,className:k.scoremodal,onOk:(0,ei.debounce)((function(){On.submit()}),500),okButtonProps:{loading:Dn},centered:!0,onCancel:function(){return kt(!1)},children:(0,xe.jsxs)(f.Z,{initialValues:l()(l()({},dn.userInfo),{},{sex:null==dn||null===(ge=dn.userInfo)||void 0===ge?void 0:ge.gender,grade:null==dn||null===(ye=dn.userInfo)||void 0===ye?void 0:ye.edu_entry_year,school:null==dn||null===(je=dn.userInfo)||void 0===je?void 0:je.school_name}),form:On,colon:!1,labelCol:{span:5},size:"large",onFinish:function(){var e=r()(o()().mark((function e(n){var t,i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((s=null===(t=yt.find((function(e){return e.name===(null==n?void 0:n.school)})))||void 0===t?void 0:t.id)||null==xn||null===(i=xn.need_apply_info)||void 0===i||!i.need_apply_school){e.next=4;break}return v.ZP.info("请选择正确的学校"),e.abrupt("return");case 4:return Bn(!0),e.next=7,cn({type:"competitions/AddTeam",payload:l()(l()({},n),{},{identifier:fn,name:dn.userInfo.real_name+"的战队",school_id:s})});case 7:a=e.sent,Bn(!1),a&&0===a.status&&(et(a),Jn(!0),Rt(),cn({type:"competitions/setActionTabs",payload:{}})),kt(!1);case 11:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[((null==xn||null===(be=xn.need_apply_info)||void 0===be?void 0:be.need_apply_name)||(null==xn||null===(we=xn.need_apply_info)||void 0===we?void 0:we.need_apply_teacher_phone)||(null==xn||null===(ke=xn.need_apply_info)||void 0===ke?void 0:ke.need_apply_student_id)||(null==xn||null===(Ne=xn.need_apply_info)||void 0===Ne?void 0:Ne.need_apply_sex)||(null==xn||null===(Ie=xn.need_apply_info)||void 0===Ie?void 0:Ie.need_apply_phone)||(null==xn||null===(Ae=xn.need_apply_info)||void 0===Ae?void 0:Ae.need_apply_grade)||(null==xn||null===(Se=xn.need_apply_info)||void 0===Se?void 0:Se.need_apply_teacher_name)||(null==xn||null===(Ce=xn.need_apply_info)||void 0===Ce?void 0:Ce.need_apply_school))&&(0,xe.jsx)("div",{className:"mb20",children:"根据竞赛官方的规定,参赛人员需填写必填信息才可完成报名,请确保填写的信息准确完整。"}),(null==xn||null===(Fe=xn.need_apply_info)||void 0===Fe?void 0:Fe.need_apply_name)&&(0,xe.jsx)(f.Z.Item,{label:"参赛人员姓名",name:"real_name",rules:[{required:!0,message:"请输入参赛人员姓名"},{whitespace:!0,message:"姓名不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入参赛人员姓名",showCount:!0,maxLength:60})}),(null==xn||null===(Pe=xn.need_apply_info)||void 0===Pe?void 0:Pe.need_apply_sex)&&(0,xe.jsx)(f.Z.Item,{label:"性别",name:"sex",rules:[{required:!0,message:"请选择参赛人员性别"}],children:(0,xe.jsxs)(b.ZP.Group,{children:[(0,xe.jsx)(b.ZP,{value:0,children:"男"}),(0,xe.jsx)(b.ZP,{value:1,children:"女"})]})}),(null==xn||null===(Te=xn.need_apply_info)||void 0===Te?void 0:Te.need_apply_student_id)&&(0,xe.jsx)(f.Z.Item,{label:"学号",name:"student_id",rules:[{required:!0,message:"请输入参赛人员学号"},{whitespace:!0,message:"学号不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入参赛人员学号",showCount:!0,maxLength:60})}),(null==xn||null===(Re=xn.need_apply_info)||void 0===Re?void 0:Re.need_apply_phone)&&(0,xe.jsx)(f.Z.Item,{label:"电话",name:"phone",rules:[{required:!0,message:"请输入参赛人员电话"},{whitespace:!0,message:"电话不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入参赛人员电话",showCount:!0,maxLength:60})}),(null==xn||null===(Ee=xn.need_apply_info)||void 0===Ee?void 0:Ee.need_apply_grade)&&(0,xe.jsx)(f.Z.Item,{label:"年级",name:"grade",rules:[{required:!0,message:"请选择参赛人员年级"},"81bjsjjs"===fn?{validator:function(e,n){return 2023!==n?Promise.reject(new Error("不符合报名参赛范围")):Promise.resolve()}}:null].filter((function(e){return null!==e})),children:(0,xe.jsx)(h.default,{placeholder:"请选择参赛人员年级",size:"large",children:Ft()})}),(null==xn||null===(Le=xn.need_apply_info)||void 0===Le?void 0:Le.need_apply_teacher_name)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师姓名",name:"teacher_name",rules:[{required:!0,message:"请输入指导老师姓名"},{whitespace:!0,message:"指导老师姓名不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"如没有指导老师请填无",showCount:!0,maxLength:60})}),(null==xn||null===(De=xn.need_apply_info)||void 0===De?void 0:De.need_apply_teacher_phone)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师联系方式",name:"teacher_phone",rules:[{required:!0,message:"请输入指导老师联系方式"},{whitespace:!0,message:"指导老师联系方式不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入指导老师联系方式",showCount:!0,maxLength:60})}),(null==xn||null===(Be=xn.need_apply_info)||void 0===Be?void 0:Be.need_apply_school)&&"81bjsjjs"!==xn.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(w.Z,{size:"large",showSearch:!0,onChange:function(e){return Nt(e)},children:St.map((function(e,n){return(0,xe.jsx)(ll,{value:e.name,children:e.name},n)}))})}),(null==xn||null===(Ve=xn.need_apply_info)||void 0===Ve?void 0:Ve.need_apply_school)&&1===(null==xn?void 0:xn.region_rule)||"81bjsjjs"===xn.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(h.default,{showSearch:!0,children:yt.map((function(e,n){return(0,xe.jsx)(ll,{value:e.name,children:e.name},n)}))})})]})}),(0,xe.jsx)(x.Z,{title:"创建战队",open:Tn,width:700,className:k.scoremodal,onOk:(0,ei.debounce)((function(){zn.submit()}),500),okButtonProps:{loading:Dn},centered:!0,onCancel:function(){return Rn(!1)},children:(0,xe.jsx)("div",{children:(0,xe.jsxs)(f.Z,{form:zn,labelCol:{span:5},initialValues:l()(l()({},dn.userInfo),{},{sex:null==dn||null===(ze=dn.userInfo)||void 0===ze?void 0:ze.gender,grade:null==dn||null===(Me=dn.userInfo)||void 0===Me?void 0:Me.edu_entry_year,school:null==dn||null===(Oe=dn.userInfo)||void 0===Oe?void 0:Oe.school_name}),size:"large",onFinish:function(){var e=r()(o()().mark((function e(n){var t,i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Bn(!0),(s=null===(t=yt.find((function(e){return e.name===(null==n?void 0:n.school)})))||void 0===t?void 0:t.id)||null==xn||null===(i=xn.need_apply_info)||void 0===i||!i.need_apply_school){e.next=5;break}return v.ZP.info("请选择正确的学校"),e.abrupt("return");case 5:if(!Dt()){e.next=8;break}return Bn(!1),e.abrupt("return");case 8:return e.next=10,cn({type:"competitions/AddTeam",payload:l()(l()({},n),{},{identifier:fn,name:n.name,school_id:s})});case 10:a=e.sent,Bn(!1),a&&0===a.status&&(et(a),Jn(!0),Rt(),cn({type:"competitions/setActionTabs",payload:{}}));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[((null==xn||null===(Ye=xn.need_apply_info)||void 0===Ye?void 0:Ye.need_apply_name)||(null==xn||null===(He=xn.need_apply_info)||void 0===He?void 0:He.need_apply_teacher_phone)||(null==xn||null===(qe=xn.need_apply_info)||void 0===qe?void 0:qe.need_apply_student_id)||(null==xn||null===(Qe=xn.need_apply_info)||void 0===Qe?void 0:Qe.need_apply_sex)||(null==xn||null===(Ge=xn.need_apply_info)||void 0===Ge?void 0:Ge.need_apply_phone)||(null==xn||null===(Ue=xn.need_apply_info)||void 0===Ue?void 0:Ue.need_apply_grade)||(null==xn||null===(We=xn.need_apply_info)||void 0===We?void 0:We.need_apply_teacher_name)||(null==xn||null===(Je=xn.need_apply_info)||void 0===Je?void 0:Je.need_apply_school))&&(0,xe.jsx)("div",{className:"mb20",children:"根据竞赛官方的规定,参赛人员需填写必填信息才可完成报名,请确保填写的信息准确完整。"}),(0,xe.jsx)(f.Z.Item,{label:"队伍名称",name:"name",rules:[{required:!0,validator:function(e,n){var t;return(null==n||null===(t=n.replaceAll(" ",""))||void 0===t?void 0:t.length)>0?Promise.resolve():Promise.reject("请填写队伍名称")}}],children:(0,xe.jsx)(j.Z,{maxLength:60,showCount:!0,placeholder:"请输入队伍名称"})}),(null==xn||null===(Ke=xn.need_apply_info)||void 0===Ke?void 0:Ke.need_apply_name)&&(0,xe.jsx)(f.Z.Item,{label:"参赛人员姓名",name:"real_name",rules:[{required:!0,message:"请输入参赛人员姓名"},{whitespace:!0,message:"姓名不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入参赛人员姓名",showCount:!0,maxLength:60})}),(null==xn||null===(Xe=xn.need_apply_info)||void 0===Xe?void 0:Xe.need_apply_sex)&&(0,xe.jsx)(f.Z.Item,{label:"性别",name:"sex",rules:[{required:!0,message:"请选择参赛人员性别"}],children:(0,xe.jsxs)(b.ZP.Group,{children:[(0,xe.jsx)(b.ZP,{value:0,children:"男"}),(0,xe.jsx)(b.ZP,{value:1,children:"女"})]})}),(null==xn||null===($e=xn.need_apply_info)||void 0===$e?void 0:$e.need_apply_student_id)&&(0,xe.jsx)(f.Z.Item,{label:"学号",name:"student_id",rules:[{required:!0,message:"请输入参赛人员学号"},{whitespace:!0,message:"学号不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入参赛人员学号",showCount:!0,maxLength:60})}),(null==xn||null===(en=xn.need_apply_info)||void 0===en?void 0:en.need_apply_phone)&&(0,xe.jsx)(f.Z.Item,{label:"电话",name:"phone",rules:[{required:!0,message:"请输入参赛人员电话"},{whitespace:!0,message:"电话不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入参赛人员电话",showCount:!0,maxLength:60})}),(null==xn||null===(nn=xn.need_apply_info)||void 0===nn?void 0:nn.need_apply_grade)&&(0,xe.jsx)(f.Z.Item,{label:"年级",name:"grade",rules:[{required:!0,message:"请选择参赛人员年级"}],children:(0,xe.jsx)(h.default,{placeholder:"请选择参赛人员年级",size:"large",children:Ft()})}),(null==xn||null===(tn=xn.need_apply_info)||void 0===tn?void 0:tn.need_apply_teacher_name)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师姓名",name:"teacher_name",rules:[{required:!0,message:"请输入指导老师姓名"},{whitespace:!0,message:"指导老师姓名不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"如没有指导老师请填无",showCount:!0,maxLength:60})}),(null==xn||null===(ln=xn.need_apply_info)||void 0===ln?void 0:ln.need_apply_teacher_phone)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师联系方式",name:"teacher_phone",rules:[{required:!0,message:"请输入指导老师联系方式"},{whitespace:!0,message:"指导老师联系方式不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入指导老师联系方式",showCount:!0,maxLength:60})}),(null==xn||null===(sn=xn.need_apply_info)||void 0===sn?void 0:sn.need_apply_school)&&"81bjsjjs"!==xn.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(w.Z,{size:"large",showSearch:!0,onChange:function(e){return Nt(e)},children:St.map((function(e,n){return(0,xe.jsx)(ll,{value:e.name,children:e.name},n)}))})}),(null==xn||null===(on=xn.need_apply_info)||void 0===on?void 0:on.need_apply_school)&&1===(null==xn?void 0:xn.region_rule)||"81bjsjjs"===xn.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(h.default,{showSearch:!0,children:yt.map((function(e,n){return(0,xe.jsx)(ll,{value:e.name,children:e.name},n)}))})})]})})}),(0,xe.jsxs)(x.Z,{title:!1,footer:!1,open:ut,width:650,className:k.scoremodal,closable:!1,centered:!0,onCancel:function(){return pt(!1)},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("div",{className:k.title,children:"为了加快竞赛审核速度,请确认以下信息是否准确"}),(0,xe.jsx)("span",{onClick:function(){return pt(!1)},style:{cursor:"pointer"},className:k.close,children:(0,xe.jsx)("i",{className:"iconfont icon-guanbi",style:{color:"#979797",fontSize:"15px"}})})]}),(0,xe.jsx)("div",{className:k.content,children:(0,xe.jsxs)(f.Z,{form:zn,className:k.formWrap,onFinish:function(e){(0,ue.qt)(l()(l()({},e),{},{id:fn})).then((function(e){0==(null==e?void 0:e.status)?(v.ZP.success("发布审核成功,审核通过后,竞赛可上线启动"),pt(!1),Rt()):v.ZP.error(null==e?void 0:e.message)}))},labelCol:{flex:"110px"},children:[(0,xe.jsx)(f.Z.Item,{className:k.form_item,label:"主办方",colon:!1,name:"sponsor_schools",children:(0,xe.jsx)(h.default,{mode:"multiple",className:k.form_item_item_select,options:ft,fieldNames:{label:"name",value:"id"},placeholder:"请输入主办方",filterOption:function(e,n){var t;return(null!==(t=null==n?void 0:n.name)&&void 0!==t?t:"").toLowerCase().includes(e.toLowerCase())}})}),(0,xe.jsx)(f.Z.Item,{className:k.form_item,label:"主要负责人姓名",colon:!1,name:"sponsor_user_name",children:(0,xe.jsx)(j.Z,{className:k.form_item_item,placeholder:"请输入主要负责人姓名"})}),(0,xe.jsx)(f.Z.Item,{className:k.form_item,label:"主要负责人电话",colon:!1,name:"sponsor_user_phone",rules:[{pattern:new RegExp(/^((0\d{2,3}(-)?\d{7,8})|(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8})$/,"g"),message:"必须是正确的座机号或者手机号"}],children:(0,xe.jsx)(j.Z,{className:k.form_item_item,placeholder:"请输入主要负责人电话"})}),(0,xe.jsx)("div",{className:k.bottom,children:(0,xe.jsxs)(f.Z.Item,{children:[(0,xe.jsx)(Z.ZP,{size:"middle",className:k.no,onClick:function(){pt(!1)},children:"取消"}),(0,xe.jsx)(Z.ZP,{className:k.yes,size:"middle",type:"primary",htmlType:"submit",loading:rn,children:"保存"})]})})]})})]}),(0,xe.jsx)(wi.Z,{}),(0,xe.jsx)(bi.Z,{datas:$n,Header:xn,isopen:Wn,setisopen:Jn,isShowPhone:qn,setIsShowPhone:Qn,user:dn,dispatch:cn,onOK:function(){Rt()}})]})}))},10764:function(e,n,t){var i=t(7557),l=t.n(i),s=t(41498),o=t.n(s),a=t(79800),r=t.n(a),c=t(59301),d=t(8591),u=t(43418),p=t(92832),m=t(3113),_=t(18030),h=t(34423),f=t(21082),x=t(92723),v=t(37712),g=/^1\d{10}$/;n.Z=function(e){var n=e.isShowPhone,t=e.setIsShowPhone,i=e.user,s=e.dispatch,a=e.onOK,y=e.isopen,j=e.setisopen,b=e.datas,w=e.Header,Z=(0,c.useState)(""),k=r()(Z,2),N=k[0],I=k[1],A=(0,c.useState)(""),S=r()(A,2),C=S[0],F=S[1],P=(0,c.useState)(60),T=r()(P,2),R=T[0],E=T[1],L=(0,c.useState)(),D=r()(L,2),B=D[0],V=D[1],z=(0,c.useState)(!1),M=r()(z,2),O=M[0],Y=M[1],H=(0,c.useState)(!1),q=r()(H,2),Q=q[0],G=q[1],U=(0,c.useState)(""),W=r()(U,2),J=W[0],K=W[1],X=(0,c.useRef)();(0,c.useEffect)((function(){return function(){X.current&&clearInterval(X.current)}}),[]),(0,h.Y)((function(){B&&(E(60),R>0?E(R-1):(E(60),V(!1),X.current&&clearInterval(X.current)))}),1e3);var $=function(){var e=o()(l()().mark((function e(){var n,t,o;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.ZP)("/api/users/accounts/".concat(null===(n=i.userInfo)||void 0===n?void 0:n.login,"/valid_phone.json"),{method:"get",params:{phone:N}});case 2:if(-1!==(null==(t=e.sent)?void 0:t.status)){e.next=5;break}return e.abrupt("return");case 5:if(null==t||!t.is_exists){e.next=8;break}return Y(!0),e.abrupt("return");case 8:return o=(0,f.M)(N),e.next=11,s({type:"account/getCode",payload:{login:N,type:3,smscode:o}});case 11:1===e.sent.status&&(d.ZP.info("验证码已发送,请注意查收"),V(!0));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,v.jsxs)("div",{children:[(0,v.jsx)(u.Z,{title:"强制解绑",open:Q,onCancel:function(){return G(!1)},onOk:o()(l()().mark((function e(){var n,s;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(J){e.next=3;break}return d.ZP.info("验证码不能为空"),e.abrupt("return");case 3:return e.next=5,(0,_.ZP)("/api/users/accounts/".concat(null==i||null===(n=i.userInfo)||void 0===n?void 0:n.login,"/phone_force_unbind.json"),{method:"POST",body:{code:J,phone:N}});case 5:0===(null==(s=e.sent)?void 0:s.status)&&(d.ZP.info("解绑成功"),V(!1),G(!1),a(),t(!1),K(""));case 7:case"end":return e.stop()}}),e)}))),children:(0,v.jsxs)("div",{style:{padding:"8px 24px"},children:[(0,v.jsx)("p",{children:"若原账号只有绑定了手机号一种登录方式,强制解绑后会导致原账号无法登录,请确定是否强制解绑"}),(0,v.jsxs)("p",{children:["你的手机号:",N]}),(0,v.jsxs)("p",{children:["手机验证码:",(0,v.jsx)(p.Z,{value:J,size:"middle",onChange:function(e){return K(e.target.value)},style:{width:"240px"}})," ",(0,v.jsx)(m.ZP,{disabled:B,type:"primary",size:"middle",onClick:o()(l()().mark((function e(){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,f.M)(N),e.next=3,s({type:"account/getCode",payload:{login:N,type:10,smscode:n}});case 3:1===e.sent.status&&(d.ZP.info("验证码已发送,请注意查收"),V(!0));case 5:case"end":return e.stop()}}),e)}))),children:B?"重新发送".concat(R,"s"):"获取验证码"})]})]})}),(0,v.jsx)(u.Z,{title:"提示",open:O,onCancel:function(){Y(!1)},okText:"进行强制解绑",okButtonProps:{type:"primary",ghost:!0,style:{width:"124px"}},onOk:function(){G(!0),Y(!1)},children:(0,v.jsxs)("div",{style:{padding:"7px 24px"},children:[(0,v.jsx)("span",{children:"该手机号已经被绑定账号,如果需要将该手机号绑定在当前账号上,你可以进行下方任意一种解绑操作:"}),(0,v.jsx)("br",{}),(0,v.jsx)("p",{style:{marginTop:"1em",display:"flex"},children:(0,v.jsx)("span",{style:{flex:"1"},children:"1、使用该手机号登录平台进行解绑,再将手机号绑定当前账号上。"})}),(0,v.jsx)("p",{style:{marginTop:"1em",display:"flex"},children:(0,v.jsx)("span",{style:{flex:"1"},children:"2、强制解绑(强制解绑可能会导致解绑账号无法登录)"})})]})}),(0,v.jsx)(u.Z,{title:"绑定手机号",open:n,onCancel:function(){return t(!1)},onOk:o()(l()().mark((function e(){var n,o,r;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g.test(N)){e.next=3;break}return d.ZP.info("请输入有效的11位手机号码"),e.abrupt("return");case 3:if(C){e.next=6;break}return d.ZP.info("请输入验证码"),e.abrupt("return");case 6:return n=i.userInfo||{},o=n.login,e.next=9,s({type:"account/bindPhone",payload:{login:o,phone:N,code:C}});case 9:0===(null==(r=e.sent)?void 0:r.status)&&(t(!1),a());case 11:case"end":return e.stop()}}),e)}))),children:(0,v.jsxs)("div",{style:{padding:"8px 24px"},children:[(0,v.jsx)("p",{children:"平台已检测到您未绑定手机号,为了不影响使用报名功能,请先绑定手机号码"}),(0,v.jsxs)("p",{children:["你的手机号:",(0,v.jsx)(p.Z,{size:"middle",value:N,onChange:function(e){return I(e.target.value)},style:{width:"240px"}})]}),(0,v.jsxs)("p",{children:["手机验证码:",(0,v.jsx)(p.Z,{size:"middle",value:C,onChange:function(e){return F(e.target.value)},style:{width:"240px"}})," ",(0,v.jsx)(m.ZP,{disabled:B,type:"primary",size:"middle",onClick:o()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g.test(N)){e.next=3;break}return d.ZP.info("请输入有效的11位手机号码"),e.abrupt("return");case 3:$();case 4:case"end":return e.stop()}}),e)}))),children:B?"重新发送".concat(R,"s"):"获取验证码"})]})]})}),(0,v.jsx)(u.Z,{open:y,footer:!1,onCancel:function(){return j(!1)},centered:!0,width:460,children:(0,v.jsxs)("div",{children:[(0,v.jsxs)("div",{style:{marginTop:50,fontSize:26,color:"#3d3d3d",textAlign:"center",marginBottom:20},children:[(0,v.jsx)("i",{style:{fontSize:26,color:"#52C41A"},className:"iconfont icon-tongguo"})," 报名成功"]}),(0,v.jsxs)("div",{style:{alignItems:"center",textAlign:"center"},children:[(null==w?void 0:w.is_show_picture)&&(0,v.jsx)("img",{style:{width:180,border:"1px solid #eeeeef",padding:10,marginBottom:20},src:x.Z.IMG_SERVER+(null==b?void 0:b.QR_code)}),(0,v.jsx)("p",{style:{color:"#AAAAAA"},children:(null==w?void 0:w.apply_success_tips)||"参赛者可扫码加入大赛官方交流群,获取最新竞赛通知"})]})]})})]})}},90341:function(e,n,t){t.d(n,{$J:function(){return r},JZ:function(){return d},bN:function(){return m},jP:function(){return p},rO:function(){return c}});var i=t(7557),l=t.n(i),s=t(41498),o=t.n(s),a=t(18030);function r(e){return(0,a.U2)("libraries/".concat(e,".json"))}function c(){return(0,a.U2)("library_tags.json")}function d(e){return u.apply(this,arguments)}function u(){return(u=o()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.IV)("attachments/".concat(n,".json"));case 2:return t=e.sent,e.abrupt("return",0===t.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,a.v_)("libraries.json",e)}function m(e,n){return(0,a.gz)("libraries/".concat(e,".json"),n)}},1806:function(e,n,t){t.d(n,{AD:function(){return P},D9:function(){return B},Hp:function(){return Z},IM:function(){return z},Iy:function(){return N},KM:function(){return J},MJ:function(){return k},Ne:function(){return V},ON:function(){return q},Uj:function(){return U},VY:function(){return Y},YO:function(){return G},YX:function(){return Q},Zn:function(){return f},_g:function(){return j},_k:function(){return L},c6:function(){return C},cr:function(){return x},eV:function(){return F},fi:function(){return v},gh:function(){return A},hS:function(){return M},iA:function(){return g},j6:function(){return b},je:function(){return E},jj:function(){return w},kS:function(){return H},o6:function(){return S},pO:function(){return W},rQ:function(){return T},sA:function(){return I},xm:function(){return D},xo:function(){return O},y8:function(){return R},yd:function(){return y}});var i=t(7557),l=t.n(i),s=t(82242),o=t.n(s),a=t(41498),r=t.n(a),c=t(54602),d=t(5296),u=t(21082),p=t(8591),m=t(92723),_=function(){(0,d.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"正在生成文件,请稍后..."}})},h=function(){(0,d.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},f=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(),e.next=3,(0,c.YR)(o()({},n));case 3:if(0!==e.sent.status){e.next=7;break}return e.next=7,(0,u.QH)("",(0,u.NY)({url:m.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)}}(),x=function(){var e=r()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.yS)(o()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),d.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,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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)}}(),v=function(){var e=r()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.W0)(o()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),d.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,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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)}}(),g=function(){var e=r()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.Nl)(o()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),d.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,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),y=function(){var e=r()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.IU)(o()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),d.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,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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)}}(),j=function(){var e=r()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.td)(o()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),d.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,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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)}}(),b=function(){var e=r()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.QX)(o()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),d.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,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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)}}(),w=function(){var e=r()(l()().mark((function e(n,t){var i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.o_)(o()({},n));case 2:0===(i=e.sent).status?(p.ZP.info("导出任务生成成功!导出后文件保存时间为7天,请及时下载"),d.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t))):-3===i.status&&((0,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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)}}(),Z=function(){var e=r()(l()().mark((function e(n,t){var i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.ZL)(o()({},n));case 2:0===(i=e.sent).status?(p.ZP.info("导出任务生成成功!导出后文件保存时间为7天,请及时下载"),d.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t))):-3===i.status&&((0,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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=r()(l()().mark((function e(n,t){var i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.vV)(o()({},n));case 2:0===(i=e.sent).status?(p.ZP.info("导出任务生成成功!导出后文件保存时间为7天,请及时下载"),d.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t))):-3===i.status&&((0,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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=r()(l()().mark((function e(n,t){var i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.aP)(o()({},n));case 2:0===(i=e.sent).status?(p.ZP.info("导出任务生成成功"),d.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t))):-3===i.status&&((0,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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)}}(),I=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(),e.next=3,(0,u.QH)("",m.Z.API_SERVER+"/api/polls/".concat(n.categoryId,"/commit_result.xlsx"));case 3:h();case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),A=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),S=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),C=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),F=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),T=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),R=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),E=function(){var e=r()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.Uy)(o()({},n));case 2:0===(t=e.sent).status?(p.ZP.info("导出任务生成成功"),d.history.push("/classrooms/".concat(n.coursesId,"/exportlist/exercise_score"))):-3===t.status&&((0,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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)}}(),L=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("----------","调用下载"),e.next=3,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),D=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),B=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),V=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),z=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)(null==n?void 0:n.name,(0,u.NY)({url:m.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)}}(),M=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),O=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),Y=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),q=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),Q=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),G=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),U=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),W=function(){var e=r()(l()().mark((function e(n,t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)(t||"",(0,u.NY)({url:m.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)}}(),J=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}()},1058:function(e,n,t){t.d(n,{U:function(){return p}});var i=t(7557),l=t.n(i),s=t(82242),o=t.n(s),a=t(41498),r=t.n(a),c=t(79800),d=t.n(c),u=t(59301);function p(e,n){var t=(0,u.useState)(n),i=d()(t,2),s=i[0],a=i[1],c=(0,u.useState)(!1),p=d()(c,2),m=p[0],_=p[1],h=(0,u.useState)(),f=d()(h,2),x=f[0],v=f[1],g=function(){var t=r()(l()().mark((function t(i){var r,c,d,u=arguments;return l()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=u.length>1&&void 0!==u[1]&&u[1],c=r?n:o()(o()({},s),i),_(!0),a(c),t.next=6,e(c);case 6:return d=t.sent,_(!1),v(d),t.abrupt("return",d);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return[s,m,g,x]}},34423:function(e,n,t){t.d(n,{Y:function(){return l}});var i=t(59301);function l(e,n){var t=(0,i.useRef)(),l=(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 l.current=e,function(){return clearInterval(e)}}}),[n])}},65648:function(e,n){n.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}}}]); \ No newline at end of file diff --git a/p__Competitions__Edit__index.4efe60d2.async.js b/p__Competitions__Edit__index.4efe60d2.async.js deleted file mode 100644 index f2311b12fb..0000000000 --- a/p__Competitions__Edit__index.4efe60d2.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[38797,1806],{91628:function(e,n,t){var i=t(39647),l=t.n(i),s=(t(59301),t(5296)),o=t(43418),a=t(37712),r=["shixunsDetail","globalSetting","loading","dispatch"];n.Z=(0,s.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n=e.shixunsDetail,t=(e.globalSetting,e.loading,e.dispatch);l()(e,r);return(0,a.jsx)(o.Z,{centered:!0,keyboard:!1,closable:!1,zIndex:6666,title:"提示",open:"Banner-Auth"===n.actionTabs.key,okText:"确定",cancelText:"取消",onOk:function(){t({type:"shixunsDetail/setActionTabs",payload:{}}),window.location.href="/account/certification"},onCancel:function(){t({type:"shixunsDetail/setActionTabs",payload:{}})},children:(0,a.jsxs)("p",{className:"tc font16",children:["当前竞赛需要实名认证,请先完成实名认证后再报名参赛",(0,a.jsx)("br",{}),"请问是否前往进行认证?"]})})}))},30904:function(e,n,t){t.d(n,{Z:function(){return u}});var i=t(79800),l=t.n(i),s=t(78241),o=t(92832),a=t(3113),r=t(59301),c={search:"search___JA0r9",btn:"btn___GGtZC"},d=t(37712),u=function(e){var n=e.value,t=e.onChange,i=s.Z.useForm(),u=l()(i,1)[0],p=(0,r.useRef)(!1);(0,r.useEffect)((function(){n&&u.setFieldsValue(n)}),n);return(0,d.jsx)("div",{className:c.search,children:(0,d.jsxs)(s.Z,{className:c.formWrap,colon:!1,form:u,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,d.jsx)(s.Z.Item,{label:"实践项目名称",name:"keyword",initialValue:"",children:(0,d.jsx)(o.Z,{style:{width:280,height:40}})}),(0,d.jsx)(s.Z.Item,{label:"学校/单位",name:"schools",initialValue:"",style:{margin:"0 40px"},children:(0,d.jsx)(o.Z,{style:{width:280,height:40}})}),(0,d.jsx)(s.Z.Item,{label:"创建者/合作者",name:"creator",initialValue:"",children:(0,d.jsx)(o.Z,{style:{width:200,height:40}})}),(0,d.jsx)(a.ZP,{className:c.btn,type:"primary",htmlType:"submit",children:"搜索"})]})})}},98382:function(e,n,t){t.d(n,{z:function(){return N},Z:function(){return I}});var i=t(7557),l=t.n(i),s=t(41498),o=t.n(s),a=t(82242),r=t.n(a),c=t(37205),d=t.n(c),u=t(79800),p=t.n(u),m=t(59301),_=t(59028),h=t(8591),f=t(43418),x=t(3113),v=t(92723),g=t(90341),y=t(37712),j="  ";function b(e){if(0==e)return"0 Byte";var n=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,n)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][n]}var w=t(60186),Z=t(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var k=_.Z.Dragger;function N(e){var n=[];return e&&e.length>0&&(n=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+j+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),n}var I=function(e){var n=e.value,t=e.onChange,i=e.action,s=e.data,a=e.className,c=e.maxSize,u=void 0===c?150:c,N=e.title,I=void 0===N?"上传附件":N,A=e.showRemoveModal,S=void 0!==A&&A,C=e.accept,F=void 0===C?"":C,P=e.additionalText,T=e.isDragger,R=e.number,E=void 0===R?1e3:R,L=e.aloneClear,D=void 0!==L&&L,B=e.realTimeRemove,V=void 0===B||B,z=e.uploadText,M=(0,m.useState)(!1),O=p()(M,2),Y=O[0],H=O[1],q=(0,m.useState)(n||[]),Q=p()(q,2),G=Q[0],U=Q[1],W=(0,m.useState)(1),J=p()(W,2),K=J[0],X=J[1];(0,m.useEffect)((function(){n&&(1===K&&U(d()(n)),X(2),E===(null==n?void 0:n.length)&&H(!0))}),[n]);var $,ee=function(){setTimeout((function(){G.pop(),U(d()(G))}),500)},ne={multiple:!0,disabled:Y,accept:F,withCredentials:!0,fileList:G,beforeUpload:function(e,n){var t=e.size/1024/1024;return G.concat(n).length>E?(G.pop(),U(d()(G)),h.ZP.error("最多只能上传".concat(E,"个文件")),D?Promise.reject():(ee(),!1)):t=E?H(!0):H(!1),U(d()(G)),G=G.map((function(e){var n,t;null!=e&&null!==(n=e.response)&&void 0!==n&&n.id&&(e.url=null==e||null===(t=e.response)||void 0===t?void 0:t.url);return-1===e.name.indexOf(j)&&(e.name="".concat(e.name).concat(j).concat(b(e.size))),r()({},e)})),console.log("info:",e,G),t(G)):h.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:($=o()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(V){e.next=2;break}return e.abrupt("return",!0);case 2:if(t=function(){var e=o()(l()().mark((function e(){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.response?n.response.id:n.id)){e.next=8;break}return e.next=4,(0,g.JZ)(n.response?n.response.id:n.uid);case 4:return t=e.sent,e.abrupt("return",Promise.resolve(t));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!S){e.next=7;break}return e.abrupt("return",new Promise((function(e,n){var i;f.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=o()(l()().mark((function n(){return l()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t();case 2:n.sent,h.ZP.success("删除成功"),e(!0);case 5:case"end":return n.stop()}}),n)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,t();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return $.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(a||""),children:[T&&(0,y.jsxs)(k,r()(r()({},ne),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(w.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",u,"MB)"," "]}),P]})),!T&&(0,y.jsxs)(_.Z,r()(r()({},ne),{},{children:[(0,y.jsxs)(x.ZP,{disabled:Y,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),I]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:z||"(单个文件最大".concat(u,"MB)")})]}))]})}},16605:function(e,n,t){t.d(n,{h:function(){return p},x:function(){return m}});var i=t(82242),l=t.n(i),s=t(39647),o=t.n(s),a=t(16318),r=t(65648),c=t(38279),d=t(37712),u=["value","onChange","scrollId"],p=function(e){var n=e.value,t=e.onChange,i=e.scrollId,s=o()(e,u);return(0,d.jsx)("div",{id:i||"",children:(0,d.jsx)(a.Z,l()(l()({},s),{},{defaultValue:n,onChange:function(e,n){console.log("a:",e,n),null!=n&&n.length?t(e,n):t(e)}}))})},m=function(e){var n=e.value,t=e.onChange,i=e.placeholder,l=e.height,s=void 0===l?140:l,o=e.isEdit,u=e.miniToolbar,p=e.watch,m=void 0===p||p;return o?(0,d.jsx)(a.Z,{watch:m,isFocus:!0,height:s||void 0,placeholder:i,defaultValue:n,onChange:t,miniToolbar:u}):(0,d.jsx)("div",{style:{cursor:"pointer"},children:n?(0,d.jsx)(c.Z,{className:r.Z.inputBorder,value:n}):(0,d.jsx)("div",{className:"".concat(r.Z.inputBorder," ").concat(r.Z.placeholder," inputBorderError"),children:i})})}},21515:function(e,n,t){t.d(n,{Z:function(){return E},P:function(){return T}});var i=t(37205),l=t.n(i),s=t(39647),o=t.n(s),a=t(7557),r=t.n(a),c=t(82242),d=t.n(c),u=t(41498),p=t.n(u),m=t(79800),_=t.n(m),h=t(59301),f=t(78241),x=t(43418),v=t(5112),g=t(92832),y=t(61998),j="brief___LOzpE",b="contentTitle___xkdcN",w="content___Vtri0",Z="antdTable___s8T2N",k="tableCell___kN9Fw",N="antdModal___WVBk3",I="orangeColor___ryB2u",A=t(99681),S=t(37712),C=["isImportMultipleCourse"],F=function(e){var n=e.studentNames,t=e.total;return t>3?(0,S.jsxs)(S.Fragment,{children:["课堂内有",(0,S.jsx)("span",{className:I,children:null==n?void 0:n.join("、")}),"等",(0,S.jsx)("span",{className:I,children:t}),"名学生"]}):(0,S.jsxs)(S.Fragment,{children:["课堂内有",(0,S.jsx)("span",{className:I,children:null==n?void 0:n.join("、")}),["","一","两","三"][t],"名学生"]})},P=function(e){var n=e.onCancel,t=e.onOk,i=e.visible,l=(e.inPaper,e.renderData),s=(e.type,e.isMultipleCourse),o=void 0!==s&&s,a=f.Z.useForm(),c=_()(a,1)[0],u=(0,h.useState)(1),m=_()(u,2),g=m[0],y=m[1],j=(0,h.useState)(!1),b=_()(j,2),Z=b[0],k=b[1],A=(0,h.useMemo)((function(){return 1===(null==l?void 0:l.total_num)&&1===(null==l?void 0:l.can_copy_num)}),[l]),C=(0,h.useMemo)((function(){var e;return null==l||null===(e=l.course_data_list)||void 0===e?void 0:e.filter((function(e){return e.is_show}))}),[l]);return(0,S.jsx)(S.Fragment,{children:A?(0,S.jsxs)(x.Z,{centered:!0,closable:!0,open:i,destroyOnClose:!0,title:"提示",className:N,width:682,confirmLoading:Z,onCancel:n,onOk:p()(r()().mark((function e(){var n,i,s;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(!0),n=g,o&&(s=d()({},c.getFieldsValue()),n=null==l||null===(i=l.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==s[e.id]?d()(d()({},e),{},{is_copy:s[e.id]}):e}))),e.next=5,t(n);case 5:k(!1);case 6:case"end":return e.stop()}}),e)}))),children:[(0,S.jsx)("div",{className:w,style:{marginBottom:20},children:o?"检测到以下课堂已在教学课堂中使用,请问是否复制成新的实训发送至教学课堂中?":(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(F,{studentNames:null==l?void 0:l.student_names,total:null==l?void 0:l.student_count}),"学习过该实践项目。该项目支持复制,请选择是否将该项目复制为新项目发送至课堂中?"]})}),o?(0,S.jsx)(f.Z,{form:c,preserve:!1,children:null==C?void 0:C.map((function(e){return(0,S.jsxs)(h.Fragment,{children:[(0,S.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,S.jsx)(f.Z.Item,{name:e.id,initialValue:1,children:(0,S.jsxs)(v.ZP.Group,{className:w,children:[(0,S.jsx)(v.ZP,{value:1,style:{color:"#464f66"},children:"复制实训"}),(0,S.jsx)(v.ZP,{value:0,style:{color:"#464f66"},children:"不复制实训"})]})})]},e.id)}))}):(0,S.jsxs)(v.ZP.Group,{value:g,onChange:function(e){return y(e.target.value)},className:w,style:{marginBottom:30},children:[(0,S.jsx)(v.ZP,{value:1,style:{color:"#464f66"},children:"复制"}),(0,S.jsx)(v.ZP,{value:0,style:{color:"#464f66"},children:"不复制"})]}),(0,S.jsxs)("div",{children:[(0,S.jsx)("div",{className:w,style:{marginBottom:10},children:"* 说明:"}),(0,S.jsx)("div",{className:w,style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,S.jsx)("div",{className:"".concat(w," ").concat(I),children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]})]}):(0,S.jsx)(x.Z,{centered:!0,closable:!0,destroyOnClose:!0,open:i,confirmLoading:Z,title:"提示",width:682,onCancel:n,onOk:p()(r()().mark((function e(){var n,i,s;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(!0),n=0,o&&(s=d()({},c.getFieldsValue()),n=null==l||null===(i=l.course_data_list)||void 0===i?void 0:i.map((function(e){return void 0!==s[e.id]?d()(d()({},e),{},{is_use:s[e.id]}):e}))),e.next=5,t(n);case 5:k(!1);case 6:case"end":return e.stop()}}),e)}))),children:(0,S.jsxs)("div",{className:w,children:[(0,S.jsx)(F,{studentNames:null==l?void 0:l.student_names,total:null==l?void 0:l.student_count}),"学习过该实践项目。",o?(0,S.jsxs)(f.Z,{form:c,preserve:!1,children:[(0,S.jsx)("h3",{children:"当前实训不可复制,已经检测到以下课堂存在该实训,同一实训在课堂中重复使用时,会导致成绩互相影响,请确认是否继续使用"}),null==C?void 0:C.map((function(e){return(0,S.jsxs)(h.Fragment,{children:[(0,S.jsx)("h3",{className:"ml15 mb5",children:e.name}),(0,S.jsx)(f.Z.Item,{name:e.id,initialValue:1,children:(0,S.jsxs)(v.ZP.Group,{className:w,children:[(0,S.jsx)(v.ZP,{value:1,style:{color:"#464f66"},children:"继续使用"}),(0,S.jsx)(v.ZP,{value:0,style:{color:"#464f66"},children:"不使用"})]})})]},e.id)}))]}):(0,S.jsxs)("div",{children:["该项目不支持复制,若确认继续发送,",(0,S.jsx)("span",{className:I,children:"当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"}),"(如果不想清空学生之前的挑战记录,建议参照该实践项目的内容自行创建一个新的项目,或者尝试联系项目创建人开放本项目的复制权限)。"]})]})})})},T=function(){var e=(0,h.useState)(!1),n=_()(e,2),t=n[0],i=n[1],l=(0,h.useState)(),s=_()(l,2),a=s[0],c=s[1],d=function(){var e=p()(r()().mark((function e(n){var t,l,s,a,d;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.isImportMultipleCourse,l=void 0!==t&&t,s=o()(n,C),console.log(n),e.t0=null==n?void 0:n.result,e.t0){e.next=7;break}return e.next=6,(0,A.Tr)(s);case 6:e.t0=e.sent;case 7:if(!("status"in(a=e.t0))){e.next=10;break}return e.abrupt("return",!1);case 10:if(!l){e.next=17;break}if(!(null==a||null===(d=a.course_data_list)||void 0===d?void 0:d.some((function(e){return e.is_show})))){e.next=16;break}return c(a),i(!0),e.abrupt("return",!0);case 16:return e.abrupt("return",a.course_data_list||[]);case 17:if(0!==a.student_count){e.next=19;break}return e.abrupt("return",!1);case 19:return c(a),i(!0),e.abrupt("return",!0);case 22:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return[t,function(){return i(!1)},a,d]},R=function(e){var n=f.Z.useForm(),t=_()(n,1)[0],i=(0,h.useState)(!1),s=_()(i,2),o=s[0],a=s[1],c=e.onCancel,d=e.onOk,u=e.visible,m=e.inPaper,w=void 0!==m&&m,A=e.renderData,C=e.type,P=e.isMultipleCourse,T=void 0!==P&&P,R=e.position,E=(0,h.useMemo)((function(){return w?[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:k,render:function(e,n){return(0,S.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,n){return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],initialValue:1,children:(0,S.jsxs)(v.ZP.Group,{children:[(0,S.jsx)(v.ZP,{value:1,children:"是"}),(0,S.jsx)(v.ZP,{value:0,children:"否"})]})}),(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],hidden:!0,initialValue:1,children:(0,S.jsx)(g.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:k,render:function(e,n){return(0,S.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,n){return(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],initialValue:1,children:(0,S.jsxs)(v.ZP.Group,{children:[(0,S.jsx)(v.ZP,{value:1,children:"是"}),(0,S.jsx)(v.ZP,{value:0,children:"否"})]})})}},{title:"是否复制",dataIndex:"is_copy",align:"center",render:function(e,n){return(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],initialValue:1,children:(0,S.jsxs)(v.ZP.Group,{children:[(0,S.jsx)(v.ZP,{value:1,children:"是"}),(0,S.jsx)(v.ZP,{value:0,children:"否"})]})})}}]}),[w]),L=(0,h.useMemo)((function(){return w?[{title:"实践项目名称",dataIndex:"name",width:424,className:k,align:"center",ellipsis:!0,render:function(e,n){return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e}),(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],hidden:!0,initialValue:0,children:(0,S.jsx)(g.Z,{type:"hidden"})}),(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],hidden:!0,initialValue:1,children:(0,S.jsx)(g.Z,{type:"hidden"})})]})}}]:[{title:"实践项目名称",dataIndex:"name",width:424,className:k,ellipsis:!0,align:"center",render:function(e,n){return(0,S.jsx)("a",{href:"/shixuns/".concat(n.identifier,"/challenges"),target:"_blank",children:e})}},{title:"是否使用",dataIndex:"is_use",align:"center",render:function(e,n){return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_use"],initialValue:0,children:(0,S.jsxs)(v.ZP.Group,{children:[(0,S.jsx)(v.ZP,{value:1,children:"是"}),(0,S.jsx)(v.ZP,{value:0,children:"否"})]})}),(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?null==n?void 0:n.stage_shixun_id:n.shixun_course_id||n.id),"is_copy"],hidden:!0,initialValue:0,children:(0,S.jsx)(g.Z,{type:"hidden"})})]})}}]}),[w]);if(T){var D={title:"课堂名称",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:k,render:function(e,n){return(0,S.jsx)("a",{href:"/classrooms/".concat(n.course_id),children:e})}};E=[D].concat(l()(E)),L=[D].concat(l()(L))}var B=(0,h.useMemo)((function(){return function(e){var n=e.used,t=e.copy,i=e.canNotCopy,l=e.studentNames,s=e.studentCount,o=e.inPaper,a=e.is_random,r=void 0!==a&&a,c=e.position,d=(void 0===c?"":c)||(o?"试卷":"课程");return(0,S.jsxs)("span",{children:[(0,S.jsx)(F,{studentNames:l,total:s}),"学习过",d,"中的",(0,S.jsx)("span",{className:I,children:n}),"个项目,",t>0&&i>0?(0,S.jsxs)(S.Fragment,{children:["其中",(0,S.jsx)("span",{className:I,children:t}),"个项目支持复制,",(0,S.jsx)("span",{className:I,children:i}),"个项目不支持复制"]}):t>0&&0===i?(0,S.jsxs)(S.Fragment,{children:["其中",(0,S.jsx)("span",{className:I,children:t}),"个项目支持复制"]}):0===t&&i>0?(0,S.jsxs)(S.Fragment,{children:["其中",(0,S.jsx)("span",{className:I,children:i}),"个项目不支持复制"]}):void 0,"。请选择",r?"":"是否继续使用和","是否复制为新项目发送至课堂中?"]})}({used:null==A?void 0:A.repeat_shixun_num,copy:null==A?void 0:A.can_copy_num,canNotCopy:null==A?void 0:A.no_copy_num,studentNames:null==A?void 0:A.student_names,studentCount:null==A?void 0:A.student_count,is_random:null==A?void 0:A.is_random,inPaper:w,position:R})}),[A,w,R]);return(0,S.jsx)(x.Z,{title:"提示",centered:!0,open:u,confirmLoading:o,onOk:p()(r()().mark((function e(){var n,i;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a(!0),n=t.getFieldsValue(),i=Object.keys(n).map((function(e){return{id:parseInt(e.split("_")[0]),course_id:parseInt(e.split("_")[1]),is_use:n[e].is_use,is_copy:n[e].is_copy}})),e.next=5,d(i);case 5:a(!1);case 6:case"end":return e.stop()}}),e)}))),onCancel:c,width:880,okText:"确认",className:N,destroyOnClose:!0,children:(0,S.jsxs)(f.Z,{form:t,preserve:!1,children:[(0,S.jsx)("div",{className:j,children:B}),(0,S.jsxs)("div",{style:{marginBottom:30},children:[(0,S.jsx)("div",{style:{marginBottom:20},children:"* 说明"}),(0,S.jsx)("div",{style:{marginBottom:20},children:"1、复制:系统将复制并创建一个新的项目发送到课堂中使用(不会复制学生的挑战记录),新的项目支持进行编辑并与原项目信息互不影响。"}),(0,S.jsx)("div",{className:I,children:"2、不复制:当前项目会被直接发送到课堂中使用,挑战过该项目的学生再次进入项目开启挑战时,会清空之前的挑战记录。"})]}),(null==A?void 0:A.can_copy_num)>0&&(0,S.jsxs)("div",{children:[(0,S.jsx)("div",{className:b,children:"支持复制的项目"}),(0,S.jsx)(y.Z,{columns:E,className:Z,dataSource:null==A?void 0:A.can_copy_list,rowKey:"subject"===C?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})]}),(null==A?void 0:A.no_copy_num)>0&&(0,S.jsxs)("div",{children:[(0,S.jsx)("div",{className:b,children:"不支持复制的项目"}),(0,S.jsx)(y.Z,{columns:L,className:Z,dataSource:null==A?void 0:A.no_copy_list,rowKey:"subject"===C?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})]}),(null==A?void 0:A.no_use_list.length)>0&&(null==A?void 0:A.no_use_list.map((function(e){return(0,S.jsxs)("div",{children:[(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_copy"],hidden:!0,initialValue:0,children:(0,S.jsx)(g.Z,{type:"hidden"})}),(0,S.jsx)(f.Z.Item,{name:["".concat("subject"===C?null==e?void 0:e.stage_shixun_id:e.shixun_course_id||e.id),"is_use"],hidden:!0,initialValue:1,children:(0,S.jsx)(g.Z,{type:"hidden"})})]},"subject"===C?e.stage_shixun_id:e.shixun_course_id||e.id)})))]})})},E=function(e){return"multiple"===e.modalType?(0,S.jsx)(R,d()({},e)):(0,S.jsx)(P,d()({},e))}},53189:function(e,n,t){t.r(n),t.d(n,{default:function(){return sl}});var i=t(82242),l=t.n(i),s=t(7557),o=t.n(s),a=t(41498),r=t.n(a),c=t(79800),d=t.n(c),u=t(39647),p=t.n(u),m=t(59301),_=t(5296),h=t(57809),f=t(78241),x=t(43418),v=t(8591),g=t(66104),y=t(6848),j=t(92832),b=t(5112),w=t(88522),Z=t(3113),k={flex_box_center:"flex_box_center___Pwy41",flex_space_between:"flex_space_between___iGrQJ",flex_box_vertical_center:"flex_box_vertical_center___yCxnY",flex_box_center_end:"flex_box_center_end___WYWWp",flex_box_column:"flex_box_column___XMpFi",bg:"bg___WrQc9",top:"top___eHaMu",title:"title___ZzSKL",img:"img___TSo4p",span:"span___i1hTN",button:"button___M8rSK",content:"content___BOwAQ",Banner:"Banner___t6PnF",right:"right___x1tqT",titles:"titles___UHOD8",bonus:"bonus___l9Tlu",items:"items___CPICU",bottom:"bottom___HHYt7",tag:"tag___DBN6l",jsinput:"jsinput___oh61y",baseFormItem:"baseFormItem___t5ZrH",scoremodal:"scoremodal___yE6h8",yes:"yes___XyW4g",no:"no___kIYD7",bottoms:"bottoms___X64Ij",loaderimg:"loaderimg___w2vWU",enroll:"enroll___lbTQ5",publish:"publish___kDAkJ",ended:"ended___mycKl",form_item:"form_item___lsqU3",form_item_item:"form_item_item___Zdnul",form_item_item_select:"form_item_item_select____5lDo",shareicon:"shareicon___Z_RCj",ApplyStyle:"ApplyStyle___Hyn8j"},N=t(48486),I="all___CqKTx",A="setting___v3_ot",S="setting_title___WxGAY",C="setting_content___XAWD6",F="setting_menu___oKuAW",P="menu_item___qbDG8",T="menu_item_active___kzN6I",R="setting_info___pqlf5",E=t(37205),L=t.n(E),D="all___dBmCY",B="title___IeVqW",V="content___zp_KL",z="form_item___hXuXB",M="form_item_basic___K4a8V",O="form_item_time___h8rdI",Y="form_item_model____Mn2H",H="form_item_item___CR0Q5",q="form_item_item_select___eeMCh",Q="textarea_father___XVeQz",G="textarea_length___Xdwl4",U="upload_button___zltZE",W="upload_button_file___vVqry",J="upload_text___pdO7Y",K="date_text___gvUlY",X="upload_download___KCtvw",$="checkbox_text___yn4Cf",ee="footer___t6QDc",ne="save_button___l7JJ7",te="radio_style___tWyOo",ie=t(59028),le=t(57930),se=t(24905),oe=t(95237),ae=t(43604),re=t(61998),ce=t(61186),de=t.n(ce),ue=t(44146),pe=t(20437),me=t(92723),_e=t(86468),he=t(21082),fe=t(93697),xe=t(37712),ve=["competitions","dispatch"],ge=j.Z.TextArea,ye=(0,_.connect)((function(e){return{competitions:e.competitions}}))((function(e){var n,t,i,s=e.competitions,a=e.dispatch,c=p()(e,ve),u=f.Z.useForm(),g=d()(u,1)[0],w=(0,m.useState)({}),Z=d()(w,2),k=Z[0],N=Z[1],I=(0,m.useState)(0),A=d()(I,2),S=A[0],C=A[1],F=(0,m.useState)(),P=d()(F,2),T=P[0],R=P[1],E=(0,m.useState)(),ce=d()(E,2),ye=ce[0],je=ce[1],be=(0,m.useState)(!1),we=d()(be,2),Ze=we[0],ke=we[1],Ne=(0,m.useState)(!1),Ie=d()(Ne,2),Ae=Ie[0],Se=Ie[1],Ce=(0,m.useState)(!1),Fe=d()(Ce,2),Pe=Fe[0],Te=Fe[1],Re=(0,m.useState)(!1),Ee=d()(Re,2),Le=Ee[0],De=Ee[1],Be=(0,m.useState)(!1),Ve=d()(Be,2),ze=Ve[0],Me=Ve[1],Oe=(0,m.useState)([]),Ye=d()(Oe,2),He=Ye[0],qe=Ye[1],Qe=(0,m.useState)([]),Ge=d()(Qe,2),Ue=Ge[0],We=Ge[1],Je=(0,m.useState)(0),Ke=d()(Je,2),Xe=Ke[0],$e=Ke[1],en=(0,m.useState)(!1),nn=d()(en,2),tn=nn[0],ln=nn[1],sn=(0,m.useState)([]),on=d()(sn,2),an=on[0],rn=on[1],cn=(0,m.useState)(!1),dn=d()(cn,2),un=(dn[0],dn[1]),pn=s.Header,mn=(0,_.useParams)(),_n=function(){var e=r()(o()().mark((function e(n){var t,i,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.personal||(n.is_student||n.is_teacher||n.is_professional)){e.next=3;break}return v.ZP.error("请选择至少一种身份可以报名参赛"),e.abrupt("return");case 3:i=[],(null==T?void 0:T.length)>0&&(null==T||T.map((function(e){var n;i.push((null==e||null===(n=e.response)||void 0===n?void 0:n.id)||(null==e?void 0:e.id))}))),g.setFieldValue("attachment_ids",i),s=[],(null==ye?void 0:ye.length)>0&&(null==ye||ye.map((function(e){var n;s.push((null==e||null===(n=e.response)||void 0===n?void 0:n.id)||(null==e?void 0:e.id))}))),g.setFieldValue("file_id",s),g.setFieldValue("is_authentication",Ze),g.setFieldValue("need_phone",Ae),g.setFieldValue("need_mail",Pe),g.setFieldValue("competition_staffs",[{minimum:g.getFieldValue("student_min"),maximum:g.getFieldValue("student_max"),category:"student",mutiple_limited:Le,check_phone:!1},{minimum:g.getFieldValue("teacher_min"),maximum:g.getFieldValue("teacher_max"),category:"teacher",mutiple_limited:ze,check_phone:!1}]),(null===(t=k.identifier)||void 0===t?void 0:t.length)<3?v.ZP.error("比赛网址最少要输入三个字符"):(0,ue.IN)({id:Xe,identifier:g.getFieldValue("identifier")}).then(function(){var e=r()(o()().mark((function e(n){var t,i,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!=(null==n?void 0:n.status)&&g.setFieldValue("identifier",""),0!=(null==n?void 0:n.status)){e.next=6;break}return e.next=4,(0,ue.$M)(l()(l()({id:null==c?void 0:c.competitionId},g.getFieldsValue()),{},{enroll_start_time:g.getFieldValue("enroll_start_time")?de()(g.getFieldValue("enroll_start_time")).format("YYYY-MM-DD HH:mm"):"",enroll_end_time:g.getFieldValue("enroll_end_time")?de()(g.getFieldValue("enroll_end_time")).format("YYYY-MM-DD HH:mm"):"",start_time:g.getFieldValue("start_time")?de()(g.getFieldValue("start_time")).format("YYYY-MM-DD HH:mm"):"",end_time:g.getFieldValue("end_time")?de()(g.getFieldValue("end_time")).format("YYYY-MM-DD HH:mm"):""}));case 4:if(0==(null==(t=e.sent)?void 0:t.status)){if(v.ZP.success("更改成功"),(null==t?void 0:t.failed.length)>0){for(s in ln(!0),i=[],null==t?void 0:t.failed)i.push({phone:null==t?void 0:t.failed[s][0],name:null==t?void 0:t.failed[s][1],email:null==t?void 0:t.failed[s][2]});rn(i)}(null==mn?void 0:mn.identifier)==g.getFieldValue("identifier")?(a({type:"competitions/getStaff",payload:{identifier:null==c?void 0:c.competitionId}}),a({type:"competitions/getHeader",payload:{identifier:null==c?void 0:c.competitionId}})):(null==mn?void 0:mn.identifier)!=g.getFieldValue("identifier")&&_.history.push("/competitions/detail/".concat(g.getFieldValue("identifier"),"?type=4"))}case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}());case 14:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){(0,ue.o3)(null==c?void 0:c.competitionId).then((function(e){var n,t,i,s,o,a,r,d,u,p,m,_,h,f,x,v,y,j,b,w,Z;($e(null==e?void 0:e.id),g.setFieldValue("is_student",null==e?void 0:e.is_student),g.setFieldValue("is_teacher",null==e?void 0:e.is_teacher),g.setFieldValue("is_professional",null==e?void 0:e.is_professional),g.setFieldValue("name",null==e?void 0:e.name),g.setFieldValue("sub_title",null==e?void 0:e.sub_title),g.setFieldValue("description",null==e?void 0:e.description),g.setFieldValue("identifier",null==e?void 0:e.identifier),g.setFieldValue("bonus",null==e?void 0:e.bonus),g.setFieldValue("awards_count",null==e?void 0:e.awards_count),g.setFieldValue("need_apply_name",null==e||null===(n=e.need_apply_info)||void 0===n?void 0:n.need_apply_name),g.setFieldValue("need_apply_student_id",null==e||null===(t=e.need_apply_info)||void 0===t?void 0:t.need_apply_student_id),g.setFieldValue("need_apply_sex",null==e||null===(i=e.need_apply_info)||void 0===i?void 0:i.need_apply_sex),g.setFieldValue("need_apply_phone",null==e||null===(s=e.need_apply_info)||void 0===s?void 0:s.need_apply_phone),g.setFieldValue("need_apply_grade",null==e||null===(o=e.need_apply_info)||void 0===o?void 0:o.need_apply_grade),g.setFieldValue("need_apply_teacher_name",null==e||null===(a=e.need_apply_info)||void 0===a?void 0:a.need_apply_teacher_name),g.setFieldValue("need_apply_school",null==e||null===(r=e.need_apply_info)||void 0===r?void 0:r.need_apply_school),g.setFieldValue("need_apply_teacher_phone",null==e||null===(d=e.need_apply_info)||void 0===d?void 0:d.need_apply_teacher_phone),null==e||null===(u=e.attachments)||void 0===u||u.map((function(e){e.name=e.title})),g.setFieldValue("attachment_ids",null==e?void 0:e.attachments),R(null==e?void 0:e.attachments),g.setFieldValue("enroll_start_time",null!=e&&e.enroll_start_time?de()(null==e?void 0:e.enroll_start_time):""),g.setFieldValue("enroll_end_time",null!=e&&e.enroll_end_time?de()(null==e?void 0:e.enroll_end_time):""),g.setFieldValue("start_time",null!=e&&e.start_time?de()(null==e?void 0:e.start_time):""),g.setFieldValue("end_time",null!=e&&e.end_time?de()(null==e?void 0:e.end_time):""),g.setFieldValue("rule",null==e?void 0:e.rule),null!=e&&e.file)&&(e.file.name=null==e||null===(h=e.file)||void 0===h?void 0:h.title);(g.setFieldValue("file_id",null==e?void 0:e.file),null!=e&&e.file&&je([null==e?void 0:e.file]),g.setFieldValue("region_rule",null==e?void 0:e.region_rule),g.setFieldValue("is_authentication",null==e?void 0:e.is_authentication),g.setFieldValue("province_rule",null==e?void 0:e.province_rule),g.setFieldValue("region_provinces",null==e?void 0:e.region_provinces),(0,pe.GY)({display_aliases:!0,provinces:null==e?void 0:e.region_provinces}).then((function(n){qe(null==n?void 0:n.schools),g.setFieldValue("region_schools",null==e?void 0:e.region_school_array)})),ke(null==e?void 0:e.is_authentication),g.setFieldValue("need_phone",null==e?void 0:e.need_phone),Se(null==e?void 0:e.need_phone),g.setFieldValue("need_mail",null==e?void 0:e.need_mail),Te(null==e?void 0:e.need_mail),g.setFieldValue("personal",null==e?void 0:e.personal),null!=e&&e.member_staff)?(g.setFieldValue("student_min",null==e||null===(f=e.member_staff)||void 0===f?void 0:f.minimum),g.setFieldValue("student_max",null==e||null===(x=e.member_staff)||void 0===x?void 0:x.maximum),g.setFieldValue("student_checkbox",null==e||null===(v=e.member_staff)||void 0===v?void 0:v.mutiple_limited)):(g.setFieldValue("student_min",0),g.setFieldValue("student_max",1));null!=e&&e.teacher_staff?(g.setFieldValue("teacher_min",null==e||null===(y=e.teacher_staff)||void 0===y?void 0:y.minimum),g.setFieldValue("teacher_max",null==e||null===(j=e.teacher_staff)||void 0===j?void 0:j.maximum),g.setFieldValue("teacher_checkbox",null==e||null===(b=e.teacher_staff)||void 0===b?void 0:b.mutiple_limited)):(g.setFieldValue("teacher_min",0),g.setFieldValue("teacher_max",0));3===(null==e?void 0:e.mode)?(Me(!0),De(!0)):(Me(null==e||null===(w=e.teacher_staff)||void 0===w?void 0:w.mutiple_limited),De(null==e||null===(Z=e.member_staff)||void 0===Z?void 0:Z.mutiple_limited));De(null==e||null===(p=e.member_staff)||void 0===p?void 0:p.mutiple_limited),Me(null==e||null===(m=e.teacher_staff)||void 0===m?void 0:m.mutiple_limited),N(l()({},g.getFieldsValue())),C(null===(_=g.getFieldValue("description"))||void 0===_?void 0:_.length),null==c||c.loadingFunction(!1)})),(0,pe.ol)({}).then((function(e){var n;We(L()(null==e||null===(n=e.data)||void 0===n?void 0:n.map((function(e){return{label:e,value:e}}))))})),null!=c&&c.formName&&g.scrollToField(null==c?void 0:c.formName)}),[]);var hn=function(e){(0,pe.GY)({display_aliases:!0,provinces:e}).then((function(e){qe(null==e?void 0:e.schools)}))},fn=function(e,n){"报名开始时间"==n?g.getFieldValue("enroll_end_time")&&e>=g.getFieldValue("enroll_end_time")&&(v.ZP.error("报名开始时间必须小于报名结束时间"),g.setFieldValue("enroll_start_time",""),g.setFieldValue("enroll_end_time","")):"报名结束时间"==n?g.getFieldValue("enroll_start_time")?e<=g.getFieldValue("enroll_start_time")&&(v.ZP.error("报名结束时间必须大于报名开始时间"),g.setFieldValue("enroll_end_time","")):(v.ZP.error("报名结束时间必须大于报名开始时间"),g.setFieldValue("enroll_end_time","")):"竞赛开始时间"==n?g.getFieldValue("end_time")&&e>=g.getFieldValue("end_time")&&(v.ZP.error("竞赛开始时间必须小于竞赛结束时间"),g.setFieldValue("start_time",""),g.setFieldValue("end_time","")):"竞赛结束时间"==n&&(g.getFieldValue("start_time")?e<=g.getFieldValue("start_time")&&(v.ZP.error("竞赛结束时间必须大于竞赛开始时间"),g.setFieldValue("end_time","")):(v.ZP.error("竞赛结束时间必须大于竞赛开始时间"),g.setFieldValue("end_time","")))};return(0,xe.jsxs)("div",{className:D,children:[(0,xe.jsxs)(f.Z,{form:g,labelCol:{flex:"120px"},scrollToFirstError:!0,colon:!1,initialValues:{region_rule:0,student_min:0,student_max:1,teacher_min:0,teacher_max:0,is_student:!0,is_teacher:!0,is_professional:!0},onFinish:_n,onFinishFailed:function(){var e=r()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:g.scrollToField(null==n||null===(t=n.errorFields)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.name,{behavior:"auto",block:"center"});case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),onChange:function(){var e,n,t=null==g||null===(e=g.getFieldValue("sponsor_user_name"))||void 0===e?void 0:e.replaceAll(" ","");g.setFieldValue("sponsor_user_name",t);var i=g.getFieldsValue();C(null===(n=i.description)||void 0===n?void 0:n.length),N(l()({},i))},children:[(0,xe.jsx)("div",{className:B,children:"基本信息"}),(0,xe.jsxs)("div",{className:V,children:[(0,xe.jsx)(f.Z.Item,{style:{marginTop:"-15px"},className:z,label:"竞赛主标题",colon:!1,name:"name",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,xe.jsx)(j.Z,{className:H,placeholder:"请输入竞赛主标题",maxLength:60,suffix:(0,xe.jsxs)("span",{children:[(null===(n=k.name)||void 0===n?void 0:n.length)||0,(0,xe.jsx)("span",{style:{color:"#c5c5c5"},children:"/60"})]})})}),(0,xe.jsx)(f.Z.Item,{className:M,label:"竞赛副标题",colon:!1,name:"sub_title",children:(0,xe.jsx)(j.Z,{className:H,placeholder:"请输入竞赛副标题",maxLength:60,suffix:(0,xe.jsxs)("span",{children:[(null===(t=k.sub_title)||void 0===t?void 0:t.length)||0,(0,xe.jsx)("span",{style:{color:"#c5c5c5"},children:"/60"})]})})}),(0,xe.jsxs)("div",{className:Q,children:[(0,xe.jsx)(f.Z.Item,{className:z,label:"竞赛简介",colon:!1,name:"description",children:(0,xe.jsx)(ge,{maxLength:200,placeholder:"请输入简介",rows:5})}),(0,xe.jsxs)("span",{className:G,children:[S||0,(0,xe.jsx)("span",{style:{color:"#c5c5c5"},children:"/200"})]})]}),(0,xe.jsx)(f.Z.Item,{className:M,label:(0,xe.jsxs)("div",{children:[(0,xe.jsx)("span",{style:{color:"#ff4d4f",marginRight:"4px",fontFamily:"SimSun, sans-serif"},children:"*"}),"比赛网址"]}),colon:!1,children:(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsxs)("div",{style:{width:"40%"},children:[window.location.origin,"/competitions/detail/"]}),(0,xe.jsx)(y.Z,{placement:"topLeft",color:"#fb3226",overlayStyle:{maxWidth:"350px",width:"350px"},title:"如果修改竞赛网址,会造成参赛人员无法再次通过旧网址进入",children:(0,xe.jsx)(f.Z.Item,{style:{width:"calc(68% + 16px)",marginLeft:"-16px"},label:(0,xe.jsx)("div",{style:{width:"0px"}}),colon:!1,name:"identifier",rules:[{required:!0,message:"必填项:不能为空"},{pattern:new RegExp(/^[A-Za-z0-9\-_]*$/,""),message:"必须是数字、字母、下划线或者横线"}],children:(0,xe.jsx)(j.Z,{className:H,placeholder:"请输入网址",maxLength:20,suffix:(0,xe.jsxs)("span",{children:[(null===(i=k.identifier)||void 0===i?void 0:i.length)||0,(0,xe.jsx)("span",{style:{color:"#c5c5c5"},children:"/20"})]}),onBlur:function(){un(!1),(0,ue.IN)({id:Xe,identifier:g.getFieldValue("identifier")}).then((function(e){0!=(null==e?void 0:e.status)&&g.setFieldValue("identifier","")}))},onChange:function(){un(!0)},disabled:"ended"==(null==pn?void 0:pn.competition_status)})})})]})}),(0,xe.jsx)(f.Z.Item,{className:M,style:{marginTop:"-12px"},label:"奖金金额",colon:!1,name:"bonus",rules:[{pattern:new RegExp(/^\d{0,8}$/,"g"),message:"必须是8位数以内的正整数"}],children:(0,xe.jsx)(j.Z,{autoComplete:"off",className:H,placeholder:"如果需要设置奖金,请与平台客服人员对接",suffix:(0,xe.jsx)("span",{style:{color:"#c5c5c5"},children:"元"})})}),(0,xe.jsx)(f.Z.Item,{className:M,label:"奖项数量",colon:!1,name:"awards_count",rules:[{pattern:new RegExp(/^\d{0,9}$/,"g"),message:"必须是正整数"}],children:(0,xe.jsx)(j.Z,{autoComplete:"off",className:H,placeholder:"请输入奖项数量",suffix:(0,xe.jsx)("span",{style:{color:"#c5c5c5"},children:"个"})})}),(0,xe.jsx)(f.Z.Item,{name:"attachment_ids",label:"举办资质文档",colon:!1,getValueFromEvent:function(e){return Array.isArray(e)?e:e&&e.fileList},children:(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsx)(ie.Z,{action:me.Z.API_SERVER+"/api/attachments.json",onChange:function(e){R(null==e?void 0:e.fileList)},onRemove:function(e){console.log(e),R([])},fileList:T,withCredentials:!0,children:(0,xe.jsx)("div",{className:U,children:"上传文档"})}),(0,xe.jsx)("div",{className:J,children:"如果涉及到竞赛奖金相关事项,请上传相关资质的证明文件,有便于竞赛快速审核通过"})]})}),(0,xe.jsx)(f.Z.Item,{className:M,label:"报名时间",colon:!1,children:(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsx)(f.Z.Item,{name:"enroll_start_time",children:(0,xe.jsx)(le.default,{style:{height:"40px"},showTime:!0,format:"YYYY-MM-DD HH:mm",onChange:function(e){fn(e,"报名开始时间")}})}),(0,xe.jsx)("span",{style:{margin:"0 10px"},children:"至"}),(0,xe.jsx)(f.Z.Item,{name:"enroll_end_time",children:(0,xe.jsx)(le.default,{style:{height:"40px"},showTime:!0,format:"YYYY-MM-DD HH:mm",onChange:function(e){fn(e,"报名结束时间")}})}),(0,xe.jsx)("div",{className:K,children:"如果不填报名时间,则竞赛发布后将不展示报名入口"})]})}),(0,xe.jsx)(f.Z.Item,{className:O,label:(0,xe.jsxs)("div",{children:[(0,xe.jsx)("span",{style:{color:"#ff4d4f",marginRight:"4px",fontFamily:"SimSun, sans-serif"},children:"*"}),"竞赛时间"]}),colon:!1,children:(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsx)(f.Z.Item,{name:"start_time",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,xe.jsx)(le.default,{style:{height:"40px"},showTime:!0,format:"YYYY-MM-DD HH:mm",onChange:function(e){fn(e,"竞赛开始时间")},disabled:"progressing"==(null==pn?void 0:pn.competition_status)||"apply"===(null==pn?void 0:pn.competition_status)||"ended"==(null==pn?void 0:pn.competition_status)})}),(0,xe.jsx)("span",{style:{margin:"0 10px"},children:"至"}),(0,xe.jsx)(f.Z.Item,{name:"end_time",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,xe.jsx)(le.default,{style:{height:"40px"},showTime:!0,format:"YYYY-MM-DD HH:mm",onChange:function(e){fn(e,"竞赛结束时间")},disabled:"ended"==(null==pn?void 0:pn.competition_status)||"apply"===(null==pn?void 0:pn.competition_status)})})]})})]}),(0,xe.jsx)("div",{className:B,children:"开放范围"}),(0,xe.jsxs)("div",{className:V,children:[(0,xe.jsx)(f.Z.Item,{className:te,label:"参赛规则",name:"rule",colon:!1,children:(0,xe.jsxs)(b.ZP.Group,{children:[(0,xe.jsx)(b.ZP,{value:0,style:{width:"120px"},children:"按范围参加"}),(0,xe.jsx)(b.ZP,{value:1,style:{width:"120px"},children:"自定用户参加"})]})}),1==g.getFieldValue("rule")&&(0,xe.jsx)(f.Z.Item,{name:"file_id",label:" ",colon:!1,getValueFromEvent:function(e){return Array.isArray(e)?e:e&&e.fileList},children:(0,xe.jsxs)("div",{style:{marginLeft:"0px",display:"flex"},children:[(0,xe.jsx)(ie.Z,{accept:".xls, .xlsx",maxCount:1,action:me.Z.API_SERVER+"/api/attachments.json",onChange:function(e){je(null==e?void 0:e.fileList)},onRemove:function(e){console.log(e),je([])},fileList:ye,withCredentials:!0,children:(0,xe.jsx)("div",{className:W,children:"选择文件"})}),(0,xe.jsxs)("div",{className:X,style:{marginLeft:30},onClick:function(){(0,he.Nd)(null,me.Z.API_SERVER+"/api/competitions/download_template")},children:["下载模版",(0,xe.jsx)("i",{className:"iconfont icon-xiazai5 font14 ml5"})]})]})}),0==g.getFieldValue("rule")&&(0,xe.jsx)(f.Z.Item,{label:"选择省份",name:"province_rule",className:te,colon:!1,style:{marginTop:"-3px"},children:(0,xe.jsxs)(b.ZP.Group,{onChange:function(e){var n;1==(null==e||null===(n=e.target)||void 0===n?void 0:n.value)&&g.setFieldValue("region_schools",[]),hn([]),g.setFieldValue("region_provinces",[])},children:[(0,xe.jsx)(b.ZP,{value:0,style:{width:"120px"},children:"全部省份"}),(0,xe.jsx)(b.ZP,{value:1,style:{width:"120px"},children:"部分省份"})]})}),1==g.getFieldValue("province_rule")&&0==g.getFieldValue("rule")&&(0,xe.jsx)(f.Z.Item,{className:z,style:{marginTop:"-3px"},label:" ",colon:!1,name:"region_provinces",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,xe.jsx)(h.default,{mode:"multiple",className:q,options:Ue,onChange:function(e){hn(e)},filterOption:function(e,n){var t;return(null!==(t=null==n?void 0:n.value)&&void 0!==t?t:"").toLowerCase().includes(e.toLowerCase())}})}),0==g.getFieldValue("rule")&&(0,xe.jsx)(f.Z.Item,{label:"选择院校",name:"region_rule",className:te,colon:!1,style:{marginTop:"-3px"},children:(0,xe.jsxs)(b.ZP.Group,{children:[(0,xe.jsx)(b.ZP,{value:0,style:{width:"120px"},children:"全部院校"}),(0,xe.jsx)(b.ZP,{value:1,style:{width:"120px"},children:"部分院校"})]})}),1==g.getFieldValue("region_rule")&&0==g.getFieldValue("rule")&&(0,xe.jsx)(f.Z.Item,{className:z,style:{marginTop:"-3px"},label:" ",colon:!1,name:"region_schools",children:(0,xe.jsx)(h.default,{mode:"multiple",className:q,options:He,fieldNames:{label:"name",value:"id"},filterOption:function(e,n){var t;return(null!==(t=null==n?void 0:n.name)&&void 0!==t?t:"").toLowerCase().includes(e.toLowerCase())}})}),(0,xe.jsx)("div",{children:1==g.getFieldValue("region_rule")&&0==g.getFieldValue("rule")&&(0,fe.Ny)()&&(0,xe.jsx)(f.Z.Item,{name:"file_id",label:" ",colon:!1,getValueFromEvent:function(e){return Array.isArray(e)?e:e&&e.fileList},children:(0,xe.jsxs)("div",{style:{marginLeft:"0px",display:"flex"},children:[(0,xe.jsx)(ie.Z,{accept:".xls, .xlsx",maxCount:1,action:me.Z.API_SERVER+"/api/attachments.json",onChange:function(e){je(null==e?void 0:e.fileList)},onRemove:function(e){console.log(e),je([])},fileList:ye,withCredentials:!0,children:(0,xe.jsx)("div",{className:W,children:"选择文件"})}),(0,xe.jsxs)("div",{className:X,style:{marginLeft:30},onClick:function(){(0,he.Nd)(null,me.Z.API_SERVER+"/api/competitions/download_school_template.xlsx")},children:["下载模版",(0,xe.jsx)("i",{className:"iconfont icon-xiazai5 font14 ml5"})]})]})})})]}),(0,xe.jsx)("div",{className:B,children:"报名者条件"}),(0,xe.jsxs)("div",{className:V,children:[(0,xe.jsx)(f.Z.Item,{label:"报名条件",name:"is_authentication",className:te,style:{marginTop:"-10px"},colon:!1,children:(0,xe.jsxs)(se.Z,{checked:Ze,onChange:function(e){var n;return ke(null==e||null===(n=e.target)||void 0===n?void 0:n.checked)},children:["实名认证",(0,xe.jsx)("span",{className:$,children:"(参赛人员账号必须实名认证)"})]})}),(0,xe.jsx)(f.Z.Item,{label:" ",name:"need_phone",style:{marginTop:"-10px"},colon:!1,children:(0,xe.jsxs)(se.Z,{checked:Ae,onChange:function(e){var n;return Se(null==e||null===(n=e.target)||void 0===n?void 0:n.checked)},children:["绑定手机",(0,xe.jsx)("span",{className:$,children:"(参赛人员账号必须绑定手机号)"})]})}),(0,xe.jsx)(f.Z.Item,{label:" ",name:"need_mail",style:{marginTop:"-10px"},colon:!1,children:(0,xe.jsxs)(se.Z,{checked:Pe,onChange:function(e){var n;return Te(null==e||null===(n=e.target)||void 0===n?void 0:n.checked)},children:["绑定邮箱",(0,xe.jsx)("span",{className:$,children:"(参赛人员账号必须绑定邮箱)"})]})}),(0,xe.jsx)("div",{style:{display:"flex",marginBottom:20},children:(0,xe.jsxs)("div",{style:{paddingLeft:50,textAlign:"end"},children:["报名信息 ",(0,xe.jsx)("span",{style:{marginLeft:0},className:$,children:"(参赛人员报名时需填写的信息)"})]})}),(0,xe.jsxs)(f.Z.Item,{label:" ",children:[(0,xe.jsxs)(oe.Z,{wrap:!1,gutter:10,children:[(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"need_apply_name",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,xe.jsx)(se.Z,{children:"姓名"})})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"need_apply_student_id",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,xe.jsx)(se.Z,{children:"学号"})})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"need_apply_sex",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,xe.jsx)(se.Z,{children:"性别"})})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"need_apply_phone",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,xe.jsx)(se.Z,{children:"电话"})})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"need_apply_grade",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,xe.jsx)(se.Z,{children:"年级"})})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"need_apply_teacher_name",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,xe.jsx)(se.Z,{children:"指导老师姓名"})})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"need_apply_teacher_phone",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,xe.jsx)(se.Z,{children:"指导老师联系方式"})})})]}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"need_apply_school",style:{marginTop:"-12px"},valuePropName:"checked",children:(0,xe.jsxs)(se.Z,{children:["学校/单位",(0,xe.jsx)(y.Z,{title:"开启后,参赛人员填写报名信息时,可选的学校/单 位选项与“开放范围-选择院校”所列出的院校一致。",children:(0,xe.jsx)("i",{className:"iconfont icon-jinggao-3",style:{color:"#9096A3",marginLeft:10}})}),(0,xe.jsx)("span",{style:{color:"#9096A3"},children:"(与“开放范围”包含院校一致)"})]})})})]})]}),(0,xe.jsx)("div",{className:B,children:"参赛模式"}),(0,xe.jsxs)("div",{className:V,children:[(0,xe.jsx)(f.Z.Item,{label:" ",name:"personal",colon:!1,children:(0,xe.jsxs)(b.ZP.Group,{disabled:"progressing"==(null==pn?void 0:pn.competition_status)||"ended"==(null==pn?void 0:pn.competition_status),children:[(0,xe.jsx)(b.ZP,{value:!1,style:{width:"120px"},children:"战队赛"}),(0,xe.jsx)(b.ZP,{value:!0,style:{width:"120px"},children:"个人赛"})]})}),0==g.getFieldValue("personal")&&(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(f.Z.Item,{className:Y,style:{marginTop:"-2px"},label:" ",colon:!1,children:(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsx)("span",{style:{margin:"0 10px 0 -50px"},children:"学生数"}),(0,xe.jsx)(f.Z.Item,{name:"student_min",rules:[{pattern:new RegExp(/^[0-9]+([.]{1}[0-9]+){0,1}$/,"g"),message:"必须是数值"}],children:(0,xe.jsx)(j.Z,{style:{width:"100px"}})}),(0,xe.jsx)("span",{style:{margin:"0 10px"},children:"至"}),(0,xe.jsx)(f.Z.Item,{name:"student_max",rules:[{pattern:new RegExp(/^[0-9]+([.]{1}[0-9]+){0,1}$/,"g"),message:"必须是数值"}],children:(0,xe.jsx)(j.Z,{style:{width:"100px"}})}),(0,xe.jsx)("span",{style:{margin:"0 10px"},children:"人"}),(0,xe.jsx)(f.Z.Item,{name:"student_checkbox",children:(0,xe.jsx)(se.Z,{style:{marginLeft:"20px"},disabled:3===(null==pn?void 0:pn.mode),checked:Le,onChange:function(e){var n;return De(null==e||null===(n=e.target)||void 0===n?void 0:n.checked)},children:(0,xe.jsx)("span",{children:"不可存在多个战队中"})})})]})}),(0,xe.jsx)(f.Z.Item,{className:Y,style:{marginTop:"-12px"},label:" ",name:"competition_staffs",colon:!1,children:(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsx)("span",{style:{margin:"0 10px 0 -50px"},children:"教师数"}),(0,xe.jsx)(f.Z.Item,{name:"teacher_min",rules:[{pattern:new RegExp(/^[0-9]+([.]{1}[0-9]+){0,1}$/,"g"),message:"必须是数值"}],children:(0,xe.jsx)(j.Z,{style:{width:"100px"}})}),(0,xe.jsx)("span",{style:{margin:"0 10px"},children:"至"}),(0,xe.jsx)(f.Z.Item,{name:"teacher_max",rules:[{pattern:new RegExp(/^[0-9]+([.]{1}[0-9]+){0,1}$/,"g"),message:"必须是数值"}],children:(0,xe.jsx)(j.Z,{style:{width:"100px"}})}),(0,xe.jsx)("span",{style:{margin:"0 10px"},children:"人"}),(0,xe.jsx)(f.Z.Item,{name:"teacher_checkbox",children:(0,xe.jsx)(se.Z,{style:{marginLeft:"20px"},disabled:3===(null==pn?void 0:pn.mode),checked:ze,onChange:function(e){var n;return Me(null==e||null===(n=e.target)||void 0===n?void 0:n.checked)},children:(0,xe.jsx)("span",{children:"不可存在多个战队中"})})})]})})]}),1==g.getFieldValue("personal")&&(0,xe.jsx)(f.Z.Item,{label:" ",children:(0,xe.jsxs)(oe.Z,{wrap:!1,gutter:10,children:[(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"is_student",style:{marginTop:"-12px"},valuePropName:"checked",normalize:function(e,n,t){return e||t.is_teacher||t.is_professional?e:(v.ZP.warning("请选择至少一种身份可以报名参赛"),!(e||t.is_teacher||t.is_professional))},children:(0,xe.jsx)(se.Z,{children:"学生身份参赛"})})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"is_teacher",style:{marginTop:"-12px"},valuePropName:"checked",normalize:function(e,n,t){return e||t.is_student||t.is_professional?e:(v.ZP.warning("请选择至少一种身份可以报名参赛"),!(e||t.is_student||t.is_professional))},children:(0,xe.jsx)(se.Z,{children:"教师身份参赛"})})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{name:"is_professional",style:{marginTop:"-12px"},valuePropName:"checked",normalize:function(e,n,t){return e||t.is_teacher||t.is_student?e:(v.ZP.warning("请选择至少一种身份可以报名参赛"),!(e||t.is_teacher||t.is_student))},children:(0,xe.jsx)(se.Z,{children:"专业人士身份参赛"})})})]})})]}),(0,xe.jsx)("div",{className:ee,children:(0,xe.jsx)(_e.Z,{className:ne,htmlType:"submit",onClick:r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),children:"保存更改"})})]}),(0,xe.jsx)(x.Z,{centered:!0,title:"以下数据导入失败",open:tn,okText:"确定",cancelText:"取消",onOk:function(){ln(!1)},onCancel:function(){ln(!1)},children:(0,xe.jsx)(re.Z,{bordered:!0,scroll:{y:400},columns:1==g.getFieldValue("rule")?[{title:"手机号",dataIndex:"phone"},{title:"姓名",dataIndex:"name"},{title:"邮箱",dataIndex:"email"}]:[{title:"ID",dataIndex:"phone"},{title:"学校/单位",dataIndex:"name"}],dataSource:an,pagination:!1,rowKey:function(e){return e.name}})})]})})),je={flex_box_center:"flex_box_center___TUtVx",flex_space_between:"flex_space_between___skxVP",flex_box_vertical_center:"flex_box_vertical_center____enb6",flex_box_center_end:"flex_box_center_end___lO_Gq",flex_box_column:"flex_box_column___QrhZ_",all:"all___GiQqZ",title:"title___YtceA",content:"content___Es9RO",content_icon:"content_icon___SNFzF",content_info:"content_info___rSAWs",content_title:"content_title___Hkmmk",content_size:"content_size___jLmmn",content_img:"content_img___NRn9i",content_img2:"content_img2___D23TM"},be=t(78673),we="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA+9JREFUWEeVl12IVVUUx39rnyuj2UswQiEp1osURFESPoimkPgShJMQQ2UFDsOoEYmOn4yUToXcoSxNsYJewg+klxgJJ8GnqPzoSURUQh998MGBKWdcsvc959599t3nwwuXc+496+z1X//1LXqEXv7jMLCGhLkIkAAm/drf2b292mfhf/7z2L2V1/Q93P0khnGUQdEmJxH6ckoyBb6yR1WcGeJfW8pbBrSup0QPcA9hbs5inwFrkc9KeP8orESYEP0CzVkfUuhb4CvLQMYAlbkkACE6WgGg6LAqN4Uu839nICy5ug/NBVaRr8vckL0TshKy5xtjnzkAn3kMxKyqivDwUMMUDf5CmCFhCaTx5YPM9DgAeyMuKKMvUxhjSrhAD2tlLf+6gD/DU0xxnIRl7UAOjBQdCQD4AlkG1Iv0+xgWSz83WuS2PvorTzLNNQyPd6V6YhnYE7igyo/F9eCCvMcrvvI2iF84i7Aqx0KqR3RXrSx4gEHSb6cu5Om8KO/zchTAaSYQVnalu1gGdlQASFyWLEe4heEs8Gw7a/Js3aeH56WfazkXnGA+wlWMV+y8wBUdDgB0U/y7DLPK+XOMFzH8gdDTVR1bcXIZQ5+s57qT/5mngeMYlhYVO9GtXh2I+bfBRhnm27Y/xxgCvmk3rLB5Gf7HOCAzCC9hmF3WwES3FBQiC8bSP4sFso3bOVqbnMbwZiyqo5bGGlPqBtFP0K7o7LTbP2WEV8PA0kM8wRSXMCysVBj2j6A6in6cxkA3lZaB7TLC59HIHmMpcB5DIzofJPyEcBfDZgeyoJSLflSQBfaFOSyW3VyNAXBBdoBhDKNtFjrl9ksZYJuT+YETGN6KtnuXhpsilbDl/yuyn+eKlLvDrfOanMHwepuFhAnmsVrWMeNkfmQFyrkiV4kOFTDQYL+MsrMMgFPwNfOYdpXuBYSLzGG1DHCnnTUW5Pdcx7AoBkJ0sADAbJbIPv6uApAyYTjIIjZxU4QHXUF7jD0Ie2OxIjoQSUPDLWmyoI7yOjJ6jIUoNxFXzltDbhovohsi88AsDkqTzXUOryujR5kAVoZFSfTDFIA/MCQMyVccqnt4HTn9jk8RdnnB6lJT9INoDIzTyxsywnSdw6tk9BwNrvAbwmthOoquL6wDN2jwTzpadZaRol3BLzT5nmIbuW1iz8TngXdrzQPxSlY2Q9ZZZJwL3gl6QdFqFdsD/PUtNnTWGOVE+1MAZcNmFahwduyelDv7pr9Xupnwbe65aaVshi+jM2xivoKMAR9g3tBJ0XWcJKEvTI/cwOFbVGdxKVvv8kvMKctAL8phDGvcEhFTUGdPKHJTfB6YRBjnMQYfAr/L5O84EyIQAAAAAElFTkSuQmCC",Ze=t(18030),ke=["competitions","globalSetting","loading","dispatch","user"],Ne=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n=e.competitions,t=(e.globalSetting,e.loading,e.dispatch),i=(e.user,p()(e,ke)),s=(0,m.useState)(""),a=d()(s,2),c=a[0],u=a[1],_=(0,m.useState)(""),h=d()(_,2),g=h[0],y=h[1],b=f.Z.useForm(),w=d()(b,1)[0],k=n.Header,N=(0,m.useState)(!0),I=d()(N,2),A=I[0],S=I[1];(0,m.useEffect)((function(){C()}),[]),(0,m.useEffect)((function(){S(null==k?void 0:k.is_show_picture),w.setFieldValue("apply_success_tips",(null==k?void 0:k.apply_success_tips)||"参赛者可扫码加入大赛官方交流群,获取最新竞赛通知")}),[k]);var C=function(){(0,ue.Mn)(null==i?void 0:i.competitionId).then((function(e){var n,t;0==(null==e?void 0:e.status)?(u(null==e||null===(n=e.data)||void 0===n?void 0:n.competition_image),y(null==e||null===(t=e.data)||void 0===t?void 0:t.qr_code_image),null==i||i.loadingFunction(!1)):v.ZP.error(null==e?void 0:e.message)}))},F=function(e,n){(0,ue.o3)(null==i?void 0:i.competitionId).then((function(l){var s=new FormData;s.append("file",null==e?void 0:e.file),s.append("source_id",null==l?void 0:l.id),s.append("source_type",n),(0,Ze.ZP)("/api/competitions/set_attachments.json",{method:"post",body:s},!0).then((function(e){"success"==(null==e?void 0:e.message)?(v.ZP.success("上传成功"),C(),t({type:"competitions/getStaff",payload:{identifier:null==i?void 0:i.competitionId}}),t({type:"competitions/getHeader",payload:{identifier:null==i?void 0:i.competitionId}})):v.ZP.error(null==e?void 0:e.message)}))}))};function P(e){return T.apply(this,arguments)}function T(){return(T=r()(o()().mark((function e(n){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(k.identifier,"/update_picture_settings.json"),{method:"post",body:n});case 2:0===(null==(i=e.sent)?void 0:i.status)&&(v.ZP.info("更新成功"),t({type:"competitions/getHeader",payload:{identifier:k.identifier}}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,xe.jsxs)("div",{className:je.all,children:[(0,xe.jsx)("div",{className:je.title,children:"图片设置"}),(0,xe.jsxs)("div",{children:[(0,xe.jsx)("div",{style:{marginTop:48,marginLeft:50,fontSize:14,color:"#232B40"},children:"竞赛海报"}),(0,xe.jsxs)("div",{className:je.content,children:[(0,xe.jsx)("img",{src:we,className:je.content_icon}),(0,xe.jsxs)("div",{className:je.content_info,children:[(0,xe.jsx)(ie.Z,{accept:"image/*",customRequest:function(e){return F(e,"Competition")},showUploadList:!1,children:(0,xe.jsx)("div",{className:je.content_title,children:"上传竞赛封面图"})}),(0,xe.jsx)("div",{className:je.content_size,children:"图片尺寸:792 x 340"})]}),(0,xe.jsx)("img",{src:c,className:je.content_img})]})]}),(0,xe.jsxs)("div",{children:[(0,xe.jsx)("div",{style:{marginTop:48,marginLeft:50,fontSize:14,color:"#232B40"},children:"报名成功弹窗"}),(0,xe.jsxs)("div",{className:je.content,style:{borderBottom:0},children:[(0,xe.jsx)("img",{src:we,className:je.content_icon}),(0,xe.jsxs)("div",{className:je.content_info,children:[(0,xe.jsx)(ie.Z,{accept:"image/*",customRequest:function(e){return F(e,"Competition_code")},showUploadList:!1,children:(0,xe.jsx)("div",{className:je.content_title,children:"上传交流群二维码"})}),(0,xe.jsx)("div",{className:je.content_size,children:"图片尺寸:160 x 160"})]}),(0,xe.jsx)("img",{src:g,className:je.content_img2})]}),(0,xe.jsxs)("div",{style:{marginLeft:50,marginRight:50},children:[(0,xe.jsxs)("div",{children:["展示二维码",(0,xe.jsx)(be.Z,{checked:A,onChange:function(e){var n;S(e),P({is_show_picture:e,apply_success_tips:null===(n=w.getFieldsValue())||void 0===n?void 0:n.apply_success_tips})},style:{marginLeft:10}})]}),(0,xe.jsx)(f.Z,{size:"large",form:w,onFinish:function(e){P(l()({is_show_picture:A},e))},style:{marginTop:20},children:(0,xe.jsx)(f.Z.Item,{label:(0,xe.jsxs)("div",{children:[(0,xe.jsx)("span",{style:{color:"#ff4d4f",marginRight:"4px",fontFamily:"SimSun, sans-serif"},children:"*"}),"报名成功提示"]}),colon:!1,children:(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsx)(f.Z.Item,{style:{width:"100%"},colon:!1,name:"apply_success_tips",children:(0,xe.jsx)(j.Z,{autoComplete:"off",style:{width:"100%"},className:je.form_item_item,placeholder:"请输入报名成功提示",onBlur:function(){return w.submit()}})}),(0,xe.jsx)(Z.ZP,{onClick:function(){var e;x.Z.confirm({title:!1,closable:!0,icon:null,footer:!1,content:(0,xe.jsxs)("div",{children:[(0,xe.jsxs)("div",{style:{fontSize:26,color:"#3d3d3d",textAlign:"center",marginBottom:20},children:[(0,xe.jsx)("i",{style:{fontSize:26,color:"#52C41A"},className:"iconfont icon-tongguo"})," 报名成功"]}),(0,xe.jsxs)("div",{style:{alignItems:"center",textAlign:"center"},children:[A&&(0,xe.jsx)("img",{style:{width:180,border:"1px solid #eeeeef",padding:10,marginBottom:20},src:me.Z.IMG_SERVER+(null==k?void 0:k.QR_code)}),(0,xe.jsx)("p",{style:{color:"#AAAAAA"},children:null===(e=w.getFieldsValue())||void 0===e?void 0:e.apply_success_tips})]})]})})},style:{marginLeft:10},type:"primary",children:"示例"})]})})})]})]})]})})),Ie="all___d1AWD",Ae="title___VIjuM",Se="add_people___qkPex",Ce="people_icon___lz5gl",Fe="content___a8dSX",Pe="content_info___ekLIa",Te="info_icon___kXP8P",Re="info_title___Hld67",Ee="info_content___kbIuT",Le="info_content_icon___uNxzs",De="info_content_title___IfIi8",Be="info_open___NzrUi",Ve="info_delete___rZhhO",ze="questions_info___n9Fnq",Me="form_item___oxzha",Oe="form_item_item___yPf7l",Ye="form_item_small___EkG9G",He="guanka_title___uUWQl",qe="nandu_1___qifbd",Qe="nandu_2___qVJU8",Ge="nandu_3___NRfLL",Ue="close_icon___f2hON",We="footer___UDiYB",Je="save_button___t7iMm",Ke="textone___TAI4F",Xe="deletecolor___ldQnR",$e="qselect___uuNp6",en="qinput___xHGmH",nn="modalclass___dPDG7",tn="popu___G8M92",ln="pingcesetting___zHJaT",sn=t(81327),on=t(94001),an=t(43428),rn=t(71418),cn=t(28103),dn=t(27092),un=t(54313),pn="drawer___HuOiD",mn="menu___JTt0c",_n="actived___zd6GY",hn="actived2___hNW2h",fn="subTag___rHkqz",xn="listItem___dr1wg",vn="info___bpBpK",gn="title___typIH",yn="titleLeft___b4niC",jn="filter___HBJIT",bn="description___Rqa6Q",wn="menuCourse____Msk3",Zn="button_right___T8tiB",kn=t(19421),Nn=t(30904),In=t(21515),An=t(21530),Sn=["classroomList","loading","dispatch","shixunsList"],Cn=(j.Z.Search,[{id:"type",name:"来源",children:[{name:"全部",id:"all",type:"type"},{name:"我的",id:"mine",type:"type"}]},{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"}]}]),Fn=(0,_.connect)((function(e){return{classroomList:e.classroomList,shixunsList:e.shixunsList,loading:e.loading.effects}}))((function(e){var n,t,i=e.classroomList,s=(e.loading,e.dispatch),a=e.shixunsList,c=p()(e,Sn),u=(0,m.useState)(l()({},(0,_.useParams)())),h=d()(u,2),f=h[0],x=(h[1],i.shixunLists),g=i.shixunAiRecommendLists,j=(0,m.useState)(""),w=d()(j,2),k=w[0],N=w[1],I=(0,m.useState)({}),A=d()(I,2),S=A[0],C=A[1],F=(0,m.useState)([]),P=d()(F,2),T=P[0],R=P[1],E=(0,m.useState)(!1),D=d()(E,2),B=D[0],V=D[1],z=[{name:"最新",id:"created_at"},{name:"最热",id:"myshixuns_count"}].filter((function(e){return!!e})),M=(0,m.useState)({page:1,type:"mine",diff:"",status:"published",order:"desc",not_open:!0,limit:20,sort:"myshixuns_count",no_jupyter:1,group_id:null}),O=d()(M,2),Y=O[0],H=O[1];(0,m.useEffect)((function(){q()}),[f.coursesId,Y]),(0,m.useEffect)((function(){"新增赛题"===i.actionTabs.key&&(N(""),H({page:1,type:"mine",diff:"",status:"published",order:"desc",not_open:!0,limit:20,sort:"myshixuns_count",no_jupyter:1,group_id:null})),s({type:"shixunsList/getMenus",payload:{}})}),[i.actionTabs.key]),(0,m.useEffect)((function(){(null!=x&&x.shixun_list||null!=g&&g.shixun_list)&&C("recommend"===Y.sort?g:x)}),[x,g]);var q=function(){var e=r()(o()().mark((function e(){var n,t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(V(!0),n=l()({},Y),"recommend"===Y.sort&&(n.sort="myshixuns_count"),"recommend"!==Y.sort){e.next=8;break}return e.next=6,s({type:"classroomList/getShixunAiRecommendLists",payload:l()(l()({},n),{},{course_id:f.coursesId})});case 6:e.next=11;break;case 8:return t=l()({},n),e.next=11,s({type:"classroomList/getShixunLists",payload:t});case 11:return e.next=13,(0,Ze.ZP)("/api/users/user_setting_groups.json",{method:"get",params:{type:"Shixun"}});case 13:i=e.sent,R([{id:null,name:"全部"},{id:-1,name:"未加入目录"}].concat(L()((null==i?void 0:i.groups)||[]))),N(""),V(!1);case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if("选用实践课程"!==i.actionTabs.key){var Q=(0,In.P)(),G=d()(Q,4),U=G[0],W=G[1],J=G[2],K=(G[3],function(){var e=r()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,ue.su)({id:null==c?void 0:c.competitionId,shixun_ids:n.map((function(e){return e.id}))}).then((function(e){0==(null==e?void 0:e.status)?(v.ZP.success("添加成功"),s({type:"classroomList/setActionTabs",payload:{}}),s({type:"competitions/getHeader",payload:{identifier:null==c?void 0:c.competitionId}}),null==c||c.queryQuetions(!0)):v.ZP.error(null==e?void 0:e.message)}));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),X=(0,m.useState)(!1),$=d()(X,2),ee=$[0],ne=$[1];return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsxs)(an.Z,{title:"选用实践项目",placement:"bottom",height:"100%",closable:!0,open:"新增赛题"===i.actionTabs.key,rootClassName:pn,destroyOnClose:!0,onClose:function(){s({type:"classroomList/setActionTabs",payload:{key:""}})},footer:(0,xe.jsxs)("div",{className:"tc",style:{height:"64px",display:"flex",alignItems:"center",justifyContent:"center"},children:[(0,xe.jsx)(Z.ZP,{size:"middle",onClick:function(){s({type:"classroomList/setActionTabs",payload:{}})},style:{marginRight:8,width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},children:"取消"}),(0,xe.jsx)(Z.ZP,{style:{width:"120px",height:"40px",fontSize:"16px",borderRadius:"4px"},size:"middle",onClick:r()(o()().mark((function e(){var n,t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!k){e.next=8;break}return ne(!0),t=null==S||null===(n=S.shixun_list)||void 0===n?void 0:n.filter((function(e){return k.includes(e.identifier)})).map((function(e){return{id:e.id,is_copy:0,is_use:1}})),e.next=5,K(t);case 5:ne(!1),e.next=9;break;case 8:v.ZP.error("请选择实践项目");case 9:case"end":return e.stop()}}),e)}))),type:"primary",loading:ee,children:"确定"})]}),children:[(0,xe.jsx)("section",{className:"tc",children:(0,xe.jsx)(Nn.Z,{onChange:function(e){null!=e&&e.keyword.trim()&&(0,An.tk)({name:null==e?void 0:e.keyword.trim(),copywriting:null==e?void 0:e.keyword.trim(),position:"Shixun"}),H(l()(l()({},Y),{},{keyword:null==e?void 0:e.keyword.trim(),schools:null==e?void 0:e.schools.trim(),creator:null==e?void 0:e.creator.trim(),page:1}))}})}),(0,xe.jsx)("section",{className:"edu-container",children:(0,xe.jsx)(rn.Z,{spinning:B,children:(0,xe.jsxs)("aside",{children:[Cn.map((function(e,n){var t;return 0!==n?null:(0,xe.jsxs)("ul",{className:mn,children:[(0,xe.jsx)("li",{children:e.name}),null==e||null===(t=e.children)||void 0===t?void 0:t.map((function(n,t){return(0,xe.jsx)("li",{className:Y[e.id]==n.id?_n:"",onClick:function(){Y[e.id]=n.id,Y.page=1,H(l()({},Y))},children:(0,xe.jsx)("strong",{children:n.name})},t)}))]},n)})),(0,xe.jsxs)("ul",{className:mn,children:[(0,xe.jsx)("li",{children:"方向"}),(0,xe.jsx)("li",{className:null!=Y&&Y.discipline_id?"":_n,onClick:function(){delete Y.tag_level,delete Y.sub_discipline_id,delete Y.discipline_id,Y.page=1,H(l()({},Y))},children:(0,xe.jsx)("strong",{children:"全部"})}),a.menus&&a.menus.map((function(e,n){return(0,xe.jsxs)("li",{className:(null==Y?void 0:Y.discipline_id)==e.id?_n:"",children:[(0,xe.jsx)("strong",{onClick:function(){Y.tag_level=1,Y.discipline_id=e.id,delete Y.sub_discipline_id,Y.page=1,H(l()({},Y))},children:e.name}),(0,xe.jsx)("div",{children:e.sub_repertoires.map((function(n,t){return(0,xe.jsxs)("div",{className:"mt5",children:[(0,xe.jsx)("div",{className:(null==Y?void 0:Y.sub_discipline_id)==n.id&&2===Y.tag_level?"".concat(hn," ").concat(fn):fn,onClick:function(){Y.tag_level=2,Y.discipline_id=e.id,Y.sub_discipline_id=n.id,H(l()({},Y))},children:n.name}),(0,xe.jsx)("ul",{className:"mt5",children:n.tags&&n.tags.map((function(n,t){return(0,xe.jsx)("li",{className:Y.sub_discipline_id==n.id&&3===Y.tag_level?hn:"",onClick:function(){Y.tag_level=3,Y.discipline_id=e.id,Y.sub_discipline_id=n.id,H(l()({},Y))},children:n.name},t)}))})]},t)}))})]},n)}))]}),"mine"===Y.type&&(0,xe.jsxs)("ul",{className:mn,children:[(0,xe.jsx)("li",{children:"目录"}),null==T?void 0:T.map((function(e,n){return(0,xe.jsx)("li",{className:Y.group_id==e.id?_n:"",onClick:function(){Y.group_id=e.id,Y.page=1,H(l()({},Y))},children:(0,xe.jsx)("strong",{children:e.name})},n)}))]}),Cn.map((function(e,n){var t;return 1!==n?null:(0,xe.jsxs)("ul",{className:mn,children:[(0,xe.jsx)("li",{children:e.name}),null==e||null===(t=e.children)||void 0===t?void 0:t.map((function(n,t){return(0,xe.jsx)("li",{className:Y[e.id]==n.id?_n:"",onClick:function(){Y[e.id]=n.id,H(l()({},Y))},children:(0,xe.jsx)("strong",{children:n.name})},t)}))]},n)})),"mine"==(null==Y?void 0:Y.type)&&(0,xe.jsxs)("ul",{className:mn,children:[(0,xe.jsx)("li",{children:"状态"}),(0,xe.jsx)("li",{className:0==Y.not_open?_n:"",onClick:function(){Y.not_open=!1,Y.page=1,H(l()({},Y))},children:(0,xe.jsx)("strong",{children:"公开"})}),(0,xe.jsx)("li",{className:1==Y.not_open?_n:"",onClick:function(){Y.not_open=!0,Y.page=1,H(l()({},Y))},children:(0,xe.jsx)("strong",{children:"未公开"})})]}),(0,xe.jsxs)(oe.Z,{align:"middle",children:[(0,xe.jsx)(ae.Z,{flex:"1",className:jn,children:z.map((function(e,n){return(0,xe.jsx)(Z.ZP,{className:"mr20",type:Y.sort===e.id?"primary":"default",onClick:function(){Y.sort=e.id,H(l()({},Y))},children:e.name},n)}))}),(0,xe.jsx)(ae.Z,{className:"c-grey-999",children:(0,xe.jsx)("div",{className:wn,children:(0,xe.jsxs)("ul",{children:[(0,xe.jsxs)("li",{children:["已选",(0,xe.jsx)("span",{className:"c-blue",children:k.length>0?1:0}),"个"]}),(0,xe.jsxs)("li",{children:["共",(0,xe.jsx)("span",{className:"c-blue",children:S.shixuns_count}),"个"]}),(0,xe.jsxs)("li",{className:"current",onClick:function(){Y.order="asc"===Y.order?"desc":"asc",H(l()({},Y))},children:["学习人数",(0,xe.jsxs)("p",{className:"edu-sorter current ".concat(Y.order),children:[(0,xe.jsx)("span",{className:"iconfont icon-sanjiaoxing-up"}),(0,xe.jsx)("span",{className:"iconfont icon-sanjiaoxing-down"})]})]})]})})})]}),0===(null==S||null===(n=S.shixun_list)||void 0===n?void 0:n.length)&&(0,xe.jsx)(un.Z,{}),(0,xe.jsx)(b.ZP.Group,{style:{display:"block"},value:k,onChange:function(e){N(e.target.value)},children:null==S||null===(t=S.shixun_list)||void 0===t?void 0:t.map((function(e,n){var t,i;return(0,xe.jsx)("div",{className:xn,style:{cursor:"auto"},children:(0,xe.jsx)(b.ZP,{value:null==e?void 0:e.identifier,style:{marginTop:"3px"},disabled:null==e?void 0:e.need_authorize,children:(0,xe.jsxs)("div",{className:vn,children:[(0,xe.jsx)("div",{className:gn,children:(0,xe.jsxs)("div",{className:yn,children:[(0,xe.jsx)(_.Link,{to:"/shixuns/".concat(e.identifier,"/challenges"),target:"_blank",children:(0,xe.jsx)("strong",{className:"font16",dangerouslySetInnerHTML:{__html:e.title}})}),(null==e?void 0:e.need_authorize)&&(0,xe.jsx)("span",{onClick:function(){(0,kn.rX)(!1)},style:{marginRight:"auto"},className:"tag-style bg-pink current ml10",children:"需授权"}),(0,fe.Ny)()&&1===(null==e?void 0:e.mark_status)&&(0,xe.jsx)(y.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,xe.jsx)("span",{style:{marginRight:"auto",background:"#2FA34F"},className:"tag-style current ml10",children:"正常"})}),(0,fe.Ny)()&&2===(null==e?void 0:e.mark_status)&&(0,xe.jsx)(y.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,xe.jsx)("span",{style:{marginRight:"auto",background:"#FF8C29"},className:"tag-style current ml10",children:"需完善"})}),(0,fe.Ny)()&&3===(null==e?void 0:e.mark_status)&&(0,xe.jsx)(y.Z,{zIndex:1e4,title:null==e?void 0:e.mark_content,children:(0,xe.jsx)("span",{style:{marginRight:"auto",background:"#E53333"},className:"tag-style current ml10",children:"无法使用"})}),(0,xe.jsx)(Z.ZP,{ghost:!0,href:"/shixuns/".concat(e.identifier,"/challenges"),type:"primary",target:"_blank",className:Zn,children:"体验实训"})]})}),(0,xe.jsx)("div",{className:"flex-wrp mt10 font14 c-light-black",children:(0,xe.jsx)("span",{className:bn,dangerouslySetInnerHTML:{__html:e.description}})}),(0,xe.jsx)("div",{className:" mt15",children:e.challenge_names.map((function(e,n){return(0,xe.jsxs)("span",{className:"mr30",children:["第",n+1,"关 ",e," "]},n)}))}),(0,xe.jsx)(cn.Z,{dashed:!0}),(0,xe.jsxs)("div",{className:"c-light-black mt20",children:[null!=e&&null!==(t=e.content)&&void 0!==t&&t.author_name?(0,xe.jsx)("span",{dangerouslySetInnerHTML:{__html:null==e||null===(i=e.content)||void 0===i||null===(i=i.author_name)||void 0===i?void 0:i[0]}}):(0,xe.jsx)("span",{children:e.author_name}),(0,xe.jsx)("span",{className:"ml15 mr15",children:"|"}),e.author_school_name&&(0,xe.jsxs)(m.Fragment,{children:[(0,xe.jsx)("span",{children:e.author_school_name}),(0,xe.jsx)("span",{className:"ml15 mr15",children:"|"})]}),(0,xe.jsxs)("span",{children:["难度系数 ",e.level]}),(0,xe.jsx)("span",{className:"ml15 mr15",children:"|"}),(0,xe.jsx)("span",{children:"学习人数 "}),(0,xe.jsx)("span",{children:e.study_count})]})]})})},n)}))})]})})}),(0,xe.jsx)("div",{className:"tc mt20",children:(0,xe.jsx)(dn.Z,{defaultCurrent:1,hideOnSinglePage:!0,defaultPageSize:20,showSizeChanger:!1,current:Y.page||1,showQuickJumper:!0,total:null==S?void 0:S.shixuns_count,onChange:function(e){Y.page=e,H(l()({},Y))}})})]},"bottom"),(0,xe.jsx)(In.Z,{visible:U,onCancel:W,renderData:J,inPaper:!1,onOk:K,modalType:"multiple",type:"shixun",position:"选中实训"})]})}})),Pn=["competitions","shixunHomeworks","globalSetting","dispatch","user"],Tn=j.Z.TextArea,Rn=function(e){return null!=e&&e.includes("已截止")?(0,xe.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #FFC4C4",color:"#E53333",fontSize:12,marginRight:8},children:"已截止"}):null!=e&&e.includes("进行中")?(0,xe.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #C4D2F1",color:"#3061D0",fontSize:12,marginRight:8},children:"进行中"}):null!=e&&e.includes("未发布")?(0,xe.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #DADBDE",color:"#999999",fontSize:12,marginRight:8},children:"未发布"}):null!=e&&e.includes("提交中")?(0,xe.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #B1F0E1",color:"#00B187",fontSize:12,marginRight:8},children:"提交中"}):null!=e&&e.includes("已结束")?(0,xe.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #FFC4C4",color:"#E53333",fontSize:12,marginRight:8},children:"已结束"}):null!=e&&e.includes("考试中")?(0,xe.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #C4D2F1",color:"#3061D0",fontSize:12,marginRight:8},children:"考试中"}):null!=e&&e.includes("未开始")?(0,xe.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid #DADBDE",color:"#999999",fontSize:12,marginRight:8},children:"未开始"}):null!=e&&e.includes("补交中")?(0,xe.jsx)("div",{style:{borderRadius:13,width:56,height:20,display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid rgba(255,157,24,0.3)",color:"#FF9D18",fontSize:12,marginRight:8},children:"补交中"}):void 0},En=(0,_.connect)((function(e){return{competitions:e.competitions,shixunHomeworks:e.shixunHomeworks,globalSetting:e.globalSetting,user:e.user}}))((function(e){var n,t,i,s,a=e.competitions,c=(e.shixunHomeworks,e.globalSetting,e.dispatch),u=e.user,g=p()(e,Pn),w=f.Z.useForm(),k=d()(w,1)[0],I=f.Z.useForm(),A=d()(I,1)[0],S=(0,m.useState)(!0),C=d()(S,2),F=C[0],P=C[1],T=(0,m.useState)([]),R=d()(T,2),E=R[0],D=R[1],B=(0,m.useState)(!1),V=d()(B,2),z=V[0],M=(V[1],(0,m.useState)([])),O=d()(M,2),Y=O[0],H=O[1],q=a.Header,Q=(0,m.useState)(1),G=d()(Q,2),U=(G[0],G[1],(0,m.useState)({})),W=d()(U,2),J=W[0],K=W[1],X=(0,_.useParams)(),$=X.identifier,ee=(X.enter,(0,m.useState)({})),ne=d()(ee,2),te=ne[0],ie=ne[1],le=(0,m.useState)([]),re=d()(le,2),ce=re[0],de=re[1],pe=(0,m.useState)(""),me=d()(pe,2),he=me[0],ve=me[1],ge=(0,m.useState)([]),ye=d()(ge,2),je=ye[0],be=ye[1],we=(0,m.useState)(!1),ke=d()(we,2),Ne=ke[0],an=ke[1],rn=(0,m.useState)([{type:"practice",name:"课堂实验",open:!1,url:"shixun_homework"},{type:"normal",name:"图文作业",open:!1,url:"common_homework"},{type:"group",name:"分组作业",open:!1,url:"group_homework"},{type:"hack",name:"编程作业",open:!1,url:"program_homework"},{type:"exercise",name:"在线考试",open:!1,url:"exercise"}]),cn=d()(rn,2),dn=cn[0],pn=cn[1],mn=(0,m.useState)({input:""}),_n=d()(mn,2),hn=_n[0],fn=_n[1];function xn(){return(xn=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat($,"/get_course_settings.json"),{method:"get"});case 2:0===(null==(n=e.sent)?void 0:n.status)&&ie(n.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vn(){return gn.apply(this,arguments)}function gn(){return(gn=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null==g||g.loadingFunction(!0),e.next=3,(0,Ze.ZP)("/api/users/".concat(u.userInfo.login,"/courses.json"),{method:"get",params:{category:"manage",page:1,per_page:1e3,username:u.userInfo.login,no_limit_per_page:1}});case 3:n=e.sent,null==g||g.loadingFunction(!1),de(null==n?void 0:n.courses);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,m.useEffect)((function(){1===q.mode?(A.resetFields(),jn(!0)):2===q.mode?(A.resetFields(),function(){xn.apply(this,arguments)}()):function(){In.apply(this,arguments)}()}),[q]),(0,m.useEffect)((function(){u.userInfo.login&&vn()}),[u]);var yn=function(e){var n,t=e.total_score,i=e.difficulty_level_sort,l=null===(n=e.challenge_settings)||void 0===n?void 0:n.filter((function(e){return e.checked})).length;if(l){var s,o=t/e.challenge_settings.filter((function(e){return e.checked})).map((function(e){return"desc"===i?e.challenge_exp_desc:e.challenge_exp})).reduce((function(e,n){return e+n})),a=0,r=0;switch(e.score_setting){case 0:var c=parseFloat((t/l).toFixed(1));e.challenge_settings.map((function(e,n){e.checked?(a=n,e.score=c>0?c:0):e.score=0})),s=(t-c*(l-1)).toFixed(1),e.challenge_settings[a].score=s>0?s:0;break;case 1:e.challenge_settings.map((function(e,n){e.checked?(a=n,r+=Number((Math.round(("desc"===i?e.challenge_exp_desc:e.challenge_exp)*o*10)/10).toFixed(1)),e.score=(Math.round(("desc"===i?e.challenge_exp_desc:e.challenge_exp)*o*10)/10).toFixed(1)):e.score=0}));var d=e.challenge_settings[a].score;s=(t-r+Number(d)).toFixed(1),e.challenge_settings[a].score=s>0?s:0}}else e.challenge_settings.map((function(e,n){e.challenge_score=0}))},jn=function(e){(0,ue.lm)(null==g?void 0:g.competitionId).then((function(n){if(0==(null==n?void 0:n.status)){if(null!=n&&n.data){var t=null==n?void 0:n.data;if(e){for(var i in t)t[i].show_info=!1;H(t)}else for(var l in Y)t[l].show_info=Y[l].show_info;D(t)}else D([]);null==g||g.loadingFunction(!1)}else v.ZP.error(null==n?void 0:n.message)}))},bn=function(e,n){var t=E;for(var i in t)t[i].id==e.id&&("open"==n?t[i].show_info=!0:"close"==n&&(t[i].show_info=!1));D(L()(t)),H(L()(t))},wn=function(){if(function(e){var n=[];for(var t in e){var i,l,s=null===(i=e[t])||void 0===i||null===(i=i.challenge_settings)||void 0===i?void 0:i.reduce((function(e,n){return e+Number(n.score)}),0);(null==s?void 0:s.toFixed(10))!==(null===(l=e[t])||void 0===l||null===(l=l.total_score)||void 0===l?void 0:l.toFixed(10))&&n.push("赛题".concat(Number(t)+1,"的关卡任务总分必须等于总分值:").concat(e[t].total_score,"分\n"))}return!(n.length>0&&(v.ZP.warning(n),1))}(E)){for(var e in E){var n,t;if(E[e].shixun_id=null===(n=E[e])||void 0===n||null===(n=n.challenge_settings[0])||void 0===n?void 0:n.shixun_id,(null===(t=E[e])||void 0===t||null===(t=t.challenge_settings)||void 0===t?void 0:t.length)>0)for(var i in null===(l=E[e])||void 0===l?void 0:l.challenge_settings){var l,s;E[e].challenge_settings[i].challenge_score=null===(s=E[e])||void 0===s?void 0:s.challenge_settings[i].score}}(0,ue.JM)({id:null==g?void 0:g.competitionId,shixuns:E}).then((function(e){0==(null==e?void 0:e.status)?(v.ZP.success("更改成功"),jn(!1)):v.ZP.error(null==e?void 0:e.message)}))}};function Zn(e){return kn.apply(this,arguments)}function kn(){return kn=r()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null==g||g.loadingFunction(!0),e.next=3,(0,Ze.ZP)("/api/competitions/".concat($,"/switch_mode.json"),{method:"post",body:{mode:n}});case 3:return t=e.sent,null==g||g.loadingFunction(!1),0===(null==t?void 0:t.status)&&c({type:"competitions/getHeader",payload:{identifier:$}}),e.abrupt("return",!0);case 7:case"end":return e.stop()}}),e)}))),kn.apply(this,arguments)}function Nn(){return(Nn=r()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return an(!0),e.next=3,(0,Ze.ZP)("/api/competitions/get_competition_course_homework.json",{method:"get",params:{course_id:te.course_id,competition_course_game_id:n,id:$}});case 3:t=e.sent,an(!1),0===(null==t?void 0:t.status)?(ve(n),be(null==t||null===(i=t.data)||void 0===i?void 0:i.list)):v.ZP.info("当前课堂暂无数据,请更换绑定课堂或在当前课堂新增作业或考试");case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function In(){return(In=r()(o()().mark((function e(){var n,t,i,l,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat($,"/get_work_settings.json0"),{method:"get"});case 2:0===(null==(n=e.sent)?void 0:n.status)&&(P(null==n?void 0:n.data.is_new),A.setFieldsValue({evaluation_setting:null==n||null===(t=n.data)||void 0===t?void 0:t.evaluation_setting,commit_num:null==n||null===(i=n.data)||void 0===i?void 0:i.commit_num,evaluation_time:null==n||null===(l=n.data)||void 0===l?void 0:l.evaluation_time,evaluation_script:null==n||null===(s=n.data)||void 0===s?void 0:s.evaluation_script}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var An=function(e){var n=e.getFieldsValue();for(var t in console.log(n),n)if(void 0!==n[t])return!0;return!1};return(0,xe.jsxs)("div",{className:Ie,children:[(0,xe.jsxs)("div",{style:{padding:30},children:[(0,xe.jsx)("div",{style:{marginBottom:30,fontSize:14,fontWeight:600,color:"#232B40"},children:"模式设置"}),(0,xe.jsxs)("div",{style:{marginLeft:42},children:[(0,xe.jsx)("span",{children:"竞赛模式"}),(0,xe.jsx)(b.ZP.Group,{disabled:"progressing"===q.competition_status||"ended"===q.competition_status||"apply"===(null==q?void 0:q.competition_status),value:q.mode,onChange:function(){var e=r()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null==te||null===(t=te.competition_course_games)||void 0===t||null===(t=t[0])||void 0===t||null===(t=t.homeworks)||void 0===t?void 0:t.length)>0||(null==E?void 0:E.length)>0||An(A))){e.next=3;break}return x.Z.confirm({icon:!1,title:"提示",content:"切换模式后,当前已经设置的赛题数据将会被清理,且不可撤回,请确认是否进行切换",onOk:function(){var e=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Zn(n.target.value);case 2:e.sent&&vn();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),e.abrupt("return");case 3:return e.next=5,Zn(n.target.value);case 5:e.sent&&vn();case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),style:{marginLeft:10,fontSize:14},children:(0,xe.jsxs)(sn.Z,{direction:"vertical",children:[(0,xe.jsxs)(b.ZP,{value:1,children:["实训模式",(0,xe.jsx)("span",{style:{color:"#9096A3",marginLeft:10},children:"挑战实训,系统评审"})]}),(0,xe.jsxs)(b.ZP,{value:2,children:["课堂模式",(0,xe.jsx)("span",{style:{color:"#9096A3",marginLeft:10},children:"参赛者需要进入课堂完成作业,将选择计入成绩的作业生成排行榜"})]}),(0,xe.jsxs)(b.ZP,{value:3,disabled:!(0,fe.Ny)()&&(null==q?void 0:q.is_manager)||"progressing"===q.competition_status||"apply"===(null==q?void 0:q.competition_status)||"ended"===q.competition_status,children:["作品模式",(0,xe.jsx)("span",{style:{color:"#9096A3",marginLeft:10},children:"参赛者提交作品,系统评审"})]})]})})]})]}),1===q.mode&&(0,xe.jsxs)("div",{children:[(0,xe.jsxs)("div",{className:Ae,style:{display:"flex",alignItems:"center"},children:[(0,xe.jsxs)("div",{style:{flex:1},children:["赛题设置",(0,xe.jsxs)("span",{style:{marginLeft:20,color:"#9096A3",fontSize:"12px",fontWeight:"normal"},children:["答题起止时间:",(0,xe.jsxs)("span",{style:{margin:"0 5px",color:"#165DFF",fontSize:"12px",fontWeight:"normal"},children:[null==q?void 0:q.start_time,"~",null==q?void 0:q.end_time]}),((0,fe.eB)()||(null==q||null===(n=q.permission)||void 0===n?void 0:n.editable))&&(0,xe.jsxs)("a",{style:{marginLeft:10,color:"#165DFF",display:"inline-flex"},onClick:function(){c({type:"competitions/setActionTabs",payload:{key:"7"}})},children:[(0,xe.jsx)("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF",marginRight:3}})," 编辑"]})]})]}),"progressing"!=(null==q?void 0:q.competition_status)&&"apply"!=(null==q?void 0:q.competition_status)&&"ended"!=(null==q?void 0:q.competition_status)&&(0,xe.jsxs)("div",{className:Se,style:{top:"auto"},onClick:function(){c({type:"classroomList/setActionTabs",payload:{key:"新增赛题",params:""}})},children:[(0,xe.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAF9JREFUOE9jZKAQMOLTb5B0voHhH8OBCwsMD+BSR9gABgaGC/MMG0YNIBAGBgnnHRiYGBwwAuo/oz1YjPH/QWyBCApccCyAowsbwGcANHpHo5GBgcZhAI1esvMCMTkdAHAwQhEikgNIAAAAAElFTkSuQmCC",className:Ce}),"新增赛题"]})]}),(0,xe.jsx)("div",{style:{marginTop:"25px"}}),E.map((function(e,n){var t,i,s;return(0,xe.jsxs)("div",{className:Fe,children:[(0,xe.jsxs)("div",{className:Pe,children:[(0,xe.jsx)("img",{src:"data:image/png;base64,iVB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4ZE/Maryui8WbVvNGybP92RGl5EDbOIFyL4bzunqZPdU5/o8TC6BUx6AjdCI3xjFqkyqIT+1IqYAjhIZNpk718+AfZ8LVXyCfCsQAAAABJRU5ErkJggg==",className:Te}),(0,xe.jsxs)("div",{className:Re,children:["赛题",n+1]}),(0,xe.jsxs)("div",{className:Ee,children:[(0,xe.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAnZJREFUSEvtlk1IVFEUx39n3gwpUxKEM35QEU3QJlxYK8FNtWjhJqhFOH4UCBl9UCQVYdMmSLLAQkhJxRmKCipy2yKpTdEH7oSipKAZx00Uhc3MeyfupOGMPS0ZBgLf7t177v2d8z/n3nsEoDKsW23YB2xQ8JqxQn0CGeC9BTfjUXkhBpaBc4UCLLSPF85LIKyXFTYVAyjwxgDvF1pGN+eNvFIe1pFiRDfLWAYWXO3/TlKdkUD+VorFIhzzQI8qNSocydlUSJT66chMszKdoVeUnjLl2VeLVkfZ4Xo0XI6FinK7PcStSESc6iZdk1KG8oAXp4blaXmjhhCueJWueEyeGJtgs25Xh4MKK/LB8yIU+GIp3fGYvMouDmvAUc4gbJyz+G1ymOMiooEmjahSK/DDA1cTURnN3s8HdL2d5rQq1XOh84A+4dCnYflgjAKNWoPQoVCWs0g5m4zJWLBFtzg2F+bOeeBhfQMDd/eKHQyr34EbgN/14K8rZffLPklXNmu9rZxQxZMHe52MSWfWIZd72AMPJqNiQMbmukKVK9BvEZ4Yks+1ber7+J1WFRpyIvBxdHJA3gWatU4dTuXnyFLubQ4RfRyRjIlQhX5VVrkCRRj3WHQlBmXKGFW06DbH5piRVZTRZEwu7bmj1ugIvTmem9x76Y4P/sr92v1aNZ3mJBBaMIczk98QrpkqNP+zlWhZHE4MyURFk+6ylfY/5XUm9zuBNhVKFq3SHPmER1YJ/ekUZdj0e6DPZzGecuhUZXUOEAZ9Ds9TFo0odf96Dn/bm3IHrEK9mYvdNG6OLnl8Gbhk6VyLpuhNVNHbxKI3wtmnpIit/k8rJx6Q0AVqRgAAAABJRU5ErkJggg==",className:Le}),(0,xe.jsx)(_.Link,{to:"/shixuns/".concat(null==e?void 0:e.shixun_identifier,"/challenges"),target:"_blank",children:(0,xe.jsx)(y.Z,{title:null==e||null===(t=e.shixun)||void 0===t?void 0:t.name,placement:"bottom",children:(0,xe.jsx)("div",{className:De,children:null==e||null===(i=e.shixun)||void 0===i?void 0:i.name})})})]}),(0,xe.jsx)("div",{className:Be,onClick:function(){bn(e,"open")},children:!(null!=e&&e.show_info)&&(0,xe.jsxs)(xe.Fragment,{children:["展开更多",(0,xe.jsx)("i",{className:"iconfont icon-xiajiantou",style:{fontSize:"8px"}})]})}),"progressing"!=(null==q?void 0:q.competition_status)&&"apply"!=(null==q?void 0:q.competition_status)&&"ended"!=(null==q?void 0:q.competition_status)&&(0,xe.jsx)("div",{className:Ve,onClick:function(){var n,t;n=null==e?void 0:e.id,x.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"删除提示",icon:null,content:"删除该赛题后,数据不可恢复,请确认是否删除?",onOk:(t=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,ue.pS)({id:null==g?void 0:g.competitionId,data_id:n}).then((function(e){0==(null==e?void 0:e.status)?(v.ZP.success("删除成功"),jn(!0),c({type:"competitions/getHeader",payload:{identifier:null==g?void 0:g.competitionId}})):v.ZP.error(null==e?void 0:e.message)}));case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})})},children:"删除该赛题"})]}),(null==e?void 0:e.show_info)&&(0,xe.jsxs)("div",{className:ze,children:[(0,xe.jsxs)(f.Z,{form:k,labelCol:{flex:"70px"},children:[(0,xe.jsxs)(f.Z.Item,{className:Me,label:"题目总分",colon:!1,children:[(0,xe.jsx)(on.Z,{min:0,value:null==e?void 0:e.total_score,disabled:"progressing"==(null==q?void 0:q.competition_status)||"apply"===(null==q?void 0:q.competition_status)||"ended"==(null==q?void 0:q.competition_status),className:Oe,onChange:function(n){e.total_score=n,K(Object.assign({},J)),yn(e)},onBlur:function(){wn()}})," 分"]}),(0,xe.jsx)(f.Z.Item,{className:Ye,label:" ",colon:!1,children:(0,xe.jsx)(f.Z.Item,{className:Ye,label:"关卡分值",colon:!1,children:(0,xe.jsxs)(b.ZP.Group,{disabled:"progressing"==(null==q?void 0:q.competition_status)||"apply"===(null==q?void 0:q.competition_status)||"ended"==(null==q?void 0:q.competition_status),value:null==e?void 0:e.score_setting,onChange:function(n){e.score_setting=n.target.value,1!==n.target.value&&(e.difficulty_level_sort="asc"),K(Object.assign({},J)),yn(e)},onBlur:function(){wn()},children:[(0,xe.jsx)(b.ZP,{value:0,children:"均分比例"}),(0,xe.jsx)(b.ZP,{value:1,children:"难易度"}),(0,xe.jsx)(b.ZP,{value:2,children:"自定义分值"})]})})}),null==e||null===(s=e.challenge_settings)||void 0===s?void 0:s.map((function(n,t){return(0,xe.jsx)(f.Z.Item,{className:Ye,label:" ",colon:!1,children:(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsx)("i",{className:"iconfont icon-shixunti",style:{color:"#165DFF",width:"14px",height:"14px",margin:"6px 15px 7px 0"}}),(0,xe.jsxs)(f.Z.Item,{className:Ye,label:(0,xe.jsx)(y.Z,{title:null==n?void 0:n.subject,placement:"left",children:(0,xe.jsx)("div",{className:He,children:null==n?void 0:n.subject})}),colon:!1,children:[(0,xe.jsx)(on.Z,{min:0,step:.1,value:null==n?void 0:n.score,disabled:z||2!==(null==e?void 0:e.score_setting),style:{width:"96px"},onChange:function(n){e.challenge_settings[t].score=n,K(l()({},J))},onBlur:function(){wn()}}),(0,xe.jsx)("span",{className:"ml10",children:"分"})]}),(0,xe.jsx)("div",{className:"简单"==(null==n?void 0:n.difficulty)?qe:"中等"==(null==n?void 0:n.difficulty)?Qe:Ge,children:null==n?void 0:n.difficulty})]})},t)}))]}),(0,xe.jsxs)("div",{className:Ue,onClick:function(){bn(e,"close")},children:["收起更多",(0,xe.jsx)("i",{className:"iconfont icon-shangjiantou",style:{fontSize:"8px"}})]})]})]},n)})),0==(null==E?void 0:E.length)&&(0,xe.jsx)(un.Z,{customText:"您还没有添加赛题,点击添加赛题"}),(0,xe.jsx)(Fn,{competitionId:null==g?void 0:g.competitionId,queryQuetions:jn})]}),2===q.mode&&(0,xe.jsxs)("div",{style:{paddingLeft:78,paddingRight:30},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("label",{style:{marginRight:10,width:50,textAlign:"end"},children:"课堂"}),(0,xe.jsx)(h.default,{popupClassName:tn,showSearch:!0,filterOption:function(e,n){return-1!==n.key.toUpperCase().indexOf(e.toUpperCase())},disabled:"progressing"===q.competition_status||"apply"===(null==q?void 0:q.competition_status)||"ended"===q.competition_status,className:$e,onChange:function(){var e=r()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return null==g||g.loadingFunction(!0),e.next=3,(0,Ze.ZP)("/api/competitions/".concat($,"/course_select.json"),{method:"post",body:{course_id:n}});case 3:t=e.sent,null==g||g.loadingFunction(!1),0===(null==t?void 0:t.status)&&c({type:"competitions/getHeader",payload:{identifier:$}});case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),size:"large",style:{flex:1},value:[te.course_id||te.default_course_id],placeholder:"请选择需要计算成绩的课堂",children:null==ce?void 0:ce.map((function(e){return(0,xe.jsx)(h.default.Option,{value:null==e?void 0:e.id,children:(0,xe.jsxs)(oe.Z,{align:"middle",style:{padding:"0px 12px"},children:[(0,xe.jsxs)(oe.Z,{align:"middle",style:{flex:1},children:[(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)("div",{className:"mr20 font12",style:{lineHeight:"12px",padding:"4px 10px",borderRadius:13,color:e.is_end?"#E53333":"#3061D0",border:"1px solid ".concat(e.is_end?"#FFC4C4":"#C4D2F1")},children:e.is_end?"已结束":"进行中"})}),(0,xe.jsx)(ae.Z,{style:{flex:1},children:(0,xe.jsx)(y.Z,{placement:"topLeft",title:null==e?void 0:e.name,overlayStyle:{maxWidth:430,zIndex:1e4},children:(0,xe.jsx)(ae.Z,{style:{textOverflow:"ellipsis",overflow:"hidden",maxWidth:430},children:null==e?void 0:e.name})})})]}),(0,xe.jsx)(ae.Z,{style:{color:"#9096A3"},children:null==e?void 0:e.created_at})]})},"".concat(null==e?void 0:e.name).concat(null==e?void 0:e.id))}))}),(0,xe.jsx)("div",{className:Se,style:{position:"relative",justifyContent:"center",top:0,right:0,marginLeft:20,height:40,borderRadius:2,alignItems:"center"},onClick:function(){window.open(q.first_category_url)},children:"进入该课堂"})]}),q.course_is_end&&(0,xe.jsx)("div",{style:{color:"red",marginLeft:60,marginTop:10},children:"选择已结束的课堂,则无法进行答题的任何操作"}),null==te||null===(t=te.competition_course_games)||void 0===t?void 0:t.map((function(e,n){var t;return(0,xe.jsxs)("div",{style:{marginBottom:20},children:[(0,xe.jsxs)("div",{style:{marginTop:20,display:"flex",alignItems:"center"},children:[(0,xe.jsxs)("label",{style:{marginRight:10,width:50,textAlign:"end"},children:["赛道",n+1]}),(0,xe.jsx)(j.Z,{className:en,value:e.name,onChange:function(n){e.name=n.target.value,ie(l()({},te))},onBlur:function(){var n=r()(o()().mark((function n(t){return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.target.value){n.next=2;break}return n.abrupt("return");case 2:return n.next=4,(0,Ze.ZP)("/api/competitions/".concat($,"/create_course_game.json"),{method:"post",body:{course_id:null==te?void 0:te.course_id,competition_course_game_id:e.competition_course_game_id,name:t.target.value}});case 4:0===n.sent.status&&c({type:"competitions/getHeader",payload:{identifier:$}});case 6:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),placeholder:"请输入赛道名称",style:{flex:1},maxLength:30,size:"large"}),(0,xe.jsx)("i",{onClick:r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null==te||null===(n=te.competition_course_games)||void 0===n?void 0:n.filter((function(e){return e.homeworks.length<=0})).length)>0)){e.next=3;break}return v.ZP.info("请先完成上一个赛道的作业/考试的选择,只有上一个赛道中添加了作业/试卷才能新增赛道"),e.abrupt("return");case 3:return e.next=5,(0,Ze.ZP)("/api/competitions/".concat($,"/create_course_game.json"),{method:"post",body:{course_id:null==te?void 0:te.course_id}});case 5:0===e.sent.status&&c({type:"competitions/getHeader",payload:{identifier:$}});case 7:case"end":return e.stop()}}),e)}))),style:{color:"#145DFF",marginLeft:15,cursor:"pointer"},className:"iconfont icon-tianjia2"}),0!==n&&(0,xe.jsx)("i",{style:{marginLeft:10,cursor:"pointer"},onClick:function(){var n;x.Z.confirm({icon:!1,title:"提示",content:"请确认是否删除该赛道,删除后,不可恢复。",onOk:(n=r()(o()().mark((function n(){return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Ze.ZP)("/api/competitions/".concat($,"/delete_course_game.json"),{method:"delete",body:{competition_course_game_id:e.competition_course_game_id}});case 2:0===n.sent.status&&c({type:"competitions/getHeader",payload:{identifier:$}});case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})},className:"".concat(Xe," iconfont icon-weishezhi")})]}),(0,xe.jsxs)("div",{style:{marginTop:20,marginLeft:60},children:[(0,xe.jsx)("span",{children:"计入成绩的作业/试卷"}),(0,xe.jsx)(Z.ZP,{loading:Ne,onClick:function(){!function(e){Nn.apply(this,arguments)}(e.competition_course_game_id)},style:{marginLeft:10,marginRight:20,background:"#3061D0",display:"inline-flex",height:30,alignItems:"center",justifyContent:"center",width:119,color:"#fff",borderRadius:2,cursor:"pointer",border:"none"},children:"选择作业/试卷"}),(0,xe.jsx)("span",{style:{color:"#9096A3"},children:"为了满足竞赛的正常计分排行,请关联作业/试卷"})]}),e.homeworks.length>0?(0,xe.jsx)("div",{style:{marginLeft:199,marginTop:10,padding:"30px 20px",background:"#F6F7F9"},children:null==e||null===(t=e.homeworks)||void 0===t?void 0:t.map((function(e,n){var t,i;return(0,xe.jsxs)("div",{style:{display:"flex",marginTop:n>0&&20,height:20,alignItems:"center",justifyContent:"space-between"},children:[(0,xe.jsx)("div",{style:{minWidth:68,height:24,display:"flex",alignItems:"center",justifyContent:"center",fontSize:12,background:"rgba(22,93,255,0.1)",color:"#3061D0",marginRight:20},children:null===(t=dn.find((function(n){return n.type===e.homework_type})))||void 0===t?void 0:t.name}),(0,xe.jsx)(y.Z,{title:(null==e||null===(i=e.name)||void 0===i?void 0:i.length)>6&&(null==e?void 0:e.name),placement:"topLeft",children:(0,xe.jsx)("span",{onClick:function(){window.open("/classrooms/".concat(null==te?void 0:te.course_id,"/").concat(dn.find((function(n){return n.type===e.homework_type})).url,"/").concat(e.homework_id||e.exercise_id,"/detail"))},style:{width:"90%",color:"#3061D0",cursor:"pointer"},className:Ke,children:null==e?void 0:e.name})}),(0,xe.jsx)("i",{style:{marginLeft:10,cursor:"pointer"},onClick:function(){var n;x.Z.confirm({icon:!1,title:"提示",content:"请确认是否删除该作业,删除后,不可恢复。",onOk:(n=r()(o()().mark((function n(){return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Ze.ZP)("/api/competitions/".concat($,"/delete_course_homework.json"),{method:"delete",body:{competition_course_homework_id:e.competition_course_homework_id}});case 2:0===n.sent.status&&c({type:"competitions/getHeader",payload:{identifier:$}});case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})},className:"".concat(Xe," iconfont icon-weishezhi")})]})}))}):(0,xe.jsx)(un.Z,{})]})})),(0,xe.jsx)(x.Z,{open:he,onCancel:function(){ve(""),an(!1)},width:850,title:"选择作业",className:nn,okButtonProps:{loading:Ne},onOk:r()(o()().mark((function e(){var n,t,i,l,s,a,r;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((null==je||null===(n=je.filter((function(e){return e.checked})))||void 0===n?void 0:n.length)<=0)){e.next=3;break}return v.ZP.info("请选择作业或试卷"),e.abrupt("return");case 3:return an(!0),e.next=6,(0,Ze.ZP)("/api/competitions/".concat($,"/homework_select.json"),{method:"post",body:{course_id:te.course_id,competition_course_game_id:he,shixun_homework_ids:null==je||null===(t=je.filter((function(e){return e.checked&&"practice"===e.homework_type})))||void 0===t?void 0:t.map((function(e){return e.id})),common_homework_ids:null==je||null===(i=je.filter((function(e){return e.checked&&"normal"===e.homework_type})))||void 0===i?void 0:i.map((function(e){return e.id})),group_homework_ids:null==je||null===(l=je.filter((function(e){return e.checked&&"group"===e.homework_type})))||void 0===l?void 0:l.map((function(e){return e.id})),program_homework_ids:null==je||null===(s=je.filter((function(e){return e.checked&&"hack"===e.homework_type})))||void 0===s?void 0:s.map((function(e){return e.id})),exercise_ids:null==je||null===(a=je.filter((function(e){return e.checked&&"exercise"===e.homework_type})))||void 0===a?void 0:a.map((function(e){return e.id}))}});case 6:r=e.sent,an(!1),ve(""),0===r.status&&c({type:"competitions/getHeader",payload:{identifier:$}});case 10:case"end":return e.stop()}}),e)}))),children:(0,xe.jsxs)("div",{style:{border:"1px solid #F6F7F9",display:"flex",maxHeight:480},children:[(0,xe.jsxs)("div",{style:{width:350,borderRight:"1px solid #F6F7F9",overflowY:"auto",overflowX:"hidden",padding:14},children:[(0,xe.jsx)(N.t7,{style:{width:312,marginRight:15},dataSource:[],value:{id:"",value:hn.input},onChange:function(e,n){hn.input=e,fn(l()({},hn)),null==dn||dn.map((function(e){e.open=!0})),pn(L()(dn))},placeholder:"请输入搜索内容"}),null==dn?void 0:dn.map((function(e){var n,t,i,l,s,o,a,r,c;return(0,xe.jsxs)("div",{children:[(0,xe.jsxs)("div",{style:{marginTop:16,height:22,alignItems:"center",display:"flex",justifyContent:"space-between"},children:[(0,xe.jsxs)("div",{style:{cursor:"pointer",color:"#232B40"},onClick:function(){e.open=!e.open,pn(L()(dn))},children:[(0,xe.jsx)("i",{style:{marginRight:10,color:"#999999"},className:"iconfont ".concat(e.open?"icon-changyongtubiao-xianxingdaochu-zhuanqu-":"icon-a-bianzu11")}),e.name,(0,xe.jsx)("span",{style:{marginLeft:6,color:"#ADB2B8"},children:null==je||null===(n=je.filter((function(n){return n.homework_type===e.type})))||void 0===n?void 0:n.length})]}),(0,xe.jsx)(se.Z,{indeterminate:(null==je||null===(t=je.filter((function(n){return n.homework_type===e.type})))||void 0===t?void 0:t.length)>(null==je||null===(i=je.filter((function(n){return n.homework_type===e.type&&n.checked})))||void 0===i?void 0:i.length)&&0!==(null==je||null===(l=je.filter((function(n){return n.homework_type===e.type})))||void 0===l?void 0:l.length)&&(null==je||null===(s=je.filter((function(n){return n.homework_type===e.type&&n.checked})))||void 0===s?void 0:s.length)>0,checked:(null==je||null===(o=je.filter((function(n){return n.homework_type===e.type})))||void 0===o?void 0:o.length)===(null==je||null===(a=je.filter((function(n){return n.homework_type===e.type&&n.checked})))||void 0===a?void 0:a.length)&&0!==(null==je||null===(r=je.filter((function(n){return n.homework_type===e.type})))||void 0===r?void 0:r.length),onChange:function(n){n.target.checked?je.map((function(n){n.homework_type===e.type&&(n.checked=!0)})):je.map((function(n){n.homework_type===e.type&&(n.checked=!1)})),be(L()(je))}})]}),null==je||null===(c=je.filter((function(n){return n.homework_type===e.type&&e.open&&n.name.includes(decodeURIComponent(hn.input))})))||void 0===c?void 0:c.map((function(e){return(0,xe.jsxs)("div",{style:{display:"flex",marginTop:12,height:20,alignItems:"center",justifyContent:"space-between"},children:[Rn(e.status||e.exercise_tips[0]),(0,xe.jsx)(y.Z,{title:null==e?void 0:e.name,children:(0,xe.jsx)("span",{style:{width:"70%"},className:Ke,children:null==e?void 0:e.name})}),(0,xe.jsx)(se.Z,{onChange:function(n){e.checked=n.target.checked,be(L()(je))},checked:e.checked})]})}))]})}))]}),(0,xe.jsxs)("div",{style:{width:450,padding:20,overflowY:"auto",overflowX:"hidden"},children:[(0,xe.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,xe.jsxs)("span",{children:[(0,xe.jsx)("span",{style:{color:"#6B758B"},children:"已选"}),(0,xe.jsx)("span",{style:{color:"#3061D0",marginLeft:3},children:null==je?void 0:je.filter((function(e){return e.checked})).length})]}),(0,xe.jsx)("span",{onClick:function(){je.map((function(e){e.checked=!1})),be(L()(je))},style:{color:"#3061D0",cursor:"pointer"},children:"全部清除"})]}),null==je||null===(i=je.filter((function(e){return e.checked})))||void 0===i?void 0:i.map((function(e){return(0,xe.jsxs)("div",{style:{display:"flex",marginTop:12,height:20,alignItems:"center",justifyContent:"space-between"},children:[Rn(e.status||e.exercise_tips[0]),(0,xe.jsx)(y.Z,{title:null==e?void 0:e.name,children:(0,xe.jsx)("span",{style:{width:"70%"},className:Ke,children:null==e?void 0:e.name})}),(0,xe.jsx)("i",{style:{marginLeft:10,cursor:"pointer"},onClick:function(){e.checked=!1,be(L()(je))},className:"".concat(Xe," iconfont icon-weishezhi")})]})}))]})]})})]}),3===q.mode&&(0,xe.jsxs)("div",{children:[(0,xe.jsx)("div",{className:Ae,style:{display:"flex",alignItems:"center"},children:(0,xe.jsxs)("div",{style:{flex:1},children:["评测设置",(0,xe.jsxs)("span",{style:{marginLeft:20,color:"#9096A3",fontSize:"12px",fontWeight:"normal"},children:["答题起止时间:",(0,xe.jsxs)("span",{style:{margin:"0 5px",color:"#165DFF",fontSize:"12px",fontWeight:"normal"},children:[null==q?void 0:q.start_time,"~",null==q?void 0:q.end_time]}),((0,fe.eB)()||(null==q||null===(s=q.permission)||void 0===s?void 0:s.editable))&&(0,xe.jsxs)("a",{style:{marginLeft:10,color:"#165DFF",display:"inline-flex"},onClick:function(){c({type:"competitions/setActionTabs",payload:{key:"7"}})},children:[(0,xe.jsx)("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF",marginRight:3}})," 编辑"]})]})]})}),(0,xe.jsxs)(f.Z,{form:A,layout:"vertical",scrollToFirstError:!0,className:ln,onValuesChange:function(){},children:[(0,xe.jsx)(f.Z.Item,{className:Me,label:"评测服务器配置",colon:!1,name:"evaluation_setting",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,xe.jsx)(Tn,{placeholder:"请填写评测服务器配置,格式为:服务器ip 端口 账号 密码,多台服务器用多行表示,如:127.0.0.1 22 root Qz_123123 127.0.0.2 22 root Qz_123123",rows:6,autoSize:{minRows:6,maxRows:999},disabled:!(0,fe.Ny)()&&(null==q?void 0:q.is_manager)})}),(0,xe.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,xe.jsx)(f.Z.Item,{style:{width:400},className:Me,label:"每日最多提交次数(未填则不限制)",colon:!1,name:"commit_num",rules:[{pattern:new RegExp(/^[1-9]\d*$/,"g"),message:"必须是正整数"}],children:(0,xe.jsx)(on.Z,{disabled:!(0,fe.Ny)()&&(null==q?void 0:q.is_manager),style:{width:400},autoComplete:"off",controls:!1,precision:0,min:1,className:Oe,placeholder:"请输入提交次数",suffix:(0,xe.jsx)("span",{style:{color:"#c5c5c5"},children:"次"})})}),(0,xe.jsx)(f.Z.Item,{style:{width:400},className:Me,label:"评测时长(S)",colon:!1,name:"evaluation_time",rules:[{required:!0,pattern:new RegExp(/^[1-9]\d*$/,"g"),message:"必须是正整数"}],children:(0,xe.jsx)(on.Z,{disabled:!(0,fe.Ny)()&&(null==q?void 0:q.is_manager),style:{width:400},autoComplete:"off",controls:!1,precision:0,min:1,className:Oe,placeholder:"请输入评测时长",suffix:(0,xe.jsx)("span",{style:{color:"#c5c5c5"},children:"S"})})})]}),(0,xe.jsx)(f.Z.Item,{className:Me,label:"运行脚本",colon:!1,name:"evaluation_script",rules:[{required:!0,message:"必填项:不能为空"}],children:(0,xe.jsx)(Tn,{disabled:!(0,fe.Ny)()&&(null==q?void 0:q.is_manager),placeholder:"请输入运行脚本",rows:6,autoSize:{minRows:6,maxRows:999}})})]}),(0,fe.Ny)()&&(0,xe.jsx)("div",{className:We,children:(0,xe.jsx)(_e.Z,{className:Je,onClick:r()(o()().mark((function e(){var n,t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A.validateFields();case 2:if(n=A.getFieldsValue(),!F){e.next=10;break}return e.next=6,(0,Ze.ZP)("/api/competitions/".concat($,"/create_work_settings.json"),{method:"post",body:l()({},n)});case 6:0===(null==(t=e.sent)?void 0:t.status)&&v.ZP.info("更改成功"),e.next=14;break;case 10:return e.next=12,(0,Ze.ZP)("/api/competitions/".concat($,"/update_work_settings.json"),{method:"put",body:l()({},n)});case 12:0===(null==(i=e.sent)?void 0:i.status)&&v.ZP.info("更改成功");case 14:case"end":return e.stop()}}),e)}))),children:"保存更改"})})]})]})})),Ln="all___ZbAJW",Dn="title___QPivo",Bn="add_people___jqyIi",Vn="people_icon___Gf35v",zn="content_user___mESiF",Mn="content_left___JUfAC",On="user_img_box___rq6y5",Yn="user_img___tN5UW",Hn="user_rule_create___i4hOF",qn="user_info___ncafT",Qn="user_name___hqLNP",Gn="user_school___m7TBE",Un="delete_text___j_0I0",Wn="select_modal___j0vsx",Jn=t(26724),Kn=t.n(Jn),Xn=t(26830),$n=["classroomList","loading","dispatch"],et=(0,_.connect)((function(e){return{classroomList:e.classroomList,loading:e.loading}}))((function(e){var n,t,i=e.classroomList,l=(e.loading,e.dispatch),s=p()(e,$n),a=((0,_.useParams)(),i.actionTabs),c=(0,m.useState)([]),u=d()(c,2),g=u[0],b=u[1],k=(0,m.useState)(!0),N=d()(k,2),I=N[0],A=N[1],S=(0,m.useState)(!1),C=d()(S,2),F=C[0],P=C[1],T=f.Z.useForm(),R=d()(T,1)[0],E=(0,m.useState)([]),D=d()(E,2),B=D[0],V=D[1],z=(0,m.useState)(0),M=d()(z,2),O=M[0],Y=M[1],H=(0,m.useState)([]),q=d()(H,2),Q=q[0],G=q[1],U=(0,m.useState)(!0),W=d()(U,2),J=W[0],K=W[1];(0,m.useRef)();(0,m.useEffect)((function(){"添加管理员"===i.actionTabs.key&&(K(!0),X())}),[i.actionTabs.key]);var X=function(){var e=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l({type:"classroomList/getSchoolList",payload:{}});case 2:n=e.sent,b(n.map((function(e){return{value:e}})));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$=function(){var e=r()(o()().mark((function e(){var n,t,l,s,a=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=a.length>0&&void 0!==a[0]&&a[0])&&!I||F){e.next=11;break}return l=R.getFieldValue(),P(!0),Y(n?1:O+1),e.next=7,(0,ue.pA)({id:i.actionTabs.id,page:n?1:O+1,type:(null==l?void 0:l.search_type)||"",school:(null==l?void 0:l.school_name)||"",keyword:(null==l?void 0:l.keyword)||""});case 7:s=e.sent,V(n?L()(null==s?void 0:s.data):[].concat(L()(B),L()(null==s?void 0:s.data))),P(!1),(null===(t=s.users)||void 0===t?void 0:t.length)<10&&A(!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ee=function(){var e=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:""==Q?v.ZP.error("请选择人数"):(console.log(Q),(0,ue.q0)({id:null==s?void 0:s.competitionId,ids:Q}).then((function(e){0==e.status?(v.ZP.success("添加成功"),l({type:"classroomList/setActionTabs",payload:{}}),s.queryData()):v.ZP.error(null==e?void 0:e.message)})));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ne=[{title:"",dataIndex:"id",width:40,ellipsis:!0,render:function(e,n){return(0,xe.jsx)(se.Z,{value:n.id,checked:Q.includes(String(n.id)),disabled:null==n?void 0:n.checked})}},{title:"姓名",width:100,ellipsis:!0,dataIndex:"name",render:function(e,n){return(0,xe.jsx)(y.Z,{placement:"bottom",title:e,children:(0,xe.jsx)(_.Link,{className:"bold c-black",to:"/users/".concat(n.login),target:"_blank",children:e||"--"})})}},{title:"职业",dataIndex:"identity",width:130,ellipsis:!0,render:function(e){return(0,xe.jsx)(y.Z,{placement:"bottom",title:e,children:(0,xe.jsx)("span",{children:e||"--"})})}},{title:"学号/工号",width:100,dataIndex:"student_id",ellipsis:!0,render:function(e){return(0,xe.jsx)(y.Z,{placement:"bottom",title:e,children:(0,xe.jsx)("span",{children:e||"--"})})}},{title:"手机",width:100,dataIndex:"phone",ellipsis:!0,render:function(e){return(0,xe.jsx)(y.Z,{placement:"bottom",title:e,children:(0,xe.jsx)("span",{children:e||"--"})})}},{title:"邮箱",dataIndex:"mail",width:100,ellipsis:!0,render:function(e){return(0,xe.jsx)(y.Z,{placement:"bottom",title:e,children:(0,xe.jsx)("span",{children:e||"--"})})}},{title:"学校/单位",width:150,dataIndex:"school",ellipsis:!0,render:function(e){return(0,xe.jsx)(y.Z,{placement:"bottom",title:e,children:(0,xe.jsx)("span",{children:e||"--"})})}},{title:"实名认证",dataIndex:"school_name",width:100,render:function(e){return e?"是":"否"}},{title:"状态",dataIndex:"checked",width:80,render:function(e){if(e)return(0,xe.jsx)("span",{className:"c-green",children:"已添加"})}}];return(0,xe.jsx)(x.Z,{className:"modal_styles",centered:!0,title:"添加管理员",open:"添加管理员"===i.actionTabs.key,okText:"确定",cancelText:"取消",width:1100,zIndex:1e3,bodyStyle:{minHeight:200},onOk:r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ee();case 1:case"end":return e.stop()}}),e)}))),onCancel:function(){G([]),l({type:"classroomList/setActionTabs",payload:{}})},children:(0,xe.jsxs)("div",{style:{padding:"0 14px"},children:[(0,xe.jsxs)(f.Z,{layout:"inline",form:R,initialValues:{school_name:"",keyword:"",search_type:"name"},children:[(0,xe.jsx)(f.Z.Item,{name:"search_type",label:"搜索类型",children:(0,xe.jsxs)(h.default,{style:{width:120},className:Wn,children:[(0,xe.jsx)(h.default.Option,{value:"name",children:"姓名"}),(0,xe.jsx)(h.default.Option,{value:"phone",children:"手机号"}),(0,xe.jsx)(h.default.Option,{value:"mail",children:"邮箱"})]})}),(0,xe.jsx)(f.Z.Item,{name:"keyword",label:"搜索内容:",children:(0,xe.jsx)(j.Z,{allowClear:!0,style:{width:305},size:"middle",defaultValue:(null===(n=a.selectArrs)||void 0===n?void 0:n.category_name)||(null===(t=a.selectArrs)||void 0===t?void 0:t.name)})}),(0,xe.jsx)(f.Z.Item,{name:"school_name",label:"单位:",children:(0,xe.jsx)(w.Z,{options:g,style:{width:306},size:"middle",placeholder:"请输入单位名称",filterOption:function(e,n){return-1!==n.value.toUpperCase().indexOf(e.toUpperCase())}})}),(0,xe.jsx)(f.Z.Item,{style:{marginRight:0},children:(0,xe.jsx)(Z.ZP,{htmlType:"submit",type:"primary",size:"middle",onClick:function(){return function(){var e;if(""===(null===(e=R.getFieldValue())||void 0===e?void 0:e.keyword))return V([]),void v.ZP.error("请输入搜索内容");K(!1),A(!0),P(!1),G([]),setTimeout((function(){$(!0)}),200)}()},children:"搜索"})})]}),J&&(0,xe.jsxs)("div",{className:"tc font16 c-light-black mt40 pb30",children:[(0,xe.jsx)("img",{src:Xn.RL,width:"100",alt:""}),(0,xe.jsx)("br",{}),(0,xe.jsx)("p",{className:"mt20",children:"请搜索要添加的管理员"})]}),!J&&""==B&&!F&&(0,xe.jsxs)("div",{className:"tc font16 c-light-black mt40 pb30",children:[(0,xe.jsx)("img",{src:Xn.z3,width:"100",alt:""}),(0,xe.jsx)("br",{}),(0,xe.jsx)("p",{className:"mt20",children:"暂时还没有相关数据哦!"})]}),(!J&&""!=B||F)&&(0,xe.jsxs)("section",{children:[(0,xe.jsx)("div",{className:"flexd-table-header mt20",children:(0,xe.jsx)(re.Z,{pagination:!1,dataSource:[],columns:ne})}),(0,xe.jsx)("div",{style:{maxHeight:260,overflow:"auto"},children:(0,xe.jsx)(Kn(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(e){$()},hasMore:I,useWindow:!1,children:(0,xe.jsx)(re.Z,{loading:F,showHeader:!1,pagination:!1,dataSource:B,columns:ne,onRow:function(e){return{onClick:function(e){e.currentTarget.querySelector("input").disabled||function(e){e=String(e);var n=Q.indexOf(e);n<0?Q.push(e):Q.splice(n,1),G(L()(Q))}(e.currentTarget.querySelector("input").value)}}}})})})]})]})})})),nt=["globalSetting","dispatch","user"],tt=(0,_.connect)((function(e){return{globalSetting:e.globalSetting,user:e.user}}))((function(e){e.globalSetting;var n,t=e.dispatch,i=e.user,l=p()(e,nt),s=(0,m.useState)([]),a=d()(s,2),c=a[0],u=a[1],_=(0,m.useState)(""),h=d()(_,2),f=h[0],g=h[1];(0,m.useEffect)((function(){y()}),[]);var y=function(){(0,ue.sL)(null==l?void 0:l.competitionId).then((function(e){if(0==(null==e?void 0:e.status)){var n;g(null==e||null===(n=e.creator)||void 0===n?void 0:n.id);var t=[];for(var i in t.push(null==e?void 0:e.creator),null==e?void 0:e.data)t.push(null==e?void 0:e.data[i]);u(t),null==l||l.loadingFunction(!1)}else v.ZP.error(null==e?void 0:e.message)}))};return(0,xe.jsxs)("div",{className:Ln,children:[(0,xe.jsx)("div",{className:Dn,children:"管理员设置"}),(f==(null==i||null===(n=i.userInfo)||void 0===n?void 0:n.user_id)||(0,fe.Ny)())&&(0,xe.jsxs)("div",{className:Bn,onClick:function(){t({type:"classroomList/setActionTabs",payload:{key:"添加管理员",id:null==l?void 0:l.competitionId}})},children:[(0,xe.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABvZJREFUWEfNmGlsVFUUx8+5b5a+DhqpKCg0IagJikRFbOlMC8USoRZZLU4LrWCAiMsHg4krERFQE+WLCwaMlEU6UBZRquyUtjNFLIoBFOMaFYTIomBnOsu7x9w386bvvZlOZ9rUOF/e5C7n/t7/nnvuOQ/hf/7D/zkf9BiQTk4pAQndwGk0ANwYfWE6DQiNgMyDQ7cf6IkI3Qakb92DgQdriGAMAQECgnhG+QDUVyfxwENosc/GWz2/dAe0W4B0Yto9nHAXEc8RiyIiEJH6VPkEGEaf4scYXEDCCTh8a2umkBkD0nflA5UgHCXi/aMymSRLSoAC+Jxks4zAoZ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0uYzhHLqirSQno9z24GYiXd9QVia/MEIN2ZH3RWRdo900/SgQj9EbjdTLSl9nObXeTr1xuJ+USAdrVcSaf0XySMVaX5dwSPZixn8EHRSLQ3jL9PBCp9W6nPzU8WMbJzi37A83TlgPSc/ot7rCOr8rObc8HfA+WACn7tLo+oaaK0+DFrIKt/fQJhQEw6J16OyfleOIpM2XIIlsGWCa7drwY9k0dE+FKgz6D1tazMKnY6tx+KOCdvBSIXtDqaHNJoI+LDKXhdtf2E0kVDHknP8aJv5NSvaiTCT/z2V0fu6h1vjUUPHuBgK7SK4SAV2z2AdeK5DToneQlIKfoZ0zKBwaKfg2u8C1AfLCwypA9bnPtiFeOBgVD3om14uboKqUX/QwhbO2T01eEkWBz2UcEMDn+rQPV6mOHvbB+ighDoSsXhP9ZRT8C7ARkBMCFFZUTAcZyoD4CBhE9NtfOiqQKBr33/w5EA5MHKpPnCjUkNsHqrN8d8pYtIDLWy4jsMZurfmXYVzaec566BtErgnjaXvjpoARAOlw6KBTmahKQ6CPGj0FaP2PwutW1+1lqKhsSxsiP+pvHBpabsKj+p2DT+NcA4JkuwpbhjFktLBdHffZ7TN3o1EjLhGk8omzt0v8MQuIRa9GefNEUar7vewC6OdqNP9gK99wi/oWb7vuckPLiuyIak14lHYYZStMthbu2GQDDzSXLiOD5ZIAJXxJiKyCAIlmtOTjqs8uR5pK3OcHjYj5DeMdSuP8JOlx6dSQcvkhAUkYvjmy5tXDvC0YFG8fuIoTxSQ2leGOUpIkW1776SNO9DxDQx1GjOMlSdOCTiHdcGXFlZ2cfk6JSJiqKCLstRQcnGAGbis8CUP/YFulmdX41qaeO4ZuSq+FpOlncR7lI6j0q5eC1OKzhn3BT8RtAtDBdn459vRNWz1mKGgYYADPZgv9ybJcp/38Jk2ytfwErhCtWL5ZsugAAAABJRU5ErkJggg==",className:Vn}),"添加管理员"]}),(0,xe.jsx)("div",{className:zn,children:c.map((function(e,n){var t,s,a;return(0,xe.jsxs)("div",{className:Mn,children:[(0,xe.jsx)("div",{className:On,children:(0,xe.jsxs)("a",{href:"/users/".concat(e.login,"/classrooms"),target:"_blank",children:[(0,xe.jsx)("img",{src:me.Z.IMG_SERVER+"/images/"+(null==e?void 0:e.image_url),className:Yn}),f==(null==e?void 0:e.id)&&(0,xe.jsx)("div",{className:Hn,children:"创建者"})]})}),(0,xe.jsxs)("div",{className:qn,children:[(0,xe.jsx)("div",{className:Qn,children:null==e?void 0:e.name}),(0,xe.jsx)("div",{className:Gn,children:null==e?void 0:e.school})]}),f!=(null==e?void 0:e.id)&&(f==(null==i||null===(t=i.userInfo)||void 0===t?void 0:t.user_id)||1==(null==i||null===(s=i.userInfo)||void 0===s?void 0:s.role)||2==(null==i||null===(a=i.userInfo)||void 0===a?void 0:a.role))&&(0,xe.jsx)("div",{className:Un,onClick:function(){var n,t;n=null==e?void 0:e.id,x.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"删除提示",icon:null,content:"是否确定删除该管理员?",onOk:(t=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,ue.qN)({id:null==l?void 0:l.competitionId,ids:[n]}).then((function(e){0==(null==e?void 0:e.status)?(v.ZP.success("删除成功"),y()):v.ZP.error(null==e?void 0:e.message)}));case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})})},children:"删除"})]},n)}))}),(0,xe.jsx)(et,{queryData:y,competitionId:null==l?void 0:l.competitionId})]})})),it={flex_box_center:"flex_box_center___yg5U2",flex_space_between:"flex_space_between___RNHqN",flex_box_vertical_center:"flex_box_vertical_center___ZT47P",flex_box_center_end:"flex_box_center_end___X4Xs3",flex_box_column:"flex_box_column___OzmB0",all:"all___uSCy0",content:"content___pnhPh",content_left_red:"content_left_red___SmVi6",content_left_none:"content_left_none___jTbL2",content_left_flag:"content_left_flag___mae5L",content_left_info:"content_left_info___mISvV",content_left_title:"content_left_title___lcDeu",content_left_description:"content_left_description___Ris52",content_right:"content_right___AcQrD",content_right_span:"content_right_span___WiMTr",form_item:"form_item___eHCux",form_item_item:"form_item_item___IAs6n",fuzhi:"fuzhi___rSsFz",fuzhi_text:"fuzhi_text___UV3Dz",tijiao:"tijiao___AYAeP",tijiao_text:"tijiao_text___TC6tI",quetions_info:"quetions_info___qHhFg",scoremodal:"scoremodal___LmU2Z",title:"title___M1zQX",bottom:"bottom___P728Z",yes:"yes___gRJi8",no:"no___voaWW",form_item_item_select:"form_item_item_select___g8gNL"},lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAAAXNSR0IArs4c6QAAAtxJREFUSEu9lktME1EUhv+/M51GayTGGCPGhRs1btqKGF0oAmHBaloejRbciS6NiUtjonHnxqWPlWEKCZVX3GkiPhJB5CEaiRASV2rUYAS6sK85ZqaUlFc7gOndzdz/nG/uueecOYSDdbyzMZDKpIMETotwP4hy20zwjZSvArx2K2rfyPnu8WLuWEgQMBqaTGRuQ3C4mCN7n5hyQbk+3trzeD39msATXc0HE8lkBwQnHYFWioghj6ZFhsOxL6u3VrwJdISqJCPdAtm9KdiiEcFZKmwcj/S+zPez7ISLsGcCcW8FlrMlmKLCunzoEtAKYzKRerfVk60OIWc1j7syF94loM/QBzd9Z8XCQQxNtPafyuYVADsbJRMrZudkn8AMSK+I7MvXu6g0W9lrA32G/tlx6hegkuyCF5cljm5AapZJiamJ1v4jtIs6nR5z8vUFNAmXi1fHIr33AtHgfRG0raV1q+ox+gz9JgQ3Ngu0QqiqatjqMv5o8K6YcmVdX8Qt+g39uQiqNwMk+MZDb/3b1ui8P6pfExN3CvkhMUBfe3AKkENrC2mSEhfBzlXpTg574K2zYMc6QjWmKU9FRCn84ZymzwguQGTHaoeYd8HVomrqp2Qi1SsQ35KGHKMXte9DfX8qO/UDqTRHBbKnaJTI+PpAYEaBcmb0Qs/3iieXtmfmfj4UkQiBD5rXVTPc0DsrIgwYoQGBVBWFZQULBUNKYpKadnY8HPtlqf3t+kV6tP6lZyPUJmI+cAizyn66aNJY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ading","dispatch","user"],at=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n=e.competitions,t=(e.globalSetting,e.loading),i=e.dispatch,s=e.user,a=p()(e,ot),c=f.Z.useForm(),u=d()(c,1)[0],_=(0,m.useState)(!0),g=d()(_,2),b=g[0],w=g[1],k=(0,m.useState)(!0),N=d()(k,2),I=N[0],A=N[1],S=(0,m.useState)(!0),C=d()(S,2),F=C[0],P=C[1],T=(0,m.useState)(!0),R=d()(T,2),E=R[0],L=R[1],D=(0,m.useState)(""),B=d()(D,2),V=B[0],z=B[1],M=(0,m.useState)(""),O=d()(M,2),Y=O[0],H=O[1],q=(0,m.useState)(""),Q=d()(q,2),G=Q[0],U=Q[1],W=(0,m.useState)(""),J=d()(W,2),K=J[0],X=J[1],$=n.Header,ee=(0,m.useState)(!1),ne=d()(ee,2),te=ne[0],ie=ne[1],le=(0,m.useState)([]),se=d()(le,2),oe=se[0],ae=se[1];console.log("Header:",$),(0,m.useEffect)((function(){re()}),[]);var re=function(){(0,ue.rZ)(null==a?void 0:a.competitionId).then((function(e){var n,t,i;w(null==e?void 0:e.name_finish),A(null==e?void 0:e.url_finish),P(null==e?void 0:e.time_finish),L(null==e?void 0:e.question_finish),z(null==e||null===(n=e.competition)||void 0===n?void 0:n.name),U(de()(null==e||null===(t=e.competition)||void 0===t?void 0:t.start_time).format("YYYY-MM-DD HH:mm")+" ~ "+de()(null==e||null===(i=e.competition)||void 0===i?void 0:i.end_time).format("YYYY-MM-DD HH:mm")),H("".concat(window.location.origin,"/competitions/detail/")+(null==e?void 0:e.identifier));var l="";for(var s in null==e?void 0:e.data){var o,r;if(Number(s)==Number((null==e?void 0:e.data.length)-1))l+="赛题"+(Number(s)+1)+":"+(null==e||null===(o=e.data[s])||void 0===o||null===(o=o.shixun)||void 0===o?void 0:o.name);else l+="赛题"+(Number(s)+1)+":"+(null==e||null===(r=e.data[s])||void 0===r||null===(r=r.shixun)||void 0===r?void 0:r.name)+"、"}X(l),u.setFieldValue("identifier",null==e?void 0:e.identifier),null==a||a.loadingFunction(!1)}))};return(0,xe.jsxs)("div",{className:it.all,children:[(0,xe.jsxs)("div",{className:it.content,children:[(0,xe.jsxs)("div",{className:b?it.content_left_none:it.content_left_red,children:[(0,xe.jsx)("img",{className:it.content_left_flag,src:b?lt:st}),(0,xe.jsxs)("div",{className:it.content_left_info,children:[(0,xe.jsx)("div",{className:it.content_left_title,children:"主标题设置"}),(0,xe.jsx)("div",{className:it.content_left_description,children:b?"您已设置主标题为:".concat(V):"请在设置中填写正确的竞赛主标题"})]})]}),b?(0,xe.jsx)("div",{className:it.content_right,onClick:function(){a.clickInformation("主标题")},children:"查看"}):(0,xe.jsxs)("div",{className:it.content_right,onClick:function(){a.clickInformation("主标题")},children:["去完善信息",(0,xe.jsx)("i",{className:"iconfont icon-xiaojiantou",style:{fontSize:"10px"}})]})]}),(0,xe.jsxs)("div",{className:it.content,children:[(0,xe.jsxs)("div",{className:I?it.content_left_none:it.content_left_red,children:[(0,xe.jsx)("img",{className:it.content_left_flag,src:I?lt:st}),(0,xe.jsxs)("div",{className:it.content_left_info,children:[(0,xe.jsx)("div",{className:it.content_left_title,children:"网址设置"}),(0,xe.jsxs)("div",{className:it.content_left_description,children:[I&&(0,xe.jsxs)("span",{children:["您已设置网址为:",(0,xe.jsx)("a",{href:Y,target:"_blank",children:Y})]}),!I&&(0,xe.jsx)("span",{children:"请在设置中填写正确的网址"})]})]})]}),I?(0,xe.jsx)("div",{className:it.content_right,onClick:function(){a.clickInformation("比赛地址")},children:"查看"}):(0,xe.jsxs)("div",{className:it.content_right,onClick:function(){a.clickInformation("比赛地址")},children:["去完善信息",(0,xe.jsx)("i",{className:"iconfont icon-xiaojiantou",style:{fontSize:"10px"}})]})]}),(0,xe.jsxs)("div",{className:it.content,children:[(0,xe.jsxs)("div",{className:F?it.content_left_none:it.content_left_red,children:[(0,xe.jsx)("img",{className:it.content_left_flag,src:F?lt:st}),(0,xe.jsxs)("div",{className:it.content_left_info,children:[(0,xe.jsx)("div",{className:it.content_left_title,children:"竞赛时间"}),(0,xe.jsx)("div",{className:it.content_left_description,children:F?"您已设置竞赛时间为:".concat(G):"请在设置中填写正确的竞赛时间"})]})]}),F?(0,xe.jsx)("div",{className:it.content_right,onClick:function(){a.clickInformation("竞赛时间")},children:"查看"}):(0,xe.jsxs)("div",{className:it.content_right,onClick:function(){a.clickInformation("竞赛时间")},children:["去完善信息",(0,xe.jsx)("i",{className:"iconfont icon-xiaojiantou",style:{fontSize:"10px"}})]})]}),(0,xe.jsxs)("div",{className:it.content,children:[(0,xe.jsxs)("div",{className:E?it.content_left_none:it.content_left_red,children:[(0,xe.jsx)("img",{className:it.content_left_flag,src:E?lt:st}),(0,xe.jsxs)("div",{className:it.content_left_info,children:[(0,xe.jsx)("div",{className:it.content_left_title,children:"赛题设置"}),1===$.mode&&(0,xe.jsxs)("div",{children:[E&&(0,xe.jsx)(y.Z,{placement:"bottom",title:"您已经设置的:"+K,children:(0,xe.jsxs)("div",{className:it.content_left_description,children:["您已经设置的:",K]})}),!E&&(0,xe.jsx)("div",{className:it.content_left_description,children:"请在设置中填写正确的赛题设置"})]}),2===$.mode&&(0,xe.jsxs)("div",{children:[$.course_id&&(0,xe.jsx)(y.Z,{placement:"bottom",title:"您已经成功设置:"+$.course_name+"为本次竞赛的课堂",children:(0,xe.jsxs)("div",{className:it.content_left_description,children:["您已经成功设置“",$.course_name,"”为本次竞赛的课堂"]})}),!$.course_id&&(0,xe.jsx)("div",{className:it.content_left_description,children:"请在设置中填写正确的赛题设置"})]})]})]}),E?(0,xe.jsx)("div",{className:it.content_right,onClick:a.clickQuetions,children:"查看"}):(0,xe.jsxs)("div",{className:it.content_right,onClick:a.clickQuetions,children:["去完善信息",(0,xe.jsx)("i",{className:"iconfont icon-xiaojiantou",style:{fontSize:"10px"}})]})]}),b&&I&&F&&E&&(0,xe.jsx)(xe.Fragment,{children:(0,xe.jsxs)("div",{className:it.content,children:[(0,xe.jsx)(f.Z,{form:u,style:{marginLeft:22},labelCol:{flex:"100px"},children:(0,xe.jsx)(f.Z.Item,{className:it.form_item,colon:!1,name:"identifier",children:(0,xe.jsx)(j.Z,{prefix:"".concat(window.location.origin,"/competitions/detail/"),disabled:!0,className:it.form_item_item})})}),(0,xe.jsxs)("div",{className:it.fuzhi,onClick:function(){var e=document.createElement("input");e.value="".concat(window.location.origin,"/competitions/detail/")+u.getFieldValue("identifier"),document.body.appendChild(e),e.select(),document.execCommand("Copy"),v.ZP.success("复制成功"),e.remove()},children:[(0,xe.jsx)("i",{className:"iconfont icon-fuzhi",style:{marginRight:"5px"}}),"复制"]}),(0,xe.jsx)("div",{className:it.fuzhi_text,children:"参赛人员可访问该网址参加比赛"})]})}),(0,xe.jsxs)("div",{className:it.content,children:[(0,xe.jsx)(_e.Z,{disabled:!(b&&I&&F&&E),type:"primary",className:it.tijiao,onClick:r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ie(!0),(0,pe.GY)({display_aliases:!0}).then((function(e){ae(null==e?void 0:e.schools)})).then((function(){var e,n,t;u.setFieldsValue({sponsor_schools:null===(e=s.userInfo)||void 0===e?void 0:e.user_school_id,sponsor_user_name:null===(n=s.userInfo)||void 0===n?void 0:n.real_name,sponsor_user_phone:null===(t=s.userInfo)||void 0===t?void 0:t.phone})}));case 2:case"end":return e.stop()}}),e)}))),children:"提交审核"}),(0,xe.jsx)("div",{className:"".concat(it.tijiao_text," ").concat(b&&I&&F&&E?"":"c-red"),children:b&&I&&F&&E?"准备好后,您可发起审核":"请完成竞赛指引后,再提交审核"})]}),(0,xe.jsxs)(x.Z,{title:!1,footer:!1,open:te,width:610,className:it.scoremodal,closable:!1,centered:!0,onCancel:function(){return ie(!1)},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("div",{className:it.title,children:"为了加快竞赛审核速度,请确认以下信息是否准确"}),(0,xe.jsx)("span",{onClick:function(){return ie(!1)},style:{cursor:"pointer"},className:it.close,children:(0,xe.jsx)("i",{className:"iconfont icon-guanbi",style:{color:"#979797",fontSize:"15px"}})})]}),(0,xe.jsx)("div",{className:it.content,children:(0,xe.jsxs)(f.Z,{form:u,className:it.formWrap,onFinish:function(e){(0,ue.qt)(l()(l()({},e),{},{id:null==a?void 0:a.competitionId})).then((function(e){0==(null==e?void 0:e.status)?(v.ZP.success("提交成功"),ie(!1),i({type:"competitions/getStaff",payload:{identifier:null==a?void 0:a.competitionId}}),i({type:"competitions/getHeader",payload:{identifier:null==a?void 0:a.competitionId}})):v.ZP.error(null==e?void 0:e.message)}))},labelCol:{flex:"110px"},children:[(0,xe.jsx)(f.Z.Item,{className:it.form_item,label:"主办方",colon:!1,name:"sponsor_schools",children:(0,xe.jsx)(h.default,{mode:"multiple",className:it.form_item_item_select,options:oe,fieldNames:{label:"name",value:"id"},placeholder:"请输入主办方",filterOption:function(e,n){var t;return(null!==(t=null==n?void 0:n.name)&&void 0!==t?t:"").toLowerCase().includes(e.toLowerCase())}})}),(0,xe.jsx)(f.Z.Item,{className:it.form_item,label:"主要负责人姓名",colon:!1,name:"sponsor_user_name",children:(0,xe.jsx)(j.Z,{className:it.form_item_item,placeholder:"请输入主要负责人姓名"})}),(0,xe.jsx)(f.Z.Item,{className:it.form_item,label:"主要负责人电话",colon:!1,name:"sponsor_user_phone",rules:[{pattern:new RegExp(/^((0\d{2,3}(-)?\d{7,8})|(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8})$/,"g"),message:"必须是正确的座机号或者手机号"}],children:(0,xe.jsx)(j.Z,{className:it.form_item_item,placeholder:"请输入主要负责人电话"})}),(0,xe.jsx)("div",{className:it.bottom,children:(0,xe.jsxs)(f.Z.Item,{children:[(0,xe.jsx)(Z.ZP,{size:"middle",className:it.no,onClick:function(){ie(!1)},children:"取消"}),(0,xe.jsx)(Z.ZP,{className:it.yes,size:"middle",type:"primary",htmlType:"submit",loading:t,children:"保存"})]})})]})})]})]})})),rt="ModalStyle___cW8H3",ct=["competitions","globalSetting","dispatch","user","loadingFunction","loading"],dt=["key","name"],ut=(0,_.connect)((function(e){return{competitions:e.competitions,loading:e.loading.effects}}))((function(e){var n=e.competitions,t=(e.globalSetting,e.dispatch),i=(e.user,e.loadingFunction),s=void 0===i?function(e){}:i,a=e.loading,c=(p()(e,ct),n.GuidesData),u=(0,_.useParams)().identifier,h=(0,m.useRef)(),g=f.Z.useForm(),y=d()(g,1)[0],b=f.Z.useWatch("list",y),w=function(){var e=r()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("====",n),!(n.list.length<2)){e.next=4;break}return v.ZP.warning("请至少添加2个赛程"),e.abrupt("return");case 4:return e.next=6,t({type:"competitions/postGuides",payload:l()({identifier:u},n)});case 6:0==e.sent.status&&(v.ZP.success("更新成功"),t({type:"competitions/getHeader",payload:{identifier:u}}),k());case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),k=function(){t({type:"competitions/getGuides",payload:{identifier:u}})};return(0,m.useEffect)((function(){s(!1),k()}),[]),(0,m.useEffect)((function(){var e;y.setFieldsValue(l()(l()({},(null==c?void 0:c.data)||{}),{},{list:null==c||null===(e=c.data)||void 0===e||null===(e=e.list)||void 0===e?void 0:e.map((function(e){return l()(l()({},e),{},{competition_time:null!=e&&e.competition_time?de()(null==e?void 0:e.competition_time):null})}))}))}),[c]),(0,xe.jsx)(rn.Z,{spinning:!!a["competitions/getGuides"]||!!a["competitions/postGuides"],children:(0,xe.jsx)("div",{className:"p30",children:(0,xe.jsxs)(f.Z,{form:y,colon:!1,onFinish:w,initialValues:{list:[{},{}]},children:[(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",gutter:20,children:[(0,xe.jsx)(ae.Z,{children:"赛程设置"}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{style:{marginBottom:0},name:"guides_is_hidden",valuePropName:"checked",children:(0,xe.jsx)(se.Z,{children:"隐藏"})})}),(0,xe.jsx)(ae.Z,{flex:1,children:(0,xe.jsx)(oe.Z,{wrap:!1,align:"middle",justify:"end",children:(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(N.op,{icon:(0,xe.jsx)("i",{className:"iconfont icon-xiaojiahao "}),onClick:function(){6!=(null==b?void 0:b.length)?h.current({}):v.ZP.warning("赛程最多可添加6个")},children:"新增"})})})})]}),(0,xe.jsx)("div",{className:"mt25 mb30",style:{padding:"14px 20px",background:"#F6F7F9",color:"#464F66"},children:"规则说明:在此版块管理员可以创建赛事的日程时间轴,每个赛程将在时间轴上按序号顺序依次排列。创建成功后将对平台用户公开,使用户能够轻松了解整个赛事的进度和安排。"}),(0,xe.jsx)(f.Z.List,{name:"list",children:function(e,n){var t=n.add,i=n.remove;return h.current=t,(0,xe.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:e.map((function(e,n){var t=e.key,s=e.name,o=p()(e,dt);return(0,xe.jsxs)("div",{children:[(0,xe.jsx)("div",{style:{background:"#F6F7F9",padding:"10px 20px"},children:(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,xe.jsxs)(ae.Z,{children:["赛程",(0,he.EM)(n+1)]}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)("span",{className:"c-red current",onClick:function(){x.Z.confirm({className:rt,icon:null,centered:!0,title:"提示",width:460,content:"确定要删除此赛程吗?删除后,请点击“保存更改”按钮以保存此次操作。",onOk:function(){i(s)}})},children:"删除"})})]})}),(0,xe.jsx)("div",{className:"p20",style:{border:"1px solid #F1F1F1",borderTopColor:"transparent"},children:(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",gutter:40,children:[(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,l()(l()({label:"赛程名称"},o),{},{name:[s,"name"],rules:[{required:!0,message:"请输入赛程名称"},{whitespace:!0,message:"赛程名称不能全为空格"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入赛程名称",maxLength:10,showCount:!0,style:{width:360}})}))}),(0,xe.jsx)(ae.Z,{flex:1,children:(0,xe.jsx)(f.Z.Item,l()(l()({label:"赛程时间"},o),{},{name:[s,"competition_time"],rules:[{required:!0,validator:function(e,t){var i;return null===t?Promise.reject("请选择截止时间"):0!==n&&de()(t).startOf("second")<=de()(null==b||null===(i=b[n-1])||void 0===i?void 0:i.competition_time).startOf("second")?Promise.reject("当前赛程时间需晚于上一个赛程时间,请重新选择"):Promise.resolve()}}],children:(0,xe.jsx)(le.default,{style:{width:"100%"},placeholder:"请选择赛程时间",format:"YYYY-MM-DD HH:mm",disabledDate:0!==n&&function(e){var t;return(0,he.Q8)(e,null,null,null==b||null===(t=b[n-1])||void 0===t?void 0:t.competition_time)},disabledTime:0!==n&&function(e){var t;return(0,he.d0)(e,null==b||null===(t=b[n-1])||void 0===t?void 0:t.competition_time)},suffixIcon:(0,xe.jsx)(xe.Fragment,{}),showTime:{format:"HH:mm",defaultValue:de()((0,he.U6)(),"HH:mm")}})}))})]})})]},t)}))})}}),(0,xe.jsx)(oe.Z,{className:"mt20",wrap:!1,justify:"end",gutter:20,children:(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(f.Z.Item,{children:(0,xe.jsx)(Z.ZP,{type:"primary",htmlType:"submit",children:"保存更改"})})})})]})})})})),pt=["competitions","globalSetting","dispatch","user"],mt=(0,_.connect)((function(e){return{competitions:e.competitions,globalSetting:e.globalSetting,user:e.user}}))((function(e){var n=e.competitions,t=(e.globalSetting,e.dispatch),i=(e.user,p()(e,pt),(0,_.useParams)().identifier),l=(0,m.useState)(!0),s=d()(l,2),o=(s[0],s[1],(0,m.useState)("竞赛信息")),a=d()(o,2),r=a[0],c=a[1],u=(0,m.useState)(!0),h=d()(u,2),f=h[0],x=h[1],v=(0,m.useState)(null),g=d()(v,2),y=(g[0],g[1]),j=(0,m.useState)(""),b=d()(j,2),w=b[0],Z=b[1],k=function(e){x(e)};return(0,m.useEffect)((function(){}),[r]),(0,m.useEffect)((function(){"1"===n.actionTabs.key?(c("赛题设置"),t({type:"competitions/setActionTabs",payload:{}})):"5"===n.actionTabs.key?(c("竞赛指引"),t({type:"competitions/setActionTabs",payload:{}})):"7"===n.actionTabs.key&&(c("竞赛信息"),t({type:"competitions/setActionTabs",payload:{}}))}),[n.actionTabs]),(0,xe.jsx)("div",{className:I,ref:y,children:(0,xe.jsxs)("div",{className:A,children:[(0,xe.jsx)("div",{className:S,children:"基础设置"}),(0,xe.jsxs)("div",{className:C,children:[(0,xe.jsx)("div",{className:F,children:(0,xe.jsx)("div",{children:["竞赛信息","图片设置","赛题设置","赛程设置","管理人员","竞赛指引"].map((function(e,n){return(0,xe.jsx)("div",{className:r==e?T:P,onClick:function(){document.getElementById("js_nav").scrollIntoView({behavior:"smooth",block:"start"}),c(e),x(!0)},children:e},n)}))})}),(0,xe.jsx)("div",{className:R,children:(0,xe.jsxs)(rn.Z,{spinning:f,children:["竞赛信息"==r&&(0,xe.jsx)(ye,{competitionId:i,loadingFunction:k,formName:w}),"图片设置"==r&&(0,xe.jsx)(Ne,{competitionId:i,loadingFunction:k}),"赛题设置"==r&&(0,xe.jsx)(En,{competitionId:i,loadingFunction:k}),"赛程设置"==r&&(0,xe.jsx)(ut,{loadingFunction:k}),"管理人员"==r&&(0,xe.jsx)(tt,{competitionId:i,loadingFunction:k}),"竞赛指引"==r&&(0,xe.jsx)(at,{competitions:n,clickInformation:function(e){c("竞赛信息"),"主标题"==e?Z("name"):"比赛地址"==e?Z("identifier"):"竞赛时间"==e&&Z("start_time")},clickQuetions:function(){c("赛题设置")},competitionId:i,loadingFunction:k})]})})]})]})})})),_t=t(20834),ht="bg___htQ1O",ft="title___dw_wz",xt="left___CDy7v",vt="muitem___pDhZj",gt="muitemclick___WXoKV",yt="right___tNRAa",jt="button___tMn5K",bt={flex_box_center:"flex_box_center___Y72kq",flex_space_between:"flex_space_between___d30ej",flex_box_vertical_center:"flex_box_vertical_center___p_tif",flex_box_center_end:"flex_box_center_end___AyBVH",flex_box_column:"flex_box_column___NQalW",bg:"bg___cLFww",btns:"btns___uWjSy",confirm:"confirm___ZvnTx",cancel:"cancel___v9uv4",deletetitle:"deletetitle___DnoRO",submitwork:"submitwork___tVjOE",scoremodal:"scoremodal___iKA69",title:"title___GESKF",content:"content___r8E9Y",bottom:"bottom___HS8jb",yes:"yes___itu44",no:"no___Qs1U3",bottoms:"bottoms___ng0EW",loaderimg:"loaderimg___XJWfN",upload:"upload___zGUpB"},wt=t(42534),Zt=t(1012),kt=t(47257),Nt=t.n(kt),It=t(38279),At=t(16318),St=["competitions","globalSetting","loading","dispatch","selectedKeys","isedit","setisedit","user"],Ct=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n,t,i=e.competitions,s=(e.globalSetting,e.loading,e.dispatch),a=(e.selectedKeys,e.isedit),c=e.setisedit,u=e.user,h=(p()(e,St),(0,_.useParams)().identifier),f=i.RightItems,g=i.Header,b=(0,m.useState)(!1),w=d()(b,2),k=w[0],I=w[1],A=(0,m.useState)(!1),S=d()(A,2),C=S[0],F=S[1],P=(0,m.useState)(!0),T=d()(P,2),R=T[0],E=T[1],D=(0,m.useState)([]),B=d()(D,2),V=B[0],z=B[1],M=(0,m.useState)([]),O=d()(M,2),Y=O[0],H=O[1],q=(0,m.useState)(f.md_content),Q=d()(q,2),G=Q[0],U=Q[1],W=(0,m.useState)(!1),J=d()(W,2),K=J[0],X=J[1],$=(0,m.useState)(""),ee=d()($,2),ne=ee[0],te=ee[1],le=(0,m.useState)([]),ce=d()(le,2),pe=ce[0],fe=ce[1],ve=(0,m.useState)(!1),ge=d()(ve,2),ye=ge[0],je=ge[1],be=(0,m.useState)(),we=d()(be,2),ke=we[0],Ne=we[1],Ie=(0,m.useState)(!1),Ae=d()(Ie,2),Se=Ae[0],Ce=(Ae[1],(0,m.useState)(0)),Fe=d()(Ce,2),Pe=Fe[0],Te=Fe[1],Re=((0,_.useParams)(),de()()>de()(null==g?void 0:g.start_time)&&de()()0,openFileDialogOnClick:de()()>de()(null==g?void 0:g.start_time)&&de()()400)){e.next=5;break}return v.ZP.error("文件名称长度不能超过400个字符"),e.abrupt("return",!1);case 5:if("zip"==i){e.next=8;break}return v.ZP.error("仅支持zip上传"),e.abrupt("return",!1);case 8:if(!(t>2)){e.next=11;break}return v.ZP.error("《".concat(n.name,"》文件无法上传。超过单个文件上传大小限制(2GB)")),e.abrupt("return",!1);case 11:return fe([{name:n.name,file:n}]),e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),onRemove:(n=r()(o()().mark((function e(n){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:fe(L()(pe.filter((function(e){return e.name!==n.name}))));case 1:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})}),Ee=[{title:"选手姓名",dataIndex:"user_name",width:100,ellipsis:!0,render:function(e){return e||"--"}},{title:"提交状态",width:100,dataIndex:"evaluation_status",render:function(e){return"waiting"==e?(0,xe.jsx)("span",{style:{color:"#00B187 "},children:"排队中"}):"progress"==e?(0,xe.jsx)("span",{style:{color:""},children:"进行中"}):"cancelled"==e?(0,xe.jsx)("span",{style:{color:"#E53333"},children:"已取消"}):"completed"==e?(0,xe.jsx)("span",{style:{color:"#165DFF"},children:"已完成"}):"error"==e?(0,xe.jsx)("span",{style:{color:"#ff4d4f"},children:"提交失败"}):"--"}},{title:"得分",width:80,dataIndex:"evaluation_score",render:function(e){return e||"--"}},{title:"描述",width:222,dataIndex:"comment",render:function(e){return(0,xe.jsx)(y.Z,{title:e,children:(0,xe.jsx)("span",{children:e||"- -"})})}},{title:"提交时间",width:200,dataIndex:"commit_at",render:function(e){return e?de()(e).format("YYYY.MM.DD HH:mm:ss"):"--"}},{title:"下载文件",ellipsis:!0,dataIndex:"commit_id",render:function(e,n){var t,i,l,s,o,a;return(0,xe.jsx)(y.Z,{placement:"topLeft",title:null==n||null===(t=n.attachments)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.title,children:null!=n&&null!==(i=n.attachments)&&void 0!==i&&null!==(i=i[0])&&void 0!==i&&i.is_oss?(0,xe.jsx)("a",{onClick:function(){var e;(0,he.Nd)("","".concat(null==n||null===(e=n.attachments)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.url.replace("disposition=inline","")))},children:(null==n||null===(l=n.attachments)||void 0===l||null===(l=l[0])||void 0===l?void 0:l.title)||"--"}):(0,xe.jsx)("a",{href:me.Z.API_SERVER+(null==n||null===(s=n.attachments)||void 0===s||null===(s=s[0])||void 0===s?void 0:s.url),download:null==n||null===(o=n.attachments)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.title,children:(null==n||null===(a=n.attachments)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.title)||"--"})})}},{title:"测评信息",width:120,dataIndex:"commit_id",render:function(e,n){return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(Z.ZP,{style:{padding:0},type:"link",disabled:"completed"!=(null==n?void 0:n.evaluation_status),onClick:function(){var e=x.Z.confirm({centered:!0,okText:"确定",icon:null,cancelText:"取消",title:"运行结果",content:(0,xe.jsx)("div",{style:{maxHeight:500,overflow:"auto"},children:null==n?void 0:n.evaluation_info}),onOk:function(){return e.destroy()},onCancel:function(){return e.destroy()}})},children:"查看"}),(0,xe.jsx)(Z.ZP,{className:"ml10",style:{padding:0},type:"link",danger:!0,disabled:"waiting"!=(null==n?void 0:n.evaluation_status),onClick:function(){var e,t=x.Z.confirm({centered:!0,okText:"确定",icon:null,cancelText:"取消",title:"",content:(0,xe.jsx)(xe.Fragment,{children:"取消后,该成员提交的作品将不进行评测排队,请确认是否取消。"}),onOk:(e=r()(o()().mark((function e(){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(h,"/competition_commit_records/").concat(n.id,"/cancel.json"),{method:"POST",body:{record_id:n.id}});case 2:0==(null==(i=e.sent)?void 0:i.status)&&(v.ZP.success("取消成功"),t.destroy(),Ye());case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)}),onCancel:function(){return t.destroy()}})},children:"取消"})]})}}];(0,m.useEffect)((function(){var e;Se&&(null===(e=ke)||void 0===e||e.cancel())}),[Se]);var Le=0;(0,m.useEffect)((function(){Pe<3&&Pe&&pe.map(function(){var e=r()(o()().mark((function e(n){var t,i,l,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.status&&"error"!==n.status||Se){e.next=22;break}return n.status="uploading",n.file.status="uploading",e.next=5,De(n,{login:null==u||null===(t=u.userInfo)||void 0===t?void 0:t.login,container_type:"CompetitionWorkMode",container_id:null,description:"",realFileName:!0});case 5:if(0!=(null==(i=e.sent)?void 0:i.status)){e.next=20;break}if(console.log(i),++Le!=pe.length){e.next=18;break}return Te(0),je(!1),e.next=14,(0,Ze.ZP)("/api/competitions/".concat(h,"/competition_commit_records.json"),{method:"post",body:{attachment_ids:[null==i||null===(l=i.data)||void 0===l?void 0:l.attachment_id]}});case 14:0===(null==(s=e.sent)?void 0:s.status)&&(v.ZP.info(null==s?void 0:s.message),Ye()),fe([]),Ye();case 18:e.next=22;break;case 20:Te(2),je(!1);case 22:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())}),[Pe]);var De=function(){var e=r()(o()().mark((function e(n,t){var i,l,s,a,r,c,d,p,m,_,h;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.file_name=n.name,d=n.name,e.next=4,(0,Ze.ZP)("/api/buckets/get_competition_work_mode_token.json",{method:"get"});case 4:if(0===(null==(p=e.sent)?void 0:p.status)){e.next=12;break}return pe[pe.findIndex((function(e){return e.name===d}))].status="error",pe[pe.findIndex((function(e){return e.name===d}))].file.status="error",v.ZP.warning("上传失败,请重新尝试"),Te(2),je(!1),e.abrupt("return");case 12:return p.data=JSON.parse((0,wt.pe)(p.data)),ke=new(Nt())({endpoint:null==p||null===(i=p.data)||void 0===i?void 0:i.end_point,region:null==p||null===(l=p.data)||void 0===l?void 0:l.region,accessKeyId:null==p||null===(s=p.data)||void 0===s?void 0:s.access_key_id,accessKeySecret:null==p||null===(a=p.data)||void 0===a?void 0:a.access_key_secret,bucket:null==p||null===(r=p.data)||void 0===r?void 0:r.bucket,stsToken:null==p||null===(c=p.data)||void 0===c?void 0:c.security_token}),console.log(n,"file"),Ne(ke),(m=n.name.split(".")).pop(),_=t.realFileName?m.join("."):(0,Zt.Z)(),h=(new Date).getTime(),e.abrupt("return",new Promise((function(e,i){try{var l,s;ke.multipartUpload("competition_work_mode/".concat(null==u||null===(l=u.userInfo)||void 0===l?void 0:l.login,"/").concat(_+"_"+h).concat(d.indexOf(".")>-1?"."+d.split(".").pop():""),new Blob([n.file],{type:n.file.type}),{timeout:36e5,partSize:1002400,progress:function(e,n,t){try{console.log("进度",e,n,t),2==Pe&&(Te(1),je(!0));var i=pe.findIndex((function(e){return e.name===d}));console.log("index",i),pe[i].file.percent=100*e,pe[i].tempCheckpoint=n,fe(L()(pe))}catch(e){}},checkpoint:pe[pe.findIndex((function(e){return e.name===d}))].tempCheckpoint,callback:{customValue:{id:d+""},url:null==p||null===(s=p.data)||void 0===s?void 0:s.callback_url,host:null==p?void 0:p.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Ze.rz)(t)}}).then((function(t){var i,l=pe.findIndex((function(e){return e.name===d})),s="done";if(0===(null===(i=t.data)||void 0===i?void 0:i.status)){var o;n.response=null===(o=t.data)||void 0===o?void 0:o.data;var a=pe.findIndex((function(e){return e.name===d}));pe[a].status="done",pe[a].file.status="done"}else{var r;v.ZP.warning(null===(r=t.data)||void 0===r?void 0:r.message),s="error"}pe[l].status=s,pe[l].file.status=s,e(null==t?void 0:t.data)})).catch((function(e){pe[pe.findIndex((function(e){return e.name===d}))].status="error",pe[pe.findIndex((function(e){return e.name===d}))].file.status="error",v.ZP.warning("上传失败,请重新尝试"),fe(L()(pe)),i(e),Te(2),je(!1),console.log("err:",e)}))}catch(e){}})));case 21:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),Be=function(){var e=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==pe.length){e.next=3;break}return v.ZP.info("提交失败,请上传作品文件"),e.abrupt("return");case 3:je(!0),Te(1);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){null!=g&&g.is_member&&3===(null==g?void 0:g.mode)&&Ye()}),[g]),(0,m.useEffect)((function(){var e,n=[];null==f||null===(e=f.attachments)||void 0===e||e.map((function(e){var t={uid:e.id,name:e.title,response:{id:e.id}};n.push(t)})),H(n)}),[null==f?void 0:f.attachments]),(0,m.useEffect)((function(){te(null==f?void 0:f.name),U(f.md_content),X(null==f?void 0:f.hidden)}),[f.md_content||f.name||f.hidden]),console.log("---",Y);var Ve={name:"file",multiple:!0,withCredentials:!0,action:me.Z.API_SERVER+"/api/attachments.json",fileList:Y,onRemove:function(e){(0,ue.y8)({id:e.response.id})},onChange:function(e){H(L()(e.fileList))},beforeUpload:function(e){var n=e.size/1024/1024<150;return n||(v.ZP.info("文件大小必须小于150MB"),ie.Z.LIST_IGNORE)}};function ze(){return(ze=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s({type:"competitions/updateMdContent",payload:{attachment_ids:Me(Y),competition_module_id:f.id,md_content_id:f.md_id,content:G,identifier:h,hidden:K,description:ne}});case 2:0===(null==(n=e.sent)?void 0:n.status)&&(v.ZP.info("提交成功"),c(!1),s({type:"competitions/getItem",payload:{url:f.params_url}}),s({type:"competitions/getHeader",payload:{identifier:h}}),s({type:"competitions/setActionTabs",payload:{key:"showheader"}}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Me(e){var n=[];return(null==e?void 0:e.length)<=0||e&&(null==e||e.map((function(e){n.push(e.response.id)}))),n}function Oe(){return Oe=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:x.Z.confirm({icon:!1,title:"提示",content:"删除页面后,数据不可恢复,请确认是否删除",onOk:function(){var e=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(h,"/competition_modules/").concat(f.id,".json"),{method:"delete"});case 2:0===e.sent.status&&(s({type:"competitions/getHeader",payload:{identifier:h}}),c(!1));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 1:case"end":return e.stop()}}),e)}))),Oe.apply(this,arguments)}var Ye=function(){var e=r()(o()().mark((function e(){var n,t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return E(!0),e.next=3,(0,Ze.ZP)("/api/competitions/".concat(h,"/competition_commit_records.json"),{method:"get"});case 3:0===(null==(n=e.sent)?void 0:n.status)&&(z(null==n||null===(t=n.data)||void 0===t?void 0:t.records),E(!1));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,xe.jsxs)("section",{className:bt.bg,children:[a?(0,xe.jsxs)("div",{children:[!(3===(null==g?void 0:g.mode)&&"entrance"===(null==f?void 0:f.module_type))&&(0,xe.jsxs)("div",{style:{marginBottom:30,display:"flex",alignItems:"center"},children:[(0,xe.jsx)(j.Z,{style:{width:"82%",height:40,borderRadius:2,border:"1px solid #DCDCDC"},value:ne,onChange:function(e){te(e.target.value)}})," ",(0,xe.jsx)(se.Z,{className:"ml40 font14",style:{marginLeft:"23px"},checked:K,onChange:function(e){X(e.target.checked)},children:(0,xe.jsx)("span",{style:{display:"inline-block"},children:"隐藏"})}),(0,xe.jsxs)("span",{className:bt.deletetitle,onClick:function(){!function(){Oe.apply(this,arguments)}()},children:[(0,xe.jsx)("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"删除页面"]})]}),(0,xe.jsx)(At.Z,{defaultValue:f.md_content,onChange:function(e){return U(e)}}),(0,xe.jsxs)(ie.Z,l()(l()({},Ve),{},{children:[(0,xe.jsx)("div",{className:"inline-block current",children:(0,xe.jsx)(N.op,{style:{borderRadius:2,marginTop:18},children:"上传附件"})}),(0,xe.jsx)("span",{className:"ml25 c-grey-999",children:"(单个文件150M以内)"})]})),(0,xe.jsxs)("div",{className:bt.btns,children:[(0,xe.jsx)(Z.ZP,{className:bt.cancel,onClick:function(){return c(!1)},children:"取消"}),(0,xe.jsx)(_e.Z,{className:bt.confirm,type:"primary",onClick:function(){return ze.apply(this,arguments)},children:"保存更改"})]})]}):(0,xe.jsxs)("div",{children:[!(null!=f&&f.md_content)&&!(3===(null==g?void 0:g.mode)&&"entrance"===(null==f?void 0:f.module_type))&&(0,xe.jsx)(un.Z,{}),(0,xe.jsx)(It.Z,{style:{marginBottom:30,width:"calc(1015px - 60px)"},value:f.md_content||""}),f&&f.attachments&&f.attachments.map((function(e,n){return(0,xe.jsx)("div",{children:(0,xe.jsxs)("a",{href:(null===me.Z||void 0===me.Z?void 0:me.Z.API_SERVER)+e.url,target:"_self",download:e.title,children:[(0,xe.jsx)("i",{style:{color:"#29BD8B"},className:"font-14 color-green iconfont icon-fujian mr8"}),(0,xe.jsx)("span",{style:{color:"#000000"},children:e.title}),(0,xe.jsx)("span",{style:{color:"#000000",marginLeft:"10px"},children:e.filesize})]})})}))]}),a&&3===(null==g?void 0:g.mode)&&"entrance"===(null==f?void 0:f.module_type)&&(0,xe.jsx)("div",{style:{borderTop:"1px solid #f1f1f1",margin:"20px 0"}}),"entrance"===(null==f?void 0:f.module_type)&&(0,xe.jsxs)("div",{style:{marginTop:15},children:[(0,xe.jsxs)("div",{style:{justifyContent:"space-between",display:"flex"},children:[(0,xe.jsx)("span",{style:{color:"#333333",fontWeight:600,fontSize:"14px"},children:"作品提交"}),(0,xe.jsxs)("span",{style:{color:"#9096A3",marginLeft:"auto",fontSize:"12px"},children:["作品提交时间",(0,xe.jsxs)("span",{style:{color:"#232B40",marginLeft:5},children:[null==g?void 0:g.start_time,"~",null==g?void 0:g.end_time]})]})]}),(0,xe.jsxs)("div",{style:{display:"flex",position:"relative",marginBottom:20},children:[(0,xe.jsx)("div",{className:"mt20",style:{width:333},onClick:function(){de()()de()(null==g?void 0:g.end_time)?v.ZP.warning("非作品提交时间,不可操作"):null!=g&&g.is_member||F(!0)},children:(0,xe.jsx)(ie.Z.Dragger,l()(l()({},Re),{},{maxCount:1,children:(0,xe.jsxs)("div",{style:{textAlign:"center"},children:[(0,xe.jsx)("p",{style:{marginTop:22},children:(0,xe.jsx)("i",{className:"iconfont icon-shangchuan",style:{color:"#5091FF",fontSize:"30px"}})}),(0,xe.jsxs)("p",{className:"mt10",style:{marginBottom:22},children:["拖拽文件或",(0,xe.jsx)("a",{children:"点击此处上传"})]})]})}))}),(0,xe.jsxs)("div",{style:{marginLeft:20,marginTop:120},children:[de()()>de()(null==g?void 0:g.start_time)&&de()()0&&(0,xe.jsxs)("div",{className:"mt40",style:{borderTop:"1px solid #F1F1F1"},children:[(0,xe.jsxs)(oe.Z,{className:"mt30",align:"middle",justify:"space-between",children:[(0,xe.jsx)(ae.Z,{style:{fontWeight:600},children:"我的成绩"}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(Z.ZP,{type:"primary",onClick:Ye,children:"更新"})})]}),(0,xe.jsx)(re.Z,{className:"mt30",loading:R,pagination:!1,dataSource:V,columns:Ee})]})]}),(0,xe.jsx)(x.Z,{title:"报名",open:C,okText:"立即报名",cancelText:"取消",centered:!0,width:320,onCancel:function(){F(!1)},onOk:function(){F(!1),I(!0)},children:(0,xe.jsx)("div",{children:"你暂未报名,请先报名"})}),(0,xe.jsxs)(x.Z,{title:!1,footer:!1,open:k,width:318,className:bt.scoremodal,closable:!1,centered:!0,children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("div",{className:bt.title,children:"报名"}),(0,xe.jsx)("span",{onClick:function(){return I(!1)},style:{cursor:"pointer"},className:bt.close,children:(0,xe.jsx)("i",{className:"iconfont icon-danchuangguanbi",style:{fontSize:"14px"}})})]}),(0,xe.jsx)("div",{className:bt.content,children:"选择参赛方式"}),(0,xe.jsxs)("div",{className:bt.bottoms,children:[(0,xe.jsx)(Z.ZP,{className:bt.no,onClick:function(){s({type:"competitions/setActionTabs",payload:{key:"2"}}),I(!1)},children:"加入战队"}),(0,xe.jsx)(Z.ZP,{className:bt.yes,onClick:function(){s({type:"competitions/setActionTabs",payload:{key:"3"}}),I(!1)},children:"创建战队"})]})]})]})})),Ft=t(83176),Pt=t(98281),Tt=t(78018),Rt=function(e){var n=e.data,t=e.isedit,i=e.selectedKeys,s=e.dispatch,a=(0,m.useState)([]),c=d()(a,2),u=c[0],p=c[1],h=(0,m.useState)(!1),f=d()(h,2),x=f[0],g=f[1],j=(0,_.useParams)().identifier,b=function(e,n,t){var i=Array.from(e),l=i.splice(n,1),s=d()(l,1)[0];return i.splice(t,0,s),i};(0,m.useEffect)((function(){n.length>0&&p(L()(n)||[])}),[n]);var w=function(){var e=r()(o()().mark((function e(n,i){var l,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.destination){e.next=2;break}return e.abrupt("return");case 2:if(!t){e.next=5;break}return v.ZP.info("请先保存或取消当前正在编辑的内容。"),e.abrupt("return");case 5:return l=b(i,n.source.index,n.destination.index),console.log("---",i,l),g(!0),e.next=10,(0,Ze.ZP)("/api/competitions/".concat(j,"/competition_modules/update_position.json"),{method:"post",body:{position_array:l}});case 10:a=e.sent,g(!1),0===a.status&&(s({type:"competitions/getHeader",payload:{identifier:j}}),s({type:"competitions/setActionTabs",payload:{key:"showheader"}}));case 13:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}();return(0,xe.jsx)("div",{children:(0,xe.jsx)(Tt.Z5,{onDragEnd:function(e){return w(e,u)},children:(0,xe.jsx)(Tt.bK,{droppableId:"droppable",children:function(e,n){return(0,xe.jsxs)("div",l()(l()({ref:e.innerRef},e.droppableProps),{},{children:[(0,xe.jsx)(rn.Z,{spinning:x,children:u.map((function(e,n){return(0,xe.jsx)(Tt._l,{draggableId:n.toString(),index:n,children:function(n,t){return(0,xe.jsx)("aside",l()(l()(l()({ref:n.innerRef},n.draggableProps),n.dragHandleProps),{},{children:(0,xe.jsx)(y.Z,{title:e.name,children:(0,xe.jsx)("div",{onClick:e.onClick,className:i===e.id?gt:e.className,children:e.name})})}))}},n)}))}),e.placeholder]}))}})})})},Et=["competitions","globalSetting","loading","dispatch","user"],Lt=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n,t,i,s,a,c,u,h,f,x,v=e.competitions,g=(e.globalSetting,e.loading,e.dispatch),y=e.user,j=(p()(e,Et),(0,_.useParams)().identifier),b=v.Header,w=(v.RightItems,v.Staff),Z=v.Prizes,k=v.Account,N=(0,m.useState)([]),I=d()(N,2),A=I[0],S=I[1],C=(0,m.useState)("qit"),F=d()(C,2),P=F[0],T=F[1],R=(0,m.useState)(!1),E=d()(R,2),L=E[0],D=E[1],B=(0,m.useState)([]),V=d()(B,2),z=V[0],M=V[1],O=(0,m.useState)(!1),Y=d()(O,2),H=Y[0],q=Y[1],Q=(0,m.useRef)(null),G=(0,m.useState)(),U=d()(G,2),W=U[0],J=U[1],K=[{type:"entrance",content:3!==(null==b?void 0:b.mode)?(0,xe.jsxs)("div",{style:{marginLeft:20},children:[(null==z||null===(n=z.data)||void 0===n?void 0:n.length)<=0&&((0,fe.eB)()||(null==b||null===(t=b.permission)||void 0===t?void 0:t.editable))&&(0,xe.jsx)(un.Z,{ButtonText:"去设置",Buttonclass:jt,ButtonClick:function(){g({type:"competitions/setActionTabs",payload:{key:"1"}})},customText:"您还没有设置赛题"}),de()()de()(null==b?void 0:b.start_time)||(0,fe.eB)()||(null==b||null===(s=b.permission)||void 0===s?void 0:s.editable))&&(null==z||null===(a=z.data)||void 0===a?void 0:a.map((function(e,n){return(0,xe.jsx)(Ft.Z,{dispatch:g,Header:b,StaffDetail:w,item:e,index:n})})))]}):(0,xe.jsx)(Ct,{isedit:H,setisedit:q,selectedKeys:W,isshow:!0})},{type:"certificate",content:(0,xe.jsxs)("div",{style:{padding:"15px 30px"},children:[" ",(0,xe.jsx)(Pt.Z,{dispatch:g,userid:null==y||null===(c=y.userInfo)||void 0===c?void 0:c.user_id,Prize:Z,Accounts:k,getAccounts:function(){var e;g({type:"competitions/Accounts",payload:{id:null==y||null===(e=y.userInfo)||void 0===e?void 0:e.user_id}})}})]})},{type:"qit",content:(0,xe.jsx)(Ct,{isedit:H,setisedit:q,selectedKeys:W})}];function X(){return $.apply(this,arguments)}function $(){return($=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(j,"/get_shixun_settings.json"),{method:"get"});case 2:0===(null==(n=e.sent)?void 0:n.status)&&M(n);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,m.useEffect)((function(){var e;if((null==b||null===(e=b.competition_modules)||void 0===e?void 0:e.length)>0){var n,t,i,s;if("showheader"!==v.actionTabs.key)"entrance"===(null==b||null===(t=b.competition_modules)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.module_type)&&T("entrance"),J(null==b||null===(i=b.competition_modules)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.id),g({type:"competitions/getItem",payload:{url:null==b||null===(s=b.competition_modules)||void 0===s||null===(s=s[0])||void 0===s?void 0:s.module_url}});var a=null==b||null===(n=b.competition_modules)||void 0===n?void 0:n.map((function(e){return l()(l()({},e),{},{label:null==e?void 0:e.name,key:null==e?void 0:e.id,className:vt,onClick:(n=r()(o()().mark((function n(){var t,i,l;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(J(null==e?void 0:e.id),q(!1),D(!0),document.getElementById("js_nav").scrollIntoView({behavior:"smooth",block:"start"}),"entrance"!==e.module_type){n.next=17;break}if(3!==(null==b?void 0:b.mode)){n.next=11;break}return n.next=9,g({type:"competitions/getItem",payload:{url:e.module_url}});case 9:return D(!1),n.abrupt("return");case 11:(0,fe.eB)()||null!==(t=b.permission)&&void 0!==t&&t.editable||null!=b&&b.team_member_present||null!=w&&w.enroll_ended||(b.personal?g({type:"competitions/setActionTabs",payload:{key:"6"}}):g({type:"competitions/setActionTabs",payload:{key:"4"}})),T("entrance"),X(),D(!1),n.next=29;break;case 17:if("certificate"!==e.module_type){n.next=25;break}return T("certificate"),n.next=21,g({type:"competitions/Prize",payload:{identifier:j,user_id:null==y||null===(i=y.userInfo)||void 0===i?void 0:i.user_id}});case 21:g({type:"competitions/Accounts",payload:{id:null==y||null===(l=y.userInfo)||void 0===l?void 0:l.user_id}}),D(!1),n.next=29;break;case 25:return T("qit"),n.next=28,g({type:"competitions/getItem",payload:{url:e.module_url}});case 28:D(!1);case 29:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})});var n})).filter((function(e){return"chart"!==(null==e?void 0:e.module_type)}));S(a),g({type:"competitions/setActionTabs",payload:{key:""}})}}),[b]),(0,m.useEffect)((function(){if("entrance"===v.actionTabs.key){var e;T("entrance");var n=null==b||null===(e=b.competition_modules)||void 0===e?void 0:e.find((function(e){return"entrance"===(null==e?void 0:e.module_type)}));J(n.id),3===(null==b?void 0:b.mode)?(D(!0),g({type:"competitions/getItem",payload:{url:n.module_url}}),D(!1)):X()}}),[v.actionTabs]),(0,xe.jsxs)("section",{className:ht,ref:Q,children:[(0,xe.jsxs)("div",{className:ft,children:[(0,xe.jsx)("span",{children:"竞赛概览"}),["qit","entrance"].includes(P)&&((0,fe.eB)()||(null==b||null===(u=b.permission)||void 0===u?void 0:u.editable))&&(0,xe.jsxs)("a",{style:{float:"right",color:"#165DFF"},onClick:function(){"qit"===P||3===(null==b?void 0:b.mode)?q(!0):g({type:"competitions/setActionTabs",payload:{key:"1"}})},children:[(0,xe.jsx)("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF"}})," 编辑"]})]}),(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsxs)("div",{className:xt,children:[(0,fe.Ny)()||null!=b&&null!==(h=b.permission)&&void 0!==h&&h.editable?(0,xe.jsx)("div",{children:(0,xe.jsx)(Rt,{dispatch:g,selectedKeys:W,data:A,isedit:H})}):(0,xe.jsx)(_t.Z,{style:{border:"none"},selectedKeys:["".concat(W)],items:A}),((0,fe.Ny)()||(null==b||null===(f=b.permission)||void 0===f?void 0:f.editable))&&(0,xe.jsx)("span",{onClick:r()(o()().mark((function e(){var n,t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(j,"/competition_modules.json"),{method:"POST"});case 2:if(0!==(n=e.sent).status){e.next=10;break}return J(null==n||null===(t=n.data)||void 0===t?void 0:t.id),g({type:"competitions/getHeader",payload:{identifier:j}}),T("qit"),e.next=9,g({type:"competitions/getItem",payload:{url:null==n||null===(i=n.data)||void 0===i?void 0:i.module_url}});case 9:g({type:"competitions/setActionTabs",payload:{key:"showheader"}});case 10:case"end":return e.stop()}}),e)}))),style:{marginLeft:20,marginTop:20,border:"1px solid #BACFFE",color:"#3061D0",fontSize:12,width:80,height:28,display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:"+ 新增栏目"})]}),(0,xe.jsx)("div",{className:yt,children:(0,xe.jsx)(rn.Z,{spinning:L,children:(0,xe.jsx)("div",{style:{minHeight:200},children:null===(x=K.find((function(e){return e.type===P})))||void 0===x?void 0:x.content})})})]})]})})),Dt={flex_box_center:"flex_box_center___M4JlS",flex_space_between:"flex_space_between___ft0RM",flex_box_vertical_center:"flex_box_vertical_center___q2FOd",flex_box_center_end:"flex_box_center_end___sHMG4",flex_box_column:"flex_box_column____iI7H",bg:"bg___k6sPc",title:"title___g14V4",right:"right___m_DFD",left:"left___mwgoj",muitem:"muitem___oVuqT",muitemselect:"muitemselect___S4V8Y",searchWrap:"searchWrap___VZKxz",search:"search___NaLMi",searchIcon:"searchIcon___kyXjW",button:"button___9r1Cv",footer:"footer___FeXKb",clear_button:"clear_button___tLyhc",save_button:"save_button___jdXaq"},Bt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAuNJREFUOE+dlE1oXFUUx3/nvo/pzKtp4li0hkYHNw22m4qLxoWWSkG6UMSvgmC6kCzdSN25d2lBaF3ppoIb0a6kXVRKVxIohgiGlkpSa2OTGKeTeZ/3HrlvJulUFNSzetx7zu/877n/+2Tz3MxTiH5n4BFVAgQTPNmej6Ynrzs4LiLjojinbk2M+ab8/sZLutabRHEKDlisWu6oAHQ/PTLjlEtmfFczPDSFGWuBs2jRB1uBzwoiJGqBMbi7XcqFFSQrf4nUzDTnri7XIB/9K69+JE/sPY06tLcOeQ/UgiuoSSYGCaA5hiQPQ2nh1vps8/mvPvf1NahYnn3Wya6rWuWRbt5Bqh5SrCM2BXTYStAwwcVtiHYj448jxvzaqPLD0vnsTg3KVuYW1LmDunELqfoYe+9+/bbkYVdFsNEYxAlmYhJVvmxOnXtT8punTmrYOO+6v0F2j8CWtU4nBvVHkeHp1SFqMX7EHhaEsLuNScZVquppyZffPa/OnXQbKxiCWokTu6Mj65Y4q7Qm4sGaQkCIw6G+z8R+jNgPJf15do0ia2tvAyNNnPq5DKK7mtO7m9NIAtqd5IFDGmngNEPGHkWC8FvJbr5TuawXkG4NB7s93EFdulnS/734C8jvGLyNJJlAonhJshtvFy7vR2S9kY73P/8ZNMiR1h4kjBYlXXrrttpiH+n/A5Hs8Sb9WtKlN86q6hxbf/x3RWKg9RBg35f0p1eOQXBR80ywFu/sfxcCcQxhaBU7VZsk/fHlS6p6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1q09GFq3ROZLKs+MRXB9F//Skc1ardVw7txvyAYBSqW7e4h47bL12AQtTY8tQDq3iGyhBzR3+jTu37IleZ+a/hZPPP7YdaMZ6Nolq9e7tDx16CPN5lWZvwFEHZGvxpn5X1G9Uk3MVCwWcM/QUNe/CVvQjVWQcPbQxenxbazV98IPSGZ6BVexSmxrBe/2AiOqrwBaL52s5W5NjLIwOfqVYX7G7R9IVuH/RNyoQzXXAOm8OPjkgfGEaHFytKjYnGLQYKqvCOn5/8nFzLAkcXMNjnSO3Lb7pWct+G/rLk6Oboy0OcpshpxUBm4mC+H+427rahW2ETfr0CqGdOSRwdQf+2jn26qLyF7K33waNFT7HW30a2A4iculhO2Cje5ssKBlIZ23Nj718vi1bXcv018/56c+7ufYGdEqKhHR7WBukcAFAffEXLNvcmRkRF8/+59ZfmcgM6jazwAAAABJRU5ErkJggg==",Mt=["competitions","globalSetting","loading","dispatch","user"],Ot=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n,t,i,s,a,c,u,h=e.competitions,f=(e.globalSetting,e.loading,e.dispatch,e.user,p()(e,Mt),(0,_.useParams)().identifier),x=h.Header,v=(h.RightItems,h.Staff,h.Prizes,h.Account,(0,m.useState)([])),g=d()(v,2),b=g[0],w=g[1],Z=(0,m.useState)("qit"),k=d()(Z,2),I=(k[0],k[1],(0,m.useState)(!1)),A=d()(I,2),S=A[0],C=A[1],F=(0,m.useState)(!1),P=d()(F,2),T=P[0],R=P[1],E=(0,m.useState)(!1),L=d()(E,2),D=L[0],B=L[1],V=(0,m.useState)({page:1,per_page:10,keyword:""}),z=d()(V,2),M=z[0],O=z[1],Y=(0,m.useState)(""),H=d()(Y,2),q=H[0],Q=H[1],G=(0,m.useState)(""),U=d()(G,2),W=U[0],J=U[1],K=(0,m.useState)(),X=d()(K,2),$=X[0],ee=X[1],ne=(0,m.useState)(),te=d()(ne,2),ie=te[0],le=te[1],ce=(0,m.useState)(""),ue=d()(ce,2),pe=ue[0],_e=ue[1],ve=(0,m.useState)(!1),ge=d()(ve,2),ye=ge[0],je=ge[1];function be(){return we.apply(this,arguments)}function we(){return(we=r()(o()().mark((function e(){var n,t,i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),e.next=3,(0,Ze.ZP)("/api/competitions/".concat(f,"/competition_questions.json"),{method:"get"});case 3:0===(null==(n=e.sent)?void 0:n.status)&&(Q(null==n||null===(t=n.data)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.identifier),ke(null==n||null===(i=n.data)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.identifier),a=null==n||null===(s=n.data)||void 0===s?void 0:s.map((function(e){return l()(l()({},e),{},{label:null==e?void 0:e.name,key:null==e?void 0:e.identifier,className:Dt.muitem,onClick:function(){Q(e.identifier),M.keyword="",O(l()({},M)),ke(e.identifier)}})})),w(a),_e(null==n?void 0:n.md_id),R(null==n?void 0:n.hidden_ranking),je(null==n?void 0:n.is_running_update_score));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ke(e){return Ne.apply(this,arguments)}function Ne(){return(Ne=r()(o()().mark((function e(n){var t,i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),t=null!=x&&x.personal?"/api/competitions/".concat(f,"/competition_charts/person_ranking.json"):"/api/competitions/".concat(f,"/competition_charts/team_ranking.json"),e.next=4,(0,Ze.ZP)(t,{method:"get",params:l()(l()({},M),{},{question_identifier:n||q})});case 4:if(i=e.sent,C(!1),0===(null==i?void 0:i.status)&&(ee(null==i?void 0:i.data),J(null==i||null===(s=i.data)||void 0===s?void 0:s.description)),3!==(null==x?void 0:x.mode)){e.next=13;break}return e.next=10,(0,Ze.ZP)("/api/competitions/".concat(f,"/competition_charts/work_mode.json"),{method:"get",params:l()({},M)});case 10:a=e.sent,C(!1),0===(null==a?void 0:a.status)&&le(a);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ie(){return(Ie=r()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=null!=x&&x.personal?"/api/competitions/".concat(f,"/competition_charts/person_ranking.xlsx"):"/api/competitions/".concat(f,"/competition_charts/team_ranking.xlsx"),(0,he.FH)("",(0,he.NY)({url:me.Z.API_SERVER+t,query:l()(l()({},M),{},{question_identifier:n||q})}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ae(){return(Ae=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n="/api/competitions/".concat(f,"/competition_charts/work_mode.xlsx"),(0,he.FH)("",(0,he.NY)({url:me.Z.API_SERVER+n,query:{keyword:null==M?void 0:M.keyword}}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,m.useEffect)((function(){be()}),[x]);var Se=function(e){M.keyword=e,O(l()({},M)),ke()},Ce=[{title:"排名",align:"center",dataIndex:"rank",width:80,ellipsis:!0,render:function(e,n,t){return(0,xe.jsxs)("span",{children:[1===e&&(0,xe.jsx)("img",{src:Bt}),2===e&&(0,xe.jsx)("img",{src:Vt}),3===e&&(0,xe.jsx)("img",{src:zt}),e>3&&e]})}},{title:null!=x&&x.personal?"参赛人员":"战队",align:"left",dataIndex:"name",width:222,ellipsis:!0,render:function(e,n){var t,i,l,s,o,a;return(0,xe.jsx)(y.Z,{title:null!=x&&x.personal&&null!=x&&null!==(t=x.need_apply_info)&&void 0!==t&&t.need_apply_name?null==n||null===(i=n.apply_info)||void 0===i?void 0:i.real_name:e,children:(0,xe.jsxs)("span",{children:[(0,xe.jsx)("img",{width:30,height:30,style:{borderRadius:"50%",marginRight:"10px"},src:me.Z.IMG_SERVER+"/images/"+(null==n?void 0:n.image_url)}),null!=x&&x.personal?null!=x&&null!==(l=x.need_apply_info)&&void 0!==l&&l.need_apply_name?(null==n||null===(s=n.apply_info)||void 0===s||null===(s=s.real_name)||void 0===s?void 0:s.length)>4?(null==n||null===(o=n.apply_info)||void 0===o||null===(o=o.real_name)||void 0===o?void 0:o.substring(0,4))+"...":null==n||null===(a=n.apply_info)||void 0===a?void 0:a.real_name:(null==e?void 0:e.length)>4?e.substring(0,4)+"...":e:e]})})}},{title:"学校/单位",align:"left",dataIndex:"school_name",width:533,ellipsis:!0,render:function(e,n){var t,i,l,s;return(0,xe.jsx)(y.Z,{title:null!=x&&null!==(t=x.need_apply_info)&&void 0!==t&&t.need_apply_school?(null==n||null===(i=n.apply_info)||void 0===i?void 0:i.school)||"- -":e.join("、")||"- -",children:(0,xe.jsx)("span",{children:null!=x&&null!==(l=x.need_apply_info)&&void 0!==l&&l.need_apply_school?(null==n||null===(s=n.apply_info)||void 0===s?void 0:s.school)||"- -":e.join("、")||"- -"})})}},{title:"完成时长",align:"left",dataIndex:"times",width:195,ellipsis:!0,render:function(e){return(0,xe.jsx)("span",{children:e||"- -"})}},{title:(0,xe.jsxs)("div",{className:"flex item-center gap-8px",children:["比赛成绩 ",!x.personal&&(0,xe.jsx)(y.Z,{title:"本次竞赛将首先根据各战队的最高分进行排名。若出现多个战队最高分相同的情况,将按照战队的平均分进行排序。",children:(0,xe.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2 current"})})]}),dataIndex:"all_score",width:100,ellipsis:!0,render:function(e){return(0,xe.jsx)("span",{children:e||"- -"})}},!x.personal&&{title:"战队平均分",align:"right",dataIndex:"average_score",width:100,ellipsis:!0,render:function(e){return(0,xe.jsx)("span",{children:e||"- -"})}},{title:"",align:"center",dataIndex:"",ellipsis:!0,width:24}].filter((function(e){return e})),Fe=[{title:"排名",align:"center",dataIndex:"ranking",width:80,ellipsis:!0,render:function(e,n,t){return(0,xe.jsxs)("span",{children:[1===e&&(0,xe.jsx)("img",{src:Bt}),2===e&&(0,xe.jsx)("img",{src:Vt}),3===e&&(0,xe.jsx)("img",{src:zt}),e>3&&e]})}},{title:null!=x&&x.personal?"参赛人员":"战队",align:"left",dataIndex:null!=x&&x.personal?"user_name":"team_name",width:222,ellipsis:!0,render:function(e,n){var t,i,l,s,o,a;return(0,xe.jsx)(y.Z,{title:null!=x&&x.personal&&null!=x&&null!==(t=x.need_apply_info)&&void 0!==t&&t.need_apply_name?null==n||null===(i=n.apply_info)||void 0===i?void 0:i.real_name:e,children:(0,xe.jsxs)("span",{children:[(0,xe.jsx)("img",{width:30,height:30,style:{borderRadius:"50%",marginRight:"10px"},src:me.Z.IMG_SERVER+"/images/"+(null==n?void 0:n.image_url)}),null!=x&&x.personal?null!=x&&null!==(l=x.need_apply_info)&&void 0!==l&&l.need_apply_name?(null==n||null===(s=n.apply_info)||void 0===s||null===(s=s.real_name)||void 0===s?void 0:s.length)>4?(null==n||null===(o=n.apply_info)||void 0===o||null===(o=o.real_name)||void 0===o?void 0:o.substring(0,4))+"...":null==n||null===(a=n.apply_info)||void 0===a?void 0:a.real_name:(null==e?void 0:e.length)>4?e.substring(0,4)+"...":e:e]})})}},{title:"学校/单位",align:"left",dataIndex:"school_names",width:222,ellipsis:!0,render:function(e,n){var t,i,l,s;return(0,xe.jsx)(y.Z,{title:null!=x&&null!==(t=x.need_apply_info)&&void 0!==t&&t.need_apply_school?(null==n||null===(i=n.apply_info)||void 0===i?void 0:i.school)||"- -":e||"- -",children:(0,xe.jsx)("span",{children:null!=x&&null!==(l=x.need_apply_info)&&void 0!==l&&l.need_apply_school?(null==n||null===(s=n.apply_info)||void 0===s?void 0:s.school)||"- -":e||"- -"})})}},{title:"最高成绩提交时间",align:"left",dataIndex:"max_score_submit_time",width:195,ellipsis:!0,render:function(e){return e?de()(e).format("YYYY-MM-DD HH:mm:ss"):"--"}},{title:"描述",align:"left",dataIndex:"comment",width:222,ellipsis:!0,render:function(e){return(0,xe.jsx)(y.Z,{title:e,children:(0,xe.jsx)("span",{children:e||"- -"})})}},{title:"比赛成绩",align:"center",dataIndex:"score",width:100,ellipsis:!0,render:function(e){return(0,xe.jsx)("span",{children:e||"- -"})}},{title:"提交总次数",align:"center",dataIndex:"submit_sum",ellipsis:!0,width:100}];return(0,xe.jsxs)("section",{className:Dt.bg,children:[(0,xe.jsxs)(oe.Z,{align:"middle",className:Dt.title,children:[(0,xe.jsxs)(ae.Z,{flex:"1",children:[(0,xe.jsx)("span",{style:{color:"#232B40"},children:"排行榜"}),((0,fe.eB)()||(null==x||null===(n=x.permission)||void 0===n?void 0:n.editable))&&(0,xe.jsx)(se.Z,{checked:T,style:{marginLeft:10},onChange:function(e){var n;R(e.target.checked),(0,Ze.ZP)("/api/competitions/".concat(f,"/update_md_hidden_raking.json"),{method:"POST",body:{hidden_raking:e.target.checked,md_content_id:pe,competition_module_id:null==x||null===(n=x.competition_modules)||void 0===n||null===(n=n.find((function(e){return"chart"===e.module_type})))||void 0===n?void 0:n.id}})},children:(0,xe.jsx)("span",{style:{color:"#828693",marginLeft:"-3px"},children:"隐藏"})})]}),(0,xe.jsx)(ae.Z,{children:((0,fe.eB)()||(null==x||null===(t=x.permission)||void 0===t?void 0:t.editable))&&(0,xe.jsxs)("a",{style:{float:"right",color:"#165DFF",marginTop:"-2px"},onClick:function(){B(!0)},children:[(0,xe.jsx)("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF"}})," 编辑"]})})]}),(0,xe.jsx)("div",{children:(0,xe.jsxs)("div",{className:Dt.right,children:[!(null==$||null===(i=$.description)||void 0===i||!i.length)&&(0,xe.jsx)(It.Z,{className:"pl20 pr20",style:{marginTop:20,marginBottom:20,fontSize:"14px",color:"#6A7283"},value:null==$?void 0:$.description}),(0,xe.jsx)(rn.Z,{spinning:S,children:D?(0,xe.jsxs)("div",{style:{padding:20},children:[(0,xe.jsx)(At.Z,{defaultValue:W,onChange:function(e){return J(e)}}),(0,xe.jsxs)("div",{className:Dt.footer,children:[(0,xe.jsx)("div",{className:Dt.clear_button,onClick:function(){return B(!1)},children:"取消"}),(0,xe.jsx)("div",{className:Dt.save_button,type:"primary",onClick:r()(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,Ze.ZP)("/api/competitions/".concat(f,"/update_md_content.json"),{method:"POST",body:{content:W,md_content_id:pe,competition_module_id:null==x||null===(n=x.competition_modules)||void 0===n||null===(n=n.find((function(e){return"chart"===e.module_type})))||void 0===n?void 0:n.id}});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(B(!1),ke());case 4:case"end":return e.stop()}}),e)}))),children:"保存更改"})]})]}):(0,xe.jsxs)("div",{style:{padding:"0 20px 20px 20px"},children:[(0,xe.jsxs)("div",{className:Dt.left,style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("div",{style:{width:"80%",overflowX:"auto",overflowY:"hidden",marginRight:10},children:(0,xe.jsx)("ul",{style:{display:"flex",lineHeight:"38px",padding:0},children:null==b?void 0:b.map((function(e){return(0,xe.jsx)("li",{className:(null==e?void 0:e.identifier)===q?Dt.muitemselect:e.className,onClick:e.onClick,children:e.name})}))})}),(0,xe.jsxs)("div",{style:{display:"flex"},children:[(0,xe.jsx)("div",{className:Dt.searchWrap,children:(0,xe.jsx)(j.Z.Search,{placeholder:null!=x&&x.personal?"请输入参赛人员名称":"请输入战队名称",size:"large",className:Dt.search,value:M.keyword,onChange:function(e){M.keyword=e.target.value,O(l()({},M))},suffix:(0,xe.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(Dt.searchIcon),onClick:function(){return Se(M.keyword)}}),onSearch:Se})}),(0,xe.jsxs)("div",{style:{marginLeft:20,display:"flex"},children:[((0,fe.eB)()||(null==x||null===(s=x.permission)||void 0===s?void 0:s.editable))&&(0,xe.jsx)("span",{className:Dt.button,onClick:function(){3===(null==x?void 0:x.mode)?function(){Ae.apply(this,arguments)}():function(e){Ie.apply(this,arguments)}(q)},children:"导出名单"}),((0,fe.eB)()||(null==x||null===(a=x.permission)||void 0===a?void 0:a.editable))&&(0,xe.jsx)("span",{className:Dt.button,style:{marginLeft:10},onClick:r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ye){e.next=2;break}return e.abrupt("return");case 2:if(C(!0),!S){e.next=5;break}return e.abrupt("return");case 5:return window.navigator.onLine||(je(!1),C(!1)),e.next=8,(0,Ze.ZP)("/api/competitions/".concat(f,"/update_course_score.json"),{method:"post"});case 8:0===e.sent.status&&(C(!1),je(!0),n=setInterval(r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(f,"/get_update_score_status.json"),{method:"get"});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(je(null==t?void 0:t.is_running_update_score),null!=t&&t.is_running_update_score||(be(),clearInterval(n)));case 4:case"end":return e.stop()}}),e)}))),5e3));case 10:case"end":return e.stop()}}),e)}))),children:ye?"成绩更新中":"更新成绩"})]})]})]}),!(null!=x&&null!==(c=x.permission)&&void 0!==c&&c.editable)&&T&&(0,xe.jsx)(un.Z,{customText:"排行榜当前为封榜状态"}),((0,fe.eB)()||(null==x||null===(u=x.permission)||void 0===u?void 0:u.editable)||!T)&&(0,xe.jsx)(N.Gi,{style:{marginTop:20,marginLeft:0},children:3===(null==x?void 0:x.mode)?(0,xe.jsx)(re.Z,{columns:Fe,dataSource:null==ie?void 0:ie.list,pagination:!1,scroll:{x:1140}}):(0,xe.jsx)(re.Z,{columns:Ce,dataSource:null==$?void 0:$.ranking,pagination:!1,scroll:{x:1140}})}),(0,xe.jsx)("div",{className:Dt.countWrap,style:{marginTop:20},children:(0,xe.jsx)(dn.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],total:3===(null==x?void 0:x.mode)?null==ie?void 0:ie.count:null==$?void 0:$.count,onChange:function(e,n){M.page=e,M.per_page=n,O(l()({},M)),ke()},pageSize:M.per_page,current:M.page})})]})})]})})]})})),Yt={flex_box_center:"flex_box_center___Ix1yk",flex_space_between:"flex_space_between___Nvu1L",flex_box_vertical_center:"flex_box_vertical_center___FcD_R",flex_box_center_end:"flex_box_center_end___xtV5Z",flex_box_column:"flex_box_column___rSUdX",bg:"bg___Fi0Vv",title:"title___oBAHH",left:"left___x4G2N",muitem:"muitem___JmDfB",right:"right___RXHwC",searchWrap:"searchWrap___yt5Di",search:"search___sA8FE",searchIcon:"searchIcon___yiKfD",button:"button___ZPcVk",items:"items___wZfml",img:"img___f3zFn",names:"names___k3ZzZ",time:"time___qmAOy",createtime:"createtime___KKvxc",width30:"width30___NxY4W",loaderimg:"loaderimg___aQ_vt",scoreByBlankRadio:"scoreByBlankRadio___X8rMJ",teamname:"teamname___or8vu",scoremodal:"scoremodal___jE4qx",content:"content___wGyD2",bottom:"bottom___mdNOm",yes:"yes___hQBiA",no:"no___AOje6",bottoms:"bottoms___ogmBQ",drawer_style:"drawer_style___aspKt",baseFormItem:"baseFormItem___L4XPW",jsinput:"jsinput___IhGOr",Spanradius:"Spanradius___Phpyg",modal_close:"modal_close___yAd65","ant-btn-default":"ant-btn-default___HT0Nv",ssss:"ssss___RB5TB",text:"text___nAWn1",teams_img:"teams_img___N9hpc",add_members:"add_members___BmaRs",back_manage:"back_manage___rLCVY"};Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var Ht="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik00OTkuNTY2IDEwMjAuNjM1Yy0xNDguODQ2IDAtNDI1LjYxOS0yMjcuNjkzLTQyNS42MTktNDQzLjAyNlYxNDguNjI2bDQyLjM1LS43MzFjLjg3OCAwIDk1LjM3OC0xLjk3NSAxOTIuODA1LTQxLjU0NUM0MDkuMDg4IDY1LjgyOSA0NzMuNiAxOS4wOSA0NzQuMTg1IDE4LjY1TDQ5OS41NjUuMjkzIDUyNS4wMiAxOC42NWMuNTg2LjQ0IDY1LjA5OCA0Ny4xMDQgMTY1LjA4NCA4Ny43NzJhNjA0LjQ1MyA2MDQuNDUzIDAgMCAwIDE5Mi45NSA0MS41NDVsNDIuMDU4LjczMS4yMiA0MjguODM3YzAgMjE1LjMzMy0yNzYuNyA0NDMuMS00MjUuNjkyIDQ0My4xTTE1OS44OSAyMzAuODM4djM0Ni42OTdjMCAxNjYuNTQ2IDI0MS4wOCAzNTcuMDgzIDMzOS42NzYgMzU3LjA4MyA5OC41OTYgMCAzMzkuNjc1LTE5MC41MzcgMzM5LjY3NS0zNTcuMDgzVjIzMC44MzlhNjkxLjYzOSA2OTEuNjM5IDAgMCAxLTE4MS40NjctNDQuODM3IDEwMDEuNjkxIDEwMDEuNjkxIDAgMCAxLTE1OC4yMDgtODAuOTY5Yy0yOS45ODkgMTkuMTY0LTg1LjI4NSA1MS4zNDYtMTU3Ljk4OSA4MC45N2E2OTEuNzEyIDY5MS43MTIgMCAwIDEtMTgxLjY4NyA0NC44MzZtMzE3LjAwMSA1MDcuOTA0TDI5Ni4yMyA1ODQuNzc3bDU1LjU4OC02NS4zMTYgMTE1LjcxMiA5OC41OTYgMjIwLjA4Ny0yNTMuNTEzIDY0Ljk1IDU2LjM5My0yNzUuNjc1IDMxNy44MDYiIGZpbGw9IiMxNjVERkYiIGZpbGwtb3BhY2l0eT0iLjgiLz48L3N2Zz4=",qt=["competitions","globalSetting","loading","dispatch","user"],Qt=[{id:"",name:"全部"},{id:1,name:"战队名称"},{id:2,name:"队长姓名"},{id:3,name:"指导老师"}],Gt={teacher:"教师",student:"学生",professional:"专业人士"},Ut=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n=e.competitions,t=(e.globalSetting,e.loading,e.dispatch,e.user,p()(e,qt),(0,_.useParams)().identifier),i=n.Header,s=(n.RightItems,n.Staff,n.Prizes,n.Account,(0,m.useState)([])),a=d()(s,2),c=a[0],u=a[1],h=(0,m.useState)({page:1,per_page:10,keyword:"",type:"",isteam:"mine"}),f=d()(h,2),v=f[0],g=f[1],j=(0,m.useState)(!1),w=d()(j,2),Z=w[0],k=w[1];function I(){return A.apply(this,arguments)}function A(){return(A=r()(o()().mark((function e(){var n,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(!0),n="mine"===v.isteam?"/api/competitions/".concat(t,"/competition_teams.json"):"/api/competitions/".concat(t,"/all_team_members.json"),e.next=4,(0,Ze.ZP)(n,{method:"get",params:v});case 4:i=e.sent,k(!1),0===(null==i?void 0:i.status)&&u(i);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,m.useEffect)((function(){I()}),[i]);var S=[{title:"序号",align:"left",dataIndex:"name",width:62,render:function(e,n,t){return(0,xe.jsx)("span",{style:{color:"#000000"},children:t+1})}},{title:"战队ID",align:"left",dataIndex:"competition_team_id",width:72,render:function(e){return(0,xe.jsx)("span",{style:{color:"#000000"},children:e||"- -"})}},{title:"战队名称",align:"left",dataIndex:"team_name",width:175,ellipsis:{showTitle:!1},render:function(e){return(0,xe.jsx)(y.Z,{placement:"topLeft",title:e,children:(0,xe.jsx)("span",{style:{color:"#000"},children:e||"- -"})})}},{title:"队员姓名",align:"left",dataIndex:"name",width:110,ellipsis:{showTitle:!1},render:function(e,n){return(0,xe.jsxs)("span",{style:{color:"#000000"},children:[e||"- -",(null==n?void 0:n.authentication)&&(0,xe.jsx)(y.Z,{title:"已实名认证",children:(0,xe.jsx)("img",{src:Ht,style:{marginLeft:5,marginTop:"-2px"}})})]})}},{title:"个人成绩",dataIndex:"score",width:86,render:function(e){return(0,xe.jsx)("span",{style:{color:"#000000"},children:(null==e?void 0:e.toString())||"- -"})}},{title:"职业",align:"left",dataIndex:"identity",width:102,render:function(e,n){return(0,xe.jsxs)("span",{style:{color:"#000000"},children:[Gt[e],(null==n?void 0:n.professional_certification)&&(0,xe.jsx)(y.Z,{title:"已职业认证",children:(0,xe.jsx)("img",{src:Ht,style:{marginLeft:5,marginTop:"-2px"}})})]})}},{title:"手机号",align:"left",dataIndex:"phone",width:120,render:function(e){return(0,xe.jsx)("span",{style:{color:"#666666"},children:e||"- -"})}},{title:"学号/工号",align:"left",width:110,ellipsis:{showTitle:!1},dataIndex:"student_id",render:function(e){return(0,xe.jsx)("span",{style:{color:"#666666"},children:e||"- -"})}},{title:"学校/单位",align:"left",dataIndex:"school",ellipsis:{showTitle:!1},render:function(e,n){var t,l,s,o,a,r,c;return(0,xe.jsx)(y.Z,{placement:"topLeft",title:null!=i&&null!==(t=i.need_apply_info)&&void 0!==t&&t.need_apply_school?(null==n||null===(l=n.apply_info)||void 0===l?void 0:l.school)||"--":e||"--",children:(0,xe.jsx)("span",{style:{color:"#666666"},children:null!=i&&null!==(s=i.need_apply_info)&&void 0!==s&&s.need_apply_school?null!==(o=n.apply_info)&&void 0!==o&&o.school?(null===(a=n.apply_info)||void 0===a?void 0:a.school.length)>6?(null===(r=n.apply_info)||void 0===r?void 0:r.school.substring(0,6))+"...":null===(c=n.apply_info)||void 0===c?void 0:c.school:"--":e?e.length>6?e.substring(0,6)+"...":e:"--"})})}},{title:"地区",align:"left",dataIndex:"province",width:58,render:function(e){return(0,xe.jsx)("span",{style:{color:"#666666"},children:e||"- -"})}},{title:"操作",align:"right",dataIndex:"is_cancel_score",width:120,render:function(e,n){return(0,xe.jsx)("span",{children:0===e?(0,xe.jsx)("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:function(){var e;x.Z.confirm({icon:null,title:"取消成绩",content:"请确认是否取消该成员成绩,取消后该成员的成绩将不能用于团队成绩。",onOk:(e=r()(o()().mark((function e(){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(t,"/set_score_status.json"),{method:"put",body:{competition_score_id:null==n?void 0:n.competition_score_id,is_cancel_score:1}});case 2:0===(null==(i=e.sent)?void 0:i.status)&&(v.page=1,g(l()({},v)),I());case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"取消成绩"}):(0,xe.jsx)("span",{onClick:r()(o()().mark((function e(){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(t,"/set_score_status.json"),{method:"put",body:{competition_score_id:null==n?void 0:n.competition_score_id,is_cancel_score:0}});case 2:0===(null==(i=e.sent)?void 0:i.status)&&(v.page=1,g(l()({},v)),I());case 4:case"end":return e.stop()}}),e)}))),style:{color:"#FD9200",cursor:"pointer"},children:"恢复成绩"})})}}],C=[{title:"序号",align:"left",dataIndex:"name",width:72,render:function(e,n,t){return(0,xe.jsx)("span",{style:{color:"#000000"},children:t+1})}},{title:"战队ID",align:"left",dataIndex:"id",width:113,render:function(e){return(0,xe.jsx)("span",{style:{color:"#000000"},children:e||"- -"})}},{title:"战队名称",align:"left",dataIndex:"name",width:167,render:function(e){return(0,xe.jsx)("span",{style:{color:"#000000"},children:null==e?void 0:e.toString()})}},{title:"战队成绩",align:"left",dataIndex:"score",width:136,render:function(e){return(0,xe.jsx)("span",{style:{color:"#000000"},children:e})}},{title:"队长姓名",align:"left",dataIndex:"leader_name",width:149,ellipsis:{showTitle:!1},render:function(e,n){return(0,xe.jsx)(y.Z,{placement:"topLeft",title:e,children:(0,xe.jsx)("span",{style:{color:"#666666"},children:e||"- -"})})}},{title:"指导老师",align:"left",dataIndex:"mail",width:150,ellipsis:{showTitle:!1},render:function(e,n){var t,i;return(0,xe.jsx)(y.Z,{placement:"topLeft",title:(null==n||null===(t=n.team_members)||void 0===t||null===(t=t.filter((function(e){return null==e?void 0:e.is_tutor_teacher})))||void 0===t?void 0:t.map((function(e){return e.name})).toString())||"- -",children:(0,xe.jsx)("span",{style:{color:"#666666"},children:(null==n||null===(i=n.team_members)||void 0===i||null===(i=i.filter((function(e){return null==e?void 0:e.is_tutor_teacher})))||void 0===i?void 0:i.map((function(e){return e.name})).toString())||"- -"})})}},{title:"战队人数",align:"left",dataIndex:"mail",width:125,render:function(e,n){var t;return(0,xe.jsx)("span",{style:{color:"#666666"},children:(null==n||null===(t=n.team_members)||void 0===t?void 0:t.length)||"- -"})}},{title:"报名时间",align:"left",dataIndex:"created_at",width:165,render:function(e){return(0,xe.jsx)("span",{style:{color:"#666666"},children:e||"- -"})}},{title:"操作",align:"right",dataIndex:"is_cancel_score",render:function(e,n){return(0,xe.jsx)("span",{children:0===e||!1===e?(0,xe.jsx)("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:function(){var e;x.Z.confirm({icon:null,centered:!0,title:"取消成绩",content:"请确认是否取消该战队成绩,取消后该战队的成绩在排行榜将视为无成绩,不进行排名。",onOk:(e=r()(o()().mark((function e(){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(t,"/set_score_status.json"),{method:"put",body:{competition_team_id:null==n?void 0:n.id,is_cancel_score:1}});case 2:0===(null==(i=e.sent)?void 0:i.status)&&(v.page=1,g(l()({},v)),I());case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"取消成绩"}):(0,xe.jsx)("span",{onClick:r()(o()().mark((function e(){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(t,"/set_score_status.json"),{method:"put",body:{competition_team_id:null==n?void 0:n.id,is_cancel_score:0}});case 2:0===(null==(i=e.sent)?void 0:i.status)&&(v.page=1,g(l()({},v)),I());case 4:case"end":return e.stop()}}),e)}))),style:{color:"#FD9200",cursor:"pointer"},children:"恢复成绩"})})}}];return(0,xe.jsxs)("div",{style:{padding:"15px 0",width:"1200px",margin:"auto"},children:[(0,xe.jsxs)("div",{style:{display:"flex",marginTop:"-10px"},children:[(0,xe.jsx)("div",{children:3!==(null==i?void 0:i.mode)?(0,xe.jsx)(b.ZP.Group,{className:Yt.scoreByBlankRadio,optionType:"button",options:[{label:"战队信息",value:"mine"},{label:"队员信息",value:"join"}],onChange:function(e){v.isteam=e.target.value,v.page=1,I()},value:v.isteam}):(0,xe.jsx)(b.ZP.Group,{className:Yt.scoreByBlankRadio,optionType:"button",options:[{label:"战队信息",value:"mine"}],onChange:function(e){v.isteam=e.target.value,v.page=1,I()},value:v.isteam})}),(0,xe.jsxs)("div",{style:{flex:1,textAlign:"end",display:"flex",justifyContent:"end"},children:[(0,xe.jsx)(N.t7,{style:{width:327,marginRight:20},dataSource:Qt,value:{id:v.type,value:v.keyword},onChange:function(e,n){v.keyword=e,v.type=n||"",g(l()({},v)),I()},placeholder:"请输入搜索内容"}),(0,xe.jsx)("span",{className:Yt.button,onClick:function(){var e="mine"===v.isteam?"/api/competitions/".concat(t,"/competition_teams.xlsx"):"/api/competitions/".concat(t,"/all_team_members.xlsx");(0,he.FH)("",(0,he.NY)({url:me.Z.API_SERVER+e,query:l()({},v)}))},children:"导出"})]})]}),(0,xe.jsx)(re.Z,{loading:Z,columns:"mine"===v.isteam?C:S,dataSource:"mine"===v.isteam?null==c?void 0:c.competition_teams:null==c?void 0:c.data,pagination:!1}),(0,xe.jsx)("div",{className:Yt.countWrap,style:{marginTop:20},children:(0,xe.jsx)(dn.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showTotal:function(e){return(0,xe.jsxs)("div",{style:{fontSize:14},children:["共 ",(0,xe.jsx)("span",{style:{color:"#165DFF"},children:e})," 条数据"]})},showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],total:null==c?void 0:c.count,onChange:function(e,n){v.page=e,v.per_page=n,g(l()({},v)),I()},pageSize:v.per_page,current:v.page})})]})})),Wt=t(38854),Jt=t(60324),Kt=t(680),Xt=t(56102),$t=t(33555),ei=(t(62642),t(89392)),ni=["competitions","globalSetting","loading","dispatch","user"],ti=h.default.Option,ii=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n,t,i,s,a,c,u,g,k,I,A,S,C,F,P,T,R,E,D,B,V,z,M,O,Y,H,q,Q,G=e.competitions,U=(e.globalSetting,e.loading,e.dispatch),W=e.user,J=(p()(e,ni),(0,_.useParams)().identifier),K=G.Header,X=G.competition_team,$=G.Staff,ee=(G.Prizes,G.Account,(0,m.useState)({page:1,per_page:10,keyword:"",type:1,isteam:"mine"})),ne=d()(ee,2),te=ne[0],ie=ne[1],le=(0,m.useState)([]),se=d()(le,2),ce=se[0],de=se[1],ue=(0,m.useState)([]),pe=d()(ue,2),_e=pe[0],he=pe[1],ve=(0,m.useState)(!1),ge=d()(ve,2),ye=ge[0],je=ge[1],be=(0,m.useState)([]),we=d()(be,2),ke=we[0],Ne=we[1],Ie=(0,m.useState)([]),Ae=d()(Ie,2),Se=Ae[0],Ce=Ae[1],Fe=(0,m.useState)(!1),Pe=d()(Fe,2),Te=Pe[0],Re=Pe[1],Ee=(0,m.useState)(""),Le=d()(Ee,2),De=Le[0],Be=Le[1],Ve=(0,m.useState)(""),ze=d()(Ve,2),Me=ze[0],Oe=ze[1],Ye=(0,m.useState)([]),He=d()(Ye,2),qe=He[0],Qe=He[1],Ge=(0,m.useState)(!1),Ue=d()(Ge,2),We=Ue[0],Je=Ue[1],Ke=(0,m.useState)([]),Xe=d()(Ke,2),$e=Xe[0],en=Xe[1],nn=(0,m.useRef)(),tn=(0,m.useState)(""),ln=d()(tn,2),sn=(ln[0],ln[1]),on=(0,m.useRef)(""),an=(0,m.useState)(!0),rn=d()(an,2),cn=rn[0],pn=rn[1],mn=(0,m.useState)(!1),_n=d()(mn,2),hn=_n[0],fn=_n[1],xn=f.Z.useForm(),vn=d()(xn,1)[0],gn=(0,m.useState)(),yn=d()(gn,2),jn=yn[0],bn=yn[1],wn=(0,m.useRef)(null),Zn=(0,m.useState)(),kn=d()(Zn,2),Nn=kn[0],In=kn[1],An=(0,m.useState)(1),Sn=d()(An,2),Cn=Sn[0],Fn=Sn[1],Pn=(0,m.useState)(!1),Tn=d()(Pn,2),Rn=Tn[0],En=Tn[1],Ln=(0,m.useState)([]),Dn=d()(Ln,2),Bn=Dn[0],Vn=Dn[1],zn=(0,m.useRef)((0,ei.throttle)((function(e){return qn(e)}),1200,{leading:!0,trailing:!0})).current,Mn=(0,m.useState)([]),On=d()(Mn,2),Yn=On[0],Hn=On[1],qn=function(){var e=r()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U({type:"account/getSchoolOption",payload:{keyword:n,limit:10,competition_id:null==K?void 0:K.identifier}});case 2:t=e.sent,Vn(null==t?void 0:t.schools),n&&""!=n&&Hn(null==t||null===(i=t.schools)||void 0===i?void 0:i.filter((function(e){return e.name.includes(n)})));case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){var e,n,t,i,l,s,o,a,r;(null!=K&&null!==(e=K.need_apply_info)&&void 0!==e&&e.need_apply_name||null!=K&&null!==(n=K.need_apply_info)&&void 0!==n&&n.need_apply_teacher_phone||null!=K&&null!==(t=K.need_apply_info)&&void 0!==t&&t.need_apply_student_id||null!=K&&null!==(i=K.need_apply_info)&&void 0!==i&&i.need_apply_sex||null!=K&&null!==(l=K.need_apply_info)&&void 0!==l&&l.need_apply_phone||null!=K&&null!==(s=K.need_apply_info)&&void 0!==s&&s.need_apply_grade||null!=K&&null!==(o=K.need_apply_info)&&void 0!==o&&o.need_apply_teacher_name||null!=K&&null!==(a=K.need_apply_info)&&void 0!==a&&a.need_apply_school)&&qn(1===(null==K?void 0:K.region_rule)||"81bjsjjs"===(null==K?void 0:K.identifier)?"":null==W||null===(r=W.userInfo)||void 0===r?void 0:r.school_name)}),[(null==K||null===(n=K.need_apply_info)||void 0===n?void 0:n.need_apply_name)||(null==K||null===(t=K.need_apply_info)||void 0===t?void 0:t.need_apply_teacher_phone)||(null==K||null===(i=K.need_apply_info)||void 0===i?void 0:i.need_apply_student_id)||(null==K||null===(s=K.need_apply_info)||void 0===s?void 0:s.need_apply_sex)||(null==K||null===(a=K.need_apply_info)||void 0===a?void 0:a.need_apply_phone)||(null==K||null===(c=K.need_apply_info)||void 0===c?void 0:c.need_apply_grade)||(null==K||null===(u=K.need_apply_info)||void 0===u?void 0:u.need_apply_teacher_name)||(null==K||null===(g=K.need_apply_info)||void 0===g?void 0:g.need_apply_school)]);function Qn(){return Gn.apply(this,arguments)}function Gn(){return(Gn=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:U({type:"competitions/competition_teams",payload:l()(l()({},te),{},{identifier:J})});case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Un(e){return Wn.apply(this,arguments)}function Wn(){return Wn=r()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U({type:"competitions/getStudents",payload:{identifier:J,keyword:Me,team_id:$e,page:n}});case 2:return(i=e.sent)&&Qe(1===n?L()(i.teachers):[].concat(L()(qe),L()(i.teachers))),e.abrupt("return",!((null===(t=i.teachers)||void 0===t?void 0:t.length)<20));case 5:case"end":return e.stop()}}),e)}))),Wn.apply(this,arguments)}(0,m.useEffect)((function(){hn||(bn(""),sn(""),on.current="")}),[hn]),(0,m.useEffect)((function(){Qn()}),[K]);var Jn,Xn=function(){var e=r()(o()().mark((function e(){var n,t,i,l=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=l.length>0&&void 0!==l[0]&&l[0])&&!cn||Rn){e.next=10;break}return En(!0),Fn(n?1:Cn+1),e.next=6,U({type:"competitions/getTeacher",payload:{identifier:J,keyword:De,team_id:$e,page:n?1:Cn+1}});case 6:i=e.sent,Ce(n?L()(i.teachers):[].concat(L()(Se),L()(i.teachers))),En(!1),(null===(t=i.teachers)||void 0===t?void 0:t.length)<20&&pn(!1);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$n=function(){var e=r()(o()().mark((function e(){var n,t,i,l=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=l.length>0&&void 0!==l[0]&&l[0])&&!cn||Rn){e.next=10;break}return En(!0),Fn(n?1:Cn+1),e.next=6,U({type:"competitions/getStudents",payload:{identifier:J,keyword:Me,team_id:$e,page:n?1:Cn+1}});case 6:i=e.sent,Qe(n?L()(i.teachers):[].concat(L()(qe),L()(i.teachers))),En(!1),(null===(t=i.teachers)||void 0===t?void 0:t.length)<20&&pn(!1);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function et(e){return nt.apply(this,arguments)}function nt(){return nt=r()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U({type:"competitions/getTeacher",payload:{identifier:J,keyword:De,team_id:$e,page:n}});case 2:return(i=e.sent)&&Ce(1===n?L()(i.teachers):[].concat(L()(Se),L()(i.teachers))),e.abrupt("return",!((null===(t=i.teachers)||void 0===t?void 0:t.length)<20));case 5:case"end":return e.stop()}}),e)}))),nt.apply(this,arguments)}return(0,xe.jsxs)("div",{style:{padding:"20px",width:"100%"},children:[(0,xe.jsxs)("div",{style:{display:"flex",marginBottom:10},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"baseline",zIndex:0},children:[((0,fe.eB)()||(null==K||null===(k=K.permission)||void 0===k?void 0:k.editable))&&(0,xe.jsx)(b.ZP.Group,{className:Yt.scoreByBlankRadio,optionType:"button",options:[{label:"我的战队",value:"mine"},{label:"全部战队",value:"join"}],onChange:function(e){te.isteam=e.target.value,te.keyword="",te.type="",te.page=1,Qn()},value:te.isteam}),"mine"===te.isteam&&!((0,fe.eB)()||null!=K&&null!==(I=K.permission)&&void 0!==I&&I.editable)&&(0,xe.jsxs)("span",{style:{fontSize:14},children:["我的战队(",null==X?void 0:X.my_teams_count,")"]}),"join"===te.isteam&&(0,xe.jsxs)("div",{style:{marginLeft:30,color:"#5F6368"},children:[(0,xe.jsx)("span",{children:"战队总数"}),(0,xe.jsx)("span",{style:{color:"#165DFF"},children:null==X?void 0:X.count}),(0,xe.jsx)("span",{style:{marginRight:20},children:"个"}),(0,xe.jsx)("span",{children:"参赛总人数"}),(0,xe.jsx)("span",{style:{color:"#165DFF"},children:null==X?void 0:X.members_count}),(0,xe.jsx)("span",{children:"个"})]})]}),(0,xe.jsxs)("div",{style:{flex:1,textAlign:"end",display:"flex",justifyContent:"end"},children:["join"===te.isteam&&(0,xe.jsx)(N.t7,{style:{width:379},dataSource:[],value:{id:te.type,value:te.keyword},onChange:function(e,n){te.keyword=e,te.page=1,te.type=4,ie(l()({},te)),Qn()},placeholder:"请输入战队名称或成员姓名进行搜索"}),"mine"===te.isteam&&(null==X||null===(A=X.my_teams)||void 0===A?void 0:A.filter((function(e){return!e.active})).length)>0&&(0,xe.jsxs)("span",{style:{fontSize:14,color:"#FA6400"},children:[(0,xe.jsx)(Kt.Z,{style:{marginRight:6,fontSize:14}})," 您有",null==X||null===(S=X.my_teams)||void 0===S?void 0:S.filter((function(e){return!e.active})).length,"个战队未满足参赛要求!为了不影响成绩,请设置战队成员"]})]})]}),"mine"===(null==te?void 0:te.isteam)&&(0,xe.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:null==X||null===(C=X.my_teams)||void 0===C?void 0:C.map((function(e,n){var t;return(0,xe.jsxs)("div",{className:"p20",style:{border:"1px solid #F6F7F9"},children:[(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",gutter:30,children:[(0,xe.jsx)(ae.Z,{flex:"600px",children:(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",gutter:10,children:[(0,xe.jsx)(ae.Z,{children:null!=e&&e.team_log?(0,xe.jsx)("img",{width:56,height:56,style:{borderRadius:"50%"},src:me.Z.IMG_SERVER+"/"+(null==e?void 0:e.team_log)}):(0,xe.jsx)("div",{style:{background:"#4EACFF",color:"#fff",display:"flex",alignItems:"center",justifyContent:"center",width:56,height:56,borderRadius:"50%"},children:e.name.length>2?e.name.substring(0,2):e.name})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",gutter:10,children:[(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(y.Z,{title:null==e?void 0:e.name,children:(0,xe.jsx)("span",{className:"multi_ellipsis1",style:{color:"#232B40"},children:null==e?void 0:e.name})})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)("i",{onClick:function(){"ended"!=(null==K?void 0:K.competition_status)?(fn(!0),In(e)):v.ZP.warning("竞赛已结束,无法编辑相关信息")},style:{color:"#165DFF",cursor:"pointer"},className:"iconfont icon-bianji10 font14"})})]})})]})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsxs)("span",{style:{color:"#5F6367",marginLeft:"50px"},children:[(0,xe.jsx)("span",{children:"邀请码"}),(0,xe.jsx)("span",{style:{margin:"0px 10px",color:"#3061D0",fontWeight:"bold"},title:e.invite_code,children:e.invite_code||"--"}),(0,xe.jsx)(Xt.CopyToClipboard,{text:"【竞赛邀请】".concat(null==W||null===(t=W.userInfo)||void 0===t?void 0:t.username,"邀请您加入【").concat(null==K?void 0:K.name,"】-《").concat(null==e?void 0:e.name,"》战队,您可以访问下方的链接,以队员的身份加入该战队。”链接:").concat(window.location.origin).concat(window.location.pathname,"?code=").concat(e.invite_code),onCopy:function(){return v.ZP.success("复制成功")},children:(0,xe.jsx)("i",{className:"iconfont icon-fuzhi font-14",style:{display:"inline-block",color:"#0152d9",cursor:"pointer"}})})]})}),(0,xe.jsx)(ae.Z,{flex:1,children:(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",justify:"end",gutter:20,children:[(null==e?void 0:e.manage_permission)&&(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)("div",{className:Yt.add_members,onClick:function(){he(structuredClone(null==e?void 0:e.team_members)),en(null==e?void 0:e.id),Ne(e)},children:"添加成员"})}),!(null!=e&&e.active)&&(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(Kt.Z,{style:{color:"#FA6400"}})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)("div",{className:Yt.back_manage,onClick:function(){var n;x.Z.confirm({title:null!=e&&e.manage_permission?"解散战队":"退出战队",content:"是否确认".concat(null!=e&&e.manage_permission?"解散":"退出","战队"),okButtonProps:{loading:ye},onOk:(n=r()(o()().mark((function n(){var t,i;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(je(!0),null==e||!e.manage_permission){n.next=8;break}return n.next=4,U({type:"competitions/DeleteTeam",payload:{identifier:J,id:null==e?void 0:e.id}});case 4:(t=n.sent)&&0===t.status&&(v.ZP.info("解散成功"),U({type:"competitions/getStaff",payload:{identifier:J}}),U({type:"competitions/getHeader",payload:{identifier:J}})),n.next=12;break;case 8:return n.next=10,U({type:"competitions/ExitTeam",payload:{identifier:J,id:null==e?void 0:e.id}});case 10:(i=n.sent)&&0===i.status&&(v.ZP.info("退出战队成功"),U({type:"competitions/getStaff",payload:{identifier:J}}),U({type:"competitions/getHeader",payload:{identifier:J}}));case 12:je(!1);case 13:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})},children:null!=e&&e.manage_permission?"解散战队":"退出战队"})})]})})]}),(0,xe.jsx)(re.Z,{dataSource:null==e?void 0:e.team_members,pagination:!1,style:{marginTop:"20px"},scroll:{y:300},columns:[{title:"战队成员",align:"left",dataIndex:"name",render:function(e){return(0,xe.jsx)(y.Z,{title:e,children:(0,xe.jsx)("span",{children:(null==e?void 0:e.length)>6?(null==e?void 0:e.substring(0,6))+"...":e||"- -"})})}},{title:"学号/工号",align:"left",ellipsis:{showTitle:!0},dataIndex:"student_id",render:function(e,n){return e||"- -"}},{title:"手机",align:"left",dataIndex:"phone",ellipsis:{showTitle:!0},render:function(e){return(0,xe.jsx)("span",{children:e||"- -"})}},{title:"学校/单位",align:"left",dataIndex:"school_name",render:function(e,n){var t,i,l,s,o,a,r;return(0,xe.jsx)(y.Z,{title:null!=K&&null!==(t=K.need_apply_info)&&void 0!==t&&t.need_apply_school?(null==ce||null===(i=ce.apply_info)||void 0===i?void 0:i.school)||"--":e||"--",children:(0,xe.jsx)("span",{children:null!=K&&null!==(l=K.need_apply_info)&&void 0!==l&&l.need_apply_school?null!==(s=ce.apply_info)&&void 0!==s&&s.school?(null===(o=ce.apply_info)||void 0===o?void 0:o.school.length)>6?(null===(a=ce.apply_info)||void 0===a?void 0:a.school.substring(0,6))+"...":null===(r=ce.apply_info)||void 0===r?void 0:r.school:"--":e?e.length>6?e.substring(0,6)+"...":e:"--"})})}},{title:"专业",align:"left",ellipsis:{showTitle:!0},dataIndex:"major_name",render:function(e,n){return e||"- -"}},{title:"职业",align:"left",ellipsis:{showTitle:!0},dataIndex:"identity",render:function(e,n){return e||"- -"}},{title:"角色",align:"left",dataIndex:"role",render:function(e,n){return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)("span",{style:{color:"leader"===e?"#3061D0":"#000000"},children:"leader"===e?"队长":null!=n&&n.is_tutor_teacher?"":"队员"}),(null==n?void 0:n.is_tutor_teacher)&&(0,xe.jsx)("span",{style:{color:"#00B187",marginLeft:"leader"===e?"10px":0},children:"指导教师"})]})}},(null==e?void 0:e.manage_permission)&&{title:"操作",align:"right",dataIndex:"role",render:function(n,t,i){return(0,xe.jsxs)("span",{style:{color:"#3061D0"},children:[("leader"!==n||(null==t?void 0:t.is_teacher))&&(0,xe.jsx)(Wt.Z,{dropdownRender:function(){return(0,xe.jsxs)(_t.Z,{children:["leader"!==n&&(0,xe.jsx)(_t.Z.Item,{style:{textAlign:"center"},children:(0,xe.jsx)("a",{onClick:r()(o()().mark((function n(){var i;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Ze.ZP)("/api/competitions/".concat(J,"/competition_teams/").concat(null==e?void 0:e.id,"/set_leader.json"),{method:"post",body:{user_id:null==t?void 0:t.user_id}});case 2:0===(null==(i=n.sent)?void 0:i.status)&&Qn();case 4:case"end":return n.stop()}}),n)}))),children:"设为队长"})},1),(null==t?void 0:t.is_teacher)&&(0,xe.jsx)(_t.Z.Item,{style:{textAlign:"center"},children:(0,xe.jsx)("a",{onClick:r()(o()().mark((function n(){var i;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Ze.ZP)("/api/competitions/".concat(J,"/competition_teams/").concat(null==e?void 0:e.id,"/set_tutor_teacher.json"),{method:"post",body:{user_id:null==t?void 0:t.user_id,is_tutor_teacher:null==t||!t.is_tutor_teacher}});case 2:0===(null==(i=n.sent)?void 0:i.status)&&(v.ZP.success(null!=t&&t.is_tutor_teacher?"取消成功":"设置成功"),Qn());case 4:case"end":return n.stop()}}),n)}))),children:null!=t&&t.is_tutor_teacher?"取消指导教师":"设为指导教师"})},2)]})},children:(0,xe.jsx)("a",{children:"修改角色"})}),"leader"!=n&&(0,xe.jsx)("a",{onClick:r()(o()().mark((function n(){var i;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,Ze.ZP)("/api/competitions/".concat(J,"/competition_teams/").concat(null==e?void 0:e.id,"/delete_team_member.json"),{method:"delete",body:{user_id:null==t?void 0:t.user_id}});case 2:0===(null==(i=n.sent)?void 0:i.status)&&(v.ZP.success("删除成功"),Qn());case 4:case"end":return n.stop()}}),n)}))),style:{marginLeft:20},children:"删除"})]})}}].filter((function(e){return!!e}))})]})}))}),"join"===(null==te?void 0:te.isteam)&&0===(null==X||null===(F=X.competition_teams)||void 0===F?void 0:F.length)&&(0,xe.jsx)(un.Z,{}),"mine"===(null==te?void 0:te.isteam)&&0===(null==X||null===(P=X.my_teams)||void 0===P?void 0:P.length)&&(0,xe.jsx)(un.Z,{}),"join"===(null==te?void 0:te.isteam)&&(null==X||null===(T=X.competition_teams)||void 0===T?void 0:T.length)>0&&(0,xe.jsx)(re.Z,{dataSource:null==X?void 0:X.competition_teams,pagination:!1,style:{marginTop:0},scroll:{y:300},columns:[{title:"战队名称",align:"left",dataIndex:"image_url",width:250,render:function(e,n){return(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[null!=n&&n.team_log?(0,xe.jsx)("img",{src:me.Z.IMG_SERVER+"/"+(null==n?void 0:n.team_log),style:{width:"30px",height:"30px",marginRight:"10px",borderRadius:"50%"}}):(0,xe.jsx)("div",{className:Yt.teams_img,children:n.name.length>2?n.name.substring(0,2):n.name}),(0,xe.jsx)(y.Z,{title:null==n?void 0:n.name,children:(0,xe.jsx)("div",{className:Yt.teamname,children:null==n?void 0:n.name})})]})}},{title:"队长",align:"left",dataIndex:"leader_name",render:function(e,n){return(0,xe.jsx)("div",{children:e})}},{title:"成员人数",align:"left",ellipsis:{showTitle:!0},render:function(e,n){var t;return(0,xe.jsx)("span",{children:null==n||null===(t=n.team_members)||void 0===t?void 0:t.length})}},{title:"成员",align:"left",width:600,render:function(e,n){var t;return(0,xe.jsx)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center"},children:null==n||null===(t=n.team_members)||void 0===t?void 0:t.map((function(e,n){return(0,xe.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",fontSize:"12px"},children:[(0,xe.jsx)("span",{style:{color:"leader"==(null==e?void 0:e.role)?"#3061D0":"#000000",marginLeft:"leader"==(null==e?void 0:e.role)?0:"10px"},children:null==e?void 0:e.name}),"leader"==(null==e?void 0:e.role)&&(0,xe.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAcCAYAAAA0u3w+AAAAAXNSR0IArs4c6QAACeNJREFUWEelWAtwVNUZ/v//bJZAEJEaqBBEopuwxQ5ExkKhCGoBGcIgtSA+OoP4oAXGFMgDpIUUArKEEOg0VNupilT7wFFSC5RXwstqFWygBfIAJiESQKogb0JyTz2ve8+92R2YMTOwd8/ee+75X9//fT8CAAx8bn9aC+AyIByOwO9ARAAEIP0pvwMAEoC4Ft+QUF3LL2Jd/6Y/xQKRfEzep+5BtYdeU3vo34Hr/cQ91vv1e8U+jNFFBGgC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CjRrxD89AYIkzhnDNJ9DVUSW6t9asi9Z6edRt9XKpm+F6AyQx+sTofyRmMSNUEeD+EYM2u4sw3Ve878ojjOJs073xt+9LIs2I9u6ixR/PVa4KQ9zRtiBFO3LAgXWbC2KLPBkEqHXh/avfL45d+1q+Vt1YRUR2Fw4+8O7PbMZMtk8pO9GxpxucReAESho2EM/3Q1bMaHAkp86b1oKlBg6IK0eiXu0r7FInrCSsa2585eflTQOijeh5xhjRqy5L0reL3MYvqoy3XnT2IvAsgfTpo2F0Dg+pbGru0oS9x+K92+peM4cR3ZqdtN0Y+XnpytIOORFpb5bs90awTVax9IVWR7ZvRg6YGZQTBiSGjz29JZvduejlyRrxsWG5NGSJM8wEUwemUFNbvb/PST48qPPY97vDNX2u7zkRwLTkl5c738r79uTn4U7/+otOFSxfGAuAkEXRzJmLUigB/IEpeCPCtL4FOHgTOewcVhKpDVw/yEJGSSzerBzt2bN9ZbHLtanOOA/xXWmnXsnDyKKf1+jjkfKU7gnGZvQSNbV8DQCEBbuQAnTxnwvyO0d6xq7WNoznnTwPxbARINsTABQ59cCK8Ahz/jQSDb6QHiahs7dSuSvDerB5UKaH87a9Z/B8QdpE6Wg6cAmNCuUatgq/akoaInQMAB5B38UG7La0klphhVZAnJ9CDDCsjmdbIIuHQKaAH2zRraYhm976ZqGFAai6aSA/6FYHFnKQHjaJRMxo/59TsKo4exHhDJzE2BIQnzNwkkR7UCOwqaf/Q1yO4Zkik7vcRX0n7PMmk6yXgHA8s/MzF7GeluKckGHFKNDbUU+39HESqeNIjqAfdpmoPdXWDJV8kgyNFb/pt60Gv8eu+5aOH3vDpRnqQCCuIhRIPfoVnpJGIy0TfRoQ7XO9bqtlupoEadIVxcO7iAYYaBXrk3Yq4VdcG+n3Rt6ZsiChH98jgOBBsDbNw+R+npUoykOjv/1r25y3TzRqlAAAAAElFTkSuQmCC",style:{width:"28px",height:"14px",marginLeft:"5px"}})]},n)}))})}},{title:"操作",align:"left",ellipsis:{showTitle:!0},width:70,render:function(e,n){return(0,xe.jsx)("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:function(){de(n)},children:"查看"})}}]}),(0,xe.jsx)("div",{className:Yt.countWrap,style:{marginTop:20},children:(0,xe.jsx)(dn.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],total:"mine"===te.isteam?null==X?void 0:X.my_teams_count:null==X?void 0:X.count,onChange:function(e,n){te.page=e,te.per_page=n,ie(l()({},te)),Qn()},pageSize:te.per_page,current:te.page})}),(0,xe.jsxs)(x.Z,{title:!1,footer:!1,open:(null==ce||null===(R=ce.team_members)||void 0===R?void 0:R.length)>0,width:1e3,className:Yt.scoremodal,closable:!1,centered:!0,onCancel:function(){return de([])},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("div",{className:Yt.title,children:null==ce?void 0:ce.name}),(0,xe.jsx)("span",{onClick:function(){return de([])},style:{cursor:"pointer"},className:Yt.close,children:(0,xe.jsx)("i",{className:"iconfont icon-danchuangguanbi"})})]}),(0,xe.jsx)(re.Z,{dataSource:null==ce?void 0:ce.team_members,pagination:!1,style:{marginTop:30},scroll:{y:300},columns:[{title:"姓名",align:"left",dataIndex:"name",render:function(e){return(0,xe.jsx)(y.Z,{title:e,children:(0,xe.jsx)("span",{children:(null==e?void 0:e.length)>6?(null==e?void 0:e.substring(0,6))+"...":e||"- -"})})}},{title:"手机",align:"left",dataIndex:"phone",ellipsis:{showTitle:!0},render:function(e){return(0,xe.jsx)("span",{children:e||"- -"})}},{title:"学校/单位",align:"left",dataIndex:"school_name",render:function(e,n){var t,i,l,s,o,a,r;return(0,xe.jsx)(y.Z,{title:null!=K&&null!==(t=K.need_apply_info)&&void 0!==t&&t.need_apply_school?(null==ce||null===(i=ce.apply_info)||void 0===i?void 0:i.school)||"--":e||"--",children:(0,xe.jsx)("span",{children:null!=K&&null!==(l=K.need_apply_info)&&void 0!==l&&l.need_apply_school?null!==(s=ce.apply_info)&&void 0!==s&&s.school?(null===(o=ce.apply_info)||void 0===o?void 0:o.school.length)>6?(null===(a=ce.apply_info)||void 0===a?void 0:a.school.substring(0,6))+"...":null===(r=ce.apply_info)||void 0===r?void 0:r.school:"--":e?e.length>6?e.substring(0,6)+"...":e:"--"})})}},{title:"专业",align:"left",ellipsis:{showTitle:!0},dataIndex:"major_name",render:function(e,n){return e||"- -"}},{title:"职业",align:"left",ellipsis:{showTitle:!0},dataIndex:"identity",render:function(e,n){return e||"- -"}},{title:"学号",align:"left",ellipsis:{showTitle:!0},dataIndex:"student_id",render:function(e,n){return e||"- -"}},{title:"角色",align:"left",dataIndex:"role",width:115,render:function(e,n){return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)("span",{style:{color:"leader"===e?"#3061D0":"#000000"},children:"leader"===e?"队长":null!=n&&n.is_tutor_teacher?"":"队员"}),(null==n?void 0:n.is_tutor_teacher)&&(0,xe.jsx)("span",{style:{color:"#00B187",marginLeft:"leader"===e?"10px":0},children:"指导教师"})]})}}]})]}),(0,xe.jsx)(x.Z,{title:!1,footer:(0,xe.jsxs)("div",{className:Yt.bottom,children:[(0,xe.jsx)(Z.ZP,{onClick:function(){he([]),Je(!1),Re(!1),Oe(""),Be(""),Qn()},children:"取消"}),(0,xe.jsx)(Z.ZP,{loading:ye,type:"primary",onClick:r()(o()().mark((function e(){var n,t,i,l;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],t=[],i=[],_e&&_e.map((function(e,l){e.is_teacher?t.push(e.id):n.push(e.id),null!=e&&e.is_tutor_teacher&&i.push(e.id)})),e.next=6,U({type:"competitions/SubmitTeam",payload:{identifier:J,teamid:$e,member_ids:n,teacher_ids:t,tutor_teacher_ids:i,leader:nn.current}});case 6:(l=e.sent)&&0===l.status&&(v.ZP.info("修改成功"),he([]),Qn());case 8:case"end":return e.stop()}}),e)}))),children:"确认"})]}),open:(null==_e?void 0:_e.length)>0,width:1e3,className:Yt.scoremodal,closable:!1,destroyOnClose:!0,centered:!0,onCancel:function(){he([]),Ne([])},children:(0,xe.jsxs)("div",{onClick:function(){Re(!1),Je(!1)},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center",paddingTop:"10px"},children:[(0,xe.jsx)("div",{className:Yt.title,children:"设置战队成员"}),(0,xe.jsx)("span",{onClick:function(){Qn(),Re(!1),Je(!1),Oe(""),Be(""),he([]),Ne([])},style:{cursor:"pointer"},className:Yt.close,children:(0,xe.jsx)("i",{className:"iconfont icon-danchuangguanbi"})})]}),(0,xe.jsxs)("div",{style:{display:"flex",marginTop:30},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center",flex:1},children:[(0,xe.jsx)("span",{style:{color:"#5F6368"},children:"添加老师"}),(0,xe.jsx)(Jt.Z,{overlayStyle:{width:600},content:(0,xe.jsx)("div",{style:{maxHeight:260,overflow:"auto"},children:(0,xe.jsx)(Kn(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(e){Xn()},hasMore:cn,useWindow:!1,children:(0,xe.jsx)(re.Z,{showHeader:!1,pagination:!1,dataSource:Se,columns:[{align:"left",width:60,dataIndex:"image_url",render:function(e){return(0,xe.jsx)("img",{style:{marginLeft:"10px",marginRight:"3px"},className:Yt.loaderimg,src:me.Z.IMG_SERVER+"/images/"+"".concat(e)})}},{align:"left",dataIndex:"name"},{align:"left",dataIndex:"phone"},{align:"left",dataIndex:"identity"},{align:"left",dataIndex:"school_name"},{align:"left",dataIndex:"image_url",render:function(e,n){return(0,xe.jsx)("span",{className:Yt.task_hide,style:{textAlign:"left",width:"24%",color:n.enrolled?"#28be6c":n.enrolled||!1!==n.enrollable?"":"#F3730C",padding:"0px 5px",fontSize:"12px"},children:n.enrolled?"已加入本战队":n.enrolled||!1!==n.enrollable?"":"已加入其他战队"})}}],onRow:function(e){return{onClick:function(n){if(null!=e&&e.authentication||null==K||!K.is_authentication)if(e.enrolled)v.ZP.info("该用户已经加入战队");else if(e.need_mail)v.ZP.info("该用户没有邮箱");else if(e.need_phone)v.ZP.info("该用户没有手机号");else if((null==_e?void 0:_e.filter((function(n){return e.id===n.id})).length)>0)v.ZP.info("该用户已在战队列表,请不要重复添加");else{var t=_e;null!=e&&e.is_teacher&&(e.is_tutor_teacher=!0),t.push(e),Re(!1),he(L()(t))}else v.ZP.info("当前竞赛需要实名认证,该用户未进行实名认证不能参与。")}}}})})}),title:"",placement:"bottomLeft",open:Te,children:(0,xe.jsx)("div",{style:{marginLeft:16},className:Yt.searchWrap,children:(0,xe.jsx)(j.Z.Search,{placeholder:"请搜索教师姓名/手机号进行添加",size:"large",className:Yt.search,value:De,onChange:function(e){Be(e.target.value)},onSearch:function(e){Re(!0),Ce([]),Fn(1),et(1)},onBlur:function(){pn(!0),Fn(1),En(!1)},suffix:(0,xe.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(Yt.searchIcon),onClick:function(e){e.stopPropagation(),Re(!0),Ce([]),Fn(1),et(1)}})})})})]}),(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center",flex:1,justifyContent:"flex-end"},children:[(0,xe.jsx)("span",{style:{color:"#5F6368"},children:"添加学生/专业人士"}),(0,xe.jsx)(Jt.Z,{overlayStyle:{width:700},content:(0,xe.jsx)("div",{style:{maxHeight:260,overflow:"auto"},children:(0,xe.jsx)(Kn(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(e){$n()},hasMore:cn,useWindow:!1,children:(0,xe.jsx)(re.Z,{showHeader:!1,pagination:!1,dataSource:qe,columns:[{align:"left",width:60,dataIndex:"image_url",render:function(e){return(0,xe.jsx)("img",{style:{marginLeft:"10px",marginRight:"3px"},className:Yt.loaderimg,src:me.Z.IMG_SERVER+"/images/"+"".concat(e)})}},{align:"left",dataIndex:"name"},{align:"left",dataIndex:"phone"},{align:"left",dataIndex:"student_id"},{align:"left",dataIndex:"school_name"},{align:"left",dataIndex:"image_url",render:function(e,n){return(0,xe.jsx)("span",{className:Yt.task_hide,style:{textAlign:"left",width:"24%",color:n.enrolled?"#28be6c":n.enrolled||!1!==n.enrollable?"":"#F3730C",padding:"0px 5px",fontSize:"12px"},children:n.enrolled?"已加入本战队":n.enrolled||!1!==n.enrollable?"":"已加入其他战队"})}}],onRow:function(e){return{onClick:function(n){if(null!=e&&e.authentication||null==K||!K.is_authentication)if(e.enrolled)v.ZP.info("该用户已经加入战队");else if(e.need_mail)v.ZP.info("该用户没有邮箱");else if(e.need_phone)v.ZP.info("该用户没有手机号");else if((null==_e?void 0:_e.filter((function(n){return e.id===n.id})).length)>0)v.ZP.info("该用户已在战队列表,请不要重复添加");else{var t=_e;t.push(e),Je(!1),he(L()(t))}else v.ZP.info("当前竞赛需要实名认证,该用户未进行实名认证不能参与。")}}}})})}),title:"",placement:"bottomRight",open:We,children:(0,xe.jsx)("div",{style:{marginLeft:16},className:Yt.searchWrap,children:(0,xe.jsx)(j.Z.Search,{placeholder:"请搜索队员姓名/手机号并添加",size:"large",className:Yt.search,value:Me,onChange:function(e){Oe(e.target.value)},onSearch:function(e){Je(!0),Qe([]),Fn(1),Un(1)},onBlur:function(){pn(!0),Fn(1),En(!1)},suffix:(0,xe.jsx)("i",{className:"iconfont icon-sousuo9 font14 ".concat(Yt.searchIcon),onClick:function(e){e.stopPropagation(),Je(!0),Qe([]),Fn(1),Un(1)}})})})})]})]}),(0,xe.jsx)("div",{style:{display:"flex",marginBottom:"12px",marginTop:"20px"},children:(0,xe.jsxs)("p",{style:{flex:"1",color:"#666666"},children:[(0,xe.jsx)("span",{style:{color:"#9B9B9B"},children:"请添加战队成员:"}),$&&$.all_staff?(0,xe.jsxs)("span",{children:[$&&$.all_staff.minimum,"-",$&&$.all_staff.maximum,"名成员"]}):"",$&&$.teacher_staff?(0,xe.jsxs)("span",{children:[$&&$.teacher_staff.minimum,"-",$&&$.teacher_staff.maximum,"名教师"]}):"",$&&$.teacher_staff&&$.member_staff?"/":"",$&&$.member_staff?(0,xe.jsxs)("span",{children:[$&&$.member_staff.minimum,"-",$&&$.member_staff.maximum,"名学生"]}):""]})}),(0,xe.jsx)(re.Z,{dataSource:_e,pagination:!1,style:{marginTop:"-10px"},scroll:{y:300},columns:[{title:"头像",align:"left",width:60,dataIndex:"image_url",render:function(e,n){return(0,xe.jsx)("img",{className:Yt.loaderimg,style:{width:20,height:20},src:me.Z.IMG_SERVER+"/images/"+"".concat(e)})}},{title:"姓名",align:"left",dataIndex:"name",render:function(e){return(0,xe.jsx)(y.Z,{title:e,children:(0,xe.jsx)("span",{children:(null==e?void 0:e.length)>6?(null==e?void 0:e.substring(0,6))+"...":e||"- -"})})}},{title:"手机",align:"left",width:130,dataIndex:"phone",render:function(e){return(0,xe.jsx)(y.Z,{title:e,children:(0,xe.jsx)("span",{children:e||"- -"})})}},{title:"学校/单位",align:"left",dataIndex:"school_name",render:function(e,n){var t,i,l,s,o,a,r;return(0,xe.jsx)(y.Z,{title:null!=K&&null!==(t=K.need_apply_info)&&void 0!==t&&t.need_apply_school?(null==ke||null===(i=ke.apply_info)||void 0===i?void 0:i.school)||"--":e||"--",children:(0,xe.jsx)("span",{children:null!=K&&null!==(l=K.need_apply_info)&&void 0!==l&&l.need_apply_school?null!=ke&&null!==(s=ke.apply_info)&&void 0!==s&&s.school?(null==ke||null===(o=ke.apply_info)||void 0===o?void 0:o.school.length)>6?(null===(a=ke.apply_info)||void 0===a?void 0:a.school.substring(0,6))+"...":null===(r=ke.apply_info)||void 0===r?void 0:r.school:"--":(null==e?void 0:e.length)>6?(null==e?void 0:e.substring(0,6))+"...":e||"--"})})}},{title:"职业",align:"left",dataIndex:"identity",render:function(e,n){return e||"- -"}},{title:"学号",align:"left",dataIndex:"student_id",render:function(e,n){return e||"- -"}},{title:"角色",align:"left",dataIndex:"role",render:function(e,n){return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)("span",{style:{color:"leader"===e?"#3061D0":"#000000"},children:"leader"===e?"队长":null!=n&&n.is_tutor_teacher?"":"队员"}),(null==n?void 0:n.is_tutor_teacher)&&(0,xe.jsx)("span",{style:{color:"#00B187",marginLeft:"leader"===e?"10px":0},children:"指导教师"})]})}},{title:"操作",align:"right",dataIndex:"role",render:function(e,n,t){return(0,xe.jsxs)("span",{style:{color:"#3061D0"},children:[("leader"!==e||(null==n?void 0:n.is_teacher))&&(0,xe.jsx)(Wt.Z,{dropdownRender:function(){return(0,xe.jsxs)(_t.Z,{children:["leader"!==e&&(0,xe.jsx)(_t.Z.Item,{style:{textAlign:"center"},children:(0,xe.jsx)("a",{onClick:function(){var e=_e,i=_e&&_e.findIndex((function(e){return"leader"===e.role}));e[t].role="leader",e[i].role=e&&e[i].is_teacher?"teacher":"member";var l=e.sort((function(e,n){return e.creator?-1:1})).sort((function(e,n){return"leader"===e.role?-1:1}));he(L()(l)),nn.current=n.id},children:"设为队长"})},1),(null==n?void 0:n.is_teacher)&&(0,xe.jsx)(_t.Z.Item,{style:{textAlign:"center"},children:(0,xe.jsx)("a",{onClick:function(){var e=r()(o()().mark((function e(n){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(i=_e)[t].is_tutor_teacher=!i[t].is_tutor_teacher,he(L()(i)),nn.current=n.id;case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:null!=n&&n.is_tutor_teacher?"取消指导教师":"设为指导教师"})},2)]})},children:(0,xe.jsx)("a",{children:"修改角色"})}),"leader"!=e&&(0,xe.jsx)("a",{onClick:function(){var e=_e&&_e.filter((function(e){return e.id!=n.id}));he(L()(e))},style:{marginLeft:20},children:"删除"})]})}}]})]})}),(0,xe.jsxs)(x.Z,{title:!1,footer:!1,open:hn,width:700,className:Yt.scoremodal,closable:!1,destroyOnClose:!0,centered:!0,onCancel:function(){return fn(!1)},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("div",{className:Yt.title,children:"编辑战队"}),(0,xe.jsx)("span",{onClick:function(){return fn(!1)},style:{cursor:"pointer"},className:Yt.close,children:(0,xe.jsx)("i",{className:"iconfont icon-danchuangguanbi"})})]}),(0,xe.jsxs)("div",{className:Yt.content,children:[(0,xe.jsxs)(f.Z,{form:vn,layout:"vertical",initialValues:l()({name:null==Nn?void 0:Nn.name},null==Nn?void 0:Nn.apply_info),onFinish:function(){var e=r()(o()().mark((function e(n){var t,i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return je(!0),s=null===(t=Bn.find((function(e){return e.name===(null==n?void 0:n.school)})))||void 0===t?void 0:t.id,e.next=4,U({type:"competitions/UpTeam",payload:l()(l()({},n),{},{identifier:J,Teannameid:null==Nn?void 0:Nn.id,name:null==n?void 0:n.name,school_id:s,image:(null===(i=wn.current)||void 0===i||null===(i=i.getCroppedCanvas())||void 0===i?void 0:i.toDataURL("image/jpeg"))||""})});case 4:a=e.sent,je(!1),0===(null==a?void 0:a.status)&&(Qn(),fn(!1));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,xe.jsx)(f.Z.Item,{label:"战队名称",name:"name",rules:[{required:!0,validator:function(e,n){var t;return(null==n||null===(t=n.replaceAll(" ",""))||void 0===t?void 0:t.length)>0?Promise.resolve():Promise.reject("请填写竞赛名称")}}],children:(0,xe.jsx)(j.Z,{maxLength:60,className:Yt.baseFormItem,showCount:!0})}),(null==K||null===(E=K.need_apply_info)||void 0===E?void 0:E.need_apply_name)&&(0,xe.jsx)(f.Z.Item,{label:"参赛人员姓名",name:"real_name",className:Yt.jsinput,rules:[{required:!0,message:"请输入参赛人员姓名"},{whitespace:!0,message:"姓名不能为空"}],children:(0,xe.jsx)(j.Z,{className:Yt.baseFormItem,placeholder:"请输入参赛人员姓名",showCount:!0,maxLength:60})}),(null==K||null===(D=K.need_apply_info)||void 0===D?void 0:D.need_apply_sex)&&(0,xe.jsx)(f.Z.Item,{label:"性别",name:"sex",className:Yt.jsinput,rules:[{required:!0,message:"请选择参赛人员性别"}],children:(0,xe.jsxs)(b.ZP.Group,{children:[(0,xe.jsx)(b.ZP,{value:0,children:"男"}),(0,xe.jsx)(b.ZP,{value:1,children:"女"})]})}),(null==K||null===(B=K.need_apply_info)||void 0===B?void 0:B.need_apply_student_id)&&(0,xe.jsx)(f.Z.Item,{label:"学号",name:"student_id",className:Yt.jsinput,rules:[{required:!0,message:"请输入参赛人员学号"},{whitespace:!0,message:"学号不能为空"}],children:(0,xe.jsx)(j.Z,{className:Yt.baseFormItem,placeholder:"请输入参赛人员学号",showCount:!0,maxLength:60})}),(null==K||null===(V=K.need_apply_info)||void 0===V?void 0:V.need_apply_phone)&&(0,xe.jsx)(f.Z.Item,{label:"电话",name:"phone",className:Yt.jsinput,rules:[{required:!0,message:"请输入参赛人员电话"},{whitespace:!0,message:"电话不能为空"}],children:(0,xe.jsx)(j.Z,{className:Yt.baseFormItem,placeholder:"请输入参赛人员电话",showCount:!0,maxLength:60})}),(null==K||null===(z=K.need_apply_info)||void 0===z?void 0:z.need_apply_grade)&&(0,xe.jsx)(f.Z.Item,{label:"年级",name:"grade",className:Yt.jsinput,rules:[{required:!0,message:"请选择参赛人员年级"}],children:(0,xe.jsx)(h.default,{disabled:"81bjsjjs"===K.identifier,placeholder:"请选择参赛人员年级",size:"large",children:(Jn=(new Date).getFullYear(),Array(31).fill({}).map((function(e,n){return(0,xe.jsx)(ti,{value:Jn-n,children:(0,xe.jsx)("span",{children:Jn-n})},n)})))})}),(null==K||null===(M=K.need_apply_info)||void 0===M?void 0:M.need_apply_teacher_name)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师姓名",name:"teacher_name",className:Yt.jsinput,rules:[{required:!0,message:"请输入指导老师姓名"},{whitespace:!0,message:"指导老师姓名不能为空"}],children:(0,xe.jsx)(j.Z,{className:Yt.baseFormItem,placeholder:"请输入指导老师姓名",showCount:!0,maxLength:60})}),(null==K||null===(O=K.need_apply_info)||void 0===O?void 0:O.need_apply_teacher_phone)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师联系方式",name:"teacher_phone",rules:[{required:!0,message:"请输入指导老师联系方式"},{whitespace:!0,message:"指导老师联系方式不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入指导老师联系方式",showCount:!0,maxLength:60})}),(null==K||null===(Y=K.need_apply_info)||void 0===Y?void 0:Y.need_apply_school)&&1!==(null==K?void 0:K.region_rule)&&"81bjsjjs"!==K.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(w.Z,{size:"large",showSearch:!0,disabled:"81bjsjjs"===K.identifier,onChange:function(e){return zn(e)},children:Yn.map((function(e,n){return(0,xe.jsx)(ti,{value:e.name,children:e.name},n)}))})}),(null==K||null===(H=K.need_apply_info)||void 0===H?void 0:H.need_apply_school)&&1===(null==K?void 0:K.region_rule)||"81bjsjjs"===K.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(h.default,{showSearch:!0,disabled:"81bjsjjs"===K.identifier,children:Bn.map((function(e,n){return(0,xe.jsx)(ti,{value:e.name,children:e.name},n)}))})})]}),(0,xe.jsxs)("p",{style:{marginTop:"15px",marginLeft:"8px",width:"544px"},children:[(0,xe.jsx)("span",{children:"LOGO:"}),(0,xe.jsxs)("label",{id:"uploadBtn",style:{color:"#4DACFF",cursor:"pointer"},children:[(0,xe.jsx)("input",{type:"file",className:"sr-only",id:"inputImage",name:"file",accept:"image/*",onChange:function(e){var n=e.target.files[0];if(n&&n.size>2097152)v.ZP.info("仅支持文件大小小于2M的文件");else{var t=new FileReader;t.readAsBinaryString(n),t.onload=function(){var e=btoa(t.result);on.current="data:".concat(n.type,";base64,").concat(e),sn("data:".concat(n.type,";base64,").concat(e))},t.onerror=function(){}}},style:{display:"none"}}),"上传LOGO"]})," ",(0,xe.jsx)("span",{style:{marginLeft:10,color:"#FA6400"},children:"(支持jpg、gif、png格式的图片,建议文件小于2M)"})]}),(0,xe.jsxs)("div",{style:{marginTop:"15px",marginLeft:"8px",display:"flex"},children:[jn?(0,xe.jsx)("img",{className:Yt.Spanradius,src:jn}):null!=Nn&&Nn.team_log?(0,xe.jsx)("img",{src:me.Z.IMG_SERVER+"/"+(null==Nn?void 0:Nn.team_log),className:Yt.Spanradius}):(0,xe.jsx)("div",{className:Yt.Spanradius,children:(null==Nn||null===(q=Nn.name)||void 0===q?void 0:q.length)>2?null==Nn||null===(Q=Nn.name)||void 0===Q?void 0:Q.substring(0,2):null==Nn?void 0:Nn.name}),(0,xe.jsx)($t.Z,{style:{width:"320px",height:"320px",marginLeft:"30px",background:"#EEEEEE"},src:on.current||me.Z.IMG_SERVER+"/"+(null==Nn?void 0:Nn.team_log),guides:!1,ref:wn,crop:function(){bn(wn.current.getCroppedCanvas().toDataURL())}})]})]}),(0,xe.jsxs)("div",{className:Yt.bottom,style:{textAlign:"end",marginTop:"30px"},children:[(0,xe.jsx)(Z.ZP,{className:Yt.no,onClick:function(){fn(!1)},children:"取消"}),(0,xe.jsx)(Z.ZP,{loading:ye,className:Yt.yes,onClick:function(){vn.submit()},children:"确认"})]})]})]})})),li=["competitions","globalSetting","loading","dispatch","user"],si=[{id:"",name:"全部"},{id:1,name:"姓名"},{id:2,name:"手机号"},{id:3,name:"邮箱"}],oi={teacher:"教师",student:"学生",professional:"专业人士"},ai=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n,t=e.competitions,i=(e.globalSetting,e.loading,e.dispatch),s=(e.user,p()(e,li),(0,_.useParams)().identifier),a=t.Header,c=(t.competition_team,t.Staff),u=(t.Prizes,t.Account,(0,m.useState)([])),h=d()(u,2),f=h[0],g=h[1],j=(0,m.useState)(""),b=d()(j,2),w=(b[0],b[1],(0,m.useState)({page:1,per_page:10,keyword:"",type:"",personal:!0})),Z=d()(w,2),k=Z[0],I=Z[1];function A(){return S.apply(this,arguments)}function S(){return(S=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(s,"/all_team_members.json"),{method:"get",params:k});case 2:0===(null==(n=e.sent)?void 0:n.status)&&g(n);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var C=(0,m.useState)(!1),F=d()(C,2),P=F[0],T=F[1];(0,m.useEffect)((function(){null!=a&&a.personal&&A()}),[a]);var R=[{title:"序号",align:"left",dataIndex:"name",width:80,render:function(e,n,t){return(0,xe.jsx)("span",{children:t+1})}},{title:"参赛人",align:"left",dataIndex:"name",width:120,ellipsis:{showTitle:!1},render:function(e,n){return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(y.Z,{placement:"topLeft",title:e,children:(null==e?void 0:e.length)>4?e.substring(0,4)+"...":e}),(null==n?void 0:n.authentication)&&(0,xe.jsx)(y.Z,{title:"已实名认证",children:(0,xe.jsx)("img",{src:Ht,style:{marginLeft:5,marginTop:"-2px"}})})]})}},{title:"个人成绩",align:"left",width:100,dataIndex:"score",render:function(e){return(0,xe.jsx)("span",{children:e||"- -"})}},{title:"角色",align:"left",width:100,dataIndex:"identity",render:function(e,n){return(0,xe.jsxs)("span",{children:[oi[e],(null==n?void 0:n.professional_certification)&&(0,xe.jsx)(y.Z,{title:"已职业认证",children:(0,xe.jsx)("img",{src:Ht,style:{marginLeft:5,marginTop:"-2px"}})})]})}},{title:"手机号",align:"left",width:160,dataIndex:"phone",render:function(e){return(0,xe.jsx)("span",{children:e||"- -"})}},{title:"学号/工号",align:"left",dataIndex:"student_id",width:160,ellipsis:{showTitle:!1},render:function(e){return(0,xe.jsx)(y.Z,{placement:"topLeft",title:e,children:e||"- -"})}},{title:"学校/单位",align:"left",dataIndex:"school",ellipsis:{showTitle:!1},render:function(e){return(0,xe.jsx)(y.Z,{placement:"topLeft",title:e||"",children:e||"--"})}},{title:"地区",align:"left",dataIndex:"province",width:100,ellipsis:{showTitle:!1},render:function(e){return(0,xe.jsx)(y.Z,{placement:"topLeft",title:e||"",children:e||"- -"})}},{title:"操作",align:"right",dataIndex:"is_cancel_score",width:100,render:function(e,n){return(0,xe.jsx)("span",{children:0===e||!1===e?(0,xe.jsx)("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:function(){var e;x.Z.confirm({icon:null,centered:!0,title:"取消成绩",content:"请确认是否取消该成员成绩,取消后该成员的成绩将视为无成绩,不进行排名。",onOk:(e=r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(s,"/set_score_status.json"),{method:"put",body:{competition_score_id:null==n?void 0:n.competition_score_id,competition_team_id:null==n?void 0:n.competition_team_id,is_cancel_score:1}});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(v.ZP.info("取消成功"),k.page=1,I(l()({},k)),A());case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"取消成绩"}):(0,xe.jsx)("span",{onClick:r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(s,"/set_score_status.json"),{method:"put",body:{competition_score_id:null==n?void 0:n.competition_score_id,competition_team_id:null==n?void 0:n.competition_team_id,is_cancel_score:0}});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(v.ZP.info("恢复成功"),k.page=1,I(l()({},k)),A());case 4:case"end":return e.stop()}}),e)}))),style:{color:"#FD9200",cursor:"pointer"},children:"恢复成绩"})})}}];return(0,xe.jsxs)("section",{className:Yt.bg,children:[(0,xe.jsx)("div",{className:Yt.title,style:{display:"flex"},children:(0,xe.jsxs)(oe.Z,{style:{width:"100%"},children:[(0,xe.jsx)(ae.Z,{flex:"1",children:null!=a&&a.personal?"参赛人员":"战队详情"}),(0,xe.jsxs)(ae.Z,{children:[((0,fe.eB)()||(null==a||null===(n=a.permission)||void 0===n?void 0:n.editable)&&!a.personal)&&(0,xe.jsx)("span",{className:Yt.button,onClick:function(){T(!0)},children:"管理战队成绩"}),!(null!=c&&c.enroll_ended)&&!a.personal&&(0,xe.jsx)("span",{className:Yt.button,style:{margin:"0px 20px"},onClick:function(){i({type:"competitions/setActionTabs",payload:{key:"2"}})},children:"加入战队"})," ",!(null!=c&&c.enroll_ended)&&!a.personal&&(0,xe.jsxs)("span",{className:Yt.button,onClick:function(){i({type:"competitions/setActionTabs",payload:{key:"3"}})},children:[(0,xe.jsx)("i",{className:"iconfont icon-qizhi",style:{marginRight:6,fontSize:14,color:"#3061D0"}})," 创建战队"]})]})]})}),(0,xe.jsxs)("div",{style:{display:"flex"},children:[null!=a&&a.personal?(0,xe.jsxs)("div",{style:{padding:"20px",width:"100%"},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("div",{children:(0,xe.jsx)(N.t7,{style:{width:327,marginRight:15},dataSource:si,value:{id:k.type,value:k.keyword},onChange:function(e,n){k.keyword=e,k.type=n||"",I(l()({},k)),A()},placeholder:"请输入搜索内容"})}),(0,xe.jsx)("div",{style:{flex:1,textAlign:"end"},children:(0,xe.jsx)("span",{className:Yt.button,onClick:function(){(0,he.FH)("",(0,he.NY)({url:me.Z.API_SERVER+"/api/competitions/".concat(s,"/all_team_members.xlsx"),query:l()({},k)}))},children:"导出"})})]}),(0,xe.jsx)(re.Z,{style:{marginTop:20},columns:R,bordered:!1,dataSource:null==f?void 0:f.data,pagination:!1}),(0,xe.jsx)("div",{className:Yt.countWrap,style:{marginTop:20},children:(0,xe.jsx)(dn.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],total:null==f?void 0:f.count,onChange:function(e,n){k.page=e,k.per_page=n,I(l()({},k)),A()},pageSize:k.per_page,current:k.page})})]}):(0,xe.jsx)(ii,{}),(0,xe.jsx)(an.Z,{rootClassName:Yt.drawer_style,title:(0,xe.jsx)("div",{style:{fontSize:"16px"},children:"战队成绩"}),placement:"bottom",width:500,height:564,onClose:function(){return T(!1)},open:P,children:P?(0,xe.jsx)(Ut,{}):""})]})]})})),ri=t(85573),ci=t.n(ri),di={flex_box_center:"flex_box_center___s9TxG",flex_space_between:"flex_space_between___MGe6n",flex_box_vertical_center:"flex_box_vertical_center___nNXLw",flex_box_center_end:"flex_box_center_end___KE6DE",flex_box_column:"flex_box_column___gv8RV",bg:"bg___gk5zM",title:"title___Pp6ij",button:"button___EI7ve"},ui=["competitions","globalSetting","loading","dispatch","user"],pi=h.default.Option,mi=[{id:"",name:"全部"},{id:1,name:"姓名"},{id:2,name:"手机号"},{id:3,name:"邮箱"}],_i={teacher:"教师",student:"学生",professional:"专业人士"},hi=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n,t,i,s,a,c,u,g,Z,k,I,A,S,C,F,P,T,R,E,L,D,B,V,z,M,O,Y,H,q,Q,G,U,W,J,K,X,$,ee,ne,te,ie,le,ce,de=e.competitions,pe=(e.globalSetting,e.loading,e.dispatch),_e=e.user,ve=(p()(e,ui),(0,_.useParams)().identifier),ge=de.Header,ye=(0,m.useState)([]),je=d()(ye,2),be=je[0],we=je[1],ke=(0,m.useState)(!1),Ne=d()(ke,2),Ie=Ne[0],Ae=Ne[1],Se=f.Z.useForm(),Ce=d()(Se,1)[0],Fe=(0,m.useState)(!1),Pe=d()(Fe,2),Te=Pe[0],Re=Pe[1],Ee=(0,m.useState)(!1),Le=d()(Ee,2),De=Le[0],Be=Le[1],Ve=(0,m.useState)({page:1,per_page:10,keyword:"",type:"",personal:!0}),ze=d()(Ve,2),Me=ze[0],Oe=ze[1],Ye=(0,m.useState)([]),He=d()(Ye,2),qe=He[0],Qe=He[1],Ge=(0,m.useRef)((0,ei.throttle)((function(e){return Xe(e)}),1200,{leading:!0,trailing:!0})).current,Ue=(0,m.useState)([]),We=d()(Ue,2),Je=We[0],Ke=We[1],Xe=function(){var e=r()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pe({type:"account/getSchoolOption",payload:{keyword:n,limit:10,competition_id:null==ge?void 0:ge.identifier}});case 2:t=e.sent,Qe(null==t?void 0:t.schools),n&&""!=n&&Ke(null==t||null===(i=t.schools)||void 0===i?void 0:i.filter((function(e){return e.name.includes(n)})));case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){var e,n,t,i,l,s,o,a,r;(null!=ge&&null!==(e=ge.need_apply_info)&&void 0!==e&&e.need_apply_name||null!=ge&&null!==(n=ge.need_apply_info)&&void 0!==n&&n.need_apply_teacher_phone||null!=ge&&null!==(t=ge.need_apply_info)&&void 0!==t&&t.need_apply_student_id||null!=ge&&null!==(i=ge.need_apply_info)&&void 0!==i&&i.need_apply_sex||null!=ge&&null!==(l=ge.need_apply_info)&&void 0!==l&&l.need_apply_phone||null!=ge&&null!==(s=ge.need_apply_info)&&void 0!==s&&s.need_apply_grade||null!=ge&&null!==(o=ge.need_apply_info)&&void 0!==o&&o.need_apply_teacher_name||null!=ge&&null!==(a=ge.need_apply_info)&&void 0!==a&&a.need_apply_school)&&Xe(1===(null==ge?void 0:ge.region_rule)||"81bjsjjs"===(null==ge?void 0:ge.identifier)?"":null==_e||null===(r=_e.userInfo)||void 0===r?void 0:r.school_name)}),[(null==ge||null===(n=ge.need_apply_info)||void 0===n?void 0:n.need_apply_name)||(null==ge||null===(t=ge.need_apply_info)||void 0===t?void 0:t.need_apply_teacher_phone)||(null==ge||null===(i=ge.need_apply_info)||void 0===i?void 0:i.need_apply_student_id)||(null==ge||null===(s=ge.need_apply_info)||void 0===s?void 0:s.need_apply_sex)||(null==ge||null===(a=ge.need_apply_info)||void 0===a?void 0:a.need_apply_phone)||(null==ge||null===(c=ge.need_apply_info)||void 0===c?void 0:c.need_apply_grade)||(null==ge||null===(u=ge.need_apply_info)||void 0===u?void 0:u.need_apply_teacher_name)||(null==ge||null===(g=ge.need_apply_info)||void 0===g?void 0:g.need_apply_school)]);function $e(){return en.apply(this,arguments)}function en(){return(en=r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Re(!0),e.next=3,(0,Ze.ZP)("/api/competitions/".concat(ve,"/all_team_members.json"),{method:"get",params:Me});case 3:0===(null==(n=e.sent)?void 0:n.status)&&(we(n),Be(null==n?void 0:n.hidden_score)),Re(!1);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,m.useEffect)((function(){$e()}),[ge]);var nn,tn=null===(Z=[((0,fe.eB)()||(null==ge||null===(k=ge.permission)||void 0===k?void 0:k.editable))&&{title:"序号",align:"left",dataIndex:"name",width:80,fixed:"left",render:function(e,n,t){return(0,xe.jsx)("span",{children:t+1})}},{title:"参赛人",align:"left",dataIndex:"name",width:120,fixed:"left",ellipsis:{showTitle:!1},render:function(e,n){var t,i,l,s,o,a;return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(y.Z,{placement:"topLeft",title:null!=ge&&ge.personal&&null!=ge&&null!==(t=ge.need_apply_info)&&void 0!==t&&t.need_apply_name?null==n||null===(i=n.apply_info)||void 0===i?void 0:i.real_name:e,children:null!=ge&&null!==(l=ge.need_apply_info)&&void 0!==l&&l.need_apply_name?(null==n||null===(s=n.apply_info)||void 0===s||null===(s=s.real_name)||void 0===s?void 0:s.length)>4?(null==n||null===(o=n.apply_info)||void 0===o||null===(o=o.real_name)||void 0===o?void 0:o.substring(0,4))+"...":null==n||null===(a=n.apply_info)||void 0===a?void 0:a.real_name:(null==e?void 0:e.length)>4?e.substring(0,4)+"...":e}),(null==n?void 0:n.authentication)&&(0,xe.jsx)(y.Z,{title:"已实名认证",children:(0,xe.jsx)("img",{src:Ht,style:{marginLeft:5,marginTop:"-2px"}})})]})}},{title:"个人成绩",align:"left",width:100,dataIndex:"score",fixed:"left",render:function(e){return(0,xe.jsx)("span",{children:e||"- -"})}},((0,fe.eB)()||(null==ge||null===(I=ge.permission)||void 0===I?void 0:I.editable))&&{title:"角色",align:"left",width:100,dataIndex:"identity",render:function(e,n){return(0,xe.jsxs)("span",{children:[_i[e],(null==n?void 0:n.professional_certification)&&(0,xe.jsx)(y.Z,{title:"已职业认证",children:(0,xe.jsx)("img",{src:Ht,style:{marginLeft:5,marginTop:"-2px"}})})]})}},(null==ge||null===(A=ge.need_apply_info)||void 0===A?void 0:A.need_apply_sex)&&{title:"性别",align:"left",width:160,dataIndex:"phone",render:function(e,n){var t;return(0,xe.jsx)("span",{children:1===(null==n||null===(t=n.apply_info)||void 0===t?void 0:t.sex)?"女":"男"})}},{title:"手机号",align:"left",width:160,dataIndex:"phone",render:function(e,n){var t,i;return(0,xe.jsx)("span",{children:null!=ge&&null!==(t=ge.need_apply_info)&&void 0!==t&&t.need_apply_phone?(null==n||null===(i=n.apply_info)||void 0===i?void 0:i.phone)||"- -":e||"- -"})}},{title:"学号/工号",align:"left",dataIndex:"student_id",width:160,ellipsis:{showTitle:!1},render:function(e,n){var t,i,l,s;return(0,xe.jsx)(y.Z,{placement:"topLeft",title:null!=ge&&null!==(t=ge.need_apply_info)&&void 0!==t&&t.need_apply_student_id?(null==n||null===(i=n.apply_info)||void 0===i?void 0:i.student_id)||"- -":e||"- -",children:null!=ge&&null!==(l=ge.need_apply_info)&&void 0!==l&&l.need_apply_student_id?(null==n||null===(s=n.apply_info)||void 0===s?void 0:s.student_id)||"- -":e||"- -"})}},(null==ge||null===(S=ge.need_apply_info)||void 0===S?void 0:S.need_apply_grade)&&{title:"年级",dataIndex:"student_id",width:160,ellipsis:{showTitle:!1},render:function(e,n){var t,i;return(0,xe.jsx)(y.Z,{placement:"topLeft",title:null==n||null===(t=n.apply_info)||void 0===t?void 0:t.grade,children:(null==n||null===(i=n.apply_info)||void 0===i?void 0:i.grade)||"- -"})}},{title:"学校/单位",align:"left",dataIndex:"school",ellipsis:{showTitle:!1},width:160,render:function(e,n){var t,i,l,s;return(0,xe.jsx)(y.Z,{placement:"topLeft",title:null!=ge&&null!==(t=ge.need_apply_info)&&void 0!==t&&t.need_apply_school?(null==n||null===(i=n.apply_info)||void 0===i?void 0:i.school)||"- -":e||"- -",children:null!=ge&&null!==(l=ge.need_apply_info)&&void 0!==l&&l.need_apply_school?(null==n||null===(s=n.apply_info)||void 0===s?void 0:s.school)||"- -":e||"- -"})}},((0,fe.eB)()||(null==ge||null===(C=ge.permission)||void 0===C?void 0:C.editable))&&{title:"地区",align:"left",dataIndex:"province",width:100,ellipsis:{showTitle:!1},render:function(e){return(0,xe.jsx)(y.Z,{placement:"topLeft",title:e||"",children:e||"- -"})}},(null==ge||null===(F=ge.need_apply_info)||void 0===F?void 0:F.need_apply_teacher_name)&&{title:"指导教师姓名",align:"left",dataIndex:"teacher_name",width:120,ellipsis:{showTitle:!1},render:function(e){return(0,xe.jsx)(y.Z,{placement:"topLeft",title:e||"",children:e||"- -"})}},(null==ge||null===(P=ge.need_apply_info)||void 0===P?void 0:P.need_apply_teacher_phone)&&{title:"指导教师联系方式",align:"left",dataIndex:"teacher_phone",width:160,ellipsis:{showTitle:!1},render:function(e){return(0,xe.jsx)(y.Z,{placement:"topLeft",title:e||"",children:e||"- -"})}},((0,fe.eB)()||(null==ge||null===(T=ge.need_apply_info)||void 0===T?void 0:T.need_apply_name)||(null==ge||null===(R=ge.need_apply_info)||void 0===R?void 0:R.need_apply_teacher_phone)||(null==ge||null===(E=ge.need_apply_info)||void 0===E?void 0:E.need_apply_student_id)||(null==ge||null===(L=ge.need_apply_info)||void 0===L?void 0:L.need_apply_sex)||(null==ge||null===(D=ge.need_apply_info)||void 0===D?void 0:D.need_apply_phone)||(null==ge||null===(B=ge.need_apply_info)||void 0===B?void 0:B.need_apply_grade)||(null==ge||null===(V=ge.need_apply_info)||void 0===V?void 0:V.need_apply_teacher_name)||(null==ge||null===(z=ge.need_apply_info)||void 0===z?void 0:z.need_apply_school))&&{title:"操作",align:"right",dataIndex:"is_cancel_score",width:100,fixed:"right",render:function(e,n){var t;return(0,fe.eB)()||null!=ge&&null!==(t=ge.permission)&&void 0!==t&&t.editable?(0,xe.jsx)("span",{children:0===e||!1===e?(0,xe.jsx)("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:function(){var e;x.Z.confirm({icon:null,centered:!0,title:"取消成绩",content:"请确认是否取消该成员成绩,取消后该成员的成绩将视为无成绩,不进行排名。",onOk:(e=r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(ve,"/set_score_status.json"),{method:"put",body:{competition_score_id:null==n?void 0:n.competition_score_id,competition_team_id:null==n?void 0:n.competition_team_id,is_cancel_score:1}});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(v.ZP.info("取消成功"),Me.page=1,Oe(l()({},Me)),$e());case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:"取消成绩"}):(0,xe.jsx)("span",{onClick:r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(ve,"/set_score_status.json"),{method:"put",body:{competition_score_id:null==n?void 0:n.competition_score_id,competition_team_id:null==n?void 0:n.competition_team_id,is_cancel_score:0}});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(v.ZP.info("恢复成功"),Me.page=1,Oe(l()({},Me)),$e());case 4:case"end":return e.stop()}}),e)}))),style:{color:"#FD9200",cursor:"pointer"},children:"恢复成绩"})}):(0,xe.jsx)("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:function(){"ended"!=(null==ge?void 0:ge.competition_status)?(Ce.setFieldsValue(l()(l()({},n),null==n?void 0:n.apply_info)),Ae(!0)):v.ZP.warning("竞赛已结束,无法编辑相关信息")},children:"编辑"})}}])||void 0===Z?void 0:Z.filter((function(e){return e}));return(0,xe.jsxs)("section",{className:di.bg,children:[(0,xe.jsx)("div",{className:di.title,style:{display:"flex"},children:(0,xe.jsxs)(oe.Z,{style:{width:"100%"},children:[(0,xe.jsx)("span",{children:"参赛人员"}),((0,fe.eB)()||(null==ge||null===(M=ge.permission)||void 0===M?void 0:M.editable))&&(0,xe.jsx)(se.Z,{checked:De,style:{marginLeft:10,alignItems:"center"},onChange:function(){var e=r()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Be(n.target.checked),e.next=3,(0,Ze.ZP)("/api/competitions/".concat(ve,"/hidden_score.json"),{method:"POST",body:{hidden_score:n.target.checked}});case 3:0===(null==(t=e.sent)?void 0:t.status)&&$e();case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:(0,xe.jsx)("span",{style:{color:"#828693",marginLeft:"-3px"},children:"隐藏成绩"})})]})}),(0,xe.jsxs)("div",{style:{padding:"20px",width:"100%"},children:[((0,fe.eB)()||(null==ge||null===(O=ge.permission)||void 0===O?void 0:O.editable))&&(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",justify:"space-between",children:[(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(N.t7,{style:{width:327,marginRight:15},dataSource:mi,value:{id:Me.type,value:Me.keyword},onChange:function(e,n){Me.keyword=e,Me.type=n||"",Oe(l()({},Me)),$e()},placeholder:"请输入搜索内容"})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)("span",{className:di.button,onClick:function(){(0,he.FH)("",(0,he.NY)({url:me.Z.API_SERVER+"/api/competitions/".concat(ve,"/all_team_members.xlsx"),query:l()({},Me)}))},children:"导出"})})]}),(0,xe.jsx)(re.Z,{loading:Te,style:{marginTop:20},columns:tn,bordered:!1,dataSource:null==be?void 0:be.data,pagination:!1,scroll:((null==ge||null===(Y=ge.need_apply_info)||void 0===Y?void 0:Y.need_apply_name)||(null==ge||null===(H=ge.need_apply_info)||void 0===H?void 0:H.need_apply_teacher_phone)||(null==ge||null===(q=ge.need_apply_info)||void 0===q?void 0:q.need_apply_student_id)||(null==ge||null===(Q=ge.need_apply_info)||void 0===Q?void 0:Q.need_apply_sex)||(null==ge||null===(G=ge.need_apply_info)||void 0===G?void 0:G.need_apply_phone)||(null==ge||null===(U=ge.need_apply_info)||void 0===U?void 0:U.need_apply_grade)||(null==ge||null===(W=ge.need_apply_info)||void 0===W?void 0:W.need_apply_teacher_name)||(null==ge||null===(J=ge.need_apply_info)||void 0===J?void 0:J.need_apply_school))&&{x:1160}}),(0,xe.jsx)("div",{style:{marginTop:20},children:(0,xe.jsx)(dn.Z,{showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],total:null==be?void 0:be.count,onChange:function(e,n){Me.page=e,Me.per_page=n,Oe(l()({},Me)),$e()},pageSize:Me.per_page,current:Me.page})})]}),(0,xe.jsx)(x.Z,{width:700,title:"编辑报名信息",open:Ie,centered:!0,onCancel:function(){Ae(!1)},onOk:function(){Ce.submit()},confirmLoading:Te,children:(0,xe.jsxs)(f.Z,{form:Ce,colon:!1,size:"large",labelCol:{span:5},onFinish:function(){var e=r()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=null===(t=qe.find((function(e){return e.name===(null==n?void 0:n.school)})))||void 0===t?void 0:t.id,e.next=3,(0,ue.bu)(l()(l()({},n),{},{identifier:ve,school_id:i}));case 3:0===e.sent.status&&(v.ZP.success("修改成功"),Ae(!1),$e());case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,xe.jsx)(f.Z.Item,{hidden:!0,name:"competition_team_id"}),(null==ge||null===(K=ge.need_apply_info)||void 0===K?void 0:K.need_apply_name)&&(0,xe.jsx)(f.Z.Item,{label:"参赛人员姓名",name:"real_name",className:di.jsinput,rules:[{required:!0,message:"请输入参赛人员姓名"},{whitespace:!0,message:"姓名不能为空"}],children:(0,xe.jsx)(j.Z,{className:di.baseFormItem,placeholder:"请输入参赛人员姓名",showCount:!0,maxLength:60})}),(null==ge||null===(X=ge.need_apply_info)||void 0===X?void 0:X.need_apply_sex)&&(0,xe.jsx)(f.Z.Item,{label:"性别",name:"sex",className:di.jsinput,rules:[{required:!0,message:"请选择参赛人员性别"}],children:(0,xe.jsxs)(b.ZP.Group,{children:[(0,xe.jsx)(b.ZP,{value:0,children:"男"}),(0,xe.jsx)(b.ZP,{value:1,children:"女"})]})}),(null==ge||null===($=ge.need_apply_info)||void 0===$?void 0:$.need_apply_student_id)&&(0,xe.jsx)(f.Z.Item,{label:"学号",name:"student_id",className:di.jsinput,rules:[{required:!0,message:"请输入参赛人员学号"},{whitespace:!0,message:"学号不能为空"}],children:(0,xe.jsx)(j.Z,{className:di.baseFormItem,placeholder:"请输入参赛人员学号",showCount:!0,maxLength:60})}),(null==ge||null===(ee=ge.need_apply_info)||void 0===ee?void 0:ee.need_apply_phone)&&(0,xe.jsx)(f.Z.Item,{label:"电话",name:"phone",className:di.jsinput,rules:[{required:!0,message:"请输入参赛人员电话"},{whitespace:!0,message:"电话不能为空"}],children:(0,xe.jsx)(j.Z,{className:di.baseFormItem,placeholder:"请输入参赛人员电话",showCount:!0,maxLength:60})}),(null==ge||null===(ne=ge.need_apply_info)||void 0===ne?void 0:ne.need_apply_grade)&&(0,xe.jsx)(f.Z.Item,{label:"年级",name:"grade",className:di.jsinput,rules:[{required:!0,message:"请选择参赛人员年级"}],children:(0,xe.jsx)(h.default,{disabled:"81bjsjjs"===ge.identifier,placeholder:"请选择参赛人员年级",size:"large",children:(nn=(new Date).getFullYear(),Array(31).fill({}).map((function(e,n){return(0,xe.jsx)(pi,{value:nn-n,children:(0,xe.jsx)("span",{children:nn-n})},n)})))})}),(null==ge||null===(te=ge.need_apply_info)||void 0===te?void 0:te.need_apply_teacher_name)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师姓名",name:"teacher_name",className:di.jsinput,rules:[{required:!0,message:"请输入指导老师姓名"},{whitespace:!0,message:"指导老师姓名不能为空"}],children:(0,xe.jsx)(j.Z,{className:di.baseFormItem,placeholder:"请输入指导老师姓名",showCount:!0,maxLength:60})}),(null==ge||null===(ie=ge.need_apply_info)||void 0===ie?void 0:ie.need_apply_teacher_phone)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师联系方式",name:"teacher_phone",rules:[{required:!0,message:"请输入指导老师联系方式"},{whitespace:!0,message:"指导老师联系方式不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入指导老师联系方式",showCount:!0,maxLength:60})}),(null==ge||null===(le=ge.need_apply_info)||void 0===le?void 0:le.need_apply_school)&&1!==(null==ge?void 0:ge.region_rule)&&"81bjsjjs"!==ge.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(w.Z,{size:"large",showSearch:!0,disabled:"81bjsjjs"===ge.identifier,onChange:function(e){return Ge(e)},children:Je.map((function(e,n){return(0,xe.jsx)(pi,{value:e.name,children:e.name},n)}))})}),(null==ge||null===(ce=ge.need_apply_info)||void 0===ce?void 0:ce.need_apply_school)&&1===(null==ge?void 0:ge.region_rule)||"81bjsjjs"===ge.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(h.default,ci()(ci()({disabled:!0,showSearch:!0},"disabled","81bjsjjs"===ge.identifier),"children",qe.map((function(e,n){return(0,xe.jsx)(pi,{value:e.name,children:e.name},n)}))))})]})})]})})),fi="bg___UYFEh",xi="Title___n7fIZ",vi="SrollStage___GnCkk",gi=t(1806),yi=["competitions","globalSetting","loading","dispatch","user"],ji=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.effects,user:l}}))((function(e){var n,i,s,a,c=e.competitions,u=(e.globalSetting,e.loading),h=e.dispatch,f=(e.user,p()(e,yi),c.is_manager,c.MemberWorks),v=c.competitionStage,g=c.Header,j=(0,_.useParams)().identifier,b=(0,m.useState)({page:1,per_page:20,competition_id:j,keyword:null}),w=d()(b,2),k=w[0],I=w[1],A=[{title:"选手名称",dataIndex:"user_name",ellipsis:!0,render:function(e){return e||"--"}},!(null!=g&&g.is_personal)&&{title:"战队名称",dataIndex:"team_name",ellipsis:!0,render:function(e){return(0,xe.jsx)(y.Z,{placement:"topLeft",title:e,children:e||"--"})}},{title:"成绩",dataIndex:"evaluation_score",render:function(e){return e||"--"}},{title:"描述",width:222,dataIndex:"comment",render:function(e){return(0,xe.jsx)(y.Z,{title:e,children:(0,xe.jsx)("span",{children:e||"- -"})})}},{title:"提交时间",width:150,dataIndex:"commit_at",render:function(e){return e?de()(e).format("YYYY.MM.DD HH:mm:ss"):"--"}},{title:"提交状态",width:100,dataIndex:"evaluation_status",render:function(e){return"waiting"==e?(0,xe.jsx)("span",{style:{color:"#00B187 "},children:"排队中"}):"progress"==e?(0,xe.jsx)("span",{style:{color:"00B187"},children:"评测中"}):"cancelled"==e?(0,xe.jsx)("span",{style:{color:"#E53333"},children:"已取消"}):"completed"==e?(0,xe.jsx)("span",{style:{color:"#165DFF"},children:"已完成"}):"error"==e?(0,xe.jsx)("span",{style:{color:"#ff4d4f"},children:"提交失败"}):"--"}},{title:"评测文件",dataIndex:"commit_id",ellipsis:!0,render:function(e,n){var t,i,l,s,o,a;return(0,xe.jsx)(y.Z,{placement:"topLeft",title:null==n||null===(t=n.attachments)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.title,children:null!=n&&null!==(i=n.attachments)&&void 0!==i&&null!==(i=i[0])&&void 0!==i&&i.is_oss?(0,xe.jsx)("a",{onClick:function(){var e;(0,he.Nd)("","".concat(null==n||null===(e=n.attachments)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.url.replace("disposition=inline","")))},children:(null==n||null===(l=n.attachments)||void 0===l||null===(l=l[0])||void 0===l?void 0:l.title)||"--"}):(0,xe.jsx)("a",{href:me.Z.API_SERVER+(null==n||null===(s=n.attachments)||void 0===s||null===(s=s[0])||void 0===s?void 0:s.url),download:null==n||null===(o=n.attachments)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.title,children:(null==n||null===(a=n.attachments)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.title)||"--"})})}},{title:"操作",align:"right",width:200,dataIndex:"commit_id",render:function(e,n){return(0,xe.jsxs)(xe.Fragment,{children:[(0,xe.jsx)(Z.ZP,{type:"link",disabled:"completed"!=(null==n?void 0:n.evaluation_status),style:{padding:0},onClick:function(){var e=x.Z.confirm({centered:!0,okText:"确定",icon:null,cancelText:"取消",title:"运行结果",content:(0,xe.jsx)("div",{style:{maxHeight:500,overflow:"auto"},children:null==n?void 0:n.evaluation_info}),onOk:function(){return e.destroy()},onCancel:function(){return e.destroy()}})},children:"运行信息"}),(0,xe.jsx)(Z.ZP,{className:"ml20",disabled:"progress"==(null==n?void 0:n.evaluation_status),type:"link",style:{padding:0},onClick:r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"正在重测,请稍后..."}}),e.next=3,(0,Ze.ZP)("/api/competitions/".concat(j,"/competition_commit_records/").concat(n.id,"/retest.json"),{method:"post",body:l()(l()({},k),{},{record_id:n.id})});case 3:t=e.sent,h({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),0==t.status&&S();case 6:case"end":return e.stop()}}),e)}))),children:"重测"}),(0,xe.jsx)(Z.ZP,{className:"ml20",type:"link",disabled:"waiting"!=(null==n?void 0:n.evaluation_status),style:{padding:0},danger:!0,onClick:function(){var e,t=x.Z.confirm({centered:!0,okText:"确定",icon:null,cancelText:"取消",title:"",content:(0,xe.jsx)(xe.Fragment,{children:"取消后,该成员提交的作品将不进行评测排队,请确认是否取消。"}),onOk:(e=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ze.ZP)("/api/competitions/".concat(j,"/competition_commit_records/").concat(n.id,"/cancel.json"),{method:"post",body:l()(l()({},k),{},{record_id:n.id})});case 2:0==e.sent.status&&S();case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)}),onCancel:function(){return t.destroy()}})},children:"取消"})]})}}].filter((function(e){return!!e})),S=function(){var e=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:h({type:"competitions/getMemberWorks",payload:l()({identifier:j},k)});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,m.useEffect)((function(){I(l()(l()({},k),{},{section_id:null==v?void 0:v.id}))}),[]),(0,m.useEffect)((function(){S()}),[k]),(0,xe.jsxs)("section",{className:fi,children:[(0,xe.jsx)(oe.Z,{align:"middle",className:xi,children:(0,xe.jsx)(ae.Z,{children:"选手作品"})}),(0,xe.jsxs)(oe.Z,{style:{margin:20},align:"middle",justify:"space-between",children:[(0,xe.jsx)(oe.Z,{className:vi,style:{flex:1,whiteSpace:"nowrap",flexWrap:"nowrap",overflowX:"auto"}}),(0,xe.jsxs)(oe.Z,{className:"ml20",align:"middle",children:[(0,xe.jsx)(N.t7,{style:{width:260},placeholder:null!=g&&g.is_personal?"请输入选手名称":"请输入队伍名称",value:k.keyword,onChange:function(e){return I(l()(l()({},k),{},{keyword:e,page:1}))}}),(0,xe.jsx)(N.op,{openLoading:!0,type:"default",size:"large",className:"ml20",onClick:r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,gi.KM)(l()({identifier:j},k));case 2:case"end":return e.stop()}}),e)}))),children:"导出"}),(0,xe.jsx)(N.op,{size:"large",type:"default",className:"ml20",onClick:function(){return S()},children:"更新"})]})]}),(0,xe.jsxs)(rn.Z,{spinning:u["competitions/getMemberWorks"],children:[(0,xe.jsx)(re.Z,{className:"ml20 mr20",locale:{emptyText:(0,xe.jsx)(un.Z,{imgUrl:t(93314)})},pagination:!1,dataSource:(null==f||null===(n=f.data)||void 0===n?void 0:n.records)||[],columns:A}),(null==f||null===(i=f.data)||void 0===i?void 0:i.count)>0&&(0,xe.jsxs)(oe.Z,{className:"ml20 mr20 mt20 mb30",align:"middle",justify:"space-between",children:[(0,xe.jsxs)(ae.Z,{className:"font14",style:{color:"#333"},children:["共",(0,xe.jsx)("span",{style:{color:"#165DFF"},children:(null==f||null===(s=f.data)||void 0===s?void 0:s.count)||0}),"条数据"]}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)(dn.Z,{showQuickJumper:!0,current:k.page,pageSize:k.per_page,onChange:function(e){return I(l()(l()({},k),{},{page:e}))},onShowSizeChange:function(e,n){return I(l()(l()({},k),{},{page:1,per_page:n}))},total:(null==f||null===(a=f.data)||void 0===a?void 0:a.count)||0})})]})]})]})})),bi=t(10764),wi=t(91628),Zi="bg___tjnCL",ki="title___kqIVC",Ni=t(98382),Ii=t(16605),Ai=t(60351),Si=t(1058),Ci={flex_box_center:"flex_box_center___PytGn",flex_space_between:"flex_space_between___lsol9",flex_box_vertical_center:"flex_box_vertical_center___fZ7Lr",flex_box_center_end:"flex_box_center_end___eItTF",flex_box_column:"flex_box_column____TIyk",title:"title___lY3pZ",export:"export___FJnGB",tabs:"tabs___lND2P",btn:"btn___TPnQ5",sticky:"sticky___JTo3M",publishRuleContent:"publishRuleContent___BCpFe",groupSelector:"groupSelector___xVPXf",addAndDelete:"addAndDelete___alHeZ",deleteIcon:"deleteIcon___PxYRF",addIcon:"addIcon___wwP2i"},Fi=t(52103),Pi=t(45532),Ti=(0,_.connect)((function(e){var n=e.shixunHomeworks,t=e.classroomList,i=e.loading,l=e.user,s=e.boards;return{shixunHomeworks:n,globalSetting:e.globalSetting,classroomList:t,user:l,boards:s,loading:i.effects}}))((function(e){e.shixunHomeworks;var n,t,i,s,a=e.classroomList,c=(e.globalSetting,e.boards),u=(e.loading,e.user),p=e.Header,x=e.is_hidden,g=(e.isClick,e.dispatch),y=((0,_.useParams)(),(0,_.useLocation)(),f.Z.useForm()),w=d()(y,1)[0],k=(0,m.useState)({content:""}),N=d()(k,2),I=N[0],A=N[1],S=(0,m.useState)([{}]),C=d()(S,2),F=C[0],P=C[1],T=(u.userInfo,a.detailLeftMenus,a.detailCourseGroupsList),R=c.boardsDetail,E=c.boardsCategoryList,D=(0,m.useState)([]),B=d()(D,2),V=B[0],z=B[1],M=(0,m.useState)({unified_setting:!0,view_message_setting:E.allow_view_message?"0":"1"}),O=d()(M,2),Y=O[0],H=O[1];return(0,m.useEffect)((function(){g({type:"boards/getBoardsCategoryList",payload:{board_id:null==p?void 0:p.board_id}}).then((function(e){Y.view_message_setting=null!=e&&e.allow_view_message?"0":"1"})),g({type:"classroomList/getCourseGroupsList",payload:{page:1,id:null==p?void 0:p.course_identifier,limit:1e3,nonenavigate:!0}})}),[null==p?void 0:p.board_id]),(0,m.useEffect)((function(){w.setFieldsValue({select_board_id:parseInt(null==p?void 0:p.board_id)})}),[a.detailLeftMenus]),(0,m.useEffect)((function(){null!=p&&p.message_id&&g({type:"boards/getBoardsDetail",payload:{boardId:null==p?void 0:p.message_id}}).then((function(e){var n;z(e),w.setFieldsValue({select_board_id:[null==e?void 0:e.board_id],subject:null==e?void 0:e.subject,attachment_ids:(0,Ni.z)(e.attachments),content:null==e?void 0:e.content,sticky:!(null==e||!e.sticky),publish_time:null!=e&&e.publish_time?de()(null==e?void 0:e.publish_time):null}),A({subject:null==e?void 0:e.subject,content:null==e?void 0:e.content}),e.unified_setting=e.unified_setting,e.view_message_setting=e.view_message_setting,H(l()({},e)),F=(null==e||null===(n=e.group_settings)||void 0===n?void 0:n.map((function(e){return{group_id:e.group_id,publish_time:e.publish_time}})))||[{}],P(F.length>0?F:[{}])}))}),[null==p?void 0:p.message_id]),(0,m.useEffect)((function(){var e;null==T||null===(e=T.course_groups)||void 0===e||e.map((function(e){var n;null==V||null===(n=V.group_settings)||void 0===n||n.map((function(n,t){(null==n?void 0:n.group_id)===(null==e?void 0:e.id)&&(e.cilckkey=t,e.isselect=!0)}))}))}),[V]),(0,xe.jsx)("section",{className:Ci.bg,children:(0,xe.jsx)("div",{children:(0,xe.jsxs)(f.Z,{layout:"vertical",form:w,initialValues:{name:"",sticky:!1},scrollToFirstError:!0,onValuesChange:function(e){A(l()({},e))},onFinish:function(){var e=r()(o()().mark((function e(n){var t,i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.attachment_ids=null===(t=n.attachment_ids)||void 0===t?void 0:t.map((function(e){return e.response.id})),n.view_message_setting=Y.view_message_setting,n.is_hidden=x,n.competition_id=null==p?void 0:p.id,!(0,fe.eB)()){e.next=13;break}if(n.unified_setting=Y.unified_setting,n.view_message_setting="1",n.group_settings=F,Y.unified_setting){e.next=13;break}if(F.length){e.next=12;break}return v.ZP.warning("提交失败:分班发布设置不能为空"),e.abrupt("return");case 12:F.map((function(e){if(!e.group_id)throw v.ZP.error("分班不能为空"),new String("分班不能为空");if(!e.publish_time)throw v.ZP.error("发布时间不能为空"),new String("发布时间不能为空")}));case 13:return n=l()({},n),i=p.message_id?"/api/messages/".concat(p.message_id,".json"):"/api/boards/".concat(null==p?void 0:p.board_id,"/messages.json"),e.next=17,(0,Ze.ZP)(i,{method:p.message_id?"put":"post",body:n});case 17:0===(s=e.sent).status&&((0,he.L9)(["教学课堂","讨论","发帖"]),v.ZP.success(p.message_id?"修改成功":"发布成功"),p.message_id||(g({type:"competitions/getHeader",payload:{identifier:null==p?void 0:p.identifier}}),(0,he.xg)("/classrooms/".concat(null==p?void 0:p.course_identifier,"/board/").concat(null==p?void 0:p.board_id,"/Detail/").concat(null==s||null===(a=s.data)||void 0===a?void 0:a.id))));case 19:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,xe.jsxs)("aside",{className:"mt30 relative bg-white pl30 pr30 pt30 w100 inline-block",children:[(0,xe.jsx)(f.Z.Item,{label:"",name:"sticky",valuePropName:"checked",className:Ci.sticky,children:(0,xe.jsx)(se.Z,{children:"置顶"})}),(0,xe.jsx)(f.Z.Item,{label:"标题",name:"subject",rules:[{required:!0,message:"请输入标题"}],children:(0,xe.jsx)(j.Z,{suffix:"".concat((null===(n=I.subject)||void 0===n?void 0:n.length)||0,"/60"),maxLength:60})}),(0,xe.jsx)(f.Z.Item,{label:"目录",name:"select_board_id",rules:[{required:!0,message:"请选择目录"}],children:(0,xe.jsx)(h.default,{children:null==E||null===(t=E.boards)||void 0===t?void 0:t.map((function(e){return(0,xe.jsx)(h.default.Option,{value:null==e?void 0:e.id,children:null==e?void 0:e.name})}))})}),(0,xe.jsx)(f.Z.Item,{label:"内容",style:{position:"relative",zIndex:0},name:"content",rules:[{required:!0,message:"请输入内容"}],children:(0,xe.jsx)(At.Z,{watch:!0,defaultValue:R.content||"",placeholder:"请在此输入帖子详情,最大限制为10000个字符"})}),(0,xe.jsx)(f.Z.Item,{name:"attachment_ids",children:(0,xe.jsx)(Ni.Z,{})}),(0,xe.jsxs)("div",{children:[(0,xe.jsxs)(b.ZP.Group,{onChange:function(){Y.unified_setting=!Y.unified_setting,H(Object.assign({},Y))},value:Y.unified_setting,children:[(0,xe.jsx)(b.ZP,{value:!0,children:"统一发布"}),(null==T||null===(i=T.course_groups)||void 0===i?void 0:i.length)>0&&(0,xe.jsx)(b.ZP,{value:!1,children:"分班发布"})]}),(null==Y?void 0:Y.unified_setting)&&(0,xe.jsx)(f.Z.Item,{style:{marginTop:16},rules:[{required:!0,message:"请选择发布时间"}],label:"发布时间",name:"publish_time",children:(0,xe.jsx)(le.default,{showTime:{format:"HH:mm"},disabledDate:function(e){return e&&e0&&void 0!==arguments[0]?arguments[0]:s,i=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0;return(null==t||null===(e=t[l])||void 0===e||null===(e=e.competition_time)||void 0===e?void 0:e.diff((null==t||null===(n=t[i])||void 0===n?void 0:n.competition_time)||0))||0},u=c(s,0,s.length-1),h=s.map((function(e,n){var t=c(s,n,n+1)/u*100,i=20;return n>(null==s?void 0:s.length)-4&&(i=32),l()(l()({},e),{},{isChu:t>i,DistanceValue:n===(null==s?void 0:s.length)-1?0:Math.round(t(null==t?void 0:t.competition_time)&&v>(null==h||null===(l=h[i+1])||void 0===l?void 0:l.competition_time)&&(e+=(null==t?void 0:t.DistanceValue)/n*100),i!==h.length-1&&v>(null==t?void 0:t.competition_time)&&v<(null==h||null===(o=h[i+1])||void 0===o?void 0:o.competition_time)&&(e+=(null==v?void 0:v.diff(null==t?void 0:t.competition_time))/c(s,i,i+1)*(null==t?void 0:t.DistanceValue)/n*100)})),v>h[h.length-1].competition_time?100:v2&&void 0!==arguments[2]&&arguments[2];return(0,xe.jsx)("div",{className:"".concat(Mi," ").concat(n===h.length-1?Yi:Oi),style:{width:w(e,n,t)},children:(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",gutter:5,justify:n===h.length-1?"end":"start",children:[(0,xe.jsx)(ae.Z,{children:(0,xe.jsxs)(oe.Z,{wrap:!1,align:"middle",children:[(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)("span",{className:"".concat(Hi," ").concat(t?qi:""),children:n+1})}),(0,xe.jsx)(ae.Z,{children:(0,xe.jsx)("div",{className:Qi})})]})}),(0,xe.jsxs)(ae.Z,{children:[(0,xe.jsx)(y.Z,{title:null==e?void 0:e.name,placement:"topLeft",children:(0,xe.jsx)("div",{className:"".concat(Gi," ").concat(t?Ui:""," multi_ellipsis1"),children:null==e?void 0:e.name})}),(0,xe.jsx)(y.Z,{placement:"topLeft",title:null!=e&&e.competition_time?de()(null==e?void 0:e.competition_time).format((null==e?void 0:e.format)||"YYYY年MM月DD日 HH:mm"):"",children:(0,xe.jsx)("div",{className:"".concat(Wi," ").concat(t?Ji:""," multi_ellipsis1"),children:null!=e&&e.competition_time?de()(null==e?void 0:e.competition_time).format((null==e?void 0:e.format)||"YYYY年MM月DD日 HH:mm"):""})})]})]})})},w=function(e,n){var t,i,l,s,o,a=h.reduce((function(e,n){return e+n.DistanceValue}),0),c=(null==e?void 0:e.DistanceValue)/a*r,d=(null==h||null===(t=h[n+1])||void 0===t?void 0:t.DistanceValue)/a*r,u=Math.round(c+d)-12;return n===h.length-1?Math.round(((null==h||null===(i=h[n-1])||void 0===i?void 0:i.DistanceValue)+(null==h||null===(l=h[n-2])||void 0===l?void 0:l.DistanceValue))/a*r/2-12):n===h.length-2?c-12:n===h.length-3?Math.round(((null==h||null===(s=h[n])||void 0===s?void 0:s.DistanceValue)+(null==h||null===(o=h[n+1])||void 0===o?void 0:o.DistanceValue))/a*r/2-12):u};return(0,m.useEffect)((function(){var e=setInterval((function(){g(de()())}),6e4);return function(){clearInterval(e)}}),[]),(0,xe.jsxs)("div",l()(l()({ref:a,className:el()(Li,t)},o),{},{children:[(0,xe.jsx)("div",{className:Di,children:(0,xe.jsx)("div",{className:Bi,style:{width:j()>=100?"100%":"".concat(j(),"%")}})}),h.map((function(e,n){var t=v<(null==e?void 0:e.competition_time);return(0,xe.jsxs)("div",{className:"".concat(zi),style:{width:n===(null==h?void 0:h.length)-1?"auto":(null==e?void 0:e.DistanceValue)+(null==e?void 0:e.StyleUnit)},children:[(0,xe.jsx)("div",{style:{height:45,position:"relative",width:"100%"},children:(n+1)%2!=0&&b(e,n,!t)}),(0,xe.jsx)("div",{className:"".concat(Ki," ").concat(t?"":Xi)}),(0,xe.jsx)("div",{style:{height:45,position:"relative",width:"100%"},children:(n+1)%2==0&&b(e,n,!t)})]})})),(0,xe.jsx)("div",{className:Di,style:{zIndex:1,backgroundColor:"transparent"},children:(0,xe.jsx)(y.Z,{title:v.format("当前时间:YYYY年MM月DD日 HH:mm"),children:(0,xe.jsx)("div",{className:Vi,style:{left:j()>=100?"calc(100% - 12px)":"".concat(j(),"%")}})})})]}))},il=["competitions","globalSetting","loading","dispatch","user"],ll=h.default.Option,sl=(0,_.connect)((function(e){var n=e.competitions,t=e.loading,i=e.globalSetting,l=e.user;return{competitions:n,globalSetting:i,loading:t.models.competitions,user:l}}))((function(e){var n,t,i,s,a,c,u,I,A,S,C,F,P,T,R,E,L,D,B,V,z,M,O,Y,H,q,Q,G,U,W,J,K,X,$,ee,ne,te,ie,le,se,oe,ae,re,ce,me,_e,ve,ge,ye,je,be,we,ke,Ne,Ie,Ae,Se,Ce,Fe,Pe,Te,Re,Ee,Le,De,Be,Ve,ze,Me,Oe,Ye,He,qe,Qe,Ge,Ue,We,Je,Ke,Xe,$e,en,nn,tn,ln,sn,on,an=e.competitions,rn=(e.globalSetting,e.loading),cn=e.dispatch,dn=e.user,un=(p()(e,il),(0,m.useState)({tabsIndex:"1"})),pn=d()(un,2),mn=pn[0],_n=pn[1],hn=(0,_.useParams)(),fn=hn.identifier,xn=(hn.enter,an.Header),vn=an.Staff,gn=an.GuidesData,yn=(0,m.useState)(!1),jn=d()(yn,2),bn=jn[0],wn=jn[1],Zn=(0,_.useSearchParams)(),Nn=d()(Zn,1)[0],In=(0,m.useState)(!1),An=d()(In,2),Sn=An[0],Cn=An[1],Fn=(0,m.useState)(!1),Pn=d()(Fn,2),Tn=Pn[0],Rn=Pn[1],En=(0,m.useState)(!1),Ln=d()(En,2),Dn=Ln[0],Bn=Ln[1],Vn=f.Z.useForm(),zn=d()(Vn,1)[0],Mn=f.Z.useForm(),On=d()(Mn,1)[0],Yn=(0,m.useState)(!1),Hn=d()(Yn,2),qn=Hn[0],Qn=Hn[1],Gn=(0,m.useState)(!1),Un=d()(Gn,2),Wn=Un[0],Jn=Un[1],Kn=(0,m.useState)(),Xn=d()(Kn,2),$n=Xn[0],et=Xn[1],nt=(0,m.useState)(!1),tt=d()(nt,2),it=tt[0],lt=tt[1],st=(0,m.useState)(!1),ot=d()(st,2),at=ot[0],rt=ot[1],ct=(0,m.useState)(!1),dt=d()(ct,2),ut=dt[0],pt=dt[1],_t=(0,m.useState)([]),ht=d()(_t,2),ft=ht[0],xt=ht[1],vt=(0,m.useState)([]),gt=d()(vt,2),yt=gt[0],jt=gt[1],bt=(0,m.useState)(!1),wt=d()(bt,2),Zt=wt[0],kt=wt[1],Nt=(0,m.useRef)((0,ei.throttle)((function(e){return Pt(e)}),1200,{leading:!0,trailing:!0})).current,It=(0,m.useState)([]),At=d()(It,2),St=At[0],Ct=At[1],Ft=function(){var e=(new Date).getFullYear();return Array(31).fill({}).map((function(n,t){return(0,xe.jsx)(ll,{value:e-t,children:(0,xe.jsx)("span",{children:e-t})},t)}))};(0,m.useEffect)((function(){var e,n,t,i,l,s,o,a,r;(null!=xn&&null!==(e=xn.need_apply_info)&&void 0!==e&&e.need_apply_name||null!=xn&&null!==(n=xn.need_apply_info)&&void 0!==n&&n.need_apply_teacher_phone||null!=xn&&null!==(t=xn.need_apply_info)&&void 0!==t&&t.need_apply_student_id||null!=xn&&null!==(i=xn.need_apply_info)&&void 0!==i&&i.need_apply_sex||null!=xn&&null!==(l=xn.need_apply_info)&&void 0!==l&&l.need_apply_phone||null!=xn&&null!==(s=xn.need_apply_info)&&void 0!==s&&s.need_apply_grade||null!=xn&&null!==(o=xn.need_apply_info)&&void 0!==o&&o.need_apply_teacher_name||null!=xn&&null!==(a=xn.need_apply_info)&&void 0!==a&&a.need_apply_school)&&Pt(1===(null==xn?void 0:xn.region_rule)||"81bjsjjs"===(null==xn?void 0:xn.identifier)?"":null==dn||null===(r=dn.userInfo)||void 0===r?void 0:r.school_name)}),[(null==xn||null===(n=xn.need_apply_info)||void 0===n?void 0:n.need_apply_name)||(null==xn||null===(t=xn.need_apply_info)||void 0===t?void 0:t.need_apply_teacher_phone)||(null==xn||null===(i=xn.need_apply_info)||void 0===i?void 0:i.need_apply_student_id)||(null==xn||null===(s=xn.need_apply_info)||void 0===s?void 0:s.need_apply_sex)||(null==xn||null===(a=xn.need_apply_info)||void 0===a?void 0:a.need_apply_phone)||(null==xn||null===(c=xn.need_apply_info)||void 0===c?void 0:c.need_apply_grade)||(null==xn||null===(u=xn.need_apply_info)||void 0===u?void 0:u.need_apply_teacher_name)||(null==xn||null===(I=xn.need_apply_info)||void 0===I?void 0:I.need_apply_school)]);var Pt=function(){var e=r()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,cn({type:"account/getSchoolOption",payload:{keyword:n,competition_id:fn,display_aliases:!0}});case 2:t=e.sent,jt(null==t?void 0:t.schools),n&&""!=n&&Ct(null==t||null===(i=t.schools)||void 0===i?void 0:i.filter((function(e){return-1!==e.name.toUpperCase().indexOf(n.toUpperCase())})));case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){if("4"===Nn.get("type")){var e,n;if(!((0,fe.eB)()||null!=xn&&null!==(e=xn.permission)&&void 0!==e&&e.editable))15===(null==dn||null===(n=dn.userInfo)||void 0===n?void 0:n.role)&&_.history.push("/competitions/detail/".concat(fn,"?type=1"));_n({tabsIndex:"4"}),wn(!0)}else if(Nn.get("type")){var t,i,l;if("3"===Nn.get("type"))null!=xn&&xn.personal&&((0,fe.eB)()||null!=xn&&null!==(t=xn.permission)&&void 0!==t&&t.editable||null!=xn&&xn.team_member_present)||null==xn||!xn.personal||_.history.push("/competitions/detail/".concat(fn,"?type=1"));if("5"===Nn.get("type"))null!=xn&&null!==(i=xn.permission)&&void 0!==i&&i.editable&&3===(null==xn?void 0:xn.mode)||_.history.push("/competitions/detail/".concat(fn,"?type=1"));if("6"===Nn.get("type"))(0,fe.eB)()||null!=xn&&null!==(l=xn.permission)&&void 0!==l&&l.editable||_.history.push(null==xn||!xn.memo_id||null!=xn&&xn.is_hidden?"/competitions/detail/".concat(fn,"?type=1"):"/forums/".concat(null==xn?void 0:xn.memo_id));_n({tabsIndex:Nn.get("type")})}else _n({tabsIndex:"1"});xn.identifier&&(!Nn.get("identifier")||null!=xn&&xn.team_member_present||null!=vn&&vn.enroll_ended||Vt(1),!Nn.get("code")||null!=xn&&xn.team_member_present||null!=vn&&vn.enroll_ended||function(){Bt.apply(this,arguments)}(),cn({type:"globalSetting/setShareData",payload:{title:null==xn?void 0:xn.name,desc:null==xn?void 0:xn.description,imgUrl:"".concat(null==xn?void 0:xn.image,"?x-oss-process=image/resize,h_200,w_200,m_pad")}}))}),[Nn.get("type"),xn]);var Tt=[{id:"1",name:"概览",content:(0,xe.jsx)(Lt,{})},{id:"2",name:"排行榜",content:(0,xe.jsx)(Ot,{})},(null==xn?void 0:xn.personal)&&((0,fe.eB)()||(null==xn||null===(A=xn.permission)||void 0===A?void 0:A.editable)||(null==xn?void 0:xn.team_member_present))&&{id:"3",name:"参赛人员",content:(0,xe.jsx)(hi,{})},!(null!=xn&&xn.personal)&&{id:"3",name:"战队",content:(0,xe.jsx)(ai,{})},((0,fe.eB)()||(null==xn||null===(S=xn.permission)||void 0===S?void 0:S.editable)||(null==xn?void 0:xn.enrolled)&&((null==xn?void 0:xn.message_id)&&!(null!=xn&&xn.is_hidden)||(null==xn?void 0:xn.memo_id)&&!(null!=xn&&xn.is_hidden)))&&{id:"6",name:"讨论",content:(0,xe.jsx)(Ei,{})},((0,fe.eB)()||(null==xn||null===(C=xn.permission)||void 0===C?void 0:C.editable))&&{id:"4",name:"设置",content:(0,xe.jsx)(mt,{enterDocument:bn,changeKey:new Date})},(null==xn||null===(F=xn.permission)||void 0===F?void 0:F.editable)&&3===(null==xn?void 0:xn.mode)&&{id:"5",name:"选手作品",content:(0,xe.jsx)(ji,{})}].filter((function(e){return!!e}));function Rt(){return Et.apply(this,arguments)}function Et(){return(Et=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:cn({type:"competitions/getStaff",payload:{identifier:fn}}),cn({type:"competitions/getHeader",payload:{identifier:fn}}),cn({type:"competitions/getGuides",payload:{identifier:fn}});case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Dt(){var e,n,t,i,l,s;if(null!=dn&&null!==(e=dn.userInfo)&&void 0!==e&&e.is_teacher){if((null!=vn&&null!==(t=vn.all_staff)&&void 0!==t&&t.mutiple_limited||null!=vn&&null!==(i=vn.teacher_staff)&&void 0!==i&&i.mutiple_limited)&&null!=vn&&vn.enrolled)return v.ZP.info("你已经报名,不能重复报名"),!0}else if((null!=vn&&null!==(l=vn.all_staff)&&void 0!==l&&l.mutiple_limited||null!=vn&&null!==(s=vn.member_staff)&&void 0!==s&&s.mutiple_limited)&&null!=vn&&vn.enrolled)return v.ZP.info("你已经报名,不能重复报名"),!0;if(null!=vn&&vn.enroll_ended)return v.ZP.info("报名已截止,无需报名"),!0;if(null!=vn&&vn.all_staff)return!1;if(null!=dn&&null!==(n=dn.userInfo)&&void 0!==n&&n.is_teacher){if(!vn.teacher_staff)return v.ZP.info("已禁止老师报名"),!0}else if(null==vn||!vn.member_staff)return v.ZP.info("已禁止学生报名"),!0}(0,m.useEffect)((function(){window.location.href.split("enter=").length>1&&_n({tabsIndex:"4"})}),[]),(0,m.useEffect)((function(){var e;16===(null==dn||null===(e=dn.userInfo)||void 0===e?void 0:e.role)&&cn({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!1}})}),[null==dn?void 0:dn.userInfo]),(0,m.useEffect)((function(){if("1"===an.actionTabs.key)_n({tabsIndex:"4"});else if("2"===an.actionTabs.key){var e;if(xn.teacher_need_phone||xn.member_need_phone)return void Qn(!0);if(!(0,kn.tJ)(cn))return;if(null!=xn&&xn.need_check_mail)return void x.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",icon:null,content:"您暂未绑定邮箱,为了后续竞赛奖项颁发等相关事宜的正常且准确进行,请完成绑定再参加报名。",onOk:function(){window.open("/account/secure")}});if(null!=xn&&xn.is_authentication&&(null==dn||null===(e=dn.userInfo)||void 0===e||!e.authentication))return void cn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}});Cn(!0)}else if("3"===an.actionTabs.key){var n;if(null!=xn&&xn.need_check_mail)return void x.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",icon:null,content:"您暂未绑定邮箱,为了后续竞赛奖项颁发等相关事宜的正常且准确进行,请完成绑定再参加报名。",onOk:function(){window.open("/account/secure")}});if(xn.teacher_need_phone||xn.member_need_phone)return void Qn(!0);if(!(0,kn.tJ)(cn))return;if(null!=xn&&xn.is_authentication&&(null==dn||null===(n=dn.userInfo)||void 0===n||!n.authentication))return void cn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}});Rn(!0)}else"4"===an.actionTabs.key?lt(!0):"6"===an.actionTabs.key?rt(!0):(Rn(!1),Cn(!1))}),[an.actionTabs]),(0,m.useEffect)((function(){fn&&Rt()}),[fn]);function Bt(){return(Bt=r()(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,Ze.ZP)("/api/competitions/".concat(fn,"/check_open.json"),{method:"post"});case 2:if(0===e.sent.status){e.next=5;break}return e.abrupt("return");case 5:if((0,kn.tJ)(cn)){e.next=7;break}return e.abrupt("return");case 7:if(!xn.teacher_need_phone&&!xn.member_need_phone){e.next=10;break}return Qn(!0),e.abrupt("return");case 10:if(null==xn||!xn.need_check_mail){e.next=13;break}return x.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",icon:null,content:"您暂未绑定邮箱,为了后续竞赛奖项颁发等相关事宜的正常且准确进行,请完成绑定再参加报名。",onOk:function(){window.open("/account/secure")}}),e.abrupt("return");case 13:if(null==xn||!xn.is_authentication||null!=dn&&null!==(n=dn.userInfo)&&void 0!==n&&n.authentication){e.next=16;break}return cn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}}),e.abrupt("return");case 16:if(!Dt()){e.next=19;break}return Bn(!1),e.abrupt("return");case 19:if(!Dn){e.next=21;break}return e.abrupt("return");case 21:return Bn(!0),e.next=24,cn({type:"competitions/JoinTeam",payload:{identifier:fn,invite_code:Nn.get("code")}});case 24:t=e.sent,Bn(!1),t&&0===t.status&&(et(t),Jn(!0),Rt(),cn({type:"competitions/setActionTabs",payload:{}}));case 27:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vt(e){return zt.apply(this,arguments)}function zt(){return zt=r()(o()().mark((function e(n){var t,i,s,a,c,d,u,p,m;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(0,he.Wn)(null==xn?void 0:xn.forbid_visit_info)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,Ze.ZP)("/api/competitions/".concat(fn,"/check_open.json"),{method:"post"});case 4:if(0===e.sent.status){e.next=7;break}return e.abrupt("return");case 7:if((0,kn.tJ)(cn)){e.next=9;break}return e.abrupt("return");case 9:if(null==xn||!xn.enroll_url){e.next=12;break}return window.open(null==xn?void 0:xn.enroll_url),e.abrupt("return");case 12:if(!(null!=xn&&xn.personal||1===n)){e.next=34;break}if(!xn.teacher_need_phone&&!xn.member_need_phone){e.next=16;break}return Qn(!0),e.abrupt("return");case 16:if(null==xn||!xn.need_check_mail){e.next=19;break}return x.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",icon:null,content:"您暂未绑定邮箱,为了后续竞赛奖项颁发等相关事宜的正常且准确进行,请完成绑定再参加报名。",onOk:function(){window.open("/account/secure")}}),e.abrupt("return");case 19:if(null==xn||!xn.is_authentication||null!=dn&&null!==(t=dn.userInfo)&&void 0!==t&&t.authentication){e.next=22;break}return cn({type:"shixunsDetail/setActionTabs",payload:{key:"Banner-Auth"}}),e.abrupt("return");case 22:if(!Dt()){e.next=25;break}return Bn(!1),e.abrupt("return");case 25:if(!Dn){e.next=27;break}return e.abrupt("return");case 27:if(m=function(){var e=r()(o()().mark((function e(){var n,t,i,s,a=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},i=null===(n=yt.find((function(e){return e.name===(null==t?void 0:t.school)})))||void 0===n?void 0:n.id,Bn(!0),e.next=5,cn({type:"competitions/AddTeam",payload:l()(l()({},t),{},{identifier:fn,name:dn.userInfo.real_name+"的战队",school_id:i})});case 5:s=e.sent,Bn(!1),s&&0===s.status&&(et(s),Jn(!0),Rt(),cn({type:"competitions/setActionTabs",payload:{}}));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!(null!=xn&&null!==(i=xn.need_apply_info)&&void 0!==i&&i.need_apply_name||null!=xn&&null!==(s=xn.need_apply_info)&&void 0!==s&&s.need_apply_student_id||null!=xn&&null!==(a=xn.need_apply_info)&&void 0!==a&&a.need_apply_sex||null!=xn&&null!==(c=xn.need_apply_info)&&void 0!==c&&c.need_apply_phone||null!=xn&&null!==(d=xn.need_apply_info)&&void 0!==d&&d.need_apply_grade||null!=xn&&null!==(u=xn.need_apply_info)&&void 0!==u&&u.need_apply_teacher_name||null!=xn&&null!==(p=xn.need_apply_info)&&void 0!==p&&p.need_apply_school)){e.next=31;break}return kt(!0),e.abrupt("return");case 31:m(),e.next=35;break;case 34:lt(!0);case 35:case"end":return e.stop()}}),e)}))),zt.apply(this,arguments)}return(0,xe.jsxs)("section",{className:k.bg,children:[(0,xe.jsxs)("div",{className:"edu-container",children:[(0,xe.jsxs)("div",{className:k.top,children:[(0,xe.jsxs)(g.Z,{separator:">",children:[(0,xe.jsx)(g.Z.Item,{children:(0,xe.jsx)(_.Link,{style:{fontSize:12},to:"/competitions",children:"在线竞赛"})}),(0,xe.jsx)(g.Z.Item,{children:(0,xe.jsx)("span",{style:{fontSize:12},children:null==xn?void 0:xn.name})})]}),(0,xe.jsxs)("div",{className:k.content,children:[(0,xe.jsx)("div",{style:{width:700,height:300,maxHeight:300,background:"#f1f1f1",flexShrink:0},children:(null==xn?void 0:xn.image)&&(0,xe.jsx)("img",{className:k.Banner,src:"".concat(null==xn?void 0:xn.image)})}),(0,xe.jsxs)("div",{className:k.right,children:[(0,xe.jsxs)("div",{className:k.titles,children:[null==xn?void 0:xn.name,null!=xn&&xn.sub_title?"-"+xn.sub_title:null]}),(0,xe.jsxs)("div",{className:k.bonus,children:[(0,xe.jsxs)("div",{children:[(0,xe.jsx)("p",{children:null!=xn&&xn.bonus?(0,xe.jsxs)("span",{className:"font20",children:["¥",parseInt(xn&&xn.bonus).toLocaleString()]}):(0,xe.jsx)("span",{style:{fontSize:"16px",color:"#DCDCDC"},children:"暂无"})}),(0,xe.jsxs)("div",{className:k.items,children:[(0,xe.jsx)("i",{className:"iconfont icon-jiangjin"})," ",(0,xe.jsx)("span",{children:"奖金"})]})]}),(0,xe.jsxs)("div",{children:[(0,xe.jsx)("p",{className:"font20",children:parseInt(xn&&(null==xn?void 0:xn.visits_count)).toLocaleString()}),(0,xe.jsxs)("div",{className:k.items,children:[(0,xe.jsx)("i",{className:"iconfont icon-liulan1"}),(0,xe.jsx)("span",{children:"浏览"})]})]}),(0,xe.jsxs)("div",{children:[(0,xe.jsx)("p",{className:"font20",children:parseInt(xn&&(null==xn?void 0:xn.member_count)).toLocaleString()}),(0,xe.jsxs)("div",{className:k.items,children:[(0,xe.jsx)("i",{className:"iconfont icon-baoming"})," ",(0,xe.jsx)("span",{children:"报名"})]})]})]}),(0,xe.jsxs)("div",{className:k.bottom,children:[(0,xe.jsxs)("div",{children:[(0,xe.jsx)("span",{style:{color:"#9096A3"},children:"竞赛时间"}),(0,xe.jsx)("span",{style:{marginLeft:20},children:null!=xn&&xn.start_time?(0,xe.jsxs)("span",{children:[null==xn?void 0:xn.start_time,"~",null==xn?void 0:xn.end_time]}):(0,xe.jsx)("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:function(){_n({tabsIndex:"4"}),cn({type:"competitions/setActionTabs",payload:{key:"7"}})},children:"去完善"})})]}),(0,xe.jsxs)("div",{style:{margin:"14px 0px"},children:[(0,xe.jsx)("span",{style:{color:"#9096A3"},children:"报名截止"}),(0,xe.jsx)("span",{style:{marginLeft:20},children:null!=xn&&xn.enroll_end_time?(0,xe.jsx)("span",{children:null==xn?void 0:xn.enroll_end_time}):(0,xe.jsx)("span",{style:{color:"3061D0",cursor:"pointer"},onClick:function(){_n({tabsIndex:"4"}),cn({type:"competitions/setActionTabs",payload:{key:"7"}})},children:"去完善"})})]}),(0,xe.jsxs)("div",{children:[(0,xe.jsx)("span",{style:{color:"#9096A3"},children:"竞赛状态"}),(0,xe.jsx)("span",{style:{marginLeft:20},children:null===(P=[{name:"待审核",type:"preparing"},{name:"审核中",type:"review"},{name:"被驳回",type:"not_passed"},{name:"即将发布",type:"nearly_published"},{name:"进行中",type:"progressing"},{name:"已结束",type:"ended"},{name:"未发布",type:"unpublish"},{name:"正在报名",type:"apply"}].find((function(e){return e.type===(null==xn?void 0:xn.competition_status)})))||void 0===P?void 0:P.name})]}),["unpublish","preparing","review","not_passed"].includes(null==xn?void 0:xn.competition_status)&&(0,xe.jsx)("span",{className:k.publish,onClick:function(){var e;(null==xn?void 0:xn.not_finish_count)>0?x.Z.confirm({icon:null,title:"",okText:"去完善",content:"检测到当前您还未完善竞赛指引的内容,请先完善指引清单,再发布审核竞赛",onOk:(e=r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:_n({tabsIndex:"4"}),cn({type:"competitions/setActionTabs",payload:{key:"5"}});case 2:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})}):(pt(!0),(0,pe.GY)({}).then((function(e){xt(null==e?void 0:e.schools)})).then((function(){var e,n,t;zn.setFieldsValue({sponsor_schools:null===(e=dn.userInfo)||void 0===e?void 0:e.user_school_id,sponsor_user_name:null===(n=dn.userInfo)||void 0===n?void 0:n.real_name,sponsor_user_phone:null===(t=dn.userInfo)||void 0===t?void 0:t.phone})})))},children:"发布竞赛"}),("progressing"===(null==xn?void 0:xn.competition_status)||"apply"===(null==xn?void 0:xn.competition_status))&&!(null!=xn&&xn.team_member_present)&&!(null!=vn&&vn.enroll_ended)&&(0,xe.jsx)("span",{className:k.publish,onClick:r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null!=xn&&xn.is_course_manager?window.open(xn.first_category_url):Vt(2);case 1:case"end":return e.stop()}}),e)}))),children:2===(null==xn?void 0:xn.mode)&&null!=xn&&xn.member_of_course?"进入考场":"立即报名"}),(("progressing"===(null==xn?void 0:xn.competition_status)||"apply"===(null==xn?void 0:xn.competition_status))&&(null==xn?void 0:xn.team_member_present)||((0,fe.Ny)()||(null==xn?void 0:xn.is_course_manager)||(null==xn?void 0:xn.is_manager))&&"ended"!=(null==xn?void 0:xn.competition_status))&&(0,xe.jsx)("span",{className:k.publish,onClick:function(){if(1===xn.mode||3===xn.mode)_n({tabsIndex:"1"}),cn({type:"competitions/setActionTabs",payload:{key:"entrance"}});else{if((0,he.Wn)(null==xn?void 0:xn.forbid_visit_info))return;window.open(xn.first_category_url)}},children:1===xn.mode||3===xn.mode?"赛题入口":"进入考场"}),"ended"===(null==xn?void 0:xn.competition_status)&&(0,xe.jsx)("span",{onClick:function(){if(null!=xn&&xn.team_member_present||(0,fe.Ny)()||null!=xn&&xn.is_manager)if(1===xn.mode||3===xn.mode)_n({tabsIndex:"1"}),cn({type:"competitions/setActionTabs",payload:{key:"entrance"}});else{if((0,he.Wn)(null==xn?void 0:xn.forbid_visit_info))return;window.open(xn.first_category_url)}},className:(null!=xn&&xn.team_member_present||(0,fe.Ny)()||null!=xn&&xn.is_manager)&&1!==xn.mode&&3!==xn.mode?k.publish:k.ended,children:(null!=xn&&xn.team_member_present||(0,fe.Ny)()||null!=xn&&xn.is_manager)&&1!==xn.mode&&3!==xn.mode?"进入考场":"已结束"}),("progressing"===(null==xn?void 0:xn.competition_status)||"apply"===(null==xn?void 0:xn.competition_status))&&(0,xe.jsx)(Xt.CopyToClipboard,{text:"【竞赛邀请】".concat(null==dn||null===(T=dn.userInfo)||void 0===T?void 0:T.username,"邀请您参加头歌平台竞赛组织《").concat(null==xn?void 0:xn.name,"竞赛》,您可以点击下方的链接,报名该赛项。链接:").concat(window.location.origin).concat(window.location.pathname,"?identifier=").concat(null==xn?void 0:xn.identifier),onCopy:function(){return v.ZP.success("已复制链接,请直接粘贴发送好友")},children:(0,xe.jsxs)("span",{className:"".concat(k.shareicon),children:[(0,xe.jsx)("i",{style:{marginRight:6,fontSize:14},className:"iconfont icon-fenxiangketang"}),"分享"]})})]})]})]})]}),!(null!=gn&&null!==(R=gn.data)&&void 0!==R&&R.guides_is_hidden)&&(null==gn||null===(E=gn.data)||void 0===E||null===(E=E.list)||void 0===E?void 0:E.length)>0&&(0,xe.jsx)(tl,{className:"mt20",LineData:null==gn||null===(L=gn.data)||void 0===L||null===(L=L.list)||void 0===L?void 0:L.map((function(e){return l()(l()({},e),{},{competition_time:null!=e&&e.competition_time?de()(null==e?void 0:e.competition_time):null})}))}),(0,xe.jsx)("div",{id:"js_nav"}),(0,xe.jsx)(N.YG,{value:mn.tabsIndex,style:{marginBottom:10,paddingLeft:20,background:"#fff",height:64,position:"sticky",top:0,zIndex:1},onChange:function(e){var n,t;(mn.tabsIndex=e,_n(l()({},mn)),"3"===e)&&((0,fe.eB)()||null!==(n=xn.permission)&&void 0!==n&&n.editable||null!=xn&&xn.team_member_present||null!=vn&&vn.enroll_ended||(xn.personal?cn({type:"competitions/setActionTabs",payload:{key:"6"}}):cn({type:"competitions/setActionTabs",payload:{key:"4"}})));if(("4"==e&&wn(!1),"6"===e)&&!((0,fe.eB)()||null!=xn&&null!==(t=xn.permission)&&void 0!==t&&t.editable))return null==xn||!xn.message_id||null!=xn&&xn.is_hidden?void _.history.push(null==xn||!xn.memo_id||null!=xn&&xn.is_hidden?"/competitions/detail/".concat(fn,"?type=1"):"/forums/".concat(null==xn?void 0:xn.memo_id)):(_.history.push("/classrooms/".concat(null==xn?void 0:xn.course_identifier,"/board/").concat(null==xn?void 0:xn.board_id,"/Detail/").concat(null==xn?void 0:xn.message_id)),void cn({type:"user/getUserInfo",payload:{course_id:null==xn?void 0:xn.course_identifier}}));_.history.replace("/competitions/detail/".concat(fn,"?type=").concat(e))},dataSource:Tt}),("unpublish"===xn.competition_status||"preparing"===xn.competition_status||"review"===xn.competition_status)&&(0,xe.jsxs)("div",{className:k.tag,children:[(0,xe.jsx)(Kt.Z,{})," 提示:该竞赛还未审核,暂时只有管理员可见"]}),((0,fe.eB)()||(null==xn||null===(D=xn.permission)||void 0===D?void 0:D.editable))&&"3"===mn.tabsIndex&&("progressing"===xn.competition_status||"ended"===xn.competition_status)&&((null==xn||null===(B=xn.need_apply_info)||void 0===B?void 0:B.need_apply_name)||(null==xn||null===(V=xn.need_apply_info)||void 0===V?void 0:V.need_apply_teacher_phone)||(null==xn||null===(z=xn.need_apply_info)||void 0===z?void 0:z.need_apply_student_id)||(null==xn||null===(M=xn.need_apply_info)||void 0===M?void 0:M.need_apply_sex)||(null==xn||null===(O=xn.need_apply_info)||void 0===O?void 0:O.need_apply_phone)||(null==xn||null===(Y=xn.need_apply_info)||void 0===Y?void 0:Y.need_apply_grade)||(null==xn||null===(H=xn.need_apply_info)||void 0===H?void 0:H.need_apply_teacher_name)||(null==xn||null===(q=xn.need_apply_info)||void 0===q?void 0:q.need_apply_school))&&(0,xe.jsxs)("div",{className:k.tag,children:[(0,xe.jsx)(Kt.Z,{})," 若本竞赛开启了报名信息填写,那么参赛者的个人资料将以报名时填写的信息为主。如需验证参赛者在平台上的真实账号信息,可以通过“导出”功能来获取详细资料。"]}),"not_passed"===xn.competition_status&&(0,xe.jsxs)("div",{className:k.tag,style:{color:"red",background:"rgba(229,51,51,0.1)"},children:[(0,xe.jsx)(Kt.Z,{})," 审核被驳回",(0,xe.jsx)(y.Z,{placement:"bottom",title:null==xn?void 0:xn.not_passed_reason,children:(0,xe.jsxs)("span",{style:{marginLeft:20},children:["驳回理由:",null==xn?void 0:xn.not_passed_reason]})})]}),null===(Q=Tt.find((function(e){return e.id===mn.tabsIndex})))||void 0===Q?void 0:Q.content]}),(0,xe.jsx)(x.Z,{title:"加入战队",open:Sn,width:700,className:k.scoremodal,onOk:(0,ei.debounce)((function(){zn.submit()}),500),okButtonProps:{loading:Dn},centered:!0,onCancel:function(){return Cn(!1)},children:(0,xe.jsx)("div",{children:(0,xe.jsxs)(f.Z,{form:zn,initialValues:l()(l()({},dn.userInfo),{},{sex:null==dn||null===(G=dn.userInfo)||void 0===G?void 0:G.gender,grade:null==dn||null===(U=dn.userInfo)||void 0===U?void 0:U.edu_entry_year,school:null==dn||null===(W=dn.userInfo)||void 0===W?void 0:W.school_name}),size:"large",labelCol:{span:5},onFinish:function(){var e=r()(o()().mark((function e(n){var t,i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Bn(!0),!Dt()){e.next=4;break}return Bn(!1),e.abrupt("return");case 4:if((s=null===(t=yt.find((function(e){return e.name===(null==n?void 0:n.school)})))||void 0===t?void 0:t.id)||null==xn||null===(i=xn.need_apply_info)||void 0===i||!i.need_apply_school){e.next=8;break}return v.ZP.info("请选择正确的学校"),e.abrupt("return");case 8:return e.next=10,cn({type:"competitions/JoinTeam",payload:l()(l()({},n),{},{identifier:fn,invite_code:n.name,school_id:s})});case 10:a=e.sent,Bn(!1),0===a.status&&(Jn(!0),et(a),Rt(),cn({type:"competitions/setActionTabs",payload:{}}));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[((null==xn||null===(J=xn.need_apply_info)||void 0===J?void 0:J.need_apply_name)||(null==xn||null===(K=xn.need_apply_info)||void 0===K?void 0:K.need_apply_teacher_phone)||(null==xn||null===(X=xn.need_apply_info)||void 0===X?void 0:X.need_apply_student_id)||(null==xn||null===($=xn.need_apply_info)||void 0===$?void 0:$.need_apply_sex)||(null==xn||null===(ee=xn.need_apply_info)||void 0===ee?void 0:ee.need_apply_phone)||(null==xn||null===(ne=xn.need_apply_info)||void 0===ne?void 0:ne.need_apply_grade)||(null==xn||null===(te=xn.need_apply_info)||void 0===te?void 0:te.need_apply_teacher_name)||(null==xn||null===(ie=xn.need_apply_info)||void 0===ie?void 0:ie.need_apply_school))&&(0,xe.jsx)("div",{className:"mb20",children:"根据竞赛官方的规定,参赛人员需填写必填信息才可完成报名,请确保填写的信息准确完整。"}),(0,xe.jsx)(f.Z.Item,{label:"邀请码",name:"name",rules:[{required:!0,validator:function(e,n){var t;return(null==n||null===(t=n.replaceAll(" ",""))||void 0===t?void 0:t.length)>0?Promise.resolve():Promise.reject("请填写竞赛名称")}}],children:(0,xe.jsx)(j.Z,{maxLength:60,showCount:!0,placeholder:"请输入邀请码"})}),(null==xn||null===(le=xn.need_apply_info)||void 0===le?void 0:le.need_apply_name)&&(0,xe.jsx)(f.Z.Item,{label:"参赛人员姓名",name:"real_name",rules:[{required:!0,message:"请输入参赛人员姓名"},{whitespace:!0,message:"姓名不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入参赛人员姓名",showCount:!0,maxLength:60})}),(null==xn||null===(se=xn.need_apply_info)||void 0===se?void 0:se.need_apply_sex)&&(0,xe.jsx)(f.Z.Item,{label:"性别",name:"sex",rules:[{required:!0,message:"请选择参赛人员性别"}],children:(0,xe.jsxs)(b.ZP.Group,{children:[(0,xe.jsx)(b.ZP,{value:0,children:"男"}),(0,xe.jsx)(b.ZP,{value:1,children:"女"})]})}),(null==xn||null===(oe=xn.need_apply_info)||void 0===oe?void 0:oe.need_apply_student_id)&&(0,xe.jsx)(f.Z.Item,{label:"学号",name:"student_id",rules:[{required:!0,message:"请输入参赛人员学号"},{whitespace:!0,message:"学号不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入参赛人员学号",showCount:!0,maxLength:60})}),(null==xn||null===(ae=xn.need_apply_info)||void 0===ae?void 0:ae.need_apply_phone)&&(0,xe.jsx)(f.Z.Item,{label:"电话",name:"phone",rules:[{required:!0,message:"请输入参赛人员电话"},{whitespace:!0,message:"电话不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入参赛人员电话",showCount:!0,maxLength:60})}),(null==xn||null===(re=xn.need_apply_info)||void 0===re?void 0:re.need_apply_grade)&&(0,xe.jsx)(f.Z.Item,{label:"年级",name:"grade",rules:[{required:!0,message:"请选择参赛人员年级"}],children:(0,xe.jsx)(h.default,{placeholder:"请选择参赛人员年级",size:"large",children:Ft()})}),(null==xn||null===(ce=xn.need_apply_info)||void 0===ce?void 0:ce.need_apply_teacher_name)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师姓名",name:"teacher_name",rules:[{required:!0,message:"请输入指导老师姓名"},{whitespace:!0,message:"指导老师姓名不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"如没有指导老师请填无",showCount:!0,maxLength:60})}),(null==xn||null===(me=xn.need_apply_info)||void 0===me?void 0:me.need_apply_teacher_phone)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师联系方式",name:"teacher_phone",rules:[{required:!0,message:"请输入指导老师联系方式"},{whitespace:!0,message:"指导老师联系方式不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入指导老师联系方式",showCount:!0,maxLength:60})}),(null==xn||null===(_e=xn.need_apply_info)||void 0===_e?void 0:_e.need_apply_school)&&1!==(null==xn?void 0:xn.region_rule)&&"81bjsjjs"!==xn.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(w.Z,{size:"large",showSearch:!0,onChange:function(e){return Nt(e)},children:St.map((function(e,n){return(0,xe.jsx)(ll,{value:e.name,children:e.name},n)}))})}),(null==xn||null===(ve=xn.need_apply_info)||void 0===ve?void 0:ve.need_apply_school)&&1===(null==xn?void 0:xn.region_rule)||"81bjsjjs"===xn.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(h.default,{showSearch:!0,children:yt.map((function(e,n){return(0,xe.jsx)(ll,{value:e.name,children:e.name},n)}))})})]})})}),(0,xe.jsxs)(x.Z,{title:!1,footer:!1,open:it,width:318,className:k.scoremodal,closable:!1,centered:!0,children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("div",{className:k.title,children:"报名"}),(0,xe.jsx)("span",{onClick:function(){return lt(!1)},style:{cursor:"pointer"},className:k.close,children:(0,xe.jsx)("i",{className:"iconfont icon-danchuangguanbi",style:{fontSize:"14px"}})})]}),(0,xe.jsx)("div",{className:k.content,children:"选择参赛方式"}),(0,xe.jsxs)("div",{className:k.bottoms,children:[(0,xe.jsx)(Z.ZP,{className:k.no,onClick:function(){cn({type:"competitions/setActionTabs",payload:{key:"2"}}),lt(!1)},children:"加入战队"}),(0,xe.jsx)(Z.ZP,{className:k.yes,onClick:function(){cn({type:"competitions/setActionTabs",payload:{key:"3"}}),lt(!1)},children:"创建战队"})]})]}),(0,xe.jsxs)(x.Z,{title:!1,footer:!1,open:at,width:318,className:k.scoremodal,closable:!1,centered:!0,children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("div",{className:k.title,children:"报名"}),(0,xe.jsx)("span",{onClick:function(){return rt(!1)},style:{cursor:"pointer"},className:k.close,children:(0,xe.jsx)("i",{className:"iconfont icon-danchuangguanbi"})})]}),(0,xe.jsx)("div",{className:k.content,children:"您暂未报名,请先报名"}),(0,xe.jsxs)("div",{className:k.bottoms,children:[(0,xe.jsx)(Z.ZP,{className:k.no,onClick:function(){rt(!1)},children:"取消"}),(0,xe.jsx)(Z.ZP,{className:k.yes,loading:Dn,onClick:r()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Dt()){e.next=3;break}return Bn(!1),e.abrupt("return");case 3:if(!Dn){e.next=5;break}return e.abrupt("return");case 5:return Bn(!0),e.next=8,cn({type:"competitions/AddTeam",payload:{identifier:fn}});case 8:n=e.sent,Bn(!1),n&&0===n.status&&(et(n),Jn(!0),Rt(),cn({type:"competitions/setActionTabs",payload:{}})),rt(!1);case 12:case"end":return e.stop()}}),e)}))),children:"立即报名"})]})]}),(0,xe.jsx)(x.Z,{title:"报名信息填写",open:Zt,width:700,className:k.scoremodal,onOk:(0,ei.debounce)((function(){On.submit()}),500),okButtonProps:{loading:Dn},centered:!0,onCancel:function(){return kt(!1)},children:(0,xe.jsxs)(f.Z,{initialValues:l()(l()({},dn.userInfo),{},{sex:null==dn||null===(ge=dn.userInfo)||void 0===ge?void 0:ge.gender,grade:null==dn||null===(ye=dn.userInfo)||void 0===ye?void 0:ye.edu_entry_year,school:null==dn||null===(je=dn.userInfo)||void 0===je?void 0:je.school_name}),form:On,colon:!1,labelCol:{span:5},size:"large",onFinish:function(){var e=r()(o()().mark((function e(n){var t,i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((s=null===(t=yt.find((function(e){return e.name===(null==n?void 0:n.school)})))||void 0===t?void 0:t.id)||null==xn||null===(i=xn.need_apply_info)||void 0===i||!i.need_apply_school){e.next=4;break}return v.ZP.info("请选择正确的学校"),e.abrupt("return");case 4:return Bn(!0),e.next=7,cn({type:"competitions/AddTeam",payload:l()(l()({},n),{},{identifier:fn,name:dn.userInfo.real_name+"的战队",school_id:s})});case 7:a=e.sent,Bn(!1),a&&0===a.status&&(et(a),Jn(!0),Rt(),cn({type:"competitions/setActionTabs",payload:{}})),kt(!1);case 11:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[((null==xn||null===(be=xn.need_apply_info)||void 0===be?void 0:be.need_apply_name)||(null==xn||null===(we=xn.need_apply_info)||void 0===we?void 0:we.need_apply_teacher_phone)||(null==xn||null===(ke=xn.need_apply_info)||void 0===ke?void 0:ke.need_apply_student_id)||(null==xn||null===(Ne=xn.need_apply_info)||void 0===Ne?void 0:Ne.need_apply_sex)||(null==xn||null===(Ie=xn.need_apply_info)||void 0===Ie?void 0:Ie.need_apply_phone)||(null==xn||null===(Ae=xn.need_apply_info)||void 0===Ae?void 0:Ae.need_apply_grade)||(null==xn||null===(Se=xn.need_apply_info)||void 0===Se?void 0:Se.need_apply_teacher_name)||(null==xn||null===(Ce=xn.need_apply_info)||void 0===Ce?void 0:Ce.need_apply_school))&&(0,xe.jsx)("div",{className:"mb20",children:"根据竞赛官方的规定,参赛人员需填写必填信息才可完成报名,请确保填写的信息准确完整。"}),(null==xn||null===(Fe=xn.need_apply_info)||void 0===Fe?void 0:Fe.need_apply_name)&&(0,xe.jsx)(f.Z.Item,{label:"参赛人员姓名",name:"real_name",rules:[{required:!0,message:"请输入参赛人员姓名"},{whitespace:!0,message:"姓名不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入参赛人员姓名",showCount:!0,maxLength:60})}),(null==xn||null===(Pe=xn.need_apply_info)||void 0===Pe?void 0:Pe.need_apply_sex)&&(0,xe.jsx)(f.Z.Item,{label:"性别",name:"sex",rules:[{required:!0,message:"请选择参赛人员性别"}],children:(0,xe.jsxs)(b.ZP.Group,{children:[(0,xe.jsx)(b.ZP,{value:0,children:"男"}),(0,xe.jsx)(b.ZP,{value:1,children:"女"})]})}),(null==xn||null===(Te=xn.need_apply_info)||void 0===Te?void 0:Te.need_apply_student_id)&&(0,xe.jsx)(f.Z.Item,{label:"学号",name:"student_id",rules:[{required:!0,message:"请输入参赛人员学号"},{whitespace:!0,message:"学号不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入参赛人员学号",showCount:!0,maxLength:60})}),(null==xn||null===(Re=xn.need_apply_info)||void 0===Re?void 0:Re.need_apply_phone)&&(0,xe.jsx)(f.Z.Item,{label:"电话",name:"phone",rules:[{required:!0,message:"请输入参赛人员电话"},{whitespace:!0,message:"电话不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入参赛人员电话",showCount:!0,maxLength:60})}),(null==xn||null===(Ee=xn.need_apply_info)||void 0===Ee?void 0:Ee.need_apply_grade)&&(0,xe.jsx)(f.Z.Item,{label:"年级",name:"grade",rules:[{required:!0,message:"请选择参赛人员年级"},"81bjsjjs"===fn?{validator:function(e,n){return 2023!==n?Promise.reject(new Error("不符合报名参赛范围")):Promise.resolve()}}:null].filter((function(e){return null!==e})),children:(0,xe.jsx)(h.default,{placeholder:"请选择参赛人员年级",size:"large",children:Ft()})}),(null==xn||null===(Le=xn.need_apply_info)||void 0===Le?void 0:Le.need_apply_teacher_name)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师姓名",name:"teacher_name",rules:[{required:!0,message:"请输入指导老师姓名"},{whitespace:!0,message:"指导老师姓名不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"如没有指导老师请填无",showCount:!0,maxLength:60})}),(null==xn||null===(De=xn.need_apply_info)||void 0===De?void 0:De.need_apply_teacher_phone)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师联系方式",name:"teacher_phone",rules:[{required:!0,message:"请输入指导老师联系方式"},{whitespace:!0,message:"指导老师联系方式不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入指导老师联系方式",showCount:!0,maxLength:60})}),(null==xn||null===(Be=xn.need_apply_info)||void 0===Be?void 0:Be.need_apply_school)&&"81bjsjjs"!==xn.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(w.Z,{size:"large",showSearch:!0,onChange:function(e){return Nt(e)},children:St.map((function(e,n){return(0,xe.jsx)(ll,{value:e.name,children:e.name},n)}))})}),(null==xn||null===(Ve=xn.need_apply_info)||void 0===Ve?void 0:Ve.need_apply_school)&&1===(null==xn?void 0:xn.region_rule)||"81bjsjjs"===xn.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(h.default,{showSearch:!0,children:yt.map((function(e,n){return(0,xe.jsx)(ll,{value:e.name,children:e.name},n)}))})})]})}),(0,xe.jsx)(x.Z,{title:"创建战队",open:Tn,width:700,className:k.scoremodal,onOk:(0,ei.debounce)((function(){zn.submit()}),500),okButtonProps:{loading:Dn},centered:!0,onCancel:function(){return Rn(!1)},children:(0,xe.jsx)("div",{children:(0,xe.jsxs)(f.Z,{form:zn,labelCol:{span:5},initialValues:l()(l()({},dn.userInfo),{},{sex:null==dn||null===(ze=dn.userInfo)||void 0===ze?void 0:ze.gender,grade:null==dn||null===(Me=dn.userInfo)||void 0===Me?void 0:Me.edu_entry_year,school:null==dn||null===(Oe=dn.userInfo)||void 0===Oe?void 0:Oe.school_name}),size:"large",onFinish:function(){var e=r()(o()().mark((function e(n){var t,i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Bn(!0),(s=null===(t=yt.find((function(e){return e.name===(null==n?void 0:n.school)})))||void 0===t?void 0:t.id)||null==xn||null===(i=xn.need_apply_info)||void 0===i||!i.need_apply_school){e.next=5;break}return v.ZP.info("请选择正确的学校"),e.abrupt("return");case 5:if(!Dt()){e.next=8;break}return Bn(!1),e.abrupt("return");case 8:return e.next=10,cn({type:"competitions/AddTeam",payload:l()(l()({},n),{},{identifier:fn,name:n.name,school_id:s})});case 10:a=e.sent,Bn(!1),a&&0===a.status&&(et(a),Jn(!0),Rt(),cn({type:"competitions/setActionTabs",payload:{}}));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[((null==xn||null===(Ye=xn.need_apply_info)||void 0===Ye?void 0:Ye.need_apply_name)||(null==xn||null===(He=xn.need_apply_info)||void 0===He?void 0:He.need_apply_teacher_phone)||(null==xn||null===(qe=xn.need_apply_info)||void 0===qe?void 0:qe.need_apply_student_id)||(null==xn||null===(Qe=xn.need_apply_info)||void 0===Qe?void 0:Qe.need_apply_sex)||(null==xn||null===(Ge=xn.need_apply_info)||void 0===Ge?void 0:Ge.need_apply_phone)||(null==xn||null===(Ue=xn.need_apply_info)||void 0===Ue?void 0:Ue.need_apply_grade)||(null==xn||null===(We=xn.need_apply_info)||void 0===We?void 0:We.need_apply_teacher_name)||(null==xn||null===(Je=xn.need_apply_info)||void 0===Je?void 0:Je.need_apply_school))&&(0,xe.jsx)("div",{className:"mb20",children:"根据竞赛官方的规定,参赛人员需填写必填信息才可完成报名,请确保填写的信息准确完整。"}),(0,xe.jsx)(f.Z.Item,{label:"队伍名称",name:"name",rules:[{required:!0,validator:function(e,n){var t;return(null==n||null===(t=n.replaceAll(" ",""))||void 0===t?void 0:t.length)>0?Promise.resolve():Promise.reject("请填写队伍名称")}}],children:(0,xe.jsx)(j.Z,{maxLength:60,showCount:!0,placeholder:"请输入队伍名称"})}),(null==xn||null===(Ke=xn.need_apply_info)||void 0===Ke?void 0:Ke.need_apply_name)&&(0,xe.jsx)(f.Z.Item,{label:"参赛人员姓名",name:"real_name",rules:[{required:!0,message:"请输入参赛人员姓名"},{whitespace:!0,message:"姓名不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入参赛人员姓名",showCount:!0,maxLength:60})}),(null==xn||null===(Xe=xn.need_apply_info)||void 0===Xe?void 0:Xe.need_apply_sex)&&(0,xe.jsx)(f.Z.Item,{label:"性别",name:"sex",rules:[{required:!0,message:"请选择参赛人员性别"}],children:(0,xe.jsxs)(b.ZP.Group,{children:[(0,xe.jsx)(b.ZP,{value:0,children:"男"}),(0,xe.jsx)(b.ZP,{value:1,children:"女"})]})}),(null==xn||null===($e=xn.need_apply_info)||void 0===$e?void 0:$e.need_apply_student_id)&&(0,xe.jsx)(f.Z.Item,{label:"学号",name:"student_id",rules:[{required:!0,message:"请输入参赛人员学号"},{whitespace:!0,message:"学号不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入参赛人员学号",showCount:!0,maxLength:60})}),(null==xn||null===(en=xn.need_apply_info)||void 0===en?void 0:en.need_apply_phone)&&(0,xe.jsx)(f.Z.Item,{label:"电话",name:"phone",rules:[{required:!0,message:"请输入参赛人员电话"},{whitespace:!0,message:"电话不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入参赛人员电话",showCount:!0,maxLength:60})}),(null==xn||null===(nn=xn.need_apply_info)||void 0===nn?void 0:nn.need_apply_grade)&&(0,xe.jsx)(f.Z.Item,{label:"年级",name:"grade",rules:[{required:!0,message:"请选择参赛人员年级"}],children:(0,xe.jsx)(h.default,{placeholder:"请选择参赛人员年级",size:"large",children:Ft()})}),(null==xn||null===(tn=xn.need_apply_info)||void 0===tn?void 0:tn.need_apply_teacher_name)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师姓名",name:"teacher_name",rules:[{required:!0,message:"请输入指导老师姓名"},{whitespace:!0,message:"指导老师姓名不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"如没有指导老师请填无",showCount:!0,maxLength:60})}),(null==xn||null===(ln=xn.need_apply_info)||void 0===ln?void 0:ln.need_apply_teacher_phone)&&(0,xe.jsx)(f.Z.Item,{label:"指导老师联系方式",name:"teacher_phone",rules:[{required:!0,message:"请输入指导老师联系方式"},{whitespace:!0,message:"指导老师联系方式不能为空"}],children:(0,xe.jsx)(j.Z,{placeholder:"请输入指导老师联系方式",showCount:!0,maxLength:60})}),(null==xn||null===(sn=xn.need_apply_info)||void 0===sn?void 0:sn.need_apply_school)&&"81bjsjjs"!==xn.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(w.Z,{size:"large",showSearch:!0,onChange:function(e){return Nt(e)},children:St.map((function(e,n){return(0,xe.jsx)(ll,{value:e.name,children:e.name},n)}))})}),(null==xn||null===(on=xn.need_apply_info)||void 0===on?void 0:on.need_apply_school)&&1===(null==xn?void 0:xn.region_rule)||"81bjsjjs"===xn.identifier&&(0,xe.jsx)(f.Z.Item,{label:"学校",name:"school",rules:[{required:!0,message:"请选择学校"}],children:(0,xe.jsx)(h.default,{showSearch:!0,children:yt.map((function(e,n){return(0,xe.jsx)(ll,{value:e.name,children:e.name},n)}))})})]})})}),(0,xe.jsxs)(x.Z,{title:!1,footer:!1,open:ut,width:650,className:k.scoremodal,closable:!1,centered:!0,onCancel:function(){return pt(!1)},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,xe.jsx)("div",{className:k.title,children:"为了加快竞赛审核速度,请确认以下信息是否准确"}),(0,xe.jsx)("span",{onClick:function(){return pt(!1)},style:{cursor:"pointer"},className:k.close,children:(0,xe.jsx)("i",{className:"iconfont icon-guanbi",style:{color:"#979797",fontSize:"15px"}})})]}),(0,xe.jsx)("div",{className:k.content,children:(0,xe.jsxs)(f.Z,{form:zn,className:k.formWrap,onFinish:function(e){(0,ue.qt)(l()(l()({},e),{},{id:fn})).then((function(e){0==(null==e?void 0:e.status)?(v.ZP.success("发布审核成功,审核通过后,竞赛可上线启动"),pt(!1),Rt()):v.ZP.error(null==e?void 0:e.message)}))},labelCol:{flex:"110px"},children:[(0,xe.jsx)(f.Z.Item,{className:k.form_item,label:"主办方",colon:!1,name:"sponsor_schools",children:(0,xe.jsx)(h.default,{mode:"multiple",className:k.form_item_item_select,options:ft,fieldNames:{label:"name",value:"id"},placeholder:"请输入主办方",filterOption:function(e,n){var t;return(null!==(t=null==n?void 0:n.name)&&void 0!==t?t:"").toLowerCase().includes(e.toLowerCase())}})}),(0,xe.jsx)(f.Z.Item,{className:k.form_item,label:"主要负责人姓名",colon:!1,name:"sponsor_user_name",children:(0,xe.jsx)(j.Z,{className:k.form_item_item,placeholder:"请输入主要负责人姓名"})}),(0,xe.jsx)(f.Z.Item,{className:k.form_item,label:"主要负责人电话",colon:!1,name:"sponsor_user_phone",rules:[{pattern:new RegExp(/^((0\d{2,3}(-)?\d{7,8})|(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8})$/,"g"),message:"必须是正确的座机号或者手机号"}],children:(0,xe.jsx)(j.Z,{className:k.form_item_item,placeholder:"请输入主要负责人电话"})}),(0,xe.jsx)("div",{className:k.bottom,children:(0,xe.jsxs)(f.Z.Item,{children:[(0,xe.jsx)(Z.ZP,{size:"middle",className:k.no,onClick:function(){pt(!1)},children:"取消"}),(0,xe.jsx)(Z.ZP,{className:k.yes,size:"middle",type:"primary",htmlType:"submit",loading:rn,children:"保存"})]})})]})})]}),(0,xe.jsx)(wi.Z,{}),(0,xe.jsx)(bi.Z,{datas:$n,Header:xn,isopen:Wn,setisopen:Jn,isShowPhone:qn,setIsShowPhone:Qn,user:dn,dispatch:cn,onOK:function(){Rt()}})]})}))},10764:function(e,n,t){var i=t(7557),l=t.n(i),s=t(41498),o=t.n(s),a=t(79800),r=t.n(a),c=t(59301),d=t(8591),u=t(43418),p=t(92832),m=t(3113),_=t(18030),h=t(34423),f=t(21082),x=t(92723),v=t(37712),g=/^1\d{10}$/;n.Z=function(e){var n=e.isShowPhone,t=e.setIsShowPhone,i=e.user,s=e.dispatch,a=e.onOK,y=e.isopen,j=e.setisopen,b=e.datas,w=e.Header,Z=(0,c.useState)(""),k=r()(Z,2),N=k[0],I=k[1],A=(0,c.useState)(""),S=r()(A,2),C=S[0],F=S[1],P=(0,c.useState)(60),T=r()(P,2),R=T[0],E=T[1],L=(0,c.useState)(),D=r()(L,2),B=D[0],V=D[1],z=(0,c.useState)(!1),M=r()(z,2),O=M[0],Y=M[1],H=(0,c.useState)(!1),q=r()(H,2),Q=q[0],G=q[1],U=(0,c.useState)(""),W=r()(U,2),J=W[0],K=W[1],X=(0,c.useRef)();(0,c.useEffect)((function(){return function(){X.current&&clearInterval(X.current)}}),[]),(0,h.Y)((function(){B&&(E(60),R>0?E(R-1):(E(60),V(!1),X.current&&clearInterval(X.current)))}),1e3);var $=function(){var e=o()(l()().mark((function e(){var n,t,o;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.ZP)("/api/users/accounts/".concat(null===(n=i.userInfo)||void 0===n?void 0:n.login,"/valid_phone.json"),{method:"get",params:{phone:N}});case 2:if(-1!==(null==(t=e.sent)?void 0:t.status)){e.next=5;break}return e.abrupt("return");case 5:if(null==t||!t.is_exists){e.next=8;break}return Y(!0),e.abrupt("return");case 8:return o=(0,f.M)(N),e.next=11,s({type:"account/getCode",payload:{login:N,type:3,smscode:o}});case 11:1===e.sent.status&&(d.ZP.info("验证码已发送,请注意查收"),V(!0));case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,v.jsxs)("div",{children:[(0,v.jsx)(u.Z,{title:"强制解绑",open:Q,onCancel:function(){return G(!1)},onOk:o()(l()().mark((function e(){var n,s;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(J){e.next=3;break}return d.ZP.info("验证码不能为空"),e.abrupt("return");case 3:return e.next=5,(0,_.ZP)("/api/users/accounts/".concat(null==i||null===(n=i.userInfo)||void 0===n?void 0:n.login,"/phone_force_unbind.json"),{method:"POST",body:{code:J,phone:N}});case 5:0===(null==(s=e.sent)?void 0:s.status)&&(d.ZP.info("解绑成功"),V(!1),G(!1),a(),t(!1),K(""));case 7:case"end":return e.stop()}}),e)}))),children:(0,v.jsxs)("div",{style:{padding:"8px 24px"},children:[(0,v.jsx)("p",{children:"若原账号只有绑定了手机号一种登录方式,强制解绑后会导致原账号无法登录,请确定是否强制解绑"}),(0,v.jsxs)("p",{children:["你的手机号:",N]}),(0,v.jsxs)("p",{children:["手机验证码:",(0,v.jsx)(p.Z,{value:J,size:"middle",onChange:function(e){return K(e.target.value)},style:{width:"240px"}})," ",(0,v.jsx)(m.ZP,{disabled:B,type:"primary",size:"middle",onClick:o()(l()().mark((function e(){var n;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,f.M)(N),e.next=3,s({type:"account/getCode",payload:{login:N,type:10,smscode:n}});case 3:1===e.sent.status&&(d.ZP.info("验证码已发送,请注意查收"),V(!0));case 5:case"end":return e.stop()}}),e)}))),children:B?"重新发送".concat(R,"s"):"获取验证码"})]})]})}),(0,v.jsx)(u.Z,{title:"提示",open:O,onCancel:function(){Y(!1)},okText:"进行强制解绑",okButtonProps:{type:"primary",ghost:!0,style:{width:"124px"}},onOk:function(){G(!0),Y(!1)},children:(0,v.jsxs)("div",{style:{padding:"7px 24px"},children:[(0,v.jsx)("span",{children:"该手机号已经被绑定账号,如果需要将该手机号绑定在当前账号上,你可以进行下方任意一种解绑操作:"}),(0,v.jsx)("br",{}),(0,v.jsx)("p",{style:{marginTop:"1em",display:"flex"},children:(0,v.jsx)("span",{style:{flex:"1"},children:"1、使用该手机号登录平台进行解绑,再将手机号绑定当前账号上。"})}),(0,v.jsx)("p",{style:{marginTop:"1em",display:"flex"},children:(0,v.jsx)("span",{style:{flex:"1"},children:"2、强制解绑(强制解绑可能会导致解绑账号无法登录)"})})]})}),(0,v.jsx)(u.Z,{title:"绑定手机号",open:n,onCancel:function(){return t(!1)},onOk:o()(l()().mark((function e(){var n,o,r;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g.test(N)){e.next=3;break}return d.ZP.info("请输入有效的11位手机号码"),e.abrupt("return");case 3:if(C){e.next=6;break}return d.ZP.info("请输入验证码"),e.abrupt("return");case 6:return n=i.userInfo||{},o=n.login,e.next=9,s({type:"account/bindPhone",payload:{login:o,phone:N,code:C}});case 9:0===(null==(r=e.sent)?void 0:r.status)&&(t(!1),a());case 11:case"end":return e.stop()}}),e)}))),children:(0,v.jsxs)("div",{style:{padding:"8px 24px"},children:[(0,v.jsx)("p",{children:"平台已检测到您未绑定手机号,为了不影响使用报名功能,请先绑定手机号码"}),(0,v.jsxs)("p",{children:["你的手机号:",(0,v.jsx)(p.Z,{size:"middle",value:N,onChange:function(e){return I(e.target.value)},style:{width:"240px"}})]}),(0,v.jsxs)("p",{children:["手机验证码:",(0,v.jsx)(p.Z,{size:"middle",value:C,onChange:function(e){return F(e.target.value)},style:{width:"240px"}})," ",(0,v.jsx)(m.ZP,{disabled:B,type:"primary",size:"middle",onClick:o()(l()().mark((function e(){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g.test(N)){e.next=3;break}return d.ZP.info("请输入有效的11位手机号码"),e.abrupt("return");case 3:$();case 4:case"end":return e.stop()}}),e)}))),children:B?"重新发送".concat(R,"s"):"获取验证码"})]})]})}),(0,v.jsx)(u.Z,{open:y,footer:!1,onCancel:function(){return j(!1)},centered:!0,width:460,children:(0,v.jsxs)("div",{children:[(0,v.jsxs)("div",{style:{marginTop:50,fontSize:26,color:"#3d3d3d",textAlign:"center",marginBottom:20},children:[(0,v.jsx)("i",{style:{fontSize:26,color:"#52C41A"},className:"iconfont icon-tongguo"})," 报名成功"]}),(0,v.jsxs)("div",{style:{alignItems:"center",textAlign:"center"},children:[(null==w?void 0:w.is_show_picture)&&(0,v.jsx)("img",{style:{width:180,border:"1px solid #eeeeef",padding:10,marginBottom:20},src:x.Z.IMG_SERVER+(null==b?void 0:b.QR_code)}),(0,v.jsx)("p",{style:{color:"#AAAAAA"},children:(null==w?void 0:w.apply_success_tips)||"参赛者可扫码加入大赛官方交流群,获取最新竞赛通知"})]})]})})]})}},90341:function(e,n,t){t.d(n,{$J:function(){return r},JZ:function(){return d},bN:function(){return m},jP:function(){return p},rO:function(){return c}});var i=t(7557),l=t.n(i),s=t(41498),o=t.n(s),a=t(18030);function r(e){return(0,a.U2)("libraries/".concat(e,".json"))}function c(){return(0,a.U2)("library_tags.json")}function d(e){return u.apply(this,arguments)}function u(){return(u=o()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,a.IV)("attachments/".concat(n,".json"));case 2:return t=e.sent,e.abrupt("return",0===t.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,a.v_)("libraries.json",e)}function m(e,n){return(0,a.gz)("libraries/".concat(e,".json"),n)}},1806:function(e,n,t){t.d(n,{AD:function(){return P},D9:function(){return B},Hp:function(){return Z},IM:function(){return z},Iy:function(){return N},KM:function(){return J},MJ:function(){return k},Ne:function(){return V},ON:function(){return q},Uj:function(){return U},VY:function(){return Y},YO:function(){return G},YX:function(){return Q},Zn:function(){return f},_g:function(){return j},_k:function(){return L},c6:function(){return C},cr:function(){return x},eV:function(){return F},fi:function(){return v},gh:function(){return A},hS:function(){return M},iA:function(){return g},j6:function(){return b},je:function(){return E},jj:function(){return w},kS:function(){return H},o6:function(){return S},pO:function(){return W},rQ:function(){return T},sA:function(){return I},xm:function(){return D},xo:function(){return O},y8:function(){return R},yd:function(){return y}});var i=t(7557),l=t.n(i),s=t(82242),o=t.n(s),a=t(41498),r=t.n(a),c=t(54602),d=t(5296),u=t(21082),p=t(8591),m=t(92723),_=function(){(0,d.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"正在生成文件,请稍后..."}})},h=function(){(0,d.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},f=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(),e.next=3,(0,c.YR)(o()({},n));case 3:if(0!==e.sent.status){e.next=7;break}return e.next=7,(0,u.QH)("",(0,u.NY)({url:m.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)}}(),x=function(){var e=r()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.yS)(o()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),d.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,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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)}}(),v=function(){var e=r()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.W0)(o()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),d.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,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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)}}(),g=function(){var e=r()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.Nl)(o()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),d.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,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.history.push("/classrooms/".concat(n.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),y=function(){var e=r()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.IU)(o()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),d.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,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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)}}(),j=function(){var e=r()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.td)(o()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),d.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,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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)}}(),b=function(){var e=r()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.QX)(o()({},n));case 2:if(0!==(t=e.sent).status){e.next=8;break}p.ZP.info("导出任务生成成功"),d.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,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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)}}(),w=function(){var e=r()(l()().mark((function e(n,t){var i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.o_)(o()({},n));case 2:0===(i=e.sent).status?(p.ZP.info("导出任务生成成功!导出后文件保存时间为7天,请及时下载"),d.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t))):-3===i.status&&((0,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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)}}(),Z=function(){var e=r()(l()().mark((function e(n,t){var i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.ZL)(o()({},n));case 2:0===(i=e.sent).status?(p.ZP.info("导出任务生成成功!导出后文件保存时间为7天,请及时下载"),d.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t))):-3===i.status&&((0,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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=r()(l()().mark((function e(n,t){var i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.vV)(o()({},n));case 2:0===(i=e.sent).status?(p.ZP.info("导出任务生成成功!导出后文件保存时间为7天,请及时下载"),d.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t))):-3===i.status&&((0,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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=r()(l()().mark((function e(n,t){var i;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.aP)(o()({},n));case 2:0===(i=e.sent).status?(p.ZP.info("导出任务生成成功"),d.history.push("/classrooms/".concat(n.coursesId,"/exportlist/").concat(t))):-3===i.status&&((0,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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)}}(),I=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(),e.next=3,(0,u.QH)("",m.Z.API_SERVER+"/api/polls/".concat(n.categoryId,"/commit_result.xlsx"));case 3:h();case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),A=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),S=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),C=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),F=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),T=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),R=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),E=function(){var e=r()(l()().mark((function e(n){var t;return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.Uy)(o()({},n));case 2:0===(t=e.sent).status?(p.ZP.info("导出任务生成成功"),d.history.push("/classrooms/".concat(n.coursesId,"/exportlist/exercise_score"))):-3===t.status&&((0,d.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"导出提醒"}}),d.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)}}(),L=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("----------","调用下载"),e.next=3,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),D=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),B=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),V=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),z=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)(null==n?void 0:n.name,(0,u.NY)({url:m.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)}}(),M=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),O=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),Y=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),q=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),Q=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),G=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),U=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}(),W=function(){var e=r()(l()().mark((function e(n,t){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)(t||"",(0,u.NY)({url:m.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)}}(),J=function(){var e=r()(l()().mark((function e(n){return l()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.FH)("",(0,u.NY)({url:m.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)}}()},1058:function(e,n,t){t.d(n,{U:function(){return p}});var i=t(7557),l=t.n(i),s=t(82242),o=t.n(s),a=t(41498),r=t.n(a),c=t(79800),d=t.n(c),u=t(59301);function p(e,n){var t=(0,u.useState)(n),i=d()(t,2),s=i[0],a=i[1],c=(0,u.useState)(!1),p=d()(c,2),m=p[0],_=p[1],h=(0,u.useState)(),f=d()(h,2),x=f[0],v=f[1],g=function(){var t=r()(l()().mark((function t(i){var r,c,d,u=arguments;return l()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=u.length>1&&void 0!==u[1]&&u[1],c=r?n:o()(o()({},s),i),_(!0),a(c),t.next=6,e(c);case 6:return d=t.sent,_(!1),v(d),t.abrupt("return",d);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return[s,m,g,x]}},34423:function(e,n,t){t.d(n,{Y:function(){return l}});var i=t(59301);function l(e,n){var t=(0,i.useRef)(),l=(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 l.current=e,function(){return clearInterval(e)}}}),[n])}},65648:function(e,n){n.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}}}]); \ No newline at end of file diff --git a/p__Forums__New__index.4d6c43eb.async.js b/p__Forums__New__index.4d6c43eb.async.js deleted file mode 100644 index 5f472834e6..0000000000 --- a/p__Forums__New__index.4d6c43eb.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[74264,69932],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,o=!1,r=!1,a=null,l=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function k(){try{return window.self!==window.top}catch(e){return!0}}function _(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,R(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,O(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,o="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var C=function(e){return e&&"false"!==e},j=function(t,n,i){x(m)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!w)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(m)<=4.4)C(n.showToolBar)&&(n.height-=7),C(n.showAlgebraInput)&&(n.height-=37),n.width<605&&C(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(C(n.showToolBar)||C(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=C(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},b||v.appendChild(k)):r.appendChild(k),v.appendChild(r),b||t.appendChild(v),setTimeout((function(){e.resize()}),1)}function _(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),I("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){_(e.article,e.params)})),html5AppletsToProcess=null)},x(m)<5&&(e.className+=" geogebraweb")):_(e,t)}if(o){scriptLoadStarted=!0;for(var B=0;B0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):j(o,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=i,j(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",o.appendChild(a)}return o.appendChild(c),o},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,t){if(m=e,t)R(m,!0);else{var r,a,l=!o;if(l){var s=x(m);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?r+m:"https://www.geogebra.org/apps/5.2.814.0/",G)if(m.slice(-1*G[u].length)===G[u]||m.slice(-1*(G[u].length+1))===G[u]+"/")return void R(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||C(n.showToolBar)||C(n.showMenuBar)||C(n.showAlgebraInput)||C(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",R(a,!1)}},R=function(e,t){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===t&&(t=-1===e.indexOf("http")),p=t,g="web.nocache.js",w=!1;var n=f.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",w=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var i=parseFloat(m);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),O("5.0",t))}},I=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function D(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&R(c,p),l=!0}return void 0!==n.material_id?S(D):D(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,i,o,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,f=0,p=0,h=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-m.width-m.left,p=u<=480?10:30):(p=m.left,f=u<=480?10:30),d=p+f)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(t-i.width)/2,r=(n-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],o=O;o0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var C=function(e){var t=e.value,n=e.onChange,i=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,T=e.title,C=void 0===T?"上传附件":T,j=e.showRemoveModal,N=void 0!==j&&j,P=e.accept,L=void 0===P?"":P,E=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,O=e.aloneClear,R=void 0!==O&&O,I=e.realTimeRemove,D=void 0===I||I,Z=e.uploadText,F=(0,p.useState)(!1),z=f()(F,2),W=z[0],H=z[1],V=(0,p.useState)(t||[]),q=f()(V,2),U=q[0],K=q[1],Y=(0,p.useState)(1),J=f()(Y,2),X=J[0],$=J[1];(0,p.useEffect)((function(){t&&(1===X&&K(u()(t)),$(2),G===(null==t?void 0:t.length)&&H(!0))}),[t]);var Q,ee=function(){setTimeout((function(){U.pop(),K(u()(U))}),500)},te={multiple:!0,disabled:W,accept:L,withCredentials:!0,fileList:U,beforeUpload:function(e,t){var n=e.size/1024/1024;return U.concat(t).length>G?(U.pop(),K(u()(U)),m.ZP.error("最多只能上传".concat(G,"个文件")),R?Promise.reject():(ee(),!1)):n=G?H(!0):H(!1),K(u()(U)),U=U.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(k(e.size))),s()({},e)})),console.log("info:",e,U),n(U)):m.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(Q=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(D){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!N){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return Q.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(B,s()(s()({},te),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(_.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!M&&(0,y.jsxs)(h.Z,s()(s()({},te),{},{children:[(0,y.jsxs)(w.ZP,{disabled:W,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),C]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:Z||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return w}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),f=n.n(d),p=(n(80443),n(90630),n(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function w(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,l.useEffect)((function(){h&&h.setOption("mode",i)}),[h,i]),(0,l.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,l.useEffect)((function(){if(c.current&&!h){var e=f().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,l.useState)("python"),r=a()(i,2),d=r[0],f=r[1];return(0,p.jsxs)(c.Z,o()(o()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){f(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(w,{mode:d})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var i=n(91232),o=n.n(i),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),f=n(76374),p=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),w=n.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,o=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(o)},children:[(0,h.jsx)("i",{className:"".concat(i)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(v,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,w()(w()({},e),{},{onActionCallback:o})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},x=n(24808),k=n(78241),_=n(92832),S=n(3113),B={labelCol:{span:4},wrapperCol:{span:20}},T=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(k.Z,w()(w()({},B),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(k.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(_.Z,{})}),(0,h.jsx)(k.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(_.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},C=n(73145),j=n(28486),N=n(95237),P=n(36709),L=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,h.jsx)(N.Z,{style:{height:"100vh"},children:(0,h.jsx)(P.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),M=n.n(E),A=n(41498),G=n.n(A),O=n(37205),R=n.n(O),I=n(12378);function D(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(D,go.CommandHandler),D.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},D.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},D.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},D.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},D.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},D.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},D.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},D.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))i.y?1:n.xi.x?1:0})),t},D.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},D.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(D.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(D.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 Z=D,F=(n(41034),n(85160)),z=n(43418),W=n(43604),H=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=I;var U=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),f=d[0],p=d[1],m=function(){var e=G()(M()().mark((function e(){var t,o;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,H.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(N.Z,{children:[(0,h.jsx)(W.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(W.Z,{onClick:function(){l.current=!l.current,p(f+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(F.FI,{initDiagram:function(){var e=I.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",f="#fffcd5",p="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",w="#b3e6b3",v="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var o=n.part.adornedPart,r=(new I.Point).setRectSpot(o.actualBounds,t);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var l={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(I.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?25:18,height:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(t){return e(I.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function k(t,n){return n||(n="color"),e(I.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function _(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",k(u,"fill"),k(f,"fill"),k(p,"fill"),k(h,"fill"))),e("ContextMenuButton",e(I.Panel,"Horizontal",k(g,"fill"),k(w,"fill"),k(m,"fill"),k(v,"fill")))]}function S(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",k(d),k(a),k(n),k(t))),e("ContextMenuButton",e(I.Panel,"Horizontal",k(u),k(l),k(s),k(c)))]}function B(t,n){return n||(n="thickness"),e(I.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function T(t,n){return n||(n="dash"),e(I.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function C(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",B(1),B(2),B(3),B(4))),e("ContextMenuButton",e(I.Panel,"Horizontal",T(null),T([2,4]),T([4,4])))]}function j(t,n){return n||(n="figure"),e(I.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function N(t){return e(I.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function P(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(I.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function L(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",I.Spot.stringify(I.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var i=0,o=I.Spot.RightSide;t.equals(I.Spot.Top)?(i=270,o=I.Spot.TopSide):t.equals(I.Spot.Left)?(i=180,o=I.Spot.LeftSide):t.equals(I.Spot.Bottom)&&(i=90,o=I.Spot.BottomSide),n||(i-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",I.Spot.stringify(o)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return i.current=new I.Diagram(o.current,{padding:20,grid:e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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(Z),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center,locationObjectName:"SHAPE",desiredSize:new I.Size(120,60),minSize:new I.Size(40,40),resizable:!0,resizeCellSize:new I.Size(10,10),rotatable:!0},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),new I.Binding("desiredSize","size",I.Size.parse).makeTwoWay(I.Size.stringify),e(I.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("figure"),new I.Binding("fill"),new I.Binding("stroke","borderColor"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(I.TextBlock,{margin:1,textAlign:"center",overflow:I.TextBlock.OverflowEllipsis,editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(I.Panel,"Vertical",{maxSize:new I.Size(200,NaN)},e(I.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new I.Binding("text")),e(I.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new I.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Placeholder,{padding:10}),b(I.Spot.Top,"TriangleUp"),b(I.Spot.Left,"TriangleLeft"),b(I.Spot.Right,"TriangleRight"),b(I.Spot.Bottom,"TriangleDown"),y({alignment:new I.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(I.Panel,"Horizontal",j("Rectangle"),j("RoundedRectangle"),j("Ellipse"),j("Diamond"))),e("ContextMenuButton",e(I.Panel,"Horizontal",j("Parallelogram2"),j("ManualOperation"),j("Procedure"),j("Cylinder1"))),e("ContextMenuButton",e(I.Panel,"Horizontal",j("Terminator"),j("CreateRequest"),j("Document"),j("TriangleDown"))),_(),S(),C()),i.current.groupTemplate=e(I.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:I.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.Panel,"Auto",{name:"BODY"},e(I.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("fill"),new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Placeholder,{background:"transparent",margin:20})),e(I.TextBlock,{alignment:I.Spot.Top,alignmentFocus:I.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new I.Binding("text"),new I.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Panel,"Auto",e(I.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(I.Placeholder,{margin:1.5})),y({alignment:I.Spot.TopRight,alignmentFocus:I.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",_(),S(),C()),i.current.linkTemplate=e(I.Link,{layerName:"Foreground",routing:I.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new I.Binding("fromSpot","fromSpot",I.Spot.parse),new I.Binding("toSpot","toSpot",I.Spot.parse),new I.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("points").makeTwoWay(),e(I.Shape,{strokeWidth:2},new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,0),segmentOrientation:I.Link.OrientAlong,alignmentFocus:I.Spot.Right,figure:"circle",width:10,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 1===e}))),e(I.Shape,{segmentIndex:-1,segmentOffset:new I.Point(-10,6),segmentOrientation:I.Link.OrientPlus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return e>=1})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,-6),segmentOrientation:I.Link.OrientMinus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 2===e})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.TextBlock,{alignmentFocus:new I.Spot(0,1,-4,0),editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(I.Adornment,e(I.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:N(2)},new I.Binding("pathPattern","thickness",N)),y({alignmentFocus:new I.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",S(),C(),e("ContextMenuButton",e(I.Panel,"Horizontal",P(0),P(1),P(2))),e("ContextMenuButton",e(I.Panel,"Horizontal",e(I.Panel,"Spot",L(!1),E(I.Spot.Top,!1),E(I.Spot.Left,!1),E(I.Spot.Right,!1),E(I.Spot.Bottom,!1)),e(I.Panel,"Spot",{margin:new I.Margin(0,0,0,2)},L(!0),E(I.Spot.Top,!0),E(I.Spot.Left,!0),E(I.Spot.Right,!0),E(I.Spot.Bottom,!0))))),new I.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(I.Link,{locationSpot:I.Spot.Center,selectionAdornmentTemplate:e(I.Adornment,"Link",{locationSpot:I.Spot.Center},e(I.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(I.Shape,{toArrow:"Standard",stroke:null}))},{routing:I.Link.AvoidsNodes,curve:I.Link.JumpOver,corner:5,toShortLength:4},new I.Binding("points"),e(I.Shape,{isPanelMain:!0,strokeWidth:2}),e(I.Shape,{toArrow:"Standard",stroke:null})),model:new I.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(R()(I.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center},new I.Binding("location","location",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.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 I.Binding("stroke").makeTwoWay(),new I.Binding("fill").makeTwoWay(),new I.Binding("figure")),e(I.TextBlock,{margin:new I.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new I.Size(16,16),maxSize:new I.Size(10,NaN),textAlign:"center",editable:!0},new I.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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,h.jsx)("div",{ref:o})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(k.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(k.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Y.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(k.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Y.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(k.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,o=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),f=d[0],p=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){m.current.appName=f?"3D":"graphing",s.current.inject("applet_container")}),[f]),(0,c.useEffect)((function(){p(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(N.Z,{align:"middle",children:[(0,h.jsx)(W.Z,{flex:1,children:(0,h.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,h.jsx)(W.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),oe=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},he=n(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function we(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ve=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},ve+"-B","bold"),ve+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,w=e.miniToolbar,v=void 0!==w&&w,b=e.isFocus,k=void 0!==b&&b,_=e.watch,S=e.insertTemp,B=e.mode,N=void 0===B?"markdown":B,P=e.id,E=void 0===P?"markdown-editor-id":P,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,O=void 0!==G&&G,R=e.showNullButton,I=void 0!==R&&R,D=e.showNullProgramButton,Z=void 0!==D&&D,F=e.hidetoolBar,W=void 0!==F&&F,H=e.fullScreen,V=void 0!==H&&H,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,fe=void 0!==te&&te,ve=e.disabledFill,xe=void 0!==ve&&ve,ke=e.placeholder,_e=void 0===ke?"":ke,Se=e.values,Be=void 0===Se?"":Se,Te=e.extraUse,Ce=(0,c.useState)(null),je=a()(Ce,2),Ne=je[0],Pe=je[1],Le=(0,c.useState)(n),Ee=a()(Le,2),Me=Ee[0],Ae=Ee[1],Ge=(0,c.useState)(_),Oe=a()(Ge,2),Re=Oe[0],Ie=Oe[1],De=(0,c.useState)(V),Ze=a()(De,2),Fe=Ze[0],ze=Ze[1],We=(0,c.useState)(""),He=a()(We,2),Ve=He[0],qe=He[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),ot=(0,c.useState)(0),rt=a()(ot,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],ft=(0,c.useRef)(),pt=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(Be),null==Ne||Ne.setValue(Be),window.scrollTo(0,e)}),[Be]),(0,c.useEffect)((function(){null==Y||Y(Fe)}),[Fe]),(0,c.useEffect)((function(){if(ft.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==N)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,j.I)(s,(function(e){var n,i,o;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(ft.current,{mode:N,lineNumbers:!v,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",_e):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),o=n.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===me.indexOf(r))return null;if(console.log("change1:",t,e,o,i,s,a,l,r),s>=0&&i.ch-s<5){var u=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),k&&t.focus(),t.on("paste",e),fe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Pe(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){pt.current}),[Qe,pt,Fe]);(0,c.useEffect)((function(){if(Ne){var e=function(){var e=new f.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Ne.setSize("100%","100%"),Ne.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(ft.current.parentElement),e}();return function(){var t,n;null!==(t=ft.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=ft.current)||void 0===n?void 0:n.parentElement)}}}),[Ne,gt]),(0,c.useEffect)((function(){if(Ne){for(var e=[],t=function(){var t=a()(i[n],2),o=t[0],r=t[1],l=s()({},o,(function(){wt(r)}));e.push(l),Ne.addKeyMap(l)},n=0,i=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(E,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Ie(_)}),[Ne,_]),(0,c.useEffect)((function(){Ne&&k&&Ne.focus()}),[Ne,k]),(0,c.useEffect)((function(){if(Re&&Ne){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Ne.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Ne,Re]),(0,c.useEffect)((function(){if(Ne&&K){var e=function(e,t){K(e,t)};return Ne.on("beforeChange",e),function(){Ne.off("beforeChange",e)}}}),[Ne,K]),(0,c.useEffect)((function(){if(Ne&&q){var e=function(){q(Ne.getValue())};return Ne.on("blur",e),function(){Ne.off("blur",e)}}}),[Ne,q]),(0,c.useEffect)((function(){if(Ne){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(Z?i(n,kt(n)):i(n))};return Ne.on("change",e),function(){Ne.off("change",e)}}}),[Ne,i]),(0,c.useEffect)((function(){if(Ne)if(null==n)Ne.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Ne.getValue()&&(Ne.setValue(n),Ae(n),Ne.setCursor(fe?1:Ne.lineCount(),0),window.scrollTo(0,e))}}),[Ne,n]);var wt=(0,c.useCallback)((function(e){var t=Ne.getCursor(),n=Ne.getSelection(),i=n.split("\n");switch(e){case"bold":return Ne.replaceSelection("**"+n+"**"),""===n&&Ne.setCursor(t.line,t.ch+2),Ne.focus();case"italic":return Ne.replaceSelection("*"+n+"*"),""===n&&Ne.setCursor(t.line,t.ch+1),Ne.focus();case"code":return Ne.replaceSelection("`"+n+"`"),""===n&&Ne.setCursor(t.line,t.ch+1),Ne.focus();case"inline-latex":return qe("inline-latex"),Ne.focus();case"latex":return Ne.replaceSelection("```latex\n"+n+"\n```"),Ne.setCursor(t.line+1,n.length+1),Ne.focus();case"line-break":return Ne.replaceSelection("
\n"),Ne.focus();case"list-ul":return""===n?Ne.replaceSelection("- "+n):Ne.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ne.focus();case"list-ol":return""===n?Ne.replaceSelection("1. "+n):Ne.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Ne.focus();case"add-null-ch":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("▁"),Ne.focus();case"add-signal":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("@▁@"),Ne.focus();case"add-multiple":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection(me),Ne.focus();case"inster-template-1":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ne.focus();case"eraser":return Ne.setValue(""),Ne.focus();case"trigger-watch":return Ie(!Re),Ne.focus();case"trigger-full-screen":return ze(!Fe),Ne.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Ne,Re,Fe]),vt=(0,c.useCallback)((function(e,t){var n,i,o,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Ne.replaceSelection("[".concat(l,"](").concat(s,")")),Ne.focus();case ue:var c=e.language,u=e.content;return Ne.replaceSelection(["```"+c,u,"```"].join("\n")),Ne.focus();case"maths-latex":for(var d=atob(e),f=new Uint8Array(d.length),p=0;p-1||null==w||!w.type?g?Ne.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Ne.replaceSelection("![,](".concat(m,")")):(null==w||null===(r=w.type)||void 0===r?void 0:r.indexOf("video"))>-1?Ne.replaceSelection('')):(null==w||null===(a=w.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Ne.replaceSelection('').concat(w.name,"")):ge.includes(v)?Ne.replaceSelection('').concat(w.name,"")):Ne.replaceSelection("[".concat(w.name,"](").concat(oe.Z.API_SERVER).concat(m,")")),Ne.focus();case de:for(var b=e.row,y=e.col,x=e.align,k="\n",_=0;_300&&(t=300),et(g+t+"px")}},i=ht.current,o=!1,r=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Ne,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:we(l),height:we(Qe)},kt=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(Z){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var _t=function(e,t,n,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>o-20&&i4?parseFloat(e):5};function k(){try{return window.self!==window.top}catch(e){return!0}}function _(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,R(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,O(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,o="auto",r=n.id,a=!1,s=0;s=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var C=function(e){return e&&"false"!==e},j=function(t,n,i){x(m)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||ggbHTML5LoadedCodebaseIsWebSimple&&!w)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(x(m)<=4.4)C(n.showToolBar)&&(n.height-=7),C(n.showAlgebraInput)&&(n.height-=37),n.width<605&&C(n.showToolBar)&&(n.width=605,a=605);else{var u=100;(C(n.showToolBar)||C(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),u=C(n.showMenuBar)?245:155),a=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},b||v.appendChild(k)):r.appendChild(k),v.appendChild(r),b||t.appendChild(v),setTimeout((function(){e.resize()}),1)}function _(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),I("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function S(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){_(e.article,e.params)})),html5AppletsToProcess=null)},x(m)<5&&(e.className+=" geogebraweb")):_(e,t)}if(o){scriptLoadStarted=!0;for(var B=0;B0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):j(o,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=i,j(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",b),a.setAttribute("width",l),a.setAttribute("height",s);var u=(e-l)/2,d=(t-s)/2;a.style.left=u+"px",a.style.top=d+"px",o.appendChild(a)}return o.appendChild(c),o},A=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,t){if(m=e,t)R(m,!0);else{var r,a,l=!o;if(l){var s=x(m);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=m.indexOf("//");for(var u in a=c>0?m:0===c?r+m:"https://www.geogebra.org/apps/5.2.814.0/",G)if(m.slice(-1*G[u].length)===G[u]||m.slice(-1*(G[u].length+1))===G[u]+"/")return void R(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||C(n.showToolBar)||C(n.showMenuBar)||C(n.showAlgebraInput)||C(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",R(a,!1)}},R=function(e,t){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===t&&(t=-1===e.indexOf("http")),p=t,g="web.nocache.js",w=!1;var n=f.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.indexOf(n[n.length-2])>=0&&(g=n[n.length-2]+".nocache.js"):(g="webSimple.nocache.js",w=!0)),n=e.split("/"),"test"===(m=n[n.length-3]).substr(0,4)?m=m.substr(4,1)+"."+m.substr(5,1):"war"!==m.substr(0,3)&&"beta"!==m.substr(0,4)||(m="5.0");var i=parseFloat(m);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),O("5.0",t))}},I=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function D(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&R(c,p),l=!0}return void 0!==n.material_id?S(D):D(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,i,o){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,l=null!=e.noScaleMargin&&e.noScaleMargin,s=(r=e.autoHeight)&&"false"!==r,c=function(e,t,n,i,o,r){var a=null;if(null!=r&&""!=r)for(var l=e.parentNode;null!=l;){if((" "+l.className+" ").indexOf(" "+r+" ")>-1){a=l;break}l=l.parentNode}var s=0,c=0,u=0,d=0,f=0,p=0,h=0;if(a)s=a.offsetWidth,c=Math.max(i?a.offsetWidth:0,a.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var m=e.getBoundingClientRect();m.left>0&&m.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-m.width-m.left,p=u<=480?10:30):(p=m.left,f=u<=480?10:30),d=p+f)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+d1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(o=n(e,t,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),o=(t-i.width)/2,r=(n-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=o+"px")}return{responsiveResize:function(n,r){var a=n.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var l=i(r,n);e()&&a.setAttribute("data-param-scale",l);for(var s=null,c=0;c=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var i=e.lastIndexOf(tb,Math.min(n,t));return i>=O?e.substring(O,i+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;nO?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,i=[],o=[];function a(e){var t=o[e](),n=i[e];if(t in n)return t;var a=[];for(var l in n)a[n[l]]=l;throw r&&r(e,a,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in i[e]},webModule.__getPropMap=function(){var e={};for(var t in i)i.hasOwnProperty(t)&&(e[t]=a(t));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var l=(e=Cb).indexOf(Db);-1!=l&&(t=parseInt(e.substring(l+P),$),e=e.substring(O,l))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},i=e[webModule.__softPermutationId],o=O;o0){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i0&&(t=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+x+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),t}var C=function(e){var t=e.value,n=e.onChange,i=e.action,r=e.data,l=e.className,c=e.maxSize,d=void 0===c?150:c,T=e.title,C=void 0===T?"上传附件":T,j=e.showRemoveModal,N=void 0!==j&&j,P=e.accept,L=void 0===P?"":P,E=e.additionalText,M=e.isDragger,A=e.number,G=void 0===A?1e3:A,O=e.aloneClear,R=void 0!==O&&O,I=e.realTimeRemove,D=void 0===I||I,F=e.uploadText,Z=e.setFileProgress,z=e.showFileProgress,W=(0,p.useState)(!1),H=f()(W,2),V=H[0],q=H[1],U=(0,p.useState)(t||[]),K=f()(U,2),Y=K[0],J=K[1],X=(0,p.useState)(1),$=f()(X,2),Q=$[0],ee=$[1];(0,p.useEffect)((function(){t&&(1===Q&&J(u()(t)),ee(2),G===(null==t?void 0:t.length)&&q(!0))}),[t]);var te=function(){setTimeout((function(){Y.pop(),J(u()(Y))}),500)};z&&Z(Y.some((function(e){return"uploading"===e.status})));var ne,ie={multiple:!0,disabled:V,accept:L,withCredentials:!0,fileList:Y,beforeUpload:function(e,t){var n=e.size/1024/1024;return Y.concat(t).length>G?(Y.pop(),J(u()(Y)),m.ZP.error("最多只能上传".concat(G,"个文件")),R?Promise.reject():(te(),!1)):n=G?q(!0):q(!1),J(u()(Y)),Y=Y.map((function(e){var t,n;null!=e&&null!==(t=e.response)&&void 0!==t&&t.id&&(e.url=null==e||null===(n=e.response)||void 0===n?void 0:n.url);return-1===e.name.indexOf(x)&&(e.name="".concat(e.name).concat(x).concat(k(e.size))),s()({},e)})),console.log("info:",e,Y),n(Y)):m.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(ne=a()(o()().mark((function e(t){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(D){e.next=2;break}return e.abrupt("return",!0);case 2:if(n=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t.response?t.response.id:t.id)){e.next=8;break}return e.next=4,(0,b.JZ)(t.response?t.response.id:t.uid);case 4:return n=e.sent,e.abrupt("return",Promise.resolve(n));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!N){e.next=7;break}return e.abrupt("return",new Promise((function(e,t){var i;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n();case 2:t.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,n();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return ne.apply(this,arguments)})};return(0,y.jsxs)("div",{className:"multi-upload ".concat(l||""),children:[M&&(0,y.jsxs)(B,s()(s()({},ie),{},{children:[(0,y.jsx)("p",{className:"ant-upload-drag-icon",children:(0,y.jsx)(_.Z,{})}),(0,y.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,y.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),E]})),!M&&(0,y.jsxs)(h.Z,s()(s()({},ie),{},{children:[(0,y.jsxs)(w.ZP,{disabled:V,className:"upload_button",children:[(0,y.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),C]}),(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:F||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,t,n){"use strict";n.d(t,{h:function(){return w}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),u=n(3113),d=n(89780),f=n.n(d),p=(n(80443),n(90630),n(37712)),h=s.default.Option,m={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function w(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),u=(0,l.useState)(),d=a()(u,2),h=d[0],m=d[1];return(0,l.useEffect)((function(){if(h){var e=function(e){var t=e.getValue();n&&n(t)};return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),(0,l.useEffect)((function(){h&&h.setOption("mode",i)}),[h,i]),(0,l.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||"")}),300))}),[h,t]),(0,l.useEffect)((function(){if(c.current&&!h){var e=f().fromTextArea(c.current,o()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));m(e)}}),[c.current,h]),(0,p.jsx)("div",{className:"my-codemirror-container",children:(0,p.jsx)("textarea",{ref:c})})}t.Z=function(e){var t=e.callback,n=e.onCancel,i=(0,l.useState)("python"),r=a()(i,2),d=r[0],f=r[1];return(0,p.jsxs)(c.Z,o()(o()({},m),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,p.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,p.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){f(g[e][1])},children:Object.keys(g).map((function(e){return(0,p.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(w,{mode:d})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(u.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},16318:function(e,t,n){"use strict";n.d(t,{Z:function(){return xe}});var i=n(91232),o=n.n(i),r=n(79800),a=n.n(r),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),f=n(76374),p=(n(80443),n(6313),n(25717),n(99498),n(25419),n(67549),n(38279)),h=n(37712),m=function(e){var t=e.value,n=void 0===t?"":t,i=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[n]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},g=n(82242),w=n.n(g),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,o=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(o)},children:[(0,h.jsx)("i",{className:"".concat(i)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(v,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,w()(w()({},e),{},{onActionCallback:o})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},x=n(24808),k=n(78241),_=n(92832),S=n(3113),B={labelCol:{span:4},wrapperCol:{span:20}},T=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(k.Z,w()(w()({},B),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(k.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(_.Z,{})}),(0,h.jsx)(k.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(_.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},C=n(73145),j=n(28486),N=n(95237),P=n(36709),L=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,h.jsx)(N.Z,{style:{height:"100vh"},children:(0,h.jsx)(P.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},E=n(7557),M=n.n(E),A=n(41498),G=n.n(A),O=n(37205),R=n.n(O),I=n(12378);function D(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(D,go.CommandHandler),D.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},D.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},D.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},D.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},D.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},D.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},D.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},D.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i0){for(var i=a.elt(l-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var r,a,l;if(null===(r=t.findTreeParentNode()))break;if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))i.y?1:n.xi.x?1:0})),t},D.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},D.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(D.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(D.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 F=D,Z=(n(41034),n(85160)),z=n(43418),W=n(43604),H=n(18030),V="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=I;var U=function(e){var t=e.onCancel,n=e.callback,i=(0,c.useRef)(),o=(0,c.useRef)(),r=(0,c.useRef)(),l=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=a()(u,2),f=d[0],p=d[1],m=function(){var e=G()(M()().mark((function e(){var t,o;return M()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,H.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(N.Z,{children:[(0,h.jsx)(W.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(W.Z,{onClick:function(){l.current=!l.current,p(f+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:V,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(Z.FI,{initDiagram:function(){var e=I.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",f="#fffcd5",p="#d5ebff",h="#f2dfe0",m="#a5d2fa",g="#cccccc",w="#b3e6b3",v="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var o=n.part.adornedPart,r=(new I.Point).setRectSpot(o.actualBounds,t);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var l={from:o.key,to:i.getKeyForNodeData(a)};i.addLinkData(l);var s=e.diagram.findNodeForData(a);s.location=r,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(I.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?25:18,height:t.equals(I.Spot.Top)||t.equals(I.Spot.Bottom)?18:25,fill:"orange",stroke:u,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(t){return e(I.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function x(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function k(t,n){return n||(n="color"),e(I.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:x(n,t),contextClick:x(n,t)})}function _(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",k(u,"fill"),k(f,"fill"),k(p,"fill"),k(h,"fill"))),e("ContextMenuButton",e(I.Panel,"Horizontal",k(g,"fill"),k(w,"fill"),k(m,"fill"),k(v,"fill")))]}function S(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",k(d),k(a),k(n),k(t))),e("ContextMenuButton",e(I.Panel,"Horizontal",k(u),k(l),k(s),k(c)))]}function B(t,n){return n||(n="thickness"),e(I.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function T(t,n){return n||(n="dash"),e(I.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x(n,t),contextClick:x(n,t)})}function C(){return[e("ContextMenuButton",e(I.Panel,"Horizontal",B(1),B(2),B(3),B(4))),e("ContextMenuButton",e(I.Panel,"Horizontal",T(null),T([2,4]),T([4,4])))]}function j(t,n){return n||(n="figure"),e(I.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:x(n,t),contextClick:x(n,t)})}function N(t){return e(I.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function P(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(I.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:x("dir",t),contextClick:x("dir",t)})}function L(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",I.Spot.stringify(I.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var i=0,o=I.Spot.RightSide;t.equals(I.Spot.Top)?(i=270,o=I.Spot.TopSide):t.equals(I.Spot.Left)?(i=180,o=I.Spot.LeftSide):t.equals(I.Spot.Bottom)&&(i=90,o=I.Spot.BottomSide),n||(i-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",I.Spot.stringify(o)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(I.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return i.current=new I.Diagram(o.current,{padding:20,grid:e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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(F),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center,locationObjectName:"SHAPE",desiredSize:new I.Size(120,60),minSize:new I.Size(40,40),resizable:!0,resizeCellSize:new I.Size(10,10),rotatable:!0},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),new I.Binding("desiredSize","size",I.Size.parse).makeTwoWay(I.Size.stringify),e(I.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("figure"),new I.Binding("fill"),new I.Binding("stroke","borderColor"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(I.TextBlock,{margin:1,textAlign:"center",overflow:I.TextBlock.OverflowEllipsis,editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(I.Panel,"Vertical",{maxSize:new I.Size(200,NaN)},e(I.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new I.Binding("text")),e(I.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new I.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Placeholder,{padding:10}),b(I.Spot.Top,"TriangleUp"),b(I.Spot.Left,"TriangleLeft"),b(I.Spot.Right,"TriangleRight"),b(I.Spot.Bottom,"TriangleDown"),y({alignment:new I.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(I.Panel,"Horizontal",j("Rectangle"),j("RoundedRectangle"),j("Ellipse"),j("Diamond"))),e("ContextMenuButton",e(I.Panel,"Horizontal",j("Parallelogram2"),j("ManualOperation"),j("Procedure"),j("Cylinder1"))),e("ContextMenuButton",e(I.Panel,"Horizontal",j("Terminator"),j("CreateRequest"),j("Document"),j("TriangleDown"))),_(),S(),C()),i.current.groupTemplate=e(I.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:I.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new I.Binding("location","loc",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.Panel,"Auto",{name:"BODY"},e(I.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:I.Spot.AllSides,toSpot:I.Spot.AllSides},new I.Binding("fill"),new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Placeholder,{background:"transparent",margin:20})),e(I.TextBlock,{alignment:I.Spot.Top,alignmentFocus:I.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new I.Binding("text"),new I.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(I.Adornment,"Spot",e(I.Panel,"Auto",e(I.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(I.Placeholder,{margin:1.5})),y({alignment:I.Spot.TopRight,alignmentFocus:I.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",_(),S(),C()),i.current.linkTemplate=e(I.Link,{layerName:"Foreground",routing:I.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new I.Binding("fromSpot","fromSpot",I.Spot.parse),new I.Binding("toSpot","toSpot",I.Spot.parse),new I.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new I.Binding("points").makeTwoWay(),e(I.Shape,{strokeWidth:2},new I.Binding("stroke","color"),new I.Binding("strokeWidth","thickness"),new I.Binding("strokeDashArray","dash")),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,0),segmentOrientation:I.Link.OrientAlong,alignmentFocus:I.Spot.Right,figure:"circle",width:10,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 1===e}))),e(I.Shape,{segmentIndex:-1,segmentOffset:new I.Point(-10,6),segmentOrientation:I.Link.OrientPlus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return e>=1})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.Shape,{segmentIndex:0,segmentOffset:new I.Point(15,-6),segmentOrientation:I.Link.OrientMinus90,alignmentFocus:I.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new I.Binding("fill","color"),new I.Binding("visible","dir",(function(e){return 2===e})),new I.Binding("width","thickness",(function(e){return 7+3*e})),new I.Binding("height","thickness",(function(e){return 7+3*e})),new I.Binding("segmentOffset","thickness",(function(e){return new I.Point(-15,4+1.5*e)}))),e(I.TextBlock,{alignmentFocus:new I.Spot(0,1,-4,0),editable:!0},new I.Binding("text").makeTwoWay(),new I.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(I.Adornment,e(I.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:N(2)},new I.Binding("pathPattern","thickness",N)),y({alignmentFocus:new I.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",S(),C(),e("ContextMenuButton",e(I.Panel,"Horizontal",P(0),P(1),P(2))),e("ContextMenuButton",e(I.Panel,"Horizontal",e(I.Panel,"Spot",L(!1),E(I.Spot.Top,!1),E(I.Spot.Left,!1),E(I.Spot.Right,!1),E(I.Spot.Bottom,!1)),e(I.Panel,"Spot",{margin:new I.Margin(0,0,0,2)},L(!0),E(I.Spot.Top,!0),E(I.Spot.Left,!0),E(I.Spot.Right,!0),E(I.Spot.Bottom,!0))))),new I.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(I.Link,{locationSpot:I.Spot.Center,selectionAdornmentTemplate:e(I.Adornment,"Link",{locationSpot:I.Spot.Center},e(I.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(I.Shape,{toArrow:"Standard",stroke:null}))},{routing:I.Link.AvoidsNodes,curve:I.Link.JumpOver,corner:5,toShortLength:4},new I.Binding("points"),e(I.Shape,{isPanelMain:!0,strokeWidth:2}),e(I.Shape,{toArrow:"Standard",stroke:null})),model:new I.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(R()(I.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(I.Node,"Auto",{locationSpot:I.Spot.Center},new I.Binding("location","location",I.Point.parse).makeTwoWay(I.Point.stringify),e(I.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 I.Binding("stroke").makeTwoWay(),new I.Binding("fill").makeTwoWay(),new I.Binding("figure")),e(I.TextBlock,{margin:new I.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new I.Size(16,16),maxSize:new I.Size(10,NaN),textAlign:"center",editable:!0},new I.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(I.Panel,"Grid",e(I.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(I.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,h.jsx)("div",{ref:o})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(S.ZP,{size:"large",onClick:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},K=n(5112),Y=n(94001),J=K.ZP.Group,X={margin:"0 8px"},$=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(k.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"单元格数:"}),(0,h.jsx)("span",{style:X,children:"行数"}),(0,h.jsx)(k.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Y.Z,{})}),(0,h.jsx)("span",{style:X,children:"列数"}),(0,h.jsx)(k.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Y.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:X,children:"对齐方式:"}),(0,h.jsx)(k.Z.Item,{name:"align",children:(0,h.jsxs)(J,{children:[(0,h.jsx)(K.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(K.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(K.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(K.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(S.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(S.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},Q=n(78673),ee=n(57932),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,o=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=a()(u,2),f=d[0],p=d[1],m=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(m.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){m.current.appName=f?"3D":"graphing",s.current.inject("applet_container")}),[f]),(0,c.useEffect)((function(){p(n)}),[n]),(0,c.useImperativeHandle)(t,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(N.Z,{align:"middle",children:[(0,h.jsx)(W.Z,{flex:1,children:(0,h.jsx)(Q.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,h.jsx)(W.Z,{children:(0,h.jsx)(S.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(36761),oe=n(92723),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},he=n(77818);var me="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function we(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ve=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},ve+"-B","bold"),ve+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),ue,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),xe=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,l=void 0===r?"100%":r,u=e.height,g=void 0===u?400:u,w=e.miniToolbar,v=void 0!==w&&w,b=e.isFocus,k=void 0!==b&&b,_=e.watch,S=e.insertTemp,B=e.mode,N=void 0===B?"markdown":B,P=e.id,E=void 0===P?"markdown-editor-id":P,M=e.showResizeBar,A=void 0!==M&&M,G=e.noStorage,O=void 0!==G&&G,R=e.showNullButton,I=void 0!==R&&R,D=e.showNullProgramButton,F=void 0!==D&&D,Z=e.hidetoolBar,W=void 0!==Z&&Z,H=e.fullScreen,V=void 0!==H&&H,q=e.onBlur,K=e.onCMBeforeChange,Y=e.onFullScreen,J=e.className,X=void 0===J?"":J,Q=e.disablePaste,ee=void 0!==Q&&Q,te=e.disabled,fe=void 0!==te&&te,ve=e.disabledFill,xe=void 0!==ve&&ve,ke=e.placeholder,_e=void 0===ke?"":ke,Se=e.values,Be=void 0===Se?"":Se,Te=e.extraUse,Ce=(0,c.useState)(null),je=a()(Ce,2),Ne=je[0],Pe=je[1],Le=(0,c.useState)(n),Ee=a()(Le,2),Me=Ee[0],Ae=Ee[1],Ge=(0,c.useState)(_),Oe=a()(Ge,2),Re=Oe[0],Ie=Oe[1],De=(0,c.useState)(V),Fe=a()(De,2),Ze=Fe[0],ze=Fe[1],We=(0,c.useState)(""),He=a()(We,2),Ve=He[0],qe=He[1],Ue=(0,c.useState)(0),Ke=a()(Ue,2),Ye=Ke[0],Je=Ke[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),Qe=$e[0],et=$e[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),ot=(0,c.useState)(0),rt=a()(ot,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),ut=ct[0],dt=ct[1],ft=(0,c.useRef)(),pt=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(Be),null==Ne||Ne.setValue(Be),window.scrollTo(0,e)}),[Be]),(0,c.useEffect)((function(){null==Y||Y(Ze)}),[Ze]),(0,c.useEffect)((function(){if(ft.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==N)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,j.I)(s,(function(e){var n,i,o;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('').concat(s.name,"")):ge.includes(c)?t.replaceSelection('').concat(s.name,"")):t.replaceSelection("[".concat(s.name,"](").concat(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(ft.current,{mode:N,lineNumbers:!v,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",_e):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),o=n.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===me.indexOf(r))return null;if(console.log("change1:",t,e,o,i,s,a,l,r),s>=0&&i.ch-s<5){var u=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:u}),{line:i.line,ch:u}}return null}(e);n&&t.preventDefault()}})),k&&t.focus(),t.on("paste",e),fe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Pe(t),function(){t.off("paste",e)}}}),[]);var gt=(0,c.useCallback)((function(){pt.current}),[Qe,pt,Ze]);(0,c.useEffect)((function(){if(Ne){var e=function(){var e=new f.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(gt(),Ne.setSize("100%","100%"),Ne.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(ft.current.parentElement),e}();return function(){var t,n;null!==(t=ft.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=ft.current)||void 0===n?void 0:n.parentElement)}}}),[Ne,gt]),(0,c.useEffect)((function(){if(Ne){for(var e=[],t=function(){var t=a()(i[n],2),o=t[0],r=t[1],l=s()({},o,(function(){wt(r)}));e.push(l),Ne.addKeyMap(l)},n=0,i=Object.entries(be);n0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(E);e>=Ye+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(E,Me),it(!0))}}),1e4),(0,c.useEffect)((function(){Ie(_)}),[Ne,_]),(0,c.useEffect)((function(){Ne&&k&&Ne.focus()}),[Ne,k]),(0,c.useEffect)((function(){if(Re&&Ne){var e=function(e){var t=e.target;if(mt.current){var n=t.scrollTop/t.scrollHeight;mt.current.scrollTop=mt.current.scrollHeight*n}},t=Ne.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Ne,Re]),(0,c.useEffect)((function(){if(Ne&&K){var e=function(e,t){K(e,t)};return Ne.on("beforeChange",e),function(){Ne.off("beforeChange",e)}}}),[Ne,K]),(0,c.useEffect)((function(){if(Ne&&q){var e=function(){q(Ne.getValue())};return Ne.on("blur",e),function(){Ne.off("blur",e)}}}),[Ne,q]),(0,c.useEffect)((function(){if(Ne){var e=function(e,t){var n=e.getValue();Ae(n),Je((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(F?i(n,kt(n)):i(n))};return Ne.on("change",e),function(){Ne.off("change",e)}}}),[Ne,i]),(0,c.useEffect)((function(){if(Ne)if(null==n)Ne.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Ne.getValue()&&(Ne.setValue(n),Ae(n),Ne.setCursor(fe?1:Ne.lineCount(),0),window.scrollTo(0,e))}}),[Ne,n]);var wt=(0,c.useCallback)((function(e){var t=Ne.getCursor(),n=Ne.getSelection(),i=n.split("\n");switch(e){case"bold":return Ne.replaceSelection("**"+n+"**"),""===n&&Ne.setCursor(t.line,t.ch+2),Ne.focus();case"italic":return Ne.replaceSelection("*"+n+"*"),""===n&&Ne.setCursor(t.line,t.ch+1),Ne.focus();case"code":return Ne.replaceSelection("`"+n+"`"),""===n&&Ne.setCursor(t.line,t.ch+1),Ne.focus();case"inline-latex":return qe("inline-latex"),Ne.focus();case"latex":return Ne.replaceSelection("```latex\n"+n+"\n```"),Ne.setCursor(t.line+1,n.length+1),Ne.focus();case"line-break":return Ne.replaceSelection("
\n"),Ne.focus();case"list-ul":return""===n?Ne.replaceSelection("- "+n):Ne.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ne.focus();case"list-ol":return""===n?Ne.replaceSelection("1. "+n):Ne.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Ne.focus();case"add-null-ch":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("▁"),Ne.focus();case"add-signal":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("@▁@"),Ne.focus();case"add-multiple":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection(me),Ne.focus();case"inster-template-1":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ne.focus();case"eraser":return Ne.setValue(""),Ne.focus();case"trigger-watch":return Ie(!Re),Ne.focus();case"trigger-full-screen":return ze(!Ze),Ne.focus();case ae:return void qe(ae);case ue:return void qe(ue);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[Ne,Re,Ze]),vt=(0,c.useCallback)((function(e,t){var n,i,o,r,a;switch(qe(""),Ve){case ae:var l=e.title,s=e.link;return Ne.replaceSelection("[".concat(l,"](").concat(s,")")),Ne.focus();case ue:var c=e.language,u=e.content;return Ne.replaceSelection(["```"+c,u,"```"].join("\n")),Ne.focus();case"maths-latex":for(var d=atob(e),f=new Uint8Array(d.length),p=0;p-1||null==w||!w.type?g?Ne.replaceSelection("![ ".concat(g," ]( ").concat(m,' "').concat(g,'" )')):Ne.replaceSelection("![,](".concat(m,")")):(null==w||null===(r=w.type)||void 0===r?void 0:r.indexOf("video"))>-1?Ne.replaceSelection('')):(null==w||null===(a=w.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Ne.replaceSelection('').concat(w.name,"")):ge.includes(v)?Ne.replaceSelection('').concat(w.name,"")):Ne.replaceSelection("[".concat(w.name,"](").concat(oe.Z.API_SERVER).concat(m,")")),Ne.focus();case de:for(var b=e.row,y=e.col,x=e.align,k="\n",_=0;_300&&(t=300),et(g+t+"px")}},i=ht.current,o=!1,r=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Ne,ht]),(0,c.useEffect)((function(){et(g)}),[g]);var xt={width:we(l),height:we(Qe)},kt=((0,c.useMemo)((function(){if(Ye){var e=new Date(Ye),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ye]),function(e){var t=[];if(F){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[Ve]&&Ve!==ce&&Ve!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),dt(n)}),0)}),[Ve]);var _t=function(e,t,n,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&nt||t>o-20&&i0&&(n=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+j+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),n}var k=function(e){var n=e.value,t=e.onChange,a=e.action,s=e.data,o=e.className,l=e.maxSize,d=void 0===l?150:l,C=e.title,k=void 0===C?"上传附件":C,N=e.showRemoveModal,D=void 0!==N&&N,E=e.accept,B=void 0===E?"":E,Z=e.additionalText,T=e.isDragger,I=e.number,R=void 0===I?1e3:I,P=e.aloneClear,F=void 0!==P&&P,L=e.realTimeRemove,U=void 0===L||L,O=e.uploadText,H=(0,f.useState)(!1),Q=p()(H,2),M=Q[0],W=Q[1],z=(0,f.useState)(n||[]),G=p()(z,2),V=G[0],J=G[1],K=(0,f.useState)(1),X=p()(K,2),q=X[0],Y=X[1];(0,f.useEffect)((function(){n&&(1===q&&J(u()(n)),Y(2),R===(null==n?void 0:n.length)&&W(!0))}),[n]);var $,ee=function(){setTimeout((function(){V.pop(),J(u()(V))}),500)},ne={multiple:!0,disabled:M,accept:B,withCredentials:!0,fileList:V,beforeUpload:function(e,n){var t=e.size/1024/1024;return V.concat(n).length>R?(V.pop(),J(u()(V)),m.ZP.error("最多只能上传".concat(R,"个文件")),F?Promise.reject():(ee(),!1)):t=R?W(!0):W(!1),J(u()(V)),V=V.map((function(e){var n,t;null!=e&&null!==(n=e.response)&&void 0!==n&&n.id&&(e.url=null==e||null===(t=e.response)||void 0===t?void 0:t.url);return-1===e.name.indexOf(j)&&(e.name="".concat(e.name).concat(j).concat(y(e.size))),c()({},e)})),console.log("info:",e,V),t(V)):m.ZP.error(null===(a=e.file)||void 0===a||null===(a=a.response)||void 0===a?void 0:a.message)},onRemove:($=i()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(U){e.next=2;break}return e.abrupt("return",!0);case 2:if(t=function(){var e=i()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.response?n.response.id:n.id)){e.next=8;break}return e.next=4,(0,A.JZ)(n.response?n.response.id:n.uid);case 4:return t=e.sent,e.abrupt("return",Promise.resolve(t));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!D){e.next=7;break}return e.abrupt("return",new Promise((function(e,n){var a;x.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,w.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(a=i()(r()().mark((function n(){return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t();case 2:n.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return n.stop()}}),n)}))),function(){return a.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,t();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return $.apply(this,arguments)})};return(0,w.jsxs)("div",{className:"multi-upload ".concat(o||""),children:[T&&(0,w.jsxs)(S,c()(c()({},ne),{},{children:[(0,w.jsx)("p",{className:"ant-upload-drag-icon",children:(0,w.jsx)(b.Z,{})}),(0,w.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,w.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),Z]})),!T&&(0,w.jsxs)(h.Z,c()(c()({},ne),{},{children:[(0,w.jsxs)(v.ZP,{disabled:M,className:"upload_button",children:[(0,w.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),k]}),(0,w.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:O||"(单个文件最大".concat(d,"MB)")})]}))]})}},54313:function(e,n,t){"use strict";var a=t(82242),r=t.n(a),s=(t(59301),t(93314)),i=t(3113),o=t(37712);n.Z=function(e){var n=e.img,t=e.buttonProps,a=void 0===t?{}:t,c=e.styles,l=void 0===c?{}:c,u=e.customText,d=e.ButtonText,p=e.ButtonClick,f=e.Buttonclass,h=e.ButtonTwo,m=e.imgStyles,x=e.loading,v=void 0!==x&&x;return(0,o.jsxs)("section",{className:"tc animated fadeIn",style:r()(r()({},{color:"#999",margin:"100px auto",visibility:v?"hidden":"visible"}),l),children:[(0,o.jsx)("img",{src:n||s,style:r()(r()({},m),{},{pointerEvents:"none",userSelect:"none"})}),(0,o.jsx)("p",{className:"mt20 font14",children:u||"暂时还没有相关数据哦!"}),d&&(0,o.jsx)(i.ZP,r()(r()({className:f,onClick:p},a),{},{children:d})),h&&h]})}},73488:function(e,n,t){"use strict";var a=t(7557),r=t.n(a),s=t(37205),i=t.n(s),o=t(41498),c=t.n(o),l=t(79800),u=t.n(l),d=t(82242),p=t.n(d),f=t(59301),h=t(78241),m=t(95237),x=t(57809),v=t(92832),g=t(88522),A=t(3113),w=t(24905),j=t(6848),y=t(8591),b=t(61998),_=t(5296),S=t(61186),C=t.n(S),k=t(26724),N=t.n(k),D=t(58143),E=t(54602),B=t(48486),Z=t(7352),T=t(37712),I=[];function R(e){var n=e.onSearch,t=e.schools;return(0,T.jsx)(h.Z,{colon:!1,layout:"horizontal",onFinish:n,initialValues:{keyword:"",school_name:"",search_type:"1"},children:(0,T.jsxs)(m.Z,{style:{flexWrap:"nowrap"},children:[(0,T.jsx)(h.Z.Item,{name:"search_type",label:"搜索类型",children:(0,T.jsxs)(x.default,{popupClassName:Z.Z.selectdown,style:{width:106},children:[(0,T.jsx)(x.default.Option,{value:"1",children:"姓名"}),(0,T.jsx)(x.default.Option,{value:"2",children:"手机号"}),(0,T.jsx)(x.default.Option,{value:"3",children:"邮箱"})]})}),(0,T.jsx)(h.Z.Item,{style:{marginLeft:20},label:"搜索内容",name:"keyword",rules:[{required:!0,message:"请输入搜索内容"}],children:(0,T.jsx)(v.Z,{allowClear:!0,style:{width:300},size:"middle"})}),(0,T.jsx)(h.Z.Item,{style:{marginLeft:20},label:"单位",name:"school_name",children:(0,T.jsx)(g.Z,{options:t,style:{width:300},size:"middle",showSearch:!0,filterOption:function(e,n){return-1!==n.value.toUpperCase().indexOf(e.toUpperCase())},placeholder:"请输入单位名称"})}),(0,T.jsx)(A.ZP,{type:"primary",style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:16,color:"#165DFF",marginLeft:40,border:"1px solid #BACFFE"},htmlType:"submit",children:"搜索"})]})})}var P=function(e){return e[e.INITDATA=0]="INITDATA",e[e.INITSCHOOLS=1]="INITSCHOOLS",e[e.SHOWLOADING=2]="SHOWLOADING",e[e.SELECTEDIDS=3]="SELECTEDIDS",e[e.SETQUERY=4]="SETQUERY",e[e.SETPAGE=5]="SETPAGE",e}(P||{});function F(e,n){switch(n.type){case P.INITDATA:case P.SETQUERY:return p()(p()({},e),n.payload);case P.SETPAGE:return p()(p()({},e),{},{page:n.payload,reload:!1});case P.SHOWLOADING:return p()(p()({},e),{},{loading:n.payload});case P.INITSCHOOLS:return p()(p()({},e),{},{schools:n.payload});case P.SELECTEDIDS:return p()(p()({},e),{},{selectedIds:n.payload});default:throw new Error}}var L={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};n.Z=function(e){var n=e.onSelect,t=e.onCancel,a=e.container_id,s=e.container_type,o=(0,f.useReducer)(F,L),l=u()(o,2),d=l[0],h=l[1],m=d.data,x=d.schools,v=d.loading,g=d.selectedIds,S=d.page,k=d.count,Z=d.query,U=d.reload;(0,f.useEffect)((function(){function e(){return(e=c()(r()().mark((function e(){var n,t,o;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,E.nQ)(p()(p()({},Z),{},{page:S,container_type:s,container_id:a,display_aliases:!0}));case 2:n=e.sent,t=n.users,o=n.user_count,h({type:P.INITDATA,payload:{data:U?t:[].concat(i()(m),i()(t)),count:o}});case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Z&&function(){e.apply(this,arguments)}()}),[S,Z,U,a,s]),(0,f.useEffect)((function(){function e(){return(e=c()(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,E.K$)({display_aliases:!0});case 2:n=e.sent,t=n.school_names,h({type:P.INITSCHOOLS,payload:t.map((function(e){return{value:e}}))});case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var O=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(e,n){return(0,T.jsx)(w.Z,{value:n.numid,checked:g.includes(n.numid),disabled:!!e})}},{title:"姓名",width:100,ellipsis:!0,align:"left",dataIndex:"username",render:function(e,n){return(0,T.jsx)("div",{children:(0,T.jsx)(j.Z,{placement:"bottom",title:e,children:(0,T.jsx)(_.Link,{style:{color:"#000000"},className:"bold c-black",to:"/users/".concat(n.login),target:"_blank",children:e||"--"})})})}},{title:"手机",width:100,dataIndex:"phone",ellipsis:!0,render:function(e){return(0,T.jsx)(j.Z,{placement:"bottom",title:e,children:(0,T.jsx)("span",{style:{color:"#000000"},children:e||"--"})})}},{title:"邮箱",dataIndex:"email",width:100,ellipsis:!0,render:function(e){return(0,T.jsx)(j.Z,{placement:"bottom",title:e,children:(0,T.jsx)("span",{style:{color:"#000000"},children:e||"--"})})}},{title:"学号/工号",width:100,dataIndex:"student_number",ellipsis:!0,render:function(e){return(0,T.jsx)(j.Z,{placement:"bottom",title:e,children:(0,T.jsx)("span",{style:{color:"#000000"},children:e||"--"})})}},{title:"学校/单位",width:150,dataIndex:"school_name",ellipsis:!0,render:function(e){return(0,T.jsx)(j.Z,{placement:"bottom",title:e,children:(0,T.jsx)("span",{style:{color:"#000000"},children:e||"--"})})}},{title:"院系/部门",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(e){return(0,T.jsx)(j.Z,{placement:"bottom",title:e,children:(0,T.jsx)("span",{style:{color:"#000000"},children:e||"--"})})}},{title:"实名认证",dataIndex:"auth",width:100,render:function(e){return(0,T.jsx)("span",{style:{color:"#000000"},children:e?"是":"否"})}},{title:"最后登录时间",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(e){return(0,T.jsx)(j.Z,{placement:"bottom",title:e,children:(0,T.jsx)("span",{style:{color:"#000000"},children:C()(e).format("YYYY-MM-DD HH:mm")})})}},{title:"状态",dataIndex:"added",width:80,render:function(e){if(1===e)return(0,T.jsx)("span",{style:{color:"#000000"},children:"已添加"})}}];var H=k>10*S;return(0,T.jsxs)("div",{className:"select-user-container",style:{paddingBottom:20},children:[(0,T.jsx)(R,{onSearch:function(e){h({type:P.SETQUERY,payload:{page:1,reload:!0,query:e}})},schools:x}),Z?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("div",{className:"flexd-table-header mt20",children:(0,T.jsx)(B.Gi,{children:(0,T.jsx)(b.Z,{pagination:!1,dataSource:I,columns:O})})}),(0,T.jsx)("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20},children:(0,T.jsx)(N(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(e){h({type:P.SETPAGE,payload:e})},hasMore:H,useWindow:!1,children:(0,T.jsx)(B.Gi,{children:(0,T.jsx)(b.Z,{loading:v,showHeader:!1,pagination:!1,dataSource:m,columns:O,onRow:function(e){return{onClick:function(n){var t,a;1!==e.added&&(t=e.numid,(a=g.indexOf(t))>=0?g.splice(a,1):g.push(t),h({type:P.SELECTEDIDS,payload:i()(g)}))}}}})})})}),(0,T.jsxs)("div",{className:"flex-container flex-end",children:[(0,T.jsx)(A.ZP,{type:"ghost",style:{marginRight:10,border:"1px solid #C3CFE0",color:"#464F66"},onClick:t,children:"取消"}),(0,T.jsx)(A.ZP,{style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:2,color:"#165DFF",border:"1px solid #BACFFE"},type:"primary",onClick:function(){0===g.length?y.ZP.warning("请先在下面列表中选择要添加成员"):(n(g,a),h({type:P.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))},children:"确定"})]})]}):(0,T.jsxs)("div",{className:"tc font16 c-light-black mt40 pb30",children:[(0,T.jsx)("img",{src:D,width:"100",alt:""}),(0,T.jsx)("br",{}),(0,T.jsx)("p",{className:"mt20",children:"请搜索要添加的人员"})]})]})}},48486:function(e,n,t){"use strict";t.d(n,{jL:function(){return c},w9:function(){return je},QD:function(){return nn},cQ:function(){return Ae},op:function(){return Je},O5:function(){return dn},_b:function(){return on},t7:function(){return R},Gi:function(){return Se},YG:function(){return _e},qp:function(){return _},vr:function(){return an},qE:function(){return qe},Je:function(){return L},wb:function(){return se},cq:function(){return Pe},tp:function(){return k}});var a=t(59301),r="banner___PoUBO",s="content___XoDjy",i="btns___Pb35j",o=t(37712),c=function(e){var n=e.dataSource,t=void 0===n?[]:n,a=e.img,c=e.imgWidth,l=void 0===c?346:c,u=e.title,d=e.sunTitle,p=e.bannerExtraContent;return(0,o.jsx)("div",{className:r,children:(0,o.jsxs)("div",{className:s,children:[(0,o.jsxs)("aside",{children:[(0,o.jsxs)("p",{children:[(0,o.jsx)("b",{children:u}),(0,o.jsx)("span",{children:d})]}),t.length>0&&(0,o.jsx)("div",{className:i,children:t.map((function(e,n){return(0,o.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,o.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP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pkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},n)}))}),p]}),a&&(0,o.jsx)("img",{style:{marginTop:33,marginRight:38},src:a,width:l})]})})},l=t(79800),u=t.n(l),d="row___aXJjm",p="title___HUKL0",f="tagsWrap___XB2W3",h="action___VdHb1",m="bar___t1kKC",x="tag___V7Eft",v="name___Hk1Ip",g="num___xQpcH",A="active___XryTX",w="tagsBorderWrap___OMxjs",j=t(92310),y=t.n(j),b=t(89392),_=function(e){var n=e.dataSource,t=void 0===n?[]:n,r=e.value,s=e.onChange,i=e.onTitleChange,c=e.className,l=e.title,j=e.titleWidth,_=void 0===j?41:j,S=e.style,C=void 0===S?{}:S,k=e.fontColor,N=void 0===k?"#6A7283":k,D=e.showCount,E=(0,a.useState)(0),B=u()(E,2),Z=B[0],T=B[1],I=(0,a.useState)(!1),R=u()(I,2),P=R[0],F=R[1],L=(0,a.useRef)(null),U=(0,a.useRef)(null);return(0,a.useEffect)((function(){var e;0!==t.length&&((null==L||null===(e=L.current)||void 0===e?void 0:e.clientHeight)>97?T(1):T(0));0===t.length&&T(0),F(!1)}),[t]),(0,o.jsxs)("div",{className:y()(d,c),style:C,children:[(0,o.jsx)("div",{onClick:(0,b.throttle)((function(){return null==i?void 0:i()}),2e3),style:{width:_,marginTop:P?12:4},className:"".concat(p," ").concat(i?"current":""),children:l}),(0,o.jsxs)("div",{className:P?"".concat(f," ").concat(w):f,children:[(0,o.jsx)("div",{className:m,ref:U,style:Z>0?{height:1===Z?97:"auto",overflow:1===Z?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,o.jsx)("div",{className:x,ref:L,children:null==t?void 0:t.map((function(e){return(0,o.jsxs)("span",{onClick:function(){return s(e.id)},style:{color:N},className:r===e.id?A:"",children:[(0,o.jsx)("span",{title:e.name,className:v,children:e.name}),!!D&&(0,o.jsx)("span",{className:g,children:e.count})]},e.id)}))})}),!!Z&&(0,o.jsx)(a.Fragment,{children:1===Z?(0,o.jsxs)("div",{onClick:function(){var e;T(2),(null==L||null===(e=L.current)||void 0===e?void 0:e.clientHeight)>245?F(!0):F(!1)},className:h,children:["展开",(0,o.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,o.jsxs)("div",{onClick:function(){U.current.scrollTop=0,T(1),F(!1)},className:h,children:["收起",(0,o.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},S="tabs___GTqPV",C="active___F26E8",k=function(e){var n=e.dataSource,t=void 0===n?[]:n,a=e.value,r=e.onChange,s=e.className,i=e.style,c=void 0===i?{}:i;return(0,o.jsx)("div",{style:c,className:y()(S,s),children:t.map((function(e){return(0,o.jsx)("span",{onClick:function(){return r(e.id)},className:a===e.id?C:"",children:e.name},e.id)}))})},N="input___PW2zI",D="dropdown___vSy8B",E="menu___NiyBu",B="text___Grueu",Z="b1___ZKryM",T="b2___aKyGa",I=t(92832),R=function(e){var n,t=e.dataSource,r=void 0===t?[]:t,s=e.value,i=void 0===s?"":s,c=e.onChange,l=e.onInputChange,d=void 0===l?function(){}:l,p=e.className,f=e.style,h=void 0===f?{}:f,m=e.placeholder,x=(e.allowClear,(0,a.useState)("")),v=u()(x,2),g=v[0],A=v[1],w=(0,a.useState)(""),j=u()(w,2),b=j[0],_=j[1];(0,a.useEffect)((function(){var e,n=i;null!==(e=JSON.stringify(i))&&void 0!==e&&e.includes("{")&&(A(i.id),n=i.value||"");try{_(decodeURIComponent(n||""))}catch(e){_(decodeURIComponent(n||""))}}),[i]);var S=function(){c(encodeURIComponent(b),g||null)};return(0,o.jsxs)("div",{className:y()(N,p),style:h,children:[!!r.length&&(0,o.jsxs)("div",{className:D,children:[(0,o.jsxs)("div",{className:B,children:[null===(n=r.find((function(e){return e.id===g})))||void 0===n?void 0:n.name,(0,o.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,o.jsx)("b",{className:Z}),(0,o.jsx)("b",{className:T})]}),(0,o.jsx)("div",{className:E,children:r.map((function(e,n){return(0,o.jsx)("div",{onClick:function(){var n;(n=e.id)!==g&&(A(n),c(encodeURIComponent(b),n))},children:e.name},n)}))})]}),(0,o.jsx)(I.Z,{onPressEnter:S,value:b,onChange:function(e){_(e.target.value),d(encodeURIComponent(e.target.value),g||null)},bordered:!1,placeholder:m}),(0,o.jsx)("i",{onClick:S,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},P="quickPager___GM30J",F="disabled___Ozc8I",L=function(e){var n=e.value,t=e.onChange,a=e.className,r=e.total,s=e.pageSize,i=e.style,c=void 0===i?{}:i,l=n<2,u=n>=Math.ceil(r/s);return r<=s?(0,o.jsx)(o.Fragment,{}):(0,o.jsxs)("div",{className:y()(P,a),style:c,children:[(0,o.jsx)("div",{onClick:function(){l||t(n-1,"prev")},className:l?F:"",children:"上一页"}),(0,o.jsx)("div",{onClick:function(){u||t(n+1,"next")},className:u?F:"",children:"下一页"})]})},U="list___oOsiS",O="wrap___G6T7F",H="lockWrap___Rl79E",Q="li___oZZ7l",M="cover___b2bYW",W="img___IQX7w",z="sign___HkT6C",G="name___SsJx8",V="e___TMqq0",J="tags___bcjyo",K="rate___YACg7",X=t(71418),q=t(6848),Y=t(31395),$=t(92723),ee=t(21082),ne=t(96908),te=t(57177),ae=t(81378),re=t(54313),se=function(e){var n=e.className,t=e.dataSource,a=void 0===t?[]:t,r=e.col,s=void 0===r?4:r,i=e.right,c=e.bottom,l=void 0===c?23:c,u=e.precision,d=void 0===u?0:u,p=e.wrapWidth,f=void 0===p?1200:p,h=e.trackEventItems,m=e.loading,x=Math.floor((f-(s-1)*i)/s);return(0,o.jsx)(X.Z,{spinning:m,children:(0,o.jsxs)("div",{className:y()(U,n),children:[!!a.length&&a.map((function(e,n){var t=e.name,a=e.id,r=e.identifier,c=e.power,u=(e.cover_image_id,e.pic);return(0,o.jsxs)("div",{className:O,style:{width:x,marginRight:(1+n)%s==0?0:i+d,marginBottom:l},children:[(0,o.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(r,"/challenges"),className:Q,onClick:function(e){e.preventDefault(),h&&(0,ee.L9)([h]),c&&(0,ee.xg)("/shixuns/".concat(r,"/challenges"))},children:[(0,o.jsxs)("div",{className:W,children:[(0,o.jsx)("img",{className:M,src:"".concat(u)}),e.is_jupyter&&(0,o.jsx)("img",{className:z,src:ne}),e.is_jupyter_lab&&(0,o.jsx)("img",{className:z,src:te}),e.is_unity_3d&&(0,o.jsx)("img",{className:z,src:ae})]}),(0,o.jsx)("div",{className:G,children:(0,o.jsx)(q.Z,{title:t||"实践项目名称-未填写",children:(0,o.jsx)("span",{className:V,children:t||"实践项目名称-未填写"})})}),(0,o.jsxs)("div",{className:J,children:[(0,o.jsx)(q.Z,{placement:"bottom",title:"关卡数",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,o.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,o.jsx)(q.Z,{placement:"bottom",title:"学习人数",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,o.jsx)("span",{children:e.myshixuns_count})]})}),(0,o.jsx)(q.Z,{placement:"bottom",title:"难度等级",children:(0,o.jsx)("span",{children:(0,o.jsx)("span",{children:e.level})})}),(0,o.jsxs)("div",{className:K,children:[(0,o.jsx)(Y.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,o.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!c&&(0,o.jsxs)("div",{className:H,children:[(0,o.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,o.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},a)})),!a.length&&(0,o.jsx)(re.Z,{})]})})},ie="list___jb2Ay",oe="wrap___VsQDr",ce="li___IxCLC",le="cover___Mu8wr",ue="img___IpFLA",de="movebq___mF7wt",pe="bq___Bil0T",fe="sign___DXJ4d",he="name___l7FoJ",me="e___pXQUG",xe="unit___wCIFR",ve="tags___w_Mil",ge=t(93697),Ae=function(e){var n=e.className,t=e.dataSource,a=void 0===t?[]:t,r=e.col,s=void 0===r?4:r,i=e.right,c=e.bottom,l=void 0===c?23:c,u=e.precision,d=void 0===u?0:u,p=e.wrapWidth,f=void 0===p?1200:p,h=e.trackEventItems,m=e.loading,x=e.onRemove,v=void 0===x?function(){}:x,g=e.isCurrent,A=void 0===g||g,w=e.showAlias,j=void 0!==w&&w,b=Math.floor((f-(s-1)*i)/s),_=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,o.jsx)(X.Z,{spinning:m,children:(0,o.jsxs)("div",{className:y()(ie,n),children:[!(null==a||!a.length)&&(null==a?void 0:a.map((function(e,n){var t,a=e.name,r=e.id,c=e.identifier,u=(e.featured,e.school_name),p=e.image_url;e.excellent,e.is_plan;return(0,o.jsx)("div",{className:oe,style:{width:b,marginRight:(1+n)%s==0?0:i+d,marginBottom:l},children:(0,o.jsxs)("a",{className:ce,onClick:function(e){e.preventDefault(),e.stopPropagation(),h&&(0,ee.L9)([h]),(0,ee.xg)("/paths/".concat(c))},children:[(0,o.jsxs)("div",{className:ue,children:[(0,o.jsx)("img",{className:le,src:"".concat(p)}),A&&(0,ge.bg)()&&(null==e?void 0:e.studying)&&(0,o.jsxs)("div",{className:"".concat(de," user-path-items"),onClick:function(n){n.stopPropagation(),v(e)},children:[(0,o.jsx)("i",{className:"iconfont icon-yichu1 mr5 c-red"}),(0,o.jsx)("span",{className:"c-red",children:"移除"})]}),null==e||null===(t=e.subject_tags)||void 0===t?void 0:t.map((function(e,n){var t;if(0===n){var a,r=null===(a=_.find((function(n){return n.name==e})))||void 0===a?void 0:a.swimg;return(0,o.jsx)("img",{className:fe,src:r,style:{left:"-4px"}})}var s=null===(t=_.find((function(n){return n.name==e})))||void 0===t?void 0:t.ptimg;return(0,o.jsx)("img",{className:fe,src:s,style:{left:"".concat(48+52*(n-1)+2*n,"px")}})})),(0,o.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,o.jsx)("div",{className:pe,children:"开放课程"})})]}),(0,o.jsx)("div",{className:he,children:(0,o.jsx)(q.Z,{title:j&&null!=e&&e.excellent_alias_name?(0,o.jsxs)("span",{children:["课程原名:".concat(a),(0,o.jsx)("br",{}),(0,o.jsx)("span",{children:"课程别名:".concat(null==e?void 0:e.excellent_alias_name)})]}):a,children:(0,o.jsx)("span",{className:me,children:j&&(null==e?void 0:e.excellent_alias_name)||a})})}),(0,o.jsx)(q.Z,{title:"发布单位:".concat(u),children:(0,o.jsxs)("div",{className:xe,children:[(0,o.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),u]})}),(0,o.jsx)("div",{className:ve,children:(0,o.jsxs)("div",{children:[(0,o.jsx)(q.Z,{placement:"bottom",title:"章节数",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,o.jsx)("span",{children:e.stages_count})]})}),(0,o.jsx)(q.Z,{placement:"bottom",title:"学习人数",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,o.jsx)("span",{children:e.members_count})]})})]})})]})},r)}))),!a.length&&(0,o.jsx)(re.Z,{})]})})},we={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},je=function(e){var n=e.className,t=e.dataSource,a=void 0===t?[]:t,r=e.col,s=void 0===r?4:r,i=e.right,c=e.bottom,l=void 0===c?23:c,u=e.precision,d=void 0===u?0:u,p=e.wrapWidth,f=void 0===p?1200:p,h=e.trackEventItems,m=e.loading,x=Math.floor((f-(s-1)*i)/s);return(0,o.jsx)(X.Z,{spinning:m,children:(0,o.jsxs)("div",{className:y()(we.list,n),children:[!!a.length&&a.map((function(e,n){var t=e.subject_identifier,a=e.id,r=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,o.jsxs)("div",{className:we.wrap,style:{width:x,marginRight:(1+n)%s==0?0:i+d,marginBottom:l},children:[(0,o.jsxs)("a",{className:we.li,onClick:function(n){n.preventDefault(),(0,ee.Wn)(null==e?void 0:e.forbid_visit_info)||(h&&(0,ee.L9)([h]),(0,ee.xg)(e.first_category_url))},children:[(0,o.jsxs)("div",{className:we.top,children:[(0,o.jsx)(q.Z,{title:e.name,children:(0,o.jsx)("div",{className:we.name,children:e.name})}),(0,o.jsx)("img",{className:we.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,o.jsx)("div",{className:we.text,title:e.creator,children:e.creator}),t&&(0,o.jsxs)("div",{className:we.btns,children:[(0,o.jsx)("div",{children:"开放课程"}),(0,o.jsx)("aside",{children:"开放课堂"})]}),r&&(0,o.jsx)("div",{className:we.sign,children:"公开"})]}),(0,o.jsxs)("div",{className:we.bottom,children:[e.visits>0&&(0,o.jsx)(q.Z,{title:"访问量",placement:"bottom",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,o.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,o.jsx)(q.Z,{title:"成员",placement:"bottom",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,o.jsx)(q.Z,{title:"作业",placement:"bottom",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,o.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,o.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,o.jsxs)("div",{className:we.lockWrap,children:[(0,o.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,o.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},a)})),!a.length&&(0,o.jsx)(re.Z,{})]})})},ye={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},be=t(5296),_e=function(e){var n=e.dataSource,t=void 0===n?[]:n,a=e.value,r=e.onChange,s=e.className,i=e.style,c=void 0===i?{}:i,l=e.tabBarExtraContent;return(0,o.jsxs)("div",{className:y()(ye.tabs,s),style:c,children:[(0,o.jsx)("div",{className:ye.tabsWrap,children:t.map((function(e,n){return(0,o.jsxs)("aside",{className:ye.tab,onClick:function(){r(e.id),e.link&&be.history.push(e.link)},children:[(0,o.jsx)("div",{className:a===e.id?ye.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,o.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,o.jsx)(q.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,o.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,o.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,o.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},n)}))}),(0,o.jsx)("div",{className:ye.tabBar,children:l})]})},Se=function(e){var n=e.className,t=e.style,a=void 0===t?{}:t,r=e.children;return(0,o.jsx)("div",{className:y()(n),style:a,children:r})},Ce="orderWrap___ZfyGX",ke="orderIconWrap___XTB_O",Ne="orderAsc___KWHmA",De="orderDesc___rHdbB",Ee="active___a7eSP",Be="cursorPointer___gs9kL",Ze="orderTextWrap___teAKn",Te=t(38854),Ie=t(20834),Re=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Pe=function(e){var n,t=e.sortValue,a=e.dropValue,r=e.className,s=e.onSort,i=e.onDrop,c=e.dataSource,l=void 0===c?Re:c;return(0,o.jsxs)("div",{className:y()(Ce,r),children:[(0,o.jsx)(Te.Z,{dropdownRender:function(){return(0,o.jsx)(Ie.Z,{children:l.map((function(e,n){return(0,o.jsx)(Ie.Z.Item,{onClick:function(){return i(e.id)},children:e.name},n)}))})},children:(0,o.jsx)("span",{className:Ze,children:null===(n=l.find((function(e){return a===e.id})))||void 0===n?void 0:n.name})}),(0,o.jsxs)("span",{className:ke,children:[(0,o.jsx)("span",{className:Ne,children:(0,o.jsx)("i",{className:"asc"===t?"iconfont icon-sanjiaoxing-up font12 ".concat(Be," ").concat(Ee):"iconfont icon-sanjiaoxing-up font12 ".concat(Be),onClick:function(){return s("asc"===t?"desc":"asc")}})}),(0,o.jsx)("span",{className:De,children:(0,o.jsx)("i",{className:"desc"===t?"iconfont icon-sanjiaoxing-down font12 ".concat(Be," ").concat(Ee):"iconfont icon-sanjiaoxing-down font12 ".concat(Be),onClick:function(){return s("asc"===t?"desc":"asc")}})})]})]})},Fe=t(82242),Le=t.n(Fe),Ue=t(7557),Oe=t.n(Ue),He=t(41498),Qe=t.n(He),Me=t(39647),We=t.n(Me),ze={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ge=t(3113),Ve=["className","style","children","loading","openLoading","onClick","size","shape"],Je=function(e){var n=e.className,t=e.style,r=e.children,s=e.loading,i=void 0!==s&&s,c=e.openLoading,l=e.onClick,d=void 0===l?function(){}:l,p=e.size,f=void 0===p?"middle":p,h=e.shape,m=void 0===h?"round":h,x=We()(e,Ve),v=(0,a.useState)(!1),g=u()(v,2),A=g[0],w=g[1];return(0,o.jsx)(Ge.ZP,Le()(Le()({onClick:(0,b.throttle)(function(){var e=Qe()(Oe()().mark((function e(n){return Oe()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c&&w(!0),e.prev=1,e.next=4,d(n);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:c&&w(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(n){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:y()(ze.btn,ze["".concat(f,"-").concat(m)],n),style:t,size:f,shape:m,loading:A||i},x),{},{children:r}))},Ke="head___ghH72",Xe="node___mjPEy",qe=function(e){var n=e.className,t=e.style,a=e.children,r=void 0===a?null:a,s=e.onClick,i=e.title;return(0,o.jsxs)("div",{className:y()(Ke,n),style:t,children:[(0,o.jsxs)("span",{className:"primary-hover",onClick:s,children:[(0,o.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,o.jsx)("b",{title:i,children:i}),(0,o.jsx)("div",{className:Xe,children:r})]})},Ye="btns___sNgTb",$e="confirm___Ozirl",en="cancel___aiq1I",nn=function(e){var n=e.confirmShow,t=void 0===n||n,a=e.confirmTitle,r=e.confirmClick,s=e.cancelShow,i=void 0===s||s,c=e.cancelTitle,l=e.cancelClick,u=e.className,d=e.style,p=e.confirmLoading,f=void 0!==p&&p;return(0,o.jsxs)("div",{className:y()(Ye,u),style:d,children:[t&&(0,o.jsx)(Ge.ZP,{loading:f,onClick:r,type:"primary",className:$e,children:a}),i&&(0,o.jsx)(Ge.ZP,{onClick:l,className:en,children:c})]})},tn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},an=function(e){var n=e.className,t=e.style,a=void 0===t?{}:t,r=e.LeftContent,s=e.children,i=e.RightContent;return(0,o.jsx)("div",{className:y()(tn.fixedBottom,n),style:a,children:(0,o.jsxs)("div",{className:tn.wrap,children:[(0,o.jsx)("div",{className:tn.left,children:r}),(0,o.jsx)("div",{className:tn.center,children:s}),(0,o.jsx)("div",{className:tn.right,children:i})]})})},rn="crumbs___V41Oe",sn="hover___bEIVd",on=function(e){var n=e.className,t=e.style,r=void 0===t?{}:t,s=e.dataSource,i=void 0===s?[]:s;return(0,o.jsx)("div",{className:y()(rn,n),style:r,children:i.map((function(e,n){return n"," "]})]},n):(0,o.jsx)("span",{style:{color:"#5F6368"},children:e.name},n)}))})},cn=t(31797),ln=["onChange"],un=cn.Z.Countdown,dn=function(e){var n=e.onChange,t=We()(e,ln),r=(0,a.useState)(null),s=u()(r,2),i=s[0],c=s[1];(0,a.useEffect)((function(){"number"==typeof i&&i>=0&&n(i)}),[i]);return(0,o.jsx)(un,Le()(Le()({},t),{},{onChange:function(e){var n=Math.floor(e/1e3);c(n)}}))}},50069:function(e,n,t){"use strict";var a=t(79800),r=t.n(a),s=t(6848),i=t(8591),o=t(3113),c=t(61998),l=t(59301),u=t(76710),d=t(56102),p=t(37712),f=[{title:"文件名",dataIndex:"filename",width:"19%",ellipsis:!0},{title:"备注",dataIndex:"description",width:"19%",ellipsis:!0},{title:"创建时间",dataIndex:"created_on",width:"19%",ellipsis:!0},{title:"文件路径",dataIndex:"path",width:"19%",render:function(e){return(0,p.jsxs)("div",{style:{display:"flex"},children:[(0,p.jsx)(s.Z,{title:e,children:(0,p.jsx)("span",{style:{width:"80%",display:"inline-block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e})}),(0,p.jsx)(d.CopyToClipboard,{text:e,onCopy:function(){return i.ZP.success("复制成功")},children:(0,p.jsx)("i",{className:"iconfont icon-fuzhi2 current ml5 mr40",style:{color:"#165DFF",marginLeft:30}})})]})}},{title:"最后修改人",dataIndex:"author",width:"14%",ellipsis:!0},{title:"大小",dataIndex:"filesize",width:"10%",ellipsis:!0}],h=function(e){var n=e.detail,t=(0,l.useState)(n),a=r()(t,2),s=a[0],i=a[1],d=(0,l.useState)(1),h=r()(d,2),m=h[0],x=h[1];(0,l.useEffect)((function(){n&&i(n)}),[n]);var v=(0,l.useMemo)((function(){return{position:["bottomCenter"],pageSize:10,showSizeChanger:!1,current:m,showQuickJumper:{goButton:(0,p.jsx)(o.ZP,{children:"GO"})},total:null==s?void 0:s.data_sets_count,onChange:function(e){x(e),(0,u.pV)("".concat(null==n?void 0:n.id),{limit:10,page:e}).then((function(e){i(e)}))}}}),[m,s]);return(0,p.jsx)(c.Z,{columns:f,dataSource:null==s?void 0:s.data_sets,rowKey:"attachment_id",pagination:v})};n.Z=(0,l.memo)(h)},15179:function(e,n,t){"use strict";t.d(n,{Z:function(){return U}});var a=t(82242),r=t.n(a),s=t(7557),i=t.n(s),o=t(41498),c=t.n(o),l=t(79800),u=t.n(l),d=t(59301),p=t(5296),f=t(43418),h=t(8591),m=t(3113),x=t(96865),v=t(27092),g=t(92723),A=t(93697),w=t(39647),j=t.n(w),y=t(5112),b="title___rpaor",_="content___Hb0l5",S="add___THwHB",C="colorBlue___yc4F8",k="radio___hn9Vt",N=t(37712),D=["shixunsDetail","globalSetting","loading","dispatch","onReloadData"],E=(0,p.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t}}))((function(e){var n=e.shixunsDetail,t=(e.globalSetting,e.loading),a=e.dispatch,r=e.onReloadData,s=(j()(e,D),(0,d.useState)()),o=u()(s,2),l=o[0],p=o[1],m=(0,d.useState)([]),x=u()(m,2),v=x[0],g=x[1];(0,d.useEffect)((function(){"Collaborators-ChangeManager"===n.actionTabs.key&&A()}),[n.actionTabs.key]);var A=function(){var e=c()(i()().mark((function e(){var t,r;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a({type:"shixunsDetail/getChangeManager",payload:{id:null===(t=n.actionTabs.params)||void 0===t?void 0:t.id}});case 2:r=e.sent,g(r||[]);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),w=function(){var e=c()(i()().mark((function e(){var t,s;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l){e.next=3;break}return h.ZP.info("所选人员为空,没有更换成功"),e.abrupt("return");case 3:return e.next=5,a({type:"shixunsDetail/changeManager",payload:{id:null===(t=n.actionTabs.params)||void 0===t?void 0:t.id,user_id:l}});case 5:s=e.sent,E(),s&&(r(),h.ZP.info(s.message));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),E=function(){a({type:"shixunsDetail/setActionTabs",payload:{}}),p(null)};return(0,N.jsx)(f.Z,{centered:!0,keyboard:!1,closable:!1,title:"更换管理员",open:"Collaborators-ChangeManager"===n.actionTabs.key,confirmLoading:t.effects["shixunsDetail/changeManager"],onOk:w,onCancel:E,children:(0,N.jsxs)("div",{children:[(0,N.jsxs)("div",{className:b,children:["选择的成员将会成为新的管理员",(0,N.jsx)("br",{}),"您将不再拥有管理员的权限,但您仍是合作团队的一员"]}),(0,N.jsx)("div",{className:_,children:v.length?(0,N.jsx)(y.ZP.Group,{value:l,onChange:function(e){return p(e.target.value)},children:v.map((function(e,n){return(0,N.jsx)(y.ZP,{className:k,value:e.user_id,children:e.name},n)}))}):(0,N.jsx)("div",{className:S,children:(0,N.jsxs)("span",{children:["请先将新的管理员通过",(0,N.jsx)("a",{className:C,onClick:function(){var e;a({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:null===(e=n.actionTabs.params)||void 0===e?void 0:e.id}}})},children:'"添加合作者"'}),"加入合作者列表"]})})})]})})})),B=t(99313),Z=t(73488),T=B.Z.TabPane,I=function(e){var n=e.visible,t=e.onCancel,a=(e.onSelectGroup,e.shixunId),r=e.onSelectCollaborator;return(0,N.jsx)(f.Z,{title:"添加合作者",open:n,width:1100,centered:!0,keyboard:!1,onCancel:t,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400,padding:"0 20px 20px 20px"},footer:null,children:(0,N.jsx)(B.Z,{defaultActiveKey:"1",children:(0,N.jsx)(T,{tab:"搜索添加",children:(0,N.jsx)(Z.Z,{type:1,onCancel:t,container_type:2,container_id:a,onSelect:r})},"1")})})},R={bg:"bg___Onnmh",wrap:"wrap___VTtdp",modal:"modal___MArZa",content:"content___a69LK",head:"head____zVzr",headCount:"headCount___GhK7o",button:"button___DoAh3",itemWrap:"itemWrap___UR35k",imgWrap:"imgWrap___DpS0R",img:"img___N9se3",manager:"manager___m4Mzg",itemContent:"itemContent___Ut7hr",nameWrap:"nameWrap___y73uS",name:"name___hJUHg",actionGroup:"actionGroup___QEytf",deleteIcon:"deleteIcon___XGFcN",schoolWrap:"schoolWrap___qsoOp",school:"school___yh8l2",countWrap:"countWrap___MQKPn",deletetitle:"deletetitle___nAICN",yseTitle:"yseTitle___t5fzp"},P=t(26762),F=t(39911),L=t(18030),U=(0,p.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,user:e.user,loading:t}}))((function(e){var n=e.shixunsDetail,t=(e.globalSetting,e.loading,e.user,e.dispatch),a=e.position,s=(0,d.useRef)(),o=(0,d.useState)(0),l=u()(o,2),w=l[0],j=l[1],y=(0,d.useState)([]),b=u()(y,2),_=b[0],S=b[1],C=(0,d.useState)({id:null,page:1}),k=u()(C,2),D=k[0],B=k[1],Z=(0,p.useParams)(),T=(0,d.useState)({}),U=u()(T,2),O=U[0],H=U[1],Q=(0,d.useMemo)((function(){return(0,A.Ny)()||(null==O?void 0:O.current_user_is_creator)||(null==O?void 0:O.current_user_is_partner)}),[A.Ny,O]),M=(0,d.useMemo)((function(){return(0,A.Ny)()||(null==O?void 0:O.current_user_is_creator)}),[A.Ny,O]);(0,d.useEffect)((function(){s.current=null==Z?void 0:Z.taskId,D.id=null==Z?void 0:Z.taskId,B(D),W(D)}),[]);var W=function(){var e=c()(i()().mark((function e(n){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/sci/projects/".concat(null==Z?void 0:Z.taskId,"/get_project_partners.json"),{method:"get"});case 2:(t=e.sent)&&(S(t.users||[]),j(t.users_count),H(t));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),z=function(){var e=c()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return D.page=1,B(D),n=(0,F.g)(),e.next=5,t({type:"user/getUserInfo",payload:n});case 5:return e.next=7,W(D);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function G(){t({type:"shixunsDetail/setActionTabs",payload:{}})}var V,J,K={visible:"Collaborators-AddCollaborator"===n.actionTabs.key,onCancel:G,shixunId:s.current,onSelectCollaborator:(J=c()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return G(),e.next=3,(0,L.ZP)("/api/sci/projects/".concat(s.current,"/bacht_add_project_partners.json"),{method:"POST",body:{user_ids:n}});case 3:e.sent&&(h.ZP.success("添加成功"),z());case 5:case"end":return e.stop()}}),e)}))),function(e){return J.apply(this,arguments)}),onSelectGroup:(V=c()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return G(),e.next=3,t({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:s.current,group_id:n.group_id}});case 3:e.sent&&(h.ZP.success("添加成功"),z());case 5:case"end":return e.stop()}}),e)}))),function(e){return V.apply(this,arguments)})};return(0,N.jsxs)("section",{children:[(0,N.jsxs)("div",{className:R.wrap,children:[(0,N.jsxs)("div",{className:R.content,children:[(0,N.jsxs)("div",{className:R.head,children:[(0,N.jsxs)("span",{className:R.headCount,children:["合作者(",w,"人)"]}),Q&&(0,N.jsx)("div",{children:(0,N.jsx)(m.ZP,{className:R.button,style:{marginRight:"detail"===a?0:"20px"},onClick:function(){t({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:s.current}}})},icon:(0,N.jsx)(P.Z,{}),children:"添加合作者"})})]}),(0,N.jsx)("div",{className:R.list,children:(0,N.jsx)(x.Z,{loading:!1,active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30",children:_.map((function(e,n){return(0,N.jsx)("div",{style:{display:"inline-block",width:"50%"},children:(0,N.jsxs)("div",{className:R.itemWrap,children:[(0,N.jsxs)("a",{target:"_blank",className:R.imgWrap,children:[(0,N.jsx)("img",{alt:"用户头像",height:"48",width:"48",className:R.img,src:"".concat(g.Z.IMG_SERVER,"/images/").concat(null==e?void 0:e.image_url)}),(null==e?void 0:e.is_creator)&&(0,N.jsx)("span",{className:R.manager,children:"创建者"})]}),(0,N.jsxs)("div",{className:R.itemContent,children:[(0,N.jsxs)("div",{className:R.nameWrap,children:[(0,N.jsx)("a",{target:"_blank",className:R.name,children:null==e?void 0:e.user_name}),(0,N.jsx)("div",{className:R.actionGroup,children:null!=e&&e.is_creator||!M?null:(0,N.jsx)("a",{className:R.deletetitle,onClick:function(){return n=e.id,void f.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:(0,N.jsx)("div",{className:R.modal,children:"确定要删除吗?"}),onOk:(t=c()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/sci/projects/".concat(null==Z?void 0:Z.taskId,"/del_project_partner.json"),{method:"DELETE",body:{user_id:n}});case 2:e.sent,h.ZP.info("删除成功"),D.page=1,B(D),W(D);case 7:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})});var n,t},children:"删除"})})]}),(0,N.jsx)("p",{className:R.schoolWrap,children:(0,N.jsx)("span",{className:R.school,children:null==e?void 0:e.school_name})})]})]})},n)}))})})]}),w>10&&(0,N.jsx)("div",{className:R.countWrap,children:(0,N.jsx)(v.Z,{showQuickJumper:!1,showSizeChanger:!1,total:w,onChange:function(e){return function(e){D.page=e,B(D),W(D)}(e)},pageSize:10,current:D.page})})]}),(0,N.jsx)(E,{onReloadData:z}),(0,N.jsx)(I,r()({},K))]})}))},39494:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Dn}});var a,r,s=t(37205),i=t.n(s),o=t(85573),c=t.n(o),l=t(7557),u=t.n(l),d=t(41498),p=t.n(d),f=t(79800),h=t.n(f),m=t(39647),x=t.n(m),v=t(82242),g=t.n(v),A=t(59301),w=t(5296),j=t(70089),y=t(24808),b=t(31797),_=t(78241),S=t(43418),C=t(3113),k=t(43428),N=t(8591),D=t(92832),E=t(94001),B=(t(88780),t(95237)),Z=t(43604),T=t(35423),I=t(56102),R=t(48064),P=t(680),F=t(98382),L=t(92723),U=t(18030),O=t(21082),H=t(37712),Q=(0,A.forwardRef)((function(e,n){e.time;console.log("ScreenRecord:",n);var t=(0,A.useRef)(),a=(0,A.useState)(),r=h()(a,2),s=(r[0],r[1],(0,A.useRef)()),i=[];function o(){return(o=p()(u()().mark((function e(n,t){var a,r;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=[],e.next=3,new MediaRecorder(n);case 3:(r=e.sent).ondataavailable=function(e){a.push(e.data)},r.start(),s.current=r,window.recorderRefs=r,r.addEventListener("stop",(function(e){var n=URL.createObjectURL(a[0],{type:"video/mp4"});(0,O.Nd)("xxx.webm",n)}));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function c(){window.recorderRefs?(t.current.srcObject.getTracks().forEach((function(e){e.stop()})),window.recorderRefs.addEventListener("dataavailable",(function(e){var n=URL.createObjectURL(e.data,{type:"video/mp4"});(0,O.Nd)("屏幕录制视频.webm",n)}))):N.ZP.warning("您还没有开启视频录制,请先去录制视频吧!")}function l(){navigator.mediaDevices.getDisplayMedia({video:!0,audio:!0}).then((function(e){return t.current.srcObject=e,i.push(e),t.current.captureStream=t.current.captureStream||t.current.mozCaptureStream,new Promise((function(e){return t.current.onplaying=e}))})).then((function(){return function(e,n){return o.apply(this,arguments)}(t.current.captureStream(),2e3)})).then((function(e){})).catch((function(e){"NotFoundError"===e.name?N.ZP.warning("找不到摄像头或麦克风。无法录制."):N.ZP.warning(e.name)}))}return(0,A.useImperativeHandle)(n,(function(){return{startScreenRecord:l,downloadFile:c}})),(0,H.jsx)("div",{style:{position:"absolute",top:"0",zIndex:-1},children:(0,H.jsx)("video",{onPause:function(){},width:"60",height:"120",autoPlay:!0,muted:!0,ref:t})})})),M=Q,W=function(e){var n=e.className,t=(e.mirror_description,e.git_url),a=(e.difficulty,e.task_pass,e.test_set_permission,e.onVncAction),r=(e.shixun,e.window_vnc_url),s=(e.linux_vnc,e.vnc_url),i=e.unity_3d_routes,o=e.taskData;console.log(o);var c=(0,w.useParams)(),l=(0,A.useState)("8082"),d=h()(l,2),f=d[0],m=d[1],x=(0,A.useState)(!1),v=h()(x,2),g=v[0],j=(v[1],(0,A.useState)(!1)),y=h()(j,2),b=y[0],_=y[1],k=(0,A.useRef)(),E=r?"C:/Windows/AppReadiness/userfiles":"/data/workspace/userfiles",Q=r?"C:/Windows/AppReadiness/downloadfiles":"/data/workspace/downloadfiles",W=function(){var e=p()(u()().mark((function e(){var n,t,a;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),e.next=3,(0,U.ZP)("/api/sci/projects/".concat(c.taskId,"/port_proxy.json"),{method:"post",body:{port:f,position:1}});case 3:null!=(t=e.sent)&&null!==(n=t.data)&&void 0!==n&&n.url&&(0,O.xg)(null==t||null===(a=t.data)||void 0===a?void 0:a.url),_(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,H.jsxs)("div",{className:"tpi-code-setting ".concat(n),style:{height:"calc(100vh - 54px )"},children:[(0,H.jsx)("h3",{children:"功能"}),(0,H.jsxs)("section",{children:[(0,H.jsxs)("a",{id:"full-screen",title:"全屏",className:"file-item action",onClick:function(){a("full-screen")},children:[" ",(0,H.jsx)("i",{className:"iconfont icon-quanping"}),"开启 / 退出全屏 "]}),!i&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)("a",{id:"reset-task",onClick:function(){return a("reset-task")},className:"file-item action",title:"重置环境",children:[" ",(0,H.jsx)("i",{className:"iconfont icon-zhongzhishixun"}),"重置环境 "]}),(0,H.jsxs)("a",{onClick:function(){S.Z.info({title:"文件上传",icon:null,okText:"关闭",width:600,centered:!0,content:(0,H.jsx)("div",{className:"pt10",children:(0,H.jsx)(F.Z,{isDragger:!0,maxSize:1024,additionalText:'默认存放目录路径为"'.concat(E,'"'),action:"".concat(L.Z.API_SERVER,"/api/sci/projects/").concat(c.taskId,"/upload_file.json"),onChange:function(e){e.every((function(e){var n;return 0===(null===(n=e.response)||void 0===n?void 0:n.status)}))&&(S.Z.destroyAll(),N.ZP.info("文件上传成功"))}})})})},className:"file-item action",title:"上传文件",children:[" ",(0,H.jsx)("i",{className:"iconfont icon-shangchuanshipin1"}),"上传文件"]}),(0,H.jsxs)("a",{onClick:function(){var e;S.Z.confirm({title:"下载代码",centered:!0,width:600,content:"代码下载功能:将“".concat(Q,"”目录进行打包并下载"),onOk:(e=p()(u()().mark((function e(){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,U.ZP)("/api/sci/projects/".concat(c.taskId,"/download_file.json"),{method:"post",body:{autoDownload:!0},headers:{responseType:"arraybuffer",Accept:"application/vnd.ms-excel;charset=utf-8"}});case 2:return e.abrupt("return",!0);case 3:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},className:"file-item action",title:"下载文件",children:[" ",(0,H.jsx)("i",{className:"iconfont icon-xiazai3"}),"下载文件"]}),(0,H.jsxs)("a",{onClick:function(){var e,n;null===(e=k.current)||void 0===e||null===(n=e.startScreenRecord)||void 0===n||n.call(e)},className:"file-item action",title:"屏幕录制",children:[" ",(0,H.jsx)("i",{className:"iconfont icon-jiaruketang1"}),"屏幕录制"]}),(0,H.jsxs)("a",{className:"file-item action w100",title:"ssh直连",children:[" ",(0,H.jsx)("i",{className:"iconfont icon-wodegongzuotai"}),(0,H.jsx)(B.Z,{align:"middle",className:"w100",children:(0,H.jsx)(Z.Z,{flex:"1",onClick:function(){var e=o.webssh;S.Z.info({title:"SSH直连",width:600,centered:!0,content:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(B.Z,{children:[(0,H.jsx)(Z.Z,{flex:"50px",children:"账号"}),(0,H.jsx)(Z.Z,{children:null==e?void 0:e.username})]}),(0,H.jsxs)(B.Z,{children:[(0,H.jsx)(Z.Z,{flex:"50px",children:"地址"}),(0,H.jsx)(Z.Z,{children:null==e?void 0:e.address})]}),(0,H.jsxs)(B.Z,{children:[(0,H.jsx)(Z.Z,{flex:"50px",children:"端口"}),(0,H.jsx)(Z.Z,{children:null==e?void 0:e.servicePort})]}),(0,H.jsxs)(B.Z,{children:[(0,H.jsx)(Z.Z,{flex:"50px",children:"密码"}),(0,H.jsx)(Z.Z,{children:null==e?void 0:e.password})]})]})})},children:(0,H.jsx)(C.ZP,{type:"text",loading:g,children:(0,H.jsx)("span",{style:{color:"#ddd",marginLeft:-11},children:"ssh直连"})})})})]}),(s||"webssh"===o.mirror_type)&&(0,H.jsxs)("a",{className:"file-item action w100",title:"服务预览",children:[" ",(0,H.jsx)("i",{className:"iconfont icon-suanfasheji"}),(0,H.jsxs)(B.Z,{align:"middle",className:"w100",children:[(0,H.jsx)(Z.Z,{flex:"1",onClick:W,children:(0,H.jsx)(C.ZP,{type:"text",loading:b,children:(0,H.jsx)("span",{style:{color:"#ddd",marginLeft:-11},children:"服务预览"})})}),(0,H.jsxs)(Z.Z,{children:[(0,H.jsx)("a",{href:"javascript:;",onClick:W,className:"c-blue",children:"端口号"})," ",(0,H.jsx)(D.Z,{onChange:function(e){return m(e.target.value)},style:{width:50},value:f})]})]})]}),r&&(0,H.jsxs)("a",{id:"reset-task",onClick:function(){var e;S.Z.confirm({title:"重启云主机",icon:(0,H.jsx)(P.Z,{}),content:"您确定要重启云主机吗?",centered:!0,okText:"确定",cancelText:"取消",onOk:(e=p()(u()().mark((function e(){var n;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,R.Jd)({identifier:c.taskId});case 2:return 0===(null==(n=e.sent)?void 0:n.status)&&N.ZP.info("重启成功"),e.abrupt("return","");case 5:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},className:"file-item action",title:"重启云主机",children:[" ",(0,H.jsx)(T.Z,{style:{marginRight:21,color:"#FFF"},className:"c-white font16"}),"重启云主机 "]}),t?(0,H.jsx)(I.CopyToClipboard,{text:t,onCopy:function(){return N.ZP.success("复制成功")},children:(0,H.jsxs)("a",{id:"copy-git",title:"复制版本库地址",className:"file-item action",children:[" ",(0,H.jsx)("i",{className:"iconfont icon-fuzhibanbenkudizhi1"}),"复制版本库地址 "]})}):null]})]}),(0,H.jsx)(M,{ref:k})]})},z=t(77818),G=t(6848),V=t(27092),J={flex_box_center:"flex_box_center___ayVLf",flex_space_between:"flex_space_between___pLloZ",flex_box_vertical_center:"flex_box_vertical_center___eX0c1",flex_box_center_end:"flex_box_center_end___KU45M",flex_box_column:"flex_box_column___cZiLo",wrap:"wrap___x0TPJ",list:"list___Bn7Fe",page:"page___zVCLY"},K=null!==(a=(0,O.oP)())&&void 0!==a&&a.homework_common_id?{homework_common_id:null===(r=(0,O.oP)())||void 0===r?void 0:r.homework_common_id}:{};function X(e,n,t){return(0,U.U2)("tasks/".concat(e,"/star.json"),{star:t,shixun_id:n})}function q(e,n){return(0,U.U2)("tasks/".concat(e,"/rep_content.json"),g()(g()({},n),K))}function Y(e,n){return(0,U.v_)("myshixuns/".concat(e,"/update_file.json"),n)}function $(e,n){return(0,U.v_)("myshixuns/".concat(e,"/reset_repository.json"),n)}function ee(e){return(0,U.v_)("tasks/".concat(e,"/plus_or_cancel_praise.json"))}function ne(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,U.v_)("myshixuns/".concat(e,"/repository.json"),n)}function te(e){return ae.apply(this,arguments)}function ae(){return(ae=p()(u()().mark((function e(n){var t;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,U.v_)("/sci/projects/".concat(n,"/delete_pod.json"));case 2:if(!((null==(t=e.sent)?void 0:t.status)>=0)){e.next=5;break}return e.abrupt("return",(0,U.v_)("/sci/projects/".concat(n,"/start_environment.json"),K));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function re(e,n,t){return(0,U.v_)("tasks/".concat(e,"/set_games_status.json"),{result:n,data:t})}function se(e){return(0,U.v_)("/sci/projects/".concat(e,"/extend_release.json"))}function ie(e,n){return(0,U.v_)("/sci/projects/".concat(e,"/save_mirror.json"),g()({},n))}var oe=["userDetail","user","globalSetting","loading","dispatch","onClose","shixun"],ce=(0,w.connect)((function(e){var n=e.user,t=e.userDetail,a=e.loading;return{user:n,userDetail:t,shixunsDetail:e.shixunsDetail,globalSetting:e.globalSetting,loading:a.models.index}}))((function(e){e.userDetail,e.user,e.globalSetting,e.loading,e.dispatch,e.onClose,e.shixun;var n=x()(e,oe),t=(0,w.useParams)(),a=(0,A.useState)([]),r=h()(a,2),s=r[0],o=r[1],c=(0,A.useState)(""),l=h()(c,2),d=l[0],f=l[1],m=(0,A.useState)(0),v=h()(m,2),j=v[0],y=v[1],b=(0,A.useState)(g()({page:1,limit:20},t)),_=h()(b,2),S=_[0];_[1],(0,A.useCallback)((function(){return n.visible}),[n.visible]);(0,A.useEffect)((function(){S.page=1,C()}),[n.visible]);var C=function(){var e=p()(u()().mark((function e(){var n;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a=t.taskId,(0,U.U2)("sci/projects/".concat(a,"/get_data_sets.json"));case 2:(n=e.sent)&&(o(i()(n.data_sets)),y(n.data_sets_count),f(n.folder_name));case 4:case"end":return e.stop()}var a}),e)})));return function(){return e.apply(this,arguments)}}();return(0,H.jsxs)("div",{style:{height:"calc(100vh - 51px)",padding:"20px 15px"},children:[(0,H.jsx)("div",{className:"c-grey-999 font14 ml5 mb5",children:"数据集"}),(0,H.jsxs)("dl",{className:J.list,children:[(0,H.jsx)(G.Z,{title:d,children:(0,H.jsx)("dt",{className:"c-white",children:d})}),(0,H.jsx)("dd",{children:(0,H.jsx)(I.CopyToClipboard,{text:d,onCopy:function(){return N.ZP.success("复制成功")},children:(0,H.jsx)("span",{className:"".concat(J.copy," current"),children:"点击复制"})})})]}),(0,H.jsx)("div",{className:"c-grey-999 font14 ml5 mb5",children:"文件路径"}),null==s?void 0:s.map((function(e,n){return(0,H.jsxs)("dl",{className:J.list,children:[(0,H.jsx)(G.Z,{title:e.filename,children:(0,H.jsx)("dt",{className:"c-white",children:e.filename})}),(0,H.jsx)("dd",{children:(0,H.jsx)(I.CopyToClipboard,{text:e.file_path,onCopy:function(){return N.ZP.success("复制成功")},children:(0,H.jsx)("span",{className:"".concat(J.copy," current"),children:"点击复制"})})})]})})),(0,H.jsx)("div",{className:"tc",children:(0,H.jsx)(V.Z,{onChange:function(e){S.page=e,C()},className:J.page,size:"small",total:j,pageSize:S.limit,hideOnSinglePage:!0})})]})})),le=t(50021),ue=t(13275),de=t(97960),pe=b.Z.Countdown;var fe=function(e){var n=e.mirror_description,t=e.difficulty,a=e.git_url,r=e.vnc_url,s=e.window_vnc_url,i=e.linux_vnc,o=(e.isNotice,e.user,e.game,e.shixun),c=void 0===o?{}:o,l=e.taskData,d=void 0===l?{}:l,f=e.resetVncLoading,m=(e.onUpdateCostTime,e.lastedGetTaskInfoTime,e.onShowNotice,e.onResetGitCode),x=e.onResetVnc,v=(e.onBack,e.onAddVncTime),j=(e.onUpdateCode,e.unity_3d_routes),b=e.remaining_time,B=(e.st,(0,w.useSearchParams)()),Z=h()(B,1)[0],T=c.name,I=(c.identifier,c.task_pass),R=c.test_set_permission,F=(0,A.useState)(!1),L=h()(F,2),U=L[0],O=L[1],Q=(0,A.useState)(!1),M=h()(Q,2),z=M[0],G=M[1],V=(0,A.useState)({}),J=h()(V,2),K=J[0],X=(J[1],(0,A.useState)(!1)),q=h()(X,2),Y=q[0],$=q[1],ee=(0,A.useState)(null),ne=h()(ee,2),te=(ne[0],ne[1],(0,A.useState)(1800)),ae=h()(te,2),re=ae[0],se=ae[1],oe=(0,A.useState)(!1),fe=h()(oe,2),me=(fe[0],fe[1],(0,A.useState)(!1)),xe=h()(me,2),ve=xe[0],ge=xe[1],Ae=((0,w.useLocation)().query,(0,w.useParams)()),we=(0,A.useState)(!1),je=h()(we,2),ye=je[0],be=je[1],_e=_.Z.useForm(),Se=h()(_e,1)[0],Ce=(0,A.useMemo)((function(){return Date.now()+b}),[b]);(0,A.useEffect)((function(){Y||setTimeout((function(){$(!0)}),6e4)}),[Y]),(0,A.useEffect)((function(){le.Z.subscribe("update-windows-time",(function(e){se(parseInt(b/1e3))})),se(b/1e3)}),[]),(0,A.useEffect)((function(){var e;return"exercises"===Z.get("type")&&null!=K&&null!==(e=K.exercise)&&void 0!==e&&e.screen_open&&(de.U.forEach((function(e,n){document.addEventListener(e,ke,!1),document.addEventListener("blur",ke,!1)})),window.focus(),window.onblur=function(){(0,ue.vp)()&&(ke(),(0,ue.BU)())}),function(){de.U.forEach((function(e,n){document.removeEventListener(e,ke,!1)}))}}),[K]);var ke=function(e){window.parent.postMessage("backExercise","*"),"back"!==e&&(0,ue.BU)()};function Ne(){O(!1),G(!1)}function De(){(0,w.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),w.history.replace("/innovation/project/detail/".concat(Ae.taskId))}function Ee(){f||x()}var Be={task_pass:I,test_set_permission:R,mirror_description:n,difficulty:t,resetVncLoading:f,git_url:a,onVncAction:function(e){var n,t;Ne(),"reset-task"===e&&(f||S.Z.confirm({title:"重置环境",icon:(0,H.jsx)(P.Z,{}),content:"是否确定重置环境?",centered:!0,okText:"确定",cancelText:"取消",onOk:function(){Ee(),$(!1)}})),"reset-code"===e&&(f||S.Z.confirm({title:"恢复初始代码",icon:(0,H.jsx)(P.Z,{}),content:"您在本文件中修改的内容将丢失,是否确定重新加载初始代码?",centered:!0,okText:"确定",cancelText:"取消",onOk:m})),"full-screen"===e&&((0,ue.vp)()?(0,ue.BU)():(0,ue.Dj)(null===(n=document)||void 0===n||null===(t=n.getElementById)||void 0===t?void 0:t.call(n,"task-right-panel"))),"show-clipboard-box"===e&&le.Z.publish("show-clipboard-box")},window_vnc_url:s,linux_vnc:i,vnc_url:r,shixun:c,unity_3d_routes:j},Ze=(0,A.useCallback)((function(){return re?(console.log("VncTimer:",re),(0,H.jsx)(he,{defaultTime:re,onAddVncTime:v,onReset:Ee,toShixun:De,title:""})):null}),[re]);return(0,A.useEffect)((function(){ve&&Se.setFieldsValue({name:"",version:"",description:""})}),[ve]),(0,H.jsxs)("div",{className:"task-header-container",children:["exercises"!==Z.get("type")&&(0,H.jsx)(H.Fragment,{children:d.name}),(0,H.jsx)("h2",{className:"shixun-info",children:T}),(0,H.jsx)(H.Fragment,{children:(0,H.jsxs)("div",{className:"flex-container",children:[(0,H.jsxs)(H.Fragment,{children:[s&&(0,H.jsx)(w.Link,{onClick:function(e){e.preventDefault(),le.Z.publish("send-ctrl-alt-delete")},className:"c-grey-c mr20",children:"发送CTRL+ALT+DELETE"}),Ze()]}),(0,H.jsx)("i",{className:"iconfont icon-shijian1"}),(0,H.jsx)(pe,{valueStyle:{color:"white",fontSize:"12px"},style:{marginRight:20,marginLeft:5},value:Ce}),(0,H.jsxs)("a",{className:"btn-vnc",title:"工具栏",onClick:function(){O(!U)},children:[(0,H.jsx)("img",{alt:"tool",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAABZ0lEQVRYR+2YrU7FQBBGzzwEPAMSi+M6MARDggNJgiIkWLiSBIFCkyCuQECCQFIcEstb8AYf2ZvmhpbuT9ttUpJWdma+OZ3O7k5rRC5Jh8ARsBPzjdhvgXczew75WSyJpCdgP+aXaP8ws63OQJK2gbdSYJ6Y1Od2WRpmZlb4nIIVqgEFhUKwbXTGByRpDzgBdnu+kr7hD8CLSboGLvqqZYp/dEDK1LR9mZZNXwEys6u+ql3iJbm8E5C3eFOFYn2VrUKS1oADYL1M+gW8mtl3DOK3PQuQpE1gAWzUkn8CZ6Hzqg6bC+gcuPFU4s7MTlOrlAvITQFuGijMbOaSS/pzLwXKB+QdCQKiXqAUkJqP06rs1B00liFNFeqqVQEaXYXmbc6ypn7J3UNtgUa3ysa1D5XLfDw7dedl1BCYZWOcgHJWIKb1f15Z7EkGtq+G/NXEP3DCFPl79xnkTln3u+U4JWJAH/czo/gBVkc5pun3NGoAAAAASUVORK5CYII=",width:16}),"工具栏"]}),(0,H.jsxs)("a",{className:"btn-vnc",title:"数据集",onClick:function(){return G(!0)},children:[(0,H.jsx)("img",{alt:"tool",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABqVJREFUeF7tm3eoXUUQxr9REXtXbIiKARs2xAKiBlGx+4cNUaOoCWKikChqjMbYYksUC5ZIiCLYwBYldkVFUOwVC/YC9ooF8ZMvzD7Hk3PvO+eePfc94Q5ceLx7zu7Mb2dnd2fnGvosJI8FsAuA1QC8CWCumb3dZzWGurN+dUxyVwCnANin0Of3AC7Tx8z+7Jc+qZ/WAZBczw2fFIx7CcBPAAQlyYsO4bZ+QmgVAMmT3fh13aivAFyuj5n9QfJIAJMBbBWMvgPALDN7vh8gWgFAcj83fOdgxNVu+AfRMJJL+rMCsap/91eYFt+2CSIrAJKbuTFHB6XvdsOf7mYIyTEApgCYEJ57x71hTlsQsgAgubQrryC3oisrF5ar15rTJHfzabF3MHqBx4fHc4NoDIDk4T7qW7tyn7vhs5ooS/IYB7F5aOcaB/FRk7bjuz0DILmDj/pBocErAFxgZt/kUJCk9DvLQSTP+sKnxewcfdQGQHJ1H3G5+2KuxJ0ALjSzV3IoVWyD5PoApgHQJirJM+4N9zbpsxYAkgpQMnwj7/RZADPN7P4mSlR9l6RWlTMB7BHeudlBvF61ndpTgOTu7u57+ssfA7jIzK7rpdOm7/j+YSqAjb2tn33Z1P7h1zrtd/UAkhv6iJ/gjWp9vhjAOWamv0dUSGpanA5gWVfkVfeGW6oq1hEASbm61uU1vbGbAMwwsw+rNt6P50iuA2A6gONDf9p76GyhKdpVFgFAci0A1wPQbk7ymBvedSMzXEdtf09yR3lmIT4cYmYK0B2lDICoqTHtwjTit7atfM72SR7mHpHiwxgze79TH/8BQFKHlk/Dwzqhab73Jco3BUFyLzd++9DWBDO7oSoAHU+fKHl4vnuDgIw6Ibmpu//BZcqZWcdYV/SACGCG04xtiqQ84svRQIGkor/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kmer/KZgnS5Y0zxvdF1WRi0bgABCBZaqMNVP45Ko8kwgFtbrFQH4T2y0yVqhoKT+J3d/OduQFxrKDiCAUEWHPGKD0OccMxsfAfiIx98W6fGn3PBGpfBVoLUGwEdadcYpPixeQSH9EkQjXhb1K7xe/5FWAQRv2M5BHNpBRRU5pXneuLSmDoa+AAggVPoij1AtchJdlWvUh2oG6hjQ9Nm+AgggVJGqz4KRMjzpMiIAmo5azvcHAHLS/D+29Q9mll9ufOAEPQAAAABJRU5ErkJggg==",width:18}),"数据集"]})]})}),(0,H.jsx)(C.ZP,{type:"primary",disabled:!Y,className:"save-innovation",onClick:p()(u()().mark((function e(){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ge(!0);case 1:case"end":return e.stop()}}),e)}))),children:"保存镜像"}),(0,H.jsx)("a",{className:"btn-out",onClick:function(){S.Z.confirm({title:"退出",icon:(0,H.jsx)(P.Z,{}),content:"您确定要退出制作镜像吗?",centered:!0,okText:"确定",cancelText:"取消",onOk:De})},title:"退出实训",children:(0,H.jsx)("i",{className:"iconfont icon-kaiguan"})}),(0,H.jsx)(y.Z,{children:(0,H.jsx)(k.Z,{rootClassName:"setting-drawer",title:null,placement:"right",closable:!1,open:U,onClose:Ne,children:(0,H.jsx)(W,g()(g()({},Be),{},{taskData:d}))})}),(0,H.jsx)(y.Z,{children:(0,H.jsx)(k.Z,{rootClassName:"setting-drawer",title:null,placement:"right",closable:!1,open:z,onClose:Ne,style:{height:"100%"},children:(0,H.jsx)(ce,{})})}),(0,H.jsx)(S.Z,{title:"保存镜像",open:ve,okButtonProps:{loading:ye},onCancel:function(){ge(!1)},onOk:function(){Se.submit()},children:(0,H.jsxs)("div",{children:[(0,H.jsx)("p",{style:{color:"#6B758B"},children:"把当前的环境存为一个新的镜像。确定保存后,在我的镜像可以看到该镜像的保存状态。"}),(0,H.jsxs)(_.Z,{labelCol:{span:4},wrapperCol:{span:20},form:Se,onFinish:function(){var e=p()(u()().mark((function e(n){var t;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return be(!0),e.next=3,ie(Ae.taskId,n);case 3:0==(null==(t=e.sent)?void 0:t.status)&&(N.ZP.info("保存成功"),ge(!1)),-5===(null==t?void 0:t.status)&&S.Z.confirm({title:"覆盖镜像提示",content:"系统检测到你的【镜像列表】存在同名且同版本号的镜像, 您确定要覆盖原来的镜像?",okText:"确认",cancelText:"取消",onOk:function(){var e=p()(u()().mark((function e(){var t;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ie(Ae.taskId,g()({is_cover:!0},n));case 2:0==(null==(t=e.sent)?void 0:t.status)&&(N.ZP.info("覆盖成功"),ge(!1));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),be(!1);case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,H.jsx)(_.Z.Item,{label:"镜像名称",name:"name",rules:[{required:!0,message:"请输入镜像名称"},{pattern:/^[a-z0-9_]+$/,message:"只允许输入数字或小写字母"}],children:(0,H.jsx)(D.Z,{type:"text",maxLength:60})}),(0,H.jsx)(_.Z.Item,{label:" 版本号",name:"version",rules:[{required:!0,message:"请输入版本号"}],children:(0,H.jsx)(E.Z,{style:{width:"100%"}})}),(0,H.jsx)(_.Z.Item,{label:"镜像描述",name:"description",rules:[{required:!0,message:"请输入镜像描述"}],children:(0,H.jsx)(D.Z.TextArea,{})})]})]})})]})};function he(e){var n=e.onAddVncTime,t=e.onReset,a=e.toShixun,r=(e.title,e.defaultTime),s=(0,A.useState)(r),i=h()(s,2),o=i[0],c=i[1],l=(0,A.useState)(!1),d=h()(l,2),f=d[0],m=d[1];function x(){return(x=p()(u()().mark((function e(){var a;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m(!1),!(o>0)){e.next=8;break}return e.next=4,n();case 4:a=e.sent,c((null==a?void 0:a.remaining_time)/1e3),e.next=10;break;case 8:c(r),t();case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,z.Z)((function(){c(o-1)}),o>0?1e3:null),(0,A.useEffect)((function(){300===o&&m(!0)}),[o]),(0,A.useEffect)((function(){r<300&&m(!0),c(r)}),[r]),(0,H.jsx)(A.Fragment,{children:(0,H.jsx)(y.Z,{children:(0,H.jsx)(S.Z,{title:[(0,H.jsx)(P.Z,{className:"modalIconYellow"}),0!==o?"实验环境延时提醒":"实验环境重置提醒"],closable:!1,centered:!0,open:f,onOk:function(){return x.apply(this,arguments)},onCancel:function(){0!==o?m(!1):a()},okText:0!==o?"立即延长":"重置",cancelText:0!==o?"不需要":"退出",children:0!==o?"当前实验环境将于 ".concat(Math.round(o/60)," 分钟后关闭,需要延长使用时间吗?"):"由于长时间没有使用,资源已经被回收。如有需要,可以重置实验环境。"})})})}var me=t(38318);function xe(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=[],a=0;a0||r.target.offsetWidth>0){var s=Se(r.target.offsetWidth,r.target.offsetHeight,e),i=h()(s,2),o=i[0],c=i[1];console.log("cols, rows",o,c),le.Z.publish("ssh-xterm-resize",{columns:o,rows:c,width:r.target.offsetWidth,height:r.target.offsetHeight}),e.resize(o,c);var l=we.Base64.decode("IA=="),u=we.Base64.decode("CBtbSw==");e.write(l),e.write(u)}}}catch(e){a.e(e)}finally{a.f()}}));return t.observe(n),t}(e,u.current);return function(){null==e||e.dispose(),null==n||n.unobserve(u.current)}}}),[o,u.current]),(0,A.useEffect)((function(){if(s&&o){var e=setInterval((function(){d.current&&d.current.send(JSON.stringify({tp:"h"}))}),3e4),a=le.Z.subscribe("create-socket",(function(a){var r;t==a&&(d.current&&1===d.current.readyState?s.focus():(r=new WebSocket(o),console.log("socketInstance:",o),d.current=r,r.onopen=function(){var e=s.element.parentElement;if(e){var t=e.offsetWidth,a=e.offsetHeight;console.log("init",{tp:"init",data:g()(g()({},n),{},{secret:c,width:t,height:a,rows:s.rows,columns:s.cols})}),r.send(JSON.stringify({tp:"init",data:g()(g()({},n),{},{secret:c,width:t,height:a,rows:s.rows,columns:s.cols})}))}s.focus()},r.onerror=function(e){console.log("------in socket error----",e,r,o)},r.onmessage=function(e){p.current||(s.write("\r"),setTimeout((function(){}),1e3)),p.current=!0,console.log("event:",e);var n=we.Base64.decode(e.data.toString()),t=s._core._renderService.dimensions.actualCellWidth||9.5;console.log("data:",n,t,s),s.write(n)},r.onclose=function(n){e&&clearInterval(e),s.write("\r\nconnection closed")}),s.focus())})),r=le.Z.subscribe("close-socket",(function(e){t===e&&(d.current&&(d.current.close(),p.current=!1,s.clear()),d.current=null)})),i=le.Z.subscribe("ssh-xterm-resize",(function(e){d.current&&1===d.current.readyState&&d.current.send(JSON.stringify({tp:"resize",data:g()({},e)}))})),l=le.Z.subscribe("ssh-add-connect-time",(function(){d.current&&1===d.current.readyState&&d.current.send(JSON.stringify({tp:"overtime"}))}));return function(){r(),a(),i(),l(),d.current&&(d.current.close(),p.current=!1)}}}),[s,o,l]),(0,H.jsx)("div",{className:ye,children:(0,H.jsx)("div",{ref:u,className:be,children:o?null:(0,H.jsx)("p",{style:{color:"#fff"},children:"正在连接命令行服务..."})})})},ke=t(93948),Ne=t(62013),De=D.Z.TextArea,Ee=function(e){var n=e.onCancel,t=e.onSave,a=e.content,r=(0,A.useState)(a),s=h()(r,2),i=s[0],o=s[1];return(0,A.useEffect)((function(){o(a)}),[a]),(0,H.jsxs)("div",{className:"clipboard-box",children:[(0,H.jsx)("h3",{children:"实验环境剪切板:"}),(0,H.jsx)(De,{value:i,onChange:function(e){o(e.target.value)},className:"clipboard"}),(0,H.jsxs)("p",{children:[" ",(0,H.jsx)("b",{children:" 1.从外部复制内容到实验环境内: "})," 粘贴内容到上面文本框,点击保存,然后在实验环境中进行粘贴。 "]}),(0,H.jsxs)("p",{children:[" ",(0,H.jsx)("b",{children:" 2.获取实验环境中的内容: "})," 请先在环境中复制内容,复制动作完成后内容会显示在上面文本框,然后在上面文本框中再次复制。 "]}),(0,H.jsxs)("div",{className:"btn-action-container",children:[(0,H.jsx)(C.ZP,{type:"ghost",onClick:n,style:{marginRight:10},children:"取消"}),(0,H.jsx)(C.ZP,{type:"primary",onClick:function(){t(i)},children:"保存"})]})]})},Be=t(42141),Ze="selectImage___t63KU",Te="container___WChhl",Ie=t(61186),Re=t.n(Ie);Be.Z;function Pe(e){e||(e=window.location.search);var n=e.substr(1),t={};return n.split("&").forEach((function(e){var n=e.split("=");t[n[0]]=decodeURIComponent(n[1])})),t}var Fe={loading:!0,isLarge:!1,showClipBoardBox:!1,transferContent:"",mes:"实验环境准备中"},Le=function(e){return e[e.SET_LOADING=0]="SET_LOADING",e[e.SET_IS_LARGE=1]="SET_IS_LARGE",e[e.SET_MES=2]="SET_MES",e[e.SET_STATE=3]="SET_STATE",e[e.SHOW_CLIPBOARD_BOX=4]="SHOW_CLIPBOARD_BOX",e[e.SET_TRANSFER_CONTENT=5]="SET_TRANSFER_CONTENT",e[e.UPDATE_ALL=6]="UPDATE_ALL",e}(Le||{});function Ue(e,n){switch(n.type){case Le.SET_LOADING:return g()(g()({},e),{},{loading:n.payload});case Le.SET_IS_LARGE:return g()({},g()(g()({},e),{},{isLarge:n.payload}));case Le.SET_MES:return g()(g()({},e),{},{mes:n.payload});case Le.SET_STATE:return g()(g()({},e),n.payload);case Le.SET_TRANSFER_CONTENT:return g()(g()({},e),{},{transferContent:n.payload});case Le.SHOW_CLIPBOARD_BOX:return g()(g()({},e),{},{showClipBoardBox:n.payload});case Le.UPDATE_ALL:return g()({loading:e.loading},n.payload);default:throw new Error}}var Oe=function(e){var n,t=e.vnc_url,a=e.window_vnc_url,r=e.linux_vnc,s=e.virtual_machine,i=(e.taskId,e.taskData),o=(0,A.useRef)(),c=(0,A.useRef)(),l=(0,A.useRef)(),d=(0,A.useRef)(),f=(0,A.useState)(),m=h()(f,2),x=m[0],v=m[1],g=(0,A.useState)(!1),b=h()(g,2),_=b[0],k=b[1],D=(0,A.useReducer)(Ue,Fe),E=h()(D,2),T=E[0],I=E[1],R=(0,A.useState)(0),P=h()(R,2),F=P[0],L=P[1],U=T.mes,O=T.loading,Q=T.showClipBoardBox,M=T.isLarge,W=T.transferContent,z=(0,A.useState)(0),G=h()(z,2),V=G[0],J=G[1],K=(0,A.useRef)();(0,w.useParams)();(0,A.useEffect)((function(){return window.addEventListener("visibilitychange",q),function(){var e,n;null===(e=c.current)||void 0===e||null===(n=e.disconnect)||void 0===n||n.call(e),window.removeEventListener("visibilitychange",q)}}),[]),(0,A.useEffect)((function(){return window.sessionStorage.imageId=x,function(){window.sessionStorage.removeItem("imageId")}}),[x]);var X=function(){var e,n;"rdp"===(null==i||null===(e=i.shixun)||void 0===e?void 0:e.windows_connection_mode)?setTimeout((function(){ee()}),1500):void 0!==(null==l||null===(n=l.current)||void 0===n?void 0:n.resizeSession)&&((0,ue.vp)()?l.current.resizeSession=!0:setTimeout((function(){l.current.resizeSession=!1}),900))};(0,A.useEffect)((function(){return window.addEventListener("visibilitychange",q),document.addEventListener((0,ue.gH)(),X),function(){document.removeEventListener((0,ue.gH)(),X),window.removeEventListener("visibilitychange",q)}}),[]);var q=function(e){if("visible"===document.visibilityState){var n=sessionStorage.vncPageLeaveTime;Re()(new Date).diff(Re()(n),"minutes")>2&&L((new Date).getTime()),sessionStorage.removeItem("vncPageLeaveTime")}else sessionStorage.vncPageLeaveTime=new Date};function Y(){I({type:Le.SHOW_CLIPBOARD_BOX,payload:!1})}function $(e){var n;return o.current&&(n=new _e.Z((function(n){var t,a=Ae()(n);try{for(a.s();!(t=a.n()).done;){var r,s,o=t.value;if("rdp"===(null==i||null===(r=i.shixun)||void 0===r?void 0:r.windows_connection_mode)&&ee(),o.target.offsetHeight>0||o.target.offsetWidth>0)null==e||null===(s=e._eventHandlers)||void 0===s||s.windowResize()}}catch(e){a.e(e)}finally{a.f()}}))).observe(o.current),n}function ee(){var e;e=Math.min(document.getElementById("task-right-panel").clientWidth/1920,document.getElementById("task-right-panel").clientHeight/1260),d.current.parentElement.className="wh1080p",d.current.parentElement.style.cssText="transform:scale(".concat(e,");transform-origin:center center"),o.current.style.cssText="translate(-50%, -50%) scale("+e+")"}(0,A.useEffect)((function(){var e,n;function c(e){a&&(N.ZP.warning("由于长时间未操作,连接失效,正在重新连接Windows VNC服务"),I({type:Le.SET_LOADING,payload:!0}),L(F+1))}function d(){J(100),clearTimeout(K.current),setTimeout((function(){var n;null===(n=e)||void 0===n||null===(n=n._eventHandlers)||void 0===n||n.windowResize(),I({type:Le.SET_LOADING,payload:!1})}),1300),le.Z.subscribe("send-ctrl-alt-delete",(function(){var n;null===(n=e)||void 0===n||n.sendCtrlAltDel()}))}function f(e){var n=e.detail.text.replace(/\\u([\dA-Za-z]{4})/g,(function(e,n){return String.fromCharCode(parseInt("0x"+n))}));I({type:Le.SET_TRANSFER_CONTENT,payload:n})}if(le.Z.subscribe("reset-linux-windows-loading",(function(){I({type:Le.SET_LOADING,payload:!0})})),le.Z.subscribe("reset-linux-windos-vnc",(function(){L(F+1)})),(a||t||r||s&&x)&&o.current){var h;clearTimeout(K.current),"rdp"===(null==i||null===(h=i.shixun)||void 0===h?void 0:h.windows_connection_mode)&&ee(),new Promise(p()(u()().mark((function t(){var r,s,p,h,m,x,v;return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=Pe(),"",h=new URL(decodeURIComponent(null==i?void 0:i.vnc_url)),m=h.protocol,x=h.searchParams,v=h.host,p=x.get("password"),s="".concat("https:"===m?"wss":"ws","://").concat(v,"/").concat(r.path||"websockify"),e=new Ne.Z(o.current,s,{credentials:{password:p},wsProtocols:["binary"],resize:"scale",show_dot:!0}),n=$(e),e.viewOnly=r.view_only||!1,e.scaleViewport=!!a||(r.scale||!1),e.scaleViewport=!0,e.showDotCursor=!0,e.resizeSession=!0,l.current=e,e.addEventListener("disconnect",c),e.addEventListener("connect",d),e.addEventListener("clipboard",f);case 17:case"end":return t.stop()}}),t)}))));var m=le.Z.subscribe("vnc-reseting",(function(){J(0),I({type:Le.SET_STATE,payload:{loading:!0,mes:"实验环境重置中"}})})),v=le.Z.subscribe("vnc-enlarge",(function(e){})),g=le.Z.subscribe("show-clipboard-box",(function(){I({type:Le.SHOW_CLIPBOARD_BOX,payload:!0})}));return J(0),function(){var t,a,r,s;null===(t=e)||void 0===t||t.removeEventListener("disconnect",c),null===(a=e)||void 0===a||a.removeEventListener("connect",d),null===(r=e)||void 0===r||r.removeEventListener("clipboard",f),m(),v(),g(),null===(s=n)||void 0===s||s.unobserve(o.current)}}}),[t,a,r,F,x]),(0,A.useEffect)((function(){var e,n,t;s&&1===(null==i||null===(e=i.shixun_virtual_templates)||void 0===e?void 0:e.length)?v(null==i||null===(t=i.shixun_virtual_templates)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.template_id):s&&(null==i||null===(n=i.shixun_virtual_templates)||void 0===n?void 0:n.length)>1&&k(!0)}),[s]),(0,A.useEffect)((function(){0==V&&(clearTimeout(K.current),ne())}),[V]);var ne=function e(){V>99?V=99:(V+=1,K.current=setTimeout((function(){e()}),1500)),V<100&&J(V)},te=(0,A.useMemo)((function(){var e;return O?"none":r||s||a&&"rdp"===(null==i||null===(e=i.shixun)||void 0===e?void 0:e.windows_connection_mode)?"block":"none"}),[r,O,s,a]);return(0,H.jsxs)(A.Fragment,{children:[_&&(0,H.jsx)("div",{className:Ze,children:(0,H.jsxs)("section",{className:Te,children:[(0,H.jsx)("h1",{children:"选择角色"}),(0,H.jsx)("aside",{children:null==i||null===(n=i.shixun_virtual_templates)||void 0===n?void 0:n.map((function(e,n){return(0,H.jsxs)(B.Z,{align:"middle",children:[(0,H.jsx)(Z.Z,{flex:"1",children:e.template_name}),(0,H.jsx)(Z.Z,{children:(0,H.jsx)(C.ZP,{type:"primary",onClick:function(){v(e.template_id),k(!1)},children:"开始实验"})})]},n)}))})]})}),M&&(0,H.jsx)("a",{className:"btn-vnc-resize",onClick:function(){I({type:Le.SET_IS_LARGE,payload:!M})},children:(0,H.jsx)("i",{className:"iconfont icon-tuichuquanping"})}),(0,H.jsx)("div",{style:{width:"100%",height:"calc(100% - 50px)",overflow:"hidden",position:"absolute",display:"block"===te?"flex":"none",alignItems:"center",justifyContent:"center",zIndex:6},children:(0,H.jsx)("div",{children:(0,H.jsx)("iframe",{style:{position:M?"fixed":"absolute",left:0,top:M?54:40,width:"100%",height:"calc(100% - ".concat(M?"100px":"45px",")")},frameBorder:"0",ref:d,allowFullScreen:!0})})}),(0,H.jsxs)("div",{style:{position:M?"fixed":"absolute",left:0,top:0,zIndex:5,width:"100%",height:"calc(100% - ".concat(M?"100px":"0",")")},className:"".concat(a?"vnc-panel-wrapper-windows":"vnc-panel-wrapper"," ").concat(M?"full-screen":""),children:[O?(0,H.jsx)(j.Z,{message:U,style:{color:"#0152d9"},children:(0,H.jsx)("div",{className:"tc",style:{width:500,margin:"0 auto",color:"#FFF"},children:(0,H.jsx)(ke.Z,{percent:V,format:function(e){return(0,H.jsxs)("span",{className:"c-white",children:[e,"%"]})}})})}):null,(0,H.jsx)("div",{ref:o,className:"vnc-panel ".concat(O?"hidden zIndexf1":"animated fadeIn")})]}),(0,H.jsx)(y.Z,{children:(0,H.jsx)(S.Z,{title:"复制粘贴",centered:!0,maskClosable:!1,open:Q,onCancel:Y,footer:null,children:(0,H.jsx)(Ee,{onCancel:Y,onSave:function(e){var n;null===(n=l.current)||void 0===n||n.clipboardPasteFrom(e),I({type:Le.SET_TRANSFER_CONTENT,payload:e}),N.ZP.success("保存成功!你可以在实验环境中粘贴该内容"),Y()},content:W})})})]})},He=function(e){var n=e.taskData,t=(e.evaluateLoading,e.evaluateMessage,e.language,e.onEval,n.vnc_url),a=(n.shixun,n.test_sets,n.test_sets_count,n.sets_error_count,n.last_compile_output,n.game,n.allowed_unlock,n.user,(0,A.useState)(!1)),r=h()(a,2),s=r[0],i=(r[1],(0,A.useState)(!1)),o=h()(i,2),c=o[0],l=o[1];return console.log("vnc_url:",t),(0,H.jsxs)(A.Fragment,{children:[(0,H.jsx)(Oe,{vnc_url:t,window_vnc_url:n.windows_vnc,virtual_machine:null==n?void 0:n.virtual_machine,linux_vnc:n.linux_vnc,taskData:n}),c?(0,H.jsx)("div",{className:"vnc-mask"}):null,(0,H.jsx)("div",{className:"vnc-test-list ".concat(s?"large":c?"pop":""),children:(0,H.jsx)("div",{className:"vnc-test-list-body",children:s?null:(0,H.jsx)("span",{className:"arrow-container",onClick:function(){l(!c)},children:(0,H.jsx)("i",{className:"iconfont ".concat(c?"icon-xiajiantou":"icon-shangjiantou"," ")})})})})]})},Qe="bg___xjZP4",Me="content___sS5Wc",We="rightCotainer___Z2h3Y",ze="main___t6BMk",Ge="dataSetButton___H1Oqu",Ve="dataSetText___p9NRw",Je="dataSetOpen___bT5j8",Ke=function(e,n){switch(n.type){case"MOVE_X":return g()(g()({},e),{},{moveX:n.payload});case"SET_DRAGMODULE":return g()(g()({},e),{},{showDragModule:n.payload});case"TRIGGER_RIGHT_PANEL_MASK":return g()(g()({},e),{},{showDragMask:n.payload})}},Xe=["globalSetting","loading","taskData","dispatch"],qe=(b.Z.Countdown,function(e){return e[e.LoadFail=1]="LoadFail",e[e.ReLoad=2]="ReLoad",e[e.Success=3]="Success",e}(qe||{})),Ye={moveX:"40%",showDragModule:!1,showDragMask:!1},$e=(0,w.connect)((function(e){var n=e.loading;return{globalSetting:e.globalSetting,loading:n}}))((function(e){e.globalSetting,e.loading;var n=e.taskData,t=(e.dispatch,x()(e,Xe),(0,w.useParams)(),(0,A.useRef)(),(0,A.useState)(!0)),a=h()(t,2),r=(a[0],a[1],(0,A.useState)(!1)),s=h()(r,2),i=(s[0],s[1],(0,A.useState)(0)),o=h()(i,2),c=(o[0],o[1],(0,A.useState)(0)),l=h()(c,2),d=(l[0],l[1],(0,A.useState)(!0)),f=h()(d,2),m=(f[0],f[1],(0,A.useState)(!1)),v=h()(m,2),g=(v[0],v[1],(0,A.useRef)(!0)),j=(0,A.useState)({}),y=h()(j,2),b=y[0],_=(y[1],(0,A.useState)({})),S=h()(_,2),C=(S[0],S[1],(0,A.useState)()),k=h()(C,2),N=(k[0],k[1],(0,A.useRef)(),(0,A.useState)(qe.Success)),D=h()(N,2),E=(D[0],D[1],(0,A.useState)()),B=h()(E,2),Z=(B[0],B[1],(0,A.useState)()),T=h()(Z,2),I=(T[0],T[1],(0,A.useState)(!1)),R=h()(I,2),P=R[0],F=R[1],L=(0,A.useState)(""),U=h()(L,2),O=(U[0],U[1],(0,A.useRef)(null),(0,A.useRef)({}),(0,A.useRef)(!1)),Q=(0,A.useReducer)(Ke,Ye),M=h()(Q,2),W=M[0],z=M[1];(0,A.useEffect)((function(){return window.addEventListener("message",G),function(){window.removeEventListener("message",G)}}),[]);var G=function(e){"jupytermessage"===(null==e?void 0:e.data)&&g.current&&(g.current=!1,V(),O.current||setTimeout((function(){return g.current=!0}),500))},V=function(){var e=p()(u()().mark((function e(){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,A.useEffect)((function(){function e(e){z({type:"MOVE_X",payload:e.pageX})}function n(){z({type:"TRIGGER_RIGHT_PANEL_MASK",payload:!1}),document.onselectstart=null}return W.showDragMask&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}}),[W.showDragMask]);var J="number"==typeof W.moveX&&.01!==W.moveX?"".concat(W.moveX,"px"):"40%",K="calc(100% - 4px - ".concat(J,")");return(0,H.jsx)("section",{className:Qe,style:{userSelect:W.showDragMask?"none":"unset"},children:(0,H.jsx)("section",{className:Me,style:{height:null!=b&&b.open_evaluate?"calc(100vh - 130px)":"calc(100vh - 60px)"},children:(0,H.jsx)("section",{className:We,style:{width:K},children:(0,H.jsx)("main",{className:ze,style:{height:"100%"},children:(0,H.jsxs)(A.Fragment,{children:[(0,H.jsx)("div",{className:"".concat(Ge," ").concat(P?Je:""),onClick:function(){return F(!P)},children:(0,H.jsx)("span",{className:Ve,children:"数据集"})}),(0,H.jsx)("iframe",{frameBorder:0,id:"taskJupyterIframe",width:"100%",height:"100%",allow:"geolocation; microphone; camera; midi; encrypted-media;",src:null==n?void 0:n.url})]})})})})})})),en=t(50069),nn=t(15179),tn=(t(55945),t(76710)),an="FETCH_TASK_FAILURE",rn="FETCH_TASK_SUCCESS",sn="UPDATE_TASK_DATA",on="HIDE_EVALUATE_RESULT",cn="SHOW_EVALUATE_RESULT",ln="MOVE_X",un="MOVE_Y",dn="TRIGGER_RIGHT_PANEL_MASK ",pn="SHOW_REP_loading",fn="FETCH_REP_CONTENT",hn="EDIT_REP_CONTENT",mn="SHOW_EVALUATE_LOADING",xn="HIDE_EVALUATE_LOADING",vn="SET_EVALUATE_MESSAGE",gn="SET_SHOW_DIR",An="SET_REPOS",wn="HIDE_PICTURE_VIEW",jn="SHOW_PICTURE_VIEW",yn="SHOW_NOTICE",bn="HIDE_NOTICE",_n="SET_VNC_LOADING ",Sn=["match","history"],Cn=me.Z.DirectoryTree,kn={moveX:"40%",moveY:0,loading:!0,isError:!1,taskData:{game:{}},evalData:null,lastedGetTaskInfoTime:0,codeRepData:{content:"",language:"c",currentPath:"",paths:[],lastedUpdateTime:0,loading:!1},showEvalResult:!1,showPictureView:!1,isPictureView:!1,showDragMask:!1,webDisplayUrl:"",evaluateLoading:!1,resetVncLoading:!1,evaluateMessage:"",showNotice:!1,timestamp:"",showDocuments:!1,repos:null};function Nn(e,n){switch(n.type){case ln:return g()(g()({},e),{},{moveX:n.payload});case un:return g()(g()({},e),{},{moveY:n.payload});case pn:case fn:return g()(g()({},e),{},{codeRepData:n.payload});case hn:return g()(g()({},e),{},{codeRepData:g()(g()({},e.codeRepData),n.payload)});case cn:return g()(g()({},e),{},{evaluateLoading:!1,showEvalResult:!0});case"UPDATE_TIMESTRAP":return g()(g()({},e),{},{timestamp:n.payload});case on:return g()(g()({},e),{},{showEvalResult:!1});case"FETCH_TASK_START":return g()(g()({},e),{},{loading:!0});case sn:return g()(g()({},e),n.payload);case dn:return g()(g()({},e),{},{showDragMask:n.payload});case an:return g()(g()({},e),{},{loading:!1,isError:!0});case rn:return g()(g()({},e),n.payload);case mn:return g()(g()({},e),{},{evaluateLoading:!0});case xn:return g()(g()({},e),{},{evaluateLoading:!1});case vn:return g()(g()({},e),{},{evaluateMessage:n.payload});case gn:return g()(g()({},e),{},{showDocuments:n.payload});case An:return g()(g()({},e),n.payload);case yn:return g()(g()({},e),{},{showNotice:!0});case bn:return g()(g()({},e),{},{showNotice:!1});case wn:return g()(g()({},e),{},{showPictureView:!1});case jn:return g()(g()({},e),{},{showPictureView:!0});case _n:return g()(g()({},e),{},{resetVncLoading:n.payload});default:throw new Error}}var Dn=function(e){var n=e.match,t=e.history,a=x()(e,Sn);console.log("props:",a);var r=(0,w.useParams)(),s=(0,w.useSearchParams)(),o=(h()(s,1)[0],(0,w.useLocation)().query,(0,A.useReducer)(Nn,kn)),l=h()(o,2),d=l[0],f=l[1],m=(0,A.useState)(1),v=h()(m,2),b=v[0],_=v[1],C=(0,A.useState)(r.taskId),D=h()(C,2),E=D[0],B=D[1],Z=(0,A.useRef)(),T=(0,A.useRef)(),I=(0,A.useRef)(),R=(0,A.useState)(),P=h()(R,2),F=P[0],Q=P[1],M=(0,w.useLocation)();(0,A.useEffect)((function(){console.log("_params:",r),B(r.taskId),(0,w.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1})}),[r]);d.moveX;var W=d.taskData,z=(d.moveY,d.evalData),G=(d.showEvalResult,d.codeRepData),V=d.loading,J=d.evaluateLoading,K=d.evaluateMessage,ae=d.showDocuments,ie=d.repos,oe=(d.showPictureView,d.showNotice),ce=d.webDisplayUrl,ue=d.isPictureView,de=d.resetVncLoading,pe=d.timestamp,he=d.lastedGetTaskInfoTime,me=d.showDragMask,ge=W.st,Ae=W.challenge,je=W.shixun,ye=W.is_teacher,be=W.game,_e=W.has_answer,Se=W.vnc_url,ke=W.git_url,Ne=W.user,De=W.myshixun,Ee=W.discusses_count,Be=W.user_praise,Ze=W.praise_count,Te=W.tpm_cases_modified,Ie=W.tpm_modified,Re=W.tpm_script_modified,Pe=W.mirror_name,Fe=W.mirror_description,Le=(W.tomcat_url,W.unity_3d_routes),Ue=W.with_code_file,Oe=W.unity_3d_result,Qe=(W.next_game,W.prev_game,G.currentPath),Me=G.paths,We=G.content,ze=G.language,Ge=G.lastedUpdateTime,Ve=(Ie||Re)&&0===ge,Je=(Te||Ve)&&!0===De.system_tip,Ke=((Pe||[]).indexOf("Html"),(0,A.useMemo)((function(){return!(!Qe||!Me)&&Me.indexOf(Qe)>=0}),[Qe,Me])),Xe=(0,A.useMemo)((function(){return Le&&!Ue||(null==Ae?void 0:Ae.thiry_party)||Se}),[Se,Ue,Le]);function qe(){return(qe=p()(u()().mark((function e(){var n;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,U.ZP)("/api/sci/projects/".concat(E,".json"),{method:"get"});case 2:n=e.sent,Q(n);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ye(e){return vn.apply(this,arguments)}function vn(){return(vn=p()(u()().mark((function e(n){var a,r,s;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,tn.ie)(E);case 3:if(a=e.sent,401!==(r=a.status)){e.next=10;break}return t.replace("/user/login",{from:M.pathname}),e.abrupt("return");case 10:if(-3!==r){e.next=14;break}(0,O.eF)({onCancel:function(){window.location.href="/"}}),e.next=25;break;case 14:if(403!==r){e.next=18;break}t.replace("/403"),e.next=25;break;case 18:if(404!==r){e.next=23;break}return t.replace("/404"),e.abrupt("return");case 23:s={loading:!1,isError:!1,taskData:a},n||f({type:rn,payload:s});case 25:"webssh"===a.mirror_type&&setTimeout((function(){le.Z.publish("create-socket",1)}),1e3),e.next=32;break;case 28:e.prev=28,e.t0=e.catch(0),console.log(e.t0),n||f({type:an});case 32:case"end":return e.stop()}}),e,null,[[0,28]])})))).apply(this,arguments)}(0,A.useEffect)((function(){if(Le&&Ue)return f({type:mn}),le.Z.subscribe("unity3d-load-end",(function(){f({type:xn})}))}),[E,Le,null==Ae?void 0:Ae.thiry_party,Ue,f]),(0,A.useEffect)((function(){!function(){qe.apply(this,arguments)}()}),[]),(0,A.useEffect)((function(){var e=!1;return Ye(e),function(){e=!0}}),[f,E]),(0,A.useEffect)((function(){var e=!1;function n(){return(n=p()(u()().mark((function n(){var t,a,r,s,i,o;return u()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(f({type:pn,payload:g()(g()({},G),{},{loading:!0})}),!(Le&&!Ue||null!=Ae&&Ae.thiry_party)){n.next=3;break}return n.abrupt("return");case 3:return n.next=5,q(E,{path:Qe});case 5:if(t=n.sent,!e)if(0===t.status)N.ZP.info(t.message),f({type:fn,payload:g()(g()({},G),{},{loading:!1})});else{try{a="txt"===(null==t?void 0:t.file_type)?0===(null===(r=a)||void 0===r?void 0:r.length)?a:window.decodeURIComponent(escape(window.atob(null==t||null===(s=t.content)||void 0===s?void 0:s.content))):null==t||null===(i=t.content)||void 0===i?void 0:i.content}catch(e){a=window.atob(null==t||null===(o=t.content)||void 0===o?void 0:o.content),N.ZP.warning("请确认文件字符集编码是否为UTF-8"),console.log("err:",e)}f({type:fn,payload:g()(g()({},G),{},{content:a,language:t.language,file_type:t.file_type,filename:t.filename,lastedUpdateTime:0,loading:!1})})}case 7:case"end":return n.stop()}}),n)})))).apply(this,arguments)}if(0===ge&&Qe&&1!==je.hide_code)return function(){n.apply(this,arguments)}(),function(){e=!0}}),[ge,Qe,he,pe]);var wn=function(){var e=p()(u()().mark((function e(){var n,t,a=arguments;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>0&&void 0!==a[0]?a[0]:0,console.log("lastedUpdateTime:",Ke,n),!(0===ge&&Ge>0&&Ke||n)){e.next=8;break}return e.next=5,Y(De.identifier,{path:Qe,evaluate:n,content:We,game_id:be.id});case 5:return t=e.sent,f({type:hn,payload:{lastedUpdateTime:0}}),e.abrupt("return",t);case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,A.useCallback)((function(){}),[wn]);(0,A.useEffect)((function(){return le.Z.subscribe("unlock-test-case",(function(){S.Z.confirm(c()(c()({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:(0,H.jsx)(En,{score:Ae.score,is_teacher:ye})},"centered",!0),"onOk",bn))}))}),[bn,Ae,ye]);var bn=(0,A.useCallback)(p()(u()().mark((function e(){var n,t,a,r;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s=be.identifier,(0,U.U2)("tasks/".concat(s,"/check_test_sets.json"));case 2:if(n=e.sent,t=n.test_sets,a=n.message,-1!==n.status){e.next=7;break}return a.info(a),e.abrupt("return");case 7:r=W.user.grade,W.user.grade=r-2*Ae.score,W.test_sets=t,W.game.test_sets_view=!0,f({type:sn,payload:{taskData:W}});case 12:case"end":return e.stop()}var s}),e)}))),[be,Ae,f]);function Dn(){return Bn.apply(this,arguments)}function Bn(){return(Bn=p()(u()().mark((function e(){var n,t;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$(null==W||null===(n=W.myshixun)||void 0===n?void 0:n.identifier,{});case 2:return t=e.sent,Ye(),e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Zn(){return Zn=p()(u()().mark((function e(){var n,t,a;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ee(E);case 2:n=e.sent,t=n.praise_count,a=n.praise,W.praise_count=t,W.user_praise=a,f({type:sn,payload:{taskData:W}});case 7:case"end":return e.stop()}}),e)}))),Zn.apply(this,arguments)}(0,A.useEffect)((function(){if(!Xe||Se){var e=function(e){Z.current&&f({type:ln,payload:e.pageX}),T.current&&f({type:un,payload:e.pageY})},n=function(){Z.current=!1,T.current=!1,f({type:dn,payload:!1}),document.onselectstart=null};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",n),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}}}),[T.current,Z.current,Xe,f]),I.current=function(){d.moveX=.01!==d.moveX?.01:"40%",f({type:ln,payload:d.moveX})},(0,A.useEffect)((function(){return le.Z.subscribe("vnc-enlarge",(function(){I.current()}))}),[]),(0,A.useEffect)((function(){if(0===ge&&Ae&&Ae.path){var e=Ae.path.split(";").filter((function(e){return!!e}));f({type:hn,payload:{currentPath:e[0],paths:e}})}}),[Ae,ge]),(0,A.useEffect)((function(){je&&(0,O.Dk)(je.name||"实践项目名称-未填写")}),[je]);var Tn=(0,A.useCallback)((function(e){function n(){return n=p()(u()().mark((function e(n){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{window.navigator.sendBeacon("".concat(L.Z.API_SERVER,"/api/tasks/").concat(E,"/cost_time.json?time=").concat(n),JSON.stringify({time:n}))}catch(e){}case 1:case"end":return e.stop()}}),e)}))),n.apply(this,arguments)}!function(e){n.apply(this,arguments)}(e)}),[E]);function In(){return(In=p()(u()().mark((function e(n){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,X(E,je.id,n);case 2:W.game.star=n,f({type:sn,payload:{taskData:W}});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Rn(){return Rn=p()(u()().mark((function e(n){var t,a,r;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.props,a=t.children,r=t.eventKey,e.abrupt("return",new Promise(function(){var e=p()(u()().mark((function e(n){var t,s,o;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a&&a.length>0&&n(),e.next=3,ne(De.identifier,{path:r});case 3:t=e.sent,s=t.trees,o=ve(ie,r,xe(s,r)),f({type:An,payload:{repos:i()(o)}}),n();case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}}),e)}))),Rn.apply(this,arguments)}function Pn(){f({type:yn})}function Fn(){return(Fn=p()(u()().mark((function e(n,t){var a;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.node.isLeaf){e.next=7;break}return a=n[0],a.split(".").pop().toLowerCase(),e.next=6,wn();case 6:f({type:hn,payload:{currentPath:a}});case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ln(){return(Ln=p()(u()().mark((function e(){var n,t;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,f({type:_n,payload:!0}),le.Z.publish("vnc-reseting"),e.next=5,te(r.taskId);case 5:n=e.sent,t=n.vnc_url,W.vnc_url=t+"×tamp="+(new Date).getTime(),le.Z.publish("vnc-reseting-done",n),f({type:sn,payload:{taskData:W,resetVncLoading:!1}}),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),console.log(e.t0);case 15:case"end":return e.stop()}}),e,null,[[0,12]])})))).apply(this,arguments)}function Un(){return Un=p()(u()().mark((function e(t){var a,r,s,i,o,c;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.GameState,r=t.Data,s=t.challenge,console.log("match:",n),"info"!==s){e.next=6;break}le.Z.publish("evaluate-unity3d-result",{state:"3d_callback",data:{challenge_info:g()({},W.challenge)}}),e.next=16;break;case 6:if("Success"!==a){e.next=16;break}if(!Oe&&Ue){e.next=15;break}return e.next=10,re(E,we.Base64.encode(E+(new Date).getTime()),r);case 10:i=e.sent,o=i.status,c=i.data,0==o&&(2!==be.status&&(W.game.status=2,W.user.grade+=c.gold,le.Z.publish("update-cost-time")),le.Z.publish("evaluate-unity3d-result",{state:"userAndtime",data:{user:Ne,open_time:c.open_time,end_time:c.end_time}}),f({type:sn,payload:{taskData:W,evalData:{gold:c.gold,experience:c.experience,next_game:c.next_game},evaluateLoading:!1,showEvalResult:!0}})),e.next=16;break;case 15:f({type:cn});case 16:case"end":return e.stop()}}),e)}))),Un.apply(this,arguments)}function On(){return(On=p()(u()().mark((function e(){var n,t,a,r;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,se(E);case 2:return a=e.sent,null!==(n=a)&&void 0!==n&&null!==(n=n.data)&&void 0!==n&&n.remaining_time&&le.Z.publish("update-windows-time",null===(r=a)||void 0===r?void 0:r.data),e.abrupt("return",null===(t=a)||void 0===t?void 0:t.data);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Hn="calc(100vw - 4px - ".concat("80px",")");c()(c()(c()(c()(c()(c()(c()({game:be,taskId:E,user_praise:Be,praise_count:Ze,st:ge,challenge:Ae,rank_name:W.rank_name,shixun:je,is_teacher:ye,has_answer:_e,unity_3d_routes:Le,with_code_file:Ue,onEvaluateCallback:function(){},onGetUnity3dMessage:function(e){return Un.apply(this,arguments)}},"taskId",E),"myshixun",De),"user",Ne),"discusses_count",Ee),"onPlusOrCancelPraise",(function(){return Zn.apply(this,arguments)})),"minuxUserGrade",(function(e){var n=W.user.grade;W.user.grade=n-e,f({type:sn,payload:{taskData:W}})})),"taskData",W),oe||(Te||Ve)&&De.system_tip,(De||{}).id,g()(g()({},z),{},{isPictureView:ue,history:t,webDisplayUrl:ce,onShowPictureView:function(){f({type:jn})},star:be&&be.star,onStarChange:function(e){return In.apply(this,arguments)},onCloseResult:function(){f({type:on})}});return(0,H.jsx)(A.Fragment,{children:V?(0,H.jsx)(j.Z,{message:"努力请求数据中..",className:"tpi-spin"}):(0,H.jsxs)(A.Fragment,{children:[(0,H.jsxs)("div",{className:"task-wrapper",children:[me&&(0,H.jsx)("div",{className:"draging-mask"}),(0,H.jsx)(fe,{difficulty:null==Ae?void 0:Ae.difficulty,mirror_description:Fe,history:t,git_url:ke,shixun:je,taskData:W,lastedGetTaskInfoTime:he,onAddVncTime:function(){return On.apply(this,arguments)},taskId:E,isNotice:Je,resetVncLoading:de,onResetVnc:function(){return Ln.apply(this,arguments)},onResetGitCode:Dn,vnc_url:Se,linux_vnc:null==W?void 0:W.linux_vnc,window_vnc_url:(null==W?void 0:W.windows_vnc)||(null==W?void 0:W.virtual_machine),remaining_time:null==W?void 0:W.remaining_time,onShowNotice:Pn,game:be,user:Ne,st:ge,onUpdateCode:wn,onUpdateCostTime:Tn,unity_3d_routes:Le&&!Ue||(null==Ae?void 0:Ae.thiry_party)}),(0,H.jsxs)("div",{className:"tasks-body2",children:[(0,H.jsx)("section",{className:"left-panel",children:(0,H.jsxs)("ul",{children:[(0,H.jsxs)("li",{onClick:function(){return _(1)},className:1==b?"on":"",children:[(0,H.jsx)("span",{className:"iconfont icon-huanjing"}),(0,H.jsx)("span",{children:"环境"})]}),(0,H.jsxs)("li",{onClick:function(){return _(2)},className:2==b?"on":"",children:[(0,H.jsx)("span",{className:"iconfont icon-shujuwajue"}),(0,H.jsx)("span",{children:"数据集"})]}),(0,H.jsxs)("li",{onClick:function(){return _(3)},className:3==b?"on":"",children:[(0,H.jsx)("span",{className:"iconfont icon-a-chengyuan1"}),(0,H.jsx)("span",{children:"合作者"})]})]})}),(0,H.jsxs)("section",{id:"task-right-panel",className:"right-panel ".concat(Se||null!=W&&W.windows_vnc||null!=W&&W.linux_vnc||null!=W&&W.virtual_machine?"vnc":""),style:{width:Hn,minWidth:"500px"},children:[(0,H.jsxs)("div",{style:{height:"100%"},className:1===b?"":"hide",children:["webssh"===W.mirror_type&&(0,H.jsx)(Ce,{sshConfigData:W||{},sid:1}),"graph"===W.mirror_type&&(0,H.jsx)(He,{taskData:W,evaluateMessage:K,language:ze,evaluateLoading:J,onEval:a.onEvalCode}),("jupyterlab"===W.mirror_type||"jupyternotebook"===W.mirror_type)&&(0,H.jsx)($e,{taskData:W,evaluateMessage:K,language:ze,evaluateLoading:J,onEval:a.onEvalCode})]}),(0,H.jsxs)("div",{className:2===b?"data_env_lists":"hide",children:[(0,H.jsxs)("div",{className:"data_header",children:["数据集 (",null==F?void 0:F.data_count,")"]}),(0,H.jsx)("div",{style:{padding:20},children:(0,H.jsx)(en.Z,{detail:F})})]}),(0,H.jsx)("div",{className:3===b?"data_env_lists":"hide",children:(0,H.jsx)("div",{children:(0,H.jsx)(nn.Z,{})})})]})]})]}),(0,H.jsx)(y.Z,{children:(0,H.jsx)(k.Z,{rootClassName:"setting-drawer",title:null,placement:"right",width:400,closable:!1,open:ae,onClose:function(){f({type:gn,payload:!1})},children:(0,H.jsx)(Cn,{className:"dir-tree",selectedKeys:["".concat(Qe)],treeData:ie,onSelect:function(e,n){return Fn.apply(this,arguments)},loadData:function(e){return Rn.apply(this,arguments)}})})})]})})};function En(e){var n=e.is_teacher,t=e.score;return(0,H.jsx)(A.Fragment,{children:n?(0,H.jsxs)(A.Fragment,{children:[(0,H.jsx)("div",{children:"已经过职业认证的教师可以免金币查看隐藏测试集。"}),(0,H.jsx)("div",{children:"解锁本关所有测试集需要扣除".concat(2*t,"金币,确定要解锁吗?")}),(0,H.jsx)("a",{href:"/account/certification",class:"to-certification-link",target:"_blank",children:"立即认证"})]}):(0,H.jsx)("div",{children:"解锁本关所有测试集需要扣除".concat(2*t,"金币,确定要解锁吗?")})})}},90341:function(e,n,t){"use strict";t.d(n,{$J:function(){return c},JZ:function(){return u},bN:function(){return f},jP:function(){return p},rO:function(){return l}});var a=t(7557),r=t.n(a),s=t(41498),i=t.n(s),o=t(18030);function c(e){return(0,o.U2)("libraries/".concat(e,".json"))}function l(){return(0,o.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=i()(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,o.IV)("attachments/".concat(n,".json"));case 2:return t=e.sent,e.abrupt("return",0===t.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,o.v_)("libraries.json",e)}function f(e,n){return(0,o.gz)("libraries/".concat(e,".json"),n)}},76710:function(e,n,t){"use strict";t.d(n,{$L:function(){return c},M3:function(){return y},NV:function(){return u},T:function(){return x},V1:function(){return p},ie:function(){return w},ln:function(){return g},pV:function(){return _},th:function(){return h}});var a=t(7557),r=t.n(a),s=t(41498),i=t.n(s),o=t(18030);function c(e){return l.apply(this,arguments)}function l(){return(l=i()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("/api/sci/projects.json",{method:"post",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(e,n){return d.apply(this,arguments)}function d(){return(d=i()(r()().mark((function e(n,t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("/api/sci/projects/".concat(t,".json"),{method:"put",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return f.apply(this,arguments)}function f(){return(f=i()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("/api/sci/projects/sci_mirror_repositories.json",{method:"get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e,n){return m.apply(this,arguments)}function m(){return(m=i()(r()().mark((function e(n,t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("/api/sci/projects/".concat(n,".json"),{method:"delete",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return v.apply(this,arguments)}function v(){return(v=i()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("/api/sci/projects/".concat(n,".json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return A.apply(this,arguments)}function A(){return(A=i()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("/api/sci/projects/data_sets.json",{method:"get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e){return j.apply(this,arguments)}function j(){return(j=i()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("/api/sci/projects/".concat(n,"/start_environment.json"),{method:"post"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e,n){return b.apply(this,arguments)}function b(){return(b=i()(r()().mark((function e(n,t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("/api/sci/projects/".concat(n,"/fork_sci_project.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e,n){return S.apply(this,arguments)}function S(){return(S=i()(r()().mark((function e(n,t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("/api/sci/projects/".concat(n,"/get_data_sets.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},48064:function(e,n,t){"use strict";t.d(n,{Jd:function(){return C},a$:function(){return _},dU:function(){return p},fi:function(){return y},m_:function(){return g},rB:function(){return w},rV:function(){return h},x4:function(){return x},zE:function(){return u}});var a=t(82242),r=t.n(a),s=t(7557),i=t.n(s),o=t(41498),c=t.n(o),l=t(18030);function u(e){return d.apply(this,arguments)}function d(){return(d=c()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/jupyters/save_with_tpi.json",{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return f.apply(this,arguments)}function f(){return(f=c()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/tasks/".concat(n.identifier,"/jupyter.json"),{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return m.apply(this,arguments)}function m(){return(m=c()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.identifier,"/start.json"),{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return v.apply(this,arguments)}function v(){return(v=c()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/jupyters/timeinfo_with_tpi.json",{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return A.apply(this,arguments)}function A(){return(A=c()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.identifier,"/reset_pod.json"),{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e,n){return j.apply(this,arguments)}function j(){return(j=c()(i()().mark((function e(n,t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n,"/active_pod.json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e){return b.apply(this,arguments)}function b(){return(b=c()(i()().mark((function e(n){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(t=r()({},n)).identifier,e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.identifier,"/sync_code.json"),{method:"Post",body:t}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return S.apply(this,arguments)}function S(){return(S=c()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/shixuns/".concat(n.identifier,"/get_data_sets.json"),{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return k.apply(this,arguments)}function k(){return(k=c()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/tasks/".concat(n.identifier,"/reboot_esc.json"),{method:"post",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},7352:function(e,n){"use strict";n.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},25769:function(e,n,t){"use strict";var a=t(98040),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,n){var t,s,i,o,c,l,u=!1;n||(n={}),t=n.debug||!1;try{if(i=a(),o=document.createRange(),c=document.getSelection(),(l=document.createElement("span")).textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(a){if(a.stopPropagation(),n.format)if(a.preventDefault(),void 0===a.clipboardData){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var s=r[n.format]||r.default;window.clipboardData.setData(s,e)}else a.clipboardData.clearData(),a.clipboardData.setData(n.format,e);n.onCopy&&(a.preventDefault(),n.onCopy(a.clipboardData))})),document.body.appendChild(l),o.selectNodeContents(l),c.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(a){t&&console.error("unable to copy using execCommand: ",a),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",e),n.onCopy&&n.onCopy(window.clipboardData),u=!0}catch(a){t&&console.error("unable to copy using clipboardData: ",a),t&&console.error("falling back to prompt"),s=function(e){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,n)}("message"in n?n.message:"Copy to clipboard: #{key}, Enter"),window.prompt(s,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(o):c.removeAllRanges()),l&&document.body.removeChild(l),i()}return u}},98040:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var n=document.activeElement,t=[],a=0;a0&&(n=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+j+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),n}var k=function(e){var n=e.value,t=e.onChange,r=e.action,s=e.data,o=e.className,l=e.maxSize,d=void 0===l?150:l,C=e.title,k=void 0===C?"上传附件":C,N=e.showRemoveModal,D=void 0!==N&&N,E=e.accept,B=void 0===E?"":E,Z=e.additionalText,T=e.isDragger,I=e.number,R=void 0===I?1e3:I,P=e.aloneClear,F=void 0!==P&&P,L=e.realTimeRemove,U=void 0===L||L,O=e.uploadText,H=e.setFileProgress,Q=e.showFileProgress,M=(0,f.useState)(!1),W=p()(M,2),z=W[0],G=W[1],V=(0,f.useState)(n||[]),J=p()(V,2),K=J[0],X=J[1],q=(0,f.useState)(1),Y=p()(q,2),$=Y[0],ee=Y[1];(0,f.useEffect)((function(){n&&(1===$&&X(u()(n)),ee(2),R===(null==n?void 0:n.length)&&G(!0))}),[n]);var ne=function(){setTimeout((function(){K.pop(),X(u()(K))}),500)};Q&&H(K.some((function(e){return"uploading"===e.status})));var te,re={multiple:!0,disabled:z,accept:B,withCredentials:!0,fileList:K,beforeUpload:function(e,n){var t=e.size/1024/1024;return K.concat(n).length>R?(K.pop(),X(u()(K)),m.ZP.error("最多只能上传".concat(R,"个文件")),F?Promise.reject():(ne(),!1)):t=R?G(!0):G(!1),X(u()(K)),K=K.map((function(e){var n,t;null!=e&&null!==(n=e.response)&&void 0!==n&&n.id&&(e.url=null==e||null===(t=e.response)||void 0===t?void 0:t.url);return-1===e.name.indexOf(j)&&(e.name="".concat(e.name).concat(j).concat(y(e.size))),c()({},e)})),console.log("info:",e,K),t(K)):m.ZP.error(null===(r=e.file)||void 0===r||null===(r=r.response)||void 0===r?void 0:r.message)},onRemove:(te=i()(a()().mark((function e(n){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(U){e.next=2;break}return e.abrupt("return",!0);case 2:if(t=function(){var e=i()(a()().mark((function e(){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.response?n.response.id:n.id)){e.next=8;break}return e.next=4,(0,A.JZ)(n.response?n.response.id:n.uid);case 4:return t=e.sent,e.abrupt("return",Promise.resolve(t));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!D){e.next=7;break}return e.abrupt("return",new Promise((function(e,n){var r;x.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,w.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(r=i()(a()().mark((function n(){return a()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t();case 2:n.sent,m.ZP.success("删除成功"),e(!0);case 5:case"end":return n.stop()}}),n)}))),function(){return r.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,t();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return te.apply(this,arguments)})};return(0,w.jsxs)("div",{className:"multi-upload ".concat(o||""),children:[T&&(0,w.jsxs)(S,c()(c()({},re),{},{children:[(0,w.jsx)("p",{className:"ant-upload-drag-icon",children:(0,w.jsx)(b.Z,{})}),(0,w.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,w.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),Z]})),!T&&(0,w.jsxs)(h.Z,c()(c()({},re),{},{children:[(0,w.jsxs)(v.ZP,{disabled:z,className:"upload_button",children:[(0,w.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),k]}),(0,w.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:O||"(单个文件最大".concat(d,"MB)")})]}))]})}},54313:function(e,n,t){"use strict";var r=t(82242),a=t.n(r),s=(t(59301),t(93314)),i=t(3113),o=t(37712);n.Z=function(e){var n=e.img,t=e.buttonProps,r=void 0===t?{}:t,c=e.styles,l=void 0===c?{}:c,u=e.customText,d=e.ButtonText,p=e.ButtonClick,f=e.Buttonclass,h=e.ButtonTwo,m=e.imgStyles,x=e.loading,v=void 0!==x&&x;return(0,o.jsxs)("section",{className:"tc animated fadeIn",style:a()(a()({},{color:"#999",margin:"100px auto",visibility:v?"hidden":"visible"}),l),children:[(0,o.jsx)("img",{src:n||s,style:a()(a()({},m),{},{pointerEvents:"none",userSelect:"none"})}),(0,o.jsx)("p",{className:"mt20 font14",children:u||"暂时还没有相关数据哦!"}),d&&(0,o.jsx)(i.ZP,a()(a()({className:f,onClick:p},r),{},{children:d})),h&&h]})}},73488:function(e,n,t){"use strict";var r=t(7557),a=t.n(r),s=t(37205),i=t.n(s),o=t(41498),c=t.n(o),l=t(79800),u=t.n(l),d=t(82242),p=t.n(d),f=t(59301),h=t(78241),m=t(95237),x=t(57809),v=t(92832),g=t(88522),A=t(3113),w=t(24905),j=t(6848),y=t(8591),b=t(61998),_=t(5296),S=t(61186),C=t.n(S),k=t(26724),N=t.n(k),D=t(58143),E=t(54602),B=t(48486),Z=t(7352),T=t(37712),I=[];function R(e){var n=e.onSearch,t=e.schools;return(0,T.jsx)(h.Z,{colon:!1,layout:"horizontal",onFinish:n,initialValues:{keyword:"",school_name:"",search_type:"1"},children:(0,T.jsxs)(m.Z,{style:{flexWrap:"nowrap"},children:[(0,T.jsx)(h.Z.Item,{name:"search_type",label:"搜索类型",children:(0,T.jsxs)(x.default,{popupClassName:Z.Z.selectdown,style:{width:106},children:[(0,T.jsx)(x.default.Option,{value:"1",children:"姓名"}),(0,T.jsx)(x.default.Option,{value:"2",children:"手机号"}),(0,T.jsx)(x.default.Option,{value:"3",children:"邮箱"})]})}),(0,T.jsx)(h.Z.Item,{style:{marginLeft:20},label:"搜索内容",name:"keyword",rules:[{required:!0,message:"请输入搜索内容"}],children:(0,T.jsx)(v.Z,{allowClear:!0,style:{width:300},size:"middle"})}),(0,T.jsx)(h.Z.Item,{style:{marginLeft:20},label:"单位",name:"school_name",children:(0,T.jsx)(g.Z,{options:t,style:{width:300},size:"middle",showSearch:!0,filterOption:function(e,n){return-1!==n.value.toUpperCase().indexOf(e.toUpperCase())},placeholder:"请输入单位名称"})}),(0,T.jsx)(A.ZP,{type:"primary",style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:16,color:"#165DFF",marginLeft:40,border:"1px solid #BACFFE"},htmlType:"submit",children:"搜索"})]})})}var P=function(e){return e[e.INITDATA=0]="INITDATA",e[e.INITSCHOOLS=1]="INITSCHOOLS",e[e.SHOWLOADING=2]="SHOWLOADING",e[e.SELECTEDIDS=3]="SELECTEDIDS",e[e.SETQUERY=4]="SETQUERY",e[e.SETPAGE=5]="SETPAGE",e}(P||{});function F(e,n){switch(n.type){case P.INITDATA:case P.SETQUERY:return p()(p()({},e),n.payload);case P.SETPAGE:return p()(p()({},e),{},{page:n.payload,reload:!1});case P.SHOWLOADING:return p()(p()({},e),{},{loading:n.payload});case P.INITSCHOOLS:return p()(p()({},e),{},{schools:n.payload});case P.SELECTEDIDS:return p()(p()({},e),{},{selectedIds:n.payload});default:throw new Error}}var L={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};n.Z=function(e){var n=e.onSelect,t=e.onCancel,r=e.container_id,s=e.container_type,o=(0,f.useReducer)(F,L),l=u()(o,2),d=l[0],h=l[1],m=d.data,x=d.schools,v=d.loading,g=d.selectedIds,S=d.page,k=d.count,Z=d.query,U=d.reload;(0,f.useEffect)((function(){function e(){return(e=c()(a()().mark((function e(){var n,t,o;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,E.nQ)(p()(p()({},Z),{},{page:S,container_type:s,container_id:r,display_aliases:!0}));case 2:n=e.sent,t=n.users,o=n.user_count,h({type:P.INITDATA,payload:{data:U?t:[].concat(i()(m),i()(t)),count:o}});case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Z&&function(){e.apply(this,arguments)}()}),[S,Z,U,r,s]),(0,f.useEffect)((function(){function e(){return(e=c()(a()().mark((function e(){var n,t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,E.K$)({display_aliases:!0});case 2:n=e.sent,t=n.school_names,h({type:P.INITSCHOOLS,payload:t.map((function(e){return{value:e}}))});case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var O=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(e,n){return(0,T.jsx)(w.Z,{value:n.numid,checked:g.includes(n.numid),disabled:!!e})}},{title:"姓名",width:100,ellipsis:!0,align:"left",dataIndex:"username",render:function(e,n){return(0,T.jsx)("div",{children:(0,T.jsx)(j.Z,{placement:"bottom",title:e,children:(0,T.jsx)(_.Link,{style:{color:"#000000"},className:"bold c-black",to:"/users/".concat(n.login),target:"_blank",children:e||"--"})})})}},{title:"手机",width:100,dataIndex:"phone",ellipsis:!0,render:function(e){return(0,T.jsx)(j.Z,{placement:"bottom",title:e,children:(0,T.jsx)("span",{style:{color:"#000000"},children:e||"--"})})}},{title:"邮箱",dataIndex:"email",width:100,ellipsis:!0,render:function(e){return(0,T.jsx)(j.Z,{placement:"bottom",title:e,children:(0,T.jsx)("span",{style:{color:"#000000"},children:e||"--"})})}},{title:"学号/工号",width:100,dataIndex:"student_number",ellipsis:!0,render:function(e){return(0,T.jsx)(j.Z,{placement:"bottom",title:e,children:(0,T.jsx)("span",{style:{color:"#000000"},children:e||"--"})})}},{title:"学校/单位",width:150,dataIndex:"school_name",ellipsis:!0,render:function(e){return(0,T.jsx)(j.Z,{placement:"bottom",title:e,children:(0,T.jsx)("span",{style:{color:"#000000"},children:e||"--"})})}},{title:"院系/部门",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(e){return(0,T.jsx)(j.Z,{placement:"bottom",title:e,children:(0,T.jsx)("span",{style:{color:"#000000"},children:e||"--"})})}},{title:"实名认证",dataIndex:"auth",width:100,render:function(e){return(0,T.jsx)("span",{style:{color:"#000000"},children:e?"是":"否"})}},{title:"最后登录时间",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(e){return(0,T.jsx)(j.Z,{placement:"bottom",title:e,children:(0,T.jsx)("span",{style:{color:"#000000"},children:C()(e).format("YYYY-MM-DD HH:mm")})})}},{title:"状态",dataIndex:"added",width:80,render:function(e){if(1===e)return(0,T.jsx)("span",{style:{color:"#000000"},children:"已添加"})}}];var H=k>10*S;return(0,T.jsxs)("div",{className:"select-user-container",style:{paddingBottom:20},children:[(0,T.jsx)(R,{onSearch:function(e){h({type:P.SETQUERY,payload:{page:1,reload:!0,query:e}})},schools:x}),Z?(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("div",{className:"flexd-table-header mt20",children:(0,T.jsx)(B.Gi,{children:(0,T.jsx)(b.Z,{pagination:!1,dataSource:I,columns:O})})}),(0,T.jsx)("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20},children:(0,T.jsx)(N(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(e){h({type:P.SETPAGE,payload:e})},hasMore:H,useWindow:!1,children:(0,T.jsx)(B.Gi,{children:(0,T.jsx)(b.Z,{loading:v,showHeader:!1,pagination:!1,dataSource:m,columns:O,onRow:function(e){return{onClick:function(n){var t,r;1!==e.added&&(t=e.numid,(r=g.indexOf(t))>=0?g.splice(r,1):g.push(t),h({type:P.SELECTEDIDS,payload:i()(g)}))}}}})})})}),(0,T.jsxs)("div",{className:"flex-container flex-end",children:[(0,T.jsx)(A.ZP,{type:"ghost",style:{marginRight:10,border:"1px solid #C3CFE0",color:"#464F66"},onClick:t,children:"取消"}),(0,T.jsx)(A.ZP,{style:{background:"#F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%)",boxShadow:"0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255,255,255,0.5)",borderRadius:2,color:"#165DFF",border:"1px solid #BACFFE"},type:"primary",onClick:function(){0===g.length?y.ZP.warning("请先在下面列表中选择要添加成员"):(n(g,r),h({type:P.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))},children:"确定"})]})]}):(0,T.jsxs)("div",{className:"tc font16 c-light-black mt40 pb30",children:[(0,T.jsx)("img",{src:D,width:"100",alt:""}),(0,T.jsx)("br",{}),(0,T.jsx)("p",{className:"mt20",children:"请搜索要添加的人员"})]})]})}},48486:function(e,n,t){"use strict";t.d(n,{jL:function(){return c},w9:function(){return je},QD:function(){return nn},cQ:function(){return Ae},op:function(){return Je},O5:function(){return dn},_b:function(){return on},t7:function(){return R},Gi:function(){return Se},YG:function(){return _e},qp:function(){return _},vr:function(){return rn},qE:function(){return qe},Je:function(){return L},wb:function(){return se},cq:function(){return Pe},tp:function(){return k}});var r=t(59301),a="banner___PoUBO",s="content___XoDjy",i="btns___Pb35j",o=t(37712),c=function(e){var n=e.dataSource,t=void 0===n?[]:n,r=e.img,c=e.imgWidth,l=void 0===c?346:c,u=e.title,d=e.sunTitle,p=e.bannerExtraContent;return(0,o.jsx)("div",{className:a,children:(0,o.jsxs)("div",{className:s,children:[(0,o.jsxs)("aside",{children:[(0,o.jsxs)("p",{children:[(0,o.jsx)("b",{children:u}),(0,o.jsx)("span",{children:d})]}),t.length>0&&(0,o.jsx)("div",{className:i,children:t.map((function(e,n){return(0,o.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,o.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5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img",{style:{marginTop:33,marginRight:38},src:r,width:l})]})})},l=t(79800),u=t.n(l),d="row___aXJjm",p="title___HUKL0",f="tagsWrap___XB2W3",h="action___VdHb1",m="bar___t1kKC",x="tag___V7Eft",v="name___Hk1Ip",g="num___xQpcH",A="active___XryTX",w="tagsBorderWrap___OMxjs",j=t(92310),y=t.n(j),b=t(89392),_=function(e){var n=e.dataSource,t=void 0===n?[]:n,a=e.value,s=e.onChange,i=e.onTitleChange,c=e.className,l=e.title,j=e.titleWidth,_=void 0===j?41:j,S=e.style,C=void 0===S?{}:S,k=e.fontColor,N=void 0===k?"#6A7283":k,D=e.showCount,E=(0,r.useState)(0),B=u()(E,2),Z=B[0],T=B[1],I=(0,r.useState)(!1),R=u()(I,2),P=R[0],F=R[1],L=(0,r.useRef)(null),U=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e;0!==t.length&&((null==L||null===(e=L.current)||void 0===e?void 0:e.clientHeight)>97?T(1):T(0));0===t.length&&T(0),F(!1)}),[t]),(0,o.jsxs)("div",{className:y()(d,c),style:C,children:[(0,o.jsx)("div",{onClick:(0,b.throttle)((function(){return null==i?void 0:i()}),2e3),style:{width:_,marginTop:P?12:4},className:"".concat(p," ").concat(i?"current":""),children:l}),(0,o.jsxs)("div",{className:P?"".concat(f," ").concat(w):f,children:[(0,o.jsx)("div",{className:m,ref:U,style:Z>0?{height:1===Z?97:"auto",overflow:1===Z?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,o.jsx)("div",{className:x,ref:L,children:null==t?void 0:t.map((function(e){return(0,o.jsxs)("span",{onClick:function(){return s(e.id)},style:{color:N},className:a===e.id?A:"",children:[(0,o.jsx)("span",{title:e.name,className:v,children:e.name}),!!D&&(0,o.jsx)("span",{className:g,children:e.count})]},e.id)}))})}),!!Z&&(0,o.jsx)(r.Fragment,{children:1===Z?(0,o.jsxs)("div",{onClick:function(){var e;T(2),(null==L||null===(e=L.current)||void 0===e?void 0:e.clientHeight)>245?F(!0):F(!1)},className:h,children:["展开",(0,o.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,o.jsxs)("div",{onClick:function(){U.current.scrollTop=0,T(1),F(!1)},className:h,children:["收起",(0,o.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},S="tabs___GTqPV",C="active___F26E8",k=function(e){var n=e.dataSource,t=void 0===n?[]:n,r=e.value,a=e.onChange,s=e.className,i=e.style,c=void 0===i?{}:i;return(0,o.jsx)("div",{style:c,className:y()(S,s),children:t.map((function(e){return(0,o.jsx)("span",{onClick:function(){return a(e.id)},className:r===e.id?C:"",children:e.name},e.id)}))})},N="input___PW2zI",D="dropdown___vSy8B",E="menu___NiyBu",B="text___Grueu",Z="b1___ZKryM",T="b2___aKyGa",I=t(92832),R=function(e){var n,t=e.dataSource,a=void 0===t?[]:t,s=e.value,i=void 0===s?"":s,c=e.onChange,l=e.onInputChange,d=void 0===l?function(){}:l,p=e.className,f=e.style,h=void 0===f?{}:f,m=e.placeholder,x=(e.allowClear,(0,r.useState)("")),v=u()(x,2),g=v[0],A=v[1],w=(0,r.useState)(""),j=u()(w,2),b=j[0],_=j[1];(0,r.useEffect)((function(){var e,n=i;null!==(e=JSON.stringify(i))&&void 0!==e&&e.includes("{")&&(A(i.id),n=i.value||"");try{_(decodeURIComponent(n||""))}catch(e){_(decodeURIComponent(n||""))}}),[i]);var S=function(){c(encodeURIComponent(b),g||null)};return(0,o.jsxs)("div",{className:y()(N,p),style:h,children:[!!a.length&&(0,o.jsxs)("div",{className:D,children:[(0,o.jsxs)("div",{className:B,children:[null===(n=a.find((function(e){return e.id===g})))||void 0===n?void 0:n.name,(0,o.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,o.jsx)("b",{className:Z}),(0,o.jsx)("b",{className:T})]}),(0,o.jsx)("div",{className:E,children:a.map((function(e,n){return(0,o.jsx)("div",{onClick:function(){var n;(n=e.id)!==g&&(A(n),c(encodeURIComponent(b),n))},children:e.name},n)}))})]}),(0,o.jsx)(I.Z,{onPressEnter:S,value:b,onChange:function(e){_(e.target.value),d(encodeURIComponent(e.target.value),g||null)},bordered:!1,placeholder:m}),(0,o.jsx)("i",{onClick:S,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},P="quickPager___GM30J",F="disabled___Ozc8I",L=function(e){var n=e.value,t=e.onChange,r=e.className,a=e.total,s=e.pageSize,i=e.style,c=void 0===i?{}:i,l=n<2,u=n>=Math.ceil(a/s);return a<=s?(0,o.jsx)(o.Fragment,{}):(0,o.jsxs)("div",{className:y()(P,r),style:c,children:[(0,o.jsx)("div",{onClick:function(){l||t(n-1,"prev")},className:l?F:"",children:"上一页"}),(0,o.jsx)("div",{onClick:function(){u||t(n+1,"next")},className:u?F:"",children:"下一页"})]})},U="list___oOsiS",O="wrap___G6T7F",H="lockWrap___Rl79E",Q="li___oZZ7l",M="cover___b2bYW",W="img___IQX7w",z="sign___HkT6C",G="name___SsJx8",V="e___TMqq0",J="tags___bcjyo",K="rate___YACg7",X=t(71418),q=t(6848),Y=t(31395),$=t(92723),ee=t(21082),ne=t(96908),te=t(57177),re=t(81378),ae=t(54313),se=function(e){var n=e.className,t=e.dataSource,r=void 0===t?[]:t,a=e.col,s=void 0===a?4:a,i=e.right,c=e.bottom,l=void 0===c?23:c,u=e.precision,d=void 0===u?0:u,p=e.wrapWidth,f=void 0===p?1200:p,h=e.trackEventItems,m=e.loading,x=Math.floor((f-(s-1)*i)/s);return(0,o.jsx)(X.Z,{spinning:m,children:(0,o.jsxs)("div",{className:y()(U,n),children:[!!r.length&&r.map((function(e,n){var t=e.name,r=e.id,a=e.identifier,c=e.power,u=(e.cover_image_id,e.pic);return(0,o.jsxs)("div",{className:O,style:{width:x,marginRight:(1+n)%s==0?0:i+d,marginBottom:l},children:[(0,o.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(a,"/challenges"),className:Q,onClick:function(e){e.preventDefault(),h&&(0,ee.L9)([h]),c&&(0,ee.xg)("/shixuns/".concat(a,"/challenges"))},children:[(0,o.jsxs)("div",{className:W,children:[(0,o.jsx)("img",{className:M,src:"".concat(u)}),e.is_jupyter&&(0,o.jsx)("img",{className:z,src:ne}),e.is_jupyter_lab&&(0,o.jsx)("img",{className:z,src:te}),e.is_unity_3d&&(0,o.jsx)("img",{className:z,src:re})]}),(0,o.jsx)("div",{className:G,children:(0,o.jsx)(q.Z,{title:t||"实践项目名称-未填写",children:(0,o.jsx)("span",{className:V,children:t||"实践项目名称-未填写"})})}),(0,o.jsxs)("div",{className:J,children:[(0,o.jsx)(q.Z,{placement:"bottom",title:"关卡数",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,o.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,o.jsx)(q.Z,{placement:"bottom",title:"学习人数",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,o.jsx)("span",{children:e.myshixuns_count})]})}),(0,o.jsx)(q.Z,{placement:"bottom",title:"难度等级",children:(0,o.jsx)("span",{children:(0,o.jsx)("span",{children:e.level})})}),(0,o.jsxs)("div",{className:K,children:[(0,o.jsx)(Y.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,o.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!c&&(0,o.jsxs)("div",{className:H,children:[(0,o.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,o.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},r)})),!r.length&&(0,o.jsx)(ae.Z,{})]})})},ie="list___jb2Ay",oe="wrap___VsQDr",ce="li___IxCLC",le="cover___Mu8wr",ue="img___IpFLA",de="movebq___mF7wt",pe="bq___Bil0T",fe="sign___DXJ4d",he="name___l7FoJ",me="e___pXQUG",xe="unit___wCIFR",ve="tags___w_Mil",ge=t(93697),Ae=function(e){var n=e.className,t=e.dataSource,r=void 0===t?[]:t,a=e.col,s=void 0===a?4:a,i=e.right,c=e.bottom,l=void 0===c?23:c,u=e.precision,d=void 0===u?0:u,p=e.wrapWidth,f=void 0===p?1200:p,h=e.trackEventItems,m=e.loading,x=e.onRemove,v=void 0===x?function(){}:x,g=e.isCurrent,A=void 0===g||g,w=e.showAlias,j=void 0!==w&&w,b=Math.floor((f-(s-1)*i)/s),_=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,o.jsx)(X.Z,{spinning:m,children:(0,o.jsxs)("div",{className:y()(ie,n),children:[!(null==r||!r.length)&&(null==r?void 0:r.map((function(e,n){var t,r=e.name,a=e.id,c=e.identifier,u=(e.featured,e.school_name),p=e.image_url;e.excellent,e.is_plan;return(0,o.jsx)("div",{className:oe,style:{width:b,marginRight:(1+n)%s==0?0:i+d,marginBottom:l},children:(0,o.jsxs)("a",{className:ce,onClick:function(e){e.preventDefault(),e.stopPropagation(),h&&(0,ee.L9)([h]),(0,ee.xg)("/paths/".concat(c))},children:[(0,o.jsxs)("div",{className:ue,children:[(0,o.jsx)("img",{className:le,src:"".concat(p)}),A&&(0,ge.bg)()&&(null==e?void 0:e.studying)&&(0,o.jsxs)("div",{className:"".concat(de," user-path-items"),onClick:function(n){n.stopPropagation(),v(e)},children:[(0,o.jsx)("i",{className:"iconfont icon-yichu1 mr5 c-red"}),(0,o.jsx)("span",{className:"c-red",children:"移除"})]}),null==e||null===(t=e.subject_tags)||void 0===t?void 0:t.map((function(e,n){var t;if(0===n){var r,a=null===(r=_.find((function(n){return n.name==e})))||void 0===r?void 0:r.swimg;return(0,o.jsx)("img",{className:fe,src:a,style:{left:"-4px"}})}var s=null===(t=_.find((function(n){return n.name==e})))||void 0===t?void 0:t.ptimg;return(0,o.jsx)("img",{className:fe,src:s,style:{left:"".concat(48+52*(n-1)+2*n,"px")}})})),(0,o.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,o.jsx)("div",{className:pe,children:"开放课程"})})]}),(0,o.jsx)("div",{className:he,children:(0,o.jsx)(q.Z,{title:j&&null!=e&&e.excellent_alias_name?(0,o.jsxs)("span",{children:["课程原名:".concat(r),(0,o.jsx)("br",{}),(0,o.jsx)("span",{children:"课程别名:".concat(null==e?void 0:e.excellent_alias_name)})]}):r,children:(0,o.jsx)("span",{className:me,children:j&&(null==e?void 0:e.excellent_alias_name)||r})})}),(0,o.jsx)(q.Z,{title:"发布单位:".concat(u),children:(0,o.jsxs)("div",{className:xe,children:[(0,o.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),u]})}),(0,o.jsx)("div",{className:ve,children:(0,o.jsxs)("div",{children:[(0,o.jsx)(q.Z,{placement:"bottom",title:"章节数",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,o.jsx)("span",{children:e.stages_count})]})}),(0,o.jsx)(q.Z,{placement:"bottom",title:"学习人数",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,o.jsx)("span",{children:e.members_count})]})})]})})]})},a)}))),!r.length&&(0,o.jsx)(ae.Z,{})]})})},we={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},je=function(e){var n=e.className,t=e.dataSource,r=void 0===t?[]:t,a=e.col,s=void 0===a?4:a,i=e.right,c=e.bottom,l=void 0===c?23:c,u=e.precision,d=void 0===u?0:u,p=e.wrapWidth,f=void 0===p?1200:p,h=e.trackEventItems,m=e.loading,x=Math.floor((f-(s-1)*i)/s);return(0,o.jsx)(X.Z,{spinning:m,children:(0,o.jsxs)("div",{className:y()(we.list,n),children:[!!r.length&&r.map((function(e,n){var t=e.subject_identifier,r=e.id,a=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,o.jsxs)("div",{className:we.wrap,style:{width:x,marginRight:(1+n)%s==0?0:i+d,marginBottom:l},children:[(0,o.jsxs)("a",{className:we.li,onClick:function(n){n.preventDefault(),(0,ee.Wn)(null==e?void 0:e.forbid_visit_info)||(h&&(0,ee.L9)([h]),(0,ee.xg)(e.first_category_url))},children:[(0,o.jsxs)("div",{className:we.top,children:[(0,o.jsx)(q.Z,{title:e.name,children:(0,o.jsx)("div",{className:we.name,children:e.name})}),(0,o.jsx)("img",{className:we.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,o.jsx)("div",{className:we.text,title:e.creator,children:e.creator}),t&&(0,o.jsxs)("div",{className:we.btns,children:[(0,o.jsx)("div",{children:"开放课程"}),(0,o.jsx)("aside",{children:"开放课堂"})]}),a&&(0,o.jsx)("div",{className:we.sign,children:"公开"})]}),(0,o.jsxs)("div",{className:we.bottom,children:[e.visits>0&&(0,o.jsx)(q.Z,{title:"访问量",placement:"bottom",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,o.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,o.jsx)(q.Z,{title:"成员",placement:"bottom",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,o.jsx)(q.Z,{title:"作业",placement:"bottom",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,o.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,o.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,o.jsxs)("div",{className:we.lockWrap,children:[(0,o.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,o.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},r)})),!r.length&&(0,o.jsx)(ae.Z,{})]})})},ye={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},be=t(5296),_e=function(e){var n=e.dataSource,t=void 0===n?[]:n,r=e.value,a=e.onChange,s=e.className,i=e.style,c=void 0===i?{}:i,l=e.tabBarExtraContent;return(0,o.jsxs)("div",{className:y()(ye.tabs,s),style:c,children:[(0,o.jsx)("div",{className:ye.tabsWrap,children:t.map((function(e,n){return(0,o.jsxs)("aside",{className:ye.tab,onClick:function(){a(e.id),e.link&&be.history.push(e.link)},children:[(0,o.jsx)("div",{className:r===e.id?ye.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,o.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,o.jsx)(q.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,o.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,o.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,o.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},n)}))}),(0,o.jsx)("div",{className:ye.tabBar,children:l})]})},Se=function(e){var n=e.className,t=e.style,r=void 0===t?{}:t,a=e.children;return(0,o.jsx)("div",{className:y()(n),style:r,children:a})},Ce="orderWrap___ZfyGX",ke="orderIconWrap___XTB_O",Ne="orderAsc___KWHmA",De="orderDesc___rHdbB",Ee="active___a7eSP",Be="cursorPointer___gs9kL",Ze="orderTextWrap___teAKn",Te=t(38854),Ie=t(20834),Re=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Pe=function(e){var n,t=e.sortValue,r=e.dropValue,a=e.className,s=e.onSort,i=e.onDrop,c=e.dataSource,l=void 0===c?Re:c;return(0,o.jsxs)("div",{className:y()(Ce,a),children:[(0,o.jsx)(Te.Z,{dropdownRender:function(){return(0,o.jsx)(Ie.Z,{children:l.map((function(e,n){return(0,o.jsx)(Ie.Z.Item,{onClick:function(){return i(e.id)},children:e.name},n)}))})},children:(0,o.jsx)("span",{className:Ze,children:null===(n=l.find((function(e){return r===e.id})))||void 0===n?void 0:n.name})}),(0,o.jsxs)("span",{className:ke,children:[(0,o.jsx)("span",{className:Ne,children:(0,o.jsx)("i",{className:"asc"===t?"iconfont icon-sanjiaoxing-up font12 ".concat(Be," ").concat(Ee):"iconfont icon-sanjiaoxing-up font12 ".concat(Be),onClick:function(){return s("asc"===t?"desc":"asc")}})}),(0,o.jsx)("span",{className:De,children:(0,o.jsx)("i",{className:"desc"===t?"iconfont icon-sanjiaoxing-down font12 ".concat(Be," ").concat(Ee):"iconfont icon-sanjiaoxing-down font12 ".concat(Be),onClick:function(){return s("asc"===t?"desc":"asc")}})})]})]})},Fe=t(82242),Le=t.n(Fe),Ue=t(7557),Oe=t.n(Ue),He=t(41498),Qe=t.n(He),Me=t(39647),We=t.n(Me),ze={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ge=t(3113),Ve=["className","style","children","loading","openLoading","onClick","size","shape"],Je=function(e){var n=e.className,t=e.style,a=e.children,s=e.loading,i=void 0!==s&&s,c=e.openLoading,l=e.onClick,d=void 0===l?function(){}:l,p=e.size,f=void 0===p?"middle":p,h=e.shape,m=void 0===h?"round":h,x=We()(e,Ve),v=(0,r.useState)(!1),g=u()(v,2),A=g[0],w=g[1];return(0,o.jsx)(Ge.ZP,Le()(Le()({onClick:(0,b.throttle)(function(){var e=Qe()(Oe()().mark((function e(n){return Oe()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c&&w(!0),e.prev=1,e.next=4,d(n);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:c&&w(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(n){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:y()(ze.btn,ze["".concat(f,"-").concat(m)],n),style:t,size:f,shape:m,loading:A||i},x),{},{children:a}))},Ke="head___ghH72",Xe="node___mjPEy",qe=function(e){var n=e.className,t=e.style,r=e.children,a=void 0===r?null:r,s=e.onClick,i=e.title;return(0,o.jsxs)("div",{className:y()(Ke,n),style:t,children:[(0,o.jsxs)("span",{className:"primary-hover",onClick:s,children:[(0,o.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,o.jsx)("b",{title:i,children:i}),(0,o.jsx)("div",{className:Xe,children:a})]})},Ye="btns___sNgTb",$e="confirm___Ozirl",en="cancel___aiq1I",nn=function(e){var n=e.confirmShow,t=void 0===n||n,r=e.confirmTitle,a=e.confirmClick,s=e.cancelShow,i=void 0===s||s,c=e.cancelTitle,l=e.cancelClick,u=e.className,d=e.style,p=e.confirmLoading,f=void 0!==p&&p;return(0,o.jsxs)("div",{className:y()(Ye,u),style:d,children:[t&&(0,o.jsx)(Ge.ZP,{loading:f,onClick:a,type:"primary",className:$e,children:r}),i&&(0,o.jsx)(Ge.ZP,{onClick:l,className:en,children:c})]})},tn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},rn=function(e){var n=e.className,t=e.style,r=void 0===t?{}:t,a=e.LeftContent,s=e.children,i=e.RightContent;return(0,o.jsx)("div",{className:y()(tn.fixedBottom,n),style:r,children:(0,o.jsxs)("div",{className:tn.wrap,children:[(0,o.jsx)("div",{className:tn.left,children:a}),(0,o.jsx)("div",{className:tn.center,children:s}),(0,o.jsx)("div",{className:tn.right,children:i})]})})},an="crumbs___V41Oe",sn="hover___bEIVd",on=function(e){var n=e.className,t=e.style,a=void 0===t?{}:t,s=e.dataSource,i=void 0===s?[]:s;return(0,o.jsx)("div",{className:y()(an,n),style:a,children:i.map((function(e,n){return n"," "]})]},n):(0,o.jsx)("span",{style:{color:"#5F6368"},children:e.name},n)}))})},cn=t(31797),ln=["onChange"],un=cn.Z.Countdown,dn=function(e){var n=e.onChange,t=We()(e,ln),a=(0,r.useState)(null),s=u()(a,2),i=s[0],c=s[1];(0,r.useEffect)((function(){"number"==typeof i&&i>=0&&n(i)}),[i]);return(0,o.jsx)(un,Le()(Le()({},t),{},{onChange:function(e){var n=Math.floor(e/1e3);c(n)}}))}},50069:function(e,n,t){"use strict";var r=t(79800),a=t.n(r),s=t(6848),i=t(8591),o=t(3113),c=t(61998),l=t(59301),u=t(76710),d=t(56102),p=t(37712),f=[{title:"文件名",dataIndex:"filename",width:"19%",ellipsis:!0},{title:"备注",dataIndex:"description",width:"19%",ellipsis:!0},{title:"创建时间",dataIndex:"created_on",width:"19%",ellipsis:!0},{title:"文件路径",dataIndex:"path",width:"19%",render:function(e){return(0,p.jsxs)("div",{style:{display:"flex"},children:[(0,p.jsx)(s.Z,{title:e,children:(0,p.jsx)("span",{style:{width:"80%",display:"inline-block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e})}),(0,p.jsx)(d.CopyToClipboard,{text:e,onCopy:function(){return i.ZP.success("复制成功")},children:(0,p.jsx)("i",{className:"iconfont icon-fuzhi2 current ml5 mr40",style:{color:"#165DFF",marginLeft:30}})})]})}},{title:"最后修改人",dataIndex:"author",width:"14%",ellipsis:!0},{title:"大小",dataIndex:"filesize",width:"10%",ellipsis:!0}],h=function(e){var n=e.detail,t=(0,l.useState)(n),r=a()(t,2),s=r[0],i=r[1],d=(0,l.useState)(1),h=a()(d,2),m=h[0],x=h[1];(0,l.useEffect)((function(){n&&i(n)}),[n]);var v=(0,l.useMemo)((function(){return{position:["bottomCenter"],pageSize:10,showSizeChanger:!1,current:m,showQuickJumper:{goButton:(0,p.jsx)(o.ZP,{children:"GO"})},total:null==s?void 0:s.data_sets_count,onChange:function(e){x(e),(0,u.pV)("".concat(null==n?void 0:n.id),{limit:10,page:e}).then((function(e){i(e)}))}}}),[m,s]);return(0,p.jsx)(c.Z,{columns:f,dataSource:null==s?void 0:s.data_sets,rowKey:"attachment_id",pagination:v})};n.Z=(0,l.memo)(h)},15179:function(e,n,t){"use strict";t.d(n,{Z:function(){return U}});var r=t(82242),a=t.n(r),s=t(7557),i=t.n(s),o=t(41498),c=t.n(o),l=t(79800),u=t.n(l),d=t(59301),p=t(5296),f=t(43418),h=t(8591),m=t(3113),x=t(96865),v=t(27092),g=t(92723),A=t(93697),w=t(39647),j=t.n(w),y=t(5112),b="title___rpaor",_="content___Hb0l5",S="add___THwHB",C="colorBlue___yc4F8",k="radio___hn9Vt",N=t(37712),D=["shixunsDetail","globalSetting","loading","dispatch","onReloadData"],E=(0,p.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t}}))((function(e){var n=e.shixunsDetail,t=(e.globalSetting,e.loading),r=e.dispatch,a=e.onReloadData,s=(j()(e,D),(0,d.useState)()),o=u()(s,2),l=o[0],p=o[1],m=(0,d.useState)([]),x=u()(m,2),v=x[0],g=x[1];(0,d.useEffect)((function(){"Collaborators-ChangeManager"===n.actionTabs.key&&A()}),[n.actionTabs.key]);var A=function(){var e=c()(i()().mark((function e(){var t,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"shixunsDetail/getChangeManager",payload:{id:null===(t=n.actionTabs.params)||void 0===t?void 0:t.id}});case 2:a=e.sent,g(a||[]);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),w=function(){var e=c()(i()().mark((function e(){var t,s;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l){e.next=3;break}return h.ZP.info("所选人员为空,没有更换成功"),e.abrupt("return");case 3:return e.next=5,r({type:"shixunsDetail/changeManager",payload:{id:null===(t=n.actionTabs.params)||void 0===t?void 0:t.id,user_id:l}});case 5:s=e.sent,E(),s&&(a(),h.ZP.info(s.message));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),E=function(){r({type:"shixunsDetail/setActionTabs",payload:{}}),p(null)};return(0,N.jsx)(f.Z,{centered:!0,keyboard:!1,closable:!1,title:"更换管理员",open:"Collaborators-ChangeManager"===n.actionTabs.key,confirmLoading:t.effects["shixunsDetail/changeManager"],onOk:w,onCancel:E,children:(0,N.jsxs)("div",{children:[(0,N.jsxs)("div",{className:b,children:["选择的成员将会成为新的管理员",(0,N.jsx)("br",{}),"您将不再拥有管理员的权限,但您仍是合作团队的一员"]}),(0,N.jsx)("div",{className:_,children:v.length?(0,N.jsx)(y.ZP.Group,{value:l,onChange:function(e){return p(e.target.value)},children:v.map((function(e,n){return(0,N.jsx)(y.ZP,{className:k,value:e.user_id,children:e.name},n)}))}):(0,N.jsx)("div",{className:S,children:(0,N.jsxs)("span",{children:["请先将新的管理员通过",(0,N.jsx)("a",{className:C,onClick:function(){var e;r({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:null===(e=n.actionTabs.params)||void 0===e?void 0:e.id}}})},children:'"添加合作者"'}),"加入合作者列表"]})})})]})})})),B=t(99313),Z=t(73488),T=B.Z.TabPane,I=function(e){var n=e.visible,t=e.onCancel,r=(e.onSelectGroup,e.shixunId),a=e.onSelectCollaborator;return(0,N.jsx)(f.Z,{title:"添加合作者",open:n,width:1100,centered:!0,keyboard:!1,onCancel:t,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400,padding:"0 20px 20px 20px"},footer:null,children:(0,N.jsx)(B.Z,{defaultActiveKey:"1",children:(0,N.jsx)(T,{tab:"搜索添加",children:(0,N.jsx)(Z.Z,{type:1,onCancel:t,container_type:2,container_id:r,onSelect:a})},"1")})})},R={bg:"bg___Onnmh",wrap:"wrap___VTtdp",modal:"modal___MArZa",content:"content___a69LK",head:"head____zVzr",headCount:"headCount___GhK7o",button:"button___DoAh3",itemWrap:"itemWrap___UR35k",imgWrap:"imgWrap___DpS0R",img:"img___N9se3",manager:"manager___m4Mzg",itemContent:"itemContent___Ut7hr",nameWrap:"nameWrap___y73uS",name:"name___hJUHg",actionGroup:"actionGroup___QEytf",deleteIcon:"deleteIcon___XGFcN",schoolWrap:"schoolWrap___qsoOp",school:"school___yh8l2",countWrap:"countWrap___MQKPn",deletetitle:"deletetitle___nAICN",yseTitle:"yseTitle___t5fzp"},P=t(26762),F=t(39911),L=t(18030),U=(0,p.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,user:e.user,loading:t}}))((function(e){var n=e.shixunsDetail,t=(e.globalSetting,e.loading,e.user,e.dispatch),r=e.position,s=(0,d.useRef)(),o=(0,d.useState)(0),l=u()(o,2),w=l[0],j=l[1],y=(0,d.useState)([]),b=u()(y,2),_=b[0],S=b[1],C=(0,d.useState)({id:null,page:1}),k=u()(C,2),D=k[0],B=k[1],Z=(0,p.useParams)(),T=(0,d.useState)({}),U=u()(T,2),O=U[0],H=U[1],Q=(0,d.useMemo)((function(){return(0,A.Ny)()||(null==O?void 0:O.current_user_is_creator)||(null==O?void 0:O.current_user_is_partner)}),[A.Ny,O]),M=(0,d.useMemo)((function(){return(0,A.Ny)()||(null==O?void 0:O.current_user_is_creator)}),[A.Ny,O]);(0,d.useEffect)((function(){s.current=null==Z?void 0:Z.taskId,D.id=null==Z?void 0:Z.taskId,B(D),W(D)}),[]);var W=function(){var e=c()(i()().mark((function e(n){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/sci/projects/".concat(null==Z?void 0:Z.taskId,"/get_project_partners.json"),{method:"get"});case 2:(t=e.sent)&&(S(t.users||[]),j(t.users_count),H(t));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),z=function(){var e=c()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return D.page=1,B(D),n=(0,F.g)(),e.next=5,t({type:"user/getUserInfo",payload:n});case 5:return e.next=7,W(D);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function G(){t({type:"shixunsDetail/setActionTabs",payload:{}})}var V,J,K={visible:"Collaborators-AddCollaborator"===n.actionTabs.key,onCancel:G,shixunId:s.current,onSelectCollaborator:(J=c()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return G(),e.next=3,(0,L.ZP)("/api/sci/projects/".concat(s.current,"/bacht_add_project_partners.json"),{method:"POST",body:{user_ids:n}});case 3:e.sent&&(h.ZP.success("添加成功"),z());case 5:case"end":return e.stop()}}),e)}))),function(e){return J.apply(this,arguments)}),onSelectGroup:(V=c()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return G(),e.next=3,t({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:s.current,group_id:n.group_id}});case 3:e.sent&&(h.ZP.success("添加成功"),z());case 5:case"end":return e.stop()}}),e)}))),function(e){return V.apply(this,arguments)})};return(0,N.jsxs)("section",{children:[(0,N.jsxs)("div",{className:R.wrap,children:[(0,N.jsxs)("div",{className:R.content,children:[(0,N.jsxs)("div",{className:R.head,children:[(0,N.jsxs)("span",{className:R.headCount,children:["合作者(",w,"人)"]}),Q&&(0,N.jsx)("div",{children:(0,N.jsx)(m.ZP,{className:R.button,style:{marginRight:"detail"===r?0:"20px"},onClick:function(){t({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:s.current}}})},icon:(0,N.jsx)(P.Z,{}),children:"添加合作者"})})]}),(0,N.jsx)("div",{className:R.list,children:(0,N.jsx)(x.Z,{loading:!1,active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30",children:_.map((function(e,n){return(0,N.jsx)("div",{style:{display:"inline-block",width:"50%"},children:(0,N.jsxs)("div",{className:R.itemWrap,children:[(0,N.jsxs)("a",{target:"_blank",className:R.imgWrap,children:[(0,N.jsx)("img",{alt:"用户头像",height:"48",width:"48",className:R.img,src:"".concat(g.Z.IMG_SERVER,"/images/").concat(null==e?void 0:e.image_url)}),(null==e?void 0:e.is_creator)&&(0,N.jsx)("span",{className:R.manager,children:"创建者"})]}),(0,N.jsxs)("div",{className:R.itemContent,children:[(0,N.jsxs)("div",{className:R.nameWrap,children:[(0,N.jsx)("a",{target:"_blank",className:R.name,children:null==e?void 0:e.user_name}),(0,N.jsx)("div",{className:R.actionGroup,children:null!=e&&e.is_creator||!M?null:(0,N.jsx)("a",{className:R.deletetitle,onClick:function(){return n=e.id,void f.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:(0,N.jsx)("div",{className:R.modal,children:"确定要删除吗?"}),onOk:(t=c()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/sci/projects/".concat(null==Z?void 0:Z.taskId,"/del_project_partner.json"),{method:"DELETE",body:{user_id:n}});case 2:e.sent,h.ZP.info("删除成功"),D.page=1,B(D),W(D);case 7:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})});var n,t},children:"删除"})})]}),(0,N.jsx)("p",{className:R.schoolWrap,children:(0,N.jsx)("span",{className:R.school,children:null==e?void 0:e.school_name})})]})]})},n)}))})})]}),w>10&&(0,N.jsx)("div",{className:R.countWrap,children:(0,N.jsx)(v.Z,{showQuickJumper:!1,showSizeChanger:!1,total:w,onChange:function(e){return function(e){D.page=e,B(D),W(D)}(e)},pageSize:10,current:D.page})})]}),(0,N.jsx)(E,{onReloadData:z}),(0,N.jsx)(I,a()({},K))]})}))},39494:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Dn}});var r,a,s=t(37205),i=t.n(s),o=t(85573),c=t.n(o),l=t(7557),u=t.n(l),d=t(41498),p=t.n(d),f=t(79800),h=t.n(f),m=t(39647),x=t.n(m),v=t(82242),g=t.n(v),A=t(59301),w=t(5296),j=t(70089),y=t(24808),b=t(31797),_=t(78241),S=t(43418),C=t(3113),k=t(43428),N=t(8591),D=t(92832),E=t(94001),B=(t(88780),t(95237)),Z=t(43604),T=t(35423),I=t(56102),R=t(48064),P=t(680),F=t(98382),L=t(92723),U=t(18030),O=t(21082),H=t(37712),Q=(0,A.forwardRef)((function(e,n){e.time;console.log("ScreenRecord:",n);var t=(0,A.useRef)(),r=(0,A.useState)(),a=h()(r,2),s=(a[0],a[1],(0,A.useRef)()),i=[];function o(){return(o=p()(u()().mark((function e(n,t){var r,a;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=[],e.next=3,new MediaRecorder(n);case 3:(a=e.sent).ondataavailable=function(e){r.push(e.data)},a.start(),s.current=a,window.recorderRefs=a,a.addEventListener("stop",(function(e){var n=URL.createObjectURL(r[0],{type:"video/mp4"});(0,O.Nd)("xxx.webm",n)}));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function c(){window.recorderRefs?(t.current.srcObject.getTracks().forEach((function(e){e.stop()})),window.recorderRefs.addEventListener("dataavailable",(function(e){var n=URL.createObjectURL(e.data,{type:"video/mp4"});(0,O.Nd)("屏幕录制视频.webm",n)}))):N.ZP.warning("您还没有开启视频录制,请先去录制视频吧!")}function l(){navigator.mediaDevices.getDisplayMedia({video:!0,audio:!0}).then((function(e){return t.current.srcObject=e,i.push(e),t.current.captureStream=t.current.captureStream||t.current.mozCaptureStream,new Promise((function(e){return t.current.onplaying=e}))})).then((function(){return function(e,n){return o.apply(this,arguments)}(t.current.captureStream(),2e3)})).then((function(e){})).catch((function(e){"NotFoundError"===e.name?N.ZP.warning("找不到摄像头或麦克风。无法录制."):N.ZP.warning(e.name)}))}return(0,A.useImperativeHandle)(n,(function(){return{startScreenRecord:l,downloadFile:c}})),(0,H.jsx)("div",{style:{position:"absolute",top:"0",zIndex:-1},children:(0,H.jsx)("video",{onPause:function(){},width:"60",height:"120",autoPlay:!0,muted:!0,ref:t})})})),M=Q,W=function(e){var n=e.className,t=(e.mirror_description,e.git_url),r=(e.difficulty,e.task_pass,e.test_set_permission,e.onVncAction),a=(e.shixun,e.window_vnc_url),s=(e.linux_vnc,e.vnc_url),i=e.unity_3d_routes,o=e.taskData;console.log(o);var c=(0,w.useParams)(),l=(0,A.useState)("8082"),d=h()(l,2),f=d[0],m=d[1],x=(0,A.useState)(!1),v=h()(x,2),g=v[0],j=(v[1],(0,A.useState)(!1)),y=h()(j,2),b=y[0],_=y[1],k=(0,A.useRef)(),E=a?"C:/Windows/AppReadiness/userfiles":"/data/workspace/userfiles",Q=a?"C:/Windows/AppReadiness/downloadfiles":"/data/workspace/downloadfiles",W=function(){var e=p()(u()().mark((function e(){var n,t,r;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return _(!0),e.next=3,(0,U.ZP)("/api/sci/projects/".concat(c.taskId,"/port_proxy.json"),{method:"post",body:{port:f,position:1}});case 3:null!=(t=e.sent)&&null!==(n=t.data)&&void 0!==n&&n.url&&(0,O.xg)(null==t||null===(r=t.data)||void 0===r?void 0:r.url),_(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,H.jsxs)("div",{className:"tpi-code-setting ".concat(n),style:{height:"calc(100vh - 54px )"},children:[(0,H.jsx)("h3",{children:"功能"}),(0,H.jsxs)("section",{children:[(0,H.jsxs)("a",{id:"full-screen",title:"全屏",className:"file-item action",onClick:function(){r("full-screen")},children:[" ",(0,H.jsx)("i",{className:"iconfont icon-quanping"}),"开启 / 退出全屏 "]}),!i&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)("a",{id:"reset-task",onClick:function(){return r("reset-task")},className:"file-item action",title:"重置环境",children:[" ",(0,H.jsx)("i",{className:"iconfont icon-zhongzhishixun"}),"重置环境 "]}),(0,H.jsxs)("a",{onClick:function(){S.Z.info({title:"文件上传",icon:null,okText:"关闭",width:600,centered:!0,content:(0,H.jsx)("div",{className:"pt10",children:(0,H.jsx)(F.Z,{isDragger:!0,maxSize:1024,additionalText:'默认存放目录路径为"'.concat(E,'"'),action:"".concat(L.Z.API_SERVER,"/api/sci/projects/").concat(c.taskId,"/upload_file.json"),onChange:function(e){e.every((function(e){var n;return 0===(null===(n=e.response)||void 0===n?void 0:n.status)}))&&(S.Z.destroyAll(),N.ZP.info("文件上传成功"))}})})})},className:"file-item action",title:"上传文件",children:[" ",(0,H.jsx)("i",{className:"iconfont icon-shangchuanshipin1"}),"上传文件"]}),(0,H.jsxs)("a",{onClick:function(){var e;S.Z.confirm({title:"下载代码",centered:!0,width:600,content:"代码下载功能:将“".concat(Q,"”目录进行打包并下载"),onOk:(e=p()(u()().mark((function e(){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,U.ZP)("/api/sci/projects/".concat(c.taskId,"/download_file.json"),{method:"post",body:{autoDownload:!0},headers:{responseType:"arraybuffer",Accept:"application/vnd.ms-excel;charset=utf-8"}});case 2:return e.abrupt("return",!0);case 3:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},className:"file-item action",title:"下载文件",children:[" ",(0,H.jsx)("i",{className:"iconfont icon-xiazai3"}),"下载文件"]}),(0,H.jsxs)("a",{onClick:function(){var e,n;null===(e=k.current)||void 0===e||null===(n=e.startScreenRecord)||void 0===n||n.call(e)},className:"file-item action",title:"屏幕录制",children:[" ",(0,H.jsx)("i",{className:"iconfont icon-jiaruketang1"}),"屏幕录制"]}),(0,H.jsxs)("a",{className:"file-item action w100",title:"ssh直连",children:[" ",(0,H.jsx)("i",{className:"iconfont icon-wodegongzuotai"}),(0,H.jsx)(B.Z,{align:"middle",className:"w100",children:(0,H.jsx)(Z.Z,{flex:"1",onClick:function(){var e=o.webssh;S.Z.info({title:"SSH直连",width:600,centered:!0,content:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(B.Z,{children:[(0,H.jsx)(Z.Z,{flex:"50px",children:"账号"}),(0,H.jsx)(Z.Z,{children:null==e?void 0:e.username})]}),(0,H.jsxs)(B.Z,{children:[(0,H.jsx)(Z.Z,{flex:"50px",children:"地址"}),(0,H.jsx)(Z.Z,{children:null==e?void 0:e.address})]}),(0,H.jsxs)(B.Z,{children:[(0,H.jsx)(Z.Z,{flex:"50px",children:"端口"}),(0,H.jsx)(Z.Z,{children:null==e?void 0:e.servicePort})]}),(0,H.jsxs)(B.Z,{children:[(0,H.jsx)(Z.Z,{flex:"50px",children:"密码"}),(0,H.jsx)(Z.Z,{children:null==e?void 0:e.password})]})]})})},children:(0,H.jsx)(C.ZP,{type:"text",loading:g,children:(0,H.jsx)("span",{style:{color:"#ddd",marginLeft:-11},children:"ssh直连"})})})})]}),(s||"webssh"===o.mirror_type)&&(0,H.jsxs)("a",{className:"file-item action w100",title:"服务预览",children:[" ",(0,H.jsx)("i",{className:"iconfont icon-suanfasheji"}),(0,H.jsxs)(B.Z,{align:"middle",className:"w100",children:[(0,H.jsx)(Z.Z,{flex:"1",onClick:W,children:(0,H.jsx)(C.ZP,{type:"text",loading:b,children:(0,H.jsx)("span",{style:{color:"#ddd",marginLeft:-11},children:"服务预览"})})}),(0,H.jsxs)(Z.Z,{children:[(0,H.jsx)("a",{href:"javascript:;",onClick:W,className:"c-blue",children:"端口号"})," ",(0,H.jsx)(D.Z,{onChange:function(e){return m(e.target.value)},style:{width:50},value:f})]})]})]}),a&&(0,H.jsxs)("a",{id:"reset-task",onClick:function(){var e;S.Z.confirm({title:"重启云主机",icon:(0,H.jsx)(P.Z,{}),content:"您确定要重启云主机吗?",centered:!0,okText:"确定",cancelText:"取消",onOk:(e=p()(u()().mark((function e(){var n;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,R.Jd)({identifier:c.taskId});case 2:return 0===(null==(n=e.sent)?void 0:n.status)&&N.ZP.info("重启成功"),e.abrupt("return","");case 5:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},className:"file-item action",title:"重启云主机",children:[" ",(0,H.jsx)(T.Z,{style:{marginRight:21,color:"#FFF"},className:"c-white font16"}),"重启云主机 "]}),t?(0,H.jsx)(I.CopyToClipboard,{text:t,onCopy:function(){return N.ZP.success("复制成功")},children:(0,H.jsxs)("a",{id:"copy-git",title:"复制版本库地址",className:"file-item action",children:[" ",(0,H.jsx)("i",{className:"iconfont icon-fuzhibanbenkudizhi1"}),"复制版本库地址 "]})}):null]})]}),(0,H.jsx)(M,{ref:k})]})},z=t(77818),G=t(6848),V=t(27092),J={flex_box_center:"flex_box_center___ayVLf",flex_space_between:"flex_space_between___pLloZ",flex_box_vertical_center:"flex_box_vertical_center___eX0c1",flex_box_center_end:"flex_box_center_end___KU45M",flex_box_column:"flex_box_column___cZiLo",wrap:"wrap___x0TPJ",list:"list___Bn7Fe",page:"page___zVCLY"},K=null!==(r=(0,O.oP)())&&void 0!==r&&r.homework_common_id?{homework_common_id:null===(a=(0,O.oP)())||void 0===a?void 0:a.homework_common_id}:{};function X(e,n,t){return(0,U.U2)("tasks/".concat(e,"/star.json"),{star:t,shixun_id:n})}function q(e,n){return(0,U.U2)("tasks/".concat(e,"/rep_content.json"),g()(g()({},n),K))}function Y(e,n){return(0,U.v_)("myshixuns/".concat(e,"/update_file.json"),n)}function $(e,n){return(0,U.v_)("myshixuns/".concat(e,"/reset_repository.json"),n)}function ee(e){return(0,U.v_)("tasks/".concat(e,"/plus_or_cancel_praise.json"))}function ne(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,U.v_)("myshixuns/".concat(e,"/repository.json"),n)}function te(e){return re.apply(this,arguments)}function re(){return(re=p()(u()().mark((function e(n){var t;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,U.v_)("/sci/projects/".concat(n,"/delete_pod.json"));case 2:if(!((null==(t=e.sent)?void 0:t.status)>=0)){e.next=5;break}return e.abrupt("return",(0,U.v_)("/sci/projects/".concat(n,"/start_environment.json"),K));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ae(e,n,t){return(0,U.v_)("tasks/".concat(e,"/set_games_status.json"),{result:n,data:t})}function se(e){return(0,U.v_)("/sci/projects/".concat(e,"/extend_release.json"))}function ie(e,n){return(0,U.v_)("/sci/projects/".concat(e,"/save_mirror.json"),g()({},n))}var oe=["userDetail","user","globalSetting","loading","dispatch","onClose","shixun"],ce=(0,w.connect)((function(e){var n=e.user,t=e.userDetail,r=e.loading;return{user:n,userDetail:t,shixunsDetail:e.shixunsDetail,globalSetting:e.globalSetting,loading:r.models.index}}))((function(e){e.userDetail,e.user,e.globalSetting,e.loading,e.dispatch,e.onClose,e.shixun;var n=x()(e,oe),t=(0,w.useParams)(),r=(0,A.useState)([]),a=h()(r,2),s=a[0],o=a[1],c=(0,A.useState)(""),l=h()(c,2),d=l[0],f=l[1],m=(0,A.useState)(0),v=h()(m,2),j=v[0],y=v[1],b=(0,A.useState)(g()({page:1,limit:20},t)),_=h()(b,2),S=_[0];_[1],(0,A.useCallback)((function(){return n.visible}),[n.visible]);(0,A.useEffect)((function(){S.page=1,C()}),[n.visible]);var C=function(){var e=p()(u()().mark((function e(){var n;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r=t.taskId,(0,U.U2)("sci/projects/".concat(r,"/get_data_sets.json"));case 2:(n=e.sent)&&(o(i()(n.data_sets)),y(n.data_sets_count),f(n.folder_name));case 4:case"end":return e.stop()}var r}),e)})));return function(){return e.apply(this,arguments)}}();return(0,H.jsxs)("div",{style:{height:"calc(100vh - 51px)",padding:"20px 15px"},children:[(0,H.jsx)("div",{className:"c-grey-999 font14 ml5 mb5",children:"数据集"}),(0,H.jsxs)("dl",{className:J.list,children:[(0,H.jsx)(G.Z,{title:d,children:(0,H.jsx)("dt",{className:"c-white",children:d})}),(0,H.jsx)("dd",{children:(0,H.jsx)(I.CopyToClipboard,{text:d,onCopy:function(){return N.ZP.success("复制成功")},children:(0,H.jsx)("span",{className:"".concat(J.copy," current"),children:"点击复制"})})})]}),(0,H.jsx)("div",{className:"c-grey-999 font14 ml5 mb5",children:"文件路径"}),null==s?void 0:s.map((function(e,n){return(0,H.jsxs)("dl",{className:J.list,children:[(0,H.jsx)(G.Z,{title:e.filename,children:(0,H.jsx)("dt",{className:"c-white",children:e.filename})}),(0,H.jsx)("dd",{children:(0,H.jsx)(I.CopyToClipboard,{text:e.file_path,onCopy:function(){return N.ZP.success("复制成功")},children:(0,H.jsx)("span",{className:"".concat(J.copy," current"),children:"点击复制"})})})]})})),(0,H.jsx)("div",{className:"tc",children:(0,H.jsx)(V.Z,{onChange:function(e){S.page=e,C()},className:J.page,size:"small",total:j,pageSize:S.limit,hideOnSinglePage:!0})})]})})),le=t(50021),ue=t(13275),de=t(97960),pe=b.Z.Countdown;var fe=function(e){var n=e.mirror_description,t=e.difficulty,r=e.git_url,a=e.vnc_url,s=e.window_vnc_url,i=e.linux_vnc,o=(e.isNotice,e.user,e.game,e.shixun),c=void 0===o?{}:o,l=e.taskData,d=void 0===l?{}:l,f=e.resetVncLoading,m=(e.onUpdateCostTime,e.lastedGetTaskInfoTime,e.onShowNotice,e.onResetGitCode),x=e.onResetVnc,v=(e.onBack,e.onAddVncTime),j=(e.onUpdateCode,e.unity_3d_routes),b=e.remaining_time,B=(e.st,(0,w.useSearchParams)()),Z=h()(B,1)[0],T=c.name,I=(c.identifier,c.task_pass),R=c.test_set_permission,F=(0,A.useState)(!1),L=h()(F,2),U=L[0],O=L[1],Q=(0,A.useState)(!1),M=h()(Q,2),z=M[0],G=M[1],V=(0,A.useState)({}),J=h()(V,2),K=J[0],X=(J[1],(0,A.useState)(!1)),q=h()(X,2),Y=q[0],$=q[1],ee=(0,A.useState)(null),ne=h()(ee,2),te=(ne[0],ne[1],(0,A.useState)(1800)),re=h()(te,2),ae=re[0],se=re[1],oe=(0,A.useState)(!1),fe=h()(oe,2),me=(fe[0],fe[1],(0,A.useState)(!1)),xe=h()(me,2),ve=xe[0],ge=xe[1],Ae=((0,w.useLocation)().query,(0,w.useParams)()),we=(0,A.useState)(!1),je=h()(we,2),ye=je[0],be=je[1],_e=_.Z.useForm(),Se=h()(_e,1)[0],Ce=(0,A.useMemo)((function(){return Date.now()+b}),[b]);(0,A.useEffect)((function(){Y||setTimeout((function(){$(!0)}),6e4)}),[Y]),(0,A.useEffect)((function(){le.Z.subscribe("update-windows-time",(function(e){se(parseInt(b/1e3))})),se(b/1e3)}),[]),(0,A.useEffect)((function(){var e;return"exercises"===Z.get("type")&&null!=K&&null!==(e=K.exercise)&&void 0!==e&&e.screen_open&&(de.U.forEach((function(e,n){document.addEventListener(e,ke,!1),document.addEventListener("blur",ke,!1)})),window.focus(),window.onblur=function(){(0,ue.vp)()&&(ke(),(0,ue.BU)())}),function(){de.U.forEach((function(e,n){document.removeEventListener(e,ke,!1)}))}}),[K]);var ke=function(e){window.parent.postMessage("backExercise","*"),"back"!==e&&(0,ue.BU)()};function Ne(){O(!1),G(!1)}function De(){(0,w.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),w.history.replace("/innovation/project/detail/".concat(Ae.taskId))}function Ee(){f||x()}var Be={task_pass:I,test_set_permission:R,mirror_description:n,difficulty:t,resetVncLoading:f,git_url:r,onVncAction:function(e){var n,t;Ne(),"reset-task"===e&&(f||S.Z.confirm({title:"重置环境",icon:(0,H.jsx)(P.Z,{}),content:"是否确定重置环境?",centered:!0,okText:"确定",cancelText:"取消",onOk:function(){Ee(),$(!1)}})),"reset-code"===e&&(f||S.Z.confirm({title:"恢复初始代码",icon:(0,H.jsx)(P.Z,{}),content:"您在本文件中修改的内容将丢失,是否确定重新加载初始代码?",centered:!0,okText:"确定",cancelText:"取消",onOk:m})),"full-screen"===e&&((0,ue.vp)()?(0,ue.BU)():(0,ue.Dj)(null===(n=document)||void 0===n||null===(t=n.getElementById)||void 0===t?void 0:t.call(n,"task-right-panel"))),"show-clipboard-box"===e&&le.Z.publish("show-clipboard-box")},window_vnc_url:s,linux_vnc:i,vnc_url:a,shixun:c,unity_3d_routes:j},Ze=(0,A.useCallback)((function(){return ae?(console.log("VncTimer:",ae),(0,H.jsx)(he,{defaultTime:ae,onAddVncTime:v,onReset:Ee,toShixun:De,title:""})):null}),[ae]);return(0,A.useEffect)((function(){ve&&Se.setFieldsValue({name:"",version:"",description:""})}),[ve]),(0,H.jsxs)("div",{className:"task-header-container",children:["exercises"!==Z.get("type")&&(0,H.jsx)(H.Fragment,{children:d.name}),(0,H.jsx)("h2",{className:"shixun-info",children:T}),(0,H.jsx)(H.Fragment,{children:(0,H.jsxs)("div",{className:"flex-container",children:[(0,H.jsxs)(H.Fragment,{children:[s&&(0,H.jsx)(w.Link,{onClick:function(e){e.preventDefault(),le.Z.publish("send-ctrl-alt-delete")},className:"c-grey-c mr20",children:"发送CTRL+ALT+DELETE"}),Ze()]}),(0,H.jsx)("i",{className:"iconfont icon-shijian1"}),(0,H.jsx)(pe,{valueStyle:{color:"white",fontSize:"12px"},style:{marginRight:20,marginLeft:5},value:Ce}),(0,H.jsxs)("a",{className:"btn-vnc",title:"工具栏",onClick:function(){O(!U)},children:[(0,H.jsx)("img",{alt:"tool",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAABZ0lEQVRYR+2YrU7FQBBGzzwEPAMSi+M6MARDggNJgiIkWLiSBIFCkyCuQECCQFIcEstb8AYf2ZvmhpbuT9ttUpJWdma+OZ3O7k5rRC5Jh8ARsBPzjdhvgXczew75WSyJpCdgP+aXaP8ws63OQJK2gbdSYJ6Y1Od2WRpmZlb4nIIVqgEFhUKwbXTGByRpDzgBdnu+kr7hD8CLSboGLvqqZYp/dEDK1LR9mZZNXwEys6u+ql3iJbm8E5C3eFOFYn2VrUKS1oADYL1M+gW8mtl3DOK3PQuQpE1gAWzUkn8CZ6Hzqg6bC+gcuPFU4s7MTlOrlAvITQFuGijMbOaSS/pzLwXKB+QdCQKiXqAUkJqP06rs1B00liFNFeqqVQEaXYXmbc6ypn7J3UNtgUa3ysa1D5XLfDw7dedl1BCYZWOcgHJWIKb1f15Z7EkGtq+G/NXEP3DCFPl79xnkTln3u+U4JWJAH/czo/gBVkc5pun3NGoAAAAASUVORK5CYII=",width:16}),"工具栏"]}),(0,H.jsxs)("a",{className:"btn-vnc",title:"数据集",onClick:function(){return G(!0)},children:[(0,H.jsx)("img",{alt:"tool",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABqVJREFUeF7tm3eoXUUQxr9REXtXbIiKARs2xAKiBlGx+4cNUaOoCWKikChqjMbYYksUC5ZIiCLYwBYldkVFUOwVC/YC9ooF8ZMvzD7Hk3PvO+eePfc94Q5ceLx7zu7Mb2dnd2fnGvosJI8FsAuA1QC8CWCumb3dZzWGurN+dUxyVwCnANin0Of3AC7Tx8z+7Jc+qZ/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ZJrKMsD4IjwZaOltu8eULTKc3oCkVLdekRZHIF4LnjOeZ7tSf/SaCuYNkqHjziAYKByeoriUXT58Yi7e9rIaH7LcC2rjWXUAJAlJFfxXdv4EssU0WW4gGSTUQUgeMMWDiLl/MeZmXJ62WVUAggg0j59rJk9md363GeB3AqG0RkAGHjAYAoMYsAgCOYOsr73yJcRyq3gYBX4N183WAYHy+BgGRwsg9mXQU/jv5eCd52LkaUAqJhReT7dqk5vo463zVWApK7JYwptvpnpLqFUym6HdeOj+3aJbluUqlLlxW+5lsM2AJBUlZpS8yrCjtL1irz00pBkhKDGVPwkCJUrL7rByg2A5IMAUvlO6vprACfWrg8IZ/axXp4Ws7z3OAjl9nqWXABIFvOJSadrAczuVhcwFB+Gs4LkOAehbE4S5ezVwWfDvV/2fVMAJA8AcFco00vdPOB6Va4orVQm59fQKmbWZyXvTbX9p5rZlXUh9AqA5NoAlDzdptCnSuQ0ILqVqiWVAIRpocsPQTgu9KL7eN0S31e1514AkLyx5Jr+Rxnuxv9Stf/4XC0AAYQCjkDE63KNzDQze204ReoA8DqAq0ranOvxSAPQs/QEIIDQmisQqSBJXyk+qIpEvwgplSoAvBZZBVoqk42iyg+5uyrIG0sjAOrdr69TfFgmaDSx051gNwAkl/BN2IEF6951w1XCl00aAwjeoLtAgTgqaPcJgPFm9lDUuBMAkmer/KZgnS5Y0zxvdF1WRi0bgABCBZaqMNVP45Ko8kwgFtbrFQH4T2y0yVqhoKT+J3d/OduQFxrKDiCAUEWHPGKD0OccMxsfAfiIx98W6fGn3PBGpfBVoLUGwEdadcYpPixeQSH9EkQjXhb1K7xe/5FWAQRv2M5BHNpBRRU5pXneuLSmDoa+AAggVPoij1AtchJdlWvUh2oG6hjQ9Nm+AgggVJGqz4KRMjzpMiIAmo5azvcHAHLS/D+29Q9mll9ufOAEPQAAAABJRU5ErkJggg==",width:18}),"数据集"]})]})}),(0,H.jsx)(C.ZP,{type:"primary",disabled:!Y,className:"save-innovation",onClick:p()(u()().mark((function e(){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ge(!0);case 1:case"end":return e.stop()}}),e)}))),children:"保存镜像"}),(0,H.jsx)("a",{className:"btn-out",onClick:function(){S.Z.confirm({title:"退出",icon:(0,H.jsx)(P.Z,{}),content:"您确定要退出制作镜像吗?",centered:!0,okText:"确定",cancelText:"取消",onOk:De})},title:"退出实训",children:(0,H.jsx)("i",{className:"iconfont icon-kaiguan"})}),(0,H.jsx)(y.Z,{children:(0,H.jsx)(k.Z,{rootClassName:"setting-drawer",title:null,placement:"right",closable:!1,open:U,onClose:Ne,children:(0,H.jsx)(W,g()(g()({},Be),{},{taskData:d}))})}),(0,H.jsx)(y.Z,{children:(0,H.jsx)(k.Z,{rootClassName:"setting-drawer",title:null,placement:"right",closable:!1,open:z,onClose:Ne,style:{height:"100%"},children:(0,H.jsx)(ce,{})})}),(0,H.jsx)(S.Z,{title:"保存镜像",open:ve,okButtonProps:{loading:ye},onCancel:function(){ge(!1)},onOk:function(){Se.submit()},children:(0,H.jsxs)("div",{children:[(0,H.jsx)("p",{style:{color:"#6B758B"},children:"把当前的环境存为一个新的镜像。确定保存后,在我的镜像可以看到该镜像的保存状态。"}),(0,H.jsxs)(_.Z,{labelCol:{span:4},wrapperCol:{span:20},form:Se,onFinish:function(){var e=p()(u()().mark((function e(n){var t;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return be(!0),e.next=3,ie(Ae.taskId,n);case 3:0==(null==(t=e.sent)?void 0:t.status)&&(N.ZP.info("保存成功"),ge(!1)),-5===(null==t?void 0:t.status)&&S.Z.confirm({title:"覆盖镜像提示",content:"系统检测到你的【镜像列表】存在同名且同版本号的镜像, 您确定要覆盖原来的镜像?",okText:"确认",cancelText:"取消",onOk:function(){var e=p()(u()().mark((function e(){var t;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ie(Ae.taskId,g()({is_cover:!0},n));case 2:0==(null==(t=e.sent)?void 0:t.status)&&(N.ZP.info("覆盖成功"),ge(!1));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),be(!1);case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),children:[(0,H.jsx)(_.Z.Item,{label:"镜像名称",name:"name",rules:[{required:!0,message:"请输入镜像名称"},{pattern:/^[a-z0-9_]+$/,message:"只允许输入数字或小写字母"}],children:(0,H.jsx)(D.Z,{type:"text",maxLength:60})}),(0,H.jsx)(_.Z.Item,{label:" 版本号",name:"version",rules:[{required:!0,message:"请输入版本号"}],children:(0,H.jsx)(E.Z,{style:{width:"100%"}})}),(0,H.jsx)(_.Z.Item,{label:"镜像描述",name:"description",rules:[{required:!0,message:"请输入镜像描述"}],children:(0,H.jsx)(D.Z.TextArea,{})})]})]})})]})};function he(e){var n=e.onAddVncTime,t=e.onReset,r=e.toShixun,a=(e.title,e.defaultTime),s=(0,A.useState)(a),i=h()(s,2),o=i[0],c=i[1],l=(0,A.useState)(!1),d=h()(l,2),f=d[0],m=d[1];function x(){return(x=p()(u()().mark((function e(){var r;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m(!1),!(o>0)){e.next=8;break}return e.next=4,n();case 4:r=e.sent,c((null==r?void 0:r.remaining_time)/1e3),e.next=10;break;case 8:c(a),t();case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,z.Z)((function(){c(o-1)}),o>0?1e3:null),(0,A.useEffect)((function(){300===o&&m(!0)}),[o]),(0,A.useEffect)((function(){a<300&&m(!0),c(a)}),[a]),(0,H.jsx)(A.Fragment,{children:(0,H.jsx)(y.Z,{children:(0,H.jsx)(S.Z,{title:[(0,H.jsx)(P.Z,{className:"modalIconYellow"}),0!==o?"实验环境延时提醒":"实验环境重置提醒"],closable:!1,centered:!0,open:f,onOk:function(){return x.apply(this,arguments)},onCancel:function(){0!==o?m(!1):r()},okText:0!==o?"立即延长":"重置",cancelText:0!==o?"不需要":"退出",children:0!==o?"当前实验环境将于 ".concat(Math.round(o/60)," 分钟后关闭,需要延长使用时间吗?"):"由于长时间没有使用,资源已经被回收。如有需要,可以重置实验环境。"})})})}var me=t(38318);function xe(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=[],r=0;r0||a.target.offsetWidth>0){var s=Se(a.target.offsetWidth,a.target.offsetHeight,e),i=h()(s,2),o=i[0],c=i[1];console.log("cols, rows",o,c),le.Z.publish("ssh-xterm-resize",{columns:o,rows:c,width:a.target.offsetWidth,height:a.target.offsetHeight}),e.resize(o,c);var l=we.Base64.decode("IA=="),u=we.Base64.decode("CBtbSw==");e.write(l),e.write(u)}}}catch(e){r.e(e)}finally{r.f()}}));return t.observe(n),t}(e,u.current);return function(){null==e||e.dispose(),null==n||n.unobserve(u.current)}}}),[o,u.current]),(0,A.useEffect)((function(){if(s&&o){var e=setInterval((function(){d.current&&d.current.send(JSON.stringify({tp:"h"}))}),3e4),r=le.Z.subscribe("create-socket",(function(r){var a;t==r&&(d.current&&1===d.current.readyState?s.focus():(a=new WebSocket(o),console.log("socketInstance:",o),d.current=a,a.onopen=function(){var e=s.element.parentElement;if(e){var t=e.offsetWidth,r=e.offsetHeight;console.log("init",{tp:"init",data:g()(g()({},n),{},{secret:c,width:t,height:r,rows:s.rows,columns:s.cols})}),a.send(JSON.stringify({tp:"init",data:g()(g()({},n),{},{secret:c,width:t,height:r,rows:s.rows,columns:s.cols})}))}s.focus()},a.onerror=function(e){console.log("------in socket error----",e,a,o)},a.onmessage=function(e){p.current||(s.write("\r"),setTimeout((function(){}),1e3)),p.current=!0,console.log("event:",e);var n=we.Base64.decode(e.data.toString()),t=s._core._renderService.dimensions.actualCellWidth||9.5;console.log("data:",n,t,s),s.write(n)},a.onclose=function(n){e&&clearInterval(e),s.write("\r\nconnection closed")}),s.focus())})),a=le.Z.subscribe("close-socket",(function(e){t===e&&(d.current&&(d.current.close(),p.current=!1,s.clear()),d.current=null)})),i=le.Z.subscribe("ssh-xterm-resize",(function(e){d.current&&1===d.current.readyState&&d.current.send(JSON.stringify({tp:"resize",data:g()({},e)}))})),l=le.Z.subscribe("ssh-add-connect-time",(function(){d.current&&1===d.current.readyState&&d.current.send(JSON.stringify({tp:"overtime"}))}));return function(){a(),r(),i(),l(),d.current&&(d.current.close(),p.current=!1)}}}),[s,o,l]),(0,H.jsx)("div",{className:ye,children:(0,H.jsx)("div",{ref:u,className:be,children:o?null:(0,H.jsx)("p",{style:{color:"#fff"},children:"正在连接命令行服务..."})})})},ke=t(93948),Ne=t(62013),De=D.Z.TextArea,Ee=function(e){var n=e.onCancel,t=e.onSave,r=e.content,a=(0,A.useState)(r),s=h()(a,2),i=s[0],o=s[1];return(0,A.useEffect)((function(){o(r)}),[r]),(0,H.jsxs)("div",{className:"clipboard-box",children:[(0,H.jsx)("h3",{children:"实验环境剪切板:"}),(0,H.jsx)(De,{value:i,onChange:function(e){o(e.target.value)},className:"clipboard"}),(0,H.jsxs)("p",{children:[" ",(0,H.jsx)("b",{children:" 1.从外部复制内容到实验环境内: "})," 粘贴内容到上面文本框,点击保存,然后在实验环境中进行粘贴。 "]}),(0,H.jsxs)("p",{children:[" ",(0,H.jsx)("b",{children:" 2.获取实验环境中的内容: "})," 请先在环境中复制内容,复制动作完成后内容会显示在上面文本框,然后在上面文本框中再次复制。 "]}),(0,H.jsxs)("div",{className:"btn-action-container",children:[(0,H.jsx)(C.ZP,{type:"ghost",onClick:n,style:{marginRight:10},children:"取消"}),(0,H.jsx)(C.ZP,{type:"primary",onClick:function(){t(i)},children:"保存"})]})]})},Be=t(42141),Ze="selectImage___t63KU",Te="container___WChhl",Ie=t(61186),Re=t.n(Ie);Be.Z;function Pe(e){e||(e=window.location.search);var n=e.substr(1),t={};return n.split("&").forEach((function(e){var n=e.split("=");t[n[0]]=decodeURIComponent(n[1])})),t}var Fe={loading:!0,isLarge:!1,showClipBoardBox:!1,transferContent:"",mes:"实验环境准备中"},Le=function(e){return e[e.SET_LOADING=0]="SET_LOADING",e[e.SET_IS_LARGE=1]="SET_IS_LARGE",e[e.SET_MES=2]="SET_MES",e[e.SET_STATE=3]="SET_STATE",e[e.SHOW_CLIPBOARD_BOX=4]="SHOW_CLIPBOARD_BOX",e[e.SET_TRANSFER_CONTENT=5]="SET_TRANSFER_CONTENT",e[e.UPDATE_ALL=6]="UPDATE_ALL",e}(Le||{});function Ue(e,n){switch(n.type){case Le.SET_LOADING:return g()(g()({},e),{},{loading:n.payload});case Le.SET_IS_LARGE:return g()({},g()(g()({},e),{},{isLarge:n.payload}));case Le.SET_MES:return g()(g()({},e),{},{mes:n.payload});case Le.SET_STATE:return g()(g()({},e),n.payload);case Le.SET_TRANSFER_CONTENT:return g()(g()({},e),{},{transferContent:n.payload});case Le.SHOW_CLIPBOARD_BOX:return g()(g()({},e),{},{showClipBoardBox:n.payload});case Le.UPDATE_ALL:return g()({loading:e.loading},n.payload);default:throw new Error}}var Oe=function(e){var n,t=e.vnc_url,r=e.window_vnc_url,a=e.linux_vnc,s=e.virtual_machine,i=(e.taskId,e.taskData),o=(0,A.useRef)(),c=(0,A.useRef)(),l=(0,A.useRef)(),d=(0,A.useRef)(),f=(0,A.useState)(),m=h()(f,2),x=m[0],v=m[1],g=(0,A.useState)(!1),b=h()(g,2),_=b[0],k=b[1],D=(0,A.useReducer)(Ue,Fe),E=h()(D,2),T=E[0],I=E[1],R=(0,A.useState)(0),P=h()(R,2),F=P[0],L=P[1],U=T.mes,O=T.loading,Q=T.showClipBoardBox,M=T.isLarge,W=T.transferContent,z=(0,A.useState)(0),G=h()(z,2),V=G[0],J=G[1],K=(0,A.useRef)();(0,w.useParams)();(0,A.useEffect)((function(){return window.addEventListener("visibilitychange",q),function(){var e,n;null===(e=c.current)||void 0===e||null===(n=e.disconnect)||void 0===n||n.call(e),window.removeEventListener("visibilitychange",q)}}),[]),(0,A.useEffect)((function(){return window.sessionStorage.imageId=x,function(){window.sessionStorage.removeItem("imageId")}}),[x]);var X=function(){var e,n;"rdp"===(null==i||null===(e=i.shixun)||void 0===e?void 0:e.windows_connection_mode)?setTimeout((function(){ee()}),1500):void 0!==(null==l||null===(n=l.current)||void 0===n?void 0:n.resizeSession)&&((0,ue.vp)()?l.current.resizeSession=!0:setTimeout((function(){l.current.resizeSession=!1}),900))};(0,A.useEffect)((function(){return window.addEventListener("visibilitychange",q),document.addEventListener((0,ue.gH)(),X),function(){document.removeEventListener((0,ue.gH)(),X),window.removeEventListener("visibilitychange",q)}}),[]);var q=function(e){if("visible"===document.visibilityState){var n=sessionStorage.vncPageLeaveTime;Re()(new Date).diff(Re()(n),"minutes")>2&&L((new Date).getTime()),sessionStorage.removeItem("vncPageLeaveTime")}else sessionStorage.vncPageLeaveTime=new Date};function Y(){I({type:Le.SHOW_CLIPBOARD_BOX,payload:!1})}function $(e){var n;return o.current&&(n=new _e.Z((function(n){var t,r=Ae()(n);try{for(r.s();!(t=r.n()).done;){var a,s,o=t.value;if("rdp"===(null==i||null===(a=i.shixun)||void 0===a?void 0:a.windows_connection_mode)&&ee(),o.target.offsetHeight>0||o.target.offsetWidth>0)null==e||null===(s=e._eventHandlers)||void 0===s||s.windowResize()}}catch(e){r.e(e)}finally{r.f()}}))).observe(o.current),n}function ee(){var e;e=Math.min(document.getElementById("task-right-panel").clientWidth/1920,document.getElementById("task-right-panel").clientHeight/1260),d.current.parentElement.className="wh1080p",d.current.parentElement.style.cssText="transform:scale(".concat(e,");transform-origin:center center"),o.current.style.cssText="translate(-50%, -50%) scale("+e+")"}(0,A.useEffect)((function(){var e,n;function c(e){r&&(N.ZP.warning("由于长时间未操作,连接失效,正在重新连接Windows VNC服务"),I({type:Le.SET_LOADING,payload:!0}),L(F+1))}function d(){J(100),clearTimeout(K.current),setTimeout((function(){var n;null===(n=e)||void 0===n||null===(n=n._eventHandlers)||void 0===n||n.windowResize(),I({type:Le.SET_LOADING,payload:!1})}),1300),le.Z.subscribe("send-ctrl-alt-delete",(function(){var n;null===(n=e)||void 0===n||n.sendCtrlAltDel()}))}function f(e){var n=e.detail.text.replace(/\\u([\dA-Za-z]{4})/g,(function(e,n){return String.fromCharCode(parseInt("0x"+n))}));I({type:Le.SET_TRANSFER_CONTENT,payload:n})}if(le.Z.subscribe("reset-linux-windows-loading",(function(){I({type:Le.SET_LOADING,payload:!0})})),le.Z.subscribe("reset-linux-windos-vnc",(function(){L(F+1)})),(r||t||a||s&&x)&&o.current){var h;clearTimeout(K.current),"rdp"===(null==i||null===(h=i.shixun)||void 0===h?void 0:h.windows_connection_mode)&&ee(),new Promise(p()(u()().mark((function t(){var a,s,p,h,m,x,v;return u()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=Pe(),"",h=new URL(decodeURIComponent(null==i?void 0:i.vnc_url)),m=h.protocol,x=h.searchParams,v=h.host,p=x.get("password"),s="".concat("https:"===m?"wss":"ws","://").concat(v,"/").concat(a.path||"websockify"),e=new Ne.Z(o.current,s,{credentials:{password:p},wsProtocols:["binary"],resize:"scale",show_dot:!0}),n=$(e),e.viewOnly=a.view_only||!1,e.scaleViewport=!!r||(a.scale||!1),e.scaleViewport=!0,e.showDotCursor=!0,e.resizeSession=!0,l.current=e,e.addEventListener("disconnect",c),e.addEventListener("connect",d),e.addEventListener("clipboard",f);case 17:case"end":return t.stop()}}),t)}))));var m=le.Z.subscribe("vnc-reseting",(function(){J(0),I({type:Le.SET_STATE,payload:{loading:!0,mes:"实验环境重置中"}})})),v=le.Z.subscribe("vnc-enlarge",(function(e){})),g=le.Z.subscribe("show-clipboard-box",(function(){I({type:Le.SHOW_CLIPBOARD_BOX,payload:!0})}));return J(0),function(){var t,r,a,s;null===(t=e)||void 0===t||t.removeEventListener("disconnect",c),null===(r=e)||void 0===r||r.removeEventListener("connect",d),null===(a=e)||void 0===a||a.removeEventListener("clipboard",f),m(),v(),g(),null===(s=n)||void 0===s||s.unobserve(o.current)}}}),[t,r,a,F,x]),(0,A.useEffect)((function(){var e,n,t;s&&1===(null==i||null===(e=i.shixun_virtual_templates)||void 0===e?void 0:e.length)?v(null==i||null===(t=i.shixun_virtual_templates)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.template_id):s&&(null==i||null===(n=i.shixun_virtual_templates)||void 0===n?void 0:n.length)>1&&k(!0)}),[s]),(0,A.useEffect)((function(){0==V&&(clearTimeout(K.current),ne())}),[V]);var ne=function e(){V>99?V=99:(V+=1,K.current=setTimeout((function(){e()}),1500)),V<100&&J(V)},te=(0,A.useMemo)((function(){var e;return O?"none":a||s||r&&"rdp"===(null==i||null===(e=i.shixun)||void 0===e?void 0:e.windows_connection_mode)?"block":"none"}),[a,O,s,r]);return(0,H.jsxs)(A.Fragment,{children:[_&&(0,H.jsx)("div",{className:Ze,children:(0,H.jsxs)("section",{className:Te,children:[(0,H.jsx)("h1",{children:"选择角色"}),(0,H.jsx)("aside",{children:null==i||null===(n=i.shixun_virtual_templates)||void 0===n?void 0:n.map((function(e,n){return(0,H.jsxs)(B.Z,{align:"middle",children:[(0,H.jsx)(Z.Z,{flex:"1",children:e.template_name}),(0,H.jsx)(Z.Z,{children:(0,H.jsx)(C.ZP,{type:"primary",onClick:function(){v(e.template_id),k(!1)},children:"开始实验"})})]},n)}))})]})}),M&&(0,H.jsx)("a",{className:"btn-vnc-resize",onClick:function(){I({type:Le.SET_IS_LARGE,payload:!M})},children:(0,H.jsx)("i",{className:"iconfont icon-tuichuquanping"})}),(0,H.jsx)("div",{style:{width:"100%",height:"calc(100% - 50px)",overflow:"hidden",position:"absolute",display:"block"===te?"flex":"none",alignItems:"center",justifyContent:"center",zIndex:6},children:(0,H.jsx)("div",{children:(0,H.jsx)("iframe",{style:{position:M?"fixed":"absolute",left:0,top:M?54:40,width:"100%",height:"calc(100% - ".concat(M?"100px":"45px",")")},frameBorder:"0",ref:d,allowFullScreen:!0})})}),(0,H.jsxs)("div",{style:{position:M?"fixed":"absolute",left:0,top:0,zIndex:5,width:"100%",height:"calc(100% - ".concat(M?"100px":"0",")")},className:"".concat(r?"vnc-panel-wrapper-windows":"vnc-panel-wrapper"," ").concat(M?"full-screen":""),children:[O?(0,H.jsx)(j.Z,{message:U,style:{color:"#0152d9"},children:(0,H.jsx)("div",{className:"tc",style:{width:500,margin:"0 auto",color:"#FFF"},children:(0,H.jsx)(ke.Z,{percent:V,format:function(e){return(0,H.jsxs)("span",{className:"c-white",children:[e,"%"]})}})})}):null,(0,H.jsx)("div",{ref:o,className:"vnc-panel ".concat(O?"hidden zIndexf1":"animated fadeIn")})]}),(0,H.jsx)(y.Z,{children:(0,H.jsx)(S.Z,{title:"复制粘贴",centered:!0,maskClosable:!1,open:Q,onCancel:Y,footer:null,children:(0,H.jsx)(Ee,{onCancel:Y,onSave:function(e){var n;null===(n=l.current)||void 0===n||n.clipboardPasteFrom(e),I({type:Le.SET_TRANSFER_CONTENT,payload:e}),N.ZP.success("保存成功!你可以在实验环境中粘贴该内容"),Y()},content:W})})})]})},He=function(e){var n=e.taskData,t=(e.evaluateLoading,e.evaluateMessage,e.language,e.onEval,n.vnc_url),r=(n.shixun,n.test_sets,n.test_sets_count,n.sets_error_count,n.last_compile_output,n.game,n.allowed_unlock,n.user,(0,A.useState)(!1)),a=h()(r,2),s=a[0],i=(a[1],(0,A.useState)(!1)),o=h()(i,2),c=o[0],l=o[1];return console.log("vnc_url:",t),(0,H.jsxs)(A.Fragment,{children:[(0,H.jsx)(Oe,{vnc_url:t,window_vnc_url:n.windows_vnc,virtual_machine:null==n?void 0:n.virtual_machine,linux_vnc:n.linux_vnc,taskData:n}),c?(0,H.jsx)("div",{className:"vnc-mask"}):null,(0,H.jsx)("div",{className:"vnc-test-list ".concat(s?"large":c?"pop":""),children:(0,H.jsx)("div",{className:"vnc-test-list-body",children:s?null:(0,H.jsx)("span",{className:"arrow-container",onClick:function(){l(!c)},children:(0,H.jsx)("i",{className:"iconfont ".concat(c?"icon-xiajiantou":"icon-shangjiantou"," ")})})})})]})},Qe="bg___xjZP4",Me="content___sS5Wc",We="rightCotainer___Z2h3Y",ze="main___t6BMk",Ge="dataSetButton___H1Oqu",Ve="dataSetText___p9NRw",Je="dataSetOpen___bT5j8",Ke=function(e,n){switch(n.type){case"MOVE_X":return g()(g()({},e),{},{moveX:n.payload});case"SET_DRAGMODULE":return g()(g()({},e),{},{showDragModule:n.payload});case"TRIGGER_RIGHT_PANEL_MASK":return g()(g()({},e),{},{showDragMask:n.payload})}},Xe=["globalSetting","loading","taskData","dispatch"],qe=(b.Z.Countdown,function(e){return e[e.LoadFail=1]="LoadFail",e[e.ReLoad=2]="ReLoad",e[e.Success=3]="Success",e}(qe||{})),Ye={moveX:"40%",showDragModule:!1,showDragMask:!1},$e=(0,w.connect)((function(e){var n=e.loading;return{globalSetting:e.globalSetting,loading:n}}))((function(e){e.globalSetting,e.loading;var n=e.taskData,t=(e.dispatch,x()(e,Xe),(0,w.useParams)(),(0,A.useRef)(),(0,A.useState)(!0)),r=h()(t,2),a=(r[0],r[1],(0,A.useState)(!1)),s=h()(a,2),i=(s[0],s[1],(0,A.useState)(0)),o=h()(i,2),c=(o[0],o[1],(0,A.useState)(0)),l=h()(c,2),d=(l[0],l[1],(0,A.useState)(!0)),f=h()(d,2),m=(f[0],f[1],(0,A.useState)(!1)),v=h()(m,2),g=(v[0],v[1],(0,A.useRef)(!0)),j=(0,A.useState)({}),y=h()(j,2),b=y[0],_=(y[1],(0,A.useState)({})),S=h()(_,2),C=(S[0],S[1],(0,A.useState)()),k=h()(C,2),N=(k[0],k[1],(0,A.useRef)(),(0,A.useState)(qe.Success)),D=h()(N,2),E=(D[0],D[1],(0,A.useState)()),B=h()(E,2),Z=(B[0],B[1],(0,A.useState)()),T=h()(Z,2),I=(T[0],T[1],(0,A.useState)(!1)),R=h()(I,2),P=R[0],F=R[1],L=(0,A.useState)(""),U=h()(L,2),O=(U[0],U[1],(0,A.useRef)(null),(0,A.useRef)({}),(0,A.useRef)(!1)),Q=(0,A.useReducer)(Ke,Ye),M=h()(Q,2),W=M[0],z=M[1];(0,A.useEffect)((function(){return window.addEventListener("message",G),function(){window.removeEventListener("message",G)}}),[]);var G=function(e){"jupytermessage"===(null==e?void 0:e.data)&&g.current&&(g.current=!1,V(),O.current||setTimeout((function(){return g.current=!0}),500))},V=function(){var e=p()(u()().mark((function e(){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,A.useEffect)((function(){function e(e){z({type:"MOVE_X",payload:e.pageX})}function n(){z({type:"TRIGGER_RIGHT_PANEL_MASK",payload:!1}),document.onselectstart=null}return W.showDragMask&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}}),[W.showDragMask]);var J="number"==typeof W.moveX&&.01!==W.moveX?"".concat(W.moveX,"px"):"40%",K="calc(100% - 4px - ".concat(J,")");return(0,H.jsx)("section",{className:Qe,style:{userSelect:W.showDragMask?"none":"unset"},children:(0,H.jsx)("section",{className:Me,style:{height:null!=b&&b.open_evaluate?"calc(100vh - 130px)":"calc(100vh - 60px)"},children:(0,H.jsx)("section",{className:We,style:{width:K},children:(0,H.jsx)("main",{className:ze,style:{height:"100%"},children:(0,H.jsxs)(A.Fragment,{children:[(0,H.jsx)("div",{className:"".concat(Ge," ").concat(P?Je:""),onClick:function(){return F(!P)},children:(0,H.jsx)("span",{className:Ve,children:"数据集"})}),(0,H.jsx)("iframe",{frameBorder:0,id:"taskJupyterIframe",width:"100%",height:"100%",allow:"geolocation; microphone; camera; midi; encrypted-media;",src:null==n?void 0:n.url})]})})})})})})),en=t(50069),nn=t(15179),tn=(t(55945),t(76710)),rn="FETCH_TASK_FAILURE",an="FETCH_TASK_SUCCESS",sn="UPDATE_TASK_DATA",on="HIDE_EVALUATE_RESULT",cn="SHOW_EVALUATE_RESULT",ln="MOVE_X",un="MOVE_Y",dn="TRIGGER_RIGHT_PANEL_MASK ",pn="SHOW_REP_loading",fn="FETCH_REP_CONTENT",hn="EDIT_REP_CONTENT",mn="SHOW_EVALUATE_LOADING",xn="HIDE_EVALUATE_LOADING",vn="SET_EVALUATE_MESSAGE",gn="SET_SHOW_DIR",An="SET_REPOS",wn="HIDE_PICTURE_VIEW",jn="SHOW_PICTURE_VIEW",yn="SHOW_NOTICE",bn="HIDE_NOTICE",_n="SET_VNC_LOADING ",Sn=["match","history"],Cn=me.Z.DirectoryTree,kn={moveX:"40%",moveY:0,loading:!0,isError:!1,taskData:{game:{}},evalData:null,lastedGetTaskInfoTime:0,codeRepData:{content:"",language:"c",currentPath:"",paths:[],lastedUpdateTime:0,loading:!1},showEvalResult:!1,showPictureView:!1,isPictureView:!1,showDragMask:!1,webDisplayUrl:"",evaluateLoading:!1,resetVncLoading:!1,evaluateMessage:"",showNotice:!1,timestamp:"",showDocuments:!1,repos:null};function Nn(e,n){switch(n.type){case ln:return g()(g()({},e),{},{moveX:n.payload});case un:return g()(g()({},e),{},{moveY:n.payload});case pn:case fn:return g()(g()({},e),{},{codeRepData:n.payload});case hn:return g()(g()({},e),{},{codeRepData:g()(g()({},e.codeRepData),n.payload)});case cn:return g()(g()({},e),{},{evaluateLoading:!1,showEvalResult:!0});case"UPDATE_TIMESTRAP":return g()(g()({},e),{},{timestamp:n.payload});case on:return g()(g()({},e),{},{showEvalResult:!1});case"FETCH_TASK_START":return g()(g()({},e),{},{loading:!0});case sn:return g()(g()({},e),n.payload);case dn:return g()(g()({},e),{},{showDragMask:n.payload});case rn:return g()(g()({},e),{},{loading:!1,isError:!0});case an:return g()(g()({},e),n.payload);case mn:return g()(g()({},e),{},{evaluateLoading:!0});case xn:return g()(g()({},e),{},{evaluateLoading:!1});case vn:return g()(g()({},e),{},{evaluateMessage:n.payload});case gn:return g()(g()({},e),{},{showDocuments:n.payload});case An:return g()(g()({},e),n.payload);case yn:return g()(g()({},e),{},{showNotice:!0});case bn:return g()(g()({},e),{},{showNotice:!1});case wn:return g()(g()({},e),{},{showPictureView:!1});case jn:return g()(g()({},e),{},{showPictureView:!0});case _n:return g()(g()({},e),{},{resetVncLoading:n.payload});default:throw new Error}}var Dn=function(e){var n=e.match,t=e.history,r=x()(e,Sn);console.log("props:",r);var a=(0,w.useParams)(),s=(0,w.useSearchParams)(),o=(h()(s,1)[0],(0,w.useLocation)().query,(0,A.useReducer)(Nn,kn)),l=h()(o,2),d=l[0],f=l[1],m=(0,A.useState)(1),v=h()(m,2),b=v[0],_=v[1],C=(0,A.useState)(a.taskId),D=h()(C,2),E=D[0],B=D[1],Z=(0,A.useRef)(),T=(0,A.useRef)(),I=(0,A.useRef)(),R=(0,A.useState)(),P=h()(R,2),F=P[0],Q=P[1],M=(0,w.useLocation)();(0,A.useEffect)((function(){console.log("_params:",a),B(a.taskId),(0,w.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1})}),[a]);d.moveX;var W=d.taskData,z=(d.moveY,d.evalData),G=(d.showEvalResult,d.codeRepData),V=d.loading,J=d.evaluateLoading,K=d.evaluateMessage,re=d.showDocuments,ie=d.repos,oe=(d.showPictureView,d.showNotice),ce=d.webDisplayUrl,ue=d.isPictureView,de=d.resetVncLoading,pe=d.timestamp,he=d.lastedGetTaskInfoTime,me=d.showDragMask,ge=W.st,Ae=W.challenge,je=W.shixun,ye=W.is_teacher,be=W.game,_e=W.has_answer,Se=W.vnc_url,ke=W.git_url,Ne=W.user,De=W.myshixun,Ee=W.discusses_count,Be=W.user_praise,Ze=W.praise_count,Te=W.tpm_cases_modified,Ie=W.tpm_modified,Re=W.tpm_script_modified,Pe=W.mirror_name,Fe=W.mirror_description,Le=(W.tomcat_url,W.unity_3d_routes),Ue=W.with_code_file,Oe=W.unity_3d_result,Qe=(W.next_game,W.prev_game,G.currentPath),Me=G.paths,We=G.content,ze=G.language,Ge=G.lastedUpdateTime,Ve=(Ie||Re)&&0===ge,Je=(Te||Ve)&&!0===De.system_tip,Ke=((Pe||[]).indexOf("Html"),(0,A.useMemo)((function(){return!(!Qe||!Me)&&Me.indexOf(Qe)>=0}),[Qe,Me])),Xe=(0,A.useMemo)((function(){return Le&&!Ue||(null==Ae?void 0:Ae.thiry_party)||Se}),[Se,Ue,Le]);function qe(){return(qe=p()(u()().mark((function e(){var n;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,U.ZP)("/api/sci/projects/".concat(E,".json"),{method:"get"});case 2:n=e.sent,Q(n);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ye(e){return vn.apply(this,arguments)}function vn(){return(vn=p()(u()().mark((function e(n){var r,a,s;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,tn.ie)(E);case 3:if(r=e.sent,401!==(a=r.status)){e.next=10;break}return t.replace("/user/login",{from:M.pathname}),e.abrupt("return");case 10:if(-3!==a){e.next=14;break}(0,O.eF)({onCancel:function(){window.location.href="/"}}),e.next=25;break;case 14:if(403!==a){e.next=18;break}t.replace("/403"),e.next=25;break;case 18:if(404!==a){e.next=23;break}return t.replace("/404"),e.abrupt("return");case 23:s={loading:!1,isError:!1,taskData:r},n||f({type:an,payload:s});case 25:"webssh"===r.mirror_type&&setTimeout((function(){le.Z.publish("create-socket",1)}),1e3),e.next=32;break;case 28:e.prev=28,e.t0=e.catch(0),console.log(e.t0),n||f({type:rn});case 32:case"end":return e.stop()}}),e,null,[[0,28]])})))).apply(this,arguments)}(0,A.useEffect)((function(){if(Le&&Ue)return f({type:mn}),le.Z.subscribe("unity3d-load-end",(function(){f({type:xn})}))}),[E,Le,null==Ae?void 0:Ae.thiry_party,Ue,f]),(0,A.useEffect)((function(){!function(){qe.apply(this,arguments)}()}),[]),(0,A.useEffect)((function(){var e=!1;return Ye(e),function(){e=!0}}),[f,E]),(0,A.useEffect)((function(){var e=!1;function n(){return(n=p()(u()().mark((function n(){var t,r,a,s,i,o;return u()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(f({type:pn,payload:g()(g()({},G),{},{loading:!0})}),!(Le&&!Ue||null!=Ae&&Ae.thiry_party)){n.next=3;break}return n.abrupt("return");case 3:return n.next=5,q(E,{path:Qe});case 5:if(t=n.sent,!e)if(0===t.status)N.ZP.info(t.message),f({type:fn,payload:g()(g()({},G),{},{loading:!1})});else{try{r="txt"===(null==t?void 0:t.file_type)?0===(null===(a=r)||void 0===a?void 0:a.length)?r:window.decodeURIComponent(escape(window.atob(null==t||null===(s=t.content)||void 0===s?void 0:s.content))):null==t||null===(i=t.content)||void 0===i?void 0:i.content}catch(e){r=window.atob(null==t||null===(o=t.content)||void 0===o?void 0:o.content),N.ZP.warning("请确认文件字符集编码是否为UTF-8"),console.log("err:",e)}f({type:fn,payload:g()(g()({},G),{},{content:r,language:t.language,file_type:t.file_type,filename:t.filename,lastedUpdateTime:0,loading:!1})})}case 7:case"end":return n.stop()}}),n)})))).apply(this,arguments)}if(0===ge&&Qe&&1!==je.hide_code)return function(){n.apply(this,arguments)}(),function(){e=!0}}),[ge,Qe,he,pe]);var wn=function(){var e=p()(u()().mark((function e(){var n,t,r=arguments;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.length>0&&void 0!==r[0]?r[0]:0,console.log("lastedUpdateTime:",Ke,n),!(0===ge&&Ge>0&&Ke||n)){e.next=8;break}return e.next=5,Y(De.identifier,{path:Qe,evaluate:n,content:We,game_id:be.id});case 5:return t=e.sent,f({type:hn,payload:{lastedUpdateTime:0}}),e.abrupt("return",t);case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,A.useCallback)((function(){}),[wn]);(0,A.useEffect)((function(){return le.Z.subscribe("unlock-test-case",(function(){S.Z.confirm(c()(c()({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:(0,H.jsx)(En,{score:Ae.score,is_teacher:ye})},"centered",!0),"onOk",bn))}))}),[bn,Ae,ye]);var bn=(0,A.useCallback)(p()(u()().mark((function e(){var n,t,r,a;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s=be.identifier,(0,U.U2)("tasks/".concat(s,"/check_test_sets.json"));case 2:if(n=e.sent,t=n.test_sets,r=n.message,-1!==n.status){e.next=7;break}return r.info(r),e.abrupt("return");case 7:a=W.user.grade,W.user.grade=a-2*Ae.score,W.test_sets=t,W.game.test_sets_view=!0,f({type:sn,payload:{taskData:W}});case 12:case"end":return e.stop()}var s}),e)}))),[be,Ae,f]);function Dn(){return Bn.apply(this,arguments)}function Bn(){return(Bn=p()(u()().mark((function e(){var n,t;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$(null==W||null===(n=W.myshixun)||void 0===n?void 0:n.identifier,{});case 2:return t=e.sent,Ye(),e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Zn(){return Zn=p()(u()().mark((function e(){var n,t,r;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ee(E);case 2:n=e.sent,t=n.praise_count,r=n.praise,W.praise_count=t,W.user_praise=r,f({type:sn,payload:{taskData:W}});case 7:case"end":return e.stop()}}),e)}))),Zn.apply(this,arguments)}(0,A.useEffect)((function(){if(!Xe||Se){var e=function(e){Z.current&&f({type:ln,payload:e.pageX}),T.current&&f({type:un,payload:e.pageY})},n=function(){Z.current=!1,T.current=!1,f({type:dn,payload:!1}),document.onselectstart=null};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",n),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}}}),[T.current,Z.current,Xe,f]),I.current=function(){d.moveX=.01!==d.moveX?.01:"40%",f({type:ln,payload:d.moveX})},(0,A.useEffect)((function(){return le.Z.subscribe("vnc-enlarge",(function(){I.current()}))}),[]),(0,A.useEffect)((function(){if(0===ge&&Ae&&Ae.path){var e=Ae.path.split(";").filter((function(e){return!!e}));f({type:hn,payload:{currentPath:e[0],paths:e}})}}),[Ae,ge]),(0,A.useEffect)((function(){je&&(0,O.Dk)(je.name||"实践项目名称-未填写")}),[je]);var Tn=(0,A.useCallback)((function(e){function n(){return n=p()(u()().mark((function e(n){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{window.navigator.sendBeacon("".concat(L.Z.API_SERVER,"/api/tasks/").concat(E,"/cost_time.json?time=").concat(n),JSON.stringify({time:n}))}catch(e){}case 1:case"end":return e.stop()}}),e)}))),n.apply(this,arguments)}!function(e){n.apply(this,arguments)}(e)}),[E]);function In(){return(In=p()(u()().mark((function e(n){return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,X(E,je.id,n);case 2:W.game.star=n,f({type:sn,payload:{taskData:W}});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Rn(){return Rn=p()(u()().mark((function e(n){var t,r,a;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.props,r=t.children,a=t.eventKey,e.abrupt("return",new Promise(function(){var e=p()(u()().mark((function e(n){var t,s,o;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r&&r.length>0&&n(),e.next=3,ne(De.identifier,{path:a});case 3:t=e.sent,s=t.trees,o=ve(ie,a,xe(s,a)),f({type:An,payload:{repos:i()(o)}}),n();case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}}),e)}))),Rn.apply(this,arguments)}function Pn(){f({type:yn})}function Fn(){return(Fn=p()(u()().mark((function e(n,t){var r;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.node.isLeaf){e.next=7;break}return r=n[0],r.split(".").pop().toLowerCase(),e.next=6,wn();case 6:f({type:hn,payload:{currentPath:r}});case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ln(){return(Ln=p()(u()().mark((function e(){var n,t;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,f({type:_n,payload:!0}),le.Z.publish("vnc-reseting"),e.next=5,te(a.taskId);case 5:n=e.sent,t=n.vnc_url,W.vnc_url=t+"×tamp="+(new Date).getTime(),le.Z.publish("vnc-reseting-done",n),f({type:sn,payload:{taskData:W,resetVncLoading:!1}}),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),console.log(e.t0);case 15:case"end":return e.stop()}}),e,null,[[0,12]])})))).apply(this,arguments)}function Un(){return Un=p()(u()().mark((function e(t){var r,a,s,i,o,c;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.GameState,a=t.Data,s=t.challenge,console.log("match:",n),"info"!==s){e.next=6;break}le.Z.publish("evaluate-unity3d-result",{state:"3d_callback",data:{challenge_info:g()({},W.challenge)}}),e.next=16;break;case 6:if("Success"!==r){e.next=16;break}if(!Oe&&Ue){e.next=15;break}return e.next=10,ae(E,we.Base64.encode(E+(new Date).getTime()),a);case 10:i=e.sent,o=i.status,c=i.data,0==o&&(2!==be.status&&(W.game.status=2,W.user.grade+=c.gold,le.Z.publish("update-cost-time")),le.Z.publish("evaluate-unity3d-result",{state:"userAndtime",data:{user:Ne,open_time:c.open_time,end_time:c.end_time}}),f({type:sn,payload:{taskData:W,evalData:{gold:c.gold,experience:c.experience,next_game:c.next_game},evaluateLoading:!1,showEvalResult:!0}})),e.next=16;break;case 15:f({type:cn});case 16:case"end":return e.stop()}}),e)}))),Un.apply(this,arguments)}function On(){return(On=p()(u()().mark((function e(){var n,t,r,a;return u()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,se(E);case 2:return r=e.sent,null!==(n=r)&&void 0!==n&&null!==(n=n.data)&&void 0!==n&&n.remaining_time&&le.Z.publish("update-windows-time",null===(a=r)||void 0===a?void 0:a.data),e.abrupt("return",null===(t=r)||void 0===t?void 0:t.data);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Hn="calc(100vw - 4px - ".concat("80px",")");c()(c()(c()(c()(c()(c()(c()({game:be,taskId:E,user_praise:Be,praise_count:Ze,st:ge,challenge:Ae,rank_name:W.rank_name,shixun:je,is_teacher:ye,has_answer:_e,unity_3d_routes:Le,with_code_file:Ue,onEvaluateCallback:function(){},onGetUnity3dMessage:function(e){return Un.apply(this,arguments)}},"taskId",E),"myshixun",De),"user",Ne),"discusses_count",Ee),"onPlusOrCancelPraise",(function(){return Zn.apply(this,arguments)})),"minuxUserGrade",(function(e){var n=W.user.grade;W.user.grade=n-e,f({type:sn,payload:{taskData:W}})})),"taskData",W),oe||(Te||Ve)&&De.system_tip,(De||{}).id,g()(g()({},z),{},{isPictureView:ue,history:t,webDisplayUrl:ce,onShowPictureView:function(){f({type:jn})},star:be&&be.star,onStarChange:function(e){return In.apply(this,arguments)},onCloseResult:function(){f({type:on})}});return(0,H.jsx)(A.Fragment,{children:V?(0,H.jsx)(j.Z,{message:"努力请求数据中..",className:"tpi-spin"}):(0,H.jsxs)(A.Fragment,{children:[(0,H.jsxs)("div",{className:"task-wrapper",children:[me&&(0,H.jsx)("div",{className:"draging-mask"}),(0,H.jsx)(fe,{difficulty:null==Ae?void 0:Ae.difficulty,mirror_description:Fe,history:t,git_url:ke,shixun:je,taskData:W,lastedGetTaskInfoTime:he,onAddVncTime:function(){return On.apply(this,arguments)},taskId:E,isNotice:Je,resetVncLoading:de,onResetVnc:function(){return Ln.apply(this,arguments)},onResetGitCode:Dn,vnc_url:Se,linux_vnc:null==W?void 0:W.linux_vnc,window_vnc_url:(null==W?void 0:W.windows_vnc)||(null==W?void 0:W.virtual_machine),remaining_time:null==W?void 0:W.remaining_time,onShowNotice:Pn,game:be,user:Ne,st:ge,onUpdateCode:wn,onUpdateCostTime:Tn,unity_3d_routes:Le&&!Ue||(null==Ae?void 0:Ae.thiry_party)}),(0,H.jsxs)("div",{className:"tasks-body2",children:[(0,H.jsx)("section",{className:"left-panel",children:(0,H.jsxs)("ul",{children:[(0,H.jsxs)("li",{onClick:function(){return _(1)},className:1==b?"on":"",children:[(0,H.jsx)("span",{className:"iconfont icon-huanjing"}),(0,H.jsx)("span",{children:"环境"})]}),(0,H.jsxs)("li",{onClick:function(){return _(2)},className:2==b?"on":"",children:[(0,H.jsx)("span",{className:"iconfont icon-shujuwajue"}),(0,H.jsx)("span",{children:"数据集"})]}),(0,H.jsxs)("li",{onClick:function(){return _(3)},className:3==b?"on":"",children:[(0,H.jsx)("span",{className:"iconfont icon-a-chengyuan1"}),(0,H.jsx)("span",{children:"合作者"})]})]})}),(0,H.jsxs)("section",{id:"task-right-panel",className:"right-panel ".concat(Se||null!=W&&W.windows_vnc||null!=W&&W.linux_vnc||null!=W&&W.virtual_machine?"vnc":""),style:{width:Hn,minWidth:"500px"},children:[(0,H.jsxs)("div",{style:{height:"100%"},className:1===b?"":"hide",children:["webssh"===W.mirror_type&&(0,H.jsx)(Ce,{sshConfigData:W||{},sid:1}),"graph"===W.mirror_type&&(0,H.jsx)(He,{taskData:W,evaluateMessage:K,language:ze,evaluateLoading:J,onEval:r.onEvalCode}),("jupyterlab"===W.mirror_type||"jupyternotebook"===W.mirror_type)&&(0,H.jsx)($e,{taskData:W,evaluateMessage:K,language:ze,evaluateLoading:J,onEval:r.onEvalCode})]}),(0,H.jsxs)("div",{className:2===b?"data_env_lists":"hide",children:[(0,H.jsxs)("div",{className:"data_header",children:["数据集 (",null==F?void 0:F.data_count,")"]}),(0,H.jsx)("div",{style:{padding:20},children:(0,H.jsx)(en.Z,{detail:F})})]}),(0,H.jsx)("div",{className:3===b?"data_env_lists":"hide",children:(0,H.jsx)("div",{children:(0,H.jsx)(nn.Z,{})})})]})]})]}),(0,H.jsx)(y.Z,{children:(0,H.jsx)(k.Z,{rootClassName:"setting-drawer",title:null,placement:"right",width:400,closable:!1,open:re,onClose:function(){f({type:gn,payload:!1})},children:(0,H.jsx)(Cn,{className:"dir-tree",selectedKeys:["".concat(Qe)],treeData:ie,onSelect:function(e,n){return Fn.apply(this,arguments)},loadData:function(e){return Rn.apply(this,arguments)}})})})]})})};function En(e){var n=e.is_teacher,t=e.score;return(0,H.jsx)(A.Fragment,{children:n?(0,H.jsxs)(A.Fragment,{children:[(0,H.jsx)("div",{children:"已经过职业认证的教师可以免金币查看隐藏测试集。"}),(0,H.jsx)("div",{children:"解锁本关所有测试集需要扣除".concat(2*t,"金币,确定要解锁吗?")}),(0,H.jsx)("a",{href:"/account/certification",class:"to-certification-link",target:"_blank",children:"立即认证"})]}):(0,H.jsx)("div",{children:"解锁本关所有测试集需要扣除".concat(2*t,"金币,确定要解锁吗?")})})}},90341:function(e,n,t){"use strict";t.d(n,{$J:function(){return c},JZ:function(){return u},bN:function(){return f},jP:function(){return p},rO:function(){return l}});var r=t(7557),a=t.n(r),s=t(41498),i=t.n(s),o=t(18030);function c(e){return(0,o.U2)("libraries/".concat(e,".json"))}function l(){return(0,o.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=i()(a()().mark((function e(n){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.IV)("attachments/".concat(n,".json"));case 2:return t=e.sent,e.abrupt("return",0===t.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,o.v_)("libraries.json",e)}function f(e,n){return(0,o.gz)("libraries/".concat(e,".json"),n)}},76710:function(e,n,t){"use strict";t.d(n,{$L:function(){return c},M3:function(){return y},NV:function(){return u},T:function(){return x},V1:function(){return p},ie:function(){return w},ln:function(){return g},pV:function(){return _},th:function(){return h}});var r=t(7557),a=t.n(r),s=t(41498),i=t.n(s),o=t(18030);function c(e){return l.apply(this,arguments)}function l(){return(l=i()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("/api/sci/projects.json",{method:"post",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(e,n){return d.apply(this,arguments)}function d(){return(d=i()(a()().mark((function e(n,t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("/api/sci/projects/".concat(t,".json"),{method:"put",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return f.apply(this,arguments)}function f(){return(f=i()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("/api/sci/projects/sci_mirror_repositories.json",{method:"get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e,n){return m.apply(this,arguments)}function m(){return(m=i()(a()().mark((function e(n,t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("/api/sci/projects/".concat(n,".json"),{method:"delete",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return v.apply(this,arguments)}function v(){return(v=i()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("/api/sci/projects/".concat(n,".json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return A.apply(this,arguments)}function A(){return(A=i()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("/api/sci/projects/data_sets.json",{method:"get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e){return j.apply(this,arguments)}function j(){return(j=i()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("/api/sci/projects/".concat(n,"/start_environment.json"),{method:"post"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e,n){return b.apply(this,arguments)}function b(){return(b=i()(a()().mark((function e(n,t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("/api/sci/projects/".concat(n,"/fork_sci_project.json"),{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e,n){return S.apply(this,arguments)}function S(){return(S=i()(a()().mark((function e(n,t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,o.ZP)("/api/sci/projects/".concat(n,"/get_data_sets.json"),{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},48064:function(e,n,t){"use strict";t.d(n,{Jd:function(){return C},a$:function(){return _},dU:function(){return p},fi:function(){return y},m_:function(){return g},rB:function(){return w},rV:function(){return h},x4:function(){return x},zE:function(){return u}});var r=t(82242),a=t.n(r),s=t(7557),i=t.n(s),o=t(41498),c=t.n(o),l=t(18030);function u(e){return d.apply(this,arguments)}function d(){return(d=c()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/jupyters/save_with_tpi.json",{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return f.apply(this,arguments)}function f(){return(f=c()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/tasks/".concat(n.identifier,"/jupyter.json"),{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return m.apply(this,arguments)}function m(){return(m=c()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.identifier,"/start.json"),{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return v.apply(this,arguments)}function v(){return(v=c()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/jupyters/timeinfo_with_tpi.json",{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return A.apply(this,arguments)}function A(){return(A=c()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.identifier,"/reset_pod.json"),{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e,n){return j.apply(this,arguments)}function j(){return(j=c()(i()().mark((function e(n,t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n,"/active_pod.json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e){return b.apply(this,arguments)}function b(){return(b=c()(i()().mark((function e(n){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(t=a()({},n)).identifier,e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.identifier,"/sync_code.json"),{method:"Post",body:t}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return S.apply(this,arguments)}function S(){return(S=c()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/shixuns/".concat(n.identifier,"/get_data_sets.json"),{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return k.apply(this,arguments)}function k(){return(k=c()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/tasks/".concat(n.identifier,"/reboot_esc.json"),{method:"post",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},7352:function(e,n){"use strict";n.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},25769:function(e,n,t){"use strict";var r=t(98040),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,n){var t,s,i,o,c,l,u=!1;n||(n={}),t=n.debug||!1;try{if(i=r(),o=document.createRange(),c=document.getSelection(),(l=document.createElement("span")).textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(r){if(r.stopPropagation(),n.format)if(r.preventDefault(),void 0===r.clipboardData){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var s=a[n.format]||a.default;window.clipboardData.setData(s,e)}else r.clipboardData.clearData(),r.clipboardData.setData(n.format,e);n.onCopy&&(r.preventDefault(),n.onCopy(r.clipboardData))})),document.body.appendChild(l),o.selectNodeContents(l),c.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){t&&console.error("unable to copy using execCommand: ",r),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(n.format||"text",e),n.onCopy&&n.onCopy(window.clipboardData),u=!0}catch(r){t&&console.error("unable to copy using clipboardData: ",r),t&&console.error("falling back to prompt"),s=function(e){var n=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,n)}("message"in n?n.message:"Copy to clipboard: #{key}, Enter"),window.prompt(s,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(o):c.removeAllRanges()),l&&document.body.removeChild(l),i()}return u}},98040:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var n=document.activeElement,t=[],r=0;r4?parseFloat(e):5};function j(){try{return window.self!==window.top}catch(e){return!0}}function y(){return(!l.hasOwnProperty("screenshotGenerator")||!l.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,n){c=e,L(e,n)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,n){var l=parseFloat(e);NaN!==l&&l<5?console.log("The GeoGebra HTML5 codebase version "+l+" is deprecated. Using version latest instead."):(s=e,O(e,n))},e.getHTML5CodebaseVersion=function(){return f},e.getParameters=function(){return l},e.setFontsCSSURL=function(e){w=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 t,a="auto",i=l.id,o=!1,s=0;s=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!==l.id?l.id:"ggbApplet";return window[e]},e.resize=function(){};var k=function(e){return e&&"false"!==e},N=function(n,l,t){A(f)<=4.2&&(t=!0);var a=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==f||ggbHTML5LoadedCodebaseIsWebSimple&&!m)&&(a=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var i=document.createElement("div");i.classList.add("appletParameters","notranslate");var o=l.width,r=l.height;if(l.disableAutoScale=void 0===l.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():l.disableAutoScale,void 0!==l.width)if(A(f)<=4.4)k(l.showToolBar)&&(l.height-=7),k(l.showAlgebraInput)&&(l.height-=37),l.width<605&&k(l.showToolBar)&&(l.width=605,o=605);else{var u=100;(k(l.showToolBar)||k(l.showMenuBar))&&(l.hasOwnProperty("customToolBar")&&(l.customToolbar=l.customToolBar),u=k(l.showMenuBar)?245:155),o=5?(l.appletOnLoad=function(e){var l=n.querySelector(".ggb_preview");l&&l.parentNode.removeChild(l),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(b),window.GGBT_wsf_view&&$(window).trigger("resize"),v(e)},x||b.appendChild(j)):i.appendChild(j),b.appendChild(i),x||n.appendChild(b),setTimeout((function(){e.resize()}),1)}function y(e,n){n&&"function"==typeof n.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,n.appletOnLoad):renderGGBElement(e),z("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",n)}function B(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){y(e.article,e.params)})),html5AppletsToProcess=null)},A(f)<5&&(e.className+=" geogebraweb")):y(e,n)}if(a){scriptLoadStarted=!0;for(var C=0;C0?(a.remove(),r.attr("id","fullscreencontent").show(),jQuery(i).append(r),window.dispatchEvent(new Event("resize"))):N(a,n,!1),window.GGBT_wsf_view.launchFullScreen(i)}else h=t,N(e,n,!1);if(!window.GGBT_wsf_view)for(o=0;oe/4*3&&(r=e/4*3),s=r/5.8,o.setAttribute("src",x),o.setAttribute("width",r),o.setAttribute("height",s);var u=(e-r)/2,d=(n-s)/2;o.style.left=u+"px",o.style.top=d+"px",a.appendChild(o)}return a.appendChild(c),a},F=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},Z=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,n){if(f=e,n)L(f,!0);else{var i,o,r=!a;if(r){var s=A(f);!isNaN(s)&&s<4.4&&(r=!1)}i="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=f.indexOf("//");for(var u in o=c>0?f:0===c?i+f:"https://www.geogebra.org/apps/5.2.814.0/",Z)if(f.slice(-1*Z[u].length)===Z[u]||f.slice(-1*(Z[u].length+1))===Z[u]+"/")return void L(o,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!r||t.is3D||t.AV||t.SV||t.CV||t.EV2||t.CP||t.PC||t.DA||t.FI||t.PV||k(l.showToolBar)||k(l.showMenuBar)||k(l.showAlgebraInput)||k(l.enableRightClick)||l.appName&&"classic"!=l.appName?o+="web3d/":o+="webSimple/",L(o,!1)}},L=function(e,n){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===n&&(n=-1===e.indexOf("http")),v=n,g="web.nocache.js",m=!1;var l=p.split("/");l.length>1&&(n||"webSimple"!==l[l.length-2]?Z.indexOf(l[l.length-2])>=0&&(g=l[l.length-2]+".nocache.js"):(g="webSimple.nocache.js",m=!0)),l=e.split("/"),"test"===(f=l[l.length-3]).substr(0,4)?f=f.substr(4,1)+"."+f.substr(5,1):"war"!==f.substr(0,3)&&"beta"!==f.substr(0,4)||(f="5.0");var t=parseFloat(f);NaN!==t&&t<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+t+" is deprecated. Using version latest instead."),O("5.0",n))}},z=function(e,n){window.console&&window.console.log&&(!n||void 0===n.showLogging||n.showLogging&&"false"!==n.showLogging)&&console.log(e)};function M(){var e=n;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&L(c,v),r=!0}return void 0!==l.material_id?B(M):M(),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 l(e,n,l,t,a){if(e.isScreenshoGenerator)return 1;var i,o=void 0!==t&&t,r=null!=e.noScaleMargin&&e.noScaleMargin,s=(i=e.autoHeight)&&"false"!==i,c=function(e,n,l,t,a,i){var o=null;if(null!=i&&""!=i)for(var r=e.parentNode;null!=r;){if((" "+r.className+" ").indexOf(" "+i+" ")>-1){o=r;break}r=r.parentNode}var s=0,c=0,u=0,d=0,p=0,v=0,h=0;if(o)s=o.offsetWidth,c=Math.max(t?o.offsetWidth:0,o.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var f=e.getBoundingClientRect();f.left>0&&f.left<=s&&(void 0===a||!a)&&("rtl"===document.dir?(p=s-f.width-f.left,v=u<=480?10:30):(v=f.left,p=u<=480?10:30),d=v+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===l||!l)&&n>0&&n+d1&&(o=!0)),n&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(o=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?i:(a=l(e,n,o,t,e.scaleContainerClass),!o||e.hasOwnProperty("scale")&&1!==i?Math.min(i,a):a)}function a(e){var n=Math.min(window.innerWidth,document.documentElement.clientWidth),l=Math.min(window.innerHeight,document.documentElement.clientHeight),t=e.getBoundingClientRect(),a=(n-t.width)/2,i=(l-t.height)/2;i<0&&(i=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=a<40?"40px":a+"px",e.style.top=i+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=i<40?"40px":i+"px",e.style.left=a+"px")}return{responsiveResize:function(l,i){var o=l.querySelector(".appletParameters");if(o){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(i.id!==o.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(l)}if(o.parentElement&&/fullscreen/.test(o.parentElement.className))return;var r=t(i,l);e()&&o.setAttribute("data-param-scale",r);for(var s=null,c=0;c=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 l=e.indexOf(sb);-1==l&&(l=e.length);var t=e.lastIndexOf(tb,Math.min(l,n));return t>=O?e.substring(O,t+P):W}var n,l=null!=(n=__gwt_getMetaProperty(wb))?n:W;return l==W&&(l=function(){for(var n=o.getElementsByTagName(_),l=O;lO?e[e.length-P].href:W}()),l==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(l=e(o.location.href)),l=function(n){if(n.match(/^\w+:\/\//));else{var l=o.createElement(ub);l.src=n+vb,n=e(l.src)}return n}(l),l}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,l=O,t=[],a=[];function i(e){var n=a[e](),l=t[e];if(n in l)return n;var i=[];for(var o in l)i[l[o]]=o;throw r&&r(e,i,n),null}if(__gwt_isKnownPropertyValue=function(e,n){return n in t[e]},webModule.__getPropMap=function(){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=i(n));return e},webModule.__computePropValue=i,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var o=(e=Cb).indexOf(Db);-1!=o&&(l=parseInt(e.substring(o+P),$),e=e.substring(O,o))}catch(e){}return webModule.__softPermutationId=l,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 l=n?n():{},t=e[webModule.__softPermutationId],a=O;a0){for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:"",l=[],t=0;t0&&(n=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+A+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),n}var k=function(e){var n=e.value,l=e.onChange,t=e.action,i=e.data,r=e.className,c=e.maxSize,d=void 0===c?150:c,S=e.title,k=void 0===S?"上传附件":S,N=e.showRemoveModal,D=void 0!==N&&N,T=e.accept,E=void 0===T?"":T,P=e.additionalText,R=e.isDragger,F=e.number,Z=void 0===F?1e3:F,O=e.aloneClear,L=void 0!==O&&O,z=e.realTimeRemove,M=void 0===z||z,W=e.uploadText,H=(0,v.useState)(!1),I=p()(H,2),G=I[0],K=I[1],U=(0,v.useState)(n||[]),q=p()(U,2),V=q[0],J=q[1],Q=(0,v.useState)(1),X=p()(Q,2),Y=X[0],_=X[1];(0,v.useEffect)((function(){n&&(1===Y&&J(u()(n)),_(2),Z===(null==n?void 0:n.length)&&K(!0))}),[n]);var $,ee=function(){setTimeout((function(){V.pop(),J(u()(V))}),500)},ne={multiple:!0,disabled:G,accept:E,withCredentials:!0,fileList:V,beforeUpload:function(e,n){var l=e.size/1024/1024;return V.concat(n).length>Z?(V.pop(),J(u()(V)),f.ZP.error("最多只能上传".concat(Z,"个文件")),L?Promise.reject():(ee(),!1)):l=Z?K(!0):K(!1),J(u()(V)),V=V.map((function(e){var n,l;null!=e&&null!==(n=e.response)&&void 0!==n&&n.id&&(e.url=null==e||null===(l=e.response)||void 0===l?void 0:l.url);return-1===e.name.indexOf(A)&&(e.name="".concat(e.name).concat(A).concat(j(e.size))),s()({},e)})),console.log("info:",e,V),l(V)):f.ZP.error(null===(t=e.file)||void 0===t||null===(t=t.response)||void 0===t?void 0:t.message)},onRemove:($=o()(a()().mark((function e(n){var l;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(M){e.next=2;break}return e.abrupt("return",!0);case 2:if(l=function(){var e=o()(a()().mark((function e(){var l;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.response?n.response.id:n.id)){e.next=8;break}return e.next=4,(0,x.JZ)(n.response?n.response.id:n.uid);case 4:return l=e.sent,e.abrupt("return",Promise.resolve(l));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!D){e.next=7;break}return e.abrupt("return",new Promise((function(e,n){var t;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,w.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(t=o()(a()().mark((function n(){return a()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,l();case 2:n.sent,f.ZP.success("删除成功"),e(!0);case 5:case"end":return n.stop()}}),n)}))),function(){return t.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,l();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return $.apply(this,arguments)})};return(0,w.jsxs)("div",{className:"multi-upload ".concat(r||""),children:[R&&(0,w.jsxs)(C,s()(s()({},ne),{},{children:[(0,w.jsx)("p",{className:"ant-upload-drag-icon",children:(0,w.jsx)(y.Z,{})}),(0,w.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,w.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),P]})),!R&&(0,w.jsxs)(h.Z,s()(s()({},ne),{},{children:[(0,w.jsxs)(m.ZP,{disabled:G,className:"upload_button",children:[(0,w.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),k]}),(0,w.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:W||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,n,l){"use strict";l.d(n,{h:function(){return m}});var t=l(82242),a=l.n(t),i=l(79800),o=l.n(i),r=l(59301),s=l(57809),c=l(78241),u=l(3113),d=l(89780),p=l.n(d),v=(l(80443),l(90630),l(37712)),h=s.default.Option,f={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function m(e){var n=e.value,l=e.onChange,t=e.mode,i=e.options,s=void 0===i?{}:i,c=(0,r.useRef)(),u=(0,r.useState)(),d=o()(u,2),h=d[0],f=d[1];return(0,r.useEffect)((function(){if(h){var e=function(e){var n=e.getValue();l&&l(n)};return h.on("change",e),function(){h.off("change",e)}}}),[h,l]),(0,r.useEffect)((function(){h&&h.setOption("mode",t)}),[h,t]),(0,r.useEffect)((function(){h&&(n===h.getValue()&&""!==n||setTimeout((function(){h.setValue(n||"")}),300))}),[h,n]),(0,r.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,a()({mode:t,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));f(e)}}),[c.current,h]),(0,v.jsx)("div",{className:"my-codemirror-container",children:(0,v.jsx)("textarea",{ref:c})})}n.Z=function(e){var n=e.callback,l=e.onCancel,t=(0,r.useState)("python"),i=o()(t,2),d=i[0],p=i[1];return(0,v.jsxs)(c.Z,a()(a()({},f),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){n(e)},style:{width:500},children:[(0,v.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,v.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,v.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,v.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,v.jsx)(m,{mode:d})}),(0,v.jsxs)("div",{className:"flex-container flex-end",children:[(0,v.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,v.jsx)(u.ZP,{type:"ghost",onClick:l,children:"取消"})]})]}))}},16318:function(e,n,l){"use strict";l.d(n,{Z:function(){return Ae}});var t=l(91232),a=l.n(t),i=l(79800),o=l.n(i),r=l(85573),s=l.n(r),c=l(59301),u=l(89780),d=l.n(u),p=l(76374),v=(l(80443),l(6313),l(25717),l(99498),l(25419),l(67549),l(38279)),h=l(37712),f=function(e){var n=e.value,l=void 0===n?"":n,t=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[l]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:t}})})},g=l(82242),m=l.n(g),b=[{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 x(e){var n=e.onActionCallback,l=e.title,t=e.icon,a=e.actionName,i=e.className,o=void 0===i?"":i,r=e.children;return(0,h.jsxs)("a",{title:l,className:o,onClick:function(){n(a)},children:[(0,h.jsx)("i",{className:"".concat(t)}),r]})}var w=function(e){var n=e.watch,l=e.showNullButton,t=e.showNullProgramButton,a=e.onActionCallback,i=e.fullScreen,o=e.insertTemp,r=e.hidetoolBar,s=e.extraUse,c=[].concat(b,[{title:"".concat(n?"关闭实时预览":"开启实时预览"),icon:"".concat(n?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!r&&c.map((function(e,n){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(x,m()(m()({},e),{},{onActionCallback:a})):(0,h.jsx)("span",{className:"v-line"})},n)})),l?(0,h.jsx)("li",{children:(0,h.jsx)(x,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:a,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,t?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(x,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:a,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(x,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:a,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,o&&(0,h.jsx)("li",{children:(0,h.jsx)(x,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(o),onActionCallback:a,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(x,{icon:"".concat(i?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:i?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:a})})]})},A=l(24808),j=l(78241),y=l(92832),B=l(3113),C={labelCol:{span:4},wrapperCol:{span:20}},S=function(e){var n=e.callback,l=e.onCancel;return(0,h.jsxs)(j.Z,m()(m()({},C),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},style:{width:500},children:[(0,h.jsx)(j.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(y.Z,{})}),(0,h.jsx)(j.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(y.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(B.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(B.ZP,{type:"ghost",onClick:l,children:"取消"})]})]}))},k=l(73145),N=l(28486),D=l(95237),T=l(36709),E=function(e){var n=e.callback,l=e.onCancel,t=document.createElement("canvas"),a=t.getContext("2d");t.width=1e3,t.height=800,a.fillStyle="#ffffff",a.fillRect(0,0,t.width,t.height);var i=t.toDataURL("image/png");return(0,h.jsx)(D.Z,{style:{height:"100vh"},children:(0,h.jsx)(T.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:i,visible:!0,title:String(Date.now())},onOk:function(e){n({src:e.url})},onClose:l})})},P=l(7557),R=l.n(P),F=l(41498),Z=l.n(F),O=l(37205),L=l.n(O),z=l(12378);function M(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(M,go.CommandHandler),M.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},M.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")},M.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 l=e.actualBounds.x+e.actualBounds.width;n=Math.max(l,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")},M.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")},M.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 l=e.actualBounds.y+e.actualBounds.height;n=Math.max(l,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")},M.prototype.alignCenterX=function(){var e=this.diagram,n=e.selection.first();if(n){e.startTransaction("aligning Center X");var l=n.actualBounds.x+n.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(l-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},M.prototype.alignCenterY=function(){var e=this.diagram,n=e.selection.first();if(n){e.startTransaction("aligning Center Y");var l=n.actualBounds.y+n.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,l-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},M.prototype.alignColumn=function(e){var n=this.diagram;n.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var l=new Array;n.selection.each((function(e){e instanceof go.Link||l.push(e)}));for(var t=0;t0){for(var t=o.elt(r-1);null!==t&&t.isTreeExpanded&&!t.isTreeLeaf;){t=this._sortTreeChildrenByY(t).last()}null!==t&&e.select(t)}else e.select(i)}else if("Down"===l.key){var a;if(n.isTreeExpanded&&!n.isTreeLeaf)null!==(a=this._sortTreeChildrenByY(n).first())&&e.select(a);else for(;null!==n;){var i,o,r;if(null===(i=n.findTreeParentNode()))break;if((r=(o=this._sortTreeChildrenByY(i)).indexOf(n))t.y?1:l.xt.x?1:0})),n},M.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},M.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(M.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(M.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 W=M,H=(l(41034),l(85160)),I=l(43418),G=l(43604),K=l(18030),U="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=z;var V=function(e){var n=e.onCancel,l=e.callback,t=(0,c.useRef)(),a=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=o()(u,2),p=d[0],v=d[1],f=function(){var e=Z()(R()().mark((function e(){var n,a;return R()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.current.makeImage(),e.next=3,(0,K.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:n.src}});case 3:a=e.sent,l({src:a.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){v(p+1)}),[]),(0,h.jsx)("div",{ref:s,className:r.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(I.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(D.Z,{children:[(0,h.jsx)(G.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(G.Z,{onClick:function(){r.current=!r.current,v(p+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:n,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:U,ref:i})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(H.FI,{initDiagram:function(){var e=z.GraphObject.make,n="#ff3333",l="#3358ff",o="#25ad23",r="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",v="#d5ebff",h="#f2dfe0",f="#a5d2fa",g="#cccccc",m="#b3e6b3",b="#fcbbbd";function x(n,l){var t=function(e,l){e.handled=!0,e.diagram.model.commit((function(t){var a=l.part.adornedPart,i=(new z.Point).setRectSpot(a.actualBounds,n);i.subtract(a.location),i.scale(2,2),i.x+=130*Math.sign(i.x),i.y+=130*Math.sign(i.y),i.add(a.location),i.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var o=t.copyNodeData(a.data);t.setGroupKeyForNodeData(o,t.getGroupKeyForNodeData(a.data)),t.addNodeData(o);var r={from:a.key,to:t.getKeyForNodeData(o)};t.addLinkData(r);var s=e.diagram.findNodeForData(o);s.location=i,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(z.Shape,{figure:l,alignment:n,alignmentFocus:n.opposite(),width:n.equals(z.Spot.Top)||n.equals(z.Spot.Bottom)?25:18,height:n.equals(z.Spot.Top)||n.equals(z.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:t,contextClick:t})}function w(n){return e(z.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="orange"},click:function(e,n){e.diagram.commandHandler.showContextMenu(n.part.adornedPart)}},n||{})}function A(e,n){return function(l,t){l.handled=!0,l.diagram.model.commit((function(l){l.set(t.part.adornedPart.data,e,n)}))}}function j(n,l){return l||(l="color"),e(z.Shape,{width:16,height:16,stroke:"lightgray",fill:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.stroke="dodgerblue"},mouseLeave:function(e,n){return n.stroke="lightgray"},click:A(l,n),contextClick:A(l,n)})}function y(){return[e("ContextMenuButton",e(z.Panel,"Horizontal",j(u,"fill"),j(p,"fill"),j(v,"fill"),j(h,"fill"))),e("ContextMenuButton",e(z.Panel,"Horizontal",j(g,"fill"),j(m,"fill"),j(f,"fill"),j(b,"fill")))]}function B(){return[e("ContextMenuButton",e(z.Panel,"Horizontal",j(d),j(o),j(l),j(n))),e("ContextMenuButton",e(z.Panel,"Horizontal",j(u),j(r),j(s),j(c)))]}function C(n,l){return l||(l="thickness"),e(z.Shape,"LineH",{width:16,height:16,strokeWidth:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:A(l,n),contextClick:A(l,n)})}function S(n,l){return l||(l="dash"),e(z.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:A(l,n),contextClick:A(l,n)})}function k(){return[e("ContextMenuButton",e(z.Panel,"Horizontal",C(1),C(2),C(3),C(4))),e("ContextMenuButton",e(z.Panel,"Horizontal",S(null),S([2,4]),S([4,4])))]}function N(n,l){return l||(l="figure"),e(z.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="lightgray"},click:A(l,n),contextClick:A(l,n)})}function D(n){return e(z.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(n+4).toString()+" H3"})}function T(n){var l="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===n?l="M0 0 M16 16 M0 8 L16 8":2===n&&(l="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(z.Shape,{geometryString:l,margin:2,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:A("dir",n),contextClick:A("dir",n)})}function E(n){var l=function(e,l){e.handled=!0,e.diagram.model.commit((function(e){var t=l.part.adornedPart;e.set(t.data,n?"toSpot":"fromSpot",z.Spot.stringify(z.Spot.AllSides)),(n?t.toNode:t.fromNode).invalidateConnectedLinks()}))};return e(z.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:l,contextClick:l})}function P(n,l){var t=0,a=z.Spot.RightSide;n.equals(z.Spot.Top)?(t=270,a=z.Spot.TopSide):n.equals(z.Spot.Left)?(t=180,a=z.Spot.LeftSide):n.equals(z.Spot.Bottom)&&(t=90,a=z.Spot.BottomSide),l||(t-=180);var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var t=n.part.adornedPart;e.set(t.data,l?"toSpot":"fromSpot",z.Spot.stringify(a)),(l?t.toNode:t.fromNode).invalidateConnectedLinks()}))};return e(z.Shape,{alignment:n,alignmentFocus:n.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:t,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:i,contextClick:i})}return t.current=new z.Diagram(a.current,{padding:20,grid:e(z.Panel,"Grid",e(z.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(z.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(W),"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}),t.current.nodeTemplate=e(z.Node,"Auto",{locationSpot:z.Spot.Center,locationObjectName:"SHAPE",desiredSize:new z.Size(120,60),minSize:new z.Size(40,40),resizable:!0,resizeCellSize:new z.Size(10,10),rotatable:!0},new z.Binding("location","loc",z.Point.parse).makeTwoWay(z.Point.stringify),new z.Binding("desiredSize","size",z.Size.parse).makeTwoWay(z.Size.stringify),e(z.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:z.Spot.AllSides,toSpot:z.Spot.AllSides},new z.Binding("figure"),new z.Binding("fill"),new z.Binding("stroke","borderColor"),new z.Binding("strokeWidth","thickness"),new z.Binding("strokeDashArray","dash")),e(z.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(z.TextBlock,{margin:1,textAlign:"center",overflow:z.TextBlock.OverflowEllipsis,editable:!0},new z.Binding("text").makeTwoWay(),new z.Binding("stroke","color"))),t.current.nodeTemplate.toolTip=e("ToolTip",e(z.Panel,"Vertical",{maxSize:new z.Size(200,NaN)},e(z.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new z.Binding("text")),e(z.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new z.Binding("text","details")))),t.current.nodeTemplate.selectionAdornmentTemplate=e(z.Adornment,"Spot",e(z.Placeholder,{padding:10}),x(z.Spot.Top,"TriangleUp"),x(z.Spot.Left,"TriangleLeft"),x(z.Spot.Right,"TriangleRight"),x(z.Spot.Bottom,"TriangleDown"),w({alignment:new z.Spot(.75,0)})),t.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(z.Panel,"Horizontal",N("Rectangle"),N("RoundedRectangle"),N("Ellipse"),N("Diamond"))),e("ContextMenuButton",e(z.Panel,"Horizontal",N("Parallelogram2"),N("ManualOperation"),N("Procedure"),N("Cylinder1"))),e("ContextMenuButton",e(z.Panel,"Horizontal",N("Terminator"),N("CreateRequest"),N("Document"),N("TriangleDown"))),y(),B(),k()),t.current.groupTemplate=e(z.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:z.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 z.Binding("location","loc",z.Point.parse).makeTwoWay(z.Point.stringify),e(z.Panel,"Auto",{name:"BODY"},e(z.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:z.Spot.AllSides,toSpot:z.Spot.AllSides},new z.Binding("fill"),new z.Binding("stroke","color"),new z.Binding("strokeWidth","thickness"),new z.Binding("strokeDashArray","dash")),e(z.Placeholder,{background:"transparent",margin:20})),e(z.TextBlock,{alignment:z.Spot.Top,alignmentFocus:z.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new z.Binding("text"),new z.Binding("stroke","color"))),t.current.groupTemplate.selectionAdornmentTemplate=e(z.Adornment,"Spot",e(z.Panel,"Auto",e(z.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(z.Placeholder,{margin:1.5})),w({alignment:z.Spot.TopRight,alignmentFocus:z.Spot.BottomRight})),t.current.groupTemplate.contextMenu=e("ContextMenu",y(),B(),k()),t.current.linkTemplate=e(z.Link,{layerName:"Foreground",routing:z.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new z.Binding("fromSpot","fromSpot",z.Spot.parse),new z.Binding("toSpot","toSpot",z.Spot.parse),new z.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new z.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new z.Binding("points").makeTwoWay(),e(z.Shape,{strokeWidth:2},new z.Binding("stroke","color"),new z.Binding("strokeWidth","thickness"),new z.Binding("strokeDashArray","dash")),e(z.Shape,{segmentIndex:0,segmentOffset:new z.Point(15,0),segmentOrientation:z.Link.OrientAlong,alignmentFocus:z.Spot.Right,figure:"circle",width:10,strokeWidth:0},new z.Binding("fill","color"),new z.Binding("visible","dir",(function(e){return 1===e}))),e(z.Shape,{segmentIndex:-1,segmentOffset:new z.Point(-10,6),segmentOrientation:z.Link.OrientPlus90,alignmentFocus:z.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new z.Binding("fill","color"),new z.Binding("visible","dir",(function(e){return e>=1})),new z.Binding("width","thickness",(function(e){return 7+3*e})),new z.Binding("height","thickness",(function(e){return 7+3*e})),new z.Binding("segmentOffset","thickness",(function(e){return new z.Point(-15,4+1.5*e)}))),e(z.Shape,{segmentIndex:0,segmentOffset:new z.Point(15,-6),segmentOrientation:z.Link.OrientMinus90,alignmentFocus:z.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new z.Binding("fill","color"),new z.Binding("visible","dir",(function(e){return 2===e})),new z.Binding("width","thickness",(function(e){return 7+3*e})),new z.Binding("height","thickness",(function(e){return 7+3*e})),new z.Binding("segmentOffset","thickness",(function(e){return new z.Point(-15,4+1.5*e)}))),e(z.TextBlock,{alignmentFocus:new z.Spot(0,1,-4,0),editable:!0},new z.Binding("text").makeTwoWay(),new z.Binding("stroke","color"))),t.current.linkTemplate.selectionAdornmentTemplate=e(z.Adornment,e(z.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:D(2)},new z.Binding("pathPattern","thickness",D)),w({alignmentFocus:new z.Spot(0,0,-6,-4)})),t.current.linkTemplate.contextMenu=e("ContextMenu",B(),k(),e("ContextMenuButton",e(z.Panel,"Horizontal",T(0),T(1),T(2))),e("ContextMenuButton",e(z.Panel,"Horizontal",e(z.Panel,"Spot",E(!1),P(z.Spot.Top,!1),P(z.Spot.Left,!1),P(z.Spot.Right,!1),P(z.Spot.Bottom,!1)),e(z.Panel,"Spot",{margin:new z.Margin(0,0,0,2)},E(!0),P(z.Spot.Top,!0),P(z.Spot.Left,!0),P(z.Spot.Right,!0),P(z.Spot.Bottom,!0))))),new z.Palette(i.current,{maxSelectionCount:1,linkTemplate:e(z.Link,{locationSpot:z.Spot.Center,selectionAdornmentTemplate:e(z.Adornment,"Link",{locationSpot:z.Spot.Center},e(z.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(z.Shape,{toArrow:"Standard",stroke:null}))},{routing:z.Link.AvoidsNodes,curve:z.Link.JumpOver,corner:5,toShortLength:4},new z.Binding("points"),e(z.Shape,{isPanelMain:!0,strokeWidth:2}),e(z.Shape,{toArrow:"Standard",stroke:null})),model:new z.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(L()(z.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(z.Node,"Auto",{locationSpot:z.Spot.Center},new z.Binding("location","location",z.Point.parse).makeTwoWay(z.Point.stringify),e(z.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 z.Binding("stroke").makeTwoWay(),new z.Binding("fill").makeTwoWay(),new z.Binding("figure")),e(z.TextBlock,{margin:new z.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new z.Size(16,16),maxSize:new z.Size(10,NaN),textAlign:"center",editable:!0},new z.Binding("key").makeTwoWay())),setTimeout((function(){t.current.grid=e(z.Panel,"Grid",e(z.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(z.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),t.current.grid.visible=!0,t.current.grid.gridCellStroke="darkgray",t.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=t.current,t.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:a})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(B.ZP,{size:"large",onClick:f,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},J=l(5112),Q=l(94001),X=J.ZP.Group,Y={margin:"0 8px"},_=function(e){var n=e.callback,l=e.onCancel;return(0,h.jsxs)(j.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){n(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Y,children:"单元格数:"}),(0,h.jsx)("span",{style:Y,children:"行数"}),(0,h.jsx)(j.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Q.Z,{})}),(0,h.jsx)("span",{style:Y,children:"列数"}),(0,h.jsx)(j.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Q.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Y,children:"对齐方式:"}),(0,h.jsx)(j.Z.Item,{name:"align",children:(0,h.jsxs)(X,{children:[(0,h.jsx)(J.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(J.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(J.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(J.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(B.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(B.ZP,{type:"ghost",onClick:l,children:"取消"})]})]})},$=l(78673),ee=l(57932),ne=l.n(ee),le=(0,c.forwardRef)((function(e,n){var l=e.use3d,t=e.width,a=e.height,i=e.callback,r=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=o()(u,2),p=d[0],v=d[1],f=(0,c.useRef)({id:r,appName:"graphing",width:t||1e3,height:a||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(ne())(f.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return i&&i(e),e};return(0,c.useEffect)((function(){f.current.appName=p?"3D":"graphing",s.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){v(l)}),[l]),(0,c.useImperativeHandle)(n,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:r}),(0,h.jsxs)(D.Z,{align:"middle",children:[(0,h.jsx)(G.Z,{flex:1,children:(0,h.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return v(e)}})}),(0,h.jsx)(G.Z,{children:(0,h.jsx)(B.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),te=l(36761),ae=l(92723),ie=l(8591),oe="link",re="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",ve={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},he=l(77818);var fe="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function me(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var be=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",xe=s()(s()({},be+"-B","bold"),be+"-I","italic"),we=s()(s()(s()(s()(s()(s()(s()(s()({},oe,"添加链接"),ue,"添加代码块"),re,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Ae=function(e){var n=e.defaultValue,l=void 0===n?"":n,t=e.onChange,i=e.width,r=void 0===i?"100%":i,u=e.height,g=void 0===u?400:u,m=e.miniToolbar,b=void 0!==m&&m,x=e.isFocus,j=void 0!==x&&x,y=e.watch,B=e.insertTemp,C=e.mode,D=void 0===C?"markdown":C,T=e.id,P=void 0===T?"markdown-editor-id":T,R=e.showResizeBar,F=void 0!==R&&R,Z=e.noStorage,O=void 0!==Z&&Z,L=e.showNullButton,z=void 0!==L&&L,M=e.showNullProgramButton,W=void 0!==M&&M,H=e.hidetoolBar,G=void 0!==H&&H,K=e.fullScreen,U=void 0!==K&&K,q=e.onBlur,J=e.onCMBeforeChange,Q=e.onFullScreen,X=e.className,Y=void 0===X?"":X,$=e.disablePaste,ee=void 0!==$&&$,ne=e.disabled,pe=void 0!==ne&&ne,be=e.disabledFill,Ae=void 0!==be&&be,je=e.placeholder,ye=void 0===je?"":je,Be=e.values,Ce=void 0===Be?"":Be,Se=e.extraUse,ke=(0,c.useState)(null),Ne=o()(ke,2),De=Ne[0],Te=Ne[1],Ee=(0,c.useState)(l),Pe=o()(Ee,2),Re=Pe[0],Fe=Pe[1],Ze=(0,c.useState)(y),Oe=o()(Ze,2),Le=Oe[0],ze=Oe[1],Me=(0,c.useState)(U),We=o()(Me,2),He=We[0],Ie=We[1],Ge=(0,c.useState)(""),Ke=o()(Ge,2),Ue=Ke[0],qe=Ke[1],Ve=(0,c.useState)(0),Je=o()(Ve,2),Qe=Je[0],Xe=Je[1],Ye=(0,c.useState)(g),_e=o()(Ye,2),$e=_e[0],en=_e[1],nn=(0,c.useState)(!1),ln=o()(nn,2),tn=(ln[0],ln[1]),an=(0,c.useState)(0),on=o()(an,2),rn=on[0],sn=on[1],cn=(0,c.useState)(0),un=o()(cn,2),dn=un[0],pn=un[1],vn=(0,c.useRef)(),hn=(0,c.useRef)(),fn=(0,c.useRef)(),gn=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Fe(Ce),null==De||De.setValue(Ce),window.scrollTo(0,e)}),[Ce]),(0,c.useEffect)((function(){null==Q||Q(He)}),[He]),(0,c.useEffect)((function(){if(vn.current){var e=function(e,l){if(!ee){var t=l.clipboardData;if(t){var a=t.types.toString(),i=t.items;if("Files"===a||t.types.indexOf("Files")>-1){if(l.preventDefault(),"stex"==D)return;try{var o,r=i[1];"file"===(null===(o=i[0])||void 0===o?void 0:o.kind)&&(r=i[0]);var s=r.getAsFile(),c=s.name.split(".").pop();(0,N.I)(s,(function(e){var l,t,a;e.id?(null==s||null===(l=s.type)||void 0===l?void 0:l.indexOf("image"))>-1?n.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(t=s.type)||void 0===t?void 0:t.indexOf("video"))>-1?n.replaceSelection('')):(null==s||null===(a=s.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?n.replaceSelection('').concat(s.name,"")):ge.includes(c)?n.replaceSelection('').concat(s.name,"")):n.replaceSelection("[".concat(s.name,"](").concat(ae.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(l){ie.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}l.preventDefault()},n=d().fromTextArea(vn.current,{mode:D,lineNumbers:!b,lineWrapping:!0,value:l,autoCloseTags:!0,autoCloseBrackets:!0});return n.on("keyup",(function(e,l){8===l.keyCode&&(""==e.getValue()?n.setOption("placeholder",ye):n.setOption("placeholder",null))})),n.on("keydown",(function(e,n){if(8===n.keyCode){var l=function(e,n){var l=e.getDoc(),t=l.getCursor(),a=l.getLine(t.line),i=a.charAt(t.ch-1),o=a.lastIndexOf("@▁@",t.ch),r=a.lastIndexOf("@▁▁@",t.ch),s=o>r?o:r,c=o>r?3:4;if(-1===fe.indexOf(i))return null;if(console.log("change1:",n,e,a,t,s,o,r,i),s>=0&&t.ch-s<5){var u=s+c;return l.replaceRange("",{line:t.line,ch:s},{line:t.line,ch:u}),{line:t.line,ch:u}}return null}(e);l&&n.preventDefault()}})),j&&n.focus(),n.on("paste",e),pe&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Te(n),function(){n.off("paste",e)}}}),[]);var mn=(0,c.useCallback)((function(){hn.current}),[$e,hn,He]);(0,c.useEffect)((function(){if(De){var e=function(){var e=new p.Z((function(e){var n,l=a()(e);try{for(l.s();!(n=l.n()).done;){var t=n.value;(t.target.offsetHeight>0||t.target.offsetWidth>0)&&(mn(),De.setSize("100%","100%"),De.refresh())}}catch(e){l.e(e)}finally{l.f()}}));return e.observe(vn.current.parentElement),e}();return function(){var n,l;null!==(n=vn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(l=vn.current)||void 0===l?void 0:l.parentElement)}}}),[De,mn]),(0,c.useEffect)((function(){if(De){for(var e=[],n=function(){var n=o()(t[l],2),a=n[0],i=n[1],r=s()({},a,(function(){bn(i)}));e.push(r),De.addKeyMap(r)},l=0,t=Object.entries(xe);l0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(P);e>=Qe+1e4&&(!n||n!==Re)&&(window.sessionStorage.setItem(P,Re),tn(!0))}}),1e4),(0,c.useEffect)((function(){ze(y)}),[De,y]),(0,c.useEffect)((function(){De&&j&&De.focus()}),[De,j]),(0,c.useEffect)((function(){if(Le&&De){var e=function(e){var n=e.target;if(gn.current){var l=n.scrollTop/n.scrollHeight;gn.current.scrollTop=gn.current.scrollHeight*l}},n=De.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[De,Le]),(0,c.useEffect)((function(){if(De&&J){var e=function(e,n){J(e,n)};return De.on("beforeChange",e),function(){De.off("beforeChange",e)}}}),[De,J]),(0,c.useEffect)((function(){if(De&&q){var e=function(){q(De.getValue())};return De.on("blur",e),function(){De.off("blur",e)}}}),[De,q]),(0,c.useEffect)((function(){if(De){var e=function(e,n){var l=e.getValue();Fe(l),Xe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),t&&(W?t(l,yn(l)):t(l))};return De.on("change",e),function(){De.off("change",e)}}}),[De,t]),(0,c.useEffect)((function(){if(De)if(null==l)De.setValue(""),Fe("");else{var e=window.scrollY||window.pageYOffset;l!==De.getValue()&&(De.setValue(l),Fe(l),De.setCursor(pe?1:De.lineCount(),0),window.scrollTo(0,e))}}),[De,l]);var bn=(0,c.useCallback)((function(e){var n=De.getCursor(),l=De.getSelection(),t=l.split("\n");switch(e){case"bold":return De.replaceSelection("**"+l+"**"),""===l&&De.setCursor(n.line,n.ch+2),De.focus();case"italic":return De.replaceSelection("*"+l+"*"),""===l&&De.setCursor(n.line,n.ch+1),De.focus();case"code":return De.replaceSelection("`"+l+"`"),""===l&&De.setCursor(n.line,n.ch+1),De.focus();case"inline-latex":return qe("inline-latex"),De.focus();case"latex":return De.replaceSelection("```latex\n"+l+"\n```"),De.setCursor(n.line+1,l.length+1),De.focus();case"line-break":return De.replaceSelection("
\n"),De.focus();case"list-ul":return""===l?De.replaceSelection("- "+l):De.replaceSelection(t.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),De.focus();case"list-ol":return""===l?De.replaceSelection("1. "+l):De.replaceSelection(t.map((function(e,n){return""===e?"":"".concat(n+1,". ").concat(e)})).join("\n")),De.focus();case"add-null-ch":return""===l&&De.setCursor(n.line,n.ch),De.replaceSelection("▁"),De.focus();case"add-signal":return""===l&&De.setCursor(n.line,n.ch),De.replaceSelection("@▁@"),De.focus();case"add-multiple":return""===l&&De.setCursor(n.line,n.ch),De.replaceSelection(fe),De.focus();case"inster-template-1":return""===l&&De.setCursor(n.line,n.ch),De.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),De.focus();case"eraser":return De.setValue(""),De.focus();case"trigger-watch":return ze(!Le),De.focus();case"trigger-full-screen":return Ie(!He),De.focus();case oe:return void qe(oe);case ue:return void qe(ue);case re:return void qe(re);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[De,Le,He]),xn=(0,c.useCallback)((function(e,n){var l,t,a,i,o;switch(qe(""),Ue){case oe:var r=e.title,s=e.link;return De.replaceSelection("[".concat(r,"](").concat(s,")")),De.focus();case ue:var c=e.language,u=e.content;return De.replaceSelection(["```"+c,u,"```"].join("\n")),De.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),v=0;v-1||null==m||!m.type?g?De.replaceSelection("![ ".concat(g," ]( ").concat(f,' "').concat(g,'" )')):De.replaceSelection("![,](".concat(f,")")):(null==m||null===(i=m.type)||void 0===i?void 0:i.indexOf("video"))>-1?De.replaceSelection('')):(null==m||null===(o=m.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?De.replaceSelection('').concat(m.name,"")):ge.includes(b)?De.replaceSelection('').concat(m.name,"")):De.replaceSelection("[".concat(m.name,"](").concat(ae.Z.API_SERVER).concat(f,")")),De.focus();case de:for(var x=e.row,w=e.col,A=e.align,j="\n",y=0;y300&&(n=300),en(g+n+"px")}},t=fn.current,a=!1,i=0;return t.addEventListener("mousedown",e),document.addEventListener("mousemove",l),document.addEventListener("mouseup",n),function(){t.removeEventListener("mousedown",e),document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",n)}}}),[De,fn]),(0,c.useEffect)((function(){en(g)}),[g]);var jn={width:me(r),height:me($e)},yn=((0,c.useMemo)((function(){if(Qe){var e=new Date(Qe),n=e.getHours(),l=e.getMinutes(),t=e.getSeconds();return l=l<10?"0"+l:l,t=t<10?"0"+t:t,"".concat(n=n<10?"0"+n:n,":").concat(l,":").concat(t)}return 0}),[Qe]),function(e){var n=[];if(W){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,l,t){n.push({multiLine:!("@▁@"===e)})}))}return n});(0,c.useEffect)((function(){we[Ue]&&Ue!==ce&&Ue!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],n=window.innerWidth/2-e.offsetWidth/2,l=window.innerHeight/2-e.offsetHeight/2;sn(n),pn(l)}),0)}),[Ue]);var Bn=function(e,n,l,t){var a=document.body.clientHeight,i=document.body.clientWidth;return!(e<20&&l>e||e>i-20&&ln||n>a-20&&t0&&(0,r.jsx)("div",{className:o,children:l.map((function(e,n){return(0,r.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,r.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFij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wjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},n)}))}),p]}),t&&(0,r.jsx)("img",{style:{marginTop:33,marginRight:38},src:t,width:c})]})})},c=l(79800),u=l.n(c),d="row___aXJjm",p="title___HUKL0",v="tagsWrap___XB2W3",h="action___VdHb1",f="bar___t1kKC",g="tag___V7Eft",m="name___Hk1Ip",b="num___xQpcH",x="active___XryTX",w="tagsBorderWrap___OMxjs",A=l(92310),j=l.n(A),y=l(89392),B=function(e){var n=e.dataSource,l=void 0===n?[]:n,a=e.value,i=e.onChange,o=e.onTitleChange,s=e.className,c=e.title,A=e.titleWidth,B=void 0===A?41:A,C=e.style,S=void 0===C?{}:C,k=e.fontColor,N=void 0===k?"#6A7283":k,D=e.showCount,T=(0,t.useState)(0),E=u()(T,2),P=E[0],R=E[1],F=(0,t.useState)(!1),Z=u()(F,2),O=Z[0],L=Z[1],z=(0,t.useRef)(null),M=(0,t.useRef)(null);return(0,t.useEffect)((function(){var e;0!==l.length&&((null==z||null===(e=z.current)||void 0===e?void 0:e.clientHeight)>97?R(1):R(0));0===l.length&&R(0),L(!1)}),[l]),(0,r.jsxs)("div",{className:j()(d,s),style:S,children:[(0,r.jsx)("div",{onClick:(0,y.throttle)((function(){return null==o?void 0:o()}),2e3),style:{width:B,marginTop:O?12:4},className:"".concat(p," ").concat(o?"current":""),children:c}),(0,r.jsxs)("div",{className:O?"".concat(v," ").concat(w):v,children:[(0,r.jsx)("div",{className:f,ref:M,style:P>0?{height:1===P?97:"auto",overflow:1===P?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,r.jsx)("div",{className:g,ref:z,children:null==l?void 0:l.map((function(e){return(0,r.jsxs)("span",{onClick:function(){return i(e.id)},style:{color:N},className:a===e.id?x:"",children:[(0,r.jsx)("span",{title:e.name,className:m,children:e.name}),!!D&&(0,r.jsx)("span",{className:b,children:e.count})]},e.id)}))})}),!!P&&(0,r.jsx)(t.Fragment,{children:1===P?(0,r.jsxs)("div",{onClick:function(){var e;R(2),(null==z||null===(e=z.current)||void 0===e?void 0:e.clientHeight)>245?L(!0):L(!1)},className:h,children:["展开",(0,r.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,r.jsxs)("div",{onClick:function(){M.current.scrollTop=0,R(1),L(!1)},className:h,children:["收起",(0,r.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},C="tabs___GTqPV",S="active___F26E8",k=function(e){var n=e.dataSource,l=void 0===n?[]:n,t=e.value,a=e.onChange,i=e.className,o=e.style,s=void 0===o?{}:o;return(0,r.jsx)("div",{style:s,className:j()(C,i),children:l.map((function(e){return(0,r.jsx)("span",{onClick:function(){return a(e.id)},className:t===e.id?S:"",children:e.name},e.id)}))})},N="input___PW2zI",D="dropdown___vSy8B",T="menu___NiyBu",E="text___Grueu",P="b1___ZKryM",R="b2___aKyGa",F=l(92832),Z=function(e){var n,l=e.dataSource,a=void 0===l?[]:l,i=e.value,o=void 0===i?"":i,s=e.onChange,c=e.onInputChange,d=void 0===c?function(){}:c,p=e.className,v=e.style,h=void 0===v?{}:v,f=e.placeholder,g=(e.allowClear,(0,t.useState)("")),m=u()(g,2),b=m[0],x=m[1],w=(0,t.useState)(""),A=u()(w,2),y=A[0],B=A[1];(0,t.useEffect)((function(){var e,n=o;null!==(e=JSON.stringify(o))&&void 0!==e&&e.includes("{")&&(x(o.id),n=o.value||"");try{B(decodeURIComponent(n||""))}catch(e){B(decodeURIComponent(n||""))}}),[o]);var C=function(){s(encodeURIComponent(y),b||null)};return(0,r.jsxs)("div",{className:j()(N,p),style:h,children:[!!a.length&&(0,r.jsxs)("div",{className:D,children:[(0,r.jsxs)("div",{className:E,children:[null===(n=a.find((function(e){return e.id===b})))||void 0===n?void 0:n.name,(0,r.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,r.jsx)("b",{className:P}),(0,r.jsx)("b",{className:R})]}),(0,r.jsx)("div",{className:T,children:a.map((function(e,n){return(0,r.jsx)("div",{onClick:function(){var n;(n=e.id)!==b&&(x(n),s(encodeURIComponent(y),n))},children:e.name},n)}))})]}),(0,r.jsx)(F.Z,{onPressEnter:C,value:y,onChange:function(e){B(e.target.value),d(encodeURIComponent(e.target.value),b||null)},bordered:!1,placeholder:f}),(0,r.jsx)("i",{onClick:C,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},O="quickPager___GM30J",L="disabled___Ozc8I",z=function(e){var n=e.value,l=e.onChange,t=e.className,a=e.total,i=e.pageSize,o=e.style,s=void 0===o?{}:o,c=n<2,u=n>=Math.ceil(a/i);return a<=i?(0,r.jsx)(r.Fragment,{}):(0,r.jsxs)("div",{className:j()(O,t),style:s,children:[(0,r.jsx)("div",{onClick:function(){c||l(n-1,"prev")},className:c?L:"",children:"上一页"}),(0,r.jsx)("div",{onClick:function(){u||l(n+1,"next")},className:u?L:"",children:"下一页"})]})},M="list___oOsiS",W="wrap___G6T7F",H="lockWrap___Rl79E",I="li___oZZ7l",G="cover___b2bYW",K="img___IQX7w",U="sign___HkT6C",q="name___SsJx8",V="e___TMqq0",J="tags___bcjyo",Q="rate___YACg7",X=l(71418),Y=l(6848),_=l(31395),$=l(92723),ee=l(21082),ne=l(96908),le=l(57177),te=l(81378),ae=l(54313),ie=function(e){var n=e.className,l=e.dataSource,t=void 0===l?[]:l,a=e.col,i=void 0===a?4:a,o=e.right,s=e.bottom,c=void 0===s?23:s,u=e.precision,d=void 0===u?0:u,p=e.wrapWidth,v=void 0===p?1200:p,h=e.trackEventItems,f=e.loading,g=Math.floor((v-(i-1)*o)/i);return(0,r.jsx)(X.Z,{spinning:f,children:(0,r.jsxs)("div",{className:j()(M,n),children:[!!t.length&&t.map((function(e,n){var l=e.name,t=e.id,a=e.identifier,s=e.power,u=(e.cover_image_id,e.pic);return(0,r.jsxs)("div",{className:W,style:{width:g,marginRight:(1+n)%i==0?0:o+d,marginBottom:c},children:[(0,r.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(a,"/challenges"),className:I,onClick:function(e){e.preventDefault(),h&&(0,ee.L9)([h]),s&&(0,ee.xg)("/shixuns/".concat(a,"/challenges"))},children:[(0,r.jsxs)("div",{className:K,children:[(0,r.jsx)("img",{className:G,src:"".concat(u)}),e.is_jupyter&&(0,r.jsx)("img",{className:U,src:ne}),e.is_jupyter_lab&&(0,r.jsx)("img",{className:U,src:le}),e.is_unity_3d&&(0,r.jsx)("img",{className:U,src:te})]}),(0,r.jsx)("div",{className:q,children:(0,r.jsx)(Y.Z,{title:l||"实践项目名称-未填写",children:(0,r.jsx)("span",{className:V,children:l||"实践项目名称-未填写"})})}),(0,r.jsxs)("div",{className:J,children:[(0,r.jsx)(Y.Z,{placement:"bottom",title:"关卡数",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,r.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,r.jsx)(Y.Z,{placement:"bottom",title:"学习人数",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,r.jsx)("span",{children:e.myshixuns_count})]})}),(0,r.jsx)(Y.Z,{placement:"bottom",title:"难度等级",children:(0,r.jsx)("span",{children:(0,r.jsx)("span",{children:e.level})})}),(0,r.jsxs)("div",{className:Q,children:[(0,r.jsx)(_.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,r.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!s&&(0,r.jsxs)("div",{className:H,children:[(0,r.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,r.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},t)})),!t.length&&(0,r.jsx)(ae.Z,{})]})})},oe="list___jb2Ay",re="wrap___VsQDr",se="li___IxCLC",ce="cover___Mu8wr",ue="img___IpFLA",de="movebq___mF7wt",pe="bq___Bil0T",ve="sign___DXJ4d",he="name___l7FoJ",fe="e___pXQUG",ge="unit___wCIFR",me="tags___w_Mil",be=l(93697),xe=function(e){var n=e.className,l=e.dataSource,t=void 0===l?[]:l,a=e.col,i=void 0===a?4:a,o=e.right,s=e.bottom,c=void 0===s?23:s,u=e.precision,d=void 0===u?0:u,p=e.wrapWidth,v=void 0===p?1200:p,h=e.trackEventItems,f=e.loading,g=e.onRemove,m=void 0===g?function(){}:g,b=e.isCurrent,x=void 0===b||b,w=e.showAlias,A=void 0!==w&&w,y=Math.floor((v-(i-1)*o)/i),B=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,r.jsx)(X.Z,{spinning:f,children:(0,r.jsxs)("div",{className:j()(oe,n),children:[!(null==t||!t.length)&&(null==t?void 0:t.map((function(e,n){var l,t=e.name,a=e.id,s=e.identifier,u=(e.featured,e.school_name),p=e.image_url;e.excellent,e.is_plan;return(0,r.jsx)("div",{className:re,style:{width:y,marginRight:(1+n)%i==0?0:o+d,marginBottom:c},children:(0,r.jsxs)("a",{className:se,onClick:function(e){e.preventDefault(),e.stopPropagation(),h&&(0,ee.L9)([h]),(0,ee.xg)("/paths/".concat(s))},children:[(0,r.jsxs)("div",{className:ue,children:[(0,r.jsx)("img",{className:ce,src:"".concat(p)}),x&&(0,be.bg)()&&(null==e?void 0:e.studying)&&(0,r.jsxs)("div",{className:"".concat(de," user-path-items"),onClick:function(n){n.stopPropagation(),m(e)},children:[(0,r.jsx)("i",{className:"iconfont icon-yichu1 mr5 c-red"}),(0,r.jsx)("span",{className:"c-red",children:"移除"})]}),null==e||null===(l=e.subject_tags)||void 0===l?void 0:l.map((function(e,n){var l;if(0===n){var t,a=null===(t=B.find((function(n){return n.name==e})))||void 0===t?void 0:t.swimg;return(0,r.jsx)("img",{className:ve,src:a,style:{left:"-4px"}})}var i=null===(l=B.find((function(n){return n.name==e})))||void 0===l?void 0:l.ptimg;return(0,r.jsx)("img",{className:ve,src:i,style:{left:"".concat(48+52*(n-1)+2*n,"px")}})})),(0,r.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,r.jsx)("div",{className:pe,children:"开放课程"})})]}),(0,r.jsx)("div",{className:he,children:(0,r.jsx)(Y.Z,{title:A&&null!=e&&e.excellent_alias_name?(0,r.jsxs)("span",{children:["课程原名:".concat(t),(0,r.jsx)("br",{}),(0,r.jsx)("span",{children:"课程别名:".concat(null==e?void 0:e.excellent_alias_name)})]}):t,children:(0,r.jsx)("span",{className:fe,children:A&&(null==e?void 0:e.excellent_alias_name)||t})})}),(0,r.jsx)(Y.Z,{title:"发布单位:".concat(u),children:(0,r.jsxs)("div",{className:ge,children:[(0,r.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),u]})}),(0,r.jsx)("div",{className:me,children:(0,r.jsxs)("div",{children:[(0,r.jsx)(Y.Z,{placement:"bottom",title:"章节数",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,r.jsx)("span",{children:e.stages_count})]})}),(0,r.jsx)(Y.Z,{placement:"bottom",title:"学习人数",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,r.jsx)("span",{children:e.members_count})]})})]})})]})},a)}))),!t.length&&(0,r.jsx)(ae.Z,{})]})})},we={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Ae=function(e){var n=e.className,l=e.dataSource,t=void 0===l?[]:l,a=e.col,i=void 0===a?4:a,o=e.right,s=e.bottom,c=void 0===s?23:s,u=e.precision,d=void 0===u?0:u,p=e.wrapWidth,v=void 0===p?1200:p,h=e.trackEventItems,f=e.loading,g=Math.floor((v-(i-1)*o)/i);return(0,r.jsx)(X.Z,{spinning:f,children:(0,r.jsxs)("div",{className:j()(we.list,n),children:[!!t.length&&t.map((function(e,n){var l=e.subject_identifier,t=e.id,a=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,r.jsxs)("div",{className:we.wrap,style:{width:g,marginRight:(1+n)%i==0?0:o+d,marginBottom:c},children:[(0,r.jsxs)("a",{className:we.li,onClick:function(n){n.preventDefault(),(0,ee.Wn)(null==e?void 0:e.forbid_visit_info)||(h&&(0,ee.L9)([h]),(0,ee.xg)(e.first_category_url))},children:[(0,r.jsxs)("div",{className:we.top,children:[(0,r.jsx)(Y.Z,{title:e.name,children:(0,r.jsx)("div",{className:we.name,children:e.name})}),(0,r.jsx)("img",{className:we.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,r.jsx)("div",{className:we.text,title:e.creator,children:e.creator}),l&&(0,r.jsxs)("div",{className:we.btns,children:[(0,r.jsx)("div",{children:"开放课程"}),(0,r.jsx)("aside",{children:"开放课堂"})]}),a&&(0,r.jsx)("div",{className:we.sign,children:"公开"})]}),(0,r.jsxs)("div",{className:we.bottom,children:[e.visits>0&&(0,r.jsx)(Y.Z,{title:"访问量",placement:"bottom",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,r.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,r.jsx)(Y.Z,{title:"成员",placement:"bottom",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,r.jsx)(Y.Z,{title:"作业",placement:"bottom",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,r.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,r.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,r.jsxs)("div",{className:we.lockWrap,children:[(0,r.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,r.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},t)})),!t.length&&(0,r.jsx)(ae.Z,{})]})})},je={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},ye=l(5296),Be=function(e){var n=e.dataSource,l=void 0===n?[]:n,t=e.value,a=e.onChange,i=e.className,o=e.style,s=void 0===o?{}:o,c=e.tabBarExtraContent;return(0,r.jsxs)("div",{className:j()(je.tabs,i),style:s,children:[(0,r.jsx)("div",{className:je.tabsWrap,children:l.map((function(e,n){return(0,r.jsxs)("aside",{className:je.tab,onClick:function(){a(e.id),e.link&&ye.history.push(e.link)},children:[(0,r.jsx)("div",{className:t===e.id?je.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,r.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,r.jsx)(Y.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,r.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,r.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,r.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},n)}))}),(0,r.jsx)("div",{className:je.tabBar,children:c})]})},Ce=function(e){var n=e.className,l=e.style,t=void 0===l?{}:l,a=e.children;return(0,r.jsx)("div",{className:j()(n),style:t,children:a})},Se="orderWrap___ZfyGX",ke="orderIconWrap___XTB_O",Ne="orderAsc___KWHmA",De="orderDesc___rHdbB",Te="active___a7eSP",Ee="cursorPointer___gs9kL",Pe="orderTextWrap___teAKn",Re=l(38854),Fe=l(20834),Ze=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Oe=function(e){var n,l=e.sortValue,t=e.dropValue,a=e.className,i=e.onSort,o=e.onDrop,s=e.dataSource,c=void 0===s?Ze:s;return(0,r.jsxs)("div",{className:j()(Se,a),children:[(0,r.jsx)(Re.Z,{dropdownRender:function(){return(0,r.jsx)(Fe.Z,{children:c.map((function(e,n){return(0,r.jsx)(Fe.Z.Item,{onClick:function(){return o(e.id)},children:e.name},n)}))})},children:(0,r.jsx)("span",{className:Pe,children:null===(n=c.find((function(e){return t===e.id})))||void 0===n?void 0:n.name})}),(0,r.jsxs)("span",{className:ke,children:[(0,r.jsx)("span",{className:Ne,children:(0,r.jsx)("i",{className:"asc"===l?"iconfont icon-sanjiaoxing-up font12 ".concat(Ee," ").concat(Te):"iconfont icon-sanjiaoxing-up font12 ".concat(Ee),onClick:function(){return i("asc"===l?"desc":"asc")}})}),(0,r.jsx)("span",{className:De,children:(0,r.jsx)("i",{className:"desc"===l?"iconfont icon-sanjiaoxing-down font12 ".concat(Ee," ").concat(Te):"iconfont icon-sanjiaoxing-down font12 ".concat(Ee),onClick:function(){return i("asc"===l?"desc":"asc")}})})]})]})},Le=l(82242),ze=l.n(Le),Me=l(7557),We=l.n(Me),He=l(41498),Ie=l.n(He),Ge=l(39647),Ke=l.n(Ge),Ue={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},qe=l(3113),Ve=["className","style","children","loading","openLoading","onClick","size","shape"],Je=function(e){var n=e.className,l=e.style,a=e.children,i=e.loading,o=void 0!==i&&i,s=e.openLoading,c=e.onClick,d=void 0===c?function(){}:c,p=e.size,v=void 0===p?"middle":p,h=e.shape,f=void 0===h?"round":h,g=Ke()(e,Ve),m=(0,t.useState)(!1),b=u()(m,2),x=b[0],w=b[1];return(0,r.jsx)(qe.ZP,ze()(ze()({onClick:(0,y.throttle)(function(){var e=Ie()(We()().mark((function e(n){return We()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s&&w(!0),e.prev=1,e.next=4,d(n);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:s&&w(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(n){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:j()(Ue.btn,Ue["".concat(v,"-").concat(f)],n),style:l,size:v,shape:f,loading:x||o},g),{},{children:a}))},Qe="head___ghH72",Xe="node___mjPEy",Ye=function(e){var n=e.className,l=e.style,t=e.children,a=void 0===t?null:t,i=e.onClick,o=e.title;return(0,r.jsxs)("div",{className:j()(Qe,n),style:l,children:[(0,r.jsxs)("span",{className:"primary-hover",onClick:i,children:[(0,r.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,r.jsx)("b",{title:o,children:o}),(0,r.jsx)("div",{className:Xe,children:a})]})},_e="btns___sNgTb",$e="confirm___Ozirl",en="cancel___aiq1I",nn=function(e){var n=e.confirmShow,l=void 0===n||n,t=e.confirmTitle,a=e.confirmClick,i=e.cancelShow,o=void 0===i||i,s=e.cancelTitle,c=e.cancelClick,u=e.className,d=e.style,p=e.confirmLoading,v=void 0!==p&&p;return(0,r.jsxs)("div",{className:j()(_e,u),style:d,children:[l&&(0,r.jsx)(qe.ZP,{loading:v,onClick:a,type:"primary",className:$e,children:t}),o&&(0,r.jsx)(qe.ZP,{onClick:c,className:en,children:s})]})},ln={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},tn=function(e){var n=e.className,l=e.style,t=void 0===l?{}:l,a=e.LeftContent,i=e.children,o=e.RightContent;return(0,r.jsx)("div",{className:j()(ln.fixedBottom,n),style:t,children:(0,r.jsxs)("div",{className:ln.wrap,children:[(0,r.jsx)("div",{className:ln.left,children:a}),(0,r.jsx)("div",{className:ln.center,children:i}),(0,r.jsx)("div",{className:ln.right,children:o})]})})},an="crumbs___V41Oe",on="hover___bEIVd",rn=function(e){var n=e.className,l=e.style,a=void 0===l?{}:l,i=e.dataSource,o=void 0===i?[]:i;return(0,r.jsx)("div",{className:j()(an,n),style:a,children:o.map((function(e,n){return n"," "]})]},n):(0,r.jsx)("span",{style:{color:"#5F6368"},children:e.name},n)}))})},sn=l(31797),cn=["onChange"],un=sn.Z.Countdown,dn=function(e){var n=e.onChange,l=Ke()(e,cn),a=(0,t.useState)(null),i=u()(a,2),o=i[0],s=i[1];(0,t.useEffect)((function(){"number"==typeof o&&o>=0&&n(o)}),[o]);return(0,r.jsx)(un,ze()(ze()({},l),{},{onChange:function(e){var n=Math.floor(e/1e3);s(n)}}))}},77818:function(e,n,l){"use strict";l.d(n,{Z:function(){return a}});var t=l(59301);function a(e,n){var l=(0,t.useRef)();(0,t.useEffect)((function(){l.current=e})),(0,t.useEffect)((function(){if(null!==n){var e=setInterval((function(){l.current()}),n);return function(){return clearInterval(e)}}}),[n])}},90341:function(e,n,l){"use strict";l.d(n,{$J:function(){return s},JZ:function(){return u},bN:function(){return v},jP:function(){return p},rO:function(){return c}});var t=l(7557),a=l.n(t),i=l(41498),o=l.n(i),r=l(18030);function s(e){return(0,r.U2)("libraries/".concat(e,".json"))}function c(){return(0,r.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=o()(a()().mark((function e(n){var l;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,r.IV)("attachments/".concat(n,".json"));case 2:return l=e.sent,e.abrupt("return",0===l.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,r.v_)("libraries.json",e)}function v(e,n){return(0,r.gz)("libraries/".concat(e,".json"),n)}},28877:function(e,n,l){"use strict";l.d(n,{Z:function(){return u}});var t=l(39647),a=l.n(t),i=l(43418),o="ul___TdfYY",r=l(32637),s=l(37712),c=["open","onCancel"],u=function(e){var n=e.open,l=e.onCancel;a()(e,c);return(0,s.jsx)(i.Z,{centered:!0,open:n,title:(0,s.jsx)("div",{style:{fontWeight:"bold"},children:"联系教研助理"}),width:"696px",onCancel:l,footer:null,children:(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"tc",children:(0,s.jsx)("img",{className:"mt10",src:r,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})}),(0,s.jsx)("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10",children:"免费教研助理"}),(0,s.jsx)("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16",children:"微信扫一扫添加"}),(0,s.jsx)("div",{style:{color:"#333"},className:"pt30 font14",children:(0,s.jsxs)("ul",{className:o,children:[(0,s.jsx)("li",{children:"1、解答老师疑惑、帮助老师更快熟悉和使用平台教学。"}),(0,s.jsx)("li",{children:"2、协助老师创建课堂、课程设计、做好教学工作。"}),(0,s.jsx)("li",{children:"3、根据老师教学方向,分享头歌平台C9院校、985高校、211高校、双一流高校老师经典实践教学案例。"})]})})]})})}},58790:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return Te}});var t=l(82242),a=l.n(t),i=l(37205),o=l.n(i),r=l(7557),s=l.n(r),c=l(41498),u=l.n(c),d=l(79800),p=l.n(d),v=l(39647),h=l.n(v),f=l(59301),g=l(5296),m=l(92832),b=l(98228),x=l(57809),w=l(78241),A=l(8591),j=l(43418),y=l(88522),B=l(95237),C=l(43604),S=l(78673),k=l(5112),N=l(24905),D=l(38318),T=l(59028),E=l(3113),P=l(71418),R=l(16318),F={bg:"bg____raBL",wrap:"wrap___HeK2P",crumbs:"crumbs___bamBY",titleWrap:"titleWrap___UpC0c",flexRow:"flexRow___WjoyK",flexJustifyCenter:"flexJustifyCenter___V6ndk",flexAlignEnd:"flexAlignEnd___So64w",flexAlignCenter:"flexAlignCenter___WWRXs",flexColumn:"flexColumn___b0Fz8",formWrap:"formWrap___Bmhgz",fieldWrap:"fieldWrap___pR4UB",mdWrap:"mdWrap___FPskk",tree:"tree___bVp9O",backgroundFa:"backgroundFa___ghlCO",aBtn:"aBtn___M7dWu",bBtn:"bBtn___XycZO",cascaderWrap:"cascaderWrap___CPNAV",listItem:"listItem____eV5T",right:"right___x8wr7",one:"one___wdYdi",schoolHintWrap:"schoolHintWrap___AWsQj",colorCDCDCD:"colorCDCDCD___xguLh",color0152d9:"color0152d9___MEYYd",spanText:"spanText___Srs_u",addTypeRadio:"addTypeRadio___JTRkP",add_ai:"add_ai___JGWFe",paths_content:"paths_content___Rzg9i",content_header:"content_header___LvvU1",header_box:"header_box___c05Gw",header_bj:"header_bj____CaVY",header_text:"header_text___jNO1N",lianjie:"lianjie___vtxBe",buzou_box:"buzou_box___qkXlL",no_start_style:"no_start_style___ONC9T",start_style:"start_style___vWVZl"},Z=l(21082),O=l(92723),L=l(18030),z=l(85573),M=l.n(z),W=l(64165),H="cascaderContainer___uz26h",I="valueWrap___zTHXb",G="valueItem___vBNoA",K="placeholder___bJTkn",U="modalWrap___uhROO",q="left___oZrbl",V="right___y9QjL",J="disabled___LVx0f",Q="emptyWrap___KG5pK",X=l(51638),Y=l(14988),_=l(37712),$=["sub_discipline"],ee=["sub_disciplines"],ne=(0,f.createRef)(),le=function(e){var n=e.dataSource,l=e.placeholder,t=e.defaultValue,i=e.onChange,r=(0,f.useState)(!1),s=p()(r,2),c=s[0],u=s[1],d=(0,f.useState)({data:[],objData:{},ids:[]}),v=p()(d,2),g=v[0],m=v[1],b=(0,f.useState)({}),x=p()(b,2),w=x[0],A=x[1];(0,f.useEffect)((function(){window.addEventListener("click",(function(){u(!1),A({})}))}),[]),(0,f.useEffect)((function(){if(t){var e={},n=[];t.forEach((function(l){var t=l.sub_discipline,i=h()(l,$);t&&(e[t.id]=a()(a()({},i),{},{sub_disciplines:[t]}),n.push(t.id))})),m({ids:n,data:Object.values(e),objData:e}),i(n)}}),[t]);var j=function(){return(0,_.jsx)("div",{className:Q,children:(0,_.jsx)(W.Z,{image:W.Z.PRESENTED_IMAGE_SIMPLE})})},y=45;return ne&&ne.current&&ne.current.clientHeight>45&&(y=ne.current.clientHeight+5),(0,_.jsxs)("div",{className:H,onClick:function(e){e.stopPropagation()},children:[(0,_.jsxs)("div",{ref:ne,className:I,onClick:function(){return u(!c)},children:[0===g.data.length&&(0,_.jsx)("span",{className:K,children:l||"请选择方向&课程"}),g.data.map((function(e){return(0,_.jsxs)("div",{className:G,children:[(0,_.jsx)("span",{children:e.name}),(0,_.jsx)("span",{children:"/"}),(0,_.jsx)("span",{children:e.sub_disciplines[0].name}),(0,_.jsx)("span",{onClick:function(n){n.stopPropagation(),n.preventDefault(),function(e){var n=g.objData;delete n[e];var l=g.ids.filter((function(n){return n!==e}));m({data:Object.values(n),objData:n,ids:l}),i(l)}(e.sub_disciplines[0].id)},children:(0,_.jsx)(X.Z,{})})]},e.id)}))]}),c&&(0,_.jsxs)("div",{className:U,style:{top:y},children:[(0,_.jsxs)("div",{className:q,children:[0===n.length&&j(),n.length>0&&n.map((function(e){return(0,_.jsxs)("div",{onClick:function(){A(e)},children:[(0,_.jsx)("span",{children:e.name}),(0,_.jsx)("span",{children:(0,_.jsx)(Y.Z,{})})]},e.id)}))]}),w.sub_disciplines&&(0,_.jsxs)("div",{className:V,children:[0===w.sub_disciplines.length&&j(),w.sub_disciplines.length>0&&w.sub_disciplines.map((function(e){var n=g.ids.includes(e.id);return(0,_.jsx)("div",{className:n?J:"",onClick:function(){!function(e){if(g.ids.includes(e.id))return!1;w.sub_disciplines;var n=h()(w,ee),l=a()(a()({},g.objData),{},M()({},e.id,a()(a()({},n),{},{sub_disciplines:[e]})));m({ids:[].concat(o()(g.ids),[e.id]),data:Object.values(l),objData:l}),i([].concat(o()(g.ids),[e.id]))}(e),u(!1)},children:e.name},e.id)}))]})]})]})},te=l(61998),ae=l(19842),ie=l(61186),oe=l.n(ie),re=l(80559),se=l(58670),ce=l(33550),ue="flexRow___qY1Ro",de="flexColumn___xTKsc",pe="formWrap___OJ1NZ",ve="example___XZnZv",he="footerWrap___DSZCv",fe=["newCourse","globalSetting","loading","dispatch","schoolName","onSuccess"],ge=function(e,n){return n.some((function(n){return n.label.toLowerCase().indexOf(e.toLowerCase())>-1}))},me=m.Z.TextArea,be=(0,g.connect)((function(e){var n=e.newCourse,l=e.loading;return{newCourse:n,globalSetting:e.globalSetting,loading:l.effects}}))((function(e){var n=e.newCourse,l=(e.globalSetting,e.loading),t=e.dispatch,i=e.schoolName,o=e.onSuccess,r=void 0===o?function(){}:o,c=(h()(e,fe),w.Z.useForm()),d=p()(c,1)[0];(0,f.useEffect)((function(){d.setFieldsValue({name:i})}),[i]);var v=function(){var e=u()(s()().mark((function e(n){var l,i,o,c,d,p,v,h;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(l=n||{}).name,o=l.city,c=void 0===o?[]:o,d=l.address,p=l.remarks,e.next=3,t({type:"newCourse/appplySchool",payload:{name:i,province:c[0],city:c[1],address:d,remarks:p}});case 3:if(2!=(null==(v=e.sent)?void 0:v.status)){e.next=7;break}return h=j.Z.confirm({icon:null,width:600,centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("p",{children:"系统检测到您申请新增的单位已存在,请确认是否为该单位?"}),(0,_.jsx)(te.Z,{columns:[{title:"学校/单位",dataIndex:"name"},{title:"用户数",width:150,dataIndex:"users_count"}],dataSource:[a()({},v)],pagination:!1})]}),onOk:function(){var e=u()(s()().mark((function e(){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(i);case 2:h.destroy(),t({type:"newCourse/setActionTabs",payload:{}});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),onCancel:function(){h.destroy()}}),e.abrupt("return");case 7:t({type:"newCourse/setActionTabs",payload:{}}),0==v.status&&(A.ZP.success("新增发布单位成功!"),r(i));case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,_.jsx)(j.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:"NewCourse-AppplySchool"===n.actionTabs.key,title:"申请发布单位",width:"600px",footer:null,children:(0,_.jsxs)(w.Z,{className:pe,form:d,labelCol:{span:4},wrapperCol:{span:20},onFinish:v,children:[(0,_.jsx)(w.Z.Item,{label:"发布单位:",name:"name",rules:[{required:!0,message:"请输入学校或工作单位"}],children:(0,_.jsx)(m.Z,{placeholder:"请输入发布单位"})}),(0,_.jsxs)("div",{className:"".concat(ue," ").concat(ve),children:[(0,_.jsx)("div",{children:"示例:"}),(0,_.jsxs)("div",{className:de,children:[(0,_.jsxs)("div",{children:[(0,_.jsx)(re.Z,{style:{color:"rgb(82, 196, 26)"}}),(0,_.jsx)("span",{className:"font14 ml5",children:"正确示例:数据结构"})]}),(0,_.jsxs)("div",{children:[(0,_.jsx)(se.Z,{style:{color:"red"}}),(0,_.jsxs)("span",{className:"font14 ml5",children:["错误示例:数据结构",oe()().format("YYYY"),"春"]})]})]})]}),(0,_.jsx)(w.Z.Item,{label:"地区:",name:"city",children:(0,_.jsx)(ae.Z,{allowClear:!0,size:"middle",options:ce.P,placeholder:"请选择所在地",showSearch:{matchInputWidth:!0,filter:ge}})}),(0,_.jsx)(w.Z.Item,{label:"详细地址:",name:"address",children:(0,_.jsx)(m.Z,{placeholder:"请填写完整的地址信息"})}),(0,_.jsx)(w.Z.Item,{label:"说明:",name:"remarks",children:(0,_.jsx)(me,{placeholder:"再次说明特别情况(选填)"})}),(0,_.jsx)("div",{className:he,children:(0,_.jsxs)(w.Z.Item,{children:[(0,_.jsx)(E.ZP,{className:"mr5",size:"middle",onClick:function(){t({type:"newCourse/setActionTabs",payload:{}})},children:"取消"}),(0,_.jsx)(E.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:l["newCourse/appplySchool"],children:"保存"})]})})]})})})),xe=l(28877),we=l(98382),Ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYIAAAAoCAYAAADzCv21AAAAAXNSR0IArs4c6QAAApFJREFUeF7t3TFO42AQgFEiQSIKKrgEiJqb0HI4Wm5CjeASUFGgBArkSInixPY/rWfetqHIPI80+tjdZPHw9HH9e/6zOvOHAAECBFIJrL+Xn+8v95vWUIu7x7fl6mpz0/pBrxMgQIDAvAQu/i7Xr8+3X613veh+QBW0mLxOgACBeQpEqmB7CFTBPB+wd02AAIGWQKQKtodAFbQovU6AAIH5CrSqYH8IVMF8H7J3ToAAgSmBVhXsD4EqsEgECBDIKzBVBb1DoAryLoHJCBCoLTBVBb1DoApqL4rpCRDILTBWBSeHQBXkXgTTESBQV2CsCk4OgSqouyQmJ0Agv8BQFQweAlWQfxlMSIBATYGhKhg8BKqg5oKYmgCBGgLHVTB6CFRBjYUwJQEC9QSOq2D0EKiCesthYgIE6ggcVsHkIVAFdZbCpAQI1BI4rILJQ6AKai2GaQkQqCWwq4LmIVAFtRbDtAQI1BHYVUHzEKiCOkthUgIE6gl0VRA6BKqg3nKYmACBGgJdFTgENZ61KQkQIDAoED4EvsrSBhEgQCCnQOhXQ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BfMrnRF3nL6l6qW2UObLL3MUrT1PIIm4HVW0B1JKxGlXvUORn2aFASOLGiQJ8X165CGA1AYQ3FTY/mi1UdgVapkZQKB1UfAthD8mOxd4V+LLA4UMV4Jn9Vn7OcH4yfZzBz+9+118/sGFEH8+5ffAFSZ6f9GDkA3AAAAAElFTkSuQmCC",ye=l.p+"static/shiyong.3f0aff1d.png",Be=l(42141),Ce=l(48486),Se=l(93697),ke=["user","newCourse","globalSetting","loading","dispatch"],Ne=m.Z.TextArea,De=(b.Z.TreeNode,x.default.Option),Te=(0,g.connect)((function(e){var n=e.user,l=e.newCourse,t=e.loading;return{user:n,newCourse:l,globalSetting:e.globalSetting,loading:t.effects}}))((function(e){e.user,e.newCourse;var n,l,t,i,r,c,d,v,b,x,z,M,W,H,I,G,K,U,q,V,J,Q,X,Y,$,ee,ne,te,ae,ie,oe,re,se,ce,ue,de,pe,ve,he,fe,ge,me,Te,Ee,Pe,Re,Fe,Ze,Oe,Le,ze,Me,We,He,Ie,Ge,Ke,Ue,qe,Ve,Je,Qe,Xe,Ye,_e,$e,en,nn,ln,tn,an,on,rn,sn,cn,un,dn,pn,vn,hn,fn,gn,mn,bn,xn,wn=e.globalSetting,An=e.loading,jn=e.dispatch,yn=(h()(e,ke),(0,g.useSearchParams)()),Bn=p()(yn,1)[0],Cn=(0,g.useParams)(),Sn=w.Z.useForm(),kn=p()(Sn,1)[0],Nn=(0,f.useState)({}),Dn=p()(Nn,2),Tn=Dn[0],En=Dn[1],Pn=(0,f.useState)(),Rn=p()(Pn,2),Fn=Rn[0],Zn=Rn[1],On=(0,f.useRef)(),Ln=(0,f.useState)(!0),zn=p()(Ln,2),Mn=zn[0],Wn=zn[1],Hn=(0,f.useState)(!1),In=p()(Hn,2),Gn=In[0],Kn=In[1],Un=(0,f.useState)(),qn=p()(Un,2),Vn=qn[0],Jn=qn[1],Qn=(0,f.useState)(),Xn=p()(Qn,2),Yn=Xn[0],_n=Xn[1],$n=(0,f.useState)(!0),el=p()($n,2),nl=el[0],ll=el[1],tl=(0,f.useState)(!1),al=p()(tl,2),il=al[0],ol=al[1],rl=(0,f.useState)(!1),sl=p()(rl,2),cl=sl[0],ul=sl[1],dl=(0,f.useState)(-1),pl=p()(dl,2),vl=pl[0],hl=pl[1],fl=(0,f.useState)(!0),gl=p()(fl,2),ml=gl[0],bl=gl[1],xl=(0,f.useState)([]),wl=p()(xl,2),Al=wl[0],jl=wl[1],yl=(0,f.useState)([]),Bl=p()(yl,2),Cl=Bl[0],Sl=Bl[1],kl=(0,f.useState)(!1),Nl=p()(kl,2),Dl=Nl[0],Tl=Nl[1],El=(0,f.useState)(!1),Pl=p()(El,2),Rl=Pl[0],Fl=Pl[1],Zl=(0,f.useState)(!1),Ol=p()(Zl,2),Ll=Ol[0],zl=Ol[1],Ml=w.Z.useForm(),Wl=p()(Ml,1)[0],Hl=(0,f.useRef)(),Il=(0,f.useState)({}),Gl=p()(Il,2),Kl=Gl[0],Ul=Gl[1],ql=(0,f.useState)(!1),Vl=p()(ql,2),Jl=Vl[0],Ql=Vl[1],Xl=(0,f.useState)(!1),Yl=p()(Xl,2),_l=Yl[0],$l=Yl[1];(0,f.useEffect)((function(){return function(){window.clearInterval(Hl.current)}}),[]);var et=function(){var e=u()(s()().mark((function e(){var n,l,t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/subject_generations/get.json",{method:"get"});case 2:0==(null==(n=e.sent)?void 0:n.status)&&(Ul(null==n?void 0:n.data),1!=(null==n||null===(l=n.data)||void 0===l?void 0:l.state)&&-1!=(null==n||null===(t=n.data)||void 0===t?void 0:t.state)||window.clearInterval(Hl.current));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),nt=function(){var e=u()(s()().mark((function e(){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/subject_generations/get_file.json",{method:"get"});case 2:0==(null==(n=e.sent)?void 0:n.status)&&Wl.setFieldValue("file_ids",(0,we.z)(null==n?void 0:n.data));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),lt=(0,f.useState)([]),tt=p()(lt,2),at=tt[0],it=tt[1],ot=(0,f.useState)(!1),rt=p()(ot,2),st=rt[0],ct=rt[1],ut=at.length>0&&at.length<4,dt=(0,f.useState)(1),pt=p()(dt,2),vt=pt[0],ht=pt[1],ft=(0,f.useState)([]),gt=p()(ft,2),mt=gt[0],bt=gt[1],xt=(0,f.useState)([]),wt=p()(xt,2),At=wt[0],jt=wt[1];(0,f.useEffect)((function(){var e;yt(),Bt(),On.current=Cn.pathId,Zn(!!On.current),(0,Z.Dk)(null==wn||null===(e=wn.setting)||void 0===e?void 0:e.name),kn.setFieldsValue({learning_notes_title:"课程须知"}),On.current&&St()}),[]);var yt=function(){var e=u()(s()().mark((function e(){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});case 2:n=e.sent,bt(n.disciplines);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Bt=function(){var e=u()(s()().mark((function e(){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return bl(!0),e.next=3,jn({type:"newCourse/getSchoolOption",payload:{display_aliases:!0}});case 3:n=e.sent,bl(!1),jl(null==n?void 0:n.schools),Sl(null==n?void 0:n.schools);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ct=function(){Bn.get("username")?g.history.push("/users/".concat(Bn.get("username"),"/paths")):g.history.push(Fn?"/paths/".concat(On.current):"/paths")},St=function(){var e=u()(s()().mark((function e(){var n,l,t,a,i,r,c,u,d,p,v,h,f,g;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jn({type:"newCourse/getEditCourseData",payload:{id:On.current}});case 2:(n=e.sent)&&(u={name:n.name,name_en:n.name_en,intro:n.description,content:null==n||null===(l=n.toast)||void 0===l?void 0:l.content,notice:n.learning_notes,school_id:null==n?void 0:n.school,learning_notes_title:n.learning_notes_title||"课程须知"},n.disciplines&&n.disciplines.length>0&&jt(n.disciplines),kn.setFieldsValue(u),ul(null==n||null===(t=n.toast)||void 0===t?void 0:t.is_open),hl(null==n||null===(a=n.toast)||void 0===a?void 0:a.open_num),Wn(null==n?void 0:n.cust_seq),Kn(null==n?void 0:n.show_spoc),ol(null==n?void 0:n.show_history),Fl(null==n?void 0:n.show_course_section),Tl(null==n?void 0:n.allow_download),ll(null==n?void 0:n.show_tag),ct(null==n?void 0:n.allow_set_subject_summary),(null==n?void 0:n.show_chapter)&&at.push("chapter"),(null==n?void 0:n.show_charts)&&at.push("charts"),(null==n?void 0:n.show_cert_apply)&&at.push("cert_apply"),(null==n?void 0:n.show_knowledge_graph)&&at.push("knowledge_graph"),null!=n&&n.show_chapter&&null!=n&&n.show_charts&&null!=n&&n.show_cert_apply&&null!=n&&n.show_knowledge_graph&&at.push("all"),it(o()(at)),(null==n||null===(i=n.attachments)||void 0===i?void 0:i.length)>0&&Jn([{uid:null==n||null===(d=n.attachments)||void 0===d||null===(d=d[0])||void 0===d?void 0:d.id,name:null==n||null===(p=n.attachments)||void 0===p||null===(p=p[0])||void 0===p?void 0:p.title,response:{id:null==n||null===(v=n.attachments)||void 0===v||null===(v=v[0])||void 0===v?void 0:v.id}}]),(null==n||null===(r=n.attachments_b)||void 0===r?void 0:r.length)>0&&_n([{uid:null==n||null===(h=n.attachments_b)||void 0===h||null===(h=h[0])||void 0===h?void 0:h.id,name:null==n||null===(f=n.attachments_b)||void 0===f||null===(f=f[0])||void 0===f?void 0:f.title,response:{id:null==n||null===(g=n.attachments_b)||void 0===g||null===(g=g[0])||void 0===g?void 0:g.id}}]),En({name:n.name,intro:n.description,notice:n.learning_notes,content:null==n||null===(c=n.toast)||void 0===c?void 0:c.content}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),kt=function(){var e=u()(s()().mark((function e(n){var l,t,i,o,r,c,u,d,p,v,h,f,m,b,x;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(i=n||{}).name,r=i.intro,c=i.notice,u=i.name_en,d=i.learning_notes_title,p=i.sub_discipline_ids,v=i.school_id,h=Fn?"newCourse/editCourse":"newCourse/submitCourse",f=!1,m=null,Al.map((function(e){v===e.name&&(f=!0,m=e.id)})),f){e.next=7;break}return e.abrupt("return",A.ZP.error("未找到包含'".concat(v,"'的发布单位")));case 7:return b={id:On.current,name:o,name_en:u,description:r,learning_notes:c,cust_seq:Mn,show_spoc:Gn,school_id:m,show_tag:nl,show_history:il,show_course_section:Rl,allow_download:Dl,learning_notes_title:d,attachment_ids:[null==Vn||null===(l=Vn[0])||void 0===l||null===(l=l.response)||void 0===l?void 0:l.id],attachment_ids_b:[null==Yn||null===(t=Yn[0])||void 0===t||null===(t=t.response)||void 0===t?void 0:t.id],sub_discipline_ids:p,subject_toast_attributes:{is_open:cl,open_num:vl,content:n.content}},st&&(b.show_chapter=null==at?void 0:at.includes("chapter"),b.show_charts=null==at?void 0:at.includes("charts"),b.show_cert_apply=null==at?void 0:at.includes("cert_apply"),b.show_knowledge_graph=null==at?void 0:at.includes("knowledge_graph")),e.next=11,jn({type:h,payload:a()({},b)});case 11:(null==(x=e.sent)?void 0:x.subject_id)&&g.history.push("/paths/".concat(x.subject_id));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,_.jsx)("div",{className:F.wrap,children:(0,_.jsxs)("div",{className:F.bg,children:[(0,_.jsxs)("div",{className:F.crumbs,children:[(0,_.jsx)("span",{children:"实践课程"}),(0,_.jsx)("i",{className:"iconfont icon-zhankai1"}),(0,_.jsxs)("b",{children:[Fn?"编辑":"创建","实践课程"]})]}),(0,_.jsxs)("div",{className:F.titleWrap,children:[(0,_.jsxs)("span",{children:[Fn?"编辑":"创建","实践课程"]}),(0,_.jsx)("b",{onClick:Ct,children:"返回"})]}),!Fn&&(0,_.jsx)(Ce.tp,{style:{marginTop:"20px"},dataSource:[{name:"手动创建",id:1},{name:"智能创建",id:2}],value:vt,onChange:function(){var e=u()(s()().mark((function e(n){var l,t,a,i;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ht(n),1!=n){e.next=6;break}window.clearInterval(Hl.current),Wl.resetFields(),e.next=11;break;case 6:return nt(),e.next=9,(0,L.ZP)("/api/subject_generations/get.json",{method:"get"});case 9:0==(null==(l=e.sent)?void 0:l.status)&&(Ul(null==l?void 0:l.data),1!=(null==l||null===(t=l.data)||void 0===t?void 0:t.state)&&-1!=(null==l||null===(a=l.data)||void 0===a?void 0:a.state)||window.clearInterval(Hl.current),0==(null==l||null===(i=l.data)||void 0===i?void 0:i.state)&&(Hl.current=setInterval((function(){et()}),1e3)));case 11:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()}),1==vt&&(0,_.jsxs)(w.Z,{form:kn,className:F.formWrap,scrollToFirstError:!0,layout:"vertical",colon:!1,onValuesChange:function(){var e=kn.getFieldsValue();"school_id"in e&&Sl(Al.filter((function(n){var l,t;return-1!==(null==n||null===(l=n.name)||void 0===l||null===(l=l.toUpperCase())||void 0===l?void 0:l.indexOf(null==e||null===(t=e.school_id)||void 0===t?void 0:t.toUpperCase()))}))),En(a()({},e))},onFinish:kt,children:[(0,_.jsxs)("div",{className:F.fieldWrap,children:[(0,_.jsx)(w.Z.Item,{extra:(0,_.jsx)("div",{className:"tr c-grey-333 font12 mt3",children:"".concat((null===(n=Tn.name)||void 0===n?void 0:n.length)||0,"/60")}),name:"name",label:"实践课程名称",rules:[{required:!0,message:"请输入实践课程名称"}],children:(0,_.jsx)(Ne,{maxLength:60,placeholder:"例如:大学计算机基础 —— 计算思维"})}),(0,_.jsx)(w.Z.Item,{style:{marginTop:"-24px"},name:"name_en",label:"英文课程名称",extra:(0,_.jsx)("div",{className:"tr c-grey-333 font12 mt3",children:"".concat((null===(l=Tn.name_en)||void 0===l?void 0:l.length)||0,"/200")}),rules:[{message:"请输入英文课程名称"}],children:(0,_.jsx)(Ne,{maxLength:200,placeholder:"College Computer Fundamentals - Computational Thinking"})}),(0,_.jsx)(w.Z.Item,{name:"sub_discipline_ids",label:(0,_.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",width:1200},children:[(0,_.jsx)("div",{children:"方向&课程"}),(0,_.jsxs)("div",{style:{color:"#9096A3",position:"relative",left:12},children:["没有合适的方向&课程?",(0,_.jsx)("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:function(){return zl(!0)},children:"联系教研助理"})]})]}),style:{marginTop:"-24px"},children:(0,_.jsx)(le,{defaultValue:At,dataSource:mt,onChange:function(e){return kn.setFieldsValue({sub_discipline_ids:e})}})}),(0,_.jsx)(w.Z.Item,{label:"发布单位",name:"school_id",wrapperCol:{span:24},extra:!ml&&Tn.school_id&&!(null!=Al&&Al.find((function(e){return e.name===Tn.school_id})))&&(0,_.jsx)("div",{className:F.schoolHintWrap,children:(0,_.jsxs)("span",{className:F.colorCDCDCD,children:["未找到包含“",Tn.school_id,"”的发布单位,如有需要,请",(0,_.jsx)("span",{style:{color:"blue",cursor:"pointer"},onClick:function(){var e,n;j.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,_.jsxs)("div",{style:{textAlign:"center"},children:[(0,_.jsxs)("div",{style:{textAlign:"left"},children:["请扫码或搜索加入头歌官方交流QQ群:",null==wn||null===(e=wn.setting)||void 0===e?void 0:e.homepage_tea_qq_number,",联系群内的运营进行咨询和申请新增学校名称。"]}),(0,_.jsx)("img",{src:"".concat(O.Z.IMG_SERVER,"/").concat(null==wn||null===(n=wn.setting)||void 0===n?void 0:n.homepage_tea_qq_qrcode_url),style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"})},children:"联系平台运营"}),"申请新增"]})}),rules:[{required:!0,message:"请输入发布单位"}],children:(0,_.jsx)(y.Z,{placeholder:"请输入发布单位",showSearch:!0,size:"large",children:Cl.map((function(e,n){return(0,_.jsx)(De,{value:e.name,children:e.name},n)}))})})]}),(0,_.jsx)("div",{className:F.mdWrap,children:(0,_.jsx)(w.Z.Item,{name:"intro",label:"简介",rules:[{required:!0,message:"请输入实践课程的简介"},{whitespace:!0,message:"请输入实践课程的简介"},{max:65e3,message:"实践课程的简介最大限制65000个字符"}],children:(0,_.jsx)(R.Z,{watch:!0,defaultValue:Tn.intro})})}),(0,_.jsxs)("div",{className:F.mdWrap,children:[(0,_.jsxs)(B.Z,{align:"top",className:"mb10 mt10",children:[(0,_.jsx)(C.Z,{children:(0,_.jsx)("span",{className:"c-red mr10",children:"*"})}),(0,_.jsx)(C.Z,{flex:"1",children:(0,_.jsx)(w.Z.Item,{name:"learning_notes_title",label:"",style:{marginBottom:0},rules:[{required:!0,message:"请输课程须知标题"},{max:15,message:"请输课程须知标题最大限制15个字符"}],children:(0,_.jsx)(m.Z,{style:{height:38},placeholder:"请输入"})})})]}),(0,_.jsx)(w.Z.Item,{name:"notice",label:"",rules:[{required:!0,message:"请输入实践课程的课程须知"},{whitespace:!0,message:"请输入实践课程的课程须知"},{max:65e3,message:"实践课程的课程须知最大限制65000个字符"}],children:(0,_.jsx)(R.Z,{insertTemp:"1",watch:!0,defaultValue:Tn.notice})})]}),(0,_.jsxs)("div",{className:F.mdWrap,children:[(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,_.jsx)(S.Z,{checked:cl,style:{marginRight:11,minWidth:32},onChange:function(e){ul(e)}}),(0,_.jsxs)("span",{className:F.spanText,children:["课程公告",(0,_.jsx)("span",{children:"(支持老师自定义公告内容,以弹框形式提醒课程的学习用户)"})]})]}),cl&&(0,_.jsx)(w.Z.Item,{style:{marginTop:10},name:"content",label:"",rules:[{required:!0,message:"请输入实践课程的课程提示"},{max:1e4,message:"实践课程的课程提示最大限制10000个字符"}],children:(0,_.jsx)(R.Z,{insertTemp:"1",watch:!0,defaultValue:Tn.content})}),cl&&(0,_.jsxs)("div",{style:{marginTop:20,borderBottom:"1px solid #DBDCE0",paddingBottom:7},children:[(0,_.jsx)("label",{style:{color:"#000",marginRight:10},children:"提示次数"}),(0,_.jsxs)(k.ZP.Group,{value:vl,onChange:function(e){hl(e.target.value)},children:[(0,_.jsx)(k.ZP,{className:"c-black",value:-1,children:"每次"}),(0,_.jsx)(k.ZP,{className:"ml20 c-black",value:1,children:"一次"})]})]})]}),(0,_.jsxs)("div",{className:F.mdWrap,style:{marginTop:25},children:[(0,_.jsx)(N.Z,{style:{marginLeft:st?"28px":"0"},checked:Mn,onChange:function(e){Wn(null==e?void 0:e.target.checked)},children:(0,_.jsxs)("span",{className:F.spanText,children:["展示默认章节序号",(0,_.jsx)("span",{children:"(选中,则为章节下所有项目添加排序编号)"})]})}),(0,_.jsx)("br",{}),(0,_.jsx)(N.Z,{style:{marginTop:"10px",marginLeft:st?"28px":"0"},checked:Gn,onChange:function(e){return Kn(null==e?void 0:e.target.checked)},children:(0,_.jsxs)("span",{className:F.spanText,children:["自选并展示SPOC课堂",(0,_.jsx)("span",{children:"(选中,则在教学团队下方添加SPOC课堂模块,团队成员可管理模块中课堂的展示)"})]})}),(0,_.jsx)("br",{}),(0,_.jsx)(N.Z,{style:{marginTop:"10px",marginLeft:st?"28px":"0"},checked:nl,onChange:function(e){return ll(null==e?void 0:e.target.checked)},children:(0,_.jsxs)("span",{className:F.spanText,children:["展示技术标签模块",(0,_.jsx)("span",{children:"(选中,则在教学团队下方添加技术标签模块)"})]})}),(0,_.jsx)("br",{}),(0,_.jsx)(N.Z,{style:{marginTop:"10px",marginLeft:st?"28px":"0"},checked:il,onChange:function(e){return ol(null==e?void 0:e.target.checked)},children:(0,_.jsxs)("span",{className:F.spanText,children:["展示历史课堂模块",(0,_.jsx)("span",{children:"(选中,则在教学团队下方添加历史课堂模块,团队成员可管理模块中课堂的展示)"})]})}),(0,_.jsx)("br",{}),(0,_.jsx)(N.Z,{style:{marginTop:"10px",marginLeft:st?"28px":"0"},checked:Dl,onChange:function(e){return Tl(null==e?void 0:e.target.checked)},children:(0,_.jsxs)("span",{className:F.spanText,children:["允许下载教学课件",(0,_.jsx)("span",{children:"(选中,则允许学习用户下载课程章节中上传的教学课件)"})]})}),(0,_.jsx)("br",{}),(0,_.jsx)(N.Z,{style:{marginTop:"10px",marginLeft:st?"28px":"0"},checked:Rl,onChange:function(e){return Fl(null==e?void 0:e.target.checked)},children:(0,_.jsxs)("span",{className:F.spanText,children:["默认展开课程小节内容",(0,_.jsx)("span",{children:"(选中,则用户在进入是将课程详情页面时,默认展开所有小节内容)"})]})}),(0,_.jsx)("br",{}),st&&(0,_.jsx)(D.Z,{style:{marginTop:"10px"},showIcon:!1,className:F.tree,defaultExpandAll:!0,treeData:[{title:"展示课程概要(选中,则默认展示所有概览模块)",key:"all",children:[{title:"展示课程章节",key:"chapter"},{title:"展示排行榜",key:"charts"},{title:"展示证书申请",key:"cert_apply"},{title:"展示知识图谱",key:"knowledge_graph"}]}],onCheck:function(e,n){!function(e,n){it(e)}(e)},titleRender:function(e){return(0,_.jsx)(N.Z,{checked:null==at?void 0:at.includes(e.key),indeterminate:"all"===e.key&&ut,onChange:function(n){var l=null==at?void 0:at.indexOf(e.key);if(l>-1)if("all"===e.key)at.splice(0);else{at.splice(l,1);var t=null==at?void 0:at.indexOf("all");t>-1&&at.splice(t,1)}else"all"===e.key?at.splice(0,at.length,"all","chapter","charts","cert_apply","knowledge_graph"):(at.push(e.key),at.length>=4&&(null==at||!at.includes("all"))&&at.push("all"));console.log("checkedValueList--",at),it(o()(at))},children:e.title})}}),(0,_.jsxs)("div",{className:"mt10",children:[(0,_.jsx)("div",{className:"c-black mb10",children:"自定义顶部背景图"}),(0,_.jsxs)(T.Z,{action:O.Z.API_SERVER+"/api/attachments.json",withCredentials:!0,fileList:Vn,onChange:function(e){var n,l,t=(null==e?void 0:e.file.size)/1024/1024<2;if(null===(n=e.fileList)||void 0===n||!n.length)return!1;t?Jn(null==e||null===(l=e.fileList)||void 0===l?void 0:l.slice(-1)):Jn(o()(Vn))},beforeUpload:function(e){var n="image/jpeg"===e.type||"image/png"===e.type;if(!n)return A.ZP.error("只能上传jpg 或者png图片"),!1;var l=e.size/1024/1024<2;return l?n&&l:(A.ZP.error("文件大小不能大于2m"),!1)},onRemove:function(e){Jn([])},children:[(0,_.jsx)("div",{className:F.aBtn,children:"上传图片"}),(0,_.jsx)("span",{style:{color:"#5F6367",pointerEvents:"none"},children:"(本项非必需。如不上传,则使用系统默认图片;如上传,请选择jpg、png格式,大小不超过2M,建议尺寸1920*240像素)"})]})]}),(0,_.jsxs)("div",{className:"mt10",children:[(0,_.jsx)("div",{className:"c-black mb10",children:"自定义顶部内容图"}),(0,_.jsxs)(T.Z,{action:O.Z.API_SERVER+"/api/attachments.json",withCredentials:!0,fileList:Yn,onChange:function(e){var n,l,t=(null==e?void 0:e.file.size)/1024/1024<2;if(null===(n=e.fileList)||void 0===n||!n.length)return!1;t?_n(null==e||null===(l=e.fileList)||void 0===l?void 0:l.slice(-1)):_n(o()(Yn))},beforeUpload:function(e){var n="image/jpeg"===e.type||"image/png"===e.type;if(!n)return A.ZP.error("只能上传jpg 或者png图片"),!1;var l=e.size/1024/1024<2;return l?n&&l:(A.ZP.error("文件大小不能大于2m"),!1)},onRemove:function(e){_n([])},children:[(0,_.jsx)("div",{className:F.aBtn,children:"上传图片"}),(0,_.jsx)("span",{style:{color:"#5F6367",pointerEvents:"none"},children:"(本项非必需。如不上传,则使用系统默认图片;如上传,请选择jpg、png格式,大小不超过2M,建议尺寸1200*240像素)"})]})]})]}),(0,_.jsxs)("div",{className:F.backgroundFa,children:[(0,_.jsx)("div",{className:F.bBtn,onClick:Ct,children:"取消"}),(0,_.jsx)(E.ZP,{className:F.cBtn,onClick:function(){return kn.submit()},loading:An["newCourse/editCourse"]||An["newCourse/submitCourse"],children:"提交 "})]})]}),2==vt&&(0,_.jsxs)("div",{className:F.add_ai,children:[(0,_.jsx)("div",{style:{margin:"20px 0"},children:"根据您上传的资料自动生成课程简介、课程目标、课程大纲、章节描述、课程资源、知识点、知识图谱等内容"}),(0,_.jsx)(w.Z,{form:Wl,scrollToFirstError:!0,colon:!1,children:(0,_.jsx)(w.Z.Item,{name:"file_ids",children:(0,_.jsx)(we.Z,{accept:".pdf, .docx, .doc, .xlsx, .xls, .txt, .md",maxSize:150,number:99,uploadText:"建议上传课程书籍、课程教学大纲等类似文件"})})}),(null===(t=[-1,0,1])||void 0===t?void 0:t.includes(null==Kl?void 0:Kl.state))&&(0,_.jsxs)("div",{className:F.paths_content,children:[(0,_.jsxs)("div",{className:F.content_header,children:[(0,_.jsx)("i",{className:"iconfont icon-ziyuanshibie font22 mb10",style:{color:null!==(i=[1,2,3,4,5,6,7,8])&&void 0!==i&&i.includes(null==Kl?void 0:Kl.phase)?"#2a56ca":"#bdbdbd"}}),(0,_.jsx)("i",{className:"iconfont icon-kechengjibenxinxi font22 mb10",style:{color:null!==(r=[2,3,4,5,6,7,8])&&void 0!==r&&r.includes(null==Kl?void 0:Kl.phase)?"#2a56ca":"#bdbdbd"}}),(0,_.jsx)("i",{className:"iconfont icon-kechengneirongziyuan font22 mb10",style:{color:null!==(c=[5,6,7,8])&&void 0!==c&&c.includes(null==Kl?void 0:Kl.phase)?"#2a56ca":"#bdbdbd"}})]}),(0,_.jsxs)("div",{style:{display:"flex",position:"relative"},children:[(0,_.jsxs)("div",{className:F.header_box,style:{left:0},children:[(0,_.jsx)("img",{src:null!==(d=[1,2,3,4,5,6,7,8])&&void 0!==d&&d.includes(null==Kl?void 0:Kl.phase)?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYIAAAAoCAYAAADzCv21AAAAAXNSR0IArs4c6QAAEsNJREFUeF7tXW2OY7cRlOZAQXKEvaJ/r+EcZQ4QYxfIRXKB7AskflVVf5DUjA3boWHY0kivxUf2R1Wzm+/+07//c93qP1d/dbtdzzf32+12Pf99/PP8H76mP95vF34XZLWL8U9FfvvhLjaUfz3GAtfg5c9hjLu43a46lnC8JKqMO5FPv1XnpVxD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aXfS0WxRDEtUuagZYO2+S1SitUD84hriDMeQVf3JqlQZTUltxXg67ll9RoN4Kz/3KfgfheDzrZ+/n59BNctZgMcCEwuTcNqRtGqAkY0h4/Lf2rBeR5BZAzN0Tobrqi8hDDO8wgohujcPD88zyNABz9enz6CbokuWGl//HP3EWRsgAIBI6CEugaRVPOMH6HGiiR7FtOhVyWqEOBYp8b92g3qKkHMVN41UQF19ZHuCArmZFaR56MSQdWr1Nit0/dyrIuoGudGkW6wdkVPFuT361mwcW6KDqv8HPnZk1NhCt2KD0XVKv/0EYzQvMZmKnMxE5fvEWjn+/y3aGX9gwsz203YhwLc3f2TuW8IDqTMmNPz+M2391+/+nsDbZWcPYKK7oVeGkUXb10+l01Cok2I2XboJd786SPw10Ec6ekjOH0Ep4+gZh4AZP3Wdf6/tfxeUVj8rA8KO/ktRQDX7TZjAzEj0A2hz95wOs8jQDYqdIZOUKEHkHjPDGgHEESo2s91Owg8ROwFGKSKV+9m/NbpI4gZQTGmjHHwZxWYaeUNA9u6/D6I65jNZWn2mnSTfvWZyMDgnsdjBKyPEXyprsPZCZuyiCEuAtCnWiJKWqxIWtL/1tH9gvyVPpoX+wjut/uUDVAg4BSHLIirQJVO1xonpWRKczT19NwUAs8WRrea+zGUL6No53kEBIO00iJL4+E61BDARgzzHtPwIiXccDX6VL8/pd3IKs/zCLr5mKDAf4jXwQYZDRp+ugKpPjtTThQE8t0gNlS2B43I73Q1cALf6SOA86Su24+b3zfAPOl2+x8Kb0cOp1E48wAAAABJRU5ErkJggg==":Ae}),(0,_.jsx)("div",{className:F.header_text,style:{color:null!==(v=[1,2,3,4,5,6,7,8])&&void 0!==v&&v.includes(null==Kl?void 0:Kl.phase)?"#fff":"#9096A3"},children:null!==(b=[1,2,3,4,5,6,7,8])&&void 0!==b&&b.includes(null==Kl?void 0:Kl.phase)?"资源识别 已完成":"资源识别"}),(0,_.jsx)("div",{style:{textAlign:"center",width:"386px"},children:(0,_.jsx)("img",{src:"data:image/png;base64,iVB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ErkJggg==",style:{width:"233px",height:"179px"}})})]}),(0,_.jsxs)("div",{className:F.header_box,style:{left:"380px"},children:[(0,_.jsx)("img",{src:null!==(x=[2,3,4,5,6,7,8])&&void 0!==x&&x.includes(null==Kl?void 0:Kl.phase)?je:Ae}),(0,_.jsx)("div",{className:F.header_text,style:{color:null!==(z=[2,3,4,5,6,7,8])&&void 0!==z&&z.includes(null==Kl?void 0:Kl.phase)?"#fff":"#9096A3"},children:null!==(M=[2,3,4,5,6,7,8])&&void 0!==M&&M.includes(null==Kl?void 0:Kl.phase)?"课程基本信息生成 ".concat(null!==(W=[2,3,4])&&void 0!==W&&W.includes(null==Kl?void 0:Kl.phase)?"进行中":"已完成"):"课程基本信息生成 等待中"}),(0,_.jsx)("div",{className:F.lianjie}),(0,_.jsx)("div",{style:{textAlign:"center"},children:(0,_.jsxs)("div",{className:F.buzou_box,children:[(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(null===(H=[0,1])||void 0===H?void 0:H.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),(null===(I=[2])||void 0===I?void 0:I.includes(null==Kl?void 0:Kl.phase))&&-1!=(null==Kl?void 0:Kl.state)&&(0,_.jsx)(P.Z,{indicator:(0,_.jsx)(Be.Z,{spin:!0}),size:"small",children:(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})}),(null===(G=[2])||void 0===G?void 0:G.includes(null==Kl?void 0:Kl.phase))&&-1==(null==Kl?void 0:Kl.state)&&(0,_.jsx)("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),(null===(K=[3,4,5,6,7,8])||void 0===K?void 0:K.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),(0,_.jsx)("div",{style:{margin:"0 10px",color:null!==(U=[0,1])&&void 0!==U&&U.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(q=[2])&&void 0!==q&&q.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:"课程简介生成"}),(0,_.jsx)("div",{style:{color:null!==(V=[0,1])&&void 0!==V&&V.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(J=[2])&&void 0!==J&&J.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:null!==(Q=[0,1])&&void 0!==Q&&Q.includes(null==Kl?void 0:Kl.phase)?"等待中":null!==(X=[2])&&void 0!==X&&X.includes(null==Kl?void 0:Kl.phase)?-1==(null==Kl?void 0:Kl.state)?"生成失败":"进行中":"已完成"})]}),(0,_.jsx)("div",{style:{width:"2px",height:"30px",background:null!==(Y=[0,1,2])&&void 0!==Y&&Y.includes(null==Kl?void 0:Kl.phase)?"rgba(48,97,208,0.1)":"#83B6FF",marginLeft:"7px"}}),(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(null===($=[0,1,2])||void 0===$?void 0:$.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),(null===(ee=[3])||void 0===ee?void 0:ee.includes(null==Kl?void 0:Kl.phase))&&-1!=(null==Kl?void 0:Kl.state)&&(0,_.jsx)(P.Z,{indicator:(0,_.jsx)(Be.Z,{spin:!0}),size:"small",children:(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})}),(null===(ne=[3])||void 0===ne?void 0:ne.includes(null==Kl?void 0:Kl.phase))&&-1==(null==Kl?void 0:Kl.state)&&(0,_.jsx)("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),(null===(te=[4,5,6,7,8])||void 0===te?void 0:te.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),(0,_.jsx)("div",{style:{margin:"0 10px",color:null!==(ae=[0,1,2])&&void 0!==ae&&ae.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(ie=[3])&&void 0!==ie&&ie.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:"课程目标生成"}),(0,_.jsx)("div",{style:{color:null!==(oe=[0,1,2])&&void 0!==oe&&oe.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(re=[3])&&void 0!==re&&re.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:null!==(se=[0,1,2])&&void 0!==se&&se.includes(null==Kl?void 0:Kl.phase)?"等待中":null!==(ce=[3])&&void 0!==ce&&ce.includes(null==Kl?void 0:Kl.phase)?-1==(null==Kl?void 0:Kl.state)?"生成失败":"进行中":"已完成"})]}),(0,_.jsx)("div",{style:{width:"2px",height:"30px",background:null!==(ue=[0,1,2,3])&&void 0!==ue&&ue.includes(null==Kl?void 0:Kl.phase)?"rgba(48,97,208,0.1)":"#83B6FF",marginLeft:"7px"}}),(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(null===(de=[0,1,2,3])||void 0===de?void 0:de.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),(null===(pe=[4])||void 0===pe?void 0:pe.includes(null==Kl?void 0:Kl.phase))&&-1!=(null==Kl?void 0:Kl.state)&&(0,_.jsx)(P.Z,{indicator:(0,_.jsx)(Be.Z,{spin:!0}),size:"small",children:(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})}),(null===(ve=[4])||void 0===ve?void 0:ve.includes(null==Kl?void 0:Kl.phase))&&-1==(null==Kl?void 0:Kl.state)&&(0,_.jsx)("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),(null===(he=[5,6,7,8])||void 0===he?void 0:he.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),(0,_.jsx)("div",{style:{margin:"0 10px",color:null!==(fe=[0,1,2,3])&&void 0!==fe&&fe.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(ge=[4])&&void 0!==ge&&ge.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:"章节及描述生成"}),(0,_.jsx)("div",{style:{color:null!==(me=[0,1,2,3])&&void 0!==me&&me.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(Te=[4])&&void 0!==Te&&Te.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:null!==(Ee=[0,1,2,3])&&void 0!==Ee&&Ee.includes(null==Kl?void 0:Kl.phase)?"等待中":null!==(Pe=[4])&&void 0!==Pe&&Pe.includes(null==Kl?void 0:Kl.phase)?-1==(null==Kl?void 0:Kl.state)?"生成失败":"进行中":"已完成"}),(null===(Re=[5,6,7,8])||void 0===Re?void 0:Re.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsxs)("div",{style:{marginLeft:"10px",color:"#232B40"},children:["共生成",(0,_.jsx)("span",{style:{color:"#3061D0"},children:null==Kl?void 0:Kl.stage_size}),"个章节"]})]})]})})]}),(0,_.jsxs)("div",{className:F.header_box,style:{left:"760px"},children:[(0,_.jsx)("img",{src:null!==(Fe=[5,6,7,8])&&void 0!==Fe&&Fe.includes(null==Kl?void 0:Kl.phase)?je:Ae}),(0,_.jsx)("div",{className:F.header_text,style:{color:null!==(Ze=[5,6,7,8])&&void 0!==Ze&&Ze.includes(null==Kl?void 0:Kl.phase)?"#fff":"#9096A3"},children:null!==(Oe=[5,6,7,8])&&void 0!==Oe&&Oe.includes(null==Kl?void 0:Kl.phase)?"课程内容资源生成 ".concat(null!==(Le=[5,6,7])&&void 0!==Le&&Le.includes(null==Kl?void 0:Kl.phase)?"进行中":"已完成"):"课程内容资源生成 等待中"}),(0,_.jsx)("div",{className:F.lianjie}),(0,_.jsx)("div",{style:{textAlign:"center"},children:(0,_.jsxs)("div",{className:F.buzou_box,children:[(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(null===(ze=[0,1,2,3,4])||void 0===ze?void 0:ze.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),(null===(Me=[5])||void 0===Me?void 0:Me.includes(null==Kl?void 0:Kl.phase))&&-1!=(null==Kl?void 0:Kl.state)&&(0,_.jsx)(P.Z,{indicator:(0,_.jsx)(Be.Z,{spin:!0}),size:"small",children:(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})}),(null===(We=[5])||void 0===We?void 0:We.includes(null==Kl?void 0:Kl.phase))&&-1==(null==Kl?void 0:Kl.state)&&(0,_.jsx)("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),(null===(He=[6,7,8])||void 0===He?void 0:He.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),(0,_.jsx)("div",{style:{margin:"0 10px",color:null!==(Ie=[0,1,2,3,4])&&void 0!==Ie&&Ie.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(Ge=[5])&&void 0!==Ge&&Ge.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:"知识点生成"}),(0,_.jsx)("div",{style:{color:null!==(Ke=[0,1,2,3,4])&&void 0!==Ke&&Ke.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(Ue=[5])&&void 0!==Ue&&Ue.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:null!==(qe=[0,1,2,3,4])&&void 0!==qe&&qe.includes(null==Kl?void 0:Kl.phase)?"等待中":null!==(Ve=[5])&&void 0!==Ve&&Ve.includes(null==Kl?void 0:Kl.phase)?-1==(null==Kl?void 0:Kl.state)?"生成失败":"进行中":"已完成"}),(null===(Je=[6,7,8])||void 0===Je?void 0:Je.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsxs)("div",{style:{marginLeft:"10px",color:"#232B40"},children:["共生成",(0,_.jsx)("span",{style:{color:"#3061D0"},children:null==Kl?void 0:Kl.resource_size}),"个知识点"]})]}),(0,_.jsx)("div",{style:{width:"2px",height:"30px",background:null!==(Qe=[0,1,2,3,4,5])&&void 0!==Qe&&Qe.includes(null==Kl?void 0:Kl.phase)?"rgba(48,97,208,0.1)":"#83B6FF",marginLeft:"7px"}}),(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(null===(Xe=[0,1,2,3,4,5])||void 0===Xe?void 0:Xe.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),(null===(Ye=[6])||void 0===Ye?void 0:Ye.includes(null==Kl?void 0:Kl.phase))&&-1!=(null==Kl?void 0:Kl.state)&&(0,_.jsx)(P.Z,{indicator:(0,_.jsx)(Be.Z,{spin:!0}),size:"small",children:(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})}),(null===(_e=[6])||void 0===_e?void 0:_e.includes(null==Kl?void 0:Kl.phase))&&-1==(null==Kl?void 0:Kl.state)&&(0,_.jsx)("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),(null===($e=[7,8])||void 0===$e?void 0:$e.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),(0,_.jsx)("div",{style:{margin:"0 10px",color:null!==(en=[0,1,2,3,4,5])&&void 0!==en&&en.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(nn=[6])&&void 0!==nn&&nn.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:"知识点资源生成"}),(0,_.jsx)("div",{style:{color:null!==(ln=[0,1,2,3,4,5])&&void 0!==ln&&ln.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(tn=[6])&&void 0!==tn&&tn.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:null!==(an=[0,1,2,3,4,5])&&void 0!==an&&an.includes(null==Kl?void 0:Kl.phase)?"等待中":null!==(on=[6])&&void 0!==on&&on.includes(null==Kl?void 0:Kl.phase)?-1==(null==Kl?void 0:Kl.state)?"生成失败":"进行中":"已完成"}),(null===(rn=[7,8])||void 0===rn?void 0:rn.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsxs)("div",{style:{marginLeft:"10px",color:"#232B40"},children:["共生成",(0,_.jsx)("span",{style:{color:"#3061D0"},children:null==Kl?void 0:Kl.resource_size}),"个资源"]})]}),(0,_.jsx)("div",{style:{width:"2px",height:"30px",background:null!==(sn=[0,1,2,3,4,5,6])&&void 0!==sn&&sn.includes(null==Kl?void 0:Kl.phase)?"rgba(48,97,208,0.1)":"#83B6FF",marginLeft:"7px"}}),(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(null===(cn=[0,1,2,3,4,5,6])||void 0===cn?void 0:cn.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),(null===(un=[7])||void 0===un?void 0:un.includes(null==Kl?void 0:Kl.phase))&&-1!=(null==Kl?void 0:Kl.state)&&(0,_.jsx)(P.Z,{indicator:(0,_.jsx)(Be.Z,{spin:!0}),size:"small",children:(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})}),(null===(dn=[7])||void 0===dn?void 0:dn.includes(null==Kl?void 0:Kl.phase))&&-1==(null==Kl?void 0:Kl.state)&&(0,_.jsx)("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),(null===(pn=[8])||void 0===pn?void 0:pn.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),(0,_.jsx)("div",{style:{margin:"0 10px",color:null!==(vn=[0,1,2,3,4,5,6])&&void 0!==vn&&vn.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(hn=[7])&&void 0!==hn&&hn.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:"知识图谱生成"}),(0,_.jsx)("div",{style:{color:null!==(fn=[0,1,2,3,4,5,6])&&void 0!==fn&&fn.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(gn=[7])&&void 0!==gn&&gn.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:null!==(mn=[0,1,2,3,4,5,6])&&void 0!==mn&&mn.includes(null==Kl?void 0:Kl.phase)?"等待中":null!==(bn=[7])&&void 0!==bn&&bn.includes(null==Kl?void 0:Kl.phase)?-1==(null==Kl?void 0:Kl.state)?"生成失败":"进行中":"已完成"}),(null===(xn=[8])||void 0===xn?void 0:xn.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsxs)("div",{style:{marginLeft:"10px",color:"#232B40"},children:["共生成",(0,_.jsx)("span",{style:{color:"#3061D0"},children:null==Kl?void 0:Kl.knowledge_size}),"个知识图谱"]})]})]})})]})]})]}),(0,_.jsx)(P.Z,{spinning:_l,children:(0,_.jsx)("div",{className:0==(null==Kl?void 0:Kl.state)?F.start_style:F.no_start_style,onClick:u()(s()().mark((function e(){var n,l,t,a;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((0,Se.Ny)()){e.next=3;break}return Ql(!0),e.abrupt("return",!1);case 3:if(-2!=(null==Kl?void 0:Kl.state)&&-1!=(null==Kl?void 0:Kl.state)){e.next=18;break}if($l(!0),l=[],null===(n=Wl.getFieldValue("file_ids"))||void 0===n||n.map((function(e){var n,t;l.push((null==e||null===(n=e.response)||void 0===n?void 0:n.container_id)||(null==e||null===(t=e.response)||void 0===t?void 0:t.id))})),!((null==l?void 0:l.length)>0)){e.next=14;break}return e.next=10,(0,L.ZP)("/api/subject_generations.json",{method:"post",body:{attachment_ids:l}});case 10:0==(null==(t=e.sent)?void 0:t.status)&&(A.ZP.success("开始生成"),et(),Hl.current=setInterval((function(){et()}),1e3)),e.next=15;break;case 14:A.ZP.error("请上传课程资料,建议上传书籍、课程教学大纲等");case 15:$l(!1),e.next=25;break;case 18:if(1!=(null==Kl?void 0:Kl.state)){e.next=25;break}return $l(!0),e.next=22,(0,L.ZP)("/api/subject_generations/finish.json",{method:"post",body:{id:null==Kl?void 0:Kl.id}});case 22:0==(null==(a=e.sent)?void 0:a.status)&&g.history.push("/paths/".concat(null==Kl?void 0:Kl.subject_id)),$l(!1);case 25:case"end":return e.stop()}}),e)}))),children:1==(null==Kl?void 0:Kl.state)?"完成课程创建":0==(null==Kl?void 0:Kl.state)?"课程生成中,请稍后...":-1==(null==Kl?void 0:Kl.state)?"重新生成课程":"开始生成课程"})})]}),Jl&&(0,_.jsx)("div",{style:{width:"100vw",height:"100vh",position:"fixed",top:0,left:0,background:"rgba(0,0,0,.5)",zIndex:200,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,_.jsxs)("div",{style:{width:"500px",height:"515px",textAlign:"center"},children:[(0,_.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABQVJREFUWEfNmXes32MUxj8PagS1QghJiU1p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BcDlcrRP589iFLAPekxvMNdW2pDXqueCBJYvn+RKky6wGzUn2vXhqlB4Bl8z9Xjloz1THQTJLpBmjlPLMfNGM1/Ahgop9dWsuta4kWEWsDLmcrud1MJdRVL1Olma6I2i6IiIVLX3xveuzd0n5uWTL206p7IsJx6QOsCljG7SDJvXJHVkRKL1F3XOoSXE39js1e2ODea0JBbubtyZHAOynX3u8EYUT0ljo3LG3FQoLz2OtMIaWB/zqvtWV/nPLpfmCTogU/Tk++2QpkH7GQG7eUWxVucr9ypPkpBafVdlsrWtAvDXeVpNkGMGtYnb/UgqT/k1sJsKlgrYA7DzgZ+NW6UNKTbZFVBmTcOiF3LULjh/JmM1aS6amPNRSsCbKh5M//JmWj42pjHei+oWtLTXmNZVoedLQkv+30WkPJnyBc+xo1Te5H7K1aE9+V6mngIcexnXGEf5Jcx3ssmybH67rzNE05wO8l9W3niEwMF38nyKBYRKxSzf62bWflFEO3cU8vmueG7tNHghy6j0eVqx66z291aT80HzDrQA7dJ+A6oEPzEb0J2dY+Q2yUnyGsrKufIT7PzxAWsv3+DPEPkKKBQOOiq+AAAAAASUVORK5CYII=",style:{marginLeft:"auto",display:"block",cursor:"pointer",width:"30px",height:"30px"},onClick:function(){Ql(!1)}}),(0,_.jsx)("img",{src:ye,style:{display:"block",marginTop:"-20px",width:"460px",height:"500px"}})]})}),(0,_.jsx)(be,{schoolName:Tn.school_id,onSuccess:function(e){Bt(),En(a()(a()({},kn.getFieldsValue()),{},{school_id:e}))}}),(0,_.jsx)(xe.Z,{open:Ll,onCancel:function(){zl(!1)}})]})})}))},33550:function(e,n,l){"use strict";l.d(n,{P:function(){return t}});var t=[{value:"北京",label:"北京",children:[{value:"东城",label:"东城"},{value:"西城",label:"西城"},{value:"朝阳",label:"朝阳"},{value:"丰台",label:"丰台"},{value:"石景山",label:"石景山"},{value:"海淀",label:"海淀"},{value:"门头沟",label:"门头沟"},{value:"房山",label:"房山"},{value:"通州",label:"通州"},{value:"顺义",label:"顺义"},{value:"昌平",label:"昌平"},{value:"大兴",label:"大兴"},{value:"平谷",label:"平谷"},{value:"怀柔",label:"怀柔"},{value:"密云",label:"密云"},{value:"延庆",label:"延庆"}]},{value:"上海",label:"上海",children:[{value:"崇明",label:"崇明"},{value:"黄浦",label:"黄浦"},{value:"卢湾",label:"卢湾"},{value:"徐汇",label:"徐汇"},{value:"长宁",label:"长宁"},{value:"静安",label:"静安"},{value:"普陀",label:"普陀"},{value:"闸北",label:"闸北"},{value:"虹口",label:"虹口"},{value:"杨浦",label:"杨浦"},{value:"闵行",label:"闵行"},{value:"宝山",label:"宝山"},{value:"嘉定",label:"嘉定"},{value:"浦东",label:"浦东"},{value:"金山",label:"金山"},{value:"松江",label:"松江"},{value:"青浦",label:"青浦"},{value:"南汇",label:"南汇"},{value:"奉贤",label:"奉贤"}]},{value:"广东",label:"广东",children:[{value:"广州",label:"广州"},{value:"深圳",label:"深圳"},{value:"珠海",label:"珠海"},{value:"东莞",label:"东莞"},{value:"中山",label:"中山"},{value:"佛山",label:"佛山"},{value:"惠州",label:"惠州"},{value:"河源",label:"河源"},{value:"潮州",label:"潮州"},{value:"江门",label:"江门"},{value:"揭阳",label:"揭阳"},{value:"茂名",label:"茂名"},{value:"梅州",label:"梅州"},{value:"清远",label:"清远"},{value:"汕头",label:"汕头"},{value:"汕尾",label:"汕尾"},{value:"韶关",label:"韶关"},{value:"顺德",label:"顺德"},{value:"阳江",label:"阳江"},{value:"云浮",label:"云浮"},{value:"湛江",label:"湛江"},{value:"肇庆",label:"肇庆"}]},{value:"江苏",label:"江苏",children:[{value:"南京",label:"南京"},{value:"常熟",label:"常熟"},{value:"常州",label:"常州"},{value:"海门",label:"海门"},{value:"淮安",label:"淮安"},{value:"江都",label:"江都"},{value:"江阴",label:"江阴"},{value:"昆山",label:"昆山"},{value:"连云港",label:"连云港"},{value:"南通",label:"南通"},{value:"启东",label:"启东"},{value:"沭阳",label:"沭阳"},{value:"宿迁",label:"宿迁"},{value:"苏州",label:"苏州"},{value:"太仓",label:"太仓"},{value:"泰州",label:"泰州"},{value:"同里",label:"同里"},{value:"无锡",label:"无锡"},{value:"徐州",label:"徐州"},{value:"盐城",label:"盐城"},{value:"扬州",label:"扬州"},{value:"宜兴",label:"宜兴"},{value:"仪征",label:"仪征"},{value:"张家港",label:"张家港"},{value:"镇江",label:"镇江"}]},{value:"重庆",label:"重庆",children:[{value:"万州",label:"万州"},{value:"涪陵",label:"涪陵"},{value:"渝中",label:"渝中"},{value:"大渡口",label:"大渡口"},{value:"江北",label:"江北"},{value:"沙坪坝",label:"沙坪坝"},{value:"九龙坡",label:"九龙坡"},{value:"南岸",label:"南岸"},{value:"北碚",label:"北碚"},{value:"万盛",label:"万盛"},{value:"双挢",label:"双挢"},{value:"渝北",label:"渝北"},{value:"巴南",label:"巴南"},{value:"黔江",label:"黔江"},{value:"长寿",label:"长寿"},{value:"綦江",label:"綦江"},{value:"潼南",label:"潼南"},{value:"铜梁",label:"铜梁"},{value:"大足",label:"大足"},{value:"荣昌",label:"荣昌"},{value:"壁山",label:"壁山"},{value:"梁平",label:"梁平"},{value:"城口",label:"城口"},{value:"丰都",label:"丰都"},{value:"垫江",label:"垫江"},{value:"武隆",label:"武隆"},{value:"忠县",label:"忠县"},{value:"开县",label:"开县"},{value:"云阳",label:"云阳"},{value:"奉节",label:"奉节"},{value:"巫山",label:"巫山"},{value:"巫溪",label:"巫溪"},{value:"石柱",label:"石柱"},{value:"秀山",label:"秀山"},{value:"酉阳",label:"酉阳"},{value:"彭水",label:"彭水"},{value:"江津",label:"江津"},{value:"合川",label:"合川"},{value:"永川",label:"永川"},{value:"南川",label:"南川"}]},{value:"安徽",label:"安徽",children:[{value:"合肥",label:"合肥"},{value:"安庆",label:"安庆"},{value:"蚌埠",label:"蚌埠"},{value:"亳州",label:"亳州"},{value:"巢湖",label:"巢湖"},{value:"滁州",label:"滁州"},{value:"阜阳",label:"阜阳"},{value:"贵池",label:"贵池"},{value:"淮北",label:"淮北"},{value:"淮化",label:"淮化"},{value:"淮南",label:"淮南"},{value:"黄山",label:"黄山"},{value:"九华山",label:"九华山"},{value:"六安",label:"六安"},{value:"马鞍山",label:"马鞍山"},{value:"宿州",label:"宿州"},{value:"铜陵",label:"铜陵"},{value:"屯溪",label:"屯溪"},{value:"芜湖",label:"芜湖"},{value:"宣城",label:"宣城"}]},{value:"福建",label:"福建",children:[{value:"福州",label:"福州"},{value:"厦门",label:"厦门"},{value:"泉州",label:"泉州"},{value:"漳州",label:"漳州"},{value:"龙岩",label:"龙岩"},{value:"南平",label:"南平"},{value:"宁德",label:"宁德"},{value:"莆田",label:"莆田"},{value:"三明",label:"三明"}]},{value:"甘肃",label:"甘肃",children:[{value:"兰州",label:"兰州"},{value:"嘉峪关",label:"嘉峪关"},{value:"白银",label:"白银"},{value:"定西",label:"定西"},{value:"敦煌",label:"敦煌"},{value:"甘南",label:"甘南"},{value:"金昌",label:"金昌"},{value:"酒泉",label:"酒泉"},{value:"临夏",label:"临夏"},{value:"平凉",label:"平凉"},{value:"天水",label:"天水"},{value:"陇南",label:"陇南"},{value:"武威",label:"武威"},{value:"西峰",label:"西峰"},{value:"张掖",label:"张掖"}]},{value:"广西",label:"广西",children:[{value:"南宁",label:"南宁"},{value:"来宾",label:"来宾"},{value:"百色",label:"百色"},{value:"北海",label:"北海"},{value:"桂林",label:"桂林"},{value:"防城港",label:"防城港"},{value:"贵港",label:"贵港"},{value:"河池",label:"河池"},{value:"贺州",label:"贺州"},{value:"柳州",label:"柳州"},{value:"钦州",label:"钦州"},{value:"梧州",label:"梧州"},{value:"玉林",label:"玉林"}]},{value:"贵州",label:"贵州",children:[{value:"贵阳",label:"贵阳"},{value:"安顺",label:"安顺"},{value:"毕节",label:"毕节"},{value:"都匀",label:"都匀"},{value:"凯里",label:"凯里"},{value:"六盘水",label:"六盘水"},{value:"铜仁",label:"铜仁"},{value:"兴义",label:"兴义"},{value:"玉屏",label:"玉屏"},{value:"遵义",label:"遵义"}]},{value:"海南",label:"海南",children:[{value:"海口",label:"海口"},{value:"儋县",label:"儋县"},{value:"陵水",label:"陵水"},{value:"琼海",label:"琼海"},{value:"三亚",label:"三亚"},{value:"通什",label:"通什"},{value:"万宁",label:"万宁"}]},{value:"河北",label:"河北",children:[{value:"石家庄",label:"石家庄"},{value:"保定",label:"保定"},{value:"北戴河",label:"北戴河"},{value:"沧州",label:"沧州"},{value:"承德",label:"承德"},{value:"丰润",label:"丰润"},{value:"邯郸",label:"邯郸"},{value:"衡水",label:"衡水"},{value:"廊坊",label:"廊坊"},{value:"南戴河",label:"南戴河"},{value:"秦皇岛",label:"秦皇岛"},{value:"唐山",label:"唐山"},{value:"新城",label:"新城"},{value:"邢台",label:"邢台"},{value:"张家口",label:"张家口"}]},{value:"黑龙江",label:"黑龙江",children:[{value:"哈尔滨",label:"哈尔滨"},{value:"北安",label:"北安"},{value:"大庆",label:"大庆"},{value:"大兴安岭",label:"大兴安岭"},{value:"鹤岗",label:"鹤岗"},{value:"黑河",label:"黑河"},{value:"佳木斯",label:"佳木斯"},{value:"鸡西",label:"鸡西"},{value:"牡丹江",label:"牡丹江"},{value:"齐齐哈尔",label:"齐齐哈尔"},{value:"七台河",label:"七台河"},{value:"双鸭山",label:"双鸭山"},{value:"绥化",label:"绥化"},{value:"伊春",label:"伊春"}]},{value:"河南",label:"河南",children:[{value:"郑州",label:"郑州"},{value:"安阳",label:"安阳"},{value:"鹤壁",label:"鹤壁"},{value:"潢川",label:"潢川"},{value:"焦作",label:"焦作"},{value:"济源",label:"济源"},{value:"开封",label:"开封"},{value:"漯河",label:"漯河"},{value:"洛阳",label:"洛阳"},{value:"南阳",label:"南阳"},{value:"平顶山",label:"平顶山"},{value:"濮阳",label:"濮阳"},{value:"三门峡",label:"三门峡"},{value:"商丘",label:"商丘"},{value:"新乡",label:"新乡"},{value:"信阳",label:"信阳"},{value:"许昌",label:"许昌"},{value:"周口",label:"周口"},{value:"驻马店",label:"驻马店"}]},{value:"香港",label:"香港",children:[{value:"香港",label:"香港"},{value:"九龙",label:"九龙"},{value:"新界",label:"新界"}]},{value:"湖北",label:"湖北",children:[{value:"武汉",label:"武汉"},{value:"天门",label:"天门"},{value:"恩施",label:"恩施"},{value:"鄂州",label:"鄂州"},{value:"黄冈",label:"黄冈"},{value:"黄石",label:"黄石"},{value:"荆门",label:"荆门"},{value:"荆州",label:"荆州"},{value:"潜江",label:"潜江"},{value:"十堰",label:"十堰"},{value:"随州",label:"随州"},{value:"武穴",label:"武穴"},{value:"仙桃",label:"仙桃"},{value:"咸宁",label:"咸宁"},{value:"襄阳",label:"襄阳"},{value:"襄樊",label:"襄樊"},{value:"孝感",label:"孝感"},{value:"宜昌",label:"宜昌"}]},{value:"湖南",label:"湖南",children:[{value:"长沙",label:"长沙"},{value:"常德",label:"常德"},{value:"郴州",label:"郴州"},{value:"衡阳",label:"衡阳"},{value:"怀化",label:"怀化"},{value:"吉首",label:"吉首"},{value:"娄底",label:"娄底"},{value:"邵阳",label:"邵阳"},{value:"湘潭",label:"湘潭"},{value:"益阳",label:"益阳"},{value:"岳阳",label:"岳阳"},{value:"永州",label:"永州"},{value:"张家界",label:"张家界"},{value:"株洲",label:"株洲"}]},{value:"江西",label:"江西",children:[{value:"南昌",label:"南昌"},{value:"抚州",label:"抚州"},{value:"赣州",label:"赣州"},{value:"吉安",label:"吉安"},{value:"景德镇",label:"景德镇"},{value:"井冈山",label:"井冈山"},{value:"九江",label:"九江"},{value:"庐山",label:"庐山"},{value:"萍乡",label:"萍乡"},{value:"上饶",label:"上饶"},{value:"新余",label:"新余"},{value:"宜春",label:"宜春"},{value:"鹰潭",label:"鹰潭"}]},{value:"吉林",label:"吉林",children:[{value:"长春",label:"长春"},{value:"吉林",label:"吉林"},{value:"白城",label:"白城"},{value:"白山",label:"白山"},{value:"珲春",label:"珲春"},{value:"辽源",label:"辽源"},{value:"梅河",label:"梅河"},{value:"四平",label:"四平"},{value:"松原",label:"松原"},{value:"通化",label:"通化"},{value:"延吉",label:"延吉"}]},{value:"辽宁",label:"辽宁",children:[{value:"沈阳",label:"沈阳"},{value:"鞍山",label:"鞍山"},{value:"本溪",label:"本溪"},{value:"朝阳",label:"朝阳"},{value:"大连",label:"大连"},{value:"丹东",label:"丹东"},{value:"抚顺",label:"抚顺"},{value:"阜新",label:"阜新"},{value:"葫芦岛",label:"葫芦岛"},{value:"锦州",label:"锦州"},{value:"辽阳",label:"辽阳"},{value:"盘锦",label:"盘锦"},{value:"铁岭",label:"铁岭"},{value:"营口",label:"营口"}]},{value:"澳门",label:"澳门",children:[{value:"澳门",label:"澳门"}]},{value:"内蒙古",label:"内蒙古",children:[{value:"呼和浩特",label:"呼和浩特"},{value:"阿拉善盟",label:"阿拉善盟"},{value:"包头",label:"包头"},{value:"赤峰",label:"赤峰"},{value:"东胜",label:"东胜"},{value:"海拉尔",label:"海拉尔"},{value:"集宁",label:"集宁"},{value:"临河",label:"临河"},{value:"通辽",label:"通辽"},{value:"乌海",label:"乌海"},{value:"乌兰浩特",label:"乌兰浩特"},{value:"锡林浩特",label:"锡林浩特"}]},{value:"宁夏",label:"宁夏",children:[{value:"银川",label:"银川"},{value:"固源",label:"固源"},{value:"石嘴山",label:"石嘴山"},{value:"吴忠",label:"吴忠"}]},{value:"青海",label:"青海",children:[{value:"西宁",label:"西宁"},{value:"德令哈",label:"德令哈"},{value:"格尔木",label:"格尔木"},{value:"共和",label:"共和"},{value:"海东",label:"海东"},{value:"海晏",label:"海晏"},{value:"玛沁",label:"玛沁"},{value:"同仁",label:"同仁"},{value:"玉树",label:"玉树"}]},{value:"山东",label:"山东",children:[{value:"济南",label:"济南"},{value:"滨州",label:"滨州"},{value:"兖州",label:"兖州"},{value:"德州",label:"德州"},{value:"东营",label:"东营"},{value:"菏泽",label:"菏泽"},{value:"济宁",label:"济宁"},{value:"莱芜",label:"莱芜"},{value:"聊城",label:"聊城"},{value:"临沂",label:"临沂"},{value:"蓬莱",label:"蓬莱"},{value:"青岛",label:"青岛"},{value:"曲阜",label:"曲阜"},{value:"日照",label:"日照"},{value:"泰安",label:"泰安"},{value:"潍坊",label:"潍坊"},{value:"威海",label:"威海"},{value:"烟台",label:"烟台"},{value:"枣庄",label:"枣庄"},{value:"淄博",label:"淄博"}]},{value:"山西",label:"山西",children:[{value:"太原",label:"太原"},{value:"吕梁",label:"吕梁"},{value:"长治",label:"长治"},{value:"大同",label:"大同"},{value:"候马",label:"候马"},{value:"晋城",label:"晋城"},{value:"离石",label:"离石"},{value:"临汾",label:"临汾"},{value:"宁武",label:"宁武"},{value:"朔州",label:"朔州"},{value:"忻州",label:"忻州"},{value:"阳泉",label:"阳泉"},{value:"榆次",label:"榆次"},{value:"晋中",label:"晋中"},{value:"运城",label:"运城"}]},{value:"陕西",label:"陕西",children:[{value:"西安",label:"西安"},{value:"安康",label:"安康"},{value:"宝鸡",label:"宝鸡"},{value:"汉中",label:"汉中"},{value:"渭南",label:"渭南"},{value:"商州",label:"商州"},{value:"绥德",label:"绥德"},{value:"铜川",label:"铜川"},{value:"咸阳",label:"咸阳"},{value:"延安",label:"延安"},{value:"榆林",label:"榆林"}]},{value:"四川",label:"四川",children:[{value:"成都",label:"成都"},{value:"巴中",label:"巴中"},{value:"达川",label:"达川"},{value:"德阳",label:"德阳"},{value:"都江堰",label:"都江堰"},{value:"峨眉山",label:"峨眉山"},{value:"涪陵",label:"涪陵"},{value:"广安",label:"广安"},{value:"广元",label:"广元"},{value:"九寨沟",label:"九寨沟"},{value:"康定",label:"康定"},{value:"乐山",label:"乐山"},{value:"泸州",label:"泸州"},{value:"马尔康",label:"马尔康"},{value:"绵阳",label:"绵阳"},{value:"眉山",label:"眉山"},{value:"南充",label:"南充"},{value:"内江",label:"内江"},{value:"攀枝花",label:"攀枝花"},{value:"遂宁",label:"遂宁"},{value:"汶川",label:"汶川"},{value:"西昌",label:"西昌"},{value:"雅安",label:"雅安"},{value:"宜宾",label:"宜宾"},{value:"自贡",label:"自贡"},{value:"资阳",label:"资阳"}]},{value:"台湾",label:"台湾",children:[{value:"台北",label:"台北"},{value:"基隆",label:"基隆"},{value:"台南",label:"台南"},{value:"台中",label:"台中"},{value:"高雄",label:"高雄"},{value:"屏东",label:"屏东"},{value:"南投",label:"南投"},{value:"云林",label:"云林"},{value:"新竹",label:"新竹"},{value:"彰化",label:"彰化"},{value:"苗栗",label:"苗栗"},{value:"嘉义",label:"嘉义"},{value:"桃园",label:"桃园"},{value:"宜兰",label:"宜兰"},{value:"台东",label:"台东"},{value:"金门",label:"金门"},{value:"马祖",label:"马祖"},{value:"澎湖",label:"澎湖"}]},{value:"天津",label:"天津",children:[{value:"天津",label:"天津"},{value:"和平",label:"和平"},{value:"东丽",label:"东丽"},{value:"河东",label:"河东"},{value:"西青",label:"西青"},{value:"河西",label:"河西"},{value:"津南",label:"津南"},{value:"南开",label:"南开"},{value:"北辰",label:"北辰"},{value:"河北",label:"河北"},{value:"武清",label:"武清"},{value:"红挢",label:"红挢"},{value:"塘沽",label:"塘沽"},{value:"汉沽",label:"汉沽"},{value:"大港",label:"大港"},{value:"宁河",label:"宁河"},{value:"静海",label:"静海"},{value:"宝坻",label:"宝坻"},{value:"蓟县",label:"蓟县"}]},{value:"新疆",label:"新疆",children:[{value:"乌鲁木齐",label:"乌鲁木齐"},{value:"阿克苏",label:"阿克苏"},{value:"阿勒泰",label:"阿勒泰"},{value:"阿图什",label:"阿图什"},{value:"博乐",label:"博乐"},{value:"昌吉",label:"昌吉"},{value:"东山",label:"东山"},{value:"哈密",label:"哈密"},{value:"和田",label:"和田"},{value:"喀什",label:"喀什"},{value:"克拉玛依",label:"克拉玛依"},{value:"库车",label:"库车"},{value:"库尔勒",label:"库尔勒"},{value:"奎屯",label:"奎屯"},{value:"石河子",label:"石河子"},{value:"塔城",label:"塔城"},{value:"吐鲁番",label:"吐鲁番"},{value:"伊宁",label:"伊宁"}]},{value:"西藏",label:"西藏",children:[{value:"拉萨",label:"拉萨"},{value:"阿里",label:"阿里"},{value:"昌都",label:"昌都"},{value:"林芝",label:"林芝"},{value:"那曲",label:"那曲"},{value:"日喀则",label:"日喀则"},{value:"山南",label:"山南"}]},{value:"云南",label:"云南",children:[{value:"昆明",label:"昆明"},{value:"大理",label:"大理"},{value:"保山",label:"保山"},{value:"楚雄",label:"楚雄"},{value:"大理",label:"大理"},{value:"东川",label:"东川"},{value:"个旧",label:"个旧"},{value:"景洪",label:"景洪"},{value:"开远",label:"开远"},{value:"临沧",label:"临沧"},{value:"丽江",label:"丽江"},{value:"六库",label:"六库"},{value:"潞西",label:"潞西"},{value:"曲靖",label:"曲靖"},{value:"思茅",label:"思茅"},{value:"文山",label:"文山"},{value:"西双版纳",label:"西双版纳"},{value:"玉溪",label:"玉溪"},{value:"中甸",label:"中甸"},{value:"昭通",label:"昭通"}]},{value:"浙江",label:"浙江",children:[{value:"杭州",label:"杭州"},{value:"温州",label:"温州"},{value:"安吉",label:"安吉"},{value:"慈溪",label:"慈溪"},{value:"定海",label:"定海"},{value:"奉化",label:"奉化"},{value:"海盐",label:"海盐"},{value:"黄岩",label:"黄岩"},{value:"湖州",label:"湖州"},{value:"嘉兴",label:"嘉兴"},{value:"金华",label:"金华"},{value:"临安",label:"临安"},{value:"临海",label:"临海"},{value:"丽水",label:"丽水"},{value:"宁波",label:"宁波"},{value:"瓯海",label:"瓯海"},{value:"平湖",label:"平湖"},{value:"千岛湖",label:"千岛湖"},{value:"衢州",label:"衢州"},{value:"江山",label:"江山"},{value:"瑞安",label:"瑞安"},{value:"绍兴",label:"绍兴"},{value:"嵊州",label:"嵊州"},{value:"台州",label:"台州"},{value:"温岭",label:"温岭"},{value:"余姚",label:"余姚"},{value:"舟山",label:"舟山"}]},{value:"海外",label:"海外",children:[{value:"美国",label:"美国"},{value:"日本",label:"日本"},{value:"英国",label:"英国"},{value:"法国",label:"法国"},{value:"德国",label:"德国"},{value:"其他",label:"其他"}]}]},88522:function(e,n,l){"use strict";var t=l(92310),a=l.n(t),i=l(75440),o=l(55405),r=l(59301),s=l(53487),c=l(92343),u=l(36355),d=l(57809);const{Option:p}=d.default;function v(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const h=(e,n)=>{const{prefixCls:l,className:t,popupClassName:s,dropdownClassName:h,children:f,dataSource:g}=e,m=(0,i.Z)(f);let b;1===m.length&&(0,c.l$)(m[0])&&!v(m[0])&&([b]=m);const x=b?()=>b:void 0;let w;w=m.length&&v(m[0])?f:g?g.map((e=>{if((0,c.l$)(e))return e;switch(typeof e){case"string":return r.createElement(p,{key:e,value:e},e);case"object":{const{value:n}=e;return r.createElement(p,{key:n,value:n},e.text)}default:return}})):[];const{getPrefixCls:A}=r.useContext(u.E_),j=A("select",l);return r.createElement(d.default,Object.assign({ref:n,suffixIcon:null},(0,o.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:j,popupClassName:s||h,className:a()(`${j}-auto-complete`,t),mode:d.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:x}),w)},f=r.forwardRef(h),g=(0,s.Z)(f);f.Option=p,f._InternalPanelDoNotUseOrYouWillBeFired=g,n.Z=f},32637:function(e,n,l){"use strict";e.exports=l.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKx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YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="}}]); \ No newline at end of file diff --git a/p__Paths__New__index.d0796748.async.js b/p__Paths__New__index.d0796748.async.js new file mode 100644 index 0000000000..635cfed128 --- /dev/null +++ b/p__Paths__New__index.d0796748.async.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[28982,4977,48486,33550,69932],{60186:function(e,n,l){"use strict";l.d(n,{Z:function(){return s}});var t=l(5891),a=l(59301),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},o=l(22589),r=function(e,n){return a.createElement(o.Z,(0,t.Z)({},e,{ref:n,icon:i}))};var s=a.forwardRef(r)},57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},n="5.0",l={},t=null,a=!1,i=!1,o=null,r=!1,s=null,c=null,u=0;u4?parseFloat(e):5};function j(){try{return window.self!==window.top}catch(e){return!0}}function y(){return(!l.hasOwnProperty("screenshotGenerator")||!l.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,n){c=e,L(e,n)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,n){var l=parseFloat(e);NaN!==l&&l<5?console.log("The GeoGebra HTML5 codebase version "+l+" is deprecated. Using version latest instead."):(s=e,O(e,n))},e.getHTML5CodebaseVersion=function(){return f},e.getParameters=function(){return l},e.setFontsCSSURL=function(e){w=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 t,a="auto",i=l.id,o=!1,s=0;s=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!==l.id?l.id:"ggbApplet";return window[e]},e.resize=function(){};var k=function(e){return e&&"false"!==e},N=function(n,l,t){A(f)<=4.2&&(t=!0);var a=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==f||ggbHTML5LoadedCodebaseIsWebSimple&&!m)&&(a=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var i=document.createElement("div");i.classList.add("appletParameters","notranslate");var o=l.width,r=l.height;if(l.disableAutoScale=void 0===l.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():l.disableAutoScale,void 0!==l.width)if(A(f)<=4.4)k(l.showToolBar)&&(l.height-=7),k(l.showAlgebraInput)&&(l.height-=37),l.width<605&&k(l.showToolBar)&&(l.width=605,o=605);else{var u=100;(k(l.showToolBar)||k(l.showMenuBar))&&(l.hasOwnProperty("customToolBar")&&(l.customToolbar=l.customToolBar),u=k(l.showMenuBar)?245:155),o=5?(l.appletOnLoad=function(e){var l=n.querySelector(".ggb_preview");l&&l.parentNode.removeChild(l),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(b),window.GGBT_wsf_view&&$(window).trigger("resize"),v(e)},x||b.appendChild(j)):i.appendChild(j),b.appendChild(i),x||n.appendChild(b),setTimeout((function(){e.resize()}),1)}function y(e,n){n&&"function"==typeof n.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,n.appletOnLoad):renderGGBElement(e),z("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",n)}function B(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){y(e.article,e.params)})),html5AppletsToProcess=null)},A(f)<5&&(e.className+=" geogebraweb")):y(e,n)}if(a){scriptLoadStarted=!0;for(var C=0;C0?(a.remove(),r.attr("id","fullscreencontent").show(),jQuery(i).append(r),window.dispatchEvent(new Event("resize"))):N(a,n,!1),window.GGBT_wsf_view.launchFullScreen(i)}else h=t,N(e,n,!1);if(!window.GGBT_wsf_view)for(o=0;oe/4*3&&(r=e/4*3),s=r/5.8,o.setAttribute("src",x),o.setAttribute("width",r),o.setAttribute("height",s);var u=(e-r)/2,d=(n-s)/2;o.style.left=u+"px",o.style.top=d+"px",a.appendChild(o)}return a.appendChild(c),a},F=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},Z=["web","webSimple","web3d","tablet","tablet3d","phone"],O=function(e,n){if(f=e,n)L(f,!0);else{var i,o,r=!a;if(r){var s=A(f);!isNaN(s)&&s<4.4&&(r=!1)}i="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=f.indexOf("//");for(var u in o=c>0?f:0===c?i+f:"https://www.geogebra.org/apps/5.2.814.0/",Z)if(f.slice(-1*Z[u].length)===Z[u]||f.slice(-1*(Z[u].length+1))===Z[u]+"/")return void L(o,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!r||t.is3D||t.AV||t.SV||t.CV||t.EV2||t.CP||t.PC||t.DA||t.FI||t.PV||k(l.showToolBar)||k(l.showMenuBar)||k(l.showAlgebraInput)||k(l.enableRightClick)||l.appName&&"classic"!=l.appName?o+="web3d/":o+="webSimple/",L(o,!1)}},L=function(e,n){if(e.requirejs)p=e;else{"/"!==e.slice(-1)&&(e+="/"),p=e,null===n&&(n=-1===e.indexOf("http")),v=n,g="web.nocache.js",m=!1;var l=p.split("/");l.length>1&&(n||"webSimple"!==l[l.length-2]?Z.indexOf(l[l.length-2])>=0&&(g=l[l.length-2]+".nocache.js"):(g="webSimple.nocache.js",m=!0)),l=e.split("/"),"test"===(f=l[l.length-3]).substr(0,4)?f=f.substr(4,1)+"."+f.substr(5,1):"war"!==f.substr(0,3)&&"beta"!==f.substr(0,4)||(f="5.0");var t=parseFloat(f);NaN!==t&&t<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+t+" is deprecated. Using version latest instead."),O("5.0",n))}},z=function(e,n){window.console&&window.console.log&&(!n||void 0===n.showLogging||n.showLogging&&"false"!==n.showLogging)&&console.log(e)};function M(){var e=n;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),O(e,!1),null!==c&&L(c,v),r=!0}return void 0!==l.material_id?B(M):M(),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 l(e,n,l,t,a){if(e.isScreenshoGenerator)return 1;var i,o=void 0!==t&&t,r=null!=e.noScaleMargin&&e.noScaleMargin,s=(i=e.autoHeight)&&"false"!==i,c=function(e,n,l,t,a,i){var o=null;if(null!=i&&""!=i)for(var r=e.parentNode;null!=r;){if((" "+r.className+" ").indexOf(" "+i+" ")>-1){o=r;break}r=r.parentNode}var s=0,c=0,u=0,d=0,p=0,v=0,h=0;if(o)s=o.offsetWidth,c=Math.max(t?o.offsetWidth:0,o.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(s=Math.min(window.innerWidth,document.documentElement.clientWidth),c=Math.min(window.innerHeight,document.documentElement.clientHeight),u=s):(s=window.innerWidth,c=window.innerHeight,u=window.innerWidth),e){var f=e.getBoundingClientRect();f.left>0&&f.left<=s&&(void 0===a||!a)&&("rtl"===document.dir?(p=s-f.width-f.left,v=u<=480?10:30):(v=f.left,p=u<=480?10:30),d=v+p)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,h=40))}return e&&((void 0===l||!l)&&n>0&&n+d1&&(o=!0)),n&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(o=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?i:(a=l(e,n,o,t,e.scaleContainerClass),!o||e.hasOwnProperty("scale")&&1!==i?Math.min(i,a):a)}function a(e){var n=Math.min(window.innerWidth,document.documentElement.clientWidth),l=Math.min(window.innerHeight,document.documentElement.clientHeight),t=e.getBoundingClientRect(),a=(n-t.width)/2,i=(l-t.height)/2;i<0&&(i=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=a<40?"40px":a+"px",e.style.top=i+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=i<40?"40px":i+"px",e.style.left=a+"px")}return{responsiveResize:function(l,i){var o=l.querySelector(".appletParameters");if(o){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(i.id!==o.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(l)}if(o.parentElement&&/fullscreen/.test(o.parentElement.className))return;var r=t(i,l);e()&&o.setAttribute("data-param-scale",r);for(var s=null,c=0;c=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 l=e.indexOf(sb);-1==l&&(l=e.length);var t=e.lastIndexOf(tb,Math.min(l,n));return t>=O?e.substring(O,t+P):W}var n,l=null!=(n=__gwt_getMetaProperty(wb))?n:W;return l==W&&(l=function(){for(var n=o.getElementsByTagName(_),l=O;lO?e[e.length-P].href:W}()),l==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(l=e(o.location.href)),l=function(n){if(n.match(/^\w+:\/\//));else{var l=o.createElement(ub);l.src=n+vb,n=e(l.src)}return n}(l),l}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,l=O,t=[],a=[];function i(e){var n=a[e](),l=t[e];if(n in l)return n;var i=[];for(var o in l)i[l[o]]=o;throw r&&r(e,i,n),null}if(__gwt_isKnownPropertyValue=function(e,n){return n in t[e]},webModule.__getPropMap=function(){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=i(n));return e},webModule.__computePropValue=i,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var o=(e=Cb).indexOf(Db);-1!=o&&(l=parseInt(e.substring(o+P),$),e=e.substring(O,o))}catch(e){}return webModule.__softPermutationId=l,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 l=n?n():{},t=e[webModule.__softPermutationId],a=O;a0){for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:"",l=[],t=0;t0&&(n=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+A+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),n}var k=function(e){var n=e.value,l=e.onChange,t=e.action,i=e.data,r=e.className,c=e.maxSize,d=void 0===c?150:c,S=e.title,k=void 0===S?"上传附件":S,N=e.showRemoveModal,D=void 0!==N&&N,T=e.accept,E=void 0===T?"":T,P=e.additionalText,R=e.isDragger,F=e.number,Z=void 0===F?1e3:F,O=e.aloneClear,L=void 0!==O&&O,z=e.realTimeRemove,M=void 0===z||z,W=e.uploadText,H=e.setFileProgress,I=e.showFileProgress,G=(0,v.useState)(!1),K=p()(G,2),U=K[0],q=K[1],V=(0,v.useState)(n||[]),J=p()(V,2),Q=J[0],X=J[1],Y=(0,v.useState)(1),_=p()(Y,2),$=_[0],ee=_[1];(0,v.useEffect)((function(){n&&(1===$&&X(u()(n)),ee(2),Z===(null==n?void 0:n.length)&&q(!0))}),[n]);var ne=function(){setTimeout((function(){Q.pop(),X(u()(Q))}),500)};I&&H(Q.some((function(e){return"uploading"===e.status})));var le,te={multiple:!0,disabled:U,accept:E,withCredentials:!0,fileList:Q,beforeUpload:function(e,n){var l=e.size/1024/1024;return Q.concat(n).length>Z?(Q.pop(),X(u()(Q)),f.ZP.error("最多只能上传".concat(Z,"个文件")),L?Promise.reject():(ne(),!1)):l=Z?q(!0):q(!1),X(u()(Q)),Q=Q.map((function(e){var n,l;null!=e&&null!==(n=e.response)&&void 0!==n&&n.id&&(e.url=null==e||null===(l=e.response)||void 0===l?void 0:l.url);return-1===e.name.indexOf(A)&&(e.name="".concat(e.name).concat(A).concat(j(e.size))),s()({},e)})),console.log("info:",e,Q),l(Q)):f.ZP.error(null===(t=e.file)||void 0===t||null===(t=t.response)||void 0===t?void 0:t.message)},onRemove:(le=o()(a()().mark((function e(n){var l;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(M){e.next=2;break}return e.abrupt("return",!0);case 2:if(l=function(){var e=o()(a()().mark((function e(){var l;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.response?n.response.id:n.id)){e.next=8;break}return e.next=4,(0,x.JZ)(n.response?n.response.id:n.uid);case 4:return l=e.sent,e.abrupt("return",Promise.resolve(l));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!D){e.next=7;break}return e.abrupt("return",new Promise((function(e,n){var t;g.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,w.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(t=o()(a()().mark((function n(){return a()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,l();case 2:n.sent,f.ZP.success("删除成功"),e(!0);case 5:case"end":return n.stop()}}),n)}))),function(){return t.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,l();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return le.apply(this,arguments)})};return(0,w.jsxs)("div",{className:"multi-upload ".concat(r||""),children:[R&&(0,w.jsxs)(C,s()(s()({},te),{},{children:[(0,w.jsx)("p",{className:"ant-upload-drag-icon",children:(0,w.jsx)(y.Z,{})}),(0,w.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,w.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),P]})),!R&&(0,w.jsxs)(h.Z,s()(s()({},te),{},{children:[(0,w.jsxs)(m.ZP,{disabled:U,className:"upload_button",children:[(0,w.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),k]}),(0,w.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:W||"(单个文件最大".concat(d,"MB)")})]}))]})}},73145:function(e,n,l){"use strict";l.d(n,{h:function(){return m}});var t=l(82242),a=l.n(t),i=l(79800),o=l.n(i),r=l(59301),s=l(57809),c=l(78241),u=l(3113),d=l(89780),p=l.n(d),v=(l(80443),l(90630),l(37712)),h=s.default.Option,f={labelCol:{span:4},wrapperCol:{span:20}},g={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function m(e){var n=e.value,l=e.onChange,t=e.mode,i=e.options,s=void 0===i?{}:i,c=(0,r.useRef)(),u=(0,r.useState)(),d=o()(u,2),h=d[0],f=d[1];return(0,r.useEffect)((function(){if(h){var e=function(e){var n=e.getValue();l&&l(n)};return h.on("change",e),function(){h.off("change",e)}}}),[h,l]),(0,r.useEffect)((function(){h&&h.setOption("mode",t)}),[h,t]),(0,r.useEffect)((function(){h&&(n===h.getValue()&&""!==n||setTimeout((function(){h.setValue(n||"")}),300))}),[h,n]),(0,r.useEffect)((function(){if(c.current&&!h){var e=p().fromTextArea(c.current,a()({mode:t,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},s));f(e)}}),[c.current,h]),(0,v.jsx)("div",{className:"my-codemirror-container",children:(0,v.jsx)("textarea",{ref:c})})}n.Z=function(e){var n=e.callback,l=e.onCancel,t=(0,r.useState)("python"),i=o()(t,2),d=i[0],p=i[1];return(0,v.jsxs)(c.Z,a()(a()({},f),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){n(e)},style:{width:500},children:[(0,v.jsx)(c.Z.Item,{label:"代码语言",name:"language",children:(0,v.jsx)(s.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){p(g[e][1])},children:Object.keys(g).map((function(e){return(0,v.jsx)(h,{value:e,children:g[e][0]},e)}))})}),(0,v.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,v.jsx)(m,{mode:d})}),(0,v.jsxs)("div",{className:"flex-container flex-end",children:[(0,v.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,v.jsx)(u.ZP,{type:"ghost",onClick:l,children:"取消"})]})]}))}},16318:function(e,n,l){"use strict";l.d(n,{Z:function(){return Ae}});var t=l(91232),a=l.n(t),i=l(79800),o=l.n(i),r=l(85573),s=l.n(r),c=l(59301),u=l(89780),d=l.n(u),p=l(76374),v=(l(80443),l(6313),l(25717),l(99498),l(25419),l(67549),l(38279)),h=l(37712),f=function(e){var n=e.value,l=void 0===n?"":n,t=(e.className,e.showTextOnly,e.showLines,e.style,(0,c.useMemo)((function(){return""}),[l]));return(0,h.jsx)(h.Fragment,{children:(0,h.jsx)("div",{dangerouslySetInnerHTML:{__html:t}})})},g=l(82242),m=l.n(g),b=[{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 x(e){var n=e.onActionCallback,l=e.title,t=e.icon,a=e.actionName,i=e.className,o=void 0===i?"":i,r=e.children;return(0,h.jsxs)("a",{title:l,className:o,onClick:function(){n(a)},children:[(0,h.jsx)("i",{className:"".concat(t)}),r]})}var w=function(e){var n=e.watch,l=e.showNullButton,t=e.showNullProgramButton,a=e.onActionCallback,i=e.fullScreen,o=e.insertTemp,r=e.hidetoolBar,s=e.extraUse,c=[].concat(b,[{title:"".concat(n?"关闭实时预览":"开启实时预览"),icon:"".concat(n?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!r&&c.map((function(e,n){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(x,m()(m()({},e),{},{onActionCallback:a})):(0,h.jsx)("span",{className:"v-line"})},n)})),l?(0,h.jsx)("li",{children:(0,h.jsx)(x,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:a,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,t?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(x,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:a,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(x,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:a,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,o&&(0,h.jsx)("li",{children:(0,h.jsx)(x,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(o),onActionCallback:a,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(x,{icon:"".concat(i?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:i?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:a})})]})},A=l(24808),j=l(78241),y=l(92832),B=l(3113),C={labelCol:{span:4},wrapperCol:{span:20}},S=function(e){var n=e.callback,l=e.onCancel;return(0,h.jsxs)(j.Z,m()(m()({},C),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},style:{width:500},children:[(0,h.jsx)(j.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(y.Z,{})}),(0,h.jsx)(j.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(y.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(B.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(B.ZP,{type:"ghost",onClick:l,children:"取消"})]})]}))},k=l(73145),N=l(28486),D=l(95237),T=l(36709),E=function(e){var n=e.callback,l=e.onCancel,t=document.createElement("canvas"),a=t.getContext("2d");t.width=1e3,t.height=800,a.fillStyle="#ffffff",a.fillRect(0,0,t.width,t.height);var i=t.toDataURL("image/png");return(0,h.jsx)(D.Z,{style:{height:"100vh"},children:(0,h.jsx)(T.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:i,visible:!0,title:String(Date.now())},onOk:function(e){n({src:e.url})},onClose:l})})},P=l(7557),R=l.n(P),F=l(41498),Z=l.n(F),O=l(37205),L=l.n(O),z=l(12378);function M(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(M,go.CommandHandler),M.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},M.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")},M.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 l=e.actualBounds.x+e.actualBounds.width;n=Math.max(l,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")},M.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")},M.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 l=e.actualBounds.y+e.actualBounds.height;n=Math.max(l,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")},M.prototype.alignCenterX=function(){var e=this.diagram,n=e.selection.first();if(n){e.startTransaction("aligning Center X");var l=n.actualBounds.x+n.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(l-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},M.prototype.alignCenterY=function(){var e=this.diagram,n=e.selection.first();if(n){e.startTransaction("aligning Center Y");var l=n.actualBounds.y+n.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,l-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},M.prototype.alignColumn=function(e){var n=this.diagram;n.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var l=new Array;n.selection.each((function(e){e instanceof go.Link||l.push(e)}));for(var t=0;t0){for(var t=o.elt(r-1);null!==t&&t.isTreeExpanded&&!t.isTreeLeaf;){t=this._sortTreeChildrenByY(t).last()}null!==t&&e.select(t)}else e.select(i)}else if("Down"===l.key){var a;if(n.isTreeExpanded&&!n.isTreeLeaf)null!==(a=this._sortTreeChildrenByY(n).first())&&e.select(a);else for(;null!==n;){var i,o,r;if(null===(i=n.findTreeParentNode()))break;if((r=(o=this._sortTreeChildrenByY(i)).indexOf(n))t.y?1:l.xt.x?1:0})),n},M.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},M.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(M.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(M.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 W=M,H=(l(41034),l(85160)),I=l(43418),G=l(43604),K=l(18030),U="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=z;var V=function(e){var n=e.onCancel,l=e.callback,t=(0,c.useRef)(),a=(0,c.useRef)(),i=(0,c.useRef)(),r=(0,c.useRef)(!1),s=(0,c.useRef)(!1),u=(0,c.useState)(0),d=o()(u,2),p=d[0],v=d[1],f=function(){var e=Z()(R()().mark((function e(){var n,a;return R()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.current.makeImage(),e.next=3,(0,K.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:n.src}});case 3:a=e.sent,l({src:a.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){v(p+1)}),[]),(0,h.jsx)("div",{ref:s,className:r.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(I.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!p,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(D.Z,{children:[(0,h.jsx)(G.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(G.Z,{onClick:function(){r.current=!r.current,v(p+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:n,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:U,ref:i})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(H.FI,{initDiagram:function(){var e=z.GraphObject.make,n="#ff3333",l="#3358ff",o="#25ad23",r="#d533ff",s="#7d33ff",c="#ff6233",u="#ffffff",d="#000000",p="#fffcd5",v="#d5ebff",h="#f2dfe0",f="#a5d2fa",g="#cccccc",m="#b3e6b3",b="#fcbbbd";function x(n,l){var t=function(e,l){e.handled=!0,e.diagram.model.commit((function(t){var a=l.part.adornedPart,i=(new z.Point).setRectSpot(a.actualBounds,n);i.subtract(a.location),i.scale(2,2),i.x+=130*Math.sign(i.x),i.y+=130*Math.sign(i.y),i.add(a.location),i.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var o=t.copyNodeData(a.data);t.setGroupKeyForNodeData(o,t.getGroupKeyForNodeData(a.data)),t.addNodeData(o);var r={from:a.key,to:t.getKeyForNodeData(o)};t.addLinkData(r);var s=e.diagram.findNodeForData(o);s.location=i,e.diagram.select(s),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(z.Shape,{figure:l,alignment:n,alignmentFocus:n.opposite(),width:n.equals(z.Spot.Top)||n.equals(z.Spot.Bottom)?25:18,height:n.equals(z.Spot.Top)||n.equals(z.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:t,contextClick:t})}function w(n){return e(z.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="orange"},click:function(e,n){e.diagram.commandHandler.showContextMenu(n.part.adornedPart)}},n||{})}function A(e,n){return function(l,t){l.handled=!0,l.diagram.model.commit((function(l){l.set(t.part.adornedPart.data,e,n)}))}}function j(n,l){return l||(l="color"),e(z.Shape,{width:16,height:16,stroke:"lightgray",fill:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.stroke="dodgerblue"},mouseLeave:function(e,n){return n.stroke="lightgray"},click:A(l,n),contextClick:A(l,n)})}function y(){return[e("ContextMenuButton",e(z.Panel,"Horizontal",j(u,"fill"),j(p,"fill"),j(v,"fill"),j(h,"fill"))),e("ContextMenuButton",e(z.Panel,"Horizontal",j(g,"fill"),j(m,"fill"),j(f,"fill"),j(b,"fill")))]}function B(){return[e("ContextMenuButton",e(z.Panel,"Horizontal",j(d),j(o),j(l),j(n))),e("ContextMenuButton",e(z.Panel,"Horizontal",j(u),j(r),j(s),j(c)))]}function C(n,l){return l||(l="thickness"),e(z.Shape,"LineH",{width:16,height:16,strokeWidth:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:A(l,n),contextClick:A(l,n)})}function S(n,l){return l||(l="dash"),e(z.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:A(l,n),contextClick:A(l,n)})}function k(){return[e("ContextMenuButton",e(z.Panel,"Horizontal",C(1),C(2),C(3),C(4))),e("ContextMenuButton",e(z.Panel,"Horizontal",S(null),S([2,4]),S([4,4])))]}function N(n,l){return l||(l="figure"),e(z.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:n,margin:1,background:"transparent",mouseEnter:function(e,n){return n.fill="dodgerblue"},mouseLeave:function(e,n){return n.fill="lightgray"},click:A(l,n),contextClick:A(l,n)})}function D(n){return e(z.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(n+4).toString()+" H3"})}function T(n){var l="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===n?l="M0 0 M16 16 M0 8 L16 8":2===n&&(l="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(z.Shape,{geometryString:l,margin:2,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:A("dir",n),contextClick:A("dir",n)})}function E(n){var l=function(e,l){e.handled=!0,e.diagram.model.commit((function(e){var t=l.part.adornedPart;e.set(t.data,n?"toSpot":"fromSpot",z.Spot.stringify(z.Spot.AllSides)),(n?t.toNode:t.fromNode).invalidateConnectedLinks()}))};return e(z.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:l,contextClick:l})}function P(n,l){var t=0,a=z.Spot.RightSide;n.equals(z.Spot.Top)?(t=270,a=z.Spot.TopSide):n.equals(z.Spot.Left)?(t=180,a=z.Spot.LeftSide):n.equals(z.Spot.Bottom)&&(t=90,a=z.Spot.BottomSide),l||(t-=180);var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var t=n.part.adornedPart;e.set(t.data,l?"toSpot":"fromSpot",z.Spot.stringify(a)),(l?t.toNode:t.fromNode).invalidateConnectedLinks()}))};return e(z.Shape,{alignment:n,alignmentFocus:n.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:t,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:i,contextClick:i})}return t.current=new z.Diagram(a.current,{padding:20,grid:e(z.Panel,"Grid",e(z.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(z.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(W),"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}),t.current.nodeTemplate=e(z.Node,"Auto",{locationSpot:z.Spot.Center,locationObjectName:"SHAPE",desiredSize:new z.Size(120,60),minSize:new z.Size(40,40),resizable:!0,resizeCellSize:new z.Size(10,10),rotatable:!0},new z.Binding("location","loc",z.Point.parse).makeTwoWay(z.Point.stringify),new z.Binding("desiredSize","size",z.Size.parse).makeTwoWay(z.Size.stringify),e(z.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:z.Spot.AllSides,toSpot:z.Spot.AllSides},new z.Binding("figure"),new z.Binding("fill"),new z.Binding("stroke","borderColor"),new z.Binding("strokeWidth","thickness"),new z.Binding("strokeDashArray","dash")),e(z.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(z.TextBlock,{margin:1,textAlign:"center",overflow:z.TextBlock.OverflowEllipsis,editable:!0},new z.Binding("text").makeTwoWay(),new z.Binding("stroke","color"))),t.current.nodeTemplate.toolTip=e("ToolTip",e(z.Panel,"Vertical",{maxSize:new z.Size(200,NaN)},e(z.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new z.Binding("text")),e(z.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new z.Binding("text","details")))),t.current.nodeTemplate.selectionAdornmentTemplate=e(z.Adornment,"Spot",e(z.Placeholder,{padding:10}),x(z.Spot.Top,"TriangleUp"),x(z.Spot.Left,"TriangleLeft"),x(z.Spot.Right,"TriangleRight"),x(z.Spot.Bottom,"TriangleDown"),w({alignment:new z.Spot(.75,0)})),t.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(z.Panel,"Horizontal",N("Rectangle"),N("RoundedRectangle"),N("Ellipse"),N("Diamond"))),e("ContextMenuButton",e(z.Panel,"Horizontal",N("Parallelogram2"),N("ManualOperation"),N("Procedure"),N("Cylinder1"))),e("ContextMenuButton",e(z.Panel,"Horizontal",N("Terminator"),N("CreateRequest"),N("Document"),N("TriangleDown"))),y(),B(),k()),t.current.groupTemplate=e(z.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:z.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 z.Binding("location","loc",z.Point.parse).makeTwoWay(z.Point.stringify),e(z.Panel,"Auto",{name:"BODY"},e(z.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:z.Spot.AllSides,toSpot:z.Spot.AllSides},new z.Binding("fill"),new z.Binding("stroke","color"),new z.Binding("strokeWidth","thickness"),new z.Binding("strokeDashArray","dash")),e(z.Placeholder,{background:"transparent",margin:20})),e(z.TextBlock,{alignment:z.Spot.Top,alignmentFocus:z.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new z.Binding("text"),new z.Binding("stroke","color"))),t.current.groupTemplate.selectionAdornmentTemplate=e(z.Adornment,"Spot",e(z.Panel,"Auto",e(z.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(z.Placeholder,{margin:1.5})),w({alignment:z.Spot.TopRight,alignmentFocus:z.Spot.BottomRight})),t.current.groupTemplate.contextMenu=e("ContextMenu",y(),B(),k()),t.current.linkTemplate=e(z.Link,{layerName:"Foreground",routing:z.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new z.Binding("fromSpot","fromSpot",z.Spot.parse),new z.Binding("toSpot","toSpot",z.Spot.parse),new z.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new z.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new z.Binding("points").makeTwoWay(),e(z.Shape,{strokeWidth:2},new z.Binding("stroke","color"),new z.Binding("strokeWidth","thickness"),new z.Binding("strokeDashArray","dash")),e(z.Shape,{segmentIndex:0,segmentOffset:new z.Point(15,0),segmentOrientation:z.Link.OrientAlong,alignmentFocus:z.Spot.Right,figure:"circle",width:10,strokeWidth:0},new z.Binding("fill","color"),new z.Binding("visible","dir",(function(e){return 1===e}))),e(z.Shape,{segmentIndex:-1,segmentOffset:new z.Point(-10,6),segmentOrientation:z.Link.OrientPlus90,alignmentFocus:z.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new z.Binding("fill","color"),new z.Binding("visible","dir",(function(e){return e>=1})),new z.Binding("width","thickness",(function(e){return 7+3*e})),new z.Binding("height","thickness",(function(e){return 7+3*e})),new z.Binding("segmentOffset","thickness",(function(e){return new z.Point(-15,4+1.5*e)}))),e(z.Shape,{segmentIndex:0,segmentOffset:new z.Point(15,-6),segmentOrientation:z.Link.OrientMinus90,alignmentFocus:z.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new z.Binding("fill","color"),new z.Binding("visible","dir",(function(e){return 2===e})),new z.Binding("width","thickness",(function(e){return 7+3*e})),new z.Binding("height","thickness",(function(e){return 7+3*e})),new z.Binding("segmentOffset","thickness",(function(e){return new z.Point(-15,4+1.5*e)}))),e(z.TextBlock,{alignmentFocus:new z.Spot(0,1,-4,0),editable:!0},new z.Binding("text").makeTwoWay(),new z.Binding("stroke","color"))),t.current.linkTemplate.selectionAdornmentTemplate=e(z.Adornment,e(z.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:D(2)},new z.Binding("pathPattern","thickness",D)),w({alignmentFocus:new z.Spot(0,0,-6,-4)})),t.current.linkTemplate.contextMenu=e("ContextMenu",B(),k(),e("ContextMenuButton",e(z.Panel,"Horizontal",T(0),T(1),T(2))),e("ContextMenuButton",e(z.Panel,"Horizontal",e(z.Panel,"Spot",E(!1),P(z.Spot.Top,!1),P(z.Spot.Left,!1),P(z.Spot.Right,!1),P(z.Spot.Bottom,!1)),e(z.Panel,"Spot",{margin:new z.Margin(0,0,0,2)},E(!0),P(z.Spot.Top,!0),P(z.Spot.Left,!0),P(z.Spot.Right,!0),P(z.Spot.Bottom,!0))))),new z.Palette(i.current,{maxSelectionCount:1,linkTemplate:e(z.Link,{locationSpot:z.Spot.Center,selectionAdornmentTemplate:e(z.Adornment,"Link",{locationSpot:z.Spot.Center},e(z.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(z.Shape,{toArrow:"Standard",stroke:null}))},{routing:z.Link.AvoidsNodes,curve:z.Link.JumpOver,corner:5,toShortLength:4},new z.Binding("points"),e(z.Shape,{isPanelMain:!0,strokeWidth:2}),e(z.Shape,{toArrow:"Standard",stroke:null})),model:new z.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(L()(z.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(z.Node,"Auto",{locationSpot:z.Spot.Center},new z.Binding("location","location",z.Point.parse).makeTwoWay(z.Point.stringify),e(z.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 z.Binding("stroke").makeTwoWay(),new z.Binding("fill").makeTwoWay(),new z.Binding("figure")),e(z.TextBlock,{margin:new z.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new z.Size(16,16),maxSize:new z.Size(10,NaN),textAlign:"center",editable:!0},new z.Binding("key").makeTwoWay())),setTimeout((function(){t.current.grid=e(z.Panel,"Grid",e(z.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(z.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),t.current.grid.visible=!0,t.current.grid.gridCellStroke="darkgray",t.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=t.current,t.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:a})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(B.ZP,{size:"large",onClick:f,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},J=l(5112),Q=l(94001),X=J.ZP.Group,Y={margin:"0 8px"},_=function(e){var n=e.callback,l=e.onCancel;return(0,h.jsxs)(j.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){n(e)},children:[(0,h.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Y,children:"单元格数:"}),(0,h.jsx)("span",{style:Y,children:"行数"}),(0,h.jsx)(j.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(Q.Z,{})}),(0,h.jsx)("span",{style:Y,children:"列数"}),(0,h.jsx)(j.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(Q.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Y,children:"对齐方式:"}),(0,h.jsx)(j.Z.Item,{name:"align",children:(0,h.jsxs)(X,{children:[(0,h.jsx)(J.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(J.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(J.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(J.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(B.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(B.ZP,{type:"ghost",onClick:l,children:"取消"})]})]})},$=l(78673),ee=l(57932),ne=l.n(ee),le=(0,c.forwardRef)((function(e,n){var l=e.use3d,t=e.width,a=e.height,i=e.callback,r=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),u=(0,c.useState)(!1),d=o()(u,2),p=d[0],v=d[1],f=(0,c.useRef)({id:r,appName:"graphing",width:t||1e3,height:a||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(ne())(f.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var g=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return i&&i(e),e};return(0,c.useEffect)((function(){f.current.appName=p?"3D":"graphing",s.current.inject("applet_container")}),[p]),(0,c.useEffect)((function(){v(l)}),[l]),(0,c.useImperativeHandle)(n,(function(){return{getImgData:g}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:r}),(0,h.jsxs)(D.Z,{align:"middle",children:[(0,h.jsx)(G.Z,{flex:1,children:(0,h.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:p,onChange:function(e){return v(e)}})}),(0,h.jsx)(G.Z,{children:(0,h.jsx)(B.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),te=l(36761),ae=l(92723),ie=l(8591),oe="link",re="upload-image",se="add-flowchart",ce="draw-image",ue="code-block",de="add-table",pe="------------",ve={default:pe,left:":".concat(pe),center:":".concat(pe,":"),right:"".concat(pe,":")},he=l(77818);var fe="@▁▁@",ge=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function me(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var be=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",xe=s()(s()({},be+"-B","bold"),be+"-I","italic"),we=s()(s()(s()(s()(s()(s()(s()(s()({},oe,"添加链接"),ue,"添加代码块"),re,"添加图片"),ce,"添加画图"),se,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Ae=function(e){var n=e.defaultValue,l=void 0===n?"":n,t=e.onChange,i=e.width,r=void 0===i?"100%":i,u=e.height,g=void 0===u?400:u,m=e.miniToolbar,b=void 0!==m&&m,x=e.isFocus,j=void 0!==x&&x,y=e.watch,B=e.insertTemp,C=e.mode,D=void 0===C?"markdown":C,T=e.id,P=void 0===T?"markdown-editor-id":T,R=e.showResizeBar,F=void 0!==R&&R,Z=e.noStorage,O=void 0!==Z&&Z,L=e.showNullButton,z=void 0!==L&&L,M=e.showNullProgramButton,W=void 0!==M&&M,H=e.hidetoolBar,G=void 0!==H&&H,K=e.fullScreen,U=void 0!==K&&K,q=e.onBlur,J=e.onCMBeforeChange,Q=e.onFullScreen,X=e.className,Y=void 0===X?"":X,$=e.disablePaste,ee=void 0!==$&&$,ne=e.disabled,pe=void 0!==ne&&ne,be=e.disabledFill,Ae=void 0!==be&&be,je=e.placeholder,ye=void 0===je?"":je,Be=e.values,Ce=void 0===Be?"":Be,Se=e.extraUse,ke=(0,c.useState)(null),Ne=o()(ke,2),De=Ne[0],Te=Ne[1],Ee=(0,c.useState)(l),Pe=o()(Ee,2),Re=Pe[0],Fe=Pe[1],Ze=(0,c.useState)(y),Oe=o()(Ze,2),Le=Oe[0],ze=Oe[1],Me=(0,c.useState)(U),We=o()(Me,2),He=We[0],Ie=We[1],Ge=(0,c.useState)(""),Ke=o()(Ge,2),Ue=Ke[0],qe=Ke[1],Ve=(0,c.useState)(0),Je=o()(Ve,2),Qe=Je[0],Xe=Je[1],Ye=(0,c.useState)(g),_e=o()(Ye,2),$e=_e[0],en=_e[1],nn=(0,c.useState)(!1),ln=o()(nn,2),tn=(ln[0],ln[1]),an=(0,c.useState)(0),on=o()(an,2),rn=on[0],sn=on[1],cn=(0,c.useState)(0),un=o()(cn,2),dn=un[0],pn=un[1],vn=(0,c.useRef)(),hn=(0,c.useRef)(),fn=(0,c.useRef)(),gn=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Fe(Ce),null==De||De.setValue(Ce),window.scrollTo(0,e)}),[Ce]),(0,c.useEffect)((function(){null==Q||Q(He)}),[He]),(0,c.useEffect)((function(){if(vn.current){var e=function(e,l){if(!ee){var t=l.clipboardData;if(t){var a=t.types.toString(),i=t.items;if("Files"===a||t.types.indexOf("Files")>-1){if(l.preventDefault(),"stex"==D)return;try{var o,r=i[1];"file"===(null===(o=i[0])||void 0===o?void 0:o.kind)&&(r=i[0]);var s=r.getAsFile(),c=s.name.split(".").pop();(0,N.I)(s,(function(e){var l,t,a;e.id?(null==s||null===(l=s.type)||void 0===l?void 0:l.indexOf("image"))>-1?n.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==s||null===(t=s.type)||void 0===t?void 0:t.indexOf("video"))>-1?n.replaceSelection('')):(null==s||null===(a=s.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?n.replaceSelection('').concat(s.name,"")):ge.includes(c)?n.replaceSelection('').concat(s.name,"")):n.replaceSelection("[".concat(s.name,"](").concat(ae.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(l){ie.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}l.preventDefault()},n=d().fromTextArea(vn.current,{mode:D,lineNumbers:!b,lineWrapping:!0,value:l,autoCloseTags:!0,autoCloseBrackets:!0});return n.on("keyup",(function(e,l){8===l.keyCode&&(""==e.getValue()?n.setOption("placeholder",ye):n.setOption("placeholder",null))})),n.on("keydown",(function(e,n){if(8===n.keyCode){var l=function(e,n){var l=e.getDoc(),t=l.getCursor(),a=l.getLine(t.line),i=a.charAt(t.ch-1),o=a.lastIndexOf("@▁@",t.ch),r=a.lastIndexOf("@▁▁@",t.ch),s=o>r?o:r,c=o>r?3:4;if(-1===fe.indexOf(i))return null;if(console.log("change1:",n,e,a,t,s,o,r,i),s>=0&&t.ch-s<5){var u=s+c;return l.replaceRange("",{line:t.line,ch:s},{line:t.line,ch:u}),{line:t.line,ch:u}}return null}(e);l&&n.preventDefault()}})),j&&n.focus(),n.on("paste",e),pe&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Te(n),function(){n.off("paste",e)}}}),[]);var mn=(0,c.useCallback)((function(){hn.current}),[$e,hn,He]);(0,c.useEffect)((function(){if(De){var e=function(){var e=new p.Z((function(e){var n,l=a()(e);try{for(l.s();!(n=l.n()).done;){var t=n.value;(t.target.offsetHeight>0||t.target.offsetWidth>0)&&(mn(),De.setSize("100%","100%"),De.refresh())}}catch(e){l.e(e)}finally{l.f()}}));return e.observe(vn.current.parentElement),e}();return function(){var n,l;null!==(n=vn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(l=vn.current)||void 0===l?void 0:l.parentElement)}}}),[De,mn]),(0,c.useEffect)((function(){if(De){for(var e=[],n=function(){var n=o()(t[l],2),a=n[0],i=n[1],r=s()({},a,(function(){bn(i)}));e.push(r),De.addKeyMap(r)},l=0,t=Object.entries(xe);l0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(P);e>=Qe+1e4&&(!n||n!==Re)&&(window.sessionStorage.setItem(P,Re),tn(!0))}}),1e4),(0,c.useEffect)((function(){ze(y)}),[De,y]),(0,c.useEffect)((function(){De&&j&&De.focus()}),[De,j]),(0,c.useEffect)((function(){if(Le&&De){var e=function(e){var n=e.target;if(gn.current){var l=n.scrollTop/n.scrollHeight;gn.current.scrollTop=gn.current.scrollHeight*l}},n=De.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[De,Le]),(0,c.useEffect)((function(){if(De&&J){var e=function(e,n){J(e,n)};return De.on("beforeChange",e),function(){De.off("beforeChange",e)}}}),[De,J]),(0,c.useEffect)((function(){if(De&&q){var e=function(){q(De.getValue())};return De.on("blur",e),function(){De.off("blur",e)}}}),[De,q]),(0,c.useEffect)((function(){if(De){var e=function(e,n){var l=e.getValue();Fe(l),Xe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),t&&(W?t(l,yn(l)):t(l))};return De.on("change",e),function(){De.off("change",e)}}}),[De,t]),(0,c.useEffect)((function(){if(De)if(null==l)De.setValue(""),Fe("");else{var e=window.scrollY||window.pageYOffset;l!==De.getValue()&&(De.setValue(l),Fe(l),De.setCursor(pe?1:De.lineCount(),0),window.scrollTo(0,e))}}),[De,l]);var bn=(0,c.useCallback)((function(e){var n=De.getCursor(),l=De.getSelection(),t=l.split("\n");switch(e){case"bold":return De.replaceSelection("**"+l+"**"),""===l&&De.setCursor(n.line,n.ch+2),De.focus();case"italic":return De.replaceSelection("*"+l+"*"),""===l&&De.setCursor(n.line,n.ch+1),De.focus();case"code":return De.replaceSelection("`"+l+"`"),""===l&&De.setCursor(n.line,n.ch+1),De.focus();case"inline-latex":return qe("inline-latex"),De.focus();case"latex":return De.replaceSelection("```latex\n"+l+"\n```"),De.setCursor(n.line+1,l.length+1),De.focus();case"line-break":return De.replaceSelection("
\n"),De.focus();case"list-ul":return""===l?De.replaceSelection("- "+l):De.replaceSelection(t.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),De.focus();case"list-ol":return""===l?De.replaceSelection("1. "+l):De.replaceSelection(t.map((function(e,n){return""===e?"":"".concat(n+1,". ").concat(e)})).join("\n")),De.focus();case"add-null-ch":return""===l&&De.setCursor(n.line,n.ch),De.replaceSelection("▁"),De.focus();case"add-signal":return""===l&&De.setCursor(n.line,n.ch),De.replaceSelection("@▁@"),De.focus();case"add-multiple":return""===l&&De.setCursor(n.line,n.ch),De.replaceSelection(fe),De.focus();case"inster-template-1":return""===l&&De.setCursor(n.line,n.ch),De.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),De.focus();case"eraser":return De.setValue(""),De.focus();case"trigger-watch":return ze(!Le),De.focus();case"trigger-full-screen":return Ie(!He),De.focus();case oe:return void qe(oe);case ue:return void qe(ue);case re:return void qe(re);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case de:return void qe(de);default:throw new Error}}),[De,Le,He]),xn=(0,c.useCallback)((function(e,n){var l,t,a,i,o;switch(qe(""),Ue){case oe:var r=e.title,s=e.link;return De.replaceSelection("[".concat(r,"](").concat(s,")")),De.focus();case ue:var c=e.language,u=e.content;return De.replaceSelection(["```"+c,u,"```"].join("\n")),De.focus();case"maths-latex":for(var d=atob(e),p=new Uint8Array(d.length),v=0;v-1||null==m||!m.type?g?De.replaceSelection("![ ".concat(g," ]( ").concat(f,' "').concat(g,'" )')):De.replaceSelection("![,](".concat(f,")")):(null==m||null===(i=m.type)||void 0===i?void 0:i.indexOf("video"))>-1?De.replaceSelection('')):(null==m||null===(o=m.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?De.replaceSelection('').concat(m.name,"")):ge.includes(b)?De.replaceSelection('').concat(m.name,"")):De.replaceSelection("[".concat(m.name,"](").concat(ae.Z.API_SERVER).concat(f,")")),De.focus();case de:for(var x=e.row,w=e.col,A=e.align,j="\n",y=0;y300&&(n=300),en(g+n+"px")}},t=fn.current,a=!1,i=0;return t.addEventListener("mousedown",e),document.addEventListener("mousemove",l),document.addEventListener("mouseup",n),function(){t.removeEventListener("mousedown",e),document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",n)}}}),[De,fn]),(0,c.useEffect)((function(){en(g)}),[g]);var jn={width:me(r),height:me($e)},yn=((0,c.useMemo)((function(){if(Qe){var e=new Date(Qe),n=e.getHours(),l=e.getMinutes(),t=e.getSeconds();return l=l<10?"0"+l:l,t=t<10?"0"+t:t,"".concat(n=n<10?"0"+n:n,":").concat(l,":").concat(t)}return 0}),[Qe]),function(e){var n=[];if(W){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,l,t){n.push({multiLine:!("@▁@"===e)})}))}return n});(0,c.useEffect)((function(){we[Ue]&&Ue!==ce&&Ue!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],n=window.innerWidth/2-e.offsetWidth/2,l=window.innerHeight/2-e.offsetHeight/2;sn(n),pn(l)}),0)}),[Ue]);var Bn=function(e,n,l,t){var a=document.body.clientHeight,i=document.body.clientWidth;return!(e<20&&l>e||e>i-20&&ln||n>a-20&&t0&&(0,r.jsx)("div",{className:o,children:l.map((function(e,n){return(0,r.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,r.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKU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6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},n)}))}),p]}),t&&(0,r.jsx)("img",{style:{marginTop:33,marginRight:38},src:t,width:c})]})})},c=l(79800),u=l.n(c),d="row___aXJjm",p="title___HUKL0",v="tagsWrap___XB2W3",h="action___VdHb1",f="bar___t1kKC",g="tag___V7Eft",m="name___Hk1Ip",b="num___xQpcH",x="active___XryTX",w="tagsBorderWrap___OMxjs",A=l(92310),j=l.n(A),y=l(89392),B=function(e){var n=e.dataSource,l=void 0===n?[]:n,a=e.value,i=e.onChange,o=e.onTitleChange,s=e.className,c=e.title,A=e.titleWidth,B=void 0===A?41:A,C=e.style,S=void 0===C?{}:C,k=e.fontColor,N=void 0===k?"#6A7283":k,D=e.showCount,T=(0,t.useState)(0),E=u()(T,2),P=E[0],R=E[1],F=(0,t.useState)(!1),Z=u()(F,2),O=Z[0],L=Z[1],z=(0,t.useRef)(null),M=(0,t.useRef)(null);return(0,t.useEffect)((function(){var e;0!==l.length&&((null==z||null===(e=z.current)||void 0===e?void 0:e.clientHeight)>97?R(1):R(0));0===l.length&&R(0),L(!1)}),[l]),(0,r.jsxs)("div",{className:j()(d,s),style:S,children:[(0,r.jsx)("div",{onClick:(0,y.throttle)((function(){return null==o?void 0:o()}),2e3),style:{width:B,marginTop:O?12:4},className:"".concat(p," ").concat(o?"current":""),children:c}),(0,r.jsxs)("div",{className:O?"".concat(v," ").concat(w):v,children:[(0,r.jsx)("div",{className:f,ref:M,style:P>0?{height:1===P?97:"auto",overflow:1===P?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,r.jsx)("div",{className:g,ref:z,children:null==l?void 0:l.map((function(e){return(0,r.jsxs)("span",{onClick:function(){return i(e.id)},style:{color:N},className:a===e.id?x:"",children:[(0,r.jsx)("span",{title:e.name,className:m,children:e.name}),!!D&&(0,r.jsx)("span",{className:b,children:e.count})]},e.id)}))})}),!!P&&(0,r.jsx)(t.Fragment,{children:1===P?(0,r.jsxs)("div",{onClick:function(){var e;R(2),(null==z||null===(e=z.current)||void 0===e?void 0:e.clientHeight)>245?L(!0):L(!1)},className:h,children:["展开",(0,r.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,r.jsxs)("div",{onClick:function(){M.current.scrollTop=0,R(1),L(!1)},className:h,children:["收起",(0,r.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},C="tabs___GTqPV",S="active___F26E8",k=function(e){var n=e.dataSource,l=void 0===n?[]:n,t=e.value,a=e.onChange,i=e.className,o=e.style,s=void 0===o?{}:o;return(0,r.jsx)("div",{style:s,className:j()(C,i),children:l.map((function(e){return(0,r.jsx)("span",{onClick:function(){return a(e.id)},className:t===e.id?S:"",children:e.name},e.id)}))})},N="input___PW2zI",D="dropdown___vSy8B",T="menu___NiyBu",E="text___Grueu",P="b1___ZKryM",R="b2___aKyGa",F=l(92832),Z=function(e){var n,l=e.dataSource,a=void 0===l?[]:l,i=e.value,o=void 0===i?"":i,s=e.onChange,c=e.onInputChange,d=void 0===c?function(){}:c,p=e.className,v=e.style,h=void 0===v?{}:v,f=e.placeholder,g=(e.allowClear,(0,t.useState)("")),m=u()(g,2),b=m[0],x=m[1],w=(0,t.useState)(""),A=u()(w,2),y=A[0],B=A[1];(0,t.useEffect)((function(){var e,n=o;null!==(e=JSON.stringify(o))&&void 0!==e&&e.includes("{")&&(x(o.id),n=o.value||"");try{B(decodeURIComponent(n||""))}catch(e){B(decodeURIComponent(n||""))}}),[o]);var C=function(){s(encodeURIComponent(y),b||null)};return(0,r.jsxs)("div",{className:j()(N,p),style:h,children:[!!a.length&&(0,r.jsxs)("div",{className:D,children:[(0,r.jsxs)("div",{className:E,children:[null===(n=a.find((function(e){return e.id===b})))||void 0===n?void 0:n.name,(0,r.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,r.jsx)("b",{className:P}),(0,r.jsx)("b",{className:R})]}),(0,r.jsx)("div",{className:T,children:a.map((function(e,n){return(0,r.jsx)("div",{onClick:function(){var n;(n=e.id)!==b&&(x(n),s(encodeURIComponent(y),n))},children:e.name},n)}))})]}),(0,r.jsx)(F.Z,{onPressEnter:C,value:y,onChange:function(e){B(e.target.value),d(encodeURIComponent(e.target.value),b||null)},bordered:!1,placeholder:f}),(0,r.jsx)("i",{onClick:C,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},O="quickPager___GM30J",L="disabled___Ozc8I",z=function(e){var n=e.value,l=e.onChange,t=e.className,a=e.total,i=e.pageSize,o=e.style,s=void 0===o?{}:o,c=n<2,u=n>=Math.ceil(a/i);return a<=i?(0,r.jsx)(r.Fragment,{}):(0,r.jsxs)("div",{className:j()(O,t),style:s,children:[(0,r.jsx)("div",{onClick:function(){c||l(n-1,"prev")},className:c?L:"",children:"上一页"}),(0,r.jsx)("div",{onClick:function(){u||l(n+1,"next")},className:u?L:"",children:"下一页"})]})},M="list___oOsiS",W="wrap___G6T7F",H="lockWrap___Rl79E",I="li___oZZ7l",G="cover___b2bYW",K="img___IQX7w",U="sign___HkT6C",q="name___SsJx8",V="e___TMqq0",J="tags___bcjyo",Q="rate___YACg7",X=l(71418),Y=l(6848),_=l(31395),$=l(92723),ee=l(21082),ne=l(96908),le=l(57177),te=l(81378),ae=l(54313),ie=function(e){var n=e.className,l=e.dataSource,t=void 0===l?[]:l,a=e.col,i=void 0===a?4:a,o=e.right,s=e.bottom,c=void 0===s?23:s,u=e.precision,d=void 0===u?0:u,p=e.wrapWidth,v=void 0===p?1200:p,h=e.trackEventItems,f=e.loading,g=Math.floor((v-(i-1)*o)/i);return(0,r.jsx)(X.Z,{spinning:f,children:(0,r.jsxs)("div",{className:j()(M,n),children:[!!t.length&&t.map((function(e,n){var l=e.name,t=e.id,a=e.identifier,s=e.power,u=(e.cover_image_id,e.pic);return(0,r.jsxs)("div",{className:W,style:{width:g,marginRight:(1+n)%i==0?0:o+d,marginBottom:c},children:[(0,r.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(a,"/challenges"),className:I,onClick:function(e){e.preventDefault(),h&&(0,ee.L9)([h]),s&&(0,ee.xg)("/shixuns/".concat(a,"/challenges"))},children:[(0,r.jsxs)("div",{className:K,children:[(0,r.jsx)("img",{className:G,src:"".concat(u)}),e.is_jupyter&&(0,r.jsx)("img",{className:U,src:ne}),e.is_jupyter_lab&&(0,r.jsx)("img",{className:U,src:le}),e.is_unity_3d&&(0,r.jsx)("img",{className:U,src:te})]}),(0,r.jsx)("div",{className:q,children:(0,r.jsx)(Y.Z,{title:l||"实践项目名称-未填写",children:(0,r.jsx)("span",{className:V,children:l||"实践项目名称-未填写"})})}),(0,r.jsxs)("div",{className:J,children:[(0,r.jsx)(Y.Z,{placement:"bottom",title:"关卡数",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,r.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,r.jsx)(Y.Z,{placement:"bottom",title:"学习人数",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,r.jsx)("span",{children:e.myshixuns_count})]})}),(0,r.jsx)(Y.Z,{placement:"bottom",title:"难度等级",children:(0,r.jsx)("span",{children:(0,r.jsx)("span",{children:e.level})})}),(0,r.jsxs)("div",{className:Q,children:[(0,r.jsx)(_.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,r.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!s&&(0,r.jsxs)("div",{className:H,children:[(0,r.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,r.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},t)})),!t.length&&(0,r.jsx)(ae.Z,{})]})})},oe="list___jb2Ay",re="wrap___VsQDr",se="li___IxCLC",ce="cover___Mu8wr",ue="img___IpFLA",de="movebq___mF7wt",pe="bq___Bil0T",ve="sign___DXJ4d",he="name___l7FoJ",fe="e___pXQUG",ge="unit___wCIFR",me="tags___w_Mil",be=l(93697),xe=function(e){var n=e.className,l=e.dataSource,t=void 0===l?[]:l,a=e.col,i=void 0===a?4:a,o=e.right,s=e.bottom,c=void 0===s?23:s,u=e.precision,d=void 0===u?0:u,p=e.wrapWidth,v=void 0===p?1200:p,h=e.trackEventItems,f=e.loading,g=e.onRemove,m=void 0===g?function(){}:g,b=e.isCurrent,x=void 0===b||b,w=e.showAlias,A=void 0!==w&&w,y=Math.floor((v-(i-1)*o)/i),B=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,r.jsx)(X.Z,{spinning:f,children:(0,r.jsxs)("div",{className:j()(oe,n),children:[!(null==t||!t.length)&&(null==t?void 0:t.map((function(e,n){var l,t=e.name,a=e.id,s=e.identifier,u=(e.featured,e.school_name),p=e.image_url;e.excellent,e.is_plan;return(0,r.jsx)("div",{className:re,style:{width:y,marginRight:(1+n)%i==0?0:o+d,marginBottom:c},children:(0,r.jsxs)("a",{className:se,onClick:function(e){e.preventDefault(),e.stopPropagation(),h&&(0,ee.L9)([h]),(0,ee.xg)("/paths/".concat(s))},children:[(0,r.jsxs)("div",{className:ue,children:[(0,r.jsx)("img",{className:ce,src:"".concat(p)}),x&&(0,be.bg)()&&(null==e?void 0:e.studying)&&(0,r.jsxs)("div",{className:"".concat(de," user-path-items"),onClick:function(n){n.stopPropagation(),m(e)},children:[(0,r.jsx)("i",{className:"iconfont icon-yichu1 mr5 c-red"}),(0,r.jsx)("span",{className:"c-red",children:"移除"})]}),null==e||null===(l=e.subject_tags)||void 0===l?void 0:l.map((function(e,n){var l;if(0===n){var t,a=null===(t=B.find((function(n){return n.name==e})))||void 0===t?void 0:t.swimg;return(0,r.jsx)("img",{className:ve,src:a,style:{left:"-4px"}})}var i=null===(l=B.find((function(n){return n.name==e})))||void 0===l?void 0:l.ptimg;return(0,r.jsx)("img",{className:ve,src:i,style:{left:"".concat(48+52*(n-1)+2*n,"px")}})})),(0,r.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,r.jsx)("div",{className:pe,children:"开放课程"})})]}),(0,r.jsx)("div",{className:he,children:(0,r.jsx)(Y.Z,{title:A&&null!=e&&e.excellent_alias_name?(0,r.jsxs)("span",{children:["课程原名:".concat(t),(0,r.jsx)("br",{}),(0,r.jsx)("span",{children:"课程别名:".concat(null==e?void 0:e.excellent_alias_name)})]}):t,children:(0,r.jsx)("span",{className:fe,children:A&&(null==e?void 0:e.excellent_alias_name)||t})})}),(0,r.jsx)(Y.Z,{title:"发布单位:".concat(u),children:(0,r.jsxs)("div",{className:ge,children:[(0,r.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),u]})}),(0,r.jsx)("div",{className:me,children:(0,r.jsxs)("div",{children:[(0,r.jsx)(Y.Z,{placement:"bottom",title:"章节数",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,r.jsx)("span",{children:e.stages_count})]})}),(0,r.jsx)(Y.Z,{placement:"bottom",title:"学习人数",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,r.jsx)("span",{children:e.members_count})]})})]})})]})},a)}))),!t.length&&(0,r.jsx)(ae.Z,{})]})})},we={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Ae=function(e){var n=e.className,l=e.dataSource,t=void 0===l?[]:l,a=e.col,i=void 0===a?4:a,o=e.right,s=e.bottom,c=void 0===s?23:s,u=e.precision,d=void 0===u?0:u,p=e.wrapWidth,v=void 0===p?1200:p,h=e.trackEventItems,f=e.loading,g=Math.floor((v-(i-1)*o)/i);return(0,r.jsx)(X.Z,{spinning:f,children:(0,r.jsxs)("div",{className:j()(we.list,n),children:[!!t.length&&t.map((function(e,n){var l=e.subject_identifier,t=e.id,a=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,r.jsxs)("div",{className:we.wrap,style:{width:g,marginRight:(1+n)%i==0?0:o+d,marginBottom:c},children:[(0,r.jsxs)("a",{className:we.li,onClick:function(n){n.preventDefault(),(0,ee.Wn)(null==e?void 0:e.forbid_visit_info)||(h&&(0,ee.L9)([h]),(0,ee.xg)(e.first_category_url))},children:[(0,r.jsxs)("div",{className:we.top,children:[(0,r.jsx)(Y.Z,{title:e.name,children:(0,r.jsx)("div",{className:we.name,children:e.name})}),(0,r.jsx)("img",{className:we.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,r.jsx)("div",{className:we.text,title:e.creator,children:e.creator}),l&&(0,r.jsxs)("div",{className:we.btns,children:[(0,r.jsx)("div",{children:"开放课程"}),(0,r.jsx)("aside",{children:"开放课堂"})]}),a&&(0,r.jsx)("div",{className:we.sign,children:"公开"})]}),(0,r.jsxs)("div",{className:we.bottom,children:[e.visits>0&&(0,r.jsx)(Y.Z,{title:"访问量",placement:"bottom",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,r.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,r.jsx)(Y.Z,{title:"成员",placement:"bottom",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,r.jsx)(Y.Z,{title:"作业",placement:"bottom",children:(0,r.jsxs)("span",{children:[(0,r.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,r.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,r.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,r.jsxs)("div",{className:we.lockWrap,children:[(0,r.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,r.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},t)})),!t.length&&(0,r.jsx)(ae.Z,{})]})})},je={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},ye=l(5296),Be=function(e){var n=e.dataSource,l=void 0===n?[]:n,t=e.value,a=e.onChange,i=e.className,o=e.style,s=void 0===o?{}:o,c=e.tabBarExtraContent;return(0,r.jsxs)("div",{className:j()(je.tabs,i),style:s,children:[(0,r.jsx)("div",{className:je.tabsWrap,children:l.map((function(e,n){return(0,r.jsxs)("aside",{className:je.tab,onClick:function(){a(e.id),e.link&&ye.history.push(e.link)},children:[(0,r.jsx)("div",{className:t===e.id?je.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,r.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,r.jsx)(Y.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,r.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,r.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,r.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},n)}))}),(0,r.jsx)("div",{className:je.tabBar,children:c})]})},Ce=function(e){var n=e.className,l=e.style,t=void 0===l?{}:l,a=e.children;return(0,r.jsx)("div",{className:j()(n),style:t,children:a})},Se="orderWrap___ZfyGX",ke="orderIconWrap___XTB_O",Ne="orderAsc___KWHmA",De="orderDesc___rHdbB",Te="active___a7eSP",Ee="cursorPointer___gs9kL",Pe="orderTextWrap___teAKn",Re=l(38854),Fe=l(20834),Ze=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Oe=function(e){var n,l=e.sortValue,t=e.dropValue,a=e.className,i=e.onSort,o=e.onDrop,s=e.dataSource,c=void 0===s?Ze:s;return(0,r.jsxs)("div",{className:j()(Se,a),children:[(0,r.jsx)(Re.Z,{dropdownRender:function(){return(0,r.jsx)(Fe.Z,{children:c.map((function(e,n){return(0,r.jsx)(Fe.Z.Item,{onClick:function(){return o(e.id)},children:e.name},n)}))})},children:(0,r.jsx)("span",{className:Pe,children:null===(n=c.find((function(e){return t===e.id})))||void 0===n?void 0:n.name})}),(0,r.jsxs)("span",{className:ke,children:[(0,r.jsx)("span",{className:Ne,children:(0,r.jsx)("i",{className:"asc"===l?"iconfont icon-sanjiaoxing-up font12 ".concat(Ee," ").concat(Te):"iconfont icon-sanjiaoxing-up font12 ".concat(Ee),onClick:function(){return i("asc"===l?"desc":"asc")}})}),(0,r.jsx)("span",{className:De,children:(0,r.jsx)("i",{className:"desc"===l?"iconfont icon-sanjiaoxing-down font12 ".concat(Ee," ").concat(Te):"iconfont icon-sanjiaoxing-down font12 ".concat(Ee),onClick:function(){return i("asc"===l?"desc":"asc")}})})]})]})},Le=l(82242),ze=l.n(Le),Me=l(7557),We=l.n(Me),He=l(41498),Ie=l.n(He),Ge=l(39647),Ke=l.n(Ge),Ue={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},qe=l(3113),Ve=["className","style","children","loading","openLoading","onClick","size","shape"],Je=function(e){var n=e.className,l=e.style,a=e.children,i=e.loading,o=void 0!==i&&i,s=e.openLoading,c=e.onClick,d=void 0===c?function(){}:c,p=e.size,v=void 0===p?"middle":p,h=e.shape,f=void 0===h?"round":h,g=Ke()(e,Ve),m=(0,t.useState)(!1),b=u()(m,2),x=b[0],w=b[1];return(0,r.jsx)(qe.ZP,ze()(ze()({onClick:(0,y.throttle)(function(){var e=Ie()(We()().mark((function e(n){return We()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s&&w(!0),e.prev=1,e.next=4,d(n);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:s&&w(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(n){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:j()(Ue.btn,Ue["".concat(v,"-").concat(f)],n),style:l,size:v,shape:f,loading:x||o},g),{},{children:a}))},Qe="head___ghH72",Xe="node___mjPEy",Ye=function(e){var n=e.className,l=e.style,t=e.children,a=void 0===t?null:t,i=e.onClick,o=e.title;return(0,r.jsxs)("div",{className:j()(Qe,n),style:l,children:[(0,r.jsxs)("span",{className:"primary-hover",onClick:i,children:[(0,r.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,r.jsx)("b",{title:o,children:o}),(0,r.jsx)("div",{className:Xe,children:a})]})},_e="btns___sNgTb",$e="confirm___Ozirl",en="cancel___aiq1I",nn=function(e){var n=e.confirmShow,l=void 0===n||n,t=e.confirmTitle,a=e.confirmClick,i=e.cancelShow,o=void 0===i||i,s=e.cancelTitle,c=e.cancelClick,u=e.className,d=e.style,p=e.confirmLoading,v=void 0!==p&&p;return(0,r.jsxs)("div",{className:j()(_e,u),style:d,children:[l&&(0,r.jsx)(qe.ZP,{loading:v,onClick:a,type:"primary",className:$e,children:t}),o&&(0,r.jsx)(qe.ZP,{onClick:c,className:en,children:s})]})},ln={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},tn=function(e){var n=e.className,l=e.style,t=void 0===l?{}:l,a=e.LeftContent,i=e.children,o=e.RightContent;return(0,r.jsx)("div",{className:j()(ln.fixedBottom,n),style:t,children:(0,r.jsxs)("div",{className:ln.wrap,children:[(0,r.jsx)("div",{className:ln.left,children:a}),(0,r.jsx)("div",{className:ln.center,children:i}),(0,r.jsx)("div",{className:ln.right,children:o})]})})},an="crumbs___V41Oe",on="hover___bEIVd",rn=function(e){var n=e.className,l=e.style,a=void 0===l?{}:l,i=e.dataSource,o=void 0===i?[]:i;return(0,r.jsx)("div",{className:j()(an,n),style:a,children:o.map((function(e,n){return n"," "]})]},n):(0,r.jsx)("span",{style:{color:"#5F6368"},children:e.name},n)}))})},sn=l(31797),cn=["onChange"],un=sn.Z.Countdown,dn=function(e){var n=e.onChange,l=Ke()(e,cn),a=(0,t.useState)(null),i=u()(a,2),o=i[0],s=i[1];(0,t.useEffect)((function(){"number"==typeof o&&o>=0&&n(o)}),[o]);return(0,r.jsx)(un,ze()(ze()({},l),{},{onChange:function(e){var n=Math.floor(e/1e3);s(n)}}))}},77818:function(e,n,l){"use strict";l.d(n,{Z:function(){return a}});var t=l(59301);function a(e,n){var l=(0,t.useRef)();(0,t.useEffect)((function(){l.current=e})),(0,t.useEffect)((function(){if(null!==n){var e=setInterval((function(){l.current()}),n);return function(){return clearInterval(e)}}}),[n])}},90341:function(e,n,l){"use strict";l.d(n,{$J:function(){return s},JZ:function(){return u},bN:function(){return v},jP:function(){return p},rO:function(){return c}});var t=l(7557),a=l.n(t),i=l(41498),o=l.n(i),r=l(18030);function s(e){return(0,r.U2)("libraries/".concat(e,".json"))}function c(){return(0,r.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=o()(a()().mark((function e(n){var l;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,r.IV)("attachments/".concat(n,".json"));case 2:return l=e.sent,e.abrupt("return",0===l.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,r.v_)("libraries.json",e)}function v(e,n){return(0,r.gz)("libraries/".concat(e,".json"),n)}},28877:function(e,n,l){"use strict";l.d(n,{Z:function(){return u}});var t=l(39647),a=l.n(t),i=l(43418),o="ul___TdfYY",r=l(32637),s=l(37712),c=["open","onCancel"],u=function(e){var n=e.open,l=e.onCancel;a()(e,c);return(0,s.jsx)(i.Z,{centered:!0,open:n,title:(0,s.jsx)("div",{style:{fontWeight:"bold"},children:"联系教研助理"}),width:"696px",onCancel:l,footer:null,children:(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"tc",children:(0,s.jsx)("img",{className:"mt10",src:r,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})}),(0,s.jsx)("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10",children:"免费教研助理"}),(0,s.jsx)("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16",children:"微信扫一扫添加"}),(0,s.jsx)("div",{style:{color:"#333"},className:"pt30 font14",children:(0,s.jsxs)("ul",{className:o,children:[(0,s.jsx)("li",{children:"1、解答老师疑惑、帮助老师更快熟悉和使用平台教学。"}),(0,s.jsx)("li",{children:"2、协助老师创建课堂、课程设计、做好教学工作。"}),(0,s.jsx)("li",{children:"3、根据老师教学方向,分享头歌平台C9院校、985高校、211高校、双一流高校老师经典实践教学案例。"})]})})]})})}},58790:function(e,n,l){"use strict";l.r(n),l.d(n,{default:function(){return Te}});var t=l(82242),a=l.n(t),i=l(37205),o=l.n(i),r=l(7557),s=l.n(r),c=l(41498),u=l.n(c),d=l(79800),p=l.n(d),v=l(39647),h=l.n(v),f=l(59301),g=l(5296),m=l(92832),b=l(98228),x=l(57809),w=l(78241),A=l(8591),j=l(43418),y=l(88522),B=l(95237),C=l(43604),S=l(78673),k=l(5112),N=l(24905),D=l(38318),T=l(59028),E=l(3113),P=l(71418),R=l(16318),F={bg:"bg____raBL",wrap:"wrap___HeK2P",crumbs:"crumbs___bamBY",titleWrap:"titleWrap___UpC0c",flexRow:"flexRow___WjoyK",flexJustifyCenter:"flexJustifyCenter___V6ndk",flexAlignEnd:"flexAlignEnd___So64w",flexAlignCenter:"flexAlignCenter___WWRXs",flexColumn:"flexColumn___b0Fz8",formWrap:"formWrap___Bmhgz",fieldWrap:"fieldWrap___pR4UB",mdWrap:"mdWrap___FPskk",tree:"tree___bVp9O",backgroundFa:"backgroundFa___ghlCO",aBtn:"aBtn___M7dWu",bBtn:"bBtn___XycZO",cascaderWrap:"cascaderWrap___CPNAV",listItem:"listItem____eV5T",right:"right___x8wr7",one:"one___wdYdi",schoolHintWrap:"schoolHintWrap___AWsQj",colorCDCDCD:"colorCDCDCD___xguLh",color0152d9:"color0152d9___MEYYd",spanText:"spanText___Srs_u",addTypeRadio:"addTypeRadio___JTRkP",add_ai:"add_ai___JGWFe",paths_content:"paths_content___Rzg9i",content_header:"content_header___LvvU1",header_box:"header_box___c05Gw",header_bj:"header_bj____CaVY",header_text:"header_text___jNO1N",lianjie:"lianjie___vtxBe",buzou_box:"buzou_box___qkXlL",no_start_style:"no_start_style___ONC9T",start_style:"start_style___vWVZl"},Z=l(21082),O=l(92723),L=l(18030),z=l(85573),M=l.n(z),W=l(64165),H="cascaderContainer___uz26h",I="valueWrap___zTHXb",G="valueItem___vBNoA",K="placeholder___bJTkn",U="modalWrap___uhROO",q="left___oZrbl",V="right___y9QjL",J="disabled___LVx0f",Q="emptyWrap___KG5pK",X=l(51638),Y=l(14988),_=l(37712),$=["sub_discipline"],ee=["sub_disciplines"],ne=(0,f.createRef)(),le=function(e){var n=e.dataSource,l=e.placeholder,t=e.defaultValue,i=e.onChange,r=(0,f.useState)(!1),s=p()(r,2),c=s[0],u=s[1],d=(0,f.useState)({data:[],objData:{},ids:[]}),v=p()(d,2),g=v[0],m=v[1],b=(0,f.useState)({}),x=p()(b,2),w=x[0],A=x[1];(0,f.useEffect)((function(){window.addEventListener("click",(function(){u(!1),A({})}))}),[]),(0,f.useEffect)((function(){if(t){var e={},n=[];t.forEach((function(l){var t=l.sub_discipline,i=h()(l,$);t&&(e[t.id]=a()(a()({},i),{},{sub_disciplines:[t]}),n.push(t.id))})),m({ids:n,data:Object.values(e),objData:e}),i(n)}}),[t]);var j=function(){return(0,_.jsx)("div",{className:Q,children:(0,_.jsx)(W.Z,{image:W.Z.PRESENTED_IMAGE_SIMPLE})})},y=45;return ne&&ne.current&&ne.current.clientHeight>45&&(y=ne.current.clientHeight+5),(0,_.jsxs)("div",{className:H,onClick:function(e){e.stopPropagation()},children:[(0,_.jsxs)("div",{ref:ne,className:I,onClick:function(){return u(!c)},children:[0===g.data.length&&(0,_.jsx)("span",{className:K,children:l||"请选择方向&课程"}),g.data.map((function(e){return(0,_.jsxs)("div",{className:G,children:[(0,_.jsx)("span",{children:e.name}),(0,_.jsx)("span",{children:"/"}),(0,_.jsx)("span",{children:e.sub_disciplines[0].name}),(0,_.jsx)("span",{onClick:function(n){n.stopPropagation(),n.preventDefault(),function(e){var n=g.objData;delete n[e];var l=g.ids.filter((function(n){return n!==e}));m({data:Object.values(n),objData:n,ids:l}),i(l)}(e.sub_disciplines[0].id)},children:(0,_.jsx)(X.Z,{})})]},e.id)}))]}),c&&(0,_.jsxs)("div",{className:U,style:{top:y},children:[(0,_.jsxs)("div",{className:q,children:[0===n.length&&j(),n.length>0&&n.map((function(e){return(0,_.jsxs)("div",{onClick:function(){A(e)},children:[(0,_.jsx)("span",{children:e.name}),(0,_.jsx)("span",{children:(0,_.jsx)(Y.Z,{})})]},e.id)}))]}),w.sub_disciplines&&(0,_.jsxs)("div",{className:V,children:[0===w.sub_disciplines.length&&j(),w.sub_disciplines.length>0&&w.sub_disciplines.map((function(e){var n=g.ids.includes(e.id);return(0,_.jsx)("div",{className:n?J:"",onClick:function(){!function(e){if(g.ids.includes(e.id))return!1;w.sub_disciplines;var n=h()(w,ee),l=a()(a()({},g.objData),{},M()({},e.id,a()(a()({},n),{},{sub_disciplines:[e]})));m({ids:[].concat(o()(g.ids),[e.id]),data:Object.values(l),objData:l}),i([].concat(o()(g.ids),[e.id]))}(e),u(!1)},children:e.name},e.id)}))]})]})]})},te=l(61998),ae=l(19842),ie=l(61186),oe=l.n(ie),re=l(80559),se=l(58670),ce=l(33550),ue="flexRow___qY1Ro",de="flexColumn___xTKsc",pe="formWrap___OJ1NZ",ve="example___XZnZv",he="footerWrap___DSZCv",fe=["newCourse","globalSetting","loading","dispatch","schoolName","onSuccess"],ge=function(e,n){return n.some((function(n){return n.label.toLowerCase().indexOf(e.toLowerCase())>-1}))},me=m.Z.TextArea,be=(0,g.connect)((function(e){var n=e.newCourse,l=e.loading;return{newCourse:n,globalSetting:e.globalSetting,loading:l.effects}}))((function(e){var n=e.newCourse,l=(e.globalSetting,e.loading),t=e.dispatch,i=e.schoolName,o=e.onSuccess,r=void 0===o?function(){}:o,c=(h()(e,fe),w.Z.useForm()),d=p()(c,1)[0];(0,f.useEffect)((function(){d.setFieldsValue({name:i})}),[i]);var v=function(){var e=u()(s()().mark((function e(n){var l,i,o,c,d,p,v,h;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(l=n||{}).name,o=l.city,c=void 0===o?[]:o,d=l.address,p=l.remarks,e.next=3,t({type:"newCourse/appplySchool",payload:{name:i,province:c[0],city:c[1],address:d,remarks:p}});case 3:if(2!=(null==(v=e.sent)?void 0:v.status)){e.next=7;break}return h=j.Z.confirm({icon:null,width:600,centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("p",{children:"系统检测到您申请新增的单位已存在,请确认是否为该单位?"}),(0,_.jsx)(te.Z,{columns:[{title:"学校/单位",dataIndex:"name"},{title:"用户数",width:150,dataIndex:"users_count"}],dataSource:[a()({},v)],pagination:!1})]}),onOk:function(){var e=u()(s()().mark((function e(){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r(i);case 2:h.destroy(),t({type:"newCourse/setActionTabs",payload:{}});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),onCancel:function(){h.destroy()}}),e.abrupt("return");case 7:t({type:"newCourse/setActionTabs",payload:{}}),0==v.status&&(A.ZP.success("新增发布单位成功!"),r(i));case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,_.jsx)(j.Z,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:"NewCourse-AppplySchool"===n.actionTabs.key,title:"申请发布单位",width:"600px",footer:null,children:(0,_.jsxs)(w.Z,{className:pe,form:d,labelCol:{span:4},wrapperCol:{span:20},onFinish:v,children:[(0,_.jsx)(w.Z.Item,{label:"发布单位:",name:"name",rules:[{required:!0,message:"请输入学校或工作单位"}],children:(0,_.jsx)(m.Z,{placeholder:"请输入发布单位"})}),(0,_.jsxs)("div",{className:"".concat(ue," ").concat(ve),children:[(0,_.jsx)("div",{children:"示例:"}),(0,_.jsxs)("div",{className:de,children:[(0,_.jsxs)("div",{children:[(0,_.jsx)(re.Z,{style:{color:"rgb(82, 196, 26)"}}),(0,_.jsx)("span",{className:"font14 ml5",children:"正确示例:数据结构"})]}),(0,_.jsxs)("div",{children:[(0,_.jsx)(se.Z,{style:{color:"red"}}),(0,_.jsxs)("span",{className:"font14 ml5",children:["错误示例:数据结构",oe()().format("YYYY"),"春"]})]})]})]}),(0,_.jsx)(w.Z.Item,{label:"地区:",name:"city",children:(0,_.jsx)(ae.Z,{allowClear:!0,size:"middle",options:ce.P,placeholder:"请选择所在地",showSearch:{matchInputWidth:!0,filter:ge}})}),(0,_.jsx)(w.Z.Item,{label:"详细地址:",name:"address",children:(0,_.jsx)(m.Z,{placeholder:"请填写完整的地址信息"})}),(0,_.jsx)(w.Z.Item,{label:"说明:",name:"remarks",children:(0,_.jsx)(me,{placeholder:"再次说明特别情况(选填)"})}),(0,_.jsx)("div",{className:he,children:(0,_.jsxs)(w.Z.Item,{children:[(0,_.jsx)(E.ZP,{className:"mr5",size:"middle",onClick:function(){t({type:"newCourse/setActionTabs",payload:{}})},children:"取消"}),(0,_.jsx)(E.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:l["newCourse/appplySchool"],children:"保存"})]})})]})})})),xe=l(28877),we=l(98382),Ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYIAAAAoCAYAAADzCv21AAAAAXNSR0IArs4c6QAAApFJREFUeF7t3TFO42AQgFEiQSIKKrgEiJqb0HI4Wm5CjeASUFGgBArkSInixPY/rWfetqHIPI80+tjdZPHw9HH9e/6zOvOHAAECBFIJrL+Xn+8v95vWUIu7x7fl6mpz0/pBrxMgQIDAvAQu/i7Xr8+3X613veh+QBW0mLxOgACBeQpEqmB7CFTBPB+wd02AAIGWQKQKtodAFbQovU6AAIH5CrSqYH8IVMF8H7J3ToAAgSmBVhXsD4EqsEgECBDIKzBVBb1DoAryLoHJCBCoLTBVBb1DoApqL4rpCRDILTBWBSeHQBXkXgTTESBQV2CsCk4OgSqouyQmJ0Agv8BQFQweAlWQfxlMSIBATYGhKhg8BKqg5oKYmgCBGgLHVTB6CFRBjYUwJQEC9QSOq2D0EKiCesthYgIE6ggcVsHkIVAFdZbCpAQI1BI4rILJQ6AKai2GaQkQqCWwq4LmIVAFtRbDtAQI1BHYVUHzEKiCOkthUgIE6gl0VRA6BKqg3nKYmACBGgJdFTgENZ61KQkQIDAoED4EvsrSBhEgQCCnQOhXQ34tlPPhm4oAAQLhvyxWA5aFAAECOQVC/3xUDeR8+KYiQIBA+D+UqQHLQoAAgZwCoY+YUAM5H76pCBAgEP7QOTVgWQgQIJBTIPQx1Gog58M3FQECBMJfTKMGLAsBAgRyCoS+qlIN5Hz4piJAgED4y+vVgGUhQIBAToGhGugm7X3WkBrI+fBNRYAAgbEaODkEasCyECBAIKfAWA30DoEayPnwTUWAAIGpGugdAjVgWQgQIJBTYKoG9odADeR8+KYiQIBAqwb2h0ANWBYCBAjkFGjVwPYQqIGcD99UBAgQiNTA9hCoActCgACBnAKRGugm/wceYDXmz1T+uAAAAABJRU5ErkJggg==",je="data:image/png;base64,iVBORw0KGgoAAAANSUh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T2BFmewWgvObZlrHmJ5DjIyHfJ/MNtLQw8oKZSYbX6CHRgUBkG+FaWzbvBQ/MUxAeJe+q7ruLTqUhCIn8z/jETi7MBFQh6NlAvMTwQZYXUEXpsDQXt0quPYD2PoBZ8oTN1Cj1/WH0ESPaYzRR6WX0EJSWonI+q+jSQX7HoF71cVNWIzySrVBkBZ0ZD/FvBbKrm3tBHkGUDPRDobKCQeZh2uIHgnltMYKTOblxVvtA4SZKxrOcRiG2tktQyY1xHfeFeKwRU5TPie5TWT46Pjq/SX0nPXcVWxUn8GjvghWyjz8PJcI2a6zngsCuafY8z9Dw7uJDNo20iFc19LrO7BWDwfL58tsKGy88ITCHGLFF3wdt+qDjgz3Od/5Xx/yB9BLft4fmnT/7ZQEPluTX08egbOM4GWsilOuf5OurVR3C2MTRuauSF2xNN+waOx4f0YUBWxCrvgjLmspqGkIq+9Lb/mLhRlXYaw3mTU4giWs8jUMLFMPvsbRrKWjHZ8bryYe7qIwBx8Cb8o5NdUeyz/nVxfNy+dO7J1HHRs48SiUbZwJkRfPzy9XHfbtQ3QKrCdL96Cn71EXjVVb2iKqpIYjLF22M4dgcRWsN2Jfapiqe2bhQ4AoVd/izju6raDWh+lYivyifrqFcfweojcLJKtwQzwWR2s8sQn9/w8whu222YDZRA8EurFMKMvThneBfMrnRF3nL6l6qW2UObLL3MUrT1PIIm4HVW0B1JKxGlXvUORn2aFASOLGiQJ8X165CGA1AYQ3FTY/mi1UdgVapkZQKB1UfAthD8mOxd4V+LLA4UMV4Jn9Vn7OcH4yfZzBz+9+118/sGFEH8+5ffAFSZ6f9GDkA3AAAAAElFTkSuQmCC",ye=l.p+"static/shiyong.3f0aff1d.png",Be=l(42141),Ce=l(48486),Se=l(93697),ke=["user","newCourse","globalSetting","loading","dispatch"],Ne=m.Z.TextArea,De=(b.Z.TreeNode,x.default.Option),Te=(0,g.connect)((function(e){var n=e.user,l=e.newCourse,t=e.loading;return{user:n,newCourse:l,globalSetting:e.globalSetting,loading:t.effects}}))((function(e){e.user,e.newCourse;var n,l,t,i,r,c,d,v,b,x,z,M,W,H,I,G,K,U,q,V,J,Q,X,Y,$,ee,ne,te,ae,ie,oe,re,se,ce,ue,de,pe,ve,he,fe,ge,me,Te,Ee,Pe,Re,Fe,Ze,Oe,Le,ze,Me,We,He,Ie,Ge,Ke,Ue,qe,Ve,Je,Qe,Xe,Ye,_e,$e,en,nn,ln,tn,an,on,rn,sn,cn,un,dn,pn,vn,hn,fn,gn,mn,bn,xn,wn=e.globalSetting,An=e.loading,jn=e.dispatch,yn=(h()(e,ke),(0,g.useSearchParams)()),Bn=p()(yn,1)[0],Cn=(0,g.useParams)(),Sn=w.Z.useForm(),kn=p()(Sn,1)[0],Nn=(0,f.useState)({}),Dn=p()(Nn,2),Tn=Dn[0],En=Dn[1],Pn=(0,f.useState)(),Rn=p()(Pn,2),Fn=Rn[0],Zn=Rn[1],On=(0,f.useRef)(),Ln=(0,f.useState)(!0),zn=p()(Ln,2),Mn=zn[0],Wn=zn[1],Hn=(0,f.useState)(!1),In=p()(Hn,2),Gn=In[0],Kn=In[1],Un=(0,f.useState)(),qn=p()(Un,2),Vn=qn[0],Jn=qn[1],Qn=(0,f.useState)(),Xn=p()(Qn,2),Yn=Xn[0],_n=Xn[1],$n=(0,f.useState)(!0),el=p()($n,2),nl=el[0],ll=el[1],tl=(0,f.useState)(!1),al=p()(tl,2),il=al[0],ol=al[1],rl=(0,f.useState)(!1),sl=p()(rl,2),cl=sl[0],ul=sl[1],dl=(0,f.useState)(-1),pl=p()(dl,2),vl=pl[0],hl=pl[1],fl=(0,f.useState)(!0),gl=p()(fl,2),ml=gl[0],bl=gl[1],xl=(0,f.useState)([]),wl=p()(xl,2),Al=wl[0],jl=wl[1],yl=(0,f.useState)([]),Bl=p()(yl,2),Cl=Bl[0],Sl=Bl[1],kl=(0,f.useState)(!1),Nl=p()(kl,2),Dl=Nl[0],Tl=Nl[1],El=(0,f.useState)(!1),Pl=p()(El,2),Rl=Pl[0],Fl=Pl[1],Zl=(0,f.useState)(!1),Ol=p()(Zl,2),Ll=Ol[0],zl=Ol[1],Ml=w.Z.useForm(),Wl=p()(Ml,1)[0],Hl=(0,f.useRef)(),Il=(0,f.useState)({}),Gl=p()(Il,2),Kl=Gl[0],Ul=Gl[1],ql=(0,f.useState)(!1),Vl=p()(ql,2),Jl=Vl[0],Ql=Vl[1],Xl=(0,f.useState)(!1),Yl=p()(Xl,2),_l=Yl[0],$l=Yl[1],et=(0,f.useState)(!1),nt=p()(et,2),lt=nt[0],tt=nt[1];(0,f.useEffect)((function(){return function(){window.clearInterval(Hl.current)}}),[]);var at=function(){var e=u()(s()().mark((function e(){var n,l,t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/subject_generations/get.json",{method:"get"});case 2:0==(null==(n=e.sent)?void 0:n.status)&&(Ul(null==n?void 0:n.data),1!=(null==n||null===(l=n.data)||void 0===l?void 0:l.state)&&-1!=(null==n||null===(t=n.data)||void 0===t?void 0:t.state)||window.clearInterval(Hl.current));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),it=function(){var e=u()(s()().mark((function e(){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/subject_generations/get_file.json",{method:"get"});case 2:0==(null==(n=e.sent)?void 0:n.status)&&Wl.setFieldValue("file_ids",(0,we.z)(null==n?void 0:n.data));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ot=(0,f.useState)([]),rt=p()(ot,2),st=rt[0],ct=rt[1],ut=(0,f.useState)(!1),dt=p()(ut,2),pt=dt[0],vt=dt[1],ht=st.length>0&&st.length<4,ft=(0,f.useState)(1),gt=p()(ft,2),mt=gt[0],bt=gt[1],xt=(0,f.useState)([]),wt=p()(xt,2),At=wt[0],jt=wt[1],yt=(0,f.useState)([]),Bt=p()(yt,2),Ct=Bt[0],St=Bt[1];(0,f.useEffect)((function(){var e;kt(),Nt(),On.current=Cn.pathId,Zn(!!On.current),(0,Z.Dk)(null==wn||null===(e=wn.setting)||void 0===e?void 0:e.name),kn.setFieldsValue({learning_notes_title:"课程须知"}),On.current&&Tt()}),[]);var kt=function(){var e=u()(s()().mark((function e(){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});case 2:n=e.sent,jt(n.disciplines);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Nt=function(){var e=u()(s()().mark((function e(){var n;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return bl(!0),e.next=3,jn({type:"newCourse/getSchoolOption",payload:{display_aliases:!0}});case 3:n=e.sent,bl(!1),jl(null==n?void 0:n.schools),Sl(null==n?void 0:n.schools);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Dt=function(){Bn.get("username")?g.history.push("/users/".concat(Bn.get("username"),"/paths")):g.history.push(Fn?"/paths/".concat(On.current):"/paths")},Tt=function(){var e=u()(s()().mark((function e(){var n,l,t,a,i,r,c,u,d,p,v,h,f,g;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,jn({type:"newCourse/getEditCourseData",payload:{id:On.current}});case 2:(n=e.sent)&&(u={name:n.name,name_en:n.name_en,intro:n.description,content:null==n||null===(l=n.toast)||void 0===l?void 0:l.content,notice:n.learning_notes,school_id:null==n?void 0:n.school,learning_notes_title:n.learning_notes_title||"课程须知"},n.disciplines&&n.disciplines.length>0&&St(n.disciplines),kn.setFieldsValue(u),ul(null==n||null===(t=n.toast)||void 0===t?void 0:t.is_open),hl(null==n||null===(a=n.toast)||void 0===a?void 0:a.open_num),Wn(null==n?void 0:n.cust_seq),Kn(null==n?void 0:n.show_spoc),ol(null==n?void 0:n.show_history),Fl(null==n?void 0:n.show_course_section),Tl(null==n?void 0:n.allow_download),ll(null==n?void 0:n.show_tag),vt(null==n?void 0:n.allow_set_subject_summary),(null==n?void 0:n.show_chapter)&&st.push("chapter"),(null==n?void 0:n.show_charts)&&st.push("charts"),(null==n?void 0:n.show_cert_apply)&&st.push("cert_apply"),(null==n?void 0:n.show_knowledge_graph)&&st.push("knowledge_graph"),null!=n&&n.show_chapter&&null!=n&&n.show_charts&&null!=n&&n.show_cert_apply&&null!=n&&n.show_knowledge_graph&&st.push("all"),ct(o()(st)),(null==n||null===(i=n.attachments)||void 0===i?void 0:i.length)>0&&Jn([{uid:null==n||null===(d=n.attachments)||void 0===d||null===(d=d[0])||void 0===d?void 0:d.id,name:null==n||null===(p=n.attachments)||void 0===p||null===(p=p[0])||void 0===p?void 0:p.title,response:{id:null==n||null===(v=n.attachments)||void 0===v||null===(v=v[0])||void 0===v?void 0:v.id}}]),(null==n||null===(r=n.attachments_b)||void 0===r?void 0:r.length)>0&&_n([{uid:null==n||null===(h=n.attachments_b)||void 0===h||null===(h=h[0])||void 0===h?void 0:h.id,name:null==n||null===(f=n.attachments_b)||void 0===f||null===(f=f[0])||void 0===f?void 0:f.title,response:{id:null==n||null===(g=n.attachments_b)||void 0===g||null===(g=g[0])||void 0===g?void 0:g.id}}]),En({name:n.name,intro:n.description,notice:n.learning_notes,content:null==n||null===(c=n.toast)||void 0===c?void 0:c.content}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Et=function(){var e=u()(s()().mark((function e(n){var l,t,i,o,r,c,u,d,p,v,h,f,m,b,x;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(i=n||{}).name,r=i.intro,c=i.notice,u=i.name_en,d=i.learning_notes_title,p=i.sub_discipline_ids,v=i.school_id,h=Fn?"newCourse/editCourse":"newCourse/submitCourse",f=!1,m=null,Al.map((function(e){v===e.name&&(f=!0,m=e.id)})),f){e.next=7;break}return e.abrupt("return",A.ZP.error("未找到包含'".concat(v,"'的发布单位")));case 7:return b={id:On.current,name:o,name_en:u,description:r,learning_notes:c,cust_seq:Mn,show_spoc:Gn,school_id:m,show_tag:nl,show_history:il,show_course_section:Rl,allow_download:Dl,learning_notes_title:d,attachment_ids:[null==Vn||null===(l=Vn[0])||void 0===l||null===(l=l.response)||void 0===l?void 0:l.id],attachment_ids_b:[null==Yn||null===(t=Yn[0])||void 0===t||null===(t=t.response)||void 0===t?void 0:t.id],sub_discipline_ids:p,subject_toast_attributes:{is_open:cl,open_num:vl,content:n.content}},pt&&(b.show_chapter=null==st?void 0:st.includes("chapter"),b.show_charts=null==st?void 0:st.includes("charts"),b.show_cert_apply=null==st?void 0:st.includes("cert_apply"),b.show_knowledge_graph=null==st?void 0:st.includes("knowledge_graph")),e.next=11,jn({type:h,payload:a()({},b)});case 11:(null==(x=e.sent)?void 0:x.subject_id)&&g.history.push("/paths/".concat(x.subject_id));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,_.jsx)("div",{className:F.wrap,children:(0,_.jsxs)("div",{className:F.bg,children:[(0,_.jsxs)("div",{className:F.crumbs,children:[(0,_.jsx)("span",{children:"实践课程"}),(0,_.jsx)("i",{className:"iconfont icon-zhankai1"}),(0,_.jsxs)("b",{children:[Fn?"编辑":"创建","实践课程"]})]}),(0,_.jsxs)("div",{className:F.titleWrap,children:[(0,_.jsxs)("span",{children:[Fn?"编辑":"创建","实践课程"]}),(0,_.jsx)("b",{onClick:Dt,children:"返回"})]}),!Fn&&(0,_.jsx)(Ce.tp,{style:{marginTop:"20px"},dataSource:[{name:"手动创建",id:1},{name:"智能创建",id:2}],value:mt,onChange:function(){var e=u()(s()().mark((function e(n){var l,t,a,i;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(bt(n),1!=n){e.next=6;break}window.clearInterval(Hl.current),Wl.resetFields(),e.next=11;break;case 6:return it(),e.next=9,(0,L.ZP)("/api/subject_generations/get.json",{method:"get"});case 9:0==(null==(l=e.sent)?void 0:l.status)&&(Ul(null==l?void 0:l.data),1!=(null==l||null===(t=l.data)||void 0===t?void 0:t.state)&&-1!=(null==l||null===(a=l.data)||void 0===a?void 0:a.state)||window.clearInterval(Hl.current),0==(null==l||null===(i=l.data)||void 0===i?void 0:i.state)&&(Hl.current=setInterval((function(){at()}),1e3)));case 11:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()}),1==mt&&(0,_.jsxs)(w.Z,{form:kn,className:F.formWrap,scrollToFirstError:!0,layout:"vertical",colon:!1,onValuesChange:function(){var e=kn.getFieldsValue();"school_id"in e&&Sl(Al.filter((function(n){var l,t;return-1!==(null==n||null===(l=n.name)||void 0===l||null===(l=l.toUpperCase())||void 0===l?void 0:l.indexOf(null==e||null===(t=e.school_id)||void 0===t?void 0:t.toUpperCase()))}))),En(a()({},e))},onFinish:Et,children:[(0,_.jsxs)("div",{className:F.fieldWrap,children:[(0,_.jsx)(w.Z.Item,{extra:(0,_.jsx)("div",{className:"tr c-grey-333 font12 mt3",children:"".concat((null===(n=Tn.name)||void 0===n?void 0:n.length)||0,"/60")}),name:"name",label:"实践课程名称",rules:[{required:!0,message:"请输入实践课程名称"}],children:(0,_.jsx)(Ne,{maxLength:60,placeholder:"例如:大学计算机基础 —— 计算思维"})}),(0,_.jsx)(w.Z.Item,{style:{marginTop:"-24px"},name:"name_en",label:"英文课程名称",extra:(0,_.jsx)("div",{className:"tr c-grey-333 font12 mt3",children:"".concat((null===(l=Tn.name_en)||void 0===l?void 0:l.length)||0,"/200")}),rules:[{message:"请输入英文课程名称"}],children:(0,_.jsx)(Ne,{maxLength:200,placeholder:"College Computer Fundamentals - Computational Thinking"})}),(0,_.jsx)(w.Z.Item,{name:"sub_discipline_ids",label:(0,_.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",width:1200},children:[(0,_.jsx)("div",{children:"方向&课程"}),(0,_.jsxs)("div",{style:{color:"#9096A3",position:"relative",left:12},children:["没有合适的方向&课程?",(0,_.jsx)("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:function(){return zl(!0)},children:"联系教研助理"})]})]}),style:{marginTop:"-24px"},children:(0,_.jsx)(le,{defaultValue:Ct,dataSource:At,onChange:function(e){return kn.setFieldsValue({sub_discipline_ids:e})}})}),(0,_.jsx)(w.Z.Item,{label:"发布单位",name:"school_id",wrapperCol:{span:24},extra:!ml&&Tn.school_id&&!(null!=Al&&Al.find((function(e){return e.name===Tn.school_id})))&&(0,_.jsx)("div",{className:F.schoolHintWrap,children:(0,_.jsxs)("span",{className:F.colorCDCDCD,children:["未找到包含“",Tn.school_id,"”的发布单位,如有需要,请",(0,_.jsx)("span",{style:{color:"blue",cursor:"pointer"},onClick:function(){var e,n;j.Z.info({title:"联系平台运营",width:400,icon:null,centered:!0,content:(0,_.jsxs)("div",{style:{textAlign:"center"},children:[(0,_.jsxs)("div",{style:{textAlign:"left"},children:["请扫码或搜索加入头歌官方交流QQ群:",null==wn||null===(e=wn.setting)||void 0===e?void 0:e.homepage_tea_qq_number,",联系群内的运营进行咨询和申请新增学校名称。"]}),(0,_.jsx)("img",{src:"".concat(O.Z.IMG_SERVER,"/").concat(null==wn||null===(n=wn.setting)||void 0===n?void 0:n.homepage_tea_qq_qrcode_url),style:{width:"170px",height:"170px",marginTop:"20px"}})]}),okText:"我知道了"})},children:"联系平台运营"}),"申请新增"]})}),rules:[{required:!0,message:"请输入发布单位"}],children:(0,_.jsx)(y.Z,{placeholder:"请输入发布单位",showSearch:!0,size:"large",children:Cl.map((function(e,n){return(0,_.jsx)(De,{value:e.name,children:e.name},n)}))})})]}),(0,_.jsx)("div",{className:F.mdWrap,children:(0,_.jsx)(w.Z.Item,{name:"intro",label:"简介",rules:[{required:!0,message:"请输入实践课程的简介"},{whitespace:!0,message:"请输入实践课程的简介"},{max:65e3,message:"实践课程的简介最大限制65000个字符"}],children:(0,_.jsx)(R.Z,{watch:!0,defaultValue:Tn.intro})})}),(0,_.jsxs)("div",{className:F.mdWrap,children:[(0,_.jsxs)(B.Z,{align:"top",className:"mb10 mt10",children:[(0,_.jsx)(C.Z,{children:(0,_.jsx)("span",{className:"c-red mr10",children:"*"})}),(0,_.jsx)(C.Z,{flex:"1",children:(0,_.jsx)(w.Z.Item,{name:"learning_notes_title",label:"",style:{marginBottom:0},rules:[{required:!0,message:"请输课程须知标题"},{max:15,message:"请输课程须知标题最大限制15个字符"}],children:(0,_.jsx)(m.Z,{style:{height:38},placeholder:"请输入"})})})]}),(0,_.jsx)(w.Z.Item,{name:"notice",label:"",rules:[{required:!0,message:"请输入实践课程的课程须知"},{whitespace:!0,message:"请输入实践课程的课程须知"},{max:65e3,message:"实践课程的课程须知最大限制65000个字符"}],children:(0,_.jsx)(R.Z,{insertTemp:"1",watch:!0,defaultValue:Tn.notice})})]}),(0,_.jsxs)("div",{className:F.mdWrap,children:[(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,_.jsx)(S.Z,{checked:cl,style:{marginRight:11,minWidth:32},onChange:function(e){ul(e)}}),(0,_.jsxs)("span",{className:F.spanText,children:["课程公告",(0,_.jsx)("span",{children:"(支持老师自定义公告内容,以弹框形式提醒课程的学习用户)"})]})]}),cl&&(0,_.jsx)(w.Z.Item,{style:{marginTop:10},name:"content",label:"",rules:[{required:!0,message:"请输入实践课程的课程提示"},{max:1e4,message:"实践课程的课程提示最大限制10000个字符"}],children:(0,_.jsx)(R.Z,{insertTemp:"1",watch:!0,defaultValue:Tn.content})}),cl&&(0,_.jsxs)("div",{style:{marginTop:20,borderBottom:"1px solid #DBDCE0",paddingBottom:7},children:[(0,_.jsx)("label",{style:{color:"#000",marginRight:10},children:"提示次数"}),(0,_.jsxs)(k.ZP.Group,{value:vl,onChange:function(e){hl(e.target.value)},children:[(0,_.jsx)(k.ZP,{className:"c-black",value:-1,children:"每次"}),(0,_.jsx)(k.ZP,{className:"ml20 c-black",value:1,children:"一次"})]})]})]}),(0,_.jsxs)("div",{className:F.mdWrap,style:{marginTop:25},children:[(0,_.jsx)(N.Z,{style:{marginLeft:pt?"28px":"0"},checked:Mn,onChange:function(e){Wn(null==e?void 0:e.target.checked)},children:(0,_.jsxs)("span",{className:F.spanText,children:["展示默认章节序号",(0,_.jsx)("span",{children:"(选中,则为章节下所有项目添加排序编号)"})]})}),(0,_.jsx)("br",{}),(0,_.jsx)(N.Z,{style:{marginTop:"10px",marginLeft:pt?"28px":"0"},checked:Gn,onChange:function(e){return Kn(null==e?void 0:e.target.checked)},children:(0,_.jsxs)("span",{className:F.spanText,children:["自选并展示SPOC课堂",(0,_.jsx)("span",{children:"(选中,则在教学团队下方添加SPOC课堂模块,团队成员可管理模块中课堂的展示)"})]})}),(0,_.jsx)("br",{}),(0,_.jsx)(N.Z,{style:{marginTop:"10px",marginLeft:pt?"28px":"0"},checked:nl,onChange:function(e){return ll(null==e?void 0:e.target.checked)},children:(0,_.jsxs)("span",{className:F.spanText,children:["展示技术标签模块",(0,_.jsx)("span",{children:"(选中,则在教学团队下方添加技术标签模块)"})]})}),(0,_.jsx)("br",{}),(0,_.jsx)(N.Z,{style:{marginTop:"10px",marginLeft:pt?"28px":"0"},checked:il,onChange:function(e){return ol(null==e?void 0:e.target.checked)},children:(0,_.jsxs)("span",{className:F.spanText,children:["展示历史课堂模块",(0,_.jsx)("span",{children:"(选中,则在教学团队下方添加历史课堂模块,团队成员可管理模块中课堂的展示)"})]})}),(0,_.jsx)("br",{}),(0,_.jsx)(N.Z,{style:{marginTop:"10px",marginLeft:pt?"28px":"0"},checked:Dl,onChange:function(e){return Tl(null==e?void 0:e.target.checked)},children:(0,_.jsxs)("span",{className:F.spanText,children:["允许下载教学课件",(0,_.jsx)("span",{children:"(选中,则允许学习用户下载课程章节中上传的教学课件)"})]})}),(0,_.jsx)("br",{}),(0,_.jsx)(N.Z,{style:{marginTop:"10px",marginLeft:pt?"28px":"0"},checked:Rl,onChange:function(e){return Fl(null==e?void 0:e.target.checked)},children:(0,_.jsxs)("span",{className:F.spanText,children:["默认展开课程小节内容",(0,_.jsx)("span",{children:"(选中,则用户在进入是将课程详情页面时,默认展开所有小节内容)"})]})}),(0,_.jsx)("br",{}),pt&&(0,_.jsx)(D.Z,{style:{marginTop:"10px"},showIcon:!1,className:F.tree,defaultExpandAll:!0,treeData:[{title:"展示课程概要(选中,则默认展示所有概览模块)",key:"all",children:[{title:"展示课程章节",key:"chapter"},{title:"展示排行榜",key:"charts"},{title:"展示证书申请",key:"cert_apply"},{title:"展示知识图谱",key:"knowledge_graph"}]}],onCheck:function(e,n){!function(e,n){ct(e)}(e)},titleRender:function(e){return(0,_.jsx)(N.Z,{checked:null==st?void 0:st.includes(e.key),indeterminate:"all"===e.key&&ht,onChange:function(n){var l=null==st?void 0:st.indexOf(e.key);if(l>-1)if("all"===e.key)st.splice(0);else{st.splice(l,1);var t=null==st?void 0:st.indexOf("all");t>-1&&st.splice(t,1)}else"all"===e.key?st.splice(0,st.length,"all","chapter","charts","cert_apply","knowledge_graph"):(st.push(e.key),st.length>=4&&(null==st||!st.includes("all"))&&st.push("all"));console.log("checkedValueList--",st),ct(o()(st))},children:e.title})}}),(0,_.jsxs)("div",{className:"mt10",children:[(0,_.jsx)("div",{className:"c-black mb10",children:"自定义顶部背景图"}),(0,_.jsxs)(T.Z,{action:O.Z.API_SERVER+"/api/attachments.json",withCredentials:!0,fileList:Vn,onChange:function(e){var n,l,t=(null==e?void 0:e.file.size)/1024/1024<2;if(null===(n=e.fileList)||void 0===n||!n.length)return!1;t?Jn(null==e||null===(l=e.fileList)||void 0===l?void 0:l.slice(-1)):Jn(o()(Vn))},beforeUpload:function(e){var n="image/jpeg"===e.type||"image/png"===e.type;if(!n)return A.ZP.error("只能上传jpg 或者png图片"),!1;var l=e.size/1024/1024<2;return l?n&&l:(A.ZP.error("文件大小不能大于2m"),!1)},onRemove:function(e){Jn([])},children:[(0,_.jsx)("div",{className:F.aBtn,children:"上传图片"}),(0,_.jsx)("span",{style:{color:"#5F6367",pointerEvents:"none"},children:"(本项非必需。如不上传,则使用系统默认图片;如上传,请选择jpg、png格式,大小不超过2M,建议尺寸1920*240像素)"})]})]}),(0,_.jsxs)("div",{className:"mt10",children:[(0,_.jsx)("div",{className:"c-black mb10",children:"自定义顶部内容图"}),(0,_.jsxs)(T.Z,{action:O.Z.API_SERVER+"/api/attachments.json",withCredentials:!0,fileList:Yn,onChange:function(e){var n,l,t=(null==e?void 0:e.file.size)/1024/1024<2;if(null===(n=e.fileList)||void 0===n||!n.length)return!1;t?_n(null==e||null===(l=e.fileList)||void 0===l?void 0:l.slice(-1)):_n(o()(Yn))},beforeUpload:function(e){var n="image/jpeg"===e.type||"image/png"===e.type;if(!n)return A.ZP.error("只能上传jpg 或者png图片"),!1;var l=e.size/1024/1024<2;return l?n&&l:(A.ZP.error("文件大小不能大于2m"),!1)},onRemove:function(e){_n([])},children:[(0,_.jsx)("div",{className:F.aBtn,children:"上传图片"}),(0,_.jsx)("span",{style:{color:"#5F6367",pointerEvents:"none"},children:"(本项非必需。如不上传,则使用系统默认图片;如上传,请选择jpg、png格式,大小不超过2M,建议尺寸1200*240像素)"})]})]})]}),(0,_.jsxs)("div",{className:F.backgroundFa,children:[(0,_.jsx)("div",{className:F.bBtn,onClick:Dt,children:"取消"}),(0,_.jsx)(E.ZP,{className:F.cBtn,onClick:function(){return kn.submit()},loading:An["newCourse/editCourse"]||An["newCourse/submitCourse"],children:"提交 "})]})]}),2==mt&&(0,_.jsxs)("div",{className:F.add_ai,children:[(0,_.jsx)("div",{style:{margin:"20px 0"},children:"根据您上传的资料自动生成课程简介、课程目标、课程大纲、章节描述、课程资源、知识点、知识图谱等内容"}),(0,_.jsx)(w.Z,{form:Wl,scrollToFirstError:!0,colon:!1,children:(0,_.jsx)(w.Z.Item,{name:"file_ids",children:(0,_.jsx)(we.Z,{accept:".pdf, .docx, .doc, .xlsx, .xls, .txt, .md",maxSize:150,number:99,uploadText:"建议上传课程书籍、课程教学大纲等类似文件",setFileProgress:tt,showFileProgress:!0})})}),(null===(t=[-1,0,1])||void 0===t?void 0:t.includes(null==Kl?void 0:Kl.state))&&(0,_.jsxs)("div",{className:F.paths_content,children:[(0,_.jsxs)("div",{className:F.content_header,children:[(0,_.jsx)("i",{className:"iconfont icon-ziyuanshibie font22 mb10",style:{color:null!==(i=[1,2,3,4,5,6,7,8])&&void 0!==i&&i.includes(null==Kl?void 0:Kl.phase)?"#2a56ca":"#bdbdbd"}}),(0,_.jsx)("i",{className:"iconfont icon-kechengjibenxinxi font22 mb10",style:{color:null!==(r=[2,3,4,5,6,7,8])&&void 0!==r&&r.includes(null==Kl?void 0:Kl.phase)?"#2a56ca":"#bdbdbd"}}),(0,_.jsx)("i",{className:"iconfont icon-kechengneirongziyuan font22 mb10",style:{color:null!==(c=[5,6,7,8])&&void 0!==c&&c.includes(null==Kl?void 0:Kl.phase)?"#2a56ca":"#bdbdbd"}})]}),(0,_.jsxs)("div",{style:{display:"flex",position:"relative"},children:[(0,_.jsxs)("div",{className:F.header_box,style:{left:0},children:[(0,_.jsx)("img",{src:null!==(d=[1,2,3,4,5,6,7,8])&&void 0!==d&&d.includes(null==Kl?void 0:Kl.phase)?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYIAAAAoCAYAAADzCv21AAAAAXNSR0IArs4c6QAAEsNJREFUeF7tXW2OY7cRlOZAQXKEvaJ/r+EcZQ4QYxfIRXKB7AskflVVf5DUjA3boWHY0kivxUf2R1Wzm+/+07//c93qP1d/dbtdzzf32+12Pf99/PP8H76mP95vF34XZLWL8U9FfvvhLjaUfz3GAtfg5c9hjLu43a46lnC8JKqMO5FPv1XnpVxD08Pv6fYec1jnUuaRxy7zrvLHUsCEPV4O+bhGKru853ulZXLkF3njW/G8t7kI5Lt603SqfKhjt3PTvnV/3seYUVkHvA8QYvRXdLTcWxm/6udc/0WnXNlDIVmnVvR/2J6/rmxMbGvD1Hxb1sXJ7uVCdUD34PqJcsfiQ8Auff3n8ZJpw22Ol76P8nQq9DvG1qoevKT/kZ/EdbbyVT+f+k0+OdAf108U+W+3H1/+9fUf7zCj7st7CwS7zs4aBitT6pCuh2qAGYcOaIzZKFNoaM3ZrSvTlrPrzrTKN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0XVKv/0EYzQvMZmKnMxE5fvEWjn+/y3aGX9gwsz203YhwLc3f2TuW8IDqTMmNPz+M2391+/+nsDbZWcPYKK7oVeGkUXb10+l01Cok2I2XboJd786SPw10Ec6ekjOH0Ep4+gZh4AZP3Wdf6/tfxeUVj8rA8KO/ktRQDX7TZjAzEj0A2hz95wOs8jQDYqdIZOUKEHkHjPDGgHEESo2s91Owg8ROwFGKSKV+9m/NbpI4gZQTGmjHHwZxWYaeUNA9u6/D6I65jNZWn2mnSTfvWZyMDgnsdjBKyPEXyprsPZCZuyiCEuAtCnWiJKWqxIWtL/1tH9gvyVPpoX+wjut/uUDVAg4BSHLIirQJVO1xonpWRKczT19NwUAs8WRrea+zGUL6No53kEBIO00iJL4+E61BDARgzzHtPwIiXccDX6VL8/pd3IKs/zCLr5mKDAf4jXwQYZDRp+ugKpPjtTThQE8t0gNlS2B43I73Q1cALf6SOA86Su24+b3zfAPOl2+x8Kb0cOp1E48wAAAABJRU5ErkJggg==":Ae}),(0,_.jsx)("div",{className:F.header_text,style:{color:null!==(v=[1,2,3,4,5,6,7,8])&&void 0!==v&&v.includes(null==Kl?void 0:Kl.phase)?"#fff":"#9096A3"},children:null!==(b=[1,2,3,4,5,6,7,8])&&void 0!==b&&b.includes(null==Kl?void 0:Kl.phase)?"资源识别 已完成":"资源识别"}),(0,_.jsx)("div",{style:{textAlign:"center",width:"386px"},children:(0,_.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOkAAACzCAYAAABsIjtyAAAAAXNSR0IArs4c6QAAIABJREFUeF7svQl0HNd5JvrVraquru5Go7vBJhaBIEFwJyWKIkWRlGmJjCJbUmw5jiVPEslRFtuT2M7J8nJe8s5MZM15b3Iy2fwUz/g5zot1nOQ5oTyKE0+8xIq10JJoiRR3iqsAkBC2xtrorbqq7n3+760CmiBAAiToiDHrHImN7urqqnvvd//t+/9fw83j5ghcpxEQQmgLeWlN0wRdr/a6M713pd8Mv3Ol894tny/oIL5bHur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Ke+BbRA71ssFrOhRCI6Mzo62dHRcc37pUt+VN/XHv3y8eZVqWjfzb25jauyybhhqOIkW+AMbU8PT52fypcv5JKWE4maIhHziykf429nRO4qbtmyXrJiPekSYdaiBaX5vHUYZjnp3OTUsNPX2TxfGJnoSgkYOp4fMHDnOq/clDBfDofPnALWsufy/0XeuawVcpUvDqrARDWxqESAw3y1t27EQYSyqBFf5du8o5cxBD4y8trqtuZkX3tboiVsmpieLZUmZ4oXmiKRUjRmSm2nSCY2+v7eax+Cv90Pf6MaaeP1zuerL74I7a67pKFFi3l3l+f6vb6GsDRWCSxSvRtKr8fj2rFQNPRqMB2yMO+8xBO8F9pe/fJiOFsGVsVURFJEpZJENErgAivEP/N8brFPTk0bd0asNq1QpilqoikR8WD5XkQPzczGRscfuMZAi6u/e4u/8oYy0sZLWBAGNxaW5vPWIgec3chNnhCrNAFDaIZtmcZ5V8NAMkmpuUtC27eAEeSJfk6qtu90oSz37/v7+8Pt7e2RTCZDzp5rii5a7mdZ6vUvvXQuOuebSS/q+8WqW3zg9jXL6vVeq89xpfPcsEYqk0U1SbPQq84baYMR1klq6sWfJfPOOrDiPeO80tJ57/c/qztwQxtp/SYFqJm6J1yYty404vfyzp/V6nrvfa7JHfi5MNIGY72SZ5UOOHj9e3nnNVlC753k3b4DP1dGukQIXL+H9Wt9S3vgvdD23V5m753/ndyBnzsjXXgzFuat7+Wc72S5vPe31+MO/D88wFElofZciQAAAABJRU5ErkJggg==",style:{width:"233px",height:"179px"}})})]}),(0,_.jsxs)("div",{className:F.header_box,style:{left:"380px"},children:[(0,_.jsx)("img",{src:null!==(x=[2,3,4,5,6,7,8])&&void 0!==x&&x.includes(null==Kl?void 0:Kl.phase)?je:Ae}),(0,_.jsx)("div",{className:F.header_text,style:{color:null!==(z=[2,3,4,5,6,7,8])&&void 0!==z&&z.includes(null==Kl?void 0:Kl.phase)?"#fff":"#9096A3"},children:null!==(M=[2,3,4,5,6,7,8])&&void 0!==M&&M.includes(null==Kl?void 0:Kl.phase)?"课程基本信息生成 ".concat(null!==(W=[2,3,4])&&void 0!==W&&W.includes(null==Kl?void 0:Kl.phase)?"进行中":"已完成"):"课程基本信息生成 等待中"}),(0,_.jsx)("div",{className:F.lianjie}),(0,_.jsx)("div",{style:{textAlign:"center"},children:(0,_.jsxs)("div",{className:F.buzou_box,children:[(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(null===(H=[0,1])||void 0===H?void 0:H.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),(null===(I=[2])||void 0===I?void 0:I.includes(null==Kl?void 0:Kl.phase))&&-1!=(null==Kl?void 0:Kl.state)&&(0,_.jsx)(P.Z,{indicator:(0,_.jsx)(Be.Z,{spin:!0}),size:"small",children:(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})}),(null===(G=[2])||void 0===G?void 0:G.includes(null==Kl?void 0:Kl.phase))&&-1==(null==Kl?void 0:Kl.state)&&(0,_.jsx)("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),(null===(K=[3,4,5,6,7,8])||void 0===K?void 0:K.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),(0,_.jsx)("div",{style:{margin:"0 10px",color:null!==(U=[0,1])&&void 0!==U&&U.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(q=[2])&&void 0!==q&&q.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:"课程简介生成"}),(0,_.jsx)("div",{style:{color:null!==(V=[0,1])&&void 0!==V&&V.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(J=[2])&&void 0!==J&&J.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:null!==(Q=[0,1])&&void 0!==Q&&Q.includes(null==Kl?void 0:Kl.phase)?"等待中":null!==(X=[2])&&void 0!==X&&X.includes(null==Kl?void 0:Kl.phase)?-1==(null==Kl?void 0:Kl.state)?"生成失败":"进行中":"已完成"})]}),(0,_.jsx)("div",{style:{width:"2px",height:"30px",background:null!==(Y=[0,1,2])&&void 0!==Y&&Y.includes(null==Kl?void 0:Kl.phase)?"rgba(48,97,208,0.1)":"#83B6FF",marginLeft:"7px"}}),(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(null===($=[0,1,2])||void 0===$?void 0:$.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),(null===(ee=[3])||void 0===ee?void 0:ee.includes(null==Kl?void 0:Kl.phase))&&-1!=(null==Kl?void 0:Kl.state)&&(0,_.jsx)(P.Z,{indicator:(0,_.jsx)(Be.Z,{spin:!0}),size:"small",children:(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})}),(null===(ne=[3])||void 0===ne?void 0:ne.includes(null==Kl?void 0:Kl.phase))&&-1==(null==Kl?void 0:Kl.state)&&(0,_.jsx)("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),(null===(te=[4,5,6,7,8])||void 0===te?void 0:te.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),(0,_.jsx)("div",{style:{margin:"0 10px",color:null!==(ae=[0,1,2])&&void 0!==ae&&ae.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(ie=[3])&&void 0!==ie&&ie.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:"课程目标生成"}),(0,_.jsx)("div",{style:{color:null!==(oe=[0,1,2])&&void 0!==oe&&oe.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(re=[3])&&void 0!==re&&re.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:null!==(se=[0,1,2])&&void 0!==se&&se.includes(null==Kl?void 0:Kl.phase)?"等待中":null!==(ce=[3])&&void 0!==ce&&ce.includes(null==Kl?void 0:Kl.phase)?-1==(null==Kl?void 0:Kl.state)?"生成失败":"进行中":"已完成"})]}),(0,_.jsx)("div",{style:{width:"2px",height:"30px",background:null!==(ue=[0,1,2,3])&&void 0!==ue&&ue.includes(null==Kl?void 0:Kl.phase)?"rgba(48,97,208,0.1)":"#83B6FF",marginLeft:"7px"}}),(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(null===(de=[0,1,2,3])||void 0===de?void 0:de.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),(null===(pe=[4])||void 0===pe?void 0:pe.includes(null==Kl?void 0:Kl.phase))&&-1!=(null==Kl?void 0:Kl.state)&&(0,_.jsx)(P.Z,{indicator:(0,_.jsx)(Be.Z,{spin:!0}),size:"small",children:(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})}),(null===(ve=[4])||void 0===ve?void 0:ve.includes(null==Kl?void 0:Kl.phase))&&-1==(null==Kl?void 0:Kl.state)&&(0,_.jsx)("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),(null===(he=[5,6,7,8])||void 0===he?void 0:he.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),(0,_.jsx)("div",{style:{margin:"0 10px",color:null!==(fe=[0,1,2,3])&&void 0!==fe&&fe.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(ge=[4])&&void 0!==ge&&ge.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:"章节及描述生成"}),(0,_.jsx)("div",{style:{color:null!==(me=[0,1,2,3])&&void 0!==me&&me.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(Te=[4])&&void 0!==Te&&Te.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:null!==(Ee=[0,1,2,3])&&void 0!==Ee&&Ee.includes(null==Kl?void 0:Kl.phase)?"等待中":null!==(Pe=[4])&&void 0!==Pe&&Pe.includes(null==Kl?void 0:Kl.phase)?-1==(null==Kl?void 0:Kl.state)?"生成失败":"进行中":"已完成"}),(null===(Re=[5,6,7,8])||void 0===Re?void 0:Re.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsxs)("div",{style:{marginLeft:"10px",color:"#232B40"},children:["共生成",(0,_.jsx)("span",{style:{color:"#3061D0"},children:null==Kl?void 0:Kl.stage_size}),"个章节"]})]})]})})]}),(0,_.jsxs)("div",{className:F.header_box,style:{left:"760px"},children:[(0,_.jsx)("img",{src:null!==(Fe=[5,6,7,8])&&void 0!==Fe&&Fe.includes(null==Kl?void 0:Kl.phase)?je:Ae}),(0,_.jsx)("div",{className:F.header_text,style:{color:null!==(Ze=[5,6,7,8])&&void 0!==Ze&&Ze.includes(null==Kl?void 0:Kl.phase)?"#fff":"#9096A3"},children:null!==(Oe=[5,6,7,8])&&void 0!==Oe&&Oe.includes(null==Kl?void 0:Kl.phase)?"课程内容资源生成 ".concat(null!==(Le=[5,6,7])&&void 0!==Le&&Le.includes(null==Kl?void 0:Kl.phase)?"进行中":"已完成"):"课程内容资源生成 等待中"}),(0,_.jsx)("div",{className:F.lianjie}),(0,_.jsx)("div",{style:{textAlign:"center"},children:(0,_.jsxs)("div",{className:F.buzou_box,children:[(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(null===(ze=[0,1,2,3,4])||void 0===ze?void 0:ze.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),(null===(Me=[5])||void 0===Me?void 0:Me.includes(null==Kl?void 0:Kl.phase))&&-1!=(null==Kl?void 0:Kl.state)&&(0,_.jsx)(P.Z,{indicator:(0,_.jsx)(Be.Z,{spin:!0}),size:"small",children:(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})}),(null===(We=[5])||void 0===We?void 0:We.includes(null==Kl?void 0:Kl.phase))&&-1==(null==Kl?void 0:Kl.state)&&(0,_.jsx)("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),(null===(He=[6,7,8])||void 0===He?void 0:He.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),(0,_.jsx)("div",{style:{margin:"0 10px",color:null!==(Ie=[0,1,2,3,4])&&void 0!==Ie&&Ie.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(Ge=[5])&&void 0!==Ge&&Ge.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:"知识点生成"}),(0,_.jsx)("div",{style:{color:null!==(Ke=[0,1,2,3,4])&&void 0!==Ke&&Ke.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(Ue=[5])&&void 0!==Ue&&Ue.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:null!==(qe=[0,1,2,3,4])&&void 0!==qe&&qe.includes(null==Kl?void 0:Kl.phase)?"等待中":null!==(Ve=[5])&&void 0!==Ve&&Ve.includes(null==Kl?void 0:Kl.phase)?-1==(null==Kl?void 0:Kl.state)?"生成失败":"进行中":"已完成"}),(null===(Je=[6,7,8])||void 0===Je?void 0:Je.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsxs)("div",{style:{marginLeft:"10px",color:"#232B40"},children:["共生成",(0,_.jsx)("span",{style:{color:"#3061D0"},children:null==Kl?void 0:Kl.resource_size}),"个知识点"]})]}),(0,_.jsx)("div",{style:{width:"2px",height:"30px",background:null!==(Qe=[0,1,2,3,4,5])&&void 0!==Qe&&Qe.includes(null==Kl?void 0:Kl.phase)?"rgba(48,97,208,0.1)":"#83B6FF",marginLeft:"7px"}}),(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(null===(Xe=[0,1,2,3,4,5])||void 0===Xe?void 0:Xe.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),(null===(Ye=[6])||void 0===Ye?void 0:Ye.includes(null==Kl?void 0:Kl.phase))&&-1!=(null==Kl?void 0:Kl.state)&&(0,_.jsx)(P.Z,{indicator:(0,_.jsx)(Be.Z,{spin:!0}),size:"small",children:(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})}),(null===(_e=[6])||void 0===_e?void 0:_e.includes(null==Kl?void 0:Kl.phase))&&-1==(null==Kl?void 0:Kl.state)&&(0,_.jsx)("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),(null===($e=[7,8])||void 0===$e?void 0:$e.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),(0,_.jsx)("div",{style:{margin:"0 10px",color:null!==(en=[0,1,2,3,4,5])&&void 0!==en&&en.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(nn=[6])&&void 0!==nn&&nn.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:"知识点资源生成"}),(0,_.jsx)("div",{style:{color:null!==(ln=[0,1,2,3,4,5])&&void 0!==ln&&ln.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(tn=[6])&&void 0!==tn&&tn.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:null!==(an=[0,1,2,3,4,5])&&void 0!==an&&an.includes(null==Kl?void 0:Kl.phase)?"等待中":null!==(on=[6])&&void 0!==on&&on.includes(null==Kl?void 0:Kl.phase)?-1==(null==Kl?void 0:Kl.state)?"生成失败":"进行中":"已完成"}),(null===(rn=[7,8])||void 0===rn?void 0:rn.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsxs)("div",{style:{marginLeft:"10px",color:"#232B40"},children:["共生成",(0,_.jsx)("span",{style:{color:"#3061D0"},children:null==Kl?void 0:Kl.resource_size}),"个资源"]})]}),(0,_.jsx)("div",{style:{width:"2px",height:"30px",background:null!==(sn=[0,1,2,3,4,5,6])&&void 0!==sn&&sn.includes(null==Kl?void 0:Kl.phase)?"rgba(48,97,208,0.1)":"#83B6FF",marginLeft:"7px"}}),(0,_.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(null===(cn=[0,1,2,3,4,5,6])||void 0===cn?void 0:cn.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),(null===(un=[7])||void 0===un?void 0:un.includes(null==Kl?void 0:Kl.phase))&&-1!=(null==Kl?void 0:Kl.state)&&(0,_.jsx)(P.Z,{indicator:(0,_.jsx)(Be.Z,{spin:!0}),size:"small",children:(0,_.jsx)("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})}),(null===(dn=[7])||void 0===dn?void 0:dn.includes(null==Kl?void 0:Kl.phase))&&-1==(null==Kl?void 0:Kl.state)&&(0,_.jsx)("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),(null===(pn=[8])||void 0===pn?void 0:pn.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsx)("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),(0,_.jsx)("div",{style:{margin:"0 10px",color:null!==(vn=[0,1,2,3,4,5,6])&&void 0!==vn&&vn.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(hn=[7])&&void 0!==hn&&hn.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:"知识图谱生成"}),(0,_.jsx)("div",{style:{color:null!==(fn=[0,1,2,3,4,5,6])&&void 0!==fn&&fn.includes(null==Kl?void 0:Kl.phase)?"#9096A3":null!==(gn=[7])&&void 0!==gn&&gn.includes(null==Kl?void 0:Kl.phase)&&-1==(null==Kl?void 0:Kl.state)?"red":"#83B6FF"},children:null!==(mn=[0,1,2,3,4,5,6])&&void 0!==mn&&mn.includes(null==Kl?void 0:Kl.phase)?"等待中":null!==(bn=[7])&&void 0!==bn&&bn.includes(null==Kl?void 0:Kl.phase)?-1==(null==Kl?void 0:Kl.state)?"生成失败":"进行中":"已完成"}),(null===(xn=[8])||void 0===xn?void 0:xn.includes(null==Kl?void 0:Kl.phase))&&(0,_.jsxs)("div",{style:{marginLeft:"10px",color:"#232B40"},children:["共生成",(0,_.jsx)("span",{style:{color:"#3061D0"},children:null==Kl?void 0:Kl.knowledge_size}),"个知识图谱"]})]})]})})]})]})]}),(0,_.jsx)(P.Z,{spinning:_l,children:(0,_.jsx)("div",{className:0==(null==Kl?void 0:Kl.state)||lt?F.start_style:F.no_start_style,onClick:u()(s()().mark((function e(){var n,l,t,a;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!lt){e.next=3;break}return A.ZP.error("有文件未上传完成,请等文件上传完成后再生成"),e.abrupt("return",!1);case 3:if((0,Se.Ny)()){e.next=6;break}return Ql(!0),e.abrupt("return",!1);case 6:if(-2!=(null==Kl?void 0:Kl.state)&&-1!=(null==Kl?void 0:Kl.state)){e.next=21;break}if($l(!0),l=[],null===(n=Wl.getFieldValue("file_ids"))||void 0===n||n.map((function(e){var n,t;l.push((null==e||null===(n=e.response)||void 0===n?void 0:n.container_id)||(null==e||null===(t=e.response)||void 0===t?void 0:t.id))})),!((null==l?void 0:l.length)>0)){e.next=17;break}return e.next=13,(0,L.ZP)("/api/subject_generations.json",{method:"post",body:{attachment_ids:l}});case 13:0==(null==(t=e.sent)?void 0:t.status)&&(A.ZP.success("开始生成"),at(),Hl.current=setInterval((function(){at()}),1e3)),e.next=18;break;case 17:A.ZP.error("请上传课程资料,建议上传书籍、课程教学大纲等");case 18:$l(!1),e.next=28;break;case 21:if(1!=(null==Kl?void 0:Kl.state)){e.next=28;break}return $l(!0),e.next=25,(0,L.ZP)("/api/subject_generations/finish.json",{method:"post",body:{id:null==Kl?void 0:Kl.id}});case 25:0==(null==(a=e.sent)?void 0:a.status)&&g.history.push("/paths/".concat(null==Kl?void 0:Kl.subject_id)),$l(!1);case 28:case"end":return e.stop()}}),e)}))),children:1==(null==Kl?void 0:Kl.state)?"完成课程创建":0==(null==Kl?void 0:Kl.state)?"课程生成中,请稍后...":-1==(null==Kl?void 0:Kl.state)?"重新生成课程":"开始生成课程"})})]}),Jl&&(0,_.jsx)("div",{style:{width:"100vw",height:"100vh",position:"fixed",top:0,left:0,background:"rgba(0,0,0,.5)",zIndex:200,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,_.jsxs)("div",{style:{width:"500px",height:"515px",textAlign:"center"},children:[(0,_.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABQVJREFUWEfNmXes32MUxj8PagS1QghJiU1pxExsFbUqitoSKzVilEjoHzVj/KEEDYnGbq3aexNiRRGjlMTee8+K432u87u+99ffvPdK7kl+f/3e8bznPec5z3m/oh8WEfMBGwPbAhsCawIrAIvncj8BnwFvAS8CjwMvSPq72+3UzYSIWBE4BjgQ+BZ4FHgOmAN8AhiYzUA9di1gM2A0sDQwHZgqyWM7so4ARsQywFnA3sDVwJWS3uhohxwUEesAhwIHAzcDkyV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oLz2OtMIaWB/zqvtWV/nPLpfmCTogU/Tk++2QpkH7GQG7eUWxVucr9ypPkpBafVdlsrWtAvDXeVpNkGMGtYnb/UgqT/k1sJsKlgrYA7DzgZ+NW6UNKTbZFVBmTcOiF3LULjh/JmM1aS6amPNRSsCbKh5M//JmWj42pjHei+oWtLTXmNZVoedLQkv+30WkPJnyBc+xo1Te5H7K1aE9+V6mngIcexnXGEf5Jcx3ssmybH67rzNE05wO8l9W3niEwMF38nyKBYRKxSzf62bWflFEO3cU8vmueG7tNHghy6j0eVqx66z291aT80HzDrQA7dJ+A6oEPzEb0J2dY+Q2yUnyGsrKufIT7PzxAWsv3+DPEPkKKBQOOiq+AAAAAASUVORK5CYII=",style:{marginLeft:"auto",display:"block",cursor:"pointer",width:"30px",height:"30px"},onClick:function(){Ql(!1)}}),(0,_.jsx)("img",{src:ye,style:{display:"block",marginTop:"-20px",width:"460px",height:"500px"}})]})}),(0,_.jsx)(be,{schoolName:Tn.school_id,onSuccess:function(e){Nt(),En(a()(a()({},kn.getFieldsValue()),{},{school_id:e}))}}),(0,_.jsx)(xe.Z,{open:Ll,onCancel:function(){zl(!1)}})]})})}))},33550:function(e,n,l){"use strict";l.d(n,{P:function(){return t}});var t=[{value:"北京",label:"北京",children:[{value:"东城",label:"东城"},{value:"西城",label:"西城"},{value:"朝阳",label:"朝阳"},{value:"丰台",label:"丰台"},{value:"石景山",label:"石景山"},{value:"海淀",label:"海淀"},{value:"门头沟",label:"门头沟"},{value:"房山",label:"房山"},{value:"通州",label:"通州"},{value:"顺义",label:"顺义"},{value:"昌平",label:"昌平"},{value:"大兴",label:"大兴"},{value:"平谷",label:"平谷"},{value:"怀柔",label:"怀柔"},{value:"密云",label:"密云"},{value:"延庆",label:"延庆"}]},{value:"上海",label:"上海",children:[{value:"崇明",label:"崇明"},{value:"黄浦",label:"黄浦"},{value:"卢湾",label:"卢湾"},{value:"徐汇",label:"徐汇"},{value:"长宁",label:"长宁"},{value:"静安",label:"静安"},{value:"普陀",label:"普陀"},{value:"闸北",label:"闸北"},{value:"虹口",label:"虹口"},{value:"杨浦",label:"杨浦"},{value:"闵行",label:"闵行"},{value:"宝山",label:"宝山"},{value:"嘉定",label:"嘉定"},{value:"浦东",label:"浦东"},{value:"金山",label:"金山"},{value:"松江",label:"松江"},{value:"青浦",label:"青浦"},{value:"南汇",label:"南汇"},{value:"奉贤",label:"奉贤"}]},{value:"广东",label:"广东",children:[{value:"广州",label:"广州"},{value:"深圳",label:"深圳"},{value:"珠海",label:"珠海"},{value:"东莞",label:"东莞"},{value:"中山",label:"中山"},{value:"佛山",label:"佛山"},{value:"惠州",label:"惠州"},{value:"河源",label:"河源"},{value:"潮州",label:"潮州"},{value:"江门",label:"江门"},{value:"揭阳",label:"揭阳"},{value:"茂名",label:"茂名"},{value:"梅州",label:"梅州"},{value:"清远",label:"清远"},{value:"汕头",label:"汕头"},{value:"汕尾",label:"汕尾"},{value:"韶关",label:"韶关"},{value:"顺德",label:"顺德"},{value:"阳江",label:"阳江"},{value:"云浮",label:"云浮"},{value:"湛江",label:"湛江"},{value:"肇庆",label:"肇庆"}]},{value:"江苏",label:"江苏",children:[{value:"南京",label:"南京"},{value:"常熟",label:"常熟"},{value:"常州",label:"常州"},{value:"海门",label:"海门"},{value:"淮安",label:"淮安"},{value:"江都",label:"江都"},{value:"江阴",label:"江阴"},{value:"昆山",label:"昆山"},{value:"连云港",label:"连云港"},{value:"南通",label:"南通"},{value:"启东",label:"启东"},{value:"沭阳",label:"沭阳"},{value:"宿迁",label:"宿迁"},{value:"苏州",label:"苏州"},{value:"太仓",label:"太仓"},{value:"泰州",label:"泰州"},{value:"同里",label:"同里"},{value:"无锡",label:"无锡"},{value:"徐州",label:"徐州"},{value:"盐城",label:"盐城"},{value:"扬州",label:"扬州"},{value:"宜兴",label:"宜兴"},{value:"仪征",label:"仪征"},{value:"张家港",label:"张家港"},{value:"镇江",label:"镇江"}]},{value:"重庆",label:"重庆",children:[{value:"万州",label:"万州"},{value:"涪陵",label:"涪陵"},{value:"渝中",label:"渝中"},{value:"大渡口",label:"大渡口"},{value:"江北",label:"江北"},{value:"沙坪坝",label:"沙坪坝"},{value:"九龙坡",label:"九龙坡"},{value:"南岸",label:"南岸"},{value:"北碚",label:"北碚"},{value:"万盛",label:"万盛"},{value:"双挢",label:"双挢"},{value:"渝北",label:"渝北"},{value:"巴南",label:"巴南"},{value:"黔江",label:"黔江"},{value:"长寿",label:"长寿"},{value:"綦江",label:"綦江"},{value:"潼南",label:"潼南"},{value:"铜梁",label:"铜梁"},{value:"大足",label:"大足"},{value:"荣昌",label:"荣昌"},{value:"壁山",label:"壁山"},{value:"梁平",label:"梁平"},{value:"城口",label:"城口"},{value:"丰都",label:"丰都"},{value:"垫江",label:"垫江"},{value:"武隆",label:"武隆"},{value:"忠县",label:"忠县"},{value:"开县",label:"开县"},{value:"云阳",label:"云阳"},{value:"奉节",label:"奉节"},{value:"巫山",label:"巫山"},{value:"巫溪",label:"巫溪"},{value:"石柱",label:"石柱"},{value:"秀山",label:"秀山"},{value:"酉阳",label:"酉阳"},{value:"彭水",label:"彭水"},{value:"江津",label:"江津"},{value:"合川",label:"合川"},{value:"永川",label:"永川"},{value:"南川",label:"南川"}]},{value:"安徽",label:"安徽",children:[{value:"合肥",label:"合肥"},{value:"安庆",label:"安庆"},{value:"蚌埠",label:"蚌埠"},{value:"亳州",label:"亳州"},{value:"巢湖",label:"巢湖"},{value:"滁州",label:"滁州"},{value:"阜阳",label:"阜阳"},{value:"贵池",label:"贵池"},{value:"淮北",label:"淮北"},{value:"淮化",label:"淮化"},{value:"淮南",label:"淮南"},{value:"黄山",label:"黄山"},{value:"九华山",label:"九华山"},{value:"六安",label:"六安"},{value:"马鞍山",label:"马鞍山"},{value:"宿州",label:"宿州"},{value:"铜陵",label:"铜陵"},{value:"屯溪",label:"屯溪"},{value:"芜湖",label:"芜湖"},{value:"宣城",label:"宣城"}]},{value:"福建",label:"福建",children:[{value:"福州",label:"福州"},{value:"厦门",label:"厦门"},{value:"泉州",label:"泉州"},{value:"漳州",label:"漳州"},{value:"龙岩",label:"龙岩"},{value:"南平",label:"南平"},{value:"宁德",label:"宁德"},{value:"莆田",label:"莆田"},{value:"三明",label:"三明"}]},{value:"甘肃",label:"甘肃",children:[{value:"兰州",label:"兰州"},{value:"嘉峪关",label:"嘉峪关"},{value:"白银",label:"白银"},{value:"定西",label:"定西"},{value:"敦煌",label:"敦煌"},{value:"甘南",label:"甘南"},{value:"金昌",label:"金昌"},{value:"酒泉",label:"酒泉"},{value:"临夏",label:"临夏"},{value:"平凉",label:"平凉"},{value:"天水",label:"天水"},{value:"陇南",label:"陇南"},{value:"武威",label:"武威"},{value:"西峰",label:"西峰"},{value:"张掖",label:"张掖"}]},{value:"广西",label:"广西",children:[{value:"南宁",label:"南宁"},{value:"来宾",label:"来宾"},{value:"百色",label:"百色"},{value:"北海",label:"北海"},{value:"桂林",label:"桂林"},{value:"防城港",label:"防城港"},{value:"贵港",label:"贵港"},{value:"河池",label:"河池"},{value:"贺州",label:"贺州"},{value:"柳州",label:"柳州"},{value:"钦州",label:"钦州"},{value:"梧州",label:"梧州"},{value:"玉林",label:"玉林"}]},{value:"贵州",label:"贵州",children:[{value:"贵阳",label:"贵阳"},{value:"安顺",label:"安顺"},{value:"毕节",label:"毕节"},{value:"都匀",label:"都匀"},{value:"凯里",label:"凯里"},{value:"六盘水",label:"六盘水"},{value:"铜仁",label:"铜仁"},{value:"兴义",label:"兴义"},{value:"玉屏",label:"玉屏"},{value:"遵义",label:"遵义"}]},{value:"海南",label:"海南",children:[{value:"海口",label:"海口"},{value:"儋县",label:"儋县"},{value:"陵水",label:"陵水"},{value:"琼海",label:"琼海"},{value:"三亚",label:"三亚"},{value:"通什",label:"通什"},{value:"万宁",label:"万宁"}]},{value:"河北",label:"河北",children:[{value:"石家庄",label:"石家庄"},{value:"保定",label:"保定"},{value:"北戴河",label:"北戴河"},{value:"沧州",label:"沧州"},{value:"承德",label:"承德"},{value:"丰润",label:"丰润"},{value:"邯郸",label:"邯郸"},{value:"衡水",label:"衡水"},{value:"廊坊",label:"廊坊"},{value:"南戴河",label:"南戴河"},{value:"秦皇岛",label:"秦皇岛"},{value:"唐山",label:"唐山"},{value:"新城",label:"新城"},{value:"邢台",label:"邢台"},{value:"张家口",label:"张家口"}]},{value:"黑龙江",label:"黑龙江",children:[{value:"哈尔滨",label:"哈尔滨"},{value:"北安",label:"北安"},{value:"大庆",label:"大庆"},{value:"大兴安岭",label:"大兴安岭"},{value:"鹤岗",label:"鹤岗"},{value:"黑河",label:"黑河"},{value:"佳木斯",label:"佳木斯"},{value:"鸡西",label:"鸡西"},{value:"牡丹江",label:"牡丹江"},{value:"齐齐哈尔",label:"齐齐哈尔"},{value:"七台河",label:"七台河"},{value:"双鸭山",label:"双鸭山"},{value:"绥化",label:"绥化"},{value:"伊春",label:"伊春"}]},{value:"河南",label:"河南",children:[{value:"郑州",label:"郑州"},{value:"安阳",label:"安阳"},{value:"鹤壁",label:"鹤壁"},{value:"潢川",label:"潢川"},{value:"焦作",label:"焦作"},{value:"济源",label:"济源"},{value:"开封",label:"开封"},{value:"漯河",label:"漯河"},{value:"洛阳",label:"洛阳"},{value:"南阳",label:"南阳"},{value:"平顶山",label:"平顶山"},{value:"濮阳",label:"濮阳"},{value:"三门峡",label:"三门峡"},{value:"商丘",label:"商丘"},{value:"新乡",label:"新乡"},{value:"信阳",label:"信阳"},{value:"许昌",label:"许昌"},{value:"周口",label:"周口"},{value:"驻马店",label:"驻马店"}]},{value:"香港",label:"香港",children:[{value:"香港",label:"香港"},{value:"九龙",label:"九龙"},{value:"新界",label:"新界"}]},{value:"湖北",label:"湖北",children:[{value:"武汉",label:"武汉"},{value:"天门",label:"天门"},{value:"恩施",label:"恩施"},{value:"鄂州",label:"鄂州"},{value:"黄冈",label:"黄冈"},{value:"黄石",label:"黄石"},{value:"荆门",label:"荆门"},{value:"荆州",label:"荆州"},{value:"潜江",label:"潜江"},{value:"十堰",label:"十堰"},{value:"随州",label:"随州"},{value:"武穴",label:"武穴"},{value:"仙桃",label:"仙桃"},{value:"咸宁",label:"咸宁"},{value:"襄阳",label:"襄阳"},{value:"襄樊",label:"襄樊"},{value:"孝感",label:"孝感"},{value:"宜昌",label:"宜昌"}]},{value:"湖南",label:"湖南",children:[{value:"长沙",label:"长沙"},{value:"常德",label:"常德"},{value:"郴州",label:"郴州"},{value:"衡阳",label:"衡阳"},{value:"怀化",label:"怀化"},{value:"吉首",label:"吉首"},{value:"娄底",label:"娄底"},{value:"邵阳",label:"邵阳"},{value:"湘潭",label:"湘潭"},{value:"益阳",label:"益阳"},{value:"岳阳",label:"岳阳"},{value:"永州",label:"永州"},{value:"张家界",label:"张家界"},{value:"株洲",label:"株洲"}]},{value:"江西",label:"江西",children:[{value:"南昌",label:"南昌"},{value:"抚州",label:"抚州"},{value:"赣州",label:"赣州"},{value:"吉安",label:"吉安"},{value:"景德镇",label:"景德镇"},{value:"井冈山",label:"井冈山"},{value:"九江",label:"九江"},{value:"庐山",label:"庐山"},{value:"萍乡",label:"萍乡"},{value:"上饶",label:"上饶"},{value:"新余",label:"新余"},{value:"宜春",label:"宜春"},{value:"鹰潭",label:"鹰潭"}]},{value:"吉林",label:"吉林",children:[{value:"长春",label:"长春"},{value:"吉林",label:"吉林"},{value:"白城",label:"白城"},{value:"白山",label:"白山"},{value:"珲春",label:"珲春"},{value:"辽源",label:"辽源"},{value:"梅河",label:"梅河"},{value:"四平",label:"四平"},{value:"松原",label:"松原"},{value:"通化",label:"通化"},{value:"延吉",label:"延吉"}]},{value:"辽宁",label:"辽宁",children:[{value:"沈阳",label:"沈阳"},{value:"鞍山",label:"鞍山"},{value:"本溪",label:"本溪"},{value:"朝阳",label:"朝阳"},{value:"大连",label:"大连"},{value:"丹东",label:"丹东"},{value:"抚顺",label:"抚顺"},{value:"阜新",label:"阜新"},{value:"葫芦岛",label:"葫芦岛"},{value:"锦州",label:"锦州"},{value:"辽阳",label:"辽阳"},{value:"盘锦",label:"盘锦"},{value:"铁岭",label:"铁岭"},{value:"营口",label:"营口"}]},{value:"澳门",label:"澳门",children:[{value:"澳门",label:"澳门"}]},{value:"内蒙古",label:"内蒙古",children:[{value:"呼和浩特",label:"呼和浩特"},{value:"阿拉善盟",label:"阿拉善盟"},{value:"包头",label:"包头"},{value:"赤峰",label:"赤峰"},{value:"东胜",label:"东胜"},{value:"海拉尔",label:"海拉尔"},{value:"集宁",label:"集宁"},{value:"临河",label:"临河"},{value:"通辽",label:"通辽"},{value:"乌海",label:"乌海"},{value:"乌兰浩特",label:"乌兰浩特"},{value:"锡林浩特",label:"锡林浩特"}]},{value:"宁夏",label:"宁夏",children:[{value:"银川",label:"银川"},{value:"固源",label:"固源"},{value:"石嘴山",label:"石嘴山"},{value:"吴忠",label:"吴忠"}]},{value:"青海",label:"青海",children:[{value:"西宁",label:"西宁"},{value:"德令哈",label:"德令哈"},{value:"格尔木",label:"格尔木"},{value:"共和",label:"共和"},{value:"海东",label:"海东"},{value:"海晏",label:"海晏"},{value:"玛沁",label:"玛沁"},{value:"同仁",label:"同仁"},{value:"玉树",label:"玉树"}]},{value:"山东",label:"山东",children:[{value:"济南",label:"济南"},{value:"滨州",label:"滨州"},{value:"兖州",label:"兖州"},{value:"德州",label:"德州"},{value:"东营",label:"东营"},{value:"菏泽",label:"菏泽"},{value:"济宁",label:"济宁"},{value:"莱芜",label:"莱芜"},{value:"聊城",label:"聊城"},{value:"临沂",label:"临沂"},{value:"蓬莱",label:"蓬莱"},{value:"青岛",label:"青岛"},{value:"曲阜",label:"曲阜"},{value:"日照",label:"日照"},{value:"泰安",label:"泰安"},{value:"潍坊",label:"潍坊"},{value:"威海",label:"威海"},{value:"烟台",label:"烟台"},{value:"枣庄",label:"枣庄"},{value:"淄博",label:"淄博"}]},{value:"山西",label:"山西",children:[{value:"太原",label:"太原"},{value:"吕梁",label:"吕梁"},{value:"长治",label:"长治"},{value:"大同",label:"大同"},{value:"候马",label:"候马"},{value:"晋城",label:"晋城"},{value:"离石",label:"离石"},{value:"临汾",label:"临汾"},{value:"宁武",label:"宁武"},{value:"朔州",label:"朔州"},{value:"忻州",label:"忻州"},{value:"阳泉",label:"阳泉"},{value:"榆次",label:"榆次"},{value:"晋中",label:"晋中"},{value:"运城",label:"运城"}]},{value:"陕西",label:"陕西",children:[{value:"西安",label:"西安"},{value:"安康",label:"安康"},{value:"宝鸡",label:"宝鸡"},{value:"汉中",label:"汉中"},{value:"渭南",label:"渭南"},{value:"商州",label:"商州"},{value:"绥德",label:"绥德"},{value:"铜川",label:"铜川"},{value:"咸阳",label:"咸阳"},{value:"延安",label:"延安"},{value:"榆林",label:"榆林"}]},{value:"四川",label:"四川",children:[{value:"成都",label:"成都"},{value:"巴中",label:"巴中"},{value:"达川",label:"达川"},{value:"德阳",label:"德阳"},{value:"都江堰",label:"都江堰"},{value:"峨眉山",label:"峨眉山"},{value:"涪陵",label:"涪陵"},{value:"广安",label:"广安"},{value:"广元",label:"广元"},{value:"九寨沟",label:"九寨沟"},{value:"康定",label:"康定"},{value:"乐山",label:"乐山"},{value:"泸州",label:"泸州"},{value:"马尔康",label:"马尔康"},{value:"绵阳",label:"绵阳"},{value:"眉山",label:"眉山"},{value:"南充",label:"南充"},{value:"内江",label:"内江"},{value:"攀枝花",label:"攀枝花"},{value:"遂宁",label:"遂宁"},{value:"汶川",label:"汶川"},{value:"西昌",label:"西昌"},{value:"雅安",label:"雅安"},{value:"宜宾",label:"宜宾"},{value:"自贡",label:"自贡"},{value:"资阳",label:"资阳"}]},{value:"台湾",label:"台湾",children:[{value:"台北",label:"台北"},{value:"基隆",label:"基隆"},{value:"台南",label:"台南"},{value:"台中",label:"台中"},{value:"高雄",label:"高雄"},{value:"屏东",label:"屏东"},{value:"南投",label:"南投"},{value:"云林",label:"云林"},{value:"新竹",label:"新竹"},{value:"彰化",label:"彰化"},{value:"苗栗",label:"苗栗"},{value:"嘉义",label:"嘉义"},{value:"桃园",label:"桃园"},{value:"宜兰",label:"宜兰"},{value:"台东",label:"台东"},{value:"金门",label:"金门"},{value:"马祖",label:"马祖"},{value:"澎湖",label:"澎湖"}]},{value:"天津",label:"天津",children:[{value:"天津",label:"天津"},{value:"和平",label:"和平"},{value:"东丽",label:"东丽"},{value:"河东",label:"河东"},{value:"西青",label:"西青"},{value:"河西",label:"河西"},{value:"津南",label:"津南"},{value:"南开",label:"南开"},{value:"北辰",label:"北辰"},{value:"河北",label:"河北"},{value:"武清",label:"武清"},{value:"红挢",label:"红挢"},{value:"塘沽",label:"塘沽"},{value:"汉沽",label:"汉沽"},{value:"大港",label:"大港"},{value:"宁河",label:"宁河"},{value:"静海",label:"静海"},{value:"宝坻",label:"宝坻"},{value:"蓟县",label:"蓟县"}]},{value:"新疆",label:"新疆",children:[{value:"乌鲁木齐",label:"乌鲁木齐"},{value:"阿克苏",label:"阿克苏"},{value:"阿勒泰",label:"阿勒泰"},{value:"阿图什",label:"阿图什"},{value:"博乐",label:"博乐"},{value:"昌吉",label:"昌吉"},{value:"东山",label:"东山"},{value:"哈密",label:"哈密"},{value:"和田",label:"和田"},{value:"喀什",label:"喀什"},{value:"克拉玛依",label:"克拉玛依"},{value:"库车",label:"库车"},{value:"库尔勒",label:"库尔勒"},{value:"奎屯",label:"奎屯"},{value:"石河子",label:"石河子"},{value:"塔城",label:"塔城"},{value:"吐鲁番",label:"吐鲁番"},{value:"伊宁",label:"伊宁"}]},{value:"西藏",label:"西藏",children:[{value:"拉萨",label:"拉萨"},{value:"阿里",label:"阿里"},{value:"昌都",label:"昌都"},{value:"林芝",label:"林芝"},{value:"那曲",label:"那曲"},{value:"日喀则",label:"日喀则"},{value:"山南",label:"山南"}]},{value:"云南",label:"云南",children:[{value:"昆明",label:"昆明"},{value:"大理",label:"大理"},{value:"保山",label:"保山"},{value:"楚雄",label:"楚雄"},{value:"大理",label:"大理"},{value:"东川",label:"东川"},{value:"个旧",label:"个旧"},{value:"景洪",label:"景洪"},{value:"开远",label:"开远"},{value:"临沧",label:"临沧"},{value:"丽江",label:"丽江"},{value:"六库",label:"六库"},{value:"潞西",label:"潞西"},{value:"曲靖",label:"曲靖"},{value:"思茅",label:"思茅"},{value:"文山",label:"文山"},{value:"西双版纳",label:"西双版纳"},{value:"玉溪",label:"玉溪"},{value:"中甸",label:"中甸"},{value:"昭通",label:"昭通"}]},{value:"浙江",label:"浙江",children:[{value:"杭州",label:"杭州"},{value:"温州",label:"温州"},{value:"安吉",label:"安吉"},{value:"慈溪",label:"慈溪"},{value:"定海",label:"定海"},{value:"奉化",label:"奉化"},{value:"海盐",label:"海盐"},{value:"黄岩",label:"黄岩"},{value:"湖州",label:"湖州"},{value:"嘉兴",label:"嘉兴"},{value:"金华",label:"金华"},{value:"临安",label:"临安"},{value:"临海",label:"临海"},{value:"丽水",label:"丽水"},{value:"宁波",label:"宁波"},{value:"瓯海",label:"瓯海"},{value:"平湖",label:"平湖"},{value:"千岛湖",label:"千岛湖"},{value:"衢州",label:"衢州"},{value:"江山",label:"江山"},{value:"瑞安",label:"瑞安"},{value:"绍兴",label:"绍兴"},{value:"嵊州",label:"嵊州"},{value:"台州",label:"台州"},{value:"温岭",label:"温岭"},{value:"余姚",label:"余姚"},{value:"舟山",label:"舟山"}]},{value:"海外",label:"海外",children:[{value:"美国",label:"美国"},{value:"日本",label:"日本"},{value:"英国",label:"英国"},{value:"法国",label:"法国"},{value:"德国",label:"德国"},{value:"其他",label:"其他"}]}]},88522:function(e,n,l){"use strict";var t=l(92310),a=l.n(t),i=l(75440),o=l(55405),r=l(59301),s=l(53487),c=l(92343),u=l(36355),d=l(57809);const{Option:p}=d.default;function v(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const h=(e,n)=>{const{prefixCls:l,className:t,popupClassName:s,dropdownClassName:h,children:f,dataSource:g}=e,m=(0,i.Z)(f);let b;1===m.length&&(0,c.l$)(m[0])&&!v(m[0])&&([b]=m);const x=b?()=>b:void 0;let w;w=m.length&&v(m[0])?f:g?g.map((e=>{if((0,c.l$)(e))return e;switch(typeof e){case"string":return r.createElement(p,{key:e,value:e},e);case"object":{const{value:n}=e;return r.createElement(p,{key:n,value:n},e.text)}default:return}})):[];const{getPrefixCls:A}=r.useContext(u.E_),j=A("select",l);return r.createElement(d.default,Object.assign({ref:n,suffixIcon:null},(0,o.Z)(e,["dataSource","dropdownClassName"]),{prefixCls:j,popupClassName:s||h,className:a()(`${j}-auto-complete`,t),mode:d.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:x}),w)},f=r.forwardRef(h),g=(0,s.Z)(f);f.Option=p,f._InternalPanelDoNotUseOrYouWillBeFired=g,n.Z=f},32637:function(e,n,l){"use strict";e.exports=l.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZ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oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="}}]); \ No newline at end of file diff --git a/p__tasks__Jupyter__index.759123cb.async.js b/p__tasks__Jupyter__index.759123cb.async.js new file mode 100644 index 0000000000..92ddad7bdc --- /dev/null +++ b/p__tasks__Jupyter__index.759123cb.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[20700,48486],{73096:function(e,n,t){t.d(n,{JW:function(){return F},Jd:function(){return B},Kl:function(){return z},L5:function(){return v},MH:function(){return P},MI:function(){return H},Qo:function(){return b},SO:function(){return f},Tf:function(){return A},XO:function(){return p},Xy:function(){return w},Y0:function(){return I},Ye:function(){return q},Yv:function(){return U},ZH:function(){return T},am:function(){return S},bD:function(){return X},eA:function(){return y},fA:function(){return L},fY:function(){return N},g6:function(){return m},g7:function(){return J},gT:function(){return k},gn:function(){return W},h$:function(){return Q},hG:function(){return j},i8:function(){return O},j3:function(){return R},lH:function(){return E},li:function(){return h},n4:function(){return x},pU:function(){return Z},qK:function(){return g},sA:function(){return C},sP:function(){return M},t$:function(){return D},zl:function(){return _}});var i=t(7557),r=t.n(i),s=t(41498),a=t.n(s),c=t(82242),o=t.n(c),l=t(18030),u=(0,t(21082).oP)(),d={};function p(e,n){return(0,l.U2)("tasks/".concat(e,".json"),o()(o()({},n),d))}function m(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,l.U2)("myshixuns/".concat(e,"/challenges.json"),o()({},n))}function f(e,n){return(0,l.U2)("myshixuns/".concat(e,"/subject_challenges.json"),n)}function v(e,n,t){return(0,l.U2)("tasks/".concat(e,"/star.json"),{shixun_id:n,star:t})}function h(e,n){return(0,l.U2)("tasks/".concat(e,"/rep_content.json"),o()(o()({},n),d))}function x(e,n){return(0,l.v_)("myshixuns/".concat(e,"/update_file.json"),n)}function g(e,n){return(0,l.U2)("tasks/".concat(e,"/reset_original_code.json"),o()(o()({},n),d))}function A(e,n){return(0,l.v_)("myshixuns/".concat(e,"/reset_repository.json"),n)}function j(e,n){return(0,l.U2)("tasks/".concat(e,"/reset_passed_code.json"),o()(o()({},n),d))}function w(e,n){return(0,l.v_)("tasks/".concat(e,"/game_build.json"),o()(o()({},n),d))}function y(e){return(0,l.ZP)("http://localhost:49352/api/game_build",{method:"post",body:e})}function b(e,n){return(0,l.U2)("tasks/".concat(e,"/game_status.json"),o()(o()({},n),d))}function _(e,n){return(0,l.v_)("tasks/".concat(e,"/choose_build.json"),o()(o()({},n),d))}function N(e){return(0,l.U2)("myshixuns/".concat(e,"/get_remaining_time.json"))}function k(e){return(0,l.U2)("tasks/".concat(e,"/picture_display.json"),d)}function I(e){return(0,l.v_)("tasks/".concat(e,"/plus_or_cancel_praise.json"))}function Z(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,l.v_)("myshixuns/".concat(e,"/repository.json"),n)}function C(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,l.U2)("myshixuns/".concat(e,"/start.json"),n)}function S(e,n){return(0,l.U2)("myshixuns/".concat(e,"/reset_pod.json"),n)}function B(e,n){return(0,l.ZP)("/api/tasks/".concat(e,"/reboot_esc.json"),{method:"post",body:n})}function D(e){return(0,l.U2)("tasks/".concat(e,"/check_test_sets.json"))}function E(e){return(0,l.U2)("tasks/".concat(e,"/get_answer_info.json"))}function M(e){return(0,l.U2)("tasks/".concat(e,"/get_choose_answer.json"))}function P(e){return(0,l.U2)("tasks/".concat(e,"/unlock_choose_answer.json"))}function R(e,n){return(0,l.U2)("tasks/".concat(e,"/unlock_answer.json"),{answer_id:n})}function F(e,n,t,i){return(0,l.v_)("tasks/".concat(e,"/set_games_status.json"),o()({result:n,data:t},i||{}))}function z(e,n){return(0,l.U2)("myshixuns/".concat(e,"/active_pod.json"),n)}function O(e,n){return(0,l.U2)("tasks/".concat(e,"/rank_list.json"),n)}function L(e,n){return(0,l.v_)("tasks/".concat(e,"/close_windows_vnc.json"),{tpi_id:n})}function T(e,n){return(0,l.U2)("tasks/".concat(e,"/commit_files.json"),n)}function W(e,n){return(0,l.U2)("tasks/".concat(e,"/pull_files.json"),n)}function Q(e,n){return(0,l.v_)("tasks/".concat(e,"/log_output"),n)}function U(e,n){return(0,l.U2)("tasks/".concat(e,"/stop_log_output.json"),n)}function H(e){return G.apply(this,arguments)}function G(){return(G=a()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.id,"/add_file.json"),{method:"post",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function X(e){return V.apply(this,arguments)}function V(){return(V=a()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.id,"/delete_git_file.json"),{method:"Delete",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function J(e){return Y.apply(this,arguments)}function Y(){return(Y=a()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.id,"/mv_file.json"),{method:"post",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function q(e,n){return(0,l.ZP)("/api/shixuns/".concat(e,"/set_start_permanent.json"),{method:"put",body:n})}null!=u&&u.homework_common_id&&(d.homework_common_id=null==u?void 0:u.homework_common_id),null!=u&&u.exercisesId&&(d.exercise_id=null==u?void 0:u.exercisesId),console.log(u,d,"urlParamsAll")},98382:function(e,n,t){t.d(n,{z:function(){return k},Z:function(){return I}});var i=t(7557),r=t.n(i),s=t(41498),a=t.n(s),c=t(82242),o=t.n(c),l=t(37205),u=t.n(l),d=t(79800),p=t.n(d),m=t(59301),f=t(59028),v=t(8591),h=t(43418),x=t(3113),g=t(92723),A=t(90341),j=t(37712),w="  ";function y(e){if(0==e)return"0 Byte";var n=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,n)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][n]}var b=t(60186),_=t(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var N=f.Z.Dragger;function k(e){var n=[];return e&&e.length>0&&(n=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+w+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),n}var I=function(e){var n=e.value,t=e.onChange,i=e.action,s=e.data,c=e.className,l=e.maxSize,d=void 0===l?150:l,k=e.title,I=void 0===k?"上传附件":k,Z=e.showRemoveModal,C=void 0!==Z&&Z,S=e.accept,B=void 0===S?"":S,D=e.additionalText,E=e.isDragger,M=e.number,P=void 0===M?1e3:M,R=e.aloneClear,F=void 0!==R&&R,z=e.realTimeRemove,O=void 0===z||z,L=e.uploadText,T=e.setFileProgress,W=e.showFileProgress,Q=(0,m.useState)(!1),U=p()(Q,2),H=U[0],G=U[1],X=(0,m.useState)(n||[]),V=p()(X,2),J=V[0],Y=V[1],q=(0,m.useState)(1),K=p()(q,2),$=K[0],ee=K[1];(0,m.useEffect)((function(){n&&(1===$&&Y(u()(n)),ee(2),P===(null==n?void 0:n.length)&&G(!0))}),[n]);var ne=function(){setTimeout((function(){J.pop(),Y(u()(J))}),500)};W&&T(J.some((function(e){return"uploading"===e.status})));var te,ie={multiple:!0,disabled:H,accept:B,withCredentials:!0,fileList:J,beforeUpload:function(e,n){var t=e.size/1024/1024;return J.concat(n).length>P?(J.pop(),Y(u()(J)),v.ZP.error("最多只能上传".concat(P,"个文件")),F?Promise.reject():(ne(),!1)):t=P?G(!0):G(!1),Y(u()(J)),J=J.map((function(e){var n,t;null!=e&&null!==(n=e.response)&&void 0!==n&&n.id&&(e.url=null==e||null===(t=e.response)||void 0===t?void 0:t.url);return-1===e.name.indexOf(w)&&(e.name="".concat(e.name).concat(w).concat(y(e.size))),o()({},e)})),console.log("info:",e,J),t(J)):v.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:(te=a()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(O){e.next=2;break}return e.abrupt("return",!0);case 2:if(t=function(){var e=a()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.response?n.response.id:n.id)){e.next=8;break}return e.next=4,(0,A.JZ)(n.response?n.response.id:n.uid);case 4:return t=e.sent,e.abrupt("return",Promise.resolve(t));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!C){e.next=7;break}return e.abrupt("return",new Promise((function(e,n){var i;h.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,j.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(r()().mark((function n(){return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t();case 2:n.sent,v.ZP.success("删除成功"),e(!0);case 5:case"end":return n.stop()}}),n)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,t();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return te.apply(this,arguments)})};return(0,j.jsxs)("div",{className:"multi-upload ".concat(c||""),children:[E&&(0,j.jsxs)(N,o()(o()({},ie),{},{children:[(0,j.jsx)("p",{className:"ant-upload-drag-icon",children:(0,j.jsx)(b.Z,{})}),(0,j.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,j.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),D]})),!E&&(0,j.jsxs)(f.Z,o()(o()({},ie),{},{children:[(0,j.jsxs)(x.ZP,{disabled:H,className:"upload_button",children:[(0,j.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),I]}),(0,j.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:L||"(单个文件最大".concat(d,"MB)")})]}))]})}},54313:function(e,n,t){var i=t(82242),r=t.n(i),s=(t(59301),t(93314)),a=t(3113),c=t(37712);n.Z=function(e){var n=e.img,t=e.buttonProps,i=void 0===t?{}:t,o=e.styles,l=void 0===o?{}:o,u=e.customText,d=e.ButtonText,p=e.ButtonClick,m=e.Buttonclass,f=e.ButtonTwo,v=e.imgStyles,h=e.loading,x=void 0!==h&&h;return(0,c.jsxs)("section",{className:"tc animated fadeIn",style:r()(r()({},{color:"#999",margin:"100px auto",visibility:x?"hidden":"visible"}),l),children:[(0,c.jsx)("img",{src:n||s,style:r()(r()({},v),{},{pointerEvents:"none",userSelect:"none"})}),(0,c.jsx)("p",{className:"mt20 font14",children:u||"暂时还没有相关数据哦!"}),d&&(0,c.jsx)(a.ZP,r()(r()({className:m,onClick:p},i),{},{children:d})),f&&f]})}},97963:function(e,n,t){t.d(n,{Z:function(){return b}});var i=t(82242),r=t.n(i),s=t(7557),a=t.n(s),c=t(41498),o=t.n(c),l=t(79800),u=t.n(l),d=t(59301),p={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},m=t(3113),f=t(38827),v=t(82915),h=t(6848),x=t(21082),g=t(31591),A=t(54313),j=t(92723),w=t(27533),y=t(37712),b=function(e){var n,t,i,s,c,l,b=e.editOffice,_=void 0===b?"view":b,N=e.data,k=(e.theme,e.type),I=e.filename,Z=e.monacoEditor,C=e.className,S=e.style,B=e.close,D=e.onClose,E=e.hasMask,M=e.disabledDownload,P=e.onImgDimensions,R=e.showNodata,F=e.recordInfo,z=(0,d.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),O=u()(z,2),L=(O[0],O[1],(0,d.useState)("")),T=u()(L,2),W=(T[0],T[1]),Q=(0,d.useState)(),U=u()(Q,2),H=U[0],G=U[1],X="build"===window.ENV?"/react/build":"",V=location.host.startsWith("localhost")?j.Z.PROXY_SERVER:j.Z.API_SERVER,J=(0,d.useRef)();null!==(n=N)&&void 0!==n&&n.startsWith("/api")&&"txt"!==k&&(N=j.Z.API_SERVER+N);I&&Z&&(Z.filename=I),(0,d.useEffect)((function(){var e,n=null===(e=document.cookie)||void 0===e||null===(e=e.replace(/\s/g,""))||void 0===e?void 0:e.split(";");null==n||n.map((function(e){var n=e.split("=");"_educoder_session"===n[0]&&W(n[1])}))}),[]),(0,d.useEffect)((function(){var e;"office"===k&&(N.indexOf("bigfilescdn.")>-1||N.indexOf("bigfiles1")>-1?G({url:N,fileType:(e=N,e.substring(e.lastIndexOf("/")+1).split(".").pop()),model:N.indexOf("model=edit")?"edit":"view"}):Y())}),[k,N]);var Y=function(){var e=o()(a()().mark((function e(){var n,t,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("data:",N),n=N,N.startsWith("http")||(n=location.origin+n),t=new URL(n).pathname.split("/").pop(),e.next=6,(0,g.gJ)({attachment_id:t});case 6:(i=e.sent).url=V+i.url,G(i);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),q=function(){N.startsWith("http")||N.startsWith("blob:")?K():(0,x.Sv)(I||"educoder",N,I)},K=function(){F&&(0,w.fc)({id:null==F?void 0:F.id,watch_type:1,course_id:null==F?void 0:F.course_id}),(0,x.Nd)(I||"educoder",decodeURIComponent(N))};return(0,y.jsxs)("div",{style:r()({},S||{}),className:"".concat(E&&p.bgBlack," ").concat(k?p.wrp:"hide"),children:[B&&(0,y.jsxs)("div",{className:p.close,ref:J,children:[!!P&&(0,y.jsx)(h.Z,{title:"点击对图片进行批注",getPopupContainer:function(){return J.current},children:(0,y.jsx)("span",{onClick:function(){D(),P()},children:(0,y.jsx)("i",{className:"icon-yulanpizhu"})})}),!M&&(0,y.jsx)(h.Z,{title:"点击下载此文件",getPopupContainer:function(){return J.current},children:(0,y.jsx)("span",{onClick:K,children:(0,y.jsx)("i",{className:"icon-quxiaozhiding"})})}),(0,y.jsx)(h.Z,{title:"关闭",getPopupContainer:function(){return J.current},children:(0,y.jsx)("span",{className:"",onClick:D,children:(0,y.jsx)("i",{className:"icon-guanbi1"})})})]}),(0,y.jsx)("div",{className:"".concat(p[C]," ").concat(C," ").concat(p.monaco," ").concat("txt"===k?"show":"hide"),children:"txt"===k&&(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(v.ZP,r()({},Z))})}),"audio"===k&&(0,y.jsx)("audio",{src:"".concat((null===(t=N)||void 0===t?void 0:t.indexOf("http://"))>-1||(null===(i=N)||void 0===i?void 0:i.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(N),autoPlay:!0}),"video"===k&&(0,y.jsx)(y.Fragment,{children:(null===(s=N)||void 0===s?void 0:s.indexOf("http"))>-1?(0,y.jsx)("video",{controls:!0,src:"".concat(N),autoPlay:!0}):(0,y.jsx)("video",{controls:!0,src:"data:video/mp4;base64,".concat(N),autoPlay:!0})}),"office"===k&&H&&(0,y.jsx)("iframe",{src:"".concat(X,"/office.html?key=").concat(H.key,"&url=").concat(btoa(H.url),"&callbackUrl=").concat(V+H.callbackUrl,"&fileType=").concat(H.fileType,"&title=").concat(H.title,"&model=").concat(_,"&officeServer=").concat(j.Z.ONLYOFFICE,"&disabledDownload=").concat(!!M)}),"html"===k&&(0,y.jsx)("iframe",{src:N+"&disposition=inline"}),"pdf"===k&&(0,y.jsx)("iframe",{src:"".concat(X,"/js/pdfview/index.html?filename=").concat(I||"educoder.pdf","&url=").concat(encodeURIComponent(N),"&disabledDownload=").concat(!!M)}),"image"===k&&(0,y.jsx)("img",{src:"".concat((null===(c=N)||void 0===c?void 0:c.indexOf("http://"))>-1||(null===(l=N)||void 0===l?void 0:l.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(N)}),("other"===k||"download"===k)&&(0,y.jsx)(y.Fragment,{children:R?(0,y.jsx)(A.Z,{customText:"当前文件不支持预览,可点击下载查看",ButtonTwo:(0,y.jsx)(m.ZP,{icon:(0,y.jsx)("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:q,disabled:M,children:"下载"})}):(0,y.jsxs)(m.ZP,{type:"primary",size:"middle",onClick:q,disabled:M,children:[(0,y.jsx)(f.Z,{}),"点击下载"]})})]})}},38279:function(e,n,t){t.d(n,{z:function(){return y}});var i=t(82242),r=t.n(i),s=t(37205),a=t.n(s),c=t(91232),o=t.n(c),l=t(79800),u=t.n(l),d=t(59301),p=(t(80227),t(87133)),m=(t(64018),t(24830)),f=t(92723),v=t(21082),h=t(15342),x=t(1012),g=t(97963),A=t(37712),j="@▁@",w=/]*>/g;var y=function(e,n){e=e||"";var t=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return n?e.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(t,(function(e,n,t,i,r,s,a){var c=n||i||s,o=t||r||a||"?";return f.Z.API_SERVER+"/api/attachments/"+c+o+"&t="+(0,v.Jn)(c,Date.now())+(e.indexOf(")")>-1?")":"&")})).replaceAll('src="(','src="').replaceAll("src='(",'src="'):e=e.replace(/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,(function(e,n,t,i,r,s,a){var c=n||i||s,o=t||r||a||"?";return f.Z.API_SERVER+"/attachments/download/"+c+o+"&t="+(0,v.Jn)(c,Date.now())+(e.indexOf(")")>-1?")":"&")})).replace(t,(function(e,n,t,i,r,s,a){var c=n||i||s,o=t||r||a||"?";return f.Z.API_SERVER+"/api/attachments/"+c+o+"&t="+(0,v.Jn)(c,Date.now())+(e.indexOf(")")>-1?")":"&")})).replace(/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,(function(e,n,t,i,r){var s=n||i,a=t||r||"";return'"'+f.Z.API_SERVER+"/api/attachments/"+s+a+s+a+"&t="+(0,v.Jn)(s,Date.now())})).replace(/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,(function(e,n,t,i,r){var s=n||i,a=t||r||"";return"("+f.Z.API_SERVER+"/files/uploads/"+s+a+s+a+"&t="+(0,v.Jn)(s,Date.now())})).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,"\n")};n.Z=function(e){var n=e.value,t=void 0===n?"":n,i=e.className,s=e.showTextOnly,c=e.showLines,l=e.style,v=void 0===l?{}:l,y=e.stylesPrev,b=void 0===y?{}:y,_=e.highlightKeywords,N=e.showProgramFill,k=(e.isProgramFill,e.disabledFill),I=void 0!==k&&k,Z=e.programFillValue,C=e.onFillChange,S=void 0===C?function(e){}:C,B=e.onFillBlur,D=void 0===B?function(){}:B,E=e.onFillFocus,M=void 0===E?function(){}:E,P=String(t),R=(0,d.useState)(""),F=u()(R,2),z=F[0],O=F[1],L=(0,d.useState)("office"),T=u()(L,2),W=T[0],Q=T[1],U=(0,d.useState)([]),H=u()(U,2),G=H[0],X=H[1],V=(0,d.useRef)("a"+(0,x.Z)()),J={};var Y=function(e){return e.replace(/([\s\S]+?)<\/style>/gim,(function(e,n){var t=n.replace(/(\n|\r)/g,"").split("}"),i=[];return t.map((function(e){""!=e&&i.push(".".concat(V.current," ").concat(e))})),"")}))},q=(0,d.useMemo)((function(){try{P=P.replace(/\(\/attachments\/download\//g,"("+f.Z.API_SERVER+"/attachments/download/").replace(/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,"("+f.Z.API_SERVER+"/api/attachments/").replace(/\"\/api\/attachments\/|\"\/attachments\/download\//g,'"'+f.Z.API_SERVER+"/api/attachments/").replace(/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,'"'+f.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,"\n")}catch(e){}if(N){var e=-1;return P=P.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,(function(n,t,i){var r;return function(e,n,t){var i=document.createElement(e===j?"input":"textarea");i.style.width="100%",i.style.height=e===j?"40px":"151px",i.rows=5,i.spellcheck=!1,i.name="edu-program-fill",i.placeholder="请输入",i.dataset.id=n;var r=Object.keys(J).length;return J[r]=i,'')}(n,++e,null==Z||null===(r=Z[e])||void 0===r?void 0:r.value.replaceAll("<","<").replaceAll(">",">"))})),'
'.concat(Y(P||""),"
")}var n=Y(P);n=(0,p.ZP)(n);var t=(0,p.ez)();P.match(/\[TOC\]/)&&(n=n.replace("

[TOC]

",(0,p.Qv)()),(0,p.Iy)()),n=n.replace(/(__special_katext_id_\d+__)/g,(function(e,n){var i=t[n],r=i.type,s=i.expression;return(0,h.renderToString)(function(e){var n=document.createElement("div");return n.innerHTML=e,0===n.childNodes.length?"":n.childNodes[0].nodeValue}(s)||"",{displayMode:"block"===r,throwOnError:!1,output:"html"})})),n=n.replace(/▁/g,"▁▁▁▁▁"),(0,p.AL)();var i=document.createElement("div");return i.innerHTML=n,s?i.innerText:_?(ne(i,_.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),i.innerHTML):(setTimeout((function(){return re()}),500),i.innerHTML)}),[P,_]);(0,d.useEffect)((function(){te.current&&te.current.querySelectorAll(["input","textarea"]).forEach((function(e){e.oninput=K,e.onblur=$,e.onfocus=ee}))}),[G]),(0,d.useEffect)((function(){if(null!=Z&&Z.length)try{var e,n=te.current.querySelectorAll(".edu-program-fill-score"),t=te.current.querySelectorAll('[name="edu-program-fill"]'),i=o()(t.entries());try{for(i.s();!(e=i.n()).done;){var r,s,a,c=u()(e.value,2),l=c[0],d=c[1];d.value=(null==Z||null===(r=Z[l])||void 0===r?void 0:r.value)||"","warning"===(null==Z||null===(s=Z[l])||void 0===s?void 0:s.type)?d.className="program-fill-warning":"success"===(null==Z||null===(a=Z[l])||void 0===a?void 0:a.type)?d.className="program-fill-success":d.className=""}}catch(e){i.e(e)}finally{i.f()}var p,m=o()(n.entries());try{for(m.s();!(p=m.n()).done;){var f,v,h=u()(p.value,2),x=h[0];h[1].innerHTML=null!=Z&&null!==(f=Z[x])&&void 0!==f&&f.score?"".concat(null==Z||null===(v=Z[x])||void 0===v?void 0:v.score,"分"):""}}catch(e){m.e(e)}finally{m.f()}X(Z)}catch(e){console.log(e,"error")}}),[Z]);var K=function(e){G[e.target.dataset.id]=G[e.target.dataset.id]||{},G[e.target.dataset.id].value=e.target.value,X(a()(G)),S(G,e.target.dataset.id)},$=function(e){G[e.target.dataset.id]=G[e.target.dataset.id]||{},G[e.target.dataset.id].value=e.target.value,X(a()(G)),D(G,e.target.dataset.id)},ee=function(e){G[e.target.dataset.id]=G[e.target.dataset.id]||{},G[e.target.dataset.id].value=e.target.value,X(a()(G)),M(G,e.target.dataset.id)};function ne(e,n){return e.childNodes.forEach((function(e){if(e.childNodes.length>0)ne(e,n);else if("IMG"!==e.nodeName)if(e.innerHTML){var t;e.innerHTML=null===(t=e.innerHTML)||void 0===t?void 0:t.replace(new RegExp(n,"gi"),'$&')}else{var i=document.createElement("span");i.innerHTML=e.textContent.replace(new RegExp(n,"gi"),'$&'),e.replaceWith(i)}}))}var te=(0,d.useRef)();function ie(e){var n=e.target;if("A"===n.tagName.toUpperCase()){var t=n.getAttribute("href");if(t.indexOf("office")>-1)e.preventDefault(),O(t),Q("office");else if(t.indexOf("application/pdf")>-1)e.preventDefault(),O(t),Q("pdf");else if(t.indexOf("text/html")>-1)e.preventDefault(),O(t),Q("html");else if(t.startsWith("#")){e.preventDefault();var i=document.getElementById(t.replace("#",""));i&&i.scrollIntoView(!0)}}}p.jb.WebkitLineClamp=c,c&&(v=r()(r()({},v),p.jb));var re=function(){var e,n=null===(e=te.current)||void 0===e?void 0:e.querySelectorAll("video");null==n||n.forEach((function(e){if(e.oncontextmenu=function(){return!1},e.src.indexOf(".m3u8")>-1)if(e.canPlayType("application/vnd.apple.mpegurl"));else if(m.ZP.isSupported()){var n=new m.ZP;n.loadSource(e.src),n.attachMedia(e)}}))};return(0,d.useEffect)((function(){if(te.current&&q&&q.match(w)&&window.PR.prettyPrint(),te.current)return te.current.addEventListener("click",ie),function(){var e;null===(e=te.current)||void 0===e||e.removeEventListener("click",ie),(0,p.AL)(),(0,p.Iy)()}}),[q,te.current,ie]),(0,d.useEffect)((function(){var e,n=function(e){e.preventDefault(),e.clipboardData.setData("text",window.getSelection().toString())};return null===(e=te.current)||void 0===e||e.addEventListener("copy",n),function(){var e;null===(e=te.current)||void 0===e||e.removeEventListener("copy",n)}}),[te.current]),(0,A.jsxs)(A.Fragment,{children:[s&&(0,A.jsx)("div",{ref:te,children:q}),!s&&(0,A.jsx)("div",{ref:te,style:r()({},v),className:"".concat(i||""," ").concat(I?"disabled-fill":""," markdown-body ").concat(V.current),dangerouslySetInnerHTML:{__html:q}}),(0,A.jsx)(g.Z,{close:!0,data:z,type:null!=z&&z.length?W:"",style:r()({},b),onClose:function(){return O("")}})]})}},24808:function(e,n,t){t.d(n,{Z:function(){return m}});var i=t(82100),r=t.n(i),s=t(29186),a=t.n(s),c=t(80619),o=t.n(c),l=t(47074),u=t.n(l),d=t(59301),p=t(4676),m=function(e){o()(t,e);var n=u()(t);function t(e){var i;r()(this,t),i=n.call(this,e);var s=window.document;return i.node=s.createElement("div"),s.body.appendChild(i.node),i}return a()(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)},48486:function(e,n,t){t.d(n,{jL:function(){return o},w9:function(){return we},QD:function(){return nn},cQ:function(){return Ae},op:function(){return Ve},O5:function(){return dn},_b:function(){return cn},t7:function(){return P},Gi:function(){return Ne},YG:function(){return _e},qp:function(){return _},vr:function(){return rn},qE:function(){return qe},Je:function(){return z},wb:function(){return se},cq:function(){return Re},tp:function(){return I}});var i=t(59301),r="banner___PoUBO",s="content___XoDjy",a="btns___Pb35j",c=t(37712),o=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.img,o=e.imgWidth,l=void 0===o?346:o,u=e.title,d=e.sunTitle,p=e.bannerExtraContent;return(0,c.jsx)("div",{className:r,children:(0,c.jsxs)("div",{className:s,children:[(0,c.jsxs)("aside",{children:[(0,c.jsxs)("p",{children:[(0,c.jsx)("b",{children:u}),(0,c.jsx)("span",{children:d})]}),t.length>0&&(0,c.jsx)("div",{className:a,children:t.map((function(e,n){return(0,c.jsxs)("div",{onClick:e.click,children:[e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/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},n)}))}),p]}),i&&(0,c.jsx)("img",{style:{marginTop:33,marginRight:38},src:i,width:l})]})})},l=t(79800),u=t.n(l),d="row___aXJjm",p="title___HUKL0",m="tagsWrap___XB2W3",f="action___VdHb1",v="bar___t1kKC",h="tag___V7Eft",x="name___Hk1Ip",g="num___xQpcH",A="active___XryTX",j="tagsBorderWrap___OMxjs",w=t(92310),y=t.n(w),b=t(89392),_=function(e){var n=e.dataSource,t=void 0===n?[]:n,r=e.value,s=e.onChange,a=e.onTitleChange,o=e.className,l=e.title,w=e.titleWidth,_=void 0===w?41:w,N=e.style,k=void 0===N?{}:N,I=e.fontColor,Z=void 0===I?"#6A7283":I,C=e.showCount,S=(0,i.useState)(0),B=u()(S,2),D=B[0],E=B[1],M=(0,i.useState)(!1),P=u()(M,2),R=P[0],F=P[1],z=(0,i.useRef)(null),O=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;0!==t.length&&((null==z||null===(e=z.current)||void 0===e?void 0:e.clientHeight)>97?E(1):E(0));0===t.length&&E(0),F(!1)}),[t]),(0,c.jsxs)("div",{className:y()(d,o),style:k,children:[(0,c.jsx)("div",{onClick:(0,b.throttle)((function(){return null==a?void 0:a()}),2e3),style:{width:_,marginTop:R?12:4},className:"".concat(p," ").concat(a?"current":""),children:l}),(0,c.jsxs)("div",{className:R?"".concat(m," ").concat(j):m,children:[(0,c.jsx)("div",{className:v,ref:O,style:D>0?{height:1===D?97:"auto",overflow:1===D?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,c.jsx)("div",{className:h,ref:z,children:null==t?void 0:t.map((function(e){return(0,c.jsxs)("span",{onClick:function(){return s(e.id)},style:{color:Z},className:r===e.id?A:"",children:[(0,c.jsx)("span",{title:e.name,className:x,children:e.name}),!!C&&(0,c.jsx)("span",{className:g,children:e.count})]},e.id)}))})}),!!D&&(0,c.jsx)(i.Fragment,{children:1===D?(0,c.jsxs)("div",{onClick:function(){var e;E(2),(null==z||null===(e=z.current)||void 0===e?void 0:e.clientHeight)>245?F(!0):F(!1)},className:f,children:["展开",(0,c.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,c.jsxs)("div",{onClick:function(){O.current.scrollTop=0,E(1),F(!1)},className:f,children:["收起",(0,c.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},N="tabs___GTqPV",k="active___F26E8",I=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,r=e.onChange,s=e.className,a=e.style,o=void 0===a?{}:a;return(0,c.jsx)("div",{style:o,className:y()(N,s),children:t.map((function(e){return(0,c.jsx)("span",{onClick:function(){return r(e.id)},className:i===e.id?k:"",children:e.name},e.id)}))})},Z="input___PW2zI",C="dropdown___vSy8B",S="menu___NiyBu",B="text___Grueu",D="b1___ZKryM",E="b2___aKyGa",M=t(92832),P=function(e){var n,t=e.dataSource,r=void 0===t?[]:t,s=e.value,a=void 0===s?"":s,o=e.onChange,l=e.onInputChange,d=void 0===l?function(){}:l,p=e.className,m=e.style,f=void 0===m?{}:m,v=e.placeholder,h=(e.allowClear,(0,i.useState)("")),x=u()(h,2),g=x[0],A=x[1],j=(0,i.useState)(""),w=u()(j,2),b=w[0],_=w[1];(0,i.useEffect)((function(){var e,n=a;null!==(e=JSON.stringify(a))&&void 0!==e&&e.includes("{")&&(A(a.id),n=a.value||"");try{_(decodeURIComponent(n||""))}catch(e){_(decodeURIComponent(n||""))}}),[a]);var N=function(){o(encodeURIComponent(b),g||null)};return(0,c.jsxs)("div",{className:y()(Z,p),style:f,children:[!!r.length&&(0,c.jsxs)("div",{className:C,children:[(0,c.jsxs)("div",{className:B,children:[null===(n=r.find((function(e){return e.id===g})))||void 0===n?void 0:n.name,(0,c.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,c.jsx)("b",{className:D}),(0,c.jsx)("b",{className:E})]}),(0,c.jsx)("div",{className:S,children:r.map((function(e,n){return(0,c.jsx)("div",{onClick:function(){var n;(n=e.id)!==g&&(A(n),o(encodeURIComponent(b),n))},children:e.name},n)}))})]}),(0,c.jsx)(M.Z,{onPressEnter:N,value:b,onChange:function(e){_(e.target.value),d(encodeURIComponent(e.target.value),g||null)},bordered:!1,placeholder:v}),(0,c.jsx)("i",{onClick:N,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},R="quickPager___GM30J",F="disabled___Ozc8I",z=function(e){var n=e.value,t=e.onChange,i=e.className,r=e.total,s=e.pageSize,a=e.style,o=void 0===a?{}:a,l=n<2,u=n>=Math.ceil(r/s);return r<=s?(0,c.jsx)(c.Fragment,{}):(0,c.jsxs)("div",{className:y()(R,i),style:o,children:[(0,c.jsx)("div",{onClick:function(){l||t(n-1,"prev")},className:l?F:"",children:"上一页"}),(0,c.jsx)("div",{onClick:function(){u||t(n+1,"next")},className:u?F:"",children:"下一页"})]})},O="list___oOsiS",L="wrap___G6T7F",T="lockWrap___Rl79E",W="li___oZZ7l",Q="cover___b2bYW",U="img___IQX7w",H="sign___HkT6C",G="name___SsJx8",X="e___TMqq0",V="tags___bcjyo",J="rate___YACg7",Y=t(71418),q=t(6848),K=t(31395),$=t(92723),ee=t(21082),ne=t(96908),te=t(57177),ie=t(81378),re=t(54313),se=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,r=e.col,s=void 0===r?4:r,a=e.right,o=e.bottom,l=void 0===o?23:o,u=e.precision,d=void 0===u?0:u,p=e.wrapWidth,m=void 0===p?1200:p,f=e.trackEventItems,v=e.loading,h=Math.floor((m-(s-1)*a)/s);return(0,c.jsx)(Y.Z,{spinning:v,children:(0,c.jsxs)("div",{className:y()(O,n),children:[!!i.length&&i.map((function(e,n){var t=e.name,i=e.id,r=e.identifier,o=e.power,u=(e.cover_image_id,e.pic);return(0,c.jsxs)("div",{className:L,style:{width:h,marginRight:(1+n)%s==0?0:a+d,marginBottom:l},children:[(0,c.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(r,"/challenges"),className:W,onClick:function(e){e.preventDefault(),f&&(0,ee.L9)([f]),o&&(0,ee.xg)("/shixuns/".concat(r,"/challenges"))},children:[(0,c.jsxs)("div",{className:U,children:[(0,c.jsx)("img",{className:Q,src:"".concat(u)}),e.is_jupyter&&(0,c.jsx)("img",{className:H,src:ne}),e.is_jupyter_lab&&(0,c.jsx)("img",{className:H,src:te}),e.is_unity_3d&&(0,c.jsx)("img",{className:H,src:ie})]}),(0,c.jsx)("div",{className:G,children:(0,c.jsx)(q.Z,{title:t||"实践项目名称-未填写",children:(0,c.jsx)("span",{className:X,children:t||"实践项目名称-未填写"})})}),(0,c.jsxs)("div",{className:V,children:[(0,c.jsx)(q.Z,{placement:"bottom",title:"关卡数",children:(0,c.jsxs)("span",{children:[(0,c.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,c.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,c.jsx)(q.Z,{placement:"bottom",title:"学习人数",children:(0,c.jsxs)("span",{children:[(0,c.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,c.jsx)("span",{children:e.myshixuns_count})]})}),(0,c.jsx)(q.Z,{placement:"bottom",title:"难度等级",children:(0,c.jsx)("span",{children:(0,c.jsx)("span",{children:e.level})})}),(0,c.jsxs)("div",{className:J,children:[(0,c.jsx)(K.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,c.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!o&&(0,c.jsxs)("div",{className:T,children:[(0,c.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,c.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},i)})),!i.length&&(0,c.jsx)(re.Z,{})]})})},ae="list___jb2Ay",ce="wrap___VsQDr",oe="li___IxCLC",le="cover___Mu8wr",ue="img___IpFLA",de="movebq___mF7wt",pe="bq___Bil0T",me="sign___DXJ4d",fe="name___l7FoJ",ve="e___pXQUG",he="unit___wCIFR",xe="tags___w_Mil",ge=t(93697),Ae=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,r=e.col,s=void 0===r?4:r,a=e.right,o=e.bottom,l=void 0===o?23:o,u=e.precision,d=void 0===u?0:u,p=e.wrapWidth,m=void 0===p?1200:p,f=e.trackEventItems,v=e.loading,h=e.onRemove,x=void 0===h?function(){}:h,g=e.isCurrent,A=void 0===g||g,j=e.showAlias,w=void 0!==j&&j,b=Math.floor((m-(s-1)*a)/s),_=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,c.jsx)(Y.Z,{spinning:v,children:(0,c.jsxs)("div",{className:y()(ae,n),children:[!(null==i||!i.length)&&(null==i?void 0:i.map((function(e,n){var t,i=e.name,r=e.id,o=e.identifier,u=(e.featured,e.school_name),p=e.image_url;e.excellent,e.is_plan;return(0,c.jsx)("div",{className:ce,style:{width:b,marginRight:(1+n)%s==0?0:a+d,marginBottom:l},children:(0,c.jsxs)("a",{className:oe,onClick:function(e){e.preventDefault(),e.stopPropagation(),f&&(0,ee.L9)([f]),(0,ee.xg)("/paths/".concat(o))},children:[(0,c.jsxs)("div",{className:ue,children:[(0,c.jsx)("img",{className:le,src:"".concat(p)}),A&&(0,ge.bg)()&&(null==e?void 0:e.studying)&&(0,c.jsxs)("div",{className:"".concat(de," user-path-items"),onClick:function(n){n.stopPropagation(),x(e)},children:[(0,c.jsx)("i",{className:"iconfont icon-yichu1 mr5 c-red"}),(0,c.jsx)("span",{className:"c-red",children:"移除"})]}),null==e||null===(t=e.subject_tags)||void 0===t?void 0:t.map((function(e,n){var t;if(0===n){var i,r=null===(i=_.find((function(n){return n.name==e})))||void 0===i?void 0:i.swimg;return(0,c.jsx)("img",{className:me,src:r,style:{left:"-4px"}})}var s=null===(t=_.find((function(n){return n.name==e})))||void 0===t?void 0:t.ptimg;return(0,c.jsx)("img",{className:me,src:s,style:{left:"".concat(48+52*(n-1)+2*n,"px")}})})),(0,c.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,c.jsx)("div",{className:pe,children:"开放课程"})})]}),(0,c.jsx)("div",{className:fe,children:(0,c.jsx)(q.Z,{title:w&&null!=e&&e.excellent_alias_name?(0,c.jsxs)("span",{children:["课程原名:".concat(i),(0,c.jsx)("br",{}),(0,c.jsx)("span",{children:"课程别名:".concat(null==e?void 0:e.excellent_alias_name)})]}):i,children:(0,c.jsx)("span",{className:ve,children:w&&(null==e?void 0:e.excellent_alias_name)||i})})}),(0,c.jsx)(q.Z,{title:"发布单位:".concat(u),children:(0,c.jsxs)("div",{className:he,children:[(0,c.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),u]})}),(0,c.jsx)("div",{className:xe,children:(0,c.jsxs)("div",{children:[(0,c.jsx)(q.Z,{placement:"bottom",title:"章节数",children:(0,c.jsxs)("span",{children:[(0,c.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,c.jsx)("span",{children:e.stages_count})]})}),(0,c.jsx)(q.Z,{placement:"bottom",title:"学习人数",children:(0,c.jsxs)("span",{children:[(0,c.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,c.jsx)("span",{children:e.members_count})]})})]})})]})},r)}))),!i.length&&(0,c.jsx)(re.Z,{})]})})},je={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},we=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,r=e.col,s=void 0===r?4:r,a=e.right,o=e.bottom,l=void 0===o?23:o,u=e.precision,d=void 0===u?0:u,p=e.wrapWidth,m=void 0===p?1200:p,f=e.trackEventItems,v=e.loading,h=Math.floor((m-(s-1)*a)/s);return(0,c.jsx)(Y.Z,{spinning:v,children:(0,c.jsxs)("div",{className:y()(je.list,n),children:[!!i.length&&i.map((function(e,n){var t=e.subject_identifier,i=e.id,r=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,c.jsxs)("div",{className:je.wrap,style:{width:h,marginRight:(1+n)%s==0?0:a+d,marginBottom:l},children:[(0,c.jsxs)("a",{className:je.li,onClick:function(n){n.preventDefault(),(0,ee.Wn)(null==e?void 0:e.forbid_visit_info)||(f&&(0,ee.L9)([f]),(0,ee.xg)(e.first_category_url))},children:[(0,c.jsxs)("div",{className:je.top,children:[(0,c.jsx)(q.Z,{title:e.name,children:(0,c.jsx)("div",{className:je.name,children:e.name})}),(0,c.jsx)("img",{className:je.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,c.jsx)("div",{className:je.text,title:e.creator,children:e.creator}),t&&(0,c.jsxs)("div",{className:je.btns,children:[(0,c.jsx)("div",{children:"开放课程"}),(0,c.jsx)("aside",{children:"开放课堂"})]}),r&&(0,c.jsx)("div",{className:je.sign,children:"公开"})]}),(0,c.jsxs)("div",{className:je.bottom,children:[e.visits>0&&(0,c.jsx)(q.Z,{title:"访问量",placement:"bottom",children:(0,c.jsxs)("span",{children:[(0,c.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,c.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,c.jsx)(q.Z,{title:"成员",placement:"bottom",children:(0,c.jsxs)("span",{children:[(0,c.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,c.jsx)(q.Z,{title:"作业",placement:"bottom",children:(0,c.jsxs)("span",{children:[(0,c.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,c.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,c.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,c.jsxs)("div",{className:je.lockWrap,children:[(0,c.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,c.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},i)})),!i.length&&(0,c.jsx)(re.Z,{})]})})},ye={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},be=t(5296),_e=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,r=e.onChange,s=e.className,a=e.style,o=void 0===a?{}:a,l=e.tabBarExtraContent;return(0,c.jsxs)("div",{className:y()(ye.tabs,s),style:o,children:[(0,c.jsx)("div",{className:ye.tabsWrap,children:t.map((function(e,n){return(0,c.jsxs)("aside",{className:ye.tab,onClick:function(){r(e.id),e.link&&be.history.push(e.link)},children:[(0,c.jsx)("div",{className:i===e.id?ye.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,c.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,c.jsx)(q.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,c.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,c.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,c.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},n)}))}),(0,c.jsx)("div",{className:ye.tabBar,children:l})]})},Ne=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,r=e.children;return(0,c.jsx)("div",{className:y()(n),style:i,children:r})},ke="orderWrap___ZfyGX",Ie="orderIconWrap___XTB_O",Ze="orderAsc___KWHmA",Ce="orderDesc___rHdbB",Se="active___a7eSP",Be="cursorPointer___gs9kL",De="orderTextWrap___teAKn",Ee=t(38854),Me=t(20834),Pe=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Re=function(e){var n,t=e.sortValue,i=e.dropValue,r=e.className,s=e.onSort,a=e.onDrop,o=e.dataSource,l=void 0===o?Pe:o;return(0,c.jsxs)("div",{className:y()(ke,r),children:[(0,c.jsx)(Ee.Z,{dropdownRender:function(){return(0,c.jsx)(Me.Z,{children:l.map((function(e,n){return(0,c.jsx)(Me.Z.Item,{onClick:function(){return a(e.id)},children:e.name},n)}))})},children:(0,c.jsx)("span",{className:De,children:null===(n=l.find((function(e){return i===e.id})))||void 0===n?void 0:n.name})}),(0,c.jsxs)("span",{className:Ie,children:[(0,c.jsx)("span",{className:Ze,children:(0,c.jsx)("i",{className:"asc"===t?"iconfont icon-sanjiaoxing-up font12 ".concat(Be," ").concat(Se):"iconfont icon-sanjiaoxing-up font12 ".concat(Be),onClick:function(){return s("asc"===t?"desc":"asc")}})}),(0,c.jsx)("span",{className:Ce,children:(0,c.jsx)("i",{className:"desc"===t?"iconfont icon-sanjiaoxing-down font12 ".concat(Be," ").concat(Se):"iconfont icon-sanjiaoxing-down font12 ".concat(Be),onClick:function(){return s("asc"===t?"desc":"asc")}})})]})]})},Fe=t(82242),ze=t.n(Fe),Oe=t(7557),Le=t.n(Oe),Te=t(41498),We=t.n(Te),Qe=t(39647),Ue=t.n(Qe),He={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ge=t(3113),Xe=["className","style","children","loading","openLoading","onClick","size","shape"],Ve=function(e){var n=e.className,t=e.style,r=e.children,s=e.loading,a=void 0!==s&&s,o=e.openLoading,l=e.onClick,d=void 0===l?function(){}:l,p=e.size,m=void 0===p?"middle":p,f=e.shape,v=void 0===f?"round":f,h=Ue()(e,Xe),x=(0,i.useState)(!1),g=u()(x,2),A=g[0],j=g[1];return(0,c.jsx)(Ge.ZP,ze()(ze()({onClick:(0,b.throttle)(function(){var e=We()(Le()().mark((function e(n){return Le()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o&&j(!0),e.prev=1,e.next=4,d(n);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:o&&j(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(n){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:y()(He.btn,He["".concat(m,"-").concat(v)],n),style:t,size:m,shape:v,loading:A||a},h),{},{children:r}))},Je="head___ghH72",Ye="node___mjPEy",qe=function(e){var n=e.className,t=e.style,i=e.children,r=void 0===i?null:i,s=e.onClick,a=e.title;return(0,c.jsxs)("div",{className:y()(Je,n),style:t,children:[(0,c.jsxs)("span",{className:"primary-hover",onClick:s,children:[(0,c.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,c.jsx)("b",{title:a,children:a}),(0,c.jsx)("div",{className:Ye,children:r})]})},Ke="btns___sNgTb",$e="confirm___Ozirl",en="cancel___aiq1I",nn=function(e){var n=e.confirmShow,t=void 0===n||n,i=e.confirmTitle,r=e.confirmClick,s=e.cancelShow,a=void 0===s||s,o=e.cancelTitle,l=e.cancelClick,u=e.className,d=e.style,p=e.confirmLoading,m=void 0!==p&&p;return(0,c.jsxs)("div",{className:y()(Ke,u),style:d,children:[t&&(0,c.jsx)(Ge.ZP,{loading:m,onClick:r,type:"primary",className:$e,children:i}),a&&(0,c.jsx)(Ge.ZP,{onClick:l,className:en,children:o})]})},tn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},rn=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,r=e.LeftContent,s=e.children,a=e.RightContent;return(0,c.jsx)("div",{className:y()(tn.fixedBottom,n),style:i,children:(0,c.jsxs)("div",{className:tn.wrap,children:[(0,c.jsx)("div",{className:tn.left,children:r}),(0,c.jsx)("div",{className:tn.center,children:s}),(0,c.jsx)("div",{className:tn.right,children:a})]})})},sn="crumbs___V41Oe",an="hover___bEIVd",cn=function(e){var n=e.className,t=e.style,r=void 0===t?{}:t,s=e.dataSource,a=void 0===s?[]:s;return(0,c.jsx)("div",{className:y()(sn,n),style:r,children:a.map((function(e,n){return n"," "]})]},n):(0,c.jsx)("span",{style:{color:"#5F6368"},children:e.name},n)}))})},on=t(31797),ln=["onChange"],un=on.Z.Countdown,dn=function(e){var n=e.onChange,t=Ue()(e,ln),r=(0,i.useState)(null),s=u()(r,2),a=s[0],o=s[1];(0,i.useEffect)((function(){"number"==typeof a&&a>=0&&n(a)}),[a]);return(0,c.jsx)(un,ze()(ze()({},t),{},{onChange:function(e){var n=Math.floor(e/1e3);o(n)}}))}},38060:function(e,n,t){t.d(n,{Z:function(){return S}});var i=t(7557),r=t.n(i),s=t(41498),a=t.n(s),c=t(59301),o=(t(88780),t(43418)),l=t(8591),u=t(92832),d=t(95237),p=t(43604),m=t(35423),f=t(56102),v=t(5296),h=t(98382),x=t(92723),g=t(18030),A=t(79800),j=t.n(A),w=t(21082),y=t(37712),b=(0,c.forwardRef)((function(e,n){e.time;console.log("ScreenRecord:",n);var t=(0,c.useRef)(),i=(0,c.useState)(),s=j()(i,2),o=(s[0],s[1],(0,c.useRef)()),u=[];function d(){return(d=a()(r()().mark((function e(n,t){var i,s;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=[],e.next=3,new MediaRecorder(n);case 3:(s=e.sent).ondataavailable=function(e){i.push(e.data)},s.start(),o.current=s,window.recorderRefs=s,s.addEventListener("stop",(function(e){var n=URL.createObjectURL(i[0],{type:"video/mp4"});(0,w.Nd)("xxx.webm",n)}));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(){window.recorderRefs?(t.current.srcObject.getTracks().forEach((function(e){e.stop()})),window.recorderRefs.addEventListener("dataavailable",(function(e){var n=URL.createObjectURL(e.data,{type:"video/mp4"});(0,w.Nd)("屏幕录制视频.webm",n)}))):l.ZP.warning("您还没有开启视频录制,请先去录制视频吧!")}function m(){navigator.mediaDevices.getDisplayMedia({video:!0,audio:!0}).then((function(e){return t.current.srcObject=e,u.push(e),t.current.captureStream=t.current.captureStream||t.current.mozCaptureStream,new Promise((function(e){return t.current.onplaying=e}))})).then((function(){return function(e,n){return d.apply(this,arguments)}(t.current.captureStream(),2e3)})).then((function(e){})).catch((function(e){"NotFoundError"===e.name?l.ZP.warning("找不到摄像头或麦克风。无法录制."):"UnknownError"===e.name&&l.ZP.warning("录制失败")}))}return(0,c.useImperativeHandle)(n,(function(){return{startScreenRecord:m,downloadFile:p}})),(0,y.jsx)("div",{style:{position:"absolute",top:"0",zIndex:-1},children:(0,y.jsx)("video",{onPause:function(){},width:"60",height:"120",autoPlay:!0,muted:!0,ref:t})})})),_=b,N=t(89392),k=t(41071),I=t(7352),Z=t(93697),C={1:"简单",2:"中等",3:"困难"},S=function(e){var n=e.className,t=e.git_url,i=e.difficulty,s=e.task_pass,A=e.test_set_permission,j=e.onVncAction,b=e.windows_vnc,S=(e.linux_vnc,e.vnc_url,e.unity_3d_routes),B=(e.index_tab,e.shixun_environment_id),D=e.tab_type,E=e.reboot_cloud,M=e.cloud_type,P=e.resData,R=e.instance_startup_type,F=e.mirror_description_multi,z=e.is_jupyter_notebook,O=e.is_jupyter_lab,L=e.jupyterData,T=e.is_jupyter,W=e.onHideToolBar,Q=e.monitoring_url,U=e.port,H=e.token,G=(0,v.useParams)(),X=(0,c.useRef)();console.log("----",L);var V=4===M?"/data/workspace/userfiles":b?"C:/Windows/AppReadiness/userfiles":"/data/workspace/userfiles",J=4===M?"/data/workspace/userfiles":b?"C:/Windows/AppReadiness/downloadfiles":"/data/workspace/downloadfiles",Y=!(0,N.isEmpty)(P)||!(0,N.isEmpty)(L),q=L?{name:null==L?void 0:L.main_mirror_name,description:null==L?void 0:L.main_mirror_description}:null==F?void 0:F.find((function(e){return e.shixun_environment_id===B})),K=function(){var e=a()(r()().mark((function e(){var n,t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:W(),n="",t=String(Math.random()),o.Z.confirm({icon:null,className:I.Z.CustomTipsModalCss,okButtonProps:{type:"primary"},centered:!0,width:460,okText:"预览",cancelText:"取消",title:"服务预览",content:(0,y.jsxs)("div",{style:{height:95},children:[(0,y.jsx)("div",{className:"mb5 c-grey-333 font14 mb10",children:"服务预览将为实验环境内部服务映射到临时域名,仅供预览测试使用。请填写内部服务端口,并确认服务正常启动。"}),(0,y.jsxs)("div",{children:[(0,y.jsx)("span",{className:"c-grey-999 font14 mr10",children:"端口号"}),(0,y.jsx)(u.Z,{defaultValue:n,onChange:function(e){document.getElementById(t).style.display="none",n=e.target.value},maxLength:5,style:{width:326}})]}),(0,y.jsx)("div",{style:{display:"none",marginTop:4,marginLeft:52},id:t,className:"c-red"})]}),onOk:function(){var e=a()(r()().mark((function e(){var i,s,a,c;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=document.getElementById(t),n){e.next=5;break}return s.style.display="block",s.innerText="端口号不能为空",e.abrupt("return",Promise.reject());case 5:if(!n.includes(" ")){e.next=9;break}return s.style.display="block",s.innerText="端口号不能有空格",e.abrupt("return",Promise.reject());case 9:if(!n||!(n.includes(".")||isNaN(Number(n))||Number(n)>65535||Number(n)<=0||n.length>1&&"0"===n[0])){e.next=13;break}return s.style.display="block",s.innerText="请输入正确的端口号",e.abrupt("return",Promise.reject());case 13:return e.next=15,(0,g.ZP)("/api/tasks/".concat(G.taskId||G.identifier,"/port_proxy"),{method:"post",body:{port:Number(n),shixun_environment_id:B||null,tab_type:D||null,is_jupyter:T||!1}});case 15:return a=e.sent,e.next=18,new Promise((function(e,n){setTimeout((function(){e("")}),1e3)}));case 18:null!=a&&null!==(i=a.data)&&void 0!==i&&i.url&&(0,w.xg)(null==a||null===(c=a.data)||void 0===c?void 0:c.url);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return console.log(L,"jupyterData"),(0,y.jsxs)("div",{className:"tpi-code-setting ".concat(n),children:[(0,y.jsx)("h3",{children:"功能"}),(0,y.jsxs)("section",{children:[(S||z||O)&&(0,y.jsxs)("a",{title:"全屏",className:"file-item action",onClick:function(){j("full-screen")},children:[(0,y.jsx)("i",{className:"iconfont icon-quanping"}),"开启 / 退出全屏"]}),(2===D||3===D||4===D||z||O)&&(0,y.jsxs)("a",{onClick:function(){return j("reset-task")},className:"file-item action",title:"重置环境",children:[(0,y.jsx)("i",{className:"iconfont icon-zhongzhishixun1"}),"重置环境"]}),(2===D||3===D||5===D||O)&&(0,y.jsxs)("a",{onClick:function(){return j("reset-git-code")},className:"file-item action",title:"重置代码仓库",children:[(0,y.jsx)("i",{className:"iconfont icon-zhongzhishixun"}),"重置代码仓库"]}),(3===D||4===D||z||O)&&(0,y.jsxs)("a",{onClick:function(){return W(),void o.Z.info({title:"文件上传",icon:null,okText:"关闭",width:600,centered:!0,content:(0,y.jsx)("div",{className:"pt10",children:(0,y.jsx)(h.Z,{isDragger:!0,maxSize:200,additionalText:'默认存放目录路径为"'.concat(V,'"'),action:"".concat(x.Z.API_SERVER,"/api/tasks/").concat(G.taskId||G.identifier,"/upload_file?debug=admin&shixun_environment_id=").concat(B||null,"&tab_type=").concat(D||null,"&is_jupyter=").concat(T||!1),onChange:function(e){e.every((function(e){var n;return 0===(null===(n=e.response)||void 0===n?void 0:n.status)}))&&(o.Z.destroyAll(),l.ZP.info("文件上传成功")),console.log("fileList:",e)}})})})},className:"file-item action",title:"上传文件",children:[(0,y.jsx)("i",{className:"iconfont icon-shangchuanwenjian"}),"上传文件"]}),(3===D||4===D||z||O)&&(0,y.jsxs)("a",{onClick:function(){return W(),void o.Z.confirm({title:"下载代码",centered:!0,width:600,content:(0,y.jsxs)("div",{children:["代码下载功能:将“".concat(J,"”目录进行打包并下载"),(0,y.jsx)("br",{}),"(文件大小不得超过200MB)"]}),onOk:(e=a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.ZP)("/api/tasks/".concat(G.taskId||G.identifier,"/download_file?debug=admin"),{method:"post",body:{autoDownload:!0,shixun_environment_id:B||null,tab_type:D||null,is_jupyter:T||!1},headers:{responseType:"arraybuffer",Accept:"application/vnd.ms-excel;charset=utf-8"}});case 2:return e.abrupt("return",!0);case 3:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})});var e},className:"file-item action",title:"下载文件",children:[(0,y.jsx)("i",{className:"iconfont icon-xiazai3"}),"下载文件"]}),(3===D||5===D)&&(0,y.jsxs)("a",{onClick:function(){var e,n;null===(e=X.current)||void 0===e||null===(n=e.startScreenRecord)||void 0===n||n.call(e)},className:"file-item action",title:"屏幕录制",children:[(0,y.jsx)("i",{className:"iconfont icon-jiaruketang1"}),"屏幕录制"]}),((2===D||3===D||4===D)&&(0===M||1===M)||z||O)&&Y&&(0,y.jsxs)("a",{onClick:function(){return K()},className:"file-item action w100",title:"服务预览",children:[(0,y.jsx)("i",{className:"iconfont icon-suanfasheji"}),"服务预览"]}),E&&Y&&(0,y.jsxs)("a",{onClick:function(){return j("restart-reboot")},className:"file-item action",title:"重启云主机",children:[(0,y.jsx)(m.Z,{style:{marginRight:21,color:"#FFF"},className:"c-white font16"}),"重启云主机 "]}),(3===D||5===D||z||O)&&(0,y.jsxs)("a",{onClick:function(){return j("reset-code")},className:"file-item action",title:"恢复初始代码",children:[(0,y.jsx)("i",{className:"iconfont icon-zhongzhi font20",style:{marginRight:19}}),"恢复初始代码"]}),z&&(0,y.jsxs)("a",{className:"file-item action",target:"_blank",href:"https://".concat(U).concat(x.Z.TERMINAL_URL,"/terminals/1?token=").concat(H),children:[(0,y.jsx)("i",{className:"iconfont icon-minglinghang font16",style:{marginRight:22}}),"命令行终端"]}),t&&(0,y.jsx)(f.CopyToClipboard,{text:t,onCopy:function(){return l.ZP.success("复制成功")},children:(0,y.jsxs)("a",{title:"复制版本库地址",className:"file-item action",children:[(0,y.jsx)("i",{className:"iconfont icon-fuzhibanbenkudizhi1"}),"复制版本库地址"]})}),3===D&&(0,y.jsxs)("a",{className:"file-item action",onClick:function(){j("show-clipboard-box")},children:[(0,y.jsx)("i",{className:"iconfont icon-fuzhiniantie"}),"复制粘贴"]}),(0,Z.Ny)()&&(0,y.jsxs)("a",{className:"file-item action",href:Q||(null==L?void 0:L.monitoring_url),target:"_blank",children:[(0,y.jsx)("i",{className:"iconfont icon-jiankongfuwu2"}),"监控服务"]}),4===D&&Y&&(0,y.jsxs)("a",{className:"file-item action",onClick:function(){W(),o.Z.info({title:"SSH直连",width:600,centered:!0,content:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(d.Z,{children:[(0,y.jsx)(p.Z,{flex:"50px",children:"账号"}),(0,y.jsx)(p.Z,{children:null==P?void 0:P.username})]}),(0,y.jsxs)(d.Z,{children:[(0,y.jsx)(p.Z,{flex:"50px",children:"地址"}),(0,y.jsx)(p.Z,{children:null==P?void 0:P.ssh_address})]}),(0,y.jsxs)(d.Z,{children:[(0,y.jsx)(p.Z,{flex:"50px",children:"端口"}),(0,y.jsx)(p.Z,{children:null==P?void 0:P.port})]}),(0,y.jsxs)(d.Z,{children:[(0,y.jsx)(p.Z,{flex:"50px",children:"密码"}),(0,y.jsx)(p.Z,{children:null==P?void 0:P.password})]})]})})},children:[(0,y.jsx)("i",{className:"iconfont icon-congshulianjie"}),"SSH直连"]}),2===R&&Y&&(0,y.jsxs)("a",{className:"file-item action",onClick:function(){W(),o.Z.info({title:"RDP直连",icon:null,className:I.Z.CustomTipsModalCss,okButtonProps:{type:"primary"},okText:"我知道啦",width:600,centered:!0,content:(0,y.jsxs)("div",{children:[(0,y.jsxs)(d.Z,{children:[(0,y.jsx)(p.Z,{className:"c-grey-999",flex:"50px",children:"账号"}),(0,y.jsx)(p.Z,{className:"c-grey-333",children:null==P?void 0:P.username})]}),(0,y.jsxs)(d.Z,{className:"mt10",children:[(0,y.jsx)(p.Z,{className:"c-grey-999",flex:"50px",children:"地址"}),(0,y.jsx)(p.Z,{className:"c-grey-333",children:null==P?void 0:P.host})]}),(0,y.jsxs)(d.Z,{className:"mt10",children:[(0,y.jsx)(p.Z,{className:"c-grey-999",flex:"50px",children:"端口"}),(0,y.jsx)(p.Z,{className:"c-grey-333",children:4===M?null==P?void 0:P.gpPort:null==P?void 0:P.port})]}),(0,y.jsxs)(d.Z,{className:"mt10",children:[(0,y.jsx)(p.Z,{className:"c-grey-999",flex:"50px",children:"密码"}),(0,y.jsx)(p.Z,{className:"c-grey-333",children:null==P?void 0:P.password})]}),(0,y.jsx)("a",{style:{textDecoration:"underline",display:"inline-block"},href:"https://www.educoder.net/forums/36696",target:"_blank",className:"mt10 font14 current c-light-primary",children:"操作说明"})]})})},children:[(0,y.jsx)("i",{className:"iconfont icon-RDPzhilian"}),"RDP直连"]})]}),!!D&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("h3",{children:"关卡配置信息"}),(0,y.jsxs)("section",{children:[(0,y.jsxs)("a",{className:"file-item",title:s?"允许学员跳关挑战":"不允许学员跳关挑战",children:[(0,y.jsx)("b",{children:"跳关"}),(0,y.jsx)("span",{children:s?"允许":"不允许"})]}),(0,y.jsxs)("a",{className:"file-item",title:A?"允许学员通过金币解锁查看测试集内容":"不允许学员通过金币解锁查看测试集内容",children:[(0,y.jsx)("b",{children:"测试集解锁"}),(0,y.jsx)("span",{children:A?"允许":"不允许"})]})]})]}),(0,y.jsx)("h3",{children:"实训基本信息"}),(0,y.jsxs)("section",{children:[(0,y.jsxs)("div",{className:"file-item",children:[(0,y.jsx)("b",{children:"实训难易度"}),(0,y.jsx)("span",{children:(null==L?void 0:L.difficulty)||C[i]})]}),(0,y.jsxs)("div",{className:"file-item",style:{alignItems:"flex-start"},children:[(0,y.jsx)("b",{children:"实验环境"}),S?(0,y.jsx)("span",{className:"multi_ellipsis1",children:"暂无"}):q&&(0,y.jsx)(k.Z,{value:[q],title:"实验环境说明",children:(0,y.jsx)("span",{title:null==q?void 0:q.name,className:"multi_ellipsis1 current",children:null==q?void 0:q.name})})]}),(0,y.jsxs)("div",{className:"file-item",style:{alignItems:"flex-start"},children:[(0,y.jsx)("b",{children:"实验容器网络"}),S?(0,y.jsx)("span",{className:"multi_ellipsis1",children:"暂无"}):(0,y.jsx)("span",{title:null==q?void 0:q.name,className:"multi_ellipsis1 current",children:null!=q&&q.close_internet?"关闭外网":"开启外网"})]})]}),(0,y.jsx)(_,{ref:X})]})}},17751:function(e,n,t){var i=t(31468),r=t.n(i),s=t(7557),a=t.n(s),c=t(41498),o=t.n(c),l=t(79800),u=t.n(l),d=t(59301),p=t(31797),m=t(78241),f=t(43418),v=t(71418),h=t(61998),x=t(92832),g=t(94001),A=t(95237),j=t(43604),w=t(3113),y=t(31591),b=t(61186),_=t.n(b),N=t(5296),k=t(21082),I=t(55945),Z=t(93697),C=t(1058),S=t(37712);p.Z.Countdown;n.Z=(0,N.connect)((function(e){return{exercise:e.exercise}}))((function(e){var n,t,i,s,c=e.exercise,l=e.successCb,p=e.dispatch,b=(0,N.useParams)(),B=m.Z.useForm(),D=u()(B,1)[0],E=m.Z.useWatch("time",D),M=(0,d.useState)(!1),P=u()(M,2),R=P[0],F=P[1],z=(0,d.useRef)(),O=c.actionTabs,L=(0,d.useState)(),T=u()(L,2),W=T[0],Q=T[1],U=(0,C.U)(y.n7,{id:b.categoryId}),H=u()(U,4),G=H[1],X=H[2],V=H[3],J=(0,C.U)(y.Cd,{}),Y=u()(J,3),q=Y[1],K=Y[2];(0,d.useEffect)((function(){"student-unlock"===c.actionTabs.key&&(F(!1),D.resetFields())}),[c.actionTabs.key]);var $=function(){var e=o()(a()().mark((function e(){var n,t,i,r,s,c,u;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D.validateFields();case 2:if(s=D.getFieldsValue(),F(!0),!("no"!==(null==O||null===(n=O.exerciseParams)||void 0===n?void 0:n.ip_limit)||null!=O&&null!==(t=O.exerciseParams)&&void 0!==t&&t.ip_bind_type)){e.next=7;break}return e.next=7,new Promise(function(){var e=o()(a()().mark((function e(n){var t,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,I.y)({ip_limit:null==O||null===(t=O.exerciseParams)||void 0===t?void 0:t.ip_limit,ip_bind:null==O||null===(i=O.exerciseParams)||void 0===i?void 0:i.ip_bind_type});case 2:return z.current=e.sent,e.abrupt("return",n());case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}());case 7:return e.next=9,(0,y.ZD)(null==O||null===(i=O.exerciseParams)||void 0===i?void 0:i.id,{exercise_user_id:null==O||null===(r=O.exerciseParams)||void 0===r?void 0:r.exercise_user_id,unlock_key:s.unlock_key,time:s.time,ip:z.current});case 9:if(0!==e.sent.status){e.next=18;break}if(!l){e.next=15;break}return p({type:"exercise/setActionTabs",payload:{}}),l(),e.abrupt("return");case 15:u=null==O?void 0:O.exerciseParams,(0,k.nr)({inner_ip:u.inner_ip,public_ip:u.public_ip,open_camera:u.open_camera,ip_limit:u.ip_limit,ip_bind:u.ip_bind,ip_bind_type:u.ip_bind_type,exercise_tips:u.exercise_tips,exerciseId:u.id,screen_open:u.screen_open,screen_num:u.screen_num,screen_sec:u.screen_sec,coursesId:b.coursesId,login:null===(c=(0,Z.eY)())||void 0===c?void 0:c.login,history:history,identity_verify:u.identity_verify,open_phone_video_recording:u.open_phone_video_recording,current_status:u.current_status}),p({type:"exercise/setActionTabs",payload:{}});case 18:F(!1);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ee=[{title:"IP地址",dataIndex:"ip",key:"ip",render:function(e){return(0,S.jsx)("span",{className:e.indexOf("异常")>-1?"c-red":"c-green",children:e})}},{title:"浏览器",dataIndex:"browser",key:"browser",render:function(e){return(0,S.jsx)("span",{className:e.indexOf("异常")>-1?"c-red":"c-green",children:e})}},{title:"上次登录时间",dataIndex:"last_login_time",key:"last_login_time"}],ne=(null==O||null===(n=O.exerciseParams)||void 0===n?void 0:n.errorMessage)&&"object"===r()(null==O||null===(t=O.exerciseParams)||void 0===t?void 0:t.errorMessage);(0,d.useEffect)((function(){"student-unlock"===c.actionTabs.key&&o()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K(b);case 2:return n=e.sent,e.next=5,X({});case 5:n.status||Q(n);case 6:case"end":return e.stop()}}),e)})))()}),[c.actionTabs.key]);var te=(null==W?void 0:W.exercise)||{},ie=te.time,re=te.end_time,se=null!=V&&V.user_end_time?_()(null==V?void 0:V.user_end_time).add(1,"minutes"):_()(),ae=_()(null==V?void 0:V.user_total_end_time)>se?Math.round(_().duration(_()(null==V?void 0:V.user_total_end_time).diff(se.startOf("minute"))).asMinutes()):0,ce=((null==V?void 0:V.student_left_minutes)||0)+(E||0);return(0,S.jsx)(S.Fragment,{children:(0,S.jsx)(f.Z,{width:514,centered:!0,closable:!(null==O||null===(i=O.exerciseParams)||void 0===i||!i.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"提示",open:"student-unlock"===c.actionTabs.key,footer:null,onCancel:function(){p({type:"exercise/setActionTabs",payload:{}})},children:(0,S.jsxs)(v.Z,{spinning:G||q,children:[ne&&(0,S.jsx)("div",{style:{marginBottom:16},children:"该账号已经存在异常情况,若非本人操作,请联系监考老师说明情况。 "}),!ne&&(0,S.jsx)("div",{style:{marginBottom:16},children:"系统检测到您在考试时中途退出,现已将考试锁定。如需继续进行考试, 请尽快联系课堂老师进行解锁!"}),ne&&(0,S.jsx)(h.Z,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[(null==O||null===(s=O.exerciseParams)||void 0===s?void 0:s.errorMessage)||{}],columns:ee}),(0,S.jsx)("div",{className:"",children:(0,S.jsxs)(m.Z,{form:D,layout:"vertical",autoComplete:"off",children:[(0,S.jsx)(m.Z.Item,{label:"考试解锁码",name:"unlock_key",rules:[{required:!0,message:"请输入考试解锁码"}],children:(0,S.jsx)(x.Z.Password,{autoComplete:"off",placeholder:"请输入考试解锁码",visibilityToggle:!1})}),-1!==ie?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(m.Z.Item,{name:"time",label:(0,S.jsxs)("span",{children:["延长时间(",(0,S.jsxs)("span",{style:{color:"#9096A3"},children:["当前考试截止时间",_()(null==V?void 0:V.user_total_end_time).format("YYYY-MM-DD HH:mm")]}),")"]}),children:(0,S.jsx)(g.Z,{min:0,precision:0,max:ae,style:{width:"100%"},placeholder:"最大可延长时间为".concat(ae,"分钟,在学生剩余时间基础上延时"),addonAfter:"分钟"})}),(0,S.jsxs)("div",{className:"mb20",style:{color:"#FA6400"},children:["该学生剩余考试时间:",(0,S.jsx)("span",{className:"ml5",children:G||q?"--":ce}),"分钟",0!==ce&&(null==V?void 0:V.user_end_time)&&(0,S.jsxs)("span",{children:[",交卷截止时间:",(0,S.jsx)("span",{className:"ml5",children:_()(null==V?void 0:V.user_end_time).add(E||0,"m").format("YYYY-MM-DD HH:mm:ss")})]})]})]}):(0,S.jsxs)("span",{style:{color:"#F6A53B"},children:[" 当前考试未限制考生答题时长,考试截止时间为 ",_()(re).format("YYYY-MM-DD HH:mm")]})]})}),(0,S.jsxs)(A.Z,{justify:"space-between",align:"middle",children:[(0,S.jsx)(j.Z,{}),(0,S.jsx)(j.Z,{children:(0,S.jsx)(w.ZP,{loading:R,onClick:$,children:"进入考试"})})]})]})})})}))},90341:function(e,n,t){t.d(n,{$J:function(){return o},JZ:function(){return u},bN:function(){return m},jP:function(){return p},rO:function(){return l}});var i=t(7557),r=t.n(i),s=t(41498),a=t.n(s),c=t(18030);function o(e){return(0,c.U2)("libraries/".concat(e,".json"))}function l(){return(0,c.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(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,c.IV)("attachments/".concat(n,".json"));case 2:return t=e.sent,e.abrupt("return",0===t.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,c.v_)("libraries.json",e)}function m(e,n){return(0,c.gz)("libraries/".concat(e,".json"),n)}},41071:function(e,n,t){t.d(n,{Z:function(){return u}});var i=t(79800),r=t.n(i),s=t(59301),a="modal___yy3VB",c=t(43418),o=t(38279),l=t(37712),u=function(e){var n=e.title,t=e.children,i=e.value,u=(0,s.useState)(!1),d=r()(u,2),p=d[0],m=d[1];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{onClick:function(){return m(!0)},children:t}),(0,l.jsxs)(c.Z,{title:n,open:p,width:1e3,destroyOnClose:!0,centered:!0,onCancel:function(){return m(!1)},className:a,footer:null,children:["string"==typeof i&&(0,l.jsx)(o.Z,{value:i||""}),"[object Array]"===Object.prototype.toString.call(i)&&(0,l.jsx)(l.Fragment,{children:null==i?void 0:i.map((function(e,n){return(0,l.jsxs)("div",{children:[(0,l.jsx)("b",{children:e.name||e.type_name}),(0,l.jsx)(o.Z,{value:e.description||""})]},n)}))})]})]})}},43160:function(e,n,t){t.r(n),t.d(n,{default:function(){return Ke}});var i=t(82242),r=t.n(i),s=t(31468),a=t.n(s),c=t(7557),o=t.n(c),l=t(41498),u=t.n(l),d=t(79800),p=t.n(d),m=t(39647),f=t.n(m),v=t(59301),h=t(5296),x=t(92723),g=t(31797),A=t(8591),j=t(43418),w=t(24905),y=t(71418),b=t(3113),_=t(43428),N=t(61998),k=t(27092),I=t(17751),Z=t(35423),C={bg:"bg___yy2b4",header:"header___TfSCG",dragingMask:"dragingMask___i_1VX",content:"content___b8rIE",leftContainer:"leftContainer___BJcma",tabNav:"tabNav___uSNI4",mdContent:"mdContent___F9FMQ",resizeBar:"resizeBar___WbCV9","has-unity-3d":"has-unity-3d___BFusq","btn-resize":"btn-resize___Zfl7O",rightCotainer:"rightCotainer___iorUm",user:"user___I7MqL",titleWrap:"titleWrap___rJVb0",title:"title___jJ_Uz",endTimeWrap:"endTimeWrap___CSA6g",colorGray:"colorGray___oa4MJ",main:"main___LPfvU",loadFail:"loadFail___CrCok",reload:"reload___dIu1q",failIcon:"failIcon___g2eIS",failWrap:"failWrap___nbGWb",failReload:"failReload___nOEAI",dataSetButton:"dataSetButton___Oe8Wq",ac:"ac___XyH5r",dataSetText:"dataSetText___ltceD",dataSetOpen:"dataSetOpen___YeOkS",footer:"footer____7Qyw",start:"start___mqFxv",liWarp:"liWarp___MZgVd",li:"li___Pwqoe",disabled:"disabled___shXs_"},S=t(48064),B="drawerWrap___usUlu",D="drawer___o0tZt",E="title___N0L4E",M="disableTips___fbeqZ",P=t(38279),R=t(56102),F=t(37712),z=function(){var e=(0,v.useState)(!1),n=p()(e,2),t=n[0],i=n[1],r=(0,v.useRef)(),s=(0,v.useRef)();return[t,function(){clearTimeout(r.current),r.current=window.setTimeout((function(){i(!0),clearTimeout(s.current),s.current=window.setTimeout((function(){i(!1)}),1500)}),500)}]},O=function(e){var n=e.visible,t=e.x,i=e.y;return(0,F.jsx)("div",{className:M,style:n?{top:i,left:t}:{display:"none"},children:"禁止复制参考答案"})},L=(0,h.connect)((function(e){var n=e.loading;return{globalSetting:e.globalSetting,loading:n}}))((function(e){var n,t=e.visible,i=e.cancel,r=e.answerData,s=z(),a=p()(s,2),c=a[0],o=a[1],l=(0,v.useState)({x:0,y:0}),u=p()(l,2),d=u[0],m=u[1];return(0,F.jsx)(_.Z,{placement:"right",closable:!1,mask:!0,zIndex:998,onClose:i,width:600,open:2===t,rootClassName:B,children:(0,F.jsxs)("div",{className:D,children:[(0,F.jsxs)("h2",{className:E,style:{display:"flex",paddingRight:20,justifyContent:"space-between"},children:["参考答案 ",!(null!=r&&r.disable_copy)&&(0,F.jsx)(R.CopyToClipboard,{text:null==r||null===(n=r.standard_answer)||void 0===n?void 0:n.substring(3,(null==r?void 0:r.standard_answer.length)-3),onCopy:function(){return A.ZP.success("复制成功")},children:(0,F.jsx)("a",{style:{fontSize:16,fontWeight:400},children:"复制"})})]}),(0,F.jsx)("div",{className:"pl20 pr20",children:(0,F.jsxs)("div",{style:{userSelect:null!=r&&r.disable_copy?"none":"auto"},onMouseOver:function(e){m({x:e.clientX,y:e.clientY}),o()},children:[(null==r?void 0:r.disable_copy)&&(0,F.jsx)(O,{visible:c,x:d.x,y:d.y}),(0,F.jsx)(P.Z,{value:null==r?void 0:r.standard_answer})]})})]})})})),T=t(73096),W=t(37205),Q=t.n(W),U=t(51638),H=t(60344),G=t(26724),X=t.n(G),V="drawerWrap___dkOcq",J="drawer___ntUC2",Y="title___Z2x84",q="closeBtn___V3pCn",K="titleIcon___mIUoJ",$="filePathWrap___ib1bc",ee="filePathContent___JrvtY",ne="folderName___m5MVw",te="copy___EPMue",ie="listWrap___QzkC1",re="item___msJ9l",se="itemText___u5GrX",ae=(0,h.connect)((function(e){var n=e.loading;return{globalSetting:e.globalSetting,loading:n}}))((function(e){e.globalSetting,e.loading,e.dispatch;var n=e.visible,t=e.identifier,i=e.cancel,r=(0,v.useState)([]),s=p()(r,2),a=s[0],c=s[1],l=(0,v.useState)(),d=p()(l,2),m=(d[0],d[1]),f=(0,v.useState)(),h=p()(f,2),x=h[0],g=h[1],j=(0,v.useState)(),w=p()(j,2),y=w[0],b=w[1],N=(0,v.useState)({page:1,limit:20,identifier:null}),k=p()(N,2),I=k[0],Z=k[1];(0,v.useEffect)((function(){t&&(I.identifier=t,Z(I),C(I))}),[t]);var C=function(){var e=u()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.a$)(n);case 2:(t=e.sent)&&(c((function(e){return[].concat(Q()(e||[]),Q()((null==t?void 0:t.data_sets)||[]))})),b(20===(null===(i=t.data_sets)||void 0===i?void 0:i.length)),m(t.data_sets_count),g(t.folder_name));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,F.jsx)(_.Z,{placement:"right",closable:!1,mask:!1,onClose:i,width:330,zIndex:998,open:1===n,rootClassName:V,children:(0,F.jsxs)("div",{className:J,children:[(0,F.jsxs)("h2",{className:Y,children:[(0,F.jsx)(U.Z,{className:q,onClick:i}),(0,F.jsx)("i",{className:"iconfont icon-base ".concat(K)}),"数据集"]}),(0,F.jsxs)("div",{className:$,children:[(0,F.jsx)("span",{className:"ml50",children:"文件路径"}),(0,F.jsxs)("div",{className:ee,children:[(0,F.jsx)("span",{className:ne,children:x}),(0,F.jsx)(R.CopyToClipboard,{text:x,onCopy:function(){return A.ZP.success("复制成功")},children:(0,F.jsx)("span",{className:"".concat(te," current"),children:"复制地址"})})]})]}),(0,F.jsx)("div",{className:ie,children:(0,F.jsx)(X(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(e){return I.page=I.page+1,Z(I),void C(I)},hasMore:y,useWindow:!1,children:a.map((function(e,n){return(0,F.jsxs)("div",{className:re,children:[(0,F.jsxs)("span",{className:se,title:e.title,children:[(0,F.jsx)(H.Z,{style:{color:"#28b887",fontSize:25}}),e.title]}),(0,F.jsx)(R.CopyToClipboard,{text:e.file_path,onCopy:function(){return A.ZP.success("复制成功")},children:(0,F.jsx)("span",{className:"".concat(te," current"),children:"复制地址"})})]})}))})})]})})})),ce="wrap___SEtIN",oe="bg___JE5ml",le=function(e){var n=e.showModal,t=e.setShowModal;return(0,F.jsx)("div",{className:ce,style:{display:n?"flex":"none"},children:(0,F.jsx)("div",{className:oe,children:(0,F.jsx)("i",{onClick:function(){return t(!1)},className:"iconfont icon-roundclose"})})})},ue=t(55874),de=t(45804),pe=t(40689),me=t(79818),fe=t.n(me),ve="diff-panel-container___DRHwS",he="diff-panel-container-2___T3Rde",xe=new(fe());xe.Diff_EditCost=8;var ge={oldStr:"",newStr:""};function Ae(e,n){if("init"===n.type)return r()(r()({},e),n.payload);throw new Error}function je(e,n){var t=e[0],i=(e[1]||"").replace(/&/g,"&").replace(//g,">"),r=!i.trim();if("oldStr"===n)switch(t){case me.DIFF_DELETE:return"")+i+"";case me.DIFF_EQUAL:return""+i+""}else switch(t){case me.DIFF_INSERT:return"")+i+"";case me.DIFF_EQUAL:return""+i+""}}var we=function(e){var n,t,i=e.output,r=e.actual_output,s=(0,v.useReducer)(Ae,ge),a=p()(s,2),c=a[0],o=a[1];return i=null===(n=i)||void 0===n?void 0:n.replace(/\n/g,"\r").replace(/\u0020/g," ").replace(/\u0000/g,"\\u0000"),r=null===(t=r)||void 0===t?void 0:t.replace(/\n/g,"\r").replace(/\u0020/g," ").replace(/\u0000/g,"\\u0000"),(0,v.useEffect)((function(){var e=xe.diff_main(i||"",r||"");xe.diff_cleanupEfficiency(e);var n=e.map((function(e){return je(e,"oldStr")})).join(""),t=e.map((function(e){return je(e,"newStr")})).join("");o({type:"init",payload:{oldStr:n,newStr:t}})}),[i,r]),(0,F.jsxs)("div",{className:ve,children:[(0,F.jsx)("div",{dangerouslySetInnerHTML:{__html:c.oldStr}}),(0,F.jsx)("div",{dangerouslySetInnerHTML:{__html:c.newStr}})]})},ye=t(21082),be={"choose-game-item":"choose-game-item___sJBZO","output-title-container":"output-title-container___HnzHt","output-title":"output-title___cQCt2","test-case-list":"test-case-list___ULWwO","test-header":"test-header___HMjcY",active:"active___YxidH","resize-y-bar":"resize-y-bar___es6Oh","test-result":"test-result___zXN_Y","markdown-body":"markdown-body___EHEjV",success:"success___ZvFU2",failer:"failer___lQvRe",count:"count___lVWvy","test-case-item":"test-case-item___ptoQn","case-header":"case-header___UDkvN",iconfont:"iconfont___XT_ll",description:"description___BJIlI","item-desc":"item-desc___e8tqN",show:"show___nh0Ha","item-tip":"item-tip___H05sn","arrow-down":"arrow-down___DcvbX","test-title":"test-title___2XlIU","arrow-right":"arrow-right___a5kiA","case-info":"case-info___akfl1","test-case-run-header":"test-case-run-header___rIpIu","test-case-run-wrp":"test-case-run-wrp___hfxtY",title:"title___ldXVu",warp:"warp_____VWp",spin:"spin___OU0Kn",spinTest:"spinTest___UNIX8","diff-panel-container":"diff-panel-container___xo1_S"},_e=new(fe());_e.Diff_EditCost=8;var Ne={oldStr:"",newStr:""};function ke(e,n){if("init"===n.type)return r()(r()({},e),n.payload);throw new Error}function Ie(e,n){var t=e[0],i=(e[1]||"").replace(/&/g,"&").replace(//g,">"),r=!i.trim();if("oldStr"===n)switch(t){case me.DIFF_DELETE:return"")+i+"";case me.DIFF_EQUAL:return""+i+""}else switch(t){case me.DIFF_INSERT:return"")+i+"";case me.DIFF_EQUAL:return""+i+""}}var Ze=function(e){var n,t,i=e.output,r=e.actual_output,s=(0,v.useReducer)(ke,Ne),a=p()(s,2),c=a[0],o=a[1];return i=null===(n=i)||void 0===n?void 0:n.replace(/\n/g,"\r"),r=null===(t=r)||void 0===t?void 0:t.replace(/\n/g,"\r"),(0,v.useEffect)((function(){var e=_e.diff_main(i||"",r||"");_e.diff_cleanupEfficiency(e);var n=e.map((function(e){return Ie(e,"oldStr")})).join(""),t=e.map((function(e){return Ie(e,"newStr")})).join("");o({type:"init",payload:{oldStr:n,newStr:t}})}),[i,r]),(0,F.jsx)("div",{style:{width:"100%"},className:"c-white ".concat(ve," ").concat(he),children:(0,F.jsx)("div",{style:{minHeight:0,padding:"0px 12px"},dangerouslySetInnerHTML:{__html:c.oldStr}})})},Ce=t(93697);function Se(e){var n=e.ts_mem,t=e.ts_time,i=e.input,r=e.output,s=e.actual_output,a=e.is_file,c=e.output_file_url,o=e.result,l=e.compile_success,u=e.title,d=e.isActive,m=e.id,f=e.onActive,h=e.is_public,x=(e.test_sets_view,e.identity,e.is_invisible),g=e.actual_output_visible,j=e.user,w=(0,v.useState)(!1),y=p()(w,2),b=y[0],_=y[1];return x&&(null==j?void 0:j.identity_number)>5&&(r="该预期输出不可查看"),g&&(null==j?void 0:j.identity_number)>5&&(s="该实际输出不可查看"),(0,F.jsxs)("li",{className:be["test-case-item"],children:[(0,F.jsxs)("a",{className:be["case-header"],style:{borderWidth:d?1:0},onClick:function(){(0,Ce.I2)([Ce.GD.CertifiedTeacher,Ce.GD.SuperAdmin,Ce.GD.Operation])||h?f(m):A.ZP.info("本测试集不可解锁")},children:[(0,F.jsxs)("h2",{children:[(0,F.jsx)("div",{className:d?be["arrow-down"]:be["arrow-right"]}),(0,F.jsx)("span",{className:be["test-title"],children:u})]}),(0,F.jsxs)("div",{className:be["case-info"],children:[n?(0,F.jsxs)("span",{className:be.description,children:["消耗内存",n,"MB"]}):null,t?(0,F.jsxs)("span",{className:be.description,children:[" 代码执行时长:",t,"秒 "]}):null,h?null:(0,F.jsx)("i",{className:"iconfont icon-suo1"}),l>0?(0,F.jsx)("img",{width:16,src:o?ue.Z:de.Z}):null]})]}),(0,F.jsxs)("div",{className:"".concat(be["item-desc"]," ").concat(be["choose-game-item"]," ").concat(d?be.show:be.hide),children:[i&&(0,F.jsxs)("span",{style:{color:"white",display:"flex",alignItems:"center"},children:["测试输入",i&&(0,F.jsx)("div",{style:{width:"33%"},children:(0,F.jsx)(Ze,{output:i})})]}),(0,F.jsxs)("p",{className:be["output-title-container"],style:{marginTop:10},children:[(0,F.jsx)("span",{style:{color:"#747a7f"},children:"——预期输出——"}),(0,F.jsxs)("span",{className:be["output-title"],children:[(0,F.jsx)("span",{style:{color:"#fff"},children:"——实际输出——"}),!a&&(0,F.jsx)("span",{className:"c-blue current",onClick:function(){return _(!b)},children:b?"展示格式化输出":"展示原始输出"})]})]}),a&&(0,F.jsxs)("div",{className:be["diff-panel-container"],children:[(0,F.jsx)("div",{className:"tc",children:(0,F.jsx)("a",{className:"underline",onClick:function(){return(0,ye.LR)(c,r)},children:r})}),(0,F.jsx)("div",{className:"tc",children:l?(0,F.jsx)("a",{className:"underline",onClick:function(){return(0,ye.LR)(s,r)},children:r}):s})]}),!a&&!b&&(0,F.jsx)(we,{output:r,actual_output:s}),!a&&b&&(0,F.jsxs)("div",{className:be["diff-panel-container"],children:[(0,F.jsx)("div",{className:"",children:r}),(0,F.jsx)("div",{className:"",children:s})]})]})]})}var Be=function(e){var n=e.test_sets,t=e.gamesData,i=e.loading,s=e.codeMessage,a=e.jupyterData,c=(0,v.useState)(-1),o=p()(c,2),l=o[0],u=o[1],d=(0,v.useRef)();function m(e){u(e===l?-1:e)}return(0,v.useEffect)((function(){if(d.current){var e=function(e){r=i.offsetHeight,s=!0,a=e.pageY,(0,ye.kk)("none"),document.onselectstart=function(){return!1}},n=function(){s=!1,(0,ye.kk)("auto"),document.onselectstart=null},t=function(e){if(s){var n=a-e.pageY,t=r+n;t<200&&(t=200),t>window.innerHeight-130&&(t=window.innerHeight-130),i.style.height=t+"px"}},i=document.getElementById("jupyter-test-case-list"),r=0,s=!1,a=0,c=document.getElementById("jupyter-y-bar");return null==c||c.addEventListener("mousedown",e),document.addEventListener("mousemove",t),document.addEventListener("mouseup",n),function(){var i=document.getElementById("jupyter-y-bar");null==i||i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)}}}),[d]),(0,F.jsxs)("ul",{id:"jupyter-test-case-list",className:be["test-case-list"],children:[(0,F.jsx)("div",{className:be["resize-y-bar"],id:"jupyter-y-bar",ref:d,draggable:!1,children:(0,F.jsx)("i",{className:"iconfont icon-guangbiao",draggable:!1})}),(0,F.jsx)("div",{className:be.warp,children:(0,F.jsxs)(y.Z,{tip:s,spinning:i,className:be.spinTest,children:[(0,F.jsx)("div",{className:be.title,style:{color:"white"},children:"测试结果:"}),null!=t&&t.last_compile_output?(0,F.jsxs)("p",{className:"".concat(be["test-result"]," ").concat(0===(null==t?void 0:t.sets_error_count)?be.success:be.failer),children:[(0,F.jsxs)("span",{className:be.count,children:[(0,F.jsx)("img",{width:16,src:0===(null==t?void 0:t.sets_error_count)?ue.Z:pe.Z}),(null==t?void 0:t.test_sets_count)-(null==t?void 0:t.sets_error_count),"/",null==t?void 0:t.test_sets_count]}),0==(null==t?void 0:t.sets_error_count)?(0,F.jsx)("span",{className:be.count,children:"全部通过"}):(0,F.jsx)("div",{dangerouslySetInnerHTML:{__html:null==t?void 0:t.last_compile_output}})]}):null,!i&&n.map((function(e,n){return(0,F.jsx)(Se,r()(r()({title:"测试用例".concat(n+1)},e),{},{isActive:l===n,id:n,user:null==a?void 0:a.user,onActive:m}),"item"+n)}))]})})]})},De=t(26830),Ee=t(21978),Me=t(52787),Pe=function(e){var n=e.noDragging,t=e.moveX;return(0,F.jsx)(v.Fragment,{children:n?(0,F.jsx)("a",{className:"trapezoid ".concat(.01===t?"enlarge":""),children:(0,F.jsx)("img",{src:.01===t?Ee:Me,alt:"resize-icon",width:20})}):(0,F.jsx)("a",{className:"btn-resize",draggable:!1,children:(0,F.jsx)("svg",{width:"16",height:"13",viewBox:"0 0 16 13",children:(0,F.jsx)("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})})})})},Re=function(e,n){switch(n.type){case"MOVE_X":return r()(r()({},e),{},{moveX:n.payload});case"SET_DRAGMODULE":return r()(r()({},e),{},{showDragModule:n.payload});case"TRIGGER_RIGHT_PANEL_MASK":return r()(r()({},e),{},{showDragMask:n.payload})}},Fe=t(50021),ze=t(18030),Oe=t(55945),Le=t(24808),Te=t(38060),We=t(13275),Qe=t(680),Ue=t(31591),He=t(61186),Ge=t.n(He),Xe=t(76890),Ve=["globalSetting","loading","dispatch","user"],Je=g.Z.Countdown,Ye=function(e){return e[e.LoadFail=1]="LoadFail",e[e.ReLoad=2]="ReLoad",e[e.Success=3]="Success",e}(Ye||{}),qe={moveX:"40%",showDragModule:!1,showDragMask:!1},Ke=(0,h.connect)((function(e){var n=e.loading;return{globalSetting:e.globalSetting,loading:n,user:e.user}}))((function(e){e.globalSetting,e.loading;var n,t,i,s,c,l,d,m,g=e.dispatch,B=e.user,D=(f()(e,Ve),(0,h.useParams)()),E=(0,h.useSearchParams)(),M=p()(E,1)[0],R=((0,h.useLocation)(),(0,v.useRef)()),z=(0,v.useState)(!0),O=p()(z,2),W=O[0],Q=O[1],U=(0,v.useState)(!1),H=p()(U,2),G=H[0],X=H[1],V=(0,v.useState)(0),J=p()(V,2),Y=J[0],q=J[1],K=(0,v.useState)(0),$=p()(K,2),ee=$[0],ne=$[1],te=(0,v.useState)(!0),ie=p()(te,2),re=ie[0],se=ie[1],ce=(0,v.useState)(!1),oe=p()(ce,2),ue=oe[0],de=oe[1],pe=(0,v.useRef)(!0),me=(0,v.useState)({}),fe=p()(me,2),ve=fe[0],he=fe[1],xe=(0,v.useState)({}),ge=p()(xe,2),Ae=ge[0],je=ge[1],we=(0,v.useState)(),be=p()(we,2),_e=be[0],Ne=be[1],ke=(0,v.useRef)(),Ie=(0,v.useRef)(),Ze=(0,v.useState)(Ye.Success),Ce=p()(Ze,2),Se=Ce[0],Ee=Ce[1],Me=(0,v.useState)(),He=p()(Me,2),Ke=He[0],$e=He[1],en=(0,v.useState)(),nn=p()(en,2),tn=nn[0],rn=nn[1],sn=(0,v.useState)(!1),an=p()(sn,2),cn=an[0],on=an[1],ln=(0,v.useState)(""),un=p()(ln,2),dn=un[0],pn=un[1],mn=(0,v.useRef)(null),fn=(0,v.useRef)({}),vn=(0,v.useRef)(!1),hn=(0,v.useRef)(),xn=(0,v.useReducer)(Re,qe),gn=p()(xn,2),An=gn[0],jn=gn[1],wn=(0,v.useState)(!1),yn=p()(wn,2),bn=yn[0],_n=yn[1],Nn=(0,v.useState)(!0),kn=p()(Nn,2),In=kn[0],Zn=kn[1],Cn=(0,v.useRef)(),Sn=(0,v.useRef)(!1),Bn=(0,v.useState)(!1),Dn=p()(Bn,2),En=Dn[0],Mn=Dn[1],Pn=(0,v.useState)(!1),Rn=p()(Pn,2),Fn=Rn[0],zn=Rn[1],On="exercises"===M.get("type")||M.get("homework_common_id"),Ln=(0,v.useState)([]),Tn=p()(Ln,2),Wn=Tn[0],Qn=Tn[1],Un=(0,v.useState)(!1),Hn=p()(Un,2),Gn=Hn[0],Xn=Hn[1],Vn=(0,v.useState)({page:1,limit:5}),Jn=p()(Vn,2),Yn=Jn[0],qn=Jn[1],Kn=(0,v.useState)(!1),$n=p()(Kn,2),et=($n[0],$n[1]);(0,v.useEffect)((function(){var e;0!==(null==B||null===(e=B.userInfo)||void 0===e?void 0:e.user_status)&&((new Date).getTime()>parseFloat(localStorage.getItem("task_ignore"))||0===parseFloat(localStorage.getItem("task_ignore")||0))?et(!0):et(!1)}),[localStorage.getItem("task_ignore"),null==B?void 0:B.userInfo]),(0,v.useEffect)((function(){return g({type:"globalSetting/headerFooterToggle",payload:!1}),M.get("exercisesId")&&"coursesId"!==M.get("coursesId")&&nt(),function(){g({type:"globalSetting/headerFooterToggle",payload:!0})}}),[]),(0,v.useEffect)((function(){0!==Y?(clearInterval(mn.current),mn.current=setInterval((function(){q(Y-1)}),1e3)):clearInterval(mn.current)}),[Y]),(0,v.useEffect)((function(){return window.addEventListener("message",rt),function(){window.removeEventListener("message",rt)}}),[]),(0,v.useEffect)((function(){ct()}),[D.identifier]),(0,v.useEffect)((function(){ve.myshixun_identifier&&ot(),ve.tpm_modified&&tt()}),[ve]);var nt=function(){var e=u()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ue._B)({categoryId:M.get("exercisesId"),login:M.get("login")});case 2:n=e.sent,Cn.current=n;case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),tt=function(){mt({title:"更新通知",content:(0,F.jsxs)("p",{children:["关卡任务的代码文件有更新啦~",(0,F.jsx)("br",{})," 更新操作将保留已完成的评测记录和成绩。",(0,F.jsx)("br",{}),"还未完成评测的任务代码,请自行保存!"]})})},it=function(){var e=u()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return document.getElementById("taskJupyterIframe").contentWindow.postMessage("saveCode","*"),e.next=4,(0,ze.ZP)("/api/homework_commons/".concat(M.get("homework_common_id"),"/student_works.json"),{method:"post",body:{myshixun_identifier:null==ve?void 0:ve.myshixun_identifier}});case 4:0===(null==(n=e.sent)?void 0:n.status)&&A.ZP.info("提交成功");case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),rt=function(e){"jupytermessage"===(null==e?void 0:e.data)&&pe.current&&(pe.current=!1,st(),vn.current||setTimeout((function(){return pe.current=!0}),500))},st=function(){var e=u()(o()().mark((function e(){var n,t,i,s,c,l,u,d,p;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Sn.current=!1,l="","inner"!==(null===(n=Cn.current)||void 0===n||null===(n=n.exercise)||void 0===n?void 0:n.ip_limit)&&"true"!==(null===(t=Cn.current)||void 0===t||null===(t=t.exercise)||void 0===t?void 0:t.ip_bind_type)){e.next=6;break}return e.next=5,(0,Oe.y)({ip_limit:null===(i=Cn.current)||void 0===i||null===(i=i.exercise)||void 0===i?void 0:i.ip_limit,ip_bind:"true"===(null===(s=Cn.current)||void 0===s||null===(s=s.exercise)||void 0===s?void 0:s.ip_bind_type)});case 5:l=e.sent;case 6:return e.next=8,(0,S.zE)({identifier:D.identifier,jupyter_port:Ie.current,token:R.current,jupyter_domain:null===(c=ke.current)||void 0===c||null===(c=c[0])||void 0===c?void 0:c.domain,exercise_id:M.get("exercisesId"),ip:l});case 8:if(0!==(u=e.sent).status){e.next=13;break}vn.current?at(null==u?void 0:u.data):A.ZP.success({content:"保存成功!",key:"save-jupyter"}),e.next=16;break;case 13:if(-5!==u.status||"object"!==a()(null==u?void 0:u.message)){e.next=16;break}return(0,h.getDvaApp)()._store.dispatch({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:r()(r()({},(null===(d=Cn.current)||void 0===d?void 0:d.exercise)||{}),{},{errorMessage:null==u?void 0:u.message,exercise_user_id:null===(p=Cn.current)||void 0===p||null===(p=p.exercise)||void 0===p?void 0:p.exercise_user_id,id:M.get("exercisesId")})}}),e.abrupt("return");case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),at=function(){var e=u()(o()().mark((function e(n){var t,i,s,a,c,l,d,p,m,f,v;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d={extras:{exercise_id:M.get("exercisesId"),question_id:M.get("questionId"),challenge_id:null==ve?void 0:ve.challenge_id},sec_key:null==n?void 0:n.sec_key,resubmit:null==n?void 0:n.resubmit,first:1,content_modified:0},"inner"!==(null===(t=Cn.current)||void 0===t||null===(t=t.exercise)||void 0===t?void 0:t.ip_limit)&&"true"!==(null===(i=Cn.current)||void 0===i||null===(i=i.exercise)||void 0===i?void 0:i.ip_bind_type)){e.next=5;break}return e.next=4,(0,Oe.y)({ip_limit:null===(s=Cn.current)||void 0===s||null===(s=s.exercise)||void 0===s?void 0:s.ip_limit,ip_bind:"true"===(null===(a=Cn.current)||void 0===a||null===(a=a.exercise)||void 0===a?void 0:a.ip_bind_type)});case 4:d.extras.ip=e.sent;case 5:return M.get("homework_common_id")&&(d.extras={homework_common_id:M.get("homework_common_id")}),e.next=8,(0,T.Xy)(null===(c=fn.current)||void 0===c?void 0:c.game_identifier,d);case 8:if(-1!==e.sent.status){e.next=18;break}if("exercises"!==M.get("type")){e.next=13;break}return window.parent.location.href="/classrooms/".concat(M.get("coursesId"),"/exercise/").concat(M.get("exercisesId"),"/detail"),e.abrupt("return");case 13:return X(!1),q(10),vn.current=!1,pe.current=!0,e.abrupt("return");case 18:p=1,m=!1,f=(null===(l=fn.current)||void 0===l?void 0:l.exec_time)+11,v=function(){var e=u()(o()().mark((function e(){var t,i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.Qo)(null===(t=fn.current)||void 0===t?void 0:t.game_identifier,{resubmit:null==n?void 0:n.resubmit,time_out:m,port:null===(i=fn.current)||void 0===i?void 0:i.port,sec_key:null==n?void 0:n.sec_key,challenge_id:null===(s=fn.current)||void 0===s?void 0:s.challenge_id});case 2:null===(null==(a=e.sent)?void 0:a.running_code_status)||1===(null==a?void 0:a.running_code_status)||2===(null==a?void 0:a.running_code_status)||0===(null==a?void 0:a.running_code_status)?((p+=1)>f&&(m=!0),m&&A.ZP.info("本次评测超时"),1!==(null==a?void 0:a.running_code_status)&&2!==(null==a?void 0:a.running_code_status)||pn(null==a?void 0:a.running_code_message),setTimeout((function(){v()}),1e3)):(2===a.status&&Mn(!0),je(r()({},a)),de(!0),X(!1),pn(""),q(10),vn.current=!1,pe.current=!0);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v();case 23:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),ct=function(){var e=u()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.dU)({identifier:D.identifier,homework_id:M.get("homework_common_id")});case 2:(n=e.sent)&&(he(n),fn.current=r()({},n),je(r()(r()({},Ae),{},{test_sets:(null==n?void 0:n.test_sets)||[]})),jn({type:"SET_DRAGMODULE",payload:n.jupyter_show_description}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ot=function(){var e=u()(o()().mark((function e(){var n,t,i,s,a,c,l,u,d,p,m,f,v,h,x;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},"exercises"===M.get("type")?t.exercise_id=M.get("exercisesId"):M.get("homework_common_id")&&(t.homework_common_id=M.get("homework_common_id")),e.next=4,(0,S.rV)(r()({identifier:D.identifier,homework_common_id:M.get("homework_common_id")||""},t));case 4:if(i=e.sent,Q(!1),null==i||null===(n=i.data)||void 0===n||null===(n=n.data_list)||void 0===n||!n.length){e.next=9;break}return Fe.Z.publish("pod-restrict-data",{identifier:null==i||null===(s=i.data)||void 0===s?void 0:s.identifier,data_list:null==i||null===(a=i.data)||void 0===a?void 0:a.data_list}),e.abrupt("return");case 9:if(null==i||!i.data){e.next=23;break}if(Ne(i.data),ke.current=i.data,R.current=null===(c=(0,ye.en)(null==i||null===(l=i.data)||void 0===l||null===(l=l[0])||void 0===l?void 0:l.link_url))||void 0===c?void 0:c.token,Ie.current=null==i||null===(u=i.data)||void 0===u||null===(u=u[0])||void 0===u?void 0:u.port,!((null===(d=i.data)||void 0===d?void 0:d.length)>1)){e.next=18;break}return $e(Date.now()+(null==i||null===(v=i.data)||void 0===v||null===(v=v[0])||void 0===v?void 0:v.remaining_time)),rn((null==i||null===(h=i.data)||void 0===h||null===(h=h[0])||void 0===h?void 0:h.remaining_time)-3e5<=0?Date.now()+1e3:Date.now()+((null==i||null===(x=i.data)||void 0===x||null===(x=x[0])||void 0===x?void 0:x.remaining_time)-3e5)),e.abrupt("return");case 18:return se(!1),Ee(Ye.Success),$e(Date.now()+(null==i||null===(p=i.data)||void 0===p||null===(p=p[0])||void 0===p?void 0:p.remaining_time)),rn((null==i||null===(m=i.data)||void 0===m||null===(m=m[0])||void 0===m?void 0:m.remaining_time)-3e5<=0?Date.now()+1e3:Date.now()+((null==i||null===(f=i.data)||void 0===f||null===(f=f[0])||void 0===f?void 0:f.remaining_time)-3e5)),e.abrupt("return");case 23:-1===i.status?(Ee(Ye.LoadFail),se(!1)):Ee(Ye.ReLoad);case 24:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),lt=function(){pt(!0),Q(!0),j.Z.confirm({centered:!0,title:"重置环境",content:" 是否确定重置环境?",okText:"确定",cancelText:"取消",onOk:function(){ut()},onCancel:function(){pt(!1),Q(!1)}})},ut=function(){var e=u()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.m_)({identifier:null==ve?void 0:ve.myshixun_identifier});case 2:if(0===(null==(n=e.sent)?void 0:n.status)){e.next=5;break}return e.abrupt("return");case 5:A.ZP.success("重置成功!"),Q(!1),setTimeout((function(){return window.location.reload()}),300);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),dt=function(){j.Z.destroyAll(),j.Z.confirm({centered:!0,title:"倒计时截止",content:(0,F.jsx)("p",{className:"tc font14",children:"服务已中断,是否确认重置实验环境?"}),okText:"确定",cancelText:"取消",onOk:function(){ut()}})},pt=function(e){var n=document.getElementById("taskJupyterIframe");n&&(e?n.contentWindow.postMessage("stopParent","*"):n.contentWindow.postMessage("clonsParent","*"))},mt=function(e){var n;j.Z.confirm({centered:!0,title:e.title,content:e.content,okText:"确定",cancelText:"取消",onOk:(n=u()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},"exercises"===M.get("type")?n.exercise_id=M.get("exercisesId"):M.get("homework_common_id")&&(n.homework_common_id=M.get("homework_common_id")),e.next=4,(0,S.fi)(r()({identifier:D.identifier},n));case 4:if(0===e.sent.status){e.next=7;break}return e.abrupt("return");case 7:A.ZP.success("操作成功"),Q(!1),setTimeout((function(){return window.location.reload()}),300);case 10:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)}),onCancel:function(){pt(!1),Q(!1)}})};(0,v.useEffect)((function(){function e(e){jn({type:"MOVE_X",payload:e.pageX})}function n(){jn({type:"TRIGGER_RIGHT_PANEL_MASK",payload:!1}),document.onselectstart=null}return An.showDragMask&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}}),[An.showDragMask]);var ft="number"==typeof An.moveX&&.01!==An.moveX?"".concat(An.moveX,"px"):"40%",vt="calc(100% - 4px - ".concat(ft,")"),ht=function(e){jn({type:"TRIGGER_RIGHT_PANEL_MASK",payload:e})},xt=(0,v.useState)(),gt=p()(xt,2),At=gt[0],jt=gt[1],wt=function(){var e=u()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ze.ZP)("/api/shixuns/".concat(n,"/get_standard_answer.json"),{method:"get",params:{from:"starting"}});case 2:0===(t=e.sent).status&&jt(t);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();function yt(){_n(!1)}(0,v.useEffect)((function(){ve.identifier&&wt(ve.identifier)}),[ve]);var bt=function(e){(0,We.vp)()?Zn(!1):Zn(!0)};function _t(){return Nt.apply(this,arguments)}function Nt(){return Nt=u()(o()().mark((function e(){var n,t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},"exercises"===M.get("type")?t.exercise_id=M.get("exercisesId"):M.get("homework_common_id")&&(t.homework_common_id=M.get("homework_common_id")),e.next=4,(0,T.Tf)(null==ve?void 0:ve.myshixun_identifier,r()({},t));case 4:if(-5!==(null==(i=e.sent)?void 0:i.status)){e.next=8;break}return j.Z.info({title:"提示",maskClosable:!0,icon:null,width:700,centered:!0,content:(0,F.jsxs)("div",{children:["该实践项目已在教学课堂考试(",(0,F.jsx)("a",{href:"/classrooms/".concat(null==i?void 0:i.course_identifier,"/exercise/").concat(null==i?void 0:i.exercise_id,"/detail"),children:null==i?void 0:i.exercise_name}),")中被使用,用户试卷已交卷,禁止再作答!"]})}),e.abrupt("return");case 8:return null===(n=window.location)||void 0===n||n.reload(),e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)}))),Nt.apply(this,arguments)}(0,v.useEffect)((function(){return document.addEventListener((0,We.gH)(),bt),hn.current=setInterval((function(){var e;e=new Event("beforeunload"),window.dispatchEvent(e)}),2e3),function(){clearInterval(hn.current),document.removeEventListener((0,We.gH)(),bt)}}),[]);var kt=function(){j.Z.confirm({title:"重置代码仓库",icon:(0,F.jsx)(Qe.Z,{}),content:"您的所有代码将被还原至初始状态,不影响通关状态与作业成绩。确认重置?",centered:!0,okText:"确定",cancelText:"取消",onOk:_t})},It={is_jupyter:!0,is_jupyter_notebook:!0===(null==ve?void 0:ve.is_jupyter),is_jupyter_lab:!1===(null==ve?void 0:ve.is_jupyter),jupyterData:ve,onVncAction:function(e){var n,t;yt(),"reset-task"===e&<(),"reset-git-code"===e&&kt(),"reset-code"===e&&(Q(!0),pt(!0),mt({title:"恢复初始代码",content:(0,F.jsxs)("div",{className:"tc font14",children:["你在本文件中修改的内容将丢失,",(0,F.jsx)("br",{}),"是否确定重新加载初始代码?"]})})),"full-screen"===e&&((0,We.vp)()?(0,We.BU)():(0,We.Dj)(null===(n=document)||void 0===n||null===(t=n.getElementById)||void 0===t?void 0:t.call(n,"juptyer")))},onHideToolBar:yt,port:null==_e||null===(n=_e[0])||void 0===n?void 0:n.port,token:R.current},Zt=(null==B||null===(t=B.userInfo)||void 0===t?void 0:t.user_id)===(null==ve||null===(i=ve.user)||void 0===i?void 0:i.user_id);console.log(Zt,null==B||null===(s=B.userInfo)||void 0===s?void 0:s.user_id,null==ve||null===(c=ve.user)||void 0===c?void 0:c.user_id,333);var Ct=function(){g({type:"user/getUserInfo",payload:{objective_id:ve.identifier,objective_type:"shixun"}}),"exercises"===M.get("type")&&"IFRAME"!==document.activeElement.tagName&&window.parent.postMessage("backExercise","*"),h.history.push("/shixuns/".concat(ve.identifier,"/challenges"))};return(0,F.jsxs)(y.Z,{spinning:W,tip:"加载中...",children:[(0,F.jsxs)("section",{id:"juptyer",className:C.bg,style:{userSelect:An.showDragMask?"none":"unset"},children:[An.showDragMask&&(0,F.jsx)("div",{className:C.dragingMask}),(0,F.jsxs)("header",{className:C.header,children:[(0,F.jsxs)("div",{className:C.user,children:[(0,F.jsx)("img",{src:"".concat(x.Z.IMG_SERVER,"/images/").concat(null==ve||null===(l=ve.user)||void 0===l?void 0:l.image_url),alt:"用户头像"}),(0,F.jsx)("span",{className:"ml10",children:null==ve||null===(d=ve.user)||void 0===d?void 0:d.name})]}),(0,F.jsxs)("div",{className:C.titleWrap,children:[(0,F.jsx)("span",{className:C.title,children:null==ve?void 0:ve.name}),(0,F.jsxs)("span",{children:[(0,F.jsx)(Je,{value:Ke,format:"HH:mm:ss",onFinish:dt}),(0,F.jsx)("span",{className:C.endTimeWrap,children:tn&&(0,F.jsx)(Je,{value:tn,format:"HH:mm:ss",onFinish:function(){var e;j.Z.destroyAll(),j.Z.confirm({centered:!0,title:"服务中断提醒",content:(0,F.jsxs)("div",{className:"tc font14",children:["jupyter将于",(0,F.jsx)("span",{children:(0,F.jsx)(Je,{value:Ke,format:"HH:mm:ss",onFinish:dt})}),"时间后服务中断,是否需要延长使用时间?"]}),okText:"立即延长",cancelText:"不需要",onOk:(e=u()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.rB)(null==ve?void 0:ve.myshixun_identifier);case 2:if(0!==e.sent.status){e.next=7;break}return e.next=6,ot();case 6:A.ZP.success("延长成功!");case 7:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})}})})]})]}),(0,F.jsxs)("div",{className:C.actionWrap,children:[ve.tpm_modified&&In&&(0,F.jsx)("img",{src:De.GY,onClick:tt,style:{position:"relative",top:-1,marginRight:8,cursor:"pointer"}}),On&&(0,F.jsx)(F.Fragment,{children:(0,F.jsx)("div",{onClick:u()(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,ze.ZP)("/api/tasks/".concat(D.identifier,"/jupyter_redo_logs.json"),{method:"get",params:Yn});case 2:if(0!==(null==(t=e.sent)?void 0:t.status)||0!==(null==t||null===(n=t.data)||void 0===n?void 0:n.count)){e.next=6;break}return A.ZP.info("暂无重置记录"),e.abrupt("return");case 6:Qn(null==t?void 0:t.data),Xn(!0);case 8:case"end":return e.stop()}}),e)}))),style:{display:"contents",color:"#888",cursor:"pointer"},children:"重置记录"})}),(null==ve?void 0:ve.manager_permission)&&(0,F.jsx)(b.ZP,{icon:(0,F.jsx)("span",{className:"iconfont font14 icon-peizhiyujiankong current"}),className:"".concat(C.colorGray," font14"),type:"link",onClick:function(){console.log("jupyterData",ve),zn(!0)},children:"配置与监控"}),In&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("img",{alt:"tool",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAABZ0lEQVRYR+2YrU7FQBBGzzwEPAMSi+M6MARDggNJgiIkWLiSBIFCkyCuQECCQFIcEstb8AYf2ZvmhpbuT9ttUpJWdma+OZ3O7k5rRC5Jh8ARsBPzjdhvgXczew75WSyJpCdgP+aXaP8ws63OQJK2gbdSYJ6Y1Od2WRpmZlb4nIIVqgEFhUKwbXTGByRpDzgBdnu+kr7hD8CLSboGLvqqZYp/dEDK1LR9mZZNXwEys6u+ql3iJbm8E5C3eFOFYn2VrUKS1oADYL1M+gW8mtl3DOK3PQuQpE1gAWzUkn8CZ6Hzqg6bC+gcuPFU4s7MTlOrlAvITQFuGijMbOaSS/pzLwXKB+QdCQKiXqAUkJqP06rs1B00liFNFeqqVQEaXYXmbc6ypn7J3UNtgUa3ysa1D5XLfDw7dedl1BCYZWOcgHJWIKb1f15Z7EkGtq+G/NXEP3DCFPl79xnkTln3u+U4JWJAH/czo/gBVkc5pun3NGoAAAAASUVORK5CYII=",width:14,style:{opacity:"0.45",margin:"0 -5px 2px 15px"}}),(0,F.jsx)(b.ZP,{className:"".concat(C.colorGray," font14"),type:"link",onClick:function(){_n(!bn)},children:"工具栏"})]}),(0,F.jsx)(b.ZP,{icon:(0,F.jsx)(Z.Z,{}),className:"".concat(C.colorGray," font14"),type:"link",onClick:function(){var e;console.log(Zt,777);var n,t=!(null!=B&&null!==(e=B.userInfo)&&void 0!==e&&null!==(e=e.shixun)&&void 0!==e&&e.editable);j.Z.confirm({title:"退出实训",icon:(0,F.jsx)(Qe.Z,{}),content:(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{children:"您确定要退出实训吗?"}),Zt&&(0,F.jsx)(w.Z,{className:"mt10",defaultChecked:t,onChange:function(e){t=e.target.checked},children:"退出实训时,立即释放实验资源"})]}),centered:!0,okText:"确定",cancelText:"取消",onOk:(n=u()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Zt||!t){e.next=7;break}return e.next=3,(0,Ue.eA)(null==ve?void 0:ve.myshixun_identifier);case 3:0==(null==(n=e.sent)?void 0:n.status)&&(A.ZP.success("释放资源成功"),setTimeout((function(){Ct()}),1e3)),e.next=8;break;case 7:Ct();case 8:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)}),onCancel:function(){}})},children:"退出"})]})]}),(0,F.jsxs)("section",{className:C.content,style:{height:null!=ve&&ve.open_evaluate?"calc(100vh - 130px)":"calc(100vh - 60px)"},children:[An.showDragModule&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)("section",{className:C.leftContainer,style:{width:ft,display:.01===An.moveX?"none":""},children:[(0,F.jsx)("div",{className:C.tabNav,children:(0,F.jsx)("div",{children:"任务要求"})}),(0,F.jsx)("div",{className:C.mdContent,children:(0,F.jsx)(P.Z,{stylesPrev:{position:"absolute"},value:ve.description||""})})]}),(0,F.jsx)("section",{className:C.resizeBar,onMouseDown:function(){ht(!0)},onMouseUp:function(){return ht(!1)},children:(0,F.jsx)(Pe,{noDragging:!1,moveX:An.moveX})})]}),(0,F.jsx)("section",{className:C.rightCotainer,style:{width:vt},children:(0,F.jsx)("main",{className:C.main,style:{height:"100%"},children:re?(0,F.jsxs)("div",{className:C.start,style:{visibility:W?"hidden":"visible"},children:[(0,F.jsx)("div",{className:C.title,children:"请点击一个文件进入实验环境,开始实验!"}),(0,F.jsx)("b",{className:"iconfont icon-dianji1"}),(0,F.jsx)("div",{className:C.liWarp,children:null==_e?void 0:_e.map((function(e,n){return(0,F.jsxs)("div",{onClick:function(){return e=n,se(!1),ne(e),ot(),void Ee(Ye.Success);var e},className:C.li,children:[(0,F.jsx)("i",{className:"iconfont icon-wenjian6"}),(0,F.jsx)("span",{title:e.name,children:e.name})]})}))})]}):(0,F.jsxs)(v.Fragment,{children:[In&&(0,F.jsx)("div",{style:{right:1===cn?330:2===cn&&600},className:"".concat(C.dataSetButton," ").concat(cn?"".concat(C.dataSetOpen," ").concat(1===cn?C.ac:""):""),onClick:function(e){on(!cn&&1),yt(),e.nativeEvent.stopPropagation()},children:(0,F.jsx)("span",{className:C.dataSetText,children:"数据集"})}),!(null!=At&&At.hide_answer)&&(0,F.jsx)("div",{style:{top:"53%",right:2===cn&&600},className:"".concat(C.dataSetButton," ").concat(cn?"".concat(C.dataSetOpen," ").concat(2===cn?C.ac:""):""),onClick:function(e){on(2),e.nativeEvent.stopPropagation()},children:(0,F.jsx)("span",{className:C.dataSetText,children:"参考答案"})}),Se===Ye.LoadFail&&(0,F.jsx)("div",{className:C.loadFail,children:" "}),Se===Ye.ReLoad&&(0,F.jsx)("div",{className:C.reload,children:(0,F.jsxs)("div",{className:C.failWrap,children:[(0,F.jsx)("i",{className:"iconfont icon-jiazaishibai1 ".concat(C.failIcon)}),(0,F.jsxs)("p",{className:"font12",children:["加载实训失败,",(0,F.jsx)("span",{className:C.failReload,onClick:ot,children:"重新加载"})]})]})}),Se===Ye.Success&&(0,F.jsx)("iframe",{frameBorder:0,id:"taskJupyterIframe",width:"100%",height:"100%",allow:"geolocation; microphone; camera; midi; encrypted-media;",src:null==_e||null===(m=_e[ee])||void 0===m?void 0:m.link_url}),(0,F.jsx)(ae,{visible:cn,identifier:ve.identifier,cancel:function(){on(!1)}}),(0,F.jsx)(L,{visible:cn,answerData:At,cancel:function(){return on(!1)}})]})})})]}),null!=ve&&ve.open_evaluate?(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)("div",{className:C.footer,style:{background:"#111c24"},children:[(0,F.jsxs)("span",{children:[null!=Ae&&Ae.time_limit?(0,F.jsx)("span",{children:"本关最大执行时间:".concat(null==Ae?void 0:Ae.time_limit,"秒")}):null,null!=Ae&&Ae.record_consume_time?(0,F.jsxs)("span",{className:"ml10",children:["本次评测耗时(编译、运行总时间):",null==Ae?void 0:Ae.record_consume_time," 秒"]}):null]}),(0,F.jsx)(b.ZP,{onClick:function(){return de(!ue)},type:"primary",ghost:!0,className:"mr20",children:ue?"隐藏测试结果":"查看测试结果"}),(0,F.jsx)(b.ZP,{className:C.disabled,disabled:0!==Y,loading:G,onClick:function(){Sn.current=!0;var e=document.getElementById("taskJupyterIframe");e&&(e.contentWindow.postMessage("saveCode","*"),vn.current=!0,X(!0),de(!0),setTimeout((function(){Sn.current&&st()}),5e3))},style:{padding:"0 30px"},type:"primary",children:0!==Y?"".concat(Y,"s"):"评测"})]})}):(0,F.jsx)(F.Fragment,{children:M.get("homework_common_id")&&!(null!=ve&&ve.homework_is_end)&&(0,F.jsx)("div",{className:C.footer,style:{background:"#111c24"},children:(0,F.jsx)(b.ZP,{onClick:function(){return it()},type:"primary",className:"mr20",children:"提交作品"})})}),ue&&(0,F.jsx)(Be,{codeMessage:dn,loading:G,gamesData:Ae,test_sets:(null==Ae?void 0:Ae.test_sets)||[],jupyterData:ve})]}),(0,F.jsx)(Le.Z,{children:(0,F.jsx)(_.Z,{width:280,rootClassName:"setting-drawer",title:null,placement:"right",closable:!1,open:bn,onClose:yt,children:(0,F.jsx)(Te.Z,r()({},It))})}),(0,F.jsx)(I.Z,{successCb:st}),(0,F.jsx)(le,{showModal:En,setShowModal:Mn}),(0,F.jsxs)(j.Z,{title:"重置记录",footer:!1,open:Gn,onCancel:function(){Xn(!1)},children:[(0,F.jsx)(N.Z,{dataSource:null==Wn?void 0:Wn.list,pagination:!1,scroll:{y:400},columns:[{title:"恢复初始代码时间",dataIndex:"created_at",render:function(e,n,t){return Ge()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"操作",dataIndex:"redo_type",render:function(e,n,t){var i;return null===(i=[{id:1,name:"打回重做"},{id:2,name:"恢复初始代码"},{id:3,name:"重置代码仓库"}].find((function(n){return n.id===e})))||void 0===i?void 0:i.name}}]}),(0,F.jsx)(k.Z,{style:{marginTop:10},pageSize:Yn.limit,current:Yn.page,total:null==Wn?void 0:Wn.count,onChange:function(){var e=u()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Yn.page=n,qn(Yn),e.next=4,(0,ze.ZP)("/api/tasks/".concat(D.identifier,"/jupyter_redo_logs.json"),{method:"get",params:Yn});case 4:0===(null==(t=e.sent)?void 0:t.status)&&Qn(null==t?void 0:t.data);case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()})]}),(0,F.jsx)(Xe.Z,{identifier:null==ve?void 0:ve.identifier,visible:Fn,onCancel:function(){return zn(!1)},info:{type:"挑战页面",myshixun_id:null==ve?void 0:ve.myshixun_id}})]})}))},48064:function(e,n,t){t.d(n,{Jd:function(){return k},a$:function(){return _},dU:function(){return p},fi:function(){return y},m_:function(){return g},rB:function(){return j},rV:function(){return f},x4:function(){return h},zE:function(){return u}});var i=t(82242),r=t.n(i),s=t(7557),a=t.n(s),c=t(41498),o=t.n(c),l=t(18030);function u(e){return d.apply(this,arguments)}function d(){return(d=o()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/jupyters/save_with_tpi.json",{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return m.apply(this,arguments)}function m(){return(m=o()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/tasks/".concat(n.identifier,"/jupyter.json"),{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return v.apply(this,arguments)}function v(){return(v=o()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.identifier,"/start.json"),{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return x.apply(this,arguments)}function x(){return(x=o()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/jupyters/timeinfo_with_tpi.json",{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return A.apply(this,arguments)}function A(){return(A=o()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.identifier,"/reset_pod.json"),{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e,n){return w.apply(this,arguments)}function w(){return(w=o()(a()().mark((function e(n,t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n,"/active_pod.json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e){return b.apply(this,arguments)}function b(){return(b=o()(a()().mark((function e(n){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(t=r()({},n)).identifier,e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.identifier,"/sync_code.json"),{method:"Post",body:t}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return N.apply(this,arguments)}function N(){return(N=o()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/shixuns/".concat(n.identifier,"/get_data_sets.json"),{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e){return I.apply(this,arguments)}function I(){return(I=o()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/tasks/".concat(n.identifier,"/reboot_esc.json"),{method:"post",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},13275:function(e,n,t){function i(e){try{e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen&&e.webkitRequestFullScreen()}catch(e){console.log(e,":e")}}function r(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}t.d(n,{BU:function(){return r},Dj:function(){return i},gH:function(){return s},vp:function(){return a}});var s=function(){return document.webkitExitFullscreen?"webkitfullscreenchange":document.exitFullscreen?"fullscreenchange":document.msExitFullscreen?"msfullscreenchange":document.mozCancelFullScreen?"mozfullscreenchange":void 0};function a(){var e=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement;document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",e),null!=e}},1058:function(e,n,t){t.d(n,{U:function(){return p}});var i=t(7557),r=t.n(i),s=t(82242),a=t.n(s),c=t(41498),o=t.n(c),l=t(79800),u=t.n(l),d=t(59301);function p(e,n){var t=(0,d.useState)(n),i=u()(t,2),s=i[0],c=i[1],l=(0,d.useState)(!1),p=u()(l,2),m=p[0],f=p[1],v=(0,d.useState)(),h=u()(v,2),x=h[0],g=h[1],A=function(){var t=o()(r()().mark((function t(i){var o,l,u,d=arguments;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=d.length>1&&void 0!==d[1]&&d[1],l=o?n:a()(a()({},s),i),f(!0),c(l),t.next=6,e(l);case 6:return u=t.sent,f(!1),g(u),t.abrupt("return",u);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return[s,m,A,x]}},87133:function(e,n,t){t.d(n,{AL:function(){return y},Iy:function(){return p},Qv:function(){return v},ez:function(){return w},jb:function(){return m}});var i=t(79800),r=t.n(i),s=t(32834),a=t.n(s),c=t(11690);var o=[],l=["
    "],u=new(a().Renderer),d=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function p(){o.length=0,l=["
      "]}var m={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function f(e,n,t,i){if(n>=e.length||e[n].level<=t)return n;var r=e[n];i.push("
    • "+r.text+"");var s=[];return n=f(e,++n,r.level,s),s.length>0&&(i.push("
        "),s.forEach((function(e){i.push(e)})),i.push("
      ")),i.push("
    • "),n=f(e,n,t,i)}function v(){return f(o,0,0,l),l.push("
    "),l.join("")}var h={heading:function(e){var n=d.exec(e);if(n)return{type:"heading",raw:n[0],depth:n[1].length,text:n[2]}},fences:function(e){var n=this.rules.block.fences.exec(e);if(n){var t=n[0],i=function(e,n){var t=e.match(/^(\s+)(?:```)/);if(null===t)return n;var i=t[1];return n.split("\n").map((function(e){var n=e.match(/^\s+/);return null===n?e:r()(n,1)[0].length>=i.length?e.slice(i.length):e})).join("\n")}(t,n[3]||""),s=n[2]?n[2].trim():n[2];if(["latex","katex","math"].indexOf(s)>=0){var a=A(),c=i;i=a,j[a]={type:"block",expression:c}}return{type:"code",raw:t,lang:s,text:i}}}},x=/(?:\${2})([^\n`]+?)(?:\${2})/gi,g=0,A=function(){return"__special_katext_id_".concat(g++,"__")},j={};function w(){return j}function y(){g=0,j={}}function b(e){return e=e.replace(x,(function(e,n){var t=A();return j[t]={type:"inline",expression:n},t}))}var _=u.listitem;u.listitem=function(e){return _(b(e))};var N=u.paragraph;u.paragraph=function(e){return N(b(e))};var k=u.tablecell;u.tablecell=function(e,n){return k(b(e),n)},u.code=function(e,n,t){var i=(n||"").match(/\S*/)[0];return i?["latex","katex","math"].indexOf(i)>=0?"

    ".concat(e,"

    "):'
    ').concat(t?e:(0,c.escape)(e,!0),"
    \n"):'
    '+(t?e:(0,c.escape)(e,!0))+"
    "},u.heading=function(e,n,t){var i=this.options.headerPrefix+t.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return o.push({anchor:i,level:n,text:e}),"'+e+""},a().setOptions({silent:!0,gfm:!0,pedantic:!1}),a().use({tokenizer:h,renderer:u}),n.ZP=a()},19421:function(e,n,t){t.d(n,{rX:function(){return N},pW:function(){return k},gy:function(){return I},xY:function(){return _},O5:function(){return b},tJ:function(){return g},o1:function(){return A},Rd:function(){return y}});var i=t(7557),r=t.n(i),s=t(41498),a=t.n(s),c=t(5296),o=t(43418),l=t(28103),u=t(8591),d=t(93697),p=t(21082),m=t(680),f=t(25510),v=t.p+"static/newqrcode.a8740efb.png",h=t(32637),x=t(37712),g=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!A(e)||!j(n))},A=function(e){return!!(0,d.bg)()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},j=function(){var e,n=(0,c.getDvaApp)()._store.getState(),t=n.user;return!(null===(e=t.userInfo)||void 0===e||!e.profile_completed)||(o.Z.confirm({title:"提示",width:530,centered:!0,content:"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,p.xg)("/account/profile/edit"),w()}}),!1)},w=function(){o.Z.success({title:"提示",width:430,closable:!0,centered:!0,content:"已完善个人资料?请刷新页面",okText:"立即刷新",icon:null,onOk:function(){location.reload()}})},y=function(){o.Z.warning({title:"提示",icon:null,width:400,content:(0,x.jsxs)("div",{style:{textAlign:"center"},children:[(0,x.jsx)("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"},children:"老师您好,您的课堂试用期已结束,相关功能被限制。 如需继续使用,请尽快对接人工支持!"}),(0,x.jsx)("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:h}),(0,x.jsx)("div",{style:{color:"#666666",fontSize:14,marginTop:15},children:"添加客服人员微信,获得更多支持"})]})})},b=function(){var e;return!(null===(e=(0,c.getDvaApp)()._store.getState().user.userInfo)||void 0===e||!e.professional_certification)||(o.Z.confirm({title:"提示",centered:!0,content:(0,x.jsx)("div",{className:"tc",children:"您需要去完成您的职业认证,才能使用此功能"}),okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,p.xg)("/account/certification")}}),!1)},_=function(){return!!(0,d.V9)()||(o.Z.warning({centered:!0,width:530,title:"提示",content:(0,x.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,x.jsx)("p",{children:"扫码加头歌助教,申请操作权限"}),(0,x.jsx)("img",{src:v,width:200})]}),okText:"我知道了",maskClosable:!0}),!1)},N=function(e,n){return!!e||(o.Z.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:(0,x.jsxs)("div",{children:[(0,x.jsx)("p",{children:n||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。"}),(0,x.jsxs)("div",{style:{marginLeft:"110px"},children:[(0,x.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBg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wDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",width:200}),(0,x.jsxs)("div",{style:{marginLeft:"35px"},children:["群号:","714336072"]})]})]}),okText:"立即联系",cancelText:"取消",onOk:function(){(0,p.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},k=function(e){o.Z.info({title:"联系平台运营",icon:null,width:615,centered:!0,content:(0,x.jsxs)("div",{children:[(0,x.jsxs)("div",{children:[(0,x.jsx)("p",{style:{color:"#191919",fontWeight:400,fontSize:14},children:"“保存实验临时数据”功能为付费功能,请联系平台运营进行开通。"}),(0,x.jsx)(l.Z,{}),(0,x.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,x.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"1"})," 因平台的实验数据储存容量和成本消耗较大,实践项目默认保存实验环境中临时数据 ",(0,x.jsx)("a",{children:e}),"天。"]}),(0,x.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,x.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"2"}),"若您需要个性化的数据保存周期服务,我们可以提供相关技术支持,并根据您的需求收取定制费用。"]})]}),(0,x.jsx)("div",{style:{textAlign:"center",marginTop:30},children:(0,x.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:f,alt:"二维码",width:160})})]})})},I=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(0,c.getDvaApp)()._store.getState(),i=t.shixunsDetail.detail;if(2===(null==i?void 0:i.public)||1===(null==i?void 0:i.public)||3===(null==i?void 0:i.shixun_status)){var s="";return 2===(null==i?void 0:i.public)&&(s="已公开"),1===(null==i?void 0:i.public)&&(s="待审核"),3===(null==i?void 0:i.shixun_status)&&(s="已关闭"),o.Z.info({centered:!0,icon:(0,x.jsx)(m.Z,{style:{color:"#faad14"}}),width:460,title:"提示",content:(0,x.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,x.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"},children:[(0,x.jsxs)("span",{children:["该实践项目的状态为",s,",",n,"。"]}),(0,x.jsx)("p",{children:"如有需要,请联系平台管理员进行技术支持。"})]}),(0,x.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:f,alt:"二维码",width:160})]}),okText:"我知道了"}),!0}return 2===(null==i?void 0:i.shixun_status)&&(o.Z.confirm({centered:!0,icon:(0,x.jsx)(m.Z,{}),title:"提示",content:(0,x.jsxs)("div",{children:[(0,x.jsxs)("span",{children:["该实践项目已发布,",n,"。"]}),(0,x.jsx)("br",{}),(0,x.jsx)("span",{children:"如有需要,您可以撤销发布后,再进行操作。"})]}),okText:"撤销发布",cancelText:"取消",onOk:function(){var n;o.Z.confirm({width:440,centered:!0,icon:(0,x.jsx)(m.Z,{style:{color:"#faad14"}}),title:"提示",content:"撤销发布后,学员将无法进行练习。是否确认撤销发布?",okText:"确定撤销发布",cancelText:"取消",onOk:(n=a()(r()().mark((function n(){return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e({type:"shixunsDetail/cancelRelease",payload:{id:null==i?void 0:i.identifier}});case 2:401!==n.sent.status&&(u.ZP.success("撤销发布成功。实训回到未发布的状态。"),e({type:"shixunsDetail/getShixunsDetail",payload:{id:null==i?void 0:i.identifier}}),e({type:"practiceSetting/getCommonData",payload:{id:null==i?void 0:i.identifier}}));case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})}}),!0)}},45804:function(e,n,t){t(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;n.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNENTUiIGN4PSIxOCIgY3k9IjE4IiByPSIxOCIvPjxwYXRoIGQ9Ik0xOCA2YTIuODE4IDIuODE4IDAgMCAxIDIuODEzIDIuOTk0bC0uNjg4IDExLjAxYTIuMTI5IDIuMTI5IDAgMCAxLTQuMjUgMGwtLjY4OC0xMS4wMUEyLjgxOCAyLjgxOCAwIDAgMSAxOCA2WiIgZmlsbD0iIzE3Mjc0MCIvPjxjaXJjbGUgZmlsbD0iIzE3Mjc0MCIgY3g9IjE4IiBjeT0iMjYuNSIgcj0iMi41Ii8+PC9nPjwvc3ZnPg=="},40689:function(e,n,t){t(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;n.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMiAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIHN0cm9rZT0iI0Q1NSIgc3Ryb2tlLXdpZHRoPSIyIiBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiLz48cGF0aCBkPSJNMTQgNWEyIDIgMCAwIDEgMiAydjhhMiAyIDAgMSAxLTQgMFY3YTIgMiAwIDAgMSAyLTJaIiBmaWxsPSIjRDU1Ii8+PGNpcmNsZSBmaWxsPSIjRDU1IiBjeD0iMTQiIGN5PSIyMSIgcj0iMiIvPjwvZz48L3N2Zz4="},55874:function(e,n,t){t(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;n.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiMxOUNCNzAiIGN4PSIxOCIgY3k9IjE4IiByPSIxOCIvPjxwYXRoIHN0cm9rZT0iIzE3Mjc0MCIgc3Ryb2tlLXdpZHRoPSI0IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGQ9Ik0xMCAxOC44NSAxNS4yNzQgMjQgMjYgMTQiLz48L2c+PC9zdmc+"},7352:function(e,n){n.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},88780:function(){},32637:function(e,n,t){e.exports=t.p+"static/AssistantCode3.a8740efb.jpeg"},96908:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreG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B4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjczMUZFNjhDMDE3NzExRUJCOEU5RDg5RTZBOTI5QTU3Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NzMxRkU2ODkwMTc3MTFFQkI4RTlEODlFNkE5MjlBNTciIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6NzMxRkU2OEEwMTc3MTFFQkI4RTlEODlFNkE5MjlBNTciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7zBaLcAAACAElEQVR42uzdzyvDcRzH8ffsZiVc/IjbkOTuShN/gXIgYi5y2AlpFBL/AAdLiXBgBwfUxplmyU2tRK4sTey0+H6+RbKD7Gtfb/V817t963t59Nnn9f58+7aap6LO/yq6KmN13OoJq1MehcD3erS6rUT0VrnVC5qBpgLagWXagQIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAABUCD6Lbkr5L2W2uv9bS3LR4vd6iAb/9BaaBfa7K+oa8+0exEwmOheT5+UXnV9zd2SEHeztSU12ldw+2tjRLbH/X/lQbktqaansluwLtelPs85XKZmRFggN9eseMSbVJ9+Js2HHCizoHRwb7ZWN12V5VtYPaacJdOUmcJNy1o67QhLt6FheScNcfFkyqmxr9eoGHsWMZD8/qBCYvLmV4NCS5XE4f8PrmVnoHRySbzeoLyf1DWnr6huxPdWPGrJhZObOC6ga12Wtmz5m9p/Kom5yZt1Or8mFhbWNLIuubOh+3fjrrXAUWMutcAxY661wBOpl1RQc6nXVFBf7GrHMEPEskP65PE+d5901anc46R68+/rp4/QYQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAP8dMKMdGNcMNH9eMaUR+GR11Oo2q6/eBBgA/5+hicfO9/sAAAAASUVORK5CYII="},52787:function(e){e.exports="data:image/png;base64,iVBORw0K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5MDYwMTc3MTFFQkI2NjVDMEMwNjc1QjlBNDciLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4CEd39AAACAklEQVR42uzYvyuFURjA8Yf7TpSw+BHbvSTZrXTFX6AMRLiLySSE8ismg8FAIsKAwcCA/eqSbEqJrEgMd7pxzi3iUgbn8KTvU0/37b7Lp/Oe5+k5JygoC4uJiMkpk1GTeaIoApOVJuMm80VhZJuc1Ip7BUZFcWRr23NfAQUgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQL8FWAoFJLpseFP/+9ur8v9zUU67fN3kVVQFn52jcvNzZH52RlpaqiXwvLIh3cW9j4y32dG4BpXUlwkG0vzUlNdpe8TW9T+zqYznFNgY7ROdrc2pLSkWF+RdLe3yurCXHrvuY7gp5U6MTIgsY42b20mcFGpPiPQUKlO96CPSnUG9FWpToA+K9UJsLIinK5atcNC39Co7O0f6gWmUinp6umVk9MzveNWMpmUlo6YXF5d650Hb+/upbm1M/2rdmC1K2hX0q6o2ona7kW7J+3eVDvy26ruHxnXfSZZWF6VxZU13Ycmnz3SCdBnj3Q28vvqkU4PTT56pPODu+se6eVmwWWP9Hb1YavaVndmxBPHb89HiZO/ufpQWyQAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECPD/AB+1Aw+0AwdNPmgGnpusNblt8kkb8EWAAQAq85VNhqprywAAAABJRU5ErkJggg=="}}]); \ No newline at end of file diff --git a/p__tasks__Jupyter__index.da029f43.async.js b/p__tasks__Jupyter__index.da029f43.async.js deleted file mode 100644 index 4d5d2a52b4..0000000000 --- a/p__tasks__Jupyter__index.da029f43.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[20700,48486],{73096:function(e,n,t){t.d(n,{JW:function(){return F},Jd:function(){return B},Kl:function(){return z},L5:function(){return v},MH:function(){return P},MI:function(){return H},Qo:function(){return b},SO:function(){return f},Tf:function(){return A},XO:function(){return p},Xy:function(){return w},Y0:function(){return I},Ye:function(){return q},Yv:function(){return U},ZH:function(){return T},am:function(){return S},bD:function(){return X},eA:function(){return y},fA:function(){return L},fY:function(){return N},g6:function(){return m},g7:function(){return J},gT:function(){return k},gn:function(){return W},h$:function(){return Q},hG:function(){return j},i8:function(){return O},j3:function(){return R},lH:function(){return E},li:function(){return h},n4:function(){return x},pU:function(){return Z},qK:function(){return g},sA:function(){return C},sP:function(){return M},t$:function(){return D},zl:function(){return _}});var i=t(7557),r=t.n(i),s=t(41498),a=t.n(s),c=t(82242),o=t.n(c),l=t(18030),u=(0,t(21082).oP)(),d={};function p(e,n){return(0,l.U2)("tasks/".concat(e,".json"),o()(o()({},n),d))}function m(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,l.U2)("myshixuns/".concat(e,"/challenges.json"),o()({},n))}function f(e,n){return(0,l.U2)("myshixuns/".concat(e,"/subject_challenges.json"),n)}function v(e,n,t){return(0,l.U2)("tasks/".concat(e,"/star.json"),{shixun_id:n,star:t})}function h(e,n){return(0,l.U2)("tasks/".concat(e,"/rep_content.json"),o()(o()({},n),d))}function x(e,n){return(0,l.v_)("myshixuns/".concat(e,"/update_file.json"),n)}function g(e,n){return(0,l.U2)("tasks/".concat(e,"/reset_original_code.json"),o()(o()({},n),d))}function A(e,n){return(0,l.v_)("myshixuns/".concat(e,"/reset_repository.json"),n)}function j(e,n){return(0,l.U2)("tasks/".concat(e,"/reset_passed_code.json"),o()(o()({},n),d))}function w(e,n){return(0,l.v_)("tasks/".concat(e,"/game_build.json"),o()(o()({},n),d))}function y(e){return(0,l.ZP)("http://localhost:49352/api/game_build",{method:"post",body:e})}function b(e,n){return(0,l.U2)("tasks/".concat(e,"/game_status.json"),o()(o()({},n),d))}function _(e,n){return(0,l.v_)("tasks/".concat(e,"/choose_build.json"),o()(o()({},n),d))}function N(e){return(0,l.U2)("myshixuns/".concat(e,"/get_remaining_time.json"))}function k(e){return(0,l.U2)("tasks/".concat(e,"/picture_display.json"),d)}function I(e){return(0,l.v_)("tasks/".concat(e,"/plus_or_cancel_praise.json"))}function Z(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,l.v_)("myshixuns/".concat(e,"/repository.json"),n)}function C(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,l.U2)("myshixuns/".concat(e,"/start.json"),n)}function S(e,n){return(0,l.U2)("myshixuns/".concat(e,"/reset_pod.json"),n)}function B(e,n){return(0,l.ZP)("/api/tasks/".concat(e,"/reboot_esc.json"),{method:"post",body:n})}function D(e){return(0,l.U2)("tasks/".concat(e,"/check_test_sets.json"))}function E(e){return(0,l.U2)("tasks/".concat(e,"/get_answer_info.json"))}function M(e){return(0,l.U2)("tasks/".concat(e,"/get_choose_answer.json"))}function P(e){return(0,l.U2)("tasks/".concat(e,"/unlock_choose_answer.json"))}function R(e,n){return(0,l.U2)("tasks/".concat(e,"/unlock_answer.json"),{answer_id:n})}function F(e,n,t,i){return(0,l.v_)("tasks/".concat(e,"/set_games_status.json"),o()({result:n,data:t},i||{}))}function z(e,n){return(0,l.U2)("myshixuns/".concat(e,"/active_pod.json"),n)}function O(e,n){return(0,l.U2)("tasks/".concat(e,"/rank_list.json"),n)}function L(e,n){return(0,l.v_)("tasks/".concat(e,"/close_windows_vnc.json"),{tpi_id:n})}function T(e,n){return(0,l.U2)("tasks/".concat(e,"/commit_files.json"),n)}function W(e,n){return(0,l.U2)("tasks/".concat(e,"/pull_files.json"),n)}function Q(e,n){return(0,l.v_)("tasks/".concat(e,"/log_output"),n)}function U(e,n){return(0,l.U2)("tasks/".concat(e,"/stop_log_output.json"),n)}function H(e){return G.apply(this,arguments)}function G(){return(G=a()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.id,"/add_file.json"),{method:"post",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function X(e){return V.apply(this,arguments)}function V(){return(V=a()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.id,"/delete_git_file.json"),{method:"Delete",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function J(e){return Y.apply(this,arguments)}function Y(){return(Y=a()(r()().mark((function e(n){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.id,"/mv_file.json"),{method:"post",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function q(e,n){return(0,l.ZP)("/api/shixuns/".concat(e,"/set_start_permanent.json"),{method:"put",body:n})}null!=u&&u.homework_common_id&&(d.homework_common_id=null==u?void 0:u.homework_common_id),null!=u&&u.exercisesId&&(d.exercise_id=null==u?void 0:u.exercisesId),console.log(u,d,"urlParamsAll")},98382:function(e,n,t){t.d(n,{z:function(){return k},Z:function(){return I}});var i=t(7557),r=t.n(i),s=t(41498),a=t.n(s),c=t(82242),o=t.n(c),l=t(37205),u=t.n(l),d=t(79800),p=t.n(d),m=t(59301),f=t(59028),v=t(8591),h=t(43418),x=t(3113),g=t(92723),A=t(90341),j=t(37712),w="  ";function y(e){if(0==e)return"0 Byte";var n=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,n)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][n]}var b=t(60186),_=t(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var N=f.Z.Dragger;function k(e){var n=[];return e&&e.length>0&&(n=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+w+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),n}var I=function(e){var n=e.value,t=e.onChange,i=e.action,s=e.data,c=e.className,l=e.maxSize,d=void 0===l?150:l,k=e.title,I=void 0===k?"上传附件":k,Z=e.showRemoveModal,C=void 0!==Z&&Z,S=e.accept,B=void 0===S?"":S,D=e.additionalText,E=e.isDragger,M=e.number,P=void 0===M?1e3:M,R=e.aloneClear,F=void 0!==R&&R,z=e.realTimeRemove,O=void 0===z||z,L=e.uploadText,T=(0,m.useState)(!1),W=p()(T,2),Q=W[0],U=W[1],H=(0,m.useState)(n||[]),G=p()(H,2),X=G[0],V=G[1],J=(0,m.useState)(1),Y=p()(J,2),q=Y[0],K=Y[1];(0,m.useEffect)((function(){n&&(1===q&&V(u()(n)),K(2),P===(null==n?void 0:n.length)&&U(!0))}),[n]);var $,ee=function(){setTimeout((function(){X.pop(),V(u()(X))}),500)},ne={multiple:!0,disabled:Q,accept:B,withCredentials:!0,fileList:X,beforeUpload:function(e,n){var t=e.size/1024/1024;return X.concat(n).length>P?(X.pop(),V(u()(X)),v.ZP.error("最多只能上传".concat(P,"个文件")),F?Promise.reject():(ee(),!1)):t=P?U(!0):U(!1),V(u()(X)),X=X.map((function(e){var n,t;null!=e&&null!==(n=e.response)&&void 0!==n&&n.id&&(e.url=null==e||null===(t=e.response)||void 0===t?void 0:t.url);return-1===e.name.indexOf(w)&&(e.name="".concat(e.name).concat(w).concat(y(e.size))),o()({},e)})),console.log("info:",e,X),t(X)):v.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:($=a()(r()().mark((function e(n){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(O){e.next=2;break}return e.abrupt("return",!0);case 2:if(t=function(){var e=a()(r()().mark((function e(){var t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.response?n.response.id:n.id)){e.next=8;break}return e.next=4,(0,A.JZ)(n.response?n.response.id:n.uid);case 4:return t=e.sent,e.abrupt("return",Promise.resolve(t));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!C){e.next=7;break}return e.abrupt("return",new Promise((function(e,n){var i;h.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,j.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(r()().mark((function n(){return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t();case 2:n.sent,v.ZP.success("删除成功"),e(!0);case 5:case"end":return n.stop()}}),n)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,t();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return $.apply(this,arguments)})};return(0,j.jsxs)("div",{className:"multi-upload ".concat(c||""),children:[E&&(0,j.jsxs)(N,o()(o()({},ne),{},{children:[(0,j.jsx)("p",{className:"ant-upload-drag-icon",children:(0,j.jsx)(b.Z,{})}),(0,j.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,j.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),D]})),!E&&(0,j.jsxs)(f.Z,o()(o()({},ne),{},{children:[(0,j.jsxs)(x.ZP,{disabled:Q,className:"upload_button",children:[(0,j.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),I]}),(0,j.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:L||"(单个文件最大".concat(d,"MB)")})]}))]})}},54313:function(e,n,t){var i=t(82242),r=t.n(i),s=(t(59301),t(93314)),a=t(3113),c=t(37712);n.Z=function(e){var n=e.img,t=e.buttonProps,i=void 0===t?{}:t,o=e.styles,l=void 0===o?{}:o,u=e.customText,d=e.ButtonText,p=e.ButtonClick,m=e.Buttonclass,f=e.ButtonTwo,v=e.imgStyles,h=e.loading,x=void 0!==h&&h;return(0,c.jsxs)("section",{className:"tc animated fadeIn",style:r()(r()({},{color:"#999",margin:"100px auto",visibility:x?"hidden":"visible"}),l),children:[(0,c.jsx)("img",{src:n||s,style:r()(r()({},v),{},{pointerEvents:"none",userSelect:"none"})}),(0,c.jsx)("p",{className:"mt20 font14",children:u||"暂时还没有相关数据哦!"}),d&&(0,c.jsx)(a.ZP,r()(r()({className:m,onClick:p},i),{},{children:d})),f&&f]})}},97963:function(e,n,t){t.d(n,{Z:function(){return b}});var i=t(82242),r=t.n(i),s=t(7557),a=t.n(s),c=t(41498),o=t.n(c),l=t(79800),u=t.n(l),d=t(59301),p={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},m=t(3113),f=t(38827),v=t(82915),h=t(6848),x=t(21082),g=t(31591),A=t(54313),j=t(92723),w=t(27533),y=t(37712),b=function(e){var n,t,i,s,c,l,b=e.editOffice,_=void 0===b?"view":b,N=e.data,k=(e.theme,e.type),I=e.filename,Z=e.monacoEditor,C=e.className,S=e.style,B=e.close,D=e.onClose,E=e.hasMask,M=e.disabledDownload,P=e.onImgDimensions,R=e.showNodata,F=e.recordInfo,z=(0,d.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),O=u()(z,2),L=(O[0],O[1],(0,d.useState)("")),T=u()(L,2),W=(T[0],T[1]),Q=(0,d.useState)(),U=u()(Q,2),H=U[0],G=U[1],X="build"===window.ENV?"/react/build":"",V=location.host.startsWith("localhost")?j.Z.PROXY_SERVER:j.Z.API_SERVER,J=(0,d.useRef)();null!==(n=N)&&void 0!==n&&n.startsWith("/api")&&"txt"!==k&&(N=j.Z.API_SERVER+N);I&&Z&&(Z.filename=I),(0,d.useEffect)((function(){var e,n=null===(e=document.cookie)||void 0===e||null===(e=e.replace(/\s/g,""))||void 0===e?void 0:e.split(";");null==n||n.map((function(e){var n=e.split("=");"_educoder_session"===n[0]&&W(n[1])}))}),[]),(0,d.useEffect)((function(){var e;"office"===k&&(N.indexOf("bigfilescdn.")>-1||N.indexOf("bigfiles1")>-1?G({url:N,fileType:(e=N,e.substring(e.lastIndexOf("/")+1).split(".").pop()),model:N.indexOf("model=edit")?"edit":"view"}):Y())}),[k,N]);var Y=function(){var e=o()(a()().mark((function e(){var n,t,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("data:",N),n=N,N.startsWith("http")||(n=location.origin+n),t=new URL(n).pathname.split("/").pop(),e.next=6,(0,g.gJ)({attachment_id:t});case 6:(i=e.sent).url=V+i.url,G(i);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),q=function(){N.startsWith("http")||N.startsWith("blob:")?K():(0,x.Sv)(I||"educoder",N,I)},K=function(){F&&(0,w.fc)({id:null==F?void 0:F.id,watch_type:1,course_id:null==F?void 0:F.course_id}),(0,x.Nd)(I||"educoder",decodeURIComponent(N))};return(0,y.jsxs)("div",{style:r()({},S||{}),className:"".concat(E&&p.bgBlack," ").concat(k?p.wrp:"hide"),children:[B&&(0,y.jsxs)("div",{className:p.close,ref:J,children:[!!P&&(0,y.jsx)(h.Z,{title:"点击对图片进行批注",getPopupContainer:function(){return J.current},children:(0,y.jsx)("span",{onClick:function(){D(),P()},children:(0,y.jsx)("i",{className:"icon-yulanpizhu"})})}),!M&&(0,y.jsx)(h.Z,{title:"点击下载此文件",getPopupContainer:function(){return J.current},children:(0,y.jsx)("span",{onClick:K,children:(0,y.jsx)("i",{className:"icon-quxiaozhiding"})})}),(0,y.jsx)(h.Z,{title:"关闭",getPopupContainer:function(){return J.current},children:(0,y.jsx)("span",{className:"",onClick:D,children:(0,y.jsx)("i",{className:"icon-guanbi1"})})})]}),(0,y.jsx)("div",{className:"".concat(p[C]," ").concat(C," ").concat(p.monaco," ").concat("txt"===k?"show":"hide"),children:"txt"===k&&(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(v.ZP,r()({},Z))})}),"audio"===k&&(0,y.jsx)("audio",{src:"".concat((null===(t=N)||void 0===t?void 0:t.indexOf("http://"))>-1||(null===(i=N)||void 0===i?void 0:i.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(N),autoPlay:!0}),"video"===k&&(0,y.jsx)(y.Fragment,{children:(null===(s=N)||void 0===s?void 0:s.indexOf("http"))>-1?(0,y.jsx)("video",{controls:!0,src:"".concat(N),autoPlay:!0}):(0,y.jsx)("video",{controls:!0,src:"data:video/mp4;base64,".concat(N),autoPlay:!0})}),"office"===k&&H&&(0,y.jsx)("iframe",{src:"".concat(X,"/office.html?key=").concat(H.key,"&url=").concat(btoa(H.url),"&callbackUrl=").concat(V+H.callbackUrl,"&fileType=").concat(H.fileType,"&title=").concat(H.title,"&model=").concat(_,"&officeServer=").concat(j.Z.ONLYOFFICE,"&disabledDownload=").concat(!!M)}),"html"===k&&(0,y.jsx)("iframe",{src:N+"&disposition=inline"}),"pdf"===k&&(0,y.jsx)("iframe",{src:"".concat(X,"/js/pdfview/index.html?filename=").concat(I||"educoder.pdf","&url=").concat(encodeURIComponent(N),"&disabledDownload=").concat(!!M)}),"image"===k&&(0,y.jsx)("img",{src:"".concat((null===(c=N)||void 0===c?void 0:c.indexOf("http://"))>-1||(null===(l=N)||void 0===l?void 0:l.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(N)}),("other"===k||"download"===k)&&(0,y.jsx)(y.Fragment,{children:R?(0,y.jsx)(A.Z,{customText:"当前文件不支持预览,可点击下载查看",ButtonTwo:(0,y.jsx)(m.ZP,{icon:(0,y.jsx)("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:q,disabled:M,children:"下载"})}):(0,y.jsxs)(m.ZP,{type:"primary",size:"middle",onClick:q,disabled:M,children:[(0,y.jsx)(f.Z,{}),"点击下载"]})})]})}},38279:function(e,n,t){t.d(n,{z:function(){return y}});var i=t(82242),r=t.n(i),s=t(37205),a=t.n(s),c=t(91232),o=t.n(c),l=t(79800),u=t.n(l),d=t(59301),p=(t(80227),t(87133)),m=(t(64018),t(24830)),f=t(92723),v=t(21082),h=t(15342),x=t(1012),g=t(97963),A=t(37712),j="@▁@",w=/]*>/g;var y=function(e,n){e=e||"";var t=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return n?e.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(t,(function(e,n,t,i,r,s,a){var c=n||i||s,o=t||r||a||"?";return f.Z.API_SERVER+"/api/attachments/"+c+o+"&t="+(0,v.Jn)(c,Date.now())+(e.indexOf(")")>-1?")":"&")})).replaceAll('src="(','src="').replaceAll("src='(",'src="'):e=e.replace(/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,(function(e,n,t,i,r,s,a){var c=n||i||s,o=t||r||a||"?";return f.Z.API_SERVER+"/attachments/download/"+c+o+"&t="+(0,v.Jn)(c,Date.now())+(e.indexOf(")")>-1?")":"&")})).replace(t,(function(e,n,t,i,r,s,a){var c=n||i||s,o=t||r||a||"?";return f.Z.API_SERVER+"/api/attachments/"+c+o+"&t="+(0,v.Jn)(c,Date.now())+(e.indexOf(")")>-1?")":"&")})).replace(/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,(function(e,n,t,i,r){var s=n||i,a=t||r||"";return'"'+f.Z.API_SERVER+"/api/attachments/"+s+a+s+a+"&t="+(0,v.Jn)(s,Date.now())})).replace(/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,(function(e,n,t,i,r){var s=n||i,a=t||r||"";return"("+f.Z.API_SERVER+"/files/uploads/"+s+a+s+a+"&t="+(0,v.Jn)(s,Date.now())})).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,"\n")};n.Z=function(e){var n=e.value,t=void 0===n?"":n,i=e.className,s=e.showTextOnly,c=e.showLines,l=e.style,v=void 0===l?{}:l,y=e.stylesPrev,b=void 0===y?{}:y,_=e.highlightKeywords,N=e.showProgramFill,k=(e.isProgramFill,e.disabledFill),I=void 0!==k&&k,Z=e.programFillValue,C=e.onFillChange,S=void 0===C?function(e){}:C,B=e.onFillBlur,D=void 0===B?function(){}:B,E=e.onFillFocus,M=void 0===E?function(){}:E,P=String(t),R=(0,d.useState)(""),F=u()(R,2),z=F[0],O=F[1],L=(0,d.useState)("office"),T=u()(L,2),W=T[0],Q=T[1],U=(0,d.useState)([]),H=u()(U,2),G=H[0],X=H[1],V=(0,d.useRef)("a"+(0,x.Z)()),J={};var Y=function(e){return e.replace(/([\s\S]+?)<\/style>/gim,(function(e,n){var t=n.replace(/(\n|\r)/g,"").split("}"),i=[];return t.map((function(e){""!=e&&i.push(".".concat(V.current," ").concat(e))})),"")}))},q=(0,d.useMemo)((function(){try{P=P.replace(/\(\/attachments\/download\//g,"("+f.Z.API_SERVER+"/attachments/download/").replace(/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,"("+f.Z.API_SERVER+"/api/attachments/").replace(/\"\/api\/attachments\/|\"\/attachments\/download\//g,'"'+f.Z.API_SERVER+"/api/attachments/").replace(/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,'"'+f.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,"\n")}catch(e){}if(N){var e=-1;return P=P.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,(function(n,t,i){var r;return function(e,n,t){var i=document.createElement(e===j?"input":"textarea");i.style.width="100%",i.style.height=e===j?"40px":"151px",i.rows=5,i.spellcheck=!1,i.name="edu-program-fill",i.placeholder="请输入",i.dataset.id=n;var r=Object.keys(J).length;return J[r]=i,'')}(n,++e,null==Z||null===(r=Z[e])||void 0===r?void 0:r.value.replaceAll("<","<").replaceAll(">",">"))})),'
    '.concat(Y(P||""),"
    ")}var n=Y(P);n=(0,p.ZP)(n);var t=(0,p.ez)();P.match(/\[TOC\]/)&&(n=n.replace("

    [TOC]

    ",(0,p.Qv)()),(0,p.Iy)()),n=n.replace(/(__special_katext_id_\d+__)/g,(function(e,n){var i=t[n],r=i.type,s=i.expression;return(0,h.renderToString)(function(e){var n=document.createElement("div");return n.innerHTML=e,0===n.childNodes.length?"":n.childNodes[0].nodeValue}(s)||"",{displayMode:"block"===r,throwOnError:!1,output:"html"})})),n=n.replace(/▁/g,"▁▁▁▁▁"),(0,p.AL)();var i=document.createElement("div");return i.innerHTML=n,s?i.innerText:_?(ne(i,_.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")),i.innerHTML):(setTimeout((function(){return re()}),500),i.innerHTML)}),[P,_]);(0,d.useEffect)((function(){te.current&&te.current.querySelectorAll(["input","textarea"]).forEach((function(e){e.oninput=K,e.onblur=$,e.onfocus=ee}))}),[G]),(0,d.useEffect)((function(){if(null!=Z&&Z.length)try{var e,n=te.current.querySelectorAll(".edu-program-fill-score"),t=te.current.querySelectorAll('[name="edu-program-fill"]'),i=o()(t.entries());try{for(i.s();!(e=i.n()).done;){var r,s,a,c=u()(e.value,2),l=c[0],d=c[1];d.value=(null==Z||null===(r=Z[l])||void 0===r?void 0:r.value)||"","warning"===(null==Z||null===(s=Z[l])||void 0===s?void 0:s.type)?d.className="program-fill-warning":"success"===(null==Z||null===(a=Z[l])||void 0===a?void 0:a.type)?d.className="program-fill-success":d.className=""}}catch(e){i.e(e)}finally{i.f()}var p,m=o()(n.entries());try{for(m.s();!(p=m.n()).done;){var f,v,h=u()(p.value,2),x=h[0];h[1].innerHTML=null!=Z&&null!==(f=Z[x])&&void 0!==f&&f.score?"".concat(null==Z||null===(v=Z[x])||void 0===v?void 0:v.score,"分"):""}}catch(e){m.e(e)}finally{m.f()}X(Z)}catch(e){console.log(e,"error")}}),[Z]);var K=function(e){G[e.target.dataset.id]=G[e.target.dataset.id]||{},G[e.target.dataset.id].value=e.target.value,X(a()(G)),S(G,e.target.dataset.id)},$=function(e){G[e.target.dataset.id]=G[e.target.dataset.id]||{},G[e.target.dataset.id].value=e.target.value,X(a()(G)),D(G,e.target.dataset.id)},ee=function(e){G[e.target.dataset.id]=G[e.target.dataset.id]||{},G[e.target.dataset.id].value=e.target.value,X(a()(G)),M(G,e.target.dataset.id)};function ne(e,n){return e.childNodes.forEach((function(e){if(e.childNodes.length>0)ne(e,n);else if("IMG"!==e.nodeName)if(e.innerHTML){var t;e.innerHTML=null===(t=e.innerHTML)||void 0===t?void 0:t.replace(new RegExp(n,"gi"),'$&')}else{var i=document.createElement("span");i.innerHTML=e.textContent.replace(new RegExp(n,"gi"),'$&'),e.replaceWith(i)}}))}var te=(0,d.useRef)();function ie(e){var n=e.target;if("A"===n.tagName.toUpperCase()){var t=n.getAttribute("href");if(t.indexOf("office")>-1)e.preventDefault(),O(t),Q("office");else if(t.indexOf("application/pdf")>-1)e.preventDefault(),O(t),Q("pdf");else if(t.indexOf("text/html")>-1)e.preventDefault(),O(t),Q("html");else if(t.startsWith("#")){e.preventDefault();var i=document.getElementById(t.replace("#",""));i&&i.scrollIntoView(!0)}}}p.jb.WebkitLineClamp=c,c&&(v=r()(r()({},v),p.jb));var re=function(){var e,n=null===(e=te.current)||void 0===e?void 0:e.querySelectorAll("video");null==n||n.forEach((function(e){if(e.oncontextmenu=function(){return!1},e.src.indexOf(".m3u8")>-1)if(e.canPlayType("application/vnd.apple.mpegurl"));else if(m.ZP.isSupported()){var n=new m.ZP;n.loadSource(e.src),n.attachMedia(e)}}))};return(0,d.useEffect)((function(){if(te.current&&q&&q.match(w)&&window.PR.prettyPrint(),te.current)return te.current.addEventListener("click",ie),function(){var e;null===(e=te.current)||void 0===e||e.removeEventListener("click",ie),(0,p.AL)(),(0,p.Iy)()}}),[q,te.current,ie]),(0,d.useEffect)((function(){var e,n=function(e){e.preventDefault(),e.clipboardData.setData("text",window.getSelection().toString())};return null===(e=te.current)||void 0===e||e.addEventListener("copy",n),function(){var e;null===(e=te.current)||void 0===e||e.removeEventListener("copy",n)}}),[te.current]),(0,A.jsxs)(A.Fragment,{children:[s&&(0,A.jsx)("div",{ref:te,children:q}),!s&&(0,A.jsx)("div",{ref:te,style:r()({},v),className:"".concat(i||""," ").concat(I?"disabled-fill":""," markdown-body ").concat(V.current),dangerouslySetInnerHTML:{__html:q}}),(0,A.jsx)(g.Z,{close:!0,data:z,type:null!=z&&z.length?W:"",style:r()({},b),onClose:function(){return O("")}})]})}},24808:function(e,n,t){t.d(n,{Z:function(){return m}});var i=t(82100),r=t.n(i),s=t(29186),a=t.n(s),c=t(80619),o=t.n(c),l=t(47074),u=t.n(l),d=t(59301),p=t(4676),m=function(e){o()(t,e);var n=u()(t);function t(e){var i;r()(this,t),i=n.call(this,e);var s=window.document;return i.node=s.createElement("div"),s.body.appendChild(i.node),i}return a()(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)},48486:function(e,n,t){t.d(n,{jL:function(){return o},w9:function(){return we},QD:function(){return nn},cQ:function(){return Ae},op:function(){return Ve},O5:function(){return dn},_b:function(){return cn},t7:function(){return P},Gi:function(){return Ne},YG:function(){return _e},qp:function(){return _},vr:function(){return rn},qE:function(){return qe},Je:function(){return z},wb:function(){return se},cq:function(){return Re},tp:function(){return I}});var i=t(59301),r="banner___PoUBO",s="content___XoDjy",a="btns___Pb35j",c=t(37712),o=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.img,o=e.imgWidth,l=void 0===o?346:o,u=e.title,d=e.sunTitle,p=e.bannerExtraContent;return(0,c.jsx)("div",{className:r,children:(0,c.jsxs)("div",{className:s,children:[(0,c.jsxs)("aside",{children:[(0,c.jsxs)("p",{children:[(0,c.jsx)("b",{children:u}),(0,c.jsx)("span",{children:d})]}),t.length>0&&(0,c.jsx)("div",{className:a,children:t.map((function(e,n){return(0,c.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,c.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0Y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nPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},n)}))}),p]}),i&&(0,c.jsx)("img",{style:{marginTop:33,marginRight:38},src:i,width:l})]})})},l=t(79800),u=t.n(l),d="row___aXJjm",p="title___HUKL0",m="tagsWrap___XB2W3",f="action___VdHb1",v="bar___t1kKC",h="tag___V7Eft",x="name___Hk1Ip",g="num___xQpcH",A="active___XryTX",j="tagsBorderWrap___OMxjs",w=t(92310),y=t.n(w),b=t(89392),_=function(e){var n=e.dataSource,t=void 0===n?[]:n,r=e.value,s=e.onChange,a=e.onTitleChange,o=e.className,l=e.title,w=e.titleWidth,_=void 0===w?41:w,N=e.style,k=void 0===N?{}:N,I=e.fontColor,Z=void 0===I?"#6A7283":I,C=e.showCount,S=(0,i.useState)(0),B=u()(S,2),D=B[0],E=B[1],M=(0,i.useState)(!1),P=u()(M,2),R=P[0],F=P[1],z=(0,i.useRef)(null),O=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;0!==t.length&&((null==z||null===(e=z.current)||void 0===e?void 0:e.clientHeight)>97?E(1):E(0));0===t.length&&E(0),F(!1)}),[t]),(0,c.jsxs)("div",{className:y()(d,o),style:k,children:[(0,c.jsx)("div",{onClick:(0,b.throttle)((function(){return null==a?void 0:a()}),2e3),style:{width:_,marginTop:R?12:4},className:"".concat(p," ").concat(a?"current":""),children:l}),(0,c.jsxs)("div",{className:R?"".concat(m," ").concat(j):m,children:[(0,c.jsx)("div",{className:v,ref:O,style:D>0?{height:1===D?97:"auto",overflow:1===D?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,c.jsx)("div",{className:h,ref:z,children:null==t?void 0:t.map((function(e){return(0,c.jsxs)("span",{onClick:function(){return s(e.id)},style:{color:Z},className:r===e.id?A:"",children:[(0,c.jsx)("span",{title:e.name,className:x,children:e.name}),!!C&&(0,c.jsx)("span",{className:g,children:e.count})]},e.id)}))})}),!!D&&(0,c.jsx)(i.Fragment,{children:1===D?(0,c.jsxs)("div",{onClick:function(){var e;E(2),(null==z||null===(e=z.current)||void 0===e?void 0:e.clientHeight)>245?F(!0):F(!1)},className:f,children:["展开",(0,c.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,c.jsxs)("div",{onClick:function(){O.current.scrollTop=0,E(1),F(!1)},className:f,children:["收起",(0,c.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},N="tabs___GTqPV",k="active___F26E8",I=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,r=e.onChange,s=e.className,a=e.style,o=void 0===a?{}:a;return(0,c.jsx)("div",{style:o,className:y()(N,s),children:t.map((function(e){return(0,c.jsx)("span",{onClick:function(){return r(e.id)},className:i===e.id?k:"",children:e.name},e.id)}))})},Z="input___PW2zI",C="dropdown___vSy8B",S="menu___NiyBu",B="text___Grueu",D="b1___ZKryM",E="b2___aKyGa",M=t(92832),P=function(e){var n,t=e.dataSource,r=void 0===t?[]:t,s=e.value,a=void 0===s?"":s,o=e.onChange,l=e.onInputChange,d=void 0===l?function(){}:l,p=e.className,m=e.style,f=void 0===m?{}:m,v=e.placeholder,h=(e.allowClear,(0,i.useState)("")),x=u()(h,2),g=x[0],A=x[1],j=(0,i.useState)(""),w=u()(j,2),b=w[0],_=w[1];(0,i.useEffect)((function(){var e,n=a;null!==(e=JSON.stringify(a))&&void 0!==e&&e.includes("{")&&(A(a.id),n=a.value||"");try{_(decodeURIComponent(n||""))}catch(e){_(decodeURIComponent(n||""))}}),[a]);var N=function(){o(encodeURIComponent(b),g||null)};return(0,c.jsxs)("div",{className:y()(Z,p),style:f,children:[!!r.length&&(0,c.jsxs)("div",{className:C,children:[(0,c.jsxs)("div",{className:B,children:[null===(n=r.find((function(e){return e.id===g})))||void 0===n?void 0:n.name,(0,c.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,c.jsx)("b",{className:D}),(0,c.jsx)("b",{className:E})]}),(0,c.jsx)("div",{className:S,children:r.map((function(e,n){return(0,c.jsx)("div",{onClick:function(){var n;(n=e.id)!==g&&(A(n),o(encodeURIComponent(b),n))},children:e.name},n)}))})]}),(0,c.jsx)(M.Z,{onPressEnter:N,value:b,onChange:function(e){_(e.target.value),d(encodeURIComponent(e.target.value),g||null)},bordered:!1,placeholder:v}),(0,c.jsx)("i",{onClick:N,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},R="quickPager___GM30J",F="disabled___Ozc8I",z=function(e){var n=e.value,t=e.onChange,i=e.className,r=e.total,s=e.pageSize,a=e.style,o=void 0===a?{}:a,l=n<2,u=n>=Math.ceil(r/s);return r<=s?(0,c.jsx)(c.Fragment,{}):(0,c.jsxs)("div",{className:y()(R,i),style:o,children:[(0,c.jsx)("div",{onClick:function(){l||t(n-1,"prev")},className:l?F:"",children:"上一页"}),(0,c.jsx)("div",{onClick:function(){u||t(n+1,"next")},className:u?F:"",children:"下一页"})]})},O="list___oOsiS",L="wrap___G6T7F",T="lockWrap___Rl79E",W="li___oZZ7l",Q="cover___b2bYW",U="img___IQX7w",H="sign___HkT6C",G="name___SsJx8",X="e___TMqq0",V="tags___bcjyo",J="rate___YACg7",Y=t(71418),q=t(6848),K=t(31395),$=t(92723),ee=t(21082),ne=t(96908),te=t(57177),ie=t(81378),re=t(54313),se=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,r=e.col,s=void 0===r?4:r,a=e.right,o=e.bottom,l=void 0===o?23:o,u=e.precision,d=void 0===u?0:u,p=e.wrapWidth,m=void 0===p?1200:p,f=e.trackEventItems,v=e.loading,h=Math.floor((m-(s-1)*a)/s);return(0,c.jsx)(Y.Z,{spinning:v,children:(0,c.jsxs)("div",{className:y()(O,n),children:[!!i.length&&i.map((function(e,n){var t=e.name,i=e.id,r=e.identifier,o=e.power,u=(e.cover_image_id,e.pic);return(0,c.jsxs)("div",{className:L,style:{width:h,marginRight:(1+n)%s==0?0:a+d,marginBottom:l},children:[(0,c.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(r,"/challenges"),className:W,onClick:function(e){e.preventDefault(),f&&(0,ee.L9)([f]),o&&(0,ee.xg)("/shixuns/".concat(r,"/challenges"))},children:[(0,c.jsxs)("div",{className:U,children:[(0,c.jsx)("img",{className:Q,src:"".concat(u)}),e.is_jupyter&&(0,c.jsx)("img",{className:H,src:ne}),e.is_jupyter_lab&&(0,c.jsx)("img",{className:H,src:te}),e.is_unity_3d&&(0,c.jsx)("img",{className:H,src:ie})]}),(0,c.jsx)("div",{className:G,children:(0,c.jsx)(q.Z,{title:t||"实践项目名称-未填写",children:(0,c.jsx)("span",{className:X,children:t||"实践项目名称-未填写"})})}),(0,c.jsxs)("div",{className:V,children:[(0,c.jsx)(q.Z,{placement:"bottom",title:"关卡数",children:(0,c.jsxs)("span",{children:[(0,c.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,c.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,c.jsx)(q.Z,{placement:"bottom",title:"学习人数",children:(0,c.jsxs)("span",{children:[(0,c.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,c.jsx)("span",{children:e.myshixuns_count})]})}),(0,c.jsx)(q.Z,{placement:"bottom",title:"难度等级",children:(0,c.jsx)("span",{children:(0,c.jsx)("span",{children:e.level})})}),(0,c.jsxs)("div",{className:J,children:[(0,c.jsx)(K.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,c.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!o&&(0,c.jsxs)("div",{className:T,children:[(0,c.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,c.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},i)})),!i.length&&(0,c.jsx)(re.Z,{})]})})},ae="list___jb2Ay",ce="wrap___VsQDr",oe="li___IxCLC",le="cover___Mu8wr",ue="img___IpFLA",de="movebq___mF7wt",pe="bq___Bil0T",me="sign___DXJ4d",fe="name___l7FoJ",ve="e___pXQUG",he="unit___wCIFR",xe="tags___w_Mil",ge=t(93697),Ae=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,r=e.col,s=void 0===r?4:r,a=e.right,o=e.bottom,l=void 0===o?23:o,u=e.precision,d=void 0===u?0:u,p=e.wrapWidth,m=void 0===p?1200:p,f=e.trackEventItems,v=e.loading,h=e.onRemove,x=void 0===h?function(){}:h,g=e.isCurrent,A=void 0===g||g,j=e.showAlias,w=void 0!==j&&j,b=Math.floor((m-(s-1)*a)/s),_=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,c.jsx)(Y.Z,{spinning:v,children:(0,c.jsxs)("div",{className:y()(ae,n),children:[!(null==i||!i.length)&&(null==i?void 0:i.map((function(e,n){var t,i=e.name,r=e.id,o=e.identifier,u=(e.featured,e.school_name),p=e.image_url;e.excellent,e.is_plan;return(0,c.jsx)("div",{className:ce,style:{width:b,marginRight:(1+n)%s==0?0:a+d,marginBottom:l},children:(0,c.jsxs)("a",{className:oe,onClick:function(e){e.preventDefault(),e.stopPropagation(),f&&(0,ee.L9)([f]),(0,ee.xg)("/paths/".concat(o))},children:[(0,c.jsxs)("div",{className:ue,children:[(0,c.jsx)("img",{className:le,src:"".concat(p)}),A&&(0,ge.bg)()&&(null==e?void 0:e.studying)&&(0,c.jsxs)("div",{className:"".concat(de," user-path-items"),onClick:function(n){n.stopPropagation(),x(e)},children:[(0,c.jsx)("i",{className:"iconfont icon-yichu1 mr5 c-red"}),(0,c.jsx)("span",{className:"c-red",children:"移除"})]}),null==e||null===(t=e.subject_tags)||void 0===t?void 0:t.map((function(e,n){var t;if(0===n){var i,r=null===(i=_.find((function(n){return n.name==e})))||void 0===i?void 0:i.swimg;return(0,c.jsx)("img",{className:me,src:r,style:{left:"-4px"}})}var s=null===(t=_.find((function(n){return n.name==e})))||void 0===t?void 0:t.ptimg;return(0,c.jsx)("img",{className:me,src:s,style:{left:"".concat(48+52*(n-1)+2*n,"px")}})})),(0,c.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,c.jsx)("div",{className:pe,children:"开放课程"})})]}),(0,c.jsx)("div",{className:fe,children:(0,c.jsx)(q.Z,{title:w&&null!=e&&e.excellent_alias_name?(0,c.jsxs)("span",{children:["课程原名:".concat(i),(0,c.jsx)("br",{}),(0,c.jsx)("span",{children:"课程别名:".concat(null==e?void 0:e.excellent_alias_name)})]}):i,children:(0,c.jsx)("span",{className:ve,children:w&&(null==e?void 0:e.excellent_alias_name)||i})})}),(0,c.jsx)(q.Z,{title:"发布单位:".concat(u),children:(0,c.jsxs)("div",{className:he,children:[(0,c.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),u]})}),(0,c.jsx)("div",{className:xe,children:(0,c.jsxs)("div",{children:[(0,c.jsx)(q.Z,{placement:"bottom",title:"章节数",children:(0,c.jsxs)("span",{children:[(0,c.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,c.jsx)("span",{children:e.stages_count})]})}),(0,c.jsx)(q.Z,{placement:"bottom",title:"学习人数",children:(0,c.jsxs)("span",{children:[(0,c.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,c.jsx)("span",{children:e.members_count})]})})]})})]})},r)}))),!i.length&&(0,c.jsx)(re.Z,{})]})})},je={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},we=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,r=e.col,s=void 0===r?4:r,a=e.right,o=e.bottom,l=void 0===o?23:o,u=e.precision,d=void 0===u?0:u,p=e.wrapWidth,m=void 0===p?1200:p,f=e.trackEventItems,v=e.loading,h=Math.floor((m-(s-1)*a)/s);return(0,c.jsx)(Y.Z,{spinning:v,children:(0,c.jsxs)("div",{className:y()(je.list,n),children:[!!i.length&&i.map((function(e,n){var t=e.subject_identifier,i=e.id,r=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,c.jsxs)("div",{className:je.wrap,style:{width:h,marginRight:(1+n)%s==0?0:a+d,marginBottom:l},children:[(0,c.jsxs)("a",{className:je.li,onClick:function(n){n.preventDefault(),(0,ee.Wn)(null==e?void 0:e.forbid_visit_info)||(f&&(0,ee.L9)([f]),(0,ee.xg)(e.first_category_url))},children:[(0,c.jsxs)("div",{className:je.top,children:[(0,c.jsx)(q.Z,{title:e.name,children:(0,c.jsx)("div",{className:je.name,children:e.name})}),(0,c.jsx)("img",{className:je.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,c.jsx)("div",{className:je.text,title:e.creator,children:e.creator}),t&&(0,c.jsxs)("div",{className:je.btns,children:[(0,c.jsx)("div",{children:"开放课程"}),(0,c.jsx)("aside",{children:"开放课堂"})]}),r&&(0,c.jsx)("div",{className:je.sign,children:"公开"})]}),(0,c.jsxs)("div",{className:je.bottom,children:[e.visits>0&&(0,c.jsx)(q.Z,{title:"访问量",placement:"bottom",children:(0,c.jsxs)("span",{children:[(0,c.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,c.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,c.jsx)(q.Z,{title:"成员",placement:"bottom",children:(0,c.jsxs)("span",{children:[(0,c.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,c.jsx)(q.Z,{title:"作业",placement:"bottom",children:(0,c.jsxs)("span",{children:[(0,c.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,c.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,c.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,c.jsxs)("div",{className:je.lockWrap,children:[(0,c.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,c.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},i)})),!i.length&&(0,c.jsx)(re.Z,{})]})})},ye={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},be=t(5296),_e=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,r=e.onChange,s=e.className,a=e.style,o=void 0===a?{}:a,l=e.tabBarExtraContent;return(0,c.jsxs)("div",{className:y()(ye.tabs,s),style:o,children:[(0,c.jsx)("div",{className:ye.tabsWrap,children:t.map((function(e,n){return(0,c.jsxs)("aside",{className:ye.tab,onClick:function(){r(e.id),e.link&&be.history.push(e.link)},children:[(0,c.jsx)("div",{className:i===e.id?ye.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,c.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,c.jsx)(q.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,c.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,c.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,c.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},n)}))}),(0,c.jsx)("div",{className:ye.tabBar,children:l})]})},Ne=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,r=e.children;return(0,c.jsx)("div",{className:y()(n),style:i,children:r})},ke="orderWrap___ZfyGX",Ie="orderIconWrap___XTB_O",Ze="orderAsc___KWHmA",Ce="orderDesc___rHdbB",Se="active___a7eSP",Be="cursorPointer___gs9kL",De="orderTextWrap___teAKn",Ee=t(38854),Me=t(20834),Pe=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Re=function(e){var n,t=e.sortValue,i=e.dropValue,r=e.className,s=e.onSort,a=e.onDrop,o=e.dataSource,l=void 0===o?Pe:o;return(0,c.jsxs)("div",{className:y()(ke,r),children:[(0,c.jsx)(Ee.Z,{dropdownRender:function(){return(0,c.jsx)(Me.Z,{children:l.map((function(e,n){return(0,c.jsx)(Me.Z.Item,{onClick:function(){return a(e.id)},children:e.name},n)}))})},children:(0,c.jsx)("span",{className:De,children:null===(n=l.find((function(e){return i===e.id})))||void 0===n?void 0:n.name})}),(0,c.jsxs)("span",{className:Ie,children:[(0,c.jsx)("span",{className:Ze,children:(0,c.jsx)("i",{className:"asc"===t?"iconfont icon-sanjiaoxing-up font12 ".concat(Be," ").concat(Se):"iconfont icon-sanjiaoxing-up font12 ".concat(Be),onClick:function(){return s("asc"===t?"desc":"asc")}})}),(0,c.jsx)("span",{className:Ce,children:(0,c.jsx)("i",{className:"desc"===t?"iconfont icon-sanjiaoxing-down font12 ".concat(Be," ").concat(Se):"iconfont icon-sanjiaoxing-down font12 ".concat(Be),onClick:function(){return s("asc"===t?"desc":"asc")}})})]})]})},Fe=t(82242),ze=t.n(Fe),Oe=t(7557),Le=t.n(Oe),Te=t(41498),We=t.n(Te),Qe=t(39647),Ue=t.n(Qe),He={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ge=t(3113),Xe=["className","style","children","loading","openLoading","onClick","size","shape"],Ve=function(e){var n=e.className,t=e.style,r=e.children,s=e.loading,a=void 0!==s&&s,o=e.openLoading,l=e.onClick,d=void 0===l?function(){}:l,p=e.size,m=void 0===p?"middle":p,f=e.shape,v=void 0===f?"round":f,h=Ue()(e,Xe),x=(0,i.useState)(!1),g=u()(x,2),A=g[0],j=g[1];return(0,c.jsx)(Ge.ZP,ze()(ze()({onClick:(0,b.throttle)(function(){var e=We()(Le()().mark((function e(n){return Le()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o&&j(!0),e.prev=1,e.next=4,d(n);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:o&&j(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(n){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:y()(He.btn,He["".concat(m,"-").concat(v)],n),style:t,size:m,shape:v,loading:A||a},h),{},{children:r}))},Je="head___ghH72",Ye="node___mjPEy",qe=function(e){var n=e.className,t=e.style,i=e.children,r=void 0===i?null:i,s=e.onClick,a=e.title;return(0,c.jsxs)("div",{className:y()(Je,n),style:t,children:[(0,c.jsxs)("span",{className:"primary-hover",onClick:s,children:[(0,c.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,c.jsx)("b",{title:a,children:a}),(0,c.jsx)("div",{className:Ye,children:r})]})},Ke="btns___sNgTb",$e="confirm___Ozirl",en="cancel___aiq1I",nn=function(e){var n=e.confirmShow,t=void 0===n||n,i=e.confirmTitle,r=e.confirmClick,s=e.cancelShow,a=void 0===s||s,o=e.cancelTitle,l=e.cancelClick,u=e.className,d=e.style,p=e.confirmLoading,m=void 0!==p&&p;return(0,c.jsxs)("div",{className:y()(Ke,u),style:d,children:[t&&(0,c.jsx)(Ge.ZP,{loading:m,onClick:r,type:"primary",className:$e,children:i}),a&&(0,c.jsx)(Ge.ZP,{onClick:l,className:en,children:o})]})},tn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},rn=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,r=e.LeftContent,s=e.children,a=e.RightContent;return(0,c.jsx)("div",{className:y()(tn.fixedBottom,n),style:i,children:(0,c.jsxs)("div",{className:tn.wrap,children:[(0,c.jsx)("div",{className:tn.left,children:r}),(0,c.jsx)("div",{className:tn.center,children:s}),(0,c.jsx)("div",{className:tn.right,children:a})]})})},sn="crumbs___V41Oe",an="hover___bEIVd",cn=function(e){var n=e.className,t=e.style,r=void 0===t?{}:t,s=e.dataSource,a=void 0===s?[]:s;return(0,c.jsx)("div",{className:y()(sn,n),style:r,children:a.map((function(e,n){return n"," "]})]},n):(0,c.jsx)("span",{style:{color:"#5F6368"},children:e.name},n)}))})},on=t(31797),ln=["onChange"],un=on.Z.Countdown,dn=function(e){var n=e.onChange,t=Ue()(e,ln),r=(0,i.useState)(null),s=u()(r,2),a=s[0],o=s[1];(0,i.useEffect)((function(){"number"==typeof a&&a>=0&&n(a)}),[a]);return(0,c.jsx)(un,ze()(ze()({},t),{},{onChange:function(e){var n=Math.floor(e/1e3);o(n)}}))}},38060:function(e,n,t){t.d(n,{Z:function(){return S}});var i=t(7557),r=t.n(i),s=t(41498),a=t.n(s),c=t(59301),o=(t(88780),t(43418)),l=t(8591),u=t(92832),d=t(95237),p=t(43604),m=t(35423),f=t(56102),v=t(5296),h=t(98382),x=t(92723),g=t(18030),A=t(79800),j=t.n(A),w=t(21082),y=t(37712),b=(0,c.forwardRef)((function(e,n){e.time;console.log("ScreenRecord:",n);var t=(0,c.useRef)(),i=(0,c.useState)(),s=j()(i,2),o=(s[0],s[1],(0,c.useRef)()),u=[];function d(){return(d=a()(r()().mark((function e(n,t){var i,s;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=[],e.next=3,new MediaRecorder(n);case 3:(s=e.sent).ondataavailable=function(e){i.push(e.data)},s.start(),o.current=s,window.recorderRefs=s,s.addEventListener("stop",(function(e){var n=URL.createObjectURL(i[0],{type:"video/mp4"});(0,w.Nd)("xxx.webm",n)}));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(){window.recorderRefs?(t.current.srcObject.getTracks().forEach((function(e){e.stop()})),window.recorderRefs.addEventListener("dataavailable",(function(e){var n=URL.createObjectURL(e.data,{type:"video/mp4"});(0,w.Nd)("屏幕录制视频.webm",n)}))):l.ZP.warning("您还没有开启视频录制,请先去录制视频吧!")}function m(){navigator.mediaDevices.getDisplayMedia({video:!0,audio:!0}).then((function(e){return t.current.srcObject=e,u.push(e),t.current.captureStream=t.current.captureStream||t.current.mozCaptureStream,new Promise((function(e){return t.current.onplaying=e}))})).then((function(){return function(e,n){return d.apply(this,arguments)}(t.current.captureStream(),2e3)})).then((function(e){})).catch((function(e){"NotFoundError"===e.name?l.ZP.warning("找不到摄像头或麦克风。无法录制."):"UnknownError"===e.name&&l.ZP.warning("录制失败")}))}return(0,c.useImperativeHandle)(n,(function(){return{startScreenRecord:m,downloadFile:p}})),(0,y.jsx)("div",{style:{position:"absolute",top:"0",zIndex:-1},children:(0,y.jsx)("video",{onPause:function(){},width:"60",height:"120",autoPlay:!0,muted:!0,ref:t})})})),_=b,N=t(89392),k=t(41071),I=t(7352),Z=t(93697),C={1:"简单",2:"中等",3:"困难"},S=function(e){var n=e.className,t=e.git_url,i=e.difficulty,s=e.task_pass,A=e.test_set_permission,j=e.onVncAction,b=e.windows_vnc,S=(e.linux_vnc,e.vnc_url,e.unity_3d_routes),B=(e.index_tab,e.shixun_environment_id),D=e.tab_type,E=e.reboot_cloud,M=e.cloud_type,P=e.resData,R=e.instance_startup_type,F=e.mirror_description_multi,z=e.is_jupyter_notebook,O=e.is_jupyter_lab,L=e.jupyterData,T=e.is_jupyter,W=e.onHideToolBar,Q=e.monitoring_url,U=e.port,H=e.token,G=(0,v.useParams)(),X=(0,c.useRef)();console.log("----",L);var V=4===M?"/data/workspace/userfiles":b?"C:/Windows/AppReadiness/userfiles":"/data/workspace/userfiles",J=4===M?"/data/workspace/userfiles":b?"C:/Windows/AppReadiness/downloadfiles":"/data/workspace/downloadfiles",Y=!(0,N.isEmpty)(P)||!(0,N.isEmpty)(L),q=L?{name:null==L?void 0:L.main_mirror_name,description:null==L?void 0:L.main_mirror_description}:null==F?void 0:F.find((function(e){return e.shixun_environment_id===B})),K=function(){var e=a()(r()().mark((function e(){var n,t;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:W(),n="",t=String(Math.random()),o.Z.confirm({icon:null,className:I.Z.CustomTipsModalCss,okButtonProps:{type:"primary"},centered:!0,width:460,okText:"预览",cancelText:"取消",title:"服务预览",content:(0,y.jsxs)("div",{style:{height:95},children:[(0,y.jsx)("div",{className:"mb5 c-grey-333 font14 mb10",children:"服务预览将为实验环境内部服务映射到临时域名,仅供预览测试使用。请填写内部服务端口,并确认服务正常启动。"}),(0,y.jsxs)("div",{children:[(0,y.jsx)("span",{className:"c-grey-999 font14 mr10",children:"端口号"}),(0,y.jsx)(u.Z,{defaultValue:n,onChange:function(e){document.getElementById(t).style.display="none",n=e.target.value},maxLength:5,style:{width:326}})]}),(0,y.jsx)("div",{style:{display:"none",marginTop:4,marginLeft:52},id:t,className:"c-red"})]}),onOk:function(){var e=a()(r()().mark((function e(){var i,s,a,c;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=document.getElementById(t),n){e.next=5;break}return s.style.display="block",s.innerText="端口号不能为空",e.abrupt("return",Promise.reject());case 5:if(!n.includes(" ")){e.next=9;break}return s.style.display="block",s.innerText="端口号不能有空格",e.abrupt("return",Promise.reject());case 9:if(!n||!(n.includes(".")||isNaN(Number(n))||Number(n)>65535||Number(n)<=0||n.length>1&&"0"===n[0])){e.next=13;break}return s.style.display="block",s.innerText="请输入正确的端口号",e.abrupt("return",Promise.reject());case 13:return e.next=15,(0,g.ZP)("/api/tasks/".concat(G.taskId||G.identifier,"/port_proxy"),{method:"post",body:{port:Number(n),shixun_environment_id:B||null,tab_type:D||null,is_jupyter:T||!1}});case 15:return a=e.sent,e.next=18,new Promise((function(e,n){setTimeout((function(){e("")}),1e3)}));case 18:null!=a&&null!==(i=a.data)&&void 0!==i&&i.url&&(0,w.xg)(null==a||null===(c=a.data)||void 0===c?void 0:c.url);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return console.log(L,"jupyterData"),(0,y.jsxs)("div",{className:"tpi-code-setting ".concat(n),children:[(0,y.jsx)("h3",{children:"功能"}),(0,y.jsxs)("section",{children:[(S||z||O)&&(0,y.jsxs)("a",{title:"全屏",className:"file-item action",onClick:function(){j("full-screen")},children:[(0,y.jsx)("i",{className:"iconfont icon-quanping"}),"开启 / 退出全屏"]}),(2===D||3===D||4===D||z||O)&&(0,y.jsxs)("a",{onClick:function(){return j("reset-task")},className:"file-item action",title:"重置环境",children:[(0,y.jsx)("i",{className:"iconfont icon-zhongzhishixun1"}),"重置环境"]}),(2===D||3===D||5===D||O)&&(0,y.jsxs)("a",{onClick:function(){return j("reset-git-code")},className:"file-item action",title:"重置代码仓库",children:[(0,y.jsx)("i",{className:"iconfont icon-zhongzhishixun"}),"重置代码仓库"]}),(3===D||4===D||z||O)&&(0,y.jsxs)("a",{onClick:function(){return W(),void o.Z.info({title:"文件上传",icon:null,okText:"关闭",width:600,centered:!0,content:(0,y.jsx)("div",{className:"pt10",children:(0,y.jsx)(h.Z,{isDragger:!0,maxSize:200,additionalText:'默认存放目录路径为"'.concat(V,'"'),action:"".concat(x.Z.API_SERVER,"/api/tasks/").concat(G.taskId||G.identifier,"/upload_file?debug=admin&shixun_environment_id=").concat(B||null,"&tab_type=").concat(D||null,"&is_jupyter=").concat(T||!1),onChange:function(e){e.every((function(e){var n;return 0===(null===(n=e.response)||void 0===n?void 0:n.status)}))&&(o.Z.destroyAll(),l.ZP.info("文件上传成功")),console.log("fileList:",e)}})})})},className:"file-item action",title:"上传文件",children:[(0,y.jsx)("i",{className:"iconfont icon-shangchuanwenjian"}),"上传文件"]}),(3===D||4===D||z||O)&&(0,y.jsxs)("a",{onClick:function(){return W(),void o.Z.confirm({title:"下载代码",centered:!0,width:600,content:(0,y.jsxs)("div",{children:["代码下载功能:将“".concat(J,"”目录进行打包并下载"),(0,y.jsx)("br",{}),"(文件大小不得超过200MB)"]}),onOk:(e=a()(r()().mark((function e(){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.ZP)("/api/tasks/".concat(G.taskId||G.identifier,"/download_file?debug=admin"),{method:"post",body:{autoDownload:!0,shixun_environment_id:B||null,tab_type:D||null,is_jupyter:T||!1},headers:{responseType:"arraybuffer",Accept:"application/vnd.ms-excel;charset=utf-8"}});case 2:return e.abrupt("return",!0);case 3:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})});var e},className:"file-item action",title:"下载文件",children:[(0,y.jsx)("i",{className:"iconfont icon-xiazai3"}),"下载文件"]}),(3===D||5===D)&&(0,y.jsxs)("a",{onClick:function(){var e,n;null===(e=X.current)||void 0===e||null===(n=e.startScreenRecord)||void 0===n||n.call(e)},className:"file-item action",title:"屏幕录制",children:[(0,y.jsx)("i",{className:"iconfont icon-jiaruketang1"}),"屏幕录制"]}),((2===D||3===D||4===D)&&(0===M||1===M)||z||O)&&Y&&(0,y.jsxs)("a",{onClick:function(){return K()},className:"file-item action w100",title:"服务预览",children:[(0,y.jsx)("i",{className:"iconfont icon-suanfasheji"}),"服务预览"]}),E&&Y&&(0,y.jsxs)("a",{onClick:function(){return j("restart-reboot")},className:"file-item action",title:"重启云主机",children:[(0,y.jsx)(m.Z,{style:{marginRight:21,color:"#FFF"},className:"c-white font16"}),"重启云主机 "]}),(3===D||5===D||z||O)&&(0,y.jsxs)("a",{onClick:function(){return j("reset-code")},className:"file-item action",title:"恢复初始代码",children:[(0,y.jsx)("i",{className:"iconfont icon-zhongzhi font20",style:{marginRight:19}}),"恢复初始代码"]}),z&&(0,y.jsxs)("a",{className:"file-item action",target:"_blank",href:"https://".concat(U).concat(x.Z.TERMINAL_URL,"/terminals/1?token=").concat(H),children:[(0,y.jsx)("i",{className:"iconfont icon-minglinghang font16",style:{marginRight:22}}),"命令行终端"]}),t&&(0,y.jsx)(f.CopyToClipboard,{text:t,onCopy:function(){return l.ZP.success("复制成功")},children:(0,y.jsxs)("a",{title:"复制版本库地址",className:"file-item action",children:[(0,y.jsx)("i",{className:"iconfont icon-fuzhibanbenkudizhi1"}),"复制版本库地址"]})}),3===D&&(0,y.jsxs)("a",{className:"file-item action",onClick:function(){j("show-clipboard-box")},children:[(0,y.jsx)("i",{className:"iconfont icon-fuzhiniantie"}),"复制粘贴"]}),(0,Z.Ny)()&&(0,y.jsxs)("a",{className:"file-item action",href:Q||(null==L?void 0:L.monitoring_url),target:"_blank",children:[(0,y.jsx)("i",{className:"iconfont icon-jiankongfuwu2"}),"监控服务"]}),4===D&&Y&&(0,y.jsxs)("a",{className:"file-item action",onClick:function(){W(),o.Z.info({title:"SSH直连",width:600,centered:!0,content:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(d.Z,{children:[(0,y.jsx)(p.Z,{flex:"50px",children:"账号"}),(0,y.jsx)(p.Z,{children:null==P?void 0:P.username})]}),(0,y.jsxs)(d.Z,{children:[(0,y.jsx)(p.Z,{flex:"50px",children:"地址"}),(0,y.jsx)(p.Z,{children:null==P?void 0:P.ssh_address})]}),(0,y.jsxs)(d.Z,{children:[(0,y.jsx)(p.Z,{flex:"50px",children:"端口"}),(0,y.jsx)(p.Z,{children:null==P?void 0:P.port})]}),(0,y.jsxs)(d.Z,{children:[(0,y.jsx)(p.Z,{flex:"50px",children:"密码"}),(0,y.jsx)(p.Z,{children:null==P?void 0:P.password})]})]})})},children:[(0,y.jsx)("i",{className:"iconfont icon-congshulianjie"}),"SSH直连"]}),2===R&&Y&&(0,y.jsxs)("a",{className:"file-item action",onClick:function(){W(),o.Z.info({title:"RDP直连",icon:null,className:I.Z.CustomTipsModalCss,okButtonProps:{type:"primary"},okText:"我知道啦",width:600,centered:!0,content:(0,y.jsxs)("div",{children:[(0,y.jsxs)(d.Z,{children:[(0,y.jsx)(p.Z,{className:"c-grey-999",flex:"50px",children:"账号"}),(0,y.jsx)(p.Z,{className:"c-grey-333",children:null==P?void 0:P.username})]}),(0,y.jsxs)(d.Z,{className:"mt10",children:[(0,y.jsx)(p.Z,{className:"c-grey-999",flex:"50px",children:"地址"}),(0,y.jsx)(p.Z,{className:"c-grey-333",children:null==P?void 0:P.host})]}),(0,y.jsxs)(d.Z,{className:"mt10",children:[(0,y.jsx)(p.Z,{className:"c-grey-999",flex:"50px",children:"端口"}),(0,y.jsx)(p.Z,{className:"c-grey-333",children:4===M?null==P?void 0:P.gpPort:null==P?void 0:P.port})]}),(0,y.jsxs)(d.Z,{className:"mt10",children:[(0,y.jsx)(p.Z,{className:"c-grey-999",flex:"50px",children:"密码"}),(0,y.jsx)(p.Z,{className:"c-grey-333",children:null==P?void 0:P.password})]}),(0,y.jsx)("a",{style:{textDecoration:"underline",display:"inline-block"},href:"https://www.educoder.net/forums/36696",target:"_blank",className:"mt10 font14 current c-light-primary",children:"操作说明"})]})})},children:[(0,y.jsx)("i",{className:"iconfont icon-RDPzhilian"}),"RDP直连"]})]}),!!D&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("h3",{children:"关卡配置信息"}),(0,y.jsxs)("section",{children:[(0,y.jsxs)("a",{className:"file-item",title:s?"允许学员跳关挑战":"不允许学员跳关挑战",children:[(0,y.jsx)("b",{children:"跳关"}),(0,y.jsx)("span",{children:s?"允许":"不允许"})]}),(0,y.jsxs)("a",{className:"file-item",title:A?"允许学员通过金币解锁查看测试集内容":"不允许学员通过金币解锁查看测试集内容",children:[(0,y.jsx)("b",{children:"测试集解锁"}),(0,y.jsx)("span",{children:A?"允许":"不允许"})]})]})]}),(0,y.jsx)("h3",{children:"实训基本信息"}),(0,y.jsxs)("section",{children:[(0,y.jsxs)("div",{className:"file-item",children:[(0,y.jsx)("b",{children:"实训难易度"}),(0,y.jsx)("span",{children:(null==L?void 0:L.difficulty)||C[i]})]}),(0,y.jsxs)("div",{className:"file-item",style:{alignItems:"flex-start"},children:[(0,y.jsx)("b",{children:"实验环境"}),S?(0,y.jsx)("span",{className:"multi_ellipsis1",children:"暂无"}):q&&(0,y.jsx)(k.Z,{value:[q],title:"实验环境说明",children:(0,y.jsx)("span",{title:null==q?void 0:q.name,className:"multi_ellipsis1 current",children:null==q?void 0:q.name})})]}),(0,y.jsxs)("div",{className:"file-item",style:{alignItems:"flex-start"},children:[(0,y.jsx)("b",{children:"实验容器网络"}),S?(0,y.jsx)("span",{className:"multi_ellipsis1",children:"暂无"}):(0,y.jsx)("span",{title:null==q?void 0:q.name,className:"multi_ellipsis1 current",children:null!=q&&q.close_internet?"关闭外网":"开启外网"})]})]}),(0,y.jsx)(_,{ref:X})]})}},17751:function(e,n,t){var i=t(31468),r=t.n(i),s=t(7557),a=t.n(s),c=t(41498),o=t.n(c),l=t(79800),u=t.n(l),d=t(59301),p=t(31797),m=t(78241),f=t(43418),v=t(71418),h=t(61998),x=t(92832),g=t(94001),A=t(95237),j=t(43604),w=t(3113),y=t(31591),b=t(61186),_=t.n(b),N=t(5296),k=t(21082),I=t(55945),Z=t(93697),C=t(1058),S=t(37712);p.Z.Countdown;n.Z=(0,N.connect)((function(e){return{exercise:e.exercise}}))((function(e){var n,t,i,s,c=e.exercise,l=e.successCb,p=e.dispatch,b=(0,N.useParams)(),B=m.Z.useForm(),D=u()(B,1)[0],E=m.Z.useWatch("time",D),M=(0,d.useState)(!1),P=u()(M,2),R=P[0],F=P[1],z=(0,d.useRef)(),O=c.actionTabs,L=(0,d.useState)(),T=u()(L,2),W=T[0],Q=T[1],U=(0,C.U)(y.n7,{id:b.categoryId}),H=u()(U,4),G=H[1],X=H[2],V=H[3],J=(0,C.U)(y.Cd,{}),Y=u()(J,3),q=Y[1],K=Y[2];(0,d.useEffect)((function(){"student-unlock"===c.actionTabs.key&&(F(!1),D.resetFields())}),[c.actionTabs.key]);var $=function(){var e=o()(a()().mark((function e(){var n,t,i,r,s,c,u;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,D.validateFields();case 2:if(s=D.getFieldsValue(),F(!0),!("no"!==(null==O||null===(n=O.exerciseParams)||void 0===n?void 0:n.ip_limit)||null!=O&&null!==(t=O.exerciseParams)&&void 0!==t&&t.ip_bind_type)){e.next=7;break}return e.next=7,new Promise(function(){var e=o()(a()().mark((function e(n){var t,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,I.y)({ip_limit:null==O||null===(t=O.exerciseParams)||void 0===t?void 0:t.ip_limit,ip_bind:null==O||null===(i=O.exerciseParams)||void 0===i?void 0:i.ip_bind_type});case 2:return z.current=e.sent,e.abrupt("return",n());case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}());case 7:return e.next=9,(0,y.ZD)(null==O||null===(i=O.exerciseParams)||void 0===i?void 0:i.id,{exercise_user_id:null==O||null===(r=O.exerciseParams)||void 0===r?void 0:r.exercise_user_id,unlock_key:s.unlock_key,time:s.time,ip:z.current});case 9:if(0!==e.sent.status){e.next=18;break}if(!l){e.next=15;break}return p({type:"exercise/setActionTabs",payload:{}}),l(),e.abrupt("return");case 15:u=null==O?void 0:O.exerciseParams,(0,k.nr)({inner_ip:u.inner_ip,public_ip:u.public_ip,open_camera:u.open_camera,ip_limit:u.ip_limit,ip_bind:u.ip_bind,ip_bind_type:u.ip_bind_type,exercise_tips:u.exercise_tips,exerciseId:u.id,screen_open:u.screen_open,screen_num:u.screen_num,screen_sec:u.screen_sec,coursesId:b.coursesId,login:null===(c=(0,Z.eY)())||void 0===c?void 0:c.login,history:history,identity_verify:u.identity_verify,open_phone_video_recording:u.open_phone_video_recording,current_status:u.current_status}),p({type:"exercise/setActionTabs",payload:{}});case 18:F(!1);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ee=[{title:"IP地址",dataIndex:"ip",key:"ip",render:function(e){return(0,S.jsx)("span",{className:e.indexOf("异常")>-1?"c-red":"c-green",children:e})}},{title:"浏览器",dataIndex:"browser",key:"browser",render:function(e){return(0,S.jsx)("span",{className:e.indexOf("异常")>-1?"c-red":"c-green",children:e})}},{title:"上次登录时间",dataIndex:"last_login_time",key:"last_login_time"}],ne=(null==O||null===(n=O.exerciseParams)||void 0===n?void 0:n.errorMessage)&&"object"===r()(null==O||null===(t=O.exerciseParams)||void 0===t?void 0:t.errorMessage);(0,d.useEffect)((function(){"student-unlock"===c.actionTabs.key&&o()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K(b);case 2:return n=e.sent,e.next=5,X({});case 5:n.status||Q(n);case 6:case"end":return e.stop()}}),e)})))()}),[c.actionTabs.key]);var te=(null==W?void 0:W.exercise)||{},ie=te.time,re=te.end_time,se=null!=V&&V.user_end_time?_()(null==V?void 0:V.user_end_time).add(1,"minutes"):_()(),ae=_()(null==V?void 0:V.user_total_end_time)>se?Math.round(_().duration(_()(null==V?void 0:V.user_total_end_time).diff(se.startOf("minute"))).asMinutes()):0,ce=((null==V?void 0:V.student_left_minutes)||0)+(E||0);return(0,S.jsx)(S.Fragment,{children:(0,S.jsx)(f.Z,{width:514,centered:!0,closable:!(null==O||null===(i=O.exerciseParams)||void 0===i||!i.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"提示",open:"student-unlock"===c.actionTabs.key,footer:null,onCancel:function(){p({type:"exercise/setActionTabs",payload:{}})},children:(0,S.jsxs)(v.Z,{spinning:G||q,children:[ne&&(0,S.jsx)("div",{style:{marginBottom:16},children:"该账号已经存在异常情况,若非本人操作,请联系监考老师说明情况。 "}),!ne&&(0,S.jsx)("div",{style:{marginBottom:16},children:"系统检测到您在考试时中途退出,现已将考试锁定。如需继续进行考试, 请尽快联系课堂老师进行解锁!"}),ne&&(0,S.jsx)(h.Z,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[(null==O||null===(s=O.exerciseParams)||void 0===s?void 0:s.errorMessage)||{}],columns:ee}),(0,S.jsx)("div",{className:"",children:(0,S.jsxs)(m.Z,{form:D,layout:"vertical",autoComplete:"off",children:[(0,S.jsx)(m.Z.Item,{label:"考试解锁码",name:"unlock_key",rules:[{required:!0,message:"请输入考试解锁码"}],children:(0,S.jsx)(x.Z.Password,{autoComplete:"off",placeholder:"请输入考试解锁码",visibilityToggle:!1})}),-1!==ie?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(m.Z.Item,{name:"time",label:(0,S.jsxs)("span",{children:["延长时间(",(0,S.jsxs)("span",{style:{color:"#9096A3"},children:["当前考试截止时间",_()(null==V?void 0:V.user_total_end_time).format("YYYY-MM-DD HH:mm")]}),")"]}),children:(0,S.jsx)(g.Z,{min:0,precision:0,max:ae,style:{width:"100%"},placeholder:"最大可延长时间为".concat(ae,"分钟,在学生剩余时间基础上延时"),addonAfter:"分钟"})}),(0,S.jsxs)("div",{className:"mb20",style:{color:"#FA6400"},children:["该学生剩余考试时间:",(0,S.jsx)("span",{className:"ml5",children:G||q?"--":ce}),"分钟",0!==ce&&(null==V?void 0:V.user_end_time)&&(0,S.jsxs)("span",{children:[",交卷截止时间:",(0,S.jsx)("span",{className:"ml5",children:_()(null==V?void 0:V.user_end_time).add(E||0,"m").format("YYYY-MM-DD HH:mm:ss")})]})]})]}):(0,S.jsxs)("span",{style:{color:"#F6A53B"},children:[" 当前考试未限制考生答题时长,考试截止时间为 ",_()(re).format("YYYY-MM-DD HH:mm")]})]})}),(0,S.jsxs)(A.Z,{justify:"space-between",align:"middle",children:[(0,S.jsx)(j.Z,{}),(0,S.jsx)(j.Z,{children:(0,S.jsx)(w.ZP,{loading:R,onClick:$,children:"进入考试"})})]})]})})})}))},90341:function(e,n,t){t.d(n,{$J:function(){return o},JZ:function(){return u},bN:function(){return m},jP:function(){return p},rO:function(){return l}});var i=t(7557),r=t.n(i),s=t(41498),a=t.n(s),c=t(18030);function o(e){return(0,c.U2)("libraries/".concat(e,".json"))}function l(){return(0,c.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(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,c.IV)("attachments/".concat(n,".json"));case 2:return t=e.sent,e.abrupt("return",0===t.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return(0,c.v_)("libraries.json",e)}function m(e,n){return(0,c.gz)("libraries/".concat(e,".json"),n)}},41071:function(e,n,t){t.d(n,{Z:function(){return u}});var i=t(79800),r=t.n(i),s=t(59301),a="modal___yy3VB",c=t(43418),o=t(38279),l=t(37712),u=function(e){var n=e.title,t=e.children,i=e.value,u=(0,s.useState)(!1),d=r()(u,2),p=d[0],m=d[1];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{onClick:function(){return m(!0)},children:t}),(0,l.jsxs)(c.Z,{title:n,open:p,width:1e3,destroyOnClose:!0,centered:!0,onCancel:function(){return m(!1)},className:a,footer:null,children:["string"==typeof i&&(0,l.jsx)(o.Z,{value:i||""}),"[object Array]"===Object.prototype.toString.call(i)&&(0,l.jsx)(l.Fragment,{children:null==i?void 0:i.map((function(e,n){return(0,l.jsxs)("div",{children:[(0,l.jsx)("b",{children:e.name||e.type_name}),(0,l.jsx)(o.Z,{value:e.description||""})]},n)}))})]})]})}},43160:function(e,n,t){t.r(n),t.d(n,{default:function(){return Ke}});var i=t(82242),r=t.n(i),s=t(31468),a=t.n(s),c=t(7557),o=t.n(c),l=t(41498),u=t.n(l),d=t(79800),p=t.n(d),m=t(39647),f=t.n(m),v=t(59301),h=t(5296),x=t(92723),g=t(31797),A=t(8591),j=t(43418),w=t(24905),y=t(71418),b=t(3113),_=t(43428),N=t(61998),k=t(27092),I=t(17751),Z=t(35423),C={bg:"bg___yy2b4",header:"header___TfSCG",dragingMask:"dragingMask___i_1VX",content:"content___b8rIE",leftContainer:"leftContainer___BJcma",tabNav:"tabNav___uSNI4",mdContent:"mdContent___F9FMQ",resizeBar:"resizeBar___WbCV9","has-unity-3d":"has-unity-3d___BFusq","btn-resize":"btn-resize___Zfl7O",rightCotainer:"rightCotainer___iorUm",user:"user___I7MqL",titleWrap:"titleWrap___rJVb0",title:"title___jJ_Uz",endTimeWrap:"endTimeWrap___CSA6g",colorGray:"colorGray___oa4MJ",main:"main___LPfvU",loadFail:"loadFail___CrCok",reload:"reload___dIu1q",failIcon:"failIcon___g2eIS",failWrap:"failWrap___nbGWb",failReload:"failReload___nOEAI",dataSetButton:"dataSetButton___Oe8Wq",ac:"ac___XyH5r",dataSetText:"dataSetText___ltceD",dataSetOpen:"dataSetOpen___YeOkS",footer:"footer____7Qyw",start:"start___mqFxv",liWarp:"liWarp___MZgVd",li:"li___Pwqoe",disabled:"disabled___shXs_"},S=t(48064),B="drawerWrap___usUlu",D="drawer___o0tZt",E="title___N0L4E",M="disableTips___fbeqZ",P=t(38279),R=t(56102),F=t(37712),z=function(){var e=(0,v.useState)(!1),n=p()(e,2),t=n[0],i=n[1],r=(0,v.useRef)(),s=(0,v.useRef)();return[t,function(){clearTimeout(r.current),r.current=window.setTimeout((function(){i(!0),clearTimeout(s.current),s.current=window.setTimeout((function(){i(!1)}),1500)}),500)}]},O=function(e){var n=e.visible,t=e.x,i=e.y;return(0,F.jsx)("div",{className:M,style:n?{top:i,left:t}:{display:"none"},children:"禁止复制参考答案"})},L=(0,h.connect)((function(e){var n=e.loading;return{globalSetting:e.globalSetting,loading:n}}))((function(e){var n,t=e.visible,i=e.cancel,r=e.answerData,s=z(),a=p()(s,2),c=a[0],o=a[1],l=(0,v.useState)({x:0,y:0}),u=p()(l,2),d=u[0],m=u[1];return(0,F.jsx)(_.Z,{placement:"right",closable:!1,mask:!0,zIndex:998,onClose:i,width:600,open:2===t,rootClassName:B,children:(0,F.jsxs)("div",{className:D,children:[(0,F.jsxs)("h2",{className:E,style:{display:"flex",paddingRight:20,justifyContent:"space-between"},children:["参考答案 ",!(null!=r&&r.disable_copy)&&(0,F.jsx)(R.CopyToClipboard,{text:null==r||null===(n=r.standard_answer)||void 0===n?void 0:n.substring(3,(null==r?void 0:r.standard_answer.length)-3),onCopy:function(){return A.ZP.success("复制成功")},children:(0,F.jsx)("a",{style:{fontSize:16,fontWeight:400},children:"复制"})})]}),(0,F.jsx)("div",{className:"pl20 pr20",children:(0,F.jsxs)("div",{style:{userSelect:null!=r&&r.disable_copy?"none":"auto"},onMouseOver:function(e){m({x:e.clientX,y:e.clientY}),o()},children:[(null==r?void 0:r.disable_copy)&&(0,F.jsx)(O,{visible:c,x:d.x,y:d.y}),(0,F.jsx)(P.Z,{value:null==r?void 0:r.standard_answer})]})})]})})})),T=t(73096),W=t(37205),Q=t.n(W),U=t(51638),H=t(60344),G=t(26724),X=t.n(G),V="drawerWrap___dkOcq",J="drawer___ntUC2",Y="title___Z2x84",q="closeBtn___V3pCn",K="titleIcon___mIUoJ",$="filePathWrap___ib1bc",ee="filePathContent___JrvtY",ne="folderName___m5MVw",te="copy___EPMue",ie="listWrap___QzkC1",re="item___msJ9l",se="itemText___u5GrX",ae=(0,h.connect)((function(e){var n=e.loading;return{globalSetting:e.globalSetting,loading:n}}))((function(e){e.globalSetting,e.loading,e.dispatch;var n=e.visible,t=e.identifier,i=e.cancel,r=(0,v.useState)([]),s=p()(r,2),a=s[0],c=s[1],l=(0,v.useState)(),d=p()(l,2),m=(d[0],d[1]),f=(0,v.useState)(),h=p()(f,2),x=h[0],g=h[1],j=(0,v.useState)(),w=p()(j,2),y=w[0],b=w[1],N=(0,v.useState)({page:1,limit:20,identifier:null}),k=p()(N,2),I=k[0],Z=k[1];(0,v.useEffect)((function(){t&&(I.identifier=t,Z(I),C(I))}),[t]);var C=function(){var e=u()(o()().mark((function e(n){var t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.a$)(n);case 2:(t=e.sent)&&(c((function(e){return[].concat(Q()(e||[]),Q()((null==t?void 0:t.data_sets)||[]))})),b(20===(null===(i=t.data_sets)||void 0===i?void 0:i.length)),m(t.data_sets_count),g(t.folder_name));case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,F.jsx)(_.Z,{placement:"right",closable:!1,mask:!1,onClose:i,width:330,zIndex:998,open:1===n,rootClassName:V,children:(0,F.jsxs)("div",{className:J,children:[(0,F.jsxs)("h2",{className:Y,children:[(0,F.jsx)(U.Z,{className:q,onClick:i}),(0,F.jsx)("i",{className:"iconfont icon-base ".concat(K)}),"数据集"]}),(0,F.jsxs)("div",{className:$,children:[(0,F.jsx)("span",{className:"ml50",children:"文件路径"}),(0,F.jsxs)("div",{className:ee,children:[(0,F.jsx)("span",{className:ne,children:x}),(0,F.jsx)(R.CopyToClipboard,{text:x,onCopy:function(){return A.ZP.success("复制成功")},children:(0,F.jsx)("span",{className:"".concat(te," current"),children:"复制地址"})})]})]}),(0,F.jsx)("div",{className:ie,children:(0,F.jsx)(X(),{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(e){return I.page=I.page+1,Z(I),void C(I)},hasMore:y,useWindow:!1,children:a.map((function(e,n){return(0,F.jsxs)("div",{className:re,children:[(0,F.jsxs)("span",{className:se,title:e.title,children:[(0,F.jsx)(H.Z,{style:{color:"#28b887",fontSize:25}}),e.title]}),(0,F.jsx)(R.CopyToClipboard,{text:e.file_path,onCopy:function(){return A.ZP.success("复制成功")},children:(0,F.jsx)("span",{className:"".concat(te," current"),children:"复制地址"})})]})}))})})]})})})),ce="wrap___SEtIN",oe="bg___JE5ml",le=function(e){var n=e.showModal,t=e.setShowModal;return(0,F.jsx)("div",{className:ce,style:{display:n?"flex":"none"},children:(0,F.jsx)("div",{className:oe,children:(0,F.jsx)("i",{onClick:function(){return t(!1)},className:"iconfont icon-roundclose"})})})},ue=t(55874),de=t(45804),pe=t(40689),me=t(79818),fe=t.n(me),ve="diff-panel-container___DRHwS",he="diff-panel-container-2___T3Rde",xe=new(fe());xe.Diff_EditCost=8;var ge={oldStr:"",newStr:""};function Ae(e,n){if("init"===n.type)return r()(r()({},e),n.payload);throw new Error}function je(e,n){var t=e[0],i=(e[1]||"").replace(/&/g,"&").replace(//g,">"),r=!i.trim();if("oldStr"===n)switch(t){case me.DIFF_DELETE:return"")+i+"";case me.DIFF_EQUAL:return""+i+""}else switch(t){case me.DIFF_INSERT:return"")+i+"";case me.DIFF_EQUAL:return""+i+""}}var we=function(e){var n,t,i=e.output,r=e.actual_output,s=(0,v.useReducer)(Ae,ge),a=p()(s,2),c=a[0],o=a[1];return i=null===(n=i)||void 0===n?void 0:n.replace(/\n/g,"\r").replace(/\u0020/g," ").replace(/\u0000/g,"\\u0000"),r=null===(t=r)||void 0===t?void 0:t.replace(/\n/g,"\r").replace(/\u0020/g," ").replace(/\u0000/g,"\\u0000"),(0,v.useEffect)((function(){var e=xe.diff_main(i||"",r||"");xe.diff_cleanupEfficiency(e);var n=e.map((function(e){return je(e,"oldStr")})).join(""),t=e.map((function(e){return je(e,"newStr")})).join("");o({type:"init",payload:{oldStr:n,newStr:t}})}),[i,r]),(0,F.jsxs)("div",{className:ve,children:[(0,F.jsx)("div",{dangerouslySetInnerHTML:{__html:c.oldStr}}),(0,F.jsx)("div",{dangerouslySetInnerHTML:{__html:c.newStr}})]})},ye=t(21082),be={"choose-game-item":"choose-game-item___sJBZO","output-title-container":"output-title-container___HnzHt","output-title":"output-title___cQCt2","test-case-list":"test-case-list___ULWwO","test-header":"test-header___HMjcY",active:"active___YxidH","resize-y-bar":"resize-y-bar___es6Oh","test-result":"test-result___zXN_Y","markdown-body":"markdown-body___EHEjV",success:"success___ZvFU2",failer:"failer___lQvRe",count:"count___lVWvy","test-case-item":"test-case-item___ptoQn","case-header":"case-header___UDkvN",iconfont:"iconfont___XT_ll",description:"description___BJIlI","item-desc":"item-desc___e8tqN",show:"show___nh0Ha","item-tip":"item-tip___H05sn","arrow-down":"arrow-down___DcvbX","test-title":"test-title___2XlIU","arrow-right":"arrow-right___a5kiA","case-info":"case-info___akfl1","test-case-run-header":"test-case-run-header___rIpIu","test-case-run-wrp":"test-case-run-wrp___hfxtY",title:"title___ldXVu",warp:"warp_____VWp",spin:"spin___OU0Kn",spinTest:"spinTest___UNIX8","diff-panel-container":"diff-panel-container___xo1_S"},_e=new(fe());_e.Diff_EditCost=8;var Ne={oldStr:"",newStr:""};function ke(e,n){if("init"===n.type)return r()(r()({},e),n.payload);throw new Error}function Ie(e,n){var t=e[0],i=(e[1]||"").replace(/&/g,"&").replace(//g,">"),r=!i.trim();if("oldStr"===n)switch(t){case me.DIFF_DELETE:return"")+i+"";case me.DIFF_EQUAL:return""+i+""}else switch(t){case me.DIFF_INSERT:return"")+i+"";case me.DIFF_EQUAL:return""+i+""}}var Ze=function(e){var n,t,i=e.output,r=e.actual_output,s=(0,v.useReducer)(ke,Ne),a=p()(s,2),c=a[0],o=a[1];return i=null===(n=i)||void 0===n?void 0:n.replace(/\n/g,"\r"),r=null===(t=r)||void 0===t?void 0:t.replace(/\n/g,"\r"),(0,v.useEffect)((function(){var e=_e.diff_main(i||"",r||"");_e.diff_cleanupEfficiency(e);var n=e.map((function(e){return Ie(e,"oldStr")})).join(""),t=e.map((function(e){return Ie(e,"newStr")})).join("");o({type:"init",payload:{oldStr:n,newStr:t}})}),[i,r]),(0,F.jsx)("div",{style:{width:"100%"},className:"c-white ".concat(ve," ").concat(he),children:(0,F.jsx)("div",{style:{minHeight:0,padding:"0px 12px"},dangerouslySetInnerHTML:{__html:c.oldStr}})})},Ce=t(93697);function Se(e){var n=e.ts_mem,t=e.ts_time,i=e.input,r=e.output,s=e.actual_output,a=e.is_file,c=e.output_file_url,o=e.result,l=e.compile_success,u=e.title,d=e.isActive,m=e.id,f=e.onActive,h=e.is_public,x=(e.test_sets_view,e.identity,e.is_invisible),g=e.actual_output_visible,j=e.user,w=(0,v.useState)(!1),y=p()(w,2),b=y[0],_=y[1];return x&&(null==j?void 0:j.identity_number)>5&&(r="该预期输出不可查看"),g&&(null==j?void 0:j.identity_number)>5&&(s="该实际输出不可查看"),(0,F.jsxs)("li",{className:be["test-case-item"],children:[(0,F.jsxs)("a",{className:be["case-header"],style:{borderWidth:d?1:0},onClick:function(){(0,Ce.I2)([Ce.GD.CertifiedTeacher,Ce.GD.SuperAdmin,Ce.GD.Operation])||h?f(m):A.ZP.info("本测试集不可解锁")},children:[(0,F.jsxs)("h2",{children:[(0,F.jsx)("div",{className:d?be["arrow-down"]:be["arrow-right"]}),(0,F.jsx)("span",{className:be["test-title"],children:u})]}),(0,F.jsxs)("div",{className:be["case-info"],children:[n?(0,F.jsxs)("span",{className:be.description,children:["消耗内存",n,"MB"]}):null,t?(0,F.jsxs)("span",{className:be.description,children:[" 代码执行时长:",t,"秒 "]}):null,h?null:(0,F.jsx)("i",{className:"iconfont icon-suo1"}),l>0?(0,F.jsx)("img",{width:16,src:o?ue.Z:de.Z}):null]})]}),(0,F.jsxs)("div",{className:"".concat(be["item-desc"]," ").concat(be["choose-game-item"]," ").concat(d?be.show:be.hide),children:[i&&(0,F.jsxs)("span",{style:{color:"white",display:"flex",alignItems:"center"},children:["测试输入",i&&(0,F.jsx)("div",{style:{width:"33%"},children:(0,F.jsx)(Ze,{output:i})})]}),(0,F.jsxs)("p",{className:be["output-title-container"],style:{marginTop:10},children:[(0,F.jsx)("span",{style:{color:"#747a7f"},children:"——预期输出——"}),(0,F.jsxs)("span",{className:be["output-title"],children:[(0,F.jsx)("span",{style:{color:"#fff"},children:"——实际输出——"}),!a&&(0,F.jsx)("span",{className:"c-blue current",onClick:function(){return _(!b)},children:b?"展示格式化输出":"展示原始输出"})]})]}),a&&(0,F.jsxs)("div",{className:be["diff-panel-container"],children:[(0,F.jsx)("div",{className:"tc",children:(0,F.jsx)("a",{className:"underline",onClick:function(){return(0,ye.LR)(c,r)},children:r})}),(0,F.jsx)("div",{className:"tc",children:l?(0,F.jsx)("a",{className:"underline",onClick:function(){return(0,ye.LR)(s,r)},children:r}):s})]}),!a&&!b&&(0,F.jsx)(we,{output:r,actual_output:s}),!a&&b&&(0,F.jsxs)("div",{className:be["diff-panel-container"],children:[(0,F.jsx)("div",{className:"",children:r}),(0,F.jsx)("div",{className:"",children:s})]})]})]})}var Be=function(e){var n=e.test_sets,t=e.gamesData,i=e.loading,s=e.codeMessage,a=e.jupyterData,c=(0,v.useState)(-1),o=p()(c,2),l=o[0],u=o[1],d=(0,v.useRef)();function m(e){u(e===l?-1:e)}return(0,v.useEffect)((function(){if(d.current){var e=function(e){r=i.offsetHeight,s=!0,a=e.pageY,(0,ye.kk)("none"),document.onselectstart=function(){return!1}},n=function(){s=!1,(0,ye.kk)("auto"),document.onselectstart=null},t=function(e){if(s){var n=a-e.pageY,t=r+n;t<200&&(t=200),t>window.innerHeight-130&&(t=window.innerHeight-130),i.style.height=t+"px"}},i=document.getElementById("jupyter-test-case-list"),r=0,s=!1,a=0,c=document.getElementById("jupyter-y-bar");return null==c||c.addEventListener("mousedown",e),document.addEventListener("mousemove",t),document.addEventListener("mouseup",n),function(){var i=document.getElementById("jupyter-y-bar");null==i||i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)}}}),[d]),(0,F.jsxs)("ul",{id:"jupyter-test-case-list",className:be["test-case-list"],children:[(0,F.jsx)("div",{className:be["resize-y-bar"],id:"jupyter-y-bar",ref:d,draggable:!1,children:(0,F.jsx)("i",{className:"iconfont icon-guangbiao",draggable:!1})}),(0,F.jsx)("div",{className:be.warp,children:(0,F.jsxs)(y.Z,{tip:s,spinning:i,className:be.spinTest,children:[(0,F.jsx)("div",{className:be.title,style:{color:"white"},children:"测试结果:"}),null!=t&&t.last_compile_output?(0,F.jsxs)("p",{className:"".concat(be["test-result"]," ").concat(0===(null==t?void 0:t.sets_error_count)?be.success:be.failer),children:[(0,F.jsxs)("span",{className:be.count,children:[(0,F.jsx)("img",{width:16,src:0===(null==t?void 0:t.sets_error_count)?ue.Z:pe.Z}),(null==t?void 0:t.test_sets_count)-(null==t?void 0:t.sets_error_count),"/",null==t?void 0:t.test_sets_count]}),0==(null==t?void 0:t.sets_error_count)?(0,F.jsx)("span",{className:be.count,children:"全部通过"}):(0,F.jsx)("div",{dangerouslySetInnerHTML:{__html:null==t?void 0:t.last_compile_output}})]}):null,!i&&n.map((function(e,n){return(0,F.jsx)(Se,r()(r()({title:"测试用例".concat(n+1)},e),{},{isActive:l===n,id:n,user:null==a?void 0:a.user,onActive:m}),"item"+n)}))]})})]})},De=t(26830),Ee=t(21978),Me=t(52787),Pe=function(e){var n=e.noDragging,t=e.moveX;return(0,F.jsx)(v.Fragment,{children:n?(0,F.jsx)("a",{className:"trapezoid ".concat(.01===t?"enlarge":""),children:(0,F.jsx)("img",{src:.01===t?Ee:Me,alt:"resize-icon",width:20})}):(0,F.jsx)("a",{className:"btn-resize",draggable:!1,children:(0,F.jsx)("svg",{width:"16",height:"13",viewBox:"0 0 16 13",children:(0,F.jsx)("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})})})})},Re=function(e,n){switch(n.type){case"MOVE_X":return r()(r()({},e),{},{moveX:n.payload});case"SET_DRAGMODULE":return r()(r()({},e),{},{showDragModule:n.payload});case"TRIGGER_RIGHT_PANEL_MASK":return r()(r()({},e),{},{showDragMask:n.payload})}},Fe=t(50021),ze=t(18030),Oe=t(55945),Le=t(24808),Te=t(38060),We=t(13275),Qe=t(680),Ue=t(31591),He=t(61186),Ge=t.n(He),Xe=t(76890),Ve=["globalSetting","loading","dispatch","user"],Je=g.Z.Countdown,Ye=function(e){return e[e.LoadFail=1]="LoadFail",e[e.ReLoad=2]="ReLoad",e[e.Success=3]="Success",e}(Ye||{}),qe={moveX:"40%",showDragModule:!1,showDragMask:!1},Ke=(0,h.connect)((function(e){var n=e.loading;return{globalSetting:e.globalSetting,loading:n,user:e.user}}))((function(e){e.globalSetting,e.loading;var n,t,i,s,c,l,d,m,g=e.dispatch,B=e.user,D=(f()(e,Ve),(0,h.useParams)()),E=(0,h.useSearchParams)(),M=p()(E,1)[0],R=((0,h.useLocation)(),(0,v.useRef)()),z=(0,v.useState)(!0),O=p()(z,2),W=O[0],Q=O[1],U=(0,v.useState)(!1),H=p()(U,2),G=H[0],X=H[1],V=(0,v.useState)(0),J=p()(V,2),Y=J[0],q=J[1],K=(0,v.useState)(0),$=p()(K,2),ee=$[0],ne=$[1],te=(0,v.useState)(!0),ie=p()(te,2),re=ie[0],se=ie[1],ce=(0,v.useState)(!1),oe=p()(ce,2),ue=oe[0],de=oe[1],pe=(0,v.useRef)(!0),me=(0,v.useState)({}),fe=p()(me,2),ve=fe[0],he=fe[1],xe=(0,v.useState)({}),ge=p()(xe,2),Ae=ge[0],je=ge[1],we=(0,v.useState)(),be=p()(we,2),_e=be[0],Ne=be[1],ke=(0,v.useRef)(),Ie=(0,v.useRef)(),Ze=(0,v.useState)(Ye.Success),Ce=p()(Ze,2),Se=Ce[0],Ee=Ce[1],Me=(0,v.useState)(),He=p()(Me,2),Ke=He[0],$e=He[1],en=(0,v.useState)(),nn=p()(en,2),tn=nn[0],rn=nn[1],sn=(0,v.useState)(!1),an=p()(sn,2),cn=an[0],on=an[1],ln=(0,v.useState)(""),un=p()(ln,2),dn=un[0],pn=un[1],mn=(0,v.useRef)(null),fn=(0,v.useRef)({}),vn=(0,v.useRef)(!1),hn=(0,v.useRef)(),xn=(0,v.useReducer)(Re,qe),gn=p()(xn,2),An=gn[0],jn=gn[1],wn=(0,v.useState)(!1),yn=p()(wn,2),bn=yn[0],_n=yn[1],Nn=(0,v.useState)(!0),kn=p()(Nn,2),In=kn[0],Zn=kn[1],Cn=(0,v.useRef)(),Sn=(0,v.useRef)(!1),Bn=(0,v.useState)(!1),Dn=p()(Bn,2),En=Dn[0],Mn=Dn[1],Pn=(0,v.useState)(!1),Rn=p()(Pn,2),Fn=Rn[0],zn=Rn[1],On="exercises"===M.get("type")||M.get("homework_common_id"),Ln=(0,v.useState)([]),Tn=p()(Ln,2),Wn=Tn[0],Qn=Tn[1],Un=(0,v.useState)(!1),Hn=p()(Un,2),Gn=Hn[0],Xn=Hn[1],Vn=(0,v.useState)({page:1,limit:5}),Jn=p()(Vn,2),Yn=Jn[0],qn=Jn[1],Kn=(0,v.useState)(!1),$n=p()(Kn,2),et=($n[0],$n[1]);(0,v.useEffect)((function(){var e;0!==(null==B||null===(e=B.userInfo)||void 0===e?void 0:e.user_status)&&((new Date).getTime()>parseFloat(localStorage.getItem("task_ignore"))||0===parseFloat(localStorage.getItem("task_ignore")||0))?et(!0):et(!1)}),[localStorage.getItem("task_ignore"),null==B?void 0:B.userInfo]),(0,v.useEffect)((function(){return g({type:"globalSetting/headerFooterToggle",payload:!1}),M.get("exercisesId")&&"coursesId"!==M.get("coursesId")&&nt(),function(){g({type:"globalSetting/headerFooterToggle",payload:!0})}}),[]),(0,v.useEffect)((function(){0!==Y?(clearInterval(mn.current),mn.current=setInterval((function(){q(Y-1)}),1e3)):clearInterval(mn.current)}),[Y]),(0,v.useEffect)((function(){return window.addEventListener("message",rt),function(){window.removeEventListener("message",rt)}}),[]),(0,v.useEffect)((function(){ct()}),[D.identifier]),(0,v.useEffect)((function(){ve.myshixun_identifier&&ot(),ve.tpm_modified&&tt()}),[ve]);var nt=function(){var e=u()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ue._B)({categoryId:M.get("exercisesId"),login:M.get("login")});case 2:n=e.sent,Cn.current=n;case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),tt=function(){mt({title:"更新通知",content:(0,F.jsxs)("p",{children:["关卡任务的代码文件有更新啦~",(0,F.jsx)("br",{})," 更新操作将保留已完成的评测记录和成绩。",(0,F.jsx)("br",{}),"还未完成评测的任务代码,请自行保存!"]})})},it=function(){var e=u()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return document.getElementById("taskJupyterIframe").contentWindow.postMessage("saveCode","*"),e.next=4,(0,ze.ZP)("/api/homework_commons/".concat(M.get("homework_common_id"),"/student_works.json"),{method:"post",body:{myshixun_identifier:null==ve?void 0:ve.myshixun_identifier}});case 4:0===(null==(n=e.sent)?void 0:n.status)&&A.ZP.info("提交成功");case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),rt=function(e){"jupytermessage"===(null==e?void 0:e.data)&&pe.current&&(pe.current=!1,st(),vn.current||setTimeout((function(){return pe.current=!0}),500))},st=function(){var e=u()(o()().mark((function e(){var n,t,i,s,c,l,u,d,p;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Sn.current=!1,l="","inner"!==(null===(n=Cn.current)||void 0===n||null===(n=n.exercise)||void 0===n?void 0:n.ip_limit)&&"true"!==(null===(t=Cn.current)||void 0===t||null===(t=t.exercise)||void 0===t?void 0:t.ip_bind_type)){e.next=6;break}return e.next=5,(0,Oe.y)({ip_limit:null===(i=Cn.current)||void 0===i||null===(i=i.exercise)||void 0===i?void 0:i.ip_limit,ip_bind:"true"===(null===(s=Cn.current)||void 0===s||null===(s=s.exercise)||void 0===s?void 0:s.ip_bind_type)});case 5:l=e.sent;case 6:return e.next=8,(0,S.zE)({identifier:D.identifier,jupyter_port:Ie.current,token:R.current,jupyter_domain:null===(c=ke.current)||void 0===c||null===(c=c[0])||void 0===c?void 0:c.domain,exercise_id:M.get("exercisesId"),ip:l});case 8:if(0!==(u=e.sent).status){e.next=13;break}vn.current?at(null==u?void 0:u.data):A.ZP.success({content:"保存成功!",key:"save-jupyter"}),e.next=16;break;case 13:if(-5!==u.status||"object"!==a()(null==u?void 0:u.message)){e.next=16;break}return(0,h.getDvaApp)()._store.dispatch({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:r()(r()({},(null===(d=Cn.current)||void 0===d?void 0:d.exercise)||{}),{},{errorMessage:null==u?void 0:u.message,exercise_user_id:null===(p=Cn.current)||void 0===p||null===(p=p.exercise)||void 0===p?void 0:p.exercise_user_id,id:M.get("exercisesId")})}}),e.abrupt("return");case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),at=function(){var e=u()(o()().mark((function e(n){var t,i,s,a,c,l,d,p,m,f,v;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d={extras:{exercise_id:M.get("exercisesId"),question_id:M.get("questionId"),challenge_id:null==ve?void 0:ve.challenge_id},sec_key:null==n?void 0:n.sec_key,resubmit:null==n?void 0:n.resubmit,first:1,content_modified:0},"inner"!==(null===(t=Cn.current)||void 0===t||null===(t=t.exercise)||void 0===t?void 0:t.ip_limit)&&"true"!==(null===(i=Cn.current)||void 0===i||null===(i=i.exercise)||void 0===i?void 0:i.ip_bind_type)){e.next=5;break}return e.next=4,(0,Oe.y)({ip_limit:null===(s=Cn.current)||void 0===s||null===(s=s.exercise)||void 0===s?void 0:s.ip_limit,ip_bind:"true"===(null===(a=Cn.current)||void 0===a||null===(a=a.exercise)||void 0===a?void 0:a.ip_bind_type)});case 4:d.extras.ip=e.sent;case 5:return M.get("homework_common_id")&&(d.extras={homework_common_id:M.get("homework_common_id")}),e.next=8,(0,T.Xy)(null===(c=fn.current)||void 0===c?void 0:c.game_identifier,d);case 8:if(-1!==e.sent.status){e.next=18;break}if("exercises"!==M.get("type")){e.next=13;break}return window.parent.location.href="/classrooms/".concat(M.get("coursesId"),"/exercise/").concat(M.get("exercisesId"),"/detail"),e.abrupt("return");case 13:return X(!1),q(10),vn.current=!1,pe.current=!0,e.abrupt("return");case 18:p=1,m=!1,f=(null===(l=fn.current)||void 0===l?void 0:l.exec_time)+11,v=function(){var e=u()(o()().mark((function e(){var t,i,s,a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,T.Qo)(null===(t=fn.current)||void 0===t?void 0:t.game_identifier,{resubmit:null==n?void 0:n.resubmit,time_out:m,port:null===(i=fn.current)||void 0===i?void 0:i.port,sec_key:null==n?void 0:n.sec_key,challenge_id:null===(s=fn.current)||void 0===s?void 0:s.challenge_id});case 2:null===(null==(a=e.sent)?void 0:a.running_code_status)||1===(null==a?void 0:a.running_code_status)||2===(null==a?void 0:a.running_code_status)||0===(null==a?void 0:a.running_code_status)?((p+=1)>f&&(m=!0),m&&A.ZP.info("本次评测超时"),1!==(null==a?void 0:a.running_code_status)&&2!==(null==a?void 0:a.running_code_status)||pn(null==a?void 0:a.running_code_message),setTimeout((function(){v()}),1e3)):(2===a.status&&Mn(!0),je(r()({},a)),de(!0),X(!1),pn(""),q(10),vn.current=!1,pe.current=!0);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),v();case 23:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),ct=function(){var e=u()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.dU)({identifier:D.identifier,homework_id:M.get("homework_common_id")});case 2:(n=e.sent)&&(he(n),fn.current=r()({},n),je(r()(r()({},Ae),{},{test_sets:(null==n?void 0:n.test_sets)||[]})),jn({type:"SET_DRAGMODULE",payload:n.jupyter_show_description}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ot=function(){var e=u()(o()().mark((function e(){var n,t,i,s,a,c,l,u,d,p,m,f,v,h,x;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},"exercises"===M.get("type")?t.exercise_id=M.get("exercisesId"):M.get("homework_common_id")&&(t.homework_common_id=M.get("homework_common_id")),e.next=4,(0,S.rV)(r()({identifier:D.identifier,homework_common_id:M.get("homework_common_id")||""},t));case 4:if(i=e.sent,Q(!1),null==i||null===(n=i.data)||void 0===n||null===(n=n.data_list)||void 0===n||!n.length){e.next=9;break}return Fe.Z.publish("pod-restrict-data",{identifier:null==i||null===(s=i.data)||void 0===s?void 0:s.identifier,data_list:null==i||null===(a=i.data)||void 0===a?void 0:a.data_list}),e.abrupt("return");case 9:if(null==i||!i.data){e.next=23;break}if(Ne(i.data),ke.current=i.data,R.current=null===(c=(0,ye.en)(null==i||null===(l=i.data)||void 0===l||null===(l=l[0])||void 0===l?void 0:l.link_url))||void 0===c?void 0:c.token,Ie.current=null==i||null===(u=i.data)||void 0===u||null===(u=u[0])||void 0===u?void 0:u.port,!((null===(d=i.data)||void 0===d?void 0:d.length)>1)){e.next=18;break}return $e(Date.now()+(null==i||null===(v=i.data)||void 0===v||null===(v=v[0])||void 0===v?void 0:v.remaining_time)),rn((null==i||null===(h=i.data)||void 0===h||null===(h=h[0])||void 0===h?void 0:h.remaining_time)-3e5<=0?Date.now()+1e3:Date.now()+((null==i||null===(x=i.data)||void 0===x||null===(x=x[0])||void 0===x?void 0:x.remaining_time)-3e5)),e.abrupt("return");case 18:return se(!1),Ee(Ye.Success),$e(Date.now()+(null==i||null===(p=i.data)||void 0===p||null===(p=p[0])||void 0===p?void 0:p.remaining_time)),rn((null==i||null===(m=i.data)||void 0===m||null===(m=m[0])||void 0===m?void 0:m.remaining_time)-3e5<=0?Date.now()+1e3:Date.now()+((null==i||null===(f=i.data)||void 0===f||null===(f=f[0])||void 0===f?void 0:f.remaining_time)-3e5)),e.abrupt("return");case 23:-1===i.status?(Ee(Ye.LoadFail),se(!1)):Ee(Ye.ReLoad);case 24:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),lt=function(){pt(!0),Q(!0),j.Z.confirm({centered:!0,title:"重置环境",content:" 是否确定重置环境?",okText:"确定",cancelText:"取消",onOk:function(){ut()},onCancel:function(){pt(!1),Q(!1)}})},ut=function(){var e=u()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.m_)({identifier:null==ve?void 0:ve.myshixun_identifier});case 2:if(0===(null==(n=e.sent)?void 0:n.status)){e.next=5;break}return e.abrupt("return");case 5:A.ZP.success("重置成功!"),Q(!1),setTimeout((function(){return window.location.reload()}),300);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),dt=function(){j.Z.destroyAll(),j.Z.confirm({centered:!0,title:"倒计时截止",content:(0,F.jsx)("p",{className:"tc font14",children:"服务已中断,是否确认重置实验环境?"}),okText:"确定",cancelText:"取消",onOk:function(){ut()}})},pt=function(e){var n=document.getElementById("taskJupyterIframe");n&&(e?n.contentWindow.postMessage("stopParent","*"):n.contentWindow.postMessage("clonsParent","*"))},mt=function(e){var n;j.Z.confirm({centered:!0,title:e.title,content:e.content,okText:"确定",cancelText:"取消",onOk:(n=u()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},"exercises"===M.get("type")?n.exercise_id=M.get("exercisesId"):M.get("homework_common_id")&&(n.homework_common_id=M.get("homework_common_id")),e.next=4,(0,S.fi)(r()({identifier:D.identifier},n));case 4:if(0===e.sent.status){e.next=7;break}return e.abrupt("return");case 7:A.ZP.success("操作成功"),Q(!1),setTimeout((function(){return window.location.reload()}),300);case 10:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)}),onCancel:function(){pt(!1),Q(!1)}})};(0,v.useEffect)((function(){function e(e){jn({type:"MOVE_X",payload:e.pageX})}function n(){jn({type:"TRIGGER_RIGHT_PANEL_MASK",payload:!1}),document.onselectstart=null}return An.showDragMask&&(document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}}),[An.showDragMask]);var ft="number"==typeof An.moveX&&.01!==An.moveX?"".concat(An.moveX,"px"):"40%",vt="calc(100% - 4px - ".concat(ft,")"),ht=function(e){jn({type:"TRIGGER_RIGHT_PANEL_MASK",payload:e})},xt=(0,v.useState)(),gt=p()(xt,2),At=gt[0],jt=gt[1],wt=function(){var e=u()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ze.ZP)("/api/shixuns/".concat(n,"/get_standard_answer.json"),{method:"get",params:{from:"starting"}});case 2:0===(t=e.sent).status&&jt(t);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();function yt(){_n(!1)}(0,v.useEffect)((function(){ve.identifier&&wt(ve.identifier)}),[ve]);var bt=function(e){(0,We.vp)()?Zn(!1):Zn(!0)};function _t(){return Nt.apply(this,arguments)}function Nt(){return Nt=u()(o()().mark((function e(){var n,t,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},"exercises"===M.get("type")?t.exercise_id=M.get("exercisesId"):M.get("homework_common_id")&&(t.homework_common_id=M.get("homework_common_id")),e.next=4,(0,T.Tf)(null==ve?void 0:ve.myshixun_identifier,r()({},t));case 4:if(-5!==(null==(i=e.sent)?void 0:i.status)){e.next=8;break}return j.Z.info({title:"提示",maskClosable:!0,icon:null,width:700,centered:!0,content:(0,F.jsxs)("div",{children:["该实践项目已在教学课堂考试(",(0,F.jsx)("a",{href:"/classrooms/".concat(null==i?void 0:i.course_identifier,"/exercise/").concat(null==i?void 0:i.exercise_id,"/detail"),children:null==i?void 0:i.exercise_name}),")中被使用,用户试卷已交卷,禁止再作答!"]})}),e.abrupt("return");case 8:return null===(n=window.location)||void 0===n||n.reload(),e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)}))),Nt.apply(this,arguments)}(0,v.useEffect)((function(){return document.addEventListener((0,We.gH)(),bt),hn.current=setInterval((function(){var e;e=new Event("beforeunload"),window.dispatchEvent(e)}),2e3),function(){clearInterval(hn.current),document.removeEventListener((0,We.gH)(),bt)}}),[]);var kt=function(){j.Z.confirm({title:"重置代码仓库",icon:(0,F.jsx)(Qe.Z,{}),content:"您的所有代码将被还原至初始状态,不影响通关状态与作业成绩。确认重置?",centered:!0,okText:"确定",cancelText:"取消",onOk:_t})},It={is_jupyter:!0,is_jupyter_notebook:!0===(null==ve?void 0:ve.is_jupyter),is_jupyter_lab:!1===(null==ve?void 0:ve.is_jupyter),jupyterData:ve,onVncAction:function(e){var n,t;yt(),"reset-task"===e&<(),"reset-git-code"===e&&kt(),"reset-code"===e&&(Q(!0),pt(!0),mt({title:"恢复初始代码",content:(0,F.jsxs)("div",{className:"tc font14",children:["你在本文件中修改的内容将丢失,",(0,F.jsx)("br",{}),"是否确定重新加载初始代码?"]})})),"full-screen"===e&&((0,We.vp)()?(0,We.BU)():(0,We.Dj)(null===(n=document)||void 0===n||null===(t=n.getElementById)||void 0===t?void 0:t.call(n,"juptyer")))},onHideToolBar:yt,port:null==_e||null===(n=_e[0])||void 0===n?void 0:n.port,token:R.current},Zt=(null==B||null===(t=B.userInfo)||void 0===t?void 0:t.user_id)===(null==ve||null===(i=ve.user)||void 0===i?void 0:i.user_id);console.log(Zt,null==B||null===(s=B.userInfo)||void 0===s?void 0:s.user_id,null==ve||null===(c=ve.user)||void 0===c?void 0:c.user_id,333);var Ct=function(){g({type:"user/getUserInfo",payload:{objective_id:ve.identifier,objective_type:"shixun"}}),"exercises"===M.get("type")&&"IFRAME"!==document.activeElement.tagName&&window.parent.postMessage("backExercise","*"),h.history.push("/shixuns/".concat(ve.identifier,"/challenges"))};return(0,F.jsxs)(y.Z,{spinning:W,tip:"加载中...",children:[(0,F.jsxs)("section",{id:"juptyer",className:C.bg,style:{userSelect:An.showDragMask?"none":"unset"},children:[An.showDragMask&&(0,F.jsx)("div",{className:C.dragingMask}),(0,F.jsxs)("header",{className:C.header,children:[(0,F.jsxs)("div",{className:C.user,children:[(0,F.jsx)("img",{src:"".concat(x.Z.IMG_SERVER,"/images/").concat(null==ve||null===(l=ve.user)||void 0===l?void 0:l.image_url),alt:"用户头像"}),(0,F.jsx)("span",{className:"ml10",children:null==ve||null===(d=ve.user)||void 0===d?void 0:d.name})]}),(0,F.jsxs)("div",{className:C.titleWrap,children:[(0,F.jsx)("span",{className:C.title,children:null==ve?void 0:ve.name}),(0,F.jsxs)("span",{children:[(0,F.jsx)(Je,{value:Ke,format:"HH:mm:ss",onFinish:dt}),(0,F.jsx)("span",{className:C.endTimeWrap,children:tn&&(0,F.jsx)(Je,{value:tn,format:"HH:mm:ss",onFinish:function(){var e;j.Z.destroyAll(),j.Z.confirm({centered:!0,title:"服务中断提醒",content:(0,F.jsxs)("div",{className:"tc font14",children:["jupyter将于",(0,F.jsx)("span",{children:(0,F.jsx)(Je,{value:Ke,format:"HH:mm:ss",onFinish:dt})}),"时间后服务中断,是否需要延长使用时间?"]}),okText:"立即延长",cancelText:"不需要",onOk:(e=u()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,S.rB)(null==ve?void 0:ve.myshixun_identifier);case 2:if(0!==e.sent.status){e.next=7;break}return e.next=6,ot();case 6:A.ZP.success("延长成功!");case 7:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})}})})]})]}),(0,F.jsxs)("div",{className:C.actionWrap,children:[ve.tpm_modified&&In&&(0,F.jsx)("img",{src:De.GY,onClick:tt,style:{position:"relative",top:-1,marginRight:8,cursor:"pointer"}}),On&&(0,F.jsx)(F.Fragment,{children:(0,F.jsx)("div",{onClick:u()(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,ze.ZP)("/api/tasks/".concat(D.identifier,"/jupyter_redo_logs.json"),{method:"get",params:Yn});case 2:if(0!==(null==(t=e.sent)?void 0:t.status)||0!==(null==t||null===(n=t.data)||void 0===n?void 0:n.count)){e.next=6;break}return A.ZP.info("暂无重置记录"),e.abrupt("return");case 6:Qn(null==t?void 0:t.data),Xn(!0);case 8:case"end":return e.stop()}}),e)}))),style:{display:"contents",color:"#888",cursor:"pointer"},children:"重置记录"})}),(null==ve?void 0:ve.manager_permission)&&(0,F.jsx)(b.ZP,{icon:(0,F.jsx)("span",{className:"iconfont font14 icon-peizhiyujiankong current"}),className:"".concat(C.colorGray," font14"),type:"link",onClick:function(){console.log("jupyterData",ve),zn(!0)},children:"配置与监控"}),In&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("img",{alt:"tool",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAABZ0lEQVRYR+2YrU7FQBBGzzwEPAMSi+M6MARDggNJgiIkWLiSBIFCkyCuQECCQFIcEstb8AYf2ZvmhpbuT9ttUpJWdma+OZ3O7k5rRC5Jh8ARsBPzjdhvgXczew75WSyJpCdgP+aXaP8ws63OQJK2gbdSYJ6Y1Od2WRpmZlb4nIIVqgEFhUKwbXTGByRpDzgBdnu+kr7hD8CLSboGLvqqZYp/dEDK1LR9mZZNXwEys6u+ql3iJbm8E5C3eFOFYn2VrUKS1oADYL1M+gW8mtl3DOK3PQuQpE1gAWzUkn8CZ6Hzqg6bC+gcuPFU4s7MTlOrlAvITQFuGijMbOaSS/pzLwXKB+QdCQKiXqAUkJqP06rs1B00liFNFeqqVQEaXYXmbc6ypn7J3UNtgUa3ysa1D5XLfDw7dedl1BCYZWOcgHJWIKb1f15Z7EkGtq+G/NXEP3DCFPl79xnkTln3u+U4JWJAH/czo/gBVkc5pun3NGoAAAAASUVORK5CYII=",width:14,style:{opacity:"0.45",margin:"0 -5px 2px 15px"}}),(0,F.jsx)(b.ZP,{className:"".concat(C.colorGray," font14"),type:"link",onClick:function(){_n(!bn)},children:"工具栏"})]}),(0,F.jsx)(b.ZP,{icon:(0,F.jsx)(Z.Z,{}),className:"".concat(C.colorGray," font14"),type:"link",onClick:function(){var e;console.log(Zt,777);var n,t=!(null!=B&&null!==(e=B.userInfo)&&void 0!==e&&null!==(e=e.shixun)&&void 0!==e&&e.editable);j.Z.confirm({title:"退出实训",icon:(0,F.jsx)(Qe.Z,{}),content:(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{children:"您确定要退出实训吗?"}),Zt&&(0,F.jsx)(w.Z,{className:"mt10",defaultChecked:t,onChange:function(e){t=e.target.checked},children:"退出实训时,立即释放实验资源"})]}),centered:!0,okText:"确定",cancelText:"取消",onOk:(n=u()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Zt||!t){e.next=7;break}return e.next=3,(0,Ue.eA)(null==ve?void 0:ve.myshixun_identifier);case 3:0==(null==(n=e.sent)?void 0:n.status)&&(A.ZP.success("释放资源成功"),setTimeout((function(){Ct()}),1e3)),e.next=8;break;case 7:Ct();case 8:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)}),onCancel:function(){}})},children:"退出"})]})]}),(0,F.jsxs)("section",{className:C.content,style:{height:null!=ve&&ve.open_evaluate?"calc(100vh - 130px)":"calc(100vh - 60px)"},children:[An.showDragModule&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)("section",{className:C.leftContainer,style:{width:ft,display:.01===An.moveX?"none":""},children:[(0,F.jsx)("div",{className:C.tabNav,children:(0,F.jsx)("div",{children:"任务要求"})}),(0,F.jsx)("div",{className:C.mdContent,children:(0,F.jsx)(P.Z,{stylesPrev:{position:"absolute"},value:ve.description||""})})]}),(0,F.jsx)("section",{className:C.resizeBar,onMouseDown:function(){ht(!0)},onMouseUp:function(){return ht(!1)},children:(0,F.jsx)(Pe,{noDragging:!1,moveX:An.moveX})})]}),(0,F.jsx)("section",{className:C.rightCotainer,style:{width:vt},children:(0,F.jsx)("main",{className:C.main,style:{height:"100%"},children:re?(0,F.jsxs)("div",{className:C.start,style:{visibility:W?"hidden":"visible"},children:[(0,F.jsx)("div",{className:C.title,children:"请点击一个文件进入实验环境,开始实验!"}),(0,F.jsx)("b",{className:"iconfont icon-dianji1"}),(0,F.jsx)("div",{className:C.liWarp,children:null==_e?void 0:_e.map((function(e,n){return(0,F.jsxs)("div",{onClick:function(){return e=n,se(!1),ne(e),ot(),void Ee(Ye.Success);var e},className:C.li,children:[(0,F.jsx)("i",{className:"iconfont icon-wenjian6"}),(0,F.jsx)("span",{title:e.name,children:e.name})]})}))})]}):(0,F.jsxs)(v.Fragment,{children:[In&&(0,F.jsx)("div",{style:{right:1===cn?330:2===cn&&600},className:"".concat(C.dataSetButton," ").concat(cn?"".concat(C.dataSetOpen," ").concat(1===cn?C.ac:""):""),onClick:function(e){on(!cn&&1),yt(),e.nativeEvent.stopPropagation()},children:(0,F.jsx)("span",{className:C.dataSetText,children:"数据集"})}),!(null!=At&&At.hide_answer)&&(0,F.jsx)("div",{style:{top:"53%",right:2===cn&&600},className:"".concat(C.dataSetButton," ").concat(cn?"".concat(C.dataSetOpen," ").concat(2===cn?C.ac:""):""),onClick:function(e){on(2),e.nativeEvent.stopPropagation()},children:(0,F.jsx)("span",{className:C.dataSetText,children:"参考答案"})}),Se===Ye.LoadFail&&(0,F.jsx)("div",{className:C.loadFail,children:" "}),Se===Ye.ReLoad&&(0,F.jsx)("div",{className:C.reload,children:(0,F.jsxs)("div",{className:C.failWrap,children:[(0,F.jsx)("i",{className:"iconfont icon-jiazaishibai1 ".concat(C.failIcon)}),(0,F.jsxs)("p",{className:"font12",children:["加载实训失败,",(0,F.jsx)("span",{className:C.failReload,onClick:ot,children:"重新加载"})]})]})}),Se===Ye.Success&&(0,F.jsx)("iframe",{frameBorder:0,id:"taskJupyterIframe",width:"100%",height:"100%",allow:"geolocation; microphone; camera; midi; encrypted-media;",src:null==_e||null===(m=_e[ee])||void 0===m?void 0:m.link_url}),(0,F.jsx)(ae,{visible:cn,identifier:ve.identifier,cancel:function(){on(!1)}}),(0,F.jsx)(L,{visible:cn,answerData:At,cancel:function(){return on(!1)}})]})})})]}),null!=ve&&ve.open_evaluate?(0,F.jsx)(F.Fragment,{children:(0,F.jsxs)("div",{className:C.footer,style:{background:"#111c24"},children:[(0,F.jsxs)("span",{children:[null!=Ae&&Ae.time_limit?(0,F.jsx)("span",{children:"本关最大执行时间:".concat(null==Ae?void 0:Ae.time_limit,"秒")}):null,null!=Ae&&Ae.record_consume_time?(0,F.jsxs)("span",{className:"ml10",children:["本次评测耗时(编译、运行总时间):",null==Ae?void 0:Ae.record_consume_time," 秒"]}):null]}),(0,F.jsx)(b.ZP,{onClick:function(){return de(!ue)},type:"primary",ghost:!0,className:"mr20",children:ue?"隐藏测试结果":"查看测试结果"}),(0,F.jsx)(b.ZP,{className:C.disabled,disabled:0!==Y,loading:G,onClick:function(){Sn.current=!0;var e=document.getElementById("taskJupyterIframe");e&&(e.contentWindow.postMessage("saveCode","*"),vn.current=!0,X(!0),de(!0),setTimeout((function(){Sn.current&&st()}),5e3))},style:{padding:"0 30px"},type:"primary",children:0!==Y?"".concat(Y,"s"):"评测"})]})}):(0,F.jsx)(F.Fragment,{children:M.get("homework_common_id")&&!(null!=ve&&ve.homework_is_end)&&(0,F.jsx)("div",{className:C.footer,style:{background:"#111c24"},children:(0,F.jsx)(b.ZP,{onClick:function(){return it()},type:"primary",className:"mr20",children:"提交作品"})})}),ue&&(0,F.jsx)(Be,{codeMessage:dn,loading:G,gamesData:Ae,test_sets:(null==Ae?void 0:Ae.test_sets)||[],jupyterData:ve})]}),(0,F.jsx)(Le.Z,{children:(0,F.jsx)(_.Z,{width:280,rootClassName:"setting-drawer",title:null,placement:"right",closable:!1,open:bn,onClose:yt,children:(0,F.jsx)(Te.Z,r()({},It))})}),(0,F.jsx)(I.Z,{successCb:st}),(0,F.jsx)(le,{showModal:En,setShowModal:Mn}),(0,F.jsxs)(j.Z,{title:"重置记录",footer:!1,open:Gn,onCancel:function(){Xn(!1)},children:[(0,F.jsx)(N.Z,{dataSource:null==Wn?void 0:Wn.list,pagination:!1,scroll:{y:400},columns:[{title:"恢复初始代码时间",dataIndex:"created_at",render:function(e,n,t){return Ge()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"操作",dataIndex:"redo_type",render:function(e,n,t){var i;return null===(i=[{id:1,name:"打回重做"},{id:2,name:"恢复初始代码"},{id:3,name:"重置代码仓库"}].find((function(n){return n.id===e})))||void 0===i?void 0:i.name}}]}),(0,F.jsx)(k.Z,{style:{marginTop:10},pageSize:Yn.limit,current:Yn.page,total:null==Wn?void 0:Wn.count,onChange:function(){var e=u()(o()().mark((function e(n){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Yn.page=n,qn(Yn),e.next=4,(0,ze.ZP)("/api/tasks/".concat(D.identifier,"/jupyter_redo_logs.json"),{method:"get",params:Yn});case 4:0===(null==(t=e.sent)?void 0:t.status)&&Qn(null==t?void 0:t.data);case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()})]}),(0,F.jsx)(Xe.Z,{identifier:null==ve?void 0:ve.identifier,visible:Fn,onCancel:function(){return zn(!1)},info:{type:"挑战页面",myshixun_id:null==ve?void 0:ve.myshixun_id}})]})}))},48064:function(e,n,t){t.d(n,{Jd:function(){return k},a$:function(){return _},dU:function(){return p},fi:function(){return y},m_:function(){return g},rB:function(){return j},rV:function(){return f},x4:function(){return h},zE:function(){return u}});var i=t(82242),r=t.n(i),s=t(7557),a=t.n(s),c=t(41498),o=t.n(c),l=t(18030);function u(e){return d.apply(this,arguments)}function d(){return(d=o()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/jupyters/save_with_tpi.json",{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return m.apply(this,arguments)}function m(){return(m=o()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/tasks/".concat(n.identifier,"/jupyter.json"),{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(e){return v.apply(this,arguments)}function v(){return(v=o()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.identifier,"/start.json"),{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return x.apply(this,arguments)}function x(){return(x=o()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/jupyters/timeinfo_with_tpi.json",{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return A.apply(this,arguments)}function A(){return(A=o()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.identifier,"/reset_pod.json"),{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function j(e,n){return w.apply(this,arguments)}function w(){return(w=o()(a()().mark((function e(n,t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n,"/active_pod.json"),{method:"Get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e){return b.apply(this,arguments)}function b(){return(b=o()(a()().mark((function e(n){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(t=r()({},n)).identifier,e.abrupt("return",(0,l.ZP)("/api/myshixuns/".concat(n.identifier,"/sync_code.json"),{method:"Post",body:t}));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _(e){return N.apply(this,arguments)}function N(){return(N=o()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/shixuns/".concat(n.identifier,"/get_data_sets.json"),{method:"Get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e){return I.apply(this,arguments)}function I(){return(I=o()(a()().mark((function e(n){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,l.ZP)("/api/tasks/".concat(n.identifier,"/reboot_esc.json"),{method:"post",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},13275:function(e,n,t){function i(e){try{e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen&&e.webkitRequestFullScreen()}catch(e){console.log(e,":e")}}function r(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}t.d(n,{BU:function(){return r},Dj:function(){return i},gH:function(){return s},vp:function(){return a}});var s=function(){return document.webkitExitFullscreen?"webkitfullscreenchange":document.exitFullscreen?"fullscreenchange":document.msExitFullscreen?"msfullscreenchange":document.mozCancelFullScreen?"mozfullscreenchange":void 0};function a(){var e=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement;document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",e),null!=e}},1058:function(e,n,t){t.d(n,{U:function(){return p}});var i=t(7557),r=t.n(i),s=t(82242),a=t.n(s),c=t(41498),o=t.n(c),l=t(79800),u=t.n(l),d=t(59301);function p(e,n){var t=(0,d.useState)(n),i=u()(t,2),s=i[0],c=i[1],l=(0,d.useState)(!1),p=u()(l,2),m=p[0],f=p[1],v=(0,d.useState)(),h=u()(v,2),x=h[0],g=h[1],A=function(){var t=o()(r()().mark((function t(i){var o,l,u,d=arguments;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=d.length>1&&void 0!==d[1]&&d[1],l=o?n:a()(a()({},s),i),f(!0),c(l),t.next=6,e(l);case 6:return u=t.sent,f(!1),g(u),t.abrupt("return",u);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return[s,m,A,x]}},87133:function(e,n,t){t.d(n,{AL:function(){return y},Iy:function(){return p},Qv:function(){return v},ez:function(){return w},jb:function(){return m}});var i=t(79800),r=t.n(i),s=t(32834),a=t.n(s),c=t(11690);var o=[],l=["
      "],u=new(a().Renderer),d=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function p(){o.length=0,l=["
        "]}var m={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function f(e,n,t,i){if(n>=e.length||e[n].level<=t)return n;var r=e[n];i.push("
      • "+r.text+"");var s=[];return n=f(e,++n,r.level,s),s.length>0&&(i.push("
          "),s.forEach((function(e){i.push(e)})),i.push("
        ")),i.push("
      • "),n=f(e,n,t,i)}function v(){return f(o,0,0,l),l.push("
      "),l.join("")}var h={heading:function(e){var n=d.exec(e);if(n)return{type:"heading",raw:n[0],depth:n[1].length,text:n[2]}},fences:function(e){var n=this.rules.block.fences.exec(e);if(n){var t=n[0],i=function(e,n){var t=e.match(/^(\s+)(?:```)/);if(null===t)return n;var i=t[1];return n.split("\n").map((function(e){var n=e.match(/^\s+/);return null===n?e:r()(n,1)[0].length>=i.length?e.slice(i.length):e})).join("\n")}(t,n[3]||""),s=n[2]?n[2].trim():n[2];if(["latex","katex","math"].indexOf(s)>=0){var a=A(),c=i;i=a,j[a]={type:"block",expression:c}}return{type:"code",raw:t,lang:s,text:i}}}},x=/(?:\${2})([^\n`]+?)(?:\${2})/gi,g=0,A=function(){return"__special_katext_id_".concat(g++,"__")},j={};function w(){return j}function y(){g=0,j={}}function b(e){return e=e.replace(x,(function(e,n){var t=A();return j[t]={type:"inline",expression:n},t}))}var _=u.listitem;u.listitem=function(e){return _(b(e))};var N=u.paragraph;u.paragraph=function(e){return N(b(e))};var k=u.tablecell;u.tablecell=function(e,n){return k(b(e),n)},u.code=function(e,n,t){var i=(n||"").match(/\S*/)[0];return i?["latex","katex","math"].indexOf(i)>=0?"

      ".concat(e,"

      "):'
      ').concat(t?e:(0,c.escape)(e,!0),"
      \n"):'
      '+(t?e:(0,c.escape)(e,!0))+"
      "},u.heading=function(e,n,t){var i=this.options.headerPrefix+t.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return o.push({anchor:i,level:n,text:e}),"'+e+""},a().setOptions({silent:!0,gfm:!0,pedantic:!1}),a().use({tokenizer:h,renderer:u}),n.ZP=a()},19421:function(e,n,t){t.d(n,{rX:function(){return N},pW:function(){return k},gy:function(){return I},xY:function(){return _},O5:function(){return b},tJ:function(){return g},o1:function(){return A},Rd:function(){return y}});var i=t(7557),r=t.n(i),s=t(41498),a=t.n(s),c=t(5296),o=t(43418),l=t(28103),u=t(8591),d=t(93697),p=t(21082),m=t(680),f=t(25510),v=t.p+"static/newqrcode.a8740efb.png",h=t(32637),x=t(37712),g=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!A(e)||!j(n))},A=function(e){return!!(0,d.bg)()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},j=function(){var e,n=(0,c.getDvaApp)()._store.getState(),t=n.user;return!(null===(e=t.userInfo)||void 0===e||!e.profile_completed)||(o.Z.confirm({title:"提示",width:530,centered:!0,content:"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,p.xg)("/account/profile/edit"),w()}}),!1)},w=function(){o.Z.success({title:"提示",width:430,closable:!0,centered:!0,content:"已完善个人资料?请刷新页面",okText:"立即刷新",icon:null,onOk:function(){location.reload()}})},y=function(){o.Z.warning({title:"提示",icon:null,width:400,content:(0,x.jsxs)("div",{style:{textAlign:"center"},children:[(0,x.jsx)("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"},children:"老师您好,您的课堂试用期已结束,相关功能被限制。 如需继续使用,请尽快对接人工支持!"}),(0,x.jsx)("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:h}),(0,x.jsx)("div",{style:{color:"#666666",fontSize:14,marginTop:15},children:"添加客服人员微信,获得更多支持"})]})})},b=function(){var e;return!(null===(e=(0,c.getDvaApp)()._store.getState().user.userInfo)||void 0===e||!e.professional_certification)||(o.Z.confirm({title:"提示",centered:!0,content:(0,x.jsx)("div",{className:"tc",children:"您需要去完成您的职业认证,才能使用此功能"}),okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,p.xg)("/account/certification")}}),!1)},_=function(){return!!(0,d.V9)()||(o.Z.warning({centered:!0,width:530,title:"提示",content:(0,x.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,x.jsx)("p",{children:"扫码加头歌助教,申请操作权限"}),(0,x.jsx)("img",{src:v,width:200})]}),okText:"我知道了",maskClosable:!0}),!1)},N=function(e,n){return!!e||(o.Z.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:(0,x.jsxs)("div",{children:[(0,x.jsx)("p",{children:n||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。"}),(0,x.jsxs)("div",{style:{marginLeft:"110px"},children:[(0,x.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2sCoqKqqqqqzuajgctnoTACMWoV8xTgkBgAwEFgCQgcACADIQWABABgILAMgwe5cwJ5O3jVtaWgp+z8KKW+bOPvjuwq1bMaTD+OLG2+ks2/aSSS78FTMcYQEAIQgsACADgQUAZCCwAIAMBBYAkIHAAgAyLBnW4CxnS/fb9k4r7nk7W8LBClZUQbBiYIEVI2ycnXjFIjjCAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQU4bAGK25Fu/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QGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",width:200}),(0,x.jsxs)("div",{style:{marginLeft:"35px"},children:["群号:","714336072"]})]})]}),okText:"立即联系",cancelText:"取消",onOk:function(){(0,p.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},k=function(e){o.Z.info({title:"联系平台运营",icon:null,width:615,centered:!0,content:(0,x.jsxs)("div",{children:[(0,x.jsxs)("div",{children:[(0,x.jsx)("p",{style:{color:"#191919",fontWeight:400,fontSize:14},children:"“保存实验临时数据”功能为付费功能,请联系平台运营进行开通。"}),(0,x.jsx)(l.Z,{}),(0,x.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,x.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"1"})," 因平台的实验数据储存容量和成本消耗较大,实践项目默认保存实验环境中临时数据 ",(0,x.jsx)("a",{children:e}),"天。"]}),(0,x.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,x.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"2"}),"若您需要个性化的数据保存周期服务,我们可以提供相关技术支持,并根据您的需求收取定制费用。"]})]}),(0,x.jsx)("div",{style:{textAlign:"center",marginTop:30},children:(0,x.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:f,alt:"二维码",width:160})})]})})},I=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(0,c.getDvaApp)()._store.getState(),i=t.shixunsDetail.detail;if(2===(null==i?void 0:i.public)||1===(null==i?void 0:i.public)||3===(null==i?void 0:i.shixun_status)){var s="";return 2===(null==i?void 0:i.public)&&(s="已公开"),1===(null==i?void 0:i.public)&&(s="待审核"),3===(null==i?void 0:i.shixun_status)&&(s="已关闭"),o.Z.info({centered:!0,icon:(0,x.jsx)(m.Z,{style:{color:"#faad14"}}),width:460,title:"提示",content:(0,x.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,x.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"},children:[(0,x.jsxs)("span",{children:["该实践项目的状态为",s,",",n,"。"]}),(0,x.jsx)("p",{children:"如有需要,请联系平台管理员进行技术支持。"})]}),(0,x.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:f,alt:"二维码",width:160})]}),okText:"我知道了"}),!0}return 2===(null==i?void 0:i.shixun_status)&&(o.Z.confirm({centered:!0,icon:(0,x.jsx)(m.Z,{}),title:"提示",content:(0,x.jsxs)("div",{children:[(0,x.jsxs)("span",{children:["该实践项目已发布,",n,"。"]}),(0,x.jsx)("br",{}),(0,x.jsx)("span",{children:"如有需要,您可以撤销发布后,再进行操作。"})]}),okText:"撤销发布",cancelText:"取消",onOk:function(){var n;o.Z.confirm({width:440,centered:!0,icon:(0,x.jsx)(m.Z,{style:{color:"#faad14"}}),title:"提示",content:"撤销发布后,学员将无法进行练习。是否确认撤销发布?",okText:"确定撤销发布",cancelText:"取消",onOk:(n=a()(r()().mark((function n(){return r()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,e({type:"shixunsDetail/cancelRelease",payload:{id:null==i?void 0:i.identifier}});case 2:401!==n.sent.status&&(u.ZP.success("撤销发布成功。实训回到未发布的状态。"),e({type:"shixunsDetail/getShixunsDetail",payload:{id:null==i?void 0:i.identifier}}),e({type:"practiceSetting/getCommonData",payload:{id:null==i?void 0:i.identifier}}));case 4:case"end":return n.stop()}}),n)}))),function(){return n.apply(this,arguments)})})}}),!0)}},45804:function(e,n,t){t(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;n.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNENTUiIGN4PSIxOCIgY3k9IjE4IiByPSIxOCIvPjxwYXRoIGQ9Ik0xOCA2YTIuODE4IDIuODE4IDAgMCAxIDIuODEzIDIuOTk0bC0uNjg4IDExLjAxYTIuMTI5IDIuMTI5IDAgMCAxLTQuMjUgMGwtLjY4OC0xMS4wMUEyLjgxOCAyLjgxOCAwIDAgMSAxOCA2WiIgZmlsbD0iIzE3Mjc0MCIvPjxjaXJjbGUgZmlsbD0iIzE3Mjc0MCIgY3g9IjE4IiBjeT0iMjYuNSIgcj0iMi41Ii8+PC9nPjwvc3ZnPg=="},40689:function(e,n,t){t(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;n.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzEiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMiAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIHN0cm9rZT0iI0Q1NSIgc3Ryb2tlLXdpZHRoPSIyIiBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiLz48cGF0aCBkPSJNMTQgNWEyIDIgMCAwIDEgMiAydjhhMiAyIDAgMSAxLTQgMFY3YTIgMiAwIDAgMSAyLTJaIiBmaWxsPSIjRDU1Ii8+PGNpcmNsZSBmaWxsPSIjRDU1IiBjeD0iMTQiIGN5PSIyMSIgcj0iMiIvPjwvZz48L3N2Zz4="},55874:function(e,n,t){t(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;n.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiMxOUNCNzAiIGN4PSIxOCIgY3k9IjE4IiByPSIxOCIvPjxwYXRoIHN0cm9rZT0iIzE3Mjc0MCIgc3Ryb2tlLXdpZHRoPSI0IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGQ9Ik0xMCAxOC44NSAxNS4yNzQgMjQgMjYgMTQiLz48L2c+PC9zdmc+"},7352:function(e,n){n.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},88780:function(){},32637:function(e,n,t){e.exports=t.p+"static/AssistantCode3.a8740efb.jpeg"},96908:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN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2tldCBlbmQ9InIiPz7zBaLcAAACAElEQVR42uzdzyvDcRzH8ffsZiVc/IjbkOTuShN/gXIgYi5y2AlpFBL/AAdLiXBgBwfUxplmyU2tRK4sTey0+H6+RbKD7Gtfb/V817t963t59Nnn9f58+7aap6LO/yq6KmN13OoJq1MehcD3erS6rUT0VrnVC5qBpgLagWXagQIQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAABUCD6Lbkr5L2W2uv9bS3LR4vd6iAb/9BaaBfa7K+oa8+0exEwmOheT5+UXnV9zd2SEHeztSU12ldw+2tjRLbH/X/lQbktqaansluwLtelPs85XKZmRFggN9eseMSbVJ9+Js2HHCizoHRwb7ZWN12V5VtYPaacJdOUmcJNy1o67QhLt6FheScNcfFkyqmxr9eoGHsWMZD8/qBCYvLmV4NCS5XE4f8PrmVnoHRySbzeoLyf1DWnr6huxPdWPGrJhZObOC6ga12Wtmz5m9p/Kom5yZt1Or8mFhbWNLIuubOh+3fjrrXAUWMutcAxY661wBOpl1RQc6nXVFBf7GrHMEPEskP65PE+d5901anc46R68+/rp4/QYQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAP8dMKMdGNcMNH9eMaUR+GR11Oo2q6/eBBgA/5+hicfO9/sAAAAASUVORK5CYII="},52787:function(e){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAACgCAYAAAB+HS7YAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgIC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AQIECBAgQIAAAQL8FWAoFJLpseFP/+9ur8v9zUU67fN3kVVQFn52jcvNzZH52RlpaqiXwvLIh3cW9j4y32dG4BpXUlwkG0vzUlNdpe8TW9T+zqYznFNgY7ROdrc2pLSkWF+RdLe3yurCXHrvuY7gp5U6MTIgsY42b20mcFGpPiPQUKlO96CPSnUG9FWpToA+K9UJsLIinK5atcNC39Co7O0f6gWmUinp6umVk9MzveNWMpmUlo6YXF5d650Hb+/upbm1M/2rdmC1K2hX0q6o2ona7kW7J+3eVDvy26ruHxnXfSZZWF6VxZU13Ycmnz3SCdBnj3Q28vvqkU4PTT56pPODu+se6eVmwWWP9Hb1YavaVndmxBPHb89HiZO/ufpQWyQAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECPD/AB+1Aw+0AwdNPmgGnpusNblt8kkb8EWAAQAq85VNhqprywAAAABJRU5ErkJggg=="}}]); \ No newline at end of file diff --git a/p__tasks__index.deb14b1a.async.js b/p__tasks__index.deb14b1a.async.js deleted file mode 100644 index 7acbcf716e..0000000000 --- a/p__tasks__index.deb14b1a.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[93665,48486,84336],{57932:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},n="5.0",t={},i=null,s=!1,r=!1,a=null,o=!1,c=null,l=null,u=0;u4?parseFloat(e):5};function C(){try{return window.self!==window.top}catch(e){return!0}}function w(){return(!t.hasOwnProperty("screenshotGenerator")||!t.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,n){l=e,G(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,N(e,n))},e.getHTML5CodebaseVersion=function(){return p},e.getParameters=function(){return t},e.setFontsCSSURL=function(e){v=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,s="auto",r=t.id,a=!1,c=0;c=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 j=function(e){return e&&"false"!==e},B=function(n,t,i){E(p)<=4.2&&(i=!0);var s=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==p||ggbHTML5LoadedCodebaseIsWebSimple&&!m)&&(s=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=t.width,o=t.height;if(t.disableAutoScale=void 0===t.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():t.disableAutoScale,void 0!==t.width)if(E(p)<=4.4)j(t.showToolBar)&&(t.height-=7),j(t.showAlgebraInput)&&(t.height-=37),t.width<605&&j(t.showToolBar)&&(t.width=605,a=605);else{var u=100;(j(t.showToolBar)||j(t.showMenuBar))&&(t.hasOwnProperty("customToolBar")&&(t.customToolbar=t.customToolBar),u=j(t.showMenuBar)?245:155),a=5?(t.appletOnLoad=function(e){var t=n.querySelector(".ggb_preview");t&&t.parentNode.removeChild(t),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(I),window.GGBT_wsf_view&&$(window).trigger("resize"),g(e)},x||I.appendChild(C)):r.appendChild(C),I.appendChild(r),x||n.appendChild(I),setTimeout((function(){e.resize()}),1)}function w(e,n){n&&"function"==typeof n.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,n.appletOnLoad):renderGGBElement(e),F("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){w(e.article,e.params)})),html5AppletsToProcess=null)},E(p)<5&&(e.className+=" geogebraweb")):w(e,n)}if(s){scriptLoadStarted=!0;for(var Q=0;Q0?(s.remove(),o.attr("id","fullscreencontent").show(),jQuery(r).append(o),window.dispatchEvent(new Event("resize"))):B(s,n,!1),window.GGBT_wsf_view.launchFullScreen(r)}else f=i,B(e,n,!1);if(!window.GGBT_wsf_view)for(a=0;ae/4*3&&(o=e/4*3),c=o/5.8,a.setAttribute("src",x),a.setAttribute("width",o),a.setAttribute("height",c);var u=(e-o)/2,d=(n-c)/2;a.style.left=u+"px",a.style.top=d+"px",s.appendChild(a)}return s.appendChild(l),s},M=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},H=["web","webSimple","web3d","tablet","tablet3d","phone"],N=function(e,n){if(p=e,n)G(p,!0);else{var r,a,o=!s;if(o){var c=E(p);!isNaN(c)&&c<4.4&&(o=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var l=p.indexOf("//");for(var u in a=l>0?p:0===l?r+p:"https://www.geogebra.org/apps/5.2.814.0/",H)if(p.slice(-1*H[u].length)===H[u]||p.slice(-1*(H[u].length+1))===H[u]+"/")return void G(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!o||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||j(t.showToolBar)||j(t.showMenuBar)||j(t.showAlgebraInput)||j(t.enableRightClick)||t.appName&&"classic"!=t.appName?a+="web3d/":a+="webSimple/",G(a,!1)}},G=function(e,n){if(e.requirejs)h=e;else{"/"!==e.slice(-1)&&(e+="/"),h=e,null===n&&(n=-1===e.indexOf("http")),g=n,A="web.nocache.js",m=!1;var t=h.split("/");t.length>1&&(n||"webSimple"!==t[t.length-2]?H.indexOf(t[t.length-2])>=0&&(A=t[t.length-2]+".nocache.js"):(A="webSimple.nocache.js",m=!0)),t=e.split("/"),"test"===(p=t[t.length-3]).substr(0,4)?p=p.substr(4,1)+"."+p.substr(5,1):"war"!==p.substr(0,3)&&"beta"!==p.substr(0,4)||(p="5.0");var i=parseFloat(p);NaN!==i&&i<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+i+" is deprecated. Using version latest instead."),N("5.0",n))}},F=function(e,n){window.console&&window.console.log&&(!n||void 0===n.showLogging||n.showLogging&&"false"!==n.showLogging)&&console.log(e)};function O(){var e=n;null!==c?e=c:parseFloat(e)<5&&(e="5.0"),N(e,!1),null!==l&&G(l,g),o=!0}return void 0!==t.material_id?k(O):O(),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,s){if(e.isScreenshoGenerator)return 1;var r,a=void 0!==i&&i,o=null!=e.noScaleMargin&&e.noScaleMargin,c=(r=e.autoHeight)&&"false"!==r,l=function(e,n,t,i,s,r){var a=null;if(null!=r&&""!=r)for(var o=e.parentNode;null!=o;){if((" "+o.className+" ").indexOf(" "+r+" ")>-1){a=o;break}o=o.parentNode}var c=0,l=0,u=0,d=0,h=0,g=0,f=0;if(a)c=a.offsetWidth,l=Math.max(i?a.offsetWidth:0,a.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 p=e.getBoundingClientRect();p.left>0&&p.left<=c&&(void 0===s||!s)&&("rtl"===document.dir?(h=c-p.width-p.left,g=u<=480?10:30):(g=p.left,h=u<=480?10:30),d=g+h)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(d=40,f=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(d=0,f=40))}return e&&((void 0===t||!t)&&n>0&&n+d1&&(a=!0)),n&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(s=t(e,n,a,i,e.scaleContainerClass),!a||e.hasOwnProperty("scale")&&1!==r?Math.min(r,s):s)}function s(e){var n=Math.min(window.innerWidth,document.documentElement.clientWidth),t=Math.min(window.innerHeight,document.documentElement.clientHeight),i=e.getBoundingClientRect(),s=(n-i.width)/2,r=(t-i.height)/2;r<0&&(r=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=s<40?"40px":s+"px",e.style.top=r+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=r<40?"40px":r+"px",e.style.left=s+"px")}return{responsiveResize:function(t,r){var a=t.querySelector(".appletParameters");if(a){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(r.id!==a.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(t)}if(a.parentElement&&/fullscreen/.test(a.parentElement.className))return;var o=i(r,t);e()&&a.setAttribute("data-param-scale",o);for(var c=null,l=0;l=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;tO?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=[],s=[];function a(e){var n=s[e](),t=i[e];if(n in t)return n;var a=[];for(var o in t)a[t[o]]=o;throw r&&r(e,a,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]=a(n));return e},webModule.__computePropValue=a,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var o=(e=Cb).indexOf(Db);-1!=o&&(t=parseInt(e.substring(o+P),$),e=e.substring(O,o))}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],s=O;s1&&void 0!==arguments[1]?arguments[1]:1;return(0,i.U2)("/discusses.json",{container_type:"Shixun",container_identifier:e,page:n-1})}function r(e,n){return(0,i.v_)("/discusses/".concat(e,"/top_or_down_discuss.json"),{top:n})}function a(e,n){return(0,i.v_)("/discusses/".concat(e,"/disable_or_open_discuss.json"),{is_disable:!!n})}function o(e,n){return(0,i.v_)("/discusses/".concat(e,"/plus.json"),{container_type:"Discuss",type:n?1:0})}function c(e,n){return(0,i.v_)("/discusses/".concat(e,"/hidden.json"),n)}function l(e,n){return(0,i.v_)("/discusses/".concat(e,"/reward_code.json"),n)}function u(e){return(0,i.ZP)("/api/discusses/".concat(e,".json"),{method:"delete"})}function d(e,n){return(0,i.v_)("/discusses/".concat(e,"/reply.json"),{container_type:"Shixun",content:n})}function h(e){return(0,i.v_)("/discusses.json",e)}function g(e){return(0,i.v_)("/discusses/ai_reply.json",e)}function f(e,n){return(0,i.v_)("/discusses/".concat(e,"/turing.json"),n)}},64294:function(e,n,t){"use strict";function i(e){var n=!0;if(e.length>0){for(var t=0;t1&&void 0!==arguments[1]?arguments[1]:"",t=[],i=0;i0&&(W(),U(1))}),[t]),(0,l.useEffect)((function(){if(0!==L){if(2===L)clearInterval(O);else{var e=0,n=setInterval((function(){B.includes(e)&&X(),e++}),1e3);J(n)}return function(){return clearInterval(O)}}}),[L]),(0,l.useImperativeHandle)(n,(function(){return{handlePhoto:X,handleTakePhoto:q}}));var K=function(){U(2)},W=function(){var e=t/i,n=[];function s(e,n){return parseInt(Math.floor(Math.random()*(n-e+1))+e)}new Array(i).fill(0).map((function(t,i){o?n.push(s(e*i,e*(i+1))):0==i?n.push(0):n.push(s(e*i,e*(i+1)))})),B=n,D([].concat(n)),console.log(n)},V=function(){void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(e){var n=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return n?new Promise((function(t,i){n.call(navigator,e,t,i)})):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:640,height:480}}).then((function(e){_.current=e,r&&r(2),P(2),"srcObject"in w.current?w.current.srcObject=e:w.current.src=window.URL.createObjectURL(e),w.current.onloadedmetadata=function(e){w.current.play(),C&&C()},w.current.addEventListener("ended",(function(){console.log("播放结束"),K(),E&&d.ZP.error({content:"您已经关闭了摄像头,请在10秒钟内恢复摄像头,否则将推出考试",duration:10,key:9998})}),!1)})).catch((function(e){P(1),r&&r(1),"Permission denied"===e.message||"NotAllowedError"===e.name?d.ZP.error("您已拒绝了获取摄像头"):d.ZP.error("摄像头获取失败,或您已拒绝了获取摄像头"),console.log("errname: "+e.name),console.log("err: "+e.message)}))},X=function(){try{k.current.width=w.current.videoWidth,k.current.height=w.current.videoHeight,k.current.getContext("2d").drawImage(w.current,0,0,k.current.width,k.current.height),N(k.current.toDataURL("image/png")),z(k.current.toDataURL("image/png")),ee(k.current.toDataURL("image/png"))}catch(e){}},q=function(){try{return k.current.width=w.current.videoWidth,k.current.height=w.current.videoHeight,k.current.getContext("2d").drawImage(w.current,0,0,k.current.width,k.current.height),k.current.toDataURL("image/png")}catch(e){}},_=(0,l.useRef)(),$=function(){try{_.current.getTracks().forEach((function(e){e.stop()})),w.current.srcObject=null}catch(e){}},ee=function(){var e=a()(s()().mark((function e(n){var t,i,r,a,o,c,l,u,d,p,m;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,h.ZP)("/api/buckets/get_upload_token.json",{method:"get"});case 2:(u=e.sent).data=JSON.parse((0,f.pe)(u.data)),d=(0,g.Z)(),p=new(A())({endpoint:null==u||null===(t=u.data)||void 0===t?void 0:t.end_point,region:null==u||null===(i=u.data)||void 0===i?void 0:i.region,accessKeyId:null==u||null===(r=u.data)||void 0===r?void 0:r.access_key_id,accessKeySecret:null==u||null===(a=u.data)||void 0===a?void 0:a.access_key_secret,bucket:null==u||null===(o=u.data)||void 0===o?void 0:o.bucket,stsToken:null==u||null===(c=u.data)||void 0===c?void 0:c.security_token}),m=v(n),p.multipartUpload("".concat(d,".png"),m,{timeout:1e4,partSize:10485760,callback:{url:null==u||null===(l=u.data)||void 0===l?void 0:l.callback_url,host:null==u?void 0:u.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&login="+Q.login+"&container_id="+Q.categoryId+"&container_type=Exercise"}}).then((function(e){console.log("result:",e)})).catch((function(e){console.log("err:",e)}));case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,x.jsx)(x.Fragment,{children:3!==R&&(0,x.jsxs)("aside",{className:m,id:"screenshot",children:[0===R&&(0,x.jsx)("span",{children:"正在开启摄像头..."}),1===R&&(0,x.jsx)("span",{children:"摄像头开启失败"}),2===R&&(0,x.jsxs)("div",{children:[(0,x.jsx)("video",{width:"288",ref:w,autoPlay:!0}),(0,x.jsx)("canvas",{style:{display:"none"},ref:k})]})]})})})),C=E},51388:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var i=t(7557),s=t.n(i),r=t(82242),a=t.n(r),o=t(41498),c=t.n(o),l=t(37205),u=t.n(l),d=t(79800),h=t.n(d),g=t(59301),f=t(8591),p=t(59028),A=t(43428),m=t(95237),I=t(3113),x=t(92832),v=t(5296),E=t(39647),C=t.n(E),w=t(84332),k=t(77596),Q=t(14179),y=t(56102),j="wrp___H70W8",B="file-list___S5XYJ",D="ExtraEdit___K6Xf2",S="btn___Yiu8q",b=t(43604),R=t(73259),P=t(37712),M=["node","inline","className","children"],H=function(e){var n=e.onCallback,t=e.scrollBox,i=e.Data,r=e.extraEdit,o=i.allowCopy,l=void 0!==o&&o,u=i.fileList,d=i.hideTextEffect,p=void 0!==d&&d,A=i.text,I=void 0===A?"":A,x=(0,g.useState)(""),v=h()(x,2),E=v[0],H=v[1],N=(0,g.useState)(!0),G=h()(N,2),F=G[0],O=G[1],J=(0,g.useRef)(0),T=(0,g.useRef)(!1);(0,g.useEffect)((function(){if(I){O(!0);var e=function(){var e=c()(s()().mark((function e(){var t,r;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(tt+4?" __":""),H(r),e.next=6,new Promise((function(e){return setTimeout(e,70)}));case 6:t+=5,e.next=1;break;case 9:O(!1),null==n||n(i);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return p?H(I):e(),t.current.addEventListener("wheel",Z),function(){H(""),t.current.removeEventListener("wheel",Z)}}}),[]),(0,g.useEffect)((function(){t.current.scrollTo({top:t.current.scrollHeight,behavior:"smooth"})}),[]);var Z=function(){T.current=!0};return(0,P.jsxs)("div",{className:"".concat(j," fadeIn animated"),children:["AI"!==i.sender&&(0,P.jsx)("p",{dangerouslySetInnerHTML:{__html:I.replace(//g,">").replace(/\n/g,"
      ")}}),"AI"===i.sender&&(0,P.jsx)(w.U,{components:{code:function(e){e.node;var n=e.inline,i=e.className,s=e.children,r=C()(e,M),o=/language-(\w+)/.exec(i||"");return t.current.scrollHeight-J.current>60&&!T.current&&(t.current.scrollTo({top:t.current.scrollHeight,behavior:"smooth"}),J.current=t.current.scrollHeight),!n&&o?(0,P.jsxs)("div",{style:{position:"relative",minHeight:50},children:[(0,P.jsx)(y.CopyToClipboard,{text:String(s).replace(/\n$/,""),onCopy:function(){return f.ZP.success({content:"复制成功",key:"copy"})},children:(0,P.jsx)("button",{style:{position:"absolute",top:0,right:0,padding:"4px 8px",borderRadius:"0 0 0 5px",border:"none",backgroundColor:"#007bff",color:"#fff",cursor:"pointer",fontSize:"12px"},children:"复制"})}),(0,P.jsx)(k.Z,a()(a()({style:Q.Z,language:o[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},r),{},{children:String(s||"").replace(/\n$/,"")}))]}):(0,P.jsx)("code",a()(a()({className:i},r),{},{children:s}))}},children:E}),u&&!F&&(0,P.jsxs)(m.Z,{className:"".concat(B," animated fadeIn"),children:[(0,P.jsx)(b.Z,{children:(0,P.jsx)(R.Z,{className:"font20 mr10"})}),(0,P.jsxs)(b.Z,{children:[null==u?void 0:u.name,(0,P.jsx)("br",{}),function(e){if(0===e)return"0 B";var n=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,n)).toFixed(2))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][n]}(null==u?void 0:u.size)]})]}),!F&&(0,P.jsxs)("div",{className:D,children:[null==r?void 0:r(i),l&&(0,P.jsx)(y.CopyToClipboard,{text:String(E).replace(/\n$/,""),onCopy:function(){return f.ZP.success({content:"复制成功",key:"copy"})},children:(0,P.jsxs)("div",{className:S,children:[(0,P.jsx)("i",{className:"iconfont icon-fuzhi3 mr5"}),"复制"]})})]})]})},N={flex_box_center:"flex_box_center___GmElr",flex_space_between:"flex_space_between____pbWi",flex_box_vertical_center:"flex_box_vertical_center___COMWd",flex_box_center_end:"flex_box_center_end___lmAQf",flex_box_column:"flex_box_column___OJb7M","ai-wrp":"ai-wrp___AEGoS","loading-wanx":"loading-wanx___GtiUv","dot-flashing":"dot-flashing___xJNVn","dot-fade":"dot-fade___KWn1a","footer-container":"footer-container___HTy33",full:"full___dZLXo",lineFour:"lineFour___Lhbz5","input-container":"input-container___M88BT",fullIcon:"fullIcon___YWXTV","upload-btn":"upload-btn___fKRCG","send-btn":"send-btn___yOKG5","chat-container":"chat-container___pNTrU","chat-message":"chat-message___isXl8",title:"title___hXSVA",answerWrp:"answerWrp___COjAb",li:"li___PjMV3",img:"img___wZqEA",content:"content___OlYYG",user:"user___rbSU1",container:"container___hZAxN",item:"item___Z9j46"},G=t(18030),F=t(93697),O=t(21082),J=function(e){var n=e.src,t=e.onClick,i=(0,g.useRef)(null),s=(0,g.useState)(!1),r=h()(s,2),a=r[0],o=r[1],c=(0,g.useState)({x:20,y:.62*window.innerHeight}),l=h()(c,2),u=l[0],d=l[1],f=(0,g.useState)({x:20,y:.62*window.innerHeight}),p=h()(f,2),A=p[0],m=p[1],I=(0,g.useState)({x:20,y:.62*window.innerHeight}),x=h()(I,2),v=x[0],E=x[1],C=(0,g.useState)(!1),w=h()(C,2),k=w[0],Q=w[1];(0,g.useEffect)((function(){var e=function(e){if(a){var n,t=e.clientY-v.y,s=A.y+t,r=window.innerHeight-((null===(n=i.current)||void 0===n?void 0:n.offsetHeight)||0)-50;s<50&&(s=50),s>r&&(s=r),requestAnimationFrame((function(){d({x:20,y:s})})),Q(!0)}},n=function(){o(!1)};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",n),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}}),[a,v,A]);return(0,P.jsx)("div",{style:{position:"fixed",top:u.y,right:u.x,zIndex:100,cursor:a?"grabbing":"grab"},onMouseDown:function(e){o(!0),E({x:e.clientX,y:e.clientY}),m(u),Q(!1)},onMouseUp:function(e){o(!1),!k&&t&&t(e)},ref:i,children:(0,P.jsx)("img",{src:n||"/images/ai_teacher.png",width:60,draggable:"false"})})},T=t(92723),Z=(0,v.connect)((function(e){return{globalSetting:e.globalSetting,user:e.user}}))((function(e){var n,t,i,r,o,l,d,E=e.title,C=e.description,w=e.placeholder,k=e.hideUpload,Q=e.hideInputBox,y=e.aiIcon,j=e.userIcon,B=e.children,D=e.taskData,S=e.user,b=e.name,R=e.code,M=e.globalSetting,Z=e.authority,L=e.isShowComponent,U=void 0===L||L,Y=e.DrawerProps,z=void 0===Y?{}:Y,K=e.FetchUrl,W=void 0===K?"https://ai-data.educoder.net/v1/chat-messages":K,V=e.FetchData,X=void 0===V?{}:V,q=e.defaultGetData,_=void 0!==q&&q,$=e.extraEdit,ee=void 0===$?function(){return null}:$,ne=e.isShowDefuatTips,te=void 0===ne||ne,ie=e.isReview,se=e.onOpen,re=e.loadingOption,ae=(0,g.useState)(["daiao","pu428f3pz","wangwei10061","pucmnw7fs","mlty7uhjf","pyf8v9u3c","a411763600"]),oe=h()(ae,2),ce=oe[0],le=oe[1],ue=(0,g.useState)(null),de=h()(ue,2),he=de[0],ge=de[1],fe=(0,g.useState)(!1),pe=h()(fe,2),Ae=pe[0],me=pe[1],Ie=(0,g.useState)([]),xe=h()(Ie,2),ve=xe[0],Ee=xe[1],Ce=(0,g.useState)(!1),we=h()(Ce,2),ke=we[0],Qe=we[1],ye=(0,g.useState)([]),je=h()(ye,2),Be=je[0],De=je[1],Se=(0,g.useRef)(Be),be=(0,g.useRef)(),Re=(0,g.useRef)(),Pe=(0,g.useState)(""),Me=h()(Pe,2),He=Me[0],Ne=Me[1],Ge=(0,g.useState)(["".concat(null==D||null===(n=D.challenge)||void 0===n?void 0:n.task_pass,",请给出答题思考方向。\\n\\n不要给出学生正确答案,不要给出任何代码")]),Fe=h()(Ge,2),Oe=Fe[0],Je=Fe[1],Te=null==He?void 0:He.split("\n").length,Ze=(0,g.useState)(!1),Le=h()(Ze,2),Ue=Le[0],Ye=Le[1],ze=!!D,Ke=[{img:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAYCAYAAAD+vg1LAAAAAXNSR0IArs4c6QAAA1FJREFUSEuVlctvVVUYxX/f7UNCkYdMHDA0caCJMcaQXB4VLX2IRJCgRtGg+EpMHJOIiQ8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OvQAAAABJRU5ErkJggg==",name:"智能审题",des:"快速智能拆解任务,提供解题思路",Authorization:"Bearer app-Z8HFAfducmnrr3zO9961jqgB",inputs:""},{img:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAYCAYAAAD6S912AAAAAXNSR0IArs4c6QAAA6VJREFUSEuVlVtoXGUUhdc6SbQmRFPb2pDLdCaN0D6oIFpSiAgqUkWhbxbEWiQ+iA8iFCWQUoo22mCxL4JUYkJBSalWEHshXqLRqSYiSkHQJp2ZtEKrpMVC0Gb+y9IzZ850TpwUHJiHc/k/1t5r7X2I6/zeaNPqunrsdcBWKzU58lTRY2DPb5xe7hiXezC8Ws0LjZg20gZHwABwACy4aIEHXzvHbK2zywLfTKnfSYMhzJZA5T8BD07tm2PP/wLu79QJS22JQSV1FTh1mWgcLfDqUmhJ4W4o2AP66of7Un7SAvdFZVbDouuAXHmgwD/jMzGDI2mtKDp95MmvnjvH1+MXBlP61FK95b7BQgmwCdh6MMcr4fvb2tSpG3Vc4k6+s04Z4/G1gdo9OPDiee59ZZ02SrjXEs3lki8UgYIHNofmeMIZIteZx2e5LnQYrwlLdHlqqFTyWx3qXiQmLNVhwW8d0GMhxj1zYLZIHAtNCu/FbTDADw681UIZT+0/mq/bWXF5qFPrHXHKQLct7VsINCEQGqx2PE6AI4eO5vhyKK4CFMRXU7hsoZZrbkYG1AJWu+48H/h4jhMJ4GC7Vi3Waf5amVXZC5g1ihTWct2JzxwvcCQJ7Naav4z+SIS4HBkXMGuJY9aXS64KezkFfeN5DieA/d1aoypgtRLHSKEt93Dp9Diw7/MYuDullywQeKLJQANRz5JhjoGOocs876BZI7RacIOl6MW+L2PgQMpbS9RVIDWmwpPZIjAi4vcPcvwkDv9DXbrDAu/+C387GwP7U3rMABTQUqQO1TIlVHg4z94QtGW9tjn5hx2DBUOM+jrMWIO7pnL8JtHDFzJaa7wuJiJTCTGzH+bZ+2jGjTngCUuWRtGB1pLPfneWo7HqSg5D4N/SxaUuRwaUSj7goSPRpIRzHUEtuRA0MD39Cy8lFG5v16r6Bs3X3C5k1gI/OfjnK6DEfgweOX2WJxPA8OLptL9ggdbqsssTkXXiF4baFVUQbZ44Pl7Bpp9z/D6pMKNNDhq3wi3/yRmZdcKThjht4G9OLtvSrnx/ZjbYDjA8CuxIq8dAJx3R7KD3DLjVory6ImOyE7mgd3O37rdeI5bIRKYEJxy01kB3uwBjczPBU9yRVhjOKSs2OaDvSIGjj7ep0d+EjYsOzbY+/IbgyuQsf4ycVHBnBrdfbcClM2c4n0ppJW7QuIXuccAww9X9awYHBUwezvPQ9T6ryz1rSatlRb3GTMBd/wBBRVUxXeSVgwAAAABJRU5ErkJggg==",name:"代码诊断",des:"系统智能代码分析,提供修正建议",Authorization:"Bearer app-Z8HFAfducmnrr3zO9961jqgB",inputs:null==D||null===(t=D.challenge)||void 0===t?void 0:t.task_pass},{img:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAYCAYAAAARfGZ1AAAAAXNSR0IArs4c6QAABD9JREFUSEvNlG1MU2cUx/+3hVJKoZQCKTIGTBw6ZB1CNmg/MHkNoqAJe9fhDMvWkhZcjG4fMdnMkm2Ei4Diy8IyEUPUGCNDjSxx2XgHCxN0sooI0spLQ2lpe1vuXe5d1oFNVkj8sPPlSe4553fOc87/PgTWYIcPnwl2OJzfi8WiXJvN0cvjMaXV1eopX6mErwDWr9PVf5Wfr/xcpVIQIyMGpqXlxgWSVL/nK3eN8LpWtfrtkqiocNjtThw7drafJDVpzwVeUVH3Tmxs9HmlUkEMDT1g7t4d+6KmRvP1c4H/PZoTOwC6EcBRktSwp0/zGsvBg98Fut3BMn9/ysvncuESn4+PeTzMrSS7XALG6aTnGxs/WVr53QM4cuSkxG5frpdIxG+Fh4f4E2vaxr+omRmLy2KxXuLxHJrq6s/mWY8HodM13NyzR5mdmZlMUJQbLpfb57WfDbh16w7T0aH/hSTVmR54ZeXJbQkJ8v7y8iKYzVZYrXaYTGZYLEuIiAhFaGiQVyHWx8aIxYGQy8PA3pTNu3q1C1NTsyqSLP+N61yna3g3NzflfE5OCqan59HW1oPxBQoCaQgo0yxSN2+ASpXkKdDbex+d+kcQyCPgtlgRFQDs2pUOilpGZ+cIo9cbPiJJTRMH12obPigoSP1RqXwF16714J6DhzBVKnh+fqCdFIxtHcjbFodNm6IxMfEUV26PImpnDvgiIRj3Msx9Q4ilFpGevgXd3aPMwIChrLZWfdYL/s23FxG+twQZchGmKWCSAmwPHyPoziCKijJw/Xo/ZuMToEhJgJsBJpzgGpg81Yz9+7J9wyPL3kdYgB8cDEAzwMKkEcLuHhQXZ6C9vQ/mLUmIS3yR85ndwDLD4HH9D9i/N2s1vLKy7jWGIXbk56d9yY6FXYhBGAqZMpWbMZ9NvHIDb74cgc2JMRgfN6Gt7yGiSwpB8HkIIABT/++QmyahVCZx8MHBsaM0TV8kKirqW2ga8QUFaa+z8Lm5Ra6AkfFDQIQM9okpJMdIkZn5qmehXV2j6PvDiMDYF0CZFyCjbCguVsLlWkZXFwfvJwhi2GvmrMRYe/JkDgsLS4iMlEAmC/GSIitZo9GM4GAhoqPDQRAErFbHf8/8H/i6/yCwOv8/wfX6P5GYGAOhUICBgTFs3RoHgcCPnS2n65W27s5bW28jLy8VEkkQmpt/xu7dGRCJhDh9+ieUlRWsgrMj7e29/+xPdKIkKyu5dft2BfeerLTLl39FdnYKQkJEYAsVFr4BkSgATU03UVqa6wmlaRqzsxb2dszw8KN9tbXqc5xaDh06FS+Vih8cOJDHdzpdKx/LNeyV4SS4uLjEne3tffTMjDnp+HHtPc+Tq9XW1WzcuEGrULxEBAUJ1wBdHWKzOTA0ZGAMBmNjTY3601XvOduuTlevAfAhQRByVrfrMZqmTQBzTip9WltVVUWzuX8BL+8z38bSCP4AAAAASUVORK5CYII=",name:"AI辅导",des:"为学生提供个性化智能学习辅导",Authorization:"Bearer app-Z8HFAfducmnrr3zO9961jqgB",inputs:null==D||null===(i=D.challenge)||void 0===i?void 0:i.task_pass}],We={action:"https://ai-data.educoder.net/v1/datasets/dc9e6c03-a629-4e9e-bd81-06fb93c29aa1/document/create_by_file",fileList:u()(ve),maxCount:1,onChange:function(e){var n=e.fileList;console.log(":newFileList:",n),Ee(n)},showUploadList:!1,accept:".doc,.docx,.xml,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",beforeUpload:function(e){var n=["application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation"].includes(e.type);return n||(He.error("只能上传Office文档!"),Promise.reject())},headers:{Authorization:"Bearer dataset-xBnNgFqcMjLGAXz7pFgXzGwY"},data:{data:JSON.stringify({indexing_technique:"high_quality",process_rule:{rules:{pre_processing_rules:[{id:"remove_extra_spaces",enabled:!0},{id:"remove_urls_emails",enabled:!0}],segmentation:{separator:"###",max_tokens:500}},mode:"custom"}})}},Ve={maxCount:1,showUploadList:!1,accept:".doc,.docx,.md,.txt,.pdf",beforeUpload:function(e){var n,t=null==e||null===(n=e.name)||void 0===n||null===(n=n.split("."))||void 0===n||null===(n=n.slice(-1))||void 0===n||null===(n=n[0])||void 0===n?void 0:n.toLowerCase(),i=["doc","docx","md","pdf","txt"].includes(t);return 0==e.size?(f.ZP.warning("文件内容不能为空"),p.Z.LIST_IGNORE):i||(f.ZP.warning("目前支持txt、md、doc、docx、pdf文件"),p.Z.LIST_IGNORE)},onChange:function(e){var n=e.fileList;Ee((null==n?void 0:n.filter((function(e){return"done"===(null==e?void 0:e.status)})))||[])},action:"".concat(null===T.Z||void 0===T.Z?void 0:T.Z.API_SERVER,"/api/attachments.json")};(0,g.useEffect)((function(){Te<5&&Ye(!1)}),[Te]),(0,g.useEffect)((function(){Se.current=Be}),[Be]),(0,g.useEffect)((function(){var e;null!=M&&M.setting&&le([].concat(u()(ce),u()((null==M||null===(e=M.setting)||void 0===e?void 0:e.big_model_users)||[])))}),[null==M?void 0:M.setting]),(0,g.useEffect)((function(){var e;Je(["".concat(null==D||null===(e=D.challenge)||void 0===e?void 0:e.task_pass),"".concat(R),"".concat(R)])}),[R]),(0,g.useEffect)((function(){if(_&&(null!=z&&z.open||Ae)&&null!=X&&X.student_work_id){if(he!==(null==X?void 0:X.student_work_id))De([{text:"",done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0}]);else{if(Be.length)return;De([].concat(u()(Be),[{text:"",done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0}]))}_e(),ge(null==X?void 0:X.student_work_id)}}),[_,Ae,Be,null==z?void 0:z.open,null==X?void 0:X.student_work_id]);var Xe,qe=function(){me(!0)},_e=function(){var e=c()(s()().mark((function e(){var n,t,i,r,o=arguments;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=o.length>0&&void 0!==o[0]?o[0]:"",e.next=3,(0,G.ZP)(W,{method:"post",body:a()({inputs:{description:"",name:b},query:i,response_mode:"blocking",conversation_id:be.current||"",user:(null==S||null===(n=S.userInfo)||void 0===n?void 0:n.login)||"未知",files:(null==ve||null===(t=ve.filter((function(e){return"done"==(null==e?void 0:e.status)})))||void 0===t?void 0:t.map((function(e){var n;return null==e||null===(n=e.response)||void 0===n?void 0:n.id})))||[]},X),mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer app-Z8HFAfducmnrr3zO9961jqgB"}});case 3:r=e.sent,Qe(!1),Se.current[Se.current.length-1].text=null==r?void 0:r.answer,Se.current[Se.current.length-1].loading=!1,Se.current[Se.current.length-1].response=r,be.current=null==r?void 0:r.conversation_id,De(u()(Se.current));case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$e=function(){var e=c()(s()().mark((function e(n,t){var i,r;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!ke){e.next=2;break}return e.abrupt("return");case 2:return Qe(!0),De([].concat(u()(Be),[{text:He,done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0,name:null==n?void 0:n.name}])),setTimeout((function(){Re.current.scrollTo({top:Re.current.scrollHeight,behavior:"smooth"})})),e.next=7,(0,G.ZP)(W,{method:"post",body:{inputs:{description:null==n?void 0:n.inputs,name:null==n?void 0:n.name},query:Oe[t],response_mode:"blocking",user:(null==S||null===(i=S.userInfo)||void 0===i?void 0:i.login)||"未知",files:[]},mode:"cors",headers:{"Content-Type":"application/json",Authorization:null==n?void 0:n.Authorization}});case 7:null!=(r=e.sent)&&r.answer&&(Qe(!1),Se.current[Se.current.length-1].text=null==r?void 0:r.answer,Se.current[Se.current.length-1].loading=!1,Se.current[Se.current.length-1].response=r,be.current=null==r?void 0:r.conversation_id,De(u()(Se.current)));case 9:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),en=function(){""!==He.trim()&&(Ne(""),Ee([]),De([].concat(u()(Be),[{text:He,done:!1,key:Date.now(),sender:"user",fileList:ve[0]},{text:He,done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0}])),Qe(!0),setTimeout((function(){return _e(He)}),300))};if(ze&&!ce.includes(null===(r=(0,F.eY)())||void 0===r?void 0:r.login)){if(null==D||!D.chatgpt)return(0,P.jsx)(P.Fragment,{})}else if(!U||!Z&&!ce.includes(null===(Xe=(0,F.eY)())||void 0===Xe?void 0:Xe.login))return(0,P.jsx)(P.Fragment,{});return(0,P.jsxs)("div",{children:[B?(0,P.jsxs)("div",{onClick:se||qe,children:[(0,P.jsx)(v.Outlet,{}),B]}):(0,P.jsx)(J,{onClick:se||qe}),(0,P.jsx)(A.Z,{className:"".concat(null!=z&&z.open||Ae?"body-overflow-hidden":""," ").concat(N.answerWrp),width:(null==z?void 0:z.width)||880,title:(0,P.jsx)("span",{className:N.title,children:E||"头歌AI"}),onClose:(null==z?void 0:z.onClose)||function(){me(!1)},open:(null==z?void 0:z.open)||Ae,children:(0,P.jsxs)("div",{className:N["ai-wrp"],children:[(0,P.jsxs)("div",{ref:Re,className:N["chat-container"],children:[te&&(0,P.jsxs)("div",{className:N.li,children:[(0,P.jsx)("img",{className:N.img,src:y||"/images/ai_icon.png"}),(0,P.jsxs)("div",{className:N.content,children:[(0,P.jsxs)("div",{className:"c-grey-333 font22",children:[(0,P.jsx)("span",{className:"mr5",children:"👋"}),"嗨,我是头歌",ze?E:"智能助教",",您的教学好帮手。"]}),(0,P.jsx)("div",{className:"font16 mt20",style:{color:"#434D6C"},children:C||"我可以阅读您上传的教案,书籍等教学资料,并根据您的要求为您自动生成任务要求。"}),(0,P.jsx)("div",{className:"font16 mt20",style:{color:"#434D6C"},children:"快来试一下吧~"}),ze&&(0,P.jsx)("div",{className:N.container,children:Ke.map((function(e,n){return(0,P.jsxs)("div",{onClick:function(){return $e(e,n)},className:N.item,children:[(0,P.jsxs)(m.Z,{align:"middle",children:[(0,P.jsx)("img",{className:"mr10",src:e.img}),(0,P.jsx)("span",{style:{color:"#232B40",fontSize:16,fontWeight:600},children:e.name})]}),(0,P.jsx)("div",{className:"mt10",style:{color:"#434D6C"},children:e.des})]},n)}))})]})]}),null==Be?void 0:Be.map((function(e,n){var t;return(0,P.jsxs)("div",{className:N.li,style:"AI"===e.sender&&"user"!==(null===(t=Be[n+1])||void 0===t?void 0:t.sender)?{marginBottom:50}:{},children:[(0,P.jsx)("img",{className:N.img,src:"AI"===e.sender?y||"/images/ai_icon.png":j||"/images/ai_user.png"}),(0,P.jsx)("div",{className:"".concat(N.content," ").concat("AI"===e.sender?"":N.user),children:e.loading?(0,P.jsxs)("div",{children:[(0,P.jsxs)("div",{className:N["loading-wanx"],children:[(0,P.jsx)("div",{className:N["dot-flashing"]}),(0,P.jsx)("div",{className:N["dot-flashing"]}),(0,P.jsx)("div",{className:N["dot-flashing"]})]}),(0,P.jsx)("div",{style:{marginTop:10,color:"#9096A3"},children:(null==re?void 0:re.text)||"请耐心等待,目前高峰期体验人数过多,我们已记录下您的需求,稍后将自动为您生成答案。"})]}):(0,P.jsxs)(P.Fragment,{children:[!!e.name&&(0,P.jsx)("div",{className:"mb10 font18",style:{color:"#232B40",fontWeight:600},children:null==e?void 0:e.name}),(0,P.jsx)(H,{scrollBox:Re,Data:e,extraEdit:ee})]})})]},n)}))]}),!Q&&(0,P.jsxs)("div",{className:"".concat(N["footer-container"]," ").concat(Ue?N.full:""," ").concat(ve.length>=1&&N["has-file"]),children:[!!ve.length&&(0,P.jsxs)(m.Z,{align:"middle",className:"pb5 pt5",children:[(0,P.jsx)("span",{title:null==ve||null===(o=ve[0])||void 0===o?void 0:o.name,className:"mr10",children:(0,O.tP)(null==ve||null===(l=ve[0])||void 0===l?void 0:l.name,40)}),(0,P.jsx)("i",{onClick:function(){return Ee([])},className:"iconfont current icon-shanchu15 delete-hover c-red-ee4 font14"})]}),(0,P.jsxs)("div",{style:ve.length?{paddingLeft:0}:{},className:"".concat(N["input-container"]," ").concat(Te>4?N.lineFour:""),children:[!k&&(0,P.jsx)("div",{className:N["footer-container-upload"],children:(0,P.jsx)(p.Z,a()(a()({},ie?Ve:We),{},{children:null!=ve&&ve.length?null:(0,P.jsx)(I.ZP,{className:N["upload-btn"],icon:(0,P.jsx)("i",{className:"iconfont icon-shangchuan4 c-white"})})}))}),(0,P.jsx)(x.Z.TextArea,{rows:Te>4?4:Te,placeholder:w||"在这里输入你问题吧,Shift+Enter换行~",value:He,bordered:!1,onChange:function(e){Ne(e.target.value)},onKeyPress:function(e){if(e.shiftKey){if("Enter"===e.key)return}else if("Enter"===e.key){var n;if(e.preventDefault(),null!=ve&&ve.length&&"done"!==(null==ve||null===(n=ve[0])||void 0===n?void 0:n.status)||ke)return;en()}}}),(0,P.jsx)(I.ZP,{className:N["send-btn"],icon:(0,P.jsx)("i",{className:"iconfont icon-fasong2 c-white"}),disabled:!(null==ve||!ve.length)&&"done"!==(null==ve||null===(d=ve[0])||void 0===d?void 0:d.status)||ke,onClick:en}),Te>4&&(0,P.jsxs)("span",{className:N.fullIcon,onClick:function(){Ye(!Ue)},children:[Ue&&(0,P.jsx)("span",{className:"iconfont icon-shousuo"}),!Ue&&(0,P.jsx)("span",{className:"iconfont icon-zhankai"})]})]})]})]})})]})}))},93413:function(e,n,t){"use strict";var i=t(82242),s=t.n(i),r=t(7557),a=t.n(r),o=t(41498),c=t.n(o),l=t(79800),u=t.n(l),d=t(59301),h=t(60235),g=t(18030),f=t(43418),p=t(12911),A=t.n(p),m=t(4077),I=t(37712);n.Z=function(e){var n=e.style,t=void 0===n?{}:n,i=e.data,r=void 0===i?{}:i,o=(0,d.useRef)(),l=(0,d.useRef)(),p=(0,d.useState)(!1),x=u()(p,2),v=x[0],E=x[1],C=(0,d.useState)(!1),w=u()(C,2),k=w[0],Q=w[1],y=(0,d.useState)({left:0,top:0,bottom:0,right:0}),j=u()(y,2),B=j[0],D=j[1],S=(0,d.useRef)(null);(0,d.useEffect)((function(){return f.Z.info({title:"提示",width:642,icon:null,centered:!0,content:(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{children:"已经开启学习行为分析,需要调用你设备的摄像头,请开启浏览器摄像头权限。"}),(0,I.jsx)("a",{target:"_blank",href:"https://www.educoder.net/forums/36625",children:"如何开启浏览器摄像头权限?"})]}),okText:"我知道了",onOk:function(){E(!0)}}),function(){clearInterval(l.current)}}),[]);var b=function(){var e=c()(a()().mark((function e(n,t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,g.ZP)("/api/attachments.json",{method:"POST",body:{file_type:"base64",original_filename:n,file:t}}));case 1:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),R=function(){var e=c()(a()().mark((function e(){var n,t,i,c;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=null===(n=o.current)||void 0===n?void 0:n.handleTakePhoto(),i=(new Date).valueOf(),!t){e.next=9;break}return e.next=5,b("照片".concat(i),t);case 5:if((c=e.sent).status){e.next=9;break}return e.next=9,(0,h.Ju)(s()({attachment_id:null==c?void 0:c.id},r));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,I.jsx)(I.Fragment,{children:v&&(0,I.jsx)(A(),{disabled:k,bounds:B,onStart:function(e,n){return function(e,n){var t,i=window.document.documentElement,s=i.clientWidth,r=i.clientHeight,a=null===(t=S.current)||void 0===t?void 0:t.getBoundingClientRect();D({left:-a.left+n.x,right:s-(a.right-n.x),top:-a.top+n.y,bottom:r-(a.bottom-n.y)})}(0,n)},children:(0,I.jsx)("div",{ref:S,style:s()({position:"fixed",left:40,top:92,zIndex:101},t),children:(0,I.jsx)("div",{onMouseOver:function(){k&&Q(!1)},onMouseOut:function(){Q(!0)},children:(0,I.jsx)("div",{children:(0,I.jsx)(m.Z,{ref:o,isExercise:!1,onUserMediaLoaded:function(){R(),l.current=window.setInterval(c()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:R();case 1:case"end":return e.stop()}}),e)}))),12e4)}})})})})})})}},75627:function(e,n,t){"use strict";t.d(n,{X:function(){return c},y:function(){return o}});var i=t(79800),s=t.n(i),r=t(59301),a=t(8591),o=function(e){(0,r.useEffect)((function(){if(e){var n=function(e){"F12"===e.key&&(e.preventDefault(),console.log("F12被禁用"))},t=function(e){e.preventDefault()};return document.addEventListener("keydown",n),document.addEventListener("contextmenu",t),function(){document.removeEventListener("keydown",n),document.removeEventListener("contextmenu",t)}}}),[e])},c=function(){var e=(0,r.useState)(!1),n=s()(e,2),t=n[0],i=n[1],o=function(e){var n=e.keyCode,t=e.ctrlKey,i=e.metaKey;"paste"!==e.type&&(67!==n&&86!==n||!i&&!t)||(a.ZP.warning("老师已设置答题时不允许进行复制粘贴"),e.preventDefault(),e.stopPropagation())};return(0,r.useEffect)((function(){return t&&(window.addEventListener("keydown",o,!0),window.addEventListener("paste",o,!0)),function(){window.removeEventListener("keydown",o,!0),window.removeEventListener("paste",o,!0)}}),[t]),{setOpenDisableCopyAndPaste:i,disableCopyAndPaste:t}}},36709:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var i=t(7557),s=t.n(i),r=t(41498),a=t.n(r),o=t(79800),c=t.n(o),l=t(59301),u="imageDimensions___a7crR",d="img___Kroat",h="fullWidth___c492T",g=t(92310),f=t.n(g),p=t(71418),A=t(2859),m=t(18030),I=t(21082),x=t(37712),v=function(e){var n=e.data,t=e.className,i=e.fullWidth,r=e.style,o=void 0===r?{}:r,g=e.onClose,v=e.onOk,E=e.showFullTools,C=e.noAssociationId,w=(0,l.useRef)(null),k=(0,l.useRef)(null),Q=(0,l.useRef)(null),y=(0,l.useRef)(null),j=(0,l.useState)(!1),B=c()(j,2),D=B[0],S=B[1],b=(0,l.useState)("正在加载中"),R=c()(b,2),P=R[0],M=R[1];(0,l.useEffect)((function(){Q.current||(Q.current=document.createElement("style"),document.head.appendChild(Q.current)),null!=n&&n.visible?(document.body.setAttribute("data-custom","y-hidden"),Q.current.innerHTML=" html { overflow-y: hidden; }",null!=n&&n.src&&H()):(document.body.removeAttribute("data-custom"),Q.current&&(document.head.removeChild(Q.current),Q.current=null))}),[null==n?void 0:n.visible]);var H=function(){var e=a()(s()().mark((function e(){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S(!0),M("正在加载中"),e.next=4,(0,I.ZJ)(null==n?void 0:n.src);case 4:t=e.sent,w.current.src="",w.current.src=t,w.current.onload=function(){G()},S(!1),M("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),N=function(){var e=a()(s()().mark((function e(t){var i;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return S(!0),M("正在保存中"),e.next=4,(0,m.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||C){e.next=12;break}return e.next=8,(0,m.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&&v(),e.next=13;break;case 12:null!=i&&i.id&&v(i);case 13:S(!1),M("");case 15:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),G=function(){k.current=new A.hP(w.current),k.current.targetRoot=y.current,k.current.addEventListener("render",N),k.current.addEventListener("beforeclose",g),E&&(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;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var n=document.querySelector(e.name);n&&n.setAttribute("title",e.title)}))}),300)};return(0,x.jsx)(l.Fragment,{children:(null==n?void 0:n.visible)&&(0,x.jsx)(p.Z,{spinning:D,tip:P,style:{position:"absolute"},children:(0,x.jsx)("div",{ref:y,className:f()(u,t,i?h:""),style:o,children:(0,x.jsx)("img",{className:d,ref:w})})})})}},98382:function(e,n,t){"use strict";t.d(n,{z:function(){return y},Z:function(){return j}});var i=t(7557),s=t.n(i),r=t(41498),a=t.n(r),o=t(82242),c=t.n(o),l=t(37205),u=t.n(l),d=t(79800),h=t.n(d),g=t(59301),f=t(59028),p=t(8591),A=t(43418),m=t(3113),I=t(92723),x=t(90341),v=t(37712),E="  ";function C(e){if(0==e)return"0 Byte";var n=parseInt(""+Math.floor(Math.log(e)/Math.log(1024)),10);return(e/Math.pow(1024,n)).toFixed(1)+" "+["Bytes","KB","MB","GB","TB"][n]}var w=t(60186),k=t(89392);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var Q=f.Z.Dragger;function y(e){var n=[];return e&&e.length>0&&(n=e.map((function(e){return{uid:e.id,id:e.id,name:e.title+E+e.filesize,url:e.url,filesize:e.filesize,status:"done",response:{id:e.id}}}))),n}var j=function(e){var n=e.value,t=e.onChange,i=e.action,r=e.data,o=e.className,l=e.maxSize,d=void 0===l?150:l,y=e.title,j=void 0===y?"上传附件":y,B=e.showRemoveModal,D=void 0!==B&&B,S=e.accept,b=void 0===S?"":S,R=e.additionalText,P=e.isDragger,M=e.number,H=void 0===M?1e3:M,N=e.aloneClear,G=void 0!==N&&N,F=e.realTimeRemove,O=void 0===F||F,J=e.uploadText,T=(0,g.useState)(!1),Z=h()(T,2),L=Z[0],U=Z[1],Y=(0,g.useState)(n||[]),z=h()(Y,2),K=z[0],W=z[1],V=(0,g.useState)(1),X=h()(V,2),q=X[0],_=X[1];(0,g.useEffect)((function(){n&&(1===q&&W(u()(n)),_(2),H===(null==n?void 0:n.length)&&U(!0))}),[n]);var $,ee=function(){setTimeout((function(){K.pop(),W(u()(K))}),500)},ne={multiple:!0,disabled:L,accept:b,withCredentials:!0,fileList:K,beforeUpload:function(e,n){var t=e.size/1024/1024;return K.concat(n).length>H?(K.pop(),W(u()(K)),p.ZP.error("最多只能上传".concat(H,"个文件")),G?Promise.reject():(ee(),!1)):t=H?U(!0):U(!1),W(u()(K)),K=K.map((function(e){var n,t;null!=e&&null!==(n=e.response)&&void 0!==n&&n.id&&(e.url=null==e||null===(t=e.response)||void 0===t?void 0:t.url);return-1===e.name.indexOf(E)&&(e.name="".concat(e.name).concat(E).concat(C(e.size))),c()({},e)})),console.log("info:",e,K),t(K)):p.ZP.error(null===(i=e.file)||void 0===i||null===(i=i.response)||void 0===i?void 0:i.message)},onRemove:($=a()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(O){e.next=2;break}return e.abrupt("return",!0);case 2:if(t=function(){var e=a()(s()().mark((function e(){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.response?n.response.id:n.id)){e.next=8;break}return e.next=4,(0,x.JZ)(n.response?n.response.id:n.uid);case 4:return t=e.sent,e.abrupt("return",Promise.resolve(t));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!D){e.next=7;break}return e.abrupt("return",new Promise((function(e,n){var i;A.Z.confirm({centered:!0,width:530,okText:"确定",cancelText:"取消",title:"提示",content:(0,v.jsx)("div",{className:"tc font16",children:"是否确认删除?"}),onOk:(i=a()(s()().mark((function n(){return s()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t();case 2:n.sent,p.ZP.success("删除成功"),e(!0);case 5:case"end":return n.stop()}}),n)}))),function(){return i.apply(this,arguments)}),onCancel:function(){return e(!1)}})})));case 7:return e.next=9,t();case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e)}))),function(e){return $.apply(this,arguments)})};return(0,v.jsxs)("div",{className:"multi-upload ".concat(o||""),children:[P&&(0,v.jsxs)(Q,c()(c()({},ne),{},{children:[(0,v.jsx)("p",{className:"ant-upload-drag-icon",children:(0,v.jsx)(w.Z,{})}),(0,v.jsxs)("p",{className:"ant-upload-text",children:["点击上传图标,选择要上传的文件或将文件拖拽到此",(0,v.jsx)("br",{}),"(单个文件最大限制为",d,"MB)"," "]}),R]})),!P&&(0,v.jsxs)(f.Z,c()(c()({},ne),{},{children:[(0,v.jsxs)(m.ZP,{disabled:L,className:"upload_button",children:[(0,v.jsx)("img",{className:"aBtn_img",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="}),j]}),(0,v.jsx)("span",{onClick:function(e){e.preventDefault(),e.stopPropagation()},className:"upload_text",children:J||"(单个文件最大".concat(d,"MB)")})]}))]})}},29443:function(e,n,t){"use strict";t.d(n,{Z:function(){return h}});t(59301);var i="result___gu5zt",s="title___xrnx2",r="left___IAxp9",a="leftNode___HL8fG",o="right___ZXYmw",c="rightNode___jYL5_",l=t(92310),u=t.n(l),d=t(37712),h=function(e){var n=e.className,t=e.style,l=void 0===t?{}:t,h=e.leftNode,g=e.leftTitle,f=void 0===g?"自测输入":g,p=e.rightNode,A=e.rightTitle,m=void 0===A?"运行结果":A;return(0,d.jsxs)("div",{className:u()(i,n),style:l,children:[(0,d.jsxs)("div",{className:r,children:[(0,d.jsxs)("div",{className:s,children:[(0,d.jsx)("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),(0,d.jsx)("span",{children:f})]}),(0,d.jsx)("div",{className:a,children:h})]}),(0,d.jsxs)("div",{className:o,children:[(0,d.jsxs)("div",{className:s,children:[(0,d.jsx)("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),(0,d.jsx)("span",{children:m})]}),(0,d.jsx)("div",{className:c,children:p})]})]})}},42534:function(e,n,t){"use strict";t.d(n,{cT:function(){return D},pe:function(){return B}});var i=t(37205),s=t.n(i),r=t(79800),a=t.n(r),o=t(39647),c=t.n(o),l=t(82242),u=t.n(l),d=t(7557),h=t.n(d),g=t(41498),f=t.n(g),p=t(59301),A=t(59028),m=t(8591),I=t(18030),x=t(28209),v=t.n(x),E=t(1012),C=t(5296),w=t(47257),k=t.n(w),Q=t(37712),y=["user","cancelUpload"],j=A.Z.Dragger,B=function(e){var n=v().enc.Utf8.parse("bf3c199c2470cb477d907b1e0917c17b"),t=v().enc.Utf8.parse("5183666c72eec9e4"),i=v().AES.decrypt(e,n,{iv:t,mode:v().mode.CBC});return i.toString(v().enc.Utf8)},D=function(){var e=f()(h()().mark((function e(n,t,i){var s,r,a,o,c,l,d,g,f,p;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.file_name=n.name,e.next=3,(0,I.ZP)("/api/buckets/get_upload_token.json",{method:"get"});case 3:return d=e.sent,console.log("decrypt(res.data):",B(d.data)),d.data=JSON.parse(B(d.data)),(g=n.name.split(".")).pop(),f=t.realFileName?g.join(""):(0,E.Z)(),p=new(k())({endpoint:null==d||null===(s=d.data)||void 0===s?void 0:s.end_point,region:null==d||null===(r=d.data)||void 0===r?void 0:r.region,accessKeyId:null==d||null===(a=d.data)||void 0===a?void 0:a.access_key_id,accessKeySecret:null==d||null===(o=d.data)||void 0===o?void 0:o.access_key_secret,bucket:null==d||null===(c=d.data)||void 0===c?void 0:c.bucket,stsToken:null==d||null===(l=d.data)||void 0===l?void 0:l.security_token}),e.abrupt("return",new Promise((function(e,s){var r;p.multipartUpload("".concat(f),new Blob([n],{type:n.type}),u()(u()({timeout:2e5,partSize:102400},i),{},{callback:{url:null==d||null===(r=d.data)||void 0===r?void 0:r.callback_url,host:null==d?void 0:d.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,I.rz)(t)}})).then((function(t){var i;n.response=null===(i=t.data)||void 0===i?void 0:i.data,e(null==t?void 0:t.data)})).catch((function(e){s(e),console.log("err:",e)}))})));case 11:case"end":return e.stop()}}),e)})));return function(n,t,i){return e.apply(this,arguments)}}();n.ZP=(0,C.connect)((function(e){var n=e.loading,t=e.globalSetting,i=e.user;return{globalSetting:t,loading:n.models.competitions,user:i}}))((function(e){var n,t=e.user,i=e.cancelUpload,r=c()(e,y),o=(0,p.useState)([]),l=a()(o,2),d=l[0],g=l[1],A=(0,p.useState)(),x=a()(A,2),v=x[0],C=x[1],w={onRemove:function(e){g(s()(d.filter((function(n){return n.name!==e.name})))),r.onChange(d.filter((function(n){return n.name!==e.name})))},disabled:r.disabled,multiple:!0,fileList:null==d?void 0:d.map((function(e){return e.file})),customRequest:function(){},beforeUpload:(n=f()(h()().mark((function e(n){var t;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.maxSize||1073741824,!d.filter((function(e){return e.name===n.name})).length){e.next=4;break}return m.ZP.info("".concat(n.name,"已存在,请重新选择")),e.abrupt("return");case 4:if(!((null==n?void 0:n.size)>t)){e.next=7;break}return m.ZP.info("文件超过".concat(t/1024/1024/1024,"GB,不符合上传要求")),e.abrupt("return",!1);case 7:return d.push({name:n.name,file:n}),g(s()(d)),r.onChange(d),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},D=function(){var e=f()(h()().mark((function e(n,t){var i,a,o,c,l,u,f,p,A,x;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.file_name=n.name,f=n.name,e.next=4,(0,I.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});case 4:if((p=e.sent).data=JSON.parse(B(p.data)),0===(null==p?void 0:p.status)){e.next=12;break}return d[d.findIndex((function(e){return e.name===f}))].status="error",d[d.findIndex((function(e){return e.name===f}))].file.status="error",r.onChange(d),m.ZP.warning("上传失败,请重新尝试"),e.abrupt("return");case 12:return v=new(k())({endpoint:null==p||null===(i=p.data)||void 0===i?void 0:i.end_point,region:null==p||null===(a=p.data)||void 0===a?void 0:a.region,accessKeyId:null==p||null===(o=p.data)||void 0===o?void 0:o.access_key_id,accessKeySecret:null==p||null===(c=p.data)||void 0===c?void 0:c.access_key_secret,bucket:null==p||null===(l=p.data)||void 0===l?void 0:l.bucket,stsToken:null==p||null===(u=p.data)||void 0===u?void 0:u.security_token}),console.log(n,"file"),C(v),(A=n.name.split(".")).pop(),x=f.indexOf(".")>-1?t.realFileName?A.join("."):(0,E.Z)():f,e.abrupt("return",new Promise((function(e,i){try{var a;v.multipartUpload("".concat(r.identifier,"/").concat(x).concat(f.indexOf(".")>-1?"."+f.split(".").pop():""),new Blob([n.file],{type:n.file.type}),{timeout:36e5,partSize:1002400,progress:function(e,n,t){try{console.log("进度",e,n,t);var i=d.findIndex((function(e){return e.name===f}));d[i].file.percent=100*e,d[i].tempCheckpoint=n,g(s()(d))}catch(e){}},checkpoint:d[d.findIndex((function(e){return e.name===f}))].tempCheckpoint,callback:{customValue:{id:f+""},url:null==p||null===(a=p.data)||void 0===a?void 0:a.callback_url,host:null==p?void 0:p.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,I.rz)(t)}}).then((function(t){var i,s=d.findIndex((function(e){return e.name===f})),a="done";if(0===(null===(i=t.data)||void 0===i?void 0:i.status)){var o;n.response=null===(o=t.data)||void 0===o?void 0:o.data;var c=d.findIndex((function(e){return e.name===f}));d[c].status="done",d[c].file.status="done"}else{var l;m.ZP.warning(null===(l=t.data)||void 0===l?void 0:l.message),a="error"}d[s].status=a,d[s].file.status=a,r.onChange(d),e(null==t?void 0:t.data)})).catch((function(e){d[d.findIndex((function(e){return e.name===f}))].status="error",d[d.findIndex((function(e){return e.name===f}))].file.status="error",m.ZP.warning("上传失败,请重新尝试"),g(s()(d)),r.onChange(d),i(e),console.log("err:",e)}))}catch(e){}})));case 19:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}();return(0,p.useEffect)((function(){d.every((function(e){return"done"===e||"error"===e}))&&r.onComplete(d)}),[d]),(0,p.useEffect)((function(){var e;i&&(null===(e=v)||void 0===e||e.cancel())}),[i]),(0,p.useEffect)((function(){r.uploading&&d.map(function(){var e=f()(h()().mark((function e(n){var s;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.status&&"error"!==n.status||i){e.next=6;break}return n.status="uploading",n.file.status="uploading",e.next=5,D(n,{login:null==t||null===(s=t.userInfo)||void 0===s?void 0:s.login,container_type:r.container_type,container_id:r.container_id,description:r.description,realFileName:r.realFileName});case 5:e.sent;case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}())}),[r.uploading]),(0,Q.jsx)(j,u()(u()({},w),{},{height:r.height,className:r.className,children:(0,Q.jsx)("p",{className:"ant-upload-hint",children:r.text||"拖拽文件或者点击上传"})}))}))},84336:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var i=t(79800),s=t.n(i),r=t(7557),a=t.n(r),o=t(41498),c=t.n(o),l=t(59301),u=t(8591),d=t(38854),h=t(32080),g=t(24830),f=t(93697),p=t(56102),A=t(13275),m={watermark:"watermark___hNYlv",videovideo:"videovideo___ovOkV",animate__loop:"animate__loop___mvL6s",upDown:"upDown___SlgHv",container:"container___g1WYG","video-container":"video-container___XPkWR","video-controls":"video-controls___to0Zq",hide:"hide___NA3DV","video-progress":"video-progress___gqHsd",seek:"seek___iZHBm","seek-tooltip":"seek-tooltip___uWyXx","bottom-controls":"bottom-controls___uoIBm","left-controls":"left-controls___mBEx4","right-controls":"right-controls___e9L6r",rateOverlay:"rateOverlay___HHBWe",controlText:"controlText___M_BWR","volume-controls":"volume-controls___fa3mE","fullscreen-button":"fullscreen-button___ur0es","fullscreen-button1":"fullscreen-button1___rfaXm","pip-button":"pip-button___GFO8W","playback-animation":"playback-animation___ndURq",volume:"volume___OTmpP",hidden:"hidden___o7GkT"},I=t(37712);function x(e){if(isNaN(e))return{minutes:"00",seconds:"00"};var n=new Date(1e3*e).toISOString().substr(11,8);return{hour:n.substr(0,2),minutes:n.substr(3,2),seconds:n.substr(6,2)}}function v(e,n){return e-n}function E(e){e.sort(v);for(var n=0,t=0;t0&&!this.paused&&!this.ended&&this.readyState>2)}});var C=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i,w=(0,l.forwardRef)((function(e,n){var t,i,r=e.allow_skip,o=e.src,v=e.toLog,w=e.videoId,k=e.logWatchHistory,Q=e.courseId,y=void 0===Q?null:Q,j=e.startTime,B=e.handlePause,D=void 0===B?function(){}:B,S=e.handlePlay,b=void 0===S?function(){}:S,R=e.handlePlayEnded,P=void 0===R?function(){}:R,M=e.autoPlay,H=void 0!==M&&M,N=e.onPlayEnded,G=void 0===N?function(){}:N,F=e.isShowWaterMark,O=void 0===F||F,J="flv"===(null===(i=o=null===(t=o)||void 0===t?void 0:t.replace("http://","https://"))||void 0===i||null===(i=i.split("."))||void 0===i?void 0:i.pop()),T=(0,l.useRef)(),Z=(0,l.useRef)(),L=(0,l.useRef)(),U=(0,l.useRef)(),Y=(0,l.useRef)(),z=(0,l.useRef)(),K=(0,l.useRef)(),W=(0,l.useRef)(),V=(0,l.useRef)(),X=(0,l.useRef)(),q=(0,l.useRef)(),_=(0,l.useRef)(),$=(0,l.useRef)(),ee=(0,l.useRef)(),ne=navigator.userAgent.toLowerCase().match(C),te=ne?ne[0]:"pc",ie=(0,l.useRef)(!1),se=(0,f.eY)(),re=0,ae=0,oe=0,ce=null,le=!1,ue=20,de=1,he=!1,ge=!1,fe=[];(0,l.useImperativeHandle)(n,(function(){return{getLastUpdatedTime:function(){return T.current.currentTime},getDuration:function(){return T.current.duration}}})),u.ZP.config({maxCount:1,getContainer:function(){return L.current}});var pe=(0,l.useCallback)((function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t={point:T.current.currentTime};function i(){return s.apply(this,arguments)}function s(){return(s=c()(a()().mark((function n(){var i;return a()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return he=!0,n.next=3,null==k?void 0:k(t);case 3:i=n.sent,ce=i,he=!1,e&&e();case 7:case"end":return n.stop()}}),n)})))).apply(this,arguments)}ce?(t.log_id=ce,t.watch_duration=E(fe),t.total_duration=ae):(y?(t.video_id=parseInt(w,10),t.course_id=y):t.video_id=w,t.duration=re,t.device=te),n&&(t.ed="1"),i()}),[w,y]);function Ae(){T.current.paused?(U.current.style.display="none",Y.current.style.display="block"):(U.current.style.display="block",Y.current.style.display="none")}function me(){q.current.style.display="none",$.current.style.display="none",_.current.style.display="none",T.current.muted||0===T.current.volume?q.current.style.display="block":T.current.volume>0&&T.current.volume<=.5?$.current.style.display="block":_.current.style.display="block"}(0,l.useEffect)((function(){var e;T.current&&(U.current.style.display="none",Y.current.style.display="block"),u.ZP.destroy();var n=null;return h.Z.isSupported&&J&&o&&(null===(e=o)||void 0===e?void 0:e.indexOf(".m3u8"))<0?(n=h.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:o,muted:!1}),T.current&&(n.attachMediaElement(T.current),n.load())):T.current.setAttribute("src",o),me(),function(){n&&(n.unload(),n.pause(),n.destroy(),n=null)}}),[T,J,o]),(0,l.useEffect)((function(){document.getElementById("play"),document.querySelectorAll(".playback-icons use");function e(){b(),j&&!ie.current&&(T.current.currentTime=j),ie.current=!0,fe.push(T.current.currentTime),le||(le=!0,v&&pe())}function n(){return t.apply(this,arguments)}function t(){return(t=c()(a()().mark((function e(){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Ae(),fe.push(T.current.currentTime),v&&pe((function(){ce=null,oe=0,le=!1,he=!1,ge=!1,fe=[],ae=0,de=1}),!0),G();case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function i(){z.current.value=Math.round(T.current.currentTime),K.current.value=Math.round(T.current.currentTime)}function s(){var e=Math.round(T.current.duration);z.current.setAttribute("max",e),K.current.setAttribute("max",e);var n=x(e);W.current.innerText="".concat(n.hour>0?n.hour+":":"").concat(n.minutes,":").concat(n.seconds),W.current.setAttribute("datetime","".concat(n.hour>0?" "+n.hour+" ":"").concat(n.minutes,"m ").concat(n.seconds,"s"))}function o(){try{var e=Math.round(T.current.duration);z.current.setAttribute("max",e),K.current.setAttribute("max",e);var n=x(e);W.current.innerText="".concat(n.hour>0?n.hour+":":"").concat(n.minutes,":").concat(n.seconds),W.current.setAttribute("datetime","".concat(n.hour>0?" "+n.hour+" ":"").concat(n.minutes,"m ").concat(n.seconds,"s")),i(),function(){var e=x(Math.round(T.current.currentTime));V.current.innerText="".concat(e.hour>0?e.hour+":":"").concat(e.minutes,":").concat(e.seconds),V.current.setAttribute("datetime","".concat(e.hour>0?" "+e.hour+" ":"").concat(e.minutes,"m ").concat(e.seconds,"s"))}();var t=Z.current.getBoundingClientRect(),s=t.width,r=(t.height,t.x),a=t.y;if(r<0||a<0||!s)return;if(!ge){var o=T.current.currentTime,c=o-oe;Math.abs(c)<10?(ae+=Math.abs(c),oe=o,he||ae-de*ue>=0&&(de++,fe.push(oe),v&&pe())):(oe=o,v&&pe())}}catch(e){console.log(e)}}function l(){ge=!0}function d(){T.current.playing&&fe.push(T.current.currentTime,oe),oe=T.current.currentTime,ge=!1}function h(){(re=T.current.duration)<=20&&(ue=re/3),T.current.addEventListener("play",e)}function g(){D()}function f(e){if(r){var n=e.target.dataset.seek?e.target.dataset.seek:e.target.value;T.current.currentTime=n,K.current.value=n,z.current.value=n}else u.ZP.warning("该视频禁止快进/后退播放")}function p(e){var n=Math.round(e.offsetX/e.target.clientWidth*parseInt(e.target.getAttribute("max"),10));z.current.setAttribute("data-seek",n);var t=x(n);X.current.textContent="".concat(t.hour>0?t.hour+":":"").concat(t.minutes,":").concat(t.seconds);var i=T.current.getBoundingClientRect();X.current.style.left="".concat(e.pageX-i.left,"px")}function m(e){switch(e.code){case"Space":e.preventDefault(),Ee();break;case"ArrowRight":if(e.preventDefault(),!r){u.ZP.warning("该视频禁止快进/后退播放");break}if(T.current.currentTime>=T.current.duration)break;T.current.currentTime=parseInt(T.current.currentTime)+5,i();break;case"ArrowLeft":if(e.preventDefault(),!r){u.ZP.warning("该视频禁止快进/后退播放");break}if(0===T.current.currentTime)break;T.current.currentTime=parseInt(T.current.currentTime)-5,i();break;case"ArrowUp":e.preventDefault(),T.current.volume<1&&(T.current.volume=(parseInt(10*T.current.volume)+1)/10);break;case"ArrowDown":e.preventDefault(),T.current.volume>0&&(T.current.volume=(parseInt(10*T.current.volume)-1)/10)}}return L.current.addEventListener((0,A.gH)(),(function(e){e.preventDefault(),(0,A.vp)()?(T.current.style.width="100%",T.current.style.height="100%"):T.current.style.cssText=""})),T.current.addEventListener("canplay",h),T.current.addEventListener("ended",n),T.current.addEventListener("seeking",l),T.current.addEventListener("seeked",d),T.current.addEventListener("loadedmetadata",s),z.current.addEventListener("mousemove",p),z.current.addEventListener("input",f),T.current.addEventListener("timeupdate",o),T.current.addEventListener("pause",g),T.current.addEventListener("volumechange",me),document.addEventListener("keydown",m),function(){var t,i,r,a,c,u,A,I,x,E,C,w;null===(t=T.current)||void 0===t||t.removeEventListener("canplay",h),null===(i=T.current)||void 0===i||i.removeEventListener("play",e),null===(r=T.current)||void 0===r||r.removeEventListener("ended",n),null===(a=T.current)||void 0===a||a.removeEventListener("seeking",l),null===(c=T.current)||void 0===c||c.removeEventListener("seeked",d),null===(u=z.current)||void 0===u||u.removeEventListener("mousemove",p),null===(A=z.current)||void 0===A||A.removeEventListener("input",f),null===(I=T.current)||void 0===I||I.removeEventListener("timeupdate",o),null===(x=T.current)||void 0===x||x.removeEventListener("pause",g),null===(E=T.current)||void 0===E||E.removeEventListener("loadedmetadata",s),null===(C=T.current)||void 0===C||C.removeEventListener("volumechange",me),document.removeEventListener("keydown",m),null!==(w=T.current)&&void 0!==w&&w.playing&&(fe.push(oe,T.current.currentTime),v&&pe())}}),[T,o]),(0,l.useEffect)((function(){var e;if(T.current.onended=function(){P(T)},T.current.oncontextmenu=function(){return!1},(null===(e=o)||void 0===e?void 0:e.indexOf(".m3u8"))>-1)if(T.current.canPlayType("application/vnd.apple.mpegurl"))T.current.src=o;else if(g.ZP.isSupported()){var n=new g.ZP;n.loadSource(o),n.attachMedia(T.current)}}),[o]);var Ie=(0,l.useState)(1),xe=s()(Ie,2),ve=(xe[0],xe[1]),Ee=function(){T.current.paused||T.current.ended?T.current.play():T.current.pause(),Ae()};return(0,I.jsxs)("div",{style:{position:"relative"},ref:L,children:[(0,I.jsx)("div",{ref:Z,className:"".concat(m.watermark," animated_alternate animate__animated_10s animate__infinite animate__stepstart ").concat(m.animate__loop),children:O&&se?se.login:" "}),(0,I.jsx)("div",{className:m.container,children:(0,I.jsxs)("div",{className:m["video-container"],id:"video-container",children:[(0,I.jsx)("div",{className:m["playback-animation"],id:"playback-animation",children:(0,I.jsxs)("svg",{className:m["playback-icons"],children:[(0,I.jsx)("use",{className:"hidden",href:"#play-icon"}),(0,I.jsx)("use",{href:"#pause"})]})}),(0,I.jsx)("video",{className:m.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:T,autoPlay:H}),(0,I.jsxs)("div",{className:"".concat(m["video-controls"]," "),id:"video-controls",children:[(0,I.jsxs)("div",{className:m["bottom-controls"],children:[(0,I.jsxs)("div",{className:m["left-controls"],children:[(0,I.jsx)("button",{"data-title":"播放/暂停",id:"play",onClick:Ee,children:(0,I.jsxs)("svg",{className:m["playback-icons"],children:[(0,I.jsx)("use",{ref:Y,href:"#play-icon"}),(0,I.jsx)("use",{ref:U,style:{display:"none"},href:"#pause"})]})}),(0,I.jsxs)("div",{className:m.time,children:[(0,I.jsx)("time",{id:"time-elapsed",ref:V,children:"00:00"}),(0,I.jsx)("span",{children:" / "}),(0,I.jsx)("time",{id:"duration",ref:W,children:"00:00"})]})]}),(0,I.jsxs)("div",{className:m["right-controls"],children:[r&&(0,I.jsx)(d.Z,{placement:"top",overlayClassName:m.rateOverlay,getPopupContainer:function(e){return e.parentNode},menu:{items:[{key:"1",label:(0,I.jsx)("span",{onClick:function(){ve(1),T.current.playbackRate=1},children:"1.0x"})},{key:"2",label:(0,I.jsx)("span",{onClick:function(){ve(1.5),T.current.playbackRate=1.5},children:"1.5x"})},{key:"3",label:(0,I.jsx)("span",{onClick:function(){ve(2),T.current.playbackRate=2},children:"2.0x"})}]},children:(0,I.jsx)("div",{className:"".concat(m.controlText," mr5"),children:"倍速"})}),(0,I.jsx)(p.CopyToClipboard,{text:o,onCopy:function(){return u.ZP.success("复制成功")},children:(0,I.jsx)("button",{"data-title":"复制链接",children:(0,I.jsx)("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}})})}),(0,I.jsxs)("div",{className:m["volume-controls"],children:[(0,I.jsxs)("button",{"data-title":"开启/关闭声音",className:m["volume-button"],id:"volume-button",onClick:function(){T.current.muted=!T.current.muted,T.current.muted?(ee.current.setAttribute("data-volume",volume.value),ee.current.value=0):ee.current.value=ee.current.dataset.volume},children:[(0,I.jsx)("i",{ref:q,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),(0,I.jsx)("i",{ref:$,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),(0,I.jsx)("i",{ref:_,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})]}),(0,I.jsx)("input",{className:m.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:ee,style:{display:"none"},onClick:me})]}),(0,I.jsx)("button",{"data-title":"全屏/退出全屏",className:m["fullscreen-button"],onClick:function(){(0,A.vp)()?(0,A.BU)():(0,A.Dj)(L.current)},children:(0,I.jsx)("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})})]})]}),(0,I.jsxs)("div",{className:m["video-progress"],children:[(0,I.jsx)("progress",{ref:K,value:"0",min:"0"}),(0,I.jsx)("input",{className:m.seek,ref:z,value:"0",min:"0",type:"range",step:"1"}),(0,I.jsx)("div",{className:m["seek-tooltip"],ref:X,id:"seek-tooltip",children:"00:00"})]})]})]})}),(0,I.jsx)("svg",{style:{display:"none"},children:(0,I.jsxs)("defs",{children:[(0,I.jsx)("symbol",{id:"pause",viewBox:"0 0 24 24",children:(0,I.jsx)("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})}),(0,I.jsx)("symbol",{id:"play-icon",viewBox:"0 0 24 24",children:(0,I.jsx)("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})}),(0,I.jsx)("symbol",{id:"volume-high",viewBox:"0 0 24 24",children:(0,I.jsx)("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})}),(0,I.jsx)("symbol",{id:"volume-low",viewBox:"0 0 24 24",children:(0,I.jsx)("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})}),(0,I.jsx)("symbol",{id:"volume-mute",viewBox:"0 0 24 24",children:(0,I.jsx)("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})}),(0,I.jsx)("symbol",{id:"fullscreen",viewBox:"0 0 24 24",children:(0,I.jsx)("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})}),(0,I.jsx)("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24",children:(0,I.jsx)("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})}),(0,I.jsx)("symbol",{id:"pip",viewBox:"0 0 24 24",children:(0,I.jsx)("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})})]})})]})}))},53802:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var i=t(79800),s=t.n(i),r=t(59301),a=t(50021),o=t(39073),c=t(37712),l=function(){var e=(0,r.useState)(""),n=s()(e,2),t=n[0],i=n[1],l=(0,r.useState)(0),u=s()(l,2),d=(u[0],u[1]),h=(0,r.useState)(),g=s()(h,2),f=(g[0],g[1]),p=(0,r.useState)(),A=s()(p,2),m=(A[0],A[1]),I=(0,r.useState)(!1),x=s()(I,2),v=(x[0],x[1],(0,r.useRef)(""));function E(e){27==e.keyCode&&v.current&&C()}function C(){document.body.style.overflow="auto",f(void 0),m(void 0),d(0),i("")}(0,r.useEffect)((function(){return a.Z.subscribe("preview-image",(function(e){i(e),console.log(k.current),document.body.style.overflow="hidden"}))}),[]),(0,r.useEffect)((function(){return document.addEventListener("keydown",E),function(){document.removeEventListener("keydown",E)}}),[]),(0,r.useEffect)((function(){v.current=t}),[t]);(0,r.useRef)();var w=(0,r.useRef)(),k=(0,r.useRef)();return(0,c.jsx)(r.Fragment,{children:t?(0,c.jsx)("div",{children:(0,c.jsx)("div",{className:"preview-wrp-group",ref:w,children:(0,c.jsx)(o.Z,{className:"image-preview",src:t,style:{display:"none"},preview:{visible:!0,src:t,movable:!1,onVisibleChange:function(e){i("")}},alt:"预览大图"})})}):null})}},73145:function(e,n,t){"use strict";t.d(n,{h:function(){return m}});var i=t(82242),s=t.n(i),r=t(79800),a=t.n(r),o=t(59301),c=t(57809),l=t(78241),u=t(3113),d=t(89780),h=t.n(d),g=(t(80443),t(90630),t(37712)),f=c.default.Option,p={labelCol:{span:4},wrapperCol:{span:20}},A={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 m(e){var n=e.value,t=e.onChange,i=e.mode,r=e.options,c=void 0===r?{}:r,l=(0,o.useRef)(),u=(0,o.useState)(),d=a()(u,2),f=d[0],p=d[1];return(0,o.useEffect)((function(){if(f){var e=function(e){var n=e.getValue();t&&t(n)};return f.on("change",e),function(){f.off("change",e)}}}),[f,t]),(0,o.useEffect)((function(){f&&f.setOption("mode",i)}),[f,i]),(0,o.useEffect)((function(){f&&(n===f.getValue()&&""!==n||setTimeout((function(){f.setValue(n||"")}),300))}),[f,n]),(0,o.useEffect)((function(){if(l.current&&!f){var e=h().fromTextArea(l.current,s()({mode:i,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},c));p(e)}}),[l.current,f]),(0,g.jsx)("div",{className:"my-codemirror-container",children:(0,g.jsx)("textarea",{ref:l})})}n.Z=function(e){var n=e.callback,t=e.onCancel,i=(0,o.useState)("python"),r=a()(i,2),d=r[0],h=r[1];return(0,g.jsxs)(l.Z,s()(s()({},p),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){n(e)},style:{width:500},children:[(0,g.jsx)(l.Z.Item,{label:"代码语言",name:"language",children:(0,g.jsx)(c.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){h(A[e][1])},children:Object.keys(A).map((function(e){return(0,g.jsx)(f,{value:e,children:A[e][0]},e)}))})}),(0,g.jsx)(l.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,g.jsx)(m,{mode:d})}),(0,g.jsxs)("div",{className:"flex-container flex-end",children:[(0,g.jsx)(u.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,g.jsx)(u.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))}},16318:function(e,n,t){"use strict";t.d(n,{Z:function(){return Ee}});var i=t(91232),s=t.n(i),r=t(79800),a=t.n(r),o=t(85573),c=t.n(o),l=t(59301),u=t(89780),d=t.n(u),h=t(76374),g=(t(80443),t(6313),t(25717),t(99498),t(25419),t(67549),t(38279)),f=t(37712),p=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,f.jsx)(f.Fragment,{children:(0,f.jsx)("div",{dangerouslySetInnerHTML:{__html:i}})})},A=t(82242),m=t.n(A),I=[{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 x(e){var n=e.onActionCallback,t=e.title,i=e.icon,s=e.actionName,r=e.className,a=void 0===r?"":r,o=e.children;return(0,f.jsxs)("a",{title:t,className:a,onClick:function(){n(s)},children:[(0,f.jsx)("i",{className:"".concat(i)}),o]})}var v=function(e){var n=e.watch,t=e.showNullButton,i=e.showNullProgramButton,s=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,o=e.hidetoolBar,c=e.extraUse,l=[].concat(I,[{title:"".concat(n?"关闭实时预览":"开启实时预览"),icon:"".concat(n?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,f.jsxs)("ul",{className:"markdown-toolbar-container",children:[!o&&l.map((function(e,n){return(0,f.jsx)("li",{children:e.actionName?(0,f.jsx)(x,m()(m()({},e),{},{onActionCallback:s})):(0,f.jsx)("span",{className:"v-line"})},n)})),t?(0,f.jsx)("li",{children:(0,f.jsx)(x,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:s,children:(0,f.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("li",{children:(0,f.jsx)(x,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:s,children:(0,f.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,f.jsx)("li",{children:(0,f.jsx)(x,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:s,children:(0,f.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,f.jsx)("li",{children:(0,f.jsx)(x,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:s,children:(0,f.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),c&&(0,f.jsx)("li",{children:c}),(0,f.jsx)("li",{className:"btn-full-screen",children:(0,f.jsx)(x,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:s})})]})},E=t(24808),C=t(78241),w=t(92832),k=t(3113),Q={labelCol:{span:4},wrapperCol:{span:20}},y=function(e){var n=e.callback,t=e.onCancel;return(0,f.jsxs)(C.Z,m()(m()({},Q),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){n(e)},style:{width:500},children:[(0,f.jsx)(C.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,f.jsx)(w.Z,{})}),(0,f.jsx)(C.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,f.jsx)(w.Z,{})}),(0,f.jsxs)("div",{className:"flex-container flex-end",children:[(0,f.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,f.jsx)(k.ZP,{type:"ghost",onClick:t,children:"取消"})]})]}))},j=t(73145),B=t(28486),D=t(95237),S=t(36709),b=function(e){var n=e.callback,t=e.onCancel,i=document.createElement("canvas"),s=i.getContext("2d");i.width=1e3,i.height=800,s.fillStyle="#ffffff",s.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,f.jsx)(D.Z,{style:{height:"100vh"},children:(0,f.jsx)(S.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){n({src:e.url})},onClose:t})})},R=t(7557),P=t.n(R),M=t(41498),H=t.n(M),N=t(37205),G=t.n(N),F=t(12378);function O(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(O,go.CommandHandler),O.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},O.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")},O.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")},O.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")},O.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")},O.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")}},O.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")}},O.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;i0){for(var i=a.elt(o-1);null!==i&&i.isTreeExpanded&&!i.isTreeLeaf;){i=this._sortTreeChildrenByY(i).last()}null!==i&&e.select(i)}else e.select(r)}else if("Down"===t.key){var s;if(n.isTreeExpanded&&!n.isTreeLeaf)null!==(s=this._sortTreeChildrenByY(n).first())&&e.select(s);else for(;null!==n;){var r,a,o;if(null===(r=n.findTreeParentNode()))break;if((o=(a=this._sortTreeChildrenByY(r)).indexOf(n))i.y?1:t.xi.x?1:0})),n},O.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},O.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(O.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(O.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 J=O,T=(t(41034),t(85160)),Z=t(43418),L=t(43604),U=t(18030),Y="myPaletteDiv___Xjz2I",z="maxH60___Pd4Re";window.go=F;var K=function(e){var n=e.onCancel,t=e.callback,i=(0,l.useRef)(),s=(0,l.useRef)(),r=(0,l.useRef)(),o=(0,l.useRef)(!1),c=(0,l.useRef)(!1),u=(0,l.useState)(0),d=a()(u,2),h=d[0],g=d[1],p=function(){var e=H()(P()().mark((function e(){var n,s;return P()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.current.makeImage(),e.next=3,(0,U.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:n.src}});case 3:s=e.sent,t({src:s.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,l.useEffect)((function(){g(h+1)}),[]),(0,f.jsx)("div",{ref:c,className:o.current?"".concat(z," body-overflow-initial"):"body-overflow-initial",children:(0,f.jsx)(Z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!h,destroyOnClose:!0,maskClosable:!1,getContainer:c.current,rootClassName:"zIndex-9999",title:(0,f.jsxs)(D.Z,{children:[(0,f.jsx)(L.Z,{flex:1,children:"插入流程图"}),(0,f.jsx)(L.Z,{onClick:function(){o.current=!o.current,g(h+1)},children:(0,f.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:n,children:(0,f.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,f.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,f.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,f.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,f.jsx)("div",{style:{height:"calc(100% - 50px)"},className:Y,ref:r})]}),(0,f.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,f.jsx)(T.FI,{initDiagram:function(){var e=F.GraphObject.make,n="#ff3333",t="#3358ff",a="#25ad23",o="#d533ff",c="#7d33ff",l="#ff6233",u="#ffffff",d="#000000",h="#fffcd5",g="#d5ebff",f="#f2dfe0",p="#a5d2fa",A="#cccccc",m="#b3e6b3",I="#fcbbbd";function x(n,t){var i=function(e,t){e.handled=!0,e.diagram.model.commit((function(i){var s=t.part.adornedPart,r=(new F.Point).setRectSpot(s.actualBounds,n);r.subtract(s.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(s.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(s.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(s.data)),i.addNodeData(a);var o={from:s.key,to:i.getKeyForNodeData(a)};i.addLinkData(o);var c=e.diagram.findNodeForData(a);c.location=r,e.diagram.select(c),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(F.Shape,{figure:t,alignment:n,alignmentFocus:n.opposite(),width:n.equals(F.Spot.Top)||n.equals(F.Spot.Bottom)?25:18,height:n.equals(F.Spot.Top)||n.equals(F.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 v(n){return e(F.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 E(e,n){return function(t,i){t.handled=!0,t.diagram.model.commit((function(t){t.set(i.part.adornedPart.data,e,n)}))}}function C(n,t){return t||(t="color"),e(F.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:E(t,n),contextClick:E(t,n)})}function w(){return[e("ContextMenuButton",e(F.Panel,"Horizontal",C(u,"fill"),C(h,"fill"),C(g,"fill"),C(f,"fill"))),e("ContextMenuButton",e(F.Panel,"Horizontal",C(A,"fill"),C(m,"fill"),C(p,"fill"),C(I,"fill")))]}function k(){return[e("ContextMenuButton",e(F.Panel,"Horizontal",C(d),C(a),C(t),C(n))),e("ContextMenuButton",e(F.Panel,"Horizontal",C(u),C(o),C(c),C(l)))]}function Q(n,t){return t||(t="thickness"),e(F.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:E(t,n),contextClick:E(t,n)})}function y(n,t){return t||(t="dash"),e(F.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:E(t,n),contextClick:E(t,n)})}function j(){return[e("ContextMenuButton",e(F.Panel,"Horizontal",Q(1),Q(2),Q(3),Q(4))),e("ContextMenuButton",e(F.Panel,"Horizontal",y(null),y([2,4]),y([4,4])))]}function B(n,t){return t||(t="figure"),e(F.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:E(t,n),contextClick:E(t,n)})}function D(n){return e(F.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(F.Shape,{geometryString:t,margin:2,background:"transparent",mouseEnter:function(e,n){return n.background="dodgerblue"},mouseLeave:function(e,n){return n.background="transparent"},click:E("dir",n),contextClick:E("dir",n)})}function b(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",F.Spot.stringify(F.Spot.AllSides)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(F.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 R(n,t){var i=0,s=F.Spot.RightSide;n.equals(F.Spot.Top)?(i=270,s=F.Spot.TopSide):n.equals(F.Spot.Left)?(i=180,s=F.Spot.LeftSide):n.equals(F.Spot.Bottom)&&(i=90,s=F.Spot.BottomSide),t||(i-=180);var r=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",F.Spot.stringify(s)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(F.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:r,contextClick:r})}return i.current=new F.Diagram(s.current,{padding:20,grid:e(F.Panel,"Grid",e(F.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(F.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(J),"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(F.Node,"Auto",{locationSpot:F.Spot.Center,locationObjectName:"SHAPE",desiredSize:new F.Size(120,60),minSize:new F.Size(40,40),resizable:!0,resizeCellSize:new F.Size(10,10),rotatable:!0},new F.Binding("location","loc",F.Point.parse).makeTwoWay(F.Point.stringify),new F.Binding("desiredSize","size",F.Size.parse).makeTwoWay(F.Size.stringify),e(F.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:F.Spot.AllSides,toSpot:F.Spot.AllSides},new F.Binding("figure"),new F.Binding("fill"),new F.Binding("stroke","borderColor"),new F.Binding("strokeWidth","thickness"),new F.Binding("strokeDashArray","dash")),e(F.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(F.TextBlock,{margin:1,textAlign:"center",overflow:F.TextBlock.OverflowEllipsis,editable:!0},new F.Binding("text").makeTwoWay(),new F.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(F.Panel,"Vertical",{maxSize:new F.Size(200,NaN)},e(F.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new F.Binding("text")),e(F.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new F.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(F.Adornment,"Spot",e(F.Placeholder,{padding:10}),x(F.Spot.Top,"TriangleUp"),x(F.Spot.Left,"TriangleLeft"),x(F.Spot.Right,"TriangleRight"),x(F.Spot.Bottom,"TriangleDown"),v({alignment:new F.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(F.Panel,"Horizontal",B("Rectangle"),B("RoundedRectangle"),B("Ellipse"),B("Diamond"))),e("ContextMenuButton",e(F.Panel,"Horizontal",B("Parallelogram2"),B("ManualOperation"),B("Procedure"),B("Cylinder1"))),e("ContextMenuButton",e(F.Panel,"Horizontal",B("Terminator"),B("CreateRequest"),B("Document"),B("TriangleDown"))),w(),k(),j()),i.current.groupTemplate=e(F.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:F.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 F.Binding("location","loc",F.Point.parse).makeTwoWay(F.Point.stringify),e(F.Panel,"Auto",{name:"BODY"},e(F.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:F.Spot.AllSides,toSpot:F.Spot.AllSides},new F.Binding("fill"),new F.Binding("stroke","color"),new F.Binding("strokeWidth","thickness"),new F.Binding("strokeDashArray","dash")),e(F.Placeholder,{background:"transparent",margin:20})),e(F.TextBlock,{alignment:F.Spot.Top,alignmentFocus:F.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new F.Binding("text"),new F.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(F.Adornment,"Spot",e(F.Panel,"Auto",e(F.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(F.Placeholder,{margin:1.5})),v({alignment:F.Spot.TopRight,alignmentFocus:F.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",w(),k(),j()),i.current.linkTemplate=e(F.Link,{layerName:"Foreground",routing:F.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new F.Binding("fromSpot","fromSpot",F.Spot.parse),new F.Binding("toSpot","toSpot",F.Spot.parse),new F.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new F.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new F.Binding("points").makeTwoWay(),e(F.Shape,{strokeWidth:2},new F.Binding("stroke","color"),new F.Binding("strokeWidth","thickness"),new F.Binding("strokeDashArray","dash")),e(F.Shape,{segmentIndex:0,segmentOffset:new F.Point(15,0),segmentOrientation:F.Link.OrientAlong,alignmentFocus:F.Spot.Right,figure:"circle",width:10,strokeWidth:0},new F.Binding("fill","color"),new F.Binding("visible","dir",(function(e){return 1===e}))),e(F.Shape,{segmentIndex:-1,segmentOffset:new F.Point(-10,6),segmentOrientation:F.Link.OrientPlus90,alignmentFocus:F.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new F.Binding("fill","color"),new F.Binding("visible","dir",(function(e){return e>=1})),new F.Binding("width","thickness",(function(e){return 7+3*e})),new F.Binding("height","thickness",(function(e){return 7+3*e})),new F.Binding("segmentOffset","thickness",(function(e){return new F.Point(-15,4+1.5*e)}))),e(F.Shape,{segmentIndex:0,segmentOffset:new F.Point(15,-6),segmentOrientation:F.Link.OrientMinus90,alignmentFocus:F.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new F.Binding("fill","color"),new F.Binding("visible","dir",(function(e){return 2===e})),new F.Binding("width","thickness",(function(e){return 7+3*e})),new F.Binding("height","thickness",(function(e){return 7+3*e})),new F.Binding("segmentOffset","thickness",(function(e){return new F.Point(-15,4+1.5*e)}))),e(F.TextBlock,{alignmentFocus:new F.Spot(0,1,-4,0),editable:!0},new F.Binding("text").makeTwoWay(),new F.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(F.Adornment,e(F.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:D(2)},new F.Binding("pathPattern","thickness",D)),v({alignmentFocus:new F.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",k(),j(),e("ContextMenuButton",e(F.Panel,"Horizontal",S(0),S(1),S(2))),e("ContextMenuButton",e(F.Panel,"Horizontal",e(F.Panel,"Spot",b(!1),R(F.Spot.Top,!1),R(F.Spot.Left,!1),R(F.Spot.Right,!1),R(F.Spot.Bottom,!1)),e(F.Panel,"Spot",{margin:new F.Margin(0,0,0,2)},b(!0),R(F.Spot.Top,!0),R(F.Spot.Left,!0),R(F.Spot.Right,!0),R(F.Spot.Bottom,!0))))),new F.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(F.Link,{locationSpot:F.Spot.Center,selectionAdornmentTemplate:e(F.Adornment,"Link",{locationSpot:F.Spot.Center},e(F.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(F.Shape,{toArrow:"Standard",stroke:null}))},{routing:F.Link.AvoidsNodes,curve:F.Link.JumpOver,corner:5,toShortLength:4},new F.Binding("points"),e(F.Shape,{isPanelMain:!0,strokeWidth:2}),e(F.Shape,{toArrow:"Standard",stroke:null})),model:new F.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(G()(F.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(F.Node,"Auto",{locationSpot:F.Spot.Center},new F.Binding("location","location",F.Point.parse).makeTwoWay(F.Point.stringify),e(F.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 F.Binding("stroke").makeTwoWay(),new F.Binding("fill").makeTwoWay(),new F.Binding("figure")),e(F.TextBlock,{margin:new F.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new F.Size(16,16),maxSize:new F.Size(10,NaN),textAlign:"center",editable:!0},new F.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(F.Panel,"Grid",e(F.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(F.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,f.jsx)("div",{ref:s})]})]}),(0,f.jsx)("div",{className:"tr",children:(0,f.jsx)(k.ZP,{size:"large",onClick:p,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},W=t(5112),V=t(94001),X=W.ZP.Group,q={margin:"0 8px"},_=function(e){var n=e.callback,t=e.onCancel;return(0,f.jsxs)(C.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){n(e)},children:[(0,f.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,f.jsx)("span",{style:q,children:"单元格数:"}),(0,f.jsx)("span",{style:q,children:"行数"}),(0,f.jsx)(C.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,f.jsx)(V.Z,{})}),(0,f.jsx)("span",{style:q,children:"列数"}),(0,f.jsx)(C.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,f.jsx)(V.Z,{})})]}),(0,f.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,f.jsx)("span",{style:q,children:"对齐方式:"}),(0,f.jsx)(C.Z.Item,{name:"align",children:(0,f.jsxs)(X,{children:[(0,f.jsx)(W.ZP,{value:"default",children:(0,f.jsx)("i",{className:"fa fa-align-justify"})}),(0,f.jsx)(W.ZP,{value:"left",children:(0,f.jsx)("i",{className:"fa fa-align-left"})}),(0,f.jsx)(W.ZP,{value:"center",children:(0,f.jsx)("i",{className:"fa fa-align-center"})}),(0,f.jsx)(W.ZP,{value:"right",children:(0,f.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,f.jsxs)("div",{className:"flex-container flex-end",children:[(0,f.jsx)(k.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,f.jsx)(k.ZP,{type:"ghost",onClick:t,children:"取消"})]})]})},$=t(78673),ee=t(57932),ne=t.n(ee),te=(0,l.forwardRef)((function(e,n){var t=e.use3d,i=e.width,s=e.height,r=e.callback,o=(e.showSaveButton,(0,l.useRef)()),c=(0,l.useRef)(),u=(0,l.useState)(!1),d=a()(u,2),h=d[0],g=d[1],p=(0,l.useRef)({id:o,appName:"graphing",width:i||1e3,height:s||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(ne())(p.current,!0),window.onload=function(){c.current.inject("applet_container")}}),[]);var A=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,l.useEffect)((function(){p.current.appName=h?"3D":"graphing",c.current.inject("applet_container")}),[h]),(0,l.useEffect)((function(){g(t)}),[t]),(0,l.useImperativeHandle)(n,(function(){return{getImgData:A}})),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:o}),(0,f.jsxs)(D.Z,{align:"middle",children:[(0,f.jsx)(L.Z,{flex:1,children:(0,f.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:h,onChange:function(e){return g(e)}})}),(0,f.jsx)(L.Z,{children:(0,f.jsx)(k.ZP,{size:"large",onClick:A,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=t(36761),se=t(92723),re=t(8591),ae="link",oe="upload-image",ce="add-flowchart",le="draw-image",ue="code-block",de="add-table",he="------------",ge={default:he,left:":".concat(he),center:":".concat(he,":"),right:"".concat(he,":")},fe=t(77818);var pe="@▁▁@",Ae=["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 me(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var Ie=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",xe=c()(c()({},Ie+"-B","bold"),Ie+"-I","italic"),ve=c()(c()(c()(c()(c()(c()(c()(c()({},ae,"添加链接"),ue,"添加代码块"),oe,"添加图片"),le,"添加画图"),ce,"插入流程图"),de,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Ee=function(e){var n=e.defaultValue,t=void 0===n?"":n,i=e.onChange,r=e.width,o=void 0===r?"100%":r,u=e.height,A=void 0===u?400:u,m=e.miniToolbar,I=void 0!==m&&m,x=e.isFocus,C=void 0!==x&&x,w=e.watch,k=e.insertTemp,Q=e.mode,D=void 0===Q?"markdown":Q,S=e.id,R=void 0===S?"markdown-editor-id":S,P=e.showResizeBar,M=void 0!==P&&P,H=e.noStorage,N=void 0!==H&&H,G=e.showNullButton,F=void 0!==G&&G,O=e.showNullProgramButton,J=void 0!==O&&O,T=e.hidetoolBar,L=void 0!==T&&T,U=e.fullScreen,Y=void 0!==U&&U,z=e.onBlur,W=e.onCMBeforeChange,V=e.onFullScreen,X=e.className,q=void 0===X?"":X,$=e.disablePaste,ee=void 0!==$&&$,ne=e.disabled,he=void 0!==ne&&ne,Ie=e.disabledFill,Ee=void 0!==Ie&&Ie,Ce=e.placeholder,we=void 0===Ce?"":Ce,ke=e.values,Qe=void 0===ke?"":ke,ye=e.extraUse,je=(0,l.useState)(null),Be=a()(je,2),De=Be[0],Se=Be[1],be=(0,l.useState)(t),Re=a()(be,2),Pe=Re[0],Me=Re[1],He=(0,l.useState)(w),Ne=a()(He,2),Ge=Ne[0],Fe=Ne[1],Oe=(0,l.useState)(Y),Je=a()(Oe,2),Te=Je[0],Ze=Je[1],Le=(0,l.useState)(""),Ue=a()(Le,2),Ye=Ue[0],ze=Ue[1],Ke=(0,l.useState)(0),We=a()(Ke,2),Ve=We[0],Xe=We[1],qe=(0,l.useState)(A),_e=a()(qe,2),$e=_e[0],en=_e[1],nn=(0,l.useState)(!1),tn=a()(nn,2),sn=(tn[0],tn[1]),rn=(0,l.useState)(0),an=a()(rn,2),on=an[0],cn=an[1],ln=(0,l.useState)(0),un=a()(ln,2),dn=un[0],hn=un[1],gn=(0,l.useRef)(),fn=(0,l.useRef)(),pn=(0,l.useRef)(),An=(0,l.useRef)();(0,l.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Me(Qe),null==De||De.setValue(Qe),window.scrollTo(0,e)}),[Qe]),(0,l.useEffect)((function(){null==V||V(Te)}),[Te]),(0,l.useEffect)((function(){if(gn.current){var e=function(e,t){if(!ee){var i=t.clipboardData;if(i){var s=i.types.toString(),r=i.items;if("Files"===s||i.types.indexOf("Files")>-1){if(t.preventDefault(),"stex"==D)return;try{var a,o=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(o=r[0]);var c=o.getAsFile(),l=c.name.split(".").pop();(0,B.I)(c,(function(e){var t,i,s;e.id?(null==c||null===(t=c.type)||void 0===t?void 0:t.indexOf("image"))>-1?n.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):(null==c||null===(i=c.type)||void 0===i?void 0:i.indexOf("video"))>-1?n.replaceSelection('')):(null==c||null===(s=c.type)||void 0===s?void 0:s.indexOf("pdf"))>-1?n.replaceSelection('').concat(c.name,"")):Ae.includes(l)?n.replaceSelection('').concat(c.name,"")):n.replaceSelection("[".concat(c.name,"](").concat(se.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){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}t.preventDefault()},n=d().fromTextArea(gn.current,{mode:D,lineNumbers:!I,lineWrapping:!0,value:t,autoCloseTags:!0,autoCloseBrackets:!0});return n.on("keyup",(function(e,t){8===t.keyCode&&(""==e.getValue()?n.setOption("placeholder",we):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(),s=t.getLine(i.line),r=s.charAt(i.ch-1),a=s.lastIndexOf("@▁@",i.ch),o=s.lastIndexOf("@▁▁@",i.ch),c=a>o?a:o,l=a>o?3:4;if(-1===pe.indexOf(r))return null;if(console.log("change1:",n,e,s,i,c,a,o,r),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()}})),C&&n.focus(),n.on("paste",e),he&&n.on("beforeChange",(function(e,n){"paste"!==n.origin&&"+input"!==n.origin||n.cancel()})),Se(n),function(){n.off("paste",e)}}}),[]);var mn=(0,l.useCallback)((function(){fn.current}),[$e,fn,Te]);(0,l.useEffect)((function(){if(De){var e=function(){var e=new h.Z((function(e){var n,t=s()(e);try{for(t.s();!(n=t.n()).done;){var i=n.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(mn(),De.setSize("100%","100%"),De.refresh())}}catch(e){t.e(e)}finally{t.f()}}));return e.observe(gn.current.parentElement),e}();return function(){var n,t;null!==(n=gn.current)&&void 0!==n&&n.parentElement&&e.unobserve(null===(t=gn.current)||void 0===t?void 0:t.parentElement)}}}),[De,mn]),(0,l.useEffect)((function(){if(De){for(var e=[],n=function(){var n=a()(i[t],2),s=n[0],r=n[1],o=c()({},s,(function(){In(r)}));e.push(o),De.addKeyMap(o)},t=0,i=Object.entries(xe);t0){var e=(new Date).getTime(),n=window.sessionStorage.getItem(R);e>=Ve+1e4&&(!n||n!==Pe)&&(window.sessionStorage.setItem(R,Pe),sn(!0))}}),1e4),(0,l.useEffect)((function(){Fe(w)}),[De,w]),(0,l.useEffect)((function(){De&&C&&De.focus()}),[De,C]),(0,l.useEffect)((function(){if(Ge&&De){var e=function(e){var n=e.target;if(An.current){var t=n.scrollTop/n.scrollHeight;An.current.scrollTop=An.current.scrollHeight*t}},n=De.getScrollerElement();return n.addEventListener("scroll",e),function(){n.removeEventListener("scroll",e)}}}),[De,Ge]),(0,l.useEffect)((function(){if(De&&W){var e=function(e,n){W(e,n)};return De.on("beforeChange",e),function(){De.off("beforeChange",e)}}}),[De,W]),(0,l.useEffect)((function(){if(De&&z){var e=function(){z(De.getValue())};return De.on("blur",e),function(){De.off("blur",e)}}}),[De,z]),(0,l.useEffect)((function(){if(De){var e=function(e,n){var t=e.getValue();Me(t),Xe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(J?i(t,wn(t)):i(t))};return De.on("change",e),function(){De.off("change",e)}}}),[De,i]),(0,l.useEffect)((function(){if(De)if(null==t)De.setValue(""),Me("");else{var e=window.scrollY||window.pageYOffset;t!==De.getValue()&&(De.setValue(t),Me(t),De.setCursor(he?1:De.lineCount(),0),window.scrollTo(0,e))}}),[De,t]);var In=(0,l.useCallback)((function(e){var n=De.getCursor(),t=De.getSelection(),i=t.split("\n");switch(e){case"bold":return De.replaceSelection("**"+t+"**"),""===t&&De.setCursor(n.line,n.ch+2),De.focus();case"italic":return De.replaceSelection("*"+t+"*"),""===t&&De.setCursor(n.line,n.ch+1),De.focus();case"code":return De.replaceSelection("`"+t+"`"),""===t&&De.setCursor(n.line,n.ch+1),De.focus();case"inline-latex":return ze("inline-latex"),De.focus();case"latex":return De.replaceSelection("```latex\n"+t+"\n```"),De.setCursor(n.line+1,t.length+1),De.focus();case"line-break":return De.replaceSelection("
      \n"),De.focus();case"list-ul":return""===t?De.replaceSelection("- "+t):De.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),De.focus();case"list-ol":return""===t?De.replaceSelection("1. "+t):De.replaceSelection(i.map((function(e,n){return""===e?"":"".concat(n+1,". ").concat(e)})).join("\n")),De.focus();case"add-null-ch":return""===t&&De.setCursor(n.line,n.ch),De.replaceSelection("▁"),De.focus();case"add-signal":return""===t&&De.setCursor(n.line,n.ch),De.replaceSelection("@▁@"),De.focus();case"add-multiple":return""===t&&De.setCursor(n.line,n.ch),De.replaceSelection(pe),De.focus();case"inster-template-1":return""===t&&De.setCursor(n.line,n.ch),De.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),De.focus();case"eraser":return De.setValue(""),De.focus();case"trigger-watch":return Fe(!Ge),De.focus();case"trigger-full-screen":return Ze(!Te),De.focus();case ae:return void ze(ae);case ue:return void ze(ue);case oe:return void ze(oe);case le:return void ze(le);case"maths-latex":return void ze("maths-latex");case ce:return void ze(ce);case de:return void ze(de);default:throw new Error}}),[De,Ge,Te]),xn=(0,l.useCallback)((function(e,n){var t,i,s,r,a;switch(ze(""),Ye){case ae:var o=e.title,c=e.link;return De.replaceSelection("[".concat(o,"](").concat(c,")")),De.focus();case ue:var l=e.language,u=e.content;return De.replaceSelection(["```"+l,u,"```"].join("\n")),De.focus();case"maths-latex":for(var d=atob(e),h=new Uint8Array(d.length),g=0;g-1||null==m||!m.type?A?De.replaceSelection("![ ".concat(A," ]( ").concat(p,' "').concat(A,'" )')):De.replaceSelection("![,](".concat(p,")")):(null==m||null===(r=m.type)||void 0===r?void 0:r.indexOf("video"))>-1?De.replaceSelection('')):(null==m||null===(a=m.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?De.replaceSelection('').concat(m.name,"")):Ae.includes(I)?De.replaceSelection('').concat(m.name,"")):De.replaceSelection("[".concat(m.name,"](").concat(se.Z.API_SERVER).concat(p,")")),De.focus();case de:for(var x=e.row,v=e.col,E=e.align,C="\n",w=0;w300&&(n=300),en(A+n+"px")}},i=pn.current,s=!1,r=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)}}}),[De,pn]),(0,l.useEffect)((function(){en(A)}),[A]);var Cn={width:me(o),height:me($e)},wn=((0,l.useMemo)((function(){if(Ve){var e=new Date(Ve),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}),[Ve]),function(e){var n=[];if(J){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,t,i){n.push({multiLine:!("@▁@"===e)})}))}return n});(0,l.useEffect)((function(){ve[Ye]&&Ye!==le&&Ye!==ce&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],n=window.innerWidth/2-e.offsetWidth/2,t=window.innerHeight/2-e.offsetHeight/2;cn(n),hn(t)}),0)}),[Ye]);var kn=function(e,n,t,i){var s=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&t>e||e>r-20&&tn||n>s-20&&i0&&(0,o.jsx)("div",{className:a,children:t.map((function(e,n){return(0,o.jsxs)("div",{onClick:e.click,children:[e.name,e.sign?(0,o.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFG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M36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",width:39}):null]},n)}))}),h]}),i&&(0,o.jsx)("img",{style:{marginTop:33,marginRight:38},src:i,width:l})]})})},l=t(79800),u=t.n(l),d="row___aXJjm",h="title___HUKL0",g="tagsWrap___XB2W3",f="action___VdHb1",p="bar___t1kKC",A="tag___V7Eft",m="name___Hk1Ip",I="num___xQpcH",x="active___XryTX",v="tagsBorderWrap___OMxjs",E=t(92310),C=t.n(E),w=t(89392),k=function(e){var n=e.dataSource,t=void 0===n?[]:n,s=e.value,r=e.onChange,a=e.onTitleChange,c=e.className,l=e.title,E=e.titleWidth,k=void 0===E?41:E,Q=e.style,y=void 0===Q?{}:Q,j=e.fontColor,B=void 0===j?"#6A7283":j,D=e.showCount,S=(0,i.useState)(0),b=u()(S,2),R=b[0],P=b[1],M=(0,i.useState)(!1),H=u()(M,2),N=H[0],G=H[1],F=(0,i.useRef)(null),O=(0,i.useRef)(null);return(0,i.useEffect)((function(){var e;0!==t.length&&((null==F||null===(e=F.current)||void 0===e?void 0:e.clientHeight)>97?P(1):P(0));0===t.length&&P(0),G(!1)}),[t]),(0,o.jsxs)("div",{className:C()(d,c),style:y,children:[(0,o.jsx)("div",{onClick:(0,w.throttle)((function(){return null==a?void 0:a()}),2e3),style:{width:k,marginTop:N?12:4},className:"".concat(h," ").concat(a?"current":""),children:l}),(0,o.jsxs)("div",{className:N?"".concat(g," ").concat(v):g,children:[(0,o.jsx)("div",{className:p,ref:O,style:R>0?{height:1===R?97:"auto",overflow:1===R?"hidden":"auto",paddingRight:55}:{paddingRight:0},children:(0,o.jsx)("div",{className:A,ref:F,children:null==t?void 0:t.map((function(e){return(0,o.jsxs)("span",{onClick:function(){return r(e.id)},style:{color:B},className:s===e.id?x:"",children:[(0,o.jsx)("span",{title:e.name,className:m,children:e.name}),!!D&&(0,o.jsx)("span",{className:I,children:e.count})]},e.id)}))})}),!!R&&(0,o.jsx)(i.Fragment,{children:1===R?(0,o.jsxs)("div",{onClick:function(){var e;P(2),(null==F||null===(e=F.current)||void 0===e?void 0:e.clientHeight)>245?G(!0):G(!1)},className:f,children:["展开",(0,o.jsx)("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})]}):(0,o.jsxs)("div",{onClick:function(){O.current.scrollTop=0,P(1),G(!1)},className:f,children:["收起",(0,o.jsx)("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})]})})]})]})},Q="tabs___GTqPV",y="active___F26E8",j=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,s=e.onChange,r=e.className,a=e.style,c=void 0===a?{}:a;return(0,o.jsx)("div",{style:c,className:C()(Q,r),children:t.map((function(e){return(0,o.jsx)("span",{onClick:function(){return s(e.id)},className:i===e.id?y:"",children:e.name},e.id)}))})},B="input___PW2zI",D="dropdown___vSy8B",S="menu___NiyBu",b="text___Grueu",R="b1___ZKryM",P="b2___aKyGa",M=t(92832),H=function(e){var n,t=e.dataSource,s=void 0===t?[]:t,r=e.value,a=void 0===r?"":r,c=e.onChange,l=e.onInputChange,d=void 0===l?function(){}:l,h=e.className,g=e.style,f=void 0===g?{}:g,p=e.placeholder,A=(e.allowClear,(0,i.useState)("")),m=u()(A,2),I=m[0],x=m[1],v=(0,i.useState)(""),E=u()(v,2),w=E[0],k=E[1];(0,i.useEffect)((function(){var e,n=a;null!==(e=JSON.stringify(a))&&void 0!==e&&e.includes("{")&&(x(a.id),n=a.value||"");try{k(decodeURIComponent(n||""))}catch(e){k(decodeURIComponent(n||""))}}),[a]);var Q=function(){c(encodeURIComponent(w),I||null)};return(0,o.jsxs)("div",{className:C()(B,h),style:f,children:[!!s.length&&(0,o.jsxs)("div",{className:D,children:[(0,o.jsxs)("div",{className:b,children:[null===(n=s.find((function(e){return e.id===I})))||void 0===n?void 0:n.name,(0,o.jsx)("i",{className:"iconfont icon-zhankai4"}),(0,o.jsx)("b",{className:R}),(0,o.jsx)("b",{className:P})]}),(0,o.jsx)("div",{className:S,children:s.map((function(e,n){return(0,o.jsx)("div",{onClick:function(){var n;(n=e.id)!==I&&(x(n),c(encodeURIComponent(w),n))},children:e.name},n)}))})]}),(0,o.jsx)(M.Z,{onPressEnter:Q,value:w,onChange:function(e){k(e.target.value),d(encodeURIComponent(e.target.value),I||null)},bordered:!1,placeholder:p}),(0,o.jsx)("i",{onClick:Q,className:"iconfont icon-sousuo9 font14 pl10 current"})]})},N="quickPager___GM30J",G="disabled___Ozc8I",F=function(e){var n=e.value,t=e.onChange,i=e.className,s=e.total,r=e.pageSize,a=e.style,c=void 0===a?{}:a,l=n<2,u=n>=Math.ceil(s/r);return s<=r?(0,o.jsx)(o.Fragment,{}):(0,o.jsxs)("div",{className:C()(N,i),style:c,children:[(0,o.jsx)("div",{onClick:function(){l||t(n-1,"prev")},className:l?G:"",children:"上一页"}),(0,o.jsx)("div",{onClick:function(){u||t(n+1,"next")},className:u?G:"",children:"下一页"})]})},O="list___oOsiS",J="wrap___G6T7F",T="lockWrap___Rl79E",Z="li___oZZ7l",L="cover___b2bYW",U="img___IQX7w",Y="sign___HkT6C",z="name___SsJx8",K="e___TMqq0",W="tags___bcjyo",V="rate___YACg7",X=t(71418),q=t(6848),_=t(31395),$=t(92723),ee=t(21082),ne=t(96908),te=t(57177),ie=t(81378),se=t(54313),re=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,s=e.col,r=void 0===s?4:s,a=e.right,c=e.bottom,l=void 0===c?23:c,u=e.precision,d=void 0===u?0:u,h=e.wrapWidth,g=void 0===h?1200:h,f=e.trackEventItems,p=e.loading,A=Math.floor((g-(r-1)*a)/r);return(0,o.jsx)(X.Z,{spinning:p,children:(0,o.jsxs)("div",{className:C()(O,n),children:[!!i.length&&i.map((function(e,n){var t=e.name,i=e.id,s=e.identifier,c=e.power,u=(e.cover_image_id,e.pic);return(0,o.jsxs)("div",{className:J,style:{width:A,marginRight:(1+n)%r==0?0:a+d,marginBottom:l},children:[(0,o.jsxs)("a",{target:"_blank",href:"/shixuns/".concat(s,"/challenges"),className:Z,onClick:function(e){e.preventDefault(),f&&(0,ee.L9)([f]),c&&(0,ee.xg)("/shixuns/".concat(s,"/challenges"))},children:[(0,o.jsxs)("div",{className:U,children:[(0,o.jsx)("img",{className:L,src:"".concat(u)}),e.is_jupyter&&(0,o.jsx)("img",{className:Y,src:ne}),e.is_jupyter_lab&&(0,o.jsx)("img",{className:Y,src:te}),e.is_unity_3d&&(0,o.jsx)("img",{className:Y,src:ie})]}),(0,o.jsx)("div",{className:z,children:(0,o.jsx)(q.Z,{title:t||"实践项目名称-未填写",children:(0,o.jsx)("span",{className:K,children:t||"实践项目名称-未填写"})})}),(0,o.jsxs)("div",{className:W,children:[(0,o.jsx)(q.Z,{placement:"bottom",title:"关卡数",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),(0,o.jsx)("span",{children:e.challenges_count})]})}),!!e.myshixuns_count&&(0,o.jsx)(q.Z,{placement:"bottom",title:"学习人数",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-chengyuan font14 mr2"}),(0,o.jsx)("span",{children:e.myshixuns_count})]})}),(0,o.jsx)(q.Z,{placement:"bottom",title:"难度等级",children:(0,o.jsx)("span",{children:(0,o.jsx)("span",{children:e.level})})}),(0,o.jsxs)("div",{className:V,children:[(0,o.jsx)(_.Z,{allowHalf:!0,disabled:!0,defaultValue:e.score_info}),(0,o.jsxs)("span",{children:[" ",e.score_info?"".concat(e.score_info,"分"):"5分"]})]})]})]}),!c&&(0,o.jsxs)("div",{className:T,children:[(0,o.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,o.jsx)("span",{className:"mt15 font16 c-white",children:"定向开放内容,需要授权"})]})]},i)})),!i.length&&(0,o.jsx)(se.Z,{})]})})},ae="list___jb2Ay",oe="wrap___VsQDr",ce="li___IxCLC",le="cover___Mu8wr",ue="img___IpFLA",de="movebq___mF7wt",he="bq___Bil0T",ge="sign___DXJ4d",fe="name___l7FoJ",pe="e___pXQUG",Ae="unit___wCIFR",me="tags___w_Mil",Ie=t(93697),xe=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,s=e.col,r=void 0===s?4:s,a=e.right,c=e.bottom,l=void 0===c?23:c,u=e.precision,d=void 0===u?0:u,h=e.wrapWidth,g=void 0===h?1200:h,f=e.trackEventItems,p=e.loading,A=e.onRemove,m=void 0===A?function(){}:A,I=e.isCurrent,x=void 0===I||I,v=e.showAlias,E=void 0!==v&&v,w=Math.floor((g-(r-1)*a)/r),k=[{name:"推荐自学",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101计划",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"国家一流",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"省级一流",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"精品课程",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"军队一流",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"}];return(0,o.jsx)(X.Z,{spinning:p,children:(0,o.jsxs)("div",{className:C()(ae,n),children:[!(null==i||!i.length)&&(null==i?void 0:i.map((function(e,n){var t,i=e.name,s=e.id,c=e.identifier,u=(e.featured,e.school_name),h=e.image_url;e.excellent,e.is_plan;return(0,o.jsx)("div",{className:oe,style:{width:w,marginRight:(1+n)%r==0?0:a+d,marginBottom:l},children:(0,o.jsxs)("a",{className:ce,onClick:function(e){e.preventDefault(),e.stopPropagation(),f&&(0,ee.L9)([f]),(0,ee.xg)("/paths/".concat(c))},children:[(0,o.jsxs)("div",{className:ue,children:[(0,o.jsx)("img",{className:le,src:"".concat(h)}),x&&(0,Ie.bg)()&&(null==e?void 0:e.studying)&&(0,o.jsxs)("div",{className:"".concat(de," user-path-items"),onClick:function(n){n.stopPropagation(),m(e)},children:[(0,o.jsx)("i",{className:"iconfont icon-yichu1 mr5 c-red"}),(0,o.jsx)("span",{className:"c-red",children:"移除"})]}),null==e||null===(t=e.subject_tags)||void 0===t?void 0:t.map((function(e,n){var t;if(0===n){var i,s=null===(i=k.find((function(n){return n.name==e})))||void 0===i?void 0:i.swimg;return(0,o.jsx)("img",{className:ge,src:s,style:{left:"-4px"}})}var r=null===(t=k.find((function(n){return n.name==e})))||void 0===t?void 0:t.ptimg;return(0,o.jsx)("img",{className:ge,src:r,style:{left:"".concat(48+52*(n-1)+2*n,"px")}})})),(0,o.jsx)("div",{style:{position:"absolute",top:"150px",left:"4px"},children:(null==e?void 0:e.excellent)&&(0,o.jsx)("div",{className:he,children:"开放课程"})})]}),(0,o.jsx)("div",{className:fe,children:(0,o.jsx)(q.Z,{title:E&&null!=e&&e.excellent_alias_name?(0,o.jsxs)("span",{children:["课程原名:".concat(i),(0,o.jsx)("br",{}),(0,o.jsx)("span",{children:"课程别名:".concat(null==e?void 0:e.excellent_alias_name)})]}):i,children:(0,o.jsx)("span",{className:pe,children:E&&(null==e?void 0:e.excellent_alias_name)||i})})}),(0,o.jsx)(q.Z,{title:"发布单位:".concat(u),children:(0,o.jsxs)("div",{className:Ae,children:[(0,o.jsx)("i",{className:"iconfont icon-danwei1 font14 mr3"}),u]})}),(0,o.jsx)("div",{className:me,children:(0,o.jsxs)("div",{children:[(0,o.jsx)(q.Z,{placement:"bottom",title:"章节数",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),(0,o.jsx)("span",{children:e.stages_count})]})}),(0,o.jsx)(q.Z,{placement:"bottom",title:"学习人数",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-chengyuan font14 mr3"}),(0,o.jsx)("span",{children:e.members_count})]})})]})})]})},s)}))),!i.length&&(0,o.jsx)(se.Z,{})]})})},ve={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Ee=function(e){var n=e.className,t=e.dataSource,i=void 0===t?[]:t,s=e.col,r=void 0===s?4:s,a=e.right,c=e.bottom,l=void 0===c?23:c,u=e.precision,d=void 0===u?0:u,h=e.wrapWidth,g=void 0===h?1200:h,f=e.trackEventItems,p=e.loading,A=Math.floor((g-(r-1)*a)/r);return(0,o.jsx)(X.Z,{spinning:p,children:(0,o.jsxs)("div",{className:C()(ve.list,n),children:[!!i.length&&i.map((function(e,n){var t=e.subject_identifier,i=e.id,s=(e.identifier,e.power,0!=e.is_public&&e.is_public);return(0,o.jsxs)("div",{className:ve.wrap,style:{width:A,marginRight:(1+n)%r==0?0:a+d,marginBottom:l},children:[(0,o.jsxs)("a",{className:ve.li,onClick:function(n){n.preventDefault(),(0,ee.Wn)(null==e?void 0:e.forbid_visit_info)||(f&&(0,ee.L9)([f]),(0,ee.xg)(e.first_category_url))},children:[(0,o.jsxs)("div",{className:ve.top,children:[(0,o.jsx)(q.Z,{title:e.name,children:(0,o.jsx)("div",{className:ve.name,children:e.name})}),(0,o.jsx)("img",{className:ve.img,src:$.Z.IMG_SERVER+"/images/"+e.avatar_url}),(0,o.jsx)("div",{className:ve.text,title:e.creator,children:e.creator}),t&&(0,o.jsxs)("div",{className:ve.btns,children:[(0,o.jsx)("div",{children:"开放课程"}),(0,o.jsx)("aside",{children:"开放课堂"})]}),s&&(0,o.jsx)("div",{className:ve.sign,children:"公开"})]}),(0,o.jsxs)("div",{className:ve.bottom,children:[e.visits>0&&(0,o.jsx)(q.Z,{title:"访问量",placement:"bottom",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-liulanyan"}),(0,o.jsx)("span",{children:e.visits})]})}),e.course_members_count>0&&(0,o.jsx)(q.Z,{title:"成员",placement:"bottom",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-chengyuan"}),e.course_members_count]})}),e.tasks_count>0&&(0,o.jsx)(q.Z,{title:"作业",placement:"bottom",children:(0,o.jsxs)("span",{children:[(0,o.jsx)("i",{className:"iconfont icon-zuoye"}),e.tasks_count]})}),e.is_end?(0,o.jsx)("div",{style:{color:"#6B758B"},children:"已结束"}):(0,o.jsx)("div",{style:{color:"#00B187"},children:"进行中"})]})]}),!e.is_accessible&&(0,o.jsxs)("div",{className:ve.lockWrap,children:[(0,o.jsx)("img",{src:"".concat($.Z.IMG_SERVER,"/images/educoder/icon/lockclose.svg")}),(0,o.jsx)("span",{className:"mt15 font16 c-white",children:"非课堂成员不可进入"})]})]},i)})),!i.length&&(0,o.jsx)(se.Z,{})]})})},Ce={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},we=t(5296),ke=function(e){var n=e.dataSource,t=void 0===n?[]:n,i=e.value,s=e.onChange,r=e.className,a=e.style,c=void 0===a?{}:a,l=e.tabBarExtraContent;return(0,o.jsxs)("div",{className:C()(Ce.tabs,r),style:c,children:[(0,o.jsx)("div",{className:Ce.tabsWrap,children:t.map((function(e,n){return(0,o.jsxs)("aside",{className:Ce.tab,onClick:function(){s(e.id),e.link&&we.history.push(e.link)},children:[(0,o.jsx)("div",{className:i===e.id?Ce.active:"",children:e.name}),null==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,o.jsxs)("span",{children:["(",null==e?void 0:e.total,")"]}),void 0!==(null==e?void 0:e.resetCount)&&void 0!==(null==e?void 0:e.total)&&(0,o.jsx)(q.Z,{title:null!=(null==e?void 0:e.tip)?null==e?void 0:e.tip:"",children:(0,o.jsxs)("span",{style:{color:"#9096A3"},children:["(",(0,o.jsx)("span",{style:{color:"#000"},children:null==e?void 0:e.resetCount}),"/",(0,o.jsx)("span",{children:null==e?void 0:e.total}),")"]})})]},n)}))}),(0,o.jsx)("div",{className:Ce.tabBar,children:l})]})},Qe=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,s=e.children;return(0,o.jsx)("div",{className:C()(n),style:i,children:s})},ye="orderWrap___ZfyGX",je="orderIconWrap___XTB_O",Be="orderAsc___KWHmA",De="orderDesc___rHdbB",Se="active___a7eSP",be="cursorPointer___gs9kL",Re="orderTextWrap___teAKn",Pe=t(38854),Me=t(20834),He=[{id:"updated_at",name:"最新动态"},{id:"created_at",name:"最新创建"},{id:"name",name:"名称排序"}],Ne=function(e){var n,t=e.sortValue,i=e.dropValue,s=e.className,r=e.onSort,a=e.onDrop,c=e.dataSource,l=void 0===c?He:c;return(0,o.jsxs)("div",{className:C()(ye,s),children:[(0,o.jsx)(Pe.Z,{dropdownRender:function(){return(0,o.jsx)(Me.Z,{children:l.map((function(e,n){return(0,o.jsx)(Me.Z.Item,{onClick:function(){return a(e.id)},children:e.name},n)}))})},children:(0,o.jsx)("span",{className:Re,children:null===(n=l.find((function(e){return i===e.id})))||void 0===n?void 0:n.name})}),(0,o.jsxs)("span",{className:je,children:[(0,o.jsx)("span",{className:Be,children:(0,o.jsx)("i",{className:"asc"===t?"iconfont icon-sanjiaoxing-up font12 ".concat(be," ").concat(Se):"iconfont icon-sanjiaoxing-up font12 ".concat(be),onClick:function(){return r("asc"===t?"desc":"asc")}})}),(0,o.jsx)("span",{className:De,children:(0,o.jsx)("i",{className:"desc"===t?"iconfont icon-sanjiaoxing-down font12 ".concat(be," ").concat(Se):"iconfont icon-sanjiaoxing-down font12 ".concat(be),onClick:function(){return r("asc"===t?"desc":"asc")}})})]})]})},Ge=t(82242),Fe=t.n(Ge),Oe=t(7557),Je=t.n(Oe),Te=t(41498),Ze=t.n(Te),Le=t(39647),Ue=t.n(Le),Ye={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},ze=t(3113),Ke=["className","style","children","loading","openLoading","onClick","size","shape"],We=function(e){var n=e.className,t=e.style,s=e.children,r=e.loading,a=void 0!==r&&r,c=e.openLoading,l=e.onClick,d=void 0===l?function(){}:l,h=e.size,g=void 0===h?"middle":h,f=e.shape,p=void 0===f?"round":f,A=Ue()(e,Ke),m=(0,i.useState)(!1),I=u()(m,2),x=I[0],v=I[1];return(0,o.jsx)(ze.ZP,Fe()(Fe()({onClick:(0,w.throttle)(function(){var e=Ze()(Je()().mark((function e(n){return Je()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c&&v(!0),e.prev=1,e.next=4,d(n);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),console.log("error",e.t0);case 9:c&&v(!1);case 10:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(n){return e.apply(this,arguments)}}(),2e3,{leading:!0,trailing:!1}),className:C()(Ye.btn,Ye["".concat(g,"-").concat(p)],n),style:t,size:g,shape:p,loading:x||a},A),{},{children:s}))},Ve="head___ghH72",Xe="node___mjPEy",qe=function(e){var n=e.className,t=e.style,i=e.children,s=void 0===i?null:i,r=e.onClick,a=e.title;return(0,o.jsxs)("div",{className:C()(Ve,n),style:t,children:[(0,o.jsxs)("span",{className:"primary-hover",onClick:r,children:[(0,o.jsx)("i",{className:"iconfont icon-fanhui2 font12"}),"返回"]}),(0,o.jsx)("b",{title:a,children:a}),(0,o.jsx)("div",{className:Xe,children:s})]})},_e="btns___sNgTb",$e="confirm___Ozirl",en="cancel___aiq1I",nn=function(e){var n=e.confirmShow,t=void 0===n||n,i=e.confirmTitle,s=e.confirmClick,r=e.cancelShow,a=void 0===r||r,c=e.cancelTitle,l=e.cancelClick,u=e.className,d=e.style,h=e.confirmLoading,g=void 0!==h&&h;return(0,o.jsxs)("div",{className:C()(_e,u),style:d,children:[t&&(0,o.jsx)(ze.ZP,{loading:g,onClick:s,type:"primary",className:$e,children:i}),a&&(0,o.jsx)(ze.ZP,{onClick:l,className:en,children:c})]})},tn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},sn=function(e){var n=e.className,t=e.style,i=void 0===t?{}:t,s=e.LeftContent,r=e.children,a=e.RightContent;return(0,o.jsx)("div",{className:C()(tn.fixedBottom,n),style:i,children:(0,o.jsxs)("div",{className:tn.wrap,children:[(0,o.jsx)("div",{className:tn.left,children:s}),(0,o.jsx)("div",{className:tn.center,children:r}),(0,o.jsx)("div",{className:tn.right,children:a})]})})},rn="crumbs___V41Oe",an="hover___bEIVd",on=function(e){var n=e.className,t=e.style,s=void 0===t?{}:t,r=e.dataSource,a=void 0===r?[]:r;return(0,o.jsx)("div",{className:C()(rn,n),style:s,children:a.map((function(e,n){return n"," "]})]},n):(0,o.jsx)("span",{style:{color:"#5F6368"},children:e.name},n)}))})},cn=t(31797),ln=["onChange"],un=cn.Z.Countdown,dn=function(e){var n=e.onChange,t=Ue()(e,ln),s=(0,i.useState)(null),r=u()(s,2),a=r[0],c=r[1];(0,i.useEffect)((function(){"number"==typeof a&&a>=0&&n(a)}),[a]);return(0,o.jsx)(un,Fe()(Fe()({},t),{},{onChange:function(e){var n=Math.floor(e/1e3);c(n)}}))}},38060:function(e,n,t){"use strict";t.d(n,{Z:function(){return S}});var i=t(7557),s=t.n(i),r=t(41498),a=t.n(r),o=t(59301),c=(t(88780),t(43418)),l=t(8591),u=t(92832),d=t(95237),h=t(43604),g=t(35423),f=t(56102),p=t(5296),A=t(98382),m=t(92723),I=t(18030),x=t(79800),v=t.n(x),E=t(21082),C=t(37712),w=(0,o.forwardRef)((function(e,n){e.time;console.log("ScreenRecord:",n);var t=(0,o.useRef)(),i=(0,o.useState)(),r=v()(i,2),c=(r[0],r[1],(0,o.useRef)()),u=[];function d(){return(d=a()(s()().mark((function e(n,t){var i,r;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=[],e.next=3,new MediaRecorder(n);case 3:(r=e.sent).ondataavailable=function(e){i.push(e.data)},r.start(),c.current=r,window.recorderRefs=r,r.addEventListener("stop",(function(e){var n=URL.createObjectURL(i[0],{type:"video/mp4"});(0,E.Nd)("xxx.webm",n)}));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(){window.recorderRefs?(t.current.srcObject.getTracks().forEach((function(e){e.stop()})),window.recorderRefs.addEventListener("dataavailable",(function(e){var n=URL.createObjectURL(e.data,{type:"video/mp4"});(0,E.Nd)("屏幕录制视频.webm",n)}))):l.ZP.warning("您还没有开启视频录制,请先去录制视频吧!")}function g(){navigator.mediaDevices.getDisplayMedia({video:!0,audio:!0}).then((function(e){return t.current.srcObject=e,u.push(e),t.current.captureStream=t.current.captureStream||t.current.mozCaptureStream,new Promise((function(e){return t.current.onplaying=e}))})).then((function(){return function(e,n){return d.apply(this,arguments)}(t.current.captureStream(),2e3)})).then((function(e){})).catch((function(e){"NotFoundError"===e.name?l.ZP.warning("找不到摄像头或麦克风。无法录制."):"UnknownError"===e.name&&l.ZP.warning("录制失败")}))}return(0,o.useImperativeHandle)(n,(function(){return{startScreenRecord:g,downloadFile:h}})),(0,C.jsx)("div",{style:{position:"absolute",top:"0",zIndex:-1},children:(0,C.jsx)("video",{onPause:function(){},width:"60",height:"120",autoPlay:!0,muted:!0,ref:t})})})),k=w,Q=t(89392),y=t(41071),j=t(7352),B=t(93697),D={1:"简单",2:"中等",3:"困难"},S=function(e){var n=e.className,t=e.git_url,i=e.difficulty,r=e.task_pass,x=e.test_set_permission,v=e.onVncAction,w=e.windows_vnc,S=(e.linux_vnc,e.vnc_url,e.unity_3d_routes),b=(e.index_tab,e.shixun_environment_id),R=e.tab_type,P=e.reboot_cloud,M=e.cloud_type,H=e.resData,N=e.instance_startup_type,G=e.mirror_description_multi,F=e.is_jupyter_notebook,O=e.is_jupyter_lab,J=e.jupyterData,T=e.is_jupyter,Z=e.onHideToolBar,L=e.monitoring_url,U=e.port,Y=e.token,z=(0,p.useParams)(),K=(0,o.useRef)();console.log("----",J);var W=4===M?"/data/workspace/userfiles":w?"C:/Windows/AppReadiness/userfiles":"/data/workspace/userfiles",V=4===M?"/data/workspace/userfiles":w?"C:/Windows/AppReadiness/downloadfiles":"/data/workspace/downloadfiles",X=!(0,Q.isEmpty)(H)||!(0,Q.isEmpty)(J),q=J?{name:null==J?void 0:J.main_mirror_name,description:null==J?void 0:J.main_mirror_description}:null==G?void 0:G.find((function(e){return e.shixun_environment_id===b})),_=function(){var e=a()(s()().mark((function e(){var n,t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Z(),n="",t=String(Math.random()),c.Z.confirm({icon:null,className:j.Z.CustomTipsModalCss,okButtonProps:{type:"primary"},centered:!0,width:460,okText:"预览",cancelText:"取消",title:"服务预览",content:(0,C.jsxs)("div",{style:{height:95},children:[(0,C.jsx)("div",{className:"mb5 c-grey-333 font14 mb10",children:"服务预览将为实验环境内部服务映射到临时域名,仅供预览测试使用。请填写内部服务端口,并确认服务正常启动。"}),(0,C.jsxs)("div",{children:[(0,C.jsx)("span",{className:"c-grey-999 font14 mr10",children:"端口号"}),(0,C.jsx)(u.Z,{defaultValue:n,onChange:function(e){document.getElementById(t).style.display="none",n=e.target.value},maxLength:5,style:{width:326}})]}),(0,C.jsx)("div",{style:{display:"none",marginTop:4,marginLeft:52},id:t,className:"c-red"})]}),onOk:function(){var e=a()(s()().mark((function e(){var i,r,a,o;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=document.getElementById(t),n){e.next=5;break}return r.style.display="block",r.innerText="端口号不能为空",e.abrupt("return",Promise.reject());case 5:if(!n.includes(" ")){e.next=9;break}return r.style.display="block",r.innerText="端口号不能有空格",e.abrupt("return",Promise.reject());case 9:if(!n||!(n.includes(".")||isNaN(Number(n))||Number(n)>65535||Number(n)<=0||n.length>1&&"0"===n[0])){e.next=13;break}return r.style.display="block",r.innerText="请输入正确的端口号",e.abrupt("return",Promise.reject());case 13:return e.next=15,(0,I.ZP)("/api/tasks/".concat(z.taskId||z.identifier,"/port_proxy"),{method:"post",body:{port:Number(n),shixun_environment_id:b||null,tab_type:R||null,is_jupyter:T||!1}});case 15:return a=e.sent,e.next=18,new Promise((function(e,n){setTimeout((function(){e("")}),1e3)}));case 18:null!=a&&null!==(i=a.data)&&void 0!==i&&i.url&&(0,E.xg)(null==a||null===(o=a.data)||void 0===o?void 0:o.url);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return console.log(J,"jupyterData"),(0,C.jsxs)("div",{className:"tpi-code-setting ".concat(n),children:[(0,C.jsx)("h3",{children:"功能"}),(0,C.jsxs)("section",{children:[(S||F||O)&&(0,C.jsxs)("a",{title:"全屏",className:"file-item action",onClick:function(){v("full-screen")},children:[(0,C.jsx)("i",{className:"iconfont icon-quanping"}),"开启 / 退出全屏"]}),(2===R||3===R||4===R||F||O)&&(0,C.jsxs)("a",{onClick:function(){return v("reset-task")},className:"file-item action",title:"重置环境",children:[(0,C.jsx)("i",{className:"iconfont icon-zhongzhishixun1"}),"重置环境"]}),(2===R||3===R||5===R||O)&&(0,C.jsxs)("a",{onClick:function(){return v("reset-git-code")},className:"file-item action",title:"重置代码仓库",children:[(0,C.jsx)("i",{className:"iconfont icon-zhongzhishixun"}),"重置代码仓库"]}),(3===R||4===R||F||O)&&(0,C.jsxs)("a",{onClick:function(){return Z(),void c.Z.info({title:"文件上传",icon:null,okText:"关闭",width:600,centered:!0,content:(0,C.jsx)("div",{className:"pt10",children:(0,C.jsx)(A.Z,{isDragger:!0,maxSize:200,additionalText:'默认存放目录路径为"'.concat(W,'"'),action:"".concat(m.Z.API_SERVER,"/api/tasks/").concat(z.taskId||z.identifier,"/upload_file?debug=admin&shixun_environment_id=").concat(b||null,"&tab_type=").concat(R||null,"&is_jupyter=").concat(T||!1),onChange:function(e){e.every((function(e){var n;return 0===(null===(n=e.response)||void 0===n?void 0:n.status)}))&&(c.Z.destroyAll(),l.ZP.info("文件上传成功")),console.log("fileList:",e)}})})})},className:"file-item action",title:"上传文件",children:[(0,C.jsx)("i",{className:"iconfont icon-shangchuanwenjian"}),"上传文件"]}),(3===R||4===R||F||O)&&(0,C.jsxs)("a",{onClick:function(){return Z(),void c.Z.confirm({title:"下载代码",centered:!0,width:600,content:(0,C.jsxs)("div",{children:["代码下载功能:将“".concat(V,"”目录进行打包并下载"),(0,C.jsx)("br",{}),"(文件大小不得超过200MB)"]}),onOk:(e=a()(s()().mark((function e(){return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,I.ZP)("/api/tasks/".concat(z.taskId||z.identifier,"/download_file?debug=admin"),{method:"post",body:{autoDownload:!0,shixun_environment_id:b||null,tab_type:R||null,is_jupyter:T||!1},headers:{responseType:"arraybuffer",Accept:"application/vnd.ms-excel;charset=utf-8"}});case 2:return e.abrupt("return",!0);case 3:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})});var e},className:"file-item action",title:"下载文件",children:[(0,C.jsx)("i",{className:"iconfont icon-xiazai3"}),"下载文件"]}),(3===R||5===R)&&(0,C.jsxs)("a",{onClick:function(){var e,n;null===(e=K.current)||void 0===e||null===(n=e.startScreenRecord)||void 0===n||n.call(e)},className:"file-item action",title:"屏幕录制",children:[(0,C.jsx)("i",{className:"iconfont icon-jiaruketang1"}),"屏幕录制"]}),((2===R||3===R||4===R)&&(0===M||1===M)||F||O)&&X&&(0,C.jsxs)("a",{onClick:function(){return _()},className:"file-item action w100",title:"服务预览",children:[(0,C.jsx)("i",{className:"iconfont icon-suanfasheji"}),"服务预览"]}),P&&X&&(0,C.jsxs)("a",{onClick:function(){return v("restart-reboot")},className:"file-item action",title:"重启云主机",children:[(0,C.jsx)(g.Z,{style:{marginRight:21,color:"#FFF"},className:"c-white font16"}),"重启云主机 "]}),(3===R||5===R||F||O)&&(0,C.jsxs)("a",{onClick:function(){return v("reset-code")},className:"file-item action",title:"恢复初始代码",children:[(0,C.jsx)("i",{className:"iconfont icon-zhongzhi font20",style:{marginRight:19}}),"恢复初始代码"]}),F&&(0,C.jsxs)("a",{className:"file-item action",target:"_blank",href:"https://".concat(U).concat(m.Z.TERMINAL_URL,"/terminals/1?token=").concat(Y),children:[(0,C.jsx)("i",{className:"iconfont icon-minglinghang font16",style:{marginRight:22}}),"命令行终端"]}),t&&(0,C.jsx)(f.CopyToClipboard,{text:t,onCopy:function(){return l.ZP.success("复制成功")},children:(0,C.jsxs)("a",{title:"复制版本库地址",className:"file-item action",children:[(0,C.jsx)("i",{className:"iconfont icon-fuzhibanbenkudizhi1"}),"复制版本库地址"]})}),3===R&&(0,C.jsxs)("a",{className:"file-item action",onClick:function(){v("show-clipboard-box")},children:[(0,C.jsx)("i",{className:"iconfont icon-fuzhiniantie"}),"复制粘贴"]}),(0,B.Ny)()&&(0,C.jsxs)("a",{className:"file-item action",href:L||(null==J?void 0:J.monitoring_url),target:"_blank",children:[(0,C.jsx)("i",{className:"iconfont icon-jiankongfuwu2"}),"监控服务"]}),4===R&&X&&(0,C.jsxs)("a",{className:"file-item action",onClick:function(){Z(),c.Z.info({title:"SSH直连",width:600,centered:!0,content:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(d.Z,{children:[(0,C.jsx)(h.Z,{flex:"50px",children:"账号"}),(0,C.jsx)(h.Z,{children:null==H?void 0:H.username})]}),(0,C.jsxs)(d.Z,{children:[(0,C.jsx)(h.Z,{flex:"50px",children:"地址"}),(0,C.jsx)(h.Z,{children:null==H?void 0:H.ssh_address})]}),(0,C.jsxs)(d.Z,{children:[(0,C.jsx)(h.Z,{flex:"50px",children:"端口"}),(0,C.jsx)(h.Z,{children:null==H?void 0:H.port})]}),(0,C.jsxs)(d.Z,{children:[(0,C.jsx)(h.Z,{flex:"50px",children:"密码"}),(0,C.jsx)(h.Z,{children:null==H?void 0:H.password})]})]})})},children:[(0,C.jsx)("i",{className:"iconfont icon-congshulianjie"}),"SSH直连"]}),2===N&&X&&(0,C.jsxs)("a",{className:"file-item action",onClick:function(){Z(),c.Z.info({title:"RDP直连",icon:null,className:j.Z.CustomTipsModalCss,okButtonProps:{type:"primary"},okText:"我知道啦",width:600,centered:!0,content:(0,C.jsxs)("div",{children:[(0,C.jsxs)(d.Z,{children:[(0,C.jsx)(h.Z,{className:"c-grey-999",flex:"50px",children:"账号"}),(0,C.jsx)(h.Z,{className:"c-grey-333",children:null==H?void 0:H.username})]}),(0,C.jsxs)(d.Z,{className:"mt10",children:[(0,C.jsx)(h.Z,{className:"c-grey-999",flex:"50px",children:"地址"}),(0,C.jsx)(h.Z,{className:"c-grey-333",children:null==H?void 0:H.host})]}),(0,C.jsxs)(d.Z,{className:"mt10",children:[(0,C.jsx)(h.Z,{className:"c-grey-999",flex:"50px",children:"端口"}),(0,C.jsx)(h.Z,{className:"c-grey-333",children:4===M?null==H?void 0:H.gpPort:null==H?void 0:H.port})]}),(0,C.jsxs)(d.Z,{className:"mt10",children:[(0,C.jsx)(h.Z,{className:"c-grey-999",flex:"50px",children:"密码"}),(0,C.jsx)(h.Z,{className:"c-grey-333",children:null==H?void 0:H.password})]}),(0,C.jsx)("a",{style:{textDecoration:"underline",display:"inline-block"},href:"https://www.educoder.net/forums/36696",target:"_blank",className:"mt10 font14 current c-light-primary",children:"操作说明"})]})})},children:[(0,C.jsx)("i",{className:"iconfont icon-RDPzhilian"}),"RDP直连"]})]}),!!R&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("h3",{children:"关卡配置信息"}),(0,C.jsxs)("section",{children:[(0,C.jsxs)("a",{className:"file-item",title:r?"允许学员跳关挑战":"不允许学员跳关挑战",children:[(0,C.jsx)("b",{children:"跳关"}),(0,C.jsx)("span",{children:r?"允许":"不允许"})]}),(0,C.jsxs)("a",{className:"file-item",title:x?"允许学员通过金币解锁查看测试集内容":"不允许学员通过金币解锁查看测试集内容",children:[(0,C.jsx)("b",{children:"测试集解锁"}),(0,C.jsx)("span",{children:x?"允许":"不允许"})]})]})]}),(0,C.jsx)("h3",{children:"实训基本信息"}),(0,C.jsxs)("section",{children:[(0,C.jsxs)("div",{className:"file-item",children:[(0,C.jsx)("b",{children:"实训难易度"}),(0,C.jsx)("span",{children:(null==J?void 0:J.difficulty)||D[i]})]}),(0,C.jsxs)("div",{className:"file-item",style:{alignItems:"flex-start"},children:[(0,C.jsx)("b",{children:"实验环境"}),S?(0,C.jsx)("span",{className:"multi_ellipsis1",children:"暂无"}):q&&(0,C.jsx)(y.Z,{value:[q],title:"实验环境说明",children:(0,C.jsx)("span",{title:null==q?void 0:q.name,className:"multi_ellipsis1 current",children:null==q?void 0:q.name})})]}),(0,C.jsxs)("div",{className:"file-item",style:{alignItems:"flex-start"},children:[(0,C.jsx)("b",{children:"实验容器网络"}),S?(0,C.jsx)("span",{className:"multi_ellipsis1",children:"暂无"}):(0,C.jsx)("span",{title:null==q?void 0:q.name,className:"multi_ellipsis1 current",children:null!=q&&q.close_internet?"关闭外网":"开启外网"})]})]}),(0,C.jsx)(k,{ref:K})]})}},17751:function(e,n,t){"use strict";var i=t(31468),s=t.n(i),r=t(7557),a=t.n(r),o=t(41498),c=t.n(o),l=t(79800),u=t.n(l),d=t(59301),h=t(31797),g=t(78241),f=t(43418),p=t(71418),A=t(61998),m=t(92832),I=t(94001),x=t(95237),v=t(43604),E=t(3113),C=t(31591),w=t(61186),k=t.n(w),Q=t(5296),y=t(21082),j=t(55945),B=t(93697),D=t(1058),S=t(37712);h.Z.Countdown;n.Z=(0,Q.connect)((function(e){return{exercise:e.exercise}}))((function(e){var n,t,i,r,o=e.exercise,l=e.successCb,h=e.dispatch,w=(0,Q.useParams)(),b=g.Z.useForm(),R=u()(b,1)[0],P=g.Z.useWatch("time",R),M=(0,d.useState)(!1),H=u()(M,2),N=H[0],G=H[1],F=(0,d.useRef)(),O=o.actionTabs,J=(0,d.useState)(),T=u()(J,2),Z=T[0],L=T[1],U=(0,D.U)(C.n7,{id:w.categoryId}),Y=u()(U,4),z=Y[1],K=Y[2],W=Y[3],V=(0,D.U)(C.Cd,{}),X=u()(V,3),q=X[1],_=X[2];(0,d.useEffect)((function(){"student-unlock"===o.actionTabs.key&&(G(!1),R.resetFields())}),[o.actionTabs.key]);var $=function(){var e=c()(a()().mark((function e(){var n,t,i,s,r,o,u;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,R.validateFields();case 2:if(r=R.getFieldsValue(),G(!0),!("no"!==(null==O||null===(n=O.exerciseParams)||void 0===n?void 0:n.ip_limit)||null!=O&&null!==(t=O.exerciseParams)&&void 0!==t&&t.ip_bind_type)){e.next=7;break}return e.next=7,new Promise(function(){var e=c()(a()().mark((function e(n){var t,i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,j.y)({ip_limit:null==O||null===(t=O.exerciseParams)||void 0===t?void 0:t.ip_limit,ip_bind:null==O||null===(i=O.exerciseParams)||void 0===i?void 0:i.ip_bind_type});case 2:return F.current=e.sent,e.abrupt("return",n());case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}());case 7:return e.next=9,(0,C.ZD)(null==O||null===(i=O.exerciseParams)||void 0===i?void 0:i.id,{exercise_user_id:null==O||null===(s=O.exerciseParams)||void 0===s?void 0:s.exercise_user_id,unlock_key:r.unlock_key,time:r.time,ip:F.current});case 9:if(0!==e.sent.status){e.next=18;break}if(!l){e.next=15;break}return h({type:"exercise/setActionTabs",payload:{}}),l(),e.abrupt("return");case 15:u=null==O?void 0:O.exerciseParams,(0,y.nr)({inner_ip:u.inner_ip,public_ip:u.public_ip,open_camera:u.open_camera,ip_limit:u.ip_limit,ip_bind:u.ip_bind,ip_bind_type:u.ip_bind_type,exercise_tips:u.exercise_tips,exerciseId:u.id,screen_open:u.screen_open,screen_num:u.screen_num,screen_sec:u.screen_sec,coursesId:w.coursesId,login:null===(o=(0,B.eY)())||void 0===o?void 0:o.login,history:history,identity_verify:u.identity_verify,open_phone_video_recording:u.open_phone_video_recording,current_status:u.current_status}),h({type:"exercise/setActionTabs",payload:{}});case 18:G(!1);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ee=[{title:"IP地址",dataIndex:"ip",key:"ip",render:function(e){return(0,S.jsx)("span",{className:e.indexOf("异常")>-1?"c-red":"c-green",children:e})}},{title:"浏览器",dataIndex:"browser",key:"browser",render:function(e){return(0,S.jsx)("span",{className:e.indexOf("异常")>-1?"c-red":"c-green",children:e})}},{title:"上次登录时间",dataIndex:"last_login_time",key:"last_login_time"}],ne=(null==O||null===(n=O.exerciseParams)||void 0===n?void 0:n.errorMessage)&&"object"===s()(null==O||null===(t=O.exerciseParams)||void 0===t?void 0:t.errorMessage);(0,d.useEffect)((function(){"student-unlock"===o.actionTabs.key&&c()(a()().mark((function e(){var n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_(w);case 2:return n=e.sent,e.next=5,K({});case 5:n.status||L(n);case 6:case"end":return e.stop()}}),e)})))()}),[o.actionTabs.key]);var te=(null==Z?void 0:Z.exercise)||{},ie=te.time,se=te.end_time,re=null!=W&&W.user_end_time?k()(null==W?void 0:W.user_end_time).add(1,"minutes"):k()(),ae=k()(null==W?void 0:W.user_total_end_time)>re?Math.round(k().duration(k()(null==W?void 0:W.user_total_end_time).diff(re.startOf("minute"))).asMinutes()):0,oe=((null==W?void 0:W.student_left_minutes)||0)+(P||0);return(0,S.jsx)(S.Fragment,{children:(0,S.jsx)(f.Z,{width:514,centered:!0,closable:!(null==O||null===(i=O.exerciseParams)||void 0===i||!i.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"提示",open:"student-unlock"===o.actionTabs.key,footer:null,onCancel:function(){h({type:"exercise/setActionTabs",payload:{}})},children:(0,S.jsxs)(p.Z,{spinning:z||q,children:[ne&&(0,S.jsx)("div",{style:{marginBottom:16},children:"该账号已经存在异常情况,若非本人操作,请联系监考老师说明情况。 "}),!ne&&(0,S.jsx)("div",{style:{marginBottom:16},children:"系统检测到您在考试时中途退出,现已将考试锁定。如需继续进行考试, 请尽快联系课堂老师进行解锁!"}),ne&&(0,S.jsx)(A.Z,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[(null==O||null===(r=O.exerciseParams)||void 0===r?void 0:r.errorMessage)||{}],columns:ee}),(0,S.jsx)("div",{className:"",children:(0,S.jsxs)(g.Z,{form:R,layout:"vertical",autoComplete:"off",children:[(0,S.jsx)(g.Z.Item,{label:"考试解锁码",name:"unlock_key",rules:[{required:!0,message:"请输入考试解锁码"}],children:(0,S.jsx)(m.Z.Password,{autoComplete:"off",placeholder:"请输入考试解锁码",visibilityToggle:!1})}),-1!==ie?(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(g.Z.Item,{name:"time",label:(0,S.jsxs)("span",{children:["延长时间(",(0,S.jsxs)("span",{style:{color:"#9096A3"},children:["当前考试截止时间",k()(null==W?void 0:W.user_total_end_time).format("YYYY-MM-DD HH:mm")]}),")"]}),children:(0,S.jsx)(I.Z,{min:0,precision:0,max:ae,style:{width:"100%"},placeholder:"最大可延长时间为".concat(ae,"分钟,在学生剩余时间基础上延时"),addonAfter:"分钟"})}),(0,S.jsxs)("div",{className:"mb20",style:{color:"#FA6400"},children:["该学生剩余考试时间:",(0,S.jsx)("span",{className:"ml5",children:z||q?"--":oe}),"分钟",0!==oe&&(null==W?void 0:W.user_end_time)&&(0,S.jsxs)("span",{children:[",交卷截止时间:",(0,S.jsx)("span",{className:"ml5",children:k()(null==W?void 0:W.user_end_time).add(P||0,"m").format("YYYY-MM-DD HH:mm:ss")})]})]})]}):(0,S.jsxs)("span",{style:{color:"#F6A53B"},children:[" 当前考试未限制考生答题时长,考试截止时间为 ",k()(se).format("YYYY-MM-DD HH:mm")]})]})}),(0,S.jsxs)(x.Z,{justify:"space-between",align:"middle",children:[(0,S.jsx)(v.Z,{}),(0,S.jsx)(v.Z,{children:(0,S.jsx)(E.ZP,{loading:N,onClick:$,children:"进入考试"})})]})]})})})}))},90341:function(e,n,t){"use strict";t.d(n,{$J:function(){return c},JZ:function(){return u},bN:function(){return g},jP:function(){return h},rO:function(){return l}});var i=t(7557),s=t.n(i),r=t(41498),a=t.n(r),o=t(18030);function c(e){return(0,o.U2)("libraries/".concat(e,".json"))}function l(){return(0,o.U2)("library_tags.json")}function u(e){return d.apply(this,arguments)}function d(){return(d=a()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.IV)("attachments/".concat(n,".json"));case 2:return t=e.sent,e.abrupt("return",0===t.status);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function h(e){return(0,o.v_)("libraries.json",e)}function g(e,n){return(0,o.gz)("libraries/".concat(e,".json"),n)}},91318:function(e,n,t){"use strict";t.d(n,{Z:function(){return C}});var i=t(82242),s=t.n(i),r=t(7557),a=t.n(r),o=t(41498),c=t.n(o),l=t(79800),u=t.n(l),d=t(59301),h=t(5296),g=t(78241),f=t(8591),p=t(43418),A=t(92832),m="wrap___TwY3U",I="content___Ks95W",x="mainPathWrap___CrMaa",v="colorBlue___dvWbP",E=t(37712),C=(0,h.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n=e.shixunsDetail,t=(e.globalSetting,e.loading,e.dispatch),i=e.title,r=e.pathList,o=void 0===r?[]:r,l=e.showInputPath,C=void 0!==l&&l,w=e.isMergeSelectFile,k=void 0!==w&&w,Q=e.onFinish,y=void 0===Q?function(){}:Q,j=g.Z.useForm(),B=u()(j,1)[0],D=(0,h.useParams)(),S=(0,h.useLocation)(),b=(0,d.useRef)(),R=(0,d.useState)(""),P=u()(R,2),M=P[0],H=P[1],N=(0,d.useState)(""),G=u()(N,2),F=G[0],O=G[1],J=(0,d.useState)([]),T=u()(J,2),Z=T[0],L=T[1],U=(0,d.useState)([]),Y=u()(U,2),z=Y[0],K=Y[1];(0,d.useEffect)((function(){var e;b.current="repository"===(null===(e=S.pathname)||void 0===e||null===(e=e.split("/"))||void 0===e?void 0:e[3])}),[]),(0,d.useEffect)((function(){if("Repository-SelectFilePath"===n.actionTabs.key){var e=o.join("/"),t=[];o.map((function(n,i){0===i?t.push({val:"根目录",path:""},{val:"/".concat(n),path:e}):t.push({val:"/".concat(n),path:e})})),L(t),H(e),O(e),W(e)}}),[n.actionTabs.key]);var W=function(){var e=c()(a()().mark((function e(n){var i;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({type:b.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:D.id,path:n}});case 2:(i=e.sent)&&K(i.trees||[]);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),V=function(){var e=c()(a()().mark((function e(){var n,i,r;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null==B?void 0:B.getFieldsValue(),i=M?"".concat(M).concat(null!=n&&n.name?"/".concat(null==n?void 0:n.name):""):null==n?void 0:n.name,!k){e.next=6;break}return y(i),X(),e.abrupt("return");case 6:if(!C){e.next=16;break}return e.next=9,B.validateFields();case 9:return e.next=11,t({type:"shixunsDetail/uploadGitFolder",payload:s()(s()({},{id:D.id,path:i}),b.current?{}:{secret_repository:!0})});case 11:r=e.sent,y(F),0===r.status&&f.ZP.info("新建成功"),e.next=18;break;case 16:y(i),f.ZP.success("选择文件目录成功");case 18:X();case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),X=function(){t({type:"shixunsDetail/setActionTabs",payload:{}}),B.resetFields()};return(0,E.jsx)(p.Z,{centered:!0,title:i||"新建文件夹",closable:!1,keyboard:!1,open:"Repository-SelectFilePath"===n.actionTabs.key,onOk:V,onCancel:X,children:(0,E.jsxs)("div",{className:m,children:[(0,E.jsxs)("div",{className:I,children:[(0,E.jsx)("div",{className:x,children:!(null==Z||!Z.length)&&Z.map((function(e,n){return(0,E.jsx)("a",{onClick:function(){return function(e,n){var t=Z.filter((function(e,t){return t<=n}));L(t);var i=t.filter((function(e,n){return 0!==n})).map((function(e){return e.val})).join("").substr(1);H(i),W(i)}(0,n)},children:e.val},n)}))}),!(null==z||!z.length)&&z.map((function(e,n){return"tree"===e.type&&(0,E.jsxs)("a",{onClick:function(){return function(e){var n=M;"tree"===e.type&&(Z.length?Z.push({val:"/".concat(e.name),path:e.name}):Z.push({val:"根目录",path:""},{val:"/".concat(e.name),path:e.name}),L(Z),n=M?"".concat(M,"/").concat(e.name):e.name,H(n)),W(n)}(e)},children:[(0,E.jsx)("i",{className:"iconfont icon-wenjianjia ".concat(v)}),e.name]},n)}))]}),(0,E.jsx)("label",{className:"mt5",children:"选中的新建文件夹目录:"}),(0,E.jsx)("div",{className:"mt5 mb5",children:M}),C&&(0,E.jsx)(g.Z,{form:B,scrollToFirstError:!0,className:"mt20",children:(0,E.jsx)(g.Z.Item,{name:"name",rules:[{required:!0,message:"请输入名称"},{whitespace:!0,message:"请勿输入空格"}],children:(0,E.jsx)(A.Z,{placeholder:"请输入新文件夹名/子文件夹名。(如:src/step1)"})})})]})})}))},41071:function(e,n,t){"use strict";t.d(n,{Z:function(){return u}});var i=t(79800),s=t.n(i),r=t(59301),a="modal___yy3VB",o=t(43418),c=t(38279),l=t(37712),u=function(e){var n=e.title,t=e.children,i=e.value,u=(0,r.useState)(!1),d=s()(u,2),h=d[0],g=d[1];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{onClick:function(){return g(!0)},children:t}),(0,l.jsxs)(o.Z,{title:n,open:h,width:1e3,destroyOnClose:!0,centered:!0,onCancel:function(){return g(!1)},className:a,footer:null,children:["string"==typeof i&&(0,l.jsx)(c.Z,{value:i||""}),"[object Array]"===Object.prototype.toString.call(i)&&(0,l.jsx)(l.Fragment,{children:null==i?void 0:i.map((function(e,n){return(0,l.jsxs)("div",{children:[(0,l.jsx)("b",{children:e.name||e.type_name}),(0,l.jsx)(c.Z,{value:e.description||""})]},n)}))})]})]})}},77894:function(e,n,t){"use strict";t.d(n,{Z:function(){return S}});var i=t(37205),s=t.n(i),r=t(82242),a=t.n(r),o=t(91232),c=t.n(o),l=t(79800),u=t.n(l),d=t(59301),h="scrollbar___lLOKh",g="scrollbarContent___J5uQ6",f="scrollbarTrack___ptQqt",p="scrollbarThumb___GFuZv",A="item___MSfbI",m="icon___AXhP9",I="dot___BA766",x="active___Rkf93",v="pathActive___l4hB4",E="paths___gzBRM",C=t(43418),w=t(38854),k=t(89392),Q=t(50021),y=t(76374),j=t(21082),B=t(5296),D=t(37712),S=function(e){var n=e.initTabs,t=void 0===n?[]:n,i=e.tabs,r=void 0===i?[]:i,o=e.setTabs,l=e.value,S=e.onChange,b=e.codeUpdate,R=void 0!==b&&b,P=e.paths,M=void 0===P?[]:P,H=e.activePath,N=e.onChangePath,G=e.codeLoading,F=e.copyProhibited,O=void 0!==F&&F,J=(0,d.useState)(!1),T=u()(J,2),Z=T[0],L=T[1],U=(0,d.useState)(!1),Y=u()(U,2),z=Y[0],K=Y[1],W=(0,d.useRef)(),V=(0,d.useRef)(),X=(0,d.useRef)(),q=(0,d.useRef)(!1),_=(0,B.useParams)(),$=(0,B.useSelector)((function(e){var n;return null==e||null===(n=e.user)||void 0===n?void 0:n.userInfo}));(0,d.useEffect)((function(){return Q.Z.subscribe("send-tabs-result-data",(function(e){var n=(0,k.cloneDeep)(r),t=n.findIndex((function(n){return n.index_tab===e.index_tab}));n[t].resData=e,o(n)}))}),[r]),(0,d.useEffect)((function(){var e=new y.Z((function(e){var n,t=c()(e);try{for(t.s();!(n=t.n()).done;){n.value.contentRect.width;ee()}}catch(e){t.e(e)}finally{t.f()}})),n=new y.Z((function(e){var n,t=c()(e);try{for(t.s();!(n=t.n()).done;){n.value.contentRect.width;ee()}}catch(e){t.e(e)}finally{t.f()}}));return V.current&&(e.observe(V.current),n.observe(X.current)),function(){e.disconnect(),n.disconnect()}}),[]),(0,d.useEffect)((function(){if(t.length&&!q.current){var e,n=sessionStorage.getItem("Tpilist"),i=JSON.parse(n)||[],s=null==i||null===(e=i.filter((function(e){return e.id===_.taskId})))||void 0===e?void 0:e[0],r=2===(null==$?void 0:$.user_status)||(null==s?void 0:s.id)===_.taskId&&((new Date).getTime()-new Date(null==s?void 0:s.time).getTime())/1e3/3600>24,c=t.map((function(e,n){return a()(a()({},e),{},{active:_.taskId?0===n&&![2,3,4].includes(e.tab_type)||!r&&!(null==s||!s.id||0!==n):0===n,resetKey:1,resData:{}})}));if(null==s||!s.id){var l={id:_.taskId,time:new Date};i.push(l),sessionStorage.setItem("Tpilist",JSON.stringify(i))}o((0,k.cloneDeep)(c)),S(c[0]),q.current=!1}}),[null==t?void 0:t.length]),(0,d.useEffect)((function(){if(W.current){var e=function(e){i=W.current.offsetLeft,s=e.pageX,r=!0,document.onselectstart=function(){return!1},(0,j.kk)("none")},n=function(){r=!1,document.onselectstart=null,(0,j.kk)("auto")},t=function(e){if(r){var n=e.pageX-s,t=i+n,a=V.current.clientWidth-W.current.clientWidth;t<=0&&(t=0),t>=a&&(t=a),W.current.style.left="".concat(t,"px"),X.current.style.transform="translateX(".concat(-t/V.current.clientWidth*X.current.clientWidth,"px)")}},i=0,s=0,r=!1;return W.current.addEventListener("mousedown",e),document.addEventListener("mousemove",t),document.addEventListener("mouseup",n),function(){var i,s,r;null===(i=W.current)||void 0===i||i.removeEventListener("mousedown",e),null===(s=document)||void 0===s||s.removeEventListener("mousemove",t),null===(r=document)||void 0===r||r.removeEventListener("mouseup",n)}}}),[W.current,l]),(0,d.useEffect)((function(){return X.current.addEventListener("wheel",ne,{passive:!1}),function(){var e;null===(e=X.current)||void 0===e||e.removeEventListener("wheel",ne,{passive:!1})}}),[X.current]);var ee=function(){try{if(X.current.clientWidth>V.current.clientWidth){var e,n=V.current.clientWidth/X.current.clientWidth*V.current.clientWidth,t=Number(null===(e=W.current.style.left)||void 0===e?void 0:e.replace("px","")),i=t;t+n>=V.current.clientWidth&&(i=t-(t+n-V.current.clientWidth)),W.current.style.width="".concat(n,"px"),W.current.style.left="".concat(i,"px"),X.current.style.transform="translateX(".concat(-i/V.current.clientWidth*X.current.clientWidth,"px)"),L(!0)}else W.current.style.left="".concat(0,"px"),X.current.style.transform="translateX(0px)",L(!1)}catch(e){}},ne=function(e){if(!(X.current.clientWidth<=V.current.clientWidth)){var n=0;n=-1!==navigator.userAgent.indexOf("Macintosh")?e.deltaX:e.shiftKey?e.deltaX||e.deltaY:e.deltaX;var t=X.current.style.transform.match(/translateX\(([-0-9.]+)px\)/),i=t?parseFloat(t[1]):0;i=Math.abs(i),(i+=n)<=0&&(i=0);var s=X.current.clientWidth-V.current.clientWidth;i>=s&&(i=s);var r=i/X.current.clientWidth*V.current.clientWidth;W.current.style.left="".concat(r,"px"),X.current.style.transform="translateX(".concat(-i,"px)"),e.preventDefault()}};return(0,D.jsxs)("div",{className:h,ref:V,children:[(0,D.jsx)("div",{className:g,ref:X,children:r.map((function(e,n){var i,c=e.index_tab,u=e.isCopy,d=e.tab_type,h=e.name;return(0,D.jsxs)("div",{onClick:function(){if(c!==l.index_tab){var t=a()(a()({},e),{},{active:!0}),i=(0,k.cloneDeep)(r);i[n]=t,S(t),o(i)}},className:l.index_tab===c?"".concat(A," ").concat(x):A,children:[1===d&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("i",{title:"代码编辑器",style:{color:"#3B86A0"},className:"iconfont icon-daimabianjiqi1"}),(0,D.jsx)("span",{children:h}),!!H&&(0,D.jsx)(w.Z,{className:m,overlayClassName:E,onOpenChange:function(e){K(e)},disabled:G,menu:{items:null===(i=(0,k.compact)(M))||void 0===i?void 0:i.map((function(e){return{key:e,label:(0,D.jsx)("span",{className:H===e?v:"",children:e}),onClick:function(){H!==e&&(K(!1),N(e))}}}))},children:(0,D.jsx)("div",{children:z?(0,D.jsx)("b",{className:"iconfont icon-a-xialazhankai"}):(0,D.jsx)("b",{className:"iconfont icon-shouqi4"})})}),R&&(0,D.jsx)("div",{className:I})]}),2===d&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("i",{style:{color:"#608B4E"},title:"VSCode编辑器",className:"iconfont icon-vscode"}),(0,D.jsx)("span",{children:h})]}),3===d&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("i",{style:{color:"#608B4E"},title:"图形化桌面",className:"iconfont icon-tuxinghuazhuomian"}),(0,D.jsx)("span",{children:h})]}),4===d&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("i",{style:{color:"#3B86A0"},title:"命令行终端",className:"iconfont icon-minglinghang"}),(0,D.jsx)("span",{children:h}),!O&&(0,D.jsx)("aside",{title:"复制",onClick:function(e){return function(e,n,i){if(i.stopPropagation(),20!==r.length){var c=(0,k.cloneDeep)(r),l=c[n],u=String(Math.random()).slice(-10),d=l.index_tab.split("-")[0],h="".concat(d,"-").concat(u),g=l.name,f=t.filter((function(e){return 4===e.tab_type}))||[];if(1===f.length){var p=f[0].name,A=c.filter((function(e){return 4===e.tab_type})).map((function(e){var n;return Number(null===(n=e.name)||void 0===n?void 0:n.split(p)[1])}));A.push(1),console.log(A,"nameItems"),g=p+(Math.max.apply(Math,s()(A))+1)}var m=a()(a()({},l),{},{name:g,active:!1,index_tab:h,isCopy:!0});c.splice(n+1,0,m),o(c)}else C.Z.info({title:"提示",icon:null,okText:"我知道了",width:600,centered:!0,content:"实验界面窗口数量已达上限(20个),不允许再复制窗口。"})}(0,n,e)},className:"iconfont icon-fuzhihuanjing font14 ml10 current"}),u&&(0,D.jsx)("aside",{title:"关闭",onClick:function(t){return function(e,n,t){t.stopPropagation();var i=(0,k.cloneDeep)(r);i.splice(n,1),e.index_tab===l.index_tab&&(i[n-1].active=!0,S(i[n-1])),o(i)}(e,n,t)},className:"iconfont icon-guanbishiyanhuanjing font14 ml10 current"})]}),5===d&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("i",{style:{color:"#3B86A0"},title:"容器内服务",className:"iconfont icon-rongqi1"}),(0,D.jsx)("span",{children:h})]}),6===d&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("i",{style:{color:"#3B86A0"},title:"虚拟仿真",className:"icon-xunifangzhen"}),(0,D.jsx)("span",{children:h})]})]},c)}))}),(0,D.jsx)("div",{style:{display:Z?"block":"none"},className:f,children:(0,D.jsx)("div",{ref:W,className:p})})]})}},95757:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Or}});var i=t(31468),s=t.n(i),r=t(37205),a=t.n(r),o=t(39647),c=t.n(o),l=t(85573),u=t.n(l),d=t(7557),h=t.n(d),g=t(41498),f=t.n(g),p=t(79800),A=t.n(p),m=t(70236),I=t.n(m),x=t(82242),v=t.n(x),E=t(59301),C=t(5296),w=t(95237),k=t(43604),Q=t(13275),y=t(37712),j=function(e){var n=e.position,t=e.subject,i=e.score,s=e.onViewAllTask,r=e.challenge_optional,a=(0,E.useState)(!1),o=A()(a,2),c=o[0],l=o[1],u=((0,C.useLocation)(),(0,C.useSearchParams)()),d=A()(u,1)[0];var h=function(){(0,Q.vp)()?l(!0):l(!1)};return(0,E.useEffect)((function(){return document.addEventListener((0,Q.gH)(),h),function(){document.removeEventListener((0,Q.gH)(),h)}}),[]),(0,y.jsxs)("div",{className:"task-header",children:[(0,y.jsx)("a",{title:"查看全部任务",onClick:s,children:(0,y.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAA4qEECAAABz0lEQVR4Xu3csU7DQBRE0V1+LNCn5DNT0mN+DCNoQzNjfBVWl/o9T3wYNiiyMq+3fR/+nC4whT7d+CdAaMZZaMhZaKEpASjHM1poSACKsdFCQwJQjI0WGhKAYmy00JAAFGOjhYYEoBgbLTQkAMXYaKEhASjGRgsNCUAxNlpoSACKsdFCQwJQjI0WGhKAYmz0YtDb2+t8ge4pirne9vcxxnO0VAxTjRYaeppUaAq6+GsjV5Y5Oki0h8yizuiHvHnyRQkNaQstNCQAxdhooSEBKMZGCw0JQDE2ejHobezj49A9PY19fI556Bq/Lc9x8dO7P1e9v6AfkwLI3xHLQR8+Os6CX+zoOIvp31zX/zqgX5XQQkMCUIyNFhoSgGJstNCQABRjo4WGBKAYqtEbdD9tzDIP0PhIGPVImE+TMt9NaqOhRrdn5zJ71JvhMmDtjQjdyoV7Qodg7bjQrVy4J3QI1o4L3cqFe0KHYO240K1cuCd0CNaOC93KhXtCh2DtuNCtXLgndAjWjgvdyoV7Qodg7bjQrVy4J3QI1o4L3cqFe0KHYO240K1cuCd0CNaOC93KhXtCh2DtuNCtXLgndAjWjgvdyoV7Qodg7bjQrVy49wXyQzzmd6RVpQAAAABJRU5ErkJggg==",alt:"nav",width:45})}),(0,y.jsxs)(w.Z,{style:{flex:1},wrap:!1,align:"middle",gutter:10,children:[(0,y.jsx)(k.Z,{style:{minWidth:"0px"},children:(0,y.jsxs)("h3",{title:t,children:["第",n,"关:",t]})}),r&&Boolean(d.get("coursesId"))&&(0,y.jsx)(k.Z,{children:(0,y.jsx)("div",{className:"font14 mr10",style:{color:"#E88D13",padding:"1px 8px",borderRadius:"9999px",border:"1px solid rgba(232,141,19,0.4)",background:"rgba(239,165,58,0.12)",lineHeight:"22px",whiteSpace:"nowrap"},children:"可选做"})})]}),(0,y.jsx)("span",{children:i}),!("true"===d.get("isFullScreen"))&&(0,y.jsx)("a",{onClick:function(){l(!c),(0,Q.vp)()?(0,Q.BU)():(0,Q.Dj)(document.getElementById("task-left-panel"))},title:c?"退出全屏":"全屏",children:(0,y.jsx)("i",{className:c?"iconfont icon-shousuo c-grey-333 font16 ml10 current":"iconfont icon-zhankai c-grey-333 font16 ml10 current"})})]})},B=t(96865),D=t(78673),S=t(61998),b=t(27092),R=t(54313),P=t(73096),M=t(21082),H=t(61186),N=t.n(H),G={0:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAAA8CAMAAADygAyiAAAAaVBMVEUAAAD/vwD/vwD/ugD/ugD/uwD/vAD8vAP8ugP9uwL9uwL9uwL9ugL9ugL9ugL8uwP8uwP8ugP9ugL9ugL9ugL9uwL9uwL9uwL9uwP9z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iHymIoUOjkQtetH1q7E9UD1cDBfFSfb37IREG7excPfwBqDvrPoW096C8YpILQ7jFpe2T6l+57GoAOBoEyd+UItQgryDEwHQ21++ZAulwv0/Bgb/aXvia5j5ZvP7PDnQrv9B/r19YHqWoB59qygYJsQspC+r7qinwQtHxAud2amLxD+RBIuhuTkPoGZRRodoO07OyUIuEwaUMXBEqAJ779tjNtnxXwbj8bk4ZFt6D3xgq5c3/KUChtl+LFcZo9G6MQb/ft5ezZRfLAsUb2bGznal/bGUKDeprkSR48aaVxUBI++y1/ehKxndNhRzGIOY7q33HCko50QpISEB2GjLhkQImvCvQIiOGyj0kZ0MNnrQVTTYYwtTWxlhoPVpp1ngL8Q53yfrrFXibn1VdOZhLPhWsliM3x30BoVYDct2iDVVBuVzDs4kaDcj+UkSDphyYkiHnXSEWsIyZ7e6e8c/YFAVX9WNqVSc8AAAAASUVORK5CYII="},F={loading:!0,page:1,data:null},O=function(e){return e[e.SET_LOADING=0]="SET_LOADING",e[e.SET_STATE=1]="SET_STATE",e[e.SET_PAGE=2]="SET_PAGE",e}(O||{});function J(e,n){switch(n.type){case O.SET_LOADING:return v()(v()({},e),{},{loading:n.payload});case O.SET_STATE:return v()(v()({},e),n.payload);case O.SET_PAGE:return v()(v()({},e),{},{page:n.payload});default:throw new Error}}var T=function(e){var n=e.activeIndex,t=e.taskId,i=(0,E.useReducer)(J,F),s=A()(i,2),r=s[0],a=s[1],o=r.loading,c=r.page,l=r.data,u=(0,E.useRef)(),d=(0,E.useState)(!1),g=A()(d,2),p=g[0],m=g[1],I=(0,E.useMemo)((function(){var e=[{title:"排名",dataIndex:"user_name",align:"center",render:function(e,n,t){var i=10*(c-1)+t+1;return i<=3?(0,y.jsx)("img",{src:G[i-1],alt:"rank",width:36}):i}},{title:"姓名",dataIndex:"user_name"},{title:null==l?void 0:l.rank_data_name,dataIndex:"score",render:function(e){return"DEFAULT"===(null==l?void 0:l.open_rank)?(0,M.li)(e):e}},{title:"通关时间",dataIndex:"end_time",render:function(e){return N()(e).format("YYYY-MM-DD HH:mm:ss")}}];return e}),[null==l?void 0:l.rank_data_name,null==l?void 0:l.open_rank,c]),x=function(){var e=f()(h()().mark((function e(){var n;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m(!0),e.next=3,(0,P.i8)(t,{page:c,limit:10});case 3:n=e.sent,m(!1),a({type:O.SET_STATE,payload:{loading:!1,data:n.data}});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,E.useEffect)((function(){return 4===n?(clearInterval(u.current),sessionStorage.getItem("rankingShixunDetailAutoRefersh")&&v(!0),x()):clearInterval(u.current),function(){clearInterval(u.current)}}),[c,n,t]);var v=function(e){e?u.current=setInterval((function(){x()}),1e4):clearInterval(u.current)};return(0,y.jsx)("div",{className:"ranking-container",children:o?(0,y.jsx)(B.Z,{avatar:!0,paragraph:{rows:4}}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(w.Z,{align:"middle",justify:"start",style:{marginBottom:"20px"},children:(0,y.jsx)(k.Z,{children:(0,y.jsxs)("div",{className:"flex-container",children:[(0,y.jsx)(D.Z,{checkedChildren:"开启",unCheckedChildren:"关闭",defaultChecked:!!sessionStorage.getItem("rankingShixunDetailAutoRefersh"),onChange:function(e){e?sessionStorage.setItem("rankingShixunDetailAutoRefersh","true"):sessionStorage.removeItem("rankingShixunDetailAutoRefersh"),v(e)}}),(0,y.jsx)("span",{className:"ml8",children:"自动刷新(开启后每10S更新一次数据)"})]})})}),l&&0!==(null==l?void 0:l.rank_list_count)?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(S.Z,{pagination:!1,size:"middle",dataSource:l.rank_list,columns:I,loading:p}),l.rank_list_count>10?(0,y.jsx)(b.Z,{style:{marginTop:20},showQuickJumper:!0,showSizeChanger:!1,onChange:function(e){a({type:O.SET_PAGE,payload:e})},current:c,total:l.rank_list_count}):null]}):(0,y.jsx)(R.Z,{styles:{margin:"20% auto"}})]})})},Z=t(33145),L=t(38279),U=t(8591),Y=t(43418),z=t(43428),K=t(24808),W="content-wrapper___kKoFC",V="scroll___lsiy3",X="unity-3d-container___kQAJh",q="unity-3d-resize___xD5aC",_="btn-enlarge___mQbst",$="enlarge___p_I6G",ee="tab-nav___iVZmY",ne="tab-fixed___SeByu",te="active___TjNGA",ie="tab-panel-body___iueV_",se="answer-tip___b7k1Y",re=t(31754),ae=t(31395),oe="YYYY-MM-DD HH:mm",ce=function(e){var n=e.challenge_optional,t=e.challenge,i=e.position,s=e.status,r=e.get_gold,a=e.get_experience,o=e.star,c=e.tag_count,l=e.finished_time,u=e.index,d=e.view_answer_time,h=e.name,g=e.identifier,f=e.identity,p=e.shixun,m=e.taskList,I=e.onSaveTaskStar,x=(0,C.useLocation)(),v=(0,C.useParams)(),Q=(0,C.useSearchParams)(),j=A()(Q,1)[0];var B=2===s||p.status<2||m[u-1]&&2===m[u-1].status||p.task_pass||f<=5;return(0,y.jsxs)("div",{className:"task-item-container ".concat(t.position===i?"active":""," ").concat(2===s?"finish":""),children:[(0,y.jsxs)("div",{className:"flex-container challenge-title space-between",children:[B?(0,y.jsxs)(w.Z,{wrap:!1,align:"middle",gutter:10,children:[(0,y.jsx)(k.Z,{children:(0,y.jsxs)("a",{href:"/tasks/".concat(g).concat(x.search),onClick:function(e){e.preventDefault(),v.courseId&&v.homeworkId?setTimeout((function(){return window.location.href="/tasks/".concat(v.courseId,"/").concat(v.homeworkId,"/").concat(g).concat(x.search)}),300):setTimeout((function(){return window.location.href="/tasks/".concat(g).concat(x.search)}),300)},children:["".concat(i,". ").concat(h)," "]})}),n&&Boolean(j.get("coursesId"))&&(0,y.jsx)(k.Z,{children:(0,y.jsx)("div",{className:"font12 mr10",style:{color:"#E88D13",padding:"5px 8px",borderRadius:"9999px",border:"1px solid rgba(232,141,19,0.4)",background:"rgba(239,165,58,0.12)",lineHeight:"12px",whiteSpace:"nowrap"},children:"可选做"})})]}):(0,y.jsxs)(w.Z,{wrap:!1,align:"middle",gutter:10,children:[(0,y.jsx)(k.Z,{children:(0,y.jsx)("span",{children:"".concat(i,". ").concat(h)})}),n&&Boolean(j.get("coursesId"))&&(0,y.jsx)(k.Z,{children:(0,y.jsx)("div",{className:"font12 mr10",style:{color:"#E88D13",padding:"5px 8px",borderRadius:"9999px",border:"1px solid rgba(232,141,19,0.4)",background:"rgba(239,165,58,0.12)",lineHeight:"12px",whiteSpace:"nowrap"},children:"可选做"})})]}),(0,y.jsx)("i",{className:"iconfont icon-wancheng1 ".concat(2===s?"green":"")})]}),(0,y.jsxs)("div",{className:"flex-container",children:[(0,y.jsxs)("p",{className:2===s?"green":"",children:[(0,y.jsx)("span",{children:"经验值"})," ",2===s&&a>0?"+":"",a]}),(0,y.jsxs)("p",{className:2===s?"green":"",children:[(0,y.jsx)("span",{children:"金币"})," ",2===s&&r>0?"+":""," ",r]}),(0,y.jsxs)("p",{children:[(0,y.jsx)("span",{children:"技能标签"})," ",c||"无"]})]}),(0,y.jsxs)("div",{className:"flex-container",children:[(0,y.jsxs)("p",{children:[(0,y.jsx)("span",{children:"完成时间"}),l?N()(l).format(oe):"--"]}),(0,y.jsxs)("p",{children:[(0,y.jsx)("span",{children:"查看答案时间"}),d?N()(d).format(oe):"--"]})]}),p.status>=2?(0,y.jsxs)("div",{className:"rate-container",children:[2===s&&0===o?(0,y.jsxs)(E.Fragment,{children:[(0,y.jsx)("span",{children:"给个评分吧:"}),(0,y.jsx)(ae.Z,{defaultValue:0,onChange:function(e){I(g,e,u)}})]}):null,2===s&&o>0?(0,y.jsxs)(E.Fragment,{children:[(0,y.jsx)("span",{children:"已评分:"}),(0,y.jsx)(ae.Z,{value:o,disabled:!0}),(0,y.jsxs)("span",{className:"highlight",children:[o,"分"]})]}):null]}):null]})},le=function(e){var n=e.taskList,t=e.challenge,i=e.shixun,s=e.identity,r=e.onSaveTaskStar,a=(0,C.useSearchParams)(),o=A()(a,1)[0];return(0,y.jsxs)("div",{className:"task-nav-container",children:[!!o.get("coursesId")&&(0,y.jsx)("p",{className:"task-tip",children:(0,y.jsxs)("div",{children:[(0,y.jsx)("span",{children:"温馨提示: "}),"若查看答案时间早于关卡任务完成时间,将影响课堂实训作业的成绩。"]})}),n.map((function(e,a){var o=v()(v()({},e),{},{identity:s,index:a,challenge:t,taskList:n,shixun:i,onSaveTaskStar:r});return(0,y.jsx)(ce,v()({},o),a)}))]})},ue={tree:"tree___LyfjL"},de=t(38318),he=t(26830),ge=t(31591),fe=t(99681),pe=function(){var e=f()(h()().mark((function e(n,t,i,s,r){var a,o;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=function(){r?(0,M.xg)(i?"/tasks/".concat(null==o?void 0:o.identifier,"/jupyter"):"/tasks/".concat(o.game_identifier,"?subject_id=").concat(s)):window.location.href=i?"/tasks/".concat(null==o?void 0:o.identifier,"/jupyter"):"/tasks/".concat(o.game_identifier,"?subject_id=").concat(s)},!i){e.next=7;break}return e.next=4,(0,fe.BK)({id:n,challenge_id:t,subject_id:s});case 4:e.t0=e.sent,e.next=10;break;case 7:return e.next=9,(0,fe.Ir)({id:n,challenge_id:t,subject_id:s});case 9:e.t0=e.sent;case 10:if(!(null!=(o=e.t0)&&o.game_identifier||null!=o&&o.identifier)){e.next=22;break}if(null==o||!o.access){e.next=16;break}a(),e.next=21;break;case 16:if(0!=(null==o?void 0:o.access)){e.next=20;break}return U.ZP.warning("当前实训不支持跳关,已为您跳转到该实训未通过的第一个关卡"),setTimeout((function(){pe(n,"",i,s,r)}),1e3),e.abrupt("return");case 20:a();case 21:return e.abrupt("return");case 22:-3===(null==o?void 0:o.status)?(0,M.eF)():2===(null==o?void 0:o.status)?Ae(null==o?void 0:o.message):3===(null==o?void 0:o.status)&&me(null==o?void 0:o.message);case 23:case"end":return e.stop()}}),e)})));return function(n,t,i,s,r){return e.apply(this,arguments)}}(),Ae=function e(n){var t,i;n=null!==(t=n)&&void 0!==t&&t.includes(".json")?n:"".concat(n,".json"),Y.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,y.jsx)("div",{className:"tc font16",children:"实训已经更新了,正在为您重置!"}),onOk:(i=f()(h()().mark((function t(){var i,s;return h()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,ge.$Q)({url:n});case 2:if(i=t.sent){t.next=5;break}return t.abrupt("return");case 5:return U.ZP.success("重置成功,正在进入实践项目!"),t.next=8,(0,fe.Ir)({id:i.shixun_identifier});case 8:if(null==(s=t.sent)||!s.game_identifier){t.next=12;break}return(0,M.xg)("/tasks/".concat(s.game_identifier)),t.abrupt("return");case 12:2===(null==s?void 0:s.status)?e(null==s?void 0:s.message):3===(null==s?void 0:s.status)&&me(null==s?void 0:s.message);case 13:case"end":return t.stop()}}),t)}))),function(){return i.apply(this,arguments)})})},me=function(e){Y.Z.confirm({centered:!0,title:"提示",okText:"确定",cancelText:"取消",content:(0,y.jsxs)("div",{className:"tc font16",children:["目前该实践项目尚在内测中,将于",e,"之后开放,谢谢!"]})})},Ie=de.Z.DirectoryTree,xe=function(e){var n=e.taskList,t=e.challenge,i=(e.shixun,e.identity,e.onSaveTaskStar,e.subject_id),r=((0,C.useParams)(),(0,C.useSearchParams)()),o=A()(r,1)[0],c=(0,E.useState)([]),l=A()(c,2),u=l[0],d=l[1],h=(0,E.useState)([]),g=A()(h,2),f=g[0],p=g[1],m=(0,E.useState)(),I=A()(m,2),x=I[0],v=I[1];(0,E.useEffect)((function(){w(n),p(k({children:n},t.id)),d(a()(n)),console.log("taskList:",n)}),[n]);var w=function e(n){n.map((function(n,i){var s;n.index=i,n.title=n.name,n.id==t.id&&v(n.key),null!==(s=n.children)&&void 0!==s&&s.length&&e(n.children)}))};function k(e,n){var t;if(e&&"object"===s()(e))return e.id==n?[]:e.children.some((function(e){return t=k(e,n)}))?[].concat(a()(t),[e.key]):void 0}return(0,y.jsxs)("div",{className:"task-nav-container",children:[!!o.get("coursesId")&&(0,y.jsx)("p",{className:"task-tip",children:(0,y.jsxs)("div",{children:[(0,y.jsx)("span",{children:"温馨提示: "}),"若查看答案时间早于关卡任务完成时间,将影响课堂实训作业的成绩。"]})}),!(null==u||!u.length)&&(0,y.jsx)("div",{style:{padding:10},children:(0,y.jsx)(Ie,{className:ue.tree,icon:(0,y.jsx)("i",{className:"iconfont icon-wancheng1 "}),switcherIcon:(0,y.jsx)("i",{className:"iconfont icon-you1 ",style:{position:"relative",top:-2}}),onSelect:function(e,n){var t,s;(console.log("Trigger Select",e,n),n.node.shixun_identifier)&&pe(n.node.shixun_identifier,n.node.key,(null===(t=n.node)||void 0===t?void 0:t.is_jupyter)||(null===(s=n.node)||void 0===s?void 0:s.is_jupyter_lab),i)},onExpand:function(){console.log("Trigger Expand")},selectedKeys:[x],defaultExpandedKeys:a()(f),treeData:u,titleRender:function(e,n,i){return(0,y.jsxs)("span",{className:"".concat(t.id==e.id?ue.active:""," multi_ellipsis1"),style:{paddingRight:34},children:["Shixun"===e.item_type&&(0,y.jsx)("i",{class:"iconfont icon-shixunti2 c-light-primary font20"}),"Challenge"===e.item_type&&(0,y.jsxs)("i",{style:{fontFamily:"monospace",position:"relative",top:"Shixun"===e.item_type?-2:0},children:["(",M.I9[e.index],")"]}),(0,y.jsx)("span",{style:{position:"relative",top:"Shixun"===e.item_type||"Stage"===e.item_type?-2:0},children:null==e?void 0:e.name}),"Stage"!==e.item_type&&(0,y.jsxs)("i",{className:"iconfont icon-tasks-img c-grey-999 ".concat(1==(null==e?void 0:e.status)&&"c-green-29b"),children:[(1==(null==e?void 0:e.status)||0==(null==e?void 0:e.status))&&(0,y.jsx)("img",{src:he.k$,width:"16"}),2==(null==e?void 0:e.status)&&(0,y.jsx)("img",{src:he.ub,width:"16"}),3==(null==e?void 0:e.status)&&(0,y.jsx)("img",{src:he.e6,width:"16"})]})]})}})})]})},ve=t(7714),Ee=t(16318),Ce=t(78241),we=t(57809),ke=t(92832),Qe=t(71418),ye=t(18030),je=function(e){var n=e.user_praise,t=e.praise_count,i=e.praisePlus,s=e.onCreateDiscuss,r=(e.user,e.userInfo),o=(0,E.useState)(!1),c=A()(o,2),l=c[0],u=c[1],d=(0,E.useState)(""),g=A()(d,2),p=g[0],m=g[1],I=(0,C.useParams)(),x=(0,C.useSearchParams)(),v=A()(x,1)[0],w=(0,E.useState)(!1),k=A()(w,2),Q=k[0],j=k[1],B=(0,E.useState)([]),D=A()(B,2),b=D[0],R=D[1],P=(0,E.useState)([]),M=A()(P,2),H=M[0],N=M[1],G=Ce.Z.useForm(),F=A()(G,1)[0],O=(0,E.useState)([]),J=A()(O,2),T=J[0],Z=J[1],L=(0,E.useState)(!1),W=A()(L,2),V=W[0],X=W[1],q=(0,E.useState)(!1),_=A()(q,2),$=_[0],ee=_[1],ne=(0,E.useState)(!1),te=A()(ne,2),ie=te[0],se=te[1],re=(0,E.useState)(0),ae=A()(re,2),oe=ae[0],ce=ae[1];(0,E.useEffect)(f()(h()().mark((function e(){var n,t,i,s,r;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!v.get("homework_common_id")){e.next=5;break}return e.next=3,(0,ye.ZP)("/api/shixun_homeworks/".concat(v.get("homework_common_id"),"/header_info.json"),{method:"get"});case 3:0===(null==(n=e.sent)?void 0:n.status)&&(R([{course_group_id:"-",group_group_name:"全部分班"}].concat(a()(null==n||null===(t=n.data)||void 0===t?void 0:t.course_group_info))),N([{id:"-",name:"全部状态"}].concat(a()(null==n||null===(i=n.data)||void 0===i||null===(i=i.task_status)||void 0===i?void 0:i.filter((function(e){return 0!=(null==e?void 0:e.id)&&-1!=(null==e?void 0:e.id)}))))),F.setFieldsValue({course_group:v.get("courseGroup")?null===(s=v.get("courseGroup").split(","))||void 0===s?void 0:s.map((function(e){return"-"==e?e:Number(e)})):["-"],work_status:v.get("workStatus")?null===(r=v.get("workStatus").split(","))||void 0===r?void 0:r.map((function(e){return"-"==e?e:Number(e)})):["-"],search:v.get("search")?v.get("search"):""}),le());case 5:case"end":return e.stop()}}),e)}))),[]);var le=function(){var e=f()(h()().mark((function e(){var n,t,i,s,r,a;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return X(!0),e.next=3,(0,ye.ZP)("/api/shixun_homeworks/".concat(v.get("homework_common_id"),"/all_student_works.json"),{method:"get",params:{search:F.getFieldValue("search"),course_group:F.getFieldValue("course_group"),work_status:F.getFieldValue("work_status")}});case 3:if(0===(null==(n=e.sent)?void 0:n.status))for(i in Z(null==n||null===(t=n.data)||void 0===t?void 0:t.student_works),ee(!1),se(!1),null==n||null===(s=n.data)||void 0===s?void 0:s.student_works)(null==I?void 0:I.taskId)==(null==n||null===(r=n.data)||void 0===r||null===(r=r.student_works[i])||void 0===r?void 0:r.game_identifier)&&(ce(i),ee(0!=i),i!=(null==n||null===(a=n.data)||void 0===a||null===(a=a.student_works)||void 0===a?void 0:a.length)-1?se(!0):se(!1));X(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function ue(){u(!1)}function de(){return(de=f()(h()().mark((function e(){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=r&&r.authentication){e.next=3;break}return Y.Z.confirm({title:"提示",className:"custom-modal-divider ",icon:null,content:"需要通过实名验证后,才能进行评论操作",okText:"前往实名验证",cancelText:"取消",onOk:function(){window.open("/account/certification")}}),e.abrupt("return");case 3:if(""!=p.trim()){e.next=6;break}return U.ZP.warning("内容不能为空"),e.abrupt("return");case 6:s(p),m(""),u(!1);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,y.jsxs)("div",{className:"comment-input-editor-container ".concat(l?"active":""," "),children:[(0,y.jsxs)("div",{className:l?"text-area hide":"text-area",children:[(0,y.jsx)("input",{placeholder:"说点什么",onClick:function(){u(!0)}}),(0,y.jsxs)("a",{className:"c-light-black",onClick:i,title:n?"取消点赞":"点赞",children:[(0,y.jsx)("i",{className:"mr3 ".concat(n?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"," "),alt:"赞"}),t?(0,y.jsx)("span",{children:t}):""]})]}),l?(0,y.jsx)("div",{className:"input-mask",onClick:ue}):null,(0,y.jsxs)("div",{className:l?"md-container":"md-container hide",children:[(0,y.jsx)(Ee.Z,{id:"discuss-input-editor",startInit:l,miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:p,height:240,onChange:function(e){m(e)}}),(0,y.jsxs)("div",{className:"tip-container",onClick:ue,children:[(0,y.jsx)("p",{children:"请勿粘贴答案,否则将造成账号禁用后果!"}),(0,y.jsx)("a",{className:"btn-send",style:{color:"#fff",background:"#0152d9"},onClick:function(){return de.apply(this,arguments)},children:"发送"})]})]}),v.get("homework_common_id")&&(0,y.jsxs)("div",{className:"students",children:[(0,y.jsx)("div",{className:"students_list",onClick:function(){j(!0)},children:"学生列表"}),(0,y.jsx)("div",{style:{marginLeft:"auto"}}),$&&(0,y.jsx)("div",{className:"students_change",onClick:function(){var e;C.history.push("".concat(null==T||null===(e=T[Number(oe)-1])||void 0===e?void 0:e.url,"&courseGroup=").concat(F.getFieldValue("course_group")||"","&workStatus=").concat(F.getFieldValue("work_status")||"","&search=").concat(F.getFieldValue("search")||"")),location.reload()},children:"上一个"}),ie&&(0,y.jsx)("div",{className:"students_change",onClick:function(){var e;C.history.push("".concat(null==T||null===(e=T[Number(oe)+1])||void 0===e?void 0:e.url,"&courseGroup=").concat(F.getFieldValue("course_group")||"","&workStatus=").concat(F.getFieldValue("work_status")||"","&search=").concat(F.getFieldValue("search")||"")),location.reload()},children:"下一个"})]}),(0,y.jsx)(K.Z,{children:(0,y.jsxs)(z.Z,{title:null,style:{width:"700px"},placement:"left",closable:!1,open:Q,onClose:function(){return j(!1)},children:[(0,y.jsx)("div",{style:{fontSize:"16px",marginBottom:"20px",fontWeight:"bold"},children:"学生列表"}),(0,y.jsxs)(Ce.Z,{form:F,layout:"inline",className:"myformStyle",children:[(0,y.jsx)(Ce.Z.Item,{name:"course_group",children:(0,y.jsx)(we.default,{maxTagCount:1,style:{width:180},mode:"multiple",onChange:function(e){(null==e?void 0:e.length)<2?F.setFieldValue("course_group",e):"-"==(null==e?void 0:e[(null==e?void 0:e.length)-1])?F.setFieldValue("course_group",["-"]):F.setFieldValue("course_group",null==e?void 0:e.filter((function(e){return"-"!=e}))),le()},children:b.map((function(e){return(0,y.jsx)(we.default.Option,{value:e.course_group_id,children:e.group_group_name},e.course_group_id)}))})}),(0,y.jsx)(Ce.Z.Item,{name:"work_status",children:(0,y.jsx)(we.default,{maxTagCount:1,style:{width:180,marginLeft:"10px"},mode:"multiple",onChange:function(e){(null==e?void 0:e.length)<2?F.setFieldValue("work_status",e):"-"==(null==e?void 0:e[(null==e?void 0:e.length)-1])?F.setFieldValue("work_status",["-"]):F.setFieldValue("work_status",null==e?void 0:e.filter((function(e){return"-"!=e}))),le()},children:H.map((function(e){return(0,y.jsx)(we.default.Option,{value:e.id,children:e.name},e.id)}))})}),(0,y.jsx)(Ce.Z.Item,{name:"search",children:(0,y.jsx)(ke.Z.Search,{placeholder:"请输入学生姓名搜索",className:"mySearch",onChange:function(e){return F.setFieldValue("search",e.target.value)},suffix:(0,y.jsx)("i",{className:"iconfont icon-sousuo9 font14 ",style:{cursor:"pointer"},onClick:function(){return le()}})})})]}),(0,y.jsx)(Qe.Z,{spinning:V,children:(0,y.jsx)(S.Z,{style:{marginTop:"20px"},dataSource:T,scroll:{y:"70vh"},columns:[{title:"姓名",dataIndex:"user_name"},{title:"学号",dataIndex:"student_id"},{title:"分班",dataIndex:"group_name"},{title:"最终成绩",dataIndex:"final_score"},{title:"操作",render:function(e,n){return(0,y.jsx)("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:function(){C.history.push("".concat(null==n?void 0:n.url,"&courseGroup=").concat(F.getFieldValue("course_group")||"","&workStatus=").concat(F.getFieldValue("work_status")||"","&search=").concat(F.getFieldValue("search")||"")),location.reload()},children:"查看"})}}],pagination:!1})})]})})]})},Be=t(50021),De=t(70089),Se=function(e){var n=e.data;return(0,y.jsx)(E.Fragment,{children:n&&n.map((function(e){return(0,y.jsxs)("div",{className:"choose-answer-item",children:[(0,y.jsxs)("p",{children:["第",e.position,"题"]}),(0,y.jsx)(L.Z,{value:e.answer})]},e.position)}))})},be=function(e){var n=e.data,t=e.onShowUnlockAnswerModal,i=e.challenge,s=null!=i&&i.disable_copy?{userSelect:"none"}:{};return(0,y.jsx)(E.Fragment,{children:n&&n.map((function(e,n){var i=e.answer_id,r=e.answer_name,a=e.answer_contents,o=e.view_time;return(0,y.jsxs)("div",{className:"answer-item-container",style:s,children:[(0,y.jsxs)("div",{className:"flex-container",children:[(0,y.jsxs)("span",{className:"level",children:[" 级别",n+1,": "]}),(0,y.jsx)("span",{className:"name",children:r}),a?(0,y.jsxs)(E.Fragment,{children:[(0,y.jsx)("span",{className:"view-time",children:o?N()(o).format("YYYY-MM-DD HH:mm"):""}),(0,y.jsx)("span",{children:"已解锁"})]}):(0,y.jsx)("a",{onClick:t,children:"解锁"})]}),a?(0,y.jsx)(L.Z,{value:a}):null]},i)}))})},Re=function(e){var n=e.loading,t=e.data,i=e.onShowTip,s=e.st,r=e.challenge,a=(0,E.useRef)(null),o=(0,E.useRef)(null),c=(0,E.useRef)(null),l=(0,E.useRef)(null),u=(0,E.useRef)({x:0,y:0});return(0,E.useEffect)((function(){if(a.current&&null!=r&&r.disable_copy){var e=function(e){u.current={x:e.clientX,y:e.clientY},clearTimeout(c.current),clearTimeout(l.current),c.current=setTimeout((function(){o.current.style.left="".concat(u.current.x,"px"),o.current.style.top="".concat(u.current.y,"px"),o.current.style.display="block"}),1e3),l.current=setTimeout((function(){o.current.style.display="none",clearTimeout(c.current),clearTimeout(l.current)}),3e3)},n=function(){o.current.style.display="none",clearTimeout(c.current),clearTimeout(l.current)},t=function(e){u.current={x:e.clientX,y:e.clientY}};return a.current.addEventListener("mouseenter",e),window.addEventListener("mousemove",t),a.current.addEventListener("mouseleave",n),function(){var i,s;null===(i=a.current)||void 0===i||i.removeEventListener("mouseenter",e),window.removeEventListener("mousemove",t),null===(s=a.current)||void 0===s||s.removeEventListener("mouseleave",n)}}}),[null==a?void 0:a.current,null==r?void 0:r.disable_copy]),(0,y.jsxs)("div",{ref:a,className:"answer-container",children:[(0,y.jsx)("div",{ref:o,className:"answer-tips-css",children:"禁止复制参考答案"}),n?(0,y.jsx)(De.Z,{}):null,1===s?(0,y.jsx)(Se,{data:t}):(0,y.jsx)(be,{data:t,challenge:r,onShowUnlockAnswerModal:i})]})},Pe=t(24905),Me=function(e){var n=e.data,t=e.selected_unlocked_answer_id,i=e.selected_index,s=e.onSelect;if(!n)return null;var r=n.filter((function(e,n){return!e.answer_contents&&(e.index=n,!0)}));function a(e){var n=e.target,t=n.value,i=n.checked;s(i?t:null)}return(0,y.jsxs)("table",{className:"unlock-answer-list",children:[(0,y.jsx)("thead",{children:(0,y.jsxs)("tr",{children:[(0,y.jsx)("th",{}),(0,y.jsx)("th",{children:"级别"}),(0,y.jsx)("th",{children:"名称"}),(0,y.jsx)("th",{children:"扣分占比"}),(0,y.jsx)("th",{children:"扣减金币"})]})}),(0,y.jsx)("tbody",{children:r.map((function(e,n){return(0,y.jsxs)("tr",{children:[(0,y.jsx)("td",{children:(0,y.jsx)(Pe.Z,{value:e.answer_id,onChange:a,checked:e.answer_id===t||t&&i>=n})}),(0,y.jsx)("td",{children:e.index+1}),(0,y.jsx)("td",{children:e.answer_name}),(0,y.jsxs)("td",{children:[e.answer_ratio,"%"]}),(0,y.jsx)("td",{className:"gold-color",children:e.answer_score})]},e.answer_id)}))})]})},He="unity3d-panel___aA1uJ",Ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAAXNSR0IArs4c6QAACYdJREFUeF7tnGtsFNcVx8+5dx+4YLDBqNAkGFNMwcb7snmlcWogCDUlBSU1SoJI1mtSJVGbRqJRP1RV9ks/9IFUJY1SWXhZEpFEWKJy26RpKDEqhKd3Z3aN3Ra75VEClDQYaoO96517qrExNYvt3Z1Z7+Ls+Itl7/mfOed3z869c+fMoN0tP45AFcAAwfhJnoAAIsA2dLilVw14y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AAAA0VXHyAAABcElEQVQ4EYWTMUvDUBSFk9rS0loHxcVJxMlBcPMXOCgoLm5uujiLBRd3HQRBxUUQBwdxEHQQHEUHEUvBSREcbIuCOgmiNX6neQlp8qQPPu65955309umjhM7nucNQgXeYS7Wbp9yaQN2YRiq7W6kLIYitSvXdSvEhqXfUrINiBrSfIpT2IZCtBFo2wA3aBLTUIYcXDCkDMvo8NgGhE0jVon70AclmGbIHdRgVk9wED2EBnt/KI8dj1zc0j/DO4aWfwUuUxQWEc/waDQyPNeorzDzhYbdMOyJmNEK2klT+2ECpqB5MI2DBtzDoV91fojfRuf18U9gXQViDo5h3hgSgV4Rssb/q0udcA5boJU6YCBxM1bAo4f56yGycAQHkIl5rSm+bqg1f0az5wzOT9AKeeut1uIQaTX60mgd5WswCpMMfiNaD94dGvX/miUMdViA3sCE1nekP9km6K3sCnqJSHME9uABXuEFNFSv9BIUdOkPNwD5qttE6qEAAAAASUVORK5CYII=",Oe=t(79133),Je=t.n(Oe),Te=function(e){var n=e.unity_3d_routes,t=e.onGetUnity3dMessage,i=e.taskData,s=e.userInfo,r=e.itemData,a=void 0===r?{}:r,o=e.codeRepData,c=a.shixun_environment_id,l=a.tab_type,d=a.index_tab,g=(0,E.useRef)(),p=(0,E.useState)(!0),m=A()(p,2),I=m[0],x=m[1],w=(0,E.useState)("正在努力加载中..."),k=A()(w,2),Q=k[0],j=k[1],B=(0,E.useState)({}),D=A()(B,2),S=D[0],b=D[1],R=(0,C.useSelector)((function(e){var n;return null==e||null===(n=e.user)||void 0===n?void 0:n.userInfo})),H=(0,E.useState)(!1),N=A()(H,2),G=N[0],F=N[1],O=(0,C.useParams)(),J=(0,E.useState)(6!==l?5===l?S.thiry_party_url:n:null),T=A()(J,2),Z=T[0],L=T[1];(0,E.useEffect)((function(){var e;function n(e){return r.apply(this,arguments)}function r(){return r=f()(h()().mark((function e(n){var r,a,o;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"fetchData"!==n.data.type||"JKLJSOIWOIC~"!==n.data.key){e.next=8;break}return r=n.data.requestId,e.next=5,(0,ye.ZP)(n.data.url,v()({},n.data.params));case 5:return a=e.sent,g.current.contentWindow.postMessage({type:"fetchData",requestId:r,data:a},"*"),e.abrupt("return");case 8:o=JSON.parse(n.data),t(o),"getTaskData"===o.type&&Y({taskData:i,userInfo:s,cookie:(0,M.ej)("_educoder_session"),currentLoginUser:R}),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),console.log("error:",e.t0,n);case 16:case"end":return e.stop()}}),e,null,[[0,13]])}))),r.apply(this,arguments)}var a=sessionStorage.getItem("Tpilist"),o=JSON.parse(a)||[],c=null==o||null===(e=o.filter((function(e){return e.id===O.taskId})))||void 0===e?void 0:e[0],l=1===performance.navigation.type||(null==c?void 0:c.id)===O.taskId&&((new Date).getTime()-new Date(null==c?void 0:c.time).getTime())/1e3/3600>24;if(F(l),null==c||!c.id){var u={id:O.taskId,time:new Date};o.push(u),sessionStorage.setItem("Tpilist",JSON.stringify(o))}window.addEventListener("message",n);var d=Be.Z.subscribe("evaluate-unity3d-result",(function(e){Y(e)})),p=Be.Z.subscribe("unity3d-reset",(function(e){"start"===e&&(x(!0),j("正在重置中..."),b({})),"done"===e&&U()}));return function(){window.removeEventListener("message",n),d(),p()}}),[]),(0,E.useEffect)((function(){5===l&&U(),6===l&&null!=o&&o.content&&L((5===l?S.thiry_party_url:n)+"&ctz=".concat(Je().compressToEncodedURIComponent((null==o?void 0:o.content)||"123")))}),[l,null==o?void 0:o.content]);var U=function(){var e=f()(h()().mark((function e(){var n,t,s,r,a,o;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return x(!0),e.next=3,(0,P.sA)(null===(n=i.myshixun)||void 0===n?void 0:n.identifier,{shixun_environment_id:c,tab_type:l});case 3:if(s=e.sent,x(!1),null==s||null===(t=s.data)||void 0===t||null===(t=t.data_list)||void 0===t||!t.length){e.next=8;break}return Be.Z.publish("pod-restrict-data",{identifier:null==s||null===(r=s.data)||void 0===r?void 0:r.identifier,data_list:null==s||null===(a=s.data)||void 0===a?void 0:a.data_list}),e.abrupt("return");case 8:0===(null==s?void 0:s.status)&&(s.data.thiry_party_url=(null==s||null===(o=s.data)||void 0===o?void 0:o.link_url)+"?t="+(new Date).getTime(),Be.Z.publish("send-tabs-result-data",v()(v()({},null==s?void 0:s.data),{},{index_tab:d})),Be.Z.publish("update-windows-time",null==s?void 0:s.data),b(v()({},s.data||{})),L(s.data.thiry_party_url));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function Y(e){g.current&&g.current.contentWindow.postMessage(JSON.stringify(e),"*")}return(0,y.jsx)(E.Fragment,{children:(0,y.jsx)("div",{style:{height:"100%"},children:G?(0,y.jsxs)("div",{style:{height:"100%"},children:[I&&(0,y.jsx)(De.Z,{className:"c-white",message:Q}),Z&&(0,y.jsx)("iframe",{onLoad:function(){x(!1)},className:He,ref:g,id:"unity3d",allow:"geolocation document-domain camera *;microphone *",sandbox:"allow-scripts microphone allow-downloads allow-same-origin allow-top-navigation allow-forms allow-popups allow-pointer-lock allow-popups-to-escape-sandbox allow-presentation allow-top-navigation-by-user-activation",src:Z})]}):(0,y.jsxs)("div",{style:{display:"flex",height:"100%",position:"relative",overflow:"hidden",alignItems:"center",background:"#1E1E1E",justifyContent:"center",flexDirection:"column"},children:[(0,y.jsx)("img",{src:Ne}),(0,y.jsx)(Ge.ZP,{onClick:function(){F(!0)},icon:(0,y.jsx)("img",{src:Fe,style:{width:16,marginBottom:3}}),type:"primary",style:u()({width:"#3061D0",marginTop:40},"width",140),children:"启动环境"}),(0,y.jsx)("p",{style:{marginTop:30,color:"#AFB1B3"},children:"点击上方按钮,启动实验环境。"})]},"123213123")})})},Ze=t(64294),Le=t(53802),Ue=t(93697);function Ye(e){var n=e.target;if("IMG"===n.tagName.toUpperCase()){var t=n.src||n.getAttribute("src");t&&-1===t.indexOf("/images/avatars/User")&&(e.stopPropagation(),e.preventDefault(),Be.Z.publish("preview-image",t))}}var ze={showTaskList:!1,activeIndex:0,taskList:[],enlarge_unity3D:!1,tab_fixed:!1,selected_unlocked_answer_id:null,isMultiLevel:!1,showTip:!1,answerScore:0,data:null,loading:!1};function Ke(e,n){switch(n.type){case Z.n_:return v()(v()({},e),{},{activeIndex:n.payload});case Z.lS:return v()(v()({},e),{},{enlarge_unity3D:n.payload});case Z.gK:return v()(v()({},e),{},{tab_fixed:n.payload});case Z.Hp:return v()(v()({},e),{},{showTaskList:!0});case Z.hK:return v()(v()({},e),{},{showTaskList:!1});case Z.sM:case Z.ib:return v()(v()({},e),n.payload);case Z.wt:return v()(v()({},e),{},{loading:!0});case Z.Rj:return v()(v()({},e),{},{showTip:!0});case Z.NZ:return v()(v()({},e),{},{showTip:!1});case Z.ym:return v()(v()({},e),{},{selected_unlocked_answer_id:n.payload});case Z.pl:return v()(v()({},e),n.payload);default:throw new Error}}var We=(0,C.connect)((function(e){return{userInfoData:e.user}}))((function(e){var n=e.taskId,t=e.minuxUserGrade,i=e.discusses_count,s=e.is_teacher,r=e.has_answer,o=e.user,c=e.st,l=e.game,u=e.rank_name,d=e.challenge,g=e.myshixun,p=e.user_praise,m=e.praise_count,I=e.unity_3d_routes,x=e.with_code_file,w=e.onPlusOrCancelPraise,k=e.onGetUnity3dMessage,Q=e.shixun,B=e.taskData,D=e.chatgpt,R=e.userInfoData,H=e.to_user_id,G=(0,C.useSearchParams)(),F=A()(G,1)[0],O=(0,E.useReducer)(Ke,ze),J=A()(O,2),ae=J[0],oe=J[1],ce=(0,E.useState)(!1),ue=A()(ce,2),de=ue[0],he=ue[1],ge=(0,E.useState)(!1),fe=A()(ge,2),pe=fe[0],Ae=fe[1],me=(0,E.useState)({}),Ie=A()(me,2),Ee=Ie[0],Ce=Ie[1],we=(0,C.useParams)(),ke=(0,E.useState)([]),Qe=A()(ke,2),De=Qe[0],Se=Qe[1],be=(0,E.useState)({page:1,limit:10}),Pe=A()(be,2),He=Pe[0],Ne=Pe[1],Ge=ae.taskList,Fe=ae.showTaskList,Oe=ae.activeIndex,Je=ae.enlarge_unity3D,We=ae.tab_fixed,Ve=ae.data,Xe=ae.answerScore,qe=ae.loading,_e=ae.showTip,$e=ae.isMultiLevel,en=ae.selected_unlocked_answer_id,nn=(0,E.useRef)(),tn=(0,E.useMemo)((function(){var e=0;if(Ve&&en)for(var n=Ve.filter((function(e){return!e.answer_contents})),t=0;t1,activeIndex:i?Oe:2}});case 12:case"end":return e.stop()}}),e)}))),gn.apply(this,arguments)}function fn(e){var n=e.choose_answers,t=e.message,i=e.status;0!==i?oe({type:Z.pl,payload:{showTip:1===i,data:n,answerScore:t,loading:!1,activeIndex:1===i?Oe:2}}):t.info(t)}function pn(){return(pn=f()(h()().mark((function e(){var n,i,s,r;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(he(!0),1!==c){e.next=8;break}return e.next=4,(0,P.MH)(l.identifier);case 4:-1!==(null==(n=e.sent)?void 0:n.status)&&(t(Xe),fn(n)),e.next=14;break;case 8:if(!en){e.next=14;break}return e.next=11,(0,P.j3)(l.identifier,en);case 11:i=e.sent,s=i.status,i.message,-1===s||($e?(r=0,Ve.filter((function(e){return!e.answer_contents})).forEach((function(e,n){n<=tn&&e&&(r+=e.answer_score)})),t(r)):t(Xe),hn(),An(null),oe({type:Z.NZ}));case 14:he(!1);case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function An(e){oe({type:Z.ym,payload:e})}function mn(){return(mn=f()(h()().mark((function e(){var n,t;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!F.get("subject_id")){e.next=7;break}return e.next=4,(0,P.SO)(g.identifier,v()({},(0,M.oP)()));case 4:t=e.sent,e.next=10;break;case 7:return e.next=9,(0,P.g6)(g.identifier,{homework_common_id:null==we?void 0:we.homeworkId});case 9:t=e.sent;case 10:oe({type:Z.sM,payload:{taskList:(null===(n=t)||void 0===n?void 0:n.stages)||t,showTaskList:!0}}),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),console.log(e.t0);case 16:case"end":return e.stop()}}),e,null,[[0,13]])})))).apply(this,arguments)}function In(e,n,t){return xn.apply(this,arguments)}function xn(){return(xn=f()(h()().mark((function e(n,t,i){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,P.L5)(n,Q.id,t);case 3:Ge[i].star=t,oe({type:Z.ib,payload:{taskList:a()(Ge)}}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}(0,E.useEffect)((function(){var e,n=null==R?void 0:R.userInfo;n&&(Ce(v()({},n)),Ae(null==n||null===(e=n.shixun)||void 0===e?void 0:e.own))}),[null==Q?void 0:Q.identifier]),(0,E.useEffect)((function(){return function(){oe({type:Z.hK}),oe({type:Z.n_,payload:0})}}),[n]),(0,E.useEffect)((function(){oe({type:Z.n_,payload:F.get("extra")?3:0})}),[F.get("extra")]),(0,E.useEffect)((function(){if(rn.current)return rn.current.addEventListener("mousedown",Ye),function(){var e;null===(e=rn.current)||void 0===e||e.removeEventListener("mousedown",Ye)}}),[rn.current]),(0,E.useEffect)((function(){if(x&&I&&rn.current){var e=(0,Ze.Ds)((function(e){var n=e.target.scrollTop;oe(n>=354?{type:Z.gK,payload:!0}:{type:Z.gK,payload:!1})}),10);rn.current.addEventListener("scroll",e);var n=Be.Z.subscribe("evaluate-unity3d-finish",(function(){rn.current.scrollTop=0}));return function(){var t;null===(t=rn.current)||void 0===t||t.removeEventListener("scroll",e),n()}}oe({type:Z.gK,payload:!0})}),[x,I,rn.current]);var vn=d.position,En=d.score,Cn=d.subject,wn={onViewAllTask:function(){!function(){mn.apply(this,arguments)}()},position:vn,score:En,subject:Cn,challenge_optional:null==B?void 0:B.challenge_optional};function kn(){return(kn=f()(h()().mark((function e(n){var t;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,re.rd)({content:n,container_type:"Shixun",container_id:Q.id,challenge_id:d.id,position:vn});case 2:if(-3!==(t=e.sent).status){e.next=6;break}return Y.Z.info({title:"提示",className:"custom-modal-divider ",icon:null,content:"你的账号因为发布了不当内容,现已将评论功能屏蔽。",okText:"确定"}),e.abrupt("return");case 6:console.log(t),oe({type:Z.n_,payload:3}),Be.Z.publish("create-discuss");case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Qn={loading:qe,data:Ve,onShowTip:function(){oe({type:Z.Rj})},st:c,challenge:d};return(0,E.useEffect)((function(){if(nn.current){var e,n=function(e){r=s.offsetHeight,a=!0,o=e.pageY,(0,M.kk)("none"),nn.current.style.background="#179fff",document.onselectstart=function(){return!1}},t=function(){var e;a=!1,(0,M.kk)("auto"),document.onselectstart=null,null===(e=nn.current)||void 0===e||e.removeAttribute("style")},i=function(e){if(a){var n=e.pageY-o,t=r+n;t<200&&(t=200),t>window.innerHeight-200&&(t=window.innerHeight-200),s.style.height=t+"px"}},s=document.querySelector("."+X),r=0,a=!1,o=0;return null===(e=nn.current)||void 0===e||e.addEventListener("mousedown",n),document.addEventListener("mousemove",i),document.addEventListener("mouseup",t),function(){var e;null===(e=nn.current)||void 0===e||e.removeEventListener("mousedown",n),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",t)}}}),[nn]),(0,y.jsxs)(E.Fragment,{children:[(0,y.jsx)(j,v()({},wn)),(0,y.jsxs)("div",{className:W,children:[(0,y.jsxs)("div",{ref:rn,className:V,children:[I&&x&&0===(null==B?void 0:B.unity3d_show_location)?(0,y.jsxs)("div",{className:"".concat(X," ").concat(Je?$:""),style:{height:354},children:[(0,y.jsx)("div",{className:q,ref:nn}),(0,y.jsx)("a",{onClick:function(){oe({type:Z.lS,payload:!Je})},className:"".concat(_," ").concat(Je?$:""),children:(0,y.jsx)("i",{className:"iconfont ".concat(Je?"icon-suoxiao1":"icon-kuoda"," ")})}),(null==Ee?void 0:Ee.user_id)&&(0,y.jsx)(Te,{userInfo:Ee,taskData:B,unity_3d_routes:I,onGetUnity3dMessage:k})]}):null,(0,y.jsx)("ul",{className:"".concat(ee," ").concat(We?ne:""),children:on.map((function(e){return(0,y.jsx)("li",{onClick:cn,id:e.index,className:Oe===e.index?te:"",children:(0,y.jsxs)("a",{children:[e.title,3===e.index&&i?(0,y.jsx)("span",{children:i}):null]})},e.title)}))}),(0,y.jsxs)("div",{children:[(0,y.jsx)(L.Z,{className:0===Oe?ie:"hide",value:d.task_pass,stylesPrev:{position:"absolute"}}),(0,y.jsx)("div",{className:1===Oe?ie:"hide",children:sn?(0,y.jsx)(L.Z,{value:sn}):null}),(0,y.jsx)("div",{className:2===Oe?ie:"hide",style:{paddingTop:40},children:(0,y.jsx)(Re,v()({},Qn))}),(0,y.jsx)("div",{className:3===Oe?ie:"hide",children:(0,y.jsx)(ve.Z,{activeIndex:Oe,userInfo:Ee,shixunIdentifier:Q.identifier,identity:o.identity,user:o,allowDisableDiscuss:pe,taskData:B,chatgpt:D,to_user_id:H,challengeId:d.id})}),(0,y.jsx)("div",{className:5===Oe?ie:"hide",children:(0,y.jsxs)("div",{style:{background:"#fff",height:"100vh"},children:[(0,y.jsx)(S.Z,{style:{marginTop:10},pagination:!1,dataSource:null==De?void 0:De.list,columns:[{title:"恢复初始代码时间",dataIndex:"created_at",render:function(e,n,t){return N()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"操作",dataIndex:"redo_type",render:function(e,n,t){var i;return null===(i=[{id:1,name:"打回重做"},{id:2,name:"恢复初始代码"},{id:3,name:"重置代码仓库"}].find((function(n){return n.id===e})))||void 0===i?void 0:i.name}}]}),(0,y.jsx)(b.Z,{style:{marginTop:10},current:He.page,total:null==De?void 0:De.count,hideOnSinglePage:!0,onChange:function(){var e=f()(h()().mark((function e(n){var t;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return He.page=n,Ne(He),e.next=3,(0,ye.ZP)("/api/tasks/".concat(we.taskId,"/redo_logs.json"),{method:"get",params:v()(v()({},He),{},{courseId:we.courseId})});case 3:0===(null==(t=e.sent)?void 0:t.status)&&Se(null==t?void 0:t.data);case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()})]})}),(0,y.jsx)("div",{className:4===Oe?ie:"hide",children:(0,y.jsx)(T,{activeIndex:Oe,taskId:n})})]})]}),"exercises"!==F.get("type")&&!(null!=Q&&Q.is_disable_discuss)&&!l.homework_common_comment_open&&(0,y.jsx)(je,{user:o,userInfo:Ee,user_praise:p,praise_count:m,praisePlus:w,onCreateDiscuss:function(e){return kn.apply(this,arguments)}})]}),(0,y.jsxs)(K.Z,{children:[(0,y.jsxs)(z.Z,{rootClassName:"task-drawer",width:420,title:null,placement:"left",closable:!1,open:Fe,onClose:function(){oe({type:Z.hK})},getContainer:function(){return document.getElementById("task-left-panel")},children:[F.get("subject_id")&&(0,y.jsx)(xe,v()(v()({taskList:a()(Ge),challenge:d,shixun:Q},(0,M.oP)()),{},{identity:o.identity,onSaveTaskStar:In})),!F.get("subject_id")&&(0,y.jsx)(le,{taskList:a()(Ge),challenge:d,shixun:Q,identity:o.identity,onSaveTaskStar:In})]}),(0,y.jsxs)(Y.Z,{centered:!0,title:"提示",open:_e,onOk:function(){return pn.apply(this,arguments)},onCancel:function(){oe({type:Z.NZ})},confirmLoading:de,className:se,children:[s?(0,y.jsx)("p",{}):(0,y.jsx)("p",{children:"先查看参考答案,再通过评测的学生,实训作业有可能是零分哦~"}),$e?(0,y.jsx)(Me,{selected_index:tn,selected_unlocked_answer_id:en,onSelect:An,data:Ve}):(0,y.jsx)("p",{children:"查看答案将扣除".concat(Xe,"点金币,是否确认查看答案")})]}),(0,y.jsx)(Le.Z,{})]})]})})),Ve=t(31797),Xe=t(65615),qe=t(77818);function _e(e){return e.toString().padStart(2,"0")}function $e(e){var n=Math.floor(e/60),t=e%60,i=Math.floor(n/60);return"".concat(_e(i),":").concat(_e(n-60*i),":").concat(_e(t))}var en=function(e){var n=e.defaultTime,t=e.status,i=e.onUpdateCostTime,s=e.lastedGetTaskInfoTime,r=e.retentionTime,a=void 0===r?"":r,o=e.title,c=void 0===o?"":o,l=(0,E.useState)(n||0),u=A()(l,2),d=u[0],h=u[1],g=(0,E.useRef)();return(0,E.useEffect)((function(){s&&(h(n),g.current=n)}),[n,s]),(0,E.useEffect)((function(){if(s)return Be.Z.subscribe("update-cost-time",(function(){2!==t&&i(g.current)}))}),[s]),(0,qe.Z)((function(){a&&localStorage.setItem(a,String(d+1)),h(d+1),g.current=g.current+1}),2===t?null:1e3),(0,y.jsxs)("span",{children:[c?"".concat(c,":"):null,$e(d)]})},nn=t(91232),tn=t.n(nn),sn="action-bar___bbigU",rn="startDebug___tLWzR",an="disabledDebug___npN0z",on=t(6848),cn=t(14478),ln=t(680),un=t(60141),dn=t(56102),hn=t(89392);function gn(e){var n=e.onShowNotice,t=e.className,i=void 0===t?"":t;return(0,y.jsx)("a",{title:"更新通知",onClick:n,className:i,children:(0,y.jsx)("img",{width:14,src:un,alt:"notice"})})}function fn(e){var n,t=e.code_hidden,i=e.gameStatus,s=e.isEditPath,r=(e.currentPath,e.git_url),a=(e.monitoring_url,e.onResetCode),o=e.onResetGitCode,c=e.onShowCodeSetting,l=e.onResetPassedCode,u=e.onShowDir,d=e.onRightFullHandler,g=e.isResizeLarge,p=e.tab_type,m=e.startDebug,I=e.setStartDebug,x=(e.breakPointValue,e.shixun,e.myshixun),v=e.game,w=e.unique,k=e.setUnique,Q=e.setHighlightLine,j=e.allow_use_code_debugger,B=e.onUpdateCode,D=e.allBreakPointValue,S=e.setAllBreakPointValue,b=e.setBreakPointValue,R=(e.isTheoretical,e.git_zip_url),P=(e.code_editor,(0,C.useSearchParams)()),H=A()(P,1)[0],N=(0,E.useState)(""),G=A()(N,2),F=G[0],O=G[1];(0,E.useEffect)((function(){var e=Be.Z.subscribe("caseInputValue",(function(e){O(e)}));return function(){e()}}),[]);var J=function(e){var n=[];for(var t in e)if(e.hasOwnProperty(t)){var i,s=e[t],r=tn()(s);try{for(r.s();!(i=r.n()).done;){var a=i.value;n.push("".concat(t,":").concat(a))}}catch(e){r.e(e)}finally{r.f()}}return n},T=function(){var e=f()(h()().mark((function e(n){var t,i;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(D,J(D),222),(0,C.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"正在开启调试,请稍候..."}}),e.next=4,B();case 4:return e.next=6,(0,ye.ZP)("/api/myshixuns/".concat(null==x?void 0:x.identifier,"/code_debugs/start.json"),{method:"post",body:{game_identifier:null==v?void 0:v.identifier,breakpoints:J(D),input:F}});case 6:0===(t=e.sent).status&&(I(!0),Be.Z.publish("active-debug"),Be.Z.publish("active-debug-data",(null==t?void 0:t.data)||{}),k(null==t||null===(i=t.data)||void 0===i?void 0:i.unique)),(0,C.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}});case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Z=function(){var e=f()(h()().mark((function e(){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ye.ZP)("/api/myshixuns/".concat(null==x?void 0:x.identifier,"/code_debugs/stop.json"),{method:"post",body:{game_identifier:null==v?void 0:v.identifier,unique:w}});case 2:0===e.sent.status&&(Q(null),I(!1));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),L=!(null===(n=(0,hn.flattenDeep)(Object.values(D)))||void 0===n||!n.length);return(0,y.jsx)(E.Fragment,{children:(0,y.jsxs)("div",{className:sn,children:[1===p&&(0,y.jsxs)(E.Fragment,{children:[j&&(0,y.jsx)(E.Fragment,{children:m?(0,y.jsx)("b",{title:"停止调试",style:{marginRight:6},className:rn,onClick:Z,children:(0,y.jsx)("i",{style:{color:"#c75450"},className:"iconfont icon-tingzhitiaoshi font12"})}):L?(0,y.jsx)("b",{title:"开始调试",className:rn,onClick:T,children:(0,y.jsx)("i",{className:"iconfont icon-debug font14"})}):(0,y.jsx)(on.Z,{title:"请先在代码行设置断点",children:(0,y.jsx)("b",{className:an,children:(0,y.jsx)("i",{className:"iconfont icon-debug font14"})})})}),!t&&(0,y.jsx)("a",{title:"显示目录",onClick:u,children:(0,y.jsx)("i",{className:"iconfont icon-wenjian"})}),r&&(0,y.jsx)(dn.CopyToClipboard,{text:r,onCopy:function(){return U.ZP.success("复制成功")},children:(0,y.jsx)("a",{title:"复制版本库地址",children:(0,y.jsx)("i",{className:"iconfont icon-fuzhi2"})})}),R&&(0,y.jsx)("a",{title:"下载代码仓库文件",onClick:function(){(0,M.LR)(R,"")},children:(0,y.jsx)("i",{className:"iconfont icon-xiazai6 font-20 "})}),2===i&&s&&!m&&(0,y.jsx)(cn.Z,{placement:"bottomRight",title:"你在本关中修改的内容将丢失,是否确定重新加载上次通过的代码?",onConfirm:l,children:(0,y.jsx)("a",{title:"加载上次通过的代码",children:(0,y.jsx)("i",{className:"iconfont icon-fanhuishangcidaima font-20 "})})}),s&&!m&&(0,y.jsx)("a",{title:"恢复初始代码",onClick:function(){var e;Y.Z.confirm({title:"恢复初始代码",icon:(0,y.jsx)(ln.Z,{}),content:"你在本文件中修改的内容将丢失,是否确定重新加载初始代码?",centered:!0,okText:"确定",cancelText:"取消",onOk:(e=f()(h()().mark((function e(){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a();case 2:S({}),b([]);case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:(0,y.jsx)("i",{className:"iconfont icon-zhongzhi font-20 "})}),s&&!m&&(0,y.jsx)("a",{title:"重置代码仓库",onClick:function(){var e;Y.Z.confirm({title:"重置代码仓库",icon:(0,y.jsx)(ln.Z,{}),content:"您的所有代码将被还原至初始状态,不影响通关状态与作业成绩。确认重置?",centered:!0,okText:"确定",cancelText:"取消",onOk:(e=f()(h()().mark((function e(){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o();case 2:S({}),b([]);case 4:case"end":return e.stop()}}),e)}))),function(){return e.apply(this,arguments)})})},children:(0,y.jsx)("i",{className:"iconfont icon-zhongzhidaimacangku font12 "})}),(0,y.jsx)("a",{onClick:c,title:"设置",children:(0,y.jsx)("i",{className:"iconfont icon-shezhi"})})]}),(2===p||3===p||4===p||5===p)&&(0,y.jsx)("a",{title:"工具栏",onClick:function(){Be.Z.publish("show-head-toolbar",!0)},children:(0,y.jsx)("i",{className:"iconfont icon-vncshixunjiemian-gongjulan mr5"})}),!("true"===H.get("isFullScreen"))&&(0,y.jsx)("a",{onClick:d,title:g?"退出全屏":"全屏",children:(0,y.jsx)("i",{className:g?"iconfont icon-shousuo":"iconfont icon-zhankai"})})]})})}var pn=t(38060),An={flex_box_center:"flex_box_center___rNE5B",flex_space_between:"flex_space_between___UQz5R",flex_box_vertical_center:"flex_box_vertical_center___LVkcg",flex_box_center_end:"flex_box_center_end___liNMD",flex_box_column:"flex_box_column___en5bA",wrap:"wrap___QHoGE",list:"list___PqCYv",page:"page___TKcdQ"},mn=["userDetail","user","globalSetting","loading","dispatch","onClose","shixun"],In=(0,C.connect)((function(e){var n=e.user,t=e.userDetail,i=e.loading;return{user:n,userDetail:t,shixunsDetail:e.shixunsDetail,globalSetting:e.globalSetting,loading:i.models.index}}))((function(e){e.userDetail,e.user,e.globalSetting,e.loading;var n=e.dispatch,t=e.onClose,i=e.shixun,s=c()(e,mn),r=(0,C.useParams)(),a=(0,E.useState)(null),o=A()(a,2),l=o[0],u=o[1],d=(0,E.useState)({}),g=A()(d,2),p=(g[0],g[1]),m=(0,E.useState)(0),I=A()(m,2),x=I[0],w=I[1],k=(0,E.useState)(v()({page:1,limit:20,id:i.identifier},r)),Q=A()(k,2),j=Q[0],B=(Q[1],(0,E.useCallback)((function(){return s.visible}),[s.visible]));(0,E.useEffect)((function(){s.visible&&(j.page=1,D())}),[s.visible]);var D=function(){var e=f()(h()().mark((function e(){var t;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({type:"shixunsDetail/getSetData",payload:j});case 2:(t=e.sent)&&(u(t.data_sets),w(t.data_sets_count),p(t.folder_name||""));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,y.jsxs)(y.Fragment,{children:[s.children,(0,y.jsxs)(z.Z,{title:"数据集",placement:"right",rootClassName:An.wrap,width:300,closable:!1,onClose:t,open:B(),children:[!(null!=l&&l.length)&&(0,y.jsx)("div",{className:"tc c-grey-999",children:"此实践项目暂无数据集"}),null==l?void 0:l.map((function(e,n){return(0,y.jsxs)("dl",{className:An.list,children:[(0,y.jsx)(on.Z,{title:e.title,children:(0,y.jsxs)("dt",{children:[(0,y.jsx)("span",{className:"icon-wenjian4 mr5"}),e.title]})}),(0,y.jsx)("dd",{children:(0,y.jsx)(dn.CopyToClipboard,{text:e.file_path,onCopy:function(){return U.ZP.success("复制成功")},children:(0,y.jsx)("span",{className:"".concat(An.copy," current"),children:"点击复制"})})})]},n)})),(0,y.jsx)("div",{className:"tc",children:(0,y.jsx)(b.Z,{onChange:function(e){j.page=e,D()},className:An.page,size:"small",total:x,pageSize:j.limit,hideOnSinglePage:!0})})]})]})})),xn={flex_box_center:"flex_box_center___qAghX",flex_space_between:"flex_space_between___T78j9",flex_box_vertical_center:"flex_box_vertical_center___sHN4M",flex_box_center_end:"flex_box_center_end___JfXzO",flex_box_column:"flex_box_column___OVgmN",wrap:"wrap___kus4_",list:"list___oY3h5",page:"page___vXGzX"},vn=t(48486),En=["userDetail","user","globalSetting","loading","dispatch","onClose","shixun"],Cn=(0,C.connect)((function(e){var n=e.user,t=e.userDetail,i=e.loading;return{user:n,userDetail:t,shixunsDetail:e.shixunsDetail,globalSetting:e.globalSetting,loading:i.models.index}}))((function(e){e.userDetail;var n=e.user,t=(e.globalSetting,e.loading,e.dispatch,e.onClose),i=(e.shixun,c()(e,En)),s=((0,C.useParams)(),(0,E.useState)(null)),r=A()(s,2),o=r[0],l=r[1],u=(0,E.useState)(0),d=A()(u,2),g=d[0],p=d[1],m=(0,E.useState)({page:1,limit:20}),I=A()(m,2),x=I[0],w=(I[1],(0,E.useState)("")),k=A()(w,2),Q=k[0],j=k[1],B=(0,E.useCallback)((function(){return i.visible}),[i.visible]);(0,E.useEffect)((function(){i.visible||j(""),i.visible&&(x.page=1,D())}),[i.visible,Q]);var D=function(){var e=f()(h()().mark((function e(){var t,i;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ye.ZP)("/api/users/".concat(null==n||null===(t=n.userInfo)||void 0===t?void 0:t.login,"/resource_centers/file_list.json"),{method:"get",params:v()(v()({},x),{},{keywords:Q})});case 2:0==(null==(i=e.sent)?void 0:i.status)&&(l(a()(i.data.list)),p(i.data.file_count));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,y.jsxs)(y.Fragment,{children:[i.children,(0,y.jsxs)(z.Z,{title:"资源中心",placement:"right",rootClassName:xn.wrap,width:300,closable:!1,onClose:t,open:B(),children:[(0,y.jsx)(vn.t7,{style:{width:250,height:30,marginBottom:24,color:"rgba(0, 0, 0, 0.88)"},placeholder:"请搜索资源名称",value:Q,onChange:function(e){j(e)}}),!(null!=o&&o.length)&&(0,y.jsx)("div",{className:"tc c-grey-999",children:"暂无资源数据"}),null==o?void 0:o.map((function(e,n){return(0,y.jsxs)("dl",{className:xn.list,children:[(0,y.jsx)(on.Z,{title:e.title,children:(0,y.jsxs)("dt",{children:[(0,y.jsx)("span",{className:"icon-wenjian4 mr5"}),e.title]})}),(0,y.jsx)("dd",{children:(0,y.jsx)(dn.CopyToClipboard,{text:e.file_path,onCopy:function(){return U.ZP.success("复制成功")},children:(0,y.jsx)("span",{className:"".concat(xn.copy," current"),children:"点击复制"})})})]},n)})),(0,y.jsx)("div",{className:"tc",children:(0,y.jsx)(b.Z,{defaultCurrent:1,current:x.page||1,onChange:function(e){x.page=e,D()},className:xn.page,size:"small",total:g,pageSize:x.limit,hideOnSinglePage:!0,showSizeChanger:!1})})]})]})})),wn=t(92723),kn=t(97960),Qn=t(75627),yn=t(74622),jn=t(76890),Bn=Ve.Z.Countdown;function Dn(){return(0,y.jsx)("p",{children:"实验环境将恢复到初始状态,您在系统中创建的数据可能会丢失。请确保您的数据已保存(如:版本库代码已推送到服务器)。是否确认重置?"})}var Sn=function(e){var n,t,i,s=e.mirror_description,r=e.difficulty,a=e.git_url,o=e.tabActiveParams,c=e.isNotice,l=e.user,u=e.game,d=e.monitoring_url,g=e.shixun,p=void 0===g?{}:g,m=e.resetVncLoading,I=e.onUpdateCostTime,x=e.lastedGetTaskInfoTime,k=e.onShowNotice,j=e.onResetGitCode,B=e.onResetCode,D=e.onResetVnc,S=e.onRestartReboot,b=e.onAddVncTime,R=e.onUpdateCode,P=e.unity_3d_routes,M=e.st,H=e.toolbarItem,N=void 0===H?{}:H,G=e.myshixun,F=void 0===G?{}:G,O=e.mirror_name,J=e.mirror_description_multi,T=e.onResetAllVnc,Z=e.showReleaseResource,L=e.userInfo,W=e.taskData,V=e.codeRepData,X=W.last_compile_output,q=W.choose_test_cases,_=W.with_code_file,$=W.manager_permission,ee=(0,C.useParams)(),ne=(0,C.useSearchParams)(),te=A()(ne,1)[0],ie=p.name,se=p.identifier,re=p.task_pass,ae=p.test_set_permission,oe=p.survival_time,ce=u.cost_time,le=u.status,ue=l.user_url,de=l.image_url,he=l.grade,fe=void 0===he?0:he,pe=(0,E.useState)(!1),Ae=A()(pe,2),me=Ae[0],Ie=Ae[1],xe=(0,E.useState)({}),ve=A()(xe,2),Ee=ve[0],Ce=ve[1],we=(0,E.useState)("#37AD83"),ke=A()(we,2),Qe=ke[0],ye=ke[1],je=(0,E.useState)(null),De=A()(je,2),Se=De[0],be=De[1],Re=(0,E.useState)(),Me=A()(Re,2),He=Me[0],Ne=Me[1],Fe=(0,E.useState)(c||!1),Oe=A()(Fe,2),Je=Oe[0],Te=Oe[1],Ze=(0,E.useState)(!1),Le=A()(Ze,2),Ue=Le[0],Ye=Le[1],ze=(0,E.useState)(!1),Ke=A()(ze,2),We=Ke[0],Ve=Ke[1],qe=(0,E.useRef)(),_e=(0,E.useRef)(null),$e=(0,E.useState)(!1),nn=A()($e,2),tn=nn[0],sn=nn[1],rn=N.index_tab,an=N.shixun_environment_id,on=N.tab_type,cn=N.windows_vnc,un=N.vnc_url,dn=N.linux_vnc,fn=N.reboot_cloud,An=N.cloud_type,mn=N.resData,xn=N.instance_startup_type,vn=(0,E.useRef)(!1);(0,Qn.y)("exercises"===te.get("type"));var En=(0,Qn.X)(),Sn=En.setOpenDisableCopyAndPaste,bn=(En.disableCopyAndPaste,(0,yn._)(Ee));(0,E.useEffect)((function(){null!=W&&W.is_charge_window&&Y.Z.confirm({centered:!0,icon:null,width:500,okText:"去购买课程",cancelText:"退出",title:"提示",content:(0,y.jsxs)("div",{children:["本实训为付费内容,您暂未购买,请先购买",(0,y.jsxs)("span",{style:{cursor:"pointer",color:"#0152D9"},onClick:function(){C.history.push("/paths/".concat(null==W?void 0:W.subject_id))},children:["《",null==W?void 0:W.subject_name,"》"]})]}),onOk:function(){C.history.push("/paths/".concat(null==W?void 0:W.subject_id))},onCancel:function(){Gn()}})}),[W]),(0,E.useEffect)((function(){function e(){return(e=f()(h()().mark((function e(){var n,t,i,s,r,a;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("exercises"!==te.get("type")){e.next=17;break}if(window.self!==window.top){e.next=4;break}return window.top.location.href="/",e.abrupt("return");case 4:if("coursesId"!==te.get("coursesId")){e.next=10;break}return e.next=7,(0,ge._F)({categoryId:te.get("exercisesId"),login:te.get("login")});case 7:i=e.sent,e.next=13;break;case 10:return e.next=12,(0,ge._B)({categoryId:te.get("exercisesId"),login:te.get("login")});case 12:i=e.sent;case 13:Ce(v()({},i)),Sn(null===(n=i)||void 0===n||null===(n=n.exercise)||void 0===n?void 0:n.forbid_copy),Be.Z.publish("exercise-data",i),"number"==typeof(null===(t=i)||void 0===t||null===(t=t.exercise)||void 0===t?void 0:t.left_time)&&(be(Date.now()+1e3*(null===(s=i)||void 0===s||null===(s=s.exercise)||void 0===s?void 0:s.left_time)),setTimeout((function(){ye("red")}),1e3*((null===(r=i)||void 0===r||null===(r=r.exercise)||void 0===r?void 0:r.left_time)-300>0?(null===(a=i)||void 0===a||null===(a=a.exercise)||void 0===a?void 0:a.left_time)-300:0)));case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]),(0,E.useEffect)((function(){var e=Be.Z.subscribe("update-windows-time",(function(e){Ne(parseInt(e.remaining_time/1e3))})),n=Be.Z.subscribe("show-head-toolbar",(function(e){Ie(e)}));return function(){e(),n()}}),[]),(0,E.useEffect)((function(){var e;return"exercises"===te.get("type")&&null!=Ee&&null!==(e=Ee.exercise)&&void 0!==e&&e.screen_open&&(kn.U.forEach((function(e,n){window.addEventListener(e,Hn,!1),window.addEventListener("blur",Hn,!1)})),window.focus(),qe.current=setInterval((function(){window.focus()}),1e3)),function(){kn.U.forEach((function(e,n){window.removeEventListener(e,Hn,!1)})),window.removeEventListener("blur",Hn,!1),clearInterval(qe.current)}}),[Ee]);var Rn=function(){Ye(!Ue)},Mn=function(){Ve(!We)},Hn=function(e){"IFRAME"!==document.activeElement.tagName&&(window.parent.postMessage("backExercise","*"),vn.current||(0,Q.BU)())};function Nn(){Ie(!1)}function Gn(){ee.courseId&&ee.homeworkId?location.href="/classrooms/".concat(ee.courseId,"/shixun_homework/").concat(ee.homeworkId,"/detail"):("exercises"===te.get("type")&&Hn("back"),location.href="/shixuns/".concat(se,"/challenges"))}function Fn(){return On.apply(this,arguments)}function On(){return(On=f()(h()().mark((function e(){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!m){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,D();case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Jn={task_pass:re,test_set_permission:ae,mirror_description:s,difficulty:r,resetVncLoading:m,git_url:a,tabActiveParams:o,taskData:W,onVncAction:function(e){if(Nn(),"reset-task"===e&&!m)var n=Y.Z.confirm({title:"重置环境",icon:(0,y.jsx)(ln.Z,{}),content:(0,y.jsx)(Dn,{}),maskClosable:!1,keyboard:!1,centered:!0,okText:"确定",cancelText:"取消",onOk:(t=f()(h()().mark((function e(){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(4!==on){e.next=6;break}return n.update({cancelButtonProps:{disabled:!0}}),e.next=4,Fn();case 4:return n.update({cancelButtonProps:{disabled:!1}}),e.abrupt("return");case 6:Fn();case 7:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})});var t,i,s,r;if("restart-reboot"===e&&!m)var a=Y.Z.confirm({title:"重启云主机",icon:(0,y.jsx)(ln.Z,{}),content:"您确定要重启云主机吗?",maskClosable:!1,keyboard:!1,centered:!0,okText:"确定",cancelText:"取消",onOk:(i=f()(h()().mark((function e(){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(4!==on){e.next=6;break}return a.update({cancelButtonProps:{disabled:!0}}),e.next=4,S();case 4:return a.update({cancelButtonProps:{disabled:!1}}),e.abrupt("return");case 6:S();case 7:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})});if("reset-git-code"===e&&(m||Y.Z.confirm({title:"重置代码仓库",icon:(0,y.jsx)(ln.Z,{}),content:"您的所有代码将被还原至初始状态,不影响通关状态与作业成绩。确认重置?",centered:!0,okText:"确定",cancelText:"取消",onOk:j})),"reset-code"===e&&(m||Y.Z.confirm({title:"恢复初始代码",icon:(0,y.jsx)(ln.Z,{}),content:"你在本文件中修改的内容将丢失,是否确定重新加载初始代码?",centered:!0,okText:"确定",cancelText:"取消",onOk:B})),"full-screen"===e&&((0,Q.vp)()?(0,Q.BU)():(0,Q.Dj)(null===(s=document)||void 0===s||null===(r=s.getElementById)||void 0===r?void 0:r.call(s,"task-right-panel"))),"show-clipboard-box"===e){if(An)return void Y.Z.info({title:"提示",icon:(0,y.jsx)(ln.Z,{}),content:"当前实验环境的【复制粘贴】功能暂时无法使用,敬请期待~",centered:!0});Be.Z.publish("show-clipboard-box-".concat(rn))}},onHideToolBar:Nn,shixun:p,monitoring_url:d,unity_3d_routes:P,index_tab:rn,shixun_environment_id:an,tab_type:on,windows_vnc:cn,vnc_url:un,linux_vnc:dn,reboot_cloud:fn,cloud_type:An,resData:mn,instance_startup_type:xn,mirror_name:O,mirror_description_multi:J},Tn=(0,E.useCallback)((function(){return He?(0,y.jsx)(Pn,{defaultTime:He,onAddVncTime:b,onResetAllVnc:T,toShixun:Gn,myshixun:F,title:"实验环境倒计时",user:l,survival_time:oe}):(0,y.jsx)(y.Fragment,{})}),[He]);return(0,y.jsxs)("div",{className:"task-header-container",children:["exercises"===te.get("type")&&(0,y.jsxs)(w.Z,{children:[(0,y.jsxs)("div",{className:"exercise_user_info",children:["姓名",(0,y.jsx)("span",{className:"ml10",children:null==Ee||null===(n=Ee.exercise)||void 0===n?void 0:n.user_name})]}),(0,y.jsxs)("div",{className:"exercise_user_info ml30",children:["学号",(0,y.jsx)("span",{className:"ml10",children:null==Ee||null===(t=Ee.exercise)||void 0===t?void 0:t.student_id})]})]}),"exercises"!==te.get("type")&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("a",{className:"task-user-info",href:ue,target:"_blank",children:[de?(0,y.jsx)("img",{width:"35",height:"35",src:"".concat(wn.Z.IMG_SERVER,"/images/").concat(de)}):null,(0,y.jsx)("span",{children:l.name})]}),(0,y.jsxs)("div",{className:"grade-info",children:[(0,y.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAHGUlEQVRYR7WZW2xcVxWGv3XOjMfj8f2a2ImTNklpCoKASB9aQELNDCBuohJQKA+IkgohUYGEuLy0RUJQUUERSCAaXngAoT5QtaUqiluJB5KWFmgatcq1Nk0c2zO5NLFrezxzZi+0z4xn5sw54xlHYUkjWXuvvdd/1n1tC9dJxWzmDox+WFx5v1F9l8AEMAi4giyBZlXkLHBMSuYf7pY7nxP5kd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ihVKEPOaWFI59Q1/kQsE9Ud4OMrXfmN/LfEP8D/KDA5doYpwkAAAAASUVORK5CYII=",alt:"gold",width:20}),fe]})]}),(0,y.jsxs)("h2",{className:"shixun-info",children:[ie,"exercises"!==te.get("type")&&(0,y.jsx)(en,{lastedGetTaskInfoTime:x,status:le,defaultTime:ce,onUpdateCostTime:I,retentionTime:"taskBuildTimes",title:"实验总用时"})]}),(0,y.jsxs)("div",{className:"flex-container",children:[(0,y.jsxs)("div",{ref:_e,onClick:function(){return Te(!1)},children:["exercises"!==te.get("type")&&(0,y.jsx)(y.Fragment,{children:c&&(0,y.jsx)(gn,{className:"btn-notice",onShowNotice:k})}),(0,y.jsx)(Xe.Z,{open:Je,onClose:function(){return Te(!1)},rootClassName:"tasks-header-notice",steps:[{title:"更新通知",description:(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("div",{children:"老师已修改代码文件,请更新后继续作答~"})}),target:function(){return _e.current},nextButtonProps:{children:(0,y.jsx)(Ge.ZP,{onClick:k,type:"primary",size:"small",children:"更新代码"})}}]})]}),Tn(),cn&&!(0,hn.isEmpty)(mn)&&!(4===An&&2===xn)&&(0,y.jsx)("span",{onClick:function(e){e.preventDefault(),Be.Z.publish("send-ctrl-alt-delete-".concat(rn))},className:"c-grey-c mr20 current",children:"发送CTRL+ALT+DELETE"}),P&&(0,y.jsx)("a",{title:"工具栏",onClick:function(){Ie(!me)},children:(0,y.jsx)("i",{className:"iconfont icon-vncshixunjiemian-gongjulan mr5"})}),$&&(0,y.jsx)("div",{children:(0,y.jsxs)("a",{className:"btn-vnc",style:{marginRight:0},title:"配置与监控",onClick:function(){return sn(!0)},children:[(0,y.jsx)("span",{className:"iconfont font14 mr5 ml20 icon-peizhiyujiankong current"}),"配置与监控"]})}),1==(null==o?void 0:o.resource_type)&&(0,y.jsx)(Cn,{visible:We,onClose:Mn,shixun:p,children:(0,y.jsxs)("a",{className:"btn-vnc",style:{marginRight:0},title:"资源中心",onClick:Mn,children:[(0,y.jsx)("span",{className:"iconfont font14 mr5 ml20 icon-ziyuanzhongxin current"}),"资源中心"]})}),(0,y.jsx)(In,{visible:Ue,onClose:Rn,shixun:p,children:(0,y.jsxs)("a",{className:"btn-vnc",title:"数据集",onClick:Rn,children:[(0,y.jsx)("span",{className:"iconfont font14 mr5 ml20 icon-shujuji2 current"}),"数据集"]})})]}),"exercises"!==te.get("type")&&(0,y.jsx)("a",{className:"btn-out",onClick:function(){var e,n,t=!(null!=L&&null!==(e=L.shixun)&&void 0!==e&&e.editable);Y.Z.confirm({title:"退出实训",icon:(0,y.jsx)(ln.Z,{}),content:(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{children:"您确定要退出实训吗?"}),Z&&(0,y.jsx)(Pe.Z,{className:"mt10",defaultChecked:t,onChange:function(e){t=e.target.checked},children:"退出实训时,立即释放实验资源"})]}),centered:!0,okText:"确定",cancelText:"取消",onOk:(n=f()(h()().mark((function e(){var n;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Z||!t){e.next=7;break}return e.next=3,(0,ge.eA)(null==F?void 0:F.identifier);case 3:0==(null==(n=e.sent)?void 0:n.status)&&(U.ZP.success("释放资源成功"),setTimeout((function(){Gn()}),1e3)),e.next=8;break;case 7:Gn();case 8:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)}),onCancel:function(){}})},title:"退出实训",children:(0,y.jsx)("i",{className:"iconfont icon-kaiguan"})}),(null==Ee||null===(i=Ee.exercise)||void 0===i?void 0:i.left_time)>0&&(0,y.jsxs)(w.Z,{align:"middle",children:[(0,y.jsx)("span",{style:{color:Qe,marginRight:6},className:"iconfont icon-daojishi djs"}),(0,y.jsx)("span",{style:{color:Qe,fontSize:14,marginRight:10},children:"剩余答题时长"}),(0,y.jsx)("span",{className:"mr20",children:(0,y.jsx)(Bn,{valueStyle:{color:Qe,fontSize:20,fontWeight:500},value:Se,onFinish:f()(h()().mark((function e(){var n,t;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ge.VL)({categoryId:te.get("exercisesId"),commit_method:2});case 2:0===(null==(n=e.sent)?void 0:n.status)&&(0===M&&R(1),Y.Z.info({width:530,title:"提示",centered:!0,okText:"确定",content:(0,y.jsxs)("div",{className:"tc font16",children:["答题结束了,系统已自动提交试卷",(0,y.jsx)("br",{}),"不能再修改答题"]}),onOk:function(){var e=f()(h()().mark((function e(){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:window.parent.location.href="/classrooms/".concat(te.get("coursesId"),"/exercise/").concat(te.get("exercisesId"),"/detail");case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()})),-3===(null==n?void 0:n.status)&&(t=parseInt(null==n?void 0:n.message),be(Date.now()+1e3*t));case 5:case"end":return e.stop()}}),e)})))})})]}),"exercises"===te.get("type")&&(0,y.jsxs)(Ge.ZP,{type:"primary",onClick:function(){var e=function(){var e=f()(h()().mark((function e(){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==M){e.next=3;break}return e.next=3,R();case 3:bn(),vn.current=!0,Hn();case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();P&&!_||(1===M?null!=q&&q.had_submmit:X&&0===V.lastedUpdateTime)?e():Y.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:(0,y.jsx)("div",{style:{color:"#FF0000"},children:"请确认你的答题内容是否进行评测并提交,未评测则会导致该题无法获得分数"}),onOk:e})},children:[(0,y.jsx)("span",{className:"iconfont icon-yiguanbi mr5 font14"})," 返回试卷"]}),(0,y.jsx)(K.Z,{children:(0,y.jsx)(z.Z,{width:280,rootClassName:"setting-drawer",title:null,placement:"right",closable:!1,destroyOnClose:!1,open:me,onClose:Nn,children:(0,y.jsx)(pn.Z,v()({},Jn))})}),(0,y.jsx)(jn.Z,{identifier:se,visible:tn,onCancel:function(){return sn(!1)},info:{type:"挑战页面",myshixun_id:null==F?void 0:F.id}})]})},bn=300;function Rn(e){var n=e.title,t=e.time,i=e.className,s=void 0===i?"":i,r=e.callback,a=e.desc,o=void 0===a?"":a,c=e.style,l=void 0===c?{}:c;return(0,y.jsxs)("a",{onClick:function(){r&&r()},title:n,className:s,children:[(0,y.jsx)("i",{className:"iconfont icon-shijian1 mr5",style:l}),(0,y.jsxs)("span",{children:[o?"".concat(o,":"):"",$e(t)]})]})}function Pn(e){var n=e.onAddVncTime,t=e.onResetAllVnc,i=e.toShixun,s=e.title,r=void 0===s?"":s,a=e.myshixun,o=e.defaultTime,c=e.user,l=e.survival_time,u=(0,C.useParams)(),d=(0,E.useState)(o),g=A()(d,2),p=g[0],m=g[1],I=(0,E.useState)(!1),x=A()(I,2),v=x[0],w=x[1],k=(0,E.useState)(!1),Q=A()(k,2),j=Q[0],B=Q[1],D=(0,E.useRef)(!0),S=(0,M.oP)(),b=(0,E.useRef)(!1);(0,E.useEffect)((function(){return window.addEventListener("visibilitychange",R),function(){window.removeEventListener("visibilitychange",R)}}),[]);var R=function(){var e=f()(h()().mark((function e(n){var t,i,s,r,o;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("visible"!==document.visibilityState){e.next=5;break}return e.next=3,(0,P.fY)(null==a?void 0:a.identifier);case 3:0===(null==(t=e.sent)?void 0:t.status)&&(r=(null==t||null===(i=t.data)||void 0===i?void 0:i.remainingTime)>0?null==t||null===(s=t.data)||void 0===s?void 0:s.remainingTime:0,m(o=r/1e3),o>bn&&B(!1));case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();function H(){return(H=f()(h()().mark((function e(){var s,r;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(w(!0),!(p>0)){e.next=8;break}return e.next=4,n();case 4:r=e.sent,m((null==r||null===(s=r.data)||void 0===s?void 0:s.remaining_time)/1e3),e.next=12;break;case 8:return e.next=10,t();case 10:e.sent,i();case 12:w(!1),B(!1);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,qe.Z)((function(){m(p-1)}),p>0?1e3:null),(0,E.useEffect)((function(){S.homework_common_id?60===p&&(b.current||B(!0)):300!==p&&180!==p&&60!==p&&0!==p||b.current||B(!0)}),[p]),(0,E.useEffect)((function(){if(D.current){var e="".concat(null==c?void 0:c.login,"_").concat(u.taskId,"_survival_time");localStorage.getItem(e)!==String(l)?(b.current=!0,Y.Z.confirm({title:"提示",icon:null,content:"老师调整了时间是否同步",centered:!0,okText:"是",cancelText:"否",onOk:(t=f()(h()().mark((function t(){return h()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return localStorage.removeItem(e),t.next=3,n();case 3:b.current=!1,window.location.reload();case 5:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)}),onCancel:function(){b.current=!1,localStorage.removeItem(e)}})):(o=0?e.splice(t,1):e.push(o),a(e.join(""))}},children:[1===n?(0,y.jsx)(On.ZP,{checked:i&&i.indexOf(o)>=0,className:"choice"}):(0,y.jsx)(Pe.Z,{className:"choice",checked:i&&i.indexOf(o)>=0}),(0,y.jsxs)("div",{className:"flex-wrp",children:[(0,y.jsxs)("span",{className:"checkTitle",style:{lineHeight:1.7,fontSize:16,whiteSpace:"nowrap"},children:[o,"、"]}),(0,y.jsx)(L.Z,{className:"subject-body",value:r})]})]})},Zn=function(e){var n=e.callback,t=e.multi_count,i=e.answer,s=(0,E.useState)([]),r=A()(s,2),a=r[0],o=r[1];return(0,E.useEffect)((function(){if(t){if(null!=i&&i.length)return void o(i);var e=Array.from({length:t}).fill("");o(e)}}),[t,i]),console.log(a,i,"multi_count"),(0,y.jsx)("div",{className:"option",children:null==a?void 0:a.map((function(e,t){return(0,y.jsxs)(w.Z,{align:"middle",className:"mb10 text",children:[(0,y.jsxs)("span",{className:"mb5",children:["填空",t+1,"答案:"]}),(0,y.jsx)(ke.Z.TextArea,{value:e,onChange:function(e){a[t]=e.target.value,n(a)}},t)]})}))})},Ln=function(e){var n=e.id,t=e.answer,i=e.challenge_question,s=e.category,r=e.subject,a=e.onSetAnswers,o=e.question_name,c=e.multi_count;function l(e){a(n,e)}return(0,y.jsxs)("li",{children:[(0,y.jsxs)(w.Z,{className:"subject c-grey-999",align:"stretch",children:[(0,y.jsx)(k.Z,{flex:"40px",children:(0,y.jsxs)("p",{className:"mt3 order",children:[n+1,"、"]})}),(0,y.jsx)(k.Z,{flex:"1",children:(0,y.jsx)(L.Z,{value:"".concat(r),className:"subject-body"})})]}),"单选题/多选题"===o&&(0,y.jsx)("div",{className:"option",children:null==i?void 0:i.map((function(e,n){var i=e.option_name;return(0,y.jsx)(Tn,{index:n,option_name:i,answer:t,category:s,callback:l},i)}))}),"判断题"===o&&(0,y.jsx)("div",{className:"option",children:(0,y.jsxs)(On.ZP.Group,{className:"mb10",style:{marginLeft:38},value:t||void 0,onChange:function(e){return l(e.target.value)},children:[(0,y.jsx)(On.ZP,{value:"true",className:"mr40",children:"正确"}),(0,y.jsx)(On.ZP,{value:"false",children:"错误"})]})}),"填空题"===o&&(0,y.jsx)(Zn,{multi_count:c,callback:l,answer:t})]})},Un=function(e){var n=e.chooses,t=e.answers,i=e.onSetAnswers,s=e.bgColor,r=void 0===s?"#1E1E1E":s;return(0,y.jsx)("ul",{className:"".concat("#1E1E1E"===r?"":"vs"," choose-container"),style:{backgroundColor:r},children:n.map((function(e,n){var s=e.subject,r=e.challenge_question,a=e.category,o=e.question_name,c=e.multi_count;return(0,y.jsx)(Ln,{id:n,subject:s,challenge_question:r,category:a,answer:t[n],onSetAnswers:i,question_name:o,multi_count:c},n)}))})},Yn=t(40689),zn=t(55874),Kn=t(45804),Wn=function(e){var n=e.id,t=e.isActive,i=e.title,s=e.onActive,r=e.had_submmit,a=e.result,o=e.actual_output,c=e.standard_answer,l=e.question_name;var u="test-case-item";return t&&(u+=" active"),r&&(u+=" has-result"),(0,y.jsxs)("li",{className:u,children:[(0,y.jsxs)("a",{className:"case-header",onClick:function(){s(n)},children:[(0,y.jsxs)("h2",{children:[(0,y.jsx)("div",{className:t?"arrow-down":"arrow-right",style:{width:12}}),(0,y.jsx)("span",{className:"test-title",style:{width:75},children:i})]}),r>0?(0,y.jsx)("img",{width:16,src:a?zn.Z:Kn.Z}):(0,y.jsx)("i",{className:"iconfont icon-suo1 ml10",style:{flex:1}})]}),(0,y.jsx)("div",{className:"item-desc ".concat(t?"show":"hide"," choose-game-item"),children:r?a?"填空题"===l?(0,y.jsxs)(E.Fragment,{children:[(0,y.jsxs)("p",{children:[(0,y.jsx)("div",{children:"正确答案:"}),(0,y.jsx)("b",{children:null==c?void 0:c.map((function(e,n){var t;return(0,y.jsxs)("p",{children:["填空",n+1,":",null==e||null===(t=e.text)||void 0===t?void 0:t.join("、")]})}))})]}),(0,y.jsxs)("p",{children:[(0,y.jsx)("div",{children:"你的答案:"}),(0,y.jsx)("b",{className:"c-red",children:null==o?void 0:o.map((function(e,n){return(0,y.jsxs)("p",{children:["填空",n+1,":",e]})}))})]})]}):(0,y.jsxs)(E.Fragment,{children:[(0,y.jsxs)("p",{children:["正确选项:",(0,y.jsx)("b",{children:c})]}),(0,y.jsxs)("p",{children:["你的选项:",(0,y.jsx)("b",{className:"c-red",children:o})]})]}):(0,y.jsx)("p",{children:"错误,不支持查看"}):(0,y.jsx)("p",{children:"尚未提交,暂不支持查看"})})]})},Vn=function(e){var n=e.onResizeSetContainer,t=e.moveY,i=e.had_submmit,s=e.test_sets,r=void 0===s?[]:s,a=e.challenge_chooses_count,o=e.choose_correct_num,c=(0,E.useState)(-1),l=A()(c,2),u=l[0],d=l[1];function h(e){d(e===u?-1:e)}var g=o===a;return(0,y.jsxs)(E.Fragment,{children:[(0,y.jsxs)("div",{className:"test-header",children:[(0,y.jsx)("span",{className:"active",children:"测试结果"}),(0,y.jsx)("a",{onClick:function(){n(t)},children:(0,y.jsx)("i",{className:"iconfont ".concat(.01===t?"icon-shousuo":"icon-zhankai"," icon-zhankai")})})]}),i?(0,y.jsxs)("p",{className:"test-result ".concat(g?"success":"failer"),children:[(0,y.jsxs)("span",{className:"count",children:[(0,y.jsx)("img",{width:16,src:g?zn.Z:Yn.Z}),o," / ",a," 共有",a,"题,"]}),(0,y.jsx)("span",{children:g?"全部通过":"其中".concat(a-o,"题目结果不匹配。详情如下:")})]}):null,(0,y.jsx)("ul",{className:"test-case-list",children:r.map((function(e,n){return(0,y.jsx)(Wn,v()(v()({had_submmit:i,title:"题目".concat(n+1)},e),{},{isActive:u===n,id:n,onActive:h}),"item"+n)}))})]})},Xn="action-container___Xcx9G",qn="eval-btn-group___b8ds5",_n="eval-desc___bIcYm",$n="btn-run___fh7pl",et="btn-run-self___Bwz1A",nt="ghost-link___Y8dGm",tt="link___PPhWD",it=t(24334),st=t(61186),rt=function(e){var n,t=e.st,i=e.prev_game,s=e.next_game,r=e.time_limit,a=e.record_consume_time,o=e.loading,c=e.shixun,l=e.game,u=e.onRun,d=e.dispatch,g=e.chooses,p=e.unity_3d_routes,m=e.user,I=e.is_last_game,x=e.onUpdateCode,v=e.test_sets,w=e.challenge,k=e.game_report_id,Q=e.tabActiveParams,j=void 0===Q?{}:Q,B=e.startDebug,D=e.isLocalFetch,S=e.onLocalRun,b=(0,C.useParams)(),R=!I&&!o&&(c.status>0||(null==m?void 0:m.identity)<5),M=["自测运行","正在启动","停止运行","正在停止","正在运行"],H=(0,C.useSelector)((function(e){var n;return null==e||null===(n=e.user)||void 0===n?void 0:n.userInfo})),N=(0,C.useSearchParams)(),G=A()(N,1)[0],F=(0,E.useState)(0),O=A()(F,2),J=O[0],T=O[1],Z=(0,E.useState)(0),L=A()(Z,2),U=L[0],z=L[1],K=(0,E.useState)(!1),W=A()(K,2),V=W[0],X=W[1],q=(0,E.useState)(null==v||null===(n=v.find((function(e){return e.input&&!e.is_file})))||void 0===n?void 0:n.input),_=A()(q,2),$=_[0],ee=_[1],ne=(0,E.useState)(!1),te=A()(ne,2),ie=te[0],se=te[1],re=(0,E.useState)(M[0]),ae=A()(re,2),oe=ae[0],ce=ae[1],le=(0,E.useRef)(!1),ue=(0,C.useLocation)(),de=j.shixun_environment_id,he=j.tab_type,ge=function(){var e=st();if(e.day()>=1&&e.day()<=5){var n=e.hour(),t=e.minute();return n>=9&&n<12||14===n&&t>=30||n>14&&n<18||19===n&&t>=30||20===n&&t<=30}return!1};(0,E.useEffect)((function(){J>0&&setTimeout((function(){T(J-1)}),1e3)}),[J]),(0,E.useEffect)((function(){U>0&&setTimeout((function(){z(U-1)}),1e3)}),[U]),(0,E.useEffect)((function(){var e=Be.Z.subscribe("eval-code-finish",(function(){p&&X(!0),1===t||(null!=H&&H.is_vip?T(10):T(ge()?20:15))})),n=Be.Z.subscribe("caseInputValue",(function(e){ee(e)})),i=Be.Z.subscribe("runCodeFinish",(function(){le.current=!1,se(!1),ce(M[0]),U>0||(null!=H&&H.is_vip?T(10):T(ge()?20:15))}));return function(){e(),n(),i()}}),[]);var fe=function(){var e=f()(h()().mark((function e(){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return le.current=!0,e.next=3,x();case 3:ce(M[1]),Be.Z.publish("show-case-result",!0),setTimeout(f()(h()().mark((function e(){var n,t,i,s,r,a;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={test_case_content:$,shixun_environment_id:de,tab_type:he},"exercises"===G.get("type")?i.extras={exercise_id:G.get("exercisesId")}:b.courseId&&b.homeworkId&&(i.extras={homework_common_id:b.homeworkId}),e.next=4,(0,P.h$)(b.taskId,i);case 4:if(null==(s=e.sent)||null===(n=s.data)||void 0===n||null===(n=n.data_list)||void 0===n||!n.length){e.next=8;break}return Be.Z.publish("pod-restrict-data",{identifier:null==s||null===(r=s.data)||void 0===r?void 0:r.identifier,data_list:null==s||null===(a=s.data)||void 0===a?void 0:a.data_list}),e.abrupt("return");case 8:Be.Z.publish("showRunCodeTab",!0),Be.Z.publish("runCode",{type:"start",socketUrl:(null==s||null===(t=s.data)||void 0===t?void 0:t.wss_url)+"/log"});case 10:case"end":return e.stop()}}),e)}))),100),setTimeout((function(){le.current&&(ce(M[2]),se(!1))}),1e3);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),pe=function(){var e=f()(h()().mark((function e(){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:se(!0),oe===M[2]?(le.current=!1,ce(M[3]),Be.Z.publish("runCode",{type:"stop"}),(0,P.Yv)(b.taskId,{shixun_environment_id:de,tab_type:he}),setTimeout((function(){ce(M[0]),se(!1),null!=H&&H.is_vip?T(10):T(ge()?20:15)}),2500)):fe();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ae=function(){var e=f()(h()().mark((function e(){var n,t,i;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return se(!0),ce(M[4]),Be.Z.publish("show-case-result",!0),e.next=5,S($);case 5:0===(n=e.sent).status&&(i=null==n||null===(t=n.data)||void 0===t||null===(t=t.out)||void 0===t?void 0:t.map((function(e){return it.Base64.decode(e)})),se(!1),ce(M[0]),Be.Z.publish("showRunCodeTab",!0),Be.Z.publish("setLogData",i));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,y.jsxs)("div",{className:Xn,children:[(0,y.jsxs)("div",{className:"flex-container ".concat(_n),children:[r&&null!=w&&w.with_code_file?(0,y.jsx)("span",{children:"本关最大执行时间:".concat(r,"秒")}):null,a&&null!=w&&w.with_code_file?(0,y.jsxs)("span",{children:["本次评测耗时(编译、运行总时间):",a," 秒"]}):null,k?(0,y.jsx)("a",{target:"_blank",className:tt,href:"/report/".concat(b.taskId,"/").concat(k),children:"代码性能检测"}):null,[2,3,4,5,6].includes(he)&&(0,y.jsx)("a",{title:"显示/隐藏测试结果",onClick:function(){Be.Z.publish("show-case-result")},children:"显示/隐藏测试结果"})]}),(0,y.jsxs)("div",{className:"flex-container ".concat(qn),children:[i&&!o?(0,y.jsx)("a",{href:"/tasks/".concat(i).concat(ue.search),onClick:function(e){e.preventDefault(),b.courseId&&b.homeworkId?setTimeout((function(){return window.location.href="/tasks/".concat(b.courseId,"/").concat(b.homeworkId,"/").concat(i).concat(ue.search)}),300):setTimeout((function(){return window.location.href="/tasks/".concat(i).concat(ue.search)}),300)},className:nt,children:"上一关"}):null,R?(0,y.jsx)("a",{href:"/tasks/".concat(s).concat(ue.search),onClick:function(e){if(e.preventDefault(),c.task_pass||2===l.status||(null==m?void 0:m.identity)<5)return b.courseId&&b.homeworkId?void setTimeout((function(){return window.location.href="/tasks/".concat(b.courseId,"/").concat(b.homeworkId,"/").concat(s).concat(ue.search)}),300):void setTimeout((function(){return window.location.href="/tasks/".concat(s).concat(ue.search)}),300);Y.Z.warning({centered:!0,width:530,title:"提示",okText:"我知道了",content:(0,y.jsx)("p",{children:"该实践项目设置了不允许跳关。通过当前关卡后,才能进入下一关。"})})},className:nt,children:"下一关"}):null,V&&1===(null==w?void 0:w.show_type)&&(0,y.jsx)("button",{onClick:function(){d({type:"SHOW_PICTURE_VIEW"})},style:{minWidth:"72px",marginRight:10},className:"btn-run",title:"查看效果",children:"查看效果"}),1===he&&!B&&(null==c?void 0:c.open_self_run)&&(D?(0,y.jsx)(Ge.ZP,{onClick:Ae,loading:ie,danger:!0,className:"".concat(et," mr10"),children:oe}):(0,y.jsx)(Ge.ZP,{onClick:(0,hn.throttle)(pe,2e3),loading:ie,danger:!0,disabled:U>0||J>0||o,className:"".concat(et," mr10"),children:U>0?"".concat(U,"S"):oe})),(null==w?void 0:w.with_code_file)&&!(1===he&&B)&&(0,y.jsx)("button",{onClick:f()(h()().mark((function e(){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(1!==t){e.next=4;break}if(!((null==g?void 0:g.length)<=0)){e.next=4;break}return Y.Z.confirm({centered:!0,title:"提示",content:(0,y.jsx)("div",{className:"tc",children:(0,y.jsx)("p",{children:"您还未添加题目,请添加后评测!"})}),okText:"确认",cancelText:"取消"}),e.abrupt("return");case 4:return X(!1),e.next=7,u();case 7:case"end":return e.stop()}}),e)}))),style:{minWidth:"72px"},disabled:o||J>0||"自测运行"!==oe||U>0,className:$n,title:"运行评测",children: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VXIPs9sD6wyMY/0nvJI7zq4IvIZnfkdgRY37feuR3p/BRgAhrFnXQBvMBoAAAAASUVORK5CYII=",alt:"run",width:18})," ",(0,y.jsx)("b",{children:"评测"})," "]})})]})]})},at=t(55945),ot="iconWrapper___U51IV",ct="minusIcon___xP_3j",lt="arrowIcon___jKd9h",ut=function(e){var n=e.desc,t=e.visible,i=(0,E.useRef)(),s=(0,E.useRef)(),r=(0,E.useState)(!1),a=A()(r,2),o=a[0],c=a[1],l=(0,E.useState)(!1),u=A()(l,2),d=u[0],h=u[1];(0,E.useEffect)((function(){if(i.current){var e=function(e){h(!1),(0,M.kk)("none");var n=i.current.getBoundingClientRect();r=n.left,a=n.top,o=e.pageX,c=e.pageY,l=!0,u=!0,document.onselectstart=function(){return!1}},n=function(e){var n,t;(e.stopPropagation(),l=!1,(0,M.kk)("auto"),document.onselectstart=null,u)&&(u=!1,(null===(n=e.target)||void 0===n?void 0:n.id)!==(null===(t=s.current)||void 0===t?void 0:t.id)&&h(!0))},t=function(e){if(l){u=!1,h(!1);var n=e.pageX-o,t=e.pageY-c;i.current.style.left="".concat(r+n,"px"),i.current.style.top="".concat(a+t,"px")}},r=0,a=0,o=0,c=0,l=!1,u=!1;return i.current.addEventListener("mousedown",e),document.addEventListener("mousemove",t),document.addEventListener("mouseup",n),function(){var s;null===(s=i.current)||void 0===s||s.removeEventListener("mousedown",e),document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)}}}),[i.current]);return(0,y.jsxs)("div",{style:{display:t?"block":"none"},children:[(0,y.jsx)(z.Z,{title:"任务描述",placement:"right",onClose:function(){h(!1)},open:d,children:n}),(0,y.jsx)("div",{className:lt,onClick:function(){return c(!1)},style:{position:"fixed",display:o?"block":"none",zIndex:1e3,bottom:223},children:(0,y.jsx)("img",{draggable:!1,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAgCAYAAAB3j6rJAAAAAXNSR0IArs4c6QAAAZdJREFUWEfF2D1Lw1AUxvH/8xHcBHFSaUfrojiKi19FHFwUFQQriLoIxcVVv4O4CCJOOriK7oKTCiLaQY9cCaW2yc1LzU2WDLnn5EdC8pxEDLCZ2SRwDIwCTUmttHZmVgNOALc/kLTtapRWmHTczKaAc2AoWvMNjEh68tTUgQtguGtNXdJ9IUgMwvX1QswsDuHqikESEK7hlqRm3NXwIFqSlnPfGg9iT9J6TsQRsCjJckHKRGSGlI3IBAmBSIWEQnghIRGJkNCIWEgViD5IVYg/kCoRHUjViG7IJvAbx11bG5iVdJvw6l4CDnuOueCbk3SZN9U76Wtmu8BaT4MXYN6DWQX2e2regQVJV3kwf8aAKjF980hVmNjBqApM4oQWGuMdFUNiUmfWUJhUiHsEQ2AyQUJgMkPKxuSClInJDfFgHoFxSZ8J2RQXB8/AmKTXQhAPpibpISljzCwOMyPpujAkwuwAG9GJb6K0/vKFnZmtREHpzn0HNCS1B4JEmOnob8CppI8siWtmDWACOJP0lvo5kaXpf635AX6GXzDZRnW0AAAAAElFTkSuQmCC",alt:""})}),(0,y.jsxs)("div",{ref:i,draggable:!1,className:ot,style:{position:"fixed",display:o?"none":"block",zIndex:1e3,bottom:223,right:26,borderRadius:"50%",cursor:"pointer"},children:[(0,y.jsx)("i",{ref:s,id:"minusIconElement",onClick:function(){h(!1),c(!0)},className:"iconfont icon-yichu1 ".concat(ct)}),(0,y.jsx)("img",{draggable:!1,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABKCAYAAAAL8lK4AAAAAXNSR0IArs4c6QAAFrlJREFUeF7tW3uMXNV5/86989jZXXsf7K53Z722F68fGBwbLOOYR6jBqXhUbZQW5KQNKbQRtFJRhZqmpCmPtqEqqH/0r6SoQUpQlUBSoapNQtuoDaQhJSRAUx5JSigB29gGL/a+ZmfmnvNV3znnO+e7d2bZjVS1ldJJzMzeuY9zft/r9z1GwU/5S/2U7x/+H4C1awAqRIB77rnn/yxod911Fyq7OoVr3deKm/nR67itDe07DcIRQEiNQSAAjP2HQE+gv+k/x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vNbDGFTUvmzuKt/3Slp8MgNML+FVt8Go3Ll+URtEGRWVGqGgelHzVNgJZJD6yw+Prib4RK2cIpGnmIoX4BQg/oz13DH/7+p9QA07P609rVLdEifgCgxgv53CYS1RWyMjyi/fjgTwIJQeqbVndDT266XE2mWJhVfzURSZKYWYhjtktnzkOT/3bq/M017zaa31/5fRn77xkWs3O4eVaweNaG5WrvHRhbbk+vaj4FD10N6l3HPMhMtfulhOmYXKc55M7I0/RyTbnTsETT/3QvHby7KpmsHN6+NTn/+jyDXZE5s05vF0b+ENtTF+xv+7GWwp1OpkbyNq/nwblSTA2jY66X057ROJT6PKERk3oS3APIL8eeg69mktz8P0fvLz49PNv9K2mAft3jz/3wMcOXBhmhE4t4Lhuw9UazQyaZNogUJV4ozY4aQCq0hZz3IAJlJzuZvOR3l2UviS7ZM0ojuXEZCo/oc5Sd9yjUJrXLTh59D9PfuUbL29YDYDDBzZ97v7fuvDD3X8vULj6OP24chk2goZJncGkATNpDNQNqkmNMGkQ6og44pIW1xfMb0A612J7O2oAe/V87hGlHn+gJfsQLgHjn9+cfet469F/eK5C0+0rvUrUMPjZHTN3/PL2V9YEwGpo0vf/gVhdeBUm2hrqbYQ6INSNMXVtCCBVRwIM6Fhswcs6YC7DEyXykB4L/xB+/+drCzz0RwC2msvwzLPf0y+8/Kb7+XiX1wUzI8ceuvvSjfTVfxsAawGJzvn7E9inZqGOGUyYDOqZBcXUjYEJbbAOkBBIExpxXRiALLC/YvMlTD36RSycPWP+7mtPJws00FB49dXK5prLzj38+x/e+c//KwCsFahHXsD+9jxMqBaBpCeaLdxmdLYrM0jNznGAdFglCTntEkmef6zGn+dm39aPff276dxiMzyyVi3joYunPvHJW3bfywf/xzVgrQCs9bxHnsTaqbdhanl54V2AsMtAtk2B2qSSdLzdbtZf/fHr6tTsWT0+1Pv9qc3rPvTxI+f9UN77vwCByDyXl6nyEwAAAABJRU5ErkJggg=="})]})]})},dt=(t(88780),t(39800)),ht=function(e){var n=e.isTheoretical,t=e.onFontSizeChange,i=e.cmFontSize,s=e.cmCodeMode,r=e.onCodeModeChange,a=e.tabToSpace,o=e.onTabToSpace,c=e.shixun,l=e.autoFormat,u=e.onAutoFormat,d=e.formatDocument,h=e.code_editor,g=e.challenge,f=null!=c?c:{},p=f.task_pass,A=void 0!==p&&p,m=f.forbid_copy,I=void 0!==m&&m,x=f.test_set_permission,E=void 0!==x&&x,C={isTheoretical:n,onFontSizeChange:t,cmFontSize:i,cmCodeMode:s,onCodeModeChange:r,tabToSpace:a,onTabToSpace:o,autoFormat:l,onAutoFormat:u,formatDocument:d,code_editor:h,challenge:g};return(0,y.jsxs)(dt.Z,v()(v()({},C),{},{children:[(0,y.jsx)("h3",{children:"关卡配置信息"}),(0,y.jsxs)("section",{children:[(0,y.jsxs)("a",{className:"file-item",title:A?"允许学员跳关挑战":"不允许学员跳关挑战",children:[(0,y.jsx)("b",{children:"跳关"}),(0,y.jsx)("span",{children:A?"允许":"不允许"})]}),(0,y.jsxs)("a",{className:"file-item",title:E?"允许学员通过金币解锁查看测试集内容":"不允许学员通过金币解锁查看测试集内容",children:[(0,y.jsx)("b",{children:"测试集解锁"}),(0,y.jsx)("span",{children:E?"允许":"不允许"})]}),(0,y.jsxs)("a",{className:"file-item",title:I?"不允许学员粘贴代码":"允许学员粘贴代码",children:[(0,y.jsx)("b",{children:"代码粘贴"}),(0,y.jsx)("span",{children:I?"不允许":"允许"})]})]})]}))},gt=t(923),ft=t(77894);function pt(e,n){switch(n.type){case Z.wj:return v()(v()({},e),{},{loading:!0});case Z.V1:return v()(v()({},e),{},{loading:!1});case Z.OJ:return v()(v()({},e),n.payload);case Z.$Y:return v()(v()({},e),{},{theme:n.payload});default:throw new Error}}var At=function(e){var n=e.taskData,t=e.moveY,i=e.onResizeYStart,s=e.onResizeSetContainer,r=e.onEval,a=e.lastedGetTaskInfoTime,o=e.onUpdateCode,c=e._dispatch,l=((0,C.useLocation)(),(0,C.useSearchParams)()),u=A()(l,1)[0],d=(0,C.useParams)(),g=n.chooses,p=n.choose_test_cases,m=n.game,I=p.test_sets,x=p.challenge_chooses_count,k=p.choose_correct_num,j=p.had_submmit,B=(0,E.useCallback)((function(){var e=[];return e.length=x,j&&(e=I.map((function(e){return"判断题"===e.question_name?"正确"===e.actual_output?"true":"错误"===e.actual_output?"false":void 0:e.actual_output}))),e}),[a]),D=(0,E.useReducer)(pt,{loading:!1,answers:B(),theme:(0,gt.G)("cmCodeMode","vs-dark")}),S=A()(D,2),b=S[0],R=S[1];(0,E.useEffect)((function(){R({type:Z.OJ,payload:{answers:B()}})}),[a]);var M=b.answers,H=b.loading;function N(){for(var e=!0,n=0;n0&&void 0!==o[0]?o[0]:{},e.next=3,n({type:"shixunsDetail/addRepositoryFile",payload:{id:t.myshixun.identifier,message:r.commitMessage,content:"",path:(s.defaultPath?s.defaultPath+"/":"")+r.path+"/"+(r.file||".gitkeep"),secret_repository:!i||void 0}});case 3:0===(null==(a=e.sent)?void 0:a.status)&&(U.ZP.success("添加成功"),s.onOK({path:(s.defaultPath?s.defaultPath+"/":"")+r.path+"/"+(r.file||".gitkeep"),name:r.path.split("/")[r.path.split("/").length-1]}),s.onClose());case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,y.jsx)(Y.Z,{width:"60%",centered:!0,open:s.visible,wrapClassName:Ht.modal,onOk:function(){g.submit()},onCancel:s.onClose,title:"新建文件夹",children:(0,y.jsx)("section",{className:Ht.bg,children:(0,y.jsx)("div",{className:Ht.wrap,children:(0,y.jsxs)(Ce.Z,{className:"mt10",form:g,scrollToFirstError:!0,layout:"vertical",onFinish:x,onChange:function(){var e,n,t,i,s=v()({},g.getFieldsValue()),r=null==s||null===(e=s.path)||void 0===e?void 0:e.split(""),a=null==s||null===(n=s.file)||void 0===n?void 0:n.split("");null!=r&&null!==(t=r.filter((function(e){return"/"==e})))&&void 0!==t&&t.length&&(s.path=s.path.substring(0,s.path.length-1)),null!=a&&null!==(i=a.filter((function(e){return"/"==e})))&&void 0!==i&&i.length&&(s.file=s.file.substring(0,s.path.length-1)),g.setFieldsValue(v()({},s)),l(s)},children:[(0,y.jsx)(Ce.Z.Item,{label:"文件夹名称:",name:"path",children:(0,y.jsxs)(w.Z,{children:[(0,y.jsx)(k.Z,{children:(0,y.jsx)("span",{className:Ht.filePath,children:s.defaultPath+"/"})}),(0,y.jsx)(k.Z,{flex:"1",children:(0,y.jsx)(Ce.Z.Item,{name:"path",rules:[{required:!0,message:"请输入文件夹名称"},{whitespace:!0,message:"请勿输入空格"}],children:(0,y.jsx)(ke.Z,{placeholder:"请输入文件夹名称",size:"middle"})})})]})}),(0,y.jsx)(Ce.Z.Item,{label:"文件名称:",name:"file",children:(0,y.jsx)(ke.Z,{placeholder:"请输入文件名称,如果不填写系统将在文件夹下创建.gitkeep的默认文件",size:"middle"})}),(0,y.jsx)(Ce.Z.Item,{label:"提交信息:",name:"commitMessage",rules:[{required:!0,message:"请输入提交信息"},{whitespace:!0,message:"请勿输入空格"}],children:(0,y.jsx)(ke.Z,{placeholder:"请输入本次提交的主要信息,合理的描述信息有利于代码历史记录的管理",size:"middle"})})]})})})})})),Ft=t(73145),Ot=["shixunsDetail","globalSetting","loading","user","taskData","dispatch","isRepository","onClose"],Jt=(0,C.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,user:e.user,loading:t.models.index}}))((function(e){e.shixunsDetail,e.globalSetting,e.loading,e.user;var n=e.taskData,t=(e.dispatch,e.isRepository),i=e.onClose,s=c()(e,Ot),r=(0,C.useLocation)(),a=(v()(v()({},(0,C.useParams)()),(0,C.useLocation)().query),(0,E.useState)({})),o=A()(a,2),l=(o[0],o[1]),u=(0,E.useRef)(),d=Ce.Z.useForm(),g=A()(d,1)[0],p=(0,E.useState)(""),m=A()(p,2),I=(m[0],m[1]);(0,E.useEffect)((function(){s.visible&&g.resetFields()}),[s.visible]),(0,E.useEffect)((function(){var e=sessionStorage.getItem("pathArray");if(e){var n=e.split(",").join("/"),t=0===n.indexOf("/")?n.substr(1):n;I(t)}}),[]),(0,E.useEffect)((function(){var e;u.current=null===(e=r.pathname)||void 0===e||null===(e=e.split("/"))||void 0===e?void 0:e[2]}),[]);var x=function(){var e=f()(h()().mark((function e(){var r,a,o=arguments;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>0&&void 0!==o[0]?o[0]:{},e.next=3,(0,P.MI)({id:n.myshixun.identifier,message:r.commitMessage,content:r.codeMirror,path:(s.defaultPath?s.defaultPath+"/":"")+r.path,secret_repository:!t||void 0});case 3:0===(null==(a=e.sent)?void 0:a.status)&&(U.ZP.success("添加成功"),s.onOK({path:(s.defaultPath?s.defaultPath+"/":"")+r.path,name:r.path.split("/")[r.path.split("/").length-1]}),i());case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,y.jsx)(Y.Z,{width:"60%",open:s.visible,wrapClassName:Ht.modal,centered:!0,onOk:function(){g.submit()},onCancel:i,title:"新建文件",children:(0,y.jsx)("section",{className:Ht.bg,children:(0,y.jsx)("div",{className:Ht.wrap,children:(0,y.jsxs)(Ce.Z,{className:"mt10",form:g,scrollToFirstError:!0,layout:"vertical",onFinish:x,onChange:function(){var e,n,t=v()({},g.getFieldsValue()),i=null==t||null===(e=t.path)||void 0===e?void 0:e.split("");(null==i||null===(n=i.filter((function(e){return"/"==e})))||void 0===n?void 0:n.length)>1&&(t.path=t.path.substring(0,t.path.length-1)),g.setFieldsValue(v()({},t)),l(t)},children:[(0,y.jsx)(Ce.Z.Item,{label:"文件名称或文件路径:",name:"path",children:(0,y.jsxs)(w.Z,{children:[(0,y.jsx)(k.Z,{children:(0,y.jsx)("span",{className:Ht.filePath,children:s.defaultPath+"/"})}),(0,y.jsx)(k.Z,{flex:"1",children:(0,y.jsx)(Ce.Z.Item,{name:"path",rules:[{required:!0,message:"请输入文件名称"},{whitespace:!0,message:"请勿输入空格"}],children:(0,y.jsx)(ke.Z,{placeholder:"请输入文件名称",size:"middle"})})})]})}),(0,y.jsx)(Ce.Z.Item,{label:"提交信息:",name:"commitMessage",rules:[{required:!0,message:"请输入提交信息"},{whitespace:!0,message:"请勿输入空格"}],children:(0,y.jsx)(ke.Z,{placeholder:"请输入本次提交的主要信息,合理的描述信息有利于代码历史记录的管理",size:"middle"})}),(0,y.jsx)("div",{className:"mt10 mb20",children:(0,y.jsx)(Ce.Z.Item,{name:"codeMirror",label:"文件内容:",rules:[{required:!0,message:"请输入文件内容"}],children:(0,y.jsx)(Ft.h,{options:{modal:"javascript",lineNumbers:!0,theme:"railscasts",indentUnit:4,matchBrackets:!0,autoRefresh:!0,smartIndent:!0,extraKeys:{"Alt-/":"autocomplete"},autofocus:!0,styleActiveLine:!0,lint:!0,linkurl:"",gutters:["CodeMirror-linenumbers","breakpoints","CodeMirror-lint-markers"]}})})})]})})})})})),Tt=["shixunsDetail","globalSetting","loading","user","dispatch","isRepository","taskData"],Zt=(0,C.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,user:e.user,loading:t.models.index}}))((function(e){e.shixunsDetail,e.globalSetting,e.loading,e.user,e.dispatch,e.isRepository;var n=e.taskData,t=c()(e,Tt),i=(0,C.useLocation)(),s=(v()(v()({},(0,C.useParams)()),(0,C.useLocation)().query),(0,E.useState)({})),r=A()(s,2),a=(r[0],r[1]),o=(0,E.useRef)(),l=Ce.Z.useForm(),u=A()(l,1)[0],d=(0,E.useState)(""),g=A()(d,2),p=g[0],m=g[1],I=(0,E.useState)(""),x=A()(I,2),Q=x[0],j=x[1];(0,E.useEffect)((function(){t.visible&&u.resetFields()}),[t.visible]),(0,E.useEffect)((function(){var e=t.defaultPath.split("/");1===e.length?(m(""),j(t.defaultPath)):(j(e.pop()),m(e.join("/")+"/"))}),[t.defaultPath]),(0,E.useEffect)((function(){var e;o.current=null===(e=i.pathname)||void 0===e||null===(e=e.split("/"))||void 0===e?void 0:e[2]}),[]);var B=function(){var e=f()(h()().mark((function e(){var i,s,r,a=arguments;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,(0,P.g7)({id:null==n||null===(i=n.shixun)||void 0===i?void 0:i.identifier,from:t.defaultPath,to:p+s.path,message:s.commitMessage||"".concat(t.defaultPath," rename to ").concat(p).concat(s.path," ")});case 3:0===(null==(r=e.sent)?void 0:r.status)&&(U.ZP.success("操作成功"),t.onOK({path:s.path,name:s.path}),t.onClose());case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,y.jsx)(Y.Z,{width:"40%",open:t.visible,wrapClassName:Ht.modal,centered:!0,onOk:function(){u.submit()},onCancel:t.onClose,title:"提交说明",children:(0,y.jsx)("section",{className:Ht.bg,children:(0,y.jsx)("div",{className:Ht.wrap,children:(0,y.jsxs)(Ce.Z,{className:"mt10",form:u,scrollToFirstError:!0,layout:"vertical",onFinish:B,onChange:function(){var e,n,t=v()({},u.getFieldsValue()),i=null==t||null===(e=t.path)||void 0===e?void 0:e.split("");(null==i||null===(n=i.filter((function(e){return"/"==e})))||void 0===n?void 0:n.length)>1&&(t.path=t.path.substring(0,t.path.length-1)),u.setFieldsValue(v()({},t)),a(t)},children:[(0,y.jsx)(Ce.Z.Item,{label:"重命名:",name:"path",children:(0,y.jsx)(w.Z,{children:(0,y.jsx)(k.Z,{flex:"1",children:(0,y.jsx)(Ce.Z.Item,{name:"path",rules:[{required:!0,message:"请输入文件名称"},{whitespace:!0,message:"请勿输入空格"}],children:(0,y.jsx)(ke.Z,{placeholder:"请输入文件名称",size:"middle",defaultValue:Q})})})})}),(0,y.jsx)(Ce.Z.Item,{label:"提交信息:",name:"commitMessage",children:(0,y.jsx)(ke.Z,{placeholder:"如不填写,默认提交信息是(".concat(t.defaultPath," rename to 新的名称 )"),size:"middle"})})]})})})})})),Lt=t(59028),Ut=t(91318),Yt={wrap:"wrap___BqUCH",title:"title___Hv2Zk",path:"path___XGwUd",colorBlue:"colorBlue___AYPVZ"},zt=["shixunsDetail","globalSetting","loading","user","taskData","dispatch","isRepository"],Kt=Lt.Z.Dragger,Wt=(0,C.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,user:e.user,loading:t.models.index}}))((function(e){e.shixunsDetail,e.globalSetting,e.loading,e.user;var n,t,i=e.taskData,s=e.dispatch,r=e.isRepository,a=c()(e,zt),o=((0,C.useLocation)(),v()(v()({},(0,C.useParams)()),(0,C.useLocation)().query)),l=(0,E.useState)({}),u=A()(l,2),d=u[0],g=u[1],p=(0,E.useRef)(),m=Ce.Z.useForm(),I=A()(m,1)[0],x=(0,E.useState)([]),w=A()(x,2),k=w[0],Q=w[1],j=(0,E.useState)(),B=A()(j,2),D=B[0],S=B[1];(0,E.useEffect)((function(){a.visible&&(I.resetFields(),Q([]))}),[a.visible]),(0,E.useEffect)((function(){p.current=o.id}),[]),(0,E.useEffect)((function(){var e=sessionStorage.getItem("pathArray");if(e){var n=e.split(",").join("/"),t=0===n.indexOf("/")?n.substr(1):n;S(t)}}),[]);var b,R=function(){var e=f()(h()().mark((function e(n){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.response){e.next=3;break}return U.ZP.info("还未上传完成,无法进行删除操作!"),e.abrupt("return");case 3:return e.next=5,s({type:"shixunsDetail/deleteGitFile",payload:{id:o.id,path:D?"".concat(D,"/").concat(n.name):n.name,message:I.getFieldValue("commitMessage")||"删除了".concat(D?"".concat(D,"/").concat(n.name):n.name),secret_repository:!r||null}});case 5:0===e.sent.status&&(Q(k.filter((function(e){return e.uid!==n.uid}))),U.ZP.info("删除成功"));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),P={height:300,multiple:!0,withCredentials:!0,data:(b=f()(h()().mark((function e(){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=f()(h()().mark((function e(n,i){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:setTimeout(f()(h()().mark((function e(){var i;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I.getFieldsValue();case 2:e.sent,i=v()(v()({},{path:a.defaultPath?a.defaultPath:"",message:d.commitMessage||"上传了".concat(t)}),r?{}:{secret_repository:!0}),n(i);case 5:case"end":return e.stop()}}),e)}))),200);case 1:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(){return b.apply(this,arguments)}),fileList:k,method:"post",action:"".concat(wn.Z.API_SERVER,"/api/myshixuns/").concat(null==i||null===(n=i.myshixun)||void 0===n?void 0:n.identifier,"/upload_git_file.json"),onChange:function(e){if(t=e.file.name,"done"===e.file.status||"uploading"===e.file.status){var n,i,s;if(Q(e.fileList),!e.file.response)return;if(0===(null===(n=e.file.response)||void 0===n?void 0:n.status))return void U.ZP.success("上传成功!");Q(k.filter((function(n){return n.uid!==e.file.uid}))),(null===(i=e.file.response)||void 0===i?void 0:i.message)&&U.ZP.info(null===(s=e.file.response)||void 0===s?void 0:s.message)}},onRemove:R,beforeUpload:function(e){t=e.name}},M=function(){var e=f()(h()().mark((function e(n){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,I.validateFields();case 2:a.onClose(),a.onOK({path:a.defaultPath}),H();case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),H=function(){};return(0,y.jsx)(Y.Z,{open:a.visible,onOk:M,centered:!0,onCancel:a.onClose,width:"70%",children:(0,y.jsxs)("section",{className:Yt.bg,children:[(0,y.jsxs)("div",{className:Yt.wrap,children:[(0,y.jsx)("div",{className:Yt.title,children:"上传文件"}),(0,y.jsxs)(Ce.Z,{className:"mt10",form:I,scrollToFirstError:!0,layout:"vertical",onFinish:M,onValuesChange:function(){return g(v()({},I.getFieldsValue()))},children:[(0,y.jsx)(Ce.Z.Item,{label:"提交信息:",name:"commitMessage",rules:[{required:!0,message:"请输入提交信息"},{whitespace:!0,message:"请勿输入空格"}],children:(0,y.jsx)(ke.Z,{placeholder:"必填,描述主要修改内容(相当于Git Commit message的Header)"})}),(0,y.jsx)(Ce.Z.Item,{label:"选择文件",name:"file",rules:[{required:!0,message:"请选择文件"}],children:(0,y.jsxs)(Kt,v()(v()({},P),{},{children:[(0,y.jsx)("div",{children:(0,y.jsx)("i",{className:"iconfont icon-shangchuan font50 ".concat(Yt.colorBlue)})}),(0,y.jsxs)("div",{className:"font14 mt30",children:["拖拽文件或",(0,y.jsx)("span",{className:"".concat(Yt.colorBlue," ml5"),children:"点击此处上传"})]})]}))})]})]}),(0,y.jsx)(Ut.Z,{onFinish:function(e){return S(e)}})]})})})),Vt={flex_box_center:"flex_box_center___uGMjc",flex_space_between:"flex_space_between___q698b",flex_box_vertical_center:"flex_box_vertical_center___BcSqa",flex_box_center_end:"flex_box_center_end___U5VB_",flex_box_column:"flex_box_column___FwzY4",headLeft:"headLeft___KOU8I",colorBlue:"colorBlue___I6JQI",wrap:"wrap___U6KnW",nodata:"nodata___fWmNT",nodataText:"nodataText___Ufs81",content:"content___yybiA",gitCode:"gitCode___DAK9G",ellipsis:"ellipsis___PeS94",menu:"menu___em7Yq",overlayClass:"overlayClass___Awf9Q",tips:"tips___M0tZb"},Xt="wrap___ishRT",qt="content___BcYdO",_t="mainPathWrap___d2GOf",$t="colorBlue___hKIcc",ei=(0,C.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,loading:t.models.index}}))((function(e){var n=e.shixunsDetail,t=(e.globalSetting,e.loading,e.dispatch),i=e.title,s=e.pathList,r=void 0===s?[]:s,a=e.showInputPath,o=void 0!==a&&a,c=e.isMergeSelectFile,l=void 0!==c&&c,u=e.onFinish,d=void 0===u?function(){}:u,g=Ce.Z.useForm(),p=A()(g,1)[0],m=v()(v()({},(0,C.useParams)()),(0,C.useLocation)().query),I=(0,C.useLocation)(),x=(0,E.useRef)(),w=(0,E.useState)(""),k=A()(w,2),Q=k[0],j=k[1],B=(0,E.useState)(""),D=A()(B,2),S=D[0],b=D[1],R=(0,E.useState)([]),P=A()(R,2),M=P[0],H=P[1],N=(0,E.useState)([]),G=A()(N,2),F=G[0],O=G[1];(0,E.useEffect)((function(){var e;x.current="repository"===(null===(e=I.pathname)||void 0===e||null===(e=e.split("/"))||void 0===e?void 0:e[3])}),[]),(0,E.useEffect)((function(){if("Repository-SelectFilePath"===n.actionTabs.key){var e=r.join("/"),t=[];r.map((function(n,i){0===i?t.push({val:"根目录",path:""},{val:"/".concat(n),path:e}):t.push({val:"/".concat(n),path:e})})),H(t),j(e),b(e),J(e)}}),[n.actionTabs.key]);var J=function(){var e=f()(h()().mark((function e(n){var i;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({type:x.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:m.id,path:n}});case 2:(i=e.sent)&&O(i.trees||[]);case 4:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),T=function(){var e=f()(h()().mark((function e(){var n,i,s;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null==p?void 0:p.getFieldsValue(),i=Q?"".concat(Q).concat(null!=n&&n.name?"/".concat(null==n?void 0:n.name):""):null==n?void 0:n.name,!l){e.next=6;break}return d(i),Z(),e.abrupt("return");case 6:if(!o){e.next=16;break}return e.next=9,p.validateFields();case 9:return e.next=11,t({type:"shixunsDetail/uploadGitFolder",payload:v()(v()({},{id:m.id,path:i}),x.current?{}:{secret_repository:!0})});case 11:s=e.sent,d(S),0===s.status&&U.ZP.info("新建成功"),e.next=18;break;case 16:d(i),U.ZP.success("选择文件目录成功");case 18:Z();case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Z=function(){t({type:"shixunsDetail/setActionTabs",payload:{}}),p.resetFields()};return(0,y.jsx)(Y.Z,{centered:!0,title:i||"新建文件夹",closable:!1,keyboard:!1,open:"Repository-SelectFilePath"===n.actionTabs.key,onOk:T,onCancel:Z,children:(0,y.jsxs)("div",{className:Xt,children:[(0,y.jsxs)("div",{className:qt,children:[(0,y.jsx)("div",{className:_t,children:!(null==M||!M.length)&&M.map((function(e,n){return(0,y.jsx)("a",{onClick:function(){return function(e,n){var t=M.filter((function(e,t){return t<=n}));H(t);var i=t.filter((function(e,n){return 0!==n})).map((function(e){return e.val})).join("").substr(1);j(i),J(i)}(0,n)},children:e.val},n)}))}),!(null==F||!F.length)&&F.map((function(e,n){return"tree"===e.type&&(0,y.jsxs)("a",{onClick:function(){return function(e){var n=Q;"tree"===e.type&&(M.length?M.push({val:"/".concat(e.name),path:e.name}):M.push({val:"根目录",path:""},{val:"/".concat(e.name),path:e.name}),H(M),n=Q?"".concat(Q,"/").concat(e.name):e.name,j(n)),J(n)}(e)},children:[(0,y.jsx)("i",{className:"iconfont icon-wenjianjia ".concat($t)}),e.name]},n)}))]}),(0,y.jsx)("label",{className:"mt5",children:"选中的新建文件夹目录:"}),(0,y.jsx)("div",{className:"mt5 mb5",children:Q}),o&&(0,y.jsx)(Ce.Z,{form:p,scrollToFirstError:!0,className:"mt20",children:(0,y.jsx)(Ce.Z.Item,{name:"name",rules:[{required:!0,message:"请输入名称"},{whitespace:!0,message:"请勿输入空格"}],children:(0,y.jsx)(ke.Z,{placeholder:"请输入新文件夹名/子文件夹名。(如:src/step1)"})})})]})})})),ni=t(94172),ti=t(78386),ii=(t(19421),["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","taskData","practiceSetting","isRepository","treeData","setTreeData","params"]),si=de.Z.DirectoryTree,ri=function(){return(0,y.jsxs)("div",{className:"mt20 pb50 ".concat(Vt.nodata),children:[(0,y.jsxs)("div",{className:Vt.headLeft,children:["提示:",(0,y.jsx)("br",{}),"此处存放本实训所需的所有代码等相关文件,你可以通过以下",(0,y.jsx)("br",{}),"两种方式来使用:",(0,y.jsx)("br",{}),"1、",(0,y.jsx)("a",{href:"/forums/2784",target:"_blank",children:"Git客户端"})," 上传已有文件来开始使用。",(0,y.jsx)("br",{}),"2、直接在平台上创建文件目录以及相关代码文件。"]}),(0,y.jsx)("img",{width:"100%",src:he.Oe})]})},ai=(0,C.connect)((function(e){var n=e.shixunsDetail,t=e.loading,i=e.globalSetting,s=e.practiceSetting;return{shixunsDetail:n,globalSetting:i,user:e.user,practiceSetting:s,loading:t}}))((function(e){var n,t,i,s=e.shixunsDetail,r=(e.globalSetting,e.loading),o=(e.user,e.activeKey,e.dispatch),l=e.taskData,u=e.practiceSetting,d=e.isRepository,g=e.treeData,p=e.setTreeData,m=e.params,I=(c()(e,ii),(0,C.useLocation)()),x=(0,E.useState)(),Q=A()(x,2),j=Q[0],B=(Q[1],(0,E.useState)(!1)),D=A()(B,2),S=D[0],b=D[1],R=(0,E.useState)(!1),H=A()(R,2),N=H[0],G=H[1],F=(0,E.useState)(!1),O=A()(F,2),J=O[0],T=O[1],Z=(0,E.useState)(!1),L=A()(Z,2),z=L[0],K=L[1],W=(0,E.useState)(""),V=A()(W,2),X=V[0],q=V[1],_=(0,E.useState)([]),$=A()(_,2),ee=$[0],ne=$[1],te=(0,E.useState)([]),ie=A()(te,2),se=ie[0],re=ie[1],ae=(0,E.useState)([]),oe=A()(ae,2),ce=(oe[0],oe[1]),le=(0,E.useState)(!1),ue=A()(le,2),de=ue[0],he=ue[1],ge=(0,E.useState)(),pe=A()(ge,2),Ae=(pe[0],pe[1]),me=(0,E.useState)(),Ie=A()(me,2),xe=(Ie[0],Ie[1]),ve=(0,E.useState)(""),Ee=A()(ve,2),Ce=(Ee[0],Ee[1]),we=(0,E.useState)(),ke=A()(we,2),Qe=(ke[0],ke[1]),ye=(0,E.useState)(!1),je=A()(ye,2),Be=je[0],De=je[1];(0,E.useEffect)((function(){p([]),Fe(""),localStorage.warehouseHideTip||he(!0)}),[I.pathname,d]),(0,E.useEffect)((function(){var e;if(null!=l&&null!==(e=l.challenge)&&void 0!==e&&e.path&&null!=g&&g.length){var n,t,i=null==l||null===(n=l.challenge)||void 0===n||null===(n=n.path)||void 0===n?void 0:n.replaceAll(";",""),s=null===(t=(0,hn.cloneDeep)(g))||void 0===t?void 0:t.filter((function(e){var n;return e.name===(null==i||null===(n=i.split("/"))||void 0===n?void 0:n[0])}));Se(i),1!==(null==g?void 0:g.length)&&(console.log(s,"filterTreeData"),p(s))}}),[null==l||null===(n=l.challenge)||void 0===n?void 0:n.path,g]);var Se=function(e){Me(e),se=[e],re([e])},be=function(){var e=f()(h()().mark((function e(){var n,t=arguments;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.length>0&&void 0!==t[0]?t[0]:"",e.next=3,(0,fe.Zt)({id:m.id,secret_dir_path:n});case 3:e.sent&&Qe(n);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Re=function(e){return(0,y.jsxs)(Pt.Z,{className:Vt.menu,onClick:function(n){switch(q(e.path||""),n.key){case"1":(0,M.L9)(["实践项目","设置","代码仓库","新建文件"]),b(!0);break;case"2":(0,M.L9)(["实践项目","设置","代码仓库","新建文件夹"]),T(!0);break;case"3":(0,M.L9)(["实践项目","设置","代码仓库","上传"]),K(!0);break;case"4":(0,M.L9)(["实践项目","设置","代码仓库","重命名"]),G(!0);break;case"5":(0,M.L9)(["实践项目","设置","代码仓库","删除"]),Te(e.path,e.name,e);break;case"6":(0,M.L9)(["实践项目","设置","代码仓库","复制路径"]),Ze(e)}},children:[("topTree"===e.type||"tree"===e.type)&&(0,y.jsx)(Pt.Z.Item,{children:"新建文件"},"1"),("topTree"===e.type||"tree"===e.type)&&(0,y.jsx)(Pt.Z.Item,{children:"新建文件夹"},"2"),("topTree"===e.type||"tree"===e.type)&&(0,y.jsx)(Pt.Z.Item,{children:"上传"},"3"),"topTree"!==e.type&&"tree"!==e.type&&(0,y.jsx)(Pt.Z.Item,{children:"重命名"},"4"),"topTree"!==e.type&&(0,y.jsx)(dn.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(d?"":"secret/").concat(null==e?void 0:e.path),onCopy:function(){return U.ZP.success("复制成功")},children:(0,y.jsx)(Pt.Z.Item,{children:(0,y.jsx)(y.Fragment,{children:"复制路径"})},"6")}),"topTree"!==e.type&&(0,y.jsx)(Pt.Z.Item,{children:"删除"},"5")]})},Pe=function(e,n){return e.map((function(e){return e.path=""==n?n+e.name:n+"/"+e.name,e.title=(0,y.jsxs)(w.Z,{className:"font14",children:[(0,y.jsx)(k.Z,{flex:"1",children:(0,y.jsxs)(w.Z,{children:[(0,y.jsx)(k.Z,{flex:"20px",children:"blob"===e.type&&(0,y.jsx)("span",{className:"iconfont icon-wenjian11 font12"})}),(0,y.jsx)(k.Z,{flex:"1",children:(0,y.jsx)("span",{className:" multi_ellipsis1",children:e.name})})]})}),(0,y.jsx)(k.Z,{children:("blob"===e.type||"tree"===e.type)&&(0,y.jsx)(Mt.Z,{dropdownRender:function(){return Re(e)},className:Vt.ellipsis,children:(0,y.jsx)("i",{className:"iconfont icon-gengduo2 c-555a88"})})})]}),e.disableCheckbox=j&&j!==e.name,e.className="tree"===e.type?Vt.pl23:"",e.checkable="tree"!==e.type,e.isLeaf="tree"!==e.type,e.children="tree"===e.type&&[],e.key=e.path,e}))},Me=function(e){o({type:"practiceSetting/setSideBarTabs",payload:{selectPath:e}})},He=function(){var e=f()(h()().mark((function e(n,t){var i;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.split("/"),e.next=3,Fe(X);case 3:setTimeout((function(){Me(n),ee=[i[0]||""],se=[n],re(a()(se)),ne(a()(ee))}),150);case 4:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),Ne=function(e,n){if(console.log(e,"data"),""==n)p(a()(e));else{var t=Ge(g,n,e);p([].concat(t))}};function Ge(e,n,t){return e.map((function(e){return e.key===n?(e.children=a()(t),v()({},e)):e.children?v()(v()({},e),{},{children:Ge(e.children,n,t)}):e}))}var Fe=function(){var e=f()(h()().mark((function e(){var n,t,i,s,r,o,c=arguments;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:"",console.log("location:",I),e.next=4,(0,P.pU)(null==l||null===(n=l.myshixun)||void 0===n?void 0:n.identifier,{path:t});case 4:return(i=e.sent)&&(null!==(s=i.trees)&&void 0!==s&&s.length?(o=Pe(a()(i.trees),t),Ne(o,t),ce(i.trees||[]),xe((null==i?void 0:i.secret_dir_path)||""),console.log("handleGetRepository:",o,t),setTimeout((function(){return console.log(g)}),2e3)):""==t&&p([]),Ae((null===(r=i.commits)||void 0===r?void 0:r[0])||{})),e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Oe=function(){var e=f()(h()().mark((function e(n){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=f()(h()().mark((function e(t,i){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.children.length&&t(),Ce(n.path),e.next=4,Fe(n.path);case 4:t();case 5:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),Je=function(){var e=f()(h()().mark((function e(n,t){var i,s;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("handleSelectTree",n,t.nativeEvent.target.nodeName,t),i=function(){Me(t.node.path),n=[t.node.path],re(a()(n))},"svg"!==t.nativeEvent.target.nodeName&&"LI"!==t.nativeEvent.target.nodeName&&"I"!==t.nativeEvent.target.nodeName){e.next=4;break}return e.abrupt("return");case 4:"blob"===t.node.type&&(null!=u&&null!==(s=u.sideBar)&&void 0!==s&&s.confirmLeave?Y.Z.confirm({title:"离开此页提示",content:"系统可能不会保存您所做的更改。",okText:"离开",cancelText:"取消",onOk:function(){i(),o({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):i());case 5:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),Te=function(e,n,t){var i;Y.Z.confirm({centered:!0,title:"确认需要删除该文件".concat(t.children?"夹":"","?"),okText:"确定",cancelText:"取消",onOk:(i=f()(h()().mark((function n(){var t,i,s,r;return h()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,P.bD)({id:null==l||null===(t=l.myshixun)||void 0===t?void 0:t.identifier,path:e,message:"删除".concat(e)});case 2:if(i=n.sent,s=e.split("/"),0!==(null==i?void 0:i.status)){n.next=20;break}return U.ZP.info("删除成功"),s.splice(s.length-1,1),n.next=9,Fe(s.length>1?s.join("/"):"");case 9:if(null==(r=n.sent)||!r.trees){n.next=13;break}n.next=16;break;case 13:return s.splice(s.length-1,1),n.next=16,Fe(s.length>1?s.join("/"):"");case 16:return Me(""),n.abrupt("return",!0);case 20:-3===(null==i?void 0:i.status)&&Y.Z.info({title:"删除失败",content:(0,y.jsxs)("div",{children:["该文件“",e,"”已经被任务关卡的学员任务文件或评测执行文件使用,请先修改任务关卡中评测设置的文件路径后再删除。"]}),okText:"我知道了",onOk:function(){}});case 21:case"end":return n.stop()}}),n)}))),function(){return i.apply(this,arguments)})})},Ze=function(e){console.log(e,"item")},Le=function(){var e=f()(h()().mark((function e(n,t){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("handleExpand",t),"svg"!==t.nativeEvent.target.nodeName&&"path"!==t.nativeEvent.target.nodeName&&"LI"!==t.nativeEvent.target.nodeName){e.next=5;break}return e.abrupt("return",!0);case 5:return e.next=7,Oe(t.node);case 7:ee.includes(t.node.path)?ee.splice(ee.indexOf(t.node.path),1):ee.push(t.node.path);case 8:ne(a()(ee));case 9:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),Ue=function(){he(!1),localStorage.warehouseHideTip=!0},Ye=function(){var e=f()(h()().mark((function e(n){var t,i;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log(n),n.node.key,n.dragNode.key,t=n.node.pos.split("-"),n.dropPosition-Number(t[t.length-1]),"tree"===n.node.type&&1!==n.dragNode.path.split("/").length){e.next=8;break}return U.ZP.warning("未移动文件目录位置"),e.abrupt("return");case 8:return e.next=10,o({type:"shixunsDetail/moveGitFile",payload:{id:m.id,from:n.dragNode.path,to:n.node.path+"/"+n.dragNode.name,message:"".concat(n.dragNode.path," move to ").concat(n.node.path+"/"+n.dragNode.name," ")}});case 10:if(0!==e.sent.status){e.next=22;break}return Me(""),(i=n.dragNode.path.split("/")).pop(),e.next=17,Fe(n.node.path);case 17:return e.next=19,Fe(i.join("/"));case 19:return i.pop(),e.next=22,Fe(i.join("/"));case 22:return e.abrupt("return");case 28:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,y.jsxs)("section",{className:Vt.bg,children:[(0,y.jsx)("div",{className:Vt.contentbg,children:(0,y.jsxs)("div",{className:Vt.wrap,children:[(0,y.jsxs)(w.Z,{className:Vt.gitCode,children:[(0,y.jsxs)(k.Z,{flex:"1",children:[(0,y.jsx)("span",{className:"iconfont icon-daimacangku2 mr8"}),d?"代码仓库":"私密代码仓库"]}),(0,y.jsx)(k.Z,{children:(0,y.jsx)(Mt.Z,{dropdownRender:function(){return Re({type:"topTree"})},className:"current",children:(0,y.jsx)(on.Z,{open:de,title:(0,y.jsxs)("div",{className:"font16",children:[(0,y.jsx)(ni.Z,{style:{position:"relative",left:-35},onClick:function(){return Ue()}}),"点击此处新建文件、新建文件夹、上传文件。",(0,y.jsx)("span",{onClick:function(){return Ue()},className:"iconfont icon-guanbi1 ml8 current font14"})]}),overlayClassName:Vt.overlayClass,overlayStyle:{maxWidth:500},arrowPointAtCenter:!0,placement:"right",color:"#F7B500"})})})]}),!!g.length&&!d&&(0,y.jsx)("div",{className:"mt20 pl20 pr20 font14 c-white",children:(0,y.jsx)("div",{children:"实训评测的时候,系统会临时将私密代码库移动普通代码库的secret目录下面,评测结束会清空secret目录内容。如果私密代码库中存在文件src/test.sh,在普通代码库调用该文件则使用路径:secret/src/test.sh"})}),g.length?(0,y.jsx)(y.Fragment,{children:(0,y.jsx)("div",{className:Vt.content,children:(0,y.jsx)(si,{disabled:!!r.effects["shixunsDetail/getFileContent"],multiple:!0,showIcon:!1,treeData:g,switcherIcon:(0,y.jsx)(ti.Z,{style:{fontWeight:"bold",fontSize:14,position:"relative",top:3,marginLeft:22}}),onExpand:Le,expandedKeys:ee,selectedKeys:se,onSelect:Je,draggable:{icon:!1},onDragEnter:function(e){console.log(e)},onDrop:Ye,allowDrop:function(e){e.dropNode,e.dropPosition;return!1}})})}):"",!g.length&&d&&(null==s||null===(t=s.detail)||void 0===t?void 0:t.init_repository)&&(0,y.jsx)(ri,{}),!g.length&&!d&&(null==s||null===(i=s.detail)||void 0===i?void 0:i.secret_repository)&&(0,y.jsx)(ri,{})]})}),(0,y.jsx)(Zt,{taskData:l,open:N,defaultPath:X,onClose:function(){return G(!1)},isRepository:!d,onOK:function(){var e=f()(h()().mark((function e(n){var t;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=X.split("/")).pop(),e.next=4,Fe(t.join("/"));case 4:Me("");case 5:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()}),(0,y.jsx)(Jt,{taskData:l,visible:S,defaultPath:X,onClose:function(){return b(!1)},isRepository:d,onOK:function(e){He(e.path,e.name)}}),(0,y.jsx)(Gt,{taskData:l,visible:J,defaultPath:X,onClose:function(){return T(!1)},isRepository:d,onOK:function(e){He(e.path,e.name)}}),(0,y.jsx)(Wt,{taskData:l,defaultPath:X,visible:z,isRepository:d,onClose:function(){return K(!1)},onOK:function(){var e=f()(h()().mark((function e(n){var t;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=X.split("/"),e.next=3,Fe(X);case 3:ee=[t[0]||""],se=[X],re(a()(se)),ne(a()(ee));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()}),(0,y.jsx)(ei,{pathList:null==X?void 0:X.split("/"),showInputPath:!0,isMergeSelectFile:Be,onFinish:function(e){Be?be(e):Fe(e),De(!1)}})]})})),oi={flex_box_center:"flex_box_center___JApjy",flex_space_between:"flex_space_between___kWWbU",flex_box_vertical_center:"flex_box_vertical_center___Op0Qs",flex_box_center_end:"flex_box_center_end___xNwhe",flex_box_column:"flex_box_column___RSFt3",commitWrap:"commitWrap___uVJGM",wrap:"wrap____nTMX",colorGray:"colorGray___UUm6u",content:"content___TUOUP",itemTime:"itemTime___sZPNc",imageUrl:"imageUrl___WLUXb",blueLight:"blueLight___bdcZp",divider:"divider___ltlQU",empty:"empty___i8M59"},ci=t(28103),li=["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"],ui=(0,C.connect)((function(e){var n=e.shixunsDetail,t=e.loading;return{shixunsDetail:n,globalSetting:e.globalSetting,user:e.user,loading:t.models.index}}))((function(e){e.shixunsDetail,e.globalSetting,e.loading,e.user;var n=e.dispatch,t=e.isRepository,i=(c()(e,li),v()(v()({},(0,C.useParams)()),(0,C.useLocation)().query)),s=(0,E.useState)([]),r=A()(s,2),a=r[0],o=r[1];(0,E.useEffect)((function(){l()}),[t]);var l=function(){var e=f()(h()().mark((function e(){var s;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({type:"shixunsDetail/getRepositoryCommit",payload:{id:i.id,secret_repository:!t||void 0}});case 2:(s=e.sent)&&o(s.commits||[]);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,y.jsxs)(y.Fragment,{children:[""==a&&(0,y.jsxs)("div",{className:oi.empty,children:[(0,y.jsx)("img",{src:he.em,width:"258"}),(0,y.jsx)("br",{}),(0,y.jsx)("span",{className:"c-grey-c font14",children:"暂无提交记录"})]}),""!=a&&(0,y.jsx)("section",{className:oi.bg,children:(0,y.jsx)("div",{className:oi.wrap,children:(0,y.jsx)("div",{className:oi.content,children:null==a?void 0:a.map((function(e){var n,t;return(0,y.jsxs)("div",{children:[(0,y.jsx)(w.Z,{align:"middle",className:"c-white font16",children:(0,y.jsx)(k.Z,{children:e.title})}),(0,y.jsxs)(w.Z,{align:"middle",className:"mt20 ",children:[(0,y.jsx)(k.Z,{children:(0,y.jsx)("img",{className:oi.imageUrl,src:wn.Z.IMG_SERVER+"/"+(null===(n=e.author)||void 0===n?void 0:n.image_url)})}),(0,y.jsx)(k.Z,{className:oi.blueLight,children:(0,y.jsx)("span",{className:"ml20",children:null===(t=e.author)||void 0===t?void 0:t.username})}),(0,y.jsxs)(k.Z,{children:[(0,y.jsx)("span",{className:"ml20 ".concat(oi.blueLight),children:"提交于"}),(0,y.jsx)("span",{className:"ml20 ".concat(oi.blueLight),children:e.time})]})]}),(0,y.jsx)(ci.Z,{className:oi.divider})]})}))})})})]})})),di=t(97963),hi=["globalSetting","loading","dispatch","practiceSetting","shixunsDetail","taskData","taskId","onEditRepCode"],gi=(Rt.Z.TabPane,(0,C.connect)((function(e){var n=e.loading;return{globalSetting:e.globalSetting,loading:n,practiceSetting:e.practiceSetting,shixunsDetail:e.shixunsDetail}}))((function(e){e.globalSetting;var n,t,i,s,r,a,o=e.loading,l=e.dispatch,u=e.practiceSetting,d=e.shixunsDetail,g=e.taskData,p=e.taskId,m=e.onEditRepCode,I=(c()(e,hi),!(null!=g&&g.is_last_game)&&((null==g?void 0:g.shixun.status)>0||(null==g||null===(n=g.user)||void 0===n?void 0:n.identity)<5)),x=(0,E.useState)("1"),Q=A()(x,2),j=Q[0],B=Q[1],D=(0,E.useState)("1"),S=A()(D,2),b=S[0],R=S[1],M=(0,E.useState)(!0),H=A()(M,2),N=H[0],G=H[1],F=(0,E.useState)({}),O=A()(F,2),J=O[0],T=O[1],Z=((0,E.useRef)(),(0,E.useState)(!0)),L=A()(Z,2),z=L[0],K=L[1],W=(0,E.useState)(["2","1"]),V=A()(W,2),X=V[0],q=V[1],_=(0,E.useState)([]),$=A()(_,2),ee=$[0],ne=$[1],te=(0,E.useRef)(),ie=v()(v()({},(0,C.useParams)()),{},{taskId:p}),se=(0,E.useState)(!1),re=A()(se,2),ae=re[0],oe=re[1],ce=[{id:"1",name:"代码仓库"},{id:"2",name:(0,y.jsxs)("span",{children:[(0,y.jsx)("span",{children:"私密代码仓库"}),(0,y.jsx)(on.Z,{title:"私密版本库的文件对学员始终隐藏,无法访问查看。",children:(0,y.jsx)("i",{className:"iconfont icon-xiaowenhao",style:{marginLeft:2,fontSize:14}})})]})}];(0,E.useEffect)((function(){var e,n=null==u||null===(e=u.sideBar)||void 0===e?void 0:e.selectPath.split("/");q(n)}),[null==u||null===(t=u.sideBar)||void 0===t?void 0:t.selectPath]);var le=function(e){"compileResltDone"===e.data&&oe(!1)};(0,E.useEffect)((function(){return window.addEventListener("message",le),function(){window.removeEventListener("message",le)}}),[]);(0,E.useEffect)((function(){var e;console.log(null==u||null===(e=u.sideBar)||void 0===e?void 0:e.selectPath,"sideBar"),new Promise(function(){var e=f()(h()().mark((function e(n,t){var i,s,r,a,o,c,d;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""===(null==u||null===(i=u.sideBar)||void 0===i?void 0:i.selectPath)||null==u||null===(s=u.sideBar)||void 0===s||!s.selectPath){e.next=5;break}return e.next=3,(0,P.li)(p,{path:null==u||null===(r=u.sideBar)||void 0===r?void 0:r.selectPath});case 3:if(null!=(a=e.sent)&&a.content||""==(null==a?void 0:a.content))try{"txt"===(null==a?void 0:a.file_type)?(a.content=window.decodeURIComponent(escape(window.atob(null===(o=a.content)||void 0===o?void 0:o.content))),T(v()({},a))):(a.content=null===(c=a.content)||void 0===c?void 0:c.content,T(v()({},a)))}catch(e){J.content&&(a.content=window.atob(null===(d=a.content)||void 0===d?void 0:d.content)),T(v()({},a)),U.ZP.warning("请确认文件字符集编码是否为UTF-8")}else l({type:"practiceSetting/setSideBarTabs",payload:{selectPath:""}});case 5:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}())}),[null==u||null===(i=u.sideBar)||void 0===i?void 0:i.selectPath]);Pt.Z,Pt.Z.Item,ce.filter((function(e){var n,t;return null==d||null===(n=d.detail)||void 0===n||!n.init_repository||null!=d&&null!==(t=d.detail)&&void 0!==t&&t.is_jupyter_lab?"2"!==e.id:e})).map((function(e,n){return(0,y.jsx)(Pt.Z.Item,{className:"leaveClick",children:e.name},e.id)}));var ue=function(){var e=f()(h()().mark((function e(){var n,t,i,s,r;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return oe(!0),e.next=3,(0,P.n4)(null==g||null===(n=g.myshixun)||void 0===n?void 0:n.identifier,v()(v()({path:null==u||null===(t=u.sideBar)||void 0===t?void 0:t.selectPath},J),{},{evaluate:0,tab_type:1,game_id:null==g||null===(i=g.game)||void 0===i?void 0:i.id}));case 3:r=e.sent,null===(s=document.getElementById("latexIframeRef"))||void 0===s||null===(s=s.contentWindow)||void 0===s||s.postMessage("compile","*"),null!=r&&r.content&&l({type:"practiceSetting/setSideBarTabs",payload:v()(v()({},u.sideBar),{},{confirmLeave:!1})});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,y.jsx)("div",{className:xt,children:(0,y.jsxs)("div",{className:vt,children:["1"===b&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("aside",{className:Et,id:"latex-drawer",style:{width:N?"36%":"0%"},children:[(0,y.jsx)(Qe.Z,{spinning:!!o.effects["shixunsDetail/getRepository"],wrapperClassName:"".concat(kt," ").concat(bt),children:(0,y.jsx)(ai,{taskData:g,params:ie,setTreeData:ne,treeData:ee,activeKey:j,isRepository:z})}),(0,y.jsx)("span",{onClick:function(){return G(!1)},className:"".concat(Ct," iconfont icon-quxiao")})]}),(0,y.jsxs)("aside",{className:wt,ref:te,children:[""!==(null==u||null===(s=u.sideBar)||void 0===s?void 0:s.selectPath)&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(Qe.Z,{spinning:!!o.effects["shixunsDetail/getFileContent"],wrapperClassName:kt,children:[(0,y.jsx)("div",{className:Dt,children:(0,y.jsxs)(w.Z,{align:"middle",className:"w100",children:[(0,y.jsx)(k.Z,{children:(0,y.jsx)("span",{onClick:function(){return G(!0)},className:"iconfont icon-daimacangku2 c-white current"})}),(0,y.jsx)(k.Z,{flex:"40px",children:(0,y.jsx)("div",{className:yt,style:{marginLeft:20}})}),(0,y.jsx)(k.Z,{className:St,children:X.map((function(e,n){return(0,y.jsx)("span",{className:"c-blue",children:e})}))})]})}),(0,y.jsx)("div",{className:o.effects["shixunsDetail/getFileContent"]?"hide":"show",children:(0,y.jsx)(di.Z,{className:"darkBlue",style:{top:66,height:"calc(100% - 60px)",position:"absolute"},filename:J.filename,type:"office"===J.file_type?"download":J.file_type,data:J.content,monacoEditor:{value:J.content,language:J.language,onChange:function(e){return function(e){"txt"===(null==J?void 0:J.file_type)&&(J.content=e,T(v()({},J)),m(e))}(e)},onSave:function(e){},options:{fontSize:14,minimap:{enabled:!1}}}})})]}),"txt"===(null==J?void 0:J.file_type)&&(0,y.jsxs)("div",{className:jt,children:[(null==g?void 0:g.prev_game)&&(0,y.jsx)("a",{href:"/tasks/".concat(null==g?void 0:g.prev_game).concat(location.search),style:{marginRight:"auto"},onClick:function(e){e.preventDefault(),setTimeout((function(){return window.location.href="/tasks/".concat(null==g?void 0:g.prev_game).concat(location.search)}),300)},children:"上一关"}),(0,y.jsx)(Ge.ZP,{type:"primary",size:"middle",loading:ae,onClick:ue,children:"开始编译"}),I&&(0,y.jsx)("a",{href:"/tasks/".concat(null==g?void 0:g.next_game).concat(location.search),style:{marginLeft:"auto"},onClick:function(e){var n,t;e.preventDefault(),null!=g&&null!==(n=g.shixun)&&void 0!==n&&n.task_pass||2===(null==g?void 0:g.game.status)||(null==g||null===(t=g.user)||void 0===t?void 0:t.identity)<5?setTimeout((function(){return window.location.href="/tasks/".concat(null==g?void 0:g.next_game).concat(location.search)}),300):Y.Z.warning({centered:!0,width:530,title:"提示",okText:"我知道了",content:(0,y.jsx)("p",{children:"该实践项目设置了不允许跳关。通过当前关卡后,才能进入下一关。"})})},children:"下一关"})]})]}),""==(null==u||null===(r=u.sideBar)||void 0===r?void 0:r.selectPath)&&(null==d||null===(a=d.detail)||void 0===a?void 0:a.init_repository)&&(0,y.jsxs)("div",{className:Qt,children:[(0,y.jsx)("img",{src:he.x7,width:"258"}),(0,y.jsx)("br",{}),(0,y.jsxs)("span",{className:"c-grey-c",children:[!(null==ee||!ee.length)&&"在左侧代码仓库区域点击目录打开文件",!(null!=ee&&ee.length)&&"请先在左侧上传文件或新建文件!"]})]})]})]}),"2"===b&&(0,y.jsx)("div",{className:Bt,children:(0,y.jsx)(ui,{isRepository:z})})]})})}))),fi=function(e){var n=e.taskId,t=e.taskData,i=e.onEditRepCode,s=(0,E.useRef)(),r=(0,E.useRef)(),a=(0,E.useMemo)((function(){if(t){var e,i,s,r=null==t||null===(e=t.challenge)||void 0===e||null===(e=e.path)||void 0===e||null===(e=e.replace(";",";"))||void 0===e?void 0:e.split(";")[0];return"https://latexjs.educoder.net/index.html?id=".concat(null==t||null===(i=t.shixun)||void 0===i?void 0:i.identifier,"&path=").concat(r,"&taskId=").concat(n,"&myshixunId=").concat(null==t||null===(s=t.myshixun)||void 0===s?void 0:s.identifier,"&token=").concat((0,M.ej)("_educoder_session"))}}),[t]);return(0,y.jsxs)(w.Z,{style:{height:"100vh"},ref:r,children:[(0,y.jsx)(k.Z,{flex:"1",children:(null==t?void 0:t.shixun)&&(0,y.jsx)(gi,{taskId:n,taskData:t,onEditRepCode:i})}),(0,y.jsxs)(k.Z,{flex:"1",className:mt,children:[(0,y.jsx)("iframe",{ref:s,id:"latexIframeRef",style:{width:"100%",border:"none",height:"100%"},src:a}),(0,y.jsxs)("span",{className:It,onClick:function(){(0,Q.vp)()?(0,Q.BU)():(0,Q.Dj)(r.current)},children:[(0,y.jsx)("span",{className:"iconfont icon-quanping mr5 font12"}),"全屏 / 退出全屏"]})]})]})},pi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAMgCAMAAADsrvZaAAADAFBMVEUAAAD+0UD+00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AAAAAAAAAAAAAAAAAAAAAAAAAADATp5K5AOzdXkYAAAAASUVORK5CYII=",Ai="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAMgCAMAAADsrvZaAAADAFBMVEUAAAD90UH/00P+0T7+0j/+0j7+0j/+0j//1ED90D78zz78zz/otjD6zz/ntzDfrCv7zz7vwDjfrizXqivery3zxjvKmyfVpSnery7YqCn6zj/vwTnktjP+4EvWpindsC7+4lDVpSvUpCfpvDX/6Zr/4EjLnirXpin+6JrrvDXHlyXOnCTCliz+4lzCkibRoyfQoSXhszX94mXOniPXqzLWoifDlCvbrzfHlB7DnDnKmiH322HZrjTGlSDFlS3KmyDQoCXJmB3ImSDWrTXWqjLImR7PnyXsyE7RpS7ImR7DlR3asDfDkxzkuDnHmCDPnSG/kR/Bkhznw1DKnR7Jmx7HmCDTqTPNnSLQpCv85p7RoCb+7rf832/Akx3tzV2/kRrt14/+55XKnh/866/ImhzPpTPUtE7kvk7hvVTz1WDpw0rVrTv12H/oymb96aGwiSbszWvs1JDQoiPIsGPdtUa3jSKzjCLjw3mMezL/99zjkB/eu1bBmjKliDG4kCCtiCG8kiDlqjKTgDLPnh/WjSHZtFGigCHXYR7Xih/gWxzBmS/QqEWFczHViiWym1OvmT3Ur1/aWx7utRfQiyijhjfqzGzckB735p/cqCzOpS+ngR3aXxzw4qzVcx/l1JnNuXW1j0TXyozFuSniaBnXyjWeeCHsVRfhzojvdCvghk3sRBDxewvmkB8cIigsMzsvOEEzPUcnLTUhJy5HT1g/Q0UYHCE6QUdOU1dDREAOERU+RUvynRWiYRxJRztNRjQ6PkD/vTSzeBlDPzQoKSatcCY3OjlWUk345JxBOSX124n335IzMCj77a/++s366KX99sJGSEr01n85ODD88bhOTEi5giPvz3e+iSuoayNjWk/DkDHXrVH//tfdtVnryW9vY1PRpUnHljnMnUDslxvmw2rivGLt0YSKWR7duGyeaSf2uTF6bVruszOMdVhjVjjhkRXVixiehVPt7Wbr8sq/ol/l87Pw8+qil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Aj0KAecmBLketDWhmZPzmnIF0iYUalWoq3ml2Jjkw9IbRlpN+YUedFYoyS+plYV4S6KR2WIvCZsyJn88CoIDuihBLkacUjfC4ltI0k+4ATr0fLoUYau9Kraq4JLH7W4qCA0ifp0Qi87vyRueIs3td6efEYPf41Bk/KhNSUXxw0EKfZ6WmPyOjmo1K4WJQrzSot/U8c2xZuTA7aYSvmIbTaqd4xtiHtrcpibysCJthDhBBkqTdzbMd4TpfWI4olXhIkJYqMZ4g1QdW8KENXaFRwhK5Qg9mjzCGJuPP3xQHVERYMtMUdsoK5We5/KYoKoDJx4Cd8gwQxDO7MhvgOMiL7YP1xvMRCNL3KrJYj5iQLFE/BrzbWSXTSDBCltL0E+aYi3waVDVySFSFea8/CTeJedZ3DLW+D/bwgMRYjIaIL7pSqF+VskNMjAXjx/qIUk4pji10+2AgSnKfr6wT1E/At+N+2kFRk5+A6CFENgQRTqWblWIoo3oQh50c6ozV/27iDFYRiGAqh8/0sPDKYQVGXCIDdOeU+rdhGyqPrj2rXTJnmzNAdd8ilj82W2Q6vEofK/oF4kCCtGI7NOE2SbZ7CY9TZBTJjTJyfIr4tj4vWKhs1H0do8lIUuJkiM2CFL4lXmy/mE4ns41doIqVvB6hFudvbJq5aSF9XaB29FTHqGuxz3aJx1ZQIxVkeInRC5zZhVb3d+YQAdfZVTY96chVbcqP7p9++noGiMDgHC/kbRN+sSJNchQBzlwQ7GrGNTJCMWJEh9NxKEnY1U6bGrJy/yO2H9CLs6TZBe+aJSgwcpBs29ZXqDRxoxircaOEmTb1CMF1pLhPA1RsQjrgk3GP8JEIsQAShZcQuABAEAAAAAAAAAAAAAAOCnPTgkAAAAABD0/7UzLAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPAKIvBM7ETh/v4AAAAASUVORK5CYII=",mi=function(e){var n=e.star,t=e.gold,i=e.experience,s=e.next_game,r=e.next_shixun,a=e.subject_done,o=e.onCloseResult,c=e.isPictureView,l=e.webDisplayUrl,u=e.onShowPictureView,d=(e.history,e.onStarChange),h=e.taskData,g=e.is_jupyter,f=e.is_jupyter_lab,p=(0,C.useSearchParams)(),m=A()(p,1)[0],I=(0,C.useParams)();var x=(0,C.useLocation)();return(0,y.jsx)("div",{className:"evaluate-result-container",children:(0,y.jsxs)("div",{className:"evaluate-result-body",children:[(0,y.jsx)("a",{className:"close-line",onClick:o,children:(0,y.jsx)("i",{className:"iconfont icon-roundclose",style:{fontSize:"32px"}})}),!m.get("subject_id")&&(0,y.jsx)("img",{width:652,src:s||!a?pi:Ai,alt:"通关"}),m.get("subject_id")&&(0,y.jsx)("img",{width:652,src:a?Ai:pi,alt:"通关"}),(0,y.jsxs)("div",{className:"gold-and-experience",children:[(0,y.jsxs)("p",{className:"flex-container",children:[(0,y.jsx)("span",{className:"gold-circle"})," +",t]}),(0,y.jsxs)("p",{className:"flex-container",children:[(0,y.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAASCAYAAABSO15qAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvb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xs)("footer",{children:[n?null:(0,y.jsxs)(E.Fragment,{children:[(0,y.jsx)("p",{className:"star-tip",children:"您的评价决定老师的江湖地位~"}),(0,y.jsx)(ae.Z,{className:"star-tip-rate",defaultValue:0,allowClear:!1,onChange:d})]}),(0,y.jsxs)("div",{className:"tc",children:[s?(0,y.jsx)("a",{className:"current",onClick:function(){o(),console.log("`/tasks/${next_game}${location.search}`","/tasks/".concat(s).concat(x.search)),I.courseId&&I.homeworkId?setTimeout((function(){window.location.href="/tasks/".concat(I.courseId,"/").concat(I.homeworkId,"/").concat(s).concat(x.search)}),300):setTimeout((function(){window.location.href="/tasks/".concat(s).concat(x.search)}),300)},children:"下一关"}):(0,y.jsx)("a",{className:"current",onClick:o,children:"完成"}),!!r&&(0,y.jsx)("a",{className:"current",onClick:function(){pe(r,null,g||f,m.get("subject_id"))},children:"进入下一个实训"}),c?(0,y.jsx)("a",{className:"current",onClick:function(){u(),o()},children:"查看效果"}):null,l?(0,y.jsx)("a",{target:"_blank",href:l,children:"查看效果"}):null,(null==h?void 0:h.openai_tpi)&&(0,y.jsx)("a",{href:"https://www.educoder.net/tasks/c9rfy5wlmz7f",className:"current",target:"_blank",children:"强化训练"})]}),m.get("subject_id")&&(0,y.jsxs)("div",{className:"tc mt15",children:[r&&!s&&"已通过本实训的最后一个关卡,可以进入下一个实训中进行实战",a&&"恭喜您,本实践课程的最后一个实训已通关"]})]})]})})},Ii=t(28909),xi=t(79636),vi="code-area-container___bjERn",Ei="only-view___LP5ZN",Ci="frame___k7Y9h",wi=function(e){var n=e.content,t=e.language,i=e.theme,s=e.onCodeChange,r=e.onSave,a=e.monacoOptions,o=e.isEditPath,c=e.currentPath,l=e.code_edit_permission,d=e.onUpdateCode,g=e.forbidCopy,p=e.filename,m=e.file_type,I=e.taskData,x=e.itemData,w=e.codeLoading,k=e.breakPointValue,Q=e.setBreakPointValue,j=e.highlightLine,B=e.openBreakPoint,D=e.startDebug,S=e.unique,b=e.allBreakPointValue,R=e.setAllBreakPointValue,M=(0,C.useParams)(),H=(0,E.useRef)(),N=(0,E.useRef)({unique:S,breakPointValue:k,currentPath:c,startDebug:D,allBreakPointValue:b}),G=(0,E.useState)(!0),F=A()(G,2),O=F[0],J=F[1],T=(0,E.useState)("正在加载中"),Z=A()(T,2),L=Z[0],U=Z[1],z=(0,C.useSearchParams)(),K=A()(z,1)[0],W=(0,E.useState)({}),V=A()(W,2),X=V[0],q=V[1];console.log("content:",{value:n,language:t,theme:i,onChange:s,onSave:r,forbidCopy:g,options:a,filename:p,file_type:m});var _=x.tab_type,$=x.shixun_environment_id,ee=x.index_tab;(0,E.useEffect)((function(){N.current.unique=S,N.current.breakPointValue=k,N.current.currentPath=c,N.current.startDebug=D,N.current.allBreakPointValue=b}),[S,k,c,D,b]),(0,E.useEffect)((function(){D?(Q([]),ne()):B&&Q((null==b?void 0:b[c])||[])}),[c]),(0,E.useEffect)((function(){window.addEventListener("message",se);var e=Be.Z.subscribe("vnc-reseting",te),n=Be.Z.subscribe("vnc-reseting-done",ie);return function(){e(),n(),window.removeEventListener("message",se)}}),[]),(0,E.useEffect)((function(){if(1===_)return clearInterval(H.current),H.current=setInterval((function(){d()}),6e4),function(){clearInterval(H.current)}}));var ne=function(){var e=f()(h()().mark((function e(){var n,t;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(N.current.unique){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,ye.ZP)("/api/myshixuns/".concat(null===(n=I.myshixun)||void 0===n?void 0:n.identifier,"/code_debugs/current_info.json"),{method:"post",body:{game_identifier:M.taskId,unique:N.current.unique}});case 4:0===(null==(t=e.sent)?void 0:t.status)&&Be.Z.publish("active-debug-data",(null==t?void 0:t.data)||{});case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),te=function(){q({}),U("正在重置中"),J(!0)},ie=function(e){q(null==e?void 0:e.data),J(!1)},se=function(e){switch(e.data){case"updatecode":break;case"vsLoadingDone":J(!1)}},re=function(){var e=f()(h()().mark((function e(){var n,t,i,s,r,a;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={},"exercises"===K.get("type")?i.exercise_id=K.get("exercisesId"):M.courseId&&M.homeworkId&&(i.homework_common_id=K.get("homework_common_id")||M.homeworkId),console.log("---",i),e.next=5,(0,P.sA)(null===(n=I.myshixun)||void 0===n?void 0:n.identifier,v()({shixun_environment_id:$,tab_type:_},i));case 5:if(null==(s=e.sent)||null===(t=s.data)||void 0===t||null===(t=t.data_list)||void 0===t||!t.length){e.next=9;break}return Be.Z.publish("pod-restrict-data",{identifier:null==s||null===(r=s.data)||void 0===r?void 0:r.identifier,data_list:null==s||null===(a=s.data)||void 0===a?void 0:a.data_list}),e.abrupt("return");case 9:if(-3!==(null==s?void 0:s.status)){e.next=11;break}return e.abrupt("return",new Promise(function(){var e=f()(h()().mark((function e(n,t){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Y.Z.confirm({content:"检测到您已经开启了其他实验环境,请先关闭环境后,再连接",okText:"立即关闭",cancelText:"稍后关闭",onOk:function(){var e=f()(h()().mark((function e(){return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return clearTimeout(timeout.current),setPercent(0),e.next=4,closeWindowsVnc(M.taskId,null==s?void 0:s.message);case 4:return setLinkNum(linkNum+1),e.abrupt("return");case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 1:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}()));case 11:if(-1!==(null==s?void 0:s.status)){e.next=13;break}throw new String(null==s?void 0:s.message);case 13:if(0!==(null==s?void 0:s.status)){e.next=18;break}return q(null==s?void 0:s.data),Be.Z.publish("send-tabs-result-data",v()(v()({},null==s?void 0:s.data),{},{index_tab:ee})),Be.Z.publish("update-windows-time",null==s?void 0:s.data),e.abrupt("return",s);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,E.useEffect)((function(){2===_&&re()}),[_]);var ae=function(){var e=f()(h()().mark((function e(){var n,t,i,s,r,a=arguments;return h()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>0&&void 0!==a[0]?a[0]:[],!N.current.startDebug){e.next=8;break}return e.next=4,(0,ye.ZP)("/api/myshixuns/".concat(null===(t=I.myshixun)||void 0===t?void 0:t.identifier,"/code_debugs/set_break_point.json"),{method:"post",body:{game_identifier:M.taskId,file_name:N.current.currentPath,line_number:null===(i=(0,hn.xor)(N.current.breakPointValue,n))||void 0===i?void 0:i[0],type:n.length>N.current.breakPointValue.length?1:0,unique:N.current.unique}});case 4:0===(null==(s=e.sent)?void 0:s.status)&&(R(v()(v()({},N.current.allBreakPointValue),{},u()({},N.current.currentPath,(null==s||null===(r=s.data)||void 0===r||null===(r=r.breakpoints)||void 0===r?void 0:r[N.current.currentPath])||[]))),Be.Z.publish("active-debug-data",(null==s?void 0:s.data)||{})),e.next=10;break;case 8:R(v()(v()({},N.current.allBreakPointValue),{},u()({},N.current.currentPath,n))),Q(n);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,y.jsx)(E.Fragment,{children:(0,y.jsxs)("div",{className:vi,style:{background:"vs"==i?"#fff":"#1E1E1E"},children:[1==_&&(0,y.jsxs)(y.Fragment,{children:[o||l?null:(0,y.jsx)("img",{className:Ei,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIsAAABuCAYAAAAXkODOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSA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oj41j8/7jC1Uk/Sih6C4sEMF/3zIpXBj8Ja+efDBafLsOSHNzbRP9EIJYTj4o5syQIuospWxQsugvyEIbmnqDhyU/APwgsChoW1mvCUupZ4gFtil+FWymmtr3LktbMogD7cLvFyrYrKjGDsLbnc3AHwb7lSt7BsodvZiFKI5OtfY07CWZi3UQO41w6k08Tu1ZCXwmO6QEm9ztYSmxuRJjOtsijZEaWVNdc2GvnXGBJCIFH1zUwyS0rtnmMPqHJKVo3vztYTJTcmqOz+ML8ZTdWTuCpHctfaWB/RbD4wLO2JJ2hzDMKmKc8t+RcyV92QH8HsLjKMTeu86LJTZHjRpzVi0tRRdH1Ww3e/wswAKUTk3Afdk5AAAAAAElFTkSuQmCC",alt:"only-view"}),w?(0,y.jsx)(De.Z,{message:"正在加载代码",style:{color:"#0152d9"}}):(0,y.jsx)(di.Z,{filename:p,type:"office"===m?"download":m,data:n,style:{position:"absolute",zIndex:1},monacoEditor:{value:n,language:t,theme:i,onChange:s,onSave:r,forbidCopy:g,options:v()(v()({},a),{},{fixedOverflowWidgets:!0}),insertSpaces:a.insertSpaces,breakPointValue:k,highlightLine:j,openBreakPoint:B,onBreakPoint:ae}})]}),2===_&&(0,y.jsx)(Qe.Z,{spinning:O,tip:L,wrapperClassName:Ci,children:(0,y.jsx)("iframe",{src:null==X?void 0:X.link_url,allow:"clipboard-write clipboard-read"})})]})})},ki=t(51388),Qi={"choose-game-item":"choose-game-item___RYHdh","output-title-container":"output-title-container___P2NjC","output-title":"output-title___ZQJkv","test-case-list":"test-case-list___CYyHP","test-header":"test-header___fSQRn",active:"active___bY0Dq","active-debug":"active-debug___oeXMX","test-result":"test-result___DQXYd","markdown-body":"markdown-body____rqU_",success:"success___iuAG3",failer:"failer___axTtk",count:"count___B_kHY","test-case-item":"test-case-item___E3CU9","case-header":"case-header___xppld",iconfont:"iconfont___LO1VN",description:"description___j4efR","item-desc":"item-desc___ivltA",show:"show___ntNdM","item-tip":"item-tip___ETPck","arrow-down":"arrow-down___oQMCK","test-title":"test-title___mf3Df","arrow-right":"arrow-right___C6f8W","case-info":"case-info___yX5kK","test-case-run-header":"test-case-run-header___iHZR5","test-case-run-wrp":"test-case-run-wrp___qVT1y","diff-panel-container":"diff-panel-container___OEdXu","line-break":"line-break___Ww59n",empty:"empty___izbJX",alert:"alert___jv5_R",inputs:"inputs___bjeNr"},yi=/(?:[\n\r\s]*?)(?:<\/link>)*/im,ji=/(?:[\n\r\s]*?)(?:<\/script>)*/im,Bi=["http","com","net","org","cdn"];function Di(e){for(var n=!1,t=0;t]*href=['"]([^'"]+)[^>]*>/gi,(function(e,t){return n.push(t.indexOf("http")>-1?t:"https://data.educoder.net/api/sources/get_html_content.html?content_type=text/css&identifier="+l.taskId+"&path="+t),t.indexOf("http")>-1?e:''}))).replace(/