import{i as a}from"./_virtual___federation_fn_import-DB-0B1B_.js";import{j as e}from"./jsx-runtime-u17CrQMm.js";import{u as d}from"./use-model-form-BPP1LIM-.js";import{O as m}from"./use-original-model-BmXgq4mT.js";import{S,a as p,b as x}from"./service-transformers-section-Bs-6kpQj.js";import{R as h}from"./service-BtFPpuMG.js";const{useBlockUnsavedChangesNavigate:j}=await a("@baseplate-dev/project-builder-lib/web"),{FormActionBar:b,SectionList:u,SectionListSection:f,SectionListSectionContent:v,SectionListSectionDescription:w,SectionListSectionHeader:g,SectionListSectionTitle:M,SwitchFieldController:i}=await a("@baseplate-dev/ui-components");function E(){const{key:n}=h.useParams(),{form:o,onSubmit:s,originalModel:c}=d({omit:["name","featureRef"],modelKey:n}),{control:t,setValue:r,reset:l}=o;return j({control:t,reset:l,onSubmit:s}),e.jsx(m,{model:c,children:e.jsxs("form",{onSubmit:s,className:"w-full max-w-7xl space-y-4 p-4",children:[e.jsxs(u,{children:[e.jsxs(f,{children:[e.jsxs(g,{children:[e.jsx(M,{children:"Methods"}),e.jsx(w,{children:"Enable or disable which service methods will be generated"})]}),e.jsxs(v,{className:"flex gap-8",children:[e.jsx(i,{label:"Create",name:"service.create.enabled",control:t}),e.jsx(i,{label:"Update",name:"service.update.enabled",control:t}),e.jsx(i,{label:"Delete",name:"service.delete.enabled",control:t})]})]}),e.jsx(S,{control:t,setValue:r}),e.jsx(p,{control:t,setValue:r}),e.jsx(x,{formProps:o})]}),e.jsx(b,{form:o})]})})}export{E as component};
//# sourceMappingURL=service-OM9_n3zR.js.map
