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