@pisell/pisellos 2.1.35 → 2.1.38

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.
Files changed (55) hide show
  1. package/dist/effects/index.d.ts +0 -1
  2. package/dist/effects/index.js +6 -29
  3. package/dist/modules/Account/index.js +3 -2
  4. package/dist/modules/BaseModule.d.ts +0 -3
  5. package/dist/modules/BaseModule.js +0 -15
  6. package/dist/modules/Customer/index.js +10 -9
  7. package/dist/modules/Customer/types.d.ts +2 -2
  8. package/dist/modules/Customer/types.js +2 -2
  9. package/dist/modules/Discount/index.js +1 -1
  10. package/dist/modules/Guests/index.js +9 -9
  11. package/dist/modules/Order/index.js +1 -1
  12. package/dist/modules/Payment/index.js +17 -17
  13. package/dist/modules/Payment/walletpass.js +1 -4
  14. package/dist/modules/Product/index.d.ts +1 -1
  15. package/dist/modules/ProductList/index.js +3 -2
  16. package/dist/modules/Resource/index.js +1 -1
  17. package/dist/modules/Rules/index.js +3 -2
  18. package/dist/solution/BookingByStep/index.d.ts +1 -1
  19. package/dist/solution/BookingByStep/index.js +44 -50
  20. package/dist/solution/BookingTicket/index.d.ts +0 -4
  21. package/dist/solution/BookingTicket/index.js +8 -17
  22. package/dist/solution/BookingTicket/utils/scan/index.d.ts +0 -4
  23. package/dist/solution/BookingTicket/utils/scan/index.js +16 -25
  24. package/dist/solution/BuyTickets/index.js +8 -7
  25. package/dist/solution/Checkout/index.js +35 -35
  26. package/dist/solution/ShopDiscount/index.js +10 -9
  27. package/dist/types/index.d.ts +0 -1
  28. package/lib/effects/index.d.ts +0 -1
  29. package/lib/effects/index.js +0 -13
  30. package/lib/modules/Account/index.js +3 -2
  31. package/lib/modules/BaseModule.d.ts +0 -3
  32. package/lib/modules/BaseModule.js +0 -9
  33. package/lib/modules/Customer/index.js +10 -9
  34. package/lib/modules/Customer/types.d.ts +2 -2
  35. package/lib/modules/Customer/types.js +2 -2
  36. package/lib/modules/Discount/index.js +1 -1
  37. package/lib/modules/Guests/index.js +9 -9
  38. package/lib/modules/Order/index.js +1 -1
  39. package/lib/modules/Payment/index.js +16 -16
  40. package/lib/modules/Payment/walletpass.js +1 -3
  41. package/lib/modules/Product/index.d.ts +1 -1
  42. package/lib/modules/ProductList/index.js +3 -2
  43. package/lib/modules/Resource/index.js +1 -1
  44. package/lib/modules/Rules/index.js +3 -2
  45. package/lib/solution/BookingByStep/index.d.ts +1 -1
  46. package/lib/solution/BookingByStep/index.js +6 -6
  47. package/lib/solution/BookingTicket/index.d.ts +0 -4
  48. package/lib/solution/BookingTicket/index.js +6 -6
  49. package/lib/solution/BookingTicket/utils/scan/index.d.ts +0 -4
  50. package/lib/solution/BookingTicket/utils/scan/index.js +1 -7
  51. package/lib/solution/BuyTickets/index.js +8 -7
  52. package/lib/solution/Checkout/index.js +34 -34
  53. package/lib/solution/ShopDiscount/index.js +11 -10
  54. package/lib/types/index.d.ts +0 -1
  55. package/package.json +1 -1
@@ -29,7 +29,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
29
29
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
30
30
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
31
31
  import { BaseModule } from "../../modules/BaseModule";
32
- import { createModule } from "./types";
32
+ import { BookingByStepHooks, createModule } from "./types";
33
33
  import { formatProductToCartItem, createCartItemOrigin, getUniqueId, handleVariantProduct, formatDateToCartItem, formatAccountToCartItem } from "../../modules/Cart/utils";
34
34
  import { getAvailableProductResources } from "./utils/products";
35
35
  import { getResourcesByProduct, getTimeSlicesByResource, getTimeSlicesByResources, getIsUsableByTimeItem, getOthersSelectedResources, getOthersCartSelectedResources, filterScheduleByDateRange, checkSessionProductLeadTime, sortCombinedResources, filterResourcesByFormItem, checkTwoResourcesIntersection, isConflict } from "./utils/resources";
@@ -137,7 +137,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
137
137
  }
138
138
  });
139
139
  this.store.schedule.loadAllSchedule();
140
- this.core.effects.emit("".concat(this.name, ":onInited"), {});
140
+ this.core.effects.emit(BookingByStepHooks.onInited, {});
141
141
  case 19:
142
142
  case "end":
143
143
  return _context.stop();
@@ -1196,7 +1196,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
1196
1196
  date: date
1197
1197
  });
1198
1198
  // 如果 quantity 大于 1,且是预约商品,则进入购物车拆散成多条数据
1199
- if (addItemParams.quantity > 1 && !isNormalProduct(productData.origin)) {
1199
+ if (addItemParams.quantity > 1 && !isNormalProduct(productData)) {
1200
1200
  for (var i = 0; i < addItemParams.quantity; i++) {
1201
1201
  var newAddItemParams = cloneDeep(addItemParams);
1202
1202
  newAddItemParams.quantity = 1;
@@ -2686,41 +2686,35 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
2686
2686
 
2687
2687
  // 与其他资源的时间段求交集
2688
2688
  var _loop2 = function _loop2() {
2689
- var currentResourceSlots = allTimeSlots[i];
2690
- var intersections = [];
2691
-
2692
- // 计算当前公共时间段与下一个资源时间段的交集
2693
- commonSlots.forEach(function (commonSlot) {
2694
- currentResourceSlots.forEach(function (currentSlot) {
2695
- var overlapStart = commonSlot.start.isAfter(currentSlot.start) ? commonSlot.start : currentSlot.start;
2696
- var overlapEnd = commonSlot.end.isBefore(currentSlot.end) ? commonSlot.end : currentSlot.end;
2697
-
2698
- // 如果有重叠时间且重叠时间大于0
2699
- if (overlapStart.isBefore(overlapEnd)) {
2700
- intersections.push({
2701
- start: overlapStart,
2702
- end: overlapEnd
2703
- });
2704
- }
2705
- });
2689
+ var currentResourceSlots = allTimeSlots[i];
2690
+ var intersections = [];
2691
+
2692
+ // 计算当前公共时间段与下一个资源时间段的交集
2693
+ commonSlots.forEach(function (commonSlot) {
2694
+ currentResourceSlots.forEach(function (currentSlot) {
2695
+ var overlapStart = commonSlot.start.isAfter(currentSlot.start) ? commonSlot.start : currentSlot.start;
2696
+ var overlapEnd = commonSlot.end.isBefore(currentSlot.end) ? commonSlot.end : currentSlot.end;
2697
+
2698
+ // 如果有重叠时间且重叠时间大于0
2699
+ if (overlapStart.isBefore(overlapEnd)) {
2700
+ intersections.push({
2701
+ start: overlapStart,
2702
+ end: overlapEnd
2703
+ });
2704
+ }
2706
2705
  });
2707
- commonSlots = intersections;
2708
- console.log("\u4E0E\u8D44\u6E90".concat(i, "\u6C42\u4EA4\u96C6\u540E\u7684\u516C\u5171\u65F6\u95F4\u6BB5:"), commonSlots.map(function (slot) {
2709
- return "".concat(slot.start.format('HH:mm'), "-").concat(slot.end.format('HH:mm'));
2710
- }));
2711
-
2712
- // 如果没有公共时间段,直接返回
2713
- if (commonSlots.length === 0) {
2714
- console.log('没有找到公共时间段');
2715
- return {
2716
- v: []
2717
- };
2718
- }
2719
- },
2720
- _ret2;
2706
+ });
2707
+ if (intersections.length === 0) {
2708
+ console.log("\u8D44\u6E90".concat(i, "\u4E0E\u5F53\u524D\u516C\u5171\u65F6\u95F4\u6BB5\u65E0\u4EA4\u96C6\uFF0C\u8DF3\u8FC7\u8BE5\u8D44\u6E90"));
2709
+ return 1; // continue
2710
+ }
2711
+ commonSlots = intersections;
2712
+ console.log("\u4E0E\u8D44\u6E90".concat(i, "\u6C42\u4EA4\u96C6\u540E\u7684\u516C\u5171\u65F6\u95F4\u6BB5:"), commonSlots.map(function (slot) {
2713
+ return "".concat(slot.start.format('HH:mm'), "-").concat(slot.end.format('HH:mm'));
2714
+ }));
2715
+ };
2721
2716
  for (var i = 1; i < allTimeSlots.length; i++) {
2722
- _ret2 = _loop2();
2723
- if (_ret2) return _ret2.v;
2717
+ if (_loop2()) continue;
2724
2718
  }
2725
2719
 
2726
2720
  // 格式化返回结果
@@ -2969,10 +2963,10 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
2969
2963
  }
2970
2964
  });
2971
2965
  },
2972
- _ret3;
2966
+ _ret2;
2973
2967
  for (var _i = 0, _Object$entries = Object.entries(itemsByResourceType); _i < _Object$entries.length; _i++) {
2974
- _ret3 = _loop3();
2975
- if (_ret3) return _ret3.v;
2968
+ _ret2 = _loop3();
2969
+ if (_ret2) return _ret2.v;
2976
2970
  }
2977
2971
 
2978
2972
  // 如果有容量问题,找出限制最严格的资源类型,返回其总容量
@@ -3069,11 +3063,11 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
3069
3063
  };
3070
3064
  }
3071
3065
  },
3072
- _ret4;
3066
+ _ret3;
3073
3067
  for (var _i2 = 0, _Object$entries2 = Object.entries(cartItemsByTimeSlot); _i2 < _Object$entries2.length; _i2++) {
3074
- _ret4 = _loop4();
3075
- if (_ret4 === 0) continue;
3076
- if (_ret4) return _ret4.v;
3068
+ _ret3 = _loop4();
3069
+ if (_ret3 === 0) continue;
3070
+ if (_ret3) return _ret3.v;
3077
3071
  }
3078
3072
 
3079
3073
  // 全部通过检测,返回成功和最小可用数量
@@ -3400,10 +3394,10 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
3400
3394
  }
3401
3395
  });
3402
3396
  },
3403
- _ret5;
3397
+ _ret4;
3404
3398
  for (var _i3 = 0, _Object$entries3 = Object.entries(itemsByResourceType); _i3 < _Object$entries3.length; _i3++) {
3405
- _ret5 = _loop5();
3406
- if (_ret5) return _ret5.v;
3399
+ _ret4 = _loop5();
3400
+ if (_ret4) return _ret4.v;
3407
3401
  }
3408
3402
 
3409
3403
  // 如果有容量问题,找出限制最严格的资源类型,返回其总容量
@@ -3500,11 +3494,11 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
3500
3494
  };
3501
3495
  }
3502
3496
  },
3503
- _ret6;
3497
+ _ret5;
3504
3498
  for (var _i4 = 0, _Object$entries4 = Object.entries(cartItemsByTimeSlot); _i4 < _Object$entries4.length; _i4++) {
3505
- _ret6 = _loop6();
3506
- if (_ret6 === 0) continue;
3507
- if (_ret6) return _ret6.v;
3499
+ _ret5 = _loop6();
3500
+ if (_ret5 === 0) continue;
3501
+ if (_ret5) return _ret5.v;
3508
3502
  }
3509
3503
 
3510
3504
  // 全部通过检测,返回成功和最小可用数量
@@ -22,10 +22,6 @@ export declare class BookingTicketImpl extends BaseModule implements Module {
22
22
  * @returns 商品列表
23
23
  */
24
24
  loadProducts(params?: ILoadProductsParams): Promise<any>;
25
- /**
26
- * 初始化外设扫码结果监听
27
- */
28
- initPeripheralsListener(): void;
29
25
  /**
30
26
  * 获取商品列表(不加载到模块中)
31
27
  * @returns 商品列表
@@ -18,7 +18,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
18
18
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
19
19
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20
20
  import { BaseModule } from "../../modules/BaseModule";
21
- import { createModule } from "./types";
21
+ import { BookingTicketHooks, createModule } from "./types";
22
22
  import Scan from "./utils/scan";
23
23
  import { handleGlobalScan, handleCustomerScan, handleUniversalScan } from "./utils/scan/handleScan";
24
24
  import scanCache from "./utils/scan/scanCache";
@@ -109,7 +109,7 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseModule) {
109
109
  throw new Error("\u6A21\u5757 ".concat(step, " \u4E0D\u5B58\u5728"));
110
110
  }
111
111
  });
112
- this.core.effects.emit("".concat(this.name, ":onInited"), {});
112
+ this.core.effects.emit(BookingTicketHooks.onInited, {});
113
113
  case 19:
114
114
  case "end":
115
115
  return _context.stop();
@@ -152,7 +152,7 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseModule) {
152
152
  }));
153
153
  case 5:
154
154
  result = _context2.sent;
155
- this.core.effects.emit("".concat(this.name, ":onProductsLoaded"), result);
155
+ this.core.effects.emit(BookingTicketHooks.onProductsLoaded, result);
156
156
  return _context2.abrupt("return", result);
157
157
  case 10:
158
158
  _context2.prev = 10;
@@ -170,20 +170,11 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseModule) {
170
170
  }
171
171
  return loadProducts;
172
172
  }()
173
- /**
174
- * 初始化外设扫码结果监听
175
- */
176
- )
177
- }, {
178
- key: "initPeripheralsListener",
179
- value: function initPeripheralsListener() {
180
- this.scan.initPeripheralsListener();
181
- }
182
-
183
173
  /**
184
174
  * 获取商品列表(不加载到模块中)
185
175
  * @returns 商品列表
186
176
  */
177
+ )
187
178
  }, {
188
179
  key: "getProducts",
189
180
  value: (function () {
@@ -251,7 +242,7 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseModule) {
251
242
  key: "setActiveCustomer",
252
243
  value: function setActiveCustomer(customer) {
253
244
  this.store.customer.setSelectedCustomer(customer);
254
- this.core.effects.emit("".concat(this.name, ":onCustomerSelected"), {
245
+ this.core.effects.emit(BookingTicketHooks.onCustomerSelected, {
255
246
  customer: customer
256
247
  });
257
248
  }
@@ -276,7 +267,7 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseModule) {
276
267
  var customer = this.store.customer.getCustomerById(customerId);
277
268
  if (customer) {
278
269
  this.store.customer.setSelectedCustomer(customer);
279
- this.core.effects.emit("".concat(this.name, ":onCustomerSelected"), {
270
+ this.core.effects.emit(BookingTicketHooks.onCustomerSelected, {
280
271
  customer: customer
281
272
  });
282
273
  }
@@ -407,7 +398,7 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseModule) {
407
398
  return this.store.customer.loadMoreCustomers();
408
399
  case 3:
409
400
  result = _context6.sent;
410
- this.core.effects.emit("".concat(this.name, ":onCustomerListUpdate"), result);
401
+ this.core.effects.emit(BookingTicketHooks.onCustomerListUpdate, result);
411
402
  return _context6.abrupt("return", result);
412
403
  case 8:
413
404
  _context6.prev = 8;
@@ -447,7 +438,7 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseModule) {
447
438
  return this.store.customer.resetAndLoadCustomers(params);
448
439
  case 4:
449
440
  result = _context7.sent;
450
- this.core.effects.emit("".concat(this.name, ":onCustomerListReset"), result);
441
+ this.core.effects.emit(BookingTicketHooks.onCustomerListReset, result);
451
442
  return _context7.abrupt("return", result);
452
443
  case 9:
453
444
  _context7.prev = 9;
@@ -18,10 +18,6 @@ export default class Scan {
18
18
  private watchKey;
19
19
  private listenerConfig;
20
20
  constructor(solution: BookingTicketImpl, watchKey: string);
21
- /**
22
- * 初始化外设扫码结果监听
23
- */
24
- initPeripheralsListener(): void;
25
21
  /**
26
22
  * 处理扫码事件
27
23
  * @param eventKey 事件key
@@ -18,6 +18,9 @@ var ScanResultType = /*#__PURE__*/function (ScanResultType) {
18
18
  }(ScanResultType || {});
19
19
  var Scan = /*#__PURE__*/function () {
20
20
  function Scan(solution, watchKey) {
21
+ var _this$solution,
22
+ _this$solution$mountF,
23
+ _this = this;
21
24
  _classCallCheck(this, Scan);
22
25
  _defineProperty(this, "solution", void 0);
23
26
  _defineProperty(this, "watchKey", void 0);
@@ -25,36 +28,24 @@ var Scan = /*#__PURE__*/function () {
25
28
  this.solution = solution;
26
29
  this.watchKey = watchKey;
27
30
 
28
- // 初始化扫码监听
29
- this.initPeripheralsListener();
31
+ // 监听扫码结果
32
+ (_this$solution = this.solution) === null || _this$solution === void 0 || (_this$solution = _this$solution.window) === null || _this$solution === void 0 || (_this$solution = _this$solution.interaction) === null || _this$solution === void 0 || (_this$solution = _this$solution.utils) === null || _this$solution === void 0 || (_this$solution$mountF = _this$solution.mountFunction) === null || _this$solution$mountF === void 0 || _this$solution$mountF.call(_this$solution, 'global', 'peripheralsResult', function (strVal) {
33
+ try {
34
+ var _result = JSON.parse(strVal);
35
+ console.log('nativeScannerResult>>>>>>>', _result);
36
+ _this.handleScan(_result);
37
+ } catch (err) {
38
+ console.error(err);
39
+ }
40
+ });
30
41
  }
31
42
 
32
43
  /**
33
- * 初始化外设扫码结果监听
44
+ * 处理扫码事件
45
+ * @param eventKey 事件key
46
+ * @param value 扫码结果
34
47
  */
35
48
  _createClass(Scan, [{
36
- key: "initPeripheralsListener",
37
- value: function initPeripheralsListener() {
38
- var _this$solution,
39
- _this$solution$mountF,
40
- _this = this;
41
- (_this$solution = this.solution) === null || _this$solution === void 0 || (_this$solution = _this$solution.window) === null || _this$solution === void 0 || (_this$solution = _this$solution.interaction) === null || _this$solution === void 0 || (_this$solution = _this$solution.utils) === null || _this$solution === void 0 || (_this$solution$mountF = _this$solution.mountFunction) === null || _this$solution$mountF === void 0 || _this$solution$mountF.call(_this$solution, 'global', 'peripheralsResult', function (strVal) {
42
- try {
43
- var _result = JSON.parse(strVal);
44
- console.log('nativeScannerResult>>>>>>>', _result);
45
- _this.handleScan(_result);
46
- } catch (err) {
47
- console.error(err);
48
- }
49
- });
50
- }
51
-
52
- /**
53
- * 处理扫码事件
54
- * @param eventKey 事件key
55
- * @param value 扫码结果
56
- */
57
- }, {
58
49
  key: "handleScan",
59
50
  value: function handleScan(result) {
60
51
  var lastEnableEventKey = watch.getLastEnableEventKey(this.watchKey);
@@ -24,6 +24,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
24
24
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
25
25
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
26
26
  import { ProductList } from "../../modules/";
27
+ import { BuyTicketsHooks } from "./types";
27
28
  import { BaseModule } from "../../modules/BaseModule";
28
29
  export * from "./types";
29
30
  export var BuyTicketsImpl = /*#__PURE__*/function (_BaseModule) {
@@ -71,7 +72,7 @@ export var BuyTicketsImpl = /*#__PURE__*/function (_BaseModule) {
71
72
  return this.loadProductsByIds(this.otherParams.prodctIds);
72
73
  case 11:
73
74
  _context.next = 13;
74
- return this.core.effects.emit("".concat(this.name, ":onInited"), {});
75
+ return this.core.effects.emit(BuyTicketsHooks.onInited, {});
75
76
  case 13:
76
77
  case "end":
77
78
  return _context.stop();
@@ -111,7 +112,7 @@ export var BuyTicketsImpl = /*#__PURE__*/function (_BaseModule) {
111
112
  });
112
113
  this.store.mainProducts = mainProducts;
113
114
  _context2.next = 8;
114
- return this.core.effects.emit("".concat(this.name, ":onMainProductsLoaded"), {});
115
+ return this.core.effects.emit(BuyTicketsHooks.onMainProductsLoaded, {});
115
116
  case 8:
116
117
  case "end":
117
118
  return _context2.stop();
@@ -148,7 +149,7 @@ export var BuyTicketsImpl = /*#__PURE__*/function (_BaseModule) {
148
149
  while (1) switch (_context4.prev = _context4.next) {
149
150
  case 0:
150
151
  _context4.next = 2;
151
- return this.core.effects.emit("".concat(this.name, ":onDestroy"), {});
152
+ return this.core.effects.emit(BuyTicketsHooks.onDestroy, {});
152
153
  case 2:
153
154
  console.log('[BuyTickets] 已销毁');
154
155
  case 3:
@@ -194,7 +195,7 @@ export var BuyTicketsImpl = /*#__PURE__*/function (_BaseModule) {
194
195
  case 11:
195
196
  otherData = _context5.t1;
196
197
  _context5.next = 14;
197
- return this.core.effects.emit("".concat(this.name, ":onGetProducts"), [].concat(_toConsumableArray(mainData), _toConsumableArray(otherData)));
198
+ return this.core.effects.emit(BuyTicketsHooks.OnGetProducts, [].concat(_toConsumableArray(mainData), _toConsumableArray(otherData)));
198
199
  case 14:
199
200
  return _context5.abrupt("return", [].concat(_toConsumableArray(mainData), _toConsumableArray(otherData)));
200
201
  case 15:
@@ -258,7 +259,7 @@ export var BuyTicketsImpl = /*#__PURE__*/function (_BaseModule) {
258
259
  while (1) switch (_context7.prev = _context7.next) {
259
260
  case 0:
260
261
  _context7.next = 2;
261
- return this.core.effects.emit("".concat(this.name, ":onListSubmit"), _objectSpread(_objectSpread({}, data), {}, {
262
+ return this.core.effects.emit(BuyTicketsHooks.onListSubmit, _objectSpread(_objectSpread({}, data), {}, {
262
263
  products: this.getProducts()
263
264
  }));
264
265
  case 2:
@@ -297,7 +298,7 @@ export var BuyTicketsImpl = /*#__PURE__*/function (_BaseModule) {
297
298
  while (1) switch (_context8.prev = _context8.next) {
298
299
  case 0:
299
300
  _context8.next = 2;
300
- return this.core.effects.emit("".concat(this.name, ":onCartSubmit"), _objectSpread(_objectSpread({}, data), {}, {
301
+ return this.core.effects.emit(BuyTicketsHooks.onCartSubmit, _objectSpread(_objectSpread({}, data), {}, {
301
302
  products: this.getProducts()
302
303
  }));
303
304
  case 2:
@@ -319,7 +320,7 @@ export var BuyTicketsImpl = /*#__PURE__*/function (_BaseModule) {
319
320
  while (1) switch (_context9.prev = _context9.next) {
320
321
  case 0:
321
322
  _context9.next = 2;
322
- return this.core.effects.emit("".concat(this.name, ":onCheckoutSubmit"), _objectSpread(_objectSpread({}, data), {}, {
323
+ return this.core.effects.emit(BuyTicketsHooks.onCheckoutSubmit, _objectSpread(_objectSpread({}, data), {}, {
323
324
  products: this.getProducts()
324
325
  }));
325
326
  case 2: