// Module ID: 16393 // Function ID: 16394 // Name: VibegrationsDebugAgentTab // Dependencies: [19, 17, 12607, 16374, 21, 4829, 576, 16379, 4825, 16378, 16381, 1115, 3714, 5364, 504, 5274, 16392, 2] // Exports: default // Module 16393 (VibegrationsDebugAgentTab) import nativeDefault from "native" /* 576 */; import Text_Text from "Text/Text" /* 4825 */; import VibegrationsDebugFormat from "VibegrationsDebugFormat" /* 16378 */; import VibegrationsDebugLabels from "VibegrationsDebugLabels" /* 16379 */; import noop from "module_19" /* 19 */; import VibegrationsDebugStore from "VibegrationsDebugStore" /* 16374 */; require = fn; function ModelCallRow(call) { call = call.call; const tmp = closure_11(); const obj2 = { style: tmp.callRow, children: null }; const obj3 = { style: tmp.callHead, children: null }; ({ text, bad } = VibegrationsDebugLabels.modelCallOutcome(call)); const obj4 = { variant: "text-xs/normal", color: "text-subtle", children: null }; const modelCallOutcomeResult = VibegrationsDebugLabels.modelCallOutcome(call); const tmp3 = React6; const tmp4 = View; const tmp5 = React5; obj4.children = VibegrationsDebugFormat.formatClockTime(call.observedAt); const items = [React5(Text_Text.Text, obj4), ]; const obj6 = { variant: "text-xs/normal", color: "text-default", children: null }; const items1 = [call.role, " \u00B7 ", call.model]; obj6.children = items1; items[1] = React6(Text_Text.Text, obj6); obj3.children = items; const items2 = [React6(View, obj3), ]; let str = "text-muted"; if (bad) { str = "text-feedback-critical"; } items2[1] = tmp5(Text_Text.Text, { variant: "text-xs/medium", color: str, children: text }); obj2.children = items2; return tmp3(tmp4, obj2); } const View = fn(17).View; const forceCompaction = fn(12607).forceCompaction; const jsxProd = fn(21); ({ jsx: closure_7, jsxs: closure_8, Fragment: closure_9 } = jsxProd); let closure_10 = []; const createStyles = fn(4829); let obj2 = { tab: { gap: nativeDefault.space.PX_24 }, callRow: null, callHead: null, forceCompaction: null }; let obj3 = { gap: nativeDefault.space.PX_24 }; obj2.callRow = { gap: nativeDefault.space.PX_4 }; let obj4 = { gap: nativeDefault.space.PX_4 }; obj2.callHead = { flexDirection: "row", gap: nativeDefault.space.PX_8 }; const obj5 = { flexDirection: "row", gap: nativeDefault.space.PX_8 }; obj2.forceCompaction = { gap: nativeDefault.space.PX_8 }; let closure_11 = createStyles.createStyles(obj2); const size = fn(2); const result = size.fileFinishedImporting("modules/vibegrations/native/VibegrationsDebugAgentTab.tsx"); export default function VibegrationsDebugAgentTab(projectId) { projectId = projectId.projectId; ({ status, traceVisible } = projectId); ({ fetchState, onRefresh } = projectId); const tmp = closure_11(); const tmp2 = projectId; const items = [VibegrationsDebugStore]; const items1 = [projectId]; const stateFromStores = projectId(504).useStateFromStores(items, () => VibegrationsDebugStore.getLastTurnUsage(projectId), items1); const obj = projectId(504); const items2 = [VibegrationsDebugStore]; const items3 = [projectId]; const stateFromStores1 = projectId(504).useStateFromStores(items2, () => VibegrationsDebugStore.getLastCompaction(projectId), items3); const obj2 = projectId(504); const items4 = [VibegrationsDebugStore]; const items5 = [projectId]; const stateFromStores2 = projectId(504).useStateFromStores(items4, () => VibegrationsDebugStore.getLastCompactionDecline(projectId), items5); const obj3 = projectId(504); const items6 = [VibegrationsDebugStore]; const items7 = [projectId]; const stateFromStores3 = projectId(504).useStateFromStores(items6, () => VibegrationsDebugStore.getForceCompactionState(projectId), items7); const obj4 = projectId(504); const items8 = [VibegrationsDebugStore]; const items9 = [projectId, traceVisible]; const stateFromStores4 = projectId(504).useStateFromStores(items8, () => { if (traceVisible) { let modelCalls = closure_10; } else { modelCalls = VibegrationsDebugStore.getModelCalls(projectId); } return modelCalls; }, items9); const items10 = [projectId]; const items11 = [projectId]; const callback = noop.useCallback(() => forceCompaction(projectId), items10); let lifetime; const callback1 = noop.useCallback(() => forceCompaction(projectId, true), items11); if (status != null) { const agent = status.agent; if (agent != null) { lifetime = agent.lifetime; } } if (lifetime == null) { lifetime = null; } let limits; if (status != null) { const agent2 = status.agent; if (agent2 != null) { limits = agent2.limits; } } if (limits == null) { limits = null; } let session; if (status != null) { const agent3 = status.agent; if (agent3 != null) { session = agent3.session; } } if (session == null) { session = null; } let promptCeiling; if (stateFromStores1 != null) { promptCeiling = stateFromStores1.promptCeiling; } if (promptCeiling == null) { let prop; if (limits != null) { prop = limits.context_window_tokens; } promptCeiling = prop; } if (promptCeiling == null) { promptCeiling = null; } let tmp15 = null; if (typeof stateFromStores3 === "object") { tmp15 = stateFromStores3; } const obj6 = { style: tmp.tab, children: null }; let generated_at; if (status != null) { generated_at = status.generated_at; } if (generated_at == null) { generated_at = null; } const items12 = [closure_7(tmp2(16381).DebugSnapshotToolbar, { generatedAt: generated_at, fetchState, onRefresh }), , , , , , ]; const obj7 = { title: null, children: null }; const intl = tmp2(1115).intl; obj7.title = intl.string(traceVisible(3714).IYpHtT); if (null == lifetime) { const obj8 = { children: null }; const intl3 = tmp2(1115).intl; obj8.children = intl3.string(tmp20(3714).gPabB9); let tmp16Result5 = tmp18(tmp2(16381).DebugNote, obj8); } else { const obj9 = { label: null, value: null, hint: null }; const intl35 = tmp2(1115).intl; obj9.label = intl35.string(tmp20(3714)["8MSJDH"]); const tmp2Result = tmp2(16378); const tmp48 = closure_9; obj9.value = tmp2Result.formatCount(tmp2(5364).runesFromUsd(lifetime.cost_usd)); const intl36 = tmp2(1115).intl; const obj10 = { count: null }; const tmp2Result44 = tmp2(5364); obj10.count = tmp2(16378).formatCount(lifetime.turns); obj9.hint = intl36.formatToPlainString(tmp20(3714)["6Z2KhK"], obj10); const items13 = [tmp18(tmp2(16381).DebugStatRow, obj9), , , , ]; const intl37 = tmp2(1115).intl; const orchestrator = lifetime.orchestrator; const tmp2Result45 = tmp2(16378); const obj11 = { label: intl37.string(tmp20(3714).hk4jJr), value: null, hint: null }; const intl38 = tmp2(1115).intl; const obj12 = { count: null }; const stringResult = intl37.string(tmp20(3714).hk4jJr); const tmp2Result46 = tmp2(16378); obj12.count = tmp2Result46.formatCount(tmp2(5364).runeCount(orchestrator)); obj11.value = intl38.formatToPlainString(tmp20(3714).U98VaN, obj12); const tmp2Result47 = tmp2(5364); const formatCountResult = tmp2(16378).formatCount(orchestrator.input_tokens); const tmp2Result48 = tmp2(16378); const tmp2Result49 = tmp2(16378); const formatCountResult1 = tmp2(16378).formatCount(orchestrator.output_tokens); const _HermesInternal4 = HermesInternal; obj11.hint = "" + formatCountResult + " in \u00B7 " + formatCountResult1 + " out \u00B7 " + tmp2(16378).formatCount(orchestrator.cache_read_input_tokens) + " cache read"; items13[1] = tmp18(tmp2(16381).DebugStatRow, obj11); const intl39 = tmp2(1115).intl; const codegen = lifetime.codegen; const tmp2Result50 = tmp2(16378); const obj13 = { label: intl39.string(tmp20(3714).R9aduM), value: null, hint: null }; const intl40 = tmp2(1115).intl; const obj14 = { count: null }; const stringResult1 = intl39.string(tmp20(3714).R9aduM); const tmp2Result51 = tmp2(16378); obj14.count = tmp2Result51.formatCount(tmp2(5364).runeCount(codegen)); obj13.value = intl40.formatToPlainString(tmp20(3714).U98VaN, obj14); const tmp2Result52 = tmp2(5364); const formatCountResult2 = tmp2(16378).formatCount(codegen.input_tokens); const tmp2Result53 = tmp2(16378); const tmp2Result54 = tmp2(16378); const formatCountResult3 = tmp2(16378).formatCount(codegen.output_tokens); const _HermesInternal5 = HermesInternal; obj13.hint = "" + formatCountResult2 + " in \u00B7 " + formatCountResult3 + " out \u00B7 " + tmp2(16378).formatCount(codegen.cache_read_input_tokens) + " cache read"; items13[2] = tmp18(tmp2(16381).DebugStatRow, obj13); const intl41 = tmp2(1115).intl; const tmp2Result55 = tmp2(16378); const stringResult2 = intl41.string(tmp20(3714).Tj6b30); const usageOrEmptyResult = tmp2(5364).usageOrEmpty(lifetime.compaction); const obj15 = { label: stringResult2, value: null, hint: null }; const intl42 = tmp2(1115).intl; const obj16 = { count: null }; const tmp2Result56 = tmp2(5364); const tmp2Result57 = tmp2(16378); obj16.count = tmp2Result57.formatCount(tmp2(5364).runeCount(usageOrEmptyResult)); obj15.value = intl42.formatToPlainString(tmp20(3714).U98VaN, obj16); const tmp2Result58 = tmp2(5364); const formatCountResult4 = tmp2(16378).formatCount(usageOrEmptyResult.input_tokens); const tmp2Result59 = tmp2(16378); const tmp2Result60 = tmp2(16378); const formatCountResult5 = tmp2(16378).formatCount(usageOrEmptyResult.output_tokens); const _HermesInternal6 = HermesInternal; obj15.hint = "" + formatCountResult4 + " in \u00B7 " + formatCountResult5 + " out \u00B7 " + tmp2(16378).formatCount(usageOrEmptyResult.cache_read_input_tokens) + " cache read"; items13[3] = tmp18(tmp2(16381).DebugStatRow, obj15); let outcomes; if (status != null) { const agent4 = status.agent; if (agent4 != null) { outcomes = agent4.outcomes; } } let tmp18Result9 = null; if (null != outcomes) { const _Object = Object; tmp18Result9 = null; if (Object.keys(status.agent.outcomes).length > 0) { const obj17 = { label: null, value: null }; const intl2 = tmp2(1115).intl; obj17.label = intl2.string(tmp20(3714).Q2OlgI); const _Object2 = Object; const entries = Object.entries(status.agent.outcomes); const sorted = entries.sort((arg0, arg1) => { [, tmp] = arg0; [, tmp2] = arg1; return tmp2 - tmp; }); const mapped = sorted.map((item) => { [tmp, tmp2] = item; return "" + projectId(dependencyMap[9]).formatCount(tmp2) + " " + tmp; }); obj17.value = mapped.join(" \u00B7 "); tmp18Result9 = tmp18(tmp2(16381).DebugStatRow, obj17); } } const obj18 = { children: null }; items13[4] = tmp18Result9; obj18.children = items13; tmp16Result5 = tmp16(tmp48, obj18); const tmp2Result61 = tmp2(16378); } obj7.children = tmp16Result5; items12[1] = closure_7(tmp2(16381).DebugSection, obj7); const obj19 = { title: null, children: null }; const intl4 = tmp2(1115).intl; obj19.title = intl4.string(traceVisible(3714).lo4mY6); if (null == stateFromStores) { const obj20 = { children: null }; const intl5 = tmp2(1115).intl; obj20.children = intl5.string(tmp20(3714).uyPveL); let tmp18Result10 = tmp18(tmp2(16381).DebugNote, obj20); } else { const intl43 = tmp2(1115).intl; const total = stateFromStores.total; const obj21 = { label: intl43.string(tmp20(3714)["VwF+oY"]), value: null, hint: null }; const intl44 = tmp2(1115).intl; const obj22 = { count: null }; const stringResult3 = intl43.string(tmp20(3714)["VwF+oY"]); const tmp63 = closure_9; const tmp2Result62 = tmp2(16378); obj22.count = tmp2Result62.formatCount(tmp2(5364).runeCount(total)); obj21.value = intl44.formatToPlainString(tmp20(3714).U98VaN, obj22); const tmp2Result63 = tmp2(5364); const formatCountResult6 = tmp2(16378).formatCount(total.input_tokens); const tmp2Result64 = tmp2(16378); const tmp2Result65 = tmp2(16378); const formatCountResult7 = tmp2(16378).formatCount(total.output_tokens); const _HermesInternal7 = HermesInternal; obj21.hint = "" + formatCountResult6 + " in \u00B7 " + formatCountResult7 + " out \u00B7 " + tmp2(16378).formatCount(total.cache_read_input_tokens) + " cache read"; const items14 = [tmp18(tmp2(16381).DebugStatRow, obj21), ]; const obj23 = { label: null, value: null }; const intl45 = tmp2(1115).intl; obj23.label = intl45.string(tmp20(3714)["kILb+R"]); let cache_hit_rate = stateFromStores.cache_hit_rate; if (cache_hit_rate == null) { cache_hit_rate = tmp2(5364).cacheHitRate(stateFromStores.total); const tmp2Result67 = tmp2(5364); } const obj24 = { children: null }; const _HermesInternal = HermesInternal; obj23.value = "" + Math.round(100 * cache_hit_rate) + "%"; items14[1] = tmp18(tmp2(16381).DebugStatRow, obj23); obj24.children = items14; tmp18Result10 = tmp16(tmp63, obj24); const tmp2Result66 = tmp2(16378); } obj19.children = tmp18Result10; items12[2] = closure_7(tmp2(16381).DebugSection, obj19); const obj25 = { title: null, children: null }; const intl6 = tmp2(1115).intl; obj25.title = intl6.string(traceVisible(3714).mn8279); if (null != stateFromStores1) { if (null != promptCeiling) { const obj26 = { children: null }; const obj27 = { label: null, used: null, max: null, formatValue: null }; const intl9 = tmp2(1115).intl; obj27.label = intl9.string(tmp20(3714).dKFhCg); obj27.used = stateFromStores1.tokensAfter; obj27.max = promptCeiling; obj27.formatValue = tmp2(16378).formatCount; const items15 = [tmp18(tmp2(16381).DebugMeter, obj27), ]; const obj28 = { label: null, value: null, hint: null }; const intl10 = tmp2(1115).intl; obj28.label = intl10.string(tmp20(3714).ntZb8d); const tmp2Result68 = tmp2(16378); const formatCountResult8 = tmp2(16378).formatCount(stateFromStores1.tokensBefore); const _HermesInternal2 = HermesInternal; obj28.value = "" + formatCountResult8 + " \u2192 " + tmp2(16378).formatCount(stateFromStores1.tokensAfter); const intl11 = tmp2(1115).intl; const obj29 = { count: null, time: null }; const tmp2Result69 = tmp2(16378); obj29.count = tmp2(16378).formatCount(stateFromStores1.retainedMessages); const tmp2Result70 = tmp2(16378); obj29.time = tmp2(16378).formatObservedAt(stateFromStores1.observedAt); obj28.hint = intl11.formatToPlainString(tmp20(3714).jA05ru, obj29); items15[1] = tmp18(tmp2(16381).DebugStatRow, obj28); obj26.children = items15; let tmp18Result17 = tmp16(closure_9, obj26); const tmp2Result71 = tmp2(16378); } const items16 = [tmp18Result17, , ]; let tmp18Result11 = null; if (null != stateFromStores2) { const obj30 = { label: null, value: null, critical: true, hint: null }; const intl12 = tmp2(1115).intl; obj30.label = intl12.string(tmp20(3714)["se+2ls"]); const tmp2Result72 = tmp2(16378); const formatCountResult9 = tmp2(16378).formatCount(stateFromStores2.projected); const _HermesInternal3 = HermesInternal; obj30.value = "" + formatCountResult9 + " / " + tmp2(16378).formatCount(stateFromStores2.threshold); const intl13 = tmp2(1115).intl; const obj31 = { time: null }; const tmp2Result73 = tmp2(16378); obj31.time = tmp2(16378).formatObservedAt(stateFromStores2.observedAt); obj30.hint = intl13.formatToPlainString(tmp20(3714).KHK44U, obj31); tmp18Result11 = tmp18(tmp2(16381).DebugStatRow, obj30); const tmp2Result74 = tmp2(16378); } items16[1] = tmp18Result11; const obj32 = { style: tmp.forceCompaction, children: null }; const obj33 = { variant: "secondary", size: "sm", text: null, disabled: null, onPress: null }; const intl14 = tmp2(1115).intl; obj33.text = intl14.string(tmp20(3714).B0KV7p); obj33.disabled = "pending" === stateFromStores3; obj33.onPress = callback; const items17 = [tmp18(tmp2(5274).Button, obj33), , ]; let str9 = "text-muted"; if (null != tmp15) { str9 = "text-muted"; if ("compacted" !== tmp15.outcome) { str9 = "text-feedback-critical"; } } const obj34 = { variant: "text-xs/normal", color: str9, children: tmp2(16379).forceCompactionStatus(stateFromStores3) }; items17[1] = tmp18(tmp2(4825).Text, obj34); let pendingTurn; if (tmp15 != null) { pendingTurn = tmp15.pendingTurn; } let tmp16Result6 = null; if (true === pendingTurn) { const obj35 = { children: null }; const obj36 = { variant: "critical-primary", size: "sm", text: null, onPress: null }; const intl46 = tmp2(1115).intl; obj36.text = intl46.string(tmp20(3714)["044+ju"]); obj36.onPress = callback1; const items18 = [tmp18(tmp2(5274).Button, obj36), ]; const obj37 = { variant: "text-xs/normal", color: "text-muted", children: null }; const intl47 = tmp2(1115).intl; obj37.children = intl47.string(tmp20(3714)["8D32H6"]); items18[1] = tmp18(tmp2(4825).Text, obj37); obj35.children = items18; tmp16Result6 = tmp16(closure_9, obj35); } items17[2] = tmp16Result6; obj32.children = items17; items16[2] = tmp16(tmp17, obj32); obj25.children = items16; items12[3] = tmp16(tmp2(16381).DebugSection, obj25); if (traceVisible) { items12[4] = null; if (null != session) { const obj38 = { title: null, children: null }; const intl18 = tmp2(1115).intl; obj38.title = intl18.string(tmp20(3714).ZRxAPD); let tmp16Result7 = null; if (null != session) { const obj39 = { label: null, value: null, hint: null }; const intl19 = tmp2(1115).intl; obj39.label = intl19.string(tmp20(3714)["wt5X/o"]); obj39.value = tmp2(16378).formatObservedAt(session.instance_since); const intl20 = tmp2(1115).intl; obj39.hint = intl20.string(tmp20(3714).QX2UQC); const items19 = [tmp18(tmp2(16381).DebugStatRow, obj39), , , ]; const obj40 = { label: null, value: null }; const intl21 = tmp2(1115).intl; obj40.label = intl21.string(tmp20(3714)["4lgurx"]); const tmp2Result76 = tmp2(16378); const tmp42 = closure_9; obj40.value = tmp2(16378).formatCount(session.sockets); items19[1] = tmp18(tmp2(16381).DebugStatRow, obj40); const obj41 = { label: null, value: null }; const intl22 = tmp2(1115).intl; obj41.label = intl22.string(tmp20(3714)["a/LXBt"]); const intl23 = tmp2(1115).intl; const tmp20Result = tmp20(3714); obj41.value = intl23.string(session.turn_inflight ? tmp20Result["9KlveJ"] : tmp20Result["4tYZVa"]); items19[2] = tmp18(tmp2(16381).DebugStatRow, obj41); let tmp18Result12 = null; if (session.queued_messages > 0) { const obj42 = { label: null, value: null }; const intl24 = tmp2(1115).intl; obj42.label = intl24.string(tmp20(3714)["/hOBkc"]); obj42.value = tmp2(16378).formatCount(session.queued_messages); tmp18Result12 = tmp18(tmp2(16381).DebugStatRow, obj42); const tmp2Result78 = tmp2(16378); } const obj43 = { children: null }; items19[3] = tmp18Result12; obj43.children = items19; tmp16Result7 = tmp16(tmp42, obj43); const tmp2Result77 = tmp2(16378); } const items20 = [tmp16Result7, ]; let analytics; if (status != null) { analytics = status.analytics; } let tmp18Result13 = null; if (null != analytics) { const obj44 = { analytics: status.analytics }; tmp18Result13 = tmp18(tmp2(16392).VibegrationsDebugAgentAnalyticsRows, obj44); } items20[1] = tmp18Result13; obj38.children = items20; let tmp16Result8 = tmp16(tmp2(16381).DebugSection, obj38); } else { let analytics1; if (status != null) { analytics1 = status.analytics; } tmp16Result8 = null; } items12[5] = tmp16Result8; let tmp16Result9 = null; if (null != limits) { const obj45 = { title: null, children: null }; const intl25 = tmp2(1115).intl; obj45.title = intl25.string(tmp20(3714)["EmSF+A"]); const obj46 = { label: null, value: null }; const intl26 = tmp2(1115).intl; obj46.label = intl26.string(tmp20(3714)["5iHZLk"]); obj46.value = tmp2(16378).formatCount(limits.max_iterations); const items21 = [tmp18(tmp2(16381).DebugStatRow, obj46), , , , , , ]; const obj47 = { label: null, value: null }; const intl27 = tmp2(1115).intl; obj47.label = intl27.string(tmp20(3714).Rb6m3E); const tmp2Result79 = tmp2(16378); obj47.value = tmp2(16378).formatCount(limits.max_subagent_iterations); items21[1] = tmp18(tmp2(16381).DebugStatRow, obj47); const obj48 = { label: null, value: null }; const intl28 = tmp2(1115).intl; obj48.label = intl28.string(tmp20(3714).WQ9pMe); const intl29 = tmp2(1115).intl; const obj49 = { count: null }; const tmp2Result80 = tmp2(16378); obj49.count = tmp2(16378).formatCount(limits.context_window_tokens); obj48.value = intl29.formatToPlainString(tmp20(3714).U98VaN, obj49); items21[2] = tmp18(tmp2(16381).DebugStatRow, obj48); const obj50 = { label: null, value: null }; const intl30 = tmp2(1115).intl; obj50.label = intl30.string(tmp20(3714).iEAvzu); const intl31 = tmp2(1115).intl; const obj51 = { count: null }; const tmp2Result81 = tmp2(16378); obj51.count = tmp2(16378).formatCount(limits.per_turn_max_output_tokens); obj50.value = intl31.formatToPlainString(tmp20(3714).U98VaN, obj51); items21[3] = tmp18(tmp2(16381).DebugStatRow, obj50); const obj52 = { label: null, value: null }; const intl32 = tmp2(1115).intl; obj52.label = intl32.string(tmp20(3714)["jbhs+f"]); const tmp2Result82 = tmp2(16378); obj52.value = tmp2(16378).formatCount(limits.max_user_message_chars); items21[4] = tmp18(tmp2(16381).DebugStatRow, obj52); const obj53 = { label: null, value: null }; const intl33 = tmp2(1115).intl; obj53.label = intl33.string(tmp20(3714).TOQnq4); const tmp2Result83 = tmp2(16378); obj53.value = tmp2(16378).formatCount(limits.max_build_attempts); items21[5] = tmp18(tmp2(16381).DebugStatRow, obj53); const obj54 = { label: null, value: null }; const intl34 = tmp2(1115).intl; obj54.label = intl34.string(tmp20(3714).RIDc6D); const tmp2Result84 = tmp2(16378); obj54.value = tmp2(16378).formatCount(limits.max_session_attempts); items21[6] = tmp18(tmp2(16381).DebugStatRow, obj54); obj45.children = items21; tmp16Result9 = tmp16(tmp2(16381).DebugSection, obj45); const tmp2Result85 = tmp2(16378); } items12[6] = tmp16Result9; obj6.children = items12; return tmp16(tmp17, obj6); } else { const obj55 = { title: null, children: null }; const intl15 = tmp2(1115).intl; obj55.title = intl15.string(tmp20(3714).F5eP7e); if (0 === stateFromStores4.length) { const obj56 = { children: null }; const intl17 = tmp2(1115).intl; obj56.children = intl17.string(tmp20(3714).j8NMgl); let tmp18Result14 = tmp18(tmp2(16381).DebugNote, obj56); } else { const substr = stateFromStores4.slice(-tmp2(16379).MAX_MODEL_CALL_ROWS); const reversed = substr.reverse(); const items22 = [reversed.map((call) => closure_1_7(ModelCallRow, { call }, call.id)), ]; let tmp18Result15 = null; if (stateFromStores4.length > tmp2(16379).MAX_MODEL_CALL_ROWS) { const obj57 = { variant: "text-xs/normal", color: "text-muted", children: null }; const intl16 = tmp2(1115).intl; const obj58 = { shown: tmp2(16379).MAX_MODEL_CALL_ROWS, total: stateFromStores4.length }; obj57.children = intl16.formatToPlainString(tmp20(3714)["3hYhpp"], obj58); tmp18Result15 = tmp18(tmp2(4825).Text, obj57); } const obj59 = { children: null }; items22[1] = tmp18Result15; obj59.children = items22; tmp18Result14 = tmp16(closure_9, obj59); } obj55.children = tmp18Result14; tmp18(tmp2(16381).DebugSection, obj55); } const tmp2Result75 = tmp2(16379); } if (null != promptCeiling) { const intl8 = tmp2(1115).intl; const obj60 = { ceiling: tmp2(16378).formatCount(promptCeiling) }; let formatToPlainStringResult = intl8.formatToPlainString(tmp20(3714).LKGmsP, obj60); const tmp2Result86 = tmp2(16378); } else { const intl7 = tmp2(1115).intl; formatToPlainStringResult = intl7.string(tmp20(3714).gPabB9); } tmp18Result17 = tmp18(tmp2(16381).DebugNote, { children: formatToPlainStringResult }); };