import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WatsonHealth3DCurveManual32 = /** @class */ (function () {
    function WatsonHealth3DCurveManual32(elementRef) {
        this.elementRef = elementRef;
    }
    WatsonHealth3DCurveManual32.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;
            WatsonHealth3DCurveManual32.titleIdCounter++;
            title.setAttribute("id", "watson-health3-d-curve-manual32-" + WatsonHealth3DCurveManual32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "watson-health3-d-curve-manual32-" + WatsonHealth3DCurveManual32.titleIdCounter);
        }
    };
    WatsonHealth3DCurveManual32.titleIdCounter = 0;
    WatsonHealth3DCurveManual32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-watson-health3-d-curve-manual32",
                    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=\"M15 21a3 3 0 0 1-3 3h-.1a5 5 0 1 0 0 2h.1a5 5 0 0 0 5-5zm-8 7a3 3 0 1 1 3-3 3 3 0 0 1-3 3zm8-15h2v6h-2zM25 2a5 5 0 0 0-4.9 4H20a5 5 0 0 0-5 5h2a3 3 0 0 1 3-3h.1A5 5 0 1 0 25 2zm0 8a3 3 0 1 1 3-3 3 3 0 0 1-3 3z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    WatsonHealth3DCurveManual32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WatsonHealth3DCurveManual32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WatsonHealth3DCurveManual32;
}());
export { WatsonHealth3DCurveManual32 };
var WatsonHealth3DCurveManual32Module = /** @class */ (function () {
    function WatsonHealth3DCurveManual32Module() {
    }
    WatsonHealth3DCurveManual32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WatsonHealth3DCurveManual32
                    ],
                    exports: [
                        WatsonHealth3DCurveManual32
                    ]
                },] },
    ];
    return WatsonHealth3DCurveManual32Module;
}());
export { WatsonHealth3DCurveManual32Module };
//# sourceMappingURL=32.js.map