const require_runtime = require("../../../../../../_virtual/_rolldown/runtime.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
let _pisell_utils = require("@pisell/utils");
let _pisell_materials = require("@pisell/materials");
require("./index.less");
//#region src/components/booking/info2/service/editService/DiscountChangeModal/index.tsx
/**
* 折扣变更弹窗组件
*
* @description 当订单中使用的商品折扣已失效时，弹出此弹窗让用户选择处理方式
* @author Pisell Team
*/
const DiscountChangeModal = ({ open, onKeepOriginal, onContinue, onRemove, onCancel }) => {
	/**
	* 渲染自定义底部按钮
	*/
	const renderFooter = () => {
		return /* @__PURE__ */ react.default.createElement("div", { className: "discount-change-modal__footer" }, /* @__PURE__ */ react.default.createElement(antd.Space, {
			size: 12,
			wrap: true
		}, /* @__PURE__ */ react.default.createElement(antd.Button, {
			type: "primary",
			onClick: onContinue
		}, _pisell_utils.locales.getText("pisell2.discount-change.continue")), /* @__PURE__ */ react.default.createElement(antd.Button, { onClick: onRemove }, _pisell_utils.locales.getText("pisell2.discount-change.remove")), /* @__PURE__ */ react.default.createElement(antd.Button, { onClick: onCancel }, _pisell_utils.locales.getText("pisell2.discount-change.cancel"))));
	};
	return /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellModal, {
		open,
		title: _pisell_utils.locales.getText("pisell2.discount-change.title"),
		onCancel,
		footer: renderFooter(),
		maskClosable: false,
		width: 560,
		destroyOnClose: true
	}, /* @__PURE__ */ react.default.createElement("div", { className: "discount-change-modal__content" }, /* @__PURE__ */ react.default.createElement("p", { className: "discount-change-modal__desc" }, _pisell_utils.locales.getText("pisell2.discount-change.desc")), /* @__PURE__ */ react.default.createElement("ul", { className: "discount-change-modal__reasons" }, /* @__PURE__ */ react.default.createElement("li", null, _pisell_utils.locales.getText("pisell2.discount-change.reason"))), /* @__PURE__ */ react.default.createElement("p", { className: "discount-change-modal__desc" }, _pisell_utils.locales.getText("pisell2.discount-change.options-title")), /* @__PURE__ */ react.default.createElement("ul", { className: "discount-change-modal__options" }, /* @__PURE__ */ react.default.createElement("li", null, /* @__PURE__ */ react.default.createElement("strong", null, _pisell_utils.locales.getText("pisell2.discount-change.continue")), "：", _pisell_utils.locales.getText("pisell2.discount-change.continue-desc")), /* @__PURE__ */ react.default.createElement("li", null, /* @__PURE__ */ react.default.createElement("strong", null, _pisell_utils.locales.getText("pisell2.discount-change.remove")), "：", _pisell_utils.locales.getText("pisell2.discount-change.remove-desc")))));
};
//#endregion
exports.default = DiscountChangeModal;
