import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var DataReference32 = /** @class */ (function () {
    function DataReference32(elementRef) {
        this.elementRef = elementRef;
    }
    DataReference32.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;
            DataReference32.titleIdCounter++;
            title.setAttribute("id", "data-reference32-" + DataReference32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "data-reference32-" + DataReference32.titleIdCounter);
        }
    };
    DataReference32.titleIdCounter = 0;
    DataReference32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-data-reference32",
                    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=\"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 */
    DataReference32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    DataReference32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return DataReference32;
}());
export { DataReference32 };
var DataReference32Module = /** @class */ (function () {
    function DataReference32Module() {
    }
    DataReference32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        DataReference32
                    ],
                    exports: [
                        DataReference32
                    ]
                },] },
    ];
    return DataReference32Module;
}());
export { DataReference32Module };
//# sourceMappingURL=32.js.map