@if (!isGlobalSearch) { @for (filter of filterConfig; track filter.key) { {{ filter.translationKey | translate }} } } @if (!isGlobalSearch) { {{ 'PORTALS.SEARCH_VIEW.VISIBLE_CATEGORIES_ONLY' | translate }} } @if (showGlobalCloseButton) { } @if (isGlobalSearch) {
{{ 'PORTALS.SEARCH_VIEW.GLOBAL_SEARCH_SOURCE_NOTE' | translate }}
@for (filter of filterConfig; track filter.key) { {{ filter.translationKey | translate }} }
{{ 'PORTALS.SEARCH_VIEW.VISIBLE_CATEGORIES_ONLY' | translate }} {{ 'PORTALS.SEARCH_VIEW.GROUP_BY_PLAYLIST' | translate }}
}
@if (isGlobalSearch) { @if (groupByPlaylist()) {

Found {{ xtreamStore.searchResults().length }} items across {{ groupedResults().length }} playlists

@for (group of groupedResults(); track group.playlistId) {

playlist_play {{ group.playlistName }} ({{ group.items.length }} items)

@for (item of group.items; track item.id) { }
}
} @else {
@for (item of xtreamStore.searchResults(); track item.id) { }
} @if (isLoadingMoreGlobalResults()) {
{{ 'PORTALS.SEARCH_VIEW.LOADING_MORE_RESULTS' | translate }}
} } @else {
@for (item of visibleInPortalResults(); track item.id) { }
}