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