(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 WarningAlt20 = /** @class */ (function () {
        function WarningAlt20(elementRef) {
            this.elementRef = elementRef;
        }
        WarningAlt20.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;
                WarningAlt20.titleIdCounter++;
                title.setAttribute("id", "warning-alt20-" + WarningAlt20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "warning-alt20-" + WarningAlt20.titleIdCounter);
            }
        };
        WarningAlt20.titleIdCounter = 0;
        WarningAlt20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-warning-alt20",
                        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=\"M16 22a1.5 1.5 0 1 0 1.5 1.5A1.5 1.5 0 0 0 16 22zm-1-11h2v9h-2z\"></path><path d=\"M29 29H3a1 1 0 0 1-.89-1.46l13-25a1 1 0 0 1 1.78 0l13 25A1 1 0 0 1 29 29zM4.65 27h22.7L16 5.17z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        WarningAlt20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        WarningAlt20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return WarningAlt20;
    }());
    var WarningAlt20Module = /** @class */ (function () {
        function WarningAlt20Module() {
        }
        WarningAlt20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            WarningAlt20
                        ],
                        exports: [
                            WarningAlt20
                        ]
                    },] },
        ];
        return WarningAlt20Module;
    }());

    exports.WarningAlt20 = WarningAlt20;
    exports.WarningAlt20Module = WarningAlt20Module;

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

})));
