\n\t\t\t\t\t\t\t\t\t\t\t{tr(\n\t\t\t\t\t\t\t\t\t\t\t\t\"CHAT_EMPTY_STATE\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"aiChat.chat.emptyState\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Start a conversation...\",\n\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t{tr(\n\t\t\t\t\t\t\t\t\t\t\t\t\"CHAT_EMPTY_STATE\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"aiChat.chat.emptyState\",\n\t\t\t\t\t\t\t\t\t\t\t\t\"Start a conversation...\",\n\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t{textContent}\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{tr(\n\t\t\t\t\t\t\t\t\t\t\"CHAT_INTERRUPTED\",\n\t\t\t\t\t\t\t\t\t\t\"aiChat.interrupted\",\n\t\t\t\t\t\t\t\t\t\t\"Response interrupted\",\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{displayContent ? (\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t{textContent}\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t{tr(\n\t\t\t\t\t\t\t\t\t\t\"CHAT_INTERRUPTED\",\n\t\t\t\t\t\t\t\t\t\t\"aiChat.interrupted\",\n\t\t\t\t\t\t\t\t\t\t\"Response interrupted\",\n\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t{displayContent ? (\n\t\t\t\t\t\t\t\t\n\t\t\t\t{failed\n\t\t\t\t\t? tr(\n\t\t\t\t\t\t\t\"PAGE_CONTENT_ERROR\",\n\t\t\t\t\t\t\t\"aiChat.pageContent.error\",\n\t\t\t\t\t\t\t\"Unable to read this page.\",\n\t\t\t\t\t\t)\n\t\t\t\t\t: state === \"output-available\"\n\t\t\t\t\t\t? tr(\n\t\t\t\t\t\t\t\t\"PAGE_CONTENT_READ\",\n\t\t\t\t\t\t\t\t\"aiChat.pageContent.read\",\n\t\t\t\t\t\t\t\t\"Read page content\",\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t: tr(\n\t\t\t\t\t\t\t\t\"PAGE_CONTENT_READING\",\n\t\t\t\t\t\t\t\t\"aiChat.pageContent.reading\",\n\t\t\t\t\t\t\t\t\"Reading page content…\",\n\t\t\t\t\t\t\t)}\n\t\t\t
\n\t\t);\n\t}\n\tconst displayName = formatToolName(toolName);\n\tconst statusLabel =\n\t\tisLoading || state === \"input-streaming\"\n\t\t\t? tr(\"TOOL_STATUS_RUNNING\", \"aiChat.tools.status.running\", \"Running...\")\n\t\t\t: state === \"input-available\"\n\t\t\t\t? tr(\n\t\t\t\t\t\t\"TOOL_STATUS_EXECUTING\",\n\t\t\t\t\t\t\"aiChat.tools.status.executing\",\n\t\t\t\t\t\t\"Executing...\",\n\t\t\t\t\t)\n\t\t\t\t: state === \"output-error\"\n\t\t\t\t\t? tr(\"TOOL_STATUS_ERROR\", \"aiChat.tools.status.error\", \"Error\")\n\t\t\t\t\t: state === \"output-available\"\n\t\t\t\t\t\t? tr(\n\t\t\t\t\t\t\t\t\"TOOL_STATUS_COMPLETE\",\n\t\t\t\t\t\t\t\t\"aiChat.tools.status.complete\",\n\t\t\t\t\t\t\t\t\"Complete\",\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t: tr(\n\t\t\t\t\t\t\t\t\"TOOL_STATUS_PENDING\",\n\t\t\t\t\t\t\t\t\"aiChat.tools.status.pending\",\n\t\t\t\t\t\t\t\t\"Pending\",\n\t\t\t\t\t\t\t);\n\tconst statusIcon = getStatusIcon(state, isLoading);\n\n\tconst isComplete = state === \"output-available\" || state === \"output-error\";\n\tconst hasError = state === \"output-error\";\n\n\treturn (\n\t\t\n\t\t\t\t{failed\n\t\t\t\t\t? tr(\n\t\t\t\t\t\t\t\"PAGE_CONTENT_ERROR\",\n\t\t\t\t\t\t\t\"aiChat.pageContent.error\",\n\t\t\t\t\t\t\t\"Unable to read this page.\",\n\t\t\t\t\t\t)\n\t\t\t\t\t: state === \"output-available\"\n\t\t\t\t\t\t? tr(\n\t\t\t\t\t\t\t\t\"PAGE_CONTENT_READ\",\n\t\t\t\t\t\t\t\t\"aiChat.pageContent.read\",\n\t\t\t\t\t\t\t\t\"Read page content\",\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t: tr(\n\t\t\t\t\t\t\t\t\"PAGE_CONTENT_READING\",\n\t\t\t\t\t\t\t\t\"aiChat.pageContent.reading\",\n\t\t\t\t\t\t\t\t\"Reading page content…\",\n\t\t\t\t\t\t\t)}\n\t\t\t
\n\t\t);\n\t}\n\tconst displayName = formatToolName(toolName);\n\tconst approvalLabel =\n\t\tstate === \"approval-requested\"\n\t\t\t? tr(\n\t\t\t\t\t\"TOOL_STATUS_APPROVAL_REQUESTED\",\n\t\t\t\t\t\"aiChat.tools.status.approvalRequested\",\n\t\t\t\t\t\"Approval required\",\n\t\t\t\t)\n\t\t\t: state === \"approval-responded\"\n\t\t\t\t? tr(\n\t\t\t\t\t\t\"TOOL_STATUS_APPROVAL_RESPONDED\",\n\t\t\t\t\t\t\"aiChat.tools.status.approvalResponded\",\n\t\t\t\t\t\t\"Approval submitted\",\n\t\t\t\t\t)\n\t\t\t\t: state === \"output-denied\"\n\t\t\t\t\t? tr(\"TOOL_STATUS_DENIED\", \"aiChat.tools.status.denied\", \"Denied\")\n\t\t\t\t\t: undefined;\n\tconst statusLabel =\n\t\tapprovalLabel ??\n\t\t(isLoading || state === \"input-streaming\"\n\t\t\t? tr(\"TOOL_STATUS_RUNNING\", \"aiChat.tools.status.running\", \"Running...\")\n\t\t\t: state === \"input-available\"\n\t\t\t\t? tr(\n\t\t\t\t\t\t\"TOOL_STATUS_EXECUTING\",\n\t\t\t\t\t\t\"aiChat.tools.status.executing\",\n\t\t\t\t\t\t\"Executing...\",\n\t\t\t\t\t)\n\t\t\t\t: state === \"output-error\"\n\t\t\t\t\t? tr(\"TOOL_STATUS_ERROR\", \"aiChat.tools.status.error\", \"Error\")\n\t\t\t\t\t: state === \"output-available\"\n\t\t\t\t\t\t? tr(\n\t\t\t\t\t\t\t\t\"TOOL_STATUS_COMPLETE\",\n\t\t\t\t\t\t\t\t\"aiChat.tools.status.complete\",\n\t\t\t\t\t\t\t\t\"Complete\",\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t: tr(\n\t\t\t\t\t\t\t\t\"TOOL_STATUS_PENDING\",\n\t\t\t\t\t\t\t\t\"aiChat.tools.status.pending\",\n\t\t\t\t\t\t\t\t\"Pending\",\n\t\t\t\t\t\t\t));\n\tconst statusIcon = getStatusIcon(state, isLoading);\n\n\tconst isComplete =\n\t\tstate === \"output-available\" ||\n\t\tstate === \"output-error\" ||\n\t\tstate === \"output-denied\";\n\tconst hasError = state === \"output-error\" || state === \"output-denied\";\n\n\treturn (\n\t\t