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

web-interface.assets.57e33c6c-16.11b9f72925818240e61d.js Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
(window.webpackJsonp=window.webpackJsonp||[]).push([["57e33c6c-16"],{"/HedtT+p":function(e,t,n){"use strict";var r=n("dZUWVuuc"),o=n.n(r),a=n("DjJvgDaP"),i=n.n(a)()(o.a);i.push([e.i,".S2MePAWs4_VR-eV7KDmCg {\n    margin-left: 1px;\n}\n","",{version:3,sources:["webpack://./src/components/extractors/extractors_configuration/GrokExtractorConfiguration.css"],names:[],mappings:"AAAA;IACI,gBAAgB;AACpB",sourcesContent:[":local(.grokInput) {\n    margin-left: 1px;\n}\n"],sourceRoot:""}]),i.locals={grokInput:"S2MePAWs4_VR-eV7KDmCg"},t.a=i},I8zlNHhV:function(e,t,n){"use strict";var r=n("ii0bleBb"),o=n.n(r),a=n("ivGQtwpr"),i=n.n(a),c=n("qoq4u5Uq"),l=n("B4BR5PLd"),u=n("nHcjWeCO"),s=n("dFpwyWHg"),p=n.n(s),f=n("J8vTJQ7x"),y={insert:"head",singleton:!1},m=(p()(f.a,y),f.a.locals||{});function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n=t.shownListItems.length)return;(n=document.getElementById("list-item-".concat(i))).parentElement.scrollTop=n.offsetTop-c.offsetTop,t.setState({activeListItem:i}),e.preventDefault();break;case 38:if((i=o-1)<0)return;(n=document.getElementById("list-item-".concat(i))).parentElement.scrollTop=n.offsetTop-c.offsetTop,t.setState({activeListItem:i}),e.preventDefault();break;case 13:a&&r(a),e.preventDefault()}})),t.state={patternFilter:"",activeListItem:-1},t}return t=a,(n=[{key:"shouldComponentUpdate",value:function(e,t){var n=this.props.patterns,r=this.state,o=r.patternFilter,a=r.activeListItem;return!Object(u.isEqual)(e.patterns,n)||o!==t.patternFilter||a!==t.activeListItem}},{key:"render",value:function(){var e=this,t=this.state,n=t.activeListItem,r=t.patternFilter,o=this.props,a=o.addToPattern,u=o.patterns,s=RegExp(r,"i");this.shownListItems=[];var p=u.filter((function(e){return s.test(e.name)})).map((function(t,r){var o=r===n;return e.shownListItems.push(t.name),i.a.createElement(c.x,{id:"list-item-".concat(r),header:t.name,bsStyle:o?"info":void 0,onKeyDown:e._onPatternFilterKeyDown,key:t.name},i.a.createElement("span",{className:m.patternDisplay},t.pattern),i.a.createElement("span",{className:m.addButton},i.a.createElement(c.e,{bsSize:"xsmall",bsStyle:"primary",onClick:function(){a(t.name)}},"Add")))}));return i.a.createElement(i.a.Fragment,null,i.a.createElement(l.d,{type:"text",id:"pattern-selector",label:"Filter pattern",onChange:this._onPatternFilterChange,autoComplete:"off",formGroupClassName:m.filterFormGroup,onKeyDown:this._onPatternFilterKeyDown,value:r}),i.a.createElement(c.w,{bsClass:m.resultList},p))}}])&&h(t.prototype,n),r&&h(t,r),a}(i.a.Component);E(x,"propTypes",{addToPattern:o.a.func.isRequired,patterns:o.a.array.isRequired});var w=x;function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nthis.state.configuration.end_index&&(e.value=this.state.configuration.end_index,this._onChange("begin_index")({target:e}))},_onTryClick:function(){var e=this;if(this.setState({trying:!0}),this._verifySubstringInputs(),this.state.configuration.begin_index===this.state.configuration.end_index)this.props.onExtractorPreviewLoad(""),this.setState({trying:!1});else{var t=f.a.testSubstring(this.state.configuration.begin_index,this.state.configuration.end_index,this.props.exampleMessage);t.then((function(t){t.successful?e.props.onExtractorPreviewLoad(i.a.createElement("samp",null,t.cut)):En.a.warning("We were not able to run the substring extraction. Please check index boundaries.")})),t.finally((function(){return e.setState({trying:!1})}))}},_isTryButtonDisabled:function(){var e=this.state.configuration;return this.state.trying||void 0===e.begin_index||e.begin_index<0||void 0===e.end_index||e.end_index<0||!this.props.exampleMessage},render:function(){var e=this,t=i.a.createElement("span",null,"Where to end extracting. (Exclusive)"," ",i.a.createElement("strong",null,"Example:")," ",i.a.createElement("em",null,"1,5")," cuts ",i.a.createElement("em",null,"love")," from the string ",i.a.createElement("em",null,"ilovelogs"),".");return i.a.createElement("div",null,i.a.createElement(l.d,{type:"number",ref:function(t){e.beginIndex=t},id:"begin_index",label:"Begin index",labelClassName:"col-md-2",wrapperClassName:"col-md-10",defaultValue:this.state.configuration.begin_index,onChange:this._onChange("begin_index"),min:"0",required:!0,help:"Character position from where to start extracting. (Inclusive)"}),i.a.createElement(l.d,{type:"number",ref:function(t){e.endIndex=t},id:"end_index",label:"End index",labelClassName:"col-md-2",wrapperClassName:"col-md-10",defaultValue:this.state.configuration.end_index,onChange:this._onChange("end_index"),min:"0",required:!0,help:t}),i.a.createElement(c.L,null,i.a.createElement(c.j,{mdOffset:2,md:10},i.a.createElement(c.e,{bsStyle:"info",onClick:this._onTryClick,disabled:this._isTryButtonDisabled()},this.state.trying?i.a.createElement(y.z,{name:"spinner",spin:!0}):"Try"))))}});function vr(e){return(vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cr(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n




© 2015 - 2024 Weber Informatics LLC | Privacy Policy