import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ChartVennDiagram24 = /** @class */ (function () {
    function ChartVennDiagram24(elementRef) {
        this.elementRef = elementRef;
    }
    ChartVennDiagram24.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 24,
            height: 24,
            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;
            ChartVennDiagram24.titleIdCounter++;
            title.setAttribute("id", "chart-venn-diagram24-" + ChartVennDiagram24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "chart-venn-diagram24-" + ChartVennDiagram24.titleIdCounter);
        }
    };
    ChartVennDiagram24.titleIdCounter = 0;
    ChartVennDiagram24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-chart-venn-diagram24",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 32 32\" aria-hidden=\"true\"><path d=\"M20 6a9.92 9.92 0 0 0-4 .84A9.92 9.92 0 0 0 12 6a10 10 0 0 0 0 20 9.92 9.92 0 0 0 4-.84 9.92 9.92 0 0 0 4 .84 10 10 0 0 0 0-20zm-8 18a8 8 0 0 1 0-16 7.91 7.91 0 0 1 1.76.2 10 10 0 0 0 0 15.6A7.91 7.91 0 0 1 12 24zm8-8a8 8 0 0 1-4 6.92 8 8 0 0 1 0-13.84A8 8 0 0 1 20 16zm0 8a7.91 7.91 0 0 1-1.76-.2 10 10 0 0 0 0-15.6A7.91 7.91 0 0 1 20 8a8 8 0 0 1 0 16z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    ChartVennDiagram24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ChartVennDiagram24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ChartVennDiagram24;
}());
export { ChartVennDiagram24 };
var ChartVennDiagram24Module = /** @class */ (function () {
    function ChartVennDiagram24Module() {
    }
    ChartVennDiagram24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ChartVennDiagram24
                    ],
                    exports: [
                        ChartVennDiagram24
                    ]
                },] },
    ];
    return ChartVennDiagram24Module;
}());
export { ChartVennDiagram24Module };
//# sourceMappingURL=24.js.map