(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 Devices20 = /** @class */ (function () {
        function Devices20(elementRef) {
            this.elementRef = elementRef;
        }
        Devices20.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;
                Devices20.titleIdCounter++;
                title.setAttribute("id", "devices20-" + Devices20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "devices20-" + Devices20.titleIdCounter);
            }
        };
        Devices20.titleIdCounter = 0;
        Devices20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-devices20",
                        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=\"M10 30H4a2 2 0 0 1-2-2V16a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2zM4 16v12h6V16z\"></path><path d=\"M28 4H6a2 2 0 0 0-2 2v6h2V6h22v14H14v2h2v4h-2v2h9v-2h-5v-4h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Devices20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Devices20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Devices20;
    }());
    var Devices20Module = /** @class */ (function () {
        function Devices20Module() {
        }
        Devices20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Devices20
                        ],
                        exports: [
                            Devices20
                        ]
                    },] },
        ];
        return Devices20Module;
    }());

    exports.Devices20 = Devices20;
    exports.Devices20Module = Devices20Module;

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

})));
