(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 TextCreation32 = /** @class */ (function () {
        function TextCreation32(elementRef) {
            this.elementRef = elementRef;
        }
        TextCreation32.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;
                TextCreation32.titleIdCounter++;
                title.setAttribute("id", "text-creation32-" + TextCreation32.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "text-creation32-" + TextCreation32.titleIdCounter);
            }
        };
        TextCreation32.titleIdCounter = 0;
        TextCreation32.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-text-creation32",
                        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=\"M27 22.14V9.86A4 4 0 1 0 22.14 5H9.86A4 4 0 1 0 5 9.86v12.28A4 4 0 1 0 9.86 27h12.28A4 4 0 1 0 27 22.14zM26 4a2 2 0 1 1-2 2 2 2 0 0 1 2-2zM4 6a2 2 0 1 1 2 2 2 2 0 0 1-2-2zm2 22a2 2 0 1 1 2-2 2 2 0 0 1-2 2zm16.14-3H9.86A4 4 0 0 0 7 22.14V9.86A4 4 0 0 0 9.86 7h12.28A4 4 0 0 0 25 9.86v12.28A4 4 0 0 0 22.14 25zM26 28a2 2 0 1 1 2-2 2 2 0 0 1-2 2z\"></path><path d=\"M21 11H11v2h4v9h2v-9h4v-2z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        TextCreation32.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        TextCreation32.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return TextCreation32;
    }());
    var TextCreation32Module = /** @class */ (function () {
        function TextCreation32Module() {
        }
        TextCreation32Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            TextCreation32
                        ],
                        exports: [
                            TextCreation32
                        ]
                    },] },
        ];
        return TextCreation32Module;
    }());

    exports.TextCreation32 = TextCreation32;
    exports.TextCreation32Module = TextCreation32Module;

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

})));
