(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 Cognitive32 = /** @class */ (function () {
        function Cognitive32(elementRef) {
            this.elementRef = elementRef;
        }
        Cognitive32.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.getAttributes({
                width: 32,
                height: 32,
                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;
                Cognitive32.titleIdCounter++;
                title.setAttribute("id", "cognitive32-" + Cognitive32.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "cognitive32-" + Cognitive32.titleIdCounter);
            }
        };
        Cognitive32.titleIdCounter = 0;
        Cognitive32.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-cognitive32",
                        template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M30 13A11 11 0 0 0 19 2h-8a9 9 0 0 0-9 9v3a5 5 0 0 0 5 5h1.1a5 5 0 0 0 4.9 4h1.38l4 7 1.73-1-4-6.89A2 2 0 0 0 14.38 21H13a3 3 0 0 1 0-6h1v-2h-1a5 5 0 0 0-4.9 4H7a3 3 0 0 1-3-3v-2h2a3 3 0 0 0 3-3V8H7v1a1 1 0 0 1-1 1H4.08A7 7 0 0 1 11 4h6v2a1 1 0 0 1-1 1h-2v2h2a3 3 0 0 0 3-3V4a9 9 0 0 1 8.05 5H26a3 3 0 0 0-3 3v1h2v-1a1 1 0 0 1 1-1h1.77a8.76 8.76 0 0 1 .23 2v1a5 5 0 0 1-5 5h-3v2h3a7 7 0 0 0 3-.68V21a3 3 0 0 1-3 3h-1v2h1a5 5 0 0 0 5-5v-2.11A7 7 0 0 0 30 14z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Cognitive32.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Cognitive32.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Cognitive32;
    }());
    var Cognitive32Module = /** @class */ (function () {
        function Cognitive32Module() {
        }
        Cognitive32Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Cognitive32
                        ],
                        exports: [
                            Cognitive32
                        ]
                    },] },
        ];
        return Cognitive32Module;
    }());

    exports.Cognitive32 = Cognitive32;
    exports.Cognitive32Module = Cognitive32Module;

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

})));
