@pisell/private-materials 6.5.11 → 6.5.13

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 (425) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +3 -3
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +3 -3
  11. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  12. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  13. package/es/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  14. package/es/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  15. package/es/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  16. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  17. package/es/components/appointmentBooking/components/Services/index.js +36 -18
  18. package/es/components/appointmentBooking/hooks.js +6 -0
  19. package/es/components/booking/addons/model.d.ts +1 -10
  20. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  21. package/es/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  22. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  23. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  24. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  25. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  26. package/es/components/booking/components/footer/index.js +12 -1
  27. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  28. package/es/components/booking/editBookingModal/index.js +8 -2
  29. package/es/components/booking/forms/footer.d.ts +0 -1
  30. package/es/components/booking/forms/model.d.ts +1 -10
  31. package/es/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  32. package/es/components/booking/forms/single/index.d.ts +0 -1
  33. package/es/components/booking/forms/table/index.d.ts +0 -1
  34. package/es/components/booking/hooks/useClearCart.d.ts +0 -1
  35. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  36. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  37. package/es/components/booking/info/date/index.d.ts +0 -1
  38. package/es/components/booking/info/dateRange/index.d.ts +0 -1
  39. package/es/components/booking/info/model.d.ts +1 -10
  40. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  41. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  42. package/es/components/booking/info/service/like/index.d.ts +0 -1
  43. package/es/components/booking/info/service2/utils.d.ts +1 -1
  44. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  45. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  46. package/es/components/booking/locales.d.ts +6 -0
  47. package/es/components/booking/locales.js +12 -0
  48. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  49. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  50. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  51. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  52. package/es/components/booking/model.d.ts +1 -9
  53. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  54. package/es/components/booking/notes/model.d.ts +1 -10
  55. package/es/components/booking/payments/model.d.ts +1 -10
  56. package/es/components/booking/utils.d.ts +2 -2
  57. package/es/components/checkout/PaymentModal.js +79 -65
  58. package/es/components/checkout/components/AmountSummary/index.js +4 -4
  59. package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  60. package/es/components/checkout/components/CashPaymentModule/index.js +14 -10
  61. package/es/components/checkout/components/PaymentDetailModal/index.js +5 -14
  62. package/es/components/checkout/components/PaymentOptionsModule/index.js +4 -1
  63. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  64. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  65. package/es/components/eftpos/form/index.d.ts +0 -1
  66. package/es/components/eftpos/group/index.d.ts +0 -1
  67. package/es/components/eftpos/hooks.d.ts +0 -1
  68. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  69. package/es/components/eftpos/icon/device.d.ts +0 -1
  70. package/es/components/eftpos/index.d.ts +0 -1
  71. package/es/components/eftpos/pos.d.ts +0 -1
  72. package/es/components/eftpos/receipt/index.d.ts +0 -1
  73. package/es/components/eftposPay/amount.d.ts +1 -2
  74. package/es/components/eftposPay/component/alert/warn.d.ts +0 -1
  75. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  76. package/es/components/eftposPay/component/fail/index.d.ts +0 -1
  77. package/es/components/eftposPay/component/fail/network.d.ts +0 -1
  78. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -1
  79. package/es/components/eftposPay/component/header/titlebar.d.ts +0 -1
  80. package/es/components/eftposPay/component/manual/index.d.ts +0 -1
  81. package/es/components/eftposPay/component/signature/index.d.ts +0 -1
  82. package/es/components/eftposPay/component/step/index.d.ts +0 -1
  83. package/es/components/eftposPay/component/step/step.d.ts +0 -1
  84. package/es/components/eftposPay/device.d.ts +1 -1
  85. package/es/components/eftposPay/hooks.d.ts +2 -2
  86. package/es/components/eftposPay/linkly/hooks/normal.js +3 -3
  87. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +60 -17
  88. package/es/components/eftposPay/pay.d.ts +0 -1
  89. package/es/components/eftposPay/payo/config.d.ts +0 -1
  90. package/es/components/eftposPay/payo/config.js +10 -10
  91. package/es/components/eftposPay/serve.js +1 -1
  92. package/es/components/eftposPay/store/index.d.ts +6 -6
  93. package/es/components/eftposPay/tip.d.ts +0 -1
  94. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  95. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  96. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  97. package/es/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  98. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  99. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  100. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  101. package/es/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  102. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  103. package/es/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  104. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  105. package/es/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  106. package/es/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  107. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  108. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  109. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  110. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  111. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  112. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  113. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  114. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  115. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  116. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  117. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  118. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  119. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  120. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  121. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  122. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  123. package/es/components/index.d.ts +3 -1
  124. package/es/components/index.js +3 -1
  125. package/es/components/login/index.d.ts +0 -1
  126. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +6 -3
  127. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  128. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  129. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  130. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +2 -0
  131. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +112 -24
  132. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +38 -2
  133. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.js +78 -0
  134. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +6 -0
  135. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +9 -0
  136. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  137. package/es/components/pay/toC/model.d.ts +1 -9
  138. package/es/components/pay/toC/utils.js +1 -1
  139. package/es/components/pinModal/hooks.d.ts +7 -0
  140. package/es/components/pinModal/hooks.js +65 -0
  141. package/es/components/pinModal/index.d.ts +4 -0
  142. package/es/components/pinModal/index.js +98 -0
  143. package/es/components/pinModal/index.less +44 -0
  144. package/es/components/pinModal/locales.d.ts +27 -0
  145. package/es/components/pinModal/locales.js +26 -0
  146. package/es/components/pinModal/serve.d.ts +6 -0
  147. package/es/components/pinModal/serve.js +11 -0
  148. package/es/components/pinModal/types.d.ts +0 -0
  149. package/es/components/pinModal/types.js +0 -0
  150. package/es/components/pinVerifyModal/hooks.d.ts +7 -0
  151. package/es/components/pinVerifyModal/hooks.js +80 -0
  152. package/es/components/pinVerifyModal/index.d.ts +5 -0
  153. package/es/components/pinVerifyModal/index.js +218 -0
  154. package/es/components/pinVerifyModal/index.less +92 -0
  155. package/es/components/pinVerifyModal/locales.d.ts +24 -0
  156. package/es/components/pinVerifyModal/locales.js +23 -0
  157. package/es/components/pinVerifyModal/types.d.ts +33 -0
  158. package/es/components/pinVerifyModal/types.js +1 -0
  159. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  160. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  161. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  162. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  163. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  164. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  165. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  166. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  167. package/es/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  168. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  169. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  170. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  171. package/es/components/schedules/calendar/index.d.ts +0 -1
  172. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  173. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  174. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  175. package/es/components/schedules/model.d.ts +1 -9
  176. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  177. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  178. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  179. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  180. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  181. package/es/components/schedules/products/index.d.ts +0 -1
  182. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  183. package/es/components/schedules/products/list/index.d.ts +0 -1
  184. package/es/components/schedules/resources/index.d.ts +0 -1
  185. package/es/components/schedules/resources/list/index.d.ts +0 -1
  186. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  187. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  188. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  189. package/es/components/schedules/schedules/index.d.ts +0 -1
  190. package/es/components/shoppingCart/components/Empty/index.d.ts +0 -1
  191. package/es/components/shoppingCart/components/Render/index.d.ts +0 -1
  192. package/es/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  193. package/es/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  194. package/es/components/shoppingCart/index.d.ts +0 -1
  195. package/es/components/ticketBooking/components/ticketBooking/index.js +56 -10
  196. package/es/components/ticketBooking/components/timeBar/index.js +2 -1
  197. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  198. package/es/components/wallet/Detail/model.d.ts +1 -13
  199. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  200. package/es/components/wallet/PointCard/model.d.ts +1 -13
  201. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  202. package/es/components/wallet/Voucher/model.d.ts +1 -13
  203. package/es/components/wallet/hooks/useWalletCard.d.ts +0 -1
  204. package/es/components/wallet/model.d.ts +1 -9
  205. package/es/components/walletList/index.js +20 -2
  206. package/es/components/workSpaceList/components/Modal/index.d.ts +0 -1
  207. package/es/index.d.ts +2 -0
  208. package/es/index.js +3 -1
  209. package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  210. package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  211. package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  212. package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
  213. package/es/plus/saasRegister/components/Header.d.ts +0 -1
  214. package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
  215. package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  216. package/es/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  217. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +0 -1
  218. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +0 -1
  219. package/lib/components/appointmentBooking/components/Cart/index.d.ts +0 -1
  220. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +0 -1
  221. package/lib/components/appointmentBooking/components/Footer/index.d.ts +0 -1
  222. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +0 -1
  223. package/lib/components/appointmentBooking/components/Services/index.js +13 -3
  224. package/lib/components/appointmentBooking/hooks.js +6 -0
  225. package/lib/components/booking/addons/model.d.ts +1 -10
  226. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  227. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +0 -1
  228. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  229. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  230. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  231. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  232. package/lib/components/booking/components/footer/index.js +15 -2
  233. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  234. package/lib/components/booking/editBookingModal/index.js +6 -1
  235. package/lib/components/booking/forms/footer.d.ts +0 -1
  236. package/lib/components/booking/forms/model.d.ts +1 -10
  237. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +0 -1
  238. package/lib/components/booking/forms/single/index.d.ts +0 -1
  239. package/lib/components/booking/forms/table/index.d.ts +0 -1
  240. package/lib/components/booking/hooks/useClearCart.d.ts +0 -1
  241. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  242. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  243. package/lib/components/booking/info/date/index.d.ts +0 -1
  244. package/lib/components/booking/info/dateRange/index.d.ts +0 -1
  245. package/lib/components/booking/info/model.d.ts +1 -10
  246. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  247. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  248. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  249. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  250. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  251. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  252. package/lib/components/booking/locales.d.ts +6 -0
  253. package/lib/components/booking/locales.js +6 -0
  254. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  255. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  256. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  257. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  258. package/lib/components/booking/model.d.ts +1 -9
  259. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  260. package/lib/components/booking/notes/model.d.ts +1 -10
  261. package/lib/components/booking/payments/model.d.ts +1 -10
  262. package/lib/components/booking/utils.d.ts +2 -2
  263. package/lib/components/checkout/PaymentModal.js +9 -3
  264. package/lib/components/checkout/components/AmountSummary/index.js +4 -4
  265. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  266. package/lib/components/checkout/components/CashPaymentModule/index.js +6 -3
  267. package/lib/components/checkout/components/PaymentDetailModal/index.js +5 -10
  268. package/lib/components/checkout/components/PaymentOptionsModule/index.js +3 -1
  269. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  270. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  271. package/lib/components/eftpos/form/index.d.ts +0 -1
  272. package/lib/components/eftpos/group/index.d.ts +0 -1
  273. package/lib/components/eftpos/hooks.d.ts +0 -1
  274. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  275. package/lib/components/eftpos/icon/device.d.ts +0 -1
  276. package/lib/components/eftpos/index.d.ts +0 -1
  277. package/lib/components/eftpos/pos.d.ts +0 -1
  278. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  279. package/lib/components/eftposPay/amount.d.ts +1 -2
  280. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  281. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  282. package/lib/components/eftposPay/component/fail/index.d.ts +0 -1
  283. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  284. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  285. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  286. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  287. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  288. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  289. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  290. package/lib/components/eftposPay/device.d.ts +1 -1
  291. package/lib/components/eftposPay/hooks.d.ts +2 -2
  292. package/lib/components/eftposPay/linkly/hooks/normal.js +3 -3
  293. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +59 -15
  294. package/lib/components/eftposPay/pay.d.ts +0 -1
  295. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  296. package/lib/components/eftposPay/payo/config.js +9 -9
  297. package/lib/components/eftposPay/serve.js +1 -1
  298. package/lib/components/eftposPay/store/index.d.ts +6 -6
  299. package/lib/components/eftposPay/tip.d.ts +0 -1
  300. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  301. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  302. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  303. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +0 -1
  304. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +0 -1
  305. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +0 -1
  306. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +0 -1
  307. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +0 -1
  308. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +0 -1
  309. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +0 -1
  310. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +0 -1
  311. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +0 -1
  312. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +0 -1
  313. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +0 -1
  314. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +0 -1
  315. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +0 -1
  316. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +0 -1
  317. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +0 -1
  318. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  319. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +0 -1
  320. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +0 -1
  321. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  322. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  323. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  324. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +0 -1
  325. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +0 -1
  326. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +0 -1
  327. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  328. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +0 -1
  329. package/lib/components/index.d.ts +3 -1
  330. package/lib/components/index.js +6 -0
  331. package/lib/components/login/index.d.ts +0 -1
  332. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -0
  333. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  334. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +0 -1
  335. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +0 -1
  336. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +2 -0
  337. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +84 -36
  338. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +38 -2
  339. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.js +18 -0
  340. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +6 -0
  341. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +7 -2
  342. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +0 -1
  343. package/lib/components/pay/toC/model.d.ts +1 -9
  344. package/lib/components/pay/toC/utils.js +1 -1
  345. package/lib/components/pinModal/hooks.d.ts +7 -0
  346. package/lib/components/pinModal/hooks.js +85 -0
  347. package/lib/components/pinModal/index.d.ts +4 -0
  348. package/lib/components/pinModal/index.js +88 -0
  349. package/lib/components/pinModal/index.less +44 -0
  350. package/lib/components/pinModal/locales.d.ts +27 -0
  351. package/lib/components/pinModal/locales.js +50 -0
  352. package/lib/components/pinModal/serve.d.ts +6 -0
  353. package/lib/components/pinModal/serve.js +37 -0
  354. package/lib/components/pinModal/types.d.ts +0 -0
  355. package/lib/components/pinModal/types.js +0 -0
  356. package/lib/components/pinVerifyModal/hooks.d.ts +7 -0
  357. package/lib/components/pinVerifyModal/hooks.js +93 -0
  358. package/lib/components/pinVerifyModal/index.d.ts +5 -0
  359. package/lib/components/pinVerifyModal/index.js +230 -0
  360. package/lib/components/pinVerifyModal/index.less +92 -0
  361. package/lib/components/pinVerifyModal/locales.d.ts +24 -0
  362. package/lib/components/pinVerifyModal/locales.js +47 -0
  363. package/lib/components/pinVerifyModal/types.d.ts +33 -0
  364. package/lib/components/pinVerifyModal/types.js +17 -0
  365. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  366. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  367. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +0 -1
  368. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +0 -1
  369. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  370. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  371. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +0 -1
  372. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  373. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +0 -1
  374. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +0 -1
  375. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  376. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  377. package/lib/components/schedules/calendar/index.d.ts +0 -1
  378. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  379. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  380. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  381. package/lib/components/schedules/model.d.ts +1 -9
  382. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  383. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  384. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  385. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  386. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  387. package/lib/components/schedules/products/index.d.ts +0 -1
  388. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  389. package/lib/components/schedules/products/list/index.d.ts +0 -1
  390. package/lib/components/schedules/resources/index.d.ts +0 -1
  391. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  392. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  393. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  394. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  395. package/lib/components/schedules/schedules/index.d.ts +0 -1
  396. package/lib/components/shoppingCart/components/Empty/index.d.ts +0 -1
  397. package/lib/components/shoppingCart/components/Render/index.d.ts +0 -1
  398. package/lib/components/shoppingCart/hooks/useAddService.d.ts +0 -1
  399. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +0 -1
  400. package/lib/components/shoppingCart/index.d.ts +0 -1
  401. package/lib/components/ticketBooking/components/ticketBooking/index.js +52 -5
  402. package/lib/components/ticketBooking/components/timeBar/index.js +2 -1
  403. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  404. package/lib/components/wallet/Detail/model.d.ts +1 -13
  405. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  406. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  407. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  408. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  409. package/lib/components/wallet/hooks/useWalletCard.d.ts +0 -1
  410. package/lib/components/wallet/model.d.ts +1 -9
  411. package/lib/components/walletList/index.js +19 -2
  412. package/lib/components/workSpaceList/components/Modal/index.d.ts +0 -1
  413. package/lib/index.d.ts +2 -0
  414. package/lib/index.js +6 -0
  415. package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  416. package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  417. package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  418. package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
  419. package/lib/plus/saasRegister/components/Header.d.ts +0 -1
  420. package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
  421. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  422. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +0 -1
  423. package/lowcode/pin-modal/meta.ts +37 -0
  424. package/lowcode/pin-verify-modal/meta.ts +80 -0
  425. package/package.json +1 -1
@@ -113,41 +113,46 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
113
113
  _useState4 = _slicedToArray(_useState3, 2),
114
114
  balanceDueAmount = _useState4[0],
115
115
  setBalanceDueAmount = _useState4[1];
116
- var _useState5 = useState([]),
116
+ // 剩余待付金额-跟定金无关的一个订单总体待付金额,上面这个 balanceDueAmount 是会收到订单影响的,下面这个不会
117
+ var _useState5 = useState(''),
117
118
  _useState6 = _slicedToArray(_useState5, 2),
118
- recommendAmounts = _useState6[0],
119
- setRecommendAmounts = _useState6[1];
120
- var paymentMethodsRef = useRef(null);
119
+ balanceDueTotalAmount = _useState6[0],
120
+ setBalanceDueTotalAmount = _useState6[1];
121
121
  var _useState7 = useState([]),
122
122
  _useState8 = _slicedToArray(_useState7, 2),
123
- paymentMethods = _useState8[0],
124
- setPaymentMethods = _useState8[1];
125
- var _useState9 = useState(false),
123
+ recommendAmounts = _useState8[0],
124
+ setRecommendAmounts = _useState8[1];
125
+ var paymentMethodsRef = useRef(null);
126
+ var _useState9 = useState([]),
126
127
  _useState10 = _slicedToArray(_useState9, 2),
127
- showCashPayment = _useState10[0],
128
- setShowCashPayment = _useState10[1];
129
- var _useState11 = useState(locales.getText('cards.and.digitals') || 'Cards & Digitals'),
128
+ paymentMethods = _useState10[0],
129
+ setPaymentMethods = _useState10[1];
130
+ var _useState11 = useState(false),
130
131
  _useState12 = _slicedToArray(_useState11, 2),
131
- paymentOptionsTitle = _useState12[0],
132
- setPaymentOptionsTitle = _useState12[1];
132
+ showCashPayment = _useState12[0],
133
+ setShowCashPayment = _useState12[1];
134
+ var _useState13 = useState(locales.getText('cards.and.digitals') || 'Cards & Digitals'),
135
+ _useState14 = _slicedToArray(_useState13, 2),
136
+ paymentOptionsTitle = _useState14[0],
137
+ setPaymentOptionsTitle = _useState14[1];
133
138
  var clientChangedRef = useRef(false);
134
139
  var walletPassRef = useRef(null);
135
140
  // 已保存的支付项数据
136
- var _useState13 = useState([]),
137
- _useState14 = _slicedToArray(_useState13, 2),
138
- paymentItems = _useState14[0],
139
- setPaymentItems = _useState14[1];
140
- // 钱包卡券数据
141
- var _useState15 = useState({}),
141
+ var _useState15 = useState([]),
142
142
  _useState16 = _slicedToArray(_useState15, 2),
143
- walletPassData = _useState16[0],
144
- setWalletPassData = _useState16[1];
143
+ paymentItems = _useState16[0],
144
+ setPaymentItems = _useState16[1];
145
+ // 钱包卡券数据
146
+ var _useState17 = useState({}),
147
+ _useState18 = _slicedToArray(_useState17, 2),
148
+ walletPassData = _useState18[0],
149
+ setWalletPassData = _useState18[1];
145
150
  var _usePrinter = usePrinter(),
146
151
  nativePrint = _usePrinter.nativePrint;
147
- var _useState17 = useState(false),
148
- _useState18 = _slicedToArray(_useState17, 2),
149
- syncingLock = _useState18[0],
150
- setSyncingLock = _useState18[1];
152
+ var _useState19 = useState(false),
153
+ _useState20 = _slicedToArray(_useState19, 2),
154
+ syncingLock = _useState20[0],
155
+ setSyncingLock = _useState20[1];
151
156
  var isOrderFree = useMemo(function () {
152
157
  if (!customAmount) return false;
153
158
  var amount = parseFloat(customAmount);
@@ -155,14 +160,14 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
155
160
  }, [customAmount]);
156
161
 
157
162
  // 新增状态:订单备注和手动折扣
158
- var _useState19 = useState(false),
159
- _useState20 = _slicedToArray(_useState19, 2),
160
- paymentLinkModalOpen = _useState20[0],
161
- setPaymentLinkModalOpen = _useState20[1];
162
163
  var _useState21 = useState(false),
163
164
  _useState22 = _slicedToArray(_useState21, 2),
164
- showPriceAdjustModal = _useState22[0],
165
- setShowPriceAdjustModal = _useState22[1];
165
+ paymentLinkModalOpen = _useState22[0],
166
+ setPaymentLinkModalOpen = _useState22[1];
167
+ var _useState23 = useState(false),
168
+ _useState24 = _slicedToArray(_useState23, 2),
169
+ showPriceAdjustModal = _useState24[0],
170
+ setShowPriceAdjustModal = _useState24[1];
166
171
  var logger = usePaymentLogger();
167
172
  var currency = getData('shop_currency_code') || 'USD';
168
173
 
@@ -418,6 +423,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
418
423
  var _cartData$order_info;
419
424
  setCustomAmount(currentAmount);
420
425
  setBalanceDueAmount(currentAmount);
426
+ setBalanceDueTotalAmount(orderInfo.totalAmount || '0');
421
427
  // 设置订单备注默认值 - 优先从 checkoutModule 获取,如果没有则从购物车数据获取
422
428
  var currentNote = checkoutModule.getOrderNote();
423
429
  if (currentNote) {
@@ -520,6 +526,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
520
526
  }());
521
527
  var amountChangedUnsubscribe = core.effects.on(CheckoutHooks.OnBalanceDueAmountChanged, function (data) {
522
528
  setBalanceDueAmount(data.newAmount);
529
+ setBalanceDueTotalAmount(data.totalAmount || '0');
523
530
  });
524
531
  var orderSubmitStartUnsubscribe = core.effects.on(CheckoutHooks.OnOrderSubmitStart, function () {
525
532
  var _Toast$loading;
@@ -563,7 +570,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
563
570
  updateOrderInfo === null || updateOrderInfo === void 0 || updateOrderInfo(orderInfo);
564
571
  balanceDueAmount = checkoutModule.getBalanceDueAmount();
565
572
  if (!(Number(balanceDueAmount) > 0)) {
566
- _context5.next = 13;
573
+ _context5.next = 14;
567
574
  break;
568
575
  }
569
576
  autoCloseConfig = calculateAutoCloseConfig('partially_paid', false); // 获取订单总金额
@@ -575,7 +582,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
575
582
  if (_paymentItems.length > 0 && _paymentItems.filter(function (n) {
576
583
  return n.isSynced;
577
584
  }).some(function (item) {
578
- return item.service_charge;
585
+ return item.service_charge || item.rounding_amount;
579
586
  })) {
580
587
  serviceChargeTotal = _paymentItems.reduce(function (acc, item) {
581
588
  var _item$service_charge, _item$service_charge2;
@@ -583,13 +590,19 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
583
590
  var chargePercentage = new Decimal(((_item$service_charge2 = item.service_charge) === null || _item$service_charge2 === void 0 ? void 0 : _item$service_charge2.percentage) || 0);
584
591
  var itemAmount = new Decimal(item.amount || 0);
585
592
  var itemServiceCharge = chargeAmount.add(chargePercentage.mul(itemAmount));
593
+ // 如果支付项的 rounding_amount 是正数,需要减掉rounding_amount
594
+ // if (Number(item.rounding_amount) > 0) {
595
+ // itemServiceCharge = itemServiceCharge.sub(new Decimal(item.rounding_amount));
596
+ // }
597
+ console.log(itemServiceCharge);
586
598
  return acc.add(itemServiceCharge);
587
599
  }, new Decimal(0));
588
600
  _totalAmount = _totalAmount.add(serviceChargeTotal);
589
601
  }
602
+ console.log(_totalAmount, _paymentItems);
590
603
 
591
604
  // 根据支付状态展示不同的 toast
592
- _context5.next = 13;
605
+ _context5.next = 14;
593
606
  return displayPaymentResultToast({
594
607
  paymentStatus: 'partially_paid',
595
608
  orderTotalAmount: _totalAmount.toNumber(),
@@ -607,7 +620,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
607
620
  // 不自动关闭Modal,让两个弹窗独立管理
608
621
  }
609
622
  }));
610
- case 13:
623
+ case 14:
611
624
  // 判断是否为现金支付
612
625
  paymentMethodName = data.paymentMethodName || data.name || '';
613
626
  isCashPayment = data.paymentMethodCode === 'CASHMANUAL' || /现金|現金/i.test(paymentMethodName) || /cash/i.test(paymentMethodName);
@@ -626,7 +639,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
626
639
  }
627
640
  });
628
641
  }
629
- case 16:
642
+ case 17:
630
643
  case "end":
631
644
  return _context5.stop();
632
645
  }
@@ -1288,7 +1301,8 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
1288
1301
  amountButtons: recommendAmounts,
1289
1302
  customAmount: customAmount,
1290
1303
  roundingFunction: roundingFunction,
1291
- balanceDueAmount: balanceDueAmount
1304
+ balanceDueAmount: balanceDueAmount,
1305
+ balanceDueTotalAmount: balanceDueTotalAmount
1292
1306
  })), moduleConfig.showPaymentOptions && /*#__PURE__*/React.createElement("div", {
1293
1307
  className: showCashPayment ? '' : 'payment-options-module-container',
1294
1308
  style: showCashPayment ? {
@@ -1370,30 +1384,30 @@ var PaymentModal = function PaymentModal(_ref18) {
1370
1384
  getData = _ref19.getData,
1371
1385
  interaction = _ref19.interaction,
1372
1386
  isWebPos = _ref19.isWebPos;
1373
- var _useState23 = useState(null),
1374
- _useState24 = _slicedToArray(_useState23, 2),
1375
- orderInfo = _useState24[0],
1376
- setOrderInfo = _useState24[1];
1377
- var _useState25 = useState(0),
1387
+ var _useState25 = useState(null),
1378
1388
  _useState26 = _slicedToArray(_useState25, 2),
1379
- totalAmount = _useState26[0],
1380
- setTotalAmount = _useState26[1];
1381
- var _useState27 = useState(true),
1389
+ orderInfo = _useState26[0],
1390
+ setOrderInfo = _useState26[1];
1391
+ var _useState27 = useState(0),
1382
1392
  _useState28 = _slicedToArray(_useState27, 2),
1383
- actualShowCashPayment = _useState28[0],
1384
- setActualShowCashPayment = _useState28[1];
1385
- var _useState29 = useState(0),
1393
+ totalAmount = _useState28[0],
1394
+ setTotalAmount = _useState28[1];
1395
+ var _useState29 = useState(true),
1386
1396
  _useState30 = _slicedToArray(_useState29, 2),
1387
- windowHeight = _useState30[0],
1388
- setWindowHeight = _useState30[1];
1389
- var _useState31 = useState(false),
1397
+ actualShowCashPayment = _useState30[0],
1398
+ setActualShowCashPayment = _useState30[1];
1399
+ var _useState31 = useState(0),
1390
1400
  _useState32 = _slicedToArray(_useState31, 2),
1391
- showRetryModal = _useState32[0],
1392
- setShowRetryModal = _useState32[1];
1393
- var _useState33 = useState(editOrderId || 0),
1401
+ windowHeight = _useState32[0],
1402
+ setWindowHeight = _useState32[1];
1403
+ var _useState33 = useState(false),
1394
1404
  _useState34 = _slicedToArray(_useState33, 2),
1395
- currentEditOrderId = _useState34[0],
1396
- _setCurrentEditOrderId = _useState34[1];
1405
+ showRetryModal = _useState34[0],
1406
+ setShowRetryModal = _useState34[1];
1407
+ var _useState35 = useState(editOrderId || 0),
1408
+ _useState36 = _slicedToArray(_useState35, 2),
1409
+ currentEditOrderId = _useState36[0],
1410
+ _setCurrentEditOrderId = _useState36[1];
1397
1411
  var Toast = useToast();
1398
1412
  var _usePrinter2 = usePrinter(),
1399
1413
  nativePrint = _usePrinter2.nativePrint;
@@ -1528,18 +1542,18 @@ var PaymentModal = function PaymentModal(_ref18) {
1528
1542
  }, []);
1529
1543
 
1530
1544
  // 订单备注相关状态
1531
- var _useState35 = useState(false),
1532
- _useState36 = _slicedToArray(_useState35, 2),
1533
- noteModalOpen = _useState36[0],
1534
- setNoteModalOpen = _useState36[1];
1535
- var _useState37 = useState(''),
1545
+ var _useState37 = useState(false),
1536
1546
  _useState38 = _slicedToArray(_useState37, 2),
1537
- orderNote = _useState38[0],
1538
- setOrderNote = _useState38[1];
1539
- var _useState39 = useState('payment-content'),
1547
+ noteModalOpen = _useState38[0],
1548
+ setNoteModalOpen = _useState38[1];
1549
+ var _useState39 = useState(''),
1540
1550
  _useState40 = _slicedToArray(_useState39, 2),
1541
- noteModalSource = _useState40[0],
1542
- setNoteModalSource = _useState40[1];
1551
+ orderNote = _useState40[0],
1552
+ setOrderNote = _useState40[1];
1553
+ var _useState41 = useState('payment-content'),
1554
+ _useState42 = _slicedToArray(_useState41, 2),
1555
+ noteModalSource = _useState42[0],
1556
+ setNoteModalSource = _useState42[1];
1543
1557
 
1544
1558
  // 订单备注相关处理函数
1545
1559
  var handleNoteConfirm = /*#__PURE__*/function () {
@@ -503,8 +503,8 @@ function AmountSummary(_ref2) {
503
503
  var syncedVoucherAmount = paymentItems === null || paymentItems === void 0 ? void 0 : paymentItems.reduce(function (acc, item) {
504
504
  // 如果当前是普通支付,则减去order_payment_type不为 deposit的支付项
505
505
  // 如果当前是定金支付,则减去order_payment_type为 deposit的支付项
506
- if (item.voucher_id && item.isSynced && (paymentType === 'regular' && item.order_payment_type !== 'deposit' || paymentType === 'deposit' && item.order_payment_type === 'deposit')) {
507
- return acc.plus(item.amount).plus(item.rounding_amount);
506
+ if (item.isSynced && (paymentType === 'regular' && item.order_payment_type !== 'deposit' || paymentType === 'deposit' && item.order_payment_type === 'deposit')) {
507
+ return acc.plus(item.amount).plus(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0);
508
508
  }
509
509
  return acc;
510
510
  }, new Decimal(0)).toNumber();
@@ -615,7 +615,7 @@ function AmountSummary(_ref2) {
615
615
  if (paymentType === 'regular') {
616
616
  var depositPaidAmount = paymentItems === null || paymentItems === void 0 ? void 0 : paymentItems.reduce(function (acc, item) {
617
617
  if (item.order_payment_type === 'deposit') {
618
- return acc.plus(item.amount).plus(Math.abs(item.rounding_amount));
618
+ return acc.plus(item.amount).plus(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0);
619
619
  }
620
620
  return acc;
621
621
  }, new Decimal(0)).toNumber();
@@ -627,7 +627,7 @@ function AmountSummary(_ref2) {
627
627
  // 如果是定金支付,且定金已付款金额大于等于订单总金额,则不可以再切换到普通支付
628
628
  var _depositPaidAmount = paymentItems === null || paymentItems === void 0 ? void 0 : paymentItems.reduce(function (acc, item) {
629
629
  if (item.order_payment_type === 'deposit') {
630
- return acc.plus(item.amount);
630
+ return acc.plus(item.amount).plus(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0);
631
631
  }
632
632
  return acc;
633
633
  }, new Decimal(0)).toNumber();
@@ -13,10 +13,12 @@ export interface CashPaymentModuleProps {
13
13
  roundingDifference: number;
14
14
  }>;
15
15
  balanceDueAmount?: string;
16
+ balanceDueTotalAmount?: string;
16
17
  syncingLock?: boolean;
17
18
  }
18
19
  export declare function CashPaymentModule({ amountSymbol, orderInfo, onPaymentComplete, customAmount, amountButtons, // 按钮列表,默认5个推荐金额
19
20
  disabled, // 禁用状态
20
- roundingFunction, balanceDueAmount, // 剩余支付金额
21
+ roundingFunction, balanceDueAmount, // 当前阶段剩余支付金额(定金或普通支付)
22
+ balanceDueTotalAmount, // 完整订单剩余待付金额
21
23
  syncingLock, }: CashPaymentModuleProps): JSX.Element;
22
24
  export default CashPaymentModule;
@@ -29,6 +29,8 @@ export function CashPaymentModule(_ref) {
29
29
  roundingFunction = _ref.roundingFunction,
30
30
  _ref$balanceDueAmount = _ref.balanceDueAmount,
31
31
  balanceDueAmount = _ref$balanceDueAmount === void 0 ? '0' : _ref$balanceDueAmount,
32
+ _ref$balanceDueTotalA = _ref.balanceDueTotalAmount,
33
+ balanceDueTotalAmount = _ref$balanceDueTotalA === void 0 ? '0' : _ref$balanceDueTotalA,
32
34
  _ref$syncingLock = _ref.syncingLock,
33
35
  syncingLock = _ref$syncingLock === void 0 ? false : _ref$syncingLock;
34
36
  var _useState = useState(customAmount || ''),
@@ -56,7 +58,7 @@ export function CashPaymentModule(_ref) {
56
58
  };
57
59
  useEffect(function () {
58
60
  handleKeyboardConfirm(customAmount || '');
59
- }, [customAmount, balanceDueAmount]);
61
+ }, [customAmount, balanceDueAmount, orderInfo === null || orderInfo === void 0 ? void 0 : orderInfo.isDeposit]);
60
62
 
61
63
  // 检查是否应该禁用按钮:原本disabled为true 或者 订单金额为0
62
64
  var isAmountButtonsDisabled = disabled || Number(customAmount || 0) === 0;
@@ -125,33 +127,35 @@ export function CashPaymentModule(_ref) {
125
127
  break;
126
128
  }
127
129
  setAmount('');
128
- _context.next = 32;
130
+ _context.next = 33;
129
131
  break;
130
132
  case 13:
131
133
  // 移除可能的货币符号和多余空格
132
134
  cleanValue = finalValue.replace(/[$\s]/g, '');
133
135
  numValue = parseFloat(cleanValue); // 检查当前金额是否等于剩余支付金额
134
- balanceDue = parseFloat(balanceDueAmount);
136
+ debugger;
137
+ // 需要确认当前是否是定金模式,如果是定金模式则 balanceDue 应该为完整订单剩余待付金额
138
+ balanceDue = parseFloat(orderInfo !== null && orderInfo !== void 0 && orderInfo.isDeposit ? balanceDueTotalAmount || '0' : balanceDueAmount);
135
139
  shouldApplyRounding = Math.abs(numValue - balanceDue) < 0.01; // 使用小数精度比较
136
140
  finalAmount = numValue;
137
141
  roundingDiff = 0;
138
142
  if (!(shouldApplyRounding && roundingFunction)) {
139
- _context.next = 29;
143
+ _context.next = 30;
140
144
  break;
141
145
  }
142
- _context.next = 22;
146
+ _context.next = 23;
143
147
  return roundingFunction(numValue);
144
- case 22:
148
+ case 23:
145
149
  _result = _context.sent;
146
150
  _ref3 = _result || {}, _ref3$roundedAmount = _ref3.roundedAmount, roundedAmount = _ref3$roundedAmount === void 0 ? numValue : _ref3$roundedAmount, _ref3$roundingDiffere = _ref3.roundingDifference, roundingDifference = _ref3$roundingDiffere === void 0 ? 0 : _ref3$roundingDiffere;
147
151
  finalAmount = roundedAmount;
148
152
  roundingDiff = roundingDifference;
149
153
  console.log('应用抹零:', numValue, '->', roundedAmount, '差额:', roundingDifference);
150
- _context.next = 30;
154
+ _context.next = 31;
151
155
  break;
152
- case 29:
153
- console.log('不应用抹零,用户输入金额:', numValue, '剩余支付金额:', balanceDue);
154
156
  case 30:
157
+ console.log('不应用抹零,用户输入金额:', numValue, '剩余支付金额:', balanceDue);
158
+ case 31:
155
159
  setRoundingAmount(roundingDiff);
156
160
  if (isNaN(numValue)) {
157
161
  setAmount('');
@@ -159,7 +163,7 @@ export function CashPaymentModule(_ref) {
159
163
  setAmount(finalAmount.toString());
160
164
  console.log('设置金额为:', finalAmount);
161
165
  }
162
- case 32:
166
+ case 33:
163
167
  case "end":
164
168
  return _context.stop();
165
169
  }
@@ -105,20 +105,11 @@ function PaymentDetailModal(_ref) {
105
105
  return !item.voucher_id || item.isSynced;
106
106
  }).reduce(function (total, item) {
107
107
  var amount = new Decimal(Math.abs(item.amount));
108
- var roundingAmount = new Decimal(Math.abs(item.rounding_amount));
108
+ var roundingAmount = new Decimal(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0);
109
109
  return new Decimal(total).plus(amount).plus(roundingAmount).toNumber();
110
110
  }, 0);
111
111
  };
112
112
 
113
- // 计算优惠券扣减总额 (只计算带voucher_id的支付项)
114
- var getTotalVoucherAmount = function getTotalVoucherAmount() {
115
- return paymentItems.filter(function (item) {
116
- return item.voucher_id;
117
- }).reduce(function (total, item) {
118
- return new Decimal(total).plus(new Decimal(Math.abs(item.amount))).toNumber();
119
- }, 0);
120
- };
121
-
122
113
  // 计算Balance Due金额 (customAmount + 所有voucher扣减金额)
123
114
  var getBalanceDueAmount = function getBalanceDueAmount() {
124
115
  // debugger
@@ -152,10 +143,10 @@ function PaymentDetailModal(_ref) {
152
143
  }, getText('no.payments.recorded') || 'No payments recorded'));
153
144
  }
154
145
  var depositPaymentSummary = depositPayments.reduce(function (acc, item) {
155
- return new Decimal(acc).plus(new Decimal(item.amount)).plus(new Decimal(Math.abs(item.rounding_amount || 0))).toNumber();
146
+ return new Decimal(acc).plus(new Decimal(item.amount)).plus(new Decimal(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber();
156
147
  }, 0);
157
148
  var regularPaymentSummary = regularPayments.reduce(function (acc, item) {
158
- return new Decimal(acc).plus(new Decimal(item.amount)).plus(new Decimal(Math.abs(item.rounding_amount || 0))).toNumber();
149
+ return new Decimal(acc).plus(new Decimal(item.amount)).plus(new Decimal(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber();
159
150
  }, 0);
160
151
  return /*#__PURE__*/React.createElement("div", {
161
152
  className: classNames('section-content')
@@ -182,7 +173,7 @@ function PaymentDetailModal(_ref) {
182
173
  className: classNames('payment-item-actions')
183
174
  }, /*#__PURE__*/React.createElement("div", {
184
175
  className: classNames('payment-item-amount')
185
- }, "-", formatAmountWithOptions(new Decimal(Math.abs(item.amount)).plus(new Decimal(Math.abs(item.rounding_amount))).toNumber(), amountSymbol, {
176
+ }, "-", formatAmountWithOptions(new Decimal(Math.abs(item.amount)).plus(new Decimal(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber(), amountSymbol, {
186
177
  precision: 2,
187
178
  hideDecimalForWholeNumbers: false,
188
179
  useThousandsSeparator: true,
@@ -215,7 +206,7 @@ function PaymentDetailModal(_ref) {
215
206
  className: classNames('payment-item-actions')
216
207
  }, /*#__PURE__*/React.createElement("div", {
217
208
  className: classNames('payment-item-amount')
218
- }, "-", formatAmountWithOptions(new Decimal(Math.abs(item.amount)).plus(new Decimal(Math.abs(item.rounding_amount))).toNumber(), amountSymbol, {
209
+ }, "-", formatAmountWithOptions(new Decimal(Math.abs(item.amount)).plus(new Decimal(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0)).toNumber(), amountSymbol, {
219
210
  precision: 2,
220
211
  hideDecimalForWholeNumbers: false,
221
212
  useThousandsSeparator: true,
@@ -57,7 +57,10 @@ function PaymentOptionsModule(_ref) {
57
57
  onClick(method);
58
58
  }
59
59
  }, {
60
- wait: 500 // 500ms 防抖延迟
60
+ wait: 1000,
61
+ // 500ms 防抖延迟
62
+ leading: true,
63
+ trailing: false
61
64
  }),
62
65
  handlePaymentClick = _useDebounceFn.run;
63
66
  return /*#__PURE__*/React.createElement("div", {
@@ -17,7 +17,7 @@ export declare const useWalletPass: (props: {
17
17
  cardData: any;
18
18
  handleSelectWallet: (value: number[]) => void;
19
19
  selectedWalletIds: any[];
20
- expiredWalletIds: any[];
20
+ expiredWalletIds: any;
21
21
  expiredWalletData: any;
22
22
  disabledWalletData: any[];
23
23
  clearAllSelectedWallet: () => void;
@@ -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 { PosProps } from './const';
3
2
  /**
4
3
  * @title: 支付金额信息配置页
@@ -9,7 +8,7 @@ import { PosProps } from './const';
9
8
  */
10
9
  declare const _default: ({ className, onChange, onClose, formatAmount, isMobile, net, client }: {
11
10
  className?: string | undefined;
12
- onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
11
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "mark_tx_processed", params?: string | {
13
12
  [keys: string]: unknown;
14
13
  } | undefined, other?: any) => void) | undefined;
15
14
  onClose: () => void;
@@ -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
  declare const _default: ({ className, isMobile, onChange }: ActionProps) => JSX.Element;
4
3
  export default _default;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ActionProps } from '../../const';
3
2
  declare const _default: ({ onChange, className, isMobile }: ActionProps) => JSX.Element;
4
3
  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;
@@ -11,7 +11,7 @@ import './device.less';
11
11
  declare const _default: ({ api, onChange, onClose, className, device_number, isMobile, net, client, formatAmount, containerStyle, }: {
12
12
  api: PayProps['api'];
13
13
  className?: string | undefined;
14
- onChange?: ((status: "page" | "success" | "print" | "fail" | "mark_tx_processed", params?: string | {
14
+ onChange?: ((status: "success" | "page" | "print" | "fail" | "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" | "warn" | "loading" | "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<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"payo" | "tyro" | "windcave" | "stripe" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -74,7 +74,7 @@ export var useLinklyPayOrRefund = function useLinklyPayOrRefund(handleCheck) {
74
74
  var status = res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.status;
75
75
 
76
76
  // 继续查询交易状态
77
- if (status === 0) {
77
+ if (status == 0) {
78
78
  var _res$data2;
79
79
  // 交易流水号
80
80
  numRef.current = res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.session_id;
@@ -89,7 +89,7 @@ export var useLinklyPayOrRefund = function useLinklyPayOrRefund(handleCheck) {
89
89
  setTimeout(function () {
90
90
  var _resultQueryRef$curre;
91
91
  (_resultQueryRef$curre = resultQueryRef.current) === null || _resultQueryRef$curre === void 0 || _resultQueryRef$curre.call(resultQueryRef);
92
- });
92
+ }, 300);
93
93
  return;
94
94
  }
95
95
 
@@ -99,7 +99,7 @@ export var useLinklyPayOrRefund = function useLinklyPayOrRefund(handleCheck) {
99
99
  }));
100
100
 
101
101
  // 交易成功
102
- if (status === 1) {
102
+ if (status == 1) {
103
103
  var _handleLinklySuccessR;
104
104
  (_handleLinklySuccessR = handleLinklySuccessRef.current) === null || _handleLinklySuccessR === void 0 || _handleLinklySuccessR.call(handleLinklySuccessRef, res);
105
105
  return;