var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);

// src/components/dataSourceComponents/fields/ColorPicker/WithMode.tsx
var WithMode_exports = {};
__export(WithMode_exports, {
  default: () => WithMode_default
});
module.exports = __toCommonJS(WithMode_exports);
var import_react = __toESM(require("react"));
var import_antd = require("antd");
var import_colors = require("@ant-design/colors");
var import_locales = require("../../../../locales");
var import_ReadPretty = __toESM(require("./ReadPretty"));
var import_utils = require("../../dataSourceForm/utils");
var ColorPicker = (props) => {
  const presets = [
    {
      label: (0, import_locales.getText)("pisell-color-picker-default"),
      colors: [
        import_colors.red.primary || import_colors.red[5],
        import_colors.volcano.primary || import_colors.volcano[5],
        import_colors.orange.primary || import_colors.orange[5],
        import_colors.gold.primary || import_colors.gold[5],
        import_colors.yellow.primary || import_colors.yellow[5],
        import_colors.lime.primary || import_colors.lime[5],
        import_colors.green.primary || import_colors.green[5],
        import_colors.cyan.primary || import_colors.cyan[5],
        import_colors.blue.primary || import_colors.blue[5],
        import_colors.geekblue.primary || import_colors.geekblue[5],
        import_colors.purple.primary || import_colors.purple[5],
        import_colors.magenta.primary || import_colors.magenta[5]
      ]
    }
  ];
  const { renderMode, ...restProps } = props;
  return /* @__PURE__ */ import_react.default.createElement(import_antd.ColorPicker, { ...restProps, presets });
};
var ColorPickerWithMode = (0, import_utils.withMode)(ColorPicker, import_ReadPretty.default);
var WithMode_default = ColorPickerWithMode;
