(t0)
| 61 | // above the early returns registers a down-arrow opt-in even when we return |
| 62 | // static text — pressing ↓ then blurs the header with no way back. |
| 63 | function OverridesSelect(t0) { |
| 64 | const $ = _c(25); |
| 65 | const { |
| 66 | onComplete, |
| 67 | currentMode |
| 68 | } = t0; |
| 69 | const [theme] = useTheme(); |
| 70 | const { |
| 71 | headerFocused, |
| 72 | focusHeader |
| 73 | } = useTabHeaderFocus(); |
| 74 | let t1; |
| 75 | if ($[0] !== theme) { |
| 76 | t1 = color("success", theme)("(current)"); |
| 77 | $[0] = theme; |
| 78 | $[1] = t1; |
| 79 | } else { |
| 80 | t1 = $[1]; |
| 81 | } |
| 82 | const currentIndicator = t1; |
| 83 | const t2 = currentMode === "open" ? `Allow unsandboxed fallback ${currentIndicator}` : "Allow unsandboxed fallback"; |
| 84 | let t3; |
| 85 | if ($[2] !== t2) { |
| 86 | t3 = { |
| 87 | label: t2, |
| 88 | value: "open" |
| 89 | }; |
| 90 | $[2] = t2; |
| 91 | $[3] = t3; |
| 92 | } else { |
| 93 | t3 = $[3]; |
| 94 | } |
| 95 | const t4 = currentMode === "closed" ? `Strict sandbox mode ${currentIndicator}` : "Strict sandbox mode"; |
| 96 | let t5; |
| 97 | if ($[4] !== t4) { |
| 98 | t5 = { |
| 99 | label: t4, |
| 100 | value: "closed" |
| 101 | }; |
| 102 | $[4] = t4; |
| 103 | $[5] = t5; |
| 104 | } else { |
| 105 | t5 = $[5]; |
| 106 | } |
| 107 | let t6; |
| 108 | if ($[6] !== t3 || $[7] !== t5) { |
| 109 | t6 = [t3, t5]; |
| 110 | $[6] = t3; |
| 111 | $[7] = t5; |
| 112 | $[8] = t6; |
| 113 | } else { |
| 114 | t6 = $[8]; |
| 115 | } |
| 116 | const options = t6; |
| 117 | let t7; |
| 118 | if ($[9] !== onComplete) { |
| 119 | t7 = async function handleSelect(value) { |
| 120 | const mode = value as OverrideMode; |
nothing calls this directly
no test coverage detected