@snapcall/stream-ui 1.39.0 → 1.39.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/stream-ui.esm.js +73 -38
- package/dist/stream-ui.js +73 -38
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/stream-ui.esm.js
CHANGED
|
@@ -49,7 +49,7 @@ $cdb0576f0fea19f0$exports = JSON.parse('{"header":{"free":"Free version"},"loade
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
var $d94166210f763d5e$exports = {};
|
|
52
|
-
$d94166210f763d5e$exports = JSON.parse('{"audioMenu":{"blockedMicrophone":"Microphone is blocked.","microphonePermissions":"Please accept microphone sharing before accessing these options.","title":"Audio"},"blockedFeature":{"descriptionConnected":"On a free plan, you can\'t use this feature. Upgrade your plan to enjoy all in-call features.","descriptionGuest":"You are participating in a call created with a free version of SnapCall. This feature is only available with a Pro version.","dismissConnected":"Upgrade to Pro","dismissGuest":"Okay","titleConnected":"Upgrade to Pro","titleGuest":"Feature not available"},"common":{"new":"new"},"copyLink":{"copied":"Link copied to clipboard","copy":"Copy","description":"Copy link into clipboard","error":"An error occured when trying to copy to clipboard","title":"Copy link"},"drawInVideo":{"pointer":"Pointer","pointerScreenSharing":"Pointer \xb7 Screen-sharing","stopPointing":"Stop Pointing"},"endView":{"addAdditionalMedia":"Have you forgotten to mention anything?","allowsYouToShareMoreMedia":"Add media here so that your support agent can review it offline.","callEnded":"The call is now ended","callIsOver":"The call is over or deleted","callLeft":"You left the call","callNoLongerActive":"This call is no longer active. Thank you for participating.","full":"You can\'t join this call","fullDescription":"The room is full. Please try to join the call later.","goBack":"Go back to call","howWasYourExperience":"Was the connection quality of your call satisfactory?","ifMistakeRejoin":"If this was a mistake, you can rejoin using the button below.","invalidLink":"Invalid link","invalidOrExpired":"This link is invalid or expired.","openDashboard":"Open dashboard","pleaseRateYourExperienceBelow":"We value your feedback. Please rate your experience below to help us improve.","thankYouForYourFeedback":"Thank you for your feedback.","tooLate":"You arrived too late","yourFeedbackHelpsUs":"Your feedback helps us improve. See you soon!"},"gdpr":{"recordedWarning":"To improve the quality of our service, this call will be recorded."},"greeting":{"askToJoin":"Ask to join","askingLetIn":"Asking to be let in...","cameraDisabled":"Camera is Off","cameraEnabled":"Camera is On","canceledCallRequest":"The call request will be canceled and you will be redirected to the call scheduling page.","cantJoinCall":"You can\u2019t join this call","cantWait":"Can\'t wait?","cantWaitLeaveMessage":"Can\u2019t wait? You can leave a message and you will be contacted as soon as possible.","checkYourCameraMicrophoneAndSettings":"Check your camera, microphone, and settings before entering the call.","clickOnLock":"Click on the <1></1> lock icon in your browser\'s bar.","footerDescription":"Meet SnapCall, the easiest way to add real-time video to platform, product or service.","footerTitle":"Powered by SnapCall","getReadyToJoin":"Get ready to join","join":"Join","joinACall":"Join a call","leaveMessage":"Leave a message","mainTitle":"Welcome to SnapCall","mediaDenied":"Microphone and camera access denied","microphoneDisabled":"Microphone is Off","microphoneEnabled":"Microphone is On","name":"Name","nameDescription":"This name will be displayed to all participants in the call.","namePlaceholder":"Eg. Lucy or Peter","nameSubmit":"Join Conversation","pleaseCheckYourBrowserPermissions":"Please check your browser permissions","recordVideo":"Record video","recordVoice":"Record voice","requestACall":"Request a call","scheduleACall":"Schedule a call","setting":"Settings","sideDescription":"Please enter your name and adjust your camera and microphone","sideTitle":"Hold tight, you\'re next!","someoneDenied":"Someone in the call denied your request to join.","takeFewMinute":"This may take a few minutes depending on the availability of the participants.","whatYouCanDo":"Here\u2019s what you can do","youWillJoinWhenSomeoneLetsYou":"You will join the call when someone from {{ companyName }} lets you in."},"header":{"free":"Free version"},"iframe":{"featureNotAvailableInContext":"This feature is not available in the current context."},"invitePeople":{"PublicLink":"Public link","addEmailToInvite":"Add an email to invite.","addEmails":"Add emails...","copyCallLinkDescription":"Copy this link and send it to anyone you wish to invite to join the call.","copyClipLinkDescription":"Copy this link and send it to anyone you wish to invite to record a clip.","email":"Email","emailPlaceholder":"Eg. john@acme.com","emailsOrNumberPlaceholder":"Eg. john@acme.com or +33612345678","error":"Failed to send, please try again later.","invalidEmail":"Invalid email format.","invalidEmailOrNumber":"Invalid email or number format.","invitationSentTo_one":"Sent to {{ name }}","invitationSentTo_other":"Sent to {{ name }} and {{ otherEmailsCount }}+","invite":"Invite","inviteByEmail":"Invite by email","inviteByEmailOrNumber":"Invite by email or sms","inviteCall":"Invite to join call","inviteCallDefaultMessage":"Hey! You\'re invited to join our video call. Click the link to connect instantly.","inviteClipAudioDefaultMessage":"Hey! Please record an audio message now and provide us with more context to assist you better.","inviteClipDefaultMessage":"Hey! Please record your video clip now and provide us with more context to assist you better.","inviteClipImageDefaultMessage":"Hey! Please take a photo and provide us with more context to assist you better.","inviteClipPhotoDefaultMessage":"Hey! Please take a photo and provide us with more context to assist you better.","inviteClipScreenDefaultMessage":"Hey! Please record your screen now and provide us with more context to assist you better.","inviteClipVideoDefaultMessage":"Hey! Please record your video now and provide us with more context to assist you better.","invitePeople":"Invite people","inviteRecordAudio":"Record an audio","inviteRecordClip":"Invite to record clip","inviteRecordImage":"Take a photo","inviteRecordPhoto":"Take a photo","inviteRecordScreen":"Record a screen","inviteRecordVideo":"Record a video","joinTheCall":"Join the call","linkToJoinCall":"Link to join the call","linkToRecordAClip":"Link to record a clip","message":"Message","sharePublicLink":"Share public link"},"leave":{"endCall":"End call for all","leaveCall":"Leave call","title":"Leave"},"loader":{"connection":"Connecting..."},"menu":{"new":"NEW","openNewTab":"Open new tab","pictureInPicture":"Picture-in-Picture","quickConnect":"Quick Connect","screenSharing":"Screen sharing","startRecord":"Record call","stopRecord":"Stop record","title":"Menu"},"misc":{"accept":"Accept","add":"Add","audio":"Audio","camera":"Camera","cancel":"Cancel","confirm":"Confirm","decline":"Decline","download":"Download","from":"From","image":"Photo","microphone":"Microphone","off":"Off","on":"On","open":"Open","pdf":"PDF","photo":"Photo","proceed":"Proceed","remove":"Remove","rotateCamera":"Rotate camera","screen":"Screen","screenshot":"Screenshot","someone":"Someone","speaker":"Speaker","upload":"Upload","user":"User","video":"Video","you":"You"},"networkIssue":{"description":"The clip information may be damaged.","title":"Network issue"},"notifications":{"aQuickRefreshShouldFix":"A quick refresh should get things back on track","agentJoinError":"An error occured while trying to join the room as an agent","allow":"Allow","blockedMicrophonePopup":"SnapCall requires access to your camera and microphone. Click the camera blocked icon in your browser\'s address bar.","blockedMicrophonePopupTitle":"Camera and microphone are blocked","cameraError":"An error occured when trying to toggle the camera","cameraRotateError":"An error occured when trying to rotate the camera","close":"Close","connectedTo":"Connected to {{name}}","criticalError":"An error has occurred, please check your connection and contact support if this persists (error {{code}}).","error":"Error","errorOccuredCode":"An error occured (error {{code}}).","failedToDisableVideo":"Something went wrong while disabling your camera. Please refresh your tab and try again.","failedToEnableMicrophone":"Enable microphone access in your browser settings to start your video.","failedToEnableVideo":"Enable camera access in your browser settings to start your video.","failedToMuteUnmuteMicrophone":"Something went wrong while disabling your microphone. Please refresh your tab and try again.","invitationSentToFailed":"Sent to {{ name }} failed.","locationIsBlocked":"Location is blocked","locationIsRequired":"Location is required","locationIsUnavailable":"Location is unavailable","locationIsUnresponsive":"Location is unresponsive","microphoneError":"An error occured when trying to toggle the microphone","networkStability":"Network stability","noCamera":"No camera available","permissionToShareScreenDenied":"Permission to share screen denied","pleaseEnableLocation":"Please enable location services in your settings.","recording":"Recording in progress","recordingStopped":"Recording stopped","reload":"Reload","screensharingError":"An error occured when trying to toggle screensharing","somethingWentWrong":"Oops! Something went wrong","unableToSwitchCamera":"Unable to switch camera","unableToUnzoom":"Unable to unzoom","unableToZoom":"Unable to zoom","uploadError":"An error occured during the upload, please try again later.","uploadFailed":"Upload failed","yourInternetConnectionIsUnstable":"Your internet connection is unstable"},"quickConnect":{"scan":"Scan this QR code with your phone camera to open the call.","scanTitle":"Scan QR Code","title":"Quick Connect"},"recorder":{"addMore":"Add more","addNewClip":"Add new clip","allowAccess":"Allow access","allowCamMicAccess":"Allow access to cam/mic","allowScreenShareAccess":"Allow access to screen sharing","attachElements_one":"Attach {{ type }} to ticket","attachElements_other":"Attach {{ count }} elements","audioInstructionsTitle":"Ready to record a voice message?","audioLevelNotification":{"noSound":{"description":"Make sure your microphone is activated.","title":"No sound detected."},"shortVideo":{"description":"This video is too short to get context.","title":"Short video."},"spokenWordsQuestion":{"description":"Does your video include enough spoken details?","title":"Spoken words."},"spokenWordsWarning":{"description":"The clip includes barely any spoken words.","title":"No spoken words."}},"audioLevelToast":{"continueSpeaking":"Continue speaking for clearer context.","noSound":"No sound detected.","rememberSpeaking":"Remember to speak to provide context."},"chooseWhatYouWantToShare":"Choose what you want to share","chooseWhatYouWantToShareDescription":"Select the screen or tab you want to share and start recording.","clickBelowToAddYourFiles":"Click below to add your files","clipCount_one":"{{ count }} clip","clipCount_other":"{{ count }} clips","clipSubmissionDescription":"Thank you for using SnapCall.","clipSubmissionTitle_one":"Your clip has been sent","clipSubmissionTitle_other":"Your clips have been sent","confirmRemovalDescription":"Are you sure you want to delete this photo/video? This action cannot be undone.","confirmRemovalTitle":"Confirm deletion","elementBeingProcessed":"Please wait while your {{ type }} is being processed...","elementCaptureSuccess":"{{ type }} captured successfully","elementRecordedAndAttached":"Your clip has been sent and attached to the thread.","feelFreeToTalkGiveMoreContext":"\uD83D\uDDE3\uFE0F Feel free to talk to give me more context.","fileUploadIsLimitedTo1GB":"File upload is limited to 1GB.","goBackToTicket":"Go back to ticket","imageInstructionsTitle":"Ready to snap a photo?","instructions":{"allowAccessOnPrompt":"When prompted, <bold>allow access</bold> to camera and microphone.","multiplePhotos":"Take a <bold>photo or multiple</bold> for detail, then review.","privacyPolicy":"By proceeding, you agree to our <bold>Privacy Policy</bold>.","reviewAndSendAudios":"<bold>Review your audios</bold>, and they will be sent to us automatically.","reviewAndSendPhotos":"<bold>Validate your photos</bold>, and they will be sent to us automatically.","reviewAndSendVideos":"<bold>Review your videos</bold>, and they will be sent to us automatically.","screenShareInstruction":"Select the screen or window you wish to record.","selectScreenshare":"Tap Record my screen and select the screen or window you want to record.","speakClearly":"<bold>Speak clearly</bold> and say what you need to convey.","speakDuringRecord":"You can speak while recording to add details.","stopScreenOnFinish":"Press the Stop button when finished. The video will be sent to us automatically.","tapAudioButton":"<bold>Tap the record button</bold> to start recording your audio message.","tapStopVideoButton":"<bold>Tap stop</bold> when you are done.","tapVideoButton":"<bold>Tap the record button</bold> to begin and feel free to provide commentary.","videoSpeech":"You can <bold>talk during</bold> the recording to provide additional information."},"limit":"Video recording limited to 5 min.","logIn":"Log in","loggedAs":"Logged as","media":"Media","mediaCount_one":"{{ count }} media","mediaCount_other":"{{ count }} media","mediaSent_one":"Your media has been sent","mediaSent_other":"Your media has been sent","mySuggestion":"My suggestion","noCameraAccess":"No camera access","noCameraAccessDescription":"No camera access Allow camera access in your browser.","noCameraAndMicrophoneAccess":"No camera & microphone access","noCameraAndMicrophoneAccessDescription":"No camera & microphone access Allow microphone and camera access in your browser.","noMicrophoneAccess":"No microphone access","noMicrophoneAccessDescription":"No microphone access Allow microphone access in your browser.","noPreviewAvailable":"No preview available","okay":"Okay","openThread":"Open thread","permissionDeniedDescription":"Without access to the camera and microphone, you won\'t be able to capture photos or videos to share with the support team. Please grant access in your browser settings.","permissionDeniedTitle":"Something went wrong!","photoInstructionsTitle":"Ready to snap a photo?","recordNewMedia":"Record new media","replyAttached":"Your reply has been attached","scanQRCode":"Scan this QR code with a compatible device.","screenShareInstructionsTitle":"Ready to share your screen?","screenTitle":"Ready to capture your screen?","send":"Send","sendElements_one":"Send {{ type }}","sendElements_other":"Send {{ count }} elements","showQrCode":"Show QR code","start":"Start","startByClickingOnTheButton":"Start by clicking on the round button below! \uD83D\uDC47","startScreenRecording":"Start screen recording","startScreenShareButton":"Record my screen","stopScreenShareButton":"Stop recording","submissionDescription":"Your photo/video has been successfully submitted. We will review it and get back to you shortly.","submissionTitle":"Thank you for your submission!","switchToMobileDescription":"Experience greater convenience by using your phone to take photos and record videos.","switchToMobileTitle":"Switch to your mobile device","takeNewElement":"Capture a new {{ type }}","thanksForYourMedia":"Thanks for your media!","upload":"Upload","useDesktopVersion":"Use the desktop version","videoBotError":"Sorry, an error has occured.","videoBotThinking":"Thinking...","videoInstructionsTitle":"Ready to record a video?","waitVideo":"A video may take up to 15 seconds to be ready.","yourMedia":"Your media","yourMediaHaveBeenSubmitted":"Your media have been submitted. You can now leave this page."},"recordingPopup":{"dismiss":"Dismiss","recordingStartText":"This call will be recorded shortly. If you\u2019d rather not be recorded, you\u2019re welcome to leave the call at this time.","recordingStartTitle":"Recording about to start."},"requestAccess":{"admit":"Admit","defaultName":"An user","deny":"Deny","wantToJoin":"<bold>{{name}}</bold> wants to join!"},"requestDevice":{"askForDevice":"Ask for {{device}}","declined":"Your request has been declined.","deviceActivated":"{{device}} activated","deviceActivationDeclined":"{{device}} activation declined","request":"{{user}} would like you to share your {{device}}","requestInput":"Request input devices","timedOut":"Your request has timed out.","userDeclined":"{{user}} has declined your request.","userWouldLikeYouToActivateYourDevice":"{{name}} would like you to activate your {{device}}.","waitingForDevice":"Waiting for {{name}}\'s {{device}}"},"settings":{"callSettings":"Call settings","devices":"Devices","enableVideo":"Enable video","help":"Help","helpCenter":"Go to help center","language":"Language","manageRecording":"Manage recording","mustBeAtLeastTwoParticipants":"There must be at least 2 participants to start recording.","preferences":"Preferences","selectYourCamera":"Select your preferred camera","selectYourLanguage":"Select your preferred language","selectYourMicrophone":"Select your preferred microphone","startRecording":"Start recording","stopRecording":"Stop recording","title":"Settings","tools":"Tools"},"shareCallLink":"Share call link","shareLink":{"failed":"Failed to send link","invalid":"Invalid link","invoice":"{{user}} sent you an invoice.","pay":"Pay","poweredBy":"Powered by","sentToUser":"Link sent to {{user}}","sentToUsers":"Link sent to users","title":"Share link","title2":"Share a link"},"shareThisLinkToInviteOthers":"Share this link to invite others to this call.","sharedHistory":{"shared":"Shared with you"},"snapshot":{"aSnapshotHasBeenShared":"A snapshot has been shared.","error":"An error occured when trying to send the snapshot","save":"Save photo","sentToUser":"Snapshot sent to {{user}}","sentToUsers":"Snapshot sent to users.","shared":"Snapshot shared.","title":"Snapshot"},"videoDrawer":{"drawInVideo":"Draw in video"},"videoMenu":{"blockedCamera":"Camera is blocked.","cameraPermissions":"Please accept camera sharing before accessing these options.","highDef":"High definition (720p)","lowDef":"Low definition (240p)","sendResolution":"Send Resolution (maximum)","standardDef":"Standard definition (480p)","title":"Video"},"virtualBackground":{"blur":"Blur","custom":"Custom","default":"Default","noCustomBackgrounds":"No custom backgrounds yet. Please contact your admin.","none":"None","setBackground":"Set Background","title":"Virtual Background"},"youtube":{"description":"Share a YouTube video with other participants.","invalid":"Invalid YouTube URL","share":"Watch now","title":"Watch Together","url":"YOUTUBE URL"}}');
|
|
52
|
+
$d94166210f763d5e$exports = JSON.parse('{"audioMenu":{"blockedMicrophone":"Microphone is blocked.","microphonePermissions":"Please accept microphone sharing before accessing these options.","title":"Audio"},"blockedFeature":{"descriptionConnected":"On a free plan, you can\'t use this feature. Upgrade your plan to enjoy all in-call features.","descriptionGuest":"You are participating in a call created with a free version of SnapCall. This feature is only available with a Pro version.","dismissConnected":"Upgrade to Pro","dismissGuest":"Okay","titleConnected":"Upgrade to Pro","titleGuest":"Feature not available"},"common":{"new":"new"},"copyLink":{"copied":"Link copied to clipboard","copy":"Copy","description":"Copy link into clipboard","error":"An error occured when trying to copy to clipboard","title":"Copy link"},"drawInVideo":{"pointer":"Pointer","pointerScreenSharing":"Pointer \xb7 Screen-sharing","stopPointing":"Stop Pointing"},"endView":{"addAdditionalMedia":"Have you forgotten to mention anything?","allowsYouToShareMoreMedia":"Add media here so that your support agent can review it offline.","callEnded":"The call is now ended","callIsOver":"The call is over or deleted","callLeft":"You left the call","callNoLongerActive":"This call is no longer active. Thank you for participating.","full":"You can\'t join this call","fullDescription":"The room is full. Please try to join the call later.","goBack":"Go back to call","howWasYourExperience":"Was the connection quality of your call satisfactory?","ifMistakeRejoin":"If this was a mistake, you can rejoin using the button below.","invalidLink":"Invalid link","invalidOrExpired":"This link is invalid or expired.","openDashboard":"Open dashboard","pleaseRateYourExperienceBelow":"We value your feedback. Please rate your experience below to help us improve.","thankYouForYourFeedback":"Thank you for your feedback.","tooLate":"You arrived too late","yourFeedbackHelpsUs":"Your feedback helps us improve. See you soon!"},"gdpr":{"recordedWarning":"To improve the quality of our service, this call will be recorded."},"greeting":{"askToJoin":"Ask to join","askingLetIn":"Asking to be let in...","cameraDisabled":"Camera is Off","cameraEnabled":"Camera is On","canceledCallRequest":"The call request will be canceled and you will be redirected to the call scheduling page.","cantJoinCall":"You can\u2019t join this call","cantWait":"Can\'t wait?","cantWaitLeaveMessage":"Can\u2019t wait? You can leave a message and you will be contacted as soon as possible.","checkYourCameraMicrophoneAndSettings":"Check your camera, microphone, and settings before entering the call.","clickOnLock":"Click on the <1></1> lock icon in your browser\'s bar.","footerDescription":"Meet SnapCall, the easiest way to add real-time video to platform, product or service.","footerTitle":"Powered by SnapCall","getReadyToJoin":"Get ready to join","join":"Join","joinACall":"Join a call","leaveMessage":"Leave a message","mainTitle":"Welcome to SnapCall","mediaDenied":"Microphone and camera access denied","microphoneDisabled":"Microphone is Off","microphoneEnabled":"Microphone is On","name":"Name","nameDescription":"This name will be displayed to all participants in the call.","namePlaceholder":"Eg. Lucy or Peter","nameSubmit":"Join Conversation","pleaseCheckYourBrowserPermissions":"Please check your browser permissions","recordVideo":"Record video","recordVoice":"Record voice","requestACall":"Request a call","scheduleACall":"Schedule a call","setting":"Settings","sideDescription":"Please enter your name and adjust your camera and microphone","sideTitle":"Hold tight, you\'re next!","someoneDenied":"Someone in the call denied your request to join.","takeFewMinute":"This may take a few minutes depending on the availability of the participants.","whatYouCanDo":"Here\u2019s what you can do","youWillJoinWhenSomeoneLetsYou":"You will join the call when someone from {{ companyName }} lets you in."},"header":{"free":"Free version"},"iframe":{"featureNotAvailableInContext":"This feature is not available in the current context."},"invitePeople":{"PublicLink":"Public link","addEmailToInvite":"Add an email to invite.","addEmails":"Add emails...","copyCallLinkDescription":"Copy this link and send it to anyone you wish to invite to join the call.","copyClipLinkDescription":"Copy this link and send it to anyone you wish to invite to record a clip.","email":"Email","emailPlaceholder":"Eg. john@acme.com","emailsOrNumberPlaceholder":"Eg. john@acme.com or +33612345678","error":"Failed to send, please try again later.","invalidEmail":"Invalid email format.","invalidEmailOrNumber":"Invalid email or number format.","invitationSentTo_one":"Sent to {{ name }}","invitationSentTo_other":"Sent to {{ name }} and {{ otherEmailsCount }}+","invite":"Invite","inviteByEmail":"Invite by email","inviteByEmailOrNumber":"Invite by email or sms","inviteCall":"Invite to join call","inviteCallDefaultMessage":"Hey! You\'re invited to join our video call. Click the link to connect instantly.","inviteClipAudioDefaultMessage":"Hey! Please record an audio message now and provide us with more context to assist you better.","inviteClipDefaultMessage":"Hey! Please record your video clip now and provide us with more context to assist you better.","inviteClipImageDefaultMessage":"Hey! Please take a photo and provide us with more context to assist you better.","inviteClipPhotoDefaultMessage":"Hey! Please take a photo and provide us with more context to assist you better.","inviteClipScreenDefaultMessage":"Hey! Please record your screen now and provide us with more context to assist you better.","inviteClipVideoDefaultMessage":"Hey! Please record your video now and provide us with more context to assist you better.","invitePeople":"Invite people","inviteRecordAudio":"Record an audio","inviteRecordClip":"Invite to record clip","inviteRecordImage":"Take a photo","inviteRecordPhoto":"Take a photo","inviteRecordScreen":"Record a screen","inviteRecordVideo":"Record a video","joinTheCall":"Join the call","linkToJoinCall":"Link to join the call","linkToRecordAClip":"Link to record a clip","message":"Message","sharePublicLink":"Share public link"},"leave":{"endCall":"End call for all","leaveCall":"Leave call","title":"Leave"},"loader":{"connection":"Connecting..."},"menu":{"new":"NEW","openNewTab":"Open new tab","pictureInPicture":"Picture-in-Picture","quickConnect":"Quick Connect","screenSharing":"Screen sharing","startRecord":"Record call","stopRecord":"Stop record","title":"Menu"},"misc":{"accept":"Accept","add":"Add","audio":"Audio","camera":"Camera","cancel":"Cancel","confirm":"Confirm","decline":"Decline","download":"Download","from":"From","image":"Photo","microphone":"Microphone","off":"Off","on":"On","open":"Open","pdf":"PDF","photo":"Photo","proceed":"Proceed","remove":"Remove","rotateCamera":"Rotate camera","screen":"Screen","screenshot":"Screenshot","someone":"Someone","speaker":"Speaker","upload":"Upload","user":"User","video":"Video","you":"You"},"networkIssue":{"description":"The clip information may be damaged.","title":"Network issue"},"notifications":{"aQuickRefreshShouldFix":"A quick refresh should get things back on track","agentJoinError":"An error occured while trying to join the room as an agent","allow":"Allow","blockedMicrophonePopup":"SnapCall requires access to your camera and microphone. Click the camera blocked icon in your browser\'s address bar.","blockedMicrophonePopupTitle":"Camera and microphone are blocked","cameraError":"An error occured when trying to toggle the camera","cameraRotateError":"An error occured when trying to rotate the camera","close":"Close","connectedTo":"Connected to {{name}}","criticalError":"An error has occurred, please check your connection and contact support if this persists (error {{code}}).","error":"Error","errorOccuredCode":"An error occured (error {{code}}).","failedToDisableVideo":"Something went wrong while disabling your camera. Please refresh your tab and try again.","failedToEnableMicrophone":"Enable microphone access in your browser settings to start your video.","failedToEnableVideo":"Enable camera access in your browser settings to start your video.","failedToMuteUnmuteMicrophone":"Something went wrong while disabling your microphone. Please refresh your tab and try again.","invitationSentToFailed":"Sent to {{ name }} failed.","locationIsBlocked":"Location is blocked","locationIsRequired":"Location is required","locationIsUnavailable":"Location is unavailable","locationIsUnresponsive":"Location is unresponsive","microphoneError":"An error occured when trying to toggle the microphone","networkStability":"Network stability","noCamera":"No camera available","permissionToShareScreenDenied":"Permission to share screen denied","pleaseEnableLocation":"Please enable location services in your settings.","recording":"Recording in progress","recordingStopped":"Recording stopped","reload":"Reload","screensharingError":"An error occured when trying to toggle screensharing","somethingWentWrong":"Oops! Something went wrong","unableToSwitchCamera":"Unable to switch camera","unableToUnzoom":"Unable to unzoom","unableToZoom":"Unable to zoom","uploadError":"An error occured during the upload, please try again later.","uploadFailed":"Upload failed","yourInternetConnectionIsUnstable":"Your internet connection is unstable"},"quickConnect":{"scan":"Scan this QR code with your phone camera to open the call.","scanTitle":"Scan QR Code","title":"Quick Connect"},"recorder":{"addMore":"Add more","addNewClip":"Add new clip","allowAccess":"Allow access","allowCamMicAccess":"Allow access to cam/mic","allowScreenShareAccess":"Allow access to screen sharing","attachElements_one":"Attach {{ type }} to ticket","attachElements_other":"Attach {{ count }} elements","audioInstructionsTitle":"Ready to record a voice message?","audioLevelNotification":{"noSound":{"description":"Make sure your microphone is activated.","title":"No sound detected."},"shortVideo":{"description":"This video is too short to get context.","title":"Short video."},"spokenWordsQuestion":{"description":"Does your video include enough spoken details?","title":"Spoken words."},"spokenWordsWarning":{"description":"The clip includes barely any spoken words.","title":"No spoken words."}},"audioLevelToast":{"continueSpeaking":"Continue speaking for clearer context.","noSound":"No sound detected.","rememberSpeaking":"Remember to speak to provide context."},"chooseWhatYouWantToShare":"Choose what you want to share","chooseWhatYouWantToShareDescription":"Select the screen or tab you want to share and start recording.","clickBelowToAddYourFiles":"Click below to add your files","clipCount_one":"{{ count }} clip","clipCount_other":"{{ count }} clips","clipSubmissionDescription":"Thank you for using SnapCall.","clipSubmissionTitle_one":"Your clip has been sent","clipSubmissionTitle_other":"Your clips have been sent","confirmRemovalDescription":"Are you sure you want to delete this photo/video? This action cannot be undone.","confirmRemovalTitle":"Confirm deletion","elementBeingProcessed":"Please wait while your {{ type }} is being processed...","elementCaptureSuccess":"{{ type }} captured successfully","elementRecordedAndAttached":"Your clip has been sent and attached to the thread.","feelFreeToTalkGiveMoreContext":"\uD83D\uDDE3\uFE0F Feel free to talk to give me more context.","fileUploadIsLimitedTo1GB":"File upload is limited to 1GB.","goBackToTicket":"Go back to ticket","imageInstructionsTitle":"Ready to snap a photo?","instructions":{"allowAccessOnPrompt":"When prompted, <bold>allow access</bold> to camera and microphone.","multiplePhotos":"Take a <bold>photo or multiple</bold> for detail, then review.","privacyPolicy":"By proceeding, you agree to our <bold>Privacy Policy</bold>.","reviewAndSendAudios":"<bold>Review your audios</bold>, and they will be sent to us automatically.","reviewAndSendPhotos":"<bold>Validate your photos</bold>, and they will be sent to us automatically.","reviewAndSendVideos":"<bold>Review your videos</bold>, and they will be sent to us automatically.","screenShareInstruction":"Select the screen or window you wish to record.","selectScreenshare":"Tap Record my screen and select the screen or window you want to record.","speakClearly":"<bold>Speak clearly</bold> and say what you need to convey.","speakDuringRecord":"You can speak while recording to add details.","stopScreenOnFinish":"Press the Stop button when finished. The video will be sent to us automatically.","tapAudioButton":"<bold>Tap the record button</bold> to start recording your audio message.","tapStopVideoButton":"<bold>Tap stop</bold> when you are done.","tapVideoButton":"<bold>Tap the record button</bold> to begin and feel free to provide commentary.","videoSpeech":"You can <bold>talk during</bold> the recording to provide additional information."},"limit":"Video recording limited to 5 min.","logIn":"Log in","loggedAs":"Logged as","media":"Media","mediaCount_one":"{{ count }} media","mediaCount_other":"{{ count }} media","mediaSent_one":"Your media has been sent","mediaSent_other":"Your media has been sent","mySuggestion":"My suggestion","noCameraAccess":"No camera access","noCameraAccessDescription":"No camera access Allow camera access in your browser.","noCameraAndMicrophoneAccess":"No camera & microphone access","noCameraAndMicrophoneAccessDescription":"No camera & microphone access Allow microphone and camera access in your browser.","noMicrophoneAccess":"No microphone access","noMicrophoneAccessDescription":"No microphone access Allow microphone access in your browser.","noPreviewAvailable":"No preview available","okay":"Okay","openThread":"Open thread","permissionDeniedDescription":"Without access to the camera and microphone, you won\'t be able to capture photos or videos to share with the support team. Please grant access in your browser settings.","permissionDeniedTitle":"Something went wrong!","photoInstructionsTitle":"Ready to snap a photo?","recordNewMedia":"Record new media","replyAttached":"Your reply has been attached","scanQRCode":"Scan this QR code with a compatible device.","screenShareInstructionsTitle":"Ready to share your screen?","screenTitle":"Ready to capture your screen?","send":"Send","sendElements_one":"Send {{ type }}","sendElements_other":"Send {{ count }} elements","showQrCode":"Show QR code","start":"Start","startByClickingOnTheButton":"Start by clicking on the round button below! \uD83D\uDC47","startScreenRecording":"Start screen recording","startScreenShareButton":"Record my screen","stopScreenShareButton":"Stop recording","submissionDescription":"Your photo/video has been successfully submitted. We will review it and get back to you shortly.","submissionTitle":"Thank you for your submission!","switchToMobileDescription":"Experience greater convenience by using your phone to take photos and record videos.","switchToMobileTitle":"Switch to your mobile device","takeNewElement":"Capture a new {{ type }}","thanksForYourMedia":"Thanks for your media!","upload":"Upload","useDesktopVersion":"Use the desktop version","videoBotError":"Sorry, an error has occured.","videoBotThinking":"Thinking...","videoInstructionsTitle":"Ready to record a video?","waitVideo":"A video may take up to 15 seconds to be ready.","yourMedia":"Your media","yourMediaHaveBeenSubmitted":"Your media have been submitted. You can now leave this page."},"recordingPopup":{"dismiss":"Dismiss","recordingStartText":"This call will be recorded shortly. If you\u2019d rather not be recorded, you\u2019re welcome to leave the call at this time.","recordingStartTitle":"Recording about to start."},"requestAccess":{"admit":"Admit","defaultName":"An user","deny":"Deny","wantToJoin":"<bold>{{name}}</bold> wants to join!"},"requestDevice":{"askForDevice":"Ask for {{device}}","declined":"Your request has been declined.","deviceActivated":"{{device}} activated","deviceActivationDeclined":"{{device}} activation declined","request":"{{user}} would like you to share your {{device}}","requestInput":"Request input devices","timedOut":"Your request has timed out.","userDeclined":"{{user}} has declined your request.","userWouldLikeYouToActivateYourDevice":"{{name}} would like you to activate your {{device}}.","waitingForDevice":"Waiting for {{name}}\'s {{device}}"},"settings":{"callSettings":"Call settings","devices":"Devices","enableVideo":"Enable video","help":"Help","helpCenter":"Go to help center","language":"Language","manageRecording":"Manage recording","mustBeAtLeastTwoParticipants":"There must be at least 2 participants to start recording.","preferences":"Preferences","selectYourCamera":"Select your preferred camera","selectYourLanguage":"Select your preferred language","selectYourMicrophone":"Select your preferred microphone","startRecording":"Start video recording","stopRecording":"Stop recording","title":"Settings","tools":"Tools"},"shareCallLink":"Share call link","shareLink":{"failed":"Failed to send link","invalid":"Invalid link","invoice":"{{user}} sent you an invoice.","pay":"Pay","poweredBy":"Powered by","sentToUser":"Link sent to {{user}}","sentToUsers":"Link sent to users","title":"Share link","title2":"Share a link"},"shareThisLinkToInviteOthers":"Share this link to invite others to this call.","sharedHistory":{"shared":"Shared with you"},"snapshot":{"aSnapshotHasBeenShared":"A snapshot has been shared.","error":"An error occured when trying to send the snapshot","save":"Save photo","sentToUser":"Snapshot sent to {{user}}","sentToUsers":"Snapshot sent to users.","shared":"Snapshot shared.","title":"Snapshot"},"videoDrawer":{"drawInVideo":"Draw in video"},"videoMenu":{"blockedCamera":"Camera is blocked.","cameraPermissions":"Please accept camera sharing before accessing these options.","highDef":"High definition (720p)","lowDef":"Low definition (240p)","sendResolution":"Send Resolution (maximum)","standardDef":"Standard definition (480p)","title":"Video"},"virtualBackground":{"blur":"Blur","custom":"Custom","default":"Default","noCustomBackgrounds":"No custom backgrounds yet. Please contact your admin.","none":"None","setBackground":"Set Background","title":"Virtual Background"},"youtube":{"description":"Share a YouTube video with other participants.","invalid":"Invalid YouTube URL","share":"Watch now","title":"Watch Together","url":"YOUTUBE URL"}}');
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
var $dcf57489ec338826$exports = {};
|
|
@@ -6249,7 +6249,7 @@ var $1c906a2b66e07e70$export$2e2bcd8739ae039 = $1c906a2b66e07e70$var$MediaSessio
|
|
|
6249
6249
|
const $a53a1c6f62ad0fcc$var$browser = (0, $3Sbms$bowser).parse(window.navigator.userAgent);
|
|
6250
6250
|
const $a53a1c6f62ad0fcc$export$6d1782328b15ce2d = ({ width: width, height: height, children: children, name: name, image: image, className: className, activeBorder: activeBorder, hasMicrophoneDisabled: hasMicrophoneDisabled, hasCameraDisabled: hasCameraDisabled, hasScreenDisabled: hasScreenDisabled, showVirtualBackgroundShortcut: showVirtualBackgroundShortcut, maximizeToggle: maximizeToggle, onRequestDevice: onRequestDevice, onSnapshot: onSnapshot, onDraw: onDraw, onStopDraw: onStopDraw, ...otherProps })=>{
|
|
6251
6251
|
const { t: t } = (0, $3Sbms$useTranslation)();
|
|
6252
|
-
const { options: options, streamInfo: streamInfo, streamState: streamState } = (0, $3Sbms$useContext)((0, $5f30d8bf4f04621e$export$2e2bcd8739ae039));
|
|
6252
|
+
const { options: options, streamInfo: streamInfo, streamState: streamState, isAgent: isAgent } = (0, $3Sbms$useContext)((0, $5f30d8bf4f04621e$export$2e2bcd8739ae039));
|
|
6253
6253
|
const callConfig = streamInfo.flow.config?.call;
|
|
6254
6254
|
const permissions = streamInfo.plan.permissions;
|
|
6255
6255
|
const [isMaximized, setIsMaximized] = (0, $3Sbms$useState)(false);
|
|
@@ -6385,7 +6385,7 @@ const $a53a1c6f62ad0fcc$export$6d1782328b15ce2d = ({ width: width, height: heigh
|
|
|
6385
6385
|
/*#__PURE__*/ (0, $3Sbms$jsxs)("div", {
|
|
6386
6386
|
className: "invisible group-hover:visible",
|
|
6387
6387
|
children: [
|
|
6388
|
-
isDesktop && onDraw && !hasCameraDisabled && callConfig?.pointer && /*#__PURE__*/ (0, $3Sbms$jsxs)((0, $3Sbms$Tooltip), {
|
|
6388
|
+
isDesktop && onDraw && !hasCameraDisabled && callConfig?.pointer && isAgent && /*#__PURE__*/ (0, $3Sbms$jsxs)((0, $3Sbms$Tooltip), {
|
|
6389
6389
|
children: [
|
|
6390
6390
|
/*#__PURE__*/ (0, $3Sbms$jsx)((0, $3Sbms$TooltipTrigger), {
|
|
6391
6391
|
asChild: true,
|
|
@@ -6866,19 +6866,25 @@ const $306a53f44040492f$var$ScreenshareTile = (tile)=>{
|
|
|
6866
6866
|
(0, $c9e496369b59be7a$export$2f377c2162fd02b2).disableScreenshare();
|
|
6867
6867
|
};
|
|
6868
6868
|
}, []);
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6869
|
+
(0, $3Sbms$useEffect)(()=>{
|
|
6870
|
+
const draw = ()=>{
|
|
6871
|
+
if (videoElementRef.current && canvasElementRef.current) (0, $c9e496369b59be7a$export$2f377c2162fd02b2).drawInVideo({
|
|
6872
|
+
peerId: tile.peerId,
|
|
6873
|
+
mediaId: tile.data.mediaId,
|
|
6874
|
+
deviceType: 'screen',
|
|
6875
|
+
videoElement: videoElementRef.current,
|
|
6876
|
+
canvasElement: canvasElementRef.current
|
|
6877
|
+
});
|
|
6878
|
+
};
|
|
6879
|
+
setStartScreenSharingDrawing(()=>draw);
|
|
6880
|
+
return ()=>{
|
|
6881
|
+
setStartScreenSharingDrawing(undefined);
|
|
6882
|
+
};
|
|
6877
6883
|
}, [
|
|
6878
|
-
tile.
|
|
6879
|
-
tile.
|
|
6884
|
+
tile.peerId,
|
|
6885
|
+
tile.data,
|
|
6886
|
+
setStartScreenSharingDrawing
|
|
6880
6887
|
]);
|
|
6881
|
-
setStartScreenSharingDrawing(()=>draw);
|
|
6882
6888
|
return /*#__PURE__*/ (0, $3Sbms$jsxs)("div", {
|
|
6883
6889
|
className: "flex justify-center items-center w-full h-full box-border",
|
|
6884
6890
|
children: [
|
|
@@ -6891,7 +6897,7 @@ const $306a53f44040492f$var$ScreenshareTile = (tile)=>{
|
|
|
6891
6897
|
}),
|
|
6892
6898
|
/*#__PURE__*/ (0, $3Sbms$jsx)("canvas", {
|
|
6893
6899
|
ref: canvasElementRef,
|
|
6894
|
-
className: "
|
|
6900
|
+
className: "absolute z-16 object-cover rounded-[10px]"
|
|
6895
6901
|
})
|
|
6896
6902
|
]
|
|
6897
6903
|
});
|
|
@@ -8492,7 +8498,7 @@ const $69a9c49ece80e773$var$ControlBar = ()=>{
|
|
|
8492
8498
|
const isDesktop = $69a9c49ece80e773$var$browser.platform.type === 'desktop';
|
|
8493
8499
|
const [webcamCount, setWebcamCount] = (0, $3Sbms$useState)(0);
|
|
8494
8500
|
const [isCameraLoading, setIsCameraLoading] = (0, $3Sbms$useState)(false);
|
|
8495
|
-
const { muted: muted, streaming: streaming, options: options, headless: headless, selfPeerId: selfPeerId, streamInfo: streamInfo } = (0, $3Sbms$useContext)((0, $5f30d8bf4f04621e$export$2e2bcd8739ae039));
|
|
8501
|
+
const { muted: muted, streaming: streaming, options: options, headless: headless, selfPeerId: selfPeerId, streamInfo: streamInfo, isAgent: isAgent } = (0, $3Sbms$useContext)((0, $5f30d8bf4f04621e$export$2e2bcd8739ae039));
|
|
8496
8502
|
const { highlightedTile: highlightedTile, dispatch: dispatch, remoteVideoDrawEnabled: remoteVideoDrawEnabled, startScreenSharingDrawing: startScreenSharingDrawing } = (0, $cce9fd41d8a55a18$export$b5633a7cfbe42d9f)();
|
|
8497
8503
|
const reportError = (0, $b57f32aadf2afba1$export$5a5695b638d078e7)();
|
|
8498
8504
|
const { t: t } = (0, $3Sbms$useTranslation)();
|
|
@@ -8699,7 +8705,7 @@ const $69a9c49ece80e773$var$ControlBar = ()=>{
|
|
|
8699
8705
|
!compactContainer.isCompact && t('drawInVideo.stopPointing')
|
|
8700
8706
|
]
|
|
8701
8707
|
}),
|
|
8702
|
-
isDesktop && startScreenSharingDrawing &&
|
|
8708
|
+
isDesktop && startScreenSharingDrawing && !remoteVideoDrawEnabled && !videoDrawEnabled && isAgent && /*#__PURE__*/ (0, $3Sbms$jsxs)((0, $3Sbms$Tooltip), {
|
|
8703
8709
|
children: [
|
|
8704
8710
|
/*#__PURE__*/ (0, $3Sbms$jsx)((0, $3Sbms$TooltipTrigger), {
|
|
8705
8711
|
asChild: true,
|
|
@@ -9478,7 +9484,8 @@ const $a646b6b865932ef4$export$1cdb0c90ced085 = ({ children: children, fileInput
|
|
|
9478
9484
|
duration: duration,
|
|
9479
9485
|
thumbnailUrl: thumbnailUrl,
|
|
9480
9486
|
createdAt: createdAt,
|
|
9481
|
-
networkIssue: false
|
|
9487
|
+
networkIssue: false,
|
|
9488
|
+
isUploaded: true
|
|
9482
9489
|
});
|
|
9483
9490
|
videoBotState.open();
|
|
9484
9491
|
} catch (error) {
|
|
@@ -10126,7 +10133,7 @@ const $e7cb1b9cf7f73f20$export$ce05094b93c0f011 = ()=>{
|
|
|
10126
10133
|
(0, $a5dd8f67439dd9eb$export$df987b50509121ea)(result.filename);
|
|
10127
10134
|
return false;
|
|
10128
10135
|
}
|
|
10129
|
-
return
|
|
10136
|
+
return result;
|
|
10130
10137
|
});
|
|
10131
10138
|
if (errors.length > 0) {
|
|
10132
10139
|
const erroredFilenames = errors.map((it)=>it.filename).join(' / ');
|
|
@@ -10157,11 +10164,14 @@ const $e7cb1b9cf7f73f20$export$ce05094b93c0f011 = ()=>{
|
|
|
10157
10164
|
|
|
10158
10165
|
|
|
10159
10166
|
|
|
10160
|
-
const $c1e1b1dfb95e8d3b$export$16028ed4f0100bfc = ({ asset: asset })=>{
|
|
10167
|
+
const $c1e1b1dfb95e8d3b$export$16028ed4f0100bfc = ({ asset: asset, url: url })=>{
|
|
10161
10168
|
const { t: t } = (0, $3Sbms$useTranslation)();
|
|
10162
10169
|
const { setOpenedAsset: setOpenedAsset } = (0, $75812785bb101fee$export$2174f25d572f9f31)();
|
|
10163
10170
|
return /*#__PURE__*/ (0, $3Sbms$jsxs)("div", {
|
|
10164
|
-
className: "flex flex-col gap-3",
|
|
10171
|
+
className: "flex flex-col gap-3 overflow-y-auto",
|
|
10172
|
+
style: {
|
|
10173
|
+
WebkitOverflowScrolling: 'touch'
|
|
10174
|
+
},
|
|
10165
10175
|
children: [
|
|
10166
10176
|
/*#__PURE__*/ (0, $3Sbms$jsxs)("div", {
|
|
10167
10177
|
className: "flex items-center gap-4",
|
|
@@ -10186,7 +10196,7 @@ const $c1e1b1dfb95e8d3b$export$16028ed4f0100bfc = ({ asset: asset })=>{
|
|
|
10186
10196
|
'border-2 border-gray-200 rounded-2xl': asset.mode === 'video' || asset.mode === 'screen' || asset.mode === 'image'
|
|
10187
10197
|
}),
|
|
10188
10198
|
children: asset.mode === 'video' || asset.mode === 'screen' ? /*#__PURE__*/ (0, $3Sbms$jsx)("video", {
|
|
10189
|
-
src: asset.url,
|
|
10199
|
+
src: url || asset.url,
|
|
10190
10200
|
playsInline: true,
|
|
10191
10201
|
autoPlay: true,
|
|
10192
10202
|
controls: true,
|
|
@@ -10217,6 +10227,14 @@ const $27cd2372f8d32f4c$export$e3cee2ebbbe23463 = ()=>{
|
|
|
10217
10227
|
const [isAtSubmissionStep, setIsAtSubmissionStep] = (0, $3Sbms$useState)(false);
|
|
10218
10228
|
const showSubmissionStep = isAtSubmissionStep && !currentStep;
|
|
10219
10229
|
const sendAssets = (0, $e7cb1b9cf7f73f20$export$ce05094b93c0f011)();
|
|
10230
|
+
const openedAssetUrl = (0, $3Sbms$useMemo)(()=>{
|
|
10231
|
+
if (!openedAsset) return;
|
|
10232
|
+
const current = sendAssets.data?.find((asset)=>asset.filename === openedAsset?.filename);
|
|
10233
|
+
return current?.url;
|
|
10234
|
+
}, [
|
|
10235
|
+
sendAssets,
|
|
10236
|
+
openedAsset
|
|
10237
|
+
]);
|
|
10220
10238
|
const isOpen = sendAssets.isSuccess || showSubmissionStep ? true : isRecording ? false : videoBotState.isOpen;
|
|
10221
10239
|
const currentStepIndex = streamInfo.flow.steps.findIndex((step)=>step.token === currentStep?.token);
|
|
10222
10240
|
const currentStepAssets = assets.filter((asset)=>asset.stepToken === currentStep?.token);
|
|
@@ -10285,7 +10303,8 @@ const $27cd2372f8d32f4c$export$e3cee2ebbbe23463 = ()=>{
|
|
|
10285
10303
|
]
|
|
10286
10304
|
}),
|
|
10287
10305
|
openedAsset ? /*#__PURE__*/ (0, $3Sbms$jsx)((0, $c1e1b1dfb95e8d3b$export$16028ed4f0100bfc), {
|
|
10288
|
-
asset: openedAsset
|
|
10306
|
+
asset: openedAsset,
|
|
10307
|
+
url: openedAssetUrl
|
|
10289
10308
|
}) : currentStep ? /*#__PURE__*/ (0, $3Sbms$jsx)((0, $c52fff278aef3064$export$423b43901b3e0d2e), {
|
|
10290
10309
|
currentStep: currentStep,
|
|
10291
10310
|
onNextClick: ()=>{
|
|
@@ -10876,6 +10895,10 @@ const $24e31aa1532c4049$export$f9da3144ae2525a3 = ()=>{
|
|
|
10876
10895
|
const canStartRecord = mode === 'image' ? devicesState.camera.enabled : mode === 'audio' ? devicesState.microphone.enabled : mode === 'video' ? devicesState.camera.enabled && devicesState.microphone.enabled : mode === 'screen' ? devicesState.screenshare.enabled && devicesState.microphone.enabled : false;
|
|
10877
10896
|
const onPhotoClick = async ()=>{
|
|
10878
10897
|
if (videoElementRef.current && currentStep) {
|
|
10898
|
+
(0, $2a1d7886742be527$export$18c6473b5b45bda1)?.track('Record button', {
|
|
10899
|
+
mode: mode,
|
|
10900
|
+
action: 'start'
|
|
10901
|
+
});
|
|
10879
10902
|
setShowFlashAnimation(true);
|
|
10880
10903
|
const createdAt = Date.now();
|
|
10881
10904
|
setIncomingAsset({
|
|
@@ -10893,7 +10916,8 @@ const $24e31aa1532c4049$export$f9da3144ae2525a3 = ()=>{
|
|
|
10893
10916
|
url: url,
|
|
10894
10917
|
thumbnailUrl: url,
|
|
10895
10918
|
createdAt: createdAt,
|
|
10896
|
-
networkIssue: false
|
|
10919
|
+
networkIssue: false,
|
|
10920
|
+
isUploaded: false
|
|
10897
10921
|
});
|
|
10898
10922
|
} catch (error) {
|
|
10899
10923
|
reportError({
|
|
@@ -10911,6 +10935,10 @@ const $24e31aa1532c4049$export$f9da3144ae2525a3 = ()=>{
|
|
|
10911
10935
|
if (isRecording && !isStoppingRecording) {
|
|
10912
10936
|
setIsStoppingRecording(true);
|
|
10913
10937
|
videoBotState.open();
|
|
10938
|
+
(0, $2a1d7886742be527$export$18c6473b5b45bda1)?.track('Record button', {
|
|
10939
|
+
mode: mode,
|
|
10940
|
+
action: 'stop'
|
|
10941
|
+
});
|
|
10914
10942
|
try {
|
|
10915
10943
|
await (0, $c9e496369b59be7a$export$2f377c2162fd02b2).stopRecord();
|
|
10916
10944
|
if (mode === 'screen') (0, $c9e496369b59be7a$export$2f377c2162fd02b2).disableScreenshare().catch((error)=>{
|
|
@@ -10927,18 +10955,24 @@ const $24e31aa1532c4049$export$f9da3144ae2525a3 = ()=>{
|
|
|
10927
10955
|
error: error
|
|
10928
10956
|
});
|
|
10929
10957
|
}
|
|
10930
|
-
} else if (!isRecording)
|
|
10931
|
-
|
|
10932
|
-
|
|
10933
|
-
|
|
10934
|
-
|
|
10935
|
-
|
|
10936
|
-
|
|
10937
|
-
|
|
10958
|
+
} else if (!isRecording) {
|
|
10959
|
+
(0, $2a1d7886742be527$export$18c6473b5b45bda1)?.track('Record button', {
|
|
10960
|
+
mode: mode,
|
|
10961
|
+
action: 'start'
|
|
10962
|
+
});
|
|
10963
|
+
setShowCountdown((prev)=>{
|
|
10964
|
+
const next = !prev;
|
|
10965
|
+
const { screenshare: screenshare } = (0, $c9e496369b59be7a$export$2f377c2162fd02b2).getDevicesState();
|
|
10966
|
+
if (next === false && screenshare.enabled) (0, $c9e496369b59be7a$export$2f377c2162fd02b2).disableScreenshare().catch((error)=>{
|
|
10967
|
+
reportError({
|
|
10968
|
+
title: t('notifications.somethingWentWrong'),
|
|
10969
|
+
code: 'SC_2',
|
|
10970
|
+
error: error
|
|
10971
|
+
});
|
|
10938
10972
|
});
|
|
10973
|
+
return next;
|
|
10939
10974
|
});
|
|
10940
|
-
|
|
10941
|
-
});
|
|
10975
|
+
}
|
|
10942
10976
|
};
|
|
10943
10977
|
const onCountdownFinish = async ()=>{
|
|
10944
10978
|
try {
|
|
@@ -11006,9 +11040,6 @@ const $24e31aa1532c4049$export$f9da3144ae2525a3 = ()=>{
|
|
|
11006
11040
|
if (canStartRecord) {
|
|
11007
11041
|
if (mode === 'image') onPhotoClick();
|
|
11008
11042
|
else onRecordClick();
|
|
11009
|
-
(0, $2a1d7886742be527$export$18c6473b5b45bda1)?.track('Record button', {
|
|
11010
|
-
mode: mode
|
|
11011
|
-
});
|
|
11012
11043
|
}
|
|
11013
11044
|
},
|
|
11014
11045
|
className: (0, $3Sbms$classnames)('flex items-center justify-center w-16 h-16 ring-[3px] ring-black rounded-full cursor-pointer transition-all duration-500', mode === 'image' ? 'p-2' : 'p-5', isRecordButtonActive ? isStoppingRecording ? 'bg-gray-800/60' : 'bg-red-700/60' : 'bg-transparent'),
|
|
@@ -11575,7 +11606,8 @@ const $d6943d128e6c8399$export$336a011955157f9a = ()=>{
|
|
|
11575
11606
|
duration: durationMs,
|
|
11576
11607
|
averageAudioLevel: averageAudioLevel || 0,
|
|
11577
11608
|
createdAt: incomingAsset.createdAt,
|
|
11578
|
-
networkIssue: networkIssue
|
|
11609
|
+
networkIssue: networkIssue,
|
|
11610
|
+
isUploaded: false
|
|
11579
11611
|
});
|
|
11580
11612
|
}
|
|
11581
11613
|
setNetworkIssue(false);
|
|
@@ -12497,6 +12529,7 @@ const $26ed036cbc17809a$var$StreamUI = ({ options: baseOptions })=>{
|
|
|
12497
12529
|
}, {
|
|
12498
12530
|
persistent: false
|
|
12499
12531
|
});
|
|
12532
|
+
(0, $2a1d7886742be527$export$18c6473b5b45bda1)?.track('Join room');
|
|
12500
12533
|
if (type === 'assist') await (0, $c9e496369b59be7a$export$2f377c2162fd02b2).joinRecorder();
|
|
12501
12534
|
else if (streamInfo.data?.flow.config?.call?.pre_call && !mergedOptions.skipPreCall) setStreamState('preCall');
|
|
12502
12535
|
else {
|
|
@@ -12505,6 +12538,7 @@ const $26ed036cbc17809a$var$StreamUI = ({ options: baseOptions })=>{
|
|
|
12505
12538
|
} catch (error) {
|
|
12506
12539
|
console.error('joinRoom error', error);
|
|
12507
12540
|
setStreamState('full');
|
|
12541
|
+
(0, $2a1d7886742be527$export$18c6473b5b45bda1)?.track('Room full');
|
|
12508
12542
|
return;
|
|
12509
12543
|
}
|
|
12510
12544
|
try {
|
|
@@ -12650,6 +12684,7 @@ const $26ed036cbc17809a$var$StreamUI = ({ options: baseOptions })=>{
|
|
|
12650
12684
|
(0, $3Sbms$useEffect)(()=>{
|
|
12651
12685
|
if (dashboardSession.data?.settings?.language) setLanguage(dashboardSession.data.settings.language);
|
|
12652
12686
|
if (dashboardSession.data?.id) {
|
|
12687
|
+
setIsAgent(true);
|
|
12653
12688
|
(0, $2a1d7886742be527$export$18c6473b5b45bda1)?.identify(dashboardSession.data.id.toString());
|
|
12654
12689
|
(0, $2a1d7886742be527$export$18c6473b5b45bda1)?.people.set({
|
|
12655
12690
|
$email: dashboardSession.data.email
|
package/dist/stream-ui.js
CHANGED
|
@@ -55,7 +55,7 @@ $20859e1dad0fd138$exports = JSON.parse('{"header":{"free":"Free version"},"loade
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
var $a8febdc80ac5353b$exports = {};
|
|
58
|
-
$a8febdc80ac5353b$exports = JSON.parse('{"audioMenu":{"blockedMicrophone":"Microphone is blocked.","microphonePermissions":"Please accept microphone sharing before accessing these options.","title":"Audio"},"blockedFeature":{"descriptionConnected":"On a free plan, you can\'t use this feature. Upgrade your plan to enjoy all in-call features.","descriptionGuest":"You are participating in a call created with a free version of SnapCall. This feature is only available with a Pro version.","dismissConnected":"Upgrade to Pro","dismissGuest":"Okay","titleConnected":"Upgrade to Pro","titleGuest":"Feature not available"},"common":{"new":"new"},"copyLink":{"copied":"Link copied to clipboard","copy":"Copy","description":"Copy link into clipboard","error":"An error occured when trying to copy to clipboard","title":"Copy link"},"drawInVideo":{"pointer":"Pointer","pointerScreenSharing":"Pointer \xb7 Screen-sharing","stopPointing":"Stop Pointing"},"endView":{"addAdditionalMedia":"Have you forgotten to mention anything?","allowsYouToShareMoreMedia":"Add media here so that your support agent can review it offline.","callEnded":"The call is now ended","callIsOver":"The call is over or deleted","callLeft":"You left the call","callNoLongerActive":"This call is no longer active. Thank you for participating.","full":"You can\'t join this call","fullDescription":"The room is full. Please try to join the call later.","goBack":"Go back to call","howWasYourExperience":"Was the connection quality of your call satisfactory?","ifMistakeRejoin":"If this was a mistake, you can rejoin using the button below.","invalidLink":"Invalid link","invalidOrExpired":"This link is invalid or expired.","openDashboard":"Open dashboard","pleaseRateYourExperienceBelow":"We value your feedback. Please rate your experience below to help us improve.","thankYouForYourFeedback":"Thank you for your feedback.","tooLate":"You arrived too late","yourFeedbackHelpsUs":"Your feedback helps us improve. See you soon!"},"gdpr":{"recordedWarning":"To improve the quality of our service, this call will be recorded."},"greeting":{"askToJoin":"Ask to join","askingLetIn":"Asking to be let in...","cameraDisabled":"Camera is Off","cameraEnabled":"Camera is On","canceledCallRequest":"The call request will be canceled and you will be redirected to the call scheduling page.","cantJoinCall":"You can\u2019t join this call","cantWait":"Can\'t wait?","cantWaitLeaveMessage":"Can\u2019t wait? You can leave a message and you will be contacted as soon as possible.","checkYourCameraMicrophoneAndSettings":"Check your camera, microphone, and settings before entering the call.","clickOnLock":"Click on the <1></1> lock icon in your browser\'s bar.","footerDescription":"Meet SnapCall, the easiest way to add real-time video to platform, product or service.","footerTitle":"Powered by SnapCall","getReadyToJoin":"Get ready to join","join":"Join","joinACall":"Join a call","leaveMessage":"Leave a message","mainTitle":"Welcome to SnapCall","mediaDenied":"Microphone and camera access denied","microphoneDisabled":"Microphone is Off","microphoneEnabled":"Microphone is On","name":"Name","nameDescription":"This name will be displayed to all participants in the call.","namePlaceholder":"Eg. Lucy or Peter","nameSubmit":"Join Conversation","pleaseCheckYourBrowserPermissions":"Please check your browser permissions","recordVideo":"Record video","recordVoice":"Record voice","requestACall":"Request a call","scheduleACall":"Schedule a call","setting":"Settings","sideDescription":"Please enter your name and adjust your camera and microphone","sideTitle":"Hold tight, you\'re next!","someoneDenied":"Someone in the call denied your request to join.","takeFewMinute":"This may take a few minutes depending on the availability of the participants.","whatYouCanDo":"Here\u2019s what you can do","youWillJoinWhenSomeoneLetsYou":"You will join the call when someone from {{ companyName }} lets you in."},"header":{"free":"Free version"},"iframe":{"featureNotAvailableInContext":"This feature is not available in the current context."},"invitePeople":{"PublicLink":"Public link","addEmailToInvite":"Add an email to invite.","addEmails":"Add emails...","copyCallLinkDescription":"Copy this link and send it to anyone you wish to invite to join the call.","copyClipLinkDescription":"Copy this link and send it to anyone you wish to invite to record a clip.","email":"Email","emailPlaceholder":"Eg. john@acme.com","emailsOrNumberPlaceholder":"Eg. john@acme.com or +33612345678","error":"Failed to send, please try again later.","invalidEmail":"Invalid email format.","invalidEmailOrNumber":"Invalid email or number format.","invitationSentTo_one":"Sent to {{ name }}","invitationSentTo_other":"Sent to {{ name }} and {{ otherEmailsCount }}+","invite":"Invite","inviteByEmail":"Invite by email","inviteByEmailOrNumber":"Invite by email or sms","inviteCall":"Invite to join call","inviteCallDefaultMessage":"Hey! You\'re invited to join our video call. Click the link to connect instantly.","inviteClipAudioDefaultMessage":"Hey! Please record an audio message now and provide us with more context to assist you better.","inviteClipDefaultMessage":"Hey! Please record your video clip now and provide us with more context to assist you better.","inviteClipImageDefaultMessage":"Hey! Please take a photo and provide us with more context to assist you better.","inviteClipPhotoDefaultMessage":"Hey! Please take a photo and provide us with more context to assist you better.","inviteClipScreenDefaultMessage":"Hey! Please record your screen now and provide us with more context to assist you better.","inviteClipVideoDefaultMessage":"Hey! Please record your video now and provide us with more context to assist you better.","invitePeople":"Invite people","inviteRecordAudio":"Record an audio","inviteRecordClip":"Invite to record clip","inviteRecordImage":"Take a photo","inviteRecordPhoto":"Take a photo","inviteRecordScreen":"Record a screen","inviteRecordVideo":"Record a video","joinTheCall":"Join the call","linkToJoinCall":"Link to join the call","linkToRecordAClip":"Link to record a clip","message":"Message","sharePublicLink":"Share public link"},"leave":{"endCall":"End call for all","leaveCall":"Leave call","title":"Leave"},"loader":{"connection":"Connecting..."},"menu":{"new":"NEW","openNewTab":"Open new tab","pictureInPicture":"Picture-in-Picture","quickConnect":"Quick Connect","screenSharing":"Screen sharing","startRecord":"Record call","stopRecord":"Stop record","title":"Menu"},"misc":{"accept":"Accept","add":"Add","audio":"Audio","camera":"Camera","cancel":"Cancel","confirm":"Confirm","decline":"Decline","download":"Download","from":"From","image":"Photo","microphone":"Microphone","off":"Off","on":"On","open":"Open","pdf":"PDF","photo":"Photo","proceed":"Proceed","remove":"Remove","rotateCamera":"Rotate camera","screen":"Screen","screenshot":"Screenshot","someone":"Someone","speaker":"Speaker","upload":"Upload","user":"User","video":"Video","you":"You"},"networkIssue":{"description":"The clip information may be damaged.","title":"Network issue"},"notifications":{"aQuickRefreshShouldFix":"A quick refresh should get things back on track","agentJoinError":"An error occured while trying to join the room as an agent","allow":"Allow","blockedMicrophonePopup":"SnapCall requires access to your camera and microphone. Click the camera blocked icon in your browser\'s address bar.","blockedMicrophonePopupTitle":"Camera and microphone are blocked","cameraError":"An error occured when trying to toggle the camera","cameraRotateError":"An error occured when trying to rotate the camera","close":"Close","connectedTo":"Connected to {{name}}","criticalError":"An error has occurred, please check your connection and contact support if this persists (error {{code}}).","error":"Error","errorOccuredCode":"An error occured (error {{code}}).","failedToDisableVideo":"Something went wrong while disabling your camera. Please refresh your tab and try again.","failedToEnableMicrophone":"Enable microphone access in your browser settings to start your video.","failedToEnableVideo":"Enable camera access in your browser settings to start your video.","failedToMuteUnmuteMicrophone":"Something went wrong while disabling your microphone. Please refresh your tab and try again.","invitationSentToFailed":"Sent to {{ name }} failed.","locationIsBlocked":"Location is blocked","locationIsRequired":"Location is required","locationIsUnavailable":"Location is unavailable","locationIsUnresponsive":"Location is unresponsive","microphoneError":"An error occured when trying to toggle the microphone","networkStability":"Network stability","noCamera":"No camera available","permissionToShareScreenDenied":"Permission to share screen denied","pleaseEnableLocation":"Please enable location services in your settings.","recording":"Recording in progress","recordingStopped":"Recording stopped","reload":"Reload","screensharingError":"An error occured when trying to toggle screensharing","somethingWentWrong":"Oops! Something went wrong","unableToSwitchCamera":"Unable to switch camera","unableToUnzoom":"Unable to unzoom","unableToZoom":"Unable to zoom","uploadError":"An error occured during the upload, please try again later.","uploadFailed":"Upload failed","yourInternetConnectionIsUnstable":"Your internet connection is unstable"},"quickConnect":{"scan":"Scan this QR code with your phone camera to open the call.","scanTitle":"Scan QR Code","title":"Quick Connect"},"recorder":{"addMore":"Add more","addNewClip":"Add new clip","allowAccess":"Allow access","allowCamMicAccess":"Allow access to cam/mic","allowScreenShareAccess":"Allow access to screen sharing","attachElements_one":"Attach {{ type }} to ticket","attachElements_other":"Attach {{ count }} elements","audioInstructionsTitle":"Ready to record a voice message?","audioLevelNotification":{"noSound":{"description":"Make sure your microphone is activated.","title":"No sound detected."},"shortVideo":{"description":"This video is too short to get context.","title":"Short video."},"spokenWordsQuestion":{"description":"Does your video include enough spoken details?","title":"Spoken words."},"spokenWordsWarning":{"description":"The clip includes barely any spoken words.","title":"No spoken words."}},"audioLevelToast":{"continueSpeaking":"Continue speaking for clearer context.","noSound":"No sound detected.","rememberSpeaking":"Remember to speak to provide context."},"chooseWhatYouWantToShare":"Choose what you want to share","chooseWhatYouWantToShareDescription":"Select the screen or tab you want to share and start recording.","clickBelowToAddYourFiles":"Click below to add your files","clipCount_one":"{{ count }} clip","clipCount_other":"{{ count }} clips","clipSubmissionDescription":"Thank you for using SnapCall.","clipSubmissionTitle_one":"Your clip has been sent","clipSubmissionTitle_other":"Your clips have been sent","confirmRemovalDescription":"Are you sure you want to delete this photo/video? This action cannot be undone.","confirmRemovalTitle":"Confirm deletion","elementBeingProcessed":"Please wait while your {{ type }} is being processed...","elementCaptureSuccess":"{{ type }} captured successfully","elementRecordedAndAttached":"Your clip has been sent and attached to the thread.","feelFreeToTalkGiveMoreContext":"\uD83D\uDDE3\uFE0F Feel free to talk to give me more context.","fileUploadIsLimitedTo1GB":"File upload is limited to 1GB.","goBackToTicket":"Go back to ticket","imageInstructionsTitle":"Ready to snap a photo?","instructions":{"allowAccessOnPrompt":"When prompted, <bold>allow access</bold> to camera and microphone.","multiplePhotos":"Take a <bold>photo or multiple</bold> for detail, then review.","privacyPolicy":"By proceeding, you agree to our <bold>Privacy Policy</bold>.","reviewAndSendAudios":"<bold>Review your audios</bold>, and they will be sent to us automatically.","reviewAndSendPhotos":"<bold>Validate your photos</bold>, and they will be sent to us automatically.","reviewAndSendVideos":"<bold>Review your videos</bold>, and they will be sent to us automatically.","screenShareInstruction":"Select the screen or window you wish to record.","selectScreenshare":"Tap Record my screen and select the screen or window you want to record.","speakClearly":"<bold>Speak clearly</bold> and say what you need to convey.","speakDuringRecord":"You can speak while recording to add details.","stopScreenOnFinish":"Press the Stop button when finished. The video will be sent to us automatically.","tapAudioButton":"<bold>Tap the record button</bold> to start recording your audio message.","tapStopVideoButton":"<bold>Tap stop</bold> when you are done.","tapVideoButton":"<bold>Tap the record button</bold> to begin and feel free to provide commentary.","videoSpeech":"You can <bold>talk during</bold> the recording to provide additional information."},"limit":"Video recording limited to 5 min.","logIn":"Log in","loggedAs":"Logged as","media":"Media","mediaCount_one":"{{ count }} media","mediaCount_other":"{{ count }} media","mediaSent_one":"Your media has been sent","mediaSent_other":"Your media has been sent","mySuggestion":"My suggestion","noCameraAccess":"No camera access","noCameraAccessDescription":"No camera access Allow camera access in your browser.","noCameraAndMicrophoneAccess":"No camera & microphone access","noCameraAndMicrophoneAccessDescription":"No camera & microphone access Allow microphone and camera access in your browser.","noMicrophoneAccess":"No microphone access","noMicrophoneAccessDescription":"No microphone access Allow microphone access in your browser.","noPreviewAvailable":"No preview available","okay":"Okay","openThread":"Open thread","permissionDeniedDescription":"Without access to the camera and microphone, you won\'t be able to capture photos or videos to share with the support team. Please grant access in your browser settings.","permissionDeniedTitle":"Something went wrong!","photoInstructionsTitle":"Ready to snap a photo?","recordNewMedia":"Record new media","replyAttached":"Your reply has been attached","scanQRCode":"Scan this QR code with a compatible device.","screenShareInstructionsTitle":"Ready to share your screen?","screenTitle":"Ready to capture your screen?","send":"Send","sendElements_one":"Send {{ type }}","sendElements_other":"Send {{ count }} elements","showQrCode":"Show QR code","start":"Start","startByClickingOnTheButton":"Start by clicking on the round button below! \uD83D\uDC47","startScreenRecording":"Start screen recording","startScreenShareButton":"Record my screen","stopScreenShareButton":"Stop recording","submissionDescription":"Your photo/video has been successfully submitted. We will review it and get back to you shortly.","submissionTitle":"Thank you for your submission!","switchToMobileDescription":"Experience greater convenience by using your phone to take photos and record videos.","switchToMobileTitle":"Switch to your mobile device","takeNewElement":"Capture a new {{ type }}","thanksForYourMedia":"Thanks for your media!","upload":"Upload","useDesktopVersion":"Use the desktop version","videoBotError":"Sorry, an error has occured.","videoBotThinking":"Thinking...","videoInstructionsTitle":"Ready to record a video?","waitVideo":"A video may take up to 15 seconds to be ready.","yourMedia":"Your media","yourMediaHaveBeenSubmitted":"Your media have been submitted. You can now leave this page."},"recordingPopup":{"dismiss":"Dismiss","recordingStartText":"This call will be recorded shortly. If you\u2019d rather not be recorded, you\u2019re welcome to leave the call at this time.","recordingStartTitle":"Recording about to start."},"requestAccess":{"admit":"Admit","defaultName":"An user","deny":"Deny","wantToJoin":"<bold>{{name}}</bold> wants to join!"},"requestDevice":{"askForDevice":"Ask for {{device}}","declined":"Your request has been declined.","deviceActivated":"{{device}} activated","deviceActivationDeclined":"{{device}} activation declined","request":"{{user}} would like you to share your {{device}}","requestInput":"Request input devices","timedOut":"Your request has timed out.","userDeclined":"{{user}} has declined your request.","userWouldLikeYouToActivateYourDevice":"{{name}} would like you to activate your {{device}}.","waitingForDevice":"Waiting for {{name}}\'s {{device}}"},"settings":{"callSettings":"Call settings","devices":"Devices","enableVideo":"Enable video","help":"Help","helpCenter":"Go to help center","language":"Language","manageRecording":"Manage recording","mustBeAtLeastTwoParticipants":"There must be at least 2 participants to start recording.","preferences":"Preferences","selectYourCamera":"Select your preferred camera","selectYourLanguage":"Select your preferred language","selectYourMicrophone":"Select your preferred microphone","startRecording":"Start recording","stopRecording":"Stop recording","title":"Settings","tools":"Tools"},"shareCallLink":"Share call link","shareLink":{"failed":"Failed to send link","invalid":"Invalid link","invoice":"{{user}} sent you an invoice.","pay":"Pay","poweredBy":"Powered by","sentToUser":"Link sent to {{user}}","sentToUsers":"Link sent to users","title":"Share link","title2":"Share a link"},"shareThisLinkToInviteOthers":"Share this link to invite others to this call.","sharedHistory":{"shared":"Shared with you"},"snapshot":{"aSnapshotHasBeenShared":"A snapshot has been shared.","error":"An error occured when trying to send the snapshot","save":"Save photo","sentToUser":"Snapshot sent to {{user}}","sentToUsers":"Snapshot sent to users.","shared":"Snapshot shared.","title":"Snapshot"},"videoDrawer":{"drawInVideo":"Draw in video"},"videoMenu":{"blockedCamera":"Camera is blocked.","cameraPermissions":"Please accept camera sharing before accessing these options.","highDef":"High definition (720p)","lowDef":"Low definition (240p)","sendResolution":"Send Resolution (maximum)","standardDef":"Standard definition (480p)","title":"Video"},"virtualBackground":{"blur":"Blur","custom":"Custom","default":"Default","noCustomBackgrounds":"No custom backgrounds yet. Please contact your admin.","none":"None","setBackground":"Set Background","title":"Virtual Background"},"youtube":{"description":"Share a YouTube video with other participants.","invalid":"Invalid YouTube URL","share":"Watch now","title":"Watch Together","url":"YOUTUBE URL"}}');
|
|
58
|
+
$a8febdc80ac5353b$exports = JSON.parse('{"audioMenu":{"blockedMicrophone":"Microphone is blocked.","microphonePermissions":"Please accept microphone sharing before accessing these options.","title":"Audio"},"blockedFeature":{"descriptionConnected":"On a free plan, you can\'t use this feature. Upgrade your plan to enjoy all in-call features.","descriptionGuest":"You are participating in a call created with a free version of SnapCall. This feature is only available with a Pro version.","dismissConnected":"Upgrade to Pro","dismissGuest":"Okay","titleConnected":"Upgrade to Pro","titleGuest":"Feature not available"},"common":{"new":"new"},"copyLink":{"copied":"Link copied to clipboard","copy":"Copy","description":"Copy link into clipboard","error":"An error occured when trying to copy to clipboard","title":"Copy link"},"drawInVideo":{"pointer":"Pointer","pointerScreenSharing":"Pointer \xb7 Screen-sharing","stopPointing":"Stop Pointing"},"endView":{"addAdditionalMedia":"Have you forgotten to mention anything?","allowsYouToShareMoreMedia":"Add media here so that your support agent can review it offline.","callEnded":"The call is now ended","callIsOver":"The call is over or deleted","callLeft":"You left the call","callNoLongerActive":"This call is no longer active. Thank you for participating.","full":"You can\'t join this call","fullDescription":"The room is full. Please try to join the call later.","goBack":"Go back to call","howWasYourExperience":"Was the connection quality of your call satisfactory?","ifMistakeRejoin":"If this was a mistake, you can rejoin using the button below.","invalidLink":"Invalid link","invalidOrExpired":"This link is invalid or expired.","openDashboard":"Open dashboard","pleaseRateYourExperienceBelow":"We value your feedback. Please rate your experience below to help us improve.","thankYouForYourFeedback":"Thank you for your feedback.","tooLate":"You arrived too late","yourFeedbackHelpsUs":"Your feedback helps us improve. See you soon!"},"gdpr":{"recordedWarning":"To improve the quality of our service, this call will be recorded."},"greeting":{"askToJoin":"Ask to join","askingLetIn":"Asking to be let in...","cameraDisabled":"Camera is Off","cameraEnabled":"Camera is On","canceledCallRequest":"The call request will be canceled and you will be redirected to the call scheduling page.","cantJoinCall":"You can\u2019t join this call","cantWait":"Can\'t wait?","cantWaitLeaveMessage":"Can\u2019t wait? You can leave a message and you will be contacted as soon as possible.","checkYourCameraMicrophoneAndSettings":"Check your camera, microphone, and settings before entering the call.","clickOnLock":"Click on the <1></1> lock icon in your browser\'s bar.","footerDescription":"Meet SnapCall, the easiest way to add real-time video to platform, product or service.","footerTitle":"Powered by SnapCall","getReadyToJoin":"Get ready to join","join":"Join","joinACall":"Join a call","leaveMessage":"Leave a message","mainTitle":"Welcome to SnapCall","mediaDenied":"Microphone and camera access denied","microphoneDisabled":"Microphone is Off","microphoneEnabled":"Microphone is On","name":"Name","nameDescription":"This name will be displayed to all participants in the call.","namePlaceholder":"Eg. Lucy or Peter","nameSubmit":"Join Conversation","pleaseCheckYourBrowserPermissions":"Please check your browser permissions","recordVideo":"Record video","recordVoice":"Record voice","requestACall":"Request a call","scheduleACall":"Schedule a call","setting":"Settings","sideDescription":"Please enter your name and adjust your camera and microphone","sideTitle":"Hold tight, you\'re next!","someoneDenied":"Someone in the call denied your request to join.","takeFewMinute":"This may take a few minutes depending on the availability of the participants.","whatYouCanDo":"Here\u2019s what you can do","youWillJoinWhenSomeoneLetsYou":"You will join the call when someone from {{ companyName }} lets you in."},"header":{"free":"Free version"},"iframe":{"featureNotAvailableInContext":"This feature is not available in the current context."},"invitePeople":{"PublicLink":"Public link","addEmailToInvite":"Add an email to invite.","addEmails":"Add emails...","copyCallLinkDescription":"Copy this link and send it to anyone you wish to invite to join the call.","copyClipLinkDescription":"Copy this link and send it to anyone you wish to invite to record a clip.","email":"Email","emailPlaceholder":"Eg. john@acme.com","emailsOrNumberPlaceholder":"Eg. john@acme.com or +33612345678","error":"Failed to send, please try again later.","invalidEmail":"Invalid email format.","invalidEmailOrNumber":"Invalid email or number format.","invitationSentTo_one":"Sent to {{ name }}","invitationSentTo_other":"Sent to {{ name }} and {{ otherEmailsCount }}+","invite":"Invite","inviteByEmail":"Invite by email","inviteByEmailOrNumber":"Invite by email or sms","inviteCall":"Invite to join call","inviteCallDefaultMessage":"Hey! You\'re invited to join our video call. Click the link to connect instantly.","inviteClipAudioDefaultMessage":"Hey! Please record an audio message now and provide us with more context to assist you better.","inviteClipDefaultMessage":"Hey! Please record your video clip now and provide us with more context to assist you better.","inviteClipImageDefaultMessage":"Hey! Please take a photo and provide us with more context to assist you better.","inviteClipPhotoDefaultMessage":"Hey! Please take a photo and provide us with more context to assist you better.","inviteClipScreenDefaultMessage":"Hey! Please record your screen now and provide us with more context to assist you better.","inviteClipVideoDefaultMessage":"Hey! Please record your video now and provide us with more context to assist you better.","invitePeople":"Invite people","inviteRecordAudio":"Record an audio","inviteRecordClip":"Invite to record clip","inviteRecordImage":"Take a photo","inviteRecordPhoto":"Take a photo","inviteRecordScreen":"Record a screen","inviteRecordVideo":"Record a video","joinTheCall":"Join the call","linkToJoinCall":"Link to join the call","linkToRecordAClip":"Link to record a clip","message":"Message","sharePublicLink":"Share public link"},"leave":{"endCall":"End call for all","leaveCall":"Leave call","title":"Leave"},"loader":{"connection":"Connecting..."},"menu":{"new":"NEW","openNewTab":"Open new tab","pictureInPicture":"Picture-in-Picture","quickConnect":"Quick Connect","screenSharing":"Screen sharing","startRecord":"Record call","stopRecord":"Stop record","title":"Menu"},"misc":{"accept":"Accept","add":"Add","audio":"Audio","camera":"Camera","cancel":"Cancel","confirm":"Confirm","decline":"Decline","download":"Download","from":"From","image":"Photo","microphone":"Microphone","off":"Off","on":"On","open":"Open","pdf":"PDF","photo":"Photo","proceed":"Proceed","remove":"Remove","rotateCamera":"Rotate camera","screen":"Screen","screenshot":"Screenshot","someone":"Someone","speaker":"Speaker","upload":"Upload","user":"User","video":"Video","you":"You"},"networkIssue":{"description":"The clip information may be damaged.","title":"Network issue"},"notifications":{"aQuickRefreshShouldFix":"A quick refresh should get things back on track","agentJoinError":"An error occured while trying to join the room as an agent","allow":"Allow","blockedMicrophonePopup":"SnapCall requires access to your camera and microphone. Click the camera blocked icon in your browser\'s address bar.","blockedMicrophonePopupTitle":"Camera and microphone are blocked","cameraError":"An error occured when trying to toggle the camera","cameraRotateError":"An error occured when trying to rotate the camera","close":"Close","connectedTo":"Connected to {{name}}","criticalError":"An error has occurred, please check your connection and contact support if this persists (error {{code}}).","error":"Error","errorOccuredCode":"An error occured (error {{code}}).","failedToDisableVideo":"Something went wrong while disabling your camera. Please refresh your tab and try again.","failedToEnableMicrophone":"Enable microphone access in your browser settings to start your video.","failedToEnableVideo":"Enable camera access in your browser settings to start your video.","failedToMuteUnmuteMicrophone":"Something went wrong while disabling your microphone. Please refresh your tab and try again.","invitationSentToFailed":"Sent to {{ name }} failed.","locationIsBlocked":"Location is blocked","locationIsRequired":"Location is required","locationIsUnavailable":"Location is unavailable","locationIsUnresponsive":"Location is unresponsive","microphoneError":"An error occured when trying to toggle the microphone","networkStability":"Network stability","noCamera":"No camera available","permissionToShareScreenDenied":"Permission to share screen denied","pleaseEnableLocation":"Please enable location services in your settings.","recording":"Recording in progress","recordingStopped":"Recording stopped","reload":"Reload","screensharingError":"An error occured when trying to toggle screensharing","somethingWentWrong":"Oops! Something went wrong","unableToSwitchCamera":"Unable to switch camera","unableToUnzoom":"Unable to unzoom","unableToZoom":"Unable to zoom","uploadError":"An error occured during the upload, please try again later.","uploadFailed":"Upload failed","yourInternetConnectionIsUnstable":"Your internet connection is unstable"},"quickConnect":{"scan":"Scan this QR code with your phone camera to open the call.","scanTitle":"Scan QR Code","title":"Quick Connect"},"recorder":{"addMore":"Add more","addNewClip":"Add new clip","allowAccess":"Allow access","allowCamMicAccess":"Allow access to cam/mic","allowScreenShareAccess":"Allow access to screen sharing","attachElements_one":"Attach {{ type }} to ticket","attachElements_other":"Attach {{ count }} elements","audioInstructionsTitle":"Ready to record a voice message?","audioLevelNotification":{"noSound":{"description":"Make sure your microphone is activated.","title":"No sound detected."},"shortVideo":{"description":"This video is too short to get context.","title":"Short video."},"spokenWordsQuestion":{"description":"Does your video include enough spoken details?","title":"Spoken words."},"spokenWordsWarning":{"description":"The clip includes barely any spoken words.","title":"No spoken words."}},"audioLevelToast":{"continueSpeaking":"Continue speaking for clearer context.","noSound":"No sound detected.","rememberSpeaking":"Remember to speak to provide context."},"chooseWhatYouWantToShare":"Choose what you want to share","chooseWhatYouWantToShareDescription":"Select the screen or tab you want to share and start recording.","clickBelowToAddYourFiles":"Click below to add your files","clipCount_one":"{{ count }} clip","clipCount_other":"{{ count }} clips","clipSubmissionDescription":"Thank you for using SnapCall.","clipSubmissionTitle_one":"Your clip has been sent","clipSubmissionTitle_other":"Your clips have been sent","confirmRemovalDescription":"Are you sure you want to delete this photo/video? This action cannot be undone.","confirmRemovalTitle":"Confirm deletion","elementBeingProcessed":"Please wait while your {{ type }} is being processed...","elementCaptureSuccess":"{{ type }} captured successfully","elementRecordedAndAttached":"Your clip has been sent and attached to the thread.","feelFreeToTalkGiveMoreContext":"\uD83D\uDDE3\uFE0F Feel free to talk to give me more context.","fileUploadIsLimitedTo1GB":"File upload is limited to 1GB.","goBackToTicket":"Go back to ticket","imageInstructionsTitle":"Ready to snap a photo?","instructions":{"allowAccessOnPrompt":"When prompted, <bold>allow access</bold> to camera and microphone.","multiplePhotos":"Take a <bold>photo or multiple</bold> for detail, then review.","privacyPolicy":"By proceeding, you agree to our <bold>Privacy Policy</bold>.","reviewAndSendAudios":"<bold>Review your audios</bold>, and they will be sent to us automatically.","reviewAndSendPhotos":"<bold>Validate your photos</bold>, and they will be sent to us automatically.","reviewAndSendVideos":"<bold>Review your videos</bold>, and they will be sent to us automatically.","screenShareInstruction":"Select the screen or window you wish to record.","selectScreenshare":"Tap Record my screen and select the screen or window you want to record.","speakClearly":"<bold>Speak clearly</bold> and say what you need to convey.","speakDuringRecord":"You can speak while recording to add details.","stopScreenOnFinish":"Press the Stop button when finished. The video will be sent to us automatically.","tapAudioButton":"<bold>Tap the record button</bold> to start recording your audio message.","tapStopVideoButton":"<bold>Tap stop</bold> when you are done.","tapVideoButton":"<bold>Tap the record button</bold> to begin and feel free to provide commentary.","videoSpeech":"You can <bold>talk during</bold> the recording to provide additional information."},"limit":"Video recording limited to 5 min.","logIn":"Log in","loggedAs":"Logged as","media":"Media","mediaCount_one":"{{ count }} media","mediaCount_other":"{{ count }} media","mediaSent_one":"Your media has been sent","mediaSent_other":"Your media has been sent","mySuggestion":"My suggestion","noCameraAccess":"No camera access","noCameraAccessDescription":"No camera access Allow camera access in your browser.","noCameraAndMicrophoneAccess":"No camera & microphone access","noCameraAndMicrophoneAccessDescription":"No camera & microphone access Allow microphone and camera access in your browser.","noMicrophoneAccess":"No microphone access","noMicrophoneAccessDescription":"No microphone access Allow microphone access in your browser.","noPreviewAvailable":"No preview available","okay":"Okay","openThread":"Open thread","permissionDeniedDescription":"Without access to the camera and microphone, you won\'t be able to capture photos or videos to share with the support team. Please grant access in your browser settings.","permissionDeniedTitle":"Something went wrong!","photoInstructionsTitle":"Ready to snap a photo?","recordNewMedia":"Record new media","replyAttached":"Your reply has been attached","scanQRCode":"Scan this QR code with a compatible device.","screenShareInstructionsTitle":"Ready to share your screen?","screenTitle":"Ready to capture your screen?","send":"Send","sendElements_one":"Send {{ type }}","sendElements_other":"Send {{ count }} elements","showQrCode":"Show QR code","start":"Start","startByClickingOnTheButton":"Start by clicking on the round button below! \uD83D\uDC47","startScreenRecording":"Start screen recording","startScreenShareButton":"Record my screen","stopScreenShareButton":"Stop recording","submissionDescription":"Your photo/video has been successfully submitted. We will review it and get back to you shortly.","submissionTitle":"Thank you for your submission!","switchToMobileDescription":"Experience greater convenience by using your phone to take photos and record videos.","switchToMobileTitle":"Switch to your mobile device","takeNewElement":"Capture a new {{ type }}","thanksForYourMedia":"Thanks for your media!","upload":"Upload","useDesktopVersion":"Use the desktop version","videoBotError":"Sorry, an error has occured.","videoBotThinking":"Thinking...","videoInstructionsTitle":"Ready to record a video?","waitVideo":"A video may take up to 15 seconds to be ready.","yourMedia":"Your media","yourMediaHaveBeenSubmitted":"Your media have been submitted. You can now leave this page."},"recordingPopup":{"dismiss":"Dismiss","recordingStartText":"This call will be recorded shortly. If you\u2019d rather not be recorded, you\u2019re welcome to leave the call at this time.","recordingStartTitle":"Recording about to start."},"requestAccess":{"admit":"Admit","defaultName":"An user","deny":"Deny","wantToJoin":"<bold>{{name}}</bold> wants to join!"},"requestDevice":{"askForDevice":"Ask for {{device}}","declined":"Your request has been declined.","deviceActivated":"{{device}} activated","deviceActivationDeclined":"{{device}} activation declined","request":"{{user}} would like you to share your {{device}}","requestInput":"Request input devices","timedOut":"Your request has timed out.","userDeclined":"{{user}} has declined your request.","userWouldLikeYouToActivateYourDevice":"{{name}} would like you to activate your {{device}}.","waitingForDevice":"Waiting for {{name}}\'s {{device}}"},"settings":{"callSettings":"Call settings","devices":"Devices","enableVideo":"Enable video","help":"Help","helpCenter":"Go to help center","language":"Language","manageRecording":"Manage recording","mustBeAtLeastTwoParticipants":"There must be at least 2 participants to start recording.","preferences":"Preferences","selectYourCamera":"Select your preferred camera","selectYourLanguage":"Select your preferred language","selectYourMicrophone":"Select your preferred microphone","startRecording":"Start video recording","stopRecording":"Stop recording","title":"Settings","tools":"Tools"},"shareCallLink":"Share call link","shareLink":{"failed":"Failed to send link","invalid":"Invalid link","invoice":"{{user}} sent you an invoice.","pay":"Pay","poweredBy":"Powered by","sentToUser":"Link sent to {{user}}","sentToUsers":"Link sent to users","title":"Share link","title2":"Share a link"},"shareThisLinkToInviteOthers":"Share this link to invite others to this call.","sharedHistory":{"shared":"Shared with you"},"snapshot":{"aSnapshotHasBeenShared":"A snapshot has been shared.","error":"An error occured when trying to send the snapshot","save":"Save photo","sentToUser":"Snapshot sent to {{user}}","sentToUsers":"Snapshot sent to users.","shared":"Snapshot shared.","title":"Snapshot"},"videoDrawer":{"drawInVideo":"Draw in video"},"videoMenu":{"blockedCamera":"Camera is blocked.","cameraPermissions":"Please accept camera sharing before accessing these options.","highDef":"High definition (720p)","lowDef":"Low definition (240p)","sendResolution":"Send Resolution (maximum)","standardDef":"Standard definition (480p)","title":"Video"},"virtualBackground":{"blur":"Blur","custom":"Custom","default":"Default","noCustomBackgrounds":"No custom backgrounds yet. Please contact your admin.","none":"None","setBackground":"Set Background","title":"Virtual Background"},"youtube":{"description":"Share a YouTube video with other participants.","invalid":"Invalid YouTube URL","share":"Watch now","title":"Watch Together","url":"YOUTUBE URL"}}');
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
var $32156cf38812b83d$exports = {};
|
|
@@ -6255,7 +6255,7 @@ var $fdb92de69267f341$export$2e2bcd8739ae039 = $fdb92de69267f341$var$MediaSessio
|
|
|
6255
6255
|
const $07e749066c746c7c$var$browser = (0, ($parcel$interopDefault($jQDcL$bowser))).parse(window.navigator.userAgent);
|
|
6256
6256
|
const $07e749066c746c7c$export$6d1782328b15ce2d = ({ width: width, height: height, children: children, name: name, image: image, className: className, activeBorder: activeBorder, hasMicrophoneDisabled: hasMicrophoneDisabled, hasCameraDisabled: hasCameraDisabled, hasScreenDisabled: hasScreenDisabled, showVirtualBackgroundShortcut: showVirtualBackgroundShortcut, maximizeToggle: maximizeToggle, onRequestDevice: onRequestDevice, onSnapshot: onSnapshot, onDraw: onDraw, onStopDraw: onStopDraw, ...otherProps })=>{
|
|
6257
6257
|
const { t: t } = (0, $jQDcL$reacti18next.useTranslation)();
|
|
6258
|
-
const { options: options, streamInfo: streamInfo, streamState: streamState } = (0, $jQDcL$react.useContext)((0, $8b39f32976a7698a$export$2e2bcd8739ae039));
|
|
6258
|
+
const { options: options, streamInfo: streamInfo, streamState: streamState, isAgent: isAgent } = (0, $jQDcL$react.useContext)((0, $8b39f32976a7698a$export$2e2bcd8739ae039));
|
|
6259
6259
|
const callConfig = streamInfo.flow.config?.call;
|
|
6260
6260
|
const permissions = streamInfo.plan.permissions;
|
|
6261
6261
|
const [isMaximized, setIsMaximized] = (0, $jQDcL$react.useState)(false);
|
|
@@ -6391,7 +6391,7 @@ const $07e749066c746c7c$export$6d1782328b15ce2d = ({ width: width, height: heigh
|
|
|
6391
6391
|
/*#__PURE__*/ (0, $jQDcL$reactjsxruntime.jsxs)("div", {
|
|
6392
6392
|
className: "invisible group-hover:visible",
|
|
6393
6393
|
children: [
|
|
6394
|
-
isDesktop && onDraw && !hasCameraDisabled && callConfig?.pointer && /*#__PURE__*/ (0, $jQDcL$reactjsxruntime.jsxs)((0, $jQDcL$snapcalldesignsystem.Tooltip), {
|
|
6394
|
+
isDesktop && onDraw && !hasCameraDisabled && callConfig?.pointer && isAgent && /*#__PURE__*/ (0, $jQDcL$reactjsxruntime.jsxs)((0, $jQDcL$snapcalldesignsystem.Tooltip), {
|
|
6395
6395
|
children: [
|
|
6396
6396
|
/*#__PURE__*/ (0, $jQDcL$reactjsxruntime.jsx)((0, $jQDcL$snapcalldesignsystem.TooltipTrigger), {
|
|
6397
6397
|
asChild: true,
|
|
@@ -6872,19 +6872,25 @@ const $6e25dd2638faaf71$var$ScreenshareTile = (tile)=>{
|
|
|
6872
6872
|
(0, $c48c1ecc38fed4e9$export$2f377c2162fd02b2).disableScreenshare();
|
|
6873
6873
|
};
|
|
6874
6874
|
}, []);
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6875
|
+
(0, $jQDcL$react.useEffect)(()=>{
|
|
6876
|
+
const draw = ()=>{
|
|
6877
|
+
if (videoElementRef.current && canvasElementRef.current) (0, $c48c1ecc38fed4e9$export$2f377c2162fd02b2).drawInVideo({
|
|
6878
|
+
peerId: tile.peerId,
|
|
6879
|
+
mediaId: tile.data.mediaId,
|
|
6880
|
+
deviceType: 'screen',
|
|
6881
|
+
videoElement: videoElementRef.current,
|
|
6882
|
+
canvasElement: canvasElementRef.current
|
|
6883
|
+
});
|
|
6884
|
+
};
|
|
6885
|
+
setStartScreenSharingDrawing(()=>draw);
|
|
6886
|
+
return ()=>{
|
|
6887
|
+
setStartScreenSharingDrawing(undefined);
|
|
6888
|
+
};
|
|
6883
6889
|
}, [
|
|
6884
|
-
tile.
|
|
6885
|
-
tile.
|
|
6890
|
+
tile.peerId,
|
|
6891
|
+
tile.data,
|
|
6892
|
+
setStartScreenSharingDrawing
|
|
6886
6893
|
]);
|
|
6887
|
-
setStartScreenSharingDrawing(()=>draw);
|
|
6888
6894
|
return /*#__PURE__*/ (0, $jQDcL$reactjsxruntime.jsxs)("div", {
|
|
6889
6895
|
className: "flex justify-center items-center w-full h-full box-border",
|
|
6890
6896
|
children: [
|
|
@@ -6897,7 +6903,7 @@ const $6e25dd2638faaf71$var$ScreenshareTile = (tile)=>{
|
|
|
6897
6903
|
}),
|
|
6898
6904
|
/*#__PURE__*/ (0, $jQDcL$reactjsxruntime.jsx)("canvas", {
|
|
6899
6905
|
ref: canvasElementRef,
|
|
6900
|
-
className: "
|
|
6906
|
+
className: "absolute z-16 object-cover rounded-[10px]"
|
|
6901
6907
|
})
|
|
6902
6908
|
]
|
|
6903
6909
|
});
|
|
@@ -8498,7 +8504,7 @@ const $a21b2aa064cb6c32$var$ControlBar = ()=>{
|
|
|
8498
8504
|
const isDesktop = $a21b2aa064cb6c32$var$browser.platform.type === 'desktop';
|
|
8499
8505
|
const [webcamCount, setWebcamCount] = (0, $jQDcL$react.useState)(0);
|
|
8500
8506
|
const [isCameraLoading, setIsCameraLoading] = (0, $jQDcL$react.useState)(false);
|
|
8501
|
-
const { muted: muted, streaming: streaming, options: options, headless: headless, selfPeerId: selfPeerId, streamInfo: streamInfo } = (0, $jQDcL$react.useContext)((0, $8b39f32976a7698a$export$2e2bcd8739ae039));
|
|
8507
|
+
const { muted: muted, streaming: streaming, options: options, headless: headless, selfPeerId: selfPeerId, streamInfo: streamInfo, isAgent: isAgent } = (0, $jQDcL$react.useContext)((0, $8b39f32976a7698a$export$2e2bcd8739ae039));
|
|
8502
8508
|
const { highlightedTile: highlightedTile, dispatch: dispatch, remoteVideoDrawEnabled: remoteVideoDrawEnabled, startScreenSharingDrawing: startScreenSharingDrawing } = (0, $3f6e908c45fcc5b3$export$b5633a7cfbe42d9f)();
|
|
8503
8509
|
const reportError = (0, $1c784e11381e6f0c$export$5a5695b638d078e7)();
|
|
8504
8510
|
const { t: t } = (0, $jQDcL$reacti18next.useTranslation)();
|
|
@@ -8705,7 +8711,7 @@ const $a21b2aa064cb6c32$var$ControlBar = ()=>{
|
|
|
8705
8711
|
!compactContainer.isCompact && t('drawInVideo.stopPointing')
|
|
8706
8712
|
]
|
|
8707
8713
|
}),
|
|
8708
|
-
isDesktop && startScreenSharingDrawing &&
|
|
8714
|
+
isDesktop && startScreenSharingDrawing && !remoteVideoDrawEnabled && !videoDrawEnabled && isAgent && /*#__PURE__*/ (0, $jQDcL$reactjsxruntime.jsxs)((0, $jQDcL$snapcalldesignsystem.Tooltip), {
|
|
8709
8715
|
children: [
|
|
8710
8716
|
/*#__PURE__*/ (0, $jQDcL$reactjsxruntime.jsx)((0, $jQDcL$snapcalldesignsystem.TooltipTrigger), {
|
|
8711
8717
|
asChild: true,
|
|
@@ -9484,7 +9490,8 @@ const $1868c305e84f8532$export$1cdb0c90ced085 = ({ children: children, fileInput
|
|
|
9484
9490
|
duration: duration,
|
|
9485
9491
|
thumbnailUrl: thumbnailUrl,
|
|
9486
9492
|
createdAt: createdAt,
|
|
9487
|
-
networkIssue: false
|
|
9493
|
+
networkIssue: false,
|
|
9494
|
+
isUploaded: true
|
|
9488
9495
|
});
|
|
9489
9496
|
videoBotState.open();
|
|
9490
9497
|
} catch (error) {
|
|
@@ -10132,7 +10139,7 @@ const $c085aa4099740100$export$ce05094b93c0f011 = ()=>{
|
|
|
10132
10139
|
(0, $8a7a24ac08dbc187$export$df987b50509121ea)(result.filename);
|
|
10133
10140
|
return false;
|
|
10134
10141
|
}
|
|
10135
|
-
return
|
|
10142
|
+
return result;
|
|
10136
10143
|
});
|
|
10137
10144
|
if (errors.length > 0) {
|
|
10138
10145
|
const erroredFilenames = errors.map((it)=>it.filename).join(' / ');
|
|
@@ -10163,11 +10170,14 @@ const $c085aa4099740100$export$ce05094b93c0f011 = ()=>{
|
|
|
10163
10170
|
|
|
10164
10171
|
|
|
10165
10172
|
|
|
10166
|
-
const $d734456ddeeaaecb$export$16028ed4f0100bfc = ({ asset: asset })=>{
|
|
10173
|
+
const $d734456ddeeaaecb$export$16028ed4f0100bfc = ({ asset: asset, url: url })=>{
|
|
10167
10174
|
const { t: t } = (0, $jQDcL$reacti18next.useTranslation)();
|
|
10168
10175
|
const { setOpenedAsset: setOpenedAsset } = (0, $098350f721a0bb52$export$2174f25d572f9f31)();
|
|
10169
10176
|
return /*#__PURE__*/ (0, $jQDcL$reactjsxruntime.jsxs)("div", {
|
|
10170
|
-
className: "flex flex-col gap-3",
|
|
10177
|
+
className: "flex flex-col gap-3 overflow-y-auto",
|
|
10178
|
+
style: {
|
|
10179
|
+
WebkitOverflowScrolling: 'touch'
|
|
10180
|
+
},
|
|
10171
10181
|
children: [
|
|
10172
10182
|
/*#__PURE__*/ (0, $jQDcL$reactjsxruntime.jsxs)("div", {
|
|
10173
10183
|
className: "flex items-center gap-4",
|
|
@@ -10192,7 +10202,7 @@ const $d734456ddeeaaecb$export$16028ed4f0100bfc = ({ asset: asset })=>{
|
|
|
10192
10202
|
'border-2 border-gray-200 rounded-2xl': asset.mode === 'video' || asset.mode === 'screen' || asset.mode === 'image'
|
|
10193
10203
|
}),
|
|
10194
10204
|
children: asset.mode === 'video' || asset.mode === 'screen' ? /*#__PURE__*/ (0, $jQDcL$reactjsxruntime.jsx)("video", {
|
|
10195
|
-
src: asset.url,
|
|
10205
|
+
src: url || asset.url,
|
|
10196
10206
|
playsInline: true,
|
|
10197
10207
|
autoPlay: true,
|
|
10198
10208
|
controls: true,
|
|
@@ -10223,6 +10233,14 @@ const $d3d8d40deedb1979$export$e3cee2ebbbe23463 = ()=>{
|
|
|
10223
10233
|
const [isAtSubmissionStep, setIsAtSubmissionStep] = (0, $jQDcL$react.useState)(false);
|
|
10224
10234
|
const showSubmissionStep = isAtSubmissionStep && !currentStep;
|
|
10225
10235
|
const sendAssets = (0, $c085aa4099740100$export$ce05094b93c0f011)();
|
|
10236
|
+
const openedAssetUrl = (0, $jQDcL$react.useMemo)(()=>{
|
|
10237
|
+
if (!openedAsset) return;
|
|
10238
|
+
const current = sendAssets.data?.find((asset)=>asset.filename === openedAsset?.filename);
|
|
10239
|
+
return current?.url;
|
|
10240
|
+
}, [
|
|
10241
|
+
sendAssets,
|
|
10242
|
+
openedAsset
|
|
10243
|
+
]);
|
|
10226
10244
|
const isOpen = sendAssets.isSuccess || showSubmissionStep ? true : isRecording ? false : videoBotState.isOpen;
|
|
10227
10245
|
const currentStepIndex = streamInfo.flow.steps.findIndex((step)=>step.token === currentStep?.token);
|
|
10228
10246
|
const currentStepAssets = assets.filter((asset)=>asset.stepToken === currentStep?.token);
|
|
@@ -10291,7 +10309,8 @@ const $d3d8d40deedb1979$export$e3cee2ebbbe23463 = ()=>{
|
|
|
10291
10309
|
]
|
|
10292
10310
|
}),
|
|
10293
10311
|
openedAsset ? /*#__PURE__*/ (0, $jQDcL$reactjsxruntime.jsx)((0, $d734456ddeeaaecb$export$16028ed4f0100bfc), {
|
|
10294
|
-
asset: openedAsset
|
|
10312
|
+
asset: openedAsset,
|
|
10313
|
+
url: openedAssetUrl
|
|
10295
10314
|
}) : currentStep ? /*#__PURE__*/ (0, $jQDcL$reactjsxruntime.jsx)((0, $66533fd06d274f2e$export$423b43901b3e0d2e), {
|
|
10296
10315
|
currentStep: currentStep,
|
|
10297
10316
|
onNextClick: ()=>{
|
|
@@ -10882,6 +10901,10 @@ const $e86e3e83467d5bba$export$f9da3144ae2525a3 = ()=>{
|
|
|
10882
10901
|
const canStartRecord = mode === 'image' ? devicesState.camera.enabled : mode === 'audio' ? devicesState.microphone.enabled : mode === 'video' ? devicesState.camera.enabled && devicesState.microphone.enabled : mode === 'screen' ? devicesState.screenshare.enabled && devicesState.microphone.enabled : false;
|
|
10883
10902
|
const onPhotoClick = async ()=>{
|
|
10884
10903
|
if (videoElementRef.current && currentStep) {
|
|
10904
|
+
(0, $800462b6cb0a3b0c$export$18c6473b5b45bda1)?.track('Record button', {
|
|
10905
|
+
mode: mode,
|
|
10906
|
+
action: 'start'
|
|
10907
|
+
});
|
|
10885
10908
|
setShowFlashAnimation(true);
|
|
10886
10909
|
const createdAt = Date.now();
|
|
10887
10910
|
setIncomingAsset({
|
|
@@ -10899,7 +10922,8 @@ const $e86e3e83467d5bba$export$f9da3144ae2525a3 = ()=>{
|
|
|
10899
10922
|
url: url,
|
|
10900
10923
|
thumbnailUrl: url,
|
|
10901
10924
|
createdAt: createdAt,
|
|
10902
|
-
networkIssue: false
|
|
10925
|
+
networkIssue: false,
|
|
10926
|
+
isUploaded: false
|
|
10903
10927
|
});
|
|
10904
10928
|
} catch (error) {
|
|
10905
10929
|
reportError({
|
|
@@ -10917,6 +10941,10 @@ const $e86e3e83467d5bba$export$f9da3144ae2525a3 = ()=>{
|
|
|
10917
10941
|
if (isRecording && !isStoppingRecording) {
|
|
10918
10942
|
setIsStoppingRecording(true);
|
|
10919
10943
|
videoBotState.open();
|
|
10944
|
+
(0, $800462b6cb0a3b0c$export$18c6473b5b45bda1)?.track('Record button', {
|
|
10945
|
+
mode: mode,
|
|
10946
|
+
action: 'stop'
|
|
10947
|
+
});
|
|
10920
10948
|
try {
|
|
10921
10949
|
await (0, $c48c1ecc38fed4e9$export$2f377c2162fd02b2).stopRecord();
|
|
10922
10950
|
if (mode === 'screen') (0, $c48c1ecc38fed4e9$export$2f377c2162fd02b2).disableScreenshare().catch((error)=>{
|
|
@@ -10933,18 +10961,24 @@ const $e86e3e83467d5bba$export$f9da3144ae2525a3 = ()=>{
|
|
|
10933
10961
|
error: error
|
|
10934
10962
|
});
|
|
10935
10963
|
}
|
|
10936
|
-
} else if (!isRecording)
|
|
10937
|
-
|
|
10938
|
-
|
|
10939
|
-
|
|
10940
|
-
|
|
10941
|
-
|
|
10942
|
-
|
|
10943
|
-
|
|
10964
|
+
} else if (!isRecording) {
|
|
10965
|
+
(0, $800462b6cb0a3b0c$export$18c6473b5b45bda1)?.track('Record button', {
|
|
10966
|
+
mode: mode,
|
|
10967
|
+
action: 'start'
|
|
10968
|
+
});
|
|
10969
|
+
setShowCountdown((prev)=>{
|
|
10970
|
+
const next = !prev;
|
|
10971
|
+
const { screenshare: screenshare } = (0, $c48c1ecc38fed4e9$export$2f377c2162fd02b2).getDevicesState();
|
|
10972
|
+
if (next === false && screenshare.enabled) (0, $c48c1ecc38fed4e9$export$2f377c2162fd02b2).disableScreenshare().catch((error)=>{
|
|
10973
|
+
reportError({
|
|
10974
|
+
title: t('notifications.somethingWentWrong'),
|
|
10975
|
+
code: 'SC_2',
|
|
10976
|
+
error: error
|
|
10977
|
+
});
|
|
10944
10978
|
});
|
|
10979
|
+
return next;
|
|
10945
10980
|
});
|
|
10946
|
-
|
|
10947
|
-
});
|
|
10981
|
+
}
|
|
10948
10982
|
};
|
|
10949
10983
|
const onCountdownFinish = async ()=>{
|
|
10950
10984
|
try {
|
|
@@ -11012,9 +11046,6 @@ const $e86e3e83467d5bba$export$f9da3144ae2525a3 = ()=>{
|
|
|
11012
11046
|
if (canStartRecord) {
|
|
11013
11047
|
if (mode === 'image') onPhotoClick();
|
|
11014
11048
|
else onRecordClick();
|
|
11015
|
-
(0, $800462b6cb0a3b0c$export$18c6473b5b45bda1)?.track('Record button', {
|
|
11016
|
-
mode: mode
|
|
11017
|
-
});
|
|
11018
11049
|
}
|
|
11019
11050
|
},
|
|
11020
11051
|
className: (0, ($parcel$interopDefault($jQDcL$classnames)))('flex items-center justify-center w-16 h-16 ring-[3px] ring-black rounded-full cursor-pointer transition-all duration-500', mode === 'image' ? 'p-2' : 'p-5', isRecordButtonActive ? isStoppingRecording ? 'bg-gray-800/60' : 'bg-red-700/60' : 'bg-transparent'),
|
|
@@ -11581,7 +11612,8 @@ const $3753c01d669182c5$export$336a011955157f9a = ()=>{
|
|
|
11581
11612
|
duration: durationMs,
|
|
11582
11613
|
averageAudioLevel: averageAudioLevel || 0,
|
|
11583
11614
|
createdAt: incomingAsset.createdAt,
|
|
11584
|
-
networkIssue: networkIssue
|
|
11615
|
+
networkIssue: networkIssue,
|
|
11616
|
+
isUploaded: false
|
|
11585
11617
|
});
|
|
11586
11618
|
}
|
|
11587
11619
|
setNetworkIssue(false);
|
|
@@ -12503,6 +12535,7 @@ const $ee8cb448c2c74888$var$StreamUI = ({ options: baseOptions })=>{
|
|
|
12503
12535
|
}, {
|
|
12504
12536
|
persistent: false
|
|
12505
12537
|
});
|
|
12538
|
+
(0, $800462b6cb0a3b0c$export$18c6473b5b45bda1)?.track('Join room');
|
|
12506
12539
|
if (type === 'assist') await (0, $c48c1ecc38fed4e9$export$2f377c2162fd02b2).joinRecorder();
|
|
12507
12540
|
else if (streamInfo.data?.flow.config?.call?.pre_call && !mergedOptions.skipPreCall) setStreamState('preCall');
|
|
12508
12541
|
else {
|
|
@@ -12511,6 +12544,7 @@ const $ee8cb448c2c74888$var$StreamUI = ({ options: baseOptions })=>{
|
|
|
12511
12544
|
} catch (error) {
|
|
12512
12545
|
console.error('joinRoom error', error);
|
|
12513
12546
|
setStreamState('full');
|
|
12547
|
+
(0, $800462b6cb0a3b0c$export$18c6473b5b45bda1)?.track('Room full');
|
|
12514
12548
|
return;
|
|
12515
12549
|
}
|
|
12516
12550
|
try {
|
|
@@ -12656,6 +12690,7 @@ const $ee8cb448c2c74888$var$StreamUI = ({ options: baseOptions })=>{
|
|
|
12656
12690
|
(0, $jQDcL$react.useEffect)(()=>{
|
|
12657
12691
|
if (dashboardSession.data?.settings?.language) setLanguage(dashboardSession.data.settings.language);
|
|
12658
12692
|
if (dashboardSession.data?.id) {
|
|
12693
|
+
setIsAgent(true);
|
|
12659
12694
|
(0, $800462b6cb0a3b0c$export$18c6473b5b45bda1)?.identify(dashboardSession.data.id.toString());
|
|
12660
12695
|
(0, $800462b6cb0a3b0c$export$18c6473b5b45bda1)?.people.set({
|
|
12661
12696
|
$email: dashboardSession.data.email
|
package/dist/types.d.ts
CHANGED