"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[1157],{28211(m,D,n){n.r(D),n.d(D,{default:()=>g});var a=n(74848),t=n(96540),M=n(36334),r=n(16619),f=n(98391),P=n(77153),O=n(33789);const R=(0,t.lazy)(()=>Promise.all([n.e(3809),n.e(6813),n.e(6594),n.e(3340),n.e(9136)]).then(n.bind(n,26506))),U=(0,t.lazy)(()=>n.e(703).then(n.bind(n,74860)));function h(s){const{data:l,isLoading:I}=(0,M.Mu)(),o=l?.spec?.homeURL,d=l?.spec?.homeDashboardUID,E=!!o&&!d;return(0,t.useEffect)(()=>{if(!E)return;const c=r.I.processRedirectUri(o,f.Ny.getLocation());f.Ny.replace((0,O.F)(c))},[E,o]),I||E?(0,a.jsx)(P.D,{}):d?(0,a.jsx)(R,{...s}):(0,a.jsx)(U,{})}function g(s){return(0,a.jsx)(t.Suspense,{fallback:(0,a.jsx)(P.D,{}),children:(0,a.jsx)(h,{...s})})}}}]);

//# sourceMappingURL=HomeRoute.8b0714c18050221b809b.js.map