(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 Bus32 = /** @class */ (function () {
        function Bus32(elementRef) {
            this.elementRef = elementRef;
        }
        Bus32.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;
                Bus32.titleIdCounter++;
                title.setAttribute("id", "bus32-" + Bus32.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "bus32-" + Bus32.titleIdCounter);
            }
        };
        Bus32.titleIdCounter = 0;
        Bus32.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-bus32",
                        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=\"M3 8h2v6H3zm24 0h2v6h-2zM10 19h2v2h-2zm10 0h2v2h-2z\"></path><path d=\"M21 2H11a5 5 0 0 0-5 5v16a2 2 0 0 0 2 2v3h2v-3h12v3h2v-3a2 2 0 0 0 2-2V7a5 5 0 0 0-5-5zm3 6v7H8V8zM11 4h10a3 3 0 0 1 2.82 2H8.18A3 3 0 0 1 11 4zM8 23v-6h16v6z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Bus32.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Bus32.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Bus32;
    }());
    var Bus32Module = /** @class */ (function () {
        function Bus32Module() {
        }
        Bus32Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Bus32
                        ],
                        exports: [
                            Bus32
                        ]
                    },] },
        ];
        return Bus32Module;
    }());

    exports.Bus32 = Bus32;
    exports.Bus32Module = Bus32Module;

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

})));
