@pisell/private-materials 6.6.1 → 6.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/preview.js +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/Cart/Item/index.js +0 -1
- 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/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 -321
- 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/actionButtons/index.js +20 -34
- 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 +32 -62
- package/es/components/booking/components/footer/utils.d.ts +0 -7
- package/es/components/booking/components/footer/utils.js +87 -101
- package/es/components/booking/components/voucher/index.js +9 -25
- package/es/components/booking/dashboard/serve.js +6 -1
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/forms/serve.js +12 -2
- package/es/components/booking/hooks/useQuotation.js +21 -69
- package/es/components/booking/info/client/serve.js +11 -2
- package/es/components/booking/info/hooks/useHolderConfig.d.ts +0 -1
- package/es/components/booking/info/hooks/useHolderConfig.js +2 -9
- package/es/components/booking/info/pet/serve.js +6 -1
- package/es/components/booking/info/service/Lists.d.ts +1 -1
- package/es/components/booking/info/service/Lists.js +4 -10
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/addTimeModal/serve.js +11 -1
- package/es/components/booking/info/service/serve.d.ts +0 -14
- package/es/components/booking/info/service/serve.js +18 -25
- 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 +56 -92
- package/es/components/booking/info/utils.js +0 -5
- package/es/components/booking/info2/cartClientCard/index.js +9 -49
- package/es/components/booking/info2/index.js +1 -1
- package/es/components/booking/info2/serve.js +6 -1
- package/es/components/booking/info2/service/addService/index.js +89 -146
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -9
- package/es/components/booking/info2/service/addService/utils.js +14 -83
- package/es/components/booking/info2/service/editService/index.js +57 -313
- package/es/components/booking/info2/utilsByBooking.js +14 -19
- package/es/components/booking/locales.d.ts +0 -30
- package/es/components/booking/locales.js +3 -39
- package/es/components/booking/utils.d.ts +7 -16
- package/es/components/booking/utils.js +37 -26
- package/es/components/checkout/PaymentModal.js +30 -61
- package/es/components/checkout/components/CashPaymentModule/index.js +7 -1
- package/es/components/checkout/components/ScrollableList/index.js +1 -0
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/locales.d.ts +0 -3
- package/es/components/checkout/locales.js +0 -3
- 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/eftposPay/tyro/index.js +0 -12
- package/es/components/index.d.ts +3 -2
- package/es/components/index.js +3 -2
- package/es/components/list/List.js +0 -3
- package/es/components/pay/toB/components/MX51/index.js +44 -14
- package/es/components/pay/toB/types/index.d.ts +12 -0
- package/es/components/pay/toB/types/index.js +4 -0
- 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/pisellSelectCustomerModal/RightPanel/serve.js +5 -1
- package/es/components/shoppingCart/components/Cart/Product.js +3 -6
- package/es/components/shoppingCart/type.d.ts +0 -1
- package/es/components/ticketBooking/components/ProductDisplayAdapter/index.less +12 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +2 -0
- package/es/components/ticketBooking/components/addServiceVariant/addService.js +794 -419
- package/es/components/ticketBooking/components/addServiceVariant/index.d.ts +2 -0
- package/es/components/ticketBooking/components/addServiceVariant/index.js +4 -4
- package/es/components/ticketBooking/components/addServiceVariant/utils.js +2 -1
- package/es/components/ticketBooking/components/menuBar/index.js +12 -109
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +4 -2
- package/es/components/ticketBooking/components/ticketBooking/index.js +61 -32
- package/es/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/es/components/ticketBooking/components/timeBar/index.js +4 -1
- package/es/components/ticketBooking/hooks/pisellos/useProducts.d.ts +4 -0
- package/es/components/ticketBooking/hooks/pisellos/useProducts.js +170 -122
- package/es/components/ticketBooking/index.d.ts +1 -0
- package/es/components/ticketBooking/index.js +2 -0
- package/es/components/ticketBooking/serve.js +119 -17
- package/es/components/ticketBooking/utils/index.d.ts +2 -8
- package/es/components/ticketBooking/utils/index.js +28 -44
- 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/hooks/printer.d.ts +4 -0
- package/es/hooks/printer.js +35 -0
- package/es/hooks/useEngineContext.d.ts +1 -0
- package/es/hooks/useEngineContext.js +7 -0
- package/es/index.d.ts +5 -3
- package/es/index.js +4 -3
- package/es/plus/clientCard/locales.js +3 -3
- package/es/plus/clinetSearch/index.js +30 -28
- package/es/plus/clinetSearch/locales.d.ts +0 -3
- package/es/plus/clinetSearch/locales.js +4 -7
- package/es/plus/clinetSearch/types.d.ts +0 -12
- 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/CardWrapper/index.js +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 +10 -2
- 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/{components/booking/info2/service/editService/Holder → plus/walletPassGallery/components/footerButton}/index.js +220 -166
- 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/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/es/pro/comprehensiveSearch/locales.js +1 -1
- package/es/pro/pisellPaymentList/example.d.ts +19 -0
- package/es/pro/pisellPaymentList/example.js +434 -0
- package/es/pro/skuDetailModal/types.d.ts +0 -1
- package/lib/components/Sales/Event/Detail.js +3 -2
- package/lib/components/appointmentBooking/components/Cart/Item/index.js +0 -1
- 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/{plus/selectHolder/components/HolderList/index.js → components/authentication/admin/AuthMethods/components/DefaultSettingsContent.js} +10 -31
- 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/actionButtons/index.js +2 -11
- 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 +4 -22
- package/lib/components/booking/components/footer/utils.d.ts +0 -7
- package/lib/components/booking/components/footer/utils.js +72 -79
- package/lib/components/booking/components/voucher/index.js +1 -10
- package/lib/components/booking/dashboard/serve.js +6 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/forms/serve.js +12 -2
- package/lib/components/booking/hooks/useQuotation.js +13 -45
- package/lib/components/booking/info/client/serve.js +13 -2
- package/lib/components/booking/info/hooks/useHolderConfig.d.ts +0 -1
- package/lib/components/booking/info/hooks/useHolderConfig.js +3 -8
- package/lib/components/booking/info/pet/serve.js +6 -1
- package/lib/components/booking/info/service/Lists.d.ts +1 -1
- package/lib/components/booking/info/service/Lists.js +3 -5
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service/addTimeModal/serve.js +7 -1
- package/lib/components/booking/info/service/serve.d.ts +0 -14
- package/lib/components/booking/info/service/serve.js +17 -8
- 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 +29 -38
- package/lib/components/booking/info/utils.js +0 -4
- package/lib/components/booking/info2/cartClientCard/index.js +5 -34
- package/lib/components/booking/info2/index.js +2 -7
- package/lib/components/booking/info2/serve.js +6 -1
- package/lib/components/booking/info2/service/addService/index.js +3 -22
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -9
- package/lib/components/booking/info2/service/addService/utils.js +11 -48
- package/lib/components/booking/info2/service/editService/index.js +32 -254
- package/lib/components/booking/info2/utilsByBooking.js +19 -26
- package/lib/components/booking/locales.d.ts +0 -30
- package/lib/components/booking/locales.js +3 -33
- package/lib/components/booking/utils.d.ts +7 -16
- package/lib/components/booking/utils.js +21 -18
- package/lib/components/checkout/PaymentModal.js +18 -41
- package/lib/components/checkout/components/CashPaymentModule/index.js +7 -1
- package/lib/components/checkout/components/ScrollableList/index.js +1 -0
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/locales.d.ts +0 -3
- package/lib/components/checkout/locales.js +0 -3
- 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/eftposPay/tyro/index.js +0 -12
- package/lib/components/index.d.ts +3 -2
- package/lib/components/index.js +20 -1
- package/lib/components/list/List.js +0 -3
- package/lib/components/pay/toB/components/MX51/index.js +37 -12
- package/lib/components/pay/toB/types/index.d.ts +12 -0
- 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/pisellSelectCustomerModal/RightPanel/serve.js +8 -1
- package/lib/components/shoppingCart/components/Cart/Product.js +3 -7
- package/lib/components/shoppingCart/type.d.ts +0 -1
- package/lib/components/ticketBooking/components/ProductDisplayAdapter/index.less +12 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +2 -0
- package/lib/components/ticketBooking/components/addServiceVariant/addService.js +313 -279
- package/lib/components/ticketBooking/components/addServiceVariant/index.d.ts +2 -0
- package/lib/components/ticketBooking/components/addServiceVariant/index.js +3 -5
- package/lib/components/ticketBooking/components/addServiceVariant/utils.js +2 -1
- package/lib/components/ticketBooking/components/menuBar/index.js +6 -42
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +4 -2
- package/lib/components/ticketBooking/components/ticketBooking/index.js +49 -12
- package/lib/components/ticketBooking/components/timeBar/index.d.ts +1 -0
- package/lib/components/ticketBooking/components/timeBar/index.js +3 -1
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.d.ts +4 -0
- package/lib/components/ticketBooking/hooks/pisellos/useProducts.js +98 -69
- package/lib/components/ticketBooking/index.d.ts +1 -0
- package/lib/components/ticketBooking/index.js +2 -0
- package/lib/components/ticketBooking/serve.js +117 -15
- package/lib/components/ticketBooking/utils/index.d.ts +2 -8
- package/lib/components/ticketBooking/utils/index.js +23 -29
- package/lib/components/walletList/index.js +88 -47
- package/lib/components/walletList/serve.d.ts +4 -0
- package/lib/components/walletList/serve.js +12 -0
- package/lib/components/walletList/types/index.d.ts +12 -12
- package/lib/hooks/printer.d.ts +4 -0
- package/lib/hooks/printer.js +60 -0
- package/lib/hooks/useEngineContext.d.ts +1 -0
- package/lib/hooks/useEngineContext.js +10 -2
- package/lib/index.d.ts +5 -3
- package/lib/index.js +32 -9
- package/lib/plus/clientCard/locales.js +3 -3
- package/lib/plus/clinetSearch/index.js +8 -17
- package/lib/plus/clinetSearch/locales.d.ts +0 -3
- package/lib/plus/clinetSearch/locales.js +4 -7
- package/lib/plus/clinetSearch/types.d.ts +0 -12
- 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/CardWrapper/index.js +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 +19 -2
- package/lib/plus/productSelect/components/TabsStructure/TabsStructure.less +0 -11
- package/lib/plus/productSelect/index.d.ts +3 -2
- package/lib/plus/productSelect/index.js +20 -6
- package/lib/plus/productSelect/index.less +4 -0
- package/lib/plus/walletEditor/WalletEditor.d.ts +5 -0
- package/lib/plus/walletEditor/WalletEditor.js +354 -0
- package/lib/plus/walletEditor/WalletEditor.less +129 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +8 -0
- package/lib/plus/walletEditor/components/ImageUpload/index.js +201 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.d.ts +11 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.js +89 -0
- package/lib/plus/walletEditor/components/JsonEditor/index.less +4 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.d.ts +20 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.js +176 -0
- package/lib/plus/walletEditor/components/ValidityPeriodSelector/index.less +4 -0
- package/lib/plus/walletEditor/components/relationProduct/index.d.ts +6 -0
- package/lib/plus/walletEditor/components/relationProduct/index.js +73 -0
- package/lib/plus/walletEditor/components/relationProduct/index.less +15 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.d.ts +37 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.js +211 -0
- package/lib/plus/walletEditor/components/sortableWalletPassTypes/index.less +110 -0
- package/lib/plus/walletEditor/index.d.ts +3 -0
- package/lib/plus/walletEditor/index.js +42 -0
- package/lib/plus/walletEditor/locales.d.ts +126 -0
- package/lib/plus/walletEditor/locales.js +167 -0
- package/lib/plus/walletEditor/types.d.ts +52 -0
- package/lib/plus/{selectHolder → 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/{plus/selectHolder/utils.js → pro/Login2.0/hooks/index.js} +7 -12
- 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/{multiDayTimeSelect → Login2.0/shared}/types.js +1 -1
- 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/comprehensiveSearch/components/searchSection/locales.js +3 -3
- package/lib/pro/comprehensiveSearch/locales.js +1 -1
- package/lib/pro/pisellPaymentList/example.d.ts +19 -0
- package/lib/pro/pisellPaymentList/example.js +416 -0
- package/lib/pro/skuDetailModal/types.d.ts +0 -1
- 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/event-select-holder/meta.ts +2 -2
- 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 +13 -13
- package/es/components/booking/info2/service/editService/Holder/index.d.ts +0 -12
- package/es/components/booking/info2/service/editService/Holder/index.less +0 -63
- package/es/components/booking/utils/confirmHolderModal.d.ts +0 -13
- package/es/components/booking/utils/confirmHolderModal.js +0 -318
- package/es/components/booking/utils/confirmHolderModal.less +0 -40
- package/es/components/booking/utils/selectHolderModal.d.ts +0 -24
- package/es/components/booking/utils/selectHolderModal.js +0 -407
- package/es/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +0 -18
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +0 -3
- package/es/plus/selectHolder/components/ErrorTip/index.js +0 -14
- package/es/plus/selectHolder/components/ErrorTip/index.less +0 -51
- package/es/plus/selectHolder/components/HolderItem/index.d.ts +0 -6
- package/es/plus/selectHolder/components/HolderItem/index.js +0 -77
- package/es/plus/selectHolder/components/HolderItem/index.less +0 -105
- package/es/plus/selectHolder/components/HolderList/index.d.ts +0 -30
- package/es/plus/selectHolder/components/HolderList/index.js +0 -43
- package/es/plus/selectHolder/index.d.ts +0 -7
- package/es/plus/selectHolder/index.js +0 -273
- package/es/plus/selectHolder/index.less +0 -137
- package/es/plus/selectHolder/locales.d.ts +0 -24
- package/es/plus/selectHolder/locales.js +0 -29
- package/es/plus/selectHolder/types.d.ts +0 -104
- package/es/plus/selectHolder/utils.d.ts +0 -9
- package/es/plus/selectHolder/utils.js +0 -16
- 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/booking/info2/service/editService/Holder/index.d.ts +0 -12
- package/lib/components/booking/info2/service/editService/Holder/index.js +0 -199
- package/lib/components/booking/info2/service/editService/Holder/index.less +0 -63
- package/lib/components/booking/utils/confirmHolderModal.d.ts +0 -13
- package/lib/components/booking/utils/confirmHolderModal.js +0 -253
- package/lib/components/booking/utils/confirmHolderModal.less +0 -40
- package/lib/components/booking/utils/selectHolderModal.d.ts +0 -24
- package/lib/components/booking/utils/selectHolderModal.js +0 -319
- package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.d.ts +0 -18
- package/lib/components/ticketBooking/components/addServiceVariant/MultiDayTimeSelectModal.js +0 -118
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +0 -3
- package/lib/plus/selectHolder/components/ErrorTip/index.js +0 -30
- package/lib/plus/selectHolder/components/ErrorTip/index.less +0 -51
- package/lib/plus/selectHolder/components/HolderItem/index.d.ts +0 -6
- package/lib/plus/selectHolder/components/HolderItem/index.js +0 -101
- package/lib/plus/selectHolder/components/HolderItem/index.less +0 -105
- package/lib/plus/selectHolder/components/HolderList/index.d.ts +0 -30
- package/lib/plus/selectHolder/index.d.ts +0 -7
- package/lib/plus/selectHolder/index.js +0 -223
- package/lib/plus/selectHolder/index.less +0 -137
- package/lib/plus/selectHolder/locales.d.ts +0 -24
- package/lib/plus/selectHolder/locales.js +0 -47
- package/lib/plus/selectHolder/types.d.ts +0 -104
- package/lib/plus/selectHolder/utils.d.ts +0 -9
- 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/select-holder/meta.ts +0 -220
- package/lowcode/select-holder/snippets.ts +0 -41
- package/lowcode/wallet/meta.ts +0 -79
- /package/es/{plus/selectHolder → components/authentication/admin/ChannelAuthSetting/AuthenticationMethods}/types.js +0 -0
- /package/es/{pro/multiDayTimeSelect → components/authentication/admin/ChannelAuthSetting/CollectInfo}/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
|
@@ -28,7 +28,7 @@ import useEngineContext from "../../../../hooks/useEngineContext";
|
|
|
28
28
|
import PaymentModal from "../../../checkout/PaymentModal";
|
|
29
29
|
import { closeAllPaymentResultToasts } from "../../../checkout/components/PaymentResultToast";
|
|
30
30
|
import { formatProducts } from "../../addons";
|
|
31
|
-
import { getIsSubjectRequire, isDayBooking, isEventBooking, isHasDayAppointmentProduct
|
|
31
|
+
import { getIsSubjectRequire, isDayBooking, isEventBooking, isHasDayAppointmentProduct } from "../../info/service2/utils";
|
|
32
32
|
import { createBookings, editBookings } from "../../info2/serve";
|
|
33
33
|
import AppointmentProductModal from "./AppointmentProductModal";
|
|
34
34
|
import FooterMenus from "./FooterMenus";
|
|
@@ -37,7 +37,6 @@ import "./index.less";
|
|
|
37
37
|
import { createEventBooking, editEventBooking } from "./serve";
|
|
38
38
|
import { checkHolderIsError, formatValues } from "./utils";
|
|
39
39
|
import NoteModal from "../../../../plus/noteModal";
|
|
40
|
-
import { showConfirmHolderModal, ConfirmHolderModal } from "../../utils/confirmHolderModal";
|
|
41
40
|
import { SubTotal } from "../../../../index";
|
|
42
41
|
import { useIsBooking4Shop } from "../../hooks/useIsBooking4Shop";
|
|
43
42
|
import { sendWarningLog } from '@pisell/utils';
|
|
@@ -48,7 +47,6 @@ import { useCustomer } from "../../../ticketBooking/hooks/pisellos/useCustomer";
|
|
|
48
47
|
import { useDebounceEffect, useDebounceFn, useMemoizedFn } from 'ahooks';
|
|
49
48
|
import { cloneDeep } from 'lodash';
|
|
50
49
|
import { useShopDiscountModule } from "../../../ticketBooking/hooks/pisellos/useShopDiscountModule";
|
|
51
|
-
import { isWalkIn } from "../../utils";
|
|
52
50
|
|
|
53
51
|
/**
|
|
54
52
|
* @title: 底部
|
|
@@ -850,8 +848,7 @@ var Footer = function Footer(props) {
|
|
|
850
848
|
*/
|
|
851
849
|
var handleSave = /*#__PURE__*/function () {
|
|
852
850
|
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(_ref6) {
|
|
853
|
-
var
|
|
854
|
-
var type, _ref6$messageShow, messageShow, _ref6$noSubmit, noSubmit, isHasDayProducts, hasUnspecifiedHolderProduct, _setLoading, _getApis, createBooking, editBooking, editApi, createApi, saveOtherValue, _state$onSave, _store$getState, _window7, callbackData, values, checkout, subtotal_info, res, isNeedDeposit, api;
|
|
851
|
+
var type, _ref6$messageShow, messageShow, _ref6$noSubmit, noSubmit, isHasDayProducts, _setLoading, _getApis, createBooking, editBooking, editApi, createApi, saveOtherValue, _state$onSave, _store$getState, _window7, callbackData, values, checkout, subtotal_info, res, isNeedDeposit, api;
|
|
855
852
|
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
856
853
|
while (1) switch (_context6.prev = _context6.next) {
|
|
857
854
|
case 0:
|
|
@@ -870,23 +867,12 @@ var Footer = function Footer(props) {
|
|
|
870
867
|
}
|
|
871
868
|
return _context6.abrupt("return");
|
|
872
869
|
case 6:
|
|
873
|
-
hasUnspecifiedHolderProduct = (_state$service$value2 = state.service.value) === null || _state$service$value2 === void 0 ? void 0 : _state$service$value2.some(function (item) {
|
|
874
|
-
var _item$_extend, _item$_extend2;
|
|
875
|
-
return (!((_item$_extend = item._extend) !== null && _item$_extend !== void 0 && _item$_extend.holder_id) || ((_item$_extend2 = item._extend) === null || _item$_extend2 === void 0 || (_item$_extend2 = _item$_extend2.holder_id) === null || _item$_extend2 === void 0 ? void 0 : _item$_extend2.length) === 0) && !isNormalProductByDurationSchedule(item);
|
|
876
|
-
});
|
|
877
|
-
if (!(!isWalkIn((_state$client3 = state.client) === null || _state$client3 === void 0 || (_state$client3 = _state$client3.value) === null || _state$client3 === void 0 ? void 0 : _state$client3.id) && getIsSubjectRequire(state) && hasUnspecifiedHolderProduct)) {
|
|
878
|
-
_context6.next = 10;
|
|
879
|
-
break;
|
|
880
|
-
}
|
|
881
|
-
_context6.next = 10;
|
|
882
|
-
return showConfirmHolderModal(state, dispatch);
|
|
883
|
-
case 10:
|
|
884
870
|
if (!(isBooking4Shop && getIsSubjectRequire(state) && checkHolderIsError(state))) {
|
|
885
|
-
_context6.next =
|
|
871
|
+
_context6.next = 8;
|
|
886
872
|
break;
|
|
887
873
|
}
|
|
888
874
|
return _context6.abrupt("return");
|
|
889
|
-
case
|
|
875
|
+
case 8:
|
|
890
876
|
// 区分loading, 是点击的checkout 还是save
|
|
891
877
|
_setLoading = type === 'checkout' ? setCheckoutLoading : setLoading;
|
|
892
878
|
_setLoading(true);
|
|
@@ -895,34 +881,34 @@ var Footer = function Footer(props) {
|
|
|
895
881
|
createApi = state.renderType === 'eventBooking' ? createEventBooking : createBooking;
|
|
896
882
|
saveOtherValue = {};
|
|
897
883
|
if (!(type === 'save')) {
|
|
898
|
-
_context6.next =
|
|
884
|
+
_context6.next = 21;
|
|
899
885
|
break;
|
|
900
886
|
}
|
|
901
|
-
_context6.next =
|
|
887
|
+
_context6.next = 17;
|
|
902
888
|
return state === null || state === void 0 || (_state$onSave = state.onSave) === null || _state$onSave === void 0 ? void 0 : _state$onSave.call(state, state.client);
|
|
903
|
-
case
|
|
889
|
+
case 17:
|
|
904
890
|
_context6.t0 = _context6.sent;
|
|
905
891
|
if (_context6.t0) {
|
|
906
|
-
_context6.next =
|
|
892
|
+
_context6.next = 20;
|
|
907
893
|
break;
|
|
908
894
|
}
|
|
909
895
|
_context6.t0 = {};
|
|
910
|
-
case
|
|
896
|
+
case 20:
|
|
911
897
|
saveOtherValue = _context6.t0;
|
|
912
|
-
case
|
|
913
|
-
_context6.prev =
|
|
898
|
+
case 21:
|
|
899
|
+
_context6.prev = 21;
|
|
914
900
|
callbackData = null; // 格式化提交的参数
|
|
915
901
|
values = formatValues(_objectSpread(_objectSpread({}, state), saveOtherValue)); // checkout 2.0 补充商品总税费字段
|
|
916
902
|
values.product_tax_fee = total.tax || 0;
|
|
917
903
|
if (!noSubmit) {
|
|
918
|
-
_context6.next =
|
|
904
|
+
_context6.next = 27;
|
|
919
905
|
break;
|
|
920
906
|
}
|
|
921
907
|
return _context6.abrupt("return", values);
|
|
922
|
-
case
|
|
908
|
+
case 27:
|
|
923
909
|
checkout = pisellos.getModule('checkout'); // 如果有 orderid,则应该走更新逻辑
|
|
924
910
|
if (!editOrderId) {
|
|
925
|
-
_context6.next =
|
|
911
|
+
_context6.next = 37;
|
|
926
912
|
break;
|
|
927
913
|
}
|
|
928
914
|
subtotal_info = {
|
|
@@ -931,7 +917,7 @@ var Footer = function Footer(props) {
|
|
|
931
917
|
total: cloneDeep(total),
|
|
932
918
|
showDetail: showDetail
|
|
933
919
|
};
|
|
934
|
-
_context6.next =
|
|
920
|
+
_context6.next = 32;
|
|
935
921
|
return checkout.updateLocalOrderAsync({
|
|
936
922
|
orderId: editOrderId,
|
|
937
923
|
orderData: values,
|
|
@@ -939,10 +925,10 @@ var Footer = function Footer(props) {
|
|
|
939
925
|
autoPayment: true,
|
|
940
926
|
totalInfo: subtotal_info
|
|
941
927
|
});
|
|
942
|
-
case
|
|
943
|
-
_context6.next =
|
|
928
|
+
case 32:
|
|
929
|
+
_context6.next = 34;
|
|
944
930
|
return checkout.manualSyncOrderAsync();
|
|
945
|
-
case
|
|
931
|
+
case 34:
|
|
946
932
|
res = _context6.sent;
|
|
947
933
|
if (res.success) {
|
|
948
934
|
// 回调关闭弹窗
|
|
@@ -950,7 +936,7 @@ var Footer = function Footer(props) {
|
|
|
950
936
|
_setLoading(false);
|
|
951
937
|
}
|
|
952
938
|
return _context6.abrupt("return");
|
|
953
|
-
case
|
|
939
|
+
case 37:
|
|
954
940
|
// 如果是保存,检查是否需要支付定金
|
|
955
941
|
if (type === 'save') {
|
|
956
942
|
isNeedDeposit = checkout.checkIsNeedDepositAsync(values.bookings, values.relation_products);
|
|
@@ -1014,43 +1000,43 @@ var Footer = function Footer(props) {
|
|
|
1014
1000
|
|
|
1015
1001
|
// 如果有addons改动, 则先保存
|
|
1016
1002
|
if (!addonsEdit) {
|
|
1017
|
-
_context6.next =
|
|
1003
|
+
_context6.next = 43;
|
|
1018
1004
|
break;
|
|
1019
1005
|
}
|
|
1020
|
-
_context6.next =
|
|
1006
|
+
_context6.next = 43;
|
|
1021
1007
|
return handleSaveAddons();
|
|
1022
|
-
case
|
|
1008
|
+
case 43:
|
|
1023
1009
|
if (!infoEdit) {
|
|
1024
|
-
_context6.next =
|
|
1010
|
+
_context6.next = 48;
|
|
1025
1011
|
break;
|
|
1026
1012
|
}
|
|
1027
|
-
_context6.next =
|
|
1013
|
+
_context6.next = 46;
|
|
1028
1014
|
return api(values, state.bookingId || editOrderId);
|
|
1029
|
-
case
|
|
1015
|
+
case 46:
|
|
1030
1016
|
callbackData = _context6.sent;
|
|
1031
1017
|
if (messageShow) {
|
|
1032
1018
|
message.success(locales.getText(state.bookingId ? 'pisell2.text.appointment-updated' : 'pisell2.text.created-successfully'));
|
|
1033
1019
|
}
|
|
1034
|
-
case
|
|
1020
|
+
case 48:
|
|
1035
1021
|
// 回调关闭弹窗
|
|
1036
1022
|
state === null || state === void 0 || state.callback(callbackData, type);
|
|
1037
1023
|
_setLoading(false);
|
|
1038
1024
|
|
|
1039
1025
|
// return数据 checkout时需要
|
|
1040
1026
|
return _context6.abrupt("return", callbackData || values);
|
|
1041
|
-
case
|
|
1042
|
-
_context6.prev =
|
|
1043
|
-
_context6.t1 = _context6["catch"](
|
|
1027
|
+
case 53:
|
|
1028
|
+
_context6.prev = 53;
|
|
1029
|
+
_context6.t1 = _context6["catch"](21);
|
|
1044
1030
|
console.log(_context6.t1);
|
|
1045
1031
|
if ((_context6.t1 === null || _context6.t1 === void 0 ? void 0 : _context6.t1.code) === 70101) {
|
|
1046
1032
|
message.error(_context6.t1 === null || _context6.t1 === void 0 ? void 0 : _context6.t1.message);
|
|
1047
1033
|
}
|
|
1048
1034
|
_setLoading(false);
|
|
1049
|
-
case
|
|
1035
|
+
case 58:
|
|
1050
1036
|
case "end":
|
|
1051
1037
|
return _context6.stop();
|
|
1052
1038
|
}
|
|
1053
|
-
}, _callee6, null, [[
|
|
1039
|
+
}, _callee6, null, [[21, 53]]);
|
|
1054
1040
|
}));
|
|
1055
1041
|
return function handleSave(_x5) {
|
|
1056
1042
|
return _ref7.apply(this, arguments);
|
|
@@ -1739,7 +1725,6 @@ var Footer = function Footer(props) {
|
|
|
1739
1725
|
}
|
|
1740
1726
|
};
|
|
1741
1727
|
var changeCustomerToGlobalState = useMemoizedFn(function (value) {
|
|
1742
|
-
var _state$service4;
|
|
1743
1728
|
dispatch({
|
|
1744
1729
|
type: 'setClient',
|
|
1745
1730
|
payload: {
|
|
@@ -1747,21 +1732,6 @@ var Footer = function Footer(props) {
|
|
|
1747
1732
|
edit: true
|
|
1748
1733
|
}
|
|
1749
1734
|
});
|
|
1750
|
-
if (state !== null && state !== void 0 && (_state$service4 = state.service) !== null && _state$service4 !== void 0 && (_state$service4 = _state$service4.value) !== null && _state$service4 !== void 0 && _state$service4.length) {
|
|
1751
|
-
// 还需要清空商品内的 holder 信息
|
|
1752
|
-
dispatch({
|
|
1753
|
-
type: 'setService',
|
|
1754
|
-
payload: {
|
|
1755
|
-
value: state.service.value.map(function (item) {
|
|
1756
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
1757
|
-
_extend: _objectSpread(_objectSpread({}, item._extend), {}, {
|
|
1758
|
-
holder_id: []
|
|
1759
|
-
})
|
|
1760
|
-
});
|
|
1761
|
-
})
|
|
1762
|
-
}
|
|
1763
|
-
});
|
|
1764
|
-
}
|
|
1765
1735
|
});
|
|
1766
1736
|
var _useCustomer = useCustomer({
|
|
1767
1737
|
changeCustomerToGlobalState: changeCustomerToGlobalState
|
|
@@ -1991,6 +1961,6 @@ var Footer = function Footer(props) {
|
|
|
1991
1961
|
// handleClearAllAndReset();
|
|
1992
1962
|
// }
|
|
1993
1963
|
}
|
|
1994
|
-
})
|
|
1964
|
+
}));
|
|
1995
1965
|
};
|
|
1996
1966
|
export default Footer;
|
|
@@ -37,12 +37,5 @@ export declare const checkResourcesFormat: (resources: any[], service: any, isCh
|
|
|
37
37
|
* @Date: 2024-12-23 12:05
|
|
38
38
|
*/
|
|
39
39
|
export declare const formatProductPrice: (item: any) => number;
|
|
40
|
-
/**
|
|
41
|
-
* @title: 是否包含跨日预约商品
|
|
42
|
-
* @description:
|
|
43
|
-
* @param {any} data
|
|
44
|
-
* @return {*}
|
|
45
|
-
*/
|
|
46
|
-
export declare const getHasMultiDayProduct: (data: any) => any;
|
|
47
40
|
export declare const formatValues: (state: any) => any;
|
|
48
41
|
export declare const checkHolderIsError: (state: any) => any;
|
|
@@ -12,7 +12,7 @@ import { getDays } from "../../utils";
|
|
|
12
12
|
import { appointmentTypes } from "../../info/service2/status";
|
|
13
13
|
import { isDaysBooking, formatDayTime, isEventBooking, isNormalProductByDurationSchedule, genRowKey } from "../../info/service2/utils";
|
|
14
14
|
import { isArr, locales, sendWarningLog, getUniqueId } from '@pisell/utils';
|
|
15
|
-
import { PisellToast } from
|
|
15
|
+
import { PisellToast } from "@pisell/materials";
|
|
16
16
|
import { getClientName } from "../../../../plus/clientName/utils";
|
|
17
17
|
import { cloneDeep } from 'lodash';
|
|
18
18
|
import Decimal from 'decimal.js';
|
|
@@ -49,10 +49,10 @@ export var formatProductOption = function formatProductOption(option) {
|
|
|
49
49
|
}
|
|
50
50
|
return option.map(function (d) {
|
|
51
51
|
return {
|
|
52
|
-
num: d.num,
|
|
53
|
-
option_group_item_id: d.product_option_item_id || d.option_group_item_id,
|
|
54
|
-
option_group_id: d.option_group_id,
|
|
55
|
-
custom_add_price: Number(d === null || d === void 0 ? void 0 : d.add_price)
|
|
52
|
+
"num": d.num,
|
|
53
|
+
"option_group_item_id": d.product_option_item_id || d.option_group_item_id,
|
|
54
|
+
"option_group_id": d.option_group_id,
|
|
55
|
+
"custom_add_price": Number(d === null || d === void 0 ? void 0 : d.add_price)
|
|
56
56
|
};
|
|
57
57
|
});
|
|
58
58
|
};
|
|
@@ -117,7 +117,7 @@ export var formatProductBundle = function formatProductBundle(bundle) {
|
|
|
117
117
|
// checkout 2.0 新增
|
|
118
118
|
"price_type": d === null || d === void 0 ? void 0 : d.price_type,
|
|
119
119
|
// checkout 2.0 新增
|
|
120
|
-
"custom_price":
|
|
120
|
+
"custom_price": new Decimal(d === null || d === void 0 ? void 0 : d.price).sub(option_price).toNumber().toFixed(2),
|
|
121
121
|
"custom_price_type": d === null || d === void 0 ? void 0 : d.price_type,
|
|
122
122
|
"option": option
|
|
123
123
|
};
|
|
@@ -261,7 +261,6 @@ export var formatProductPrice = function formatProductPrice(item) {
|
|
|
261
261
|
}
|
|
262
262
|
return price;
|
|
263
263
|
};
|
|
264
|
-
|
|
265
264
|
/**
|
|
266
265
|
* checkout2.0: 单个数量商品总价(原价),包含所有套餐子商品金额、报价单等等
|
|
267
266
|
* @param item
|
|
@@ -281,7 +280,7 @@ var formatSellingPrice = function formatSellingPrice(item) {
|
|
|
281
280
|
var _item$_extend9;
|
|
282
281
|
return Number((_item$_extend9 = item._extend) === null || _item$_extend9 === void 0 ? void 0 : _item$_extend9.total);
|
|
283
282
|
};
|
|
284
|
-
var formatMetaData = function formatMetaData(item) {
|
|
283
|
+
var formatMetaData = function formatMetaData(item, isMultiDayPrices) {
|
|
285
284
|
var _item$_extend10, _item$_extend11, _item$_extend13, _item$_extend15;
|
|
286
285
|
var metadata = {};
|
|
287
286
|
if ((_item$_extend10 = item._extend) !== null && _item$_extend10 !== void 0 && _item$_extend10.capacity) {
|
|
@@ -294,7 +293,7 @@ var formatMetaData = function formatMetaData(item) {
|
|
|
294
293
|
var _item$_extend12;
|
|
295
294
|
metadata.holder_id = (_item$_extend12 = item._extend) === null || _item$_extend12 === void 0 ? void 0 : _item$_extend12.holder_id;
|
|
296
295
|
}
|
|
297
|
-
if ((_item$_extend13 = item._extend) !== null && _item$_extend13 !== void 0 && _item$_extend13.multiDayPrices) {
|
|
296
|
+
if (isMultiDayPrices && (_item$_extend13 = item._extend) !== null && _item$_extend13 !== void 0 && _item$_extend13.multiDayPrices) {
|
|
298
297
|
var _item$_extend14;
|
|
299
298
|
metadata.multiDayPrices = (_item$_extend14 = item._extend) === null || _item$_extend14 === void 0 ? void 0 : _item$_extend14.multiDayPrices;
|
|
300
299
|
}
|
|
@@ -368,30 +367,30 @@ var formatProducts = function formatProducts(item, quantity) {
|
|
|
368
367
|
item.product_id = 0;
|
|
369
368
|
}
|
|
370
369
|
return {
|
|
371
|
-
name: item.name,
|
|
372
|
-
num: quantity || item._extend.quantity,
|
|
373
|
-
price: formatProductPrice(item),
|
|
374
|
-
source_product_price: getSourceProductPrice(item),
|
|
375
|
-
product_id: item !== null && item !== void 0 && item.product_id || item.product_id === 0 ? item.product_id : item.id,
|
|
376
|
-
discount_amount: notManualDiscount.length > 0 ? 0 : discount_amount,
|
|
377
|
-
product_discount_reason: item._extend.discount_reason || '',
|
|
378
|
-
is_charge_tax: item.is_charge_tax,
|
|
379
|
-
note: ((_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.note) || '',
|
|
380
|
-
discountway: item._extend.discountway ||
|
|
381
|
-
discount_per: item._extend.discount_per,
|
|
382
|
-
discount_type: item._extend.discount_type || discount_type,
|
|
383
|
-
order_detail_id: item._extend.order_detail_id || 0,
|
|
384
|
-
product_bundle: formatProductBundle((_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 || (_item$_extend20 = _item$_extend20.other) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.bundle),
|
|
385
|
-
bundle_edit: item._extend.bundle_edit,
|
|
386
|
-
product_option_item: formatProductOption((_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 || (_item$_extend21 = _item$_extend21.other) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.option),
|
|
387
|
-
product_variant_id: ((_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 || (_item$_extend22 = _item$_extend22.other) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.product_variant_id) || 0,
|
|
388
|
-
discount_list: notManualDiscount,
|
|
389
|
-
metadata: formatMetaData(item),
|
|
370
|
+
"name": item.name,
|
|
371
|
+
"num": quantity || item._extend.quantity,
|
|
372
|
+
"price": formatProductPrice(item),
|
|
373
|
+
"source_product_price": getSourceProductPrice(item),
|
|
374
|
+
"product_id": item !== null && item !== void 0 && item.product_id || item.product_id === 0 ? item.product_id : item.id,
|
|
375
|
+
"discount_amount": notManualDiscount.length > 0 ? 0 : discount_amount,
|
|
376
|
+
"product_discount_reason": item._extend.discount_reason || '',
|
|
377
|
+
"is_charge_tax": item.is_charge_tax,
|
|
378
|
+
"note": ((_item$_extend19 = item._extend) === null || _item$_extend19 === void 0 ? void 0 : _item$_extend19.note) || '',
|
|
379
|
+
"discountway": item._extend.discountway || "num",
|
|
380
|
+
"discount_per": item._extend.discount_per,
|
|
381
|
+
"discount_type": item._extend.discount_type || discount_type,
|
|
382
|
+
"order_detail_id": item._extend.order_detail_id || 0,
|
|
383
|
+
"product_bundle": formatProductBundle((_item$_extend20 = item._extend) === null || _item$_extend20 === void 0 || (_item$_extend20 = _item$_extend20.other) === null || _item$_extend20 === void 0 ? void 0 : _item$_extend20.bundle),
|
|
384
|
+
"bundle_edit": item._extend.bundle_edit,
|
|
385
|
+
"product_option_item": formatProductOption((_item$_extend21 = item._extend) === null || _item$_extend21 === void 0 || (_item$_extend21 = _item$_extend21.other) === null || _item$_extend21 === void 0 ? void 0 : _item$_extend21.option),
|
|
386
|
+
"product_variant_id": ((_item$_extend22 = item._extend) === null || _item$_extend22 === void 0 || (_item$_extend22 = _item$_extend22.other) === null || _item$_extend22 === void 0 ? void 0 : _item$_extend22.product_variant_id) || 0,
|
|
387
|
+
"discount_list": notManualDiscount,
|
|
388
|
+
metadata: formatMetaData(item, false),
|
|
390
389
|
// checkout 需求新增字段
|
|
391
|
-
calculated_original_price: formatOriginalPrice(item),
|
|
392
|
-
calculated_selling_price: formatSellingPrice(item),
|
|
393
|
-
tax_fee: item._extend.tax_fee,
|
|
394
|
-
custom_deposit_data: item.custom_deposit_data
|
|
390
|
+
"calculated_original_price": formatOriginalPrice(item),
|
|
391
|
+
"calculated_selling_price": formatSellingPrice(item),
|
|
392
|
+
"tax_fee": item._extend.tax_fee,
|
|
393
|
+
"custom_deposit_data": item.custom_deposit_data
|
|
395
394
|
};
|
|
396
395
|
};
|
|
397
396
|
|
|
@@ -471,21 +470,6 @@ var getHolderByIndex = function getHolderByIndex(holder, index) {
|
|
|
471
470
|
});
|
|
472
471
|
};
|
|
473
472
|
|
|
474
|
-
/**
|
|
475
|
-
* @title: 是否包含跨日预约商品
|
|
476
|
-
* @description:
|
|
477
|
-
* @param {any} data
|
|
478
|
-
* @return {*}
|
|
479
|
-
*/
|
|
480
|
-
export var getHasMultiDayProduct = function getHasMultiDayProduct(data) {
|
|
481
|
-
var list = data.service.value;
|
|
482
|
-
var isHas = list.some(function (item) {
|
|
483
|
-
var _item$_extend26;
|
|
484
|
-
return (_item$_extend26 = item._extend) === null || _item$_extend26 === void 0 ? void 0 : _item$_extend26.groupId;
|
|
485
|
-
});
|
|
486
|
-
return isHas;
|
|
487
|
-
};
|
|
488
|
-
|
|
489
473
|
/**
|
|
490
474
|
* @title: 预约商品信息
|
|
491
475
|
* @description:
|
|
@@ -519,8 +503,9 @@ var formatBookings = function formatBookings(data, values) {
|
|
|
519
503
|
var dayParams = {};
|
|
520
504
|
var eventOtherParams = data.eventOtherParams;
|
|
521
505
|
var bookings = [];
|
|
506
|
+
var obj = {};
|
|
522
507
|
list.forEach(function (item) {
|
|
523
|
-
var _item$
|
|
508
|
+
var _item$_extend30, _item$_extend31;
|
|
524
509
|
// 自定义商品直接使用 _extend 中的数据,并将 id 转换为 0 提交给后端
|
|
525
510
|
if (item.isCustomItem) {
|
|
526
511
|
bookings.push(_objectSpread(_objectSpread({}, item._extend), {}, {
|
|
@@ -528,9 +513,6 @@ var formatBookings = function formatBookings(data, values) {
|
|
|
528
513
|
}));
|
|
529
514
|
return;
|
|
530
515
|
}
|
|
531
|
-
|
|
532
|
-
// 当前商品是跨日预约商品
|
|
533
|
-
var isMultiDay = (_item$_extend27 = item._extend) === null || _item$_extend27 === void 0 ? void 0 : _item$_extend27.groupId;
|
|
534
516
|
var start_date = item._extend.startDate.format('YYYY-MM-DD');
|
|
535
517
|
var end_date = item._extend.endDate.format('YYYY-MM-DD');
|
|
536
518
|
var end_time = item._extend.endDate.format('HH:mm');
|
|
@@ -544,9 +526,9 @@ var formatBookings = function formatBookings(data, values) {
|
|
|
544
526
|
|
|
545
527
|
// 跨日预约下的普通商品
|
|
546
528
|
if (isDay) {
|
|
547
|
-
var _item$
|
|
548
|
-
var startDate = ((_item$
|
|
549
|
-
var endDate = ((_item$
|
|
529
|
+
var _item$_extend26, _item$_extend27, _item$_extend28, _item$_extend29;
|
|
530
|
+
var startDate = ((_item$_extend26 = item._extend) === null || _item$_extend26 === void 0 ? void 0 : _item$_extend26.startDate) || ((_item$_extend27 = item._extend) === null || _item$_extend27 === void 0 ? void 0 : _item$_extend27.start_date);
|
|
531
|
+
var endDate = ((_item$_extend28 = item._extend) === null || _item$_extend28 === void 0 ? void 0 : _item$_extend28.endDate) || ((_item$_extend29 = item._extend) === null || _item$_extend29 === void 0 ? void 0 : _item$_extend29.end_date);
|
|
550
532
|
var _formatDayTime = formatDayTime({
|
|
551
533
|
startDate: startDate,
|
|
552
534
|
endDate: endDate
|
|
@@ -568,36 +550,44 @@ var formatBookings = function formatBookings(data, values) {
|
|
|
568
550
|
}
|
|
569
551
|
}, 'minutes');
|
|
570
552
|
}
|
|
571
|
-
if (!((_item$
|
|
553
|
+
if (!((_item$_extend30 = item._extend) !== null && _item$_extend30 !== void 0 && _item$_extend30.unique_identification_number)) {
|
|
572
554
|
var unique_identification_number = getUniqueId();
|
|
573
555
|
item._extend.unique_identification_number = unique_identification_number;
|
|
574
556
|
}
|
|
557
|
+
|
|
558
|
+
// 跨日预约处理: 跨日预约所有数据都在list中, 每一组预约通过groupId进行分组
|
|
559
|
+
// 通过obj 记录下每个GroupId第一次出现的时机, 第一次出现需要设置 metadata.multiDayPrices
|
|
560
|
+
// 后续出现不需要设置 metadata.multiDayPrices. 节省体积
|
|
561
|
+
var isSetGroupId = obj[item === null || item === void 0 || (_item$_extend31 = item._extend) === null || _item$_extend31 === void 0 ? void 0 : _item$_extend31.groupId];
|
|
575
562
|
var booking = _objectSpread(_objectSpread({
|
|
576
|
-
product: formatProducts(item),
|
|
577
|
-
metadata: formatMetaData(item),
|
|
578
|
-
relation_products: formatRelationDetails(item._extend.relation_details),
|
|
579
|
-
id: item.booking_id || 0,
|
|
580
|
-
relation_id: item._extend.relation_id || 0,
|
|
581
|
-
like_status: item._extend.like_status || 'common',
|
|
582
|
-
relation_type: item._extend.relation_type || '',
|
|
583
|
-
is_all: false,
|
|
584
|
-
schedule_id: item._extend.schedule_id || 0,
|
|
585
|
-
end_time: end_time,
|
|
586
|
-
sub_type: isDay ? 'days' : getSubType(item),
|
|
587
|
-
select_date: start_date,
|
|
588
|
-
start_time: start_time,
|
|
589
|
-
end_date: end_date,
|
|
590
|
-
start_date: start_date,
|
|
591
|
-
duration: isDay
|
|
592
|
-
number: item._extend.capacity ? getSumCapacity({
|
|
563
|
+
"product": formatProducts(item),
|
|
564
|
+
"metadata": formatMetaData(item, !isSetGroupId),
|
|
565
|
+
"relation_products": formatRelationDetails(item._extend.relation_details),
|
|
566
|
+
'id': item.booking_id || 0,
|
|
567
|
+
"relation_id": item._extend.relation_id || 0,
|
|
568
|
+
"like_status": item._extend.like_status || 'common',
|
|
569
|
+
"relation_type": item._extend.relation_type || '',
|
|
570
|
+
"is_all": false,
|
|
571
|
+
"schedule_id": item._extend.schedule_id || 0,
|
|
572
|
+
"end_time": end_time,
|
|
573
|
+
"sub_type": isDay ? 'days' : getSubType(item),
|
|
574
|
+
"select_date": start_date,
|
|
575
|
+
"start_time": start_time,
|
|
576
|
+
"end_date": end_date,
|
|
577
|
+
"start_date": start_date,
|
|
578
|
+
"duration": isDay ? 0 : flexibleObj.getValue(item._extend.duration),
|
|
579
|
+
"number": item._extend.capacity ? getSumCapacity({
|
|
593
580
|
cacheItem: item
|
|
594
581
|
}) : item._extend.number || 1,
|
|
595
|
-
resources: formatResource(item),
|
|
596
|
-
note: item._extend.note
|
|
582
|
+
"resources": formatResource(item),
|
|
583
|
+
"note": item._extend.note
|
|
597
584
|
}, eventOtherParams || {}), dayParams);
|
|
598
585
|
|
|
599
|
-
//
|
|
600
|
-
if (
|
|
586
|
+
// 记录下每个GroupId第一次出现的时机
|
|
587
|
+
if (!isSetGroupId) {
|
|
588
|
+
obj[item._extend.groupId] = true;
|
|
589
|
+
}
|
|
590
|
+
if (isDay) {
|
|
601
591
|
bookings.push(booking);
|
|
602
592
|
return;
|
|
603
593
|
}
|
|
@@ -605,12 +595,12 @@ var formatBookings = function formatBookings(data, values) {
|
|
|
605
595
|
var newItem = cloneDeep(item);
|
|
606
596
|
newItem._extend.unique_identification_number = "".concat(item._extend.unique_identification_number, "_").concat(i);
|
|
607
597
|
bookings.push(_objectSpread(_objectSpread({}, booking), {}, {
|
|
608
|
-
product: formatProducts(newItem, 1),
|
|
609
|
-
number: item._extend.capacity ? getSumCapacity({
|
|
598
|
+
"product": formatProducts(newItem, 1),
|
|
599
|
+
"number": item._extend.capacity ? getSumCapacity({
|
|
610
600
|
cacheItem: newItem
|
|
611
601
|
}, false) : newItem._extend.number || 1,
|
|
612
|
-
holder: getHolderByIndex(booking.holder, i),
|
|
613
|
-
metadata: formatMetaData(newItem)
|
|
602
|
+
"holder": getHolderByIndex(booking.holder, i),
|
|
603
|
+
"metadata": formatMetaData(newItem)
|
|
614
604
|
}));
|
|
615
605
|
}
|
|
616
606
|
});
|
|
@@ -630,16 +620,16 @@ var formatRelationProducts = function formatRelationProducts(data, type) {
|
|
|
630
620
|
var list = ((_data$service = data.service) === null || _data$service === void 0 ? void 0 : _data$service.value) || [];
|
|
631
621
|
// open items 下的商品
|
|
632
622
|
list = list.filter(function (item) {
|
|
633
|
-
var _item$
|
|
623
|
+
var _item$_extend32;
|
|
634
624
|
return (
|
|
635
625
|
// 跨日预约把普通商品加在relationProducts 活动预约按之前逻辑
|
|
636
|
-
type === 'day' ? isNormalProductByDurationSchedule(item) : ((_item$
|
|
626
|
+
type === 'day' ? isNormalProductByDurationSchedule(item) : ((_item$_extend32 = item._extend) === null || _item$_extend32 === void 0 ? void 0 : _item$_extend32.holder_id) && appointmentTypes.includes(item.extension_type)
|
|
637
627
|
);
|
|
638
628
|
});
|
|
639
629
|
var relationProducts = [];
|
|
640
630
|
relationProducts = list.map(function (item) {
|
|
641
|
-
var _item$
|
|
642
|
-
if (!((_item$
|
|
631
|
+
var _item$_extend33;
|
|
632
|
+
if (!((_item$_extend33 = item._extend) !== null && _item$_extend33 !== void 0 && _item$_extend33.unique_identification_number)) {
|
|
643
633
|
var unique_identification_number = getUniqueId();
|
|
644
634
|
item._extend.unique_identification_number = unique_identification_number;
|
|
645
635
|
}
|
|
@@ -658,8 +648,8 @@ var formatNormalProducts = function formatNormalProducts(data) {
|
|
|
658
648
|
});
|
|
659
649
|
var relationProducts = [];
|
|
660
650
|
relationProducts = list.map(function (item) {
|
|
661
|
-
var _item$
|
|
662
|
-
if (!((_item$
|
|
651
|
+
var _item$_extend34;
|
|
652
|
+
if (!((_item$_extend34 = item._extend) !== null && _item$_extend34 !== void 0 && _item$_extend34.unique_identification_number)) {
|
|
663
653
|
var unique_identification_number = getUniqueId();
|
|
664
654
|
item._extend.unique_identification_number = unique_identification_number;
|
|
665
655
|
}
|
|
@@ -716,11 +706,7 @@ export var formatValues = function formatValues(state) {
|
|
|
716
706
|
relation_products: [],
|
|
717
707
|
metadata: {}
|
|
718
708
|
};
|
|
719
|
-
|
|
720
|
-
// 是是跨日预约模版
|
|
721
709
|
var isDay = isDaysBooking(state);
|
|
722
|
-
// 是否包含跨日预约商品
|
|
723
|
-
var isHasMultiDay = getHasMultiDayProduct(state);
|
|
724
710
|
var isEvent = isEventBooking(state);
|
|
725
711
|
if (!state.bookingId || isDay) {
|
|
726
712
|
// 备注
|
|
@@ -743,8 +729,8 @@ export var formatValues = function formatValues(state) {
|
|
|
743
729
|
// 主体
|
|
744
730
|
values.holder = formatHolder(state, values);
|
|
745
731
|
// todo
|
|
746
|
-
if (isEvent) {
|
|
747
|
-
values.relation_products = formatRelationProducts(state, 'event');
|
|
732
|
+
if (isDay || isEvent) {
|
|
733
|
+
values.relation_products = formatRelationProducts(state, isDay ? 'day' : 'event');
|
|
748
734
|
} else {
|
|
749
735
|
var _values$relation_prod;
|
|
750
736
|
values.relation_products = formatNormalProducts(state);
|
|
@@ -765,7 +751,7 @@ export var formatValues = function formatValues(state) {
|
|
|
765
751
|
}
|
|
766
752
|
|
|
767
753
|
// 跨日预约增加多余参数区分
|
|
768
|
-
if (isDay
|
|
754
|
+
if (isDay) {
|
|
769
755
|
values.metadata.is_multiday_appointment = 1;
|
|
770
756
|
// is_bundle_price_calculated 用于区分商品的price是总价,还是商品的单价
|
|
771
757
|
// values.is_bundle_price_calculated = 1
|
|
@@ -782,21 +768,21 @@ export var formatValues = function formatValues(state) {
|
|
|
782
768
|
// 检测预约主体是否为空
|
|
783
769
|
export var checkHolderIsError = function checkHolderIsError(state) {
|
|
784
770
|
var _state$client;
|
|
785
|
-
var errorRowKey =
|
|
771
|
+
var errorRowKey = "";
|
|
786
772
|
var holderError = state.service.value.some(function (item) {
|
|
787
|
-
var _item$
|
|
773
|
+
var _item$_extend36;
|
|
788
774
|
// 普通商品不需要检测holder
|
|
789
775
|
if (isNormalProductByDurationSchedule(item)) {
|
|
790
776
|
return false;
|
|
791
777
|
}
|
|
792
|
-
if (item._extend.quantity === 1 &&
|
|
793
|
-
var _item$
|
|
794
|
-
errorRowKey = genRowKey(item === null || item === void 0 || (_item$
|
|
778
|
+
if (item._extend.quantity === 1 && !item._extend.holder_id) {
|
|
779
|
+
var _item$_extend35;
|
|
780
|
+
errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend35 = item._extend) === null || _item$_extend35 === void 0 || (_item$_extend35 = _item$_extend35.other) === null || _item$_extend35 === void 0 ? void 0 : _item$_extend35.rowKey);
|
|
795
781
|
return true;
|
|
796
782
|
}
|
|
797
|
-
if (item._extend.quantity > 1 && ((_item$
|
|
798
|
-
var _item$
|
|
799
|
-
errorRowKey = genRowKey(item === null || item === void 0 || (_item$
|
|
783
|
+
if (item._extend.quantity > 1 && ((_item$_extend36 = item._extend) === null || _item$_extend36 === void 0 || (_item$_extend36 = _item$_extend36.holder_id) === null || _item$_extend36 === void 0 ? void 0 : _item$_extend36.length) !== item._extend.quantity) {
|
|
784
|
+
var _item$_extend37;
|
|
785
|
+
errorRowKey = genRowKey(item === null || item === void 0 || (_item$_extend37 = item._extend) === null || _item$_extend37 === void 0 || (_item$_extend37 = _item$_extend37.other) === null || _item$_extend37 === void 0 ? void 0 : _item$_extend37.rowKey);
|
|
800
786
|
return true;
|
|
801
787
|
}
|
|
802
788
|
return false;
|