@pisell/private-materials 6.4.49 → 6.4.51

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 (377) 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 +146 -146
  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 +5 -5
  11. package/es/components/appointmentBooking/components/Services/index.js +36 -18
  12. package/es/components/appointmentBooking/hooks.js +6 -0
  13. package/es/components/booking/addons/model.d.ts +1 -10
  14. package/es/components/booking/components/TabProduct/index.d.ts +0 -1
  15. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  16. package/es/components/booking/components/collapsibleList/utils.d.ts +0 -1
  17. package/es/components/booking/components/emptyBooking/index.d.ts +0 -1
  18. package/es/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  19. package/es/components/booking/components/footer/index.js +24 -5
  20. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  21. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  22. package/es/components/booking/deposit/index.d.ts +0 -1
  23. package/es/components/booking/editBookingModal/index.js +8 -2
  24. package/es/components/booking/forms/model.d.ts +1 -10
  25. package/es/components/booking/forms/single/index.d.ts +0 -1
  26. package/es/components/booking/forms/table/index.d.ts +0 -1
  27. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  28. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  29. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  30. package/es/components/booking/info/date/index.d.ts +0 -1
  31. package/es/components/booking/info/header/index.d.ts +0 -1
  32. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  33. package/es/components/booking/info/index.d.ts +0 -1
  34. package/es/components/booking/info/model.d.ts +1 -10
  35. package/es/components/booking/info/service/actions/index.d.ts +0 -1
  36. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  37. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  38. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  39. package/es/components/booking/info/service/like/index.d.ts +0 -1
  40. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  41. package/es/components/booking/info2/service/actions/index.d.ts +0 -1
  42. package/es/components/booking/info2/service/addService/index.d.ts +0 -1
  43. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  44. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  45. package/es/components/booking/locales.d.ts +6 -0
  46. package/es/components/booking/locales.js +12 -0
  47. package/es/components/booking/materiels/contacts/index.d.ts +0 -1
  48. package/es/components/booking/materiels/duration/index.d.ts +0 -1
  49. package/es/components/booking/materiels/holder/index.d.ts +0 -1
  50. package/es/components/booking/materiels/startTime/index.d.ts +0 -1
  51. package/es/components/booking/model.d.ts +1 -9
  52. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  53. package/es/components/booking/notes/model.d.ts +1 -10
  54. package/es/components/booking/payments/model.d.ts +1 -10
  55. package/es/components/booking/utils.d.ts +2 -2
  56. package/es/components/checkout/PaymentModal.js +145 -101
  57. package/es/components/checkout/components/AmountSummary/index.js +41 -6
  58. package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  59. package/es/components/checkout/components/CashPaymentModule/index.js +14 -10
  60. package/es/components/checkout/components/PaymentDetailModal/index.js +72 -20
  61. package/es/components/checkout/components/PaymentDetailModal/index.less +23 -2
  62. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  63. package/es/components/checkout/hooks/useWalletPass.js +1 -0
  64. package/es/components/checkout/locales.d.ts +3 -0
  65. package/es/components/checkout/locales.js +3 -0
  66. package/es/components/eftpos/deviceList/index.d.ts +0 -1
  67. package/es/components/eftpos/form/index.d.ts +0 -1
  68. package/es/components/eftpos/group/index.d.ts +0 -1
  69. package/es/components/eftpos/hooks.d.ts +0 -1
  70. package/es/components/eftpos/icon/apiKey.d.ts +0 -1
  71. package/es/components/eftpos/icon/device.d.ts +0 -1
  72. package/es/components/eftpos/index.d.ts +0 -1
  73. package/es/components/eftpos/pos.d.ts +0 -1
  74. package/es/components/eftpos/receipt/index.d.ts +0 -1
  75. package/es/components/eftpos/surcharge/index.d.ts +0 -1
  76. package/es/components/eftposPay/component/alert/warn.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/hooks.d.ts +2 -2
  85. package/es/components/eftposPay/linkly/hooks/normal.js +3 -3
  86. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +25 -4
  87. package/es/components/eftposPay/payo/config.d.ts +0 -1
  88. package/es/components/eftposPay/serve.js +1 -1
  89. package/es/components/eftposPay/store/index.d.ts +4 -4
  90. package/es/components/eftposPay/tip.d.ts +0 -1
  91. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  92. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  93. package/es/components/eftposPay/windcave/windcave.d.ts +0 -1
  94. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  95. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  96. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  97. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  98. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  99. package/es/components/index.d.ts +3 -1
  100. package/es/components/index.js +3 -1
  101. package/es/components/login/index.d.ts +0 -1
  102. package/es/components/pay/toB/components/Content/Header.d.ts +0 -1
  103. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  104. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +6 -3
  105. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  106. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  107. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  108. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  109. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  110. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +2 -0
  111. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +112 -24
  112. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +38 -2
  113. package/es/components/pay/toC/PaymentMethods/WalletPass/serve.js +78 -0
  114. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +6 -0
  115. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +9 -0
  116. package/es/components/pay/toC/model.d.ts +1 -9
  117. package/es/components/pay/toC/utils.js +1 -1
  118. package/es/components/pinModal/hooks.d.ts +7 -0
  119. package/es/components/pinModal/hooks.js +65 -0
  120. package/es/components/pinModal/index.d.ts +4 -0
  121. package/es/components/pinModal/index.js +98 -0
  122. package/es/components/pinModal/index.less +44 -0
  123. package/es/components/pinModal/locales.d.ts +27 -0
  124. package/es/components/pinModal/locales.js +26 -0
  125. package/es/components/pinModal/serve.d.ts +6 -0
  126. package/es/components/pinModal/serve.js +11 -0
  127. package/es/components/pinModal/types.d.ts +0 -0
  128. package/es/components/pinModal/types.js +0 -0
  129. package/es/components/pinVerifyModal/hooks.d.ts +7 -0
  130. package/es/components/pinVerifyModal/hooks.js +80 -0
  131. package/es/components/pinVerifyModal/index.d.ts +5 -0
  132. package/es/components/pinVerifyModal/index.js +218 -0
  133. package/es/components/pinVerifyModal/index.less +92 -0
  134. package/es/components/pinVerifyModal/locales.d.ts +24 -0
  135. package/es/components/pinVerifyModal/locales.js +23 -0
  136. package/es/components/pinVerifyModal/types.d.ts +33 -0
  137. package/es/components/pinVerifyModal/types.js +1 -0
  138. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  139. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  140. package/es/components/productExtension/fields/Actor/index.d.ts +0 -1
  141. package/es/components/productExtension/fields/Forms/index.d.ts +0 -1
  142. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  143. package/es/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  144. package/es/components/schedules/calendar/calendarItem.d.ts +0 -1
  145. package/es/components/schedules/calendar/index.d.ts +0 -1
  146. package/es/components/schedules/components/CurrentDay/index.d.ts +0 -1
  147. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  148. package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  149. package/es/components/schedules/components/ScheduleList/index.d.ts +0 -1
  150. package/es/components/schedules/model.d.ts +1 -9
  151. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  152. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  153. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  154. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  155. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  156. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  157. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  158. package/es/components/schedules/products/index.d.ts +0 -1
  159. package/es/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  160. package/es/components/schedules/products/list/index.d.ts +0 -1
  161. package/es/components/schedules/resources/index.d.ts +0 -1
  162. package/es/components/schedules/resources/list/index.d.ts +0 -1
  163. package/es/components/schedules/resources/relationProduct/index.d.ts +0 -1
  164. package/es/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  165. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  166. package/es/components/schedules/schedules/index.d.ts +0 -1
  167. package/es/components/taxSelect/index.d.ts +0 -1
  168. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  169. package/es/components/ticketBooking/components/ticketBooking/index.js +56 -10
  170. package/es/components/ticketBooking/components/timeBar/index.js +2 -1
  171. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  172. package/es/components/wallet/Detail/model.d.ts +1 -13
  173. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  174. package/es/components/wallet/PointCard/model.d.ts +1 -13
  175. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  176. package/es/components/wallet/Voucher/model.d.ts +1 -13
  177. package/es/components/wallet/model.d.ts +1 -9
  178. package/es/components/walletList/index.js +20 -2
  179. package/es/hooks/usePaymentLogger.d.ts +0 -1
  180. package/es/index.d.ts +2 -0
  181. package/es/index.js +3 -1
  182. package/es/plus/clientName/index.d.ts +0 -1
  183. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  184. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  185. package/es/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  186. package/es/plus/saasCreateOrganization/index.d.ts +0 -1
  187. package/es/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  188. package/es/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  189. package/es/plus/saasRegister/components/GoLogin.d.ts +0 -1
  190. package/es/plus/saasRegister/components/Header.d.ts +0 -1
  191. package/es/plus/saasRegister/components/VerifyError.d.ts +0 -1
  192. package/es/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  193. package/lib/components/appointmentBooking/components/Services/index.js +13 -3
  194. package/lib/components/appointmentBooking/hooks.js +6 -0
  195. package/lib/components/booking/addons/model.d.ts +1 -10
  196. package/lib/components/booking/components/TabProduct/index.d.ts +0 -1
  197. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +0 -1
  198. package/lib/components/booking/components/collapsibleList/utils.d.ts +0 -1
  199. package/lib/components/booking/components/emptyBooking/index.d.ts +0 -1
  200. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +0 -1
  201. package/lib/components/booking/components/footer/index.js +21 -3
  202. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +0 -1
  203. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -1
  204. package/lib/components/booking/deposit/index.d.ts +0 -1
  205. package/lib/components/booking/editBookingModal/index.js +6 -1
  206. package/lib/components/booking/forms/model.d.ts +1 -10
  207. package/lib/components/booking/forms/single/index.d.ts +0 -1
  208. package/lib/components/booking/forms/table/index.d.ts +0 -1
  209. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  210. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +0 -1
  211. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  212. package/lib/components/booking/info/date/index.d.ts +0 -1
  213. package/lib/components/booking/info/header/index.d.ts +0 -1
  214. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  215. package/lib/components/booking/info/index.d.ts +0 -1
  216. package/lib/components/booking/info/model.d.ts +1 -10
  217. package/lib/components/booking/info/service/actions/index.d.ts +0 -1
  218. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  219. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  220. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  221. package/lib/components/booking/info/service/like/index.d.ts +0 -1
  222. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  223. package/lib/components/booking/info2/service/actions/index.d.ts +0 -1
  224. package/lib/components/booking/info2/service/addService/index.d.ts +0 -1
  225. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  226. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  227. package/lib/components/booking/locales.d.ts +6 -0
  228. package/lib/components/booking/locales.js +6 -0
  229. package/lib/components/booking/materiels/contacts/index.d.ts +0 -1
  230. package/lib/components/booking/materiels/duration/index.d.ts +0 -1
  231. package/lib/components/booking/materiels/holder/index.d.ts +0 -1
  232. package/lib/components/booking/materiels/startTime/index.d.ts +0 -1
  233. package/lib/components/booking/model.d.ts +1 -9
  234. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +0 -1
  235. package/lib/components/booking/notes/model.d.ts +1 -10
  236. package/lib/components/booking/payments/model.d.ts +1 -10
  237. package/lib/components/booking/utils.d.ts +2 -2
  238. package/lib/components/checkout/PaymentModal.js +38 -10
  239. package/lib/components/checkout/components/AmountSummary/index.js +33 -5
  240. package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
  241. package/lib/components/checkout/components/CashPaymentModule/index.js +6 -3
  242. package/lib/components/checkout/components/PaymentDetailModal/index.js +49 -11
  243. package/lib/components/checkout/components/PaymentDetailModal/index.less +23 -2
  244. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  245. package/lib/components/checkout/hooks/useWalletPass.js +1 -0
  246. package/lib/components/checkout/locales.d.ts +3 -0
  247. package/lib/components/checkout/locales.js +3 -0
  248. package/lib/components/eftpos/deviceList/index.d.ts +0 -1
  249. package/lib/components/eftpos/form/index.d.ts +0 -1
  250. package/lib/components/eftpos/group/index.d.ts +0 -1
  251. package/lib/components/eftpos/hooks.d.ts +0 -1
  252. package/lib/components/eftpos/icon/apiKey.d.ts +0 -1
  253. package/lib/components/eftpos/icon/device.d.ts +0 -1
  254. package/lib/components/eftpos/index.d.ts +0 -1
  255. package/lib/components/eftpos/pos.d.ts +0 -1
  256. package/lib/components/eftpos/receipt/index.d.ts +0 -1
  257. package/lib/components/eftpos/surcharge/index.d.ts +0 -1
  258. package/lib/components/eftposPay/component/alert/warn.d.ts +0 -1
  259. package/lib/components/eftposPay/component/fail/network.d.ts +0 -1
  260. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -1
  261. package/lib/components/eftposPay/component/header/titlebar.d.ts +0 -1
  262. package/lib/components/eftposPay/component/manual/index.d.ts +0 -1
  263. package/lib/components/eftposPay/component/signature/index.d.ts +0 -1
  264. package/lib/components/eftposPay/component/step/index.d.ts +0 -1
  265. package/lib/components/eftposPay/component/step/step.d.ts +0 -1
  266. package/lib/components/eftposPay/hooks.d.ts +2 -2
  267. package/lib/components/eftposPay/linkly/hooks/normal.js +3 -3
  268. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +16 -4
  269. package/lib/components/eftposPay/payo/config.d.ts +0 -1
  270. package/lib/components/eftposPay/serve.js +1 -1
  271. package/lib/components/eftposPay/store/index.d.ts +4 -4
  272. package/lib/components/eftposPay/tip.d.ts +0 -1
  273. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  274. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -1
  275. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -1
  276. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +0 -1
  277. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  278. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  279. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +0 -1
  280. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +0 -1
  281. package/lib/components/index.d.ts +3 -1
  282. package/lib/components/index.js +6 -0
  283. package/lib/components/login/index.d.ts +0 -1
  284. package/lib/components/pay/toB/components/Content/Header.d.ts +0 -1
  285. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +0 -1
  286. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -0
  287. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +0 -1
  288. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +0 -1
  289. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  290. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +0 -1
  291. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +0 -1
  292. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +2 -0
  293. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +84 -36
  294. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +38 -2
  295. package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.js +18 -0
  296. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +6 -0
  297. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +7 -2
  298. package/lib/components/pay/toC/model.d.ts +1 -9
  299. package/lib/components/pay/toC/utils.js +1 -1
  300. package/lib/components/pinModal/hooks.d.ts +7 -0
  301. package/lib/components/pinModal/hooks.js +85 -0
  302. package/lib/components/pinModal/index.d.ts +4 -0
  303. package/lib/components/pinModal/index.js +88 -0
  304. package/lib/components/pinModal/index.less +44 -0
  305. package/lib/components/pinModal/locales.d.ts +27 -0
  306. package/lib/components/pinModal/locales.js +50 -0
  307. package/lib/components/pinModal/serve.d.ts +6 -0
  308. package/lib/components/pinModal/serve.js +37 -0
  309. package/lib/components/pinModal/types.d.ts +0 -0
  310. package/lib/components/pinModal/types.js +0 -0
  311. package/lib/components/pinVerifyModal/hooks.d.ts +7 -0
  312. package/lib/components/pinVerifyModal/hooks.js +93 -0
  313. package/lib/components/pinVerifyModal/index.d.ts +5 -0
  314. package/lib/components/pinVerifyModal/index.js +230 -0
  315. package/lib/components/pinVerifyModal/index.less +92 -0
  316. package/lib/components/pinVerifyModal/locales.d.ts +24 -0
  317. package/lib/components/pinVerifyModal/locales.js +47 -0
  318. package/lib/components/pinVerifyModal/types.d.ts +33 -0
  319. package/lib/components/pinVerifyModal/types.js +17 -0
  320. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +0 -1
  321. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +0 -1
  322. package/lib/components/productExtension/fields/Actor/index.d.ts +0 -1
  323. package/lib/components/productExtension/fields/Forms/index.d.ts +0 -1
  324. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +0 -1
  325. package/lib/components/ruleSetting/ruleBorder/index.d.ts +0 -1
  326. package/lib/components/schedules/calendar/calendarItem.d.ts +0 -1
  327. package/lib/components/schedules/calendar/index.d.ts +0 -1
  328. package/lib/components/schedules/components/CurrentDay/index.d.ts +0 -1
  329. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +0 -1
  330. package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +0 -1
  331. package/lib/components/schedules/components/ScheduleList/index.d.ts +0 -1
  332. package/lib/components/schedules/model.d.ts +1 -9
  333. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +0 -1
  334. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +0 -1
  335. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +0 -1
  336. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +0 -1
  337. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +0 -1
  338. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +0 -1
  339. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +0 -1
  340. package/lib/components/schedules/products/index.d.ts +0 -1
  341. package/lib/components/schedules/products/list/ProductItem/index.d.ts +0 -1
  342. package/lib/components/schedules/products/list/index.d.ts +0 -1
  343. package/lib/components/schedules/resources/index.d.ts +0 -1
  344. package/lib/components/schedules/resources/list/index.d.ts +0 -1
  345. package/lib/components/schedules/resources/relationProduct/index.d.ts +0 -1
  346. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +0 -1
  347. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +0 -1
  348. package/lib/components/schedules/schedules/index.d.ts +0 -1
  349. package/lib/components/taxSelect/index.d.ts +0 -1
  350. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  351. package/lib/components/ticketBooking/components/ticketBooking/index.js +52 -5
  352. package/lib/components/ticketBooking/components/timeBar/index.js +2 -1
  353. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  354. package/lib/components/wallet/Detail/model.d.ts +1 -13
  355. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  356. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  357. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  358. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  359. package/lib/components/wallet/model.d.ts +1 -9
  360. package/lib/components/walletList/index.js +19 -2
  361. package/lib/hooks/usePaymentLogger.d.ts +0 -1
  362. package/lib/index.d.ts +2 -0
  363. package/lib/index.js +6 -0
  364. package/lib/plus/clientName/index.d.ts +0 -1
  365. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +0 -1
  366. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +0 -1
  367. package/lib/plus/saasCreateOrganization/components/Header.d.ts +0 -1
  368. package/lib/plus/saasCreateOrganization/index.d.ts +0 -1
  369. package/lib/plus/saasRegister/components/EntryEmail.d.ts +0 -1
  370. package/lib/plus/saasRegister/components/EntryInfo.d.ts +0 -1
  371. package/lib/plus/saasRegister/components/GoLogin.d.ts +0 -1
  372. package/lib/plus/saasRegister/components/Header.d.ts +0 -1
  373. package/lib/plus/saasRegister/components/VerifyError.d.ts +0 -1
  374. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +0 -1
  375. package/lowcode/pin-modal/meta.ts +37 -0
  376. package/lowcode/pin-verify-modal/meta.ts +80 -0
  377. package/package.json +12 -12
@@ -108,6 +108,7 @@ var PaymentContent = (0, import_react.forwardRef)(
108
108
  const savePayLaterHandlerRef = (0, import_react.useRef)(null);
109
109
  const [customAmount, setCustomAmount] = (0, import_react.useState)("");
110
110
  const [balanceDueAmount, setBalanceDueAmount] = (0, import_react.useState)("");
111
+ const [balanceDueTotalAmount, setBalanceDueTotalAmount] = (0, import_react.useState)("");
111
112
  const [recommendAmounts, setRecommendAmounts] = (0, import_react.useState)([]);
112
113
  const paymentMethodsRef = (0, import_react.useRef)(null);
113
114
  const [paymentMethods, setPaymentMethods] = (0, import_react.useState)([]);
@@ -319,6 +320,7 @@ var PaymentContent = (0, import_react.forwardRef)(
319
320
  if (currentAmount) {
320
321
  setCustomAmount(currentAmount);
321
322
  setBalanceDueAmount(currentAmount);
323
+ setBalanceDueTotalAmount(orderInfo.totalAmount || "0");
322
324
  const currentNote = checkoutModule.getOrderNote();
323
325
  if (currentNote) {
324
326
  setOrderNote(currentNote);
@@ -407,6 +409,7 @@ var PaymentContent = (0, import_react.forwardRef)(
407
409
  CheckoutHooks.OnBalanceDueAmountChanged,
408
410
  (data) => {
409
411
  setBalanceDueAmount(data.newAmount);
412
+ setBalanceDueTotalAmount(data.totalAmount || "0");
410
413
  }
411
414
  );
412
415
  const orderSubmitStartUnsubscribe = core.effects.on(
@@ -451,17 +454,19 @@ var PaymentContent = (0, import_react.forwardRef)(
451
454
  );
452
455
  const paymentItems2 = await checkoutModule.getCurrentOrderPaymentItemsAsync();
453
456
  let totalAmount2 = new import_decimal.default(orderInfo2.isDeposit ? orderInfo2.depositAmount : orderInfo2.totalAmount);
454
- if (paymentItems2.length > 0 && paymentItems2.filter((n) => n.isSynced).some((item) => item.service_charge)) {
457
+ if (paymentItems2.length > 0 && paymentItems2.filter((n) => n.isSynced).some((item) => item.service_charge || item.rounding_amount)) {
455
458
  const serviceChargeTotal = paymentItems2.reduce((acc, item) => {
456
459
  var _a3, _b3;
457
460
  const chargeAmount = new import_decimal.default(((_a3 = item.service_charge) == null ? void 0 : _a3.amount) || 0);
458
461
  const chargePercentage = new import_decimal.default(((_b3 = item.service_charge) == null ? void 0 : _b3.percentage) || 0);
459
462
  const itemAmount = new import_decimal.default(item.amount || 0);
460
- const itemServiceCharge = chargeAmount.add(chargePercentage.mul(itemAmount));
463
+ let itemServiceCharge = chargeAmount.add(chargePercentage.mul(itemAmount));
464
+ console.log(itemServiceCharge);
461
465
  return acc.add(itemServiceCharge);
462
466
  }, new import_decimal.default(0));
463
467
  totalAmount2 = totalAmount2.add(serviceChargeTotal);
464
468
  }
469
+ console.log(totalAmount2, paymentItems2);
465
470
  await (0, import_PaymentResultToastUtils.displayPaymentResultToast)(
466
471
  {
467
472
  paymentStatus: "partially_paid",
@@ -563,9 +568,12 @@ var PaymentContent = (0, import_react.forwardRef)(
563
568
  const result = await checkoutModule.manualSyncOrderAsync();
564
569
  await (showSuccessToast == null ? void 0 : showSuccessToast(result));
565
570
  if (result.success) {
571
+ checkoutModule.core.effects.emit("checkout:onPaymentStarted", {
572
+ paymentMethodCode: ""
573
+ });
566
574
  const orderInfo2 = checkoutModule.getCurrentOrderInfo();
567
575
  setCurrentEditOrderId == null ? void 0 : setCurrentEditOrderId(result.orderId);
568
- if (result.is_deposit && Number(orderInfo2.depositAmount < orderInfo2.totalAmount)) {
576
+ if (result.is_deposit && Number(orderInfo2.depositAmount) < Number(orderInfo2.totalAmount)) {
569
577
  updateOrderInfo == null ? void 0 : updateOrderInfo(orderInfo2);
570
578
  return;
571
579
  }
@@ -931,7 +939,8 @@ var PaymentContent = (0, import_react.forwardRef)(
931
939
  amountButtons: recommendAmounts,
932
940
  customAmount,
933
941
  roundingFunction,
934
- balanceDueAmount
942
+ balanceDueAmount,
943
+ balanceDueTotalAmount
935
944
  }
936
945
  )
937
946
  ),
@@ -1044,7 +1053,7 @@ var PaymentModal = ({
1044
1053
  import_locales2.default,
1045
1054
  ((_e = (_d = (_c = (_b = (_a = context.appHelper.utils) == null ? void 0 : _a.getApp) == null ? void 0 : _b.call(_a)) == null ? void 0 : _c.locales) == null ? void 0 : _d.getLocale) == null ? void 0 : _e.call(_d)) || ((_g = (_f = context.appHelper.utils) == null ? void 0 : _f.storage) == null ? void 0 : _g.get("umi_locale")) || "en"
1046
1055
  );
1047
- const { pisellos, getData, interaction } = ((_h = context == null ? void 0 : context.appHelper) == null ? void 0 : _h.utils) || {};
1056
+ const { pisellos, getData, interaction, isWebPos } = ((_h = context == null ? void 0 : context.appHelper) == null ? void 0 : _h.utils) || {};
1048
1057
  const [orderInfo, setOrderInfo] = (0, import_react.useState)(null);
1049
1058
  const [totalAmount, setTotalAmount] = (0, import_react.useState)(0);
1050
1059
  const [actualShowCashPayment, setActualShowCashPayment] = (0, import_react.useState)(true);
@@ -1422,6 +1431,13 @@ var PaymentModal = ({
1422
1431
  totalInfo: newData.subtotal_info
1423
1432
  });
1424
1433
  } else {
1434
+ logger == null ? void 0 : logger.addLog({
1435
+ type: "info",
1436
+ title: "正常创建 createLocalOrderAsync",
1437
+ metadata: {
1438
+ data
1439
+ }
1440
+ });
1425
1441
  await checkout.createLocalOrderAsync({
1426
1442
  orderData: newData.order_info,
1427
1443
  cartSummary: (_b2 = newData.subtotal_info) == null ? void 0 : _b2.subTotalList,
@@ -1515,10 +1531,15 @@ var PaymentModal = ({
1515
1531
  paymentStatus,
1516
1532
  !!currentChangeGivenAmount
1517
1533
  );
1518
- const enabledAutoPrint = await ((_e2 = (_d3 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _d3.asyncDataManager) == null ? void 0 : _e2.call(_d3, {
1519
- module: "get",
1520
- key: "auto_print_receipt"
1521
- }));
1534
+ let enabledAutoPrint = false;
1535
+ if (isWebPos) {
1536
+ enabledAutoPrint = false;
1537
+ } else {
1538
+ enabledAutoPrint = await ((_e2 = (_d3 = interaction == null ? void 0 : interaction.utils) == null ? void 0 : _d3.asyncDataManager) == null ? void 0 : _e2.call(_d3, {
1539
+ module: "get",
1540
+ key: "auto_print_receipt"
1541
+ }));
1542
+ }
1522
1543
  const orderInfo3 = checkout.getCurrentOrderInfo();
1523
1544
  await (0, import_PaymentResultToastUtils.displayPaymentResultToast)(
1524
1545
  {
@@ -1564,6 +1585,13 @@ var PaymentModal = ({
1564
1585
  totalInfo: data == null ? void 0 : data.subtotal_info
1565
1586
  });
1566
1587
  } else {
1588
+ logger == null ? void 0 : logger.addLog({
1589
+ type: "info",
1590
+ title: "含有 localOrderCreate, 调用 createLocalOrderAsync",
1591
+ metadata: {
1592
+ data
1593
+ }
1594
+ });
1567
1595
  await checkout.createLocalOrderAsync({
1568
1596
  orderData: data == null ? void 0 : data.order_info,
1569
1597
  cartSummary: (_d2 = data == null ? void 0 : data.subtotal_info) == null ? void 0 : _d2.subTotalList,
@@ -1618,7 +1646,7 @@ var PaymentModal = ({
1618
1646
  setTimeout(() => {
1619
1647
  (0, import_PaymentResultToast.closePaymentResultToast)();
1620
1648
  }, 0);
1621
- const { isTerminal, isWebPos } = (_a2 = context.appHelper) == null ? void 0 : _a2.utils;
1649
+ const { isTerminal, isWebPos: isWebPos2 } = (_a2 = context.appHelper) == null ? void 0 : _a2.utils;
1622
1650
  if (isTerminal == null ? void 0 : isTerminal()) {
1623
1651
  const checkout = pisellos.getModule("checkout");
1624
1652
  const orderId = await checkout.getCurrentOrderId();
@@ -173,7 +173,7 @@ function AmountSummary({
173
173
  (0, import_react.useEffect)(() => {
174
174
  var _a2;
175
175
  const nonWalletPassAmount = ((_a2 = paymentItems == null ? void 0 : paymentItems.reduce((acc, item) => {
176
- if (!item.voucher_id) {
176
+ if (!item.voucher_id || item.voucher_id && item.isSynced) {
177
177
  let itemAmount = new import_decimal.default(item.amount || "0");
178
178
  if (item.rounding_amount) {
179
179
  const roundingAmount = new import_decimal.default(item.rounding_amount);
@@ -364,6 +364,13 @@ function AmountSummary({
364
364
  const renderConfirmMode = () => {
365
365
  let balanceAmountValue = parseFormattedAmount(getBalanceDueAmount());
366
366
  let balanceDecimal = new import_decimal.default(balanceAmountValue);
367
+ const syncedVoucherAmount = paymentItems == null ? void 0 : paymentItems.reduce((acc, item) => {
368
+ if (item.isSynced && (paymentType === "regular" && item.order_payment_type !== "deposit" || paymentType === "deposit" && item.order_payment_type === "deposit")) {
369
+ return acc.plus(item.amount).plus(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0);
370
+ }
371
+ return acc;
372
+ }, new import_decimal.default(0)).toNumber();
373
+ balanceDecimal = balanceDecimal.minus(syncedVoucherAmount);
367
374
  const finalBalanceAmount = (0, import_utils.formatAmountWithOptions)(
368
375
  balanceDecimal.toNumber(),
369
376
  amountSymbol,
@@ -440,7 +447,7 @@ function AmountSummary({
440
447
  if (paymentType === "regular") {
441
448
  const depositPaidAmount = paymentItems == null ? void 0 : paymentItems.reduce((acc, item) => {
442
449
  if (item.order_payment_type === "deposit") {
443
- return acc.plus(item.amount).plus(Math.abs(item.rounding_amount));
450
+ return acc.plus(item.amount).plus(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0);
444
451
  }
445
452
  return acc;
446
453
  }, new import_decimal.default(0)).toNumber();
@@ -449,7 +456,7 @@ function AmountSummary({
449
456
  } else {
450
457
  const depositPaidAmount = paymentItems == null ? void 0 : paymentItems.reduce((acc, item) => {
451
458
  if (item.order_payment_type === "deposit") {
452
- return acc.plus(item.amount);
459
+ return acc.plus(item.amount).plus(Number(item.rounding_amount) > 0 ? 0 : item.rounding_amount || 0);
453
460
  }
454
461
  return acc;
455
462
  }, new import_decimal.default(0)).toNumber();
@@ -457,12 +464,22 @@ function AmountSummary({
457
464
  }
458
465
  }, [paymentItems, paymentType, totalAmount]);
459
466
  const showCancelSplitPayment = (0, import_react.useMemo)(() => {
460
- return balanceDueAmount !== customAmount;
467
+ return balanceDueAmount !== customAmount && Number(balanceDueAmount) > 0 && Number(customAmount) > 0;
461
468
  }, [customAmount, balanceDueAmount]);
462
469
  const handleChangeDepositAmount = (value) => {
463
470
  console.log("handleChangeDepositAmount", value);
464
471
  checkoutModule == null ? void 0 : checkoutModule.setDepositAmountAsync(value);
465
472
  };
473
+ const hasDepositPayment = (0, import_react.useMemo)(() => {
474
+ return paymentItems == null ? void 0 : paymentItems.some((item) => item.order_payment_type === "deposit" && item.status !== "voided");
475
+ }, [paymentItems]);
476
+ const showCanNotChangeDepositAmount = () => {
477
+ Toast == null ? void 0 : Toast.fail(
478
+ import_utils.locales.getText(
479
+ "pisell2.checkout.can-not-change-deposit-amount"
480
+ )
481
+ );
482
+ };
466
483
  return /* @__PURE__ */ import_react2.default.createElement(
467
484
  "div",
468
485
  {
@@ -504,7 +521,18 @@ function AmountSummary({
504
521
  })
505
522
  },
506
523
  // 如果应该显示确认模式,直接返回确认界面
507
- shouldShowConfirmMode() ? renderConfirmMode() : /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("balance-due-info") }, paymentType === "deposit" ? /* @__PURE__ */ import_react2.default.createElement(
524
+ shouldShowConfirmMode() ? renderConfirmMode() : /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("balance-due-info") }, paymentType === "deposit" ? hasDepositPayment ? /* @__PURE__ */ import_react2.default.createElement("div", { onClick: () => showCanNotChangeDepositAmount() }, /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("balance-due-label") }, getText("deposit.due") || "Deposit Due"), /* @__PURE__ */ import_react2.default.createElement("div", { className: (0, import_classnames.default)("balance-due-amount") }, (0, import_utils.formatAmountWithOptions)(balanceDueAmount, amountSymbol, {
525
+ precision: 2,
526
+ hideDecimalForWholeNumbers: false,
527
+ useThousandsSeparator: true,
528
+ showCurrencySymbol: true
529
+ }), /* @__PURE__ */ import_react2.default.createElement(
530
+ import_icon.Edit05,
531
+ {
532
+ className: (0, import_classnames.default)("edit-icon"),
533
+ style: { color: "#7F56DA" }
534
+ }
535
+ ))) : /* @__PURE__ */ import_react2.default.createElement(
508
536
  import_pisellSimplePriceKeyboardPopover.default,
509
537
  {
510
538
  value: balanceDueAmount || "0",
@@ -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;
@@ -52,7 +52,9 @@ function CashPaymentModule({
52
52
  // 禁用状态
53
53
  roundingFunction,
54
54
  balanceDueAmount = "0",
55
- // 剩余支付金额
55
+ // 当前阶段剩余支付金额(定金或普通支付)
56
+ balanceDueTotalAmount = "0",
57
+ // 完整订单剩余待付金额
56
58
  syncingLock = false
57
59
  // 是否锁定
58
60
  }) {
@@ -71,7 +73,7 @@ function CashPaymentModule({
71
73
  };
72
74
  (0, import_react.useEffect)(() => {
73
75
  handleKeyboardConfirm(customAmount || "");
74
- }, [customAmount, balanceDueAmount]);
76
+ }, [customAmount, balanceDueAmount, orderInfo == null ? void 0 : orderInfo.isDeposit]);
75
77
  const isAmountButtonsDisabled = disabled || Number(customAmount || 0) === 0;
76
78
  const isInputDisabled = disabled || Number(customAmount || 0) === 0;
77
79
  const handleCashPayInternal = () => {
@@ -120,7 +122,8 @@ function CashPaymentModule({
120
122
  } else {
121
123
  const cleanValue = finalValue.replace(/[$\s]/g, "");
122
124
  const numValue = parseFloat(cleanValue);
123
- const balanceDue = parseFloat(balanceDueAmount);
125
+ debugger;
126
+ const balanceDue = parseFloat((orderInfo == null ? void 0 : orderInfo.isDeposit) ? balanceDueTotalAmount || "0" : balanceDueAmount);
124
127
  const shouldApplyRounding = Math.abs(numValue - balanceDue) < 0.01;
125
128
  let finalAmount = numValue;
126
129
  let roundingDiff = 0;
@@ -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 {
@@ -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;
@@ -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,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" | "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>;
22
- readonly eftposRef: React.MutableRefObject<"stripe" | "payo" | "tyro" | "windcave" | "linkly">;
22
+ readonly eftposRef: React.MutableRefObject<"tyro" | "windcave" | "stripe" | "payo" | "linkly">;
23
23
  readonly clientRef: React.MutableRefObject<ClientEnum>;
24
24
  readonly dataRef: React.MutableRefObject<import("./store").State>;
25
25
  };
@@ -63,18 +63,18 @@ var useLinklyPayOrRefund = (handleCheck) => {
63
63
  content: [{ key: "response", value: JSON.stringify(res) }]
64
64
  });
65
65
  const status = (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.status;
66
- if (status === 0) {
66
+ if (status == 0) {
67
67
  numRef.current = (_b = res == null ? void 0 : res.data) == null ? void 0 : _b.session_id;
68
68
  dispatch((0, import_store.updateState)({ number: numRef.current }));
69
69
  dispatch((0, import_store.updateCustom)({ actionStatus: import_const2.LinklyActionStatus.Cancel }));
70
70
  setTimeout(() => {
71
71
  var _a2;
72
72
  (_a2 = resultQueryRef.current) == null ? void 0 : _a2.call(resultQueryRef);
73
- });
73
+ }, 300);
74
74
  return;
75
75
  }
76
76
  dispatch((0, import_store.updateCustom)({ actionStatus: import_const2.LinklyActionStatus.Empty }));
77
- if (status === 1) {
77
+ if (status == 1) {
78
78
  (_c = handleLinklySuccessRef.current) == null ? void 0 : _c.call(handleLinklySuccessRef, res);
79
79
  return;
80
80
  }