import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var FlashOffFilled24 = /** @class */ (function () {
    function FlashOffFilled24(elementRef) {
        this.elementRef = elementRef;
    }
    FlashOffFilled24.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;
            FlashOffFilled24.titleIdCounter++;
            title.setAttribute("id", "flash-off-filled24-" + FlashOffFilled24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "flash-off-filled24-" + FlashOffFilled24.titleIdCounter);
        }
    };
    FlashOffFilled24.titleIdCounter = 0;
    FlashOffFilled24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-flash-off-filled24",
                    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=\"M30 28.59L3.41 2 2 3.41l6.4 6.41L7 15.77A1 1 0 0 0 8 17h4.83L11 28.85a1 1 0 0 0 .6 1.07 1.09 1.09 0 0 0 .4.08 1 1 0 0 0 .79-.39l6.68-8.73L28.59 30zm-7.47-11.72l3.26-4.26a1 1 0 0 0 .11-1A1 1 0 0 0 25 11h-4.75L22 3.22a1 1 0 0 0-.2-.85A1 1 0 0 0 21 2H11a1 1 0 0 0-1 .77l-.3 1.3z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    FlashOffFilled24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    FlashOffFilled24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return FlashOffFilled24;
}());
export { FlashOffFilled24 };
var FlashOffFilled24Module = /** @class */ (function () {
    function FlashOffFilled24Module() {
    }
    FlashOffFilled24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        FlashOffFilled24
                    ],
                    exports: [
                        FlashOffFilled24
                    ]
                },] },
    ];
    return FlashOffFilled24Module;
}());
export { FlashOffFilled24Module };
//# sourceMappingURL=24.js.map