| 18 | * so DCE removes it entirely from external builds. |
| 19 | */ |
| 20 | export function TeamMemCountParts(t0) { |
| 21 | const $ = _c(23); |
| 22 | const { |
| 23 | message, |
| 24 | isActiveGroup, |
| 25 | hasPrecedingParts |
| 26 | } = t0; |
| 27 | const tmReadCount = message.teamMemoryReadCount ?? 0; |
| 28 | const tmSearchCount = message.teamMemorySearchCount ?? 0; |
| 29 | const tmWriteCount = message.teamMemoryWriteCount ?? 0; |
| 30 | if (tmReadCount === 0 && tmSearchCount === 0 && tmWriteCount === 0) { |
| 31 | return null; |
| 32 | } |
| 33 | let t1; |
| 34 | if ($[0] !== hasPrecedingParts || $[1] !== isActiveGroup || $[2] !== tmReadCount || $[3] !== tmSearchCount || $[4] !== tmWriteCount) { |
| 35 | const nodes = []; |
| 36 | let count = hasPrecedingParts ? 1 : 0; |
| 37 | if (tmReadCount > 0) { |
| 38 | const verb = isActiveGroup ? count === 0 ? "Recalling" : "recalling" : count === 0 ? "Recalled" : "recalled"; |
| 39 | if (count > 0) { |
| 40 | let t2; |
| 41 | if ($[6] === Symbol.for("react.memo_cache_sentinel")) { |
| 42 | t2 = <Text key="comma-tmr">, </Text>; |
| 43 | $[6] = t2; |
| 44 | } else { |
| 45 | t2 = $[6]; |
| 46 | } |
| 47 | nodes.push(t2); |
| 48 | } |
| 49 | let t2; |
| 50 | if ($[7] !== tmReadCount) { |
| 51 | t2 = <Text bold={true}>{tmReadCount}</Text>; |
| 52 | $[7] = tmReadCount; |
| 53 | $[8] = t2; |
| 54 | } else { |
| 55 | t2 = $[8]; |
| 56 | } |
| 57 | const t3 = tmReadCount === 1 ? "memory" : "memories"; |
| 58 | let t4; |
| 59 | if ($[9] !== t2 || $[10] !== t3 || $[11] !== verb) { |
| 60 | t4 = <Text key="team-mem-read">{verb} {t2} team{" "}{t3}</Text>; |
| 61 | $[9] = t2; |
| 62 | $[10] = t3; |
| 63 | $[11] = verb; |
| 64 | $[12] = t4; |
| 65 | } else { |
| 66 | t4 = $[12]; |
| 67 | } |
| 68 | nodes.push(t4); |
| 69 | count++; |
| 70 | } |
| 71 | if (tmSearchCount > 0) { |
| 72 | const verb_0 = isActiveGroup ? count === 0 ? "Searching" : "searching" : count === 0 ? "Searched" : "searched"; |
| 73 | if (count > 0) { |
| 74 | let t2; |
| 75 | if ($[13] === Symbol.for("react.memo_cache_sentinel")) { |
| 76 | t2 = <Text key="comma-tms">, </Text>; |
| 77 | $[13] = t2; |