(function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@carbon/icon-helpers')) :
    typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@carbon/icon-helpers'], factory) :
    (factory((global.CarbonIconsAngular = {}),global.ng.Core,global.CarbonIconHelpers));
}(this, (function (exports,core,iconHelpers) { 'use strict';

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

    exports.Eyedropper20 = Eyedropper20;
    exports.Eyedropper20Module = Eyedropper20Module;

    Object.defineProperty(exports, '__esModule', { value: true });

})));
