@pisell/private-materials 3.3.51 → 3.3.55

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 (211) hide show
  1. package/build/lowcode/index.js +1 -1
  2. package/build/lowcode/preview.js +8 -8
  3. package/build/lowcode/render/default/view.css +1 -1
  4. package/build/lowcode/render/default/view.js +7 -7
  5. package/build/lowcode/view.css +1 -1
  6. package/build/lowcode/view.js +6 -6
  7. package/es/components/Sales/Summary/utils.d.ts +1 -1
  8. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  9. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Resource/index.js +5 -44
  14. package/es/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  15. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  16. package/es/components/appointmentBooking/deposit/index.d.ts +1 -0
  17. package/es/components/appointmentBooking/hooks.js +177 -218
  18. package/es/components/appointmentBooking/index.d.ts +0 -1
  19. package/es/components/appointmentBooking/locales.d.ts +0 -3
  20. package/es/components/appointmentBooking/locales.js +0 -9
  21. package/es/components/booking/components/TabProduct/productItem/index.js +2 -14
  22. package/es/components/booking/components/drawer/index.js +2 -4
  23. package/es/components/booking/components/footer/index.d.ts +0 -1
  24. package/es/components/booking/components/voucher/index.js +17 -25
  25. package/es/components/booking/forms/footer.d.ts +1 -0
  26. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  27. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  28. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  29. package/es/components/booking/info/client/index.js +1 -2
  30. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  31. package/es/components/booking/info/date/index.d.ts +0 -1
  32. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  33. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  34. package/es/components/booking/info/index.d.ts +0 -1
  35. package/es/components/booking/info/notes/index.d.ts +0 -1
  36. package/es/components/booking/info/pet/index.js +0 -3
  37. package/es/components/booking/info/service/Lists.d.ts +0 -1
  38. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  39. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  40. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  41. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  42. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  43. package/es/components/booking/info/service2/utils.js +27 -27
  44. package/es/components/booking/info2/index.js +3 -3
  45. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  46. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  47. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  48. package/es/components/booking/info2/service/addService/utils.js +2 -5
  49. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  50. package/es/components/booking/info2/service/editService/index.js +0 -1
  51. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  52. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  53. package/es/components/eftposPay/amount.d.ts +1 -1
  54. package/es/components/eftposPay/device.d.ts +1 -1
  55. package/es/components/eftposPay/hooks.d.ts +2 -2
  56. package/es/components/eftposPay/store/index.d.ts +5 -5
  57. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  58. package/es/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  59. package/es/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  60. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  61. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  62. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  63. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  64. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  65. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  66. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  67. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  68. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  69. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  70. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  71. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  72. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  73. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +4 -23
  74. package/es/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  75. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  76. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  77. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  78. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  79. package/es/components/pisellSelectCustomerModal/index.d.ts +1 -0
  80. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  81. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -1
  82. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.js +6 -18
  83. package/es/components/productExtension/index.d.ts +0 -1
  84. package/es/components/productSelect/components/TabProduct/index.js +10 -28
  85. package/es/components/productSelect/components/productGroup/index.js +7 -20
  86. package/es/components/productSelect/components/productGroup/index.less +1 -14
  87. package/es/components/productSelect/index.less +2 -1
  88. package/es/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  89. package/es/components/shoppingCart/components/Cart/index.d.ts +1 -0
  90. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  91. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  92. package/es/components/ticketBooking/components/addServiceVariant/addService.js +10 -16
  93. package/es/components/ticketBooking/components/addServiceVariant/index.less +0 -10
  94. package/es/components/ticketBooking/components/ticketBooking/index.js +1 -3
  95. package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  96. package/es/components/ticketBooking/index.js +1 -2
  97. package/es/components/ticketBooking/locales.d.ts +0 -3
  98. package/es/components/ticketBooking/locales.js +3 -12
  99. package/es/components/ticketBooking/utils/index.d.ts +1 -5
  100. package/es/components/ticketBooking/utils/index.js +3 -35
  101. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  102. package/es/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  103. package/lib/components/Sales/Summary/utils.d.ts +1 -1
  104. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  105. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  106. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  107. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  108. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  109. package/lib/components/appointmentBooking/components/Resource/index.js +5 -44
  110. package/lib/components/appointmentBooking/components/Voucher/index.d.ts +1 -0
  111. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +1 -0
  112. package/lib/components/appointmentBooking/deposit/index.d.ts +1 -0
  113. package/lib/components/appointmentBooking/hooks.js +3 -12
  114. package/lib/components/appointmentBooking/index.d.ts +0 -1
  115. package/lib/components/appointmentBooking/locales.d.ts +0 -3
  116. package/lib/components/appointmentBooking/locales.js +0 -3
  117. package/lib/components/booking/components/TabProduct/productItem/index.js +1 -8
  118. package/lib/components/booking/components/drawer/index.js +2 -2
  119. package/lib/components/booking/components/footer/index.d.ts +0 -1
  120. package/lib/components/booking/components/voucher/index.js +27 -31
  121. package/lib/components/booking/forms/footer.d.ts +1 -0
  122. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  123. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  124. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  125. package/lib/components/booking/info/client/index.js +1 -2
  126. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  127. package/lib/components/booking/info/date/index.d.ts +0 -1
  128. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  129. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  130. package/lib/components/booking/info/index.d.ts +0 -1
  131. package/lib/components/booking/info/notes/index.d.ts +0 -1
  132. package/lib/components/booking/info/pet/index.js +0 -3
  133. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  134. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  135. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  136. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  137. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  138. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  139. package/lib/components/booking/info/service2/utils.js +2 -2
  140. package/lib/components/booking/info2/index.js +4 -7
  141. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  142. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  143. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  144. package/lib/components/booking/info2/service/addService/utils.js +2 -4
  145. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  146. package/lib/components/booking/info2/service/editService/index.js +0 -1
  147. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  148. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  149. package/lib/components/eftposPay/amount.d.ts +1 -1
  150. package/lib/components/eftposPay/device.d.ts +1 -1
  151. package/lib/components/eftposPay/hooks.d.ts +2 -2
  152. package/lib/components/eftposPay/store/index.d.ts +5 -5
  153. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  154. package/lib/components/eventBooking/components/Provider/Cart/ContinueButton/index.d.ts +1 -0
  155. package/lib/components/eventBooking/components/Provider/Cart/Item/Total.d.ts +1 -0
  156. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  157. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  158. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  159. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  160. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  161. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  162. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  163. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  164. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  165. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  166. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  167. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  168. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  169. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.js +8 -18
  170. package/lib/components/eventBooking/components/scheduleCalendar/calendarItem.d.ts +1 -0
  171. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  172. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  173. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  174. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  175. package/lib/components/pisellSelectCustomerModal/index.d.ts +1 -0
  176. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  177. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -1
  178. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.js +1 -8
  179. package/lib/components/productExtension/index.d.ts +0 -1
  180. package/lib/components/productSelect/components/TabProduct/index.js +6 -19
  181. package/lib/components/productSelect/components/productGroup/index.js +4 -24
  182. package/lib/components/productSelect/components/productGroup/index.less +1 -14
  183. package/lib/components/productSelect/index.less +2 -1
  184. package/lib/components/shoppingCart/components/Cart/Product.d.ts +1 -0
  185. package/lib/components/shoppingCart/components/Cart/index.d.ts +1 -0
  186. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  187. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  188. package/lib/components/ticketBooking/components/addServiceVariant/addService.js +14 -25
  189. package/lib/components/ticketBooking/components/addServiceVariant/index.less +0 -10
  190. package/lib/components/ticketBooking/components/ticketBooking/index.js +1 -3
  191. package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
  192. package/lib/components/ticketBooking/index.js +1 -2
  193. package/lib/components/ticketBooking/locales.d.ts +0 -3
  194. package/lib/components/ticketBooking/locales.js +3 -6
  195. package/lib/components/ticketBooking/utils/index.d.ts +1 -5
  196. package/lib/components/ticketBooking/utils/index.js +3 -35
  197. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  198. package/lib/components/workSpaceList/components/SearchWorkspaceAndBase/index.d.ts +1 -0
  199. package/package.json +4 -4
  200. package/es/components/appointmentBooking/assets/resource.svg +0 -1
  201. package/es/components/productSelect/components/TabProduct/tabs/index.d.ts +0 -21
  202. package/es/components/productSelect/components/TabProduct/tabs/index.js +0 -243
  203. package/es/components/productSelect/components/TabProduct/tabs/index.less +0 -126
  204. package/es/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
  205. package/es/components/productSelect/components/pisellPriceText/index.js +0 -43
  206. package/lib/components/appointmentBooking/assets/resource.svg +0 -1
  207. package/lib/components/productSelect/components/TabProduct/tabs/index.d.ts +0 -21
  208. package/lib/components/productSelect/components/TabProduct/tabs/index.js +0 -202
  209. package/lib/components/productSelect/components/TabProduct/tabs/index.less +0 -126
  210. package/lib/components/productSelect/components/pisellPriceText/index.d.ts +0 -11
  211. package/lib/components/productSelect/components/pisellPriceText/index.js +0 -72
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AppointmentBooking: () => JSX.Element;
4
3
  export default AppointmentBooking;
@@ -106,7 +106,6 @@ declare const _default: {
106
106
  'pisell2.appointment.add-guests': string;
107
107
  'pisell2.appointment.policy': string;
108
108
  'pisell2.appointment.policy.confirm': string;
109
- 'pisell2.appointment.resource.tip': (val: string) => string;
110
109
  'pisell2.text.apply': string;
111
110
  'pisell2.text.goodpass': string;
112
111
  'pisell2.text.goodpass.product-vouchers': string;
@@ -224,7 +223,6 @@ declare const _default: {
224
223
  'pisell2.appointment.add-guests': string;
225
224
  'pisell2.appointment.policy': string;
226
225
  'pisell2.appointment.policy.confirm': string;
227
- 'pisell2.appointment.resource.tip': (val: string) => string;
228
226
  'pisell2.text.apply': string;
229
227
  'pisell2.text.goodpass': string;
230
228
  'pisell2.text.goodpass.product-vouchers': string;
@@ -342,7 +340,6 @@ declare const _default: {
342
340
  'pisell2.appointment.add-guests': string;
343
341
  'pisell2.appointment.policy': string;
344
342
  'pisell2.appointment.policy.confirm': string;
345
- 'pisell2.appointment.resource.tip': (val: string) => string;
346
343
  'pisell2.text.apply': string;
347
344
  'pisell2.text.goodpass': string;
348
345
  'pisell2.text.goodpass.product-vouchers': string;
@@ -122,9 +122,6 @@ export default {
122
122
  'pisell2.appointment.add-guests': 'Add guests',
123
123
  'pisell2.appointment.policy': 'You have read and agreed to this policy',
124
124
  'pisell2.appointment.policy.confirm': 'Confirm',
125
- 'pisell2.appointment.resource.tip': function pisell2AppointmentResourceTip(val) {
126
- return "Tip: Change ".concat(val || 'resource', " using the dropdown in the cart.");
127
- },
128
125
  'pisell2.text.apply': 'Apply',
129
126
  'pisell2.text.goodpass': 'GoodPass',
130
127
  'pisell2.text.goodpass.product-vouchers': 'Product Vouchers',
@@ -258,9 +255,6 @@ export default {
258
255
  'pisell2.appointment.add-guests': '添加预约人',
259
256
  'pisell2.appointment.policy': '您已仔细阅读并同意此协议',
260
257
  'pisell2.appointment.policy.confirm': '确定',
261
- 'pisell2.appointment.resource.tip': function pisell2AppointmentResourceTip(val) {
262
- return "\u63D0\u793A\uFF1A\u5728\u53F3\u4FA7\u8D2D\u7269\u8F66\u4E2D\uFF0C\u901A\u8FC7\u4E0B\u62C9\u6846\u4FEE\u6539\u201C".concat(val || '资源', "\u201D");
263
- },
264
258
  'pisell2.text.apply': '应用',
265
259
  'pisell2.text.goodpass': '商品券',
266
260
  'pisell2.text.goodpass.product-vouchers': '商品兑换券',
@@ -394,9 +388,6 @@ export default {
394
388
  'pisell2.appointment.add-guests': '添加預約人',
395
389
  'pisell2.appointment.policy': '您已仔細閱讀並同意此協議',
396
390
  'pisell2.appointment.policy.confirm': '確定',
397
- 'pisell2.appointment.resource.tip': function pisell2AppointmentResourceTip(val) {
398
- return "\u63D0\u793A\uFF1A\u5728\u53F3\u5074\u8CFC\u7269\u8ECA\u4E2D\uFF0C\u900F\u904E\u4E0B\u62C9\u6846\u4FEE\u6539\u201C".concat(val || '資源', "\u201D");
399
- },
400
391
  'pisell2.text.apply': '應用',
401
392
  'pisell2.text.goodpass': '商品券',
402
393
  'pisell2.text.goodpass.product-vouchers': '商品兌換券',
@@ -1,9 +1,7 @@
1
1
  import React, { useMemo } from 'react';
2
- import { image, locales } from '@pisell/utils';
2
+ import { formatAmount, image, locales } from '@pisell/utils';
3
3
  import classNames from 'classnames';
4
4
  import { getDiscountTime } from "../../../utils";
5
- import Decimal from 'decimal.js';
6
- import PisellPriceText from "../../../../productSelect/components/pisellPriceText";
7
5
  import "./index.less";
8
6
  var ProductItem = function ProductItem(_ref) {
9
7
  var item = _ref.item,
@@ -11,13 +9,6 @@ var ProductItem = function ProductItem(_ref) {
11
9
  amountSymbol = _ref.amountSymbol,
12
10
  style = _ref.style,
13
11
  className = _ref.className;
14
- var price = item.price,
15
- is_bundle = item.is_bundle,
16
- minimum_markup_price = item.minimum_markup_price;
17
- var _price = price;
18
- if (is_bundle) {
19
- _price = new Decimal(price).plus(new Decimal(minimum_markup_price)).toFixed(2);
20
- }
21
12
  var stockText = useMemo(function () {
22
13
  if (item.is_track === 0) {
23
14
  return false;
@@ -54,9 +45,6 @@ var ProductItem = function ProductItem(_ref) {
54
45
  className: "server-product-time"
55
46
  }, stockText), /*#__PURE__*/React.createElement("div", {
56
47
  className: "server-product-price"
57
- }, /*#__PURE__*/React.createElement(PisellPriceText, {
58
- value: _price,
59
- isMini: is_bundle
60
- }))));
48
+ }, formatAmount(item.price, 2, amountSymbol))));
61
49
  };
62
50
  export default ProductItem;
@@ -16,9 +16,7 @@ var Drawer = function Drawer(props) {
16
16
  var _props$hideScrollBar = props.hideScrollBar,
17
17
  hideScrollBar = _props$hideScrollBar === void 0 ? true : _props$hideScrollBar,
18
18
  _props$showGoBack = props.showGoBack,
19
- showGoBack = _props$showGoBack === void 0 ? true : _props$showGoBack,
20
- _props$mask = props.mask,
21
- mask = _props$mask === void 0 ? false : _props$mask;
19
+ showGoBack = _props$showGoBack === void 0 ? true : _props$showGoBack;
22
20
  return /*#__PURE__*/React.createElement(OriginDrawer, _extends({
23
21
  width: '600px',
24
22
  closable: false,
@@ -32,7 +30,7 @@ var Drawer = function Drawer(props) {
32
30
  padding: 0
33
31
  },
34
32
  push: false,
35
- mask: mask
33
+ mask: false
36
34
  }), /*#__PURE__*/React.createElement("div", {
37
35
  className: classNames('pisell-lowcode__booking-drawer-title-wrap')
38
36
  }, /*#__PURE__*/React.createElement("div", {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  /**
4
3
  * @title: 底部
@@ -22,7 +22,7 @@ import useEngineContext from "../../../../hooks/useEngineContext";
22
22
  import { PisellInput, PisellGoodPassCard, PisellToast } from '@pisell/materials';
23
23
  import { useIsBooking4Shop } from "../../hooks/useIsBooking4Shop";
24
24
  import "./index.less";
25
- import { useMemoizedFn, useDebounceFn } from 'ahooks';
25
+ import { useMemoizedFn } from "ahooks";
26
26
  var ShopDiscountHooks = {
27
27
  onInited: 'shopDiscount:onInited',
28
28
  onDestroy: 'shopDiscount:onDestroy',
@@ -98,33 +98,25 @@ var VoucherCard = function VoucherCard(props) {
98
98
  });
99
99
  return val;
100
100
  }, [state.service.value]);
101
- var _useDebounceFn = useDebounceFn(function () {
102
- var _state$service;
103
- // console.log('state.service.value1', state.service.value);
104
- if (productRef.current === state.service.value || !((_state$service = state.service) !== null && _state$service !== void 0 && (_state$service = _state$service.value) !== null && _state$service !== void 0 && _state$service.length)) {
105
- return;
106
- }
107
- if (isBooking4Shop) {
108
- var val = shopDiscount.calcDiscount(state.service.value);
109
- // console.log('input: ', state.service.value);
110
- // console.log('output: ', val);
111
- productRef.current = val.productList;
112
- // console.log('val.productList', val.productList);
113
- dispatch({
114
- type: 'setService',
115
- payload: _objectSpread(_objectSpread({}, services), {}, {
116
- value: ((val === null || val === void 0 ? void 0 : val.productList) || []).filter(Boolean)
117
- })
118
- });
119
- }
120
- }, {
121
- wait: 500
122
- }),
123
- run = _useDebounceFn.run;
124
101
 
125
102
  // 更新productList
126
103
  useEffect(function () {
127
- run();
104
+ var _state$service;
105
+ if (productRef.current === state.service.value || !((_state$service = state.service) !== null && _state$service !== void 0 && (_state$service = _state$service.value) !== null && _state$service !== void 0 && _state$service.length)) {
106
+ return;
107
+ }
108
+ if (isBooking4Shop) {
109
+ var val = shopDiscount.calcDiscount(state.service.value);
110
+ console.log('input: ', state.service.value);
111
+ console.log('output: ', val);
112
+ productRef.current = val.productList;
113
+ dispatch({
114
+ type: 'setService',
115
+ payload: _objectSpread(_objectSpread({}, services), {}, {
116
+ value: ((val === null || val === void 0 ? void 0 : val.productList) || []).filter(Boolean)
117
+ })
118
+ });
119
+ }
128
120
  }, [JSON.stringify(serviceMemo), isBooking4Shop]);
129
121
  var fn = useMemoizedFn(function (result) {
130
122
  var _result$productList;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface FooterProps {
2
3
  state: any;
3
4
  reload: () => void;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SendModalValues } from './index';
2
3
  declare const useSendModal: (bookingId?: number) => {
3
4
  open: boolean;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useClearCart: (state: any, dispatch: any) => false | JSX.Element;
2
3
  export default useClearCart;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface AddServiceVariantProps {
3
2
  globalState: any;
4
3
  setGlobalState: any;
@@ -401,8 +401,7 @@ var Client = function Client() {
401
401
  isPreview: false,
402
402
  drawerProps: {
403
403
  title: locales.getText('pisell2.text.select-customer'),
404
- destroyOnClose: true,
405
- mask: state.drawerMask
404
+ destroyOnClose: true
406
405
  },
407
406
  mode: "single",
408
407
  createItemText: locales.getText('pisell2.text.create-new-customer'),
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { FormState } from '../../../model';
3
2
  interface useClientFnParams {
4
3
  state: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
4
3
  declare const DateCom: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
3
4
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { EditServiceRef } from "../service/editService";
3
2
  declare const useInfoHolder: (state: any, dispatch: any) => {
4
3
  detailRef: import("react").MutableRefObject<EditServiceRef | undefined>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InfoProps } from './main';
3
2
  declare const APP: (props: InfoProps) => JSX.Element;
4
3
  export default APP;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Notes: () => JSX.Element | null;
3
2
  export default Notes;
@@ -623,9 +623,6 @@ var Pet = function Pet(props) {
623
623
  form_id: formDataConfig === null || formDataConfig === void 0 ? void 0 : formDataConfig.form_id
624
624
  })].concat(_toConsumableArray(((_state$pet11 = state.pet) === null || _state$pet11 === void 0 || (_state$pet11 = _state$pet11.formData) === null || _state$pet11 === void 0 || (_state$pet11 = _state$pet11[0]) === null || _state$pet11 === void 0 ? void 0 : _state$pet11.options) || [])));
625
625
  },
626
- drawerProps: {
627
- mask: state.drawerMask
628
- },
629
626
  getHolders: getHolders,
630
627
  addCallbackService: _addCallback,
631
628
  loading: valueLoading,
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange, onAction, isParallelResource }: any) => JSX.Element;
3
2
  export default Lists;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellDrawerProps } from '../../../components/drawer';
3
2
  import './index.less';
4
3
  interface AddServiceProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceList: ({ onEdit }: {
4
3
  onEdit: any;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const Lists: ({ onEdit, onChange }: any) => JSX.Element;
3
2
  export default Lists;
@@ -540,7 +540,7 @@ export var isAllNormalProductByState = function isAllNormalProductByState(state)
540
540
  return isAllNormalProduct(state.service.value);
541
541
  };
542
542
  var getGeneralParams = function getGeneralParams(item, state, isParallelResource) {
543
- var _formData$, _item$_extend5, _item$_extend6, _item$_extend7, _item$_extend8, _item$_extend9;
543
+ var _formData$, _item$_extend5, _item$_extend6, _item$_extend7, _item$_extend8;
544
544
  var pet = state.pet,
545
545
  service = state.service;
546
546
  var _ref8 = pet || {},
@@ -614,8 +614,7 @@ var getGeneralParams = function getGeneralParams(item, state, isParallelResource
614
614
  addHolderButtonText: (formData === null || formData === void 0 || (_formData$ = formData[0]) === null || _formData$ === void 0 || (_formData$ = _formData$.form) === null || _formData$ === void 0 ? void 0 : _formData$.title) || "",
615
615
  holder_id: item === null || item === void 0 || (_item$_extend5 = item._extend) === null || _item$_extend5 === void 0 ? void 0 : _item$_extend5.holder_id,
616
616
  start_date: !isNormalProduct ? item === null || item === void 0 || (_item$_extend6 = item._extend) === null || _item$_extend6 === void 0 ? void 0 : _item$_extend6.startDate : "",
617
- end_date: !isNormalProduct ? (item === null || item === void 0 || (_item$_extend7 = item._extend) === null || _item$_extend7 === void 0 ? void 0 : _item$_extend7.endDate) || (item === null || item === void 0 || (_item$_extend8 = item._extend) === null || _item$_extend8 === void 0 ? void 0 : _item$_extend8.end_date) : "",
618
- rowKey: "rowKey-".concat(item === null || item === void 0 || (_item$_extend9 = item._extend) === null || _item$_extend9 === void 0 || (_item$_extend9 = _item$_extend9.other) === null || _item$_extend9 === void 0 ? void 0 : _item$_extend9.rowKey)
617
+ end_date: !isNormalProduct ? (item === null || item === void 0 || (_item$_extend7 = item._extend) === null || _item$_extend7 === void 0 ? void 0 : _item$_extend7.endDate) || (item === null || item === void 0 || (_item$_extend8 = item._extend) === null || _item$_extend8 === void 0 ? void 0 : _item$_extend8.end_date) : ""
619
618
  }, parallelResourceOtherParams);
620
619
  };
621
620
  var calcAddTimeTotalPrice = function calcAddTimeTotalPrice(total, addTimeProducts) {
@@ -638,49 +637,50 @@ export var formatProducts = function formatProducts(lists, state) {
638
637
  var normalList = [];
639
638
  var groupList = [];
640
639
  var formItem = function formItem(item) {
641
- var _item$_extend10, _item$_extend11, _item$_extend12, _item$_extend14, _item$_extend15, _item$_extend16, _item$_extend17, _item$_extend18, _item$_extend19, _item$_extend20, _item$_extend21, _item$_extend22, _resourceItem, _item$_extend23, _item$_extend24, _item$_extend25, _item$_extend26, _item$_extend27;
640
+ var _item$_extend9, _item$_extend10, _item$_extend11, _item$_extend13, _item$_extend14, _item$_extend15, _item$_extend16, _item$_extend17, _item$_extend18, _item$_extend19, _item$_extend20, _item$_extend21, _resourceItem, _item$_extend22, _item$_extend23, _item$_extend24, _item$_extend25, _item$_extend26;
642
641
  var _isDayBookingProduct = isDayBookingProduct(item, state);
643
- var clientTitle = getHolderName(state, item === null || item === void 0 || (_item$_extend10 = item._extend) === null || _item$_extend10 === void 0 ? void 0 : _item$_extend10.holder_id);
644
- var options = formatOptions(item === null || item === void 0 || (_item$_extend11 = item._extend) === null || _item$_extend11 === void 0 || (_item$_extend11 = _item$_extend11.other) === null || _item$_extend11 === void 0 ? void 0 : _item$_extend11.option);
645
- var bundle = formatBundle(item === null || item === void 0 || (_item$_extend12 = item._extend) === null || _item$_extend12 === void 0 || (_item$_extend12 = _item$_extend12.other) === null || _item$_extend12 === void 0 ? void 0 : _item$_extend12.bundle);
642
+ var clientTitle = getHolderName(state, item === null || item === void 0 || (_item$_extend9 = item._extend) === null || _item$_extend9 === void 0 ? void 0 : _item$_extend9.holder_id);
643
+ var options = formatOptions(item === null || item === void 0 || (_item$_extend10 = item._extend) === null || _item$_extend10 === void 0 || (_item$_extend10 = _item$_extend10.other) === null || _item$_extend10 === void 0 ? void 0 : _item$_extend10.option);
644
+ var bundle = formatBundle(item === null || item === void 0 || (_item$_extend11 = item._extend) === null || _item$_extend11 === void 0 || (_item$_extend11 = _item$_extend11.other) === null || _item$_extend11 === void 0 ? void 0 : _item$_extend11.bundle);
646
645
  // 是否是普通商品
647
646
  var isNormalProduct = !appointmentTypes.includes(item === null || item === void 0 ? void 0 : item.extension_type) || (state === null || state === void 0 ? void 0 : state.renderType) === 'eventBooking';
648
647
  var resourceItem = {};
649
648
  var errorMessage = '';
650
649
  if (_isDayBookingProduct || isGeneral) {
651
- var _item$_extend13;
652
- resourceItem = getResourceItem(item === null || item === void 0 || (_item$_extend13 = item._extend) === null || _item$_extend13 === void 0 ? void 0 : _item$_extend13.resource, state);
650
+ var _item$_extend12;
651
+ resourceItem = getResourceItem(item === null || item === void 0 || (_item$_extend12 = item._extend) === null || _item$_extend12 === void 0 ? void 0 : _item$_extend12.resource, state);
653
652
  errorMessage = getErrorMessage(item, resourceItem, isDayBooking(state));
654
653
  }
655
654
  var generalParams = isGeneral ? getGeneralParams(item, state, !!isParallelResource) : {};
655
+ console.log(isNormalProduct, 'isNormalProduct');
656
656
  return _objectSpread(_objectSpread({
657
657
  id: item === null || item === void 0 ? void 0 : item.id,
658
658
  _id: item === null || item === void 0 ? void 0 : item._id,
659
659
  name: item === null || item === void 0 ? void 0 : item.title,
660
- price: item === null || item === void 0 || (_item$_extend14 = item._extend) === null || _item$_extend14 === void 0 ? void 0 : _item$_extend14.price,
661
- total: calcAddTimeTotalPrice(item === null || item === void 0 || (_item$_extend15 = item._extend) === null || _item$_extend15 === void 0 ? void 0 : _item$_extend15.total, item === null || item === void 0 || (_item$_extend16 = item._extend) === null || _item$_extend16 === void 0 ? void 0 : _item$_extend16.relation_details),
662
- origin_total: calcAddTimeTotalPrice(item === null || item === void 0 || (_item$_extend17 = item._extend) === null || _item$_extend17 === void 0 ? void 0 : _item$_extend17.origin_total, item === null || item === void 0 || (_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.relation_details),
660
+ price: item === null || item === void 0 || (_item$_extend13 = item._extend) === null || _item$_extend13 === void 0 ? void 0 : _item$_extend13.price,
661
+ total: calcAddTimeTotalPrice(item === null || item === void 0 || (_item$_extend14 = item._extend) === null || _item$_extend14 === void 0 ? void 0 : _item$_extend14.total, item === null || item === void 0 || (_item$_extend15 = item._extend) === null || _item$_extend15 === void 0 ? void 0 : _item$_extend15.relation_details),
662
+ origin_total: calcAddTimeTotalPrice(item === null || item === void 0 || (_item$_extend16 = item._extend) === null || _item$_extend16 === void 0 ? void 0 : _item$_extend16.origin_total, item === null || item === void 0 || (_item$_extend17 = item._extend) === null || _item$_extend17 === void 0 ? void 0 : _item$_extend17.relation_details),
663
663
  num: item === null || item === void 0 ? void 0 : item._extend.quantity,
664
664
  image: item === null || item === void 0 ? void 0 : item.cover,
665
665
  isShowNote: true,
666
666
  note: item === null || item === void 0 ? void 0 : item.note,
667
- like_status: item === null || item === void 0 || (_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.like_status,
667
+ like_status: item === null || item === void 0 || (_item$_extend18 = item._extend) === null || _item$_extend18 === void 0 ? void 0 : _item$_extend18.like_status,
668
668
  bundle: bundle,
669
669
  options: options,
670
670
  errorMessage: errorMessage,
671
- product_option_string: item === null || item === void 0 || (_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 || (_item$_extend20 = _item$_extend20.other) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.product_option_string,
672
- discount_reason: item === null || item === void 0 || (_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.discount_reason,
673
- resource_id: isNormalProduct ? 0 : item === null || item === void 0 || (_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.resource,
671
+ product_option_string: item === null || item === void 0 || (_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 || (_item$_extend19 = _item$_extend19.other) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.product_option_string,
672
+ discount_reason: item === null || item === void 0 || (_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.discount_reason,
673
+ resource_id: isNormalProduct ? 0 : item === null || item === void 0 || (_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.resource,
674
674
  relation_form_name: isNormalProduct ? '' : ((_resourceItem = resourceItem) === null || _resourceItem === void 0 ? void 0 : _resourceItem.labelText) || item.relation_form_name,
675
675
  holder_title: clientTitle,
676
- start_date: !isNormalProduct ? item === null || item === void 0 || (_item$_extend23 = item._extend) === null || _item$_extend23 === void 0 ? void 0 : _item$_extend23.start_date : '',
677
- end_date: !isNormalProduct ? item === null || item === void 0 || (_item$_extend24 = item._extend) === null || _item$_extend24 === void 0 ? void 0 : _item$_extend24.end_date : '',
678
- holder_id: (item === null || item === void 0 || (_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.holder_id) || 0,
676
+ start_date: !isNormalProduct ? item === null || item === void 0 || (_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.start_date : '',
677
+ end_date: !isNormalProduct ? item === null || item === void 0 || (_item$_extend23 = item._extend) === null || _item$_extend23 === void 0 ? void 0 : _item$_extend23.end_date : '',
678
+ holder_id: (item === null || item === void 0 || (_item$_extend24 = item._extend) === null || _item$_extend24 === void 0 ? void 0 : _item$_extend24.holder_id) || 0,
679
679
  isNormalProduct: isNormalProduct,
680
680
  locale: state.locale,
681
681
  symbol: state.amountSymbol,
682
- relation_products: (item === null || item === void 0 || (_item$_extend26 = item._extend) === null || _item$_extend26 === void 0 ? void 0 : _item$_extend26.relation_details) || [],
683
- items: isEventBooking(state) ? [] : formItems((item === null || item === void 0 || (_item$_extend27 = item._extend) === null || _item$_extend27 === void 0 ? void 0 : _item$_extend27.items) || [])
682
+ relation_products: (item === null || item === void 0 || (_item$_extend25 = item._extend) === null || _item$_extend25 === void 0 ? void 0 : _item$_extend25.relation_details) || [],
683
+ items: isEventBooking(state) ? [] : formItems((item === null || item === void 0 || (_item$_extend26 = item._extend) === null || _item$_extend26 === void 0 ? void 0 : _item$_extend26.items) || [])
684
684
  }, generalParams), {}, {
685
685
  _origin: item
686
686
  });
@@ -688,8 +688,8 @@ export var formatProducts = function formatProducts(lists, state) {
688
688
 
689
689
  // 将商品分为组商品和非组商品
690
690
  lists.forEach(function (item) {
691
- var _item$_extend28;
692
- if (!(item !== null && item !== void 0 && (_item$_extend28 = item._extend) !== null && _item$_extend28 !== void 0 && _item$_extend28.groupId)) {
691
+ var _item$_extend27;
692
+ if (!(item !== null && item !== void 0 && (_item$_extend27 = item._extend) !== null && _item$_extend27 !== void 0 && _item$_extend27.groupId)) {
693
693
  normalList.push(formItem(item));
694
694
  } else {
695
695
  groupList.push(item);
@@ -698,8 +698,8 @@ export var formatProducts = function formatProducts(lists, state) {
698
698
 
699
699
  // 根据item._extend.groupId 进行分组
700
700
  var groups = groupList.reduce(function (prev, item) {
701
- var _item$_extend29;
702
- var groupId = item === null || item === void 0 || (_item$_extend29 = item._extend) === null || _item$_extend29 === void 0 ? void 0 : _item$_extend29.groupId;
701
+ var _item$_extend28;
702
+ var groupId = item === null || item === void 0 || (_item$_extend28 = item._extend) === null || _item$_extend28 === void 0 ? void 0 : _item$_extend28.groupId;
703
703
  if (!prev[groupId]) {
704
704
  prev[groupId] = [];
705
705
  }
@@ -869,8 +869,8 @@ export var isHasDayAppointmentProduct = function isHasDayAppointmentProduct(stat
869
869
  // 如果该购物车中没选择任何商品,则不需要验证,所以直接用1来填充
870
870
  // services: !holderProducts?.length ? [1] : holderProducts?.filter((d: any) => appointmentTypes.includes(d.extension_type))
871
871
  services: services.filter(function (item) {
872
- var _item$_extend30;
873
- return ((_item$_extend30 = item._extend) === null || _item$_extend30 === void 0 ? void 0 : _item$_extend30.holder_id) == d.form_record_id && checkType(item.extension_type);
872
+ var _item$_extend29;
873
+ return ((_item$_extend29 = item._extend) === null || _item$_extend29 === void 0 ? void 0 : _item$_extend29.holder_id) == d.form_record_id && checkType(item.extension_type);
874
874
  })
875
875
  });
876
876
  });
@@ -27,8 +27,8 @@ import { updateServiceDate } from "../info/date";
27
27
  import useEngineContext from "../../../hooks/useEngineContext";
28
28
  import Notes from "../info/notes";
29
29
  import "../info/index.less";
30
- import { Skeleton } from 'antd';
31
- import classNames from 'classnames';
30
+ import { Skeleton } from "antd";
31
+ import classNames from "classnames";
32
32
  import useCreateBookingPageHeader from "../hooks/useCreateBookingPageHeader";
33
33
  import { getLocale } from "../../../utils/locales";
34
34
  var defaultModules = {
@@ -76,7 +76,7 @@ var Info = Provider(function (props) {
76
76
  });
77
77
  }
78
78
  }, []);
79
- useMemo(function () {
79
+ useEffect(function () {
80
80
  var _context$appHelper, _context$appHelper$ge, _context$appHelper2, _context$appHelper2$i, _context$appHelper3;
81
81
  var isFranchisee = context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.utils) === null || _context$appHelper === void 0 || (_context$appHelper = _context$appHelper.businessUtils) === null || _context$appHelper === void 0 || (_context$appHelper$ge = _context$appHelper.getAppByModal) === null || _context$appHelper$ge === void 0 ? void 0 : _context$appHelper$ge.call(_context$appHelper, 'franchisee');
82
82
  modal.dispatch({
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../info/service/actions/index.less';
3
2
  declare const Actions: ({ currentService }: {
4
3
  currentService: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PisellDrawerProps } from '../../../components/drawer';
3
2
  import '../../../info/service/addService/index.less';
4
3
  interface AddServiceProps {
@@ -77,7 +77,7 @@ export declare const setDefaultCapacitys: ({ capacitys, cacheItem }: any) => any
77
77
  * @Author: zhiwei.Wang
78
78
  * @Date: 2024-06-01 13:25
79
79
  */
80
- export declare const getProductExtend: ({ cacheItem, state, isDisabledTime }: any) => any;
80
+ export declare const getProductExtend: ({ cacheItem, state }: any) => any;
81
81
  /**
82
82
  * @title: 格式化服务列表
83
83
  * @description: 后端列表返回的product_resource.resources 的optional_resource等不是最新数据
@@ -472,8 +472,7 @@ var getIsAutoClose = function getIsAutoClose(cacheItem) {
472
472
  */
473
473
  export var getProductExtend = function getProductExtend(_ref10) {
474
474
  var cacheItem = _ref10.cacheItem,
475
- state = _ref10.state,
476
- isDisabledTime = _ref10.isDisabledTime;
475
+ state = _ref10.state;
477
476
  // 有endDate 说明是在编辑已经保存过的商品, 没有则是编辑还没保存过的商品
478
477
  var isNew = cacheItem.new || !cacheItem._extend.endDate;
479
478
  var _cacheItem = _objectSpread({}, cacheItem);
@@ -553,9 +552,7 @@ export var getProductExtend = function getProductExtend(_ref10) {
553
552
  if (_cacheItem._extend.bundle_edit !== undefined) {
554
553
  _cacheItem._extend.bundle_edit = 1;
555
554
  }
556
- if (!isDisabledTime) {
557
- _cacheItem._time = new Date().getTime();
558
- }
555
+ _cacheItem._time = new Date().getTime();
559
556
  } else {
560
557
  // if (!_cacheItem._data.timeObj) {
561
558
  // _cacheItem._data.timeObj = getTimeObj({
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import '../../../info/service/addTimeModal/index.less';
3
2
  declare const AddTimeModal: () => JSX.Element;
4
3
  export default AddTimeModal;
@@ -539,7 +539,6 @@ var Info = function Info(_, ref) {
539
539
  ,
540
540
  zIndex: state.service.changeService ? 999 : 1000,
541
541
  forceRender: true,
542
- mask: state.drawerMask,
543
542
  open: state.service.editModal && !((_state$service$cacheI6 = state.service.cacheItem) !== null && _state$service$cacheI6 !== void 0 && _state$service$cacheI6.autoClose),
544
543
  title: locales.getText('pisell2.text.edit-service'),
545
544
  onClose: function onClose() {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ServiceList: ({ onEdit }: {
4
3
  onEdit: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { SelectProps } from 'antd';
3
2
  interface HolderProps extends SelectProps {
4
3
  selectProps?: SelectProps;
@@ -9,7 +9,7 @@ import { PosProps } from './const';
9
9
  */
10
10
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
11
11
  className?: string | undefined;
12
- onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
12
+ onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
13
13
  [keys: string]: unknown;
14
14
  } | undefined, other?: any) => void) | undefined;
15
15
  onClose: () => void;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "page" | "success" | "fail" | "print" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "success" | "page" | "fail" | "print" | "mark_tx_processed", params?: string | {
15
15
  [keys: string]: unknown;
16
16
  } | undefined, other?: any) => void) | undefined;
17
17
  onClose: () => void;
@@ -15,11 +15,11 @@ export declare const useStoreRef: <T extends {
15
15
  readonly numRef: React.MutableRefObject<string | number | undefined>;
16
16
  readonly orderIdRef: React.MutableRefObject<string | number>;
17
17
  readonly modeRef: React.MutableRefObject<ModeEnum>;
18
- readonly statusRef: React.MutableRefObject<"loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question">;
19
19
  readonly netRef: React.MutableRefObject<boolean | undefined>;
20
20
  readonly symbolRef: React.MutableRefObject<string>;
21
21
  readonly amountRef: React.MutableRefObject<string | number>;
22
- readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe">;
22
+ readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -174,7 +174,7 @@ export declare const updateCustom: (payload: {
174
174
  export declare const updateStatus: (status: 'loading' | 'warn' | 'fail' | 'success' | 'question') => {
175
175
  type: EActionTypes;
176
176
  payload: {
177
- status: "loading" | "success" | "warn" | "fail" | "question";
177
+ status: "success" | "loading" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,20 +295,20 @@ export declare const backUpFree: (payload: Partial<State>) => {
295
295
  name?: string | undefined;
296
296
  symbol?: string | undefined;
297
297
  amount?: string | number | undefined;
298
- mode?: "pay" | "fullPay" | "refund" | "query" | undefined;
298
+ mode?: "refund" | "pay" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
- eftpos?: "payo" | "tyro" | "windcave" | "stripe" | undefined;
300
+ eftpos?: "stripe" | "payo" | "tyro" | "windcave" | undefined;
301
301
  action?: "amount" | "deviceList" | "pay" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
305
305
  subTitle?: string | undefined;
306
- type?: "step" | "unset" | undefined;
306
+ type?: "unset" | "step" | undefined;
307
307
  render?: boolean | undefined;
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "success" | "loading" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  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 ContinueButton: () => JSX.Element;
3
4
  export default ContinueButton;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
3
4
  export default Total;