@pisell/private-materials 6.5.10 → 6.5.11

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 (327) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.css +1 -1
  6. package/build/lowcode/render/default/view.js +1 -1
  7. package/build/lowcode/view.css +1 -1
  8. package/build/lowcode/view.js +1 -1
  9. package/es/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  10. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  11. package/es/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  12. package/es/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  13. package/es/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  14. package/es/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  15. package/es/components/booking/addons/model.d.ts +10 -1
  16. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  17. package/es/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  18. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  19. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  20. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  21. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  22. package/es/components/booking/components/footer/index.js +12 -4
  23. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  24. package/es/components/booking/forms/footer.d.ts +1 -0
  25. package/es/components/booking/forms/model.d.ts +10 -1
  26. package/es/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
  27. package/es/components/booking/forms/single/index.d.ts +1 -0
  28. package/es/components/booking/forms/table/index.d.ts +1 -0
  29. package/es/components/booking/hooks/useClearCart.d.ts +1 -0
  30. package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  31. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  32. package/es/components/booking/info/date/index.d.ts +1 -0
  33. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  34. package/es/components/booking/info/model.d.ts +10 -1
  35. package/es/components/booking/info/service/actions/index.d.ts +1 -0
  36. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  37. package/es/components/booking/info/service/like/index.d.ts +1 -0
  38. package/es/components/booking/info/service2/utils.d.ts +1 -1
  39. package/es/components/booking/info2/service/actions/index.d.ts +1 -0
  40. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  41. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  42. package/es/components/booking/materiels/duration/index.d.ts +1 -0
  43. package/es/components/booking/materiels/holder/index.d.ts +1 -0
  44. package/es/components/booking/materiels/startTime/index.d.ts +1 -0
  45. package/es/components/booking/model.d.ts +9 -1
  46. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  47. package/es/components/booking/notes/model.d.ts +10 -1
  48. package/es/components/booking/payments/model.d.ts +10 -1
  49. package/es/components/checkout/PaymentModal.js +66 -36
  50. package/es/components/checkout/components/AmountSummary/index.js +3 -1
  51. package/es/components/checkout/components/PaymentDetailModal/index.js +77 -19
  52. package/es/components/checkout/components/PaymentDetailModal/index.less +23 -2
  53. package/es/components/checkout/hooks/useWalletPass.js +1 -0
  54. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  55. package/es/components/eftpos/form/index.d.ts +1 -0
  56. package/es/components/eftpos/group/index.d.ts +1 -0
  57. package/es/components/eftpos/hooks.d.ts +1 -0
  58. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  59. package/es/components/eftpos/icon/device.d.ts +1 -0
  60. package/es/components/eftpos/index.d.ts +1 -0
  61. package/es/components/eftpos/pos.d.ts +1 -0
  62. package/es/components/eftpos/receipt/index.d.ts +1 -0
  63. package/es/components/eftposPay/amount.d.ts +2 -1
  64. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  65. package/es/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  66. package/es/components/eftposPay/component/fail/index.d.ts +1 -0
  67. package/es/components/eftposPay/component/fail/network.d.ts +1 -0
  68. package/es/components/eftposPay/component/fail/unknow.d.ts +1 -0
  69. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  70. package/es/components/eftposPay/component/manual/index.d.ts +1 -0
  71. package/es/components/eftposPay/component/signature/index.d.ts +1 -0
  72. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  73. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  74. package/es/components/eftposPay/device.d.ts +1 -1
  75. package/es/components/eftposPay/hooks.d.ts +1 -1
  76. package/es/components/eftposPay/pay.d.ts +1 -0
  77. package/es/components/eftposPay/payo/config.d.ts +1 -0
  78. package/es/components/eftposPay/store/index.d.ts +4 -4
  79. package/es/components/eftposPay/tip.d.ts +1 -0
  80. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  81. package/es/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  82. package/es/components/eftposPay/windcave/windcave.d.ts +1 -0
  83. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  84. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  85. package/es/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  86. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  87. package/es/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  88. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  89. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  90. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  91. package/es/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  92. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  93. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  94. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  95. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  96. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  97. package/es/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  98. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  99. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  100. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  101. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  102. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  103. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  104. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  105. package/es/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  106. package/es/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  107. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  108. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  109. package/es/components/login/index.d.ts +1 -0
  110. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  111. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  112. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  113. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  114. package/es/components/pay/toC/model.d.ts +9 -1
  115. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  116. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  117. package/es/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  118. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  119. package/es/components/productExtension/fields/Actor/index.d.ts +1 -0
  120. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  121. package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  122. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  123. package/es/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  124. package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  125. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  126. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  127. package/es/components/schedules/calendar/index.d.ts +1 -0
  128. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  129. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  130. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  131. package/es/components/schedules/model.d.ts +9 -1
  132. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  133. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  134. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  135. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  136. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  137. package/es/components/schedules/products/index.d.ts +1 -0
  138. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  139. package/es/components/schedules/products/list/index.d.ts +1 -0
  140. package/es/components/schedules/resources/index.d.ts +1 -0
  141. package/es/components/schedules/resources/list/index.d.ts +1 -0
  142. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  143. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  144. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  145. package/es/components/schedules/schedules/index.d.ts +1 -0
  146. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  147. package/es/components/shoppingCart/components/Render/index.d.ts +1 -0
  148. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  149. package/es/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  150. package/es/components/shoppingCart/index.d.ts +1 -0
  151. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +7 -0
  152. package/es/components/wallet/Detail/model.d.ts +13 -1
  153. package/es/components/wallet/DiscountCard/model.d.ts +14 -1
  154. package/es/components/wallet/PointCard/model.d.ts +13 -1
  155. package/es/components/wallet/RechargeableCard/model.d.ts +29 -1
  156. package/es/components/wallet/Voucher/model.d.ts +13 -1
  157. package/es/components/wallet/hooks/useWalletCard.d.ts +1 -0
  158. package/es/components/wallet/model.d.ts +9 -1
  159. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  160. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  161. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  162. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  163. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  164. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  165. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  166. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  167. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  168. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  169. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -0
  170. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  171. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  172. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  173. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  174. package/lib/components/booking/addons/model.d.ts +10 -1
  175. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  176. package/lib/components/booking/components/TabProduct/productItem/index.d.ts +1 -0
  177. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  178. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  179. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  180. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  181. package/lib/components/booking/components/footer/index.js +6 -1
  182. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  183. package/lib/components/booking/forms/footer.d.ts +1 -0
  184. package/lib/components/booking/forms/model.d.ts +10 -1
  185. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +2 -1
  186. package/lib/components/booking/forms/single/index.d.ts +1 -0
  187. package/lib/components/booking/forms/table/index.d.ts +1 -0
  188. package/lib/components/booking/hooks/useClearCart.d.ts +1 -0
  189. package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +1 -0
  190. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  191. package/lib/components/booking/info/date/index.d.ts +1 -0
  192. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  193. package/lib/components/booking/info/model.d.ts +10 -1
  194. package/lib/components/booking/info/service/actions/index.d.ts +1 -0
  195. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  196. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  197. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  198. package/lib/components/booking/info2/service/actions/index.d.ts +1 -0
  199. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  200. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  201. package/lib/components/booking/materiels/duration/index.d.ts +1 -0
  202. package/lib/components/booking/materiels/holder/index.d.ts +1 -0
  203. package/lib/components/booking/materiels/startTime/index.d.ts +1 -0
  204. package/lib/components/booking/model.d.ts +9 -1
  205. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  206. package/lib/components/booking/notes/model.d.ts +10 -1
  207. package/lib/components/booking/payments/model.d.ts +10 -1
  208. package/lib/components/checkout/PaymentModal.js +28 -6
  209. package/lib/components/checkout/components/AmountSummary/index.js +1 -1
  210. package/lib/components/checkout/components/PaymentDetailModal/index.js +50 -12
  211. package/lib/components/checkout/components/PaymentDetailModal/index.less +23 -2
  212. package/lib/components/checkout/hooks/useWalletPass.js +1 -0
  213. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  214. package/lib/components/eftpos/form/index.d.ts +1 -0
  215. package/lib/components/eftpos/group/index.d.ts +1 -0
  216. package/lib/components/eftpos/hooks.d.ts +1 -0
  217. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  218. package/lib/components/eftpos/icon/device.d.ts +1 -0
  219. package/lib/components/eftpos/index.d.ts +1 -0
  220. package/lib/components/eftpos/pos.d.ts +1 -0
  221. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  222. package/lib/components/eftposPay/amount.d.ts +2 -1
  223. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  224. package/lib/components/eftposPay/component/fail/failCustom.d.ts +1 -0
  225. package/lib/components/eftposPay/component/fail/index.d.ts +1 -0
  226. package/lib/components/eftposPay/component/fail/network.d.ts +1 -0
  227. package/lib/components/eftposPay/component/fail/unknow.d.ts +1 -0
  228. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  229. package/lib/components/eftposPay/component/manual/index.d.ts +1 -0
  230. package/lib/components/eftposPay/component/signature/index.d.ts +1 -0
  231. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  232. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  233. package/lib/components/eftposPay/device.d.ts +1 -1
  234. package/lib/components/eftposPay/hooks.d.ts +1 -1
  235. package/lib/components/eftposPay/pay.d.ts +1 -0
  236. package/lib/components/eftposPay/payo/config.d.ts +1 -0
  237. package/lib/components/eftposPay/store/index.d.ts +4 -4
  238. package/lib/components/eftposPay/tip.d.ts +1 -0
  239. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  240. package/lib/components/eftposPay/windcave/receiptAction.d.ts +1 -0
  241. package/lib/components/eftposPay/windcave/windcave.d.ts +1 -0
  242. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  243. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  244. package/lib/components/eventBooking/components/Provider/Cart/Item/index.d.ts +1 -0
  245. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  246. package/lib/components/eventBooking/components/Provider/Content/index.d.ts +1 -0
  247. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  248. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  249. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  250. package/lib/components/eventBooking/components/Provider/Header/index.d.ts +1 -0
  251. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  252. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  253. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  254. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  255. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  256. package/lib/components/eventBooking/components/Provider/SelectHolderModal.d.ts +1 -0
  257. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  258. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  259. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  260. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  261. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  262. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  263. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  264. package/lib/components/eventBooking/components/bookingDetailModal/components/Resource.d.ts +1 -0
  265. package/lib/components/eventBooking/components/bookingDetailModal/components/Schedule.d.ts +1 -0
  266. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  267. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  268. package/lib/components/login/index.d.ts +1 -0
  269. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  270. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  271. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +1 -0
  272. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  273. package/lib/components/pay/toC/model.d.ts +9 -1
  274. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  275. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  276. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/index.d.ts +1 -0
  277. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  278. package/lib/components/productExtension/fields/Actor/index.d.ts +1 -0
  279. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  280. package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +1 -0
  281. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  282. package/lib/components/productExtension/fields/SelectProducts/index.d.ts +1 -0
  283. package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +1 -0
  284. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  285. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  286. package/lib/components/schedules/calendar/index.d.ts +1 -0
  287. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  288. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  289. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  290. package/lib/components/schedules/model.d.ts +9 -1
  291. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  292. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  293. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  294. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  295. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  296. package/lib/components/schedules/products/index.d.ts +1 -0
  297. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  298. package/lib/components/schedules/products/list/index.d.ts +1 -0
  299. package/lib/components/schedules/resources/index.d.ts +1 -0
  300. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  301. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  302. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  303. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  304. package/lib/components/schedules/schedules/index.d.ts +1 -0
  305. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  306. package/lib/components/shoppingCart/components/Render/index.d.ts +1 -0
  307. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  308. package/lib/components/shoppingCart/hooks/useClearCart.d.ts +1 -0
  309. package/lib/components/shoppingCart/index.d.ts +1 -0
  310. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +7 -0
  311. package/lib/components/wallet/Detail/model.d.ts +13 -1
  312. package/lib/components/wallet/DiscountCard/model.d.ts +14 -1
  313. package/lib/components/wallet/PointCard/model.d.ts +13 -1
  314. package/lib/components/wallet/RechargeableCard/model.d.ts +29 -1
  315. package/lib/components/wallet/Voucher/model.d.ts +13 -1
  316. package/lib/components/wallet/hooks/useWalletCard.d.ts +1 -0
  317. package/lib/components/wallet/model.d.ts +9 -1
  318. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  319. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  320. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  321. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  322. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  323. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  324. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  325. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  326. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  327. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Total: ({ className, isFooter }: any) => JSX.Element;
3
4
  export default Total;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const CartItem: ({ onNext }: any) => JSX.Element;
3
4
  export default CartItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Cart: ({ open, onCancel, onNext }: any) => JSX.Element;
3
4
  export default Cart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const DepositContent: (props: {
3
4
  isAgreeDepositPolicy: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Footer: ({ onNext, isOpen }: any) => JSX.Element;
3
4
  export default Footer;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const GuestOptionsModal: (props: any) => JSX.Element;
3
4
  export default GuestOptionsModal;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  interface TabProductProps {
3
4
  list: any[];
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ProductItem: ({ item, onClick, amountSymbol, style, className, }: any) => JSX.Element;
3
4
  export default ProductItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const SelectProductItem: ({ item, onClick, onChangeQuantity, amountSymbol, style, className, disabled, }: any) => JSX.Element;
3
4
  export default SelectProductItem;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const renderBundles: (item: any, amountSymbol: string) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * @title: 空状态
3
4
  * @description:
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const FooterMenus: ({ state, menuChange, items }: any) => JSX.Element | null;
3
4
  export default FooterMenus;
@@ -44,7 +44,7 @@ import dayjs from 'dayjs';
44
44
  import useScanManager from "../../../ticketBooking/hooks/pisellos/useScanManager";
45
45
  import { Iconfont } from '@pisell/materials';
46
46
  import { useCustomer } from "../../../ticketBooking/hooks/pisellos/useCustomer";
47
- import { useDebounceEffect, useMemoizedFn } from 'ahooks';
47
+ import { useDebounceEffect, useDebounceFn, useMemoizedFn } from 'ahooks';
48
48
  import { cloneDeep } from 'lodash';
49
49
  import { useShopDiscount } from "../../../appointmentBooking/hooks";
50
50
 
@@ -608,13 +608,13 @@ var Footer = function Footer(props) {
608
608
  }, [JSON.stringify(total), JSON.stringify(orderTotalList), JSON.stringify(subTotalList), (_state$client2 = state.client) === null || _state$client2 === void 0 || (_state$client2 = _state$client2.value) === null || _state$client2 === void 0 ? void 0 : _state$client2.id]);
609
609
 
610
610
  /**
611
- * @title: 处理checkout
611
+ * @title: 处理checkout内部函数
612
612
  * @description:
613
613
  * @return {*}
614
614
  * @Author: zhiwei.Wang
615
615
  * @Date: 2024-01-30 16:53
616
616
  */
617
- var handleCheckout = /*#__PURE__*/function () {
617
+ var handleCheckoutInternal = /*#__PURE__*/function () {
618
618
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
619
619
  var isNewOrder, isHasDayProducts, res, modalData, _res;
620
620
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
@@ -720,11 +720,19 @@ var Footer = function Footer(props) {
720
720
  }
721
721
  }, _callee4);
722
722
  }));
723
- return function handleCheckout() {
723
+ return function handleCheckoutInternal() {
724
724
  return _ref4.apply(this, arguments);
725
725
  };
726
726
  }();
727
727
 
728
+ // 使用防抖,500毫秒内不重复执行
729
+ var _useDebounceFn = useDebounceFn(handleCheckoutInternal, {
730
+ wait: 500,
731
+ leading: true,
732
+ trailing: false
733
+ }),
734
+ handleCheckout = _useDebounceFn.run;
735
+
728
736
  /**
729
737
  * @title: 保存额外商品
730
738
  * @description:
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const FormItemChildrenWrap: (props: any) => JSX.Element;
2
3
  export default FormItemChildrenWrap;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface FooterProps {
2
3
  state: any;
3
4
  reload: () => void;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1,9 +1,10 @@
1
+ /// <reference types="react" />
1
2
  import { SendModalValues } from './index';
2
3
  declare const useSendModal: (bookingId?: number) => {
3
4
  open: boolean;
4
5
  setOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
6
  handleOpen: () => void;
6
7
  handleValuesChange: (val: any) => void;
7
- handleOk: (values: SendModalValues) => Promise<any>;
8
+ handleOk: (values: SendModalValues) => Promise<boolean | undefined>;
8
9
  };
9
10
  export default useSendModal;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  /**
3
4
  * @title: 表单选择器
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Table: ({ value, onChange, field, mode, onAdd }: any) => JSX.Element;
3
4
  export default Table;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useClearCart: (state: any, dispatch: any) => false | JSX.Element;
2
3
  export default useClearCart;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { FormState } from '../../../model';
2
3
  interface useClientFnParams {
3
4
  state: any;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const useIsLowSpeedNetwork: () => import("react").MutableRefObject<boolean>;
2
3
  export default useIsLowSpeedNetwork;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export declare const updateServiceDate: (services: any[], date: any, isTime: boolean) => any[];
3
4
  declare const DateCom: () => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  export declare const disabledDate: (current: any, position: any, currentDate: any) => any;
3
4
  declare const DateRange: ({ state, dispatch, key }: any) => JSX.Element;
@@ -1,5 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FormState } from '../model';
1
3
  export declare const walkInData: {
2
4
  id: number;
3
5
  nickname: string;
4
6
  };
5
- export declare const Provider: any, Context: any;
7
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
8
+ state: FormState;
9
+ } & {
10
+ dispatch: (params: {
11
+ type: string;
12
+ payload: any;
13
+ }) => void;
14
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Actions: ({ currentService }: {
3
4
  currentService: any;
@@ -6,7 +6,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
6
6
  type: string;
7
7
  value: number;
8
8
  };
9
- locale: any;
9
+ locale: string;
10
10
  slice: any;
11
11
  selectProps: {
12
12
  size: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare const Like: ({ status, onChange, className, style, }: {
3
4
  style?: any;
@@ -248,4 +248,4 @@ export declare const updateAppointmentServicePrice: (state: any, { start_date, e
248
248
  * @Author: WangHan
249
249
  * @Date: 2024-12-24 11:32
250
250
  */
251
- export declare const updateServicePrice: (state: any) => Promise<any> | never[];
251
+ export declare const updateServicePrice: (state: any) => never[] | Promise<any>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import '../../../info/service/actions/index.less';
2
3
  declare const Actions: ({ currentService }: {
3
4
  currentService: any;
@@ -7,7 +7,7 @@ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResour
7
7
  type: string;
8
8
  value: number;
9
9
  };
10
- locale: any;
10
+ locale: string;
11
11
  slice: any;
12
12
  selectProps: {
13
13
  size: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  declare type ContactType = {
3
4
  country_calling_code: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface DurationProps extends SelectProps {
3
4
  locale?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from 'antd';
2
3
  interface HolderProps extends SelectProps {
3
4
  selectProps?: SelectProps;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SelectProps } from "antd";
2
3
  interface StartTimeProps extends SelectProps {
3
4
  locale?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface FormState {
2
3
  amountSymbol: string;
3
4
  apis: {
@@ -105,4 +106,11 @@ export declare const walkInData: {
105
106
  id: number;
106
107
  nickname: string;
107
108
  };
108
- export declare const Provider: any, Context: any;
109
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
110
+ state: FormState;
111
+ } & {
112
+ dispatch: (params: {
113
+ type: string;
114
+ payload: any;
115
+ }) => void;
116
+ }>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export interface InfoProps {
3
4
  isEdit: boolean;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -1 +1,10 @@
1
- export declare const Provider: any, Context: any;
1
+ /// <reference types="react" />
2
+ import { FormState } from "../model";
3
+ export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
4
+ state: FormState;
5
+ } & {
6
+ dispatch: (params: {
7
+ type: string;
8
+ payload: any;
9
+ }) => void;
10
+ }>;
@@ -757,19 +757,23 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
757
757
  return showSuccessToast === null || showSuccessToast === void 0 ? void 0 : showSuccessToast(result);
758
758
  case 12:
759
759
  if (!result.success) {
760
- _context8.next = 22;
760
+ _context8.next = 23;
761
761
  break;
762
762
  }
763
+ // 触发 voucher 的更新
764
+ checkoutModule.core.effects.emit('checkout:onPaymentStarted', {
765
+ paymentMethodCode: ''
766
+ });
763
767
  // 检查订单此时是不是定金支付订单
764
768
  _orderInfo = checkoutModule.getCurrentOrderInfo();
765
769
  setCurrentEditOrderId === null || setCurrentEditOrderId === void 0 || setCurrentEditOrderId(result.orderId);
766
770
  if (!(result.is_deposit && Number(_orderInfo.depositAmount) < Number(_orderInfo.totalAmount))) {
767
- _context8.next = 18;
771
+ _context8.next = 19;
768
772
  break;
769
773
  }
770
774
  updateOrderInfo === null || updateOrderInfo === void 0 || updateOrderInfo(_orderInfo);
771
775
  return _context8.abrupt("return");
772
- case 18:
776
+ case 19:
773
777
  responseData = (_result$response = result.response) === null || _result$response === void 0 ? void 0 : _result$response.data; // 打印订单完整信息
774
778
  console.log('print_order_onOrderSynced>>>>', result);
775
779
  try {
@@ -792,7 +796,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
792
796
  }
793
797
  // 支付成功时关闭 PaymentModal
794
798
  onPaymentCancel(true);
795
- case 22:
799
+ case 23:
796
800
  case "end":
797
801
  return _context8.stop();
798
802
  }
@@ -1364,7 +1368,8 @@ var PaymentModal = function PaymentModal(_ref18) {
1364
1368
  var _ref19 = (context === null || context === void 0 || (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
1365
1369
  pisellos = _ref19.pisellos,
1366
1370
  getData = _ref19.getData,
1367
- interaction = _ref19.interaction;
1371
+ interaction = _ref19.interaction,
1372
+ isWebPos = _ref19.isWebPos;
1368
1373
  var _useState23 = useState(null),
1369
1374
  _useState24 = _slicedToArray(_useState23, 2),
1370
1375
  orderInfo = _useState24[0],
@@ -1995,7 +2000,7 @@ var PaymentModal = function PaymentModal(_ref18) {
1995
2000
  // 获取 checkout 模块并处理订单数据
1996
2001
  checkout = pisellos === null || pisellos === void 0 ? void 0 : pisellos.getModule('checkout');
1997
2002
  if (!(checkout && data && !isLocalOrderCreated.current)) {
1998
- _context23.next = 24;
2003
+ _context23.next = 25;
1999
2004
  break;
2000
2005
  }
2001
2006
  isLocalOrderCreated.current = true;
@@ -2030,17 +2035,24 @@ var PaymentModal = function PaymentModal(_ref18) {
2030
2035
  totalInfo: newData.subtotal_info
2031
2036
  });
2032
2037
  case 12:
2033
- _context23.next = 16;
2038
+ _context23.next = 17;
2034
2039
  break;
2035
2040
  case 14:
2036
- _context23.next = 16;
2041
+ logger === null || logger === void 0 || logger.addLog({
2042
+ type: 'info',
2043
+ title: '正常创建 createLocalOrderAsync',
2044
+ metadata: {
2045
+ data: data
2046
+ }
2047
+ });
2048
+ _context23.next = 17;
2037
2049
  return checkout.createLocalOrderAsync({
2038
2050
  orderData: newData.order_info,
2039
2051
  cartSummary: (_newData$subtotal_inf2 = newData.subtotal_info) === null || _newData$subtotal_inf2 === void 0 ? void 0 : _newData$subtotal_inf2.subTotalList,
2040
2052
  autoPayment: true,
2041
2053
  totalInfo: newData.subtotal_info
2042
2054
  });
2043
- case 16:
2055
+ case 17:
2044
2056
  // 获取订单总金额
2045
2057
  _orderInfo2 = checkout.getCurrentOrderInfo();
2046
2058
  console.log(_orderInfo2);
@@ -2061,7 +2073,7 @@ var PaymentModal = function PaymentModal(_ref18) {
2061
2073
  unsubscribeRef.current = checkout.core.effects.on('checkout:onOrderSynced', /*#__PURE__*/function () {
2062
2074
  var _ref29 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee22(data) {
2063
2075
  var _data$response, _responseData$payment2;
2064
- var currentOrderId, responseData, paymentStatus, orderTotalAmount, gapAmount, currentChangeGivenAmount, failureReason, _interaction$utils6, _interaction$utils6$a, _responseData$payment3, params, statusClassName, autoCloseConfig, enabledAutoPrint, _orderInfo3, paymentResult;
2076
+ var currentOrderId, responseData, paymentStatus, orderTotalAmount, gapAmount, currentChangeGivenAmount, failureReason, _responseData$payment3, params, statusClassName, autoCloseConfig, enabledAutoPrint, _interaction$utils6, _interaction$utils6$a, _orderInfo3, paymentResult;
2065
2077
  return _regeneratorRuntime().wrap(function _callee22$(_context22) {
2066
2078
  while (1) switch (_context22.prev = _context22.next) {
2067
2079
  case 0:
@@ -2092,7 +2104,7 @@ var PaymentModal = function PaymentModal(_ref18) {
2092
2104
  // 获取失败原因
2093
2105
  failureReason = responseData === null || responseData === void 0 ? void 0 : responseData.failure_reason; // 根据支付状态弹出对应的支付结果toast
2094
2106
  if (!paymentStatus) {
2095
- _context22.next = 30;
2107
+ _context22.next = 35;
2096
2108
  break;
2097
2109
  }
2098
2110
  // 打印订单完整信息
@@ -2147,15 +2159,26 @@ var PaymentModal = function PaymentModal(_ref18) {
2147
2159
  // 确定支付状态
2148
2160
  statusClassName = calculateStatusClassName(paymentStatus);
2149
2161
  autoCloseConfig = calculateAutoCloseConfig(paymentStatus, !!currentChangeGivenAmount);
2150
- _context22.next = 21;
2162
+ enabledAutoPrint = false;
2163
+ if (!isWebPos) {
2164
+ _context22.next = 24;
2165
+ break;
2166
+ }
2167
+ // web pos 没有自动打印配置
2168
+ enabledAutoPrint = false;
2169
+ _context22.next = 27;
2170
+ break;
2171
+ case 24:
2172
+ _context22.next = 26;
2151
2173
  return interaction === null || interaction === void 0 || (_interaction$utils6 = interaction.utils) === null || _interaction$utils6 === void 0 || (_interaction$utils6$a = _interaction$utils6.asyncDataManager) === null || _interaction$utils6$a === void 0 ? void 0 : _interaction$utils6$a.call(_interaction$utils6, {
2152
2174
  module: 'get',
2153
2175
  key: 'auto_print_receipt'
2154
2176
  });
2155
- case 21:
2177
+ case 26:
2156
2178
  enabledAutoPrint = _context22.sent;
2179
+ case 27:
2157
2180
  _orderInfo3 = checkout.getCurrentOrderInfo(); // 根据支付状态展示不同的 toast
2158
- _context22.next = 25;
2181
+ _context22.next = 30;
2159
2182
  return displayPaymentResultToast({
2160
2183
  paymentStatus: paymentStatus,
2161
2184
  orderTotalAmount: _orderInfo3.isDeposit ? _orderInfo3.depositAmount : orderTotalAmount,
@@ -2164,7 +2187,7 @@ var PaymentModal = function PaymentModal(_ref18) {
2164
2187
  autoCloseConfig: autoCloseConfig,
2165
2188
  actionButtons: generateActionButtons(paymentStatus, enabledAutoPrint)
2166
2189
  }, paymentResultToastConfig);
2167
- case 25:
2190
+ case 30:
2168
2191
  // 当支付状态为 paid 时,关闭 paymentModal
2169
2192
  if (paymentStatus === 'paid') {
2170
2193
  handleModalClose();
@@ -2180,11 +2203,11 @@ var PaymentModal = function PaymentModal(_ref18) {
2180
2203
  }
2181
2204
  });
2182
2205
  handlePaymentComplete(paymentResult);
2183
- _context22.next = 31;
2206
+ _context22.next = 36;
2184
2207
  break;
2185
- case 30:
2208
+ case 35:
2186
2209
  handlePaymentComplete(data);
2187
- case 31:
2210
+ case 36:
2188
2211
  case "end":
2189
2212
  return _context22.stop();
2190
2213
  }
@@ -2194,24 +2217,24 @@ var PaymentModal = function PaymentModal(_ref18) {
2194
2217
  return _ref29.apply(this, arguments);
2195
2218
  };
2196
2219
  }());
2197
- _context23.next = 40;
2220
+ _context23.next = 42;
2198
2221
  break;
2199
- case 24:
2222
+ case 25:
2200
2223
  if (!isLocalOrderCreated.current) {
2201
- _context23.next = 40;
2224
+ _context23.next = 42;
2202
2225
  break;
2203
2226
  }
2204
2227
  // // 如果本地订单已创建,这时候还更新了 data,则需要销毁当前的订单数据,然后更新新的订单数据了
2205
2228
  console.log('🔄 PaymentModal: data changed, updating checkout data...');
2206
2229
  isLocalOrderCreated.current = false;
2207
- _context23.next = 29;
2230
+ _context23.next = 30;
2208
2231
  return checkout.cancelCurrentOrderAsync();
2209
- case 29:
2232
+ case 30:
2210
2233
  if (!(editOrderId || currentEditOrderId)) {
2211
- _context23.next = 34;
2234
+ _context23.next = 35;
2212
2235
  break;
2213
2236
  }
2214
- _context23.next = 32;
2237
+ _context23.next = 33;
2215
2238
  return checkout.updateLocalOrderAsync({
2216
2239
  orderId: editOrderId || currentEditOrderId,
2217
2240
  orderData: data === null || data === void 0 ? void 0 : data.order_info,
@@ -2219,18 +2242,25 @@ var PaymentModal = function PaymentModal(_ref18) {
2219
2242
  autoPayment: true,
2220
2243
  totalInfo: data === null || data === void 0 ? void 0 : data.subtotal_info
2221
2244
  });
2222
- case 32:
2223
- _context23.next = 36;
2245
+ case 33:
2246
+ _context23.next = 38;
2224
2247
  break;
2225
- case 34:
2226
- _context23.next = 36;
2248
+ case 35:
2249
+ logger === null || logger === void 0 || logger.addLog({
2250
+ type: 'info',
2251
+ title: '含有 localOrderCreate, 调用 createLocalOrderAsync',
2252
+ metadata: {
2253
+ data: data
2254
+ }
2255
+ });
2256
+ _context23.next = 38;
2227
2257
  return checkout.createLocalOrderAsync({
2228
2258
  orderData: data === null || data === void 0 ? void 0 : data.order_info,
2229
2259
  cartSummary: data === null || data === void 0 || (_data$subtotal_info2 = data.subtotal_info) === null || _data$subtotal_info2 === void 0 ? void 0 : _data$subtotal_info2.subTotalList,
2230
2260
  autoPayment: true,
2231
2261
  totalInfo: data === null || data === void 0 ? void 0 : data.subtotal_info
2232
2262
  });
2233
- case 36:
2263
+ case 38:
2234
2264
  // 获取订单总金额
2235
2265
  _orderInfo4 = checkout.getCurrentOrderInfo();
2236
2266
  if (_orderInfo4 && _orderInfo4.totalAmount) {
@@ -2238,11 +2268,11 @@ var PaymentModal = function PaymentModal(_ref18) {
2238
2268
  }
2239
2269
  setOrderInfo(_orderInfo4);
2240
2270
  isLocalOrderCreated.current = true;
2241
- case 40:
2242
- _context23.next = 46;
2243
- break;
2244
2271
  case 42:
2245
- _context23.prev = 42;
2272
+ _context23.next = 48;
2273
+ break;
2274
+ case 44:
2275
+ _context23.prev = 44;
2246
2276
  _context23.t0 = _context23["catch"](0);
2247
2277
  console.error('Failed to initialize checkout data:', _context23.t0);
2248
2278
  logger === null || logger === void 0 || logger.addLog({
@@ -2252,11 +2282,11 @@ var PaymentModal = function PaymentModal(_ref18) {
2252
2282
  error: _context23.t0
2253
2283
  }
2254
2284
  });
2255
- case 46:
2285
+ case 48:
2256
2286
  case "end":
2257
2287
  return _context23.stop();
2258
2288
  }
2259
- }, _callee23, null, [[0, 42]]);
2289
+ }, _callee23, null, [[0, 44]]);
2260
2290
  }));
2261
2291
  return function initCheckoutData() {
2262
2292
  return _ref28.apply(this, arguments);
@@ -501,7 +501,9 @@ function AmountSummary(_ref2) {
501
501
 
502
502
  // 需要减去已经同步给后端过的 voucher
503
503
  var syncedVoucherAmount = paymentItems === null || paymentItems === void 0 ? void 0 : paymentItems.reduce(function (acc, item) {
504
- if (item.voucher_id && item.isSynced) {
504
+ // 如果当前是普通支付,则减去order_payment_type不为 deposit的支付项
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')) {
505
507
  return acc.plus(item.amount).plus(item.rounding_amount);
506
508
  }
507
509
  return acc;