import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var TextBold20 = /** @class */ (function () {
    function TextBold20(elementRef) {
        this.elementRef = elementRef;
    }
    TextBold20.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = 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;
            TextBold20.titleIdCounter++;
            title.setAttribute("id", "text-bold20-" + TextBold20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "text-bold20-" + TextBold20.titleIdCounter);
        }
    };
    TextBold20.titleIdCounter = 0;
    TextBold20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-text-bold20",
                    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=\"M18.25 25H9V7h8.5a5.25 5.25 0 0 1 4 8.65A5.25 5.25 0 0 1 18.25 25zM12 22h6.23a2.25 2.25 0 1 0 0-4.5H12zm0-7.5h5.5a2.25 2.25 0 1 0 0-4.5H12z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    TextBold20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    TextBold20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return TextBold20;
}());
export { TextBold20 };
var TextBold20Module = /** @class */ (function () {
    function TextBold20Module() {
    }
    TextBold20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        TextBold20
                    ],
                    exports: [
                        TextBold20
                    ]
                },] },
    ];
    return TextBold20Module;
}());
export { TextBold20Module };
//# sourceMappingURL=20.js.map