(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 Erase24 = /** @class */ (function () {
        function Erase24(elementRef) {
            this.elementRef = elementRef;
        }
        Erase24.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;
                Erase24.titleIdCounter++;
                title.setAttribute("id", "erase24-" + Erase24.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "erase24-" + Erase24.titleIdCounter);
            }
        };
        Erase24.titleIdCounter = 0;
        Erase24.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-erase24",
                        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=\"M7 27h23v2H7zm20.38-16.49l-7.93-7.92a2 2 0 0 0-2.83 0l-14 14a2 2 0 0 0 0 2.83L7.13 24h9.59l10.66-10.66a2 2 0 0 0 0-2.83zM15.89 22H8l-4-4 6.31-6.31 7.93 7.92zm3.76-3.76l-7.92-7.93L18 4l8 7.93z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Erase24.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Erase24.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Erase24;
    }());
    var Erase24Module = /** @class */ (function () {
        function Erase24Module() {
        }
        Erase24Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Erase24
                        ],
                        exports: [
                            Erase24
                        ]
                    },] },
        ];
        return Erase24Module;
    }());

    exports.Erase24 = Erase24;
    exports.Erase24Module = Erase24Module;

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

})));
