const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_index = require("../../../../locales/index.js");
const require_objectSpread2 = require("../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_objectWithoutProperties = require("../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js");
const require_utils = require("../../dataSourceForm/utils.js");
const require_ReadPretty = require("./ReadPretty.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
let _ant_design_colors = require("@ant-design/colors");
//#region src/components/dataSourceComponents/fields/ColorPicker/WithMode.tsx
const _excluded = ["renderMode"];
const ColorPicker = (props) => {
	const presets = [{
		label: require_index.getText("pisell-color-picker-default"),
		colors: [
			_ant_design_colors.red.primary || _ant_design_colors.red[5],
			_ant_design_colors.volcano.primary || _ant_design_colors.volcano[5],
			_ant_design_colors.orange.primary || _ant_design_colors.orange[5],
			_ant_design_colors.gold.primary || _ant_design_colors.gold[5],
			_ant_design_colors.yellow.primary || _ant_design_colors.yellow[5],
			_ant_design_colors.lime.primary || _ant_design_colors.lime[5],
			_ant_design_colors.green.primary || _ant_design_colors.green[5],
			_ant_design_colors.cyan.primary || _ant_design_colors.cyan[5],
			_ant_design_colors.blue.primary || _ant_design_colors.blue[5],
			_ant_design_colors.geekblue.primary || _ant_design_colors.geekblue[5],
			_ant_design_colors.purple.primary || _ant_design_colors.purple[5],
			_ant_design_colors.magenta.primary || _ant_design_colors.magenta[5]
		]
	}];
	const { renderMode } = props, restProps = require_objectWithoutProperties._objectWithoutProperties(props, _excluded);
	return /* @__PURE__ */ react.default.createElement(antd.ColorPicker, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, restProps), {}, { presets }));
};
const ColorPickerWithMode = require_utils.withMode(ColorPicker, require_ReadPretty.default);
//#endregion
exports.default = ColorPickerWithMode;
