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_index = require("../../../icon/index.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");
//#region src/components/dataSourceComponents/fields/Input.Email/WithMode.tsx
const _excluded = ["onBlur", "onChange"];
const Email = (props) => {
	const { onBlur: propsOnBlur, onChange: propsOnChange } = props, rest = require_objectWithoutProperties._objectWithoutProperties(props, _excluded);
	const onBlur = (0, react.useCallback)((e) => {
		var _e$target;
		propsOnChange === null || propsOnChange === void 0 || propsOnChange(((e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value) || "").trim());
		propsOnBlur === null || propsOnBlur === void 0 || propsOnBlur(e);
	}, [propsOnBlur, propsOnChange]);
	return /* @__PURE__ */ react.default.createElement(antd.Input, require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, rest), {}, {
		onChange: propsOnChange,
		onBlur,
		prefix: /* @__PURE__ */ react.default.createElement(require_index.default, {
			type: "pisell2-mail-01",
			size: 18,
			color: "#98A2B3"
		})
	}));
};
const EmailWithMode = require_utils.withMode(Email, require_ReadPretty.default);
//#endregion
exports.default = EmailWithMode;
