import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var FlashOff20 = /** @class */ (function () {
    function FlashOff20(elementRef) {
        this.elementRef = elementRef;
    }
    FlashOff20.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;
            FlashOff20.titleIdCounter++;
            title.setAttribute("id", "flash-off20-" + FlashOff20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "flash-off20-" + FlashOff20.titleIdCounter);
        }
    };
    FlashOff20.titleIdCounter = 0;
    FlashOff20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-flash-off20",
                    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=\"M11.13 6.89L11.8 4h8l-2 9H23l-2.49 3.25 1.43 1.43 3.87-5.07a1 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-.54 2.45zM30 28.59l-9.31-9.31-1.42-1.43-8.67-8.66-1.67-1.67L3.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 30zM9.26 15l.81-3.52L13.59 15zm4.32 10.28L15 16.37l3 3.08z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    FlashOff20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    FlashOff20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return FlashOff20;
}());
export { FlashOff20 };
var FlashOff20Module = /** @class */ (function () {
    function FlashOff20Module() {
    }
    FlashOff20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        FlashOff20
                    ],
                    exports: [
                        FlashOff20
                    ]
                },] },
    ];
    return FlashOff20Module;
}());
export { FlashOff20Module };
//# sourceMappingURL=20.js.map