@pisell/private-materials 3.4.93 → 3.4.95

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 (353) 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 +1 -1
  6. package/build/lowcode/preview.js +145 -426
  7. package/build/lowcode/render/default/view.js +10 -10
  8. package/build/lowcode/view.js +10 -10
  9. package/es/businessModel/SalesModel/index.d.ts +0 -1
  10. package/es/components/appointmentBooking/components/Cart/Item/Total.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/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
  16. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +4 -1
  17. package/es/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  18. package/es/components/booking/components/collapsibleList/utils.d.ts +1 -0
  19. package/es/components/booking/components/emptyBooking/index.d.ts +1 -0
  20. package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  21. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  22. package/es/components/booking/deposit/index.d.ts +0 -1
  23. package/es/components/booking/forms/footer.d.ts +1 -0
  24. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  25. package/es/components/booking/forms/table/index.d.ts +1 -0
  26. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -1
  27. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  28. package/es/components/booking/info/date/index.d.ts +0 -1
  29. package/es/components/booking/info/dateRange/index.d.ts +1 -0
  30. package/es/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  31. package/es/components/booking/info/index.d.ts +0 -1
  32. package/es/components/booking/info/service/Lists.d.ts +0 -1
  33. package/es/components/booking/info/service/addService/index.d.ts +0 -1
  34. package/es/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  35. package/es/components/booking/info/service/like/index.d.ts +1 -0
  36. package/es/components/booking/info/service/serviceList/index.d.ts +0 -1
  37. package/es/components/booking/info/service2/Lists.d.ts +0 -1
  38. package/es/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  39. package/es/components/booking/info2/service/serviceList/index.d.ts +0 -1
  40. package/es/components/booking/materiels/contacts/index.d.ts +1 -0
  41. package/es/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  42. package/es/components/booking/notes/NoteBlock/index.d.ts +1 -0
  43. package/es/components/booking/utils.d.ts +2 -2
  44. package/es/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
  45. package/es/components/ecocup/components/CupActionList/index.d.ts +1 -0
  46. package/es/components/ecocup/components/CupActionModal/index.d.ts +1 -0
  47. package/es/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
  48. package/es/components/ecocup/components/CupStatusModal/index.d.ts +1 -0
  49. package/es/components/ecocup/components/CustomerAndCupModal/index.d.ts +1 -0
  50. package/es/components/ecocup/components/CustomerCard/index.d.ts +1 -0
  51. package/es/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
  52. package/es/components/ecocup/components/SearchBar/index.d.ts +1 -0
  53. package/es/components/ecocup/components/SettingModal/index.d.ts +1 -0
  54. package/es/components/ecocup/cupList/hooks/useColumns.d.ts +1 -0
  55. package/es/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
  56. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  57. package/es/components/eftpos/form/index.d.ts +1 -0
  58. package/es/components/eftpos/group/index.d.ts +1 -0
  59. package/es/components/eftpos/hooks.d.ts +1 -0
  60. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  61. package/es/components/eftpos/icon/device.d.ts +1 -0
  62. package/es/components/eftpos/index.d.ts +1 -0
  63. package/es/components/eftpos/pos.d.ts +1 -0
  64. package/es/components/eftpos/receipt/index.d.ts +1 -0
  65. package/es/components/eftposPay/amount.d.ts +1 -2
  66. package/es/components/eftposPay/app.d.ts +0 -1
  67. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  68. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  69. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  70. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  71. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  72. package/es/components/eftposPay/device.d.ts +1 -2
  73. package/es/components/eftposPay/hooks.d.ts +1 -1
  74. package/es/components/eftposPay/index.d.ts +0 -1
  75. package/es/components/eftposPay/linkly/index.d.ts +0 -1
  76. package/es/components/eftposPay/pay.d.ts +0 -1
  77. package/es/components/eftposPay/store/index.d.ts +1 -1
  78. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  79. package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  80. package/es/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  81. package/es/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  82. package/es/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  83. package/es/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  84. package/es/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  85. package/es/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  86. package/es/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  87. package/es/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  88. package/es/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  89. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  90. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  91. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  92. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  93. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  94. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  95. package/es/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  96. package/es/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  97. package/es/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  98. package/es/components/eventBooking/index.d.ts +0 -1
  99. package/es/components/login/index.d.ts +1 -0
  100. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +52 -44
  101. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +51 -43
  102. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +51 -43
  103. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +24 -15
  104. package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.js +19 -19
  105. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +3 -1
  106. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +32 -27
  107. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  108. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  109. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +17 -16
  110. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +47 -42
  111. package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +2 -2
  112. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +7 -0
  113. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +18 -1
  114. package/es/components/pay/toC/PaymentMethods/index.js +116 -90
  115. package/es/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  116. package/es/components/pay/toC/index.js +4 -1
  117. package/es/components/pay/toC/locales.d.ts +5 -0
  118. package/es/components/pay/toC/locales.js +5 -0
  119. package/es/components/pay/toC/payGroup.d.ts +14 -3
  120. package/es/components/pay/toC/payGroup.js +174 -15
  121. package/es/components/pay/toC/serve.d.ts +13 -0
  122. package/es/components/pay/toC/serve.js +30 -0
  123. package/es/components/pay/toC/utils.d.ts +3 -0
  124. package/es/components/pay/toC/utils.js +5 -1
  125. package/es/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  126. package/es/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  127. package/es/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  128. package/es/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  129. package/es/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  130. package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  131. package/es/components/productExtension/index.d.ts +0 -1
  132. package/es/components/ruleSetting/index.d.ts +0 -1
  133. package/es/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  134. package/es/components/schedules/calendar/calendarItem.d.ts +1 -0
  135. package/es/components/schedules/calendar/index.d.ts +1 -0
  136. package/es/components/schedules/components/CurrentDay/index.d.ts +1 -0
  137. package/es/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  138. package/es/components/schedules/components/ScheduleList/index.d.ts +1 -0
  139. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  140. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  141. package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  142. package/es/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  143. package/es/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  144. package/es/components/schedules/products/index.d.ts +1 -0
  145. package/es/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  146. package/es/components/schedules/products/list/index.d.ts +1 -0
  147. package/es/components/schedules/resources/index.d.ts +1 -0
  148. package/es/components/schedules/resources/list/index.d.ts +1 -0
  149. package/es/components/schedules/resources/relationProduct/index.d.ts +1 -0
  150. package/es/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  151. package/es/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  152. package/es/components/schedules/schedules/index.d.ts +1 -0
  153. package/es/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  154. package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  155. package/es/components/workSpaceList/components/Modal/index.d.ts +1 -0
  156. package/es/hooks/usePaymentLogger.d.ts +1 -0
  157. package/es/plus/clientName/index.d.ts +1 -0
  158. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  159. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  160. package/es/plus/orderList/components/HandleActions.d.ts +1 -0
  161. package/es/plus/orderList/components/QuickFilter.d.ts +1 -0
  162. package/es/plus/orderList/components/Reset.d.ts +1 -0
  163. package/es/plus/orderList/components/Toolbar.d.ts +1 -0
  164. package/es/plus/saasAttendance/settings/components/membersField/index.d.ts +1 -0
  165. package/es/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  166. package/es/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  167. package/es/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  168. package/es/plus/saasRegister/components/GoLogin.d.ts +1 -0
  169. package/es/plus/saasRegister/components/Header.d.ts +1 -0
  170. package/es/plus/saasRegister/components/VerifyError.d.ts +1 -0
  171. package/es/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  172. package/es/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  173. package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  174. package/es/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
  175. package/es/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
  176. package/es/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  177. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  178. package/es/pro/Selector/demo.d.ts +1 -0
  179. package/es/pro/pisellPaymentList/example.d.ts +1 -0
  180. package/es/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  181. package/lib/businessModel/SalesModel/index.d.ts +0 -1
  182. package/lib/components/appointmentBooking/components/Cart/Item/Total.d.ts +1 -0
  183. package/lib/components/appointmentBooking/components/Cart/index.d.ts +1 -0
  184. package/lib/components/appointmentBooking/components/Deposit/index.d.ts +1 -0
  185. package/lib/components/appointmentBooking/components/Footer/index.d.ts +1 -0
  186. package/lib/components/appointmentBooking/components/Guest/components/InformationOptionsModal/index.d.ts +1 -0
  187. package/lib/components/appointmentBooking/components/TimeSlicing/components/SelectDateOS.d.ts +1 -0
  188. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +5 -1
  189. package/lib/components/booking/components/TabProduct/selectProductItem/index.d.ts +1 -0
  190. package/lib/components/booking/components/collapsibleList/utils.d.ts +1 -0
  191. package/lib/components/booking/components/emptyBooking/index.d.ts +1 -0
  192. package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -0
  193. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  194. package/lib/components/booking/deposit/index.d.ts +0 -1
  195. package/lib/components/booking/forms/footer.d.ts +1 -0
  196. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  197. package/lib/components/booking/forms/table/index.d.ts +1 -0
  198. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -1
  199. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  200. package/lib/components/booking/info/date/index.d.ts +0 -1
  201. package/lib/components/booking/info/dateRange/index.d.ts +1 -0
  202. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +0 -1
  203. package/lib/components/booking/info/index.d.ts +0 -1
  204. package/lib/components/booking/info/service/Lists.d.ts +0 -1
  205. package/lib/components/booking/info/service/addService/index.d.ts +0 -1
  206. package/lib/components/booking/info/service/addTimeModal/index.d.ts +0 -1
  207. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  208. package/lib/components/booking/info/service/serviceList/index.d.ts +0 -1
  209. package/lib/components/booking/info/service2/Lists.d.ts +0 -1
  210. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +0 -1
  211. package/lib/components/booking/info2/service/serviceList/index.d.ts +0 -1
  212. package/lib/components/booking/materiels/contacts/index.d.ts +1 -0
  213. package/lib/components/booking/notes/NoteBlock/NoteItem/index.d.ts +1 -0
  214. package/lib/components/booking/notes/NoteBlock/index.d.ts +1 -0
  215. package/lib/components/booking/utils.d.ts +2 -2
  216. package/lib/components/ecocup/components/AddCustomerModal/index.d.ts +1 -0
  217. package/lib/components/ecocup/components/CupActionList/index.d.ts +1 -0
  218. package/lib/components/ecocup/components/CupActionModal/index.d.ts +1 -0
  219. package/lib/components/ecocup/components/CupInfoCard/index.d.ts +1 -0
  220. package/lib/components/ecocup/components/CupStatusModal/index.d.ts +1 -0
  221. package/lib/components/ecocup/components/CustomerAndCupModal/index.d.ts +1 -0
  222. package/lib/components/ecocup/components/CustomerCard/index.d.ts +1 -0
  223. package/lib/components/ecocup/components/MoreDropdown/index.d.ts +1 -0
  224. package/lib/components/ecocup/components/SearchBar/index.d.ts +1 -0
  225. package/lib/components/ecocup/components/SettingModal/index.d.ts +1 -0
  226. package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +1 -0
  227. package/lib/components/ecocup/cupList/hooks/useSummary.d.ts +1 -0
  228. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  229. package/lib/components/eftpos/form/index.d.ts +1 -0
  230. package/lib/components/eftpos/group/index.d.ts +1 -0
  231. package/lib/components/eftpos/hooks.d.ts +1 -0
  232. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  233. package/lib/components/eftpos/icon/device.d.ts +1 -0
  234. package/lib/components/eftpos/index.d.ts +1 -0
  235. package/lib/components/eftpos/pos.d.ts +1 -0
  236. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  237. package/lib/components/eftposPay/amount.d.ts +1 -2
  238. package/lib/components/eftposPay/app.d.ts +0 -1
  239. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  240. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -1
  241. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  242. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  243. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  244. package/lib/components/eftposPay/device.d.ts +1 -2
  245. package/lib/components/eftposPay/hooks.d.ts +1 -1
  246. package/lib/components/eftposPay/index.d.ts +0 -1
  247. package/lib/components/eftposPay/linkly/index.d.ts +0 -1
  248. package/lib/components/eftposPay/pay.d.ts +0 -1
  249. package/lib/components/eftposPay/store/index.d.ts +1 -1
  250. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  251. package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
  252. package/lib/components/eventBooking/components/Provider/Cart/index.d.ts +1 -0
  253. package/lib/components/eventBooking/components/Provider/EmptyHolderModal/index.d.ts +1 -0
  254. package/lib/components/eventBooking/components/Provider/Event/index.d.ts +1 -0
  255. package/lib/components/eventBooking/components/Provider/Footer/index.d.ts +1 -0
  256. package/lib/components/eventBooking/components/Provider/Information/index.d.ts +1 -0
  257. package/lib/components/eventBooking/components/Provider/InformationOptionsModal/index.d.ts +1 -0
  258. package/lib/components/eventBooking/components/Provider/OrderProductModal/index.d.ts +1 -0
  259. package/lib/components/eventBooking/components/Provider/RemoveOptionConfirmModal.d.ts +1 -0
  260. package/lib/components/eventBooking/components/Provider/Resource/index.d.ts +1 -0
  261. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
  262. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
  263. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
  264. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  265. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  266. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
  267. package/lib/components/eventBooking/components/bookingDetailModal/components/BookingOptions.d.ts +1 -0
  268. package/lib/components/eventBooking/components/scheduleCalendar/ProductItem/index.d.ts +1 -0
  269. package/lib/components/eventBooking/components/scheduleCalendar/components/ScheduleTimeItem/index.d.ts +1 -0
  270. package/lib/components/eventBooking/index.d.ts +0 -1
  271. package/lib/components/login/index.d.ts +1 -0
  272. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +7 -3
  273. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +7 -3
  274. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +7 -3
  275. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +19 -7
  276. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.js +15 -9
  277. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +3 -1
  278. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +10 -6
  279. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
  280. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +1 -0
  281. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +3 -3
  282. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +3 -3
  283. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +1 -1
  284. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +7 -0
  285. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +16 -0
  286. package/lib/components/pay/toC/PaymentMethods/index.js +12 -7
  287. package/lib/components/pay/toC/WalletPassBlock/components/WalletUseList/index.d.ts +1 -0
  288. package/lib/components/pay/toC/index.js +5 -1
  289. package/lib/components/pay/toC/locales.d.ts +5 -0
  290. package/lib/components/pay/toC/locales.js +5 -0
  291. package/lib/components/pay/toC/payGroup.d.ts +14 -3
  292. package/lib/components/pay/toC/payGroup.js +60 -4
  293. package/lib/components/pay/toC/serve.d.ts +13 -0
  294. package/lib/components/pay/toC/serve.js +12 -2
  295. package/lib/components/pay/toC/utils.d.ts +3 -0
  296. package/lib/components/pay/toC/utils.js +5 -1
  297. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/BirthdayField/index.d.ts +1 -0
  298. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/GenderField/index.d.ts +1 -0
  299. package/lib/components/pisellSelectCustomerModal/RightPanel/Add/PhoneField/index.d.ts +0 -1
  300. package/lib/components/pisellSelectCustomerModal/RightPanel/List/index.d.ts +1 -0
  301. package/lib/components/pisellSelectCustomerModal/RightPanel/index.d.ts +0 -1
  302. package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +1 -0
  303. package/lib/components/productExtension/index.d.ts +0 -1
  304. package/lib/components/ruleSetting/index.d.ts +0 -1
  305. package/lib/components/ruleSetting/ruleBorder/index.d.ts +1 -0
  306. package/lib/components/schedules/calendar/calendarItem.d.ts +1 -0
  307. package/lib/components/schedules/calendar/index.d.ts +1 -0
  308. package/lib/components/schedules/components/CurrentDay/index.d.ts +1 -0
  309. package/lib/components/schedules/components/ScheduleDetailList/index.d.ts +1 -0
  310. package/lib/components/schedules/components/ScheduleList/index.d.ts +1 -0
  311. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.d.ts +1 -0
  312. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.d.ts +1 -0
  313. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/index.d.ts +1 -0
  314. package/lib/components/schedules/products/ProductDetailDrawer/ProductDetailByDate/index.d.ts +1 -0
  315. package/lib/components/schedules/products/ProductDetailDrawer/index.d.ts +1 -0
  316. package/lib/components/schedules/products/index.d.ts +1 -0
  317. package/lib/components/schedules/products/list/ProductItem/index.d.ts +1 -0
  318. package/lib/components/schedules/products/list/index.d.ts +1 -0
  319. package/lib/components/schedules/resources/index.d.ts +1 -0
  320. package/lib/components/schedules/resources/list/index.d.ts +1 -0
  321. package/lib/components/schedules/resources/relationProduct/index.d.ts +1 -0
  322. package/lib/components/schedules/schedules/AllSchedules/index.d.ts +1 -0
  323. package/lib/components/schedules/schedules/ScheduleDetailDrawer/index.d.ts +1 -0
  324. package/lib/components/schedules/schedules/index.d.ts +1 -0
  325. package/lib/components/shoppingCart/hooks/useAddService.d.ts +1 -0
  326. package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +0 -1
  327. package/lib/components/workSpaceList/components/Modal/index.d.ts +1 -0
  328. package/lib/hooks/usePaymentLogger.d.ts +1 -0
  329. package/lib/plus/clientName/index.d.ts +1 -0
  330. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +1 -0
  331. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +1 -0
  332. package/lib/plus/orderList/components/HandleActions.d.ts +1 -0
  333. package/lib/plus/orderList/components/QuickFilter.d.ts +1 -0
  334. package/lib/plus/orderList/components/Reset.d.ts +1 -0
  335. package/lib/plus/orderList/components/Toolbar.d.ts +1 -0
  336. package/lib/plus/saasAttendance/settings/components/membersField/index.d.ts +1 -0
  337. package/lib/plus/saasCreateOrganization/components/Header.d.ts +1 -0
  338. package/lib/plus/saasRegister/components/EntryEmail.d.ts +1 -0
  339. package/lib/plus/saasRegister/components/EntryInfo.d.ts +1 -0
  340. package/lib/plus/saasRegister/components/GoLogin.d.ts +1 -0
  341. package/lib/plus/saasRegister/components/Header.d.ts +1 -0
  342. package/lib/plus/saasRegister/components/VerifyError.d.ts +1 -0
  343. package/lib/plus/saasRegister/components/VerifyingLink.d.ts +1 -0
  344. package/lib/plus/saasRegister/components/VertifyEmail.d.ts +1 -0
  345. package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
  346. package/lib/plus/skuOptionsSelection/components/OptionsCard/index.d.ts +1 -0
  347. package/lib/plus/skuOptionsSelection/components/VariantCard/index.d.ts +0 -1
  348. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +1 -0
  349. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +1 -0
  350. package/lib/pro/Selector/demo.d.ts +1 -0
  351. package/lib/pro/pisellPaymentList/example.d.ts +1 -0
  352. package/lib/pro/pisellPhoneKeyboard/index.d.ts +1 -0
  353. package/package.json +1 -1
@@ -39,6 +39,7 @@ var MWCreditCard = function MWCreditCard(props, ref) {
39
39
  var TDSPayRef = useRef();
40
40
  var context = useEngineContext();
41
41
  var utils = context.appHelper.utils || {};
42
+ var token = utils.token;
42
43
 
43
44
  // 订单信息
44
45
  var _useState = useState(null),
@@ -106,7 +107,7 @@ var MWCreditCard = function MWCreditCard(props, ref) {
106
107
  */
107
108
  var fastPay = /*#__PURE__*/function () {
108
109
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(card) {
109
- var _utils$Toast, _utils$Toast$loading, _state$payGroup, _state$payGroup2, _state$payGroup3, params, _state$payCallback, _yield$fastPayNew, data, _TDSPayRef$current, _TDSPayRef$current2, _utils$Toast2, _utils$Toast2$hide;
110
+ var _utils$Toast, _utils$Toast$loading, _state$payGroup, _state$payGroup2, _state$payGroup3, _token$get, params, _state$payCallback, _yield$fastPayNew, data, _TDSPayRef$current, _TDSPayRef$current2, _utils$Toast2, _utils$Toast2$hide;
110
111
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
111
112
  while (1) switch (_context2.prev = _context2.next) {
112
113
  case 0:
@@ -140,30 +141,29 @@ var MWCreditCard = function MWCreditCard(props, ref) {
140
141
  case 9:
141
142
  _yield$fastPayNew = _context2.sent;
142
143
  data = _yield$fastPayNew.data;
143
- // 设置交易号
144
- setPayNumber((_state$payGroup3 = state.payGroup) === null || _state$payGroup3 === void 0 ? void 0 : _state$payGroup3.order_id, data === null || data === void 0 ? void 0 : data.pay_number);
145
-
146
- // token 类型直接走 TDSPay(不需要 3DS 验证)
144
+ _context2.next = 13;
145
+ return setPayNumber((_state$payGroup3 = state.payGroup) === null || _state$payGroup3 === void 0 ? void 0 : _state$payGroup3.order_id, data === null || data === void 0 ? void 0 : data.pay_number, token === null || token === void 0 || (_token$get = token.get) === null || _token$get === void 0 ? void 0 : _token$get.call(token));
146
+ case 13:
147
147
  if (!((data === null || data === void 0 ? void 0 : data.type) === 'token')) {
148
- _context2.next = 15;
148
+ _context2.next = 16;
149
149
  break;
150
150
  }
151
151
  (_TDSPayRef$current = TDSPayRef.current) === null || _TDSPayRef$current === void 0 || _TDSPayRef$current.init(card, order, data);
152
152
  return _context2.abrupt("return");
153
- case 15:
153
+ case 16:
154
154
  if (!((data === null || data === void 0 ? void 0 : data.type) === '3ds')) {
155
- _context2.next = 18;
155
+ _context2.next = 19;
156
156
  break;
157
157
  }
158
158
  // 数据已经包含 pay_info,说明 fastPayNew 返回的就是 checkEnrollment 的结果
159
159
  // 直接传给 TDSPay(跳过内部 checkEnrollment)
160
160
  (_TDSPayRef$current2 = TDSPayRef.current) === null || _TDSPayRef$current2 === void 0 || _TDSPayRef$current2.init(card, order, data);
161
161
  return _context2.abrupt("return");
162
- case 18:
163
- _context2.next = 23;
162
+ case 19:
163
+ _context2.next = 24;
164
164
  break;
165
- case 20:
166
- _context2.prev = 20;
165
+ case 21:
166
+ _context2.prev = 21;
167
167
  _context2.t0 = _context2["catch"](0);
168
168
  if ((_context2.t0 === null || _context2.t0 === void 0 ? void 0 : _context2.t0.code) === 700500) {
169
169
  setTdsErrorVisible(true);
@@ -173,16 +173,16 @@ var MWCreditCard = function MWCreditCard(props, ref) {
173
173
  duration: 2
174
174
  });
175
175
  }
176
- case 23:
177
- _context2.prev = 23;
176
+ case 24:
177
+ _context2.prev = 24;
178
178
  setLoading(false);
179
179
  utils === null || utils === void 0 || (_utils$Toast2 = utils.Toast) === null || _utils$Toast2 === void 0 || (_utils$Toast2$hide = _utils$Toast2.hide) === null || _utils$Toast2$hide === void 0 || _utils$Toast2$hide.call(_utils$Toast2);
180
- return _context2.finish(23);
181
- case 27:
180
+ return _context2.finish(24);
181
+ case 28:
182
182
  case "end":
183
183
  return _context2.stop();
184
184
  }
185
- }, _callee2, null, [[0, 20, 23, 27]]);
185
+ }, _callee2, null, [[0, 21, 24, 28]]);
186
186
  }));
187
187
  return function fastPay(_x2) {
188
188
  return _ref2.apply(this, arguments);
@@ -197,7 +197,7 @@ var MWCreditCard = function MWCreditCard(props, ref) {
197
197
  */
198
198
  var onCreate = /*#__PURE__*/function () {
199
199
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(res) {
200
- var _utils$Toast3, _utils$Toast3$loading, _state$payGroup4, _state$payGroup5, _TDSPayRef$current3, _cardInfo, _state$payCallback2, preCheckData, _utils$Toast4, _utils$Toast4$hide;
200
+ var _utils$Toast3, _utils$Toast3$loading, _state$payGroup4, _state$payGroup5, _token$get2, _TDSPayRef$current3, _cardInfo, _state$payCallback2, preCheckData, _utils$Toast4, _utils$Toast4$hide;
201
201
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
202
202
  while (1) switch (_context3.prev = _context3.next) {
203
203
  case 0:
@@ -230,7 +230,7 @@ var MWCreditCard = function MWCreditCard(props, ref) {
230
230
  return _context3.abrupt("return");
231
231
  case 8:
232
232
  _context3.next = 10;
233
- return preCheckEnrollment((_state$payGroup5 = state.payGroup) === null || _state$payGroup5 === void 0 ? void 0 : _state$payGroup5.order_id, _cardInfo);
233
+ return preCheckEnrollment((_state$payGroup5 = state.payGroup) === null || _state$payGroup5 === void 0 ? void 0 : _state$payGroup5.order_id, _cardInfo, token === null || token === void 0 || (_token$get2 = token.get) === null || _token$get2 === void 0 ? void 0 : _token$get2.call(token));
234
234
  case 10:
235
235
  preCheckData = _context3.sent;
236
236
  // 预检查通过,传入 TDSPay(跳过内部 checkEnrollment)
@@ -7,6 +7,8 @@ export declare const cancelCurrentPayment: () => void;
7
7
  interface PaymentOptions {
8
8
  callback?: (res: any) => void;
9
9
  isCancelled?: () => boolean;
10
+ /** 引擎 token.get(),供 setPayNumber 写入 stash */
11
+ stashAuthToken?: string;
10
12
  }
11
13
  /**
12
14
  * @title: 点击支付
@@ -25,7 +27,7 @@ export declare const startPayment: ({ orderId, cardInfo, payData }: any, options
25
27
  * @param {any} cardInfo 卡信息
26
28
  * @return {Promise<any>} 返回后端数据(含 pay_info),失败则 throw
27
29
  */
28
- export declare const preCheckEnrollment: (orderId: string, cardInfo: any) => Promise<any>;
30
+ export declare const preCheckEnrollment: (orderId: string, cardInfo: any, stashAuthToken?: string) => Promise<any>;
29
31
  /*******
30
32
  * @title: 步骤2
31
33
  * @description: 提交卡信息到后端
@@ -86,12 +86,12 @@ var getCurrentTime = function getCurrentTime() {
86
86
  */
87
87
  export var startPayment = /*#__PURE__*/function () {
88
88
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref, options) {
89
- var orderId, cardInfo, payData, _ref3, callback, isCancelled, paymentInfo, step2, step3, step4, step5;
89
+ var orderId, cardInfo, payData, _ref3, callback, isCancelled, stashAuthToken, paymentInfo, step2, step3, step4, step5;
90
90
  return _regeneratorRuntime().wrap(function _callee$(_context) {
91
91
  while (1) switch (_context.prev = _context.next) {
92
92
  case 0:
93
93
  orderId = _ref.orderId, cardInfo = _ref.cardInfo, payData = _ref.payData;
94
- _ref3 = options || {}, callback = _ref3.callback, isCancelled = _ref3.isCancelled;
94
+ _ref3 = options || {}, callback = _ref3.callback, isCancelled = _ref3.isCancelled, stashAuthToken = _ref3.stashAuthToken;
95
95
  paymentInfo = {
96
96
  amount: 0,
97
97
  order_id: 0
@@ -121,7 +121,8 @@ export var startPayment = /*#__PURE__*/function () {
121
121
  _context.next = 12;
122
122
  return checkEnrollment(orderId, cardInfo, {
123
123
  callback: callback,
124
- isCancelled: isCancelled
124
+ isCancelled: isCancelled,
125
+ stashAuthToken: stashAuthToken
125
126
  });
126
127
  case 12:
127
128
  _context.t0 = _context.sent;
@@ -339,7 +340,7 @@ export var startPayment = /*#__PURE__*/function () {
339
340
  * @return {Promise<any>} 返回后端数据(含 pay_info),失败则 throw
340
341
  */
341
342
  export var preCheckEnrollment = /*#__PURE__*/function () {
342
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(orderId, cardInfo) {
343
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(orderId, cardInfo, stashAuthToken) {
343
344
  var _yield$request$getReq, data;
344
345
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
345
346
  while (1) switch (_context2.prev = _context2.next) {
@@ -350,16 +351,18 @@ export var preCheckEnrollment = /*#__PURE__*/function () {
350
351
  case 3:
351
352
  _yield$request$getReq = _context2.sent;
352
353
  data = _yield$request$getReq.data;
353
- setPayNumber(orderId, data === null || data === void 0 ? void 0 : data.pay_number);
354
+ _context2.next = 7;
355
+ return setPayNumber(orderId, data === null || data === void 0 ? void 0 : data.pay_number, stashAuthToken);
356
+ case 7:
354
357
  if (data !== null && data !== void 0 && data.pay_info) {
355
- _context2.next = 8;
358
+ _context2.next = 9;
356
359
  break;
357
360
  }
358
361
  throw new Error('Card does not support 3DS verification');
359
- case 8:
362
+ case 9:
360
363
  return _context2.abrupt("return", data);
361
- case 11:
362
- _context2.prev = 11;
364
+ case 12:
365
+ _context2.prev = 12;
363
366
  _context2.t0 = _context2["catch"](0);
364
367
  // 记录失败日志
365
368
  log({
@@ -371,13 +374,13 @@ export var preCheckEnrollment = /*#__PURE__*/function () {
371
374
  });
372
375
  // 直接向上抛出,由调用方处理
373
376
  throw _context2.t0;
374
- case 15:
377
+ case 16:
375
378
  case "end":
376
379
  return _context2.stop();
377
380
  }
378
- }, _callee2, null, [[0, 11]]);
381
+ }, _callee2, null, [[0, 12]]);
379
382
  }));
380
- return function preCheckEnrollment(_x3, _x4) {
383
+ return function preCheckEnrollment(_x3, _x4, _x5) {
381
384
  return _ref4.apply(this, arguments);
382
385
  };
383
386
  }();
@@ -391,11 +394,11 @@ export var preCheckEnrollment = /*#__PURE__*/function () {
391
394
  */
392
395
  export var checkEnrollment = /*#__PURE__*/function () {
393
396
  var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(orderId, cardInfo, options) {
394
- var _ref6, callback, isCancelled, _yield$request$getReq2, data;
397
+ var _ref6, callback, isCancelled, stashAuthToken, _yield$request$getReq2, data;
395
398
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
396
399
  while (1) switch (_context3.prev = _context3.next) {
397
400
  case 0:
398
- _ref6 = options || {}, callback = _ref6.callback, isCancelled = _ref6.isCancelled;
401
+ _ref6 = options || {}, callback = _ref6.callback, isCancelled = _ref6.isCancelled, stashAuthToken = _ref6.stashAuthToken;
399
402
  _context3.prev = 1;
400
403
  _context3.next = 4;
401
404
  return request.getRequest().post('/h5/pay/order/mw-3ds-pay/v2/' + orderId, _objectSpread({}, cardInfo));
@@ -408,16 +411,18 @@ export var checkEnrollment = /*#__PURE__*/function () {
408
411
  }
409
412
  return _context3.abrupt("return", 0);
410
413
  case 8:
411
- setPayNumber(orderId, data === null || data === void 0 ? void 0 : data.pay_number);
414
+ _context3.next = 10;
415
+ return setPayNumber(orderId, data === null || data === void 0 ? void 0 : data.pay_number, stashAuthToken);
416
+ case 10:
412
417
  if (data !== null && data !== void 0 && data.pay_info) {
413
- _context3.next = 11;
418
+ _context3.next = 12;
414
419
  break;
415
420
  }
416
421
  return _context3.abrupt("return", null);
417
- case 11:
422
+ case 12:
418
423
  return _context3.abrupt("return", data);
419
- case 14:
420
- _context3.prev = 14;
424
+ case 15:
425
+ _context3.prev = 15;
421
426
  _context3.t0 = _context3["catch"](1);
422
427
  // 记录卡失败的原因
423
428
  log({
@@ -428,11 +433,11 @@ export var checkEnrollment = /*#__PURE__*/function () {
428
433
  }
429
434
  });
430
435
  if (!(isCancelled !== null && isCancelled !== void 0 && isCancelled())) {
431
- _context3.next = 19;
436
+ _context3.next = 20;
432
437
  break;
433
438
  }
434
439
  return _context3.abrupt("return", 0);
435
- case 19:
440
+ case 20:
436
441
  callback === null || callback === void 0 || callback({
437
442
  key: 'hideModal'
438
443
  });
@@ -443,13 +448,13 @@ export var checkEnrollment = /*#__PURE__*/function () {
443
448
  });
444
449
  console.log('error', _context3.t0);
445
450
  return _context3.abrupt("return", 0);
446
- case 24:
451
+ case 25:
447
452
  case "end":
448
453
  return _context3.stop();
449
454
  }
450
- }, _callee3, null, [[1, 14]]);
455
+ }, _callee3, null, [[1, 15]]);
451
456
  }));
452
- return function checkEnrollment(_x5, _x6, _x7) {
457
+ return function checkEnrollment(_x6, _x7, _x8) {
453
458
  return _ref5.apply(this, arguments);
454
459
  };
455
460
  }();
@@ -563,7 +568,7 @@ export var createThreeDSMethodIframe = /*#__PURE__*/function () {
563
568
  }
564
569
  }, _callee4);
565
570
  }));
566
- return function createThreeDSMethodIframe(_x8, _x9) {
571
+ return function createThreeDSMethodIframe(_x9, _x10) {
567
572
  return _ref7.apply(this, arguments);
568
573
  };
569
574
  }();
@@ -697,7 +702,7 @@ export var checkTDSAuth = /*#__PURE__*/function () {
697
702
  }
698
703
  }, _callee5, null, [[1, 19]]);
699
704
  }));
700
- return function checkTDSAuth(_x10, _x11, _x12) {
705
+ return function checkTDSAuth(_x11, _x12, _x13) {
701
706
  return _ref8.apply(this, arguments);
702
707
  };
703
708
  }();
@@ -824,7 +829,7 @@ export var checkPARes = /*#__PURE__*/function () {
824
829
  }
825
830
  }, _callee6);
826
831
  }));
827
- return function checkPARes(_x13, _x14, _x15) {
832
+ return function checkPARes(_x14, _x15, _x16) {
828
833
  return _ref10.apply(this, arguments);
829
834
  };
830
835
  }();
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const StripeSDK: ({ public_key, client_secret, children, lang, }: {
2
3
  public_key: string;
3
4
  client_secret?: string | undefined;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const SetupForm: ({ onReady, amount, order_id, payment_method, scene, }: any) => JSX.Element;
3
4
  export default SetupForm;
@@ -47,7 +47,8 @@ var SuperPayAliPayH5 = function SuperPayAliPayH5(props, ref) {
47
47
  setStatePayNumber = _useState6[1];
48
48
  var context = useEngineContext();
49
49
  var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
50
- interaction = _context$appHelper$ut.interaction;
50
+ interaction = _context$appHelper$ut.interaction,
51
+ token = _context$appHelper$ut.token;
51
52
 
52
53
  // SuperPayAliPayH5支付日志记录器
53
54
  var paymentLogger = usePaymentLogger({
@@ -75,7 +76,7 @@ var SuperPayAliPayH5 = function SuperPayAliPayH5(props, ref) {
75
76
  var init = /*#__PURE__*/function () {
76
77
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
77
78
  var _interaction$utils, _interaction$utils$is;
78
- var payGroup, values, data;
79
+ var payGroup, values, data, _token$get;
79
80
  return _regeneratorRuntime().wrap(function _callee$(_context) {
80
81
  while (1) switch (_context.prev = _context.next) {
81
82
  case 0:
@@ -135,7 +136,7 @@ var SuperPayAliPayH5 = function SuperPayAliPayH5(props, ref) {
135
136
  case 17:
136
137
  data = _context.sent;
137
138
  if (!(data !== null && data !== void 0 && data.pay_url)) {
138
- _context.next = 29;
139
+ _context.next = 30;
139
140
  break;
140
141
  }
141
142
  // 记录获取支付宝支付链接成功
@@ -143,9 +144,9 @@ var SuperPayAliPayH5 = function SuperPayAliPayH5(props, ref) {
143
144
  key: 'SuperPayAliPayH5获取支付链接成功',
144
145
  value: ''
145
146
  });
146
-
147
- // 设置交易号
148
- setPayNumber(payGroup === null || payGroup === void 0 ? void 0 : payGroup.order_id, data === null || data === void 0 ? void 0 : data.pay_number);
147
+ _context.next = 22;
148
+ return setPayNumber(payGroup === null || payGroup === void 0 ? void 0 : payGroup.order_id, data === null || data === void 0 ? void 0 : data.pay_number, token === null || token === void 0 || (_token$get = token.get) === null || _token$get === void 0 ? void 0 : _token$get.call(token));
149
+ case 22:
149
150
  setStatePayNumber(data === null || data === void 0 ? void 0 : data.pay_number);
150
151
  setShowSuccessBackButton(true);
151
152
 
@@ -155,12 +156,12 @@ var SuperPayAliPayH5 = function SuperPayAliPayH5(props, ref) {
155
156
  value: ''
156
157
  });
157
158
  paymentLogger.sendLogs('SuperPayAliPayH5跳转成功');
158
- _context.next = 27;
159
+ _context.next = 28;
159
160
  return handleRedirect(data === null || data === void 0 ? void 0 : data.pay_url);
160
- case 27:
161
- _context.next = 32;
161
+ case 28:
162
+ _context.next = 33;
162
163
  break;
163
- case 29:
164
+ case 30:
164
165
  // 记录支付链接为空
165
166
  paymentLogger.addLog({
166
167
  key: 'SuperPayAliPayH5支付链接为空',
@@ -173,11 +174,11 @@ var SuperPayAliPayH5 = function SuperPayAliPayH5(props, ref) {
173
174
  });
174
175
  paymentLogger.sendLogs('SuperPayAliPayH5支付链接为空');
175
176
  setOpen(false);
176
- case 32:
177
- _context.next = 39;
177
+ case 33:
178
+ _context.next = 40;
178
179
  break;
179
- case 34:
180
- _context.prev = 34;
180
+ case 35:
181
+ _context.prev = 35;
181
182
  _context.t0 = _context["catch"](14);
182
183
  // 记录SuperPayAliPayH5处理错误
183
184
  paymentLogger.addLog({
@@ -192,11 +193,11 @@ var SuperPayAliPayH5 = function SuperPayAliPayH5(props, ref) {
192
193
  });
193
194
  paymentLogger.sendLogs('SuperPayAliPayH5处理失败', _context.t0);
194
195
  setOpen(false);
195
- case 39:
196
+ case 40:
196
197
  case "end":
197
198
  return _context.stop();
198
199
  }
199
- }, _callee, null, [[14, 34]]);
200
+ }, _callee, null, [[14, 35]]);
200
201
  }));
201
202
  return function init(_x) {
202
203
  return _ref2.apply(this, arguments);
@@ -37,8 +37,9 @@ var SuperPayWxPayH5 = function SuperPayWxPayH5(props, ref) {
37
37
  open = _useState2[0],
38
38
  setOpen = _useState2[1];
39
39
  var context = useEngineContext();
40
- var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
41
- interaction = _context$appHelper$ut.interaction;
40
+ var _ref = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils) || {},
41
+ interaction = _ref.interaction,
42
+ token = _ref.token;
42
43
 
43
44
  // SuperPayWxPayH5支付日志记录器
44
45
  var paymentLogger = usePaymentLogger({
@@ -55,13 +56,13 @@ var SuperPayWxPayH5 = function SuperPayWxPayH5(props, ref) {
55
56
  * @Date: 2024-08-16 11:19
56
57
  */
57
58
  var init = /*#__PURE__*/function () {
58
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
59
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref2) {
59
60
  var _interaction$utils, _interaction$utils$is;
60
- var payGroup, values, data;
61
+ var payGroup, values, data, _token$get;
61
62
  return _regeneratorRuntime().wrap(function _callee$(_context) {
62
63
  while (1) switch (_context.prev = _context.next) {
63
64
  case 0:
64
- payGroup = _ref.payGroup;
65
+ payGroup = _ref2.payGroup;
65
66
  // 记录SuperPayWxPayH5初始化开始
66
67
  paymentLogger.addLog({
67
68
  key: 'SuperPayWxPayH5初始化开始',
@@ -116,43 +117,47 @@ var SuperPayWxPayH5 = function SuperPayWxPayH5(props, ref) {
116
117
  return getWxPayUrl(payGroup.order_id, values);
117
118
  case 17:
118
119
  data = _context.sent;
119
- if (data !== null && data !== void 0 && data.pay_url) {
120
- // 记录获取微信支付链接成功
121
- paymentLogger.addLog({
122
- key: 'SuperPayWxPayH5获取支付链接成功',
123
- value: ""
124
- });
125
-
126
- // 设置交易号
127
- setPayNumber(payGroup === null || payGroup === void 0 ? void 0 : payGroup.order_id, data === null || data === void 0 ? void 0 : data.pay_number);
128
-
129
- // 记录即将跳转到微信支付
130
- paymentLogger.addLog({
131
- key: 'SuperPayWxPayH5准备跳转微信支付',
132
- value: ""
133
- });
134
- paymentLogger.sendLogs('SuperPayWxPayH5跳转成功');
120
+ if (!(data !== null && data !== void 0 && data.pay_url)) {
121
+ _context.next = 27;
122
+ break;
123
+ }
124
+ // 记录获取微信支付链接成功
125
+ paymentLogger.addLog({
126
+ key: 'SuperPayWxPayH5获取支付链接成功',
127
+ value: ""
128
+ });
129
+ _context.next = 22;
130
+ return setPayNumber(payGroup === null || payGroup === void 0 ? void 0 : payGroup.order_id, data === null || data === void 0 ? void 0 : data.pay_number, token === null || token === void 0 || (_token$get = token.get) === null || _token$get === void 0 ? void 0 : _token$get.call(token));
131
+ case 22:
132
+ // 记录即将跳转到微信支付
133
+ paymentLogger.addLog({
134
+ key: 'SuperPayWxPayH5准备跳转微信支付',
135
+ value: ""
136
+ });
137
+ paymentLogger.sendLogs('SuperPayWxPayH5跳转成功');
135
138
 
136
- // 跳转支付
137
- window.location.href = data === null || data === void 0 ? void 0 : data.pay_url;
138
- } else {
139
- // 记录支付链接为空
140
- paymentLogger.addLog({
141
- key: 'SuperPayWxPayH5支付链接为空',
142
- value: {
143
- title: "\u8BA2\u5355".concat(payGroup === null || payGroup === void 0 ? void 0 : payGroup.order_id, " \u5FAE\u4FE1\u652F\u4ED8\u94FE\u63A5\u4E3A\u7A7A"),
144
- data: {
145
- response_data: data
146
- }
139
+ // 跳转支付
140
+ window.location.href = data === null || data === void 0 ? void 0 : data.pay_url;
141
+ _context.next = 30;
142
+ break;
143
+ case 27:
144
+ // 记录支付链接为空
145
+ paymentLogger.addLog({
146
+ key: 'SuperPayWxPayH5支付链接为空',
147
+ value: {
148
+ title: "\u8BA2\u5355".concat(payGroup === null || payGroup === void 0 ? void 0 : payGroup.order_id, " \u5FAE\u4FE1\u652F\u4ED8\u94FE\u63A5\u4E3A\u7A7A"),
149
+ data: {
150
+ response_data: data
147
151
  }
148
- });
149
- paymentLogger.sendLogs('SuperPayWxPayH5支付链接为空');
150
- setOpen(false);
151
- }
152
- _context.next = 26;
152
+ }
153
+ });
154
+ paymentLogger.sendLogs('SuperPayWxPayH5支付链接为空');
155
+ setOpen(false);
156
+ case 30:
157
+ _context.next = 37;
153
158
  break;
154
- case 21:
155
- _context.prev = 21;
159
+ case 32:
160
+ _context.prev = 32;
156
161
  _context.t0 = _context["catch"](14);
157
162
  // 记录SuperPayWxPayH5处理错误
158
163
  paymentLogger.addLog({
@@ -167,14 +172,14 @@ var SuperPayWxPayH5 = function SuperPayWxPayH5(props, ref) {
167
172
  });
168
173
  paymentLogger.sendLogs('SuperPayWxPayH5处理失败', _context.t0);
169
174
  setOpen(false);
170
- case 26:
175
+ case 37:
171
176
  case "end":
172
177
  return _context.stop();
173
178
  }
174
- }, _callee, null, [[14, 21]]);
179
+ }, _callee, null, [[14, 32]]);
175
180
  }));
176
181
  return function init(_x) {
177
- return _ref2.apply(this, arguments);
182
+ return _ref3.apply(this, arguments);
178
183
  };
179
184
  }();
180
185
  useImperativeHandle(ref, function () {
@@ -26,7 +26,7 @@ import PinVerifyModal from "../../../../pinVerifyModal";
26
26
  import MultiModeSearch from "./MultiModeSearch";
27
27
  import List from "./List";
28
28
  import { searchMachineCodeList, searchWalletCode } from "./serve";
29
- import { formatMachineCodeServer2CardList, getIsWalletCode } from "./utils";
29
+ import { formatMachineCodeServer2CardList, formatWalletPassWithUniquePaymentNumber, getIsWalletCode } from "./utils";
30
30
  import { calcWalletPassListAmount, formatWalletPassList2PreparePayments } from "../../utils";
31
31
  import "./index.less";
32
32
  import useEngineContext from "../../../../../hooks/useEngineContext";
@@ -398,7 +398,7 @@ var WalletPass = /*#__PURE__*/forwardRef(function (props, ref) {
398
398
  changeWalletPass(cards);
399
399
  };
400
400
  var handleRedeem = function handleRedeem() {
401
- onWalletPassChange === null || onWalletPassChange === void 0 || onWalletPassChange(currentWalletPass);
401
+ onWalletPassChange === null || onWalletPassChange === void 0 || onWalletPassChange(formatWalletPassWithUniquePaymentNumber(currentWalletPass));
402
402
  setOpen(false);
403
403
  };
404
404
  var handleWalletClose = function handleWalletClose() {
@@ -7,3 +7,10 @@ export declare const getDataByIds: (arr: any[], ids: number[]) => any[];
7
7
  * @returns
8
8
  */
9
9
  export declare const getIsWalletCode: (val: string) => boolean;
10
+ export declare const formatWalletPassWithUniquePaymentNumber: (currentWalletPass: {
11
+ cards: any[];
12
+ amount: number;
13
+ }) => {
14
+ cards: any[];
15
+ amount: number;
16
+ };
@@ -1,4 +1,10 @@
1
- import { formatDate, locales } from '@pisell/utils';
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ import { formatDate, locales, getUniqueId } from '@pisell/utils';
2
8
  import { globalConfig } from '@pisell/materials';
3
9
  import { getAvailableMaxAmount } from "../../utils";
4
10
  var voucherTime = function voucherTime(data) {
@@ -49,4 +55,15 @@ export var getDataByIds = function getDataByIds(arr, ids) {
49
55
  */
50
56
  export var getIsWalletCode = function getIsWalletCode(val) {
51
57
  return val.startsWith('WL');
58
+ };
59
+ export var formatWalletPassWithUniquePaymentNumber = function formatWalletPassWithUniquePaymentNumber(currentWalletPass) {
60
+ return _objectSpread(_objectSpread({}, currentWalletPass), {}, {
61
+ cards: ((currentWalletPass === null || currentWalletPass === void 0 ? void 0 : currentWalletPass.cards) || []).map(function (item) {
62
+ return _objectSpread(_objectSpread({}, item), {}, {
63
+ metadata: _objectSpread(_objectSpread({}, item.metadata || {}), {}, {
64
+ unique_payment_number: getUniqueId()
65
+ })
66
+ });
67
+ })
68
+ });
52
69
  };