{{ t('title') }}

{{ t('description') }}

@if (showAdvanced) {
}
@if (activeGroups.length > 0) { }
@if (isMerging) { } @if (hasScanned && activeGroups.length > 0) {
{{ t('helpText') }}
}
@if (isScanning) {

{{ t('scanning') }}

} @else if (!hasScanned) {

{{ t('scanPrompt') }}

} @else if (activeGroups.length === 0 && groups.length === 0) {

{{ t('noDuplicates') }}

} @else if (activeGroups.length === 0 && groups.length > 0) {

{{ t('allMerged') }}

} @else {
@for (group of pagedGroups; track group.suggestedTargetBookId) {
{{ t('groupLabel', { index: pageFirst + $index + 1 }) }} @if (hasSameFormatConflict(group)) { }
@if (getDeleteSelectedCount(group) > 0) { }
@for (book of group.books; track book.id) {
@if (book.id !== group.selectedTargetBookId) { }
{{ book.metadata?.title || ('book.fileAttacher.unknownTitle' | transloco) }}
@if (book.metadata?.authors?.length) {
{{ book.metadata?.authors?.join(', ') }}
}
@for (format of getBookFormats(book); track format) { {{ format }} } @if (getFileCount(book) > 1) { {{ t('fileCount', { count: getFileCount(book) }) }} } @if (book.primaryFile?.fileSizeKb) { {{ formatFileSize(book.primaryFile?.fileSizeKb) }} }
@if (book.primaryFile?.fileName) {
{{ getBookFilePath(book) }}
}
@if (book.id === group.selectedTargetBookId) { {{ t('target') }} }
}
}
@if (activeGroups.length > pageSize) { } }