{ onUpload(e); }} /> { if (e.detail === false) { onClose(); } }} >
{#if tab === ''}
{ if (fileUploadEnabled) { uploadFilesHandler(); } }} >
{$i18n.t('Upload Files')}
{ if (fileUploadEnabled) { if (!detectMobile()) { screenCaptureHandler(); } else { const cameraInputElement = document.getElementById('camera-input'); if (cameraInputElement) { cameraInputElement.click(); } } } }} >
{$i18n.t('Capture')}
{ if (fileUploadEnabled) { showAttachWebpageModal = true; } }} >
{$i18n.t('Attach Webpage')}
{#if $config?.features?.enable_notes ?? false} {/if} {#if ($knowledge ?? []).length > 0} {/if} {#if ($chats ?? []).length > 0} {/if} {#if fileUploadEnabled} {#if $config?.features?.enable_google_drive_integration} { uploadGoogleDriveHandler(); }} >
{$i18n.t('Google Drive')}
{/if} {#if $config?.features?.enable_onedrive_integration && ($config?.features?.enable_onedrive_personal || $config?.features?.enable_onedrive_business)}
{$i18n.t('Microsoft OneDrive')}
{#if $config?.features?.enable_onedrive_personal} { uploadOneDriveHandler('personal'); }} >
{$i18n.t('Microsoft OneDrive (personal)')}
{/if} {#if $config?.features?.enable_onedrive_business} { uploadOneDriveHandler('organizations'); }} >
{$i18n.t('Microsoft OneDrive (work/school)')}
{$i18n.t('Includes SharePoint')}
{/if}
{/if} {/if}
{:else if tab === 'knowledge'}
{:else if tab === 'notes'}
{:else if tab === 'chats'}
{/if}