web-interface.assets.1255d548-1247.27b1f8022611d1b94b4c.js Maven / Gradle / Ivy
(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["1255d548-1247"],{"BaXPld/A":(c,n,r)=>{"use strict";r.r(n),r.d(n,{default:()=>I});var o=r("Z7aTuO5B"),u=r("ii0bleBb"),a=r.n(u),l=r("J6y4/h8P"),d=r("CCNXj2ra"),t=r("M41Hih61"),F=r("6BFHGt46"),Q=r("fdJGtgle"),z=r("lt5fqG4I"),D=r("v2kDoRGM");const $=t.ZP,A=(0,l.default)($)(({$scTheme:e,$height:i,disabled:g})=>(0,l.css)`
&.ace-queryinput {
${i?`height: ${i}px !important`:""}
min-height: 34px;
width: 100% !important;
background-color: ${e.colors.input.background};
color: ${e.utils.contrastingColor(e.colors.input.background,"AAA")};
border: 1px solid ${e.colors.variant.light.default};
border-radius: ${d.L$};
&.ace_multiselect .ace_selection.ace_start {
box-shadow: 0 0 3px 0 ${e.colors.input.background};
}
.ace_gutter {
background: ${e.colors.input.background};
color: ${e.utils.contrastingColor(e.colors.input.background,"AAA")};
}
.ace_print-margin {
width: 1px;
background: ${e.colors.input.background};
}
.ace_cursor {
color: ${e.colors.gray[50]};
display: ${g?"none":"block"} !important;
}
.ace_marker-layer .ace_selection {
background: ${e.colors.variant.lightest.default};
}
.ace_marker-layer .ace_step {
background: ${e.colors.variant.warning};
}
.ace_marker-layer .ace_bracket {
margin: -1px 0 0 -1px;
border: none;
}
.ace_marker-layer .ace_active-line {
background: ${e.colors.input.background};
}
.ace_gutter-active-line {
background-color: ${e.colors.input.background};
}
.ace_marker-layer .ace_selected-word {
border: 1px solid ${e.colors.gray[80]};
}
.ace_invisible {
color: ${e.colors.input.background};
}
.ace_keyword,
.ace_meta,
.ace_storage,
.ace_storage.ace_type,
.ace_support.ace_type {
color: ${e.colors.variant.info};
}
.ace_keyword.ace_operator {
color: ${e.colors.global.textDefault};
}
.ace_constant.ace_character,
.ace_constant.ace_language,
.ace_constant.ace_numeric,
.ace_keyword.ace_other.ace_unit,
.ace_support.ace_constant,
.ace_variable.ace_parameter {
color: ${e.colors.variant.dark.danger};
}
.ace_constant.ace_other {
color: ${e.colors.variant.default};
}
.ace_invalid {
color: ${e.utils.readableColor(e.colors.brand.primary)};
background-color: ${e.colors.brand.primary};
}
.ace_invalid.ace_deprecated {
color: ${e.utils.readableColor(e.colors.brand.primary)};
background-color: ${e.colors.variant.dark.primary};
}
.ace_fold {
background-color: ${e.colors.variant.info};
border-color: ${e.utils.contrastingColor(e.colors.input.background,"AAA")};
}
.ace_entity.ace_name.ace_function,
.ace_support.ace_function,
.ace_variable,
.ace_term {
color: ${e.colors.variant.darker.info};
}
.ace_support.ace_class,
.ace_support.ace_type {
color: ${e.colors.variant.dark.warning};
}
.ace_heading,
.ace_markup.ace_heading,
.ace_string {
color: ${e.colors.variant.dark.success};
}
.ace_entity.ace_name.ace_tag,
.ace_entity.ace_other.ace_attribute-name,
.ace_meta.ace_tag,
.ace_string.ace_regexp,
.ace_variable {
color: ${e.colors.brand.primary};
}
.ace_comment {
color: ${e.colors.gray[60]};
}
.ace_indent-guide {
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bdu3f/BwAlfgctduB85QAAAABJRU5ErkJggg==') right repeat-y;
}
.ace_placeholder {
left: 0;
right: 0;
padding: 0;
margin-top: 6px;
margin-left: 4px;
margin-right: 4px;
transform: none;
opacity: 1;
z-index: auto !important;
font-family: ${e.fonts.family.monospace} !important;
font-size: ${e.fonts.size.body};
color: ${e.colors.input.placeholder};
text-overflow: ellipsis;
max-width: 100%;
overflow: hidden;
}
.ace_marker {
border-bottom: 2px dashed;
position: absolute;
border-radius: 0;
margin-top: 1px;
}
.ace_marker.ace_validation_error {
border-color: ${e.colors.variant.danger};
}
.ace_marker.ace_validation_warning {
border-color: ${e.colors.variant.dark.warning};
}
}
`),w="ace-queryinput",L=e=>!e.disabled,M=e=>e.disabled,R=(e,i)=>{const g="ace_marker",p=(x=[],_="")=>x.map(({beginLine:f,beginColumn:m,endLine:y,endColumn:b})=>({startRow:f,startCol:m,endRow:y,endCol:b,type:"text",className:_}));return[...p(e==null?void 0:e.explanations,`${g} ace_validation_error`),...p(i==null?void 0:i.explanations,`${g} ace_validation_warning`)]},k=(0,o.forwardRef)((e,i)=>{const{className:g,disabled:p,error:x,height:_,maxLines:f,placeholder:m,value:y,warning:b,wrapEnabled:S,onLoad:v,inputId:h}=e,C=(0,l.useTheme)(),H=(0,o.useMemo)(()=>R(x,b),[x,b]),N=(0,o.useCallback)(s=>{s&&(s.renderer.setScrollMargin(7,6),s.renderer.setPadding(12),h&&s.textInput.getElement().setAttribute("id",h),v==null||v(s))},[h,v]),P=(0,o.useMemo)(()=>({$blockScrolling:1/0,selectionStyle:"line"}),[]),G=(0,o.useMemo)(()=>({indentedSoftWrap:!1}),[]),E={$height:_,$scTheme:C,theme:w,className:`${g} ${w}`,disabled:p,editorProps:P,fontSize:C.fonts.size.small,highlightActiveLine:!1,markers:H,maxLines:f,minLines:1,mode:"lucene",name:"QueryEditor",placeholder:m,readOnly:p,ref:i,setOptions:G,showGutter:!1,showPrintMargin:!1,value:y,wrapEnabled:S,onLoad:N};if(M(e))return o.createElement(A,{...E,disabled:!0});if(L(e)){const{onBlur:s,onChange:O,enableAutocompletion:B}=e;return o.createElement(A,{...E,enableBasicAutocompletion:B,enableLiveAutocompletion:B,onBlur:s,onChange:O})}return null});k.propTypes={className:a().string,disabled:a().bool,enableAutocompletion:a().bool,error:a().any,height:a().number,inputId:a().string,maxLines:a().number,onBlur:a().func,onChange:a().func,onLoad:a().func,placeholder:a().string,value:a().string,warning:a().any,wrapEnabled:a().bool},k.defaultProps={className:"",disabled:!1,enableAutocompletion:!1,error:void 0,height:void 0,inputId:void 0,maxLines:4,onBlur:void 0,onChange:void 0,onLoad:void 0,placeholder:"",value:"",warning:void 0,wrapEnabled:!0};const I=o.memo(k)},"6BFHGt46":()=>{ace.define("ace/theme/ace-queryinput",["require","exports","module","ace/lib/dom"],(c,n)=>{n.isDark=!1,n.cssClass="ace-queryinput",c("../lib/dom").importCssString(n.cssText,n.cssClass)})},lt5fqG4I:(c,n,r)=>{c=r.nmd(c),ace.define("ace/mode/lucene_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(o,u)=>{const a=o("../lib/oop"),{TextHighlightRules:l}=o("./text_highlight_rules"),d=function(){this.$rules={start:[{token:"constant.language.escape",regex:/\\[-+&|!(){}[\]^"~*?:\\]/},{token:"constant.character.negation",regex:"\\-"},{token:"constant.character.interro",regex:"\\?"},{token:"constant.character.required",regex:"\\+"},{token:"constant.character.asterisk",regex:"\\*"},{token:"constant.character.proximity",regex:"~(?:0\\.[0-9]+|[0-9]+)?"},{token:"keyword.operator",regex:"(AND|OR|NOT|TO)\\b"},{token:t=>[{type:"paren.lparen",value:t}],regex:"[\\(\\{\\[]"},{token:t=>[{type:"paren.rparen",value:t}],regex:"[\\)\\}\\]]"},{token:"keyword.operator",regex:/[><=^]/},{token:"constant.numeric",regex:/\d[\d.-]*/},{token:"string",regex:/"(?:\\"|[^"])*"/},{token:"keyword",regex:/(?:\\.|[^\s\-+&|!(){}[\]^"~*?:\\])+:/,next:"maybeRegex"},{token:"term",regex:/[\w\\/]+/},{token:"text",regex:/\s+/}],maybeRegex:[{token:"text",regex:/\s+/},{token:"string.regexp.start",regex:"/",next:"regex"},{regex:"",next:"start"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp.end",regex:"/[sxngimy]*",next:"start"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.escape",regex:"|[~&@]"},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"start"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"start"},{defaultToken:"string.regexp.charachterclass"}]}};a.inherits(d,l),u.LuceneHighlightRules=d}),ace.define("ace/mode/lucene",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/lucene_highlight_rules"],(o,u)=>{const a=o("../lib/oop"),l=o("./text").Mode,{LuceneHighlightRules:d}=o("./lucene_highlight_rules"),t=function(){this.HighlightRules=d,this.$behaviour=this.$defaultBehaviour};a.inherits(t,l),(function(){this.$id="ace/mode/lucene"}).call(t.prototype),u.Mode=t}),function(){ace.require(["ace/mode/lucene"],o=>{c&&(c.exports=o)})}()}}]);})();
//# sourceMappingURL=1255d548-1247.27b1f8022611d1b94b4c.js.map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy