(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 Favorite20 = /** @class */ (function () {
        function Favorite20(elementRef) {
            this.elementRef = elementRef;
        }
        Favorite20.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.getAttributes({
                width: 20,
                height: 20,
                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;
                Favorite20.titleIdCounter++;
                title.setAttribute("id", "favorite20-" + Favorite20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "favorite20-" + Favorite20.titleIdCounter);
            }
        };
        Favorite20.titleIdCounter = 0;
        Favorite20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-favorite20",
                        template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M22.45 6a5.47 5.47 0 0 1 3.91 1.64 5.7 5.7 0 0 1 0 8L16 26.13 5.64 15.64a5.7 5.7 0 0 1 0-8 5.48 5.48 0 0 1 7.82 0l2.54 2.6 2.53-2.58A5.44 5.44 0 0 1 22.45 6m0-2a7.47 7.47 0 0 0-5.34 2.24L16 7.36l-1.11-1.12a7.49 7.49 0 0 0-10.68 0 7.72 7.72 0 0 0 0 10.82L16 29l11.79-11.94a7.72 7.72 0 0 0 0-10.82A7.49 7.49 0 0 0 22.45 4z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Favorite20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Favorite20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Favorite20;
    }());
    var Favorite20Module = /** @class */ (function () {
        function Favorite20Module() {
        }
        Favorite20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Favorite20
                        ],
                        exports: [
                            Favorite20
                        ]
                    },] },
        ];
        return Favorite20Module;
    }());

    exports.Favorite20 = Favorite20;
    exports.Favorite20Module = Favorite20Module;

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

})));
