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