@pisell/private-materials 6.5.27 → 6.7.1
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 +146 -165
- 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/components/customSelect/index.js +23 -4
- package/es/components/booking/components/footer/index.js +4 -1
- package/es/components/booking/components/footer/utils.js +57 -44
- package/es/components/booking/forms/footer.js +24 -10
- 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/vertical/SelectDrawer.js +10 -2
- package/es/components/booking/info/clientVariant/vertical/index.js +1 -1
- package/es/components/booking/info/main.js +3 -2
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/service/Lists.js +1 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- 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 +4 -0
- package/es/components/booking/model.js +3 -0
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/linkly/index.js +64 -2
- package/es/components/eftposPay/store/index.d.ts +4 -4
- package/es/components/index.d.ts +3 -2
- package/es/components/index.js +3 -2
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +68 -35
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +70 -42
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +72 -41
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.d.ts +15 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.js +143 -0
- package/es/components/pay/toC/PaymentMethods/components/PaymentReturnContent/index.less +34 -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 +26 -22
- package/es/components/pay/toC/locales.d.ts +9 -0
- package/es/components/pay/toC/locales.js +12 -3
- package/es/components/pay/toC/model.d.ts +1 -0
- package/es/components/pay/toC/serve.d.ts +5 -0
- package/es/components/pay/toC/serve.js +9 -1
- package/es/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/walletList/index.js +92 -56
- 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/index.d.ts +7 -1
- package/es/index.js +7 -2
- 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/SkuCard/components/Capacity/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/es/plus/productSelect/ProductCard/index.d.ts +3 -1
- package/es/plus/productSelect/ProductCard/index.js +9 -1
- 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/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 +247 -0
- package/es/plus/walletPassGallery/components/footerButton/index.less +93 -0
- package/es/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
- package/es/plus/walletPassGallery/components/passDetail/index.js +274 -0
- package/es/plus/walletPassGallery/components/passDetail/index.less +57 -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 +134 -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 +602 -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 +1002 -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 +19 -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/components/customSelect/index.js +27 -4
- package/lib/components/booking/components/footer/index.js +4 -1
- package/lib/components/booking/components/footer/utils.js +54 -23
- package/lib/components/booking/forms/footer.js +29 -11
- 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/vertical/SelectDrawer.js +11 -4
- package/lib/components/booking/info/clientVariant/vertical/index.js +34 -17
- package/lib/components/booking/info/main.js +5 -4
- package/lib/components/booking/info/model.js +5 -0
- package/lib/components/booking/info/service/Lists.js +1 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- 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 +4 -0
- package/lib/components/booking/model.js +3 -0
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/linkly/index.js +31 -1
- package/lib/components/eftposPay/store/index.d.ts +4 -4
- package/lib/components/index.d.ts +3 -2
- package/lib/components/index.js +20 -1
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +27 -7
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +32 -8
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +30 -4
- 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 +34 -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 +11 -2
- package/lib/components/pay/toC/locales.d.ts +9 -0
- package/lib/components/pay/toC/locales.js +12 -3
- package/lib/components/pay/toC/model.d.ts +1 -0
- package/lib/components/pay/toC/serve.d.ts +5 -0
- package/lib/components/pay/toC/serve.js +3 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.less +2 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- 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/index.d.ts +7 -1
- package/lib/index.js +38 -3
- 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 +86 -71
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Capacity/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/CardMask/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Countdown/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Duration/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/MemberPrice/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Resource/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Stock/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/SkuCard/components/Time/index.d.ts +1 -1
- package/lib/plus/productSelect/ProductCard/index.d.ts +3 -1
- package/lib/plus/productSelect/ProductCard/index.js +18 -1
- 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/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 +93 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +8 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.js +287 -0
- package/lib/plus/walletPassGallery/components/passDetail/index.less +57 -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 +146 -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 +498 -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 +1002 -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 +19 -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/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 +6 -4
- 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 } from '@pisell/utils';
|
|
20
|
+
import { detectIncognito, locales, copyToClipboard, getUniqueId } from '@pisell/utils';
|
|
21
21
|
import PayCountdown from "./PayCountdown";
|
|
22
22
|
import PayAmount from "./PayAmount";
|
|
23
23
|
import WalletPassBlock from "./WalletPassBlock";
|
|
@@ -121,7 +121,8 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
121
121
|
status: 'init',
|
|
122
122
|
// 将支付回调储存在store, 方便其他模块调用
|
|
123
123
|
payCallback: props.callback,
|
|
124
|
-
history: (_context$appHelper$ut5 = context.appHelper.utils) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.history
|
|
124
|
+
history: (_context$appHelper$ut5 = context.appHelper.utils) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.history,
|
|
125
|
+
front_order_uuid: getUniqueId('front_order_uuid_')
|
|
125
126
|
// 支付组
|
|
126
127
|
// payGroup: {
|
|
127
128
|
// order_id: initProps?.order?.order_id,
|
|
@@ -260,7 +261,7 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
260
261
|
*/
|
|
261
262
|
var _getPaymentsAndWalletPass = /*#__PURE__*/function () {
|
|
262
263
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(order) {
|
|
263
|
-
var _state$payGroup2, _paymentListRef$curre, data, _ref4, _ref4$remain_amount, remain_amount, wallet_pass_recommend_list, wallet_pass_amount, payment_list, walletPass;
|
|
264
|
+
var _state$payGroup2, _paymentListRef$curre, data, _ref4, _ref4$remain_amount, remain_amount, wallet_pass_recommend_list, wallet_pass_amount, payment_list, walletPass, withCustomerIdList;
|
|
264
265
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
265
266
|
while (1) switch (_context3.prev = _context3.next) {
|
|
266
267
|
case 0:
|
|
@@ -283,10 +284,13 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
283
284
|
_ref4 = data || {}, _ref4$remain_amount = _ref4.remain_amount, remain_amount = _ref4$remain_amount === void 0 ? 0 : _ref4$remain_amount, wallet_pass_recommend_list = _ref4.wallet_pass_recommend_list, wallet_pass_amount = _ref4.wallet_pass_amount, payment_list = _ref4.payment_list, walletPass = _ref4.walletPass; // 记录获取到的数据
|
|
284
285
|
paymentLogger.addLog({
|
|
285
286
|
key: '支付数据获取',
|
|
286
|
-
value:
|
|
287
|
+
value: ''
|
|
287
288
|
});
|
|
288
|
-
|
|
289
|
-
|
|
289
|
+
withCustomerIdList = (wallet_pass_recommend_list || []).map(function (item) {
|
|
290
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
291
|
+
customer_id: customer_id || item.customer_id
|
|
292
|
+
});
|
|
293
|
+
}); // 设置交易组
|
|
290
294
|
dispatch({
|
|
291
295
|
type: 'setPayGroup',
|
|
292
296
|
payload: {
|
|
@@ -299,7 +303,7 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
299
303
|
// 支付方式没有walletPass时walletPass设置null
|
|
300
304
|
walletPass: walletPass ? _objectSpread(_objectSpread(_objectSpread({}, (_state$payGroup2 = state.payGroup) === null || _state$payGroup2 === void 0 ? void 0 : _state$payGroup2.walletPass), walletPass), {}, {
|
|
301
305
|
amount: wallet_pass_amount,
|
|
302
|
-
cards:
|
|
306
|
+
cards: withCustomerIdList
|
|
303
307
|
}) : null,
|
|
304
308
|
total_amount: order === null || order === void 0 ? void 0 : order.amount,
|
|
305
309
|
wait_amount: remain_amount
|
|
@@ -307,9 +311,9 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
307
311
|
});
|
|
308
312
|
|
|
309
313
|
// 初始化支付列表
|
|
310
|
-
_context3.next =
|
|
314
|
+
_context3.next = 11;
|
|
311
315
|
return (_paymentListRef$curre = paymentListRef.current) === null || _paymentListRef$curre === void 0 ? void 0 : _paymentListRef$curre.init(payment_list);
|
|
312
|
-
case
|
|
316
|
+
case 11:
|
|
313
317
|
// 解除loading
|
|
314
318
|
setTimeout(function () {
|
|
315
319
|
setLoading(false);
|
|
@@ -318,12 +322,12 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
318
322
|
// 记录获取支付列表成功
|
|
319
323
|
paymentLogger.addLog({
|
|
320
324
|
key: '获取支付列表成功',
|
|
321
|
-
value:
|
|
325
|
+
value: ''
|
|
322
326
|
});
|
|
323
|
-
_context3.next =
|
|
327
|
+
_context3.next = 21;
|
|
324
328
|
break;
|
|
325
|
-
case
|
|
326
|
-
_context3.prev =
|
|
329
|
+
case 15:
|
|
330
|
+
_context3.prev = 15;
|
|
327
331
|
_context3.t0 = _context3["catch"](1);
|
|
328
332
|
console.log('err', _context3.t0);
|
|
329
333
|
|
|
@@ -346,11 +350,11 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
346
350
|
fn: '_getPaymentsAndWalletPass'
|
|
347
351
|
}
|
|
348
352
|
});
|
|
349
|
-
case
|
|
353
|
+
case 21:
|
|
350
354
|
case "end":
|
|
351
355
|
return _context3.stop();
|
|
352
356
|
}
|
|
353
|
-
}, _callee3, null, [[1,
|
|
357
|
+
}, _callee3, null, [[1, 15]]);
|
|
354
358
|
}));
|
|
355
359
|
return function _getPaymentsAndWalletPass(_x3) {
|
|
356
360
|
return _ref3.apply(this, arguments);
|
|
@@ -377,7 +381,7 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
377
381
|
currentPayGroup = payGroup || state.payGroup; // 记录开始处理支付
|
|
378
382
|
paymentLogger.addLog({
|
|
379
383
|
key: '开始支付处理',
|
|
380
|
-
value:
|
|
384
|
+
value: ''
|
|
381
385
|
});
|
|
382
386
|
_context4.prev = 3;
|
|
383
387
|
// 打开loading
|
|
@@ -393,7 +397,7 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
393
397
|
// 记录支付方法调用成功
|
|
394
398
|
paymentLogger.addLog({
|
|
395
399
|
key: '支付方法调用成功',
|
|
396
|
-
value:
|
|
400
|
+
value: ''
|
|
397
401
|
});
|
|
398
402
|
paymentLogger.sendLogs('支付方法调用成功');
|
|
399
403
|
|
|
@@ -449,7 +453,7 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
449
453
|
orderId = newOrderId || ((_state$payGroup4 = state.payGroup) === null || _state$payGroup4 === void 0 ? void 0 : _state$payGroup4.order_id); // 记录开始创建交易组
|
|
450
454
|
paymentLogger.addLog({
|
|
451
455
|
key: '开始创建交易组',
|
|
452
|
-
value:
|
|
456
|
+
value: ''
|
|
453
457
|
});
|
|
454
458
|
setSubmitLoading(true);
|
|
455
459
|
_context5.prev = 3;
|
|
@@ -474,7 +478,7 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
474
478
|
// 记录创建交易组成功
|
|
475
479
|
paymentLogger.addLog({
|
|
476
480
|
key: '创建交易组成功',
|
|
477
|
-
value:
|
|
481
|
+
value: ''
|
|
478
482
|
});
|
|
479
483
|
return _context5.abrupt("return", _objectSpread(_objectSpread({}, state.payGroup), {}, {
|
|
480
484
|
order_id: orderId,
|
|
@@ -624,7 +628,7 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
624
628
|
}
|
|
625
629
|
paymentLogger.addLog({
|
|
626
630
|
key: '无痕模式检测',
|
|
627
|
-
value:
|
|
631
|
+
value: ''
|
|
628
632
|
});
|
|
629
633
|
setShowDetectIncognitoConfirm(true);
|
|
630
634
|
return _context7.abrupt("return");
|
|
@@ -635,7 +639,7 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
635
639
|
}
|
|
636
640
|
paymentLogger.addLog({
|
|
637
641
|
key: '需要创建交易组',
|
|
638
|
-
value:
|
|
642
|
+
value: ''
|
|
639
643
|
});
|
|
640
644
|
_context7.next = 14;
|
|
641
645
|
return paymentInit(newOrderId);
|
|
@@ -652,7 +656,7 @@ var ToCPay = function ToCPay(props, ref) {
|
|
|
652
656
|
// 记录提交成功(这里是调用成功,实际支付结果在payCallback中处理)
|
|
653
657
|
paymentLogger.addLog({
|
|
654
658
|
key: '支付提交调用成功',
|
|
655
|
-
value:
|
|
659
|
+
value: ''
|
|
656
660
|
});
|
|
657
661
|
_context7.next = 25;
|
|
658
662
|
break;
|
|
@@ -94,6 +94,9 @@ declare const _default: {
|
|
|
94
94
|
'tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment': (walletName: string) => string;
|
|
95
95
|
'tocPay.text.bestValueCombination': string;
|
|
96
96
|
'tocPay.text.viewDetail': string;
|
|
97
|
+
'tocPay.text.returnAndSelectOtherPaymentMethod': string;
|
|
98
|
+
'tocPay.text.paymentCompletedAndViewOrder': string;
|
|
99
|
+
'tocPay.text.paymentFailed': string;
|
|
97
100
|
};
|
|
98
101
|
'zh-CN': {
|
|
99
102
|
'tocPay.text.checkout': string;
|
|
@@ -189,6 +192,9 @@ declare const _default: {
|
|
|
189
192
|
'tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment': (walletName: string) => string;
|
|
190
193
|
'tocPay.text.bestValueCombination': string;
|
|
191
194
|
'tocPay.text.viewDetail': string;
|
|
195
|
+
'tocPay.text.returnAndSelectOtherPaymentMethod': string;
|
|
196
|
+
'tocPay.text.paymentCompletedAndViewOrder': string;
|
|
197
|
+
'tocPay.text.paymentFailed': string;
|
|
192
198
|
};
|
|
193
199
|
'zh-HK': {
|
|
194
200
|
'tocPay.text.checkout': string;
|
|
@@ -284,6 +290,9 @@ declare const _default: {
|
|
|
284
290
|
'tocPay.text.youCanSelectMultipleWalletPassesToCombineForPayment': (walletName: string) => string;
|
|
285
291
|
'tocPay.text.bestValueCombination': string;
|
|
286
292
|
'tocPay.text.viewDetail': string;
|
|
293
|
+
'tocPay.text.returnAndSelectOtherPaymentMethod': string;
|
|
294
|
+
'tocPay.text.paymentCompletedAndViewOrder': string;
|
|
295
|
+
'tocPay.text.paymentFailed': string;
|
|
287
296
|
};
|
|
288
297
|
};
|
|
289
298
|
export default _default;
|
|
@@ -113,7 +113,10 @@ export default {
|
|
|
113
113
|
return "You can select multiple ".concat(walletName, " to combine for payment");
|
|
114
114
|
},
|
|
115
115
|
'tocPay.text.bestValueCombination': 'Best value combination',
|
|
116
|
-
'tocPay.text.viewDetail': 'View detail'
|
|
116
|
+
'tocPay.text.viewDetail': 'View detail',
|
|
117
|
+
'tocPay.text.returnAndSelectOtherPaymentMethod': 'Go Back / Choose Another Payment',
|
|
118
|
+
'tocPay.text.paymentCompletedAndViewOrder': 'Payment Completed / View Order',
|
|
119
|
+
'tocPay.text.paymentFailed': 'Not paid yet, please check if the payment is successful'
|
|
117
120
|
},
|
|
118
121
|
'zh-CN': {
|
|
119
122
|
'tocPay.text.checkout': '结账',
|
|
@@ -228,7 +231,10 @@ export default {
|
|
|
228
231
|
return "\u60A8\u53EF\u4EE5\u9009\u62E9\u591A\u4E2A".concat(walletName, "\u8FDB\u884C\u7EC4\u5408\u4ED8\u6B3E");
|
|
229
232
|
},
|
|
230
233
|
'tocPay.text.bestValueCombination': '最佳组合',
|
|
231
|
-
'tocPay.text.viewDetail': '查看详情'
|
|
234
|
+
'tocPay.text.viewDetail': '查看详情',
|
|
235
|
+
'tocPay.text.returnAndSelectOtherPaymentMethod': '返回 / 选择其他支付方式',
|
|
236
|
+
'tocPay.text.paymentCompletedAndViewOrder': '支付完成 / 查看订单',
|
|
237
|
+
'tocPay.text.paymentFailed': "未支付完成,请检查是否支付成功"
|
|
232
238
|
},
|
|
233
239
|
'zh-HK': {
|
|
234
240
|
'tocPay.text.checkout': '結帳',
|
|
@@ -343,6 +349,9 @@ export default {
|
|
|
343
349
|
return "\u60A8\u53EF\u4EE5\u9078\u64C7\u591A\u500B".concat(walletName, "\u9032\u884C\u7D44\u5408\u4ED8\u6B3E");
|
|
344
350
|
},
|
|
345
351
|
'tocPay.text.bestValueCombination': '最佳組合',
|
|
346
|
-
'tocPay.text.viewDetail': '查看詳情'
|
|
352
|
+
'tocPay.text.viewDetail': '查看詳情',
|
|
353
|
+
'tocPay.text.returnAndSelectOtherPaymentMethod': '返回 / 選擇其他支付方式',
|
|
354
|
+
'tocPay.text.paymentCompletedAndViewOrder': '支付完成 / 查看訂單',
|
|
355
|
+
'tocPay.text.paymentFailed': "未支付完成,请检查是否支付成功"
|
|
347
356
|
}
|
|
348
357
|
};
|
|
@@ -177,4 +177,12 @@ export var getWalletNameAndPopupStatus = /*#__PURE__*/function () {
|
|
|
177
177
|
return function getWalletNameAndPopupStatus(_x4) {
|
|
178
178
|
return _ref4.apply(this, arguments);
|
|
179
179
|
};
|
|
180
|
-
}();
|
|
180
|
+
}();
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @title: 获取支付结果
|
|
184
|
+
* @description: 获取支付结果
|
|
185
|
+
*/
|
|
186
|
+
export var getPaymentResult = function getPaymentResult(values) {
|
|
187
|
+
return request.getRequest().get("/h5/pay/order/payment/result", values);
|
|
188
|
+
};
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
.booking-info-create-new,
|
|
37
37
|
.pisell-lowcode__booking-field-title,
|
|
38
38
|
.pisell-lowcode__shopping-cart-empty,
|
|
39
|
-
.pisell-lowcode__booking-service-clear-btn
|
|
39
|
+
.pisell-lowcode__booking-service-clear-btn,
|
|
40
|
+
.pisell-lowcode__booking-contact-info-title {
|
|
40
41
|
color: #ffffff;
|
|
41
42
|
}
|
|
42
43
|
}
|
|
@@ -41,7 +41,7 @@ declare type ScanData = {
|
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
43
|
export declare const formatScanCustomer: (data: ScanData) => {
|
|
44
|
-
searchType: "
|
|
44
|
+
searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
|
|
45
45
|
data: any;
|
|
46
46
|
scanCode: string;
|
|
47
47
|
} | null;
|
|
@@ -21,7 +21,7 @@ import { Provider, Context } from "./model";
|
|
|
21
21
|
import { WalletCard, Carousel } from '@pisell/materials';
|
|
22
22
|
import { LeftOutlined, RightOutlined } from '@ant-design/icons';
|
|
23
23
|
import useEngineContext from "./../../hooks/useEngineContext";
|
|
24
|
-
import { getWalletList,
|
|
24
|
+
import { getWalletList, batchGetWalletBalance, getWalletShopList } from "./serve";
|
|
25
25
|
import { locales, getUniqueId } from '@pisell/utils';
|
|
26
26
|
import { request } from "./../../utils";
|
|
27
27
|
import { defaultWalletGuideConfig } from "./status";
|
|
@@ -124,8 +124,43 @@ var DEFAULT_WALLET_CARD = {
|
|
|
124
124
|
en: 'Level'
|
|
125
125
|
},
|
|
126
126
|
metadata: {
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
showcaseWalletPassNew: [{
|
|
128
|
+
type: 'rechargeable',
|
|
129
|
+
display: 1,
|
|
130
|
+
custom_title: {
|
|
131
|
+
original: 'Balance',
|
|
132
|
+
'zh-CN': '充值卡',
|
|
133
|
+
'zh-HK': '充值卡',
|
|
134
|
+
en: 'Balance'
|
|
135
|
+
}
|
|
136
|
+
}, {
|
|
137
|
+
type: 'point',
|
|
138
|
+
display: 1,
|
|
139
|
+
custom_title: {
|
|
140
|
+
original: 'Points',
|
|
141
|
+
'zh-CN': '积分卡',
|
|
142
|
+
'zh-HK': '積分卡',
|
|
143
|
+
en: 'Points'
|
|
144
|
+
}
|
|
145
|
+
}, {
|
|
146
|
+
type: 'voucher',
|
|
147
|
+
display: 1,
|
|
148
|
+
custom_title: {
|
|
149
|
+
original: 'Voucher',
|
|
150
|
+
'zh-CN': '代金券',
|
|
151
|
+
'zh-HK': '代金券',
|
|
152
|
+
en: 'Voucher'
|
|
153
|
+
}
|
|
154
|
+
}, {
|
|
155
|
+
type: 'discount',
|
|
156
|
+
display: 1,
|
|
157
|
+
custom_title: {
|
|
158
|
+
original: 'Discount',
|
|
159
|
+
'zh-CN': '折扣卡',
|
|
160
|
+
'zh-HK': '折扣卡',
|
|
161
|
+
en: 'Discount'
|
|
162
|
+
}
|
|
163
|
+
}],
|
|
129
164
|
coverImage: '',
|
|
130
165
|
icon: ''
|
|
131
166
|
}
|
|
@@ -241,7 +276,7 @@ var WalletList = Provider(function (props) {
|
|
|
241
276
|
if (isMountedRef.current) {
|
|
242
277
|
setState({
|
|
243
278
|
list: [DEFAULT_WALLET_CARD],
|
|
244
|
-
balance:
|
|
279
|
+
balance: [],
|
|
245
280
|
hasAttempted: true,
|
|
246
281
|
isLoggedIn: false
|
|
247
282
|
});
|
|
@@ -390,7 +425,7 @@ var WalletList = Provider(function (props) {
|
|
|
390
425
|
};
|
|
391
426
|
var initData = /*#__PURE__*/function () {
|
|
392
427
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(requestId) {
|
|
393
|
-
var cachedList, cachedBalance,
|
|
428
|
+
var cachedList, cachedBalance, walletListData, walletBalanceData, _message, _data, isAuthError;
|
|
394
429
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
395
430
|
while (1) switch (_context3.prev = _context3.next) {
|
|
396
431
|
case 0:
|
|
@@ -413,7 +448,7 @@ var WalletList = Provider(function (props) {
|
|
|
413
448
|
// 设置状态为已尝试请求,提供默认数据而不是空列表
|
|
414
449
|
setState({
|
|
415
450
|
list: [DEFAULT_WALLET_CARD],
|
|
416
|
-
balance:
|
|
451
|
+
balance: [],
|
|
417
452
|
hasAttempted: true,
|
|
418
453
|
isLoggedIn: false
|
|
419
454
|
});
|
|
@@ -431,6 +466,13 @@ var WalletList = Provider(function (props) {
|
|
|
431
466
|
try {
|
|
432
467
|
cachedList = getFromLocalStorage(STORAGE_KEY);
|
|
433
468
|
cachedBalance = getFromLocalStorage(STORAGE_KEY_BALANCE);
|
|
469
|
+
// 避免使用旧版数据
|
|
470
|
+
if (!Array.isArray(cachedBalance) || !cachedBalance.some(function (item) {
|
|
471
|
+
var _item$hasOwnProperty;
|
|
472
|
+
return (_item$hasOwnProperty = item.hasOwnProperty) === null || _item$hasOwnProperty === void 0 ? void 0 : _item$hasOwnProperty.call(item, 'gift_card_balance');
|
|
473
|
+
})) {
|
|
474
|
+
cachedBalance = null;
|
|
475
|
+
}
|
|
434
476
|
} catch (e) {
|
|
435
477
|
console.error('Error fetching from localStorage:', e);
|
|
436
478
|
}
|
|
@@ -451,12 +493,15 @@ var WalletList = Provider(function (props) {
|
|
|
451
493
|
return _context3.abrupt("return");
|
|
452
494
|
case 16:
|
|
453
495
|
_context3.next = 18;
|
|
454
|
-
return
|
|
496
|
+
return getWalletList();
|
|
455
497
|
case 18:
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
walletListData
|
|
459
|
-
|
|
498
|
+
walletListData = _context3.sent;
|
|
499
|
+
_context3.next = 21;
|
|
500
|
+
return batchGetWalletBalance(walletListData.map(function (item) {
|
|
501
|
+
return item.wallet_id;
|
|
502
|
+
}));
|
|
503
|
+
case 21:
|
|
504
|
+
walletBalanceData = _context3.sent;
|
|
460
505
|
if (!(!isMountedRef.current || requestIdRef.current !== requestId)) {
|
|
461
506
|
_context3.next = 24;
|
|
462
507
|
break;
|
|
@@ -496,36 +541,38 @@ var WalletList = Provider(function (props) {
|
|
|
496
541
|
_context2.prev = 2;
|
|
497
542
|
// 准备重试请求
|
|
498
543
|
retryBalanceData = walletBalanceData;
|
|
499
|
-
retryListData = walletListData; //
|
|
500
|
-
if (
|
|
544
|
+
retryListData = walletListData; // 如果列表数据为空,重试请求列表
|
|
545
|
+
if (!(Array.isArray(walletListData) && walletListData.length === 0)) {
|
|
501
546
|
_context2.next = 10;
|
|
502
547
|
break;
|
|
503
548
|
}
|
|
504
549
|
_context2.next = 8;
|
|
505
|
-
return
|
|
550
|
+
return getWalletList();
|
|
506
551
|
case 8:
|
|
507
|
-
|
|
508
|
-
if (
|
|
552
|
+
retryListData = _context2.sent;
|
|
553
|
+
if (retryListData && retryListData.length > 0) {
|
|
509
554
|
try {
|
|
510
|
-
saveToLocalStorage(
|
|
555
|
+
saveToLocalStorage(STORAGE_KEY, retryListData);
|
|
511
556
|
} catch (e) {
|
|
512
|
-
console.error('Error saving retry
|
|
557
|
+
console.error('Error saving retry list to localStorage:', e);
|
|
513
558
|
}
|
|
514
559
|
}
|
|
515
560
|
case 10:
|
|
516
|
-
if (
|
|
561
|
+
if (walletBalanceData) {
|
|
517
562
|
_context2.next = 15;
|
|
518
563
|
break;
|
|
519
564
|
}
|
|
520
565
|
_context2.next = 13;
|
|
521
|
-
return
|
|
566
|
+
return batchGetWalletBalance(retryListData.map(function (item) {
|
|
567
|
+
return item.wallet_id;
|
|
568
|
+
}));
|
|
522
569
|
case 13:
|
|
523
|
-
|
|
524
|
-
if (
|
|
570
|
+
retryBalanceData = _context2.sent;
|
|
571
|
+
if (retryBalanceData) {
|
|
525
572
|
try {
|
|
526
|
-
saveToLocalStorage(
|
|
573
|
+
saveToLocalStorage(STORAGE_KEY_BALANCE, retryBalanceData);
|
|
527
574
|
} catch (e) {
|
|
528
|
-
console.error('Error saving retry
|
|
575
|
+
console.error('Error saving retry balance to localStorage:', e);
|
|
529
576
|
}
|
|
530
577
|
}
|
|
531
578
|
case 15:
|
|
@@ -606,57 +653,46 @@ var WalletList = Provider(function (props) {
|
|
|
606
653
|
metadata = _ref5.metadata,
|
|
607
654
|
name = _ref5.name;
|
|
608
655
|
var _ref6 = metadata || {},
|
|
609
|
-
_ref6$
|
|
610
|
-
|
|
611
|
-
_ref6$showcaseWalletP = _ref6.showcaseWalletPass,
|
|
612
|
-
showcaseWalletPass = _ref6$showcaseWalletP === void 0 ? [] : _ref6$showcaseWalletP,
|
|
656
|
+
_ref6$showcaseWalletP = _ref6.showcaseWalletPassNew,
|
|
657
|
+
showcaseWalletPassNew = _ref6$showcaseWalletP === void 0 ? [] : _ref6$showcaseWalletP,
|
|
613
658
|
_ref6$coverImage = _ref6.coverImage,
|
|
614
659
|
coverImage = _ref6$coverImage === void 0 ? '' : _ref6$coverImage,
|
|
615
660
|
_ref6$icon = _ref6.icon,
|
|
616
661
|
icon = _ref6$icon === void 0 ? '' : _ref6$icon;
|
|
617
662
|
var shopName = shop.name;
|
|
618
|
-
var balance = state.balance
|
|
663
|
+
var _state$balance = state.balance,
|
|
664
|
+
balance = _state$balance === void 0 ? [] : _state$balance;
|
|
665
|
+
var balanceItem = balance.find(function (bi) {
|
|
666
|
+
return bi.wallet_id == item.wallet_id;
|
|
667
|
+
}) || DEFAULT_BALANCE;
|
|
619
668
|
|
|
620
669
|
// 字段映射关系
|
|
621
|
-
var
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
670
|
+
var _balanceKeyMap = {
|
|
671
|
+
rechargeable: 'gift_card_balance',
|
|
672
|
+
point: 'point_card_balance',
|
|
673
|
+
voucher: 'voucher_count',
|
|
674
|
+
discount: 'discount_card_count'
|
|
626
675
|
};
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
// 找到对应的balance字段
|
|
632
|
-
var balanceKey = (_Object$entries$find = Object.entries(balanceKeyMap).find(function (_ref7) {
|
|
633
|
-
var _ref8 = _slicedToArray(_ref7, 2),
|
|
634
|
-
_ = _ref8[0],
|
|
635
|
-
value = _ref8[1];
|
|
636
|
-
return value === key;
|
|
637
|
-
})) === null || _Object$entries$find === void 0 ? void 0 : _Object$entries$find[0];
|
|
638
|
-
var value = balanceKey ? balance[balanceKey] || 0 : 0;
|
|
639
|
-
if (balanceKey === 'voucher_count') {
|
|
640
|
-
value += balance.good_pass_count;
|
|
641
|
-
}
|
|
642
|
-
return {
|
|
643
|
-
key: key,
|
|
644
|
-
label: key,
|
|
645
|
-
hidden: false,
|
|
676
|
+
var cardItems = showcaseWalletPassNew.map(function (showCaseItem) {
|
|
677
|
+
var balanceKey = _balanceKeyMap[showCaseItem.type];
|
|
678
|
+
var value = balanceKey ? balanceItem[balanceKey] || 0 : 0;
|
|
679
|
+
return _objectSpread(_objectSpread({}, showCaseItem), {}, {
|
|
646
680
|
value: value
|
|
647
|
-
};
|
|
681
|
+
});
|
|
648
682
|
});
|
|
683
|
+
|
|
649
684
|
// 构建WalletCard的props
|
|
650
685
|
// 优先级:接口返回值 > globalState > DEFAULT_CARD_CONFIG
|
|
651
686
|
var cardProps = _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_CARD_CONFIG), globalState), {}, {
|
|
652
687
|
// 最后应用API返回的数据,这些拥有最高优先级
|
|
688
|
+
id: wallet.id,
|
|
653
689
|
iconImg: icon,
|
|
654
690
|
symbol: symbol,
|
|
655
691
|
cardNo: code,
|
|
656
692
|
walletName: getLocalizedName(name, dvaStore === null || dvaStore === void 0 || (_dvaStore$core = dvaStore.core) === null || _dvaStore$core === void 0 ? void 0 : _dvaStore$core.translateLocale),
|
|
657
693
|
shopName: shopName,
|
|
658
|
-
codeType: barcodetype,
|
|
659
|
-
items: cardItems,
|
|
694
|
+
// codeType: barcodetype,
|
|
695
|
+
items: cardItems.slice(0, 4),
|
|
660
696
|
customBackgroundImage: coverImage,
|
|
661
697
|
isLogin: isUserLoggedIn // 添加登录状态
|
|
662
698
|
});
|
|
@@ -10,6 +10,10 @@ export declare const getWalletList: () => Promise<WalletPass[]>;
|
|
|
10
10
|
* @returns
|
|
11
11
|
*/
|
|
12
12
|
export declare const getWalletBalance: () => Promise<WalletBalance | null>;
|
|
13
|
+
/**
|
|
14
|
+
* 批量获取钱包余额信息
|
|
15
|
+
*/
|
|
16
|
+
export declare const batchGetWalletBalance: (walletIds: string[]) => Promise<Record<string, WalletBalance> | null>;
|
|
13
17
|
/**
|
|
14
18
|
* @title: 获取钱包店铺列表
|
|
15
19
|
* @description:
|
|
@@ -69,39 +69,72 @@ export var getWalletBalance = /*#__PURE__*/function () {
|
|
|
69
69
|
}();
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
73
|
-
* @description:
|
|
74
|
-
* @return {*}
|
|
75
|
-
* @Author: WangHan
|
|
76
|
-
* @Date: 2025-06-09 11:12
|
|
72
|
+
* 批量获取钱包余额信息
|
|
77
73
|
*/
|
|
78
|
-
export var
|
|
79
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(
|
|
74
|
+
export var batchGetWalletBalance = /*#__PURE__*/function () {
|
|
75
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(walletIds) {
|
|
80
76
|
var _yield$request$getReq3, data;
|
|
81
77
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
82
78
|
while (1) switch (_context3.prev = _context3.next) {
|
|
83
79
|
case 0:
|
|
84
80
|
_context3.prev = 0;
|
|
85
81
|
_context3.next = 3;
|
|
86
|
-
return request.getRequest().get('/h5/wallet/
|
|
87
|
-
|
|
88
|
-
useCache: true
|
|
82
|
+
return request.getRequest().get('/h5/wallet/wallet-pass/balance/batch', {
|
|
83
|
+
wallet_id: walletIds
|
|
89
84
|
});
|
|
90
85
|
case 3:
|
|
91
86
|
_yield$request$getReq3 = _context3.sent;
|
|
92
87
|
data = _yield$request$getReq3.data;
|
|
93
|
-
return _context3.abrupt("return", data ||
|
|
88
|
+
return _context3.abrupt("return", data || {});
|
|
94
89
|
case 8:
|
|
95
90
|
_context3.prev = 8;
|
|
96
91
|
_context3.t0 = _context3["catch"](0);
|
|
97
|
-
return _context3.abrupt("return",
|
|
92
|
+
return _context3.abrupt("return", {});
|
|
98
93
|
case 11:
|
|
99
94
|
case "end":
|
|
100
95
|
return _context3.stop();
|
|
101
96
|
}
|
|
102
97
|
}, _callee3, null, [[0, 8]]);
|
|
103
98
|
}));
|
|
104
|
-
return function
|
|
99
|
+
return function batchGetWalletBalance(_x) {
|
|
105
100
|
return _ref3.apply(this, arguments);
|
|
106
101
|
};
|
|
102
|
+
}();
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @title: 获取钱包店铺列表
|
|
106
|
+
* @description:
|
|
107
|
+
* @return {*}
|
|
108
|
+
* @Author: WangHan
|
|
109
|
+
* @Date: 2025-06-09 11:12
|
|
110
|
+
*/
|
|
111
|
+
export var getWalletShopList = /*#__PURE__*/function () {
|
|
112
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(params) {
|
|
113
|
+
var _yield$request$getReq4, data;
|
|
114
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
115
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
116
|
+
case 0:
|
|
117
|
+
_context4.prev = 0;
|
|
118
|
+
_context4.next = 3;
|
|
119
|
+
return request.getRequest().get('/h5/wallet/shop/list', params || {}, {
|
|
120
|
+
// abort: true,
|
|
121
|
+
useCache: true
|
|
122
|
+
});
|
|
123
|
+
case 3:
|
|
124
|
+
_yield$request$getReq4 = _context4.sent;
|
|
125
|
+
data = _yield$request$getReq4.data;
|
|
126
|
+
return _context4.abrupt("return", data || null);
|
|
127
|
+
case 8:
|
|
128
|
+
_context4.prev = 8;
|
|
129
|
+
_context4.t0 = _context4["catch"](0);
|
|
130
|
+
return _context4.abrupt("return", null);
|
|
131
|
+
case 11:
|
|
132
|
+
case "end":
|
|
133
|
+
return _context4.stop();
|
|
134
|
+
}
|
|
135
|
+
}, _callee4, null, [[0, 8]]);
|
|
136
|
+
}));
|
|
137
|
+
return function getWalletShopList(_x2) {
|
|
138
|
+
return _ref4.apply(this, arguments);
|
|
139
|
+
};
|
|
107
140
|
}();
|