import { Component, Input, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@angular/material/progress-bar";
function EuiFileUploadProgressComponent_div_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 1);
    i0.ɵɵelement(1, "mat-progress-bar", 2);
    i0.ɵɵelementStart(2, "div", 3);
    i0.ɵɵtext(3);
    i0.ɵɵelementEnd();
    i0.ɵɵelementEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("value", ctx_r0.progress);
    i0.ɵɵadvance(2);
    i0.ɵɵtextInterpolate1("", ctx_r0.progress, "%");
} }
export class EuiFileUploadProgressComponent {
    constructor() {
        this.progress = 0;
    }
}
/** @nocollapse */ EuiFileUploadProgressComponent.ɵfac = function EuiFileUploadProgressComponent_Factory(t) { return new (t || EuiFileUploadProgressComponent)(); };
/** @nocollapse */ EuiFileUploadProgressComponent.ɵcmp = i0.ɵɵdefineComponent({ type: EuiFileUploadProgressComponent, selectors: [["eui-file-upload-progress"]], inputs: { progress: "progress" }, decls: 1, vars: 1, consts: [["class", "file-upload__progress-bar", 4, "ngIf"], [1, "file-upload__progress-bar"], [1, "file-upload__progress-bar__bar", 3, "value"], [1, "file-upload__progress-value"]], template: function EuiFileUploadProgressComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵtemplate(0, EuiFileUploadProgressComponent_div_0_Template, 4, 2, "div", 0);
    } if (rf & 2) {
        i0.ɵɵproperty("ngIf", ctx.progress > 0);
    } }, directives: [i1.NgIf, i2.MatProgressBar], encapsulation: 2, changeDetection: 0 });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(EuiFileUploadProgressComponent, [{
        type: Component,
        args: [{
                selector: 'eui-file-upload-progress',
                templateUrl: './eui-file-upload-progress.component.html',
                changeDetection: ChangeDetectionStrategy.OnPush,
                encapsulation: ViewEncapsulation.None,
            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