(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 AppSwitcher20 = /** @class */ (function () {
        function AppSwitcher20(elementRef) {
            this.elementRef = elementRef;
        }
        AppSwitcher20.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.getAttributes({
                width: 20,
                height: 20,
                viewBox: "0 0 20 20",
                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;
                AppSwitcher20.titleIdCounter++;
                title.setAttribute("id", "app-switcher20-" + AppSwitcher20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "app-switcher20-" + AppSwitcher20.titleIdCounter);
            }
        };
        AppSwitcher20.titleIdCounter = 0;
        AppSwitcher20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-app-switcher20",
                        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 20 20\" aria-hidden=\"true\"><path d=\"M15.5 15.5H18V18h-2.5zm-6.75 0h2.5V18h-2.5zM2 15.5h2.5V18H2zm13.5-6.75H18v2.5h-2.5zm-6.75 0h2.5v2.5h-2.5zM2 8.75h2.5v2.5H2zM15.5 2H18v2.5h-2.5zM8.75 2h2.5v2.5h-2.5zM2 2h2.5v2.5H2z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        AppSwitcher20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        AppSwitcher20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return AppSwitcher20;
    }());
    var AppSwitcher20Module = /** @class */ (function () {
        function AppSwitcher20Module() {
        }
        AppSwitcher20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            AppSwitcher20
                        ],
                        exports: [
                            AppSwitcher20
                        ]
                    },] },
        ];
        return AppSwitcher20Module;
    }());

    exports.AppSwitcher20 = AppSwitcher20;
    exports.AppSwitcher20Module = AppSwitcher20Module;

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

})));
