@pisell/private-materials 3.0.111 → 3.0.113
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.
- package/build/lowcode/assets-daily.json +19 -11
- package/build/lowcode/assets-dev.json +10 -2
- package/build/lowcode/assets-prod.json +19 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +18 -16
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +18 -16
- package/es/components/booking/addons/index.d.ts +1 -1
- package/es/components/booking/addons/model.d.ts +2 -1
- package/es/components/booking/components/footer/index.js +1 -1
- package/es/components/booking/deposit/DepositItem/index.d.ts +4 -1
- package/es/components/booking/deposit/DepositItem/index.js +17 -6
- package/es/components/booking/deposit/DepositItem/index.less +36 -12
- package/es/components/booking/deposit/index.js +5 -2
- package/es/components/booking/forms/forms.d.ts +1 -1
- package/es/components/booking/forms/index.d.ts +1 -1
- package/es/components/booking/forms/model.d.ts +2 -1
- package/es/components/booking/index.d.ts +1 -1
- package/es/components/booking/info/index.d.ts +1 -1
- package/es/components/booking/info/model.d.ts +2 -1
- package/es/components/booking/info/service/editService/index.js +11 -9
- package/es/components/booking/locales.d.ts +12 -0
- package/es/components/booking/locales.js +12 -0
- package/es/components/booking/model.d.ts +2 -1
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/model.d.ts +2 -1
- package/es/components/booking/payments/index.d.ts +1 -1
- package/es/components/booking/payments/model.d.ts +2 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +2 -1
- package/es/components/pay/toC/PayAmount/index.d.ts +15 -0
- package/es/components/pay/toC/PayAmount/index.js +25 -0
- package/es/components/pay/toC/PayAmount/index.less +21 -0
- package/es/components/pay/toC/PayCountdown/index.d.ts +15 -0
- package/es/components/pay/toC/PayCountdown/index.js +26 -0
- package/es/components/pay/toC/PayCountdown/index.less +22 -0
- package/es/components/pay/toC/PaymentList/index.d.ts +19 -0
- package/es/components/pay/toC/PaymentList/index.js +342 -0
- package/es/components/pay/toC/PaymentList/index.less +112 -0
- package/es/components/pay/toC/PaymentList/mock.d.ts +88 -0
- package/es/components/pay/toC/PaymentList/mock.js +128 -0
- package/es/components/pay/toC/PaymentList/payment/alipay.svg +13 -0
- package/es/components/pay/toC/PaymentList/payment/apple_pay.svg +7 -0
- package/es/components/pay/toC/PaymentList/payment/bank_deposit.svg +11 -0
- package/es/components/pay/toC/PaymentList/payment/cash.svg +8 -0
- package/es/components/pay/toC/PaymentList/payment/credit_card.svg +10 -0
- package/es/components/pay/toC/PaymentList/payment/custom.svg +10 -0
- package/es/components/pay/toC/PaymentList/payment/google_pay.svg +9 -0
- package/es/components/pay/toC/PaymentList/payment/paypal.svg +8 -0
- package/es/components/pay/toC/PaymentList/payment/stripe.svg +16 -0
- package/es/components/pay/toC/PaymentList/payment/wxpay.svg +5 -0
- package/es/components/pay/toC/PaymentList/serve.d.ts +26 -0
- package/es/components/pay/toC/PaymentList/serve.js +135 -0
- package/es/components/pay/toC/PaymentList/status.d.ts +4 -0
- package/es/components/pay/toC/PaymentList/status.js +100 -0
- package/es/components/pay/toC/PaymentList/utils.d.ts +10 -0
- package/es/components/pay/toC/PaymentList/utils.js +53 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +113 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +74 -0
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/index.js +79 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/serve.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/serve.js +27 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/index.js +78 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/serve.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/serve.js +27 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +109 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +109 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.js +65 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.js +36 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +109 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +110 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +12 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +349 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +25 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +11 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +375 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.less +95 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.d.ts +5 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.js +37 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +4 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +21 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +24 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +222 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +7 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.js +130 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +524 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.js +73 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/serve.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/serve.js +27 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.js +61 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.js +121 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.less +35 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.js +33 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.js +30 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +8 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.js +37 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +8 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.js +13 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.js +15 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.less +27 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/stripe_loading.gif +0 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.js +108 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.js +113 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.less +22 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.js +96 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.module.less +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.js +33 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.js +78 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/serve.js +36 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +108 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +109 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +15 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +142 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.less +20 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.js +19 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +20 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +344 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +111 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.js +114 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +40 -0
- package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/index.js +316 -0
- package/es/components/pay/toC/WalletPassBlock/index.d.ts +14 -0
- package/es/components/pay/toC/WalletPassBlock/index.js +72 -0
- package/es/components/pay/toC/WalletPassBlock/index.less +65 -0
- package/es/components/pay/toC/index.d.ts +3 -0
- package/es/components/pay/toC/index.js +647 -0
- package/es/components/pay/toC/index.less +22 -0
- package/es/components/pay/toC/locales.d.ts +208 -0
- package/es/components/pay/toC/locales.js +207 -0
- package/es/components/pay/toC/model.d.ts +35 -0
- package/es/components/pay/toC/model.js +43 -0
- package/es/components/pay/toC/payGroup.d.ts +48 -0
- package/es/components/pay/toC/payGroup.js +105 -0
- package/es/components/pay/toC/serve.d.ts +34 -0
- package/es/components/pay/toC/serve.js +148 -0
- package/es/components/pay/toC/status.d.ts +3 -0
- package/es/components/pay/toC/status.js +82 -0
- package/es/components/pay/toC/utils.d.ts +30 -0
- package/es/components/pay/toC/utils.js +48 -0
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/model.d.ts +2 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/utils/index.d.ts +6 -5
- package/es/utils/index.js +28 -6
- package/lib/components/booking/addons/index.d.ts +1 -1
- package/lib/components/booking/addons/model.d.ts +2 -1
- package/lib/components/booking/components/footer/index.js +1 -1
- package/lib/components/booking/deposit/DepositItem/index.d.ts +4 -1
- package/lib/components/booking/deposit/DepositItem/index.js +17 -6
- package/lib/components/booking/deposit/DepositItem/index.less +36 -12
- package/lib/components/booking/deposit/index.js +5 -2
- package/lib/components/booking/forms/forms.d.ts +1 -1
- package/lib/components/booking/forms/index.d.ts +1 -1
- package/lib/components/booking/forms/model.d.ts +2 -1
- package/lib/components/booking/index.d.ts +1 -1
- package/lib/components/booking/info/index.d.ts +1 -1
- package/lib/components/booking/info/model.d.ts +2 -1
- package/lib/components/booking/info/service/editService/index.js +2 -0
- package/lib/components/booking/locales.d.ts +12 -0
- package/lib/components/booking/locales.js +12 -0
- package/lib/components/booking/model.d.ts +2 -1
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/model.d.ts +2 -1
- package/lib/components/booking/payments/index.d.ts +1 -1
- package/lib/components/booking/payments/model.d.ts +2 -1
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +5 -2
- package/lib/components/pay/toC/PayAmount/index.d.ts +15 -0
- package/lib/components/pay/toC/PayAmount/index.js +42 -0
- package/lib/components/pay/toC/PayAmount/index.less +21 -0
- package/lib/components/pay/toC/PayCountdown/index.d.ts +15 -0
- package/lib/components/pay/toC/PayCountdown/index.js +49 -0
- package/lib/components/pay/toC/PayCountdown/index.less +22 -0
- package/lib/components/pay/toC/PaymentList/index.d.ts +19 -0
- package/lib/components/pay/toC/PaymentList/index.js +256 -0
- package/lib/components/pay/toC/PaymentList/index.less +112 -0
- package/lib/components/pay/toC/PaymentList/mock.d.ts +88 -0
- package/lib/components/pay/toC/PaymentList/mock.js +174 -0
- package/lib/components/pay/toC/PaymentList/payment/alipay.svg +13 -0
- package/lib/components/pay/toC/PaymentList/payment/apple_pay.svg +7 -0
- package/lib/components/pay/toC/PaymentList/payment/bank_deposit.svg +11 -0
- package/lib/components/pay/toC/PaymentList/payment/cash.svg +8 -0
- package/lib/components/pay/toC/PaymentList/payment/credit_card.svg +10 -0
- package/lib/components/pay/toC/PaymentList/payment/custom.svg +10 -0
- package/lib/components/pay/toC/PaymentList/payment/google_pay.svg +9 -0
- package/lib/components/pay/toC/PaymentList/payment/paypal.svg +8 -0
- package/lib/components/pay/toC/PaymentList/payment/stripe.svg +16 -0
- package/lib/components/pay/toC/PaymentList/payment/wxpay.svg +5 -0
- package/lib/components/pay/toC/PaymentList/serve.d.ts +26 -0
- package/lib/components/pay/toC/PaymentList/serve.js +83 -0
- package/lib/components/pay/toC/PaymentList/status.d.ts +4 -0
- package/lib/components/pay/toC/PaymentList/status.js +132 -0
- package/lib/components/pay/toC/PaymentList/utils.d.ts +10 -0
- package/lib/components/pay/toC/PaymentList/utils.js +52 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +96 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +68 -0
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/index.js +56 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/serve.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/serve.js +33 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.js +56 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/serve.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/serve.js +33 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +89 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +89 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.js +61 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.js +43 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +89 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +95 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +12 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +270 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +25 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +11 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +224 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.less +95 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.d.ts +5 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.js +39 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +4 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +52 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +24 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +139 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +7 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.js +80 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +336 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.js +53 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/serve.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/serve.js +33 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.js +76 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.js +107 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.less +35 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.js +30 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +8 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.js +69 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +8 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.js +48 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.less +27 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/stripe_loading.gif +0 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.js +124 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.js +94 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.less +22 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.js +81 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.module.less +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.js +30 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +71 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/serve.js +43 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +88 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +87 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +15 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +126 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.less +20 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.js +56 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +20 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +284 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +111 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.js +54 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +70 -0
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/index.js +176 -0
- package/lib/components/pay/toC/WalletPassBlock/index.d.ts +14 -0
- package/lib/components/pay/toC/WalletPassBlock/index.js +97 -0
- package/lib/components/pay/toC/WalletPassBlock/index.less +65 -0
- package/lib/components/pay/toC/index.d.ts +3 -0
- package/lib/components/pay/toC/index.js +366 -0
- package/lib/components/pay/toC/index.less +22 -0
- package/lib/components/pay/toC/locales.d.ts +208 -0
- package/lib/components/pay/toC/locales.js +231 -0
- package/lib/components/pay/toC/model.d.ts +35 -0
- package/lib/components/pay/toC/model.js +60 -0
- package/lib/components/pay/toC/payGroup.d.ts +48 -0
- package/lib/components/pay/toC/payGroup.js +77 -0
- package/lib/components/pay/toC/serve.d.ts +34 -0
- package/lib/components/pay/toC/serve.js +78 -0
- package/lib/components/pay/toC/status.d.ts +3 -0
- package/lib/components/pay/toC/status.js +92 -0
- package/lib/components/pay/toC/utils.d.ts +30 -0
- package/lib/components/pay/toC/utils.js +62 -0
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/model.d.ts +2 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/utils/index.d.ts +6 -5
- package/lib/utils/index.js +12 -1
- package/lowcode/toc-pay/meta.ts +59 -0
- package/package.json +4 -3
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
+
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 exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
7
|
+
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); } }
|
|
8
|
+
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); }); }; }
|
|
9
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
10
|
+
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."); }
|
|
11
|
+
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); }
|
|
12
|
+
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; }
|
|
13
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
14
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
|
+
import React, { useState, useImperativeHandle, forwardRef, useMemo, useContext } from 'react';
|
|
16
|
+
import { Button } from 'antd';
|
|
17
|
+
import { locales } from '@pisell/utils';
|
|
18
|
+
import { PisellModal, Iconfont, PisellCheckboxGroup, PisellRow, getBankCardTypeImg, PisellLoading, PisellText } from '@pisell/materials';
|
|
19
|
+
import classNames from 'classnames';
|
|
20
|
+
import { Context } from "../../../model";
|
|
21
|
+
import { getCreditCardList, batchDeleteCards } from "./serve";
|
|
22
|
+
import "./index.less";
|
|
23
|
+
/**
|
|
24
|
+
* @title: 信用卡列表
|
|
25
|
+
* @description:
|
|
26
|
+
* @return {*}
|
|
27
|
+
* @Author: zhiwei.Wang
|
|
28
|
+
* @Date: 2024-08-16 11:04
|
|
29
|
+
*/
|
|
30
|
+
var MWCreditCardList = function MWCreditCardList(props, ref) {
|
|
31
|
+
var _useContext = useContext(Context),
|
|
32
|
+
state = _useContext.state;
|
|
33
|
+
// 打开弹窗
|
|
34
|
+
var _useState = useState(false),
|
|
35
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
36
|
+
open = _useState2[0],
|
|
37
|
+
setOpen = _useState2[1];
|
|
38
|
+
// 当前选中的卡
|
|
39
|
+
var _useState3 = useState(0),
|
|
40
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
41
|
+
currentCard = _useState4[0],
|
|
42
|
+
setCurrentCard = _useState4[1];
|
|
43
|
+
// 加载中
|
|
44
|
+
var _useState5 = useState(false),
|
|
45
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
46
|
+
loading = _useState6[0],
|
|
47
|
+
setLoading = _useState6[1];
|
|
48
|
+
// 卡列表
|
|
49
|
+
var _useState7 = useState([]),
|
|
50
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
51
|
+
creditCardList = _useState8[0],
|
|
52
|
+
setCreditCardList = _useState8[1];
|
|
53
|
+
// 是否为管理卡模式
|
|
54
|
+
var _useState9 = useState(false),
|
|
55
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
56
|
+
manage = _useState10[0],
|
|
57
|
+
setManage = _useState10[1];
|
|
58
|
+
// 订单信息
|
|
59
|
+
var _useState11 = useState(null),
|
|
60
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
61
|
+
order = _useState12[0],
|
|
62
|
+
setOrder = _useState12[1];
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @title: 获取卡列表
|
|
66
|
+
* @description:
|
|
67
|
+
* @return {*}
|
|
68
|
+
* @Author: zhiwei.Wang
|
|
69
|
+
* @Date: 2024-08-16 11:07
|
|
70
|
+
*/
|
|
71
|
+
var _getCreditCardList = /*#__PURE__*/function () {
|
|
72
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
73
|
+
var cardList;
|
|
74
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
75
|
+
while (1) switch (_context.prev = _context.next) {
|
|
76
|
+
case 0:
|
|
77
|
+
_context.next = 2;
|
|
78
|
+
return getCreditCardList();
|
|
79
|
+
case 2:
|
|
80
|
+
cardList = _context.sent;
|
|
81
|
+
// 设置数据
|
|
82
|
+
setCreditCardList(cardList);
|
|
83
|
+
|
|
84
|
+
// 设置默认选择的卡
|
|
85
|
+
if (cardList.length) {
|
|
86
|
+
setCurrentCard(cardList[0].id);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// 解除loading
|
|
90
|
+
setLoading(false);
|
|
91
|
+
case 6:
|
|
92
|
+
case "end":
|
|
93
|
+
return _context.stop();
|
|
94
|
+
}
|
|
95
|
+
}, _callee);
|
|
96
|
+
}));
|
|
97
|
+
return function _getCreditCardList() {
|
|
98
|
+
return _ref.apply(this, arguments);
|
|
99
|
+
};
|
|
100
|
+
}();
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @title: 初始化
|
|
104
|
+
* @description:
|
|
105
|
+
* @param {any} _order
|
|
106
|
+
* @return {*}
|
|
107
|
+
* @Author: zhiwei.Wang
|
|
108
|
+
* @Date: 2024-08-16 11:08
|
|
109
|
+
*/
|
|
110
|
+
var init = /*#__PURE__*/function () {
|
|
111
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_order) {
|
|
112
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
113
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
114
|
+
case 0:
|
|
115
|
+
// 没有卡的时候才展示loading, 二次打开不需要
|
|
116
|
+
if (!creditCardList.length) {
|
|
117
|
+
setLoading(true);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// 设置订单信息
|
|
121
|
+
setOrder(_order);
|
|
122
|
+
|
|
123
|
+
// 打开弹窗
|
|
124
|
+
setOpen(true);
|
|
125
|
+
|
|
126
|
+
// 关闭管理卡模式
|
|
127
|
+
setManage(false);
|
|
128
|
+
|
|
129
|
+
// 选中第一个卡
|
|
130
|
+
setCurrentCard(0);
|
|
131
|
+
|
|
132
|
+
// 异步 获取信用卡列表
|
|
133
|
+
_getCreditCardList();
|
|
134
|
+
case 6:
|
|
135
|
+
case "end":
|
|
136
|
+
return _context2.stop();
|
|
137
|
+
}
|
|
138
|
+
}, _callee2);
|
|
139
|
+
}));
|
|
140
|
+
return function init(_x2) {
|
|
141
|
+
return _ref2.apply(this, arguments);
|
|
142
|
+
};
|
|
143
|
+
}();
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @title: 设置卡
|
|
147
|
+
* @description:
|
|
148
|
+
* @param {number} id
|
|
149
|
+
* @return {*}
|
|
150
|
+
* @Author: zhiwei.Wang
|
|
151
|
+
* @Date: 2024-08-16 11:09
|
|
152
|
+
*/
|
|
153
|
+
var cardChange = function cardChange(id) {
|
|
154
|
+
setCurrentCard(id);
|
|
155
|
+
};
|
|
156
|
+
useImperativeHandle(ref, function () {
|
|
157
|
+
return {
|
|
158
|
+
init: init
|
|
159
|
+
};
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* @title: 自定义选项
|
|
164
|
+
* @description:
|
|
165
|
+
* @param {any} d
|
|
166
|
+
* @param {boolean} active
|
|
167
|
+
* @return {*}
|
|
168
|
+
* @Author: zhiwei.Wang
|
|
169
|
+
* @Date: 2024-08-16 11:09
|
|
170
|
+
*/
|
|
171
|
+
var renderOption = function renderOption(d, active) {
|
|
172
|
+
return /*#__PURE__*/React.createElement(PisellRow, {
|
|
173
|
+
key: d.id,
|
|
174
|
+
platform: "h5",
|
|
175
|
+
gap: 12,
|
|
176
|
+
centerContentFill: true,
|
|
177
|
+
leftContent: /*#__PURE__*/React.createElement("img", {
|
|
178
|
+
className: 'credit-card-type-image',
|
|
179
|
+
src: getBankCardTypeImg(d.card_number)
|
|
180
|
+
}),
|
|
181
|
+
centerContent: /*#__PURE__*/React.createElement("div", {
|
|
182
|
+
className: classNames('credit-card-name', {
|
|
183
|
+
'text-active-color': active
|
|
184
|
+
})
|
|
185
|
+
}, d.card_number),
|
|
186
|
+
rightContent: manage ? /*#__PURE__*/React.createElement(Iconfont, {
|
|
187
|
+
type: "pisell2-trash-01",
|
|
188
|
+
className: "remove-card-icon",
|
|
189
|
+
onClick: function onClick() {
|
|
190
|
+
changeCreditCard(d.id);
|
|
191
|
+
}
|
|
192
|
+
}) : undefined
|
|
193
|
+
});
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @title: 点击取消
|
|
198
|
+
* @description:
|
|
199
|
+
* @return {*}
|
|
200
|
+
* @Author: zhiwei.Wang
|
|
201
|
+
* @Date: 2024-08-16 11:09
|
|
202
|
+
*/
|
|
203
|
+
var onCancel = function onCancel() {
|
|
204
|
+
// 如果为管理模式, 则退出管理模式
|
|
205
|
+
if (manage) {
|
|
206
|
+
setManage(false);
|
|
207
|
+
resetCards();
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// 关闭弹窗
|
|
212
|
+
setOpen(false);
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @title: 重置卡的删除状态
|
|
217
|
+
* @description:
|
|
218
|
+
* @return {*}
|
|
219
|
+
* @Author: zhiwei.Wang
|
|
220
|
+
* @Date: 2024-08-16 11:10
|
|
221
|
+
*/
|
|
222
|
+
var resetCards = function resetCards() {
|
|
223
|
+
var _list = _toConsumableArray(creditCardList);
|
|
224
|
+
_list.forEach(function (d) {
|
|
225
|
+
if (d.delete) {
|
|
226
|
+
d.delete = 0;
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
setCreditCardList(_list);
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @title: 批量删除卡
|
|
234
|
+
* @description:
|
|
235
|
+
* @return {*}
|
|
236
|
+
* @Author: zhiwei.Wang
|
|
237
|
+
* @Date: 2024-08-16 11:10
|
|
238
|
+
*/
|
|
239
|
+
var handleBatchDeleteCards = function handleBatchDeleteCards() {
|
|
240
|
+
// 要删除的卡
|
|
241
|
+
var deleteList = creditCardList.filter(function (d) {
|
|
242
|
+
return d.delete === 1;
|
|
243
|
+
});
|
|
244
|
+
|
|
245
|
+
// 剩余的卡
|
|
246
|
+
var newList = creditCardList.filter(function (d) {
|
|
247
|
+
return d.delete !== 1;
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
// 格式化为ids
|
|
251
|
+
var ids = deleteList.map(function (d) {
|
|
252
|
+
return d.id;
|
|
253
|
+
});
|
|
254
|
+
if (ids.length) {
|
|
255
|
+
setCreditCardList(newList);
|
|
256
|
+
batchDeleteCards({
|
|
257
|
+
card_ids: ids
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @title: 点击确认
|
|
264
|
+
* @description:
|
|
265
|
+
* @return {*}
|
|
266
|
+
* @Author: zhiwei.Wang
|
|
267
|
+
* @Date: 2024-08-16 11:11
|
|
268
|
+
*/
|
|
269
|
+
var onOk = function onOk() {
|
|
270
|
+
var _props$onChange;
|
|
271
|
+
// 管理卡模式下, 则执行删除卡操作
|
|
272
|
+
if (manage) {
|
|
273
|
+
setManage(false);
|
|
274
|
+
handleBatchDeleteCards();
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
// 否则回调到外部
|
|
279
|
+
var cur = creditCardList.find(function (d) {
|
|
280
|
+
return d.id === currentCard;
|
|
281
|
+
});
|
|
282
|
+
(_props$onChange = props.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call(props, cur);
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
// 渲染列表
|
|
286
|
+
var renderList = useMemo(function () {
|
|
287
|
+
return creditCardList.filter(function (d) {
|
|
288
|
+
return d.delete !== 1;
|
|
289
|
+
});
|
|
290
|
+
}, [creditCardList]);
|
|
291
|
+
|
|
292
|
+
// 更改卡是否需要删除
|
|
293
|
+
var changeCreditCard = function changeCreditCard(id) {
|
|
294
|
+
var _list = _toConsumableArray(creditCardList);
|
|
295
|
+
_list.forEach(function (d) {
|
|
296
|
+
if (d.id === id) {
|
|
297
|
+
d.delete = 1;
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
setCreditCardList(_list);
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
// 确认按钮的文案
|
|
304
|
+
var okText = useMemo(function () {
|
|
305
|
+
var _state$payGroup;
|
|
306
|
+
var current = (_state$payGroup = state.payGroup) === null || _state$payGroup === void 0 ? void 0 : _state$payGroup.otherPayment;
|
|
307
|
+
|
|
308
|
+
// 存在附加费
|
|
309
|
+
if (current !== null && current !== void 0 && current.surcharge) {
|
|
310
|
+
var _state$payGroup2;
|
|
311
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
312
|
+
className: ""
|
|
313
|
+
}, locales.getText('tocPay.text.pay'), ' ', /*#__PURE__*/React.createElement(PisellText.Amount, {
|
|
314
|
+
value: ((_state$payGroup2 = state.payGroup) === null || _state$payGroup2 === void 0 ? void 0 : _state$payGroup2.wait_amount) || 0.0
|
|
315
|
+
}), " +", locales.getText('tocPay.text.surcharge'));
|
|
316
|
+
} else {
|
|
317
|
+
var _state$payGroup3;
|
|
318
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
319
|
+
className: ""
|
|
320
|
+
}, locales.getText('tocPay.text.pay'), ' ', /*#__PURE__*/React.createElement(PisellText.Amount, {
|
|
321
|
+
value: ((_state$payGroup3 = state.payGroup) === null || _state$payGroup3 === void 0 ? void 0 : _state$payGroup3.wait_amount) || 0.0
|
|
322
|
+
}));
|
|
323
|
+
}
|
|
324
|
+
}, [state.payGroup]);
|
|
325
|
+
return /*#__PURE__*/React.createElement(PisellModal, {
|
|
326
|
+
title: /*#__PURE__*/React.createElement("div", null, locales.getText('tocPay.text.creditorDebitCard')),
|
|
327
|
+
open: open,
|
|
328
|
+
onCancel: onCancel,
|
|
329
|
+
cancelVisible: false,
|
|
330
|
+
okText: manage ? locales.getText('tocPay.text.done') : okText,
|
|
331
|
+
onOk: onOk,
|
|
332
|
+
okButtonProps: {
|
|
333
|
+
disabled: !currentCard
|
|
334
|
+
},
|
|
335
|
+
bodyStyle: {
|
|
336
|
+
padding: 24
|
|
337
|
+
}
|
|
338
|
+
}, !manage && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(PisellLoading, {
|
|
339
|
+
loading: loading,
|
|
340
|
+
mask: true
|
|
341
|
+
}, /*#__PURE__*/React.createElement(PisellCheckboxGroup, {
|
|
342
|
+
platform: "h5",
|
|
343
|
+
options: renderList,
|
|
344
|
+
value: currentCard,
|
|
345
|
+
iconPosition: "right",
|
|
346
|
+
mode: "single",
|
|
347
|
+
rowKey: "id",
|
|
348
|
+
className: "credit-card-list",
|
|
349
|
+
gap: 12,
|
|
350
|
+
onChange: cardChange,
|
|
351
|
+
optionClassName: 'credit-card-item',
|
|
352
|
+
renderOption: renderOption
|
|
353
|
+
})), !loading && /*#__PURE__*/React.createElement(Button, {
|
|
354
|
+
icon: /*#__PURE__*/React.createElement(Iconfont, {
|
|
355
|
+
type: "pisell2-plus"
|
|
356
|
+
}),
|
|
357
|
+
type: "dashed",
|
|
358
|
+
className: "credit-card-add-button",
|
|
359
|
+
onClick: props.onAdd
|
|
360
|
+
}, /*#__PURE__*/React.createElement("span", null, locales.getText('tocPay.text.addCreditOrDebitCard')))), manage && /*#__PURE__*/React.createElement("div", {
|
|
361
|
+
className: "credit-card-list manage-credit-card-list"
|
|
362
|
+
}, renderList.map(function (d) {
|
|
363
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
364
|
+
className: "credit-card-item manage-credit-card",
|
|
365
|
+
key: d.id
|
|
366
|
+
}, renderOption(d));
|
|
367
|
+
})), !manage && renderList.length ? /*#__PURE__*/React.createElement(Button, {
|
|
368
|
+
type: "text",
|
|
369
|
+
className: "credit-card-manage-button",
|
|
370
|
+
onClick: function onClick() {
|
|
371
|
+
setManage(!manage);
|
|
372
|
+
}
|
|
373
|
+
}, locales.getText('tocPay.text.manageCard')) : null);
|
|
374
|
+
};
|
|
375
|
+
export default /*#__PURE__*/forwardRef(MWCreditCardList);
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
.credit-card-list {
|
|
2
|
+
margin-bottom: 12px;
|
|
3
|
+
margin-top: 0;
|
|
4
|
+
|
|
5
|
+
.credit-card-item {
|
|
6
|
+
padding: 16px;
|
|
7
|
+
|
|
8
|
+
.credit-card-type-image {
|
|
9
|
+
width: 46px;
|
|
10
|
+
height: 32px;
|
|
11
|
+
object-fit: contain;
|
|
12
|
+
border-radius: 4px;
|
|
13
|
+
border: 1px solid var(--Gray-100, #F2F4F7);
|
|
14
|
+
background: var(--Base-White, #FFF);
|
|
15
|
+
padding: 4px;
|
|
16
|
+
display: block;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.credit-card-name {
|
|
20
|
+
color: var(--Gray-700, #344054);
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-weight: 500;
|
|
24
|
+
line-height: 20px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.manage-credit-card-list {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
gap: 12px;
|
|
36
|
+
width: 100%;
|
|
37
|
+
|
|
38
|
+
.manage-credit-card {
|
|
39
|
+
width: 100%;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
border-radius: 12px;
|
|
42
|
+
position: relative;
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
&::before {
|
|
46
|
+
content: '';
|
|
47
|
+
position: absolute;
|
|
48
|
+
top: 0;
|
|
49
|
+
left: 0;
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 100%;
|
|
52
|
+
border-radius: 12px;
|
|
53
|
+
border: 1px solid var(--Gray-200, #EAECF0);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
.remove-card-icon {
|
|
58
|
+
color: #D92D20;
|
|
59
|
+
font-size: 24px;
|
|
60
|
+
width: 24px;
|
|
61
|
+
height: 24px;
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
position: relative;
|
|
66
|
+
z-index: 1;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.credit-card-add-button {
|
|
72
|
+
height: auto;
|
|
73
|
+
padding: 16px;
|
|
74
|
+
width: 100%;
|
|
75
|
+
border-radius: 12px;
|
|
76
|
+
color: var(--Gray-700, #344054);
|
|
77
|
+
text-align: center;
|
|
78
|
+
font-size: 14px;
|
|
79
|
+
font-style: normal;
|
|
80
|
+
font-weight: 500;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
.text-active-color {
|
|
85
|
+
color: var(--theme-color, #7F56D9) !important;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.credit-card-manage-button {
|
|
89
|
+
margin-top: 20px;
|
|
90
|
+
color: var(--theme-color, #6941C6);
|
|
91
|
+
font-size: 16px;
|
|
92
|
+
font-style: normal;
|
|
93
|
+
font-weight: 600;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
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 exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
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 { request } from "../../../../../../utils";
|
|
6
|
+
export var getCreditCardList = /*#__PURE__*/function () {
|
|
7
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8
|
+
var _yield$request$getReq, data;
|
|
9
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10
|
+
while (1) switch (_context.prev = _context.next) {
|
|
11
|
+
case 0:
|
|
12
|
+
_context.next = 2;
|
|
13
|
+
return request.getRequest().get('/h5/credit-card');
|
|
14
|
+
case 2:
|
|
15
|
+
_yield$request$getReq = _context.sent;
|
|
16
|
+
data = _yield$request$getReq.data;
|
|
17
|
+
return _context.abrupt("return", data || []);
|
|
18
|
+
case 5:
|
|
19
|
+
case "end":
|
|
20
|
+
return _context.stop();
|
|
21
|
+
}
|
|
22
|
+
}, _callee);
|
|
23
|
+
}));
|
|
24
|
+
return function getCreditCardList() {
|
|
25
|
+
return _ref.apply(this, arguments);
|
|
26
|
+
};
|
|
27
|
+
}();
|
|
28
|
+
|
|
29
|
+
// 批量删除信用卡
|
|
30
|
+
export var batchDeleteCards = function batchDeleteCards(values) {
|
|
31
|
+
return request.getRequest().remove('/h5/credit-card', values);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// 快捷支付
|
|
35
|
+
export var fastPayNew = function fastPayNew(values) {
|
|
36
|
+
return request.getRequest().post('/h5/pay/order/fast-payment/v2/' + values.order_id, values.params);
|
|
37
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import useEngineContext from "../../../../../../../hooks/useEngineContext";
|
|
3
|
+
import "./index.less";
|
|
4
|
+
import { locales } from '@pisell/utils';
|
|
5
|
+
var ThreedsLoading = function ThreedsLoading(_ref) {
|
|
6
|
+
var _context$appHelper;
|
|
7
|
+
var title = _ref.title;
|
|
8
|
+
var context = useEngineContext();
|
|
9
|
+
var _ref2 = ((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.constants) || {},
|
|
10
|
+
config = _ref2.config;
|
|
11
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
12
|
+
className: 'threeds-loading-wrap'
|
|
13
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
14
|
+
className: 'threeds-loading-logo',
|
|
15
|
+
src: config.static + '/static/stripe_loading.gif',
|
|
16
|
+
alt: ""
|
|
17
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
18
|
+
className: 'threeds-loading-title'
|
|
19
|
+
}, title || locales.getText('tocPay.text.waitingForBankVerification')));
|
|
20
|
+
};
|
|
21
|
+
export default ThreedsLoading;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.threeds-loading-wrap {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
background-color: #ffffff;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
|
|
9
|
+
.threeds-loading-logo {
|
|
10
|
+
margin-top: 300px;
|
|
11
|
+
width: 140px;
|
|
12
|
+
height: 140px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.threeds-loading-title {
|
|
16
|
+
margin-top: 20px;
|
|
17
|
+
padding: 0 40px;
|
|
18
|
+
text-align: center;
|
|
19
|
+
font-size: 15px;
|
|
20
|
+
font-weight: bold;
|
|
21
|
+
line-height: 20px;
|
|
22
|
+
color: #353535;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface TDSPayRef {
|
|
4
|
+
init: (res: any, order: any) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface TDSPayProps {
|
|
7
|
+
onChange?: (values: any) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<TDSPayProps & React.RefAttributes<any>>;
|
|
10
|
+
export default _default;
|