import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ThumbsUp32 = /** @class */ (function () {
    function ThumbsUp32(elementRef) {
        this.elementRef = elementRef;
    }
    ThumbsUp32.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;
            ThumbsUp32.titleIdCounter++;
            title.setAttribute("id", "thumbs-up32-" + ThumbsUp32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "thumbs-up32-" + ThumbsUp32.titleIdCounter);
        }
    };
    ThumbsUp32.titleIdCounter = 0;
    ThumbsUp32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-thumbs-up32",
                    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=\"M26 11h-6V6a3.64 3.64 0 0 0-3.24-4A3.22 3.22 0 0 0 16 2h-1.57A1.51 1.51 0 0 0 13 3.17v.12l-1 6.34L8.46 15H2v14h19c7.44 0 9-4.35 9-8v-6a3.64 3.64 0 0 0-3.24-4 3.22 3.22 0 0 0-.76 0zM8 27H4V17h4zm20-6c0 4.09-2.22 6-7 6H10V16.3l4-5.93.73-5.37.14-1H16c1.44 0 2 .56 2 2v7h8c1.44 0 2 .56 2 2z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    ThumbsUp32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ThumbsUp32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ThumbsUp32;
}());
export { ThumbsUp32 };
var ThumbsUp32Module = /** @class */ (function () {
    function ThumbsUp32Module() {
    }
    ThumbsUp32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ThumbsUp32
                    ],
                    exports: [
                        ThumbsUp32
                    ]
                },] },
    ];
    return ThumbsUp32Module;
}());
export { ThumbsUp32Module };
//# sourceMappingURL=32.js.map