@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
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type CalenDateWeekProps = {
3
4
  currentDate: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const DayItem: (props: any) => JSX.Element;
3
4
  export default DayItem;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  import { CalendarItemProps } from '../../../../../type';
3
4
  declare const Item: (props: CalendarItemProps) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const Status: (props: any) => JSX.Element;
3
4
  export default Status;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const BookingOptions: (props: {
2
3
  onChangeBookingOption?: ((bookingOption: any) => void) | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare type Item = any;
3
4
  interface ProductItemProps {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './index.less';
2
3
  declare const ScheduleTimeItem: ({ timeList }: any) => JSX.Element;
3
4
  export default ScheduleTimeItem;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './index.less';
3
2
  declare const EventBooking: () => JSX.Element;
4
3
  export default EventBooking;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./index.less";
2
3
  export interface LoginProps {
3
4
  title: string;
@@ -40,18 +40,22 @@ var import_serve = require("./serve");
40
40
  var import_model = require("../../model");
41
41
  var import_payGroup = require("../../payGroup");
42
42
  var import_usePaymentLogger = __toESM(require("../../../../../hooks/usePaymentLogger"));
43
+ var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
43
44
  var import_index = require("./index.less");
44
45
  var GlobePayAliPayH5 = (props, ref) => {
45
- var _a;
46
+ var _a, _b;
46
47
  const { state } = (0, import_react.useContext)(import_model.Context);
47
48
  const { onChange } = props;
48
49
  const [open, setOpen] = (0, import_react.useState)(false);
49
50
  const [showSuccessBackButton, setShowSuccessBackButton] = (0, import_react.useState)(false);
51
+ const context = (0, import_useEngineContext.default)();
52
+ const { token } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
50
53
  const paymentLogger = (0, import_usePaymentLogger.default)({
51
- orderId: ((_a = state.payGroup) == null ? void 0 : _a.order_id) || "unknown",
54
+ orderId: ((_b = state.payGroup) == null ? void 0 : _b.order_id) || "unknown",
52
55
  step: "2"
53
56
  });
54
57
  const init = async ({ payGroup }) => {
58
+ var _a2;
55
59
  paymentLogger.addLog({
56
60
  key: "GlobePayAliPayH5初始化开始",
57
61
  value: ""
@@ -88,7 +92,7 @@ var GlobePayAliPayH5 = (props, ref) => {
88
92
  key: "GlobePayAliPayH5获取支付链接成功",
89
93
  value: ""
90
94
  });
91
- (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
95
+ await (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number, (_a2 = token == null ? void 0 : token.get) == null ? void 0 : _a2.call(token));
92
96
  paymentLogger.addLog({
93
97
  key: "GlobePayAliPayH5准备跳转支付宝",
94
98
  value: ""
@@ -40,17 +40,21 @@ var import_serve = require("./serve");
40
40
  var import_model = require("../../model");
41
41
  var import_payGroup = require("../../payGroup");
42
42
  var import_usePaymentLogger = __toESM(require("../../../../../hooks/usePaymentLogger"));
43
+ var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
43
44
  var import_index = require("./index.less");
44
45
  var GlobePayPaypalH5 = (props, ref) => {
45
- var _a;
46
+ var _a, _b;
46
47
  const { state } = (0, import_react.useContext)(import_model.Context);
47
48
  const { onChange } = props;
48
49
  const [open, setOpen] = (0, import_react.useState)(false);
50
+ const context = (0, import_useEngineContext.default)();
51
+ const { token } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
49
52
  const paymentLogger = (0, import_usePaymentLogger.default)({
50
- orderId: ((_a = state.payGroup) == null ? void 0 : _a.order_id) || "unknown",
53
+ orderId: ((_b = state.payGroup) == null ? void 0 : _b.order_id) || "unknown",
51
54
  step: "2"
52
55
  });
53
56
  const init = async ({ payGroup }) => {
57
+ var _a2;
54
58
  paymentLogger.addLog({
55
59
  key: "GlobePayPaypalH5初始化开始",
56
60
  value: ""
@@ -87,7 +91,7 @@ var GlobePayPaypalH5 = (props, ref) => {
87
91
  key: "GlobePayPaypalH5获取支付链接成功",
88
92
  value: ""
89
93
  });
90
- (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
94
+ await (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number, (_a2 = token == null ? void 0 : token.get) == null ? void 0 : _a2.call(token));
91
95
  paymentLogger.addLog({
92
96
  key: "GlobePayPaypalH5准备跳转Paypal",
93
97
  value: ""
@@ -40,17 +40,21 @@ var import_serve = require("./serve");
40
40
  var import_model = require("../../model");
41
41
  var import_payGroup = require("../../payGroup");
42
42
  var import_usePaymentLogger = __toESM(require("../../../../../hooks/usePaymentLogger"));
43
+ var import_useEngineContext = __toESM(require("../../../../../hooks/useEngineContext"));
43
44
  var import_index = require("./index.less");
44
45
  var GlobePayWxH5 = (props, ref) => {
45
- var _a;
46
+ var _a, _b;
46
47
  const { state } = (0, import_react.useContext)(import_model.Context);
47
48
  const { onChange } = props;
48
49
  const [open, setOpen] = (0, import_react.useState)(false);
50
+ const context = (0, import_useEngineContext.default)();
51
+ const { token } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
49
52
  const paymentLogger = (0, import_usePaymentLogger.default)({
50
- orderId: ((_a = state.payGroup) == null ? void 0 : _a.order_id) || "unknown",
53
+ orderId: ((_b = state.payGroup) == null ? void 0 : _b.order_id) || "unknown",
51
54
  step: "2"
52
55
  });
53
56
  const init = async ({ payGroup }) => {
57
+ var _a2;
54
58
  paymentLogger.addLog({
55
59
  key: "GlobePayWxH5初始化开始",
56
60
  value: ""
@@ -87,7 +91,7 @@ var GlobePayWxH5 = (props, ref) => {
87
91
  key: "GlobePayWxH5获取支付链接成功",
88
92
  value: ""
89
93
  });
90
- (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
94
+ await (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number, (_a2 = token == null ? void 0 : token.get) == null ? void 0 : _a2.call(token));
91
95
  paymentLogger.addLog({
92
96
  key: "GlobePayWxH5准备跳转微信",
93
97
  value: ""
@@ -42,13 +42,17 @@ var import_model = require("../../../model");
42
42
  var import_payGroup = require("../../../payGroup");
43
43
  var import_index = require("./index.less");
44
44
  var import_utils = require("@pisell/utils");
45
+ var import_useEngineContext = __toESM(require("../../../../../../hooks/useEngineContext"));
45
46
  var TDSPay = (props, ref) => {
47
+ var _a;
46
48
  const { onChange, closeAll } = props;
47
49
  const [open, setOpen] = (0, import_react.useState)(false);
48
50
  const [showCloseConfirm, setShowCloseConfirm] = (0, import_react.useState)(false);
49
51
  const sessionIdRef = (0, import_react.useRef)(0);
50
52
  const payingRef = (0, import_react.useRef)(false);
51
53
  const { state } = (0, import_react.useContext)(import_model.Context);
54
+ const engineContext = (0, import_useEngineContext.default)();
55
+ const { token } = ((_a = engineContext.appHelper) == null ? void 0 : _a.utils) || {};
52
56
  (0, import_react.useEffect)(() => {
53
57
  return () => {
54
58
  sessionIdRef.current += 1;
@@ -64,6 +68,7 @@ var TDSPay = (props, ref) => {
64
68
  onChange == null ? void 0 : onChange(res);
65
69
  };
66
70
  const init = async (res, order, preCheckData) => {
71
+ var _a2;
67
72
  if (payingRef.current) return;
68
73
  payingRef.current = true;
69
74
  sessionIdRef.current += 1;
@@ -73,7 +78,10 @@ var TDSPay = (props, ref) => {
73
78
  const isCancelled = () => sessionIdRef.current !== session;
74
79
  const callback = createSessionCallback(session);
75
80
  if (preCheckData) {
76
- (0, import_tds2.startPayment)({ payData: preCheckData }, { callback, isCancelled });
81
+ (0, import_tds2.startPayment)(
82
+ { payData: preCheckData },
83
+ { callback, isCancelled, stashAuthToken: (_a2 = token == null ? void 0 : token.get) == null ? void 0 : _a2.call(token) }
84
+ );
77
85
  return;
78
86
  }
79
87
  if (res.id) {
@@ -98,10 +106,10 @@ var TDSPay = (props, ref) => {
98
106
  onChange == null ? void 0 : onChange({ key: "cancel" });
99
107
  };
100
108
  const _fastPayNew = async (res, callback, isCancelled) => {
101
- var _a, _b, _c;
109
+ var _a2, _b, _c, _d;
102
110
  try {
103
111
  const params = (0, import_payGroup.getPayGroupParamsFromStorage)(
104
- (_a = state.payGroup) == null ? void 0 : _a.order_id,
112
+ (_a2 = state.payGroup) == null ? void 0 : _a2.order_id,
105
113
  { card_id: res.id }
106
114
  );
107
115
  if (!params) {
@@ -120,7 +128,11 @@ var TDSPay = (props, ref) => {
120
128
  params
121
129
  });
122
130
  if (isCancelled()) return;
123
- (0, import_payGroup.setPayNumber)((_c = state.payGroup) == null ? void 0 : _c.order_id, data == null ? void 0 : data.pay_number);
131
+ await (0, import_payGroup.setPayNumber)(
132
+ (_c = state.payGroup) == null ? void 0 : _c.order_id,
133
+ data == null ? void 0 : data.pay_number,
134
+ (_d = token == null ? void 0 : token.get) == null ? void 0 : _d.call(token)
135
+ );
124
136
  if ((data == null ? void 0 : data.type) === "token") {
125
137
  callback({ key: "success", data });
126
138
  }
@@ -139,7 +151,7 @@ var TDSPay = (props, ref) => {
139
151
  }
140
152
  };
141
153
  const newCardPay = (res, callback, isCancelled) => {
142
- var _a, _b;
154
+ var _a2, _b, _c;
143
155
  let _cardInfo = {
144
156
  card_name: res.card_name,
145
157
  card_number: res.card_number,
@@ -149,7 +161,7 @@ var TDSPay = (props, ref) => {
149
161
  is_save: res.is_save ? 1 : 0
150
162
  };
151
163
  _cardInfo = (0, import_payGroup.getPayGroupParamsFromStorage)(
152
- (_a = state.payGroup) == null ? void 0 : _a.order_id,
164
+ (_a2 = state.payGroup) == null ? void 0 : _a2.order_id,
153
165
  _cardInfo
154
166
  );
155
167
  if (!_cardInfo) {
@@ -165,7 +177,7 @@ var TDSPay = (props, ref) => {
165
177
  }
166
178
  (0, import_tds2.startPayment)(
167
179
  { orderId: (_b = state.payGroup) == null ? void 0 : _b.order_id, cardInfo: _cardInfo },
168
- { callback, isCancelled }
180
+ { callback, isCancelled, stashAuthToken: (_c = token == null ? void 0 : token.get) == null ? void 0 : _c.call(token) }
169
181
  );
170
182
  };
171
183
  (0, import_react.useImperativeHandle)(
@@ -51,6 +51,7 @@ var MWCreditCard = (props, ref) => {
51
51
  const TDSPayRef2 = (0, import_react.useRef)();
52
52
  const context = (0, import_useEngineContext.default)();
53
53
  const utils = context.appHelper.utils || {};
54
+ const { token } = utils;
54
55
  const [order, setOrder] = (0, import_react.useState)(null);
55
56
  const [tdsErrorVisible, setTdsErrorVisible] = (0, import_react.useState)(false);
56
57
  const [bankVerifyFailVisible, setBankVerifyFailVisible] = (0, import_react.useState)(false);
@@ -67,7 +68,7 @@ var MWCreditCard = (props, ref) => {
67
68
  (_b = AddMWCreditCardRef2.current) == null ? void 0 : _b.close();
68
69
  };
69
70
  const fastPay = async (card) => {
70
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
71
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
71
72
  try {
72
73
  setLoading(true);
73
74
  (_b = (_a = utils == null ? void 0 : utils.Toast) == null ? void 0 : _a.loading) == null ? void 0 : _b.call(_a, import_utils.locales.getText("tocPay.text.checkingCard"), 0, void 0, true);
@@ -90,13 +91,17 @@ var MWCreditCard = (props, ref) => {
90
91
  order_id: (_e = state.payGroup) == null ? void 0 : _e.order_id,
91
92
  params
92
93
  });
93
- (0, import_payGroup.setPayNumber)((_f = state.payGroup) == null ? void 0 : _f.order_id, data == null ? void 0 : data.pay_number);
94
+ await (0, import_payGroup.setPayNumber)(
95
+ (_f = state.payGroup) == null ? void 0 : _f.order_id,
96
+ data == null ? void 0 : data.pay_number,
97
+ (_g = token == null ? void 0 : token.get) == null ? void 0 : _g.call(token)
98
+ );
94
99
  if ((data == null ? void 0 : data.type) === "token") {
95
- (_g = TDSPayRef2.current) == null ? void 0 : _g.init(card, order, data);
100
+ (_h = TDSPayRef2.current) == null ? void 0 : _h.init(card, order, data);
96
101
  return;
97
102
  }
98
103
  if ((data == null ? void 0 : data.type) === "3ds") {
99
- (_h = TDSPayRef2.current) == null ? void 0 : _h.init(card, order, data);
104
+ (_i = TDSPayRef2.current) == null ? void 0 : _i.init(card, order, data);
100
105
  return;
101
106
  }
102
107
  } catch (e) {
@@ -107,11 +112,11 @@ var MWCreditCard = (props, ref) => {
107
112
  }
108
113
  } finally {
109
114
  setLoading(false);
110
- (_j = (_i = utils == null ? void 0 : utils.Toast) == null ? void 0 : _i.hide) == null ? void 0 : _j.call(_i);
115
+ (_k = (_j = utils == null ? void 0 : utils.Toast) == null ? void 0 : _j.hide) == null ? void 0 : _k.call(_j);
111
116
  }
112
117
  };
113
118
  const onCreate = async (res) => {
114
- var _a, _b, _c, _d, _e, _f, _g, _h;
119
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
115
120
  try {
116
121
  setLoading(true);
117
122
  (_b = (_a = utils == null ? void 0 : utils.Toast) == null ? void 0 : _a.loading) == null ? void 0 : _b.call(_a, import_utils.locales.getText("tocPay.text.checkingCard"), 0, void 0, true);
@@ -140,9 +145,10 @@ var MWCreditCard = (props, ref) => {
140
145
  }
141
146
  const preCheckData = await (0, import_tds2.preCheckEnrollment)(
142
147
  (_e = state.payGroup) == null ? void 0 : _e.order_id,
143
- _cardInfo
148
+ _cardInfo,
149
+ (_f = token == null ? void 0 : token.get) == null ? void 0 : _f.call(token)
144
150
  );
145
- (_f = TDSPayRef2.current) == null ? void 0 : _f.init(res, order, preCheckData);
151
+ (_g = TDSPayRef2.current) == null ? void 0 : _g.init(res, order, preCheckData);
146
152
  } catch (e) {
147
153
  if ((e == null ? void 0 : e.code) === 700500) {
148
154
  setTdsErrorVisible(true);
@@ -151,7 +157,7 @@ var MWCreditCard = (props, ref) => {
151
157
  }
152
158
  } finally {
153
159
  setLoading(false);
154
- (_h = (_g = utils == null ? void 0 : utils.Toast) == null ? void 0 : _g.hide) == null ? void 0 : _h.call(_g);
160
+ (_i = (_h = utils == null ? void 0 : utils.Toast) == null ? void 0 : _h.hide) == null ? void 0 : _i.call(_h);
155
161
  }
156
162
  };
157
163
  const handleTDSPayChange = (res) => {
@@ -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: 提交卡信息到后端
@@ -93,7 +93,7 @@ var getCurrentTime = () => {
93
93
  return (0, import_dayjs.default)().format("YYYY-MM-DD HH:mm:ss");
94
94
  };
95
95
  var startPayment = async ({ orderId, cardInfo, payData }, options) => {
96
- const { callback, isCancelled } = options || {};
96
+ const { callback, isCancelled, stashAuthToken } = options || {};
97
97
  let paymentInfo2 = {
98
98
  amount: 0,
99
99
  order_id: 0
@@ -110,7 +110,11 @@ var startPayment = async ({ orderId, cardInfo, payData }, options) => {
110
110
  payDataOrderId: payData == null ? void 0 : payData.order_id,
111
111
  payDataPayNumber: payData == null ? void 0 : payData.pay_number
112
112
  });
113
- const step2 = payData ? payData : await checkEnrollment(orderId, cardInfo, { callback, isCancelled });
113
+ const step2 = payData ? payData : await checkEnrollment(orderId, cardInfo, {
114
+ callback,
115
+ isCancelled,
116
+ stashAuthToken
117
+ });
114
118
  if (isCancelled == null ? void 0 : isCancelled()) {
115
119
  closeIframe();
116
120
  return;
@@ -238,12 +242,12 @@ var startPayment = async ({ orderId, cardInfo, payData }, options) => {
238
242
  return false;
239
243
  }
240
244
  };
241
- var preCheckEnrollment = async (orderId, cardInfo) => {
245
+ var preCheckEnrollment = async (orderId, cardInfo, stashAuthToken) => {
242
246
  try {
243
247
  const { data } = await import_utils.request.getRequest().post("/h5/pay/order/mw-3ds-pay/v2/" + orderId, {
244
248
  ...cardInfo
245
249
  });
246
- (0, import_payGroup.setPayNumber)(orderId, data == null ? void 0 : data.pay_number);
250
+ await (0, import_payGroup.setPayNumber)(orderId, data == null ? void 0 : data.pay_number, stashAuthToken);
247
251
  if (!(data == null ? void 0 : data.pay_info)) {
248
252
  throw new Error("Card does not support 3DS verification");
249
253
  }
@@ -260,13 +264,13 @@ var preCheckEnrollment = async (orderId, cardInfo) => {
260
264
  }
261
265
  };
262
266
  var checkEnrollment = async (orderId, cardInfo, options) => {
263
- const { callback, isCancelled } = options || {};
267
+ const { callback, isCancelled, stashAuthToken } = options || {};
264
268
  try {
265
269
  let { data } = await import_utils.request.getRequest().post("/h5/pay/order/mw-3ds-pay/v2/" + orderId, {
266
270
  ...cardInfo
267
271
  });
268
272
  if (isCancelled == null ? void 0 : isCancelled()) return 0;
269
- (0, import_payGroup.setPayNumber)(orderId, data == null ? void 0 : data.pay_number);
273
+ await (0, import_payGroup.setPayNumber)(orderId, data == null ? void 0 : data.pay_number, stashAuthToken);
270
274
  if (!(data == null ? void 0 : data.pay_info)) {
271
275
  return null;
272
276
  }
@@ -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;
@@ -53,7 +53,7 @@ var SuperPayAliPayH5 = (props, ref) => {
53
53
  const [showSuccessBackButton, setShowSuccessBackButton] = (0, import_react.useState)(false);
54
54
  const [statePayNumber, setStatePayNumber] = (0, import_react.useState)("");
55
55
  const context = (0, import_useEngineContext.default)();
56
- const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
56
+ const { interaction, token } = (_a = context.appHelper) == null ? void 0 : _a.utils;
57
57
  const paymentLogger = (0, import_usePaymentLogger.default)({
58
58
  orderId: ((_b = state.payGroup) == null ? void 0 : _b.order_id) || "unknown",
59
59
  step: "2"
@@ -63,7 +63,7 @@ var SuperPayAliPayH5 = (props, ref) => {
63
63
  paymentType: "aliPay"
64
64
  });
65
65
  const init = async ({ payGroup }) => {
66
- var _a2, _b2;
66
+ var _a2, _b2, _c2;
67
67
  paymentLogger.addLog({
68
68
  key: "SuperPayAliPayH5初始化开始",
69
69
  value: ""
@@ -108,7 +108,7 @@ var SuperPayAliPayH5 = (props, ref) => {
108
108
  key: "SuperPayAliPayH5获取支付链接成功",
109
109
  value: ""
110
110
  });
111
- (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
111
+ await (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number, (_c2 = token == null ? void 0 : token.get) == null ? void 0 : _c2.call(token));
112
112
  setStatePayNumber(data == null ? void 0 : data.pay_number);
113
113
  setShowSuccessBackButton(true);
114
114
  paymentLogger.addLog({
@@ -48,13 +48,13 @@ var SuperPayWxPayH5 = (props, ref) => {
48
48
  const { state } = (0, import_react.useContext)(import_model.Context);
49
49
  const [open, setOpen] = (0, import_react.useState)(false);
50
50
  const context = (0, import_useEngineContext.default)();
51
- const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
51
+ const { interaction, token } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
52
52
  const paymentLogger = (0, import_usePaymentLogger.default)({
53
53
  orderId: ((_b = state.payGroup) == null ? void 0 : _b.order_id) || "unknown",
54
54
  step: "2"
55
55
  });
56
56
  const init = async ({ payGroup }) => {
57
- var _a2, _b2;
57
+ var _a2, _b2, _c;
58
58
  paymentLogger.addLog({
59
59
  key: "SuperPayWxPayH5初始化开始",
60
60
  value: ""
@@ -94,7 +94,7 @@ var SuperPayWxPayH5 = (props, ref) => {
94
94
  key: "SuperPayWxPayH5获取支付链接成功",
95
95
  value: ""
96
96
  });
97
- (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number);
97
+ await (0, import_payGroup.setPayNumber)(payGroup == null ? void 0 : payGroup.order_id, data == null ? void 0 : data.pay_number, (_c = token == null ? void 0 : token.get) == null ? void 0 : _c.call(token));
98
98
  paymentLogger.addLog({
99
99
  key: "SuperPayWxPayH5准备跳转微信支付",
100
100
  value: ""
@@ -282,7 +282,7 @@ var WalletPass = (0, import_react.forwardRef)((props, ref) => {
282
282
  changeWalletPass(cards);
283
283
  };
284
284
  const handleRedeem = () => {
285
- onWalletPassChange == null ? void 0 : onWalletPassChange(currentWalletPass);
285
+ onWalletPassChange == null ? void 0 : onWalletPassChange((0, import_utils2.formatWalletPassWithUniquePaymentNumber)(currentWalletPass));
286
286
  setOpen(false);
287
287
  };
288
288
  const 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
+ };
@@ -20,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  var utils_exports = {};
21
21
  __export(utils_exports, {
22
22
  formatMachineCodeServer2CardList: () => formatMachineCodeServer2CardList,
23
+ formatWalletPassWithUniquePaymentNumber: () => formatWalletPassWithUniquePaymentNumber,
23
24
  getDataByIds: () => getDataByIds,
24
25
  getIsWalletCode: () => getIsWalletCode
25
26
  });
@@ -70,9 +71,24 @@ var getDataByIds = (arr, ids) => {
70
71
  var getIsWalletCode = (val) => {
71
72
  return val.startsWith("WL");
72
73
  };
74
+ var formatWalletPassWithUniquePaymentNumber = (currentWalletPass) => {
75
+ return {
76
+ ...currentWalletPass,
77
+ cards: ((currentWalletPass == null ? void 0 : currentWalletPass.cards) || []).map((item) => {
78
+ return {
79
+ ...item,
80
+ metadata: {
81
+ ...item.metadata || {},
82
+ unique_payment_number: (0, import_utils.getUniqueId)()
83
+ }
84
+ };
85
+ })
86
+ };
87
+ };
73
88
  // Annotate the CommonJS export names for ESM import in node:
74
89
  0 && (module.exports = {
75
90
  formatMachineCodeServer2CardList,
91
+ formatWalletPassWithUniquePaymentNumber,
76
92
  getDataByIds,
77
93
  getIsWalletCode
78
94
  });
@@ -81,7 +81,7 @@ var PaymentMethods = (props, ref) => {
81
81
  const GlobePayWxH5Ref2 = (0, import_react.useRef)(null);
82
82
  const GlobePayQrcodeRef2 = (0, import_react.useRef)(null);
83
83
  const context = (0, import_useEngineContext.default)();
84
- const { interaction } = (_a = context.appHelper) == null ? void 0 : _a.utils;
84
+ const { interaction, token } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || {};
85
85
  const dvaStore = (_e = (_d = (_c = (_b = context.appHelper) == null ? void 0 : _b.utils) == null ? void 0 : _c.getStore) == null ? void 0 : _d.call(_c)) == null ? void 0 : _e.getState();
86
86
  const shop = ((_g = (_f = dvaStore == null ? void 0 : dvaStore.core) == null ? void 0 : _f.core) == null ? void 0 : _g.shop) || {};
87
87
  const shopName = (shop == null ? void 0 : shop.name) || "";
@@ -103,6 +103,7 @@ var PaymentMethods = (props, ref) => {
103
103
  if (cards && (waitAmount <= 0 || isOfflinePayment(type))) {
104
104
  try {
105
105
  await (0, import_serve.walletPassPay)((0, import_utils.formatWalletPassParams)(payGroup));
106
+ await (0, import_payGroup.clearStashPayGroup)(payGroup.order_id);
106
107
  (0, import_payGroup.syncPayGroupToStorage)({
107
108
  ...payGroup,
108
109
  walletPass: {
@@ -133,6 +134,7 @@ var PaymentMethods = (props, ref) => {
133
134
  if (waitAmount <= 0) {
134
135
  try {
135
136
  (0, import_payGroup.removePayGroupFromStorage)(payGroup.order_id);
137
+ await (0, import_payGroup.clearStashPayGroup)(payGroup.order_id);
136
138
  props.payCallback({ key: "success" });
137
139
  } catch (err) {
138
140
  (0, import_utils2.sendWarningLog)({
@@ -157,12 +159,15 @@ var PaymentMethods = (props, ref) => {
157
159
  if (!(0, import_utils2.isJson)(strResult)) return;
158
160
  const result = JSON.parse(strResult);
159
161
  const { type, pay_number, order_id } = result;
160
- if (type && order_id && pay_number) {
161
- (0, import_payGroup.setPayNumber)(order_id, pay_number);
162
- }
163
- props.payCallback({
164
- key: "success"
165
- });
162
+ void (async () => {
163
+ var _a3;
164
+ if (type && order_id && pay_number) {
165
+ await (0, import_payGroup.setPayNumber)(order_id, pay_number, (_a3 = token == null ? void 0 : token.get) == null ? void 0 : _a3.call(token));
166
+ }
167
+ props.payCallback({
168
+ key: "success"
169
+ });
170
+ })();
166
171
  });
167
172
  }
168
173
  }, []);
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { WalletPassDataType } from '../../../PaymentMethods/WalletPass/serve';
2
3
  import './index.less';
3
4
  interface WalletUseListProps {
@@ -197,7 +197,11 @@ var ToCPay = (props, ref) => {
197
197
  (item) => {
198
198
  return {
199
199
  ...item,
200
- customer_id: customer_id || item.customer_id
200
+ customer_id: customer_id || item.customer_id,
201
+ metadata: {
202
+ ...item.metadata || {},
203
+ unique_payment_number: (0, import_utils.getUniqueId)()
204
+ }
201
205
  };
202
206
  }
203
207
  );
@@ -53,6 +53,7 @@ declare const _default: {
53
53
  'tocPay.text.continuePay': string;
54
54
  'tocPay.text.leave': string;
55
55
  'tocPay.text.getParamsFail': string;
56
+ 'tocPay.text.payGroupStashFail': string;
56
57
  'tocPay.text.checkingCard': string;
57
58
  'tocPay.text.processingPayment': string;
58
59
  'tocPay.text.securityCheckRequired': string;
@@ -178,6 +179,7 @@ declare const _default: {
178
179
  'tocPay.text.continuePay': string;
179
180
  'tocPay.text.leave': string;
180
181
  'tocPay.text.getParamsFail': string;
182
+ 'tocPay.text.payGroupStashFail': string;
181
183
  'tocPay.text.checkingCard': string;
182
184
  'tocPay.text.processingPayment': string;
183
185
  'tocPay.text.securityCheckRequired': string;
@@ -302,6 +304,7 @@ declare const _default: {
302
304
  'tocPay.text.continuePay': string;
303
305
  'tocPay.text.leave': string;
304
306
  'tocPay.text.getParamsFail': string;
307
+ 'tocPay.text.payGroupStashFail': string;
305
308
  'tocPay.text.checkingCard': string;
306
309
  'tocPay.text.processingPayment': string;
307
310
  'tocPay.text.securityCheckRequired': string;
@@ -426,6 +429,7 @@ declare const _default: {
426
429
  'tocPay.text.continuePay': string;
427
430
  'tocPay.text.leave': string;
428
431
  'tocPay.text.getParamsFail': string;
432
+ 'tocPay.text.payGroupStashFail': string;
429
433
  'tocPay.text.checkingCard': string;
430
434
  'tocPay.text.processingPayment': string;
431
435
  'tocPay.text.securityCheckRequired': string;
@@ -551,6 +555,7 @@ declare const _default: {
551
555
  'tocPay.text.continuePay': string;
552
556
  'tocPay.text.leave': string;
553
557
  'tocPay.text.getParamsFail': string;
558
+ 'tocPay.text.payGroupStashFail': string;
554
559
  'tocPay.text.checkingCard': string;
555
560
  'tocPay.text.processingPayment': string;
556
561
  'tocPay.text.securityCheckRequired': string;