import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Rocket24 = /** @class */ (function () {
    function Rocket24(elementRef) {
        this.elementRef = elementRef;
    }
    Rocket24.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;
            Rocket24.titleIdCounter++;
            title.setAttribute("id", "rocket24-" + Rocket24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "rocket24-" + Rocket24.titleIdCounter);
        }
    };
    Rocket24.titleIdCounter = 0;
    Rocket24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-rocket24",
                    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=\"M7.288 23.292l7.997-7.997 1.414 1.414-7.997 7.997z\"></path><path d=\"M17 30a1 1 0 0 1-.37-.07 1 1 0 0 1-.62-.79l-1-7 2-.28.75 5.27L21 24.52V17a1 1 0 0 1 .29-.71l4.07-4.07A8.94 8.94 0 0 0 28 5.86V4h-1.86a8.94 8.94 0 0 0-6.36 2.64l-4.07 4.07A1 1 0 0 1 15 11H7.48l-2.61 3.26 5.27.75-.28 2-7-1a1 1 0 0 1-.79-.62 1 1 0 0 1 .15-1l4-5A1 1 0 0 1 7 9h7.59l3.77-3.78A10.92 10.92 0 0 1 26.14 2H28a2 2 0 0 1 2 2v1.86a10.92 10.92 0 0 1-3.22 7.78L23 17.41V25a1 1 0 0 1-.38.78l-5 4A1 1 0 0 1 17 30z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Rocket24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Rocket24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Rocket24;
}());
export { Rocket24 };
var Rocket24Module = /** @class */ (function () {
    function Rocket24Module() {
    }
    Rocket24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Rocket24
                    ],
                    exports: [
                        Rocket24
                    ]
                },] },
    ];
    return Rocket24Module;
}());
export { Rocket24Module };
//# sourceMappingURL=24.js.map