(t0)
| 578 | return t3; |
| 579 | } |
| 580 | function UserMessageOption(t0) { |
| 581 | const $ = _c(31); |
| 582 | const { |
| 583 | userMessage, |
| 584 | color, |
| 585 | dimColor, |
| 586 | isCurrent, |
| 587 | paddingRight |
| 588 | } = t0; |
| 589 | const { |
| 590 | columns |
| 591 | } = useTerminalSize(); |
| 592 | if (isCurrent) { |
| 593 | let t1; |
| 594 | if ($[0] !== color || $[1] !== dimColor) { |
| 595 | t1 = <Box width="100%"><Text italic={true} color={color} dimColor={dimColor}>(current)</Text></Box>; |
| 596 | $[0] = color; |
| 597 | $[1] = dimColor; |
| 598 | $[2] = t1; |
| 599 | } else { |
| 600 | t1 = $[2]; |
| 601 | } |
| 602 | return t1; |
| 603 | } |
| 604 | const content = userMessage.message.content; |
| 605 | const lastBlock = typeof content === "string" ? null : content[content.length - 1]; |
| 606 | let T0; |
| 607 | let T1; |
| 608 | let t1; |
| 609 | let t2; |
| 610 | let t3; |
| 611 | let t4; |
| 612 | let t5; |
| 613 | let t6; |
| 614 | if ($[3] !== color || $[4] !== columns || $[5] !== content || $[6] !== dimColor || $[7] !== lastBlock || $[8] !== paddingRight) { |
| 615 | t6 = Symbol.for("react.early_return_sentinel"); |
| 616 | bb0: { |
| 617 | const rawMessageText = typeof content === "string" ? content.trim() : lastBlock && isTextBlock(lastBlock) ? lastBlock.text.trim() : "(no prompt)"; |
| 618 | const messageText = stripDisplayTags(rawMessageText); |
| 619 | if (isEmptyMessageText(messageText)) { |
| 620 | let t7; |
| 621 | if ($[17] !== color || $[18] !== dimColor) { |
| 622 | t7 = <Box flexDirection="row" width="100%"><Text italic={true} color={color} dimColor={dimColor}>((empty message))</Text></Box>; |
| 623 | $[17] = color; |
| 624 | $[18] = dimColor; |
| 625 | $[19] = t7; |
| 626 | } else { |
| 627 | t7 = $[19]; |
| 628 | } |
| 629 | t6 = t7; |
| 630 | break bb0; |
| 631 | } |
| 632 | if (messageText.includes("<bash-input>")) { |
| 633 | const input = extractTag(messageText, "bash-input"); |
| 634 | if (input) { |
| 635 | let t7; |
| 636 | if ($[20] === Symbol.for("react.memo_cache_sentinel")) { |
| 637 | t7 = <Text color="bashBorder">!</Text>; |
nothing calls this directly
no test coverage detected