(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 PillsSubtract20 = /** @class */ (function () {
        function PillsSubtract20(elementRef) {
            this.elementRef = elementRef;
        }
        PillsSubtract20.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;
                PillsSubtract20.titleIdCounter++;
                title.setAttribute("id", "pills-subtract20-" + PillsSubtract20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "pills-subtract20-" + PillsSubtract20.titleIdCounter);
            }
        };
        PillsSubtract20.titleIdCounter = 0;
        PillsSubtract20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-pills-subtract20",
                        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.986 6.986 0 0 0 12.276 4.577A7.997 7.997 0 1 0 22 14zM11 4a5.006 5.006 0 0 1 5 5v6H6V9a5.006 5.006 0 0 1 5-5zm0 24a5.006 5.006 0 0 1-5-5v-6h9.765a7.956 7.956 0 0 0-.724 8.932A5.015 5.015 0 0 1 11 28zm11 0a6 6 0 1 1 6-6 6.007 6.007 0 0 1-6 6z\"></path><path d=\"M19 21h6v2h-6z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        PillsSubtract20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        PillsSubtract20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return PillsSubtract20;
    }());
    var PillsSubtract20Module = /** @class */ (function () {
        function PillsSubtract20Module() {
        }
        PillsSubtract20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            PillsSubtract20
                        ],
                        exports: [
                            PillsSubtract20
                        ]
                    },] },
        ];
        return PillsSubtract20Module;
    }());

    exports.PillsSubtract20 = PillsSubtract20;
    exports.PillsSubtract20Module = PillsSubtract20Module;

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

})));
