import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var DeliveryTruck32 = /** @class */ (function () {
    function DeliveryTruck32(elementRef) {
        this.elementRef = elementRef;
    }
    DeliveryTruck32.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 32,
            height: 32,
            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;
            DeliveryTruck32.titleIdCounter++;
            title.setAttribute("id", "delivery-truck32-" + DeliveryTruck32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "delivery-truck32-" + DeliveryTruck32.titleIdCounter);
        }
    };
    DeliveryTruck32.titleIdCounter = 0;
    DeliveryTruck32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-delivery-truck32",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M29.92 16.61l-3-7A1 1 0 0 0 26 9h-3V7a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v17a1 1 0 0 0 1 1h2.14a4 4 0 0 0 7.72 0h6.28a4 4 0 0 0 7.72 0H29a1 1 0 0 0 1-1v-7a1 1 0 0 0-.08-.39zM23 11h2.34l2.14 5H23zM9 26a2 2 0 1 1 2-2 2 2 0 0 1-2 2zm10.14-3h-6.28a4 4 0 0 0-7.72 0H4V8h17v12.56A4 4 0 0 0 19.14 23zM23 26a2 2 0 1 1 2-2 2 2 0 0 1-2 2zm5-3h-1.14A4 4 0 0 0 23 20v-2h5z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    DeliveryTruck32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    DeliveryTruck32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return DeliveryTruck32;
}());
export { DeliveryTruck32 };
var DeliveryTruck32Module = /** @class */ (function () {
    function DeliveryTruck32Module() {
    }
    DeliveryTruck32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        DeliveryTruck32
                    ],
                    exports: [
                        DeliveryTruck32
                    ]
                },] },
    ];
    return DeliveryTruck32Module;
}());
export { DeliveryTruck32Module };
//# sourceMappingURL=32.js.map