@pisell/pisellos 2.3.216 → 2.3.217
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// 导出评估器
|
|
2
|
-
export { PromotionEvaluator } from "./evaluator";
|
|
3
|
-
|
|
4
|
-
// 导出适配器
|
|
5
|
-
export { PromotionAdapter } from "./adapter";
|
|
6
|
-
export { default } from "./adapter";
|
|
7
|
-
|
|
8
|
-
// 导出策略配置示例常量
|
|
9
|
-
export { X_ITEMS_FOR_Y_PRICE_STRATEGY, BUY_X_GET_Y_FREE_STRATEGY, ITEM_REWARD_STRATEGY } from "./examples";
|
|
@@ -4428,14 +4428,17 @@ export var UnifiedBookingSalesImpl = /*#__PURE__*/function (_BookingTicket) {
|
|
|
4428
4428
|
return menus.some(function (menu) {
|
|
4429
4429
|
return productMatchesVenueMenu(product, menu);
|
|
4430
4430
|
});
|
|
4431
|
-
}).map(function (product) {
|
|
4432
|
-
return _this15.getVenueCatalogHydratedProduct(product);
|
|
4433
4431
|
});
|
|
4434
4432
|
if ((_input$product_ids = input.product_ids) !== null && _input$product_ids !== void 0 && _input$product_ids.length) products = products.filter(function (product) {
|
|
4435
4433
|
return input.product_ids.some(function (id) {
|
|
4436
4434
|
return Number(id) === Number(product.id);
|
|
4437
4435
|
});
|
|
4438
4436
|
});
|
|
4437
|
+
// Detail/quote reads must not deep-clone every other member of the pool.
|
|
4438
|
+
// Hydration owns a fresh copy of each selected product, including variants.
|
|
4439
|
+
products = products.map(function (product) {
|
|
4440
|
+
return _this15.getVenueCatalogHydratedProduct(product);
|
|
4441
|
+
});
|
|
4439
4442
|
var user = (_this15$core$getPlugi = (_this15$core = _this15.core).getPlugin) === null || _this15$core$getPlugi === void 0 ? void 0 : _this15$core$getPlugi.call(_this15$core, 'user');
|
|
4440
4443
|
var queryPayload = {
|
|
4441
4444
|
schedule_date: datetime.slice(0, 10),
|
|
@@ -4446,7 +4449,7 @@ export var UnifiedBookingSalesImpl = /*#__PURE__*/function (_BookingTicket) {
|
|
|
4446
4449
|
var result = tryResolveClientDataVariants({
|
|
4447
4450
|
core: _this15.core,
|
|
4448
4451
|
otherParams: _this15.otherParams,
|
|
4449
|
-
products:
|
|
4452
|
+
products: products,
|
|
4450
4453
|
queryPayload: queryPayload,
|
|
4451
4454
|
handledByOsServer: false,
|
|
4452
4455
|
scheduleList: _this15.getAvailabilityScheduleCatalog(),
|
|
@@ -2841,8 +2841,11 @@ class UnifiedBookingSalesImpl extends _BookingTicket.BookingTicket {
|
|
|
2841
2841
|
throw (0, _venueCatalogSession.venueCatalogError)('VENUE_CATALOG_DATETIME_INVALID', 'Choose a valid venue catalog date and time.');
|
|
2842
2842
|
}
|
|
2843
2843
|
const menus = (0, _venueCatalogSession.activeVenueMenus)(pool.menus, this.getAvailabilityScheduleCatalog(), datetime, Boolean(input.schedule_date && !input.schedule_datetime));
|
|
2844
|
-
let products = pool.products.filter(product => menus.some(menu => (0, _venueCatalogSession.productMatchesVenueMenu)(product, menu)))
|
|
2844
|
+
let products = pool.products.filter(product => menus.some(menu => (0, _venueCatalogSession.productMatchesVenueMenu)(product, menu)));
|
|
2845
2845
|
if (input.product_ids?.length) products = products.filter(product => input.product_ids.some(id => Number(id) === Number(product.id)));
|
|
2846
|
+
// Detail/quote reads must not deep-clone every other member of the pool.
|
|
2847
|
+
// Hydration owns a fresh copy of each selected product, including variants.
|
|
2848
|
+
products = products.map(product => this.getVenueCatalogHydratedProduct(product));
|
|
2846
2849
|
const user = this.core.getPlugin?.('user');
|
|
2847
2850
|
const queryPayload = {
|
|
2848
2851
|
schedule_date: datetime.slice(0, 10),
|
|
@@ -2856,7 +2859,7 @@ class UnifiedBookingSalesImpl extends _BookingTicket.BookingTicket {
|
|
|
2856
2859
|
const result = (0, _clientDataVariants.tryResolveClientDataVariants)({
|
|
2857
2860
|
core: this.core,
|
|
2858
2861
|
otherParams: this.otherParams,
|
|
2859
|
-
products
|
|
2862
|
+
products,
|
|
2860
2863
|
queryPayload,
|
|
2861
2864
|
handledByOsServer: false,
|
|
2862
2865
|
scheduleList: this.getAvailabilityScheduleCatalog(),
|