const require_utils = require("../../../components/booking/info/service2/utils.js");
const require_legacyOpenProductDetail = require("../demo/hosts/legacyOpenProductDetail.js");
const require_createOpenNormalProductDetailHost = require("../normalProductDetail/createOpenNormalProductDetailHost.js");
//#region src/plus/salesSdk/hosts/createCompositeOpenProductDetailHost.ts
/**
* 组合商品详情 Host：普通商品走 SkuDetailModal，预约商品走 legacy Info2 弹窗。
* 对齐 ticketBooking `openProductModal` 分支逻辑。
*/
function createCompositeOpenProductDetailHost(deps) {
	const legacyHost = require_legacyOpenProductDetail.createLegacyOpenProductDetailHost(deps);
	const normalHost = require_createOpenNormalProductDetailHost.createOpenNormalProductDetailHost();
	return (payload) => {
		var _payload$productData;
		if (require_utils.isNormalProductByDurationSchedule((_payload$productData = payload.productData) !== null && _payload$productData !== void 0 ? _payload$productData : payload.item)) return normalHost(payload);
		return legacyHost(payload);
	};
}
//#endregion
exports.createCompositeOpenProductDetailHost = createCompositeOpenProductDetailHost;
