@pisell/private-materials 6.4.49 → 6.4.50

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 (250) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/preview.js +146 -146
  6. package/build/lowcode/render/default/view.css +1 -1
  7. package/build/lowcode/render/default/view.js +1 -1
  8. package/build/lowcode/view.css +1 -1
  9. package/build/lowcode/view.js +3 -3
  10. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  11. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  12. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  13. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  14. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  15. package/es/components/booking/components/footer/index.js +12 -4
  16. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  17. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  18. package/es/components/booking/deposit/index.d.ts +0 -1
  19. package/es/components/booking/forms/single/index.d.ts +0 -1
  20. package/es/components/booking/forms/table/index.d.ts +0 -1
  21. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  22. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  23. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  24. package/es/components/booking/info/date/index.d.ts +0 -1
  25. package/es/components/booking/info/header/index.d.ts +0 -1
  26. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  27. package/es/components/booking/info/index.d.ts +0 -1
  28. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  29. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  30. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  31. package/es/components/booking/info/service/like/index.d.ts +0 -1
  32. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  33. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  34. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  35. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  36. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  37. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  38. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  39. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  40. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  41. package/es/components/booking/utils.d.ts +2 -2
  42. package/es/components/checkout/PaymentModal.js +78 -42
  43. package/es/components/checkout/components/AmountSummary/index.js +39 -4
  44. package/es/components/checkout/components/PaymentDetailModal/index.js +72 -20
  45. package/es/components/checkout/components/PaymentDetailModal/index.less +23 -2
  46. package/es/components/checkout/hooks/useWalletPass.js +1 -0
  47. package/es/components/checkout/locales.d.ts +3 -0
  48. package/es/components/checkout/locales.js +3 -0
  49. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  50. package/es/components/eftpos/form/index.d.ts +0 -1
  51. package/es/components/eftpos/group/index.d.ts +0 -1
  52. package/es/components/eftpos/hooks.d.ts +0 -1
  53. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  54. package/es/components/eftpos/icon/device.d.ts +0 -1
  55. package/es/components/eftpos/index.d.ts +0 -1
  56. package/es/components/eftpos/pos.d.ts +0 -1
  57. package/es/components/eftpos/receipt/index.d.ts +0 -1
  58. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  59. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  60. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  61. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  62. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  63. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  64. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  65. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  66. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  67. package/es/components/eftposPay/hooks.d.ts +1 -1
  68. package/es/components/eftposPay/payo/config.d.ts +0 -1
  69. package/es/components/eftposPay/store/index.d.ts +4 -4
  70. package/es/components/eftposPay/tip.d.ts +0 -1
  71. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  72. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  73. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  74. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  75. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  76. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  77. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  78. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  79. package/es/components/login/index.d.ts +0 -1
  80. package/es/components/pay/toB/components/Content/Header.d.ts +0 -1
  81. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  82. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  83. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  84. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  85. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  86. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  87. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  88. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  89. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  90. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  91. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  92. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  93. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  94. package/es/components/schedules/calendar/index.d.ts +0 -1
  95. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  96. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  97. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  98. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  99. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  100. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  101. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  102. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  103. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  104. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  105. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  106. package/es/components/schedules/products/index.d.ts +0 -1
  107. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  108. package/es/components/schedules/products/list/index.d.ts +0 -1
  109. package/es/components/schedules/resources/index.d.ts +0 -1
  110. package/es/components/schedules/resources/list/index.d.ts +0 -1
  111. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  112. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  113. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  114. package/es/components/schedules/schedules/index.d.ts +0 -1
  115. package/es/components/taxSelect/index.d.ts +0 -1
  116. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  117. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  118. package/es/hooks/usePaymentLogger.d.ts +0 -1
  119. package/es/plus/clientName/index.d.ts +0 -1
  120. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  121. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  122. package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  123. package/es/plus/saasCreateOrganization/index.d.ts +0 -1
  124. package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  125. package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  126. package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
  127. package/es/plus/saasRegister/components/Header.d.ts +0 -1
  128. package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
  129. package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  130. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  131. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  132. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  133. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  134. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  135. package/lib/components/booking/components/footer/index.js +6 -1
  136. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  137. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  138. package/lib/components/booking/deposit/index.d.ts +0 -1
  139. package/lib/components/booking/forms/single/index.d.ts +0 -1
  140. package/lib/components/booking/forms/table/index.d.ts +0 -1
  141. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  142. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  143. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  144. package/lib/components/booking/info/date/index.d.ts +0 -1
  145. package/lib/components/booking/info/header/index.d.ts +0 -1
  146. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  147. package/lib/components/booking/info/index.d.ts +0 -1
  148. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  149. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  150. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  151. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  152. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  153. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  154. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  155. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  156. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  157. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  158. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  159. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  160. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  161. package/lib/components/booking/utils.d.ts +2 -2
  162. package/lib/components/checkout/PaymentModal.js +36 -9
  163. package/lib/components/checkout/components/AmountSummary/index.js +31 -3
  164. package/lib/components/checkout/components/PaymentDetailModal/index.js +49 -11
  165. package/lib/components/checkout/components/PaymentDetailModal/index.less +23 -2
  166. package/lib/components/checkout/hooks/useWalletPass.js +1 -0
  167. package/lib/components/checkout/locales.d.ts +3 -0
  168. package/lib/components/checkout/locales.js +3 -0
  169. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  170. package/lib/components/eftpos/form/index.d.ts +0 -1
  171. package/lib/components/eftpos/group/index.d.ts +0 -1
  172. package/lib/components/eftpos/hooks.d.ts +0 -1
  173. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  174. package/lib/components/eftpos/icon/device.d.ts +0 -1
  175. package/lib/components/eftpos/index.d.ts +0 -1
  176. package/lib/components/eftpos/pos.d.ts +0 -1
  177. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  178. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  179. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  180. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  181. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  182. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  183. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  184. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  185. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  186. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  187. package/lib/components/eftposPay/hooks.d.ts +1 -1
  188. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  189. package/lib/components/eftposPay/store/index.d.ts +4 -4
  190. package/lib/components/eftposPay/tip.d.ts +0 -1
  191. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  192. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  193. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  194. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  195. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  196. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  197. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  198. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  199. package/lib/components/login/index.d.ts +0 -1
  200. package/lib/components/pay/toB/components/Content/Header.d.ts +0 -1
  201. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  202. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  203. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  204. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  205. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  206. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  207. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  208. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  209. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  210. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  211. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  212. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  213. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  214. package/lib/components/schedules/calendar/index.d.ts +0 -1
  215. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  216. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  217. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  218. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  219. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  220. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  221. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  222. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  223. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  224. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  225. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  226. package/lib/components/schedules/products/index.d.ts +0 -1
  227. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  228. package/lib/components/schedules/products/list/index.d.ts +0 -1
  229. package/lib/components/schedules/resources/index.d.ts +0 -1
  230. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  231. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  232. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  233. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  234. package/lib/components/schedules/schedules/index.d.ts +0 -1
  235. package/lib/components/taxSelect/index.d.ts +0 -1
  236. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  237. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  238. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  239. package/lib/plus/clientName/index.d.ts +0 -1
  240. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  241. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  242. package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  243. package/lib/plus/saasCreateOrganization/index.d.ts +0 -1
  244. package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  245. package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  246. package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
  247. package/lib/plus/saasRegister/components/Header.d.ts +0 -1
  248. package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
  249. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  250. package/package.json +2 -2
@@ -39,6 +39,7 @@ var import_locales = __toESM(require("../../locales"));
39
39
  var import_index = require("./index.less");
40
40
  var import_classnames = __toESM(require("classnames"));
41
41
  var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
42
+ var import_decimal = __toESM(require("decimal.js"));
42
43
  function PaymentDetailModal({
43
44
  amountSymbol,
44
45
  orderInfo,
@@ -87,15 +88,14 @@ function PaymentDetailModal({
87
88
  return (item.code === "cash" || item.type === "custom") && !item.isSynced;
88
89
  };
89
90
  const getTotalPaidAmount = () => {
90
- return paymentItems.filter((item) => !item.voucher_id).reduce((total, item) => total + Math.abs(item.amount) + Math.abs(item.rounding_amount), 0);
91
- };
92
- const getTotalVoucherAmount = () => {
93
- return paymentItems.filter((item) => item.voucher_id).reduce((total, item) => total + Math.abs(item.amount), 0);
91
+ return paymentItems.filter((item) => !item.voucher_id || item.isSynced).reduce((total, item) => {
92
+ const amount = new import_decimal.default(Math.abs(item.amount));
93
+ const roundingAmount = new import_decimal.default(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0);
94
+ return new import_decimal.default(total).plus(amount).plus(roundingAmount).toNumber();
95
+ }, 0);
94
96
  };
95
97
  const getBalanceDueAmount = () => {
96
- const baseAmount = customAmount ? parseFloat(customAmount) : 0;
97
- const voucherDeductions = getTotalVoucherAmount();
98
- return baseAmount + voucherDeductions;
98
+ return new import_decimal.default(orderInfo.totalAmount || 0).sub(new import_decimal.default(getTotalPaidAmount())).toNumber().toFixed(2);
99
99
  };
100
100
  const handleVoidPayment = (paymentItem) => {
101
101
  console.log("Void payment:", paymentItem);
@@ -104,16 +104,54 @@ function PaymentDetailModal({
104
104
  }
105
105
  };
106
106
  const renderPaymentItems = () => {
107
- const regularPayments = paymentItems.filter((item) => !item.voucher_id);
108
- if (!paymentItems || paymentItems.length === 0 || regularPayments.length === 0) {
107
+ const depositPayments = paymentItems.filter((item) => item.order_payment_type === "deposit" && item.isSynced);
108
+ const regularPayments = paymentItems.filter((item) => item.isSynced && item.order_payment_type !== "deposit");
109
+ if (!paymentItems || paymentItems.length === 0 || regularPayments.length === 0 && depositPayments.length === 0) {
109
110
  return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("no-payment-text") }, getText("no.payments.recorded") || "No payments recorded"));
110
111
  }
111
- return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-record-container") }, regularPayments.map((item) => /* @__PURE__ */ import_react.default.createElement("div", { key: item.uuid, className: (0, import_classnames.default)("payment-item") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-text") }, item.name, " - ", (/* @__PURE__ */ new Date()).toLocaleDateString(), " ", getText("pisell2.checkout.payment-detail.by") || "by", " ", getCustomerInfo().nickname), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-actions") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-amount") }, "-", (0, import_utils.formatAmountWithOptions)(Math.abs(item.amount) + Math.abs(item.rounding_amount), amountSymbol, {
112
+ const depositPaymentSummary = depositPayments.reduce((acc, item) => {
113
+ return new import_decimal.default(acc).plus(new import_decimal.default(item.amount)).plus(new import_decimal.default(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber();
114
+ }, 0);
115
+ const regularPaymentSummary = regularPayments.reduce((acc, item) => {
116
+ return new import_decimal.default(acc).plus(new import_decimal.default(item.amount)).plus(new import_decimal.default(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber();
117
+ }, 0);
118
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("section-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-record-container") }, depositPayments.length > 0 && /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-header") }, /* @__PURE__ */ import_react.default.createElement("div", null, getText("pisell2.subtotal.deposit") || "Deposit"), /* @__PURE__ */ import_react.default.createElement("div", null, (0, import_utils.formatAmountWithOptions)(depositPaymentSummary, amountSymbol, {
119
+ precision: 2,
120
+ hideDecimalForWholeNumbers: false,
121
+ useThousandsSeparator: true,
122
+ showCurrencySymbol: true
123
+ }))), depositPayments.map((item) => /* @__PURE__ */ import_react.default.createElement("div", { key: item.uuid, className: (0, import_classnames.default)("payment-item") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-bullet") }), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-text") }, item.name, " - ", (/* @__PURE__ */ new Date()).toLocaleDateString(), " ", getText("pisell2.checkout.payment-detail.by") || "by", " ", getCustomerInfo().nickname), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-actions") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-amount") }, "-", (0, import_utils.formatAmountWithOptions)(
124
+ new import_decimal.default(Math.abs(item.amount)).plus(new import_decimal.default(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber(),
125
+ amountSymbol,
126
+ {
127
+ precision: 2,
128
+ hideDecimalForWholeNumbers: false,
129
+ useThousandsSeparator: true,
130
+ showCurrencySymbol: true
131
+ }
132
+ )), shouldShowVoidButton(item) && /* @__PURE__ */ import_react.default.createElement(
133
+ "button",
134
+ {
135
+ className: (0, import_classnames.default)("void-button"),
136
+ onClick: () => handleVoidPayment(item),
137
+ type: "button"
138
+ },
139
+ getText("void") || "Void"
140
+ ))))), regularPayments.length > 0 && /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-header") }, /* @__PURE__ */ import_react.default.createElement("div", null, getText("payment.text") || "Payment"), /* @__PURE__ */ import_react.default.createElement("div", null, (0, import_utils.formatAmountWithOptions)(regularPaymentSummary, amountSymbol, {
112
141
  precision: 2,
113
142
  hideDecimalForWholeNumbers: false,
114
143
  useThousandsSeparator: true,
115
144
  showCurrencySymbol: true
116
- })), shouldShowVoidButton(item) && /* @__PURE__ */ import_react.default.createElement(
145
+ }))), regularPayments.map((item) => /* @__PURE__ */ import_react.default.createElement("div", { key: item.uuid, className: (0, import_classnames.default)("payment-item") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-bullet") }), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-content") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-text") }, item.name, " - ", (/* @__PURE__ */ new Date()).toLocaleDateString(), " ", getText("pisell2.checkout.payment-detail.by") || "by", " ", getCustomerInfo().nickname), /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-actions") }, /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)("payment-item-amount") }, "-", (0, import_utils.formatAmountWithOptions)(
146
+ new import_decimal.default(Math.abs(item.amount)).plus(new import_decimal.default(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber(),
147
+ amountSymbol,
148
+ {
149
+ precision: 2,
150
+ hideDecimalForWholeNumbers: false,
151
+ useThousandsSeparator: true,
152
+ showCurrencySymbol: true
153
+ }
154
+ )), shouldShowVoidButton(item) && /* @__PURE__ */ import_react.default.createElement(
117
155
  "button",
118
156
  {
119
157
  className: (0, import_classnames.default)("void-button"),
@@ -263,7 +263,7 @@
263
263
  flex-direction: column;
264
264
  justify-content: flex-start;
265
265
  align-items: flex-start;
266
- gap: 16px;
266
+ gap: 8px;
267
267
  }
268
268
 
269
269
  .payment-record-header {
@@ -299,12 +299,33 @@
299
299
  line-height: 20px;
300
300
  word-wrap: break-word;
301
301
  }
302
+ .payment-item-header {
303
+ width: 100%;
304
+ color: black;
305
+ font-size: 14px;
306
+ font-weight: 500;
307
+ line-height: 20px;
308
+ word-wrap: break-word;
309
+ display: flex;
310
+ justify-content: space-between;
311
+ }
302
312
 
303
313
  .payment-item {
304
314
  align-self: stretch;
305
315
  display: flex;
306
- justify-content: space-between;
316
+ justify-content: flex-start;
307
317
  align-items: center;
318
+ gap: 8px;
319
+ margin-left: 10px;
320
+ margin-right: 64px;
321
+ }
322
+
323
+ .payment-item-bullet {
324
+ width: 6px;
325
+ height: 6px;
326
+ background-color: #475467;
327
+ border-radius: 50%;
328
+ flex-shrink: 0;
308
329
  }
309
330
 
310
331
  .payment-item-content {
@@ -272,6 +272,7 @@ var useWalletPass = (props) => {
272
272
  } else {
273
273
  setWalletSelect([]);
274
274
  notSetWalletSelectRef.current = false;
275
+ onSelectChange == null ? void 0 : onSelectChange([]);
275
276
  }
276
277
  const originalDiscountList = shopDiscount.getDiscountList();
277
278
  const sortedDiscountList = sortDiscountListWithInitialOrder(originalDiscountList);
@@ -122,6 +122,7 @@ declare const _default: {
122
122
  'pisell2.checkout.manual-discount.no-amount': string;
123
123
  'pisell2.checkout.manual-discount.has-payment-items': string;
124
124
  'pisell2.checkout.manual-discount.invalid-amount': string;
125
+ 'pisell2.checkout.can-not-change-deposit-amount': string;
125
126
  'pisell2.checkout.wallet-balance-confirm.title': string;
126
127
  'pisell2.checkout.wallet-balance-confirm.description-before': string;
127
128
  'pisell2.checkout.wallet-balance-confirm.description-after': string;
@@ -281,6 +282,7 @@ declare const _default: {
281
282
  'pisell2.checkout.manual-discount.no-amount': string;
282
283
  'pisell2.checkout.manual-discount.has-payment-items': string;
283
284
  'pisell2.checkout.manual-discount.invalid-amount': string;
285
+ 'pisell2.checkout.can-not-change-deposit-amount': string;
284
286
  'pisell2.checkout.wallet-balance-confirm.title': string;
285
287
  'pisell2.checkout.wallet-balance-confirm.description-before': string;
286
288
  'pisell2.checkout.wallet-balance-confirm.description-after': string;
@@ -456,6 +458,7 @@ declare const _default: {
456
458
  'pisell2.checkout.manual-discount.no-amount': string;
457
459
  'pisell2.checkout.manual-discount.has-payment-items': string;
458
460
  'pisell2.checkout.manual-discount.invalid-amount': string;
461
+ 'pisell2.checkout.can-not-change-deposit-amount': string;
459
462
  'pisell2.checkout.wallet-balance-confirm.title': string;
460
463
  'pisell2.checkout.wallet-balance-confirm.description-before': string;
461
464
  'pisell2.checkout.wallet-balance-confirm.description-after': string;
@@ -166,6 +166,7 @@ var locales_default = {
166
166
  "pisell2.checkout.manual-discount.no-amount": "No order amount available for discount",
167
167
  "pisell2.checkout.manual-discount.has-payment-items": "Order already contains payment items, cannot manually adjust price",
168
168
  "pisell2.checkout.manual-discount.invalid-amount": "Please enter a valid amount greater than 0",
169
+ "pisell2.checkout.can-not-change-deposit-amount": "Order already contains deposit payment items, cannot change deposit amount",
169
170
  // Wallet balance confirmation modal
170
171
  "pisell2.checkout.wallet-balance-confirm.title": "Apply wallet balance now",
171
172
  "pisell2.checkout.wallet-balance-confirm.description-before": " will be deducted from selected wallet balance, order will be marked as ",
@@ -354,6 +355,7 @@ var locales_default = {
354
355
  "pisell2.checkout.manual-discount.no-amount": "无可用的订单金额进行折扣",
355
356
  "pisell2.checkout.manual-discount.has-payment-items": "订单已经含有支付项,不可手动改价",
356
357
  "pisell2.checkout.manual-discount.invalid-amount": "请输入大于0的有效金额",
358
+ "pisell2.checkout.can-not-change-deposit-amount": "已经含有定金支付项,不可修改定金金额",
357
359
  // Wallet balance confirmation modal
358
360
  "pisell2.checkout.wallet-balance-confirm.title": "立即应用钱包余额",
359
361
  "pisell2.checkout.wallet-balance-confirm.description-before": " 将从所选钱包余额中扣除,订单将标记为 ",
@@ -574,6 +576,7 @@ var locales_default = {
574
576
  "pisell2.checkout.manual-discount.no-amount": "無可用的訂單金額進行折扣",
575
577
  "pisell2.checkout.manual-discount.has-payment-items": "訂單已經含有支付項,不可手動改價",
576
578
  "pisell2.checkout.manual-discount.invalid-amount": "請輸入大於0的有效金額",
579
+ "pisell2.checkout.can-not-change-deposit-amount": "已經含有定金支付項,不可修改定金金額",
577
580
  // Wallet balance confirmation modal
578
581
  "pisell2.checkout.wallet-balance-confirm.title": "立即應用錢包餘額",
579
582
  "pisell2.checkout.wallet-balance-confirm.description-before": " 將從所選錢包餘額中扣除,訂單將標記為 ",
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ input, ...formItemProps }: any) => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 递归循环表单数据
4
3
  * @Author: hongbing.wang
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RadioGroupProps } from 'antd';
3
2
  export declare const CheckboxGroup: ({ direction, options, ...props }: any) => JSX.Element;
4
3
  export declare const RadioGroup: ({ direction, options, ...props }: RadioGroupProps & {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos } from './const';
3
2
  /**
4
3
  * @title: tyro 设备连接
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ color }: {
3
2
  color?: string | undefined;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Eftpos, DeviceStatus } from './const';
3
2
  import './index.less';
4
3
  interface PosProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DeviceProp } from "./const";
3
2
  interface PosProps {
4
3
  eftposName: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 自定义组件设置
4
3
  * @description: 自定义组件设置
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.css';
3
2
  /**
4
3
  * @title: 自定义组件设置
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const _default: () => JSX.Element;
3
2
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 断网(客户端)提示页
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 支付状态未知页面
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './titlebar.less';
3
2
  declare enum EPopupTitleBarVariantType {
4
3
  BackTitleClose = "back-title-cancel",
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  import './index.less';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  /**
4
3
  * @title: 取消签名确认页
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusType } from '../../const';
3
2
  declare const _default: (props: {
4
3
  status: StatusType;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: (props: {
3
2
  status: string;
4
3
  pedding?: string;
@@ -15,7 +15,7 @@ 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" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question">;
18
+ readonly statusRef: React.MutableRefObject<"loading" | "success" | "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>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { StatusEnum } from '../const';
3
2
  export declare const POS: ({ api, onChange, }: {
4
3
  api: {
@@ -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" | "warn" | "success" | "fail" | "question";
177
+ status: "loading" | "success" | "warn" | "fail" | "question";
178
178
  };
179
179
  };
180
180
  /**
@@ -295,10 +295,10 @@ 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?: "refund" | "fullPay" | "pay" | "query" | undefined;
298
+ mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
299
299
  order_id?: string | number | undefined;
300
300
  eftpos?: "stripe" | "payo" | "tyro" | "windcave" | "linkly" | undefined;
301
- action?: "amount" | "pay" | "deviceList" | undefined;
301
+ action?: "pay" | "amount" | "deviceList" | undefined;
302
302
  key?: number | undefined;
303
303
  step?: number | undefined;
304
304
  title?: string | undefined;
@@ -308,7 +308,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
308
308
  net?: boolean | undefined;
309
309
  component?: string | undefined;
310
310
  form?: string | undefined;
311
- status?: "loading" | "warn" | "success" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
311
+ status?: "loading" | "success" | "warn" | "fail" | "pedding" | "resove" | "reject" | "question" | undefined;
312
312
  warn?: string | undefined;
313
313
  steps?: {
314
314
  /** 用于重置当前步骤 */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './tip.less';
3
2
  /**
4
3
  * @title: 支付状态未知页面
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 获取 Tyro 资源
4
3
  * @description:
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * @title: 按钮操作区
4
3
  * @description: 仅包含签名
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const _default: ({ api, onChange, formatAmount, }: {
3
2
  api: any;
4
3
  onChange: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const DayItem: (props: any) => JSX.Element;
4
3
  export default DayItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { CalendarItemProps } from '../../../../../type';
4
3
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Status: (props: any) => JSX.Element;
4
3
  export default Status;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare type Item = any;
4
3
  interface ProductItemProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  export interface LoginProps {
4
3
  title: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const ToBPayTitle: (props: {
3
2
  amount: number | string;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const ThreedsLoading: ({ title, showSuccessBackButton, onSuccessBack }: any) => JSX.Element;
4
3
  export default ThreedsLoading;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const StripePayment: () => JSX.Element;
4
3
  export default StripePayment;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
3
2
  public_key: string;
4
3
  client_secret?: string | undefined;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const PageLoading: () => JSX.Element;
4
3
  export default PageLoading;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const PaymentRequestForm: () => JSX.Element | null;
4
3
  export default PaymentRequestForm;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const DateSectionCom: ({ value, onChange, showTime, className, style, useSpace, format, itemStyle, }: any) => JSX.Element;
3
2
  export default DateSectionCom;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  declare const GenderField: (props: any) => JSX.Element;
3
2
  export default GenderField;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Actor: ({ name }: {
3
2
  name: string;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface InfoProps {
3
2
  relation_id: any;
4
3
  action: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductItemPreview: ({ item, onClick, onRemove, amountSymbol, style, className, }: any) => JSX.Element;
4
3
  export default ProductItemPreview;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  interface RuleSettingProps {
4
3
  value: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem } from "../type";
3
2
  declare type CalendarItemProps = {
4
3
  month: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const Calendar: () => JSX.Element;
4
3
  export default Calendar;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type CurrentDayProps = {
4
3
  onClose: () => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ScheduleItem } from "../../type";
3
2
  import "./index.less";
4
3
  declare type ScheduleDetailListPropsType = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  import { ScheduleItem } from '../../../type';
4
3
  declare type Item = any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ButtonProps } from 'antd';
3
2
  import { ScheduleItem } from '../../type';
4
3
  import './index.less';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const MaxParticipantsModule: ({ form, value, onChange, useSchedule, isAutoChange, onData, }: {
4
3
  form: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const ResourcesModule: ({ product }: {
3
2
  product: any;
4
3
  }) => JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const AddSchedules: ({ value, onChange, drawerContainer, isSelf }: any) => JSX.Element;
4
3
  export default AddSchedules;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type Value = number[];
4
3
  declare const SchedulesModule: ({ value, onChange, drawerContainer, ruleFn, tabKey, previewItemChange, isSelf, isTitle, }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetail: ({ form, currentProduct, }: {
4
3
  form: any;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetailByDate: () => JSX.Element;
4
3
  export default ProductDetailByDate;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare const ProductDetailDrawer: () => JSX.Element;
4
3
  export default ProductDetailDrawer;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Products: () => JSX.Element;
4
3
  export default Products;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type Item = any;
4
3
  interface ProductItemProps {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  interface ProductListProps {
4
3
  loading: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const Resources: () => JSX.Element;
4
3
  export default Resources;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import "./index.less";
3
2
  declare type ResourcesListProps = {
4
3
  list: any;