const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
const require_index = require("./SchedulesModule/index.js");
const require_index$1 = require("./MaxParticipantsModule/index.js");
const require_index$2 = require("./ResourcesModule/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
require("./index.less");
//#region src/components/schedules/products/ProductDetailDrawer/ProductDetail/index.tsx
const ProductDetail = ({ form, currentProduct }) => {
	const useSchedule = antd.Form.useWatch("schedule", form);
	const isAutoChange = antd.Form.useWatch("isAutoChange", form);
	return /* @__PURE__ */ react.default.createElement("div", { className: "product-detail-card" }, /* @__PURE__ */ react.default.createElement(antd.Form.Item, {
		noStyle: true,
		name: "schedule"
	}, /* @__PURE__ */ react.default.createElement(require_index.default, {
		tabKey: "products",
		onChange: () => {
			form.setFieldsValue({ isAutoChange: true });
		}
	})), /* @__PURE__ */ react.default.createElement(antd.Form.Item, {
		noStyle: true,
		name: "max_participants"
	}, /* @__PURE__ */ react.default.createElement(require_index$1.default, {
		form,
		useSchedule,
		isAutoChange
	})), /* @__PURE__ */ react.default.createElement(antd.Form.Item, {
		hidden: true,
		name: "isAutoChange",
		initialValue: false
	}, /* @__PURE__ */ react.default.createElement("switch", null)), /* @__PURE__ */ react.default.createElement(require_index$2.default, { product: currentProduct }));
};
//#endregion
exports.default = ProductDetail;
