import{d as i,M as k,_ as d,k as f,c as m,l as a,o as h,n as t,u,bi as w,bj as Q,af as s,b2 as c}from"./index-gULJbqdd.js";import{u as C}from"./usePageTitle-HrbxxOEb.js";const W=i({__name:"WorkQueueCreate",setup(b){const n=k(),o=d(),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 _=f("p-layout-default");return h(),m(_,null,{header:a(()=>[t(u(w))]),default:a(()=>[t(u(Q),{action:"Create",onSubmit:p,onCancel:l})]),_:1})}}});export{W as default};
