import{ay as m,bp as p,cy as j,bx as l,by as b,r as g,q as x,s,j as r,L as P}from"./index-C1DmWO_C.js";import{P as f}from"./ProjectForm-V3mBA-NW.js";import"./utils-DospTenN.js";import"./storage-connector-BuEuJyVA.js";import"./FileUploaderButton-BtxUzlTS.js";import"./zipObj-D8EtfWld.js";const S=()=>{const{id:e,project:t,isLoading:o,isFetching:c}=m(),i=p(),[a,{isLoading:n}]=j();l(`${b.editProject} ${(t==null?void 0:t.projectName)??""}`);const u=g.useCallback(async d=>{await a({id:+e,data:{services:[],...d}}).unwrap(),i(x(s.project.view,s.project.value,{id:e}))},[a,i,e]);return o||c?r.jsx(P,{}):r.jsx(f,{isLoading:n,isEdit:!0,initialData:t,onSubmit:u})};export{S as default};
