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

web-interface.assets.1255d548-8966.daefc2cac5580d047728.js Maven / Gradle / Ivy

There is a newer version: 6.1.4
Show newest version
"use strict";(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["1255d548-8966"],{P66wbtRX:(S,P,t)=>{t.r(P),t.d(P,{default:()=>W});var M=t("ii0bleBb"),s=t.n(M),a=t("Z7aTuO5B"),v=t("ty2gyrHp"),T=t("8fnsnG21"),m=t("uZqmR+ju"),h=t("d4kzUuQm"),l=t("/GOzvPf6"),E=t("jgcyxQh5"),L=t("XyJ0Mvpg"),f=t("c9JM82dZ"),y=t("HCsT5Gmk"),r=t("s67As4Iu"),R=t("w4Oqfrlu"),U=t("N6x7vnl1"),A=Object.defineProperty,B=(n,e,o)=>e in n?A(n,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[e]=o,K=(n,e,o)=>(B(n,typeof e!="symbol"?e+"":e,o),o);const d=n=>{n.push(h.ZP.SYSTEM.LOOKUPTABLES.CACHES.OVERVIEW)},u=({action:n})=>n==="create",g=n=>{r.Z.validate(n)};class p extends a.Component{constructor(){super(...arguments),K(this,"_loadData",e=>{const{pagination:o}=e,{page:i,pageSize:_}=this.props.paginationQueryParameter;e.params&&e.params.cacheName?r.Z.get(e.params.cacheName):u(e)?r.Z.getTypes():r.Z.searchPaginated(i,_,o.query)})}componentDidMount(){this._loadData(this.props)}componentDidUpdate(e){const{location:{pathname:o}}=this.props,{location:{pathname:i}}=e;o!==i&&this._loadData(this.props)}componentWillUnmount(){const{page:e,pageSize:o}=this.props.paginationQueryParameter;r.Z.searchPaginated(e,o)}render(){const{action:e,cache:o,validationErrors:i,types:_,caches:O,pagination:I,history:D}=this.props;let c;const Z=e==="show",C=e==="edit";return Z||C?o?C?c=a.createElement(m.Row,{className:"content"},a.createElement(m.Col,{lg:12},a.createElement(E.H7,{cache:o,type:o.config.type,title:"Data Cache",create:!1,saved:()=>d(D),validate:g,validationErrors:i}))):c=a.createElement(E.Ct,{cache:o}):c=a.createElement(l.$j,{text:"Loading data cache"}):u(this.props)?_?c=a.createElement(E.rU,{types:_,saved:()=>d(D),validate:g,validationErrors:i}):c=a.createElement(l.$j,{text:"Loading data cache types"}):O?c=a.createElement(E.M5,{caches:O,pagination:I}):c=a.createElement(l.$j,{text:"Loading caches"}),a.createElement(l.$4,{title:"Lookup Tables - Caches"},a.createElement(R.Z,null),a.createElement(l.mr,{title:"Caches for Lookup Tables",actions:a.createElement(v.J,{to:h.ZP.SYSTEM.LOOKUPTABLES.CACHES.CREATE},a.createElement(m.Button,{bsStyle:"success",style:{marginLeft:5}},"Create cache"))},a.createElement("span",null,"Caches provide the actual values for lookup tables")),c)}}p.propTypes={cache:s().object,validationErrors:s().object,types:s().object,caches:s().array,history:s().object.isRequired,location:s().object.isRequired,pagination:s().object.isRequired,action:s().string,paginationQueryParameter:s().object.isRequired},p.defaultProps={cache:null,validationErrors:{},types:null,caches:null,action:void 0};const W=(0,T.Z)((0,U.Z)((0,f.Z)((0,y.Z)((0,L.Z)(p)))),{cachesStore:r.$},({cachesStore:n,...e})=>({...e,...n}))}}]);})();

//# sourceMappingURL=1255d548-8966.daefc2cac5580d047728.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy