import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var PlayOutline16 = /** @class */ (function () {
    function PlayOutline16(elementRef) {
        this.elementRef = elementRef;
    }
    PlayOutline16.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;
            PlayOutline16.titleIdCounter++;
            title.setAttribute("id", "play-outline16-" + PlayOutline16.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "play-outline16-" + PlayOutline16.titleIdCounter);
        }
    };
    PlayOutline16.titleIdCounter = 0;
    PlayOutline16.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-play-outline16",
                    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 2c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6 2.7-6 6-6m0-1C4.1 1 1 4.1 1 8s3.1 7 7 7 7-3.1 7-7-3.1-7-7-7z\"></path><path d=\"M6 11.5c-.1 0-.2 0-.3-.1-.2-.1-.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.2l-5.5 3c0 .1-.1.1-.2.1zm.5-5.7v4.3l4-2.2-4-2.1z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    PlayOutline16.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    PlayOutline16.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return PlayOutline16;
}());
export { PlayOutline16 };
var PlayOutline16Module = /** @class */ (function () {
    function PlayOutline16Module() {
    }
    PlayOutline16Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        PlayOutline16
                    ],
                    exports: [
                        PlayOutline16
                    ]
                },] },
    ];
    return PlayOutline16Module;
}());
export { PlayOutline16Module };
//# sourceMappingURL=16.js.map