(t0)
| 34 | isTranscriptMode?: boolean; |
| 35 | }; |
| 36 | export function SystemTextMessage(t0) { |
| 37 | const $ = _c(51); |
| 38 | const { |
| 39 | message, |
| 40 | addMargin, |
| 41 | verbose, |
| 42 | isTranscriptMode |
| 43 | } = t0; |
| 44 | const bg = useSelectedMessageBg(); |
| 45 | if (message.subtype === "turn_duration") { |
| 46 | let t1; |
| 47 | if ($[0] !== addMargin || $[1] !== message) { |
| 48 | t1 = <TurnDurationMessage message={message} addMargin={addMargin} />; |
| 49 | $[0] = addMargin; |
| 50 | $[1] = message; |
| 51 | $[2] = t1; |
| 52 | } else { |
| 53 | t1 = $[2]; |
| 54 | } |
| 55 | return t1; |
| 56 | } |
| 57 | if (message.subtype === "memory_saved") { |
| 58 | let t1; |
| 59 | if ($[3] !== addMargin || $[4] !== message) { |
| 60 | t1 = <MemorySavedMessage message={message} addMargin={addMargin} />; |
| 61 | $[3] = addMargin; |
| 62 | $[4] = message; |
| 63 | $[5] = t1; |
| 64 | } else { |
| 65 | t1 = $[5]; |
| 66 | } |
| 67 | return t1; |
| 68 | } |
| 69 | if (message.subtype === "away_summary") { |
| 70 | const t1 = addMargin ? 1 : 0; |
| 71 | let t2; |
| 72 | if ($[6] === Symbol.for("react.memo_cache_sentinel")) { |
| 73 | t2 = <Box minWidth={2}><Text dimColor={true}>{REFERENCE_MARK}</Text></Box>; |
| 74 | $[6] = t2; |
| 75 | } else { |
| 76 | t2 = $[6]; |
| 77 | } |
| 78 | let t3; |
| 79 | if ($[7] !== message.content) { |
| 80 | t3 = <Text dimColor={true}>{message.content}</Text>; |
| 81 | $[7] = message.content; |
| 82 | $[8] = t3; |
| 83 | } else { |
| 84 | t3 = $[8]; |
| 85 | } |
| 86 | let t4; |
| 87 | if ($[9] !== bg || $[10] !== t1 || $[11] !== t3) { |
| 88 | t4 = <Box flexDirection="row" marginTop={t1} backgroundColor={bg} width="100%">{t2}{t3}</Box>; |
| 89 | $[9] = bg; |
| 90 | $[10] = t1; |
| 91 | $[11] = t3; |
| 92 | $[12] = t4; |
| 93 | } else { |
nothing calls this directly
no test coverage detected