web-interface.assets.LoggedInPage.1dcea87d1e4af4cb73ee.js Maven / Gradle / Ivy
"use strict";(()=>{(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["1255d548-6663"],{Vmfu2XtV:(q,x,t)=>{t.d(x,{Z:()=>L});var e=t("Z7aTuO5B"),W=t("/GOzvPf6"),D=t("uZqmR+ju");const E=({showProfile:n})=>e.createElement(D.Alert,{bsStyle:"info"},"We would like to collect anonymous usage data to help us prioritize improvements and make Graylog better in the future.",e.createElement("br",null),"We do not collect personal data, sensitive information, or content such as logs in your instances.",e.createElement("br",null),"Learn more on our ",e.createElement(W.dL,{href:"https://www.graylog.org/privacy-policy/"},"Privacy Policy"),".",e.createElement("br",null),"You can turn data collection off or on any time",n&&e.createElement("b",null," in the user profile"),!n&&" here",".");E.defaultProps={showProfile:void 0};const L=E},"vMorKP/N":(q,x,t)=>{t.d(x,{Z:()=>D});var e=t("VPaD/Np4"),W=t.n(e);class D{constructor(n,S,l,T,v,h,c,P,g,I,Z,u,A,f,C,N,O,M,R,y,U){this._value={id:n,username:S,fullName:l,firstName:T,lastName:v,email:h,permissions:c,timezone:P,preferences:g,roles:I,readOnly:Z,external:u,sessionTimeoutMs:A,startpage:f,sessionActive:C,clientAddress:N,lastActivity:O,accountStatus:M,grnPermissions:y,serviceAccount:R,authServiceEnabled:U}}get id(){return this._value.id}get username(){return this._value.username}get fullName(){return this._value.fullName}get firstName(){return this._value.firstName}get lastName(){return this._value.lastName}get email(){return this._value.email}get grnPermissions(){return this._value.grnPermissions}get permissions(){return this._value.permissions}get timezone(){return this._value.timezone}get preferences(){return this._value.preferences}get roles(){return this._value.roles}get readOnly(){return this._value.readOnly}get external(){return this._value.external}get accountStatus(){return this._value.accountStatus}get serviceAccount(){return this._value.serviceAccount}get sessionTimeoutMs(){return this._value.sessionTimeoutMs}get sessionTimeout(){if(!this.sessionTimeoutMs)return;const n=24*60*60*1e3,S=60*60*1e3,l=60*1e3,T=1e3,h=(P=>P===0?[T,"Seconds"]:P%n===0?[n,"Days"]:P%S===0?[S,"Hours"]:P%l===0?[l,"Minutes"]:[T,"Seconds"])(this.sessionTimeoutMs);return{value:Math.floor(this.sessionTimeoutMs/h[0]),unitMS:h[0],unitString:h[1]}}get startpage(){return this._value.startpage}get sessionActive(){return this._value.sessionActive}get clientAddress(){return this._value.clientAddress}get lastActivity(){return this._value.lastActivity}get authServiceEnabled(){return this._value.authServiceEnabled}toBuilder(){const{id:n,username:S,fullName:l,firstName:T,lastName:v,email:h,permissions:c,grnPermissions:P,timezone:g,preferences:I,roles:Z,readOnly:u,external:A,sessionTimeoutMs:f,startpage:C,sessionActive:N,clientAddress:O,lastActivity:M,accountStatus:R,serviceAccount:y,authServiceEnabled:U}=this._value;return new E(e.Map({id:n,username:S,fullName:l,firstName:T,lastName:v,email:h,permissions:c,timezone:g,grnPermissions:P,preferences:I,roles:Z,readOnly:u,external:A,sessionTimeoutMs:f,startpage:C,sessionActive:N,clientAddress:O,lastActivity:M,accountStatus:R,serviceAccount:y,authServiceEnabled:U}))}static create(n,S,l,T,v,h,c,P,g,I,Z,u,A,f,C,N,O,M,R,y,U){return new D(n,S,l,T,v,h,c,P,g,I,Z,u,A,f,C,N,O,M,R,y,U)}static empty(){return D.create("","","","",e.List(),"",{},e.Set(),!1,!1,-1,void 0,!1,"","","enabled")}toJSON(){const{id:n,username:S,fullName:l,firstName:T,lastName:v,email:h,grnPermissions:c,permissions:P,timezone:g,preferences:I,roles:Z,readOnly:u,external:A,sessionTimeoutMs:f,startpage:C,sessionActive:N,clientAddress:O,lastActivity:M,accountStatus:R,serviceAccount:y,authServiceEnabled:U}=this._value;return{id:n,username:S,full_name:l,first_name:T,last_name:v,email:h,grn_permissions:c?c.toJS():[],permissions:P?P.toArray():[],timezone:g,preferences:I,roles:Z?Z.toArray():[],read_only:u,external:A,session_timeout_ms:f,startpage:C,session_active:N,client_address:O,last_activity:M,account_status:R,service_account:y,auth_service_enabled:U}}static fromJSON(n){const{id:S,username:l,full_name:T,first_name:v,last_name:h,email:c,grn_permissions:P,permissions:g,timezone:I,preferences:Z,roles:u,read_only:A,external:f,session_timeout_ms:C,startpage:N,session_active:O,client_address:M,last_activity:R,account_status:y,service_account:U,auth_service_enabled:X}=n;return D.create(S,l,T,v,h,c,e.List(g),I,Z,e.Set(u),A,f,C,N,O,M,R,y,U,e.List(P),X)}static builder(){return new E}}class E{constructor(n=e.Map()){this.value=n}id(n){return new E(this.value.set("id",n))}username(n){return new E(this.value.set("username",n))}fullName(n){return new E(this.value.set("fullName",n))}firstName(n){return new E(this.value.set("firstName",n))}lastName(n){return new E(this.value.set("lastName",n))}email(n){return new E(this.value.set("email",n))}grnPermissions(n){return new E(this.value.set("grnPermissions",n))}permissions(n){return new E(this.value.set("permissions",n))}timezone(n){return new E(this.value.set("timezone",n))}preferences(n){return new E(this.value.set("preferences",n))}roles(n){return new E(this.value.set("roles",n))}readOnly(n){return new E(this.value.set("readOnly",n))}external(n){return new E(this.value.set("external",n))}sessionTimeoutMs(n){return new E(this.value.set("sessionTimeoutMs",n))}startpage(n){return new E(this.value.set("startpage",n))}sessionActive(n){return new E(this.value.set("sessionActive",n))}clientAddress(n){return new E(this.value.set("clientAddress",n))}lastActivity(n){return new E(this.value.set("lastActivity",n))}accountStatus(n){return new E(this.value.set("accountStatus",n))}serviceAccount(n){return new E(this.value.set("serviceAccount",n))}authServiceEnabled(n){return new E(this.value.set("authServiceEnabled",n))}build(){const{id:n,username:S,fullName:l,firstName:T,lastName:v,email:h,permissions:c,timezone:P,preferences:g,roles:I,readOnly:Z,external:u,sessionTimeoutMs:A,startpage:f,sessionActive:C,clientAddress:N,lastActivity:O,accountStatus:M,serviceAccount:R,grnPermissions:y,authServiceEnabled:U}=this.value.toObject();return new D(n,S,l,T,v,h,c,P,g,I,Z,u,A,f,C,N,O,M,R,y,U)}}},aQ8GUzPu:(q,x,t)=>{t.r(x),t.d(x,{default:()=>rn});var e=t("Z7aTuO5B"),W=t("1jSicls3"),D=t("+w7neh6x"),E=t("0eB11aFj"),L=t("RCNj0OY4"),n=t("d4kzUuQm"),S=t("MdYBRjRJ"),l=t("8jTixuP6");const T=(0,l.Z)(()=>Promise.all([t.e("1255d548-2378"),t.e("1255d548-2951")]).then(t.bind(t,"lztJEUoH"))),v=(0,l.Z)(()=>Promise.all([t.e("1255d548-2378"),t.e("1255d548-3495")]).then(t.bind(t,"VTwQeCkM"))),h=(0,l.Z)(()=>Promise.all([t.e("1255d548-2378"),t.e("1255d548-9582")]).then(t.bind(t,"8hNhUys2"))),c=(0,l.Z)(()=>Promise.all([t.e("1255d548-2378"),t.e("1255d548-8440")]).then(t.bind(t,"GyKb0veu"))),P=(0,l.Z)(()=>Promise.all([t.e("1255d548-2378"),t.e("1255d548-1899")]).then(t.bind(t,"z8feUxhx"))),g=(0,l.Z)(()=>Promise.all([t.e("1255d548-2378"),t.e("1255d548-832")]).then(t.bind(t,"oOBRVnUG"))),I=(0,l.Z)(()=>t.e("1255d548-8461").then(t.bind(t,"t+Jkqvd1"))),Z=(0,l.Z)(()=>t.e("1255d548-4376").then(t.bind(t,"upRafL+V"))),u=(0,l.Z)(()=>Promise.all([t.e("1255d548-3703"),t.e("1255d548-1449"),t.e("1255d548-3668"),t.e("1255d548-9738")]).then(t.bind(t,"hp/AhXwo"))),A=(0,l.Z)(()=>Promise.all([t.e("1255d548-5673"),t.e("1255d548-4440")]).then(t.bind(t,"xhcXzwie"))),f=(0,l.Z)(()=>Promise.all([t.e("1255d548-5843"),t.e("1255d548-9366"),t.e("1255d548-8905"),t.e("1255d548-539"),t.e("1255d548-8592")]).then(t.bind(t,"fXZFqfJz"))),C=(0,l.Z)(()=>Promise.all([t.e("1255d548-5843"),t.e("1255d548-5226")]).then(t.bind(t,"ipCdamDE"))),N=(0,l.Z)(()=>Promise.all([t.e("1255d548-5673"),t.e("1255d548-7664"),t.e("1255d548-1235"),t.e("1255d548-1917")]).then(t.bind(t,"RR0vGaDi"))),O=(0,l.Z)(()=>Promise.all([t.e("1255d548-2065"),t.e("1255d548-7246")]).then(t.bind(t,"eOIP7AmL"))),M=(0,l.Z)(()=>t.e("1255d548-5205").then(t.bind(t,"fELIV7aL"))),R=(0,l.Z)(()=>Promise.all([t.e("1255d548-5843"),t.e("1255d548-9366"),t.e("1255d548-8905"),t.e("1255d548-539"),t.e("1255d548-3486")]).then(t.bind(t,"/kPfgGki"))),y=(0,l.Z)(()=>Promise.all([t.e("1255d548-5843"),t.e("1255d548-7947")]).then(t.bind(t,"G3GhAzW+"))),U=(0,l.Z)(()=>Promise.all([t.e("1255d548-5673"),t.e("1255d548-7664"),t.e("1255d548-1235"),t.e("1255d548-5573")]).then(t.bind(t,"5WTdac/v"))),X=(0,l.Z)(()=>Promise.all([t.e("1255d548-2065"),t.e("1255d548-7295")]).then(t.bind(t,"MUgCiC8O"))),vt=(0,l.Z)(()=>Promise.all([t.e("1255d548-1217"),t.e("1255d548-3848")]).then(t.bind(t,"QOBe4tCv"))),Zt=(0,l.Z)(()=>Promise.all([t.e("1255d548-9366"),t.e("1255d548-8905"),t.e("1255d548-6717")]).then(t.bind(t,"3CnfofFa"))),gt=(0,l.Z)(()=>Promise.all([t.e("1255d548-5843"),t.e("1255d548-9985")]).then(t.bind(t,"1hA+0wID"))),It=(0,l.Z)(()=>Promise.all([t.e("1255d548-9366"),t.e("1255d548-8905"),t.e("1255d548-3945")]).then(t.bind(t,"Sn3eYRx3"))),ut=(0,l.Z)(()=>t.e("1255d548-4889").then(t.bind(t,"ONWJQjEM"))),_=(0,l.Z)(()=>Promise.all([t.e("1255d548-7375"),t.e("1255d548-7516"),t.e("1255d548-6800")]).then(t.bind(t,"+U5Unhmb"))),At=(0,l.Z)(()=>Promise.all([t.e("1255d548-64"),t.e("1255d548-8373")]).then(t.bind(t,"6otxL8V5"))),ft=(0,l.Z)(()=>t.e("1255d548-2507").then(t.bind(t,"2ZvCF5AB"))),Ct=(0,l.Z)(()=>t.e("1255d548-7644").then(t.bind(t,"ODdtntEF"))),Nt=(0,l.Z)(()=>t.e("1255d548-795").then(t.bind(t,"ck17yDCE"))),Ot=(0,l.Z)(()=>Promise.all([t.e("1255d548-3668"),t.e("1255d548-8940"),t.e("1255d548-2379")]).then(t.bind(t,"DF0gSDSJ"))),Mt=(0,l.Z)(()=>Promise.all([t.e("1255d548-3668"),t.e("1255d548-8940"),t.e("1255d548-2746")]).then(t.bind(t,"Sc4QlGNN"))),Rt=(0,l.Z)(()=>Promise.all([t.e("1255d548-3668"),t.e("1255d548-8940"),t.e("1255d548-4499")]).then(t.bind(t,"QImtDXel"))),yt=(0,l.Z)(()=>Promise.all([t.e("1255d548-3668"),t.e("1255d548-8940"),t.e("1255d548-6490")]).then(t.bind(t,"mbovFJPp"))),Ut=(0,l.Z)(()=>Promise.all([t.e("1255d548-5299"),t.e("1255d548-3580")]).then(t.bind(t,"02tGNaPy"))),Nn=(0,l.Z)(()=>t.e("1255d548-7899").then(t.bind(t,"on2+SG6N"))),Dt=(0,l.Z)(()=>t.e("1255d548-6202").then(t.bind(t,"6Q7xl8L7"))),On=(0,l.Z)(()=>t.e("1255d548-7789").then(t.bind(t,"EdMu6A9M"))),F=(0,l.Z)(()=>Promise.all([t.e("1255d548-5967"),t.e("1255d548-4349"),t.e("1255d548-8966")]).then(t.bind(t,"P66wbtRX"))),V=(0,l.Z)(()=>Promise.all([t.e("1255d548-5967"),t.e("1255d548-4349"),t.e("1255d548-9693")]).then(t.bind(t,"yrynJauy"))),B=(0,l.Z)(()=>Promise.all([t.e("1255d548-5967"),t.e("1255d548-4349"),t.e("1255d548-5372")]).then(t.bind(t,"bw5WaAMC"))),Lt=(0,l.Z)(()=>Promise.all([t.e("1255d548-5299"),t.e("1255d548-1314")]).then(t.bind(t,"i2F0lxHX"))),Yt=(0,l.Z)(()=>Promise.all([t.e("1255d548-7691"),t.e("1255d548-6303")]).then(t.bind(t,"8nUEfzAq"))),tt=(0,l.Z)(()=>Promise.resolve().then(t.bind(t,"sIZ0mQDD"))),xt=(0,l.Z)(()=>Promise.all([t.e("1255d548-5967"),t.e("1255d548-2032")]).then(t.bind(t,"Y4ZJYI0O"))),Gt=(0,l.Z)(()=>Promise.all([t.e("1255d548-5967"),t.e("1255d548-9821")]).then(t.bind(t,"rwPgmTJe"))),Kt=(0,l.Z)(()=>t.e("1255d548-6712").then(t.bind(t,"h9dXfBVx"))),Wt=(0,l.Z)(()=>t.e("1255d548-6436").then(t.bind(t,"tGaNIta6"))),Ht=(0,l.Z)(()=>t.e("1255d548-5199").then(t.bind(t,"7f/pGhgG"))),Ft=(0,l.Z)(()=>t.e("1255d548-699").then(t.bind(t,"DHbpw63n"))),Vt=(0,l.Z)(()=>Promise.all([t.e("1255d548-5967"),t.e("1255d548-7466")]).then(t.bind(t,"mLWLvpJt"))),Bt=(0,l.Z)(()=>t.e("1255d548-3135").then(t.bind(t,"UOligA8Q"))),zt=(0,l.Z)(()=>Promise.all([t.e("1255d548-5673"),t.e("1255d548-7664"),t.e("1255d548-4126")]).then(t.bind(t,"lm35p+IR"))),Jt=(0,l.Z)(()=>Promise.all([t.e("1255d548-5843"),t.e("1255d548-8617")]).then(t.bind(t,"TzPJ8l65"))),Qt=(0,l.Z)(()=>t.e("1255d548-7421").then(t.bind(t,"ZNpXXpDf"))),Xt=(0,l.Z)(()=>Promise.all([t.e("1255d548-5967"),t.e("1255d548-9145")]).then(t.bind(t,"5kDqexKE"))),jt=(0,l.Z)(()=>Promise.all([t.e("1255d548-7691"),t.e("1255d548-3913")]).then(t.bind(t,"HntqvQkd"))),$t=(0,l.Z)(()=>Promise.all([t.e("1255d548-1727"),t.e("1255d548-1149")]).then(t.bind(t,"nivIhX0y"))),pt=(0,l.Z)(()=>Promise.all([t.e("1255d548-1727"),t.e("1255d548-5210")]).then(t.bind(t,"Lm/630hr"))),bt=(0,l.Z)(()=>Promise.all([t.e("1255d548-2801"),t.e("1255d548-7195")]).then(t.bind(t,"WSzoNBGn"))),wt=(0,l.Z)(()=>Promise.all([t.e("1255d548-7892"),t.e("1255d548-8988")]).then(t.bind(t,"H5zpvCML"))),kt=(0,l.Z)(()=>Promise.all([t.e("1255d548-2801"),t.e("1255d548-6543")]).then(t.bind(t,"ywgbH3dj"))),qt=(0,l.Z)(()=>Promise.all([t.e("1255d548-7892"),t.e("1255d548-224")]).then(t.bind(t,"xYWcT9yn"))),_t=(0,l.Z)(()=>t.e("1255d548-4594").then(t.bind(t,"2bMZsp0q"))),te=(0,l.Z)(()=>t.e("1255d548-8579").then(t.bind(t,"A0QLPFdm"))),ee=(0,l.Z)(()=>t.e("1255d548-5912").then(t.bind(t,"qgOA+rtT"))),ne=(0,l.Z)(()=>Promise.all([t.e("1255d548-7375"),t.e("1255d548-5208")]).then(t.bind(t,"UkvfjvOJ"))),le=(0,l.Z)(()=>t.e("1255d548-7604").then(t.bind(t,"BrkhJCqs"))),se=(0,l.Z)(()=>Promise.all([t.e("1255d548-7375"),t.e("1255d548-7516"),t.e("1255d548-2501")]).then(t.bind(t,"VBBnYA0D"))),oe=(0,l.Z)(()=>Promise.all([t.e("1255d548-5690"),t.e("1255d548-490")]).then(t.bind(t,"3qcBrIJh"))),ae=(0,l.Z)(()=>t.e("1255d548-5534").then(t.bind(t,"TVIxvOFy"))),de=(0,l.Z)(()=>Promise.all([t.e("1255d548-5690"),t.e("1255d548-3245")]).then(t.bind(t,"PkmK0urH"))),me=(0,l.Z)(()=>Promise.all([t.e("1255d548-1217"),t.e("1255d548-3519")]).then(t.bind(t,"IMwNIfWz"))),Ee=(0,l.Z)(()=>t.e("1255d548-6323").then(t.bind(t,"KvPuPDfl"))),Pe=(0,l.Z)(()=>t.e("1255d548-1258").then(t.bind(t,"+ERuxdt7"))),ie=(0,l.Z)(()=>t.e("1255d548-2012").then(t.bind(t,"+Qqic3/j"))),Se=(0,l.Z)(()=>Promise.all([t.e("1255d548-3601"),t.e("1255d548-6087")]).then(t.bind(t,"Yul/IdmX"))),he=(0,l.Z)(()=>Promise.all([t.e("1255d548-3601"),t.e("1255d548-8956")]).then(t.bind(t,"aXQp/Ie7"))),re=(0,l.Z)(()=>Promise.all([t.e("1255d548-3601"),t.e("1255d548-8890")]).then(t.bind(t,"M4KelNzO"))),Te=(0,l.Z)(()=>t.e("1255d548-6217").then(t.bind(t,"uzHJ6m8N"))),ce=(0,l.Z)(()=>t.e("1255d548-5831").then(t.bind(t,"+3+DnmaH"))),ve=(0,l.Z)(()=>Promise.all([t.e("1255d548-5843"),t.e("1255d548-9366"),t.e("1255d548-8905"),t.e("1255d548-7396")]).then(t.bind(t,"hjSh+MWv")));var Ze=t("ii0bleBb"),G=t.n(Ze),ge=t("6vcCRWgg"),Ie=Object.defineProperty,ue=(o,s,a)=>s in o?Ie(o,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):o[s]=a,et=(o,s,a)=>(ue(o,typeof s!="symbol"?s+"":s,a),a);class j extends e.Component{constructor(s){super(s),this.state={}}componentDidCatch(s,a){this.setState({error:s,info:a})}render(){const{error:s,info:a}=this.state,{children:m}=this.props;return s?e.createElement(ge.Z,{error:s,componentStack:a.componentStack}):m}}et(j,"propTypes",{children:G().node}),et(j,"defaultProps",{children:null});const Ae=j;var nt=t("0hhBr0/b"),fe=t("y2LHvPyS");const lt=({children:o})=>{const s=(0,nt.Z)("globalContextProviders");return!s||(s==null?void 0:s.length)===0?o:s.reduce((a,m)=>e.createElement(fe.SV,{FallbackComponent:()=>a},e.createElement(m,null,a)),o)},z=({path:o,component:s,parentComponent:a,requiredFeatureFlag:m})=>{if(m&&!L.Z.isFeatureEnabled(m))return null;const r=a!=null?a:e.Fragment,d=()=>e.createElement(r,null,e.createElement(s,null));return{path:(0,S.s6)(o),element:e.createElement(d,null)}},st=o=>o.parentComponent===D.Z,Ce=()=>{const o=(0,nt.Z)("routes"),s=o.filter(i=>i.parentComponent===null).map(i=>z({...i,parentComponent:lt})),a=o.filter(i=>st(i)).map(i=>z({...i,parentComponent:null})),m=o.filter(i=>i.parentComponent&&!st(i)).map(z),r=o.filter(i=>i.parentComponent===void 0).map(z),d=L.Z.isCloud();let Y=!0;L.Z.isCloud()&&(Y=L.Z.isFeatureEnabled("cloud_inputs"));const K=(0,W.aj)([...s,{path:n.ZP.STARTPAGE,element:e.createElement(lt,null,e.createElement(D.Z,null)),children:[{path:n.ZP.STARTPAGE,element:e.createElement(le,null)},{path:n.ZP.SEARCH,element:e.createElement(M,null)},...m,...a,{path:`${L.Z.gl2AppPathPrefix()}/`,element:e.createElement(E.Z,null),children:[{path:n.ZP.message_show(":index",":messageId"),element:e.createElement(Qt,null)},{path:n.ZP.WELCOME,element:e.createElement(At,null)},{path:n.ZP.STREAMS,element:e.createElement(ae,null)},{path:n.ZP.stream_edit(":streamId"),element:e.createElement(se,null)},!d&&{path:n.ZP.stream_outputs(":streamId"),element:e.createElement(oe,null)},{path:n.ZP.ALERTS.LIST,element:e.createElement(It,null)},{path:n.ZP.ALERTS.DEFINITIONS.LIST,element:e.createElement(Zt,null)},{path:n.ZP.ALERTS.DEFINITIONS.CREATE,element:e.createElement(f,null)},{path:n.ZP.ALERTS.DEFINITIONS.edit(":definitionId"),element:e.createElement(R,null)},{path:n.ZP.ALERTS.DEFINITIONS.show(":definitionId"),element:e.createElement(ve,null)},{path:n.ZP.ALERTS.NOTIFICATIONS.LIST,element:e.createElement(gt,null)},{path:n.ZP.ALERTS.NOTIFICATIONS.CREATE,element:e.createElement(C,null)},{path:n.ZP.ALERTS.NOTIFICATIONS.edit(":notificationId"),element:e.createElement(y,null)},{path:n.ZP.ALERTS.NOTIFICATIONS.show(":notificationId"),element:e.createElement(Jt,null)},Y&&{path:n.ZP.SYSTEM.INPUTS,element:e.createElement(Ut,null)},!d&&{path:n.ZP.node_inputs(":nodeId"),element:e.createElement(Lt,null)},!d&&{path:n.ZP.global_input_extractors(":inputId"),element:e.createElement(_,null)},!d&&{path:n.ZP.local_input_extractors(":nodeId",":inputId"),element:e.createElement(_,null)},!d&&{path:n.ZP.new_extractor(":nodeId",":inputId"),element:e.createElement(O,null)},!d&&{path:n.ZP.edit_extractor(":nodeId",":inputId",":extractorId"),element:e.createElement(X,null)},!d&&{path:n.ZP.import_extractors(":nodeId",":inputId"),element:e.createElement(Ct,null)},!d&&{path:n.ZP.export_extractors(":nodeId",":inputId"),element:e.createElement(ut,null)},{path:`${n.ZP.SYSTEM.CONFIGURATIONS}/*`,element:e.createElement(u,null)},{path:n.ZP.SYSTEM.CONTENTPACKS.LIST,element:e.createElement(A,null)},{path:n.ZP.SYSTEM.CONTENTPACKS.CREATE,element:e.createElement(N,null)},{path:n.ZP.SYSTEM.CONTENTPACKS.edit(":contentPackId",":contentPackRev"),element:e.createElement(U,null)},{path:n.ZP.SYSTEM.CONTENTPACKS.show(":contentPackId"),element:e.createElement(zt,null)},{path:n.ZP.SYSTEM.GROKPATTERNS,element:e.createElement(ft,null)},{path:n.ZP.SYSTEM.INDEX_SETS.CREATE,element:e.createElement(Mt,null)},{path:n.ZP.SYSTEM.INDEX_SETS.SHOW(":indexSetId"),element:e.createElement(Rt,null)},{path:n.ZP.SYSTEM.INDEX_SETS.CONFIGURATION(":indexSetId"),element:e.createElement(Ot,null)},{path:n.ZP.SYSTEM.INDICES.LIST,element:e.createElement(yt,null)},!d&&{path:n.ZP.SYSTEM.INDICES.FAILURES,element:e.createElement(Nt,null)},{path:n.ZP.SYSTEM.LOOKUPTABLES.OVERVIEW,element:e.createElement(B,null)},{path:n.ZP.SYSTEM.LOOKUPTABLES.CREATE,element:e.createElement(B,{action:"create"})},{path:n.ZP.SYSTEM.LOOKUPTABLES.show(":tableName"),element:e.createElement(B,{action:"show"})},{path:n.ZP.SYSTEM.LOOKUPTABLES.edit(":tableName"),element:e.createElement(B,{action:"edit"})},{path:n.ZP.SYSTEM.LOOKUPTABLES.CACHES.OVERVIEW,element:e.createElement(F,null)},{path:n.ZP.SYSTEM.LOOKUPTABLES.CACHES.CREATE,element:e.createElement(F,{action:"create"})},{path:n.ZP.SYSTEM.LOOKUPTABLES.CACHES.show(":cacheName"),element:e.createElement(F,{action:"show"})},{path:n.ZP.SYSTEM.LOOKUPTABLES.CACHES.edit(":cacheName"),element:e.createElement(F,{action:"edit"})},{path:n.ZP.SYSTEM.LOOKUPTABLES.DATA_ADAPTERS.OVERVIEW,element:e.createElement(V,null)},{path:n.ZP.SYSTEM.LOOKUPTABLES.DATA_ADAPTERS.CREATE,element:e.createElement(V,{action:"create"})},{path:n.ZP.SYSTEM.LOOKUPTABLES.DATA_ADAPTERS.show(":adapterName"),element:e.createElement(V,{action:"show"})},{path:n.ZP.SYSTEM.LOOKUPTABLES.DATA_ADAPTERS.edit(":adapterName"),element:e.createElement(V,{action:"edit"})},{path:n.ZP.SYSTEM.PIPELINES.OVERVIEW,element:e.createElement(Gt,null)},{path:n.ZP.SYSTEM.PIPELINES.RULES,element:e.createElement(Vt,null)},{path:n.ZP.SYSTEM.PIPELINES.RULE(":ruleId"),element:e.createElement(Ft,null)},{path:n.ZP.SYSTEM.PIPELINES.SIMULATOR,element:e.createElement(ne,null)},{path:n.ZP.SYSTEM.PIPELINES.PIPELINE(":pipelineId"),element:e.createElement(xt,null)},!d&&{path:n.ZP.SYSTEM.LOGGING,element:e.createElement(Dt,null)},{path:n.ZP.SYSTEM.METRICS(":nodeId"),element:e.createElement(Xt,null)},!d&&{path:n.ZP.SYSTEM.NODES.LIST,element:e.createElement(Yt,null)},!d&&{path:n.ZP.SYSTEM.NODES.SHOW(":nodeId"),element:e.createElement(jt,null)},!d&&{path:n.ZP.SYSTEM.OUTPUTS,element:e.createElement(de,null)},!d&&{path:n.ZP.SYSTEM.AUTHENTICATION.BACKENDS.ACTIVE,element:e.createElement(g,null)},!d&&{path:n.ZP.SYSTEM.AUTHENTICATION.BACKENDS.CREATE,element:e.createElement(c,null)},!d&&{path:n.ZP.SYSTEM.AUTHENTICATION.BACKENDS.OVERVIEW,element:e.createElement(P,null)},!d&&{path:n.ZP.SYSTEM.AUTHENTICATION.BACKENDS.show(":backendId"),element:e.createElement(v,null)},!d&&{path:n.ZP.SYSTEM.AUTHENTICATION.BACKENDS.edit(":backendId"),element:e.createElement(h,null)},!d&&{path:n.ZP.SYSTEM.AUTHENTICATION.BACKENDS.createBackend(":name"),element:e.createElement(T,null)},!d&&{path:n.ZP.SYSTEM.AUTHENTICATION.AUTHENTICATORS.SHOW,element:e.createElement(I,null)},!d&&{path:n.ZP.SYSTEM.AUTHENTICATION.AUTHENTICATORS.EDIT,element:e.createElement(Z,null)},{path:n.ZP.SYSTEM.USERS.OVERVIEW,element:e.createElement(ce,null)},{path:n.ZP.SYSTEM.USERS.CREATE,element:e.createElement(Se,null)},{path:n.ZP.SYSTEM.USERS.show(":userId"),element:e.createElement(he,null)},{path:n.ZP.SYSTEM.USERS.edit(":userId"),element:e.createElement(re,null)},{path:n.ZP.SYSTEM.USERS.TOKENS.edit(":userId"),element:e.createElement(Te,null)},{path:n.ZP.SYSTEM.AUTHZROLES.OVERVIEW,element:e.createElement(Ht,null)},{path:n.ZP.SYSTEM.AUTHZROLES.show(":roleId"),element:e.createElement(Kt,null)},{path:n.ZP.SYSTEM.AUTHZROLES.edit(":roleId"),element:e.createElement(Wt,null)},{path:n.ZP.SYSTEM.OVERVIEW,element:e.createElement(me,null)},{path:n.ZP.SYSTEM.PROCESSBUFFERDUMP(":nodeId"),element:e.createElement(ie,null)},{path:n.ZP.SYSTEM.THREADDUMP(":nodeId"),element:e.createElement(Pe,null)},{path:n.ZP.SYSTEM.SYSTEMLOGS(":nodeId"),element:e.createElement(Ee,null)},{path:n.ZP.SYSTEM.ENTERPRISE,element:e.createElement(vt,null)},{path:n.ZP.SECURITY,element:e.createElement(Bt,null)},{path:n.ZP.SYSTEM.SIDECARS.OVERVIEW,element:e.createElement(te,null)},{path:n.ZP.SYSTEM.SIDECARS.STATUS(":sidecarId"),element:e.createElement(ee,null)},{path:n.ZP.SYSTEM.SIDECARS.ADMINISTRATION,element:e.createElement($t,null)},{path:n.ZP.SYSTEM.SIDECARS.CONFIGURATION,element:e.createElement(pt,null)},{path:n.ZP.SYSTEM.SIDECARS.FAILURE_TRACKING,element:e.createElement(_t,null)},{path:n.ZP.SYSTEM.SIDECARS.NEW_CONFIGURATION,element:e.createElement(qt,null)},{path:n.ZP.SYSTEM.SIDECARS.EDIT_CONFIGURATION(":configurationId"),element:e.createElement(wt,null)},{path:n.ZP.SYSTEM.SIDECARS.NEW_COLLECTOR,element:e.createElement(kt,null)},{path:n.ZP.SYSTEM.SIDECARS.EDIT_COLLECTOR(":collectorId"),element:e.createElement(bt,null)},...r,{path:"*",element:e.createElement(tt,{displayPageLayout:!1})}].filter(i=>!!i)},{path:n.ZP.NOTFOUND,element:e.createElement(tt,null)}]}]);return e.createElement(Ae,null,e.createElement(W.pG,{router:K}))};var Ne=t("oBEvVL7M"),Oe=t("Ds5vWZ1u"),ot=t("q2j1bVbz"),Me=t("lN93Sbbu");const at=({children:o})=>{const s=(0,ot.Z)(),a=s==null?void 0:s.preferences;return a?e.createElement(Me.Z.Provider,{value:a},o):o};at.propTypes={children:G().node.isRequired};const Re=at;var ye=t("/yh+QgO6"),Ue=t.n(ye),J=t("8fnsnG21"),De=t("vMorKP/N"),Le=t("J1ga+jW6"),Ye=t("fGU5yqDp");const dt=({children:o})=>{const s=(0,J.o)(Le.D,m=>Ue()(m,"currentUser")),a=s?De.Z.fromJSON(s):void 0;return a?e.createElement(Ye.Z.Provider,{value:a},o):o};dt.propTypes={children:G().node.isRequired};const xe=dt;var Ge=t("nrvTDoPl"),$=t("IZYxBTgT");const Ke=(o,s)=>{var a,m;return s||((m=(a=o!=null?o:(0,$.x_)())!=null?a:L.Z.rootTimeZone())!=null?m:"UTC")},mt=({children:o,tz:s})=>{const a=(0,e.useCallback)(d=>(0,$.rG)(d,void 0,s),[s]),m=(0,e.useCallback)((d,Y="default")=>a(d).format($.eZ[Y]),[a]),r=(0,e.useMemo)(()=>({toUserTimezone:a,formatTime:m,userTimezone:s}),[a,m,s]);return e.createElement(Ge.Z.Provider,{value:r},o)},We=({children:o})=>{const s=(0,ot.Z)(),a=(0,e.useMemo)(()=>Ke(s==null?void 0:s.timezone),[s==null?void 0:s.timezone]);return e.createElement(mt,{tz:a},o)},Et=({children:o,tz:s})=>s?e.createElement(mt,{tz:s},o):e.createElement(We,null,o);Et.defaultProps={tz:void 0};const He=Et,Pt=({children:o})=>e.createElement(xe,null,e.createElement(He,null,e.createElement(Re,null,e.createElement(Ne.Z,null,e.createElement(Oe.Z,null),o))));Pt.propTypes={children:G().any.isRequired};const Fe=Pt;var it=t("Cd4wX32x"),Ve=t("gvNRgdyu");const Be=({children:o,streams:s})=>((0,e.useEffect)(()=>{it.s.refresh()},[]),e.createElement(Ve.Z.Provider,{value:s},o)),ze=(0,J.Z)(Be,{streams:it.h},({streams:{streams:o}={streams:void 0}})=>({streams:o}));var p=t("DUKaTDO2"),Je=t("wXrUUKFq"),Qe=t.n(Je);const St={defaultOptions:{queries:{refetchOnWindowFocus:!1,networkMode:"always"}}},ht=({children:o,options:s})=>{const a=s?Qe()({},St,s):St,m=(0,e.useMemo)(()=>new p.QueryClient(a),[a]);return e.createElement(p.QueryClientProvider,{client:m},o)};ht.defaultProps={options:void 0};const Xe=ht;var je=t("2dBXfbRP"),$e=t("J6y4/h8P"),pe=t("Crt2wUQ/"),be=t("2aaiYHqX"),we=t("/GOzvPf6"),ke=t("Vmfu2XtV");const rt=({show:o,onConfirm:s})=>e.createElement(we.QH,{show:o,onConfirm:s,hideCancelButton:!1,onCancel:s,title:"Help us improve Graylog",btnConfirmText:"Ok"},e.createElement(ke.Z,{showProfile:!0}));rt.propTypes={show:G().bool.isRequired,onConfirm:G().func.isRequired};const qe=rt;var _e=t("gToK60tD");const tn="telemetry.cluster.info",en=()=>(0,p.useQuery)([tn],()=>_e.M0.get(),{retry:0,keepPreviousData:!0,notifyOnChangeProps:["data","error"]}),b=o=>{const{cluster:{cluster_id:s,cluster_creation_date:a,nodes_count:m,traffic_last_month:r,users_count:d,license_count:Y,node_leader_app_version:K,installation_source:i},license:H,current_user:w}=o;return{cluster_id:s,cluster_creation_date:a,installation_source:i,nodes_count:m,traffic_last_month:r,users_count:d,license_count:Y,node_leader_app_version:K,...H,...w}},nn=({children:o})=>{const s=(0,je.U0)(),a=(0,$e.useTheme)(),m=(0,e.useCallback)(()=>(s==null?void 0:s.__loaded)===!0,[s]),{data:r,isSuccess:d,refetch:Y}=en(),[K,i]=(0,e.useState)(!1),[H,w]=(0,e.useState)(void 0);(0,e.useEffect)(()=>{const ct=(0,S.av)(window.location.pathname),k=()=>{var Q;if(d&&r&&((Q=r.user_telemetry_settings)!=null&&Q.telemetry_enabled)){const{cluster:{cluster_id:vn,...Zn},current_user:{user:gn},license:In,plugin:un,search_cluster:An,data_nodes:fn,user_telemetry_settings:{telemetry_permission_asked:Cn}}=r;w(b(r)),s.group("cluster",vn,{app_pathname:ct,app_theme:a.mode,...Zn,...In,...un,...An,...fn,...b(r)}),s.identify(gn,{...b(r)}),i(!Cn)}};m()&&k()},[s,d,r,a.mode,m]);const Tn=(0,e.useMemo)(()=>({sendTelemetry:(k,Q)=>{if(m()&&H)try{s.capture(k,{...Q,...H,app_theme:a.mode})}catch{console.warn("Could not capture telemetry event.")}}}),[H,m,s,a.mode]),cn=()=>{be.W.update({telemetry_permission_asked:!0,telemetry_enabled:!0}).then(()=>{Y()}),i(!1)};return e.createElement(pe.Z.Provider,{value:Tn},o,K&&e.createElement(qe,{show:K,onConfirm:()=>cn()}))};var ln=t("+KM7MH1U"),sn=t.n(ln),on=t("+44s4X7G"),an=t("Vg8s2y9S");const dn=e.memo(({children:o,value:s})=>e.createElement(on.Z.Provider,{value:s},o),sn()),mn=({children:o})=>{const s=(0,J.o)(an.S,({nodes:a})=>Object.fromEntries(Object.entries(a!=null?a:{}).map(([m,{short_node_id:r,hostname:d}])=>[m,{id:m,short_node_id:r,hostname:d}])));return e.createElement(dn,{value:s},o)};var En=t("F5HruJCi"),Tt=t("yEuO7gC5");const Pn=o=>{var s,a;return Object.fromEntries((a=(s=o==null?void 0:o.inputs)==null?void 0:s.map(m=>[m.id,m]))!=null?a:[])},Sn=()=>((0,e.useEffect)(()=>{Tt.x.list()},[]),(0,J.o)(Tt.Q,Pn)),hn=({children:o})=>{const s=Sn();return e.createElement(En.Z.Provider,{value:s},o)},rn=()=>e.createElement(Xe,null,e.createElement(Fe,null,e.createElement(nn,null,e.createElement(ze,null,e.createElement(mn,null,e.createElement(hn,null,e.createElement(Ce,null)))))))}}]);})();
//# sourceMappingURL=LoggedInPage.1dcea87d1e4af4cb73ee.js.map
© 2015 - 2024 Weber Informatics LLC | Privacy Policy