const require_runtime = require("../../../_virtual/_rolldown/runtime.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_Reset = require("./Reset.js");
const require_FilterList = require("./FilterList.js");
const require_HandleActions = require("./HandleActions.js");
const require_QuickFilter = require("./QuickFilter.js");
let dayjs = require("dayjs");
dayjs = require_runtime.__toESM(dayjs);
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
let _pisell_materials = require("@pisell/materials");
//#region src/plus/orderList/components/Toolbar.tsx
const _excluded = ["serverActions", "refManager"];
const { useContainerContext } = _pisell_materials.PisellDataSourceContainer;
const Toolbar = (props) => {
	const { locales, clearSelectedData, __id } = props;
	const _useContainerContext = useContainerContext(), { serverActions, refManager } = _useContainerContext, otherProps = require_objectWithoutProperties._objectWithoutProperties(_useContainerContext, _excluded);
	const [valueType, setValueType] = (0, react.useState)(void 0);
	return /* @__PURE__ */ react.default.createElement(antd.Form, require_objectSpread2._objectSpread2({
		size: "large",
		layout: "vertical",
		initialValues: { orderDate: [(0, dayjs.default)().startOf("day"), (0, dayjs.default)().endOf("day")] }
	}, otherProps), /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellToolBar, {
		topLeft: /* @__PURE__ */ react.default.createElement(require_QuickFilter.default, { locales }),
		topRight: /* @__PURE__ */ react.default.createElement(require_Reset.default, {
			locales,
			setValueType,
			clearSelectedData
		}),
		bottomLeft: /* @__PURE__ */ react.default.createElement(require_FilterList.default, {
			valueType,
			setValueType,
			locales
		}),
		bottomRight: /* @__PURE__ */ react.default.createElement(require_HandleActions.default, {
			locales,
			__id
		})
	}));
};
//#endregion
exports.default = Toolbar;
