(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 Flash24 = /** @class */ (function () {
        function Flash24(elementRef) {
            this.elementRef = elementRef;
        }
        Flash24.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.getAttributes({
                width: 24,
                height: 24,
                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;
                Flash24.titleIdCounter++;
                title.setAttribute("id", "flash24-" + Flash24.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "flash24-" + Flash24.titleIdCounter);
            }
        };
        Flash24.titleIdCounter = 0;
        Flash24.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-flash24",
                        template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M11.61 29.92a1 1 0 0 1-.6-1.07L12.83 17H8a1 1 0 0 1-1-1.23l3-13A1 1 0 0 1 11 2h10a1 1 0 0 1 .78.37 1 1 0 0 1 .2.85L20.25 11H25a1 1 0 0 1 .9.56 1 1 0 0 1-.11 1l-13 17A1 1 0 0 1 12 30a1.09 1.09 0 0 1-.39-.08zM17.75 13l2-9H11.8L9.26 15h5.91l-1.59 10.28L23 13z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Flash24.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Flash24.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Flash24;
    }());
    var Flash24Module = /** @class */ (function () {
        function Flash24Module() {
        }
        Flash24Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Flash24
                        ],
                        exports: [
                            Flash24
                        ]
                    },] },
        ];
        return Flash24Module;
    }());

    exports.Flash24 = Flash24;
    exports.Flash24Module = Flash24Module;

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

})));
