@pisell/private-materials 3.4.7 → 3.4.9

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 (180) 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.js +4 -4
  8. package/build/lowcode/view.js +7 -7
  9. package/es/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  10. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  12. package/es/components/booking/addons/model.d.ts +10 -1
  13. package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
  14. package/es/components/booking/components/browserSelect/index.js +1 -1
  15. package/es/components/booking/components/customSelect/index.js +1 -0
  16. package/es/components/booking/components/tabPane/index.d.ts +4 -0
  17. package/es/components/booking/editBookingModal/index.js +58 -29
  18. package/es/components/booking/editBookingModal/serve.d.ts +1 -0
  19. package/es/components/booking/editBookingModal/serve.js +19 -11
  20. package/es/components/booking/forms/model.d.ts +10 -1
  21. package/es/components/booking/forms/model.js +5 -5
  22. package/es/components/booking/hooks/useClearCart.js +11 -8
  23. package/es/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  24. package/es/components/booking/hooks/useQuotation.js +1 -1
  25. package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
  26. package/es/components/booking/info/client/index.js +3 -2
  27. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  28. package/es/components/booking/info/hooks/useInfoHolder.js +16 -9
  29. package/es/components/booking/info/index.d.ts +4 -0
  30. package/es/components/booking/info/model.d.ts +10 -1
  31. package/es/components/booking/info/service/Lists.js +36 -26
  32. package/es/components/booking/info/service/like/index.js +1 -1
  33. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  34. package/es/components/booking/info/service2/utils.js +20 -21
  35. package/es/components/booking/info2/index.js +1 -0
  36. package/es/components/booking/info2/service/addService/utils.js +7 -4
  37. package/es/components/booking/info2/service/addTimeModal/index.js +3 -0
  38. package/es/components/booking/info2/service/editService/Resources/index.js +5 -0
  39. package/es/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  40. package/es/components/booking/info2/service/editService/index.js +266 -170
  41. package/es/components/booking/info2/service/index.js +19 -15
  42. package/es/components/booking/materiels/duration/index.js +9 -2
  43. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  44. package/es/components/booking/materiels/startTime/index.js +1 -1
  45. package/es/components/booking/model.d.ts +9 -1
  46. package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
  47. package/es/components/booking/notes/NoteBlock/index.js +11 -11
  48. package/es/components/booking/notes/model.d.ts +10 -1
  49. package/es/components/booking/notes/model.js +5 -5
  50. package/es/components/booking/payments/model.d.ts +10 -1
  51. package/es/components/booking/payments/model.js +5 -5
  52. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  53. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  54. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  55. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  56. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  57. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  58. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  59. package/es/components/listComponent/index.js +5 -5
  60. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  61. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  62. package/es/components/pay/toC/model.d.ts +9 -1
  63. package/es/components/productExtension/card/index.js +3 -3
  64. package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
  65. package/es/components/productExtension/fields/Forms/index.js +12 -12
  66. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
  67. package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
  68. package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
  69. package/es/components/productExtension/server.js +2 -2
  70. package/es/components/ruleSetting/ruleBorder/index.js +1 -1
  71. package/es/components/schedules/calendar/index.js +4 -4
  72. package/es/components/schedules/calendar/serve.js +2 -2
  73. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  74. package/es/components/schedules/components/CurrentDay/index.js +5 -5
  75. package/es/components/schedules/components/CurrentDay/serve.js +2 -2
  76. package/es/components/schedules/components/DropdownSort/index.js +1 -1
  77. package/es/components/schedules/components/ResourceList/index.js +1 -1
  78. package/es/components/schedules/components/Search/index.js +5 -5
  79. package/es/components/schedules/model.d.ts +9 -1
  80. package/es/components/schedules/model.js +5 -5
  81. package/es/components/schedules/openHours/index.js +1 -1
  82. package/es/components/schedules/openHours/serve.js +2 -2
  83. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
  84. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
  85. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
  86. package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
  87. package/es/components/schedules/products/index.d.ts +0 -1
  88. package/es/components/schedules/products/serve.js +2 -2
  89. package/es/components/schedules/products/utils.js +5 -5
  90. package/es/components/schedules/resources/detail/detailContent.js +2 -2
  91. package/es/components/schedules/resources/detail/index.js +10 -10
  92. package/es/components/schedules/resources/list/index.js +2 -2
  93. package/es/components/schedules/resources/relationProduct/index.js +1 -1
  94. package/es/components/schedules/resources/serve.js +2 -2
  95. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
  96. package/es/components/schedules/utils.js +4 -4
  97. package/es/components/selectModal/index.js +2 -2
  98. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  99. package/es/components/shoppingCart/components/Cart/Product.js +48 -41
  100. package/es/components/shoppingCart/components/Cart/index.js +21 -18
  101. package/es/components/ticketBooking/components/addServiceVariant/addService.js +249 -158
  102. package/es/components/ticketBooking/components/timeBar/index.js +78 -71
  103. package/es/components/ticketBooking/locales.d.ts +174 -0
  104. package/es/components/ticketBooking/serve.d.ts +287 -0
  105. package/es/components/ticketBooking/utils/index.d.ts +25 -0
  106. package/es/components/ticketBooking/utils/index.js +18 -1
  107. package/es/components/wallet/Detail/model.d.ts +13 -1
  108. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  109. package/es/components/wallet/PointCard/model.d.ts +13 -1
  110. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  111. package/es/components/wallet/Voucher/model.d.ts +13 -1
  112. package/es/components/wallet/model.d.ts +9 -1
  113. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  114. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  115. package/es/hooks/useComponents.js +1 -1
  116. package/lib/components/appointmentBooking/components/Cart/utils.d.ts +56 -0
  117. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  118. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  119. package/lib/components/booking/addons/model.d.ts +10 -1
  120. package/lib/components/booking/components/customSelect/index.js +1 -0
  121. package/lib/components/booking/components/tabPane/index.d.ts +4 -0
  122. package/lib/components/booking/editBookingModal/index.js +56 -21
  123. package/lib/components/booking/editBookingModal/serve.d.ts +1 -0
  124. package/lib/components/booking/editBookingModal/serve.js +12 -6
  125. package/lib/components/booking/forms/model.d.ts +10 -1
  126. package/lib/components/booking/hooks/useClearCart.js +16 -13
  127. package/lib/components/booking/hooks/useIsBooking4Shop.d.ts +1 -0
  128. package/lib/components/booking/hooks/useQuotation.js +1 -1
  129. package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
  130. package/lib/components/booking/info/client/index.js +5 -4
  131. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  132. package/lib/components/booking/info/hooks/useInfoHolder.js +10 -9
  133. package/lib/components/booking/info/index.d.ts +4 -0
  134. package/lib/components/booking/info/model.d.ts +10 -1
  135. package/lib/components/booking/info/service/Lists.js +35 -23
  136. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  137. package/lib/components/booking/info/service2/utils.js +17 -17
  138. package/lib/components/booking/info2/service/addService/utils.js +5 -3
  139. package/lib/components/booking/info2/service/addTimeModal/index.js +3 -0
  140. package/lib/components/booking/info2/service/editService/Resources/index.js +2 -0
  141. package/lib/components/booking/info2/service/editService/ResourcesV2/index.js +1 -1
  142. package/lib/components/booking/info2/service/editService/index.js +139 -74
  143. package/lib/components/booking/info2/service/index.js +13 -9
  144. package/lib/components/booking/materiels/duration/index.js +7 -2
  145. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  146. package/lib/components/booking/model.d.ts +9 -1
  147. package/lib/components/booking/notes/model.d.ts +10 -1
  148. package/lib/components/booking/payments/model.d.ts +10 -1
  149. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  150. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  151. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  152. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  153. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  154. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  155. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  156. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  157. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  158. package/lib/components/pay/toC/model.d.ts +9 -1
  159. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  160. package/lib/components/schedules/model.d.ts +9 -1
  161. package/lib/components/schedules/products/index.d.ts +0 -1
  162. package/lib/components/schedules/utils.js +1 -1
  163. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  164. package/lib/components/shoppingCart/components/Cart/Product.js +31 -21
  165. package/lib/components/shoppingCart/components/Cart/index.js +18 -15
  166. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +196 -127
  167. package/lib/components/ticketBooking/components/timeBar/index.js +95 -88
  168. package/lib/components/ticketBooking/locales.d.ts +174 -0
  169. package/lib/components/ticketBooking/serve.d.ts +287 -0
  170. package/lib/components/ticketBooking/utils/index.d.ts +25 -0
  171. package/lib/components/ticketBooking/utils/index.js +22 -0
  172. package/lib/components/wallet/Detail/model.d.ts +13 -1
  173. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  174. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  175. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  176. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  177. package/lib/components/wallet/model.d.ts +9 -1
  178. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  179. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  180. package/package.json +3 -3
@@ -65,6 +65,7 @@ var AddTimeModal = () => {
65
65
  const [number, setNumber] = (0, import_react.useState)(1);
66
66
  const originServices = (0, import_react.useRef)([]);
67
67
  const [renderList, setRenderList] = (0, import_react.useState)([]);
68
+ console.log(renderList, "renderListrenderList");
68
69
  const context = (0, import_useEngineContext.default)();
69
70
  const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
70
71
  const statusMap = {
@@ -126,6 +127,7 @@ var AddTimeModal = () => {
126
127
  }
127
128
  return arr.filter(Boolean);
128
129
  }, [(_f = (_e = (_d = state.service) == null ? void 0 : _d.cacheItem) == null ? void 0 : _e._extend) == null ? void 0 : _f.resource]);
130
+ console.log(currentResource, "currentResource");
129
131
  const getTimeUsableStatus = (time) => {
130
132
  var _a2, _b2;
131
133
  if (!((_a2 = state.service.cacheItem) == null ? void 0 : _a2._extend) || !currentResource.length) {
@@ -206,6 +208,7 @@ var AddTimeModal = () => {
206
208
  setLoading("list");
207
209
  const newList = await _getAddTimeProducts();
208
210
  let list = newList.map((d) => {
211
+ debugger;
209
212
  let isUsable = (0, import_utils2.isUsableProduct)(d.add_time, state.service.cacheItem);
210
213
  return {
211
214
  ...d,
@@ -168,9 +168,11 @@ var Resources = ({
168
168
  const getIsAutoAllocation = (id) => {
169
169
  return (0, import_utils2.getAutoAllocationStorage)(id);
170
170
  };
171
+ console.log("resourcesss");
171
172
  return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, data.map((item) => {
172
173
  var _a2;
173
174
  const cur = _value[item.form_id];
175
+ console.log(cur, "curcur");
174
176
  const errors = (cur || []).reduce((pre, d) => {
175
177
  return pre.concat((d == null ? void 0 : d.errors) || []);
176
178
  }, []);
@@ -72,7 +72,7 @@ var Resources = ({
72
72
  const originData = (0, import_react.useMemo)(() => {
73
73
  var _a2;
74
74
  return ((_a2 = cacheItem == null ? void 0 : cacheItem._data) == null ? void 0 : _a2.resources) || [];
75
- }, [(_b = originCacheItem == null ? void 0 : originCacheItem._data) == null ? void 0 : _b.resource]);
75
+ }, [(_b = originCacheItem == null ? void 0 : originCacheItem._data) == null ? void 0 : _b.resources]);
76
76
  const resourceMaps = (0, import_react.useMemo)(() => {
77
77
  var _a2;
78
78
  return ((_a2 = cacheItem == null ? void 0 : cacheItem._data) == null ? void 0 : _a2.resourceMaps) || [];
@@ -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,43 +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;
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(
449
+ const SelectTime = (_p = window.BaseMaterials) == null ? void 0 : _p.SelectTime;
450
+ console.log(isShowTimeAndResource, "isShowTimeAndResource");
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(
453
454
  import_collapsibleList.default,
454
455
  {
455
456
  style: { marginTop: bundles.length ? "8px" : 0 },
456
457
  list: bundles,
457
458
  renderItem: (item) => (0, import_utils2.renderBundles)(item, state.amountSymbol)
458
459
  }
459
- )))), /* @__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(
460
465
  import_antd.Form.Item,
461
466
  {
462
467
  label: import_utils.locales.getText("pisell2.text.price"),
463
468
  name: "total",
464
469
  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")(
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")(
466
471
  (0, import_utils.formatAmount)(
467
- (_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,
468
473
  2,
469
474
  state.amountSymbol
470
475
  ),
@@ -480,18 +485,25 @@ var Info = (_, ref) => {
480
485
  prefix: state.amountSymbol,
481
486
  onChange: handleTotalChange,
482
487
  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"
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"
485
490
  }
486
491
  )
487
- )), 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(
488
496
  import_antd.Form.Item,
489
497
  {
490
498
  label: import_utils.locales.getText("pisell2.text.discount-reason"),
491
499
  name: "discount_reason"
492
500
  },
493
501
  /* @__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(
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(
495
507
  import_antd.Form.Item,
496
508
  {
497
509
  label: import_utils.locales.getText("pisell2.text.start_time"),
@@ -501,7 +513,7 @@ var Info = (_, ref) => {
501
513
  SelectTime ? /* @__PURE__ */ import_react.default.createElement(
502
514
  SelectTime,
503
515
  {
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,
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,
505
517
  timePickerProps: {
506
518
  style: { width: "100%" }
507
519
  },
@@ -510,7 +522,11 @@ var Info = (_, ref) => {
510
522
  }
511
523
  }
512
524
  ) : null
513
- )), /* @__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(
514
530
  import_antd.Form.Item,
515
531
  {
516
532
  label: import_utils.locales.getText("pisell2.text.duration"),
@@ -518,23 +534,34 @@ var Info = (_, ref) => {
518
534
  rules: [{ required: true }]
519
535
  },
520
536
  /* @__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(
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(
522
542
  import_Resources.default,
523
543
  {
524
544
  ref: resourcesRef,
525
545
  state,
526
546
  cacheItem: state.service.cacheItem,
527
- getCurrentCacheItem,
528
- useDuration,
529
- useStartTime
547
+ getCurrentCacheItem
530
548
  }
531
- )), /* @__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(
532
553
  import_Capacity.default,
533
554
  {
534
555
  state,
535
556
  cacheItem: state.service.cacheItem
536
557
  }
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(
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(
538
565
  import_antd.Form.Item,
539
566
  {
540
567
  label: import_utils.locales.getText("pisell2.text.quantity"),
@@ -556,7 +583,11 @@ var Info = (_, ref) => {
556
583
  }
557
584
  }
558
585
  )
559
- )))), /* @__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(
560
591
  "div",
561
592
  {
562
593
  className: "pisell-lowcode__booking-service-delete-wrap",
@@ -568,13 +599,47 @@ var Info = (_, ref) => {
568
599
  {
569
600
  type: "primary",
570
601
  className: "pisell-lowcode__booking-service-body-edit-footer-apple",
571
- disabled: !isNormalProduct && !((_F = state.service.resourcesOrigin) == null ? void 0 : _F.length),
602
+ disabled: !isNormalProduct && !((_a2 = state.service.resourcesOrigin) == null ? void 0 : _a2.length),
572
603
  onClick: () => {
573
604
  form.submit();
574
605
  }
575
606
  },
576
607
  import_utils.locales.getText("pisell2.text.apply")
577
- )))
608
+ ));
609
+ }, [(_G = state.service.resourcesOrigin) == null ? void 0 : _G.length, isNormalProduct]);
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: 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)
578
643
  ));
579
644
  };
580
645
  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,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -104,4 +105,11 @@ export declare const walkInData: {
104
105
  id: number;
105
106
  nickname: string;
106
107
  };
107
- export declare const Provider: any, Context: any;
108
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
109
+ state: FormState;
110
+ } & {
111
+ dispatch: (params: {
112
+ type: string;
113
+ payload: any;
114
+ }) => void;
115
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -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
  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
  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 { CalendarDataItem } from '../../type';
2
3
  declare type CalendarItemProps = {
3
4
  month: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
3
4
  export default SetupForm;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
2
3
  import './index.less';
3
4
  interface WalletUseListProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  platform: 'pc' | 'h5' | '' | undefined;
3
4
  order: any;
@@ -28,4 +29,11 @@ export interface PayGroup {
28
29
  pay_number?: string;
29
30
  _order: any;
30
31
  }
31
- export declare const Provider: any, Context: any;
32
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
33
+ state: FormState;
34
+ } & {
35
+ dispatch: (params: {
36
+ type: string;
37
+ payload: any;
38
+ }) => void;
39
+ }>;