import { NgModule, Component, ElementRef, Input } from "@angular/core";
import { getAttributes } from "@carbon/icon-helpers";
var ColorPalette32 = /** @class */ (function () {
    function ColorPalette32(elementRef) {
        this.elementRef = elementRef;
    }
    ColorPalette32.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;
            ColorPalette32.titleIdCounter++;
            title.setAttribute("id", "color-palette32-" + ColorPalette32.titleIdCounter);
            svg.appendChild(title);
            svg.setAttribute("aria-labelledby", "color-palette32-" + ColorPalette32.titleIdCounter);
        }
    };
    ColorPalette32.titleIdCounter = 0;
    ColorPalette32.decorators = [
        { type: Component, args: [{
                    selector: "ibm-icon-color-palette32",
                    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\"><circle cx=\"10\" cy=\"12\" r=\"2\"></circle><circle cx=\"16\" cy=\"9\" r=\"2\"></circle><circle cx=\"22\" cy=\"12\" r=\"2\"></circle><circle cx=\"23\" cy=\"18\" r=\"2\"></circle><circle cx=\"19\" cy=\"23\" r=\"2\"></circle><path d=\"M16.54 2A14 14 0 0 0 2 16a4.82 4.82 0 0 0 6.09 4.65l1.12-.31a3 3 0 0 1 3.79 2.9V27a3 3 0 0 0 3 3 14 14 0 0 0 14-14.54A14.05 14.05 0 0 0 16.54 2zm8.11 22.31A11.93 11.93 0 0 1 16 28a1 1 0 0 1-1-1v-3.76a5 5 0 0 0-5-5 5.07 5.07 0 0 0-1.33.18l-1.12.31A2.82 2.82 0 0 1 4 16 12 12 0 0 1 16.47 4 12.18 12.18 0 0 1 28 15.53a11.89 11.89 0 0 1-3.35 8.79z\"></path></svg>"
                },] },
    ];
    /** @nocollapse */
    ColorPalette32.ctorParameters = function () { return [
        { type: ElementRef }
    ]; };
    ColorPalette32.propDecorators = {
        ariaLabel: [{ type: Input }],
        ariaLabelledby: [{ type: Input }],
        ariaHidden: [{ type: Input }],
        title: [{ type: Input }],
        focusable: [{ type: Input }]
    };
    return ColorPalette32;
}());
export { ColorPalette32 };
var ColorPalette32Module = /** @class */ (function () {
    function ColorPalette32Module() {
    }
    ColorPalette32Module.decorators = [
        { type: NgModule, args: [{
                    declarations: [
                        ColorPalette32
                    ],
                    exports: [
                        ColorPalette32
                    ]
                },] },
    ];
    return ColorPalette32Module;
}());
export { ColorPalette32Module };
//# sourceMappingURL=32.js.map