@pisell/private-materials 3.3.26 → 3.3.27

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 (205) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +8 -8
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +7 -7
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +5 -5
  11. package/es/components/Sales/Customer/index.js +3 -1
  12. package/es/components/Sales/Event/Detail.js +5 -1
  13. package/es/components/Sales/Event/serve.d.ts +3 -0
  14. package/es/components/Sales/Init/index.d.ts +1 -0
  15. package/es/components/Sales/Init/index.js +3 -2
  16. package/es/components/Sales/Step/index.d.ts +2 -0
  17. package/es/components/Sales/Step/index.js +13 -4
  18. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  19. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +5 -5
  20. package/es/components/appointmentBooking/components/Content/index.d.ts +1 -0
  21. package/es/components/appointmentBooking/components/Services/index.js +2 -0
  22. package/es/components/appointmentBooking/deposit/index.js +2 -2
  23. package/es/components/appointmentBooking/index.d.ts +1 -0
  24. package/es/components/booking/components/footer/utils.js +16 -15
  25. package/es/components/booking/hooks/useQuotation.d.ts +4 -0
  26. package/es/components/booking/hooks/useQuotation.js +256 -0
  27. package/es/components/booking/info/index.d.ts +0 -1
  28. package/es/components/booking/info/service/addService/index.d.ts +1 -0
  29. package/es/components/booking/info/service/addService/index.js +4 -4
  30. package/es/components/booking/info/service/editService/index.js +6 -3
  31. package/es/components/booking/info/service/index.js +4 -1
  32. package/es/components/booking/info/service2/Group/utils.js +1 -1
  33. package/es/components/booking/info/service2/hooks/useSelectPet.js +6 -4
  34. package/es/components/booking/info/service2/index.js +4 -1
  35. package/es/components/booking/info2/service/addService/index.d.ts +1 -0
  36. package/es/components/booking/info2/service/addService/index.js +29 -9
  37. package/es/components/booking/info2/service/editService/index.js +2 -0
  38. package/es/components/booking/info2/service/index.js +4 -1
  39. package/es/components/booking/locales.d.ts +6 -0
  40. package/es/components/booking/locales.js +9 -3
  41. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  42. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  43. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  44. package/es/components/eftposPay/hooks.d.ts +1 -1
  45. package/es/components/eftposPay/index.d.ts +1 -0
  46. package/es/components/eftposPay/pay.d.ts +1 -0
  47. package/es/components/eftposPay/store/index.d.ts +1 -1
  48. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +122 -31
  49. package/es/components/eventBooking/components/Provider/Event/index.js +20 -4
  50. package/es/components/eventBooking/components/Provider/Resource/index.js +26 -5
  51. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +2 -2
  52. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +1 -1
  53. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  54. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.js +5 -2
  55. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  56. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.js +7 -2
  57. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +3 -0
  58. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.js +60 -0
  59. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.less +63 -0
  60. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +9 -0
  61. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.js +59 -0
  62. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.less +7 -0
  63. package/es/components/eventBooking/components/scheduleCalendar/index.d.ts +1 -0
  64. package/es/components/eventBooking/components/scheduleCalendar/index.js +30 -21
  65. package/es/components/eventBooking/components/scheduleCalendar/index.less +2 -0
  66. package/es/components/eventBooking/index.d.ts +1 -0
  67. package/es/components/eventBooking/index.js +2 -2
  68. package/es/components/eventBooking/locales.d.ts +6 -0
  69. package/es/components/eventBooking/locales.js +166 -160
  70. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +3 -0
  71. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +3 -2
  72. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  73. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +73 -20
  74. package/es/components/pay/toC/PaymentMethods/WalletPass/index.less +30 -0
  75. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +2 -0
  76. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -1
  77. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +16 -0
  78. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.js +60 -0
  79. package/es/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.less +38 -0
  80. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +17 -0
  81. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.js +98 -0
  82. package/es/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.less +133 -0
  83. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +7 -0
  84. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.js +34 -0
  85. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.less +23 -0
  86. package/es/components/pay/toC/WalletPassBlock/index.d.ts +9 -2
  87. package/es/components/pay/toC/WalletPassBlock/index.js +119 -21
  88. package/es/components/pay/toC/WalletPassBlock/index.less +82 -13
  89. package/es/components/pay/toC/index.js +138 -89
  90. package/es/components/pay/toC/locales.d.ts +69 -3
  91. package/es/components/pay/toC/locales.js +132 -6
  92. package/es/components/pay/toC/model.d.ts +4 -0
  93. package/es/components/pay/toC/model.js +9 -0
  94. package/es/components/pay/toC/serve.d.ts +23 -0
  95. package/es/components/pay/toC/serve.js +34 -2
  96. package/es/components/pay/toC/utils.d.ts +3 -1
  97. package/es/components/pay/toC/utils.js +8 -3
  98. package/es/components/productSelect/components/productGroup/index.less +4 -12
  99. package/es/components/productSelect/index.less +1 -1
  100. package/es/components/ruleSetting/index.d.ts +1 -0
  101. package/es/components/ticketBooking/components/addServiceVariant/addService.js +15 -20
  102. package/es/components/ticketBooking/components/menuBar/index.less +0 -1
  103. package/es/components/ticketBooking/components/ticketBooking/index.less +2 -4
  104. package/es/hooks/useLocale.d.ts +2 -0
  105. package/es/hooks/useLocale.js +7 -0
  106. package/es/hooks/useLoginUser.d.ts +2 -0
  107. package/es/hooks/useLoginUser.js +19 -0
  108. package/lib/components/Sales/Customer/index.js +3 -1
  109. package/lib/components/Sales/Event/Detail.js +5 -1
  110. package/lib/components/Sales/Event/serve.d.ts +3 -0
  111. package/lib/components/Sales/Init/index.d.ts +1 -0
  112. package/lib/components/Sales/Init/index.js +3 -2
  113. package/lib/components/Sales/Step/index.d.ts +2 -0
  114. package/lib/components/Sales/Step/index.js +13 -4
  115. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  116. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +2 -2
  117. package/lib/components/appointmentBooking/components/Content/index.d.ts +1 -0
  118. package/lib/components/appointmentBooking/components/Services/index.js +2 -0
  119. package/lib/components/appointmentBooking/deposit/index.js +2 -2
  120. package/lib/components/appointmentBooking/index.d.ts +1 -0
  121. package/lib/components/booking/components/footer/utils.js +5 -4
  122. package/lib/components/booking/hooks/useQuotation.d.ts +4 -0
  123. package/lib/components/booking/hooks/useQuotation.js +210 -0
  124. package/lib/components/booking/info/index.d.ts +0 -1
  125. package/lib/components/booking/info/service/addService/index.d.ts +1 -0
  126. package/lib/components/booking/info/service/addService/index.js +2 -3
  127. package/lib/components/booking/info/service/editService/index.js +5 -2
  128. package/lib/components/booking/info/service/index.js +3 -1
  129. package/lib/components/booking/info/service2/Group/utils.js +2 -2
  130. package/lib/components/booking/info/service2/hooks/useSelectPet.js +5 -3
  131. package/lib/components/booking/info/service2/index.js +3 -1
  132. package/lib/components/booking/info2/service/addService/index.d.ts +1 -0
  133. package/lib/components/booking/info2/service/addService/index.js +25 -17
  134. package/lib/components/booking/info2/service/editService/index.js +2 -1
  135. package/lib/components/booking/info2/service/index.js +3 -1
  136. package/lib/components/booking/locales.d.ts +6 -0
  137. package/lib/components/booking/locales.js +9 -3
  138. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  139. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  140. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  141. package/lib/components/eftposPay/hooks.d.ts +1 -1
  142. package/lib/components/eftposPay/index.d.ts +1 -0
  143. package/lib/components/eftposPay/pay.d.ts +1 -0
  144. package/lib/components/eftposPay/store/index.d.ts +1 -1
  145. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.js +52 -4
  146. package/lib/components/eventBooking/components/Provider/Event/index.js +15 -3
  147. package/lib/components/eventBooking/components/Provider/Resource/index.js +16 -3
  148. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.d.ts +2 -2
  149. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/SelectDate/index.js +7 -7
  150. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  151. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.js +3 -1
  152. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  153. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.js +6 -5
  154. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +3 -0
  155. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.js +75 -0
  156. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.less +63 -0
  157. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.d.ts +9 -0
  158. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.js +64 -0
  159. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimes/index.less +7 -0
  160. package/lib/components/eventBooking/components/scheduleCalendar/index.d.ts +1 -0
  161. package/lib/components/eventBooking/components/scheduleCalendar/index.js +17 -11
  162. package/lib/components/eventBooking/components/scheduleCalendar/index.less +2 -0
  163. package/lib/components/eventBooking/index.d.ts +1 -0
  164. package/lib/components/eventBooking/index.js +2 -2
  165. package/lib/components/eventBooking/locales.d.ts +6 -0
  166. package/lib/components/eventBooking/locales.js +10 -4
  167. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +3 -0
  168. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +2 -2
  169. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +5 -0
  170. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +52 -11
  171. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.less +30 -0
  172. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +2 -0
  173. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +2 -1
  174. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.d.ts +16 -0
  175. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.js +87 -0
  176. package/lib/components/pay/toC/WalletPassBlock/components/WalletAvailable/index.less +38 -0
  177. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.d.ts +17 -0
  178. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.js +103 -0
  179. package/lib/components/pay/toC/WalletPassBlock/components/WalletBestValueFound/index.less +133 -0
  180. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +7 -0
  181. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.js +52 -0
  182. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.less +23 -0
  183. package/lib/components/pay/toC/WalletPassBlock/index.d.ts +9 -2
  184. package/lib/components/pay/toC/WalletPassBlock/index.js +115 -20
  185. package/lib/components/pay/toC/WalletPassBlock/index.less +82 -13
  186. package/lib/components/pay/toC/index.js +35 -9
  187. package/lib/components/pay/toC/locales.d.ts +69 -3
  188. package/lib/components/pay/toC/locales.js +72 -6
  189. package/lib/components/pay/toC/model.d.ts +4 -0
  190. package/lib/components/pay/toC/model.js +10 -0
  191. package/lib/components/pay/toC/serve.d.ts +23 -0
  192. package/lib/components/pay/toC/serve.js +12 -6
  193. package/lib/components/pay/toC/utils.d.ts +3 -1
  194. package/lib/components/pay/toC/utils.js +8 -3
  195. package/lib/components/productSelect/components/productGroup/index.less +4 -12
  196. package/lib/components/productSelect/index.less +1 -1
  197. package/lib/components/ruleSetting/index.d.ts +1 -0
  198. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +13 -16
  199. package/lib/components/ticketBooking/components/menuBar/index.less +0 -1
  200. package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -4
  201. package/lib/hooks/useLocale.d.ts +2 -0
  202. package/lib/hooks/useLocale.js +41 -0
  203. package/lib/hooks/useLoginUser.d.ts +2 -0
  204. package/lib/hooks/useLoginUser.js +50 -0
  205. package/package.json +3 -3
@@ -64,7 +64,7 @@ var shopList = [
64
64
  6305
65
65
  ];
66
66
  var Info = (props) => {
67
- var _a, _b, _c, _d;
67
+ var _a, _b, _c, _d, _e, _f;
68
68
  const { onEdit, drawerProps, renderMode } = props;
69
69
  const [search, setSearch] = (0, import_react.useState)("");
70
70
  let { state, dispatch } = (0, import_react.useContext)(import_model.Context);
@@ -74,6 +74,11 @@ var Info = (props) => {
74
74
  state = state || (props == null ? void 0 : props.state);
75
75
  dispatch = dispatch || (props == null ? void 0 : props.dispatch);
76
76
  import_utils3.request.setRequest(context.appHelper.utils.request);
77
+ const customerId = (0, import_react.useMemo)(() => {
78
+ var _a2, _b2;
79
+ return ((_b2 = (_a2 = state.client) == null ? void 0 : _a2.value) == null ? void 0 : _b2.id) || void 0;
80
+ }, [(_b = (_a = state.client) == null ? void 0 : _a.value) == null ? void 0 : _b.id]);
81
+ console.log(customerId, "customerIdcustomerId");
77
82
  const setDefaultService = async (list) => {
78
83
  if (state.renderType !== "eventBooking") {
79
84
  return;
@@ -152,7 +157,8 @@ var Info = (props) => {
152
157
  with_count: ["bundleGroup", "optionGroup"],
153
158
  order_by_string: "sort:desc",
154
159
  status: "published",
155
- schedule_date: params == null ? void 0 : params.schedule_date
160
+ schedule_date: params == null ? void 0 : params.schedule_date,
161
+ customer_id: params == null ? void 0 : params.customer_id
156
162
  });
157
163
  setLoading(false);
158
164
  if (!state.service.addModal) {
@@ -180,6 +186,7 @@ var Info = (props) => {
180
186
  }
181
187
  };
182
188
  const handleSelectProduct = (item, type) => {
189
+ var _a2, _b2;
183
190
  const isSession = (0, import_utils3.isSessionProduct)(item);
184
191
  const isEject = type === "detail" || item.bundle_group_count > 0 || isSession;
185
192
  let lock = false;
@@ -195,10 +202,11 @@ var Info = (props) => {
195
202
  package: true
196
203
  },
197
204
  is_eject: isEject ? 1 : 0,
198
- isOS: isSession
205
+ isOS: isSession,
206
+ customer_id: (_b2 = (_a2 = state.client) == null ? void 0 : _a2.value) == null ? void 0 : _b2.id
199
207
  },
200
208
  callback: (e, extension_type, detail) => {
201
- var _a2;
209
+ var _a3;
202
210
  if (lock) {
203
211
  return;
204
212
  }
@@ -228,7 +236,7 @@ var Info = (props) => {
228
236
  cacheItem._extend.origin_total = _total;
229
237
  const _isEdit = !!state.service.cacheItem;
230
238
  if (_isEdit) {
231
- cacheItem._id = (_a2 = state.service.cacheItem) == null ? void 0 : _a2._id;
239
+ cacheItem._id = (_a3 = state.service.cacheItem) == null ? void 0 : _a3._id;
232
240
  cacheItem.new = 0;
233
241
  }
234
242
  if (renderMode === "current") {
@@ -285,23 +293,23 @@ var Info = (props) => {
285
293
  _list,
286
294
  search ? (item) => isIncludes(item.title) : void 0
287
295
  );
288
- }, [search, (_a = state.service) == null ? void 0 : _a.services]);
296
+ }, [search, (_c = state.service) == null ? void 0 : _c.services]);
289
297
  const isService = (0, import_react.useMemo)(() => {
290
298
  return state.service.value.length > 0;
291
299
  }, [state.service.value]);
292
300
  (0, import_react.useEffect)(() => {
293
- var _a2, _b2, _c2, _d2, _e, _f, _g;
301
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g;
294
302
  if (shopList.includes(
295
- (_e = (_d2 = (_c2 = (_b2 = (_a2 = context.appHelper.utils.store) == null ? void 0 : _a2.getState) == null ? void 0 : _b2.call(_a2)) == null ? void 0 : _c2.global) == null ? void 0 : _d2.globalConfig) == null ? void 0 : _e.id
303
+ (_e2 = (_d2 = (_c2 = (_b2 = (_a2 = context.appHelper.utils.store) == null ? void 0 : _a2.getState) == null ? void 0 : _b2.call(_a2)) == null ? void 0 : _c2.global) == null ? void 0 : _d2.globalConfig) == null ? void 0 : _e2.id
296
304
  ) || state.closeAutoOpenService) {
297
305
  return;
298
306
  }
299
- if (state.modalOpen && !state.bookingId && state.renderType !== "eventBooking" && ((_g = (_f = state.service) == null ? void 0 : _f.value) == null ? void 0 : _g.length) === 0) {
307
+ if (state.modalOpen && !state.bookingId && state.renderType !== "eventBooking" && ((_g = (_f2 = state.service) == null ? void 0 : _f2.value) == null ? void 0 : _g.length) === 0) {
300
308
  setTimeout(() => {
301
309
  handleSelectService();
302
310
  }, 10);
303
311
  }
304
- }, [state.modalOpen, state.bookingId, (_b = state.service) == null ? void 0 : _b.value]);
312
+ }, [state.modalOpen, state.bookingId, (_d = state.service) == null ? void 0 : _d.value]);
305
313
  const showAddButton = (0, import_react.useMemo)(() => {
306
314
  return !state.disabledEdit && !state.channelDisabledEdit;
307
315
  }, [state.disabledEdit, state.channelDisabledEdit]);
@@ -310,20 +318,20 @@ var Info = (props) => {
310
318
  }, [state.date.value]);
311
319
  (0, import_ahooks.useUpdateEffect)(() => {
312
320
  if (state.service.addModal) {
313
- getServices({ schedule_date: currentDate });
321
+ getServices({ schedule_date: currentDate, customer_id: customerId });
314
322
  setSearch("");
315
323
  }
316
- }, [state.service.addModal, currentDate]);
324
+ }, [state.service.addModal, currentDate, customerId]);
317
325
  (0, import_react.useEffect)(() => {
318
326
  if (renderMode === "current") {
319
- getServices({ schedule_date: currentDate });
327
+ getServices({ schedule_date: currentDate, customer_id: customerId });
320
328
  }
321
- }, [renderMode, currentDate]);
329
+ }, [renderMode, currentDate, customerId]);
322
330
  (0, import_react.useEffect)(() => {
323
331
  if (state.renderType === "eventBooking" && state.modalOpen) {
324
- getServices({ schedule_date: currentDate });
332
+ getServices({ schedule_date: currentDate, customer_id: customerId });
325
333
  }
326
- }, [state.renderType, state.modalOpen, currentDate]);
334
+ }, [state.renderType, state.modalOpen, currentDate, customerId]);
327
335
  const addButton = (0, import_react.useMemo)(() => {
328
336
  if (state.isBookingCreatePage) {
329
337
  return /* @__PURE__ */ import_react.default.createElement("div", { style: { height: 20 } });
@@ -394,7 +402,7 @@ var Info = (props) => {
394
402
  content
395
403
  );
396
404
  }
397
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, ((_d = (_c = state.service) == null ? void 0 : _c.cacheItem) == null ? void 0 : _d.autoClose) && /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { loading: true, active: true, round: true }), addButton, /* @__PURE__ */ import_react.default.createElement(
405
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, ((_f = (_e = state.service) == null ? void 0 : _e.cacheItem) == null ? void 0 : _f.autoClose) && /* @__PURE__ */ import_react.default.createElement(import_antd.Skeleton, { loading: true, active: true, round: true }), addButton, /* @__PURE__ */ import_react.default.createElement(
398
406
  import_drawer.default,
399
407
  {
400
408
  titleNoWrap: true,
@@ -294,7 +294,7 @@ var Info = (_, ref) => {
294
294
  return ((_d2 = (_c2 = (_b2 = (_a2 = state.service) == null ? void 0 : _a2.cacheItem) == null ? void 0 : _b2._extend) == null ? void 0 : _c2.other) == null ? void 0 : _d2.bundle) || [];
295
295
  }, [(_m = (_l = (_k = (_j = state.service) == null ? void 0 : _j.cacheItem) == null ? void 0 : _k._extend) == null ? void 0 : _l.other) == null ? void 0 : _m.bundle]);
296
296
  const handleEdit = (e) => {
297
- var _a2, _b2, _c2;
297
+ var _a2, _b2, _c2, _d2, _e2;
298
298
  const item = state.service.cacheItem;
299
299
  let values = form.getFieldsValue();
300
300
  const isSession = (0, import_utils3.isSessionProduct)(item);
@@ -318,6 +318,7 @@ var Info = (_, ref) => {
318
318
  package: true
319
319
  },
320
320
  isOS: isSession,
321
+ customer_id: (_e2 = (_d2 = state.client) == null ? void 0 : _d2.value) == null ? void 0 : _e2.id,
321
322
  value: {
322
323
  ...item._extend.other,
323
324
  ...sessionValue
@@ -41,6 +41,7 @@ var import_addTimeModal = __toESM(require("./addTimeModal"));
41
41
  var import_useInfoHolder = __toESM(require("../../info/hooks/useInfoHolder"));
42
42
  var import_Lists = __toESM(require("../../info/service/Lists"));
43
43
  var import_useClearCart = __toESM(require("../../hooks/useClearCart"));
44
+ var import_useQuotation = __toESM(require("../../hooks/useQuotation"));
44
45
  var Service = () => {
45
46
  const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
46
47
  const {
@@ -54,6 +55,7 @@ var Service = () => {
54
55
  document.body.id = "body";
55
56
  }, []);
56
57
  const clearCart = (0, import_useClearCart.default)(state, dispatch);
58
+ const { dom } = (0, import_useQuotation.default)(state, dispatch);
57
59
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-wrap" }, clearCart, /* @__PURE__ */ import_react.default.createElement(
58
60
  import_Lists.default,
59
61
  {
@@ -62,6 +64,6 @@ var Service = () => {
62
64
  onAction: handleAction,
63
65
  onChange: (e, type) => dispatchService(type || "setService", e)
64
66
  }
65
- ), !state.isBookingCreatePage ? /* @__PURE__ */ import_react.default.createElement(import_addService.default, { onEdit: handleEdit }) : null), /* @__PURE__ */ import_react.default.createElement(import_editService.default, { ref: detailRef }), showAddTimeModal && /* @__PURE__ */ import_react.default.createElement(import_addTimeModal.default, null));
67
+ ), !state.isBookingCreatePage ? /* @__PURE__ */ import_react.default.createElement(import_addService.default, { onEdit: handleEdit }) : null), /* @__PURE__ */ import_react.default.createElement(import_editService.default, { ref: detailRef }), showAddTimeModal && /* @__PURE__ */ import_react.default.createElement(import_addTimeModal.default, null), dom);
66
68
  };
67
69
  var service_default = import_react.default.memo(Service);
@@ -266,6 +266,8 @@ declare const _default: {
266
266
  'pisell2.text.validity.expired': (str: string) => string;
267
267
  'pisell2.text.validity.expiring_soon': (str: string) => string;
268
268
  'pisell2.text.validity.valid_through': (str: string) => string;
269
+ 'pisell2.text.quotation.product.change.title': string;
270
+ 'pisell2.text.quotation.product.change.describe': string;
269
271
  };
270
272
  'zh-CN': {
271
273
  'pisell2.text.refunded-amount': string;
@@ -534,6 +536,8 @@ declare const _default: {
534
536
  'pisell2.text.validity.expired': (str: string) => string;
535
537
  'pisell2.text.validity.expiring_soon': (str: string) => string;
536
538
  'pisell2.text.validity.valid_through': (str: string) => string;
539
+ 'pisell2.text.quotation.product.change.title': string;
540
+ 'pisell2.text.quotation.product.change.describe': string;
537
541
  };
538
542
  'zh-HK': {
539
543
  'pisell2.text.refunded-amount': string;
@@ -802,6 +806,8 @@ declare const _default: {
802
806
  'pisell2.text.validity.expired': (str: string) => string;
803
807
  'pisell2.text.validity.expiring_soon': (str: string) => string;
804
808
  'pisell2.text.validity.valid_through': (str: string) => string;
809
+ 'pisell2.text.quotation.product.change.title': string;
810
+ 'pisell2.text.quotation.product.change.describe': string;
805
811
  };
806
812
  };
807
813
  export default _default;
@@ -327,7 +327,9 @@ var locales_default = {
327
327
  },
328
328
  "pisell2.text.validity.valid_through": (str) => {
329
329
  return `Valid through ${str}`;
330
- }
330
+ },
331
+ "pisell2.text.quotation.product.change.title": "Notification",
332
+ "pisell2.text.quotation.product.change.describe": "Product updates available: Please refresh the following items to load the latest data."
331
333
  },
332
334
  "zh-CN": {
333
335
  "pisell2.text.refunded-amount": "已退金额",
@@ -627,7 +629,9 @@ var locales_default = {
627
629
  },
628
630
  "pisell2.text.validity.valid_through": (str) => {
629
631
  return `有效期至 ${str} (含当日)`;
630
- }
632
+ },
633
+ "pisell2.text.quotation.product.change.title": "提示",
634
+ "pisell2.text.quotation.product.change.describe": "以下商品信息已更新,请重新编辑相关商品以同步最新数据。"
631
635
  },
632
636
  "zh-HK": {
633
637
  "pisell2.text.refunded-amount": "已退金額",
@@ -927,6 +931,8 @@ var locales_default = {
927
931
  },
928
932
  "pisell2.text.validity.valid_through": (str) => {
929
933
  return `有效期至 ${str} (含當日)`;
930
- }
934
+ },
935
+ "pisell2.text.quotation.product.change.title": "提示",
936
+ "pisell2.text.quotation.product.change.describe": "以下商品信息已更新,请重新编辑相关商品以同步最新数据。"
931
937
  }
932
938
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ className, isMobile, onChange }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  declare const _default: ({ onChange, className, isMobile }: ActionProps) => JSX.Element;
3
4
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ActionProps } from '../../const';
2
3
  /**
3
4
  * @title: 支付状态未知页面
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PosProps } from './const';
2
3
  import './index.less';
3
4
  declare const _default: (props: PosProps) => JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PayProps } from './const';
2
3
  import './index.less';
3
4
  /**
@@ -297,7 +297,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
297
297
  amount?: string | number | undefined;
298
298
  mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | undefined;
301
301
  action?: "amount" | "deviceList" | "pay" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -39,9 +39,12 @@ var import_Sales = require("../../../../../Sales");
39
39
  var import_utils2 = require("../../../../../Sales/Checkout/utils");
40
40
  var import_OrderProductModal = __toESM(require("../../OrderProductModal/index"));
41
41
  var import_EmptyHolderModal = __toESM(require("../../EmptyHolderModal"));
42
+ var import_serve = require("../../../../../Sales/Event/serve");
43
+ var import_ahooks = require("ahooks");
44
+ var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngineContext"));
42
45
  var import_index = require("./index.less");
43
46
  var ContinueButton = () => {
44
- var _a;
47
+ var _a, _b;
45
48
  const { data } = (0, import_Sales.useSales)();
46
49
  const { onHolderOpen } = (0, import_Sales.useHolder)();
47
50
  const { checkHolder, onCloseCart, cartData, getWithoutCartItemsHolderNames } = (0, import_Sales.useCart)();
@@ -56,7 +59,9 @@ var ContinueButton = () => {
56
59
  const [openCheckout, setOpenCheckout] = (0, import_react.useState)(false);
57
60
  const [checkedNumber, setCheckedNumber] = (0, import_react.useState)(0);
58
61
  const [openEmptyHolder, setOpenEmptyHolder] = (0, import_react.useState)(false);
59
- const { removeSessionStorage } = (0, import_Sales.useSales)();
62
+ const { setData, removeSessionStorage } = (0, import_Sales.useSales)();
63
+ const context = (0, import_useEngineContext.default)();
64
+ const { store } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
60
65
  const handleCheckout = async () => {
61
66
  var _a2;
62
67
  const value = (0, import_utils2.formatValues)(data);
@@ -69,6 +74,48 @@ var ContinueButton = () => {
69
74
  });
70
75
  }
71
76
  };
77
+ const getEventDetailBookingOptions = (0, import_ahooks.useRequest)(
78
+ import_serve.getEventDetailBookingOptionsApi,
79
+ {
80
+ manual: true,
81
+ onSuccess: (res) => {
82
+ var _a2;
83
+ const list = ((_a2 = res.data) == null ? void 0 : _a2.list) || [];
84
+ const productById = list.reduce((pre, cur) => {
85
+ pre[cur.id] = cur;
86
+ return pre;
87
+ }, {});
88
+ const newCartItems = cartData.cartItems.map((item) => {
89
+ const { product } = item._originData || {};
90
+ let newProduct = productById[product.product_id];
91
+ item.price = newProduct.price;
92
+ item.total = newProduct.price;
93
+ return item;
94
+ });
95
+ setData({
96
+ cartData: {
97
+ ...cartData,
98
+ cartItems: newCartItems
99
+ }
100
+ });
101
+ }
102
+ }
103
+ );
104
+ const getCartItemProductsWithQuotation = async () => {
105
+ var _a2, _b2;
106
+ const ids = cartData.cartItems.map((item) => {
107
+ const { product } = item._originData || {};
108
+ return product == null ? void 0 : product.product_id;
109
+ }).filter((id) => !!id);
110
+ const customer = (_b2 = (_a2 = store == null ? void 0 : store.getState()) == null ? void 0 : _a2.global) == null ? void 0 : _b2.userInfo;
111
+ getEventDetailBookingOptions.run({
112
+ ids,
113
+ num: 100,
114
+ skip: 1,
115
+ customer_id: customer == null ? void 0 : customer.id,
116
+ open_quotation: 1
117
+ });
118
+ };
72
119
  const handleNextStep = async () => {
73
120
  onCloseCart();
74
121
  setOpenEmptyHolder(false);
@@ -108,8 +155,9 @@ var ContinueButton = () => {
108
155
  if (!isLogin()) {
109
156
  onCloseCart();
110
157
  return openLoginModal({
111
- callback: (status) => {
158
+ callback: async (status) => {
112
159
  if (status === "success") {
160
+ await getCartItemProductsWithQuotation();
113
161
  handleHolder();
114
162
  }
115
163
  }
@@ -131,7 +179,7 @@ var ContinueButton = () => {
131
179
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
132
180
  import_materials.Button,
133
181
  {
134
- disabled: !((_a = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _a.length),
182
+ disabled: !((_b = cartData == null ? void 0 : cartData.cartItems) == null ? void 0 : _b.length),
135
183
  size: "large",
136
184
  type: "primary",
137
185
  onClick: () => handleContinue(),
@@ -39,14 +39,24 @@ var import_Sales = require("../../../../Sales");
39
39
  var import_bookingServiceList = __toESM(require("../../bookingServiceList"));
40
40
  var import_bookingDetailModal = __toESM(require("../../bookingDetailModal"));
41
41
  var import_index = require("./index.less");
42
+ var import_useLoginUser = __toESM(require("../../../../../hooks/useLoginUser"));
42
43
  var Event = () => {
43
44
  var _a, _b;
44
45
  const { eventData, selectEvent, getEventList, getEventListByTitle } = (0, import_Sales.useEvent)();
45
46
  const { data } = (0, import_Sales.useSales)();
47
+ const { changeAutoOperate } = (0, import_Sales.useStep)();
46
48
  const { onOpenEventDetail, open } = (0, import_Sales.useEventDetail)();
47
49
  const [lists, setLists] = (0, import_react.useState)();
50
+ const customer = (0, import_useLoginUser.default)();
48
51
  (0, import_react.useEffect)(() => {
49
- setLists((eventData == null ? void 0 : eventData.eventList) || []);
52
+ var _a2;
53
+ const eventList = (eventData == null ? void 0 : eventData.eventList) || [];
54
+ setLists(eventList);
55
+ if ((eventList == null ? void 0 : eventList.length) === 1 && ((_a2 = data == null ? void 0 : data.stepData) == null ? void 0 : _a2.isAutoOperate)) {
56
+ selectEvent(eventList[0]);
57
+ onOpenEventDetail(eventList[0]);
58
+ changeAutoOperate(false);
59
+ }
50
60
  }, [eventData == null ? void 0 : eventData.eventList]);
51
61
  (0, import_react.useEffect)(() => {
52
62
  var _a2, _b2;
@@ -55,9 +65,11 @@ var Event = () => {
55
65
  getEventList.run({
56
66
  event_item_resource_id: id,
57
67
  skip: 1,
58
- num: 100
68
+ num: 100,
69
+ customer_id: customer == null ? void 0 : customer.id,
70
+ open_quotation: 1
59
71
  });
60
- }, [(_b = (_a = data == null ? void 0 : data.resourceData) == null ? void 0 : _a.currentResourceItem) == null ? void 0 : _b.id]);
72
+ }, [(_b = (_a = data == null ? void 0 : data.resourceData) == null ? void 0 : _a.currentResourceItem) == null ? void 0 : _b.id, customer]);
61
73
  const handleClick = (item) => {
62
74
  selectEvent(item);
63
75
  onOpenEventDetail(item);
@@ -40,11 +40,24 @@ var import_resourceDisplay = __toESM(require("../../resourceDisplay"));
40
40
  var import_utils2 = require("../../../utils");
41
41
  var import_index = require("./index.less");
42
42
  var Resource = () => {
43
- var _a, _b;
43
+ var _a, _b, _c, _d, _e;
44
44
  const { data } = (0, import_Sales.useSales)();
45
45
  const { getResourceList, selectResource } = (0, import_Sales.useResource)();
46
46
  const { createCartItem } = (0, import_Sales.useCart)();
47
47
  const { nextStep } = (0, import_Sales.useStep)();
48
+ (0, import_react.useEffect)(() => {
49
+ var _a2, _b2, _c2;
50
+ const resourceList = ((_a2 = data == null ? void 0 : data.resourceData) == null ? void 0 : _a2.resourceList) || [];
51
+ if ((resourceList == null ? void 0 : resourceList.length) <= 0) {
52
+ return;
53
+ }
54
+ const resourceListChildren = ((_b2 = resourceList == null ? void 0 : resourceList[0]) == null ? void 0 : _b2.children) || [];
55
+ if ((resourceList == null ? void 0 : resourceList.length) === 1 && (resourceListChildren == null ? void 0 : resourceListChildren.length) === 1 && ((_c2 = data == null ? void 0 : data.stepData) == null ? void 0 : _c2.isAutoOperate)) {
56
+ createCartItem();
57
+ selectResource(resourceListChildren[0]);
58
+ nextStep();
59
+ }
60
+ }, [(_a = data == null ? void 0 : data.resourceData) == null ? void 0 : _a.resourceList]);
48
61
  const handleClick = (item) => {
49
62
  createCartItem();
50
63
  selectResource(item);
@@ -71,7 +84,7 @@ var Resource = () => {
71
84
  className: `event-interface-resource-wrap ${(0, import_utils.isMobile)() ? "event-interface-resource-mobile-wrap" : ""}`
72
85
  },
73
86
  /* @__PURE__ */ import_react.default.createElement("span", { className: "title" }, import_utils.locales.getText("pisell2.event.select.campus")((0, import_utils2.resourceTitle)(data))),
74
- /* @__PURE__ */ import_react.default.createElement("div", { className: "content" }, (_b = (_a = data == null ? void 0 : data.resourceData) == null ? void 0 : _a.resourceList) == null ? void 0 : _b.map((item, index) => {
87
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "content" }, !((_c = (_b = data == null ? void 0 : data.resourceData) == null ? void 0 : _b.resourceList) == null ? void 0 : _c.length) ? /* @__PURE__ */ import_react.default.createElement(import_materials.Skeleton, { loading: true, active: true, paragraph: { rows: 3 } }) : (_e = (_d = data == null ? void 0 : data.resourceData) == null ? void 0 : _d.resourceList) == null ? void 0 : _e.map((item, index) => {
75
88
  return /* @__PURE__ */ import_react.default.createElement("div", { key: index, className: "content-item" }, /* @__PURE__ */ import_react.default.createElement("span", { className: "content-title" }, item == null ? void 0 : item.title), /* @__PURE__ */ import_react.default.createElement(
76
89
  import_materials.PisellViewGrid,
77
90
  {
@@ -79,7 +92,7 @@ var Resource = () => {
79
92
  columns: (0, import_utils.isMobile)() ? 1 : 3,
80
93
  verticalGap: 20,
81
94
  horizontalGap: 20,
82
- loading: getResourceList.loading,
95
+ loading: false,
83
96
  renderItem,
84
97
  className: "content-grid"
85
98
  }
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import './index.less';
3
- declare const _default: import("react").ForwardRefExoticComponent<Omit<any, "ref"> & import("react").RefAttributes<unknown>>;
3
+ declare const _default: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
4
4
  export default _default;
@@ -32,7 +32,7 @@ __export(SelectDate_exports, {
32
32
  default: () => SelectDate_default
33
33
  });
34
34
  module.exports = __toCommonJS(SelectDate_exports);
35
- var import_react = require("react");
35
+ var import_react = __toESM(require("react"));
36
36
  var import_classnames = __toESM(require("classnames"));
37
37
  var import_dayjs = __toESM(require("dayjs"));
38
38
  var import_materials = require("@pisell/materials");
@@ -73,7 +73,7 @@ var SelectDate = ({
73
73
  }
74
74
  };
75
75
  const extraHeader = () => {
76
- return /* @__PURE__ */ React.createElement(
76
+ return /* @__PURE__ */ import_react.default.createElement(
77
77
  "div",
78
78
  {
79
79
  onClick: (e) => {
@@ -82,7 +82,7 @@ var SelectDate = ({
82
82
  (_a = calendarDateRef == null ? void 0 : calendarDateRef.current) == null ? void 0 : _a.open(currentDate, detail == null ? void 0 : detail.id);
83
83
  }
84
84
  },
85
- /* @__PURE__ */ React.createElement(
85
+ /* @__PURE__ */ import_react.default.createElement(
86
86
  import_materials.Iconfont,
87
87
  {
88
88
  type: "pisell2-calendar",
@@ -91,7 +91,7 @@ var SelectDate = ({
91
91
  )
92
92
  );
93
93
  };
94
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
94
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
95
95
  import_OpenCard.default,
96
96
  {
97
97
  title: "Select a date",
@@ -100,7 +100,7 @@ var SelectDate = ({
100
100
  isClick: false,
101
101
  extra: showCalendarPopup ? extraHeader() : null
102
102
  },
103
- /* @__PURE__ */ React.createElement(
103
+ /* @__PURE__ */ import_react.default.createElement(
104
104
  import_CalenDateWeek.default,
105
105
  {
106
106
  currentDate,
@@ -109,8 +109,8 @@ var SelectDate = ({
109
109
  dateLimitData
110
110
  }
111
111
  ),
112
- /* @__PURE__ */ React.createElement(import_Status.default, null)
113
- ), /* @__PURE__ */ React.createElement(
112
+ /* @__PURE__ */ import_react.default.createElement(import_Status.default, null)
113
+ ), /* @__PURE__ */ import_react.default.createElement(
114
114
  import_CalendarDate.default,
115
115
  {
116
116
  ref: calendarDateRef,
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const Schedule: () => JSX.Element;
2
3
  export default Schedule;
@@ -39,6 +39,7 @@ var import_scheduleCalendar = __toESM(require("../../scheduleCalendar"));
39
39
  var import_Sales = require("../../../../Sales");
40
40
  var Schedule = () => {
41
41
  var _a;
42
+ const { initData } = (0, import_Sales.useInit)();
42
43
  const { detail, getEventDetailSelectDate } = (0, import_Sales.useEventDetail)();
43
44
  return /* @__PURE__ */ import_react.default.createElement(
44
45
  import_OpenCard.default,
@@ -61,7 +62,8 @@ var Schedule = () => {
61
62
  days: 366,
62
63
  start_date: `${e}-01`
63
64
  });
64
- }
65
+ },
66
+ type: initData == null ? void 0 : initData.scheduleDisplayType
65
67
  }
66
68
  )
67
69
  );
@@ -6,6 +6,7 @@ declare type CalendarItemProps = {
6
6
  onSelect: (date: string, item?: CalendarDataItem) => void;
7
7
  onChange: (date: string, type: string) => void;
8
8
  isEdit: boolean;
9
+ type?: 'calendarView' | 'textList';
9
10
  };
10
11
  declare const CalendarItem: (props: CalendarItemProps) => JSX.Element;
11
12
  export default CalendarItem;
@@ -40,9 +40,10 @@ var import_utils = require("../../utils");
40
40
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
41
41
  var import_zh_CN = __toESM(require("antd/es/date-picker/locale/zh_CN"));
42
42
  var import_en_US = __toESM(require("antd/es/date-picker/locale/en_US"));
43
+ var import_ScheduleTimes = __toESM(require("./components/ScheduleTimes"));
43
44
  var CalendarItem = (props) => {
44
45
  var _a, _b;
45
- const { month, schedulesData, selectDate, onSelect, isEdit, onChange } = props;
46
+ const { month, schedulesData, selectDate, onSelect, isEdit, onChange, type } = props;
46
47
  const context = (0, import_useEngineContext.default)();
47
48
  const utils = context.appHelper.utils || {};
48
49
  const locale = ((_b = (_a = utils == null ? void 0 : utils.storage) == null ? void 0 : _a.get("umi_locale")) == null ? void 0 : _b.includes("zh")) ? import_zh_CN.default : import_en_US.default;
@@ -52,14 +53,14 @@ var CalendarItem = (props) => {
52
53
  ),
53
54
  [schedulesData]
54
55
  );
55
- const handleMonth = (type) => {
56
+ const handleMonth = (type2) => {
56
57
  const date = /* @__PURE__ */ new Date(month + "-01");
57
- if (type === "prev") {
58
+ if (type2 === "prev") {
58
59
  date.setMonth(date.getMonth() - 1);
59
60
  } else {
60
61
  date.setMonth(date.getMonth() + 1);
61
62
  }
62
- onChange(date.toISOString().slice(0, 7), type);
63
+ onChange(date.toISOString().slice(0, 7), type2);
63
64
  };
64
65
  return /* @__PURE__ */ import_react.default.createElement("div", { className: "month-item" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "calendar-month" }, /* @__PURE__ */ import_react.default.createElement(
65
66
  "div",
@@ -75,7 +76,7 @@ var CalendarItem = (props) => {
75
76
  className: "calendar-month-icon"
76
77
  },
77
78
  /* @__PURE__ */ import_react.default.createElement(import_materials.Iconfont, { type: "pisell2-chevron-right" })
78
- )), /* @__PURE__ */ import_react.default.createElement(
79
+ )), type === "textList" ? /* @__PURE__ */ import_react.default.createElement(import_ScheduleTimes.default, { month, schedulesData }) : /* @__PURE__ */ import_react.default.createElement(
79
80
  import_antd.Calendar,
80
81
  {
81
82
  locale,
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const ScheduleTimeItem: ({ timeList }: any) => JSX.Element;
3
+ export default ScheduleTimeItem;