import{aR as d,cl as p,aX as j,aY as l,r as g,g as P,e as r,j as s,a_ as f}from"./index-4a12e52c.js";import{u as x}from"./useCurrentProject-9bb1c6a4.js";import{P as v}from"./ProjectForm-2551a513.js";import"./useProject-04893095.js";import"./utils-5c74f234.js";import"./FileUploaderButton-546aa096.js";import"./useDownload-e87fcc63.js";import"./props-d543ba26.js";import"./zipObj-078ddbe7.js";const R=()=>{const{id:i,project:t,isLoading:o,isFetching:c}=x(),a=d(),[e,{isLoading:n}]=p();j(`${l.editProject} ${(t==null?void 0:t.projectName)??""}`);const m=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(v,{isLoading:n,isEdit:!0,initialData:t,onSubmit:m})};export{R as default};
