{{ document?.name }} @if (viewer === 'pdf' && pdfTotal > 0) { {{ 'DOCS.PREVIEW.PAGE_OF' | translate: { page: pdfPage, total: pdfTotal } }} }
@if (viewer === 'pdf') { } @if (!inline) { }
@switch (viewer) { @case ('pdf') { } @case ('image') {
@if (mediaUrl) { }
} @case ('video') {
@if (mediaUrl) { }
} @case ('audio') {
@if (mediaUrl) { }
} @case ('text') {
@if (plainText !== null) {
{{ plainText }}
} @if (textHtml) {
}
} @case ('extracted') {
{{ 'DOCS.PREVIEW.EXTRACTED_NOTICE' | translate }}
@if (textHtml) {
}
} @default {
{{ 'DOCS.PREVIEW.FALLBACK_TITLE' | translate }}

{{ 'DOCS.PREVIEW.FALLBACK_BODY' | translate }}

{{ document?.originalFilename || document?.name }} @if (document?.fileSize) { ยท {{ humanizeSize($safeNavigationMigration(document?.fileSize)) }} }

} }