@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
|
@@ -40,7 +40,6 @@ var import_model = require("../../../info/model");
|
|
|
40
40
|
var import_duration = __toESM(require("../../../materiels/duration"));
|
|
41
41
|
var import_Capacity = __toESM(require("./Capacity"));
|
|
42
42
|
var import_Resources = __toESM(require("./Resources"));
|
|
43
|
-
var import_Holder = __toESM(require("./Holder"));
|
|
44
43
|
var import_antd = require("antd");
|
|
45
44
|
var import_index = require("./index.less");
|
|
46
45
|
var import_collapsibleList = __toESM(require("../../../components/collapsibleList"));
|
|
@@ -56,29 +55,20 @@ var import_utilsByBooking = require("../../utilsByBooking");
|
|
|
56
55
|
var import_utils7 = require("../addService/utils");
|
|
57
56
|
var import_noteModal = __toESM(require("../../../../../plus/noteModal"));
|
|
58
57
|
var import_priceKeyboard = require("../../../../../pro/priceKeyboard");
|
|
59
|
-
var import_EditTabs = __toESM(require("../../../info/service/editService/EditTabs"));
|
|
60
|
-
var import_BookingList = __toESM(require("../../../info/service/editService/BookingList"));
|
|
61
|
-
var import_dayjs = __toESM(require("dayjs"));
|
|
62
|
-
var import_utils8 = require("../../../info/service2/Group/utils");
|
|
63
58
|
var submitLock = false;
|
|
64
59
|
var Info = (_, ref) => {
|
|
65
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I
|
|
60
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I;
|
|
66
61
|
const [form] = import_antd.Form.useForm();
|
|
67
62
|
const useTotal = import_antd.Form.useWatch("total", form);
|
|
68
63
|
const useResource = import_antd.Form.useWatch("resource", form);
|
|
69
64
|
const useStartTime = import_antd.Form.useWatch("start_time", form);
|
|
70
65
|
const useDuration = import_antd.Form.useWatch("duration", form);
|
|
71
|
-
const useHolder = import_antd.Form.useWatch("holder", form);
|
|
72
|
-
const useHolderId = import_antd.Form.useWatch("holder_id", form);
|
|
73
66
|
const useNote = import_antd.Form.useWatch("note", form);
|
|
74
|
-
const useStartDate = import_antd.Form.useWatch("start_date", form);
|
|
75
|
-
const useEndDate = import_antd.Form.useWatch("end_date", form);
|
|
76
67
|
const { state, dispatch } = (0, import_react.useContext)(import_model.Context);
|
|
77
68
|
const resourcesRef = (0, import_react.useRef)(null);
|
|
78
69
|
const isChangeTotal = (0, import_react.useRef)(false);
|
|
79
70
|
const [noteModalOpen, setNoteModalOpen] = (0, import_react.useState)(false);
|
|
80
71
|
const [open, setOpen] = (0, import_react.useState)(false);
|
|
81
|
-
const [currentTab, setCurrentTab] = (0, import_react.useState)("batch_edit");
|
|
82
72
|
(0, import_react.useEffect)(() => {
|
|
83
73
|
window.openBookingEditModal = () => {
|
|
84
74
|
setOpen(true);
|
|
@@ -133,7 +123,6 @@ var Info = (_, ref) => {
|
|
|
133
123
|
}, [durationProps, import_utils.locales.locale]);
|
|
134
124
|
const timeObj = (0, import_react.useMemo)(() => {
|
|
135
125
|
const val2 = (0, import_utils7.getTimeObj)({
|
|
136
|
-
cacheItem: getCurrentCacheItem(),
|
|
137
126
|
durationProps,
|
|
138
127
|
useStartTime,
|
|
139
128
|
currentResource,
|
|
@@ -198,7 +187,7 @@ var Info = (_, ref) => {
|
|
|
198
187
|
form.setFieldsValue({ discount });
|
|
199
188
|
};
|
|
200
189
|
const onFinish = (values) => {
|
|
201
|
-
var _a2, _b2, _c2, _d2
|
|
190
|
+
var _a2, _b2, _c2, _d2;
|
|
202
191
|
let isSuccess = (_a2 = resourcesRef.current) == null ? void 0 : _a2.check();
|
|
203
192
|
if (isShowTimeAndResource && !isSuccess) {
|
|
204
193
|
return;
|
|
@@ -223,63 +212,29 @@ var Info = (_, ref) => {
|
|
|
223
212
|
},
|
|
224
213
|
...values
|
|
225
214
|
};
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
_extend.endDate = _extend == null ? void 0 : _extend.end_date;
|
|
230
|
-
} else {
|
|
231
|
-
const { startDate, endDate } = (0, import_utils6.getServiceTimes)({ _extend });
|
|
232
|
-
_extend.startDate = startDate;
|
|
233
|
-
_extend.endDate = endDate;
|
|
234
|
-
}
|
|
215
|
+
const { startDate, endDate } = (0, import_utils6.getServiceTimes)({ _extend });
|
|
216
|
+
_extend.startDate = startDate;
|
|
217
|
+
_extend.endDate = endDate;
|
|
235
218
|
if (_extend.bundle_edit !== void 0) {
|
|
236
219
|
_extend.bundle_edit = 1;
|
|
237
220
|
}
|
|
238
221
|
_item._extend = _extend;
|
|
239
222
|
_item._time = (/* @__PURE__ */ new Date()).getTime();
|
|
240
223
|
_item._serviceKey = (0, import_utils3.genServiceKey)(_item);
|
|
241
|
-
_item._holderKey = (0, import_utils3.genHolderKey)(_item);
|
|
242
|
-
if (((_d2 = (_c2 = _item._extend) == null ? void 0 : _c2.holder_id) == null ? void 0 : _d2.length) > 1 || ((_e2 = _item._extend) == null ? void 0 : _e2.quantity) > 1 && ((_g2 = (_f2 = _item._extend) == null ? void 0 : _f2.holder_id) == null ? void 0 : _g2.length) >= 1) {
|
|
243
|
-
let holder_ids = _item._extend.holder_id;
|
|
244
|
-
_item._extend.holder_id = holder_ids[0];
|
|
245
|
-
holder_ids = holder_ids.slice(1);
|
|
246
|
-
_item._holderKey = (0, import_utils3.genHolderKey)(_item);
|
|
247
|
-
holder_ids.forEach((holder_id) => {
|
|
248
|
-
const newItem = { ..._item, _id: (0, import_utils.getUniqueId)(), _extend: { ..._item._extend, holder_id: [holder_id], quantity: 1 } };
|
|
249
|
-
newItem._holderKey = (0, import_utils3.genHolderKey)(newItem);
|
|
250
|
-
_list.unshift(newItem);
|
|
251
|
-
_item._extend.quantity -= 1;
|
|
252
|
-
});
|
|
253
|
-
if (_item._extend.quantity > 1) {
|
|
254
|
-
const newItem = { ..._item, _id: (0, import_utils.getUniqueId)(), _extend: { ..._item._extend, holder_id: void 0, quantity: _item._extend.quantity - 1 } };
|
|
255
|
-
newItem._holderKey = (0, import_utils3.genHolderKey)(newItem);
|
|
256
|
-
_list.unshift(newItem);
|
|
257
|
-
_item._extend.quantity = 1;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
224
|
let _id = _item == null ? void 0 : _item._id;
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
_list =
|
|
264
|
-
var _a3;
|
|
265
|
-
return ((_a3 = d._extend) == null ? void 0 : _a3.groupId) !== groupId;
|
|
266
|
-
});
|
|
267
|
-
_list = _list.concat((0, import_utils8.createBookingItemsByGroup)(_item, true));
|
|
225
|
+
if (!_list.some((d) => d._id === _id)) {
|
|
226
|
+
const detail = (0, import_utils3.addService)(_list, _item, state);
|
|
227
|
+
_list = detail.list;
|
|
268
228
|
} else {
|
|
269
|
-
if (
|
|
270
|
-
|
|
271
|
-
_list = detail.list;
|
|
272
|
-
} else {
|
|
273
|
-
if (isChangeTotal.current) {
|
|
274
|
-
delete _item.discount_list;
|
|
275
|
-
}
|
|
276
|
-
_list = _list.map((d) => d._id === _id ? { ..._item, new: 0 } : d);
|
|
229
|
+
if (isChangeTotal.current) {
|
|
230
|
+
delete _item.discount_list;
|
|
277
231
|
}
|
|
232
|
+
_list = _list.map((d) => d._id === _id ? { ..._item, new: 0 } : d);
|
|
278
233
|
}
|
|
279
234
|
(0, import_utils6.deleteCacheParams)();
|
|
280
235
|
console.log("_onFinish", _list);
|
|
281
236
|
form.resetFields();
|
|
282
|
-
if (!!((
|
|
237
|
+
if (!!((_c2 = state.service.cacheItem) == null ? void 0 : _c2.new)) {
|
|
283
238
|
window.dispatchEvent(
|
|
284
239
|
new CustomEvent("onAddNewService", {
|
|
285
240
|
detail: {
|
|
@@ -288,15 +243,7 @@ var Info = (_, ref) => {
|
|
|
288
243
|
})
|
|
289
244
|
);
|
|
290
245
|
}
|
|
291
|
-
(
|
|
292
|
-
_list.sort((a, b) => {
|
|
293
|
-
var _a3, _b3;
|
|
294
|
-
const aHasHolderId = ((_a3 = a._extend) == null ? void 0 : _a3.holder_id) && (Array.isArray(a._extend.holder_id) ? a._extend.holder_id.length > 0 : true);
|
|
295
|
-
const bHasHolderId = ((_b3 = b._extend) == null ? void 0 : _b3.holder_id) && (Array.isArray(b._extend.holder_id) ? b._extend.holder_id.length > 0 : true);
|
|
296
|
-
if (!aHasHolderId && bHasHolderId) return -1;
|
|
297
|
-
if (aHasHolderId && !bHasHolderId) return 1;
|
|
298
|
-
return 0;
|
|
299
|
-
});
|
|
246
|
+
(_d2 = window.closeBookingEditModal) == null ? void 0 : _d2.call(window);
|
|
300
247
|
dispatch({
|
|
301
248
|
type: "setService",
|
|
302
249
|
payload: {
|
|
@@ -323,7 +270,6 @@ var Info = (_, ref) => {
|
|
|
323
270
|
(_cacheItem, open2, openProductDetail) => {
|
|
324
271
|
console.timeEnd("handleChange");
|
|
325
272
|
console.log("setEditDatasetEditData", _cacheItem, open2);
|
|
326
|
-
setCurrentTab("batch_edit");
|
|
327
273
|
isChangeTotal.current = false;
|
|
328
274
|
let cacheItem = _cacheItem || state.service.cacheItem;
|
|
329
275
|
let values = cacheItem._extend;
|
|
@@ -331,9 +277,9 @@ var Info = (_, ref) => {
|
|
|
331
277
|
console.log(startTime2, "startTime");
|
|
332
278
|
form.resetFields();
|
|
333
279
|
form.setFieldsValue(values);
|
|
334
|
-
const
|
|
335
|
-
console.log(
|
|
336
|
-
console.log("执行时间",
|
|
280
|
+
const endTime = performance.now();
|
|
281
|
+
console.log(endTime - window.pp1, "打开商品5");
|
|
282
|
+
console.log("执行时间", endTime - startTime2, values);
|
|
337
283
|
setTimeout(() => {
|
|
338
284
|
}, 20);
|
|
339
285
|
if (openProductDetail) {
|
|
@@ -350,10 +296,9 @@ var Info = (_, ref) => {
|
|
|
350
296
|
return cPrice !== oPrice;
|
|
351
297
|
}, [useTotal, (_i = (_h = state.service.cacheItem) == null ? void 0 : _h._extend) == null ? void 0 : _i.origin_total]);
|
|
352
298
|
const getResources = () => {
|
|
353
|
-
var _a2, _b2;
|
|
354
299
|
let res = (0, import_utils7.formatResources)({
|
|
355
300
|
cacheItem: getCurrentCacheItem(),
|
|
356
|
-
resourcesOrigin:
|
|
301
|
+
resourcesOrigin: state.service.cacheItem._data.resourcesOrigin
|
|
357
302
|
});
|
|
358
303
|
dispatch({
|
|
359
304
|
type: "setService",
|
|
@@ -537,18 +482,6 @@ var Info = (_, ref) => {
|
|
|
537
482
|
}, [state.renderType, isNormalProduct]);
|
|
538
483
|
const SelectTime = (_p = window.BaseMaterials) == null ? void 0 : _p.SelectTime;
|
|
539
484
|
const isNoSpecAndPackage = (0, import_utilsByBooking.getIsNoSpecAndPackage)(state.service.cacheItem);
|
|
540
|
-
const items = (0, import_react.useMemo)(() => {
|
|
541
|
-
var _a2, _b2;
|
|
542
|
-
return ((_b2 = (_a2 = getCurrentCacheItem()) == null ? void 0 : _a2._extend) == null ? void 0 : _b2.items) || [];
|
|
543
|
-
}, [
|
|
544
|
-
getCurrentCacheItem(),
|
|
545
|
-
state.service.cacheItem,
|
|
546
|
-
currentResource,
|
|
547
|
-
useTotal
|
|
548
|
-
]);
|
|
549
|
-
const isEditGroup = (0, import_react.useMemo)(() => {
|
|
550
|
-
return items.length;
|
|
551
|
-
}, [items]);
|
|
552
485
|
const handleNoteConfirm = (noteValue) => {
|
|
553
486
|
form.setFieldsValue({ note: noteValue });
|
|
554
487
|
setNoteModalOpen(false);
|
|
@@ -631,28 +564,16 @@ var Info = (_, ref) => {
|
|
|
631
564
|
/* @__PURE__ */ import_react.default.createElement(import_antd.Input.TextArea, { size: "large" })
|
|
632
565
|
)) : null;
|
|
633
566
|
}, [isReason]);
|
|
634
|
-
const DateCom = (position) => {
|
|
635
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
636
|
-
import_antd.DatePicker,
|
|
637
|
-
{
|
|
638
|
-
className: "pisell-lowcode__booking-service-select-date",
|
|
639
|
-
disabledDate: (current) => (0, import_utils4.disabledDate)(current, position, state.date.value),
|
|
640
|
-
size: "large",
|
|
641
|
-
style: { width: "100%" },
|
|
642
|
-
format: state.locale === "en" ? "DD/MM/YYYY" : "YYYY-MM-DD"
|
|
643
|
-
}
|
|
644
|
-
);
|
|
645
|
-
};
|
|
646
567
|
const startTime = (0, import_react.useMemo)(() => {
|
|
647
568
|
var _a2, _b2, _c2, _d2;
|
|
648
569
|
return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
|
|
649
570
|
import_antd.Form.Item,
|
|
650
571
|
{
|
|
651
|
-
label: import_utils.locales.getText(
|
|
652
|
-
name:
|
|
572
|
+
label: import_utils.locales.getText("pisell2.text.start_time"),
|
|
573
|
+
name: "start_time",
|
|
653
574
|
rules: [{ required: true }]
|
|
654
575
|
},
|
|
655
|
-
|
|
576
|
+
SelectTime ? /* @__PURE__ */ import_react.default.createElement(
|
|
656
577
|
SelectTime,
|
|
657
578
|
{
|
|
658
579
|
slice: (_d2 = (_c2 = (_b2 = (_a2 = state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.basic) == null ? void 0 : _c2.service_time) == null ? void 0 : _d2.value,
|
|
@@ -665,23 +586,10 @@ var Info = (_, ref) => {
|
|
|
665
586
|
}
|
|
666
587
|
) : null
|
|
667
588
|
));
|
|
668
|
-
}, [SelectTime, (_y = (_x = (_w = (_v = state.bookingConfig) == null ? void 0 : _v.config) == null ? void 0 : _w.basic) == null ? void 0 : _x.service_time) == null ? void 0 : _y.value
|
|
669
|
-
const endTime = (0, import_react.useMemo)(() => {
|
|
670
|
-
if (!isEditGroup) {
|
|
671
|
-
return null;
|
|
672
|
-
}
|
|
673
|
-
return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
|
|
674
|
-
import_antd.Form.Item,
|
|
675
|
-
{
|
|
676
|
-
label: import_utils.locales.getText("pisell2.text.end_date"),
|
|
677
|
-
name: "end_date"
|
|
678
|
-
},
|
|
679
|
-
DateCom("end")
|
|
680
|
-
));
|
|
681
|
-
}, [isEditGroup]);
|
|
589
|
+
}, [SelectTime, (_y = (_x = (_w = (_v = state.bookingConfig) == null ? void 0 : _v.config) == null ? void 0 : _w.basic) == null ? void 0 : _x.service_time) == null ? void 0 : _y.value]);
|
|
682
590
|
const duration = (0, import_react.useMemo)(() => {
|
|
683
591
|
console.log("render form duration");
|
|
684
|
-
return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span:
|
|
592
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Col, { span: 12 }, /* @__PURE__ */ import_react.default.createElement(
|
|
685
593
|
import_antd.Form.Item,
|
|
686
594
|
{
|
|
687
595
|
label: import_utils.locales.getText("pisell2.text.duration"),
|
|
@@ -690,7 +598,7 @@ var Info = (_, ref) => {
|
|
|
690
598
|
},
|
|
691
599
|
/* @__PURE__ */ import_react.default.createElement(import_duration.default, { ...durationProps, timeObj })
|
|
692
600
|
));
|
|
693
|
-
}, [durationProps, timeObj
|
|
601
|
+
}, [durationProps, timeObj]);
|
|
694
602
|
const resource = (0, import_react.useMemo)(() => {
|
|
695
603
|
console.log("render form resource");
|
|
696
604
|
return /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { noStyle: true, name: "resource" }, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -707,38 +615,6 @@ var Info = (_, ref) => {
|
|
|
707
615
|
(_A = (_z = state.service.cacheItem) == null ? void 0 : _z._data) == null ? void 0 : _A.resources,
|
|
708
616
|
(_C = (_B = state.service.cacheItem) == null ? void 0 : _B._data) == null ? void 0 : _C.resourceMaps
|
|
709
617
|
]);
|
|
710
|
-
const holder = (0, import_react.useMemo)(() => {
|
|
711
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2;
|
|
712
|
-
const showExtra = ((_c2 = (_b2 = (_a2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a2.config) == null ? void 0 : _b2.basic) == null ? void 0 : _c2.subject_require) === "require" && (!useHolderId || (useHolderId == null ? void 0 : useHolderId.length) < ((_e2 = (_d2 = state.service.cacheItem) == null ? void 0 : _d2._extend) == null ? void 0 : _e2.quantity));
|
|
713
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
714
|
-
import_antd.Form.Item,
|
|
715
|
-
{
|
|
716
|
-
name: "holder_id",
|
|
717
|
-
style: { width: "100%" },
|
|
718
|
-
rules: [
|
|
719
|
-
{
|
|
720
|
-
required: ((_h2 = (_g2 = (_f2 = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _f2.config) == null ? void 0 : _g2.basic) == null ? void 0 : _h2.subject_require) === "require",
|
|
721
|
-
validator: (rule, value, callback) => {
|
|
722
|
-
debugger;
|
|
723
|
-
if (showExtra) {
|
|
724
|
-
callback(import_utils.locales.getText("page.booking.text.holder.length-error"));
|
|
725
|
-
} else {
|
|
726
|
-
callback();
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
]
|
|
731
|
-
},
|
|
732
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
733
|
-
import_Holder.default,
|
|
734
|
-
{
|
|
735
|
-
state,
|
|
736
|
-
cacheItem: state.service.cacheItem,
|
|
737
|
-
dispatch
|
|
738
|
-
}
|
|
739
|
-
)
|
|
740
|
-
));
|
|
741
|
-
}, [state.pet, state.client, state.service.cacheItem, useHolderId]);
|
|
742
618
|
const capacity = (0, import_react.useMemo)(() => {
|
|
743
619
|
return /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { noStyle: true, name: "capacity" }, /* @__PURE__ */ import_react.default.createElement(import_Capacity.default, { state, cacheItem: state.service.cacheItem }));
|
|
744
620
|
}, [
|
|
@@ -841,91 +717,6 @@ var Info = (_, ref) => {
|
|
|
841
717
|
setVal(false);
|
|
842
718
|
}
|
|
843
719
|
}, [isShowTimeAndResource]);
|
|
844
|
-
const groupDom = (0, import_react.useMemo)(() => {
|
|
845
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, !!isEditGroup && /* @__PURE__ */ import_react.default.createElement(
|
|
846
|
-
import_EditTabs.default,
|
|
847
|
-
{
|
|
848
|
-
value: currentTab,
|
|
849
|
-
onChange: (e) => {
|
|
850
|
-
console.log(e);
|
|
851
|
-
setCurrentTab(e);
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
), /* @__PURE__ */ import_react.default.createElement(
|
|
855
|
-
"div",
|
|
856
|
-
{
|
|
857
|
-
className: "",
|
|
858
|
-
style: {
|
|
859
|
-
display: currentTab === "booking_list" ? "block" : "none"
|
|
860
|
-
}
|
|
861
|
-
},
|
|
862
|
-
/* @__PURE__ */ import_react.default.createElement(import_BookingList.default, { items })
|
|
863
|
-
));
|
|
864
|
-
}, [isEditGroup, currentTab, items]);
|
|
865
|
-
const updateMultiDay = async ({ start_date, end_date, duration: duration2 }) => {
|
|
866
|
-
const cacheItem = await (0, import_utils7.getMultiDay)({
|
|
867
|
-
start_date,
|
|
868
|
-
end_date,
|
|
869
|
-
state,
|
|
870
|
-
cacheItem: getCurrentCacheItem()
|
|
871
|
-
});
|
|
872
|
-
if (duration2 !== void 0) {
|
|
873
|
-
cacheItem._extend.duration = duration2;
|
|
874
|
-
}
|
|
875
|
-
cacheItem._extend.items = (0, import_utils8.createBookingItemsByGroup)(cacheItem);
|
|
876
|
-
cacheItem._extend = {
|
|
877
|
-
...cacheItem._extend,
|
|
878
|
-
...(0, import_utils8.getGroupTotalPrice)(cacheItem._extend.items)
|
|
879
|
-
};
|
|
880
|
-
dispatch({
|
|
881
|
-
type: "setService",
|
|
882
|
-
payload: {
|
|
883
|
-
cacheItem
|
|
884
|
-
}
|
|
885
|
-
});
|
|
886
|
-
let fieldsValues = {
|
|
887
|
-
total: cacheItem._extend.total
|
|
888
|
-
};
|
|
889
|
-
form.setFieldsValue(fieldsValues);
|
|
890
|
-
};
|
|
891
|
-
const onValuesChange = (changedValues) => {
|
|
892
|
-
if (isEditGroup) {
|
|
893
|
-
if (changedValues == null ? void 0 : changedValues.duration) {
|
|
894
|
-
const end_date = (0, import_dayjs.default)(useStartDate).add(
|
|
895
|
-
changedValues == null ? void 0 : changedValues.duration,
|
|
896
|
-
"day"
|
|
897
|
-
);
|
|
898
|
-
form.setFieldsValue({
|
|
899
|
-
end_date
|
|
900
|
-
});
|
|
901
|
-
return updateMultiDay({
|
|
902
|
-
start_date: useStartDate,
|
|
903
|
-
end_date,
|
|
904
|
-
duration: changedValues == null ? void 0 : changedValues.duration
|
|
905
|
-
});
|
|
906
|
-
}
|
|
907
|
-
if (changedValues == null ? void 0 : changedValues.start_date) {
|
|
908
|
-
const startDate = (0, import_dayjs.default)(changedValues == null ? void 0 : changedValues.start_date);
|
|
909
|
-
const endDate = (0, import_dayjs.default)(useEndDate);
|
|
910
|
-
if (startDate.isAfter(endDate)) {
|
|
911
|
-
return form.setFieldsValue({
|
|
912
|
-
duration: void 0,
|
|
913
|
-
end_date: void 0
|
|
914
|
-
});
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
if ((changedValues == null ? void 0 : changedValues.start_date) || (changedValues == null ? void 0 : changedValues.end_date)) {
|
|
918
|
-
const cacheItem = getCurrentCacheItem();
|
|
919
|
-
const duration2 = (0, import_utils6.getDays)(cacheItem, "days");
|
|
920
|
-
const start_date = (changedValues == null ? void 0 : changedValues.start_date) || useStartDate;
|
|
921
|
-
const end_date = (changedValues == null ? void 0 : changedValues.end_date) || useEndDate;
|
|
922
|
-
updateMultiDay({ start_date, end_date, duration: duration2 });
|
|
923
|
-
return form.setFieldsValue({
|
|
924
|
-
duration: duration2
|
|
925
|
-
});
|
|
926
|
-
}
|
|
927
|
-
}
|
|
928
|
-
};
|
|
929
720
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
930
721
|
import_drawer.default,
|
|
931
722
|
{
|
|
@@ -948,29 +739,16 @@ var Info = (_, ref) => {
|
|
|
948
739
|
});
|
|
949
740
|
}
|
|
950
741
|
},
|
|
951
|
-
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit" },
|
|
952
|
-
|
|
742
|
+
/* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__booking-service-body-edit" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Form, { layout: "vertical", form, onFinish }, /* @__PURE__ */ import_react.default.createElement(import_antd.Row, { style: { width: "100%" }, gutter: [16, 0] }, productName, price, reason, val && isShowTimeAndResource && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, startTime, duration, resource, capacity, hiddenQuantity), isNormalProduct && quantity), /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { noStyle: true, name: "note" }, noteModalOpen && /* @__PURE__ */ import_react.default.createElement(
|
|
743
|
+
import_noteModal.default,
|
|
953
744
|
{
|
|
954
|
-
|
|
955
|
-
form,
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
},
|
|
962
|
-
/* @__PURE__ */ import_react.default.createElement(import_antd.Row, { style: { width: "100%" }, gutter: [16, 0] }, productName, price, reason, val && isShowTimeAndResource && /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, startTime, endTime, duration, resource, capacity, hiddenQuantity), isNormalProduct && quantity, !(0, import_utils4.isNormalProductByDurationSchedule)(state.service.cacheItem) && !(0, import_utils6.isWalkIn)((_K = (_J = state.client) == null ? void 0 : _J.value) == null ? void 0 : _K.id) && holder),
|
|
963
|
-
/* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { noStyle: true, name: "note" }, noteModalOpen && /* @__PURE__ */ import_react.default.createElement(
|
|
964
|
-
import_noteModal.default,
|
|
965
|
-
{
|
|
966
|
-
open: noteModalOpen,
|
|
967
|
-
value: form.getFieldValue("note"),
|
|
968
|
-
onConfirm: handleNoteConfirm,
|
|
969
|
-
onDelete: handleNoteDelete,
|
|
970
|
-
onCancel: handleNoteCancel
|
|
971
|
-
}
|
|
972
|
-
))
|
|
973
|
-
), footer)
|
|
745
|
+
open: noteModalOpen,
|
|
746
|
+
value: form.getFieldValue("note"),
|
|
747
|
+
onConfirm: handleNoteConfirm,
|
|
748
|
+
onDelete: handleNoteDelete,
|
|
749
|
+
onCancel: handleNoteCancel
|
|
750
|
+
}
|
|
751
|
+
))), footer)
|
|
974
752
|
));
|
|
975
753
|
};
|
|
976
754
|
var editService_default = (0, import_react.forwardRef)(Info);
|
|
@@ -42,8 +42,8 @@ module.exports = __toCommonJS(utilsByBooking_exports);
|
|
|
42
42
|
var import_dayjs = __toESM(require("dayjs"));
|
|
43
43
|
var import_utils = require("@pisell/utils");
|
|
44
44
|
var import_utils2 = require("../utils");
|
|
45
|
-
var import_utils3 = require("
|
|
46
|
-
var import_utils4 = require("
|
|
45
|
+
var import_utils3 = require("../info/service2/utils");
|
|
46
|
+
var import_utils4 = require("../../ticketBooking/components/addServiceVariant/utils");
|
|
47
47
|
var getUseableEventCount = (eventList, current) => {
|
|
48
48
|
return (eventList || []).reduce((pre, event) => {
|
|
49
49
|
return pre - event.pax;
|
|
@@ -219,21 +219,14 @@ var getServiceStartTimeAndEndTime = (state, cacheItem, timeObj) => {
|
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
221
|
const appointmentTimingPreference = getAppointmentTimingPreference(state);
|
|
222
|
-
let lastServer = (0, import_utils2.getLastServer)((_a = state.service.value) == null ? void 0 : _a.filter((item) => !item.isCustomItem));
|
|
223
|
-
const getDuration = (cacheItem2) => {
|
|
224
|
-
var _a2;
|
|
225
|
-
if ((0, import_utils4.isMultiDayProduct)(cacheItem2)) {
|
|
226
|
-
return (0, import_utils2.getDays)(cacheItem2, "days");
|
|
227
|
-
}
|
|
228
|
-
return (0, import_utils2.findNextDuration)(
|
|
229
|
-
cacheItem2.duration,
|
|
230
|
-
timeObj == null ? void 0 : timeObj.durationSlicesBasedOnTime,
|
|
231
|
-
(_a2 = cacheItem2 == null ? void 0 : cacheItem2.duration) == null ? void 0 : _a2.value
|
|
232
|
-
);
|
|
233
|
-
};
|
|
222
|
+
let lastServer = (0, import_utils2.getLastServer)((_a = state.service.value) == null ? void 0 : _a.filter((item) => !item.isCustomItem && !(0, import_utils3.isNormalProductByDurationSchedule)(item)));
|
|
234
223
|
let _extend = {
|
|
235
224
|
// 时长: 当前商品时长 > 第一个时长
|
|
236
|
-
duration:
|
|
225
|
+
duration: (0, import_utils2.findNextDuration)(
|
|
226
|
+
cacheItem.duration,
|
|
227
|
+
timeObj == null ? void 0 : timeObj.durationSlicesBasedOnTime,
|
|
228
|
+
(_b = cacheItem == null ? void 0 : cacheItem.duration) == null ? void 0 : _b.value
|
|
229
|
+
)
|
|
237
230
|
};
|
|
238
231
|
if (lastServer) {
|
|
239
232
|
let lastServerStartDate = lastServer._extend.startDate;
|
|
@@ -242,9 +235,9 @@ var getServiceStartTimeAndEndTime = (state, cacheItem, timeObj) => {
|
|
|
242
235
|
_extend.start_time = lastServerStartDate.format("HH:mm");
|
|
243
236
|
} else {
|
|
244
237
|
if ((0, import_dayjs.default)(lastServerEndDate).isAfter(lastServerStartDate, "day")) {
|
|
245
|
-
_extend.start_time = timeObj == null ? void 0 : timeObj.timeSlices[((
|
|
238
|
+
_extend.start_time = timeObj == null ? void 0 : timeObj.timeSlices[((_c = timeObj == null ? void 0 : timeObj.timeSlices) == null ? void 0 : _c.length) - 1].value;
|
|
246
239
|
} else {
|
|
247
|
-
_extend.start_time =
|
|
240
|
+
_extend.start_time = lastServerEndDate.format("HH:mm");
|
|
248
241
|
}
|
|
249
242
|
}
|
|
250
243
|
} else {
|
|
@@ -272,19 +265,19 @@ var getServiceStartTimeAndEndTime = (state, cacheItem, timeObj) => {
|
|
|
272
265
|
..._extend,
|
|
273
266
|
...cacheItem._extend
|
|
274
267
|
};
|
|
275
|
-
const { startDate, endDate } = (0, import_utils2.getServiceTimes)({
|
|
276
|
-
...cacheItem,
|
|
277
|
-
_extend
|
|
278
|
-
});
|
|
268
|
+
const { startDate, endDate } = (0, import_utils2.getServiceTimes)({ _extend });
|
|
279
269
|
_extend.startDate = startDate;
|
|
280
270
|
_extend.endDate = endDate;
|
|
281
271
|
const session = (_e = (_d = cacheItem == null ? void 0 : cacheItem._extend) == null ? void 0 : _d.other) == null ? void 0 : _e.session;
|
|
282
272
|
if ((0, import_utils2.isSessionProduct)(cacheItem) && session) {
|
|
283
|
-
|
|
284
|
-
|
|
273
|
+
const startAt = (0, import_dayjs.default)(`${state.date.value.format("YYYY-MM-DD")} ${session.start_at.format("HH:mm:ss")}`);
|
|
274
|
+
const endAt = (0, import_dayjs.default)(`${state.date.value.format("YYYY-MM-DD")} ${session.end_at.format("HH:mm:ss")}`);
|
|
275
|
+
_extend.start_date = startAt;
|
|
276
|
+
_extend.startDate = startAt;
|
|
285
277
|
_extend.start_time = session.start_time;
|
|
286
|
-
_extend.end_date =
|
|
287
|
-
_extend.endDate =
|
|
278
|
+
_extend.end_date = endAt;
|
|
279
|
+
_extend.endDate = endAt;
|
|
280
|
+
_extend.end_time = session.end_time;
|
|
288
281
|
_extend.duration = (0, import_utils2.getDays)({ _extend }, "minutes");
|
|
289
282
|
}
|
|
290
283
|
return _extend;
|
|
@@ -297,7 +290,7 @@ var getIsNoSpecAndPackage = (product) => {
|
|
|
297
290
|
if (product == null ? void 0 : product.isEditBooking) {
|
|
298
291
|
return ((_a = product == null ? void 0 : product.product_bundle) == null ? void 0 : _a.length) === 0 && (product == null ? void 0 : product.product_variant_id) === 0 && (((_c = (_b = product == null ? void 0 : product.product_sku) == null ? void 0 : _b.option) == null ? void 0 : _c.length) || 0) === 0;
|
|
299
292
|
}
|
|
300
|
-
return (product == null ? void 0 : product.is_bundle) === 0 && (((_d = product == null ? void 0 : product.variant) == null ? void 0 : _d.length) || 0) === 0 && !(0,
|
|
293
|
+
return (product == null ? void 0 : product.is_bundle) === 0 && (((_d = product == null ? void 0 : product.variant) == null ? void 0 : _d.length) || 0) === 0 && !(0, import_utils4.isOption)(product);
|
|
301
294
|
};
|
|
302
295
|
// Annotate the CommonJS export names for ESM import in node:
|
|
303
296
|
0 && (module.exports = {
|