import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var QOperationGauge32 = /** @class */ (function () {
    function QOperationGauge32(elementRef) {
        this.elementRef = elementRef;
    }
    QOperationGauge32.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;
            QOperationGauge32.titleIdCounter++;
            title.setAttribute("id", "q-operation-gauge32-" + QOperationGauge32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "q-operation-gauge32-" + QOperationGauge32.titleIdCounter);
        }
    };
    QOperationGauge32.titleIdCounter = 0;
    QOperationGauge32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-q-operation-gauge32",
                    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=\"M30 4h-6v2h3.75L24 10v2h6v-2h-3.62L30 6V4zM20 17.62L22.08 14l-1.73-1-2.18 3.76A12 12 0 0 0 2 28h2a10 10 0 0 1 13.16-9.48L14 24a2 2 0 1 0 2 2 2 2 0 0 0-.27-1L19 19.35A10 10 0 0 1 24 28h2a12 12 0 0 0-6-10.38z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    QOperationGauge32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    QOperationGauge32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return QOperationGauge32;
}());
export { QOperationGauge32 };
var QOperationGauge32Module = /** @class */ (function () {
    function QOperationGauge32Module() {
    }
    QOperationGauge32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        QOperationGauge32
                    ],
                    exports: [
                        QOperationGauge32
                    ]
                },] },
    ];
    return QOperationGauge32Module;
}());
export { QOperationGauge32Module };
//# sourceMappingURL=32.js.map