const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_utils = require("../../dataSourceForm/utils.js");
const require_datePickerCpt = require("../../../date-picker/datePickerCpt.js");
const require_ReadPretty = require("./ReadPretty.js");
let _pisell_utils = require("@pisell/utils");
let dayjs = require("dayjs");
dayjs = require_runtime.__toESM(dayjs);
//#region src/components/dataSourceComponents/fields/DatePicker/WithMode.ts
/**
* @title: 带模式控制的 DatePicker 组件
* @description: 支持 edit、view、disabled 等渲染模式的日期选择器
*/
const DatePickerWithMode = require_utils.withMode(require_datePickerCpt.default, require_ReadPretty.default, (props) => {
	return require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, props), {}, { value: (0, _pisell_utils.isString)(props.value) && props.value ? (0, dayjs.default)(props.value) : props.value });
});
//#endregion
exports.default = DatePickerWithMode;
