import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Star32 = /** @class */ (function () {
    function Star32(elementRef) {
        this.elementRef = elementRef;
    }
    Star32.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;
            Star32.titleIdCounter++;
            title.setAttribute("id", "star32-" + Star32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "star32-" + Star32.titleIdCounter);
        }
    };
    Star32.titleIdCounter = 0;
    Star32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-star32",
                    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=\"M16 6.52l2.76 5.58.46 1 1 .15 6.16.89-4.38 4.3-.75.73.18 1 1.05 6.13-5.51-2.89L16 23l-.93.49-5.51 2.85 1-6.13.18-1-.74-.77-4.42-4.35 6.16-.89 1-.15.46-1L16 6.52M16 2l-4.55 9.22-10.17 1.47 7.36 7.18L6.9 30l9.1-4.78L25.1 30l-1.74-10.13 7.36-7.17-10.17-1.48z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Star32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Star32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Star32;
}());
export { Star32 };
var Star32Module = /** @class */ (function () {
    function Star32Module() {
    }
    Star32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Star32
                    ],
                    exports: [
                        Star32
                    ]
                },] },
    ];
    return Star32Module;
}());
export { Star32Module };
//# sourceMappingURL=32.js.map