import { Component, Input } from '@angular/core';
import { gettext } from '../i18n/gettext';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "../i18n/c8y-translate.pipe";
/**
 * @deprecated Use `c8y-loading` instead.
 */
export class ProgressBarComponent {
    constructor() {
        this.message = gettext('Loading…');
        this.progress = null;
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: ProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: ProgressBarComponent, selector: "c8y-progress-bar", inputs: { message: "message", progress: "progress" }, ngImport: i0, template: "<div class=\"bg-inherit\">\n  <div\n    class=\"progress progress-striped active\"\n    *ngIf=\"progress !== null\"\n  >\n    <div\n      class=\"progress-bar\"\n      [style.width]=\"progress + '%'\"\n      [attr.aria-label]=\"'Progress' | translate\"\n      aria-valuemin=\"0\"\n      aria-valuemax=\"100\"\n      [attr.aria-valuenow]=\"progress\"\n      role=\"progressbar\"\n    ></div>\n  </div>\n  <div\n    class=\"spinner-snake\"\n    *ngIf=\"progress === null\"\n  ></div>\n  <p\n    class=\"text-center\"\n    *ngIf=\"message\"\n  >\n    {{ message | translate }}\n  </p>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.C8yTranslatePipe, name: "translate" }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: ProgressBarComponent, decorators: [{
            type: Component,
            args: [{ selector: 'c8y-progress-bar', template: "<div class=\"bg-inherit\">\n  <div\n    class=\"progress progress-striped active\"\n    *ngIf=\"progress !== null\"\n  >\n    <div\n      class=\"progress-bar\"\n      [style.width]=\"progress + '%'\"\n      [attr.aria-label]=\"'Progress' | translate\"\n      aria-valuemin=\"0\"\n      aria-valuemax=\"100\"\n      [attr.aria-valuenow]=\"progress\"\n      role=\"progressbar\"\n    ></div>\n  </div>\n  <div\n    class=\"spinner-snake\"\n    *ngIf=\"progress === null\"\n  ></div>\n  <p\n    class=\"text-center\"\n    *ngIf=\"message\"\n  >\n    {{ message | translate }}\n  </p>\n</div>\n" }]
        }], propDecorators: { message: [{
                type: Input
            }], progress: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZ3Jlc3MtYmFyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2NvcmUvY29tbW9uL3Byb2dyZXNzLWJhci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi9jb3JlL2NvbW1vbi9wcm9ncmVzcy1iYXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakQsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLGlCQUFpQixDQUFDOzs7O0FBRTFDOztHQUVHO0FBS0gsTUFBTSxPQUFPLG9CQUFvQjtJQUpqQztRQUtXLFlBQU8sR0FBVyxPQUFPLENBQUMsVUFBVSxDQUFDLENBQUM7UUFDdEMsYUFBUSxHQUFXLElBQUksQ0FBQztLQUNsQzs4R0FIWSxvQkFBb0I7a0dBQXBCLG9CQUFvQiw4R0NWakMsaWxCQTBCQTs7MkZEaEJhLG9CQUFvQjtrQkFKaEMsU0FBUzsrQkFDRSxrQkFBa0I7OEJBSW5CLE9BQU87c0JBQWYsS0FBSztnQkFDRyxRQUFRO3NCQUFoQixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBJbnB1dCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1w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