|
|
(self.webpackChunk=self.webpackChunk||[]).push([[41657,4977,4633],{35575:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},i=null,o=!1,r=!1,a=null,l=!1,s=null,c=null,u=0;u<arguments.length;u++){var d=arguments[u];if(null!==d)switch(_typeof(d)){case"number":t=d.toFixed(1);break;case"string":d.match(new RegExp("^[0-9]\\.[0-9]+$"))?t=d:a=d;break;case"object":void 0!==d.is3D?i=d:n=d;break;case"boolean":o=d,r=!0}}null===i&&(i={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},void 0===n.material_id||r||(o=!0)),null!==a&&void 0===n.id&&(n.id=a);var f="",p=!1,h=null,m=null,g=null,v=!1,w=null,x=null,b=null;void 0!==n.height&&(n.height=Math.round(n.height)),void 0!==n.width&&(n.width=Math.round(n.width));var y=function(e){return parseFloat(e)>4?parseFloat(e):5};function C(){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,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."):(s=e,G(e,t))},e.getHTML5CodebaseVersion=function(){return m},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){b=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<arguments.length;s++){var c=arguments[s];"string"==typeof c?(c=c.toLowerCase()).match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?o=c:r=arguments[s]:"boolean"==typeof c?a=c:c instanceof HTMLElement&&(i=c)}function u(){if(l){o=M(o);var s=i||document.getElementById(r);if(s)if(e.removeExistingApplet(s,!1),void 0===n.width&&s.clientWidth&&(n.width=s.clientWidth),void 0===n.height&&s.clientHeight&&(n.height=s.clientHeight),n.width&&n.height||"html5"!==o||(delete n.width,delete n.height),h=o,"screenshot"===o)T(s,n);else{var c=!1;n.hasOwnProperty("playButton")&&n.playButton||n.hasOwnProperty("clickToLoad")&&n.clickToLoad?c=!0:n.hasOwnProperty("playButtonAutoDecide")&&n.playButtonAutoDecide&&(c=(!C()||t())&&k()),c?(h="screenshot",P(s,n,a,o)):A(s,n,a)}else console.log("possibly bug on ajax loading? ")}else setTimeout(u,200)}u()},e.getViews=function(){return i},e.isJavaInstalled=function(){return!1};var _=function(t){var o=function(){n.onError&&n.onError(),O("Error: Fetching material (id "+n.material_id+") failed.",n)},r=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",a="/materials/"+n.material_id+"?scope=basic";S("https://"+r+"/api/proxy.php?path="+encodeURIComponent(a),(function(r){var a=JSON.parse(r),l=a.elements?a.elements.filter((function(e){return"G"==e.type||"E"==e.type}))[0]:a;if(l&&l.url){n.fileName=l.url,j(l.settings||{}),i.is3D=!0;var s="https://www.geogebra.org/images/";e.setPreviewImage(w||l.previewUrl,s+"GeoGebra_loading.png",s+"applet_play.png"),t()}else o()}),o)};function j(e){["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach((function(t){e[t]=!!e[t]})),["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"].forEach((function(t){void 0===n[t]&&void 0!==e[t]&&(n[t]=e[t])})),void 0===n.showToolBarHelp&&(n.showToolBarHelp=n.showToolBar)}function S(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.onload=function(){t(i.responseText)},i.onerror=n,i.send()}e.isHTML5Installed=function(){return!0},e.getLoadedAppletType=function(){return h},e.setPreviewImage=function(e,t,n){w=e,x=t,n},e.removeExistingApplet=function(e,t){var i;"string"==typeof e&&(e=document.getElementById(e)),h=null;var o=null;for(i=0;i<e.childNodes.length;i++){var r=e.childNodes[i],a=r.className;"applet_screenshot"===a?t?(r.style.display="block",h="screenshot"):r.style.display="none":"applet_scaler prerender"!==a&&(e.removeChild(r),o=a&&-1!=a.indexOf("appletParameters")?r.id:null,i--)}var l=void 0!==n.id?n.id:o,s=window[l];s&&"function"==typeof s.getBase64&&(s.remove(),window[l]=null)},e.refreshHitPoints=function(){if(y(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var B=function(e){return e&&"false"!==e},A=function(t,n,i){y(m)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==m||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(y(m)<=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<u&&(n.width=u,a=u)}for(var d in r.style.border="none",r.style.display="inline-block",n)n.hasOwnProperty(d)&&"appletOnLoad"!==d&&r.setAttribute("data-param-"+d,n[d]);b&&r.setAttribute("data-param-fontscssurl",b),e.resize=function(){GGBAppletUtils.responsiveResize(t,n)},window.addEventListener("resize",(function(t){e.resize()}));var p="function"==typeof n.appletOnLoad?n.appletOnLoad:function(){};if(i||void 0===n.width){var h=document.createElement("div");h.className="applet_scaler",h.style.position="relative",h.style.display="block",h.appendChild(r),t.appendChild(h),n.appletOnLoad=function(t){e.resize(),p(t)}}else{n.hasOwnProperty("showSplash")||r.setAttribute("data-param-showSplash","false");var w=t.querySelector(".applet_scaler.prerender"),x=null!==w;if(x)C=w.querySelector(".ggb_preview");else{var C=L(a,l,n.borderColor,!1);(w=document.createElement("div")).className="applet_scaler",w.style.position="relative",w.style.display="block",w.style.width=a+"px",w.style.height=l+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(w,"66%"),y(m)>=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)},x||w.appendChild(C)):r.appendChild(C),w.appendChild(r),x||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),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)},y(m)<5&&(e.className+=" geogebraweb")):k(e,t)}if(o){scriptLoadStarted=!0;for(var j=0;j<r.childNodes.length;j++){"TABLE"===r.childNodes[j].tagName&&(r.removeChild(r.childNodes[j]),j--)}if(null!==ggbHTML5LoadedScript){var S=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=S&&S.parentNode.removeChild(S)}var A=document.createElement("script"),T=function(){_(r,n)};A.src=f+g,ggbHTML5LoadedCodebaseIsWebSimple=v,ggbHTML5LoadedCodebaseVersion=m,ggbHTML5LoadedScript=A.src,O("GeoGebra HTML5 codebase loaded: '"+f+"'.",n),c||s&&"5.0"!=s?f.requirejs?__webpack_require__.e(76839).then(function(){var e=[__webpack_require__(28628)];T.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(A.onload=T,t.appendChild(A)):(v?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),T())}else _(r,n);n.height=l,n.width=a},T=function(t,n,i){var o=L(n.width,n.height,n.borderColor,i),r=document.createElement("div");r.style.position="relative",r.style.display="block",r.style.width=n.width+"px",r.style.height=n.height+"px",r.className="applet_screenshot applet_scaler"+(i?" applet_screenshot_play":""),r.appendChild(o);var a=GGBAppletUtils.getScale(n,t,i);i?(t.appendChild(E()),window.GGBT_wsf_view||(t.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(r,"66%"),t.appendChild(r),1===a||isNaN(a)||(GGBAppletUtils.scaleElement(r,a),r.style.width=n.width+"px",r.style.height=n.height+"px",r.parentNode.style.width=n.width*a+"px",r.parentNode.style.height=n.height*a+"px"),e.resize=function(){N(t,o,r,i)},window.addEventListener("resize",(function(t){e.resize()})),e.resize()};function N(e,t,i,o){if(e.contains(t)){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if("fullscreencontent"!==e.id)return;window.GGBT_wsf_view.setCloseBtnPosition(e)}var r=GGBAppletUtils.getScale(n,e,o);null!==i.parentNode&&(isNaN(r)||1===r?(GGBAppletUtils.scaleElement(i,1),i.parentNode.style.width=n.width+"px",i.parentNode.style.height=n.height+"px"):(GGBAppletUtils.scaleElement(i,r),i.parentNode.style.width=n.width*r+"px",i.parentNode.style.height=n.height*r+"px")),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(e),"object"===_typeof(window.GGBT_ws_header_footer)&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}e.onExitFullscreen=function(e,t){t.appendChild(e)};var P=function(e,t,n,i){T(e,t,!0);for(var o=function(){var n=[];for(a=0;a<e.childNodes.length;a++)n.push(e.childNodes[a]);if(window.GGBT_wsf_view){var o=window.GGBT_wsf_view.renderFullScreen(e,t.id),r=document.getElementById("fullscreencontainer"),l=jQuery(e).find(".fullscreencontent");l.length>0?(o.remove(),l.attr("id","fullscreencontent").show(),jQuery(r).append(l),window.dispatchEvent(new Event("resize"))):A(o,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=i,A(e,t,!1);if(!window.GGBT_wsf_view)for(a=0;a<n.length;a++)e.removeChild(n[a])},r=e.getElementsByClassName("ggb_preview_play"),a=0;a<r.length;a++)r[a].addEventListener("click",o,!1),r[a].addEventListener("ontouchstart",o,!1);"function"==typeof window.ggbAppletPlayerOnload&&window.ggbAppletPlayerOnload(e),k()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},E=function(){var e=document.createElement("div");if(e.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var t='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',n=document.createElement("style");n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t)),document.getElementsByTagName("head")[0].appendChild(n)}return e},L=function(e,t,n,i){var o=document.createElement("div");o.className="ggb_preview",o.style.position="absolute",o.style.zIndex="90",o.style.width=e-2+"px",o.style.height=t-2+"px",o.style.top="0px",o.style.left="0px",o.style.overflow="hidden",o.style.backgroundColor="white";var r="lightgrey";void 0!==n&&(r="none"===n?"transparent":n),o.style.border="1px solid "+r;var a,l,s,c=document.createElement("img");if((c.style.position="relative",c.style.zIndex="1000",c.style.top="-1px",c.style.left="-1px",null!==w&&c.setAttribute("src",w),c.style.opacity=.7,null!==x)&&!i){(a=document.createElement("img")).style.position="absolute",a.style.zIndex="1001",a.style.opacity=1,c.style.opacity=.3,(l=360)>e/4*3&&(l=e/4*3),s=l/5.8,a.setAttribute("src",x),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},M=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},Z=["web","webSimple","web3d","tablet","tablet3d","phone"],G=function(e,t){if(m=e,t)D(m,!0);else{var r,a,l=!o;if(l){var s=y(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/",Z)if(m.slice(-1*Z[u].length)===Z[u]||m.slice(-1*(Z[u].length+1))===Z[u]+"/")return void D(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/",D(a,!1)}},D=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]?Z.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 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",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!==s?e=s:parseFloat(e)<5&&(e="5.0"),G(e,!1),null!==c&&D(c,p),l=!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,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+d<s?s=t:s-=d,"object"!==_typeof(window.GGBT_wsf_view)||!window.GGBT_wsf_view.isFullscreen()||void 0!==n&&n||(c-=h)),{width:s,height:c}}(t,e.width,n,s,a&&window.GGBT_wsf_view||l,o),u=parseInt(c.width),d=e.width,f=e.height;if(void 0===d){var p=t.querySelector(".appletParameters");p&&(d=p.offsetWidth,f=p.offsetHeight)}var h=u/d,m=a?1:c.height/f;return void 0===n||n||(h=Math.min(1,h),m=Math.min(1,m)),Math.min(h,m)}function i(e,t,i){var o,r=1,a=!1;return e.hasOwnProperty("allowUpscale")&&(a=e.allowUpscale),e.hasOwnProperty("scale")&&(r=parseFloat(e.scale),(isNaN(r)||null===r||0===r)&&(r=1),r>1&&(a=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(a=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?r:(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<n.childNodes.length;c++)if(void 0!==n.childNodes[c].className&&n.childNodes[c].className.match(/^applet_scaler/)){s=n.childNodes[c];break}if(null!==s&&null!==s.querySelector(".noscale"))return;var u=void 0!==r.id?r.id:"ggbApplet",d=window[u];null!=d&&d.recalculateEnvironments||null===s||s.className.match(/fullscreen/)||(s.parentNode.style.transform="",isNaN(l)||1===l?(t(s,1),s.parentNode.style.width=r.width+"px",s.parentNode.style.height=r.height+"px"):(s.parentNode.style.width=r.width*l+"px",s.parentNode.style.height=r.height*l+"px",t(s,l))),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&o(n),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(a).parents(".content-added-content"))}},isFlexibleWorksheetEditor:e,positionCenter:o,getScale:i,scaleElement:t}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var e=n.location.search;return-1!=e.indexOf(J)||-1!=e.indexOf(K)}function q(e,t){}q(H,I),webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{},t;function u(){return v(),t}function v(){if(!t){var e=o.createElement(Q);if(e.id=L,e.style.cssText=R+S,e.tabIndex=-1,o.body.appendChild(e),t=e.contentWindow.document,-1==navigator.userAgent.indexOf(T)){t.open();var n=document.compatMode==U?V:W;t.write(n+X),t.close()}}}function w(e){q(cb,eb),function(e){function t(){return _typeof(o.readyState)==Y?_typeof(o.body)!=Y&&null!=o.body:/loaded|complete/.test(o.readyState)}var n=t();if(n)e();else{o.addEventListener&&o.addEventListener(Z,r,!1);var i=setInterval((function(){r()}),$)}function r(){if(!n){if(!t())return;n=!0,e(),o.removeEventListener&&o.removeEventListener(Z,r,!1),i&&clearInterval(i)}}}((function(){var t,n,i,o;t=e,n=u(),i=n.body,(o=n.createElement(_)).language=ab,o.crossOrigin=W,o.src=t,webModule.__errFn&&(o.onerror=function(){webModule.__errFn(L,new Error(bb+t))}),i.appendChild(o),q(cb,db)}))}function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var 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;n<t.length;++n)if(-1!=t[n].src.indexOf(xb))return e(t[n].src);return W}()),n==W&&(n=function(){var e=o.getElementsByTagName(yb);return e.length>O?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,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;o<i.length;o++){var r=i[o];n[r[O]]=r[P]}return n}},webModule.__startLoadingFragment=function(e){return C(e)},webModule.__installRunAsyncCode=function(e){var t=u(),n=t.body,i=t.createElement(_);i.language=ab,i.text=e,n.appendChild(i),n.removeChild(i)},A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},"function"!=typeof window.web3d&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),"function"!=typeof window.webSimple&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet}else console.warn("deployggb.js was loaded twice")})()},53842:function(e,t,n){"use strict";function i(e){var t=!0;if(e.length>0){for(var n=0;n<e.length;n++)if(0==e[n].compile_success||!e[n].compile_success){t=!1;break}}else t=!1;return t}function o(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],i=0;i<e.length;i++){var o=e[i],r=t?"".concat(t,"/").concat(o.name):"".concat(o.name);n.push({title:o.name,type:o.type,isLeaf:"tree"!==o.type,key:r})}return n}function r(e,t,n){for(var i=0;i<e.length;i++){var o=e[i];if(o.key===t){o.children=n;break}o.children&&r(o.children,t,n)}return e}function a(e,t,n){var i;return function(){var o=this,r=arguments,a=function(){i=null,n||e.apply(o,r)},l=n&&!i;clearTimeout(i),i=setTimeout(a,t),l&&e.apply(o,r)}}n.d(t,{Ax:function(){return r},Ds:function(){return a},KI:function(){return l},SI:function(){return o},f1:function(){return i}});var l=n(57357).Z.API_SERVER},84793:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),l=n(37205),s=n.n(l),c=n(79800),u=n.n(c),d=n(59301),f=n(43428),p=n(73755),h=n(26743),m=n(46651),g=n(3113),v=n(98135),w=n(46681),x=n(82242),b=n.n(x),y=n(39647),C=n.n(y),k=n(22822),_=n(50457),j=n(59455),S=n(56102),B="wrp___H70W8",A="file-list___S5XYJ",T=n(8591),N=n(95237),P=n(43604),E=n(35472),L=n(37712),M=["node","inline","className","children"],Z=function(e){var t=e.data,n=e.hideTextEffect,i=e.onCallback,r=e.fileList,l=e.allowCopy,s=(0,d.useState)(""),c=u()(s,2),f=c[0],p=c[1],h=(0,d.useState)(!0),m=u()(h,2),g=m[0],v=m[1],w=(0,d.useRef)();(0,d.useEffect)((function(){if(t.text){v(!0);var e=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0;case 1:if(!(n<t.text.length)){e.next=8;break}return p(t.text.substring(0,n+1)+(t.text.length-1>n?" __":"")),e.next=5,new Promise((function(e){return setTimeout(e,30)}));case 5:n++,e.next=1;break;case 8:v(!1),null==i||i(t);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return n?p(t.text):e(),function(){return p("")}}}),[]),(0,d.useEffect)((function(){var e;null===(e=w.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})}),[f]);return(0,L.jsxs)("div",{ref:w,className:"".concat(B," fadeIn animated"),children:[(0,L.jsx)(k.U,{components:{code:function(e){e.node;var t=e.inline,n=e.className,i=e.children,o=C()(e,M),r=/language-(\w+)/.exec(n||"");return!t&&r?(0,L.jsxs)("div",{style:{position:"relative"},children:[(0,L.jsx)(S.CopyToClipboard,{text:String(i).replace(/\n$/,""),onCopy:function(){return T.ZP.success({content:"复制成功",key:"copy"})},children:(0,L.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,L.jsx)(_.Z,b()(b()({style:j.Z,language:r[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},o),{},{children:String(i||"").replace(/\n$/,"")}))]}):(0,L.jsx)("code",b()(b()({className:n},o),{},{children:i}))}},children:f}),r&&!g&&(0,L.jsxs)(N.Z,{className:"".concat(A," animated fadeIn"),children:[(0,L.jsx)(P.Z,{children:(0,L.jsx)(E.Z,{className:"font20 mr10"})}),(0,L.jsxs)(P.Z,{children:[null==r?void 0:r.name,(0,L.jsx)("br",{}),function(e){if(0===e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,t)).toFixed(2))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][t]}(null==r?void 0:r.size)]})]}),!g&&l&&(0,L.jsx)("div",{className:"tr",children:(0,L.jsx)(S.CopyToClipboard,{text:String(f).replace(/\n$/,""),onCopy:function(){return T.ZP.success({content:"复制成功",key:"copy"})},children:(0,L.jsx)("button",{style:{padding:"4px 8px",borderRadius:"0 0 0 5px",border:"none",backgroundColor:"#007bff",color:"#fff",cursor:"pointer",fontSize:"12px"},children:"复制内容"})})})]})},G={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","has-file":"has-file___Yj5gd","footer-container-upload":"footer-container-upload___UB3Ny","input-container":"input-container___M88BT","chat-container":"chat-container___pNTrU","chat-message":"chat-message___isXl8",incoming:"incoming___rQ8Nk",outgoing:"outgoing___P3ZLW"},D=n(90694),O=n(64330),R=n(81407),I=n(90784),z=function(e){var t,n,i=e.defaultData,r=e.title,l=e.placeholder,c=e.hideUpload,x=e.hideInputBox,b=e.aiIcon,y=e.userIcon,C=e.children,k=(0,d.useState)(!1),_=u()(k,2),j=_[0],S=_[1],B=(0,d.useState)([]),A=u()(B,2),T=A[0],N=A[1],P=(0,d.useState)([]),M=u()(P,2),z=(M[0],M[1],(0,d.useState)(!1)),F=u()(z,2),H=F[0],W=F[1],V=(0,d.useState)(s()(i||[])),q=u()(V,2),U=q[0],K=q[1],Y=(0,d.useRef)(U),J=(0,d.useRef)(),Q=(0,d.useState)(""),X=u()(Q,2),$=X[0],ee=X[1];(0,d.useEffect)((function(){Y.current=U}),[U]);var te=function(){S(!0)},ne=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 e.next=2,(0,D.ZP)("https://ai-data.educoder.net/v1/chat-messages",{method:"post",body:{inputs:{description:"为我生成一个面向对象的案例"},query:t,response_mode:"blocking",conversation_id:J.current||"",user:"abc-sssdd",files:[]},mode:"cors",headers:{"Content-Type":"application/json",Authorization:"Bearer app-pnyfYJSuVEnMCSoTpF37uJdp"}});case 2:n=e.sent,W(!1),Y.current[Y.current.length-1].text=null==n?void 0:n.answer,Y.current[Y.current.length-1].loading=!1,J.current=null==n?void 0:n.conversation_id,K(s()(Y.current));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ie=function(){""!==$.trim()&&(ee(""),N([]),K([].concat(s()(U),[{text:$,done:!1,key:Date.now(),sender:"user",fileList:T[0]},{text:$,done:!1,loading:!0,key:Date.now(),sender:"AI",allowCopy:!0}])),W(!0),setTimeout((function(){return ne($)}),300))};return(0,L.jsxs)("div",{children:[["daiao","pu428f3pz","wangwei10061"].includes(null===(t=(0,O.eY)())||void 0===t?void 0:t.login)&&(C?(0,L.jsxs)("div",{onClick:te,children:[(0,L.jsx)(w.Outlet,{}),C]}):(0,L.jsx)("div",{style:{width:60,height:60,position:"fixed",zIndex:2,right:20,bottom:"35%",cursor:"pointer"},onClick:te,children:(0,L.jsx)("img",{src:"/images/ai_teacher.png",width:60})})),(0,L.jsx)(f.Z,{maskClosable:!1,width:800,title:r||"头歌AI",onClose:function(){S(!1)},open:j,className:G.answerWrp,children:(0,L.jsxs)("div",{className:G["ai-wrp"],children:[(0,L.jsx)("div",{className:G["chat-container"],children:(0,L.jsx)(p.Z,{itemLayout:"horizontal",dataSource:U,renderItem:function(e){return(0,L.jsx)(p.Z.Item,{className:"".concat(G["chat-message"]," ").concat("AI"===e.sender?"outgoing":"incoming"),children:(0,L.jsx)(p.Z.Item.Meta,{avatar:(0,L.jsx)(h.C,{size:50,src:"AI"===e.sender?b||"/images/ai_icon.png":y||"/images/ai_user.png"}),description:e.loading?(0,L.jsxs)("div",{className:G["loading-wanx"],children:[(0,L.jsx)("div",{className:G["dot-flashing"]}),(0,L.jsx)("div",{className:G["dot-flashing"]}),(0,L.jsx)("div",{className:G["dot-flashing"]})]}):(0,L.jsx)(Z,{allowCopy:e.allowCopy,data:{text:e.text},fileList:e.fileList,hideTextEffect:e.hideTextEffect})})})}})}),!x&&(0,L.jsxs)("div",{className:"".concat(G["footer-container"]," ").concat(T.length>=1&&G["has-file"]),children:[!c&&(0,L.jsx)("div",{className:G["footer-container-upload"],children:(0,L.jsx)(m.Z,{action:"https://ai-data.educoder.net/v1/datasets/dc9e6c03-a629-4e9e-bd81-06fb93c29aa1/document/create_by_file",listType:"picture",fileList:s()(T),onChange:function(e){var t=e.fileList;console.log(":newFileList:",t),N(t)},iconRender:function(){return(0,L.jsx)(E.Z,{})},accept:".doc,.docx,.xml,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",beforeUpload:function(e){var t=["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 t||$.error("只能上传Office文档!"),t},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"}})},className:"upload-list-inline",maxCount:1,children:T.length>=1?null:(0,L.jsx)(g.ZP,{icon:(0,L.jsx)(R.Z,{})})})}),(0,L.jsxs)("div",{className:G["input-container"],children:[(0,L.jsx)(v.Z.TextArea,{rows:1,placeholder:l||"在这里输入问题",value:$,onChange:function(e){ee(e.target.value)},onKeyPress:function(e){if("Enter"===e.key){var t;if(e.preventDefault(),null!=T&&T.length&&"done"!==(null==T||null===(t=T[0])||void 0===t?void 0:t.status)||H)return;ie()}}}),(0,L.jsx)(g.ZP,{type:"primary",shape:"circle",icon:(0,L.jsx)(I.Z,{}),disabled:!(null==T||!T.length)&&"done"!==(null==T||null===(n=T[0])||void 0===n?void 0:n.status)||H,onClick:ie})]})]})]})})]})}},49091:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var i=n(82100),o=n.n(i),r=n(29186),a=n.n(r),l=n(80619),s=n.n(l),c=n(47074),u=n.n(c),d=n(59301),f=n(98135),p=n(12563),h=n(8591),m="flex___eLcnP",g="color666___TiUhG",v=n(22415),w=n(37712),x=(f.Z.TextArea,function(e){s()(n,e);var t=u()(n);function n(e){var i;return o()(this,n),(i=t.call(this,e)).state={inputVisible:!1,EditInputIndex:-1},i}return a()(n,[{key:"render",value:function(){var e=this,t=this.props,n=t.index,i=t.onAnswerChange,o=t.addChildAnswer,r=(t.exerciseIsPublish,t.answers);t.activeOptionErrorIndex,t.flex;console.log("----",r);var a=this.state,l=a.inputVisible,s=a.EditInputIndex;return(0,w.jsxs)("div",{className:m,children:[(0,w.jsxs)("div",{className:"".concat(g," mb5 mt6"),style:{flex:"0 0 90px"},children:["答案(填空",n+1,"):"]}),(0,w.jsxs)("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10},children:[null==r?void 0:r.map((function(t,o){return(0,w.jsx)(w.Fragment,{children:s!==o&&(null==t?void 0:t.length)>0?(0,w.jsx)(p.Z,{className:"edit-tag",closable:!0,onClose:function(t){t.preventDefault(),1===(null==r?void 0:r.length)&&0===o?e.props.deleteChildAnswermain(n,o):e.props.deleteChildAnswer(n,o)},children:(0,w.jsx)("span",{onDoubleClick:function(t){e.setState({EditInputIndex:o}),t.preventDefault()},children:t})},t):(0,w.jsx)(f.Z,{defaultValue:t,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:function(t){t.target.value.replaceAll(" ","").length<=0?h.ZP.info("内容不能为纯空格"):(i(n,o,t.target.value),e.setState({EditInputIndex:-1,inputVisible:!1}))}})})})),!l&&(0,w.jsxs)(p.Z,{className:"site-tag-plus",onClick:function(){o(n),e.setState({inputVisible:!0})},children:[(0,w.jsx)(v.Z,{})," 新增答案"]})]})]})}}]),n}(d.Component))},53706:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var i=n(82242),o=n.n(i),r=n(82100),a=n.n(r),l=n(29186),s=n.n(l),c=n(13720),u=n.n(c),d=n(80619),f=n.n(d),p=n(47074),h=n.n(p),m=n(85573),g=n.n(m),v=n(59301),w=n(77162),x=n(37712),b="▁",y=function(e){f()(n,e);var t=h()(n);function n(){var e;a()(this,n);for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];return e=t.call.apply(t,[this].concat(o)),g()(u()(e),"getChCountBeforeCursor",(function(e,t){for(var n=t.line,i=0,o=0;o<n;o++)i+=e.getLine(o).split(b).length-1;return i+=e.getLine(n).substring(0,t.ch).split(b).length-1})),g()(u()(e),"onCMBeforeChange",(function(t,n){var i=t.getRange(n.from,n.to),o=0;if(n.text.forEach((function(e){o+=e.split(b).length-1})),i&&-1!=i.indexOf(b)){var r=i.split(b).length-1,a=e.getChCountBeforeCursor(t,n.from);console.log("删除".concat(r,"个, 之前有").concat(a,"个,新增").concat(o,"个")),e.props.deleteEmptyDisabled?n.cancel():e.props.onPlaceholderChange&&e.props.onPlaceholderChange(a,r,o)}else if(o){var l=e.getChCountBeforeCursor(t,n.from);console.log("新增".concat(o,"个,之前有").concat(l,"个")),e.props.onPlaceholderChange&&e.props.onPlaceholderChange(l,0,o)}})),e}return s()(n,[{key:"render",value:function(){return(0,x.jsx)(w.Z,o()(o()({},this.props),{},{onCMBeforeChange:this.onCMBeforeChange}))}}]),n}(v.Component)},84486:function(e,t,n){"use strict";n.d(t,{t:function(){return f}});var i=n(82242),o=n.n(i),r=(n(59301),n(3113)),a="buttonFixed___vyq30",l="button___hxmYv",s="buttonWrap___uK8dl",c=n(92310),u=n.n(c),d=n(37712),f=function(e){var t=e.cancelText,n=void 0===t?"取消":t,i=e.okText,c=void 0===i?"确定":i,f=e.loading,p=void 0!==f&&f,h=e.hasOkBtn,m=void 0===h||h,g=e.hasCancelBtn,v=void 0===g||g,w=e.okButtonProps,x=void 0===w?{}:w,b=e.onCancel,y=void 0===b?function(){}:b,C=e.onOk,k=void 0===C?function(){}:C,_=e.className,j=void 0===_?"":_;return(0,d.jsx)("div",{className:u()(a,j),children:(0,d.jsxs)("div",{className:s,children:[v&&(0,d.jsx)(r.ZP,{size:"middle",className:"".concat(l," mr20"),onClick:y,children:n}),m&&(0,d.jsx)(r.ZP,o()(o()({size:"middle",type:"primary",className:"".concat(l," mr20"),loading:p,onClick:k},x),{},{children:c}))]})})}},87359:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),l=n(79800),s=n.n(l),c=n(59301),u="imageDimensions___a7crR",d="img___Kroat",f="fullWidth___c492T",p=n(92310),h=n.n(p),m=n(71418),g=n(2859),v=n(90694),w=n(41282),x=n(37712),b=function(e){var t=e.data,n=e.className,i=e.fullWidth,r=e.style,l=void 0===r?{}:r,p=e.onClose,b=e.onOk,y=e.showFullTools,C=e.noAssociationId,k=(0,c.useRef)(null),_=(0,c.useRef)(null),j=(0,c.useState)(!1),S=s()(j,2),B=S[0],A=S[1],T=(0,c.useState)("正在加载中"),N=s()(T,2),P=N[0],E=N[1];(0,c.useEffect)((function(){null!=t&&t.visible?document.body.setAttribute("data-custom","y-hidden"):document.body.removeAttribute("data-custom"),null!=t&&t.src&&L()}),[null==t?void 0:t.visible]);var L=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return A(!0),E("正在加载中"),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()},A(!1),E("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=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 A(!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==(i=e.sent)||!i.id||C){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==i?void 0:i.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&b(),e.next=13;break;case 12:null!=i&&i.id&&b(i);case 13:A(!1),E("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Z=function(){_.current=new g.hP(k.current),_.current.addEventListener("render",M),_.current.addEventListener("beforeclose",p),y&&(_.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;(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,x.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,x.jsxs)("div",{className:h()(u,n,i?f:""),style:l,children:[(0,x.jsx)(m.Z,{spinning:B,tip:P,style:{position:"absolute"}}),(0,x.jsx)("img",{className:d,ref:k})]})})}},71550: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(49324),n(20615),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,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)(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:"取消"})]})]}))}},77162: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),l=n(85573),s=n.n(l),c=n(59301),u=n(89780),d=n.n(u),f=n(76374),p=(n(49324),n(6313),n(25717),n(99498),n(25419),n(67549),n(36653)),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),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 x(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 b=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,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)(x,v()(v()({},e),{},{onActionCallback:o})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(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,a&&(0,h.jsx)("li",{children:(0,h.jsx)(x,{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)(x,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},y=n(30043),C=n(78241),k=n(98135),_=n(3113),j={labelCol:{span:4},wrapperCol:{span:20}},S=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(C.Z,v()(v()({},j),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(C.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(C.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:"取消"})]})]}))},B=n(71550),A=n(8591),T=n(53842),N=C.Z.useForm,P={width:280,marginRight:10},E={labelCol:{span:5},wrapperCol:{span:19}},L=function(e){var t=e.callback,n=e.onCancel,i=N(),o=a()(i,1)[0],r=(0,c.useRef)();function l(e,t){-1!==e.status?o.setFieldsValue({src:"/api/attachments/".concat(e.id),type:t.type}):A.ZP.error(e.message)}return(0,h.jsxs)(C.Z,v()(v()({form:o},E),{},{className:"upload-image-panel",onFinish:function(e){t(e,r.current)},style:{width:470,overflow:"hidden"},children:[(0,h.jsx)(C.Z.Item,{label:"图片地址",required:!0,children:(0,h.jsxs)("div",{className:"flex-container",children:[(0,h.jsx)(C.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,h.jsx)(k.Z,{style:P})}),(0,h.jsx)(M,{onFileChange:function(e){var t=e.target.files[0];r.current=t,Z(t,l)}})]})}),(0,h.jsx)(C.Z.Item,{label:"图片描述",name:"alt",children:(0,h.jsx)(k.Z,{style:{width:264}})}),(0,h.jsxs)(C.Z.Item,{style:{textAlign:"right"},children:[(0,h.jsx)(_.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(_.ZP,{type:"default",onClick:n,children:"取消"})]})]}))};function M(e){var t=e.onFileChange;return(0,h.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,h.jsx)("input",{type:"file",onChange:t})]})}function Z(e,t){if(!e)throw new String("没有文件");var n=new FormData;n.append("editormd-image-file",e),n.append("file_param_name","editormd-image-file"),n.append("byxhr","true");var i=new window.XMLHttpRequest;i.withCredentials=!0,i.addEventListener("load",(function(n){t(JSON.parse(n.target.responseText),e)}),!1),i.addEventListener("error",(function(e){console.error(e)}),!1),i.open("POST","".concat(T.KI,"/api/attachments.json")),i.send(n)}var G=n(95237),D=n(87359),O=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)(G.Z,{style:{height:"100vh"},children:(0,h.jsx)(D.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})})},R=n(7557),I=n.n(R),z=n(41498),F=n.n(z),H=n(37205),W=n.n(H),V=n(12378);function q(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(q,go.CommandHandler),q.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},q.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")},q.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")},q.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")},q.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")},q.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")}},q.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")}},q.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;i<n.length-1;i++){var o=n[i],r=o.actualBounds.y+o.actualBounds.height+e;n[i+1].move(new go.Point(o.actualBounds.x,r))}t.commitTransaction("align Column")},q.prototype.alignRow=function(e){void 0===e&&(e=0),e=parseFloat(e);var t=this.diagram;t.startTransaction("align Row");var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var i=0;i<n.length-1;i++){var o=n[i],r=o.actualBounds.x+o.actualBounds.width+e;n[i+1].move(new go.Point(r,o.actualBounds.y))}t.commitTransaction("align Row")},q.prototype.canRotate=function(e){var t=this.diagram;return null!==t&&!t.isReadOnly&&!t.isModelReadOnly&&!(t.selection.count<1)},q.prototype.rotate=function(e){var t;void 0===e&&(e=90),(t=this.diagram).startTransaction("rotate "+e.toString()),(t=this.diagram).selection.each((function(t){t instanceof go.Link||t instanceof go.Group||(t.angle+=e)})),t.commitTransaction("rotate "+e.toString())},q.prototype.pullToFront=function(){var e=this.diagram;e.startTransaction("pullToFront");var t=new go.Map;e.selection.each((function(e){t.set(e.layer,0)})),t.iteratorKeys.each((function(e){var n=0;e.parts.each((function(e){if(!e.isSelected){var t=e.zOrder;isNaN(t)?e.zOrder=0:n=Math.max(n,t)}})),t.set(e,n)})),e.selection.each((function(e){q._assignZOrder(e,t.get(e.layer)+1)})),e.commitTransaction("pullToFront")},q.prototype.pushToBack=function(){var e=this.diagram;e.startTransaction("pushToBack");var t=new go.Map;e.selection.each((function(e){t.set(e.layer,0)})),t.iteratorKeys.each((function(e){var n=0;e.parts.each((function(e){if(!e.isSelected){var t=e.zOrder;isNaN(t)?e.zOrder=0:n=Math.min(n,t)}})),t.set(e,n)})),e.selection.each((function(e){q._assignZOrder(e,t.get(e.layer)-1-q._findGroupDepth(e))})),e.commitTransaction("pushToBack")},q._assignZOrder=function(e,t,n){void 0===n&&(n=e),e.layer===n.layer&&(e.zOrder=t),e instanceof go.Group&&e.memberParts.each((function(e){q._assignZOrder(e,t+1,n)}))},q._findGroupDepth=function(e){if(e instanceof go.Group){var t=0;return e.memberParts.each((function(e){t=Math.max(t,q._findGroupDepth(e))})),t+1}return 0},q.prototype.doKeyDown=function(){var e=this.diagram;if(null!==e){var t=e.lastInput;if("Up"===t.key||"Down"===t.key||"Left"===t.key||"Right"===t.key){var n=this.arrowKeyBehavior;if("none"===n)return;if("select"===n)return void this._arrowKeySelect();if("move"===n)return void this._arrowKeyMove();if("tree"===n)return void this._arrowKeyTree()}go.CommandHandler.prototype.doKeyDown.call(this)}},q.prototype._getAllParts=function(){var e=new Array;return this.diagram.nodes.each((function(t){e.push(t)})),this.diagram.parts.each((function(t){e.push(t)})),e},q.prototype._arrowKeyMove=function(){var e=this.diagram,t=e.lastInput,n=0,i=0;if(t.control||t.meta)n=1,i=1;else if(null!==e.grid){var o=e.grid.gridCellSize;i=o.width,n=o.height}e.startTransaction("arrowKeyMove"),e.selection.each((function(e){"Up"===t.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y-n)):"Down"===t.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y+n)):"Left"===t.key?e.move(new go.Point(e.actualBounds.x-i,e.actualBounds.y)):"Right"===t.key&&e.move(new go.Point(e.actualBounds.x+i,e.actualBounds.y))})),e.commitTransaction("arrowKeyMove")},q.prototype._arrowKeySelect=function(){var e=this.diagram,t=e.lastInput,n=null;"Up"===t.key?n=this._findNearestPartTowards(270):"Down"===t.key?n=this._findNearestPartTowards(90):"Left"===t.key?n=this._findNearestPartTowards(180):"Right"===t.key&&(n=this._findNearestPartTowards(0)),null!==n&&(t.shift?n.isSelected=!0:t.control||t.meta?n.isSelected=!n.isSelected:e.select(n))},q.prototype._findNearestPartTowards=function(e){var t=this.diagram.selection.first();if(null===t)return null;for(var n=t.actualBounds.center,i=this._getAllParts(),o=1/0,r=t,a=0;a<i.length;a++){var l=i[a];if(l!==t&&l.canSelect()){var s=l.actualBounds.center,c=n.directionPoint(s),u=this._angleCloseness(c,e);if(u<=45){var d=n.distanceSquaredPoint(s);(d*=1+Math.sin(u*Math.PI/180))<o&&(o=d,r=l)}}}return r},q.prototype._angleCloseness=function(e,t){return Math.min(Math.abs(t-e),Math.min(Math.abs(t+360-e),Math.abs(t-360-e)))},q.prototype._arrowKeyTree=function(){var e=this.diagram,t=e.selection.first();if(t instanceof go.Node){var n=e.lastInput;if("Right"===n.key)if(t.isTreeLeaf);else if(t.isTreeExpanded){null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o)}else e.commandHandler.canExpandTree(t)&&e.commandHandler.expandTree(t);else if("Left"===n.key){if(!t.isTreeLeaf&&t.isTreeExpanded)e.commandHandler.canCollapseTree(t)&&e.commandHandler.collapseTree(t);else null!==(r=t.findTreeParentNode())&&e.select(r)}else if("Up"===n.key){if(null!==(r=t.findTreeParentNode()))if((l=(a=this._sortTreeChildrenByY(r)).indexOf(t))>0){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))<a.length-1){e.select(a.elt(l+1));break}t=r}}var s=e.selection.first();null!==s&&e.scrollToRect(s.actualBounds)}},q.prototype._sortTreeChildrenByY=function(e){var t=(new go.List).addAll(e.findTreeChildrenNodes());return t.sort((function(e,t){var n=e.location,i=t.location;return n.y<i.y?-1:n.y>i.y?1:n.x<i.x?-1:n.x>i.x?1:0})),t},q.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},q.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(q.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(q.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var U=q,K=(n(79286),n(85160)),Y=n(43418),J=n(43604),Q=n(90694),X="myPaletteDiv___Xjz2I",$="maxH60___Pd4Re";window.go=V;var ee=function(e){var t=e.onCancel,n=e.callback,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=F()(I()().mark((function e(){var t,o;return I()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,Q.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3: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($," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(Y.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)(G.Z,{children:[(0,h.jsx)(J.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(J.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:X,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(K.FI,{initDiagram:function(){var e=V.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",v="#b3e6b3",w="#fcbbbd";function x(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var o=n.part.adornedPart,r=(new V.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(V.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(V.Spot.Top)||t.equals(V.Spot.Bottom)?25:18,height:t.equals(V.Spot.Top)||t.equals(V.Spot.Bottom)?18:25,fill:"orange",stroke: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 b(t){return e(V.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function 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 C(t,n){return n||(n="color"),e(V.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:y(n,t),contextClick:y(n,t)})}function k(){return[e("ContextMenuButton",e(V.Panel,"Horizontal",C(u,"fill"),C(f,"fill"),C(p,"fill"),C(h,"fill"))),e("ContextMenuButton",e(V.Panel,"Horizontal",C(g,"fill"),C(v,"fill"),C(m,"fill"),C(w,"fill")))]}function _(){return[e("ContextMenuButton",e(V.Panel,"Horizontal",C(d),C(a),C(n),C(t))),e("ContextMenuButton",e(V.Panel,"Horizontal",C(u),C(l),C(s),C(c)))]}function j(t,n){return n||(n="thickness"),e(V.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:y(n,t),contextClick:y(n,t)})}function S(t,n){return n||(n="dash"),e(V.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:y(n,t),contextClick:y(n,t)})}function B(){return[e("ContextMenuButton",e(V.Panel,"Horizontal",j(1),j(2),j(3),j(4))),e("ContextMenuButton",e(V.Panel,"Horizontal",S(null),S([2,4]),S([4,4])))]}function A(t,n){return n||(n="figure"),e(V.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:y(n,t),contextClick:y(n,t)})}function T(t){return e(V.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(V.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:y("dir",t),contextClick:y("dir",t)})}function P(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",V.Spot.stringify(V.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(V.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function E(t,n){var i=0,o=V.Spot.RightSide;t.equals(V.Spot.Top)?(i=270,o=V.Spot.TopSide):t.equals(V.Spot.Left)?(i=180,o=V.Spot.LeftSide):t.equals(V.Spot.Bottom)&&(i=90,o=V.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",V.Spot.stringify(o)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(V.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle: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 V.Diagram(o.current,{padding:20,grid:e(V.Panel,"Grid",e(V.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(V.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(U),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(V.Node,"Auto",{locationSpot:V.Spot.Center,locationObjectName:"SHAPE",desiredSize:new V.Size(120,60),minSize:new V.Size(40,40),resizable:!0,resizeCellSize:new V.Size(10,10),rotatable:!0},new V.Binding("location","loc",V.Point.parse).makeTwoWay(V.Point.stringify),new V.Binding("desiredSize","size",V.Size.parse).makeTwoWay(V.Size.stringify),e(V.Shape,{name:"SHAPE",fill:u,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:V.Spot.AllSides,toSpot:V.Spot.AllSides},new V.Binding("figure"),new V.Binding("fill"),new V.Binding("stroke","borderColor"),new V.Binding("strokeWidth","thickness"),new V.Binding("strokeDashArray","dash")),e(V.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(V.TextBlock,{margin:1,textAlign:"center",overflow:V.TextBlock.OverflowEllipsis,editable:!0},new V.Binding("text").makeTwoWay(),new V.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(V.Panel,"Vertical",{maxSize:new V.Size(200,NaN)},e(V.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new V.Binding("text")),e(V.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new V.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(V.Adornment,"Spot",e(V.Placeholder,{padding:10}),x(V.Spot.Top,"TriangleUp"),x(V.Spot.Left,"TriangleLeft"),x(V.Spot.Right,"TriangleRight"),x(V.Spot.Bottom,"TriangleDown"),b({alignment:new V.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(V.Panel,"Horizontal",A("Rectangle"),A("RoundedRectangle"),A("Ellipse"),A("Diamond"))),e("ContextMenuButton",e(V.Panel,"Horizontal",A("Parallelogram2"),A("ManualOperation"),A("Procedure"),A("Cylinder1"))),e("ContextMenuButton",e(V.Panel,"Horizontal",A("Terminator"),A("CreateRequest"),A("Document"),A("TriangleDown"))),k(),_(),B()),i.current.groupTemplate=e(V.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:V.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new V.Binding("location","loc",V.Point.parse).makeTwoWay(V.Point.stringify),e(V.Panel,"Auto",{name:"BODY"},e(V.Shape,{parameter1:10,fill:u,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:V.Spot.AllSides,toSpot:V.Spot.AllSides},new V.Binding("fill"),new V.Binding("stroke","color"),new V.Binding("strokeWidth","thickness"),new V.Binding("strokeDashArray","dash")),e(V.Placeholder,{background:"transparent",margin:20})),e(V.TextBlock,{alignment:V.Spot.Top,alignmentFocus:V.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new V.Binding("text"),new V.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(V.Adornment,"Spot",e(V.Panel,"Auto",e(V.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(V.Placeholder,{margin:1.5})),b({alignment:V.Spot.TopRight,alignmentFocus:V.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",k(),_(),B()),i.current.linkTemplate=e(V.Link,{layerName:"Foreground",routing:V.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new V.Binding("fromSpot","fromSpot",V.Spot.parse),new V.Binding("toSpot","toSpot",V.Spot.parse),new V.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new V.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new V.Binding("points").makeTwoWay(),e(V.Shape,{strokeWidth:2},new V.Binding("stroke","color"),new V.Binding("strokeWidth","thickness"),new V.Binding("strokeDashArray","dash")),e(V.Shape,{segmentIndex:0,segmentOffset:new V.Point(15,0),segmentOrientation:V.Link.OrientAlong,alignmentFocus:V.Spot.Right,figure:"circle",width:10,strokeWidth:0},new V.Binding("fill","color"),new V.Binding("visible","dir",(function(e){return 1===e}))),e(V.Shape,{segmentIndex:-1,segmentOffset:new V.Point(-10,6),segmentOrientation:V.Link.OrientPlus90,alignmentFocus:V.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new V.Binding("fill","color"),new V.Binding("visible","dir",(function(e){return e>=1})),new V.Binding("width","thickness",(function(e){return 7+3*e})),new V.Binding("height","thickness",(function(e){return 7+3*e})),new V.Binding("segmentOffset","thickness",(function(e){return new V.Point(-15,4+1.5*e)}))),e(V.Shape,{segmentIndex:0,segmentOffset:new V.Point(15,-6),segmentOrientation:V.Link.OrientMinus90,alignmentFocus:V.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new V.Binding("fill","color"),new V.Binding("visible","dir",(function(e){return 2===e})),new V.Binding("width","thickness",(function(e){return 7+3*e})),new V.Binding("height","thickness",(function(e){return 7+3*e})),new V.Binding("segmentOffset","thickness",(function(e){return new V.Point(-15,4+1.5*e)}))),e(V.TextBlock,{alignmentFocus:new V.Spot(0,1,-4,0),editable:!0},new V.Binding("text").makeTwoWay(),new V.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(V.Adornment,e(V.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:T(2)},new V.Binding("pathPattern","thickness",T)),b({alignmentFocus:new V.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",_(),B(),e("ContextMenuButton",e(V.Panel,"Horizontal",N(0),N(1),N(2))),e("ContextMenuButton",e(V.Panel,"Horizontal",e(V.Panel,"Spot",P(!1),E(V.Spot.Top,!1),E(V.Spot.Left,!1),E(V.Spot.Right,!1),E(V.Spot.Bottom,!1)),e(V.Panel,"Spot",{margin:new V.Margin(0,0,0,2)},P(!0),E(V.Spot.Top,!0),E(V.Spot.Left,!0),E(V.Spot.Right,!0),E(V.Spot.Bottom,!0))))),new V.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(V.Link,{locationSpot:V.Spot.Center,selectionAdornmentTemplate:e(V.Adornment,"Link",{locationSpot:V.Spot.Center},e(V.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(V.Shape,{toArrow:"Standard",stroke:null}))},{routing:V.Link.AvoidsNodes,curve:V.Link.JumpOver,corner:5,toShortLength:4},new V.Binding("points"),e(V.Shape,{isPanelMain:!0,strokeWidth:2}),e(V.Shape,{toArrow:"Standard",stroke:null})),model:new V.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(W()(V.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(V.Node,"Auto",{locationSpot:V.Spot.Center},new V.Binding("location","location",V.Point.parse).makeTwoWay(V.Point.stringify),e(V.Shape,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new V.Binding("stroke").makeTwoWay(),new V.Binding("fill").makeTwoWay(),new V.Binding("figure")),e(V.TextBlock,{margin:new V.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new V.Size(16,16),maxSize:new V.Size(10,NaN),textAlign:"center",editable:!0},new V.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(V.Panel,"Grid",e(V.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(V.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:m,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},te=n(5112),ne=n(26220),ie=te.ZP.Group,oe={margin:"0 8px"},re=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(C.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:oe,children:"单元格数:"}),(0,h.jsx)("span",{style:oe,children:"行数"}),(0,h.jsx)(C.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(ne.Z,{})}),(0,h.jsx)("span",{style:oe,children:"列数"}),(0,h.jsx)(C.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(ne.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:oe,children:"对齐方式:"}),(0,h.jsx)(C.Z.Item,{name:"align",children:(0,h.jsxs)(ie,{children:[(0,h.jsx)(te.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(te.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(te.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(te.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:"取消"})]})]})},ae=n(78673),le=n(35575),se=n.n(le),ce=(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(se())(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)(G.Z,{align:"middle",children:[(0,h.jsx)(J.Z,{flex:1,children:(0,h.jsx)(ae.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,h.jsx)(J.Z,{children:(0,h.jsx)(_.ZP,{size:"large",onClick:g,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ue=n(42594),de=n(57357),fe="link",pe="upload-image",he="add-flowchart",me="draw-image",ge="code-block",ve="add-table",we="------------",xe={default:we,left:":".concat(we),center:":".concat(we,":"),right:"".concat(we,":")},be=n(40238);var ye="@▁▁@",Ce=["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 ke(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var _e=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",je=s()(s()({},_e+"-B","bold"),_e+"-I","italic"),Se=s()(s()(s()(s()(s()(s()(s()(s()({},fe,"添加链接"),ge,"添加代码块"),pe,"添加图片"),me,"添加画图"),he,"插入流程图"),ve,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Be=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,x=e.isFocus,C=void 0!==x&&x,k=e.watch,_=e.insertTemp,j=e.mode,T=void 0===j?"markdown":j,N=e.id,P=void 0===N?"markdown-editor-id":N,E=e.showResizeBar,M=void 0!==E&&E,G=e.noStorage,D=void 0!==G&&G,R=e.showNullButton,I=void 0!==R&&R,z=e.showNullProgramButton,F=void 0!==z&&z,H=e.hidetoolBar,W=void 0!==H&&H,V=e.fullScreen,q=void 0!==V&&V,U=e.onBlur,K=e.onCMBeforeChange,J=e.onFullScreen,Q=e.className,X=void 0===Q?"":Q,$=e.disablePaste,te=void 0!==$&&$,ne=e.disabled,ie=void 0!==ne&&ne,oe=e.disabledFill,ae=void 0!==oe&&oe,le=e.placeholder,se=void 0===le?"":le,we=e.values,_e=void 0===we?"":we,Be=e.extraUse,Ae=(0,c.useState)(null),Te=a()(Ae,2),Ne=Te[0],Pe=Te[1],Ee=(0,c.useState)(n),Le=a()(Ee,2),Me=Le[0],Ze=Le[1],Ge=(0,c.useState)(k),De=a()(Ge,2),Oe=De[0],Re=De[1],Ie=(0,c.useState)(q),ze=a()(Ie,2),Fe=ze[0],He=ze[1],We=(0,c.useState)(""),Ve=a()(We,2),qe=Ve[0],Ue=Ve[1],Ke=(0,c.useState)(0),Ye=a()(Ke,2),Je=Ye[0],Qe=Ye[1],Xe=(0,c.useState)(g),$e=a()(Xe,2),et=$e[0],tt=$e[1],nt=(0,c.useState)(!1),it=a()(nt,2),ot=(it[0],it[1]),rt=(0,c.useState)(0),at=a()(rt,2),lt=at[0],st=at[1],ct=(0,c.useState)(0),ut=a()(ct,2),dt=ut[0],ft=ut[1],pt=(0,c.useRef)(),ht=(0,c.useRef)(),mt=(0,c.useRef)(),gt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ze(_e),null==Ne||Ne.setValue(_e),window.scrollTo(0,e)}),[_e]),(0,c.useEffect)((function(){null==J||J(Fe)}),[Fe]),(0,c.useEffect)((function(){if(pt.current){var e=function(e,n){if(!te){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,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();Z(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(".concat(e.content_type,")")):(null==s||null===(i=s.type)||void 0===i?void 0:i.indexOf("video"))>-1?t.replaceSelection('<video width="100%" controls src="'.concat(de.Z.API_SERVER,"/api/attachments/").concat(e.id,'"></video>')):(null==s||null===(o=s.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('<a href="'.concat(de.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(s.type,'&disposition=inline" target="_blank">').concat(s.name,"</a>")):Ce.includes(c)?t.replaceSelection('<a href="'.concat(de.Z.API_SERVER,"/api/attachments/").concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(s.name,"</a>")):t.replaceSelection("[".concat(s.name,"](").concat(de.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){A.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=d().fromTextArea(pt.current,{mode:T,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",se):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===ye.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()}})),C&&t.focus(),t.on("paste",e),ie&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Pe(t),function(){t.off("paste",e)}}}),[]);var vt=(0,c.useCallback)((function(){ht.current}),[et,ht,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)&&(vt(),Ne.setSize("100%","100%"),Ne.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)}}}),[Ne,vt]),(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(je);n<i.length;n++)t();return function(){for(var t=0,n=e;t<n.length;t++){var i=n[t];Ne.removeKeyMap(i)}}}}),[Ne]),(0,c.useEffect)((function(){q!==Fe&&He(q)}),[q]),(0,be.Z)((function(){if(!D&&Je>0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(P);e>=Je+1e4&&(!t||t!==Me)&&(window.sessionStorage.setItem(P,Me),ot(!0))}}),1e4),(0,c.useEffect)((function(){Re(k)}),[Ne,k]),(0,c.useEffect)((function(){Ne&&C&&Ne.focus()}),[Ne,C]),(0,c.useEffect)((function(){if(Oe&&Ne){var e=function(e){var t=e.target;if(gt.current){var n=t.scrollTop/t.scrollHeight;gt.current.scrollTop=gt.current.scrollHeight*n}},t=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&&U){var e=function(){U(Ne.getValue())};return Ne.on("blur",e),function(){Ne.off("blur",e)}}}),[Ne,U]),(0,c.useEffect)((function(){if(Ne){var e=function(e,t){var n=e.getValue();Ze(n),Qe((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(""),Ze("");else{var e=window.scrollY||window.pageYOffset;n!==Ne.getValue()&&(Ne.setValue(n),Ze(n),Ne.setCursor(ie?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 Ue("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("<br/>\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(ye),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 He(!Fe),Ne.focus();case fe:return void Ue(fe);case ge:return void Ue(ge);case pe:return void Ue(pe);case me:return void Ue(me);case"maths-latex":return void Ue("maths-latex");case he:return void Ue(he);case ve:return void Ue(ve);default:throw new Error}}),[Ne,Oe,Fe]),xt=(0,c.useCallback)((function(e,t){var n,i,o,r,a;switch(Ue(""),qe){case fe:var l=e.title,s=e.link;return Ne.replaceSelection("[".concat(l,"](").concat(s,")")),Ne.focus();case ge: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<d.length;p++)f[p]=d.charCodeAt(p);Z(new Blob([f],{type:"image/png"}),(function(e){e.id?Ne.replaceSelection(".concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":Ne.replaceSelection("`$$"+e+"$$`");break;case pe:case me:case"add-flowchart":var h=e.src,m=e.alt,g=t,v=null==g||null===(n=g.name)||void 0===n||null===(n=n.split("."))||void 0===n||null===(i=n.pop)||void 0===i?void 0:i.call(n);return(null==g||null===(o=g.type)||void 0===o?void 0:o.indexOf("image"))>-1||null==g||!g.type?m?Ne.replaceSelection(".concat(h,' "').concat(m,'" )')):Ne.replaceSelection("")):(null==g||null===(r=g.type)||void 0===r?void 0:r.indexOf("video"))>-1?Ne.replaceSelection('<video width="100%" controls src="'.concat(de.Z.API_SERVER).concat(h,'"></video>')):(null==g||null===(a=g.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Ne.replaceSelection('<a href="'.concat(de.Z.API_SERVER).concat(h,"?type=").concat(g.type,'&disposition=inline" target="_blank">').concat(g.name,"</a>")):Ce.includes(v)?Ne.replaceSelection('<a href="'.concat(de.Z.API_SERVER).concat(h,'?type=office&disposition=inline" target="_blank">').concat(g.name,"</a>")):Ne.replaceSelection("[".concat(g.name,"](").concat(de.Z.API_SERVER).concat(h,")")),Ne.focus();case ve:for(var w=e.row,x=e.col,b=e.align,y="\n",C=0;C<w;C++){for(var k=[],_=[],j=0;j<x;j++)1===C&&_.push(xe[b]),k.push(" ");1===C&&(y+="| ".concat(_.join(" | ")," |\n")),y+="| ".concat(k.join(1===x?"":" | ")," |\n")}return Ne.replaceSelection(y+"\n"),Ne.focus();default:throw new Error}}),[Ne,qe]),bt=(0,c.useMemo)((function(){switch(qe){case fe:return(0,h.jsx)(S,{callback:xt,onCancel:yt});case ge:return(0,h.jsx)(B.Z,{callback:xt,onCancel:yt});case pe:return(0,h.jsx)(L,{callback:xt,onCancel:yt});case he:return(0,h.jsx)(ee,{callback:xt,onCancel:yt});case ve:return(0,h.jsx)(re,{callback:xt,onCancel:yt});case"maths-latex":return(0,h.jsx)(ce,{showSaveButton:!0,callback:xt});case"inline-latex":return(0,h.jsx)(ue.Z,{showSaveButton:!0,callback:xt});default:return null}}),[qe]);function yt(){Ue("")}(0,c.useEffect)((function(){if(mt.current){var e=function(e){o=!0,r=e.pageY},t=function(){o=!1},n=function(e){if(o){var t=e.pageY-r;t<0&&(t=0),t>300&&(t=300),tt(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(){tt(g)}),[g]);var Ct={width:ke(l),height:ke(et)},kt=((0,c.useMemo)((function(){if(Je){var e=new Date(Je),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}),[Je]),function(e){var t=[];if(F){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){if(Se[qe]&&qe!==me&&qe!==he){var e=document.getElementsByClassName("ant-modal")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;st(t),ft(n)}}),[qe]);var _t=function(e,t,n,i){var o=document.body.clientHeight,r=document.body.clientWidth;return!(e<20&&n>e||e>r-20&&n<e||t<20&&i>t||t>o-20&&i<t)||(document.body.onmousemove=null,document.body.onmouseup=null,!1)};return(0,h.jsxs)(c.Fragment,{children:[(0,h.jsx)("div",{className:"markdown-editor-wrapper",ref:ht,children:(0,h.jsxs)("div",{className:"markdown-editor-container ".concat(X," ").concat(Oe?"on-preview":""," ").concat(w?"mini":""," ").concat(Fe?"full-screen":""),style:Ct,children:[(0,h.jsx)(b,{insertTemp:_,watch:Oe,fullScreen:Fe,showNullButton:I,showNullProgramButton:F,onActionCallback:wt,hidetoolBar:W,extraUse:Be}),(0,h.jsxs)("div",{className:"markdown-editor-body",children:[(0,h.jsx)("div",{className:"codemirror-container",children:(0,h.jsx)("textarea",{ref:pt,placeholder:se})}),Oe?(0,h.jsxs)("div",{ref:gt,className:"preview-container",children:["stex"===T&&(0,h.jsx)(m,{value:Me}),"stex"!==T&&(0,h.jsx)(p.Z,{disabledFill:ae,showProgramFill:F,value:Me})]}):null]})]})}),M?(0,h.jsx)("a",{ref:mt,className:"editor-resize"}):null,qe===me&&(0,h.jsx)(O,{callback:xt,onCancel:yt}),qe===he&&(0,h.jsx)(ee,{callback:xt,onCancel:yt}),(0,h.jsx)(y.Z,{children:Se[qe]&&qe!==me&&qe!==he?(0,h.jsx)(Y.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:lt,top:dt},title:(0,h.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var t=e.clientX-lt,n=e.clientY-dt;document.body.onmousemove=function(e){var i=e.clientX-t,o=e.clientY-n,r=document.getElementsByClassName("ant-modal")[0],a=window.innerWidth-r.offsetWidth,l=window.innerHeight-r.offsetHeight;i=Math.max(0,Math.min(i,a)),o=Math.max(0,Math.min(o,l)),_t(e.clientX,e.clientY,t,n)&&(st(i),ft(o))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:Se[qe]}),open:!0,onCancel:yt,footer:null,destroyOnClose:!0,width:qe===he?"1200px":null,height:qe===he?"80vh":null,className:"markdown-popup-form",children:bt}):null})]})}},30043:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var i=n(82100),o=n.n(i),r=n(29186),a=n.n(r),l=n(80619),s=n.n(l),c=n(47074),u=n.n(c),d=n(59301),f=n(4676),p=function(e){s()(n,e);var t=u()(n);function n(e){var i;o()(this,n),i=t.call(this,e);var r=window.document;return i.node=r.createElement("div"),r.body.appendChild(i.node),i}return a()(n,[{key:"render",value:function(){var e=this.props.children;return(0,f.createPortal)(e,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),n}(d.Component)},40238: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])}},88521:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return he}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),l=n(82242),s=n.n(l),c=n(79800),u=n.n(c),d=n(59301),f=n(46681),p=n(99313),h=n(78241),m=n(8591),g=n(3113),v=n(43418),w=n(5112),x=n(98135),b=n(95237),y=n(43604),C=n(77162),k=n(36653),_=n(84793),j=n(53093),S=n(57809),B=n(41282),A={flex_box_center:"flex_box_center___VNtUs",flex_space_between:"flex_space_between___yjHqt",flex_box_vertical_center:"flex_box_vertical_center___ExRYO",flex_box_center_end:"flex_box_center_end___R3pck",flex_box_column:"flex_box_column___jCizz",modal:"modal___QCUzg",main:"main___t9DEK",title:"title___roJ27",name:"name___AJcOc",body:"body___k8mdv",form:"form____xxpn",btns:"btns___Zy6h9"},T=n(37205),N=n.n(T),P=n(6848),E="wrap___zDMCt",L="modal___qzGUK",M="titleWrap___k3brc",Z="required___h7eRD",G="title___cMJHQ",D="colorGray___bSYRQ",O="choiceWrap___JBxMa",R="answer___LyOVU",I="activeAnswer___Jr8Iu",z="deleteIcon___xZU5J",F="addIcon___b8dJ9",H="editorWrap___LcO9S",W="htmlWrap___TI8l7",V="radio___xZG0G",q="color333___INjEp",U="color999___TucNz",K=n(37712),Y=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],J=function(e,t){var n=e.editData,i=(0,d.useState)(["","","",""]),o=u()(i,2),r=o[0],a=o[1],l=(0,d.useState)(),s=u()(l,2),c=s[0],f=s[1],p=(0,d.useState)([]),h=u()(p,2),g=h[0],v=h[1],w=(0,d.useState)(""),x=u()(w,2),b=x[0],y=x[1];(0,d.useEffect)((function(){var e,t;if(n){y(null==n?void 0:n.subject),a(null==n||null===(e=n.choose_contents)||void 0===e?void 0:e.map((function(e){return e.option_name})));var i=[];null==n||null===(t=n.choose_contents)||void 0===t||t.map((function(e,t){e.right_key&&i.push(t)})),v(i)}}),[n]),(0,d.useImperativeHandle)(t,(function(){return{onSave:_,Clear:j}}));var _=function(){if(!b)return m.ZP.info("请您输入题干"),!1;var e=r.findIndex((function(e){return!e}));if(e>-1)return m.ZP.info("请先输入 ".concat(Y[e]," 选项的内容")),!1;if(console.log(r,"questionChoiceList"),function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=N()(e).sort(),n=0;n<t.length-1;n++)if(t[n]==t[n+1])return!0;return!1}(r))return m.ZP.info("选项已重复"),!1;if(!g.length)return m.ZP.info("请设置本题的正确答案,点击选项A/B...即可完成设置"),!1;var t=r.map((function(e,t){return{choice_text:e,is_answer:g.includes(t)?1:0}}));return{name:b,choices:t}},j=function(){a(["","","",""]),y(""),v([])};return(0,K.jsxs)("section",{className:E,children:[(0,K.jsxs)("p",{className:M,children:[(0,K.jsx)("span",{className:Z,children:"*"}),(0,K.jsx)("span",{className:G,children:"题干:"})]}),(0,K.jsx)(C.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"请您输入题干",defaultValue:b,onChange:function(e){return y(e)}}),(0,K.jsxs)("p",{className:M,children:[(0,K.jsx)("span",{className:Z,children:"*"}),(0,K.jsxs)("span",{className:G,children:["答案选项:",(0,K.jsx)("span",{className:D,children:"点击选项可设置正确答案"})]})]}),r.map((function(e,t){return(0,K.jsxs)("div",{className:O,children:[(0,K.jsx)(P.Z,{title:"点击设置为标准答案",placement:"left",children:(0,K.jsx)("div",{className:"".concat(R," ").concat(g.includes(t)?I:""),onClick:function(){g.includes(t)?v(g.filter((function(e){return e!==t}))):v([].concat(N()(g),[t]))},children:Y[t]})}),(0,K.jsx)("div",{className:H,children:c===t?(0,K.jsx)(C.Z,{id:"single-question-option-".concat(t),watch:!0,height:155,placeholder:"请您输入选项",defaultValue:e,onChange:function(e){r[t]=e,a(r)}}):(0,K.jsx)("div",{className:W,onClick:function(){return f(t)},children:(0,K.jsx)(k.Z,{value:e})})}),t>1&&(0,K.jsx)(P.Z,{title:"删除",children:(0,K.jsx)("i",{className:"".concat(z," iconfont icon-htmal5icon19"),onClick:function(){return a(r.filter((function(e,n){return n!==t})))}})}),t<7&&t===r.length-1&&(0,K.jsx)(P.Z,{title:"新增参考答案",children:(0,K.jsx)("i",{className:"".concat(F," iconfont icon-roundaddfill ml6"),onClick:function(){return a([].concat(N()(r),[""]))}})})]},t)})),(0,K.jsx)("div",{className:"mt10 mb10",children:(0,K.jsx)("span",{className:"c-grey-999",children:"温馨提示:点击选项输入框可设置答案;选中的选项即为正确答案,选择多个答案即为多选题"})})]})},Q=(0,d.forwardRef)(J),X=n(24905),$=n(53706),ee=n(49091),te=function(e,t){var n=e.editData,i=(0,d.useState)(""),o=u()(i,2),r=o[0],a=o[1],l=(0,d.useState)([]),s=u()(l,2),c=s[0],f=s[1],p=(0,d.useState)(""),h=u()(p,2),g=h[0],w=h[1],x=(0,d.useState)(),b=u()(x,2),y=b[0],C=b[1],k=(0,d.useState)(!1),_=u()(k,2),j=_[0],S=_[1];(0,d.useEffect)((function(){n&&(a(null==n?void 0:n.subject),C(null==n?void 0:n.is_ordered),S(!0))}),[n]),(0,d.useEffect)((function(){var e;if(j){var t=null==n||null===(e=n.standard_answers)||void 0===e?void 0:e.map((function(e){return e.text}));f(t),S(!1)}}),[j]),(0,d.useImperativeHandle)(t,(function(){return{onSave:A,Clear:T}})),console.log(c,"answerList");var A=function(){var e=[],t=!1;return c.forEach((function(n,i){e.push({position:i+1,answer_text:[]}),n.forEach((function(n,o){e[i].answer_text.push(n),n&&(0,B.eR)(n,1e4)||(w("".concat(i,"-").concat(o)),m.ZP.info(n?"答案不能超过10000字符":"答案:不能为空"),t=!0)}))})),!t&&((null==e?void 0:e.length)>50?(m.ZP.warning("填空题标准答案不能为空/不能超过50个!"),!1):{name:r,standard_answers:e,is_ordered:y})},T=function(){a(""),f([]),C(!1)},P=function(e,t,n){w("");var i=c.slice();i[e][t]=n,f(i)},D=function(e){var t=c.slice();t[e]=[].concat(N()(t[e]),[""]),f(t)},O=function(e,t){var n=c.slice();if(!n[e][t])return n[e]=n[e].filter((function(e,n){return n!==t})),void f(n);v.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:"确认要删除这个参考答案吗?",className:L,onOk:function(){n[e]=n[e].filter((function(e,n){return n!==t})),f(n)}})},R=function(e){v.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:"确认要删除这个参考答案吗?",className:L,onOk:function(){var t=c.slice();t=c.filter((function(t,n){return e!==n})),f(t)}})};return(0,K.jsxs)("section",{className:E,children:[(0,K.jsxs)("p",{className:M,children:[(0,K.jsx)("span",{className:Z,children:"*"}),(0,K.jsx)("span",{className:G,children:"题干:"})]}),(0,K.jsx)("div",{children:(0,K.jsx)($.Z,{id:"completion-question-tittle",placeholder:"请您输入题目",height:155,defaultValue:r,onChange:function(e){return a(e)},showNullButton:!0,onPlaceholderChange:function(e,t,n){var i=c.slice();if(t&&i.splice(e,t),n)for(var o=0;o<n;o++)i.splice(e+o,0,[""]);f(i)}})}),(0,K.jsx)("div",{className:"mt20",children:c.map((function(e,t){return(0,K.jsx)(ee.Z,{answers:e,index:t,is_md:!0,activeOptionErrorIndex:g,onAnswerChange:P,addChildAnswer:D,deleteChildAnswer:O,deleteChildAnswermain:R},t)}))}),(0,K.jsx)("div",{className:"mt10 mb5",children:c.length>1&&(0,K.jsxs)("span",{children:[(0,K.jsx)(X.Z,{checked:y,onChange:function(e){return C(e.target.checked)},className:q,children:"多个填空的答案有顺序要求"}),(0,K.jsx)("span",{className:"".concat(U," font12"),children:"(选中,每个填空的答案顺序必须与参考答案一致)"})]})})]})},ne=(0,d.forwardRef)(te),ie=function(e,t){var n=e.editData,i=(0,d.useState)(),o=u()(i,2),r=o[0],a=o[1],l=(0,d.useState)(""),s=u()(l,2),c=s[0],f=s[1];(0,d.useEffect)((function(){n&&(f(null==n?void 0:n.subject),a("正确"===(null==n?void 0:n.standard_answer)?"0":"1"))}),[n]),(0,d.useImperativeHandle)(t,(function(){return{onSave:p,Clear:h}}));var p=function(){return c?r?{name:c,choices:[{choice_text:"正确",is_answer:"0"===r?1:0},{choice_text:"错误",is_answer:"1"===r?1:0}]}:(m.ZP.info("请先点击选择本判断题的正确选项"),!1):(m.ZP.info("请您输入题干"),!1)},h=function(){f(""),a("")};return(0,K.jsxs)("section",{className:E,children:[(0,K.jsxs)("p",{className:M,children:[(0,K.jsx)("span",{className:Z,children:"*"}),(0,K.jsx)("span",{className:G,children:"题干:"})]}),(0,K.jsx)(C.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"请您输入题干",defaultValue:c,onChange:function(e){return f(e)}}),(0,K.jsxs)("p",{className:M,children:[(0,K.jsx)("span",{className:Z,children:"*"}),(0,K.jsxs)("span",{className:G,children:["答案选项:",(0,K.jsx)("span",{className:D,children:"点击选项可设置正确答案"})]})]}),(0,K.jsxs)(w.ZP.Group,{className:"mb10",buttonStyle:"solid",value:r,onChange:function(e){return a(e.target.value)},children:[(0,K.jsx)(w.ZP.Button,{value:"0",className:"".concat(V," mr40"),children:"正确"}),(0,K.jsx)(w.ZP.Button,{value:"1",className:V,children:"错误"})]})]})},oe=(0,d.forwardRef)(ie),re=n(35338),ae=function(e){var t=e.visible,n=void 0!==t&&t,i=e.is_published,r=e.editData,l=e.onOk,c=e.onCancel,f=(0,re.UO)(),p=(0,d.useState)([10,20]),v=u()(p,2),x=v[0],k=v[1],_=h.Z.useForm(),T=u()(_,1)[0],N=(0,d.useState)({}),P=u()(N,2),E=P[0],L=P[1],M=(0,d.useRef)();(0,d.useEffect)((function(){return document.getElementById("modal-level-question").style.transform="none",function(){document.getElementById("modal-level-question").style.transform="translateX(0)"}}),[]),(0,d.useEffect)((function(){n&&r&&(T.setFieldsValue(s()({},r)),k(Z[r.difficult]))}),[n]);var Z={1:[10,20],2:[30,40,50,60],3:[70,80,90,100]},G=function(){var e=a()(o()().mark((function e(){var t,i,r,a,l,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M.current.onSave();case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return",!1);case 5:if(1!==n){e.next=11;break}return i="",r={cnt:null==t?void 0:t.choices.map((function(e){return e.choice_text}))},null==(a={answer:null==t?void 0:t.choices.map((function(e){return e.is_answer}))})||a.answer.map((function(e,t){e&&(i+=B.oV[t])})),e.abrupt("return",{challenge_choose:{subject:t.name,answer:E.task_pass,standard_answer:i,score:E.score,difficult:E.difficult},question:r,choice:a});case 11:if(2!==n){e.next=13;break}return e.abrupt("return",{challenge_choose:{subject:t.name,answer:E.task_pass,score:E.score,difficult:E.difficult},blank_answers:null==t?void 0:t.standard_answers,is_ordered:null==t?void 0:t.is_ordered});case 13:if(3!==n){e.next=16;break}return s=null!=t&&null!==(l=t.choices)&&void 0!==l&&null!==(l=l[0])&&void 0!==l&&l.is_answer?"true":"false",e.abrupt("return",{challenge_choose:{subject:t.name,answer:E.task_pass,standard_answer:s,score:E.score,difficult:E.difficult}});case 16:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=function(e){var t=Z[e],n=null==t?void 0:t[0];k(t),T.setFieldsValue({score:n}),L(s()(s()({},T.getFieldsValue()),{score:n}))},O=function(){var e=a()(o()().mark((function e(t){var i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,G();case 2:if(i=e.sent){e.next=5;break}return e.abrupt("return");case 5:if(!r){e.next=25;break}return e.t0=j.bq,e.t1=s(),e.t2=s(),e.t3=s(),e.t4={},e.next=13,i;case 13:return e.t5=e.sent,e.t6=(0,e.t3)(e.t4,e.t5),e.t7=f,e.t8=(0,e.t2)(e.t6,e.t7),e.t9={},e.t10={questionId:r.choose_id,type:n},e.t11=(0,e.t1)(e.t8,e.t9,e.t10),e.next=22,(0,e.t0)(e.t11);case 22:return e.sent.challenge_choose_id&&(m.ZP.success("操作成功"),l()),e.abrupt("return");case 25:return e.t12=j.Tn,e.t13=s(),e.t14=s(),e.t15=s(),e.t16={},e.next=32,i;case 32:return e.t17=e.sent,e.t18=(0,e.t15)(e.t16,e.t17),e.t19=f,e.t20=(0,e.t14)(e.t18,e.t19),e.t21={},e.t22={type:n},e.t23=(0,e.t13)(e.t20,e.t21,e.t22),e.next=41,(0,e.t12)(e.t23);case 41:e.sent.challenge_choose_id&&(m.ZP.success("操作成功"),l());case 43:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),R=function(){var e=a()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,M.current.onSave();case 2:if(e.sent){e.next=5;break}return e.abrupt("return",!1);case 5:T.submit();case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,K.jsx)("div",{className:A.modal,children:(0,K.jsxs)("div",{className:A.main,children:[(0,K.jsxs)("div",{className:A.title,children:[(0,K.jsx)("span",{className:A.name,children:r?"编辑题目":"添加题目"}),(0,K.jsxs)("span",{className:A.edit,onClick:c,children:[" ",(0,K.jsx)("i",{className:"iconfont icon-guanbi1"})," "]})]}),(0,K.jsx)("div",{className:A.body,id:"question-scroll",children:(0,K.jsxs)(h.Z,{form:T,className:A.form,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(e,t){L(s()({},t)),"difficult"in e&&D(e.difficult)},onFinish:O,initialValues:{difficult:1,score:10},children:[1===n&&(0,K.jsx)(Q,{ref:M,editData:r}),2===n&&(0,K.jsx)(ne,{ref:M,editData:r}),3===n&&(0,K.jsx)(oe,{ref:M,editData:r}),(0,K.jsx)(h.Z.Item,{name:"task_pass",label:"参考答案:",rules:[{required:!0,message:"请输入参考答案"},{max:35e3,message:"参考答案最大限制5000个字符"}],children:(0,K.jsx)(C.Z,{className:"mt5",watch:!0,defaultValue:(null==r?void 0:r.answer)||""})}),(0,K.jsx)(h.Z.Item,{name:"difficult",label:"难度系数:",rules:[{required:!0,message:"请选择难度系数"}],children:(0,K.jsxs)(w.ZP.Group,{disabled:i,children:[(0,K.jsx)(w.ZP,{value:1,children:"简单"}),(0,K.jsx)(w.ZP,{style:{marginLeft:80},value:2,children:"中等"}),(0,K.jsx)(w.ZP,{style:{marginLeft:80},className:"ml80",value:3,children:"困难"})]})}),(0,K.jsxs)(b.Z,{className:"customAddItemSelect",children:[(0,K.jsx)(y.Z,{children:(0,K.jsx)(h.Z.Item,{name:"score",label:"奖励金币:",rules:[{required:!0,message:"请选择奖励经验值"}],children:(0,K.jsx)(S.default,{size:"large",disabled:i,children:x.map((function(e){return(0,K.jsx)(S.default.Option,{value:e,children:e},e)}))})})}),(0,K.jsx)(y.Z,{style:{paddingTop:18},children:(0,K.jsx)("div",{className:"font12 c-light-black ml10 mt20",children:"学员正确答题时获得金币,并且获得等量的经验值。如:+100金币、+100经验值。"})})]})]})}),(0,K.jsxs)("div",{className:A.btns,children:[(0,K.jsx)(g.ZP,{size:"middle",style:{marginRight:20},onClick:c,children:"取消"}),(0,K.jsx)(g.ZP,{size:"middle",type:"primary",onClick:R,children:"保存"})]})]})})},le={flex_box_center:"flex_box_center___ppUNW",flex_space_between:"flex_space_between___WJRAN",flex_box_vertical_center:"flex_box_vertical_center___7gMnX",flex_box_center_end:"flex_box_center_end___hvwcp",flex_box_column:"flex_box_column___yfVcD",bg:"bg___8Isfx",formWrap:"formWrap___r7knb",empty:"empty___eyoKW",list:"list___KSdLX",fs:"fs___Z5WVP",top:"top___brfch",left:"left___sqlv7",title:"title___DZUxC",qs:"qs___hVb1u",qsActive:"qsActive___sevZW",right:"right___dIeSm",bt:"bt___WD12g",answer:"answer___eM8QA",addBtn:"addBtn___uPtMo"},se=n(84486),ce=n(64187),ue=n(35503),de=n(74343),fe=n(64330),pe=p.Z.TabPane,he=(0,f.connect)((function(e){return{shixunsDetail:e.shixunsDetail,newCourse:e.newCourse,globalSetting:e.globalSetting,practiceSetting:e.practiceSetting}}))((function(e){var t,n,i,r=e.shixunsDetail,l=e.practiceSetting,c=e.dispatch,S=(0,f.useParams)(),B=(0,f.useLocation)(),A=(0,f.useSearchParams)(),T=u()(A,1)[0],N=h.Z.useForm(),P=u()(N,1)[0],E=(0,d.useState)({}),L=u()(E,2),M=L[0],Z=L[1],G=(0,d.useState)([]),D=u()(G,2),O=D[0],R=D[1],I=(0,d.useState)(!0),z=u()(I,2),F=(z[0],z[1]),H=(0,d.useState)(!0),W=u()(H,2),V=W[0],q=W[1],U=(0,d.useState)(!1),Y=u()(U,2),J=Y[0],Q=Y[1],X=(0,d.useState)(null),$=u()(X,2),ee=$[0],te=$[1],ne=(0,d.useState)(null),ie=u()(ne,2),oe=(ie[0],ie[1]),re=(0,d.useState)("1"),he=u()(re,2),me=he[0],ge=he[1],ve=(0,d.useState)(1),we=u()(ve,2),xe=we[0],be=we[1],ye=(0,d.useRef)({subject:"",task_pass:""}),Ce=(0,d.useRef)(null),ke=l.is_published,_e=l.id,je=r.challengesEdit,Se=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];(0,d.useEffect)((function(){return T.get("tab")&&ge(T.get("tab")),Be(),Ae(),function(){clearTimeout(Ce.current)}}),[B.pathname]);var Be=function(){var e=a()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return q(!0),e.next=3,c({type:"shixunsDetail/getChallengesEdit",payload:s()({},S)});case 3:t=e.sent,oe(s()({},t)),ye.current={subject:t.subject,task_pass:(0,ue.S)(t.task_pass),unity_3d_routes:t.unity_3d_routes,has_relation:t.has_relation},Z(s()({},ye.current)),P.setFieldsValue(s()({},t)),q(!1);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ae=function(){var e=a()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return F(!0),e.next=3,(0,j.eb)(s()({},S));case 3:t=e.sent,R(t.data),F(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Te=function(){var e=a()(o()().mark((function e(t){var n,i,a,l,u,d,f,p=arguments;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=p.length>1&&void 0!==p[1]&&p[1],i=p.length>2&&void 0!==p[2]?p[2]:1,a=!(!t.unity_3d_routes||""==t.unity_3d_routes),l=s()(s()(s()({},t),S),{},{unity_3d_routes:a?t.unity_3d_routes:null,unity_3d:a,sync_origin_shixun:n}),e.next=6,(0,j.Rs)(l);case 6:0===(u=e.sent).status&&(null!=r&&null!==(d=r.detail)&&void 0!==d&&d.copy_for_exercise||m.ZP.success(u.message),c({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),c({type:"practiceSetting/setUpdateIndex"}),ge("2"),Le(),null!=r&&null!==(f=r.detail)&&void 0!==f&&f.copy_for_exercise&&(0,ue.m)(c,r,S.id,i));case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ne=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,(0,j._9)(s()(s()({},S),{},{questionId:t}));case 2:0===e.sent.status&&Ae();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Pe=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,(0,j.im)(s()(s()({},S),{},{questionId:t}));case 2:0===e.sent.status&&Ae();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ee=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 e.next=2,(0,j.UQ)(s()(s()({},S),{},{questionId:t}));case 2:n=e.sent,te(s()(s()({},n),{},{choose_id:t})),Q("单选题/多选题"===(null==n?void 0:n.question_name)?1:"填空题"===(null==n?void 0:n.question_name)?2:3);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Le=function(){be(xe+1),Be()},Me=function(){var e,t=function(){f.history.push("/shixuns/".concat(_e,"/challenges")),c({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};null!=l&&null!==(e=l.sideBar)&&void 0!==e&&e.confirmLeave?v.Z.confirm({title:"离开此页提示",content:"系统可能不会保存您所做的更改。",okText:"离开",cancelText:"取消",onOk:function(){t()}}):t()};return(0,K.jsxs)("section",{className:le.bg,style:{marginBottom:"1"===me?67:0},children:[(0,K.jsxs)(p.Z,{activeKey:me,onChange:function(e){var t,n=function(){ge(e),Le(),c({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};null!=l&&null!==(t=l.sideBar)&&void 0!==t&&t.confirmLeave?v.Z.confirm({title:"离开此页提示",content:"系统可能不会保存您所做的更改。",okText:"离开",cancelText:"取消",onOk:function(){n()}}):n()},tabBarExtraContent:"1"===me?null:(0,K.jsxs)("div",{className:"mb10",children:[(0,K.jsx)(g.ZP,{onClick:function(){return Q(1)},type:"primary",ghost:!0,children:"添加选择题"}),(0,K.jsx)(g.ZP,{onClick:function(){return Q(2)},type:"primary",className:"ml20 mr20",ghost:!0,children:"添加填空题"}),(0,K.jsx)(g.ZP,{onClick:function(){return Q(3)},type:"primary",ghost:!0,children:"添加判断题"})]}),children:[(0,K.jsx)(pe,{tab:"本关任务",children:(0,K.jsxs)(h.Z,{form:P,scrollToFirstError:!0,className:le.formWrap,layout:"vertical",onValuesChange:function(e,t){Z(s()({},t)),clearTimeout(Ce.current),Ce.current=setTimeout((function(){var e=P.getFieldsValue(),t=e.subject,n=e.task_pass;""!==ye.current.subject&&(t!==ye.current.subject||n!==ye.current.task_pass?c({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):c({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}))}),500)},onFinish:function(e){var t,n;null!=r&&null!==(t=r.detail)&&void 0!==t&&t.is_fork_from_creator&&null!=r&&null!==(n=r.detail)&&void 0!==n&&n.copy_for_exercise&&ye.current.has_relation?c({type:"classroomList/setActionTabs",payload:{key:"同步修改",value:e,type:"taskLevel",fn:function(e,t,n){Te(e,t,n)}}}):Te(e)},children:[(0,K.jsx)("div",{className:le.fieldWrap,children:(0,K.jsx)(h.Z.Item,{initialValue:"",name:"subject",label:"任务名称:",rules:[{required:!0,message:"请输入任务名称"}],children:(0,K.jsx)(x.Z,{bordered:!1,maxLength:60,suffix:"".concat((null===(t=M.subject)||void 0===t?void 0:t.length)||0,"/60"),placeholder:"例如:从Python程序设计-入门精通"})})}),(0,K.jsx)("div",{className:le.mdWrap,children:(0,K.jsx)(h.Z.Item,{name:"task_pass",label:(0,K.jsxs)(b.Z,{align:"middle",children:[(0,K.jsx)(y.Z,{className:"mr10 font16",children:"任务要求:"}),(0,K.jsx)(y.Z,{children:(null==r||null===(n=r.detail)||void 0===n?void 0:n.id)&&(0,K.jsx)(_.Z,{title:"AI生成",defaultData:[{sender:"AI",hideTextEffect:!0,text:"嗨,我是头歌智能助教,您的教学好帮手。我可以阅读您上传的教案,书籍等教学资料,并根据您的要求为您自动生成任务要求。"}],children:(0,K.jsx)(g.ZP,{type:"primary",children:"AI生成"})})})]}),rules:[{required:!0,message:"请输入作业的简介"},{max:35e3,message:"作业简介最大限制5000个字符"}],children:(0,K.jsx)(C.Z,{watch:!0,defaultValue:je.task_pass},S.challengesId||"3")})}),(0,K.jsx)(h.Z.Item,{noStyle:!0,children:(0,K.jsx)(se.t,{okButtonProps:{htmlType:"submit"},className:"customFixedButton",onCancel:function(){Me()}})}),(0,fe.ag)()&&(0,K.jsx)("div",{className:le.fieldWrap,children:(0,K.jsx)(h.Z.Item,{initialValue:"",name:"unity_3d_routes",label:"嵌入第三方平台:",children:(0,K.jsx)(x.Z,{bordered:!1,maxLength:60,suffix:"".concat((null===(i=M.unity_3d_routes)||void 0===i?void 0:i.length)||0,"/60"),placeholder:"请输入第三方平台地址"})})})]},xe)},"1"),(0,K.jsxs)(pe,{tab:"题目",children:[!!O.length&&O.map((function(e,t){var n=e.challenge_choose_id,i=e.subject,r=e.choose_contents,l=e.standard_answer,c=e.answer,u=e.score,d=(e.category,e.question_name),f=e.standard_answers;return(0,K.jsxs)("div",{className:le.list,children:[(0,K.jsxs)("div",{className:le.top,children:[(0,K.jsxs)("div",{className:le.left,children:[(0,K.jsxs)("div",{className:le.title,children:[(0,K.jsxs)("div",{className:le.fs,children:[t+1,". "]}),(0,K.jsx)(k.Z,{value:i})]}),"单选题/多选题"===d&&(null==r?void 0:r.map((function(e,t){return(0,K.jsxs)("ul",{className:e.right_key?le.qsActive:le.qs,children:[(0,K.jsx)("li",{children:Se[e.position]}),(0,K.jsx)("li",{children:(0,K.jsx)(k.Z,{value:e.option_name})})]},t)}))),"判断题"===d&&(0,K.jsxs)(w.ZP.Group,{className:"mb10",buttonStyle:"solid",value:l,children:[(0,K.jsx)(w.ZP,{value:"正确",className:"".concat(le.radio," mr40"),children:"正确"}),(0,K.jsx)(w.ZP,{value:"错误",className:le.radio,children:"错误"})]})]}),(0,K.jsxs)("div",{className:le.right,children:[(0,K.jsx)("i",{onClick:function(){return Ee(n)},className:"iconfont icon-xiaoxiugai"}),(0,K.jsx)("i",{onClick:function(){return e=n,t=function(){var t=a()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,j.Yn)(s()(s()({},S),{},{questionId:e}));case 2:t.sent.challenge_id&&(Ae(),m.ZP.success("删除成功"));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),void v.Z.confirm({title:"提示",content:"是否删除题目!",centered:!0,onOk:t});var e,t},className:"iconfont icon-shanchu23"}),t!==O.length-1&&(0,K.jsx)("i",{onClick:function(){return Pe(n)},className:"iconfont icon-xiayi2"}),0!==t&&(0,K.jsx)("i",{onClick:function(){return Ne(n)},className:"iconfont icon-shangyi2"})]})]}),(0,K.jsxs)("div",{className:le.bt,children:["题型:",d," 奖励金币:",u]}),(0,K.jsxs)("div",{className:le.answer,children:["填空题"===d?null==f?void 0:f.map((function(e,t){var n;return(0,K.jsxs)("p",{children:["填空",t+1,":",null==e||null===(n=e.text)||void 0===n?void 0:n.join("、")]},t)})):(0,K.jsxs)("p",{children:["标准答案:",l]}),(0,K.jsxs)("p",{children:[(0,K.jsx)("div",{className:le.fs,children:"参考答案:"}),(0,K.jsx)(k.Z,{value:c})]})]})]},n)})),!O.length&&(0,K.jsxs)("div",{className:le.empty,children:[(0,K.jsx)("img",{src:de.x7,width:"258"}),(0,K.jsx)("span",{className:"c-grey-c",children:"请点击右上角添加题目按钮进行题目的创建! "})]})]},"2")]}),!!J&&(0,K.jsx)(ae,{is_published:ke,visible:J,onCancel:function(){Q(!1),te(null)},onOk:function(){Q(!1),te(null),Ae()},editData:ee}),(0,K.jsx)(ce.Z,{loading:V})]})}))},64187:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});n(59301);var i=n(71418),o="loading___lueiN",r=n(37712),a=function(e){return e.loading?(0,r.jsx)("div",{className:o,children:(0,r.jsx)(i.Z,{})}):(0,r.jsx)(r.Fragment,{})}},35503:function(e,t,n){"use strict";n.d(t,{S:function(){return d},m:function(){return f}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),l=n(41282),s=n(8591),c=n(43418),u=n(37712),d=function(e){var t=document.createElement("textarea");return t.value=e,t.value},f=function(){var e=a()(o()().mark((function e(t,n,i,r,a){var d,f,p;return o()().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)&&s.ZP.success("保存成功"),null!=d&&null!==(f=d.data)&&void 0!==f&&f.exists_same_shixun_name?t({type:"classroomList/setActionTabs",payload:{key:"重名修改",name:null==d||null===(p=d.data)||void 0===p?void 0:p.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,l.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,o,r){return e.apply(this,arguments)}}()},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZd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