(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 Apps16 = /** @class */ (function () {
        function Apps16(elementRef) {
            this.elementRef = elementRef;
        }
        Apps16.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.getAttributes({
                width: 16,
                height: 16,
                viewBox: "0 0 16 16",
                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;
                Apps16.titleIdCounter++;
                title.setAttribute("id", "apps16-" + Apps16.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "apps16-" + Apps16.titleIdCounter);
            }
        };
        Apps16.titleIdCounter = 0;
        Apps16.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-apps16",
                        template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"M4 2v2H2V2h2zm1-1H1v4h4V1zm4 1v2H7V2h2zm1-1H6v4h4V1zm4 1v2h-2V2h2zm1-1h-4v4h4V1zM4 7v2H2V7h2zm1-1H1v4h4V6zm4 1v2H7V7h2zm1-1H6v4h4V6zm4 1v2h-2V7h2zm1-1h-4v4h4V6zM4 12v2H2v-2h2zm1-1H1v4h4v-4zm4 1v2H7v-2h2zm1-1H6v4h4v-4zm4 1v2h-2v-2h2zm1-1h-4v4h4v-4z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Apps16.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Apps16.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Apps16;
    }());
    var Apps16Module = /** @class */ (function () {
        function Apps16Module() {
        }
        Apps16Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Apps16
                        ],
                        exports: [
                            Apps16
                        ]
                    },] },
        ];
        return Apps16Module;
    }());

    exports.Apps16 = Apps16;
    exports.Apps16Module = Apps16Module;

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

})));
