import { getText } from "../../../../locales/index.js";
import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import { _objectWithoutProperties } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
import { withMode } from "../../dataSourceForm/utils.js";
import ColorPickerReadPretty from "./ReadPretty.js";
import React from "react";
import { ColorPicker } from "antd";
import { blue, cyan, geekblue, gold, green, lime, magenta, orange, purple, red, volcano, yellow } from "@ant-design/colors";
//#region src/components/dataSourceComponents/fields/ColorPicker/WithMode.tsx
const _excluded = ["renderMode"];
const ColorPicker$1 = (props) => {
	const presets = [{
		label: getText("pisell-color-picker-default"),
		colors: [
			red.primary || red[5],
			volcano.primary || volcano[5],
			orange.primary || orange[5],
			gold.primary || gold[5],
			yellow.primary || yellow[5],
			lime.primary || lime[5],
			green.primary || green[5],
			cyan.primary || cyan[5],
			blue.primary || blue[5],
			geekblue.primary || geekblue[5],
			purple.primary || purple[5],
			magenta.primary || magenta[5]
		]
	}];
	const { renderMode } = props, restProps = _objectWithoutProperties(props, _excluded);
	return /* @__PURE__ */ React.createElement(ColorPicker, _objectSpread2(_objectSpread2({}, restProps), {}, { presets }));
};
const ColorPickerWithMode = withMode(ColorPicker$1, ColorPickerReadPretty);
//#endregion
export { ColorPickerWithMode as default };
