(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 Favorite16 = /** @class */ (function () {
        function Favorite16(elementRef) {
            this.elementRef = elementRef;
        }
        Favorite16.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.getAttributes({
                width: 16,
                height: 16,
                viewBox: "0 0 16 16",
                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;
                Favorite16.titleIdCounter++;
                title.setAttribute("id", "favorite16-" + Favorite16.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "favorite16-" + Favorite16.titleIdCounter);
            }
        };
        Favorite16.titleIdCounter = 0;
        Favorite16.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-favorite16",
                        template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"M11.2 3c.7 0 1.4.3 2 .8 1.1 1.1 1.1 2.9 0 4L8 13.1 2.8 7.8c-1.1-1.1-1.1-2.9 0-4s2.8-1.1 3.9 0L8 5.1l1.3-1.3c.5-.5 1.2-.8 1.9-.8m0-1c-1 0-2 .4-2.7 1.1l-.5.6-.6-.6C6 1.6 3.6 1.6 2.1 3.1S.6 7 2.1 8.5l5.9 6 5.9-6c1.5-1.5 1.5-3.9 0-5.4-.7-.7-1.7-1.1-2.7-1.1z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Favorite16.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Favorite16.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Favorite16;
    }());
    var Favorite16Module = /** @class */ (function () {
        function Favorite16Module() {
        }
        Favorite16Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Favorite16
                        ],
                        exports: [
                            Favorite16
                        ]
                    },] },
        ];
        return Favorite16Module;
    }());

    exports.Favorite16 = Favorite16;
    exports.Favorite16Module = Favorite16Module;

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

})));
