const require_runtime = require("../../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
const require_objectWithoutProperties = require("../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectWithoutProperties.js");
const require_Base = require("../../../../plus/saleDetail/Base.js");
let react = require("react");
react = require_runtime.__toESM(react);
let classnames = require("classnames");
classnames = require_runtime.__toESM(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 = require_objectWithoutProperties._objectWithoutProperties(_ref, _excluded);
	return /* @__PURE__ */ react.default.createElement("section", require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, restWrapperProps), {}, {
		className: (0, classnames.default)("pisell-big-sale__sale-detail", wrapperClassName),
		style: wrapperStyle
	}), /* @__PURE__ */ react.default.createElement(require_Base.default, {
		dataSource: pickSaleDetailDataSource(dataSource),
		renderType: "current",
		template: saleDetailTemplate,
		variant,
		mobilePresentation: "bottomSheet",
		moduleConfig: saleDetailModuleConfig
	}));
}
//#endregion
exports.SecondaryScreenBigSaleTemplate = SecondaryScreenBigSaleTemplate;
