import { _objectSpread2 } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import { _objectWithoutProperties } from "../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js";
import Base_default from "../../../../plus/saleDetail/Base.js";
import React from "react";
import classNames from "classnames";
//#region src/components/bigSale/templates/SecondaryScreen/index.tsx
const _excluded = ["className", "style"];
function pickSaleDetailDataSource(dataSource) {
	return {
		sales: dataSource.sales,
		customer: dataSource.customer,
		cart: dataSource.cart,
		summary: dataSource.summary
	};
}
/**
* 二屏模板：只展示订单详情区域，缩放和连点等包装属性由调用方传入。
*/
function SecondaryScreenBigSaleTemplate({ dataSource, variant, saleDetailTemplate, saleDetailModuleConfig, saleDetailWrapperProps }) {
	const _ref = saleDetailWrapperProps || {}, { className: wrapperClassName, style: wrapperStyle } = _ref, restWrapperProps = _objectWithoutProperties(_ref, _excluded);
	return /* @__PURE__ */ React.createElement("section", _objectSpread2(_objectSpread2({}, restWrapperProps), {}, {
		className: classNames("pisell-big-sale__sale-detail", wrapperClassName),
		style: wrapperStyle
	}), /* @__PURE__ */ React.createElement(Base_default, {
		dataSource: pickSaleDetailDataSource(dataSource),
		renderType: "current",
		template: saleDetailTemplate,
		variant,
		mobilePresentation: "bottomSheet",
		moduleConfig: saleDetailModuleConfig
	}));
}
//#endregion
export { SecondaryScreenBigSaleTemplate };
