import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var LogoYoutube20 = /** @class */ (function () {
    function LogoYoutube20(elementRef) {
        this.elementRef = elementRef;
    }
    LogoYoutube20.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;
            LogoYoutube20.titleIdCounter++;
            title.setAttribute("id", "logo-youtube20-" + LogoYoutube20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "logo-youtube20-" + LogoYoutube20.titleIdCounter);
        }
    };
    LogoYoutube20.titleIdCounter = 0;
    LogoYoutube20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-logo-youtube20",
                    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=\"M29.41 9.26a3.5 3.5 0 0 0-2.47-2.47C24.76 6.2 16 6.2 16 6.2s-8.76 0-10.94.59a3.5 3.5 0 0 0-2.47 2.47A36.13 36.13 0 0 0 2 16a36.13 36.13 0 0 0 .59 6.74 3.5 3.5 0 0 0 2.47 2.47c2.18.59 10.94.59 10.94.59s8.76 0 10.94-.59a3.5 3.5 0 0 0 2.47-2.47A36.13 36.13 0 0 0 30 16a36.13 36.13 0 0 0-.59-6.74zM13.2 20.2v-8.4l7.27 4.2z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    LogoYoutube20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    LogoYoutube20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return LogoYoutube20;
}());
export { LogoYoutube20 };
var LogoYoutube20Module = /** @class */ (function () {
    function LogoYoutube20Module() {
    }
    LogoYoutube20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        LogoYoutube20
                    ],
                    exports: [
                        LogoYoutube20
                    ]
                },] },
    ];
    return LogoYoutube20Module;
}());
export { LogoYoutube20Module };
//# sourceMappingURL=20.js.map