const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_index = require("../voucher/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
require("./index.less");
//#region src/components/booking/components/voucherModal/index.tsx
const VoucherModal = ({ visible, onClose, state, dispatch, source }) => {
	var _state$service, _state$addons, _state$client;
	return /* @__PURE__ */ react.default.createElement(antd.Modal, {
		title: null,
		open: visible,
		onCancel: onClose,
		footer: null,
		width: 600,
		className: `pisell-voucher-modal ${!visible ? "pisell-voucher-modal--hidden" : ""}`,
		forceRender: true
	}, /* @__PURE__ */ react.default.createElement("div", { className: "pisell-voucher-modal-content" }, /* @__PURE__ */ react.default.createElement(require_index.default, {
		state: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, state), {}, {
			service: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, state.service || {}), {}, { value: ((_state$service = state.service) === null || _state$service === void 0 ? void 0 : _state$service.value) || [] }),
			addons: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, state.addons || {}), {}, { value: ((_state$addons = state.addons) === null || _state$addons === void 0 ? void 0 : _state$addons.value) || [] }),
			client: require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, state.client || {}), {}, { value: ((_state$client = state.client) === null || _state$client === void 0 ? void 0 : _state$client.value) || {} })
		}),
		dispatch,
		source,
		isInModal: true
	})));
};
//#endregion
exports.default = VoucherModal;
