const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_utils = require("../../dataSourceForm/utils.js");
const require_WithMode = require("./WithMode.js");
let dayjs = require("dayjs");
dayjs = require_runtime.__toESM(dayjs);
//#region src/components/dataSourceComponents/fields/DatePicker/index.tsx
/**
* @title: 数据源日期选择器组件
* @description: 支持表单项包装的日期选择器组件
*/
const DatePicker = require_utils.withFormItem(require_WithMode.default, {
	innerProps: { style: { width: "100%" } },
	otherFormItemProps: (props) => {
		return {
			normalize: (value) => value && (0, dayjs.default)(value).format(props.submitFormat || "YYYY-MM-DD"),
			getValueProps: (value) => ({ value: value && (0, dayjs.default)(value) })
		};
	}
});
//#endregion
exports.default = DatePicker;
