import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var WatsonMachineLearning32 = /** @class */ (function () {
    function WatsonMachineLearning32(elementRef) {
        this.elementRef = elementRef;
    }
    WatsonMachineLearning32.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;
            WatsonMachineLearning32.titleIdCounter++;
            title.setAttribute("id", "watson-machine-learning32-" + WatsonMachineLearning32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "watson-machine-learning32-" + WatsonMachineLearning32.titleIdCounter);
        }
    };
    WatsonMachineLearning32.titleIdCounter = 0;
    WatsonMachineLearning32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-watson-machine-learning32",
                    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=\"M22 26h-2v-8.24l-3.23 3.88a1 1 0 0 1-1.54 0L12 17.76V26h-2V15a1 1 0 0 1 .66-.94 1 1 0 0 1 1.11.3L16 19.44l4.23-5.08a1 1 0 0 1 1.11-.3A1 1 0 0 1 22 15zM4.16 14.65l-3-1.75a.76.76 0 1 0-.76 1.32l3 1.78a.76.76 0 1 0 .76-1.31zm4.13-4.13a.73.73 0 0 0 1 .27.75.75 0 0 0 .28-1l-1.74-3a.76.76 0 1 0-1.32.76zM16 9a.76.76 0 0 0 .76-.76V4.76a.76.76 0 1 0-1.52 0v3.49A.76.76 0 0 0 16 9zm6.68 1.79a.75.75 0 0 0 .37.11.76.76 0 0 0 .66-.38l1.75-3a.76.76 0 0 0-1.32-.76l-1.74 3a.75.75 0 0 0 .28 1.03zm9.22 2.39a.76.76 0 0 0-1-.28l-3 1.75a.76.76 0 0 0 .7 1.35l3-1.74a.77.77 0 0 0 .3-1.08z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    WatsonMachineLearning32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    WatsonMachineLearning32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return WatsonMachineLearning32;
}());
export { WatsonMachineLearning32 };
var WatsonMachineLearning32Module = /** @class */ (function () {
    function WatsonMachineLearning32Module() {
    }
    WatsonMachineLearning32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        WatsonMachineLearning32
                    ],
                    exports: [
                        WatsonMachineLearning32
                    ]
                },] },
    ];
    return WatsonMachineLearning32Module;
}());
export { WatsonMachineLearning32Module };
//# sourceMappingURL=32.js.map