(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@carbon/icon-helpers')) :
    typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@carbon/icon-helpers'], factory) :
    (factory((global.CarbonIconsAngular = {}),global.ng.Core,global.CarbonIconHelpers));
}(this, (function (exports,core,iconHelpers) { 'use strict';

    var Star24 = /** @class */ (function () {
        function Star24(elementRef) {
            this.elementRef = elementRef;
        }
        Star24.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.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;
                Star24.titleIdCounter++;
                title.setAttribute("id", "star24-" + Star24.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "star24-" + Star24.titleIdCounter);
            }
        };
        Star24.titleIdCounter = 0;
        Star24.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-star24",
                        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 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 */
        Star24.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Star24.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Star24;
    }());
    var Star24Module = /** @class */ (function () {
        function Star24Module() {
        }
        Star24Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Star24
                        ],
                        exports: [
                            Star24
                        ]
                    },] },
        ];
        return Star24Module;
    }());

    exports.Star24 = Star24;
    exports.Star24Module = Star24Module;

    Object.defineProperty(exports, '__esModule', { value: true });

})));
