import{d as _,v as d,B as m,a as k,e as f,w as a,o as h,m as t,g as u,aV as w,aW as Q,Z as s,aF as c}from"./index-a91efef8.js";import{u as C}from"./usePageTitle-6b86fe3b.js";const b=_({__name:"WorkQueueCreate",setup(W){const n=d(),o=m(),p=()=>{o.push(s.workQueues())},l=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=k("p-layout-default");return h(),f(i,null,{header:a(()=>[t(u(w))]),default:a(()=>[t(u(Q),{action:"Create",onSubmit:l,onCancel:p})]),_:1})}}});export{b as default};
