(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 PaintBrush20 = /** @class */ (function () {
        function PaintBrush20(elementRef) {
            this.elementRef = elementRef;
        }
        PaintBrush20.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;
                PaintBrush20.titleIdCounter++;
                title.setAttribute("id", "paint-brush20-" + PaintBrush20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "paint-brush20-" + PaintBrush20.titleIdCounter);
            }
        };
        PaintBrush20.titleIdCounter = 0;
        PaintBrush20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-paint-brush20",
                        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=\"M28.83 23.17L23 17.33V13a1 1 0 0 0-.29-.71l-10-10a1 1 0 0 0-1.42 0l-9 9a1 1 0 0 0 0 1.42l10 10A1 1 0 0 0 13 23h4.34l5.83 5.84a4 4 0 0 0 5.66-5.66zM6 10.41l2.29 2.3 1.42-1.42L7.41 9 9 7.41l4.29 4.3 1.42-1.42L10.41 6 12 4.41 18.59 11 11 18.59 4.41 12zm21.41 17a2 2 0 0 1-2.82 0l-6.13-6.12a1.8 1.8 0 0 0-.71-.29h-4.34l-1-1L20 12.41l1 1v4.34a1 1 0 0 0 .29.7l6.12 6.14a2 2 0 0 1 0 2.82z\"></path></svg>"
                    },] },
        ];
        /** @nocollapse */
        PaintBrush20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        PaintBrush20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return PaintBrush20;
    }());
    var PaintBrush20Module = /** @class */ (function () {
        function PaintBrush20Module() {
        }
        PaintBrush20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            PaintBrush20
                        ],
                        exports: [
                            PaintBrush20
                        ]
                    },] },
        ];
        return PaintBrush20Module;
    }());

    exports.PaintBrush20 = PaintBrush20;
    exports.PaintBrush20Module = PaintBrush20Module;

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

})));
