import{i as t}from"./_virtual___federation_fn_import-DB-0B1B_.js";import{j as o}from"./jsx-runtime-u17CrQMm.js";import{u as n}from"./use-model-form-BPP1LIM-.js";import{O as l}from"./use-original-model-BmXgq4mT.js";import{M as c}from"./model-authorizer-roles-section-BSdmu2Wl.js";import{R as d}from"./authorization-DDVeEFyy.js";const{useBlockUnsavedChangesNavigate:p}=await t("@baseplate-dev/project-builder-lib/web"),{FormActionBar:u,SectionList:f}=await t("@baseplate-dev/ui-components");function v(){const{key:s}=d.useParams(),{form:e,onSubmit:r,originalModel:i}=n({omit:["name","featureRef"],modelKey:s}),{control:a,reset:m}=e;return p({control:a,reset:m,onSubmit:r}),o.jsx(l,{model:i,children:o.jsxs("form",{onSubmit:r,className:"w-full max-w-7xl space-y-4 p-4",children:[o.jsx(f,{children:o.jsx(c,{formProps:e})}),o.jsx(u,{form:e})]})})}export{v as component};
//# sourceMappingURL=authorization-GK7lu5wS.js.map
