From e6f695ba0d6350d627885a972a93526ca03508a1 Mon Sep 17 00:00:00 2001 From: yasirfareeddev Date: Tue, 4 Aug 2026 16:31:14 +0500 Subject: [PATCH 1/4] Stop tracking dist/ build output --- dist/components/Badge.d.ts | 10 -- dist/components/Badge.d.ts.map | 1 - dist/components/Bot.d.ts | 140 ------------------ dist/components/Bot.d.ts.map | 1 - dist/components/FeedbackContentDialog.d.ts | 10 -- .../components/FeedbackContentDialog.d.ts.map | 1 - dist/components/TypingBubble.d.ts | 2 - dist/components/TypingBubble.d.ts.map | 1 - dist/components/avatars/Avatar.d.ts | 4 - dist/components/avatars/Avatar.d.ts.map | 1 - dist/components/avatars/DefaultAvatar.d.ts | 2 - .../components/avatars/DefaultAvatar.d.ts.map | 1 - .../bubbles/AgentReasoningBubble.d.ts | 16 -- .../bubbles/AgentReasoningBubble.d.ts.map | 1 - dist/components/bubbles/BotBubble.d.ts | 39 ----- dist/components/bubbles/BotBubble.d.ts.map | 1 - .../bubbles/FollowUpPromptBubble.d.ts | 8 - .../bubbles/FollowUpPromptBubble.d.ts.map | 1 - dist/components/bubbles/GuestBubble.d.ts | 16 -- dist/components/bubbles/GuestBubble.d.ts.map | 1 - .../components/bubbles/LeadCaptureBubble.d.ts | 20 --- .../bubbles/LeadCaptureBubble.d.ts.map | 1 - dist/components/bubbles/LoadingBubble.d.ts | 2 - .../components/bubbles/LoadingBubble.d.ts.map | 1 - dist/components/bubbles/SourceBubble.d.ts | 12 -- dist/components/bubbles/SourceBubble.d.ts.map | 1 - .../bubbles/StarterPromptBubble.d.ts | 8 - .../bubbles/StarterPromptBubble.d.ts.map | 1 - dist/components/bubbles/ThinkingBubble.d.ts | 10 -- .../bubbles/ThinkingBubble.d.ts.map | 1 - .../buttons/AttachmentUploadButton.d.ts | 11 -- .../buttons/AttachmentUploadButton.d.ts.map | 1 - dist/components/buttons/CancelButton.d.ts | 10 -- dist/components/buttons/CancelButton.d.ts.map | 1 - dist/components/buttons/FeedbackButtons.d.ts | 13 -- .../buttons/FeedbackButtons.d.ts.map | 1 - .../components/buttons/ImageUploadButton.d.ts | 11 -- .../buttons/ImageUploadButton.d.ts.map | 1 - .../buttons/LeadCaptureButtons.d.ts | 11 -- .../buttons/LeadCaptureButtons.d.ts.map | 1 - .../components/buttons/RecordAudioButton.d.ts | 11 -- .../buttons/RecordAudioButton.d.ts.map | 1 - .../buttons/RegenerateResponseButton.d.ts | 10 -- .../buttons/RegenerateResponseButton.d.ts.map | 1 - dist/components/buttons/SendButton.d.ts | 12 -- dist/components/buttons/SendButton.d.ts.map | 1 - dist/components/buttons/StopButton.d.ts | 9 -- dist/components/buttons/StopButton.d.ts.map | 1 - dist/components/buttons/TTSButton.d.ts | 10 -- dist/components/buttons/TTSButton.d.ts.map | 1 - dist/components/buttons/TracesButton.d.ts | 10 -- dist/components/buttons/TracesButton.d.ts.map | 1 - dist/components/icons/AddImageIcon.d.ts | 3 - dist/components/icons/AddImageIcon.d.ts.map | 1 - dist/components/icons/AttachmentIcon.d.ts | 3 - dist/components/icons/AttachmentIcon.d.ts.map | 1 - dist/components/icons/ChevronDownIcon.d.ts | 3 - .../components/icons/ChevronDownIcon.d.ts.map | 1 - dist/components/icons/ChevronRightIcon.d.ts | 3 - .../icons/ChevronRightIcon.d.ts.map | 1 - dist/components/icons/CircleDotIcon.d.ts | 3 - dist/components/icons/CircleDotIcon.d.ts.map | 1 - dist/components/icons/ClipboardIcon.d.ts | 3 - dist/components/icons/ClipboardIcon.d.ts.map | 1 - dist/components/icons/DeleteIcon.d.ts | 3 - dist/components/icons/DeleteIcon.d.ts.map | 1 - dist/components/icons/DownloadFileIcon.d.ts | 2 - .../icons/DownloadFileIcon.d.ts.map | 1 - dist/components/icons/FileIcon.d.ts | 3 - dist/components/icons/FileIcon.d.ts.map | 1 - dist/components/icons/FolderIcon.d.ts | 4 - dist/components/icons/FolderIcon.d.ts.map | 1 - dist/components/icons/GlobeIcon.d.ts | 3 - dist/components/icons/GlobeIcon.d.ts.map | 1 - dist/components/icons/RecordIcon.d.ts | 3 - dist/components/icons/RecordIcon.d.ts.map | 1 - dist/components/icons/SendIcon.d.ts | 3 - dist/components/icons/SendIcon.d.ts.map | 1 - dist/components/icons/SparklesIcon.d.ts | 3 - dist/components/icons/SparklesIcon.d.ts.map | 1 - dist/components/icons/SquareStopIcon.d.ts | 3 - dist/components/icons/SquareStopIcon.d.ts.map | 1 - dist/components/icons/ThumbsDownIcon.d.ts | 3 - dist/components/icons/ThumbsDownIcon.d.ts.map | 1 - dist/components/icons/ThumbsUpIcon.d.ts | 3 - dist/components/icons/ThumbsUpIcon.d.ts.map | 1 - dist/components/icons/TickIcon.d.ts | 2 - dist/components/icons/TickIcon.d.ts.map | 1 - dist/components/icons/TracesIcon.d.ts | 3 - dist/components/icons/TracesIcon.d.ts.map | 1 - dist/components/icons/TrashIcon.d.ts | 3 - dist/components/icons/TrashIcon.d.ts.map | 1 - dist/components/icons/VolumeIcon.d.ts | 3 - dist/components/icons/VolumeIcon.d.ts.map | 1 - dist/components/icons/XIcon.d.ts | 5 - dist/components/icons/XIcon.d.ts.map | 1 - dist/components/icons/index.d.ts | 21 --- dist/components/icons/index.d.ts.map | 1 - dist/components/index.d.ts | 3 - dist/components/index.d.ts.map | 1 - .../textInput/components/FilePreview.d.ts | 12 -- .../textInput/components/FilePreview.d.ts.map | 1 - .../textInput/components/ShortTextInput.d.ts | 10 -- .../components/ShortTextInput.d.ts.map | 1 - .../textInput/components/TextInput.d.ts | 33 ----- .../textInput/components/TextInput.d.ts.map | 1 - dist/components/inputs/textInput/index.d.ts | 3 - .../inputs/textInput/index.d.ts.map | 1 - dist/components/treeview/AgentflowIcons.d.ts | 15 -- .../treeview/AgentflowIcons.d.ts.map | 1 - dist/components/treeview/DataTransformer.d.ts | 7 - .../treeview/DataTransformer.d.ts.map | 1 - .../treeview/NodeDetailsContent.d.ts | 36 ----- .../treeview/NodeDetailsContent.d.ts.map | 1 - .../treeview/NodeDetailsDialog.d.ts | 20 --- .../treeview/NodeDetailsDialog.d.ts.map | 1 - dist/components/treeview/RichTreeView.d.ts | 25 ---- .../components/treeview/RichTreeView.d.ts.map | 1 - dist/components/treeview/TracesDialog.d.ts | 16 -- .../components/treeview/TracesDialog.d.ts.map | 1 - dist/components/treeview/TreeView.d.ts | 22 --- dist/components/treeview/TreeView.d.ts.map | 1 - .../components/treeview/WorkflowTreeView.d.ts | 19 --- .../treeview/WorkflowTreeView.d.ts.map | 1 - dist/components/treeview/workflowUtils.d.ts | 25 ---- .../treeview/workflowUtils.d.ts.map | 1 - dist/constants.d.ts | 4 - dist/constants.d.ts.map | 1 - dist/features/bubble/components/Bubble.d.ts | 5 - .../bubble/components/Bubble.d.ts.map | 1 - .../bubble/components/BubbleButton.d.ts | 16 -- .../bubble/components/BubbleButton.d.ts.map | 1 - dist/features/bubble/components/Tooltip.d.ts | 15 -- .../bubble/components/Tooltip.d.ts.map | 1 - dist/features/bubble/components/index.d.ts | 2 - .../features/bubble/components/index.d.ts.map | 1 - dist/features/bubble/index.d.ts | 2 - dist/features/bubble/index.d.ts.map | 1 - dist/features/bubble/types.d.ts | 118 --------------- dist/features/bubble/types.d.ts.map | 1 - dist/features/full/components/Full.d.ts | 7 - dist/features/full/components/Full.d.ts.map | 1 - dist/features/full/components/index.d.ts | 2 - dist/features/full/components/index.d.ts.map | 1 - dist/features/full/index.d.ts | 2 - dist/features/full/index.d.ts.map | 1 - .../popup/components/DisclaimerPopup.d.ts | 18 --- .../popup/components/DisclaimerPopup.d.ts.map | 1 - dist/features/popup/components/Popup.d.ts | 8 - dist/features/popup/components/Popup.d.ts.map | 1 - dist/features/popup/components/index.d.ts | 3 - dist/features/popup/components/index.d.ts.map | 1 - dist/features/popup/index.d.ts | 2 - dist/features/popup/index.d.ts.map | 1 - dist/features/popup/types.d.ts | 8 - dist/features/popup/types.d.ts.map | 1 - dist/index.d.ts | 5 - dist/index.d.ts.map | 1 - dist/queries/sendMessageQuery.d.ts | 118 --------------- dist/queries/sendMessageQuery.d.ts.map | 1 - dist/register.d.ts | 2 - dist/register.d.ts.map | 1 - dist/types.d.ts | 1 - dist/types.d.ts.map | 1 - dist/utils/audioRecording.d.ts | 21 --- dist/utils/audioRecording.d.ts.map | 1 - dist/utils/chatInputHistory.d.ts | 22 --- dist/utils/chatInputHistory.d.ts.map | 1 - dist/utils/index.d.ts | 26 ---- dist/utils/index.d.ts.map | 1 - dist/utils/isMobileSignal.d.ts | 2 - dist/utils/isMobileSignal.d.ts.map | 1 - dist/web.d.ts | 28 ---- dist/web.d.ts.map | 1 - dist/web.js | 1 - dist/web.umd.js | 1 - dist/window.d.ts | 46 ------ dist/window.d.ts.map | 1 - 178 files changed, 1324 deletions(-) delete mode 100644 dist/components/Badge.d.ts delete mode 100644 dist/components/Badge.d.ts.map delete mode 100644 dist/components/Bot.d.ts delete mode 100644 dist/components/Bot.d.ts.map delete mode 100644 dist/components/FeedbackContentDialog.d.ts delete mode 100644 dist/components/FeedbackContentDialog.d.ts.map delete mode 100644 dist/components/TypingBubble.d.ts delete mode 100644 dist/components/TypingBubble.d.ts.map delete mode 100644 dist/components/avatars/Avatar.d.ts delete mode 100644 dist/components/avatars/Avatar.d.ts.map delete mode 100644 dist/components/avatars/DefaultAvatar.d.ts delete mode 100644 dist/components/avatars/DefaultAvatar.d.ts.map delete mode 100644 dist/components/bubbles/AgentReasoningBubble.d.ts delete mode 100644 dist/components/bubbles/AgentReasoningBubble.d.ts.map delete mode 100644 dist/components/bubbles/BotBubble.d.ts delete mode 100644 dist/components/bubbles/BotBubble.d.ts.map delete mode 100644 dist/components/bubbles/FollowUpPromptBubble.d.ts delete mode 100644 dist/components/bubbles/FollowUpPromptBubble.d.ts.map delete mode 100644 dist/components/bubbles/GuestBubble.d.ts delete mode 100644 dist/components/bubbles/GuestBubble.d.ts.map delete mode 100644 dist/components/bubbles/LeadCaptureBubble.d.ts delete mode 100644 dist/components/bubbles/LeadCaptureBubble.d.ts.map delete mode 100644 dist/components/bubbles/LoadingBubble.d.ts delete mode 100644 dist/components/bubbles/LoadingBubble.d.ts.map delete mode 100644 dist/components/bubbles/SourceBubble.d.ts delete mode 100644 dist/components/bubbles/SourceBubble.d.ts.map delete mode 100644 dist/components/bubbles/StarterPromptBubble.d.ts delete mode 100644 dist/components/bubbles/StarterPromptBubble.d.ts.map delete mode 100644 dist/components/bubbles/ThinkingBubble.d.ts delete mode 100644 dist/components/bubbles/ThinkingBubble.d.ts.map delete mode 100644 dist/components/buttons/AttachmentUploadButton.d.ts delete mode 100644 dist/components/buttons/AttachmentUploadButton.d.ts.map delete mode 100644 dist/components/buttons/CancelButton.d.ts delete mode 100644 dist/components/buttons/CancelButton.d.ts.map delete mode 100644 dist/components/buttons/FeedbackButtons.d.ts delete mode 100644 dist/components/buttons/FeedbackButtons.d.ts.map delete mode 100644 dist/components/buttons/ImageUploadButton.d.ts delete mode 100644 dist/components/buttons/ImageUploadButton.d.ts.map delete mode 100644 dist/components/buttons/LeadCaptureButtons.d.ts delete mode 100644 dist/components/buttons/LeadCaptureButtons.d.ts.map delete mode 100644 dist/components/buttons/RecordAudioButton.d.ts delete mode 100644 dist/components/buttons/RecordAudioButton.d.ts.map delete mode 100644 dist/components/buttons/RegenerateResponseButton.d.ts delete mode 100644 dist/components/buttons/RegenerateResponseButton.d.ts.map delete mode 100644 dist/components/buttons/SendButton.d.ts delete mode 100644 dist/components/buttons/SendButton.d.ts.map delete mode 100644 dist/components/buttons/StopButton.d.ts delete mode 100644 dist/components/buttons/StopButton.d.ts.map delete mode 100644 dist/components/buttons/TTSButton.d.ts delete mode 100644 dist/components/buttons/TTSButton.d.ts.map delete mode 100644 dist/components/buttons/TracesButton.d.ts delete mode 100644 dist/components/buttons/TracesButton.d.ts.map delete mode 100644 dist/components/icons/AddImageIcon.d.ts delete mode 100644 dist/components/icons/AddImageIcon.d.ts.map delete mode 100644 dist/components/icons/AttachmentIcon.d.ts delete mode 100644 dist/components/icons/AttachmentIcon.d.ts.map delete mode 100644 dist/components/icons/ChevronDownIcon.d.ts delete mode 100644 dist/components/icons/ChevronDownIcon.d.ts.map delete mode 100644 dist/components/icons/ChevronRightIcon.d.ts delete mode 100644 dist/components/icons/ChevronRightIcon.d.ts.map delete mode 100644 dist/components/icons/CircleDotIcon.d.ts delete mode 100644 dist/components/icons/CircleDotIcon.d.ts.map delete mode 100644 dist/components/icons/ClipboardIcon.d.ts delete mode 100644 dist/components/icons/ClipboardIcon.d.ts.map delete mode 100644 dist/components/icons/DeleteIcon.d.ts delete mode 100644 dist/components/icons/DeleteIcon.d.ts.map delete mode 100644 dist/components/icons/DownloadFileIcon.d.ts delete mode 100644 dist/components/icons/DownloadFileIcon.d.ts.map delete mode 100644 dist/components/icons/FileIcon.d.ts delete mode 100644 dist/components/icons/FileIcon.d.ts.map delete mode 100644 dist/components/icons/FolderIcon.d.ts delete mode 100644 dist/components/icons/FolderIcon.d.ts.map delete mode 100644 dist/components/icons/GlobeIcon.d.ts delete mode 100644 dist/components/icons/GlobeIcon.d.ts.map delete mode 100644 dist/components/icons/RecordIcon.d.ts delete mode 100644 dist/components/icons/RecordIcon.d.ts.map delete mode 100644 dist/components/icons/SendIcon.d.ts delete mode 100644 dist/components/icons/SendIcon.d.ts.map delete mode 100644 dist/components/icons/SparklesIcon.d.ts delete mode 100644 dist/components/icons/SparklesIcon.d.ts.map delete mode 100644 dist/components/icons/SquareStopIcon.d.ts delete mode 100644 dist/components/icons/SquareStopIcon.d.ts.map delete mode 100644 dist/components/icons/ThumbsDownIcon.d.ts delete mode 100644 dist/components/icons/ThumbsDownIcon.d.ts.map delete mode 100644 dist/components/icons/ThumbsUpIcon.d.ts delete mode 100644 dist/components/icons/ThumbsUpIcon.d.ts.map delete mode 100644 dist/components/icons/TickIcon.d.ts delete mode 100644 dist/components/icons/TickIcon.d.ts.map delete mode 100644 dist/components/icons/TracesIcon.d.ts delete mode 100644 dist/components/icons/TracesIcon.d.ts.map delete mode 100644 dist/components/icons/TrashIcon.d.ts delete mode 100644 dist/components/icons/TrashIcon.d.ts.map delete mode 100644 dist/components/icons/VolumeIcon.d.ts delete mode 100644 dist/components/icons/VolumeIcon.d.ts.map delete mode 100644 dist/components/icons/XIcon.d.ts delete mode 100644 dist/components/icons/XIcon.d.ts.map delete mode 100644 dist/components/icons/index.d.ts delete mode 100644 dist/components/icons/index.d.ts.map delete mode 100644 dist/components/index.d.ts delete mode 100644 dist/components/index.d.ts.map delete mode 100644 dist/components/inputs/textInput/components/FilePreview.d.ts delete mode 100644 dist/components/inputs/textInput/components/FilePreview.d.ts.map delete mode 100644 dist/components/inputs/textInput/components/ShortTextInput.d.ts delete mode 100644 dist/components/inputs/textInput/components/ShortTextInput.d.ts.map delete mode 100644 dist/components/inputs/textInput/components/TextInput.d.ts delete mode 100644 dist/components/inputs/textInput/components/TextInput.d.ts.map delete mode 100644 dist/components/inputs/textInput/index.d.ts delete mode 100644 dist/components/inputs/textInput/index.d.ts.map delete mode 100644 dist/components/treeview/AgentflowIcons.d.ts delete mode 100644 dist/components/treeview/AgentflowIcons.d.ts.map delete mode 100644 dist/components/treeview/DataTransformer.d.ts delete mode 100644 dist/components/treeview/DataTransformer.d.ts.map delete mode 100644 dist/components/treeview/NodeDetailsContent.d.ts delete mode 100644 dist/components/treeview/NodeDetailsContent.d.ts.map delete mode 100644 dist/components/treeview/NodeDetailsDialog.d.ts delete mode 100644 dist/components/treeview/NodeDetailsDialog.d.ts.map delete mode 100644 dist/components/treeview/RichTreeView.d.ts delete mode 100644 dist/components/treeview/RichTreeView.d.ts.map delete mode 100644 dist/components/treeview/TracesDialog.d.ts delete mode 100644 dist/components/treeview/TracesDialog.d.ts.map delete mode 100644 dist/components/treeview/TreeView.d.ts delete mode 100644 dist/components/treeview/TreeView.d.ts.map delete mode 100644 dist/components/treeview/WorkflowTreeView.d.ts delete mode 100644 dist/components/treeview/WorkflowTreeView.d.ts.map delete mode 100644 dist/components/treeview/workflowUtils.d.ts delete mode 100644 dist/components/treeview/workflowUtils.d.ts.map delete mode 100644 dist/constants.d.ts delete mode 100644 dist/constants.d.ts.map delete mode 100644 dist/features/bubble/components/Bubble.d.ts delete mode 100644 dist/features/bubble/components/Bubble.d.ts.map delete mode 100644 dist/features/bubble/components/BubbleButton.d.ts delete mode 100644 dist/features/bubble/components/BubbleButton.d.ts.map delete mode 100644 dist/features/bubble/components/Tooltip.d.ts delete mode 100644 dist/features/bubble/components/Tooltip.d.ts.map delete mode 100644 dist/features/bubble/components/index.d.ts delete mode 100644 dist/features/bubble/components/index.d.ts.map delete mode 100644 dist/features/bubble/index.d.ts delete mode 100644 dist/features/bubble/index.d.ts.map delete mode 100644 dist/features/bubble/types.d.ts delete mode 100644 dist/features/bubble/types.d.ts.map delete mode 100644 dist/features/full/components/Full.d.ts delete mode 100644 dist/features/full/components/Full.d.ts.map delete mode 100644 dist/features/full/components/index.d.ts delete mode 100644 dist/features/full/components/index.d.ts.map delete mode 100644 dist/features/full/index.d.ts delete mode 100644 dist/features/full/index.d.ts.map delete mode 100644 dist/features/popup/components/DisclaimerPopup.d.ts delete mode 100644 dist/features/popup/components/DisclaimerPopup.d.ts.map delete mode 100644 dist/features/popup/components/Popup.d.ts delete mode 100644 dist/features/popup/components/Popup.d.ts.map delete mode 100644 dist/features/popup/components/index.d.ts delete mode 100644 dist/features/popup/components/index.d.ts.map delete mode 100644 dist/features/popup/index.d.ts delete mode 100644 dist/features/popup/index.d.ts.map delete mode 100644 dist/features/popup/types.d.ts delete mode 100644 dist/features/popup/types.d.ts.map delete mode 100644 dist/index.d.ts delete mode 100644 dist/index.d.ts.map delete mode 100644 dist/queries/sendMessageQuery.d.ts delete mode 100644 dist/queries/sendMessageQuery.d.ts.map delete mode 100644 dist/register.d.ts delete mode 100644 dist/register.d.ts.map delete mode 100644 dist/types.d.ts delete mode 100644 dist/types.d.ts.map delete mode 100644 dist/utils/audioRecording.d.ts delete mode 100644 dist/utils/audioRecording.d.ts.map delete mode 100644 dist/utils/chatInputHistory.d.ts delete mode 100644 dist/utils/chatInputHistory.d.ts.map delete mode 100644 dist/utils/index.d.ts delete mode 100644 dist/utils/index.d.ts.map delete mode 100644 dist/utils/isMobileSignal.d.ts delete mode 100644 dist/utils/isMobileSignal.d.ts.map delete mode 100644 dist/web.d.ts delete mode 100644 dist/web.d.ts.map delete mode 100644 dist/web.js delete mode 100644 dist/web.umd.js delete mode 100644 dist/window.d.ts delete mode 100644 dist/window.d.ts.map diff --git a/dist/components/Badge.d.ts b/dist/components/Badge.d.ts deleted file mode 100644 index 80768d1c9..000000000 --- a/dist/components/Badge.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { FooterTheme } from '@/features/bubble/types'; -type Props = { - footer?: FooterTheme; - botContainer: HTMLDivElement | undefined; - poweredByTextColor?: string; - badgeBackgroundColor?: string; -}; -export declare const Badge: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=Badge.d.ts.map \ No newline at end of file diff --git a/dist/components/Badge.d.ts.map b/dist/components/Badge.d.ts.map deleted file mode 100644 index 58e516692..000000000 --- a/dist/components/Badge.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../src/components/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,KAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,YAAY,EAAE,cAAc,GAAG,SAAS,CAAC;IACzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAIF,eAAO,MAAM,KAAK,UAAW,KAAK,mCA+DjC,CAAC"} \ No newline at end of file diff --git a/dist/components/Bot.d.ts b/dist/components/Bot.d.ts deleted file mode 100644 index 95a35bde9..000000000 --- a/dist/components/Bot.d.ts +++ /dev/null @@ -1,140 +0,0 @@ -import { FeedbackRatingType } from '@/queries/sendMessageQuery'; -import { BotMessageTheme, FooterTheme, TextInputTheme, UserMessageTheme, FeedbackTheme, DisclaimerPopUpTheme, DateTimeToggleTheme } from '@/features/bubble/types'; -import { FilePreview } from '@/components/inputs/textInput/components/FilePreview'; -export type FileEvent = { - target: T; -}; -export type FormEvent = { - preventDefault: () => void; - currentTarget: T; -}; -type IUploadConstraits = { - fileTypes: string[]; - maxUploadSize: number; -}; -export type UploadsConfig = { - imgUploadSizeAndTypes: IUploadConstraits[]; - fileUploadSizeAndTypes: IUploadConstraits[]; - isImageUploadAllowed: boolean; - isSpeechToTextEnabled: boolean; - isRAGFileUploadAllowed: boolean; -}; -type FilePreviewData = string | ArrayBuffer; -type FilePreview = { - data: FilePreviewData; - mime: string; - name: string; - preview: string; - type: string; -}; -type messageType = 'apiMessage' | 'userMessage' | 'usermessagewaiting' | 'leadCaptureMessage'; -type ExecutionState = 'INPROGRESS' | 'FINISHED' | 'ERROR' | 'TERMINATED' | 'TIMEOUT' | 'STOPPED'; -export type IAgentReasoning = { - agentName?: string; - messages?: string[]; - usedTools?: any[]; - artifacts?: FileUpload[]; - sourceDocuments?: any[]; - instructions?: string; - nextAgent?: string; -}; -export type IAction = { - id?: string; - data?: any; - elements?: Array<{ - type: string; - label: string; - }>; - mapping?: { - approve: string; - reject: string; - toolCalls: any[]; - }; -}; -export type FileUpload = Omit; -export type AgentFlowExecutedData = { - nodeLabel: string; - nodeId: string; - data: any; - previousNodeIds: string[]; - status?: ExecutionState; -}; -export type MessageType = { - messageId?: string; - message: string; - type: messageType; - sourceDocuments?: any; - fileAnnotations?: any; - fileUploads?: Partial[]; - artifacts?: Partial[]; - agentReasoning?: IAgentReasoning[]; - execution?: any; - agentFlowEventStatus?: string; - agentFlowExecutedData?: any; - usedTools?: any[]; - action?: IAction | null; - rating?: FeedbackRatingType; - id?: string; - followUpPrompts?: string; - dateTime?: string; - thinking?: string; - thinkingDuration?: number; - isThinking?: boolean; -}; -type observerConfigType = (accessor: string | boolean | object | MessageType[]) => void; -export type observersConfigType = Record<'observeUserInput' | 'observeLoading' | 'observeMessages', observerConfigType>; -export type BotProps = { - chatflowid: string; - apiHost?: string; - pageTitle?: string; - onRequest?: (request: RequestInit) => Promise; - chatflowConfig?: Record; - backgroundColor?: string; - welcomeMessage?: string; - errorMessage?: string; - botMessage?: BotMessageTheme; - userMessage?: UserMessageTheme; - textInput?: TextInputTheme; - feedback?: FeedbackTheme; - poweredByTextColor?: string; - badgeBackgroundColor?: string; - bubbleBackgroundColor?: string; - bubbleTextColor?: string; - showTitle?: boolean; - showAgentMessages?: boolean; - title?: string; - titleAvatarSrc?: string; - titleTextColor?: string; - titleBackgroundColor?: string; - formBackgroundColor?: string; - formTextColor?: string; - fontSize?: number; - isFullPage?: boolean; - footer?: FooterTheme; - sourceDocsTitle?: string; - observersConfig?: observersConfigType; - starterPrompts?: string[] | Record; - starterPromptFontSize?: number; - clearChatOnReload?: boolean; - disclaimer?: DisclaimerPopUpTheme; - dateTimeToggle?: DateTimeToggleTheme; - renderHTML?: boolean; - closeBot?: () => void; - hasCustomHeader?: boolean; - dialogContainer?: HTMLElement; -}; -export type LeadsConfig = { - status: boolean; - title?: string; - name?: boolean; - email?: boolean; - phone?: boolean; - successMessage?: string; -}; -export declare const Bot: (botProps: BotProps & { - class?: string; -}) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=Bot.d.ts.map \ No newline at end of file diff --git a/dist/components/Bot.d.ts.map b/dist/components/Bot.d.ts.map deleted file mode 100644 index 08434ea73..000000000 --- a/dist/components/Bot.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Bot.d.ts","sourceRoot":"","sources":["../../src/components/Bot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAML,kBAAkB,EAKnB,MAAM,4BAA4B,CAAC;AAMpC,OAAO,EACL,eAAe,EACf,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AAKjC,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AAiBnF,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG,WAAW,IAAI;IACvC,MAAM,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG,WAAW,IAAI;IACvC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,aAAa,EAAE,CAAC,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,qBAAqB,EAAE,iBAAiB,EAAE,CAAC;IAC3C,sBAAsB,EAAE,iBAAiB,EAAE,CAAC;IAC5C,oBAAoB,EAAE,OAAO,CAAC;IAC9B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sBAAsB,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,KAAK,eAAe,GAAG,MAAM,GAAG,WAAW,CAAC;AAE5C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,WAAW,GAAG,YAAY,GAAG,aAAa,GAAG,oBAAoB,GAAG,oBAAoB,CAAC;AAC9F,KAAK,cAAc,GAAG,YAAY,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;AAEjG,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,UAAU,EAAE,CAAC;IACzB,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,KAAK,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,CAAC,CAAC;IACH,OAAO,CAAC,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,GAAG,EAAE,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAEtD,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;IACV,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,WAAW,CAAC;IAClB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAClC,cAAc,CAAC,EAAE,eAAe,EAAE,CAAC;IACnC,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,GAAG,CAAC;IAC5B,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AASF,KAAK,kBAAkB,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,WAAW,EAAE,KAAK,IAAI,CAAC;AACxF,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,kBAAkB,GAAG,gBAAgB,GAAG,iBAAiB,EAAE,kBAAkB,CAAC,CAAC;AAExH,MAAM,MAAM,QAAQ,GAAG;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/D,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,WAAW,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AA+QF,eAAO,MAAM,GAAG,aAAc,QAAQ,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,mCAo4E1D,CAAC"} \ No newline at end of file diff --git a/dist/components/FeedbackContentDialog.d.ts b/dist/components/FeedbackContentDialog.d.ts deleted file mode 100644 index 338f9c42f..000000000 --- a/dist/components/FeedbackContentDialog.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -type FeedbackContentDialogProps = { - isOpen: boolean; - onClose: () => void; - onSubmit: (text: string) => void; - backgroundColor?: string; - textColor?: string; -}; -declare const FeedbackContentDialog: (props: FeedbackContentDialogProps) => import("solid-js").JSX.Element; -export default FeedbackContentDialog; -//# sourceMappingURL=FeedbackContentDialog.d.ts.map \ No newline at end of file diff --git a/dist/components/FeedbackContentDialog.d.ts.map b/dist/components/FeedbackContentDialog.d.ts.map deleted file mode 100644 index a6d9cb4ee..000000000 --- a/dist/components/FeedbackContentDialog.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FeedbackContentDialog.d.ts","sourceRoot":"","sources":["../../src/components/FeedbackContentDialog.tsx"],"names":[],"mappings":"AAEA,KAAK,0BAA0B,GAAG;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAKF,QAAA,MAAM,qBAAqB,UAAW,0BAA0B,mCAwF/D,CAAC;AAEF,eAAe,qBAAqB,CAAC"} \ No newline at end of file diff --git a/dist/components/TypingBubble.d.ts b/dist/components/TypingBubble.d.ts deleted file mode 100644 index f11a19e4e..000000000 --- a/dist/components/TypingBubble.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const TypingBubble: () => import("solid-js").JSX.Element; -//# sourceMappingURL=TypingBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/TypingBubble.d.ts.map b/dist/components/TypingBubble.d.ts.map deleted file mode 100644 index 2f452b7b9..000000000 --- a/dist/components/TypingBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TypingBubble.d.ts","sourceRoot":"","sources":["../../src/components/TypingBubble.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,sCAMxB,CAAC"} \ No newline at end of file diff --git a/dist/components/avatars/Avatar.d.ts b/dist/components/avatars/Avatar.d.ts deleted file mode 100644 index 17e9d9a44..000000000 --- a/dist/components/avatars/Avatar.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare const Avatar: (props: { - initialAvatarSrc?: string; -}) => import("solid-js").JSX.Element; -//# sourceMappingURL=Avatar.d.ts.map \ No newline at end of file diff --git a/dist/components/avatars/Avatar.d.ts.map b/dist/components/avatars/Avatar.d.ts.map deleted file mode 100644 index 0f77b3dec..000000000 --- a/dist/components/avatars/Avatar.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatars/Avatar.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,UAAW;IAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,mCAkB1D,CAAC"} \ No newline at end of file diff --git a/dist/components/avatars/DefaultAvatar.d.ts b/dist/components/avatars/DefaultAvatar.d.ts deleted file mode 100644 index e3b7f66c5..000000000 --- a/dist/components/avatars/DefaultAvatar.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const DefaultAvatar: () => import("solid-js").JSX.Element; -//# sourceMappingURL=DefaultAvatar.d.ts.map \ No newline at end of file diff --git a/dist/components/avatars/DefaultAvatar.d.ts.map b/dist/components/avatars/DefaultAvatar.d.ts.map deleted file mode 100644 index 47782146e..000000000 --- a/dist/components/avatars/DefaultAvatar.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DefaultAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatars/DefaultAvatar.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,sCAqCzB,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/AgentReasoningBubble.d.ts b/dist/components/bubbles/AgentReasoningBubble.d.ts deleted file mode 100644 index eb97a5fff..000000000 --- a/dist/components/bubbles/AgentReasoningBubble.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { FileUpload } from '../Bot'; -type Props = { - apiHost?: string; - chatflowid: string; - chatId: string; - agentName: string; - agentMessage: string; - agentArtifacts?: FileUpload[]; - backgroundColor?: string; - textColor?: string; - fontSize?: number; - renderHTML?: boolean; -}; -export declare const AgentReasoningBubble: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=AgentReasoningBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/AgentReasoningBubble.d.ts.map b/dist/components/bubbles/AgentReasoningBubble.d.ts.map deleted file mode 100644 index f4209283c..000000000 --- a/dist/components/bubbles/AgentReasoningBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AgentReasoningBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/AgentReasoningBubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAGpC,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,UAAU,EAAE,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAMF,eAAO,MAAM,oBAAoB,UAAW,KAAK,mCAoFhD,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/BotBubble.d.ts b/dist/components/bubbles/BotBubble.d.ts deleted file mode 100644 index 043984598..000000000 --- a/dist/components/bubbles/BotBubble.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { FeedbackRatingType } from '@/queries/sendMessageQuery'; -import { IAction, MessageType } from '../Bot'; -import { DateTimeToggleTheme } from '@/features/bubble/types'; -type Props = { - message: MessageType; - chatflowid: string; - chatId: string; - apiHost?: string; - onRequest?: (request: RequestInit) => Promise; - fileAnnotations?: any; - showAvatar?: boolean; - avatarSrc?: string; - backgroundColor?: string; - textColor?: string; - chatFeedbackStatus?: boolean; - fontSize?: number; - feedbackColor?: string; - isLoading: boolean; - dateTimeToggle?: DateTimeToggleTheme; - showAgentMessages?: boolean; - sourceDocsTitle?: string; - renderHTML?: boolean; - handleActionClick: (elem: any, action: IAction | undefined | null) => void; - handleSourceDocumentsClick: (src: any) => void; - onRegenerateResponse?: () => void; - onMessageRendered?: () => void; - messageRatings?: Record; - onMessageRatingChange?: (messageId: string, rating: FeedbackRatingType) => void; - isTTSEnabled?: boolean; - isTTSLoading?: Record; - isTTSPlaying?: Record; - handleTTSClick?: (messageId: string, messageText: string) => void; - handleTTSStop?: (messageId: string) => void; - hasCustomHeader?: boolean; - dialogContainer?: HTMLElement; -}; -export declare const BotBubble: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=BotBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/BotBubble.d.ts.map b/dist/components/bubbles/BotBubble.d.ts.map deleted file mode 100644 index 0a83172ea..000000000 --- a/dist/components/bubbles/BotBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BotBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/BotBubble.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAiE,MAAM,4BAA4B,CAAC;AAC/H,OAAO,EAAc,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAS1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAI9D,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3E,0BAA0B,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/C,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IACpD,qBAAqB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAEhF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,WAAW,CAAC;CAC/B,CAAC;AAOF,eAAO,MAAM,SAAS,UAAW,KAAK,mCA2jBrC,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/FollowUpPromptBubble.d.ts b/dist/components/bubbles/FollowUpPromptBubble.d.ts deleted file mode 100644 index 2b96a6917..000000000 --- a/dist/components/bubbles/FollowUpPromptBubble.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -type Props = { - prompt: string; - onPromptClick?: () => void; - starterPromptFontSize?: number; -}; -export declare const FollowUpPromptBubble: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=FollowUpPromptBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/FollowUpPromptBubble.d.ts.map b/dist/components/bubbles/FollowUpPromptBubble.d.ts.map deleted file mode 100644 index 93835fca4..000000000 --- a/dist/components/bubbles/FollowUpPromptBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FollowUpPromptBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/FollowUpPromptBubble.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AACF,eAAO,MAAM,oBAAoB,UAAW,KAAK,mCAsBhD,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/GuestBubble.d.ts b/dist/components/bubbles/GuestBubble.d.ts deleted file mode 100644 index 3cad860f0..000000000 --- a/dist/components/bubbles/GuestBubble.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { MessageType } from '../Bot'; -type Props = { - message: MessageType; - apiHost?: string; - chatflowid: string; - chatId: string; - showAvatar?: boolean; - avatarSrc?: string; - backgroundColor?: string; - textColor?: string; - fontSize?: number; - renderHTML?: boolean; -}; -export declare const GuestBubble: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=GuestBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/GuestBubble.d.ts.map b/dist/components/bubbles/GuestBubble.d.ts.map deleted file mode 100644 index 052abe815..000000000 --- a/dist/components/bubbles/GuestBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GuestBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/GuestBubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAc,WAAW,EAAE,MAAM,QAAQ,CAAC;AAGjD,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,WAAW,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAMF,eAAO,MAAM,WAAW,UAAW,KAAK,mCAgGvC,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/LeadCaptureBubble.d.ts b/dist/components/bubbles/LeadCaptureBubble.d.ts deleted file mode 100644 index 05e8b8d6d..000000000 --- a/dist/components/bubbles/LeadCaptureBubble.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { LeadsConfig, MessageType } from '@/components/Bot'; -type Props = { - message: MessageType; - chatflowid: string; - chatId: string; - leadsConfig?: LeadsConfig; - apiHost?: string; - showAvatar?: boolean; - avatarSrc?: string; - backgroundColor?: string; - textColor?: string; - sendButtonColor?: string; - fontSize?: number; - isLeadSaved: boolean; - setIsLeadSaved: (value: boolean) => void; - setLeadEmail: (value: string) => void; -}; -export declare const LeadCaptureBubble: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=LeadCaptureBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/LeadCaptureBubble.d.ts.map b/dist/components/bubbles/LeadCaptureBubble.d.ts.map deleted file mode 100644 index e50d482df..000000000 --- a/dist/components/bubbles/LeadCaptureBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LeadCaptureBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/LeadCaptureBubble.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAa,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAMvE,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAaF,eAAO,MAAM,iBAAiB,UAAW,KAAK,mCAgI7C,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/LoadingBubble.d.ts b/dist/components/bubbles/LoadingBubble.d.ts deleted file mode 100644 index 228314a6d..000000000 --- a/dist/components/bubbles/LoadingBubble.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const LoadingBubble: () => import("solid-js").JSX.Element; -//# sourceMappingURL=LoadingBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/LoadingBubble.d.ts.map b/dist/components/bubbles/LoadingBubble.d.ts.map deleted file mode 100644 index 105246a54..000000000 --- a/dist/components/bubbles/LoadingBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LoadingBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/LoadingBubble.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,sCAMzB,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/SourceBubble.d.ts b/dist/components/bubbles/SourceBubble.d.ts deleted file mode 100644 index 6ac51a844..000000000 --- a/dist/components/bubbles/SourceBubble.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -type Props = { - pageContent: string; - metadata: { - source?: string; - [key: string]: any; - }; - onSourceClick?: () => void; - backgroundColor?: string; -}; -export declare const SourceBubble: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=SourceBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/SourceBubble.d.ts.map b/dist/components/bubbles/SourceBubble.d.ts.map deleted file mode 100644 index 0fc6c48a2..000000000 --- a/dist/components/bubbles/SourceBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SourceBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/SourceBubble.tsx"],"names":[],"mappings":"AAGA,KAAK,KAAK,GAAG;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAClD,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAuDF,eAAO,MAAM,YAAY,UAAW,KAAK,mCA8CxC,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/StarterPromptBubble.d.ts b/dist/components/bubbles/StarterPromptBubble.d.ts deleted file mode 100644 index 85716e239..000000000 --- a/dist/components/bubbles/StarterPromptBubble.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -type Props = { - prompt: string; - onPromptClick?: () => void; - starterPromptFontSize?: number; -}; -export declare const StarterPromptBubble: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=StarterPromptBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/StarterPromptBubble.d.ts.map b/dist/components/bubbles/StarterPromptBubble.d.ts.map deleted file mode 100644 index 78d2f2bdf..000000000 --- a/dist/components/bubbles/StarterPromptBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StarterPromptBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/StarterPromptBubble.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AACF,eAAO,MAAM,mBAAmB,UAAW,KAAK,mCAsB/C,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/ThinkingBubble.d.ts b/dist/components/bubbles/ThinkingBubble.d.ts deleted file mode 100644 index 333a92f65..000000000 --- a/dist/components/bubbles/ThinkingBubble.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -type Props = { - thinking?: string; - thinkingDuration?: number; - isThinking?: boolean; - backgroundColor?: string; - textColor?: string; -}; -export declare const ThinkingCard: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=ThinkingBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/ThinkingBubble.d.ts.map b/dist/components/bubbles/ThinkingBubble.d.ts.map deleted file mode 100644 index 9c90eb3bb..000000000 --- a/dist/components/bubbles/ThinkingBubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ThinkingBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/ThinkingBubble.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAmCF,eAAO,MAAM,YAAY,UAAW,KAAK,mCAgKxC,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/AttachmentUploadButton.d.ts b/dist/components/buttons/AttachmentUploadButton.d.ts deleted file mode 100644 index d209f7f12..000000000 --- a/dist/components/buttons/AttachmentUploadButton.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -type FileUploadButtonProps = { - buttonColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; -} & JSX.ButtonHTMLAttributes; -export declare const AttachmentUploadButton: (props: FileUploadButtonProps) => JSX.Element; -export declare const Spinner: (props: JSX.SvgSVGAttributes) => JSX.Element; -export {}; -//# sourceMappingURL=AttachmentUploadButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/AttachmentUploadButton.d.ts.map b/dist/components/buttons/AttachmentUploadButton.d.ts.map deleted file mode 100644 index da9650130..000000000 --- a/dist/components/buttons/AttachmentUploadButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AttachmentUploadButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/AttachmentUploadButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,qBAAqB,GAAG;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,sBAAsB,UAAW,qBAAqB,gBAiBlE,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/CancelButton.d.ts b/dist/components/buttons/CancelButton.d.ts deleted file mode 100644 index 48822c804..000000000 --- a/dist/components/buttons/CancelButton.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -type CancelButtonProps = { - buttonColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; -} & JSX.ButtonHTMLAttributes; -export declare const CancelButton: (props: CancelButtonProps) => JSX.Element; -export {}; -//# sourceMappingURL=CancelButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/CancelButton.d.ts.map b/dist/components/buttons/CancelButton.d.ts.map deleted file mode 100644 index 66927a224..000000000 --- a/dist/components/buttons/CancelButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CancelButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/CancelButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,iBAAiB,GAAG;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY,UAAW,iBAAiB,gBAepD,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/FeedbackButtons.d.ts b/dist/components/buttons/FeedbackButtons.d.ts deleted file mode 100644 index ca610aa9d..000000000 --- a/dist/components/buttons/FeedbackButtons.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { JSX } from 'solid-js'; -type RatingButtonProps = { - feedbackColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; - rating?: string; -} & JSX.ButtonHTMLAttributes; -export declare const CopyToClipboardButton: (props: RatingButtonProps) => JSX.Element; -export declare const ThumbsUpButton: (props: RatingButtonProps) => JSX.Element; -export declare const ThumbsDownButton: (props: RatingButtonProps) => JSX.Element; -export {}; -//# sourceMappingURL=FeedbackButtons.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/FeedbackButtons.d.ts.map b/dist/components/buttons/FeedbackButtons.d.ts.map deleted file mode 100644 index fe314d26d..000000000 --- a/dist/components/buttons/FeedbackButtons.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FeedbackButtons.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/FeedbackButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAQ,MAAM,UAAU,CAAC;AAIrC,KAAK,iBAAiB,GAAG;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAIhD,eAAO,MAAM,qBAAqB,UAAW,iBAAiB,gBAiB7D,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,iBAAiB,gBAkBtD,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,iBAAiB,gBAkBxD,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/ImageUploadButton.d.ts b/dist/components/buttons/ImageUploadButton.d.ts deleted file mode 100644 index aab4ed06b..000000000 --- a/dist/components/buttons/ImageUploadButton.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -type ImageUploadButtonProps = { - buttonColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; -} & JSX.ButtonHTMLAttributes; -export declare const ImageUploadButton: (props: ImageUploadButtonProps) => JSX.Element; -export declare const Spinner: (props: JSX.SvgSVGAttributes) => JSX.Element; -export {}; -//# sourceMappingURL=ImageUploadButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/ImageUploadButton.d.ts.map b/dist/components/buttons/ImageUploadButton.d.ts.map deleted file mode 100644 index b84ecbea0..000000000 --- a/dist/components/buttons/ImageUploadButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ImageUploadButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/ImageUploadButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,sBAAsB,GAAG;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,gBAiB9D,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/LeadCaptureButtons.d.ts b/dist/components/buttons/LeadCaptureButtons.d.ts deleted file mode 100644 index 7607ad106..000000000 --- a/dist/components/buttons/LeadCaptureButtons.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { JSX } from 'solid-js'; -type LeadCaptureButtonProps = { - buttonColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; -} & JSX.ButtonHTMLAttributes; -export declare const CancelLeadCaptureButton: (props: LeadCaptureButtonProps) => JSX.Element; -export declare const SaveLeadButton: (props: LeadCaptureButtonProps) => JSX.Element; -export {}; -//# sourceMappingURL=LeadCaptureButtons.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/LeadCaptureButtons.d.ts.map b/dist/components/buttons/LeadCaptureButtons.d.ts.map deleted file mode 100644 index d80b5bbc0..000000000 --- a/dist/components/buttons/LeadCaptureButtons.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"LeadCaptureButtons.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/LeadCaptureButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAQ,MAAM,UAAU,CAAC;AAIrC,KAAK,sBAAsB,GAAG;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAGhD,eAAO,MAAM,uBAAuB,UAAW,sBAAsB,gBAepE,CAAC;AAWF,eAAO,MAAM,cAAc,UAAW,sBAAsB,gBAc3D,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/RecordAudioButton.d.ts b/dist/components/buttons/RecordAudioButton.d.ts deleted file mode 100644 index 8139e337f..000000000 --- a/dist/components/buttons/RecordAudioButton.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -type RecordAudioButtonProps = { - buttonColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; -} & JSX.ButtonHTMLAttributes; -export declare const RecordAudioButton: (props: RecordAudioButtonProps) => JSX.Element; -export declare const Spinner: (props: JSX.SvgSVGAttributes) => JSX.Element; -export {}; -//# sourceMappingURL=RecordAudioButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/RecordAudioButton.d.ts.map b/dist/components/buttons/RecordAudioButton.d.ts.map deleted file mode 100644 index 9f263ae53..000000000 --- a/dist/components/buttons/RecordAudioButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RecordAudioButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/RecordAudioButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,sBAAsB,GAAG;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,gBAiB9D,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/RegenerateResponseButton.d.ts b/dist/components/buttons/RegenerateResponseButton.d.ts deleted file mode 100644 index d6b498bed..000000000 --- a/dist/components/buttons/RegenerateResponseButton.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { JSX } from 'solid-js'; -type RegenerateResponseButtonProps = { - feedbackColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; -} & JSX.ButtonHTMLAttributes; -export declare const RegenerateResponseButton: (props: RegenerateResponseButtonProps) => JSX.Element; -export {}; -//# sourceMappingURL=RegenerateResponseButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/RegenerateResponseButton.d.ts.map b/dist/components/buttons/RegenerateResponseButton.d.ts.map deleted file mode 100644 index 301df39ba..000000000 --- a/dist/components/buttons/RegenerateResponseButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RegenerateResponseButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/RegenerateResponseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAQ,MAAM,UAAU,CAAC;AAIrC,KAAK,6BAA6B,GAAG;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAIhD,eAAO,MAAM,wBAAwB,UAAW,6BAA6B,gBAkB5E,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/SendButton.d.ts b/dist/components/buttons/SendButton.d.ts deleted file mode 100644 index 1ae608e5a..000000000 --- a/dist/components/buttons/SendButton.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -type SendButtonProps = { - sendButtonColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; -} & JSX.ButtonHTMLAttributes; -export declare const SendButton: (props: SendButtonProps) => JSX.Element; -export declare const DeleteButton: (props: SendButtonProps) => JSX.Element; -export declare const Spinner: (props: JSX.SvgSVGAttributes) => JSX.Element; -export {}; -//# sourceMappingURL=SendButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/SendButton.d.ts.map b/dist/components/buttons/SendButton.d.ts.map deleted file mode 100644 index 935ceaa06..000000000 --- a/dist/components/buttons/SendButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SendButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/SendButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,eAAe,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,UAAU,UAAW,eAAe,gBAiBhD,CAAC;AACF,eAAO,MAAM,YAAY,UAAW,eAAe,gBAsBlD,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/StopButton.d.ts b/dist/components/buttons/StopButton.d.ts deleted file mode 100644 index e36eb099f..000000000 --- a/dist/components/buttons/StopButton.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -type StopButtonProps = { - sendButtonColor?: string; - isDisabled?: boolean; - isStopping?: boolean; -} & JSX.ButtonHTMLAttributes; -export declare const StopButton: (props: StopButtonProps) => JSX.Element; -export {}; -//# sourceMappingURL=StopButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/StopButton.d.ts.map b/dist/components/buttons/StopButton.d.ts.map deleted file mode 100644 index 9d078b41a..000000000 --- a/dist/components/buttons/StopButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"StopButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/StopButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,eAAe,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAShD,eAAO,MAAM,UAAU,UAAW,eAAe,gBAkBhD,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/TTSButton.d.ts b/dist/components/buttons/TTSButton.d.ts deleted file mode 100644 index 0578588c7..000000000 --- a/dist/components/buttons/TTSButton.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -type Props = { - isLoading?: boolean; - isPlaying?: boolean; - feedbackColor?: string; - onClick: () => void; - class?: string; -}; -export declare const TTSButton: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=TTSButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/TTSButton.d.ts.map b/dist/components/buttons/TTSButton.d.ts.map deleted file mode 100644 index 91866f5c4..000000000 --- a/dist/components/buttons/TTSButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TTSButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/TTSButton.tsx"],"names":[],"mappings":"AAGA,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAIF,eAAO,MAAM,SAAS,UAAW,KAAK,mCA6DrC,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/TracesButton.d.ts b/dist/components/buttons/TracesButton.d.ts deleted file mode 100644 index 89ef10fbf..000000000 --- a/dist/components/buttons/TracesButton.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { JSX } from 'solid-js'; -type TracesButtonProps = { - feedbackColor?: string; - isDisabled?: boolean; - isLoading?: boolean; - disableIcon?: boolean; -} & JSX.ButtonHTMLAttributes; -export declare const TracesButton: (props: TracesButtonProps) => JSX.Element; -export {}; -//# sourceMappingURL=TracesButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/TracesButton.d.ts.map b/dist/components/buttons/TracesButton.d.ts.map deleted file mode 100644 index 37d7b8ccf..000000000 --- a/dist/components/buttons/TracesButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TracesButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/TracesButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAQ,MAAM,UAAU,CAAC;AAIrC,KAAK,iBAAiB,GAAG;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAIhD,eAAO,MAAM,YAAY,UAAW,iBAAiB,gBAqBpD,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/AddImageIcon.d.ts b/dist/components/icons/AddImageIcon.d.ts deleted file mode 100644 index 4536720f6..000000000 --- a/dist/components/icons/AddImageIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const AddImageIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=AddImageIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/AddImageIcon.d.ts.map b/dist/components/icons/AddImageIcon.d.ts.map deleted file mode 100644 index 003cd2dc5..000000000 --- a/dist/components/icons/AddImageIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AddImageIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/AddImageIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,YAAY,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAkBtE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/AttachmentIcon.d.ts b/dist/components/icons/AttachmentIcon.d.ts deleted file mode 100644 index 67c09539b..000000000 --- a/dist/components/icons/AttachmentIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const AttachmentIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=AttachmentIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/AttachmentIcon.d.ts.map b/dist/components/icons/AttachmentIcon.d.ts.map deleted file mode 100644 index d654be14e..000000000 --- a/dist/components/icons/AttachmentIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AttachmentIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/AttachmentIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,cAAc,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBxE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/ChevronDownIcon.d.ts b/dist/components/icons/ChevronDownIcon.d.ts deleted file mode 100644 index 06896d5e3..000000000 --- a/dist/components/icons/ChevronDownIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const ChevronDownIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=ChevronDownIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/ChevronDownIcon.d.ts.map b/dist/components/icons/ChevronDownIcon.d.ts.map deleted file mode 100644 index 609b318df..000000000 --- a/dist/components/icons/ChevronDownIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChevronDownIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ChevronDownIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,eAAe,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAazE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/ChevronRightIcon.d.ts b/dist/components/icons/ChevronRightIcon.d.ts deleted file mode 100644 index 884a37853..000000000 --- a/dist/components/icons/ChevronRightIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const ChevronRightIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=ChevronRightIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/ChevronRightIcon.d.ts.map b/dist/components/icons/ChevronRightIcon.d.ts.map deleted file mode 100644 index 616d3fead..000000000 --- a/dist/components/icons/ChevronRightIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ChevronRightIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ChevronRightIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,gBAAgB,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAa1E,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/CircleDotIcon.d.ts b/dist/components/icons/CircleDotIcon.d.ts deleted file mode 100644 index 15080c2d1..000000000 --- a/dist/components/icons/CircleDotIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const CircleDotIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=CircleDotIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/CircleDotIcon.d.ts.map b/dist/components/icons/CircleDotIcon.d.ts.map deleted file mode 100644 index 3dbd7f74a..000000000 --- a/dist/components/icons/CircleDotIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CircleDotIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/CircleDotIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,aAAa,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAevE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/ClipboardIcon.d.ts b/dist/components/icons/ClipboardIcon.d.ts deleted file mode 100644 index 1de75985a..000000000 --- a/dist/components/icons/ClipboardIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const ClipboardIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=ClipboardIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/ClipboardIcon.d.ts.map b/dist/components/icons/ClipboardIcon.d.ts.map deleted file mode 100644 index a49e1091b..000000000 --- a/dist/components/icons/ClipboardIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ClipboardIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ClipboardIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,aAAa,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBvE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/DeleteIcon.d.ts b/dist/components/icons/DeleteIcon.d.ts deleted file mode 100644 index e85753790..000000000 --- a/dist/components/icons/DeleteIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const DeleteIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=DeleteIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/DeleteIcon.d.ts.map b/dist/components/icons/DeleteIcon.d.ts.map deleted file mode 100644 index 2080bf5fd..000000000 --- a/dist/components/icons/DeleteIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DeleteIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/DeleteIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,UAAU,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAiBpE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/DownloadFileIcon.d.ts b/dist/components/icons/DownloadFileIcon.d.ts deleted file mode 100644 index 182926eac..000000000 --- a/dist/components/icons/DownloadFileIcon.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const DownloadFileIcon: () => import("solid-js").JSX.Element; -//# sourceMappingURL=DownloadFileIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/DownloadFileIcon.d.ts.map b/dist/components/icons/DownloadFileIcon.d.ts.map deleted file mode 100644 index bd3e27a87..000000000 --- a/dist/components/icons/DownloadFileIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DownloadFileIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/DownloadFileIcon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,sCAkB5B,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/FileIcon.d.ts b/dist/components/icons/FileIcon.d.ts deleted file mode 100644 index d8161081f..000000000 --- a/dist/components/icons/FileIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const FileIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=FileIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/FileIcon.d.ts.map b/dist/components/icons/FileIcon.d.ts.map deleted file mode 100644 index 27ce99b70..000000000 --- a/dist/components/icons/FileIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FileIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/FileIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,QAAQ,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAclE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/FolderIcon.d.ts b/dist/components/icons/FolderIcon.d.ts deleted file mode 100644 index 80b89ee28..000000000 --- a/dist/components/icons/FolderIcon.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const FolderIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -export declare const FolderOpenIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=FolderIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/FolderIcon.d.ts.map b/dist/components/icons/FolderIcon.d.ts.map deleted file mode 100644 index 21fe05ee5..000000000 --- a/dist/components/icons/FolderIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FolderIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/FolderIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,UAAU,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAapE,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAaxE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/GlobeIcon.d.ts b/dist/components/icons/GlobeIcon.d.ts deleted file mode 100644 index 74e609ee5..000000000 --- a/dist/components/icons/GlobeIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const GlobeIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=GlobeIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/GlobeIcon.d.ts.map b/dist/components/icons/GlobeIcon.d.ts.map deleted file mode 100644 index f08ed2b3e..000000000 --- a/dist/components/icons/GlobeIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"GlobeIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/GlobeIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,SAAS,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAenE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/RecordIcon.d.ts b/dist/components/icons/RecordIcon.d.ts deleted file mode 100644 index 633262cb1..000000000 --- a/dist/components/icons/RecordIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const RecordIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=RecordIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/RecordIcon.d.ts.map b/dist/components/icons/RecordIcon.d.ts.map deleted file mode 100644 index b5e6f727c..000000000 --- a/dist/components/icons/RecordIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RecordIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/RecordIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,UAAU,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBpE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/SendIcon.d.ts b/dist/components/icons/SendIcon.d.ts deleted file mode 100644 index 117487ca8..000000000 --- a/dist/components/icons/SendIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const SendIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=SendIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/SendIcon.d.ts.map b/dist/components/icons/SendIcon.d.ts.map deleted file mode 100644 index 01d48c990..000000000 --- a/dist/components/icons/SendIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SendIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/SendIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,QAAQ,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAIlE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/SparklesIcon.d.ts b/dist/components/icons/SparklesIcon.d.ts deleted file mode 100644 index f65f5e770..000000000 --- a/dist/components/icons/SparklesIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const SparklesIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=SparklesIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/SparklesIcon.d.ts.map b/dist/components/icons/SparklesIcon.d.ts.map deleted file mode 100644 index ff72ce26a..000000000 --- a/dist/components/icons/SparklesIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SparklesIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/SparklesIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,eAAO,MAAM,YAAY,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBtE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/SquareStopIcon.d.ts b/dist/components/icons/SquareStopIcon.d.ts deleted file mode 100644 index ae94d316a..000000000 --- a/dist/components/icons/SquareStopIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const SquareStopIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=SquareStopIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/SquareStopIcon.d.ts.map b/dist/components/icons/SquareStopIcon.d.ts.map deleted file mode 100644 index 05121a0b3..000000000 --- a/dist/components/icons/SquareStopIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SquareStopIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/SquareStopIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,cAAc,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBxE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/ThumbsDownIcon.d.ts b/dist/components/icons/ThumbsDownIcon.d.ts deleted file mode 100644 index 23b7977ca..000000000 --- a/dist/components/icons/ThumbsDownIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const ThumbsDownIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=ThumbsDownIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/ThumbsDownIcon.d.ts.map b/dist/components/icons/ThumbsDownIcon.d.ts.map deleted file mode 100644 index 8e796f1c6..000000000 --- a/dist/components/icons/ThumbsDownIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ThumbsDownIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ThumbsDownIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,cAAc,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBxE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/ThumbsUpIcon.d.ts b/dist/components/icons/ThumbsUpIcon.d.ts deleted file mode 100644 index 61c6b9250..000000000 --- a/dist/components/icons/ThumbsUpIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const ThumbsUpIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=ThumbsUpIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/ThumbsUpIcon.d.ts.map b/dist/components/icons/ThumbsUpIcon.d.ts.map deleted file mode 100644 index 5a67e094a..000000000 --- a/dist/components/icons/ThumbsUpIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ThumbsUpIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ThumbsUpIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,YAAY,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBtE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/TickIcon.d.ts b/dist/components/icons/TickIcon.d.ts deleted file mode 100644 index 58467b450..000000000 --- a/dist/components/icons/TickIcon.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const TickIcon: () => import("solid-js").JSX.Element; -//# sourceMappingURL=TickIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/TickIcon.d.ts.map b/dist/components/icons/TickIcon.d.ts.map deleted file mode 100644 index 909a95155..000000000 --- a/dist/components/icons/TickIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TickIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/TickIcon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,sCAepB,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/TracesIcon.d.ts b/dist/components/icons/TracesIcon.d.ts deleted file mode 100644 index 1a670bb4f..000000000 --- a/dist/components/icons/TracesIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const TracesIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=TracesIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/TracesIcon.d.ts.map b/dist/components/icons/TracesIcon.d.ts.map deleted file mode 100644 index 1d89825e3..000000000 --- a/dist/components/icons/TracesIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TracesIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/TracesIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,eAAO,MAAM,UAAU,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAqBpE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/TrashIcon.d.ts b/dist/components/icons/TrashIcon.d.ts deleted file mode 100644 index 37221181f..000000000 --- a/dist/components/icons/TrashIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const TrashIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=TrashIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/TrashIcon.d.ts.map b/dist/components/icons/TrashIcon.d.ts.map deleted file mode 100644 index e23edbf46..000000000 --- a/dist/components/icons/TrashIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TrashIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/TrashIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,SAAS,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAkBnE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/VolumeIcon.d.ts b/dist/components/icons/VolumeIcon.d.ts deleted file mode 100644 index e97e5a4ff..000000000 --- a/dist/components/icons/VolumeIcon.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const VolumeIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; -//# sourceMappingURL=VolumeIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/VolumeIcon.d.ts.map b/dist/components/icons/VolumeIcon.d.ts.map deleted file mode 100644 index a98f5c8bf..000000000 --- a/dist/components/icons/VolumeIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VolumeIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/VolumeIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,UAAU,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAkBpE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/XIcon.d.ts b/dist/components/icons/XIcon.d.ts deleted file mode 100644 index 2ba85a697..000000000 --- a/dist/components/icons/XIcon.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -export declare const XIcon: (props: JSX.SvgSVGAttributes & { - isCurrentColor?: boolean; -}) => JSX.Element; -//# sourceMappingURL=XIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/XIcon.d.ts.map b/dist/components/icons/XIcon.d.ts.map deleted file mode 100644 index 676394326..000000000 --- a/dist/components/icons/XIcon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"XIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/XIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,KAAK,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,GAAG;IAAE,cAAc,CAAC,EAAE,OAAO,CAAA;CAAE,gBAe9F,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/index.d.ts b/dist/components/icons/index.d.ts deleted file mode 100644 index 6144cc51a..000000000 --- a/dist/components/icons/index.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -export * from './ClipboardIcon'; -export * from './ThumbsDownIcon'; -export * from './ThumbsUpIcon'; -export * from './AddImageIcon'; -export * from './CircleDotIcon'; -export * from './DeleteIcon'; -export * from './RecordIcon'; -export * from './SendIcon'; -export * from './TrashIcon'; -export * from './XIcon'; -export * from './TickIcon'; -export * from './AttachmentIcon'; -export * from './SparklesIcon'; -export * from './VolumeIcon'; -export * from './SquareStopIcon'; -export * from './ChevronDownIcon'; -export * from './TracesIcon'; -export * from './FileIcon'; -export * from './GlobeIcon'; -export * from './DownloadFileIcon'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/index.d.ts.map b/dist/components/icons/index.d.ts.map deleted file mode 100644 index 9e28ff41a..000000000 --- a/dist/components/icons/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"} \ No newline at end of file diff --git a/dist/components/index.d.ts b/dist/components/index.d.ts deleted file mode 100644 index 8e2814056..000000000 --- a/dist/components/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './buttons/SendButton'; -export * from './TypingBubble'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/index.d.ts.map b/dist/components/index.d.ts.map deleted file mode 100644 index 87bc3a508..000000000 --- a/dist/components/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC"} \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/FilePreview.d.ts b/dist/components/inputs/textInput/components/FilePreview.d.ts deleted file mode 100644 index 855a67bfd..000000000 --- a/dist/components/inputs/textInput/components/FilePreview.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -type CardWithDeleteOverlayProps = { - item: { - name: string; - }; - disabled?: boolean; - onDelete: (item: { - name: string; - }) => void; -}; -export declare const FilePreview: (props: CardWithDeleteOverlayProps) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=FilePreview.d.ts.map \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/FilePreview.d.ts.map b/dist/components/inputs/textInput/components/FilePreview.d.ts.map deleted file mode 100644 index 58bf76bab..000000000 --- a/dist/components/inputs/textInput/components/FilePreview.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"FilePreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/components/FilePreview.tsx"],"names":[],"mappings":"AAGA,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,0BAA0B,mCAyC5D,CAAC"} \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/ShortTextInput.d.ts b/dist/components/inputs/textInput/components/ShortTextInput.d.ts deleted file mode 100644 index 28543c6ef..000000000 --- a/dist/components/inputs/textInput/components/ShortTextInput.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { JSX } from 'solid-js/jsx-runtime'; -type ShortTextInputProps = { - ref: HTMLInputElement | HTMLTextAreaElement | undefined; - onInput: (value: string) => void; - fontSize?: number; - disabled?: boolean; -} & Omit, 'onInput'>; -export declare const ShortTextInput: (props: ShortTextInputProps) => JSX.Element; -export {}; -//# sourceMappingURL=ShortTextInput.d.ts.map \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map b/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map deleted file mode 100644 index ee2430171..000000000 --- a/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ShortTextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/components/ShortTextInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,KAAK,mBAAmB,GAAG;IACzB,GAAG,EAAE,gBAAgB,GAAG,mBAAmB,GAAG,SAAS,CAAC;IACxD,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,SAAS,CAAC,CAAC;AAIrE,eAAO,MAAM,cAAc,UAAW,mBAAmB,gBA4CxD,CAAC"} \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/TextInput.d.ts b/dist/components/inputs/textInput/components/TextInput.d.ts deleted file mode 100644 index 1db356031..000000000 --- a/dist/components/inputs/textInput/components/TextInput.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Setter } from 'solid-js'; -import { FileEvent, UploadsConfig } from '@/components/Bot'; -type TextInputProps = { - placeholder?: string; - backgroundColor?: string; - textColor?: string; - sendButtonColor?: string; - inputValue: string; - fontSize?: number; - disabled?: boolean; - onSubmit: (value: string) => void; - onInputChange: (value: string) => void; - uploadsConfig?: Partial; - isFullFileUpload?: boolean; - setPreviews: Setter; - onMicrophoneClicked: () => void; - handleFileChange: (event: FileEvent) => void; - maxChars?: number; - maxCharsWarningMessage?: string; - autoFocus?: boolean; - sendMessageSound?: boolean; - sendSoundLocation?: string; - fullFileUploadAllowedTypes?: string; - enableInputHistory?: boolean; - maxHistorySize?: number; - isLoading?: boolean; - showAbortButton?: boolean; - isMessageStopping?: boolean; - onAbort?: () => void; -}; -export declare const TextInput: (props: TextInputProps) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=TextInput.d.ts.map \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/TextInput.d.ts.map b/dist/components/inputs/textInput/components/TextInput.d.ts.map deleted file mode 100644 index c791133cd..000000000 --- a/dist/components/inputs/textInput/components/TextInput.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/components/TextInput.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA6C,MAAM,EAAE,MAAM,UAAU,CAAC;AAG7E,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAM5D,KAAK,cAAc,GAAG;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IACvC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IAC/B,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,gBAAgB,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAOF,eAAO,MAAM,SAAS,UAAW,cAAc,mCAoP9C,CAAC"} \ No newline at end of file diff --git a/dist/components/inputs/textInput/index.d.ts b/dist/components/inputs/textInput/index.d.ts deleted file mode 100644 index a3b6a60e0..000000000 --- a/dist/components/inputs/textInput/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { TextInput } from './components/TextInput'; -export { FilePreview } from './components/FilePreview'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/inputs/textInput/index.d.ts.map b/dist/components/inputs/textInput/index.d.ts.map deleted file mode 100644 index 7fc780aae..000000000 --- a/dist/components/inputs/textInput/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/textInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/AgentflowIcons.d.ts b/dist/components/treeview/AgentflowIcons.d.ts deleted file mode 100644 index 4d214f0be..000000000 --- a/dist/components/treeview/AgentflowIcons.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { JSXElement } from 'solid-js'; -type IconProps = { - size?: number; - color?: string; -}; -export declare const MaximizeIcon: (props: IconProps) => import("solid-js").JSX.Element; -type AgentflowIconEntry = { - name: string; - icon: (props: IconProps) => JSXElement; - color: string; -}; -export declare const AGENTFLOW_ICONS: AgentflowIconEntry[]; -export declare function getAgentflowIcon(name: string): AgentflowIconEntry | null; -export {}; -//# sourceMappingURL=AgentflowIcons.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/AgentflowIcons.d.ts.map b/dist/components/treeview/AgentflowIcons.d.ts.map deleted file mode 100644 index d20ba25ad..000000000 --- a/dist/components/treeview/AgentflowIcons.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AgentflowIcons.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/AgentflowIcons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,KAAK,SAAS,GAAG;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAuSF,eAAO,MAAM,YAAY,UAAW,SAAS,mCAiB5C,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,UAAU,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,kBAAkB,EAgB/C,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI,CAExE"} \ No newline at end of file diff --git a/dist/components/treeview/DataTransformer.d.ts b/dist/components/treeview/DataTransformer.d.ts deleted file mode 100644 index 012f75d00..000000000 --- a/dist/components/treeview/DataTransformer.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -type DataTransformerProps = { - jsonData: string; - class?: string; -}; -export declare const DataTransformer: (props: DataTransformerProps) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=DataTransformer.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/DataTransformer.d.ts.map b/dist/components/treeview/DataTransformer.d.ts.map deleted file mode 100644 index 762c54d45..000000000 --- a/dist/components/treeview/DataTransformer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DataTransformer.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/DataTransformer.tsx"],"names":[],"mappings":"AAGA,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,oBAAoB,mCAoE1D,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/NodeDetailsContent.d.ts b/dist/components/treeview/NodeDetailsContent.d.ts deleted file mode 100644 index 8ce66a34e..000000000 --- a/dist/components/treeview/NodeDetailsContent.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -export type NodeDetailsNode = { - label: string; - name: string; - status: string; - data: any; -}; -type NodeDetailsContentProps = { - node: NodeDetailsNode; - backgroundColor?: string; - textColor?: string; - apiHost?: string; - chatflowid?: string; - chatId?: string; -}; -export declare function syntaxHighlight(json: string): string; -export declare const CloseIcon: () => import("solid-js").JSX.Element; -export declare const ClockIcon: () => import("solid-js").JSX.Element; -export declare const CoinIcon: () => import("solid-js").JSX.Element; -export declare const TokenIcon: () => import("solid-js").JSX.Element; -export declare const NodeIcon: (props: { - name: string; - apiHost?: string; - size?: number; - borderRadius?: string; - bgColor?: string; -}) => import("solid-js").JSX.Element; -export declare const jsonBlockStyle: Record; -export declare const nddStyles = "\n .ndd-json .string { color: #7ac35c; }\n .ndd-json .number { color: #e08331; }\n .ndd-json .boolean { color: #326dc3; }\n .ndd-json .null { color: #a951ad; }\n .ndd-json .key { color: #d73e3e; font-weight: bold; }\n @keyframes ndd-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }\n .ndd-spin { animation: ndd-spin 1.5s linear infinite; }\n .ndd-markdown p { margin: 0 0 0.5em 0; }\n .ndd-markdown p:last-child { margin-bottom: 0; }\n .ndd-markdown code { background: rgba(0,0,0,0.06); padding: 1px 4px; border-radius: 3px; font-size: 0.8em; font-family: 'SF Mono', 'Fira Code', Menlo, Consolas, monospace; }\n .ndd-markdown pre { background: rgba(0,0,0,0.04); padding: 10px 12px; border-radius: 6px; overflow-x: auto; margin: 0.5em 0; }\n .ndd-markdown pre code { background: none; padding: 0; font-size: 0.8em; }\n .ndd-markdown a { color: #1976d2; text-decoration: underline; }\n .ndd-markdown ul, .ndd-markdown ol { margin: 0.4em 0; padding-left: 1.5em; }\n .ndd-markdown li { margin: 0.2em 0; }\n .ndd-markdown h1, .ndd-markdown h2, .ndd-markdown h3 { margin: 0.6em 0 0.3em 0; font-weight: 600; }\n .ndd-markdown h1 { font-size: 1.2em; }\n .ndd-markdown h2 { font-size: 1.1em; }\n .ndd-markdown h3 { font-size: 1em; }\n .ndd-markdown blockquote { border-left: 3px solid rgba(0,0,0,0.15); margin: 0.5em 0; padding: 0.2em 0 0.2em 0.8em; opacity: 0.85; }\n .ndd-markdown table { border-collapse: collapse; margin: 0.5em 0; font-size: 0.85em; }\n .ndd-markdown th, .ndd-markdown td { border: 1px solid rgba(0,0,0,0.12); padding: 4px 8px; }\n .ndd-markdown th { background: rgba(0,0,0,0.04); font-weight: 600; }\n .ndd-markdown strong { font-weight: 600; }\n"; -export declare const getMetrics: (data: any) => { - time?: string | undefined; - tokens?: string | undefined; - cost?: string | undefined; -} | null; -export declare const NodeDetailsContent: (props: NodeDetailsContentProps) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=NodeDetailsContent.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/NodeDetailsContent.d.ts.map b/dist/components/treeview/NodeDetailsContent.d.ts.map deleted file mode 100644 index 34f3148f1..000000000 --- a/dist/components/treeview/NodeDetailsContent.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NodeDetailsContent.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/NodeDetailsContent.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,eAAe,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAIF,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAcpD;AAID,eAAO,MAAM,SAAS,sCAerB,CAAC;AAkBF,eAAO,MAAM,SAAS,sCAerB,CAAC;AAEF,eAAO,MAAM,QAAQ,sCAgBpB,CAAC;AAEF,eAAO,MAAM,SAAS,sCAiBrB,CAAC;AAyDF,eAAO,MAAM,QAAQ,UAAW;IAAE,MAAM,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,mCAmEzH,CAAC;AA2FF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAWjD,CAAC;AAsIF,eAAO,MAAM,SAAS,orDAyBrB,CAAC;AAIF,eAAO,MAAM,UAAU,SAAU,GAAG;;;;QAoBnC,CAAC;AAIF,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,mCAimBhE,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/NodeDetailsDialog.d.ts b/dist/components/treeview/NodeDetailsDialog.d.ts deleted file mode 100644 index 34506b49a..000000000 --- a/dist/components/treeview/NodeDetailsDialog.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -type NodeDetailsDialogProps = { - isOpen: boolean; - onClose: () => void; - node: { - label: string; - name: string; - status: string; - data: any; - } | null; - backgroundColor?: string; - textColor?: string; - apiHost?: string; - chatflowid?: string; - chatId?: string; - dialogContainer?: HTMLElement; - hasCustomHeader?: boolean; -}; -export declare const NodeDetailsDialog: (props: NodeDetailsDialogProps) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=NodeDetailsDialog.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/NodeDetailsDialog.d.ts.map b/dist/components/treeview/NodeDetailsDialog.d.ts.map deleted file mode 100644 index 2af4635bf..000000000 --- a/dist/components/treeview/NodeDetailsDialog.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NodeDetailsDialog.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/NodeDetailsDialog.tsx"],"names":[],"mappings":"AAKA,KAAK,sBAAsB,GAAG;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,GAAG,CAAC;KACX,GAAG,IAAI,CAAC;IACT,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,mCA0E9D,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/RichTreeView.d.ts b/dist/components/treeview/RichTreeView.d.ts deleted file mode 100644 index a6d85305d..000000000 --- a/dist/components/treeview/RichTreeView.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { JSXElement } from 'solid-js'; -type RichTreeViewProps = { - children: JSXElement; - defaultExpanded?: string[]; - defaultSelected?: string; - onNodeSelect?: (itemId: string) => void; - highlightItems?: string[]; - multiSelect?: boolean; - class?: string; - indentationLevel?: number; -}; -export declare const RichTreeView: (props: RichTreeViewProps) => import("solid-js").JSX.Element; -type TreeItemProps = { - itemId: string; - label: string | JSXElement; - children?: JSXElement; - icon?: JSXElement; - expandedIcon?: JSXElement; - endIcon?: JSXElement; - isLeaf?: boolean; - borderColor?: string; -}; -export declare const TreeItem: (props: TreeItemProps) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=RichTreeView.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/RichTreeView.d.ts.map b/dist/components/treeview/RichTreeView.d.ts.map deleted file mode 100644 index 1828021e1..000000000 --- a/dist/components/treeview/RichTreeView.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RichTreeView.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/RichTreeView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,UAAU,EAAuC,MAAM,UAAU,CAAC;AAoHtG,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,UAAU,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAUF,eAAO,MAAM,YAAY,UAAW,iBAAiB,mCA4HpD,CAAC;AAGF,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC;IAC3B,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAGF,eAAO,MAAM,QAAQ,UAAW,aAAa,mCA4D5C,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/TracesDialog.d.ts b/dist/components/treeview/TracesDialog.d.ts deleted file mode 100644 index 0e592bbb9..000000000 --- a/dist/components/treeview/TracesDialog.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { WorkflowNode } from './workflowUtils'; -type TracesDialogProps = { - isOpen: boolean; - onClose: () => void; - workflowData: WorkflowNode[]; - backgroundColor?: string; - textColor?: string; - apiHost?: string; - chatflowid?: string; - chatId?: string; - hasCustomHeader?: boolean; - dialogContainer?: HTMLElement; -}; -export declare const TracesDialog: (props: TracesDialogProps) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=TracesDialog.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/TracesDialog.d.ts.map b/dist/components/treeview/TracesDialog.d.ts.map deleted file mode 100644 index 8b523c103..000000000 --- a/dist/components/treeview/TracesDialog.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TracesDialog.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/TracesDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAoD,MAAM,iBAAiB,CAAC;AAIjG,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,WAAW,CAAC;CAC/B,CAAC;AAqDF,eAAO,MAAM,YAAY,UAAW,iBAAiB,mCA2UpD,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/TreeView.d.ts b/dist/components/treeview/TreeView.d.ts deleted file mode 100644 index 51703c1ab..000000000 --- a/dist/components/treeview/TreeView.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { JSXElement } from 'solid-js'; -type TreeViewProps = { - children: JSXElement; - defaultExpanded?: string[]; - class?: string; -}; -export declare const TreeView: (props: TreeViewProps) => import("solid-js").JSX.Element; -type TreeItemProps = { - itemId: string; - label: string | JSXElement; - children?: JSXElement; - icon?: JSXElement; - endIcon?: JSXElement; -}; -export declare const TreeItem: (props: TreeItemProps) => import("solid-js").JSX.Element; -type RichTreeViewProps = TreeViewProps & { - highlightItems?: string[]; - onNodeSelect?: (itemId: string) => void; -}; -export declare const RichTreeView: (props: RichTreeViewProps) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=TreeView.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/TreeView.d.ts.map b/dist/components/treeview/TreeView.d.ts.map deleted file mode 100644 index f16a53626..000000000 --- a/dist/components/treeview/TreeView.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TreeView.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/TreeView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2C,UAAU,EAA2B,MAAM,UAAU,CAAC;AAuDxG,KAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,UAAU,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAGF,eAAO,MAAM,QAAQ,UAAW,aAAa,mCA4B5C,CAAC;AAGF,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC;IAC3B,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,UAAU,CAAC;CACtB,CAAC;AAGF,eAAO,MAAM,QAAQ,UAAW,aAAa,mCA8B5C,CAAC;AAGF,KAAK,iBAAiB,GAAG,aAAa,GAAG;IACvC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,iBAAiB,mCA6BpD,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/WorkflowTreeView.d.ts b/dist/components/treeview/WorkflowTreeView.d.ts deleted file mode 100644 index ad1562be8..000000000 --- a/dist/components/treeview/WorkflowTreeView.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { WorkflowNode } from './workflowUtils'; -export type { WorkflowNode }; -type WorkflowTreeViewProps = { - workflowData: WorkflowNode[]; - class?: string; - indentationLevel?: number; - initiallyExpanded?: boolean; - title?: string; - backgroundColor?: string; - textColor?: string; - fontSize?: number; - apiHost?: string; - chatflowid?: string; - chatId?: string; - hasCustomHeader?: boolean; - dialogContainer?: HTMLElement; -}; -export declare const WorkflowTreeView: (props: WorkflowTreeViewProps) => import("solid-js").JSX.Element; -//# sourceMappingURL=WorkflowTreeView.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/WorkflowTreeView.d.ts.map b/dist/components/treeview/WorkflowTreeView.d.ts.map deleted file mode 100644 index 7363c22d1..000000000 --- a/dist/components/treeview/WorkflowTreeView.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WorkflowTreeView.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/WorkflowTreeView.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAoD,MAAM,iBAAiB,CAAC;AAGjG,YAAY,EAAE,YAAY,EAAE,CAAC;AAG7B,KAAK,qBAAqB,GAAG;IAC3B,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,WAAW,CAAC;CAC/B,CAAC;AA2CF,eAAO,MAAM,gBAAgB,UAAW,qBAAqB,mCAkI5D,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/workflowUtils.d.ts b/dist/components/treeview/workflowUtils.d.ts deleted file mode 100644 index b4cf9f293..000000000 --- a/dist/components/treeview/workflowUtils.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -export type WorkflowNode = { - nodeId: string; - nodeLabel: string; - data: any; - previousNodeIds: string[]; - status: 'FINISHED' | 'PENDING' | 'RUNNING' | 'ERROR' | 'INPROGRESS' | 'STOPPED'; -}; -export declare const FLOWISE_CREDENTIAL_ID = "FLOWISE_CREDENTIAL_ID"; -export declare const FinishedIcon: () => import("solid-js").JSX.Element; -export declare const PendingIcon: () => import("solid-js").JSX.Element; -export declare const RunningIcon: () => import("solid-js").JSX.Element; -export declare const ErrorIcon: () => import("solid-js").JSX.Element; -export declare const StoppedIcon: () => import("solid-js").JSX.Element; -export declare const getStatusIcon: (status: string) => import("solid-js").JSX.Element; -export declare const removeFlowiseCredentialId: (data: any) => any; -export declare const getExecutionStatus: (executionTree: any[]) => string | null; -export declare const buildTreeData: (nodes: WorkflowNode[]) => { - id: any; - label: any; - name: any; - status: any; - data: any; - children: any; -}[]; -//# sourceMappingURL=workflowUtils.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/workflowUtils.d.ts.map b/dist/components/treeview/workflowUtils.d.ts.map deleted file mode 100644 index ce90ac25a..000000000 --- a/dist/components/treeview/workflowUtils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"workflowUtils.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/workflowUtils.tsx"],"names":[],"mappings":"AACA,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,GAAG,CAAC;IACV,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,CAAC;CACjF,CAAC;AAEF,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAG7D,eAAO,MAAM,YAAY,sCAKxB,CAAC;AAEF,eAAO,MAAM,WAAW,sCAKvB,CAAC;AAEF,eAAO,MAAM,WAAW,sCAKvB,CAAC;AAEF,eAAO,MAAM,SAAS,sCAMrB,CAAC;AAEF,eAAO,MAAM,WAAW,sCAKvB,CAAC;AAGF,eAAO,MAAM,aAAa,WAAY,MAAM,mCAuB3C,CAAC;AAGF,eAAO,MAAM,yBAAyB,SAAU,GAAG,KAAG,GAYrD,CAAC;AAGF,eAAO,MAAM,kBAAkB,kBAAmB,GAAG,EAAE,KAAG,MAAM,GAAG,IAkBlE,CAAC;AAGF,eAAO,MAAM,aAAa,UAAW,YAAY,EAAE;;;;;;;GAoQlD,CAAC"} \ No newline at end of file diff --git a/dist/constants.d.ts b/dist/constants.d.ts deleted file mode 100644 index 81093b276..000000000 --- a/dist/constants.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type { BubbleProps } from './features/bubble'; -export declare const defaultBotProps: BubbleProps; -export declare const CHAT_HEADER_HEIGHT = 50; -//# sourceMappingURL=constants.d.ts.map \ No newline at end of file diff --git a/dist/constants.d.ts.map b/dist/constants.d.ts.map deleted file mode 100644 index 41d60f132..000000000 --- a/dist/constants.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,eAAe,EAAE,WAQ7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,KAAK,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/components/Bubble.d.ts b/dist/features/bubble/components/Bubble.d.ts deleted file mode 100644 index 2828d64ee..000000000 --- a/dist/features/bubble/components/Bubble.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { BubbleParams } from '../types'; -import { BotProps } from '../../../components/Bot'; -export type BubbleProps = BotProps & BubbleParams; -export declare const Bubble: (props: BubbleProps) => import("solid-js").JSX.Element; -//# sourceMappingURL=Bubble.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/components/Bubble.d.ts.map b/dist/features/bubble/components/Bubble.d.ts.map deleted file mode 100644 index 568e924e4..000000000 --- a/dist/features/bubble/components/Bubble.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Bubble.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/Bubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAO,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAQxD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,YAAY,CAAC;AAElD,eAAO,MAAM,MAAM,UAAW,WAAW,mCA8MxC,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/components/BubbleButton.d.ts b/dist/features/bubble/components/BubbleButton.d.ts deleted file mode 100644 index 97a9343a4..000000000 --- a/dist/features/bubble/components/BubbleButton.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { ButtonTheme } from '../types'; -type Props = ButtonTheme & { - isBotOpened: boolean; - toggleBot: () => void; - setButtonPosition: (position: { - bottom: number; - right: number; - }) => void; - dragAndDrop: boolean; - autoOpen?: boolean; - openDelay?: number; - autoOpenOnMobile?: boolean; -}; -export declare const BubbleButton: (props: Props) => import("solid-js").JSX.Element; -export {}; -//# sourceMappingURL=BubbleButton.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/components/BubbleButton.d.ts.map b/dist/features/bubble/components/BubbleButton.d.ts.map deleted file mode 100644 index 02c3fd4af..000000000 --- a/dist/features/bubble/components/BubbleButton.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BubbleButton.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/BubbleButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,KAAK,KAAK,GAAG,WAAW,GAAG;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,iBAAiB,EAAE,CAAC,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACzE,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAOF,eAAO,MAAM,YAAY,UAAW,KAAK,mCA8HxC,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/components/Tooltip.d.ts b/dist/features/bubble/components/Tooltip.d.ts deleted file mode 100644 index 05e7c7c76..000000000 --- a/dist/features/bubble/components/Tooltip.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -type TooltipProps = { - showTooltip: boolean; - position: { - bottom: number; - right: number; - }; - buttonSize: number; - tooltipMessage?: string; - tooltipBackgroundColor?: string; - tooltipTextColor?: string; - tooltipFontSize?: number; -}; -declare const Tooltip: (props: TooltipProps) => import("solid-js").JSX.Element; -export default Tooltip; -//# sourceMappingURL=Tooltip.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/components/Tooltip.d.ts.map b/dist/features/bubble/components/Tooltip.d.ts.map deleted file mode 100644 index d44401367..000000000 --- a/dist/features/bubble/components/Tooltip.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/Tooltip.tsx"],"names":[],"mappings":"AAOA,KAAK,YAAY,GAAG;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,OAAO,UAAW,YAAY,mCA2CnC,CAAC;AAEF,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/components/index.d.ts b/dist/features/bubble/components/index.d.ts deleted file mode 100644 index e50fa475f..000000000 --- a/dist/features/bubble/components/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './Bubble'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/components/index.d.ts.map b/dist/features/bubble/components/index.d.ts.map deleted file mode 100644 index 19fb7436a..000000000 --- a/dist/features/bubble/components/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/index.d.ts b/dist/features/bubble/index.d.ts deleted file mode 100644 index 08ff52039..000000000 --- a/dist/features/bubble/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './components'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/index.d.ts.map b/dist/features/bubble/index.d.ts.map deleted file mode 100644 index ace7bafae..000000000 --- a/dist/features/bubble/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/bubble/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/types.d.ts b/dist/features/bubble/types.d.ts deleted file mode 100644 index 03ae1443c..000000000 --- a/dist/features/bubble/types.d.ts +++ /dev/null @@ -1,118 +0,0 @@ -export type BubbleParams = { - theme?: BubbleTheme; -}; -export type BubbleTheme = { - chatWindow?: ChatWindowTheme; - button?: ButtonTheme; - tooltip?: ToolTipTheme; - disclaimer?: DisclaimerPopUpTheme; - customCSS?: string; - form?: FormTheme; -}; -export type FormTheme = { - backgroundColor?: string; - textColor?: string; -}; -export type TextInputTheme = { - backgroundColor?: string; - textColor?: string; - placeholder?: string; - sendButtonColor?: string; - maxChars?: number; - maxCharsWarningMessage?: string; - autoFocus?: boolean; - sendMessageSound?: boolean; - sendSoundLocation?: string; - receiveMessageSound?: boolean; - receiveSoundLocation?: string; - enableInputHistory?: boolean; -}; -export type UserMessageTheme = { - backgroundColor?: string; - textColor?: string; - showAvatar?: boolean; - avatarSrc?: string; -}; -export type BotMessageTheme = { - backgroundColor?: string; - textColor?: string; - showAvatar?: boolean; - avatarSrc?: string; -}; -export type FooterTheme = { - showFooter?: boolean; - textColor?: string; - text?: string; - company?: string; - companyLink?: string; -}; -export type FeedbackTheme = { - color?: string; -}; -export type ChatWindowTheme = { - showTitle?: boolean; - showAgentMessages?: boolean; - title?: string; - titleAvatarSrc?: string; - titleTextColor?: string; - titleBackgroundColor?: string; - welcomeMessage?: string; - errorMessage?: string; - backgroundColor?: string; - backgroundImage?: string; - height?: number | string; - width?: number | string; - fontSize?: number; - userMessage?: UserMessageTheme; - botMessage?: BotMessageTheme; - textInput?: TextInputTheme; - feedback?: FeedbackTheme; - footer?: FooterTheme; - sourceDocsTitle?: string; - poweredByTextColor?: string; - starterPrompts?: string[]; - starterPromptFontSize?: number; - clearChatOnReload?: boolean; - dateTimeToggle?: DateTimeToggleTheme; - renderHTML?: boolean; - headerHtml?: string; -}; -export type ButtonTheme = { - size?: 'small' | 'medium' | 'large' | number; - backgroundColor?: string; - iconColor?: string; - customIconSrc?: string; - bottom?: number; - right?: number; - dragAndDrop?: boolean; - autoWindowOpen?: autoWindowOpenTheme; -}; -export type ToolTipTheme = { - showTooltip?: boolean; - tooltipMessage?: string; - tooltipBackgroundColor?: string; - tooltipTextColor?: string; - tooltipFontSize?: number; -}; -export type autoWindowOpenTheme = { - autoOpen?: boolean; - openDelay?: number; - autoOpenOnMobile?: boolean; -}; -export type DisclaimerPopUpTheme = { - title?: string; - message?: string; - textColor?: string; - buttonColor?: string; - buttonTextColor?: string; - buttonText?: string; - blurredBackgroundColor?: string; - backgroundColor?: string; - denyButtonBgColor?: string; - denyButtonText?: string; -}; -export type DateTimeToggleTheme = { - date?: boolean; - time?: boolean; -}; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/types.d.ts.map b/dist/features/bubble/types.d.ts.map deleted file mode 100644 index 87f94bbe3..000000000 --- a/dist/features/bubble/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/bubble/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAC7C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,mBAAmB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC"} \ No newline at end of file diff --git a/dist/features/full/components/Full.d.ts b/dist/features/full/components/Full.d.ts deleted file mode 100644 index 15e8bc3a8..000000000 --- a/dist/features/full/components/Full.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BotProps } from '@/components/Bot'; -import { BubbleParams } from '@/features/bubble/types'; -export type FullProps = BotProps & BubbleParams; -export declare const Full: (props: FullProps, { element }: { - element: HTMLElement; -}) => import("solid-js").JSX.Element; -//# sourceMappingURL=Full.d.ts.map \ No newline at end of file diff --git a/dist/features/full/components/Full.d.ts.map b/dist/features/full/components/Full.d.ts.map deleted file mode 100644 index 2eb8f121d..000000000 --- a/dist/features/full/components/Full.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Full.d.ts","sourceRoot":"","sources":["../../../../src/features/full/components/Full.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAOvD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,YAAY,CAAC;AAEhD,eAAO,MAAM,IAAI,UAAW,SAAS;aAA0B,WAAW;oCAoGzE,CAAC"} \ No newline at end of file diff --git a/dist/features/full/components/index.d.ts b/dist/features/full/components/index.d.ts deleted file mode 100644 index f0f3bb3d4..000000000 --- a/dist/features/full/components/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './Full'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/features/full/components/index.d.ts.map b/dist/features/full/components/index.d.ts.map deleted file mode 100644 index 9f4f806a9..000000000 --- a/dist/features/full/components/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/full/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"} \ No newline at end of file diff --git a/dist/features/full/index.d.ts b/dist/features/full/index.d.ts deleted file mode 100644 index 08ff52039..000000000 --- a/dist/features/full/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './components'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/features/full/index.d.ts.map b/dist/features/full/index.d.ts.map deleted file mode 100644 index d179cfbd6..000000000 --- a/dist/features/full/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/full/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/dist/features/popup/components/DisclaimerPopup.d.ts b/dist/features/popup/components/DisclaimerPopup.d.ts deleted file mode 100644 index f45ee8386..000000000 --- a/dist/features/popup/components/DisclaimerPopup.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export type DisclaimerPopupProps = { - isOpen?: boolean; - isFullPage?: boolean; - onAccept?: () => void; - onDeny?: () => void; - title?: string; - message?: string; - buttonText?: string; - denyButtonText?: string; - blurredBackgroundColor?: string; - backgroundColor?: string; - buttonColor?: string; - textColor?: string; - buttonTextColor?: string; - denyButtonBgColor?: string; -}; -export declare const DisclaimerPopup: (props: DisclaimerPopupProps) => import("solid-js").JSX.Element; -//# sourceMappingURL=DisclaimerPopup.d.ts.map \ No newline at end of file diff --git a/dist/features/popup/components/DisclaimerPopup.d.ts.map b/dist/features/popup/components/DisclaimerPopup.d.ts.map deleted file mode 100644 index a892e9580..000000000 --- a/dist/features/popup/components/DisclaimerPopup.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"DisclaimerPopup.d.ts","sourceRoot":"","sources":["../../../../src/features/popup/components/DisclaimerPopup.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,oBAAoB,mCAuE1D,CAAC"} \ No newline at end of file diff --git a/dist/features/popup/components/Popup.d.ts b/dist/features/popup/components/Popup.d.ts deleted file mode 100644 index d4bd089d5..000000000 --- a/dist/features/popup/components/Popup.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export type PopupProps = { - value?: any; - isOpen?: boolean; - onOpen?: () => void; - onClose?: () => void; -}; -export declare const Popup: (props: PopupProps) => import("solid-js").JSX.Element; -//# sourceMappingURL=Popup.d.ts.map \ No newline at end of file diff --git a/dist/features/popup/components/Popup.d.ts.map b/dist/features/popup/components/Popup.d.ts.map deleted file mode 100644 index 6829eeab6..000000000 --- a/dist/features/popup/components/Popup.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../../src/features/popup/components/Popup.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AA4BF,eAAO,MAAM,KAAK,UAAW,UAAU,mCAsEtC,CAAC"} \ No newline at end of file diff --git a/dist/features/popup/components/index.d.ts b/dist/features/popup/components/index.d.ts deleted file mode 100644 index 2c0bbd8ea..000000000 --- a/dist/features/popup/components/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './Popup'; -export * from './DisclaimerPopup'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/features/popup/components/index.d.ts.map b/dist/features/popup/components/index.d.ts.map deleted file mode 100644 index 194701920..000000000 --- a/dist/features/popup/components/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/popup/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC"} \ No newline at end of file diff --git a/dist/features/popup/index.d.ts b/dist/features/popup/index.d.ts deleted file mode 100644 index 08ff52039..000000000 --- a/dist/features/popup/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './components'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/features/popup/index.d.ts.map b/dist/features/popup/index.d.ts.map deleted file mode 100644 index c82975151..000000000 --- a/dist/features/popup/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/popup/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/dist/features/popup/types.d.ts b/dist/features/popup/types.d.ts deleted file mode 100644 index e5c11b4e6..000000000 --- a/dist/features/popup/types.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export type PopupParams = { - autoShowDelay?: number; - theme?: { - width?: string; - backgroundColor?: string; - }; -}; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/dist/features/popup/types.d.ts.map b/dist/features/popup/types.d.ts.map deleted file mode 100644 index 01efe0774..000000000 --- a/dist/features/popup/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/popup/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE;QACN,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;CACH,CAAC"} \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts deleted file mode 100644 index 45095bbcb..000000000 --- a/dist/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export type { BotProps } from './components/Bot'; -export type { BubbleProps } from './features/bubble/components/Bubble'; -export type { FullProps } from './features/full/components/Full'; -export type { BubbleTheme } from './features/bubble/types'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map deleted file mode 100644 index ab02e6391..000000000 --- a/dist/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,YAAY,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,YAAY,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,YAAY,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC"} \ No newline at end of file diff --git a/dist/queries/sendMessageQuery.d.ts b/dist/queries/sendMessageQuery.d.ts deleted file mode 100644 index d9dbc455d..000000000 --- a/dist/queries/sendMessageQuery.d.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { FileUpload, IAction } from '@/components/Bot'; -export type IncomingInput = { - question?: string; - form?: Record; - uploads?: FileUpload[]; - overrideConfig?: Record; - socketIOClientId?: string; - chatId?: string; - fileName?: string; - leadEmail?: string; - action?: IAction; - humanInput?: Record; -}; -type BaseRequest = { - apiHost?: string; - onRequest?: (request: RequestInit) => Promise; -}; -export type MessageRequest = BaseRequest & { - chatflowid?: string; - body?: IncomingInput; -}; -export type FeedbackRatingType = 'THUMBS_UP' | 'THUMBS_DOWN'; -export type FeedbackInput = { - chatId: string; - messageId: string; - rating: FeedbackRatingType; - content?: string; -}; -export type CreateFeedbackRequest = BaseRequest & { - chatflowid?: string; - body?: FeedbackInput; -}; -export type UpdateFeedbackRequest = BaseRequest & { - id: string; - body?: Partial; -}; -export type UpsertRequest = BaseRequest & { - chatflowid: string; - apiHost?: string; - formData: FormData; -}; -export type LeadCaptureInput = { - chatflowid: string; - chatId: string; - name?: string; - email?: string; - phone?: string; -}; -export type LeadCaptureRequest = BaseRequest & { - body: Partial; -}; -export type GenerateTTSRequest = BaseRequest & { - body: { - chatId: string; - chatflowId: string; - chatMessageId: string; - text: string; - }; - signal?: AbortSignal; -}; -export type AbortTTSRequest = BaseRequest & { - body: { - chatflowId: string; - chatId: string; - chatMessageId: string; - }; -}; -export declare const sendFeedbackQuery: ({ chatflowid, apiHost, body, onRequest }: CreateFeedbackRequest) => Promise<{ - data?: unknown; - error?: Error | undefined; -}>; -export declare const updateFeedbackQuery: ({ id, apiHost, body, onRequest }: UpdateFeedbackRequest) => Promise<{ - data?: unknown; - error?: Error | undefined; -}>; -export declare const sendMessageQuery: ({ chatflowid, apiHost, body, onRequest }: MessageRequest) => Promise<{ - data?: any; - error?: Error | undefined; -}>; -export declare const createAttachmentWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{ - data?: unknown; - error?: Error | undefined; -}>; -export declare const upsertVectorStoreWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{ - data?: unknown; - error?: Error | undefined; -}>; -export declare const getChatbotConfig: ({ chatflowid, apiHost, onRequest }: MessageRequest) => Promise<{ - data?: any; - error?: Error | undefined; -}>; -export declare const isStreamAvailableQuery: ({ chatflowid, apiHost, onRequest }: MessageRequest) => Promise<{ - data?: any; - error?: Error | undefined; -}>; -export declare const sendFileDownloadQuery: ({ apiHost, body, onRequest }: MessageRequest) => Promise<{ - data?: any; - error?: Error | undefined; -}>; -export declare const addLeadQuery: ({ apiHost, body, onRequest }: LeadCaptureRequest) => Promise<{ - data?: any; - error?: Error | undefined; -}>; -export declare const generateTTSQuery: ({ apiHost, body, onRequest, signal }: GenerateTTSRequest) => Promise; -export declare const abortTTSQuery: ({ apiHost, body, onRequest }: AbortTTSRequest) => Promise<{ - data?: any; - error?: Error | undefined; -}>; -export type AbortMessageRequest = BaseRequest & { - chatflowid: string; - chatId: string; -}; -export declare const abortMessageQuery: ({ chatflowid, apiHost, chatId, onRequest }: AbortMessageRequest) => Promise<{ - data?: any; - error?: Error | undefined; -}>; -export {}; -//# sourceMappingURL=sendMessageQuery.d.ts.map \ No newline at end of file diff --git a/dist/queries/sendMessageQuery.d.ts.map b/dist/queries/sendMessageQuery.d.ts.map deleted file mode 100644 index 7b6e67e1f..000000000 --- a/dist/queries/sendMessageQuery.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sendMessageQuery.d.ts","sourceRoot":"","sources":["../../src/queries/sendMessageQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGvD,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,aAAa,CAAC;AAE7D,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG;IAC7C,IAAI,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG;IAC7C,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;QACnB,aAAa,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG;IAC1C,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,iBAAiB,6CAAwE,qBAAqB;;;EAMvH,CAAC;AAEL,eAAO,MAAM,mBAAmB,qCAAgE,qBAAqB;;;EAMjH,CAAC;AAEL,eAAO,MAAM,gBAAgB,6CAAwE,cAAc;;;EAM/G,CAAC;AAEL,eAAO,MAAM,4BAA4B,iDAA4E,aAAa;;;EAS9H,CAAC;AAEL,eAAO,MAAM,6BAA6B,iDAA4E,aAAa;;;EAS/H,CAAC;AAEL,eAAO,MAAM,gBAAgB,uCAAkE,cAAc;;;EAKzG,CAAC;AAEL,eAAO,MAAM,sBAAsB,uCAAkE,cAAc;;;EAK/G,CAAC;AAEL,eAAO,MAAM,qBAAqB,iCAA4D,cAAc;;;EAOxG,CAAC;AAEL,eAAO,MAAM,YAAY,iCAA4D,kBAAkB;;;EAMnG,CAAC;AAEL,eAAO,MAAM,gBAAgB,yCAA0E,kBAAkB,KAAG,QAAQ,QAAQ,CAkB3I,CAAC;AAEF,eAAO,MAAM,aAAa,iCAA4D,eAAe;;;EAMjG,CAAC;AAEL,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,iBAAiB,+CAA0E,mBAAmB;;;EAKvH,CAAC"} \ No newline at end of file diff --git a/dist/register.d.ts b/dist/register.d.ts deleted file mode 100644 index 32afa59c4..000000000 --- a/dist/register.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const registerWebComponents: () => void; -//# sourceMappingURL=register.d.ts.map \ No newline at end of file diff --git a/dist/register.d.ts.map b/dist/register.d.ts.map deleted file mode 100644 index 8ab09e7d1..000000000 --- a/dist/register.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../src/register.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB,YAKjC,CAAC"} \ No newline at end of file diff --git a/dist/types.d.ts b/dist/types.d.ts deleted file mode 100644 index 2324761ce..000000000 --- a/dist/types.d.ts +++ /dev/null @@ -1 +0,0 @@ -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/dist/types.d.ts.map b/dist/types.d.ts.map deleted file mode 100644 index 4d581892d..000000000 --- a/dist/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/utils/audioRecording.d.ts b/dist/utils/audioRecording.d.ts deleted file mode 100644 index 724bc7458..000000000 --- a/dist/utils/audioRecording.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -export declare function getElaspedTime(): string; -/** Starts the audio recording*/ -export declare function startAudioRecording(onRecordingStart: (value: boolean) => void, onUnsupportedBrowser: (value: boolean) => void, setElapsedTime: (value: string) => void): void; -/** Stop the currently started audio recording & sends it - */ -export declare function stopAudioRecording(addRecordingToPreviews: null | ((blob: Blob) => void)): void; -/** Cancel the currently started audio recording */ -export declare function cancelAudioRecording(): void; -type AudioRecorder = { - audioBlobs: Blob[]; - mediaRecorder: MediaRecorder | null; - streamBeingCaptured: MediaStream | null; - start: () => Promise; - stop: () => Promise; - cancel: () => void; - stopStream: () => void; - resetRecordingProperties: () => void; -}; -export declare const audioRecorder: AudioRecorder; -export {}; -//# sourceMappingURL=audioRecording.d.ts.map \ No newline at end of file diff --git a/dist/utils/audioRecording.d.ts.map b/dist/utils/audioRecording.d.ts.map deleted file mode 100644 index 25e8f1b82..000000000 --- a/dist/utils/audioRecording.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"audioRecording.d.ts","sourceRoot":"","sources":["../../src/utils/audioRecording.ts"],"names":[],"mappings":"AAmBA,wBAAgB,cAAc,WAE7B;AAED,gCAAgC;AAChC,wBAAgB,mBAAmB,CACjC,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,EAC1C,oBAAoB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,EAC9C,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,QAkExC;AACD;GACG;AACH,wBAAgB,kBAAkB,CAAC,sBAAsB,EAAE,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC,QAuBvF;AAED,mDAAmD;AACnD,wBAAgB,oBAAoB,SAMnC;AA8FD,KAAK,aAAa,GAAG;IACnB,UAAU,EAAE,IAAI,EAAE,CAAC;IACnB,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,mBAAmB,EAAE,WAAW,GAAG,IAAI,CAAC;IACxC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,IAAI,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,wBAAwB,EAAE,MAAM,IAAI,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,aA6G3B,CAAC"} \ No newline at end of file diff --git a/dist/utils/chatInputHistory.d.ts b/dist/utils/chatInputHistory.d.ts deleted file mode 100644 index 329783bff..000000000 --- a/dist/utils/chatInputHistory.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -type ChatHistoryStorage = { - getItem(key: string): string | null; - setItem(key: string, value: string): void; -}; -export declare class ChatInputHistory { - private getMaxHistory; - private storage; - private history; - private currentIndex; - private tempInput; - private maxHistory; - constructor(getMaxHistory?: () => number, storage?: ChatHistoryStorage); - getHistory(): string[]; - getCurrentIndex(): number; - addToHistory(input: string): void; - getPreviousInput(currentInput: string): string; - getNextInput(): string; - private saveHistory; - private loadHistory; -} -export {}; -//# sourceMappingURL=chatInputHistory.d.ts.map \ No newline at end of file diff --git a/dist/utils/chatInputHistory.d.ts.map b/dist/utils/chatInputHistory.d.ts.map deleted file mode 100644 index fcfce36ff..000000000 --- a/dist/utils/chatInputHistory.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chatInputHistory.d.ts","sourceRoot":"","sources":["../../src/utils/chatInputHistory.ts"],"names":[],"mappings":"AACA,KAAK,kBAAkB,GAAG;IACxB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3C,CAAC;AAEF,qBAAa,gBAAgB;IAOzB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,OAAO;IAPjB,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,YAAY,CAAM;IAC1B,OAAO,CAAC,SAAS,CAAM;IACvB,OAAO,CAAC,UAAU,CAAS;gBAGjB,aAAa,GAAE,MAAM,MAAiB,EACtC,OAAO,GAAE,kBAAiC;IAMpD,UAAU,IAAI,MAAM,EAAE;IAItB,eAAe,IAAI,MAAM;IAIzB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAejC,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAY9C,YAAY,IAAI,MAAM;IAWtB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,WAAW;CAWpB"} \ No newline at end of file diff --git a/dist/utils/index.d.ts b/dist/utils/index.d.ts deleted file mode 100644 index f32e7650d..000000000 --- a/dist/utils/index.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -export declare const isNotDefined: (value: T | null | undefined) => value is null | undefined; -export declare const isDefined: (value: T | null | undefined) => value is NonNullable; -export declare const isEmpty: (value: string | undefined | null) => value is undefined; -export declare const isNotEmpty: (value: string | undefined | null) => value is string; -export declare const sendRequest: (params: string | { - url: string; - method: string; - body?: Record | FormData | undefined; - type?: string | undefined; - headers?: Record | undefined; - formData?: FormData | undefined; - onRequest?: ((request: RequestInit) => Promise) | undefined; - signal?: AbortSignal | undefined; -}) => Promise<{ - data?: ResponseData | undefined; - error?: Error | undefined; -}>; -export declare const setLocalStorageChatflow: (chatflowid: string, chatId: string, saveObj?: Record) => void; -export declare const getLocalStorageChatflow: (chatflowid: string) => any; -export declare const removeLocalStorageChatHistory: (chatflowid: string) => void; -export declare const getBubbleButtonSize: (size: 'small' | 'medium' | 'large' | number | undefined) => number; -export declare const setCookie: (cname: string, cvalue: string, exdays: number) => void; -export declare const getCookie: (cname: string) => string; -export declare const resolveDialogContainer: (raw: unknown) => HTMLElement | undefined; -export declare const getRecordingExtensionForMime: (mime: string) => string; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/utils/index.d.ts.map b/dist/utils/index.d.ts.map deleted file mode 100644 index a4e9bd113..000000000 --- a/dist/utils/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,+DAAuG,CAAC;AAEjI,eAAO,MAAM,SAAS,6DAAqG,CAAC;AAE5H,eAAO,MAAM,OAAO,UAAW,MAAM,GAAG,SAAS,GAAG,IAAI,uBAA8E,CAAC;AAEvI,eAAO,MAAM,UAAU,UAAW,MAAM,GAAG,SAAS,GAAG,IAAI,oBAA2E,CAAC;AAEvI,eAAO,MAAM,WAAW;SAGX,MAAM;YACH,MAAM;;;;;2BAKQ,WAAW,KAAK,QAAQ,IAAI,CAAC;;;;;EAyD1D,CAAC;AAEF,eAAO,MAAM,uBAAuB,eAAgB,MAAM,UAAU,MAAM,YAAW,OAAO,MAAM,EAAE,GAAG,CAAC,SAiBvG,CAAC;AAEF,eAAO,MAAM,uBAAuB,eAAgB,MAAM,QAQzD,CAAC;AAEF,eAAO,MAAM,6BAA6B,eAAgB,MAAM,SAgB/D,CAAC;AAEF,eAAO,MAAM,mBAAmB,SAAU,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,WAO1F,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,MAAM,UAAU,MAAM,UAAU,MAAM,SAKtE,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,MAczC,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAAS,OAAO,KAAG,WAAW,GAAG,SAenE,CAAC;AAEF,eAAO,MAAM,4BAA4B,SAAU,MAAM,WAiBxD,CAAC"} \ No newline at end of file diff --git a/dist/utils/isMobileSignal.d.ts b/dist/utils/isMobileSignal.d.ts deleted file mode 100644 index aba2ca565..000000000 --- a/dist/utils/isMobileSignal.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const isMobile: import("solid-js").Accessor, setIsMobile: import("solid-js").Setter; -//# sourceMappingURL=isMobileSignal.d.ts.map \ No newline at end of file diff --git a/dist/utils/isMobileSignal.d.ts.map b/dist/utils/isMobileSignal.d.ts.map deleted file mode 100644 index eb9ec8d9a..000000000 --- a/dist/utils/isMobileSignal.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isMobileSignal.d.ts","sourceRoot":"","sources":["../../src/utils/isMobileSignal.ts"],"names":[],"mappings":"AAMA,eAAO,MAAO,QAAQ,wCAAE,WAAW,oCAAqF,CAAC"} \ No newline at end of file diff --git a/dist/web.d.ts b/dist/web.d.ts deleted file mode 100644 index e8378890d..000000000 --- a/dist/web.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -declare const chatbot: { - initFull: (props: { - chatflowid: string; - apiHost?: string | undefined; - pageTitle?: string | undefined; - onRequest?: ((request: RequestInit) => Promise) | undefined; - chatflowConfig?: Record | undefined; - observersConfig?: import("./components/Bot").observersConfigType | undefined; - theme?: import(".").BubbleTheme | undefined; - dialogContainer?: string | HTMLElement | undefined; - } & { - id?: string | undefined; - }) => void; - init: (props: { - chatflowid: string; - apiHost?: string | undefined; - pageTitle?: string | undefined; - onRequest?: ((request: RequestInit) => Promise) | undefined; - chatflowConfig?: Record | undefined; - observersConfig?: import("./components/Bot").observersConfigType | undefined; - theme?: import(".").BubbleTheme | undefined; - dialogContainer?: string | HTMLElement | undefined; - }) => void; - destroy: () => void; - clearChat: (id?: string | undefined) => void; -}; -export default chatbot; -//# sourceMappingURL=web.d.ts.map \ No newline at end of file diff --git a/dist/web.d.ts.map b/dist/web.d.ts.map deleted file mode 100644 index df22c8ad9..000000000 --- a/dist/web.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAC;AAI/B,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/web.js b/dist/web.js deleted file mode 100644 index 9e1b13188..000000000 --- a/dist/web.js +++ /dev/null @@ -1 +0,0 @@ -function e(e){return Object.keys(e).reduce(((r,o)=>{var a=e[o];return r[o]=Object.assign({},a),!t(a.value)||function(e){return"[object Function]"===Object.prototype.toString.call(e)}(a.value)||Array.isArray(a.value)||(r[o].value=Object.assign({},a.value)),Array.isArray(a.value)&&(r[o].value=a.value.slice(0)),r}),{})}function r(e){if(e)try{return JSON.parse(e)}catch(r){return e}}function o(e,r,o){if(null==o||!1===o)return e.removeAttribute(r);let t=JSON.stringify(o);e.__updating[r]=!0,"true"===t&&(t=""),e.setAttribute(r,t),Promise.resolve().then((()=>delete e.__updating[r]))}function t(e){return null!=e&&("object"==typeof e||"function"==typeof e)}let a;function l(t,l){const n=Object.keys(l);return class extends t{static get observedAttributes(){return n.map((e=>l[e].attribute))}constructor(){super(),this.__initialized=!1,this.__released=!1,this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props={}}connectedCallback(){if(!this.__initialized){this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props=function(t,a){const l=e(a);return Object.keys(a).forEach((e=>{const a=l[e],n=t.getAttribute(a.attribute),i=t[e];n&&(a.value=a.parse?r(n):n),null!=i&&(a.value=Array.isArray(i)?i.slice(0):i),a.reflect&&o(t,a.attribute,a.value),Object.defineProperty(t,e,{get:()=>a.value,set(r){var t=a.value;a.value=r,a.reflect&&o(this,a.attribute,a.value);for(let o=0,a=this.__propertyChangedCallbacks.length;o(r[o]=e[o].value,r)),{})}(this.props),n=this.Component,i=a;try{(a=this).__initialized=!0,function(e){return"function"==typeof e&&0===e.toString().indexOf("class")}(n)?new n(t,{element:this}):n(t,{element:this})}finally{a=i}}}async disconnectedCallback(){if(await Promise.resolve(),!this.isConnected){this.__propertyChangedCallbacks.length=0;for(var e=null;e=this.__releaseCallbacks.pop();)e(this);delete this.__initialized,this.__released=!0}}attributeChangedCallback(e,o,t){!this.__initialized||this.__updating[e]||(e=this.lookupProp(e))in l&&(null==t&&!this[e]||(this[e]=l[e].parse?r(t):t))}lookupProp(e){if(l)return n.find((r=>e===r||e===l[r].attribute))}get renderRoot(){return this.shadowRoot||this.attachShadow({mode:"open"})}addReleaseCallback(e){this.__releaseCallbacks.push(e)}addPropertyChangedCallback(e){this.__propertyChangedCallbacks.push(e)}}}function n(e,r={},o={}){const{BaseElement:a=HTMLElement,extension:n}=o;return o=>{if(!e)throw new Error("tag is required to register a Component");let i=customElements.get(e);return i?i.prototype.Component=o:((i=l(a,function(e){return e?Object.keys(e).reduce(((r,o)=>{var a=e[o];return r[o]=t(a)&&"value"in a?a:{value:a},r[o].attribute||(r[o].attribute=function(e){return e.replace(/\.?([A-Z]+)/g,((e,r)=>"-"+r.toLowerCase())).replace("_","-").replace(/^-/,"")}(o)),r[o].parse="parse"in r[o]?r[o].parse:"string"!=typeof r[o].value,r}),{}):{}}(r))).prototype.Component=o,i.prototype.registeredTag=e,customElements.define(e,i,n)),i}}const i=Symbol("solid-proxy"),d=Symbol("solid-track"),s=Symbol("solid-dev-component"),m={equals:(e,r)=>e===r};let g=D;const c=1,u=2,x={owned:null,cleanups:null,context:null,owner:null};var p=null;let h=null,v=null,S=null,b=null,y=0;function f(e,r){const o=v,t=p,a=0===e.length,l=a?x:{owned:null,cleanups:null,context:null,owner:void 0===r?t:r},n=a?e:()=>e((()=>T((()=>H(l)))));p=l,v=null;try{return k(n,!0)}finally{v=o,p=t}}function $(e,r){const o={value:e,observers:null,observerSlots:null,comparator:(r=r?Object.assign({},m,r):m).equals||void 0};return[E.bind(o),e=>("function"==typeof e&&(e=e(o.value)),B(o,e))]}function P(e,r,o){N(O(e,r,!1,c))}function A(e,r,o){g=R,(e=O(e,r,!1,c)).user=!0,b?b.push(e):N(e)}function M(e,r,o){return o=o?Object.assign({},m,o):m,(e=O(e,r,!0,0)).observers=null,e.observerSlots=null,e.comparator=o.equals||void 0,N(e),E.bind(e)}function T(e){if(null===v)return e();var r=v;v=null;try{return e()}finally{v=r}}function _(e){A((()=>T(e)))}function w(e){return null!==p&&(null===p.cleanups?p.cleanups=[e]:p.cleanups.push(e)),e}function L(){return v}function G(e){var r;return void 0!==(r=V(p,e.id))?r:e.defaultValue}function C(e){const r=M(e),o=M((()=>W(r())));return o.toArray=()=>{var e=o();return Array.isArray(e)?e:null!=e?[e]:[]},o}function E(){var e;return this.sources&&this.state&&(this.state===c?N(this):(e=S,S=null,k((()=>F(this)),!1),S=e)),v&&(e=this.observers?this.observers.length:0,v.sources?(v.sources.push(this),v.sourceSlots.push(e)):(v.sources=[this],v.sourceSlots=[e]),this.observers?(this.observers.push(v),this.observerSlots.push(v.sources.length-1)):(this.observers=[v],this.observerSlots=[v.sources.length-1])),this.value}function B(e,r,o){var t=e.value;return e.comparator&&e.comparator(t,r)||(e.value=r,e.observers&&e.observers.length&&k((()=>{for(let t=0;tF(e,o[0])),!1),S=r)}}}function k(e,r){if(S)return e();let o=!1;r||(S=[]),b?o=!0:b=[],y++;try{var t=e();return function(e){if(S&&(D(S),S=null),!e){const e=b;b=null,e.length&&k((()=>g(e)),!1)}}(o),t}catch(e){o||(b=null),S=null,U(e)}}function D(e){for(let r=0;ro=T((()=>(p.context={[e]:r.value},C((()=>r.children)))))),void 0),o}}const Z=Symbol("fallback");function z(e){for(let r=0;re(r||{})))}function Y(){return!0}const J={get:(e,r,o)=>r===i?o:e.get(r),has:(e,r)=>r===i||e.has(r),set:Y,deleteProperty:Y,getOwnPropertyDescriptor:(e,r)=>({configurable:!0,enumerable:!0,get:()=>e.get(r),set:Y,deleteProperty:Y}),ownKeys:e=>e.keys()};function j(e){return(e="function"==typeof e?e():e)||{}}function q(...e){let r=!1;for(let t=0;tnew Proxy({get:o=>r.includes(o)?e[o]:void 0,has:o=>r.includes(o)&&o in e,keys:()=>r.filter((r=>r in e))},J)))).push(new Proxy({get:r=>o.has(r)?void 0:e[r],has:r=>!o.has(r)&&r in e,keys:()=>Object.keys(e).filter((e=>!o.has(e)))},J)),t;const a=Object.getOwnPropertyDescriptors(e);return r.push(Object.keys(a).filter((e=>!o.has(e)))),r.map((r=>{var o={};for(let t=0;te[l],set:()=>!0,enumerable:!0})}return o}))}function re(e){var r="fallback"in e&&{fallback:()=>e.fallback};return M(function(e,r,o={}){let t=[],a=[],l=[],n=0,i=1z(l))),()=>{let s,m,g=e()||[];return g[d],T((()=>{let e,r,d,u,x,p,h,v,S,b=g.length;if(0===b)0!==n&&(z(l),l=[],t=[],a=[],n=0,i=i&&[]),o.fallback&&(t=[Z],a[0]=f((e=>(l[0]=e,o.fallback()))),n=1);else if(0===n){for(a=new Array(b),m=0;m=p&&v>=p&&t[h]===g[v];h--,v--)d[v]=a[h],u[v]=l[h],i&&(x[v]=i[h]);for(e=new Map,r=new Array(v+1),m=v;m>=p;m--)S=g[m],s=e.get(S),r[m]=void 0===s?-1:s,e.set(S,m);for(s=p;s<=h;s++)S=t[s],void 0!==(m=e.get(S))&&-1!==m?(d[m]=a[s],u[m]=l[s],i&&(x[m]=i[s]),m=r[m],e.set(S,m)):l[s]();for(m=p;me.each),e.children,r||void 0))}function oe(e){const r=e.keyed,o=M((()=>e.when),void 0,{equals:(e,o)=>r?e===o:!e==!o});return M((()=>{const t=o();if(t){const a=e.children;return"function"==typeof a&&0a(r?t:()=>{if(T(o))return e.when;throw(e=>`Stale read from <${e}>.`)("Show")}))):a}return e.fallback}),void 0,void 0)}const te=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),ae=new Set(["innerHTML","textContent","innerText","children"]),le=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),ne=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});const ie=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),de=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),se={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};const me="_$DX_DELEGATE";function ge(e,r,o){let t;const a=()=>{var r=document.createElement("template");return r.innerHTML=e,(o?r.content.firstChild:r.content).firstChild};return(r=r?()=>(t=t||a()).cloneNode(!0):()=>T((()=>document.importNode(t=t||a(),!0)))).cloneNode=r}function ce(e,r=window.document){var o=r[me]||(r[me]=new Set);for(let a=0,l=e.length;at.call(e,o[1],r))}else e.addEventListener(r,o)}function he(e,r,o){if(!r)return o?ue(e,"style"):r;var t=e.style;if("string"==typeof r)return t.cssText=r;let a,l;for(l in"string"==typeof o&&(t.cssText=o=void 0),r=r||{},o=o||{})null==r[l]&&t.removeProperty(l),delete o[l];for(l in r)(a=r[l])!==o[l]&&(t.setProperty(l,a),o[l]=a);return o}function ve(e,r={},o,t){const a={};return t||P((()=>a.children=Pe(e,r.children,a.children))),P((()=>r.ref&&r.ref(e))),P((()=>function(e,r,o,t,a={},l=!1){r=r||{};for(const t in a)t in r||"children"!==t&&(a[t]=fe(e,t,null,a[t],o,l));for(const i in r){var n;"children"===i?t||Pe(e,r.children):(n=r[i],a[i]=fe(e,i,n,a[i],o,l))}}(e,r,o,!0,a,!0))),a}function Se(e,r,o){return T((()=>e(r,o)))}function be(e,r,o,t){if(void 0!==o&&(t=t||[]),"function"!=typeof r)return Pe(e,r,t,o);P((t=>Pe(e,r(),t,o)),t)}function ye(e,r,o){var t=r.trim().split(/\s+/);for(let r=0,a=t.length;rr.toUpperCase()))}(r)]=o):(t=a&&-1o||document});o;){var t=o[r];if(t&&!o.disabled){var a=o[r+"Data"];if(void 0!==a?t.call(o,a,e):t.call(o,e),e.cancelBubble)return}o=o._$host||o.parentNode||o.host}}function Pe(e,r,o,t,a){for(;"function"==typeof o;)o=o();if(r!==o){var l=typeof r,n=void 0!==t;if(e=n&&o[0]&&o[0].parentNode||e,"string"==l||"number"==l)if("number"==l&&(r=r.toString()),n){let a=o[0];a&&3===a.nodeType?a.data=r:a=document.createTextNode(r),o=Te(e,o,t,a)}else o=""!==o&&"string"==typeof o?e.firstChild.data=r:e.textContent=r;else if(null==r||"boolean"==l)o=Te(e,o,t);else{if("function"==l)return P((()=>{let a=r();for(;"function"==typeof a;)a=a();o=Pe(e,a,o,t)})),()=>o;if(Array.isArray(r)){const i=[];if(l=o&&Array.isArray(o),Ae(i,r,o,a))return P((()=>o=Pe(e,i,o,t,!0))),()=>o;if(0===i.length){if(o=Te(e,o,t),n)return o}else l?0===o.length?Me(e,i,t):function(e,r,o){let t=o.length,a=r.length,l=t,n=0,i=0,d=r[a-1].nextSibling,s=null;for(;nc-i)for(var u=r[n];i{a=a||function(e,r){var o=p,t=v;p=e,v=null;try{return k(r,!0)}catch(e){U(e)}finally{p=o,v=t}}(t,(()=>e.children));const l=e.mount||document.body;if(l instanceof HTMLHeadElement){const[e,r]=$(!1);f((r=>be(l,(()=>e()?r():a),null))),w((()=>r(!0)))}else{const t=we(e.isSVG?"g":"div",e.isSVG),n=r&&t.attachShadow?t.attachShadow({mode:"open"}):t;Object.defineProperty(t,"_$host",{get:()=>o.parentNode,configurable:!0}),be(n,a),l.appendChild(t),e.ref&&e.ref(t),w((()=>l.removeChild(t)))}})),o}function Ge(e){const[r,o]=ee(e,["component"]),t=M((()=>r.component));return M((()=>{const e=t();switch(typeof e){case"function":return Object.assign(e,{[s]:!0}),T((()=>e(o)));case"string":var r=de.has(e),a=we(e,r);return ve(a,o,r),a}}))}function Ce(e){return(r,o)=>{const t=o.element;return f((a=>{const l=function(e){var r=Object.keys(e),o={};for(let t=0;te))}})}return o}(r);t.addPropertyChangedCallback(((e,r)=>l[e]=r)),t.addReleaseCallback((()=>{t.renderRoot.textContent="",a()}));var n=e(l,o);return be(t.renderRoot,n)}),function(e){if(e.assignedSlot&&e.assignedSlot._$owner)return e.assignedSlot._$owner;let r=e.parentNode;for(;r&&!r._$owner&&(!r.assignedSlot||!r.assignedSlot._$owner);)r=r.parentNode;return(r&&r.assignedSlot?r.assignedSlot:e)._$owner}(t))}}function Ee(e,r,o){return 2===arguments.length&&(o=r,r={}),n(e,r)(Ce(o))}const Be={chatflowid:"",apiHost:void 0,onRequest:void 0,chatflowConfig:void 0,theme:void 0,observersConfig:void 0,dialogContainer:void 0};var Ne='/*! tailwindcss v3.3.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em;margin-top:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-bottom:1.2em;margin-top:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-bottom:1.25em;margin-top:1.25em;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-bottom:1.25em;margin-top:1.25em;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-bottom:3em;margin-top:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){border-left-color:var(--tw-prose-quote-borders);border-left-width:.25rem;color:var(--tw-prose-quotes);font-style:italic;font-weight:500;margin-bottom:1.6em;margin-top:1.6em;padding-left:1em;quotes:"\\201C""\\201D""\\2018""\\2019"}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:2.25em;font-weight:800;line-height:1.1111111;margin-bottom:.8888889em;margin-top:0}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:1.5em;font-weight:700;line-height:1.3333333;margin-bottom:1em;margin-top:2em}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:1.25em;font-weight:600;line-height:1.6;margin-bottom:.6em;margin-top:1.6em}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;line-height:1.5;margin-bottom:.5em;margin-top:1.5em}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-bottom:2em;margin-top:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:.3125rem;box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows)/10%),0 3px 0 rgb(var(--tw-prose-kbd-shadows)/10%);color:var(--tw-prose-kbd);font-family:inherit;font-size:.875em;font-weight:500;padding:.1875em .375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--tw-prose-pre-bg);border-radius:.375rem;color:var(--tw-prose-pre-code);font-size:.875em;font-weight:400;line-height:1.7142857;margin-bottom:1.7142857em;margin-top:1.7142857em;overflow-x:auto;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em;line-height:1.7142857;margin-bottom:2em;margin-top:2em;table-layout:auto;text-align:left;width:100%}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-color:var(--tw-prose-th-borders);border-bottom-width:1px}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;padding-bottom:.5714286em;padding-left:.5714286em;padding-right:.5714286em;vertical-align:bottom}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-color:var(--tw-prose-td-borders);border-bottom-width:1px}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-color:var(--tw-prose-th-borders);border-top-width:1px}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-kbd:#111827;--tw-prose-kbd-shadows:17 24 39;--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:255 255 255;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:rgba(0,0,0,.5);--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.5em;margin-top:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.75em;margin-top:.75em}.prose :where(.prose>ul>li>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.75em;margin-top:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em;margin-top:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-left:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-\\[140px\\]{bottom:140px}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.right-\\[-8px\\]{right:-8px}.top-0{top:0}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-\\[1001\\]{z-index:1001}.z-\\[1002\\]{z-index:1002}.float-right{float:right}.m-0{margin:0}.m-\\[6px\\]{margin:6px}.m-auto{margin:auto}.mx-4{margin-left:16px;margin-right:16px}.my-2{margin-bottom:8px;margin-top:8px}.my-6{margin-bottom:24px;margin-top:24px}.-ml-1{margin-left:-4px}.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.ml-1{margin-left:4px}.ml-1\\.5{margin-left:6px}.ml-10{margin-left:40px}.ml-2{margin-left:8px}.ml-auto{margin-left:auto}.mr-1{margin-right:4px}.mr-2{margin-right:8px}.mr-3{margin-right:12px}.mr-\\[10px\\]{margin-right:10px}.mt-2{margin-top:8px}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-10{height:40px}.h-12{height:48px}.h-14{height:56px}.h-2{height:8px}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-\\[58px\\]{height:58px}.h-auto{height:auto}.h-full{height:100%}.max-h-\\[128px\\]{max-height:128px}.max-h-\\[192px\\]{max-height:192px}.min-h-0{min-height:0}.min-h-\\[56px\\]{min-height:56px}.min-h-full{min-height:100%}.w-10{width:40px}.w-12{width:48px}.w-2{width:8px}.w-4{width:16px}.w-5{width:20px}.w-6{width:24px}.w-64{width:256px}.w-7{width:28px}.w-8{width:32px}.w-\\[200px\\]{width:200px}.w-full{width:100%}.min-w-full{min-width:100%}.max-w-3xl{max-width:768px}.max-w-\\[128px\\]{max-width:128px}.max-w-full{max-width:100%}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-md{max-width:448px}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.basis-auto{flex-basis:auto}.border-collapse{border-collapse:collapse}.-translate-x-1\\/2{--tw-translate-x:-50%}.-rotate-180,.-translate-x-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-180{--tw-rotate:-180deg}.rotate-0{--tw-rotate:0deg}.rotate-0,.scale-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-100,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fade-in .3s ease-out}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-2{gap:8px}.gap-3{gap:12px}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(8px*(1 - var(--tw-space-x-reverse)));margin-right:calc(8px*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(16px*(1 - var(--tw-space-x-reverse)));margin-right:calc(16px*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(8px*var(--tw-space-y-reverse));margin-top:calc(8px*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(16px*var(--tw-space-y-reverse));margin-top:calc(16px*(1 - var(--tw-space-y-reverse)))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:4px}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[6px\\]{border-radius:6px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-md{border-radius:6px}.rounded-none{border-radius:0}.rounded-xl{border-radius:12px}.rounded-b{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.rounded-t{border-top-left-radius:4px;border-top-right-radius:4px}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-t-4{border-top-width:4px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-\\[\\#eeeeee\\]{--tw-border-opacity:1;border-color:rgb(238 238 238/var(--tw-border-opacity))}.border-current{border-color:currentColor}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-red-600{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity:1;border-color:rgb(253 224 71/var(--tw-border-opacity))}.border-t-transparent{border-top-color:transparent}.border-t-white{--tw-border-opacity:1;border-top-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-\\[rgba\\(0\\2c 0\\2c 0\\2c 0\\.3\\)\\]{background-color:rgba(0,0,0,.3)}.bg-\\[rgba\\(0\\2c 0\\2c 0\\2c 0\\.4\\)\\]{background-color:rgba(0,0,0,.4)}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\\/10{background-color:rgba(0,0,0,.1)}.bg-black\\/60{background-color:rgba(0,0,0,.6)}.bg-emerald-500{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-cover{background-size:cover}.bg-center{background-position:50%}.fill-transparent{fill:transparent}.stroke-2{stroke-width:2}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-1{padding:4px}.p-10{padding:40px}.p-2{padding:8px}.p-2\\.5{padding:10px}.p-3{padding:12px}.p-4{padding:16px}.p-5{padding:20px}.p-6{padding:24px}.px-1{padding-left:4px;padding-right:4px}.px-12{padding-left:48px;padding-right:48px}.px-2{padding-left:8px;padding-right:8px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-5{padding-left:20px;padding-right:20px}.px-6{padding-left:24px;padding-right:24px}.px-\\[10px\\]{padding-left:10px;padding-right:10px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.py-4{padding-bottom:16px;padding-top:16px}.py-8{padding-bottom:32px;padding-top:32px}.py-\\[10px\\]{padding-bottom:10px;padding-top:10px}.pb-1{padding-bottom:4px}.pb-2{padding-bottom:8px}.pb-\\[10px\\]{padding-bottom:10px}.pl-4{padding-left:16px}.pr-0{padding-right:0}.pr-3{padding-right:12px}.pt-2{padding-top:8px}.pt-4{padding-top:16px}.pt-\\[6px\\]{padding-top:6px}.pt-\\[70px\\]{padding-top:70px}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:24px;line-height:32px}.text-\\[13px\\]{font-size:13px}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.text-xl{font-size:20px;line-height:28px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-4{line-height:16px}.leading-none{line-height:1}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-inherit{color:inherit}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.blur-\\[2px\\]{--tw-blur:blur(2px)}.blur-\\[2px\\],.blur-none{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-none{--tw-blur:blur(0)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-transform{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}:host{--chatbot-container-bg-image:none;--chatbot-container-bg-color:transparent;--chatbot-container-font-family:"Open Sans";--chatbot-button-bg-color:#0042da;--chatbot-button-color:#fff;--chatbot-host-bubble-bg-color:#f7f8ff;--chatbot-host-bubble-color:#303235;--chatbot-guest-bubble-bg-color:#3b81f6;--chatbot-guest-bubble-color:#fff;--chatbot-input-bg-color:#fff;--chatbot-input-color:#303235;--chatbot-input-placeholder-color:#9095a0;--chatbot-header-bg-color:#fff;--chatbot-header-color:#303235;--chatbot-border-radius:6px;--PhoneInputCountryFlag-borderColor:transparent;--PhoneInput-color--focus:transparent}a{color:#16bed7;font-weight:500}a:hover{text-decoration:underline}pre{word-wrap:break-word;font-size:13px;margin:5px;overflow:auto;padding:5px;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;width:auto}.string{color:green}.number{color:#ff8c00}.boolean{color:blue}.null{color:#f0f}.key{color:#002b36}.scrollable-container{scrollbar-color:rgba(0,0,0,.2) transparent;scrollbar-width:thin}.scrollable-container::-webkit-scrollbar{width:4px}.scrollable-container::-webkit-scrollbar-track{background:transparent}.scrollable-container::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.2);border-radius:4px}.scrollable-container::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.35)}@media (hover:none) and (pointer:coarse){.scrollable-container{scrollbar-width:none}.scrollable-container::-webkit-scrollbar{display:none}}.text-fade-in{transition:opacity .4s ease-in .2s}.bubble-typing{transition:width .4s ease-out,height .4s ease-out}.bubble1,.bubble2,.bubble3{background-color:var(--chatbot-host-bubble-color);opacity:.5}.bubble1,.bubble2{animation:chatBubbles 1s ease-in-out infinite}.bubble2{animation-delay:.3s}.bubble3{animation:chatBubbles 1s ease-in-out infinite;animation-delay:.5s}@keyframes chatBubbles{0%{transform:translateY(0)}50%{transform:translateY(-5px)}to{transform:translateY(0)}}button,input,textarea{font-weight:300}.slate-a{text-decoration:underline}.slate-html-container>div{min-height:24px}.slate-bold{font-weight:700}.slate-italic{font-style:oblique}.slate-underline{text-decoration:underline}.text-input::-moz-placeholder{color:#9095a0!important;opacity:1!important}.text-input::placeholder{color:#9095a0!important;opacity:1!important}.chatbot-container{background-color:var(--chatbot-container-bg-color);background-image:var(--chatbot-container-bg-image);font-family:Open Sans,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}.file-annotation-button{background-color:#02a0a0c2;border:1px solid #02a0a0c2;border-radius:var(--chatbot-border-radius);color:var(--chatbot-button-color)}.chatbot-button{background-color:#0042da;border:1px solid #0042da;border-radius:var(--chatbot-border-radius);color:var(--chatbot-button-color)}.chatbot-button.selectable{border:1px solid #0042da}.chatbot-button.selectable,.chatbot-host-bubble{background-color:#f7f8ff;color:var(--chatbot-host-bubble-color)}.chatbot-host-bubble{word-wrap:break-word;overflow-wrap:break-word;white-space:normal;word-break:break-word}.bot-markdown-content :is(a,h1,h2,h3,h4,h5,h6,strong,em,blockquote,li){color:var(--bot-markdown-text-color,var(--chatbot-host-bubble-color))}.bot-markdown-content pre,.bot-markdown-content pre code{color:var(--bot-markdown-code-color,#fff)}.bot-markdown-content code:not(pre code){color:var(--bot-markdown-inline-code-color,#4caf50)}.chatbot-host-bubble>.bubble-typing{background-color:#f7f8ff;border:var(--chatbot-host-bubble-border);border-radius:6px}.chatbot-host-bubble iframe,.chatbot-host-bubble img,.chatbot-host-bubble video{border-radius:var(--chatbot-border-radius)}.chatbot-guest-bubble{word-wrap:break-word;background-color:#3b81f6;border-radius:6px;color:var(--chatbot-guest-bubble-color);overflow-wrap:break-word;white-space:normal;word-break:break-word}.chatbot-input,.feedback-input{background-color:#fff;border-radius:var(--chatbot-border-radius);box-shadow:0 2px 6px -1px rgba(0,0,0,.1);color:#303235}.chatbot-input-error-message{color:#303235}.chatbot-button>.send-icon{fill:var(--chatbot-button-color);stroke:var(--chatbot-button-color)}.regenerate-response-button>.icon-tabler-refresh{height:16px;width:16px}.chatbot-chat-view{max-width:800px}.ping span{background-color:#0042da}.rating-icon-container svg{stroke:#0042da;fill:#f7f8ff;height:42px;transition:fill .1s ease-out;width:42px}.rating-icon-container.selected svg{fill:#0042da}.rating-icon-container:hover svg{filter:brightness(.9)}.rating-icon-container:active svg{filter:brightness(.75)}.upload-progress-bar{background-color:#0042da;border-radius:var(--chatbot-border-radius)}.total-files-indicator{background-color:#0042da;color:var(--chatbot-button-color);font-size:10px}.chatbot-upload-input{transition:border-color .1s ease-out}.chatbot-upload-input.dragging-over{border-color:#0042da}.secondary-button{background-color:#f7f8ff;border-radius:var(--chatbot-border-radius);color:var(--chatbot-host-bubble-color)}.chatbot-country-select{color:#303235}.chatbot-country-select,.chatbot-date-input{background-color:#fff;border-radius:var(--chatbot-border-radius)}.chatbot-date-input{color:#303235;color-scheme:light}.chatbot-popup-blocked-toast{border-radius:var(--chatbot-border-radius)}.messagelist{border-radius:.5rem;height:100%;overflow-y:scroll;width:100%}.messagelistloading{display:flex;justify-content:center;margin-top:1rem;width:100%}.usermessage{padding:1rem 1.5rem}.usermessagewaiting-light{background:linear-gradient(270deg,#ede7f6,#e3f2fd,#ede7f6);background-position:-100% 0;background-size:200% 200%}.usermessagewaiting-dark,.usermessagewaiting-light{animation:loading-gradient 2s ease-in-out infinite;animation-direction:alternate;animation-name:loading-gradient;padding:1rem 1.5rem}.usermessagewaiting-dark{background:linear-gradient(270deg,#2e2352,#1d3d60,#2e2352);background-position:-100% 0;background-size:200% 200%;color:#ececf1}@keyframes loading-gradient{0%{background-position:-100% 0}to{background-position:100% 0}}.apimessage{animation:fadein .5s;padding:1rem 1.5rem}@keyframes fadein{0%{opacity:0}to{opacity:1}}.apimessage,.usermessage,.usermessagewaiting{display:flex}.markdownanswer{line-height:1.75}.markdownanswer a:hover{opacity:.8}.markdownanswer a{color:#16bed7;font-weight:500}.markdownanswer code{color:#15cb19;font-weight:500;white-space:pre-wrap!important}.markdownanswer ol,.markdownanswer ul{margin:1rem}.boticon,.usericon{border-radius:1rem;margin-right:1rem}.markdownanswer h1,.markdownanswer h2,.markdownanswer h3{font-size:inherit}.chatbot-host-bubble .prose,.chatbot-host-bubble.prose{font-size:inherit;line-height:1.55}.chatbot-host-bubble .prose h1,.chatbot-host-bubble.prose h1{font-size:1.25em;font-weight:700;line-height:1.3;margin-bottom:.3em;margin-top:.6em}.chatbot-host-bubble .prose h2,.chatbot-host-bubble.prose h2{font-size:1.125em;font-weight:600;line-height:1.35;margin-bottom:.25em;margin-top:.5em}.chatbot-host-bubble .prose h3,.chatbot-host-bubble.prose h3{font-size:1em;font-weight:600;line-height:1.4;margin-bottom:.2em;margin-top:.4em}:is(.chatbot-host-bubble.prose,.chatbot-host-bubble .prose) :is(h4,h5,h6){font-size:.95em;font-weight:600;line-height:1.4;margin-bottom:.15em;margin-top:.3em}.chatbot-host-bubble .prose p,.chatbot-host-bubble.prose p{margin-bottom:.35em;margin-top:.35em}.chatbot-host-bubble .prose ol,.chatbot-host-bubble .prose ul,.chatbot-host-bubble.prose ol,.chatbot-host-bubble.prose ul{margin-bottom:.25em;margin-top:.25em;padding-left:1.25em}.chatbot-host-bubble .prose li,.chatbot-host-bubble.prose li{margin-bottom:.1em;margin-top:.1em}.chatbot-host-bubble .prose blockquote,.chatbot-host-bubble.prose blockquote{border-left:3px solid;margin-bottom:.3em;margin-top:.3em;padding-left:.75em}.chatbot-host-bubble .prose pre,.chatbot-host-bubble.prose pre{word-wrap:break-word;font-size:.85em;margin-bottom:.4em;margin-top:.4em;overflow:auto;padding:5px;white-space:pre-wrap}.chatbot-host-bubble .prose hr,.chatbot-host-bubble.prose hr{margin-bottom:.5em;margin-top:.5em}.chatbot-host-bubble .prose table,.chatbot-host-bubble.prose table{font-size:.9em;margin-bottom:.3em;margin-top:.3em}.chatbot-host-bubble .prose>:first-child,.chatbot-host-bubble.prose>:first-child{margin-top:0}.chatbot-host-bubble .prose>:last-child,.chatbot-host-bubble.prose>:last-child{margin-bottom:0}.center{flex-direction:column;padding:10px;position:relative}.center,.cloud{align-items:center;display:flex;justify-content:center}.cloud{border-radius:.5rem;height:calc(100% - 50px);width:400px}input,textarea{background-color:transparent;border:none;font-family:Poppins,sans-serif;padding:10px}@media (max-width:640px){div[part=bot]{height:100%!important;left:0!important;max-height:unset!important;max-width:unset!important;overflow:auto;overflow-x:hidden;position:fixed!important;top:0!important;width:100%!important}.chatbot-container,.rounded-lg,div[class="flex flex-row items-center w-full h-[50px] absolute top-0 left-0 z-10"],div[part=button]{border-radius:0!important}button{cursor:default!important}}.tooltip{background:var(--tooltip-background-color,#000);border-radius:5px;color:var(--tooltip-text-color,#fff);font-size:var(--tooltip-font-size,12px);max-width:calc(100vw - 20px);padding:5px 10px;position:fixed;transition:opacity .3s ease-in-out;white-space:pre-wrap;word-break:break-word;z-index:42424242}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.spinner{animation:spin 1s linear infinite;border:4px solid hsla(0,0%,100%,.3);border-radius:50%;border-top-color:#fff;height:24px;width:24px}.hover\\:scale-110:hover{--tw-scale-x:1.1;--tw-scale-y:1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\\:bg-green-600:hover{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.hover\\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.hover\\:bg-transparent:hover{background-color:transparent}.hover\\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.hover\\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:brightness-90:hover{--tw-brightness:brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:border-blue-500:focus{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.active\\:scale-95:active{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:bg-emerald-600:active{--tw-bg-opacity:1;background-color:rgb(5 150 105/var(--tw-bg-opacity))}.active\\:brightness-75:active{--tw-brightness:brightness(.75);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:brightness-100:disabled{--tw-brightness:brightness(1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.group:hover .group-hover\\:flex{display:flex}@media (min-width:640px){.sm\\:right-5{right:20px}.sm\\:my-8{margin-bottom:32px;margin-top:32px}.sm\\:w-\\[400px\\]{width:400px}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:512px}.sm\\:p-0{padding:0}}';const Oe=e=>null==e,Ie=e=>null!=e,ke=async e=>{try{var r="string"==typeof e?e:e.url,o="string"!=typeof e&&Ie(e.body)?{"Content-Type":"application/json",...e.headers}:void 0;let n="string"!=typeof e&&Ie(e.body)?JSON.stringify(e.body):void 0;"string"!=typeof e&&e.formData&&(n=e.formData);var t={method:"string"==typeof e?"GET":e.method,mode:"cors",headers:o,body:n,signal:"string"!=typeof e?e.signal:void 0},a=("string"!=typeof e&&e.onRequest&&await e.onRequest(t),await fetch(r,t));let i;var l=a.headers.get("Content-Type");if(i=l&&l.includes("application/json")?await a.json():"string"!=typeof e&&"blob"===e.type?await a.blob():await a.text(),a.ok)return{data:i};{let e;throw e="object"==typeof i&&"error"in i?i.error:i||a.statusText}}catch(e){return console.error(e),{error:e}}},De=(e,r,o={})=>{var t=localStorage.getItem(e+"_EXTERNAL");o={...o};if(r&&(o.chatId=r),t)try{var a=JSON.parse(t);localStorage.setItem(e+"_EXTERNAL",JSON.stringify({...a,...o}))}catch(a){const r=t;o.chatId=r,localStorage.setItem(e+"_EXTERNAL",JSON.stringify(o))}else localStorage.setItem(e+"_EXTERNAL",JSON.stringify(o))},Re=e=>{if(!(e=localStorage.getItem(e+"_EXTERNAL")))return{};try{return JSON.parse(e)}catch(e){return{}}},Fe=e=>e?"number"==typeof e?e:"small"===e?32:"medium"!==e&&"large"===e?64:48:48,Xe=e=>{if("string"==typeof e)try{var r=document.querySelector(e);return null===r&&console.warn(`[Flowise] dialogContainer selector "${e}" did not match any element. Dialog will render inline.`),r??void 0}catch{return void console.warn(`[Flowise] Invalid dialogContainer selector: "${e}". Dialog will render inline.`)}if(e instanceof HTMLElement)return e},He=ge(''),Ue=ge('Bubble button icon'),Ve=ge('
');function Cn(e){return e?(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,(function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""})):""}const En=()=>ql(),Bn=()=>en(),Nn=()=>rn(),On=()=>on(),In=()=>tn(),kn=()=>an(),Dn=()=>ln(),Rn=e=>{{const r=nn();return P((o=>{var t=e.size,a=e.size;return t!==o._v$&&ue(r,"width",o._v$=t),a!==o._v$2&&ue(r,"height",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),r}},Fn=e=>{const r=e.size??24,o=Rl(e.name);if(o){const t=dn();return t.style.setProperty("flex-shrink","0"),t.style.setProperty("display","flex"),t.style.setProperty("align-items","center"),t.style.setProperty("justify-content","center"),r+"px"!=null?t.style.setProperty("width",r+"px"):t.style.removeProperty("width"),r+"px"!=null?t.style.setProperty("height",r+"px"):t.style.removeProperty("height"),be(t,(()=>o.icon({size:Math.round(.55*r),color:"white"}))),P((r=>{var a=e.borderRadius??"50%",l=e.bgColor??o.color;return a!==r._v$3&&(null!=(r._v$3=a)?t.style.setProperty("border-radius",a):t.style.removeProperty("border-radius")),l!==r._v$4&&(null!=(r._v$4=l)?t.style.setProperty("background",l):t.style.removeProperty("background")),r}),{_v$3:void 0,_v$4:void 0}),t}if(e.apiHost){const[o,t]=$(!1);{const a=dn();return a.style.setProperty("flex-shrink","0"),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","center"),r+"px"!=null?a.style.setProperty("width",r+"px"):a.style.removeProperty("width"),r+"px"!=null?a.style.setProperty("height",r+"px"):a.style.removeProperty("height"),a.style.setProperty("overflow","hidden"),be(a,Q(oe,{get when(){return!o()},get fallback(){return Q(Rn,{get size(){return Math.round(.6*r)}})},get children(){const r=sn();return r.addEventListener("error",(()=>t(!0))),r.style.setProperty("width","100%"),r.style.setProperty("height","100%"),r.style.setProperty("padding","3px"),r.style.setProperty("object-fit","contain"),P((o=>{var t=e.apiHost+"/api/v1/node-icon/"+e.name,a=e.name;return t!==o._v$5&&ue(r,"src",o._v$5=t),a!==o._v$6&&ue(r,"alt",o._v$6=a),o}),{_v$5:void 0,_v$6:void 0}),r}})),P((r=>{var t=e.borderRadius??"50%",l=e.bgColor??(o()?"#9e9e9e":"#f5f5f5");return t!==r._v$7&&(null!=(r._v$7=t)?a.style.setProperty("border-radius",t):a.style.removeProperty("border-radius")),l!==r._v$8&&(null!=(r._v$8=l)?a.style.setProperty("background",l):a.style.removeProperty("background")),r}),{_v$7:void 0,_v$8:void 0}),a}}{const o=dn();return o.style.setProperty("flex-shrink","0"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("justify-content","center"),r+"px"!=null?o.style.setProperty("width",r+"px"):o.style.removeProperty("width"),r+"px"!=null?o.style.setProperty("height",r+"px"):o.style.removeProperty("height"),o.style.setProperty("background","#9e9e9e"),be(o,Q(Rn,{get size(){return Math.round(.6*r)}})),P((()=>null!=(e.borderRadius??"50%")?o.style.setProperty("border-radius",e.borderRadius??"50%"):o.style.removeProperty("border-radius"))),o}},Xn=(e,r)=>Array.isArray(r)&&(r=r.find((r=>r.name===e)),r?.toolNode?.name)?r.toolNode.name:e,Hn=e=>{const[r,o]=$(e.defaultOpen??!1),t=()=>o(!r());{const o=mn(),a=o.firstChild,l=a.firstChild,n=l.nextSibling;return o.style.setProperty("border-radius","8px"),o.style.setProperty("margin-bottom","6px"),o.style.setProperty("overflow","hidden"),a.$$click=t,a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("width","100%"),a.style.setProperty("padding","10px 12px"),a.style.setProperty("cursor","pointer"),a.style.setProperty("user-select","none"),a.style.setProperty("gap","8px"),a.style.setProperty("font-size","0.85rem"),a.style.setProperty("font-family","inherit"),a.style.setProperty("color","inherit"),a.style.setProperty("text-align","left"),a.style.setProperty("border","none"),a.style.setProperty("background","transparent"),l.style.setProperty("flex","1"),l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("gap","8px"),l.style.setProperty("text-align","left"),be(l,(()=>e.header)),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("justify-content","center"),n.style.setProperty("flex-shrink","0"),n.style.setProperty("transition","transform 0.2s ease"),n.style.setProperty("opacity","0.5"),be(n,Q(Bn,{})),be(o,Q(oe,{get when(){return r()},get children(){var r=dn();return r.style.setProperty("padding","10px 12px"),r.style.setProperty("border-top","1px solid rgba(0,0,0,0.08)"),r.style.setProperty("background","rgba(0,0,0,0.02)"),be(r,(()=>e.children)),r}}),null),P((t=>{var l="1px solid "+(e.borderColor||"rgba(0,0,0,0.1)"),i=e.bgColor||"transparent",d=r(),s=r()?"rotate(180deg)":"rotate(0deg)";return l!==t._v$9&&(null!=(t._v$9=l)?o.style.setProperty("border",l):o.style.removeProperty("border")),i!==t._v$10&&(null!=(t._v$10=i)?o.style.setProperty("background",i):o.style.removeProperty("background")),d!==t._v$11&&ue(a,"aria-expanded",t._v$11=d),s!==t._v$12&&(null!=(t._v$12=s)?n.style.setProperty("transform",s):n.style.removeProperty("transform")),t}),{_v$9:void 0,_v$10:void 0,_v$11:void 0,_v$12:void 0}),o}},Un={"font-family":"'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace","font-size":"0.75rem","line-height":"1.5",padding:"12px","border-radius":"6px",background:"rgba(0,0,0,0.04)","overflow-x":"auto","white-space":"pre-wrap","word-break":"break-word",margin:"0"},Vn=e=>{{const r=gn();return he(r,Un),P((()=>r.innerHTML=Cn(JSON.stringify(e.data,null,2)))),r}},Wn=e=>{Wo.setOptions({isNoP:!0,sanitize:!0});const r=()=>{if(!e.content)return null;try{return JSON.parse(e.content)}catch{return null}};return Q(oe,{get when(){return r()},get fallback(){return Q(oe,{get when(){return e.content},get fallback(){return(e=un()).style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e;var e},get children(){const r=cn();return r.style.setProperty("word-break","break-word"),r.style.setProperty("font-size","0.85rem"),r.style.setProperty("line-height","1.6"),P((()=>r.innerHTML=Wo.parse(e.content))),r}})},get children(){return Q(Vn,{get data(){return r()}})}})},Kn=e=>{var r=e.artifact?.type;const o=e.artifact?.data,t={border:"1px solid rgba(0,0,0,0.12)","border-radius":"6px",overflow:"hidden",background:"rgba(0,0,0,0.02)"};if("png"===r||"jpeg"===r||"jpg"===r){const r=((e,r,o,t)=>e.startsWith("FILE-STORAGE::")&&r?r+`/api/v1/get-upload-file?chatflowId=${o}&chatId=${t}&fileName=`+e.replace("FILE-STORAGE::",""):e)(o,e.apiHost,e.chatflowid,e.chatId);{const o=xn(),a=o.firstChild;return ue(a,"src",r),a.style.setProperty("max-height","400px"),a.style.setProperty("max-width","100%"),a.style.setProperty("object-fit","contain"),a.style.setProperty("display","block"),P((r=>{var l={...t,display:"flex","justify-content":"center"},n="artifact-"+e.index;return r._v$13=he(o,l,r._v$13),n!==r._v$14&&ue(a,"alt",r._v$14=n),r}),{_v$13:void 0,_v$14:void 0}),o}}if("html"===r){const e=dn();return P((r=>{var a={...t,padding:"8px 12px","font-size":"0.85rem"},l=aa.sanitize(o);return r._v$15=he(e,a,r._v$15),l!==r._v$16&&(e.innerHTML=r._v$16=l),r}),{_v$15:void 0,_v$16:void 0}),e}{const e=dn();return be(e,Q(Wn,{content:o})),P((r=>he(e,{...t,padding:"8px 12px"},r))),e}},Zn=e=>{const r=async()=>{if(e.apiHost)try{var r=await(await fetch(e.apiHost+"/api/v1/openai-assistants-file/download",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileName:e.annotation.fileName,chatflowId:e.chatflowid,chatId:e.chatId})})).blob(),o=window.URL.createObjectURL(r),t=document.createElement("a");t.href=o,t.download=e.annotation.fileName,document.body.appendChild(t),t.click(),t.remove(),window.URL.revokeObjectURL(o)}catch(r){console.error("Download failed:",r)}};{const o=pn(),t=o.firstChild;return o.$$click=r,o.style.setProperty("display","inline-flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","6px"),o.style.setProperty("padding","4px 12px"),o.style.setProperty("border","1px solid rgba(0,0,0,0.2)"),o.style.setProperty("border-radius","6px"),o.style.setProperty("background","transparent"),o.style.setProperty("cursor","pointer"),o.style.setProperty("font-size","0.8rem"),o.style.setProperty("color","inherit"),be(t,(()=>e.annotation.fileName)),be(o,Q(Dn,{}),null),P((()=>ue(o,"title","Download "+e.annotation.fileName))),o}},zn=e=>{const[r,o]=$("rendered"),[t,a]=$(null),l=()=>e.node?.data?jl(e.node.data):{},n=(e,r)=>({display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`}),i={"margin-bottom":"16px"},d={"font-weight":"700","font-size":"0.9rem","margin-bottom":"8px"},s={border:"1px solid rgba(0,0,0,0.1)","border-radius":"10px",padding:"14px 16px",background:"rgba(0,0,0,0.015)"},m=()=>{const r=l();var o,t,m,g,c,u,x;return r?(g=(m=(t=(o=An()).firstChild).firstChild).nextSibling,x=(u=(c=t.nextSibling).firstChild).nextSibling,be(o,Q(oe,{get when(){return r.output?.availableTools?.length},get children(){var o=fn(),t=o.firstChild,a=t.nextSibling;return he(o,i),he(t,d),he(a,s),be(a,Q(re,{get each(){return r.output.availableTools},children:o=>{a=o.name,l=r.output?.usedTools;const t=Array.isArray(l)&&l.some((e=>e.tool===a));var a,l;const i=o.toolNode?.name||o.name;return Q(Hn,{borderColor:t?"#4CAF50":void 0,bgColor:t?"rgba(76,175,80,0.05)":void 0,get header(){return[Q(Fn,{name:i,get apiHost(){return e.apiHost},size:22}),(be(r=hn(),(()=>o.toolNode?.label||o.name)),r),Q(oe,{when:t,get children(){const e=Mn();return P((r=>he(e,n("#E8F5E9","#2E7D32"),r))),e}})];var r},get children(){return Q(Vn,{data:o})}})}})),o}}),t),he(t,i),he(m,d),he(g,s),be(g,Q(oe,{get when(){return r.input?.messages&&Array.isArray(r.input.messages)&&0r.input.code)),e}})},get children(){return Q(Vn,{get data(){return r.input.form||r.input.http||r.input.conditions}})}})},get children(){var o=dn();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","4px"),be(o,Q(re,{get each(){return r.input.messages},children:o=>((r,o)=>{const t=r.role||"unknown",l=(e=>{switch(e?.toLowerCase()){case"assistant":case"ai":return{background:"#E8F5E9",color:"#2E7D32"};case"system":return{background:"#FFF3E0",color:"#E65100"};case"developer":case"user":case"human":return{background:"#E3F2FD",color:"#1565C0"};case"tool":case"function":return{background:"#F3E5F5",color:"#7B1FA2"};default:return{background:"#F5F5F5",color:"#616161"}}})(t),n=(e,r,o,t)=>{{const a=hn();return be(a,o),P((o=>he(a,{display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`,...t},o))),a}};return(i=dn()).style.setProperty("margin-bottom","8px"),i.style.setProperty("padding","8px"),i.style.setProperty("border-radius","6px"),i.style.setProperty("background","rgba(0,0,0,0.02)"),be(i,(()=>n(l.background,l.color,t)),null),be(i,Q(oe,{get when(){return r.name},get children(){return n(l.background,l.color,r.name,{"margin-left":"4px"})}}),null),be(i,Q(oe,{get when(){return r.tool_calls&&Array.isArray(r.tool_calls)&&0Q(Hn,{borderColor:"#FFC107",bgColor:"rgba(255,193,7,0.05)",get header(){return[Q(kn,{}),(be(r=hn(),(()=>e.function?.name||e.name||"Tool Call")),r),M((()=>n("#FFF3E0","#E65100","Called")))];var r},get children(){return Q(Vn,{data:e})}})})}}),null),be(i,Q(oe,{get when(){return"tool"===t&&r.name},get children(){var e=vn(),o=e.firstChild;return e.style.setProperty("display","flex"),e.style.setProperty("align-items","center"),e.style.setProperty("gap","8px"),e.style.setProperty("margin-top","4px"),e.style.setProperty("flex-wrap","wrap"),be(e,Q(kn,{}),o),o.style.setProperty("font-size","0.85rem"),be(o,(()=>r.name)),be(e,Q(oe,{get when(){return r.tool_call_id},get children(){return n("#F5F5F5","#616161",r.tool_call_id)}}),null),e}}),null),be(i,Q(oe,{get when(){return r.additional_kwargs?.usedTools?.length},get children(){var t=dn();return t.style.setProperty("margin-top","8px"),t.style.setProperty("display","flex"),t.style.setProperty("gap","4px"),t.style.setProperty("flex-wrap","wrap"),be(t,Q(re,{get each(){return r.additional_kwargs.usedTools},children:r=>Q(oe,{when:r,get children(){const t=Sn(),l=t.firstChild;return t.$$click=()=>a(r),t.style.setProperty("display","inline-flex"),t.style.setProperty("align-items","center"),t.style.setProperty("gap","4px"),t.style.setProperty("padding","3px 10px"),t.style.setProperty("border-radius","12px"),t.style.setProperty("font-size","0.75rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("cursor","pointer"),t.style.setProperty("transition","filter 0.15s ease"),be(t,Q(Fn,{get name(){return Xn(r.tool,o?.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),l),be(t,(()=>r.tool),null),P((e=>{var o=r.error?"#FFEBEE":"#F3E5F5",a=r.error?"#C62828":"#7B1FA2",l="1px solid "+(r.error?"#C6282833":"#7B1FA233");return o!==e._v$17&&(null!=(e._v$17=o)?t.style.setProperty("background",o):t.style.removeProperty("background")),a!==e._v$18&&(null!=(e._v$18=a)?t.style.setProperty("color",a):t.style.removeProperty("color")),l!==e._v$19&&(null!=(e._v$19=l)?t.style.setProperty("border",l):t.style.removeProperty("border")),e}),{_v$17:void 0,_v$18:void 0,_v$19:void 0}),t}})})),t}}),null),be(i,Q(oe,{get when(){return r.additional_kwargs?.artifacts?.length},get children(){var o=dn();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),be(o,Q(re,{get each(){return r.additional_kwargs.artifacts},children:(r,o)=>Q(Kn,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),be(i,Q(oe,{get when(){return"user"===t&&Array.isArray(r.content)&&0{const t="stored-file"===r.type&&e.apiHost?`${e.apiHost}/api/v1/get-upload-file?chatflowId=${e.chatflowid}&chatId=${e.chatId}&fileName=`+r.name:r.name;{const e=xn(),r=e.firstChild;return e.style.setProperty("border","1px solid rgba(0,0,0,0.12)"),e.style.setProperty("border-radius","6px"),e.style.setProperty("overflow","hidden"),e.style.setProperty("display","flex"),e.style.setProperty("justify-content","center"),e.style.setProperty("background","rgba(0,0,0,0.02)"),ue(r,"src",t),r.style.setProperty("max-height","400px"),r.style.setProperty("max-width","100%"),r.style.setProperty("object-fit","contain"),r.style.setProperty("display","block"),P((()=>ue(r,"alt","file-upload-"+o()))),e}}})),o}}),null),be(i,Q(oe,{get when(){return"string"==typeof r.content&&r.content},get children(){var e=dn();return e.style.setProperty("margin-top","4px"),be(e,Q(Wn,{get content(){return r.content}})),e}}),null),be(i,Q(oe,{get when(){return!r.content},get children(){var e=un();return e.style.setProperty("margin-top","4px"),e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}}),null),be(i,Q(oe,{get when(){return r.additional_kwargs?.fileAnnotations?.length},get children(){var o=dn();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),be(o,Q(re,{get each(){return r.additional_kwargs.fileAnnotations},children:r=>Q(Zn,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),i;var i})(o,r)})),o}})),he(c,i),he(u,d),he(x,s),be(x,Q(oe,{get when(){return!(r.output?.form||r.output?.http||r.output?.conditions)},get fallback(){return Q(oe,{get when(){return r.output?.conditions},get fallback(){return Q(Vn,{get data(){return r.output?.form||r.output?.http}})},get children(){return(e=>Q(re,{each:e.filter((e=>e.isFulfilled)),children:(e,r)=>{{const o=bn(),t=o.firstChild,a=t.firstChild,l=a.nextSibling;return o.style.setProperty("border","1px solid #4CAF50"),o.style.setProperty("border-radius","6px"),o.style.setProperty("padding","8px 12px"),o.style.setProperty("margin-bottom","6px"),t.style.setProperty("display","flex"),t.style.setProperty("justify-content","space-between"),t.style.setProperty("align-items","center"),a.style.setProperty("font-size","0.85rem"),be(a,(()=>{const o=M((()=>!("string"!==e.type||"equal"!==e.operation||e.value1||e.value2)));return()=>o()?"Else condition fulfilled":"Condition "+r()})()),be(o,Q(oe,{get when(){return!("string"===e.type&&"equal"===e.operation&&!e.value1&&!e.value2)},get children(){var r=dn();return r.style.setProperty("margin-top","4px"),be(r,Q(Vn,{data:e})),r}}),null),P((e=>he(l,n("#E8F5E9","#2E7D32"),e))),o}}}))(r.output.conditions)}})},get children(){return[Q(oe,{get when(){return r.output?.usedTools?.length},get children(){var o=dn();return o.style.setProperty("display","flex"),o.style.setProperty("gap","4px"),o.style.setProperty("flex-wrap","wrap"),o.style.setProperty("margin-bottom","8px"),be(o,Q(re,{get each(){return r.output.usedTools},children:o=>Q(oe,{when:o,get children(){const t=Sn(),l=t.firstChild;return t.$$click=()=>a(o),be(t,Q(Fn,{get name(){return Xn(o.tool,r.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),l),be(t,(()=>o.tool),null),P((e=>he(t,{...n(o.error?"#FFEBEE":"#F3E5F5",o.error?"#C62828":"#7B1FA2"),cursor:"pointer",transition:"filter 0.15s ease"},e))),t}})})),o}}),Q(oe,{get when(){return r.output?.artifacts?.length},get children(){var o=dn();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),o.style.setProperty("margin-bottom","8px"),be(o,Q(re,{get each(){return r.output.artifacts},children:(r,o)=>Q(Kn,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),Q(oe,{get when(){return r.output?.content},get fallback(){return Q(oe,{get when(){return r.output},get children(){var e=un();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}})},get children(){return Q(Wn,{get content(){return r.output.content}})}}),Q(oe,{get when(){return r.output?.fileAnnotations?.length},get children(){var o=dn();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),be(o,Q(re,{get each(){return r.output.fileAnnotations},children:r=>Q(Zn,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}})]}})),be(o,Q(oe,{get when(){return r.error},get children(){const e=$n(),o=e.firstChild,t=o.nextSibling,a=t.firstChild;return he(e,i),a.style.setProperty("padding","8px 12px"),a.style.setProperty("border-radius","6px"),a.style.setProperty("border","1px solid #F44336"),a.style.setProperty("background","rgba(244,67,54,0.08)"),a.style.setProperty("color","#C62828"),a.style.setProperty("font-size","0.85rem"),a.style.setProperty("white-space","pre-wrap"),a.style.setProperty("word-break","break-word"),be(a,(()=>{const e=M((()=>"object"==typeof r.error));return()=>e()?JSON.stringify(r.error,null,2):r.error})()),P((e=>{var r={...d,color:"#C62828"},a={...s,"border-color":"rgba(244,67,54,0.4)",background:"rgba(244,67,54,0.04)"};return e._v$20=he(o,r,e._v$20),e._v$21=he(t,a,e._v$21),e}),{_v$20:void 0,_v$21:void 0}),e}}),null),be(o,Q(oe,{get when(){return M((()=>!!r.state))()&&0e.node.label)),x.style.setProperty("display","flex"),x.style.setProperty("flex-wrap","wrap"),x.style.setProperty("align-items","center"),x.style.setProperty("gap","8px"),x.style.setProperty("flex","1"),be(x,Q(oe,{get when(){return(e=>{var r;return e=e?.output,e&&(r={},e.timeMetadata?.delta&&(r.time=(e.timeMetadata.delta/1e3).toFixed(2)+" seconds"),e.usageMetadata?.total_tokens&&(r.tokens=e.usageMetadata.total_tokens+" tokens"),null!=e.usageMetadata?.total_cost&&0<=Number(e.usageMetadata.total_cost)&&(e=Number(e.usageMetadata.total_cost),r.cost=.01<=e?"$"+e.toFixed(2):"$"+e.toFixed(6)),0[Q(oe,{get when(){return e().time},get children(){var r=Sn(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#4caf50"),r.style.setProperty("color","#fff"),be(r,Q(Nn,{}),o),be(r,(()=>e().time),null),r}}),Q(oe,{get when(){return e().tokens},get children(){var r=Sn(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#7c4dff"),r.style.setProperty("color","#fff"),be(r,Q(In,{}),o),be(r,(()=>e().tokens),null),r}}),Q(oe,{get when(){return e().cost},get children(){var r=Sn(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#ff9800"),r.style.setProperty("color","#fff"),be(r,Q(On,{}),o),be(r,(()=>e().cost),null),r}})]})),g),(()=>{const e=wn(),t=e.firstChild,a=t.nextSibling;return e.style.setProperty("display","flex"),e.style.setProperty("gap","0"),e.style.setProperty("padding","0 20px"),e.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),t.$$click=()=>o("rendered"),t.style.setProperty("padding","10px 16px"),t.style.setProperty("border","none"),t.style.setProperty("background","transparent"),t.style.setProperty("cursor","pointer"),t.style.setProperty("font-size","0.875rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("font-family","inherit"),t.style.setProperty("margin-bottom","-1px"),a.$$click=()=>o("raw"),a.style.setProperty("padding","10px 16px"),a.style.setProperty("border","none"),a.style.setProperty("background","transparent"),a.style.setProperty("cursor","pointer"),a.style.setProperty("font-size","0.875rem"),a.style.setProperty("font-weight","500"),a.style.setProperty("font-family","inherit"),a.style.setProperty("margin-bottom","-1px"),P((e=>{var o="rendered"===r()?"#1976d2":"inherit",l="rendered"===r()?1:.6,n="rendered"===r()?"2px solid #1976d2":"2px solid transparent",i="raw"===r()?"#1976d2":"inherit",d="raw"===r()?1:.6,s="raw"===r()?"2px solid #1976d2":"2px solid transparent";return o!==e._v$22&&(null!=(e._v$22=o)?t.style.setProperty("color",o):t.style.removeProperty("color")),l!==e._v$23&&(null!=(e._v$23=l)?t.style.setProperty("opacity",l):t.style.removeProperty("opacity")),n!==e._v$24&&(null!=(e._v$24=n)?t.style.setProperty("border-bottom",n):t.style.removeProperty("border-bottom")),i!==e._v$25&&(null!=(e._v$25=i)?a.style.setProperty("color",i):a.style.removeProperty("color")),d!==e._v$26&&(null!=(e._v$26=d)?a.style.setProperty("opacity",d):a.style.removeProperty("opacity")),s!==e._v$27&&(null!=(e._v$27=s)?a.style.setProperty("border-bottom",s):a.style.removeProperty("border-bottom")),e}),{_v$22:void 0,_v$23:void 0,_v$24:void 0,_v$25:void 0,_v$26:void 0,_v$27:void 0}),e})(),((c=dn()).style.setProperty("padding","16px 20px"),c.style.setProperty("overflow-y","auto"),c.style.setProperty("flex","1"),be(c,Q(oe,{get when(){return"rendered"===r()},get fallback(){{const e=gn();return he(e,Un),P((()=>e.innerHTML=Cn(JSON.stringify(l(),null,2)))),e}},get children(){return m()}})),c),Q(oe,{get when(){return t()},get children(){return[(()=>{const r=Gn(),o=r.firstChild,n=o.firstChild,i=n.firstChild,d=i.firstChild,s=i.nextSibling,m=n.nextSibling;return r.$$click=()=>a(null),r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1004"),r.style.setProperty("display","flex"),r.style.setProperty("align-items","center"),r.style.setProperty("justify-content","center"),o.$$click=e=>e.stopPropagation(),o.style.setProperty("position","relative"),o.style.setProperty("width","100%"),o.style.setProperty("max-width","560px"),o.style.setProperty("margin","24px 16px"),o.style.setProperty("border-radius","8px"),o.style.setProperty("box-shadow","0 20px 40px -4px rgba(0,0,0,0.2), 0 8px 16px -4px rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("max-height","calc(100% - 80px)"),o.style.setProperty("overflow","hidden"),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("justify-content","space-between"),n.style.setProperty("padding","14px 20px"),n.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),i.style.setProperty("display","flex"),i.style.setProperty("align-items","center"),i.style.setProperty("gap","8px"),be(i,Q(Fn,{get name(){return Xn(t()?.tool||"",l()?.output?.availableTools)},get apiHost(){return e.apiHost},size:24}),d),d.style.setProperty("font-weight","600"),d.style.setProperty("font-size","0.95rem"),be(d,(()=>t()?.tool||"Tool Detail")),be(i,Q(oe,{get when(){return t()?.error},get children(){var e=Ln();return e.style.setProperty("display","inline-flex"),e.style.setProperty("align-items","center"),e.style.setProperty("padding","2px 8px"),e.style.setProperty("border-radius","10px"),e.style.setProperty("font-size","0.7rem"),e.style.setProperty("font-weight","500"),e.style.setProperty("background","#FFEBEE"),e.style.setProperty("color","#C62828"),e.style.setProperty("border","1px solid #C6282833"),e}}),null),s.$$click=()=>a(null),s.style.setProperty("border","none"),s.style.setProperty("background","transparent"),s.style.setProperty("cursor","pointer"),s.style.setProperty("padding","4px"),s.style.setProperty("border-radius","4px"),s.style.setProperty("display","flex"),s.style.setProperty("align-items","center"),s.style.setProperty("color","inherit"),s.style.setProperty("opacity","0.7"),be(s,Q(En,{})),m.style.setProperty("padding","16px 20px"),m.style.setProperty("overflow-y","auto"),be(m,Q(Vn,{get data(){return t()}})),P((r=>{var t=e.backgroundColor??"#ffffff",a=e.textColor??"#303235";return t!==r._v$28&&(null!=(r._v$28=t)?o.style.setProperty("background-color",t):o.style.removeProperty("background-color")),a!==r._v$29&&(null!=(r._v$29=a)?o.style.setProperty("color",a):o.style.removeProperty("color")),r}),{_v$28:void 0,_v$29:void 0}),r})(),((r=dn()).$$click=e=>{e.stopPropagation(),a(null)},r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1003"),r.style.setProperty("background-color","rgba(0,0,0,0.35)"),r)];var r}})];var g,c,u,x},Qn=(ce(["click"]),ge('')),Yn=ge(''),Jn=ge(''),jn=ge(""),qn=ge("
"),ei=ge('
'),ri=ge("
'),td=ge("
");const ad=e=>{let r;const[o]=ee(e,["onOpen","onClose","isOpen","value"]),[t,a]=(_((()=>{r&&(r.innerHTML=function(e){return(e=(e="string"!=typeof e?JSON.stringify(e,void 0,2):e).replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,(function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""}))}(JSON.stringify(e?.value,void 0,2)))})),$(o.isOpen??!1)),l=(A((()=>{Oe(e.isOpen)||e.isOpen===t()||i()})),e=>{e.stopPropagation()}),n=()=>{a(!1),o.onClose?.(),document.body.style.overflow="auto"},i=()=>{t()?n():(a(!0),o.onOpen?.(),document.body.style.overflow="hidden")};return Q(oe,{get when(){return t()},get children(){return[(be(a=rd(),Ne),a),(a=od(),o=a.firstChild,t=o.nextSibling.nextSibling.firstChild.firstChild,a.style.setProperty("z-index","1100"),a.addEventListener("click",n),be(o,Ne),t.style.setProperty("background-color","transparent"),t.style.setProperty("margin-left","20px"),t.style.setProperty("margin-right","20px"),t.addEventListener("click",l),t.addEventListener("pointerdown",l),be(t,(()=>{const o=M((()=>!!e.value));return()=>{return o()&&(t=(e=td()).firstChild,e.style.setProperty("background","white"),e.style.setProperty("margin","auto"),e.style.setProperty("padding","7px"),"function"==typeof(a=r)?Se(a,t):r=t,e);var e,t,a}})()),a)];var o,t,a}})},ld=ge('
');function fn(e){return e?(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,(function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""})):""}const $n=()=>Ul(),Pn=()=>Vl(),An=()=>Wl(),Mn=()=>Kl(),Tn=()=>Zl(),_n=()=>zl(),wn=()=>Ql(),Ln=e=>{{const r=Yl();return f((o=>{var t=e.size,a=e.size;return t!==o._v$&&ae(r,"width",o._v$=t),a!==o._v$2&&ae(r,"height",o._v$2=a),o}),{_v$:void 0,_v$2:void 0}),r}},Gn=e=>{const r=e.size??24,o=Ll(e.name);if(o){const t=Jl();return t.style.setProperty("flex-shrink","0"),t.style.setProperty("display","flex"),t.style.setProperty("align-items","center"),t.style.setProperty("justify-content","center"),r+"px"!=null?t.style.setProperty("width",r+"px"):t.style.removeProperty("width"),r+"px"!=null?t.style.setProperty("height",r+"px"):t.style.removeProperty("height"),me(t,(()=>o.icon({size:Math.round(.55*r),color:"white"}))),f((r=>{var a=e.borderRadius??"50%",l=e.bgColor??o.color;return a!==r._v$3&&(null!=(r._v$3=a)?t.style.setProperty("border-radius",a):t.style.removeProperty("border-radius")),l!==r._v$4&&(null!=(r._v$4=l)?t.style.setProperty("background",l):t.style.removeProperty("background")),r}),{_v$3:void 0,_v$4:void 0}),t}if(e.apiHost){const[o,t]=y(!1);{const a=Jl();return a.style.setProperty("flex-shrink","0"),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","center"),r+"px"!=null?a.style.setProperty("width",r+"px"):a.style.removeProperty("width"),r+"px"!=null?a.style.setProperty("height",r+"px"):a.style.removeProperty("height"),a.style.setProperty("overflow","hidden"),me(a,F(Z,{get when(){return!o()},get fallback(){return F(Ln,{get size(){return Math.round(.6*r)}})},get children(){const r=jl();return r.addEventListener("error",(()=>t(!0))),r.style.setProperty("width","100%"),r.style.setProperty("height","100%"),r.style.setProperty("padding","3px"),r.style.setProperty("object-fit","contain"),f((o=>{var t=e.apiHost+"/api/v1/node-icon/"+e.name,a=e.name;return t!==o._v$5&&ae(r,"src",o._v$5=t),a!==o._v$6&&ae(r,"alt",o._v$6=a),o}),{_v$5:void 0,_v$6:void 0}),r}})),f((r=>{var t=e.borderRadius??"50%",l=e.bgColor??(o()?"#9e9e9e":"#f5f5f5");return t!==r._v$7&&(null!=(r._v$7=t)?a.style.setProperty("border-radius",t):a.style.removeProperty("border-radius")),l!==r._v$8&&(null!=(r._v$8=l)?a.style.setProperty("background",l):a.style.removeProperty("background")),r}),{_v$7:void 0,_v$8:void 0}),a}}{const o=Jl();return o.style.setProperty("flex-shrink","0"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("justify-content","center"),r+"px"!=null?o.style.setProperty("width",r+"px"):o.style.removeProperty("width"),r+"px"!=null?o.style.setProperty("height",r+"px"):o.style.removeProperty("height"),o.style.setProperty("background","#9e9e9e"),me(o,F(Ln,{get size(){return Math.round(.6*r)}})),f((()=>null!=(e.borderRadius??"50%")?o.style.setProperty("border-radius",e.borderRadius??"50%"):o.style.removeProperty("border-radius"))),o}},Cn=(e,r)=>Array.isArray(r)&&(r=r.find((r=>r.name===e)),r?.toolNode?.name)?r.toolNode.name:e,En=e=>{const[r,o]=y(e.defaultOpen??!1),t=()=>o(!r());{const o=ql(),a=o.firstChild,l=a.firstChild,n=l.nextSibling;return o.style.setProperty("border-radius","8px"),o.style.setProperty("margin-bottom","6px"),o.style.setProperty("overflow","hidden"),a.$$click=t,a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("width","100%"),a.style.setProperty("padding","10px 12px"),a.style.setProperty("cursor","pointer"),a.style.setProperty("user-select","none"),a.style.setProperty("gap","8px"),a.style.setProperty("font-size","0.85rem"),a.style.setProperty("font-family","inherit"),a.style.setProperty("color","inherit"),a.style.setProperty("text-align","left"),a.style.setProperty("border","none"),a.style.setProperty("background","transparent"),l.style.setProperty("flex","1"),l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("gap","8px"),l.style.setProperty("text-align","left"),me(l,(()=>e.header)),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("justify-content","center"),n.style.setProperty("flex-shrink","0"),n.style.setProperty("transition","transform 0.2s ease"),n.style.setProperty("opacity","0.5"),me(n,F(Pn,{})),me(o,F(Z,{get when(){return r()},get children(){var r=Jl();return r.style.setProperty("padding","10px 12px"),r.style.setProperty("border-top","1px solid rgba(0,0,0,0.08)"),r.style.setProperty("background","rgba(0,0,0,0.02)"),me(r,(()=>e.children)),r}}),null),f((t=>{var l="1px solid "+(e.borderColor||"rgba(0,0,0,0.1)"),i=e.bgColor||"transparent",d=r(),s=r()?"rotate(180deg)":"rotate(0deg)";return l!==t._v$9&&(null!=(t._v$9=l)?o.style.setProperty("border",l):o.style.removeProperty("border")),i!==t._v$10&&(null!=(t._v$10=i)?o.style.setProperty("background",i):o.style.removeProperty("background")),d!==t._v$11&&ae(a,"aria-expanded",t._v$11=d),s!==t._v$12&&(null!=(t._v$12=s)?n.style.setProperty("transform",s):n.style.removeProperty("transform")),t}),{_v$9:void 0,_v$10:void 0,_v$11:void 0,_v$12:void 0}),o}},Bn={"font-family":"'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace","font-size":"0.75rem","line-height":"1.5",padding:"12px","border-radius":"6px",background:"rgba(0,0,0,0.04)","overflow-x":"auto","white-space":"pre-wrap","word-break":"break-word",margin:"0"},Nn=e=>{{const r=en();return ie(r,Bn),f((()=>r.innerHTML=fn(JSON.stringify(e.data,null,2)))),r}},On=e=>{Fo.setOptions({isNoP:!0,sanitize:!0});const r=()=>{if(!e.content)return null;try{return JSON.parse(e.content)}catch{return null}};return F(Z,{get when(){return r()},get fallback(){return F(Z,{get when(){return e.content},get fallback(){return(e=on()).style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e;var e},get children(){const r=rn();return r.style.setProperty("word-break","break-word"),r.style.setProperty("font-size","0.85rem"),r.style.setProperty("line-height","1.6"),f((()=>r.innerHTML=Fo.parse(e.content))),r}})},get children(){return F(Nn,{get data(){return r()}})}})},In=e=>{var r=e.artifact?.type;const o=e.artifact?.data,t={border:"1px solid rgba(0,0,0,0.12)","border-radius":"6px",overflow:"hidden",background:"rgba(0,0,0,0.02)"};if("png"===r||"jpeg"===r||"jpg"===r){const r=((e,r,o,t)=>e.startsWith("FILE-STORAGE::")&&r?r+`/api/v1/get-upload-file?chatflowId=${o}&chatId=${t}&fileName=`+e.replace("FILE-STORAGE::",""):e)(o,e.apiHost,e.chatflowid,e.chatId);{const o=tn(),a=o.firstChild;return ae(a,"src",r),a.style.setProperty("max-height","400px"),a.style.setProperty("max-width","100%"),a.style.setProperty("object-fit","contain"),a.style.setProperty("display","block"),f((r=>{var l={...t,display:"flex","justify-content":"center"},n="artifact-"+e.index;return r._v$13=ie(o,l,r._v$13),n!==r._v$14&&ae(a,"alt",r._v$14=n),r}),{_v$13:void 0,_v$14:void 0}),o}}if("html"===r){const e=Jl();return f((r=>{var a={...t,padding:"8px 12px","font-size":"0.85rem"},l=Qt.sanitize(o);return r._v$15=ie(e,a,r._v$15),l!==r._v$16&&(e.innerHTML=r._v$16=l),r}),{_v$15:void 0,_v$16:void 0}),e}{const e=Jl();return me(e,F(On,{content:o})),f((r=>ie(e,{...t,padding:"8px 12px"},r))),e}},kn=e=>{const r=async()=>{if(e.apiHost)try{var r=await(await fetch(e.apiHost+"/api/v1/openai-assistants-file/download",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileName:e.annotation.fileName,chatflowId:e.chatflowid,chatId:e.chatId})})).blob(),o=window.URL.createObjectURL(r),t=document.createElement("a");t.href=o,t.download=e.annotation.fileName,document.body.appendChild(t),t.click(),t.remove(),window.URL.revokeObjectURL(o)}catch(r){console.error("Download failed:",r)}};{const o=an(),t=o.firstChild;return o.$$click=r,o.style.setProperty("display","inline-flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","6px"),o.style.setProperty("padding","4px 12px"),o.style.setProperty("border","1px solid rgba(0,0,0,0.2)"),o.style.setProperty("border-radius","6px"),o.style.setProperty("background","transparent"),o.style.setProperty("cursor","pointer"),o.style.setProperty("font-size","0.8rem"),o.style.setProperty("color","inherit"),me(t,(()=>e.annotation.fileName)),me(o,F(wn,{}),null),f((()=>ae(o,"title","Download "+e.annotation.fileName))),o}},Dn=e=>{const[r,o]=y("rendered"),[t,a]=y(null),l=()=>e.node?.data?Hl(e.node.data):{},n=(e,r)=>({display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`}),i={"margin-bottom":"16px"},d={"font-weight":"700","font-size":"0.9rem","margin-bottom":"8px"},s={border:"1px solid rgba(0,0,0,0.1)","border-radius":"10px",padding:"14px 16px",background:"rgba(0,0,0,0.015)"},m=()=>{const r=l();var o,t,m,g,c,u,x;return r?(g=(m=(t=(o=xn()).firstChild).firstChild).nextSibling,x=(u=(c=t.nextSibling).firstChild).nextSibling,me(o,F(Z,{get when(){return r.output?.availableTools?.length},get children(){var o=gn(),t=o.firstChild,a=t.nextSibling;return ie(o,i),ie(t,d),ie(a,s),me(a,F(K,{get each(){return r.output.availableTools},children:o=>{a=o.name,l=r.output?.usedTools;const t=Array.isArray(l)&&l.some((e=>e.tool===a));var a,l;const i=o.toolNode?.name||o.name;return F(En,{borderColor:t?"#4CAF50":void 0,bgColor:t?"rgba(76,175,80,0.05)":void 0,get header(){return[F(Gn,{name:i,get apiHost(){return e.apiHost},size:22}),(me(r=ln(),(()=>o.toolNode?.label||o.name)),r),F(Z,{when:t,get children(){const e=pn();return f((r=>ie(e,n("#E8F5E9","#2E7D32"),r))),e}})];var r},get children(){return F(Nn,{data:o})}})}})),o}}),t),ie(t,i),ie(m,d),ie(g,s),me(g,F(Z,{get when(){return r.input?.messages&&Array.isArray(r.input.messages)&&0r.input.code)),e}})},get children(){return F(Nn,{get data(){return r.input.form||r.input.http||r.input.conditions}})}})},get children(){var o=Jl();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","4px"),me(o,F(K,{get each(){return r.input.messages},children:o=>((r,o)=>{const t=r.role||"unknown",l=(e=>{switch(e?.toLowerCase()){case"assistant":case"ai":return{background:"#E8F5E9",color:"#2E7D32"};case"system":return{background:"#FFF3E0",color:"#E65100"};case"developer":case"user":case"human":return{background:"#E3F2FD",color:"#1565C0"};case"tool":case"function":return{background:"#F3E5F5",color:"#7B1FA2"};default:return{background:"#F5F5F5",color:"#616161"}}})(t),n=(e,r,o,t)=>{{const a=ln();return me(a,o),f((o=>ie(a,{display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`,...t},o))),a}};return(i=Jl()).style.setProperty("margin-bottom","8px"),i.style.setProperty("padding","8px"),i.style.setProperty("border-radius","6px"),i.style.setProperty("background","rgba(0,0,0,0.02)"),me(i,(()=>n(l.background,l.color,t)),null),me(i,F(Z,{get when(){return r.name},get children(){return n(l.background,l.color,r.name,{"margin-left":"4px"})}}),null),me(i,F(Z,{get when(){return r.tool_calls&&Array.isArray(r.tool_calls)&&0F(En,{borderColor:"#FFC107",bgColor:"rgba(255,193,7,0.05)",get header(){return[F(_n,{}),(me(r=ln(),(()=>e.function?.name||e.name||"Tool Call")),r),P((()=>n("#FFF3E0","#E65100","Called")))];var r},get children(){return F(Nn,{data:e})}})})}}),null),me(i,F(Z,{get when(){return"tool"===t&&r.name},get children(){var e=nn(),o=e.firstChild;return e.style.setProperty("display","flex"),e.style.setProperty("align-items","center"),e.style.setProperty("gap","8px"),e.style.setProperty("margin-top","4px"),e.style.setProperty("flex-wrap","wrap"),me(e,F(_n,{}),o),o.style.setProperty("font-size","0.85rem"),me(o,(()=>r.name)),me(e,F(Z,{get when(){return r.tool_call_id},get children(){return n("#F5F5F5","#616161",r.tool_call_id)}}),null),e}}),null),me(i,F(Z,{get when(){return r.additional_kwargs?.usedTools?.length},get children(){var t=Jl();return t.style.setProperty("margin-top","8px"),t.style.setProperty("display","flex"),t.style.setProperty("gap","4px"),t.style.setProperty("flex-wrap","wrap"),me(t,F(K,{get each(){return r.additional_kwargs.usedTools},children:r=>F(Z,{when:r,get children(){const t=dn(),l=t.firstChild;return t.$$click=()=>a(r),t.style.setProperty("display","inline-flex"),t.style.setProperty("align-items","center"),t.style.setProperty("gap","4px"),t.style.setProperty("padding","3px 10px"),t.style.setProperty("border-radius","12px"),t.style.setProperty("font-size","0.75rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("cursor","pointer"),t.style.setProperty("transition","filter 0.15s ease"),me(t,F(Gn,{get name(){return Cn(r.tool,o?.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),l),me(t,(()=>r.tool),null),f((e=>{var o=r.error?"#FFEBEE":"#F3E5F5",a=r.error?"#C62828":"#7B1FA2",l="1px solid "+(r.error?"#C6282833":"#7B1FA233");return o!==e._v$17&&(null!=(e._v$17=o)?t.style.setProperty("background",o):t.style.removeProperty("background")),a!==e._v$18&&(null!=(e._v$18=a)?t.style.setProperty("color",a):t.style.removeProperty("color")),l!==e._v$19&&(null!=(e._v$19=l)?t.style.setProperty("border",l):t.style.removeProperty("border")),e}),{_v$17:void 0,_v$18:void 0,_v$19:void 0}),t}})})),t}}),null),me(i,F(Z,{get when(){return r.additional_kwargs?.artifacts?.length},get children(){var o=Jl();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),me(o,F(K,{get each(){return r.additional_kwargs.artifacts},children:(r,o)=>F(In,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),me(i,F(Z,{get when(){return"user"===t&&Array.isArray(r.content)&&0{const t="stored-file"===r.type&&e.apiHost?`${e.apiHost}/api/v1/get-upload-file?chatflowId=${e.chatflowid}&chatId=${e.chatId}&fileName=`+r.name:r.name;{const e=tn(),r=e.firstChild;return e.style.setProperty("border","1px solid rgba(0,0,0,0.12)"),e.style.setProperty("border-radius","6px"),e.style.setProperty("overflow","hidden"),e.style.setProperty("display","flex"),e.style.setProperty("justify-content","center"),e.style.setProperty("background","rgba(0,0,0,0.02)"),ae(r,"src",t),r.style.setProperty("max-height","400px"),r.style.setProperty("max-width","100%"),r.style.setProperty("object-fit","contain"),r.style.setProperty("display","block"),f((()=>ae(r,"alt","file-upload-"+o()))),e}}})),o}}),null),me(i,F(Z,{get when(){return"string"==typeof r.content&&r.content},get children(){var e=Jl();return e.style.setProperty("margin-top","4px"),me(e,F(On,{get content(){return r.content}})),e}}),null),me(i,F(Z,{get when(){return!r.content},get children(){var e=on();return e.style.setProperty("margin-top","4px"),e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}}),null),me(i,F(Z,{get when(){return r.additional_kwargs?.fileAnnotations?.length},get children(){var o=Jl();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),me(o,F(K,{get each(){return r.additional_kwargs.fileAnnotations},children:r=>F(kn,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),i;var i})(o,r)})),o}})),ie(c,i),ie(u,d),ie(x,s),me(x,F(Z,{get when(){return!(r.output?.form||r.output?.http||r.output?.conditions)},get fallback(){return F(Z,{get when(){return r.output?.conditions},get fallback(){return F(Nn,{get data(){return r.output?.form||r.output?.http}})},get children(){return(e=>F(K,{each:e.filter((e=>e.isFulfilled)),children:(e,r)=>{{const o=sn(),t=o.firstChild,a=t.firstChild,l=a.nextSibling;return o.style.setProperty("border","1px solid #4CAF50"),o.style.setProperty("border-radius","6px"),o.style.setProperty("padding","8px 12px"),o.style.setProperty("margin-bottom","6px"),t.style.setProperty("display","flex"),t.style.setProperty("justify-content","space-between"),t.style.setProperty("align-items","center"),a.style.setProperty("font-size","0.85rem"),me(a,(()=>{const o=P((()=>!("string"!==e.type||"equal"!==e.operation||e.value1||e.value2)));return()=>o()?"Else condition fulfilled":"Condition "+r()})()),me(o,F(Z,{get when(){return!("string"===e.type&&"equal"===e.operation&&!e.value1&&!e.value2)},get children(){var r=Jl();return r.style.setProperty("margin-top","4px"),me(r,F(Nn,{data:e})),r}}),null),f((e=>ie(l,n("#E8F5E9","#2E7D32"),e))),o}}}))(r.output.conditions)}})},get children(){return[F(Z,{get when(){return r.output?.usedTools?.length},get children(){var o=Jl();return o.style.setProperty("display","flex"),o.style.setProperty("gap","4px"),o.style.setProperty("flex-wrap","wrap"),o.style.setProperty("margin-bottom","8px"),me(o,F(K,{get each(){return r.output.usedTools},children:o=>F(Z,{when:o,get children(){const t=dn(),l=t.firstChild;return t.$$click=()=>a(o),me(t,F(Gn,{get name(){return Cn(o.tool,r.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),l),me(t,(()=>o.tool),null),f((e=>ie(t,{...n(o.error?"#FFEBEE":"#F3E5F5",o.error?"#C62828":"#7B1FA2"),cursor:"pointer",transition:"filter 0.15s ease"},e))),t}})})),o}}),F(Z,{get when(){return r.output?.artifacts?.length},get children(){var o=Jl();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),o.style.setProperty("margin-bottom","8px"),me(o,F(K,{get each(){return r.output.artifacts},children:(r,o)=>F(In,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),F(Z,{get when(){return r.output?.content},get fallback(){return F(Z,{get when(){return r.output},get children(){var e=on();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}})},get children(){return F(On,{get content(){return r.output.content}})}}),F(Z,{get when(){return r.output?.fileAnnotations?.length},get children(){var o=Jl();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),me(o,F(K,{get each(){return r.output.fileAnnotations},children:r=>F(kn,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}})]}})),me(o,F(Z,{get when(){return r.error},get children(){const e=cn(),o=e.firstChild,t=o.nextSibling,a=t.firstChild;return ie(e,i),a.style.setProperty("padding","8px 12px"),a.style.setProperty("border-radius","6px"),a.style.setProperty("border","1px solid #F44336"),a.style.setProperty("background","rgba(244,67,54,0.08)"),a.style.setProperty("color","#C62828"),a.style.setProperty("font-size","0.85rem"),a.style.setProperty("white-space","pre-wrap"),a.style.setProperty("word-break","break-word"),me(a,(()=>{const e=P((()=>"object"==typeof r.error));return()=>e()?JSON.stringify(r.error,null,2):r.error})()),f((e=>{var r={...d,color:"#C62828"},a={...s,"border-color":"rgba(244,67,54,0.4)",background:"rgba(244,67,54,0.04)"};return e._v$20=ie(o,r,e._v$20),e._v$21=ie(t,a,e._v$21),e}),{_v$20:void 0,_v$21:void 0}),e}}),null),me(o,F(Z,{get when(){return P((()=>!!r.state))()&&0e.node.label)),x.style.setProperty("display","flex"),x.style.setProperty("flex-wrap","wrap"),x.style.setProperty("align-items","center"),x.style.setProperty("gap","8px"),x.style.setProperty("flex","1"),me(x,F(Z,{get when(){return(e=>{var r;return e=e?.output,e&&(r={},e.timeMetadata?.delta&&(r.time=(e.timeMetadata.delta/1e3).toFixed(2)+" seconds"),e.usageMetadata?.total_tokens&&(r.tokens=e.usageMetadata.total_tokens+" tokens"),null!=e.usageMetadata?.total_cost&&0<=Number(e.usageMetadata.total_cost)&&(e=Number(e.usageMetadata.total_cost),r.cost=.01<=e?"$"+e.toFixed(2):"$"+e.toFixed(6)),0[F(Z,{get when(){return e().time},get children(){var r=dn(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#4caf50"),r.style.setProperty("color","#fff"),me(r,F(An,{}),o),me(r,(()=>e().time),null),r}}),F(Z,{get when(){return e().tokens},get children(){var r=dn(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#7c4dff"),r.style.setProperty("color","#fff"),me(r,F(Tn,{}),o),me(r,(()=>e().tokens),null),r}}),F(Z,{get when(){return e().cost},get children(){var r=dn(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#ff9800"),r.style.setProperty("color","#fff"),me(r,F(Mn,{}),o),me(r,(()=>e().cost),null),r}})]})),g),(()=>{const e=Sn(),t=e.firstChild,a=t.nextSibling;return e.style.setProperty("display","flex"),e.style.setProperty("gap","0"),e.style.setProperty("padding","0 20px"),e.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),t.$$click=()=>o("rendered"),t.style.setProperty("padding","10px 16px"),t.style.setProperty("border","none"),t.style.setProperty("background","transparent"),t.style.setProperty("cursor","pointer"),t.style.setProperty("font-size","0.875rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("font-family","inherit"),t.style.setProperty("margin-bottom","-1px"),a.$$click=()=>o("raw"),a.style.setProperty("padding","10px 16px"),a.style.setProperty("border","none"),a.style.setProperty("background","transparent"),a.style.setProperty("cursor","pointer"),a.style.setProperty("font-size","0.875rem"),a.style.setProperty("font-weight","500"),a.style.setProperty("font-family","inherit"),a.style.setProperty("margin-bottom","-1px"),f((e=>{var o="rendered"===r()?"#1976d2":"inherit",l="rendered"===r()?1:.6,n="rendered"===r()?"2px solid #1976d2":"2px solid transparent",i="raw"===r()?"#1976d2":"inherit",d="raw"===r()?1:.6,s="raw"===r()?"2px solid #1976d2":"2px solid transparent";return o!==e._v$22&&(null!=(e._v$22=o)?t.style.setProperty("color",o):t.style.removeProperty("color")),l!==e._v$23&&(null!=(e._v$23=l)?t.style.setProperty("opacity",l):t.style.removeProperty("opacity")),n!==e._v$24&&(null!=(e._v$24=n)?t.style.setProperty("border-bottom",n):t.style.removeProperty("border-bottom")),i!==e._v$25&&(null!=(e._v$25=i)?a.style.setProperty("color",i):a.style.removeProperty("color")),d!==e._v$26&&(null!=(e._v$26=d)?a.style.setProperty("opacity",d):a.style.removeProperty("opacity")),s!==e._v$27&&(null!=(e._v$27=s)?a.style.setProperty("border-bottom",s):a.style.removeProperty("border-bottom")),e}),{_v$22:void 0,_v$23:void 0,_v$24:void 0,_v$25:void 0,_v$26:void 0,_v$27:void 0}),e})(),((c=Jl()).style.setProperty("padding","16px 20px"),c.style.setProperty("overflow-y","auto"),c.style.setProperty("flex","1"),me(c,F(Z,{get when(){return"rendered"===r()},get fallback(){{const e=en();return ie(e,Bn),f((()=>e.innerHTML=fn(JSON.stringify(l(),null,2)))),e}},get children(){return m()}})),c),F(Z,{get when(){return t()},get children(){return[(()=>{const r=yn(),o=r.firstChild,n=o.firstChild,i=n.firstChild,d=i.firstChild,s=i.nextSibling,m=n.nextSibling;return r.$$click=()=>a(null),r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1004"),r.style.setProperty("display","flex"),r.style.setProperty("align-items","center"),r.style.setProperty("justify-content","center"),o.$$click=e=>e.stopPropagation(),o.style.setProperty("position","relative"),o.style.setProperty("width","100%"),o.style.setProperty("max-width","560px"),o.style.setProperty("margin","24px 16px"),o.style.setProperty("border-radius","8px"),o.style.setProperty("box-shadow","0 20px 40px -4px rgba(0,0,0,0.2), 0 8px 16px -4px rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("max-height","calc(100% - 80px)"),o.style.setProperty("overflow","hidden"),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("justify-content","space-between"),n.style.setProperty("padding","14px 20px"),n.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),i.style.setProperty("display","flex"),i.style.setProperty("align-items","center"),i.style.setProperty("gap","8px"),me(i,F(Gn,{get name(){return Cn(t()?.tool||"",l()?.output?.availableTools)},get apiHost(){return e.apiHost},size:24}),d),d.style.setProperty("font-weight","600"),d.style.setProperty("font-size","0.95rem"),me(d,(()=>t()?.tool||"Tool Detail")),me(i,F(Z,{get when(){return t()?.error},get children(){var e=bn();return e.style.setProperty("display","inline-flex"),e.style.setProperty("align-items","center"),e.style.setProperty("padding","2px 8px"),e.style.setProperty("border-radius","10px"),e.style.setProperty("font-size","0.7rem"),e.style.setProperty("font-weight","500"),e.style.setProperty("background","#FFEBEE"),e.style.setProperty("color","#C62828"),e.style.setProperty("border","1px solid #C6282833"),e}}),null),s.$$click=()=>a(null),s.style.setProperty("border","none"),s.style.setProperty("background","transparent"),s.style.setProperty("cursor","pointer"),s.style.setProperty("padding","4px"),s.style.setProperty("border-radius","4px"),s.style.setProperty("display","flex"),s.style.setProperty("align-items","center"),s.style.setProperty("color","inherit"),s.style.setProperty("opacity","0.7"),me(s,F($n,{})),m.style.setProperty("padding","16px 20px"),m.style.setProperty("overflow-y","auto"),me(m,F(Nn,{get data(){return t()}})),f((r=>{var t=e.backgroundColor??"#ffffff",a=e.textColor??"#303235";return t!==r._v$28&&(null!=(r._v$28=t)?o.style.setProperty("background-color",t):o.style.removeProperty("background-color")),a!==r._v$29&&(null!=(r._v$29=a)?o.style.setProperty("color",a):o.style.removeProperty("color")),r}),{_v$28:void 0,_v$29:void 0}),r})(),((r=Jl()).$$click=e=>{e.stopPropagation(),a(null)},r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1003"),r.style.setProperty("background-color","rgba(0,0,0,0.35)"),r)];var r}})];var g,c,u,x},Rn=(te(["click"]),oe('')),Fn=oe(''),Xn=oe(''),Hn=oe(""),Un=oe("
"),Vn=oe('
'),Wn=oe("
'),Zi=oe("
"),zi=e=>{let r;const[o]=W(e,["onOpen","onClose","isOpen","value"]),[t,a]=(M((()=>{var o;r&&(r.innerHTML=(o=(o="string"!=typeof(o=JSON.stringify(e?.value,void 0,2))?JSON.stringify(o,void 0,2):o).replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,(function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""})))})),y(o.isOpen??!1)),l=($((()=>{Ae(e.isOpen)||e.isOpen===t()||i()})),e=>{e.stopPropagation()}),n=()=>{a(!1),o.onClose?.(),document.body.style.overflow="auto"},i=()=>{t()?n():(a(!0),o.onOpen?.(),document.body.style.overflow="hidden")};return F(Z,{get when(){return t()},get children(){return[(me(a=Wi(),Pe),a),(a=Ki(),o=a.firstChild,t=o.nextSibling.nextSibling.firstChild.firstChild,a.style.setProperty("z-index","1100"),a.addEventListener("click",n),me(o,Pe),t.style.setProperty("background-color","transparent"),t.style.setProperty("margin-left","20px"),t.style.setProperty("margin-right","20px"),t.addEventListener("click",l),t.addEventListener("pointerdown",l),me(t,(()=>{const o=P((()=>!!e.value));return()=>{return o()&&(t=(e=Zi()).firstChild,e.style.setProperty("background","white"),e.style.setProperty("margin","auto"),e.style.setProperty("padding","7px"),"function"==typeof(a=r)?se(a,t):r=t,e);var e,t,a}})()),a)];var o,t,a}})},Qi=oe('
+
+            {generalError() && {generalError()}}
           
-        )}
-      
+
+ )}
); }; diff --git a/src/components/bubbles/LoadingBubble.tsx b/src/components/bubbles/LoadingBubble.tsx index c1fdeac8c..8a7179d8c 100644 --- a/src/components/bubbles/LoadingBubble.tsx +++ b/src/components/bubbles/LoadingBubble.tsx @@ -1,8 +1,8 @@ import { TypingBubble } from '@/components'; export const LoadingBubble = () => ( -
- +
+
diff --git a/src/components/bubbles/MeetingDetailsInline.tsx b/src/components/bubbles/MeetingDetailsInline.tsx new file mode 100644 index 000000000..22a2e0ee8 --- /dev/null +++ b/src/components/bubbles/MeetingDetailsInline.tsx @@ -0,0 +1,204 @@ +import { Show } from 'solid-js'; + +type MeetingDetailsInlineProps = { + meetingData: any; + primaryColor?: string; + botMessageBackgroundColor?: string; + botMessageTextColor?: string; +}; + +// Returns 0 (black) ... 1 (white), uses WCAG luminance +function getLuminance(hex?: string): number { + if (!hex) return 1; + let c = hex.replace('#', ''); + if (c.length === 3) + c = c + .split('') + .map((x) => x + x) + .join(''); + const num = parseInt(c, 16); + const r = (num >> 16) & 255; + const g = (num >> 8) & 255; + const b = num & 255; + return (0.2126 * r) / 255 + (0.7152 * g) / 255 + (0.0722 * b) / 255; +} + +// Utility to blend two hexes (e.g., for background tint) +function blend(bg = '#fff', fg = '#FB8105', alpha = 0.04) { + function hexToRgb(h: string) { + let c = h.replace('#', ''); + if (c.length === 3) + c = c + .split('') + .map((x) => x + x) + .join(''); + return [parseInt(c.substr(0, 2), 16), parseInt(c.substr(2, 2), 16), parseInt(c.substr(4, 2), 16)]; + } + const [r1, g1, b1] = hexToRgb(bg); + const [r2, g2, b2] = hexToRgb(fg); + return `rgb(${Math.round(r1 * (1 - alpha) + r2 * alpha)},${Math.round(g1 * (1 - alpha) + g2 * alpha)},${Math.round( + b1 * (1 - alpha) + b2 * alpha, + )})`; +} + +export const MeetingDetailsInline = (props: MeetingDetailsInlineProps) => { + // Theme detection based on bubble background + const bgLum = getLuminance(props.botMessageBackgroundColor); + const isDark = bgLum < 0.45; + + // Nice backgrounds for each mode + const cardBg = isDark ? 'rgba(255,255,255,0.08)' : blend(props.botMessageBackgroundColor ?? '#f7faff', props.primaryColor ?? '#FB8105', 0.09); + const cardBorder = isDark ? 'rgba(255,255,255,0.14)' : blend(props.botMessageBackgroundColor ?? '#f7faff', '#000', 0.04); + const cardShadow = isDark ? 'none' : '0 2px 12px 0 rgba(40,40,80,0.07)'; + const labelColor = isDark ? '#b6cef2' : '#64748B'; + const valueColor = isDark ? '#fff' : '#1A2331'; + const iconBg = (props.primaryColor || '#FB8105') + (isDark ? 'ee' : '18'); + const titleColor = isDark ? '#fff' : props.primaryColor || '#0F172A'; + const formatDate = (dateStr: string | undefined): string => { + if (!dateStr) return ''; + try { + const date = new Date(dateStr); + return date.toLocaleDateString('en-US', { + weekday: 'long', + year: 'numeric', + month: 'long', + day: 'numeric', + }); + } catch { + return dateStr ?? ''; + } + }; + + const hasMeetingData = () => + props.meetingData && + (props.meetingData.client_meeting_date || + props.meetingData.client_meeting_time || + props.meetingData.client_name || + props.meetingData.client_email || + props.meetingData.client_meeting_timezone); + + if (!hasMeetingData()) return null; + + return ( +
+ {/* Header */} +
+
+ + + +
+
+

+ Meeting Details +

+
+
+ + {/* Two Column Grid Layout */} +
+ +
+
+ Date +
+
+ {formatDate(props.meetingData.client_meeting_date)} +
+
+
+ +
+
+ Time +
+
+ {props.meetingData.client_meeting_time} + {props.meetingData.client_meeting_timezone ? ` (${props.meetingData.client_meeting_timezone})` : ''} +
+
+
+
+
+ ); +}; diff --git a/src/components/bubbles/StarterPromptBubble.tsx b/src/components/bubbles/StarterPromptBubble.tsx index 1f97d6267..7a6823080 100644 --- a/src/components/bubbles/StarterPromptBubble.tsx +++ b/src/components/bubbles/StarterPromptBubble.tsx @@ -1,28 +1,87 @@ +import { getCompanyConfig } from '@/window'; + type Props = { prompt: string; onPromptClick?: () => void; starterPromptFontSize?: number; + botMessageBackgroundColor?: string; + botMessageTextColor?: string; + botMessageBorderColor?: string; }; -export const StarterPromptBubble = (props: Props) => ( - <> -
props.onPromptClick?.()} - > - { + const config = getCompanyConfig(); + const themePrimary = config?.colors?.primary ?? '#ff8c00'; // match SendButton's source + + const bg = config?.colors.secondary ?? '#f7f8ff'; + const color = config?.colors.secondary ?? '#FFFFFF'; + + // simple, minimal conversion to a semi-transparent border color + const defaultBorder = (() => { + if (themePrimary.startsWith('#')) { + return hexToRgba(themePrimary, 0.28); + } + if (themePrimary.startsWith('rgb(')) { + // convert "rgb(r,g,b)" to "rgba(r,g,b,alpha)" + return themePrimary.replace('rgb(', 'rgba(').replace(')', `,0.28)`); + } + if (themePrimary.startsWith('var(')) { + // assumes you expose --primary-rgb: "R,G,B" somewhere in CSS + return `rgba(var(--primary-rgb), 0.28)`; + } + // fallback: if it's a named color or something else, just use a default rgba + return 'rgba(255,140,0,0.28)'; + })(); + + const borderColor = props.botMessageBorderColor ?? defaultBorder; + + return ( + <> + {/* simple hover rule that reads the --secondary CSS variable we set on the element */} + + +
props.onPromptClick?.()} > - {props.prompt} - -
- -); +
+ {props.prompt} +
+
+ + ); +}; diff --git a/src/components/buttons/RecordAudioButton.tsx b/src/components/buttons/RecordAudioButton.tsx index e4bb60238..bd12147b0 100644 --- a/src/components/buttons/RecordAudioButton.tsx +++ b/src/components/buttons/RecordAudioButton.tsx @@ -1,29 +1,35 @@ import { Show } from 'solid-js'; import { JSX } from 'solid-js/jsx-runtime'; import { RecordIcon } from '../icons'; +import { StopIcon } from '../icons/StopIcon'; type RecordAudioButtonProps = { buttonColor?: string; isDisabled?: boolean; isLoading?: boolean; + isRecording?: boolean; disableIcon?: boolean; } & JSX.ButtonHTMLAttributes; export const RecordAudioButton = (props: RecordAudioButtonProps) => { return ( ); }; diff --git a/src/components/buttons/TTSButton.tsx b/src/components/buttons/TTSButton.tsx index 02d9e9ec0..25d6d3912 100644 --- a/src/components/buttons/TTSButton.tsx +++ b/src/components/buttons/TTSButton.tsx @@ -67,7 +67,7 @@ export const TTSButton = (props: Props) => { } > }> - + diff --git a/src/components/icons/StopIcon.tsx b/src/components/icons/StopIcon.tsx new file mode 100644 index 000000000..e67a48c03 --- /dev/null +++ b/src/components/icons/StopIcon.tsx @@ -0,0 +1,8 @@ +// ../icons/StopIcon.tsx +import { JSX } from 'solid-js/jsx-runtime'; +const defaultButtonColor = '#F00'; +export const StopIcon = (props: JSX.SvgSVGAttributes) => ( + + + +); diff --git a/src/components/icons/XIcon.tsx b/src/components/icons/XIcon.tsx index 98af59746..6587e92ab 100644 --- a/src/components/icons/XIcon.tsx +++ b/src/components/icons/XIcon.tsx @@ -7,7 +7,7 @@ export const XIcon = (props: JSX.SvgSVGAttributes & { isCurrentCo height="24" viewBox="0 0 24 24" fill="none" - stroke={props.isCurrentColor ? 'currentColor' : props.color ?? defaultButtonColor} + stroke={props.isCurrentColor ? 'currentColor' : (props.color ?? defaultButtonColor)} stroke-width="2" stroke-linecap="round" stroke-linejoin="round" diff --git a/src/components/inputs/textInput/components/TextInput.tsx b/src/components/inputs/textInput/components/TextInput.tsx index 31ecff1b5..6d17e5e82 100644 --- a/src/components/inputs/textInput/components/TextInput.tsx +++ b/src/components/inputs/textInput/components/TextInput.tsx @@ -2,12 +2,22 @@ import { ShortTextInput } from './ShortTextInput'; import { isMobile } from '@/utils/isMobileSignal'; import { Show, createSignal, createEffect, onMount, Setter } from 'solid-js'; import { SendButton } from '@/components/buttons/SendButton'; -import { StopButton } from '@/components/buttons/StopButton'; import { FileEvent, UploadsConfig } from '@/components/Bot'; import { ImageUploadButton } from '@/components/buttons/ImageUploadButton'; import { RecordAudioButton } from '@/components/buttons/RecordAudioButton'; import { AttachmentUploadButton } from '@/components/buttons/AttachmentUploadButton'; import { ChatInputHistory } from '@/utils/chatInputHistory'; +import { + audioRecorder, + startAudioRecording, + stopAudioRecording, + cancelAudioRecording, + getElaspedTime, + isSpeechRecognitionSupported, + startSpeechRecognition, + stopSpeechRecognition, +} from '../../../../utils/audioRecording'; // adjust the path as needed +import { StopButton } from '@/components/buttons/StopButton'; type TextInputProps = { placeholder?: string; @@ -40,13 +50,20 @@ type TextInputProps = { const defaultBackgroundColor = '#ffffff'; const defaultTextColor = '#303235'; -// CDN link for default send sound const defaultSendSound = 'https://cdn.jsdelivr.net/gh/FlowiseAI/FlowiseChatEmbed@latest/src/assets/send_message.mp3'; export const TextInput = (props: TextInputProps) => { const [isSendButtonDisabled, setIsSendButtonDisabled] = createSignal(false); const [warningMessage, setWarningMessage] = createSignal(''); const [inputHistory] = createSignal(new ChatInputHistory(() => props.maxHistorySize || 10)); + const [isRecording, setIsRecording] = createSignal(false); + const [elapsedTime, setElapsedTime] = createSignal('00:00'); + const [unsupportedBrowser, setUnsupportedBrowser] = createSignal(false); + + // Speech-to-Text + const [speechError, setSpeechError] = createSignal(''); + const [isSpeechRecording, setIsSpeechRecording] = createSignal(false); + let inputRef: HTMLInputElement | HTMLTextAreaElement | undefined; let fileUploadRef: HTMLInputElement | HTMLTextAreaElement | undefined; let imgUploadRef: HTMLInputElement | HTMLTextAreaElement | undefined; @@ -54,13 +71,11 @@ export const TextInput = (props: TextInputProps) => { const handleInput = (inputValue: string) => { const wordCount = inputValue.length; - if (props.maxChars && wordCount > props.maxChars) { setWarningMessage(props.maxCharsWarningMessage ?? `You exceeded the characters limit. Please input less than ${props.maxChars} characters.`); setIsSendButtonDisabled(true); return; } - props.onInputChange(inputValue); setWarningMessage(''); setIsSendButtonDisabled(false); @@ -75,22 +90,61 @@ export const TextInput = (props: TextInputProps) => { } props.onSubmit(props.inputValue); if (props.sendMessageSound && audioRef) { - audioRef.play().catch(() => { - /* ignore autoplay errors */ - }); + audioRef.play(); } } }; + // --- Speech-to-Text Handlers --- + const handleStartSpeechToText = () => { + if (!isSpeechRecognitionSupported()) { + setSpeechError('This Feature works only on Chrome.'); + return; + } + setSpeechError(''); + setIsSpeechRecording(true); + startSpeechRecognition({ + onResult: (text) => { + props.onInputChange(text); + setIsSpeechRecording(false); + }, + onStart: () => setIsSpeechRecording(true), + onEnd: () => setIsSpeechRecording(false), + onError: (err) => { + setSpeechError('Speech recognition error: ' + err); + setIsSpeechRecording(false); + }, + }); + }; + + const handleStopSpeechToText = () => { + stopSpeechRecognition(); + setIsSpeechRecording(false); + }; + + // --- File/Image Upload --- const handleImageUploadClick = () => { if (imgUploadRef) imgUploadRef.click(); }; - const handleFileUploadClick = () => { if (fileUploadRef) fileUploadRef.click(); }; + const handleFileChange = (event: FileEvent) => { + props.handleFileChange(event); + if (event.target) event.target.value = ''; + }; + const getFileType = () => { + if (props.isFullFileUpload) return props.fullFileUploadAllowedTypes === '' ? '*' : props.fullFileUploadAllowedTypes; + if (props.uploadsConfig?.fileUploadSizeAndTypes?.length) { + const allowedFileTypes = props.uploadsConfig?.fileUploadSizeAndTypes.map((allowed) => allowed.fileTypes).join(','); + if (allowedFileTypes.includes('*')) return '*'; + else return allowedFileTypes; + } + return '*'; + }; const handlePaste = (e: ClipboardEvent) => { + console.log('[DEBUG] uploadsConfig:', props.uploadsConfig, 'isFullFileUpload:', props.isFullFileUpload); const items = e.clipboardData?.items; if (!items) return; @@ -121,14 +175,16 @@ export const TextInput = (props: TextInputProps) => { } }; + // --- Keyboard/Focus --- const handleKeyDown = (e: KeyboardEvent) => { + // console.log('[DEBUG] handleKeyDown fired, key:', e.key, 'enableInputHistory:', props.enableInputHistory); if (e.key === 'Enter' && !e.shiftKey) { const isIMEComposition = e.isComposing || e.keyCode === 229; if (!isIMEComposition) { e.preventDefault(); submit(); } - } else if (props.enableInputHistory) { + } else if (props.enableInputHistory ?? true) { if (e.key === 'ArrowUp') { e.preventDefault(); const previousInput = inputHistory().getPreviousInput(props.inputValue); @@ -143,15 +199,12 @@ export const TextInput = (props: TextInputProps) => { createEffect(() => { const shouldAutoFocus = props.autoFocus !== undefined ? props.autoFocus : !isMobile() && window.innerWidth > 640; - if (!props.disabled && shouldAutoFocus && inputRef) inputRef.focus(); }); onMount(() => { const shouldAutoFocus = props.autoFocus !== undefined ? props.autoFocus : !isMobile() && window.innerWidth > 640; - if (!props.disabled && shouldAutoFocus && inputRef) inputRef.focus(); - if (props.sendMessageSound) { if (props.sendSoundLocation) { audioRef = new Audio(props.sendSoundLocation); @@ -161,29 +214,16 @@ export const TextInput = (props: TextInputProps) => { } }); - const handleFileChange = (event: FileEvent) => { - props.handleFileChange(event); - if (event.target) event.target.value = ''; - }; - - const getFileType = () => { - if (props.isFullFileUpload) return props.fullFileUploadAllowedTypes === '' ? '*' : props.fullFileUploadAllowedTypes; - if (props.uploadsConfig?.fileUploadSizeAndTypes?.length) { - const allowedFileTypes = props.uploadsConfig?.fileUploadSizeAndTypes.map((allowed) => allowed.fileTypes).join(','); - if (allowedFileTypes.includes('*')) return '*'; - else return allowedFileTypes; - } - return '*'; - }; - + // --- UI Render --- return (
{ {warningMessage()}
+ +
{speechError()}
+
{props.uploadsConfig?.isImageUploadAllowed ? ( <> @@ -201,7 +244,7 @@ export const TextInput = (props: TextInputProps) => { type="button" class="m-0 h-14 flex items-center justify-center" isDisabled={props.disabled || isSendButtonDisabled()} - on:click={handleImageUploadClick} + onClick={handleImageUploadClick} > Image Upload @@ -226,7 +269,7 @@ export const TextInput = (props: TextInputProps) => { type="button" class="m-0 h-14 flex items-center justify-center" isDisabled={props.disabled || isSendButtonDisabled()} - on:click={handleFileUploadClick} + onClick={handleFileUploadClick} > File Upload @@ -245,20 +288,24 @@ export const TextInput = (props: TextInputProps) => { onInput={handleInput} value={props.inputValue} fontSize={props.fontSize} - disabled={props.disabled} + disabled={props.disabled || isSpeechRecording()} placeholder={props.placeholder ?? 'Type your question'} /> - {props.uploadsConfig?.isSpeechToTextEnabled ? ( - - Record Audio - - ) : null} + {/* Speech-to-Text Button */} + { + if (!isSpeechRecording()) { + handleStartSpeechToText(); + } else { + handleStopSpeechToText(); + } + }} + > + {/* {isSpeechRecording() ? `${elapsedTime()}` : ''} */} + { sendButtonColor={props.sendButtonColor} type="button" isDisabled={props.disabled || isSendButtonDisabled()} - class="m-0 h-14 flex items-center justify-center" - on:click={submit} + class="m-0 h-[60px] flex items-center justify-center" + onClick={submit} > - Send + {/* Send */} } > @@ -278,11 +325,9 @@ export const TextInput = (props: TextInputProps) => { type="button" isDisabled={props.isMessageStopping} class="m-0 h-14 flex items-center justify-center" - on:click={() => props.onAbort?.()} + onclick={() => props.onAbort?.()} isStopping={props.isMessageStopping} - > - Stop - + />
diff --git a/src/components/treeview/RichTreeView.tsx b/src/components/treeview/RichTreeView.tsx index bd095c498..eab4cfc13 100644 --- a/src/components/treeview/RichTreeView.tsx +++ b/src/components/treeview/RichTreeView.tsx @@ -1,6 +1,7 @@ import { createContext, useContext, JSXElement, Show, For, createEffect, mergeProps } from 'solid-js'; import { createStore } from 'solid-js/store'; import { Dynamic } from 'solid-js/web'; +// import './TreeView.css'; // TreeView Context Type type TreeViewContextType = { @@ -40,7 +41,7 @@ const ChevronRightIcon = () => ( stroke-width="2" stroke-linecap="round" stroke-linejoin="round" - style={{ transition: 'transform 0.2s' }} + class="transition-transform duration-200" > @@ -57,7 +58,7 @@ const ChevronDownIcon = () => ( stroke-width="2" stroke-linecap="round" stroke-linejoin="round" - style={{ transition: 'transform 0.2s' }} + class="transition-transform duration-200" > @@ -192,63 +193,11 @@ export const RichTreeView = (props: RichTreeViewProps) => { isHighlighted, }; - // Add a style block for dynamic indentation and hover effects + // Add a style block for dynamic indentation const treeViewStyle = ` .tree-item-children { padding-left: ${mergedProps.indentationLevel}px !important; } - .tree-item-content { - display: flex; - align-items: center; - padding: 0.5rem 0.25rem; - border-radius: 0.25rem; - cursor: pointer; - border-left: 3px solid transparent; - transition: background-color 0.15s ease, border-color 0.15s ease; - } - .tree-item-icon-container { - margin-right: 0.25rem; - } - .tree-item-icon { - margin-right: 0.5rem; - } - .tree-item-label { - flex-grow: 1; - } - .tree-item-content:hover { - background-color: rgba(0, 0, 0, 0.06); - } - .tree-item-content.selected { - background-color: rgba(25, 118, 210, 0.12); - border-left-color: #1976d2; - } - .tree-item-content.selected:hover { - background-color: rgba(25, 118, 210, 0.2); - } - .tree-item-content.highlighted { - background-color: rgba(255, 193, 7, 0.1); - } - .expand-detail-btn { - padding: 4px; - border-radius: 4px; - border: none; - background: transparent; - cursor: pointer; - color: inherit; - display: flex; - align-items: center; - opacity: 0.4; - transition: opacity 0.15s ease, background-color 0.15s ease, transform 0.15s ease; - } - .expand-detail-btn:hover { - opacity: 1; - background-color: rgba(0, 0, 0, 0.08); - transform: scale(1.15); - } - .status-icon { - display: flex; - align-items: center; - } `; return ( @@ -296,18 +245,20 @@ export const TreeItem = (props: TreeItemProps) => { return (
-
+
{!isLeaf && }
-
+
{props.icon ? props.icon : props.expandedIcon && context.isExpanded(props.itemId) ? props.expandedIcon : getDefaultIcon()}
-
{props.label}
+
{props.label}
{props.endIcon}
diff --git a/src/components/treeview/WorkflowTreeView.tsx b/src/components/treeview/WorkflowTreeView.tsx index 49bfbe838..808332c91 100644 --- a/src/components/treeview/WorkflowTreeView.tsx +++ b/src/components/treeview/WorkflowTreeView.tsx @@ -2,10 +2,15 @@ import { createSignal, onMount, Show, For } from 'solid-js'; import { RichTreeView, TreeItem } from './RichTreeView'; import { getAgentflowIcon, MaximizeIcon } from './AgentflowIcons'; import { NodeDetailsDialog } from './NodeDetailsDialog'; -import { WorkflowNode, buildTreeData, getStatusIcon, getExecutionStatus } from './workflowUtils'; -// Re-export WorkflowNode for consumers -export type { WorkflowNode }; +// Define the workflow node type to match the provided JSON data +export type WorkflowNode = { + nodeId: string; + nodeLabel: string; + data: any; + previousNodeIds: string[]; + status: 'FINISHED' | 'PENDING' | 'RUNNING' | 'ERROR' | 'INPROGRESS' | 'STOPPED'; +}; // Props for the workflow tree component type WorkflowTreeViewProps = { @@ -28,6 +33,163 @@ type WorkflowTreeViewProps = { const defaultBackgroundColor = '#f7f8ff'; const defaultTextColor = '#303235'; const defaultFontSize = 16; +const FLOWISE_CREDENTIAL_ID = 'FLOWISE_CREDENTIAL_ID'; + +// Recursive function to remove credential IDs from data +const removeFlowiseCredentialId = (data: any): any => { + if (!data || typeof data !== 'object') return data; + + // Handle arrays + if (Array.isArray(data)) { + return data.map((item) => removeFlowiseCredentialId(item)); + } + + // Clone the object to avoid modifying the original + const cleanedData = { ...data }; + + for (const key in cleanedData) { + if (key === FLOWISE_CREDENTIAL_ID) { + delete cleanedData[key]; + } else if (typeof cleanedData[key] === 'object' && cleanedData[key] !== null) { + cleanedData[key] = removeFlowiseCredentialId(cleanedData[key]); + } + } + return cleanedData; +}; + +// Syntax highlighting function for JSON +function syntaxHighlight(json: string) { + if (!json) return ''; + + // Escape HTML special characters + json = json.replace(/&/g, '&').replace(//g, '>'); + + return json.replace( + // eslint-disable-next-line no-useless-escape + /("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, + function (match) { + let cls = 'number'; + if (/^"/.test(match)) { + if (/:$/.test(match)) { + cls = 'key'; + } else { + cls = 'string'; + } + } else if (/true|false/.test(match)) { + cls = 'boolean'; + } else if (/null/.test(match)) { + cls = 'null'; + } + return '' + match + ''; + }, + ); +} + +// Copy icon component +const CopyIcon = () => ( + + + + +); + +// Check icon component +const CheckIcon = () => ( + + + +); + +// Status icon components +const FinishedIcon = () => ( + + + + +); + +const PendingIcon = () => ( + + + + +); + +const RunningIcon = () => ( + + + + + +); + +const ErrorIcon = () => ( + + + + + +); // Chevron icons for the collapsible panel const ChevronDownIcon = () => ( @@ -64,6 +226,50 @@ const ChevronRightIcon = () => ( ); +// Function to get the appropriate icon based on node status +const getStatusIcon = (status: string) => { + let icon; + switch (status) { + case 'FINISHED': + icon = ; + break; + case 'PENDING': + icon = ; + break; + case 'RUNNING': + case 'INPROGRESS': + icon = ; + break; + case 'ERROR': + icon = ; + break; + case 'STOPPED': + icon = ; + break; + default: + icon = ; + } + return icon; +}; + +// Add a new icon for the STOPPED status +const StoppedIcon = () => ( + + + + +); + // Main component for visualizing workflow as a tree export const WorkflowTreeView = (props: WorkflowTreeViewProps) => { const [expandedNodes, setExpandedNodes] = createSignal([]); @@ -73,14 +279,299 @@ export const WorkflowTreeView = (props: WorkflowTreeViewProps) => { const [dialogNode, setDialogNode] = createSignal(null); const [isDialogOpen, setIsDialogOpen] = createSignal(false); + // Get overall execution status of the workflow + const getExecutionStatus = (executionTree: any[]) => { + const getAllStatuses = (nodes: any[]): string[] => { + let statuses: string[] = []; + nodes.forEach((node) => { + if (node.status) statuses.push(node.status); + if (node.children && node.children.length > 0) { + statuses = [...statuses, ...getAllStatuses(node.children)]; + } + }); + return statuses; + }; + + const statuses = getAllStatuses(executionTree); + if (statuses.includes('ERROR')) return 'ERROR'; + if (statuses.includes('RUNNING') || statuses.includes('INPROGRESS')) return 'INPROGRESS'; + if (statuses.includes('STOPPED')) return 'STOPPED'; + if (statuses.every((status) => status === 'FINISHED')) return 'FINISHED'; + return null; + }; + + // Transform the execution data into a tree structure + const buildTreeData = (nodes: WorkflowNode[]) => { + // for each node, loop through each and every nested key of node.data, and remove the key if it is equal to FLOWISE_CREDENTIAL_ID + nodes.forEach((node) => { + const removeFlowiseCredentialId = (data: any) => { + for (const key in data) { + if (key === FLOWISE_CREDENTIAL_ID) { + delete data[key]; + } + if (typeof data[key] === 'object' && data[key] !== null) { + removeFlowiseCredentialId(data[key]); + } + } + }; + if (node.data) removeFlowiseCredentialId(node.data); + }); + + // Create a map for quick node lookup + // Use execution index to make each node instance unique + const nodeMap = new Map(); + nodes.forEach((node, index) => { + const uniqueNodeId = `${node.nodeId}_${index}`; + nodeMap.set(uniqueNodeId, { ...node, uniqueNodeId, children: [], executionIndex: index }); + }); + + // Identify iteration nodes and their children + const iterationGroups = new Map(); // parentId -> Map of iterationIndex -> nodes + + // Group iteration child nodes by their parent and iteration index + nodes.forEach((node, index) => { + if (node.data?.parentNodeId && node.data?.iterationIndex !== undefined) { + const parentId = node.data.parentNodeId; + const iterationIndex = node.data.iterationIndex; + + if (!iterationGroups.has(parentId)) { + iterationGroups.set(parentId, new Map()); + } + + const iterationMap = iterationGroups.get(parentId); + if (!iterationMap.has(iterationIndex)) { + iterationMap.set(iterationIndex, []); + } + + iterationMap.get(iterationIndex).push(`${node.nodeId}_${index}`); + } + }); + + // Create virtual iteration container nodes + iterationGroups.forEach((iterationMap, parentId) => { + iterationMap.forEach((nodeIds: string[], iterationIndex: number) => { + // Find the parent iteration node + let parentNode = null; + for (let i = 0; i < nodes.length; i++) { + if (nodes[i].nodeId === parentId) { + parentNode = nodes[i]; + break; + } + } + + if (!parentNode) return; + + // Get iteration context from first child node + const firstChildId = nodeIds[0]; + const firstChild = nodeMap.get(firstChildId); + const iterationContext = firstChild?.data?.iterationContext || { index: iterationIndex }; + + // Create a virtual node for this iteration + const iterationNodeId = `${parentId}_${iterationIndex}`; + const iterationLabel = `Iteration #${iterationIndex}`; + + // Determine status based on child nodes + const childNodes = nodeIds.map((id: string) => nodeMap.get(id)); + const iterationStatus = childNodes.some((n: any) => n.status === 'ERROR') + ? 'ERROR' + : childNodes.some((n: any) => n.status === 'INPROGRESS' || n.status === 'RUNNING') + ? 'INPROGRESS' + : childNodes.every((n: any) => n.status === 'FINISHED') + ? 'FINISHED' + : 'PENDING'; + + // Create the virtual node and add to nodeMap + const virtualNode = { + nodeId: iterationNodeId, + nodeLabel: iterationLabel, + data: { + name: 'iterationAgentflow', + iterationIndex, + iterationContext, + isVirtualNode: true, + parentIterationId: parentId, + }, + previousNodeIds: [], // Will be handled in the main tree building + status: iterationStatus, + uniqueNodeId: iterationNodeId, + children: [], + executionIndex: -1, // Flag as a virtual node + }; + + nodeMap.set(iterationNodeId, virtualNode); + + // Set this virtual node as the parent for all nodes in this iteration + nodeIds.forEach((childId: string) => { + const childNode = nodeMap.get(childId); + if (childNode) { + childNode.virtualParentId = iterationNodeId; + } + }); + }); + }); + + // Root nodes have no previous nodes + const rootNodes: any[] = []; + const processedNodes = new Set(); + + // First pass: Build the main tree structure (excluding iteration children) + nodes.forEach((node, index) => { + const uniqueNodeId = `${node.nodeId}_${index}`; + const treeNode = nodeMap.get(uniqueNodeId); + + // Skip nodes that belong to an iteration (they'll be added to their virtual parent) + if (node.data?.parentNodeId && node.data?.iterationIndex !== undefined) { + return; + } + + if (node.previousNodeIds.length === 0) { + rootNodes.push(treeNode); + } else { + // Find the most recent (latest) parent node among all previous nodes + let mostRecentParentIndex = -1; + let mostRecentParentId = null; + + node.previousNodeIds.forEach((parentId) => { + // Find the most recent instance of this parent node + for (let i = 0; i < index; i++) { + if (nodes[i].nodeId === parentId && i > mostRecentParentIndex) { + mostRecentParentIndex = i; + mostRecentParentId = parentId; + } + } + }); + + // Only add to the most recent parent + if (mostRecentParentIndex !== -1 && mostRecentParentId) { + const parentUniqueId = `${mostRecentParentId}_${mostRecentParentIndex}`; + const parentNode = nodeMap.get(parentUniqueId); + if (parentNode) { + parentNode.children.push(treeNode); + processedNodes.add(uniqueNodeId); + } + } + } + }); + + // Second pass: Build the iteration sub-trees + iterationGroups.forEach((iterationMap, parentId) => { + // Find all instances of the parent node + const parentInstances: string[] = []; + nodes.forEach((node, index) => { + if (node.nodeId === parentId) { + parentInstances.push(`${node.nodeId}_${index}`); + } + }); + + // Find the latest instance of the parent node that exists in the tree + let latestParent: any = null; + for (let i = parentInstances.length - 1; i >= 0; i--) { + const parentId = parentInstances[i]; + const parent = nodeMap.get(parentId); + if (parent) { + latestParent = parent; + break; + } + } + + if (!latestParent) return; + + // Add all virtual iteration nodes to the parent + iterationMap.forEach((nodeIds: string[], iterationIndex: number) => { + const iterationNodeId = `${parentId}_${iterationIndex}`; + const virtualNode = nodeMap.get(iterationNodeId); + if (virtualNode) { + latestParent.children.push(virtualNode); + } + }); + }); + + // Third pass: Build the structure inside each virtual iteration node + nodeMap.forEach((node) => { + if (node.virtualParentId) { + const virtualParent = nodeMap.get(node.virtualParentId); + if (virtualParent) { + if (node.previousNodeIds.length === 0) { + // This is a root node within the iteration + virtualParent.children.push(node); + } else { + // Find its parent within the same iteration + let parentFound = false; + for (const prevNodeId of node.previousNodeIds) { + // Look for nodes with the same previous node ID in the same iteration + nodeMap.forEach((potentialParent) => { + if ( + potentialParent.nodeId === prevNodeId && + potentialParent.data?.iterationIndex === node.data?.iterationIndex && + potentialParent.data?.parentNodeId === node.data?.parentNodeId && + !parentFound + ) { + potentialParent.children.push(node); + parentFound = true; + } + }); + } + + // If no parent was found within the iteration, add directly to virtual parent + if (!parentFound) { + virtualParent.children.push(node); + } + } + } + } + }); + + // Final pass: Sort all children arrays to ensure iteration nodes appear first + const sortChildrenNodes = (node: any) => { + if (node.children && node.children.length > 0) { + // Sort children: iteration nodes first, then others by their original execution order + node.children.sort((a: any, b: any) => { + // Check if a is an iteration node + const aIsIteration = a.data?.name === 'iterationAgentflow' || a.data?.isVirtualNode; + // Check if b is an iteration node + const bIsIteration = b.data?.name === 'iterationAgentflow' || b.data?.isVirtualNode; + + // If both are iterations or both are not iterations, preserve original order + if (aIsIteration === bIsIteration) { + return a.executionIndex - b.executionIndex; + } + + // Otherwise, put iterations first + return aIsIteration ? -1 : 1; + }); + + // Recursively sort children's children + node.children.forEach(sortChildrenNodes); + } + }; + + // Apply sorting to all root nodes and their children + rootNodes.forEach(sortChildrenNodes); + + // Transform to the required format + const transformNode = (node: any) => ({ + id: node.uniqueNodeId, + label: node.nodeLabel, + name: node.data?.name, + status: node.status, + data: node.data, + children: node.children.map(transformNode), + }); + + const transformedNodes = rootNodes.map(transformNode); + + // Determine the overall execution status + const status = getExecutionStatus(transformedNodes); + setExecutionStatus(status); + + return transformedNodes; + }; + // Initialize tree data on mount onMount(() => { const treeNodes = buildTreeData(props.workflowData); setTreeData(treeNodes); - const status = getExecutionStatus(treeNodes); - setExecutionStatus(status); - // Expand root nodes by default if (treeNodes.length > 0) { setExpandedNodes(treeNodes.map((node) => node.id)); @@ -140,6 +631,43 @@ export const WorkflowTreeView = (props: WorkflowTreeViewProps) => { ); }; + // Get selected node details + // const getSelectedNodeDetails = () => { + // if (!selectedNode()) return null; + + // // Find the node in the tree data + // const findNodeById = (nodes: any[], id: string): any => { + // for (const node of nodes) { + // if (node.id === id) return node; + // if (node.children && node.children.length) { + // const found = findNodeById(node.children, id); + // if (found) return found; + // } + // } + // return null; + // }; + + // const selectedNodeId = selectedNode(); + // if (!selectedNodeId) return null; + + // const node = findNodeById(treeData(), selectedNodeId); + // if (node) { + // return { + // nodeLabel: node.label, + // data: removeFlowiseCredentialId(node.data), + // status: node.status, + // }; + // } + // return null; + // }; + + // Get highlighted JSON string for the selected node + // const getHighlightedJson = () => { + // const nodeDetails = getSelectedNodeDetails(); + // if (!nodeDetails) return ''; + // return syntaxHighlight(JSON.stringify(nodeDetails.data || {}, null, 2)); + // }; + return (
{ const hasWindow = typeof window !== 'undefined'; const [isBotOpened, setIsBotOpened] = createSignal(false); + const [isFullScreen, setIsFullScreen] = createSignal(true); const [isBotStarted, setIsBotStarted] = createSignal(false); const [viewport, setViewport] = createSignal({ height: hasWindow ? window.innerHeight : 0, @@ -103,6 +104,7 @@ export const Bubble = (props: BubbleProps) => { return ( <> + @@ -150,7 +152,7 @@ export const Bubble = (props: BubbleProps) => { right: `${Math.max(0, Math.min(buttonPosition().right, viewport().width - getChatWindowWidthForPositioning() - 10))}px`, }} class={ - `fixed sm:right-5 rounded-lg ${hasCustomChatWindowWidth() ? '' : 'w-full sm:w-[400px]'}` + + `${isFullScreen() ? 'fullscreen' : ''} fixed sm:right-5 rounded-lg ${hasCustomChatWindowWidth() ? '' : 'w-full sm:w-[400px]'} max-h-[704px]` + (isBotOpened() ? ' opacity-1' : ' opacity-0 pointer-events-none') + ` bottom-${chatWindowBottom}px` } @@ -161,15 +163,42 @@ export const Bubble = (props: BubbleProps) => {
- {/* Cross button For only mobile screen use this */} +
diff --git a/src/features/bubble/components/Tooltip.tsx b/src/features/bubble/components/Tooltip.tsx index 487f249f0..b09e043ad 100644 --- a/src/features/bubble/components/Tooltip.tsx +++ b/src/features/bubble/components/Tooltip.tsx @@ -47,8 +47,12 @@ const Tooltip = (props: TooltipProps) => {
disclaimer={props.theme?.disclaimer} dateTimeToggle={props.theme?.chatWindow?.dateTimeToggle} renderHTML={props.theme?.chatWindow?.renderHTML} - dialogContainer={resolveDialogContainer(props.dialogContainer)} />
diff --git a/src/global.d.ts b/src/global.d.ts index 35306c6fc..15d3cc490 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -1 +1,5 @@ declare module '*.css'; +declare module '*.mp3' { + const src: string; + export default src; +} diff --git a/src/queries/sendMessageQuery.ts b/src/queries/sendMessageQuery.ts index 8e41aec75..03befa586 100644 --- a/src/queries/sendMessageQuery.ts +++ b/src/queries/sendMessageQuery.ts @@ -1,6 +1,8 @@ import { FileUpload, IAction } from '@/components/Bot'; import { sendRequest } from '@/utils/index'; - +import { handleApiError } from '@/utils/apiErrorHandler'; +import { apiHost, tenantUuid } from '@/store/chatbotConfig'; +import { getSessionStorageChatflow } from '@/utils'; export type IncomingInput = { question?: string; form?: Record; @@ -16,6 +18,7 @@ export type IncomingInput = { type BaseRequest = { apiHost?: string; + tenant_uuid?: string; onRequest?: (request: RequestInit) => Promise; }; @@ -43,9 +46,25 @@ export type UpdateFeedbackRequest = BaseRequest & { body?: Partial; }; +export type MessageFeedbackInput = { + thumbs_up: boolean; + thumbs_down: boolean; + feedback: string; + inaccurate?: boolean; + inappropriate?: boolean; + helpful?: boolean; +}; + +export type SubmitMessageFeedbackRequest = BaseRequest & { + chatflowid: string; + externalChatMsgId: string; + body: MessageFeedbackInput; +}; + export type UpsertRequest = BaseRequest & { chatflowid: string; apiHost?: string; + tenant_uuid?: string; formData: FormData; }; @@ -54,7 +73,7 @@ export type LeadCaptureInput = { chatId: string; name?: string; email?: string; - phone?: string; + consentCheckbox?: any; }; export type LeadCaptureRequest = BaseRequest & { @@ -95,14 +114,44 @@ export const updateFeedbackQuery = ({ id, apiHost = 'http://localhost:3000', bod onRequest: onRequest, }); -export const sendMessageQuery = ({ chatflowid, apiHost = 'http://localhost:3000', body, onRequest }: MessageRequest) => - sendRequest({ +export const sendMessageQuery = async ({ chatflowid, apiHost = 'http://localhost:3000', body, onRequest }: MessageRequest) => { + const stored = chatflowid ? getSessionStorageChatflow(chatflowid) : {}; + const token = stored?.token || ''; + + const headers: Record = { + 'Content-Type': 'application/json', + }; + + if (token) { + headers['Authorization'] = `Bearer ${token}`; + } + + const { data, error } = await sendRequest({ method: 'POST', - url: `${apiHost}/api/v1/prediction/${chatflowid}`, + url: `${apiHost}/api/v1/respond`, body, - onRequest: onRequest, + headers, + onRequest, }); + if (error) { + let status, errorCode, errorMsg; + if (typeof error === 'object' && error !== null) { + status = (error as any).status; + errorCode = (error as any).errorCode; + errorMsg = (error as any).errorMsg || (error as any).message || String(error); + } else { + errorMsg = String(error); + } + + // Handle API error and return wrapped error to caller + handleApiError(status || 500, errorCode, errorMsg); + return { error: { message: errorMsg, status, errorCode } }; + } + + return { data }; +}; + export const createAttachmentWithFormData = ({ chatflowid, apiHost = 'http://localhost:3000', formData, onRequest }: UpsertRequest) => sendRequest({ method: 'POST', @@ -148,14 +197,87 @@ export const sendFileDownloadQuery = ({ apiHost = 'http://localhost:3000', body, onRequest: onRequest, }); -export const addLeadQuery = ({ apiHost = 'http://localhost:3000', body, onRequest }: LeadCaptureRequest) => - sendRequest({ +// export const addLeadQuery = ({ apiHost = 'http://localhost:3000', body, onRequest }: LeadCaptureRequest) => +// sendRequest({ +// method: 'POST', +// url: `${apiHost}/api/v1/leads/`, +// body, +// onRequest: onRequest, +// }); + +/* get token by email*/ +export const submitMessageFeedbackQuery = async ({ + chatflowid, + apiHost = 'http://localhost:3000', + externalChatMsgId, + body, + onRequest, +}: SubmitMessageFeedbackRequest) => { + // GET TOKEN FROM STORAGE (same logic as sendMessageQuery) + const stored = chatflowid ? getSessionStorageChatflow(chatflowid) : {}; + const token = stored?.token || ''; + + // BUILD HEADERS WITH AUTH + const headers: Record = { + 'Content-Type': 'application/json', + }; + + if (token) { + headers['Authorization'] = `Bearer ${token}`; + } + + // MAKE REQUEST + return sendRequest({ + method: 'POST', + url: `${apiHost}/api/v1/respond/feedback/${externalChatMsgId}`, + body, + headers, // Includes Authorization if token exists + onRequest, + }); +}; + +export async function fetchAuthToken(name: string, email: string, apiHost = 'http://localhost:3000') { + const tenant_uuid = tenantUuid() || ''; + + if (!email || !tenant_uuid || !apiHost) { + throw new Error('Missing required parameters: email, tenant_uuid, or apiHost'); + } + + const url = `${apiHost.replace(/\/$/, '')}/api/v1/users/get-token`; + + const body = { + name, + email, + tenant_external_uid: tenant_uuid, + }; + + const { data, error } = await sendRequest<{ token: string }>({ + url, method: 'POST', - url: `${apiHost}/api/v1/leads/`, body, - onRequest: onRequest, }); + if (error) { + let status, errorCode, errorMsg; + if (typeof error === 'object' && error !== null) { + status = (error as any).status; + errorCode = (error as any).errorCode; + errorMsg = (error as any).errorMsg || (error as any).message || String(error); + } else { + errorMsg = String(error); + } + handleApiError(status || 500, errorCode, errorMsg); + throw new Error(errorMsg); + } + + if (!data || !data.token) { + handleApiError(404, undefined, 'Auth token not found in response.'); + throw new Error('Auth token not found in response.'); + } + + return data.token; +} + export const generateTTSQuery = async ({ apiHost = 'http://localhost:3000', body, onRequest, signal }: GenerateTTSRequest): Promise => { const headers = { 'Content-Type': 'application/json', diff --git a/src/store/chatbotConfig.ts b/src/store/chatbotConfig.ts new file mode 100644 index 000000000..793d09b37 --- /dev/null +++ b/src/store/chatbotConfig.ts @@ -0,0 +1,11 @@ +import { createSignal } from 'solid-js'; + +export type ChatbotGlobalConfig = { + apiHost: string; + tenant_uuid: string; +}; + +const [apiHost, setApiHost] = createSignal(null); +const [tenantUuid, setTenantUuid] = createSignal(null); + +export { apiHost, setApiHost, tenantUuid, setTenantUuid }; diff --git a/src/utils/apiErrorHandler.ts b/src/utils/apiErrorHandler.ts new file mode 100644 index 000000000..601d40327 --- /dev/null +++ b/src/utils/apiErrorHandler.ts @@ -0,0 +1,29 @@ +import { showInlineErrorToast } from './showError'; + +/** + * Default error messages mapped by status code. + */ +const defaultMessages: Record = { + 400: 'Invalid request. Please check your input and try again.', + 401: 'You are not authorized. Please log in again.', + 403: 'You do not have permission to perform this action.', + 404: 'Resource not found. It may have been removed or never existed.', + 409: 'Conflict detected. Please refresh and try again.', + 422: 'Some information is invalid or duplicated. Please review and try again.', + 500: 'Server error. Please try again later.', + 502: 'Service temporarily unavailable. Please try again soon.', + 200: 'Action completed, but there may be an issue. Please check details.', +}; + +/** + * Shows a toast with a simple, user-friendly error message based on status code. + * @param status The HTTP status code from the response + * @param errorCode (optional) The backend-defined error code (ignored) + * @param errorMsg (optional) The backend-defined error message (ignored) + */ +export function handleApiError(status: number, errorCode?: string, errorMsg?: string) { + // Always use the frontend-defined message for the status code + const message = defaultMessages[status] || 'An unexpected error occurred. Please try again.'; + + showInlineErrorToast(message); +} diff --git a/src/utils/audioRecording.ts b/src/utils/audioRecording.ts index 9c744fa3e..3e2b96dce 100644 --- a/src/utils/audioRecording.ts +++ b/src/utils/audioRecording.ts @@ -32,6 +32,7 @@ export function startAudioRecording( .start() .then(() => { //on success show the controls to stop and cancel the recording + console.log('Recording Audio Started'); if (onRecordingStart) { onRecordingStart(true); } @@ -341,3 +342,48 @@ export const audioRecorder: AudioRecorder = { getEventListeners(audioRecorder.mediaRecorder) will return an empty array of events.*/ }, }; + +// --------- Speech Recognition (Speech-to-Text) API --------- +type SpeechToTextOptions = { + lang?: string; + onResult: (text: string) => void; + onStart?: () => void; + onEnd?: () => void; + onError?: (error: string) => void; +}; + +let recognition: any = null; + +export function isSpeechRecognitionSupported() { + return !!((window as any).SpeechRecognition || (window as any).webkitSpeechRecognition); +} + +export function startSpeechRecognition({ lang = 'en-US', onResult, onStart, onEnd, onError }: SpeechToTextOptions) { + const SpeechRecognition = (window as any).SpeechRecognition || (window as any).webkitSpeechRecognition; + if (!SpeechRecognition) { + if (onError) onError('Speech-to-text only works on Chrome.'); + return; + } + recognition = new SpeechRecognition(); + recognition.continuous = false; + recognition.interimResults = false; + recognition.lang = lang; + recognition.onresult = (event: any) => { + const text = event.results[0][0].transcript; + onResult(text); + }; + recognition.onerror = (event: any) => { + if (onError) onError(event.error || 'Speech recognition error'); + }; + recognition.onend = () => { + if (onEnd) onEnd(); + }; + recognition.onstart = () => { + if (onStart) onStart(); + }; + recognition.start(); +} + +export function stopSpeechRecognition() { + if (recognition) recognition.stop(); +} diff --git a/src/utils/chatInputHistory.ts b/src/utils/chatInputHistory.ts index 83443381b..653cff850 100644 --- a/src/utils/chatInputHistory.ts +++ b/src/utils/chatInputHistory.ts @@ -12,7 +12,8 @@ export class ChatInputHistory { constructor( private getMaxHistory: () => number = () => 10, - private storage: ChatHistoryStorage = localStorage, + + private storage: ChatHistoryStorage = sessionStorage, ) { this.maxHistory = this.getMaxHistory() ?? 10; this.loadHistory(); @@ -68,7 +69,7 @@ export class ChatInputHistory { try { this.storage.setItem('chatInputHistory', JSON.stringify(this.history)); } catch (error: unknown) { - console.warn('Failed to save chat history to localStorage:', error instanceof Error ? error.message : error); + console.warn('Failed to save chat history to sessionStorage:', error instanceof Error ? error.message : error); } } @@ -80,7 +81,7 @@ export class ChatInputHistory { this.history = Array.isArray(parsed) ? parsed : []; } } catch (error: unknown) { - console.warn('Failed to load chat history from localStorage:', error instanceof Error ? error.message : error); + console.warn('Failed to load chat history from sessionStorage:', error instanceof Error ? error.message : error); } } } diff --git a/src/utils/index.ts b/src/utils/index.ts index 6db0debc3..b0a1c0096 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -74,27 +74,32 @@ export const sendRequest = async ( } }; -export const setLocalStorageChatflow = (chatflowid: string, chatId: string, saveObj: Record = {}) => { - const chatDetails = localStorage.getItem(`${chatflowid}_EXTERNAL`); +/** + * Per-chatflow storage backed by sessionStorage (clears when the tab/browser + * session ends). Key is always dynamic: `${chatflowid}_EXTERNAL`. + * Never hardcode this key — every caller must pass the real chatflowid. + */ +export const setSessionStorageChatflow = (chatflowid: string, chatId: string, saveObj: Record = {}) => { + const chatDetails = sessionStorage.getItem(`${chatflowid}_EXTERNAL`); const obj = { ...saveObj }; if (chatId) obj.chatId = chatId; if (!chatDetails) { - localStorage.setItem(`${chatflowid}_EXTERNAL`, JSON.stringify(obj)); + sessionStorage.setItem(`${chatflowid}_EXTERNAL`, JSON.stringify(obj)); } else { try { const parsedChatDetails = JSON.parse(chatDetails); - localStorage.setItem(`${chatflowid}_EXTERNAL`, JSON.stringify({ ...parsedChatDetails, ...obj })); + sessionStorage.setItem(`${chatflowid}_EXTERNAL`, JSON.stringify({ ...parsedChatDetails, ...obj })); } catch (e) { const chatId = chatDetails; obj.chatId = chatId; - localStorage.setItem(`${chatflowid}_EXTERNAL`, JSON.stringify(obj)); + sessionStorage.setItem(`${chatflowid}_EXTERNAL`, JSON.stringify(obj)); } } }; -export const getLocalStorageChatflow = (chatflowid: string) => { - const chatDetails = localStorage.getItem(`${chatflowid}_EXTERNAL`); +export const getSessionStorageChatflow = (chatflowid: string) => { + const chatDetails = sessionStorage.getItem(`${chatflowid}_EXTERNAL`); if (!chatDetails) return {}; try { return JSON.parse(chatDetails); @@ -103,20 +108,21 @@ export const getLocalStorageChatflow = (chatflowid: string) => { } }; -export const removeLocalStorageChatHistory = (chatflowid: string) => { - const chatDetails = localStorage.getItem(`${chatflowid}_EXTERNAL`); +export const removeSessionStorageChatHistory = (chatflowid: string) => { + const chatDetails = sessionStorage.getItem(`${chatflowid}_EXTERNAL`); if (!chatDetails) return; try { const parsedChatDetails = JSON.parse(chatDetails); - if (parsedChatDetails.lead) { - // Dont remove lead when chat is cleared - const obj = { lead: parsedChatDetails.lead }; - localStorage.removeItem(`${chatflowid}_EXTERNAL`); - localStorage.setItem(`${chatflowid}_EXTERNAL`, JSON.stringify(obj)); - } else { - localStorage.removeItem(`${chatflowid}_EXTERNAL`); + // Preserve both token and lead + const obj: any = {}; + if (parsedChatDetails.token) obj.token = parsedChatDetails.token; + if (parsedChatDetails.lead) obj.lead = parsedChatDetails.lead; + sessionStorage.removeItem(`${chatflowid}_EXTERNAL`); + if (Object.keys(obj).length) { + sessionStorage.setItem(`${chatflowid}_EXTERNAL`, JSON.stringify(obj)); } } catch (e) { + console.error(e); return; } }; diff --git a/src/utils/showError.ts b/src/utils/showError.ts new file mode 100644 index 000000000..c6b2c69c0 --- /dev/null +++ b/src/utils/showError.ts @@ -0,0 +1,106 @@ +/** + * Injects or returns the toast container element for inline toasts. + */ +function getOrCreateToastContainer(): HTMLElement { + let container = document.getElementById('custom-toast-container'); + if (!container) { + container = document.createElement('div'); + container.id = 'custom-toast-container'; + container.style.position = 'fixed'; + container.style.top = '20px'; + container.style.right = '20px'; + container.style.zIndex = '9999'; + container.style.display = 'flex'; + container.style.flexDirection = 'column'; + container.style.gap = '12px'; // Spacing between toasts + document.body.appendChild(container); + } + return container; +} + +/** + * Creates a floating toast-like error notification in the DOM. + * @param errorMsg The error message to display + */ +export function showInlineErrorToast(errorMsg: string) { + const container = getOrCreateToastContainer(); + + const errorEl = document.createElement('div'); + errorEl.style.maxWidth = '350px'; + errorEl.style.padding = '14px 18px'; + errorEl.style.borderRadius = '8px'; + errorEl.style.boxShadow = '0 4px 12px rgba(0, 0, 0, 0.1)'; + errorEl.style.background = '#fff8f8'; + errorEl.style.color = '#b00020'; + errorEl.style.fontFamily = 'Segoe UI, sans-serif'; + errorEl.style.fontSize = '15px'; + errorEl.style.zIndex = '9999'; + errorEl.style.display = 'flex'; + errorEl.style.alignItems = 'center'; + errorEl.style.justifyContent = 'space-between'; + errorEl.style.gap = '12px'; + errorEl.style.transition = 'opacity 0.3s ease'; + errorEl.style.border = '1px solid #f4cccc'; + + const msgSpan = document.createElement('span'); + msgSpan.style.flex = '1'; + msgSpan.textContent = errorMsg; + + const dismissBtn = document.createElement('button'); + dismissBtn.setAttribute('aria-label', 'Close'); + dismissBtn.style.fontSize = '18px'; + dismissBtn.style.fontWeight = 'bold'; + dismissBtn.style.color = '#b00020'; + dismissBtn.style.border = 'none'; + dismissBtn.style.background = 'transparent'; + dismissBtn.style.cursor = 'pointer'; + dismissBtn.style.borderRadius = '50%'; + dismissBtn.style.width = '36px'; + dismissBtn.style.height = '36px'; + dismissBtn.style.display = 'flex'; + dismissBtn.style.alignItems = 'center'; + dismissBtn.style.justifyContent = 'center'; + dismissBtn.style.transition = 'background 0.2s ease, color 0.2s ease'; + dismissBtn.style.padding = '0'; + + // SVG cross icon + dismissBtn.innerHTML = ` + + + + `; + + dismissBtn.onmouseenter = () => { + dismissBtn.style.background = '#630214'; + dismissBtn.style.color = '#fff'; + }; + + dismissBtn.onmouseleave = () => { + dismissBtn.style.background = 'transparent'; + dismissBtn.style.color = '#b00020'; + }; + + // Close behavior + dismissBtn.onclick = () => { + errorEl.style.opacity = '0'; + setTimeout(() => { + errorEl.remove(); + if (container.childElementCount === 0) container.remove(); + }, 200); + }; + + // Assemble toast + errorEl.appendChild(msgSpan); + errorEl.appendChild(dismissBtn); + container.appendChild(errorEl); + + // Auto-dismiss after 6 seconds + setTimeout(() => { + errorEl.style.opacity = '0'; + setTimeout(() => { + errorEl.remove(); + if (container.childElementCount === 0) container.remove(); + }, 200); + }, 6000); +} diff --git a/src/window.ts b/src/window.ts index bc1d630ea..92545c09f 100644 --- a/src/window.ts +++ b/src/window.ts @@ -1,60 +1,253 @@ +import { createSignal, onCleanup } from 'solid-js'; import { observersConfigType } from './components/Bot'; import { BubbleTheme } from './features/bubble/types'; +import { sendRequest } from './utils'; +import { showInlineErrorToast } from './utils/showError'; +import { handleApiError } from './utils/apiErrorHandler'; +import { setApiHost, setTenantUuid } from './store/chatbotConfig'; +// --- Central Config Store --- +export type CompanyConfig = { + leadTitleMessage: string; + leadCaptureMessage: string; + name: string; + fullName: string; + firstName: string; + lastName: string; + website: string; + contactUs: string; + title: string; + placeholder: string; + welcomeMessage: string; + errorMessage: string; + logo: string; + chatIcon: string; + colors: { + primary: string; + secondary: string; + white: string; + black: string; + lightGrey: string; + botMessageBackgroundColor: string; + botMessageTextColor: string; + }; + dimensions: { + height: number; + width: number; + buttonSize: number; + }; + privacyPolicy: string; + terms: string; + supportedBy: { + name: string; + link: string; + }; + questions?: string[]; + quickActions?: string[]; + hideSources?: boolean; +}; + +const CONFIG_STORAGE_KEY = 'companyConfig'; + +const [companyConfig, setCompanyConfig] = createSignal(null); +const [configError, setConfigError] = createSignal(null); + +export function getCompanyConfig(): CompanyConfig | null { + return companyConfig(); +} + +export function setCompanyConfigStore(config: CompanyConfig) { + setCompanyConfig(config); + sessionStorage.setItem(CONFIG_STORAGE_KEY, JSON.stringify(config)); +} + +export async function fetchAndInitCompanyConfig(apiHost?: string, tenant_uuid?: string) { + const cached = sessionStorage.getItem(CONFIG_STORAGE_KEY); + if (cached) { + try { + setCompanyConfig(JSON.parse(cached)); + return; + } catch (err) { + console.error('Error parsing cached configuration:', err); + setConfigError('Failed to parse saved chatbot configuration.'); + return; + } + } + + try { + const url = `${apiHost}/api/v1/tenant/chatbot_config`; + const body = { external_uid: tenant_uuid }; + + // Use sendRequest utility for the API call + const { data, error } = await sendRequest<{ result: CompanyConfig }>({ + url, + method: 'POST', + body, + }); + + if (error) { + // Try to extract status, errorCode, and errorMsg if error is an object + let status, errorCode, errorMsg; + if (typeof error === 'object' && error !== null) { + status = (error as any).status; + errorCode = (error as any).errorCode; + errorMsg = (error as any).errorMsg || (error as any).message || error.toString(); + } else { + errorMsg = String(error); + } + handleApiError(status || 500, errorCode, errorMsg); + return; + } + + if (!data || !data.result) { + handleApiError(404, undefined, 'Invalid tenant UUID or configuration not found.'); + return; + } + + setCompanyConfigStore(data.result); + setConfigError(null); + } catch (err) { + console.error('Unexpected error loading chatbot config:', err); + handleApiError(500, undefined, 'Unexpected error occurred. Please try again.'); + } +} + +// --- Call this ONCE at app start (e.g. in main.tsx or your entrypoint) --- + +let elementUsed: Element | undefined; -/* eslint-disable solid/reactivity */ type BotProps = { chatflowid: string; apiHost?: string; - pageTitle?: string; + tenant_uuid?: string; onRequest?: (request: RequestInit) => Promise; chatflowConfig?: Record; observersConfig?: observersConfigType; theme?: BubbleTheme; - /** - * Portal target for NodeDetailsDialog. When provided, the dialog renders - * into this element (outside the shadow DOM) so that `position: fixed` and - * `z-index` operate in the host page's stacking context. - * - * Works with both `init` (bubble) and `initFull` (full-page) embed modes. - * In bubble mode, falls back to the bubble's own container when not supplied. - * - * Accepts either a CSS selector string (resolved via `document.querySelector`) - * or a plain `HTMLElement` reference. - */ - dialogContainer?: string | HTMLElement; -}; - -let elementUsed: Element | undefined; -const defaultPageTitle = 'Flowise Chatbot Widget'; - -const applyPageTitle = (pageTitle?: string) => { - if (typeof document === 'undefined' || pageTitle === undefined) return; - document.title = pageTitle.trim() || defaultPageTitle; }; -export const initFull = (props: BotProps & { id?: string }) => { +export const initFull = async (props: BotProps & { id?: string }) => { destroy(); - applyPageTitle(props.pageTitle); + if (!companyConfig()) { + await fetchAndInitCompanyConfig(props.apiHost, props.tenant_uuid); + } + + const err = configError(); + if (err) { + showInlineErrorToast(err); + return; + } + if (props.apiHost) setApiHost(props.apiHost); + if (props.tenant_uuid) setTenantUuid(props.tenant_uuid); + const config = companyConfig(); let fullElement = props.id ? document.getElementById(props.id) : document.querySelector('flowise-fullchatbot'); if (!fullElement) { fullElement = document.createElement('flowise-fullchatbot'); + if (!props.theme) { + props.theme = generateDefaultTheme(config!); + } Object.assign(fullElement, props); document.body.appendChild(fullElement); } else { + if (!props.theme) { + props.theme = generateDefaultTheme(config!); + } Object.assign(fullElement, props); } elementUsed = fullElement; }; -export const init = (props: BotProps) => { +export const init = async (props: BotProps) => { destroy(); - applyPageTitle(props.pageTitle); + if (!companyConfig()) { + await fetchAndInitCompanyConfig(props.apiHost, props.tenant_uuid); + } + + const err = configError(); + if (err) { + showInlineErrorToast(err); + return; + } + if (props.apiHost) setApiHost(props.apiHost); + if (props.tenant_uuid) setTenantUuid(props.tenant_uuid); + const config = companyConfig(); const element = document.createElement('flowise-chatbot'); + + if (!props.theme) { + props.theme = generateDefaultTheme(config!); + console.log(`rops.theme.chatWindow?.quickActions ${props.theme.chatWindow?.quickActions}`); + } + Object.assign(element, props); document.body.appendChild(element); elementUsed = element; }; +const generateDefaultTheme = (config: CompanyConfig): BubbleTheme => { + return { + button: { + backgroundColor: config.colors.primary, + right: 20, + bottom: 20, + size: config.dimensions.buttonSize, + dragAndDrop: false, + iconColor: config.colors.black, + customIconSrc: config.chatIcon, + }, + form: { + backgroundColor: config.colors.white, + textColor: config.colors.black, + }, + tooltip: { + showTooltip: true, + tooltipMessage: 'Hi There! How can I help you?', + tooltipBackgroundColor: config.colors.black, + tooltipTextColor: config.colors.white, + tooltipFontSize: 16, + }, + chatWindow: { + showTitle: true, + titleBackgroundColor: config.colors.white, + titleTextColor: config.colors.black, + welcomeMessage: config.welcomeMessage, + errorMessage: config.errorMessage, + backgroundColor: config.colors.white, + height: config.dimensions.height, + width: config.dimensions.width, + fontSize: 14, + poweredByTextColor: config.colors.primary, + botMessage: { + backgroundColor: config.colors.botMessageBackgroundColor, // Fixed! + textColor: config.colors.botMessageTextColor, // Fixed! + showAvatar: false, + }, + userMessage: { + backgroundColor: config.colors.secondary, + textColor: config.colors.white, + showAvatar: false, + }, + textInput: { + placeholder: config.placeholder, + backgroundColor: config.colors.white, + textColor: config.colors.black, + sendButtonColor: config.colors.primary, + maxChars: 1000, + maxCharsWarningMessage: 'You exceeded the characters limit. Please input less than 1000 characters.', + autoFocus: true, + }, + feedback: { + color: config.colors.black, + }, + footer: { + textColor: config.colors.black, + text: 'Powered by', + companyLink: config.website, + }, + starterPrompts: config.questions || [], + quickActions: config.quickActions || [], + }, + }; +}; + export const destroy = () => { elementUsed?.remove(); }; From c7fc5712d2e498fdc607d1b5409c541787e5b3df Mon Sep 17 00:00:00 2001 From: yasirfareeddev Date: Tue, 4 Aug 2026 16:59:57 +0500 Subject: [PATCH 3/4] Add custom UI on Flowise chatbot --- .gitignore | 1 - dist/components/Badge.d.ts | 10 ++ dist/components/Badge.d.ts.map | 1 + dist/components/Bot.d.ts | 151 ++++++++++++++++++ dist/components/Bot.d.ts.map | 1 + dist/components/FeedbackContentDialog.d.ts | 11 ++ .../components/FeedbackContentDialog.d.ts.map | 1 + dist/components/TypingBubble.d.ts | 2 + dist/components/TypingBubble.d.ts.map | 1 + dist/components/avatars/Avatar.d.ts | 4 + dist/components/avatars/Avatar.d.ts.map | 1 + dist/components/avatars/DefaultAvatar.d.ts | 2 + .../components/avatars/DefaultAvatar.d.ts.map | 1 + .../bubbles/AgentReasoningBubble.d.ts | 16 ++ .../bubbles/AgentReasoningBubble.d.ts.map | 1 + dist/components/bubbles/BotBubble.d.ts | 38 +++++ dist/components/bubbles/BotBubble.d.ts.map | 1 + .../bubbles/FollowUpPromptBubble.d.ts | 8 + .../bubbles/FollowUpPromptBubble.d.ts.map | 1 + dist/components/bubbles/GuestBubble.d.ts | 16 ++ dist/components/bubbles/GuestBubble.d.ts.map | 1 + .../components/bubbles/LeadCaptureBubble.d.ts | 24 +++ .../bubbles/LeadCaptureBubble.d.ts.map | 1 + dist/components/bubbles/LoadingBubble.d.ts | 2 + .../components/bubbles/LoadingBubble.d.ts.map | 1 + .../bubbles/MeetingDetailsInline.d.ts | 9 ++ .../bubbles/MeetingDetailsInline.d.ts.map | 1 + dist/components/bubbles/SourceBubble.d.ts | 12 ++ dist/components/bubbles/SourceBubble.d.ts.map | 1 + .../bubbles/StarterPromptBubble.d.ts | 11 ++ .../bubbles/StarterPromptBubble.d.ts.map | 1 + dist/components/bubbles/ThinkingBubble.d.ts | 10 ++ .../bubbles/ThinkingBubble.d.ts.map | 1 + .../buttons/AttachmentUploadButton.d.ts | 11 ++ .../buttons/AttachmentUploadButton.d.ts.map | 1 + dist/components/buttons/CancelButton.d.ts | 10 ++ dist/components/buttons/CancelButton.d.ts.map | 1 + dist/components/buttons/FeedbackButtons.d.ts | 13 ++ .../buttons/FeedbackButtons.d.ts.map | 1 + .../components/buttons/ImageUploadButton.d.ts | 11 ++ .../buttons/ImageUploadButton.d.ts.map | 1 + .../buttons/LeadCaptureButtons.d.ts | 11 ++ .../buttons/LeadCaptureButtons.d.ts.map | 1 + .../components/buttons/RecordAudioButton.d.ts | 12 ++ .../buttons/RecordAudioButton.d.ts.map | 1 + .../buttons/RegenerateResponseButton.d.ts | 10 ++ .../buttons/RegenerateResponseButton.d.ts.map | 1 + dist/components/buttons/SendButton.d.ts | 12 ++ dist/components/buttons/SendButton.d.ts.map | 1 + dist/components/buttons/StopButton.d.ts | 9 ++ dist/components/buttons/StopButton.d.ts.map | 1 + dist/components/buttons/TTSButton.d.ts | 10 ++ dist/components/buttons/TTSButton.d.ts.map | 1 + dist/components/buttons/TracesButton.d.ts | 10 ++ dist/components/buttons/TracesButton.d.ts.map | 1 + dist/components/icons/AddImageIcon.d.ts | 3 + dist/components/icons/AddImageIcon.d.ts.map | 1 + dist/components/icons/AttachmentIcon.d.ts | 3 + dist/components/icons/AttachmentIcon.d.ts.map | 1 + dist/components/icons/ChevronDownIcon.d.ts | 3 + .../components/icons/ChevronDownIcon.d.ts.map | 1 + dist/components/icons/ChevronRightIcon.d.ts | 3 + .../icons/ChevronRightIcon.d.ts.map | 1 + dist/components/icons/CircleDotIcon.d.ts | 3 + dist/components/icons/CircleDotIcon.d.ts.map | 1 + dist/components/icons/ClipboardIcon.d.ts | 3 + dist/components/icons/ClipboardIcon.d.ts.map | 1 + dist/components/icons/DeleteIcon.d.ts | 3 + dist/components/icons/DeleteIcon.d.ts.map | 1 + dist/components/icons/DownloadFileIcon.d.ts | 2 + .../icons/DownloadFileIcon.d.ts.map | 1 + dist/components/icons/FileIcon.d.ts | 3 + dist/components/icons/FileIcon.d.ts.map | 1 + dist/components/icons/FolderIcon.d.ts | 4 + dist/components/icons/FolderIcon.d.ts.map | 1 + dist/components/icons/GlobeIcon.d.ts | 3 + dist/components/icons/GlobeIcon.d.ts.map | 1 + dist/components/icons/RecordIcon.d.ts | 3 + dist/components/icons/RecordIcon.d.ts.map | 1 + dist/components/icons/SendIcon.d.ts | 3 + dist/components/icons/SendIcon.d.ts.map | 1 + dist/components/icons/SparklesIcon.d.ts | 3 + dist/components/icons/SparklesIcon.d.ts.map | 1 + dist/components/icons/SquareStopIcon.d.ts | 3 + dist/components/icons/SquareStopIcon.d.ts.map | 1 + dist/components/icons/StopIcon.d.ts | 3 + dist/components/icons/StopIcon.d.ts.map | 1 + dist/components/icons/ThumbsDownIcon.d.ts | 3 + dist/components/icons/ThumbsDownIcon.d.ts.map | 1 + dist/components/icons/ThumbsUpIcon.d.ts | 3 + dist/components/icons/ThumbsUpIcon.d.ts.map | 1 + dist/components/icons/TickIcon.d.ts | 2 + dist/components/icons/TickIcon.d.ts.map | 1 + dist/components/icons/TracesIcon.d.ts | 3 + dist/components/icons/TracesIcon.d.ts.map | 1 + dist/components/icons/TrashIcon.d.ts | 3 + dist/components/icons/TrashIcon.d.ts.map | 1 + dist/components/icons/VolumeIcon.d.ts | 3 + dist/components/icons/VolumeIcon.d.ts.map | 1 + dist/components/icons/XIcon.d.ts | 5 + dist/components/icons/XIcon.d.ts.map | 1 + dist/components/icons/index.d.ts | 21 +++ dist/components/icons/index.d.ts.map | 1 + dist/components/index.d.ts | 3 + dist/components/index.d.ts.map | 1 + .../textInput/components/FilePreview.d.ts | 12 ++ .../textInput/components/FilePreview.d.ts.map | 1 + .../textInput/components/ShortTextInput.d.ts | 10 ++ .../components/ShortTextInput.d.ts.map | 1 + .../textInput/components/TextInput.d.ts | 33 ++++ .../textInput/components/TextInput.d.ts.map | 1 + dist/components/inputs/textInput/index.d.ts | 3 + .../inputs/textInput/index.d.ts.map | 1 + dist/components/treeview/AgentflowIcons.d.ts | 15 ++ .../treeview/AgentflowIcons.d.ts.map | 1 + dist/components/treeview/DataTransformer.d.ts | 7 + .../treeview/DataTransformer.d.ts.map | 1 + .../treeview/NodeDetailsContent.d.ts | 36 +++++ .../treeview/NodeDetailsContent.d.ts.map | 1 + .../treeview/NodeDetailsDialog.d.ts | 20 +++ .../treeview/NodeDetailsDialog.d.ts.map | 1 + dist/components/treeview/RichTreeView.d.ts | 25 +++ .../components/treeview/RichTreeView.d.ts.map | 1 + dist/components/treeview/TracesDialog.d.ts | 16 ++ .../components/treeview/TracesDialog.d.ts.map | 1 + dist/components/treeview/TreeView.d.ts | 22 +++ dist/components/treeview/TreeView.d.ts.map | 1 + .../components/treeview/WorkflowTreeView.d.ts | 25 +++ .../treeview/WorkflowTreeView.d.ts.map | 1 + dist/components/treeview/workflowUtils.d.ts | 25 +++ .../treeview/workflowUtils.d.ts.map | 1 + dist/constants.d.ts | 4 + dist/constants.d.ts.map | 1 + dist/features/bubble/components/Bubble.d.ts | 5 + .../bubble/components/Bubble.d.ts.map | 1 + .../bubble/components/BubbleButton.d.ts | 16 ++ .../bubble/components/BubbleButton.d.ts.map | 1 + dist/features/bubble/components/Tooltip.d.ts | 15 ++ .../bubble/components/Tooltip.d.ts.map | 1 + dist/features/bubble/components/index.d.ts | 2 + .../features/bubble/components/index.d.ts.map | 1 + dist/features/bubble/index.d.ts | 2 + dist/features/bubble/index.d.ts.map | 1 + dist/features/bubble/types.d.ts | 119 ++++++++++++++ dist/features/bubble/types.d.ts.map | 1 + dist/features/full/components/Full.d.ts | 7 + dist/features/full/components/Full.d.ts.map | 1 + dist/features/full/components/index.d.ts | 2 + dist/features/full/components/index.d.ts.map | 1 + dist/features/full/index.d.ts | 2 + dist/features/full/index.d.ts.map | 1 + .../popup/components/DisclaimerPopup.d.ts | 18 +++ .../popup/components/DisclaimerPopup.d.ts.map | 1 + dist/features/popup/components/Popup.d.ts | 8 + dist/features/popup/components/Popup.d.ts.map | 1 + dist/features/popup/components/index.d.ts | 3 + dist/features/popup/components/index.d.ts.map | 1 + dist/features/popup/index.d.ts | 2 + dist/features/popup/index.d.ts.map | 1 + dist/features/popup/types.d.ts | 8 + dist/features/popup/types.d.ts.map | 1 + dist/index.d.ts | 5 + dist/index.d.ts.map | 1 + dist/queries/sendMessageQuery.d.ts | 141 ++++++++++++++++ dist/queries/sendMessageQuery.d.ts.map | 1 + dist/register.d.ts | 2 + dist/register.d.ts.map | 1 + dist/store/chatbotConfig.d.ts | 8 + dist/store/chatbotConfig.d.ts.map | 1 + dist/types.d.ts | 1 + dist/types.d.ts.map | 1 + dist/utils/apiErrorHandler.d.ts | 8 + dist/utils/apiErrorHandler.d.ts.map | 1 + dist/utils/audioRecording.d.ts | 31 ++++ dist/utils/audioRecording.d.ts.map | 1 + dist/utils/chatInputHistory.d.ts | 22 +++ dist/utils/chatInputHistory.d.ts.map | 1 + dist/utils/index.d.ts | 31 ++++ dist/utils/index.d.ts.map | 1 + dist/utils/isMobileSignal.d.ts | 2 + dist/utils/isMobileSignal.d.ts.map | 1 + dist/utils/showError.d.ts | 6 + dist/utils/showError.d.ts.map | 1 + dist/web.d.ts | 26 +++ dist/web.d.ts.map | 1 + dist/web.js | 1 + dist/web.umd.js | 1 + dist/window.d.ts | 76 +++++++++ dist/window.d.ts.map | 1 + 189 files changed, 1455 insertions(+), 1 deletion(-) create mode 100644 dist/components/Badge.d.ts create mode 100644 dist/components/Badge.d.ts.map create mode 100644 dist/components/Bot.d.ts create mode 100644 dist/components/Bot.d.ts.map create mode 100644 dist/components/FeedbackContentDialog.d.ts create mode 100644 dist/components/FeedbackContentDialog.d.ts.map create mode 100644 dist/components/TypingBubble.d.ts create mode 100644 dist/components/TypingBubble.d.ts.map create mode 100644 dist/components/avatars/Avatar.d.ts create mode 100644 dist/components/avatars/Avatar.d.ts.map create mode 100644 dist/components/avatars/DefaultAvatar.d.ts create mode 100644 dist/components/avatars/DefaultAvatar.d.ts.map create mode 100644 dist/components/bubbles/AgentReasoningBubble.d.ts create mode 100644 dist/components/bubbles/AgentReasoningBubble.d.ts.map create mode 100644 dist/components/bubbles/BotBubble.d.ts create mode 100644 dist/components/bubbles/BotBubble.d.ts.map create mode 100644 dist/components/bubbles/FollowUpPromptBubble.d.ts create mode 100644 dist/components/bubbles/FollowUpPromptBubble.d.ts.map create mode 100644 dist/components/bubbles/GuestBubble.d.ts create mode 100644 dist/components/bubbles/GuestBubble.d.ts.map create mode 100644 dist/components/bubbles/LeadCaptureBubble.d.ts create mode 100644 dist/components/bubbles/LeadCaptureBubble.d.ts.map create mode 100644 dist/components/bubbles/LoadingBubble.d.ts create mode 100644 dist/components/bubbles/LoadingBubble.d.ts.map create mode 100644 dist/components/bubbles/MeetingDetailsInline.d.ts create mode 100644 dist/components/bubbles/MeetingDetailsInline.d.ts.map create mode 100644 dist/components/bubbles/SourceBubble.d.ts create mode 100644 dist/components/bubbles/SourceBubble.d.ts.map create mode 100644 dist/components/bubbles/StarterPromptBubble.d.ts create mode 100644 dist/components/bubbles/StarterPromptBubble.d.ts.map create mode 100644 dist/components/bubbles/ThinkingBubble.d.ts create mode 100644 dist/components/bubbles/ThinkingBubble.d.ts.map create mode 100644 dist/components/buttons/AttachmentUploadButton.d.ts create mode 100644 dist/components/buttons/AttachmentUploadButton.d.ts.map create mode 100644 dist/components/buttons/CancelButton.d.ts create mode 100644 dist/components/buttons/CancelButton.d.ts.map create mode 100644 dist/components/buttons/FeedbackButtons.d.ts create mode 100644 dist/components/buttons/FeedbackButtons.d.ts.map create mode 100644 dist/components/buttons/ImageUploadButton.d.ts create mode 100644 dist/components/buttons/ImageUploadButton.d.ts.map create mode 100644 dist/components/buttons/LeadCaptureButtons.d.ts create mode 100644 dist/components/buttons/LeadCaptureButtons.d.ts.map create mode 100644 dist/components/buttons/RecordAudioButton.d.ts create mode 100644 dist/components/buttons/RecordAudioButton.d.ts.map create mode 100644 dist/components/buttons/RegenerateResponseButton.d.ts create mode 100644 dist/components/buttons/RegenerateResponseButton.d.ts.map create mode 100644 dist/components/buttons/SendButton.d.ts create mode 100644 dist/components/buttons/SendButton.d.ts.map create mode 100644 dist/components/buttons/StopButton.d.ts create mode 100644 dist/components/buttons/StopButton.d.ts.map create mode 100644 dist/components/buttons/TTSButton.d.ts create mode 100644 dist/components/buttons/TTSButton.d.ts.map create mode 100644 dist/components/buttons/TracesButton.d.ts create mode 100644 dist/components/buttons/TracesButton.d.ts.map create mode 100644 dist/components/icons/AddImageIcon.d.ts create mode 100644 dist/components/icons/AddImageIcon.d.ts.map create mode 100644 dist/components/icons/AttachmentIcon.d.ts create mode 100644 dist/components/icons/AttachmentIcon.d.ts.map create mode 100644 dist/components/icons/ChevronDownIcon.d.ts create mode 100644 dist/components/icons/ChevronDownIcon.d.ts.map create mode 100644 dist/components/icons/ChevronRightIcon.d.ts create mode 100644 dist/components/icons/ChevronRightIcon.d.ts.map create mode 100644 dist/components/icons/CircleDotIcon.d.ts create mode 100644 dist/components/icons/CircleDotIcon.d.ts.map create mode 100644 dist/components/icons/ClipboardIcon.d.ts create mode 100644 dist/components/icons/ClipboardIcon.d.ts.map create mode 100644 dist/components/icons/DeleteIcon.d.ts create mode 100644 dist/components/icons/DeleteIcon.d.ts.map create mode 100644 dist/components/icons/DownloadFileIcon.d.ts create mode 100644 dist/components/icons/DownloadFileIcon.d.ts.map create mode 100644 dist/components/icons/FileIcon.d.ts create mode 100644 dist/components/icons/FileIcon.d.ts.map create mode 100644 dist/components/icons/FolderIcon.d.ts create mode 100644 dist/components/icons/FolderIcon.d.ts.map create mode 100644 dist/components/icons/GlobeIcon.d.ts create mode 100644 dist/components/icons/GlobeIcon.d.ts.map create mode 100644 dist/components/icons/RecordIcon.d.ts create mode 100644 dist/components/icons/RecordIcon.d.ts.map create mode 100644 dist/components/icons/SendIcon.d.ts create mode 100644 dist/components/icons/SendIcon.d.ts.map create mode 100644 dist/components/icons/SparklesIcon.d.ts create mode 100644 dist/components/icons/SparklesIcon.d.ts.map create mode 100644 dist/components/icons/SquareStopIcon.d.ts create mode 100644 dist/components/icons/SquareStopIcon.d.ts.map create mode 100644 dist/components/icons/StopIcon.d.ts create mode 100644 dist/components/icons/StopIcon.d.ts.map create mode 100644 dist/components/icons/ThumbsDownIcon.d.ts create mode 100644 dist/components/icons/ThumbsDownIcon.d.ts.map create mode 100644 dist/components/icons/ThumbsUpIcon.d.ts create mode 100644 dist/components/icons/ThumbsUpIcon.d.ts.map create mode 100644 dist/components/icons/TickIcon.d.ts create mode 100644 dist/components/icons/TickIcon.d.ts.map create mode 100644 dist/components/icons/TracesIcon.d.ts create mode 100644 dist/components/icons/TracesIcon.d.ts.map create mode 100644 dist/components/icons/TrashIcon.d.ts create mode 100644 dist/components/icons/TrashIcon.d.ts.map create mode 100644 dist/components/icons/VolumeIcon.d.ts create mode 100644 dist/components/icons/VolumeIcon.d.ts.map create mode 100644 dist/components/icons/XIcon.d.ts create mode 100644 dist/components/icons/XIcon.d.ts.map create mode 100644 dist/components/icons/index.d.ts create mode 100644 dist/components/icons/index.d.ts.map create mode 100644 dist/components/index.d.ts create mode 100644 dist/components/index.d.ts.map create mode 100644 dist/components/inputs/textInput/components/FilePreview.d.ts create mode 100644 dist/components/inputs/textInput/components/FilePreview.d.ts.map create mode 100644 dist/components/inputs/textInput/components/ShortTextInput.d.ts create mode 100644 dist/components/inputs/textInput/components/ShortTextInput.d.ts.map create mode 100644 dist/components/inputs/textInput/components/TextInput.d.ts create mode 100644 dist/components/inputs/textInput/components/TextInput.d.ts.map create mode 100644 dist/components/inputs/textInput/index.d.ts create mode 100644 dist/components/inputs/textInput/index.d.ts.map create mode 100644 dist/components/treeview/AgentflowIcons.d.ts create mode 100644 dist/components/treeview/AgentflowIcons.d.ts.map create mode 100644 dist/components/treeview/DataTransformer.d.ts create mode 100644 dist/components/treeview/DataTransformer.d.ts.map create mode 100644 dist/components/treeview/NodeDetailsContent.d.ts create mode 100644 dist/components/treeview/NodeDetailsContent.d.ts.map create mode 100644 dist/components/treeview/NodeDetailsDialog.d.ts create mode 100644 dist/components/treeview/NodeDetailsDialog.d.ts.map create mode 100644 dist/components/treeview/RichTreeView.d.ts create mode 100644 dist/components/treeview/RichTreeView.d.ts.map create mode 100644 dist/components/treeview/TracesDialog.d.ts create mode 100644 dist/components/treeview/TracesDialog.d.ts.map create mode 100644 dist/components/treeview/TreeView.d.ts create mode 100644 dist/components/treeview/TreeView.d.ts.map create mode 100644 dist/components/treeview/WorkflowTreeView.d.ts create mode 100644 dist/components/treeview/WorkflowTreeView.d.ts.map create mode 100644 dist/components/treeview/workflowUtils.d.ts create mode 100644 dist/components/treeview/workflowUtils.d.ts.map create mode 100644 dist/constants.d.ts create mode 100644 dist/constants.d.ts.map create mode 100644 dist/features/bubble/components/Bubble.d.ts create mode 100644 dist/features/bubble/components/Bubble.d.ts.map create mode 100644 dist/features/bubble/components/BubbleButton.d.ts create mode 100644 dist/features/bubble/components/BubbleButton.d.ts.map create mode 100644 dist/features/bubble/components/Tooltip.d.ts create mode 100644 dist/features/bubble/components/Tooltip.d.ts.map create mode 100644 dist/features/bubble/components/index.d.ts create mode 100644 dist/features/bubble/components/index.d.ts.map create mode 100644 dist/features/bubble/index.d.ts create mode 100644 dist/features/bubble/index.d.ts.map create mode 100644 dist/features/bubble/types.d.ts create mode 100644 dist/features/bubble/types.d.ts.map create mode 100644 dist/features/full/components/Full.d.ts create mode 100644 dist/features/full/components/Full.d.ts.map create mode 100644 dist/features/full/components/index.d.ts create mode 100644 dist/features/full/components/index.d.ts.map create mode 100644 dist/features/full/index.d.ts create mode 100644 dist/features/full/index.d.ts.map create mode 100644 dist/features/popup/components/DisclaimerPopup.d.ts create mode 100644 dist/features/popup/components/DisclaimerPopup.d.ts.map create mode 100644 dist/features/popup/components/Popup.d.ts create mode 100644 dist/features/popup/components/Popup.d.ts.map create mode 100644 dist/features/popup/components/index.d.ts create mode 100644 dist/features/popup/components/index.d.ts.map create mode 100644 dist/features/popup/index.d.ts create mode 100644 dist/features/popup/index.d.ts.map create mode 100644 dist/features/popup/types.d.ts create mode 100644 dist/features/popup/types.d.ts.map create mode 100644 dist/index.d.ts create mode 100644 dist/index.d.ts.map create mode 100644 dist/queries/sendMessageQuery.d.ts create mode 100644 dist/queries/sendMessageQuery.d.ts.map create mode 100644 dist/register.d.ts create mode 100644 dist/register.d.ts.map create mode 100644 dist/store/chatbotConfig.d.ts create mode 100644 dist/store/chatbotConfig.d.ts.map create mode 100644 dist/types.d.ts create mode 100644 dist/types.d.ts.map create mode 100644 dist/utils/apiErrorHandler.d.ts create mode 100644 dist/utils/apiErrorHandler.d.ts.map create mode 100644 dist/utils/audioRecording.d.ts create mode 100644 dist/utils/audioRecording.d.ts.map create mode 100644 dist/utils/chatInputHistory.d.ts create mode 100644 dist/utils/chatInputHistory.d.ts.map create mode 100644 dist/utils/index.d.ts create mode 100644 dist/utils/index.d.ts.map create mode 100644 dist/utils/isMobileSignal.d.ts create mode 100644 dist/utils/isMobileSignal.d.ts.map create mode 100644 dist/utils/showError.d.ts create mode 100644 dist/utils/showError.d.ts.map create mode 100644 dist/web.d.ts create mode 100644 dist/web.d.ts.map create mode 100644 dist/web.js create mode 100644 dist/web.umd.js create mode 100644 dist/window.d.ts create mode 100644 dist/window.d.ts.map diff --git a/.gitignore b/.gitignore index a91b62adc..a160d6d22 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,6 @@ node_modules .claude/settings.json .claude/settings.local.json .vscode/ -dist/ .venv/ venv/ diff --git a/dist/components/Badge.d.ts b/dist/components/Badge.d.ts new file mode 100644 index 000000000..80768d1c9 --- /dev/null +++ b/dist/components/Badge.d.ts @@ -0,0 +1,10 @@ +import { FooterTheme } from '@/features/bubble/types'; +type Props = { + footer?: FooterTheme; + botContainer: HTMLDivElement | undefined; + poweredByTextColor?: string; + badgeBackgroundColor?: string; +}; +export declare const Badge: (props: Props) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=Badge.d.ts.map \ No newline at end of file diff --git a/dist/components/Badge.d.ts.map b/dist/components/Badge.d.ts.map new file mode 100644 index 000000000..ccf929bc1 --- /dev/null +++ b/dist/components/Badge.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../src/components/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAItD,KAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,YAAY,EAAE,cAAc,GAAG,SAAS,CAAC;IACzC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAIF,eAAO,MAAM,KAAK,UAAW,KAAK,mCAmIjC,CAAC"} \ No newline at end of file diff --git a/dist/components/Bot.d.ts b/dist/components/Bot.d.ts new file mode 100644 index 000000000..4bbb89496 --- /dev/null +++ b/dist/components/Bot.d.ts @@ -0,0 +1,151 @@ +import { FeedbackRatingType } from '@/queries/sendMessageQuery'; +import { BotMessageTheme, FooterTheme, TextInputTheme, UserMessageTheme, FeedbackTheme, DisclaimerPopUpTheme, DateTimeToggleTheme } from '@/features/bubble/types'; +import { FilePreview } from '@/components/inputs/textInput/components/FilePreview'; +export type FileEvent = { + target: T; +}; +export type FormEvent = { + preventDefault: () => void; + currentTarget: T; +}; +type IUploadConstraits = { + fileTypes: string[]; + maxUploadSize: number; +}; +export type UploadsConfig = { + imgUploadSizeAndTypes: IUploadConstraits[]; + fileUploadSizeAndTypes: IUploadConstraits[]; + isImageUploadAllowed: boolean; + isSpeechToTextEnabled: boolean; + isRAGFileUploadAllowed: boolean; +}; +type FilePreviewData = string | ArrayBuffer; +type FilePreview = { + data: FilePreviewData; + mime: string; + name: string; + preview: string; + type: string; +}; +type messageType = 'apiMessage' | 'userMessage' | 'usermessagewaiting' | 'leadCaptureMessage'; +type ExecutionState = 'INPROGRESS' | 'FINISHED' | 'ERROR' | 'TERMINATED' | 'TIMEOUT' | 'STOPPED'; +export type IAgentReasoning = { + agentName?: string; + messages?: string[]; + usedTools?: any[]; + artifacts?: FileUpload[]; + sourceDocuments?: any[]; + instructions?: string; + nextAgent?: string; +}; +export type IAction = { + id?: string; + data?: any; + elements?: Array<{ + type: string; + label: string; + }>; + mapping?: { + approve: string; + reject: string; + toolCalls: any[]; + }; +}; +export type FileUpload = Omit; +export type AgentFlowExecutedData = { + nodeLabel: string; + nodeId: string; + data: any; + previousNodeIds: string[]; + status?: ExecutionState; +}; +export type MessageType = { + messageId?: string; + external_chat_msg_id?: string; + message: string; + type: messageType; + sourceDocuments?: any; + fileAnnotations?: any; + fileUploads?: Partial[]; + artifacts?: Partial[]; + agentReasoning?: IAgentReasoning[]; + execution?: any; + agentFlowEventStatus?: string; + agentFlowExecutedData?: any; + usedTools?: any[]; + action?: IAction | null; + rating?: FeedbackRatingType; + id?: string; + followUpPrompts?: string; + dateTime?: string; + thinking?: string; + thinkingDuration?: number; + isThinking?: boolean; + meetingData?: { + client_meeting_time?: string; + client_meeting_date?: string; + client_meeting_timezone?: string; + client_name?: string; + client_email?: string; + }; +}; +type observerConfigType = (accessor: string | boolean | object | MessageType[]) => void; +export type observersConfigType = Record<'observeUserInput' | 'observeLoading' | 'observeMessages', observerConfigType>; +export type BotProps = { + chatflowid: string; + apiHost?: string; + onRequest?: (request: RequestInit) => Promise; + chatflowConfig?: Record; + backgroundColor?: string; + welcomeMessage?: string; + errorMessage?: string; + botMessage?: BotMessageTheme; + userMessage?: UserMessageTheme; + textInput?: TextInputTheme; + feedback?: FeedbackTheme; + poweredByTextColor?: string; + badgeBackgroundColor?: string; + bubbleBackgroundColor?: string; + bubbleTextColor?: string; + showTitle?: boolean; + showAgentMessages?: boolean; + title?: string; + titleAvatarSrc?: string; + titleTextColor?: string; + titleBackgroundColor?: string; + formBackgroundColor?: string; + formTextColor?: string; + fontSize?: number; + isFullPage?: boolean; + footer?: FooterTheme; + sourceDocsTitle?: string; + observersConfig?: observersConfigType; + starterPrompts?: string[] | Record; + quickActions?: string[]; + starterPromptFontSize?: number; + clearChatOnReload?: boolean; + disclaimer?: DisclaimerPopUpTheme; + dateTimeToggle?: DateTimeToggleTheme; + renderHTML?: boolean; + closeBot?: () => void; + isExpand?: boolean; + pageTitle?: string; + hasCustomHeader?: boolean; + dialogContainer?: HTMLElement; +}; +export type LeadsConfig = { + status: boolean; + title?: string; + firstName?: boolean; + email?: boolean; + consentCheckbox?: any; + successMessage?: string; +}; +export declare function renderTemplate(template: string, data: Record): string; +export declare const Bot: (botProps: BotProps & { + class?: string; +}) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=Bot.d.ts.map \ No newline at end of file diff --git a/dist/components/Bot.d.ts.map b/dist/components/Bot.d.ts.map new file mode 100644 index 000000000..0a5d42858 --- /dev/null +++ b/dist/components/Bot.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Bot.d.ts","sourceRoot":"","sources":["../../src/components/Bot.tsx"],"names":[],"mappings":"AAEA,OAAO,EAML,kBAAkB,EAInB,MAAM,4BAA4B,CAAC;AAMpC,OAAO,EACL,eAAe,EACf,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AAKjC,OAAO,EAAE,WAAW,EAAE,MAAM,sDAAsD,CAAC;AAwBnF,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG,WAAW,IAAI;IACvC,MAAM,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,CAAC,GAAG,WAAW,IAAI;IACvC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,aAAa,EAAE,CAAC,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,qBAAqB,EAAE,iBAAiB,EAAE,CAAC;IAC3C,sBAAsB,EAAE,iBAAiB,EAAE,CAAC;IAC5C,oBAAoB,EAAE,OAAO,CAAC;IAC9B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sBAAsB,EAAE,OAAO,CAAC;CACjC,CAAC;AAEF,KAAK,eAAe,GAAG,MAAM,GAAG,WAAW,CAAC;AAE5C,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,eAAe,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,WAAW,GAAG,YAAY,GAAG,aAAa,GAAG,oBAAoB,GAAG,oBAAoB,CAAC;AAC9F,KAAK,cAAc,GAAG,YAAY,GAAG,UAAU,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,CAAC;AAEjG,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,UAAU,EAAE,CAAC;IACzB,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,QAAQ,CAAC,EAAE,KAAK,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf,CAAC,CAAC;IACH,OAAO,CAAC,EAAE;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,GAAG,EAAE,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;AAEtD,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;IACV,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,WAAW,CAAC;IAClB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IACpC,SAAS,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAClC,cAAc,CAAC,EAAE,eAAe,EAAE,CAAC;IACnC,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,GAAG,CAAC;IAC5B,SAAS,CAAC,EAAE,GAAG,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,WAAW,CAAC,EAAE;QACZ,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,uBAAuB,CAAC,EAAE,MAAM,CAAC;QACjC,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH,CAAC;AASF,KAAK,kBAAkB,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,WAAW,EAAE,KAAK,IAAI,CAAC;AACxF,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,kBAAkB,GAAG,gBAAgB,GAAG,iBAAiB,EAAE,kBAAkB,CAAC,CAAC;AAExH,MAAM,MAAM,QAAQ,GAAG;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/D,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,WAAW,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;CAEzB,CAAC;AAIF,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAQlF;AAgRD,eAAO,MAAM,GAAG,aAAc,QAAQ,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,mCA0gF1D,CAAC"} \ No newline at end of file diff --git a/dist/components/FeedbackContentDialog.d.ts b/dist/components/FeedbackContentDialog.d.ts new file mode 100644 index 000000000..fa057b9d6 --- /dev/null +++ b/dist/components/FeedbackContentDialog.d.ts @@ -0,0 +1,11 @@ +type FeedbackContentDialogProps = { + isOpen: boolean; + onClose: () => void; + onSubmit: (text: string) => void; + backgroundColor?: string; + textColor?: string; + primaryColor?: string; +}; +declare const FeedbackContentDialog: (props: FeedbackContentDialogProps) => import("solid-js").JSX.Element; +export default FeedbackContentDialog; +//# sourceMappingURL=FeedbackContentDialog.d.ts.map \ No newline at end of file diff --git a/dist/components/FeedbackContentDialog.d.ts.map b/dist/components/FeedbackContentDialog.d.ts.map new file mode 100644 index 000000000..673c0533f --- /dev/null +++ b/dist/components/FeedbackContentDialog.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FeedbackContentDialog.d.ts","sourceRoot":"","sources":["../../src/components/FeedbackContentDialog.tsx"],"names":[],"mappings":"AAEA,KAAK,0BAA0B,GAAG;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAKF,QAAA,MAAM,qBAAqB,UAAW,0BAA0B,mCAwF/D,CAAC;AAEF,eAAe,qBAAqB,CAAC"} \ No newline at end of file diff --git a/dist/components/TypingBubble.d.ts b/dist/components/TypingBubble.d.ts new file mode 100644 index 000000000..f11a19e4e --- /dev/null +++ b/dist/components/TypingBubble.d.ts @@ -0,0 +1,2 @@ +export declare const TypingBubble: () => import("solid-js").JSX.Element; +//# sourceMappingURL=TypingBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/TypingBubble.d.ts.map b/dist/components/TypingBubble.d.ts.map new file mode 100644 index 000000000..2f452b7b9 --- /dev/null +++ b/dist/components/TypingBubble.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TypingBubble.d.ts","sourceRoot":"","sources":["../../src/components/TypingBubble.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,sCAMxB,CAAC"} \ No newline at end of file diff --git a/dist/components/avatars/Avatar.d.ts b/dist/components/avatars/Avatar.d.ts new file mode 100644 index 000000000..17e9d9a44 --- /dev/null +++ b/dist/components/avatars/Avatar.d.ts @@ -0,0 +1,4 @@ +export declare const Avatar: (props: { + initialAvatarSrc?: string; +}) => import("solid-js").JSX.Element; +//# sourceMappingURL=Avatar.d.ts.map \ No newline at end of file diff --git a/dist/components/avatars/Avatar.d.ts.map b/dist/components/avatars/Avatar.d.ts.map new file mode 100644 index 000000000..0f77b3dec --- /dev/null +++ b/dist/components/avatars/Avatar.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatars/Avatar.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,UAAW;IAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,mCAkB1D,CAAC"} \ No newline at end of file diff --git a/dist/components/avatars/DefaultAvatar.d.ts b/dist/components/avatars/DefaultAvatar.d.ts new file mode 100644 index 000000000..e3b7f66c5 --- /dev/null +++ b/dist/components/avatars/DefaultAvatar.d.ts @@ -0,0 +1,2 @@ +export declare const DefaultAvatar: () => import("solid-js").JSX.Element; +//# sourceMappingURL=DefaultAvatar.d.ts.map \ No newline at end of file diff --git a/dist/components/avatars/DefaultAvatar.d.ts.map b/dist/components/avatars/DefaultAvatar.d.ts.map new file mode 100644 index 000000000..47782146e --- /dev/null +++ b/dist/components/avatars/DefaultAvatar.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"DefaultAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatars/DefaultAvatar.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,sCAqCzB,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/AgentReasoningBubble.d.ts b/dist/components/bubbles/AgentReasoningBubble.d.ts new file mode 100644 index 000000000..eb97a5fff --- /dev/null +++ b/dist/components/bubbles/AgentReasoningBubble.d.ts @@ -0,0 +1,16 @@ +import { FileUpload } from '../Bot'; +type Props = { + apiHost?: string; + chatflowid: string; + chatId: string; + agentName: string; + agentMessage: string; + agentArtifacts?: FileUpload[]; + backgroundColor?: string; + textColor?: string; + fontSize?: number; + renderHTML?: boolean; +}; +export declare const AgentReasoningBubble: (props: Props) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=AgentReasoningBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/AgentReasoningBubble.d.ts.map b/dist/components/bubbles/AgentReasoningBubble.d.ts.map new file mode 100644 index 000000000..f4209283c --- /dev/null +++ b/dist/components/bubbles/AgentReasoningBubble.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AgentReasoningBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/AgentReasoningBubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAGpC,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,UAAU,EAAE,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAMF,eAAO,MAAM,oBAAoB,UAAW,KAAK,mCAoFhD,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/BotBubble.d.ts b/dist/components/bubbles/BotBubble.d.ts new file mode 100644 index 000000000..80bc0d0be --- /dev/null +++ b/dist/components/bubbles/BotBubble.d.ts @@ -0,0 +1,38 @@ +import { IAction, MessageType } from '../Bot'; +import { DateTimeToggleTheme } from '@/features/bubble/types'; +type Props = { + message: MessageType; + chatflowid: string; + chatId: string; + apiHost?: string; + onRequest?: (request: RequestInit) => Promise; + fileAnnotations?: any; + showAvatar?: boolean; + avatarSrc?: string; + backgroundColor?: string; + textColor?: string; + chatFeedbackStatus?: boolean; + fontSize?: number; + feedbackColor?: string; + isLoading: boolean; + dateTimeToggle?: DateTimeToggleTheme; + showAgentMessages?: boolean; + sourceDocsTitle?: string; + hideSources?: boolean; + renderHTML?: boolean; + shouldStream?: boolean; + isWelcomeMessage?: boolean; + isFirstMessage?: boolean; + handleActionClick: (elem: any, action: IAction | undefined | null) => void; + handleSourceDocumentsClick: (src: any) => void; + isTTSEnabled?: boolean; + isTTSLoading?: Record; + isTTSPlaying?: Record; + handleTTSClick?: (messageId: string, messageText: string) => void; + handleTTSStop?: (messageId: string) => void; + hasCustomHeader?: boolean; + dialogContainer?: HTMLElement; +}; +export declare const BotBubble: (props: Props) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=BotBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/BotBubble.d.ts.map b/dist/components/bubbles/BotBubble.d.ts.map new file mode 100644 index 000000000..f2af62fc9 --- /dev/null +++ b/dist/components/bubbles/BotBubble.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"BotBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/BotBubble.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAc,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAO1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAS9D,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3E,0BAA0B,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAE/C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,WAAW,CAAC;CAC/B,CAAC;AAOF,eAAO,MAAM,SAAS,UAAW,KAAK,mCAyxBrC,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/FollowUpPromptBubble.d.ts b/dist/components/bubbles/FollowUpPromptBubble.d.ts new file mode 100644 index 000000000..2b96a6917 --- /dev/null +++ b/dist/components/bubbles/FollowUpPromptBubble.d.ts @@ -0,0 +1,8 @@ +type Props = { + prompt: string; + onPromptClick?: () => void; + starterPromptFontSize?: number; +}; +export declare const FollowUpPromptBubble: (props: Props) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=FollowUpPromptBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/FollowUpPromptBubble.d.ts.map b/dist/components/bubbles/FollowUpPromptBubble.d.ts.map new file mode 100644 index 000000000..93835fca4 --- /dev/null +++ b/dist/components/bubbles/FollowUpPromptBubble.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FollowUpPromptBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/FollowUpPromptBubble.tsx"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AACF,eAAO,MAAM,oBAAoB,UAAW,KAAK,mCAsBhD,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/GuestBubble.d.ts b/dist/components/bubbles/GuestBubble.d.ts new file mode 100644 index 000000000..3cad860f0 --- /dev/null +++ b/dist/components/bubbles/GuestBubble.d.ts @@ -0,0 +1,16 @@ +import { MessageType } from '../Bot'; +type Props = { + message: MessageType; + apiHost?: string; + chatflowid: string; + chatId: string; + showAvatar?: boolean; + avatarSrc?: string; + backgroundColor?: string; + textColor?: string; + fontSize?: number; + renderHTML?: boolean; +}; +export declare const GuestBubble: (props: Props) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=GuestBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/GuestBubble.d.ts.map b/dist/components/bubbles/GuestBubble.d.ts.map new file mode 100644 index 000000000..052abe815 --- /dev/null +++ b/dist/components/bubbles/GuestBubble.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"GuestBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/GuestBubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAc,WAAW,EAAE,MAAM,QAAQ,CAAC;AAGjD,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,WAAW,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAMF,eAAO,MAAM,WAAW,UAAW,KAAK,mCAgGvC,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/LeadCaptureBubble.d.ts b/dist/components/bubbles/LeadCaptureBubble.d.ts new file mode 100644 index 000000000..4f025ba4a --- /dev/null +++ b/dist/components/bubbles/LeadCaptureBubble.d.ts @@ -0,0 +1,24 @@ +import { LeadsConfig, MessageType } from '@/components/Bot'; +type Props = { + message: MessageType; + chatflowid: string; + chatId: string; + leadsConfig?: LeadsConfig; + apiHost?: string; + showAvatar?: boolean; + avatarSrc?: string; + backgroundColor?: string; + textColor?: string; + sendButtonColor?: string; + fontSize?: number; + isLeadSaved: boolean; + setIsLeadSaved: (value: boolean) => void; + setLeadEmail: (value: string) => void; + setLeadFirstName: (value: string) => void; + setIsConsentGiven: (value: boolean) => void; + isExpand?: boolean; + addPersonalizedWelcome: (firstName: string) => void; +}; +export declare const LeadCaptureBubble: (props: Props) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=LeadCaptureBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/LeadCaptureBubble.d.ts.map b/dist/components/bubbles/LeadCaptureBubble.d.ts.map new file mode 100644 index 000000000..359f1cec1 --- /dev/null +++ b/dist/components/bubbles/LeadCaptureBubble.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LeadCaptureBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/LeadCaptureBubble.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAa,WAAW,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AASvE,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,WAAW,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,iBAAiB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sBAAsB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACrD,CAAC;AAeF,eAAO,MAAM,iBAAiB,UAAW,KAAK,mCAkL7C,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/LoadingBubble.d.ts b/dist/components/bubbles/LoadingBubble.d.ts new file mode 100644 index 000000000..228314a6d --- /dev/null +++ b/dist/components/bubbles/LoadingBubble.d.ts @@ -0,0 +1,2 @@ +export declare const LoadingBubble: () => import("solid-js").JSX.Element; +//# sourceMappingURL=LoadingBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/LoadingBubble.d.ts.map b/dist/components/bubbles/LoadingBubble.d.ts.map new file mode 100644 index 000000000..105246a54 --- /dev/null +++ b/dist/components/bubbles/LoadingBubble.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LoadingBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/LoadingBubble.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,sCAMzB,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/MeetingDetailsInline.d.ts b/dist/components/bubbles/MeetingDetailsInline.d.ts new file mode 100644 index 000000000..dd1c9d92f --- /dev/null +++ b/dist/components/bubbles/MeetingDetailsInline.d.ts @@ -0,0 +1,9 @@ +type MeetingDetailsInlineProps = { + meetingData: any; + primaryColor?: string; + botMessageBackgroundColor?: string; + botMessageTextColor?: string; +}; +export declare const MeetingDetailsInline: (props: MeetingDetailsInlineProps) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=MeetingDetailsInline.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/MeetingDetailsInline.d.ts.map b/dist/components/bubbles/MeetingDetailsInline.d.ts.map new file mode 100644 index 000000000..f94d472f8 --- /dev/null +++ b/dist/components/bubbles/MeetingDetailsInline.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"MeetingDetailsInline.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/MeetingDetailsInline.tsx"],"names":[],"mappings":"AAEA,KAAK,yBAAyB,GAAG;IAC/B,WAAW,EAAE,GAAG,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC;AAoCF,eAAO,MAAM,oBAAoB,UAAW,yBAAyB,mCAgKpE,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/SourceBubble.d.ts b/dist/components/bubbles/SourceBubble.d.ts new file mode 100644 index 000000000..6ac51a844 --- /dev/null +++ b/dist/components/bubbles/SourceBubble.d.ts @@ -0,0 +1,12 @@ +type Props = { + pageContent: string; + metadata: { + source?: string; + [key: string]: any; + }; + onSourceClick?: () => void; + backgroundColor?: string; +}; +export declare const SourceBubble: (props: Props) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=SourceBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/SourceBubble.d.ts.map b/dist/components/bubbles/SourceBubble.d.ts.map new file mode 100644 index 000000000..0fc6c48a2 --- /dev/null +++ b/dist/components/bubbles/SourceBubble.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SourceBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/SourceBubble.tsx"],"names":[],"mappings":"AAGA,KAAK,KAAK,GAAG;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAClD,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAuDF,eAAO,MAAM,YAAY,UAAW,KAAK,mCA8CxC,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/StarterPromptBubble.d.ts b/dist/components/bubbles/StarterPromptBubble.d.ts new file mode 100644 index 000000000..4775b446a --- /dev/null +++ b/dist/components/bubbles/StarterPromptBubble.d.ts @@ -0,0 +1,11 @@ +type Props = { + prompt: string; + onPromptClick?: () => void; + starterPromptFontSize?: number; + botMessageBackgroundColor?: string; + botMessageTextColor?: string; + botMessageBorderColor?: string; +}; +export declare const StarterPromptBubble: (props: Props) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=StarterPromptBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/StarterPromptBubble.d.ts.map b/dist/components/bubbles/StarterPromptBubble.d.ts.map new file mode 100644 index 000000000..86722f0ac --- /dev/null +++ b/dist/components/bubbles/StarterPromptBubble.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StarterPromptBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/StarterPromptBubble.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAgBF,eAAO,MAAM,mBAAmB,UAAW,KAAK,mCA6D/C,CAAC"} \ No newline at end of file diff --git a/dist/components/bubbles/ThinkingBubble.d.ts b/dist/components/bubbles/ThinkingBubble.d.ts new file mode 100644 index 000000000..333a92f65 --- /dev/null +++ b/dist/components/bubbles/ThinkingBubble.d.ts @@ -0,0 +1,10 @@ +type Props = { + thinking?: string; + thinkingDuration?: number; + isThinking?: boolean; + backgroundColor?: string; + textColor?: string; +}; +export declare const ThinkingCard: (props: Props) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=ThinkingBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/bubbles/ThinkingBubble.d.ts.map b/dist/components/bubbles/ThinkingBubble.d.ts.map new file mode 100644 index 000000000..9c90eb3bb --- /dev/null +++ b/dist/components/bubbles/ThinkingBubble.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ThinkingBubble.d.ts","sourceRoot":"","sources":["../../../src/components/bubbles/ThinkingBubble.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAmCF,eAAO,MAAM,YAAY,UAAW,KAAK,mCAgKxC,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/AttachmentUploadButton.d.ts b/dist/components/buttons/AttachmentUploadButton.d.ts new file mode 100644 index 000000000..d209f7f12 --- /dev/null +++ b/dist/components/buttons/AttachmentUploadButton.d.ts @@ -0,0 +1,11 @@ +import { JSX } from 'solid-js/jsx-runtime'; +type FileUploadButtonProps = { + buttonColor?: string; + isDisabled?: boolean; + isLoading?: boolean; + disableIcon?: boolean; +} & JSX.ButtonHTMLAttributes; +export declare const AttachmentUploadButton: (props: FileUploadButtonProps) => JSX.Element; +export declare const Spinner: (props: JSX.SvgSVGAttributes) => JSX.Element; +export {}; +//# sourceMappingURL=AttachmentUploadButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/AttachmentUploadButton.d.ts.map b/dist/components/buttons/AttachmentUploadButton.d.ts.map new file mode 100644 index 000000000..da9650130 --- /dev/null +++ b/dist/components/buttons/AttachmentUploadButton.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AttachmentUploadButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/AttachmentUploadButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,qBAAqB,GAAG;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,sBAAsB,UAAW,qBAAqB,gBAiBlE,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/CancelButton.d.ts b/dist/components/buttons/CancelButton.d.ts new file mode 100644 index 000000000..48822c804 --- /dev/null +++ b/dist/components/buttons/CancelButton.d.ts @@ -0,0 +1,10 @@ +import { JSX } from 'solid-js/jsx-runtime'; +type CancelButtonProps = { + buttonColor?: string; + isDisabled?: boolean; + isLoading?: boolean; + disableIcon?: boolean; +} & JSX.ButtonHTMLAttributes; +export declare const CancelButton: (props: CancelButtonProps) => JSX.Element; +export {}; +//# sourceMappingURL=CancelButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/CancelButton.d.ts.map b/dist/components/buttons/CancelButton.d.ts.map new file mode 100644 index 000000000..66927a224 --- /dev/null +++ b/dist/components/buttons/CancelButton.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CancelButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/CancelButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,iBAAiB,GAAG;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,YAAY,UAAW,iBAAiB,gBAepD,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/FeedbackButtons.d.ts b/dist/components/buttons/FeedbackButtons.d.ts new file mode 100644 index 000000000..ca610aa9d --- /dev/null +++ b/dist/components/buttons/FeedbackButtons.d.ts @@ -0,0 +1,13 @@ +import { JSX } from 'solid-js'; +type RatingButtonProps = { + feedbackColor?: string; + isDisabled?: boolean; + isLoading?: boolean; + disableIcon?: boolean; + rating?: string; +} & JSX.ButtonHTMLAttributes; +export declare const CopyToClipboardButton: (props: RatingButtonProps) => JSX.Element; +export declare const ThumbsUpButton: (props: RatingButtonProps) => JSX.Element; +export declare const ThumbsDownButton: (props: RatingButtonProps) => JSX.Element; +export {}; +//# sourceMappingURL=FeedbackButtons.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/FeedbackButtons.d.ts.map b/dist/components/buttons/FeedbackButtons.d.ts.map new file mode 100644 index 000000000..fe314d26d --- /dev/null +++ b/dist/components/buttons/FeedbackButtons.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FeedbackButtons.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/FeedbackButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAQ,MAAM,UAAU,CAAC;AAIrC,KAAK,iBAAiB,GAAG;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAIhD,eAAO,MAAM,qBAAqB,UAAW,iBAAiB,gBAiB7D,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,iBAAiB,gBAkBtD,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,iBAAiB,gBAkBxD,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/ImageUploadButton.d.ts b/dist/components/buttons/ImageUploadButton.d.ts new file mode 100644 index 000000000..aab4ed06b --- /dev/null +++ b/dist/components/buttons/ImageUploadButton.d.ts @@ -0,0 +1,11 @@ +import { JSX } from 'solid-js/jsx-runtime'; +type ImageUploadButtonProps = { + buttonColor?: string; + isDisabled?: boolean; + isLoading?: boolean; + disableIcon?: boolean; +} & JSX.ButtonHTMLAttributes; +export declare const ImageUploadButton: (props: ImageUploadButtonProps) => JSX.Element; +export declare const Spinner: (props: JSX.SvgSVGAttributes) => JSX.Element; +export {}; +//# sourceMappingURL=ImageUploadButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/ImageUploadButton.d.ts.map b/dist/components/buttons/ImageUploadButton.d.ts.map new file mode 100644 index 000000000..b84ecbea0 --- /dev/null +++ b/dist/components/buttons/ImageUploadButton.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ImageUploadButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/ImageUploadButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,sBAAsB,GAAG;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,gBAiB9D,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/LeadCaptureButtons.d.ts b/dist/components/buttons/LeadCaptureButtons.d.ts new file mode 100644 index 000000000..7607ad106 --- /dev/null +++ b/dist/components/buttons/LeadCaptureButtons.d.ts @@ -0,0 +1,11 @@ +import { JSX } from 'solid-js'; +type LeadCaptureButtonProps = { + buttonColor?: string; + isDisabled?: boolean; + isLoading?: boolean; + disableIcon?: boolean; +} & JSX.ButtonHTMLAttributes; +export declare const CancelLeadCaptureButton: (props: LeadCaptureButtonProps) => JSX.Element; +export declare const SaveLeadButton: (props: LeadCaptureButtonProps) => JSX.Element; +export {}; +//# sourceMappingURL=LeadCaptureButtons.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/LeadCaptureButtons.d.ts.map b/dist/components/buttons/LeadCaptureButtons.d.ts.map new file mode 100644 index 000000000..d80b5bbc0 --- /dev/null +++ b/dist/components/buttons/LeadCaptureButtons.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LeadCaptureButtons.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/LeadCaptureButtons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAQ,MAAM,UAAU,CAAC;AAIrC,KAAK,sBAAsB,GAAG;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAGhD,eAAO,MAAM,uBAAuB,UAAW,sBAAsB,gBAepE,CAAC;AAWF,eAAO,MAAM,cAAc,UAAW,sBAAsB,gBAc3D,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/RecordAudioButton.d.ts b/dist/components/buttons/RecordAudioButton.d.ts new file mode 100644 index 000000000..8ae1b1262 --- /dev/null +++ b/dist/components/buttons/RecordAudioButton.d.ts @@ -0,0 +1,12 @@ +import { JSX } from 'solid-js/jsx-runtime'; +type RecordAudioButtonProps = { + buttonColor?: string; + isDisabled?: boolean; + isLoading?: boolean; + isRecording?: boolean; + disableIcon?: boolean; +} & JSX.ButtonHTMLAttributes; +export declare const RecordAudioButton: (props: RecordAudioButtonProps) => JSX.Element; +export declare const Spinner: (props: JSX.SvgSVGAttributes) => JSX.Element; +export {}; +//# sourceMappingURL=RecordAudioButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/RecordAudioButton.d.ts.map b/dist/components/buttons/RecordAudioButton.d.ts.map new file mode 100644 index 000000000..4bb43face --- /dev/null +++ b/dist/components/buttons/RecordAudioButton.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"RecordAudioButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/RecordAudioButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAI3C,KAAK,sBAAsB,GAAG;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,gBAqB9D,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/RegenerateResponseButton.d.ts b/dist/components/buttons/RegenerateResponseButton.d.ts new file mode 100644 index 000000000..d6b498bed --- /dev/null +++ b/dist/components/buttons/RegenerateResponseButton.d.ts @@ -0,0 +1,10 @@ +import { JSX } from 'solid-js'; +type RegenerateResponseButtonProps = { + feedbackColor?: string; + isDisabled?: boolean; + isLoading?: boolean; + disableIcon?: boolean; +} & JSX.ButtonHTMLAttributes; +export declare const RegenerateResponseButton: (props: RegenerateResponseButtonProps) => JSX.Element; +export {}; +//# sourceMappingURL=RegenerateResponseButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/RegenerateResponseButton.d.ts.map b/dist/components/buttons/RegenerateResponseButton.d.ts.map new file mode 100644 index 000000000..301df39ba --- /dev/null +++ b/dist/components/buttons/RegenerateResponseButton.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"RegenerateResponseButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/RegenerateResponseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAQ,MAAM,UAAU,CAAC;AAIrC,KAAK,6BAA6B,GAAG;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAIhD,eAAO,MAAM,wBAAwB,UAAW,6BAA6B,gBAkB5E,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/SendButton.d.ts b/dist/components/buttons/SendButton.d.ts new file mode 100644 index 000000000..1ae608e5a --- /dev/null +++ b/dist/components/buttons/SendButton.d.ts @@ -0,0 +1,12 @@ +import { JSX } from 'solid-js/jsx-runtime'; +type SendButtonProps = { + sendButtonColor?: string; + isDisabled?: boolean; + isLoading?: boolean; + disableIcon?: boolean; +} & JSX.ButtonHTMLAttributes; +export declare const SendButton: (props: SendButtonProps) => JSX.Element; +export declare const DeleteButton: (props: SendButtonProps) => JSX.Element; +export declare const Spinner: (props: JSX.SvgSVGAttributes) => JSX.Element; +export {}; +//# sourceMappingURL=SendButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/SendButton.d.ts.map b/dist/components/buttons/SendButton.d.ts.map new file mode 100644 index 000000000..935ceaa06 --- /dev/null +++ b/dist/components/buttons/SendButton.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SendButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/SendButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,eAAe,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,UAAU,UAAW,eAAe,gBAiBhD,CAAC;AACF,eAAO,MAAM,YAAY,UAAW,eAAe,gBAsBlD,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBjE,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/StopButton.d.ts b/dist/components/buttons/StopButton.d.ts new file mode 100644 index 000000000..e36eb099f --- /dev/null +++ b/dist/components/buttons/StopButton.d.ts @@ -0,0 +1,9 @@ +import { JSX } from 'solid-js/jsx-runtime'; +type StopButtonProps = { + sendButtonColor?: string; + isDisabled?: boolean; + isStopping?: boolean; +} & JSX.ButtonHTMLAttributes; +export declare const StopButton: (props: StopButtonProps) => JSX.Element; +export {}; +//# sourceMappingURL=StopButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/StopButton.d.ts.map b/dist/components/buttons/StopButton.d.ts.map new file mode 100644 index 000000000..9d078b41a --- /dev/null +++ b/dist/components/buttons/StopButton.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StopButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/StopButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,KAAK,eAAe,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAShD,eAAO,MAAM,UAAU,UAAW,eAAe,gBAkBhD,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/TTSButton.d.ts b/dist/components/buttons/TTSButton.d.ts new file mode 100644 index 000000000..0578588c7 --- /dev/null +++ b/dist/components/buttons/TTSButton.d.ts @@ -0,0 +1,10 @@ +type Props = { + isLoading?: boolean; + isPlaying?: boolean; + feedbackColor?: string; + onClick: () => void; + class?: string; +}; +export declare const TTSButton: (props: Props) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=TTSButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/TTSButton.d.ts.map b/dist/components/buttons/TTSButton.d.ts.map new file mode 100644 index 000000000..91866f5c4 --- /dev/null +++ b/dist/components/buttons/TTSButton.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TTSButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/TTSButton.tsx"],"names":[],"mappings":"AAGA,KAAK,KAAK,GAAG;IACX,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAIF,eAAO,MAAM,SAAS,UAAW,KAAK,mCA6DrC,CAAC"} \ No newline at end of file diff --git a/dist/components/buttons/TracesButton.d.ts b/dist/components/buttons/TracesButton.d.ts new file mode 100644 index 000000000..89ef10fbf --- /dev/null +++ b/dist/components/buttons/TracesButton.d.ts @@ -0,0 +1,10 @@ +import { JSX } from 'solid-js'; +type TracesButtonProps = { + feedbackColor?: string; + isDisabled?: boolean; + isLoading?: boolean; + disableIcon?: boolean; +} & JSX.ButtonHTMLAttributes; +export declare const TracesButton: (props: TracesButtonProps) => JSX.Element; +export {}; +//# sourceMappingURL=TracesButton.d.ts.map \ No newline at end of file diff --git a/dist/components/buttons/TracesButton.d.ts.map b/dist/components/buttons/TracesButton.d.ts.map new file mode 100644 index 000000000..37d7b8ccf --- /dev/null +++ b/dist/components/buttons/TracesButton.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TracesButton.d.ts","sourceRoot":"","sources":["../../../src/components/buttons/TracesButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAQ,MAAM,UAAU,CAAC;AAIrC,KAAK,iBAAiB,GAAG;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,GAAG,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAIhD,eAAO,MAAM,YAAY,UAAW,iBAAiB,gBAqBpD,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/AddImageIcon.d.ts b/dist/components/icons/AddImageIcon.d.ts new file mode 100644 index 000000000..4536720f6 --- /dev/null +++ b/dist/components/icons/AddImageIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const AddImageIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=AddImageIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/AddImageIcon.d.ts.map b/dist/components/icons/AddImageIcon.d.ts.map new file mode 100644 index 000000000..003cd2dc5 --- /dev/null +++ b/dist/components/icons/AddImageIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AddImageIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/AddImageIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,YAAY,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAkBtE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/AttachmentIcon.d.ts b/dist/components/icons/AttachmentIcon.d.ts new file mode 100644 index 000000000..67c09539b --- /dev/null +++ b/dist/components/icons/AttachmentIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const AttachmentIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=AttachmentIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/AttachmentIcon.d.ts.map b/dist/components/icons/AttachmentIcon.d.ts.map new file mode 100644 index 000000000..d654be14e --- /dev/null +++ b/dist/components/icons/AttachmentIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AttachmentIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/AttachmentIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,cAAc,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBxE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/ChevronDownIcon.d.ts b/dist/components/icons/ChevronDownIcon.d.ts new file mode 100644 index 000000000..06896d5e3 --- /dev/null +++ b/dist/components/icons/ChevronDownIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const ChevronDownIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=ChevronDownIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/ChevronDownIcon.d.ts.map b/dist/components/icons/ChevronDownIcon.d.ts.map new file mode 100644 index 000000000..609b318df --- /dev/null +++ b/dist/components/icons/ChevronDownIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ChevronDownIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ChevronDownIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,eAAe,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAazE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/ChevronRightIcon.d.ts b/dist/components/icons/ChevronRightIcon.d.ts new file mode 100644 index 000000000..884a37853 --- /dev/null +++ b/dist/components/icons/ChevronRightIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const ChevronRightIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=ChevronRightIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/ChevronRightIcon.d.ts.map b/dist/components/icons/ChevronRightIcon.d.ts.map new file mode 100644 index 000000000..616d3fead --- /dev/null +++ b/dist/components/icons/ChevronRightIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ChevronRightIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ChevronRightIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,gBAAgB,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAa1E,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/CircleDotIcon.d.ts b/dist/components/icons/CircleDotIcon.d.ts new file mode 100644 index 000000000..15080c2d1 --- /dev/null +++ b/dist/components/icons/CircleDotIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const CircleDotIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=CircleDotIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/CircleDotIcon.d.ts.map b/dist/components/icons/CircleDotIcon.d.ts.map new file mode 100644 index 000000000..3dbd7f74a --- /dev/null +++ b/dist/components/icons/CircleDotIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CircleDotIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/CircleDotIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,aAAa,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAevE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/ClipboardIcon.d.ts b/dist/components/icons/ClipboardIcon.d.ts new file mode 100644 index 000000000..1de75985a --- /dev/null +++ b/dist/components/icons/ClipboardIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const ClipboardIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=ClipboardIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/ClipboardIcon.d.ts.map b/dist/components/icons/ClipboardIcon.d.ts.map new file mode 100644 index 000000000..a49e1091b --- /dev/null +++ b/dist/components/icons/ClipboardIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ClipboardIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ClipboardIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,aAAa,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBvE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/DeleteIcon.d.ts b/dist/components/icons/DeleteIcon.d.ts new file mode 100644 index 000000000..e85753790 --- /dev/null +++ b/dist/components/icons/DeleteIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const DeleteIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=DeleteIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/DeleteIcon.d.ts.map b/dist/components/icons/DeleteIcon.d.ts.map new file mode 100644 index 000000000..2080bf5fd --- /dev/null +++ b/dist/components/icons/DeleteIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"DeleteIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/DeleteIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,UAAU,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAiBpE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/DownloadFileIcon.d.ts b/dist/components/icons/DownloadFileIcon.d.ts new file mode 100644 index 000000000..182926eac --- /dev/null +++ b/dist/components/icons/DownloadFileIcon.d.ts @@ -0,0 +1,2 @@ +export declare const DownloadFileIcon: () => import("solid-js").JSX.Element; +//# sourceMappingURL=DownloadFileIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/DownloadFileIcon.d.ts.map b/dist/components/icons/DownloadFileIcon.d.ts.map new file mode 100644 index 000000000..bd3e27a87 --- /dev/null +++ b/dist/components/icons/DownloadFileIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"DownloadFileIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/DownloadFileIcon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,sCAkB5B,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/FileIcon.d.ts b/dist/components/icons/FileIcon.d.ts new file mode 100644 index 000000000..d8161081f --- /dev/null +++ b/dist/components/icons/FileIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const FileIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=FileIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/FileIcon.d.ts.map b/dist/components/icons/FileIcon.d.ts.map new file mode 100644 index 000000000..27ce99b70 --- /dev/null +++ b/dist/components/icons/FileIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FileIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/FileIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,QAAQ,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAclE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/FolderIcon.d.ts b/dist/components/icons/FolderIcon.d.ts new file mode 100644 index 000000000..80b89ee28 --- /dev/null +++ b/dist/components/icons/FolderIcon.d.ts @@ -0,0 +1,4 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const FolderIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +export declare const FolderOpenIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=FolderIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/FolderIcon.d.ts.map b/dist/components/icons/FolderIcon.d.ts.map new file mode 100644 index 000000000..21fe05ee5 --- /dev/null +++ b/dist/components/icons/FolderIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FolderIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/FolderIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,UAAU,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAapE,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAaxE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/GlobeIcon.d.ts b/dist/components/icons/GlobeIcon.d.ts new file mode 100644 index 000000000..74e609ee5 --- /dev/null +++ b/dist/components/icons/GlobeIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const GlobeIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=GlobeIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/GlobeIcon.d.ts.map b/dist/components/icons/GlobeIcon.d.ts.map new file mode 100644 index 000000000..f08ed2b3e --- /dev/null +++ b/dist/components/icons/GlobeIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"GlobeIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/GlobeIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,SAAS,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAenE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/RecordIcon.d.ts b/dist/components/icons/RecordIcon.d.ts new file mode 100644 index 000000000..633262cb1 --- /dev/null +++ b/dist/components/icons/RecordIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const RecordIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=RecordIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/RecordIcon.d.ts.map b/dist/components/icons/RecordIcon.d.ts.map new file mode 100644 index 000000000..b5e6f727c --- /dev/null +++ b/dist/components/icons/RecordIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"RecordIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/RecordIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,UAAU,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBpE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/SendIcon.d.ts b/dist/components/icons/SendIcon.d.ts new file mode 100644 index 000000000..117487ca8 --- /dev/null +++ b/dist/components/icons/SendIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const SendIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=SendIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/SendIcon.d.ts.map b/dist/components/icons/SendIcon.d.ts.map new file mode 100644 index 000000000..01d48c990 --- /dev/null +++ b/dist/components/icons/SendIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SendIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/SendIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,QAAQ,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAIlE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/SparklesIcon.d.ts b/dist/components/icons/SparklesIcon.d.ts new file mode 100644 index 000000000..f65f5e770 --- /dev/null +++ b/dist/components/icons/SparklesIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const SparklesIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=SparklesIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/SparklesIcon.d.ts.map b/dist/components/icons/SparklesIcon.d.ts.map new file mode 100644 index 000000000..ff72ce26a --- /dev/null +++ b/dist/components/icons/SparklesIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SparklesIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/SparklesIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,eAAO,MAAM,YAAY,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBtE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/SquareStopIcon.d.ts b/dist/components/icons/SquareStopIcon.d.ts new file mode 100644 index 000000000..ae94d316a --- /dev/null +++ b/dist/components/icons/SquareStopIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const SquareStopIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=SquareStopIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/SquareStopIcon.d.ts.map b/dist/components/icons/SquareStopIcon.d.ts.map new file mode 100644 index 000000000..05121a0b3 --- /dev/null +++ b/dist/components/icons/SquareStopIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SquareStopIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/SquareStopIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,cAAc,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBxE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/StopIcon.d.ts b/dist/components/icons/StopIcon.d.ts new file mode 100644 index 000000000..c76b2488f --- /dev/null +++ b/dist/components/icons/StopIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const StopIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=StopIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/StopIcon.d.ts.map b/dist/components/icons/StopIcon.d.ts.map new file mode 100644 index 000000000..f29b1c304 --- /dev/null +++ b/dist/components/icons/StopIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StopIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/StopIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,QAAQ,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAIlE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/ThumbsDownIcon.d.ts b/dist/components/icons/ThumbsDownIcon.d.ts new file mode 100644 index 000000000..23b7977ca --- /dev/null +++ b/dist/components/icons/ThumbsDownIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const ThumbsDownIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=ThumbsDownIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/ThumbsDownIcon.d.ts.map b/dist/components/icons/ThumbsDownIcon.d.ts.map new file mode 100644 index 000000000..8e796f1c6 --- /dev/null +++ b/dist/components/icons/ThumbsDownIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ThumbsDownIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ThumbsDownIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,cAAc,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBxE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/ThumbsUpIcon.d.ts b/dist/components/icons/ThumbsUpIcon.d.ts new file mode 100644 index 000000000..61c6b9250 --- /dev/null +++ b/dist/components/icons/ThumbsUpIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const ThumbsUpIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=ThumbsUpIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/ThumbsUpIcon.d.ts.map b/dist/components/icons/ThumbsUpIcon.d.ts.map new file mode 100644 index 000000000..5a67e094a --- /dev/null +++ b/dist/components/icons/ThumbsUpIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ThumbsUpIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/ThumbsUpIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,YAAY,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAgBtE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/TickIcon.d.ts b/dist/components/icons/TickIcon.d.ts new file mode 100644 index 000000000..58467b450 --- /dev/null +++ b/dist/components/icons/TickIcon.d.ts @@ -0,0 +1,2 @@ +export declare const TickIcon: () => import("solid-js").JSX.Element; +//# sourceMappingURL=TickIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/TickIcon.d.ts.map b/dist/components/icons/TickIcon.d.ts.map new file mode 100644 index 000000000..909a95155 --- /dev/null +++ b/dist/components/icons/TickIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TickIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/TickIcon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,sCAepB,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/TracesIcon.d.ts b/dist/components/icons/TracesIcon.d.ts new file mode 100644 index 000000000..1a670bb4f --- /dev/null +++ b/dist/components/icons/TracesIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const TracesIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=TracesIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/TracesIcon.d.ts.map b/dist/components/icons/TracesIcon.d.ts.map new file mode 100644 index 000000000..1d89825e3 --- /dev/null +++ b/dist/components/icons/TracesIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TracesIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/TracesIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAG3C,eAAO,MAAM,UAAU,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAqBpE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/TrashIcon.d.ts b/dist/components/icons/TrashIcon.d.ts new file mode 100644 index 000000000..37221181f --- /dev/null +++ b/dist/components/icons/TrashIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const TrashIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=TrashIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/TrashIcon.d.ts.map b/dist/components/icons/TrashIcon.d.ts.map new file mode 100644 index 000000000..e23edbf46 --- /dev/null +++ b/dist/components/icons/TrashIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TrashIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/TrashIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,SAAS,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAkBnE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/VolumeIcon.d.ts b/dist/components/icons/VolumeIcon.d.ts new file mode 100644 index 000000000..e97e5a4ff --- /dev/null +++ b/dist/components/icons/VolumeIcon.d.ts @@ -0,0 +1,3 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const VolumeIcon: (props: JSX.SvgSVGAttributes) => JSX.Element; +//# sourceMappingURL=VolumeIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/VolumeIcon.d.ts.map b/dist/components/icons/VolumeIcon.d.ts.map new file mode 100644 index 000000000..a98f5c8bf --- /dev/null +++ b/dist/components/icons/VolumeIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"VolumeIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/VolumeIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,UAAU,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,gBAkBpE,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/XIcon.d.ts b/dist/components/icons/XIcon.d.ts new file mode 100644 index 000000000..2ba85a697 --- /dev/null +++ b/dist/components/icons/XIcon.d.ts @@ -0,0 +1,5 @@ +import { JSX } from 'solid-js/jsx-runtime'; +export declare const XIcon: (props: JSX.SvgSVGAttributes & { + isCurrentColor?: boolean; +}) => JSX.Element; +//# sourceMappingURL=XIcon.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/XIcon.d.ts.map b/dist/components/icons/XIcon.d.ts.map new file mode 100644 index 000000000..676394326 --- /dev/null +++ b/dist/components/icons/XIcon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"XIcon.d.ts","sourceRoot":"","sources":["../../../src/components/icons/XIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,eAAO,MAAM,KAAK,UAAW,IAAI,gBAAgB,CAAC,aAAa,CAAC,GAAG;IAAE,cAAc,CAAC,EAAE,OAAO,CAAA;CAAE,gBAe9F,CAAC"} \ No newline at end of file diff --git a/dist/components/icons/index.d.ts b/dist/components/icons/index.d.ts new file mode 100644 index 000000000..6144cc51a --- /dev/null +++ b/dist/components/icons/index.d.ts @@ -0,0 +1,21 @@ +export * from './ClipboardIcon'; +export * from './ThumbsDownIcon'; +export * from './ThumbsUpIcon'; +export * from './AddImageIcon'; +export * from './CircleDotIcon'; +export * from './DeleteIcon'; +export * from './RecordIcon'; +export * from './SendIcon'; +export * from './TrashIcon'; +export * from './XIcon'; +export * from './TickIcon'; +export * from './AttachmentIcon'; +export * from './SparklesIcon'; +export * from './VolumeIcon'; +export * from './SquareStopIcon'; +export * from './ChevronDownIcon'; +export * from './TracesIcon'; +export * from './FileIcon'; +export * from './GlobeIcon'; +export * from './DownloadFileIcon'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/icons/index.d.ts.map b/dist/components/icons/index.d.ts.map new file mode 100644 index 000000000..9e28ff41a --- /dev/null +++ b/dist/components/icons/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"} \ No newline at end of file diff --git a/dist/components/index.d.ts b/dist/components/index.d.ts new file mode 100644 index 000000000..8e2814056 --- /dev/null +++ b/dist/components/index.d.ts @@ -0,0 +1,3 @@ +export * from './buttons/SendButton'; +export * from './TypingBubble'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/index.d.ts.map b/dist/components/index.d.ts.map new file mode 100644 index 000000000..87bc3a508 --- /dev/null +++ b/dist/components/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC"} \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/FilePreview.d.ts b/dist/components/inputs/textInput/components/FilePreview.d.ts new file mode 100644 index 000000000..855a67bfd --- /dev/null +++ b/dist/components/inputs/textInput/components/FilePreview.d.ts @@ -0,0 +1,12 @@ +type CardWithDeleteOverlayProps = { + item: { + name: string; + }; + disabled?: boolean; + onDelete: (item: { + name: string; + }) => void; +}; +export declare const FilePreview: (props: CardWithDeleteOverlayProps) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=FilePreview.d.ts.map \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/FilePreview.d.ts.map b/dist/components/inputs/textInput/components/FilePreview.d.ts.map new file mode 100644 index 000000000..58bf76bab --- /dev/null +++ b/dist/components/inputs/textInput/components/FilePreview.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FilePreview.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/components/FilePreview.tsx"],"names":[],"mappings":"AAGA,KAAK,0BAA0B,GAAG;IAChC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,0BAA0B,mCAyC5D,CAAC"} \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/ShortTextInput.d.ts b/dist/components/inputs/textInput/components/ShortTextInput.d.ts new file mode 100644 index 000000000..28543c6ef --- /dev/null +++ b/dist/components/inputs/textInput/components/ShortTextInput.d.ts @@ -0,0 +1,10 @@ +import { JSX } from 'solid-js/jsx-runtime'; +type ShortTextInputProps = { + ref: HTMLInputElement | HTMLTextAreaElement | undefined; + onInput: (value: string) => void; + fontSize?: number; + disabled?: boolean; +} & Omit, 'onInput'>; +export declare const ShortTextInput: (props: ShortTextInputProps) => JSX.Element; +export {}; +//# sourceMappingURL=ShortTextInput.d.ts.map \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map b/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map new file mode 100644 index 000000000..ee2430171 --- /dev/null +++ b/dist/components/inputs/textInput/components/ShortTextInput.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ShortTextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/components/ShortTextInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAE3C,KAAK,mBAAmB,GAAG;IACzB,GAAG,EAAE,gBAAgB,GAAG,mBAAmB,GAAG,SAAS,CAAC;IACxD,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,SAAS,CAAC,CAAC;AAIrE,eAAO,MAAM,cAAc,UAAW,mBAAmB,gBA4CxD,CAAC"} \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/TextInput.d.ts b/dist/components/inputs/textInput/components/TextInput.d.ts new file mode 100644 index 000000000..1db356031 --- /dev/null +++ b/dist/components/inputs/textInput/components/TextInput.d.ts @@ -0,0 +1,33 @@ +import { Setter } from 'solid-js'; +import { FileEvent, UploadsConfig } from '@/components/Bot'; +type TextInputProps = { + placeholder?: string; + backgroundColor?: string; + textColor?: string; + sendButtonColor?: string; + inputValue: string; + fontSize?: number; + disabled?: boolean; + onSubmit: (value: string) => void; + onInputChange: (value: string) => void; + uploadsConfig?: Partial; + isFullFileUpload?: boolean; + setPreviews: Setter; + onMicrophoneClicked: () => void; + handleFileChange: (event: FileEvent) => void; + maxChars?: number; + maxCharsWarningMessage?: string; + autoFocus?: boolean; + sendMessageSound?: boolean; + sendSoundLocation?: string; + fullFileUploadAllowedTypes?: string; + enableInputHistory?: boolean; + maxHistorySize?: number; + isLoading?: boolean; + showAbortButton?: boolean; + isMessageStopping?: boolean; + onAbort?: () => void; +}; +export declare const TextInput: (props: TextInputProps) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=TextInput.d.ts.map \ No newline at end of file diff --git a/dist/components/inputs/textInput/components/TextInput.d.ts.map b/dist/components/inputs/textInput/components/TextInput.d.ts.map new file mode 100644 index 000000000..4de9acb2c --- /dev/null +++ b/dist/components/inputs/textInput/components/TextInput.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/inputs/textInput/components/TextInput.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA6C,MAAM,EAAE,MAAM,UAAU,CAAC;AAE7E,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAiB5D,KAAK,cAAc,GAAG;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,aAAa,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IACvC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IAC/B,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,gBAAgB,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAMF,eAAO,MAAM,SAAS,UAAW,cAAc,mCAwR9C,CAAC"} \ No newline at end of file diff --git a/dist/components/inputs/textInput/index.d.ts b/dist/components/inputs/textInput/index.d.ts new file mode 100644 index 000000000..a3b6a60e0 --- /dev/null +++ b/dist/components/inputs/textInput/index.d.ts @@ -0,0 +1,3 @@ +export { TextInput } from './components/TextInput'; +export { FilePreview } from './components/FilePreview'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/inputs/textInput/index.d.ts.map b/dist/components/inputs/textInput/index.d.ts.map new file mode 100644 index 000000000..7fc780aae --- /dev/null +++ b/dist/components/inputs/textInput/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/textInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/AgentflowIcons.d.ts b/dist/components/treeview/AgentflowIcons.d.ts new file mode 100644 index 000000000..4d214f0be --- /dev/null +++ b/dist/components/treeview/AgentflowIcons.d.ts @@ -0,0 +1,15 @@ +import { JSXElement } from 'solid-js'; +type IconProps = { + size?: number; + color?: string; +}; +export declare const MaximizeIcon: (props: IconProps) => import("solid-js").JSX.Element; +type AgentflowIconEntry = { + name: string; + icon: (props: IconProps) => JSXElement; + color: string; +}; +export declare const AGENTFLOW_ICONS: AgentflowIconEntry[]; +export declare function getAgentflowIcon(name: string): AgentflowIconEntry | null; +export {}; +//# sourceMappingURL=AgentflowIcons.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/AgentflowIcons.d.ts.map b/dist/components/treeview/AgentflowIcons.d.ts.map new file mode 100644 index 000000000..d20ba25ad --- /dev/null +++ b/dist/components/treeview/AgentflowIcons.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AgentflowIcons.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/AgentflowIcons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,KAAK,SAAS,GAAG;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAuSF,eAAO,MAAM,YAAY,UAAW,SAAS,mCAiB5C,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,UAAU,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,kBAAkB,EAgB/C,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI,CAExE"} \ No newline at end of file diff --git a/dist/components/treeview/DataTransformer.d.ts b/dist/components/treeview/DataTransformer.d.ts new file mode 100644 index 000000000..012f75d00 --- /dev/null +++ b/dist/components/treeview/DataTransformer.d.ts @@ -0,0 +1,7 @@ +type DataTransformerProps = { + jsonData: string; + class?: string; +}; +export declare const DataTransformer: (props: DataTransformerProps) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=DataTransformer.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/DataTransformer.d.ts.map b/dist/components/treeview/DataTransformer.d.ts.map new file mode 100644 index 000000000..762c54d45 --- /dev/null +++ b/dist/components/treeview/DataTransformer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"DataTransformer.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/DataTransformer.tsx"],"names":[],"mappings":"AAGA,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,oBAAoB,mCAoE1D,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/NodeDetailsContent.d.ts b/dist/components/treeview/NodeDetailsContent.d.ts new file mode 100644 index 000000000..8ce66a34e --- /dev/null +++ b/dist/components/treeview/NodeDetailsContent.d.ts @@ -0,0 +1,36 @@ +export type NodeDetailsNode = { + label: string; + name: string; + status: string; + data: any; +}; +type NodeDetailsContentProps = { + node: NodeDetailsNode; + backgroundColor?: string; + textColor?: string; + apiHost?: string; + chatflowid?: string; + chatId?: string; +}; +export declare function syntaxHighlight(json: string): string; +export declare const CloseIcon: () => import("solid-js").JSX.Element; +export declare const ClockIcon: () => import("solid-js").JSX.Element; +export declare const CoinIcon: () => import("solid-js").JSX.Element; +export declare const TokenIcon: () => import("solid-js").JSX.Element; +export declare const NodeIcon: (props: { + name: string; + apiHost?: string; + size?: number; + borderRadius?: string; + bgColor?: string; +}) => import("solid-js").JSX.Element; +export declare const jsonBlockStyle: Record; +export declare const nddStyles = "\n .ndd-json .string { color: #7ac35c; }\n .ndd-json .number { color: #e08331; }\n .ndd-json .boolean { color: #326dc3; }\n .ndd-json .null { color: #a951ad; }\n .ndd-json .key { color: #d73e3e; font-weight: bold; }\n @keyframes ndd-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }\n .ndd-spin { animation: ndd-spin 1.5s linear infinite; }\n .ndd-markdown p { margin: 0 0 0.5em 0; }\n .ndd-markdown p:last-child { margin-bottom: 0; }\n .ndd-markdown code { background: rgba(0,0,0,0.06); padding: 1px 4px; border-radius: 3px; font-size: 0.8em; font-family: 'SF Mono', 'Fira Code', Menlo, Consolas, monospace; }\n .ndd-markdown pre { background: rgba(0,0,0,0.04); padding: 10px 12px; border-radius: 6px; overflow-x: auto; margin: 0.5em 0; }\n .ndd-markdown pre code { background: none; padding: 0; font-size: 0.8em; }\n .ndd-markdown a { color: #1976d2; text-decoration: underline; }\n .ndd-markdown ul, .ndd-markdown ol { margin: 0.4em 0; padding-left: 1.5em; }\n .ndd-markdown li { margin: 0.2em 0; }\n .ndd-markdown h1, .ndd-markdown h2, .ndd-markdown h3 { margin: 0.6em 0 0.3em 0; font-weight: 600; }\n .ndd-markdown h1 { font-size: 1.2em; }\n .ndd-markdown h2 { font-size: 1.1em; }\n .ndd-markdown h3 { font-size: 1em; }\n .ndd-markdown blockquote { border-left: 3px solid rgba(0,0,0,0.15); margin: 0.5em 0; padding: 0.2em 0 0.2em 0.8em; opacity: 0.85; }\n .ndd-markdown table { border-collapse: collapse; margin: 0.5em 0; font-size: 0.85em; }\n .ndd-markdown th, .ndd-markdown td { border: 1px solid rgba(0,0,0,0.12); padding: 4px 8px; }\n .ndd-markdown th { background: rgba(0,0,0,0.04); font-weight: 600; }\n .ndd-markdown strong { font-weight: 600; }\n"; +export declare const getMetrics: (data: any) => { + time?: string | undefined; + tokens?: string | undefined; + cost?: string | undefined; +} | null; +export declare const NodeDetailsContent: (props: NodeDetailsContentProps) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=NodeDetailsContent.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/NodeDetailsContent.d.ts.map b/dist/components/treeview/NodeDetailsContent.d.ts.map new file mode 100644 index 000000000..34f3148f1 --- /dev/null +++ b/dist/components/treeview/NodeDetailsContent.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"NodeDetailsContent.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/NodeDetailsContent.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;CACX,CAAC;AAEF,KAAK,uBAAuB,GAAG;IAC7B,IAAI,EAAE,eAAe,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAIF,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAcpD;AAID,eAAO,MAAM,SAAS,sCAerB,CAAC;AAkBF,eAAO,MAAM,SAAS,sCAerB,CAAC;AAEF,eAAO,MAAM,QAAQ,sCAgBpB,CAAC;AAEF,eAAO,MAAM,SAAS,sCAiBrB,CAAC;AAyDF,eAAO,MAAM,QAAQ,UAAW;IAAE,MAAM,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,mCAmEzH,CAAC;AA2FF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAWjD,CAAC;AAsIF,eAAO,MAAM,SAAS,orDAyBrB,CAAC;AAIF,eAAO,MAAM,UAAU,SAAU,GAAG;;;;QAoBnC,CAAC;AAIF,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,mCAimBhE,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/NodeDetailsDialog.d.ts b/dist/components/treeview/NodeDetailsDialog.d.ts new file mode 100644 index 000000000..34506b49a --- /dev/null +++ b/dist/components/treeview/NodeDetailsDialog.d.ts @@ -0,0 +1,20 @@ +type NodeDetailsDialogProps = { + isOpen: boolean; + onClose: () => void; + node: { + label: string; + name: string; + status: string; + data: any; + } | null; + backgroundColor?: string; + textColor?: string; + apiHost?: string; + chatflowid?: string; + chatId?: string; + dialogContainer?: HTMLElement; + hasCustomHeader?: boolean; +}; +export declare const NodeDetailsDialog: (props: NodeDetailsDialogProps) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=NodeDetailsDialog.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/NodeDetailsDialog.d.ts.map b/dist/components/treeview/NodeDetailsDialog.d.ts.map new file mode 100644 index 000000000..2af4635bf --- /dev/null +++ b/dist/components/treeview/NodeDetailsDialog.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"NodeDetailsDialog.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/NodeDetailsDialog.tsx"],"names":[],"mappings":"AAKA,KAAK,sBAAsB,GAAG;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,GAAG,CAAC;KACX,GAAG,IAAI,CAAC;IACT,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,eAAe,CAAC,EAAE,WAAW,CAAC;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,sBAAsB,mCA0E9D,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/RichTreeView.d.ts b/dist/components/treeview/RichTreeView.d.ts new file mode 100644 index 000000000..a6d85305d --- /dev/null +++ b/dist/components/treeview/RichTreeView.d.ts @@ -0,0 +1,25 @@ +import { JSXElement } from 'solid-js'; +type RichTreeViewProps = { + children: JSXElement; + defaultExpanded?: string[]; + defaultSelected?: string; + onNodeSelect?: (itemId: string) => void; + highlightItems?: string[]; + multiSelect?: boolean; + class?: string; + indentationLevel?: number; +}; +export declare const RichTreeView: (props: RichTreeViewProps) => import("solid-js").JSX.Element; +type TreeItemProps = { + itemId: string; + label: string | JSXElement; + children?: JSXElement; + icon?: JSXElement; + expandedIcon?: JSXElement; + endIcon?: JSXElement; + isLeaf?: boolean; + borderColor?: string; +}; +export declare const TreeItem: (props: TreeItemProps) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=RichTreeView.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/RichTreeView.d.ts.map b/dist/components/treeview/RichTreeView.d.ts.map new file mode 100644 index 000000000..0fadc414c --- /dev/null +++ b/dist/components/treeview/RichTreeView.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"RichTreeView.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/RichTreeView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,UAAU,EAAuC,MAAM,UAAU,CAAC;AAqHtG,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,UAAU,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAUF,eAAO,MAAM,YAAY,UAAW,iBAAiB,mCAwEpD,CAAC;AAGF,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC;IAC3B,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAGF,eAAO,MAAM,QAAQ,UAAW,aAAa,mCA8D5C,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/TracesDialog.d.ts b/dist/components/treeview/TracesDialog.d.ts new file mode 100644 index 000000000..0e592bbb9 --- /dev/null +++ b/dist/components/treeview/TracesDialog.d.ts @@ -0,0 +1,16 @@ +import { WorkflowNode } from './workflowUtils'; +type TracesDialogProps = { + isOpen: boolean; + onClose: () => void; + workflowData: WorkflowNode[]; + backgroundColor?: string; + textColor?: string; + apiHost?: string; + chatflowid?: string; + chatId?: string; + hasCustomHeader?: boolean; + dialogContainer?: HTMLElement; +}; +export declare const TracesDialog: (props: TracesDialogProps) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=TracesDialog.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/TracesDialog.d.ts.map b/dist/components/treeview/TracesDialog.d.ts.map new file mode 100644 index 000000000..8b523c103 --- /dev/null +++ b/dist/components/treeview/TracesDialog.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TracesDialog.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/TracesDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAoD,MAAM,iBAAiB,CAAC;AAIjG,KAAK,iBAAiB,GAAG;IACvB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,WAAW,CAAC;CAC/B,CAAC;AAqDF,eAAO,MAAM,YAAY,UAAW,iBAAiB,mCA2UpD,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/TreeView.d.ts b/dist/components/treeview/TreeView.d.ts new file mode 100644 index 000000000..51703c1ab --- /dev/null +++ b/dist/components/treeview/TreeView.d.ts @@ -0,0 +1,22 @@ +import { JSXElement } from 'solid-js'; +type TreeViewProps = { + children: JSXElement; + defaultExpanded?: string[]; + class?: string; +}; +export declare const TreeView: (props: TreeViewProps) => import("solid-js").JSX.Element; +type TreeItemProps = { + itemId: string; + label: string | JSXElement; + children?: JSXElement; + icon?: JSXElement; + endIcon?: JSXElement; +}; +export declare const TreeItem: (props: TreeItemProps) => import("solid-js").JSX.Element; +type RichTreeViewProps = TreeViewProps & { + highlightItems?: string[]; + onNodeSelect?: (itemId: string) => void; +}; +export declare const RichTreeView: (props: RichTreeViewProps) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=TreeView.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/TreeView.d.ts.map b/dist/components/treeview/TreeView.d.ts.map new file mode 100644 index 000000000..f16a53626 --- /dev/null +++ b/dist/components/treeview/TreeView.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TreeView.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/TreeView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2C,UAAU,EAA2B,MAAM,UAAU,CAAC;AAuDxG,KAAK,aAAa,GAAG;IACnB,QAAQ,EAAE,UAAU,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAGF,eAAO,MAAM,QAAQ,UAAW,aAAa,mCA4B5C,CAAC;AAGF,KAAK,aAAa,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC;IAC3B,QAAQ,CAAC,EAAE,UAAU,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,UAAU,CAAC;CACtB,CAAC;AAGF,eAAO,MAAM,QAAQ,UAAW,aAAa,mCA8B5C,CAAC;AAGF,KAAK,iBAAiB,GAAG,aAAa,GAAG;IACvC,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,iBAAiB,mCA6BpD,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/WorkflowTreeView.d.ts b/dist/components/treeview/WorkflowTreeView.d.ts new file mode 100644 index 000000000..d2915b141 --- /dev/null +++ b/dist/components/treeview/WorkflowTreeView.d.ts @@ -0,0 +1,25 @@ +export type WorkflowNode = { + nodeId: string; + nodeLabel: string; + data: any; + previousNodeIds: string[]; + status: 'FINISHED' | 'PENDING' | 'RUNNING' | 'ERROR' | 'INPROGRESS' | 'STOPPED'; +}; +type WorkflowTreeViewProps = { + workflowData: WorkflowNode[]; + class?: string; + indentationLevel?: number; + initiallyExpanded?: boolean; + title?: string; + backgroundColor?: string; + textColor?: string; + fontSize?: number; + apiHost?: string; + chatflowid?: string; + chatId?: string; + hasCustomHeader?: boolean; + dialogContainer?: HTMLElement; +}; +export declare const WorkflowTreeView: (props: WorkflowTreeViewProps) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=WorkflowTreeView.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/WorkflowTreeView.d.ts.map b/dist/components/treeview/WorkflowTreeView.d.ts.map new file mode 100644 index 000000000..02b2be81a --- /dev/null +++ b/dist/components/treeview/WorkflowTreeView.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"WorkflowTreeView.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/WorkflowTreeView.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,GAAG,CAAC;IACV,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,CAAC;CACjF,CAAC;AAGF,KAAK,qBAAqB,GAAG;IAC3B,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,eAAe,CAAC,EAAE,WAAW,CAAC;CAC/B,CAAC;AAoPF,eAAO,MAAM,gBAAgB,UAAW,qBAAqB,mCAoc5D,CAAC"} \ No newline at end of file diff --git a/dist/components/treeview/workflowUtils.d.ts b/dist/components/treeview/workflowUtils.d.ts new file mode 100644 index 000000000..b4cf9f293 --- /dev/null +++ b/dist/components/treeview/workflowUtils.d.ts @@ -0,0 +1,25 @@ +export type WorkflowNode = { + nodeId: string; + nodeLabel: string; + data: any; + previousNodeIds: string[]; + status: 'FINISHED' | 'PENDING' | 'RUNNING' | 'ERROR' | 'INPROGRESS' | 'STOPPED'; +}; +export declare const FLOWISE_CREDENTIAL_ID = "FLOWISE_CREDENTIAL_ID"; +export declare const FinishedIcon: () => import("solid-js").JSX.Element; +export declare const PendingIcon: () => import("solid-js").JSX.Element; +export declare const RunningIcon: () => import("solid-js").JSX.Element; +export declare const ErrorIcon: () => import("solid-js").JSX.Element; +export declare const StoppedIcon: () => import("solid-js").JSX.Element; +export declare const getStatusIcon: (status: string) => import("solid-js").JSX.Element; +export declare const removeFlowiseCredentialId: (data: any) => any; +export declare const getExecutionStatus: (executionTree: any[]) => string | null; +export declare const buildTreeData: (nodes: WorkflowNode[]) => { + id: any; + label: any; + name: any; + status: any; + data: any; + children: any; +}[]; +//# sourceMappingURL=workflowUtils.d.ts.map \ No newline at end of file diff --git a/dist/components/treeview/workflowUtils.d.ts.map b/dist/components/treeview/workflowUtils.d.ts.map new file mode 100644 index 000000000..ce90ac25a --- /dev/null +++ b/dist/components/treeview/workflowUtils.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"workflowUtils.d.ts","sourceRoot":"","sources":["../../../src/components/treeview/workflowUtils.tsx"],"names":[],"mappings":"AACA,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,GAAG,CAAC;IACV,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,YAAY,GAAG,SAAS,CAAC;CACjF,CAAC;AAEF,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAG7D,eAAO,MAAM,YAAY,sCAKxB,CAAC;AAEF,eAAO,MAAM,WAAW,sCAKvB,CAAC;AAEF,eAAO,MAAM,WAAW,sCAKvB,CAAC;AAEF,eAAO,MAAM,SAAS,sCAMrB,CAAC;AAEF,eAAO,MAAM,WAAW,sCAKvB,CAAC;AAGF,eAAO,MAAM,aAAa,WAAY,MAAM,mCAuB3C,CAAC;AAGF,eAAO,MAAM,yBAAyB,SAAU,GAAG,KAAG,GAYrD,CAAC;AAGF,eAAO,MAAM,kBAAkB,kBAAmB,GAAG,EAAE,KAAG,MAAM,GAAG,IAkBlE,CAAC;AAGF,eAAO,MAAM,aAAa,UAAW,YAAY,EAAE;;;;;;;GAoQlD,CAAC"} \ No newline at end of file diff --git a/dist/constants.d.ts b/dist/constants.d.ts new file mode 100644 index 000000000..81093b276 --- /dev/null +++ b/dist/constants.d.ts @@ -0,0 +1,4 @@ +import type { BubbleProps } from './features/bubble'; +export declare const defaultBotProps: BubbleProps; +export declare const CHAT_HEADER_HEIGHT = 50; +//# sourceMappingURL=constants.d.ts.map \ No newline at end of file diff --git a/dist/constants.d.ts.map b/dist/constants.d.ts.map new file mode 100644 index 000000000..77caacc47 --- /dev/null +++ b/dist/constants.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,eAAe,EAAE,WAO7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,KAAK,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/components/Bubble.d.ts b/dist/features/bubble/components/Bubble.d.ts new file mode 100644 index 000000000..2828d64ee --- /dev/null +++ b/dist/features/bubble/components/Bubble.d.ts @@ -0,0 +1,5 @@ +import { BubbleParams } from '../types'; +import { BotProps } from '../../../components/Bot'; +export type BubbleProps = BotProps & BubbleParams; +export declare const Bubble: (props: BubbleProps) => import("solid-js").JSX.Element; +//# sourceMappingURL=Bubble.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/components/Bubble.d.ts.map b/dist/features/bubble/components/Bubble.d.ts.map new file mode 100644 index 000000000..7a7a4c0bd --- /dev/null +++ b/dist/features/bubble/components/Bubble.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Bubble.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/Bubble.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAO,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAQxD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,YAAY,CAAC;AAElD,eAAO,MAAM,MAAM,UAAW,WAAW,mCA6OxC,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/components/BubbleButton.d.ts b/dist/features/bubble/components/BubbleButton.d.ts new file mode 100644 index 000000000..97a9343a4 --- /dev/null +++ b/dist/features/bubble/components/BubbleButton.d.ts @@ -0,0 +1,16 @@ +import { ButtonTheme } from '../types'; +type Props = ButtonTheme & { + isBotOpened: boolean; + toggleBot: () => void; + setButtonPosition: (position: { + bottom: number; + right: number; + }) => void; + dragAndDrop: boolean; + autoOpen?: boolean; + openDelay?: number; + autoOpenOnMobile?: boolean; +}; +export declare const BubbleButton: (props: Props) => import("solid-js").JSX.Element; +export {}; +//# sourceMappingURL=BubbleButton.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/components/BubbleButton.d.ts.map b/dist/features/bubble/components/BubbleButton.d.ts.map new file mode 100644 index 000000000..02c3fd4af --- /dev/null +++ b/dist/features/bubble/components/BubbleButton.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"BubbleButton.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/BubbleButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,KAAK,KAAK,GAAG,WAAW,GAAG;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,iBAAiB,EAAE,CAAC,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACzE,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAOF,eAAO,MAAM,YAAY,UAAW,KAAK,mCA8HxC,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/components/Tooltip.d.ts b/dist/features/bubble/components/Tooltip.d.ts new file mode 100644 index 000000000..05e7c7c76 --- /dev/null +++ b/dist/features/bubble/components/Tooltip.d.ts @@ -0,0 +1,15 @@ +type TooltipProps = { + showTooltip: boolean; + position: { + bottom: number; + right: number; + }; + buttonSize: number; + tooltipMessage?: string; + tooltipBackgroundColor?: string; + tooltipTextColor?: string; + tooltipFontSize?: number; +}; +declare const Tooltip: (props: TooltipProps) => import("solid-js").JSX.Element; +export default Tooltip; +//# sourceMappingURL=Tooltip.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/components/Tooltip.d.ts.map b/dist/features/bubble/components/Tooltip.d.ts.map new file mode 100644 index 000000000..dcdae7a58 --- /dev/null +++ b/dist/features/bubble/components/Tooltip.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/Tooltip.tsx"],"names":[],"mappings":"AAOA,KAAK,YAAY,GAAG;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,OAAO,UAAW,YAAY,mCA+CnC,CAAC;AAEF,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/components/index.d.ts b/dist/features/bubble/components/index.d.ts new file mode 100644 index 000000000..e50fa475f --- /dev/null +++ b/dist/features/bubble/components/index.d.ts @@ -0,0 +1,2 @@ +export * from './Bubble'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/components/index.d.ts.map b/dist/features/bubble/components/index.d.ts.map new file mode 100644 index 000000000..19fb7436a --- /dev/null +++ b/dist/features/bubble/components/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/bubble/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/index.d.ts b/dist/features/bubble/index.d.ts new file mode 100644 index 000000000..08ff52039 --- /dev/null +++ b/dist/features/bubble/index.d.ts @@ -0,0 +1,2 @@ +export * from './components'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/index.d.ts.map b/dist/features/bubble/index.d.ts.map new file mode 100644 index 000000000..ace7bafae --- /dev/null +++ b/dist/features/bubble/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/bubble/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/dist/features/bubble/types.d.ts b/dist/features/bubble/types.d.ts new file mode 100644 index 000000000..bd7f3fcbc --- /dev/null +++ b/dist/features/bubble/types.d.ts @@ -0,0 +1,119 @@ +export type BubbleParams = { + theme?: BubbleTheme; +}; +export type BubbleTheme = { + chatWindow?: ChatWindowTheme; + button?: ButtonTheme; + tooltip?: ToolTipTheme; + disclaimer?: DisclaimerPopUpTheme; + customCSS?: string; + form?: FormTheme; +}; +export type FormTheme = { + backgroundColor?: string; + textColor?: string; +}; +export type TextInputTheme = { + backgroundColor?: string; + textColor?: string; + placeholder?: string; + sendButtonColor?: string; + maxChars?: number; + maxCharsWarningMessage?: string; + autoFocus?: boolean; + sendMessageSound?: boolean; + sendSoundLocation?: string; + receiveMessageSound?: boolean; + receiveSoundLocation?: string; + enableInputHistory?: boolean; +}; +export type UserMessageTheme = { + backgroundColor?: string; + textColor?: string; + showAvatar?: boolean; + avatarSrc?: string; +}; +export type BotMessageTheme = { + backgroundColor?: string; + textColor?: string; + showAvatar?: boolean; + avatarSrc?: string; +}; +export type FooterTheme = { + showFooter?: boolean; + textColor?: string; + text?: string; + company?: string; + companyLink?: string; +}; +export type FeedbackTheme = { + color?: string; +}; +export type ChatWindowTheme = { + showTitle?: boolean; + showAgentMessages?: boolean; + title?: string; + titleAvatarSrc?: string; + titleTextColor?: string; + titleBackgroundColor?: string; + welcomeMessage?: string; + errorMessage?: string; + backgroundColor?: string; + backgroundImage?: string; + height?: number | string; + width?: number | string; + fontSize?: number; + userMessage?: UserMessageTheme; + botMessage?: BotMessageTheme; + textInput?: TextInputTheme; + feedback?: FeedbackTheme; + footer?: FooterTheme; + sourceDocsTitle?: string; + poweredByTextColor?: string; + starterPrompts?: string[]; + quickActions?: string[]; + starterPromptFontSize?: number; + clearChatOnReload?: boolean; + dateTimeToggle?: DateTimeToggleTheme; + renderHTML?: boolean; + headerHtml?: string; +}; +export type ButtonTheme = { + size?: 'small' | 'medium' | 'large' | number; + backgroundColor?: string; + iconColor?: string; + customIconSrc?: string; + bottom?: number; + right?: number; + dragAndDrop?: boolean; + autoWindowOpen?: autoWindowOpenTheme; +}; +export type ToolTipTheme = { + showTooltip?: boolean; + tooltipMessage?: string; + tooltipBackgroundColor?: string; + tooltipTextColor?: string; + tooltipFontSize?: number; +}; +export type autoWindowOpenTheme = { + autoOpen?: boolean; + openDelay?: number; + autoOpenOnMobile?: boolean; +}; +export type DisclaimerPopUpTheme = { + title?: string; + message?: string; + textColor?: string; + buttonColor?: string; + buttonTextColor?: string; + buttonText?: string; + blurredBackgroundColor?: string; + backgroundColor?: string; + denyButtonBgColor?: string; + denyButtonText?: string; +}; +export type DateTimeToggleTheme = { + date?: boolean; + time?: boolean; +}; +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/dist/features/bubble/types.d.ts.map b/dist/features/bubble/types.d.ts.map new file mode 100644 index 000000000..631e54381 --- /dev/null +++ b/dist/features/bubble/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/bubble/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,mBAAmB,CAAC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAC7C,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,mBAAmB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC"} \ No newline at end of file diff --git a/dist/features/full/components/Full.d.ts b/dist/features/full/components/Full.d.ts new file mode 100644 index 000000000..15e8bc3a8 --- /dev/null +++ b/dist/features/full/components/Full.d.ts @@ -0,0 +1,7 @@ +import { BotProps } from '@/components/Bot'; +import { BubbleParams } from '@/features/bubble/types'; +export type FullProps = BotProps & BubbleParams; +export declare const Full: (props: FullProps, { element }: { + element: HTMLElement; +}) => import("solid-js").JSX.Element; +//# sourceMappingURL=Full.d.ts.map \ No newline at end of file diff --git a/dist/features/full/components/Full.d.ts.map b/dist/features/full/components/Full.d.ts.map new file mode 100644 index 000000000..58be9485e --- /dev/null +++ b/dist/features/full/components/Full.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Full.d.ts","sourceRoot":"","sources":["../../../../src/features/full/components/Full.tsx"],"names":[],"mappings":"AACA,OAAO,EAAO,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAMvD,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,YAAY,CAAC;AAEhD,eAAO,MAAM,IAAI,UAAW,SAAS;aAA0B,WAAW;oCAmGzE,CAAC"} \ No newline at end of file diff --git a/dist/features/full/components/index.d.ts b/dist/features/full/components/index.d.ts new file mode 100644 index 000000000..f0f3bb3d4 --- /dev/null +++ b/dist/features/full/components/index.d.ts @@ -0,0 +1,2 @@ +export * from './Full'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/features/full/components/index.d.ts.map b/dist/features/full/components/index.d.ts.map new file mode 100644 index 000000000..9f4f806a9 --- /dev/null +++ b/dist/features/full/components/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/full/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"} \ No newline at end of file diff --git a/dist/features/full/index.d.ts b/dist/features/full/index.d.ts new file mode 100644 index 000000000..08ff52039 --- /dev/null +++ b/dist/features/full/index.d.ts @@ -0,0 +1,2 @@ +export * from './components'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/features/full/index.d.ts.map b/dist/features/full/index.d.ts.map new file mode 100644 index 000000000..d179cfbd6 --- /dev/null +++ b/dist/features/full/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/full/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/dist/features/popup/components/DisclaimerPopup.d.ts b/dist/features/popup/components/DisclaimerPopup.d.ts new file mode 100644 index 000000000..f45ee8386 --- /dev/null +++ b/dist/features/popup/components/DisclaimerPopup.d.ts @@ -0,0 +1,18 @@ +export type DisclaimerPopupProps = { + isOpen?: boolean; + isFullPage?: boolean; + onAccept?: () => void; + onDeny?: () => void; + title?: string; + message?: string; + buttonText?: string; + denyButtonText?: string; + blurredBackgroundColor?: string; + backgroundColor?: string; + buttonColor?: string; + textColor?: string; + buttonTextColor?: string; + denyButtonBgColor?: string; +}; +export declare const DisclaimerPopup: (props: DisclaimerPopupProps) => import("solid-js").JSX.Element; +//# sourceMappingURL=DisclaimerPopup.d.ts.map \ No newline at end of file diff --git a/dist/features/popup/components/DisclaimerPopup.d.ts.map b/dist/features/popup/components/DisclaimerPopup.d.ts.map new file mode 100644 index 000000000..a892e9580 --- /dev/null +++ b/dist/features/popup/components/DisclaimerPopup.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"DisclaimerPopup.d.ts","sourceRoot":"","sources":["../../../../src/features/popup/components/DisclaimerPopup.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,oBAAoB,mCAuE1D,CAAC"} \ No newline at end of file diff --git a/dist/features/popup/components/Popup.d.ts b/dist/features/popup/components/Popup.d.ts new file mode 100644 index 000000000..d4bd089d5 --- /dev/null +++ b/dist/features/popup/components/Popup.d.ts @@ -0,0 +1,8 @@ +export type PopupProps = { + value?: any; + isOpen?: boolean; + onOpen?: () => void; + onClose?: () => void; +}; +export declare const Popup: (props: PopupProps) => import("solid-js").JSX.Element; +//# sourceMappingURL=Popup.d.ts.map \ No newline at end of file diff --git a/dist/features/popup/components/Popup.d.ts.map b/dist/features/popup/components/Popup.d.ts.map new file mode 100644 index 000000000..6829eeab6 --- /dev/null +++ b/dist/features/popup/components/Popup.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../../src/features/popup/components/Popup.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AA4BF,eAAO,MAAM,KAAK,UAAW,UAAU,mCAsEtC,CAAC"} \ No newline at end of file diff --git a/dist/features/popup/components/index.d.ts b/dist/features/popup/components/index.d.ts new file mode 100644 index 000000000..2c0bbd8ea --- /dev/null +++ b/dist/features/popup/components/index.d.ts @@ -0,0 +1,3 @@ +export * from './Popup'; +export * from './DisclaimerPopup'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/features/popup/components/index.d.ts.map b/dist/features/popup/components/index.d.ts.map new file mode 100644 index 000000000..194701920 --- /dev/null +++ b/dist/features/popup/components/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/popup/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC"} \ No newline at end of file diff --git a/dist/features/popup/index.d.ts b/dist/features/popup/index.d.ts new file mode 100644 index 000000000..08ff52039 --- /dev/null +++ b/dist/features/popup/index.d.ts @@ -0,0 +1,2 @@ +export * from './components'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/features/popup/index.d.ts.map b/dist/features/popup/index.d.ts.map new file mode 100644 index 000000000..c82975151 --- /dev/null +++ b/dist/features/popup/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/popup/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"} \ No newline at end of file diff --git a/dist/features/popup/types.d.ts b/dist/features/popup/types.d.ts new file mode 100644 index 000000000..e5c11b4e6 --- /dev/null +++ b/dist/features/popup/types.d.ts @@ -0,0 +1,8 @@ +export type PopupParams = { + autoShowDelay?: number; + theme?: { + width?: string; + backgroundColor?: string; + }; +}; +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/dist/features/popup/types.d.ts.map b/dist/features/popup/types.d.ts.map new file mode 100644 index 000000000..01efe0774 --- /dev/null +++ b/dist/features/popup/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/features/popup/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE;QACN,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;CACH,CAAC"} \ No newline at end of file diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 000000000..45095bbcb --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,5 @@ +export type { BotProps } from './components/Bot'; +export type { BubbleProps } from './features/bubble/components/Bubble'; +export type { FullProps } from './features/full/components/Full'; +export type { BubbleTheme } from './features/bubble/types'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map new file mode 100644 index 000000000..ab02e6391 --- /dev/null +++ b/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,YAAY,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,YAAY,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AACjE,YAAY,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC"} \ No newline at end of file diff --git a/dist/queries/sendMessageQuery.d.ts b/dist/queries/sendMessageQuery.d.ts new file mode 100644 index 000000000..77ff711ef --- /dev/null +++ b/dist/queries/sendMessageQuery.d.ts @@ -0,0 +1,141 @@ +import { FileUpload, IAction } from '@/components/Bot'; +export type IncomingInput = { + question?: string; + form?: Record; + uploads?: FileUpload[]; + overrideConfig?: Record; + socketIOClientId?: string; + chatId?: string; + fileName?: string; + leadEmail?: string; + action?: IAction; + humanInput?: Record; +}; +type BaseRequest = { + apiHost?: string; + tenant_uuid?: string; + onRequest?: (request: RequestInit) => Promise; +}; +export type MessageRequest = BaseRequest & { + chatflowid?: string; + body?: IncomingInput; +}; +export type FeedbackRatingType = 'THUMBS_UP' | 'THUMBS_DOWN'; +export type FeedbackInput = { + chatId: string; + messageId: string; + rating: FeedbackRatingType; + content?: string; +}; +export type CreateFeedbackRequest = BaseRequest & { + chatflowid?: string; + body?: FeedbackInput; +}; +export type UpdateFeedbackRequest = BaseRequest & { + id: string; + body?: Partial; +}; +export type MessageFeedbackInput = { + thumbs_up: boolean; + thumbs_down: boolean; + feedback: string; + inaccurate?: boolean; + inappropriate?: boolean; + helpful?: boolean; +}; +export type SubmitMessageFeedbackRequest = BaseRequest & { + chatflowid: string; + externalChatMsgId: string; + body: MessageFeedbackInput; +}; +export type UpsertRequest = BaseRequest & { + chatflowid: string; + apiHost?: string; + tenant_uuid?: string; + formData: FormData; +}; +export type LeadCaptureInput = { + chatflowid: string; + chatId: string; + name?: string; + email?: string; + consentCheckbox?: any; +}; +export type LeadCaptureRequest = BaseRequest & { + body: Partial; +}; +export type GenerateTTSRequest = BaseRequest & { + body: { + chatId: string; + chatflowId: string; + chatMessageId: string; + text: string; + }; + signal?: AbortSignal; +}; +export type AbortTTSRequest = BaseRequest & { + body: { + chatflowId: string; + chatId: string; + chatMessageId: string; + }; +}; +export declare const sendFeedbackQuery: ({ chatflowid, apiHost, body, onRequest }: CreateFeedbackRequest) => Promise<{ + data?: unknown; + error?: Error | undefined; +}>; +export declare const updateFeedbackQuery: ({ id, apiHost, body, onRequest }: UpdateFeedbackRequest) => Promise<{ + data?: unknown; + error?: Error | undefined; +}>; +export declare const sendMessageQuery: ({ chatflowid, apiHost, body, onRequest }: MessageRequest) => Promise<{ + error: { + message: any; + status: any; + errorCode: any; + }; + data?: undefined; +} | { + data: any; + error?: undefined; +}>; +export declare const createAttachmentWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{ + data?: unknown; + error?: Error | undefined; +}>; +export declare const upsertVectorStoreWithFormData: ({ chatflowid, apiHost, formData, onRequest }: UpsertRequest) => Promise<{ + data?: unknown; + error?: Error | undefined; +}>; +export declare const getChatbotConfig: ({ chatflowid, apiHost, onRequest }: MessageRequest) => Promise<{ + data?: any; + error?: Error | undefined; +}>; +export declare const isStreamAvailableQuery: ({ chatflowid, apiHost, onRequest }: MessageRequest) => Promise<{ + data?: any; + error?: Error | undefined; +}>; +export declare const sendFileDownloadQuery: ({ apiHost, body, onRequest }: MessageRequest) => Promise<{ + data?: any; + error?: Error | undefined; +}>; +export declare const submitMessageFeedbackQuery: ({ chatflowid, apiHost, externalChatMsgId, body, onRequest, }: SubmitMessageFeedbackRequest) => Promise<{ + data?: unknown; + error?: Error | undefined; +}>; +export declare function fetchAuthToken(name: string, email: string, apiHost?: string): Promise; +export declare const generateTTSQuery: ({ apiHost, body, onRequest, signal }: GenerateTTSRequest) => Promise; +export declare const abortTTSQuery: ({ apiHost, body, onRequest }: AbortTTSRequest) => Promise<{ + data?: any; + error?: Error | undefined; +}>; +export type AbortMessageRequest = BaseRequest & { + chatflowid: string; + chatId: string; +}; +export declare const abortMessageQuery: ({ chatflowid, apiHost, chatId, onRequest }: AbortMessageRequest) => Promise<{ + data?: any; + error?: Error | undefined; +}>; +export {}; +//# sourceMappingURL=sendMessageQuery.d.ts.map \ No newline at end of file diff --git a/dist/queries/sendMessageQuery.d.ts.map b/dist/queries/sendMessageQuery.d.ts.map new file mode 100644 index 000000000..4460ba886 --- /dev/null +++ b/dist/queries/sendMessageQuery.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"sendMessageQuery.d.ts","sourceRoot":"","sources":["../../src/queries/sendMessageQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAKvD,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,aAAa,CAAC;AAE7D,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAAG;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,WAAW,GAAG;IACvD,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,oBAAoB,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,GAAG,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG;IAC7C,IAAI,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG;IAC7C,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;QACnB,aAAa,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG;IAC1C,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,iBAAiB,6CAAwE,qBAAqB;;;EAMvH,CAAC;AAEL,eAAO,MAAM,mBAAmB,qCAAgE,qBAAqB;;;EAMjH,CAAC;AAEL,eAAO,MAAM,gBAAgB,6CAA8E,cAAc;;;;;;;;;;EAoCxH,CAAC;AAEF,eAAO,MAAM,4BAA4B,iDAA4E,aAAa;;;EAS9H,CAAC;AAEL,eAAO,MAAM,6BAA6B,iDAA4E,aAAa;;;EAS/H,CAAC;AAEL,eAAO,MAAM,gBAAgB,uCAAkE,cAAc;;;EAKzG,CAAC;AAEL,eAAO,MAAM,sBAAsB,uCAAkE,cAAc;;;EAK/G,CAAC;AAEL,eAAO,MAAM,qBAAqB,iCAA4D,cAAc;;;EAOxG,CAAC;AAWL,eAAO,MAAM,0BAA0B,iEAMpC,4BAA4B;;;EAsB9B,CAAC;AAEF,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,SAA0B,mBAwClG;AAED,eAAO,MAAM,gBAAgB,yCAA0E,kBAAkB,KAAG,QAAQ,QAAQ,CAkB3I,CAAC;AAEF,eAAO,MAAM,aAAa,iCAA4D,eAAe;;;EAMjG,CAAC;AAEL,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,iBAAiB,+CAA0E,mBAAmB;;;EAKvH,CAAC"} \ No newline at end of file diff --git a/dist/register.d.ts b/dist/register.d.ts new file mode 100644 index 000000000..32afa59c4 --- /dev/null +++ b/dist/register.d.ts @@ -0,0 +1,2 @@ +export declare const registerWebComponents: () => void; +//# sourceMappingURL=register.d.ts.map \ No newline at end of file diff --git a/dist/register.d.ts.map b/dist/register.d.ts.map new file mode 100644 index 000000000..8ab09e7d1 --- /dev/null +++ b/dist/register.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../src/register.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB,YAKjC,CAAC"} \ No newline at end of file diff --git a/dist/store/chatbotConfig.d.ts b/dist/store/chatbotConfig.d.ts new file mode 100644 index 000000000..34813d08f --- /dev/null +++ b/dist/store/chatbotConfig.d.ts @@ -0,0 +1,8 @@ +export type ChatbotGlobalConfig = { + apiHost: string; + tenant_uuid: string; +}; +declare const apiHost: import("solid-js").Accessor, setApiHost: import("solid-js").Setter; +declare const tenantUuid: import("solid-js").Accessor, setTenantUuid: import("solid-js").Setter; +export { apiHost, setApiHost, tenantUuid, setTenantUuid }; +//# sourceMappingURL=chatbotConfig.d.ts.map \ No newline at end of file diff --git a/dist/store/chatbotConfig.d.ts.map b/dist/store/chatbotConfig.d.ts.map new file mode 100644 index 000000000..e5ff22144 --- /dev/null +++ b/dist/store/chatbotConfig.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"chatbotConfig.d.ts","sourceRoot":"","sources":["../../src/store/chatbotConfig.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,QAAA,MAAO,OAAO,8CAAE,UAAU,0CAAqC,CAAC;AAChE,QAAA,MAAO,UAAU,8CAAE,aAAa,0CAAqC,CAAC;AAEtE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/types.d.ts b/dist/types.d.ts new file mode 100644 index 000000000..2324761ce --- /dev/null +++ b/dist/types.d.ts @@ -0,0 +1 @@ +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/dist/types.d.ts.map b/dist/types.d.ts.map new file mode 100644 index 000000000..4d581892d --- /dev/null +++ b/dist/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/utils/apiErrorHandler.d.ts b/dist/utils/apiErrorHandler.d.ts new file mode 100644 index 000000000..c19d93f9b --- /dev/null +++ b/dist/utils/apiErrorHandler.d.ts @@ -0,0 +1,8 @@ +/** + * Shows a toast with a simple, user-friendly error message based on status code. + * @param status The HTTP status code from the response + * @param errorCode (optional) The backend-defined error code (ignored) + * @param errorMsg (optional) The backend-defined error message (ignored) + */ +export declare function handleApiError(status: number, errorCode?: string, errorMsg?: string): void; +//# sourceMappingURL=apiErrorHandler.d.ts.map \ No newline at end of file diff --git a/dist/utils/apiErrorHandler.d.ts.map b/dist/utils/apiErrorHandler.d.ts.map new file mode 100644 index 000000000..c725093a3 --- /dev/null +++ b/dist/utils/apiErrorHandler.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"apiErrorHandler.d.ts","sourceRoot":"","sources":["../../src/utils/apiErrorHandler.ts"],"names":[],"mappings":"AAiBA;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,QAKnF"} \ No newline at end of file diff --git a/dist/utils/audioRecording.d.ts b/dist/utils/audioRecording.d.ts new file mode 100644 index 000000000..aedfe9ad7 --- /dev/null +++ b/dist/utils/audioRecording.d.ts @@ -0,0 +1,31 @@ +export declare function getElaspedTime(): string; +/** Starts the audio recording*/ +export declare function startAudioRecording(onRecordingStart: (value: boolean) => void, onUnsupportedBrowser: (value: boolean) => void, setElapsedTime: (value: string) => void): void; +/** Stop the currently started audio recording & sends it + */ +export declare function stopAudioRecording(addRecordingToPreviews: null | ((blob: Blob) => void)): void; +/** Cancel the currently started audio recording */ +export declare function cancelAudioRecording(): void; +type AudioRecorder = { + audioBlobs: Blob[]; + mediaRecorder: MediaRecorder | null; + streamBeingCaptured: MediaStream | null; + start: () => Promise; + stop: () => Promise; + cancel: () => void; + stopStream: () => void; + resetRecordingProperties: () => void; +}; +export declare const audioRecorder: AudioRecorder; +type SpeechToTextOptions = { + lang?: string; + onResult: (text: string) => void; + onStart?: () => void; + onEnd?: () => void; + onError?: (error: string) => void; +}; +export declare function isSpeechRecognitionSupported(): boolean; +export declare function startSpeechRecognition({ lang, onResult, onStart, onEnd, onError }: SpeechToTextOptions): void; +export declare function stopSpeechRecognition(): void; +export {}; +//# sourceMappingURL=audioRecording.d.ts.map \ No newline at end of file diff --git a/dist/utils/audioRecording.d.ts.map b/dist/utils/audioRecording.d.ts.map new file mode 100644 index 000000000..d3d75e624 --- /dev/null +++ b/dist/utils/audioRecording.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"audioRecording.d.ts","sourceRoot":"","sources":["../../src/utils/audioRecording.ts"],"names":[],"mappings":"AAmBA,wBAAgB,cAAc,WAE7B;AAED,gCAAgC;AAChC,wBAAgB,mBAAmB,CACjC,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,EAC1C,oBAAoB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,EAC9C,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,QAmExC;AACD;GACG;AACH,wBAAgB,kBAAkB,CAAC,sBAAsB,EAAE,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC,QAuBvF;AAED,mDAAmD;AACnD,wBAAgB,oBAAoB,SAMnC;AA8FD,KAAK,aAAa,GAAG;IACnB,UAAU,EAAE,IAAI,EAAE,CAAC;IACnB,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;IACpC,mBAAmB,EAAE,WAAW,GAAG,IAAI,CAAC;IACxC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,IAAI,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,wBAAwB,EAAE,MAAM,IAAI,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,aA6G3B,CAAC;AAGF,KAAK,mBAAmB,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAIF,wBAAgB,4BAA4B,YAE3C;AAED,wBAAgB,sBAAsB,CAAC,EAAE,IAAc,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,mBAAmB,QAwBhH;AAED,wBAAgB,qBAAqB,SAEpC"} \ No newline at end of file diff --git a/dist/utils/chatInputHistory.d.ts b/dist/utils/chatInputHistory.d.ts new file mode 100644 index 000000000..329783bff --- /dev/null +++ b/dist/utils/chatInputHistory.d.ts @@ -0,0 +1,22 @@ +type ChatHistoryStorage = { + getItem(key: string): string | null; + setItem(key: string, value: string): void; +}; +export declare class ChatInputHistory { + private getMaxHistory; + private storage; + private history; + private currentIndex; + private tempInput; + private maxHistory; + constructor(getMaxHistory?: () => number, storage?: ChatHistoryStorage); + getHistory(): string[]; + getCurrentIndex(): number; + addToHistory(input: string): void; + getPreviousInput(currentInput: string): string; + getNextInput(): string; + private saveHistory; + private loadHistory; +} +export {}; +//# sourceMappingURL=chatInputHistory.d.ts.map \ No newline at end of file diff --git a/dist/utils/chatInputHistory.d.ts.map b/dist/utils/chatInputHistory.d.ts.map new file mode 100644 index 000000000..88be1681a --- /dev/null +++ b/dist/utils/chatInputHistory.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"chatInputHistory.d.ts","sourceRoot":"","sources":["../../src/utils/chatInputHistory.ts"],"names":[],"mappings":"AACA,KAAK,kBAAkB,GAAG;IACxB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IACpC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3C,CAAC;AAEF,qBAAa,gBAAgB;IAOzB,OAAO,CAAC,aAAa;IAErB,OAAO,CAAC,OAAO;IARjB,OAAO,CAAC,OAAO,CAAgB;IAC/B,OAAO,CAAC,YAAY,CAAM;IAC1B,OAAO,CAAC,SAAS,CAAM;IACvB,OAAO,CAAC,UAAU,CAAS;gBAGjB,aAAa,GAAE,MAAM,MAAiB,EAEtC,OAAO,GAAE,kBAAmC;IAMtD,UAAU,IAAI,MAAM,EAAE;IAItB,eAAe,IAAI,MAAM;IAIzB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAejC,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAY9C,YAAY,IAAI,MAAM;IAWtB,OAAO,CAAC,WAAW;IAQnB,OAAO,CAAC,WAAW;CAWpB"} \ No newline at end of file diff --git a/dist/utils/index.d.ts b/dist/utils/index.d.ts new file mode 100644 index 000000000..b80b67d56 --- /dev/null +++ b/dist/utils/index.d.ts @@ -0,0 +1,31 @@ +export declare const isNotDefined: (value: T | null | undefined) => value is null | undefined; +export declare const isDefined: (value: T | null | undefined) => value is NonNullable; +export declare const isEmpty: (value: string | undefined | null) => value is undefined; +export declare const isNotEmpty: (value: string | undefined | null) => value is string; +export declare const sendRequest: (params: string | { + url: string; + method: string; + body?: Record | FormData | undefined; + type?: string | undefined; + headers?: Record | undefined; + formData?: FormData | undefined; + onRequest?: ((request: RequestInit) => Promise) | undefined; + signal?: AbortSignal | undefined; +}) => Promise<{ + data?: ResponseData | undefined; + error?: Error | undefined; +}>; +/** + * Per-chatflow storage backed by sessionStorage (clears when the tab/browser + * session ends). Key is always dynamic: `${chatflowid}_EXTERNAL`. + * Never hardcode this key — every caller must pass the real chatflowid. + */ +export declare const setSessionStorageChatflow: (chatflowid: string, chatId: string, saveObj?: Record) => void; +export declare const getSessionStorageChatflow: (chatflowid: string) => any; +export declare const removeSessionStorageChatHistory: (chatflowid: string) => void; +export declare const getBubbleButtonSize: (size: 'small' | 'medium' | 'large' | number | undefined) => number; +export declare const setCookie: (cname: string, cvalue: string, exdays: number) => void; +export declare const getCookie: (cname: string) => string; +export declare const resolveDialogContainer: (raw: unknown) => HTMLElement | undefined; +export declare const getRecordingExtensionForMime: (mime: string) => string; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/utils/index.d.ts.map b/dist/utils/index.d.ts.map new file mode 100644 index 000000000..c089baad5 --- /dev/null +++ b/dist/utils/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,+DAAuG,CAAC;AAEjI,eAAO,MAAM,SAAS,6DAAqG,CAAC;AAE5H,eAAO,MAAM,OAAO,UAAW,MAAM,GAAG,SAAS,GAAG,IAAI,uBAA8E,CAAC;AAEvI,eAAO,MAAM,UAAU,UAAW,MAAM,GAAG,SAAS,GAAG,IAAI,oBAA2E,CAAC;AAEvI,eAAO,MAAM,WAAW;SAGX,MAAM;YACH,MAAM;;;;;2BAKQ,WAAW,KAAK,QAAQ,IAAI,CAAC;;;;;EAyD1D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,eAAgB,MAAM,UAAU,MAAM,YAAW,OAAO,MAAM,EAAE,GAAG,CAAC,SAiBzG,CAAC;AAEF,eAAO,MAAM,yBAAyB,eAAgB,MAAM,QAQ3D,CAAC;AAEF,eAAO,MAAM,+BAA+B,eAAgB,MAAM,SAiBjE,CAAC;AAEF,eAAO,MAAM,mBAAmB,SAAU,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,WAO1F,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,MAAM,UAAU,MAAM,UAAU,MAAM,SAKtE,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,MAczC,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAAS,OAAO,KAAG,WAAW,GAAG,SAenE,CAAC;AAEF,eAAO,MAAM,4BAA4B,SAAU,MAAM,WAiBxD,CAAC"} \ No newline at end of file diff --git a/dist/utils/isMobileSignal.d.ts b/dist/utils/isMobileSignal.d.ts new file mode 100644 index 000000000..aba2ca565 --- /dev/null +++ b/dist/utils/isMobileSignal.d.ts @@ -0,0 +1,2 @@ +export declare const isMobile: import("solid-js").Accessor, setIsMobile: import("solid-js").Setter; +//# sourceMappingURL=isMobileSignal.d.ts.map \ No newline at end of file diff --git a/dist/utils/isMobileSignal.d.ts.map b/dist/utils/isMobileSignal.d.ts.map new file mode 100644 index 000000000..eb9ec8d9a --- /dev/null +++ b/dist/utils/isMobileSignal.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"isMobileSignal.d.ts","sourceRoot":"","sources":["../../src/utils/isMobileSignal.ts"],"names":[],"mappings":"AAMA,eAAO,MAAO,QAAQ,wCAAE,WAAW,oCAAqF,CAAC"} \ No newline at end of file diff --git a/dist/utils/showError.d.ts b/dist/utils/showError.d.ts new file mode 100644 index 000000000..c8af68311 --- /dev/null +++ b/dist/utils/showError.d.ts @@ -0,0 +1,6 @@ +/** + * Creates a floating toast-like error notification in the DOM. + * @param errorMsg The error message to display + */ +export declare function showInlineErrorToast(errorMsg: string): void; +//# sourceMappingURL=showError.d.ts.map \ No newline at end of file diff --git a/dist/utils/showError.d.ts.map b/dist/utils/showError.d.ts.map new file mode 100644 index 000000000..395f08d24 --- /dev/null +++ b/dist/utils/showError.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"showError.d.ts","sourceRoot":"","sources":["../../src/utils/showError.ts"],"names":[],"mappings":"AAoBA;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,QAiFpD"} \ No newline at end of file diff --git a/dist/web.d.ts b/dist/web.d.ts new file mode 100644 index 000000000..afd721652 --- /dev/null +++ b/dist/web.d.ts @@ -0,0 +1,26 @@ +declare const chatbot: { + initFull: (props: { + chatflowid: string; + apiHost?: string | undefined; + tenant_uuid?: string | undefined; + onRequest?: ((request: RequestInit) => Promise) | undefined; + chatflowConfig?: Record | undefined; + observersConfig?: import("./components/Bot").observersConfigType | undefined; + theme?: import(".").BubbleTheme | undefined; + } & { + id?: string | undefined; + }) => Promise; + init: (props: { + chatflowid: string; + apiHost?: string | undefined; + tenant_uuid?: string | undefined; + onRequest?: ((request: RequestInit) => Promise) | undefined; + chatflowConfig?: Record | undefined; + observersConfig?: import("./components/Bot").observersConfigType | undefined; + theme?: import(".").BubbleTheme | undefined; + }) => Promise; + destroy: () => void; + clearChat: (id?: string | undefined) => void; +}; +export default chatbot; +//# sourceMappingURL=web.d.ts.map \ No newline at end of file diff --git a/dist/web.d.ts.map b/dist/web.d.ts.map new file mode 100644 index 000000000..e036f33f3 --- /dev/null +++ b/dist/web.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;CAAiB,CAAC;AAI/B,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/web.js b/dist/web.js new file mode 100644 index 000000000..f56f37a67 --- /dev/null +++ b/dist/web.js @@ -0,0 +1 @@ +function e(e){return Object.keys(e).reduce((r,o)=>{const l=e[o];var n;return r[o]=Object.assign({},l),t(l.value)&&(n=l.value,"[object Function]"!==Object.prototype.toString.call(n))&&!Array.isArray(l.value)&&(r[o].value=Object.assign({},l.value)),Array.isArray(l.value)&&(r[o].value=l.value.slice(0)),r},{})}function r(e){if(e)try{return JSON.parse(e)}catch(r){return e}}function o(e,r,o,t){if(null==o||!1===o)return e.removeAttribute(r);let l=t?JSON.stringify(o):o;e.__updating[r]=!0,"true"===l&&(l=""),e.setAttribute(r,l),Promise.resolve().then(()=>delete e.__updating[r])}function t(e){return null!=e&&("object"==typeof e||"function"==typeof e)}let l;function n(t,n){const a=Object.keys(n);return class extends t{static get observedAttributes(){return a.map(e=>n[e].attribute)}constructor(){super(),this.__initialized=!1,this.__released=!1,this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props={};for(let e of a)this[e]=void 0}connectedCallback(){if(this.__initialized)return;this.__releaseCallbacks=[],this.__propertyChangedCallbacks=[],this.__updating={},this.props=function(t,l){const n=e(l);return Object.keys(l).forEach(e=>{const l=n[e],a=t.getAttribute(l.attribute),i=t[e];null!=a&&(l.value=l.parse?r(a):a),null!=i&&(l.value=Array.isArray(i)?i.slice(0):i),l.reflect&&o(t,l.attribute,l.value,!!l.parse),Object.defineProperty(t,e,{get:()=>l.value,set(r){const t=l.value;l.value=r,l.reflect&&o(this,l.attribute,l.value,!!l.parse);for(let o=0,l=this.__propertyChangedCallbacks.length;o(r[o]=e[o].value,r),{})}(this.props),a=this.Component,i=l;try{l=this,this.__initialized=!0,"function"==typeof(d=a)&&0===d.toString().indexOf("class")?new a(t,{element:this}):a(t,{element:this})}finally{l=i}var d}async disconnectedCallback(){if(await Promise.resolve(),this.isConnected)return;this.__propertyChangedCallbacks.length=0;let e=null;for(;e=this.__releaseCallbacks.pop();)e(this);delete this.__initialized,this.__released=!0}attributeChangedCallback(e,o,t){if(this.__initialized&&!this.__updating[e]&&(e=this.lookupProp(e))in n){if(null==t&&!this[e])return;this[e]=n[e].parse?r(t):t}}lookupProp(e){if(n)return a.find(r=>e===r||e===n[r].attribute)}get renderRoot(){return this.shadowRoot||this.attachShadow({mode:"open"})}addReleaseCallback(e){this.__releaseCallbacks.push(e)}addPropertyChangedCallback(e){this.__propertyChangedCallbacks.push(e)}}}function a(e,r={},o={}){const{BaseElement:l=HTMLElement,extension:a,customElements:i=window.customElements}=o;return o=>{if(!e)throw new Error("tag is required to register a Component");let d=i.get(e);return d?(d.prototype.Component=o,d):(d=n(l,function(e){return e?Object.keys(e).reduce((r,o)=>{const l=e[o];return r[o]=t(l)&&"value"in l?l:{value:l},r[o].attribute||(r[o].attribute=o.replace(/\.?([A-Z]+)/g,(e,r)=>"-"+r.toLowerCase()).replace("_","-").replace(/^-/,"")),r[o].parse="parse"in r[o]?r[o].parse:"string"!=typeof r[o].value,r},{}):{}}(r)),d.prototype.Component=o,d.prototype.registeredTag=e,i.define(e,d,a),d)}}const i=Symbol("solid-proxy"),d=Symbol("solid-track"),s=Symbol("solid-dev-component"),m={equals:(e,r)=>e===r};let g=F;const c=1,u=2,x={owned:null,cleanups:null,context:null,owner:null};var p=null;let h=null,S=null,v=null,f=null,y=0;function $(e,r){const o=S,t=p,l=0===e.length,n=l?x:{owned:null,cleanups:null,context:null,owner:void 0===r?t:r},a=l?e:()=>e(()=>_(()=>V(n)));p=n,S=null;try{return D(a,!0)}finally{S=o,p=t}}function b(e,r){const o={value:e,observers:null,observerSlots:null,comparator:(r=r?Object.assign({},m,r):m).equals||void 0};return[B.bind(o),e=>("function"==typeof e&&(e=e(o.value)),N(o,e))]}function A(e,r,o){O(I(e,r,!1,c))}function P(e,r,o){g=R;const t=I(e,r,!1,c);t.user=!0,f?f.push(t):O(t)}function M(e,r,o){o=o?Object.assign({},m,o):m;const t=I(e,r,!0,0);return t.observers=null,t.observerSlots=null,t.comparator=o.equals||void 0,O(t),B.bind(t)}function _(e){if(null===S)return e();const r=S;S=null;try{return e()}finally{S=r}}function T(e){P(()=>_(e))}function w(e){return null===p||(null===p.cleanups?p.cleanups=[e]:p.cleanups.push(e)),e}function G(){return S}function L(){return p}function C(e){let r;return void 0!==(r=W(p,e.id))?r:e.defaultValue}function E(e){const r=M(e),o=M(()=>K(r()));return o.toArray=()=>{const e=o();return Array.isArray(e)?e:null!=e?[e]:[]},o}function B(){if(this.sources&&this.state)if(this.state===c)O(this);else{const e=v;v=null,D(()=>X(this),!1),v=e}if(S){const e=this.observers?this.observers.length:0;S.sources?(S.sources.push(this),S.sourceSlots.push(e)):(S.sources=[this],S.sourceSlots=[e]),this.observers?(this.observers.push(S),this.observerSlots.push(S.sources.length-1)):(this.observers=[S],this.observerSlots=[S.sources.length-1])}return this.value}function N(e,r,o){let t=e.value;return e.comparator&&e.comparator(t,r)||(e.value=r,e.observers&&e.observers.length&&D(()=>{for(let r=0;r1e6)throw v=[],new Error},!1)),r}function O(e){if(!e.fn)return;V(e);const r=p,o=S,t=y;S=p=e,function(e,r,o){let t;try{t=e.fn(r)}catch(r){return e.pure&&(e.state=c,e.owned&&e.owned.forEach(V),e.owned=null),e.updatedAt=o+1,U(r)}(!e.updatedAt||e.updatedAt<=o)&&(null!=e.updatedAt&&"observers"in e?N(e,t):e.value=t,e.updatedAt=o)}(e,e.value,t),S=o,p=r}function I(e,r,o,t=c,l){const n={fn:e,state:t,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:r,owner:p,context:null,pure:o};return null===p||p!==x&&(p.owned?p.owned.push(n):p.owned=[n]),n}function k(e){if(0===e.state)return;if(e.state===u)return X(e);if(e.suspense&&_(e.suspense.inFallback))return e.suspense.effects.push(e);const r=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;o--)if((e=r[o]).state===c)O(e);else if(e.state===u){const o=v;v=null,D(()=>X(e,r[0]),!1),v=o}}function D(e,r){if(v)return e();let o=!1;r||(v=[]),f?o=!0:f=[],y++;try{const r=e();return function(e){v&&(F(v),v=null);if(e)return;const r=f;f=null,r.length&&D(()=>g(r),!1)}(o),r}catch(e){o||(f=null),v=null,U(e)}}function F(e){for(let r=0;r=0;r--)V(e.owned[r]);e.owned=null}if(e.cleanups){for(r=e.cleanups.length-1;r>=0;r--)e.cleanups[r]();e.cleanups=null}e.state=0,e.context=null}function U(e){throw e}function W(e,r){return e?e.context&&void 0!==e.context[r]?e.context[r]:W(e.owner,r):void 0}function K(e){if("function"==typeof e&&!e.length)return K(e());if(Array.isArray(e)){const r=[];for(let o=0;oo=_(()=>(p.context={[e]:r.value},E(()=>r.children))),void 0),o}}const Z=Symbol("fallback");function Q(e){for(let r=0;re(r||{}))}function J(){return!0}const j={get:(e,r,o)=>r===i?o:e.get(r),has:(e,r)=>r===i||e.has(r),set:J,deleteProperty:J,getOwnPropertyDescriptor:(e,r)=>({configurable:!0,enumerable:!0,get:()=>e.get(r),set:J,deleteProperty:J}),ownKeys:e=>e.keys()};function q(e){return(e="function"==typeof e?e():e)?e:{}}function ee(...e){let r=!1;for(let o=0;o=0;o--){const t=q(e[o])[r];if(void 0!==t)return t}},has(r){for(let o=e.length-1;o>=0;o--)if(r in q(e[o]))return!0;return!1},keys(){const r=[];for(let o=0;o=0;r--)if(e[r]){const t=Object.getOwnPropertyDescriptors(e[r]);for(const r in t)r in o||Object.defineProperty(o,r,{enumerable:!0,get(){for(let o=e.length-1;o>=0;o--){const t=(e[o]||{})[r];if(void 0!==t)return t}}})}return o}function re(e,...r){const o=new Set(r.flat());if(i in e){const t=r.map(r=>new Proxy({get:o=>r.includes(o)?e[o]:void 0,has:o=>r.includes(o)&&o in e,keys:()=>r.filter(r=>r in e)},j));return t.push(new Proxy({get:r=>o.has(r)?void 0:e[r],has:r=>!o.has(r)&&r in e,keys:()=>Object.keys(e).filter(e=>!o.has(e))},j)),t}const t=Object.getOwnPropertyDescriptors(e);return r.push(Object.keys(t).filter(e=>!o.has(e))),r.map(r=>{const o={};for(let l=0;le[n],set:()=>!0,enumerable:!0})}return o})}function oe(e){const r="fallback"in e&&{fallback:()=>e.fallback};return M(function(e,r,o={}){let t=[],l=[],n=[],a=0,i=r.length>1?[]:null;return w(()=>Q(n)),()=>{let s,m,g=e()||[];return g[d],_(()=>{let e,r,d,u,x,p,h,S,v,f=g.length;if(0===f)0!==a&&(Q(n),n=[],t=[],l=[],a=0,i&&(i=[])),o.fallback&&(t=[Z],l[0]=$(e=>(n[0]=e,o.fallback())),a=1);else if(0===a){for(l=new Array(f),m=0;m=p&&S>=p&&t[h]===g[S];h--,S--)d[S]=l[h],u[S]=n[h],i&&(x[S]=i[h]);for(e=new Map,r=new Array(S+1),m=S;m>=p;m--)v=g[m],s=e.get(v),r[m]=void 0===s?-1:s,e.set(v,m);for(s=p;s<=h;s++)v=t[s],m=e.get(v),void 0!==m&&-1!==m?(d[m]=l[s],u[m]=n[s],i&&(x[m]=i[s]),m=r[m],e.set(v,m)):n[s]();for(m=p;me.each,e.children,r||void 0))}function te(e){const r=e.keyed,o=M(()=>e.when,void 0,{equals:(e,o)=>r?e===o:!e==!o});return M(()=>{const t=o();if(t){const l=e.children;return"function"==typeof l&&l.length>0?_(()=>l(r?t:()=>{if(!_(o))throw`Stale read from <${"Show"}>.`;return e.when})):l}return e.fallback},void 0,void 0)}const le=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),ne=new Set(["innerHTML","textContent","innerText","children"]),ae=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),ie=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function de(e,r){const o=ie[e];return"object"==typeof o?o[r]?o.$:void 0:o}const se=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),me=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),ge={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};const ce="_$DX_DELEGATE";function ue(e,r,o){let t;const l=()=>{const r=document.createElement("template");return r.innerHTML=e,o?r.content.firstChild.firstChild:r.content.firstChild},n=r?()=>(t||(t=l())).cloneNode(!0):()=>_(()=>document.importNode(t||(t=l()),!0));return n.cloneNode=n,n}function xe(e,r=window.document){const o=r[ce]||(r[ce]=new Set);for(let t=0,l=e.length;tt.call(e,o[1],r))}else e.addEventListener(r,o)}function fe(e,r,o={}){const t=Object.keys(r||{}),l=Object.keys(o);let n,a;for(n=0,a=l.length;nl.children=we(e,r.children,l.children)),A(()=>r.ref&&r.ref(e)),A(()=>Pe(e,r,o,!0,l,!0)),l}function be(e,r,o){return _(()=>e(r,o))}function Ae(e,r,o,t){if(void 0===o||t||(t=[]),"function"!=typeof r)return we(e,r,t,o);A(t=>we(e,r(),t,o),t)}function Pe(e,r,o,t,l={},n=!1){r||(r={});for(const t in l)if(!(t in r)){if("children"===t)continue;l[t]=_e(e,t,null,l[t],o,n)}for(const a in r){if("children"===a){t||we(e,r.children);continue}const i=r[a];l[a]=_e(e,a,i,l[a],o,n)}}function Me(e,r,o){const t=r.trim().split(/\s+/);for(let r=0,l=t.length;rr.toUpperCase())]=o;else{const t=l&&r.indexOf(":")>-1&&ge[r.split(":")[0]];t?he(e,t,r,o):pe(e,ae[r]||r,o)}var g;return o}function Te(e){const r=`$$${e.type}`;let o=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==o&&Object.defineProperty(e,"target",{configurable:!0,value:o}),Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>o||document});o;){const t=o[r];if(t&&!o.disabled){const l=o[`${r}Data`];if(void 0!==l?t.call(o,l,e):t.call(o,e),e.cancelBubble)return}o=o._$host||o.parentNode||o.host}}function we(e,r,o,t,l){for(;"function"==typeof o;)o=o();if(r===o)return o;const n=typeof r,a=void 0!==t;if(e=a&&o[0]&&o[0].parentNode||e,"string"===n||"number"===n)if("number"===n&&(r=r.toString()),a){let l=o[0];l&&3===l.nodeType?l.data=r:l=document.createTextNode(r),o=Ce(e,o,t,l)}else o=""!==o&&"string"==typeof o?e.firstChild.data=r:e.textContent=r;else if(null==r||"boolean"===n)o=Ce(e,o,t);else{if("function"===n)return A(()=>{let l=r();for(;"function"==typeof l;)l=l();o=we(e,l,o,t)}),()=>o;if(Array.isArray(r)){const n=[],i=o&&Array.isArray(o);if(Ge(n,r,o,l))return A(()=>o=we(e,n,o,t,!0)),()=>o;if(0===n.length){if(o=Ce(e,o,t),a)return o}else i?0===o.length?Le(e,n,t):function(e,r,o){let t=o.length,l=r.length,n=t,a=0,i=0,d=r[l-1].nextSibling,s=null;for(;at-i){const l=r[a];for(;i=0;n--){const a=r[n];if(l!==a){const r=a.parentNode===e;t||n?r&&a.remove():r?e.replaceChild(l,a):e.insertBefore(l,o)}else t=!0}}else e.insertBefore(l,o);return[l]}function Ee(e,r=!1){return r?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e)}function Be(e){const{useShadow:r}=e,o=document.createTextNode(""),t=L();let l;return P(()=>{l||(l=function(e,r){const o=p,t=S;p=e,S=null;try{return D(r,!0)}catch(e){U(e)}finally{p=o,S=t}}(t,()=>e.children));const n=e.mount||document.body;if(n instanceof HTMLHeadElement){const[e,r]=b(!1),o=()=>r(!0);$(r=>Ae(n,()=>e()?r():l,null)),w(o)}else{const t=Ee(e.isSVG?"g":"div",e.isSVG),a=r&&t.attachShadow?t.attachShadow({mode:"open"}):t;Object.defineProperty(t,"_$host",{get:()=>o.parentNode,configurable:!0}),Ae(a,l),n.appendChild(t),e.ref&&e.ref(t),w(()=>n.removeChild(t))}}),o}function Ne(e){const[r,o]=re(e,["component"]),t=M(()=>r.component);return M(()=>{const e=t();switch(typeof e){case"function":return Object.assign(e,{[s]:!0}),_(()=>e(o));case"string":const r=me.has(e),t=Ee(e,r);return $e(t,o,r),t}})}var Oe=Object.freeze({__proto__:null,Aliases:ae,ChildProperties:ne,DelegatedEvents:se,Dynamic:Ne,For:oe,Portal:Be,Properties:le,SVGElements:me,SVGNamespace:ge,Show:te,addEventListener:ve,assign:Pe,classList:fe,className:Se,createComponent:Y,delegateEvents:xe,effect:A,getOwner:L,getPropAlias:de,insert:Ae,memo:M,mergeProps:ee,render:function(e,r,o,t={}){let l;return $(t=>{l=t,r===document?e():Ae(r,e(),r.firstChild?null:void 0,o)},t.owner),()=>{l(),r.textContent=""}},setAttribute:pe,setAttributeNS:he,spread:$e,style:ye,template:ue,untrack:_,use:be});function Ie(e){return(r,o)=>{const{element:t}=o;return $(l=>{const n=function(e){const r=Object.keys(e),o={};for(let t=0;te)}})}return o}(r);t.addPropertyChangedCallback((e,r)=>n[e]=r),t.addReleaseCallback(()=>{t.renderRoot.textContent="",l()});const a=e(n,o);return Ae(t.renderRoot,a)},function(e){if(e.assignedSlot&&e.assignedSlot._$owner)return e.assignedSlot._$owner;let r=e.parentNode;for(;r&&!r._$owner&&(!r.assignedSlot||!r.assignedSlot._$owner);)r=r.parentNode;return r&&r.assignedSlot?r.assignedSlot._$owner:e._$owner}(t))}}function ke(e,r,o){return 2===arguments.length&&(o=r,r={}),a(e,r)(Ie(o))}const De={chatflowid:"",apiHost:void 0,onRequest:void 0,chatflowConfig:void 0,theme:void 0,observersConfig:void 0};var Fe='/*! tailwindcss v3.3.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.\\!container{width:100%!important}.container{width:100%}@media (min-width:640px){.\\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\\!container{max-width:1536px!important}.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em;margin-top:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-bottom:1.2em;margin-top:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-bottom:1.25em;margin-top:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-bottom:1.25em;margin-top:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-bottom:3em;margin-top:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){border-inline-start-color:var(--tw-prose-quote-borders);border-inline-start-width:.25rem;color:var(--tw-prose-quotes);font-style:italic;font-weight:500;margin-bottom:1.6em;margin-top:1.6em;padding-inline-start:1em;quotes:"\\201C""\\201D""\\2018""\\2019"}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:2.25em;font-weight:800;line-height:1.1111111;margin-bottom:.8888889em;margin-top:0}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:1.5em;font-weight:700;line-height:1.3333333;margin-bottom:1em;margin-top:2em}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:1.25em;font-weight:600;line-height:1.6;margin-bottom:.6em;margin-top:1.6em}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;line-height:1.5;margin-bottom:.5em;margin-top:1.5em}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-bottom:2em;margin-top:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:.3125rem;box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);color:var(--tw-prose-kbd);font-family:inherit;font-size:.875em;font-weight:500;padding-inline-end:.375em;padding-bottom:.1875em;padding-top:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--tw-prose-pre-bg);border-radius:.375rem;color:var(--tw-prose-pre-code);font-size:.875em;font-weight:400;line-height:1.7142857;margin-bottom:1.7142857em;margin-top:1.7142857em;overflow-x:auto;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-top:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em;line-height:1.7142857;margin-bottom:2em;margin-top:2em;table-layout:auto;width:100%}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-color:var(--tw-prose-th-borders);border-bottom-width:1px}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em;vertical-align:bottom}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-color:var(--tw-prose-td-borders);border-bottom-width:1px}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-color:var(--tw-prose-th-borders);border-top-width:1px}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body:#374151;--tw-prose-headings:#111827;--tw-prose-lead:#4b5563;--tw-prose-links:#111827;--tw-prose-bold:#111827;--tw-prose-counters:#6b7280;--tw-prose-bullets:#d1d5db;--tw-prose-hr:#e5e7eb;--tw-prose-quotes:#111827;--tw-prose-quote-borders:#e5e7eb;--tw-prose-captions:#6b7280;--tw-prose-kbd:#111827;--tw-prose-kbd-shadows:rgba(17,24,39,.1);--tw-prose-code:#111827;--tw-prose-pre-code:#e5e7eb;--tw-prose-pre-bg:#1f2937;--tw-prose-th-borders:#d1d5db;--tw-prose-td-borders:#e5e7eb;--tw-prose-invert-body:#d1d5db;--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:#9ca3af;--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:#9ca3af;--tw-prose-invert-bullets:#4b5563;--tw-prose-invert-hr:#374151;--tw-prose-invert-quotes:#f3f4f6;--tw-prose-invert-quote-borders:#374151;--tw-prose-invert-captions:#9ca3af;--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:hsla(0,0%,100%,.1);--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:#d1d5db;--tw-prose-invert-pre-bg:rgba(0,0,0,.5);--tw-prose-invert-th-borders:#4b5563;--tw-prose-invert-td-borders:#374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.5em;margin-top:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.75em;margin-top:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.75em;margin-top:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em;margin-top:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-top:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.bottom-0{bottom:0}.bottom-\\[140px\\]{bottom:140px}.left-0{left:0}.left-1\\/2{left:50%}.right-0{right:0}.right-\\[-8px\\]{right:-8px}.right-\\[64px\\]{right:64px}.top-0{top:0}.z-0{z-index:0}.z-10{z-index:10}.z-40{z-index:40}.z-50{z-index:50}.z-\\[1001\\]{z-index:1001}.z-\\[1002\\]{z-index:1002}.float-right{float:right}.m-0{margin:0}.m-\\[8px\\]{margin:8px}.m-auto{margin:auto}.mx-4{margin-left:16px;margin-right:16px}.my-2{margin-bottom:8px;margin-top:8px}.my-6{margin-bottom:24px;margin-top:24px}.-ml-1{margin-left:-4px}.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.ml-1{margin-left:4px}.ml-1\\.5{margin-left:6px}.ml-10{margin-left:40px}.ml-2{margin-left:8px}.ml-6{margin-left:24px}.ml-auto{margin-left:auto}.mr-1{margin-right:4px}.mr-2{margin-right:8px}.mr-3{margin-right:12px}.mr-\\[10px\\]{margin-right:10px}.mt-1{margin-top:4px}.mt-2{margin-top:8px}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:40px}.h-12{height:48px}.h-14{height:56px}.h-2{height:8px}.h-20{height:80px}.h-4{height:16px}.h-5{height:20px}.h-6{height:24px}.h-7{height:28px}.h-8{height:32px}.h-\\[23px\\]{height:23px}.h-\\[50px\\]{height:50px}.h-\\[58px\\]{height:58px}.h-\\[60px\\]{height:60px}.h-auto{height:auto}.h-full{height:100%}.max-h-\\[128px\\]{max-height:128px}.max-h-\\[192px\\]{max-height:192px}.max-h-\\[704px\\]{max-height:704px}.\\!min-h-\\[24px\\]{min-height:24px!important}.min-h-0{min-height:0}.min-h-\\[56px\\]{min-height:56px}.min-h-full{min-height:100%}.w-0{width:0}.w-10{width:40px}.w-12{width:48px}.w-16{width:64px}.w-2{width:8px}.w-20{width:80px}.w-28{width:112px}.w-4{width:16px}.w-5{width:20px}.w-6{width:24px}.w-64{width:256px}.w-7{width:28px}.w-8{width:32px}.w-\\[135px\\]{width:135px}.w-\\[200px\\]{width:200px}.w-full{width:100%}.\\!min-w-\\[24px\\]{min-width:24px!important}.min-w-full{min-width:100%}.max-w-3xl{max-width:768px}.max-w-\\[128px\\]{max-width:128px}.max-w-\\[85\\%\\]{max-width:85%}.max-w-full{max-width:100%}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-md{max-width:448px}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0{flex-grow:0}.basis-auto{flex-basis:auto}.border-collapse{border-collapse:collapse}.-translate-x-1\\/2{--tw-translate-x:-50%}.-rotate-180,.-translate-x-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-180{--tw-rotate:-180deg}.rotate-0{--tw-rotate:0deg}.rotate-0,.scale-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-0{--tw-scale-x:0;--tw-scale-y:0}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-100,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-gpu{transform:translate3d(var(--tw-translate-x),var(--tw-translate-y),0) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fade-in .3s ease-out}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:4px}.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(8px*(1 - var(--tw-space-x-reverse)));margin-right:calc(8px*var(--tw-space-x-reverse))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(16px*(1 - var(--tw-space-x-reverse)));margin-right:calc(16px*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(8px*var(--tw-space-y-reverse));margin-top:calc(8px*(1 - var(--tw-space-y-reverse)))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(16px*var(--tw-space-y-reverse));margin-top:calc(16px*(1 - var(--tw-space-y-reverse)))}.self-end{align-self:flex-end}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:4px}.rounded-2xl{border-radius:16px}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[6px\\]{border-radius:6px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:8px}.rounded-md{border-radius:6px}.rounded-none{border-radius:0}.rounded-xl{border-radius:12px}.rounded-b{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.rounded-t{border-top-left-radius:4px;border-top-right-radius:4px}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-4{border-width:4px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-t-4{border-top-width:4px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-\\[\\#eeeeee\\]{--tw-border-opacity:1;border-color:rgb(238 238 238/var(--tw-border-opacity))}.border-current{border-color:currentColor}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-red-600{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity:1;border-color:rgb(253 224 71/var(--tw-border-opacity))}.border-t-transparent{border-top-color:transparent}.border-t-white{--tw-border-opacity:1;border-top-color:rgb(255 255 255/var(--tw-border-opacity))}.bg-\\[rgba\\(0\\2c 0\\2c 0\\2c 0\\.3\\)\\]{background-color:rgba(0,0,0,.3)}.bg-\\[rgba\\(0\\2c 0\\2c 0\\2c 0\\.4\\)\\]{background-color:rgba(0,0,0,.4)}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-black\\/10{background-color:rgba(0,0,0,.1)}.bg-black\\/60{background-color:rgba(0,0,0,.6)}.bg-emerald-500{--tw-bg-opacity:1;background-color:rgb(16 185 129/var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity:1;background-color:rgb(254 249 195/var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity:0.5}.bg-cover{background-size:cover}.bg-center{background-position:50%}.fill-transparent{fill:transparent}.stroke-2{stroke-width:2}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.\\!p-1{padding:4px!important}.p-0{padding:0}.p-1{padding:4px}.p-10{padding:40px}.p-2{padding:8px}.p-2\\.5{padding:10px}.p-3{padding:12px}.p-4{padding:16px}.p-5{padding:20px}.p-6{padding:24px}.px-1{padding-left:4px;padding-right:4px}.px-12{padding-left:48px;padding-right:48px}.px-2{padding-left:8px;padding-right:8px}.px-3{padding-left:12px;padding-right:12px}.px-4{padding-left:16px;padding-right:16px}.px-5{padding-left:20px;padding-right:20px}.px-6{padding-left:24px;padding-right:24px}.px-\\[10px\\]{padding-left:10px;padding-right:10px}.py-1{padding-bottom:4px;padding-top:4px}.py-2{padding-bottom:8px;padding-top:8px}.py-3{padding-bottom:12px;padding-top:12px}.py-4{padding-bottom:16px;padding-top:16px}.py-8{padding-bottom:32px;padding-top:32px}.py-\\[10px\\]{padding-bottom:10px;padding-top:10px}.pb-1{padding-bottom:4px}.pb-2{padding-bottom:8px}.pb-4{padding-bottom:16px}.pb-\\[10px\\]{padding-bottom:10px}.pl-2{padding-left:8px}.pl-4{padding-left:16px}.pr-0{padding-right:0}.pr-3{padding-right:12px}.pr-4{padding-right:16px}.pt-2{padding-top:8px}.pt-4{padding-top:16px}.pt-\\[6px\\]{padding-top:6px}.pt-\\[70px\\]{padding-top:70px}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:24px;line-height:32px}.text-\\[11px\\]{font-size:11px}.text-\\[13px\\]{font-size:13px}.text-base{font-size:16px;line-height:24px}.text-sm{font-size:14px;line-height:20px}.text-xl{font-size:20px;line-height:28px}.text-xs{font-size:12px;line-height:16px}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-4{line-height:16px}.leading-none{line-height:1}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.text-inherit{color:inherit}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-transparent{color:transparent}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity:1;color:rgb(161 98 7/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-lg{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.blur-\\[2px\\]{--tw-blur:blur(2px)}.blur-\\[2px\\],.blur-none{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-none{--tw-blur:blur(0)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-150,.transition-transform{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}:host{--chatbot-container-bg-image:none;--chatbot-container-bg-color:transparent;--chatbot-container-font-family:"Open Sans";--chatbot-button-bg-color:#0042da;--chatbot-button-color:#fff;--chatbot-host-bubble-bg-color:#fff;--chatbot-host-bubble-color:#303235;--chatbot-guest-bubble-bg-color:#3b81f6;--chatbot-guest-bubble-color:#fff;--chatbot-input-bg-color:#fff;--chatbot-input-color:#303235;--chatbot-input-placeholder-color:#9095a0;--chatbot-header-bg-color:#fff;--chatbot-header-color:#303235;--chatbot-border-radius:6px;--PhoneInputCountryFlag-borderColor:transparent;--PhoneInput-color--focus:transparent}a{color:#16bed7;font-weight:500}a:hover{text-decoration:underline}pre{word-wrap:break-word;font-size:13px;margin:5px;overflow:auto;padding:5px;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;width:auto}.string{color:green}.number{color:#ff8c00}.boolean{color:blue}.null{color:#f0f}.key{color:#002b36}.scrollable-container{scrollbar-color:rgba(0,0,0,.2) transparent;scrollbar-width:thin}.scrollable-container::-webkit-scrollbar{width:4px}.scrollable-container::-webkit-scrollbar-track{background:transparent}.scrollable-container::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.2);border-radius:4px}.scrollable-container::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.35)}@media (hover:none) and (pointer:coarse){.scrollable-container{scrollbar-width:none}.scrollable-container::-webkit-scrollbar{display:none}}.text-fade-in{transition:opacity .4s ease-in .2s}.bubble-typing{transition:width .4s ease-out,height .4s ease-out}.bubble-wrapper{background-color:var(--chatbot-host-bubble-bg-color)}.bubble1,.bubble2,.bubble3{background-color:var(--chatbot-host-bubble-color)}.bubble1,.bubble2{animation:chatBubbles 1s ease-in-out infinite}.bubble2{animation-delay:.3s}.bubble3{animation:chatBubbles 1s ease-in-out infinite;animation-delay:.5s}@keyframes chatBubbles{0%{transform:translateY(0)}50%{transform:translateY(-5px)}to{transform:translateY(0)}}button,input,textarea{font-weight:300}.slate-a{text-decoration:underline}.slate-html-container>div{min-height:24px}.slate-bold{font-weight:700}.slate-italic{font-style:oblique}.slate-underline{text-decoration:underline}.text-input::-moz-placeholder{color:#9095a0!important;opacity:1!important}.text-input::placeholder{color:#9095a0!important;opacity:1!important}.chatbot-container{background-color:var(--chatbot-container-bg-color);background-image:var(--chatbot-container-bg-image);font-family:Open Sans,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}.file-annotation-button{background-color:#02a0a0c2;border:1px solid #02a0a0c2;border-radius:var(--chatbot-border-radius);color:var(--chatbot-button-color)}.chatbot-button{background-color:#0042da;border:1px solid #0042da;border-radius:var(--chatbot-border-radius);color:var(--chatbot-button-color)}.chatbot-button.selectable{background-color:#f7f8ff;border:1px solid #0042da;color:var(--chatbot-host-bubble-color)}.chatbot-host-bubble{word-wrap:break-word;color:var(--chatbot-host-bubble-color);overflow-wrap:break-word;white-space:normal;word-break:break-word}.chatbot-host-bubble>.bubble-typing{background-color:#14213c;border:var(--chatbot-host-bubble-border);border-radius:20px}.chatbot-host-bubble iframe,.chatbot-host-bubble img,.chatbot-host-bubble video{border-radius:var(--chatbot-border-radius)}.chatbot-guest-bubble{word-wrap:break-word;background-color:#3b81f6;border-radius:6px;color:var(--chatbot-guest-bubble-color);overflow-wrap:break-word;white-space:normal;word-break:break-word}.chatbot-input,.feedback-input{background-color:#fff;border-radius:var(--chatbot-border-radius);box-shadow:0 2px 6px -1px rgba(0,0,0,.1);color:#303235}.chatbot-input-error-message{color:#303235}.chatbot-button>.send-icon{fill:var(--chatbot-button-color);stroke:var(--chatbot-button-color)}.chatbot-chat-view{max-width:800px}.ping span{background-color:#0042da}.rating-icon-container svg{stroke:#0042da;fill:#f7f8ff;height:42px;transition:fill .1s ease-out;width:42px}.rating-icon-container.selected svg{fill:#0042da}.rating-icon-container:hover svg{filter:brightness(.9)}.rating-icon-container:active svg{filter:brightness(.75)}.upload-progress-bar{background-color:#0042da;border-radius:var(--chatbot-border-radius)}.total-files-indicator{background-color:#0042da;color:var(--chatbot-button-color);font-size:10px}.chatbot-upload-input{transition:border-color .1s ease-out}.chatbot-upload-input.dragging-over{border-color:#0042da}.secondary-button{background-color:#f7f8ff;border-radius:var(--chatbot-border-radius);color:var(--chatbot-host-bubble-color)}.chatbot-country-select{color:#303235}.chatbot-country-select,.chatbot-date-input{background-color:#fff;border-radius:var(--chatbot-border-radius)}.chatbot-date-input{color:#303235;color-scheme:light}.chatbot-popup-blocked-toast{border-radius:var(--chatbot-border-radius)}.messagelist{border-radius:.5rem;height:100%;overflow-y:scroll;width:100%}.messagelistloading{display:flex;justify-content:center;margin-top:1rem;width:100%}.usermessage{padding:1rem 1.5rem}.usermessagewaiting-light{background:linear-gradient(270deg,#ede7f6,#e3f2fd,#ede7f6);background-position:-100% 0;background-size:200% 200%}.usermessagewaiting-dark,.usermessagewaiting-light{animation:loading-gradient 2s ease-in-out infinite;animation-direction:alternate;animation-name:loading-gradient;padding:1rem 1.5rem}.usermessagewaiting-dark{background:linear-gradient(270deg,#2e2352,#1d3d60,#2e2352);background-position:-100% 0;background-size:200% 200%;color:#ececf1}@keyframes loading-gradient{0%{background-position:-100% 0}to{background-position:100% 0}}.apimessage{animation:fadein .5s;padding:1rem 1.5rem}@keyframes fadein{0%{opacity:0}to{opacity:1}}.apimessage,.usermessage,.usermessagewaiting{display:flex}.markdownanswer{line-height:1.75}.markdownanswer a:hover{opacity:.8}.markdownanswer a{color:#16bed7;font-weight:500}.markdownanswer code{color:#15cb19;font-weight:500;white-space:pre-wrap!important}.markdownanswer ol,.markdownanswer ul{margin:1rem}.boticon,.usericon{border-radius:1rem;margin-right:1rem}.markdownanswer h1,.markdownanswer h2,.markdownanswer h3{font-size:inherit}.center{flex-direction:column;padding:10px;position:relative}.center,.cloud{align-items:center;display:flex;justify-content:center}.cloud{border-radius:.5rem;height:calc(100% - 50px);width:400px}input,textarea{background-color:transparent;border:none;font-family:Poppins,sans-serif;padding:10px}@media (max-width:640px){div[part=bot]{height:100%!important;left:0!important;max-height:unset!important;max-width:unset!important;overflow:auto;overflow-x:hidden;position:fixed!important;top:0!important;width:100%!important}.chatbot-container,.rounded-lg,div[class="flex flex-row items-center w-full h-[50px] absolute top-0 left-0 z-10"],div[part=button]{border-radius:0!important}button{cursor:default!important}}.tooltip{background:var(--tooltip-background-color,#000);border-radius:5px;color:var(--tooltip-text-color,#fff);font-size:var(--tooltip-font-size,12px);max-width:calc(100vw - 20px);padding:5px 10px;position:fixed;transition:opacity .3s ease-in-out;white-space:pre-wrap;word-break:break-word;z-index:42424242}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.spinner{animation:spin 1s linear infinite;border:4px solid hsla(0,0%,100%,.3);border-radius:50%;border-top-color:#fff;height:24px;width:24px}.fullscreen{height:85vh!important;max-height:85vh!important;width:50vw!important}.btn-hover-darken{transition:all .2s ease}.btn-hover-darken:hover{filter:brightness(90%);transform:translateY(-1px)}.hover\\:scale-105:hover{--tw-scale-x:1.05;--tw-scale-y:1.05}.hover\\:scale-105:hover,.hover\\:scale-110:hover{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:scale-110:hover{--tw-scale-x:1.1;--tw-scale-y:1.1}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\\:bg-green-600:hover{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity))}.hover\\:bg-red-600:hover{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity))}.hover\\:bg-transparent:hover{background-color:transparent}.hover\\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.hover\\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.hover\\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\\:brightness-90:hover{--tw-brightness:brightness(.9);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:border-blue-500:focus{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.focus\\:ring-orange-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(249 115 22/var(--tw-ring-opacity))}.active\\:scale-95:active{--tw-scale-x:.95;--tw-scale-y:.95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:bg-emerald-600:active{--tw-bg-opacity:1;background-color:rgb(5 150 105/var(--tw-bg-opacity))}.active\\:brightness-75:active{--tw-brightness:brightness(.75);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:brightness-100:disabled{--tw-brightness:brightness(1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.group:hover .group-hover\\:flex{display:flex}@media (min-width:640px){.sm\\:right-5{right:20px}.sm\\:my-8{margin-bottom:32px;margin-top:32px}.sm\\:w-\\[400px\\]{width:400px}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:512px}.sm\\:p-0{padding:0}}';const Re=e=>null==e,Xe=e=>null!=e,He=async e=>{try{const r="string"==typeof e?e:e.url,o="string"!=typeof e&&Xe(e.body)?{"Content-Type":"application/json",...e.headers}:void 0;let t="string"!=typeof e&&Xe(e.body)?JSON.stringify(e.body):void 0;"string"!=typeof e&&e.formData&&(t=e.formData);const l={method:"string"==typeof e?"GET":e.method,mode:"cors",headers:o,body:t,signal:"string"!=typeof e?e.signal:void 0};"string"!=typeof e&&e.onRequest&&await e.onRequest(l);const n=await fetch(r,l);let a;const i=n.headers.get("Content-Type");if(a=i&&i.includes("application/json")?await n.json():"string"!=typeof e&&"blob"===e.type?await n.blob():await n.text(),!n.ok){let e;throw e="object"==typeof a&&"error"in a?a.error:a||n.statusText,e}return{data:a}}catch(e){return console.error(e),{error:e}}},Ve=(e,r,o={})=>{const t=sessionStorage.getItem(`${e}_EXTERNAL`),l={...o};if(r&&(l.chatId=r),t)try{const r=JSON.parse(t);sessionStorage.setItem(`${e}_EXTERNAL`,JSON.stringify({...r,...l}))}catch(r){const o=t;l.chatId=o,sessionStorage.setItem(`${e}_EXTERNAL`,JSON.stringify(l))}else sessionStorage.setItem(`${e}_EXTERNAL`,JSON.stringify(l))},Ue=e=>{const r=sessionStorage.getItem(`${e}_EXTERNAL`);if(!r)return{};try{return JSON.parse(r)}catch(e){return{}}},We=e=>{const r=sessionStorage.getItem(`${e}_EXTERNAL`);if(r)try{const o=JSON.parse(r),t={};o.token&&(t.token=o.token),o.lead&&(t.lead=o.lead),sessionStorage.removeItem(`${e}_EXTERNAL`),Object.keys(t).length&&sessionStorage.setItem(`${e}_EXTERNAL`,JSON.stringify(t))}catch(e){return void console.error(e)}},Ke=e=>e?"number"==typeof e?e:"small"===e?32:"medium"===e?48:"large"===e?64:48:48,ze=e=>{const r={"audio/webm":"webm","audio/mp4":"m4a","audio/x-m4a":"m4a","audio/ogg":"ogg","audio/oga":"ogg","audio/wav":"wav","audio/wave":"wav","audio/x-wav":"wav"}[e];return r||(console.warn(`Unsupported audio MIME type: ${e}. Defaulting to 'webm'.`),"webm")},Ze=ue(''),Qe=ue('Bubble button icon'),Ye=ue('
');function fs(e){return e?(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""}):""}const ys=()=>Hd(),$s=()=>Vd(),bs=()=>Ud(),As=()=>Wd(),Ps=()=>Kd(),Ms=()=>zd(),_s=()=>Zd(),Ts=e=>(()=>{const r=Qd();return A(o=>{const t=e.size,l=e.size;return t!==o._v$&&pe(r,"width",o._v$=t),l!==o._v$2&&pe(r,"height",o._v$2=l),o},{_v$:void 0,_v$2:void 0}),r})(),ws=e=>{const r=e.size??24,o=Rd(e.name);if(o)return(()=>{const t=Yd();return t.style.setProperty("flex-shrink","0"),t.style.setProperty("display","flex"),t.style.setProperty("align-items","center"),t.style.setProperty("justify-content","center"),null!=`${r}px`?t.style.setProperty("width",`${r}px`):t.style.removeProperty("width"),null!=`${r}px`?t.style.setProperty("height",`${r}px`):t.style.removeProperty("height"),Ae(t,()=>o.icon({size:Math.round(.55*r),color:"white"})),A(r=>{const l=e.borderRadius??"50%",n=e.bgColor??o.color;return l!==r._v$3&&(null!=(r._v$3=l)?t.style.setProperty("border-radius",l):t.style.removeProperty("border-radius")),n!==r._v$4&&(null!=(r._v$4=n)?t.style.setProperty("background",n):t.style.removeProperty("background")),r},{_v$3:void 0,_v$4:void 0}),t})();if(e.apiHost){const[o,t]=b(!1);return(()=>{const l=Yd();return l.style.setProperty("flex-shrink","0"),l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("justify-content","center"),null!=`${r}px`?l.style.setProperty("width",`${r}px`):l.style.removeProperty("width"),null!=`${r}px`?l.style.setProperty("height",`${r}px`):l.style.removeProperty("height"),l.style.setProperty("overflow","hidden"),Ae(l,Y(te,{get when(){return!o()},get fallback(){return Y(Ts,{get size(){return Math.round(.6*r)}})},get children(){const r=Jd();return r.addEventListener("error",()=>t(!0)),r.style.setProperty("width","100%"),r.style.setProperty("height","100%"),r.style.setProperty("padding","3px"),r.style.setProperty("object-fit","contain"),A(o=>{const t=`${e.apiHost}/api/v1/node-icon/${e.name}`,l=e.name;return t!==o._v$5&&pe(r,"src",o._v$5=t),l!==o._v$6&&pe(r,"alt",o._v$6=l),o},{_v$5:void 0,_v$6:void 0}),r}})),A(r=>{const t=e.borderRadius??"50%",n=e.bgColor??(o()?"#9e9e9e":"#f5f5f5");return t!==r._v$7&&(null!=(r._v$7=t)?l.style.setProperty("border-radius",t):l.style.removeProperty("border-radius")),n!==r._v$8&&(null!=(r._v$8=n)?l.style.setProperty("background",n):l.style.removeProperty("background")),r},{_v$7:void 0,_v$8:void 0}),l})()}return(()=>{const o=Yd();return o.style.setProperty("flex-shrink","0"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("justify-content","center"),null!=`${r}px`?o.style.setProperty("width",`${r}px`):o.style.removeProperty("width"),null!=`${r}px`?o.style.setProperty("height",`${r}px`):o.style.removeProperty("height"),o.style.setProperty("background","#9e9e9e"),Ae(o,Y(Ts,{get size(){return Math.round(.6*r)}})),A(()=>null!=(e.borderRadius??"50%")?o.style.setProperty("border-radius",e.borderRadius??"50%"):o.style.removeProperty("border-radius")),o})()},Gs=(e,r)=>{if(Array.isArray(r)){const o=r.find(r=>r.name===e);if(o?.toolNode?.name)return o.toolNode.name}return e},Ls=e=>{const[r,o]=b(e.defaultOpen??!1),t=()=>o(!r());return(()=>{const o=jd(),l=o.firstChild,n=l.firstChild,a=n.nextSibling;return o.style.setProperty("border-radius","8px"),o.style.setProperty("margin-bottom","6px"),o.style.setProperty("overflow","hidden"),l.$$click=t,l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("width","100%"),l.style.setProperty("padding","10px 12px"),l.style.setProperty("cursor","pointer"),l.style.setProperty("user-select","none"),l.style.setProperty("gap","8px"),l.style.setProperty("font-size","0.85rem"),l.style.setProperty("font-family","inherit"),l.style.setProperty("color","inherit"),l.style.setProperty("text-align","left"),l.style.setProperty("border","none"),l.style.setProperty("background","transparent"),n.style.setProperty("flex","1"),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("gap","8px"),n.style.setProperty("text-align","left"),Ae(n,()=>e.header),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","center"),a.style.setProperty("flex-shrink","0"),a.style.setProperty("transition","transform 0.2s ease"),a.style.setProperty("opacity","0.5"),Ae(a,Y($s,{})),Ae(o,Y(te,{get when(){return r()},get children(){const r=Yd();return r.style.setProperty("padding","10px 12px"),r.style.setProperty("border-top","1px solid rgba(0,0,0,0.08)"),r.style.setProperty("background","rgba(0,0,0,0.02)"),Ae(r,()=>e.children),r}}),null),A(t=>{const n=`1px solid ${e.borderColor||"rgba(0,0,0,0.1)"}`,i=e.bgColor||"transparent",d=r(),s=r()?"rotate(180deg)":"rotate(0deg)";return n!==t._v$9&&(null!=(t._v$9=n)?o.style.setProperty("border",n):o.style.removeProperty("border")),i!==t._v$0&&(null!=(t._v$0=i)?o.style.setProperty("background",i):o.style.removeProperty("background")),d!==t._v$1&&pe(l,"aria-expanded",t._v$1=d),s!==t._v$10&&(null!=(t._v$10=s)?a.style.setProperty("transform",s):a.style.removeProperty("transform")),t},{_v$9:void 0,_v$0:void 0,_v$1:void 0,_v$10:void 0}),o})()},Cs={"font-family":"'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace","font-size":"0.75rem","line-height":"1.5",padding:"12px","border-radius":"6px",background:"rgba(0,0,0,0.04)","overflow-x":"auto","white-space":"pre-wrap","word-break":"break-word",margin:"0"},Es=e=>(()=>{const r=qd();return A(o=>{const t=Cs,l=fs(JSON.stringify(e.data,null,2));return o._v$11=ye(r,t,o._v$11),l!==o._v$12&&(r.innerHTML=o._v$12=l),o},{_v$11:void 0,_v$12:void 0}),r})(),Bs=e=>{Hn.setOptions({isNoP:!0,sanitize:!0});const r=()=>{if(!e.content)return null;try{return JSON.parse(e.content)}catch{return null}};return Y(te,{get when(){return r()},get fallback(){return Y(te,{get when(){return e.content},get fallback(){return(()=>{const e=rs();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e})()},get children(){const r=es();return r.style.setProperty("word-break","break-word"),r.style.setProperty("font-size","0.85rem"),r.style.setProperty("line-height","1.6"),A(()=>r.innerHTML=Hn.parse(e.content)),r}})},get children(){return Y(Es,{get data(){return r()}})}})},Ns=e=>{const r=e.artifact?.type,o=e.artifact?.data,t={border:"1px solid rgba(0,0,0,0.12)","border-radius":"6px",overflow:"hidden",background:"rgba(0,0,0,0.02)"};if("png"===r||"jpeg"===r||"jpg"===r){const r=((e,r,o,t)=>{if(e.startsWith("FILE-STORAGE::")&&r)return`${r}/api/v1/get-upload-file?chatflowId=${o}&chatId=${t}&fileName=${e.replace("FILE-STORAGE::","")}`;return e})(o,e.apiHost,e.chatflowid,e.chatId);return(()=>{const o=os(),l=o.firstChild;return pe(l,"src",r),l.style.setProperty("max-height","400px"),l.style.setProperty("max-width","100%"),l.style.setProperty("object-fit","contain"),l.style.setProperty("display","block"),A(r=>{const n={...t,display:"flex","justify-content":"center"},a=`artifact-${e.index}`;return r._v$13=ye(o,n,r._v$13),a!==r._v$14&&pe(l,"alt",r._v$14=a),r},{_v$13:void 0,_v$14:void 0}),o})()}return"html"===r?(()=>{const e=Yd();return A(r=>{const l={...t,padding:"8px 12px","font-size":"0.85rem"},n=Bi.sanitize(o);return r._v$15=ye(e,l,r._v$15),n!==r._v$16&&(e.innerHTML=r._v$16=n),r},{_v$15:void 0,_v$16:void 0}),e})():(()=>{const e=Yd();return Ae(e,Y(Bs,{content:o})),A(r=>ye(e,{...t,padding:"8px 12px"},r)),e})()},Os=e=>{const r=async()=>{if(e.apiHost)try{const r=await fetch(`${e.apiHost}/api/v1/openai-assistants-file/download`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileName:e.annotation.fileName,chatflowId:e.chatflowid,chatId:e.chatId})}),o=await r.blob(),t=window.URL.createObjectURL(o),l=document.createElement("a");l.href=t,l.download=e.annotation.fileName,document.body.appendChild(l),l.click(),l.remove(),window.URL.revokeObjectURL(t)}catch(e){console.error("Download failed:",e)}};return(()=>{const o=ts(),t=o.firstChild;return o.$$click=r,o.style.setProperty("display","inline-flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","6px"),o.style.setProperty("padding","4px 12px"),o.style.setProperty("border","1px solid rgba(0,0,0,0.2)"),o.style.setProperty("border-radius","6px"),o.style.setProperty("background","transparent"),o.style.setProperty("cursor","pointer"),o.style.setProperty("font-size","0.8rem"),o.style.setProperty("color","inherit"),Ae(t,()=>e.annotation.fileName),Ae(o,Y(_s,{}),null),A(()=>pe(o,"title",`Download ${e.annotation.fileName}`)),o})()},Is=e=>{const[r,o]=b("rendered"),[t,l]=b(null),n=()=>e.node?.data?Xd(e.node.data):{},a=()=>(e=>{const r=e?.output;if(!r)return null;const o={};if(r.timeMetadata?.delta&&(o.time=`${(r.timeMetadata.delta/1e3).toFixed(2)} seconds`),r.usageMetadata?.total_tokens&&(o.tokens=`${r.usageMetadata.total_tokens} tokens`),null!=r.usageMetadata?.total_cost&&Number(r.usageMetadata.total_cost)>=0){const e=Number(r.usageMetadata.total_cost);o.cost=e>=.01?`$${e.toFixed(2)}`:`$${e.toFixed(6)}`}return Object.keys(o).length>0?o:null})(n()),i=(e,r)=>({display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`}),d={"margin-bottom":"16px"},s={"font-weight":"700","font-size":"0.9rem","margin-bottom":"8px"},m={border:"1px solid rgba(0,0,0,0.1)","border-radius":"10px",padding:"14px 16px",background:"rgba(0,0,0,0.015)"},g=()=>{const r=n();return r?(()=>{const o=cs(),t=o.firstChild,n=t.firstChild,a=n.nextSibling,g=t.nextSibling,c=g.firstChild,u=c.nextSibling;return Ae(o,Y(te,{get when(){return r.output?.availableTools?.length},get children(){const o=ss(),t=o.firstChild,l=t.nextSibling;return Ae(l,Y(oe,{get each(){return r.output.availableTools},children:o=>{const t=(l=o.name,n=r.output?.usedTools,Array.isArray(n)&&n.some(e=>e.tool===l));var l,n;const a=o.toolNode?.name||o.name;return Y(Ls,{borderColor:t?"#4CAF50":void 0,bgColor:t?"rgba(76,175,80,0.05)":void 0,get header(){return[Y(ws,{name:a,get apiHost(){return e.apiHost},size:22}),(()=>{const e=ls();return Ae(e,()=>o.toolNode?.label||o.name),e})(),Y(te,{when:t,get children(){const e=us();return A(r=>ye(e,i("#E8F5E9","#2E7D32"),r)),e}})]},get children(){return Y(Es,{data:o})}})}})),A(e=>{const r=d,n=s,a=m;return e._v$20=ye(o,r,e._v$20),e._v$21=ye(t,n,e._v$21),e._v$22=ye(l,a,e._v$22),e},{_v$20:void 0,_v$21:void 0,_v$22:void 0}),o}}),t),Ae(a,Y(te,{get when(){return r.input?.messages&&Array.isArray(r.input.messages)&&r.input.messages.length>0},get fallback(){return Y(te,{get when(){return r.input?.form||r.input?.http||r.input?.conditions},get fallback(){return Y(te,{get when(){return r.input?.code},get fallback(){return Y(te,{get when(){return r.input},get fallback(){return(()=>{const e=rs();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e})()},get children(){return Y(te,{get when(){return r.input?.question},get fallback(){return Y(Es,{get data(){return r.input}})},get children(){return Y(Bs,{get content(){return r.input.question}})}})}})},get children(){const e=xs();return Ae(e,()=>r.input.code),A(r=>ye(e,Cs,r)),e}})},get children(){return Y(Es,{get data(){return r.input.form||r.input.http||r.input.conditions}})}})},get children(){const o=Yd();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","4px"),Ae(o,Y(oe,{get each(){return r.input.messages},children:o=>((r,o)=>{const t=r.role||"unknown",n=(e=>{switch(e?.toLowerCase()){case"assistant":case"ai":return{background:"#E8F5E9",color:"#2E7D32"};case"system":return{background:"#FFF3E0",color:"#E65100"};case"developer":case"user":case"human":return{background:"#E3F2FD",color:"#1565C0"};case"tool":case"function":return{background:"#F3E5F5",color:"#7B1FA2"};default:return{background:"#F5F5F5",color:"#616161"}}})(t),a=(e,r,o,t)=>(()=>{const l=ls();return Ae(l,o),A(o=>ye(l,{display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`,...t},o)),l})();return(()=>{const i=Yd();return i.style.setProperty("margin-bottom","8px"),i.style.setProperty("padding","8px"),i.style.setProperty("border-radius","6px"),i.style.setProperty("background","rgba(0,0,0,0.02)"),Ae(i,()=>a(n.background,n.color,t),null),Ae(i,Y(te,{get when(){return r.name},get children(){return a(n.background,n.color,r.name,{"margin-left":"4px"})}}),null),Ae(i,Y(te,{get when(){return r.tool_calls&&Array.isArray(r.tool_calls)&&r.tool_calls.length>0},get children(){return Y(oe,{get each(){return r.tool_calls},children:e=>Y(Ls,{borderColor:"#FFC107",bgColor:"rgba(255,193,7,0.05)",get header(){return[Y(Ms,{}),(()=>{const r=ls();return Ae(r,()=>e.function?.name||e.name||"Tool Call"),r})(),M(()=>a("#FFF3E0","#E65100","Called"))]},get children(){return Y(Es,{data:e})}})})}}),null),Ae(i,Y(te,{get when(){return"tool"===t&&r.name},get children(){const e=ns(),o=e.firstChild;return e.style.setProperty("display","flex"),e.style.setProperty("align-items","center"),e.style.setProperty("gap","8px"),e.style.setProperty("margin-top","4px"),e.style.setProperty("flex-wrap","wrap"),Ae(e,Y(Ms,{}),o),o.style.setProperty("font-size","0.85rem"),Ae(o,()=>r.name),Ae(e,Y(te,{get when(){return r.tool_call_id},get children(){return a("#F5F5F5","#616161",r.tool_call_id)}}),null),e}}),null),Ae(i,Y(te,{get when(){return r.additional_kwargs?.usedTools?.length},get children(){const t=Yd();return t.style.setProperty("margin-top","8px"),t.style.setProperty("display","flex"),t.style.setProperty("gap","4px"),t.style.setProperty("flex-wrap","wrap"),Ae(t,Y(oe,{get each(){return r.additional_kwargs.usedTools},children:r=>Y(te,{when:r,get children(){const t=as(),n=t.firstChild;return t.$$click=()=>l(r),t.style.setProperty("display","inline-flex"),t.style.setProperty("align-items","center"),t.style.setProperty("gap","4px"),t.style.setProperty("padding","3px 10px"),t.style.setProperty("border-radius","12px"),t.style.setProperty("font-size","0.75rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("cursor","pointer"),t.style.setProperty("transition","filter 0.15s ease"),Ae(t,Y(ws,{get name(){return Gs(r.tool,o?.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),n),Ae(t,()=>r.tool,null),A(e=>{const o=r.error?"#FFEBEE":"#F3E5F5",l=r.error?"#C62828":"#7B1FA2",n="1px solid "+(r.error?"#C6282833":"#7B1FA233");return o!==e._v$17&&(null!=(e._v$17=o)?t.style.setProperty("background",o):t.style.removeProperty("background")),l!==e._v$18&&(null!=(e._v$18=l)?t.style.setProperty("color",l):t.style.removeProperty("color")),n!==e._v$19&&(null!=(e._v$19=n)?t.style.setProperty("border",n):t.style.removeProperty("border")),e},{_v$17:void 0,_v$18:void 0,_v$19:void 0}),t}})})),t}}),null),Ae(i,Y(te,{get when(){return r.additional_kwargs?.artifacts?.length},get children(){const o=Yd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),Ae(o,Y(oe,{get each(){return r.additional_kwargs.artifacts},children:(r,o)=>Y(Ns,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),Ae(i,Y(te,{get when(){return"user"===t&&Array.isArray(r.content)&&r.content.length>0},get children(){const o=Yd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),Ae(o,Y(oe,{get each(){return r.content},children:(r,o)=>{const t="stored-file"===r.type&&e.apiHost?`${e.apiHost}/api/v1/get-upload-file?chatflowId=${e.chatflowid}&chatId=${e.chatId}&fileName=${r.name}`:r.name;return(()=>{const e=os(),r=e.firstChild;return e.style.setProperty("border","1px solid rgba(0,0,0,0.12)"),e.style.setProperty("border-radius","6px"),e.style.setProperty("overflow","hidden"),e.style.setProperty("display","flex"),e.style.setProperty("justify-content","center"),e.style.setProperty("background","rgba(0,0,0,0.02)"),pe(r,"src",t),r.style.setProperty("max-height","400px"),r.style.setProperty("max-width","100%"),r.style.setProperty("object-fit","contain"),r.style.setProperty("display","block"),A(()=>pe(r,"alt",`file-upload-${o()}`)),e})()}})),o}}),null),Ae(i,Y(te,{get when(){return"string"==typeof r.content&&r.content},get children(){const e=Yd();return e.style.setProperty("margin-top","4px"),Ae(e,Y(Bs,{get content(){return r.content}})),e}}),null),Ae(i,Y(te,{get when(){return!r.content},get children(){const e=rs();return e.style.setProperty("margin-top","4px"),e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}}),null),Ae(i,Y(te,{get when(){return r.additional_kwargs?.fileAnnotations?.length},get children(){const o=Yd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),Ae(o,Y(oe,{get each(){return r.additional_kwargs.fileAnnotations},children:r=>Y(Os,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),i})()})(o,r)})),o}})),Ae(u,Y(te,{get when(){return!(r.output?.form||r.output?.http||r.output?.conditions)},get fallback(){return Y(te,{get when(){return r.output?.conditions},get fallback(){return Y(Es,{get data(){return r.output?.form||r.output?.http}})},get children(){return Y(oe,{each:r.output.conditions.filter(e=>e.isFulfilled),children:(e,r)=>(()=>{const o=is(),t=o.firstChild,l=t.firstChild,n=l.nextSibling;return o.style.setProperty("border","1px solid #4CAF50"),o.style.setProperty("border-radius","6px"),o.style.setProperty("padding","8px 12px"),o.style.setProperty("margin-bottom","6px"),t.style.setProperty("display","flex"),t.style.setProperty("justify-content","space-between"),t.style.setProperty("align-items","center"),l.style.setProperty("font-size","0.85rem"),Ae(l,(()=>{const o=M(()=>!("string"!==e.type||"equal"!==e.operation||e.value1||e.value2));return()=>o()?"Else condition fulfilled":`Condition ${r()}`})()),Ae(o,Y(te,{get when(){return!("string"===e.type&&"equal"===e.operation&&!e.value1&&!e.value2)},get children(){const r=Yd();return r.style.setProperty("margin-top","4px"),Ae(r,Y(Es,{data:e})),r}}),null),A(e=>ye(n,i("#E8F5E9","#2E7D32"),e)),o})()})}})},get children(){return[Y(te,{get when(){return r.output?.usedTools?.length},get children(){const o=Yd();return o.style.setProperty("display","flex"),o.style.setProperty("gap","4px"),o.style.setProperty("flex-wrap","wrap"),o.style.setProperty("margin-bottom","8px"),Ae(o,Y(oe,{get each(){return r.output.usedTools},children:o=>Y(te,{when:o,get children(){const t=as(),n=t.firstChild;return t.$$click=()=>l(o),Ae(t,Y(ws,{get name(){return Gs(o.tool,r.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),n),Ae(t,()=>o.tool,null),A(e=>ye(t,{...i(o.error?"#FFEBEE":"#F3E5F5",o.error?"#C62828":"#7B1FA2"),cursor:"pointer",transition:"filter 0.15s ease"},e)),t}})})),o}}),Y(te,{get when(){return r.output?.artifacts?.length},get children(){const o=Yd();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),o.style.setProperty("margin-bottom","8px"),Ae(o,Y(oe,{get each(){return r.output.artifacts},children:(r,o)=>Y(Ns,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),Y(te,{get when(){return r.output?.content},get fallback(){return Y(te,{get when(){return r.output},get children(){const e=rs();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}})},get children(){return Y(Bs,{get content(){return r.output.content}})}}),Y(te,{get when(){return r.output?.fileAnnotations?.length},get children(){const o=Yd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),Ae(o,Y(oe,{get each(){return r.output.fileAnnotations},children:r=>Y(Os,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}})]}})),Ae(o,Y(te,{get when(){return r.error},get children(){const e=ms(),o=e.firstChild,t=o.nextSibling,l=t.firstChild;return l.style.setProperty("padding","8px 12px"),l.style.setProperty("border-radius","6px"),l.style.setProperty("border","1px solid #F44336"),l.style.setProperty("background","rgba(244,67,54,0.08)"),l.style.setProperty("color","#C62828"),l.style.setProperty("font-size","0.85rem"),l.style.setProperty("white-space","pre-wrap"),l.style.setProperty("word-break","break-word"),Ae(l,(()=>{const e=M(()=>"object"==typeof r.error);return()=>e()?JSON.stringify(r.error,null,2):r.error})()),A(r=>{const l=d,n={...s,color:"#C62828"},a={...m,"border-color":"rgba(244,67,54,0.4)",background:"rgba(244,67,54,0.04)"};return r._v$23=ye(e,l,r._v$23),r._v$24=ye(o,n,r._v$24),r._v$25=ye(t,a,r._v$25),r},{_v$23:void 0,_v$24:void 0,_v$25:void 0}),e}}),null),Ae(o,Y(te,{get when(){return M(()=>!!r.state)()&&Object.keys(r.state).length>0},get children(){const e=gs(),o=e.firstChild,t=o.nextSibling;return Ae(t,Y(Es,{get data(){return r.state}})),A(r=>{const l=d,n=s,a=m;return r._v$26=ye(e,l,r._v$26),r._v$27=ye(o,n,r._v$27),r._v$28=ye(t,a,r._v$28),r},{_v$26:void 0,_v$27:void 0,_v$28:void 0}),e}}),null),A(e=>{const r=d,o=s,l=m,i=d,x=s,p=m;return e._v$29=ye(t,r,e._v$29),e._v$30=ye(n,o,e._v$30),e._v$31=ye(a,l,e._v$31),e._v$32=ye(g,i,e._v$32),e._v$33=ye(c,x,e._v$33),e._v$34=ye(u,p,e._v$34),e},{_v$29:void 0,_v$30:void 0,_v$31:void 0,_v$32:void 0,_v$33:void 0,_v$34:void 0}),o})():(()=>{const e=ds();return e.style.setProperty("padding","20px"),e.style.setProperty("text-align","center"),e.style.setProperty("opacity","0.5"),e})()};return[(()=>{const r=ps(),o=r.firstChild,t=o.firstChild,l=o.nextSibling;return r.style.setProperty("display","flex"),r.style.setProperty("flex-direction","column"),r.style.setProperty("gap","16px"),r.style.setProperty("padding","16px 20px"),r.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","10px"),o.style.setProperty("min-width","0"),Ae(o,Y(ws,{get name(){return e.node.name},get apiHost(){return e.apiHost},size:36}),t),t.style.setProperty("font-weight","600"),t.style.setProperty("font-size","1.05rem"),Ae(t,()=>e.node.label),l.style.setProperty("display","flex"),l.style.setProperty("flex-wrap","wrap"),l.style.setProperty("align-items","center"),l.style.setProperty("gap","8px"),l.style.setProperty("flex","1"),Ae(l,Y(te,{get when(){return a()},children:e=>[Y(te,{get when(){return e().time},get children(){const r=as(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#4caf50"),r.style.setProperty("color","#fff"),Ae(r,Y(bs,{}),o),Ae(r,()=>e().time,null),r}}),Y(te,{get when(){return e().tokens},get children(){const r=as(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#7c4dff"),r.style.setProperty("color","#fff"),Ae(r,Y(Ps,{}),o),Ae(r,()=>e().tokens,null),r}}),Y(te,{get when(){return e().cost},get children(){const r=as(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#ff9800"),r.style.setProperty("color","#fff"),Ae(r,Y(As,{}),o),Ae(r,()=>e().cost,null),r}})]})),r})(),(()=>{const e=hs(),t=e.firstChild,l=t.nextSibling;return e.style.setProperty("display","flex"),e.style.setProperty("gap","0"),e.style.setProperty("padding","0 20px"),e.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),t.$$click=()=>o("rendered"),t.style.setProperty("padding","10px 16px"),t.style.setProperty("border","none"),t.style.setProperty("background","transparent"),t.style.setProperty("cursor","pointer"),t.style.setProperty("font-size","0.875rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("font-family","inherit"),t.style.setProperty("margin-bottom","-1px"),l.$$click=()=>o("raw"),l.style.setProperty("padding","10px 16px"),l.style.setProperty("border","none"),l.style.setProperty("background","transparent"),l.style.setProperty("cursor","pointer"),l.style.setProperty("font-size","0.875rem"),l.style.setProperty("font-weight","500"),l.style.setProperty("font-family","inherit"),l.style.setProperty("margin-bottom","-1px"),A(e=>{const o="rendered"===r()?"#1976d2":"inherit",n="rendered"===r()?1:.6,a="rendered"===r()?"2px solid #1976d2":"2px solid transparent",i="raw"===r()?"#1976d2":"inherit",d="raw"===r()?1:.6,s="raw"===r()?"2px solid #1976d2":"2px solid transparent";return o!==e._v$35&&(null!=(e._v$35=o)?t.style.setProperty("color",o):t.style.removeProperty("color")),n!==e._v$36&&(null!=(e._v$36=n)?t.style.setProperty("opacity",n):t.style.removeProperty("opacity")),a!==e._v$37&&(null!=(e._v$37=a)?t.style.setProperty("border-bottom",a):t.style.removeProperty("border-bottom")),i!==e._v$38&&(null!=(e._v$38=i)?l.style.setProperty("color",i):l.style.removeProperty("color")),d!==e._v$39&&(null!=(e._v$39=d)?l.style.setProperty("opacity",d):l.style.removeProperty("opacity")),s!==e._v$40&&(null!=(e._v$40=s)?l.style.setProperty("border-bottom",s):l.style.removeProperty("border-bottom")),e},{_v$35:void 0,_v$36:void 0,_v$37:void 0,_v$38:void 0,_v$39:void 0,_v$40:void 0}),e})(),(()=>{const e=Yd();return e.style.setProperty("padding","16px 20px"),e.style.setProperty("overflow-y","auto"),e.style.setProperty("flex","1"),Ae(e,Y(te,{get when(){return"rendered"===r()},get fallback(){return(()=>{const e=qd();return A(r=>{const o=Cs,t=fs(JSON.stringify(n(),null,2));return r._v$43=ye(e,o,r._v$43),t!==r._v$44&&(e.innerHTML=r._v$44=t),r},{_v$43:void 0,_v$44:void 0}),e})()},get children(){return g()}})),e})(),Y(te,{get when(){return t()},get children(){return[(()=>{const r=vs(),o=r.firstChild,a=o.firstChild,i=a.firstChild,d=i.firstChild,s=i.nextSibling,m=a.nextSibling;return r.$$click=()=>l(null),r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1004"),r.style.setProperty("display","flex"),r.style.setProperty("align-items","center"),r.style.setProperty("justify-content","center"),o.$$click=e=>e.stopPropagation(),o.style.setProperty("position","relative"),o.style.setProperty("width","100%"),o.style.setProperty("max-width","560px"),o.style.setProperty("margin","24px 16px"),o.style.setProperty("border-radius","8px"),o.style.setProperty("box-shadow","0 20px 40px -4px rgba(0,0,0,0.2), 0 8px 16px -4px rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("max-height","calc(100% - 80px)"),o.style.setProperty("overflow","hidden"),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","space-between"),a.style.setProperty("padding","14px 20px"),a.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),i.style.setProperty("display","flex"),i.style.setProperty("align-items","center"),i.style.setProperty("gap","8px"),Ae(i,Y(ws,{get name(){return Gs(t()?.tool||"",n()?.output?.availableTools)},get apiHost(){return e.apiHost},size:24}),d),d.style.setProperty("font-weight","600"),d.style.setProperty("font-size","0.95rem"),Ae(d,()=>t()?.tool||"Tool Detail"),Ae(i,Y(te,{get when(){return t()?.error},get children(){const e=Ss();return e.style.setProperty("display","inline-flex"),e.style.setProperty("align-items","center"),e.style.setProperty("padding","2px 8px"),e.style.setProperty("border-radius","10px"),e.style.setProperty("font-size","0.7rem"),e.style.setProperty("font-weight","500"),e.style.setProperty("background","#FFEBEE"),e.style.setProperty("color","#C62828"),e.style.setProperty("border","1px solid #C6282833"),e}}),null),s.$$click=()=>l(null),s.style.setProperty("border","none"),s.style.setProperty("background","transparent"),s.style.setProperty("cursor","pointer"),s.style.setProperty("padding","4px"),s.style.setProperty("border-radius","4px"),s.style.setProperty("display","flex"),s.style.setProperty("align-items","center"),s.style.setProperty("color","inherit"),s.style.setProperty("opacity","0.7"),Ae(s,Y(ys,{})),m.style.setProperty("padding","16px 20px"),m.style.setProperty("overflow-y","auto"),Ae(m,Y(Es,{get data(){return t()}})),A(r=>{const t=e.backgroundColor??"#ffffff",l=e.textColor??"#303235";return t!==r._v$41&&(null!=(r._v$41=t)?o.style.setProperty("background-color",t):o.style.removeProperty("background-color")),l!==r._v$42&&(null!=(r._v$42=l)?o.style.setProperty("color",l):o.style.removeProperty("color")),r},{_v$41:void 0,_v$42:void 0}),r})(),(()=>{const e=Yd();return e.$$click=e=>{e.stopPropagation(),l(null)},e.style.setProperty("position","fixed"),e.style.setProperty("inset","0"),e.style.setProperty("z-index","1003"),e.style.setProperty("background-color","rgba(0,0,0,0.35)"),e})()]}})]};xe(["click"]);const ks=ue("
'),$g=ue("
");const bg=e=>{let r;const[o]=re(e,["onOpen","onClose","isOpen","value"]);T(()=>{var o;r&&(r.innerHTML=("string"!=typeof(o=JSON.stringify(e?.value,void 0,2))&&(o=JSON.stringify(o,void 0,2)),(o=o.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""})))});const[t,l]=b(o.isOpen??!1);P(()=>{Re(e.isOpen)||e.isOpen===t()||i()});const n=e=>{e.stopPropagation()},a=()=>{l(!1),o.onClose?.(),document.body.style.overflow="auto"},i=()=>{t()?a():(l(!0),o.onOpen?.(),document.body.style.overflow="hidden")};return Y(te,{get when(){return t()},get children(){return[(()=>{const e=fg();return Ae(e,Fe),e})(),(()=>{const o=yg(),t=o.firstChild,l=t.nextSibling.nextSibling.firstChild.firstChild;return o.style.setProperty("z-index","1100"),o.addEventListener("click",a),Ae(t,Fe),l.style.setProperty("background-color","transparent"),l.style.setProperty("margin-left","20px"),l.style.setProperty("margin-right","20px"),l.addEventListener("click",n),l.addEventListener("pointerdown",n),Ae(l,(()=>{const o=M(()=>!!e.value);return()=>o()&&(()=>{const e=$g(),o=e.firstChild;e.style.setProperty("background","white"),e.style.setProperty("margin","auto"),e.style.setProperty("padding","7px");return"function"==typeof r?be(r,o):r=o,e})()})()),o})()]}})},Ag=ue('
');function Ss(e){return e?(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""}):""}const vs=()=>Rd(),fs=()=>Xd(),ys=()=>Hd(),$s=()=>Vd(),bs=()=>Ud(),As=()=>Wd(),Ps=()=>Kd(),Ms=e=>(()=>{const r=zd();return A(o=>{const t=e.size,l=e.size;return t!==o._v$&&pe(r,"width",o._v$=t),l!==o._v$2&&pe(r,"height",o._v$2=l),o},{_v$:void 0,_v$2:void 0}),r})(),_s=e=>{const r=e.size??24,o=Dd(e.name);if(o)return(()=>{const t=Zd();return t.style.setProperty("flex-shrink","0"),t.style.setProperty("display","flex"),t.style.setProperty("align-items","center"),t.style.setProperty("justify-content","center"),null!=`${r}px`?t.style.setProperty("width",`${r}px`):t.style.removeProperty("width"),null!=`${r}px`?t.style.setProperty("height",`${r}px`):t.style.removeProperty("height"),Ae(t,()=>o.icon({size:Math.round(.55*r),color:"white"})),A(r=>{const l=e.borderRadius??"50%",n=e.bgColor??o.color;return l!==r._v$3&&(null!=(r._v$3=l)?t.style.setProperty("border-radius",l):t.style.removeProperty("border-radius")),n!==r._v$4&&(null!=(r._v$4=n)?t.style.setProperty("background",n):t.style.removeProperty("background")),r},{_v$3:void 0,_v$4:void 0}),t})();if(e.apiHost){const[o,t]=b(!1);return(()=>{const l=Zd();return l.style.setProperty("flex-shrink","0"),l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("justify-content","center"),null!=`${r}px`?l.style.setProperty("width",`${r}px`):l.style.removeProperty("width"),null!=`${r}px`?l.style.setProperty("height",`${r}px`):l.style.removeProperty("height"),l.style.setProperty("overflow","hidden"),Ae(l,Y(te,{get when(){return!o()},get fallback(){return Y(Ms,{get size(){return Math.round(.6*r)}})},get children(){const r=Qd();return r.addEventListener("error",()=>t(!0)),r.style.setProperty("width","100%"),r.style.setProperty("height","100%"),r.style.setProperty("padding","3px"),r.style.setProperty("object-fit","contain"),A(o=>{const t=`${e.apiHost}/api/v1/node-icon/${e.name}`,l=e.name;return t!==o._v$5&&pe(r,"src",o._v$5=t),l!==o._v$6&&pe(r,"alt",o._v$6=l),o},{_v$5:void 0,_v$6:void 0}),r}})),A(r=>{const t=e.borderRadius??"50%",n=e.bgColor??(o()?"#9e9e9e":"#f5f5f5");return t!==r._v$7&&(null!=(r._v$7=t)?l.style.setProperty("border-radius",t):l.style.removeProperty("border-radius")),n!==r._v$8&&(null!=(r._v$8=n)?l.style.setProperty("background",n):l.style.removeProperty("background")),r},{_v$7:void 0,_v$8:void 0}),l})()}return(()=>{const o=Zd();return o.style.setProperty("flex-shrink","0"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("justify-content","center"),null!=`${r}px`?o.style.setProperty("width",`${r}px`):o.style.removeProperty("width"),null!=`${r}px`?o.style.setProperty("height",`${r}px`):o.style.removeProperty("height"),o.style.setProperty("background","#9e9e9e"),Ae(o,Y(Ms,{get size(){return Math.round(.6*r)}})),A(()=>null!=(e.borderRadius??"50%")?o.style.setProperty("border-radius",e.borderRadius??"50%"):o.style.removeProperty("border-radius")),o})()},Ts=(e,r)=>{if(Array.isArray(r)){const o=r.find(r=>r.name===e);if(o?.toolNode?.name)return o.toolNode.name}return e},ws=e=>{const[r,o]=b(e.defaultOpen??!1),t=()=>o(!r());return(()=>{const o=Yd(),l=o.firstChild,n=l.firstChild,a=n.nextSibling;return o.style.setProperty("border-radius","8px"),o.style.setProperty("margin-bottom","6px"),o.style.setProperty("overflow","hidden"),l.$$click=t,l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("width","100%"),l.style.setProperty("padding","10px 12px"),l.style.setProperty("cursor","pointer"),l.style.setProperty("user-select","none"),l.style.setProperty("gap","8px"),l.style.setProperty("font-size","0.85rem"),l.style.setProperty("font-family","inherit"),l.style.setProperty("color","inherit"),l.style.setProperty("text-align","left"),l.style.setProperty("border","none"),l.style.setProperty("background","transparent"),n.style.setProperty("flex","1"),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("gap","8px"),n.style.setProperty("text-align","left"),Ae(n,()=>e.header),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","center"),a.style.setProperty("flex-shrink","0"),a.style.setProperty("transition","transform 0.2s ease"),a.style.setProperty("opacity","0.5"),Ae(a,Y(fs,{})),Ae(o,Y(te,{get when(){return r()},get children(){const r=Zd();return r.style.setProperty("padding","10px 12px"),r.style.setProperty("border-top","1px solid rgba(0,0,0,0.08)"),r.style.setProperty("background","rgba(0,0,0,0.02)"),Ae(r,()=>e.children),r}}),null),A(t=>{const n=`1px solid ${e.borderColor||"rgba(0,0,0,0.1)"}`,i=e.bgColor||"transparent",d=r(),s=r()?"rotate(180deg)":"rotate(0deg)";return n!==t._v$9&&(null!=(t._v$9=n)?o.style.setProperty("border",n):o.style.removeProperty("border")),i!==t._v$0&&(null!=(t._v$0=i)?o.style.setProperty("background",i):o.style.removeProperty("background")),d!==t._v$1&&pe(l,"aria-expanded",t._v$1=d),s!==t._v$10&&(null!=(t._v$10=s)?a.style.setProperty("transform",s):a.style.removeProperty("transform")),t},{_v$9:void 0,_v$0:void 0,_v$1:void 0,_v$10:void 0}),o})()},Gs={"font-family":"'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace","font-size":"0.75rem","line-height":"1.5",padding:"12px","border-radius":"6px",background:"rgba(0,0,0,0.04)","overflow-x":"auto","white-space":"pre-wrap","word-break":"break-word",margin:"0"},Ls=e=>(()=>{const r=Jd();return A(o=>{const t=Gs,l=Ss(JSON.stringify(e.data,null,2));return o._v$11=ye(r,t,o._v$11),l!==o._v$12&&(r.innerHTML=o._v$12=l),o},{_v$11:void 0,_v$12:void 0}),r})(),Cs=e=>{Hn.setOptions({isNoP:!0,sanitize:!0});const r=()=>{if(!e.content)return null;try{return JSON.parse(e.content)}catch{return null}};return Y(te,{get when(){return r()},get fallback(){return Y(te,{get when(){return e.content},get fallback(){return(()=>{const e=qd();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e})()},get children(){const r=jd();return r.style.setProperty("word-break","break-word"),r.style.setProperty("font-size","0.85rem"),r.style.setProperty("line-height","1.6"),A(()=>r.innerHTML=Hn.parse(e.content)),r}})},get children(){return Y(Ls,{get data(){return r()}})}})},Es=e=>{const r=e.artifact?.type,o=e.artifact?.data,t={border:"1px solid rgba(0,0,0,0.12)","border-radius":"6px",overflow:"hidden",background:"rgba(0,0,0,0.02)"};if("png"===r||"jpeg"===r||"jpg"===r){const r=((e,r,o,t)=>{if(e.startsWith("FILE-STORAGE::")&&r)return`${r}/api/v1/get-upload-file?chatflowId=${o}&chatId=${t}&fileName=${e.replace("FILE-STORAGE::","")}`;return e})(o,e.apiHost,e.chatflowid,e.chatId);return(()=>{const o=es(),l=o.firstChild;return pe(l,"src",r),l.style.setProperty("max-height","400px"),l.style.setProperty("max-width","100%"),l.style.setProperty("object-fit","contain"),l.style.setProperty("display","block"),A(r=>{const n={...t,display:"flex","justify-content":"center"},a=`artifact-${e.index}`;return r._v$13=ye(o,n,r._v$13),a!==r._v$14&&pe(l,"alt",r._v$14=a),r},{_v$13:void 0,_v$14:void 0}),o})()}return"html"===r?(()=>{const e=Zd();return A(r=>{const l={...t,padding:"8px 12px","font-size":"0.85rem"},n=Ci.sanitize(o);return r._v$15=ye(e,l,r._v$15),n!==r._v$16&&(e.innerHTML=r._v$16=n),r},{_v$15:void 0,_v$16:void 0}),e})():(()=>{const e=Zd();return Ae(e,Y(Cs,{content:o})),A(r=>ye(e,{...t,padding:"8px 12px"},r)),e})()},Bs=e=>{const r=async()=>{if(e.apiHost)try{const r=await fetch(`${e.apiHost}/api/v1/openai-assistants-file/download`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileName:e.annotation.fileName,chatflowId:e.chatflowid,chatId:e.chatId})}),o=await r.blob(),t=window.URL.createObjectURL(o),l=document.createElement("a");l.href=t,l.download=e.annotation.fileName,document.body.appendChild(l),l.click(),l.remove(),window.URL.revokeObjectURL(t)}catch(e){console.error("Download failed:",e)}};return(()=>{const o=rs(),t=o.firstChild;return o.$$click=r,o.style.setProperty("display","inline-flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","6px"),o.style.setProperty("padding","4px 12px"),o.style.setProperty("border","1px solid rgba(0,0,0,0.2)"),o.style.setProperty("border-radius","6px"),o.style.setProperty("background","transparent"),o.style.setProperty("cursor","pointer"),o.style.setProperty("font-size","0.8rem"),o.style.setProperty("color","inherit"),Ae(t,()=>e.annotation.fileName),Ae(o,Y(Ps,{}),null),A(()=>pe(o,"title",`Download ${e.annotation.fileName}`)),o})()},Ns=e=>{const[r,o]=b("rendered"),[t,l]=b(null),n=()=>e.node?.data?Fd(e.node.data):{},a=()=>(e=>{const r=e?.output;if(!r)return null;const o={};if(r.timeMetadata?.delta&&(o.time=`${(r.timeMetadata.delta/1e3).toFixed(2)} seconds`),r.usageMetadata?.total_tokens&&(o.tokens=`${r.usageMetadata.total_tokens} tokens`),null!=r.usageMetadata?.total_cost&&Number(r.usageMetadata.total_cost)>=0){const e=Number(r.usageMetadata.total_cost);o.cost=e>=.01?`$${e.toFixed(2)}`:`$${e.toFixed(6)}`}return Object.keys(o).length>0?o:null})(n()),i=(e,r)=>({display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`}),d={"margin-bottom":"16px"},s={"font-weight":"700","font-size":"0.9rem","margin-bottom":"8px"},m={border:"1px solid rgba(0,0,0,0.1)","border-radius":"10px",padding:"14px 16px",background:"rgba(0,0,0,0.015)"},g=()=>{const r=n();return r?(()=>{const o=ms(),t=o.firstChild,n=t.firstChild,a=n.nextSibling,g=t.nextSibling,c=g.firstChild,u=c.nextSibling;return Ae(o,Y(te,{get when(){return r.output?.availableTools?.length},get children(){const o=is(),t=o.firstChild,l=t.nextSibling;return Ae(l,Y(oe,{get each(){return r.output.availableTools},children:o=>{const t=(l=o.name,n=r.output?.usedTools,Array.isArray(n)&&n.some(e=>e.tool===l));var l,n;const a=o.toolNode?.name||o.name;return Y(ws,{borderColor:t?"#4CAF50":void 0,bgColor:t?"rgba(76,175,80,0.05)":void 0,get header(){return[Y(_s,{name:a,get apiHost(){return e.apiHost},size:22}),(()=>{const e=os();return Ae(e,()=>o.toolNode?.label||o.name),e})(),Y(te,{when:t,get children(){const e=gs();return A(r=>ye(e,i("#E8F5E9","#2E7D32"),r)),e}})]},get children(){return Y(Ls,{data:o})}})}})),A(e=>{const r=d,n=s,a=m;return e._v$20=ye(o,r,e._v$20),e._v$21=ye(t,n,e._v$21),e._v$22=ye(l,a,e._v$22),e},{_v$20:void 0,_v$21:void 0,_v$22:void 0}),o}}),t),Ae(a,Y(te,{get when(){return r.input?.messages&&Array.isArray(r.input.messages)&&r.input.messages.length>0},get fallback(){return Y(te,{get when(){return r.input?.form||r.input?.http||r.input?.conditions},get fallback(){return Y(te,{get when(){return r.input?.code},get fallback(){return Y(te,{get when(){return r.input},get fallback(){return(()=>{const e=qd();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e})()},get children(){return Y(te,{get when(){return r.input?.question},get fallback(){return Y(Ls,{get data(){return r.input}})},get children(){return Y(Cs,{get content(){return r.input.question}})}})}})},get children(){const e=cs();return Ae(e,()=>r.input.code),A(r=>ye(e,Gs,r)),e}})},get children(){return Y(Ls,{get data(){return r.input.form||r.input.http||r.input.conditions}})}})},get children(){const o=Zd();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","4px"),Ae(o,Y(oe,{get each(){return r.input.messages},children:o=>((r,o)=>{const t=r.role||"unknown",n=(e=>{switch(e?.toLowerCase()){case"assistant":case"ai":return{background:"#E8F5E9",color:"#2E7D32"};case"system":return{background:"#FFF3E0",color:"#E65100"};case"developer":case"user":case"human":return{background:"#E3F2FD",color:"#1565C0"};case"tool":case"function":return{background:"#F3E5F5",color:"#7B1FA2"};default:return{background:"#F5F5F5",color:"#616161"}}})(t),a=(e,r,o,t)=>(()=>{const l=os();return Ae(l,o),A(o=>ye(l,{display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`,...t},o)),l})();return(()=>{const i=Zd();return i.style.setProperty("margin-bottom","8px"),i.style.setProperty("padding","8px"),i.style.setProperty("border-radius","6px"),i.style.setProperty("background","rgba(0,0,0,0.02)"),Ae(i,()=>a(n.background,n.color,t),null),Ae(i,Y(te,{get when(){return r.name},get children(){return a(n.background,n.color,r.name,{"margin-left":"4px"})}}),null),Ae(i,Y(te,{get when(){return r.tool_calls&&Array.isArray(r.tool_calls)&&r.tool_calls.length>0},get children(){return Y(oe,{get each(){return r.tool_calls},children:e=>Y(ws,{borderColor:"#FFC107",bgColor:"rgba(255,193,7,0.05)",get header(){return[Y(As,{}),(()=>{const r=os();return Ae(r,()=>e.function?.name||e.name||"Tool Call"),r})(),M(()=>a("#FFF3E0","#E65100","Called"))]},get children(){return Y(Ls,{data:e})}})})}}),null),Ae(i,Y(te,{get when(){return"tool"===t&&r.name},get children(){const e=ts(),o=e.firstChild;return e.style.setProperty("display","flex"),e.style.setProperty("align-items","center"),e.style.setProperty("gap","8px"),e.style.setProperty("margin-top","4px"),e.style.setProperty("flex-wrap","wrap"),Ae(e,Y(As,{}),o),o.style.setProperty("font-size","0.85rem"),Ae(o,()=>r.name),Ae(e,Y(te,{get when(){return r.tool_call_id},get children(){return a("#F5F5F5","#616161",r.tool_call_id)}}),null),e}}),null),Ae(i,Y(te,{get when(){return r.additional_kwargs?.usedTools?.length},get children(){const t=Zd();return t.style.setProperty("margin-top","8px"),t.style.setProperty("display","flex"),t.style.setProperty("gap","4px"),t.style.setProperty("flex-wrap","wrap"),Ae(t,Y(oe,{get each(){return r.additional_kwargs.usedTools},children:r=>Y(te,{when:r,get children(){const t=ls(),n=t.firstChild;return t.$$click=()=>l(r),t.style.setProperty("display","inline-flex"),t.style.setProperty("align-items","center"),t.style.setProperty("gap","4px"),t.style.setProperty("padding","3px 10px"),t.style.setProperty("border-radius","12px"),t.style.setProperty("font-size","0.75rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("cursor","pointer"),t.style.setProperty("transition","filter 0.15s ease"),Ae(t,Y(_s,{get name(){return Ts(r.tool,o?.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),n),Ae(t,()=>r.tool,null),A(e=>{const o=r.error?"#FFEBEE":"#F3E5F5",l=r.error?"#C62828":"#7B1FA2",n="1px solid "+(r.error?"#C6282833":"#7B1FA233");return o!==e._v$17&&(null!=(e._v$17=o)?t.style.setProperty("background",o):t.style.removeProperty("background")),l!==e._v$18&&(null!=(e._v$18=l)?t.style.setProperty("color",l):t.style.removeProperty("color")),n!==e._v$19&&(null!=(e._v$19=n)?t.style.setProperty("border",n):t.style.removeProperty("border")),e},{_v$17:void 0,_v$18:void 0,_v$19:void 0}),t}})})),t}}),null),Ae(i,Y(te,{get when(){return r.additional_kwargs?.artifacts?.length},get children(){const o=Zd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),Ae(o,Y(oe,{get each(){return r.additional_kwargs.artifacts},children:(r,o)=>Y(Es,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),Ae(i,Y(te,{get when(){return"user"===t&&Array.isArray(r.content)&&r.content.length>0},get children(){const o=Zd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),Ae(o,Y(oe,{get each(){return r.content},children:(r,o)=>{const t="stored-file"===r.type&&e.apiHost?`${e.apiHost}/api/v1/get-upload-file?chatflowId=${e.chatflowid}&chatId=${e.chatId}&fileName=${r.name}`:r.name;return(()=>{const e=es(),r=e.firstChild;return e.style.setProperty("border","1px solid rgba(0,0,0,0.12)"),e.style.setProperty("border-radius","6px"),e.style.setProperty("overflow","hidden"),e.style.setProperty("display","flex"),e.style.setProperty("justify-content","center"),e.style.setProperty("background","rgba(0,0,0,0.02)"),pe(r,"src",t),r.style.setProperty("max-height","400px"),r.style.setProperty("max-width","100%"),r.style.setProperty("object-fit","contain"),r.style.setProperty("display","block"),A(()=>pe(r,"alt",`file-upload-${o()}`)),e})()}})),o}}),null),Ae(i,Y(te,{get when(){return"string"==typeof r.content&&r.content},get children(){const e=Zd();return e.style.setProperty("margin-top","4px"),Ae(e,Y(Cs,{get content(){return r.content}})),e}}),null),Ae(i,Y(te,{get when(){return!r.content},get children(){const e=qd();return e.style.setProperty("margin-top","4px"),e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}}),null),Ae(i,Y(te,{get when(){return r.additional_kwargs?.fileAnnotations?.length},get children(){const o=Zd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),Ae(o,Y(oe,{get each(){return r.additional_kwargs.fileAnnotations},children:r=>Y(Bs,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),i})()})(o,r)})),o}})),Ae(u,Y(te,{get when(){return!(r.output?.form||r.output?.http||r.output?.conditions)},get fallback(){return Y(te,{get when(){return r.output?.conditions},get fallback(){return Y(Ls,{get data(){return r.output?.form||r.output?.http}})},get children(){return Y(oe,{each:r.output.conditions.filter(e=>e.isFulfilled),children:(e,r)=>(()=>{const o=ns(),t=o.firstChild,l=t.firstChild,n=l.nextSibling;return o.style.setProperty("border","1px solid #4CAF50"),o.style.setProperty("border-radius","6px"),o.style.setProperty("padding","8px 12px"),o.style.setProperty("margin-bottom","6px"),t.style.setProperty("display","flex"),t.style.setProperty("justify-content","space-between"),t.style.setProperty("align-items","center"),l.style.setProperty("font-size","0.85rem"),Ae(l,(()=>{const o=M(()=>!("string"!==e.type||"equal"!==e.operation||e.value1||e.value2));return()=>o()?"Else condition fulfilled":`Condition ${r()}`})()),Ae(o,Y(te,{get when(){return!("string"===e.type&&"equal"===e.operation&&!e.value1&&!e.value2)},get children(){const r=Zd();return r.style.setProperty("margin-top","4px"),Ae(r,Y(Ls,{data:e})),r}}),null),A(e=>ye(n,i("#E8F5E9","#2E7D32"),e)),o})()})}})},get children(){return[Y(te,{get when(){return r.output?.usedTools?.length},get children(){const o=Zd();return o.style.setProperty("display","flex"),o.style.setProperty("gap","4px"),o.style.setProperty("flex-wrap","wrap"),o.style.setProperty("margin-bottom","8px"),Ae(o,Y(oe,{get each(){return r.output.usedTools},children:o=>Y(te,{when:o,get children(){const t=ls(),n=t.firstChild;return t.$$click=()=>l(o),Ae(t,Y(_s,{get name(){return Ts(o.tool,r.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),n),Ae(t,()=>o.tool,null),A(e=>ye(t,{...i(o.error?"#FFEBEE":"#F3E5F5",o.error?"#C62828":"#7B1FA2"),cursor:"pointer",transition:"filter 0.15s ease"},e)),t}})})),o}}),Y(te,{get when(){return r.output?.artifacts?.length},get children(){const o=Zd();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),o.style.setProperty("margin-bottom","8px"),Ae(o,Y(oe,{get each(){return r.output.artifacts},children:(r,o)=>Y(Es,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),Y(te,{get when(){return r.output?.content},get fallback(){return Y(te,{get when(){return r.output},get children(){const e=qd();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}})},get children(){return Y(Cs,{get content(){return r.output.content}})}}),Y(te,{get when(){return r.output?.fileAnnotations?.length},get children(){const o=Zd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),Ae(o,Y(oe,{get each(){return r.output.fileAnnotations},children:r=>Y(Bs,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}})]}})),Ae(o,Y(te,{get when(){return r.error},get children(){const e=ds(),o=e.firstChild,t=o.nextSibling,l=t.firstChild;return l.style.setProperty("padding","8px 12px"),l.style.setProperty("border-radius","6px"),l.style.setProperty("border","1px solid #F44336"),l.style.setProperty("background","rgba(244,67,54,0.08)"),l.style.setProperty("color","#C62828"),l.style.setProperty("font-size","0.85rem"),l.style.setProperty("white-space","pre-wrap"),l.style.setProperty("word-break","break-word"),Ae(l,(()=>{const e=M(()=>"object"==typeof r.error);return()=>e()?JSON.stringify(r.error,null,2):r.error})()),A(r=>{const l=d,n={...s,color:"#C62828"},a={...m,"border-color":"rgba(244,67,54,0.4)",background:"rgba(244,67,54,0.04)"};return r._v$23=ye(e,l,r._v$23),r._v$24=ye(o,n,r._v$24),r._v$25=ye(t,a,r._v$25),r},{_v$23:void 0,_v$24:void 0,_v$25:void 0}),e}}),null),Ae(o,Y(te,{get when(){return M(()=>!!r.state)()&&Object.keys(r.state).length>0},get children(){const e=ss(),o=e.firstChild,t=o.nextSibling;return Ae(t,Y(Ls,{get data(){return r.state}})),A(r=>{const l=d,n=s,a=m;return r._v$26=ye(e,l,r._v$26),r._v$27=ye(o,n,r._v$27),r._v$28=ye(t,a,r._v$28),r},{_v$26:void 0,_v$27:void 0,_v$28:void 0}),e}}),null),A(e=>{const r=d,o=s,l=m,i=d,x=s,p=m;return e._v$29=ye(t,r,e._v$29),e._v$30=ye(n,o,e._v$30),e._v$31=ye(a,l,e._v$31),e._v$32=ye(g,i,e._v$32),e._v$33=ye(c,x,e._v$33),e._v$34=ye(u,p,e._v$34),e},{_v$29:void 0,_v$30:void 0,_v$31:void 0,_v$32:void 0,_v$33:void 0,_v$34:void 0}),o})():(()=>{const e=as();return e.style.setProperty("padding","20px"),e.style.setProperty("text-align","center"),e.style.setProperty("opacity","0.5"),e})()};return[(()=>{const r=us(),o=r.firstChild,t=o.firstChild,l=o.nextSibling;return r.style.setProperty("display","flex"),r.style.setProperty("flex-direction","column"),r.style.setProperty("gap","16px"),r.style.setProperty("padding","16px 20px"),r.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","10px"),o.style.setProperty("min-width","0"),Ae(o,Y(_s,{get name(){return e.node.name},get apiHost(){return e.apiHost},size:36}),t),t.style.setProperty("font-weight","600"),t.style.setProperty("font-size","1.05rem"),Ae(t,()=>e.node.label),l.style.setProperty("display","flex"),l.style.setProperty("flex-wrap","wrap"),l.style.setProperty("align-items","center"),l.style.setProperty("gap","8px"),l.style.setProperty("flex","1"),Ae(l,Y(te,{get when(){return a()},children:e=>[Y(te,{get when(){return e().time},get children(){const r=ls(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#4caf50"),r.style.setProperty("color","#fff"),Ae(r,Y(ys,{}),o),Ae(r,()=>e().time,null),r}}),Y(te,{get when(){return e().tokens},get children(){const r=ls(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#7c4dff"),r.style.setProperty("color","#fff"),Ae(r,Y(bs,{}),o),Ae(r,()=>e().tokens,null),r}}),Y(te,{get when(){return e().cost},get children(){const r=ls(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#ff9800"),r.style.setProperty("color","#fff"),Ae(r,Y($s,{}),o),Ae(r,()=>e().cost,null),r}})]})),r})(),(()=>{const e=xs(),t=e.firstChild,l=t.nextSibling;return e.style.setProperty("display","flex"),e.style.setProperty("gap","0"),e.style.setProperty("padding","0 20px"),e.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),t.$$click=()=>o("rendered"),t.style.setProperty("padding","10px 16px"),t.style.setProperty("border","none"),t.style.setProperty("background","transparent"),t.style.setProperty("cursor","pointer"),t.style.setProperty("font-size","0.875rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("font-family","inherit"),t.style.setProperty("margin-bottom","-1px"),l.$$click=()=>o("raw"),l.style.setProperty("padding","10px 16px"),l.style.setProperty("border","none"),l.style.setProperty("background","transparent"),l.style.setProperty("cursor","pointer"),l.style.setProperty("font-size","0.875rem"),l.style.setProperty("font-weight","500"),l.style.setProperty("font-family","inherit"),l.style.setProperty("margin-bottom","-1px"),A(e=>{const o="rendered"===r()?"#1976d2":"inherit",n="rendered"===r()?1:.6,a="rendered"===r()?"2px solid #1976d2":"2px solid transparent",i="raw"===r()?"#1976d2":"inherit",d="raw"===r()?1:.6,s="raw"===r()?"2px solid #1976d2":"2px solid transparent";return o!==e._v$35&&(null!=(e._v$35=o)?t.style.setProperty("color",o):t.style.removeProperty("color")),n!==e._v$36&&(null!=(e._v$36=n)?t.style.setProperty("opacity",n):t.style.removeProperty("opacity")),a!==e._v$37&&(null!=(e._v$37=a)?t.style.setProperty("border-bottom",a):t.style.removeProperty("border-bottom")),i!==e._v$38&&(null!=(e._v$38=i)?l.style.setProperty("color",i):l.style.removeProperty("color")),d!==e._v$39&&(null!=(e._v$39=d)?l.style.setProperty("opacity",d):l.style.removeProperty("opacity")),s!==e._v$40&&(null!=(e._v$40=s)?l.style.setProperty("border-bottom",s):l.style.removeProperty("border-bottom")),e},{_v$35:void 0,_v$36:void 0,_v$37:void 0,_v$38:void 0,_v$39:void 0,_v$40:void 0}),e})(),(()=>{const e=Zd();return e.style.setProperty("padding","16px 20px"),e.style.setProperty("overflow-y","auto"),e.style.setProperty("flex","1"),Ae(e,Y(te,{get when(){return"rendered"===r()},get fallback(){return(()=>{const e=Jd();return A(r=>{const o=Gs,t=Ss(JSON.stringify(n(),null,2));return r._v$43=ye(e,o,r._v$43),t!==r._v$44&&(e.innerHTML=r._v$44=t),r},{_v$43:void 0,_v$44:void 0}),e})()},get children(){return g()}})),e})(),Y(te,{get when(){return t()},get children(){return[(()=>{const r=hs(),o=r.firstChild,a=o.firstChild,i=a.firstChild,d=i.firstChild,s=i.nextSibling,m=a.nextSibling;return r.$$click=()=>l(null),r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1004"),r.style.setProperty("display","flex"),r.style.setProperty("align-items","center"),r.style.setProperty("justify-content","center"),o.$$click=e=>e.stopPropagation(),o.style.setProperty("position","relative"),o.style.setProperty("width","100%"),o.style.setProperty("max-width","560px"),o.style.setProperty("margin","24px 16px"),o.style.setProperty("border-radius","8px"),o.style.setProperty("box-shadow","0 20px 40px -4px rgba(0,0,0,0.2), 0 8px 16px -4px rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("max-height","calc(100% - 80px)"),o.style.setProperty("overflow","hidden"),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","space-between"),a.style.setProperty("padding","14px 20px"),a.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),i.style.setProperty("display","flex"),i.style.setProperty("align-items","center"),i.style.setProperty("gap","8px"),Ae(i,Y(_s,{get name(){return Ts(t()?.tool||"",n()?.output?.availableTools)},get apiHost(){return e.apiHost},size:24}),d),d.style.setProperty("font-weight","600"),d.style.setProperty("font-size","0.95rem"),Ae(d,()=>t()?.tool||"Tool Detail"),Ae(i,Y(te,{get when(){return t()?.error},get children(){const e=ps();return e.style.setProperty("display","inline-flex"),e.style.setProperty("align-items","center"),e.style.setProperty("padding","2px 8px"),e.style.setProperty("border-radius","10px"),e.style.setProperty("font-size","0.7rem"),e.style.setProperty("font-weight","500"),e.style.setProperty("background","#FFEBEE"),e.style.setProperty("color","#C62828"),e.style.setProperty("border","1px solid #C6282833"),e}}),null),s.$$click=()=>l(null),s.style.setProperty("border","none"),s.style.setProperty("background","transparent"),s.style.setProperty("cursor","pointer"),s.style.setProperty("padding","4px"),s.style.setProperty("border-radius","4px"),s.style.setProperty("display","flex"),s.style.setProperty("align-items","center"),s.style.setProperty("color","inherit"),s.style.setProperty("opacity","0.7"),Ae(s,Y(vs,{})),m.style.setProperty("padding","16px 20px"),m.style.setProperty("overflow-y","auto"),Ae(m,Y(Ls,{get data(){return t()}})),A(r=>{const t=e.backgroundColor??"#ffffff",l=e.textColor??"#303235";return t!==r._v$41&&(null!=(r._v$41=t)?o.style.setProperty("background-color",t):o.style.removeProperty("background-color")),l!==r._v$42&&(null!=(r._v$42=l)?o.style.setProperty("color",l):o.style.removeProperty("color")),r},{_v$41:void 0,_v$42:void 0}),r})(),(()=>{const e=Zd();return e.$$click=e=>{e.stopPropagation(),l(null)},e.style.setProperty("position","fixed"),e.style.setProperty("inset","0"),e.style.setProperty("z-index","1003"),e.style.setProperty("background-color","rgba(0,0,0,0.35)"),e})()]}})]};xe(["click"]);const Os=ue("
'),fg=ue("
");const yg=e=>{let r;const[o]=re(e,["onOpen","onClose","isOpen","value"]);T(()=>{var o;r&&(r.innerHTML=("string"!=typeof(o=JSON.stringify(e?.value,void 0,2))&&(o=JSON.stringify(o,void 0,2)),(o=o.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""})))});const[t,l]=b(o.isOpen??!1);P(()=>{Re(e.isOpen)||e.isOpen===t()||i()});const n=e=>{e.stopPropagation()},a=()=>{l(!1),o.onClose?.(),document.body.style.overflow="auto"},i=()=>{t()?a():(l(!0),o.onOpen?.(),document.body.style.overflow="hidden")};return Y(te,{get when(){return t()},get children(){return[(()=>{const e=Sg();return Ae(e,Fe),e})(),(()=>{const o=vg(),t=o.firstChild,l=t.nextSibling.nextSibling.firstChild.firstChild;return o.style.setProperty("z-index","1100"),o.addEventListener("click",a),Ae(t,Fe),l.style.setProperty("background-color","transparent"),l.style.setProperty("margin-left","20px"),l.style.setProperty("margin-right","20px"),l.addEventListener("click",n),l.addEventListener("pointerdown",n),Ae(l,(()=>{const o=M(()=>!!e.value);return()=>o()&&(()=>{const e=fg(),o=e.firstChild;e.style.setProperty("background","white"),e.style.setProperty("margin","auto"),e.style.setProperty("padding","7px");return"function"==typeof r?be(r,o):r=o,e})()})()),o})()]}})},$g=ue('
');function fs(e){return e?(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""}):""}const ys=()=>Hd(),$s=()=>Vd(),bs=()=>Ud(),As=()=>Wd(),Ps=()=>Kd(),Ms=()=>zd(),_s=()=>Zd(),Ts=e=>(()=>{const r=Qd();return A(o=>{const t=e.size,l=e.size;return t!==o._v$&&pe(r,"width",o._v$=t),l!==o._v$2&&pe(r,"height",o._v$2=l),o},{_v$:void 0,_v$2:void 0}),r})(),ws=e=>{const r=e.size??24,o=Rd(e.name);if(o)return(()=>{const t=Yd();return t.style.setProperty("flex-shrink","0"),t.style.setProperty("display","flex"),t.style.setProperty("align-items","center"),t.style.setProperty("justify-content","center"),null!=`${r}px`?t.style.setProperty("width",`${r}px`):t.style.removeProperty("width"),null!=`${r}px`?t.style.setProperty("height",`${r}px`):t.style.removeProperty("height"),Ae(t,()=>o.icon({size:Math.round(.55*r),color:"white"})),A(r=>{const l=e.borderRadius??"50%",n=e.bgColor??o.color;return l!==r._v$3&&(null!=(r._v$3=l)?t.style.setProperty("border-radius",l):t.style.removeProperty("border-radius")),n!==r._v$4&&(null!=(r._v$4=n)?t.style.setProperty("background",n):t.style.removeProperty("background")),r},{_v$3:void 0,_v$4:void 0}),t})();if(e.apiHost){const[o,t]=b(!1);return(()=>{const l=Yd();return l.style.setProperty("flex-shrink","0"),l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("justify-content","center"),null!=`${r}px`?l.style.setProperty("width",`${r}px`):l.style.removeProperty("width"),null!=`${r}px`?l.style.setProperty("height",`${r}px`):l.style.removeProperty("height"),l.style.setProperty("overflow","hidden"),Ae(l,Y(te,{get when(){return!o()},get fallback(){return Y(Ts,{get size(){return Math.round(.6*r)}})},get children(){const r=Jd();return r.addEventListener("error",()=>t(!0)),r.style.setProperty("width","100%"),r.style.setProperty("height","100%"),r.style.setProperty("padding","3px"),r.style.setProperty("object-fit","contain"),A(o=>{const t=`${e.apiHost}/api/v1/node-icon/${e.name}`,l=e.name;return t!==o._v$5&&pe(r,"src",o._v$5=t),l!==o._v$6&&pe(r,"alt",o._v$6=l),o},{_v$5:void 0,_v$6:void 0}),r}})),A(r=>{const t=e.borderRadius??"50%",n=e.bgColor??(o()?"#9e9e9e":"#f5f5f5");return t!==r._v$7&&(null!=(r._v$7=t)?l.style.setProperty("border-radius",t):l.style.removeProperty("border-radius")),n!==r._v$8&&(null!=(r._v$8=n)?l.style.setProperty("background",n):l.style.removeProperty("background")),r},{_v$7:void 0,_v$8:void 0}),l})()}return(()=>{const o=Yd();return o.style.setProperty("flex-shrink","0"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("justify-content","center"),null!=`${r}px`?o.style.setProperty("width",`${r}px`):o.style.removeProperty("width"),null!=`${r}px`?o.style.setProperty("height",`${r}px`):o.style.removeProperty("height"),o.style.setProperty("background","#9e9e9e"),Ae(o,Y(Ts,{get size(){return Math.round(.6*r)}})),A(()=>null!=(e.borderRadius??"50%")?o.style.setProperty("border-radius",e.borderRadius??"50%"):o.style.removeProperty("border-radius")),o})()},Gs=(e,r)=>{if(Array.isArray(r)){const o=r.find(r=>r.name===e);if(o?.toolNode?.name)return o.toolNode.name}return e},Ls=e=>{const[r,o]=b(e.defaultOpen??!1),t=()=>o(!r());return(()=>{const o=jd(),l=o.firstChild,n=l.firstChild,a=n.nextSibling;return o.style.setProperty("border-radius","8px"),o.style.setProperty("margin-bottom","6px"),o.style.setProperty("overflow","hidden"),l.$$click=t,l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("width","100%"),l.style.setProperty("padding","10px 12px"),l.style.setProperty("cursor","pointer"),l.style.setProperty("user-select","none"),l.style.setProperty("gap","8px"),l.style.setProperty("font-size","0.85rem"),l.style.setProperty("font-family","inherit"),l.style.setProperty("color","inherit"),l.style.setProperty("text-align","left"),l.style.setProperty("border","none"),l.style.setProperty("background","transparent"),n.style.setProperty("flex","1"),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("gap","8px"),n.style.setProperty("text-align","left"),Ae(n,()=>e.header),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","center"),a.style.setProperty("flex-shrink","0"),a.style.setProperty("transition","transform 0.2s ease"),a.style.setProperty("opacity","0.5"),Ae(a,Y($s,{})),Ae(o,Y(te,{get when(){return r()},get children(){const r=Yd();return r.style.setProperty("padding","10px 12px"),r.style.setProperty("border-top","1px solid rgba(0,0,0,0.08)"),r.style.setProperty("background","rgba(0,0,0,0.02)"),Ae(r,()=>e.children),r}}),null),A(t=>{const n=`1px solid ${e.borderColor||"rgba(0,0,0,0.1)"}`,i=e.bgColor||"transparent",d=r(),s=r()?"rotate(180deg)":"rotate(0deg)";return n!==t._v$9&&(null!=(t._v$9=n)?o.style.setProperty("border",n):o.style.removeProperty("border")),i!==t._v$0&&(null!=(t._v$0=i)?o.style.setProperty("background",i):o.style.removeProperty("background")),d!==t._v$1&&pe(l,"aria-expanded",t._v$1=d),s!==t._v$10&&(null!=(t._v$10=s)?a.style.setProperty("transform",s):a.style.removeProperty("transform")),t},{_v$9:void 0,_v$0:void 0,_v$1:void 0,_v$10:void 0}),o})()},Cs={"font-family":"'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace","font-size":"0.75rem","line-height":"1.5",padding:"12px","border-radius":"6px",background:"rgba(0,0,0,0.04)","overflow-x":"auto","white-space":"pre-wrap","word-break":"break-word",margin:"0"},Es=e=>(()=>{const r=qd();return A(o=>{const t=Cs,l=fs(JSON.stringify(e.data,null,2));return o._v$11=ye(r,t,o._v$11),l!==o._v$12&&(r.innerHTML=o._v$12=l),o},{_v$11:void 0,_v$12:void 0}),r})(),Bs=e=>{Hn.setOptions({isNoP:!0,sanitize:!0});const r=()=>{if(!e.content)return null;try{return JSON.parse(e.content)}catch{return null}};return Y(te,{get when(){return r()},get fallback(){return Y(te,{get when(){return e.content},get fallback(){return(()=>{const e=rs();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e})()},get children(){const r=es();return r.style.setProperty("word-break","break-word"),r.style.setProperty("font-size","0.85rem"),r.style.setProperty("line-height","1.6"),A(()=>r.innerHTML=Hn.parse(e.content)),r}})},get children(){return Y(Es,{get data(){return r()}})}})},Ns=e=>{const r=e.artifact?.type,o=e.artifact?.data,t={border:"1px solid rgba(0,0,0,0.12)","border-radius":"6px",overflow:"hidden",background:"rgba(0,0,0,0.02)"};if("png"===r||"jpeg"===r||"jpg"===r){const r=((e,r,o,t)=>{if(e.startsWith("FILE-STORAGE::")&&r)return`${r}/api/v1/get-upload-file?chatflowId=${o}&chatId=${t}&fileName=${e.replace("FILE-STORAGE::","")}`;return e})(o,e.apiHost,e.chatflowid,e.chatId);return(()=>{const o=os(),l=o.firstChild;return pe(l,"src",r),l.style.setProperty("max-height","400px"),l.style.setProperty("max-width","100%"),l.style.setProperty("object-fit","contain"),l.style.setProperty("display","block"),A(r=>{const n={...t,display:"flex","justify-content":"center"},a=`artifact-${e.index}`;return r._v$13=ye(o,n,r._v$13),a!==r._v$14&&pe(l,"alt",r._v$14=a),r},{_v$13:void 0,_v$14:void 0}),o})()}return"html"===r?(()=>{const e=Yd();return A(r=>{const l={...t,padding:"8px 12px","font-size":"0.85rem"},n=Bi.sanitize(o);return r._v$15=ye(e,l,r._v$15),n!==r._v$16&&(e.innerHTML=r._v$16=n),r},{_v$15:void 0,_v$16:void 0}),e})():(()=>{const e=Yd();return Ae(e,Y(Bs,{content:o})),A(r=>ye(e,{...t,padding:"8px 12px"},r)),e})()},Os=e=>{const r=async()=>{if(e.apiHost)try{const r=await fetch(`${e.apiHost}/api/v1/openai-assistants-file/download`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileName:e.annotation.fileName,chatflowId:e.chatflowid,chatId:e.chatId})}),o=await r.blob(),t=window.URL.createObjectURL(o),l=document.createElement("a");l.href=t,l.download=e.annotation.fileName,document.body.appendChild(l),l.click(),l.remove(),window.URL.revokeObjectURL(t)}catch(e){console.error("Download failed:",e)}};return(()=>{const o=ts(),t=o.firstChild;return o.$$click=r,o.style.setProperty("display","inline-flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","6px"),o.style.setProperty("padding","4px 12px"),o.style.setProperty("border","1px solid rgba(0,0,0,0.2)"),o.style.setProperty("border-radius","6px"),o.style.setProperty("background","transparent"),o.style.setProperty("cursor","pointer"),o.style.setProperty("font-size","0.8rem"),o.style.setProperty("color","inherit"),Ae(t,()=>e.annotation.fileName),Ae(o,Y(_s,{}),null),A(()=>pe(o,"title",`Download ${e.annotation.fileName}`)),o})()},Is=e=>{const[r,o]=b("rendered"),[t,l]=b(null),n=()=>e.node?.data?Xd(e.node.data):{},a=()=>(e=>{const r=e?.output;if(!r)return null;const o={};if(r.timeMetadata?.delta&&(o.time=`${(r.timeMetadata.delta/1e3).toFixed(2)} seconds`),r.usageMetadata?.total_tokens&&(o.tokens=`${r.usageMetadata.total_tokens} tokens`),null!=r.usageMetadata?.total_cost&&Number(r.usageMetadata.total_cost)>=0){const e=Number(r.usageMetadata.total_cost);o.cost=e>=.01?`$${e.toFixed(2)}`:`$${e.toFixed(6)}`}return Object.keys(o).length>0?o:null})(n()),i=(e,r)=>({display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`}),d={"margin-bottom":"16px"},s={"font-weight":"700","font-size":"0.9rem","margin-bottom":"8px"},m={border:"1px solid rgba(0,0,0,0.1)","border-radius":"10px",padding:"14px 16px",background:"rgba(0,0,0,0.015)"},g=()=>{const r=n();return r?(()=>{const o=cs(),t=o.firstChild,n=t.firstChild,a=n.nextSibling,g=t.nextSibling,c=g.firstChild,u=c.nextSibling;return Ae(o,Y(te,{get when(){return r.output?.availableTools?.length},get children(){const o=ss(),t=o.firstChild,l=t.nextSibling;return Ae(l,Y(oe,{get each(){return r.output.availableTools},children:o=>{const t=(l=o.name,n=r.output?.usedTools,Array.isArray(n)&&n.some(e=>e.tool===l));var l,n;const a=o.toolNode?.name||o.name;return Y(Ls,{borderColor:t?"#4CAF50":void 0,bgColor:t?"rgba(76,175,80,0.05)":void 0,get header(){return[Y(ws,{name:a,get apiHost(){return e.apiHost},size:22}),(()=>{const e=ls();return Ae(e,()=>o.toolNode?.label||o.name),e})(),Y(te,{when:t,get children(){const e=us();return A(r=>ye(e,i("#E8F5E9","#2E7D32"),r)),e}})]},get children(){return Y(Es,{data:o})}})}})),A(e=>{const r=d,n=s,a=m;return e._v$20=ye(o,r,e._v$20),e._v$21=ye(t,n,e._v$21),e._v$22=ye(l,a,e._v$22),e},{_v$20:void 0,_v$21:void 0,_v$22:void 0}),o}}),t),Ae(a,Y(te,{get when(){return r.input?.messages&&Array.isArray(r.input.messages)&&r.input.messages.length>0},get fallback(){return Y(te,{get when(){return r.input?.form||r.input?.http||r.input?.conditions},get fallback(){return Y(te,{get when(){return r.input?.code},get fallback(){return Y(te,{get when(){return r.input},get fallback(){return(()=>{const e=rs();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e})()},get children(){return Y(te,{get when(){return r.input?.question},get fallback(){return Y(Es,{get data(){return r.input}})},get children(){return Y(Bs,{get content(){return r.input.question}})}})}})},get children(){const e=xs();return Ae(e,()=>r.input.code),A(r=>ye(e,Cs,r)),e}})},get children(){return Y(Es,{get data(){return r.input.form||r.input.http||r.input.conditions}})}})},get children(){const o=Yd();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","4px"),Ae(o,Y(oe,{get each(){return r.input.messages},children:o=>((r,o)=>{const t=r.role||"unknown",n=(e=>{switch(e?.toLowerCase()){case"assistant":case"ai":return{background:"#E8F5E9",color:"#2E7D32"};case"system":return{background:"#FFF3E0",color:"#E65100"};case"developer":case"user":case"human":return{background:"#E3F2FD",color:"#1565C0"};case"tool":case"function":return{background:"#F3E5F5",color:"#7B1FA2"};default:return{background:"#F5F5F5",color:"#616161"}}})(t),a=(e,r,o,t)=>(()=>{const l=ls();return Ae(l,o),A(o=>ye(l,{display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`,...t},o)),l})();return(()=>{const i=Yd();return i.style.setProperty("margin-bottom","8px"),i.style.setProperty("padding","8px"),i.style.setProperty("border-radius","6px"),i.style.setProperty("background","rgba(0,0,0,0.02)"),Ae(i,()=>a(n.background,n.color,t),null),Ae(i,Y(te,{get when(){return r.name},get children(){return a(n.background,n.color,r.name,{"margin-left":"4px"})}}),null),Ae(i,Y(te,{get when(){return r.tool_calls&&Array.isArray(r.tool_calls)&&r.tool_calls.length>0},get children(){return Y(oe,{get each(){return r.tool_calls},children:e=>Y(Ls,{borderColor:"#FFC107",bgColor:"rgba(255,193,7,0.05)",get header(){return[Y(Ms,{}),(()=>{const r=ls();return Ae(r,()=>e.function?.name||e.name||"Tool Call"),r})(),M(()=>a("#FFF3E0","#E65100","Called"))]},get children(){return Y(Es,{data:e})}})})}}),null),Ae(i,Y(te,{get when(){return"tool"===t&&r.name},get children(){const e=ns(),o=e.firstChild;return e.style.setProperty("display","flex"),e.style.setProperty("align-items","center"),e.style.setProperty("gap","8px"),e.style.setProperty("margin-top","4px"),e.style.setProperty("flex-wrap","wrap"),Ae(e,Y(Ms,{}),o),o.style.setProperty("font-size","0.85rem"),Ae(o,()=>r.name),Ae(e,Y(te,{get when(){return r.tool_call_id},get children(){return a("#F5F5F5","#616161",r.tool_call_id)}}),null),e}}),null),Ae(i,Y(te,{get when(){return r.additional_kwargs?.usedTools?.length},get children(){const t=Yd();return t.style.setProperty("margin-top","8px"),t.style.setProperty("display","flex"),t.style.setProperty("gap","4px"),t.style.setProperty("flex-wrap","wrap"),Ae(t,Y(oe,{get each(){return r.additional_kwargs.usedTools},children:r=>Y(te,{when:r,get children(){const t=as(),n=t.firstChild;return t.$$click=()=>l(r),t.style.setProperty("display","inline-flex"),t.style.setProperty("align-items","center"),t.style.setProperty("gap","4px"),t.style.setProperty("padding","3px 10px"),t.style.setProperty("border-radius","12px"),t.style.setProperty("font-size","0.75rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("cursor","pointer"),t.style.setProperty("transition","filter 0.15s ease"),Ae(t,Y(ws,{get name(){return Gs(r.tool,o?.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),n),Ae(t,()=>r.tool,null),A(e=>{const o=r.error?"#FFEBEE":"#F3E5F5",l=r.error?"#C62828":"#7B1FA2",n="1px solid "+(r.error?"#C6282833":"#7B1FA233");return o!==e._v$17&&(null!=(e._v$17=o)?t.style.setProperty("background",o):t.style.removeProperty("background")),l!==e._v$18&&(null!=(e._v$18=l)?t.style.setProperty("color",l):t.style.removeProperty("color")),n!==e._v$19&&(null!=(e._v$19=n)?t.style.setProperty("border",n):t.style.removeProperty("border")),e},{_v$17:void 0,_v$18:void 0,_v$19:void 0}),t}})})),t}}),null),Ae(i,Y(te,{get when(){return r.additional_kwargs?.artifacts?.length},get children(){const o=Yd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),Ae(o,Y(oe,{get each(){return r.additional_kwargs.artifacts},children:(r,o)=>Y(Ns,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),Ae(i,Y(te,{get when(){return"user"===t&&Array.isArray(r.content)&&r.content.length>0},get children(){const o=Yd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),Ae(o,Y(oe,{get each(){return r.content},children:(r,o)=>{const t="stored-file"===r.type&&e.apiHost?`${e.apiHost}/api/v1/get-upload-file?chatflowId=${e.chatflowid}&chatId=${e.chatId}&fileName=${r.name}`:r.name;return(()=>{const e=os(),r=e.firstChild;return e.style.setProperty("border","1px solid rgba(0,0,0,0.12)"),e.style.setProperty("border-radius","6px"),e.style.setProperty("overflow","hidden"),e.style.setProperty("display","flex"),e.style.setProperty("justify-content","center"),e.style.setProperty("background","rgba(0,0,0,0.02)"),pe(r,"src",t),r.style.setProperty("max-height","400px"),r.style.setProperty("max-width","100%"),r.style.setProperty("object-fit","contain"),r.style.setProperty("display","block"),A(()=>pe(r,"alt",`file-upload-${o()}`)),e})()}})),o}}),null),Ae(i,Y(te,{get when(){return"string"==typeof r.content&&r.content},get children(){const e=Yd();return e.style.setProperty("margin-top","4px"),Ae(e,Y(Bs,{get content(){return r.content}})),e}}),null),Ae(i,Y(te,{get when(){return!r.content},get children(){const e=rs();return e.style.setProperty("margin-top","4px"),e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}}),null),Ae(i,Y(te,{get when(){return r.additional_kwargs?.fileAnnotations?.length},get children(){const o=Yd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),Ae(o,Y(oe,{get each(){return r.additional_kwargs.fileAnnotations},children:r=>Y(Os,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),i})()})(o,r)})),o}})),Ae(u,Y(te,{get when(){return!(r.output?.form||r.output?.http||r.output?.conditions)},get fallback(){return Y(te,{get when(){return r.output?.conditions},get fallback(){return Y(Es,{get data(){return r.output?.form||r.output?.http}})},get children(){return Y(oe,{each:r.output.conditions.filter(e=>e.isFulfilled),children:(e,r)=>(()=>{const o=is(),t=o.firstChild,l=t.firstChild,n=l.nextSibling;return o.style.setProperty("border","1px solid #4CAF50"),o.style.setProperty("border-radius","6px"),o.style.setProperty("padding","8px 12px"),o.style.setProperty("margin-bottom","6px"),t.style.setProperty("display","flex"),t.style.setProperty("justify-content","space-between"),t.style.setProperty("align-items","center"),l.style.setProperty("font-size","0.85rem"),Ae(l,(()=>{const o=M(()=>!("string"!==e.type||"equal"!==e.operation||e.value1||e.value2));return()=>o()?"Else condition fulfilled":`Condition ${r()}`})()),Ae(o,Y(te,{get when(){return!("string"===e.type&&"equal"===e.operation&&!e.value1&&!e.value2)},get children(){const r=Yd();return r.style.setProperty("margin-top","4px"),Ae(r,Y(Es,{data:e})),r}}),null),A(e=>ye(n,i("#E8F5E9","#2E7D32"),e)),o})()})}})},get children(){return[Y(te,{get when(){return r.output?.usedTools?.length},get children(){const o=Yd();return o.style.setProperty("display","flex"),o.style.setProperty("gap","4px"),o.style.setProperty("flex-wrap","wrap"),o.style.setProperty("margin-bottom","8px"),Ae(o,Y(oe,{get each(){return r.output.usedTools},children:o=>Y(te,{when:o,get children(){const t=as(),n=t.firstChild;return t.$$click=()=>l(o),Ae(t,Y(ws,{get name(){return Gs(o.tool,r.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),n),Ae(t,()=>o.tool,null),A(e=>ye(t,{...i(o.error?"#FFEBEE":"#F3E5F5",o.error?"#C62828":"#7B1FA2"),cursor:"pointer",transition:"filter 0.15s ease"},e)),t}})})),o}}),Y(te,{get when(){return r.output?.artifacts?.length},get children(){const o=Yd();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),o.style.setProperty("margin-bottom","8px"),Ae(o,Y(oe,{get each(){return r.output.artifacts},children:(r,o)=>Y(Ns,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),Y(te,{get when(){return r.output?.content},get fallback(){return Y(te,{get when(){return r.output},get children(){const e=rs();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}})},get children(){return Y(Bs,{get content(){return r.output.content}})}}),Y(te,{get when(){return r.output?.fileAnnotations?.length},get children(){const o=Yd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),Ae(o,Y(oe,{get each(){return r.output.fileAnnotations},children:r=>Y(Os,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}})]}})),Ae(o,Y(te,{get when(){return r.error},get children(){const e=ms(),o=e.firstChild,t=o.nextSibling,l=t.firstChild;return l.style.setProperty("padding","8px 12px"),l.style.setProperty("border-radius","6px"),l.style.setProperty("border","1px solid #F44336"),l.style.setProperty("background","rgba(244,67,54,0.08)"),l.style.setProperty("color","#C62828"),l.style.setProperty("font-size","0.85rem"),l.style.setProperty("white-space","pre-wrap"),l.style.setProperty("word-break","break-word"),Ae(l,(()=>{const e=M(()=>"object"==typeof r.error);return()=>e()?JSON.stringify(r.error,null,2):r.error})()),A(r=>{const l=d,n={...s,color:"#C62828"},a={...m,"border-color":"rgba(244,67,54,0.4)",background:"rgba(244,67,54,0.04)"};return r._v$23=ye(e,l,r._v$23),r._v$24=ye(o,n,r._v$24),r._v$25=ye(t,a,r._v$25),r},{_v$23:void 0,_v$24:void 0,_v$25:void 0}),e}}),null),Ae(o,Y(te,{get when(){return M(()=>!!r.state)()&&Object.keys(r.state).length>0},get children(){const e=gs(),o=e.firstChild,t=o.nextSibling;return Ae(t,Y(Es,{get data(){return r.state}})),A(r=>{const l=d,n=s,a=m;return r._v$26=ye(e,l,r._v$26),r._v$27=ye(o,n,r._v$27),r._v$28=ye(t,a,r._v$28),r},{_v$26:void 0,_v$27:void 0,_v$28:void 0}),e}}),null),A(e=>{const r=d,o=s,l=m,i=d,x=s,p=m;return e._v$29=ye(t,r,e._v$29),e._v$30=ye(n,o,e._v$30),e._v$31=ye(a,l,e._v$31),e._v$32=ye(g,i,e._v$32),e._v$33=ye(c,x,e._v$33),e._v$34=ye(u,p,e._v$34),e},{_v$29:void 0,_v$30:void 0,_v$31:void 0,_v$32:void 0,_v$33:void 0,_v$34:void 0}),o})():(()=>{const e=ds();return e.style.setProperty("padding","20px"),e.style.setProperty("text-align","center"),e.style.setProperty("opacity","0.5"),e})()};return[(()=>{const r=ps(),o=r.firstChild,t=o.firstChild,l=o.nextSibling;return r.style.setProperty("display","flex"),r.style.setProperty("flex-direction","column"),r.style.setProperty("gap","16px"),r.style.setProperty("padding","16px 20px"),r.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","10px"),o.style.setProperty("min-width","0"),Ae(o,Y(ws,{get name(){return e.node.name},get apiHost(){return e.apiHost},size:36}),t),t.style.setProperty("font-weight","600"),t.style.setProperty("font-size","1.05rem"),Ae(t,()=>e.node.label),l.style.setProperty("display","flex"),l.style.setProperty("flex-wrap","wrap"),l.style.setProperty("align-items","center"),l.style.setProperty("gap","8px"),l.style.setProperty("flex","1"),Ae(l,Y(te,{get when(){return a()},children:e=>[Y(te,{get when(){return e().time},get children(){const r=as(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#4caf50"),r.style.setProperty("color","#fff"),Ae(r,Y(bs,{}),o),Ae(r,()=>e().time,null),r}}),Y(te,{get when(){return e().tokens},get children(){const r=as(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#7c4dff"),r.style.setProperty("color","#fff"),Ae(r,Y(Ps,{}),o),Ae(r,()=>e().tokens,null),r}}),Y(te,{get when(){return e().cost},get children(){const r=as(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#ff9800"),r.style.setProperty("color","#fff"),Ae(r,Y(As,{}),o),Ae(r,()=>e().cost,null),r}})]})),r})(),(()=>{const e=hs(),t=e.firstChild,l=t.nextSibling;return e.style.setProperty("display","flex"),e.style.setProperty("gap","0"),e.style.setProperty("padding","0 20px"),e.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),t.$$click=()=>o("rendered"),t.style.setProperty("padding","10px 16px"),t.style.setProperty("border","none"),t.style.setProperty("background","transparent"),t.style.setProperty("cursor","pointer"),t.style.setProperty("font-size","0.875rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("font-family","inherit"),t.style.setProperty("margin-bottom","-1px"),l.$$click=()=>o("raw"),l.style.setProperty("padding","10px 16px"),l.style.setProperty("border","none"),l.style.setProperty("background","transparent"),l.style.setProperty("cursor","pointer"),l.style.setProperty("font-size","0.875rem"),l.style.setProperty("font-weight","500"),l.style.setProperty("font-family","inherit"),l.style.setProperty("margin-bottom","-1px"),A(e=>{const o="rendered"===r()?"#1976d2":"inherit",n="rendered"===r()?1:.6,a="rendered"===r()?"2px solid #1976d2":"2px solid transparent",i="raw"===r()?"#1976d2":"inherit",d="raw"===r()?1:.6,s="raw"===r()?"2px solid #1976d2":"2px solid transparent";return o!==e._v$35&&(null!=(e._v$35=o)?t.style.setProperty("color",o):t.style.removeProperty("color")),n!==e._v$36&&(null!=(e._v$36=n)?t.style.setProperty("opacity",n):t.style.removeProperty("opacity")),a!==e._v$37&&(null!=(e._v$37=a)?t.style.setProperty("border-bottom",a):t.style.removeProperty("border-bottom")),i!==e._v$38&&(null!=(e._v$38=i)?l.style.setProperty("color",i):l.style.removeProperty("color")),d!==e._v$39&&(null!=(e._v$39=d)?l.style.setProperty("opacity",d):l.style.removeProperty("opacity")),s!==e._v$40&&(null!=(e._v$40=s)?l.style.setProperty("border-bottom",s):l.style.removeProperty("border-bottom")),e},{_v$35:void 0,_v$36:void 0,_v$37:void 0,_v$38:void 0,_v$39:void 0,_v$40:void 0}),e})(),(()=>{const e=Yd();return e.style.setProperty("padding","16px 20px"),e.style.setProperty("overflow-y","auto"),e.style.setProperty("flex","1"),Ae(e,Y(te,{get when(){return"rendered"===r()},get fallback(){return(()=>{const e=qd();return A(r=>{const o=Cs,t=fs(JSON.stringify(n(),null,2));return r._v$43=ye(e,o,r._v$43),t!==r._v$44&&(e.innerHTML=r._v$44=t),r},{_v$43:void 0,_v$44:void 0}),e})()},get children(){return g()}})),e})(),Y(te,{get when(){return t()},get children(){return[(()=>{const r=vs(),o=r.firstChild,a=o.firstChild,i=a.firstChild,d=i.firstChild,s=i.nextSibling,m=a.nextSibling;return r.$$click=()=>l(null),r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1004"),r.style.setProperty("display","flex"),r.style.setProperty("align-items","center"),r.style.setProperty("justify-content","center"),o.$$click=e=>e.stopPropagation(),o.style.setProperty("position","relative"),o.style.setProperty("width","100%"),o.style.setProperty("max-width","560px"),o.style.setProperty("margin","24px 16px"),o.style.setProperty("border-radius","8px"),o.style.setProperty("box-shadow","0 20px 40px -4px rgba(0,0,0,0.2), 0 8px 16px -4px rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("max-height","calc(100% - 80px)"),o.style.setProperty("overflow","hidden"),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","space-between"),a.style.setProperty("padding","14px 20px"),a.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),i.style.setProperty("display","flex"),i.style.setProperty("align-items","center"),i.style.setProperty("gap","8px"),Ae(i,Y(ws,{get name(){return Gs(t()?.tool||"",n()?.output?.availableTools)},get apiHost(){return e.apiHost},size:24}),d),d.style.setProperty("font-weight","600"),d.style.setProperty("font-size","0.95rem"),Ae(d,()=>t()?.tool||"Tool Detail"),Ae(i,Y(te,{get when(){return t()?.error},get children(){const e=Ss();return e.style.setProperty("display","inline-flex"),e.style.setProperty("align-items","center"),e.style.setProperty("padding","2px 8px"),e.style.setProperty("border-radius","10px"),e.style.setProperty("font-size","0.7rem"),e.style.setProperty("font-weight","500"),e.style.setProperty("background","#FFEBEE"),e.style.setProperty("color","#C62828"),e.style.setProperty("border","1px solid #C6282833"),e}}),null),s.$$click=()=>l(null),s.style.setProperty("border","none"),s.style.setProperty("background","transparent"),s.style.setProperty("cursor","pointer"),s.style.setProperty("padding","4px"),s.style.setProperty("border-radius","4px"),s.style.setProperty("display","flex"),s.style.setProperty("align-items","center"),s.style.setProperty("color","inherit"),s.style.setProperty("opacity","0.7"),Ae(s,Y(ys,{})),m.style.setProperty("padding","16px 20px"),m.style.setProperty("overflow-y","auto"),Ae(m,Y(Es,{get data(){return t()}})),A(r=>{const t=e.backgroundColor??"#ffffff",l=e.textColor??"#303235";return t!==r._v$41&&(null!=(r._v$41=t)?o.style.setProperty("background-color",t):o.style.removeProperty("background-color")),l!==r._v$42&&(null!=(r._v$42=l)?o.style.setProperty("color",l):o.style.removeProperty("color")),r},{_v$41:void 0,_v$42:void 0}),r})(),(()=>{const e=Yd();return e.$$click=e=>{e.stopPropagation(),l(null)},e.style.setProperty("position","fixed"),e.style.setProperty("inset","0"),e.style.setProperty("z-index","1003"),e.style.setProperty("background-color","rgba(0,0,0,0.35)"),e})()]}})]};xe(["click"]);const ks=ue("
'),$g=ue("
");const bg=e=>{let r;const[o]=re(e,["onOpen","onClose","isOpen","value"]);T(()=>{var o;r&&(r.innerHTML=("string"!=typeof(o=JSON.stringify(e?.value,void 0,2))&&(o=JSON.stringify(o,void 0,2)),(o=o.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""})))});const[t,l]=b(o.isOpen??!1);P(()=>{Re(e.isOpen)||e.isOpen===t()||i()});const n=e=>{e.stopPropagation()},a=()=>{l(!1),o.onClose?.(),document.body.style.overflow="auto"},i=()=>{t()?a():(l(!0),o.onOpen?.(),document.body.style.overflow="hidden")};return Y(te,{get when(){return t()},get children(){return[(()=>{const e=fg();return Ae(e,Fe),e})(),(()=>{const o=yg(),t=o.firstChild,l=t.nextSibling.nextSibling.firstChild.firstChild;return o.style.setProperty("z-index","1100"),o.addEventListener("click",a),Ae(t,Fe),l.style.setProperty("background-color","transparent"),l.style.setProperty("margin-left","20px"),l.style.setProperty("margin-right","20px"),l.addEventListener("click",n),l.addEventListener("pointerdown",n),Ae(l,(()=>{const o=M(()=>!!e.value);return()=>o()&&(()=>{const e=$g(),o=e.firstChild;e.style.setProperty("background","white"),e.style.setProperty("margin","auto"),e.style.setProperty("padding","7px");return"function"==typeof r?be(r,o):r=o,e})()})()),o})()]}})},Ag=ue('
');function fs(e){return e?(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""}):""}const ys=()=>Hd(),$s=()=>Vd(),bs=()=>Ud(),As=()=>Wd(),Ps=()=>Kd(),Ms=()=>zd(),_s=()=>Zd(),Ts=e=>(()=>{const r=Qd();return A(o=>{const t=e.size,l=e.size;return t!==o._v$&&pe(r,"width",o._v$=t),l!==o._v$2&&pe(r,"height",o._v$2=l),o},{_v$:void 0,_v$2:void 0}),r})(),ws=e=>{const r=e.size??24,o=Rd(e.name);if(o)return(()=>{const t=Yd();return t.style.setProperty("flex-shrink","0"),t.style.setProperty("display","flex"),t.style.setProperty("align-items","center"),t.style.setProperty("justify-content","center"),null!=`${r}px`?t.style.setProperty("width",`${r}px`):t.style.removeProperty("width"),null!=`${r}px`?t.style.setProperty("height",`${r}px`):t.style.removeProperty("height"),Ae(t,()=>o.icon({size:Math.round(.55*r),color:"white"})),A(r=>{const l=e.borderRadius??"50%",n=e.bgColor??o.color;return l!==r._v$3&&(null!=(r._v$3=l)?t.style.setProperty("border-radius",l):t.style.removeProperty("border-radius")),n!==r._v$4&&(null!=(r._v$4=n)?t.style.setProperty("background",n):t.style.removeProperty("background")),r},{_v$3:void 0,_v$4:void 0}),t})();if(e.apiHost){const[o,t]=b(!1);return(()=>{const l=Yd();return l.style.setProperty("flex-shrink","0"),l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("justify-content","center"),null!=`${r}px`?l.style.setProperty("width",`${r}px`):l.style.removeProperty("width"),null!=`${r}px`?l.style.setProperty("height",`${r}px`):l.style.removeProperty("height"),l.style.setProperty("overflow","hidden"),Ae(l,Y(te,{get when(){return!o()},get fallback(){return Y(Ts,{get size(){return Math.round(.6*r)}})},get children(){const r=Jd();return r.addEventListener("error",()=>t(!0)),r.style.setProperty("width","100%"),r.style.setProperty("height","100%"),r.style.setProperty("padding","3px"),r.style.setProperty("object-fit","contain"),A(o=>{const t=`${e.apiHost}/api/v1/node-icon/${e.name}`,l=e.name;return t!==o._v$5&&pe(r,"src",o._v$5=t),l!==o._v$6&&pe(r,"alt",o._v$6=l),o},{_v$5:void 0,_v$6:void 0}),r}})),A(r=>{const t=e.borderRadius??"50%",n=e.bgColor??(o()?"#9e9e9e":"#f5f5f5");return t!==r._v$7&&(null!=(r._v$7=t)?l.style.setProperty("border-radius",t):l.style.removeProperty("border-radius")),n!==r._v$8&&(null!=(r._v$8=n)?l.style.setProperty("background",n):l.style.removeProperty("background")),r},{_v$7:void 0,_v$8:void 0}),l})()}return(()=>{const o=Yd();return o.style.setProperty("flex-shrink","0"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("justify-content","center"),null!=`${r}px`?o.style.setProperty("width",`${r}px`):o.style.removeProperty("width"),null!=`${r}px`?o.style.setProperty("height",`${r}px`):o.style.removeProperty("height"),o.style.setProperty("background","#9e9e9e"),Ae(o,Y(Ts,{get size(){return Math.round(.6*r)}})),A(()=>null!=(e.borderRadius??"50%")?o.style.setProperty("border-radius",e.borderRadius??"50%"):o.style.removeProperty("border-radius")),o})()},Gs=(e,r)=>{if(Array.isArray(r)){const o=r.find(r=>r.name===e);if(o?.toolNode?.name)return o.toolNode.name}return e},Ls=e=>{const[r,o]=b(e.defaultOpen??!1),t=()=>o(!r());return(()=>{const o=jd(),l=o.firstChild,n=l.firstChild,a=n.nextSibling;return o.style.setProperty("border-radius","8px"),o.style.setProperty("margin-bottom","6px"),o.style.setProperty("overflow","hidden"),l.$$click=t,l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("width","100%"),l.style.setProperty("padding","10px 12px"),l.style.setProperty("cursor","pointer"),l.style.setProperty("user-select","none"),l.style.setProperty("gap","8px"),l.style.setProperty("font-size","0.85rem"),l.style.setProperty("font-family","inherit"),l.style.setProperty("color","inherit"),l.style.setProperty("text-align","left"),l.style.setProperty("border","none"),l.style.setProperty("background","transparent"),n.style.setProperty("flex","1"),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("gap","8px"),n.style.setProperty("text-align","left"),Ae(n,()=>e.header),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","center"),a.style.setProperty("flex-shrink","0"),a.style.setProperty("transition","transform 0.2s ease"),a.style.setProperty("opacity","0.5"),Ae(a,Y($s,{})),Ae(o,Y(te,{get when(){return r()},get children(){const r=Yd();return r.style.setProperty("padding","10px 12px"),r.style.setProperty("border-top","1px solid rgba(0,0,0,0.08)"),r.style.setProperty("background","rgba(0,0,0,0.02)"),Ae(r,()=>e.children),r}}),null),A(t=>{const n=`1px solid ${e.borderColor||"rgba(0,0,0,0.1)"}`,i=e.bgColor||"transparent",d=r(),s=r()?"rotate(180deg)":"rotate(0deg)";return n!==t._v$9&&(null!=(t._v$9=n)?o.style.setProperty("border",n):o.style.removeProperty("border")),i!==t._v$0&&(null!=(t._v$0=i)?o.style.setProperty("background",i):o.style.removeProperty("background")),d!==t._v$1&&pe(l,"aria-expanded",t._v$1=d),s!==t._v$10&&(null!=(t._v$10=s)?a.style.setProperty("transform",s):a.style.removeProperty("transform")),t},{_v$9:void 0,_v$0:void 0,_v$1:void 0,_v$10:void 0}),o})()},Cs={"font-family":"'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace","font-size":"0.75rem","line-height":"1.5",padding:"12px","border-radius":"6px",background:"rgba(0,0,0,0.04)","overflow-x":"auto","white-space":"pre-wrap","word-break":"break-word",margin:"0"},Es=e=>(()=>{const r=qd();return A(o=>{const t=Cs,l=fs(JSON.stringify(e.data,null,2));return o._v$11=ye(r,t,o._v$11),l!==o._v$12&&(r.innerHTML=o._v$12=l),o},{_v$11:void 0,_v$12:void 0}),r})(),Bs=e=>{Hn.setOptions({isNoP:!0,sanitize:!0});const r=()=>{if(!e.content)return null;try{return JSON.parse(e.content)}catch{return null}};return Y(te,{get when(){return r()},get fallback(){return Y(te,{get when(){return e.content},get fallback(){return(()=>{const e=rs();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e})()},get children(){const r=es();return r.style.setProperty("word-break","break-word"),r.style.setProperty("font-size","0.85rem"),r.style.setProperty("line-height","1.6"),A(()=>r.innerHTML=Hn.parse(e.content)),r}})},get children(){return Y(Es,{get data(){return r()}})}})},Ns=e=>{const r=e.artifact?.type,o=e.artifact?.data,t={border:"1px solid rgba(0,0,0,0.12)","border-radius":"6px",overflow:"hidden",background:"rgba(0,0,0,0.02)"};if("png"===r||"jpeg"===r||"jpg"===r){const r=((e,r,o,t)=>{if(e.startsWith("FILE-STORAGE::")&&r)return`${r}/api/v1/get-upload-file?chatflowId=${o}&chatId=${t}&fileName=${e.replace("FILE-STORAGE::","")}`;return e})(o,e.apiHost,e.chatflowid,e.chatId);return(()=>{const o=os(),l=o.firstChild;return pe(l,"src",r),l.style.setProperty("max-height","400px"),l.style.setProperty("max-width","100%"),l.style.setProperty("object-fit","contain"),l.style.setProperty("display","block"),A(r=>{const n={...t,display:"flex","justify-content":"center"},a=`artifact-${e.index}`;return r._v$13=ye(o,n,r._v$13),a!==r._v$14&&pe(l,"alt",r._v$14=a),r},{_v$13:void 0,_v$14:void 0}),o})()}return"html"===r?(()=>{const e=Yd();return A(r=>{const l={...t,padding:"8px 12px","font-size":"0.85rem"},n=Bi.sanitize(o);return r._v$15=ye(e,l,r._v$15),n!==r._v$16&&(e.innerHTML=r._v$16=n),r},{_v$15:void 0,_v$16:void 0}),e})():(()=>{const e=Yd();return Ae(e,Y(Bs,{content:o})),A(r=>ye(e,{...t,padding:"8px 12px"},r)),e})()},Os=e=>{const r=async()=>{if(e.apiHost)try{const r=await fetch(`${e.apiHost}/api/v1/openai-assistants-file/download`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileName:e.annotation.fileName,chatflowId:e.chatflowid,chatId:e.chatId})}),o=await r.blob(),t=window.URL.createObjectURL(o),l=document.createElement("a");l.href=t,l.download=e.annotation.fileName,document.body.appendChild(l),l.click(),l.remove(),window.URL.revokeObjectURL(t)}catch(e){console.error("Download failed:",e)}};return(()=>{const o=ts(),t=o.firstChild;return o.$$click=r,o.style.setProperty("display","inline-flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","6px"),o.style.setProperty("padding","4px 12px"),o.style.setProperty("border","1px solid rgba(0,0,0,0.2)"),o.style.setProperty("border-radius","6px"),o.style.setProperty("background","transparent"),o.style.setProperty("cursor","pointer"),o.style.setProperty("font-size","0.8rem"),o.style.setProperty("color","inherit"),Ae(t,()=>e.annotation.fileName),Ae(o,Y(_s,{}),null),A(()=>pe(o,"title",`Download ${e.annotation.fileName}`)),o})()},Is=e=>{const[r,o]=b("rendered"),[t,l]=b(null),n=()=>e.node?.data?Xd(e.node.data):{},a=()=>(e=>{const r=e?.output;if(!r)return null;const o={};if(r.timeMetadata?.delta&&(o.time=`${(r.timeMetadata.delta/1e3).toFixed(2)} seconds`),r.usageMetadata?.total_tokens&&(o.tokens=`${r.usageMetadata.total_tokens} tokens`),null!=r.usageMetadata?.total_cost&&Number(r.usageMetadata.total_cost)>=0){const e=Number(r.usageMetadata.total_cost);o.cost=e>=.01?`$${e.toFixed(2)}`:`$${e.toFixed(6)}`}return Object.keys(o).length>0?o:null})(n()),i=(e,r)=>({display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`}),d={"margin-bottom":"16px"},s={"font-weight":"700","font-size":"0.9rem","margin-bottom":"8px"},m={border:"1px solid rgba(0,0,0,0.1)","border-radius":"10px",padding:"14px 16px",background:"rgba(0,0,0,0.015)"},g=()=>{const r=n();return r?(()=>{const o=cs(),t=o.firstChild,n=t.firstChild,a=n.nextSibling,g=t.nextSibling,c=g.firstChild,u=c.nextSibling;return Ae(o,Y(te,{get when(){return r.output?.availableTools?.length},get children(){const o=ss(),t=o.firstChild,l=t.nextSibling;return Ae(l,Y(oe,{get each(){return r.output.availableTools},children:o=>{const t=(l=o.name,n=r.output?.usedTools,Array.isArray(n)&&n.some(e=>e.tool===l));var l,n;const a=o.toolNode?.name||o.name;return Y(Ls,{borderColor:t?"#4CAF50":void 0,bgColor:t?"rgba(76,175,80,0.05)":void 0,get header(){return[Y(ws,{name:a,get apiHost(){return e.apiHost},size:22}),(()=>{const e=ls();return Ae(e,()=>o.toolNode?.label||o.name),e})(),Y(te,{when:t,get children(){const e=us();return A(r=>ye(e,i("#E8F5E9","#2E7D32"),r)),e}})]},get children(){return Y(Es,{data:o})}})}})),A(e=>{const r=d,n=s,a=m;return e._v$20=ye(o,r,e._v$20),e._v$21=ye(t,n,e._v$21),e._v$22=ye(l,a,e._v$22),e},{_v$20:void 0,_v$21:void 0,_v$22:void 0}),o}}),t),Ae(a,Y(te,{get when(){return r.input?.messages&&Array.isArray(r.input.messages)&&r.input.messages.length>0},get fallback(){return Y(te,{get when(){return r.input?.form||r.input?.http||r.input?.conditions},get fallback(){return Y(te,{get when(){return r.input?.code},get fallback(){return Y(te,{get when(){return r.input},get fallback(){return(()=>{const e=rs();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e})()},get children(){return Y(te,{get when(){return r.input?.question},get fallback(){return Y(Es,{get data(){return r.input}})},get children(){return Y(Bs,{get content(){return r.input.question}})}})}})},get children(){const e=xs();return Ae(e,()=>r.input.code),A(r=>ye(e,Cs,r)),e}})},get children(){return Y(Es,{get data(){return r.input.form||r.input.http||r.input.conditions}})}})},get children(){const o=Yd();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","4px"),Ae(o,Y(oe,{get each(){return r.input.messages},children:o=>((r,o)=>{const t=r.role||"unknown",n=(e=>{switch(e?.toLowerCase()){case"assistant":case"ai":return{background:"#E8F5E9",color:"#2E7D32"};case"system":return{background:"#FFF3E0",color:"#E65100"};case"developer":case"user":case"human":return{background:"#E3F2FD",color:"#1565C0"};case"tool":case"function":return{background:"#F3E5F5",color:"#7B1FA2"};default:return{background:"#F5F5F5",color:"#616161"}}})(t),a=(e,r,o,t)=>(()=>{const l=ls();return Ae(l,o),A(o=>ye(l,{display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`,...t},o)),l})();return(()=>{const i=Yd();return i.style.setProperty("margin-bottom","8px"),i.style.setProperty("padding","8px"),i.style.setProperty("border-radius","6px"),i.style.setProperty("background","rgba(0,0,0,0.02)"),Ae(i,()=>a(n.background,n.color,t),null),Ae(i,Y(te,{get when(){return r.name},get children(){return a(n.background,n.color,r.name,{"margin-left":"4px"})}}),null),Ae(i,Y(te,{get when(){return r.tool_calls&&Array.isArray(r.tool_calls)&&r.tool_calls.length>0},get children(){return Y(oe,{get each(){return r.tool_calls},children:e=>Y(Ls,{borderColor:"#FFC107",bgColor:"rgba(255,193,7,0.05)",get header(){return[Y(Ms,{}),(()=>{const r=ls();return Ae(r,()=>e.function?.name||e.name||"Tool Call"),r})(),M(()=>a("#FFF3E0","#E65100","Called"))]},get children(){return Y(Es,{data:e})}})})}}),null),Ae(i,Y(te,{get when(){return"tool"===t&&r.name},get children(){const e=ns(),o=e.firstChild;return e.style.setProperty("display","flex"),e.style.setProperty("align-items","center"),e.style.setProperty("gap","8px"),e.style.setProperty("margin-top","4px"),e.style.setProperty("flex-wrap","wrap"),Ae(e,Y(Ms,{}),o),o.style.setProperty("font-size","0.85rem"),Ae(o,()=>r.name),Ae(e,Y(te,{get when(){return r.tool_call_id},get children(){return a("#F5F5F5","#616161",r.tool_call_id)}}),null),e}}),null),Ae(i,Y(te,{get when(){return r.additional_kwargs?.usedTools?.length},get children(){const t=Yd();return t.style.setProperty("margin-top","8px"),t.style.setProperty("display","flex"),t.style.setProperty("gap","4px"),t.style.setProperty("flex-wrap","wrap"),Ae(t,Y(oe,{get each(){return r.additional_kwargs.usedTools},children:r=>Y(te,{when:r,get children(){const t=as(),n=t.firstChild;return t.$$click=()=>l(r),t.style.setProperty("display","inline-flex"),t.style.setProperty("align-items","center"),t.style.setProperty("gap","4px"),t.style.setProperty("padding","3px 10px"),t.style.setProperty("border-radius","12px"),t.style.setProperty("font-size","0.75rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("cursor","pointer"),t.style.setProperty("transition","filter 0.15s ease"),Ae(t,Y(ws,{get name(){return Gs(r.tool,o?.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),n),Ae(t,()=>r.tool,null),A(e=>{const o=r.error?"#FFEBEE":"#F3E5F5",l=r.error?"#C62828":"#7B1FA2",n="1px solid "+(r.error?"#C6282833":"#7B1FA233");return o!==e._v$17&&(null!=(e._v$17=o)?t.style.setProperty("background",o):t.style.removeProperty("background")),l!==e._v$18&&(null!=(e._v$18=l)?t.style.setProperty("color",l):t.style.removeProperty("color")),n!==e._v$19&&(null!=(e._v$19=n)?t.style.setProperty("border",n):t.style.removeProperty("border")),e},{_v$17:void 0,_v$18:void 0,_v$19:void 0}),t}})})),t}}),null),Ae(i,Y(te,{get when(){return r.additional_kwargs?.artifacts?.length},get children(){const o=Yd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),Ae(o,Y(oe,{get each(){return r.additional_kwargs.artifacts},children:(r,o)=>Y(Ns,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),Ae(i,Y(te,{get when(){return"user"===t&&Array.isArray(r.content)&&r.content.length>0},get children(){const o=Yd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),Ae(o,Y(oe,{get each(){return r.content},children:(r,o)=>{const t="stored-file"===r.type&&e.apiHost?`${e.apiHost}/api/v1/get-upload-file?chatflowId=${e.chatflowid}&chatId=${e.chatId}&fileName=${r.name}`:r.name;return(()=>{const e=os(),r=e.firstChild;return e.style.setProperty("border","1px solid rgba(0,0,0,0.12)"),e.style.setProperty("border-radius","6px"),e.style.setProperty("overflow","hidden"),e.style.setProperty("display","flex"),e.style.setProperty("justify-content","center"),e.style.setProperty("background","rgba(0,0,0,0.02)"),pe(r,"src",t),r.style.setProperty("max-height","400px"),r.style.setProperty("max-width","100%"),r.style.setProperty("object-fit","contain"),r.style.setProperty("display","block"),A(()=>pe(r,"alt",`file-upload-${o()}`)),e})()}})),o}}),null),Ae(i,Y(te,{get when(){return"string"==typeof r.content&&r.content},get children(){const e=Yd();return e.style.setProperty("margin-top","4px"),Ae(e,Y(Bs,{get content(){return r.content}})),e}}),null),Ae(i,Y(te,{get when(){return!r.content},get children(){const e=rs();return e.style.setProperty("margin-top","4px"),e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}}),null),Ae(i,Y(te,{get when(){return r.additional_kwargs?.fileAnnotations?.length},get children(){const o=Yd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),Ae(o,Y(oe,{get each(){return r.additional_kwargs.fileAnnotations},children:r=>Y(Os,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),i})()})(o,r)})),o}})),Ae(u,Y(te,{get when(){return!(r.output?.form||r.output?.http||r.output?.conditions)},get fallback(){return Y(te,{get when(){return r.output?.conditions},get fallback(){return Y(Es,{get data(){return r.output?.form||r.output?.http}})},get children(){return Y(oe,{each:r.output.conditions.filter(e=>e.isFulfilled),children:(e,r)=>(()=>{const o=is(),t=o.firstChild,l=t.firstChild,n=l.nextSibling;return o.style.setProperty("border","1px solid #4CAF50"),o.style.setProperty("border-radius","6px"),o.style.setProperty("padding","8px 12px"),o.style.setProperty("margin-bottom","6px"),t.style.setProperty("display","flex"),t.style.setProperty("justify-content","space-between"),t.style.setProperty("align-items","center"),l.style.setProperty("font-size","0.85rem"),Ae(l,(()=>{const o=M(()=>!("string"!==e.type||"equal"!==e.operation||e.value1||e.value2));return()=>o()?"Else condition fulfilled":`Condition ${r()}`})()),Ae(o,Y(te,{get when(){return!("string"===e.type&&"equal"===e.operation&&!e.value1&&!e.value2)},get children(){const r=Yd();return r.style.setProperty("margin-top","4px"),Ae(r,Y(Es,{data:e})),r}}),null),A(e=>ye(n,i("#E8F5E9","#2E7D32"),e)),o})()})}})},get children(){return[Y(te,{get when(){return r.output?.usedTools?.length},get children(){const o=Yd();return o.style.setProperty("display","flex"),o.style.setProperty("gap","4px"),o.style.setProperty("flex-wrap","wrap"),o.style.setProperty("margin-bottom","8px"),Ae(o,Y(oe,{get each(){return r.output.usedTools},children:o=>Y(te,{when:o,get children(){const t=as(),n=t.firstChild;return t.$$click=()=>l(o),Ae(t,Y(ws,{get name(){return Gs(o.tool,r.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),n),Ae(t,()=>o.tool,null),A(e=>ye(t,{...i(o.error?"#FFEBEE":"#F3E5F5",o.error?"#C62828":"#7B1FA2"),cursor:"pointer",transition:"filter 0.15s ease"},e)),t}})})),o}}),Y(te,{get when(){return r.output?.artifacts?.length},get children(){const o=Yd();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),o.style.setProperty("margin-bottom","8px"),Ae(o,Y(oe,{get each(){return r.output.artifacts},children:(r,o)=>Y(Ns,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),Y(te,{get when(){return r.output?.content},get fallback(){return Y(te,{get when(){return r.output},get children(){const e=rs();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}})},get children(){return Y(Bs,{get content(){return r.output.content}})}}),Y(te,{get when(){return r.output?.fileAnnotations?.length},get children(){const o=Yd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),Ae(o,Y(oe,{get each(){return r.output.fileAnnotations},children:r=>Y(Os,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}})]}})),Ae(o,Y(te,{get when(){return r.error},get children(){const e=ms(),o=e.firstChild,t=o.nextSibling,l=t.firstChild;return l.style.setProperty("padding","8px 12px"),l.style.setProperty("border-radius","6px"),l.style.setProperty("border","1px solid #F44336"),l.style.setProperty("background","rgba(244,67,54,0.08)"),l.style.setProperty("color","#C62828"),l.style.setProperty("font-size","0.85rem"),l.style.setProperty("white-space","pre-wrap"),l.style.setProperty("word-break","break-word"),Ae(l,(()=>{const e=M(()=>"object"==typeof r.error);return()=>e()?JSON.stringify(r.error,null,2):r.error})()),A(r=>{const l=d,n={...s,color:"#C62828"},a={...m,"border-color":"rgba(244,67,54,0.4)",background:"rgba(244,67,54,0.04)"};return r._v$23=ye(e,l,r._v$23),r._v$24=ye(o,n,r._v$24),r._v$25=ye(t,a,r._v$25),r},{_v$23:void 0,_v$24:void 0,_v$25:void 0}),e}}),null),Ae(o,Y(te,{get when(){return M(()=>!!r.state)()&&Object.keys(r.state).length>0},get children(){const e=gs(),o=e.firstChild,t=o.nextSibling;return Ae(t,Y(Es,{get data(){return r.state}})),A(r=>{const l=d,n=s,a=m;return r._v$26=ye(e,l,r._v$26),r._v$27=ye(o,n,r._v$27),r._v$28=ye(t,a,r._v$28),r},{_v$26:void 0,_v$27:void 0,_v$28:void 0}),e}}),null),A(e=>{const r=d,o=s,l=m,i=d,x=s,p=m;return e._v$29=ye(t,r,e._v$29),e._v$30=ye(n,o,e._v$30),e._v$31=ye(a,l,e._v$31),e._v$32=ye(g,i,e._v$32),e._v$33=ye(c,x,e._v$33),e._v$34=ye(u,p,e._v$34),e},{_v$29:void 0,_v$30:void 0,_v$31:void 0,_v$32:void 0,_v$33:void 0,_v$34:void 0}),o})():(()=>{const e=ds();return e.style.setProperty("padding","20px"),e.style.setProperty("text-align","center"),e.style.setProperty("opacity","0.5"),e})()};return[(()=>{const r=ps(),o=r.firstChild,t=o.firstChild,l=o.nextSibling;return r.style.setProperty("display","flex"),r.style.setProperty("flex-direction","column"),r.style.setProperty("gap","16px"),r.style.setProperty("padding","16px 20px"),r.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","10px"),o.style.setProperty("min-width","0"),Ae(o,Y(ws,{get name(){return e.node.name},get apiHost(){return e.apiHost},size:36}),t),t.style.setProperty("font-weight","600"),t.style.setProperty("font-size","1.05rem"),Ae(t,()=>e.node.label),l.style.setProperty("display","flex"),l.style.setProperty("flex-wrap","wrap"),l.style.setProperty("align-items","center"),l.style.setProperty("gap","8px"),l.style.setProperty("flex","1"),Ae(l,Y(te,{get when(){return a()},children:e=>[Y(te,{get when(){return e().time},get children(){const r=as(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#4caf50"),r.style.setProperty("color","#fff"),Ae(r,Y(bs,{}),o),Ae(r,()=>e().time,null),r}}),Y(te,{get when(){return e().tokens},get children(){const r=as(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#7c4dff"),r.style.setProperty("color","#fff"),Ae(r,Y(Ps,{}),o),Ae(r,()=>e().tokens,null),r}}),Y(te,{get when(){return e().cost},get children(){const r=as(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#ff9800"),r.style.setProperty("color","#fff"),Ae(r,Y(As,{}),o),Ae(r,()=>e().cost,null),r}})]})),r})(),(()=>{const e=hs(),t=e.firstChild,l=t.nextSibling;return e.style.setProperty("display","flex"),e.style.setProperty("gap","0"),e.style.setProperty("padding","0 20px"),e.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),t.$$click=()=>o("rendered"),t.style.setProperty("padding","10px 16px"),t.style.setProperty("border","none"),t.style.setProperty("background","transparent"),t.style.setProperty("cursor","pointer"),t.style.setProperty("font-size","0.875rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("font-family","inherit"),t.style.setProperty("margin-bottom","-1px"),l.$$click=()=>o("raw"),l.style.setProperty("padding","10px 16px"),l.style.setProperty("border","none"),l.style.setProperty("background","transparent"),l.style.setProperty("cursor","pointer"),l.style.setProperty("font-size","0.875rem"),l.style.setProperty("font-weight","500"),l.style.setProperty("font-family","inherit"),l.style.setProperty("margin-bottom","-1px"),A(e=>{const o="rendered"===r()?"#1976d2":"inherit",n="rendered"===r()?1:.6,a="rendered"===r()?"2px solid #1976d2":"2px solid transparent",i="raw"===r()?"#1976d2":"inherit",d="raw"===r()?1:.6,s="raw"===r()?"2px solid #1976d2":"2px solid transparent";return o!==e._v$35&&(null!=(e._v$35=o)?t.style.setProperty("color",o):t.style.removeProperty("color")),n!==e._v$36&&(null!=(e._v$36=n)?t.style.setProperty("opacity",n):t.style.removeProperty("opacity")),a!==e._v$37&&(null!=(e._v$37=a)?t.style.setProperty("border-bottom",a):t.style.removeProperty("border-bottom")),i!==e._v$38&&(null!=(e._v$38=i)?l.style.setProperty("color",i):l.style.removeProperty("color")),d!==e._v$39&&(null!=(e._v$39=d)?l.style.setProperty("opacity",d):l.style.removeProperty("opacity")),s!==e._v$40&&(null!=(e._v$40=s)?l.style.setProperty("border-bottom",s):l.style.removeProperty("border-bottom")),e},{_v$35:void 0,_v$36:void 0,_v$37:void 0,_v$38:void 0,_v$39:void 0,_v$40:void 0}),e})(),(()=>{const e=Yd();return e.style.setProperty("padding","16px 20px"),e.style.setProperty("overflow-y","auto"),e.style.setProperty("flex","1"),Ae(e,Y(te,{get when(){return"rendered"===r()},get fallback(){return(()=>{const e=qd();return A(r=>{const o=Cs,t=fs(JSON.stringify(n(),null,2));return r._v$43=ye(e,o,r._v$43),t!==r._v$44&&(e.innerHTML=r._v$44=t),r},{_v$43:void 0,_v$44:void 0}),e})()},get children(){return g()}})),e})(),Y(te,{get when(){return t()},get children(){return[(()=>{const r=vs(),o=r.firstChild,a=o.firstChild,i=a.firstChild,d=i.firstChild,s=i.nextSibling,m=a.nextSibling;return r.$$click=()=>l(null),r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1004"),r.style.setProperty("display","flex"),r.style.setProperty("align-items","center"),r.style.setProperty("justify-content","center"),o.$$click=e=>e.stopPropagation(),o.style.setProperty("position","relative"),o.style.setProperty("width","100%"),o.style.setProperty("max-width","560px"),o.style.setProperty("margin","24px 16px"),o.style.setProperty("border-radius","8px"),o.style.setProperty("box-shadow","0 20px 40px -4px rgba(0,0,0,0.2), 0 8px 16px -4px rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("max-height","calc(100% - 80px)"),o.style.setProperty("overflow","hidden"),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","space-between"),a.style.setProperty("padding","14px 20px"),a.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),i.style.setProperty("display","flex"),i.style.setProperty("align-items","center"),i.style.setProperty("gap","8px"),Ae(i,Y(ws,{get name(){return Gs(t()?.tool||"",n()?.output?.availableTools)},get apiHost(){return e.apiHost},size:24}),d),d.style.setProperty("font-weight","600"),d.style.setProperty("font-size","0.95rem"),Ae(d,()=>t()?.tool||"Tool Detail"),Ae(i,Y(te,{get when(){return t()?.error},get children(){const e=Ss();return e.style.setProperty("display","inline-flex"),e.style.setProperty("align-items","center"),e.style.setProperty("padding","2px 8px"),e.style.setProperty("border-radius","10px"),e.style.setProperty("font-size","0.7rem"),e.style.setProperty("font-weight","500"),e.style.setProperty("background","#FFEBEE"),e.style.setProperty("color","#C62828"),e.style.setProperty("border","1px solid #C6282833"),e}}),null),s.$$click=()=>l(null),s.style.setProperty("border","none"),s.style.setProperty("background","transparent"),s.style.setProperty("cursor","pointer"),s.style.setProperty("padding","4px"),s.style.setProperty("border-radius","4px"),s.style.setProperty("display","flex"),s.style.setProperty("align-items","center"),s.style.setProperty("color","inherit"),s.style.setProperty("opacity","0.7"),Ae(s,Y(ys,{})),m.style.setProperty("padding","16px 20px"),m.style.setProperty("overflow-y","auto"),Ae(m,Y(Es,{get data(){return t()}})),A(r=>{const t=e.backgroundColor??"#ffffff",l=e.textColor??"#303235";return t!==r._v$41&&(null!=(r._v$41=t)?o.style.setProperty("background-color",t):o.style.removeProperty("background-color")),l!==r._v$42&&(null!=(r._v$42=l)?o.style.setProperty("color",l):o.style.removeProperty("color")),r},{_v$41:void 0,_v$42:void 0}),r})(),(()=>{const e=Yd();return e.$$click=e=>{e.stopPropagation(),l(null)},e.style.setProperty("position","fixed"),e.style.setProperty("inset","0"),e.style.setProperty("z-index","1003"),e.style.setProperty("background-color","rgba(0,0,0,0.35)"),e})()]}})]};xe(["click"]);const ks=ue("
'),$g=ue("
");const bg=e=>{let r;const[o]=re(e,["onOpen","onClose","isOpen","value"]);T(()=>{var o;r&&(r.innerHTML=("string"!=typeof(o=JSON.stringify(e?.value,void 0,2))&&(o=JSON.stringify(o,void 0,2)),(o=o.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""})))});const[t,l]=b(o.isOpen??!1);P(()=>{Re(e.isOpen)||e.isOpen===t()||i()});const n=e=>{e.stopPropagation()},a=()=>{l(!1),o.onClose?.(),document.body.style.overflow="auto"},i=()=>{t()?a():(l(!0),o.onOpen?.(),document.body.style.overflow="hidden")};return Y(te,{get when(){return t()},get children(){return[(()=>{const e=fg();return Ae(e,Fe),e})(),(()=>{const o=yg(),t=o.firstChild,l=t.nextSibling.nextSibling.firstChild.firstChild;return o.style.setProperty("z-index","1100"),o.addEventListener("click",a),Ae(t,Fe),l.style.setProperty("background-color","transparent"),l.style.setProperty("margin-left","20px"),l.style.setProperty("margin-right","20px"),l.addEventListener("click",n),l.addEventListener("pointerdown",n),Ae(l,(()=>{const o=M(()=>!!e.value);return()=>o()&&(()=>{const e=$g(),o=e.firstChild;e.style.setProperty("background","white"),e.style.setProperty("margin","auto"),e.style.setProperty("padding","7px");return"function"==typeof r?be(r,o):r=o,e})()})()),o})()]}})},Ag=ue('
');function Ss(e){return e?(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""}):""}const vs=()=>Rd(),fs=()=>Xd(),ys=()=>Hd(),$s=()=>Vd(),bs=()=>Ud(),As=()=>Wd(),Ps=()=>Kd(),Ms=e=>(()=>{const r=zd();return A(o=>{const t=e.size,l=e.size;return t!==o._v$&&pe(r,"width",o._v$=t),l!==o._v$2&&pe(r,"height",o._v$2=l),o},{_v$:void 0,_v$2:void 0}),r})(),_s=e=>{const r=e.size??24,o=Dd(e.name);if(o)return(()=>{const t=Zd();return t.style.setProperty("flex-shrink","0"),t.style.setProperty("display","flex"),t.style.setProperty("align-items","center"),t.style.setProperty("justify-content","center"),null!=`${r}px`?t.style.setProperty("width",`${r}px`):t.style.removeProperty("width"),null!=`${r}px`?t.style.setProperty("height",`${r}px`):t.style.removeProperty("height"),Ae(t,()=>o.icon({size:Math.round(.55*r),color:"white"})),A(r=>{const l=e.borderRadius??"50%",n=e.bgColor??o.color;return l!==r._v$3&&(null!=(r._v$3=l)?t.style.setProperty("border-radius",l):t.style.removeProperty("border-radius")),n!==r._v$4&&(null!=(r._v$4=n)?t.style.setProperty("background",n):t.style.removeProperty("background")),r},{_v$3:void 0,_v$4:void 0}),t})();if(e.apiHost){const[o,t]=b(!1);return(()=>{const l=Zd();return l.style.setProperty("flex-shrink","0"),l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("justify-content","center"),null!=`${r}px`?l.style.setProperty("width",`${r}px`):l.style.removeProperty("width"),null!=`${r}px`?l.style.setProperty("height",`${r}px`):l.style.removeProperty("height"),l.style.setProperty("overflow","hidden"),Ae(l,Y(te,{get when(){return!o()},get fallback(){return Y(Ms,{get size(){return Math.round(.6*r)}})},get children(){const r=Qd();return r.addEventListener("error",()=>t(!0)),r.style.setProperty("width","100%"),r.style.setProperty("height","100%"),r.style.setProperty("padding","3px"),r.style.setProperty("object-fit","contain"),A(o=>{const t=`${e.apiHost}/api/v1/node-icon/${e.name}`,l=e.name;return t!==o._v$5&&pe(r,"src",o._v$5=t),l!==o._v$6&&pe(r,"alt",o._v$6=l),o},{_v$5:void 0,_v$6:void 0}),r}})),A(r=>{const t=e.borderRadius??"50%",n=e.bgColor??(o()?"#9e9e9e":"#f5f5f5");return t!==r._v$7&&(null!=(r._v$7=t)?l.style.setProperty("border-radius",t):l.style.removeProperty("border-radius")),n!==r._v$8&&(null!=(r._v$8=n)?l.style.setProperty("background",n):l.style.removeProperty("background")),r},{_v$7:void 0,_v$8:void 0}),l})()}return(()=>{const o=Zd();return o.style.setProperty("flex-shrink","0"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("justify-content","center"),null!=`${r}px`?o.style.setProperty("width",`${r}px`):o.style.removeProperty("width"),null!=`${r}px`?o.style.setProperty("height",`${r}px`):o.style.removeProperty("height"),o.style.setProperty("background","#9e9e9e"),Ae(o,Y(Ms,{get size(){return Math.round(.6*r)}})),A(()=>null!=(e.borderRadius??"50%")?o.style.setProperty("border-radius",e.borderRadius??"50%"):o.style.removeProperty("border-radius")),o})()},Ts=(e,r)=>{if(Array.isArray(r)){const o=r.find(r=>r.name===e);if(o?.toolNode?.name)return o.toolNode.name}return e},ws=e=>{const[r,o]=b(e.defaultOpen??!1),t=()=>o(!r());return(()=>{const o=Yd(),l=o.firstChild,n=l.firstChild,a=n.nextSibling;return o.style.setProperty("border-radius","8px"),o.style.setProperty("margin-bottom","6px"),o.style.setProperty("overflow","hidden"),l.$$click=t,l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("width","100%"),l.style.setProperty("padding","10px 12px"),l.style.setProperty("cursor","pointer"),l.style.setProperty("user-select","none"),l.style.setProperty("gap","8px"),l.style.setProperty("font-size","0.85rem"),l.style.setProperty("font-family","inherit"),l.style.setProperty("color","inherit"),l.style.setProperty("text-align","left"),l.style.setProperty("border","none"),l.style.setProperty("background","transparent"),n.style.setProperty("flex","1"),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("gap","8px"),n.style.setProperty("text-align","left"),Ae(n,()=>e.header),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","center"),a.style.setProperty("flex-shrink","0"),a.style.setProperty("transition","transform 0.2s ease"),a.style.setProperty("opacity","0.5"),Ae(a,Y(fs,{})),Ae(o,Y(te,{get when(){return r()},get children(){const r=Zd();return r.style.setProperty("padding","10px 12px"),r.style.setProperty("border-top","1px solid rgba(0,0,0,0.08)"),r.style.setProperty("background","rgba(0,0,0,0.02)"),Ae(r,()=>e.children),r}}),null),A(t=>{const n=`1px solid ${e.borderColor||"rgba(0,0,0,0.1)"}`,i=e.bgColor||"transparent",d=r(),s=r()?"rotate(180deg)":"rotate(0deg)";return n!==t._v$9&&(null!=(t._v$9=n)?o.style.setProperty("border",n):o.style.removeProperty("border")),i!==t._v$0&&(null!=(t._v$0=i)?o.style.setProperty("background",i):o.style.removeProperty("background")),d!==t._v$1&&pe(l,"aria-expanded",t._v$1=d),s!==t._v$10&&(null!=(t._v$10=s)?a.style.setProperty("transform",s):a.style.removeProperty("transform")),t},{_v$9:void 0,_v$0:void 0,_v$1:void 0,_v$10:void 0}),o})()},Gs={"font-family":"'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace","font-size":"0.75rem","line-height":"1.5",padding:"12px","border-radius":"6px",background:"rgba(0,0,0,0.04)","overflow-x":"auto","white-space":"pre-wrap","word-break":"break-word",margin:"0"},Ls=e=>(()=>{const r=Jd();return A(o=>{const t=Gs,l=Ss(JSON.stringify(e.data,null,2));return o._v$11=ye(r,t,o._v$11),l!==o._v$12&&(r.innerHTML=o._v$12=l),o},{_v$11:void 0,_v$12:void 0}),r})(),Cs=e=>{Hn.setOptions({isNoP:!0,sanitize:!0});const r=()=>{if(!e.content)return null;try{return JSON.parse(e.content)}catch{return null}};return Y(te,{get when(){return r()},get fallback(){return Y(te,{get when(){return e.content},get fallback(){return(()=>{const e=qd();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e})()},get children(){const r=jd();return r.style.setProperty("word-break","break-word"),r.style.setProperty("font-size","0.85rem"),r.style.setProperty("line-height","1.6"),A(()=>r.innerHTML=Hn.parse(e.content)),r}})},get children(){return Y(Ls,{get data(){return r()}})}})},Es=e=>{const r=e.artifact?.type,o=e.artifact?.data,t={border:"1px solid rgba(0,0,0,0.12)","border-radius":"6px",overflow:"hidden",background:"rgba(0,0,0,0.02)"};if("png"===r||"jpeg"===r||"jpg"===r){const r=((e,r,o,t)=>{if(e.startsWith("FILE-STORAGE::")&&r)return`${r}/api/v1/get-upload-file?chatflowId=${o}&chatId=${t}&fileName=${e.replace("FILE-STORAGE::","")}`;return e})(o,e.apiHost,e.chatflowid,e.chatId);return(()=>{const o=es(),l=o.firstChild;return pe(l,"src",r),l.style.setProperty("max-height","400px"),l.style.setProperty("max-width","100%"),l.style.setProperty("object-fit","contain"),l.style.setProperty("display","block"),A(r=>{const n={...t,display:"flex","justify-content":"center"},a=`artifact-${e.index}`;return r._v$13=ye(o,n,r._v$13),a!==r._v$14&&pe(l,"alt",r._v$14=a),r},{_v$13:void 0,_v$14:void 0}),o})()}return"html"===r?(()=>{const e=Zd();return A(r=>{const l={...t,padding:"8px 12px","font-size":"0.85rem"},n=Ci.sanitize(o);return r._v$15=ye(e,l,r._v$15),n!==r._v$16&&(e.innerHTML=r._v$16=n),r},{_v$15:void 0,_v$16:void 0}),e})():(()=>{const e=Zd();return Ae(e,Y(Cs,{content:o})),A(r=>ye(e,{...t,padding:"8px 12px"},r)),e})()},Bs=e=>{const r=async()=>{if(e.apiHost)try{const r=await fetch(`${e.apiHost}/api/v1/openai-assistants-file/download`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileName:e.annotation.fileName,chatflowId:e.chatflowid,chatId:e.chatId})}),o=await r.blob(),t=window.URL.createObjectURL(o),l=document.createElement("a");l.href=t,l.download=e.annotation.fileName,document.body.appendChild(l),l.click(),l.remove(),window.URL.revokeObjectURL(t)}catch(e){console.error("Download failed:",e)}};return(()=>{const o=rs(),t=o.firstChild;return o.$$click=r,o.style.setProperty("display","inline-flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","6px"),o.style.setProperty("padding","4px 12px"),o.style.setProperty("border","1px solid rgba(0,0,0,0.2)"),o.style.setProperty("border-radius","6px"),o.style.setProperty("background","transparent"),o.style.setProperty("cursor","pointer"),o.style.setProperty("font-size","0.8rem"),o.style.setProperty("color","inherit"),Ae(t,()=>e.annotation.fileName),Ae(o,Y(Ps,{}),null),A(()=>pe(o,"title",`Download ${e.annotation.fileName}`)),o})()},Ns=e=>{const[r,o]=b("rendered"),[t,l]=b(null),n=()=>e.node?.data?Fd(e.node.data):{},a=()=>(e=>{const r=e?.output;if(!r)return null;const o={};if(r.timeMetadata?.delta&&(o.time=`${(r.timeMetadata.delta/1e3).toFixed(2)} seconds`),r.usageMetadata?.total_tokens&&(o.tokens=`${r.usageMetadata.total_tokens} tokens`),null!=r.usageMetadata?.total_cost&&Number(r.usageMetadata.total_cost)>=0){const e=Number(r.usageMetadata.total_cost);o.cost=e>=.01?`$${e.toFixed(2)}`:`$${e.toFixed(6)}`}return Object.keys(o).length>0?o:null})(n()),i=(e,r)=>({display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`}),d={"margin-bottom":"16px"},s={"font-weight":"700","font-size":"0.9rem","margin-bottom":"8px"},m={border:"1px solid rgba(0,0,0,0.1)","border-radius":"10px",padding:"14px 16px",background:"rgba(0,0,0,0.015)"},g=()=>{const r=n();return r?(()=>{const o=ms(),t=o.firstChild,n=t.firstChild,a=n.nextSibling,g=t.nextSibling,c=g.firstChild,u=c.nextSibling;return Ae(o,Y(te,{get when(){return r.output?.availableTools?.length},get children(){const o=is(),t=o.firstChild,l=t.nextSibling;return Ae(l,Y(oe,{get each(){return r.output.availableTools},children:o=>{const t=(l=o.name,n=r.output?.usedTools,Array.isArray(n)&&n.some(e=>e.tool===l));var l,n;const a=o.toolNode?.name||o.name;return Y(ws,{borderColor:t?"#4CAF50":void 0,bgColor:t?"rgba(76,175,80,0.05)":void 0,get header(){return[Y(_s,{name:a,get apiHost(){return e.apiHost},size:22}),(()=>{const e=os();return Ae(e,()=>o.toolNode?.label||o.name),e})(),Y(te,{when:t,get children(){const e=gs();return A(r=>ye(e,i("#E8F5E9","#2E7D32"),r)),e}})]},get children(){return Y(Ls,{data:o})}})}})),A(e=>{const r=d,n=s,a=m;return e._v$20=ye(o,r,e._v$20),e._v$21=ye(t,n,e._v$21),e._v$22=ye(l,a,e._v$22),e},{_v$20:void 0,_v$21:void 0,_v$22:void 0}),o}}),t),Ae(a,Y(te,{get when(){return r.input?.messages&&Array.isArray(r.input.messages)&&r.input.messages.length>0},get fallback(){return Y(te,{get when(){return r.input?.form||r.input?.http||r.input?.conditions},get fallback(){return Y(te,{get when(){return r.input?.code},get fallback(){return Y(te,{get when(){return r.input},get fallback(){return(()=>{const e=qd();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e})()},get children(){return Y(te,{get when(){return r.input?.question},get fallback(){return Y(Ls,{get data(){return r.input}})},get children(){return Y(Cs,{get content(){return r.input.question}})}})}})},get children(){const e=cs();return Ae(e,()=>r.input.code),A(r=>ye(e,Gs,r)),e}})},get children(){return Y(Ls,{get data(){return r.input.form||r.input.http||r.input.conditions}})}})},get children(){const o=Zd();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","4px"),Ae(o,Y(oe,{get each(){return r.input.messages},children:o=>((r,o)=>{const t=r.role||"unknown",n=(e=>{switch(e?.toLowerCase()){case"assistant":case"ai":return{background:"#E8F5E9",color:"#2E7D32"};case"system":return{background:"#FFF3E0",color:"#E65100"};case"developer":case"user":case"human":return{background:"#E3F2FD",color:"#1565C0"};case"tool":case"function":return{background:"#F3E5F5",color:"#7B1FA2"};default:return{background:"#F5F5F5",color:"#616161"}}})(t),a=(e,r,o,t)=>(()=>{const l=os();return Ae(l,o),A(o=>ye(l,{display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`,...t},o)),l})();return(()=>{const i=Zd();return i.style.setProperty("margin-bottom","8px"),i.style.setProperty("padding","8px"),i.style.setProperty("border-radius","6px"),i.style.setProperty("background","rgba(0,0,0,0.02)"),Ae(i,()=>a(n.background,n.color,t),null),Ae(i,Y(te,{get when(){return r.name},get children(){return a(n.background,n.color,r.name,{"margin-left":"4px"})}}),null),Ae(i,Y(te,{get when(){return r.tool_calls&&Array.isArray(r.tool_calls)&&r.tool_calls.length>0},get children(){return Y(oe,{get each(){return r.tool_calls},children:e=>Y(ws,{borderColor:"#FFC107",bgColor:"rgba(255,193,7,0.05)",get header(){return[Y(As,{}),(()=>{const r=os();return Ae(r,()=>e.function?.name||e.name||"Tool Call"),r})(),M(()=>a("#FFF3E0","#E65100","Called"))]},get children(){return Y(Ls,{data:e})}})})}}),null),Ae(i,Y(te,{get when(){return"tool"===t&&r.name},get children(){const e=ts(),o=e.firstChild;return e.style.setProperty("display","flex"),e.style.setProperty("align-items","center"),e.style.setProperty("gap","8px"),e.style.setProperty("margin-top","4px"),e.style.setProperty("flex-wrap","wrap"),Ae(e,Y(As,{}),o),o.style.setProperty("font-size","0.85rem"),Ae(o,()=>r.name),Ae(e,Y(te,{get when(){return r.tool_call_id},get children(){return a("#F5F5F5","#616161",r.tool_call_id)}}),null),e}}),null),Ae(i,Y(te,{get when(){return r.additional_kwargs?.usedTools?.length},get children(){const t=Zd();return t.style.setProperty("margin-top","8px"),t.style.setProperty("display","flex"),t.style.setProperty("gap","4px"),t.style.setProperty("flex-wrap","wrap"),Ae(t,Y(oe,{get each(){return r.additional_kwargs.usedTools},children:r=>Y(te,{when:r,get children(){const t=ls(),n=t.firstChild;return t.$$click=()=>l(r),t.style.setProperty("display","inline-flex"),t.style.setProperty("align-items","center"),t.style.setProperty("gap","4px"),t.style.setProperty("padding","3px 10px"),t.style.setProperty("border-radius","12px"),t.style.setProperty("font-size","0.75rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("cursor","pointer"),t.style.setProperty("transition","filter 0.15s ease"),Ae(t,Y(_s,{get name(){return Ts(r.tool,o?.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),n),Ae(t,()=>r.tool,null),A(e=>{const o=r.error?"#FFEBEE":"#F3E5F5",l=r.error?"#C62828":"#7B1FA2",n="1px solid "+(r.error?"#C6282833":"#7B1FA233");return o!==e._v$17&&(null!=(e._v$17=o)?t.style.setProperty("background",o):t.style.removeProperty("background")),l!==e._v$18&&(null!=(e._v$18=l)?t.style.setProperty("color",l):t.style.removeProperty("color")),n!==e._v$19&&(null!=(e._v$19=n)?t.style.setProperty("border",n):t.style.removeProperty("border")),e},{_v$17:void 0,_v$18:void 0,_v$19:void 0}),t}})})),t}}),null),Ae(i,Y(te,{get when(){return r.additional_kwargs?.artifacts?.length},get children(){const o=Zd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),Ae(o,Y(oe,{get each(){return r.additional_kwargs.artifacts},children:(r,o)=>Y(Es,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),Ae(i,Y(te,{get when(){return"user"===t&&Array.isArray(r.content)&&r.content.length>0},get children(){const o=Zd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),Ae(o,Y(oe,{get each(){return r.content},children:(r,o)=>{const t="stored-file"===r.type&&e.apiHost?`${e.apiHost}/api/v1/get-upload-file?chatflowId=${e.chatflowid}&chatId=${e.chatId}&fileName=${r.name}`:r.name;return(()=>{const e=es(),r=e.firstChild;return e.style.setProperty("border","1px solid rgba(0,0,0,0.12)"),e.style.setProperty("border-radius","6px"),e.style.setProperty("overflow","hidden"),e.style.setProperty("display","flex"),e.style.setProperty("justify-content","center"),e.style.setProperty("background","rgba(0,0,0,0.02)"),pe(r,"src",t),r.style.setProperty("max-height","400px"),r.style.setProperty("max-width","100%"),r.style.setProperty("object-fit","contain"),r.style.setProperty("display","block"),A(()=>pe(r,"alt",`file-upload-${o()}`)),e})()}})),o}}),null),Ae(i,Y(te,{get when(){return"string"==typeof r.content&&r.content},get children(){const e=Zd();return e.style.setProperty("margin-top","4px"),Ae(e,Y(Cs,{get content(){return r.content}})),e}}),null),Ae(i,Y(te,{get when(){return!r.content},get children(){const e=qd();return e.style.setProperty("margin-top","4px"),e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}}),null),Ae(i,Y(te,{get when(){return r.additional_kwargs?.fileAnnotations?.length},get children(){const o=Zd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),Ae(o,Y(oe,{get each(){return r.additional_kwargs.fileAnnotations},children:r=>Y(Bs,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),i})()})(o,r)})),o}})),Ae(u,Y(te,{get when(){return!(r.output?.form||r.output?.http||r.output?.conditions)},get fallback(){return Y(te,{get when(){return r.output?.conditions},get fallback(){return Y(Ls,{get data(){return r.output?.form||r.output?.http}})},get children(){return Y(oe,{each:r.output.conditions.filter(e=>e.isFulfilled),children:(e,r)=>(()=>{const o=ns(),t=o.firstChild,l=t.firstChild,n=l.nextSibling;return o.style.setProperty("border","1px solid #4CAF50"),o.style.setProperty("border-radius","6px"),o.style.setProperty("padding","8px 12px"),o.style.setProperty("margin-bottom","6px"),t.style.setProperty("display","flex"),t.style.setProperty("justify-content","space-between"),t.style.setProperty("align-items","center"),l.style.setProperty("font-size","0.85rem"),Ae(l,(()=>{const o=M(()=>!("string"!==e.type||"equal"!==e.operation||e.value1||e.value2));return()=>o()?"Else condition fulfilled":`Condition ${r()}`})()),Ae(o,Y(te,{get when(){return!("string"===e.type&&"equal"===e.operation&&!e.value1&&!e.value2)},get children(){const r=Zd();return r.style.setProperty("margin-top","4px"),Ae(r,Y(Ls,{data:e})),r}}),null),A(e=>ye(n,i("#E8F5E9","#2E7D32"),e)),o})()})}})},get children(){return[Y(te,{get when(){return r.output?.usedTools?.length},get children(){const o=Zd();return o.style.setProperty("display","flex"),o.style.setProperty("gap","4px"),o.style.setProperty("flex-wrap","wrap"),o.style.setProperty("margin-bottom","8px"),Ae(o,Y(oe,{get each(){return r.output.usedTools},children:o=>Y(te,{when:o,get children(){const t=ls(),n=t.firstChild;return t.$$click=()=>l(o),Ae(t,Y(_s,{get name(){return Ts(o.tool,r.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),n),Ae(t,()=>o.tool,null),A(e=>ye(t,{...i(o.error?"#FFEBEE":"#F3E5F5",o.error?"#C62828":"#7B1FA2"),cursor:"pointer",transition:"filter 0.15s ease"},e)),t}})})),o}}),Y(te,{get when(){return r.output?.artifacts?.length},get children(){const o=Zd();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),o.style.setProperty("margin-bottom","8px"),Ae(o,Y(oe,{get each(){return r.output.artifacts},children:(r,o)=>Y(Es,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),Y(te,{get when(){return r.output?.content},get fallback(){return Y(te,{get when(){return r.output},get children(){const e=qd();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}})},get children(){return Y(Cs,{get content(){return r.output.content}})}}),Y(te,{get when(){return r.output?.fileAnnotations?.length},get children(){const o=Zd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),Ae(o,Y(oe,{get each(){return r.output.fileAnnotations},children:r=>Y(Bs,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}})]}})),Ae(o,Y(te,{get when(){return r.error},get children(){const e=ds(),o=e.firstChild,t=o.nextSibling,l=t.firstChild;return l.style.setProperty("padding","8px 12px"),l.style.setProperty("border-radius","6px"),l.style.setProperty("border","1px solid #F44336"),l.style.setProperty("background","rgba(244,67,54,0.08)"),l.style.setProperty("color","#C62828"),l.style.setProperty("font-size","0.85rem"),l.style.setProperty("white-space","pre-wrap"),l.style.setProperty("word-break","break-word"),Ae(l,(()=>{const e=M(()=>"object"==typeof r.error);return()=>e()?JSON.stringify(r.error,null,2):r.error})()),A(r=>{const l=d,n={...s,color:"#C62828"},a={...m,"border-color":"rgba(244,67,54,0.4)",background:"rgba(244,67,54,0.04)"};return r._v$23=ye(e,l,r._v$23),r._v$24=ye(o,n,r._v$24),r._v$25=ye(t,a,r._v$25),r},{_v$23:void 0,_v$24:void 0,_v$25:void 0}),e}}),null),Ae(o,Y(te,{get when(){return M(()=>!!r.state)()&&Object.keys(r.state).length>0},get children(){const e=ss(),o=e.firstChild,t=o.nextSibling;return Ae(t,Y(Ls,{get data(){return r.state}})),A(r=>{const l=d,n=s,a=m;return r._v$26=ye(e,l,r._v$26),r._v$27=ye(o,n,r._v$27),r._v$28=ye(t,a,r._v$28),r},{_v$26:void 0,_v$27:void 0,_v$28:void 0}),e}}),null),A(e=>{const r=d,o=s,l=m,i=d,x=s,p=m;return e._v$29=ye(t,r,e._v$29),e._v$30=ye(n,o,e._v$30),e._v$31=ye(a,l,e._v$31),e._v$32=ye(g,i,e._v$32),e._v$33=ye(c,x,e._v$33),e._v$34=ye(u,p,e._v$34),e},{_v$29:void 0,_v$30:void 0,_v$31:void 0,_v$32:void 0,_v$33:void 0,_v$34:void 0}),o})():(()=>{const e=as();return e.style.setProperty("padding","20px"),e.style.setProperty("text-align","center"),e.style.setProperty("opacity","0.5"),e})()};return[(()=>{const r=us(),o=r.firstChild,t=o.firstChild,l=o.nextSibling;return r.style.setProperty("display","flex"),r.style.setProperty("flex-direction","column"),r.style.setProperty("gap","16px"),r.style.setProperty("padding","16px 20px"),r.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","10px"),o.style.setProperty("min-width","0"),Ae(o,Y(_s,{get name(){return e.node.name},get apiHost(){return e.apiHost},size:36}),t),t.style.setProperty("font-weight","600"),t.style.setProperty("font-size","1.05rem"),Ae(t,()=>e.node.label),l.style.setProperty("display","flex"),l.style.setProperty("flex-wrap","wrap"),l.style.setProperty("align-items","center"),l.style.setProperty("gap","8px"),l.style.setProperty("flex","1"),Ae(l,Y(te,{get when(){return a()},children:e=>[Y(te,{get when(){return e().time},get children(){const r=ls(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#4caf50"),r.style.setProperty("color","#fff"),Ae(r,Y(ys,{}),o),Ae(r,()=>e().time,null),r}}),Y(te,{get when(){return e().tokens},get children(){const r=ls(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#7c4dff"),r.style.setProperty("color","#fff"),Ae(r,Y(bs,{}),o),Ae(r,()=>e().tokens,null),r}}),Y(te,{get when(){return e().cost},get children(){const r=ls(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#ff9800"),r.style.setProperty("color","#fff"),Ae(r,Y($s,{}),o),Ae(r,()=>e().cost,null),r}})]})),r})(),(()=>{const e=xs(),t=e.firstChild,l=t.nextSibling;return e.style.setProperty("display","flex"),e.style.setProperty("gap","0"),e.style.setProperty("padding","0 20px"),e.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),t.$$click=()=>o("rendered"),t.style.setProperty("padding","10px 16px"),t.style.setProperty("border","none"),t.style.setProperty("background","transparent"),t.style.setProperty("cursor","pointer"),t.style.setProperty("font-size","0.875rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("font-family","inherit"),t.style.setProperty("margin-bottom","-1px"),l.$$click=()=>o("raw"),l.style.setProperty("padding","10px 16px"),l.style.setProperty("border","none"),l.style.setProperty("background","transparent"),l.style.setProperty("cursor","pointer"),l.style.setProperty("font-size","0.875rem"),l.style.setProperty("font-weight","500"),l.style.setProperty("font-family","inherit"),l.style.setProperty("margin-bottom","-1px"),A(e=>{const o="rendered"===r()?"#1976d2":"inherit",n="rendered"===r()?1:.6,a="rendered"===r()?"2px solid #1976d2":"2px solid transparent",i="raw"===r()?"#1976d2":"inherit",d="raw"===r()?1:.6,s="raw"===r()?"2px solid #1976d2":"2px solid transparent";return o!==e._v$35&&(null!=(e._v$35=o)?t.style.setProperty("color",o):t.style.removeProperty("color")),n!==e._v$36&&(null!=(e._v$36=n)?t.style.setProperty("opacity",n):t.style.removeProperty("opacity")),a!==e._v$37&&(null!=(e._v$37=a)?t.style.setProperty("border-bottom",a):t.style.removeProperty("border-bottom")),i!==e._v$38&&(null!=(e._v$38=i)?l.style.setProperty("color",i):l.style.removeProperty("color")),d!==e._v$39&&(null!=(e._v$39=d)?l.style.setProperty("opacity",d):l.style.removeProperty("opacity")),s!==e._v$40&&(null!=(e._v$40=s)?l.style.setProperty("border-bottom",s):l.style.removeProperty("border-bottom")),e},{_v$35:void 0,_v$36:void 0,_v$37:void 0,_v$38:void 0,_v$39:void 0,_v$40:void 0}),e})(),(()=>{const e=Zd();return e.style.setProperty("padding","16px 20px"),e.style.setProperty("overflow-y","auto"),e.style.setProperty("flex","1"),Ae(e,Y(te,{get when(){return"rendered"===r()},get fallback(){return(()=>{const e=Jd();return A(r=>{const o=Gs,t=Ss(JSON.stringify(n(),null,2));return r._v$43=ye(e,o,r._v$43),t!==r._v$44&&(e.innerHTML=r._v$44=t),r},{_v$43:void 0,_v$44:void 0}),e})()},get children(){return g()}})),e})(),Y(te,{get when(){return t()},get children(){return[(()=>{const r=hs(),o=r.firstChild,a=o.firstChild,i=a.firstChild,d=i.firstChild,s=i.nextSibling,m=a.nextSibling;return r.$$click=()=>l(null),r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1004"),r.style.setProperty("display","flex"),r.style.setProperty("align-items","center"),r.style.setProperty("justify-content","center"),o.$$click=e=>e.stopPropagation(),o.style.setProperty("position","relative"),o.style.setProperty("width","100%"),o.style.setProperty("max-width","560px"),o.style.setProperty("margin","24px 16px"),o.style.setProperty("border-radius","8px"),o.style.setProperty("box-shadow","0 20px 40px -4px rgba(0,0,0,0.2), 0 8px 16px -4px rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("max-height","calc(100% - 80px)"),o.style.setProperty("overflow","hidden"),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","space-between"),a.style.setProperty("padding","14px 20px"),a.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),i.style.setProperty("display","flex"),i.style.setProperty("align-items","center"),i.style.setProperty("gap","8px"),Ae(i,Y(_s,{get name(){return Ts(t()?.tool||"",n()?.output?.availableTools)},get apiHost(){return e.apiHost},size:24}),d),d.style.setProperty("font-weight","600"),d.style.setProperty("font-size","0.95rem"),Ae(d,()=>t()?.tool||"Tool Detail"),Ae(i,Y(te,{get when(){return t()?.error},get children(){const e=ps();return e.style.setProperty("display","inline-flex"),e.style.setProperty("align-items","center"),e.style.setProperty("padding","2px 8px"),e.style.setProperty("border-radius","10px"),e.style.setProperty("font-size","0.7rem"),e.style.setProperty("font-weight","500"),e.style.setProperty("background","#FFEBEE"),e.style.setProperty("color","#C62828"),e.style.setProperty("border","1px solid #C6282833"),e}}),null),s.$$click=()=>l(null),s.style.setProperty("border","none"),s.style.setProperty("background","transparent"),s.style.setProperty("cursor","pointer"),s.style.setProperty("padding","4px"),s.style.setProperty("border-radius","4px"),s.style.setProperty("display","flex"),s.style.setProperty("align-items","center"),s.style.setProperty("color","inherit"),s.style.setProperty("opacity","0.7"),Ae(s,Y(vs,{})),m.style.setProperty("padding","16px 20px"),m.style.setProperty("overflow-y","auto"),Ae(m,Y(Ls,{get data(){return t()}})),A(r=>{const t=e.backgroundColor??"#ffffff",l=e.textColor??"#303235";return t!==r._v$41&&(null!=(r._v$41=t)?o.style.setProperty("background-color",t):o.style.removeProperty("background-color")),l!==r._v$42&&(null!=(r._v$42=l)?o.style.setProperty("color",l):o.style.removeProperty("color")),r},{_v$41:void 0,_v$42:void 0}),r})(),(()=>{const e=Zd();return e.$$click=e=>{e.stopPropagation(),l(null)},e.style.setProperty("position","fixed"),e.style.setProperty("inset","0"),e.style.setProperty("z-index","1003"),e.style.setProperty("background-color","rgba(0,0,0,0.35)"),e})()]}})]};xe(["click"]);const Os=ue("
'),fg=ue("
");const yg=e=>{let r;const[o]=re(e,["onOpen","onClose","isOpen","value"]);T(()=>{var o;r&&(r.innerHTML=("string"!=typeof(o=JSON.stringify(e?.value,void 0,2))&&(o=JSON.stringify(o,void 0,2)),(o=o.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""})))});const[t,l]=b(o.isOpen??!1);P(()=>{Re(e.isOpen)||e.isOpen===t()||i()});const n=e=>{e.stopPropagation()},a=()=>{l(!1),o.onClose?.(),document.body.style.overflow="auto"},i=()=>{t()?a():(l(!0),o.onOpen?.(),document.body.style.overflow="hidden")};return Y(te,{get when(){return t()},get children(){return[(()=>{const e=Sg();return Ae(e,Fe),e})(),(()=>{const o=vg(),t=o.firstChild,l=t.nextSibling.nextSibling.firstChild.firstChild;return o.style.setProperty("z-index","1100"),o.addEventListener("click",a),Ae(t,Fe),l.style.setProperty("background-color","transparent"),l.style.setProperty("margin-left","20px"),l.style.setProperty("margin-right","20px"),l.addEventListener("click",n),l.addEventListener("pointerdown",n),Ae(l,(()=>{const o=M(()=>!!e.value);return()=>o()&&(()=>{const e=fg(),o=e.firstChild;e.style.setProperty("background","white"),e.style.setProperty("margin","auto"),e.style.setProperty("padding","7px");return"function"==typeof r?be(r,o):r=o,e})()})()),o})()]}})},$g=ue('
');function Ss(e){return e?(e=e.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""}):""}const vs=()=>Rd(),fs=()=>Xd(),ys=()=>Hd(),$s=()=>Vd(),bs=()=>Ud(),As=()=>Wd(),Ps=()=>Kd(),Ms=e=>(()=>{const r=zd();return A(o=>{const t=e.size,l=e.size;return t!==o._v$&&pe(r,"width",o._v$=t),l!==o._v$2&&pe(r,"height",o._v$2=l),o},{_v$:void 0,_v$2:void 0}),r})(),_s=e=>{const r=e.size??24,o=Dd(e.name);if(o)return(()=>{const t=Zd();return t.style.setProperty("flex-shrink","0"),t.style.setProperty("display","flex"),t.style.setProperty("align-items","center"),t.style.setProperty("justify-content","center"),null!=`${r}px`?t.style.setProperty("width",`${r}px`):t.style.removeProperty("width"),null!=`${r}px`?t.style.setProperty("height",`${r}px`):t.style.removeProperty("height"),Ae(t,()=>o.icon({size:Math.round(.55*r),color:"white"})),A(r=>{const l=e.borderRadius??"50%",n=e.bgColor??o.color;return l!==r._v$3&&(null!=(r._v$3=l)?t.style.setProperty("border-radius",l):t.style.removeProperty("border-radius")),n!==r._v$4&&(null!=(r._v$4=n)?t.style.setProperty("background",n):t.style.removeProperty("background")),r},{_v$3:void 0,_v$4:void 0}),t})();if(e.apiHost){const[o,t]=b(!1);return(()=>{const l=Zd();return l.style.setProperty("flex-shrink","0"),l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("justify-content","center"),null!=`${r}px`?l.style.setProperty("width",`${r}px`):l.style.removeProperty("width"),null!=`${r}px`?l.style.setProperty("height",`${r}px`):l.style.removeProperty("height"),l.style.setProperty("overflow","hidden"),Ae(l,Y(te,{get when(){return!o()},get fallback(){return Y(Ms,{get size(){return Math.round(.6*r)}})},get children(){const r=Qd();return r.addEventListener("error",()=>t(!0)),r.style.setProperty("width","100%"),r.style.setProperty("height","100%"),r.style.setProperty("padding","3px"),r.style.setProperty("object-fit","contain"),A(o=>{const t=`${e.apiHost}/api/v1/node-icon/${e.name}`,l=e.name;return t!==o._v$5&&pe(r,"src",o._v$5=t),l!==o._v$6&&pe(r,"alt",o._v$6=l),o},{_v$5:void 0,_v$6:void 0}),r}})),A(r=>{const t=e.borderRadius??"50%",n=e.bgColor??(o()?"#9e9e9e":"#f5f5f5");return t!==r._v$7&&(null!=(r._v$7=t)?l.style.setProperty("border-radius",t):l.style.removeProperty("border-radius")),n!==r._v$8&&(null!=(r._v$8=n)?l.style.setProperty("background",n):l.style.removeProperty("background")),r},{_v$7:void 0,_v$8:void 0}),l})()}return(()=>{const o=Zd();return o.style.setProperty("flex-shrink","0"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("justify-content","center"),null!=`${r}px`?o.style.setProperty("width",`${r}px`):o.style.removeProperty("width"),null!=`${r}px`?o.style.setProperty("height",`${r}px`):o.style.removeProperty("height"),o.style.setProperty("background","#9e9e9e"),Ae(o,Y(Ms,{get size(){return Math.round(.6*r)}})),A(()=>null!=(e.borderRadius??"50%")?o.style.setProperty("border-radius",e.borderRadius??"50%"):o.style.removeProperty("border-radius")),o})()},Ts=(e,r)=>{if(Array.isArray(r)){const o=r.find(r=>r.name===e);if(o?.toolNode?.name)return o.toolNode.name}return e},ws=e=>{const[r,o]=b(e.defaultOpen??!1),t=()=>o(!r());return(()=>{const o=Yd(),l=o.firstChild,n=l.firstChild,a=n.nextSibling;return o.style.setProperty("border-radius","8px"),o.style.setProperty("margin-bottom","6px"),o.style.setProperty("overflow","hidden"),l.$$click=t,l.style.setProperty("display","flex"),l.style.setProperty("align-items","center"),l.style.setProperty("width","100%"),l.style.setProperty("padding","10px 12px"),l.style.setProperty("cursor","pointer"),l.style.setProperty("user-select","none"),l.style.setProperty("gap","8px"),l.style.setProperty("font-size","0.85rem"),l.style.setProperty("font-family","inherit"),l.style.setProperty("color","inherit"),l.style.setProperty("text-align","left"),l.style.setProperty("border","none"),l.style.setProperty("background","transparent"),n.style.setProperty("flex","1"),n.style.setProperty("display","flex"),n.style.setProperty("align-items","center"),n.style.setProperty("gap","8px"),n.style.setProperty("text-align","left"),Ae(n,()=>e.header),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","center"),a.style.setProperty("flex-shrink","0"),a.style.setProperty("transition","transform 0.2s ease"),a.style.setProperty("opacity","0.5"),Ae(a,Y(fs,{})),Ae(o,Y(te,{get when(){return r()},get children(){const r=Zd();return r.style.setProperty("padding","10px 12px"),r.style.setProperty("border-top","1px solid rgba(0,0,0,0.08)"),r.style.setProperty("background","rgba(0,0,0,0.02)"),Ae(r,()=>e.children),r}}),null),A(t=>{const n=`1px solid ${e.borderColor||"rgba(0,0,0,0.1)"}`,i=e.bgColor||"transparent",d=r(),s=r()?"rotate(180deg)":"rotate(0deg)";return n!==t._v$9&&(null!=(t._v$9=n)?o.style.setProperty("border",n):o.style.removeProperty("border")),i!==t._v$0&&(null!=(t._v$0=i)?o.style.setProperty("background",i):o.style.removeProperty("background")),d!==t._v$1&&pe(l,"aria-expanded",t._v$1=d),s!==t._v$10&&(null!=(t._v$10=s)?a.style.setProperty("transform",s):a.style.removeProperty("transform")),t},{_v$9:void 0,_v$0:void 0,_v$1:void 0,_v$10:void 0}),o})()},Gs={"font-family":"'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace","font-size":"0.75rem","line-height":"1.5",padding:"12px","border-radius":"6px",background:"rgba(0,0,0,0.04)","overflow-x":"auto","white-space":"pre-wrap","word-break":"break-word",margin:"0"},Ls=e=>(()=>{const r=Jd();return A(o=>{const t=Gs,l=Ss(JSON.stringify(e.data,null,2));return o._v$11=ye(r,t,o._v$11),l!==o._v$12&&(r.innerHTML=o._v$12=l),o},{_v$11:void 0,_v$12:void 0}),r})(),Cs=e=>{Hn.setOptions({isNoP:!0,sanitize:!0});const r=()=>{if(!e.content)return null;try{return JSON.parse(e.content)}catch{return null}};return Y(te,{get when(){return r()},get fallback(){return Y(te,{get when(){return e.content},get fallback(){return(()=>{const e=qd();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e})()},get children(){const r=jd();return r.style.setProperty("word-break","break-word"),r.style.setProperty("font-size","0.85rem"),r.style.setProperty("line-height","1.6"),A(()=>r.innerHTML=Hn.parse(e.content)),r}})},get children(){return Y(Ls,{get data(){return r()}})}})},Es=e=>{const r=e.artifact?.type,o=e.artifact?.data,t={border:"1px solid rgba(0,0,0,0.12)","border-radius":"6px",overflow:"hidden",background:"rgba(0,0,0,0.02)"};if("png"===r||"jpeg"===r||"jpg"===r){const r=((e,r,o,t)=>{if(e.startsWith("FILE-STORAGE::")&&r)return`${r}/api/v1/get-upload-file?chatflowId=${o}&chatId=${t}&fileName=${e.replace("FILE-STORAGE::","")}`;return e})(o,e.apiHost,e.chatflowid,e.chatId);return(()=>{const o=es(),l=o.firstChild;return pe(l,"src",r),l.style.setProperty("max-height","400px"),l.style.setProperty("max-width","100%"),l.style.setProperty("object-fit","contain"),l.style.setProperty("display","block"),A(r=>{const n={...t,display:"flex","justify-content":"center"},a=`artifact-${e.index}`;return r._v$13=ye(o,n,r._v$13),a!==r._v$14&&pe(l,"alt",r._v$14=a),r},{_v$13:void 0,_v$14:void 0}),o})()}return"html"===r?(()=>{const e=Zd();return A(r=>{const l={...t,padding:"8px 12px","font-size":"0.85rem"},n=Ci.sanitize(o);return r._v$15=ye(e,l,r._v$15),n!==r._v$16&&(e.innerHTML=r._v$16=n),r},{_v$15:void 0,_v$16:void 0}),e})():(()=>{const e=Zd();return Ae(e,Y(Cs,{content:o})),A(r=>ye(e,{...t,padding:"8px 12px"},r)),e})()},Bs=e=>{const r=async()=>{if(e.apiHost)try{const r=await fetch(`${e.apiHost}/api/v1/openai-assistants-file/download`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fileName:e.annotation.fileName,chatflowId:e.chatflowid,chatId:e.chatId})}),o=await r.blob(),t=window.URL.createObjectURL(o),l=document.createElement("a");l.href=t,l.download=e.annotation.fileName,document.body.appendChild(l),l.click(),l.remove(),window.URL.revokeObjectURL(t)}catch(e){console.error("Download failed:",e)}};return(()=>{const o=rs(),t=o.firstChild;return o.$$click=r,o.style.setProperty("display","inline-flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","6px"),o.style.setProperty("padding","4px 12px"),o.style.setProperty("border","1px solid rgba(0,0,0,0.2)"),o.style.setProperty("border-radius","6px"),o.style.setProperty("background","transparent"),o.style.setProperty("cursor","pointer"),o.style.setProperty("font-size","0.8rem"),o.style.setProperty("color","inherit"),Ae(t,()=>e.annotation.fileName),Ae(o,Y(Ps,{}),null),A(()=>pe(o,"title",`Download ${e.annotation.fileName}`)),o})()},Ns=e=>{const[r,o]=b("rendered"),[t,l]=b(null),n=()=>e.node?.data?Fd(e.node.data):{},a=()=>(e=>{const r=e?.output;if(!r)return null;const o={};if(r.timeMetadata?.delta&&(o.time=`${(r.timeMetadata.delta/1e3).toFixed(2)} seconds`),r.usageMetadata?.total_tokens&&(o.tokens=`${r.usageMetadata.total_tokens} tokens`),null!=r.usageMetadata?.total_cost&&Number(r.usageMetadata.total_cost)>=0){const e=Number(r.usageMetadata.total_cost);o.cost=e>=.01?`$${e.toFixed(2)}`:`$${e.toFixed(6)}`}return Object.keys(o).length>0?o:null})(n()),i=(e,r)=>({display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`}),d={"margin-bottom":"16px"},s={"font-weight":"700","font-size":"0.9rem","margin-bottom":"8px"},m={border:"1px solid rgba(0,0,0,0.1)","border-radius":"10px",padding:"14px 16px",background:"rgba(0,0,0,0.015)"},g=()=>{const r=n();return r?(()=>{const o=ms(),t=o.firstChild,n=t.firstChild,a=n.nextSibling,g=t.nextSibling,c=g.firstChild,u=c.nextSibling;return Ae(o,Y(te,{get when(){return r.output?.availableTools?.length},get children(){const o=is(),t=o.firstChild,l=t.nextSibling;return Ae(l,Y(oe,{get each(){return r.output.availableTools},children:o=>{const t=(l=o.name,n=r.output?.usedTools,Array.isArray(n)&&n.some(e=>e.tool===l));var l,n;const a=o.toolNode?.name||o.name;return Y(ws,{borderColor:t?"#4CAF50":void 0,bgColor:t?"rgba(76,175,80,0.05)":void 0,get header(){return[Y(_s,{name:a,get apiHost(){return e.apiHost},size:22}),(()=>{const e=os();return Ae(e,()=>o.toolNode?.label||o.name),e})(),Y(te,{when:t,get children(){const e=gs();return A(r=>ye(e,i("#E8F5E9","#2E7D32"),r)),e}})]},get children(){return Y(Ls,{data:o})}})}})),A(e=>{const r=d,n=s,a=m;return e._v$20=ye(o,r,e._v$20),e._v$21=ye(t,n,e._v$21),e._v$22=ye(l,a,e._v$22),e},{_v$20:void 0,_v$21:void 0,_v$22:void 0}),o}}),t),Ae(a,Y(te,{get when(){return r.input?.messages&&Array.isArray(r.input.messages)&&r.input.messages.length>0},get fallback(){return Y(te,{get when(){return r.input?.form||r.input?.http||r.input?.conditions},get fallback(){return Y(te,{get when(){return r.input?.code},get fallback(){return Y(te,{get when(){return r.input},get fallback(){return(()=>{const e=qd();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e})()},get children(){return Y(te,{get when(){return r.input?.question},get fallback(){return Y(Ls,{get data(){return r.input}})},get children(){return Y(Cs,{get content(){return r.input.question}})}})}})},get children(){const e=cs();return Ae(e,()=>r.input.code),A(r=>ye(e,Gs,r)),e}})},get children(){return Y(Ls,{get data(){return r.input.form||r.input.http||r.input.conditions}})}})},get children(){const o=Zd();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","4px"),Ae(o,Y(oe,{get each(){return r.input.messages},children:o=>((r,o)=>{const t=r.role||"unknown",n=(e=>{switch(e?.toLowerCase()){case"assistant":case"ai":return{background:"#E8F5E9",color:"#2E7D32"};case"system":return{background:"#FFF3E0",color:"#E65100"};case"developer":case"user":case"human":return{background:"#E3F2FD",color:"#1565C0"};case"tool":case"function":return{background:"#F3E5F5",color:"#7B1FA2"};default:return{background:"#F5F5F5",color:"#616161"}}})(t),a=(e,r,o,t)=>(()=>{const l=os();return Ae(l,o),A(o=>ye(l,{display:"inline-flex","align-items":"center",gap:"4px",padding:"3px 10px","border-radius":"12px","font-size":"0.75rem","font-weight":"500",background:e,color:r,border:`1px solid ${r}33`,...t},o)),l})();return(()=>{const i=Zd();return i.style.setProperty("margin-bottom","8px"),i.style.setProperty("padding","8px"),i.style.setProperty("border-radius","6px"),i.style.setProperty("background","rgba(0,0,0,0.02)"),Ae(i,()=>a(n.background,n.color,t),null),Ae(i,Y(te,{get when(){return r.name},get children(){return a(n.background,n.color,r.name,{"margin-left":"4px"})}}),null),Ae(i,Y(te,{get when(){return r.tool_calls&&Array.isArray(r.tool_calls)&&r.tool_calls.length>0},get children(){return Y(oe,{get each(){return r.tool_calls},children:e=>Y(ws,{borderColor:"#FFC107",bgColor:"rgba(255,193,7,0.05)",get header(){return[Y(As,{}),(()=>{const r=os();return Ae(r,()=>e.function?.name||e.name||"Tool Call"),r})(),M(()=>a("#FFF3E0","#E65100","Called"))]},get children(){return Y(Ls,{data:e})}})})}}),null),Ae(i,Y(te,{get when(){return"tool"===t&&r.name},get children(){const e=ts(),o=e.firstChild;return e.style.setProperty("display","flex"),e.style.setProperty("align-items","center"),e.style.setProperty("gap","8px"),e.style.setProperty("margin-top","4px"),e.style.setProperty("flex-wrap","wrap"),Ae(e,Y(As,{}),o),o.style.setProperty("font-size","0.85rem"),Ae(o,()=>r.name),Ae(e,Y(te,{get when(){return r.tool_call_id},get children(){return a("#F5F5F5","#616161",r.tool_call_id)}}),null),e}}),null),Ae(i,Y(te,{get when(){return r.additional_kwargs?.usedTools?.length},get children(){const t=Zd();return t.style.setProperty("margin-top","8px"),t.style.setProperty("display","flex"),t.style.setProperty("gap","4px"),t.style.setProperty("flex-wrap","wrap"),Ae(t,Y(oe,{get each(){return r.additional_kwargs.usedTools},children:r=>Y(te,{when:r,get children(){const t=ls(),n=t.firstChild;return t.$$click=()=>l(r),t.style.setProperty("display","inline-flex"),t.style.setProperty("align-items","center"),t.style.setProperty("gap","4px"),t.style.setProperty("padding","3px 10px"),t.style.setProperty("border-radius","12px"),t.style.setProperty("font-size","0.75rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("cursor","pointer"),t.style.setProperty("transition","filter 0.15s ease"),Ae(t,Y(_s,{get name(){return Ts(r.tool,o?.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),n),Ae(t,()=>r.tool,null),A(e=>{const o=r.error?"#FFEBEE":"#F3E5F5",l=r.error?"#C62828":"#7B1FA2",n="1px solid "+(r.error?"#C6282833":"#7B1FA233");return o!==e._v$17&&(null!=(e._v$17=o)?t.style.setProperty("background",o):t.style.removeProperty("background")),l!==e._v$18&&(null!=(e._v$18=l)?t.style.setProperty("color",l):t.style.removeProperty("color")),n!==e._v$19&&(null!=(e._v$19=n)?t.style.setProperty("border",n):t.style.removeProperty("border")),e},{_v$17:void 0,_v$18:void 0,_v$19:void 0}),t}})})),t}}),null),Ae(i,Y(te,{get when(){return r.additional_kwargs?.artifacts?.length},get children(){const o=Zd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),Ae(o,Y(oe,{get each(){return r.additional_kwargs.artifacts},children:(r,o)=>Y(Es,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),Ae(i,Y(te,{get when(){return"user"===t&&Array.isArray(r.content)&&r.content.length>0},get children(){const o=Zd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),Ae(o,Y(oe,{get each(){return r.content},children:(r,o)=>{const t="stored-file"===r.type&&e.apiHost?`${e.apiHost}/api/v1/get-upload-file?chatflowId=${e.chatflowid}&chatId=${e.chatId}&fileName=${r.name}`:r.name;return(()=>{const e=es(),r=e.firstChild;return e.style.setProperty("border","1px solid rgba(0,0,0,0.12)"),e.style.setProperty("border-radius","6px"),e.style.setProperty("overflow","hidden"),e.style.setProperty("display","flex"),e.style.setProperty("justify-content","center"),e.style.setProperty("background","rgba(0,0,0,0.02)"),pe(r,"src",t),r.style.setProperty("max-height","400px"),r.style.setProperty("max-width","100%"),r.style.setProperty("object-fit","contain"),r.style.setProperty("display","block"),A(()=>pe(r,"alt",`file-upload-${o()}`)),e})()}})),o}}),null),Ae(i,Y(te,{get when(){return"string"==typeof r.content&&r.content},get children(){const e=Zd();return e.style.setProperty("margin-top","4px"),Ae(e,Y(Cs,{get content(){return r.content}})),e}}),null),Ae(i,Y(te,{get when(){return!r.content},get children(){const e=qd();return e.style.setProperty("margin-top","4px"),e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}}),null),Ae(i,Y(te,{get when(){return r.additional_kwargs?.fileAnnotations?.length},get children(){const o=Zd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),Ae(o,Y(oe,{get each(){return r.additional_kwargs.fileAnnotations},children:r=>Y(Bs,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),null),i})()})(o,r)})),o}})),Ae(u,Y(te,{get when(){return!(r.output?.form||r.output?.http||r.output?.conditions)},get fallback(){return Y(te,{get when(){return r.output?.conditions},get fallback(){return Y(Ls,{get data(){return r.output?.form||r.output?.http}})},get children(){return Y(oe,{each:r.output.conditions.filter(e=>e.isFulfilled),children:(e,r)=>(()=>{const o=ns(),t=o.firstChild,l=t.firstChild,n=l.nextSibling;return o.style.setProperty("border","1px solid #4CAF50"),o.style.setProperty("border-radius","6px"),o.style.setProperty("padding","8px 12px"),o.style.setProperty("margin-bottom","6px"),t.style.setProperty("display","flex"),t.style.setProperty("justify-content","space-between"),t.style.setProperty("align-items","center"),l.style.setProperty("font-size","0.85rem"),Ae(l,(()=>{const o=M(()=>!("string"!==e.type||"equal"!==e.operation||e.value1||e.value2));return()=>o()?"Else condition fulfilled":`Condition ${r()}`})()),Ae(o,Y(te,{get when(){return!("string"===e.type&&"equal"===e.operation&&!e.value1&&!e.value2)},get children(){const r=Zd();return r.style.setProperty("margin-top","4px"),Ae(r,Y(Ls,{data:e})),r}}),null),A(e=>ye(n,i("#E8F5E9","#2E7D32"),e)),o})()})}})},get children(){return[Y(te,{get when(){return r.output?.usedTools?.length},get children(){const o=Zd();return o.style.setProperty("display","flex"),o.style.setProperty("gap","4px"),o.style.setProperty("flex-wrap","wrap"),o.style.setProperty("margin-bottom","8px"),Ae(o,Y(oe,{get each(){return r.output.usedTools},children:o=>Y(te,{when:o,get children(){const t=ls(),n=t.firstChild;return t.$$click=()=>l(o),Ae(t,Y(_s,{get name(){return Ts(o.tool,r.output?.availableTools)},get apiHost(){return e.apiHost},size:16,borderRadius:"4px"}),n),Ae(t,()=>o.tool,null),A(e=>ye(t,{...i(o.error?"#FFEBEE":"#F3E5F5",o.error?"#C62828":"#7B1FA2"),cursor:"pointer",transition:"filter 0.15s ease"},e)),t}})})),o}}),Y(te,{get when(){return r.output?.artifacts?.length},get children(){const o=Zd();return o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("gap","8px"),o.style.setProperty("margin-bottom","8px"),Ae(o,Y(oe,{get each(){return r.output.artifacts},children:(r,o)=>Y(Es,{artifact:r,get index(){return o()},get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}}),Y(te,{get when(){return r.output?.content},get fallback(){return Y(te,{get when(){return r.output},get children(){const e=qd();return e.style.setProperty("font-size","0.85rem"),e.style.setProperty("opacity","0.5"),e}})},get children(){return Y(Cs,{get content(){return r.output.content}})}}),Y(te,{get when(){return r.output?.fileAnnotations?.length},get children(){const o=Zd();return o.style.setProperty("margin-top","8px"),o.style.setProperty("display","flex"),o.style.setProperty("gap","6px"),o.style.setProperty("flex-wrap","wrap"),Ae(o,Y(oe,{get each(){return r.output.fileAnnotations},children:r=>Y(Bs,{annotation:r,get apiHost(){return e.apiHost},get chatflowid(){return e.chatflowid},get chatId(){return e.chatId}})})),o}})]}})),Ae(o,Y(te,{get when(){return r.error},get children(){const e=ds(),o=e.firstChild,t=o.nextSibling,l=t.firstChild;return l.style.setProperty("padding","8px 12px"),l.style.setProperty("border-radius","6px"),l.style.setProperty("border","1px solid #F44336"),l.style.setProperty("background","rgba(244,67,54,0.08)"),l.style.setProperty("color","#C62828"),l.style.setProperty("font-size","0.85rem"),l.style.setProperty("white-space","pre-wrap"),l.style.setProperty("word-break","break-word"),Ae(l,(()=>{const e=M(()=>"object"==typeof r.error);return()=>e()?JSON.stringify(r.error,null,2):r.error})()),A(r=>{const l=d,n={...s,color:"#C62828"},a={...m,"border-color":"rgba(244,67,54,0.4)",background:"rgba(244,67,54,0.04)"};return r._v$23=ye(e,l,r._v$23),r._v$24=ye(o,n,r._v$24),r._v$25=ye(t,a,r._v$25),r},{_v$23:void 0,_v$24:void 0,_v$25:void 0}),e}}),null),Ae(o,Y(te,{get when(){return M(()=>!!r.state)()&&Object.keys(r.state).length>0},get children(){const e=ss(),o=e.firstChild,t=o.nextSibling;return Ae(t,Y(Ls,{get data(){return r.state}})),A(r=>{const l=d,n=s,a=m;return r._v$26=ye(e,l,r._v$26),r._v$27=ye(o,n,r._v$27),r._v$28=ye(t,a,r._v$28),r},{_v$26:void 0,_v$27:void 0,_v$28:void 0}),e}}),null),A(e=>{const r=d,o=s,l=m,i=d,x=s,p=m;return e._v$29=ye(t,r,e._v$29),e._v$30=ye(n,o,e._v$30),e._v$31=ye(a,l,e._v$31),e._v$32=ye(g,i,e._v$32),e._v$33=ye(c,x,e._v$33),e._v$34=ye(u,p,e._v$34),e},{_v$29:void 0,_v$30:void 0,_v$31:void 0,_v$32:void 0,_v$33:void 0,_v$34:void 0}),o})():(()=>{const e=as();return e.style.setProperty("padding","20px"),e.style.setProperty("text-align","center"),e.style.setProperty("opacity","0.5"),e})()};return[(()=>{const r=us(),o=r.firstChild,t=o.firstChild,l=o.nextSibling;return r.style.setProperty("display","flex"),r.style.setProperty("flex-direction","column"),r.style.setProperty("gap","16px"),r.style.setProperty("padding","16px 20px"),r.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("align-items","center"),o.style.setProperty("gap","10px"),o.style.setProperty("min-width","0"),Ae(o,Y(_s,{get name(){return e.node.name},get apiHost(){return e.apiHost},size:36}),t),t.style.setProperty("font-weight","600"),t.style.setProperty("font-size","1.05rem"),Ae(t,()=>e.node.label),l.style.setProperty("display","flex"),l.style.setProperty("flex-wrap","wrap"),l.style.setProperty("align-items","center"),l.style.setProperty("gap","8px"),l.style.setProperty("flex","1"),Ae(l,Y(te,{get when(){return a()},children:e=>[Y(te,{get when(){return e().time},get children(){const r=ls(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#4caf50"),r.style.setProperty("color","#fff"),Ae(r,Y(ys,{}),o),Ae(r,()=>e().time,null),r}}),Y(te,{get when(){return e().tokens},get children(){const r=ls(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#7c4dff"),r.style.setProperty("color","#fff"),Ae(r,Y(bs,{}),o),Ae(r,()=>e().tokens,null),r}}),Y(te,{get when(){return e().cost},get children(){const r=ls(),o=r.firstChild;return r.style.setProperty("display","inline-flex"),r.style.setProperty("align-items","center"),r.style.setProperty("gap","4px"),r.style.setProperty("padding","4px 12px"),r.style.setProperty("border-radius","14px"),r.style.setProperty("font-size","0.75rem"),r.style.setProperty("font-weight","600"),r.style.setProperty("white-space","nowrap"),r.style.setProperty("background","#ff9800"),r.style.setProperty("color","#fff"),Ae(r,Y($s,{}),o),Ae(r,()=>e().cost,null),r}})]})),r})(),(()=>{const e=xs(),t=e.firstChild,l=t.nextSibling;return e.style.setProperty("display","flex"),e.style.setProperty("gap","0"),e.style.setProperty("padding","0 20px"),e.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),t.$$click=()=>o("rendered"),t.style.setProperty("padding","10px 16px"),t.style.setProperty("border","none"),t.style.setProperty("background","transparent"),t.style.setProperty("cursor","pointer"),t.style.setProperty("font-size","0.875rem"),t.style.setProperty("font-weight","500"),t.style.setProperty("font-family","inherit"),t.style.setProperty("margin-bottom","-1px"),l.$$click=()=>o("raw"),l.style.setProperty("padding","10px 16px"),l.style.setProperty("border","none"),l.style.setProperty("background","transparent"),l.style.setProperty("cursor","pointer"),l.style.setProperty("font-size","0.875rem"),l.style.setProperty("font-weight","500"),l.style.setProperty("font-family","inherit"),l.style.setProperty("margin-bottom","-1px"),A(e=>{const o="rendered"===r()?"#1976d2":"inherit",n="rendered"===r()?1:.6,a="rendered"===r()?"2px solid #1976d2":"2px solid transparent",i="raw"===r()?"#1976d2":"inherit",d="raw"===r()?1:.6,s="raw"===r()?"2px solid #1976d2":"2px solid transparent";return o!==e._v$35&&(null!=(e._v$35=o)?t.style.setProperty("color",o):t.style.removeProperty("color")),n!==e._v$36&&(null!=(e._v$36=n)?t.style.setProperty("opacity",n):t.style.removeProperty("opacity")),a!==e._v$37&&(null!=(e._v$37=a)?t.style.setProperty("border-bottom",a):t.style.removeProperty("border-bottom")),i!==e._v$38&&(null!=(e._v$38=i)?l.style.setProperty("color",i):l.style.removeProperty("color")),d!==e._v$39&&(null!=(e._v$39=d)?l.style.setProperty("opacity",d):l.style.removeProperty("opacity")),s!==e._v$40&&(null!=(e._v$40=s)?l.style.setProperty("border-bottom",s):l.style.removeProperty("border-bottom")),e},{_v$35:void 0,_v$36:void 0,_v$37:void 0,_v$38:void 0,_v$39:void 0,_v$40:void 0}),e})(),(()=>{const e=Zd();return e.style.setProperty("padding","16px 20px"),e.style.setProperty("overflow-y","auto"),e.style.setProperty("flex","1"),Ae(e,Y(te,{get when(){return"rendered"===r()},get fallback(){return(()=>{const e=Jd();return A(r=>{const o=Gs,t=Ss(JSON.stringify(n(),null,2));return r._v$43=ye(e,o,r._v$43),t!==r._v$44&&(e.innerHTML=r._v$44=t),r},{_v$43:void 0,_v$44:void 0}),e})()},get children(){return g()}})),e})(),Y(te,{get when(){return t()},get children(){return[(()=>{const r=hs(),o=r.firstChild,a=o.firstChild,i=a.firstChild,d=i.firstChild,s=i.nextSibling,m=a.nextSibling;return r.$$click=()=>l(null),r.style.setProperty("position","fixed"),r.style.setProperty("inset","0"),r.style.setProperty("z-index","1004"),r.style.setProperty("display","flex"),r.style.setProperty("align-items","center"),r.style.setProperty("justify-content","center"),o.$$click=e=>e.stopPropagation(),o.style.setProperty("position","relative"),o.style.setProperty("width","100%"),o.style.setProperty("max-width","560px"),o.style.setProperty("margin","24px 16px"),o.style.setProperty("border-radius","8px"),o.style.setProperty("box-shadow","0 20px 40px -4px rgba(0,0,0,0.2), 0 8px 16px -4px rgba(0,0,0,0.1)"),o.style.setProperty("display","flex"),o.style.setProperty("flex-direction","column"),o.style.setProperty("max-height","calc(100% - 80px)"),o.style.setProperty("overflow","hidden"),a.style.setProperty("display","flex"),a.style.setProperty("align-items","center"),a.style.setProperty("justify-content","space-between"),a.style.setProperty("padding","14px 20px"),a.style.setProperty("border-bottom","1px solid rgba(0,0,0,0.1)"),i.style.setProperty("display","flex"),i.style.setProperty("align-items","center"),i.style.setProperty("gap","8px"),Ae(i,Y(_s,{get name(){return Ts(t()?.tool||"",n()?.output?.availableTools)},get apiHost(){return e.apiHost},size:24}),d),d.style.setProperty("font-weight","600"),d.style.setProperty("font-size","0.95rem"),Ae(d,()=>t()?.tool||"Tool Detail"),Ae(i,Y(te,{get when(){return t()?.error},get children(){const e=ps();return e.style.setProperty("display","inline-flex"),e.style.setProperty("align-items","center"),e.style.setProperty("padding","2px 8px"),e.style.setProperty("border-radius","10px"),e.style.setProperty("font-size","0.7rem"),e.style.setProperty("font-weight","500"),e.style.setProperty("background","#FFEBEE"),e.style.setProperty("color","#C62828"),e.style.setProperty("border","1px solid #C6282833"),e}}),null),s.$$click=()=>l(null),s.style.setProperty("border","none"),s.style.setProperty("background","transparent"),s.style.setProperty("cursor","pointer"),s.style.setProperty("padding","4px"),s.style.setProperty("border-radius","4px"),s.style.setProperty("display","flex"),s.style.setProperty("align-items","center"),s.style.setProperty("color","inherit"),s.style.setProperty("opacity","0.7"),Ae(s,Y(vs,{})),m.style.setProperty("padding","16px 20px"),m.style.setProperty("overflow-y","auto"),Ae(m,Y(Ls,{get data(){return t()}})),A(r=>{const t=e.backgroundColor??"#ffffff",l=e.textColor??"#303235";return t!==r._v$41&&(null!=(r._v$41=t)?o.style.setProperty("background-color",t):o.style.removeProperty("background-color")),l!==r._v$42&&(null!=(r._v$42=l)?o.style.setProperty("color",l):o.style.removeProperty("color")),r},{_v$41:void 0,_v$42:void 0}),r})(),(()=>{const e=Zd();return e.$$click=e=>{e.stopPropagation(),l(null)},e.style.setProperty("position","fixed"),e.style.setProperty("inset","0"),e.style.setProperty("z-index","1003"),e.style.setProperty("background-color","rgba(0,0,0,0.35)"),e})()]}})]};xe(["click"]);const Os=ue("
'),fg=ue("
");const yg=e=>{let r;const[o]=re(e,["onOpen","onClose","isOpen","value"]);T(()=>{var o;r&&(r.innerHTML=("string"!=typeof(o=JSON.stringify(e?.value,void 0,2))&&(o=JSON.stringify(o,void 0,2)),(o=o.replace(/&/g,"&").replace(//g,">")).replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,function(e){let r="number";return/^"/.test(e)?r=/:$/.test(e)?"key":"string":/true|false/.test(e)?r="boolean":/null/.test(e)&&(r="null"),''+e+""})))});const[t,l]=b(o.isOpen??!1);P(()=>{Re(e.isOpen)||e.isOpen===t()||i()});const n=e=>{e.stopPropagation()},a=()=>{l(!1),o.onClose?.(),document.body.style.overflow="auto"},i=()=>{t()?a():(l(!0),o.onOpen?.(),document.body.style.overflow="hidden")};return Y(te,{get when(){return t()},get children(){return[(()=>{const e=Sg();return Ae(e,Fe),e})(),(()=>{const o=vg(),t=o.firstChild,l=t.nextSibling.nextSibling.firstChild.firstChild;return o.style.setProperty("z-index","1100"),o.addEventListener("click",a),Ae(t,Fe),l.style.setProperty("background-color","transparent"),l.style.setProperty("margin-left","20px"),l.style.setProperty("margin-right","20px"),l.addEventListener("click",n),l.addEventListener("pointerdown",n),Ae(l,(()=>{const o=M(()=>!!e.value);return()=>o()&&(()=>{const e=fg(),o=e.firstChild;e.style.setProperty("background","white"),e.style.setProperty("margin","auto"),e.style.setProperty("padding","7px");return"function"==typeof r?be(r,o):r=o,e})()})()),o})()]}})},$g=ue('