import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ErrorFilled32 = /** @class */ (function () {
    function ErrorFilled32(elementRef) {
        this.elementRef = elementRef;
    }
    ErrorFilled32.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 32,
            height: 32,
            viewBox: "0 0 32 32",
            title: this.title,
            "aria-label": this.ariaLabel,
            "aria-labelledby": this.ariaLabelledby,
            "aria-hidden": this.ariaHidden,
            focusable: this.focusable
        });
        var attrKeys = Object.keys(attributes);
        for (var i = 0; i < attrKeys.length; i++) {
            var key = attrKeys[i];
            var value = attributes[key];
            if (key === "title") {
                continue;
            }
            if (value) {
                svg.setAttribute(key, value);
            }
        }
        if (attributes.title) {
            var title = document.createElement("title");
            title.textContent = attributes.title;
            ErrorFilled32.titleIdCounter++;
            title.setAttribute("id", "error-filled32-" + ErrorFilled32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "error-filled32-" + ErrorFilled32.titleIdCounter);
        }
    };
    ErrorFilled32.titleIdCounter = 0;
    ErrorFilled32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-error-filled32",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M12 1C5.9 1 1 5.9 1 12s4.9 11 11 11 11-4.9 11-11S18.1 1 12 1zm4.3 16.5L6.5 7.7l1.2-1.2 9.8 9.8-1.2 1.2z\"></path><path d=\"M16.3 17.5L6.5 7.7l1.2-1.2 9.8 9.8-1.2 1.2z\" data-icon-path=\"inner-path\" opacity=\"0\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    ErrorFilled32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ErrorFilled32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ErrorFilled32;
}());
export { ErrorFilled32 };
var ErrorFilled32Module = /** @class */ (function () {
    function ErrorFilled32Module() {
    }
    ErrorFilled32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ErrorFilled32
                    ],
                    exports: [
                        ErrorFilled32
                    ]
                },] },
    ];
    return ErrorFilled32Module;
}());
export { ErrorFilled32Module };
//# sourceMappingURL=32.js.map