import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ShoppingBag32 = /** @class */ (function () {
    function ShoppingBag32(elementRef) {
        this.elementRef = elementRef;
    }
    ShoppingBag32.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;
            ShoppingBag32.titleIdCounter++;
            title.setAttribute("id", "shopping-bag32-" + ShoppingBag32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "shopping-bag32-" + ShoppingBag32.titleIdCounter);
        }
    };
    ShoppingBag32.titleIdCounter = 0;
    ShoppingBag32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-shopping-bag32",
                    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=\"M28.76 11.35A1 1 0 0 0 28 11h-6V7a3 3 0 0 0-3-3h-6a3 3 0 0 0-3 3v4H4a1 1 0 0 0-1 1.15L4.88 24.3a2 2 0 0 0 2 1.7h18.26a2 2 0 0 0 2-1.7L29 12.15a1 1 0 0 0-.24-.8zM12 7a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4h-8zm13.14 17H6.86L5.17 13h21.66z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    ShoppingBag32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ShoppingBag32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ShoppingBag32;
}());
export { ShoppingBag32 };
var ShoppingBag32Module = /** @class */ (function () {
    function ShoppingBag32Module() {
    }
    ShoppingBag32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ShoppingBag32
                    ],
                    exports: [
                        ShoppingBag32
                    ]
                },] },
    ];
    return ShoppingBag32Module;
}());
export { ShoppingBag32Module };
//# sourceMappingURL=32.js.map