import { c as _c } from "react/compiler-runtime"; import React, { type ReactNode } from 'react'; import { Box } from '../../../../ink.js'; import { ConfigurableShortcutHint } from '../../../ConfigurableShortcutHint.js'; import { Select } from '../../../CustomSelect/select.js'; import { Byline } from '../../../design-system/Byline.js'; import { KeyboardShortcutHint } from '../../../design-system/KeyboardShortcutHint.js'; import { useWizard } from '../../../wizard/index.js'; import { WizardDialogLayout } from '../../../wizard/WizardDialogLayout.js'; import type { AgentWizardData } from '../types.js'; export function MethodStep() { const $ = _c(11); const { goNext, goBack, updateWizardData, goToStep } = useWizard(); let t0; if ($[0] === Symbol.for("react.memo_cache_sentinel")) { t0 = [{ label: "Generate with Claude (recommended)", value: "generate" }, { label: "Manual configuration", value: "manual" }]; $[0] = t0; } else { t0 = $[0]; } const methodOptions = t0; let t1; if ($[1] === Symbol.for("react.memo_cache_sentinel")) { t1 = ; $[1] = t1; } else { t1 = $[1]; } let t2; if ($[2] !== goNext || $[3] !== goToStep || $[4] !== updateWizardData) { t2 = value => { const method = value as 'generate' | 'manual'; updateWizardData({ method, wasGenerated: method === "generate" }); if (method === "generate") { goNext(); } else { goToStep(3); } }; $[2] = goNext; $[3] = goToStep; $[4] = updateWizardData; $[5] = t2; } else { t2 = $[5]; } let t3; if ($[6] !== goBack) { t3 = () => goBack(); $[6] = goBack; $[7] = t3; } else { t3 = $[7]; } let t4; if ($[8] !== t2 || $[9] !== t3) { t4 =