import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WarningFilled20 = /** @class */ (function () {
    function WarningFilled20(elementRef) {
        this.elementRef = elementRef;
    }
    WarningFilled20.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 20,
            height: 20,
            viewBox: "0 0 20 20",
            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;
            WarningFilled20.titleIdCounter++;
            title.setAttribute("id", "warning-filled20-" + WarningFilled20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "warning-filled20-" + WarningFilled20.titleIdCounter);
        }
    };
    WarningFilled20.titleIdCounter = 0;
    WarningFilled20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-warning-filled20",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" aria-hidden=\"true\"><path d=\"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm-.8 4h1.5v7H9.2V5zm.8 11c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1z\"></path><path d=\"M9.2 5h1.5v7H9.2V5zm.8 11c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1z\" data-icon-path=\"inner-path\" opacity=\"0\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    WarningFilled20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WarningFilled20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WarningFilled20;
}());
export { WarningFilled20 };
var WarningFilled20Module = /** @class */ (function () {
    function WarningFilled20Module() {
    }
    WarningFilled20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WarningFilled20
                    ],
                    exports: [
                        WarningFilled20
                    ]
                },] },
    ];
    return WarningFilled20Module;
}());
export { WarningFilled20Module };
//# sourceMappingURL=20.js.map