(this["webpackJsonp@dagit/app"]=this["webpackJsonp@dagit/app"]||[]).push([[10],{1385:function(e,t,n){"use strict";n.r(t),n.d(t,"FallthroughRoot",(function(){return b}));var r=n(1),o=n(35),i=n(20),s=n(34),a=n(2),c=n(726),l=n(52),d=n(56),p=n(65),j=n(0),u=function(){var e=Object(o.i)(),t="".concat(e.pathname).concat(e.search);return Object(j.jsx)(o.b,{to:"/instance".concat(t)})},b=function(){return Object(j.jsxs)(o.e,{children:[Object(j.jsx)(o.c,{path:["/runs/(.*)?","/assets/(.*)?","/scheduler"],children:Object(j.jsx)(u,{})}),Object(j.jsx)(o.c,{path:"*",children:Object(j.jsx)(x,{})})]})},x=function(){var e=r.useContext(d.a),t=e.allRepos,n=e.loading,u=e.locationEntries;if(n)return Object(j.jsx)(i.a,{flex:{direction:"row",justifyContent:"center"},style:{paddingTop:"100px"},children:Object(j.jsxs)(i.a,{flex:{direction:"row",alignItems:"center",gap:16},children:[Object(j.jsx)(l.a,{purpose:"section"}),Object(j.jsx)("div",{style:{color:a.a.Gray600},children:"Loading workspace\u2026"})]})});if(!t.length&&u.length)return Object(j.jsx)(o.b,{to:"/workspace"});var b=t[0]||null;if(null===b||void 0===b?void 0:b.repository.pipelines.length){var x=b.repository.pipelines[0];return Object(j.jsx)(o.b,{to:Object(p.c)({repoName:b.repository.name,repoLocation:b.repositoryLocation.name,pipelineName:x.name,isJob:x.isJob})})}return Object(j.jsx)(i.a,{padding:{vertical:64},children:Object(j.jsx)(c.a,{icon:"no-results",title:b?"No pipelines or jobs":"No repositories",description:b?"Your repository is loaded but no pipelines or jobs were found.":"Add a repository to get started.",action:Object(j.jsx)(s.c,{href:"https://docs.dagster.io/getting-started",children:"View documentation"})})})};t.default=b},726:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n(1);var r=n(20),o=n(2),i=n(14),s=n(52),a=n(131),c=n(0),l=function(e){var t=e.title,n=e.description,l=e.icon,d=e.action,p=1===[t,n,d].filter(Boolean).length;return Object(c.jsxs)(r.a,{flex:{gap:20,alignItems:p?"center":"flex-start"},background:o.a.Gray50,padding:24,style:{margin:"auto",borderRadius:8,width:"max-content",maxWidth:500},children:["spinner"===l?Object(c.jsx)(s.a,{purpose:"section"}):"no-results"===l?Object(c.jsx)(i.a,{name:"search",size:48,color:o.a.Gray400}):Object(c.jsx)(i.a,{name:l,size:48,color:o.a.Gray400}),Object(c.jsxs)(r.a,{flex:{gap:8,direction:"column",alignItems:"flex-start"},children:[t&&Object(c.jsx)(a.g,{style:{color:o.a.Gray900},children:t}),n&&Object(c.jsx)("div",{style:{color:o.a.Gray500},children:n}),d]})]})}}}]);
//# sourceMappingURL=10.7d4f2dff.chunk.js.map