import{at as j,bx as m,cJ as p,bG as l,bH as x,r as b,t as g,x as i,j as r,L as P}from"./index-C6OVXshM.js";import{P as f}from"./ProjectForm-7N7-c0a9.js";const L=()=>{const{id:e,project:t,isLoading:o,isFetching:c}=j(),a=m(),[s,{isLoading:n}]=p();l(`${x.editProject} ${(t==null?void 0:t.projectName)??""}`);const u=b.useCallback(async d=>{await s({id:+e,data:{services:[],...d}}).unwrap(),a(g(i.project.prj.view,i.project.value,{id:e}))},[s,a,e]);return o||c?r.jsx(P,{}):r.jsx(f,{isLoading:n,isEdit:!0,initialData:t,onSubmit:u})};export{L as default};
