import{O as e}from"./vendor-markdown-DngssFHR.js";import{c as t,l as n}from"./vendor-react-Cts2Wj-s.js";import{Q as r,X as i,rt as a}from"./vendor-mui-Ckcy4Lfd.js";import"./vendor-md-editor-DC6xr_29.js";import{p as o}from"./ui-BLXHSX1T.js";import{V as s}from"./index-JB73_g7R.js";import{t as c}from"./api-C88VCaJt.js";import{t as l}from"./EpicForm-VV1R13wk.js";var u=e();function d(){let{projectId:e}=n(),d=t(),f=s(`tasks`);return(0,u.jsxs)(r,{children:[(0,u.jsx)(o,{breadcrumbs:[{label:`Epics`,to:`/${e}/epics`},{label:`Create`}],actions:(0,u.jsx)(i,{variant:`contained`,form:`epic-form`,type:`submit`,disabled:!f,children:`Create`})}),!f&&(0,u.jsx)(a,{severity:`warning`,sx:{mb:2},children:`Read-only access.`}),(0,u.jsx)(l,{onSubmit:async t=>{e&&d(`/${e}/epics/${(await c(e,t)).id}`)},onCancel:()=>d(`/${e}/epics`),submitLabel:`Create`})]})}export{d as default};