(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 WrapText20 = /** @class */ (function () {
        function WrapText20(elementRef) {
            this.elementRef = elementRef;
        }
        WrapText20.prototype.ngAfterViewInit = function () {
            var svg = this.elementRef.nativeElement.querySelector("svg");
            var attributes = iconHelpers.getAttributes({
                width: 20,
                height: 20,
                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;
                WrapText20.titleIdCounter++;
                title.setAttribute("id", "wrap-text20-" + WrapText20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "wrap-text20-" + WrapText20.titleIdCounter);
            }
        };
        WrapText20.titleIdCounter = 0;
        WrapText20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-wrap-text20",
                        template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M4 23h8v2H4zm26-3.5a5.5 5.5 0 0 0-5.48-5.5H4v2h20.5a3.5 3.5 0 0 1 0 7H19l2.41-2.59L20 19l-5 5 5 5 1.41-1.41L19 25h5.53A5.5 5.5 0 0 0 30 19.5zM4 5h24v2H4z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        WrapText20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        WrapText20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return WrapText20;
    }());
    var WrapText20Module = /** @class */ (function () {
        function WrapText20Module() {
        }
        WrapText20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            WrapText20
                        ],
                        exports: [
                            WrapText20
                        ]
                    },] },
        ];
        return WrapText20Module;
    }());

    exports.WrapText20 = WrapText20;
    exports.WrapText20Module = WrapText20Module;

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

})));
