import{i as r}from"./_virtual___federation_fn_import-DB-0B1B_.js";import{j as e}from"./jsx-runtime-u17CrQMm.js";import"./sortable-list-BlHb6Qrt.js";import{E as m}from"./error-boundary-DgBD6_Zp.js";import{u as c}from"./use-enum-form-BxerQuZY.js";import{E as u,a as p}from"./enum-values-section-CDBP6I6b.js";import{R as l}from"./index-D45zU2VA.js";const{useBlockUnsavedChangesNavigate:x}=await r("@baseplate-dev/project-builder-lib/web"),{FormActionBar:f,SectionList:d}=await r("@baseplate-dev/ui-components");function g(){const{key:a}=l.useParams(),{form:o,onSubmit:t,isSavingDefinition:i}=c({omit:["name","featureRef"],enumKey:a}),{control:s,setValue:n}=o;return x({control:s,reset:o.reset,onSubmit:t}),e.jsx(m,{children:e.jsxs("form",{onSubmit:t,className:"mx-4 max-w-7xl min-w-[700px] flex-1 space-y-4 pb-4",children:[e.jsxs(d,{children:[e.jsx(u,{control:s}),e.jsx(p,{control:s,setValue:n})]}),e.jsx(f,{form:o,disabled:i})]})})}export{g as component};
//# sourceMappingURL=index-BdKd3QLr.js.map
