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