import { c as _c } from "react/compiler-runtime"; import React from 'react'; import { Text } from '../ink.js'; import type { ValidationError } from '../utils/settings/validation.js'; import { Select } from './CustomSelect/index.js'; import { Dialog } from './design-system/Dialog.js'; import { ValidationErrorsList } from './ValidationErrorsList.js'; type Props = { settingsErrors: ValidationError[]; onContinue: () => void; onExit: () => void; }; /** * Dialog shown when settings files have validation errors. * User must choose to continue (skipping invalid files) or exit to fix them. */ export function InvalidSettingsDialog(t0) { const $ = _c(13); const { settingsErrors, onContinue, onExit } = t0; let t1; if ($[0] !== onContinue || $[1] !== onExit) { t1 = function handleSelect(value) { if (value === "exit") { onExit(); } else { onContinue(); } }; $[0] = onContinue; $[1] = onExit; $[2] = t1; } else { t1 = $[2]; } const handleSelect = t1; let t2; if ($[3] !== settingsErrors) { t2 = ; $[3] = settingsErrors; $[4] = t2; } else { t2 = $[4]; } let t3; if ($[5] === Symbol.for("react.memo_cache_sentinel")) { t3 = Files with errors are skipped entirely, not just the invalid settings.; $[5] = t3; } else { t3 = $[5]; } let t4; if ($[6] === Symbol.for("react.memo_cache_sentinel")) { t4 = [{ label: "Exit and fix manually", value: "exit" }, { label: "Continue without these settings", value: "continue" }]; $[6] = t4; } else { t4 = $[6]; } let t5; if ($[7] !== handleSelect) { t5 =