const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_utils = require("@pisell/utils");
let _pisell_materials = require("@pisell/materials");
require("./index.less");
//#region src/components/eventBooking/components/Provider/EmptyHolderModal/index.tsx
const EmptyHolderModal = (props) => {
	const { open, onCancel, onOk, lists } = props;
	const content = (0, react.useMemo)(() => {
		return /* @__PURE__ */ react.default.createElement("div", { className: "event-booking-empty-holder-describe" }, /* @__PURE__ */ react.default.createElement("span", null, _pisell_utils.locales.getText("pisell2.event.empty.holder.tip")), /* @__PURE__ */ react.default.createElement("ul", null, lists.map((item, index) => {
			return /* @__PURE__ */ react.default.createElement("li", { key: index }, item);
		})), /* @__PURE__ */ react.default.createElement("span", null, _pisell_utils.locales.getText("pisell2.event.empty.holder.continue.tip")));
	}, [lists]);
	return /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellModal.Information, {
		open,
		title: _pisell_utils.locales.getText("pisell2.event.empty.holder.title"),
		describe: content,
		okText: _pisell_utils.locales.getText("pisell2.event.empty.holder.continue.anyway"),
		cancelText: _pisell_utils.locales.getText("pisell2.event.empty.holder.go.back"),
		closable: true,
		onCancel: () => onCancel(),
		onOk: () => onOk()
	});
};
//#endregion
exports.default = EmptyHolderModal;
