@let groups = svc.groups(); @let hasQuery = svc.query().trim().length > 0; @let isSearching = svc.isSearching(); @if (hasQuery) {
@if (svc.bookSearchFailed()) {
{{ t('bookSearchError') }}
} @else if (!isSearching && groups.length === 0) {
{{ t('empty') }}
} @for (group of groups; track group.kind) {
@for (item of group.items; track item.id) { }
}
}