"use strict";(self.webpackChunk_dagster_io_dagit_app=self.webpackChunk_dagster_io_dagit_app||[]).push([[713],{66042:function(e,t,r){r.r(t),r.d(t,{FallthroughRoot:function(){return j}});var n=r(47515),o=r(62459),s=r(32667),i=r(67445),a=r(45519),c=r(78193),l=r(8192),p=r(92761),d=r(8468),u=r(63167),h=r(35936),x=function(){var e=(0,l.TH)(),t="".concat(e.pathname).concat(e.search);return(0,h.jsx)(l.l_,{to:"/instance".concat(t)})},j=function(){return(0,h.jsxs)(l.rs,{children:[(0,h.jsx)(l.AW,{path:["/runs/(.*)?","/assets/(.*)?","/scheduler"],children:(0,h.jsx)(x,{})}),(0,h.jsx)(l.AW,{path:"/home",children:(0,h.jsx)(g,{})}),(0,h.jsx)(l.AW,{path:"*",children:(0,h.jsx)(g,{})})]})},g=function(){var e=c.useContext(p.C5),t=e.allRepos,r=e.loading,x=e.locationEntries;if(r)return(0,h.jsx)(n.x,{flex:{direction:"row",justifyContent:"center"},style:{paddingTop:"100px"},children:(0,h.jsxs)(n.x,{flex:{direction:"row",alignItems:"center",gap:16},children:[(0,h.jsx)(o.$,{purpose:"section"}),(0,h.jsx)("div",{style:{color:s.w.Gray600},children:"Loading workspace\u2026"})]})});if(x.length&&0===t.length)return(0,h.jsx)(l.l_,{to:"/workspace"});var j=t.filter((function(e){return e.repository.pipelines.length>0}));if(1===j.length&&1===j[0].repository.pipelines.length){var g=j[0],f=g.repository.pipelines[0];return f.name===d.IQ?(0,h.jsx)(l.l_,{to:"/instance/asset-graph"}):(0,h.jsx)(l.l_,{to:(0,u.jT)({repoName:g.repository.name,repoLocation:g.repositoryLocation.name,pipelineName:f.name,isJob:f.isJob})})}if(j.length>1)return(0,h.jsx)(l.l_,{to:"/instance"});var _=t[0];return(0,h.jsx)(n.x,{padding:{vertical:64},children:(0,h.jsx)(i.t,{icon:"no-results",title:_?"No jobs":"No repositories",description:_?"Your repository is loaded, but no jobs were found.":"Add a repository to get started.",action:(0,h.jsx)(a.fr,{href:"https://docs.dagster.io/getting-started",children:"View documentation"})})})};t.default=j}}]);
//# sourceMappingURL=713.dc3a63fd.chunk.js.map