import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Arrival20 = /** @class */ (function () {
    function Arrival20(elementRef) {
        this.elementRef = elementRef;
    }
    Arrival20.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 20,
            height: 20,
            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;
            Arrival20.titleIdCounter++;
            title.setAttribute("id", "arrival20-" + Arrival20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "arrival20-" + Arrival20.titleIdCounter);
        }
    };
    Arrival20.titleIdCounter = 0;
    Arrival20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-arrival20",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M2 28h28v2H2zM17.21 5.23l1.39.38 1 11.29 5.87 1.57A2 2 0 0 1 27 20.62a1.88 1.88 0 0 1-1.37 1.52 2 2 0 0 1-1 0l-18.7-5a1.89 1.89 0 0 1-1.33-2.3l1.75-6.5 1.44.38.61 5.18 6 1.62 2.81-10.29m-1-2.2a1 1 0 0 0-.68.69L13 13.07l-2.81-.75-.5-4.53A1 1 0 0 0 9 7l-3.13-.86a.94.94 0 0 0-.5 0 1 1 0 0 0-.68.68l-2 7.49a3.87 3.87 0 0 0 2.74 4.74l18.71 5A3.87 3.87 0 0 0 29 21a4 4 0 0 0-3-4.42l-4.52-1.21-.95-10.66a1 1 0 0 0-.72-.85L16.73 3a1.06 1.06 0 0 0-.5 0z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Arrival20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Arrival20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Arrival20;
}());
export { Arrival20 };
var Arrival20Module = /** @class */ (function () {
    function Arrival20Module() {
    }
    Arrival20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Arrival20
                    ],
                    exports: [
                        Arrival20
                    ]
                },] },
    ];
    return Arrival20Module;
}());
export { Arrival20Module };
//# sourceMappingURL=20.js.map