import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var LetterNn20 = /** @class */ (function () {
    function LetterNn20(elementRef) {
        this.elementRef = elementRef;
    }
    LetterNn20.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;
            LetterNn20.titleIdCounter++;
            title.setAttribute("id", "letter-nn20-" + LetterNn20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "letter-nn20-" + LetterNn20.titleIdCounter);
        }
    };
    LetterNn20.titleIdCounter = 0;
    LetterNn20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-letter-nn20",
                    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=\"M25 23h-2v-8h-4v8h-2V13h6a2 2 0 0 1 2 2zm-12-4L9.32 9H7v14h2V13l3.68 10H15V9h-2v10z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    LetterNn20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    LetterNn20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return LetterNn20;
}());
export { LetterNn20 };
var LetterNn20Module = /** @class */ (function () {
    function LetterNn20Module() {
    }
    LetterNn20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        LetterNn20
                    ],
                    exports: [
                        LetterNn20
                    ]
                },] },
    ];
    return LetterNn20Module;
}());
export { LetterNn20Module };
//# sourceMappingURL=20.js.map