import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Bicycle24 = /** @class */ (function () {
    function Bicycle24(elementRef) {
        this.elementRef = elementRef;
    }
    Bicycle24.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;
            Bicycle24.titleIdCounter++;
            title.setAttribute("id", "bicycle24-" + Bicycle24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "bicycle24-" + Bicycle24.titleIdCounter);
        }
    };
    Bicycle24.titleIdCounter = 0;
    Bicycle24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-bicycle24",
                    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=\"M26 16a5.93 5.93 0 0 0-1.75.26l-2.36-4.71a1.07 1.07 0 0 0-.25-.31L22.72 8H25V6h-7v2h2.61l-1 3H9.38L10 8.21A1 1 0 0 0 9 7H4v2h3.76l-1.5 7H6a6 6 0 1 0 2.22.43l.64-3 7.06 8.82a2 2 0 0 0 1.56.75h2.61A6 6 0 1 0 26 16zm-16 6a4 4 0 1 1-4.17-4L5 21.79A1.55 1.55 0 0 0 5 22a1 1 0 0 0 1 1 1 1 0 0 0 1-.79l.81-3.77A4 4 0 0 1 10 22zm1.08-9H19l-2.32 6.94zm9 8h-1.7l2.39-7.19 1.68 3.35A6.05 6.05 0 0 0 20.09 21zM26 26a4 4 0 0 1-2.62-7l1.73 3.45A1 1 0 0 0 27 22a1.06 1.06 0 0 0-.11-.44l-1.73-3.46A3.86 3.86 0 0 1 26 18a4 4 0 0 1 0 8z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Bicycle24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Bicycle24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Bicycle24;
}());
export { Bicycle24 };
var Bicycle24Module = /** @class */ (function () {
    function Bicycle24Module() {
    }
    Bicycle24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Bicycle24
                    ],
                    exports: [
                        Bicycle24
                    ]
                },] },
    ];
    return Bicycle24Module;
}());
export { Bicycle24Module };
//# sourceMappingURL=24.js.map