import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var StarFilled24 = /** @class */ (function () {
    function StarFilled24(elementRef) {
        this.elementRef = elementRef;
    }
    StarFilled24.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 24,
            height: 24,
            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;
            StarFilled24.titleIdCounter++;
            title.setAttribute("id", "star-filled24-" + StarFilled24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "star-filled24-" + StarFilled24.titleIdCounter);
        }
    };
    StarFilled24.titleIdCounter = 0;
    StarFilled24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-star-filled24",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M16 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 */
    StarFilled24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    StarFilled24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return StarFilled24;
}());
export { StarFilled24 };
var StarFilled24Module = /** @class */ (function () {
    function StarFilled24Module() {
    }
    StarFilled24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        StarFilled24
                    ],
                    exports: [
                        StarFilled24
                    ]
                },] },
    ];
    return StarFilled24Module;
}());
export { StarFilled24Module };
//# sourceMappingURL=24.js.map