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