(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 TextLeading24 = /** @class */ (function () {
        function TextLeading24(elementRef) {
            this.elementRef = elementRef;
        }
        TextLeading24.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;
                TextLeading24.titleIdCounter++;
                title.setAttribute("id", "text-leading24-" + TextLeading24.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "text-leading24-" + TextLeading24.titleIdCounter);
            }
        };
        TextLeading24.titleIdCounter = 0;
        TextLeading24.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-text-leading24",
                        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=\"M14 13h16v2H14zm1 15h15v2H15zm10.85-1H28l-4.36-10h-2.28L17 27h2.15l.8-2h5.1zm-5.1-4l1.75-4.37L24.25 23zm5.1-11H28L23.64 2h-2.28L17 12h2.15l.8-2h5.1zm-5.1-4l1.75-4.37L24.25 8zM6 15.83l2.58 2.58L10 17l-4-4-4 4 1.41 1.42L6 15.83zm0 11.34l-2.58-2.58L2 26l4 4 4-4-1.41-1.42L6 27.17z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        TextLeading24.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        TextLeading24.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return TextLeading24;
    }());
    var TextLeading24Module = /** @class */ (function () {
        function TextLeading24Module() {
        }
        TextLeading24Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            TextLeading24
                        ],
                        exports: [
                            TextLeading24
                        ]
                    },] },
        ];
        return TextLeading24Module;
    }());

    exports.TextLeading24 = TextLeading24;
    exports.TextLeading24Module = TextLeading24Module;

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

})));
