import React from "react";
import { Button, Space } from "antd";
import { locales } from "@pisell/utils";
import { PisellModal } from "@pisell/materials";
import "./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.createElement("div", { className: "discount-change-modal__footer" }, /* @__PURE__ */ React.createElement(Space, {
			size: 12,
			wrap: true
		}, /* @__PURE__ */ React.createElement(Button, {
			type: "primary",
			onClick: onContinue
		}, locales.getText("pisell2.discount-change.continue")), /* @__PURE__ */ React.createElement(Button, { onClick: onRemove }, locales.getText("pisell2.discount-change.remove")), /* @__PURE__ */ React.createElement(Button, { onClick: onCancel }, locales.getText("pisell2.discount-change.cancel"))));
	};
	return /* @__PURE__ */ React.createElement(PisellModal, {
		open,
		title: locales.getText("pisell2.discount-change.title"),
		onCancel,
		footer: renderFooter(),
		maskClosable: false,
		width: 560,
		destroyOnClose: true
	}, /* @__PURE__ */ React.createElement("div", { className: "discount-change-modal__content" }, /* @__PURE__ */ React.createElement("p", { className: "discount-change-modal__desc" }, locales.getText("pisell2.discount-change.desc")), /* @__PURE__ */ React.createElement("ul", { className: "discount-change-modal__reasons" }, /* @__PURE__ */ React.createElement("li", null, locales.getText("pisell2.discount-change.reason"))), /* @__PURE__ */ React.createElement("p", { className: "discount-change-modal__desc" }, locales.getText("pisell2.discount-change.options-title")), /* @__PURE__ */ React.createElement("ul", { className: "discount-change-modal__options" }, /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement("strong", null, locales.getText("pisell2.discount-change.continue")), "：", locales.getText("pisell2.discount-change.continue-desc")), /* @__PURE__ */ React.createElement("li", null, /* @__PURE__ */ React.createElement("strong", null, locales.getText("pisell2.discount-change.remove")), "：", locales.getText("pisell2.discount-change.remove-desc")))));
};
//#endregion
export { DiscountChangeModal as default };
