(t0)
| 206 | type: 'error'; |
| 207 | }; |
| 208 | function WriteRejectionDiff(t0) { |
| 209 | const $ = _c(20); |
| 210 | const { |
| 211 | filePath, |
| 212 | content, |
| 213 | style, |
| 214 | verbose |
| 215 | } = t0; |
| 216 | let t1; |
| 217 | if ($[0] !== content || $[1] !== filePath) { |
| 218 | t1 = () => loadRejectionDiff(filePath, content); |
| 219 | $[0] = content; |
| 220 | $[1] = filePath; |
| 221 | $[2] = t1; |
| 222 | } else { |
| 223 | t1 = $[2]; |
| 224 | } |
| 225 | const [dataPromise] = useState(t1); |
| 226 | let t2; |
| 227 | if ($[3] !== content) { |
| 228 | t2 = content.split("\n")[0] ?? null; |
| 229 | $[3] = content; |
| 230 | $[4] = t2; |
| 231 | } else { |
| 232 | t2 = $[4]; |
| 233 | } |
| 234 | const firstLine = t2; |
| 235 | let t3; |
| 236 | if ($[5] !== content || $[6] !== filePath || $[7] !== firstLine || $[8] !== verbose) { |
| 237 | t3 = <FileEditToolUseRejectedMessage file_path={filePath} operation="write" content={content} firstLine={firstLine} verbose={verbose} />; |
| 238 | $[5] = content; |
| 239 | $[6] = filePath; |
| 240 | $[7] = firstLine; |
| 241 | $[8] = verbose; |
| 242 | $[9] = t3; |
| 243 | } else { |
| 244 | t3 = $[9]; |
| 245 | } |
| 246 | const createFallback = t3; |
| 247 | let t4; |
| 248 | if ($[10] !== createFallback || $[11] !== dataPromise || $[12] !== filePath || $[13] !== firstLine || $[14] !== style || $[15] !== verbose) { |
| 249 | t4 = <WriteRejectionBody promise={dataPromise} filePath={filePath} firstLine={firstLine} createFallback={createFallback} style={style} verbose={verbose} />; |
| 250 | $[10] = createFallback; |
| 251 | $[11] = dataPromise; |
| 252 | $[12] = filePath; |
| 253 | $[13] = firstLine; |
| 254 | $[14] = style; |
| 255 | $[15] = verbose; |
| 256 | $[16] = t4; |
| 257 | } else { |
| 258 | t4 = $[16]; |
| 259 | } |
| 260 | let t5; |
| 261 | if ($[17] !== createFallback || $[18] !== t4) { |
| 262 | t5 = <Suspense fallback={createFallback}>{t4}</Suspense>; |
| 263 | $[17] = createFallback; |
| 264 | $[18] = t4; |
| 265 | $[19] = t5; |
nothing calls this directly
no test coverage detected