import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var LogoTwitter24 = /** @class */ (function () {
    function LogoTwitter24(elementRef) {
        this.elementRef = elementRef;
    }
    LogoTwitter24.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;
            LogoTwitter24.titleIdCounter++;
            title.setAttribute("id", "logo-twitter24-" + LogoTwitter24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "logo-twitter24-" + LogoTwitter24.titleIdCounter);
        }
    };
    LogoTwitter24.titleIdCounter = 0;
    LogoTwitter24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-logo-twitter24",
                    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=\"M11.92 24.94A12.76 12.76 0 0 0 24.76 12.1v-.59A9.4 9.4 0 0 0 27 9.18a9.31 9.31 0 0 1-2.59.71 4.56 4.56 0 0 0 2-2.5 8.89 8.89 0 0 1-2.86 1.1 4.52 4.52 0 0 0-7.7 4.11 12.79 12.79 0 0 1-9.3-4.71 4.51 4.51 0 0 0 1.4 6 4.47 4.47 0 0 1-2-.56v.05a4.53 4.53 0 0 0 3.55 4.45 4.53 4.53 0 0 1-2 .08A4.51 4.51 0 0 0 11.68 21a9.05 9.05 0 0 1-5.61 2A9.77 9.77 0 0 1 5 22.91a12.77 12.77 0 0 0 6.92 2\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    LogoTwitter24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    LogoTwitter24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return LogoTwitter24;
}());
export { LogoTwitter24 };
var LogoTwitter24Module = /** @class */ (function () {
    function LogoTwitter24Module() {
    }
    LogoTwitter24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        LogoTwitter24
                    ],
                    exports: [
                        LogoTwitter24
                    ]
                },] },
    ];
    return LogoTwitter24Module;
}());
export { LogoTwitter24Module };
//# sourceMappingURL=24.js.map