@pisell/private-materials 6.2.25 → 6.2.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) 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 +143 -159
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +8 -8
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +8 -8
  11. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -1
  12. package/es/components/booking/components/customSelect/index.js +1 -0
  13. package/es/components/booking/components/customiseItemModal/index.js +5 -1
  14. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  15. package/es/components/booking/forms/table/index.d.ts +0 -1
  16. package/es/components/booking/hooks/useClearCart.js +11 -8
  17. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  18. package/es/components/booking/info/client/index.js +3 -2
  19. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  20. package/es/components/booking/info/hooks/useInfoHolder.js +13 -14
  21. package/es/components/booking/info/index.d.ts +0 -1
  22. package/es/components/booking/info/service/Lists.js +37 -27
  23. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  24. package/es/components/booking/info/service/editService/constants.d.ts +1 -0
  25. package/es/components/booking/info/service/editService/constants.js +3 -0
  26. package/es/components/booking/info/service/editService/index.js +15 -10
  27. package/es/components/booking/info/service/like/index.d.ts +0 -1
  28. package/es/components/booking/info/service2/utils.js +29 -21
  29. package/es/components/booking/info2/index.js +1 -0
  30. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  31. package/es/components/booking/info2/service/addService/utils.js +6 -3
  32. package/es/components/booking/info2/service/addTimeModal/index.js +3 -0
  33. package/es/components/booking/info2/service/editService/Resources/index.js +5 -0
  34. package/es/components/booking/info2/service/editService/index.js +265 -170
  35. package/es/components/booking/info2/service/index.js +22 -19
  36. package/es/components/booking/info2/utilsByBooking.js +2 -1
  37. package/es/components/booking/materiels/duration/index.js +9 -2
  38. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  39. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  40. package/es/components/booking/utils.d.ts +2 -2
  41. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  42. package/es/components/eftpos/form/index.d.ts +0 -1
  43. package/es/components/eftpos/group/index.d.ts +0 -1
  44. package/es/components/eftpos/hooks.d.ts +0 -1
  45. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  46. package/es/components/eftpos/icon/device.d.ts +0 -1
  47. package/es/components/eftpos/receipt/index.d.ts +0 -1
  48. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  49. package/es/components/eftposPay/amount.d.ts +1 -1
  50. package/es/components/eftposPay/app.d.ts +0 -1
  51. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  52. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  53. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  54. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  55. package/es/components/eftposPay/device.d.ts +1 -1
  56. package/es/components/eftposPay/hooks.d.ts +2 -2
  57. package/es/components/eftposPay/store/index.d.ts +5 -5
  58. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  59. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  60. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  61. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  62. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  63. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  64. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  65. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  66. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  67. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  68. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  69. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  70. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  71. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  72. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  73. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  74. package/es/components/schedules/products/index.d.ts +0 -1
  75. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  76. package/es/components/shoppingCart/components/Cart/Product.js +77 -51
  77. package/es/components/shoppingCart/components/Cart/index.js +21 -18
  78. package/es/components/shoppingCart/components/Cart/index.less +14 -0
  79. package/es/components/ticketBooking/components/addServiceVariant/addService.js +171 -151
  80. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  81. package/es/components/ticketBooking/components/addServiceVariant/utils.js +4 -3
  82. package/es/components/ticketBooking/components/timeBar/index.js +77 -73
  83. package/es/components/ticketBooking/index.less +1 -1
  84. package/es/components/ticketBooking/utils/index.js +13 -8
  85. package/es/plus/clientName/index.d.ts +0 -1
  86. package/es/pro/pisellNumberSelector/index.less +1 -1
  87. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.js +1 -1
  88. package/lib/components/booking/components/customSelect/index.js +1 -0
  89. package/lib/components/booking/components/customiseItemModal/index.js +7 -1
  90. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  91. package/lib/components/booking/forms/table/index.d.ts +0 -1
  92. package/lib/components/booking/hooks/useClearCart.js +16 -13
  93. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  94. package/lib/components/booking/info/client/index.js +5 -4
  95. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  96. package/lib/components/booking/info/hooks/useInfoHolder.js +12 -13
  97. package/lib/components/booking/info/index.d.ts +0 -1
  98. package/lib/components/booking/info/service/Lists.js +36 -24
  99. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  100. package/lib/components/booking/info/service/editService/constants.d.ts +1 -0
  101. package/lib/components/booking/info/service/editService/constants.js +31 -0
  102. package/lib/components/booking/info/service/editService/index.js +7 -1
  103. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  104. package/lib/components/booking/info/service2/utils.js +26 -17
  105. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  106. package/lib/components/booking/info2/service/addService/utils.js +4 -2
  107. package/lib/components/booking/info2/service/addTimeModal/index.js +3 -0
  108. package/lib/components/booking/info2/service/editService/Resources/index.js +2 -0
  109. package/lib/components/booking/info2/service/editService/index.js +138 -74
  110. package/lib/components/booking/info2/service/index.js +14 -10
  111. package/lib/components/booking/info2/utilsByBooking.js +2 -1
  112. package/lib/components/booking/materiels/duration/index.js +7 -2
  113. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  114. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  115. package/lib/components/booking/utils.d.ts +2 -2
  116. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  117. package/lib/components/eftpos/form/index.d.ts +0 -1
  118. package/lib/components/eftpos/group/index.d.ts +0 -1
  119. package/lib/components/eftpos/hooks.d.ts +0 -1
  120. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  121. package/lib/components/eftpos/icon/device.d.ts +0 -1
  122. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  123. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  124. package/lib/components/eftposPay/amount.d.ts +1 -1
  125. package/lib/components/eftposPay/app.d.ts +0 -1
  126. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  127. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  128. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  129. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  130. package/lib/components/eftposPay/device.d.ts +1 -1
  131. package/lib/components/eftposPay/hooks.d.ts +2 -2
  132. package/lib/components/eftposPay/store/index.d.ts +5 -5
  133. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  134. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  135. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  136. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  137. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  138. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  139. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  140. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  141. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  142. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  143. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  144. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  145. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  146. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  147. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  148. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  149. package/lib/components/schedules/products/index.d.ts +0 -1
  150. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  151. package/lib/components/shoppingCart/components/Cart/Product.js +58 -31
  152. package/lib/components/shoppingCart/components/Cart/index.js +18 -15
  153. package/lib/components/shoppingCart/components/Cart/index.less +14 -0
  154. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +140 -122
  155. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  156. package/lib/components/ticketBooking/components/addServiceVariant/utils.js +2 -1
  157. package/lib/components/ticketBooking/components/timeBar/index.js +98 -94
  158. package/lib/components/ticketBooking/index.less +1 -1
  159. package/lib/components/ticketBooking/utils/index.js +4 -4
  160. package/lib/plus/clientName/index.d.ts +0 -1
  161. package/lib/pro/pisellNumberSelector/index.less +1 -1
  162. package/package.json +4 -4
@@ -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);
@@ -64,10 +64,13 @@ var Info = (_, ref) => {
64
64
  const resourcesRef = (0, import_react.useRef)(null);
65
65
  const isChangeTotal = (0, import_react.useRef)(false);
66
66
  const isNormalProduct = (0, import_react.useMemo)(() => {
67
- var _a2, _b2;
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);
67
+ var _a2, _b2, _c2;
68
+ if (!((_a2 = state == null ? void 0 : state.service) == null ? void 0 : _a2.cacheItem)) {
69
+ return true;
70
+ }
71
+ return ((_b2 = state == null ? void 0 : state.service) == null ? void 0 : _b2.cacheItem) && (0, import_utils6.isNormalProductByDurationSchedule)((_c2 = state == null ? void 0 : state.service) == null ? void 0 : _c2.cacheItem);
69
72
  }, [(_a = state == null ? void 0 : state.service) == null ? void 0 : _a.cacheItem]);
70
- const getCurrentCacheItem = (_cacheItem) => {
73
+ const getCurrentCacheItem = (0, import_ahooks.useMemoizedFn)((_cacheItem) => {
71
74
  let values = form.getFieldsValue();
72
75
  let _item = _cacheItem || state.service.cacheItem;
73
76
  return {
@@ -77,40 +80,43 @@ var Info = (_, ref) => {
77
80
  ...values
78
81
  }
79
82
  };
80
- };
83
+ });
81
84
  const currentResource = (0, import_react.useMemo)(() => {
82
85
  return null;
83
- }, [useResource]);
86
+ }, []);
84
87
  const durationProps = (0, import_react.useMemo)(() => {
85
88
  var _a2, _b2, _c2;
86
89
  let _cacheItem = getCurrentCacheItem();
87
- return (0, import_utils4.getDurationProps)({
90
+ const val2 = (0, import_utils4.getDurationProps)({
88
91
  cacheItem: _cacheItem,
89
92
  useStartTime,
90
- currentResource,
93
+ // currentResource,
91
94
  slice: (_c2 = (_b2 = (_a2 = state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.basic) == null ? void 0 : _c2.service_time
92
95
  });
96
+ return val2;
93
97
  }, [
94
- currentResource,
98
+ // currentResource,
95
99
  state.service.cacheItem,
96
100
  useStartTime,
97
101
  useResource,
98
102
  (_d = (_c = (_b = state.bookingConfig) == null ? void 0 : _b.config) == null ? void 0 : _c.basic) == null ? void 0 : _d.service_time
99
103
  ]);
100
104
  const flexibleOption = (0, import_react.useMemo)(() => {
101
- return (0, import_utils4.getFlexibleOption)({
105
+ const op = (0, import_utils4.getFlexibleOption)({
102
106
  durationProps
103
107
  });
108
+ return op;
104
109
  }, [durationProps, import_utils.locales.locale]);
105
110
  const timeObj = (0, import_react.useMemo)(() => {
106
- return (0, import_utils4.getTimeObj)({
111
+ const val2 = (0, import_utils4.getTimeObj)({
107
112
  durationProps,
108
113
  useStartTime,
109
114
  currentResource,
110
115
  state,
111
116
  useDuration
112
117
  });
113
- }, [durationProps, useStartTime, currentResource, state, useDuration]);
118
+ return val2;
119
+ }, [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
120
  (0, import_react.useEffect)(() => {
115
121
  try {
116
122
  if (useDuration.indexOf("flexible_") == 0) {
@@ -123,7 +129,7 @@ var Info = (_, ref) => {
123
129
  } catch (err) {
124
130
  }
125
131
  }, [useDuration, flexibleOption]);
126
- const handleDeleteProduct = () => {
132
+ const handleDeleteProduct = (0, import_ahooks.useMemoizedFn)(() => {
127
133
  var _a2;
128
134
  if (state.channelDisabledEdit) {
129
135
  return;
@@ -140,7 +146,7 @@ var Info = (_, ref) => {
140
146
  cacheItem: null
141
147
  }
142
148
  });
143
- };
149
+ });
144
150
  const getDiscount = () => {
145
151
  var _a2;
146
152
  let oPrice = Number(((_a2 = state.service.cacheItem) == null ? void 0 : _a2._extend.origin_total) || 0);
@@ -218,13 +224,32 @@ var Info = (_, ref) => {
218
224
  }
219
225
  });
220
226
  };
227
+ const { run: setEditDataRun } = (0, import_ahooks.useDebounceFn)(
228
+ (...params) => {
229
+ setEditData(...params);
230
+ },
231
+ {
232
+ wait: 50,
233
+ leading: true,
234
+ trailing: false
235
+ }
236
+ );
221
237
  const setEditData = (0, import_ahooks.useMemoizedFn)(
222
238
  (_cacheItem, open, openProductDetail) => {
223
- form.resetFields();
239
+ console.timeEnd("handleChange");
240
+ console.log("setEditDatasetEditData", _cacheItem, open);
224
241
  isChangeTotal.current = false;
225
242
  let cacheItem = _cacheItem || state.service.cacheItem;
226
243
  let values = cacheItem._extend;
244
+ const startTime2 = performance.now();
245
+ console.log(startTime2, "startTime");
246
+ form.resetFields();
227
247
  form.setFieldsValue(values);
248
+ const endTime = performance.now();
249
+ console.log(endTime - window.pp1, "打开商品5");
250
+ console.log("执行时间", endTime - startTime2, values);
251
+ setTimeout(() => {
252
+ }, 20);
228
253
  if (openProductDetail) {
229
254
  setTimeout(() => {
230
255
  handleEdit({});
@@ -237,7 +262,7 @@ var Info = (_, ref) => {
237
262
  let oPrice = Number(((_a2 = state.service.cacheItem) == null ? void 0 : _a2._extend.origin_total) || 0);
238
263
  let cPrice = Number(useTotal || 0);
239
264
  return cPrice !== oPrice;
240
- }, [useTotal, (_f = (_e = state.service.cacheItem) == null ? void 0 : _e._extend) == null ? void 0 : _f.origin_total]);
265
+ }, [useTotal, (_i = (_h = state.service.cacheItem) == null ? void 0 : _h._extend) == null ? void 0 : _i.origin_total]);
241
266
  const getResources = () => {
242
267
  let res = (0, import_utils4.formatResources)({
243
268
  cacheItem: getCurrentCacheItem(),
@@ -259,9 +284,9 @@ var Info = (_, ref) => {
259
284
  updateResourceErrors(res.maps);
260
285
  };
261
286
  const updateResourceErrors = (resourceMaps) => {
262
- let { resource } = form.getFieldsValue();
263
- if (resource) {
264
- let _resource = { ...resource };
287
+ let { resource: resource2 } = form.getFieldsValue();
288
+ if (resource2) {
289
+ let _resource = { ...resource2 };
265
290
  for (let form_id in _resource) {
266
291
  _resource[form_id] = _resource[form_id].map((d) => {
267
292
  var _a2, _b2;
@@ -295,24 +320,17 @@ var Info = (_, ref) => {
295
320
  ]);
296
321
  (0, import_react.useEffect)(() => {
297
322
  if (state.isBookingCreatePage && state.service.editModal) {
298
- setEditData(null);
323
+ setEditDataRun(null);
299
324
  }
300
325
  }, [state.service.editModal, state.isBookingCreatePage]);
301
326
  (0, import_react.useEffect)(() => {
302
327
  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]);
328
+ }, [useTotal, (_k = (_j = state.service.cacheItem) == null ? void 0 : _j._extend) == null ? void 0 : _k.origin_total]);
311
329
  const bundles = (0, import_react.useMemo)(() => {
312
330
  var _a2, _b2, _c2, _d2;
313
331
  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) => {
332
+ }, [(_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]);
333
+ const handleEdit = (0, import_ahooks.useMemoizedFn)((e) => {
316
334
  var _a2, _b2, _c2, _d2, _e2;
317
335
  const item = state.service.cacheItem;
318
336
  let values = form.getFieldsValue();
@@ -398,8 +416,8 @@ var Info = (_, ref) => {
398
416
  });
399
417
  }
400
418
  });
401
- };
402
- const handleChange = (e) => {
419
+ });
420
+ const handleChange = (0, import_ahooks.useMemoizedFn)((e) => {
403
421
  if (state.channelDisabledEdit) {
404
422
  return;
405
423
  }
@@ -413,10 +431,10 @@ var Info = (_, ref) => {
413
431
  // changeService: true,
414
432
  }
415
433
  });
416
- };
434
+ });
417
435
  (0, import_react.useImperativeHandle)(ref, () => {
418
436
  return {
419
- init: setEditData
437
+ init: setEditDataRun
420
438
  };
421
439
  });
422
440
  const handleTotalChange = (number) => {
@@ -428,44 +446,30 @@ var Info = (_, ref) => {
428
446
  }
429
447
  return false;
430
448
  }, [state.renderType, isNormalProduct]);
431
- const SelectTime = (_o = window.BaseMaterials) == null ? void 0 : _o.SelectTime;
449
+ const SelectTime = (_p = window.BaseMaterials) == null ? void 0 : _p.SelectTime;
432
450
  const isNoSpecAndPackage = (0, import_utilsByBooking.getIsNoSpecAndPackage)(state.service.cacheItem);
433
- return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
434
- import_drawer.default,
435
- {
436
- titleNoWrap: true,
437
- zIndex: state.service.changeService ? 999 : 1e3,
438
- forceRender: true,
439
- mask: state.drawerMask,
440
- open: !isNoSpecAndPackage && state.service.editModal && !((_p = state.service.cacheItem) == null ? void 0 : _p.autoClose),
441
- title: import_utils.locales.getText("pisell2.text.edit-service"),
442
- onClose: () => {
443
- dispatch({
444
- type: "setService",
445
- payload: {
446
- editModal: false,
447
- cacheItem: null,
448
- changeService: false
449
- }
450
- });
451
- }
452
- },
453
- /* @__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(
451
+ const productName = (0, import_react.useMemo)(() => {
452
+ var _a2, _b2, _c2;
453
+ 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(
454
454
  import_collapsibleList.default,
455
455
  {
456
456
  style: { marginTop: bundles.length ? "8px" : 0 },
457
457
  list: bundles,
458
458
  renderItem: (item) => (0, import_utils2.renderBundles)(item, state.amountSymbol)
459
459
  }
460
- )))), /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
460
+ ))));
461
+ }, [(_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]);
462
+ const price = (0, import_react.useMemo)(() => {
463
+ var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
464
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
461
465
  import_antd.Form.Item,
462
466
  {
463
467
  label: import_utils.locales.getText("pisell2.text.price"),
464
468
  name: "total",
465
469
  rules: [{ required: true }],
466
- 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")(
470
+ 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")(
467
471
  (0, import_utils.formatAmount)(
468
- (_w = (_v = state.service.cacheItem) == null ? void 0 : _v._extend) == null ? void 0 : _w.origin_total,
472
+ (_d2 = (_c2 = state.service.cacheItem) == null ? void 0 : _c2._extend) == null ? void 0 : _d2.origin_total,
469
473
  2,
470
474
  state.amountSymbol
471
475
  ),
@@ -481,18 +485,25 @@ var Info = (_, ref) => {
481
485
  prefix: state.amountSymbol,
482
486
  onChange: handleTotalChange,
483
487
  disabled: state.channelDisabledEdit,
484
- originValue: ((_y = (_x = state.service.cacheItem) == null ? void 0 : _x._extend) == null ? void 0 : _y.origin_total) || 0,
485
- placeholder: ((_A = (_z = state.service.cacheItem) == null ? void 0 : _z._extend) == null ? void 0 : _A.origin_total) || "0"
488
+ originValue: ((_f2 = (_e2 = state.service.cacheItem) == null ? void 0 : _e2._extend) == null ? void 0 : _f2.origin_total) || 0,
489
+ placeholder: ((_h2 = (_g2 = state.service.cacheItem) == null ? void 0 : _g2._extend) == null ? void 0 : _h2.origin_total) || "0"
486
490
  }
487
491
  )
488
- )), isReason ? /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
492
+ ));
493
+ }, [useTotal, (_u = (_t = state.service.cacheItem) == null ? void 0 : _t._extend) == null ? void 0 : _u.origin_total, state.amountSymbol, state.channelDisabledEdit]);
494
+ const reason = (0, import_react.useMemo)(() => {
495
+ return isReason ? /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
489
496
  import_antd.Form.Item,
490
497
  {
491
498
  label: import_utils.locales.getText("pisell2.text.discount-reason"),
492
499
  name: "discount_reason"
493
500
  },
494
501
  /* @__PURE__ */ import_react.default.createElement(import_antd.Input.TextArea, { size: "large" })
495
- )) : 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(
502
+ )) : null;
503
+ }, [isReason]);
504
+ const startTime = (0, import_react.useMemo)(() => {
505
+ var _a2, _b2, _c2, _d2;
506
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
496
507
  import_antd.Form.Item,
497
508
  {
498
509
  label: import_utils.locales.getText("pisell2.text.start_time"),
@@ -502,7 +513,7 @@ var Info = (_, ref) => {
502
513
  SelectTime ? /* @__PURE__ */ import_react.default.createElement(
503
514
  SelectTime,
504
515
  {
505
- 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,
516
+ 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,
506
517
  timePickerProps: {
507
518
  style: { width: "100%" }
508
519
  },
@@ -511,7 +522,11 @@ var Info = (_, ref) => {
511
522
  }
512
523
  }
513
524
  ) : null
514
- )), /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
525
+ ));
526
+ }, [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]);
527
+ const duration = (0, import_react.useMemo)(() => {
528
+ console.log("render form duration");
529
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
515
530
  import_antd.Form.Item,
516
531
  {
517
532
  label: import_utils.locales.getText("pisell2.text.duration"),
@@ -519,23 +534,34 @@ var Info = (_, ref) => {
519
534
  rules: [{ required: true }]
520
535
  },
521
536
  /* @__PURE__ */ import_react.default.createElement(import_duration.default, { ...durationProps, timeObj })
522
- )), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { noStyle: true, name: "resource" }, /* @__PURE__ */ import_react.default.createElement(
537
+ ));
538
+ }, [durationProps, timeObj]);
539
+ const resource = (0, import_react.useMemo)(() => {
540
+ console.log("render form resource");
541
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { noStyle: true, name: "resource" }, /* @__PURE__ */ import_react.default.createElement(
523
542
  import_Resources.default,
524
543
  {
525
544
  ref: resourcesRef,
526
545
  state,
527
546
  cacheItem: state.service.cacheItem,
528
- getCurrentCacheItem,
529
- useDuration,
530
- useStartTime
547
+ getCurrentCacheItem
531
548
  }
532
- )), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { noStyle: true, name: "capacity" }, /* @__PURE__ */ import_react.default.createElement(
549
+ ));
550
+ }, [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]);
551
+ const capacity = (0, import_react.useMemo)(() => {
552
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { noStyle: true, name: "capacity" }, /* @__PURE__ */ import_react.default.createElement(
533
553
  import_Capacity.default,
534
554
  {
535
555
  state,
536
556
  cacheItem: state.service.cacheItem
537
557
  }
538
- )), /* @__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(
558
+ ));
559
+ }, [state.locale, state.isTerminal, (_F = (_E = (_D = state.service) == null ? void 0 : _D.cacheItem) == null ? void 0 : _E._data) == null ? void 0 : _F.capacitys]);
560
+ const hiddenQuantity = (0, import_react.useMemo)(() => {
561
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { hidden: true, name: "quantity" }, /* @__PURE__ */ import_react.default.createElement(import_antd.InputNumber, null));
562
+ }, []);
563
+ const quantity = (0, import_react.useMemo)(() => {
564
+ return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement(
539
565
  import_antd.Form.Item,
540
566
  {
541
567
  label: import_utils.locales.getText("pisell2.text.quantity"),
@@ -557,7 +583,11 @@ var Info = (_, ref) => {
557
583
  }
558
584
  }
559
585
  )
560
- )))), /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit-footer" }, /* @__PURE__ */ import_react.default.createElement(
586
+ ));
587
+ }, []);
588
+ const footer = (0, import_react.useMemo)(() => {
589
+ var _a2;
590
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit-footer" }, /* @__PURE__ */ import_react.default.createElement(
561
591
  "div",
562
592
  {
563
593
  className: "pisell-lowcode__booking-service-delete-wrap",
@@ -569,13 +599,47 @@ var Info = (_, ref) => {
569
599
  {
570
600
  type: "primary",
571
601
  className: "pisell-lowcode__booking-service-body-edit-footer-apple",
572
- disabled: !isNormalProduct && !((_F = state.service.resourcesOrigin) == null ? void 0 : _F.length),
602
+ disabled: !isNormalProduct && !((_a2 = state.service.resourcesOrigin) == null ? void 0 : _a2.length),
573
603
  onClick: () => {
574
604
  form.submit();
575
605
  }
576
606
  },
577
607
  import_utils.locales.getText("pisell2.text.apply")
578
- )))
608
+ ));
609
+ }, [(_G = state.service.resourcesOrigin) == null ? void 0 : _G.length]);
610
+ console.log("render edit");
611
+ console.log(state.service.editModal && !((_H = state.service.cacheItem) == null ? void 0 : _H.autoClose), performance.now() - window.pp1, "打开商品1");
612
+ const [val, setVal] = (0, import_react.useState)(false);
613
+ (0, import_react.useEffect)(() => {
614
+ if (isShowTimeAndResource) {
615
+ setTimeout(() => {
616
+ setVal(true);
617
+ }, 200);
618
+ } else {
619
+ setVal(false);
620
+ }
621
+ }, [isShowTimeAndResource]);
622
+ return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
623
+ import_drawer.default,
624
+ {
625
+ titleNoWrap: true,
626
+ zIndex: state.service.changeService ? 999 : 1e3,
627
+ forceRender: true,
628
+ mask: state.drawerMask,
629
+ open: !isNoSpecAndPackage && state.service.editModal && !((_I = state.service.cacheItem) == null ? void 0 : _I.autoClose),
630
+ title: import_utils.locales.getText("pisell2.text.edit-service"),
631
+ onClose: () => {
632
+ dispatch({
633
+ type: "setService",
634
+ payload: {
635
+ editModal: false,
636
+ cacheItem: null,
637
+ changeService: false
638
+ }
639
+ });
640
+ }
641
+ },
642
+ /* @__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)
579
643
  ));
580
644
  };
581
645
  var editService_default = (0, import_react.forwardRef)(Info);
@@ -40,8 +40,8 @@ var import_service = require("../../info/service/index.less");
40
40
  var import_addTimeModal = __toESM(require("./addTimeModal"));
41
41
  var import_useInfoHolder = __toESM(require("../../info/hooks/useInfoHolder"));
42
42
  var import_Lists = __toESM(require("../../info/service/Lists"));
43
- var import_useQuotation = __toESM(require("../../hooks/useQuotation"));
44
43
  var import_editNormalService = __toESM(require("./editNormalService"));
44
+ var import_useQuotation = __toESM(require("../../hooks/useQuotation"));
45
45
  var Service = () => {
46
46
  const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
47
47
  const {
@@ -56,14 +56,18 @@ var Service = () => {
56
56
  document.body.id = "body";
57
57
  }, []);
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" }, /* @__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), /* @__PURE__ */ import_react.default.createElement(import_editNormalService.default, { ref: editNormalServiceRef }), 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" }, /* @__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), /* @__PURE__ */ import_react.default.createElement(import_editNormalService.default, { ref: editNormalServiceRef }), dom);
70
+ }, [dom, showAddTimeModal]);
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);
@@ -43,6 +43,7 @@ var import_dayjs = __toESM(require("dayjs"));
43
43
  var import_utils = require("@pisell/utils");
44
44
  var import_utils2 = require("../utils");
45
45
  var import_utils3 = require("../info/service2/utils");
46
+ var import_utils4 = require("../../ticketBooking/components/addServiceVariant/utils");
46
47
  var getUseableEventCount = (eventList, current) => {
47
48
  return (eventList || []).reduce((pre, event) => {
48
49
  return pre - event.pax;
@@ -286,7 +287,7 @@ var getIsNoSpecAndPackage = (product) => {
286
287
  if (product == null ? void 0 : product.isEditBooking) {
287
288
  return ((_a = product == null ? void 0 : product.product_bundle) == null ? void 0 : _a.length) === 0 && (product == null ? void 0 : product.product_variant_id) === 0 && (((_c = (_b = product == null ? void 0 : product.product_sku) == null ? void 0 : _b.option) == null ? void 0 : _c.length) || 0) === 0;
288
289
  }
289
- return (product == null ? void 0 : product.is_bundle) === 0 && (((_d = product == null ? void 0 : product.variant) == null ? void 0 : _d.length) || 0) === 0 && ((product == null ? void 0 : product.option_group_count) || 0) === 0;
290
+ return (product == null ? void 0 : product.is_bundle) === 0 && (((_d = product == null ? void 0 : product.variant) == null ? void 0 : _d.length) || 0) === 0 && !(0, import_utils4.isOption)(product);
290
291
  };
291
292
  // Annotate the CommonJS export names for ESM import in node:
292
293
  0 && (module.exports = {
@@ -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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from "antd";
3
2
  interface StartTimeProps extends SelectProps {
4
3
  locale?: string;
@@ -165,10 +165,10 @@ export declare const getProductTotalPrice: (item: any) => number;
165
165
  export declare const getDuration: (duration: number | {
166
166
  type: string;
167
167
  value: number;
168
- }) => number | {
168
+ }) => number | "flexible" | {
169
169
  type: string;
170
170
  value: number;
171
- } | "flexible";
171
+ };
172
172
  export declare const isWalkIn: (customer_id?: number | string) => boolean;
173
173
  export declare const getIsEdit: (state: any) => boolean;
174
174
  export {};
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 递归循环表单数据
4
3
  * @Author: hongbing.wang
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RadioGroupProps } from 'antd';
3
2
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
4
3
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos } from './const';
3
2
  /**
4
3
  * @title: tyro 设备连接
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 自定义组件设置
4
3
  * @description: 自定义组件设置
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.css';
3
2
  /**
4
3
  * @title: 自定义组件设置
@@ -8,7 +8,7 @@ import { PosProps } from './const';
8
8
  */
9
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
10
10
  className?: string | undefined;
11
- onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
12
  [keys: string]: unknown;
13
13
  } | undefined, other?: any) => void) | undefined;
14
14
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PosProps, RouteType } from './const';
3
2
  declare const App: ({ action, api, device_number, terminal, tyroUrl, tyroVersion, onChangeParams, isMobile, channel, formatAmount, ...props }: Omit<PosProps, "type" | "mode" | "getApi"> & {
4
3
  action: RouteType;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './titlebar.less';
3
2
  declare enum EPopupTitleBarVariantType {
4
3
  BackTitleClose = "back-title-cancel",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusType } from '../../const';
3
2
  declare const _default: (props: {
4
3
  status: StatusType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: {
3
2
  status: string;
4
3
  pedding?: string;
@@ -10,7 +10,7 @@ import './device.less';
10
10
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
11
11
  api: PayProps['api'];
12
12
  className?: string | undefined;
13
- onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
13
+ onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
14
  [keys: string]: unknown;
15
15
  } | undefined, other?: any) => void) | undefined;
16
16
  onClose: () => void;