import{d as _,a as d,T as k,b as m,e as f,w as a,o as h,h as t,u,b9 as w,ba as Q,ab as s,aW as c}from"./index-562c8470.js";import{u as C}from"./usePageTitle-ad3dbf10.js";const y=_({__name:"WorkQueueCreate",setup(b){const n=d(),o=k(),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(),f(i,null,{header:a(()=>[t(u(w))]),default:a(()=>[t(u(Q),{action:"Create",onSubmit:p,onCancel:l})]),_:1})}}});export{y as default};
