import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var LogoLivestream20 = /** @class */ (function () {
    function LogoLivestream20(elementRef) {
        this.elementRef = elementRef;
    }
    LogoLivestream20.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;
            LogoLivestream20.titleIdCounter++;
            title.setAttribute("id", "logo-livestream20-" + LogoLivestream20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "logo-livestream20-" + LogoLivestream20.titleIdCounter);
        }
    };
    LogoLivestream20.titleIdCounter = 0;
    LogoLivestream20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-logo-livestream20",
                    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=\"M22.49 23.71h-7.54a3.12 3.12 0 0 1-2.41-1A14.91 14.91 0 0 1 10 18.88c-1.3-2.6-2.54-5.22-3.82-7.82-.39-.8-.82-1.56-1.28-2.32A7.84 7.84 0 0 0 2 5.6h3.57a45.63 45.63 0 0 1 7 .61 8.09 8.09 0 0 1 6.34 5.09 48.51 48.51 0 0 1 2.17 7.36 26 26 0 0 0 1.41 5.05zm5.61 2.67a2.93 2.93 0 0 1-2.74-2.64 42.08 42.08 0 0 1-.14-4.9 48 48 0 0 0-.61-7.58 3.75 3.75 0 0 0-.83-2h2.65c.54 0 .73.37.89.78a12.1 12.1 0 0 1 .68 3.24c.29 2.72.31 5.45.33 8.18a10.94 10.94 0 0 0 0 1.15c.09.78.4 1.1 1.17 1.08.5 0 .5-.06.5-.06v2.69a8.62 8.62 0 0 1-1.9.06z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    LogoLivestream20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    LogoLivestream20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return LogoLivestream20;
}());
export { LogoLivestream20 };
var LogoLivestream20Module = /** @class */ (function () {
    function LogoLivestream20Module() {
    }
    LogoLivestream20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        LogoLivestream20
                    ],
                    exports: [
                        LogoLivestream20
                    ]
                },] },
    ];
    return LogoLivestream20Module;
}());
export { LogoLivestream20Module };
//# sourceMappingURL=20.js.map