@@ -35,7 +35,14 @@ import { ChevronDownIcon, CircleDotIcon, SparklesIcon, TrashIcon } from './icons
3535import { CancelButton } from './buttons/CancelButton' ;
3636import { cancelAudioRecording , startAudioRecording , stopAudioRecording } from '@/utils/audioRecording' ;
3737import { LeadCaptureBubble } from '@/components/bubbles/LeadCaptureBubble' ;
38- import { removeLocalStorageChatHistory , getLocalStorageChatflow , setLocalStorageChatflow , setCookie , getCookie , getRecordingExtensionForMime } from '@/utils' ;
38+ import {
39+ removeLocalStorageChatHistory ,
40+ getLocalStorageChatflow ,
41+ setLocalStorageChatflow ,
42+ setCookie ,
43+ getCookie ,
44+ getRecordingExtensionForMime ,
45+ } from '@/utils' ;
3946import { FollowUpPromptBubble } from '@/components/bubbles/FollowUpPromptBubble' ;
4047import { fetchEventSource , EventStreamContentType } from '@microsoft/fetch-event-source' ;
4148
@@ -585,7 +592,9 @@ export const Bot = (botProps: BotProps & { class?: string }) => {
585592 isProgrammaticScroll = true ;
586593 if ( guardTimeout ) clearTimeout ( guardTimeout ) ;
587594 fn ( ) ;
588- guardTimeout = setTimeout ( ( ) => { isProgrammaticScroll = false ; } , 500 ) ;
595+ guardTimeout = setTimeout ( ( ) => {
596+ isProgrammaticScroll = false ;
597+ } , 500 ) ;
589598 } ;
590599 } ) ;
591600
@@ -655,7 +664,9 @@ export const Bot = (botProps: BotProps & { class?: string }) => {
655664 audioRef . currentTime = 0 ;
656665 }
657666 audioRef = new Audio ( audioSrc ) ;
658- audioRef . play ( ) . catch ( ( ) => { /* ignore autoplay errors */ } ) ;
667+ audioRef . play ( ) . catch ( ( ) => {
668+ /* ignore autoplay errors */
669+ } ) ;
659670 }
660671 } ;
661672
@@ -1001,7 +1012,6 @@ export const Bot = (botProps: BotProps & { class?: string }) => {
10011012 }
10021013 } ;
10031014
1004-
10051015 const handleFileUploads = async ( uploads : IUploads ) => {
10061016 if ( ! uploadedFiles ( ) . length ) return uploads ;
10071017
@@ -1583,7 +1593,7 @@ export const Bot = (botProps: BotProps & { class?: string }) => {
15831593 } else {
15841594 mimeType = blob . type . substring ( 0 , pos ) ;
15851595 }
1586- const ext = getRecordingExtensionForMime ( mimeType )
1596+ const ext = getRecordingExtensionForMime ( mimeType ) ;
15871597 // read blob and add to previews
15881598 const reader = new FileReader ( ) ;
15891599 reader . readAsDataURL ( blob ) ;
0 commit comments