(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 TextHighlight20 = /** @class */ (function () {
        function TextHighlight20(elementRef) {
            this.elementRef = elementRef;
        }
        TextHighlight20.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;
                TextHighlight20.titleIdCounter++;
                title.setAttribute("id", "text-highlight20-" + TextHighlight20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "text-highlight20-" + TextHighlight20.titleIdCounter);
            }
        };
        TextHighlight20.titleIdCounter = 0;
        TextHighlight20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-text-highlight20",
                        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=\"M12 15H5a3 3 0 0 1-3-3v-2a3 3 0 0 1 3-3h5V5a1 1 0 0 0-1-1H3V2h6a3 3 0 0 1 3 3zM5 9a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h5V9zm15 14v2a1 1 0 0 0 1 1h5v-4h-5a1 1 0 0 0-1 1z\"></path><path d=\"M2 30h28V2zm26-2h-7a3 3 0 0 1-3-3v-2a3 3 0 0 1 3-3h5v-2a1 1 0 0 0-1-1h-6v-2h6a3 3 0 0 1 3 3z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        TextHighlight20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        TextHighlight20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return TextHighlight20;
    }());
    var TextHighlight20Module = /** @class */ (function () {
        function TextHighlight20Module() {
        }
        TextHighlight20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            TextHighlight20
                        ],
                        exports: [
                            TextHighlight20
                        ]
                    },] },
        ];
        return TextHighlight20Module;
    }());

    exports.TextHighlight20 = TextHighlight20;
    exports.TextHighlight20Module = TextHighlight20Module;

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

})));
