@pisell/private-materials 6.4.72 → 6.4.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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 +34 -2
- 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 +3 -11
- package/es/components/booking/utils.js +0 -23
- 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 +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/{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/utils/index.d.ts +1 -6
- 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/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/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 +34 -2
- 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 +3 -11
- package/lib/components/booking/utils.js +0 -15
- 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 +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/addServiceVariant/addService.js +119 -185
- package/lib/components/ticketBooking/components/ticketBooking/index.js +16 -0
- package/lib/components/ticketBooking/utils/index.d.ts +1 -6
- 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/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
|
@@ -22,8 +22,8 @@ import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
|
22
22
|
import { useMemoizedFn } from 'ahooks';
|
|
23
23
|
import useEngineContext from "../../../../hooks/useEngineContext";
|
|
24
24
|
import { isSessionProduct, request, getProductTotalPrice, getIsEject, getIsOnlySession } from "../../../booking/utils";
|
|
25
|
-
import {
|
|
26
|
-
import { holderId, isNormalProductByDurationSchedule } from "../../../booking/info/service2/utils";
|
|
25
|
+
import { getProductExtend } from "../../../booking/info2/service/addService/utils";
|
|
26
|
+
import { holderId, isDaysBooking, isNormalProductByDurationSchedule } from "../../../booking/info/service2/utils";
|
|
27
27
|
import { isBooking4Shop } from "../../../booking/info/utils";
|
|
28
28
|
import { useService } from "../../../booking/info/service/serviceManager";
|
|
29
29
|
import ProductDisplayAdapter, { resolveProductDisplayConfig } from "../ProductDisplayAdapter";
|
|
@@ -35,8 +35,6 @@ import { useProducts } from "../../hooks/pisellos";
|
|
|
35
35
|
import { createCacheItem, genValues, isBundle, isOption, setHandleSetService } from "./utils";
|
|
36
36
|
import { useToast } from '@pisell/materials';
|
|
37
37
|
import { useIsActive } from "../../context/IsActiveContext";
|
|
38
|
-
import { concatBookings, createBookingItemsByGroup } from "../../../booking/info/service2/Group/utils";
|
|
39
|
-
import MultiDayTimeSelectModal from "./MultiDayTimeSelectModal";
|
|
40
38
|
var productListLayout = {
|
|
41
39
|
grid: true,
|
|
42
40
|
config: '12:12'
|
|
@@ -79,18 +77,6 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
79
77
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
80
78
|
firstLoading = _useState4[0],
|
|
81
79
|
setFirstLoading = _useState4[1];
|
|
82
|
-
var _useState5 = useState(false),
|
|
83
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
84
|
-
multiDayModalOpen = _useState6[0],
|
|
85
|
-
setMultiDayModalOpen = _useState6[1];
|
|
86
|
-
var _useState7 = useState(false),
|
|
87
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
88
|
-
multiDayModalLoading = _useState8[0],
|
|
89
|
-
setMultiDayModalLoading = _useState8[1];
|
|
90
|
-
var _useState9 = useState(null),
|
|
91
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
92
|
-
pendingMultiDayData = _useState10[0],
|
|
93
|
-
setPendingMultiDayData = _useState10[1];
|
|
94
80
|
var stateRef = useRef(state);
|
|
95
81
|
stateRef.current = state;
|
|
96
82
|
var _useProducts = useProducts(notAvailableRef),
|
|
@@ -212,227 +198,9 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
212
198
|
executeCacheValues(productId, cacheValues, item, callback);
|
|
213
199
|
}, 0);
|
|
214
200
|
});
|
|
215
|
-
|
|
216
|
-
// 处理添加服务的逻辑(提取为独立函数,方便跨日商品确认后调用)
|
|
217
|
-
var processAddService = useMemoizedFn( /*#__PURE__*/function () {
|
|
218
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(item, _detail, e, notShowToast, startDate, endDate) {
|
|
219
|
-
var other, cacheItem, _total, _isEdit, _stateRef$current$ser, isMultiDay, getMultiDayCacheItem, _addService2, _list, quantity, _context$appHelper$ut4, _context$appHelper$ut5, val, sendData, _window$openBookingEd, _window;
|
|
220
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
221
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
222
|
-
case 0:
|
|
223
|
-
other = JSON.parse(JSON.stringify(e));
|
|
224
|
-
other.session = e.session;
|
|
225
|
-
cacheItem = _objectSpread(_objectSpread({}, _detail), {}, {
|
|
226
|
-
product_id: item.id,
|
|
227
|
-
_id: getUniqueId(),
|
|
228
|
-
_key: e.key,
|
|
229
|
-
_extend: {
|
|
230
|
-
start_date: startDate,
|
|
231
|
-
quantity: (e === null || e === void 0 ? void 0 : e.quantity) || 1,
|
|
232
|
-
price: _detail.price,
|
|
233
|
-
product_name: item.title,
|
|
234
|
-
other: other,
|
|
235
|
-
end_date: endDate
|
|
236
|
-
},
|
|
237
|
-
new: 1
|
|
238
|
-
});
|
|
239
|
-
_total = getProductTotalPrice(cacheItem); // 用于折扣 可修改
|
|
240
|
-
cacheItem._extend.total = _total;
|
|
241
|
-
// 用于储存原价
|
|
242
|
-
cacheItem._extend.origin_total = _total;
|
|
243
|
-
_isEdit = !!stateRef.current.service.cacheItem;
|
|
244
|
-
if (_isEdit) {
|
|
245
|
-
cacheItem._id = (_stateRef$current$ser = stateRef.current.service.cacheItem) === null || _stateRef$current$ser === void 0 ? void 0 : _stateRef$current$ser._id;
|
|
246
|
-
cacheItem.new = 0;
|
|
247
|
-
}
|
|
248
|
-
// 渲染到当前位置模式时,默认无资源 时间默认取顶部设置的时间
|
|
249
|
-
if (renderMode === 'current') {
|
|
250
|
-
// cacheItem._extend.resource = 0;
|
|
251
|
-
cacheItem.currentDefaultTime = stateRef.current.date.value.format('HH:mm');
|
|
252
|
-
}
|
|
253
|
-
cacheItem = getProductExtend({
|
|
254
|
-
cacheItem: cacheItem,
|
|
255
|
-
state: stateRef.current,
|
|
256
|
-
isDisabledTime: true
|
|
257
|
-
});
|
|
258
|
-
isMultiDay = isMultiDayProduct(cacheItem);
|
|
259
|
-
getMultiDayCacheItem = /*#__PURE__*/function () {
|
|
260
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(isConcatBookings) {
|
|
261
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
262
|
-
while (1) switch (_context.prev = _context.next) {
|
|
263
|
-
case 0:
|
|
264
|
-
_context.next = 2;
|
|
265
|
-
return getMultiDay({
|
|
266
|
-
start_date: cacheItem._extend.start_date,
|
|
267
|
-
end_date: cacheItem._extend.end_date,
|
|
268
|
-
state: stateRef.current,
|
|
269
|
-
cacheItem: cacheItem
|
|
270
|
-
});
|
|
271
|
-
case 2:
|
|
272
|
-
cacheItem = _context.sent;
|
|
273
|
-
cacheItem = createBookingItemsByGroup(cacheItem);
|
|
274
|
-
if (isConcatBookings) {
|
|
275
|
-
cacheItem = concatBookings(cacheItem);
|
|
276
|
-
}
|
|
277
|
-
case 5:
|
|
278
|
-
case "end":
|
|
279
|
-
return _context.stop();
|
|
280
|
-
}
|
|
281
|
-
}, _callee);
|
|
282
|
-
}));
|
|
283
|
-
return function getMultiDayCacheItem(_x7) {
|
|
284
|
-
return _ref2.apply(this, arguments);
|
|
285
|
-
};
|
|
286
|
-
}();
|
|
287
|
-
if (stateRef.current.renderType === 'eventBooking') {
|
|
288
|
-
cacheItem.autoClose = false;
|
|
289
|
-
}
|
|
290
|
-
if (!cacheItem.autoClose) {
|
|
291
|
-
_context2.next = 26;
|
|
292
|
-
break;
|
|
293
|
-
}
|
|
294
|
-
cacheItem.autoClose = false;
|
|
295
|
-
cacheItem._serviceKey = genServiceKey(cacheItem);
|
|
296
|
-
if (!isMultiDay) {
|
|
297
|
-
_context2.next = 19;
|
|
298
|
-
break;
|
|
299
|
-
}
|
|
300
|
-
_context2.next = 19;
|
|
301
|
-
return getMultiDayCacheItem();
|
|
302
|
-
case 19:
|
|
303
|
-
_addService2 = addService(_toConsumableArray(stateRef.current.service.value), cacheItem, stateRef.current, isMultiDay), _list = _addService2.list, quantity = _addService2.quantity;
|
|
304
|
-
if (!notShowToast) {
|
|
305
|
-
handleAddToast(cacheItem.title, quantity || 1);
|
|
306
|
-
}
|
|
307
|
-
window.dispatchEvent(new CustomEvent('onAddNewService', {
|
|
308
|
-
detail: {
|
|
309
|
-
cacheItem: cacheItem
|
|
310
|
-
}
|
|
311
|
-
}));
|
|
312
|
-
try {
|
|
313
|
-
if (((_context$appHelper$ut4 = context.appHelper.utils.store) === null || _context$appHelper$ut4 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut4.getState) === null || _context$appHelper$ut5 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut5.call(_context$appHelper$ut4)) === null || _context$appHelper$ut5 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut5.global) === null || _context$appHelper$ut5 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut5.globalConfig) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.id) === 2155) {
|
|
314
|
-
val = _list === null || _list === void 0 ? void 0 : _list.map(function (s) {
|
|
315
|
-
return {
|
|
316
|
-
product_id: s === null || s === void 0 ? void 0 : s.product_id,
|
|
317
|
-
detailId: s === null || s === void 0 ? void 0 : s.id,
|
|
318
|
-
detailProductId: s === null || s === void 0 ? void 0 : s.product_id,
|
|
319
|
-
product_name: s === null || s === void 0 ? void 0 : s.title,
|
|
320
|
-
price: s === null || s === void 0 ? void 0 : s.price,
|
|
321
|
-
_id: s === null || s === void 0 ? void 0 : s._id,
|
|
322
|
-
_key: s === null || s === void 0 ? void 0 : s._key,
|
|
323
|
-
_serviceKey: s === null || s === void 0 ? void 0 : s._serviceKey
|
|
324
|
-
};
|
|
325
|
-
});
|
|
326
|
-
sendData = {
|
|
327
|
-
product_id: item === null || item === void 0 ? void 0 : item.id,
|
|
328
|
-
detailId: _detail === null || _detail === void 0 ? void 0 : _detail.id,
|
|
329
|
-
detailProductId: _detail === null || _detail === void 0 ? void 0 : _detail.product_id,
|
|
330
|
-
product_name: item === null || item === void 0 ? void 0 : item.title,
|
|
331
|
-
price: _detail === null || _detail === void 0 ? void 0 : _detail.price,
|
|
332
|
-
serviceVal: val
|
|
333
|
-
};
|
|
334
|
-
sendWarningLog({
|
|
335
|
-
title: 'addService',
|
|
336
|
-
content: [{
|
|
337
|
-
key: '添加数据',
|
|
338
|
-
value: JSON.stringify(sendData)
|
|
339
|
-
}, {
|
|
340
|
-
key: '日期',
|
|
341
|
-
value: dayjs().format('YYYY-MM-DD HH:mm:ss')
|
|
342
|
-
}]
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
} catch (error) {}
|
|
346
|
-
dispatch({
|
|
347
|
-
type: 'setService',
|
|
348
|
-
payload: {
|
|
349
|
-
addModal: false,
|
|
350
|
-
value: _list,
|
|
351
|
-
edit: true,
|
|
352
|
-
changeService: false
|
|
353
|
-
}
|
|
354
|
-
});
|
|
355
|
-
_context2.next = 32;
|
|
356
|
-
break;
|
|
357
|
-
case 26:
|
|
358
|
-
(_window$openBookingEd = (_window = window).openBookingEditModal) === null || _window$openBookingEd === void 0 || _window$openBookingEd.call(_window);
|
|
359
|
-
if (!isMultiDay) {
|
|
360
|
-
_context2.next = 30;
|
|
361
|
-
break;
|
|
362
|
-
}
|
|
363
|
-
_context2.next = 30;
|
|
364
|
-
return getMultiDayCacheItem(true);
|
|
365
|
-
case 30:
|
|
366
|
-
dispatch({
|
|
367
|
-
type: 'setService',
|
|
368
|
-
payload: {
|
|
369
|
-
editModal: true,
|
|
370
|
-
cacheItem: cacheItem,
|
|
371
|
-
addModal: !cacheItem.autoClose,
|
|
372
|
-
changeService: false
|
|
373
|
-
}
|
|
374
|
-
});
|
|
375
|
-
onEdit === null || onEdit === void 0 || onEdit(cacheItem);
|
|
376
|
-
case 32:
|
|
377
|
-
case "end":
|
|
378
|
-
return _context2.stop();
|
|
379
|
-
}
|
|
380
|
-
}, _callee2);
|
|
381
|
-
}));
|
|
382
|
-
return function (_x, _x2, _x3, _x4, _x5, _x6) {
|
|
383
|
-
return _ref.apply(this, arguments);
|
|
384
|
-
};
|
|
385
|
-
}());
|
|
386
|
-
|
|
387
|
-
// 处理跨日商品时间选择确认
|
|
388
|
-
var handleMultiDayConfirm = useMemoizedFn( /*#__PURE__*/function () {
|
|
389
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(startDate, endDate, duration) {
|
|
390
|
-
var item, detail, e, notShowToast;
|
|
391
|
-
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
392
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
393
|
-
case 0:
|
|
394
|
-
if (pendingMultiDayData) {
|
|
395
|
-
_context3.next = 2;
|
|
396
|
-
break;
|
|
397
|
-
}
|
|
398
|
-
return _context3.abrupt("return");
|
|
399
|
-
case 2:
|
|
400
|
-
setMultiDayModalLoading(true);
|
|
401
|
-
_context3.prev = 3;
|
|
402
|
-
item = pendingMultiDayData.item, detail = pendingMultiDayData.detail, e = pendingMultiDayData.e, notShowToast = pendingMultiDayData.notShowToast; // 使用选择的时间继续处理添加服务逻辑
|
|
403
|
-
_context3.next = 7;
|
|
404
|
-
return processAddService(item, detail, e, notShowToast, startDate, endDate);
|
|
405
|
-
case 7:
|
|
406
|
-
setPendingMultiDayData(null);
|
|
407
|
-
setMultiDayModalOpen(false);
|
|
408
|
-
_context3.next = 14;
|
|
409
|
-
break;
|
|
410
|
-
case 11:
|
|
411
|
-
_context3.prev = 11;
|
|
412
|
-
_context3.t0 = _context3["catch"](3);
|
|
413
|
-
console.error('添加跨日商品失败:', _context3.t0);
|
|
414
|
-
case 14:
|
|
415
|
-
_context3.prev = 14;
|
|
416
|
-
setMultiDayModalLoading(false);
|
|
417
|
-
return _context3.finish(14);
|
|
418
|
-
case 17:
|
|
419
|
-
case "end":
|
|
420
|
-
return _context3.stop();
|
|
421
|
-
}
|
|
422
|
-
}, _callee3, null, [[3, 11, 14, 17]]);
|
|
423
|
-
}));
|
|
424
|
-
return function (_x8, _x9, _x10) {
|
|
425
|
-
return _ref3.apply(this, arguments);
|
|
426
|
-
};
|
|
427
|
-
}());
|
|
428
|
-
|
|
429
|
-
// 处理跨日商品时间选择取消
|
|
430
|
-
var handleMultiDayCancel = useMemoizedFn(function () {
|
|
431
|
-
setMultiDayModalOpen(false);
|
|
432
|
-
setPendingMultiDayData(null);
|
|
433
|
-
});
|
|
434
201
|
var handleSelectProduct = useMemoizedFn(function (item) {
|
|
435
202
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'select';
|
|
203
|
+
console.log('handleSelectProduct');
|
|
436
204
|
if (!isNormalProductByDurationSchedule(item)) {
|
|
437
205
|
var _state$service;
|
|
438
206
|
if (!Array.isArray((_state$service = state.service) === null || _state$service === void 0 ? void 0 : _state$service.resourcesOrigin) || !state.service.resourcesOrigin.length) {
|
|
@@ -472,20 +240,19 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
472
240
|
}
|
|
473
241
|
}
|
|
474
242
|
var callback = /*#__PURE__*/function () {
|
|
475
|
-
var
|
|
476
|
-
var data, _detail,
|
|
477
|
-
return _regeneratorRuntime().wrap(function
|
|
478
|
-
while (1) switch (
|
|
243
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(e, extension_type, detail, notShowToast) {
|
|
244
|
+
var data, _detail, other, cacheItem, _total, _isEdit, _state$service$cacheI, _addService2, _list, quantity, _context$appHelper$ut4, _context$appHelper$ut5, val, sendData, _window$openBookingEd, _window;
|
|
245
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
246
|
+
while (1) switch (_context.prev = _context.next) {
|
|
479
247
|
case 0:
|
|
480
|
-
debugger;
|
|
481
248
|
setCurrentProduct(null);
|
|
482
249
|
// 防止选择商品弹窗多次触发callback
|
|
483
250
|
if (!lock) {
|
|
484
|
-
|
|
251
|
+
_context.next = 3;
|
|
485
252
|
break;
|
|
486
253
|
}
|
|
487
|
-
return
|
|
488
|
-
case
|
|
254
|
+
return _context.abrupt("return");
|
|
255
|
+
case 3:
|
|
489
256
|
lock = true;
|
|
490
257
|
|
|
491
258
|
// 2秒后解除
|
|
@@ -493,57 +260,144 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
493
260
|
lock = false;
|
|
494
261
|
}, 2000);
|
|
495
262
|
if (isBooking4) {
|
|
496
|
-
|
|
263
|
+
_context.next = 11;
|
|
497
264
|
break;
|
|
498
265
|
}
|
|
499
|
-
|
|
266
|
+
_context.next = 8;
|
|
500
267
|
return createBookingData({
|
|
501
268
|
product: _objectSpread(_objectSpread({}, detail || item), {}, {
|
|
502
269
|
_params: e
|
|
503
270
|
})
|
|
504
271
|
});
|
|
505
|
-
case
|
|
506
|
-
data =
|
|
272
|
+
case 8:
|
|
273
|
+
data = _context.sent;
|
|
507
274
|
// 创建预约
|
|
508
275
|
createBooking({
|
|
509
276
|
booking: data
|
|
510
277
|
});
|
|
511
|
-
return
|
|
512
|
-
case
|
|
278
|
+
return _context.abrupt("return");
|
|
279
|
+
case 11:
|
|
513
280
|
// info2 addService 逻辑
|
|
514
|
-
_detail = detail || item;
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
281
|
+
_detail = detail || item;
|
|
282
|
+
other = JSON.parse(JSON.stringify(e));
|
|
283
|
+
other.session = e.session;
|
|
284
|
+
cacheItem = _objectSpread(_objectSpread({}, _detail), {}, {
|
|
285
|
+
product_id: item.id,
|
|
286
|
+
_id: getUniqueId(),
|
|
287
|
+
_key: e.key,
|
|
288
|
+
_extend: {
|
|
289
|
+
start_date: state.date.value,
|
|
290
|
+
quantity: (e === null || e === void 0 ? void 0 : e.quantity) || 1,
|
|
291
|
+
price: _detail.price,
|
|
292
|
+
product_name: item.title,
|
|
293
|
+
other: other
|
|
294
|
+
},
|
|
295
|
+
new: 1
|
|
296
|
+
});
|
|
297
|
+
_total = getProductTotalPrice(cacheItem); // 用于折扣 可修改
|
|
298
|
+
cacheItem._extend.total = _total;
|
|
299
|
+
// 用于储存原价
|
|
300
|
+
cacheItem._extend.origin_total = _total;
|
|
301
|
+
_isEdit = !!state.service.cacheItem;
|
|
302
|
+
if (_isEdit) {
|
|
303
|
+
cacheItem._id = (_state$service$cacheI = state.service.cacheItem) === null || _state$service$cacheI === void 0 ? void 0 : _state$service$cacheI._id;
|
|
304
|
+
cacheItem.new = 0;
|
|
305
|
+
}
|
|
306
|
+
// 渲染到当前位置模式时,默认无资源 时间默认取顶部设置的时间
|
|
307
|
+
if (renderMode === 'current') {
|
|
308
|
+
// cacheItem._extend.resource = 0;
|
|
309
|
+
cacheItem.currentDefaultTime = state.date.value.format('HH:mm');
|
|
519
310
|
}
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
e: e,
|
|
525
|
-
notShowToast: notShowToast
|
|
311
|
+
cacheItem = getProductExtend({
|
|
312
|
+
cacheItem: cacheItem,
|
|
313
|
+
state: state,
|
|
314
|
+
isDisabledTime: true
|
|
526
315
|
});
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
316
|
+
if (state.renderType === 'eventBooking') {
|
|
317
|
+
cacheItem.autoClose = false;
|
|
318
|
+
}
|
|
319
|
+
if (cacheItem.autoClose) {
|
|
320
|
+
cacheItem.autoClose = false;
|
|
321
|
+
cacheItem._serviceKey = genServiceKey(cacheItem);
|
|
322
|
+
_addService2 = addService(_toConsumableArray(stateRef.current.service.value), cacheItem, state), _list = _addService2.list, quantity = _addService2.quantity;
|
|
323
|
+
if (!notShowToast) {
|
|
324
|
+
handleAddToast(cacheItem.title, quantity || 1);
|
|
325
|
+
}
|
|
326
|
+
window.dispatchEvent(new CustomEvent('onAddNewService', {
|
|
327
|
+
detail: {
|
|
328
|
+
cacheItem: cacheItem
|
|
329
|
+
}
|
|
330
|
+
}));
|
|
331
|
+
try {
|
|
332
|
+
if (((_context$appHelper$ut4 = context.appHelper.utils.store) === null || _context$appHelper$ut4 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut4.getState) === null || _context$appHelper$ut5 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut5.call(_context$appHelper$ut4)) === null || _context$appHelper$ut5 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut5.global) === null || _context$appHelper$ut5 === void 0 || (_context$appHelper$ut5 = _context$appHelper$ut5.globalConfig) === null || _context$appHelper$ut5 === void 0 ? void 0 : _context$appHelper$ut5.id) === 2155) {
|
|
333
|
+
val = _list === null || _list === void 0 ? void 0 : _list.map(function (s) {
|
|
334
|
+
return {
|
|
335
|
+
product_id: s === null || s === void 0 ? void 0 : s.product_id,
|
|
336
|
+
detailId: s === null || s === void 0 ? void 0 : s.id,
|
|
337
|
+
detailProductId: s === null || s === void 0 ? void 0 : s.product_id,
|
|
338
|
+
product_name: s === null || s === void 0 ? void 0 : s.title,
|
|
339
|
+
price: s === null || s === void 0 ? void 0 : s.price,
|
|
340
|
+
_id: s === null || s === void 0 ? void 0 : s._id,
|
|
341
|
+
_key: s === null || s === void 0 ? void 0 : s._key,
|
|
342
|
+
_serviceKey: s === null || s === void 0 ? void 0 : s._serviceKey
|
|
343
|
+
};
|
|
344
|
+
});
|
|
345
|
+
sendData = {
|
|
346
|
+
product_id: item === null || item === void 0 ? void 0 : item.id,
|
|
347
|
+
detailId: _detail === null || _detail === void 0 ? void 0 : _detail.id,
|
|
348
|
+
detailProductId: _detail === null || _detail === void 0 ? void 0 : _detail.product_id,
|
|
349
|
+
product_name: item === null || item === void 0 ? void 0 : item.title,
|
|
350
|
+
price: _detail === null || _detail === void 0 ? void 0 : _detail.price,
|
|
351
|
+
serviceVal: val
|
|
352
|
+
};
|
|
353
|
+
sendWarningLog({
|
|
354
|
+
title: 'addService',
|
|
355
|
+
content: [{
|
|
356
|
+
key: '添加数据',
|
|
357
|
+
value: JSON.stringify(sendData)
|
|
358
|
+
}, {
|
|
359
|
+
key: '日期',
|
|
360
|
+
value: dayjs().format('YYYY-MM-DD HH:mm:ss')
|
|
361
|
+
}]
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
} catch (error) {}
|
|
365
|
+
dispatch({
|
|
366
|
+
type: 'setService',
|
|
367
|
+
payload: {
|
|
368
|
+
addModal: false,
|
|
369
|
+
value: _list,
|
|
370
|
+
edit: true,
|
|
371
|
+
changeService: false
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
} else {
|
|
375
|
+
(_window$openBookingEd = (_window = window).openBookingEditModal) === null || _window$openBookingEd === void 0 || _window$openBookingEd.call(_window);
|
|
376
|
+
dispatch({
|
|
377
|
+
type: 'setService',
|
|
378
|
+
payload: {
|
|
379
|
+
editModal: true,
|
|
380
|
+
cacheItem: cacheItem,
|
|
381
|
+
addModal: !cacheItem.autoClose,
|
|
382
|
+
changeService: false
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
onEdit === null || onEdit === void 0 || onEdit(cacheItem);
|
|
386
|
+
}
|
|
387
|
+
case 24:
|
|
534
388
|
case "end":
|
|
535
|
-
return
|
|
389
|
+
return _context.stop();
|
|
536
390
|
}
|
|
537
|
-
},
|
|
391
|
+
}, _callee);
|
|
538
392
|
}));
|
|
539
|
-
return function callback(
|
|
540
|
-
return
|
|
393
|
+
return function callback(_x, _x2, _x3, _x4) {
|
|
394
|
+
return _ref.apply(this, arguments);
|
|
541
395
|
};
|
|
542
396
|
}();
|
|
543
397
|
|
|
544
398
|
// 如果不需要打开弹窗, 直接添加数据
|
|
545
399
|
if (cacheValues) {
|
|
546
|
-
var _stateRef$current$
|
|
400
|
+
var _stateRef$current$ser, _detail$_extend, _Toast$success2;
|
|
547
401
|
var productId = item.id.toString();
|
|
548
402
|
|
|
549
403
|
// 如果已经有pending的同商品,增加点击次数
|
|
@@ -555,7 +409,7 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
555
409
|
clickCountRef.current[productId] = 1;
|
|
556
410
|
}
|
|
557
411
|
var cacheItem = createSimpleCacheItem(item, cacheValues, state);
|
|
558
|
-
var detail = (_stateRef$current$
|
|
412
|
+
var detail = (_stateRef$current$ser = stateRef.current.service.value) === null || _stateRef$current$ser === void 0 ? void 0 : _stateRef$current$ser.find(function (val) {
|
|
559
413
|
return isSameProduct(val, cacheItem);
|
|
560
414
|
});
|
|
561
415
|
var originalQuantity = (detail === null || detail === void 0 || (_detail$_extend = detail._extend) === null || _detail$_extend === void 0 ? void 0 : _detail$_extend.quantity) || 0;
|
|
@@ -594,6 +448,16 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
594
448
|
});
|
|
595
449
|
var renderList = useMemo(function () {
|
|
596
450
|
var _list = products || [];
|
|
451
|
+
|
|
452
|
+
// 跨日预约
|
|
453
|
+
if (isDaysBooking(state)) {
|
|
454
|
+
// 公共购物车下过滤掉预约商品
|
|
455
|
+
if (!holderId(state)) {
|
|
456
|
+
_list = _list.filter(function (item) {
|
|
457
|
+
return isNormalProductByDurationSchedule(item);
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
}
|
|
597
461
|
return _list;
|
|
598
462
|
}, [products, state === null || state === void 0 ? void 0 : state.activeCartId]);
|
|
599
463
|
var currentDate = useMemo(function () {
|
|
@@ -632,7 +496,6 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
632
496
|
}, [productDisplayConfig]);
|
|
633
497
|
return useMemo(function () {
|
|
634
498
|
if (renderMode === 'current') {
|
|
635
|
-
var _pendingMultiDayData$;
|
|
636
499
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ProductDisplayAdapter, {
|
|
637
500
|
config: finalDisplayConfig,
|
|
638
501
|
dataSource: renderList,
|
|
@@ -641,17 +504,9 @@ var AddSerivce = function AddSerivce(props) {
|
|
|
641
504
|
onSelectProduct: handleSelectProduct
|
|
642
505
|
}), /*#__PURE__*/React.createElement(NotAvailable, {
|
|
643
506
|
ref: notAvailableRef
|
|
644
|
-
}), /*#__PURE__*/React.createElement(MultiDayTimeSelectModal, {
|
|
645
|
-
open: multiDayModalOpen,
|
|
646
|
-
productName: pendingMultiDayData === null || pendingMultiDayData === void 0 || (_pendingMultiDayData$ = pendingMultiDayData.item) === null || _pendingMultiDayData$ === void 0 ? void 0 : _pendingMultiDayData$.title,
|
|
647
|
-
locale: state === null || state === void 0 ? void 0 : state.locale,
|
|
648
|
-
defaultStartDate: state.date.value,
|
|
649
|
-
loading: multiDayModalLoading,
|
|
650
|
-
onConfirm: handleMultiDayConfirm,
|
|
651
|
-
onCancel: handleMultiDayCancel
|
|
652
507
|
}));
|
|
653
508
|
}
|
|
654
509
|
return null;
|
|
655
|
-
}, [firstLoading, state.service.addModal, locales, renderList, state.amountSymbol, state.renderType, state === null || state === void 0 ? void 0 : state.activeCartId, holderId(state), loading, currentProduct, isBooking4, finalDisplayConfig
|
|
510
|
+
}, [firstLoading, state.service.addModal, locales, renderList, state.amountSymbol, state.renderType, state === null || state === void 0 ? void 0 : state.activeCartId, holderId(state), loading, currentProduct, isBooking4, finalDisplayConfig]);
|
|
656
511
|
};
|
|
657
512
|
export default AddSerivce;
|
|
@@ -679,20 +679,17 @@ var TicketBooking = function TicketBooking(props) {
|
|
|
679
679
|
})
|
|
680
680
|
});
|
|
681
681
|
setTimeout(function () {
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
// },
|
|
694
|
-
// });
|
|
695
|
-
// }
|
|
682
|
+
var _state$modalState$ser;
|
|
683
|
+
if ((_state$modalState$ser = state.modalState.service) !== null && _state$modalState$ser !== void 0 && (_state$modalState$ser = _state$modalState$ser.value) !== null && _state$modalState$ser !== void 0 && _state$modalState$ser.length) {
|
|
684
|
+
var _state$bookingFunctio, _state$bookingFunctio2, _state$modalState$ser2;
|
|
685
|
+
var _list = (_state$bookingFunctio = state.bookingFunctions) === null || _state$bookingFunctio === void 0 || (_state$bookingFunctio2 = _state$bookingFunctio.updateServiceDate) === null || _state$bookingFunctio2 === void 0 ? void 0 : _state$bookingFunctio2.call(_state$bookingFunctio, (_state$modalState$ser2 = state.modalState.service) === null || _state$modalState$ser2 === void 0 ? void 0 : _state$modalState$ser2.value, date, false);
|
|
686
|
+
_setModalState({
|
|
687
|
+
service: _objectSpread(_objectSpread({}, state.modalState.service), {}, {
|
|
688
|
+
value: _list,
|
|
689
|
+
edit: true
|
|
690
|
+
})
|
|
691
|
+
});
|
|
692
|
+
}
|
|
696
693
|
}, 100);
|
|
697
694
|
};
|
|
698
695
|
var _setShopOpeningHours = function _setShopOpeningHours() {
|
|
@@ -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;
|
|
@@ -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
|
|