(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 Smell20 = /** @class */ (function () {
        function Smell20(elementRef) {
            this.elementRef = elementRef;
        }
        Smell20.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;
                Smell20.titleIdCounter++;
                title.setAttribute("id", "smell20-" + Smell20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "smell20-" + Smell20.titleIdCounter);
            }
        };
        Smell20.titleIdCounter = 0;
        Smell20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-smell20",
                        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 15v-5h-2v7h2a3 3 0 0 1 0 6h-1v-2h-2v2a3 3 0 0 1-6 0v-2h-2v2h-1a3 3 0 0 1 0-6h2V9a3 3 0 0 1 3-3h1V4h-1a5 5 0 0 0-5 5v6a5 5 0 0 0 0 10h1.42a5 5 0 0 0 9.16 0H22a5 5 0 0 0 0-10z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Smell20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Smell20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Smell20;
    }());
    var Smell20Module = /** @class */ (function () {
        function Smell20Module() {
        }
        Smell20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Smell20
                        ],
                        exports: [
                            Smell20
                        ]
                    },] },
        ];
        return Smell20Module;
    }());

    exports.Smell20 = Smell20;
    exports.Smell20Module = Smell20Module;

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

})));
