import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var PlayFilled16 = /** @class */ (function () {
    function PlayFilled16(elementRef) {
        this.elementRef = elementRef;
    }
    PlayFilled16.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 16,
            height: 16,
            viewBox: "0 0 16 16",
            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;
            PlayFilled16.titleIdCounter++;
            title.setAttribute("id", "play-filled16-" + PlayFilled16.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "play-filled16-" + PlayFilled16.titleIdCounter);
        }
    };
    PlayFilled16.titleIdCounter = 0;
    PlayFilled16.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-play-filled16",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"M8 1C4.1 1 1 4.1 1 8s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7zm3.7 7.4l-5.5 3c-.2.1-.3.1-.5 0s-.2-.3-.2-.4V5c0-.2.1-.3.2-.4.2-.1.3-.1.5 0l5.5 3c.3.1.4.4.2.6 0 .1-.1.2-.2.2z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    PlayFilled16.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    PlayFilled16.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return PlayFilled16;
}());
export { PlayFilled16 };
var PlayFilled16Module = /** @class */ (function () {
    function PlayFilled16Module() {
    }
    PlayFilled16Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        PlayFilled16
                    ],
                    exports: [
                        PlayFilled16
                    ]
                },] },
    ];
    return PlayFilled16Module;
}());
export { PlayFilled16Module };
//# sourceMappingURL=16.js.map