|
|
(self.webpackChunk=self.webpackChunk||[]).push([[35729,57696],{8433: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,d=0;d<arguments.length;d++){var u=arguments[d];if(null!==u)switch(_typeof(u)){case"number":t=u.toFixed(1);break;case"string":u.match(new RegExp("^[0-9]\\.[0-9]+$"))?t=u:a=u;break;case"object":void 0!==u.is3D?i=u:n=u;break;case"boolean":o=u,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,g=null,m=null,w=!1,v=null,b=null,y=null;void 0!==n.height&&(n.height=Math.round(n.height)),void 0!==n.width&&(n.width=Math.round(n.width));var A=function(e){return parseFloat(e)>4?parseFloat(e):5};function x(){try{return window.self!==window.top}catch(e){return!0}}function k(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){c=e,Z(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(s=e,G(e,t))},e.getHTML5CodebaseVersion=function(){return g},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){y=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var i,o="auto",r=n.id,a=!1,s=0;s<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 d(){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)P(s,n);else{var c=!1;n.hasOwnProperty("playButton")&&n.playButton||n.hasOwnProperty("clickToLoad")&&n.clickToLoad?c=!0:n.hasOwnProperty("playButtonAutoDecide")&&n.playButtonAutoDecide&&(c=(!x()||t())&&k()),c?(h="screenshot",N(s,n,a,o)):T(s,n,a)}else console.log("possibly bug on ajax loading? ")}else setTimeout(d,200)}d()},e.getViews=function(){return i},e.isJavaInstalled=function(){return!1};var C=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";B("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,S(l.settings||{}),i.is3D=!0;var s="https://www.geogebra.org/images/";e.setPreviewImage(v||l.previewUrl,s+"GeoGebra_loading.png",s+"applet_play.png"),t()}else o()}),o)};function S(e){["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach((function(t){e[t]=!!e[t]})),["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"].forEach((function(t){void 0===n[t]&&void 0!==e[t]&&(n[t]=e[t])})),void 0===n.showToolBarHelp&&(n.showToolBarHelp=n.showToolBar)}function B(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){v=e,b=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(A(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 j=function(e){return e&&"false"!==e},T=function(t,n,i){A(g)<=4.2&&(i=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==g||ggbHTML5LoadedCodebaseIsWebSimple&&!w)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var r=document.createElement("div");r.classList.add("appletParameters","notranslate");var a=n.width,l=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(A(g)<=4.4)j(n.showToolBar)&&(n.height-=7),j(n.showAlgebraInput)&&(n.height-=37),n.width<605&&j(n.showToolBar)&&(n.width=605,a=605);else{var d=100;(j(n.showToolBar)||j(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),d=j(n.showMenuBar)?245:155),a<d&&(n.width=d,a=d)}for(var u in r.style.border="none",r.style.display="inline-block",n)n.hasOwnProperty(u)&&"appletOnLoad"!==u&&r.setAttribute("data-param-"+u,n[u]);y&&r.setAttribute("data-param-fontscssurl",y),e.resize=function(){GGBAppletUtils.responsiveResize(t,n)},window.addEventListener("resize",(function(t){e.resize()}));var 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 v=t.querySelector(".applet_scaler.prerender"),b=null!==v;if(b)x=v.querySelector(".ggb_preview");else{var x=E(a,l,n.borderColor,!1);(v=document.createElement("div")).className="applet_scaler",v.style.position="relative",v.style.display="block",v.style.width=a+"px",v.style.height=l+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(v,"66%"),A(g)>=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(v),window.GGBT_wsf_view&&$(window).trigger("resize"),p(e)},b||v.appendChild(x)):r.appendChild(x),v.appendChild(r),b||t.appendChild(v),setTimeout((function(){e.resize()}),1)}function k(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),O("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function C(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){k(e.article,e.params)})),html5AppletsToProcess=null)},A(g)<5&&(e.className+=" geogebraweb")):k(e,t)}if(o){scriptLoadStarted=!0;for(var S=0;S<r.childNodes.length;S++){"TABLE"===r.childNodes[S].tagName&&(r.removeChild(r.childNodes[S]),S--)}if(null!==ggbHTML5LoadedScript){var B=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=B&&B.parentNode.removeChild(B)}var T=document.createElement("script"),P=function(){C(r,n)};T.src=f+m,ggbHTML5LoadedCodebaseIsWebSimple=w,ggbHTML5LoadedCodebaseVersion=g,ggbHTML5LoadedScript=T.src,O("GeoGebra HTML5 codebase loaded: '"+f+"'.",n),c||s&&"5.0"!=s?f.requirejs?__webpack_require__.e(70686).then(function(){var e=[__webpack_require__(82664)];P.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(T.onload=P,t.appendChild(T)):(w?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),P())}else C(r,n);n.height=l,n.width=a},P=function(t,n,i){var o=E(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(_()),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(){L(t,o,r,i)},window.addEventListener("resize",(function(t){e.resize()})),e.resize()};function L(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 N=function(e,t,n,i){P(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"))):T(o,t,!1),window.GGBT_wsf_view.launchFullScreen(r)}else h=i,T(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()},_=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},E=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!==v&&c.setAttribute("src",v),c.style.opacity=.7,null!==b)&&!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",b),a.setAttribute("width",l),a.setAttribute("height",s);var d=(e-l)/2,u=(t-s)/2;a.style.left=d+"px",a.style.top=u+"px",o.appendChild(a)}return o.appendChild(c),o},M=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},I=["web","webSimple","web3d","tablet","tablet3d","phone"],G=function(e,t){if(g=e,t)Z(g,!0);else{var r,a,l=!o;if(l){var s=A(g);!isNaN(s)&&s<4.4&&(l=!1)}r="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var c=g.indexOf("//");for(var d in a=c>0?g:0===c?r+g:"https://www.geogebra.org/apps/5.2.814.0/",I)if(g.slice(-1*I[d].length)===I[d]||g.slice(-1*(I[d].length+1))===I[d]+"/")return void Z(a,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!l||i.is3D||i.AV||i.SV||i.CV||i.EV2||i.CP||i.PC||i.DA||i.FI||i.PV||j(n.showToolBar)||j(n.showMenuBar)||j(n.showAlgebraInput)||j(n.enableRightClick)||n.appName&&"classic"!=n.appName?a+="web3d/":a+="webSimple/",Z(a,!1)}},Z=function(e,t){if(e.requirejs)f=e;else{"/"!==e.slice(-1)&&(e+="/"),f=e,null===t&&(t=-1===e.indexOf("http")),p=t,m="web.nocache.js",w=!1;var n=f.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?I.indexOf(n[n.length-2])>=0&&(m=n[n.length-2]+".nocache.js"):(m="webSimple.nocache.js",w=!0)),n=e.split("/"),"test"===(g=n[n.length-3]).substr(0,4)?g=g.substr(4,1)+"."+g.substr(5,1):"war"!==g.substr(0,3)&&"beta"!==g.substr(0,4)||(g="5.0");var i=parseFloat(g);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 F(){var e=t;null!==s?e=s:parseFloat(e)<5&&(e="5.0"),G(e,!1),null!==c&&Z(c,p),l=!0}return void 0!==n.material_id?C(F):F(),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,d=0,u=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),d=s):(s=window.innerWidth,c=window.innerHeight,d=window.innerWidth),e){var g=e.getBoundingClientRect();g.left>0&&g.left<=s&&(void 0===o||!o)&&("rtl"===document.dir?(f=s-g.width-g.left,p=d<=480?10:30):(p=g.left,f=d<=480?10:30),u=p+f)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(u=40,h=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(u=0,h=40))}return e&&((void 0===n||!n)&&t>0&&t+u<s?s=t:s-=u,"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),d=parseInt(c.width),u=e.width,f=e.height;if(void 0===u){var p=t.querySelector(".appletParameters");p&&(u=p.offsetWidth,f=p.offsetHeight)}var h=d/u,g=a?1:c.height/f;return void 0===n||n||(h=Math.min(1,h),g=Math.min(1,g)),Math.min(h,g)}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 d=void 0!==r.id?r.id:"ggbApplet",u=window[d];null!=u&&u.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")})()},88548: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(97730).Z.API_SERVER},60437:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var i=n(82242),o=n.n(i),r=n(7557),a=n.n(r),l=n(41498),s=n.n(l),c=n(79800),d=n.n(c),u=n(39647),f=n.n(u),p=n(3113),h=n(59301),g=n(37712),m=["children"],w=function(e){var t=e.children,n=f()(e,m),i=(0,h.useState)(!1),r=d()(i,2),l=r[0],c=r[1];return(0,g.jsx)(p.ZP,o()(o()({},n),{},{loading:l,onClick:function(){var e=s()(a()().mark((function e(t){return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,c(!0),e.next=4,n.onClick(t);case 4:c(!1),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0),c(!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),children:t}))}},71844:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),l=n(79800),s=n.n(l),c=n(59301),d="imageDimensions___a7crR",u="img___Kroat",f="fullWidth___c492T",p=n(92310),h=n.n(p),g=n(71418),m=n(2859),w=n(23634),v=n(23756),b=n(37712),y=function(e){var t=e.data,n=e.className,i=e.fullWidth,r=e.style,l=void 0===r?{}:r,p=e.onClose,y=e.onOk,A=e.showFullTools,x=e.noAssociationId,k=(0,c.useRef)(null),C=(0,c.useRef)(null),S=(0,c.useRef)(null),B=(0,c.useRef)(null),j=(0,c.useState)(!1),T=s()(j,2),P=T[0],L=T[1],N=(0,c.useState)("正在加载中"),_=s()(N,2),E=_[0],M=_[1];(0,c.useEffect)((function(){S.current||(S.current=document.createElement("style"),document.head.appendChild(S.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),S.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&I()):(document.body.removeAttribute("data-custom"),S.current&&(document.head.removeChild(S.current),S.current=null))}),[null==t?void 0:t.visible]);var I=function(){var e=a()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(!0),M("正在加载中"),e.next=4,(0,v.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,k.current.src="",k.current.src=n,k.current.onload=function(){Z()},L(!1),M("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),G=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 L(!0),M("正在保存中"),e.next=4,(0,w.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||x){e.next=12;break}return e.next=8,(0,w.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==i?void 0:i.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&y(),e.next=13;break;case 12:null!=i&&i.id&&y(i);case 13:L(!1),M("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Z=function(){C.current=new m.hP(k.current),C.current.targetRoot=B.current,C.current.addEventListener("render",G),C.current.addEventListener("beforeclose",p),A&&(C.current.availableMarkerTypes=C.current.ALL_MARKER_TYPES,C.current.uiStyleSettings.redoButtonVisible=!0,C.current.uiStyleSettings.notesButtonVisible=!0,C.current.uiStyleSettings.zoomButtonVisible=!0,C.current.uiStyleSettings.zoomOutButtonVisible=!0,C.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=C.current.uiStyleSettings,C.current.show(),null!=t&&t.snapshotData&&C.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,b.jsx)(c.Fragment,{children:(null==t?void 0:t.visible)&&(0,b.jsx)(g.Z,{spinning:P,tip:E,style:{position:"absolute"},children:(0,b.jsx)("div",{ref:B,className:h()(d,n,i?f:""),style:l,children:(0,b.jsx)("img",{className:u,ref:k})})})})}},46478:function(e,t,n){"use strict";n.d(t,{h:function(){return w}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(59301),s=n(57809),c=n(78241),d=n(3113),u=n(89780),f=n.n(u),p=(n(27334),n(36857),n(37712)),h=s.default.Option,g={labelCol:{span:4},wrapperCol:{span:20}},m={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};function w(e){var t=e.value,n=e.onChange,i=e.mode,r=e.options,s=void 0===r?{}:r,c=(0,l.useRef)(),d=(0,l.useState)(),u=a()(d,2),h=u[0],g=u[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));g(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),u=r[0],f=r[1];return(0,p.jsxs)(c.Z,o()(o()({},g),{},{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(m[e][1])},children:Object.keys(m).map((function(e){return(0,p.jsx)(h,{value:e,children:m[e][0]},e)}))})}),(0,p.jsx)(c.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,p.jsx)(w,{mode:u})}),(0,p.jsxs)("div",{className:"flex-container flex-end",children:[(0,p.jsx)(d.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(d.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},52025:function(e,t,n){"use strict";n.d(t,{Z:function(){return Ae}});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),d=n(89780),u=n.n(d),f=n(76374),p=(n(27334),n(6313),n(25717),n(99498),n(25419),n(67549),n(96030)),h=n(37712),g=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}})})},m=n(82242),w=n.n(m),v=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function b(e){var t=e.onActionCallback,n=e.title,i=e.icon,o=e.actionName,r=e.className,a=void 0===r?"":r,l=e.children;return(0,h.jsxs)("a",{title:n,className:a,onClick:function(){t(o)},children:[(0,h.jsx)("i",{className:"".concat(i)}),l]})}var y=function(e){var t=e.watch,n=e.showNullButton,i=e.showNullProgramButton,o=e.onActionCallback,r=e.fullScreen,a=e.insertTemp,l=e.hidetoolBar,s=e.extraUse,c=[].concat(v,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,h.jsxs)("ul",{className:"markdown-toolbar-container",children:[!l&&c.map((function(e,t){return(0,h.jsx)("li",{children:e.actionName?(0,h.jsx)(b,w()(w()({},e),{},{onActionCallback:o})):(0,h.jsx)("span",{className:"v-line"})},t)})),n?(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,i?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,a&&(0,h.jsx)("li",{children:(0,h.jsx)(b,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(a),onActionCallback:o,children:(0,h.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),s&&(0,h.jsx)("li",{children:s}),(0,h.jsx)("li",{className:"btn-full-screen",children:(0,h.jsx)(b,{icon:"".concat(r?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:r?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},A=n(11418),x=n(78241),k=n(92832),C=n(3113),S={labelCol:{span:4},wrapperCol:{span:20}},B=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(x.Z,w()(w()({},S),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,h.jsx)(x.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsx)(x.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,h.jsx)(k.Z,{})}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(C.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},j=n(46478),T=n(8531),P=n(95237),L=n(71844),N=function(e){var t=e.callback,n=e.onCancel,i=document.createElement("canvas"),o=i.getContext("2d");i.width=1e3,i.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,i.width,i.height);var r=i.toDataURL("image/png");return(0,h.jsx)(P.Z,{style:{height:"100vh"},children:(0,h.jsx)(L.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:r,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})},_=n(7557),E=n.n(_),M=n(41498),I=n.n(M),G=n(37205),Z=n.n(G),O=n(12378);function F(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(F,go.CommandHandler),F.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},F.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var 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")},F.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")},F.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")},F.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")},F.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")}},F.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")}},F.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")},F.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")},F.prototype.canRotate=function(e){var t=this.diagram;return null!==t&&!t.isReadOnly&&!t.isModelReadOnly&&!(t.selection.count<1)},F.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())},F.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){F._assignZOrder(e,t.get(e.layer)+1)})),e.commitTransaction("pullToFront")},F.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){F._assignZOrder(e,t.get(e.layer)-1-F._findGroupDepth(e))})),e.commitTransaction("pushToBack")},F._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){F._assignZOrder(e,t+1,n)}))},F._findGroupDepth=function(e){if(e instanceof go.Group){var t=0;return e.memberParts.each((function(e){t=Math.max(t,F._findGroupDepth(e))})),t+1}return 0},F.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)}},F.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},F.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")},F.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))},F.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),d=this._angleCloseness(c,e);if(d<=45){var u=n.distanceSquaredPoint(s);(u*=1+Math.sin(d*Math.PI/180))<o&&(o=u,r=l)}}}return r},F.prototype._angleCloseness=function(e,t){return Math.min(Math.abs(t-e),Math.min(Math.abs(t+360-e),Math.abs(t-360-e)))},F.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)}},F.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},F.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},F.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(F.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(F.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var R=F,D=(n(70448),n(85160)),z=n(43418),W=n(43604),V=n(23634),H="myPaletteDiv___Xjz2I",q="maxH60___Pd4Re";window.go=O;var Q=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),d=(0,c.useState)(0),u=a()(d,2),f=u[0],p=u[1],g=function(){var e=I()(E()().mark((function e(){var t,o;return E()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.current.makeImage(),e.next=3,(0,V.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,c.useEffect)((function(){p(f+1)}),[]),(0,h.jsx)("div",{ref:s,className:l.current?"".concat(q," body-overflow-initial"):"body-overflow-initial",children:(0,h.jsx)(z.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!f,destroyOnClose:!0,maskClosable:!1,getContainer:s.current,rootClassName:"zIndex-9999",title:(0,h.jsxs)(P.Z,{children:[(0,h.jsx)(W.Z,{flex:1,children:"插入流程图"}),(0,h.jsx)(W.Z,{onClick:function(){l.current=!l.current,p(f+1)},children:(0,h.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,h.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},children:[(0,h.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,h.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,h.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,h.jsx)("div",{style:{height:"calc(100% - 50px)"},className:H,ref:r})]}),(0,h.jsxs)("div",{style:{flex:1,position:"relative"},children:[(0,h.jsx)(D.FI,{initDiagram:function(){var e=O.GraphObject.make,t="#ff3333",n="#3358ff",a="#25ad23",l="#d533ff",s="#7d33ff",c="#ff6233",d="#ffffff",u="#000000",f="#fffcd5",p="#d5ebff",h="#f2dfe0",g="#a5d2fa",m="#cccccc",w="#b3e6b3",v="#fcbbbd";function b(t,n){var i=function(e,n){e.handled=!0,e.diagram.model.commit((function(i){var o=n.part.adornedPart,r=(new O.Point).setRectSpot(o.actualBounds,t);r.subtract(o.location),r.scale(2,2),r.x+=130*Math.sign(r.x),r.y+=130*Math.sign(r.y),r.add(o.location),r.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var a=i.copyNodeData(o.data);i.setGroupKeyForNodeData(a,i.getGroupKeyForNodeData(o.data)),i.addNodeData(a);var 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(O.Shape,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(O.Spot.Top)||t.equals(O.Spot.Bottom)?25:18,height:t.equals(O.Spot.Top)||t.equals(O.Spot.Bottom)?18:25,fill:"orange",stroke:d,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:i,contextClick:i})}function y(t){return e(O.Shape,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function A(e,t){return function(n,i){n.handled=!0,n.diagram.model.commit((function(n){n.set(i.part.adornedPart.data,e,t)}))}}function x(t,n){return n||(n="color"),e(O.Shape,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:A(n,t),contextClick:A(n,t)})}function k(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",x(d,"fill"),x(f,"fill"),x(p,"fill"),x(h,"fill"))),e("ContextMenuButton",e(O.Panel,"Horizontal",x(m,"fill"),x(w,"fill"),x(g,"fill"),x(v,"fill")))]}function C(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",x(u),x(a),x(n),x(t))),e("ContextMenuButton",e(O.Panel,"Horizontal",x(d),x(l),x(s),x(c)))]}function S(t,n){return n||(n="thickness"),e(O.Shape,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:A(n,t),contextClick:A(n,t)})}function B(t,n){return n||(n="dash"),e(O.Shape,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:A(n,t),contextClick:A(n,t)})}function j(){return[e("ContextMenuButton",e(O.Panel,"Horizontal",S(1),S(2),S(3),S(4))),e("ContextMenuButton",e(O.Panel,"Horizontal",B(null),B([2,4]),B([4,4])))]}function T(t,n){return n||(n="figure"),e(O.Shape,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:A(n,t),contextClick:A(n,t)})}function P(t){return e(O.Shape,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function L(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(O.Shape,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:A("dir",t),contextClick:A("dir",t)})}function N(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var i=n.part.adornedPart;e.set(i.data,t?"toSpot":"fromSpot",O.Spot.stringify(O.Spot.AllSides)),(t?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(O.Shape,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function _(t,n){var i=0,o=O.Spot.RightSide;t.equals(O.Spot.Top)?(i=270,o=O.Spot.TopSide):t.equals(O.Spot.Left)?(i=180,o=O.Spot.LeftSide):t.equals(O.Spot.Bottom)&&(i=90,o=O.Spot.BottomSide),n||(i-=180);var r=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var i=t.part.adornedPart;e.set(i.data,n?"toSpot":"fromSpot",O.Spot.stringify(o)),(n?i.toNode:i.fromNode).invalidateConnectedLinks()}))};return e(O.Shape,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:i,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:r,contextClick:r})}return i.current=new O.Diagram(o.current,{padding:20,grid:e(O.Panel,"Grid",e(O.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(O.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(R),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject;setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),i.current.nodeTemplate=e(O.Node,"Auto",{locationSpot:O.Spot.Center,locationObjectName:"SHAPE",desiredSize:new O.Size(120,60),minSize:new O.Size(40,40),resizable:!0,resizeCellSize:new O.Size(10,10),rotatable:!0},new O.Binding("location","loc",O.Point.parse).makeTwoWay(O.Point.stringify),new O.Binding("desiredSize","size",O.Size.parse).makeTwoWay(O.Size.stringify),e(O.Shape,{name:"SHAPE",fill:d,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:O.Spot.AllSides,toSpot:O.Spot.AllSides},new O.Binding("figure"),new O.Binding("fill"),new O.Binding("stroke","borderColor"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Shape,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(O.TextBlock,{margin:1,textAlign:"center",overflow:O.TextBlock.OverflowEllipsis,editable:!0},new O.Binding("text").makeTwoWay(),new O.Binding("stroke","color"))),i.current.nodeTemplate.toolTip=e("ToolTip",e(O.Panel,"Vertical",{maxSize:new O.Size(200,NaN)},e(O.TextBlock,{font:"bold 10pt sans-serif",textAlign:"center"},new O.Binding("text")),e(O.TextBlock,{font:"10pt sans-serif",textAlign:"center"},new O.Binding("text","details")))),i.current.nodeTemplate.selectionAdornmentTemplate=e(O.Adornment,"Spot",e(O.Placeholder,{padding:10}),b(O.Spot.Top,"TriangleUp"),b(O.Spot.Left,"TriangleLeft"),b(O.Spot.Right,"TriangleRight"),b(O.Spot.Bottom,"TriangleDown"),y({alignment:new O.Spot(.75,0)})),i.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(O.Panel,"Horizontal",T("Rectangle"),T("RoundedRectangle"),T("Ellipse"),T("Diamond"))),e("ContextMenuButton",e(O.Panel,"Horizontal",T("Parallelogram2"),T("ManualOperation"),T("Procedure"),T("Cylinder1"))),e("ContextMenuButton",e(O.Panel,"Horizontal",T("Terminator"),T("CreateRequest"),T("Document"),T("TriangleDown"))),k(),C(),j()),i.current.groupTemplate=e(O.Group,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:O.Spot.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new O.Binding("location","loc",O.Point.parse).makeTwoWay(O.Point.stringify),e(O.Panel,"Auto",{name:"BODY"},e(O.Shape,{parameter1:10,fill:d,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:O.Spot.AllSides,toSpot:O.Spot.AllSides},new O.Binding("fill"),new O.Binding("stroke","color"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Placeholder,{background:"transparent",margin:20})),e(O.TextBlock,{alignment:O.Spot.Top,alignmentFocus:O.Spot.Bottom,font:"bold 12pt sans-serif",editable:!0},new O.Binding("text"),new O.Binding("stroke","color"))),i.current.groupTemplate.selectionAdornmentTemplate=e(O.Adornment,"Spot",e(O.Panel,"Auto",e(O.Shape,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(O.Placeholder,{margin:1.5})),y({alignment:O.Spot.TopRight,alignmentFocus:O.Spot.BottomRight})),i.current.groupTemplate.contextMenu=e("ContextMenu",k(),C(),j()),i.current.linkTemplate=e(O.Link,{layerName:"Foreground",routing:O.Link.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new O.Binding("fromSpot","fromSpot",O.Spot.parse),new O.Binding("toSpot","toSpot",O.Spot.parse),new O.Binding("fromShortLength","dir",(function(e){return e>=1?10:0})),new O.Binding("toShortLength","dir",(function(e){return e>=1?10:0})),new O.Binding("points").makeTwoWay(),e(O.Shape,{strokeWidth:2},new O.Binding("stroke","color"),new O.Binding("strokeWidth","thickness"),new O.Binding("strokeDashArray","dash")),e(O.Shape,{segmentIndex:0,segmentOffset:new O.Point(15,0),segmentOrientation:O.Link.OrientAlong,alignmentFocus:O.Spot.Right,figure:"circle",width:10,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return 1===e}))),e(O.Shape,{segmentIndex:-1,segmentOffset:new O.Point(-10,6),segmentOrientation:O.Link.OrientPlus90,alignmentFocus:O.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return e>=1})),new O.Binding("width","thickness",(function(e){return 7+3*e})),new O.Binding("height","thickness",(function(e){return 7+3*e})),new O.Binding("segmentOffset","thickness",(function(e){return new O.Point(-15,4+1.5*e)}))),e(O.Shape,{segmentIndex:0,segmentOffset:new O.Point(15,-6),segmentOrientation:O.Link.OrientMinus90,alignmentFocus:O.Spot.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new O.Binding("fill","color"),new O.Binding("visible","dir",(function(e){return 2===e})),new O.Binding("width","thickness",(function(e){return 7+3*e})),new O.Binding("height","thickness",(function(e){return 7+3*e})),new O.Binding("segmentOffset","thickness",(function(e){return new O.Point(-15,4+1.5*e)}))),e(O.TextBlock,{alignmentFocus:new O.Spot(0,1,-4,0),editable:!0},new O.Binding("text").makeTwoWay(),new O.Binding("stroke","color"))),i.current.linkTemplate.selectionAdornmentTemplate=e(O.Adornment,e(O.Shape,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:P(2)},new O.Binding("pathPattern","thickness",P)),y({alignmentFocus:new O.Spot(0,0,-6,-4)})),i.current.linkTemplate.contextMenu=e("ContextMenu",C(),j(),e("ContextMenuButton",e(O.Panel,"Horizontal",L(0),L(1),L(2))),e("ContextMenuButton",e(O.Panel,"Horizontal",e(O.Panel,"Spot",N(!1),_(O.Spot.Top,!1),_(O.Spot.Left,!1),_(O.Spot.Right,!1),_(O.Spot.Bottom,!1)),e(O.Panel,"Spot",{margin:new O.Margin(0,0,0,2)},N(!0),_(O.Spot.Top,!0),_(O.Spot.Left,!0),_(O.Spot.Right,!0),_(O.Spot.Bottom,!0))))),new O.Palette(r.current,{maxSelectionCount:1,linkTemplate:e(O.Link,{locationSpot:O.Spot.Center,selectionAdornmentTemplate:e(O.Adornment,"Link",{locationSpot:O.Spot.Center},e(O.Shape,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(O.Shape,{toArrow:"Standard",stroke:null}))},{routing:O.Link.AvoidsNodes,curve:O.Link.JumpOver,corner:5,toShortLength:4},new O.Binding("points"),e(O.Shape,{isPanelMain:!0,strokeWidth:2}),e(O.Shape,{toArrow:"Standard",stroke:null})),model:new O.GraphLinksModel([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(Z()(O.Shape.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))}).nodeTemplate=e(O.Node,"Auto",{locationSpot:O.Spot.Center},new O.Binding("location","location",O.Point.parse).makeTwoWay(O.Point.stringify),e(O.Shape,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new O.Binding("stroke").makeTwoWay(),new O.Binding("fill").makeTwoWay(),new O.Binding("figure")),e(O.TextBlock,{margin:new O.Margin(5,5,3,5),font:"10pt sans-serif",minSize:new O.Size(16,16),maxSize:new O.Size(10,NaN),textAlign:"center",editable:!0},new O.Binding("key").makeTwoWay())),setTimeout((function(){i.current.grid=e(O.Panel,"Grid",e(O.Shape,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(O.Shape,"LineV",{stroke:"lightgray",strokeWidth:.5})),i.current.grid.visible=!0,i.current.grid.gridCellStroke="darkgray",i.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=i.current,i.current},divClassName:"diagram-component",style:{height:"80vh"}}),(0,h.jsx)("div",{ref:o})]})]}),(0,h.jsx)("div",{className:"tr",children:(0,h.jsx)(C.ZP,{size:"large",onClick:g,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},X=n(5112),K=n(94001),U=X.ZP.Group,Y={margin:"0 8px"},J=function(e){var t=e.callback,n=e.onCancel;return(0,h.jsxs)(x.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:Y,children:"单元格数:"}),(0,h.jsx)("span",{style:Y,children:"行数"}),(0,h.jsx)(x.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,h.jsx)(K.Z,{})}),(0,h.jsx)("span",{style:Y,children:"列数"}),(0,h.jsx)(x.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,h.jsx)(K.Z,{})})]}),(0,h.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,h.jsx)("span",{style:Y,children:"对齐方式:"}),(0,h.jsx)(x.Z.Item,{name:"align",children:(0,h.jsxs)(U,{children:[(0,h.jsx)(X.ZP,{value:"default",children:(0,h.jsx)("i",{className:"fa fa-align-justify"})}),(0,h.jsx)(X.ZP,{value:"left",children:(0,h.jsx)("i",{className:"fa fa-align-left"})}),(0,h.jsx)(X.ZP,{value:"center",children:(0,h.jsx)("i",{className:"fa fa-align-center"})}),(0,h.jsx)(X.ZP,{value:"right",children:(0,h.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,h.jsxs)("div",{className:"flex-container flex-end",children:[(0,h.jsx)(C.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,h.jsx)(C.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(8433),te=n.n(ee),ne=(0,c.forwardRef)((function(e,t){var n=e.use3d,i=e.width,o=e.height,r=e.callback,l=(e.showSaveButton,(0,c.useRef)()),s=(0,c.useRef)(),d=(0,c.useState)(!1),u=a()(d,2),f=u[0],p=u[1],g=(0,c.useRef)({id:l,appName:"graphing",width:i||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,c.useEffect)((function(){s.current=new(te())(g.current,!0),window.onload=function(){s.current.inject("applet_container")}}),[]);var m=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return r&&r(e),e};return(0,c.useEffect)((function(){g.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:m}})),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:l}),(0,h.jsxs)(P.Z,{align:"middle",children:[(0,h.jsx)(W.Z,{flex:1,children:(0,h.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:f,onChange:function(e){return p(e)}})}),(0,h.jsx)(W.Z,{children:(0,h.jsx)(C.ZP,{size:"large",onClick:m,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ie=n(81107),oe=n(97730),re=n(8591),ae="link",le="upload-image",se="add-flowchart",ce="draw-image",de="code-block",ue="add-table",fe="------------",pe={default:fe,left:":".concat(fe),center:":".concat(fe,":"),right:"".concat(fe,":")},he=n(36944);var ge="@▁▁@",me=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function we(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var ve=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",be=s()(s()({},ve+"-B","bold"),ve+"-I","italic"),ye=s()(s()(s()(s()(s()(s()(s()(s()({},ae,"添加链接"),de,"添加代码块"),le,"添加图片"),ce,"添加画图"),se,"插入流程图"),ue,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),Ae=function(e){var t=e.defaultValue,n=void 0===t?"":t,i=e.onChange,r=e.width,l=void 0===r?"100%":r,d=e.height,m=void 0===d?400:d,w=e.miniToolbar,v=void 0!==w&&w,b=e.isFocus,x=void 0!==b&&b,k=e.watch,C=e.insertTemp,S=e.mode,P=void 0===S?"markdown":S,L=e.id,_=void 0===L?"markdown-editor-id":L,E=e.showResizeBar,M=void 0!==E&&E,I=e.noStorage,G=void 0!==I&&I,Z=e.showNullButton,O=void 0!==Z&&Z,F=e.showNullProgramButton,R=void 0!==F&&F,D=e.hidetoolBar,W=void 0!==D&&D,V=e.fullScreen,H=void 0!==V&&V,q=e.onBlur,X=e.onCMBeforeChange,K=e.onFullScreen,U=e.className,Y=void 0===U?"":U,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,fe=void 0!==te&&te,ve=e.disabledFill,Ae=void 0!==ve&&ve,xe=e.placeholder,ke=void 0===xe?"":xe,Ce=e.values,Se=void 0===Ce?"":Ce,Be=e.extraUse,je=(0,c.useState)(null),Te=a()(je,2),Pe=Te[0],Le=Te[1],Ne=(0,c.useState)(n),_e=a()(Ne,2),Ee=_e[0],Me=_e[1],Ie=(0,c.useState)(k),Ge=a()(Ie,2),Ze=Ge[0],Oe=Ge[1],Fe=(0,c.useState)(H),Re=a()(Fe,2),De=Re[0],ze=Re[1],We=(0,c.useState)(""),Ve=a()(We,2),He=Ve[0],qe=Ve[1],Qe=(0,c.useState)(0),Xe=a()(Qe,2),Ke=Xe[0],Ue=Xe[1],Ye=(0,c.useState)(m),Je=a()(Ye,2),$e=Je[0],et=Je[1],tt=(0,c.useState)(!1),nt=a()(tt,2),it=(nt[0],nt[1]),ot=(0,c.useState)(0),rt=a()(ot,2),at=rt[0],lt=rt[1],st=(0,c.useState)(0),ct=a()(st,2),dt=ct[0],ut=ct[1],ft=(0,c.useRef)(),pt=(0,c.useRef)(),ht=(0,c.useRef)(),gt=(0,c.useRef)();(0,c.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Me(Se),null==Pe||Pe.setValue(Se),window.scrollTo(0,e)}),[Se]),(0,c.useEffect)((function(){null==K||K(De)}),[De]),(0,c.useEffect)((function(){if(ft.current){var e=function(e,n){if(!ee){var i=n.clipboardData;if(i){var o=i.types.toString(),r=i.items;if("Files"===o||i.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==P)return;try{var a,l=r[1];"file"===(null===(a=r[0])||void 0===a?void 0:a.kind)&&(l=r[0]);var s=l.getAsFile(),c=s.name.split(".").pop();(0,T.I)(s,(function(e){var n,i,o;e.id?(null==s||null===(n=s.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection(".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(oe.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(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(s.type,'&disposition=inline" target="_blank">').concat(s.name,"</a>")):me.includes(c)?t.replaceSelection('<a href="'.concat(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(s.name,"</a>")):t.replaceSelection("[".concat(s.name,"](").concat(oe.Z.API_SERVER,"/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){re.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=u().fromTextArea(ft.current,{mode:P,lineNumbers:!v,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",ke):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),i=n.getCursor(),o=n.getLine(i.line),r=o.charAt(i.ch-1),a=o.lastIndexOf("@▁@",i.ch),l=o.lastIndexOf("@▁▁@",i.ch),s=a>l?a:l,c=a>l?3:4;if(-1===ge.indexOf(r))return null;if(console.log("change1:",t,e,o,i,s,a,l,r),s>=0&&i.ch-s<5){var d=s+c;return n.replaceRange("",{line:i.line,ch:s},{line:i.line,ch:d}),{line:i.line,ch:d}}return null}(e);n&&t.preventDefault()}})),x&&t.focus(),t.on("paste",e),fe&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Le(t),function(){t.off("paste",e)}}}),[]);var mt=(0,c.useCallback)((function(){pt.current}),[$e,pt,De]);(0,c.useEffect)((function(){if(Pe){var e=function(){var e=new f.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;(i.target.offsetHeight>0||i.target.offsetWidth>0)&&(mt(),Pe.setSize("100%","100%"),Pe.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(ft.current.parentElement),e}();return function(){var t,n;null!==(t=ft.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=ft.current)||void 0===n?void 0:n.parentElement)}}}),[Pe,mt]),(0,c.useEffect)((function(){if(Pe){for(var e=[],t=function(){var t=a()(i[n],2),o=t[0],r=t[1],l=s()({},o,(function(){wt(r)}));e.push(l),Pe.addKeyMap(l)},n=0,i=Object.entries(be);n<i.length;n++)t();return function(){for(var t=0,n=e;t<n.length;t++){var i=n[t];Pe.removeKeyMap(i)}}}}),[Pe]),(0,c.useEffect)((function(){H!==De&&ze(H)}),[H]),(0,he.Z)((function(){if(!G&&Ke>0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(_);e>=Ke+1e4&&(!t||t!==Ee)&&(window.sessionStorage.setItem(_,Ee),it(!0))}}),1e4),(0,c.useEffect)((function(){Oe(k)}),[Pe,k]),(0,c.useEffect)((function(){Pe&&x&&Pe.focus()}),[Pe,x]),(0,c.useEffect)((function(){if(Ze&&Pe){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=Pe.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Pe,Ze]),(0,c.useEffect)((function(){if(Pe&&X){var e=function(e,t){X(e,t)};return Pe.on("beforeChange",e),function(){Pe.off("beforeChange",e)}}}),[Pe,X]),(0,c.useEffect)((function(){if(Pe&&q){var e=function(){q(Pe.getValue())};return Pe.on("blur",e),function(){Pe.off("blur",e)}}}),[Pe,q]),(0,c.useEffect)((function(){if(Pe){var e=function(e,t){var n=e.getValue();Me(n),Ue((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),i&&(R?i(n,xt(n)):i(n))};return Pe.on("change",e),function(){Pe.off("change",e)}}}),[Pe,i]),(0,c.useEffect)((function(){if(Pe)if(null==n)Pe.setValue(""),Me("");else{var e=window.scrollY||window.pageYOffset;n!==Pe.getValue()&&(Pe.setValue(n),Me(n),Pe.setCursor(fe?1:Pe.lineCount(),0),window.scrollTo(0,e))}}),[Pe,n]);var wt=(0,c.useCallback)((function(e){var t=Pe.getCursor(),n=Pe.getSelection(),i=n.split("\n");switch(e){case"bold":return Pe.replaceSelection("**"+n+"**"),""===n&&Pe.setCursor(t.line,t.ch+2),Pe.focus();case"italic":return Pe.replaceSelection("*"+n+"*"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"code":return Pe.replaceSelection("`"+n+"`"),""===n&&Pe.setCursor(t.line,t.ch+1),Pe.focus();case"inline-latex":return qe("inline-latex"),Pe.focus();case"latex":return Pe.replaceSelection("```latex\n"+n+"\n```"),Pe.setCursor(t.line+1,n.length+1),Pe.focus();case"line-break":return Pe.replaceSelection("<br/>\n"),Pe.focus();case"list-ul":return""===n?Pe.replaceSelection("- "+n):Pe.replaceSelection(i.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Pe.focus();case"list-ol":return""===n?Pe.replaceSelection("1. "+n):Pe.replaceSelection(i.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Pe.focus();case"add-null-ch":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("▁"),Pe.focus();case"add-signal":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("@▁@"),Pe.focus();case"add-multiple":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection(ge),Pe.focus();case"inster-template-1":return""===n&&Pe.setCursor(t.line,t.ch),Pe.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Pe.focus();case"eraser":return Pe.setValue(""),Pe.focus();case"trigger-watch":return Oe(!Ze),Pe.focus();case"trigger-full-screen":return ze(!De),Pe.focus();case ae:return void qe(ae);case de:return void qe(de);case le:return void qe(le);case ce:return void qe(ce);case"maths-latex":return void qe("maths-latex");case se:return void qe(se);case ue:return void qe(ue);default:throw new Error}}),[Pe,Ze,De]),vt=(0,c.useCallback)((function(e,t){var n,i,o,r,a;switch(qe(""),He){case ae:var l=e.title,s=e.link;return Pe.replaceSelection("[".concat(l,"](").concat(s,")")),Pe.focus();case de:var c=e.language,d=e.content;return Pe.replaceSelection(["```"+c,d,"```"].join("\n")),Pe.focus();case"maths-latex":for(var u=atob(e),f=new Uint8Array(u.length),p=0;p<u.length;p++)f[p]=u.charCodeAt(p);var h=new Blob([f],{type:"image/png"});(0,T.I)(h,(function(e){e.id?Pe.replaceSelection(".concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":Pe.replaceSelection("`$$"+e+"$$`");break;case le:case ce:case"add-flowchart":var g=e.src,m=e.alt,w=t,v=null==w||null===(n=w.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==w||null===(o=w.type)||void 0===o?void 0:o.indexOf("image"))>-1||null==w||!w.type?m?Pe.replaceSelection(".concat(g,' "').concat(m,'" )')):Pe.replaceSelection("")):(null==w||null===(r=w.type)||void 0===r?void 0:r.indexOf("video"))>-1?Pe.replaceSelection('<video width="100%" controls src="'.concat(oe.Z.API_SERVER).concat(g,'"></video>')):(null==w||null===(a=w.type)||void 0===a?void 0:a.indexOf("pdf"))>-1?Pe.replaceSelection('<a href="'.concat(oe.Z.API_SERVER).concat(g,"?type=").concat(w.type,'&disposition=inline" target="_blank">').concat(w.name,"</a>")):me.includes(v)?Pe.replaceSelection('<a href="'.concat(oe.Z.API_SERVER).concat(g,'?type=office&disposition=inline" target="_blank">').concat(w.name,"</a>")):Pe.replaceSelection("[".concat(w.name,"](").concat(oe.Z.API_SERVER).concat(g,")")),Pe.focus();case ue:for(var b=e.row,y=e.col,A=e.align,x="\n",k=0;k<b;k++){for(var C=[],S=[],B=0;B<y;B++)1===k&&S.push(pe[A]),C.push(" ");1===k&&(x+="| ".concat(S.join(" | ")," |\n")),x+="| ".concat(C.join(1===y?"":" | ")," |\n")}return Pe.replaceSelection(x+"\n"),Pe.focus();default:throw new Error}}),[Pe,He]),bt=(0,c.useMemo)((function(){switch(He){case ae:return(0,h.jsx)(B,{callback:vt,onCancel:yt});case de:return(0,h.jsx)(j.Z,{callback:vt,onCancel:yt});case le:return(0,h.jsx)(T.Z,{callback:vt,onCancel:yt});case se:return(0,h.jsx)(Q,{callback:vt,onCancel:yt});case ue:return(0,h.jsx)(J,{callback:vt,onCancel:yt});case"maths-latex":return(0,h.jsx)(ne,{showSaveButton:!0,callback:vt});case"inline-latex":return(0,h.jsx)(ie.Z,{showSaveButton:!0,callback:vt});default:return null}}),[He]);function yt(){qe("")}(0,c.useEffect)((function(){if(ht.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),et(m+t+"px")}},i=ht.current,o=!1,r=0;return i.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){i.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Pe,ht]),(0,c.useEffect)((function(){et(m)}),[m]);var At={width:we(l),height:we($e)},xt=((0,c.useMemo)((function(){if(Ke){var e=new Date(Ke),t=e.getHours(),n=e.getMinutes(),i=e.getSeconds();return n=n<10?"0"+n:n,i=i<10?"0"+i:i,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(i)}return 0}),[Ke]),function(e){var t=[];if(R){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,i){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,c.useEffect)((function(){ye[He]&&He!==ce&&He!==se&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;lt(t),ut(n)}),0)}),[He]);var kt=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:pt,children:(0,h.jsxs)("div",{className:"markdown-editor-container ".concat(Y," ").concat(Ze?"on-preview":""," ").concat(v?"mini":""," ").concat(De?"full-screen":""),style:At,children:[(0,h.jsx)(y,{insertTemp:C,watch:Ze,fullScreen:De,showNullButton:O,showNullProgramButton:R,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:ft,placeholder:ke})}),Ze?(0,h.jsxs)("div",{ref:gt,className:"preview-container",children:["stex"===P&&(0,h.jsx)(g,{value:Ee}),"stex"!==P&&(0,h.jsx)(p.Z,{disabledFill:Ae,showProgramFill:R,value:Ee})]}):null]})]})}),M?(0,h.jsx)("a",{ref:ht,className:"editor-resize"}):null,He===ce&&(0,h.jsx)(N,{callback:vt,onCancel:yt}),He===se&&(0,h.jsx)(Q,{callback:vt,onCancel:yt}),(0,h.jsx)(A.Z,{children:ye[He]&&He!==ce&&He!==se?(0,h.jsx)(z.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:at,top:dt},title:(0,h.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var t=e.clientX-at,n=e.clientY-dt;document.body.onmousemove=function(e){var i=e.clientX-t,o=e.clientY-n,r=document.getElementsByClassName("markdown-popup-form")[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)),kt(e.clientX,e.clientY,t,n)&&(lt(i),ut(o))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:ye[He]}),open:!0,onCancel:yt,footer:null,destroyOnClose:!0,width:He===se?"1200px":null,height:He===se?"80vh":null,className:"markdown-popup-form",children:bt}):null})]})}},8531:function(e,t,n){"use strict";n.d(t,{Z:function(){return w},I:function(){return b}});var i=n(82242),o=n.n(i),r=n(79800),a=n.n(r),l=n(78241),s=n(8591),c=n(92832),d=n(3113),u=n(88548),f=n(59301),p=n(37712),h=l.Z.useForm,g={width:280,marginRight:10},m={labelCol:{span:5},wrapperCol:{span:19}},w=function(e){var t=e.callback,n=e.onCancel,i=h(),r=a()(i,1)[0],u=(0,f.useRef)();function w(e,t){-1!==e.status?r.setFieldsValue({src:"/api/attachments/".concat(e.id),type:t.type}):s.ZP.error(e.message)}return(0,p.jsxs)(l.Z,o()(o()({form:r},m),{},{className:"upload-image-panel",onFinish:function(e){t(e,u.current)},style:{width:470,overflow:"hidden"},children:[(0,p.jsx)(l.Z.Item,{label:"图片地址",required:!0,children:(0,p.jsxs)("div",{className:"flex-container",children:[(0,p.jsx)(l.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,p.jsx)(c.Z,{style:g})}),(0,p.jsx)(v,{onFileChange:function(e){var t=e.target.files[0];u.current=t,b(t,w)}})]})}),(0,p.jsx)(l.Z.Item,{label:"图片描述",name:"alt",children:(0,p.jsx)(c.Z,{style:{width:264}})}),(0,p.jsxs)(l.Z.Item,{style:{textAlign:"right"},children:[(0,p.jsx)(d.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,p.jsx)(d.ZP,{type:"default",onClick:n,children:"取消"})]})]}))};function v(e){var t=e.onFileChange;return(0,p.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,p.jsx)("input",{type:"file",onChange:t})]})}function b(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(u.KI,"/api/attachments.json")),i.send(n)}},11418: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),d=n.n(c),u=n(59301),f=n(4676),p=function(e){s()(n,e);var t=d()(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}(u.Component)},36944: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])}},47068:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return R}});var i=n(82242),o=n.n(i),r=n(7557),a=n.n(r),l=n(41498),s=n.n(l),c=n(79800),d=n.n(c),u=n(39647),f=n.n(u),p=n(59301),h=n(3858),g=n(23634),m=n(78241),w=n(8591),v=n(95237),b=n(43604),y=n(20834),A=n(96865),x=n(3113),k=n(43418),C=n(92832),S=n(52025),B=n(60437),j=n(96030),T=n(97730),P={flex_box_center:"flex_box_center___W5itf",flex_space_between:"flex_space_between___gui6v",flex_box_vertical_center:"flex_box_vertical_center___pD9t3",flex_box_center_end:"flex_box_center_end___ocOJP",flex_box_column:"flex_box_column___KhV4h",content:"content____xM73",title:"title___Q0EMb",menu:"menu___dbMGX",contcats:"contcats___uNFhe",cooperatives:"cooperatives___EVJ5n",imgWrp:"imgWrp___wcdFr",btns:"btns___gQP5Z",confirm:"confirm___Igsxy",cancel:"cancel___EPAJA"},L=n(5112),N=n(10743),_="wrap___AsKly",E="link___CnaN3",M=n(23756),I=n(37712),G=["user","globalSetting","loading","dispatch"],Z=C.Z.TextArea,O=(0,h.connect)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t=e.user,n=(e.globalSetting,e.loading,e.dispatch),i=(f()(e,G),m.Z.useForm()),r=d()(i,1)[0];(0,p.useEffect)((function(){var e;(0,M.W)(null===(e=t.userInfo)||void 0===e?void 0:e.login)||(0,N.o1)(n)}),[t.userInfo.login]);var l=function(){var e=s()(a()().mark((function e(n){var i,r;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.ZP)("/api/helps/feedback.json",{method:"post",body:o()({},n)});case 2:0===(null==(i=e.sent)?void 0:i.status)&&h.history.push("/messages/".concat(null===(r=t.userInfo)||void 0===r?void 0:r.login,"/message_detail?target_ids=1"));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,I.jsxs)("section",{className:"".concat(_," bg-white pl30 pr30 pt30"),children:[(0,I.jsxs)("div",{className:"c-grey-999 line26",children:["想对我们的平台提供功能建议?",(0,I.jsx)("br",{}),"发现网页中的问题或bug想告诉我们?",(0,I.jsx)("br",{}),"期望与我们展开合作?",(0,I.jsx)("br",{}),"在这里把你想说的一切告诉我们吧?"]}),(0,I.jsxs)("div",{className:"c-red-ee4 mt20 mb20",children:["* ",(0,I.jsx)(h.Link,{to:"/help/help_center",className:"".concat(E," c-red-ee4"),children:"看看帮助中心是否有你想要的答案"})]}),(0,I.jsxs)(m.Z,{layout:"vertical",form:r,onFinish:l,initialValues:{question_kind:"登录注册"},children:[(0,I.jsx)(m.Z.Item,{label:"问题分类:",name:"question_kind",rules:[{required:!0,message:"不能为空"}],children:(0,I.jsxs)(L.ZP.Group,{children:[(0,I.jsx)(L.ZP,{value:"登录注册",children:"登录注册"}),(0,I.jsx)(L.ZP,{value:"信息认证",children:"信息认证"}),(0,I.jsx)(L.ZP,{value:"实训编程",children:"实训编程"}),(0,I.jsx)(L.ZP,{value:"实训课程",children:"实训课程"}),(0,I.jsx)(L.ZP,{value:"课堂",children:"课堂"}),(0,I.jsx)(L.ZP,{value:"其它",children:"其它"})]})}),(0,I.jsx)(m.Z.Item,{label:"问题页面网址:",name:"url",rules:[{required:!0,message:"不能为空"}],children:(0,I.jsx)(C.Z,{placeholder:"反馈平台问题,请同时填写对应的问题页面链接,以便平台能够及时跟踪解决,谢谢"})}),(0,I.jsx)(m.Z.Item,{label:"问题描述:",name:"description",rules:[{required:!0,message:"不能为空"}],children:(0,I.jsx)(Z,{rows:4,placeholder:"反馈平台问题,请同时填写对应的问题页面链接,以便平台能够及时跟踪解决,谢谢"})}),(0,I.jsx)(m.Z.Item,{children:(0,I.jsx)(x.ZP,{type:"primary",htmlType:"submit",children:"提交"})})]})]})})),F=["user","globalSetting","loading","dispatch"],R=(0,h.connect)((function(e){var t=e.user,n=e.loading;return{user:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t,n,i,r,l,c,u,L=e.user,N=e.globalSetting,_=(e.loading,e.dispatch,f()(e,F),(0,p.useState)({content:"",message:"",status:0,contacts:[],address:"",data:[]})),E=d()(_,2),G=E[0],Z=E[1],R=(0,p.useState)(!0),D=d()(R,2),z=D[0],W=D[1],V=m.Z.useForm(),H=d()(V,1)[0],q=(0,h.useParams)(),Q=(0,h.useLocation)(),X=(0,p.useState)(null),K=d()(X,2),U=K[0],Y=K[1],J=(0,p.useState)(0),$=d()(J,2),ee=$[0],te=$[1],ne=(0,p.useState)(!1),ie=d()(ne,2),oe=ie[0],re=ie[1],ae=(0,p.useState)(!1),le=d()(ae,2),se=le[0],ce=le[1],de=(0,p.useState)(null==U?void 0:U.content),ue=d()(de,2),fe=ue[0],pe=ue[1],he=[{name:"关于我们",key:"about_us",id:"about",editable:!0},{name:"加入我们",key:"join_us",id:"join_us",editable:!0},{name:"联系我们",key:"contact_us",id:"contact"},{name:"合作伙伴",key:"cooperatives",id:"cooperatives"},{name:"服务协议",key:"agreement",id:"agreement",editable:!0},{name:"帮助中心",key:"help_center",id:"help_center",editable:!0},{name:"意见反馈",key:"feedback",id:"feedback"}].filter((function(e){var t;return null==N||null===(t=N.setting)||void 0===t||!t.is_local||"关于我们"!==e.name})),ge=function(){var e=s()(a()().mark((function e(){var t,n;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(-1!==Q.pathname.indexOf("/feedback")){e.next=6;break}return e.t0=Z,e.next=4,(0,g.ZP)("/api/helps/".concat(null===(t=he.filter((function(e){return e.key===q.id})))||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id,".json"),{method:"get"});case 4:e.t1=e.sent,(0,e.t0)(e.t1);case 6:W(!1),(0,M.Dk)(null===(n=he.filter((function(e){return e.key===q.id})))||void 0===n||null===(n=n[0])||void 0===n?void 0:n.name);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function me(){return(me=s()(a()().mark((function e(){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.ZP)("/api/helps/update_content.json",{method:"put",body:{type:q.id,content:fe}});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(w.ZP.info("提交成功"),re(!1),W(!0),ge());case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,p.useEffect)((function(){W(!0),ge()}),[q.id]),(0,I.jsxs)("section",{children:[(0,I.jsx)("aside",{className:"edu-container mt30",children:(0,I.jsxs)(v.Z,{gutter:[20,20],children:[(0,I.jsx)(b.Z,{children:(0,I.jsx)(y.Z,{className:P.menu,style:{width:174},defaultSelectedKeys:[null===(t=he.filter((function(e){return e.key===q.id})))||void 0===t?void 0:t[0].key],mode:"inline",children:he.map((function(e,t){return(0,I.jsx)(y.Z.Item,{children:(0,I.jsx)(h.Link,{to:"/help/".concat(e.key),onClick:function(){re(!1),Y(null)},children:e.name})},e.key)}))})}),(0,I.jsxs)(b.Z,{flex:"1",children:[(0,I.jsxs)("h1",{className:P.title,children:[null===(n=he.filter((function(e){return e.key===q.id})))||void 0===n?void 0:n[0].name,(null===(i=he.filter((function(e){return e.key===q.id})))||void 0===i?void 0:i[0].editable)&&1===(null==L||null===(r=L.userInfo)||void 0===r?void 0:r.role)&&(0,I.jsxs)("a",{style:{float:"right",color:"#165DFF"},onClick:s()(a()().mark((function e(){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return re(!0),e.next=3,(0,g.ZP)("/api/helps/edit_content.json",{params:{type:q.id}});case 3:0===(null==(t=e.sent)?void 0:t.status)&&(Y(t),console.log(t));case 5:case"end":return e.stop()}}),e)}))),children:[(0,I.jsx)("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF"}})," 编辑"]})]}),(0,I.jsx)("div",{className:"minH500",children:"feedback"===q.id?(0,I.jsx)(O,{}):(0,I.jsx)(A.Z,{loading:z,children:(0,I.jsxs)("div",{className:[P.content,"bg-white pl30 pr30 pt30"].join(" "),children:[oe?(0,I.jsxs)("div",{children:[(0,I.jsx)(S.Z,{defaultValue:null==U?void 0:U.content,onChange:function(e){return pe(e)}}),(0,I.jsxs)("div",{className:P.btns,children:[(0,I.jsx)(x.ZP,{className:P.cancel,onClick:function(){return re(!1)},children:"取消"}),(0,I.jsx)(B.Z,{className:P.confirm,type:"primary",onClick:function(){return me.apply(this,arguments)},children:"保存更改"})]})]}):(0,I.jsx)("div",{children:(0,I.jsx)(j.Z,{value:G.content||""})}),null===(l=G.contacts)||void 0===l?void 0:l.map((function(e,t){var n;return(0,I.jsxs)("ul",{className:P.contcats,children:[1===(null==L||null===(n=L.userInfo)||void 0===n?void 0:n.role)&&(0,I.jsxs)("a",{style:{float:"right",color:"#165DFF"},onClick:function(){ce(!0),te(t+1),H.setFieldsValue({name:e.name,qq:e.qq,mail:e.mail})},children:[(0,I.jsx)("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF"}})," 编辑"]}),(0,I.jsx)("h1",{children:e.type}),(0,I.jsxs)("li",{children:[(0,I.jsx)("span",{children:"联系人:"}),e.name]}),(0,I.jsxs)("li",{children:[(0,I.jsx)("span",{children:"QQ:"}),e.qq]}),(0,I.jsxs)("li",{children:[(0,I.jsx)("span",{children:"Email:"}),e.mail]})]},t)})),G.address&&(0,I.jsxs)("ul",{className:P.contcats,children:[1===(null==L||null===(c=L.userInfo)||void 0===c?void 0:c.role)&&(0,I.jsxs)("a",{style:{float:"right",color:"#165DFF"},onClick:function(){ce(!0),te(4),H.setFieldsValue({address:G.address})},children:[(0,I.jsx)("i",{className:"iconfont icon-bianji10 font14",style:{color:"#165DFF"}})," 编辑"]}),(0,I.jsx)("h1",{children:"公司地址"}),(0,I.jsx)("li",{children:G.address})]}),null===(u=G.data)||void 0===u?void 0:u.map((function(e,t){var n;return(0,I.jsxs)("div",{className:P.cooperatives,children:[(0,I.jsx)("h1",{children:e.name}),(0,I.jsx)(v.Z,{gutter:[10,20],children:null===(n=e.values)||void 0===n?void 0:n.map((function(e,t){return(0,I.jsx)(b.Z,{span:6,children:(0,I.jsx)("div",{className:P.imgWrp,children:(0,I.jsx)("img",{src:T.Z.IMG_SERVER+e.img})})})}))})]})}))]})})})]})]})}),(0,I.jsx)(k.Z,{centered:!0,title:"编辑",open:se,okText:"确定",cancelText:"取消",destroyOnClose:!0,onCancel:function(){ce(!1)},onOk:s()(a()().mark((function e(){var t;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=o(),e.t1={},e.next=4,H.validateFields();case 4:return e.t2=e.sent,t=(0,e.t0)(e.t1,e.t2),e.next=8,(0,g.ZP)("/api/helps/update_contact.json",{method:"put",body:o()(o()({},t),{},{type:ee})});case 8:0===e.sent.status&&(w.ZP.success("修改成功"),ge(),ce(!1));case 10:case"end":return e.stop()}}),e)}))),children:(0,I.jsxs)(m.Z,{form:H,labelAlign:"right",labelCol:{span:4},scrollToFirstError:!0,children:[4!==ee&&(0,I.jsx)(m.Z.Item,{label:"联系人",name:"name",placeholder:"请输入联系人",children:(0,I.jsx)(C.Z,{maxLength:60,size:"large",style:{height:40,marginTop:"-4px"}})}),4!==ee&&(0,I.jsx)(m.Z.Item,{label:"QQ",name:"qq",placeholder:"请输入QQ",children:(0,I.jsx)(C.Z,{maxLength:60,size:"large",style:{height:40,marginTop:"-4px"}})}),4!==ee&&(0,I.jsx)(m.Z.Item,{label:"Email",name:"mail",placeholder:"请输入Email",children:(0,I.jsx)(C.Z,{maxLength:60,size:"large",style:{height:40,marginTop:"-4px"}})}),4===ee&&(0,I.jsx)(m.Z.Item,{label:"公司地址",name:"address",placeholder:"请输入公司地址",children:(0,I.jsx)(C.Z,{maxLength:60,size:"large",style:{height:40,marginTop:"-4px"}})})]})})]})}))},10743:function(e,t,n){"use strict";n.d(t,{rX:function(){return S},pW:function(){return B},gy:function(){return j},xY:function(){return C},O5:function(){return k},tJ:function(){return v},o1:function(){return b},Rd:function(){return x}});var i=n(7557),o=n.n(i),r=n(41498),a=n.n(r),l=n(3858),s=n(43418),c=n(28103),d=n(8591),u=n(74505),f=n(23756),p=n(680),h=n(25510),g=n.p+"static/newqrcode.a8740efb.png",m=n(32637),w=n(37712),v=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!b(e)||!y(t))},b=function(e){return!!(0,u.bg)()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},y=function(){var e,t=(0,l.getDvaApp)()._store.getState(),n=t.user;return!(null===(e=n.userInfo)||void 0===e||!e.profile_completed)||(s.Z.confirm({title:"提示",width:530,centered:!0,content:"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,f.xg)("/account/profile/edit"),A()}}),!1)},A=function(){s.Z.success({title:"提示",width:430,closable:!0,centered:!0,content:"已完善个人资料?请刷新页面",okText:"立即刷新",icon:null,onOk:function(){location.reload()}})},x=function(){s.Z.warning({title:"提示",icon:null,width:400,content:(0,w.jsxs)("div",{style:{textAlign:"center"},children:[(0,w.jsx)("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"},children:"老师您好,您的课堂试用期已结束,相关功能被限制。 如需继续使用,请尽快对接人工支持!"}),(0,w.jsx)("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:m}),(0,w.jsx)("div",{style:{color:"#666666",fontSize:14,marginTop:15},children:"添加客服人员微信,获得更多支持"})]})})},k=function(){var e;return!(null===(e=(0,l.getDvaApp)()._store.getState().user.userInfo)||void 0===e||!e.professional_certification)||(s.Z.confirm({title:"提示",centered:!0,content:(0,w.jsx)("div",{className:"tc",children:"您需要去完成您的职业认证,才能使用此功能"}),okText:"立即完善",cancelText:"稍后完善",onOk:function(){(0,f.xg)("/account/certification")}}),!1)},C=function(){return!!(0,u.V9)()||(s.Z.warning({centered:!0,width:530,title:"提示",content:(0,w.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,w.jsx)("p",{children:"扫码加头歌助教,申请操作权限"}),(0,w.jsx)("img",{src:g,width:200})]}),okText:"我知道了",maskClosable:!0}),!1)},S=function(e,t){return!!e||(s.Z.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:(0,w.jsxs)("div",{children:[(0,w.jsx)("p",{children:t||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。"}),(0,w.jsxs)("div",{style:{marginLeft:"110px"},children:[(0,w.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HO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ILAAgAwEFgCQkcewBioPvlsxAMK2u/gunHPB5OJWjJ+wbeSKs1u3YnHqRT5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIMFutYefOnRUVFVa3ctWqVStXrjT4ZtsqK+RE5Ql7K1BpvAtHmdhWI8S2QhcWDWswG1gVFRVVVVVWtCxbOBy2ehMA4H44JQQAMhBYAEAGAgsAyEBgAQAZCCwAIMOSSShM3tFsaWkp+J1HZx+RN75O23pkRWEGk5wdEWJFN0023mTdEWfH9xjvZl5whAUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIsGRYg7NIP99vRd+tKDlg2zutYLxJzk7/Ydv+dOEcKwPBERYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgowiHNYzk4QJWPEzvwm7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",width:200}),(0,w.jsxs)("div",{style:{marginLeft:"35px"},children:["群号:","714336072"]})]})]}),okText:"立即联系",cancelText:"取消",onOk:function(){(0,f.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},B=function(e){s.Z.info({title:"联系平台运营",icon:null,width:615,centered:!0,content:(0,w.jsxs)("div",{children:[(0,w.jsxs)("div",{children:[(0,w.jsx)("p",{style:{color:"#191919",fontWeight:400,fontSize:14},children:"“保存实验临时数据”功能为付费功能,请联系平台运营进行开通。"}),(0,w.jsx)(c.Z,{}),(0,w.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,w.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"1"})," 因平台的实验数据储存容量和成本消耗较大,实践项目默认保存实验环境中临时数据 ",(0,w.jsx)("a",{children:e}),"天。"]}),(0,w.jsxs)("p",{style:{color:"#666666",fontSize:12},children:[" ",(0,w.jsx)("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8},children:"2"}),"若您需要个性化的数据保存周期服务,我们可以提供相关技术支持,并根据您的需求收取定制费用。"]})]}),(0,w.jsx)("div",{style:{textAlign:"center",marginTop:30},children:(0,w.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:h,alt:"二维码",width:160})})]})})},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=(0,l.getDvaApp)()._store.getState(),i=n.shixunsDetail.detail;if(2===(null==i?void 0:i.public)||1===(null==i?void 0:i.public)||3===(null==i?void 0:i.shixun_status)){var r="";return 2===(null==i?void 0:i.public)&&(r="已公开"),1===(null==i?void 0:i.public)&&(r="待审核"),3===(null==i?void 0:i.shixun_status)&&(r="已关闭"),s.Z.info({centered:!0,icon:(0,w.jsx)(p.Z,{style:{color:"#faad14"}}),width:460,title:"提示",content:(0,w.jsxs)("div",{className:"tc",style:{marginLeft:-38},children:[(0,w.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"},children:[(0,w.jsxs)("span",{children:["该实践项目的状态为",r,",",t,"。"]}),(0,w.jsx)("p",{children:"如有需要,请联系平台管理员进行技术支持。"})]}),(0,w.jsx)("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:h,alt:"二维码",width:160})]}),okText:"我知道了"}),!0}return 2===(null==i?void 0:i.shixun_status)&&(s.Z.confirm({centered:!0,icon:(0,w.jsx)(p.Z,{}),title:"提示",content:(0,w.jsxs)("div",{children:[(0,w.jsxs)("span",{children:["该实践项目已发布,",t,"。"]}),(0,w.jsx)("br",{}),(0,w.jsx)("span",{children:"如有需要,您可以撤销发布后,再进行操作。"})]}),okText:"撤销发布",cancelText:"取消",onOk:function(){var t;s.Z.confirm({width:440,centered:!0,icon:(0,w.jsx)(p.Z,{style:{color:"#faad14"}}),title:"提示",content:"撤销发布后,学员将无法进行练习。是否确认撤销发布?",okText:"确定撤销发布",cancelText:"取消",onOk:(t=a()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e({type:"shixunsDetail/cancelRelease",payload:{id:null==i?void 0:i.identifier}});case 2:401!==t.sent.status&&(d.ZP.success("撤销发布成功。实训回到未发布的状态。"),e({type:"shixunsDetail/getShixunsDetail",payload:{id:null==i?void 0:i.identifier}}),e({type:"practiceSetting/getCommonData",payload:{id:null==i?void 0:i.identifier}}));case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})})}}),!0)}},32637:function(e,t,n){"use strict";e.exports=n.p+"static/AssistantCode3.a8740efb.jpeg"}}]); |