import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var TextFill24 = /** @class */ (function () {
    function TextFill24(elementRef) {
        this.elementRef = elementRef;
    }
    TextFill24.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = 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;
            TextFill24.titleIdCounter++;
            title.setAttribute("id", "text-fill24-" + TextFill24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "text-fill24-" + TextFill24.titleIdCounter);
        }
    };
    TextFill24.titleIdCounter = 0;
    TextFill24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-text-fill24",
                    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=\"M4 26h24v4H4z\"></path><path d=\"M26 14.54a1 1 0 0 0-.25-.69l-8.58-9.52A1.09 1.09 0 0 0 17 4.2V2h-2v3L4.32 14.74a1 1 0 0 0-.06 1.41l8.57 9.52a1 1 0 0 0 .69.33h.05a1 1 0 0 0 .68-.26L24 16.8V21a1 1 0 0 0 2 0v-6.46zm-12.35 9l-7.23-8L15 7.67V12h2V7.13l6.59 7.33z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    TextFill24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    TextFill24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return TextFill24;
}());
export { TextFill24 };
var TextFill24Module = /** @class */ (function () {
    function TextFill24Module() {
    }
    TextFill24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        TextFill24
                    ],
                    exports: [
                        TextFill24
                    ]
                },] },
    ];
    return TextFill24Module;
}());
export { TextFill24Module };
//# sourceMappingURL=24.js.map