import{i as a}from"./_virtual___federation_fn_import-DB-0B1B_.js";import{j as e}from"./jsx-runtime-u17CrQMm.js";import{u as c}from"./use-model-form-BPP1LIM-.js";import{O as l}from"./use-original-model-BmXgq4mT.js";import{G as p,a as d,b as u}from"./graph-ql-root-fields-section-9C21yzE8.js";import{R as f}from"./graphql-DMs6g3IM.js";const{useBlockUnsavedChangesNavigate:j}=await a("@baseplate-dev/project-builder-lib/web"),{FormActionBar:h,SectionList:x}=await a("@baseplate-dev/ui-components");function L(){const{key:t}=f.useParams(),{form:r,onSubmit:s,originalModel:i}=c({omit:["name","featureRef"],modelKey:t}),{control:o,reset:m,setValue:n}=r;return j({control:o,reset:m,onSubmit:s}),e.jsx(l,{model:i,children:e.jsx("form",{onSubmit:s,className:"space-y-4 p-4",children:e.jsxs(x,{children:[e.jsx(p,{control:o}),e.jsx(d,{control:o}),e.jsx(u,{control:o,setValue:n,modelKey:t}),e.jsx(h,{form:r})]})})})}export{L as component};
//# sourceMappingURL=graphql-B3jCFRSv.js.map
