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