import{r as n,j as m}from"./vendor-react-wBh_31cN.js";import{g as d,r as p,aq as j}from"./index-dNe6i2rS.js";import{u as f}from"./useTitle-DQo_L6Ox.js";import{t as g}from"./titles-CzjGGAB3.js";import{u as l}from"./useCurrentProject-CTMLbmkf.js";import{c as P}from"./index-DURBtSjL.js";import{P as x}from"./ProjectForm-BqDp1fVv.js";import{u as v}from"./vendor-router-D1GqFWiT.js";import"./vendor-redux-CJZrIb6x.js";import"./vendor-utils-OeoE2qq_.js";import"./vendor-icons-BUUmD6ht.js";import"./vendor-radix-BRyWS4bQ.js";import"./vendor-grid-CeFlDWv4.js";import"./useProject-BbrP3CX5.js";import"./index.esm-CAGtek53.js";import"./yup-XkUC3UEH.js";import"./getInputValidation-B3ahFDSx.js";import"./input-DFI7JniT.js";import"./label-gPWmc6ow.js";import"./card-BeQtvmcJ.js";import"./form-footer-Drg8-unW.js";import"./tooltip-DFFgUYh6.js";import"./utils-DT8scj4W.js";import"./storage-connector-DQCKY9HZ.js";import"./combobox-QqI9aNup.js";import"./input-group-gxy3DSmS.js";import"./textarea-BJVuSob1.js";import"./vendor-recharts-DmJlpLaF.js";import"./hoverable-link-BgaAJWrR.js";import"./getHopsDoc-B_Rq_F9V.js";import"./selectors-DK1_X0Cd.js";import"./index-DLI8oDiK.js";import"./ArrayField-DnSSsYNA.js";import"./icon-button-BZeFL7T7.js";import"./radio-group-CjbLFQxV.js";import"./always-oSAuSdys.js";import"./toast-wiGcevcF.js";import"./confirmation-dialog-C7dws5K4.js";import"./useCopyToClipboard-DfzwgDFE.js";import"./useNotifier-BGMn6HaH.js";import"./notifications-5miqOdlG.js";import"./fileExplorer-DEDqs5DH.js";import"./useDownload-TmtSNiQ3.js";import"./getPathAndFileName-BId4RGny.js";import"./FileUploaderButton-8zI4DD0I.js";import"./fileUploader-Bkmyjd3t.js";import"./index-B3Hxcv-8.js";import"./file-utils-B4k-DQmp.js";import"./converge-D7u3m7i4.js";import"./lensPath-D2xKReso.js";import"./join-oazOKFfj.js";import"./init-Dq_gEBi9.js";import"./ifElse-D151OpR6.js";import"./length-DKJxdznt.js";import"./_isNumber-DRgbAj-F.js";import"./inc-BMMaAqPC.js";import"./add-SI0q72Q7.js";import"./append-DQbPxMil.js";import"./includes-ucXR_9jq.js";import"./uniq--Ej6WwWR.js";import"./uniqBy-6oWnYXMs.js";import"./concat-CTXo1gGM.js";import"./useDebounce-BiuGz9t2.js";import"./dumbPluralize-CcxDsNiu.js";import"./utils-DDC-jqbJ.js";import"./all-SKhbxKhE.js";import"./mergeRight-D1nsCm60.js";import"./juxt-B5kKHsyp.js";import"./checkbox-BlA4MwH9.js";import"./callout-BFSXVeMz.js";import"./value-7N0Keti9.js";import"./props-ljQIuZvU.js";import"./zipObj-C8Moen4w.js";const zt=()=>{const{id:r,project:t,isLoading:e,isFetching:a}=l(),i=v(),[o,{isLoading:s}]=P();f(`${g.editProject} ${(t==null?void 0:t.projectName)??""}`);const u=n.useCallback(async c=>{await o({id:+r,data:{services:[],...c}}).unwrap(),i(d(p.project.prj.view,p.project.value,{id:r}))},[o,i,r]);return e||a?m.jsx(j,{}):m.jsx(x,{isLoading:s,isEdit:!0,initialData:t,onSubmit:u})};export{zt as default};
