import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var NotificationOffFilled20 = /** @class */ (function () {
    function NotificationOffFilled20(elementRef) {
        this.elementRef = elementRef;
    }
    NotificationOffFilled20.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;
            NotificationOffFilled20.titleIdCounter++;
            title.setAttribute("id", "notification-off-filled20-" + NotificationOffFilled20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "notification-off-filled20-" + NotificationOffFilled20.titleIdCounter);
        }
    };
    NotificationOffFilled20.titleIdCounter = 0;
    NotificationOffFilled20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-notification-off-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=\"M26 17.6V13a10 10 0 0 0-1.09-4.5L30 3.41 28.59 2 2 28.59 3.41 30l5-5H11a5 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 3zm5.63-23.28A9.78 9.78 0 0 0 17 3V1h-2v2a10.15 10.15 0 0 0-9 10v4.6l-2.7 2.7a.91.91 0 0 0-.3.7v2.34z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    NotificationOffFilled20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    NotificationOffFilled20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return NotificationOffFilled20;
}());
export { NotificationOffFilled20 };
var NotificationOffFilled20Module = /** @class */ (function () {
    function NotificationOffFilled20Module() {
    }
    NotificationOffFilled20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        NotificationOffFilled20
                    ],
                    exports: [
                        NotificationOffFilled20
                    ]
                },] },
    ];
    return NotificationOffFilled20Module;
}());
export { NotificationOffFilled20Module };
//# sourceMappingURL=20.js.map