<div class="bar-wrapper">
    <div *ngIf="queued" class="bar-state">
        <span class="label label-orange">{{
            'SBOM.STATE.QUEUED' | translate
        }}</span>
    </div>
    <div *ngIf="error" class="bar-state bar-state-error">
        <a
            rel="noopener noreferrer"
            class="error-text"
            target="_blank"
            [href]="viewLog()">
            <clr-icon shape="error" class="is-error" size="24"></clr-icon>
            {{ 'SBOM.STATE.ERROR' | translate }}
        </a>
    </div>
    <div *ngIf="generating" class="bar-state bar-state-chart">
        <div>{{ 'SBOM.STATE.SCANNING' | translate }}</div>
        <div class="progress loop loop-height"><progress></progress></div>
    </div>
    <div *ngIf="completed" class="bar-state bar-state-chart">
        <hbr-sbom-tip-histogram
            [scanner]="getScanner()"
            [artifactDigest]="artifactDigest"
            [accessories]="accessories"
            [sbomSummary]="sbomOverview"
            [sbomDigest]="sbomDigest"></hbr-sbom-tip-histogram>
    </div>
    <div *ngIf="stopped" class="bar-state">
        <span class="label stopped">{{
            'SBOM.STATE.STOPPED' | translate
        }}</span>
    </div>
    <div *ngIf="otherStatus" class="bar-state">
        <span class="label not-scan">{{
            'SBOM.STATE.OTHER_STATUS' | translate
        }}</span>
    </div>
</div>
