import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var DataReference24 = /** @class */ (function () {
    function DataReference24(elementRef) {
        this.elementRef = elementRef;
    }
    DataReference24.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;
            DataReference24.titleIdCounter++;
            title.setAttribute("id", "data-reference24-" + DataReference24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "data-reference24-" + DataReference24.titleIdCounter);
        }
    };
    DataReference24.titleIdCounter = 0;
    DataReference24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-data-reference24",
                    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.504 3.504 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 4zm15 16a3.5 3.5 0 1 1-3.5 3.5 3.504 3.504 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.5zM6 19v2h3.586L4 26.586 5.414 28 11 22.414V26h2v-7H6z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    DataReference24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    DataReference24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return DataReference24;
}());
export { DataReference24 };
var DataReference24Module = /** @class */ (function () {
    function DataReference24Module() {
    }
    DataReference24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        DataReference24
                    ],
                    exports: [
                        DataReference24
                    ]
                },] },
    ];
    return DataReference24Module;
}());
export { DataReference24Module };
//# sourceMappingURL=24.js.map