const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_status = require("./status.js");
const require_index = require("./SkuCardA1/index.js");
const require_index$1 = require("./SkuCardA2/index.js");
const require_index$2 = require("./SkuCardA5/index.js");
const require_index$3 = require("./SkuCardA9/index.js");
const require_index$4 = require("./SkuCardCustom/index.js");
let react = require("react");
react = require_runtime.__toESM(react);
//#region src/plus/productSelect/ProductCard/SkuCard/index.tsx
const SkuCard = (props) => {
	const finalConfig = require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, require_status.productCardDefault), props);
	const { displayMode } = finalConfig.skuCardConfig || {};
	if (!displayMode) return null;
	const Com = (0, react.useMemo)(() => {
		return {
			display_a1: require_index.default,
			display_a2: require_index$1.default,
			display_a5: require_index$2.default,
			display_a9: require_index$3.default,
			display_custom: require_index$4.default
		}[displayMode];
	}, [displayMode]);
	if (!Com) return /* @__PURE__ */ react.default.createElement("div", null, "Invalid display mode: ", displayMode);
	return /* @__PURE__ */ react.default.createElement(Com, finalConfig);
};
SkuCard.A1 = require_index.default;
SkuCard.A2 = require_index$1.default;
SkuCard.A5 = require_index$2.default;
SkuCard.A9 = require_index$3.default;
//#endregion
exports.default = SkuCard;
