All Downloads are FREE. Search and download functionalities are using the official Maven repository.

web-interface.assets.5aa42cf05a60ed97761d3d82d6cef1d4.js Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
(()=>{var I=(b,p)=>()=>(p||b((p={exports:{}}).exports,p),p.exports);var B=I((T,x)=>{ace.define("ace/ext/textarea",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/ace"],function(b,p,M){"use strict";var m=b("../lib/event"),E=b("../lib/useragent"),w=b("../ace");M.exports=p=w;var S=function(e,c,n){var a=e.style[n];return a||(window.getComputedStyle?a=window.getComputedStyle(e,"").getPropertyValue(n):a=e.currentStyle[n]),(!a||a=="auto"||a=="intrinsic")&&(a=c.style[n]),a};function k(e,c){for(var n in c)e.style[n]=c[n]}function P(e,c){if(e.type!="textarea")throw new Error("Textarea required!");var n=e.parentNode,a=document.createElement("div"),o=function(){var t="position:relative;";["margin-top","margin-left","margin-right","margin-bottom"].forEach(function(l){t+=l+":"+S(e,a,l)+";"});var i=S(e,a,"width")||e.clientWidth+"px",d=S(e,a,"height")||e.clientHeight+"px";t+="height:"+d+";width:"+i+";",t+="display:inline-block;",a.setAttribute("style",t)};for(m.addListener(window,"resize",o),o(),n.insertBefore(a,e.nextSibling);n!==document;){if(n.tagName.toUpperCase()==="FORM"){var u=n.onsubmit;n.onsubmit=function(t){e.value=c(),u&&u.call(this,t)};break}n=n.parentNode}return a}p.transformTextarea=function(e,c){var n=e.autofocus||document.activeElement==e,a,o=P(e,function(){return a.getValue()});e.style.display="none",o.style.background="white";var u=document.createElement("div");k(u,{top:"0px",left:"0px",right:"0px",bottom:"0px",border:"1px solid gray",position:"absolute"}),o.appendChild(u);var t=document.createElement("div");k(t,{position:"absolute",right:"0px",bottom:"0px",cursor:"nw-resize",border:"solid 9px",borderColor:"lightblue gray gray #ceade6",zIndex:101});var i=document.createElement("div"),d={top:"0px",left:"20%",right:"0px",bottom:"0px",position:"absolute",padding:"5px",zIndex:100,color:"white",display:"none",overflow:"auto",fontSize:"14px",boxShadow:"-5px 2px 3px gray"};E.isOldIE?d.backgroundColor="#333":d.backgroundColor="rgba(0, 0, 0, 0.6)",k(i,d),o.appendChild(i),c=c||p.defaultOptions;var l=w.edit(u);a=l.getSession(),a.setValue(e.value||e.innerHTML),n&&l.focus(),o.appendChild(t),L(l,u,i,w,c),_(i,t,l);var y="";return m.addListener(t,"mousemove",function(h){var r=this.getBoundingClientRect(),v=h.clientX-r.left,f=h.clientY-r.top;v+f<(r.width+r.height)/2?(this.style.cursor="pointer",y="toggle"):(y="resize",this.style.cursor="nw-resize")}),m.addListener(t,"mousedown",function(h){if(h.preventDefault(),y=="toggle"){l.setDisplaySettings();return}o.style.zIndex=1e5;var r=o.getBoundingClientRect(),v=r.width+r.left-h.clientX,f=r.height+r.top-h.clientY;m.capture(t,function(s){o.style.width=s.clientX-r.left+v+"px",o.style.height=s.clientY-r.top+f+"px",l.resize()},function(){})}),l};function L(e,c,n,a,o){function u(t){return t==="true"||t==!0}return e.setDisplaySettings=function(t){t==null&&(t=n.style.display=="none"),t?(n.style.display="block",n.hideButton.focus(),e.on("focus",function i(){e.removeListener("focus",i),n.style.display="none"})):e.focus()},e.$setOption=e.setOption,e.$getOption=e.getOption,e.setOption=function(t,i){switch(t){case"mode":e.$setOption("mode","ace/mode/"+i);break;case"theme":e.$setOption("theme","ace/theme/"+i);break;case"keybindings":switch(i){case"vim":e.setKeyboardHandler("ace/keyboard/vim");break;case"emacs":e.setKeyboardHandler("ace/keyboard/emacs");break;default:e.setKeyboardHandler(null)}break;case"wrap":case"fontSize":e.$setOption(t,i);break;default:e.$setOption(t,u(i))}},e.getOption=function(t){switch(t){case"mode":return e.$getOption("mode").substr(9);case"theme":return e.$getOption("theme").substr(10);case"keybindings":var i=e.getKeyboardHandler();switch(i&&i.$id){case"ace/keyboard/vim":return"vim";case"ace/keyboard/emacs":return"emacs";default:return"ace"}break;default:return e.$getOption(t)}},e.setOptions(o),e}function _(e,c,n){var a=null,o={mode:"Mode:",wrap:"Soft Wrap:",theme:"Theme:",fontSize:"Font Size:",showGutter:"Display Gutter:",keybindings:"Keyboard",showPrintMargin:"Show Print Margin:",useSoftTabs:"Use Soft Tabs:",showInvisibles:"Show Invisibles"},u={mode:{text:"Plain",javascript:"JavaScript",xml:"XML",html:"HTML",css:"CSS",scss:"SCSS",python:"Python",php:"PHP",java:"Java",ruby:"Ruby",c_cpp:"C/C++",coffee:"CoffeeScript",json:"json",perl:"Perl",clojure:"Clojure",ocaml:"OCaml",csharp:"C#",haxe:"haXe",svg:"SVG",textile:"Textile",groovy:"Groovy",liquid:"Liquid",Scala:"Scala"},theme:{clouds:"Clouds",clouds_midnight:"Clouds Midnight",cobalt:"Cobalt",crimson_editor:"Crimson Editor",dawn:"Dawn",gob:"Green on Black",eclipse:"Eclipse",idle_fingers:"Idle Fingers",kr_theme:"Kr Theme",merbivore:"Merbivore",merbivore_soft:"Merbivore Soft",mono_industrial:"Mono Industrial",monokai:"Monokai",pastel_on_dark:"Pastel On Dark",solarized_dark:"Solarized Dark",solarized_light:"Solarized Light",textmate:"Textmate",twilight:"Twilight",vibrant_ink:"Vibrant Ink"},showGutter:a,fontSize:{"10px":"10px","11px":"11px","12px":"12px","14px":"14px","16px":"16px"},wrap:{off:"Off",40:"40",80:"80",free:"Free"},keybindings:{ace:"ace",vim:"vim",emacs:"emacs"},showPrintMargin:a,useSoftTabs:a,showInvisibles:a},t=[];t.push("");function i(s,g,O,z){if(!O){s.push("");return}s.push("")}for(var d in p.defaultOptions)t.push(""),t.push("");t.push("
SettingValue
",o[d],""),i(t,d,u[d],n.getOption(d)),t.push("
"),e.innerHTML=t.join("");for(var l=function(s){var g=s.currentTarget;n.setOption(g.title,g.value)},y=function(s){var g=s.currentTarget;n.setOption(g.title,g.checked)},h=e.getElementsByTagName("select"),r=0;r




© 2015 - 2024 Weber Informatics LLC | Privacy Policy