(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{55006:function(n,i,e){"use strict";e.r(i);var u=e(82684),t=e(34376),o=e(35686),a=e(87432),l=e(66916);i.default=function(){var n,i=(0,t.useRouter)(),e=i.asPath,s=e.split("?")[0],r=o.ZP.statuses.list().data,v=(0,u.useMemo)((function(){var n;return null===r||void 0===r||null===(n=r.statuses)||void 0===n?void 0:n[0]}),[r]),d=o.ZP.pipeline_runs.list({_limit:0}).data,c=0===(0,u.useMemo)((function(){var n;return(null===d||void 0===d||null===(n=d.metadata)||void 0===n?void 0:n.count)||0}),[null===d||void 0===d||null===(n=d.metadata)||void 0===n?void 0:n.count])?"/pipelines":"/overview";(0,u.useEffect)((function(){(0,a.xf)()&&(0,l.a3)()}),[]),(0,u.useEffect)((function(){var n;if(403===(null===d||void 0===d||null===(n=d.error)||void 0===n?void 0:n.code))i.replace("/sign-in");else if(v){var u=null===v||void 0===v?void 0:v.is_instance_manager,t=e;"/"===s&&(t=u?"/manage":c),d&&i.replace(t)}}),[s,e,d,v,c,i])}},48312:function(n,i,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return e(55006)}])}},function(n){n.O(0,[9774,2888,179],(function(){return i=48312,n(n.s=i);var i}));var i=n.O();_N_E=i}]);