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

ber-security.graylog.graylog-plugin-alert-wizard.5.2.1.source-code.645b74a0625033669c9d0440b32e3fd0.js Maven / Gradle / Ivy

The newest version!
(()=>{var B=(h,u)=>()=>(u||h((u={exports:{}}).exports,u),u.exports);var H=B((T,x)=>{ace.define("ace/ext/textarea",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/net","ace/ace"],function(h,u,M){"use strict";var m=h("../lib/event"),E=h("../lib/useragent"),P=h("../lib/net"),w=h("../ace");M.exports=u=w;var S=function(e,c,t){var n=e.style[t];return n||(window.getComputedStyle?n=window.getComputedStyle(e,"").getPropertyValue(t):n=e.currentStyle[t]),(!n||n=="auto"||n=="intrinsic")&&(n=c.style[t]),n};function k(e,c){for(var t in c)e.style[t]=c[t]}function L(e,c){if(e.type!="textarea")throw new Error("Textarea required!");var t=e.parentNode,n=document.createElement("div"),s=function(){var r="position:relative;";["margin-top","margin-left","margin-right","margin-bottom"].forEach(function(i){r+=i+":"+S(e,n,i)+";"});var d=S(e,n,"width")||e.clientWidth+"px",a=S(e,n,"height")||e.clientHeight+"px";r+="height:"+a+";width:"+d+";",r+="display:inline-block;",n.setAttribute("style",r)};for(m.addListener(window,"resize",s),s(),t.insertBefore(n,e.nextSibling);t!==document;){if(t.tagName.toUpperCase()==="FORM"){var p=t.onsubmit;t.onsubmit=function(r){e.value=c(),p&&p.call(this,r)};break}t=t.parentNode}return n}u.transformTextarea=function(e,c){var t=e.autofocus||document.activeElement==e,n,s=L(e,function(){return n.getValue()});e.style.display="none",s.style.background="white";var p=document.createElement("div");k(p,{top:"0px",left:"0px",right:"0px",bottom:"0px",border:"1px solid gray",position:"absolute"}),s.appendChild(p);var r=document.createElement("div");k(r,{position:"absolute",right:"0px",bottom:"0px",cursor:"nw-resize",border:"solid 9px",borderColor:"lightblue gray gray #ceade6",zIndex:101});var d=document.createElement("div"),a={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?a.backgroundColor="#333":a.backgroundColor="rgba(0, 0, 0, 0.6)",k(d,a),s.appendChild(d),c=c||u.defaultOptions;var i=w.edit(p);n=i.getSession(),n.setValue(e.value||e.innerHTML),t&&i.focus(),s.appendChild(r),_(i,p,d,w,c),I(d,r,i);var y="";return m.addListener(r,"mousemove",function(f){var o=this.getBoundingClientRect(),b=f.clientX-o.left,g=f.clientY-o.top;b+g<(o.width+o.height)/2?(this.style.cursor="pointer",y="toggle"):(y="resize",this.style.cursor="nw-resize")}),m.addListener(r,"mousedown",function(f){if(f.preventDefault(),y=="toggle"){i.setDisplaySettings();return}s.style.zIndex=1e5;var o=s.getBoundingClientRect(),b=o.width+o.left-f.clientX,g=o.height+o.top-f.clientY;m.capture(r,function(l){s.style.width=l.clientX-o.left+b+"px",s.style.height=l.clientY-o.top+g+"px",i.resize()},function(){})}),i};function $(e,c,t){P.loadScript(e,function(){h([c],t)})}function _(e,c,t,n,s){var p=e.getSession(),r=e.renderer;function d(a){return a==="true"||a==!0}return e.setDisplaySettings=function(a){a==null&&(a=t.style.display=="none"),a?(t.style.display="block",t.hideButton.focus(),e.on("focus",function i(){e.removeListener("focus",i),t.style.display="none"})):e.focus()},e.$setOption=e.setOption,e.$getOption=e.getOption,e.setOption=function(a,i){switch(a){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(a,i);break;default:e.$setOption(a,d(i))}},e.getOption=function(a){switch(a){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(a)}},e.setOptions(s),e}function I(e,c,t){var n=null,s={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"},p={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:n,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:n,useSoftTabs:n,showInvisibles:n},r=[];r.push("");function d(l,v,O,z){if(!O){l.push("");return}l.push("")}for(var a in u.defaultOptions)r.push(""),r.push("");r.push("
SettingValue
",s[a],""),d(r,a,p[a],t.getOption(a)),r.push("
"),e.innerHTML=r.join("");for(var i=function(l){var v=l.currentTarget;t.setOption(v.title,v.value)},y=function(l){var v=l.currentTarget;t.setOption(v.title,v.checked)},f=e.getElementsByTagName("select"),o=0;o




© 2015 - 2024 Weber Informatics LLC | Privacy Policy