import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var DataSet24 = /** @class */ (function () {
    function DataSet24(elementRef) {
        this.elementRef = elementRef;
    }
    DataSet24.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;
            DataSet24.titleIdCounter++;
            title.setAttribute("id", "data-set24-" + DataSet24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "data-set24-" + DataSet24.titleIdCounter);
        }
    };
    DataSet24.titleIdCounter = 0;
    DataSet24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-data-set24",
                    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=\"M25 13V4h-2v2h-3v2h3v5h-3v2h8v-2h-3zM8.5 6A3.5 3.5 0 1 1 5 9.5 3.5 3.5 0 0 1 8.5 6m0-2A5.5 5.5 0 1 0 14 9.5 5.5 5.5 0 0 0 8.5 4zm0 16A3.5 3.5 0 1 1 5 23.5 3.5 3.5 0 0 1 8.5 20m0-2a5.5 5.5 0 1 0 5.5 5.5A5.5 5.5 0 0 0 8.5 18zm15 2a3.5 3.5 0 1 1-3.5 3.5 3.5 3.5 0 0 1 3.5-3.5m0-2a5.5 5.5 0 1 0 5.5 5.5 5.5 5.5 0 0 0-5.5-5.5z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    DataSet24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    DataSet24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return DataSet24;
}());
export { DataSet24 };
var DataSet24Module = /** @class */ (function () {
    function DataSet24Module() {
    }
    DataSet24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        DataSet24
                    ],
                    exports: [
                        DataSet24
                    ]
                },] },
    ];
    return DataSet24Module;
}());
export { DataSet24Module };
//# sourceMappingURL=24.js.map