import{d as g,o as u,c as _,w as p,a,u as e,b as w,p as A,H as I,z as x,e as m,r as L,f as O,T as N,I as B,q as R,g as S,h as M,V as U,i as V,j as F,k as $,l as z,m as h,S as H,n as P,Y as T}from"./index-4d9fe32c-718dc5d9.js";import{O as c,Y,L as q,N as d,a as b,b as D,z as E}from"./prefect-design-a921a7c6.js";import{r as K}from"./index-558d177a.js";import{i as j}from"./colorMode-4bac673d.js";import{r as i}from"./routes-1bd54f1a.js";import{U as y,A as Q}from"./ApiRoute-3ea941f2.js";import{d as G}from"./vue-compositions-55710141.js";import"./meta-26546594.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))f(o);new MutationObserver(o=>{for(const n of o)if(n.type==="childList")for(const l of n.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&f(l)}).observe(document,{childList:!0,subtree:!0});function s(o){const n={};return o.integrity&&(n.integrity=o.integrity),o.referrerpolicy&&(n.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?n.credentials="include":o.crossorigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function f(o){if(o.ep)return;o.ep=!0;const n=s(o);fetch(o.href,n)}})();const W=g({__name:"ContextSidebar",setup(r){return(t,s)=>(u(),_(e(Y),{class:"context-sidebar"},{footer:p(()=>[a(e(c),{title:"Settings",icon:"CogIcon",to:e(i).settings()},null,8,["to"])]),default:p(()=>[a(e(c),{title:"Flow Runs",icon:"FlowRun",to:e(i).flowRuns()},null,8,["to"]),a(e(c),{title:"Flows",icon:"Flow",to:e(i).flows()},null,8,["to"]),a(e(c),{title:"Deployments",icon:"LocationMarkerIcon",to:e(i).deployments()},null,8,["to"]),a(e(c),{title:"Work Queues",icon:"DatabaseIcon",to:e(i).workQueues()},null,8,["to"]),a(e(c),{title:"Blocks",icon:"CubeIcon",to:e(i).blocks()},null,8,["to"]),a(e(c),{title:"Notifications",icon:"BellIcon",to:e(i).notifications()},null,8,["to"]),a(e(c),{title:"Task Run Concurrency",icon:"BellIcon",to:e(i).concurrencyLimits()},null,8,["to"])]),_:1}))}}),J=Symbol("canInjectionKey"),X=g({__name:"AppRouterView",async setup(r){let t,s;const f=([t,s]=w(()=>y.get("apiUrl")),t=await t,s(),t),o=A({baseUrl:f}),n=([t,s]=w(()=>y.get("flags")),t=await t,s(),t),l=I([...x,...n]),v=M();return m(J,l),m(B,l),m(R,o),m(S,v),(ae,re)=>{const k=L("router-view");return u(),_(k,{class:"app-router-view"},{default:p(({Component:C})=>[a(N,{name:"app-router-view-fade",mode:"out-in"},{default:p(()=>[(u(),_(O(C)))]),_:2},1024)]),_:1})}}});class Z extends Q(U){}const ee=G(new Z);async function te(){try{await ee.getHealth()}catch(r){const t=await y.get("apiUrl").then(s=>s);q(`Can't connect to Orion API at ${t}. Check that it's accessible from your machine.`,"error",{timeout:!1}),console.warn(r)}}const oe={class:"app","data-teleport-target":"app"},ne=g({__name:"App",setup(r){const t=V(!1),s=F(()=>d.lg||t.value);function f(){t.value=!t.value}function o(){t.value=!1}return te(),$(()=>document.body.classList.toggle("body-scrolling-disabled",s.value&&!d.lg)),(n,l)=>(u(),z("div",oe,[e(d).lg?h("",!0):(u(),_(e(D),{key:0,class:"app__mobile-menu"},{"upper-links":p(()=>[a(e(b),{icon:"PrefectGradient",class:"app__prefect-icon"})]),"bottom-links":p(()=>[a(e(b),{icon:"MenuIcon",class:"app__menu-icon",onClick:f})]),_:1})),e(s)?(u(),_(W,{key:1,class:"app__sidebar",onClick:o})):h("",!0),(u(),_(H,null,{default:p(()=>[a(X,{class:"app__router-view"})]),_:1}))]))}});j();function se(){const r=P(ne);r.use(K),r.use(E),r.use(T),r.mount("#app")}se();
