(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 TextCreation24 = /** @class */ (function () {
        function TextCreation24(elementRef) {
            this.elementRef = elementRef;
        }
        TextCreation24.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;
                TextCreation24.titleIdCounter++;
                title.setAttribute("id", "text-creation24-" + TextCreation24.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "text-creation24-" + TextCreation24.titleIdCounter);
            }
        };
        TextCreation24.titleIdCounter = 0;
        TextCreation24.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-text-creation24",
                        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=\"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 */
        TextCreation24.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        TextCreation24.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return TextCreation24;
    }());
    var TextCreation24Module = /** @class */ (function () {
        function TextCreation24Module() {
        }
        TextCreation24Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            TextCreation24
                        ],
                        exports: [
                            TextCreation24
                        ]
                    },] },
        ];
        return TextCreation24Module;
    }());

    exports.TextCreation24 = TextCreation24;
    exports.TextCreation24Module = TextCreation24Module;

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

})));
