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

web-interface.assets.NewSearchPage.6e59d13725f9bca5dc9a.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-124"],{iPvR7dhw:(m,a,e)=>{e.d(a,{Z:()=>n});var _=e("Z7aTuO5B"),r=e("g2NQZb9A");const n=t=>(0,_.useMemo)(()=>t.then(async s=>(await(0,r.Z)(s.search),s)),[t])},g8A9xjCU:(m,a,e)=>{e.d(a,{Z:()=>t});var _=e("Z7aTuO5B"),r=e("UmnljV2q"),o=e("NEG5q9sE");const t=({streamId:s,timeRange:P,queryString:E,parameters:i})=>(0,_.useMemo)(()=>(0,o.Z)({type:r.Z.Type.Search,streamId:s,timeRange:P,queryString:E,parameters:i}),[])},NEG5q9sE:(m,a,e)=>{e.d(a,{Z:()=>s});var _=e("gbXdylj1"),r=e("UmnljV2q"),o=e("dcP8FKpJ"),n=e("/coHI+Jz"),t=e("ZJjLtB2e");const s=async({type:P,streamId:E,timeRange:i,queryString:B,parameters:l})=>{const M=(0,t.Z)(E,void 0,i,B),C=n.Z.create().toBuilder().queries([M]).parameters(l).build(),u=await(0,o.Z)(P,E),A=r.Z.create().toBuilder().newId().type(P).state({[M.id]:u}).search(C).build();return(0,_.Z)(A)}},"hP+nVj7o":(m,a,e)=>{e.r(a),e.d(a,{default:()=>A});var _=e("Z7aTuO5B"),r=e("VPaD/Np4"),o=e.n(r),n=e("g8A9xjCU"),t=e("RhFA9EKs"),s=e("iPvR7dhw"),P=e("brbjQOmY"),E=e("7GNmVOX8"),i=e("BcOICGB7"),B=e("yM9BwDic"),l=e("oMyijaIY"),M=e("VcneZdh2");const C=()=>{const{"session-id":O}=(0,P.Z)();return(0,_.useMemo)(()=>{var v;if(O){const d=E.Z.get(O);E.Z.delete(O);const c=d?JSON.parse(d):void 0;if(c!=null&&c.parameters)return{parameters:c.parameters.map(D=>i.Z.fromJSON(D)),parameterBindings:o().Map(Object.entries((v=c.parameterBindings)!=null?v:{}).map(([D,T])=>[D,B.Z.fromJSON(T)]))}}return{parameters:void 0,parameterBindings:void 0}},[O])},A=()=>{const{parameters:O,parameterBindings:v}=C(),{timeRange:d,queryString:c,streams:D}=(0,t.k)(),T=(0,n.Z)({streamId:D,timeRange:d,queryString:c,parameters:O}),U=(0,s.Z)(T);return _.createElement(M.Z,{view:U,executionState:l.ZP.create(v),isNew:!0})}}}]);})();

//# sourceMappingURL=NewSearchPage.6e59d13725f9bca5dc9a.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy