import{d as i,u as l,r as d,o as f,b as m,w as s,i as a,e as u,U as w,V as h,p as t,T as k,W as c}from"./index.a93ec448.js";const y=i({__name:"WorkQueueCreate",setup(Q){const o=l(),n=()=>{o.push(t.workQueues())},_=async r=>{try{const{id:e}=await k.createWorkQueue(r);c("Work queue has been created","success"),o.push(t.workQueue(e))}catch(e){c("Error occurred while creating new work queue","error"),console.error(e)}};return(r,e)=>{const p=d("p-layout-default");return f(),m(p,null,{header:s(()=>[a(u(w))]),default:s(()=>[a(u(h),{onSubmit:_,onCancel:n})]),_:1})}}});export{y as default};
