import{d as _,aE as d,c as k,f as a,g as f,u as m,o as h,h as u,i as t,cn as w,co as Q,bl as s,$ as c}from"./index-BOEdKJ1D.js";import{u as C}from"./usePageTitle-BkurcLK2.js";const b=_({__name:"WorkQueueCreate",setup(y){const n=d(),o=m(),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=f("p-layout-default");return h(),k(i,null,{header:a(()=>[u(t(w))]),default:a(()=>[u(t(Q),{action:"Create",onSubmit:p,onCancel:l})]),_:1})}}});export{b as default};
//# sourceMappingURL=WorkQueueCreate-CiDBojjx.js.map
