import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var GameConsole20 = /** @class */ (function () {
    function GameConsole20(elementRef) {
        this.elementRef = elementRef;
    }
    GameConsole20.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;
            GameConsole20.titleIdCounter++;
            title.setAttribute("id", "game-console20-" + GameConsole20.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "game-console20-" + GameConsole20.titleIdCounter);
        }
    };
    GameConsole20.titleIdCounter = 0;
    GameConsole20.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-game-console20",
                    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=\"M7.51 26a5.48 5.48 0 0 1-1.44-.19A5.6 5.6 0 0 1 2.19 19l2.33-8.84a5.54 5.54 0 0 1 2.59-3.43 5.43 5.43 0 0 1 4.15-.54A5.52 5.52 0 0 1 14.7 9h2.6a5.49 5.49 0 0 1 3.44-2.81 5.43 5.43 0 0 1 4.15.54 5.57 5.57 0 0 1 2.59 3.41L29.81 19a5.6 5.6 0 0 1-3.89 6.83 5.43 5.43 0 0 1-4.15-.54 5.54 5.54 0 0 1-2.59-3.41L19 21h-6l-.23.86a5.54 5.54 0 0 1-2.59 3.41 5.46 5.46 0 0 1-2.67.73zM9.83 8a3.49 3.49 0 0 0-1.72.46 3.6 3.6 0 0 0-1.66 2.19l-2.33 8.84a3.6 3.6 0 0 0 2.48 4.39 3.43 3.43 0 0 0 2.62-.34 3.54 3.54 0 0 0 1.66-2.19L11.5 19h9l.61 2.35a3.58 3.58 0 0 0 1.66 2.19 3.46 3.46 0 0 0 2.63.34 3.58 3.58 0 0 0 2.47-4.39l-2.33-8.84a3.55 3.55 0 0 0-1.65-2.19 3.46 3.46 0 0 0-2.63-.34 3.55 3.55 0 0 0-2.37 2.22l-.24.66h-5.3l-.24-.66a3.56 3.56 0 0 0-2.38-2.22 3.48 3.48 0 0 0-.9-.12z\"></path><path d=\"M10 16a2 2 0 1 1 2-2 2 2 0 0 1-2 2zm0-2z\"></path><circle cx=\"22\" cy=\"12\" r=\"1\"></circle><circle cx=\"22\" cy=\"16\" r=\"1\"></circle><circle cx=\"20\" cy=\"14\" r=\"1\"></circle><circle cx=\"24\" cy=\"14\" r=\"1\"></circle></svg>"
                },] },
    ];
    /** @nocollapse */
    GameConsole20.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    GameConsole20.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return GameConsole20;
}());
export { GameConsole20 };
var GameConsole20Module = /** @class */ (function () {
    function GameConsole20Module() {
    }
    GameConsole20Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        GameConsole20
                    ],
                    exports: [
                        GameConsole20
                    ]
                },] },
    ];
    return GameConsole20Module;
}());
export { GameConsole20Module };
//# sourceMappingURL=20.js.map