import{r as m,j as t}from"./vendor-react-wBh_31cN.js";import{B as a}from"./back-button-CQo-pvZ0.js";import{g as e,r as i,aq as s}from"./index-dNe6i2rS.js";import{u as l}from"./useTitle-DQo_L6Ox.js";import{C as c}from"./CreateAppDialog-D8sBOtNt.js";import{u,c as n}from"./vendor-router-D1GqFWiT.js";import"./vendor-icons-BUUmD6ht.js";import"./vendor-redux-CJZrIb6x.js";import"./vendor-utils-OeoE2qq_.js";import"./vendor-radix-BRyWS4bQ.js";import"./vendor-grid-CeFlDWv4.js";import"./index.esm-CAGtek53.js";import"./yup-XkUC3UEH.js";import"./input-DFI7JniT.js";import"./label-gPWmc6ow.js";import"./icon-button-BZeFL7T7.js";import"./switch-Bda1Csgx.js";import"./card-BeQtvmcJ.js";import"./form-footer-Drg8-unW.js";import"./radio-group-CjbLFQxV.js";import"./fileExplorer-DEDqs5DH.js";import"./useDownload-TmtSNiQ3.js";import"./useNotifier-BGMn6HaH.js";import"./notifications-5miqOdlG.js";import"./toast-wiGcevcF.js";import"./useCurrentProject-CTMLbmkf.js";import"./useProject-BbrP3CX5.js";import"./index-DURBtSjL.js";import"./getPathAndFileName-BId4RGny.js";import"./textarea-BJVuSob1.js";import"./FileSelectField-Bycd2Am2.js";import"./tooltip-DFFgUYh6.js";import"./value-7N0Keti9.js";import"./PrimaryIconButton-C_nbrPxK.js";import"./getInputValidation-B3ahFDSx.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"./always-oSAuSdys.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"./FileContent-BERXb-dA.js";import"./useCopyToClipboard-DfzwgDFE.js";import"./Error-Cui9k53k.js";import"./useLastProject-Du1ajmeV.js";import"./useSortedProjects-DPrT0V3d.js";import"./apply-CIuXDHQi.js";import"./sortBy-COer1Ia5.js";import"./file-size-BIFi_DYK.js";import"./code-input-W_9wcAaJ.js";import"./utils-DcmBw_Qo.js";import"./ButtonWithRole-ruQLmPtQ.js";import"./project-eQY1xQe-.js";import"./useProjectRole-DpUIGfh9.js";import"./SvgContent-Wcl_Zmzd.js";import"./LazyMarkdown-pD-5e6Jq.js";import"./purify.es-t2lEkcJL.js";import"./data-table-Mt0DWBPO.js";import"./checkbox-BlA4MwH9.js";import"./skeleton-C7BaXix8.js";import"./BlinkingDots-CJK9OJE3.js";import"./LoadMore-Bg-Y-iGB.js";import"./table-a0YeQrHM.js";import"./editable-select-DItn4ZHW.js";import"./search-input-BWz7f2O1.js";import"./input-group-gxy3DSmS.js";import"./has-BFHy-Ez2.js";import"./animated-progress-DY4TkPAt.js";import"./PopupWithTitle-DxbkhXOh.js";import"./CreateNewFilePopup-BCXBB4sm.js";import"./AnimatedLoadingIcon-mddZBUgk.js";import"./complement-BEggNnIO.js";import"./not-C0YaysLC.js";import"./pathOr-BEQvB_UE.js";import"./SingleSelect-CAFSLL98.js";import"./combobox-QqI9aNup.js";import"./vendor-recharts-DmJlpLaF.js";import"./index-DlAh4Ixf.js";import"./utils-C3tzOLw4.js";import"./index-dHd2aGu6.js";import"./time-utils-CQYZ5msB.js";import"./addDays-Cdit4yPz.js";import"./formatDistance-B6o-SXVU.js";import"./index-z4ckdzvI.js";import"./form-HTA58iI5.js";import"./zipObj-C8Moen4w.js";import"./git-BELhLZ1s.js";import"./EnvField-BX2pIUZ_.js";import"./pythonUtils-DP4NidfK.js";import"./badge-UCnweWGd.js";import"./OldEnvCallout-DHeFVCSZ.js";import"./callout-BFSXVeMz.js";import"./useProjectNavigate-BM67yKhl.js";import"./EnvVarsField-Dpnn8U9X.js";import"./ArrayField-DnSSsYNA.js";import"./InjectedEnvVarsPreview-CPNXA8Je.js";import"./EnvVarsService-4OFfVS_Z.js";import"./useProjectId-DeuaOE3U.js";import"./app-utils-BWksoivn.js";const vr=()=>{const o=u(),{id:r}=n();l("Create App");const p=m.useCallback(()=>{o(e(i.project.apps.list,i.project.value,{id:r}))},[o,r]);return r?t.jsxs("div",{className:"flex w-full flex-col gap-5",children:[t.jsx(a,{className:"mr-auto",onClick:p,children:"Back to apps"}),t.jsx("div",{className:"text-base font-medium",children:"Create App"}),t.jsx(c,{isOpen:!0,useDialog:!1,cancelLabel:"Back",submitLabel:"Create app",showHeader:!1,onClose:p})]}):t.jsx(s,{})};export{vr as default};
