(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 TextScale32 = /** @class */ (function () {
        function TextScale32(elementRef) {
            this.elementRef = elementRef;
        }
        TextScale32.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.getAttributes({
                width: 32,
                height: 32,
                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;
                TextScale32.titleIdCounter++;
                title.setAttribute("id", "text-scale32-" + TextScale32.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "text-scale32-" + TextScale32.titleIdCounter);
            }
        };
        TextScale32.titleIdCounter = 0;
        TextScale32.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-text-scale32",
                        template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"transform: translate3d(0, 0, 0);\" xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M9 27V15h5v-2H2v2h5v12h2z\"></path><path d=\"M21 27V7h9V5H10v2h9v20h2z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        TextScale32.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        TextScale32.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return TextScale32;
    }());
    var TextScale32Module = /** @class */ (function () {
        function TextScale32Module() {
        }
        TextScale32Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            TextScale32
                        ],
                        exports: [
                            TextScale32
                        ]
                    },] },
        ];
        return TextScale32Module;
    }());

    exports.TextScale32 = TextScale32;
    exports.TextScale32Module = TextScale32Module;

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

})));
