import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var VideoChat32 = /** @class */ (function () {
    function VideoChat32(elementRef) {
        this.elementRef = elementRef;
    }
    VideoChat32.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 32,
            height: 32,
            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;
            VideoChat32.titleIdCounter++;
            title.setAttribute("id", "video-chat32-" + VideoChat32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "video-chat32-" + VideoChat32.titleIdCounter);
        }
    };
    VideoChat32.titleIdCounter = 0;
    VideoChat32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-video-chat32",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M8 12h9v2H8zm0 5h5v2H8z\"></path><path d=\"M21 26H4a2.002 2.002 0 0 1-2-2V8a2.002 2.002 0 0 1 2-2h17a2.002 2.002 0 0 1 2 2v4.057l5.419-3.87A1 1 0 0 1 30 9v14a1 1 0 0 1-1.581.814L23 19.944V24a2.002 2.002 0 0 1-2 2zM4 8v16.001L21 24v-6a1 1 0 0 1 1.581-.814L28 21.056V10.944l-5.419 3.87A1 1 0 0 1 21 14V8z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    VideoChat32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    VideoChat32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return VideoChat32;
}());
export { VideoChat32 };
var VideoChat32Module = /** @class */ (function () {
    function VideoChat32Module() {
    }
    VideoChat32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        VideoChat32
                    ],
                    exports: [
                        VideoChat32
                    ]
                },] },
    ];
    return VideoChat32Module;
}());
export { VideoChat32Module };
//# sourceMappingURL=32.js.map