{{ t('title') }}

{{ t('description') }}

@if (phase === 'upload') {
@if (entries.length === 0 && skipped.length === 0 && duplicatesRemoved === 0) { {{ t('tabFile') }} {{ t('tabPaste') }}

{{ t('fileFormatsHint') }}

@if (parseError === 'fileTooLarge') {
{{ t('errorFileTooLarge') }}
} @if (parseError === 'empty') {
{{ t('errorNoIsbns') }}
} } @else {
{{ t('validCount', { count: entries.length }) }}
@if (skipped.length > 0) {
{{ t('skippedCount', { count: skipped.length }) }}
} @if (duplicatesRemoved > 0) {
{{ t('duplicatesRemoved', { count: duplicatesRemoved }) }}
} @if (parseError === 'tooMany') {
{{ t('errorTooMany', { max: maxIsbnCount }) }}
}
@if (showSkipped && skipped.length > 0) {
@for (item of skipped; track item.value) {
{{ item.value }} {{ t('reason.' + item.reason) }}
}
}
{{ t('previewLabel') }}
@for (entry of entries; track entry.isbn; let i = $index) {
{{ i + 1 }}. {{ entry.isbn }}
}
}
} @if (phase === 'processing') {
{{ t('processingLabel', { current: processedCount, total: entries.length }) }} {{ progressPercent }}%
{{ createdCount }} {{ failedCount }}
@for (entry of entries; track entry.isbn) {
@switch (entry.status) { @case ('pending') { } @case ('looking-up') { } @case ('created') { } @case ('created-no-metadata') { } @case ('failed') { } }
{{ entry.isbn }} @if (entry.status === 'created' && entry.title) { {{ entry.title }} } @else if (entry.status === 'created-no-metadata') { {{ t('createdNoMetadata') }} } @else if (entry.status === 'failed') { {{ entry.error || t('unknownError') }} } @else if (entry.status === 'looking-up') { {{ t('lookingUp') }} }
}
} @if (phase === 'summary') {
{{ t('summaryTitle') }} @if (selectedLibraryName) { {{ selectedLibraryName }} }
{{ createdCount }} {{ t('summaryCreated') }}
@if (noMetadataCount > 0) {
{{ noMetadataCount }} {{ t('summaryNoMetadata') }}
} @if (failedCount > 0) {
{{ failedCount }} {{ t('summaryFailed') }}
} @if (cancelled) {
{{ entries.length - processedCount }} {{ t('summaryCancelled') }}
}
@for (entry of entries; track entry.isbn) { @if (entry.status !== 'pending') {
@switch (entry.status) { @case ('created') { } @case ('created-no-metadata') { } @case ('failed') { } }
{{ entry.isbn }} @if (entry.status === 'created' && entry.title) { {{ entry.title }} } @else if (entry.status === 'created-no-metadata') { {{ t('createdNoMetadata') }} } @else if (entry.status === 'failed') { {{ entry.error || t('unknownError') }} }
} }
}