@if (!details()) { {{ 'XP.Knowledgebase.GraphDocumentProgress.States.' + state() | translate }} } @else {

{{ 'XP.Knowledgebase.GraphDocumentProgress.Title' | translate }}

{{ 'XP.Knowledgebase.GraphDocumentProgress.States.' + state() | translate }}
@if (progress()?.stages; as stages) { @for (stage of stageKeys; track stage) { @if (stages[stage] === 'running') { } {{ 'XP.Knowledgebase.GraphDocumentProgress.Stages.' + stage | translate }} }
@for (stage of stageKeys; track stage) {

{{ 'XP.Knowledgebase.GraphDocumentProgress.StageStates.' + stages[stage] | translate }}

}
} @if (progress()?.totalChunks > 0) {

{{ 'XP.Knowledgebase.GraphDocumentProgress.Chunks' | translate : { processed: progress().processedChunks ?? 0, total: progress().totalChunks } }}

} @if (state() === 'failed') { } @else if (state() !== 'ready' && state() !== 'running' && state() !== 'queued' && state() !== 'loading') {

{{ 'XP.Knowledgebase.GraphDocumentProgress.Hints.' + state() | translate }}

} @if (state() === 'ready') { {{ 'XP.Knowledgebase.GraphDocumentProgress.ViewGraph' | translate }} }
}