import{i as t}from"./_virtual___federation_fn_import-DB-0B1B_.js";import{j as o}from"./jsx-runtime-u17CrQMm.js";import"./sortable-list-BlHb6Qrt.js";import{E as l}from"./error-boundary-DgBD6_Zp.js";import{u as d}from"./use-model-form-BPP1LIM-.js";import{O as c}from"./use-original-model-BmXgq4mT.js";import{M as p,a as x,b as u,c as f}from"./model-unique-constraints-section-BuF4y1jo.js";import{R as j}from"./index-BXVVLKE9.js";const{useBlockUnsavedChangesNavigate:M}=await t("@baseplate-dev/project-builder-lib/web"),{FormActionBar:b,SectionList:h}=await t("@baseplate-dev/ui-components");function B(){const{key:a}=j.useParams(),{form:s,onSubmit:r,originalModel:i}=d({omit:["name","featureRef"],modelKey:a}),{control:e,setValue:n,reset:m}=s;return M({control:e,reset:m,onSubmit:r}),o.jsx(l,{children:o.jsx(c,{model:i,children:o.jsxs("form",{onSubmit:r,className:"max-w-7xl min-w-[700px] flex-1 space-y-4 px-4 pb-4",children:[o.jsx(p,{control:e,setValue:n}),o.jsxs(h,{children:[o.jsx(x,{control:e}),o.jsx(u,{control:e}),o.jsx(f,{control:e})]}),o.jsx(b,{form:s})]})})})}export{B as component};
//# sourceMappingURL=index-Bmxr2YZj.js.map
