@pisell/private-materials 6.2.51 → 6.2.52

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 (808) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +145 -143
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +24 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +24 -9
  11. package/es/components/Sales/Event/Detail.js +4 -3
  12. package/es/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  13. package/es/components/appointmentBooking/components/Cart/Item/index.js +3 -2
  14. package/es/components/appointmentBooking/components/ConfirmInformation/index.js +273 -76
  15. package/es/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  16. package/es/components/appointmentBooking/components/Services/index.js +22 -8
  17. package/es/components/appointmentBooking/hooks.d.ts +1 -0
  18. package/es/components/appointmentBooking/hooks.js +35 -30
  19. package/es/components/appointmentBooking/locales.d.ts +3 -0
  20. package/es/components/appointmentBooking/locales.js +9 -6
  21. package/es/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
  22. package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  23. package/es/components/authentication/admin/AuthMethods/SettingList.js +62 -0
  24. package/es/components/authentication/admin/AuthMethods/SettingList.less +85 -0
  25. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  26. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.js +121 -0
  27. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
  28. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  29. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +15 -0
  30. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  31. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +152 -0
  32. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  33. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +114 -0
  34. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  35. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +170 -0
  36. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  37. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +116 -0
  38. package/es/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  39. package/es/components/authentication/admin/AuthMethods/components/index.js +5 -0
  40. package/es/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  41. package/es/components/authentication/admin/AuthMethods/constants.js +121 -0
  42. package/es/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  43. package/es/components/authentication/admin/AuthMethods/index.js +233 -0
  44. package/es/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  45. package/es/components/authentication/admin/AuthMethods/locales.js +290 -0
  46. package/es/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  47. package/es/components/authentication/admin/AuthMethods/types.js +23 -0
  48. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
  49. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  50. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +447 -0
  51. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  52. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +107 -0
  53. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  54. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +1 -0
  55. package/es/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
  56. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
  57. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  58. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +530 -0
  59. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  60. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +86 -0
  61. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  62. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +1 -0
  63. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  64. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +460 -0
  65. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
  66. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
  67. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  68. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +185 -0
  69. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  70. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +32 -0
  71. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  72. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +1 -0
  73. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
  74. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  75. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +214 -0
  76. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  77. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +71 -0
  78. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  79. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +1 -0
  80. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  81. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +287 -0
  82. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
  83. package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  84. package/es/components/authentication/admin/ChannelAuthSetting/index.js +228 -0
  85. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  86. package/es/components/authentication/admin/ChannelAuthSetting/locales.js +50 -0
  87. package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  88. package/es/components/authentication/admin/ChannelAuthSetting/types.js +1 -0
  89. package/es/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
  90. package/es/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  91. package/es/components/authentication/admin/CustomerAuth/index.js +711 -0
  92. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  93. package/es/components/authentication/admin/CustomerAuth/locales.js +86 -0
  94. package/es/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  95. package/es/components/authentication/admin/CustomerAuth/types.js +1 -0
  96. package/es/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
  97. package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  98. package/es/components/authentication/admin/CustomerOAuthConfig/index.js +545 -0
  99. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  100. package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +137 -0
  101. package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  102. package/es/components/authentication/admin/CustomerOAuthConfig/types.js +1 -0
  103. package/es/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
  104. package/es/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  105. package/es/components/authentication/admin/DeviceAuth/index.js +366 -0
  106. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  107. package/es/components/authentication/admin/DeviceAuth/locales.js +74 -0
  108. package/es/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  109. package/es/components/authentication/admin/DeviceAuth/types.js +1 -0
  110. package/es/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
  111. package/es/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  112. package/es/components/authentication/admin/OAuthConfig/index.js +347 -0
  113. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  114. package/es/components/authentication/admin/OAuthConfig/locales.js +116 -0
  115. package/es/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  116. package/es/components/authentication/admin/OAuthConfig/types.js +1 -0
  117. package/es/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
  118. package/es/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  119. package/es/components/authentication/admin/OrgAdminAuth/index.js +543 -0
  120. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  121. package/es/components/authentication/admin/OrgAdminAuth/locales.js +74 -0
  122. package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  123. package/es/components/authentication/admin/OrgAdminAuth/types.js +1 -0
  124. package/es/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
  125. package/es/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  126. package/es/components/authentication/admin/POSOperatorAuth/index.js +374 -0
  127. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  128. package/es/components/authentication/admin/POSOperatorAuth/locales.js +65 -0
  129. package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  130. package/es/components/authentication/admin/POSOperatorAuth/types.js +1 -0
  131. package/es/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
  132. package/es/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  133. package/es/components/authentication/admin/SaaSAdminAuth/index.js +625 -0
  134. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  135. package/es/components/authentication/admin/SaaSAdminAuth/locales.js +74 -0
  136. package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  137. package/es/components/authentication/admin/SaaSAdminAuth/types.js +1 -0
  138. package/es/components/authentication/admin/index.d.ts +26 -0
  139. package/es/components/authentication/admin/index.js +23 -0
  140. package/es/components/authentication/index.d.ts +0 -0
  141. package/es/components/authentication/index.js +0 -0
  142. package/es/components/booking/components/TabProduct/index.d.ts +1 -0
  143. package/es/components/booking/components/customSelect/index.js +23 -4
  144. package/es/components/booking/components/footer/index.js +4 -1
  145. package/es/components/booking/components/footer/utils.js +63 -48
  146. package/es/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  147. package/es/components/booking/forms/footer.js +26 -21
  148. package/es/components/booking/info/client/index.js +28 -13
  149. package/es/components/booking/info/clientVariant/hooks/useClientFn.js +16 -10
  150. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  151. package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +10 -2
  152. package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
  153. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  154. package/es/components/booking/info/main.js +3 -2
  155. package/es/components/booking/info/model.js +5 -0
  156. package/es/components/booking/info/service/like/index.d.ts +1 -0
  157. package/es/components/booking/info2/index.js +3 -2
  158. package/es/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  159. package/es/components/booking/info2/service/contactInfoMode/index.js +94 -0
  160. package/es/components/booking/locales.d.ts +6 -0
  161. package/es/components/booking/locales.js +12 -3
  162. package/es/components/booking/model.d.ts +4 -0
  163. package/es/components/booking/model.js +3 -0
  164. package/es/components/eftpos/deviceList/index.d.ts +1 -0
  165. package/es/components/eftpos/group/index.d.ts +1 -0
  166. package/es/components/eftpos/icon/apiKey.d.ts +1 -0
  167. package/es/components/eftpos/icon/device.d.ts +1 -0
  168. package/es/components/eftpos/receipt/index.d.ts +1 -0
  169. package/es/components/eftposPay/component/alert/warn.d.ts +1 -0
  170. package/es/components/eftposPay/component/header/titlebar.d.ts +1 -0
  171. package/es/components/eftposPay/component/step/index.d.ts +1 -0
  172. package/es/components/eftposPay/component/step/step.d.ts +1 -0
  173. package/es/components/eftposPay/hooks.d.ts +1 -1
  174. package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +14 -6
  175. package/es/components/eftposPay/linkly/index.js +64 -2
  176. package/es/components/eftposPay/payo/config.js +70 -32
  177. package/es/components/eftposPay/payo/payment.d.ts +66 -0
  178. package/es/components/eftposPay/payo/payment.js +579 -0
  179. package/es/components/eftposPay/store/index.d.ts +1 -1
  180. package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
  181. package/es/components/eftposPay/utils/log/index.d.ts +110 -0
  182. package/es/components/eftposPay/utils/log/index.js +371 -0
  183. package/es/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  184. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  185. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  186. package/es/components/index.d.ts +4 -2
  187. package/es/components/index.js +4 -2
  188. package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +100 -21
  189. package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +58 -8
  190. package/es/components/pay/toC/PaymentMethods/CashManual/index.js +74 -12
  191. package/es/components/pay/toC/PaymentMethods/CustomPayment/index.js +73 -12
  192. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +93 -11
  193. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +90 -12
  194. package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.js +46 -7
  195. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +90 -12
  196. package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +107 -28
  197. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
  198. package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.js +73 -8
  199. package/es/components/pay/toC/PaymentMethods/StripePay/index.js +68 -17
  200. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +126 -23
  201. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +89 -15
  202. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
  203. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +145 -0
  204. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +44 -0
  205. package/es/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
  206. package/es/components/pay/toC/PaymentMethods/hooks/index.js +126 -0
  207. package/es/components/pay/toC/index.js +290 -123
  208. package/es/components/pay/toC/locales.d.ts +12 -0
  209. package/es/components/pay/toC/locales.js +15 -3
  210. package/es/components/pay/toC/model.d.ts +1 -0
  211. package/es/components/pay/toC/serve.d.ts +5 -0
  212. package/es/components/pay/toC/serve.js +9 -1
  213. package/es/components/pay/toC/status.d.ts +1 -0
  214. package/es/components/pay/toC/status.js +3 -0
  215. package/es/components/productExtension/fields/Forms/index.d.ts +1 -0
  216. package/es/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  217. package/es/components/systemSettings/registry/components/GroupModal.js +160 -0
  218. package/es/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  219. package/es/components/systemSettings/registry/components/ItemModal.js +547 -0
  220. package/es/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  221. package/es/components/systemSettings/registry/components/ModuleList.js +54 -0
  222. package/es/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  223. package/es/components/systemSettings/registry/components/SectionList.js +174 -0
  224. package/es/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  225. package/es/components/systemSettings/registry/components/SettingsTable.js +765 -0
  226. package/es/components/systemSettings/registry/components/index.d.ts +4 -0
  227. package/es/components/systemSettings/registry/components/index.js +4 -0
  228. package/es/components/systemSettings/registry/index.d.ts +5 -0
  229. package/es/components/systemSettings/registry/index.js +1059 -0
  230. package/es/components/systemSettings/registry/index.less +410 -0
  231. package/es/components/systemSettings/registry/locales.d.ts +272 -0
  232. package/es/components/systemSettings/registry/locales.js +300 -0
  233. package/es/components/systemSettings/registry/services.d.ts +77 -0
  234. package/es/components/systemSettings/registry/services.js +472 -0
  235. package/es/components/systemSettings/registry/types.d.ts +126 -0
  236. package/es/components/systemSettings/registry/types.js +1 -0
  237. package/es/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  238. package/es/components/systemSettings/registry/utils/typeValidation.js +284 -0
  239. package/es/components/systemSettings/registry/utils/validators.d.ts +8 -0
  240. package/es/components/systemSettings/registry/utils/validators.js +44 -0
  241. package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
  242. package/es/components/ticketBooking/utils/index.d.ts +1 -1
  243. package/es/components/walletList/index.d.ts +0 -25
  244. package/es/components/walletList/index.js +93 -61
  245. package/es/components/walletList/serve.d.ts +4 -0
  246. package/es/components/walletList/serve.js +46 -13
  247. package/es/components/walletList/types/index.d.ts +12 -12
  248. package/es/components/walletList/types/index.js +2 -2
  249. package/es/hooks/usePaymentLogger.d.ts +22 -0
  250. package/es/hooks/usePaymentLogger.js +78 -0
  251. package/es/index.d.ts +8 -0
  252. package/es/index.js +8 -1
  253. package/es/plus/clientName/index.d.ts +1 -0
  254. package/es/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  255. package/es/plus/contactInfo/components/Avatar/index.js +30 -0
  256. package/es/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  257. package/es/plus/contactInfo/components/SwipeAction/index.js +360 -0
  258. package/es/plus/contactInfo/components/SwipeAction/index.less +74 -0
  259. package/es/plus/contactInfo/index.d.ts +6 -0
  260. package/es/plus/contactInfo/index.js +198 -0
  261. package/es/plus/contactInfo/index.less +621 -0
  262. package/es/plus/contactInfo/locales.d.ts +15 -0
  263. package/es/plus/contactInfo/locales.js +14 -0
  264. package/es/plus/contactInfo/types.d.ts +91 -0
  265. package/es/plus/contactInfo/types.js +1 -0
  266. package/es/plus/contactInfo/utils.d.ts +7 -0
  267. package/es/plus/contactInfo/utils.js +50 -0
  268. package/es/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  269. package/es/plus/contactInfoModal/ContactInfoContent.js +74 -0
  270. package/es/plus/contactInfoModal/index.d.ts +41 -0
  271. package/es/plus/contactInfoModal/index.js +155 -0
  272. package/es/plus/contactInfoModal/index.less +19 -0
  273. package/es/plus/contactInfoModal/locales.d.ts +66 -0
  274. package/es/plus/contactInfoModal/locales.js +65 -0
  275. package/es/plus/productSelect/CategoryTabs/index.d.ts +2 -0
  276. package/es/plus/productSelect/CategoryTabs/index.js +6 -3
  277. package/es/plus/productSelect/ProductCard/index.d.ts +3 -1
  278. package/es/plus/productSelect/ProductCard/index.js +14 -5
  279. package/es/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
  280. package/es/plus/productSelect/index.d.ts +3 -2
  281. package/es/plus/productSelect/index.js +33 -8
  282. package/es/plus/productSelect/index.less +4 -0
  283. package/es/plus/productSelect/utils.js +0 -1
  284. package/es/plus/walletEditor/WalletEditor.d.ts +5 -0
  285. package/es/plus/walletEditor/WalletEditor.js +316 -0
  286. package/es/plus/walletEditor/WalletEditor.less +129 -0
  287. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
  288. package/es/plus/walletEditor/components/ImageUpload/index.js +223 -0
  289. package/es/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
  290. package/es/plus/walletEditor/components/JsonEditor/index.js +68 -0
  291. package/es/plus/walletEditor/components/JsonEditor/index.less +4 -0
  292. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
  293. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.js +222 -0
  294. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
  295. package/es/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
  296. package/es/plus/walletEditor/components/relationProduct/index.js +49 -0
  297. package/es/plus/walletEditor/components/relationProduct/index.less +15 -0
  298. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
  299. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +193 -0
  300. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
  301. package/es/plus/walletEditor/index.d.ts +3 -0
  302. package/es/plus/walletEditor/index.js +3 -0
  303. package/es/plus/walletEditor/locales.d.ts +126 -0
  304. package/es/plus/walletEditor/locales.js +143 -0
  305. package/es/plus/walletEditor/types.d.ts +52 -0
  306. package/es/plus/walletEditor/types.js +1 -0
  307. package/es/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
  308. package/es/plus/walletPassGallery/components/footerButton/index.js +245 -0
  309. package/es/plus/walletPassGallery/components/footerButton/index.less +48 -0
  310. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
  311. package/es/plus/walletPassGallery/components/passDetail/index.js +278 -0
  312. package/es/plus/walletPassGallery/components/passDetail/index.less +61 -0
  313. package/es/plus/walletPassGallery/components/passList/index.d.ts +11 -0
  314. package/es/plus/walletPassGallery/components/passList/index.js +115 -0
  315. package/es/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
  316. package/es/plus/walletPassGallery/components/recharge/index.js +145 -0
  317. package/es/plus/walletPassGallery/components/recharge/index.less +16 -0
  318. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
  319. package/es/plus/walletPassGallery/components/timelineSection/index.js +176 -0
  320. package/es/plus/walletPassGallery/components/timelineSection/index.less +67 -0
  321. package/es/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
  322. package/es/plus/walletPassGallery/components/usageRule/index.js +248 -0
  323. package/es/plus/walletPassGallery/components/usageRule/index.less +157 -0
  324. package/es/plus/walletPassGallery/index.d.ts +6 -0
  325. package/es/plus/walletPassGallery/index.js +604 -0
  326. package/es/plus/walletPassGallery/index.less +115 -0
  327. package/es/plus/walletPassGallery/locales.d.ts +270 -0
  328. package/es/plus/walletPassGallery/locales.js +279 -0
  329. package/es/plus/walletPassGallery/serve.d.ts +218 -0
  330. package/es/plus/walletPassGallery/serve.js +289 -0
  331. package/es/pro/Login2.0/AuthModal.d.ts +143 -0
  332. package/es/pro/Login2.0/AuthModal.js +630 -0
  333. package/es/pro/Login2.0/Login2.d.ts +61 -0
  334. package/es/pro/Login2.0/Login2.js +2236 -0
  335. package/es/pro/Login2.0/Register2.d.ts +65 -0
  336. package/es/pro/Login2.0/Register2.js +1502 -0
  337. package/es/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
  338. package/es/pro/Login2.0/components/ForgotPasswordFlow.js +330 -0
  339. package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  340. package/es/pro/Login2.0/components/LegalTerms.js +51 -0
  341. package/es/pro/Login2.0/components/LegalTerms.less +74 -0
  342. package/es/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  343. package/es/pro/Login2.0/components/LoginCodeInput.js +207 -0
  344. package/es/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
  345. package/es/pro/Login2.0/components/OAuthButtonGroup.js +55 -0
  346. package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  347. package/es/pro/Login2.0/components/PhoneInput.js +414 -0
  348. package/es/pro/Login2.0/components/PhoneInput.less +148 -0
  349. package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  350. package/es/pro/Login2.0/components/phoneValidation.js +228 -0
  351. package/es/pro/Login2.0/hooks/index.d.ts +2 -0
  352. package/es/pro/Login2.0/hooks/index.js +1 -0
  353. package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  354. package/es/pro/Login2.0/hooks/usePasswordValidationRules.js +87 -0
  355. package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  356. package/es/pro/Login2.0/hooks/useRegisterFlow.js +158 -0
  357. package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  358. package/es/pro/Login2.0/hooks/useRegistrationMethods.js +31 -0
  359. package/es/pro/Login2.0/index.js +8 -0
  360. package/es/pro/Login2.0/index.less +1009 -0
  361. package/es/pro/Login2.0/locales.d.ts +543 -0
  362. package/es/pro/Login2.0/locales.js +622 -0
  363. package/es/pro/Login2.0/shared/Header.d.ts +11 -0
  364. package/es/pro/Login2.0/shared/Header.js +42 -0
  365. package/es/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
  366. package/es/pro/Login2.0/shared/OAuthButtons.js +59 -0
  367. package/es/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  368. package/es/pro/Login2.0/shared/registerFlow.js +171 -0
  369. package/es/pro/Login2.0/shared/types.d.ts +232 -0
  370. package/es/pro/Login2.0/shared/types.js +1 -0
  371. package/es/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  372. package/es/pro/Login2.0/steps/CodeInput.js +209 -0
  373. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  374. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.js +35 -0
  375. package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
  376. package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +25 -0
  377. package/es/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
  378. package/es/pro/Login2.0/steps/EmailLinkExpired.js +33 -0
  379. package/es/pro/Login2.0/steps/SetPassword.d.ts +19 -0
  380. package/es/pro/Login2.0/steps/SetPassword.js +148 -0
  381. package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  382. package/es/pro/Login2.0/steps/VerificationSuccess.js +35 -0
  383. package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  384. package/es/pro/Login2.0/steps/VerifyingEmailLink.js +17 -0
  385. package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  386. package/es/pro/Login2.0/steps/WaitEmailLink.js +54 -0
  387. package/es/pro/Login2.0/steps/index.d.ts +19 -0
  388. package/es/pro/Login2.0/steps/index.js +11 -0
  389. package/es/pro/Login2.0/steps/steps.less +423 -0
  390. package/es/pro/Login2.0/types.d.ts +167 -0
  391. package/es/pro/Login2.0/types.js +1 -0
  392. package/es/pro/pisellPaymentList/example.d.ts +20 -0
  393. package/es/pro/pisellPaymentList/example.js +434 -0
  394. package/lib/components/Sales/Event/Detail.js +3 -2
  395. package/lib/components/appointmentBooking/components/Cart/Item/index.d.ts +1 -1
  396. package/lib/components/appointmentBooking/components/Cart/Item/index.js +5 -3
  397. package/lib/components/appointmentBooking/components/ConfirmInformation/index.js +156 -13
  398. package/lib/components/appointmentBooking/components/ConfirmInformation/index.less +15 -0
  399. package/lib/components/appointmentBooking/components/Services/index.js +8 -3
  400. package/lib/components/appointmentBooking/hooks.d.ts +1 -0
  401. package/lib/components/appointmentBooking/hooks.js +76 -35
  402. package/lib/components/appointmentBooking/locales.d.ts +3 -0
  403. package/lib/components/appointmentBooking/locales.js +6 -3
  404. package/lib/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
  405. package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  406. package/lib/components/authentication/admin/AuthMethods/SettingList.js +75 -0
  407. package/lib/components/authentication/admin/AuthMethods/SettingList.less +85 -0
  408. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  409. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.js +126 -0
  410. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
  411. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  412. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +42 -0
  413. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  414. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +108 -0
  415. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  416. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +108 -0
  417. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  418. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +93 -0
  419. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  420. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +85 -0
  421. package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  422. package/lib/components/authentication/admin/AuthMethods/components/index.js +51 -0
  423. package/lib/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  424. package/lib/components/authentication/admin/AuthMethods/constants.js +115 -0
  425. package/lib/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  426. package/lib/components/authentication/admin/AuthMethods/index.js +196 -0
  427. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  428. package/lib/components/authentication/admin/AuthMethods/locales.js +314 -0
  429. package/lib/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  430. package/lib/components/authentication/admin/AuthMethods/types.js +53 -0
  431. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
  432. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  433. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +311 -0
  434. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  435. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +131 -0
  436. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  437. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +17 -0
  438. package/lib/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
  439. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
  440. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  441. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +410 -0
  442. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  443. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +110 -0
  444. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  445. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +17 -0
  446. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  447. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +383 -0
  448. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
  449. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
  450. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  451. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +148 -0
  452. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  453. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +56 -0
  454. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  455. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +17 -0
  456. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
  457. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  458. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +206 -0
  459. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  460. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +95 -0
  461. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  462. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +17 -0
  463. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  464. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +246 -0
  465. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
  466. package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  467. package/lib/components/authentication/admin/ChannelAuthSetting/index.js +177 -0
  468. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  469. package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +74 -0
  470. package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  471. package/lib/components/authentication/admin/ChannelAuthSetting/types.js +17 -0
  472. package/lib/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
  473. package/lib/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  474. package/lib/components/authentication/admin/CustomerAuth/index.js +507 -0
  475. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  476. package/lib/components/authentication/admin/CustomerAuth/locales.js +110 -0
  477. package/lib/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  478. package/lib/components/authentication/admin/CustomerAuth/types.js +17 -0
  479. package/lib/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
  480. package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  481. package/lib/components/authentication/admin/CustomerOAuthConfig/index.js +331 -0
  482. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  483. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +161 -0
  484. package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  485. package/lib/components/authentication/admin/CustomerOAuthConfig/types.js +17 -0
  486. package/lib/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
  487. package/lib/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  488. package/lib/components/authentication/admin/DeviceAuth/index.js +254 -0
  489. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  490. package/lib/components/authentication/admin/DeviceAuth/locales.js +98 -0
  491. package/lib/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  492. package/lib/components/authentication/admin/DeviceAuth/types.js +17 -0
  493. package/lib/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
  494. package/lib/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  495. package/lib/components/authentication/admin/OAuthConfig/index.js +226 -0
  496. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  497. package/lib/components/authentication/admin/OAuthConfig/locales.js +140 -0
  498. package/lib/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  499. package/lib/components/authentication/admin/OAuthConfig/types.js +17 -0
  500. package/lib/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
  501. package/lib/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  502. package/lib/components/authentication/admin/OrgAdminAuth/index.js +398 -0
  503. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  504. package/lib/components/authentication/admin/OrgAdminAuth/locales.js +98 -0
  505. package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  506. package/lib/components/authentication/admin/OrgAdminAuth/types.js +17 -0
  507. package/lib/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
  508. package/lib/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  509. package/lib/components/authentication/admin/POSOperatorAuth/index.js +262 -0
  510. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  511. package/lib/components/authentication/admin/POSOperatorAuth/locales.js +89 -0
  512. package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  513. package/lib/components/authentication/admin/POSOperatorAuth/types.js +17 -0
  514. package/lib/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
  515. package/lib/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  516. package/lib/components/authentication/admin/SaaSAdminAuth/index.js +481 -0
  517. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  518. package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +98 -0
  519. package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  520. package/lib/components/authentication/admin/SaaSAdminAuth/types.js +17 -0
  521. package/lib/components/authentication/admin/index.d.ts +26 -0
  522. package/lib/components/authentication/admin/index.js +83 -0
  523. package/lib/components/authentication/index.d.ts +0 -0
  524. package/lib/components/authentication/index.js +0 -0
  525. package/lib/components/booking/components/TabProduct/index.d.ts +1 -0
  526. package/lib/components/booking/components/customSelect/index.js +27 -4
  527. package/lib/components/booking/components/footer/index.js +4 -1
  528. package/lib/components/booking/components/footer/utils.js +67 -36
  529. package/lib/components/booking/components/formItemChildrenWrap/index.d.ts +1 -0
  530. package/lib/components/booking/forms/footer.js +26 -14
  531. package/lib/components/booking/info/client/index.js +14 -1
  532. package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +7 -2
  533. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
  534. package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +11 -4
  535. package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
  536. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  537. package/lib/components/booking/info/main.js +5 -4
  538. package/lib/components/booking/info/model.js +5 -0
  539. package/lib/components/booking/info/service/like/index.d.ts +1 -0
  540. package/lib/components/booking/info2/index.js +5 -4
  541. package/lib/components/booking/info2/service/contactInfoMode/index.d.ts +2 -0
  542. package/lib/components/booking/info2/service/contactInfoMode/index.js +111 -0
  543. package/lib/components/booking/locales.d.ts +6 -0
  544. package/lib/components/booking/locales.js +12 -3
  545. package/lib/components/booking/model.d.ts +4 -0
  546. package/lib/components/booking/model.js +3 -0
  547. package/lib/components/eftpos/deviceList/index.d.ts +1 -0
  548. package/lib/components/eftpos/group/index.d.ts +1 -0
  549. package/lib/components/eftpos/icon/apiKey.d.ts +1 -0
  550. package/lib/components/eftpos/icon/device.d.ts +1 -0
  551. package/lib/components/eftpos/receipt/index.d.ts +1 -0
  552. package/lib/components/eftposPay/component/alert/warn.d.ts +1 -0
  553. package/lib/components/eftposPay/component/header/titlebar.d.ts +1 -0
  554. package/lib/components/eftposPay/component/step/index.d.ts +1 -0
  555. package/lib/components/eftposPay/component/step/step.d.ts +1 -0
  556. package/lib/components/eftposPay/hooks.d.ts +1 -1
  557. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +12 -6
  558. package/lib/components/eftposPay/linkly/index.js +31 -1
  559. package/lib/components/eftposPay/payo/config.js +98 -73
  560. package/lib/components/eftposPay/payo/payment.d.ts +66 -0
  561. package/lib/components/eftposPay/payo/payment.js +357 -0
  562. package/lib/components/eftposPay/store/index.d.ts +1 -1
  563. package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
  564. package/lib/components/eftposPay/utils/log/index.d.ts +110 -0
  565. package/lib/components/eftposPay/utils/log/index.js +294 -0
  566. package/lib/components/eventBooking/components/Provider/Cart/Deposit/index.d.ts +1 -0
  567. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
  568. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
  569. package/lib/components/index.d.ts +4 -2
  570. package/lib/components/index.js +23 -1
  571. package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +67 -8
  572. package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +52 -15
  573. package/lib/components/pay/toC/PaymentMethods/CashManual/index.js +60 -2
  574. package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.js +60 -2
  575. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +66 -2
  576. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +61 -0
  577. package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.js +29 -0
  578. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +61 -0
  579. package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +77 -9
  580. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +13 -11
  581. package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.js +72 -10
  582. package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +47 -5
  583. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +90 -6
  584. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +63 -3
  585. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
  586. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +88 -0
  587. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +44 -0
  588. package/lib/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
  589. package/lib/components/pay/toC/PaymentMethods/hooks/index.js +90 -0
  590. package/lib/components/pay/toC/index.js +198 -51
  591. package/lib/components/pay/toC/locales.d.ts +12 -0
  592. package/lib/components/pay/toC/locales.js +15 -3
  593. package/lib/components/pay/toC/model.d.ts +1 -0
  594. package/lib/components/pay/toC/serve.d.ts +5 -0
  595. package/lib/components/pay/toC/serve.js +3 -0
  596. package/lib/components/pay/toC/status.d.ts +1 -0
  597. package/lib/components/pay/toC/status.js +5 -0
  598. package/lib/components/productExtension/fields/Forms/index.d.ts +1 -0
  599. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +4 -0
  600. package/lib/components/systemSettings/registry/components/GroupModal.js +177 -0
  601. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +4 -0
  602. package/lib/components/systemSettings/registry/components/ItemModal.js +508 -0
  603. package/lib/components/systemSettings/registry/components/ModuleList.d.ts +4 -0
  604. package/lib/components/systemSettings/registry/components/ModuleList.js +71 -0
  605. package/lib/components/systemSettings/registry/components/SectionList.d.ts +4 -0
  606. package/lib/components/systemSettings/registry/components/SectionList.js +181 -0
  607. package/lib/components/systemSettings/registry/components/SettingsTable.d.ts +4 -0
  608. package/lib/components/systemSettings/registry/components/SettingsTable.js +575 -0
  609. package/lib/components/systemSettings/registry/components/index.d.ts +4 -0
  610. package/lib/components/systemSettings/registry/components/index.js +48 -0
  611. package/lib/components/systemSettings/registry/index.d.ts +5 -0
  612. package/lib/components/systemSettings/registry/index.js +529 -0
  613. package/lib/components/systemSettings/registry/index.less +410 -0
  614. package/lib/components/systemSettings/registry/locales.d.ts +272 -0
  615. package/lib/components/systemSettings/registry/locales.js +324 -0
  616. package/lib/components/systemSettings/registry/services.d.ts +77 -0
  617. package/lib/components/systemSettings/registry/services.js +290 -0
  618. package/lib/components/systemSettings/registry/types.d.ts +126 -0
  619. package/lib/components/systemSettings/registry/types.js +17 -0
  620. package/lib/components/systemSettings/registry/utils/typeValidation.d.ts +16 -0
  621. package/lib/components/systemSettings/registry/utils/typeValidation.js +228 -0
  622. package/lib/components/systemSettings/registry/utils/validators.d.ts +8 -0
  623. package/lib/components/systemSettings/registry/utils/validators.js +54 -0
  624. package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
  625. package/lib/components/ticketBooking/utils/index.d.ts +1 -1
  626. package/lib/components/walletList/index.d.ts +0 -25
  627. package/lib/components/walletList/index.js +88 -47
  628. package/lib/components/walletList/serve.d.ts +4 -0
  629. package/lib/components/walletList/serve.js +12 -0
  630. package/lib/components/walletList/types/index.d.ts +12 -12
  631. package/lib/hooks/usePaymentLogger.d.ts +22 -0
  632. package/lib/hooks/usePaymentLogger.js +69 -0
  633. package/lib/index.d.ts +8 -0
  634. package/lib/index.js +41 -0
  635. package/lib/plus/clientName/index.d.ts +1 -0
  636. package/lib/plus/contactInfo/components/Avatar/index.d.ts +10 -0
  637. package/lib/plus/contactInfo/components/Avatar/index.js +56 -0
  638. package/lib/plus/contactInfo/components/SwipeAction/index.d.ts +46 -0
  639. package/lib/plus/contactInfo/components/SwipeAction/index.js +373 -0
  640. package/lib/plus/contactInfo/components/SwipeAction/index.less +74 -0
  641. package/lib/plus/contactInfo/index.d.ts +6 -0
  642. package/lib/plus/contactInfo/index.js +226 -0
  643. package/lib/plus/contactInfo/index.less +621 -0
  644. package/lib/plus/contactInfo/locales.d.ts +15 -0
  645. package/lib/plus/contactInfo/locales.js +38 -0
  646. package/lib/plus/contactInfo/types.d.ts +91 -0
  647. package/lib/plus/contactInfo/types.js +17 -0
  648. package/lib/plus/contactInfo/utils.d.ts +7 -0
  649. package/lib/plus/contactInfo/utils.js +64 -0
  650. package/lib/plus/contactInfoModal/ContactInfoContent.d.ts +3 -0
  651. package/lib/plus/contactInfoModal/ContactInfoContent.js +129 -0
  652. package/lib/plus/contactInfoModal/index.d.ts +41 -0
  653. package/lib/plus/contactInfoModal/index.js +139 -0
  654. package/lib/plus/contactInfoModal/index.less +19 -0
  655. package/lib/plus/contactInfoModal/locales.d.ts +66 -0
  656. package/lib/plus/contactInfoModal/locales.js +89 -0
  657. package/lib/plus/productSelect/CategoryTabs/index.d.ts +2 -0
  658. package/lib/plus/productSelect/CategoryTabs/index.js +84 -69
  659. package/lib/plus/productSelect/ProductCard/index.d.ts +3 -1
  660. package/lib/plus/productSelect/ProductCard/index.js +18 -4
  661. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
  662. package/lib/plus/productSelect/index.d.ts +3 -2
  663. package/lib/plus/productSelect/index.js +20 -6
  664. package/lib/plus/productSelect/index.less +4 -0
  665. package/lib/plus/productSelect/utils.js +0 -1
  666. package/lib/plus/walletEditor/WalletEditor.d.ts +5 -0
  667. package/lib/plus/walletEditor/WalletEditor.js +354 -0
  668. package/lib/plus/walletEditor/WalletEditor.less +129 -0
  669. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
  670. package/lib/plus/walletEditor/components/ImageUpload/index.js +201 -0
  671. package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
  672. package/lib/plus/walletEditor/components/JsonEditor/index.js +89 -0
  673. package/lib/plus/walletEditor/components/JsonEditor/index.less +4 -0
  674. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
  675. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.js +176 -0
  676. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
  677. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
  678. package/lib/plus/walletEditor/components/relationProduct/index.js +73 -0
  679. package/lib/plus/walletEditor/components/relationProduct/index.less +15 -0
  680. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
  681. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +211 -0
  682. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
  683. package/lib/plus/walletEditor/index.d.ts +3 -0
  684. package/lib/plus/walletEditor/index.js +42 -0
  685. package/lib/plus/walletEditor/locales.d.ts +126 -0
  686. package/lib/plus/walletEditor/locales.js +167 -0
  687. package/lib/plus/walletEditor/types.d.ts +52 -0
  688. package/lib/plus/walletEditor/types.js +17 -0
  689. package/lib/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
  690. package/lib/plus/walletPassGallery/components/footerButton/index.js +187 -0
  691. package/lib/plus/walletPassGallery/components/footerButton/index.less +48 -0
  692. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
  693. package/lib/plus/walletPassGallery/components/passDetail/index.js +290 -0
  694. package/lib/plus/walletPassGallery/components/passDetail/index.less +61 -0
  695. package/lib/plus/walletPassGallery/components/passList/index.d.ts +11 -0
  696. package/lib/plus/walletPassGallery/components/passList/index.js +136 -0
  697. package/lib/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
  698. package/lib/plus/walletPassGallery/components/recharge/index.js +152 -0
  699. package/lib/plus/walletPassGallery/components/recharge/index.less +16 -0
  700. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
  701. package/lib/plus/walletPassGallery/components/timelineSection/index.js +212 -0
  702. package/lib/plus/walletPassGallery/components/timelineSection/index.less +67 -0
  703. package/lib/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
  704. package/lib/plus/walletPassGallery/components/usageRule/index.js +209 -0
  705. package/lib/plus/walletPassGallery/components/usageRule/index.less +157 -0
  706. package/lib/plus/walletPassGallery/index.d.ts +6 -0
  707. package/lib/plus/walletPassGallery/index.js +500 -0
  708. package/lib/plus/walletPassGallery/index.less +115 -0
  709. package/lib/plus/walletPassGallery/locales.d.ts +270 -0
  710. package/lib/plus/walletPassGallery/locales.js +299 -0
  711. package/lib/plus/walletPassGallery/serve.d.ts +218 -0
  712. package/lib/plus/walletPassGallery/serve.js +98 -0
  713. package/lib/pro/Login2.0/AuthModal.d.ts +143 -0
  714. package/lib/pro/Login2.0/AuthModal.js +503 -0
  715. package/lib/pro/Login2.0/Login2.d.ts +61 -0
  716. package/lib/pro/Login2.0/Login2.js +1545 -0
  717. package/lib/pro/Login2.0/Register2.d.ts +65 -0
  718. package/lib/pro/Login2.0/Register2.js +1063 -0
  719. package/lib/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
  720. package/lib/pro/Login2.0/components/ForgotPasswordFlow.js +213 -0
  721. package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  722. package/lib/pro/Login2.0/components/LegalTerms.js +76 -0
  723. package/lib/pro/Login2.0/components/LegalTerms.less +74 -0
  724. package/lib/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  725. package/lib/pro/Login2.0/components/LoginCodeInput.js +161 -0
  726. package/lib/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
  727. package/lib/pro/Login2.0/components/OAuthButtonGroup.js +87 -0
  728. package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  729. package/lib/pro/Login2.0/components/PhoneInput.js +263 -0
  730. package/lib/pro/Login2.0/components/PhoneInput.less +148 -0
  731. package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  732. package/lib/pro/Login2.0/components/phoneValidation.js +153 -0
  733. package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
  734. package/lib/pro/Login2.0/hooks/index.js +29 -0
  735. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  736. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.js +140 -0
  737. package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  738. package/lib/pro/Login2.0/hooks/useRegisterFlow.js +149 -0
  739. package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  740. package/lib/pro/Login2.0/hooks/useRegistrationMethods.js +51 -0
  741. package/lib/pro/Login2.0/index.js +45 -0
  742. package/lib/pro/Login2.0/index.less +1009 -0
  743. package/lib/pro/Login2.0/locales.d.ts +543 -0
  744. package/lib/pro/Login2.0/locales.js +646 -0
  745. package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
  746. package/lib/pro/Login2.0/shared/Header.js +81 -0
  747. package/lib/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
  748. package/lib/pro/Login2.0/shared/OAuthButtons.js +78 -0
  749. package/lib/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  750. package/lib/pro/Login2.0/shared/registerFlow.js +235 -0
  751. package/lib/pro/Login2.0/shared/types.d.ts +232 -0
  752. package/lib/pro/Login2.0/shared/types.js +17 -0
  753. package/lib/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  754. package/lib/pro/Login2.0/steps/CodeInput.js +160 -0
  755. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  756. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.js +46 -0
  757. package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
  758. package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +51 -0
  759. package/lib/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
  760. package/lib/pro/Login2.0/steps/EmailLinkExpired.js +51 -0
  761. package/lib/pro/Login2.0/steps/SetPassword.d.ts +19 -0
  762. package/lib/pro/Login2.0/steps/SetPassword.js +131 -0
  763. package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  764. package/lib/pro/Login2.0/steps/VerificationSuccess.js +49 -0
  765. package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  766. package/lib/pro/Login2.0/steps/VerifyingEmailLink.js +41 -0
  767. package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  768. package/lib/pro/Login2.0/steps/WaitEmailLink.js +67 -0
  769. package/lib/pro/Login2.0/steps/index.d.ts +19 -0
  770. package/lib/pro/Login2.0/steps/index.js +60 -0
  771. package/lib/pro/Login2.0/steps/steps.less +423 -0
  772. package/lib/pro/Login2.0/types.d.ts +167 -0
  773. package/lib/pro/Login2.0/types.js +17 -0
  774. package/lib/pro/pisellPaymentList/example.d.ts +20 -0
  775. package/lib/pro/pisellPaymentList/example.js +416 -0
  776. package/lowcode/admin-auth-customer-auth/meta.ts +29 -0
  777. package/lowcode/admin-auth-customer-oauth-config/meta.ts +55 -0
  778. package/lowcode/admin-auth-device-auth/meta.ts +30 -0
  779. package/lowcode/admin-auth-methods/meta.ts +385 -0
  780. package/lowcode/admin-auth-oauth-config/meta.ts +29 -0
  781. package/lowcode/admin-auth-online-shop-auth/meta.ts +29 -0
  782. package/lowcode/admin-auth-org-admin-auth/meta.ts +29 -0
  783. package/lowcode/admin-auth-pos-operator-auth/meta.ts +30 -0
  784. package/lowcode/admin-auth-saas-admin-auth/meta.ts +29 -0
  785. package/lowcode/admin-auth-saas-managerment-auth/meta.ts +30 -0
  786. package/lowcode/admin-setting-list/meta.ts +125 -0
  787. package/lowcode/authmodal/meta.ts +395 -0
  788. package/lowcode/contact-info/fragments/cardStyle.ts +68 -0
  789. package/lowcode/contact-info/fragments/nameStyle.ts +33 -0
  790. package/lowcode/contact-info/fragments/pisellAvatar.ts +103 -0
  791. package/lowcode/contact-info/fragments/textStyle.ts +33 -0
  792. package/lowcode/contact-info/meta.ts +199 -0
  793. package/lowcode/contact-info-modal/meta.ts +98 -0
  794. package/lowcode/login2/CONFIG.md +447 -0
  795. package/lowcode/login2/TEST_CONFIG.md +324 -0
  796. package/lowcode/login2/VERIFICATION_METHODS.md +364 -0
  797. package/lowcode/login2/meta.ts +560 -0
  798. package/lowcode/login2/snippets.ts +124 -0
  799. package/lowcode/pro-register/meta.ts +385 -0
  800. package/lowcode/register2/meta.ts +562 -0
  801. package/lowcode/register2/snippets.ts +257 -0
  802. package/lowcode/settings-registry/meta.ts +29 -0
  803. package/lowcode/sortable-wallet-pass-types/meta.ts +267 -0
  804. package/lowcode/wallet-editor/meta.ts +57 -0
  805. package/lowcode/wallet-editor/snippets.ts +13 -0
  806. package/lowcode/wallet-pass-gallery/meta.ts +35 -0
  807. package/package.json +7 -5
  808. package/lowcode/wallet/meta.ts +0 -79
@@ -17,7 +17,7 @@ import React, { useState, useMemo, useContext, useRef, useImperativeHandle, forw
17
17
  import { Decimal } from 'decimal.js';
18
18
  import { useMemoizedFn, useUpdateEffect } from 'ahooks';
19
19
  import { PisellModal, PisellText, PisellContainer, PisellLoading, PisellToast } from '@pisell/materials';
20
- import { detectIncognito, locales, copyToClipboard, sendWarningLog } from '@pisell/utils';
20
+ import { detectIncognito, locales, copyToClipboard, getUniqueId } from '@pisell/utils';
21
21
  import PayCountdown from "./PayCountdown";
22
22
  import PayAmount from "./PayAmount";
23
23
  import WalletPassBlock from "./WalletPassBlock";
@@ -26,10 +26,12 @@ import PaymentMethods from "./PaymentMethods";
26
26
  import { getPaymentsAndWalletPass, getPaymentInit, getWalletNameAndPopupStatus } from "./serve";
27
27
  import { Provider, Context } from "./model";
28
28
  import useEngineContext from "../../../hooks/useEngineContext";
29
+ import usePaymentLogger from "../../../hooks/usePaymentLogger";
29
30
  import { request } from "../../../utils";
30
31
  import { removePayGroupFromStorage } from "./payGroup";
31
32
  import localeTexts from "./locales";
32
33
  import { getIsWalletPassAndTripartitePayment } from "./utils";
34
+ import { saleChannelMap } from "./status";
33
35
  import "./index.less";
34
36
  /**
35
37
  * @title: C端支付
@@ -41,7 +43,7 @@ import "./index.less";
41
43
  * @Date: 2024-08-16 10:43
42
44
  */
43
45
  var ToCPay = function ToCPay(props, ref) {
44
- var _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _dvaStore$core, _dvaStore$core2, _state$payGroup6, _state$payGroup17, _state$order, _state$order2, _state$payGroup22, _state$payGroup23, _state$payGroup24;
46
+ var _state$payGroup, _context$appHelper$ut, _context$appHelper$ut2, _context$appHelper$ut3, _context$appHelper$ut4, _dvaStore$core, _dvaStore$core2, _state$payGroup7, _state$payGroup25, _state$order, _state$order2, _state$payGroup30, _state$payGroup31, _state$payGroup32;
45
47
  //@ts-ignore
46
48
  var _useContext = useContext(Context),
47
49
  state = _useContext.state,
@@ -73,6 +75,12 @@ var ToCPay = function ToCPay(props, ref) {
73
75
  var walletPassBlockRef = useRef(null);
74
76
  var context = useEngineContext();
75
77
 
78
+ // 支付日志记录器
79
+ var paymentLogger = usePaymentLogger({
80
+ orderId: ((_state$payGroup = state.payGroup) === null || _state$payGroup === void 0 ? void 0 : _state$payGroup.order_id) || 'unknown',
81
+ step: '1'
82
+ });
83
+
76
84
  // 退出提醒
77
85
  var _useState9 = useState(false),
78
86
  _useState10 = _slicedToArray(_useState9, 2),
@@ -114,7 +122,8 @@ var ToCPay = function ToCPay(props, ref) {
114
122
  status: 'init',
115
123
  // 将支付回调储存在store, 方便其他模块调用
116
124
  payCallback: props.callback,
117
- history: (_context$appHelper$ut5 = context.appHelper.utils) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.history
125
+ history: (_context$appHelper$ut5 = context.appHelper.utils) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.history,
126
+ front_order_uuid: getUniqueId('front_order_uuid_')
118
127
  // 支付组
119
128
  // payGroup: {
120
129
  // order_id: initProps?.order?.order_id,
@@ -134,11 +143,12 @@ var ToCPay = function ToCPay(props, ref) {
134
143
  while (1) switch (_context.prev = _context.next) {
135
144
  case 0:
136
145
  sale_channel = (initProps === null || initProps === void 0 || (_initProps$order = initProps.order) === null || _initProps$order === void 0 ? void 0 : _initProps$order.sale_channel) || 'online-store';
137
- _context.next = 3;
146
+ sale_channel = saleChannelMap[sale_channel] || sale_channel;
147
+ _context.next = 4;
138
148
  return getWalletNameAndPopupStatus({
139
149
  setting_type: "".concat(sale_channel, "-wallet-setting")
140
150
  });
141
- case 3:
151
+ case 4:
142
152
  _yield$getWalletNameA = _context.sent;
143
153
  wallet = _yield$getWalletNameA.wallet;
144
154
  wallet_setting = _yield$getWalletNameA.wallet_setting;
@@ -156,7 +166,7 @@ var ToCPay = function ToCPay(props, ref) {
156
166
  type: 'setWalletSetting',
157
167
  payload: setting
158
168
  });
159
- case 9:
169
+ case 10:
160
170
  case "end":
161
171
  return _context.stop();
162
172
  }
@@ -177,11 +187,16 @@ var ToCPay = function ToCPay(props, ref) {
177
187
  */
178
188
  var init = /*#__PURE__*/function () {
179
189
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(initProps) {
180
- var renderType;
190
+ var renderType, _initProps$order2;
181
191
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
182
192
  while (1) switch (_context2.prev = _context2.next) {
183
193
  case 0:
184
- renderType = initProps.renderType;
194
+ renderType = initProps.renderType; // 记录初始化开始
195
+ paymentLogger.addLog({
196
+ key: '初始化开始',
197
+ value: ""
198
+ });
199
+ _context2.prev = 2;
185
200
  setRenderType(renderType !== null && renderType !== void 0 ? renderType : 'modal');
186
201
  // 打开弹窗
187
202
  setOpen(true);
@@ -199,16 +214,39 @@ var ToCPay = function ToCPay(props, ref) {
199
214
  removePayGroupFromStorage(initProps.order.order_id);
200
215
 
201
216
  // 获取支付列表和钱包
202
- _context2.next = 9;
203
- return _getPaymentsAndWalletPass(initProps.order);
204
- case 9:
205
217
  _context2.next = 11;
206
- return getWalletSetting(initProps);
218
+ return _getPaymentsAndWalletPass(initProps.order);
207
219
  case 11:
220
+ _context2.next = 13;
221
+ return getWalletSetting(initProps);
222
+ case 13:
223
+ // 记录初始化成功
224
+ paymentLogger.addLog({
225
+ key: '初始化成功',
226
+ value: ""
227
+ });
228
+ _context2.next = 21;
229
+ break;
230
+ case 16:
231
+ _context2.prev = 16;
232
+ _context2.t0 = _context2["catch"](2);
233
+ // 记录初始化错误并发送日志
234
+ paymentLogger.addLog({
235
+ key: '初始化错误',
236
+ value: {
237
+ title: "\u8BA2\u5355".concat(initProps === null || initProps === void 0 || (_initProps$order2 = initProps.order) === null || _initProps$order2 === void 0 ? void 0 : _initProps$order2.order_id, " \u521D\u59CB\u5316\u5931\u8D25: ").concat((_context2.t0 === null || _context2.t0 === void 0 ? void 0 : _context2.t0.message) || '未知错误'),
238
+ data: {
239
+ order: initProps === null || initProps === void 0 ? void 0 : initProps.order
240
+ }
241
+ }
242
+ });
243
+ paymentLogger.sendLogs('支付初始化失败', _context2.t0);
244
+ throw _context2.t0;
245
+ case 21:
208
246
  case "end":
209
247
  return _context2.stop();
210
248
  }
211
- }, _callee2);
249
+ }, _callee2, null, [[2, 16]]);
212
250
  }));
213
251
  return function init(_x2) {
214
252
  return _ref2.apply(this, arguments);
@@ -225,20 +263,36 @@ var ToCPay = function ToCPay(props, ref) {
225
263
  */
226
264
  var _getPaymentsAndWalletPass = /*#__PURE__*/function () {
227
265
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(order) {
228
- var _state$payGroup, _paymentListRef$curre, data, _ref4, _ref4$remain_amount, remain_amount, wallet_pass_recommend_list, wallet_pass_amount, payment_list, walletPass;
266
+ var _state$payGroup2, _paymentListRef$curre, data, _ref4, _ref4$remain_amount, remain_amount, wallet_pass_recommend_list, wallet_pass_amount, payment_list, walletPass, withCustomerIdList;
229
267
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
230
268
  while (1) switch (_context3.prev = _context3.next) {
231
269
  case 0:
232
- _context3.prev = 0;
233
- _context3.next = 3;
270
+ // 记录获取支付列表开始
271
+ paymentLogger.addLog({
272
+ key: '获取支付列表开始',
273
+ value: {
274
+ title: "\u8BA2\u5355".concat(order === null || order === void 0 ? void 0 : order.order_id, " \u5F00\u59CB\u83B7\u53D6\u652F\u4ED8\u5217\u8868, \u91D1\u989D: ").concat(order === null || order === void 0 ? void 0 : order.amount)
275
+ }
276
+ });
277
+ _context3.prev = 1;
278
+ _context3.next = 4;
234
279
  return getPaymentsAndWalletPass({
235
280
  order_id: order.order_id,
236
281
  total_amount: order.amount,
237
282
  sale_channel: order.sale_channel || 'online-store'
238
283
  });
239
- case 3:
284
+ case 4:
240
285
  data = _context3.sent;
241
- _ref4 = data || {}, _ref4$remain_amount = _ref4.remain_amount, remain_amount = _ref4$remain_amount === void 0 ? 0 : _ref4$remain_amount, wallet_pass_recommend_list = _ref4.wallet_pass_recommend_list, wallet_pass_amount = _ref4.wallet_pass_amount, payment_list = _ref4.payment_list, walletPass = _ref4.walletPass; // 设置交易组
286
+ _ref4 = data || {}, _ref4$remain_amount = _ref4.remain_amount, remain_amount = _ref4$remain_amount === void 0 ? 0 : _ref4$remain_amount, wallet_pass_recommend_list = _ref4.wallet_pass_recommend_list, wallet_pass_amount = _ref4.wallet_pass_amount, payment_list = _ref4.payment_list, walletPass = _ref4.walletPass; // 记录获取到的数据
287
+ paymentLogger.addLog({
288
+ key: '支付数据获取',
289
+ value: ''
290
+ });
291
+ withCustomerIdList = (wallet_pass_recommend_list || []).map(function (item) {
292
+ return _objectSpread(_objectSpread({}, item), {}, {
293
+ customer_id: customer_id || item.customer_id
294
+ });
295
+ }); // 设置交易组
242
296
  dispatch({
243
297
  type: 'setPayGroup',
244
298
  payload: {
@@ -249,9 +303,9 @@ var ToCPay = function ToCPay(props, ref) {
249
303
  _order: order,
250
304
  payment_group_id: order === null || order === void 0 ? void 0 : order.payment_group_id,
251
305
  // 支付方式没有walletPass时walletPass设置null
252
- walletPass: walletPass ? _objectSpread(_objectSpread(_objectSpread({}, (_state$payGroup = state.payGroup) === null || _state$payGroup === void 0 ? void 0 : _state$payGroup.walletPass), walletPass), {}, {
306
+ walletPass: walletPass ? _objectSpread(_objectSpread(_objectSpread({}, (_state$payGroup2 = state.payGroup) === null || _state$payGroup2 === void 0 ? void 0 : _state$payGroup2.walletPass), walletPass), {}, {
253
307
  amount: wallet_pass_amount,
254
- cards: wallet_pass_recommend_list
308
+ cards: withCustomerIdList
255
309
  }) : null,
256
310
  total_amount: order === null || order === void 0 ? void 0 : order.amount,
257
311
  wait_amount: remain_amount
@@ -259,19 +313,37 @@ var ToCPay = function ToCPay(props, ref) {
259
313
  });
260
314
 
261
315
  // 初始化支付列表
262
- _context3.next = 8;
316
+ _context3.next = 11;
263
317
  return (_paymentListRef$curre = paymentListRef.current) === null || _paymentListRef$curre === void 0 ? void 0 : _paymentListRef$curre.init(payment_list);
264
- case 8:
318
+ case 11:
265
319
  // 解除loading
266
320
  setTimeout(function () {
267
321
  setLoading(false);
268
322
  }, 100);
269
- _context3.next = 15;
323
+
324
+ // 记录获取支付列表成功
325
+ paymentLogger.addLog({
326
+ key: '获取支付列表成功',
327
+ value: ''
328
+ });
329
+ _context3.next = 21;
270
330
  break;
271
- case 11:
272
- _context3.prev = 11;
273
- _context3.t0 = _context3["catch"](0);
331
+ case 15:
332
+ _context3.prev = 15;
333
+ _context3.t0 = _context3["catch"](1);
274
334
  console.log('err', _context3.t0);
335
+
336
+ // 记录获取支付列表错误并发送日志
337
+ paymentLogger.addLog({
338
+ key: '获取支付列表错误',
339
+ value: {
340
+ title: "\u8BA2\u5355".concat(order === null || order === void 0 ? void 0 : order.order_id, " \u83B7\u53D6\u5931\u8D25: ").concat((_context3.t0 === null || _context3.t0 === void 0 ? void 0 : _context3.t0.message) || '未知错误'),
341
+ data: {
342
+ order: order
343
+ }
344
+ }
345
+ });
346
+ paymentLogger.sendLogs('获取支付列表失败', _context3.t0);
275
347
  payCallback({
276
348
  key: 'fail',
277
349
  data: {
@@ -280,11 +352,11 @@ var ToCPay = function ToCPay(props, ref) {
280
352
  fn: '_getPaymentsAndWalletPass'
281
353
  }
282
354
  });
283
- case 15:
355
+ case 21:
284
356
  case "end":
285
357
  return _context3.stop();
286
358
  }
287
- }, _callee3, null, [[0, 11]]);
359
+ }, _callee3, null, [[1, 15]]);
288
360
  }));
289
361
  return function _getPaymentsAndWalletPass(_x3) {
290
362
  return _ref3.apply(this, arguments);
@@ -302,27 +374,63 @@ var ToCPay = function ToCPay(props, ref) {
302
374
  */
303
375
  var handlePaymentByType = /*#__PURE__*/function () {
304
376
  var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(type, payGroup) {
305
- var _paymentMethodsRef$cu, _state$payGroup2;
377
+ var _state$payGroup3;
378
+ var paymentType, currentPayGroup, _paymentMethodsRef$cu;
306
379
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
307
380
  while (1) switch (_context4.prev = _context4.next) {
308
381
  case 0:
382
+ paymentType = type || ((_state$payGroup3 = state.payGroup) === null || _state$payGroup3 === void 0 || (_state$payGroup3 = _state$payGroup3.otherPayment) === null || _state$payGroup3 === void 0 ? void 0 : _state$payGroup3.service);
383
+ currentPayGroup = payGroup || state.payGroup; // 记录开始处理支付
384
+ paymentLogger.addLog({
385
+ key: '开始支付处理',
386
+ value: ''
387
+ });
388
+ _context4.prev = 3;
309
389
  // 打开loading
310
390
  setSubmitLoading(true);
311
391
 
312
392
  // 根据不同的支付方式, 调用不同的支付方法
313
- _context4.next = 3;
393
+ _context4.next = 7;
314
394
  return (_paymentMethodsRef$cu = paymentMethodsRef.current) === null || _paymentMethodsRef$cu === void 0 ? void 0 : _paymentMethodsRef$cu.onPay({
315
- type: type || ((_state$payGroup2 = state.payGroup) === null || _state$payGroup2 === void 0 || (_state$payGroup2 = _state$payGroup2.otherPayment) === null || _state$payGroup2 === void 0 ? void 0 : _state$payGroup2.service),
316
- payGroup: payGroup || state.payGroup
395
+ type: paymentType,
396
+ payGroup: currentPayGroup
317
397
  });
318
- case 3:
398
+ case 7:
399
+ // 记录支付方法调用成功
400
+ paymentLogger.addLog({
401
+ key: '支付方法调用成功',
402
+ value: ''
403
+ });
404
+ paymentLogger.sendLogs('支付方法调用成功');
405
+
319
406
  // 关闭loading
320
407
  setSubmitLoading(false);
321
- case 4:
408
+ _context4.next = 18;
409
+ break;
410
+ case 12:
411
+ _context4.prev = 12;
412
+ _context4.t0 = _context4["catch"](3);
413
+ // 记录支付处理错误并发送日志
414
+ paymentLogger.addLog({
415
+ key: '支付处理错误',
416
+ value: {
417
+ title: "\u8BA2\u5355".concat(currentPayGroup === null || currentPayGroup === void 0 ? void 0 : currentPayGroup.order_id, " ").concat(paymentType, "\u652F\u4ED8\u5931\u8D25: ").concat((_context4.t0 === null || _context4.t0 === void 0 ? void 0 : _context4.t0.message) || '未知错误'),
418
+ data: {
419
+ type: paymentType,
420
+ payGroup: currentPayGroup
421
+ }
422
+ }
423
+ });
424
+ paymentLogger.sendLogs('支付处理失败', _context4.t0);
425
+
426
+ // 关闭loading
427
+ setSubmitLoading(false);
428
+ throw _context4.t0;
429
+ case 18:
322
430
  case "end":
323
431
  return _context4.stop();
324
432
  }
325
- }, _callee4);
433
+ }, _callee4, null, [[3, 12]]);
326
434
  }));
327
435
  return function handlePaymentByType(_x4, _x5) {
328
436
  return _ref5.apply(this, arguments);
@@ -338,21 +446,25 @@ var ToCPay = function ToCPay(props, ref) {
338
446
  */
339
447
  var paymentInit = /*#__PURE__*/function () {
340
448
  var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(newOrderId) {
341
- var _state$payGroup3;
342
- var orderId, _state$payGroup4, data;
449
+ var _state$payGroup4;
450
+ var orderId, _state$payGroup5, data;
343
451
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
344
452
  while (1) switch (_context5.prev = _context5.next) {
345
453
  case 0:
346
454
  // 默认使用store内的order_id, 如果传入了新的order_id, 则使用新的order_id
347
- orderId = newOrderId || ((_state$payGroup3 = state.payGroup) === null || _state$payGroup3 === void 0 ? void 0 : _state$payGroup3.order_id);
455
+ orderId = newOrderId || ((_state$payGroup4 = state.payGroup) === null || _state$payGroup4 === void 0 ? void 0 : _state$payGroup4.order_id); // 记录开始创建交易组
456
+ paymentLogger.addLog({
457
+ key: '开始创建交易组',
458
+ value: ''
459
+ });
348
460
  setSubmitLoading(true);
349
- _context5.prev = 2;
350
- _context5.next = 5;
461
+ _context5.prev = 3;
462
+ _context5.next = 6;
351
463
  return getPaymentInit({
352
464
  order_id: orderId,
353
- amount: (_state$payGroup4 = state.payGroup) === null || _state$payGroup4 === void 0 ? void 0 : _state$payGroup4.total_amount
465
+ amount: (_state$payGroup5 = state.payGroup) === null || _state$payGroup5 === void 0 ? void 0 : _state$payGroup5.total_amount
354
466
  });
355
- case 5:
467
+ case 6:
356
468
  data = _context5.sent;
357
469
  // 设置交易组
358
470
  dispatch({
@@ -364,28 +476,32 @@ var ToCPay = function ToCPay(props, ref) {
364
476
  payment_priority: data.payment_priority
365
477
  }
366
478
  });
479
+
480
+ // 记录创建交易组成功
481
+ paymentLogger.addLog({
482
+ key: '创建交易组成功',
483
+ value: ''
484
+ });
367
485
  return _context5.abrupt("return", _objectSpread(_objectSpread({}, state.payGroup), {}, {
368
486
  order_id: orderId,
369
487
  total_amount: data.amount,
370
488
  payment_group_id: data.payment_group_id,
371
489
  payment_priority: data.payment_priority
372
490
  }));
373
- case 10:
374
- _context5.prev = 10;
375
- _context5.t0 = _context5["catch"](2);
376
- sendWarningLog({
377
- title: '创建交易组失败 paymentInit catch',
378
- content: [{
379
- key: '错误信息',
380
- value: (_context5.t0 === null || _context5.t0 === void 0 ? void 0 : _context5.t0.message) || '未知错误'
381
- }, {
382
- key: '错误堆栈',
383
- value: (_context5.t0 === null || _context5.t0 === void 0 ? void 0 : _context5.t0.stack) || '无堆栈信息'
384
- }, {
385
- key: '错误类型',
386
- value: (_context5.t0 === null || _context5.t0 === void 0 ? void 0 : _context5.t0.name) || '未知错误类型'
387
- }]
491
+ case 12:
492
+ _context5.prev = 12;
493
+ _context5.t0 = _context5["catch"](3);
494
+ // 记录创建交易组错误并发送日志
495
+ paymentLogger.addLog({
496
+ key: '创建交易组错误',
497
+ value: {
498
+ title: "\u8BA2\u5355".concat(orderId, " \u521B\u5EFA\u4EA4\u6613\u7EC4\u5931\u8D25: ").concat((_context5.t0 === null || _context5.t0 === void 0 ? void 0 : _context5.t0.message) || '未知错误'),
499
+ data: {
500
+ order: orderId
501
+ }
502
+ }
388
503
  });
504
+ paymentLogger.sendLogs('创建交易组失败', _context5.t0);
389
505
  setSubmitLoading(false);
390
506
  payCallback({
391
507
  key: 'fail',
@@ -395,11 +511,12 @@ var ToCPay = function ToCPay(props, ref) {
395
511
  fn: 'paymentInit'
396
512
  }
397
513
  });
398
- case 15:
514
+ throw _context5.t0;
515
+ case 19:
399
516
  case "end":
400
517
  return _context5.stop();
401
518
  }
402
- }, _callee5, null, [[2, 10]]);
519
+ }, _callee5, null, [[3, 12]]);
403
520
  }));
404
521
  return function paymentInit(_x6) {
405
522
  return _ref6.apply(this, arguments);
@@ -415,9 +532,9 @@ var ToCPay = function ToCPay(props, ref) {
415
532
  * @Date: 2024-08-15 13:47
416
533
  */
417
534
  var waitAmount = useMemo(function () {
418
- var _state$payGroup5;
419
- return ((_state$payGroup5 = state.payGroup) === null || _state$payGroup5 === void 0 ? void 0 : _state$payGroup5.wait_amount) || 0;
420
- }, [(_state$payGroup6 = state.payGroup) === null || _state$payGroup6 === void 0 ? void 0 : _state$payGroup6.wait_amount]);
535
+ var _state$payGroup6;
536
+ return ((_state$payGroup6 = state.payGroup) === null || _state$payGroup6 === void 0 ? void 0 : _state$payGroup6.wait_amount) || 0;
537
+ }, [(_state$payGroup7 = state.payGroup) === null || _state$payGroup7 === void 0 ? void 0 : _state$payGroup7.wait_amount]);
421
538
 
422
539
  /**
423
540
  * @title: 是否仅钱包支付
@@ -428,8 +545,8 @@ var ToCPay = function ToCPay(props, ref) {
428
545
  * @Date: 2024-08-15 13:46
429
546
  */
430
547
  var isWalletPassPay = useMemo(function () {
431
- var _state$payGroup7;
432
- var isWalletPass = (_state$payGroup7 = state.payGroup) === null || _state$payGroup7 === void 0 || (_state$payGroup7 = _state$payGroup7.walletPass) === null || _state$payGroup7 === void 0 || (_state$payGroup7 = _state$payGroup7.cards) === null || _state$payGroup7 === void 0 ? void 0 : _state$payGroup7.length;
548
+ var _state$payGroup8;
549
+ var isWalletPass = (_state$payGroup8 = state.payGroup) === null || _state$payGroup8 === void 0 || (_state$payGroup8 = _state$payGroup8.walletPass) === null || _state$payGroup8 === void 0 || (_state$payGroup8 = _state$payGroup8.cards) === null || _state$payGroup8 === void 0 ? void 0 : _state$payGroup8.length;
433
550
  // 待支付金额小于0 并且已经选择了卡
434
551
  return waitAmount <= 0 && isWalletPass;
435
552
  }, [state.payGroup, waitAmount]);
@@ -445,8 +562,8 @@ var ToCPay = function ToCPay(props, ref) {
445
562
  var isDisabled = useMemo(function () {
446
563
  // 当待支付金额 大于 0 则必须选择其他支付方式, 否则禁止
447
564
  if (waitAmount > 0) {
448
- var _state$payGroup8;
449
- var isOtherPayment = (_state$payGroup8 = state.payGroup) === null || _state$payGroup8 === void 0 || (_state$payGroup8 = _state$payGroup8.otherPayment) === null || _state$payGroup8 === void 0 ? void 0 : _state$payGroup8.service;
565
+ var _state$payGroup9;
566
+ var isOtherPayment = (_state$payGroup9 = state.payGroup) === null || _state$payGroup9 === void 0 || (_state$payGroup9 = _state$payGroup9.otherPayment) === null || _state$payGroup9 === void 0 ? void 0 : _state$payGroup9.service;
450
567
  return !isOtherPayment;
451
568
  } else {
452
569
  return !isWalletPassPay;
@@ -492,58 +609,81 @@ var ToCPay = function ToCPay(props, ref) {
492
609
  */
493
610
  var onSubmit = /*#__PURE__*/function () {
494
611
  var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(newOrderId) {
495
- var _state$payGroup9, newPayGroup, result;
612
+ var _state$payGroup10, _state$payGroup11, _state$payGroup12;
613
+ var newPayGroup, _state$payGroup13, _newPayGroup, _newPayGroup2, _state$payGroup14, result, _state$payGroup15;
496
614
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
497
615
  while (1) switch (_context7.prev = _context7.next) {
498
616
  case 0:
499
- _context7.prev = 0;
500
- newPayGroup = state.payGroup; // 是否要展示无痕模式提示
501
- _context7.next = 4;
617
+ // 记录开始提交支付
618
+ paymentLogger.addLog({
619
+ key: '开始提交支付',
620
+ value: "\u8BA2\u5355".concat(newOrderId || ((_state$payGroup10 = state.payGroup) === null || _state$payGroup10 === void 0 ? void 0 : _state$payGroup10.order_id), " \u5F00\u59CB\u63D0\u4EA4, \u5F85\u652F\u4ED8: ").concat((_state$payGroup11 = state.payGroup) === null || _state$payGroup11 === void 0 ? void 0 : _state$payGroup11.wait_amount, ", \u603B\u91D1\u989D: ").concat((_state$payGroup12 = state.payGroup) === null || _state$payGroup12 === void 0 ? void 0 : _state$payGroup12.total_amount)
621
+ });
622
+ newPayGroup = state.payGroup;
623
+ _context7.prev = 2;
624
+ _context7.next = 5;
502
625
  return getIsShowDetectIncognitoConfirm(newPayGroup);
503
- case 4:
626
+ case 5:
504
627
  result = _context7.sent;
505
628
  if (!result) {
506
- _context7.next = 8;
629
+ _context7.next = 10;
507
630
  break;
508
631
  }
632
+ paymentLogger.addLog({
633
+ key: '无痕模式检测',
634
+ value: ''
635
+ });
509
636
  setShowDetectIncognitoConfirm(true);
510
637
  return _context7.abrupt("return");
511
- case 8:
512
- if ((_state$payGroup9 = state.payGroup) !== null && _state$payGroup9 !== void 0 && _state$payGroup9.payment_group_id) {
513
- _context7.next = 12;
638
+ case 10:
639
+ if ((_state$payGroup13 = state.payGroup) !== null && _state$payGroup13 !== void 0 && _state$payGroup13.payment_group_id) {
640
+ _context7.next = 15;
514
641
  break;
515
642
  }
516
- _context7.next = 11;
643
+ paymentLogger.addLog({
644
+ key: '需要创建交易组',
645
+ value: ''
646
+ });
647
+ _context7.next = 14;
517
648
  return paymentInit(newOrderId);
518
- case 11:
649
+ case 14:
519
650
  newPayGroup = _context7.sent;
520
- case 12:
651
+ case 15:
521
652
  // 调用支付
653
+ paymentLogger.addLog({
654
+ key: '调用支付方法',
655
+ value: "\u8BA2\u5355".concat((_newPayGroup = newPayGroup) === null || _newPayGroup === void 0 ? void 0 : _newPayGroup.order_id, " \u4EA4\u6613\u7EC4").concat((_newPayGroup2 = newPayGroup) === null || _newPayGroup2 === void 0 ? void 0 : _newPayGroup2.payment_group_id, " \u4F7F\u7528").concat((_state$payGroup14 = state.payGroup) === null || _state$payGroup14 === void 0 || (_state$payGroup14 = _state$payGroup14.otherPayment) === null || _state$payGroup14 === void 0 ? void 0 : _state$payGroup14.service, "\u652F\u4ED8")
656
+ });
522
657
  handlePaymentByType(undefined, newPayGroup);
523
- _context7.next = 19;
658
+
659
+ // 记录提交成功(这里是调用成功,实际支付结果在payCallback中处理)
660
+ paymentLogger.addLog({
661
+ key: '支付提交调用成功',
662
+ value: ''
663
+ });
664
+ _context7.next = 25;
524
665
  break;
525
- case 15:
526
- _context7.prev = 15;
527
- _context7.t0 = _context7["catch"](0);
666
+ case 20:
667
+ _context7.prev = 20;
668
+ _context7.t0 = _context7["catch"](2);
528
669
  console.log('err', _context7.t0);
529
- sendWarningLog({
530
- title: '提交支付失败 onSubmit catch',
531
- content: [{
532
- key: '错误信息',
533
- value: (_context7.t0 === null || _context7.t0 === void 0 ? void 0 : _context7.t0.message) || '未知错误'
534
- }, {
535
- key: '错误堆栈',
536
- value: (_context7.t0 === null || _context7.t0 === void 0 ? void 0 : _context7.t0.stack) || '无堆栈信息'
537
- }, {
538
- key: '错误类型',
539
- value: (_context7.t0 === null || _context7.t0 === void 0 ? void 0 : _context7.t0.name) || '未知错误类型'
540
- }]
670
+
671
+ // 记录提交支付错误并发送日志
672
+ paymentLogger.addLog({
673
+ key: '提交支付错误',
674
+ value: {
675
+ title: "\u8BA2\u5355".concat(newOrderId || ((_state$payGroup15 = state.payGroup) === null || _state$payGroup15 === void 0 ? void 0 : _state$payGroup15.order_id), " \u63D0\u4EA4\u5931\u8D25: ").concat((_context7.t0 === null || _context7.t0 === void 0 ? void 0 : _context7.t0.message) || '未知错误'),
676
+ data: {
677
+ newPayGroup: newPayGroup
678
+ }
679
+ }
541
680
  });
542
- case 19:
681
+ paymentLogger.sendLogs('提交支付失败', _context7.t0);
682
+ case 25:
543
683
  case "end":
544
684
  return _context7.stop();
545
685
  }
546
- }, _callee7, null, [[0, 15]]);
686
+ }, _callee7, null, [[2, 20]]);
547
687
  }));
548
688
  return function onSubmit(_x8) {
549
689
  return _ref8.apply(this, arguments);
@@ -569,28 +709,28 @@ var ToCPay = function ToCPay(props, ref) {
569
709
 
570
710
  // 确认按钮
571
711
  var okText = useMemo(function () {
572
- var _state$payGroup10, _state$payGroup11;
573
- var current = (_state$payGroup10 = state.payGroup) === null || _state$payGroup10 === void 0 ? void 0 : _state$payGroup10.otherPayment;
712
+ var _state$payGroup16, _state$payGroup17;
713
+ var current = (_state$payGroup16 = state.payGroup) === null || _state$payGroup16 === void 0 ? void 0 : _state$payGroup16.otherPayment;
574
714
 
575
715
  // 没有其他支付金额, 则直接使用钱包支付 展示submit
576
- if (((_state$payGroup11 = state.payGroup) === null || _state$payGroup11 === void 0 ? void 0 : _state$payGroup11.wait_amount) == 0) {
716
+ if (((_state$payGroup17 = state.payGroup) === null || _state$payGroup17 === void 0 ? void 0 : _state$payGroup17.wait_amount) == 0) {
577
717
  return locales.getText('tocPay.text.submit');
578
718
  }
579
719
 
580
720
  // 有手续费的话展示手续费
581
721
  if (current !== null && current !== void 0 && current.surcharge) {
582
- var _state$payGroup12;
722
+ var _state$payGroup18;
583
723
  return /*#__PURE__*/React.createElement("span", {
584
724
  className: ""
585
725
  }, locales.getText('tocPay.text.pay'), ' ', /*#__PURE__*/React.createElement(PisellText.Amount, {
586
- value: ((_state$payGroup12 = state.payGroup) === null || _state$payGroup12 === void 0 ? void 0 : _state$payGroup12.wait_amount) || 0.0
726
+ value: ((_state$payGroup18 = state.payGroup) === null || _state$payGroup18 === void 0 ? void 0 : _state$payGroup18.wait_amount) || 0.0
587
727
  }), " +", locales.getText('tocPay.text.surcharge'));
588
728
  } else {
589
- var _state$payGroup13;
729
+ var _state$payGroup19;
590
730
  return /*#__PURE__*/React.createElement("span", {
591
731
  className: ""
592
732
  }, locales.getText('tocPay.text.pay'), ' ', /*#__PURE__*/React.createElement(PisellText.Amount, {
593
- value: ((_state$payGroup13 = state.payGroup) === null || _state$payGroup13 === void 0 ? void 0 : _state$payGroup13.wait_amount) || 0.0
733
+ value: ((_state$payGroup19 = state.payGroup) === null || _state$payGroup19 === void 0 ? void 0 : _state$payGroup19.wait_amount) || 0.0
594
734
  }));
595
735
  }
596
736
  }, [state.payGroup]);
@@ -604,18 +744,39 @@ var ToCPay = function ToCPay(props, ref) {
604
744
  */
605
745
  var payCallback = /*#__PURE__*/function () {
606
746
  var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(res) {
607
- var _props$callback;
747
+ var _res$data, _state$payGroup20, _props$callback;
748
+ var orderId, _res$data2;
608
749
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
609
750
  while (1) switch (_context8.prev = _context8.next) {
610
751
  case 0:
611
- // 取消支付,关闭弹窗
612
- if (res.key === 'cancel') {
752
+ // 记录支付回调结果
753
+ orderId = (res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.order_id) || ((_state$payGroup20 = state.payGroup) === null || _state$payGroup20 === void 0 ? void 0 : _state$payGroup20.order_id);
754
+ if (res.key === 'success') {
755
+ paymentLogger.addLog({
756
+ key: '支付最终成功',
757
+ value: "\u8BA2\u5355".concat(orderId, " \u652F\u4ED8\u6210\u529F")
758
+ });
759
+ paymentLogger.sendLogs('支付成功');
760
+ } else if (res.key === 'fail') {
761
+ paymentLogger.addLog({
762
+ key: '支付最终失败',
763
+ value: {
764
+ title: "\u8BA2\u5355".concat(orderId, " \u652F\u4ED8\u5931\u8D25"),
765
+ data: res === null || res === void 0 ? void 0 : res.data
766
+ }
767
+ });
768
+ paymentLogger.sendLogs('支付失败', res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.err);
769
+ } else if (res.key === 'cancel') {
770
+ paymentLogger.addLog({
771
+ key: '支付被取消',
772
+ value: "\u8BA2\u5355".concat(orderId, " \u652F\u4ED8\u88AB\u53D6\u6D88")
773
+ });
613
774
  setOpen(false);
614
775
  }
615
776
 
616
777
  // 回调外部
617
778
  (_props$callback = props.callback) === null || _props$callback === void 0 || _props$callback.call(props, res);
618
- case 2:
779
+ case 3:
619
780
  case "end":
620
781
  return _context8.stop();
621
782
  }
@@ -634,9 +795,15 @@ var ToCPay = function ToCPay(props, ref) {
634
795
  * @Date: 2024-08-08 16:34
635
796
  */
636
797
  var onCancel = function onCancel() {
637
- var _state$payGroup14, _state$payGroup15;
798
+ var _state$payGroup21, _state$payGroup22, _state$payGroup23;
799
+ // 记录取消支付操作
800
+ paymentLogger.addLog({
801
+ key: '用户主动取消支付',
802
+ value: "\u8BA2\u5355".concat((_state$payGroup21 = state.payGroup) === null || _state$payGroup21 === void 0 ? void 0 : _state$payGroup21.order_id, " \u7528\u6237\u53D6\u6D88\u652F\u4ED8")
803
+ });
804
+
638
805
  // 删除交易组
639
- removePayGroupFromStorage((_state$payGroup14 = state.payGroup) === null || _state$payGroup14 === void 0 ? void 0 : _state$payGroup14.order_id);
806
+ removePayGroupFromStorage((_state$payGroup22 = state.payGroup) === null || _state$payGroup22 === void 0 ? void 0 : _state$payGroup22.order_id);
640
807
 
641
808
  // 关闭二次提示弹窗
642
809
  setShowInformation(false);
@@ -648,16 +815,16 @@ var ToCPay = function ToCPay(props, ref) {
648
815
  payCallback({
649
816
  key: 'cancel',
650
817
  data: {
651
- order_id: (_state$payGroup15 = state.payGroup) === null || _state$payGroup15 === void 0 ? void 0 : _state$payGroup15.order_id
818
+ order_id: (_state$payGroup23 = state.payGroup) === null || _state$payGroup23 === void 0 ? void 0 : _state$payGroup23.order_id
652
819
  }
653
820
  });
654
821
  };
655
822
 
656
823
  // 待支付金额变化时, 重新计算附加费
657
824
  useUpdateEffect(function () {
658
- var _paymentListRef$curre2, _state$payGroup16;
659
- (_paymentListRef$curre2 = paymentListRef.current) === null || _paymentListRef$curre2 === void 0 || _paymentListRef$curre2.calculateSurcharge(((_state$payGroup16 = state.payGroup) === null || _state$payGroup16 === void 0 ? void 0 : _state$payGroup16.wait_amount) || 0);
660
- }, [(_state$payGroup17 = state.payGroup) === null || _state$payGroup17 === void 0 ? void 0 : _state$payGroup17.wait_amount]);
825
+ var _paymentListRef$curre2, _state$payGroup24;
826
+ (_paymentListRef$curre2 = paymentListRef.current) === null || _paymentListRef$curre2 === void 0 || _paymentListRef$curre2.calculateSurcharge(((_state$payGroup24 = state.payGroup) === null || _state$payGroup24 === void 0 ? void 0 : _state$payGroup24.wait_amount) || 0);
827
+ }, [(_state$payGroup25 = state.payGroup) === null || _state$payGroup25 === void 0 ? void 0 : _state$payGroup25.wait_amount]);
661
828
  useImperativeHandle(ref, function () {
662
829
  return {
663
830
  init: init,
@@ -674,7 +841,7 @@ var ToCPay = function ToCPay(props, ref) {
674
841
  * @Date: 2024-08-16 10:49
675
842
  */
676
843
  var renderPaymentListTitle = function renderPaymentListTitle() {
677
- var _state$payGroup18;
844
+ var _state$payGroup26;
678
845
  // 待支付金额为0 展示无需选择支付方式
679
846
  if (waitAmount == 0) {
680
847
  return /*#__PURE__*/React.createElement("div", {
@@ -687,13 +854,13 @@ var ToCPay = function ToCPay(props, ref) {
687
854
  }
688
855
 
689
856
  // 有剩余金额, 展示继续支付
690
- if (((_state$payGroup18 = state.payGroup) === null || _state$payGroup18 === void 0 ? void 0 : _state$payGroup18.total_amount) !== waitAmount) {
691
- var _state$payGroup19;
857
+ if (((_state$payGroup26 = state.payGroup) === null || _state$payGroup26 === void 0 ? void 0 : _state$payGroup26.total_amount) !== waitAmount) {
858
+ var _state$payGroup27;
692
859
  return /*#__PURE__*/React.createElement("div", {
693
860
  className: "custom-payment-list-title"
694
861
  }, locales.getText('tocPay.text.continuePayment'), ' ', /*#__PURE__*/React.createElement(PisellText.Amount, {
695
862
  className: "custom-payment-list-title-price",
696
- value: ((_state$payGroup19 = state.payGroup) === null || _state$payGroup19 === void 0 ? void 0 : _state$payGroup19.wait_amount) || 0.0
863
+ value: ((_state$payGroup27 = state.payGroup) === null || _state$payGroup27 === void 0 ? void 0 : _state$payGroup27.wait_amount) || 0.0
697
864
  }));
698
865
  }
699
866
 
@@ -709,12 +876,12 @@ var ToCPay = function ToCPay(props, ref) {
709
876
  * @Date: 2024-08-16 10:50
710
877
  */
711
878
  var onWalletPassChange = useMemoizedFn(function (walletPass) {
712
- var _state$payGroup20, _state$payGroup21;
713
- var _waitAmount = new Decimal(String(((_state$payGroup20 = state.payGroup) === null || _state$payGroup20 === void 0 ? void 0 : _state$payGroup20.total_amount) || 0)).minus(new Decimal(String(walletPass.amount || 0))).toNumber();
879
+ var _state$payGroup28, _state$payGroup29;
880
+ var _waitAmount = new Decimal(String(((_state$payGroup28 = state.payGroup) === null || _state$payGroup28 === void 0 ? void 0 : _state$payGroup28.total_amount) || 0)).minus(new Decimal(String(walletPass.amount || 0))).toNumber();
714
881
  dispatch({
715
882
  type: 'setPayGroup',
716
883
  payload: {
717
- walletPass: _objectSpread(_objectSpread({}, (_state$payGroup21 = state.payGroup) === null || _state$payGroup21 === void 0 ? void 0 : _state$payGroup21.walletPass), walletPass),
884
+ walletPass: _objectSpread(_objectSpread({}, (_state$payGroup29 = state.payGroup) === null || _state$payGroup29 === void 0 ? void 0 : _state$payGroup29.walletPass), walletPass),
718
885
  wait_amount: _waitAmount
719
886
  }
720
887
  });
@@ -793,8 +960,8 @@ var ToCPay = function ToCPay(props, ref) {
793
960
  }, ((_state$order = state.order) === null || _state$order === void 0 ? void 0 : _state$order.countdown) && /*#__PURE__*/React.createElement(PayCountdown, {
794
961
  time: (_state$order2 = state.order) === null || _state$order2 === void 0 ? void 0 : _state$order2.countdown
795
962
  }), /*#__PURE__*/React.createElement(PayAmount, {
796
- amount: ((_state$payGroup22 = state.payGroup) === null || _state$payGroup22 === void 0 ? void 0 : _state$payGroup22.total_amount) || 0
797
- }), ((_state$payGroup23 = state.payGroup) === null || _state$payGroup23 === void 0 ? void 0 : _state$payGroup23.walletPass) && /*#__PURE__*/React.createElement(WalletPassBlock, {
963
+ amount: ((_state$payGroup30 = state.payGroup) === null || _state$payGroup30 === void 0 ? void 0 : _state$payGroup30.total_amount) || 0
964
+ }), ((_state$payGroup31 = state.payGroup) === null || _state$payGroup31 === void 0 ? void 0 : _state$payGroup31.walletPass) && /*#__PURE__*/React.createElement(WalletPassBlock, {
798
965
  customer_id: customer_id,
799
966
  payGroup: state.payGroup,
800
967
  onWalletPassChange: onWalletPassChange,
@@ -806,7 +973,7 @@ var ToCPay = function ToCPay(props, ref) {
806
973
  handlePaymentByType(detail === null || detail === void 0 ? void 0 : detail.service);
807
974
  },
808
975
  paymentTypeChange: paymentTypeChange,
809
- hide: ((_state$payGroup24 = state.payGroup) === null || _state$payGroup24 === void 0 ? void 0 : _state$payGroup24.wait_amount) == 0,
976
+ hide: ((_state$payGroup32 = state.payGroup) === null || _state$payGroup32 === void 0 ? void 0 : _state$payGroup32.wait_amount) == 0,
810
977
  renderTitle: renderPaymentListTitle
811
978
  })), /*#__PURE__*/React.createElement(PaymentMethods, {
812
979
  ref: paymentMethodsRef,