import{r as m,j as t}from"./vendor-react-wBh_31cN.js";import{B as a}from"./back-button-zYdlGpWP.js";import{g as e,r as i,aq as s}from"./index-BKr2rJhV.js";import{u as l}from"./useTitle-DQo_L6Ox.js";import{C as c}from"./CreateAppDialog-7GOJ4IYq.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-H6_qmzms.js";import"./label-Dnebucx5.js";import"./icon-button-FETOk6q1.js";import"./switch-CZFcibv-.js";import"./card-DISTA6Ay.js";import"./form-footer-CprMCGDT.js";import"./radio-group-D7-g0sv3.js";import"./fileExplorer-BRS7UOt9.js";import"./useDownload-YBz540B0.js";import"./useNotifier-BCEAoFCf.js";import"./notifications-x-pTFTQl.js";import"./toast-3g7Fh-a0.js";import"./useCurrentProject-C6qZaZgv.js";import"./useProject-FSnHbCQX.js";import"./index-BeaoFlb1.js";import"./getPathAndFileName-BId4RGny.js";import"./textarea-Co48BFy3.js";import"./FileSelectField-DgpKNKZm.js";import"./tooltip-Da8-EbK8.js";import"./value-76ihWpF6.js";import"./PrimaryIconButton-DORQdk0-.js";import"./getInputValidation-CUi6Oel7.js";import"./FileUploaderButton-DXl5ypdF.js";import"./fileUploader-97-Ey7M3.js";import"./index-yLMRwF40.js";import"./file-utils-DSAei-GW.js";import"./converge-BDz-h6lA.js";import"./lensPath-CdufhmA3.js";import"./join-DatdAzSt.js";import"./always-CtAmwIxm.js";import"./init-BDcDHUTz.js";import"./ifElse-Blhrcs6_.js";import"./length-DTSUQW_a.js";import"./_isNumber-DRgbAj-F.js";import"./inc-0XPMXBh9.js";import"./add-DCChD-X4.js";import"./append-Bu8TTG0x.js";import"./includes-D04d5Ytc.js";import"./uniq-Cy5NeM3Y.js";import"./uniqBy-qYjau2JN.js";import"./concat-AxOj0lUI.js";import"./useDebounce-BiuGz9t2.js";import"./dumbPluralize-CcxDsNiu.js";import"./utils-JPS97eRI.js";import"./all-DVU-BA5G.js";import"./mergeRight-Cv2eiGXV.js";import"./juxt-BvCFisbd.js";import"./FileContent-hLw81bKv.js";import"./useCopyToClipboard-3DFwhniW.js";import"./Error-ehOSFm_s.js";import"./useLastProject-CDGr1y3w.js";import"./useSortedProjects-B0vFqd_s.js";import"./apply-BmJxqxKH.js";import"./sortBy-DS9fyPwj.js";import"./file-size-D4kAzYEi.js";import"./code-input-HFCw2itd.js";import"./utils-beqlqcBX.js";import"./ButtonWithRole-BINnbeGr.js";import"./project-eQY1xQe-.js";import"./useProjectRole-UlQXu1Cp.js";import"./SvgContent-CLd6v9jE.js";import"./LazyMarkdown-B4U4Brg5.js";import"./purify.es-t2lEkcJL.js";import"./data-table-Cd-8SUjZ.js";import"./checkbox-DbZXziG0.js";import"./skeleton-BgYOfhyh.js";import"./BlinkingDots-CJK9OJE3.js";import"./LoadMore-Bg-Y-iGB.js";import"./table-CQMBoaty.js";import"./editable-select-Co_-YcCr.js";import"./search-input-Cdh3g8rj.js";import"./input-group-Z3Qmt3PL.js";import"./has-DxvBA501.js";import"./animated-progress-BdqEbBYd.js";import"./PopupWithTitle-FpZeQV47.js";import"./CreateNewFilePopup-KC0YF-vO.js";import"./AnimatedLoadingIcon-TR9RzU0m.js";import"./complement-DGLuzEAM.js";import"./not-CZjOXJzQ.js";import"./pathOr-DUeeLFEu.js";import"./SingleSelect-BFwo6WTL.js";import"./combobox-CcK1PxyF.js";import"./vendor-recharts-DmJlpLaF.js";import"./index-CHdS1Zyb.js";import"./utils-C3tzOLw4.js";import"./index-DdhqPQ_t.js";import"./time-utils-tK1noPML.js";import"./addDays-DjM7nKyN.js";import"./formatDistance-qDinyJzC.js";import"./index-jd_BCNC4.js";import"./form-BGlJWZp2.js";import"./zipObj-BpJhvpTB.js";import"./git-BELhLZ1s.js";import"./EnvField-DkSZaWc3.js";import"./pythonUtils-Ci3XE0w8.js";import"./badge-nyizWwTN.js";import"./OldEnvCallout-C1Gal-pa.js";import"./callout-Dd8FkTQe.js";import"./useProjectNavigate-5znX7Ojg.js";import"./EnvVarsField-DuIE3Krh.js";import"./ArrayField-DU-w4GBF.js";import"./InjectedEnvVarsPreview-DGEjLZXG.js";import"./EnvVarsService-BrhQRBBu.js";import"./useProjectId-Ck57b-tn.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};
