import { c as _c } from "react-compiler-runtime"; import figures from 'figures'; import React from 'react'; import { GITHUB_ACTION_SETUP_DOCS_URL } from '../../constants/github-app.js'; import { Box, Text } from '../../ink.js'; import { useKeybinding } from '../../keybindings/useKeybinding.js'; interface InstallAppStepProps { repoUrl: string; onSubmit: () => void; } export function InstallAppStep(t0) { const $ = _c(12); const { repoUrl, onSubmit } = t0; let t1; if ($[0] === Symbol.for("react.memo_cache_sentinel")) { t1 = { context: "Confirmation" }; $[0] = t1; } else { t1 = $[0]; } useKeybinding("confirm:yes", onSubmit, t1); let t2; if ($[1] === Symbol.for("react.memo_cache_sentinel")) { t2 = Install the Claude GitHub App; $[1] = t2; } else { t2 = $[1]; } let t3; if ($[2] === Symbol.for("react.memo_cache_sentinel")) { t3 = Opening browser to install the Claude GitHub App…; $[2] = t3; } else { t3 = $[2]; } let t4; if ($[3] === Symbol.for("react.memo_cache_sentinel")) { t4 = If your browser doesn't open automatically, visit:; $[3] = t4; } else { t4 = $[3]; } let t5; if ($[4] === Symbol.for("react.memo_cache_sentinel")) { t5 = https://github.com/apps/claude; $[4] = t5; } else { t5 = $[4]; } let t6; if ($[5] !== repoUrl) { t6 = Please install the app for repository: {repoUrl}; $[5] = repoUrl; $[6] = t6; } else { t6 = $[6]; } let t7; if ($[7] === Symbol.for("react.memo_cache_sentinel")) { t7 = Important: Make sure to grant access to this specific repository; $[7] = t7; } else { t7 = $[7]; } let t8; if ($[8] === Symbol.for("react.memo_cache_sentinel")) { t8 = Press Enter once you've installed the app{figures.ellipsis}; $[8] = t8; } else { t8 = $[8]; } let t9; if ($[9] === Symbol.for("react.memo_cache_sentinel")) { t9 = Having trouble? See manual setup instructions at:{" "}{GITHUB_ACTION_SETUP_DOCS_URL}; $[9] = t9; } else { t9 = $[9]; } let t10; if ($[10] !== t6) { t10 = {t2}{t3}{t4}{t5}{t6}{t7}{t8}{t9}; $[10] = t6; $[11] = t10; } else { t10 = $[11]; } return t10; }