import{d as l,ao as _,c as d,w as t,r as f,ah as h,o as k,a,u,bi as w,bj as Q}from"./index-4d9fe32c-718dc5d9.js";import{L as s}from"./prefect-design-a921a7c6.js";import{u as C}from"./usePageTitle-e8e2e29d.js";import"./index-558d177a.js";import{r as c}from"./routes-1bd54f1a.js";import"./meta-26546594.js";const B=l({__name:"WorkQueueCreate",setup(b){const n=_(),o=h(),p=()=>{o.push(c.workQueues())},i=async r=>{try{const{id:e}=await n.workQueues.createWorkQueue(r);s("Work queue has been created","success"),o.push(c.workQueue(e))}catch(e){s("Error occurred while creating new work queue","error"),console.error(e)}};return C("Create Work Queue"),(r,e)=>{const m=f("p-layout-default");return k(),d(m,null,{header:t(()=>[a(u(w))]),default:t(()=>[a(u(Q),{action:"Create",onSubmit:i,onCancel:p})]),_:1})}}});export{B as default};
