import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Plane24 = /** @class */ (function () {
    function Plane24(elementRef) {
        this.elementRef = elementRef;
    }
    Plane24.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;
            Plane24.titleIdCounter++;
            title.setAttribute("id", "plane24-" + Plane24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "plane24-" + Plane24.titleIdCounter);
        }
    };
    Plane24.titleIdCounter = 0;
    Plane24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-plane24",
                    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=\"M29.37 14.75L20 10V6a4 4 0 0 0-8 0v4l-9.37 4.75a1 1 0 0 0-.63.93v5a1 1 0 0 0 1 1 1 1 0 0 0 .29-.05L12 18v5l-3.45 1.72a1 1 0 0 0-.55.9V29a1 1 0 0 0 1 1 .9.9 0 0 0 .28 0L16 28l6.72 2a.9.9 0 0 0 .28 0 1 1 0 0 0 1-1v-3.38a1 1 0 0 0-.55-.9L20 23v-5l8.71 3.61a1 1 0 0 0 .29.05 1 1 0 0 0 1-1v-5a1 1 0 0 0-.63-.91zM28 19.15L18 15v9.24l4 2v1.43l-6-1.75-6 1.75v-1.43l4-2V15L4 19.15V16.3l10-5.07V6a2 2 0 0 1 4 0v5.23l10 5.07z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Plane24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Plane24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Plane24;
}());
export { Plane24 };
var Plane24Module = /** @class */ (function () {
    function Plane24Module() {
    }
    Plane24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Plane24
                    ],
                    exports: [
                        Plane24
                    ]
                },] },
    ];
    return Plane24Module;
}());
export { Plane24Module };
//# sourceMappingURL=24.js.map