import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var PaintBrush32 = /** @class */ (function () {
    function PaintBrush32(elementRef) {
        this.elementRef = elementRef;
    }
    PaintBrush32.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;
            PaintBrush32.titleIdCounter++;
            title.setAttribute("id", "paint-brush32-" + PaintBrush32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "paint-brush32-" + PaintBrush32.titleIdCounter);
        }
    };
    PaintBrush32.titleIdCounter = 0;
    PaintBrush32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-paint-brush32",
                    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=\"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 */
    PaintBrush32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    PaintBrush32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return PaintBrush32;
}());
export { PaintBrush32 };
var PaintBrush32Module = /** @class */ (function () {
    function PaintBrush32Module() {
    }
    PaintBrush32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        PaintBrush32
                    ],
                    exports: [
                        PaintBrush32
                    ]
                },] },
    ];
    return PaintBrush32Module;
}());
export { PaintBrush32Module };
//# sourceMappingURL=32.js.map