(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 Pills20 = /** @class */ (function () {
        function Pills20(elementRef) {
            this.elementRef = elementRef;
        }
        Pills20.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;
                Pills20.titleIdCounter++;
                title.setAttribute("id", "pills20-" + Pills20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "pills20-" + Pills20.titleIdCounter);
            }
        };
        Pills20.titleIdCounter = 0;
        Pills20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-pills20",
                        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 14a7.94 7.94 0 0 0-4 1.083V9A7 7 0 0 0 4 9v14a6.999 6.999 0 0 0 12.286 4.588A7.997 7.997 0 1 0 22 14zm0 2a6.005 6.005 0 0 1 5.91 5H16.09A6.005 6.005 0 0 1 22 16zM6 9a5 5 0 0 1 10 0v6H6zm5 19a5.006 5.006 0 0 1-5-5v-6h9.765a7.957 7.957 0 0 0-.724 8.931A4.989 4.989 0 0 1 11 28zm11 0a6.005 6.005 0 0 1-5.91-5h11.82A6.005 6.005 0 0 1 22 28z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Pills20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Pills20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Pills20;
    }());
    var Pills20Module = /** @class */ (function () {
        function Pills20Module() {
        }
        Pills20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Pills20
                        ],
                        exports: [
                            Pills20
                        ]
                    },] },
        ];
        return Pills20Module;
    }());

    exports.Pills20 = Pills20;
    exports.Pills20Module = Pills20Module;

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

})));
