/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import * as tslib_1 from "tslib";
import { Base, INotifyPropertyChanged_$type, PropertyChangedEventArgs, String_$type, markType } from "igniteui-webcomponents-core";
import { Dictionary$2 } from "igniteui-webcomponents-core";
import { PaletteEntry } from "./PaletteEntry";
import { WorkbookColorInfo } from "igniteui-webcomponents-excel";
import { Color } from "igniteui-webcomponents-core";
import { stringFormat } from "igniteui-webcomponents-core";
/**
 * @hidden
 */
var ThemeColorPickerControlViewModel = /** @class */ /*@__PURE__*/ (function (_super) {
    tslib_1.__extends(ThemeColorPickerControlViewModel, _super);
    function ThemeColorPickerControlViewModel(a, b) {
        var _this = _super.call(this) || this;
        _this._c = null;
        _this._b = null;
        _this._a = null;
        _this.propertyChanged = null;
        _this._d(a);
        _this._a = a;
        _this._c = b;
        return _this;
    }
    ThemeColorPickerControlViewModel.prototype._e = function (a) {
    };
    ThemeColorPickerControlViewModel.prototype._d = function (a) {
        if (null != this._b) {
            return;
        }
        this._b = new Dictionary$2(String_$type, PaletteEntry.$, 0);
        var b = [0, -0.05, -0.15, -0.25, -0.35, -0.5];
        var c = [0, 0.5, 0.35, 0.25, 0.15, 0.05];
        var d = [0, -0.1, -0.25, -0.5, -0.75, -0.9];
        var e = [0, 0.8, 0.6, 0.4, -0.25, -0.5];
        var f = "";
        var g = 0;
        var h = g.toString();
        for (var i = 0; i < 6; i++) {
            f = i.toString();
            g = 0;
            h = g.toString();
            this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(0, b[i]), a));
            g++;
            h = g.toString();
            this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(1, c[i]), a));
            g++;
            h = g.toString();
            this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(2, d[i]), a));
            g++;
            h = g.toString();
            this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(3, e[i]), a));
            g++;
            h = g.toString();
            this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(4, e[i]), a));
            g++;
            h = g.toString();
            this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(5, e[i]), a));
            g++;
            h = g.toString();
            this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(6, e[i]), a));
            g++;
            h = g.toString();
            this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(7, e[i]), a));
            g++;
            h = g.toString();
            this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(8, e[i]), a));
            g++;
            h = g.toString();
            this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(9, e[i]), a));
            g++;
            h = g.toString();
        }
        f = "6";
        g = 0;
        h = g.toString();
        this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(Color.u(255, 192, 0, 0)), a));
        g++;
        h = g.toString();
        this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(Color.u(255, 255, 0, 0)), a));
        g++;
        h = g.toString();
        this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(Color.u(255, 255, 192, 0)), a));
        g++;
        h = g.toString();
        this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(Color.u(255, 255, 255, 0)), a));
        g++;
        h = g.toString();
        this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(Color.u(255, 146, 205, 80)), a));
        g++;
        h = g.toString();
        this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(Color.u(255, 0, 176, 80)), a));
        g++;
        h = g.toString();
        this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(Color.u(255, 0, 176, 240)), a));
        g++;
        h = g.toString();
        this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(Color.u(255, 0, 112, 192)), a));
        g++;
        h = g.toString();
        this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(Color.u(255, 0, 32, 96)), a));
        g++;
        h = g.toString();
        this._b.addItem(stringFormat("{0}-{1}", f, h), new PaletteEntry(new WorkbookColorInfo(Color.u(255, 112, 48, 160)), a));
        g++;
        h = g.toString();
    };
    ThemeColorPickerControlViewModel.prototype._f = function (a) {
        this._e(a);
        var b = this.propertyChanged;
        if (null != b) {
            b(this, new PropertyChangedEventArgs(a));
        }
    };
    ThemeColorPickerControlViewModel.$t = markType(ThemeColorPickerControlViewModel, 'ThemeColorPickerControlViewModel', Base.$, [INotifyPropertyChanged_$type]);
    return ThemeColorPickerControlViewModel;
}(Base));
export { ThemeColorPickerControlViewModel };
//# sourceMappingURL=ThemeColorPickerControlViewModel.js.map
