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

web-interface.assets.NewDashboardPage.c82103dd5a5e1cb3fb9a.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-6618"],{iPvR7dhw:(B,o,e)=>{e.d(o,{Z:()=>n});var r=e("Z7aTuO5B"),l=e("g2NQZb9A");const n=u=>(0,r.useMemo)(()=>u.then(async d=>(await(0,l.Z)(d.search),d)),[u])},NEG5q9sE:(B,o,e)=>{e.d(o,{Z:()=>d});var r=e("gbXdylj1"),l=e("UmnljV2q"),a=e("dcP8FKpJ"),n=e("/coHI+Jz"),u=e("ZJjLtB2e");const d=async({type:v,streamId:h,timeRange:m,queryString:P,parameters:g})=>{const M=(0,u.Z)(h,void 0,m,P),D=n.Z.create().toBuilder().queries([M]).parameters(g).build(),t=await(0,a.Z)(v,h),i=l.Z.create().toBuilder().newId().type(v).state({[M.id]:t}).search(D).build();return(0,r.Z)(i)}},"9/bZdhqf":(B,o,e)=>{e.r(o),e.d(o,{default:()=>D});var r=e("Z7aTuO5B"),l=e("0t7Ye+61"),a=e("VPaD/Np4"),n=e("UmnljV2q");const d=t=>{const i=(0,a.Map)(t.search.queries.map(s=>[s.id,s])),E=(t.state||(0,a.Map)()).map((s,T)=>{const{timerange:w,query:f,filter:O=(0,a.Map)()}=i.get(T),L=(O?O.get("filters",(0,a.List)()):(0,a.List)()).filter(c=>a.Map.isMap(c)&&c.get("type")==="stream").map(c=>c.get("id")).toList().toArray(),A=s.widgets.map(c=>c.toBuilder().timerange(w).query(f).streams(L).build()).toList();return s.toBuilder().widgets(A).build()}).toMap(),Z=t.search.queries.map(s=>s.toBuilder().query({...s.query,query_string:""}).build()).toSet(),y=t.search.toBuilder().queries(Z).build();return t.toBuilder().newId().type(n.Z.Type.Dashboard).state(E).search(y).build()};var v=e("/GOzvPf6"),h=e("NEG5q9sE"),m=e("iPvR7dhw"),P=e("gbXdylj1"),g=e("VcneZdh2");const D=()=>{var t;const i=(0,l.Z)(),E=(t=i==null?void 0:i.state)==null?void 0:t.view,Z=(0,r.useMemo)(()=>E!=null&&E.search?Promise.resolve((0,P.Z)(d(E))):(0,h.Z)({type:n.Z.Type.Dashboard}),[]),y=(0,m.Z)(Z);return r.createElement(v.AE,{permissions:"dashboards:create"},r.createElement(g.Z,{view:y,isNew:!0}))}}}]);})();

//# sourceMappingURL=NewDashboardPage.c82103dd5a5e1cb3fb9a.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy