import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Wmv32 = /** @class */ (function () {
    function Wmv32(elementRef) {
        this.elementRef = elementRef;
    }
    Wmv32.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;
            Wmv32.titleIdCounter++;
            title.setAttribute("id", "wmv32-" + Wmv32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "wmv32-" + Wmv32.titleIdCounter);
        }
    };
    Wmv32.titleIdCounter = 0;
    Wmv32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-wmv32",
                    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 9l-2 13-2-13h-2l2.52 14h2.96L31 9h-2zM19 9l-1.52 5-.48 1.98-.46-1.98L15 9h-2v14h2v-8l-.16-2 .58 2L17 19.63 18.58 15l.58-2-.16 2v8h2V9h-2zM9.2 9l-.34 8-.26 4.54L8.19 18l-.68-5.46H5.49L4.81 18l-.41 3.54L4.14 17 3.8 9H2l1 14h2.27l.76-4.93.46-4.07.01-.03.01.03.46 4.07.76 4.93H10l1-14H9.2z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Wmv32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Wmv32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Wmv32;
}());
export { Wmv32 };
var Wmv32Module = /** @class */ (function () {
    function Wmv32Module() {
    }
    Wmv32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Wmv32
                    ],
                    exports: [
                        Wmv32
                    ]
                },] },
    ];
    return Wmv32Module;
}());
export { Wmv32Module };
//# sourceMappingURL=32.js.map