const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
const require_atoms_chat_chatState = require('./chatState.cjs');
const require_performanceMetrics = require('./performanceMetrics.cjs');
const require_messageQueue = require('./messageQueue.cjs');
const require_form = require('./form.cjs');
const require_suggestions = require('./suggestions.cjs');
const require_lastMessage = require('./lastMessage.cjs');
const require_renderedWidgetRefs = require('./renderedWidgetRefs.cjs');
let jotai = require("jotai");

//#region src/atoms/chat/index.ts
const chatAtom = (0, jotai.atom)((get) => ({
	userHasReplied: get(require_atoms_chat_chatState.userHasRepliedAtom),
	replyEventCategory: get(require_atoms_chat_chatState.replyEventCategoryAtom),
	userQuery: get(require_atoms_chat_chatState.userQueryAtom),
	suggestion: get(require_atoms_chat_chatState.suggestionAtom),
	askQuestionBtnClicked: get(require_atoms_chat_chatState.askQuestionBtnClickedAtom),
	messages: get(require_atoms_chat_chatState.messagesAtom),
	userEvents: get(require_atoms_chat_chatState.userEventsAtom),
	suggestions: get(require_atoms_chat_chatState.suggestionsAtom),
	suggestionsLoading: get(require_atoms_chat_chatState.suggestionsLoadingAtom),
	responseStreaming: get(require_atoms_chat_chatState.responseStreamingAtom),
	isOpen: get(require_atoms_chat_chatState.chatIsOpenAtom),
	onToggle: get(require_atoms_chat_chatState.chatOnToggleAtom)
}));

//#endregion
exports.APP_INITIAL_START_TIME_KEY = require_performanceMetrics.APP_INITIAL_START_TIME_KEY;
exports.PAGE_LOAD_OFFSET_TIME_KEY = require_performanceMetrics.PAGE_LOAD_OFFSET_TIME_KEY;
exports.PerfMetricsEvents = require_performanceMetrics.PerfMetricsEvents;
exports.addWidget = require_renderedWidgetRefs.addWidget;
exports.appInitialStartTimeMsAtom = require_performanceMetrics.appInitialStartTimeMsAtom;
exports.askQuestionBtnClickedAtom = require_atoms_chat_chatState.askQuestionBtnClickedAtom;
exports.chatAtom = chatAtom;
exports.chatIsOpenAtom = require_atoms_chat_chatState.chatIsOpenAtom;
exports.chatOnToggleAtom = require_atoms_chat_chatState.chatOnToggleAtom;
exports.clearUserEventAtom = require_messageQueue.clearUserEventAtom;
exports.formSubmitAtom = require_atoms_chat_chatState.formSubmitAtom;
exports.handleFormSubmittedAtom = require_form.handleFormSubmittedAtom;
exports.handleSuggestionAtom = require_suggestions.handleSuggestionAtom;
exports.hasReportedPerformanceMetricsAtom = require_performanceMetrics.hasReportedPerformanceMetricsAtom;
exports.initializedAtom = require_atoms_chat_chatState.initializedAtom;
exports.lastAssistantMessageAtom = require_lastMessage.lastAssistantMessageAtom;
exports.listeningToSpeechAtom = require_atoms_chat_chatState.listeningToSpeechAtom;
exports.logPerfMetricAtom = require_performanceMetrics.logPerfMetricAtom;
exports.messagesAtom = require_atoms_chat_chatState.messagesAtom;
exports.pageLoadOffsetTimeAtom = require_performanceMetrics.pageLoadOffsetTimeAtom;
exports.pendingResponseAtom = require_atoms_chat_chatState.pendingResponseAtom;
exports.performanceMetricsAtom = require_performanceMetrics.performanceMetricsAtom;
exports.processUserEventAtom = require_messageQueue.processUserEventAtom;
exports.queueUserEventAtom = require_messageQueue.queueUserEventAtom;
exports.replyEventCategoryAtom = require_atoms_chat_chatState.replyEventCategoryAtom;
exports.requestFailureAtom = require_atoms_chat_chatState.requestFailureAtom;
exports.resetPerformanceMetricsAtom = require_performanceMetrics.resetPerformanceMetricsAtom;
exports.responseStreamingAtom = require_atoms_chat_chatState.responseStreamingAtom;
exports.suggestionAtom = require_atoms_chat_chatState.suggestionAtom;
exports.suggestionsAtom = require_atoms_chat_chatState.suggestionsAtom;
exports.suggestionsLoadingAtom = require_atoms_chat_chatState.suggestionsLoadingAtom;
exports.userEventQueueAtom = require_messageQueue.userEventQueueAtom;
exports.userEventsAtom = require_atoms_chat_chatState.userEventsAtom;
exports.userHasRepliedAtom = require_atoms_chat_chatState.userHasRepliedAtom;
exports.userQueryAtom = require_atoms_chat_chatState.userQueryAtom;
exports.userQueueEventCountAtom = require_messageQueue.userQueueEventCountAtom;
exports.widgetArrayAtom = require_renderedWidgetRefs.widgetArrayAtom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