import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var NotificationNew24 = /** @class */ (function () {
    function NotificationNew24(elementRef) {
        this.elementRef = elementRef;
    }
    NotificationNew24.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 24,
            height: 24,
            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;
            NotificationNew24.titleIdCounter++;
            title.setAttribute("id", "notification-new24-" + NotificationNew24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "notification-new24-" + NotificationNew24.titleIdCounter);
        }
    };
    NotificationNew24.titleIdCounter = 0;
    NotificationNew24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-notification-new24",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M26 17.6V15h-2v3a.91.91 0 0 0 .3.7l2.7 2.7V23H5v-1.6l2.7-2.7A.91.91 0 0 0 8 18v-5a8 8 0 0 1 8-8 7.89 7.89 0 0 1 4 1.09V3.8a9.71 9.71 0 0 0-3-.8V1h-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><circle cx=\"26\" cy=\"8\" r=\"4\"></circle></svg>"
                },] },
    ];
    /** @nocollapse */
    NotificationNew24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    NotificationNew24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return NotificationNew24;
}());
export { NotificationNew24 };
var NotificationNew24Module = /** @class */ (function () {
    function NotificationNew24Module() {
    }
    NotificationNew24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        NotificationNew24
                    ],
                    exports: [
                        NotificationNew24
                    ]
                },] },
    ];
    return NotificationNew24Module;
}());
export { NotificationNew24Module };
//# sourceMappingURL=24.js.map