import{aS as d,cm as p,aY as j,aZ as l,r as g,c as P,b as r,j as s,a$ as f}from"./index-ea7817a2.js";import{u as x}from"./useCurrentProject-0132f110.js";import{P as b}from"./ProjectForm-fdbc7e29.js";import"./useProject-77619fff.js";import"./utils-297973b8.js";import"./FileUploaderButton-495e1c87.js";import"./useDownload-09eaf3eb.js";import"./props-31bc4ea7.js";import"./zipObj-08c84ab1.js";const F=()=>{const{id:i,project:t,isLoading:o,isFetching:c}=x(),a=d(),[e,{isLoading:m}]=p();j(`${l.editProject} ${(t==null?void 0:t.projectName)??""}`);const n=g.useCallback(async u=>{await e({id:+i,data:{services:[],...u}}).unwrap(),a(P(r.project.view,r.project.value,{id:i}))},[e,a,i]);return o||c?s.jsx(f,{}):s.jsx(b,{isLoading:m,isEdit:!0,initialData:t,onSubmit:n})};export{F as default};
