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