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

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

There is a newer version: 6.0.2
Show newest version
(window.webpackJsonp=window.webpackJsonp||[]).push([["57e33c6c-92"],{l3Z1TEpN:function(t,e,a){"use strict";a.r(e);var n=a("ii0bleBb"),r=a.n(n),i=a("ivGQtwpr"),s=a.n(i),o=a("PcYM+wZ7"),c=a.n(o),l=a("4KF7VOU5"),p=a.n(l),u=a("0tVB/fkh"),d=a("jHp4XH0b"),m=a("dLdPQ+h2"),g=a("mc0qlNhN"),x=a("+CppQpVm"),h=a("/lavANvI"),v=a("JBQWIv26"),E=a("1VnJesae"),f=a("1/asf7rI"),I=v.a.getActions("Inputs"),_=v.a.getActions("Extractors"),b=E.a.getStore("Extractors"),S=E.a.getStore("Inputs"),w=E.a.getStore("UniversalSearch"),M=c()({displayName:"EditExtractorsPage",propTypes:{params:r.a.object.isRequired},mixins:[p.a.connect(b),p.a.connect(S)],getInitialState:function(){return{extractor:void 0,exampleMessage:void 0}},componentDidMount:function(){var t=this,e=this.props.params;I.get.triggerPromise(e.inputId),_.get.triggerPromise(e.inputId,e.extractorId),w.search("relative","gl2_source_input:".concat(e.inputId," OR gl2_source_radio_input:").concat(e.inputId),{relative:3600},void 0,1).then((function(e){e.total_results>0?t.setState({exampleMessage:e.messages[0]}):t.setState({exampleMessage:{}})}))},_isLoading:function(){return!(this.state.input&&this.state.extractor&&this.state.exampleMessage)},_extractorSaved:function(){var t,e=this.state.input,a=this.props.params;t=e.global?h.a.global_input_extractors(a.inputId):h.a.local_input_extractors(a.nodeId,a.inputId),x.a.push(t)},render:function(){if(this._isLoading())return s.a.createElement(u.db,null);var t=this.state,e=t.extractor,a=t.exampleMessage,n=t.input;return s.a.createElement(u.j,{title:"Edit extractor ".concat(e.title)},s.a.createElement("div",null,s.a.createElement(u.M,{title:s.a.createElement("span",null,"Edit extractor ",s.a.createElement("em",null,e.title)," for input ",s.a.createElement("em",null,n.title))},s.a.createElement("span",null,"Extractors are applied on every message that is received by an input. Use them to extract and transform"," ","any text data into fields that allow you easy filtering and analysis later on."),s.a.createElement("span",null,"Find more information about extractors in the"," ",s.a.createElement(d.a,{page:g.a.PAGES.EXTRACTORS,text:"documentation"}),".")),s.a.createElement(m.a,{action:"edit",extractor:e,inputId:n.id,exampleMessage:a.fields?a.fields[e.source_field]:void 0,onSave:this._extractorSaved})))}});e.default=Object(f.a)(M)}}]);
//# sourceMappingURL=57e33c6c-92.11b9f72925818240e61d.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy