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

web-interface.assets.325e2d4b-6731.7fa6a164b58219e10d69.js Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
"use strict";(self.webpackChunkgraylog_web_interface=self.webpackChunkgraylog_web_interface||[]).push([["325e2d4b-6731"],{pK4QlwFt:(t,e,s)=>{s.r(e),s.d(e,{default:()=>l});var i=s("Z7aTuO5B"),r=s("D4SbLiE/"),a=s.n(r),n=s("JnTtTRmZ"),d=s.n(n),o=s("0zTRKSqx"),c=s("DeVaSktS"),g=s("BSHS2nUH"),u=s("EUJYvlA3"),S=s("6WrsI6bg"),h=s("/2jz2K4G");const l=a()({displayName:"StartPage",mixins:[d().connect(S.D),d().listenTo(h.I,"onGettingStartedUpdate")],getInitialState:()=>({gettingStarted:void 0}),componentDidMount(){h.m.getStatus(),S.D.reload()},componentDidUpdate(){this._isLoading()||this._redirectToStartpage()},onGettingStartedUpdate(t){this.setState({gettingStarted:t.status})},_redirect(t){g.Z.replace(t)},_redirectToStartpage(){const{currentUser:{startpage:t,permissions:e},gettingStarted:s}=this.state;u.ZP.isPermitted(e,["inputs:create"])&&s.show?this._redirect(c.ZP.GETTING_STARTED):null!==t&&Object.keys(t).length>0?"stream"===t.type?this._redirect(c.ZP.stream_search(t.id)):this._redirect(c.ZP.dashboard_show(t.id)):this._redirect(c.ZP.SEARCH)},_isLoading(){const{currentUser:t,gettingStarted:e}=this.state;return!t||!e},render:()=>i.createElement(o.$j,null)})},"/2jz2K4G":(t,e,s)=>{s.d(e,{I:()=>g,m:()=>c});var i=s("JnTtTRmZ"),r=s.n(i),a=s("OqsMdpSm"),n=s("4af3+9mh"),d=s("0wQfx7YJ"),o=s("xc00RsLr");const c=(0,o.ei)("core.GettingStarted",(()=>r().createActions({getStatus:{asyncResult:!0},dismiss:{asyncResult:!0}}))),g=(0,o.dS)("core.GettingStarted",(()=>r().createStore({listenables:[c],sourceUrl:"/system/gettingstarted",status:void 0,init(){this.getStatus()},getInitialState(){return{status:this.status}},get(){return this.status},getStatus(){const t=(0,a.ZP)("GET",d.DC(this.sourceUrl));t.then((t=>(this.status=t,this.trigger({status:this.status}),t)),(t=>console.error(t))),c.getStatus.promise(t)},dismiss(){const t=(0,a.ZP)("POST",d.DC(`${this.sourceUrl}/dismiss`),"{}");t.then((t=>(this.getStatus(),t)),(t=>{n.Z.error(`Dismissing Getting Started Guide failed with status: ${t}`,"Could not dismiss guide")})),c.dismiss.promise(t)}})))}}]);
//# sourceMappingURL=325e2d4b-6731.7fa6a164b58219e10d69.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy