@if (activeExpertFilterCount()) { } @if (reviewableCount() > 0) { }
@for (option of expertSortOptions; track option) { }
@if (loadingFeatured() && !featuredExperts().length) {
} @else if (featuredItem(); as featured) {
{{ 'XP.Explore.AgentSquare.FeaturedAgent' | translate: { Default: 'Featured expert' } }}

{{ 'XP.Explore.AgentSquare.HeroTitle' | translate: { Default: 'Find the right expert for the current task' } }}

{{ 'XP.Explore.AgentSquare.HeroSubtitle' | translate : { Default: 'Browse published experts by scenario, collaboration mode, and technical capability. Protected experts require approval before use.' } }}

@let preview = featuredApplicationPreview(); @if (preview) { }
{{ 'XP.Explore.AgentSquare.FeaturedAgent' | translate: { Default: 'Featured expert' } }} {{ featuredIndex() + 1 }} / {{ featuredExperts().length }}

{{ expertTitle(featured) }}

{{ expertCreator(featured) }}

{{ expertSummary(featured) }}

@for (tag of expertTags(featured).slice(0, 3); track tag) { {{ tag }} }
@if (featuredExperts().length > 1) {
@for (item of featuredExperts(); track item.xpert.id; let index = $index) { }
}
}
@for (category of businessCategories; track category) { }
@switch (catalog()) { @case ('experts') { @if (loadingExperts()) {
@for (placeholder of [1, 2, 3, 4, 5, 6, 7, 8]; track placeholder) {
}
} @else if (experts().length) {
@for (item of experts(); track item.xpert.id) {

{{ expertTitle(item) }}

{{ expertAccessLabel(item) }}

{{ expertCreator(item) }}

{{ expertSummary(item) }}

@for (tag of expertTags(item).slice(0, 3); track tag) { {{ tag }} }
}
} @else if (expertLoadError(); as error) {

{{ 'XP.Explore.AgentSquare.LoadFailed' | translate: { Default: 'Unable to load this catalog' } }}

{{ error }}

} @else {

{{ 'XP.Explore.AgentSquare.EmptyTitle' | translate: { Default: 'No matching experts' } }}

{{ 'XP.Explore.AgentSquare.EmptyHint' | translate: { Default: 'Try a different search or filter combination.' } }}

} } @case ('applications') { @if (loadingApplications()) {
@for (placeholder of [1, 2, 3, 4, 5, 6, 7, 8]; track placeholder) {
}
} @else if (filteredApplications().length) {
@for (item of filteredApplications(); track item.application.id) { @let screenshots = applicationScreenshots(item); @let screenshot = screenshots[0];
@if (screenshot) { } @else { }
{{ applicationStatusLabelKey(item.status.status) | translate }}

{{ applicationSummary(item) }}

{{ applicationScopeLabelKey(item.application.scope) | translate }} @for (tag of item.marketplace.tags.slice(0, 3); track tag) { {{ tag }} }
}
} @else if (applicationLoadError(); as error) {

{{ 'XP.Explore.AgentSquare.LoadFailed' | translate: { Default: 'Unable to load this catalog' } }}

{{ error }}

} @else {

{{ 'XP.Explore.AgentSquare.EmptyApplications' | translate: { Default: 'No matching applications' } }}

{{ 'XP.Explore.AgentSquare.EmptyApplicationsHint' | translate: { Default: 'Try another search or filter, or install a plugin that provides an App.' } }}

} } @case ('templates') { @if (loadingTemplates()) {
@for (placeholder of [1, 2, 3, 4, 5, 6, 7, 8]; track placeholder) {
}
} @else if (filteredTemplates().length) {
@for (template of visibleTemplates(); track template.id) {

{{ templateTitle(template) }}

{{ templateProvider(template) }}

{{ templateSummary(template) }}

{{ 'XP.Explore.AgentSquare.TemplateSource.' + templateSource(template) | translate }} {{ 'XP.Explore.AgentSquare.TemplateType.' + template.type | translate }} @if (template.category) { {{ 'XP.Xpert.Categories.' + template.category | translate: { Default: template.category } }} }
}
@if (visibleTemplates().length < filteredTemplates().length) { } } @else if (templateLoadError(); as error) {

{{ 'XP.Explore.AgentSquare.LoadFailed' | translate: { Default: 'Unable to load this catalog' } }}

{{ error }}

} @else {

{{ 'XP.Explore.AgentSquare.EmptyTemplates' | translate: { Default: 'No matching agent templates' } }}

{{ 'XP.Explore.AgentSquare.EmptyTemplatesHint' | translate: { Default: 'Try another search, category, source, or Assistant type.' } }}

} } }