@pisell/private-materials 6.4.72 → 6.4.74
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 +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +23 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -8
- package/es/components/Sales/Event/Detail.js +4 -3
- package/es/components/appointmentBooking/components/Services/index.js +22 -8
- package/es/components/appointmentBooking/hooks.js +5 -0
- 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/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/{pro/multiDayTimeSelect/MultiDayTimeSelect.js → components/authentication/admin/ChannelAuthSetting/PageSetting/index.js} +149 -319
- 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/booking/components/customSelect/index.js +22 -3
- package/es/components/booking/components/footer/amount.js +8 -25
- package/es/components/booking/components/footer/index.js +62 -53
- package/es/components/booking/components/footer/utils.d.ts +0 -7
- package/es/components/booking/components/footer/utils.js +37 -50
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/hooks/useQuotation.js +21 -69
- package/es/components/booking/info/service/Lists.js +1 -1
- package/es/components/booking/info/service/serve.d.ts +0 -14
- package/es/components/booking/info/service/serve.js +1 -22
- package/es/components/booking/info/service2/Group/utils.js +0 -2
- package/es/components/booking/info/service2/utils.d.ts +33 -1
- package/es/components/booking/info/service2/utils.js +29 -75
- package/es/components/booking/info/utils.js +0 -5
- package/es/components/booking/info2/service/addService/index.js +89 -146
- package/es/components/booking/info2/service/addService/utils.d.ts +0 -8
- package/es/components/booking/info2/service/addService/utils.js +9 -78
- package/es/components/booking/info2/service/editService/index.js +55 -235
- package/es/components/booking/info2/utilsByBooking.js +5 -14
- package/es/components/booking/utils.d.ts +1 -9
- package/es/components/booking/utils.js +0 -23
- package/es/components/checkout/PaymentModal.js +178 -108
- package/es/components/checkout/components/AdditionalModule/index.d.ts +3 -1
- package/es/components/checkout/components/AdditionalModule/index.js +44 -12
- package/es/components/checkout/components/AmountSummary/index.js +9 -76
- package/es/components/checkout/components/AmountSummary/index.less +1 -1
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
- package/es/components/checkout/components/CashPaymentModule/index.js +5 -2
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +6 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
- package/es/components/checkout/components/PaymentOptionsModule/index.js +2 -1
- package/es/components/checkout/components/PaymentOptionsModule/index.less +4 -0
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
- package/es/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +31 -8
- package/es/components/checkout/components/PaymentResultToast/index.js +6 -6
- package/es/components/checkout/components/PaymentResultToast/index.less +94 -33
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/index.less +1 -1
- package/es/components/checkout/locales.d.ts +3 -0
- package/es/components/checkout/locales.js +3 -0
- package/es/components/checkout/utils/PaymentResultToastUtils.js +11 -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/store/index.d.ts +3 -3
- 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/{ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js → pay/toC/PaymentMethods/hooks/index.js} +98 -91
- 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/addServiceVariant/addService.js +138 -283
- package/es/components/ticketBooking/components/ticketBooking/index.js +11 -14
- package/es/components/ticketBooking/components/timeBar/index.js +112 -7
- package/es/components/ticketBooking/components/timeBar/index.less +59 -0
- package/es/components/ticketBooking/locales.d.ts +6 -0
- package/es/components/ticketBooking/locales.js +9 -3
- package/es/components/ticketBooking/utils/index.d.ts +2 -7
- package/es/components/ticketBooking/utils/index.js +3 -21
- 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 +5 -1
- package/es/index.js +5 -2
- 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 +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/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/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +11 -7
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.js +4 -2
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +10 -1
- package/es/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.js +5 -2
- package/es/pro/priceKeyboard/components/shortcuts/index.less +4 -0
- package/lib/components/Sales/Event/Detail.js +3 -2
- package/lib/components/appointmentBooking/components/Services/index.js +8 -3
- package/lib/components/appointmentBooking/hooks.js +3 -0
- 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 +26 -3
- package/lib/components/booking/components/footer/amount.js +6 -23
- package/lib/components/booking/components/footer/index.js +15 -8
- package/lib/components/booking/components/footer/utils.d.ts +0 -7
- package/lib/components/booking/components/footer/utils.js +18 -25
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/hooks/useQuotation.js +13 -45
- package/lib/components/booking/info/service/Lists.js +1 -1
- package/lib/components/booking/info/service/serve.d.ts +0 -14
- package/lib/components/booking/info/service/serve.js +0 -5
- package/lib/components/booking/info/service2/Group/utils.js +0 -2
- package/lib/components/booking/info/service2/utils.d.ts +33 -1
- package/lib/components/booking/info/service2/utils.js +10 -24
- package/lib/components/booking/info/utils.js +0 -4
- package/lib/components/booking/info2/service/addService/index.js +3 -22
- package/lib/components/booking/info2/service/addService/utils.d.ts +0 -8
- package/lib/components/booking/info2/service/addService/utils.js +9 -47
- package/lib/components/booking/info2/service/editService/index.js +31 -191
- package/lib/components/booking/info2/utilsByBooking.js +8 -19
- package/lib/components/booking/utils.d.ts +1 -9
- package/lib/components/booking/utils.js +0 -15
- package/lib/components/checkout/PaymentModal.js +73 -11
- package/lib/components/checkout/components/AdditionalModule/index.d.ts +3 -1
- package/lib/components/checkout/components/AdditionalModule/index.js +44 -11
- package/lib/components/checkout/components/AmountSummary/index.js +5 -46
- package/lib/components/checkout/components/AmountSummary/index.less +1 -1
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
- package/lib/components/checkout/components/CashPaymentModule/index.js +5 -2
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +2 -0
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +5 -1
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +1 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +6 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +4 -0
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.d.ts +4 -0
- package/lib/components/checkout/components/PaymentResultToast/PaymentResultToastProvider.js +23 -5
- package/lib/components/checkout/components/PaymentResultToast/index.js +4 -4
- package/lib/components/checkout/components/PaymentResultToast/index.less +94 -33
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/index.less +1 -1
- package/lib/components/checkout/locales.d.ts +3 -0
- package/lib/components/checkout/locales.js +3 -0
- package/lib/components/checkout/utils/PaymentResultToastUtils.js +11 -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/store/index.d.ts +3 -3
- 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/addServiceVariant/addService.js +119 -185
- package/lib/components/ticketBooking/components/ticketBooking/index.js +16 -0
- package/lib/components/ticketBooking/components/timeBar/index.js +105 -4
- package/lib/components/ticketBooking/components/timeBar/index.less +59 -0
- package/lib/components/ticketBooking/locales.d.ts +6 -0
- package/lib/components/ticketBooking/locales.js +9 -3
- package/lib/components/ticketBooking/utils/index.d.ts +2 -7
- package/lib/components/ticketBooking/utils/index.js +1 -11
- 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 +5 -1
- package/lib/index.js +32 -3
- 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 -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/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/{pro/multiDayTimeSelect → plus/walletEditor}/types.js +1 -1
- 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/{multiDayTimeSelect → Login2.0}/index.js +16 -6
- 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/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +9 -5
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +3 -2
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +8 -1
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +14 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +1 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.js +3 -2
- package/lib/pro/priceKeyboard/components/shortcuts/index.less +4 -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/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 +5 -5
- package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +0 -18
- package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +0 -9
- package/es/pro/multiDayTimeSelect/MultiDayTimeSelect.less +0 -8
- package/es/pro/multiDayTimeSelect/index.d.ts +0 -3
- package/es/pro/multiDayTimeSelect/index.js +0 -1
- package/es/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +0 -18
- package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js +0 -118
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.d.ts +0 -9
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.js +0 -304
- package/lib/pro/multiDayTimeSelect/MultiDayTimeSelect.less +0 -8
- package/lib/pro/multiDayTimeSelect/index.d.ts +0 -3
- package/lib/pro/multiDayTimeSelect/types.d.ts +0 -28
- package/lowcode/wallet/meta.ts +0 -79
- /package/es/{pro/multiDayTimeSelect → components/authentication/admin/ChannelAuthSetting/AuthenticationMethods}/types.js +0 -0
- /package/es/components/{ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less → authentication/index.d.ts} +0 -0
- /package/{lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.less → es/components/authentication/index.js} +0 -0
|
@@ -4,7 +4,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import React, { useMemo } from 'react';
|
|
7
|
+
import React, { useMemo, useState, useEffect } from 'react';
|
|
8
8
|
import { LeftOutlined, RightOutlined } from '@ant-design/icons';
|
|
9
9
|
import { DatePicker, SelectTime } from '@pisell/materials';
|
|
10
10
|
import { useMemoizedFn } from 'ahooks';
|
|
@@ -13,12 +13,65 @@ import dayjs from 'dayjs';
|
|
|
13
13
|
import classNames from 'classnames';
|
|
14
14
|
import { locales } from '@pisell/utils';
|
|
15
15
|
import "./index.less";
|
|
16
|
+
import { Iconfont } from '@pisell/materials';
|
|
16
17
|
var TimeBar = function TimeBar(props) {
|
|
17
|
-
var _state$
|
|
18
|
+
var _state$modalState7;
|
|
18
19
|
var state = props.globalState,
|
|
19
20
|
setGlobalState = props.setGlobalState,
|
|
20
21
|
locale = props.locale,
|
|
21
22
|
onCreateClick = props.onCreateClick;
|
|
23
|
+
var _useState = useState(true),
|
|
24
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
25
|
+
collapsed = _useState2[0],
|
|
26
|
+
setCollapsed = _useState2[1];
|
|
27
|
+
var _useState3 = useState(1),
|
|
28
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
29
|
+
scaleCompensation = _useState4[0],
|
|
30
|
+
setScaleCompensation = _useState4[1];
|
|
31
|
+
|
|
32
|
+
// 获取 body 的 scale 值并计算补偿
|
|
33
|
+
useEffect(function () {
|
|
34
|
+
var getBodyScale = function getBodyScale() {
|
|
35
|
+
var body = document.body;
|
|
36
|
+
var computedStyle = window.getComputedStyle(body);
|
|
37
|
+
var transform = computedStyle.transform;
|
|
38
|
+
if (transform && transform !== 'none') {
|
|
39
|
+
// 解析 transform matrix 获取 scale 值
|
|
40
|
+
// matrix(scaleX, skewY, skewX, scaleY, translateX, translateY)
|
|
41
|
+
var matrix = transform.match(/matrix\(([^)]+)\)/);
|
|
42
|
+
if (matrix) {
|
|
43
|
+
var values = matrix[1].split(',').map(function (v) {
|
|
44
|
+
return parseFloat(v.trim());
|
|
45
|
+
});
|
|
46
|
+
// scaleX 通常是 matrix 的第一个值
|
|
47
|
+
var scale = values[0] || 1;
|
|
48
|
+
return scale;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return 1;
|
|
52
|
+
};
|
|
53
|
+
var updateScale = function updateScale() {
|
|
54
|
+
var scale = getBodyScale();
|
|
55
|
+
// 目标高度是 40px,需要补偿 scale 的影响
|
|
56
|
+
// 实际设置高度 = 目标高度 / scale
|
|
57
|
+
setScaleCompensation(scale);
|
|
58
|
+
};
|
|
59
|
+
updateScale();
|
|
60
|
+
|
|
61
|
+
// 监听 body 的 transform 变化(使用 MutationObserver)
|
|
62
|
+
var observer = new MutationObserver(updateScale);
|
|
63
|
+
observer.observe(document.body, {
|
|
64
|
+
attributes: true,
|
|
65
|
+
attributeFilter: ['style', 'class']
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
// 也监听窗口大小变化(某些情况下 scale 可能随窗口变化)
|
|
69
|
+
window.addEventListener('resize', updateScale);
|
|
70
|
+
return function () {
|
|
71
|
+
observer.disconnect();
|
|
72
|
+
window.removeEventListener('resize', updateScale);
|
|
73
|
+
};
|
|
74
|
+
}, []);
|
|
22
75
|
var _onClickNext = useMemoizedFn(function () {
|
|
23
76
|
var _state$modalState, _props$onDateChange, _props$setIntervalTim;
|
|
24
77
|
var currentTime = (_state$modalState = state.modalState) === null || _state$modalState === void 0 || (_state$modalState = _state$modalState.date) === null || _state$modalState === void 0 ? void 0 : _state$modalState.value;
|
|
@@ -57,8 +110,52 @@ var TimeBar = function TimeBar(props) {
|
|
|
57
110
|
});
|
|
58
111
|
(_props$setIntervalTim5 = props.setIntervalTime) === null || _props$setIntervalTim5 === void 0 || _props$setIntervalTim5.call(props, timeString === dayjs().format('HH:mm'));
|
|
59
112
|
});
|
|
113
|
+
var _onToggleCollapse = useMemoizedFn(function () {
|
|
114
|
+
setCollapsed(!collapsed);
|
|
115
|
+
});
|
|
60
116
|
return useMemo(function () {
|
|
61
|
-
var _state$
|
|
117
|
+
var _state$modalState5, _state$modalState6;
|
|
118
|
+
// 收起状态
|
|
119
|
+
if (collapsed) {
|
|
120
|
+
var _state$modalState4;
|
|
121
|
+
var currentDate = state === null || state === void 0 || (_state$modalState4 = state.modalState) === null || _state$modalState4 === void 0 || (_state$modalState4 = _state$modalState4.date) === null || _state$modalState4 === void 0 ? void 0 : _state$modalState4.value;
|
|
122
|
+
var isToday = currentDate && currentDate.isSame(dayjs(), 'day');
|
|
123
|
+
var displayText = isToday ? locales.getText('pisell2.ticket-booking.today') : (currentDate === null || currentDate === void 0 ? void 0 : currentDate.format('YYYY-MM-DD')) || '';
|
|
124
|
+
|
|
125
|
+
// 计算补偿后的高度:目标高度 / scale
|
|
126
|
+
var targetHeight = 40;
|
|
127
|
+
var compensatedHeight = targetHeight / scaleCompensation;
|
|
128
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
129
|
+
className: classNames('pisell-ticket-booking-time-bar', 'collapsed'),
|
|
130
|
+
style: {
|
|
131
|
+
height: "".concat(compensatedHeight, "px"),
|
|
132
|
+
minHeight: "".concat(compensatedHeight, "px"),
|
|
133
|
+
maxHeight: "".concat(compensatedHeight, "px")
|
|
134
|
+
}
|
|
135
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
136
|
+
className: "pisell-ticket-booking-time-bar-collapsed-content",
|
|
137
|
+
style: {
|
|
138
|
+
height: "".concat(compensatedHeight, "px")
|
|
139
|
+
}
|
|
140
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
141
|
+
className: "pisell-ticket-booking-time-bar-collapsed-today",
|
|
142
|
+
style: {
|
|
143
|
+
lineHeight: "".concat(compensatedHeight, "px")
|
|
144
|
+
}
|
|
145
|
+
}, displayText), /*#__PURE__*/React.createElement(Button, {
|
|
146
|
+
type: "link",
|
|
147
|
+
size: "small",
|
|
148
|
+
className: "pisell-ticket-booking-time-bar-collapsed-expand",
|
|
149
|
+
onClick: _onToggleCollapse,
|
|
150
|
+
style: {
|
|
151
|
+
lineHeight: "".concat(compensatedHeight, "px")
|
|
152
|
+
}
|
|
153
|
+
}, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.ticket-booking.expand')), /*#__PURE__*/React.createElement(Iconfont, {
|
|
154
|
+
type: "pisell2-chevron-right-double"
|
|
155
|
+
}))));
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// 展开状态
|
|
62
159
|
return /*#__PURE__*/React.createElement("div", {
|
|
63
160
|
className: "pisell-ticket-booking-time-bar",
|
|
64
161
|
style: {
|
|
@@ -85,7 +182,7 @@ var TimeBar = function TimeBar(props) {
|
|
|
85
182
|
}
|
|
86
183
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
87
184
|
inputReadOnly: true,
|
|
88
|
-
value: state === null || state === void 0 || (_state$
|
|
185
|
+
value: state === null || state === void 0 || (_state$modalState5 = state.modalState) === null || _state$modalState5 === void 0 || (_state$modalState5 = _state$modalState5.date) === null || _state$modalState5 === void 0 ? void 0 : _state$modalState5.value,
|
|
89
186
|
format: locale === 'en' ? 'dddd, DD MMM YYYY' : 'YYYY年MM月DD日',
|
|
90
187
|
onChange: props === null || props === void 0 ? void 0 : props.onDateChange,
|
|
91
188
|
size: "large",
|
|
@@ -101,7 +198,7 @@ var TimeBar = function TimeBar(props) {
|
|
|
101
198
|
'booking-page-date-picker-select': state.isTimeChange
|
|
102
199
|
})
|
|
103
200
|
}, /*#__PURE__*/React.createElement(SelectTime, {
|
|
104
|
-
value: state === null || state === void 0 || (_state$
|
|
201
|
+
value: state === null || state === void 0 || (_state$modalState6 = state.modalState) === null || _state$modalState6 === void 0 || (_state$modalState6 = _state$modalState6.date) === null || _state$modalState6 === void 0 ? void 0 : _state$modalState6.value.format('HH:mm'),
|
|
105
202
|
onChange: _onDateTimeChange,
|
|
106
203
|
popoverProps: {
|
|
107
204
|
style: {
|
|
@@ -124,7 +221,15 @@ var TimeBar = function TimeBar(props) {
|
|
|
124
221
|
},
|
|
125
222
|
size: "large",
|
|
126
223
|
type: "primary"
|
|
127
|
-
}, locales.getText('pisell2.ticket-booking.create-new'))
|
|
128
|
-
|
|
224
|
+
}, locales.getText('pisell2.ticket-booking.create-new')), /*#__PURE__*/React.createElement(Button, {
|
|
225
|
+
type: "link",
|
|
226
|
+
style: {
|
|
227
|
+
marginLeft: 'auto'
|
|
228
|
+
},
|
|
229
|
+
onClick: _onToggleCollapse
|
|
230
|
+
}, /*#__PURE__*/React.createElement("span", null, locales.getText('pisell2.ticket-booking.collapse')), /*#__PURE__*/React.createElement(Iconfont, {
|
|
231
|
+
type: "pisell2-chevron-left-double"
|
|
232
|
+
})));
|
|
233
|
+
}, [collapsed, (_state$modalState7 = state.modalState) === null || _state$modalState7 === void 0 || (_state$modalState7 = _state$modalState7.date) === null || _state$modalState7 === void 0 ? void 0 : _state$modalState7.value, state.intervalSetTime, state.isTimeChange, state.isDateChange, locale, _onToggleCollapse, scaleCompensation]);
|
|
129
234
|
};
|
|
130
235
|
export default TimeBar;
|
|
@@ -20,4 +20,63 @@
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
|
|
24
|
+
// 收起状态
|
|
25
|
+
&.collapsed {
|
|
26
|
+
position: fixed;
|
|
27
|
+
bottom: 0;
|
|
28
|
+
left: 86px;
|
|
29
|
+
padding: 0;
|
|
30
|
+
background-color: transparent;
|
|
31
|
+
display: block;
|
|
32
|
+
// 高度通过内联样式动态设置以补偿 body 的 scale
|
|
33
|
+
|
|
34
|
+
.pisell-ticket-booking-time-bar-collapsed-content {
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: space-between;
|
|
38
|
+
width: 100%;
|
|
39
|
+
// 高度通过内联样式动态设置以补偿 body 的 scale
|
|
40
|
+
padding: 0 16px;
|
|
41
|
+
background-color: #fff;
|
|
42
|
+
border-radius: 0 8px 8px 0;
|
|
43
|
+
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
|
|
47
|
+
.pisell-ticket-booking-time-bar-collapsed-today {
|
|
48
|
+
font-weight: 600;
|
|
49
|
+
font-size: 18px;
|
|
50
|
+
color: #000;
|
|
51
|
+
flex-shrink: 0;
|
|
52
|
+
margin-right: 16px;
|
|
53
|
+
// line-height 通过内联样式动态设置
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.pisell-ticket-booking-time-bar-collapsed-expand {
|
|
57
|
+
color: #7F56DA;
|
|
58
|
+
padding: 0;
|
|
59
|
+
margin: 0;
|
|
60
|
+
height: auto;
|
|
61
|
+
font-size: 18px;
|
|
62
|
+
font-weight: 500;
|
|
63
|
+
display: inline-flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
flex-shrink: 0;
|
|
66
|
+
// line-height 通过内联样式动态设置
|
|
67
|
+
|
|
68
|
+
&:hover {
|
|
69
|
+
color: #6941c6;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
span {
|
|
73
|
+
margin-right: 2px;
|
|
74
|
+
}
|
|
75
|
+
.anticon {
|
|
76
|
+
margin-left: 0px;
|
|
77
|
+
margin-right: 0px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
23
82
|
}
|
|
@@ -61,6 +61,8 @@ declare const _default: {
|
|
|
61
61
|
'pisell2.ticket-booking.terminal-upgrade-description': string;
|
|
62
62
|
'pisell2.ticket-booking.terminal-upgrade-ok': string;
|
|
63
63
|
'pisell2.ticket-booking.terminal-upgrade-cancel': string;
|
|
64
|
+
'pisell2.ticket-booking.collapse': string;
|
|
65
|
+
'pisell2.ticket-booking.expand': string;
|
|
64
66
|
};
|
|
65
67
|
'zh-CN': {
|
|
66
68
|
'pisell2.ticket-booking.info': string;
|
|
@@ -124,6 +126,8 @@ declare const _default: {
|
|
|
124
126
|
'pisell2.ticket-booking.terminal-upgrade-description': string;
|
|
125
127
|
'pisell2.ticket-booking.terminal-upgrade-ok': string;
|
|
126
128
|
'pisell2.ticket-booking.terminal-upgrade-cancel': string;
|
|
129
|
+
'pisell2.ticket-booking.collapse': string;
|
|
130
|
+
'pisell2.ticket-booking.expand': string;
|
|
127
131
|
};
|
|
128
132
|
'zh-HK': {
|
|
129
133
|
'pisell2.ticket-booking.info': string;
|
|
@@ -187,6 +191,8 @@ declare const _default: {
|
|
|
187
191
|
'pisell2.ticket-booking.terminal-upgrade-description': string;
|
|
188
192
|
'pisell2.ticket-booking.terminal-upgrade-ok': string;
|
|
189
193
|
'pisell2.ticket-booking.terminal-upgrade-cancel': string;
|
|
194
|
+
'pisell2.ticket-booking.collapse': string;
|
|
195
|
+
'pisell2.ticket-booking.expand': string;
|
|
190
196
|
};
|
|
191
197
|
};
|
|
192
198
|
export default _default;
|
|
@@ -73,7 +73,9 @@ export default {
|
|
|
73
73
|
'pisell2.ticket-booking.terminal-upgrade-title': 'Terminal Version Reminder',
|
|
74
74
|
'pisell2.ticket-booking.terminal-upgrade-description': 'Your Terminal version is outdated. Please upgrade Terminal to use all features.',
|
|
75
75
|
'pisell2.ticket-booking.terminal-upgrade-ok': 'I understand',
|
|
76
|
-
'pisell2.ticket-booking.terminal-upgrade-cancel': 'Cancel'
|
|
76
|
+
'pisell2.ticket-booking.terminal-upgrade-cancel': 'Cancel',
|
|
77
|
+
'pisell2.ticket-booking.collapse': 'Collapse',
|
|
78
|
+
'pisell2.ticket-booking.expand': 'Expand'
|
|
77
79
|
},
|
|
78
80
|
'zh-CN': {
|
|
79
81
|
'pisell2.ticket-booking.info': '信息',
|
|
@@ -149,7 +151,9 @@ export default {
|
|
|
149
151
|
'pisell2.ticket-booking.terminal-upgrade-title': 'Terminal版本提醒',
|
|
150
152
|
'pisell2.ticket-booking.terminal-upgrade-description': '检测到您的Terminal版本较低,请升级Terminal以使用完整功能',
|
|
151
153
|
'pisell2.ticket-booking.terminal-upgrade-ok': '我知道了',
|
|
152
|
-
'pisell2.ticket-booking.terminal-upgrade-cancel': '取消'
|
|
154
|
+
'pisell2.ticket-booking.terminal-upgrade-cancel': '取消',
|
|
155
|
+
'pisell2.ticket-booking.collapse': '收起',
|
|
156
|
+
'pisell2.ticket-booking.expand': '展开'
|
|
153
157
|
},
|
|
154
158
|
'zh-HK': {
|
|
155
159
|
'pisell2.ticket-booking.info': '資訊',
|
|
@@ -225,6 +229,8 @@ export default {
|
|
|
225
229
|
'pisell2.ticket-booking.terminal-upgrade-title': 'Terminal版本提醒',
|
|
226
230
|
'pisell2.ticket-booking.terminal-upgrade-description': '檢測到您的Terminal版本較低,請升級Terminal以使用完整功能',
|
|
227
231
|
'pisell2.ticket-booking.terminal-upgrade-ok': '我知道了',
|
|
228
|
-
'pisell2.ticket-booking.terminal-upgrade-cancel': '取消'
|
|
232
|
+
'pisell2.ticket-booking.terminal-upgrade-cancel': '取消',
|
|
233
|
+
'pisell2.ticket-booking.collapse': '收起',
|
|
234
|
+
'pisell2.ticket-booking.expand': '展開'
|
|
229
235
|
}
|
|
230
236
|
};
|
|
@@ -15,14 +15,9 @@ export declare const restoreProductOtherData: (data: any) => {
|
|
|
15
15
|
quantity: number;
|
|
16
16
|
} | undefined;
|
|
17
17
|
export declare const isSameProduct: (a: any, b: any) => boolean;
|
|
18
|
-
export declare const addService: (list: any[], addItem: any, state: any
|
|
19
|
-
list: any[];
|
|
20
|
-
count: number;
|
|
21
|
-
quantity?: undefined;
|
|
22
|
-
} | {
|
|
18
|
+
export declare const addService: (list: any[], addItem: any, state: any) => {
|
|
23
19
|
list: any[];
|
|
24
20
|
quantity: any;
|
|
25
|
-
count?: undefined;
|
|
26
21
|
};
|
|
27
22
|
export declare const addServiceScroll: (rowKey: string, cacheItem: any) => void;
|
|
28
23
|
export declare const getCartProductOverlay: (state: any) => any;
|
|
@@ -46,7 +41,7 @@ declare type ScanData = {
|
|
|
46
41
|
};
|
|
47
42
|
};
|
|
48
43
|
export declare const formatScanCustomer: (data: ScanData) => {
|
|
49
|
-
searchType: "
|
|
44
|
+
searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
|
|
50
45
|
data: any;
|
|
51
46
|
scanCode: string;
|
|
52
47
|
} | null;
|
|
@@ -2,14 +2,10 @@ var _excluded = ["detail"];
|
|
|
2
2
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
3
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
4
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
8
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
5
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
11
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12
6
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
9
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
14
10
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
15
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -20,7 +16,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
20
16
|
import dayjs from 'dayjs';
|
|
21
17
|
import { isNormalProductByDurationSchedule } from "../../booking/info/service2/utils";
|
|
22
18
|
import { isArr, getUniqueId } from '@pisell/utils';
|
|
23
|
-
import { isMultiDayProduct } from "../../booking/info2/service/addService/utils";
|
|
24
19
|
|
|
25
20
|
/** dayjs对象格式化为字符串时间 */
|
|
26
21
|
export var formatDateToStr = function formatDateToStr(date) {
|
|
@@ -138,18 +133,9 @@ export var isSameProduct = function isSameProduct(a, b) {
|
|
|
138
133
|
}
|
|
139
134
|
return ((_a$_extend2 = a._extend) === null || _a$_extend2 === void 0 || (_a$_extend2 = _a$_extend2.other) === null || _a$_extend2 === void 0 ? void 0 : _a$_extend2.rowKey) === ((_b$_extend2 = b._extend) === null || _b$_extend2 === void 0 || (_b$_extend2 = _b$_extend2.other) === null || _b$_extend2 === void 0 ? void 0 : _b$_extend2.rowKey) && a._serviceKey === b._serviceKey;
|
|
140
135
|
};
|
|
141
|
-
export var addService = function addService(list, addItem, state
|
|
136
|
+
export var addService = function addService(list, addItem, state) {
|
|
142
137
|
var value = list;
|
|
143
138
|
var count;
|
|
144
|
-
|
|
145
|
-
// 跨日预约 不需要叠加
|
|
146
|
-
if (isMultiDay && isArr(addItem)) {
|
|
147
|
-
return {
|
|
148
|
-
list: [].concat(_toConsumableArray(addItem), _toConsumableArray(value)),
|
|
149
|
-
count: 1
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
|
|
153
139
|
// 预约商品 并且配置商品卡片不叠加 直接添加
|
|
154
140
|
if (!isNormalProductByDurationSchedule(addItem) && !getIsOverlayProduct(addItem, state)) {
|
|
155
141
|
value.unshift(addItem);
|
|
@@ -246,10 +232,6 @@ export var getIsOverlayProduct = function getIsOverlayProduct(item, state) {
|
|
|
246
232
|
// 获取购物车商品是否显示数量
|
|
247
233
|
export var getIsShowNumber = function getIsShowNumber(item, state) {
|
|
248
234
|
var isBookingTicket2 = state.isBookingTicket2;
|
|
249
|
-
// 跨日商品不允许选多个
|
|
250
|
-
if (isMultiDayProduct(item)) {
|
|
251
|
-
return false;
|
|
252
|
-
}
|
|
253
235
|
return isNormalProductByDurationSchedule(item) || isBookingTicket2 && getIsOverlayProduct(item, state);
|
|
254
236
|
};
|
|
255
237
|
|
|
@@ -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:
|