(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 ColorPalette20 = /** @class */ (function () {
        function ColorPalette20(elementRef) {
            this.elementRef = elementRef;
        }
        ColorPalette20.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;
                ColorPalette20.titleIdCounter++;
                title.setAttribute("id", "color-palette20-" + ColorPalette20.titleIdCounter);
                svg.appendChild(title);
                svg.setAttribute("aria-labelledby", "color-palette20-" + ColorPalette20.titleIdCounter);
            }
        };
        ColorPalette20.titleIdCounter = 0;
        ColorPalette20.decorators = [
            { type: core.Component, args: [{
                        selector: "ibm-icon-color-palette20",
                        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\"><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 */
        ColorPalette20.ctorParameters = function () { return [
            { type: core.ElementRef }
        ]; };
        ColorPalette20.propDecorators = {
            ariaLabel: [{ type: core.Input }],
            ariaLabelledby: [{ type: core.Input }],
            ariaHidden: [{ type: core.Input }],
            title: [{ type: core.Input }],
            focusable: [{ type: core.Input }]
        };
        return ColorPalette20;
    }());
    var ColorPalette20Module = /** @class */ (function () {
        function ColorPalette20Module() {
        }
        ColorPalette20Module.decorators = [
            { type: core.NgModule, args: [{
                        declarations: [
                            ColorPalette20
                        ],
                        exports: [
                            ColorPalette20
                        ]
                    },] },
        ];
        return ColorPalette20Module;
    }());

    exports.ColorPalette20 = ColorPalette20;
    exports.ColorPalette20Module = ColorPalette20Module;

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

})));
