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

web-interface.assets.0c1a66a2-110.1ec71fc30880f2142b45.js Maven / Gradle / Ivy

There is a newer version: 6.0.5
Show newest version
(window.webpackJsonp=window.webpackJsonp||[]).push([["0c1a66a2-110"],{"+pxM3jAq":function(e,t,n){"use strict";n.r(t);var r=n("ivGQtwpr"),a=n.n(r),i=n("PcYM+wZ7"),s=n.n(i),o=n("4KF7VOU5"),l=n.n(o),c=n("qoq4u5Uq"),u=n("ii0bleBb"),m=n.n(u),p=n("FOEh8xnd"),f=n("B4BR5PLd"),d=n("oBIKikY9"),y=n("21p8kIWv"),h=n("L8npJDrf");function S(e){return(S="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 b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){for(var n=0;n0){var n=e.indexSets.find((function(e){return e.default}));n&&(t=n.id)}return{title:e.stream.title,description:e.stream.description,removeMatchesFromDefaultStream:e.stream.remove_matches_from_default_stream,indexSetId:t}})),x(E(e),"_onSubmit",(function(){e.props.onSubmit(e.props.stream.id,{title:e.state.title,description:e.state.description,remove_matches_from_default_stream:e.state.removeMatchesFromDefaultStream,index_set_id:e.state.indexSetId}),e.modal.close()})),x(E(e),"open",(function(){e._resetValues(),w.list(!1),e.modal.open()})),x(E(e),"close",(function(){e.modal.close()})),x(E(e),"_formatSelectOptions",(function(){return e.props.indexSets.filter((function(e){return e.writable})).map((function(e){return{value:e.id,label:e.title}}))})),x(E(e),"_onIndexSetSelect",(function(t){e.setState({indexSetId:t})})),x(E(e),"handleChange",(function(t){var n={};n[t.target.name]=h.a.getValueFromInput(t.target),e.setState(n)})),x(E(e),"state",e._getValuesFromProps(e.props)),e}return t=s,(n=[{key:"render",value:function(){var e,t=this,n=this.state,r=n.title,i=n.description,s=n.removeMatchesFromDefaultStream,o=n.indexSetId;return e=this.props.indexSets?a.a.createElement(f.d,{id:"index-set-selector",label:"Index Set",help:"Messages that match this stream will be written to the configured index set."},a.a.createElement(d.G,{inputId:"index-set-selector",placeholder:"Select index set",options:this._formatSelectOptions(),matchProp:"label",onChange:this._onIndexSetSelect,value:o})):a.a.createElement(d.L,null,"Loading index sets..."),a.a.createElement(p.a,{ref:function(e){t.modal=e},title:this.props.title,onSubmitForm:this._onSubmit,submitButtonText:"Save"},a.a.createElement(f.d,{id:"Title",type:"text",required:!0,label:"Title",name:"title",value:r,onChange:this.handleChange,placeholder:"A descriptive name of the new stream",autoFocus:!0}),a.a.createElement(f.d,{id:"Description",type:"text",required:!0,label:"Description",name:"description",value:i,onChange:this.handleChange,placeholder:"What kind of messages are routed into this stream?"}),e,a.a.createElement(f.d,{id:"RemoveFromDefaultStream",type:"checkbox",label:"Remove matches from ‘All messages’ stream",name:"removeMatchesFromDefaultStream",checked:s,onChange:this.handleChange,help:a.a.createElement("span",null,"Remove messages that match this stream from the ‘All messages’ stream which is assigned to every message by default.")}))}}])&&g(t.prototype,n),r&&g(t,r),s}(a.a.Component);x(O,"propTypes",{onSubmit:m.a.func.isRequired,stream:m.a.object.isRequired,title:m.a.string.isRequired,indexSets:m.a.array.isRequired}),x(O,"defaultProps",{stream:{title:"",description:"",remove_matches_from_default_stream:!1}});var k=O;function C(e){return(C="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 T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t){for(var n=0;n0){var e=this.props.streams.sort(this._sortByTitle).map(this._formatStream);return a.a.createElement(xe,null,e)}return a.a.createElement(c.a,{bsStyle:"info"},a.a.createElement(d.r,{name:"info-circle"})," No streams match your search filter.")}});function Oe(e){return(Oe="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 ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(e,t){for(var n=0;n




© 2015 - 2024 Weber Informatics LLC | Privacy Policy