import{d as _,m,z as d,a as f,f as k,w as a,o as w,n as t,g as u,aV as h,aW as Q,X as s,aF as n}from"./index-18beffd6.js";import{u as C}from"./usePageTitle-5c97edcb.js";const b=_({__name:"WorkQueueCreate",setup(y){const c=m(),o=d(),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=f("p-layout-default");return w(),k(i,null,{header:a(()=>[t(u(h))]),default:a(()=>[t(u(Q),{action:"Create",onSubmit:p,onCancel:l})]),_:1})}}});export{b as default};
