@pisell/private-materials 6.2.15 → 6.2.17

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 (242) 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/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/businessModel/SalesModel/index.d.ts +1 -0
  8. package/es/components/Sales/Checkout/utils.d.ts +40 -0
  9. package/es/components/Sales/Summary/utils.d.ts +1 -1
  10. package/es/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  11. package/es/components/appointmentBooking/components/Content/index.d.ts +3 -0
  12. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/Services/index.d.ts +4 -0
  15. package/es/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  16. package/es/components/appointmentBooking/hooks.d.ts +106 -0
  17. package/es/components/appointmentBooking/index.d.ts +3 -0
  18. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  19. package/es/components/booking/components/customSelect/index.js +1 -0
  20. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  21. package/es/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  22. package/es/components/booking/components/voucher/index.d.ts +3 -0
  23. package/es/components/booking/forms/table/index.d.ts +1 -0
  24. package/es/components/booking/hooks/useClearCart.js +11 -8
  25. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  26. package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
  27. package/es/components/booking/info/client/index.js +3 -2
  28. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  29. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  30. package/es/components/booking/info/hooks/useInfoHolder.js +16 -9
  31. package/es/components/booking/info/index.d.ts +4 -0
  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/service2/Lists.d.ts +1 -0
  37. package/es/components/booking/info/service2/utils.js +20 -21
  38. package/es/components/booking/info/utils.d.ts +50 -0
  39. package/es/components/booking/info2/index.d.ts +12 -0
  40. package/es/components/booking/info2/index.js +1 -0
  41. package/es/components/booking/info2/service/addService/index.d.ts +11 -0
  42. package/es/components/booking/info2/service/addService/utils.d.ts +98 -0
  43. package/es/components/booking/info2/service/addService/utils.js +6 -3
  44. package/es/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  45. package/es/components/booking/info2/service/addTimeModal/index.js +3 -0
  46. package/es/components/booking/info2/service/editService/Resources/index.js +5 -0
  47. package/es/components/booking/info2/service/editService/index.js +258 -165
  48. package/es/components/booking/info2/service/index.js +19 -15
  49. package/es/components/booking/locales.d.ts +828 -0
  50. package/es/components/booking/materiels/duration/index.js +9 -2
  51. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  52. package/es/components/booking/model.d.ts +108 -0
  53. package/es/components/booking/utils.d.ts +2 -2
  54. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  55. package/es/components/eftpos/form/index.d.ts +1 -0
  56. package/es/components/eftpos/group/index.d.ts +1 -0
  57. package/es/components/eftpos/hooks.d.ts +1 -0
  58. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  59. package/es/components/eftpos/icon/device.d.ts +1 -0
  60. package/es/components/eftpos/receipt/index.d.ts +1 -0
  61. package/es/components/eftpos/surcharge/index.d.ts +1 -0
  62. package/es/components/eftposPay/amount.d.ts +1 -1
  63. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  64. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  65. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  66. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  67. package/es/components/eftposPay/const.d.ts +184 -0
  68. package/es/components/eftposPay/device.d.ts +1 -1
  69. package/es/components/eftposPay/hooks.d.ts +35 -0
  70. package/es/components/eftposPay/index.d.ts +4 -0
  71. package/es/components/eftposPay/linkly/const.d.ts +23 -0
  72. package/es/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  73. package/es/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  74. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  75. package/es/components/eftposPay/linkly/index.d.ts +2 -0
  76. package/es/components/eftposPay/linkly/service.d.ts +32 -0
  77. package/es/components/eftposPay/manufacturer.d.ts +7 -0
  78. package/es/components/eftposPay/pay.d.ts +20 -0
  79. package/es/components/eftposPay/store/index.d.ts +355 -0
  80. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  81. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  82. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  83. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  84. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  85. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  86. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  87. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  88. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  89. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  90. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  91. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  92. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  93. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  94. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  95. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  96. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  97. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  98. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  99. package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  100. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  101. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  102. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  103. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  104. package/es/components/productSelect/components/TabProduct/index.d.ts +2 -0
  105. package/es/components/productSelect/index.d.ts +26 -0
  106. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  107. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  108. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  109. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  110. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  111. package/es/components/schedules/products/index.d.ts +1 -0
  112. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  113. package/es/components/shoppingCart/components/Cart/Product.js +48 -41
  114. package/es/components/shoppingCart/components/Cart/index.js +21 -18
  115. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  116. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  117. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  118. package/es/components/ticketBooking/components/addServiceVariant/addService.js +177 -157
  119. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  120. package/es/components/ticketBooking/components/timeBar/index.js +78 -71
  121. package/es/components/ticketBooking/index.d.ts +7 -0
  122. package/es/components/walletList/index.d.ts +28 -0
  123. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  124. package/es/utils/index.d.ts +23 -0
  125. package/lib/businessModel/SalesModel/index.d.ts +1 -0
  126. package/lib/components/Sales/Checkout/utils.d.ts +40 -0
  127. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  128. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  129. package/lib/components/appointmentBooking/components/Content/index.d.ts +3 -0
  130. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  131. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  132. package/lib/components/appointmentBooking/components/Services/index.d.ts +4 -0
  133. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +4 -0
  134. package/lib/components/appointmentBooking/hooks.d.ts +106 -0
  135. package/lib/components/appointmentBooking/index.d.ts +3 -0
  136. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  137. package/lib/components/booking/components/customSelect/index.js +1 -0
  138. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  139. package/lib/components/booking/components/reloadResourceModal/index.d.ts +8 -0
  140. package/lib/components/booking/components/voucher/index.d.ts +3 -0
  141. package/lib/components/booking/forms/table/index.d.ts +1 -0
  142. package/lib/components/booking/hooks/useClearCart.js +16 -13
  143. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  144. package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
  145. package/lib/components/booking/info/client/index.js +5 -4
  146. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  147. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  148. package/lib/components/booking/info/hooks/useInfoHolder.js +10 -9
  149. package/lib/components/booking/info/index.d.ts +4 -0
  150. package/lib/components/booking/info/service/Lists.js +35 -23
  151. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  152. package/lib/components/booking/info/service/editService/BookingList/index.d.ts +1 -0
  153. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  154. package/lib/components/booking/info/service2/Lists.d.ts +1 -0
  155. package/lib/components/booking/info/service2/utils.js +17 -17
  156. package/lib/components/booking/info/utils.d.ts +50 -0
  157. package/lib/components/booking/info2/index.d.ts +12 -0
  158. package/lib/components/booking/info2/service/addService/index.d.ts +11 -0
  159. package/lib/components/booking/info2/service/addService/utils.d.ts +98 -0
  160. package/lib/components/booking/info2/service/addService/utils.js +4 -2
  161. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +3 -0
  162. package/lib/components/booking/info2/service/addTimeModal/index.js +3 -0
  163. package/lib/components/booking/info2/service/editService/Resources/index.js +2 -0
  164. package/lib/components/booking/info2/service/editService/index.js +132 -70
  165. package/lib/components/booking/info2/service/index.js +13 -9
  166. package/lib/components/booking/locales.d.ts +828 -0
  167. package/lib/components/booking/materiels/duration/index.js +7 -2
  168. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  169. package/lib/components/booking/model.d.ts +108 -0
  170. package/lib/components/booking/utils.d.ts +2 -2
  171. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  172. package/lib/components/eftpos/form/index.d.ts +1 -0
  173. package/lib/components/eftpos/group/index.d.ts +1 -0
  174. package/lib/components/eftpos/hooks.d.ts +1 -0
  175. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  176. package/lib/components/eftpos/icon/device.d.ts +1 -0
  177. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  178. package/lib/components/eftpos/surcharge/index.d.ts +1 -0
  179. package/lib/components/eftposPay/amount.d.ts +1 -1
  180. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  181. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  182. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  183. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  184. package/lib/components/eftposPay/const.d.ts +184 -0
  185. package/lib/components/eftposPay/device.d.ts +1 -1
  186. package/lib/components/eftposPay/hooks.d.ts +35 -0
  187. package/lib/components/eftposPay/index.d.ts +4 -0
  188. package/lib/components/eftposPay/linkly/const.d.ts +23 -0
  189. package/lib/components/eftposPay/linkly/hooks/index.d.ts +2 -0
  190. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +30 -0
  191. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +4 -0
  192. package/lib/components/eftposPay/linkly/index.d.ts +2 -0
  193. package/lib/components/eftposPay/linkly/service.d.ts +32 -0
  194. package/lib/components/eftposPay/manufacturer.d.ts +7 -0
  195. package/lib/components/eftposPay/pay.d.ts +20 -0
  196. package/lib/components/eftposPay/store/index.d.ts +355 -0
  197. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  198. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  199. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  200. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  201. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  202. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  203. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  204. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  205. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  206. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  207. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  208. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  209. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +1 -0
  210. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +1 -0
  211. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  212. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +1 -0
  213. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +1 -0
  214. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  215. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  216. package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
  217. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  218. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +1 -0
  219. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  220. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  221. package/lib/components/productSelect/components/TabProduct/index.d.ts +2 -0
  222. package/lib/components/productSelect/index.d.ts +26 -0
  223. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  224. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  225. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +1 -0
  226. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  227. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  228. package/lib/components/schedules/products/index.d.ts +1 -0
  229. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  230. package/lib/components/shoppingCart/components/Cart/Product.js +31 -21
  231. package/lib/components/shoppingCart/components/Cart/index.js +18 -15
  232. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  233. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  234. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +9 -0
  235. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +145 -127
  236. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +1 -0
  237. package/lib/components/ticketBooking/components/timeBar/index.js +95 -88
  238. package/lib/components/ticketBooking/index.d.ts +7 -0
  239. package/lib/components/walletList/index.d.ts +28 -0
  240. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  241. package/lib/utils/index.d.ts +23 -0
  242. package/package.json +2 -2
@@ -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);