import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var LetterTt24 = /** @class */ (function () {
    function LetterTt24(elementRef) {
        this.elementRef = elementRef;
    }
    LetterTt24.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;
            LetterTt24.titleIdCounter++;
            title.setAttribute("id", "letter-tt24-" + LetterTt24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "letter-tt24-" + LetterTt24.titleIdCounter);
        }
    };
    LetterTt24.titleIdCounter = 0;
    LetterTt24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-letter-tt24",
                    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=\"M8 11h3v12h2V11h3V9H8v2zm15 4v-2h-3v-2h-2v2h-2v2h2v6a2 2 0 0 0 2 2h3v-2h-3v-6z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    LetterTt24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    LetterTt24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return LetterTt24;
}());
export { LetterTt24 };
var LetterTt24Module = /** @class */ (function () {
    function LetterTt24Module() {
    }
    LetterTt24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        LetterTt24
                    ],
                    exports: [
                        LetterTt24
                    ]
                },] },
    ];
    return LetterTt24Module;
}());
export { LetterTt24Module };
//# sourceMappingURL=24.js.map