const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_index = require("../productCard/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_materials = require("@pisell/materials");
require("./index.less");
//#region src/components/eventBooking/components/bookingServiceList/index.tsx
const BookingServiceList = ({ dataSource, onClick, showSearch = false, showCategory = true, showImage, showPrice, showTitle, placeholder, onSearch, isShowEmpty, description }) => {
	/**
	* @title: 渲染服务项
	* @description: 渲染服务项
	* @param {any} service
	* @return {*}
	* @Author: WangHan
	* @Date: 2025-01-13 16:52
	*/
	const renderServiceItem = (item) => {
		return /* @__PURE__ */ react.default.createElement(require_index.default, {
			item,
			key: item.id,
			showImage: (item === null || item === void 0 ? void 0 : item.image) && showImage,
			showPrice,
			showName: showTitle,
			onClick: () => onClick && onClick(item)
		});
	};
	return /* @__PURE__ */ react.default.createElement("div", { className: "event-booking-service-list" }, /* @__PURE__ */ react.default.createElement(_pisell_materials.PisellList01, {
		showSearch,
		showCategory,
		dataSource,
		placeholder,
		renderItem: renderServiceItem,
		onSearch,
		isShowEmpty,
		description
	}));
};
//#endregion
exports.default = BookingServiceList;
