import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import { productCardDefault } from "./status.js";
import SkuCardA1 from "./SkuCardA1/index.js";
import SkuCardA2 from "./SkuCardA2/index.js";
import SkuCardA5 from "./SkuCardA5/index.js";
import SkuCardA9 from "./SkuCardA9/index.js";
import SkuCardCustom from "./SkuCardCustom/index.js";
import React, { useMemo } from "react";
//#region src/plus/productSelect/ProductCard/SkuCard/index.tsx
const SkuCard = (props) => {
	const finalConfig = _objectSpread2(_objectSpread2({}, productCardDefault), props);
	const { displayMode } = finalConfig.skuCardConfig || {};
	if (!displayMode) return null;
	const Com = useMemo(() => {
		return {
			display_a1: SkuCardA1,
			display_a2: SkuCardA2,
			display_a5: SkuCardA5,
			display_a9: SkuCardA9,
			display_custom: SkuCardCustom
		}[displayMode];
	}, [displayMode]);
	if (!Com) return /* @__PURE__ */ React.createElement("div", null, "Invalid display mode: ", displayMode);
	return /* @__PURE__ */ React.createElement(Com, finalConfig);
};
SkuCard.A1 = SkuCardA1;
SkuCard.A2 = SkuCardA2;
SkuCard.A5 = SkuCardA5;
SkuCard.A9 = SkuCardA9;
//#endregion
export { SkuCard as default };
