import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var Eyedropper24 = /** @class */ (function () {
    function Eyedropper24(elementRef) {
        this.elementRef = elementRef;
    }
    Eyedropper24.prototype.ngAfterViewInit = function () {
        var svg = this.elementRef.nativeElement.querySelector("svg");
        var attributes = getAttributes({
            width: 24,
            height: 24,
            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;
            Eyedropper24.titleIdCounter++;
            title.setAttribute("id", "eyedropper24-" + Eyedropper24.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "eyedropper24-" + Eyedropper24.titleIdCounter);
        }
    };
    Eyedropper24.titleIdCounter = 0;
    Eyedropper24.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-eyedropper24",
                    template: "<svg focusable=\"false\" preserveAspectRatio=\"xMidYMid meet\" style=\"will-change: transform;\" xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" 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 */
    Eyedropper24.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    Eyedropper24.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return Eyedropper24;
}());
export { Eyedropper24 };
var Eyedropper24Module = /** @class */ (function () {
    function Eyedropper24Module() {
    }
    Eyedropper24Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        Eyedropper24
                    ],
                    exports: [
                        Eyedropper24
                    ]
                },] },
    ];
    return Eyedropper24Module;
}());
export { Eyedropper24Module };
//# sourceMappingURL=24.js.map