@let episodeCount = selectedSeasonEpisodes().length; @let watchedCount = watchedCounts()[selectedSeason() ?? ''] ?? 0; @if (hasSeasons()) { } @if ( hasSeasons() && !showSeasonEmptyState() && metaState() !== 'bare' ) {
grid_view view_list
}
@if (hasSeasons() && selectedSeasonDescription(); as description) { }
@if (metaState() === 'loading') { } @else if (showSeriesEmptyState()) {

{{ 'PORTALS.NO_EPISODES_AVAILABLE' | translate }}

{{ 'PORTALS.NO_EPISODES_AVAILABLE_MESSAGE' | translate }}

} @else if (showSeasonEmptyState()) {

{{ 'PORTALS.SEASON_EMPTY' | translate }}

{{ 'PORTALS.SEASON_EMPTY_MESSAGE' | translate }}

} @else {
@for (episode of selectedSeasonEpisodes(); track $index) { }
}