import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ChevronLeftGlyph = /** @class */ (function () {
    function ChevronLeftGlyph(elementRef) {
        this.elementRef = elementRef;
    }
    ChevronLeftGlyph.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 6,
            height: 10,
            viewBox: "0 0 6 10",
            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;
            ChevronLeftGlyph.titleIdCounter++;
            title.setAttribute("id", "chevron-left-glyph-" + ChevronLeftGlyph.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "chevron-left-glyph-" + ChevronLeftGlyph.titleIdCounter);
        }
    };
    ChevronLeftGlyph.titleIdCounter = 0;
    ChevronLeftGlyph.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-chevron-left-glyph",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"6\" height=\"10\" viewBox=\"0 0 6 10\" aria-hidden=\"true\"><path d=\"M0 5l5-5 .7.7L1.4 5l4.3 4.3-.7.7z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    ChevronLeftGlyph.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ChevronLeftGlyph.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ChevronLeftGlyph;
}());
export { ChevronLeftGlyph };
var ChevronLeftGlyphModule = /** @class */ (function () {
    function ChevronLeftGlyphModule() {
    }
    ChevronLeftGlyphModule.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ChevronLeftGlyph
                    ],
                    exports: [
                        ChevronLeftGlyph
                    ]
                },] },
    ];
    return ChevronLeftGlyphModule;
}());
export { ChevronLeftGlyphModule };
//# sourceMappingURL=index.js.map