(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 Bolt20 = /** @class */ (function () {
        function Bolt20(elementRef) {
            this.elementRef = elementRef;
        }
        Bolt20.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;
                Bolt20.titleIdCounter++;
                title.setAttribute("id", "bolt20-" + Bolt20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "bolt20-" + Bolt20.titleIdCounter);
            }
        };
        Bolt20.titleIdCounter = 0;
        Bolt20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-bolt20",
                        template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"transform: translate3d(0, 0, 0);\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M19 30a1 1 0 0 1-.79-.39l-13-17a1 1 0 0 1-.11-1A1 1 0 0 1 6 11h4.75L9 3.22a1 1 0 0 1 .2-.85A1 1 0 0 1 10 2h10a1 1 0 0 1 1 .77l3 13A1 1 0 0 1 23 17h-4.83L20 28.85a1 1 0 0 1-.6 1.07 1.09 1.09 0 0 1-.4.08zM8 13l9.4 12.28-1.4-9.13A1 1 0 0 1 17 15h4.74L19.2 4h-7.95L13 11.78a1 1 0 0 1-.2.85 1 1 0 0 1-.8.37z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Bolt20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Bolt20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Bolt20;
    }());
    var Bolt20Module = /** @class */ (function () {
        function Bolt20Module() {
        }
        Bolt20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Bolt20
                        ],
                        exports: [
                            Bolt20
                        ]
                    },] },
        ];
        return Bolt20Module;
    }());

    exports.Bolt20 = Bolt20;
    exports.Bolt20Module = Bolt20Module;

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

})));
