@pisell/private-materials 6.4.71 → 6.4.73

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 (629) 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 +9 -9
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +23 -8
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +23 -8
  11. package/es/components/Sales/Event/Detail.js +4 -3
  12. package/es/components/appointmentBooking/components/Services/index.js +22 -8
  13. package/es/components/appointmentBooking/hooks.js +5 -0
  14. package/es/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
  15. package/es/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  16. package/es/components/authentication/admin/AuthMethods/SettingList.js +62 -0
  17. package/es/components/authentication/admin/AuthMethods/SettingList.less +85 -0
  18. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  19. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.js +121 -0
  20. package/es/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
  21. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  22. package/es/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +15 -0
  23. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  24. package/es/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +152 -0
  25. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  26. package/es/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +114 -0
  27. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  28. package/es/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +170 -0
  29. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  30. package/es/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +116 -0
  31. package/es/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  32. package/es/components/authentication/admin/AuthMethods/components/index.js +5 -0
  33. package/es/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  34. package/es/components/authentication/admin/AuthMethods/constants.js +121 -0
  35. package/es/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  36. package/es/components/authentication/admin/AuthMethods/index.js +233 -0
  37. package/es/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  38. package/es/components/authentication/admin/AuthMethods/locales.js +290 -0
  39. package/es/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  40. package/es/components/authentication/admin/AuthMethods/types.js +23 -0
  41. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
  42. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  43. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +447 -0
  44. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  45. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +107 -0
  46. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  47. package/es/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +1 -0
  48. package/es/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
  49. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
  50. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  51. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +530 -0
  52. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  53. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +86 -0
  54. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  55. package/es/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +1 -0
  56. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  57. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +460 -0
  58. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
  59. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
  60. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  61. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +185 -0
  62. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  63. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +32 -0
  64. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  65. package/es/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +1 -0
  66. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
  67. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  68. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +214 -0
  69. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  70. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +71 -0
  71. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  72. package/es/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +1 -0
  73. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  74. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +287 -0
  75. package/es/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
  76. package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  77. package/es/components/authentication/admin/ChannelAuthSetting/index.js +228 -0
  78. package/es/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  79. package/es/components/authentication/admin/ChannelAuthSetting/locales.js +50 -0
  80. package/es/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  81. package/es/components/authentication/admin/ChannelAuthSetting/types.js +1 -0
  82. package/es/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
  83. package/es/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  84. package/es/components/authentication/admin/CustomerAuth/index.js +711 -0
  85. package/es/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  86. package/es/components/authentication/admin/CustomerAuth/locales.js +86 -0
  87. package/es/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  88. package/es/components/authentication/admin/CustomerAuth/types.js +1 -0
  89. package/es/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
  90. package/es/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  91. package/es/components/authentication/admin/CustomerOAuthConfig/index.js +545 -0
  92. package/es/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  93. package/es/components/authentication/admin/CustomerOAuthConfig/locales.js +137 -0
  94. package/es/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  95. package/es/components/authentication/admin/CustomerOAuthConfig/types.js +1 -0
  96. package/es/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
  97. package/es/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  98. package/es/components/authentication/admin/DeviceAuth/index.js +366 -0
  99. package/es/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  100. package/es/components/authentication/admin/DeviceAuth/locales.js +74 -0
  101. package/es/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  102. package/es/components/authentication/admin/DeviceAuth/types.js +1 -0
  103. package/es/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
  104. package/es/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  105. package/es/components/authentication/admin/OAuthConfig/index.js +347 -0
  106. package/es/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  107. package/es/components/authentication/admin/OAuthConfig/locales.js +116 -0
  108. package/es/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  109. package/es/components/authentication/admin/OAuthConfig/types.js +1 -0
  110. package/es/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
  111. package/es/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  112. package/es/components/authentication/admin/OrgAdminAuth/index.js +543 -0
  113. package/es/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  114. package/es/components/authentication/admin/OrgAdminAuth/locales.js +74 -0
  115. package/es/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  116. package/es/components/authentication/admin/OrgAdminAuth/types.js +1 -0
  117. package/es/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
  118. package/es/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  119. package/es/components/authentication/admin/POSOperatorAuth/index.js +374 -0
  120. package/es/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  121. package/es/components/authentication/admin/POSOperatorAuth/locales.js +65 -0
  122. package/es/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  123. package/es/components/authentication/admin/POSOperatorAuth/types.js +1 -0
  124. package/es/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
  125. package/es/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  126. package/es/components/authentication/admin/SaaSAdminAuth/index.js +625 -0
  127. package/es/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  128. package/es/components/authentication/admin/SaaSAdminAuth/locales.js +74 -0
  129. package/es/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  130. package/es/components/authentication/admin/SaaSAdminAuth/types.js +1 -0
  131. package/es/components/authentication/admin/index.d.ts +26 -0
  132. package/es/components/authentication/admin/index.js +23 -0
  133. package/es/components/authentication/index.d.ts +0 -0
  134. package/es/components/authentication/index.js +0 -0
  135. package/es/components/booking/addons/model.d.ts +1 -10
  136. package/es/components/booking/components/customSelect/index.js +22 -3
  137. package/es/components/booking/components/footer/utils.js +30 -19
  138. package/es/components/booking/forms/model.d.ts +1 -10
  139. package/es/components/booking/info/model.d.ts +1 -10
  140. package/es/components/booking/info/service/addService/utils.d.ts +1 -1
  141. package/es/components/booking/info/service2/utils.d.ts +1 -1
  142. package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
  143. package/es/components/booking/model.d.ts +1 -9
  144. package/es/components/booking/notes/model.d.ts +1 -10
  145. package/es/components/booking/payments/model.d.ts +1 -10
  146. package/es/components/booking/utils.d.ts +2 -2
  147. package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
  148. package/es/components/eftposPay/amount.d.ts +1 -1
  149. package/es/components/eftposPay/device.d.ts +1 -1
  150. package/es/components/eftposPay/hooks.d.ts +2 -2
  151. package/es/components/eftposPay/store/index.d.ts +5 -5
  152. package/es/components/index.d.ts +3 -2
  153. package/es/components/index.js +3 -2
  154. package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +68 -35
  155. package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +70 -42
  156. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +72 -41
  157. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
  158. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +143 -0
  159. package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +34 -0
  160. package/es/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
  161. package/es/components/pay/toC/PaymentMethods/hooks/index.js +126 -0
  162. package/es/components/pay/toC/index.js +26 -22
  163. package/es/components/pay/toC/locales.d.ts +9 -0
  164. package/es/components/pay/toC/locales.js +12 -3
  165. package/es/components/pay/toC/model.d.ts +2 -9
  166. package/es/components/pay/toC/serve.d.ts +5 -0
  167. package/es/components/pay/toC/serve.js +9 -1
  168. package/es/components/schedules/model.d.ts +1 -9
  169. package/es/components/wallet/Detail/model.d.ts +1 -13
  170. package/es/components/wallet/DiscountCard/model.d.ts +1 -14
  171. package/es/components/wallet/PointCard/model.d.ts +1 -13
  172. package/es/components/wallet/RechargeableCard/model.d.ts +1 -29
  173. package/es/components/wallet/Voucher/model.d.ts +1 -13
  174. package/es/components/wallet/model.d.ts +1 -9
  175. package/es/components/walletList/index.js +92 -56
  176. package/es/components/walletList/serve.d.ts +4 -0
  177. package/es/components/walletList/serve.js +46 -13
  178. package/es/components/walletList/types/index.d.ts +12 -12
  179. package/es/components/walletList/types/index.js +2 -2
  180. package/es/index.d.ts +5 -1
  181. package/es/index.js +5 -2
  182. package/es/plus/productSelect/CategoryTabs/index.d.ts +2 -0
  183. package/es/plus/productSelect/CategoryTabs/index.js +6 -3
  184. package/es/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  185. package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  186. package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  187. package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  188. package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  189. package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  190. package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  191. package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  192. package/es/plus/productSelect/ProductCard/index.d.ts +3 -1
  193. package/es/plus/productSelect/ProductCard/index.js +14 -5
  194. package/es/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
  195. package/es/plus/productSelect/index.d.ts +3 -2
  196. package/es/plus/productSelect/index.js +33 -8
  197. package/es/plus/productSelect/index.less +4 -0
  198. package/es/plus/walletEditor/WalletEditor.d.ts +5 -0
  199. package/es/plus/walletEditor/WalletEditor.js +316 -0
  200. package/es/plus/walletEditor/WalletEditor.less +129 -0
  201. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
  202. package/es/plus/walletEditor/components/ImageUpload/index.js +223 -0
  203. package/es/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
  204. package/es/plus/walletEditor/components/JsonEditor/index.js +68 -0
  205. package/es/plus/walletEditor/components/JsonEditor/index.less +4 -0
  206. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
  207. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.js +222 -0
  208. package/es/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
  209. package/es/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
  210. package/es/plus/walletEditor/components/relationProduct/index.js +49 -0
  211. package/es/plus/walletEditor/components/relationProduct/index.less +15 -0
  212. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
  213. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.js +193 -0
  214. package/es/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
  215. package/es/plus/walletEditor/index.d.ts +3 -0
  216. package/es/plus/walletEditor/index.js +3 -0
  217. package/es/plus/walletEditor/locales.d.ts +126 -0
  218. package/es/plus/walletEditor/locales.js +143 -0
  219. package/es/plus/walletEditor/types.d.ts +52 -0
  220. package/es/plus/walletEditor/types.js +1 -0
  221. package/es/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
  222. package/es/plus/walletPassGallery/components/footerButton/index.js +247 -0
  223. package/es/plus/walletPassGallery/components/footerButton/index.less +93 -0
  224. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
  225. package/es/plus/walletPassGallery/components/passDetail/index.js +274 -0
  226. package/es/plus/walletPassGallery/components/passDetail/index.less +57 -0
  227. package/es/plus/walletPassGallery/components/passList/index.d.ts +11 -0
  228. package/es/plus/walletPassGallery/components/passList/index.js +115 -0
  229. package/es/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
  230. package/es/plus/walletPassGallery/components/recharge/index.js +134 -0
  231. package/es/plus/walletPassGallery/components/recharge/index.less +16 -0
  232. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
  233. package/es/plus/walletPassGallery/components/timelineSection/index.js +176 -0
  234. package/es/plus/walletPassGallery/components/timelineSection/index.less +67 -0
  235. package/es/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
  236. package/es/plus/walletPassGallery/components/usageRule/index.js +248 -0
  237. package/es/plus/walletPassGallery/components/usageRule/index.less +157 -0
  238. package/es/plus/walletPassGallery/index.d.ts +6 -0
  239. package/es/plus/walletPassGallery/index.js +602 -0
  240. package/es/plus/walletPassGallery/index.less +115 -0
  241. package/es/plus/walletPassGallery/locales.d.ts +270 -0
  242. package/es/plus/walletPassGallery/locales.js +279 -0
  243. package/es/plus/walletPassGallery/serve.d.ts +218 -0
  244. package/es/plus/walletPassGallery/serve.js +289 -0
  245. package/es/pro/Login2.0/AuthModal.d.ts +143 -0
  246. package/es/pro/Login2.0/AuthModal.js +630 -0
  247. package/es/pro/Login2.0/Login2.d.ts +61 -0
  248. package/es/pro/Login2.0/Login2.js +2236 -0
  249. package/es/pro/Login2.0/Register2.d.ts +65 -0
  250. package/es/pro/Login2.0/Register2.js +1502 -0
  251. package/es/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
  252. package/es/pro/Login2.0/components/ForgotPasswordFlow.js +330 -0
  253. package/es/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  254. package/es/pro/Login2.0/components/LegalTerms.js +51 -0
  255. package/es/pro/Login2.0/components/LegalTerms.less +74 -0
  256. package/es/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  257. package/es/pro/Login2.0/components/LoginCodeInput.js +207 -0
  258. package/es/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
  259. package/es/pro/Login2.0/components/OAuthButtonGroup.js +55 -0
  260. package/es/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  261. package/es/pro/Login2.0/components/PhoneInput.js +414 -0
  262. package/es/pro/Login2.0/components/PhoneInput.less +148 -0
  263. package/es/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  264. package/es/pro/Login2.0/components/phoneValidation.js +228 -0
  265. package/es/pro/Login2.0/hooks/index.d.ts +2 -0
  266. package/es/pro/Login2.0/hooks/index.js +1 -0
  267. package/es/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  268. package/es/pro/Login2.0/hooks/usePasswordValidationRules.js +87 -0
  269. package/es/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  270. package/es/pro/Login2.0/hooks/useRegisterFlow.js +158 -0
  271. package/es/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  272. package/es/pro/Login2.0/hooks/useRegistrationMethods.js +31 -0
  273. package/es/pro/Login2.0/index.js +8 -0
  274. package/es/pro/Login2.0/index.less +1002 -0
  275. package/es/pro/Login2.0/locales.d.ts +543 -0
  276. package/es/pro/Login2.0/locales.js +622 -0
  277. package/es/pro/Login2.0/shared/Header.d.ts +11 -0
  278. package/es/pro/Login2.0/shared/Header.js +42 -0
  279. package/es/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
  280. package/es/pro/Login2.0/shared/OAuthButtons.js +59 -0
  281. package/es/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  282. package/es/pro/Login2.0/shared/registerFlow.js +171 -0
  283. package/es/pro/Login2.0/shared/types.d.ts +232 -0
  284. package/es/pro/Login2.0/shared/types.js +1 -0
  285. package/es/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  286. package/es/pro/Login2.0/steps/CodeInput.js +209 -0
  287. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  288. package/es/pro/Login2.0/steps/EmailAlreadyRegistered.js +35 -0
  289. package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
  290. package/es/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +25 -0
  291. package/es/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
  292. package/es/pro/Login2.0/steps/EmailLinkExpired.js +33 -0
  293. package/es/pro/Login2.0/steps/SetPassword.d.ts +19 -0
  294. package/es/pro/Login2.0/steps/SetPassword.js +148 -0
  295. package/es/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  296. package/es/pro/Login2.0/steps/VerificationSuccess.js +35 -0
  297. package/es/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  298. package/es/pro/Login2.0/steps/VerifyingEmailLink.js +17 -0
  299. package/es/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  300. package/es/pro/Login2.0/steps/WaitEmailLink.js +54 -0
  301. package/es/pro/Login2.0/steps/index.d.ts +19 -0
  302. package/es/pro/Login2.0/steps/index.js +11 -0
  303. package/es/pro/Login2.0/steps/steps.less +423 -0
  304. package/es/pro/Login2.0/types.d.ts +167 -0
  305. package/es/pro/Login2.0/types.js +1 -0
  306. package/es/pro/pisellPaymentList/example.d.ts +19 -0
  307. package/es/pro/pisellPaymentList/example.js +434 -0
  308. package/lib/components/Sales/Event/Detail.js +3 -2
  309. package/lib/components/appointmentBooking/components/Services/index.js +8 -3
  310. package/lib/components/appointmentBooking/hooks.js +3 -0
  311. package/lib/components/authentication/admin/AuthMethods/AuthMethods.less +136 -0
  312. package/lib/components/authentication/admin/AuthMethods/SettingList.d.ts +5 -0
  313. package/lib/components/authentication/admin/AuthMethods/SettingList.js +75 -0
  314. package/lib/components/authentication/admin/AuthMethods/SettingList.less +85 -0
  315. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.d.ts +22 -0
  316. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.js +126 -0
  317. package/lib/components/authentication/admin/AuthMethods/SettingsDrawer.less +163 -0
  318. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.d.ts +11 -0
  319. package/lib/components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js +42 -0
  320. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.d.ts +13 -0
  321. package/lib/components/authentication/admin/AuthMethods/components/EmailSettingsContent.js +108 -0
  322. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.d.ts +13 -0
  323. package/lib/components/authentication/admin/AuthMethods/components/LoginMethodsList.js +108 -0
  324. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.d.ts +14 -0
  325. package/lib/components/authentication/admin/AuthMethods/components/PasswordRulesSettingsContent.js +93 -0
  326. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.d.ts +13 -0
  327. package/lib/components/authentication/admin/AuthMethods/components/PhoneSettingsContent.js +85 -0
  328. package/lib/components/authentication/admin/AuthMethods/components/index.d.ts +10 -0
  329. package/lib/components/authentication/admin/AuthMethods/components/index.js +51 -0
  330. package/lib/components/authentication/admin/AuthMethods/constants.d.ts +22 -0
  331. package/lib/components/authentication/admin/AuthMethods/constants.js +115 -0
  332. package/lib/components/authentication/admin/AuthMethods/index.d.ts +8 -0
  333. package/lib/components/authentication/admin/AuthMethods/index.js +196 -0
  334. package/lib/components/authentication/admin/AuthMethods/locales.d.ts +249 -0
  335. package/lib/components/authentication/admin/AuthMethods/locales.js +314 -0
  336. package/lib/components/authentication/admin/AuthMethods/types.d.ts +76 -0
  337. package/lib/components/authentication/admin/AuthMethods/types.js +53 -0
  338. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/AuthenticationMethods.less +231 -0
  339. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.d.ts +6 -0
  340. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/index.js +311 -0
  341. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.d.ts +84 -0
  342. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/locales.js +131 -0
  343. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.d.ts +41 -0
  344. package/lib/components/authentication/admin/ChannelAuthSetting/AuthenticationMethods/types.js +17 -0
  345. package/lib/components/authentication/admin/ChannelAuthSetting/ChannelAuthSetting.less +111 -0
  346. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/CollectInfo.less +259 -0
  347. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.d.ts +6 -0
  348. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/index.js +410 -0
  349. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.d.ts +72 -0
  350. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/locales.js +110 -0
  351. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.d.ts +33 -0
  352. package/lib/components/authentication/admin/ChannelAuthSetting/CollectInfo/types.js +17 -0
  353. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +6 -0
  354. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.js +383 -0
  355. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.less +111 -0
  356. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/PageSetting.less +105 -0
  357. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.d.ts +8 -0
  358. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/index.js +148 -0
  359. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.d.ts +27 -0
  360. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/locales.js +56 -0
  361. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.d.ts +25 -0
  362. package/lib/components/authentication/admin/ChannelAuthSetting/PageSetting/types.js +17 -0
  363. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/PageSettingItem.less +272 -0
  364. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.d.ts +8 -0
  365. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/index.js +206 -0
  366. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.d.ts +66 -0
  367. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/locales.js +95 -0
  368. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.d.ts +26 -0
  369. package/lib/components/authentication/admin/ChannelAuthSetting/PageSettingItem/types.js +17 -0
  370. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.d.ts +6 -0
  371. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.js +246 -0
  372. package/lib/components/authentication/admin/ChannelAuthSetting/SaaSManagermentAuth/index.less +111 -0
  373. package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +6 -0
  374. package/lib/components/authentication/admin/ChannelAuthSetting/index.js +177 -0
  375. package/lib/components/authentication/admin/ChannelAuthSetting/locales.d.ts +39 -0
  376. package/lib/components/authentication/admin/ChannelAuthSetting/locales.js +74 -0
  377. package/lib/components/authentication/admin/ChannelAuthSetting/types.d.ts +36 -0
  378. package/lib/components/authentication/admin/ChannelAuthSetting/types.js +17 -0
  379. package/lib/components/authentication/admin/CustomerAuth/CustomerAuth.less +104 -0
  380. package/lib/components/authentication/admin/CustomerAuth/index.d.ts +6 -0
  381. package/lib/components/authentication/admin/CustomerAuth/index.js +507 -0
  382. package/lib/components/authentication/admin/CustomerAuth/locales.d.ts +66 -0
  383. package/lib/components/authentication/admin/CustomerAuth/locales.js +110 -0
  384. package/lib/components/authentication/admin/CustomerAuth/types.d.ts +16 -0
  385. package/lib/components/authentication/admin/CustomerAuth/types.js +17 -0
  386. package/lib/components/authentication/admin/CustomerOAuthConfig/CustomerOAuthConfig.less +164 -0
  387. package/lib/components/authentication/admin/CustomerOAuthConfig/index.d.ts +6 -0
  388. package/lib/components/authentication/admin/CustomerOAuthConfig/index.js +331 -0
  389. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.d.ts +108 -0
  390. package/lib/components/authentication/admin/CustomerOAuthConfig/locales.js +161 -0
  391. package/lib/components/authentication/admin/CustomerOAuthConfig/types.d.ts +22 -0
  392. package/lib/components/authentication/admin/CustomerOAuthConfig/types.js +17 -0
  393. package/lib/components/authentication/admin/DeviceAuth/DeviceAuth.less +104 -0
  394. package/lib/components/authentication/admin/DeviceAuth/index.d.ts +6 -0
  395. package/lib/components/authentication/admin/DeviceAuth/index.js +254 -0
  396. package/lib/components/authentication/admin/DeviceAuth/locales.d.ts +57 -0
  397. package/lib/components/authentication/admin/DeviceAuth/locales.js +98 -0
  398. package/lib/components/authentication/admin/DeviceAuth/types.d.ts +16 -0
  399. package/lib/components/authentication/admin/DeviceAuth/types.js +17 -0
  400. package/lib/components/authentication/admin/OAuthConfig/OAuthConfig.less +165 -0
  401. package/lib/components/authentication/admin/OAuthConfig/index.d.ts +6 -0
  402. package/lib/components/authentication/admin/OAuthConfig/index.js +226 -0
  403. package/lib/components/authentication/admin/OAuthConfig/locales.d.ts +90 -0
  404. package/lib/components/authentication/admin/OAuthConfig/locales.js +140 -0
  405. package/lib/components/authentication/admin/OAuthConfig/types.d.ts +22 -0
  406. package/lib/components/authentication/admin/OAuthConfig/types.js +17 -0
  407. package/lib/components/authentication/admin/OrgAdminAuth/OrgAdminAuth.less +104 -0
  408. package/lib/components/authentication/admin/OrgAdminAuth/index.d.ts +6 -0
  409. package/lib/components/authentication/admin/OrgAdminAuth/index.js +398 -0
  410. package/lib/components/authentication/admin/OrgAdminAuth/locales.d.ts +54 -0
  411. package/lib/components/authentication/admin/OrgAdminAuth/locales.js +98 -0
  412. package/lib/components/authentication/admin/OrgAdminAuth/types.d.ts +16 -0
  413. package/lib/components/authentication/admin/OrgAdminAuth/types.js +17 -0
  414. package/lib/components/authentication/admin/POSOperatorAuth/POSOperatorAuth.less +104 -0
  415. package/lib/components/authentication/admin/POSOperatorAuth/index.d.ts +6 -0
  416. package/lib/components/authentication/admin/POSOperatorAuth/index.js +262 -0
  417. package/lib/components/authentication/admin/POSOperatorAuth/locales.d.ts +48 -0
  418. package/lib/components/authentication/admin/POSOperatorAuth/locales.js +89 -0
  419. package/lib/components/authentication/admin/POSOperatorAuth/types.d.ts +16 -0
  420. package/lib/components/authentication/admin/POSOperatorAuth/types.js +17 -0
  421. package/lib/components/authentication/admin/SaaSAdminAuth/SaaSAdminAuth.less +104 -0
  422. package/lib/components/authentication/admin/SaaSAdminAuth/index.d.ts +6 -0
  423. package/lib/components/authentication/admin/SaaSAdminAuth/index.js +481 -0
  424. package/lib/components/authentication/admin/SaaSAdminAuth/locales.d.ts +54 -0
  425. package/lib/components/authentication/admin/SaaSAdminAuth/locales.js +98 -0
  426. package/lib/components/authentication/admin/SaaSAdminAuth/types.d.ts +16 -0
  427. package/lib/components/authentication/admin/SaaSAdminAuth/types.js +17 -0
  428. package/lib/components/authentication/admin/index.d.ts +26 -0
  429. package/lib/components/authentication/admin/index.js +83 -0
  430. package/lib/components/authentication/index.d.ts +0 -0
  431. package/lib/components/authentication/index.js +0 -0
  432. package/lib/components/booking/addons/model.d.ts +1 -10
  433. package/lib/components/booking/components/customSelect/index.js +26 -3
  434. package/lib/components/booking/components/footer/utils.js +11 -6
  435. package/lib/components/booking/forms/model.d.ts +1 -10
  436. package/lib/components/booking/info/model.d.ts +1 -10
  437. package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
  438. package/lib/components/booking/info/service2/utils.d.ts +1 -1
  439. package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
  440. package/lib/components/booking/model.d.ts +1 -9
  441. package/lib/components/booking/notes/model.d.ts +1 -10
  442. package/lib/components/booking/payments/model.d.ts +1 -10
  443. package/lib/components/booking/utils.d.ts +2 -2
  444. package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
  445. package/lib/components/eftposPay/amount.d.ts +1 -1
  446. package/lib/components/eftposPay/device.d.ts +1 -1
  447. package/lib/components/eftposPay/hooks.d.ts +2 -2
  448. package/lib/components/eftposPay/store/index.d.ts +5 -5
  449. package/lib/components/index.d.ts +3 -2
  450. package/lib/components/index.js +20 -1
  451. package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +27 -7
  452. package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +32 -8
  453. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +30 -4
  454. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
  455. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +88 -0
  456. package/lib/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +34 -0
  457. package/lib/components/pay/toC/PaymentMethods/hooks/index.d.ts +19 -0
  458. package/lib/components/pay/toC/PaymentMethods/hooks/index.js +90 -0
  459. package/lib/components/pay/toC/index.js +11 -2
  460. package/lib/components/pay/toC/locales.d.ts +9 -0
  461. package/lib/components/pay/toC/locales.js +12 -3
  462. package/lib/components/pay/toC/model.d.ts +2 -9
  463. package/lib/components/pay/toC/serve.d.ts +5 -0
  464. package/lib/components/pay/toC/serve.js +3 -0
  465. package/lib/components/schedules/model.d.ts +1 -9
  466. package/lib/components/wallet/Detail/model.d.ts +1 -13
  467. package/lib/components/wallet/DiscountCard/model.d.ts +1 -14
  468. package/lib/components/wallet/PointCard/model.d.ts +1 -13
  469. package/lib/components/wallet/RechargeableCard/model.d.ts +1 -29
  470. package/lib/components/wallet/Voucher/model.d.ts +1 -13
  471. package/lib/components/wallet/model.d.ts +1 -9
  472. package/lib/components/walletList/index.js +88 -47
  473. package/lib/components/walletList/serve.d.ts +4 -0
  474. package/lib/components/walletList/serve.js +12 -0
  475. package/lib/components/walletList/types/index.d.ts +12 -12
  476. package/lib/index.d.ts +5 -1
  477. package/lib/index.js +32 -3
  478. package/lib/plus/productSelect/CategoryTabs/index.d.ts +2 -0
  479. package/lib/plus/productSelect/CategoryTabs/index.js +86 -71
  480. package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
  481. package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
  482. package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
  483. package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
  484. package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
  485. package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
  486. package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
  487. package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
  488. package/lib/plus/productSelect/ProductCard/index.d.ts +3 -1
  489. package/lib/plus/productSelect/ProductCard/index.js +18 -4
  490. package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
  491. package/lib/plus/productSelect/index.d.ts +3 -2
  492. package/lib/plus/productSelect/index.js +20 -6
  493. package/lib/plus/productSelect/index.less +4 -0
  494. package/lib/plus/walletEditor/WalletEditor.d.ts +5 -0
  495. package/lib/plus/walletEditor/WalletEditor.js +354 -0
  496. package/lib/plus/walletEditor/WalletEditor.less +129 -0
  497. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
  498. package/lib/plus/walletEditor/components/ImageUpload/index.js +201 -0
  499. package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
  500. package/lib/plus/walletEditor/components/JsonEditor/index.js +89 -0
  501. package/lib/plus/walletEditor/components/JsonEditor/index.less +4 -0
  502. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
  503. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.js +176 -0
  504. package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
  505. package/lib/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
  506. package/lib/plus/walletEditor/components/relationProduct/index.js +73 -0
  507. package/lib/plus/walletEditor/components/relationProduct/index.less +15 -0
  508. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
  509. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +211 -0
  510. package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
  511. package/lib/plus/walletEditor/index.d.ts +3 -0
  512. package/lib/plus/walletEditor/index.js +42 -0
  513. package/lib/plus/walletEditor/locales.d.ts +126 -0
  514. package/lib/plus/walletEditor/locales.js +167 -0
  515. package/lib/plus/walletEditor/types.d.ts +52 -0
  516. package/lib/plus/walletEditor/types.js +17 -0
  517. package/lib/plus/walletPassGallery/components/footerButton/index.d.ts +14 -0
  518. package/lib/plus/walletPassGallery/components/footerButton/index.js +187 -0
  519. package/lib/plus/walletPassGallery/components/footerButton/index.less +93 -0
  520. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
  521. package/lib/plus/walletPassGallery/components/passDetail/index.js +287 -0
  522. package/lib/plus/walletPassGallery/components/passDetail/index.less +57 -0
  523. package/lib/plus/walletPassGallery/components/passList/index.d.ts +11 -0
  524. package/lib/plus/walletPassGallery/components/passList/index.js +136 -0
  525. package/lib/plus/walletPassGallery/components/recharge/index.d.ts +11 -0
  526. package/lib/plus/walletPassGallery/components/recharge/index.js +146 -0
  527. package/lib/plus/walletPassGallery/components/recharge/index.less +16 -0
  528. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +8 -0
  529. package/lib/plus/walletPassGallery/components/timelineSection/index.js +212 -0
  530. package/lib/plus/walletPassGallery/components/timelineSection/index.less +67 -0
  531. package/lib/plus/walletPassGallery/components/usageRule/index.d.ts +9 -0
  532. package/lib/plus/walletPassGallery/components/usageRule/index.js +209 -0
  533. package/lib/plus/walletPassGallery/components/usageRule/index.less +157 -0
  534. package/lib/plus/walletPassGallery/index.d.ts +6 -0
  535. package/lib/plus/walletPassGallery/index.js +498 -0
  536. package/lib/plus/walletPassGallery/index.less +115 -0
  537. package/lib/plus/walletPassGallery/locales.d.ts +270 -0
  538. package/lib/plus/walletPassGallery/locales.js +299 -0
  539. package/lib/plus/walletPassGallery/serve.d.ts +218 -0
  540. package/lib/plus/walletPassGallery/serve.js +98 -0
  541. package/lib/pro/Login2.0/AuthModal.d.ts +143 -0
  542. package/lib/pro/Login2.0/AuthModal.js +503 -0
  543. package/lib/pro/Login2.0/Login2.d.ts +61 -0
  544. package/lib/pro/Login2.0/Login2.js +1545 -0
  545. package/lib/pro/Login2.0/Register2.d.ts +65 -0
  546. package/lib/pro/Login2.0/Register2.js +1063 -0
  547. package/lib/pro/Login2.0/components/ForgotPasswordFlow.d.ts +31 -0
  548. package/lib/pro/Login2.0/components/ForgotPasswordFlow.js +213 -0
  549. package/lib/pro/Login2.0/components/LegalTerms.d.ts +8 -0
  550. package/lib/pro/Login2.0/components/LegalTerms.js +76 -0
  551. package/lib/pro/Login2.0/components/LegalTerms.less +74 -0
  552. package/lib/pro/Login2.0/components/LoginCodeInput.d.ts +27 -0
  553. package/lib/pro/Login2.0/components/LoginCodeInput.js +161 -0
  554. package/lib/pro/Login2.0/components/OAuthButtonGroup.d.ts +22 -0
  555. package/lib/pro/Login2.0/components/OAuthButtonGroup.js +87 -0
  556. package/lib/pro/Login2.0/components/PhoneInput.d.ts +53 -0
  557. package/lib/pro/Login2.0/components/PhoneInput.js +263 -0
  558. package/lib/pro/Login2.0/components/PhoneInput.less +148 -0
  559. package/lib/pro/Login2.0/components/phoneValidation.d.ts +17 -0
  560. package/lib/pro/Login2.0/components/phoneValidation.js +153 -0
  561. package/lib/pro/Login2.0/hooks/index.d.ts +2 -0
  562. package/lib/pro/Login2.0/hooks/index.js +29 -0
  563. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.d.ts +24 -0
  564. package/lib/pro/Login2.0/hooks/usePasswordValidationRules.js +140 -0
  565. package/lib/pro/Login2.0/hooks/useRegisterFlow.d.ts +39 -0
  566. package/lib/pro/Login2.0/hooks/useRegisterFlow.js +149 -0
  567. package/lib/pro/Login2.0/hooks/useRegistrationMethods.d.ts +9 -0
  568. package/lib/pro/Login2.0/hooks/useRegistrationMethods.js +51 -0
  569. package/lib/pro/Login2.0/index.js +45 -0
  570. package/lib/pro/Login2.0/index.less +1002 -0
  571. package/lib/pro/Login2.0/locales.d.ts +543 -0
  572. package/lib/pro/Login2.0/locales.js +646 -0
  573. package/lib/pro/Login2.0/shared/Header.d.ts +11 -0
  574. package/lib/pro/Login2.0/shared/Header.js +81 -0
  575. package/lib/pro/Login2.0/shared/OAuthButtons.d.ts +11 -0
  576. package/lib/pro/Login2.0/shared/OAuthButtons.js +78 -0
  577. package/lib/pro/Login2.0/shared/registerFlow.d.ts +116 -0
  578. package/lib/pro/Login2.0/shared/registerFlow.js +235 -0
  579. package/lib/pro/Login2.0/shared/types.d.ts +232 -0
  580. package/lib/pro/Login2.0/shared/types.js +17 -0
  581. package/lib/pro/Login2.0/steps/CodeInput.d.ts +24 -0
  582. package/lib/pro/Login2.0/steps/CodeInput.js +160 -0
  583. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.d.ts +12 -0
  584. package/lib/pro/Login2.0/steps/EmailAlreadyRegistered.js +46 -0
  585. package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.d.ts +7 -0
  586. package/lib/pro/Login2.0/steps/EmailLinkAlreadyUsed.js +51 -0
  587. package/lib/pro/Login2.0/steps/EmailLinkExpired.d.ts +9 -0
  588. package/lib/pro/Login2.0/steps/EmailLinkExpired.js +51 -0
  589. package/lib/pro/Login2.0/steps/SetPassword.d.ts +19 -0
  590. package/lib/pro/Login2.0/steps/SetPassword.js +131 -0
  591. package/lib/pro/Login2.0/steps/VerificationSuccess.d.ts +8 -0
  592. package/lib/pro/Login2.0/steps/VerificationSuccess.js +49 -0
  593. package/lib/pro/Login2.0/steps/VerifyingEmailLink.d.ts +7 -0
  594. package/lib/pro/Login2.0/steps/VerifyingEmailLink.js +41 -0
  595. package/lib/pro/Login2.0/steps/WaitEmailLink.d.ts +18 -0
  596. package/lib/pro/Login2.0/steps/WaitEmailLink.js +67 -0
  597. package/lib/pro/Login2.0/steps/index.d.ts +19 -0
  598. package/lib/pro/Login2.0/steps/index.js +60 -0
  599. package/lib/pro/Login2.0/steps/steps.less +423 -0
  600. package/lib/pro/Login2.0/types.d.ts +167 -0
  601. package/lib/pro/Login2.0/types.js +17 -0
  602. package/lib/pro/pisellPaymentList/example.d.ts +19 -0
  603. package/lib/pro/pisellPaymentList/example.js +416 -0
  604. package/lowcode/admin-auth-customer-auth/meta.ts +29 -0
  605. package/lowcode/admin-auth-customer-oauth-config/meta.ts +55 -0
  606. package/lowcode/admin-auth-device-auth/meta.ts +30 -0
  607. package/lowcode/admin-auth-methods/meta.ts +385 -0
  608. package/lowcode/admin-auth-oauth-config/meta.ts +29 -0
  609. package/lowcode/admin-auth-online-shop-auth/meta.ts +29 -0
  610. package/lowcode/admin-auth-org-admin-auth/meta.ts +29 -0
  611. package/lowcode/admin-auth-pos-operator-auth/meta.ts +30 -0
  612. package/lowcode/admin-auth-saas-admin-auth/meta.ts +29 -0
  613. package/lowcode/admin-auth-saas-managerment-auth/meta.ts +30 -0
  614. package/lowcode/admin-setting-list/meta.ts +125 -0
  615. package/lowcode/authmodal/meta.ts +395 -0
  616. package/lowcode/login2/CONFIG.md +447 -0
  617. package/lowcode/login2/TEST_CONFIG.md +324 -0
  618. package/lowcode/login2/VERIFICATION_METHODS.md +364 -0
  619. package/lowcode/login2/meta.ts +560 -0
  620. package/lowcode/login2/snippets.ts +124 -0
  621. package/lowcode/pro-register/meta.ts +385 -0
  622. package/lowcode/register2/meta.ts +562 -0
  623. package/lowcode/register2/snippets.ts +257 -0
  624. package/lowcode/sortable-wallet-pass-types/meta.ts +267 -0
  625. package/lowcode/wallet-editor/meta.ts +57 -0
  626. package/lowcode/wallet-editor/snippets.ts +13 -0
  627. package/lowcode/wallet-pass-gallery/meta.ts +35 -0
  628. package/package.json +14 -14
  629. package/lowcode/wallet/meta.ts +0 -79
@@ -0,0 +1,143 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
+ import React from 'react';
6
+ import { Button, PisellToast } from '@pisell/materials';
7
+ import { locales } from '@pisell/utils';
8
+ import { useMemoizedFn } from 'ahooks';
9
+ import { getPaymentResult } from "../../../serve";
10
+ import usePrefix from "../../../../../../hooks/usePrefix";
11
+ import "./index.less";
12
+ /**
13
+ * 支付返回后展示的内容组件
14
+ * 当用户从外部支付页面返回时展示此组件
15
+ */
16
+ var PaymentReturnContent = function PaymentReturnContent(_ref) {
17
+ var orderId = _ref.orderId,
18
+ unique_payment_number = _ref.unique_payment_number,
19
+ state = _ref.state,
20
+ handleReturn = _ref.handleReturn,
21
+ pay_number = _ref.pay_number;
22
+ var prefix = usePrefix();
23
+ var getPaymentIsPaid = useMemoizedFn( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
24
+ var _yield$getPaymentResu, data;
25
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
26
+ while (1) switch (_context.prev = _context.next) {
27
+ case 0:
28
+ if (!(!unique_payment_number && !pay_number)) {
29
+ _context.next = 2;
30
+ break;
31
+ }
32
+ return _context.abrupt("return", true);
33
+ case 2:
34
+ _context.next = 4;
35
+ return getPaymentResult({
36
+ order_id: orderId,
37
+ pay_number: pay_number,
38
+ unique_payment_number: pay_number ? undefined : unique_payment_number
39
+ });
40
+ case 4:
41
+ _yield$getPaymentResu = _context.sent;
42
+ data = _yield$getPaymentResu.data;
43
+ return _context.abrupt("return", (data === null || data === void 0 ? void 0 : data.payment_status) === 'paid');
44
+ case 7:
45
+ case "end":
46
+ return _context.stop();
47
+ }
48
+ }, _callee);
49
+ })));
50
+
51
+ /**
52
+ * 查看订单
53
+ * @returns
54
+ */
55
+ var handleViewOrder = /*#__PURE__*/function () {
56
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
57
+ var _state$payCallback;
58
+ var isPaid;
59
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
60
+ while (1) switch (_context2.prev = _context2.next) {
61
+ case 0:
62
+ _context2.next = 2;
63
+ return getPaymentIsPaid();
64
+ case 2:
65
+ isPaid = _context2.sent;
66
+ if (isPaid) {
67
+ _context2.next = 6;
68
+ break;
69
+ }
70
+ PisellToast({
71
+ content: locales.getText('tocPay.text.paymentFailed')
72
+ });
73
+ return _context2.abrupt("return");
74
+ case 6:
75
+ // 如果已支付,则跳转至订单详情
76
+ (_state$payCallback = state.payCallback) === null || _state$payCallback === void 0 || _state$payCallback.call(state, {
77
+ key: 'success'
78
+ });
79
+ case 7:
80
+ case "end":
81
+ return _context2.stop();
82
+ }
83
+ }, _callee2);
84
+ }));
85
+ return function handleViewOrder() {
86
+ return _ref3.apply(this, arguments);
87
+ };
88
+ }();
89
+
90
+ /**
91
+ * 返回并选择其他支付方式
92
+ * @returns
93
+ */
94
+ var handleGoBack = /*#__PURE__*/function () {
95
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
96
+ var isPaid, _state$payCallback2;
97
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
98
+ while (1) switch (_context3.prev = _context3.next) {
99
+ case 0:
100
+ _context3.next = 2;
101
+ return getPaymentIsPaid();
102
+ case 2:
103
+ isPaid = _context3.sent;
104
+ if (isPaid) {
105
+ _context3.next = 8;
106
+ break;
107
+ }
108
+ handleReturn === null || handleReturn === void 0 || handleReturn();
109
+ return _context3.abrupt("return");
110
+ case 8:
111
+ // 如果已支付,则跳转至订单详情
112
+ (_state$payCallback2 = state.payCallback) === null || _state$payCallback2 === void 0 || _state$payCallback2.call(state, {
113
+ key: 'success'
114
+ });
115
+ case 9:
116
+ case "end":
117
+ return _context3.stop();
118
+ }
119
+ }, _callee3);
120
+ }));
121
+ return function handleGoBack() {
122
+ return _ref4.apply(this, arguments);
123
+ };
124
+ }();
125
+ return /*#__PURE__*/React.createElement("div", {
126
+ className: "payment-return-content"
127
+ }, /*#__PURE__*/React.createElement("div", {
128
+ className: "payment-return-content-img"
129
+ }, /*#__PURE__*/React.createElement("img", {
130
+ src: "".concat(prefix, "/payment-content.png"),
131
+ alt: "success"
132
+ })), /*#__PURE__*/React.createElement("div", {
133
+ className: "payment-return-content-buttons"
134
+ }, /*#__PURE__*/React.createElement(Button, {
135
+ block: true,
136
+ className: "payment-return-content-order-button",
137
+ onClick: handleViewOrder
138
+ }, locales.getText('tocPay.text.paymentCompletedAndViewOrder')), /*#__PURE__*/React.createElement(Button, {
139
+ block: true,
140
+ onClick: handleGoBack
141
+ }, locales.getText('tocPay.text.returnAndSelectOtherPaymentMethod'))));
142
+ };
143
+ export default PaymentReturnContent;
@@ -0,0 +1,34 @@
1
+ .payment-return-content {
2
+ padding: 100px 46px 0;
3
+
4
+ .payment-return-content-img {
5
+ width: 100%;
6
+ margin-bottom: 60px;
7
+ min-height: 270px;
8
+ img {
9
+ width: 100%;
10
+ height: 100%;
11
+ }
12
+ }
13
+
14
+ .payment-return-content-buttons {
15
+ display: flex;
16
+ flex-direction: column;
17
+ gap: 24px;
18
+ button {
19
+ border-radius: 40px;
20
+ span {
21
+ width: 100%;
22
+ text-overflow: ellipsis;
23
+ overflow: hidden;
24
+ }
25
+ }
26
+ .payment-return-content-order-button {
27
+ background: #7F56DA;
28
+ color: var(--Primary-700, #6941C6);
29
+ border: 1px solid var(--Primary-200, #E9D7FE);
30
+ background: var(--Primary-50, #F9F5FF);
31
+ }
32
+ }
33
+ }
34
+
@@ -0,0 +1,19 @@
1
+ export interface UsePaymentRedirectOptions {
2
+ orderId?: string;
3
+ paymentType: string;
4
+ onAfterReturn?: () => void;
5
+ }
6
+ export interface UsePaymentRedirectReturn {
7
+ isReturned: boolean;
8
+ handleRedirect: (url: string) => Promise<void>;
9
+ resetState: () => void;
10
+ }
11
+ /**
12
+ * 支付跳转 Hook
13
+ * 用于处理跳转到外部支付页面的逻辑,包括:
14
+ * 1. 保存跳转标记到 history state
15
+ * 2. 跳转到外部支付页面
16
+ * 3. 监听页面返回事件
17
+ * 4. 返回后更新状态
18
+ */
19
+ export declare const usePaymentRedirect: (options: UsePaymentRedirectOptions) => UsePaymentRedirectReturn;
@@ -0,0 +1,126 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
9
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
10
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
15
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
+ import { useMemoizedFn } from 'ahooks';
17
+ import { useState, useEffect } from 'react';
18
+ /**
19
+ * 支付跳转 Hook
20
+ * 用于处理跳转到外部支付页面的逻辑,包括:
21
+ * 1. 保存跳转标记到 history state
22
+ * 2. 跳转到外部支付页面
23
+ * 3. 监听页面返回事件
24
+ * 4. 返回后更新状态
25
+ */
26
+ export var usePaymentRedirect = function usePaymentRedirect(options) {
27
+ var orderId = options.orderId,
28
+ paymentType = options.paymentType,
29
+ onAfterReturn = options.onAfterReturn;
30
+ var _useState = useState(false),
31
+ _useState2 = _slicedToArray(_useState, 2),
32
+ isReturned = _useState2[0],
33
+ setIsReturned = _useState2[1];
34
+
35
+ /**
36
+ * 执行跳转
37
+ */
38
+ var handleRedirect = useMemoizedFn( /*#__PURE__*/function () {
39
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(url) {
40
+ var currentState;
41
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
42
+ while (1) switch (_context.prev = _context.next) {
43
+ case 0:
44
+ _context.prev = 0;
45
+ // 使用 History State 保存跳转标记
46
+ currentState = window.history.state || {};
47
+ window.history.replaceState(_objectSpread(_objectSpread({}, currentState), {}, {
48
+ paymentRedirected: true,
49
+ paymentType: paymentType,
50
+ orderId: orderId,
51
+ timestamp: Date.now()
52
+ }), '', window.location.href);
53
+
54
+ // 跳转到外部支付页面
55
+ window.location.href = url;
56
+ _context.next = 9;
57
+ break;
58
+ case 6:
59
+ _context.prev = 6;
60
+ _context.t0 = _context["catch"](0);
61
+ throw _context.t0;
62
+ case 9:
63
+ case "end":
64
+ return _context.stop();
65
+ }
66
+ }, _callee, null, [[0, 6]]);
67
+ }));
68
+ return function (_x) {
69
+ return _ref.apply(this, arguments);
70
+ };
71
+ }());
72
+
73
+ /**
74
+ * 重置状态
75
+ */
76
+ var resetState = useMemoizedFn(function () {
77
+ setIsReturned(false);
78
+ });
79
+
80
+ /**
81
+ * 监听页面显示事件(包括浏览器返回按钮)
82
+ */
83
+ useEffect(function () {
84
+ var handlePageShow = function handlePageShow(event) {
85
+ if (!orderId) return;
86
+
87
+ // 检查 History State 中是否有跳转标记
88
+ var historyState = window.history.state;
89
+ if (historyState !== null && historyState !== void 0 && historyState.paymentRedirected && (historyState === null || historyState === void 0 ? void 0 : historyState.paymentType) === paymentType && (historyState === null || historyState === void 0 ? void 0 : historyState.orderId) === orderId) {
90
+ console.log("\u68C0\u6D4B\u5230\u4ECE ".concat(paymentType, " \u8FD4\u56DE, event.persisted:"), event.persisted);
91
+
92
+ // 从支付页面返回,设置返回状态
93
+ setIsReturned(true);
94
+
95
+ // 执行返回后的回调
96
+ if (onAfterReturn) {
97
+ onAfterReturn();
98
+ }
99
+
100
+ // 清除标记,避免重复触发
101
+ var newState = _objectSpread({}, historyState);
102
+ delete newState.paymentRedirected;
103
+ delete newState.paymentType;
104
+ delete newState.timestamp;
105
+ delete newState.orderId;
106
+ window.history.replaceState(newState, '', window.location.href);
107
+ }
108
+ };
109
+
110
+ // 首次加载时也检查一次
111
+ handlePageShow({
112
+ persisted: false
113
+ });
114
+
115
+ // 监听 pageshow 事件(浏览器返回时触发)
116
+ window.addEventListener('pageshow', handlePageShow);
117
+ return function () {
118
+ window.removeEventListener('pageshow', handlePageShow);
119
+ };
120
+ }, [orderId, paymentType]);
121
+ return {
122
+ isReturned: isReturned,
123
+ handleRedirect: handleRedirect,
124
+ resetState: resetState
125
+ };
126
+ };
@@ -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 } 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";
@@ -121,7 +121,8 @@ var ToCPay = function ToCPay(props, ref) {
121
121
  status: 'init',
122
122
  // 将支付回调储存在store, 方便其他模块调用
123
123
  payCallback: props.callback,
124
- history: (_context$appHelper$ut5 = context.appHelper.utils) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.history
124
+ history: (_context$appHelper$ut5 = context.appHelper.utils) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.history,
125
+ front_order_uuid: getUniqueId('front_order_uuid_')
125
126
  // 支付组
126
127
  // payGroup: {
127
128
  // order_id: initProps?.order?.order_id,
@@ -260,7 +261,7 @@ var ToCPay = function ToCPay(props, ref) {
260
261
  */
261
262
  var _getPaymentsAndWalletPass = /*#__PURE__*/function () {
262
263
  var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(order) {
263
- var _state$payGroup2, _paymentListRef$curre, data, _ref4, _ref4$remain_amount, remain_amount, wallet_pass_recommend_list, wallet_pass_amount, payment_list, walletPass;
264
+ var _state$payGroup2, _paymentListRef$curre, data, _ref4, _ref4$remain_amount, remain_amount, wallet_pass_recommend_list, wallet_pass_amount, payment_list, walletPass, withCustomerIdList;
264
265
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
265
266
  while (1) switch (_context3.prev = _context3.next) {
266
267
  case 0:
@@ -283,10 +284,13 @@ var ToCPay = function ToCPay(props, ref) {
283
284
  _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; // 记录获取到的数据
284
285
  paymentLogger.addLog({
285
286
  key: '支付数据获取',
286
- value: ""
287
+ value: ''
287
288
  });
288
-
289
- // 设置交易组
289
+ withCustomerIdList = (wallet_pass_recommend_list || []).map(function (item) {
290
+ return _objectSpread(_objectSpread({}, item), {}, {
291
+ customer_id: customer_id || item.customer_id
292
+ });
293
+ }); // 设置交易组
290
294
  dispatch({
291
295
  type: 'setPayGroup',
292
296
  payload: {
@@ -299,7 +303,7 @@ var ToCPay = function ToCPay(props, ref) {
299
303
  // 支付方式没有walletPass时walletPass设置null
300
304
  walletPass: walletPass ? _objectSpread(_objectSpread(_objectSpread({}, (_state$payGroup2 = state.payGroup) === null || _state$payGroup2 === void 0 ? void 0 : _state$payGroup2.walletPass), walletPass), {}, {
301
305
  amount: wallet_pass_amount,
302
- cards: wallet_pass_recommend_list
306
+ cards: withCustomerIdList
303
307
  }) : null,
304
308
  total_amount: order === null || order === void 0 ? void 0 : order.amount,
305
309
  wait_amount: remain_amount
@@ -307,9 +311,9 @@ var ToCPay = function ToCPay(props, ref) {
307
311
  });
308
312
 
309
313
  // 初始化支付列表
310
- _context3.next = 10;
314
+ _context3.next = 11;
311
315
  return (_paymentListRef$curre = paymentListRef.current) === null || _paymentListRef$curre === void 0 ? void 0 : _paymentListRef$curre.init(payment_list);
312
- case 10:
316
+ case 11:
313
317
  // 解除loading
314
318
  setTimeout(function () {
315
319
  setLoading(false);
@@ -318,12 +322,12 @@ var ToCPay = function ToCPay(props, ref) {
318
322
  // 记录获取支付列表成功
319
323
  paymentLogger.addLog({
320
324
  key: '获取支付列表成功',
321
- value: ""
325
+ value: ''
322
326
  });
323
- _context3.next = 20;
327
+ _context3.next = 21;
324
328
  break;
325
- case 14:
326
- _context3.prev = 14;
329
+ case 15:
330
+ _context3.prev = 15;
327
331
  _context3.t0 = _context3["catch"](1);
328
332
  console.log('err', _context3.t0);
329
333
 
@@ -346,11 +350,11 @@ var ToCPay = function ToCPay(props, ref) {
346
350
  fn: '_getPaymentsAndWalletPass'
347
351
  }
348
352
  });
349
- case 20:
353
+ case 21:
350
354
  case "end":
351
355
  return _context3.stop();
352
356
  }
353
- }, _callee3, null, [[1, 14]]);
357
+ }, _callee3, null, [[1, 15]]);
354
358
  }));
355
359
  return function _getPaymentsAndWalletPass(_x3) {
356
360
  return _ref3.apply(this, arguments);
@@ -377,7 +381,7 @@ var ToCPay = function ToCPay(props, ref) {
377
381
  currentPayGroup = payGroup || state.payGroup; // 记录开始处理支付
378
382
  paymentLogger.addLog({
379
383
  key: '开始支付处理',
380
- value: ""
384
+ value: ''
381
385
  });
382
386
  _context4.prev = 3;
383
387
  // 打开loading
@@ -393,7 +397,7 @@ var ToCPay = function ToCPay(props, ref) {
393
397
  // 记录支付方法调用成功
394
398
  paymentLogger.addLog({
395
399
  key: '支付方法调用成功',
396
- value: ""
400
+ value: ''
397
401
  });
398
402
  paymentLogger.sendLogs('支付方法调用成功');
399
403
 
@@ -449,7 +453,7 @@ var ToCPay = function ToCPay(props, ref) {
449
453
  orderId = newOrderId || ((_state$payGroup4 = state.payGroup) === null || _state$payGroup4 === void 0 ? void 0 : _state$payGroup4.order_id); // 记录开始创建交易组
450
454
  paymentLogger.addLog({
451
455
  key: '开始创建交易组',
452
- value: ""
456
+ value: ''
453
457
  });
454
458
  setSubmitLoading(true);
455
459
  _context5.prev = 3;
@@ -474,7 +478,7 @@ var ToCPay = function ToCPay(props, ref) {
474
478
  // 记录创建交易组成功
475
479
  paymentLogger.addLog({
476
480
  key: '创建交易组成功',
477
- value: ""
481
+ value: ''
478
482
  });
479
483
  return _context5.abrupt("return", _objectSpread(_objectSpread({}, state.payGroup), {}, {
480
484
  order_id: orderId,
@@ -624,7 +628,7 @@ var ToCPay = function ToCPay(props, ref) {
624
628
  }
625
629
  paymentLogger.addLog({
626
630
  key: '无痕模式检测',
627
- value: ""
631
+ value: ''
628
632
  });
629
633
  setShowDetectIncognitoConfirm(true);
630
634
  return _context7.abrupt("return");
@@ -635,7 +639,7 @@ var ToCPay = function ToCPay(props, ref) {
635
639
  }
636
640
  paymentLogger.addLog({
637
641
  key: '需要创建交易组',
638
- value: ""
642
+ value: ''
639
643
  });
640
644
  _context7.next = 14;
641
645
  return paymentInit(newOrderId);
@@ -652,7 +656,7 @@ var ToCPay = function ToCPay(props, ref) {
652
656
  // 记录提交成功(这里是调用成功,实际支付结果在payCallback中处理)
653
657
  paymentLogger.addLog({
654
658
  key: '支付提交调用成功',
655
- value: ""
659
+ value: ''
656
660
  });
657
661
  _context7.next = 25;
658
662
  break;
@@ -94,6 +94,9 @@ declare const _default: {
94
94
  'tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment': (walletName: string) => string;
95
95
  'tocPay.text.bestValueCombination': string;
96
96
  'tocPay.text.viewDetail': string;
97
+ 'tocPay.text.returnAndSelectOtherPaymentMethod': string;
98
+ 'tocPay.text.paymentCompletedAndViewOrder': string;
99
+ 'tocPay.text.paymentFailed': string;
97
100
  };
98
101
  'zh-CN': {
99
102
  'tocPay.text.checkout': string;
@@ -189,6 +192,9 @@ declare const _default: {
189
192
  'tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment': (walletName: string) => string;
190
193
  'tocPay.text.bestValueCombination': string;
191
194
  'tocPay.text.viewDetail': string;
195
+ 'tocPay.text.returnAndSelectOtherPaymentMethod': string;
196
+ 'tocPay.text.paymentCompletedAndViewOrder': string;
197
+ 'tocPay.text.paymentFailed': string;
192
198
  };
193
199
  'zh-HK': {
194
200
  'tocPay.text.checkout': string;
@@ -284,6 +290,9 @@ declare const _default: {
284
290
  'tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment': (walletName: string) => string;
285
291
  'tocPay.text.bestValueCombination': string;
286
292
  'tocPay.text.viewDetail': string;
293
+ 'tocPay.text.returnAndSelectOtherPaymentMethod': string;
294
+ 'tocPay.text.paymentCompletedAndViewOrder': string;
295
+ 'tocPay.text.paymentFailed': string;
287
296
  };
288
297
  };
289
298
  export default _default;
@@ -113,7 +113,10 @@ export default {
113
113
  return "You can select multiple ".concat(walletName, " to combine for payment");
114
114
  },
115
115
  'tocPay.text.bestValueCombination': 'Best value combination',
116
- 'tocPay.text.viewDetail': 'View detail'
116
+ 'tocPay.text.viewDetail': 'View detail',
117
+ 'tocPay.text.returnAndSelectOtherPaymentMethod': 'Go Back / Choose Another Payment',
118
+ 'tocPay.text.paymentCompletedAndViewOrder': 'Payment Completed / View Order',
119
+ 'tocPay.text.paymentFailed': 'Not paid yet, please check if the payment is successful'
117
120
  },
118
121
  'zh-CN': {
119
122
  'tocPay.text.checkout': '结账',
@@ -228,7 +231,10 @@ export default {
228
231
  return "\u60A8\u53EF\u4EE5\u9009\u62E9\u591A\u4E2A".concat(walletName, "\u8FDB\u884C\u7EC4\u5408\u4ED8\u6B3E");
229
232
  },
230
233
  'tocPay.text.bestValueCombination': '最佳组合',
231
- 'tocPay.text.viewDetail': '查看详情'
234
+ 'tocPay.text.viewDetail': '查看详情',
235
+ 'tocPay.text.returnAndSelectOtherPaymentMethod': '返回 / 选择其他支付方式',
236
+ 'tocPay.text.paymentCompletedAndViewOrder': '支付完成 / 查看订单',
237
+ 'tocPay.text.paymentFailed': "未支付完成,请检查是否支付成功"
232
238
  },
233
239
  'zh-HK': {
234
240
  'tocPay.text.checkout': '結帳',
@@ -343,6 +349,9 @@ export default {
343
349
  return "\u60A8\u53EF\u4EE5\u9078\u64C7\u591A\u500B".concat(walletName, "\u9032\u884C\u7D44\u5408\u4ED8\u6B3E");
344
350
  },
345
351
  'tocPay.text.bestValueCombination': '最佳組合',
346
- 'tocPay.text.viewDetail': '查看詳情'
352
+ 'tocPay.text.viewDetail': '查看詳情',
353
+ 'tocPay.text.returnAndSelectOtherPaymentMethod': '返回 / 選擇其他支付方式',
354
+ 'tocPay.text.paymentCompletedAndViewOrder': '支付完成 / 查看訂單',
355
+ 'tocPay.text.paymentFailed': "未支付完成,请检查是否支付成功"
347
356
  }
348
357
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface FormState {
3
2
  platform: 'pc' | 'h5' | '' | undefined;
4
3
  order: any;
@@ -28,12 +27,6 @@ export interface PayGroup {
28
27
  payment_priority?: string[];
29
28
  pay_number?: string;
30
29
  _order: any;
30
+ front_order_uuid?: string;
31
31
  }
32
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
33
- state: FormState;
34
- } & {
35
- dispatch: (params: {
36
- type: string;
37
- payload: any;
38
- }) => void;
39
- }>;
32
+ export declare const Provider: any, Context: any;
@@ -55,3 +55,8 @@ export declare const getWalletNameAndPopupStatus: (values: {
55
55
  popup_status?: 1 | 0;
56
56
  };
57
57
  }>;
58
+ /**
59
+ * @title: 获取支付结果
60
+ * @description: 获取支付结果
61
+ */
62
+ export declare const getPaymentResult: (values: any) => Promise<any>;
@@ -177,4 +177,12 @@ export var getWalletNameAndPopupStatus = /*#__PURE__*/function () {
177
177
  return function getWalletNameAndPopupStatus(_x4) {
178
178
  return _ref4.apply(this, arguments);
179
179
  };
180
- }();
180
+ }();
181
+
182
+ /**
183
+ * @title: 获取支付结果
184
+ * @description: 获取支付结果
185
+ */
186
+ export var getPaymentResult = function getPaymentResult(values) {
187
+ return request.getRequest().get("/h5/pay/order/payment/result", values);
188
+ };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CalendarDataItem, ScheduleItem } from "./type";
3
2
  import dayjs from "dayjs";
4
3
  export interface FormState {
@@ -69,11 +68,4 @@ export interface FormState {
69
68
  };
70
69
  setGlobalState: Function | null;
71
70
  }
72
- export declare const Provider: (ComponentUi: any) => any, Context: import("react").Context<{
73
- state: FormState;
74
- } & {
75
- dispatch: (params: {
76
- type: string;
77
- payload: any;
78
- }) => void;
79
- }>;
71
+ export declare const Provider: any, Context: any;