const require_runtime = require("../../../../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_utils = require("../../../service2/utils.js");
const require_model = require("../../../model.js");
const require_useSelectPet = require("../../../service2/hooks/useSelectPet.js");
let react = require("react");
react = require_runtime.__toESM(react);
let _pisell_materials = require("@pisell/materials");
//#region src/components/booking/info/service/editService/BookingList/index.tsx
const BookingList = ({ items }) => {
	const { state, dispatch } = (0, react.useContext)(require_model.Context);
	const { holderLists } = require_useSelectPet.default(state);
	const productParams = {
		hideAddBtn: state.isTerminalDayBookingPage,
		isShowNote: false,
		isShowPackageNote: false,
		holders: holderLists,
		isEdit: false,
		disabledEdit: true
	};
	return /* @__PURE__ */ react.default.createElement("div", { style: {
		display: "flex",
		flexWrap: "wrap",
		gap: 16
	} }, require_utils.formatProducts(items, state, false).map((item, index) => {
		return /* @__PURE__ */ react.default.createElement("div", { style: { width: "100%" } }, /* @__PURE__ */ react.default.createElement(_pisell_materials.ProductCard, require_objectSpread2._objectSpread2({
			key: item._id,
			dataSource: item
		}, productParams)));
	}));
};
//#endregion
exports.default = BookingList;
