@pisell/pisellos 2.1.38 → 2.1.40

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 (79) hide show
  1. package/dist/effects/index.d.ts +1 -0
  2. package/dist/effects/index.js +29 -6
  3. package/dist/modules/Account/index.js +2 -3
  4. package/dist/modules/BaseModule.d.ts +3 -0
  5. package/dist/modules/BaseModule.js +15 -0
  6. package/dist/modules/Customer/index.js +10 -11
  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 +5 -5
  12. package/dist/modules/Order/types.d.ts +1 -0
  13. package/dist/modules/Payment/index.js +17 -17
  14. package/dist/modules/Payment/walletpass.js +4 -1
  15. package/dist/modules/Product/index.d.ts +1 -1
  16. package/dist/modules/ProductList/index.js +2 -3
  17. package/dist/modules/Resource/index.js +1 -1
  18. package/dist/modules/Rules/index.js +2 -3
  19. package/dist/plugins/request.d.ts +1 -0
  20. package/dist/solution/BookingByStep/index.d.ts +6 -2
  21. package/dist/solution/BookingByStep/index.js +33 -9
  22. package/dist/solution/BookingTicket/index.d.ts +4 -0
  23. package/dist/solution/BookingTicket/index.js +17 -8
  24. package/dist/solution/BookingTicket/utils/scan/index.d.ts +4 -0
  25. package/dist/solution/BookingTicket/utils/scan/index.js +25 -16
  26. package/dist/solution/BuyTickets/index.js +7 -8
  27. package/dist/solution/Checkout/index.js +35 -35
  28. package/dist/solution/RegisterAndLogin/config.d.ts +87 -0
  29. package/dist/solution/RegisterAndLogin/config.js +792 -0
  30. package/dist/solution/RegisterAndLogin/index.d.ts +189 -0
  31. package/dist/solution/RegisterAndLogin/index.js +2667 -0
  32. package/dist/solution/RegisterAndLogin/types.d.ts +444 -0
  33. package/dist/solution/RegisterAndLogin/types.js +231 -0
  34. package/dist/solution/RegisterAndLogin/utils.d.ts +95 -0
  35. package/dist/solution/RegisterAndLogin/utils.js +322 -0
  36. package/dist/solution/ShopDiscount/index.js +36 -19
  37. package/dist/solution/index.d.ts +1 -0
  38. package/dist/solution/index.js +1 -0
  39. package/dist/types/index.d.ts +1 -0
  40. package/lib/effects/index.d.ts +1 -0
  41. package/lib/effects/index.js +13 -0
  42. package/lib/modules/Account/index.js +2 -3
  43. package/lib/modules/BaseModule.d.ts +3 -0
  44. package/lib/modules/BaseModule.js +9 -0
  45. package/lib/modules/Customer/index.js +10 -11
  46. package/lib/modules/Customer/types.d.ts +2 -2
  47. package/lib/modules/Customer/types.js +2 -2
  48. package/lib/modules/Discount/index.js +1 -1
  49. package/lib/modules/Guests/index.js +9 -9
  50. package/lib/modules/Order/index.js +6 -3
  51. package/lib/modules/Order/types.d.ts +1 -0
  52. package/lib/modules/Payment/index.js +16 -16
  53. package/lib/modules/Payment/walletpass.js +3 -1
  54. package/lib/modules/Product/index.d.ts +1 -1
  55. package/lib/modules/ProductList/index.js +2 -3
  56. package/lib/modules/Resource/index.js +1 -1
  57. package/lib/modules/Rules/index.js +2 -3
  58. package/lib/plugins/request.d.ts +1 -0
  59. package/lib/solution/BookingByStep/index.d.ts +6 -2
  60. package/lib/solution/BookingByStep/index.js +10 -3
  61. package/lib/solution/BookingTicket/index.d.ts +4 -0
  62. package/lib/solution/BookingTicket/index.js +12 -6
  63. package/lib/solution/BookingTicket/utils/scan/index.d.ts +4 -0
  64. package/lib/solution/BookingTicket/utils/scan/index.js +7 -1
  65. package/lib/solution/BuyTickets/index.js +7 -8
  66. package/lib/solution/Checkout/index.js +34 -34
  67. package/lib/solution/RegisterAndLogin/config.d.ts +87 -0
  68. package/lib/solution/RegisterAndLogin/config.js +594 -0
  69. package/lib/solution/RegisterAndLogin/index.d.ts +189 -0
  70. package/lib/solution/RegisterAndLogin/index.js +1593 -0
  71. package/lib/solution/RegisterAndLogin/types.d.ts +444 -0
  72. package/lib/solution/RegisterAndLogin/types.js +78 -0
  73. package/lib/solution/RegisterAndLogin/utils.d.ts +95 -0
  74. package/lib/solution/RegisterAndLogin/utils.js +279 -0
  75. package/lib/solution/ShopDiscount/index.js +19 -11
  76. package/lib/solution/index.d.ts +1 -0
  77. package/lib/solution/index.js +2 -0
  78. package/lib/types/index.d.ts +1 -0
  79. package/package.json +1 -1
@@ -166,7 +166,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
166
166
  * @returns boolean
167
167
  */
168
168
  checkBeforeSubmitOrder(type: 'holder' | 'account'): boolean;
169
- submitOrder(): Promise<void>;
169
+ submitOrder(extraData?: Record<string, any>): Promise<void>;
170
170
  pay(): Promise<void>;
171
171
  getPayInfo(): Promise<void>;
172
172
  setOtherParams(params: Record<string, any>, { cover }?: {
@@ -342,7 +342,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
342
342
  };
343
343
  setOtherData(key: string, value: any): void;
344
344
  getOtherData(key: string): any;
345
- getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
345
+ getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
346
346
  /**
347
347
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
348
348
  *
@@ -374,4 +374,8 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
374
374
  isCartHasDurationProduct(): boolean;
375
375
  isTargetNormalProduct(product: ProductData): boolean;
376
376
  isTargetCartIdNormalProduct(id: string): boolean | undefined;
377
+ /**
378
+ * 获取联系信息
379
+ */
380
+ getContactInfo(params: any): Promise<any>;
377
381
  }
@@ -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 { BookingByStepHooks, createModule } from "./types";
32
+ import { 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(BookingByStepHooks.onInited, {});
140
+ this.core.effects.emit("".concat(this.name, ":onInited"), {});
141
141
  case 19:
142
142
  case "end":
143
143
  return _context.stop();
@@ -966,7 +966,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
966
966
  }, {
967
967
  key: "submitOrder",
968
968
  value: function () {
969
- var _submitOrder = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19() {
969
+ var _submitOrder = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee19(extraData) {
970
970
  var cartItems, newCartItems, type;
971
971
  return _regeneratorRuntime().wrap(function _callee19$(_context19) {
972
972
  while (1) switch (_context19.prev = _context19.next) {
@@ -1003,7 +1003,8 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
1003
1003
  query: {
1004
1004
  cartItems: newCartItems,
1005
1005
  type: type,
1006
- platform: this.platform
1006
+ platform: this.platform,
1007
+ extraData: extraData
1007
1008
  }
1008
1009
  }));
1009
1010
  case 6:
@@ -1012,7 +1013,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
1012
1013
  }
1013
1014
  }, _callee19, this);
1014
1015
  }));
1015
- function submitOrder() {
1016
+ function submitOrder(_x17) {
1016
1017
  return _submitOrder.apply(this, arguments);
1017
1018
  }
1018
1019
  return submitOrder;
@@ -1074,7 +1075,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
1074
1075
  }
1075
1076
  }, _callee22, this);
1076
1077
  }));
1077
- function setOtherParams(_x17) {
1078
+ function setOtherParams(_x18) {
1078
1079
  return _setOtherParams.apply(this, arguments);
1079
1080
  }
1080
1081
  return setOtherParams;
@@ -2377,7 +2378,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
2377
2378
  }
2378
2379
  }, _callee24, this);
2379
2380
  }));
2380
- function openProductDetail(_x18) {
2381
+ function openProductDetail(_x19) {
2381
2382
  return _openProductDetail.apply(this, arguments);
2382
2383
  }
2383
2384
  return openProductDetail;
@@ -3563,7 +3564,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
3563
3564
  }
3564
3565
  }, _callee25, this);
3565
3566
  }));
3566
- function getProductTypeById(_x19) {
3567
+ function getProductTypeById(_x20) {
3567
3568
  return _getProductTypeById.apply(this, arguments);
3568
3569
  }
3569
3570
  return getProductTypeById;
@@ -3720,7 +3721,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
3720
3721
  }
3721
3722
  }, _callee26, this);
3722
3723
  }));
3723
- function getTimeslotsScheduleByDateRange(_x20) {
3724
+ function getTimeslotsScheduleByDateRange(_x21) {
3724
3725
  return _getTimeslotsScheduleByDateRange.apply(this, arguments);
3725
3726
  }
3726
3727
  return getTimeslotsScheduleByDateRange;
@@ -4007,6 +4008,29 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
4007
4008
  });
4008
4009
  return cartItem && isNormalProduct(cartItem._productOrigin);
4009
4010
  }
4011
+
4012
+ /**
4013
+ * 获取联系信息
4014
+ */
4015
+ }, {
4016
+ key: "getContactInfo",
4017
+ value: (function () {
4018
+ var _getContactInfo = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee28(params) {
4019
+ return _regeneratorRuntime().wrap(function _callee28$(_context29) {
4020
+ while (1) switch (_context29.prev = _context29.next) {
4021
+ case 0:
4022
+ return _context29.abrupt("return", this.request.get('/customer/metadata', params));
4023
+ case 1:
4024
+ case "end":
4025
+ return _context29.stop();
4026
+ }
4027
+ }, _callee28, this);
4028
+ }));
4029
+ function getContactInfo(_x22) {
4030
+ return _getContactInfo.apply(this, arguments);
4031
+ }
4032
+ return getContactInfo;
4033
+ }())
4010
4034
  }]);
4011
4035
  return BookingByStepImpl;
4012
4036
  }(BaseModule);
@@ -22,6 +22,10 @@ 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;
25
29
  /**
26
30
  * 获取商品列表(不加载到模块中)
27
31
  * @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 { BookingTicketHooks, createModule } from "./types";
21
+ import { 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(BookingTicketHooks.onInited, {});
112
+ this.core.effects.emit("".concat(this.name, ":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(BookingTicketHooks.onProductsLoaded, result);
155
+ this.core.effects.emit("".concat(this.name, ":onProductsLoaded"), result);
156
156
  return _context2.abrupt("return", result);
157
157
  case 10:
158
158
  _context2.prev = 10;
@@ -170,11 +170,20 @@ 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
+
173
183
  /**
174
184
  * 获取商品列表(不加载到模块中)
175
185
  * @returns 商品列表
176
186
  */
177
- )
178
187
  }, {
179
188
  key: "getProducts",
180
189
  value: (function () {
@@ -242,7 +251,7 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseModule) {
242
251
  key: "setActiveCustomer",
243
252
  value: function setActiveCustomer(customer) {
244
253
  this.store.customer.setSelectedCustomer(customer);
245
- this.core.effects.emit(BookingTicketHooks.onCustomerSelected, {
254
+ this.core.effects.emit("".concat(this.name, ":onCustomerSelected"), {
246
255
  customer: customer
247
256
  });
248
257
  }
@@ -267,7 +276,7 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseModule) {
267
276
  var customer = this.store.customer.getCustomerById(customerId);
268
277
  if (customer) {
269
278
  this.store.customer.setSelectedCustomer(customer);
270
- this.core.effects.emit(BookingTicketHooks.onCustomerSelected, {
279
+ this.core.effects.emit("".concat(this.name, ":onCustomerSelected"), {
271
280
  customer: customer
272
281
  });
273
282
  }
@@ -398,7 +407,7 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseModule) {
398
407
  return this.store.customer.loadMoreCustomers();
399
408
  case 3:
400
409
  result = _context6.sent;
401
- this.core.effects.emit(BookingTicketHooks.onCustomerListUpdate, result);
410
+ this.core.effects.emit("".concat(this.name, ":onCustomerListUpdate"), result);
402
411
  return _context6.abrupt("return", result);
403
412
  case 8:
404
413
  _context6.prev = 8;
@@ -438,7 +447,7 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseModule) {
438
447
  return this.store.customer.resetAndLoadCustomers(params);
439
448
  case 4:
440
449
  result = _context7.sent;
441
- this.core.effects.emit(BookingTicketHooks.onCustomerListReset, result);
450
+ this.core.effects.emit("".concat(this.name, ":onCustomerListReset"), result);
442
451
  return _context7.abrupt("return", result);
443
452
  case 9:
444
453
  _context7.prev = 9;
@@ -18,6 +18,10 @@ 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;
21
25
  /**
22
26
  * 处理扫码事件
23
27
  * @param eventKey 事件key
@@ -18,9 +18,6 @@ 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;
24
21
  _classCallCheck(this, Scan);
25
22
  _defineProperty(this, "solution", void 0);
26
23
  _defineProperty(this, "watchKey", void 0);
@@ -28,24 +25,36 @@ var Scan = /*#__PURE__*/function () {
28
25
  this.solution = solution;
29
26
  this.watchKey = watchKey;
30
27
 
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
- });
28
+ // 初始化扫码监听
29
+ this.initPeripheralsListener();
41
30
  }
42
31
 
43
32
  /**
44
- * 处理扫码事件
45
- * @param eventKey 事件key
46
- * @param value 扫码结果
33
+ * 初始化外设扫码结果监听
47
34
  */
48
35
  _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
+ }, {
49
58
  key: "handleScan",
50
59
  value: function handleScan(result) {
51
60
  var lastEnableEventKey = watch.getLastEnableEventKey(this.watchKey);
@@ -24,7 +24,6 @@ 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";
28
27
  import { BaseModule } from "../../modules/BaseModule";
29
28
  export * from "./types";
30
29
  export var BuyTicketsImpl = /*#__PURE__*/function (_BaseModule) {
@@ -72,7 +71,7 @@ export var BuyTicketsImpl = /*#__PURE__*/function (_BaseModule) {
72
71
  return this.loadProductsByIds(this.otherParams.prodctIds);
73
72
  case 11:
74
73
  _context.next = 13;
75
- return this.core.effects.emit(BuyTicketsHooks.onInited, {});
74
+ return this.core.effects.emit("".concat(this.name, ":onInited"), {});
76
75
  case 13:
77
76
  case "end":
78
77
  return _context.stop();
@@ -112,7 +111,7 @@ export var BuyTicketsImpl = /*#__PURE__*/function (_BaseModule) {
112
111
  });
113
112
  this.store.mainProducts = mainProducts;
114
113
  _context2.next = 8;
115
- return this.core.effects.emit(BuyTicketsHooks.onMainProductsLoaded, {});
114
+ return this.core.effects.emit("".concat(this.name, ":onMainProductsLoaded"), {});
116
115
  case 8:
117
116
  case "end":
118
117
  return _context2.stop();
@@ -149,7 +148,7 @@ export var BuyTicketsImpl = /*#__PURE__*/function (_BaseModule) {
149
148
  while (1) switch (_context4.prev = _context4.next) {
150
149
  case 0:
151
150
  _context4.next = 2;
152
- return this.core.effects.emit(BuyTicketsHooks.onDestroy, {});
151
+ return this.core.effects.emit("".concat(this.name, ":onDestroy"), {});
153
152
  case 2:
154
153
  console.log('[BuyTickets] 已销毁');
155
154
  case 3:
@@ -195,7 +194,7 @@ export var BuyTicketsImpl = /*#__PURE__*/function (_BaseModule) {
195
194
  case 11:
196
195
  otherData = _context5.t1;
197
196
  _context5.next = 14;
198
- return this.core.effects.emit(BuyTicketsHooks.OnGetProducts, [].concat(_toConsumableArray(mainData), _toConsumableArray(otherData)));
197
+ return this.core.effects.emit("".concat(this.name, ":onGetProducts"), [].concat(_toConsumableArray(mainData), _toConsumableArray(otherData)));
199
198
  case 14:
200
199
  return _context5.abrupt("return", [].concat(_toConsumableArray(mainData), _toConsumableArray(otherData)));
201
200
  case 15:
@@ -259,7 +258,7 @@ export var BuyTicketsImpl = /*#__PURE__*/function (_BaseModule) {
259
258
  while (1) switch (_context7.prev = _context7.next) {
260
259
  case 0:
261
260
  _context7.next = 2;
262
- return this.core.effects.emit(BuyTicketsHooks.onListSubmit, _objectSpread(_objectSpread({}, data), {}, {
261
+ return this.core.effects.emit("".concat(this.name, ":onListSubmit"), _objectSpread(_objectSpread({}, data), {}, {
263
262
  products: this.getProducts()
264
263
  }));
265
264
  case 2:
@@ -298,7 +297,7 @@ export var BuyTicketsImpl = /*#__PURE__*/function (_BaseModule) {
298
297
  while (1) switch (_context8.prev = _context8.next) {
299
298
  case 0:
300
299
  _context8.next = 2;
301
- return this.core.effects.emit(BuyTicketsHooks.onCartSubmit, _objectSpread(_objectSpread({}, data), {}, {
300
+ return this.core.effects.emit("".concat(this.name, ":onCartSubmit"), _objectSpread(_objectSpread({}, data), {}, {
302
301
  products: this.getProducts()
303
302
  }));
304
303
  case 2:
@@ -320,7 +319,7 @@ export var BuyTicketsImpl = /*#__PURE__*/function (_BaseModule) {
320
319
  while (1) switch (_context9.prev = _context9.next) {
321
320
  case 0:
322
321
  _context9.next = 2;
323
- return this.core.effects.emit(BuyTicketsHooks.onCheckoutSubmit, _objectSpread(_objectSpread({}, data), {}, {
322
+ return this.core.effects.emit("".concat(this.name, ":onCheckoutSubmit"), _objectSpread(_objectSpread({}, data), {}, {
324
323
  products: this.getProducts()
325
324
  }));
326
325
  case 2: