web-interface.assets.bb8c8232-7379.1d3e540d87eae7609c2e.js Maven / Gradle / Ivy
"use strict";(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["bb8c8232-7379"],{SfPIQIJE:(v,m,t)=>{t.d(m,{A:()=>g});var s=t("Z7aTuO5B"),r=t("J6y4/h8P"),e=t("rIl5IEuP"),p=t("ty2gyrHp"),A=t("IOI9nV80"),E=t("NV1/EHMi");const _=(0,r.default)(e.ButtonToolbar)`
margin-bottom: 10px;
`,P=(0,r.default)(e.Button)(({theme:l})=>(0,r.css)`
font-family: ${l.fonts.family.navigation};
font-size: ${l.fonts.size.navigation};
color: ${l.colors.variant.darker.default};
&:hover,
&:focus {
background: inherit;
text-decoration: none;
}
&:hover {
color: inherit;
${(0,E.WS)(l)}
}
&.active {
color: ${l.colors.global.textDefault};
${(0,E.at)(l)}
&:hover,
&:focus {
${(0,E.at)(l)}
}
`);P.displayName="Button";const g=({items:l})=>s.createElement(_,null,l.map(({path:T,title:D,permissions:c,exactPathMatch:L})=>T?s.createElement(A.Wj,{permissions:c!=null?c:[],key:T},s.createElement(p.m,{to:T,relativeActive:!L},s.createElement(P,{bsStyle:"link"},s.createElement(E.Ay,null,D)))):null))},w4Oqfrlu:(v,m,t)=>{t.d(m,{A:()=>_});var s=t("Z7aTuO5B"),r=t("SfPIQIJE"),e=t("d4kzUuQm"),p=t("rIl5IEuP");const A=[{title:"Lookup Tables",path:e.Ay.SYSTEM.LOOKUPTABLES.OVERVIEW,exactPathMatch:!0},{title:"Caches",path:e.Ay.SYSTEM.LOOKUPTABLES.CACHES.OVERVIEW},{title:"Data Adapters",path:e.Ay.SYSTEM.LOOKUPTABLES.DATA_ADAPTERS.OVERVIEW}],_=()=>s.createElement(p.Row,null,s.createElement(r.A,{items:A}))},yrynJauy:(v,m,t)=>{t.r(m),t.d(m,{default:()=>b});var s=t("ii0bleBb"),r=t.n(s),e=t("Z7aTuO5B"),p=t("ty2gyrHp"),A=t("8fnsnG21"),E=t("d4kzUuQm"),_=t("rIl5IEuP"),P=t("IOI9nV80"),O=t("iDhuQQu3"),g=t("XyJ0Mvpg"),l=t("c9JM82dZ"),T=t("HCsT5Gmk"),D=t("xPjmrmtt"),c=t("xg2EYAWP"),L=t("w4Oqfrlu"),C=t("N6x7vnl1"),W=Object.defineProperty,K=(n,a,o)=>a in n?W(n,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[a]=o,u=(n,a,o)=>(K(n,typeof a!="symbol"?a+"":a,o),o);const S=n=>{n.push(E.Ay.SYSTEM.LOOKUPTABLES.DATA_ADAPTERS.OVERVIEW)},h=({action:n})=>n==="create",y=n=>{c.G.validate(n)};class I extends e.Component{constructor(){super(...arguments),u(this,"errorStatesTimer"),u(this,"errorStatesInterval",1e3),u(this,"_startErrorStatesTimer",()=>{this._stopErrorStatesTimer(),this.errorStatesTimer=setInterval(()=>{const{dataAdapters:a}=this.props;let o=null;a&&(o=a.map(i=>i.name)),o&&D.B.getErrors(null,null,o||null)},this.errorStatesInterval)}),u(this,"_stopErrorStatesTimer",()=>{this.errorStatesTimer&&(clearInterval(this.errorStatesTimer),this.errorStatesTimer=void 0)}),u(this,"_loadData",a=>{const{pagination:o}=a,{page:i,pageSize:M}=this.props.paginationQueryParameter;this._stopErrorStatesTimer(),a.params&&a.params.adapterName?c.G.get(a.params.adapterName):h(a)?c.G.getTypes():(c.G.searchPaginated(i,M,o.query),this._startErrorStatesTimer())})}componentDidMount(){this._loadData(this.props)}componentDidUpdate(a){const{location:{pathname:o}}=this.props,{location:{pathname:i}}=a;o!==i&&this._loadData(this.props)}componentWillUnmount(){const{page:a,pageSize:o}=this.props.paginationQueryParameter;clearInterval(this.errorStatesTimer),c.G.searchPaginated(a,o)}render(){const{action:a,errorStates:o,dataAdapter:i,validationErrors:M,types:B,dataAdapters:f,pagination:N,history:R}=this.props;let d;const V=a==="show",U=a==="edit";return V||U?i?U?d=e.createElement(_.Row,{className:"content"},e.createElement(_.Col,{lg:12},e.createElement(O.I2,{dataAdapter:i,type:i.config.type,create:!1,title:"Data Adapter",saved:()=>S(R),validate:y,validationErrors:M}))):d=e.createElement(O.wb,{dataAdapter:i}):d=e.createElement(P.y$,{text:"Loading data adapter"}):h(this.props)?B?d=e.createElement(O.UZ,{types:B,saved:()=>S(R),validate:y,validationErrors:M}):d=e.createElement(P.y$,{text:"Loading data adapter types"}):f?d=e.createElement(O.gu,{dataAdapters:f,pagination:N,errorStates:o}):d=e.createElement(P.y$,{text:"Loading data adapters"}),e.createElement(P.Qc,{title:"Lookup Tables - Data Adapters"},e.createElement(L.A,null),e.createElement(P.zY,{title:"Data adapters for Lookup Tables",actions:e.createElement(p.m,{to:E.Ay.SYSTEM.LOOKUPTABLES.DATA_ADAPTERS.CREATE},e.createElement(_.Button,{bsStyle:"success",style:{marginLeft:5}},"Create data adapter"))},e.createElement("span",null,"Data adapters provide the actual values for lookup tables")),d)}}I.propTypes={errorStates:r().object,dataAdapter:r().object,validationErrors:r().object,types:r().object,pagination:r().object,dataAdapters:r().array,location:r().object.isRequired,action:r().string,paginationQueryParameter:r().object.isRequired,history:r().object.isRequired},I.defaultProps={errorStates:null,validationErrors:{},dataAdapters:null,types:null,pagination:null,dataAdapter:null,action:void 0};const b=(0,A.A)((0,C.A)((0,l.A)((0,T.A)((0,g.A)(I)))),{lookupTableStore:D.h,dataAdaptersStore:c.U},({dataAdaptersStore:n,lookupTableStore:a,...o})=>({...o,...n,errorStates:a.errorStates}))},c9JM82dZ:(v,m,t)=>{t.d(m,{A:()=>p});var s=t("Z7aTuO5B"),r=t("yAXMqwrl");const p=A=>E=>{const _=(0,r.useParams)();return s.createElement(A,{...E,params:_})}}}]);})();
//# sourceMappingURL=bb8c8232-7379.1d3e540d87eae7609c2e.js.map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy