@pisell/private-materials 6.2.9 → 6.2.11

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 (240) 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 +2 -2
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/businessModel/SalesModel/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Cart/utils.js +8 -13
  13. package/es/components/appointmentBooking/components/Content/index.js +87 -8
  14. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  16. package/es/components/appointmentBooking/components/Services/index.js +7 -2
  17. package/es/components/appointmentBooking/components/Voucher/index.js +10 -10
  18. package/es/components/appointmentBooking/hooks.js +28 -30
  19. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  20. package/es/components/booking/components/TabProduct/tabs/index.js +5 -1
  21. package/es/components/booking/components/browserSelect/index.js +1 -1
  22. package/es/components/booking/components/customSelect/index.js +1 -0
  23. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  24. package/es/components/booking/forms/model.js +5 -5
  25. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  26. package/es/components/booking/forms/table/index.d.ts +1 -0
  27. package/es/components/booking/hooks/useClearCart.js +11 -8
  28. package/es/components/booking/info/client/index.js +3 -2
  29. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  30. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  31. package/es/components/booking/info/hooks/useInfoHolder.js +16 -9
  32. package/es/components/booking/info/service/Lists.js +36 -26
  33. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  34. package/es/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  35. package/es/components/booking/info/service/like/index.d.ts +1 -0
  36. package/es/components/booking/info/service/like/index.js +1 -1
  37. package/es/components/booking/info/service2/utils.js +20 -21
  38. package/es/components/booking/info2/index.js +1 -0
  39. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  40. package/es/components/booking/info2/service/addService/utils.js +6 -3
  41. package/es/components/booking/info2/service/addTimeModal/index.js +3 -0
  42. package/es/components/booking/info2/service/editService/Resources/index.js +5 -0
  43. package/es/components/booking/info2/service/editService/index.js +258 -165
  44. package/es/components/booking/info2/service/index.js +19 -15
  45. package/es/components/booking/materiels/duration/index.js +9 -2
  46. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  47. package/es/components/booking/materiels/startTime/index.js +1 -1
  48. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  49. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  50. package/es/components/booking/notes/model.js +5 -5
  51. package/es/components/booking/payments/model.js +5 -5
  52. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  53. package/es/components/eftpos/form/index.d.ts +1 -0
  54. package/es/components/eftpos/group/index.d.ts +1 -0
  55. package/es/components/eftpos/hooks.d.ts +1 -0
  56. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  57. package/es/components/eftpos/icon/device.d.ts +1 -0
  58. package/es/components/eftpos/receipt/index.d.ts +1 -0
  59. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  60. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  61. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  62. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  63. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  64. package/es/components/eftposPay/hooks.d.ts +2 -2
  65. package/es/components/eftposPay/store/index.d.ts +3 -3
  66. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  67. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  68. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  69. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  70. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  71. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  72. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  73. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  74. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  75. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  76. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  77. package/es/components/listComponent/index.js +5 -5
  78. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  79. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  80. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  81. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  82. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  83. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  84. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  85. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  86. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  87. package/es/components/productExtension/card/index.js +3 -3
  88. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  89. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  90. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  91. package/es/components/productExtension/fields/Forms/index.js +12 -12
  92. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  93. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  94. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  95. package/es/components/productExtension/server.js +2 -2
  96. package/es/components/productSelect/components/TabProduct/index.js +103 -39
  97. package/es/components/productSelect/components/TabProduct/tabs/index.less +1 -0
  98. package/es/components/productSelect/index.d.ts +2 -0
  99. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  100. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  101. package/es/components/schedules/calendar/index.js +4 -4
  102. package/es/components/schedules/calendar/serve.js +2 -2
  103. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  104. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  105. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  106. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  107. package/es/components/schedules/components/ResourceList/index.js +1 -1
  108. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  109. package/es/components/schedules/components/Search/index.js +5 -5
  110. package/es/components/schedules/model.js +5 -5
  111. package/es/components/schedules/openHours/index.js +1 -1
  112. package/es/components/schedules/openHours/serve.js +2 -2
  113. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  114. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  115. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  116. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  117. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  118. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  119. package/es/components/schedules/products/index.d.ts +1 -0
  120. package/es/components/schedules/products/serve.js +2 -2
  121. package/es/components/schedules/products/utils.js +5 -5
  122. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  123. package/es/components/schedules/resources/detail/index.js +10 -10
  124. package/es/components/schedules/resources/list/index.js +2 -2
  125. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  126. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  127. package/es/components/schedules/resources/serve.js +2 -2
  128. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  129. package/es/components/schedules/utils.js +4 -4
  130. package/es/components/selectModal/index.js +2 -2
  131. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  132. package/es/components/shoppingCart/components/Cart/Product.js +48 -41
  133. package/es/components/shoppingCart/components/Cart/index.js +21 -18
  134. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  135. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  136. package/es/components/ticketBooking/components/addServiceVariant/addService.js +175 -157
  137. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  138. package/es/components/ticketBooking/components/menuBar/index.js +38 -2
  139. package/es/components/ticketBooking/components/menuBar/index.less +8 -0
  140. package/es/components/ticketBooking/components/timeBar/index.js +78 -71
  141. package/es/components/ticketBooking/locales.d.ts +3 -0
  142. package/es/components/ticketBooking/locales.js +6 -3
  143. package/es/components/walletList/index.js +4 -4
  144. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  145. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  146. package/es/hooks/useComponents.js +1 -1
  147. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  148. package/lib/components/appointmentBooking/components/Cart/utils.js +0 -10
  149. package/lib/components/appointmentBooking/components/Content/index.js +44 -7
  150. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  151. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  152. package/lib/components/appointmentBooking/components/Services/index.js +6 -1
  153. package/lib/components/appointmentBooking/components/Voucher/index.js +0 -11
  154. package/lib/components/appointmentBooking/hooks.js +5 -16
  155. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  156. package/lib/components/booking/components/customSelect/index.js +1 -0
  157. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  158. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
  159. package/lib/components/booking/forms/table/index.d.ts +1 -0
  160. package/lib/components/booking/hooks/useClearCart.js +16 -13
  161. package/lib/components/booking/info/client/index.js +5 -4
  162. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  163. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  164. package/lib/components/booking/info/hooks/useInfoHolder.js +10 -9
  165. package/lib/components/booking/info/service/Lists.js +35 -23
  166. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  167. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  168. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  169. package/lib/components/booking/info/service2/utils.js +17 -17
  170. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  171. package/lib/components/booking/info2/service/addService/utils.js +4 -2
  172. package/lib/components/booking/info2/service/addTimeModal/index.js +3 -0
  173. package/lib/components/booking/info2/service/editService/Resources/index.js +2 -0
  174. package/lib/components/booking/info2/service/editService/index.js +132 -70
  175. package/lib/components/booking/info2/service/index.js +13 -9
  176. package/lib/components/booking/materiels/duration/index.js +7 -2
  177. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  178. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  179. package/lib/components/eftpos/form/index.d.ts +1 -0
  180. package/lib/components/eftpos/group/index.d.ts +1 -0
  181. package/lib/components/eftpos/hooks.d.ts +1 -0
  182. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  183. package/lib/components/eftpos/icon/device.d.ts +1 -0
  184. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  185. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  186. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  187. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  188. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  189. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  190. package/lib/components/eftposPay/hooks.d.ts +2 -2
  191. package/lib/components/eftposPay/store/index.d.ts +3 -3
  192. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  193. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  194. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  195. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  196. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  197. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  198. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  199. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  200. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  201. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  202. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  203. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  204. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  205. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  206. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  207. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  208. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  209. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  210. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  211. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  212. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  213. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  214. package/lib/components/productSelect/components/TabProduct/index.js +74 -37
  215. package/lib/components/productSelect/components/TabProduct/tabs/index.less +1 -0
  216. package/lib/components/productSelect/index.d.ts +2 -0
  217. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  218. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  219. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  220. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  221. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  222. package/lib/components/schedules/products/index.d.ts +1 -0
  223. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  224. package/lib/components/schedules/utils.js +1 -1
  225. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  226. package/lib/components/shoppingCart/components/Cart/Product.js +31 -21
  227. package/lib/components/shoppingCart/components/Cart/index.js +18 -15
  228. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  229. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  230. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +143 -127
  231. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  232. package/lib/components/ticketBooking/components/menuBar/index.js +42 -2
  233. package/lib/components/ticketBooking/components/menuBar/index.less +8 -0
  234. package/lib/components/ticketBooking/components/timeBar/index.js +95 -88
  235. package/lib/components/ticketBooking/locales.d.ts +3 -0
  236. package/lib/components/ticketBooking/locales.js +6 -3
  237. package/lib/components/walletList/index.js +3 -3
  238. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  239. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  240. package/package.json +3 -3
@@ -54,7 +54,7 @@ var import_utils6 = require("../../../info/service2/utils");
54
54
  var import_utils7 = require("../../../../ticketBooking/utils");
55
55
  var submitLock = false;
56
56
  var Info = (_, ref) => {
57
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F;
57
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I;
58
58
  const [form] = import_antd.Form.useForm();
59
59
  const useTotal = import_antd.Form.useWatch("total", form);
60
60
  const useResource = import_antd.Form.useWatch("resource", form);
@@ -67,7 +67,7 @@ var Info = (_, ref) => {
67
67
  var _a2, _b2;
68
68
  return ((_a2 = state == null ? void 0 : state.service) == null ? void 0 : _a2.cacheItem) && (0, import_utils6.isNormalProductByDurationSchedule)((_b2 = state == null ? void 0 : state.service) == null ? void 0 : _b2.cacheItem);
69
69
  }, [(_a = state == null ? void 0 : state.service) == null ? void 0 : _a.cacheItem]);
70
- const getCurrentCacheItem = (_cacheItem) => {
70
+ const getCurrentCacheItem = (0, import_ahooks.useMemoizedFn)((_cacheItem) => {
71
71
  let values = form.getFieldsValue();
72
72
  let _item = _cacheItem || state.service.cacheItem;
73
73
  return {
@@ -77,40 +77,43 @@ var Info = (_, ref) => {
77
77
  ...values
78
78
  }
79
79
  };
80
- };
80
+ });
81
81
  const currentResource = (0, import_react.useMemo)(() => {
82
82
  return null;
83
- }, [useResource]);
83
+ }, []);
84
84
  const durationProps = (0, import_react.useMemo)(() => {
85
85
  var _a2, _b2, _c2;
86
86
  let _cacheItem = getCurrentCacheItem();
87
- return (0, import_utils4.getDurationProps)({
87
+ const val2 = (0, import_utils4.getDurationProps)({
88
88
  cacheItem: _cacheItem,
89
89
  useStartTime,
90
- currentResource,
90
+ // currentResource,
91
91
  slice: (_c2 = (_b2 = (_a2 = state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.basic) == null ? void 0 : _c2.service_time
92
92
  });
93
+ return val2;
93
94
  }, [
94
- currentResource,
95
+ // currentResource,
95
96
  state.service.cacheItem,
96
97
  useStartTime,
97
98
  useResource,
98
99
  (_d = (_c = (_b = state.bookingConfig) == null ? void 0 : _b.config) == null ? void 0 : _c.basic) == null ? void 0 : _d.service_time
99
100
  ]);
100
101
  const flexibleOption = (0, import_react.useMemo)(() => {
101
- return (0, import_utils4.getFlexibleOption)({
102
+ const op = (0, import_utils4.getFlexibleOption)({
102
103
  durationProps
103
104
  });
105
+ return op;
104
106
  }, [durationProps, import_utils.locales.locale]);
105
107
  const timeObj = (0, import_react.useMemo)(() => {
106
- return (0, import_utils4.getTimeObj)({
108
+ const val2 = (0, import_utils4.getTimeObj)({
107
109
  durationProps,
108
110
  useStartTime,
109
111
  currentResource,
110
112
  state,
111
113
  useDuration
112
114
  });
113
- }, [durationProps, useStartTime, currentResource, state, useDuration]);
115
+ return val2;
116
+ }, [durationProps, useStartTime, currentResource, (_g = (_f = (_e = state.bookingConfig) == null ? void 0 : _e.config) == null ? void 0 : _f.basic) == null ? void 0 : _g.service_time, useDuration]);
114
117
  (0, import_react.useEffect)(() => {
115
118
  try {
116
119
  if (useDuration.indexOf("flexible_") == 0) {
@@ -218,13 +221,32 @@ var Info = (_, ref) => {
218
221
  }
219
222
  });
220
223
  };
224
+ const { run: setEditDataRun } = (0, import_ahooks.useDebounceFn)(
225
+ (...params) => {
226
+ setEditData(...params);
227
+ },
228
+ {
229
+ wait: 50,
230
+ leading: true,
231
+ trailing: false
232
+ }
233
+ );
221
234
  const setEditData = (0, import_ahooks.useMemoizedFn)(
222
235
  (_cacheItem, open, openProductDetail) => {
223
- form.resetFields();
236
+ console.timeEnd("handleChange");
237
+ console.log("setEditDatasetEditData", _cacheItem, open);
224
238
  isChangeTotal.current = false;
225
239
  let cacheItem = _cacheItem || state.service.cacheItem;
226
240
  let values = cacheItem._extend;
241
+ const startTime2 = performance.now();
242
+ console.log(startTime2, "startTime");
243
+ form.resetFields();
227
244
  form.setFieldsValue(values);
245
+ const endTime = performance.now();
246
+ console.log(endTime - window.pp1, "打开商品5");
247
+ console.log("执行时间", endTime - startTime2, values);
248
+ setTimeout(() => {
249
+ }, 20);
228
250
  if (openProductDetail) {
229
251
  setTimeout(() => {
230
252
  handleEdit({});
@@ -237,7 +259,7 @@ var Info = (_, ref) => {
237
259
  let oPrice = Number(((_a2 = state.service.cacheItem) == null ? void 0 : _a2._extend.origin_total) || 0);
238
260
  let cPrice = Number(useTotal || 0);
239
261
  return cPrice !== oPrice;
240
- }, [useTotal, (_f = (_e = state.service.cacheItem) == null ? void 0 : _e._extend) == null ? void 0 : _f.origin_total]);
262
+ }, [useTotal, (_i = (_h = state.service.cacheItem) == null ? void 0 : _h._extend) == null ? void 0 : _i.origin_total]);
241
263
  const getResources = () => {
242
264
  let res = (0, import_utils4.formatResources)({
243
265
  cacheItem: getCurrentCacheItem(),
@@ -259,9 +281,9 @@ var Info = (_, ref) => {
259
281
  updateResourceErrors(res.maps);
260
282
  };
261
283
  const updateResourceErrors = (resourceMaps) => {
262
- let { resource } = form.getFieldsValue();
263
- if (resource) {
264
- let _resource = { ...resource };
284
+ let { resource: resource2 } = form.getFieldsValue();
285
+ if (resource2) {
286
+ let _resource = { ...resource2 };
265
287
  for (let form_id in _resource) {
266
288
  _resource[form_id] = _resource[form_id].map((d) => {
267
289
  var _a2, _b2;
@@ -295,24 +317,17 @@ var Info = (_, ref) => {
295
317
  ]);
296
318
  (0, import_react.useEffect)(() => {
297
319
  if (state.isBookingCreatePage && state.service.editModal) {
298
- setEditData(null);
320
+ setEditDataRun(null);
299
321
  }
300
322
  }, [state.service.editModal, state.isBookingCreatePage]);
301
323
  (0, import_react.useEffect)(() => {
302
324
  getDiscount();
303
- }, [useTotal, (_h = (_g = state.service.cacheItem) == null ? void 0 : _g._extend) == null ? void 0 : _h.origin_total]);
304
- const isDiscount = (0, import_react.useMemo)(() => {
305
- var _a2, _b2, _c2;
306
- if (!((_a2 = state.service) == null ? void 0 : _a2.cacheItem)) {
307
- return false;
308
- }
309
- return useTotal != ((_c2 = (_b2 = state.service) == null ? void 0 : _b2.cacheItem) == null ? void 0 : _c2._extend.origin_total);
310
- }, [useTotal, (_j = (_i = state.service) == null ? void 0 : _i.cacheItem) == null ? void 0 : _j._extend.origin_total]);
325
+ }, [useTotal, (_k = (_j = state.service.cacheItem) == null ? void 0 : _j._extend) == null ? void 0 : _k.origin_total]);
311
326
  const bundles = (0, import_react.useMemo)(() => {
312
327
  var _a2, _b2, _c2, _d2;
313
328
  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) || [];
314
- }, [(_n = (_m = (_l = (_k = state.service) == null ? void 0 : _k.cacheItem) == null ? void 0 : _l._extend) == null ? void 0 : _m.other) == null ? void 0 : _n.bundle]);
315
- const handleEdit = (e) => {
329
+ }, [(_o = (_n = (_m = (_l = state.service) == null ? void 0 : _l.cacheItem) == null ? void 0 : _m._extend) == null ? void 0 : _n.other) == null ? void 0 : _o.bundle]);
330
+ const handleEdit = (0, import_ahooks.useMemoizedFn)((e) => {
316
331
  var _a2, _b2, _c2, _d2, _e2;
317
332
  const item = state.service.cacheItem;
318
333
  let values = form.getFieldsValue();
@@ -398,8 +413,8 @@ var Info = (_, ref) => {
398
413
  });
399
414
  }
400
415
  });
401
- };
402
- const handleChange = (e) => {
416
+ });
417
+ const handleChange = (0, import_ahooks.useMemoizedFn)((e) => {
403
418
  if (state.channelDisabledEdit) {
404
419
  return;
405
420
  }
@@ -413,10 +428,10 @@ var Info = (_, ref) => {
413
428
  // changeService: true,
414
429
  }
415
430
  });
416
- };
431
+ });
417
432
  (0, import_react.useImperativeHandle)(ref, () => {
418
433
  return {
419
- init: setEditData
434
+ init: setEditDataRun
420
435
  };
421
436
  });
422
437
  const handleTotalChange = (number) => {
@@ -428,43 +443,30 @@ var Info = (_, ref) => {
428
443
  }
429
444
  return false;
430
445
  }, [state.renderType, isNormalProduct]);
431
- const SelectTime = (_o = window.BaseMaterials) == null ? void 0 : _o.SelectTime;
432
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
433
- import_drawer.default,
434
- {
435
- titleNoWrap: true,
436
- zIndex: state.service.changeService ? 999 : 1e3,
437
- forceRender: true,
438
- mask: state.drawerMask,
439
- open: state.service.editModal && !((_p = state.service.cacheItem) == null ? void 0 : _p.autoClose),
440
- title: import_utils.locales.getText("pisell2.text.edit-service"),
441
- onClose: () => {
442
- dispatch({
443
- type: "setService",
444
- payload: {
445
- editModal: false,
446
- cacheItem: null,
447
- changeService: false
448
- }
449
- });
450
- }
451
- },
452
- /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { layout: "vertical", form, onFinish }, /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { style: { width: "100%" }, gutter: [16, 0] }, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "product_name" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name" }, ((_s = (_r = (_q = state.service) == null ? void 0 : _q.cacheItem) == null ? void 0 : _r._extend) == null ? void 0 : _s.product_name) || "-"), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleEdit }, import_utils.locales.getText("pisell2.text.edit")), !state.isBookingCreatePage && /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleChange }, import_utils.locales.getText("pisell2.text.change"))), /* @__PURE__ */ import_react.default.createElement(
446
+ const SelectTime = (_p = window.BaseMaterials) == null ? void 0 : _p.SelectTime;
447
+ console.log(isShowTimeAndResource, "isShowTimeAndResource");
448
+ const productName = (0, import_react.useMemo)(() => {
449
+ var _a2, _b2, _c2;
450
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { name: "product_name" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name-wrap" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "current-service-info-name" }, ((_c2 = (_b2 = (_a2 = state.service) == null ? void 0 : _a2.cacheItem) == null ? void 0 : _b2._extend) == null ? void 0 : _c2.product_name) || "-"), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleEdit }, import_utils.locales.getText("pisell2.text.edit")), !state.isBookingCreatePage && /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: handleChange }, import_utils.locales.getText("pisell2.text.change"))), /* @__PURE__ */ import_react.default.createElement(
453
451
  import_collapsibleList.default,
454
452
  {
455
453
  style: { marginTop: bundles.length ? "8px" : 0 },
456
454
  list: bundles,
457
455
  renderItem: (item) => (0, import_utils2.renderBundles)(item, state.amountSymbol)
458
456
  }
459
- )))), /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
457
+ ))));
458
+ }, [(_s = (_r = (_q = state.service) == null ? void 0 : _q.cacheItem) == null ? void 0 : _r._extend) == null ? void 0 : _s.product_name, bundles, state.amountSymbol, state.isBookingCreatePage]);
459
+ const price = (0, import_react.useMemo)(() => {
460
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
461
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
460
462
  import_antd.Form.Item,
461
463
  {
462
464
  label: import_utils.locales.getText("pisell2.text.price"),
463
465
  name: "total",
464
466
  rules: [{ required: true }],
465
- extra: useTotal !== ((_u = (_t = state.service.cacheItem) == null ? void 0 : _t._extend) == null ? void 0 : _u.origin_total) && import_utils.locales.getText("page.booking.text.price-extra")(
467
+ extra: useTotal !== ((_b2 = (_a2 = state.service.cacheItem) == null ? void 0 : _a2._extend) == null ? void 0 : _b2.origin_total) && import_utils.locales.getText("page.booking.text.price-extra")(
466
468
  (0, import_utils.formatAmount)(
467
- (_w = (_v = state.service.cacheItem) == null ? void 0 : _v._extend) == null ? void 0 : _w.origin_total,
469
+ (_d2 = (_c2 = state.service.cacheItem) == null ? void 0 : _c2._extend) == null ? void 0 : _d2.origin_total,
468
470
  2,
469
471
  state.amountSymbol
470
472
  ),
@@ -480,18 +482,25 @@ var Info = (_, ref) => {
480
482
  prefix: state.amountSymbol,
481
483
  onChange: handleTotalChange,
482
484
  disabled: state.channelDisabledEdit,
483
- originValue: ((_y = (_x = state.service.cacheItem) == null ? void 0 : _x._extend) == null ? void 0 : _y.origin_total) || 0,
484
- placeholder: ((_A = (_z = state.service.cacheItem) == null ? void 0 : _z._extend) == null ? void 0 : _A.origin_total) || "0"
485
+ originValue: ((_f2 = (_e2 = state.service.cacheItem) == null ? void 0 : _e2._extend) == null ? void 0 : _f2.origin_total) || 0,
486
+ placeholder: ((_h2 = (_g2 = state.service.cacheItem) == null ? void 0 : _g2._extend) == null ? void 0 : _h2.origin_total) || "0"
485
487
  }
486
488
  )
487
- )), isReason ? /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
489
+ ));
490
+ }, [useTotal, (_u = (_t = state.service.cacheItem) == null ? void 0 : _t._extend) == null ? void 0 : _u.origin_total, state.amountSymbol, state.channelDisabledEdit]);
491
+ const reason = (0, import_react.useMemo)(() => {
492
+ return isReason ? /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
488
493
  import_antd.Form.Item,
489
494
  {
490
495
  label: import_utils.locales.getText("pisell2.text.discount-reason"),
491
496
  name: "discount_reason"
492
497
  },
493
498
  /* @__PURE__ */ import_react.default.createElement(import_antd.Input.TextArea, { size: "large" })
494
- )) : null, isShowTimeAndResource && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
499
+ )) : null;
500
+ }, [isReason]);
501
+ const startTime = (0, import_react.useMemo)(() => {
502
+ var _a2, _b2, _c2, _d2;
503
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
495
504
  import_antd.Form.Item,
496
505
  {
497
506
  label: import_utils.locales.getText("pisell2.text.start_time"),
@@ -501,7 +510,7 @@ var Info = (_, ref) => {
501
510
  SelectTime ? /* @__PURE__ */ import_react.default.createElement(
502
511
  SelectTime,
503
512
  {
504
- slice: (_E = (_D = (_C = (_B = state.bookingConfig) == null ? void 0 : _B.config) == null ? void 0 : _C.basic) == null ? void 0 : _D.service_time) == null ? void 0 : _E.value,
513
+ slice: (_d2 = (_c2 = (_b2 = (_a2 = state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.basic) == null ? void 0 : _c2.service_time) == null ? void 0 : _d2.value,
505
514
  timePickerProps: {
506
515
  style: { width: "100%" }
507
516
  },
@@ -510,7 +519,11 @@ var Info = (_, ref) => {
510
519
  }
511
520
  }
512
521
  ) : null
513
- )), /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
522
+ ));
523
+ }, [SelectTime, (_y = (_x = (_w = (_v = state.bookingConfig) == null ? void 0 : _v.config) == null ? void 0 : _w.basic) == null ? void 0 : _x.service_time) == null ? void 0 : _y.value]);
524
+ const duration = (0, import_react.useMemo)(() => {
525
+ console.log("render form duration");
526
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
514
527
  import_antd.Form.Item,
515
528
  {
516
529
  label: import_utils.locales.getText("pisell2.text.duration"),
@@ -518,23 +531,34 @@ var Info = (_, ref) => {
518
531
  rules: [{ required: true }]
519
532
  },
520
533
  /* @__PURE__ */ import_react.default.createElement(import_duration.default, { ...durationProps, timeObj })
521
- )), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { noStyle: true, name: "resource" }, /* @__PURE__ */ import_react.default.createElement(
534
+ ));
535
+ }, [durationProps, timeObj]);
536
+ const resource = (0, import_react.useMemo)(() => {
537
+ console.log("render form resource");
538
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { noStyle: true, name: "resource" }, /* @__PURE__ */ import_react.default.createElement(
522
539
  import_Resources.default,
523
540
  {
524
541
  ref: resourcesRef,
525
542
  state,
526
543
  cacheItem: state.service.cacheItem,
527
- getCurrentCacheItem,
528
- useDuration,
529
- useStartTime
544
+ getCurrentCacheItem
530
545
  }
531
- )), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { noStyle: true, name: "capacity" }, /* @__PURE__ */ import_react.default.createElement(
546
+ ));
547
+ }, [state.renderType, (_A = (_z = state.service.cacheItem) == null ? void 0 : _z._data) == null ? void 0 : _A.resources, (_C = (_B = state.service.cacheItem) == null ? void 0 : _B._data) == null ? void 0 : _C.resourceMaps]);
548
+ const capacity = (0, import_react.useMemo)(() => {
549
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { noStyle: true, name: "capacity" }, /* @__PURE__ */ import_react.default.createElement(
532
550
  import_Capacity.default,
533
551
  {
534
552
  state,
535
553
  cacheItem: state.service.cacheItem
536
554
  }
537
- )), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { hidden: true, name: "quantity" }, /* @__PURE__ */ import_react.default.createElement(import_antd.InputNumber, null))), isNormalProduct && /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
555
+ ));
556
+ }, [state.locale, state.isTerminal, (_F = (_E = (_D = state.service) == null ? void 0 : _D.cacheItem) == null ? void 0 : _E._data) == null ? void 0 : _F.capacitys]);
557
+ const hiddenQuantity = (0, import_react.useMemo)(() => {
558
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { hidden: true, name: "quantity" }, /* @__PURE__ */ import_react.default.createElement(import_antd.InputNumber, null));
559
+ }, []);
560
+ const quantity = (0, import_react.useMemo)(() => {
561
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
538
562
  import_antd.Form.Item,
539
563
  {
540
564
  label: import_utils.locales.getText("pisell2.text.quantity"),
@@ -556,7 +580,11 @@ var Info = (_, ref) => {
556
580
  }
557
581
  }
558
582
  )
559
- )))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit-footer" }, /* @__PURE__ */ import_react.default.createElement(
583
+ ));
584
+ }, []);
585
+ const footer = (0, import_react.useMemo)(() => {
586
+ var _a2;
587
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit-footer" }, /* @__PURE__ */ import_react.default.createElement(
560
588
  "div",
561
589
  {
562
590
  className: "pisell-lowcode__booking-service-delete-wrap",
@@ -568,13 +596,47 @@ var Info = (_, ref) => {
568
596
  {
569
597
  type: "primary",
570
598
  className: "pisell-lowcode__booking-service-body-edit-footer-apple",
571
- disabled: !isNormalProduct && !((_F = state.service.resourcesOrigin) == null ? void 0 : _F.length),
599
+ disabled: !isNormalProduct && !((_a2 = state.service.resourcesOrigin) == null ? void 0 : _a2.length),
572
600
  onClick: () => {
573
601
  form.submit();
574
602
  }
575
603
  },
576
604
  import_utils.locales.getText("pisell2.text.apply")
577
- )))
605
+ ));
606
+ }, [isNormalProduct, (_G = state.service.resourcesOrigin) == null ? void 0 : _G.length]);
607
+ console.log("render edit");
608
+ console.log(state.service.editModal && !((_H = state.service.cacheItem) == null ? void 0 : _H.autoClose), performance.now() - window.pp1, "打开商品1");
609
+ const [val, setVal] = (0, import_react.useState)(false);
610
+ (0, import_react.useEffect)(() => {
611
+ if (isShowTimeAndResource) {
612
+ setTimeout(() => {
613
+ setVal(true);
614
+ }, 200);
615
+ } else {
616
+ setVal(false);
617
+ }
618
+ }, [isShowTimeAndResource]);
619
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
620
+ import_drawer.default,
621
+ {
622
+ titleNoWrap: true,
623
+ zIndex: state.service.changeService ? 999 : 1e3,
624
+ forceRender: true,
625
+ mask: state.drawerMask,
626
+ open: state.service.editModal && !((_I = state.service.cacheItem) == null ? void 0 : _I.autoClose),
627
+ title: import_utils.locales.getText("pisell2.text.edit-service"),
628
+ onClose: () => {
629
+ dispatch({
630
+ type: "setService",
631
+ payload: {
632
+ editModal: false,
633
+ cacheItem: null,
634
+ changeService: false
635
+ }
636
+ });
637
+ }
638
+ },
639
+ /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { layout: "vertical", form, onFinish }, /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { style: { width: "100%" }, gutter: [16, 0] }, productName, price, reason, val && isShowTimeAndResource && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, startTime, duration, resource, capacity, hiddenQuantity), isNormalProduct && quantity)), footer)
578
640
  ));
579
641
  };
580
642
  var editService_default = (0, import_react.forwardRef)(Info);
@@ -56,14 +56,18 @@ var Service = () => {
56
56
  }, []);
57
57
  const clearCart = (0, import_useClearCart.default)(state, dispatch);
58
58
  const { dom } = (0, import_useQuotation.default)(state, dispatch);
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(
60
- import_Lists.default,
61
- {
62
- isParallelResource: true,
63
- onEdit: handleEdit,
64
- onAction: handleAction,
65
- onChange: (e, type) => dispatchService(type || "setService", e)
66
- }
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);
59
+ const renderMemo = (0, import_react.useMemo)(() => {
60
+ console.log("render info22222");
61
+ 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(
62
+ import_Lists.default,
63
+ {
64
+ isParallelResource: true,
65
+ onEdit: handleEdit,
66
+ onAction: handleAction,
67
+ onChange: (e, type) => dispatchService(type || "setService", e)
68
+ }
69
+ ), !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);
70
+ }, [clearCart, dom, showAddTimeModal, clearCart]);
71
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, renderMemo);
68
72
  };
69
73
  var service_default = import_react.default.memo(Service);
@@ -49,6 +49,7 @@ var Duration = (props) => {
49
49
  timeObj,
50
50
  ...resetProps
51
51
  } = props;
52
+ const startDateStr = (0, import_react.useMemo)(() => (0, import_dayjs.default)(startDate).format("YYYY-MM-DD HH:mm:ss"), [startDate]);
52
53
  const times = (0, import_react.useMemo)(() => {
53
54
  if (timeObj) {
54
55
  return timeObj.durationSlicesBasedOnTime;
@@ -76,7 +77,7 @@ var Duration = (props) => {
76
77
  });
77
78
  }
78
79
  return durationSlicesBasedOnTime;
79
- }, [timeObj, slice, locale, duration, startDate, usableTime]);
80
+ }, [timeObj.durationSlicesBasedOnTime, slice, locale, duration, startDateStr, usableTime == null ? void 0 : usableTime.end_at]);
80
81
  (0, import_react.useEffect)(() => {
81
82
  timeObjChange == null ? void 0 : timeObjChange(times);
82
83
  }, [times]);
@@ -88,6 +89,10 @@ var Duration = (props) => {
88
89
  },
89
90
  []
90
91
  );
91
- return /* @__PURE__ */ import_react.default.createElement(import_antd.Select, { ...selectProps, ...resetProps }, renderOptions(times));
92
+ const options = (0, import_react.useMemo)(() => {
93
+ console.log("render form options");
94
+ return renderOptions(times);
95
+ }, [times]);
96
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Select, { ...selectProps, ...resetProps }, options);
92
97
  };
93
98
  var duration_default = Duration;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface HolderProps extends SelectProps {
3
4
  selectProps?: SelectProps;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 递归循环表单数据
3
4
  * @Author: hongbing.wang
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RadioGroupProps } from 'antd';
2
3
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
3
4
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Eftpos } from './const';
2
3
  /**
3
4
  * @title: tyro 设备连接
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ color }: {
2
3
  color?: string | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: ({ color }: {
2
3
  color?: string | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 自定义组件设置
3
4
  * @description: 自定义组件设置
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.css';
2
3
  /**
3
4
  * @title: 自定义组件设置
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: () => JSX.Element;
2
3
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './titlebar.less';
2
3
  declare enum EPopupTitleBarVariantType {
3
4
  BackTitleClose = "back-title-cancel",
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { StatusType } from '../../const';
2
3
  declare const _default: (props: {
3
4
  status: StatusType;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const _default: (props: {
2
3
  status: string;
3
4
  pedding?: string;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
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<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "stripe" | "payo" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "success" | "warn" | "loading" | "fail" | "question";
177
+ status: "success" | "loading" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -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?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
300
+ eftpos?: "tyro" | "windcave" | "stripe" | "payo" | "linkly" | undefined;
301
301
  action?: "amount" | "pay" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "success" | "warn" | "loading" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 获取 Tyro 资源
3
4
  * @description:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ErrorTip: ({ text }: any) => JSX.Element;
3
4
  export default ErrorTip;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const InformationOptionsModal: (props: any) => JSX.Element;
3
4
  export default InformationOptionsModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Status: (props: any) => JSX.Element;
3
4
  export default Status;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type CallToBookProps = {
2
3
  show: boolean;
3
4
  type: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const WeekItem: (props: any) => JSX.Element;
3
4
  export default WeekItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type CalenDateWeekProps = {
3
4
  currentDate: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const DayItem: (props: any) => JSX.Element;
3
4
  export default DayItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { CalendarItemProps } from '../../../../../type';
3
4
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Status: (props: any) => JSX.Element;
3
4
  export default Status;