import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Fade16 = /** @class */ (function () {
    function Fade16(elementRef) {
        this.elementRef = elementRef;
    }
    Fade16.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 16,
            height: 16,
            viewBox: "0 0 16 16",
            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;
            Fade16.titleIdCounter++;
            title.setAttribute("id", "fade16-" + Fade16.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "fade16-" + Fade16.titleIdCounter);
        }
    };
    Fade16.titleIdCounter = 0;
    Fade16.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-fade16",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"M4.1 12.6l-.6.8c.6.5 1.3.9 2.1 1.2l.3-.9c-.6-.3-1.2-.7-1.8-1.1zM2.1 9l-1 .2c.1.8.4 1.6.8 2.3l.9-.5c-.4-.6-.6-1.3-.7-2zm3.8-6.6l-.3-1c-.8.3-1.5.7-2.1 1.3l.6.8c.6-.5 1.2-.9 1.8-1.1zM2.8 5l-.9-.5c-.4.7-.6 1.5-.8 2.3l1 .2c.1-.7.4-1.4.7-2zM8 1v1c3.3 0 6 2.7 6 6s-2.7 6-6 6v1c3.9 0 7-3.1 7-7s-3.1-7-7-7z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Fade16.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Fade16.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Fade16;
}());
export { Fade16 };
var Fade16Module = /** @class */ (function () {
    function Fade16Module() {
    }
    Fade16Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Fade16
                    ],
                    exports: [
                        Fade16
                    ]
                },] },
    ];
    return Fade16Module;
}());
export { Fade16Module };
//# sourceMappingURL=16.js.map