(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 ErrorFilled20 = /** @class */ (function () {
        function ErrorFilled20(elementRef) {
            this.elementRef = elementRef;
        }
        ErrorFilled20.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.getAttributes({
                width: 20,
                height: 20,
                viewBox: "0 0 20 20",
                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;
                ErrorFilled20.titleIdCounter++;
                title.setAttribute("id", "error-filled20-" + ErrorFilled20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "error-filled20-" + ErrorFilled20.titleIdCounter);
            }
        };
        ErrorFilled20.titleIdCounter = 0;
        ErrorFilled20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-error-filled20",
                        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 20 20\" aria-hidden=\"true\"><path d=\"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm3.5 13.5l-8-8 1-1 8 8-1 1z\"></path><path d=\"M13.5 14.5l-8-8 1-1 8 8-1 1z\" data-icon-path=\"inner-path\" opacity=\"0\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        ErrorFilled20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        ErrorFilled20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return ErrorFilled20;
    }());
    var ErrorFilled20Module = /** @class */ (function () {
        function ErrorFilled20Module() {
        }
        ErrorFilled20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            ErrorFilled20
                        ],
                        exports: [
                            ErrorFilled20
                        ]
                    },] },
        ];
        return ErrorFilled20Module;
    }());

    exports.ErrorFilled20 = ErrorFilled20;
    exports.ErrorFilled20Module = ErrorFilled20Module;

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

})));
