import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var NotificationFilled20 = /** @class */ (function () {
    function NotificationFilled20(elementRef) {
        this.elementRef = elementRef;
    }
    NotificationFilled20.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 20,
            height: 20,
            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;
            NotificationFilled20.titleIdCounter++;
            title.setAttribute("id", "notification-filled20-" + NotificationFilled20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "notification-filled20-" + NotificationFilled20.titleIdCounter);
        }
    };
    NotificationFilled20.titleIdCounter = 0;
    NotificationFilled20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-notification-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 32 32\" aria-hidden=\"true\"><path d=\"M28.7 20.3L26 17.6V13a10.07 10.07 0 0 0-9-10V1h-2v2a10.15 10.15 0 0 0-9 10v4.6l-2.7 2.7a.91.91 0 0 0-.3.7v3a.94.94 0 0 0 1 1h7a5 5 0 0 0 10 0h7a.94.94 0 0 0 1-1v-3a.91.91 0 0 0-.3-.7zM16 28a3 3 0 0 1-3-3h6a3 3 0 0 1-3 3z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    NotificationFilled20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    NotificationFilled20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return NotificationFilled20;
}());
export { NotificationFilled20 };
var NotificationFilled20Module = /** @class */ (function () {
    function NotificationFilled20Module() {
    }
    NotificationFilled20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        NotificationFilled20
                    ],
                    exports: [
                        NotificationFilled20
                    ]
                },] },
    ];
    return NotificationFilled20Module;
}());
export { NotificationFilled20Module };
//# sourceMappingURL=20.js.map