* Dialog shown when the NCode config file contains invalid JSON
(t0)
| 24 | * Dialog shown when the NCode config file contains invalid JSON |
| 25 | */ |
| 26 | function InvalidConfigDialog(t0) { |
| 27 | const $ = _c(19); |
| 28 | const { |
| 29 | filePath, |
| 30 | errorDescription, |
| 31 | onExit, |
| 32 | onReset |
| 33 | } = t0; |
| 34 | let t1; |
| 35 | if ($[0] !== onExit || $[1] !== onReset) { |
| 36 | t1 = value => { |
| 37 | if (value === "exit") { |
| 38 | onExit(); |
| 39 | } else { |
| 40 | onReset(); |
| 41 | } |
| 42 | }; |
| 43 | $[0] = onExit; |
| 44 | $[1] = onReset; |
| 45 | $[2] = t1; |
| 46 | } else { |
| 47 | t1 = $[2]; |
| 48 | } |
| 49 | const handleSelect = t1; |
| 50 | let t2; |
| 51 | if ($[3] !== filePath) { |
| 52 | t2 = <Text>The configuration file at <Text bold={true}>{filePath}</Text> contains invalid JSON.</Text>; |
| 53 | $[3] = filePath; |
| 54 | $[4] = t2; |
| 55 | } else { |
| 56 | t2 = $[4]; |
| 57 | } |
| 58 | let t3; |
| 59 | if ($[5] !== errorDescription) { |
| 60 | t3 = <Text>{errorDescription}</Text>; |
| 61 | $[5] = errorDescription; |
| 62 | $[6] = t3; |
| 63 | } else { |
| 64 | t3 = $[6]; |
| 65 | } |
| 66 | let t4; |
| 67 | if ($[7] !== t2 || $[8] !== t3) { |
| 68 | t4 = <Box flexDirection="column" gap={1}>{t2}{t3}</Box>; |
| 69 | $[7] = t2; |
| 70 | $[8] = t3; |
| 71 | $[9] = t4; |
| 72 | } else { |
| 73 | t4 = $[9]; |
| 74 | } |
| 75 | let t5; |
| 76 | if ($[10] === Symbol.for("react.memo_cache_sentinel")) { |
| 77 | t5 = <Text bold={true}>Choose an option:</Text>; |
| 78 | $[10] = t5; |
| 79 | } else { |
| 80 | t5 = $[10]; |
| 81 | } |
| 82 | let t6; |
| 83 | if ($[11] === Symbol.for("react.memo_cache_sentinel")) { |