import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Eyedropper32 = /** @class */ (function () {
    function Eyedropper32(elementRef) {
        this.elementRef = elementRef;
    }
    Eyedropper32.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;
            Eyedropper32.titleIdCounter++;
            title.setAttribute("id", "eyedropper32-" + Eyedropper32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "eyedropper32-" + Eyedropper32.titleIdCounter);
        }
    };
    Eyedropper32.titleIdCounter = 0;
    Eyedropper32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-eyedropper32",
                    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=\"M2 27h3v3H2zM29.71 7.29l-5-5a1 1 0 0 0-1.41 0L20 5.59l-1.29-1.3-1.42 1.42L18.59 7 8.29 17.29A1 1 0 0 0 8 18v1.59l-2.71 2.7a1 1 0 0 0 0 1.41l3 3a1 1 0 0 0 1.41 0l2.71-2.7H14a1 1 0 0 0 .71-.29L25 13.41l1.29 1.3 1.42-1.42-1.3-1.29 3.3-3.29a1 1 0 0 0 0-1.41zM13.59 22h-2L9 24.59 7.41 23 10 20.41v-2l10-10L23.59 12zM25 10.59L21.41 7 24 4.41 27.59 8z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    Eyedropper32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Eyedropper32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Eyedropper32;
}());
export { Eyedropper32 };
var Eyedropper32Module = /** @class */ (function () {
    function Eyedropper32Module() {
    }
    Eyedropper32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Eyedropper32
                    ],
                    exports: [
                        Eyedropper32
                    ]
                },] },
    ];
    return Eyedropper32Module;
}());
export { Eyedropper32Module };
//# sourceMappingURL=32.js.map