(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 Xls24 = /** @class */ (function () {
        function Xls24(elementRef) {
            this.elementRef = elementRef;
        }
        Xls24.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;
                Xls24.titleIdCounter++;
                title.setAttribute("id", "xls24-" + Xls24.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "xls24-" + Xls24.titleIdCounter);
            }
        };
        Xls24.titleIdCounter = 0;
        Xls24.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-xls24",
                        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=\"M28 23h-6v-2h6v-4h-4a2.002 2.002 0 0 1-2-2v-4a2.002 2.002 0 0 1 2-2h6v2h-6v4h4a2.002 2.002 0 0 1 2 2v4a2.002 2.002 0 0 1-2 2zm-14-2V9h-2v14h8v-2h-6zM10 9H8l-2 6-2-6H2l2.752 7L2 23h2l2-6 2 6h2l-2.755-7L10 9z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        Xls24.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        Xls24.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return Xls24;
    }());
    var Xls24Module = /** @class */ (function () {
        function Xls24Module() {
        }
        Xls24Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            Xls24
                        ],
                        exports: [
                            Xls24
                        ]
                    },] },
        ];
        return Xls24Module;
    }());

    exports.Xls24 = Xls24;
    exports.Xls24Module = Xls24Module;

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

})));
