(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 TextSelection24 = /** @class */ (function () {
        function TextSelection24(elementRef) {
            this.elementRef = elementRef;
        }
        TextSelection24.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;
                TextSelection24.titleIdCounter++;
                title.setAttribute("id", "text-selection24-" + TextSelection24.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "text-selection24-" + TextSelection24.titleIdCounter);
            }
        };
        TextSelection24.titleIdCounter = 0;
        TextSelection24.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-text-selection24",
                        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=\"M28 27h-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 3zm-7-6a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h5v-4zM13 7h3V5h-3a4 4 0 0 0-3 1.38A4 4 0 0 0 7 5H4v2h3a2 2 0 0 1 2 2v5H5v2h4v7a2 2 0 0 1-2 2H4v2h3a4 4 0 0 0 3-1.38A4 4 0 0 0 13 27h3v-2h-3a2 2 0 0 1-2-2v-7h4v-2h-4V9a2 2 0 0 1 2-2z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        TextSelection24.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        TextSelection24.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return TextSelection24;
    }());
    var TextSelection24Module = /** @class */ (function () {
        function TextSelection24Module() {
        }
        TextSelection24Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            TextSelection24
                        ],
                        exports: [
                            TextSelection24
                        ]
                    },] },
        ];
        return TextSelection24Module;
    }());

    exports.TextSelection24 = TextSelection24;
    exports.TextSelection24Module = TextSelection24Module;

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

})));
